@rbxts/uiblox 0.2.0-alpha.11 → 0.2.0-alpha.12
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/badge/components/Badge.d.ts +1 -0
- package/out/ui/packages/badge/components/Badge.luau +18 -8
- package/out/ui/packages/badge/components/Badge.styles.d.ts +3 -1
- package/out/ui/packages/badge/components/Badge.styles.luau +9 -5
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/menu/components/Menu.d.ts +1 -0
- package/out/ui/packages/menu/components/Menu.luau +6 -2
- package/out/ui/packages/rating/components/Rating.d.ts +2 -1
- package/out/ui/packages/rating/components/Rating.luau +5 -0
- package/out/ui/packages/rating/components/Rating.styles.d.ts +2 -0
- package/out/ui/packages/rating/components/Rating.styles.luau +7 -2
- package/out/ui/packages/speedDial/components/SpeedDial.d.ts +2 -0
- package/out/ui/packages/speedDial/components/SpeedDial.luau +12 -3
- package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +4 -1
- package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +9 -4
- package/out/ui/packages/speedDial/index.d.ts +1 -0
- package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
- package/out/ui/packages/stateMatrix.luau +196 -155
- package/out/ui/packages/stepper/components/Stepper.d.ts +1 -0
- package/out/ui/packages/stepper/components/Stepper.luau +7 -1
- package/out/ui/packages/stepper/components/Stepper.styles.d.ts +3 -1
- package/out/ui/packages/stepper/components/Stepper.styles.luau +6 -2
- package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
- package/out/ui/packages/table/components/Table.d.ts +1 -0
- package/out/ui/packages/table/components/Table.luau +4 -1
- package/out/ui/packages/table/components/Table.styles.d.ts +3 -1
- package/out/ui/packages/table/components/Table.styles.luau +10 -6
- package/package.json +1 -1
|
@@ -17,13 +17,20 @@ local function Badge(props)
|
|
|
17
17
|
if invisible == nil then
|
|
18
18
|
invisible = false
|
|
19
19
|
end
|
|
20
|
+
local variant = _binding.variant
|
|
21
|
+
if variant == nil then
|
|
22
|
+
variant = "standard"
|
|
23
|
+
end
|
|
20
24
|
local children = _binding.children
|
|
21
25
|
local className = _binding.className
|
|
22
26
|
local sx = _binding.sx
|
|
23
27
|
local id = _binding.id
|
|
24
28
|
local ref = _binding.ref
|
|
25
|
-
local styles = useBadgeStyles(
|
|
26
|
-
|
|
29
|
+
local styles = useBadgeStyles({
|
|
30
|
+
variant = variant,
|
|
31
|
+
})
|
|
32
|
+
local isDot = variant == "dot"
|
|
33
|
+
local shown = not invisible and (isDot or count > 0)
|
|
27
34
|
local _attributes = {}
|
|
28
35
|
local _condition = id
|
|
29
36
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
@@ -53,13 +60,16 @@ local function Badge(props)
|
|
|
53
60
|
for _k, _v in styles.badge do
|
|
54
61
|
_attributes_1[_k] = _v
|
|
55
62
|
end
|
|
56
|
-
_attributes_1.Text = badgeText(count, max)
|
|
57
|
-
local
|
|
63
|
+
_attributes_1.Text = if isDot then "" else badgeText(count, max)
|
|
64
|
+
local _condition_2 = isDot ~= true
|
|
65
|
+
if _condition_2 then
|
|
66
|
+
local _attributes_2 = table.clone(styles.padding)
|
|
67
|
+
setmetatable(_attributes_2, nil)
|
|
68
|
+
_condition_2 = React.createElement("uipadding", _attributes_2)
|
|
69
|
+
end
|
|
70
|
+
local _attributes_2 = table.clone(styles.corner)
|
|
58
71
|
setmetatable(_attributes_2, nil)
|
|
59
|
-
|
|
60
|
-
local _attributes_3 = table.clone(styles.corner)
|
|
61
|
-
setmetatable(_attributes_3, nil)
|
|
62
|
-
_condition_1 = (React.createElement("textlabel", _attributes_1, _exp_1, React.createElement("uicorner", _attributes_3)))
|
|
72
|
+
_condition_1 = (React.createElement("textlabel", _attributes_1, _condition_2, React.createElement("uicorner", _attributes_2)))
|
|
63
73
|
end
|
|
64
74
|
return React.createElement("frame", _attributes, _exp, _condition_1)
|
|
65
75
|
end
|
|
@@ -3,8 +3,12 @@ local TS = _G[script]
|
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local componentStyles = _theme.componentStyles
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
|
-
local useBadgeStyles = componentStyles("Badge", function(theme)
|
|
7
|
-
local
|
|
6
|
+
local useBadgeStyles = componentStyles("Badge", function(theme, _param)
|
|
7
|
+
local variant = _param.variant
|
|
8
|
+
if variant == nil then
|
|
9
|
+
variant = "standard"
|
|
10
|
+
end
|
|
11
|
+
local diameter = if variant == "dot" then theme.spacing.calc(1) else theme.spacing.calc(2) + theme.padding.calc(1)
|
|
8
12
|
return createStyles({
|
|
9
13
|
root = {
|
|
10
14
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -15,7 +19,7 @@ local useBadgeStyles = componentStyles("Badge", function(theme)
|
|
|
15
19
|
badge = {
|
|
16
20
|
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
17
21
|
Position = UDim2.fromScale(1, 0),
|
|
18
|
-
AutomaticSize = Enum.AutomaticSize.X,
|
|
22
|
+
AutomaticSize = if variant == "dot" then Enum.AutomaticSize.None else Enum.AutomaticSize.X,
|
|
19
23
|
Size = UDim2.fromOffset(diameter, diameter),
|
|
20
24
|
BackgroundColor3 = theme.palette.status.error.main,
|
|
21
25
|
BorderSizePixel = 0,
|
|
@@ -27,8 +31,8 @@ local useBadgeStyles = componentStyles("Badge", function(theme)
|
|
|
27
31
|
ZIndex = 2,
|
|
28
32
|
},
|
|
29
33
|
padding = {
|
|
30
|
-
PaddingLeft = UDim.new(0, theme.padding.calc(0.5)),
|
|
31
|
-
PaddingRight = UDim.new(0, theme.padding.calc(0.5)),
|
|
34
|
+
PaddingLeft = UDim.new(0, if variant == "dot" then 0 else theme.padding.calc(0.5)),
|
|
35
|
+
PaddingRight = UDim.new(0, if variant == "dot" then 0 else theme.padding.calc(0.5)),
|
|
32
36
|
},
|
|
33
37
|
corner = {
|
|
34
38
|
CornerRadius = UDim.new(0.5, 0),
|
|
@@ -2,4 +2,4 @@ export type CheckboxPointer = "rest" | "hover" | "press" | "focus";
|
|
|
2
2
|
export declare function checkboxMark(value: boolean, mixed?: boolean): "" | "–" | "✓";
|
|
3
3
|
export declare function checkboxPointer(hovering: boolean, pressed: boolean, focused: boolean): CheckboxPointer;
|
|
4
4
|
export declare function checkboxBoxTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 1 | 0 | 0.7 | 0.55 | 0.85;
|
|
5
|
-
export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.25 | 0.
|
|
5
|
+
export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.25 | 0.55 | 0.45 | 0.2;
|
|
@@ -6,6 +6,7 @@ local Popup = TS.import(script, script.Parent.Parent.Parent, "popup").Popup
|
|
|
6
6
|
local EmptyListHint = TS.import(script, script.Parent.Parent.Parent, "virtualList").EmptyListHint
|
|
7
7
|
local useMenuStyles = TS.import(script, script.Parent, "Menu.styles").default
|
|
8
8
|
local ROW = 28
|
|
9
|
+
local ROW_DENSE = 22
|
|
9
10
|
local function Menu(props)
|
|
10
11
|
local _binding = props
|
|
11
12
|
local anchor = _binding.anchor
|
|
@@ -15,12 +16,14 @@ local function Menu(props)
|
|
|
15
16
|
local onClose = _binding.onClose
|
|
16
17
|
local emptyText = _binding.emptyText
|
|
17
18
|
local empty = _binding.empty
|
|
19
|
+
local dense = _binding.dense
|
|
18
20
|
local styles = useMenuStyles()
|
|
19
21
|
if not open then
|
|
20
22
|
return nil
|
|
21
23
|
end
|
|
22
24
|
local vacant = #items == 0
|
|
23
|
-
local
|
|
25
|
+
local row = if dense == true then ROW_DENSE else ROW
|
|
26
|
+
local height = if vacant then row else #items * row
|
|
24
27
|
local _attributes = {
|
|
25
28
|
key = "Surface",
|
|
26
29
|
}
|
|
@@ -46,7 +49,7 @@ local function Menu(props)
|
|
|
46
49
|
_condition_1 = "No options"
|
|
47
50
|
end
|
|
48
51
|
_attributes_4.text = _condition_1
|
|
49
|
-
_attributes_4.height =
|
|
52
|
+
_attributes_4.height = row
|
|
50
53
|
_condition = React.createElement(EmptyListHint, _attributes_4)
|
|
51
54
|
end
|
|
52
55
|
_result = _condition
|
|
@@ -58,6 +61,7 @@ local function Menu(props)
|
|
|
58
61
|
key = item.id,
|
|
59
62
|
text = item.text,
|
|
60
63
|
disabled = item.disabled,
|
|
64
|
+
dense = dense,
|
|
61
65
|
onActivated = function()
|
|
62
66
|
if item.disabled == true then
|
|
63
67
|
return nil
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
1
|
+
import { ControlSize, CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
export interface RatingProps {
|
|
3
3
|
value: number;
|
|
4
4
|
max?: number;
|
|
5
|
+
size?: ControlSize;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
onChange: (value: number) => void;
|
|
7
8
|
}
|
|
@@ -11,6 +11,10 @@ local function Rating(props)
|
|
|
11
11
|
if max == nil then
|
|
12
12
|
max = 5
|
|
13
13
|
end
|
|
14
|
+
local size = _binding.size
|
|
15
|
+
if size == nil then
|
|
16
|
+
size = "medium"
|
|
17
|
+
end
|
|
14
18
|
local disabled = _binding.disabled
|
|
15
19
|
local onChange = _binding.onChange
|
|
16
20
|
local className = _binding.className
|
|
@@ -19,6 +23,7 @@ local function Rating(props)
|
|
|
19
23
|
local ref = _binding.ref
|
|
20
24
|
local styles = useRatingStyles({
|
|
21
25
|
disabled = disabled,
|
|
26
|
+
size = size,
|
|
22
27
|
})
|
|
23
28
|
local active = canActivate(disabled)
|
|
24
29
|
local stars = {}
|
|
@@ -8,6 +8,11 @@ local useRatingStyles = componentStyles("Rating", function(theme, _param)
|
|
|
8
8
|
if disabled == nil then
|
|
9
9
|
disabled = false
|
|
10
10
|
end
|
|
11
|
+
local size = _param.size
|
|
12
|
+
if size == nil then
|
|
13
|
+
size = "medium"
|
|
14
|
+
end
|
|
15
|
+
local star = if size == "small" then theme.spacing.calc(2) elseif size == "large" then theme.spacing.calc(4) else theme.spacing.calc(3)
|
|
11
16
|
return createStyles({
|
|
12
17
|
root = {
|
|
13
18
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -20,10 +25,10 @@ local useRatingStyles = componentStyles("Rating", function(theme, _param)
|
|
|
20
25
|
HorizontalAlignment = Enum.HorizontalAlignment.Left,
|
|
21
26
|
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
22
27
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
23
|
-
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
28
|
+
Padding = UDim.new(0, theme.padding.calc(if size == "small" then 0.25 else 0.5)),
|
|
24
29
|
},
|
|
25
30
|
star = {
|
|
26
|
-
Size = UDim2.fromOffset(
|
|
31
|
+
Size = UDim2.fromOffset(star, star),
|
|
27
32
|
BackgroundTransparency = 1,
|
|
28
33
|
BorderSizePixel = 0,
|
|
29
34
|
AutoButtonColor = false,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
import { Icons } from "../../../enums/index";
|
|
3
|
+
import { SpeedDialDirection } from "./SpeedDial.styles";
|
|
3
4
|
export interface SpeedDialAction {
|
|
4
5
|
icon: Icons;
|
|
5
6
|
disabled?: boolean;
|
|
@@ -12,6 +13,7 @@ export interface SpeedDialProps {
|
|
|
12
13
|
icon?: Icons;
|
|
13
14
|
openIcon?: Icons;
|
|
14
15
|
disabled?: boolean;
|
|
16
|
+
direction?: SpeedDialDirection;
|
|
15
17
|
}
|
|
16
18
|
declare function SpeedDial(props: CustomizedProps<Frame, SpeedDialProps>): JSX.Element;
|
|
17
19
|
export default SpeedDial;
|
|
@@ -18,11 +18,20 @@ local function SpeedDial(props)
|
|
|
18
18
|
openIcon = Icons.Close
|
|
19
19
|
end
|
|
20
20
|
local disabled = _binding.disabled
|
|
21
|
+
local direction = _binding.direction
|
|
22
|
+
if direction == nil then
|
|
23
|
+
direction = "up"
|
|
24
|
+
end
|
|
21
25
|
local className = _binding.className
|
|
22
26
|
local sx = _binding.sx
|
|
23
27
|
local id = _binding.id
|
|
24
28
|
local ref = _binding.ref
|
|
25
|
-
local styles = useSpeedDialStyles(
|
|
29
|
+
local styles = useSpeedDialStyles({
|
|
30
|
+
direction = direction,
|
|
31
|
+
})
|
|
32
|
+
local mainFirst = direction == "down" or direction == "right"
|
|
33
|
+
local mainOrder = if mainFirst then 0 else 1000
|
|
34
|
+
local actionBase = if mainFirst then 1 else 0
|
|
26
35
|
local _attributes = {}
|
|
27
36
|
local _condition = id
|
|
28
37
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
@@ -64,7 +73,7 @@ local function SpeedDial(props)
|
|
|
64
73
|
onOpenChange(false)
|
|
65
74
|
end,
|
|
66
75
|
className = {
|
|
67
|
-
LayoutOrder = index,
|
|
76
|
+
LayoutOrder = actionBase + index,
|
|
68
77
|
},
|
|
69
78
|
})
|
|
70
79
|
end
|
|
@@ -82,7 +91,7 @@ local function SpeedDial(props)
|
|
|
82
91
|
return onOpenChange(not open)
|
|
83
92
|
end,
|
|
84
93
|
className = {
|
|
85
|
-
LayoutOrder =
|
|
94
|
+
LayoutOrder = mainOrder,
|
|
86
95
|
},
|
|
87
96
|
}))
|
|
88
97
|
end
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export type SpeedDialDirection = "up" | "down" | "left" | "right";
|
|
2
|
+
declare const useSpeedDialStyles: (props: {
|
|
3
|
+
direction?: SpeedDialDirection;
|
|
4
|
+
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
2
5
|
export default useSpeedDialStyles;
|
|
@@ -3,7 +3,12 @@ local TS = _G[script]
|
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local componentStyles = _theme.componentStyles
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
|
-
local useSpeedDialStyles = componentStyles("SpeedDial", function(theme)
|
|
6
|
+
local useSpeedDialStyles = componentStyles("SpeedDial", function(theme, _param)
|
|
7
|
+
local direction = _param.direction
|
|
8
|
+
if direction == nil then
|
|
9
|
+
direction = "up"
|
|
10
|
+
end
|
|
11
|
+
local vertical = direction == "up" or direction == "down"
|
|
7
12
|
return createStyles({
|
|
8
13
|
root = {
|
|
9
14
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -12,9 +17,9 @@ local useSpeedDialStyles = componentStyles("SpeedDial", function(theme)
|
|
|
12
17
|
BorderSizePixel = 0,
|
|
13
18
|
},
|
|
14
19
|
list = {
|
|
15
|
-
FillDirection = Enum.FillDirection.Vertical,
|
|
16
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Center,
|
|
17
|
-
VerticalAlignment = Enum.VerticalAlignment.Bottom,
|
|
20
|
+
FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
|
|
21
|
+
HorizontalAlignment = if direction == "left" then Enum.HorizontalAlignment.Right elseif direction == "right" then Enum.HorizontalAlignment.Left else Enum.HorizontalAlignment.Center,
|
|
22
|
+
VerticalAlignment = if direction == "up" then Enum.VerticalAlignment.Bottom elseif direction == "down" then Enum.VerticalAlignment.Top else Enum.VerticalAlignment.Center,
|
|
18
23
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
19
24
|
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
20
25
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type SplitPointer = "rest" | "hover" | "press";
|
|
2
2
|
export declare function splitPointer(hovering: boolean, pressed: boolean): SplitPointer;
|
|
3
|
-
export declare function splitRuleTransparency(pointer: SplitPointer, disabled?: boolean): 0.25 | 0.
|
|
3
|
+
export declare function splitRuleTransparency(pointer: SplitPointer, disabled?: boolean): 0.25 | 0.35 | 0.7 | 0.55;
|
|
4
4
|
export declare function splitMarkTransparency(pointer: SplitPointer, disabled?: boolean): 0 | 0.55 | 0.1;
|
|
5
5
|
export declare function splitHitTransparency(pointer: SplitPointer, disabled?: boolean): 1 | 0.9 | 0.94;
|
|
@@ -1316,271 +1316,291 @@ local function chromeRows()
|
|
|
1316
1316
|
local _Length = #_array_1
|
|
1317
1317
|
table.move(_array_1, 1, _Length, _length + 1, _array)
|
|
1318
1318
|
_length += _Length
|
|
1319
|
-
local _array_2 = pair("
|
|
1320
|
-
|
|
1319
|
+
local _array_2 = pair("Badge", "dot", {
|
|
1320
|
+
variant = "dot",
|
|
1321
1321
|
})
|
|
1322
1322
|
local _Length_1 = #_array_2
|
|
1323
1323
|
table.move(_array_2, 1, _Length_1, _length + 1, _array)
|
|
1324
1324
|
_length += _Length_1
|
|
1325
|
-
local _array_3 = pair("Avatar", "
|
|
1326
|
-
|
|
1325
|
+
local _array_3 = pair("Avatar", "initials", {
|
|
1326
|
+
text = "BL",
|
|
1327
1327
|
})
|
|
1328
1328
|
local _Length_2 = #_array_3
|
|
1329
1329
|
table.move(_array_3, 1, _Length_2, _length + 1, _array)
|
|
1330
1330
|
_length += _Length_2
|
|
1331
|
-
local _array_4 = pair("Avatar", "
|
|
1332
|
-
|
|
1331
|
+
local _array_4 = pair("Avatar", "image", {
|
|
1332
|
+
variant = "image",
|
|
1333
1333
|
})
|
|
1334
1334
|
local _Length_3 = #_array_4
|
|
1335
1335
|
table.move(_array_4, 1, _Length_3, _length + 1, _array)
|
|
1336
1336
|
_length += _Length_3
|
|
1337
|
-
local _array_5 = pair("
|
|
1338
|
-
|
|
1337
|
+
local _array_5 = pair("Avatar", "small", {
|
|
1338
|
+
size = "small",
|
|
1339
1339
|
})
|
|
1340
1340
|
local _Length_4 = #_array_5
|
|
1341
1341
|
table.move(_array_5, 1, _Length_4, _length + 1, _array)
|
|
1342
1342
|
_length += _Length_4
|
|
1343
|
-
local _array_6 = pair("Drawer", "
|
|
1344
|
-
open =
|
|
1345
|
-
variant = "left",
|
|
1343
|
+
local _array_6 = pair("Drawer", "closed", {
|
|
1344
|
+
open = false,
|
|
1346
1345
|
})
|
|
1347
1346
|
local _Length_5 = #_array_6
|
|
1348
1347
|
table.move(_array_6, 1, _Length_5, _length + 1, _array)
|
|
1349
1348
|
_length += _Length_5
|
|
1350
|
-
local _array_7 = pair("Drawer", "
|
|
1349
|
+
local _array_7 = pair("Drawer", "left", {
|
|
1351
1350
|
open = true,
|
|
1352
|
-
variant = "
|
|
1351
|
+
variant = "left",
|
|
1353
1352
|
})
|
|
1354
1353
|
local _Length_6 = #_array_7
|
|
1355
1354
|
table.move(_array_7, 1, _Length_6, _length + 1, _array)
|
|
1356
1355
|
_length += _Length_6
|
|
1357
|
-
local _array_8 = pair("Drawer", "
|
|
1356
|
+
local _array_8 = pair("Drawer", "right", {
|
|
1358
1357
|
open = true,
|
|
1359
|
-
variant = "
|
|
1358
|
+
variant = "right",
|
|
1360
1359
|
})
|
|
1361
1360
|
local _Length_7 = #_array_8
|
|
1362
1361
|
table.move(_array_8, 1, _Length_7, _length + 1, _array)
|
|
1363
1362
|
_length += _Length_7
|
|
1364
|
-
local _array_9 = pair("
|
|
1365
|
-
|
|
1363
|
+
local _array_9 = pair("Drawer", "wide", {
|
|
1364
|
+
open = true,
|
|
1365
|
+
variant = "wide",
|
|
1366
1366
|
})
|
|
1367
1367
|
local _Length_8 = #_array_9
|
|
1368
1368
|
table.move(_array_9, 1, _Length_8, _length + 1, _array)
|
|
1369
1369
|
_length += _Length_8
|
|
1370
|
-
local _array_10 = pair("Breadcrumbs", "
|
|
1371
|
-
text = "Home
|
|
1370
|
+
local _array_10 = pair("Breadcrumbs", "single", {
|
|
1371
|
+
text = "Home",
|
|
1372
1372
|
})
|
|
1373
1373
|
local _Length_9 = #_array_10
|
|
1374
1374
|
table.move(_array_10, 1, _Length_9, _length + 1, _array)
|
|
1375
1375
|
_length += _Length_9
|
|
1376
|
-
local _array_11 = pair("Breadcrumbs", "
|
|
1377
|
-
text = "Home /
|
|
1378
|
-
size = "small",
|
|
1376
|
+
local _array_11 = pair("Breadcrumbs", "trail", {
|
|
1377
|
+
text = "Home / Library / Item",
|
|
1379
1378
|
})
|
|
1380
1379
|
local _Length_10 = #_array_11
|
|
1381
1380
|
table.move(_array_11, 1, _Length_10, _length + 1, _array)
|
|
1382
1381
|
_length += _Length_10
|
|
1383
|
-
local _array_12 = pair("Breadcrumbs", "
|
|
1384
|
-
text = "Home
|
|
1382
|
+
local _array_12 = pair("Breadcrumbs", "collapsed", {
|
|
1383
|
+
text = "Home / … / Item",
|
|
1384
|
+
size = "small",
|
|
1385
1385
|
})
|
|
1386
1386
|
local _Length_11 = #_array_12
|
|
1387
1387
|
table.move(_array_12, 1, _Length_11, _length + 1, _array)
|
|
1388
1388
|
_length += _Length_11
|
|
1389
|
-
local _array_13 = pair("
|
|
1390
|
-
|
|
1389
|
+
local _array_13 = pair("Breadcrumbs", "custom-separator", {
|
|
1390
|
+
text = "Home > Item",
|
|
1391
1391
|
})
|
|
1392
1392
|
local _Length_12 = #_array_13
|
|
1393
1393
|
table.move(_array_13, 1, _Length_12, _length + 1, _array)
|
|
1394
1394
|
_length += _Length_12
|
|
1395
|
-
local _array_14 = pair("Pagination", "
|
|
1396
|
-
value =
|
|
1395
|
+
local _array_14 = pair("Pagination", "first", {
|
|
1396
|
+
value = 1,
|
|
1397
1397
|
})
|
|
1398
1398
|
local _Length_13 = #_array_14
|
|
1399
1399
|
table.move(_array_14, 1, _Length_13, _length + 1, _array)
|
|
1400
1400
|
_length += _Length_13
|
|
1401
|
-
local _array_15 = pair("Pagination", "
|
|
1402
|
-
value =
|
|
1403
|
-
size = "large",
|
|
1401
|
+
local _array_15 = pair("Pagination", "middle", {
|
|
1402
|
+
value = 3,
|
|
1404
1403
|
})
|
|
1405
1404
|
local _Length_14 = #_array_15
|
|
1406
1405
|
table.move(_array_15, 1, _Length_14, _length + 1, _array)
|
|
1407
1406
|
_length += _Length_14
|
|
1408
|
-
local _array_16 = pair("Pagination", "
|
|
1409
|
-
value =
|
|
1410
|
-
|
|
1407
|
+
local _array_16 = pair("Pagination", "collapsed", {
|
|
1408
|
+
value = 10,
|
|
1409
|
+
size = "large",
|
|
1411
1410
|
})
|
|
1412
1411
|
local _Length_15 = #_array_16
|
|
1413
1412
|
table.move(_array_16, 1, _Length_15, _length + 1, _array)
|
|
1414
1413
|
_length += _Length_15
|
|
1415
|
-
local _array_17 = pair("
|
|
1416
|
-
value =
|
|
1414
|
+
local _array_17 = pair("Pagination", "disabled", {
|
|
1415
|
+
value = 2,
|
|
1416
|
+
disabled = true,
|
|
1417
1417
|
})
|
|
1418
1418
|
local _Length_16 = #_array_17
|
|
1419
1419
|
table.move(_array_17, 1, _Length_16, _length + 1, _array)
|
|
1420
1420
|
_length += _Length_16
|
|
1421
|
-
local _array_18 = pair("Stepper", "
|
|
1422
|
-
value =
|
|
1421
|
+
local _array_18 = pair("Stepper", "first", {
|
|
1422
|
+
value = 0,
|
|
1423
1423
|
})
|
|
1424
1424
|
local _Length_17 = #_array_18
|
|
1425
1425
|
table.move(_array_18, 1, _Length_17, _length + 1, _array)
|
|
1426
1426
|
_length += _Length_17
|
|
1427
|
-
local _array_19 = pair("Stepper", "
|
|
1428
|
-
value =
|
|
1427
|
+
local _array_19 = pair("Stepper", "middle", {
|
|
1428
|
+
value = 1,
|
|
1429
1429
|
})
|
|
1430
1430
|
local _Length_18 = #_array_19
|
|
1431
1431
|
table.move(_array_19, 1, _Length_18, _length + 1, _array)
|
|
1432
1432
|
_length += _Length_18
|
|
1433
|
-
local _array_20 = pair("
|
|
1434
|
-
|
|
1433
|
+
local _array_20 = pair("Stepper", "last", {
|
|
1434
|
+
value = 2,
|
|
1435
1435
|
})
|
|
1436
1436
|
local _Length_19 = #_array_20
|
|
1437
1437
|
table.move(_array_20, 1, _Length_19, _length + 1, _array)
|
|
1438
1438
|
_length += _Length_19
|
|
1439
|
-
local _array_21 = pair("
|
|
1440
|
-
|
|
1439
|
+
local _array_21 = pair("Stepper", "vertical", {
|
|
1440
|
+
value = 1,
|
|
1441
|
+
variant = "vertical",
|
|
1441
1442
|
})
|
|
1442
1443
|
local _Length_20 = #_array_21
|
|
1443
1444
|
table.move(_array_21, 1, _Length_20, _length + 1, _array)
|
|
1444
1445
|
_length += _Length_20
|
|
1445
|
-
local _array_22 = pair("Accordion", "
|
|
1446
|
+
local _array_22 = pair("Accordion", "closed", {
|
|
1446
1447
|
open = false,
|
|
1447
|
-
disabled = true,
|
|
1448
1448
|
})
|
|
1449
1449
|
local _Length_21 = #_array_22
|
|
1450
1450
|
table.move(_array_22, 1, _Length_21, _length + 1, _array)
|
|
1451
1451
|
_length += _Length_21
|
|
1452
|
-
local _array_23 = pair("
|
|
1452
|
+
local _array_23 = pair("Accordion", "open", {
|
|
1453
1453
|
open = true,
|
|
1454
|
-
text = "Saved",
|
|
1455
1454
|
})
|
|
1456
1455
|
local _Length_22 = #_array_23
|
|
1457
1456
|
table.move(_array_23, 1, _Length_22, _length + 1, _array)
|
|
1458
1457
|
_length += _Length_22
|
|
1459
|
-
local _array_24 = pair("
|
|
1458
|
+
local _array_24 = pair("Accordion", "disabled", {
|
|
1460
1459
|
open = false,
|
|
1461
|
-
|
|
1460
|
+
disabled = true,
|
|
1462
1461
|
})
|
|
1463
1462
|
local _Length_23 = #_array_24
|
|
1464
1463
|
table.move(_array_24, 1, _Length_23, _length + 1, _array)
|
|
1465
1464
|
_length += _Length_23
|
|
1466
|
-
local _array_25 = pair("
|
|
1467
|
-
|
|
1465
|
+
local _array_25 = pair("Snackbar", "open", {
|
|
1466
|
+
open = true,
|
|
1467
|
+
text = "Saved",
|
|
1468
1468
|
})
|
|
1469
1469
|
local _Length_24 = #_array_25
|
|
1470
1470
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
1471
1471
|
_length += _Length_24
|
|
1472
|
-
local _array_26 = pair("
|
|
1473
|
-
|
|
1472
|
+
local _array_26 = pair("Snackbar", "closed", {
|
|
1473
|
+
open = false,
|
|
1474
|
+
text = "Saved",
|
|
1474
1475
|
})
|
|
1475
1476
|
local _Length_25 = #_array_26
|
|
1476
1477
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1477
1478
|
_length += _Length_25
|
|
1478
|
-
local _array_27 = pair("Table", "
|
|
1479
|
-
text = "
|
|
1480
|
-
value = 0,
|
|
1479
|
+
local _array_27 = pair("Table", "empty", {
|
|
1480
|
+
text = "",
|
|
1481
1481
|
})
|
|
1482
1482
|
local _Length_26 = #_array_27
|
|
1483
1483
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1484
1484
|
_length += _Length_26
|
|
1485
|
-
local _array_28 = pair("
|
|
1486
|
-
|
|
1487
|
-
options = { "Continue", "Other" },
|
|
1485
|
+
local _array_28 = pair("Table", "default", {
|
|
1486
|
+
text = "Name / Role",
|
|
1488
1487
|
})
|
|
1489
1488
|
local _Length_27 = #_array_28
|
|
1490
1489
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1491
1490
|
_length += _Length_27
|
|
1492
|
-
local _array_29 = pair("
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
open = true,
|
|
1491
|
+
local _array_29 = pair("Table", "selected", {
|
|
1492
|
+
text = "Name / Role",
|
|
1493
|
+
value = 0,
|
|
1496
1494
|
})
|
|
1497
1495
|
local _Length_28 = #_array_29
|
|
1498
1496
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1499
1497
|
_length += _Length_28
|
|
1500
|
-
local _array_30 = pair("
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
disabled = true,
|
|
1498
|
+
local _array_30 = pair("Table", "dense", {
|
|
1499
|
+
text = "Name / Role",
|
|
1500
|
+
variant = "dense",
|
|
1504
1501
|
})
|
|
1505
1502
|
local _Length_29 = #_array_30
|
|
1506
1503
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1507
1504
|
_length += _Length_29
|
|
1508
|
-
local _array_31 = pair("Autocomplete", "
|
|
1509
|
-
value = "",
|
|
1510
|
-
options = {},
|
|
1511
|
-
open = true,
|
|
1505
|
+
local _array_31 = pair("Autocomplete", "default", {
|
|
1506
|
+
value = "Continue",
|
|
1507
|
+
options = { "Continue", "Other" },
|
|
1512
1508
|
})
|
|
1513
1509
|
local _Length_30 = #_array_31
|
|
1514
1510
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1515
1511
|
_length += _Length_30
|
|
1516
|
-
local _array_32 = pair("Autocomplete", "
|
|
1512
|
+
local _array_32 = pair("Autocomplete", "open", {
|
|
1517
1513
|
value = "Continue",
|
|
1518
1514
|
options = { "Continue", "Other" },
|
|
1519
1515
|
open = true,
|
|
1520
|
-
filter = "zzz",
|
|
1521
1516
|
})
|
|
1522
1517
|
local _Length_31 = #_array_32
|
|
1523
1518
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1524
1519
|
_length += _Length_31
|
|
1525
|
-
local _array_33 = pair("
|
|
1520
|
+
local _array_33 = pair("Autocomplete", "disabled", {
|
|
1521
|
+
value = "Continue",
|
|
1522
|
+
options = { "Continue", "Other" },
|
|
1523
|
+
disabled = true,
|
|
1524
|
+
})
|
|
1526
1525
|
local _Length_32 = #_array_33
|
|
1527
1526
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1528
1527
|
_length += _Length_32
|
|
1529
|
-
local _array_34 = pair("
|
|
1530
|
-
|
|
1528
|
+
local _array_34 = pair("Autocomplete", "empty", {
|
|
1529
|
+
value = "",
|
|
1530
|
+
options = {},
|
|
1531
|
+
open = true,
|
|
1531
1532
|
})
|
|
1532
1533
|
local _Length_33 = #_array_34
|
|
1533
1534
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1534
1535
|
_length += _Length_33
|
|
1535
|
-
local _array_35 = pair("
|
|
1536
|
-
|
|
1536
|
+
local _array_35 = pair("Autocomplete", "no-results", {
|
|
1537
|
+
value = "Continue",
|
|
1538
|
+
options = { "Continue", "Other" },
|
|
1539
|
+
open = true,
|
|
1540
|
+
filter = "zzz",
|
|
1537
1541
|
})
|
|
1538
1542
|
local _Length_34 = #_array_35
|
|
1539
1543
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1540
1544
|
_length += _Length_34
|
|
1541
|
-
local _array_36 = pair("Fab", "
|
|
1542
|
-
size = "large",
|
|
1543
|
-
})
|
|
1545
|
+
local _array_36 = pair("Fab", "default")
|
|
1544
1546
|
local _Length_35 = #_array_36
|
|
1545
1547
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1546
1548
|
_length += _Length_35
|
|
1547
|
-
local _array_37 = pair("Fab", "
|
|
1548
|
-
|
|
1549
|
+
local _array_37 = pair("Fab", "extended", {
|
|
1550
|
+
text = "Compose",
|
|
1549
1551
|
})
|
|
1550
1552
|
local _Length_36 = #_array_37
|
|
1551
1553
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1552
1554
|
_length += _Length_36
|
|
1553
|
-
local _array_38 = pair("Fab", "
|
|
1554
|
-
|
|
1555
|
+
local _array_38 = pair("Fab", "small", {
|
|
1556
|
+
size = "small",
|
|
1555
1557
|
})
|
|
1556
1558
|
local _Length_37 = #_array_38
|
|
1557
1559
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1558
1560
|
_length += _Length_37
|
|
1559
|
-
local _array_39 = pair("
|
|
1560
|
-
|
|
1561
|
+
local _array_39 = pair("Fab", "large", {
|
|
1562
|
+
size = "large",
|
|
1561
1563
|
})
|
|
1562
1564
|
local _Length_38 = #_array_39
|
|
1563
1565
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1564
1566
|
_length += _Length_38
|
|
1565
|
-
local _array_40 = pair("
|
|
1566
|
-
|
|
1567
|
-
variant = "flat",
|
|
1567
|
+
local _array_40 = pair("Fab", "disabled", {
|
|
1568
|
+
disabled = true,
|
|
1568
1569
|
})
|
|
1569
1570
|
local _Length_39 = #_array_40
|
|
1570
1571
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1571
1572
|
_length += _Length_39
|
|
1572
|
-
local _array_41 = pair("
|
|
1573
|
-
|
|
1574
|
-
variant = "raised",
|
|
1573
|
+
local _array_41 = pair("Fab", "loading", {
|
|
1574
|
+
loading = true,
|
|
1575
1575
|
})
|
|
1576
1576
|
local _Length_40 = #_array_41
|
|
1577
1577
|
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1578
1578
|
_length += _Length_40
|
|
1579
|
-
local _array_42 = pair("
|
|
1579
|
+
local _array_42 = pair("AppBar", "default", {
|
|
1580
|
+
text = "Storyblox",
|
|
1581
|
+
})
|
|
1582
|
+
local _Length_41 = #_array_42
|
|
1583
|
+
table.move(_array_42, 1, _Length_41, _length + 1, _array)
|
|
1584
|
+
_length += _Length_41
|
|
1585
|
+
local _array_43 = pair("AppBar", "flat", {
|
|
1586
|
+
text = "Storyblox",
|
|
1587
|
+
variant = "flat",
|
|
1588
|
+
})
|
|
1589
|
+
local _Length_42 = #_array_43
|
|
1590
|
+
table.move(_array_43, 1, _Length_42, _length + 1, _array)
|
|
1591
|
+
_length += _Length_42
|
|
1592
|
+
local _array_44 = pair("AppBar", "raised", {
|
|
1593
|
+
text = "Storyblox",
|
|
1594
|
+
variant = "raised",
|
|
1595
|
+
})
|
|
1596
|
+
local _Length_43 = #_array_44
|
|
1597
|
+
table.move(_array_44, 1, _Length_43, _length + 1, _array)
|
|
1598
|
+
_length += _Length_43
|
|
1599
|
+
local _array_45 = pair("BottomNavigation", "default", {
|
|
1580
1600
|
value = "Home",
|
|
1581
1601
|
options = { "Home", "Search", "Profile" },
|
|
1582
1602
|
})
|
|
1583
|
-
table.move(
|
|
1603
|
+
table.move(_array_45, 1, #_array_45, _length + 1, _array)
|
|
1584
1604
|
return _array
|
|
1585
1605
|
end
|
|
1586
1606
|
local function miscRows()
|
|
@@ -1706,172 +1726,193 @@ local function miscRows()
|
|
|
1706
1726
|
local _Length_17 = #_array_18
|
|
1707
1727
|
table.move(_array_18, 1, _Length_17, _length + 1, _array)
|
|
1708
1728
|
_length += _Length_17
|
|
1709
|
-
local _array_19 = pair("
|
|
1710
|
-
|
|
1729
|
+
local _array_19 = pair("Rating", "size-small", {
|
|
1730
|
+
value = 3,
|
|
1731
|
+
size = "small",
|
|
1711
1732
|
})
|
|
1712
1733
|
local _Length_18 = #_array_19
|
|
1713
1734
|
table.move(_array_19, 1, _Length_18, _length + 1, _array)
|
|
1714
1735
|
_length += _Length_18
|
|
1715
|
-
local _array_20 = pair("Stack", "
|
|
1716
|
-
variant = "
|
|
1736
|
+
local _array_20 = pair("Stack", "column", {
|
|
1737
|
+
variant = "column",
|
|
1717
1738
|
})
|
|
1718
1739
|
local _Length_19 = #_array_20
|
|
1719
1740
|
table.move(_array_20, 1, _Length_19, _length + 1, _array)
|
|
1720
1741
|
_length += _Length_19
|
|
1721
|
-
local _array_21 = pair("Stack", "
|
|
1722
|
-
variant = "
|
|
1723
|
-
size = "large",
|
|
1742
|
+
local _array_21 = pair("Stack", "row", {
|
|
1743
|
+
variant = "row",
|
|
1724
1744
|
})
|
|
1725
1745
|
local _Length_20 = #_array_21
|
|
1726
1746
|
table.move(_array_21, 1, _Length_20, _length + 1, _array)
|
|
1727
1747
|
_length += _Length_20
|
|
1728
|
-
local _array_22 = pair("
|
|
1748
|
+
local _array_22 = pair("Stack", "spaced", {
|
|
1749
|
+
variant = "column",
|
|
1750
|
+
size = "large",
|
|
1751
|
+
})
|
|
1729
1752
|
local _Length_21 = #_array_22
|
|
1730
1753
|
table.move(_array_22, 1, _Length_21, _length + 1, _array)
|
|
1731
1754
|
_length += _Length_21
|
|
1732
|
-
local _array_23 = pair("Box", "
|
|
1733
|
-
size = "medium",
|
|
1734
|
-
})
|
|
1755
|
+
local _array_23 = pair("Box", "plain")
|
|
1735
1756
|
local _Length_22 = #_array_23
|
|
1736
1757
|
table.move(_array_23, 1, _Length_22, _length + 1, _array)
|
|
1737
1758
|
_length += _Length_22
|
|
1738
|
-
local _array_24 = pair("Box", "
|
|
1739
|
-
|
|
1759
|
+
local _array_24 = pair("Box", "padded", {
|
|
1760
|
+
size = "medium",
|
|
1740
1761
|
})
|
|
1741
1762
|
local _Length_23 = #_array_24
|
|
1742
1763
|
table.move(_array_24, 1, _Length_23, _length + 1, _array)
|
|
1743
1764
|
_length += _Length_23
|
|
1744
|
-
local _array_25 = pair("
|
|
1745
|
-
variant = "
|
|
1765
|
+
local _array_25 = pair("Box", "paper", {
|
|
1766
|
+
variant = "paper",
|
|
1746
1767
|
})
|
|
1747
1768
|
local _Length_24 = #_array_25
|
|
1748
1769
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
1749
1770
|
_length += _Length_24
|
|
1750
|
-
local _array_26 = pair("Container", "
|
|
1751
|
-
variant = "
|
|
1771
|
+
local _array_26 = pair("Container", "default", {
|
|
1772
|
+
variant = "lg",
|
|
1752
1773
|
})
|
|
1753
1774
|
local _Length_25 = #_array_26
|
|
1754
1775
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1755
1776
|
_length += _Length_25
|
|
1756
|
-
local _array_27 = pair("Container", "
|
|
1757
|
-
variant = "
|
|
1777
|
+
local _array_27 = pair("Container", "sm", {
|
|
1778
|
+
variant = "sm",
|
|
1758
1779
|
})
|
|
1759
1780
|
local _Length_26 = #_array_27
|
|
1760
1781
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1761
1782
|
_length += _Length_26
|
|
1762
|
-
local _array_28 = pair("
|
|
1783
|
+
local _array_28 = pair("Container", "fluid", {
|
|
1784
|
+
variant = "false",
|
|
1785
|
+
})
|
|
1763
1786
|
local _Length_27 = #_array_28
|
|
1764
1787
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1765
1788
|
_length += _Length_27
|
|
1766
|
-
local _array_29 = pair("Backdrop", "
|
|
1767
|
-
variant = "invisible",
|
|
1768
|
-
})
|
|
1789
|
+
local _array_29 = pair("Backdrop", "default")
|
|
1769
1790
|
local _Length_28 = #_array_29
|
|
1770
1791
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1771
1792
|
_length += _Length_28
|
|
1772
|
-
local _array_30 = pair("Backdrop", "
|
|
1773
|
-
|
|
1793
|
+
local _array_30 = pair("Backdrop", "invisible", {
|
|
1794
|
+
variant = "invisible",
|
|
1774
1795
|
})
|
|
1775
1796
|
local _Length_29 = #_array_30
|
|
1776
1797
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1777
1798
|
_length += _Length_29
|
|
1778
|
-
local _array_31 = pair("
|
|
1779
|
-
|
|
1799
|
+
local _array_31 = pair("Backdrop", "closed", {
|
|
1800
|
+
open = false,
|
|
1780
1801
|
})
|
|
1781
1802
|
local _Length_30 = #_array_31
|
|
1782
1803
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1783
1804
|
_length += _Length_30
|
|
1784
|
-
local _array_32 = pair("Divider", "
|
|
1785
|
-
variant = "
|
|
1805
|
+
local _array_32 = pair("Divider", "horizontal", {
|
|
1806
|
+
variant = "horizontal",
|
|
1786
1807
|
})
|
|
1787
1808
|
local _Length_31 = #_array_32
|
|
1788
1809
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1789
1810
|
_length += _Length_31
|
|
1790
|
-
local _array_33 = pair("
|
|
1811
|
+
local _array_33 = pair("Divider", "vertical", {
|
|
1812
|
+
variant = "vertical",
|
|
1813
|
+
})
|
|
1791
1814
|
local _Length_32 = #_array_33
|
|
1792
1815
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1793
1816
|
_length += _Length_32
|
|
1794
|
-
local _array_34 = pair("ImageList", "
|
|
1795
|
-
size = "small",
|
|
1796
|
-
})
|
|
1817
|
+
local _array_34 = pair("ImageList", "default")
|
|
1797
1818
|
local _Length_33 = #_array_34
|
|
1798
1819
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1799
1820
|
_length += _Length_33
|
|
1800
|
-
local _array_35 = pair("ImageList", "
|
|
1801
|
-
size = "
|
|
1821
|
+
local _array_35 = pair("ImageList", "dense", {
|
|
1822
|
+
size = "small",
|
|
1802
1823
|
})
|
|
1803
1824
|
local _Length_34 = #_array_35
|
|
1804
1825
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1805
1826
|
_length += _Length_34
|
|
1806
|
-
local _array_36 = pair("
|
|
1807
|
-
|
|
1827
|
+
local _array_36 = pair("ImageList", "wide", {
|
|
1828
|
+
size = "large",
|
|
1808
1829
|
})
|
|
1809
1830
|
local _Length_35 = #_array_36
|
|
1810
1831
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1811
1832
|
_length += _Length_35
|
|
1812
|
-
local _array_37 = pair("SpeedDial", "
|
|
1813
|
-
open =
|
|
1833
|
+
local _array_37 = pair("SpeedDial", "closed", {
|
|
1834
|
+
open = false,
|
|
1814
1835
|
})
|
|
1815
1836
|
local _Length_36 = #_array_37
|
|
1816
1837
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1817
1838
|
_length += _Length_36
|
|
1818
|
-
local _array_38 = pair("SpeedDial", "
|
|
1819
|
-
open =
|
|
1820
|
-
disabled = true,
|
|
1839
|
+
local _array_38 = pair("SpeedDial", "open", {
|
|
1840
|
+
open = true,
|
|
1821
1841
|
})
|
|
1822
1842
|
local _Length_37 = #_array_38
|
|
1823
1843
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1824
1844
|
_length += _Length_37
|
|
1825
|
-
local _array_39 = pair("
|
|
1826
|
-
|
|
1845
|
+
local _array_39 = pair("SpeedDial", "disabled", {
|
|
1846
|
+
open = false,
|
|
1847
|
+
disabled = true,
|
|
1827
1848
|
})
|
|
1828
1849
|
local _Length_38 = #_array_39
|
|
1829
1850
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1830
1851
|
_length += _Length_38
|
|
1831
|
-
local _array_40 = pair("
|
|
1832
|
-
|
|
1833
|
-
|
|
1852
|
+
local _array_40 = pair("SpeedDial", "down", {
|
|
1853
|
+
open = true,
|
|
1854
|
+
variant = "down",
|
|
1834
1855
|
})
|
|
1835
1856
|
local _Length_39 = #_array_40
|
|
1836
1857
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1837
1858
|
_length += _Length_39
|
|
1838
|
-
local _array_41 = pair("FormLabel", "
|
|
1859
|
+
local _array_41 = pair("FormLabel", "default", {
|
|
1839
1860
|
text = "Email",
|
|
1840
|
-
hasError = true,
|
|
1841
1861
|
})
|
|
1842
1862
|
local _Length_40 = #_array_41
|
|
1843
1863
|
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1844
1864
|
_length += _Length_40
|
|
1845
|
-
local _array_42 = pair("
|
|
1846
|
-
text = "
|
|
1865
|
+
local _array_42 = pair("FormLabel", "required", {
|
|
1866
|
+
text = "Email",
|
|
1867
|
+
value = true,
|
|
1847
1868
|
})
|
|
1848
1869
|
local _Length_41 = #_array_42
|
|
1849
1870
|
table.move(_array_42, 1, _Length_41, _length + 1, _array)
|
|
1850
1871
|
_length += _Length_41
|
|
1851
|
-
local _array_43 = pair("
|
|
1852
|
-
text = "
|
|
1872
|
+
local _array_43 = pair("FormLabel", "error", {
|
|
1873
|
+
text = "Email",
|
|
1853
1874
|
hasError = true,
|
|
1854
1875
|
})
|
|
1855
1876
|
local _Length_42 = #_array_43
|
|
1856
1877
|
table.move(_array_43, 1, _Length_42, _length + 1, _array)
|
|
1857
1878
|
_length += _Length_42
|
|
1858
|
-
local _array_44 = pair("
|
|
1859
|
-
|
|
1879
|
+
local _array_44 = pair("FormHelperText", "default", {
|
|
1880
|
+
text = "We never share this",
|
|
1860
1881
|
})
|
|
1861
1882
|
local _Length_43 = #_array_44
|
|
1862
1883
|
table.move(_array_44, 1, _Length_43, _length + 1, _array)
|
|
1863
1884
|
_length += _Length_43
|
|
1864
|
-
local _array_45 = pair("
|
|
1865
|
-
|
|
1885
|
+
local _array_45 = pair("FormHelperText", "error", {
|
|
1886
|
+
text = "Required",
|
|
1887
|
+
hasError = true,
|
|
1866
1888
|
})
|
|
1867
1889
|
local _Length_44 = #_array_45
|
|
1868
1890
|
table.move(_array_45, 1, _Length_44, _length + 1, _array)
|
|
1869
1891
|
_length += _Length_44
|
|
1870
|
-
local _array_46 = pair("Menu", "
|
|
1892
|
+
local _array_46 = pair("Menu", "closed", {
|
|
1893
|
+
open = false,
|
|
1894
|
+
})
|
|
1895
|
+
local _Length_45 = #_array_46
|
|
1896
|
+
table.move(_array_46, 1, _Length_45, _length + 1, _array)
|
|
1897
|
+
_length += _Length_45
|
|
1898
|
+
local _array_47 = pair("Menu", "open", {
|
|
1899
|
+
open = true,
|
|
1900
|
+
})
|
|
1901
|
+
local _Length_46 = #_array_47
|
|
1902
|
+
table.move(_array_47, 1, _Length_46, _length + 1, _array)
|
|
1903
|
+
_length += _Length_46
|
|
1904
|
+
local _array_48 = pair("Menu", "empty", {
|
|
1871
1905
|
open = true,
|
|
1872
1906
|
options = {},
|
|
1873
1907
|
})
|
|
1874
|
-
|
|
1908
|
+
local _Length_47 = #_array_48
|
|
1909
|
+
table.move(_array_48, 1, _Length_47, _length + 1, _array)
|
|
1910
|
+
_length += _Length_47
|
|
1911
|
+
local _array_49 = pair("Menu", "dense", {
|
|
1912
|
+
open = true,
|
|
1913
|
+
variant = "dense",
|
|
1914
|
+
})
|
|
1915
|
+
table.move(_array_49, 1, #_array_49, _length + 1, _array)
|
|
1875
1916
|
return _array
|
|
1876
1917
|
end
|
|
1877
1918
|
local function concatRows(...)
|
|
@@ -2,6 +2,7 @@ import { CustomizedProps } from "../../../../theme/index";
|
|
|
2
2
|
export interface StepperProps {
|
|
3
3
|
steps: string[];
|
|
4
4
|
activeStep: number;
|
|
5
|
+
orientation?: "horizontal" | "vertical";
|
|
5
6
|
}
|
|
6
7
|
declare function Stepper(props: CustomizedProps<Frame, StepperProps>): JSX.Element;
|
|
7
8
|
export default Stepper;
|
|
@@ -8,11 +8,17 @@ local function Stepper(props)
|
|
|
8
8
|
local _binding = props
|
|
9
9
|
local steps = _binding.steps
|
|
10
10
|
local activeStep = _binding.activeStep
|
|
11
|
+
local orientation = _binding.orientation
|
|
12
|
+
if orientation == nil then
|
|
13
|
+
orientation = "horizontal"
|
|
14
|
+
end
|
|
11
15
|
local className = _binding.className
|
|
12
16
|
local sx = _binding.sx
|
|
13
17
|
local id = _binding.id
|
|
14
18
|
local ref = _binding.ref
|
|
15
|
-
local styles = useStepperStyles(
|
|
19
|
+
local styles = useStepperStyles({
|
|
20
|
+
orientation = orientation,
|
|
21
|
+
})
|
|
16
22
|
local _attributes = {}
|
|
17
23
|
local _condition = id
|
|
18
24
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const useStepperStyles: (
|
|
1
|
+
declare const useStepperStyles: (props: {
|
|
2
|
+
orientation?: "horizontal" | "vertical";
|
|
3
|
+
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
2
4
|
export default useStepperStyles;
|
|
@@ -3,7 +3,11 @@ local TS = _G[script]
|
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local componentStyles = _theme.componentStyles
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
|
-
local useStepperStyles = componentStyles("Stepper", function(theme)
|
|
6
|
+
local useStepperStyles = componentStyles("Stepper", function(theme, _param)
|
|
7
|
+
local orientation = _param.orientation
|
|
8
|
+
if orientation == nil then
|
|
9
|
+
orientation = "horizontal"
|
|
10
|
+
end
|
|
7
11
|
return createStyles({
|
|
8
12
|
root = {
|
|
9
13
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -12,7 +16,7 @@ local useStepperStyles = componentStyles("Stepper", function(theme)
|
|
|
12
16
|
BorderSizePixel = 0,
|
|
13
17
|
},
|
|
14
18
|
list = {
|
|
15
|
-
FillDirection = Enum.FillDirection.Horizontal,
|
|
19
|
+
FillDirection = if orientation == "vertical" then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
|
|
16
20
|
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
17
21
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
18
22
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type SwitchPointer = "rest" | "hover" | "press" | "focus";
|
|
2
2
|
export declare function switchPointer(hovering: boolean, pressed: boolean, focused: boolean): SwitchPointer;
|
|
3
|
-
export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.
|
|
3
|
+
export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.35 | 0.65 | 0.55 | 0.15 | 0.08;
|
|
4
4
|
export declare function switchThumbTransparency(disabled: boolean): 0 | 0.35;
|
|
5
5
|
export declare function switchStrokeTransparency(disabled: boolean, pointer: SwitchPointer): 1 | 0 | 0.35;
|
|
6
6
|
export declare function switchThumbPlacement(on: boolean, inset: number): {
|
|
@@ -9,12 +9,15 @@ local function Table(props)
|
|
|
9
9
|
local columns = _binding.columns
|
|
10
10
|
local rows = _binding.rows
|
|
11
11
|
local selected = _binding.selected
|
|
12
|
+
local dense = _binding.dense
|
|
12
13
|
local onRowActivated = _binding.onRowActivated
|
|
13
14
|
local className = _binding.className
|
|
14
15
|
local sx = _binding.sx
|
|
15
16
|
local id = _binding.id
|
|
16
17
|
local ref = _binding.ref
|
|
17
|
-
local styles = useTableStyles(
|
|
18
|
+
local styles = useTableStyles({
|
|
19
|
+
dense = dense,
|
|
20
|
+
})
|
|
18
21
|
local width = if #columns > 0 then 1 / #columns else 1
|
|
19
22
|
local _attributes = {}
|
|
20
23
|
local _condition = id
|
|
@@ -3,7 +3,11 @@ local TS = _G[script]
|
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local componentStyles = _theme.componentStyles
|
|
5
5
|
local createStyles = _theme.createStyles
|
|
6
|
-
local useTableStyles = componentStyles("Table", function(theme)
|
|
6
|
+
local useTableStyles = componentStyles("Table", function(theme, _param)
|
|
7
|
+
local dense = _param.dense
|
|
8
|
+
local padY = theme.padding.calc(if dense == true then 0.5 else 1)
|
|
9
|
+
local padX = theme.padding.calc(if dense == true then 1 else 1.5)
|
|
10
|
+
local textSize = if dense == true then theme.typography.fontSizes.caption else theme.typography.fontSizes.body
|
|
7
11
|
return createStyles({
|
|
8
12
|
root = {
|
|
9
13
|
AutomaticSize = Enum.AutomaticSize.Y,
|
|
@@ -44,7 +48,7 @@ local useTableStyles = componentStyles("Table", function(theme)
|
|
|
44
48
|
BackgroundTransparency = 1,
|
|
45
49
|
BorderSizePixel = 0,
|
|
46
50
|
Font = theme.typography.fontFamilies.default,
|
|
47
|
-
TextSize =
|
|
51
|
+
TextSize = textSize,
|
|
48
52
|
TextColor3 = theme.palette.text.primary,
|
|
49
53
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
50
54
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
|
@@ -54,10 +58,10 @@ local useTableStyles = componentStyles("Table", function(theme)
|
|
|
54
58
|
TextColor3 = theme.palette.text.secondary,
|
|
55
59
|
},
|
|
56
60
|
padding = {
|
|
57
|
-
PaddingTop = UDim.new(0,
|
|
58
|
-
PaddingBottom = UDim.new(0,
|
|
59
|
-
PaddingLeft = UDim.new(0,
|
|
60
|
-
PaddingRight = UDim.new(0,
|
|
61
|
+
PaddingTop = UDim.new(0, padY),
|
|
62
|
+
PaddingBottom = UDim.new(0, padY),
|
|
63
|
+
PaddingLeft = UDim.new(0, padX),
|
|
64
|
+
PaddingRight = UDim.new(0, padX),
|
|
61
65
|
},
|
|
62
66
|
corner = {
|
|
63
67
|
CornerRadius = UDim.new(0, theme.shape.borderRadius),
|