@rbxts/uiblox 0.2.0-alpha.25 → 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.
Files changed (106) hide show
  1. package/out/ui/packages/accordion/components/Accordion.luau +12 -16
  2. package/out/ui/packages/alert/components/Alert.luau +9 -16
  3. package/out/ui/packages/appBar/components/AppBar.luau +9 -16
  4. package/out/ui/packages/assetField/components/AssetField.luau +12 -16
  5. package/out/ui/packages/avatar/components/Avatar.luau +9 -16
  6. package/out/ui/packages/backdrop/components/Backdrop.luau +9 -16
  7. package/out/ui/packages/badge/components/Badge.luau +9 -16
  8. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +12 -16
  9. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +9 -16
  10. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +12 -16
  11. package/out/ui/packages/button/components/Button.luau +20 -18
  12. package/out/ui/packages/card/components/Card.d.ts +2 -1
  13. package/out/ui/packages/card/components/Card.luau +8 -0
  14. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +12 -16
  15. package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
  16. package/out/ui/packages/chip/components/Chip.luau +13 -16
  17. package/out/ui/packages/circularProgress/components/CircularProgress.luau +16 -16
  18. package/out/ui/packages/colorPicker/components/ColorPicker.luau +12 -16
  19. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +12 -16
  20. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +12 -16
  21. package/out/ui/packages/dialog/components/Dialog.d.ts +2 -1
  22. package/out/ui/packages/dialog/components/Dialog.luau +21 -10
  23. package/out/ui/packages/divider/components/Divider.luau +20 -33
  24. package/out/ui/packages/drawer/components/Drawer.d.ts +2 -1
  25. package/out/ui/packages/drawer/components/Drawer.luau +18 -5
  26. package/out/ui/packages/fab/components/Fab.luau +15 -16
  27. package/out/ui/packages/fontEditor/components/FontEditor.luau +12 -16
  28. package/out/ui/packages/formText/components/FormHelperText.luau +12 -16
  29. package/out/ui/packages/formText/components/FormLabel.luau +12 -16
  30. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +12 -16
  31. package/out/ui/packages/host/components/SxHost.d.ts +18 -0
  32. package/out/ui/packages/host/components/SxHost.luau +197 -0
  33. package/out/ui/packages/host/hostPaint.d.ts +11 -0
  34. package/out/ui/packages/host/hostPaint.luau +33 -0
  35. package/out/ui/packages/host/hostRules.d.ts +15 -0
  36. package/out/ui/packages/host/hostRules.luau +92 -0
  37. package/out/ui/packages/host/index.d.ts +3 -0
  38. package/out/ui/packages/host/init.luau +13 -0
  39. package/out/ui/packages/icon/components/Icon.luau +9 -16
  40. package/out/ui/packages/iconButton/components/IconButton.luau +16 -16
  41. package/out/ui/packages/imageList/components/ImageList.luau +9 -16
  42. package/out/ui/packages/imageList/components/ImageList.styles.luau +4 -3
  43. package/out/ui/packages/input/components/Input.luau +14 -16
  44. package/out/ui/packages/layout/components/Box.luau +6 -15
  45. package/out/ui/packages/layout/components/Container.luau +6 -15
  46. package/out/ui/packages/layout/components/FlexItem.luau +6 -15
  47. package/out/ui/packages/layout/components/Grid.luau +6 -15
  48. package/out/ui/packages/layout/components/List.luau +9 -16
  49. package/out/ui/packages/layout/components/Stack.luau +6 -15
  50. package/out/ui/packages/link/components/Link.luau +13 -16
  51. package/out/ui/packages/listItem/components/ListItem.d.ts +2 -1
  52. package/out/ui/packages/listItem/components/ListItem.luau +23 -4
  53. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +5 -1
  54. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +11 -0
  55. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +2 -0
  56. package/out/ui/packages/markdown/components/Markdown.luau +9 -16
  57. package/out/ui/packages/markdown/components/MarkdownEditor.luau +9 -16
  58. package/out/ui/packages/menu/components/Menu.d.ts +2 -1
  59. package/out/ui/packages/menu/components/Menu.luau +23 -12
  60. package/out/ui/packages/modal/components/Modal.d.ts +2 -1
  61. package/out/ui/packages/modal/components/Modal.luau +29 -5
  62. package/out/ui/packages/numberInput/components/NumberInput.d.ts +1 -0
  63. package/out/ui/packages/numberInput/components/NumberInput.luau +14 -3
  64. package/out/ui/packages/numberInput/components/numberValue.d.ts +1 -0
  65. package/out/ui/packages/numberInput/components/numberValue.luau +45 -0
  66. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +12 -16
  67. package/out/ui/packages/pagination/components/Pagination.luau +12 -16
  68. package/out/ui/packages/paper/components/Paper.d.ts +2 -1
  69. package/out/ui/packages/paper/components/Paper.luau +21 -12
  70. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +63 -38
  71. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +21 -7
  72. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +2 -0
  73. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +14 -0
  74. package/out/ui/packages/popup/components/Popup.d.ts +2 -1
  75. package/out/ui/packages/popup/components/Popup.luau +35 -18
  76. package/out/ui/packages/preloader/components/Preloader.luau +9 -16
  77. package/out/ui/packages/progressBar/components/ProgressBar.luau +12 -16
  78. package/out/ui/packages/radioGroup/components/RadioGroup.luau +12 -16
  79. package/out/ui/packages/rating/components/Rating.luau +12 -16
  80. package/out/ui/packages/rayEditor/components/RayEditor.luau +12 -16
  81. package/out/ui/packages/rectEditor/components/RectEditor.luau +86 -43
  82. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +30 -7
  83. package/out/ui/packages/select/components/Select.luau +13 -16
  84. package/out/ui/packages/shadow/components/Shadow.d.ts +2 -1
  85. package/out/ui/packages/shadow/components/Shadow.luau +17 -5
  86. package/out/ui/packages/sidebar/components/Sidebar.luau +9 -16
  87. package/out/ui/packages/skeleton/components/Skeleton.luau +19 -28
  88. package/out/ui/packages/slider/components/Slider.luau +16 -17
  89. package/out/ui/packages/speedDial/components/SpeedDial.luau +12 -16
  90. package/out/ui/packages/splitPane/components/SplitPane.luau +12 -16
  91. package/out/ui/packages/stateMatrix.luau +1150 -682
  92. package/out/ui/packages/stepper/components/Stepper.luau +9 -16
  93. package/out/ui/packages/switch/components/Switch.luau +16 -16
  94. package/out/ui/packages/table/components/Table.luau +9 -16
  95. package/out/ui/packages/tabs/components/Tabs.luau +12 -16
  96. package/out/ui/packages/toast/components/Toast.luau +16 -13
  97. package/out/ui/packages/toggleButton/components/ToggleButton.luau +24 -32
  98. package/out/ui/packages/tooltip/components/Tooltip.luau +9 -16
  99. package/out/ui/packages/treeView/components/TreeView.luau +9 -16
  100. package/out/ui/packages/typography/components/Typography.luau +13 -14
  101. package/out/ui/packages/udimEditor/components/UDimEditor.luau +12 -16
  102. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +12 -16
  103. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +2 -1
  104. package/out/ui/packages/virtualList/components/EmptyListHint.luau +15 -4
  105. package/out/ui/packages/virtualList/components/VirtualList.luau +9 -16
  106. package/package.json +2 -2
