@@ -8,6 +8,8 @@ module Widget exposing
8
8
, RowStyle , row, buttonRow
9
9
, ColumnStyle , column, buttonColumn
10
10
, ItemStyle , Item
11
+ , FullBleedItemStyle , fullBleedItem
12
+ , InsetItem , InsetItemStyle , insetItem
11
13
, ExpansionItemStyle , ExpansionItem , expansionItem
12
14
, ImageItemStyle , ImageItem , imageItem
13
15
, MultiLineItemStyle , MultiLineItem , multiLineItem
@@ -20,13 +22,10 @@ module Widget exposing
20
22
, TextInputStyle , TextInput , textInput
21
23
, TabStyle , Tab , tab
22
24
, ProgressIndicatorStyle , ProgressIndicator , circularProgressIndicator
23
- , FullBleedItemStyle , InsetItem , InsetItemStyle , fullBleedItem, insetItem
24
25
)
25
26
26
27
{- | This module contains different stateless view functions. No wiring required.
27
28
28
- These widgets should be used by defining the styling seperately:
29
-
30
29
Widget.button Material.primaryButton
31
30
{ text = "disable me"
32
31
, icon =
@@ -52,33 +51,31 @@ You can create you own widgets by sticking widgets types together.
52
51
53
52

54
53
55
- [Open in Ellie](https://ellie-app.com/9p5QGZ3hgPLa1)
56
-
57
54
@docs ButtonStyle, Button, TextButton, iconButton, textButton, button
58
55
59
56
60
57
# Switch
61
58
59
+ 
60
+
62
61
@docs SwitchStyle, Switch, switch
63
62
64
63
65
64
# Select
66
65
67
66

68
67
69
- [Open in Ellie](https://ellie-app.com/9p5QSzQDMCca1)
70
-
71
68
@docs Select, selectButton, select
72
69
73
70

74
71
75
- [Open in Ellie](https://ellie-app.com/9p5R5crjqfya1)
76
-
77
72
@docs MultiSelect, multiSelect
78
73
79
74
80
75
# Modal
81
76
77
+ 
78
+
82
79
@docs Modal, singleModal, multiModal
83
80
84
81
@@ -110,8 +107,9 @@ You can create you own widgets by sticking widgets types together.
110
107
111
108
## Item
112
109
113
- @docs ItemStyle, FullBleedStyle, Item, item
114
- @docs TextItemStyle, TextItem, textItem
110
+ @docs ItemStyle, Item
111
+ @docs FullBleedItemStyle, fullBleedItem
112
+ @docs InsetItem, InsetItemStyle, insetItem
115
113
@docs ExpansionItemStyle, ExpansionItem, expansionItem
116
114
@docs ImageItemStyle, ImageItem, imageItem
117
115
@docs MultiLineItemStyle, MultiLineItem, multiLineItem
@@ -123,14 +121,14 @@ You can create you own widgets by sticking widgets types together.
123
121
124
122
# App Bar
125
123
124
+ 
125
+
126
126
@docs AppBarStyle, menuBar, tabBar
127
127
128
128
129
129
# Sort Table
130
130
131
- 
132
-
133
- [Open in Ellie](https://ellie-app.com/9p5RXw44B4Ja1)
131
+ 
134
132
135
133
@docs SortTableStyle, SortTable, Column, sortTable, floatColumn, intColumn, stringColumn, unsortableColumn
136
134
@@ -139,26 +137,20 @@ You can create you own widgets by sticking widgets types together.
139
137
140
138

141
139
142
- [Open in Ellie](https://ellie-app.com/9p5S6cvWCmBa1)
143
-
144
140
@docs TextInputStyle, TextInput, textInput
145
141
146
142
147
143
# Tab
148
144
149
145

150
146
151
- [Open in Ellie](https://ellie-app.com/9p5Sdbvp4jZa1)
152
-
153
147
@docs TabStyle, Tab, tab
154
148
155
149
156
150
# Progress Indicator
157
151
158
152

159
153
160
- [Open in Ellie](https://ellie-app.com/c47GJktH2bqa1)
161
-
162
154
@docs ProgressIndicatorStyle, ProgressIndicator, circularProgressIndicator
163
155
164
156
-}
@@ -572,6 +564,7 @@ multiSelect =
572
564
----------------------------------------------------------}
573
565
574
566
567
+ {- | -}
575
568
type alias Modal msg =
576
569
{ onDismiss : Maybe msg
577
570
, content : Element msg
@@ -1103,18 +1096,14 @@ headerItem =
1103
1096
{ onPress = Nothing
1104
1097
, icon = always Element.none
1105
1098
, text = "Item"
1106
- , content =
1107
- \{ size, color } ->
1108
- Element.none
1099
+ , content = always Element.none
1109
1100
}
1110
1101
, Widget.divider (Material.insetDivider Material.defaultPalette )
1111
1102
, Widget.insetItem (Material.insetItem Material.defaultPalette)
1112
1103
{ onPress = Nothing
1113
1104
, icon = always Element.none
1114
1105
, text = "Item"
1115
- , content =
1116
- \{ size, color } ->
1117
- Element.none
1106
+ , content = always Element.none
1118
1107
}
1119
1108
]
1120
1109
|> Widget.itemList (Material.cardColumn Material.defaultPalette)
@@ -1149,9 +1138,7 @@ insetItem =
1149
1138
, onPress = Nothing
1150
1139
, icon = always Element.none
1151
1140
, text = "Item"
1152
- , content =
1153
- \{ size, color } ->
1154
- Element.none
1141
+ , content = always Element.none
1155
1142
}
1156
1143
]
1157
1144
|> Widget.itemList (Material.cardColumn Material.defaultPalette)
@@ -1228,8 +1215,6 @@ imageItem =
1228
1215
1229
1216
import Element
1230
1217
import Widget.Material as Material
1231
- import Widget.Material.Color as MaterialColor
1232
- import Element.Font as Font
1233
1218
1234
1219
type Msg =
1235
1220
Toggle Bool
@@ -1239,13 +1224,13 @@ imageItem =
1239
1224
isExpanded =
1240
1225
True
1241
1226
in
1242
- ( [ Widget.fullBleedItem (Material.fullBleedItem Material.defaultPalette)
1227
+ ( ( Widget.fullBleedItem (Material.fullBleedItem Material.defaultPalette)
1243
1228
{ onPress = Nothing
1244
1229
, icon = always Element.none
1245
1230
, text = "Item with Icon"
1246
1231
}
1247
- ]
1248
- ++ Widget.expansionItem (Material.expansionItem Material.defaultPalette )
1232
+ )
1233
+ :: Widget.expansionItem (Material.expansionItem Material.defaultPalette )
1249
1234
{ onToggle = Toggle
1250
1235
, isExpanded = isExpanded
1251
1236
, icon = always Element.none
@@ -1286,8 +1271,6 @@ expansionItem =
1286
1271
1287
1272
import Element
1288
1273
import Widget.Material as Material
1289
- import Widget.Material.Color as MaterialColor
1290
- import Element.Font as Font
1291
1274
1292
1275
type Msg =
1293
1276
Select Int
0 commit comments