@rbxts/uiblox 0.2.0-alpha.10 → 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/card/components/Card.d.ts +1 -0
- package/out/ui/packages/card/components/Card.luau +2 -0
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/drawer/components/Drawer.d.ts +1 -0
- package/out/ui/packages/drawer/components/Drawer.luau +4 -1
- package/out/ui/packages/drawer/components/Drawer.styles.d.ts +3 -1
- package/out/ui/packages/drawer/components/Drawer.styles.luau +3 -2
- 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 +227 -173
- 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),
|
|
@@ -11,6 +11,7 @@ local function Card(props)
|
|
|
11
11
|
if elevation == nil then
|
|
12
12
|
elevation = "flat"
|
|
13
13
|
end
|
|
14
|
+
local square = _binding.square
|
|
14
15
|
local actions = _binding.actions
|
|
15
16
|
local children = _binding.children
|
|
16
17
|
local styles = useCardStyles()
|
|
@@ -66,6 +67,7 @@ local function Card(props)
|
|
|
66
67
|
end
|
|
67
68
|
return React.createElement(Paper, {
|
|
68
69
|
elevation = elevation,
|
|
70
|
+
square = square,
|
|
69
71
|
}, React.createElement("frame", _attributes, _exp, _condition, _condition_1, _exp_1, _condition_2))
|
|
70
72
|
end
|
|
71
73
|
local default = Card
|
|
@@ -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;
|
|
@@ -17,9 +17,12 @@ local function Drawer(props)
|
|
|
17
17
|
if edge == nil then
|
|
18
18
|
edge = "left"
|
|
19
19
|
end
|
|
20
|
+
local width = _binding.width
|
|
20
21
|
local onClose = _binding.onClose
|
|
21
22
|
local children = _binding.children
|
|
22
|
-
local styles = useDrawerStyles(
|
|
23
|
+
local styles = useDrawerStyles({
|
|
24
|
+
width = width,
|
|
25
|
+
})
|
|
23
26
|
local close = useRef(onClose)
|
|
24
27
|
close.current = onClose
|
|
25
28
|
useEffect(function()
|
|
@@ -3,7 +3,8 @@ 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 useDrawerStyles = componentStyles("Drawer", function(theme)
|
|
6
|
+
local useDrawerStyles = componentStyles("Drawer", function(theme, _param)
|
|
7
|
+
local width = _param.width
|
|
7
8
|
return createStyles({
|
|
8
9
|
root = {
|
|
9
10
|
Size = UDim2.fromScale(1, 1),
|
|
@@ -21,7 +22,7 @@ local useDrawerStyles = componentStyles("Drawer", function(theme)
|
|
|
21
22
|
ZIndex = 30000,
|
|
22
23
|
},
|
|
23
24
|
panel = {
|
|
24
|
-
Size = UDim2.new(0, theme.spacing.calc(20), 1, 0),
|
|
25
|
+
Size = UDim2.new(0, if width ~= nil and width > 0 then width else theme.spacing.calc(20), 1, 0),
|
|
25
26
|
BackgroundColor3 = theme.palette.surface.elevated,
|
|
26
27
|
BorderSizePixel = 0,
|
|
27
28
|
ZIndex = 30001,
|
|
@@ -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;
|
|
@@ -1255,50 +1255,56 @@ local function surfacesRows()
|
|
|
1255
1255
|
local _Length_31 = #_array_32
|
|
1256
1256
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1257
1257
|
_length += _Length_31
|
|
1258
|
-
local _array_33 = pair("
|
|
1258
|
+
local _array_33 = pair("Card", "square", {
|
|
1259
|
+
variant = "square",
|
|
1260
|
+
})
|
|
1259
1261
|
local _Length_32 = #_array_33
|
|
1260
1262
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1261
1263
|
_length += _Length_32
|
|
1262
|
-
local _array_34 = pair("Chip", "
|
|
1263
|
-
size = "small",
|
|
1264
|
-
})
|
|
1264
|
+
local _array_34 = pair("Chip", "default")
|
|
1265
1265
|
local _Length_33 = #_array_34
|
|
1266
1266
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1267
1267
|
_length += _Length_33
|
|
1268
|
-
local _array_35 = pair("Chip", "size-
|
|
1269
|
-
size = "
|
|
1268
|
+
local _array_35 = pair("Chip", "size-small", {
|
|
1269
|
+
size = "small",
|
|
1270
1270
|
})
|
|
1271
1271
|
local _Length_34 = #_array_35
|
|
1272
1272
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1273
1273
|
_length += _Length_34
|
|
1274
|
-
local _array_36 = pair("Chip", "
|
|
1275
|
-
|
|
1274
|
+
local _array_36 = pair("Chip", "size-large", {
|
|
1275
|
+
size = "large",
|
|
1276
1276
|
})
|
|
1277
1277
|
local _Length_35 = #_array_36
|
|
1278
1278
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1279
1279
|
_length += _Length_35
|
|
1280
|
-
local _array_37 = pair("Chip", "
|
|
1281
|
-
|
|
1280
|
+
local _array_37 = pair("Chip", "selected", {
|
|
1281
|
+
value = true,
|
|
1282
1282
|
})
|
|
1283
1283
|
local _Length_36 = #_array_37
|
|
1284
1284
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1285
1285
|
_length += _Length_36
|
|
1286
|
-
local _array_38 = pair("Chip", "
|
|
1287
|
-
|
|
1286
|
+
local _array_38 = pair("Chip", "disabled", {
|
|
1287
|
+
disabled = true,
|
|
1288
1288
|
})
|
|
1289
1289
|
local _Length_37 = #_array_38
|
|
1290
1290
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1291
1291
|
_length += _Length_37
|
|
1292
|
-
local _array_39 = pair("
|
|
1293
|
-
|
|
1292
|
+
local _array_39 = pair("Chip", "deletable", {
|
|
1293
|
+
text = "Tag",
|
|
1294
1294
|
})
|
|
1295
1295
|
local _Length_38 = #_array_39
|
|
1296
1296
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1297
1297
|
_length += _Length_38
|
|
1298
|
-
local _array_40 = pair("Badge", "
|
|
1298
|
+
local _array_40 = pair("Badge", "count", {
|
|
1299
|
+
value = 3,
|
|
1300
|
+
})
|
|
1301
|
+
local _Length_39 = #_array_40
|
|
1302
|
+
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1303
|
+
_length += _Length_39
|
|
1304
|
+
local _array_41 = pair("Badge", "max", {
|
|
1299
1305
|
value = 100,
|
|
1300
1306
|
})
|
|
1301
|
-
table.move(
|
|
1307
|
+
table.move(_array_41, 1, #_array_41, _length + 1, _array)
|
|
1302
1308
|
return _array
|
|
1303
1309
|
end
|
|
1304
1310
|
local function chromeRows()
|
|
@@ -1310,264 +1316,291 @@ local function chromeRows()
|
|
|
1310
1316
|
local _Length = #_array_1
|
|
1311
1317
|
table.move(_array_1, 1, _Length, _length + 1, _array)
|
|
1312
1318
|
_length += _Length
|
|
1313
|
-
local _array_2 = pair("
|
|
1314
|
-
|
|
1319
|
+
local _array_2 = pair("Badge", "dot", {
|
|
1320
|
+
variant = "dot",
|
|
1315
1321
|
})
|
|
1316
1322
|
local _Length_1 = #_array_2
|
|
1317
1323
|
table.move(_array_2, 1, _Length_1, _length + 1, _array)
|
|
1318
1324
|
_length += _Length_1
|
|
1319
|
-
local _array_3 = pair("Avatar", "
|
|
1320
|
-
|
|
1325
|
+
local _array_3 = pair("Avatar", "initials", {
|
|
1326
|
+
text = "BL",
|
|
1321
1327
|
})
|
|
1322
1328
|
local _Length_2 = #_array_3
|
|
1323
1329
|
table.move(_array_3, 1, _Length_2, _length + 1, _array)
|
|
1324
1330
|
_length += _Length_2
|
|
1325
|
-
local _array_4 = pair("Avatar", "
|
|
1326
|
-
|
|
1331
|
+
local _array_4 = pair("Avatar", "image", {
|
|
1332
|
+
variant = "image",
|
|
1327
1333
|
})
|
|
1328
1334
|
local _Length_3 = #_array_4
|
|
1329
1335
|
table.move(_array_4, 1, _Length_3, _length + 1, _array)
|
|
1330
1336
|
_length += _Length_3
|
|
1331
|
-
local _array_5 = pair("
|
|
1332
|
-
|
|
1337
|
+
local _array_5 = pair("Avatar", "small", {
|
|
1338
|
+
size = "small",
|
|
1333
1339
|
})
|
|
1334
1340
|
local _Length_4 = #_array_5
|
|
1335
1341
|
table.move(_array_5, 1, _Length_4, _length + 1, _array)
|
|
1336
1342
|
_length += _Length_4
|
|
1337
|
-
local _array_6 = pair("Drawer", "
|
|
1338
|
-
open =
|
|
1339
|
-
variant = "left",
|
|
1343
|
+
local _array_6 = pair("Drawer", "closed", {
|
|
1344
|
+
open = false,
|
|
1340
1345
|
})
|
|
1341
1346
|
local _Length_5 = #_array_6
|
|
1342
1347
|
table.move(_array_6, 1, _Length_5, _length + 1, _array)
|
|
1343
1348
|
_length += _Length_5
|
|
1344
|
-
local _array_7 = pair("Drawer", "
|
|
1349
|
+
local _array_7 = pair("Drawer", "left", {
|
|
1345
1350
|
open = true,
|
|
1346
|
-
variant = "
|
|
1351
|
+
variant = "left",
|
|
1347
1352
|
})
|
|
1348
1353
|
local _Length_6 = #_array_7
|
|
1349
1354
|
table.move(_array_7, 1, _Length_6, _length + 1, _array)
|
|
1350
1355
|
_length += _Length_6
|
|
1351
|
-
local _array_8 = pair("
|
|
1352
|
-
|
|
1356
|
+
local _array_8 = pair("Drawer", "right", {
|
|
1357
|
+
open = true,
|
|
1358
|
+
variant = "right",
|
|
1353
1359
|
})
|
|
1354
1360
|
local _Length_7 = #_array_8
|
|
1355
1361
|
table.move(_array_8, 1, _Length_7, _length + 1, _array)
|
|
1356
1362
|
_length += _Length_7
|
|
1357
|
-
local _array_9 = pair("
|
|
1358
|
-
|
|
1363
|
+
local _array_9 = pair("Drawer", "wide", {
|
|
1364
|
+
open = true,
|
|
1365
|
+
variant = "wide",
|
|
1359
1366
|
})
|
|
1360
1367
|
local _Length_8 = #_array_9
|
|
1361
1368
|
table.move(_array_9, 1, _Length_8, _length + 1, _array)
|
|
1362
1369
|
_length += _Length_8
|
|
1363
|
-
local _array_10 = pair("Breadcrumbs", "
|
|
1364
|
-
text = "Home
|
|
1365
|
-
size = "small",
|
|
1370
|
+
local _array_10 = pair("Breadcrumbs", "single", {
|
|
1371
|
+
text = "Home",
|
|
1366
1372
|
})
|
|
1367
1373
|
local _Length_9 = #_array_10
|
|
1368
1374
|
table.move(_array_10, 1, _Length_9, _length + 1, _array)
|
|
1369
1375
|
_length += _Length_9
|
|
1370
|
-
local _array_11 = pair("Breadcrumbs", "
|
|
1371
|
-
text = "Home
|
|
1376
|
+
local _array_11 = pair("Breadcrumbs", "trail", {
|
|
1377
|
+
text = "Home / Library / Item",
|
|
1372
1378
|
})
|
|
1373
1379
|
local _Length_10 = #_array_11
|
|
1374
1380
|
table.move(_array_11, 1, _Length_10, _length + 1, _array)
|
|
1375
1381
|
_length += _Length_10
|
|
1376
|
-
local _array_12 = pair("
|
|
1377
|
-
|
|
1382
|
+
local _array_12 = pair("Breadcrumbs", "collapsed", {
|
|
1383
|
+
text = "Home / … / Item",
|
|
1384
|
+
size = "small",
|
|
1378
1385
|
})
|
|
1379
1386
|
local _Length_11 = #_array_12
|
|
1380
1387
|
table.move(_array_12, 1, _Length_11, _length + 1, _array)
|
|
1381
1388
|
_length += _Length_11
|
|
1382
|
-
local _array_13 = pair("
|
|
1383
|
-
|
|
1389
|
+
local _array_13 = pair("Breadcrumbs", "custom-separator", {
|
|
1390
|
+
text = "Home > Item",
|
|
1384
1391
|
})
|
|
1385
1392
|
local _Length_12 = #_array_13
|
|
1386
1393
|
table.move(_array_13, 1, _Length_12, _length + 1, _array)
|
|
1387
1394
|
_length += _Length_12
|
|
1388
|
-
local _array_14 = pair("Pagination", "
|
|
1389
|
-
value =
|
|
1390
|
-
size = "large",
|
|
1395
|
+
local _array_14 = pair("Pagination", "first", {
|
|
1396
|
+
value = 1,
|
|
1391
1397
|
})
|
|
1392
1398
|
local _Length_13 = #_array_14
|
|
1393
1399
|
table.move(_array_14, 1, _Length_13, _length + 1, _array)
|
|
1394
1400
|
_length += _Length_13
|
|
1395
|
-
local _array_15 = pair("Pagination", "
|
|
1396
|
-
value =
|
|
1397
|
-
disabled = true,
|
|
1401
|
+
local _array_15 = pair("Pagination", "middle", {
|
|
1402
|
+
value = 3,
|
|
1398
1403
|
})
|
|
1399
1404
|
local _Length_14 = #_array_15
|
|
1400
1405
|
table.move(_array_15, 1, _Length_14, _length + 1, _array)
|
|
1401
1406
|
_length += _Length_14
|
|
1402
|
-
local _array_16 = pair("
|
|
1403
|
-
value =
|
|
1407
|
+
local _array_16 = pair("Pagination", "collapsed", {
|
|
1408
|
+
value = 10,
|
|
1409
|
+
size = "large",
|
|
1404
1410
|
})
|
|
1405
1411
|
local _Length_15 = #_array_16
|
|
1406
1412
|
table.move(_array_16, 1, _Length_15, _length + 1, _array)
|
|
1407
1413
|
_length += _Length_15
|
|
1408
|
-
local _array_17 = pair("
|
|
1409
|
-
value =
|
|
1414
|
+
local _array_17 = pair("Pagination", "disabled", {
|
|
1415
|
+
value = 2,
|
|
1416
|
+
disabled = true,
|
|
1410
1417
|
})
|
|
1411
1418
|
local _Length_16 = #_array_17
|
|
1412
1419
|
table.move(_array_17, 1, _Length_16, _length + 1, _array)
|
|
1413
1420
|
_length += _Length_16
|
|
1414
|
-
local _array_18 = pair("Stepper", "
|
|
1415
|
-
value =
|
|
1421
|
+
local _array_18 = pair("Stepper", "first", {
|
|
1422
|
+
value = 0,
|
|
1416
1423
|
})
|
|
1417
1424
|
local _Length_17 = #_array_18
|
|
1418
1425
|
table.move(_array_18, 1, _Length_17, _length + 1, _array)
|
|
1419
1426
|
_length += _Length_17
|
|
1420
|
-
local _array_19 = pair("
|
|
1421
|
-
|
|
1427
|
+
local _array_19 = pair("Stepper", "middle", {
|
|
1428
|
+
value = 1,
|
|
1422
1429
|
})
|
|
1423
1430
|
local _Length_18 = #_array_19
|
|
1424
1431
|
table.move(_array_19, 1, _Length_18, _length + 1, _array)
|
|
1425
1432
|
_length += _Length_18
|
|
1426
|
-
local _array_20 = pair("
|
|
1427
|
-
|
|
1433
|
+
local _array_20 = pair("Stepper", "last", {
|
|
1434
|
+
value = 2,
|
|
1428
1435
|
})
|
|
1429
1436
|
local _Length_19 = #_array_20
|
|
1430
1437
|
table.move(_array_20, 1, _Length_19, _length + 1, _array)
|
|
1431
1438
|
_length += _Length_19
|
|
1432
|
-
local _array_21 = pair("
|
|
1433
|
-
|
|
1434
|
-
|
|
1439
|
+
local _array_21 = pair("Stepper", "vertical", {
|
|
1440
|
+
value = 1,
|
|
1441
|
+
variant = "vertical",
|
|
1435
1442
|
})
|
|
1436
1443
|
local _Length_20 = #_array_21
|
|
1437
1444
|
table.move(_array_21, 1, _Length_20, _length + 1, _array)
|
|
1438
1445
|
_length += _Length_20
|
|
1439
|
-
local _array_22 = pair("
|
|
1440
|
-
open =
|
|
1441
|
-
text = "Saved",
|
|
1446
|
+
local _array_22 = pair("Accordion", "closed", {
|
|
1447
|
+
open = false,
|
|
1442
1448
|
})
|
|
1443
1449
|
local _Length_21 = #_array_22
|
|
1444
1450
|
table.move(_array_22, 1, _Length_21, _length + 1, _array)
|
|
1445
1451
|
_length += _Length_21
|
|
1446
|
-
local _array_23 = pair("
|
|
1447
|
-
open =
|
|
1448
|
-
text = "Saved",
|
|
1452
|
+
local _array_23 = pair("Accordion", "open", {
|
|
1453
|
+
open = true,
|
|
1449
1454
|
})
|
|
1450
1455
|
local _Length_22 = #_array_23
|
|
1451
1456
|
table.move(_array_23, 1, _Length_22, _length + 1, _array)
|
|
1452
1457
|
_length += _Length_22
|
|
1453
|
-
local _array_24 = pair("
|
|
1454
|
-
|
|
1458
|
+
local _array_24 = pair("Accordion", "disabled", {
|
|
1459
|
+
open = false,
|
|
1460
|
+
disabled = true,
|
|
1455
1461
|
})
|
|
1456
1462
|
local _Length_23 = #_array_24
|
|
1457
1463
|
table.move(_array_24, 1, _Length_23, _length + 1, _array)
|
|
1458
1464
|
_length += _Length_23
|
|
1459
|
-
local _array_25 = pair("
|
|
1460
|
-
|
|
1465
|
+
local _array_25 = pair("Snackbar", "open", {
|
|
1466
|
+
open = true,
|
|
1467
|
+
text = "Saved",
|
|
1461
1468
|
})
|
|
1462
1469
|
local _Length_24 = #_array_25
|
|
1463
1470
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
1464
1471
|
_length += _Length_24
|
|
1465
|
-
local _array_26 = pair("
|
|
1466
|
-
|
|
1467
|
-
|
|
1472
|
+
local _array_26 = pair("Snackbar", "closed", {
|
|
1473
|
+
open = false,
|
|
1474
|
+
text = "Saved",
|
|
1468
1475
|
})
|
|
1469
1476
|
local _Length_25 = #_array_26
|
|
1470
1477
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1471
1478
|
_length += _Length_25
|
|
1472
|
-
local _array_27 = pair("
|
|
1473
|
-
|
|
1474
|
-
options = { "Continue", "Other" },
|
|
1479
|
+
local _array_27 = pair("Table", "empty", {
|
|
1480
|
+
text = "",
|
|
1475
1481
|
})
|
|
1476
1482
|
local _Length_26 = #_array_27
|
|
1477
1483
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1478
1484
|
_length += _Length_26
|
|
1479
|
-
local _array_28 = pair("
|
|
1480
|
-
|
|
1481
|
-
options = { "Continue", "Other" },
|
|
1482
|
-
open = true,
|
|
1485
|
+
local _array_28 = pair("Table", "default", {
|
|
1486
|
+
text = "Name / Role",
|
|
1483
1487
|
})
|
|
1484
1488
|
local _Length_27 = #_array_28
|
|
1485
1489
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1486
1490
|
_length += _Length_27
|
|
1487
|
-
local _array_29 = pair("
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
disabled = true,
|
|
1491
|
+
local _array_29 = pair("Table", "selected", {
|
|
1492
|
+
text = "Name / Role",
|
|
1493
|
+
value = 0,
|
|
1491
1494
|
})
|
|
1492
1495
|
local _Length_28 = #_array_29
|
|
1493
1496
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1494
1497
|
_length += _Length_28
|
|
1495
|
-
local _array_30 = pair("
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
open = true,
|
|
1498
|
+
local _array_30 = pair("Table", "dense", {
|
|
1499
|
+
text = "Name / Role",
|
|
1500
|
+
variant = "dense",
|
|
1499
1501
|
})
|
|
1500
1502
|
local _Length_29 = #_array_30
|
|
1501
1503
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1502
1504
|
_length += _Length_29
|
|
1503
|
-
local _array_31 = pair("Autocomplete", "
|
|
1505
|
+
local _array_31 = pair("Autocomplete", "default", {
|
|
1504
1506
|
value = "Continue",
|
|
1505
1507
|
options = { "Continue", "Other" },
|
|
1506
|
-
open = true,
|
|
1507
|
-
filter = "zzz",
|
|
1508
1508
|
})
|
|
1509
1509
|
local _Length_30 = #_array_31
|
|
1510
1510
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1511
1511
|
_length += _Length_30
|
|
1512
|
-
local _array_32 = pair("
|
|
1512
|
+
local _array_32 = pair("Autocomplete", "open", {
|
|
1513
|
+
value = "Continue",
|
|
1514
|
+
options = { "Continue", "Other" },
|
|
1515
|
+
open = true,
|
|
1516
|
+
})
|
|
1513
1517
|
local _Length_31 = #_array_32
|
|
1514
1518
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1515
1519
|
_length += _Length_31
|
|
1516
|
-
local _array_33 = pair("
|
|
1517
|
-
|
|
1520
|
+
local _array_33 = pair("Autocomplete", "disabled", {
|
|
1521
|
+
value = "Continue",
|
|
1522
|
+
options = { "Continue", "Other" },
|
|
1523
|
+
disabled = true,
|
|
1518
1524
|
})
|
|
1519
1525
|
local _Length_32 = #_array_33
|
|
1520
1526
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1521
1527
|
_length += _Length_32
|
|
1522
|
-
local _array_34 = pair("
|
|
1523
|
-
|
|
1528
|
+
local _array_34 = pair("Autocomplete", "empty", {
|
|
1529
|
+
value = "",
|
|
1530
|
+
options = {},
|
|
1531
|
+
open = true,
|
|
1524
1532
|
})
|
|
1525
1533
|
local _Length_33 = #_array_34
|
|
1526
1534
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1527
1535
|
_length += _Length_33
|
|
1528
|
-
local _array_35 = pair("
|
|
1529
|
-
|
|
1536
|
+
local _array_35 = pair("Autocomplete", "no-results", {
|
|
1537
|
+
value = "Continue",
|
|
1538
|
+
options = { "Continue", "Other" },
|
|
1539
|
+
open = true,
|
|
1540
|
+
filter = "zzz",
|
|
1530
1541
|
})
|
|
1531
1542
|
local _Length_34 = #_array_35
|
|
1532
1543
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1533
1544
|
_length += _Length_34
|
|
1534
|
-
local _array_36 = pair("Fab", "
|
|
1535
|
-
disabled = true,
|
|
1536
|
-
})
|
|
1545
|
+
local _array_36 = pair("Fab", "default")
|
|
1537
1546
|
local _Length_35 = #_array_36
|
|
1538
1547
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1539
1548
|
_length += _Length_35
|
|
1540
|
-
local _array_37 = pair("Fab", "
|
|
1541
|
-
|
|
1549
|
+
local _array_37 = pair("Fab", "extended", {
|
|
1550
|
+
text = "Compose",
|
|
1542
1551
|
})
|
|
1543
1552
|
local _Length_36 = #_array_37
|
|
1544
1553
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1545
1554
|
_length += _Length_36
|
|
1546
|
-
local _array_38 = pair("
|
|
1547
|
-
|
|
1555
|
+
local _array_38 = pair("Fab", "small", {
|
|
1556
|
+
size = "small",
|
|
1548
1557
|
})
|
|
1549
1558
|
local _Length_37 = #_array_38
|
|
1550
1559
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1551
1560
|
_length += _Length_37
|
|
1552
|
-
local _array_39 = pair("
|
|
1553
|
-
|
|
1554
|
-
variant = "flat",
|
|
1561
|
+
local _array_39 = pair("Fab", "large", {
|
|
1562
|
+
size = "large",
|
|
1555
1563
|
})
|
|
1556
1564
|
local _Length_38 = #_array_39
|
|
1557
1565
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1558
1566
|
_length += _Length_38
|
|
1559
|
-
local _array_40 = pair("
|
|
1560
|
-
|
|
1561
|
-
variant = "raised",
|
|
1567
|
+
local _array_40 = pair("Fab", "disabled", {
|
|
1568
|
+
disabled = true,
|
|
1562
1569
|
})
|
|
1563
1570
|
local _Length_39 = #_array_40
|
|
1564
1571
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1565
1572
|
_length += _Length_39
|
|
1566
|
-
local _array_41 = pair("
|
|
1573
|
+
local _array_41 = pair("Fab", "loading", {
|
|
1574
|
+
loading = true,
|
|
1575
|
+
})
|
|
1576
|
+
local _Length_40 = #_array_41
|
|
1577
|
+
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1578
|
+
_length += _Length_40
|
|
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", {
|
|
1567
1600
|
value = "Home",
|
|
1568
1601
|
options = { "Home", "Search", "Profile" },
|
|
1569
1602
|
})
|
|
1570
|
-
table.move(
|
|
1603
|
+
table.move(_array_45, 1, #_array_45, _length + 1, _array)
|
|
1571
1604
|
return _array
|
|
1572
1605
|
end
|
|
1573
1606
|
local function miscRows()
|
|
@@ -1693,172 +1726,193 @@ local function miscRows()
|
|
|
1693
1726
|
local _Length_17 = #_array_18
|
|
1694
1727
|
table.move(_array_18, 1, _Length_17, _length + 1, _array)
|
|
1695
1728
|
_length += _Length_17
|
|
1696
|
-
local _array_19 = pair("
|
|
1697
|
-
|
|
1729
|
+
local _array_19 = pair("Rating", "size-small", {
|
|
1730
|
+
value = 3,
|
|
1731
|
+
size = "small",
|
|
1698
1732
|
})
|
|
1699
1733
|
local _Length_18 = #_array_19
|
|
1700
1734
|
table.move(_array_19, 1, _Length_18, _length + 1, _array)
|
|
1701
1735
|
_length += _Length_18
|
|
1702
|
-
local _array_20 = pair("Stack", "
|
|
1703
|
-
variant = "
|
|
1736
|
+
local _array_20 = pair("Stack", "column", {
|
|
1737
|
+
variant = "column",
|
|
1704
1738
|
})
|
|
1705
1739
|
local _Length_19 = #_array_20
|
|
1706
1740
|
table.move(_array_20, 1, _Length_19, _length + 1, _array)
|
|
1707
1741
|
_length += _Length_19
|
|
1708
|
-
local _array_21 = pair("Stack", "
|
|
1709
|
-
variant = "
|
|
1710
|
-
size = "large",
|
|
1742
|
+
local _array_21 = pair("Stack", "row", {
|
|
1743
|
+
variant = "row",
|
|
1711
1744
|
})
|
|
1712
1745
|
local _Length_20 = #_array_21
|
|
1713
1746
|
table.move(_array_21, 1, _Length_20, _length + 1, _array)
|
|
1714
1747
|
_length += _Length_20
|
|
1715
|
-
local _array_22 = pair("
|
|
1748
|
+
local _array_22 = pair("Stack", "spaced", {
|
|
1749
|
+
variant = "column",
|
|
1750
|
+
size = "large",
|
|
1751
|
+
})
|
|
1716
1752
|
local _Length_21 = #_array_22
|
|
1717
1753
|
table.move(_array_22, 1, _Length_21, _length + 1, _array)
|
|
1718
1754
|
_length += _Length_21
|
|
1719
|
-
local _array_23 = pair("Box", "
|
|
1720
|
-
size = "medium",
|
|
1721
|
-
})
|
|
1755
|
+
local _array_23 = pair("Box", "plain")
|
|
1722
1756
|
local _Length_22 = #_array_23
|
|
1723
1757
|
table.move(_array_23, 1, _Length_22, _length + 1, _array)
|
|
1724
1758
|
_length += _Length_22
|
|
1725
|
-
local _array_24 = pair("Box", "
|
|
1726
|
-
|
|
1759
|
+
local _array_24 = pair("Box", "padded", {
|
|
1760
|
+
size = "medium",
|
|
1727
1761
|
})
|
|
1728
1762
|
local _Length_23 = #_array_24
|
|
1729
1763
|
table.move(_array_24, 1, _Length_23, _length + 1, _array)
|
|
1730
1764
|
_length += _Length_23
|
|
1731
|
-
local _array_25 = pair("
|
|
1732
|
-
variant = "
|
|
1765
|
+
local _array_25 = pair("Box", "paper", {
|
|
1766
|
+
variant = "paper",
|
|
1733
1767
|
})
|
|
1734
1768
|
local _Length_24 = #_array_25
|
|
1735
1769
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
1736
1770
|
_length += _Length_24
|
|
1737
|
-
local _array_26 = pair("Container", "
|
|
1738
|
-
variant = "
|
|
1771
|
+
local _array_26 = pair("Container", "default", {
|
|
1772
|
+
variant = "lg",
|
|
1739
1773
|
})
|
|
1740
1774
|
local _Length_25 = #_array_26
|
|
1741
1775
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1742
1776
|
_length += _Length_25
|
|
1743
|
-
local _array_27 = pair("Container", "
|
|
1744
|
-
variant = "
|
|
1777
|
+
local _array_27 = pair("Container", "sm", {
|
|
1778
|
+
variant = "sm",
|
|
1745
1779
|
})
|
|
1746
1780
|
local _Length_26 = #_array_27
|
|
1747
1781
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1748
1782
|
_length += _Length_26
|
|
1749
|
-
local _array_28 = pair("
|
|
1783
|
+
local _array_28 = pair("Container", "fluid", {
|
|
1784
|
+
variant = "false",
|
|
1785
|
+
})
|
|
1750
1786
|
local _Length_27 = #_array_28
|
|
1751
1787
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1752
1788
|
_length += _Length_27
|
|
1753
|
-
local _array_29 = pair("Backdrop", "
|
|
1754
|
-
variant = "invisible",
|
|
1755
|
-
})
|
|
1789
|
+
local _array_29 = pair("Backdrop", "default")
|
|
1756
1790
|
local _Length_28 = #_array_29
|
|
1757
1791
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1758
1792
|
_length += _Length_28
|
|
1759
|
-
local _array_30 = pair("Backdrop", "
|
|
1760
|
-
|
|
1793
|
+
local _array_30 = pair("Backdrop", "invisible", {
|
|
1794
|
+
variant = "invisible",
|
|
1761
1795
|
})
|
|
1762
1796
|
local _Length_29 = #_array_30
|
|
1763
1797
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1764
1798
|
_length += _Length_29
|
|
1765
|
-
local _array_31 = pair("
|
|
1766
|
-
|
|
1799
|
+
local _array_31 = pair("Backdrop", "closed", {
|
|
1800
|
+
open = false,
|
|
1767
1801
|
})
|
|
1768
1802
|
local _Length_30 = #_array_31
|
|
1769
1803
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1770
1804
|
_length += _Length_30
|
|
1771
|
-
local _array_32 = pair("Divider", "
|
|
1772
|
-
variant = "
|
|
1805
|
+
local _array_32 = pair("Divider", "horizontal", {
|
|
1806
|
+
variant = "horizontal",
|
|
1773
1807
|
})
|
|
1774
1808
|
local _Length_31 = #_array_32
|
|
1775
1809
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1776
1810
|
_length += _Length_31
|
|
1777
|
-
local _array_33 = pair("
|
|
1811
|
+
local _array_33 = pair("Divider", "vertical", {
|
|
1812
|
+
variant = "vertical",
|
|
1813
|
+
})
|
|
1778
1814
|
local _Length_32 = #_array_33
|
|
1779
1815
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1780
1816
|
_length += _Length_32
|
|
1781
|
-
local _array_34 = pair("ImageList", "
|
|
1782
|
-
size = "small",
|
|
1783
|
-
})
|
|
1817
|
+
local _array_34 = pair("ImageList", "default")
|
|
1784
1818
|
local _Length_33 = #_array_34
|
|
1785
1819
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1786
1820
|
_length += _Length_33
|
|
1787
|
-
local _array_35 = pair("ImageList", "
|
|
1788
|
-
size = "
|
|
1821
|
+
local _array_35 = pair("ImageList", "dense", {
|
|
1822
|
+
size = "small",
|
|
1789
1823
|
})
|
|
1790
1824
|
local _Length_34 = #_array_35
|
|
1791
1825
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1792
1826
|
_length += _Length_34
|
|
1793
|
-
local _array_36 = pair("
|
|
1794
|
-
|
|
1827
|
+
local _array_36 = pair("ImageList", "wide", {
|
|
1828
|
+
size = "large",
|
|
1795
1829
|
})
|
|
1796
1830
|
local _Length_35 = #_array_36
|
|
1797
1831
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1798
1832
|
_length += _Length_35
|
|
1799
|
-
local _array_37 = pair("SpeedDial", "
|
|
1800
|
-
open =
|
|
1833
|
+
local _array_37 = pair("SpeedDial", "closed", {
|
|
1834
|
+
open = false,
|
|
1801
1835
|
})
|
|
1802
1836
|
local _Length_36 = #_array_37
|
|
1803
1837
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1804
1838
|
_length += _Length_36
|
|
1805
|
-
local _array_38 = pair("SpeedDial", "
|
|
1806
|
-
open =
|
|
1807
|
-
disabled = true,
|
|
1839
|
+
local _array_38 = pair("SpeedDial", "open", {
|
|
1840
|
+
open = true,
|
|
1808
1841
|
})
|
|
1809
1842
|
local _Length_37 = #_array_38
|
|
1810
1843
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1811
1844
|
_length += _Length_37
|
|
1812
|
-
local _array_39 = pair("
|
|
1813
|
-
|
|
1845
|
+
local _array_39 = pair("SpeedDial", "disabled", {
|
|
1846
|
+
open = false,
|
|
1847
|
+
disabled = true,
|
|
1814
1848
|
})
|
|
1815
1849
|
local _Length_38 = #_array_39
|
|
1816
1850
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1817
1851
|
_length += _Length_38
|
|
1818
|
-
local _array_40 = pair("
|
|
1819
|
-
|
|
1820
|
-
|
|
1852
|
+
local _array_40 = pair("SpeedDial", "down", {
|
|
1853
|
+
open = true,
|
|
1854
|
+
variant = "down",
|
|
1821
1855
|
})
|
|
1822
1856
|
local _Length_39 = #_array_40
|
|
1823
1857
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1824
1858
|
_length += _Length_39
|
|
1825
|
-
local _array_41 = pair("FormLabel", "
|
|
1859
|
+
local _array_41 = pair("FormLabel", "default", {
|
|
1826
1860
|
text = "Email",
|
|
1827
|
-
hasError = true,
|
|
1828
1861
|
})
|
|
1829
1862
|
local _Length_40 = #_array_41
|
|
1830
1863
|
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1831
1864
|
_length += _Length_40
|
|
1832
|
-
local _array_42 = pair("
|
|
1833
|
-
text = "
|
|
1865
|
+
local _array_42 = pair("FormLabel", "required", {
|
|
1866
|
+
text = "Email",
|
|
1867
|
+
value = true,
|
|
1834
1868
|
})
|
|
1835
1869
|
local _Length_41 = #_array_42
|
|
1836
1870
|
table.move(_array_42, 1, _Length_41, _length + 1, _array)
|
|
1837
1871
|
_length += _Length_41
|
|
1838
|
-
local _array_43 = pair("
|
|
1839
|
-
text = "
|
|
1872
|
+
local _array_43 = pair("FormLabel", "error", {
|
|
1873
|
+
text = "Email",
|
|
1840
1874
|
hasError = true,
|
|
1841
1875
|
})
|
|
1842
1876
|
local _Length_42 = #_array_43
|
|
1843
1877
|
table.move(_array_43, 1, _Length_42, _length + 1, _array)
|
|
1844
1878
|
_length += _Length_42
|
|
1845
|
-
local _array_44 = pair("
|
|
1846
|
-
|
|
1879
|
+
local _array_44 = pair("FormHelperText", "default", {
|
|
1880
|
+
text = "We never share this",
|
|
1847
1881
|
})
|
|
1848
1882
|
local _Length_43 = #_array_44
|
|
1849
1883
|
table.move(_array_44, 1, _Length_43, _length + 1, _array)
|
|
1850
1884
|
_length += _Length_43
|
|
1851
|
-
local _array_45 = pair("
|
|
1852
|
-
|
|
1885
|
+
local _array_45 = pair("FormHelperText", "error", {
|
|
1886
|
+
text = "Required",
|
|
1887
|
+
hasError = true,
|
|
1853
1888
|
})
|
|
1854
1889
|
local _Length_44 = #_array_45
|
|
1855
1890
|
table.move(_array_45, 1, _Length_44, _length + 1, _array)
|
|
1856
1891
|
_length += _Length_44
|
|
1857
|
-
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", {
|
|
1858
1905
|
open = true,
|
|
1859
1906
|
options = {},
|
|
1860
1907
|
})
|
|
1861
|
-
|
|
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)
|
|
1862
1916
|
return _array
|
|
1863
1917
|
end
|
|
1864
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),
|