@@ -1,9 +1,11 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local controlMetrics = _theme.controlMetrics
4
5
  local createStyles = _theme.createStyles
5
6
  local componentStyles = _theme.componentStyles
6
7
  local useRectEditorStyles = componentStyles("RectEditor", function(theme)
8
+ local gap = theme.padding.calc(1)
7
9
  return createStyles({
8
10
  root = {
9
11
  Size = UDim2.new(1, 0, 0, 0),
@@ -16,26 +18,47 @@ local useRectEditorStyles = componentStyles("RectEditor", function(theme)
16
18
  Padding = UDim.new(0, theme.padding.calc(0.5)),
17
19
  SortOrder = Enum.SortOrder.LayoutOrder,
18
20
  },
19
- row = {
21
+ group = {
22
+ Size = UDim2.new(1, 0, 0, 0),
23
+ AutomaticSize = Enum.AutomaticSize.Y,
24
+ BackgroundTransparency = 1,
25
+ },
26
+ groupLabel = {
27
+ Size = UDim2.new(1, 0, 0, 0),
28
+ AutomaticSize = Enum.AutomaticSize.Y,
29
+ BackgroundTransparency = 1,
30
+ Font = theme.typography.fontFamilies.default,
31
+ TextSize = theme.typography.fontSizes.caption,
32
+ TextColor3 = theme.palette.text.secondary,
33
+ TextXAlignment = Enum.TextXAlignment.Left,
34
+ },
35
+ pair = {
20
36
  FillDirection = Enum.FillDirection.Horizontal,
21
- Padding = UDim.new(0, theme.padding.calc(1)),
22
- VerticalAlignment = Enum.VerticalAlignment.Center,
37
+ Padding = UDim.new(0, gap),
23
38
  SortOrder = Enum.SortOrder.LayoutOrder,
24
39
  },
25
- axis = {
26
- Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
40
+ cell = {
41
+ Size = UDim2.new(0.5, -gap / 2, 0, 0),
42
+ AutomaticSize = Enum.AutomaticSize.Y,
27
43
  BackgroundTransparency = 1,
28
44
  },
45
+ stack = {
46
+ FillDirection = Enum.FillDirection.Vertical,
47
+ Padding = UDim.new(0, theme.padding.calc(0.5)),
48
+ SortOrder = Enum.SortOrder.LayoutOrder,
49
+ },
29
50
  label = {
30
- Size = UDim2.new(0, theme.spacing.calc(3), 1, 0),
51
+ Size = UDim2.new(1, 0, 0, 0),
52
+ AutomaticSize = Enum.AutomaticSize.Y,
31
53
  BackgroundTransparency = 1,
32
54
  Font = theme.typography.fontFamilies.default,
33
55
  TextSize = theme.typography.fontSizes.caption,
34
56
  TextColor3 = theme.palette.text.secondary,
35
57
  TextXAlignment = Enum.TextXAlignment.Left,
58
+ TextTruncate = Enum.TextTruncate.AtEnd,
36
59
  },
37
60
  field = {
38
- Size = UDim2.new(1, -theme.spacing.calc(3), 1, 0),
61
+ Size = UDim2.new(1, 0, 0, controlMetrics(theme.density).height),
39
62
  BackgroundTransparency = 1,
40
63
  },
41
64
  })
@@ -17,6 +17,7 @@ local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "co
17
17
  local spinnerPixels = TS.import(script, script.Parent.Parent.Parent, "button", "components", "buttonLook").spinnerPixels
18
18
  local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
19
19
  local Input = TS.import(script, script.Parent.Parent.Parent, "input").Input
20
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
20
21
  local Popup = TS.import(script, script.Parent.Parent.Parent, "popup").Popup
21
22
  local Shadow = TS.import(script, script.Parent.Parent.Parent, "shadow").Shadow
22
23
  local _virtualList = TS.import(script, script.Parent.Parent.Parent, "virtualList")
@@ -244,26 +245,22 @@ local function Select(props)
244
245
  setQuery("")
245
246
  end
246
247
  end, { loading, open })
247
- local _attributes = {}
248
+ local _attributes = {
249
+ tag = "frame",
250
+ }
248
251
  local _condition_2 = id
249
252
  if not (_condition_2 ~= 0 and _condition_2 == _condition_2 and _condition_2 ~= "" and _condition_2) then
250
253
  _condition_2 = "Select"
251
254
  end
252
255
  _attributes.key = _condition_2
253
- _attributes.ref = ref
254
- for _k, _v in styles.root do
255
- _attributes[_k] = _v
256
- end
257
- if className then
258
- for _k, _v in className do
259
- _attributes[_k] = _v
260
- end
261
- end
262
- if sx then
263
- for _k, _v in sx do
264
- _attributes[_k] = _v
265
- end
266
- end
256
+ _attributes.hostRef = ref
257
+ _attributes.base = styles.root
258
+ _attributes.className = className
259
+ _attributes.sx = sx
260
+ _attributes.state = {
261
+ disabled = disabled,
262
+ loading = loading,
263
+ }
267
264
  local _attributes_1 = {
268
265
  key = "Trigger",
269
266
  ref = setAnchor,
@@ -434,7 +431,7 @@ local function Select(props)
434
431
  end,
435
432
  })))))
