@rbxts/uiblox 0.2.0-alpha.13 → 0.2.0-alpha.14
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/appBar/components/AppBar.d.ts +2 -1
- package/out/ui/packages/appBar/components/AppBar.luau +5 -0
- package/out/ui/packages/appBar/components/AppBar.styles.d.ts +2 -0
- package/out/ui/packages/appBar/components/AppBar.styles.luau +6 -2
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/chip/components/Chip.d.ts +1 -0
- package/out/ui/packages/chip/components/Chip.luau +5 -0
- package/out/ui/packages/chip/components/Chip.styles.d.ts +1 -0
- package/out/ui/packages/chip/components/Chip.styles.luau +6 -1
- package/out/ui/packages/pagination/components/Pagination.d.ts +2 -1
- package/out/ui/packages/pagination/components/Pagination.luau +4 -1
- package/out/ui/packages/pagination/components/Pagination.styles.d.ts +4 -1
- package/out/ui/packages/pagination/components/Pagination.styles.luau +12 -6
- package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
- package/out/ui/packages/stateMatrix.luau +136 -108
- package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
- package/out/ui/packages/tabs/components/Tabs.d.ts +1 -0
- package/out/ui/packages/tabs/components/Tabs.luau +2 -0
- package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -0
- package/out/ui/packages/tabs/components/Tabs.styles.luau +2 -0
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "@rbxts/react";
|
|
2
2
|
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
-
import { AppBarElevation } from "./AppBar.styles";
|
|
3
|
+
import { AppBarColor, AppBarElevation } from "./AppBar.styles";
|
|
4
4
|
export interface AppBarProps {
|
|
5
5
|
title?: string;
|
|
6
6
|
elevation?: AppBarElevation;
|
|
7
|
+
color?: AppBarColor;
|
|
7
8
|
children?: React.ReactNode;
|
|
8
9
|
}
|
|
9
10
|
declare function AppBar(props: CustomizedProps<Frame, AppBarProps>): JSX.Element;
|
|
@@ -13,6 +13,10 @@ local function AppBar(props)
|
|
|
13
13
|
if elevation == nil then
|
|
14
14
|
elevation = "raised"
|
|
15
15
|
end
|
|
16
|
+
local color = _binding.color
|
|
17
|
+
if color == nil then
|
|
18
|
+
color = "default"
|
|
19
|
+
end
|
|
16
20
|
local children = _binding.children
|
|
17
21
|
local className = _binding.className
|
|
18
22
|
local sx = _binding.sx
|
|
@@ -20,6 +24,7 @@ local function AppBar(props)
|
|
|
20
24
|
local ref = _binding.ref
|
|
21
25
|
local styles = useAppBarStyles({
|
|
22
26
|
elevation = elevation,
|
|
27
|
+
color = color,
|
|
23
28
|
hasActions = children ~= nil,
|
|
24
29
|
})
|
|
25
30
|
local _attributes = {}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type AppBarElevation = "flat" | "raised";
|
|
2
|
+
export type AppBarColor = "default" | "primary";
|
|
2
3
|
declare const useAppBarStyles: (props: {
|
|
3
4
|
elevation?: AppBarElevation;
|
|
5
|
+
color?: AppBarColor;
|
|
4
6
|
hasActions?: boolean;
|
|
5
7
|
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
6
8
|
export default useAppBarStyles;
|
|
@@ -8,6 +8,10 @@ local useAppBarStyles = componentStyles("AppBar", function(theme, _param)
|
|
|
8
8
|
if elevation == nil then
|
|
9
9
|
elevation = "raised"
|
|
10
10
|
end
|
|
11
|
+
local color = _param.color
|
|
12
|
+
if color == nil then
|
|
13
|
+
color = "default"
|
|
14
|
+
end
|
|
11
15
|
local hasActions = _param.hasActions
|
|
12
16
|
if hasActions == nil then
|
|
13
17
|
hasActions = false
|
|
@@ -15,7 +19,7 @@ local useAppBarStyles = componentStyles("AppBar", function(theme, _param)
|
|
|
15
19
|
local _object = {
|
|
16
20
|
root = {
|
|
17
21
|
Size = UDim2.new(1, 0, 0, theme.spacing.calc(7)),
|
|
18
|
-
BackgroundColor3 = if elevation == "raised" then theme.palette.surface.elevated else theme.palette.surface.paper,
|
|
22
|
+
BackgroundColor3 = if color == "primary" then theme.palette.primary.main elseif elevation == "raised" then theme.palette.surface.elevated else theme.palette.surface.paper,
|
|
19
23
|
BorderSizePixel = 0,
|
|
20
24
|
ZIndex = 11000,
|
|
21
25
|
},
|
|
@@ -37,7 +41,7 @@ local useAppBarStyles = componentStyles("AppBar", function(theme, _param)
|
|
|
37
41
|
_condition = theme.typography.fontSizes.body
|
|
38
42
|
end
|
|
39
43
|
_object_1[_left_1] = _condition
|
|
40
|
-
_object_1.TextColor3 = theme.palette.text.primary
|
|
44
|
+
_object_1.TextColor3 = if color == "primary" then theme.palette.primary.on else theme.palette.text.primary
|
|
41
45
|
_object_1.TextXAlignment = Enum.TextXAlignment.Left
|
|
42
46
|
_object_1.TextYAlignment = Enum.TextYAlignment.Center
|
|
43
47
|
_object_1.TextTruncate = Enum.TextTruncate.AtEnd
|
|
@@ -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.45 | 0.55 | 0.2;
|
|
@@ -9,6 +9,10 @@ local function Chip(props)
|
|
|
9
9
|
local selected = _binding.selected
|
|
10
10
|
local disabled = _binding.disabled
|
|
11
11
|
local size = _binding.size
|
|
12
|
+
local variant = _binding.variant
|
|
13
|
+
if variant == nil then
|
|
14
|
+
variant = "filled"
|
|
15
|
+
end
|
|
12
16
|
local onActivated = _binding.onActivated
|
|
13
17
|
local onDelete = _binding.onDelete
|
|
14
18
|
local className = _binding.className
|
|
@@ -21,6 +25,7 @@ local function Chip(props)
|
|
|
21
25
|
disabled = disabled,
|
|
22
26
|
deletable = deletable,
|
|
23
27
|
size = size,
|
|
28
|
+
variant = variant,
|
|
24
29
|
})
|
|
25
30
|
local _attributes = {}
|
|
26
31
|
local _condition = id
|
|
@@ -18,6 +18,10 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
|
|
|
18
18
|
deletable = false
|
|
19
19
|
end
|
|
20
20
|
local size = _param.size
|
|
21
|
+
local variant = _param.variant
|
|
22
|
+
if variant == nil then
|
|
23
|
+
variant = "filled"
|
|
24
|
+
end
|
|
21
25
|
local metrics = controlMetrics(theme.density, size)
|
|
22
26
|
local padY = if size == "small" then 0.25 elseif size == "large" then 0.75 else 0.5
|
|
23
27
|
local padX = if size == "small" then 1 elseif size == "large" then 2 else 1.5
|
|
@@ -27,6 +31,7 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
|
|
|
27
31
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
28
32
|
Size = UDim2.fromScale(0, 0),
|
|
29
33
|
BackgroundColor3 = if selected then theme.palette.action.selected else theme.palette.surface.input,
|
|
34
|
+
BackgroundTransparency = if variant == "outlined" and selected ~= true then 1 else 0,
|
|
30
35
|
BorderSizePixel = 0,
|
|
31
36
|
AutoButtonColor = false,
|
|
32
37
|
Active = not disabled,
|
|
@@ -47,7 +52,7 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
|
|
|
47
52
|
stroke = {
|
|
48
53
|
Color = theme.palette.border,
|
|
49
54
|
ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
|
|
50
|
-
Transparency = if selected then 1 else 0,
|
|
55
|
+
Transparency = if variant == "outlined" then (if disabled then 0.5 else 0) elseif selected then 1 else 0,
|
|
51
56
|
},
|
|
52
57
|
row = {
|
|
53
58
|
FillDirection = Enum.FillDirection.Horizontal,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
1
|
+
import { ControlSize, CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
export interface PaginationProps {
|
|
3
3
|
count: number;
|
|
4
4
|
page: number;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
siblingCount?: number;
|
|
7
7
|
boundaryCount?: number;
|
|
8
|
+
size?: ControlSize;
|
|
8
9
|
onChange: (page: number) => void;
|
|
9
10
|
}
|
|
10
11
|
declare function Pagination(props: CustomizedProps<Frame, PaginationProps>): JSX.Element;
|
|
@@ -11,12 +11,15 @@ local function Pagination(props)
|
|
|
11
11
|
local disabled = _binding.disabled
|
|
12
12
|
local siblingCount = _binding.siblingCount
|
|
13
13
|
local boundaryCount = _binding.boundaryCount
|
|
14
|
+
local size = _binding.size
|
|
14
15
|
local onChange = _binding.onChange
|
|
15
16
|
local className = _binding.className
|
|
16
17
|
local sx = _binding.sx
|
|
17
18
|
local id = _binding.id
|
|
18
19
|
local ref = _binding.ref
|
|
19
|
-
local styles = usePaginationStyles(
|
|
20
|
+
local styles = usePaginationStyles({
|
|
21
|
+
size = size,
|
|
22
|
+
})
|
|
20
23
|
local tokens = pageRange(count, page, siblingCount, boundaryCount)
|
|
21
24
|
local _attributes = {}
|
|
22
25
|
local _condition = id
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ControlSize } from "../../../../theme/index";
|
|
2
|
+
declare const usePaginationStyles: (props: {
|
|
3
|
+
size?: ControlSize;
|
|
4
|
+
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
2
5
|
export default usePaginationStyles;
|
|
@@ -3,7 +3,13 @@ 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 usePaginationStyles = componentStyles("Pagination", function(theme)
|
|
6
|
+
local usePaginationStyles = componentStyles("Pagination", function(theme, _param)
|
|
7
|
+
local size = _param.size
|
|
8
|
+
if size == nil then
|
|
9
|
+
size = "medium"
|
|
10
|
+
end
|
|
11
|
+
local box = if size == "small" then theme.spacing.calc(2.5) elseif size == "large" then theme.spacing.calc(4) else theme.spacing.calc(3)
|
|
12
|
+
local text = if size == "small" then theme.typography.fontSizes.caption elseif size == "large" then theme.typography.fontSizes.h6 else theme.typography.fontSizes.body
|
|
7
13
|
return createStyles({
|
|
8
14
|
root = {
|
|
9
15
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -13,27 +19,27 @@ local usePaginationStyles = componentStyles("Pagination", function(theme)
|
|
|
13
19
|
},
|
|
14
20
|
list = {
|
|
15
21
|
FillDirection = Enum.FillDirection.Horizontal,
|
|
16
|
-
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
22
|
+
Padding = UDim.new(0, theme.padding.calc(if size == "small" then 0.25 else 0.5)),
|
|
17
23
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
18
24
|
},
|
|
19
25
|
page = {
|
|
20
|
-
Size = UDim2.fromOffset(
|
|
26
|
+
Size = UDim2.fromOffset(box, box),
|
|
21
27
|
BackgroundColor3 = theme.palette.surface.input,
|
|
22
28
|
BorderSizePixel = 0,
|
|
23
29
|
AutoButtonColor = false,
|
|
24
30
|
Font = theme.typography.fontFamilies.default,
|
|
25
|
-
TextSize =
|
|
31
|
+
TextSize = text,
|
|
26
32
|
TextColor3 = theme.palette.text.primary,
|
|
27
33
|
},
|
|
28
34
|
selected = {
|
|
29
35
|
BackgroundColor3 = theme.palette.action.selected,
|
|
30
36
|
},
|
|
31
37
|
ellipsis = {
|
|
32
|
-
Size = UDim2.fromOffset(
|
|
38
|
+
Size = UDim2.fromOffset(box, box),
|
|
33
39
|
BackgroundTransparency = 1,
|
|
34
40
|
BorderSizePixel = 0,
|
|
35
41
|
Font = theme.typography.fontFamilies.default,
|
|
36
|
-
TextSize =
|
|
42
|
+
TextSize = text,
|
|
37
43
|
TextColor3 = theme.palette.text.secondary,
|
|
38
44
|
Text = "…",
|
|
39
45
|
},
|
|
@@ -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.7 | 0.55 | 0.35;
|
|
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;
|
|
@@ -938,115 +938,123 @@ local function compositeRows()
|
|
|
938
938
|
local _Length_21 = #_array_22
|
|
939
939
|
table.move(_array_22, 1, _Length_21, _length + 1, _array)
|
|
940
940
|
_length += _Length_21
|
|
941
|
-
local _array_23 = pair("Tabs", "
|
|
941
|
+
local _array_23 = pair("Tabs", "centered", {
|
|
942
942
|
value = "Continue",
|
|
943
943
|
options = { "Continue", "Docs", "Actions" },
|
|
944
|
-
|
|
944
|
+
variant = "centered",
|
|
945
945
|
})
|
|
946
946
|
local _Length_22 = #_array_23
|
|
947
947
|
table.move(_array_23, 1, _Length_22, _length + 1, _array)
|
|
948
948
|
_length += _Length_22
|
|
949
|
-
local _array_24 = pair("Tabs", "
|
|
950
|
-
value =
|
|
951
|
-
options = {
|
|
952
|
-
|
|
953
|
-
width = NARROW,
|
|
949
|
+
local _array_24 = pair("Tabs", "hover", {
|
|
950
|
+
value = "Continue",
|
|
951
|
+
options = { "Continue", "Docs", "Actions" },
|
|
952
|
+
pointer = "hover",
|
|
954
953
|
})
|
|
955
954
|
local _Length_23 = #_array_24
|
|
956
955
|
table.move(_array_24, 1, _Length_23, _length + 1, _array)
|
|
957
956
|
_length += _Length_23
|
|
958
|
-
local _array_25 = pair("
|
|
959
|
-
value =
|
|
957
|
+
local _array_25 = pair("Tabs", "long", {
|
|
958
|
+
value = LONG,
|
|
959
|
+
options = { LONG, "Docs", "Actions", "Source", "Settings" },
|
|
960
|
+
text = LONG,
|
|
961
|
+
width = NARROW,
|
|
960
962
|
})
|
|
961
963
|
local _Length_24 = #_array_25
|
|
962
964
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
963
965
|
_length += _Length_24
|
|
964
|
-
local _array_26 = pair("SplitPane", "
|
|
966
|
+
local _array_26 = pair("SplitPane", "default", {
|
|
965
967
|
value = 160,
|
|
966
|
-
disabled = true,
|
|
967
968
|
})
|
|
968
969
|
local _Length_25 = #_array_26
|
|
969
970
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
970
971
|
_length += _Length_25
|
|
971
|
-
local _array_27 = pair("SplitPane", "
|
|
972
|
+
local _array_27 = pair("SplitPane", "disabled", {
|
|
972
973
|
value = 160,
|
|
973
|
-
|
|
974
|
+
disabled = true,
|
|
974
975
|
})
|
|
975
976
|
local _Length_26 = #_array_27
|
|
976
977
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
977
978
|
_length += _Length_26
|
|
978
|
-
local _array_28 = pair("SplitPane", "
|
|
979
|
+
local _array_28 = pair("SplitPane", "hover", {
|
|
979
980
|
value = 160,
|
|
980
|
-
pointer = "
|
|
981
|
+
pointer = "hover",
|
|
981
982
|
})
|
|
982
983
|
local _Length_27 = #_array_28
|
|
983
984
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
984
985
|
_length += _Length_27
|
|
985
|
-
local _array_29 = pair("SplitPane", "
|
|
986
|
-
value =
|
|
987
|
-
|
|
988
|
-
width = NARROW,
|
|
986
|
+
local _array_29 = pair("SplitPane", "drag", {
|
|
987
|
+
value = 160,
|
|
988
|
+
pointer = "press",
|
|
989
989
|
})
|
|
990
990
|
local _Length_28 = #_array_29
|
|
991
991
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
992
992
|
_length += _Length_28
|
|
993
|
-
local _array_30 = pair("
|
|
993
|
+
local _array_30 = pair("SplitPane", "long", {
|
|
994
|
+
value = 80,
|
|
995
|
+
text = LONG,
|
|
996
|
+
width = NARROW,
|
|
997
|
+
})
|
|
994
998
|
local _Length_29 = #_array_30
|
|
995
999
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
996
1000
|
_length += _Length_29
|
|
997
|
-
local _array_31 = pair("Tooltip", "
|
|
998
|
-
pointer = "hover",
|
|
999
|
-
})
|
|
1001
|
+
local _array_31 = pair("Tooltip", "hidden")
|
|
1000
1002
|
local _Length_30 = #_array_31
|
|
1001
1003
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1002
1004
|
_length += _Length_30
|
|
1003
|
-
local _array_32 = pair("Tooltip", "
|
|
1004
|
-
text = LONG,
|
|
1005
|
-
width = NARROW,
|
|
1005
|
+
local _array_32 = pair("Tooltip", "shown", {
|
|
1006
1006
|
pointer = "hover",
|
|
1007
1007
|
})
|
|
1008
1008
|
local _Length_31 = #_array_32
|
|
1009
1009
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1010
1010
|
_length += _Length_31
|
|
1011
|
-
local _array_33 = pair("
|
|
1012
|
-
|
|
1011
|
+
local _array_33 = pair("Tooltip", "long", {
|
|
1012
|
+
text = LONG,
|
|
1013
|
+
width = NARROW,
|
|
1014
|
+
pointer = "hover",
|
|
1013
1015
|
})
|
|
1014
1016
|
local _Length_32 = #_array_33
|
|
1015
1017
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1016
1018
|
_length += _Length_32
|
|
1017
|
-
local _array_34 = pair("TreeView", "
|
|
1019
|
+
local _array_34 = pair("TreeView", "default", {
|
|
1018
1020
|
selected = "Fixture/Styled",
|
|
1019
|
-
pointer = "hover",
|
|
1020
1021
|
})
|
|
1021
1022
|
local _Length_33 = #_array_34
|
|
1022
1023
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1023
1024
|
_length += _Length_33
|
|
1024
|
-
local _array_35 = pair("TreeView", "
|
|
1025
|
+
local _array_35 = pair("TreeView", "hover", {
|
|
1025
1026
|
selected = "Fixture/Styled",
|
|
1026
|
-
|
|
1027
|
+
pointer = "hover",
|
|
1027
1028
|
})
|
|
1028
1029
|
local _Length_34 = #_array_35
|
|
1029
1030
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1030
1031
|
_length += _Length_34
|
|
1031
|
-
local _array_36 = pair("TreeView", "
|
|
1032
|
-
selected =
|
|
1033
|
-
|
|
1034
|
-
width = NARROW,
|
|
1032
|
+
local _array_36 = pair("TreeView", "filter", {
|
|
1033
|
+
selected = "Fixture/Styled",
|
|
1034
|
+
filter = "sty",
|
|
1035
1035
|
})
|
|
1036
1036
|
local _Length_35 = #_array_36
|
|
1037
1037
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1038
1038
|
_length += _Length_35
|
|
1039
|
-
local _array_37 = pair("
|
|
1040
|
-
|
|
1039
|
+
local _array_37 = pair("TreeView", "long", {
|
|
1040
|
+
selected = `Fixture/{LONG}`,
|
|
1041
|
+
text = LONG,
|
|
1042
|
+
width = NARROW,
|
|
1041
1043
|
})
|
|
1042
1044
|
local _Length_36 = #_array_37
|
|
1043
1045
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1044
1046
|
_length += _Length_36
|
|
1045
|
-
local _array_38 = pair("IconButton", "loading
|
|
1047
|
+
local _array_38 = pair("IconButton", "loading", {
|
|
1048
|
+
loading = true,
|
|
1049
|
+
})
|
|
1050
|
+
local _Length_37 = #_array_38
|
|
1051
|
+
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1052
|
+
_length += _Length_37
|
|
1053
|
+
local _array_39 = pair("IconButton", "loading-disabled", {
|
|
1046
1054
|
loading = true,
|
|
1047
1055
|
disabled = true,
|
|
1048
1056
|
})
|
|
1049
|
-
table.move(
|
|
1057
|
+
table.move(_array_39, 1, #_array_39, _length + 1, _array)
|
|
1050
1058
|
return _array
|
|
1051
1059
|
end
|
|
1052
1060
|
local function surfacesRows()
|
|
@@ -1295,16 +1303,22 @@ local function surfacesRows()
|
|
|
1295
1303
|
local _Length_38 = #_array_39
|
|
1296
1304
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1297
1305
|
_length += _Length_38
|
|
1298
|
-
local _array_40 = pair("
|
|
1299
|
-
|
|
1306
|
+
local _array_40 = pair("Chip", "outlined", {
|
|
1307
|
+
variant = "outlined",
|
|
1300
1308
|
})
|
|
1301
1309
|
local _Length_39 = #_array_40
|
|
1302
1310
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1303
1311
|
_length += _Length_39
|
|
1304
|
-
local _array_41 = pair("Badge", "
|
|
1312
|
+
local _array_41 = pair("Badge", "count", {
|
|
1313
|
+
value = 3,
|
|
1314
|
+
})
|
|
1315
|
+
local _Length_40 = #_array_41
|
|
1316
|
+
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1317
|
+
_length += _Length_40
|
|
1318
|
+
local _array_42 = pair("Badge", "max", {
|
|
1305
1319
|
value = 100,
|
|
1306
1320
|
})
|
|
1307
|
-
table.move(
|
|
1321
|
+
table.move(_array_42, 1, #_array_42, _length + 1, _array)
|
|
1308
1322
|
return _array
|
|
1309
1323
|
end
|
|
1310
1324
|
local function chromeRows()
|
|
@@ -1418,189 +1432,203 @@ local function chromeRows()
|
|
|
1418
1432
|
local _Length_16 = #_array_17
|
|
1419
1433
|
table.move(_array_17, 1, _Length_16, _length + 1, _array)
|
|
1420
1434
|
_length += _Length_16
|
|
1421
|
-
local _array_18 = pair("
|
|
1422
|
-
value =
|
|
1435
|
+
local _array_18 = pair("Pagination", "size-small", {
|
|
1436
|
+
value = 2,
|
|
1437
|
+
size = "small",
|
|
1423
1438
|
})
|
|
1424
1439
|
local _Length_17 = #_array_18
|
|
1425
1440
|
table.move(_array_18, 1, _Length_17, _length + 1, _array)
|
|
1426
1441
|
_length += _Length_17
|
|
1427
|
-
local _array_19 = pair("Stepper", "
|
|
1428
|
-
value =
|
|
1442
|
+
local _array_19 = pair("Stepper", "first", {
|
|
1443
|
+
value = 0,
|
|
1429
1444
|
})
|
|
1430
1445
|
local _Length_18 = #_array_19
|
|
1431
1446
|
table.move(_array_19, 1, _Length_18, _length + 1, _array)
|
|
1432
1447
|
_length += _Length_18
|
|
1433
|
-
local _array_20 = pair("Stepper", "
|
|
1434
|
-
value =
|
|
1448
|
+
local _array_20 = pair("Stepper", "middle", {
|
|
1449
|
+
value = 1,
|
|
1435
1450
|
})
|
|
1436
1451
|
local _Length_19 = #_array_20
|
|
1437
1452
|
table.move(_array_20, 1, _Length_19, _length + 1, _array)
|
|
1438
1453
|
_length += _Length_19
|
|
1439
|
-
local _array_21 = pair("Stepper", "
|
|
1440
|
-
value =
|
|
1441
|
-
variant = "vertical",
|
|
1454
|
+
local _array_21 = pair("Stepper", "last", {
|
|
1455
|
+
value = 2,
|
|
1442
1456
|
})
|
|
1443
1457
|
local _Length_20 = #_array_21
|
|
1444
1458
|
table.move(_array_21, 1, _Length_20, _length + 1, _array)
|
|
1445
1459
|
_length += _Length_20
|
|
1446
|
-
local _array_22 = pair("
|
|
1447
|
-
|
|
1460
|
+
local _array_22 = pair("Stepper", "vertical", {
|
|
1461
|
+
value = 1,
|
|
1462
|
+
variant = "vertical",
|
|
1448
1463
|
})
|
|
1449
1464
|
local _Length_21 = #_array_22
|
|
1450
1465
|
table.move(_array_22, 1, _Length_21, _length + 1, _array)
|
|
1451
1466
|
_length += _Length_21
|
|
1452
|
-
local _array_23 = pair("Accordion", "
|
|
1453
|
-
open =
|
|
1467
|
+
local _array_23 = pair("Accordion", "closed", {
|
|
1468
|
+
open = false,
|
|
1454
1469
|
})
|
|
1455
1470
|
local _Length_22 = #_array_23
|
|
1456
1471
|
table.move(_array_23, 1, _Length_22, _length + 1, _array)
|
|
1457
1472
|
_length += _Length_22
|
|
1458
|
-
local _array_24 = pair("Accordion", "
|
|
1459
|
-
open =
|
|
1460
|
-
disabled = true,
|
|
1473
|
+
local _array_24 = pair("Accordion", "open", {
|
|
1474
|
+
open = true,
|
|
1461
1475
|
})
|
|
1462
1476
|
local _Length_23 = #_array_24
|
|
1463
1477
|
table.move(_array_24, 1, _Length_23, _length + 1, _array)
|
|
1464
1478
|
_length += _Length_23
|
|
1465
|
-
local _array_25 = pair("
|
|
1466
|
-
open =
|
|
1467
|
-
|
|
1479
|
+
local _array_25 = pair("Accordion", "disabled", {
|
|
1480
|
+
open = false,
|
|
1481
|
+
disabled = true,
|
|
1468
1482
|
})
|
|
1469
1483
|
local _Length_24 = #_array_25
|
|
1470
1484
|
table.move(_array_25, 1, _Length_24, _length + 1, _array)
|
|
1471
1485
|
_length += _Length_24
|
|
1472
|
-
local _array_26 = pair("Snackbar", "
|
|
1473
|
-
open =
|
|
1486
|
+
local _array_26 = pair("Snackbar", "open", {
|
|
1487
|
+
open = true,
|
|
1474
1488
|
text = "Saved",
|
|
1475
1489
|
})
|
|
1476
1490
|
local _Length_25 = #_array_26
|
|
1477
1491
|
table.move(_array_26, 1, _Length_25, _length + 1, _array)
|
|
1478
1492
|
_length += _Length_25
|
|
1479
|
-
local _array_27 = pair("
|
|
1480
|
-
|
|
1493
|
+
local _array_27 = pair("Snackbar", "closed", {
|
|
1494
|
+
open = false,
|
|
1495
|
+
text = "Saved",
|
|
1481
1496
|
})
|
|
1482
1497
|
local _Length_26 = #_array_27
|
|
1483
1498
|
table.move(_array_27, 1, _Length_26, _length + 1, _array)
|
|
1484
1499
|
_length += _Length_26
|
|
1485
|
-
local _array_28 = pair("Table", "
|
|
1486
|
-
text = "
|
|
1500
|
+
local _array_28 = pair("Table", "empty", {
|
|
1501
|
+
text = "",
|
|
1487
1502
|
})
|
|
1488
1503
|
local _Length_27 = #_array_28
|
|
1489
1504
|
table.move(_array_28, 1, _Length_27, _length + 1, _array)
|
|
1490
1505
|
_length += _Length_27
|
|
1491
|
-
local _array_29 = pair("Table", "
|
|
1506
|
+
local _array_29 = pair("Table", "default", {
|
|
1492
1507
|
text = "Name / Role",
|
|
1493
|
-
value = 0,
|
|
1494
1508
|
})
|
|
1495
1509
|
local _Length_28 = #_array_29
|
|
1496
1510
|
table.move(_array_29, 1, _Length_28, _length + 1, _array)
|
|
1497
1511
|
_length += _Length_28
|
|
1498
|
-
local _array_30 = pair("Table", "
|
|
1512
|
+
local _array_30 = pair("Table", "selected", {
|
|
1499
1513
|
text = "Name / Role",
|
|
1500
|
-
|
|
1514
|
+
value = 0,
|
|
1501
1515
|
})
|
|
1502
1516
|
local _Length_29 = #_array_30
|
|
1503
1517
|
table.move(_array_30, 1, _Length_29, _length + 1, _array)
|
|
1504
1518
|
_length += _Length_29
|
|
1505
|
-
local _array_31 = pair("
|
|
1506
|
-
|
|
1507
|
-
|
|
1519
|
+
local _array_31 = pair("Table", "dense", {
|
|
1520
|
+
text = "Name / Role",
|
|
1521
|
+
variant = "dense",
|
|
1508
1522
|
})
|
|
1509
1523
|
local _Length_30 = #_array_31
|
|
1510
1524
|
table.move(_array_31, 1, _Length_30, _length + 1, _array)
|
|
1511
1525
|
_length += _Length_30
|
|
1512
|
-
local _array_32 = pair("Autocomplete", "
|
|
1526
|
+
local _array_32 = pair("Autocomplete", "default", {
|
|
1513
1527
|
value = "Continue",
|
|
1514
1528
|
options = { "Continue", "Other" },
|
|
1515
|
-
open = true,
|
|
1516
1529
|
})
|
|
1517
1530
|
local _Length_31 = #_array_32
|
|
1518
1531
|
table.move(_array_32, 1, _Length_31, _length + 1, _array)
|
|
1519
1532
|
_length += _Length_31
|
|
1520
|
-
local _array_33 = pair("Autocomplete", "
|
|
1533
|
+
local _array_33 = pair("Autocomplete", "open", {
|
|
1521
1534
|
value = "Continue",
|
|
1522
1535
|
options = { "Continue", "Other" },
|
|
1523
|
-
|
|
1536
|
+
open = true,
|
|
1524
1537
|
})
|
|
1525
1538
|
local _Length_32 = #_array_33
|
|
1526
1539
|
table.move(_array_33, 1, _Length_32, _length + 1, _array)
|
|
1527
1540
|
_length += _Length_32
|
|
1528
|
-
local _array_34 = pair("Autocomplete", "
|
|
1529
|
-
value = "",
|
|
1530
|
-
options = {},
|
|
1531
|
-
|
|
1541
|
+
local _array_34 = pair("Autocomplete", "disabled", {
|
|
1542
|
+
value = "Continue",
|
|
1543
|
+
options = { "Continue", "Other" },
|
|
1544
|
+
disabled = true,
|
|
1532
1545
|
})
|
|
1533
1546
|
local _Length_33 = #_array_34
|
|
1534
1547
|
table.move(_array_34, 1, _Length_33, _length + 1, _array)
|
|
1535
1548
|
_length += _Length_33
|
|
1536
|
-
local _array_35 = pair("Autocomplete", "
|
|
1537
|
-
value = "
|
|
1538
|
-
options = {
|
|
1549
|
+
local _array_35 = pair("Autocomplete", "empty", {
|
|
1550
|
+
value = "",
|
|
1551
|
+
options = {},
|
|
1539
1552
|
open = true,
|
|
1540
|
-
filter = "zzz",
|
|
1541
1553
|
})
|
|
1542
1554
|
local _Length_34 = #_array_35
|
|
1543
1555
|
table.move(_array_35, 1, _Length_34, _length + 1, _array)
|
|
1544
1556
|
_length += _Length_34
|
|
1545
|
-
local _array_36 = pair("
|
|
1557
|
+
local _array_36 = pair("Autocomplete", "no-results", {
|
|
1558
|
+
value = "Continue",
|
|
1559
|
+
options = { "Continue", "Other" },
|
|
1560
|
+
open = true,
|
|
1561
|
+
filter = "zzz",
|
|
1562
|
+
})
|
|
1546
1563
|
local _Length_35 = #_array_36
|
|
1547
1564
|
table.move(_array_36, 1, _Length_35, _length + 1, _array)
|
|
1548
1565
|
_length += _Length_35
|
|
1549
|
-
local _array_37 = pair("Fab", "
|
|
1550
|
-
text = "Compose",
|
|
1551
|
-
})
|
|
1566
|
+
local _array_37 = pair("Fab", "default")
|
|
1552
1567
|
local _Length_36 = #_array_37
|
|
1553
1568
|
table.move(_array_37, 1, _Length_36, _length + 1, _array)
|
|
1554
1569
|
_length += _Length_36
|
|
1555
|
-
local _array_38 = pair("Fab", "
|
|
1556
|
-
|
|
1570
|
+
local _array_38 = pair("Fab", "extended", {
|
|
1571
|
+
text = "Compose",
|
|
1557
1572
|
})
|
|
1558
1573
|
local _Length_37 = #_array_38
|
|
1559
1574
|
table.move(_array_38, 1, _Length_37, _length + 1, _array)
|
|
1560
1575
|
_length += _Length_37
|
|
1561
|
-
local _array_39 = pair("Fab", "
|
|
1562
|
-
size = "
|
|
1576
|
+
local _array_39 = pair("Fab", "small", {
|
|
1577
|
+
size = "small",
|
|
1563
1578
|
})
|
|
1564
1579
|
local _Length_38 = #_array_39
|
|
1565
1580
|
table.move(_array_39, 1, _Length_38, _length + 1, _array)
|
|
1566
1581
|
_length += _Length_38
|
|
1567
|
-
local _array_40 = pair("Fab", "
|
|
1568
|
-
|
|
1582
|
+
local _array_40 = pair("Fab", "large", {
|
|
1583
|
+
size = "large",
|
|
1569
1584
|
})
|
|
1570
1585
|
local _Length_39 = #_array_40
|
|
1571
1586
|
table.move(_array_40, 1, _Length_39, _length + 1, _array)
|
|
1572
1587
|
_length += _Length_39
|
|
1573
|
-
local _array_41 = pair("Fab", "
|
|
1574
|
-
|
|
1588
|
+
local _array_41 = pair("Fab", "disabled", {
|
|
1589
|
+
disabled = true,
|
|
1575
1590
|
})
|
|
1576
1591
|
local _Length_40 = #_array_41
|
|
1577
1592
|
table.move(_array_41, 1, _Length_40, _length + 1, _array)
|
|
1578
1593
|
_length += _Length_40
|
|
1579
|
-
local _array_42 = pair("
|
|
1580
|
-
|
|
1594
|
+
local _array_42 = pair("Fab", "loading", {
|
|
1595
|
+
loading = true,
|
|
1581
1596
|
})
|
|
1582
1597
|
local _Length_41 = #_array_42
|
|
1583
1598
|
table.move(_array_42, 1, _Length_41, _length + 1, _array)
|
|
1584
1599
|
_length += _Length_41
|
|
1585
|
-
local _array_43 = pair("AppBar", "
|
|
1600
|
+
local _array_43 = pair("AppBar", "default", {
|
|
1586
1601
|
text = "Storyblox",
|
|
1587
|
-
variant = "flat",
|
|
1588
1602
|
})
|
|
1589
1603
|
local _Length_42 = #_array_43
|
|
1590
1604
|
table.move(_array_43, 1, _Length_42, _length + 1, _array)
|
|
1591
1605
|
_length += _Length_42
|
|
1592
|
-
local _array_44 = pair("AppBar", "
|
|
1606
|
+
local _array_44 = pair("AppBar", "flat", {
|
|
1593
1607
|
text = "Storyblox",
|
|
1594
|
-
variant = "
|
|
1608
|
+
variant = "flat",
|
|
1595
1609
|
})
|
|
1596
1610
|
local _Length_43 = #_array_44
|
|
1597
1611
|
table.move(_array_44, 1, _Length_43, _length + 1, _array)
|
|
1598
1612
|
_length += _Length_43
|
|
1599
|
-
local _array_45 = pair("
|
|
1613
|
+
local _array_45 = pair("AppBar", "raised", {
|
|
1614
|
+
text = "Storyblox",
|
|
1615
|
+
variant = "raised",
|
|
1616
|
+
})
|
|
1617
|
+
local _Length_44 = #_array_45
|
|
1618
|
+
table.move(_array_45, 1, _Length_44, _length + 1, _array)
|
|
1619
|
+
_length += _Length_44
|
|
1620
|
+
local _array_46 = pair("AppBar", "primary", {
|
|
1621
|
+
text = "Storyblox",
|
|
1622
|
+
variant = "primary",
|
|
1623
|
+
})
|
|
1624
|
+
local _Length_45 = #_array_46
|
|
1625
|
+
table.move(_array_46, 1, _Length_45, _length + 1, _array)
|
|
1626
|
+
_length += _Length_45
|
|
1627
|
+
local _array_47 = pair("BottomNavigation", "default", {
|
|
1600
1628
|
value = "Home",
|
|
1601
1629
|
options = { "Home", "Search", "Profile" },
|
|
1602
1630
|
})
|
|
1603
|
-
table.move(
|
|
1631
|
+
table.move(_array_47, 1, #_array_47, _length + 1, _array)
|
|
1604
1632
|
return _array
|
|
1605
1633
|
end
|
|
1606
1634
|
local function miscRows()
|
|
@@ -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.55 | 0.35 | 0.15 | 0.65 | 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): {
|
|
@@ -13,12 +13,14 @@ local function Tabs(props)
|
|
|
13
13
|
local onChange = _binding.onChange
|
|
14
14
|
local disabled = _binding.disabled
|
|
15
15
|
local orientation = _binding.orientation
|
|
16
|
+
local centered = _binding.centered
|
|
16
17
|
local className = _binding.className
|
|
17
18
|
local sx = _binding.sx
|
|
18
19
|
local id = _binding.id
|
|
19
20
|
local ref = _binding.ref
|
|
20
21
|
local styles = useTabsStyles({
|
|
21
22
|
orientation = orientation,
|
|
23
|
+
centered = centered,
|
|
22
24
|
})
|
|
23
25
|
local vertical = tabsIsVertical(orientation)
|
|
24
26
|
local choose = function(index)
|
|
@@ -6,6 +6,7 @@ local componentStyles = _theme.componentStyles
|
|
|
6
6
|
local tabsIsVertical = TS.import(script, script.Parent, "tabsOrientation").tabsIsVertical
|
|
7
7
|
local useTabsStyles = componentStyles("Tabs", function(theme, _param)
|
|
8
8
|
local orientation = _param.orientation
|
|
9
|
+
local centered = _param.centered
|
|
9
10
|
local vertical = tabsIsVertical(orientation)
|
|
10
11
|
local bar = theme.padding.calc(0.5)
|
|
11
12
|
return createStyles({
|
|
@@ -23,6 +24,7 @@ local useTabsStyles = componentStyles("Tabs", function(theme, _param)
|
|
|
23
24
|
},
|
|
24
25
|
list = {
|
|
25
26
|
FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
|
|
27
|
+
HorizontalAlignment = if centered == true and vertical ~= true then Enum.HorizontalAlignment.Center else Enum.HorizontalAlignment.Left,
|
|
26
28
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
27
29
|
},
|
|
28
30
|
tab = {
|