@rbxts/uiblox 0.2.0-alpha.24 → 0.2.0-alpha.26
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/hooks/index.d.ts +1 -0
- package/out/hooks/init.luau +3 -0
- package/out/hooks/useBreakpoints.luau +2 -11
- package/out/hooks/viewportObserver.d.ts +10 -0
- package/out/hooks/viewportObserver.luau +75 -0
- package/out/theme/interfaces/theme/Theme.d.ts +15 -0
- package/out/theme/styles/utilities/componentStyles.luau +45 -3
- package/out/theme/styles/utilities/componentTheme.d.ts +15 -0
- package/out/theme/styles/utilities/index.d.ts +2 -0
- package/out/theme/styles/utilities/init.luau +7 -0
- package/out/theme/styles/utilities/resolveStyle.d.ts +10 -2
- package/out/theme/styles/utilities/resolveStyle.luau +7 -3
- package/out/theme/styles/utilities/resolveSx.d.ts +110 -0
- package/out/theme/styles/utilities/resolveSx.luau +479 -0
- package/out/theme/styles/utilities/styleCache.d.ts +2 -0
- package/out/theme/styles/utilities/styleCache.luau +9 -0
- package/out/ui/packages/accordion/components/Accordion.luau +12 -16
- package/out/ui/packages/alert/components/Alert.luau +9 -16
- package/out/ui/packages/appBar/components/AppBar.luau +9 -16
- package/out/ui/packages/assetField/components/AssetField.luau +12 -16
- package/out/ui/packages/avatar/components/Avatar.luau +9 -16
- package/out/ui/packages/backdrop/components/Backdrop.luau +9 -16
- package/out/ui/packages/badge/components/Badge.luau +9 -16
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +12 -16
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +9 -16
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +12 -16
- package/out/ui/packages/button/components/Button.luau +20 -18
- package/out/ui/packages/card/components/Card.d.ts +2 -1
- package/out/ui/packages/card/components/Card.luau +8 -0
- package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +12 -16
- package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
- package/out/ui/packages/chip/components/Chip.luau +13 -16
- package/out/ui/packages/circularProgress/components/CircularProgress.luau +16 -16
- package/out/ui/packages/colorPicker/components/ColorPicker.luau +12 -16
- package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +12 -16
- package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +12 -16
- package/out/ui/packages/dialog/components/Dialog.d.ts +2 -1
- package/out/ui/packages/dialog/components/Dialog.luau +21 -10
- package/out/ui/packages/divider/components/Divider.luau +20 -33
- package/out/ui/packages/drawer/components/Drawer.d.ts +2 -1
- package/out/ui/packages/drawer/components/Drawer.luau +18 -5
- package/out/ui/packages/fab/components/Fab.luau +15 -16
- package/out/ui/packages/fontEditor/components/FontEditor.luau +12 -16
- package/out/ui/packages/formText/components/FormHelperText.luau +12 -16
- package/out/ui/packages/formText/components/FormLabel.luau +12 -16
- package/out/ui/packages/gradientEditor/components/GradientEditor.luau +12 -16
- package/out/ui/packages/host/components/SxHost.d.ts +18 -0
- package/out/ui/packages/host/components/SxHost.luau +197 -0
- package/out/ui/packages/host/hostPaint.d.ts +11 -0
- package/out/ui/packages/host/hostPaint.luau +33 -0
- package/out/ui/packages/host/hostRules.d.ts +15 -0
- package/out/ui/packages/host/hostRules.luau +92 -0
- package/out/ui/packages/host/index.d.ts +3 -0
- package/out/ui/packages/host/init.luau +13 -0
- package/out/ui/packages/icon/components/Icon.luau +9 -16
- package/out/ui/packages/iconButton/components/IconButton.luau +16 -16
- package/out/ui/packages/imageList/components/ImageList.luau +9 -16
- package/out/ui/packages/imageList/components/ImageList.styles.luau +4 -3
- package/out/ui/packages/input/components/Input.luau +14 -16
- package/out/ui/packages/layout/components/Box.luau +6 -15
- package/out/ui/packages/layout/components/Container.luau +6 -15
- package/out/ui/packages/layout/components/FlexItem.luau +6 -15
- package/out/ui/packages/layout/components/Grid.luau +6 -15
- package/out/ui/packages/layout/components/List.luau +9 -16
- package/out/ui/packages/layout/components/Stack.luau +6 -15
- package/out/ui/packages/link/components/Link.luau +13 -16
- package/out/ui/packages/listItem/components/ListItem.d.ts +2 -1
- package/out/ui/packages/listItem/components/ListItem.luau +23 -4
- package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +5 -1
- package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +11 -0
- package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +2 -0
- package/out/ui/packages/markdown/components/Markdown.luau +9 -16
- package/out/ui/packages/markdown/components/MarkdownEditor.luau +9 -16
- package/out/ui/packages/menu/components/Menu.d.ts +2 -1
- package/out/ui/packages/menu/components/Menu.luau +23 -12
- package/out/ui/packages/modal/components/Modal.d.ts +2 -1
- package/out/ui/packages/modal/components/Modal.luau +29 -5
- package/out/ui/packages/numberInput/components/NumberInput.d.ts +1 -0
- package/out/ui/packages/numberInput/components/NumberInput.luau +14 -3
- package/out/ui/packages/numberInput/components/numberValue.d.ts +1 -0
- package/out/ui/packages/numberInput/components/numberValue.luau +45 -0
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +12 -16
- package/out/ui/packages/pagination/components/Pagination.luau +12 -16
- package/out/ui/packages/paper/components/Paper.d.ts +2 -1
- package/out/ui/packages/paper/components/Paper.luau +21 -12
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +63 -38
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +21 -7
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +2 -0
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +14 -0
- package/out/ui/packages/popup/components/Popup.d.ts +2 -1
- package/out/ui/packages/popup/components/Popup.luau +35 -18
- package/out/ui/packages/preloader/components/Preloader.luau +9 -16
- package/out/ui/packages/progressBar/components/ProgressBar.luau +12 -16
- package/out/ui/packages/radioGroup/components/RadioGroup.luau +12 -16
- package/out/ui/packages/rating/components/Rating.luau +12 -16
- package/out/ui/packages/rayEditor/components/RayEditor.luau +12 -16
- package/out/ui/packages/rectEditor/components/RectEditor.luau +86 -43
- package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +30 -7
- package/out/ui/packages/select/components/Select.luau +13 -16
- package/out/ui/packages/shadow/components/Shadow.d.ts +2 -1
- package/out/ui/packages/shadow/components/Shadow.luau +17 -5
- package/out/ui/packages/sidebar/components/Sidebar.luau +9 -16
- package/out/ui/packages/skeleton/components/Skeleton.luau +19 -28
- package/out/ui/packages/slider/components/Slider.luau +16 -17
- package/out/ui/packages/speedDial/components/SpeedDial.luau +12 -16
- package/out/ui/packages/splitPane/components/SplitPane.luau +12 -16
- package/out/ui/packages/stateMatrix.luau +1171 -675
- package/out/ui/packages/stepper/components/Stepper.luau +9 -16
- package/out/ui/packages/switch/components/Switch.luau +16 -16
- package/out/ui/packages/table/components/Table.luau +9 -16
- package/out/ui/packages/tabs/components/Tabs.luau +12 -16
- package/out/ui/packages/toast/components/Toast.luau +16 -13
- package/out/ui/packages/toggleButton/components/ToggleButton.luau +24 -32
- package/out/ui/packages/tooltip/components/Tooltip.luau +9 -16
- package/out/ui/packages/treeView/components/TreeView.luau +9 -16
- package/out/ui/packages/typography/components/Typography.luau +13 -14
- package/out/ui/packages/udimEditor/components/UDimEditor.luau +12 -16
- package/out/ui/packages/vectorEditor/components/VectorEditor.luau +12 -16
- package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +2 -1
- package/out/ui/packages/virtualList/components/EmptyListHint.luau +15 -4
- package/out/ui/packages/virtualList/components/VirtualList.luau +9 -16
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
4
5
|
local Input = TS.import(script, script.Parent.Parent.Parent, "input").Input
|
|
5
6
|
local useAssetFieldStyles = TS.import(script, script.Parent, "AssetField.styles").default
|
|
6
7
|
local assetPreviewUri = TS.import(script, script.Parent, "assetPreviewUri").assetPreviewUri
|
|
@@ -23,26 +24,21 @@ local function AssetField(props)
|
|
|
23
24
|
local ref = _binding.ref
|
|
24
25
|
local styles = useAssetFieldStyles()
|
|
25
26
|
local uri = if preview == true then assetPreviewUri(value) else nil
|
|
26
|
-
local _attributes = {
|
|
27
|
+
local _attributes = {
|
|
28
|
+
tag = "frame",
|
|
29
|
+
}
|
|
27
30
|
local _condition = id
|
|
28
31
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
29
32
|
_condition = "AssetField"
|
|
30
33
|
end
|
|
31
34
|
_attributes.key = _condition
|
|
32
|
-
_attributes.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
if sx then
|
|
42
|
-
for _k, _v in sx do
|
|
43
|
-
_attributes[_k] = _v
|
|
44
|
-
end
|
|
45
|
-
end
|
|
35
|
+
_attributes.hostRef = ref
|
|
36
|
+
_attributes.base = styles.root
|
|
37
|
+
_attributes.className = className
|
|
38
|
+
_attributes.sx = sx
|
|
39
|
+
_attributes.state = {
|
|
40
|
+
disabled = disabled,
|
|
41
|
+
}
|
|
46
42
|
local _attributes_1 = table.clone(styles.list)
|
|
47
43
|
setmetatable(_attributes_1, nil)
|
|
48
44
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -67,7 +63,7 @@ local function AssetField(props)
|
|
|
67
63
|
setmetatable(_attributes_3, nil)
|
|
68
64
|
_condition_1 = (React.createElement("imagelabel", _attributes_2, React.createElement("uicorner", _attributes_3)))
|
|
69
65
|
end
|
|
70
|
-
return React.createElement(
|
|
66
|
+
return React.createElement(SxHost, _attributes, _exp, _exp_1, _condition_1)
|
|
71
67
|
end
|
|
72
68
|
local default = AssetField
|
|
73
69
|
return {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local avatarInitials = TS.import(script, script.Parent, "avatarText").avatarInitials
|
|
5
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
6
|
local useAvatarStyles = TS.import(script, script.Parent, "Avatar.styles").default
|
|
6
7
|
local function Avatar(props)
|
|
7
8
|
local _binding = props
|
|
@@ -23,26 +24,18 @@ local function Avatar(props)
|
|
|
23
24
|
size = size,
|
|
24
25
|
variant = variant,
|
|
25
26
|
})
|
|
26
|
-
local _attributes = {
|
|
27
|
+
local _attributes = {
|
|
28
|
+
tag = "frame",
|
|
29
|
+
}
|
|
27
30
|
local _condition = id
|
|
28
31
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
29
32
|
_condition = "Avatar"
|
|
30
33
|
end
|
|
31
34
|
_attributes.key = _condition
|
|
32
|
-
_attributes.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if className then
|
|
37
|
-
for _k, _v in className do
|
|
38
|
-
_attributes[_k] = _v
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
if sx then
|
|
42
|
-
for _k, _v in sx do
|
|
43
|
-
_attributes[_k] = _v
|
|
44
|
-
end
|
|
45
|
-
end
|
|
35
|
+
_attributes.hostRef = ref
|
|
36
|
+
_attributes.base = styles.root
|
|
37
|
+
_attributes.className = className
|
|
38
|
+
_attributes.sx = sx
|
|
46
39
|
local _condition_1 = variant ~= "square"
|
|
47
40
|
if _condition_1 then
|
|
48
41
|
local _attributes_1 = table.clone(styles.corner)
|
|
@@ -69,7 +62,7 @@ local function Avatar(props)
|
|
|
69
62
|
_attributes_1.Text = avatarInitials(name)
|
|
70
63
|
_result = (React.createElement("textlabel", _attributes_1))
|
|
71
64
|
end
|
|
72
|
-
return React.createElement(
|
|
65
|
+
return React.createElement(SxHost, _attributes, _condition_1, _result)
|
|
73
66
|
end
|
|
74
67
|
local default = Avatar
|
|
75
68
|
return {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
4
5
|
local useBackdropStyles = TS.import(script, script.Parent, "Backdrop.styles").default
|
|
5
6
|
local function Backdrop(props)
|
|
6
7
|
local _binding = props
|
|
@@ -21,26 +22,18 @@ local function Backdrop(props)
|
|
|
21
22
|
if open ~= true then
|
|
22
23
|
return nil
|
|
23
24
|
end
|
|
24
|
-
local _attributes = {
|
|
25
|
+
local _attributes = {
|
|
26
|
+
tag = "textbutton",
|
|
27
|
+
}
|
|
25
28
|
local _condition = id
|
|
26
29
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
27
30
|
_condition = "Backdrop"
|
|
28
31
|
end
|
|
29
32
|
_attributes.key = _condition
|
|
30
|
-
_attributes.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if className then
|
|
35
|
-
for _k, _v in className do
|
|
36
|
-
_attributes[_k] = _v
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
if sx then
|
|
40
|
-
for _k, _v in sx do
|
|
41
|
-
_attributes[_k] = _v
|
|
42
|
-
end
|
|
43
|
-
end
|
|
33
|
+
_attributes.hostRef = ref
|
|
34
|
+
_attributes.base = styles.root
|
|
35
|
+
_attributes.className = className
|
|
36
|
+
_attributes.sx = sx
|
|
44
37
|
_attributes.Event = {
|
|
45
38
|
Activated = function()
|
|
46
39
|
local _result = onClick
|
|
@@ -50,7 +43,7 @@ local function Backdrop(props)
|
|
|
50
43
|
return _result
|
|
51
44
|
end,
|
|
52
45
|
}
|
|
53
|
-
return React.createElement(
|
|
46
|
+
return React.createElement(SxHost, _attributes, children)
|
|
54
47
|
end
|
|
55
48
|
local default = Backdrop
|
|
56
49
|
return {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local badgeText = TS.import(script, script.Parent, "badgeValue").badgeText
|
|
5
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
6
|
local useBadgeStyles = TS.import(script, script.Parent, "Badge.styles").default
|
|
6
7
|
local function Badge(props)
|
|
7
8
|
local _binding = props
|
|
@@ -36,26 +37,18 @@ local function Badge(props)
|
|
|
36
37
|
})
|
|
37
38
|
local isDot = variant == "dot"
|
|
38
39
|
local shown = not invisible and (isDot or count > 0)
|
|
39
|
-
local _attributes = {
|
|
40
|
+
local _attributes = {
|
|
41
|
+
tag = "frame",
|
|
42
|
+
}
|
|
40
43
|
local _condition = id
|
|
41
44
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
42
45
|
_condition = "Badge"
|
|
43
46
|
end
|
|
44
47
|
_attributes.key = _condition
|
|
45
|
-
_attributes.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if className then
|
|
50
|
-
for _k, _v in className do
|
|
51
|
-
_attributes[_k] = _v
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
if sx then
|
|
55
|
-
for _k, _v in sx do
|
|
56
|
-
_attributes[_k] = _v
|
|
57
|
-
end
|
|
58
|
-
end
|
|
48
|
+
_attributes.hostRef = ref
|
|
49
|
+
_attributes.base = styles.root
|
|
50
|
+
_attributes.className = className
|
|
51
|
+
_attributes.sx = sx
|
|
59
52
|
local _exp = children
|
|
60
53
|
local _condition_1 = shown
|
|
61
54
|
if _condition_1 then
|
|
@@ -76,7 +69,7 @@ local function Badge(props)
|
|
|
76
69
|
setmetatable(_attributes_2, nil)
|
|
77
70
|
_condition_1 = (React.createElement("textlabel", _attributes_1, _condition_2, React.createElement("uicorner", _attributes_2)))
|
|
78
71
|
end
|
|
79
|
-
return React.createElement(
|
|
72
|
+
return React.createElement(SxHost, _attributes, _exp, _condition_1)
|
|
80
73
|
end
|
|
81
74
|
local default = Badge
|
|
82
75
|
return {
|
|
@@ -3,6 +3,7 @@ local TS = _G[script]
|
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
|
|
5
5
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
6
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
6
7
|
local useBottomNavigationStyles = TS.import(script, script.Parent, "BottomNavigation.styles").default
|
|
7
8
|
local function BottomNavigation(props)
|
|
8
9
|
local _binding = props
|
|
@@ -22,26 +23,21 @@ local function BottomNavigation(props)
|
|
|
22
23
|
showLabels = showLabels,
|
|
23
24
|
})
|
|
24
25
|
local count = math.max(#options, 1)
|
|
25
|
-
local _attributes = {
|
|
26
|
+
local _attributes = {
|
|
27
|
+
tag = "frame",
|
|
28
|
+
}
|
|
26
29
|
local _condition = id
|
|
27
30
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
28
31
|
_condition = "BottomNavigation"
|
|
29
32
|
end
|
|
30
33
|
_attributes.key = _condition
|
|
31
|
-
_attributes.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
if sx then
|
|
41
|
-
for _k, _v in sx do
|
|
42
|
-
_attributes[_k] = _v
|
|
43
|
-
end
|
|
44
|
-
end
|
|
34
|
+
_attributes.hostRef = ref
|
|
35
|
+
_attributes.base = styles.root
|
|
36
|
+
_attributes.className = className
|
|
37
|
+
_attributes.sx = sx
|
|
38
|
+
_attributes.state = {
|
|
39
|
+
disabled = disabled,
|
|
40
|
+
}
|
|
45
41
|
local _attributes_1 = table.clone(styles.list)
|
|
46
42
|
setmetatable(_attributes_1, nil)
|
|
47
43
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -84,7 +80,7 @@ local function BottomNavigation(props)
|
|
|
84
80
|
_newValue[_k] = _callback(_v, _k - 1, options)
|
|
85
81
|
end
|
|
86
82
|
-- ▲ ReadonlyArray.map ▲
|
|
87
|
-
return React.createElement(
|
|
83
|
+
return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
|
|
88
84
|
end
|
|
89
85
|
local default = BottomNavigation
|
|
90
86
|
return {
|
|
@@ -5,6 +5,7 @@ local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
|
5
5
|
local _breadcrumbItems = TS.import(script, script.Parent, "breadcrumbItems")
|
|
6
6
|
local breadcrumbCurrent = _breadcrumbItems.breadcrumbCurrent
|
|
7
7
|
local breadcrumbVisible = _breadcrumbItems.breadcrumbVisible
|
|
8
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
8
9
|
local useBreadcrumbStyles = TS.import(script, script.Parent, "Breadcrumbs.styles").default
|
|
9
10
|
local function Breadcrumbs(props)
|
|
10
11
|
local _binding = props
|
|
@@ -20,26 +21,18 @@ local function Breadcrumbs(props)
|
|
|
20
21
|
local ref = _binding.ref
|
|
21
22
|
local styles = useBreadcrumbStyles()
|
|
22
23
|
local visible = breadcrumbVisible(items, maxItems)
|
|
23
|
-
local _attributes = {
|
|
24
|
+
local _attributes = {
|
|
25
|
+
tag = "frame",
|
|
26
|
+
}
|
|
24
27
|
local _condition = id
|
|
25
28
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
26
29
|
_condition = "Breadcrumbs"
|
|
27
30
|
end
|
|
28
31
|
_attributes.key = _condition
|
|
29
|
-
_attributes.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if className then
|
|
34
|
-
for _k, _v in className do
|
|
35
|
-
_attributes[_k] = _v
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
if sx then
|
|
39
|
-
for _k, _v in sx do
|
|
40
|
-
_attributes[_k] = _v
|
|
41
|
-
end
|
|
42
|
-
end
|
|
32
|
+
_attributes.hostRef = ref
|
|
33
|
+
_attributes.base = styles.root
|
|
34
|
+
_attributes.className = className
|
|
35
|
+
_attributes.sx = sx
|
|
43
36
|
local _attributes_1 = table.clone(styles.list)
|
|
44
37
|
setmetatable(_attributes_1, nil)
|
|
45
38
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
@@ -108,7 +101,7 @@ local function Breadcrumbs(props)
|
|
|
108
101
|
_newValue[_k] = _callback(_v, _k - 1, visible)
|
|
109
102
|
end
|
|
110
103
|
-- ▲ ReadonlyArray.map ▲
|
|
111
|
-
return React.createElement(
|
|
104
|
+
return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
|
|
112
105
|
end
|
|
113
106
|
local default = Breadcrumbs
|
|
114
107
|
return {
|
|
@@ -7,6 +7,7 @@ local useState = _react.useState
|
|
|
7
7
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
8
8
|
local cx = _theme.cx
|
|
9
9
|
local useTheme = _theme.useTheme
|
|
10
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
10
11
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
11
12
|
local Input = TS.import(script, script.Parent.Parent.Parent, "input").Input
|
|
12
13
|
local Popup = TS.import(script, script.Parent.Parent.Parent, "popup").Popup
|
|
@@ -64,26 +65,21 @@ local function BrickColorPicker(props)
|
|
|
64
65
|
setOpen(false)
|
|
65
66
|
setQuery("")
|
|
66
67
|
end
|
|
67
|
-
local _attributes = {
|
|
68
|
+
local _attributes = {
|
|
69
|
+
tag = "frame",
|
|
70
|
+
}
|
|
68
71
|
local _condition = id
|
|
69
72
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
70
73
|
_condition = "BrickColorPicker"
|
|
71
74
|
end
|
|
72
75
|
_attributes.key = _condition
|
|
73
|
-
_attributes.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
if sx then
|
|
83
|
-
for _k, _v in sx do
|
|
84
|
-
_attributes[_k] = _v
|
|
85
|
-
end
|
|
86
|
-
end
|
|
76
|
+
_attributes.hostRef = ref
|
|
77
|
+
_attributes.base = styles.root
|
|
78
|
+
_attributes.className = className
|
|
79
|
+
_attributes.sx = sx
|
|
80
|
+
_attributes.state = {
|
|
81
|
+
disabled = disabled,
|
|
82
|
+
}
|
|
87
83
|
local _attributes_1 = {
|
|
88
84
|
key = "Trigger",
|
|
89
85
|
ref = setAnchor,
|
|
@@ -226,7 +222,7 @@ local function BrickColorPicker(props)
|
|
|
226
222
|
end,
|
|
227
223
|
})))))
|
|
228
224
|
end
|
|
229
|
-
return React.createElement(
|
|
225
|
+
return React.createElement(SxHost, _attributes, _exp_6, _condition_1)
|
|
230
226
|
end
|
|
231
227
|
local default = BrickColorPicker
|
|
232
228
|
return {
|
|
@@ -6,6 +6,7 @@ local useEffect = _react.useEffect
|
|
|
6
6
|
local useState = _react.useState
|
|
7
7
|
local useReducedMotion = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "hooks").useReducedMotion
|
|
8
8
|
local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
|
|
9
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
9
10
|
local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
|
|
10
11
|
local LoadingStroke = TS.import(script, script.Parent.Parent.Parent, "loadingStroke").LoadingStroke
|
|
11
12
|
local canActivate = TS.import(script, script.Parent, "activation").canActivate
|
|
@@ -87,29 +88,30 @@ local function Button(props)
|
|
|
87
88
|
setHovering(false)
|
|
88
89
|
setFocused(false)
|
|
89
90
|
end, { active })
|
|
90
|
-
local _attributes = {
|
|
91
|
+
local _attributes = {
|
|
92
|
+
tag = "textbutton",
|
|
93
|
+
}
|
|
91
94
|
local _condition = id
|
|
92
95
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
93
96
|
_condition = "Button"
|
|
94
97
|
end
|
|
95
98
|
_attributes.key = _condition
|
|
96
|
-
_attributes.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
end
|
|
99
|
+
_attributes.hostRef = ref
|
|
100
|
+
local _object = table.clone(root)
|
|
101
|
+
setmetatable(_object, nil)
|
|
100
102
|
for _k, _v in font do
|
|
101
|
-
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
_object[_k] = _v
|
|
104
|
+
end
|
|
105
|
+
_attributes.base = _object
|
|
106
|
+
_attributes.className = className
|
|
107
|
+
_attributes.sx = sx
|
|
108
|
+
_attributes.state = {
|
|
109
|
+
disabled = disabled,
|
|
110
|
+
loading = loading,
|
|
111
|
+
hover = hovering,
|
|
112
|
+
pressed = pressed,
|
|
113
|
+
focused = focused,
|
|
114
|
+
}
|
|
113
115
|
_attributes.Active = active
|
|
114
116
|
_attributes.AutoButtonColor = active
|
|
115
117
|
_attributes.Selectable = active
|
|
@@ -205,7 +207,7 @@ local function Button(props)
|
|
|
205
207
|
setmetatable(_attributes_1, nil)
|
|
206
208
|
_condition_2 = React.createElement("uicorner", _attributes_1)
|
|
207
209
|
end
|
|
208
|
-
return React.createElement(
|
|
210
|
+
return React.createElement(SxHost, _attributes, _condition_1, _exp, _condition_2, loading and (React.createElement(CircularProgress, {
|
|
209
211
|
size = spinnerPixels(props.size),
|
|
210
212
|
thickness = 2,
|
|
211
213
|
color = spinnerColor,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "@rbxts/react";
|
|
2
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
3
|
import { PaperElevation } from "../../paper/index";
|
|
3
4
|
export interface CardProps {
|
|
4
5
|
title?: string;
|
|
@@ -8,5 +9,5 @@ export interface CardProps {
|
|
|
8
9
|
actions?: React.ReactNode;
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
declare function Card(props: CardProps): JSX.Element;
|
|
12
|
+
declare function Card(props: CustomizedProps<Frame, CardProps>): JSX.Element;
|
|
12
13
|
export default Card;
|
|
@@ -14,6 +14,10 @@ local function Card(props)
|
|
|
14
14
|
local square = _binding.square
|
|
15
15
|
local actions = _binding.actions
|
|
16
16
|
local children = _binding.children
|
|
17
|
+
local className = _binding.className
|
|
18
|
+
local sx = _binding.sx
|
|
19
|
+
local id = _binding.id
|
|
20
|
+
local ref = _binding.ref
|
|
17
21
|
local styles = useCardStyles()
|
|
18
22
|
local _attributes = {
|
|
19
23
|
key = "Column",
|
|
@@ -68,6 +72,10 @@ local function Card(props)
|
|
|
68
72
|
return React.createElement(Paper, {
|
|
69
73
|
elevation = elevation,
|
|
70
74
|
square = square,
|
|
75
|
+
className = className,
|
|
76
|
+
sx = sx,
|
|
77
|
+
id = id,
|
|
78
|
+
ref = ref,
|
|
71
79
|
}, React.createElement("frame", _attributes, _exp, _condition, _condition_1, _exp_1, _condition_2))
|
|
72
80
|
end
|
|
73
81
|
local default = Card
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
4
5
|
local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
|
|
5
6
|
local useCFrameEditorStyles = TS.import(script, script.Parent, "CFrameEditor.styles").default
|
|
6
7
|
local nextCFrameParts = TS.import(script, script.Parent, "cframeValue").nextCFrameParts
|
|
@@ -85,29 +86,24 @@ local function CFrameEditor(props)
|
|
|
85
86
|
-- ▲ ReadonlyArray.map ▲
|
|
86
87
|
return React.createElement("frame", _attributes, _exp, _exp_1, React.createElement("frame", _attributes_3, _exp_2, React.createElement(React.Fragment, nil, _newValue)))
|
|
87
88
|
end
|
|
88
|
-
local _attributes = {
|
|
89
|
+
local _attributes = {
|
|
90
|
+
tag = "frame",
|
|
91
|
+
}
|
|
89
92
|
local _condition = id
|
|
90
93
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
91
94
|
_condition = "CFrameEditor"
|
|
92
95
|
end
|
|
93
96
|
_attributes.key = _condition
|
|
94
|
-
_attributes.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
if sx then
|
|
104
|
-
for _k, _v in sx do
|
|
105
|
-
_attributes[_k] = _v
|
|
106
|
-
end
|
|
107
|
-
end
|
|
97
|
+
_attributes.hostRef = ref
|
|
98
|
+
_attributes.base = styles.root
|
|
99
|
+
_attributes.className = className
|
|
100
|
+
_attributes.sx = sx
|
|
101
|
+
_attributes.state = {
|
|
102
|
+
disabled = disabled,
|
|
103
|
+
}
|
|
108
104
|
local _attributes_1 = table.clone(styles.wrap)
|
|
109
105
|
setmetatable(_attributes_1, nil)
|
|
110
|
-
return React.createElement(
|
|
106
|
+
return React.createElement(SxHost, _attributes, React.createElement("uilistlayout", _attributes_1), group("Position", POSITION, 1, 0), group("Orientation", ORIENTATION, 2, 3))
|
|
111
107
|
end
|
|
112
108
|
local default = CFrameEditor
|
|
113
109
|
return {
|
|
@@ -5,6 +5,7 @@ local React = _react
|
|
|
5
5
|
local useState = _react.useState
|
|
6
6
|
local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
|
|
7
7
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
8
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
8
9
|
local useCheckboxStyles = TS.import(script, script.Parent, "Checkbox.styles").default
|
|
9
10
|
local _checkboxLook = TS.import(script, script.Parent, "checkboxLook")
|
|
10
11
|
local checkboxBoxTransparency = _checkboxLook.checkboxBoxTransparency
|
|
@@ -45,26 +46,25 @@ local function Checkbox(props)
|
|
|
45
46
|
local pointer = if active then checkboxPointer(hovering, pressed, focused) else "rest"
|
|
46
47
|
local boxTransparency = checkboxBoxTransparency(filled, disabled == true, pointer)
|
|
47
48
|
local strokeTransparency = checkboxStrokeTransparency(filled, disabled == true, pointer)
|
|
48
|
-
local _attributes = {
|
|
49
|
+
local _attributes = {
|
|
50
|
+
tag = "textbutton",
|
|
51
|
+
}
|
|
49
52
|
local _condition = id
|
|
50
53
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
51
54
|
_condition = "Checkbox"
|
|
52
55
|
end
|
|
53
56
|
_attributes.key = _condition
|
|
54
|
-
_attributes.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
_attributes[_k] = _v
|
|
66
|
-
end
|
|
67
|
-
end
|
|
57
|
+
_attributes.hostRef = ref
|
|
58
|
+
_attributes.base = root
|
|
59
|
+
_attributes.className = className
|
|
60
|
+
_attributes.sx = sx
|
|
61
|
+
_attributes.state = {
|
|
62
|
+
disabled = disabled,
|
|
63
|
+
checked = filled,
|
|
64
|
+
hover = hovering,
|
|
65
|
+
pressed = pressed,
|
|
66
|
+
focused = focused,
|
|
67
|
+
}
|
|
68
68
|
_attributes.Active = active
|
|
69
69
|
_attributes.Selectable = not disabled
|
|
70
70
|
_attributes.BackgroundTransparency = if focused and active then 0.85 else 1
|
|
@@ -128,7 +128,7 @@ local function Checkbox(props)
|
|
|
128
128
|
_attributes_6.LayoutOrder = 2
|
|
129
129
|
_condition_1 = (React.createElement("textlabel", _attributes_6))
|
|
130
130
|
end
|
|
131
|
-
return React.createElement(
|
|
131
|
+
return React.createElement(SxHost, _attributes, _exp, _exp_3, _condition_1)
|
|
132
132
|
end
|
|
133
133
|
local default = Checkbox
|
|
134
134
|
return {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
|
|
5
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
5
6
|
local useChipStyles = TS.import(script, script.Parent, "Chip.styles").default
|
|
6
7
|
local function Chip(props)
|
|
7
8
|
local _binding = props
|
|
@@ -32,26 +33,22 @@ local function Chip(props)
|
|
|
32
33
|
variant = variant,
|
|
33
34
|
color = color,
|
|
34
35
|
})
|
|
35
|
-
local _attributes = {
|
|
36
|
+
local _attributes = {
|
|
37
|
+
tag = "textbutton",
|
|
38
|
+
}
|
|
36
39
|
local _condition = id
|
|
37
40
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
38
41
|
_condition = "Chip"
|
|
39
42
|
end
|
|
40
43
|
_attributes.key = _condition
|
|
41
|
-
_attributes.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
end
|
|
50
|
-
if sx then
|
|
51
|
-
for _k, _v in sx do
|
|
52
|
-
_attributes[_k] = _v
|
|
53
|
-
end
|
|
54
|
-
end
|
|
44
|
+
_attributes.hostRef = ref
|
|
45
|
+
_attributes.base = styles.root
|
|
46
|
+
_attributes.className = className
|
|
47
|
+
_attributes.sx = sx
|
|
48
|
+
_attributes.state = {
|
|
49
|
+
disabled = disabled,
|
|
50
|
+
selected = selected,
|
|
51
|
+
}
|
|
55
52
|
_attributes.Text = if deletable then "" else label
|
|
56
53
|
_attributes.Event = {
|
|
57
54
|
Activated = function()
|
|
@@ -102,7 +99,7 @@ local function Chip(props)
|
|
|
102
99
|
}
|
|
103
100
|
_condition_1 = (React.createElement(React.Fragment, nil, _exp_3, _exp_4, React.createElement("imagebutton", _attributes_6)))
|
|
104
101
|
end
|
|
105
|
-
return React.createElement(
|
|
102
|
+
return React.createElement(SxHost, _attributes, _exp, _exp_1, _exp_2, _condition_1)
|
|
106
103
|
end
|
|
107
104
|
local default = Chip
|
|
108
105
|
return {
|