436
433
  end
437
- return React.createElement("frame", _attributes, _exp_2, _condition_3)
434
+ return React.createElement(SxHost, _attributes, _exp_2, _condition_3)
438
435
  end
439
436
  local default = Select
440
437
  return {
@@ -1,2 +1,3 @@
1
- declare function Shadow(): JSX.Element;
1
+ import { CustomizedProps } from "../../../../theme/index";
2
+ declare function Shadow(props: CustomizedProps<Frame>): JSX.Element;
2
3
  export default Shadow;
@@ -4,12 +4,18 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local React = _react
5
5
  local useEffect = _react.useEffect
6
6
  local useState = _react.useState
7
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
7
8
  local useShadowStyles = TS.import(script, script.Parent, "Shadow.styles").default
8
- local function Shadow()
9
+ local function Shadow(props)
9
10
  local _binding = useShadowStyles()
10
11
  local container = _binding.container
11
12
  local parent, setParent = useState(nil)
12
13
  local cornerRadius, setCornerRadius = useState()
14
+ local _binding_1 = props
15
+ local className = _binding_1.className
16
+ local sx = _binding_1.sx
17
+ local id = _binding_1.id
18
+ local ref = _binding_1.ref
13
19
  local _condition = container.ZIndex
14
20
  if _condition == nil then
15
21
  _condition = 0
@@ -42,11 +48,17 @@ local function Shadow()
42
48
  parent.ClipsDescendants = false
43
49
  end, { parent })
