@@ -8,11 +8,12 @@ import Lumi.Components.Color (colorNames)
88import Lumi.Components.Column (columnSelfStretch , column_ )
99import Lumi.Components.Images (avatar , avatar_ )
1010import 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 )
1212import Lumi.Components.Lockup (lockup )
1313import Lumi.Components.Row (row_ )
1414import Lumi.Components.Size (Size (..))
1515import Lumi.Components.Text (text , subtext , h2_ , body_ )
16+ import Lumi.Components.Text as T
1617import Lumi.Components.Example (example )
1718import React.Basic (JSX , fragment )
1819import 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_ " flexo@lumi.com"
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+ ]
0 commit comments