Skip to content

Commit cfb9772

Browse files
committed
List.keyValueList
1 parent cad4cd1 commit cfb9772

File tree

6 files changed

+134
-182
lines changed

6 files changed

+134
-182
lines changed

docs/App.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const componentLoaders = [
6363
"Images",
6464
"Input",
6565
"InputGroup",
66-
"KeyValueList",
6766
"LabeledField",
6867
"Layouts",
6968
"Link",

docs/Examples/KeyValueList.Example.purs

Lines changed: 0 additions & 72 deletions
This file was deleted.

docs/Examples/List.example.purs

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ import Lumi.Components.Color (colorNames)
88
import Lumi.Components.Column (columnSelfStretch, column_)
99
import Lumi.Components.Images (avatar, avatar_)
1010
import Lumi.Components.Link (link, defaults)
11-
import Lumi.Components.List (borderlessList, compactList, defaultList, list, structuredColumnList)
11+
import Lumi.Components.List (borderlessList, compactList, defaultList, keyValueList, list, structuredColumnList)
1212
import Lumi.Components.Lockup (lockup)
1313
import Lumi.Components.Row (row_)
1414
import Lumi.Components.Size (Size(..))
1515
import Lumi.Components.Text (text, subtext, h2_, body_)
16+
import Lumi.Components.Text as T
1617
import Lumi.Components.Example (example)
1718
import React.Basic (JSX, fragment)
1819
import React.Basic.DOM as R
@@ -111,6 +112,32 @@ docs =
111112
]
112113
}
113114
]
115+
116+
, h2_ "Key Value Lists"
117+
, example
118+
$ keyValueList
119+
{ rightAligned: true
120+
, rows: r
121+
, borders: true
122+
}
123+
, example
124+
$ keyValueList
125+
{ rightAligned: false
126+
, rows: r
127+
, borders: true
128+
}
129+
, example
130+
$ keyValueList
131+
{ rightAligned: true
132+
, rows: r
133+
, borders: false
134+
}
135+
, example
136+
$ keyValueList
137+
{ rightAligned: false
138+
, rows: r
139+
, borders: false
140+
}
114141
]
115142
where
116143
simpleListData =
@@ -167,3 +194,25 @@ docs =
167194
, id: "789"
168195
}
169196
]
197+
198+
r =
199+
[ { label: "Name"
200+
, value: T.body_ "Flexo"
201+
}
202+
, { label: "Email"
203+
, value: T.body_ "[email protected]"
204+
}
205+
, { label: ""
206+
, value: lockup
207+
{ title: R.text "Flexo R."
208+
, subtitle: Just $ R.text "Lumi"
209+
, image: Just $ avatar_
210+
{ size: Large
211+
, image:
212+
R.img
213+
{ src: "https://s3.amazonaws.com/lumi-flapjack-staging/mockups/9e7f08b801e6bb3a428ef72e93c49fe5.jpg"
214+
}
215+
}
216+
}
217+
}
218+
]

src/Lumi/Components/KeyValueList.purs

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)