44
50
  local _attributes = {
45
- key = "Shadow",
51
+ tag = "frame",
46
52
  }
47
- for _k, _v in container do
48
- _attributes[_k] = _v
53
+ local _condition_1 = id
54
+ if not (_condition_1 ~= 0 and _condition_1 == _condition_1 and _condition_1 ~= "" and _condition_1) then
55
+ _condition_1 = "Shadow"
49
56
  end
57
+ _attributes.key = _condition_1
58
+ _attributes.hostRef = ref
59
+ _attributes.base = container
60
+ _attributes.className = className
61
+ _attributes.sx = sx
50
62
  _attributes.ZIndex = zIndex
51
63
  _attributes.Event = {
52
64
  AncestryChanged = function(rbx, parent)
@@ -55,7 +67,7 @@ local function Shadow()
55
67
  end
56
68
  end,
57
69
  }
58
- return React.createElement("frame", _attributes, cornerRadius ~= nil and React.createElement("uicorner", {
70
+ return React.createElement(SxHost, _attributes, cornerRadius ~= nil and React.createElement("uicorner", {
59
71
  key = "Corner",
60
72
  CornerRadius = cornerRadius,
61
73
  }))
@@ -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 useSidebarStyles = TS.import(script, script.Parent, "Sidebar.styles").default
5
6
  local function Sidebar(props)
6
7
  local _binding = props
@@ -12,33 +13,25 @@ local function Sidebar(props)
12
13
  local _binding_1 = useSidebarStyles(props)
13
14
  local root = _binding_1.root
14
15
  local container = _binding_1.container
15
- local _attributes = {}
16
+ local _attributes = {
17
+ tag = "frame",
18
+ }
16
19
  local _condition = id
17
20
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
18
21
  _condition = "Sidebar"
19
22
  end
20
23
  _attributes.key = _condition
21
- _attributes.ref = ref
22
- for _k, _v in root do
23
- _attributes[_k] = _v
24
- end
25
- if className ~= 0 and className == className and className ~= "" and className then
26
- for _k, _v in className do
27
- _attributes[_k] = _v
28
- end
29
- end
30
- if sx ~= 0 and sx == sx and sx ~= "" and sx then
31
- for _k, _v in sx do
32
- _attributes[_k] = _v
33
- end
34
- end
24
+ _attributes.hostRef = ref
25
+ _attributes.base = root
26
+ _attributes.className = className
27
+ _attributes.sx = sx
35
28
  local _attributes_1 = {
36
29
  key = "Container",
37
30
  }
38
31
  for _k, _v in container do
39
32
  _attributes_1[_k] = _v
40
33
  end
41
- return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, children))
34
+ return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, children))
42
35
  end
43
36
  local default = Sidebar
44
37
  return {
@@ -5,6 +5,7 @@ local React = _react
5
5
  local useEffect = _react.useEffect
6
6
  local useRef = _react.useRef
7
7
  local useReducedMotion = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "hooks").useReducedMotion
8
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
8
9
  local loopProperty = TS.import(script, script.Parent.Parent.Parent, "motion").loopProperty
9
10
  local useSkeletonStyles = TS.import(script, script.Parent, "Skeleton.styles").default
10
11
  local _skeletonMotion = TS.import(script, script.Parent, "skeletonMotion")
@@ -56,25 +57,21 @@ local function SkeletonBlock(props)
56
57
  end, { motion })
57
58
  local corner = if variant == "circular" then circular elseif variant == "rectangular" then nil else rounded
58
59
  local side = if variant == "circular" then width else nil
59
- local _attributes = {}
60
+ local _attributes = {
61
+ tag = "frame",
62
+ }
60
63
  local _condition = id
61
64
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
62
65
  _condition = "Skeleton"
