@rbxts/uiblox 0.2.0-alpha.15 → 0.2.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/ui/packages/accordion/components/Accordion.luau +17 -6
- package/out/ui/packages/accordion/components/Accordion.styles.luau +12 -2
- package/out/ui/packages/accordion/components/accordionOpen.d.ts +1 -0
- package/out/ui/packages/accordion/components/accordionOpen.luau +4 -0
- package/out/ui/packages/fab/components/Fab.d.ts +2 -0
- package/out/ui/packages/fab/components/Fab.luau +5 -0
- package/out/ui/packages/fab/components/Fab.styles.d.ts +2 -0
- package/out/ui/packages/fab/components/Fab.styles.luau +8 -3
- package/out/ui/packages/paper/components/Paper.d.ts +1 -1
- package/out/ui/packages/paper/components/Paper.luau +7 -1
- package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
- package/out/ui/packages/paper/components/Paper.styles.luau +6 -0
- package/out/ui/packages/rating/components/Rating.d.ts +1 -0
- package/out/ui/packages/rating/components/Rating.luau +2 -1
- package/out/ui/packages/stateMatrix.luau +174 -150
- package/package.json +1 -1
|
@@ -3,7 +3,10 @@ local TS = _G[script]
|
|
|
3
3
|
local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local React = _react
|
|
5
5
|
local useState = _react.useState
|
|
6
|
-
local
|
|
6
|
+
local Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
|
|
7
|
+
local _accordionOpen = TS.import(script, script.Parent, "accordionOpen")
|
|
8
|
+
local accordionGlyph = _accordionOpen.accordionGlyph
|
|
9
|
+
local accordionOpen = _accordionOpen.accordionOpen
|
|
7
10
|
local useAccordionStyles = TS.import(script, script.Parent, "Accordion.styles").default
|
|
8
11
|
local function Accordion(props)
|
|
9
12
|
local _binding = props
|
|
@@ -81,16 +84,24 @@ local function Accordion(props)
|
|
|
81
84
|
_attributes_5[_k] = _v
|
|
82
85
|
end
|
|
83
86
|
_attributes_5.Text = title
|
|
84
|
-
local _exp_3 = React.createElement("
|
|
87
|
+
local _exp_3 = React.createElement("textlabel", _attributes_5)
|
|
85
88
|
local _attributes_6 = {
|
|
89
|
+
key = "Icon",
|
|
90
|
+
}
|
|
91
|
+
for _k, _v in styles.icon do
|
|
92
|
+
_attributes_6[_k] = _v
|
|
93
|
+
end
|
|
94
|
+
_attributes_6.Image = if accordionGlyph(open) == "expanded" then Icons.Expanded else Icons.Collapsed
|
|
95
|
+
local _exp_4 = React.createElement("textbutton", _attributes_3, _exp_2, _exp_3, React.createElement("imagelabel", _attributes_6))
|
|
96
|
+
local _attributes_7 = {
|
|
86
97
|
key = "Body",
|
|
87
98
|
}
|
|
88
99
|
for _k, _v in styles.body do
|
|
89
|
-
|
|
100
|
+
_attributes_7[_k] = _v
|
|
90
101
|
end
|
|
91
|
-
local
|
|
92
|
-
setmetatable(
|
|
93
|
-
return React.createElement("frame", _attributes, _exp, _exp_1,
|
|
102
|
+
local _attributes_8 = table.clone(styles.padding)
|
|
103
|
+
setmetatable(_attributes_8, nil)
|
|
104
|
+
return React.createElement("frame", _attributes, _exp, _exp_1, _exp_4, React.createElement("frame", _attributes_7, React.createElement("uipadding", _attributes_8), children))
|
|
94
105
|
end
|
|
95
106
|
local default = Accordion
|
|
96
107
|
return {
|
|
@@ -32,8 +32,8 @@ local useAccordionStyles = componentStyles("Accordion", function(theme, _param)
|
|
|
32
32
|
Selectable = disabled ~= true,
|
|
33
33
|
},
|
|
34
34
|
title = {
|
|
35
|
-
AutomaticSize = Enum.AutomaticSize.
|
|
36
|
-
Size = UDim2.
|
|
35
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
36
|
+
Size = UDim2.new(1, -theme.spacing.calc(4), 0, 0),
|
|
37
37
|
BackgroundTransparency = 1,
|
|
38
38
|
BorderSizePixel = 0,
|
|
39
39
|
Font = theme.typography.fontFamilies.default,
|
|
@@ -42,6 +42,16 @@ local useAccordionStyles = componentStyles("Accordion", function(theme, _param)
|
|
|
42
42
|
TextTransparency = if disabled == true then 0.5 else 0,
|
|
43
43
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
44
44
|
},
|
|
45
|
+
icon = {
|
|
46
|
+
Size = UDim2.fromOffset(theme.options.constants.iconSizes.small, theme.options.constants.iconSizes.small),
|
|
47
|
+
Position = UDim2.new(1, -theme.padding.calc(1.5), 0.5, 0),
|
|
48
|
+
AnchorPoint = Vector2.new(1, 0.5),
|
|
49
|
+
BackgroundTransparency = 1,
|
|
50
|
+
BorderSizePixel = 0,
|
|
51
|
+
ScaleType = Enum.ScaleType.Fit,
|
|
52
|
+
ImageColor3 = theme.palette.text.primary,
|
|
53
|
+
ImageTransparency = if disabled == true then 0.5 else 0,
|
|
54
|
+
},
|
|
45
55
|
padding = {
|
|
46
56
|
PaddingTop = UDim.new(0, theme.padding.calc(1)),
|
|
47
57
|
PaddingBottom = UDim.new(0, theme.padding.calc(1)),
|
|
@@ -5,6 +5,10 @@ local function accordionOpen(expanded, controlled)
|
|
|
5
5
|
end
|
|
6
6
|
return expanded == true
|
|
7
7
|
end
|
|
8
|
+
local function accordionGlyph(open)
|
|
9
|
+
return if open == true then "expanded" else "collapsed"
|
|
10
|
+
end
|
|
8
11
|
return {
|
|
9
12
|
accordionOpen = accordionOpen,
|
|
13
|
+
accordionGlyph = accordionGlyph,
|
|
10
14
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
import { Icons } from "../../../enums/index";
|
|
3
3
|
import { FabSize } from "./fabSize";
|
|
4
|
+
import { FabColor } from "./Fab.styles";
|
|
4
5
|
export interface FabProps {
|
|
5
6
|
icon: Icons;
|
|
6
7
|
label?: string;
|
|
7
8
|
size?: FabSize;
|
|
9
|
+
color?: FabColor;
|
|
8
10
|
disabled?: boolean;
|
|
9
11
|
loading?: boolean;
|
|
10
12
|
reducedMotion?: boolean;
|
|
@@ -20,6 +20,10 @@ local function Fab(props)
|
|
|
20
20
|
if size == nil then
|
|
21
21
|
size = "medium"
|
|
22
22
|
end
|
|
23
|
+
local color = _binding.color
|
|
24
|
+
if color == nil then
|
|
25
|
+
color = "primary"
|
|
26
|
+
end
|
|
23
27
|
local disabled = _binding.disabled
|
|
24
28
|
local loading = _binding.loading
|
|
25
29
|
if loading == nil then
|
|
@@ -35,6 +39,7 @@ local function Fab(props)
|
|
|
35
39
|
local extended = fabExtended(label)
|
|
36
40
|
local styles = useFabStyles({
|
|
37
41
|
size = size,
|
|
42
|
+
color = color,
|
|
38
43
|
disabled = not active,
|
|
39
44
|
extended = extended,
|
|
40
45
|
})
|
|
@@ -9,14 +9,19 @@ local useFabStyles = componentStyles("Fab", function(theme, _param)
|
|
|
9
9
|
if size == nil then
|
|
10
10
|
size = "medium"
|
|
11
11
|
end
|
|
12
|
+
local color = _param.color
|
|
13
|
+
if color == nil then
|
|
14
|
+
color = "primary"
|
|
15
|
+
end
|
|
12
16
|
local disabled = _param.disabled
|
|
13
17
|
local extended = _param.extended
|
|
14
18
|
local diameter = fabPixels(size)
|
|
19
|
+
local tone = if color == "accent" then theme.palette.accent else theme.palette.primary
|
|
15
20
|
return createStyles({
|
|
16
21
|
root = {
|
|
17
22
|
Size = if extended == true then UDim2.new(0, 0, 0, diameter) else UDim2.fromOffset(diameter, diameter),
|
|
18
23
|
AutomaticSize = if extended == true then Enum.AutomaticSize.X else Enum.AutomaticSize.None,
|
|
19
|
-
BackgroundColor3 =
|
|
24
|
+
BackgroundColor3 = tone.main,
|
|
20
25
|
BackgroundTransparency = if disabled then 0.5 else 0,
|
|
21
26
|
BorderSizePixel = 0,
|
|
22
27
|
AutoButtonColor = false,
|
|
@@ -42,7 +47,7 @@ local useFabStyles = componentStyles("Fab", function(theme, _param)
|
|
|
42
47
|
BackgroundTransparency = 1,
|
|
43
48
|
BorderSizePixel = 0,
|
|
44
49
|
ScaleType = Enum.ScaleType.Fit,
|
|
45
|
-
ImageColor3 =
|
|
50
|
+
ImageColor3 = tone.on,
|
|
46
51
|
ImageTransparency = if disabled then 0.5 else 0,
|
|
47
52
|
LayoutOrder = 1,
|
|
48
53
|
},
|
|
@@ -53,7 +58,7 @@ local useFabStyles = componentStyles("Fab", function(theme, _param)
|
|
|
53
58
|
BorderSizePixel = 0,
|
|
54
59
|
Font = theme.typography.fontFamilies.default,
|
|
55
60
|
TextSize = theme.typography.fontSizes.body,
|
|
56
|
-
TextColor3 =
|
|
61
|
+
TextColor3 = tone.on,
|
|
57
62
|
TextTransparency = if disabled then 0.5 else 0,
|
|
58
63
|
LayoutOrder = 2,
|
|
59
64
|
},
|
|
@@ -28,7 +28,13 @@ local function Paper(props)
|
|
|
28
28
|
setmetatable(_attributes_2, nil)
|
|
29
29
|
_condition = React.createElement("uicorner", _attributes_2)
|
|
30
30
|
end
|
|
31
|
-
|
|
31
|
+
local _condition_1 = elevation == "outlined"
|
|
32
|
+
if _condition_1 then
|
|
33
|
+
local _attributes_2 = table.clone(styles.stroke)
|
|
34
|
+
setmetatable(_attributes_2, nil)
|
|
35
|
+
_condition_1 = React.createElement("uistroke", _attributes_2)
|
|
36
|
+
end
|
|
37
|
+
return React.createElement("frame", _attributes, _exp, _condition, _condition_1, children)
|
|
32
38
|
end
|
|
33
39
|
local default = Paper
|
|
34
40
|
return {
|
|
@@ -15,6 +15,12 @@ local usePaperStyles = componentStyles("Paper", function(theme, _param)
|
|
|
15
15
|
BackgroundColor3 = if elevation == "raised" then theme.palette.surface.elevated else theme.palette.surface.paper,
|
|
16
16
|
BorderSizePixel = 0,
|
|
17
17
|
},
|
|
18
|
+
stroke = {
|
|
19
|
+
Color = theme.palette.border,
|
|
20
|
+
ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
|
|
21
|
+
Thickness = 1,
|
|
22
|
+
Transparency = 0,
|
|
23
|
+
},
|
|
18
24
|
padding = {
|
|
19
25
|
PaddingTop = UDim.new(0, theme.padding.calc(2)),
|
|
20
26
|
PaddingBottom = UDim.new(0, theme.padding.calc(2)),
|
|
@@ -16,6 +16,7 @@ local function Rating(props)
|
|
|
16
16
|
size = "medium"
|
|
17
17
|
end
|
|
18
18
|
local disabled = _binding.disabled
|
|
19
|
+
local readOnly = _binding.readOnly
|
|
19
20
|
local onChange = _binding.onChange
|
|
20
21
|
local className = _binding.className
|
|
21
22
|
local sx = _binding.sx
|
|
@@ -25,7 +26,7 @@ local function Rating(props)
|
|
|
25
26
|
disabled = disabled,
|
|
26
27
|
size = size,
|
|
27
28
|
})
|
|
28
|
-
local active = canActivate(disabled)
|
|
29
|
+
local active = canActivate(disabled) and readOnly ~= true
|
|
29
30
|
local stars = {}
|
|
30
31
|
do
|
|
31
32
|
local i = 1
|
|
@@ -1223,102 +1223,108 @@ local function surfacesRows()
|
|
|
1223
1223
|
local _Length_24 = #_array_25
|
|
1224
1224
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
1225
1225
|
_length += _Length_24
|
|
1226
|
-
local _array_26 = pair("
|
|
1226
|
+
local _array_26 = pair("Paper", "outlined", {
|
|
1227
|
+
variant = "outlined",
|
|
1228
|
+
})
|
|
1227
1229
|
local _Length_25 = #_array_26
|
|
1228
1230
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1229
1231
|
_length += _Length_25
|
|
1230
|
-
local _array_27 = pair("ListItem", "
|
|
1231
|
-
value = true,
|
|
1232
|
-
})
|
|
1232
|
+
local _array_27 = pair("ListItem", "default")
|
|
1233
1233
|
local _Length_26 = #_array_27
|
|
1234
1234
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1235
1235
|
_length += _Length_26
|
|
1236
|
-
local _array_28 = pair("ListItem", "
|
|
1237
|
-
|
|
1236
|
+
local _array_28 = pair("ListItem", "selected", {
|
|
1237
|
+
value = true,
|
|
1238
1238
|
})
|
|
1239
1239
|
local _Length_27 = #_array_28
|
|
1240
1240
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1241
1241
|
_length += _Length_27
|
|
1242
|
-
local _array_29 = pair("ListItem", "
|
|
1243
|
-
|
|
1242
|
+
local _array_29 = pair("ListItem", "disabled", {
|
|
1243
|
+
disabled = true,
|
|
1244
1244
|
})
|
|
1245
1245
|
local _Length_28 = #_array_29
|
|
1246
1246
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1247
1247
|
_length += _Length_28
|
|
1248
|
-
local _array_30 = pair("ListItem", "
|
|
1249
|
-
variant = "
|
|
1248
|
+
local _array_30 = pair("ListItem", "secondary", {
|
|
1249
|
+
variant = "secondary",
|
|
1250
1250
|
})
|
|
1251
1251
|
local _Length_29 = #_array_30
|
|
1252
1252
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1253
1253
|
_length += _Length_29
|
|
1254
|
-
local _array_31 = pair("
|
|
1255
|
-
variant = "
|
|
1254
|
+
local _array_31 = pair("ListItem", "dense", {
|
|
1255
|
+
variant = "dense",
|
|
1256
1256
|
})
|
|
1257
1257
|
local _Length_30 = #_array_31
|
|
1258
1258
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1259
1259
|
_length += _Length_30
|
|
1260
|
-
local _array_32 = pair("Card", "
|
|
1261
|
-
variant = "
|
|
1260
|
+
local _array_32 = pair("Card", "flat", {
|
|
1261
|
+
variant = "flat",
|
|
1262
1262
|
})
|
|
1263
1263
|
local _Length_31 = #_array_32
|
|
1264
1264
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1265
1265
|
_length += _Length_31
|
|
1266
|
-
local _array_33 = pair("Card", "
|
|
1267
|
-
variant = "
|
|
1266
|
+
local _array_33 = pair("Card", "raised", {
|
|
1267
|
+
variant = "raised",
|
|
1268
1268
|
})
|
|
1269
1269
|
local _Length_32 = #_array_33
|
|
1270
1270
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1271
1271
|
_length += _Length_32
|
|
1272
|
-
local _array_34 = pair("
|
|
1272
|
+
local _array_34 = pair("Card", "square", {
|
|
1273
|
+
variant = "square",
|
|
1274
|
+
})
|
|
1273
1275
|
local _Length_33 = #_array_34
|
|
1274
1276
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1275
1277
|
_length += _Length_33
|
|
1276
|
-
local _array_35 = pair("Chip", "
|
|
1277
|
-
size = "small",
|
|
1278
|
-
})
|
|
1278
|
+
local _array_35 = pair("Chip", "default")
|
|
1279
1279
|
local _Length_34 = #_array_35
|
|
1280
1280
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1281
1281
|
_length += _Length_34
|
|
1282
|
-
local _array_36 = pair("Chip", "size-
|
|
1283
|
-
size = "
|
|
1282
|
+
local _array_36 = pair("Chip", "size-small", {
|
|
1283
|
+
size = "small",
|
|
1284
1284
|
})
|
|
1285
1285
|
local _Length_35 = #_array_36
|
|
1286
1286
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1287
1287
|
_length += _Length_35
|
|
1288
|
-
local _array_37 = pair("Chip", "
|
|
1289
|
-
|
|
1288
|
+
local _array_37 = pair("Chip", "size-large", {
|
|
1289
|
+
size = "large",
|
|
1290
1290
|
})
|
|
1291
1291
|
local _Length_36 = #_array_37
|
|
1292
1292
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1293
1293
|
_length += _Length_36
|
|
1294
|
-
local _array_38 = pair("Chip", "
|
|
1295
|
-
|
|
1294
|
+
local _array_38 = pair("Chip", "selected", {
|
|
1295
|
+
value = true,
|
|
1296
1296
|
})
|
|
1297
1297
|
local _Length_37 = #_array_38
|
|
1298
1298
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1299
1299
|
_length += _Length_37
|
|
1300
|
-
local _array_39 = pair("Chip", "
|
|
1301
|
-
|
|
1300
|
+
local _array_39 = pair("Chip", "disabled", {
|
|
1301
|
+
disabled = true,
|
|
1302
1302
|
})
|
|
1303
1303
|
local _Length_38 = #_array_39
|
|
1304
1304
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1305
1305
|
_length += _Length_38
|
|
1306
|
-
local _array_40 = pair("Chip", "
|
|
1307
|
-
|
|
1306
|
+
local _array_40 = pair("Chip", "deletable", {
|
|
1307
|
+
text = "Tag",
|
|
1308
1308
|
})
|
|
1309
1309
|
local _Length_39 = #_array_40
|
|
1310
1310
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1311
1311
|
_length += _Length_39
|
|
1312
|
-
local _array_41 = pair("
|
|
1313
|
-
|
|
1312
|
+
local _array_41 = pair("Chip", "outlined", {
|
|
1313
|
+
variant = "outlined",
|
|
1314
1314
|
})
|
|
1315
1315
|
local _Length_40 = #_array_41
|
|
1316
1316
|
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1317
1317
|
_length += _Length_40
|
|
1318
|
-
local _array_42 = pair("Badge", "
|
|
1318
|
+
local _array_42 = pair("Badge", "count", {
|
|
1319
|
+
value = 3,
|
|
1320
|
+
})
|
|
1321
|
+
local _Length_41 = #_array_42
|
|
1322
|
+
table.move(_array_42, 1, _Length_41, _length + 1, _array)
|
|
1323
|
+
_length += _Length_41
|
|
1324
|
+
local _array_43 = pair("Badge", "max", {
|
|
1319
1325
|
value = 100,
|
|
1320
1326
|
})
|
|
1321
|
-
table.move(
|
|
1327
|
+
table.move(_array_43, 1, #_array_43, _length + 1, _array)
|
|
1322
1328
|
return _array
|
|
1323
1329
|
end
|
|
1324
1330
|
local function chromeRows()
|
|
@@ -1489,152 +1495,164 @@ local function chromeRows()
|
|
|
1489
1495
|
local _Length_25 = #_array_26
|
|
1490
1496
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1491
1497
|
_length += _Length_25
|
|
1492
|
-
local _array_27 = pair("
|
|
1498
|
+
local _array_27 = pair("Accordion", "indicator", {
|
|
1493
1499
|
open = true,
|
|
1494
|
-
text = "Saved",
|
|
1495
1500
|
})
|
|
1496
1501
|
local _Length_26 = #_array_27
|
|
1497
1502
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1498
1503
|
_length += _Length_26
|
|
1499
|
-
local _array_28 = pair("Snackbar", "
|
|
1500
|
-
open =
|
|
1504
|
+
local _array_28 = pair("Snackbar", "open", {
|
|
1505
|
+
open = true,
|
|
1501
1506
|
text = "Saved",
|
|
1502
1507
|
})
|
|
1503
1508
|
local _Length_27 = #_array_28
|
|
1504
1509
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1505
1510
|
_length += _Length_27
|
|
1506
|
-
local _array_29 = pair("
|
|
1507
|
-
|
|
1511
|
+
local _array_29 = pair("Snackbar", "closed", {
|
|
1512
|
+
open = false,
|
|
1513
|
+
text = "Saved",
|
|
1508
1514
|
})
|
|
1509
1515
|
local _Length_28 = #_array_29
|
|
1510
1516
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1511
1517
|
_length += _Length_28
|
|
1512
|
-
local _array_30 = pair("Table", "
|
|
1513
|
-
text = "
|
|
1518
|
+
local _array_30 = pair("Table", "empty", {
|
|
1519
|
+
text = "",
|
|
1514
1520
|
})
|
|
1515
1521
|
local _Length_29 = #_array_30
|
|
1516
1522
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1517
1523
|
_length += _Length_29
|
|
1518
|
-
local _array_31 = pair("Table", "
|
|
1524
|
+
local _array_31 = pair("Table", "default", {
|
|
1519
1525
|
text = "Name / Role",
|
|
1520
|
-
value = 0,
|
|
1521
1526
|
})
|
|
1522
1527
|
local _Length_30 = #_array_31
|
|
1523
1528
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1524
1529
|
_length += _Length_30
|
|
1525
|
-
local _array_32 = pair("Table", "
|
|
1530
|
+
local _array_32 = pair("Table", "selected", {
|
|
1526
1531
|
text = "Name / Role",
|
|
1527
|
-
|
|
1532
|
+
value = 0,
|
|
1528
1533
|
})
|
|
1529
1534
|
local _Length_31 = #_array_32
|
|
1530
1535
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1531
1536
|
_length += _Length_31
|
|
1532
|
-
local _array_33 = pair("
|
|
1533
|
-
|
|
1534
|
-
|
|
1537
|
+
local _array_33 = pair("Table", "dense", {
|
|
1538
|
+
text = "Name / Role",
|
|
1539
|
+
variant = "dense",
|
|
1535
1540
|
})
|
|
1536
1541
|
local _Length_32 = #_array_33
|
|
1537
1542
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1538
1543
|
_length += _Length_32
|
|
1539
|
-
local _array_34 = pair("Autocomplete", "
|
|
1544
|
+
local _array_34 = pair("Autocomplete", "default", {
|
|
1540
1545
|
value = "Continue",
|
|
1541
1546
|
options = { "Continue", "Other" },
|
|
1542
|
-
open = true,
|
|
1543
1547
|
})
|
|
1544
1548
|
local _Length_33 = #_array_34
|
|
1545
1549
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1546
1550
|
_length += _Length_33
|
|
1547
|
-
local _array_35 = pair("Autocomplete", "
|
|
1551
|
+
local _array_35 = pair("Autocomplete", "open", {
|
|
1548
1552
|
value = "Continue",
|
|
1549
1553
|
options = { "Continue", "Other" },
|
|
1550
|
-
|
|
1554
|
+
open = true,
|
|
1551
1555
|
})
|
|
1552
1556
|
local _Length_34 = #_array_35
|
|
1553
1557
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1554
1558
|
_length += _Length_34
|
|
1555
|
-
local _array_36 = pair("Autocomplete", "
|
|
1556
|
-
value = "",
|
|
1557
|
-
options = {},
|
|
1558
|
-
|
|
1559
|
+
local _array_36 = pair("Autocomplete", "disabled", {
|
|
1560
|
+
value = "Continue",
|
|
1561
|
+
options = { "Continue", "Other" },
|
|
1562
|
+
disabled = true,
|
|
1559
1563
|
})
|
|
1560
1564
|
local _Length_35 = #_array_36
|
|
1561
1565
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1562
1566
|
_length += _Length_35
|
|
1563
|
-
local _array_37 = pair("Autocomplete", "
|
|
1564
|
-
value = "
|
|
1565
|
-
options = {
|
|
1567
|
+
local _array_37 = pair("Autocomplete", "empty", {
|
|
1568
|
+
value = "",
|
|
1569
|
+
options = {},
|
|
1566
1570
|
open = true,
|
|
1567
|
-
filter = "zzz",
|
|
1568
1571
|
})
|
|
1569
1572
|
local _Length_36 = #_array_37
|
|
1570
1573
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1571
1574
|
_length += _Length_36
|
|
1572
|
-
local _array_38 = pair("
|
|
1575
|
+
local _array_38 = pair("Autocomplete", "no-results", {
|
|
1576
|
+
value = "Continue",
|
|
1577
|
+
options = { "Continue", "Other" },
|
|
1578
|
+
open = true,
|
|
1579
|
+
filter = "zzz",
|
|
1580
|
+
})
|
|
1573
1581
|
local _Length_37 = #_array_38
|
|
1574
1582
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1575
1583
|
_length += _Length_37
|
|
1576
|
-
local _array_39 = pair("Fab", "
|
|
1577
|
-
text = "Compose",
|
|
1578
|
-
})
|
|
1584
|
+
local _array_39 = pair("Fab", "default")
|
|
1579
1585
|
local _Length_38 = #_array_39
|
|
1580
1586
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1581
1587
|
_length += _Length_38
|
|
1582
|
-
local _array_40 = pair("Fab", "
|
|
1583
|
-
|
|
1588
|
+
local _array_40 = pair("Fab", "extended", {
|
|
1589
|
+
text = "Compose",
|
|
1584
1590
|
})
|
|
1585
1591
|
local _Length_39 = #_array_40
|
|
1586
1592
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1587
1593
|
_length += _Length_39
|
|
1588
|
-
local _array_41 = pair("Fab", "
|
|
1589
|
-
size = "
|
|
1594
|
+
local _array_41 = pair("Fab", "small", {
|
|
1595
|
+
size = "small",
|
|
1590
1596
|
})
|
|
1591
1597
|
local _Length_40 = #_array_41
|
|
1592
1598
|
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1593
1599
|
_length += _Length_40
|
|
1594
|
-
local _array_42 = pair("Fab", "
|
|
1595
|
-
|
|
1600
|
+
local _array_42 = pair("Fab", "large", {
|
|
1601
|
+
size = "large",
|
|
1596
1602
|
})
|
|
1597
1603
|
local _Length_41 = #_array_42
|
|
1598
1604
|
table.move(_array_42, 1, _Length_41, _length + 1, _array)
|
|
1599
1605
|
_length += _Length_41
|
|
1600
|
-
local _array_43 = pair("Fab", "
|
|
1601
|
-
|
|
1606
|
+
local _array_43 = pair("Fab", "disabled", {
|
|
1607
|
+
disabled = true,
|
|
1602
1608
|
})
|
|
1603
1609
|
local _Length_42 = #_array_43
|
|
1604
1610
|
table.move(_array_43, 1, _Length_42, _length + 1, _array)
|
|
1605
1611
|
_length += _Length_42
|
|
1606
|
-
local _array_44 = pair("
|
|
1607
|
-
|
|
1612
|
+
local _array_44 = pair("Fab", "loading", {
|
|
1613
|
+
loading = true,
|
|
1608
1614
|
})
|
|
1609
1615
|
local _Length_43 = #_array_44
|
|
1610
1616
|
table.move(_array_44, 1, _Length_43, _length + 1, _array)
|
|
1611
1617
|
_length += _Length_43
|
|
1612
|
-
local _array_45 = pair("
|
|
1613
|
-
|
|
1614
|
-
variant = "flat",
|
|
1618
|
+
local _array_45 = pair("Fab", "accent", {
|
|
1619
|
+
variant = "accent",
|
|
1615
1620
|
})
|
|
1616
1621
|
local _Length_44 = #_array_45
|
|
1617
1622
|
table.move(_array_45, 1, _Length_44, _length + 1, _array)
|
|
1618
1623
|
_length += _Length_44
|
|
1619
|
-
local _array_46 = pair("AppBar", "
|
|
1624
|
+
local _array_46 = pair("AppBar", "default", {
|
|
1620
1625
|
text = "Storyblox",
|
|
1621
|
-
variant = "raised",
|
|
1622
1626
|
})
|
|
1623
1627
|
local _Length_45 = #_array_46
|
|
1624
1628
|
table.move(_array_46, 1, _Length_45, _length + 1, _array)
|
|
1625
1629
|
_length += _Length_45
|
|
1626
|
-
local _array_47 = pair("AppBar", "
|
|
1630
|
+
local _array_47 = pair("AppBar", "flat", {
|
|
1627
1631
|
text = "Storyblox",
|
|
1628
|
-
variant = "
|
|
1632
|
+
variant = "flat",
|
|
1629
1633
|
})
|
|
1630
1634
|
local _Length_46 = #_array_47
|
|
1631
1635
|
table.move(_array_47, 1, _Length_46, _length + 1, _array)
|
|
1632
1636
|
_length += _Length_46
|
|
1633
|
-
local _array_48 = pair("
|
|
1637
|
+
local _array_48 = pair("AppBar", "raised", {
|
|
1638
|
+
text = "Storyblox",
|
|
1639
|
+
variant = "raised",
|
|
1640
|
+
})
|
|
1641
|
+
local _Length_47 = #_array_48
|
|
1642
|
+
table.move(_array_48, 1, _Length_47, _length + 1, _array)
|
|
1643
|
+
_length += _Length_47
|
|
1644
|
+
local _array_49 = pair("AppBar", "primary", {
|
|
1645
|
+
text = "Storyblox",
|
|
1646
|
+
variant = "primary",
|
|
1647
|
+
})
|
|
1648
|
+
local _Length_48 = #_array_49
|
|
1649
|
+
table.move(_array_49, 1, _Length_48, _length + 1, _array)
|
|
1650
|
+
_length += _Length_48
|
|
1651
|
+
local _array_50 = pair("BottomNavigation", "default", {
|
|
1634
1652
|
value = "Home",
|
|
1635
1653
|
options = { "Home", "Search", "Profile" },
|
|
1636
1654
|
})
|
|
1637
|
-
table.move(
|
|
1655
|
+
table.move(_array_50, 1, #_array_50, _length + 1, _array)
|
|
1638
1656
|
return _array
|
|
1639
1657
|
end
|
|
1640
1658
|
local function miscRows()
|
|
@@ -1788,192 +1806,198 @@ local function miscRows()
|
|
|
1788
1806
|
local _Length_21 = #_array_22
|
|
1789
1807
|
table.move(_array_22, 1, _Length_21, _length + 1, _array)
|
|
1790
1808
|
_length += _Length_21
|
|
1791
|
-
local _array_23 = pair("
|
|
1792
|
-
|
|
1809
|
+
local _array_23 = pair("Rating", "readonly", {
|
|
1810
|
+
value = 3,
|
|
1793
1811
|
})
|
|
1794
1812
|
local _Length_22 = #_array_23
|
|
1795
1813
|
table.move(_array_23, 1, _Length_22, _length + 1, _array)
|
|
1796
1814
|
_length += _Length_22
|
|
1797
|
-
local _array_24 = pair("Stack", "
|
|
1798
|
-
variant = "
|
|
1815
|
+
local _array_24 = pair("Stack", "column", {
|
|
1816
|
+
variant = "column",
|
|
1799
1817
|
})
|
|
1800
1818
|
local _Length_23 = #_array_24
|
|
1801
1819
|
table.move(_array_24, 1, _Length_23, _length + 1, _array)
|
|
1802
1820
|
_length += _Length_23
|
|
1803
|
-
local _array_25 = pair("Stack", "
|
|
1804
|
-
variant = "
|
|
1805
|
-
size = "large",
|
|
1821
|
+
local _array_25 = pair("Stack", "row", {
|
|
1822
|
+
variant = "row",
|
|
1806
1823
|
})
|
|
1807
1824
|
local _Length_24 = #_array_25
|
|
1808
1825
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
1809
1826
|
_length += _Length_24
|
|
1810
|
-
local _array_26 = pair("
|
|
1827
|
+
local _array_26 = pair("Stack", "spaced", {
|
|
1828
|
+
variant = "column",
|
|
1829
|
+
size = "large",
|
|
1830
|
+
})
|
|
1811
1831
|
local _Length_25 = #_array_26
|
|
1812
1832
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1813
1833
|
_length += _Length_25
|
|
1814
|
-
local _array_27 = pair("Box", "
|
|
1815
|
-
size = "medium",
|
|
1816
|
-
})
|
|
1834
|
+
local _array_27 = pair("Box", "plain")
|
|
1817
1835
|
local _Length_26 = #_array_27
|
|
1818
1836
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1819
1837
|
_length += _Length_26
|
|
1820
|
-
local _array_28 = pair("Box", "
|
|
1821
|
-
|
|
1838
|
+
local _array_28 = pair("Box", "padded", {
|
|
1839
|
+
size = "medium",
|
|
1822
1840
|
})
|
|
1823
1841
|
local _Length_27 = #_array_28
|
|
1824
1842
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1825
1843
|
_length += _Length_27
|
|
1826
|
-
local _array_29 = pair("
|
|
1827
|
-
variant = "
|
|
1844
|
+
local _array_29 = pair("Box", "paper", {
|
|
1845
|
+
variant = "paper",
|
|
1828
1846
|
})
|
|
1829
1847
|
local _Length_28 = #_array_29
|
|
1830
1848
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1831
1849
|
_length += _Length_28
|
|
1832
|
-
local _array_30 = pair("Container", "
|
|
1833
|
-
variant = "
|
|
1850
|
+
local _array_30 = pair("Container", "default", {
|
|
1851
|
+
variant = "lg",
|
|
1834
1852
|
})
|
|
1835
1853
|
local _Length_29 = #_array_30
|
|
1836
1854
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1837
1855
|
_length += _Length_29
|
|
1838
|
-
local _array_31 = pair("Container", "
|
|
1839
|
-
variant = "
|
|
1856
|
+
local _array_31 = pair("Container", "sm", {
|
|
1857
|
+
variant = "sm",
|
|
1840
1858
|
})
|
|
1841
1859
|
local _Length_30 = #_array_31
|
|
1842
1860
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1843
1861
|
_length += _Length_30
|
|
1844
|
-
local _array_32 = pair("
|
|
1862
|
+
local _array_32 = pair("Container", "fluid", {
|
|
1863
|
+
variant = "false",
|
|
1864
|
+
})
|
|
1845
1865
|
local _Length_31 = #_array_32
|
|
1846
1866
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1847
1867
|
_length += _Length_31
|
|
1848
|
-
local _array_33 = pair("Backdrop", "
|
|
1849
|
-
variant = "invisible",
|
|
1850
|
-
})
|
|
1868
|
+
local _array_33 = pair("Backdrop", "default")
|
|
1851
1869
|
local _Length_32 = #_array_33
|
|
1852
1870
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1853
1871
|
_length += _Length_32
|
|
1854
|
-
local _array_34 = pair("Backdrop", "
|
|
1855
|
-
|
|
1872
|
+
local _array_34 = pair("Backdrop", "invisible", {
|
|
1873
|
+
variant = "invisible",
|
|
1856
1874
|
})
|
|
1857
1875
|
local _Length_33 = #_array_34
|
|
1858
1876
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1859
1877
|
_length += _Length_33
|
|
1860
|
-
local _array_35 = pair("
|
|
1861
|
-
|
|
1878
|
+
local _array_35 = pair("Backdrop", "closed", {
|
|
1879
|
+
open = false,
|
|
1862
1880
|
})
|
|
1863
1881
|
local _Length_34 = #_array_35
|
|
1864
1882
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1865
1883
|
_length += _Length_34
|
|
1866
|
-
local _array_36 = pair("Divider", "
|
|
1867
|
-
variant = "
|
|
1884
|
+
local _array_36 = pair("Divider", "horizontal", {
|
|
1885
|
+
variant = "horizontal",
|
|
1868
1886
|
})
|
|
1869
1887
|
local _Length_35 = #_array_36
|
|
1870
1888
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1871
1889
|
_length += _Length_35
|
|
1872
|
-
local _array_37 = pair("
|
|
1890
|
+
local _array_37 = pair("Divider", "vertical", {
|
|
1891
|
+
variant = "vertical",
|
|
1892
|
+
})
|
|
1873
1893
|
local _Length_36 = #_array_37
|
|
1874
1894
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1875
1895
|
_length += _Length_36
|
|
1876
|
-
local _array_38 = pair("ImageList", "
|
|
1877
|
-
size = "small",
|
|
1878
|
-
})
|
|
1896
|
+
local _array_38 = pair("ImageList", "default")
|
|
1879
1897
|
local _Length_37 = #_array_38
|
|
1880
1898
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1881
1899
|
_length += _Length_37
|
|
1882
|
-
local _array_39 = pair("ImageList", "
|
|
1883
|
-
size = "
|
|
1900
|
+
local _array_39 = pair("ImageList", "dense", {
|
|
1901
|
+
size = "small",
|
|
1884
1902
|
})
|
|
1885
1903
|
local _Length_38 = #_array_39
|
|
1886
1904
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1887
1905
|
_length += _Length_38
|
|
1888
|
-
local _array_40 = pair("ImageList", "
|
|
1889
|
-
|
|
1906
|
+
local _array_40 = pair("ImageList", "wide", {
|
|
1907
|
+
size = "large",
|
|
1890
1908
|
})
|
|
1891
1909
|
local _Length_39 = #_array_40
|
|
1892
1910
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1893
1911
|
_length += _Length_39
|
|
1894
|
-
local _array_41 = pair("
|
|
1895
|
-
|
|
1912
|
+
local _array_41 = pair("ImageList", "titled", {
|
|
1913
|
+
text = "Cove",
|
|
1896
1914
|
})
|
|
1897
1915
|
local _Length_40 = #_array_41
|
|
1898
1916
|
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1899
1917
|
_length += _Length_40
|
|
1900
|
-
local _array_42 = pair("SpeedDial", "
|
|
1901
|
-
open =
|
|
1918
|
+
local _array_42 = pair("SpeedDial", "closed", {
|
|
1919
|
+
open = false,
|
|
1902
1920
|
})
|
|
1903
1921
|
local _Length_41 = #_array_42
|
|
1904
1922
|
table.move(_array_42, 1, _Length_41, _length + 1, _array)
|
|
1905
1923
|
_length += _Length_41
|
|
1906
|
-
local _array_43 = pair("SpeedDial", "
|
|
1907
|
-
open =
|
|
1908
|
-
disabled = true,
|
|
1924
|
+
local _array_43 = pair("SpeedDial", "open", {
|
|
1925
|
+
open = true,
|
|
1909
1926
|
})
|
|
1910
1927
|
local _Length_42 = #_array_43
|
|
1911
1928
|
table.move(_array_43, 1, _Length_42, _length + 1, _array)
|
|
1912
1929
|
_length += _Length_42
|
|
1913
|
-
local _array_44 = pair("SpeedDial", "
|
|
1914
|
-
open =
|
|
1915
|
-
|
|
1930
|
+
local _array_44 = pair("SpeedDial", "disabled", {
|
|
1931
|
+
open = false,
|
|
1932
|
+
disabled = true,
|
|
1916
1933
|
})
|
|
1917
1934
|
local _Length_43 = #_array_44
|
|
1918
1935
|
table.move(_array_44, 1, _Length_43, _length + 1, _array)
|
|
1919
1936
|
_length += _Length_43
|
|
1920
|
-
local _array_45 = pair("
|
|
1921
|
-
|
|
1937
|
+
local _array_45 = pair("SpeedDial", "down", {
|
|
1938
|
+
open = true,
|
|
1939
|
+
variant = "down",
|
|
1922
1940
|
})
|
|
1923
1941
|
local _Length_44 = #_array_45
|
|
1924
1942
|
table.move(_array_45, 1, _Length_44, _length + 1, _array)
|
|
1925
1943
|
_length += _Length_44
|
|
1926
|
-
local _array_46 = pair("FormLabel", "
|
|
1944
|
+
local _array_46 = pair("FormLabel", "default", {
|
|
1927
1945
|
text = "Email",
|
|
1928
|
-
value = true,
|
|
1929
1946
|
})
|
|
1930
1947
|
local _Length_45 = #_array_46
|
|
1931
1948
|
table.move(_array_46, 1, _Length_45, _length + 1, _array)
|
|
1932
1949
|
_length += _Length_45
|
|
1933
|
-
local _array_47 = pair("FormLabel", "
|
|
1950
|
+
local _array_47 = pair("FormLabel", "required", {
|
|
1934
1951
|
text = "Email",
|
|
1935
|
-
|
|
1952
|
+
value = true,
|
|
1936
1953
|
})
|
|
1937
1954
|
local _Length_46 = #_array_47
|
|
1938
1955
|
table.move(_array_47, 1, _Length_46, _length + 1, _array)
|
|
1939
1956
|
_length += _Length_46
|
|
1940
|
-
local _array_48 = pair("
|
|
1941
|
-
text = "
|
|
1957
|
+
local _array_48 = pair("FormLabel", "error", {
|
|
1958
|
+
text = "Email",
|
|
1959
|
+
hasError = true,
|
|
1942
1960
|
})
|
|
1943
1961
|
local _Length_47 = #_array_48
|
|
1944
1962
|
table.move(_array_48, 1, _Length_47, _length + 1, _array)
|
|
1945
1963
|
_length += _Length_47
|
|
1946
|
-
local _array_49 = pair("FormHelperText", "
|
|
1947
|
-
text = "
|
|
1948
|
-
hasError = true,
|
|
1964
|
+
local _array_49 = pair("FormHelperText", "default", {
|
|
1965
|
+
text = "We never share this",
|
|
1949
1966
|
})
|
|
1950
1967
|
local _Length_48 = #_array_49
|
|
1951
1968
|
table.move(_array_49, 1, _Length_48, _length + 1, _array)
|
|
1952
1969
|
_length += _Length_48
|
|
1953
|
-
local _array_50 = pair("
|
|
1954
|
-
|
|
1970
|
+
local _array_50 = pair("FormHelperText", "error", {
|
|
1971
|
+
text = "Required",
|
|
1972
|
+
hasError = true,
|
|
1955
1973
|
})
|
|
1956
1974
|
local _Length_49 = #_array_50
|
|
1957
1975
|
table.move(_array_50, 1, _Length_49, _length + 1, _array)
|
|
1958
1976
|
_length += _Length_49
|
|
1959
|
-
local _array_51 = pair("Menu", "
|
|
1960
|
-
open =
|
|
1977
|
+
local _array_51 = pair("Menu", "closed", {
|
|
1978
|
+
open = false,
|
|
1961
1979
|
})
|
|
1962
1980
|
local _Length_50 = #_array_51
|
|
1963
1981
|
table.move(_array_51, 1, _Length_50, _length + 1, _array)
|
|
1964
1982
|
_length += _Length_50
|
|
1965
|
-
local _array_52 = pair("Menu", "
|
|
1983
|
+
local _array_52 = pair("Menu", "open", {
|
|
1966
1984
|
open = true,
|
|
1967
|
-
options = {},
|
|
1968
1985
|
})
|
|
1969
1986
|
local _Length_51 = #_array_52
|
|
1970
1987
|
table.move(_array_52, 1, _Length_51, _length + 1, _array)
|
|
1971
1988
|
_length += _Length_51
|
|
1972
|
-
local _array_53 = pair("Menu", "
|
|
1989
|
+
local _array_53 = pair("Menu", "empty", {
|
|
1990
|
+
open = true,
|
|
1991
|
+
options = {},
|
|
1992
|
+
})
|
|
1993
|
+
local _Length_52 = #_array_53
|
|
1994
|
+
table.move(_array_53, 1, _Length_52, _length + 1, _array)
|
|
1995
|
+
_length += _Length_52
|
|
1996
|
+
local _array_54 = pair("Menu", "dense", {
|
|
1973
1997
|
open = true,
|
|
1974
1998
|
variant = "dense",
|
|
1975
1999
|
})
|
|
1976
|
-
table.move(
|
|
2000
|
+
table.move(_array_54, 1, #_array_54, _length + 1, _array)
|
|
1977
2001
|
return _array
|
|
1978
2002
|
end
|
|
1979
2003
|
local function concatRows(...)
|