63
66
  end
64
67
  _attributes.key = _condition
65
- _attributes.ref = ref
66
- _attributes.BackgroundTransparency = 1
67
- _attributes.BorderSizePixel = 0
68
- if className then
69
- for _k, _v in className do
70
- _attributes[_k] = _v
71
- end
72
- end
73
- if sx then
74
- for _k, _v in sx do
75
- _attributes[_k] = _v
76
- end
77
- end
68
+ _attributes.hostRef = ref
69
+ _attributes.base = {
70
+ BackgroundTransparency = 1,
71
+ BorderSizePixel = 0,
72
+ }
73
+ _attributes.className = className
74
+ _attributes.sx = sx
78
75
  local _condition_1 = side
79
76
  if _condition_1 == nil then
80
77
  _condition_1 = width
@@ -107,7 +104,7 @@ local function SkeletonBlock(props)
107
104
  setmetatable(_attributes_2, nil)
108
105
  _condition_4 = React.createElement("uicorner", _attributes_2)
109
106
  end
110
- return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _condition_3, _condition_4))
107
+ return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _condition_3, _condition_4))
111
108
  end
112
109
  local function Skeleton(props)
113
110
  local _binding = props
@@ -170,23 +167,17 @@ local function Skeleton(props)
170
167
  end
171
168
  end
172
169
  local blockHeight = height * count + gap * (count - 1)
173
- local _attributes = {}
170
+ local _attributes = {
171
+ tag = "frame",
172
+ }
174
173
  local _condition = id
175
174
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
176
175
  _condition = "Skeleton"
177
176
  end
178
177
  _attributes.key = _condition
179
- _attributes.ref = ref
180
- if className then
181
- for _k, _v in className do
182
- _attributes[_k] = _v
183
- end
184
- end
185
- if sx then
186
- for _k, _v in sx do
187
- _attributes[_k] = _v
188
- end
189
- end
178
+ _attributes.hostRef = ref
179
+ _attributes.className = className
180
+ _attributes.sx = sx
190
181
  _attributes.Size = UDim2.new(0, width, 0, blockHeight)
191
182
  _attributes.BackgroundTransparency = 1
192
183
  _attributes.BorderSizePixel = 0
@@ -210,7 +201,7 @@ local function Skeleton(props)
210
201
  _newValue[_k] = _callback(_v, _k - 1, rows)
211
202
  end
212
203
  -- ▲ ReadonlyArray.map ▲
213
- return React.createElement("frame", _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
204
+ return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
214
205
  end
215
206
  local function SkeletonText(props)
216
207
  local _attributes = table.clone(props)
@@ -6,6 +6,7 @@ local useRef = _react.useRef
6
6
  local useState = _react.useState
7
7
  local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
8
8
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
9
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
9
10
  local commitNumber = TS.import(script, script.Parent.Parent.Parent, "numberInput", "components", "numberValue").commitNumber
10
11
  local useSliderStyles = TS.import(script, script.Parent, "Slider.styles").default
11
12
  local sliderMarkValues = TS.import(script, script.Parent, "sliderMarks").sliderMarkValues
@@ -91,26 +92,24 @@ local function Slider(props)
91
92
  onCommit(nudged)
92
93
  end
93
94
  end
94
- local _attributes = {}
95
+ local _attributes = {
96
+ tag = "frame",
97
+ }
95
98
  local _condition = id
96
99
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
97
100
  _condition = "Slider"
98
101
  end
99
102
  _attributes.key = _condition
100
- _attributes.ref = ref
101
- for _k, _v in root do
102
- _attributes[_k] = _v
103
- end
104
- if className then
105
- for _k, _v in className do
106
- _attributes[_k] = _v
107
- end
108
- end
109
- if sx then
110
- for _k, _v in sx do
111
- _attributes[_k] = _v
112
- end
113
- end
103
+ _attributes.hostRef = ref
104
+ _attributes.base = root
105
+ _attributes.className = className
106
+ _attributes.sx = sx
107
+ _attributes.state = {
108
+ disabled = disabled,
109
+ hover = hovering,
110
+ pressed = pressed,
111
+ focused = focused,
112
+ }
114
113
  _attributes.Active = active
115
114
  _attributes.Selectable = active
116
115
  _attributes.BackgroundTransparency = if showFocus then 0.85 else 1
@@ -137,7 +136,7 @@ local function Slider(props)
137
136
  update(rbx, input.Position.X)
138
137
  end
139
138
  end,
140
- InputEnded = function(_, input)
139
+ InputEnded = function(_rbx, input)
141
140
  if isSliderDrag(input.UserInputType.Name) then
142
141
  finish()
143
142
  end
@@ -225,7 +224,7 @@ local function Slider(props)
225
224
  _attributes_7.Thickness = 1
226
225
  _condition_2 = React.createElement("uistroke", _attributes_7)
227
226
  end
228
- return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, _condition_1, _exp_1, _exp_2, React.createElement("frame", _attributes_5, _exp_3, _condition_2)))
227
+ return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _exp, _condition_1, _exp_1, _exp_2, React.createElement("frame", _attributes_5, _exp_3, _condition_2)))
229
228
  end
230
229
  local default = Slider
231
230
  return {
@@ -3,6 +3,7 @@ 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
5
  local Fab = TS.import(script, script.Parent.Parent.Parent, "fab").Fab
6
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
6
7
  local useSpeedDialStyles = TS.import(script, script.Parent, "SpeedDial.styles").default
7
8
  local function SpeedDial(props)
8
9
  local _binding = props
@@ -32,26 +33,21 @@ local function SpeedDial(props)
32
33
  local mainFirst = direction == "down" or direction == "right"
33
34
  local mainOrder = if mainFirst then 0 else 1000
34
35
  local actionBase = if mainFirst then 1 else 0
35
- local _attributes = {}
36
+ local _attributes = {
37
+ tag = "frame",
38
+ }
36
39
  local _condition = id
37
40
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
38
41
  _condition = "SpeedDial"
39
42
  end
40
43
  _attributes.key = _condition
41
- _attributes.ref = ref
42
- for _k, _v in styles.root do
43
- _attributes[_k] = _v
44
- end
45
- if className then
46
- for _k, _v in className do
47
- _attributes[_k] = _v
48
- end
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
+ }
55
51
  local _attributes_1 = table.clone(styles.list)
56
52
  setmetatable(_attributes_1, nil)
57
53
  local _exp = React.createElement("uilistlayout", _attributes_1)
@@ -83,7 +79,7 @@ local function SpeedDial(props)
83
79
  -- ▲ ReadonlyArray.map ▲
84
80
  _condition_1 = (React.createElement(React.Fragment, nil, _newValue))
85
81
  end
86
- return React.createElement("frame", _attributes, _exp, _condition_1, React.createElement(Fab, {
82
+ return React.createElement(SxHost, _attributes, _exp, _condition_1, React.createElement(Fab, {
87
83
  key = "Main",
88
84
  icon = if open then openIcon else icon,
89
85
  disabled = disabled,
@@ -7,6 +7,7 @@ local useRef = _react.useRef
7
7
  local useState = _react.useState
8
8
  local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
9
9
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
10
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
10
11
  local useSplitPaneStyles = TS.import(script, script.Parent, "SplitPane.styles").default
11
12
  local _splitLook = TS.import(script, script.Parent, "splitLook")
12
13
  local splitHitTransparency = _splitLook.splitHitTransparency
@@ -79,26 +80,21 @@ local function SplitPane(props)
79
80
  return connection:Disconnect()
80
81
  end
81
82
  end, { body, vertical })
82
- local _attributes = {}
83
+ local _attributes = {
84
+ tag = "frame",
85
+ }
83
86
  local _condition = id
84
87
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
85
88
  _condition = "SplitPane"
86
89
  end
87
90
  _attributes.key = _condition
88
- _attributes.ref = ref
89
- for _k, _v in styles.root do
90
- _attributes[_k] = _v
91
- end
92
- if className then
93
- for _k, _v in className do
94
- _attributes[_k] = _v
95
- end
96
- end
97
- if sx then
98
- for _k, _v in sx do
99
- _attributes[_k] = _v
100
- end
101
- end
91
+ _attributes.hostRef = ref
92
+ _attributes.base = styles.root
93
+ _attributes.className = className
94
+ _attributes.sx = sx
95
+ _attributes.state = {
96
+ disabled = disabled,
97
+ }
102
98
  local _attributes_1 = {
103
99
  key = "Body",
104
100
  ref = setBody,
@@ -233,7 +229,7 @@ local function SplitPane(props)
233
229
  }
234
230
  _condition_1 = (React.createElement("frame", _attributes_7))
235
231
  end
236
- return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, _exp_4, _exp_5, _condition_1))
232
+ return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _exp, _exp_4, _exp_5, _condition_1))
237
233
  end
238
234
  local default = SplitPane
239
235
  return {