@rbxts/uiblox 0.2.0-alpha.3 → 0.2.0-alpha.31

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 (312) hide show
  1. package/README.md +27 -109
  2. package/out/hooks/index.d.ts +1 -0
  3. package/out/hooks/init.luau +3 -0
  4. package/out/hooks/useBreakpoints.luau +2 -11
  5. package/out/hooks/viewportObserver.d.ts +10 -0
  6. package/out/hooks/viewportObserver.luau +75 -0
  7. package/out/theme/interfaces/theme/Theme.d.ts +15 -0
  8. package/out/theme/styles/utilities/componentStyles.luau +45 -3
  9. package/out/theme/styles/utilities/componentTheme.d.ts +15 -0
  10. package/out/theme/styles/utilities/index.d.ts +2 -0
  11. package/out/theme/styles/utilities/init.luau +7 -0
  12. package/out/theme/styles/utilities/resolveStyle.d.ts +10 -2
  13. package/out/theme/styles/utilities/resolveStyle.luau +7 -3
  14. package/out/theme/styles/utilities/resolveSx.d.ts +120 -0
  15. package/out/theme/styles/utilities/resolveSx.luau +524 -0
  16. package/out/theme/styles/utilities/styleCache.d.ts +2 -0
  17. package/out/theme/styles/utilities/styleCache.luau +9 -0
  18. package/out/ui/packages/accordion/components/Accordion.d.ts +2 -0
  19. package/out/ui/packages/accordion/components/Accordion.luau +46 -30
  20. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +1 -0
  21. package/out/ui/packages/accordion/components/Accordion.styles.luau +16 -4
  22. package/out/ui/packages/accordion/components/accordionOpen.d.ts +1 -0
  23. package/out/ui/packages/accordion/components/accordionOpen.luau +4 -0
  24. package/out/ui/packages/alert/components/Alert.d.ts +2 -0
  25. package/out/ui/packages/alert/components/Alert.luau +48 -42
  26. package/out/ui/packages/alert/components/Alert.styles.d.ts +2 -0
  27. package/out/ui/packages/alert/components/Alert.styles.luau +17 -8
  28. package/out/ui/packages/appBar/components/AppBar.d.ts +2 -1
  29. package/out/ui/packages/appBar/components/AppBar.luau +47 -36
  30. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +2 -0
  31. package/out/ui/packages/appBar/components/AppBar.styles.luau +16 -5
  32. package/out/ui/packages/assetField/components/AssetField.luau +12 -16
  33. package/out/ui/packages/autocomplete/components/Autocomplete.luau +8 -0
  34. package/out/ui/packages/avatar/components/Avatar.d.ts +2 -0
  35. package/out/ui/packages/avatar/components/Avatar.luau +27 -26
  36. package/out/ui/packages/avatar/components/Avatar.styles.d.ts +2 -0
  37. package/out/ui/packages/avatar/components/Avatar.styles.luau +5 -1
  38. package/out/ui/packages/backdrop/components/Backdrop.d.ts +10 -0
  39. package/out/ui/packages/backdrop/components/Backdrop.luau +51 -0
  40. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +4 -0
  41. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +24 -0
  42. package/out/ui/packages/backdrop/index.d.ts +2 -0
  43. package/out/ui/packages/backdrop/init.luau +5 -0
  44. package/out/ui/packages/badge/components/Badge.d.ts +3 -0
  45. package/out/ui/packages/badge/components/Badge.luau +32 -24
  46. package/out/ui/packages/badge/components/Badge.styles.d.ts +5 -1
  47. package/out/ui/packages/badge/components/Badge.styles.luau +20 -8
  48. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +1 -0
  49. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +20 -18
  50. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +3 -1
  51. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +6 -2
  52. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +1 -0
  53. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +67 -40
  54. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +9 -0
  55. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +68 -0
  56. package/out/ui/packages/breadcrumbs/index.d.ts +1 -0
  57. package/out/ui/packages/breadcrumbs/init.luau +3 -0
  58. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +12 -16
  59. package/out/ui/packages/button/components/Button.luau +28 -22
  60. package/out/ui/packages/card/components/Card.d.ts +3 -1
  61. package/out/ui/packages/card/components/Card.luau +10 -0
  62. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +75 -53
  63. package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +26 -9
  64. package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
  65. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
  66. package/out/ui/packages/chip/components/Chip.d.ts +6 -1
  67. package/out/ui/packages/chip/components/Chip.luau +61 -17
  68. package/out/ui/packages/chip/components/Chip.styles.d.ts +6 -0
  69. package/out/ui/packages/chip/components/Chip.styles.luau +54 -9
  70. package/out/ui/packages/circularProgress/components/CircularProgress.luau +29 -18
  71. package/out/ui/packages/colorPicker/components/ColorPicker.luau +16 -20
  72. package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +34 -20
  73. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +34 -35
  74. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +65 -62
  75. package/out/ui/packages/dialog/components/Dialog.d.ts +3 -2
  76. package/out/ui/packages/dialog/components/Dialog.luau +41 -21
  77. package/out/ui/packages/divider/components/Divider.d.ts +1 -0
  78. package/out/ui/packages/divider/components/Divider.luau +52 -17
  79. package/out/ui/packages/divider/components/Divider.styles.luau +32 -0
  80. package/out/ui/packages/divider/components/dividerLabel.d.ts +1 -0
  81. package/out/ui/packages/divider/components/dividerLabel.luau +10 -0
  82. package/out/ui/packages/drawer/components/Drawer.d.ts +3 -1
  83. package/out/ui/packages/drawer/components/Drawer.luau +71 -37
  84. package/out/ui/packages/drawer/components/Drawer.styles.d.ts +3 -1
  85. package/out/ui/packages/drawer/components/Drawer.styles.luau +3 -2
  86. package/out/ui/packages/fab/components/Fab.d.ts +3 -0
  87. package/out/ui/packages/fab/components/Fab.luau +79 -37
  88. package/out/ui/packages/fab/components/Fab.styles.d.ts +3 -0
  89. package/out/ui/packages/fab/components/Fab.styles.luau +39 -3
  90. package/out/ui/packages/fab/components/fabSize.d.ts +1 -0
  91. package/out/ui/packages/fab/components/fabSize.luau +4 -0
  92. package/out/ui/packages/fab/index.d.ts +1 -1
  93. package/out/ui/packages/fab/init.luau +1 -0
  94. package/out/ui/packages/fontEditor/components/FontEditor.luau +12 -16
  95. package/out/ui/packages/formText/components/FormHelperText.d.ts +8 -0
  96. package/out/ui/packages/formText/components/FormHelperText.luau +40 -0
  97. package/out/ui/packages/formText/components/FormLabel.d.ts +9 -0
  98. package/out/ui/packages/formText/components/FormLabel.luau +42 -0
  99. package/out/ui/packages/formText/components/FormText.styles.d.ts +5 -0
  100. package/out/ui/packages/formText/components/FormText.styles.luau +33 -0
  101. package/out/ui/packages/formText/index.d.ts +4 -0
  102. package/out/ui/packages/formText/init.luau +6 -0
  103. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +56 -42
  104. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +37 -4
  105. package/out/ui/packages/host/components/SxHost.d.ts +18 -0
  106. package/out/ui/packages/host/components/SxHost.luau +210 -0
  107. package/out/ui/packages/host/hostPaint.d.ts +12 -0
  108. package/out/ui/packages/host/hostPaint.luau +34 -0
  109. package/out/ui/packages/host/hostRules.d.ts +15 -0
  110. package/out/ui/packages/host/hostRules.luau +92 -0
  111. package/out/ui/packages/host/index.d.ts +3 -0
  112. package/out/ui/packages/host/init.luau +13 -0
  113. package/out/ui/packages/icon/components/Icon.luau +9 -16
  114. package/out/ui/packages/iconButton/components/IconButton.luau +22 -17
  115. package/out/ui/packages/iconButton/components/IconButton.styles.luau +3 -0
  116. package/out/ui/packages/imageList/components/ImageList.d.ts +14 -0
  117. package/out/ui/packages/imageList/components/ImageList.luau +93 -0
  118. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +6 -0
  119. package/out/ui/packages/imageList/components/ImageList.styles.luau +73 -0
  120. package/out/ui/packages/imageList/components/imageListLayout.d.ts +4 -0
  121. package/out/ui/packages/imageList/components/imageListLayout.luau +31 -0
  122. package/out/ui/packages/imageList/index.d.ts +2 -0
  123. package/out/ui/packages/imageList/init.luau +5 -0
  124. package/out/ui/packages/index.d.ts +8 -0
  125. package/out/ui/packages/init.luau +24 -0
  126. package/out/ui/packages/input/components/Input.d.ts +1 -0
  127. package/out/ui/packages/input/components/Input.luau +22 -19
  128. package/out/ui/packages/layout/components/Box.d.ts +11 -0
  129. package/out/ui/packages/layout/components/Box.luau +40 -0
  130. package/out/ui/packages/layout/components/Box.styles.d.ts +7 -0
  131. package/out/ui/packages/layout/components/Box.styles.luau +34 -0
  132. package/out/ui/packages/layout/components/Container.d.ts +10 -0
  133. package/out/ui/packages/layout/components/Container.luau +45 -0
  134. package/out/ui/packages/layout/components/Container.styles.d.ts +6 -0
  135. package/out/ui/packages/layout/components/Container.styles.luau +41 -0
  136. package/out/ui/packages/layout/components/FlexItem.d.ts +12 -0
  137. package/out/ui/packages/layout/components/FlexItem.luau +40 -0
  138. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +8 -0
  139. package/out/ui/packages/layout/components/FlexItem.styles.luau +66 -0
  140. package/out/ui/packages/layout/components/Grid.d.ts +5 -1
  141. package/out/ui/packages/layout/components/Grid.luau +41 -19
  142. package/out/ui/packages/layout/components/List.luau +9 -16
  143. package/out/ui/packages/layout/components/Stack.d.ts +14 -0
  144. package/out/ui/packages/layout/components/Stack.luau +44 -0
  145. package/out/ui/packages/layout/components/Stack.styles.d.ts +10 -0
  146. package/out/ui/packages/layout/components/Stack.styles.luau +101 -0
  147. package/out/ui/packages/layout/components/boxPad.d.ts +14 -0
  148. package/out/ui/packages/layout/components/boxPad.luau +59 -0
  149. package/out/ui/packages/layout/components/containerWidth.d.ts +2 -0
  150. package/out/ui/packages/layout/components/containerWidth.luau +17 -0
  151. package/out/ui/packages/layout/components/flexItemMode.d.ts +6 -0
  152. package/out/ui/packages/layout/components/flexItemMode.luau +36 -0
  153. package/out/ui/packages/layout/components/gridProps.d.ts +3 -0
  154. package/out/ui/packages/layout/components/gridProps.luau +20 -0
  155. package/out/ui/packages/layout/components/stackAlign.d.ts +10 -0
  156. package/out/ui/packages/layout/components/stackAlign.luau +43 -0
  157. package/out/ui/packages/layout/index.d.ts +14 -0
  158. package/out/ui/packages/layout/init.luau +5 -0
  159. package/out/ui/packages/link/components/Link.d.ts +11 -0
  160. package/out/ui/packages/link/components/Link.luau +80 -0
  161. package/out/ui/packages/link/components/Link.styles.d.ts +8 -0
  162. package/out/ui/packages/link/components/Link.styles.luau +59 -0
  163. package/out/ui/packages/link/index.d.ts +3 -0
  164. package/out/ui/packages/link/init.luau +5 -0
  165. package/out/ui/packages/listItem/components/ListItem.d.ts +4 -1
  166. package/out/ui/packages/listItem/components/ListItem.luau +44 -4
  167. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +1 -0
  168. package/out/ui/packages/listItem/components/ListItem.styles.luau +16 -5
  169. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +7 -1
  170. package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +23 -19
  171. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +11 -0
  172. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +2 -0
  173. package/out/ui/packages/markdown/components/Markdown.d.ts +6 -0
  174. package/out/ui/packages/markdown/components/Markdown.luau +221 -0
  175. package/out/ui/packages/markdown/components/Markdown.styles.d.ts +2 -0
  176. package/out/ui/packages/markdown/components/Markdown.styles.luau +101 -0
  177. package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +16 -0
  178. package/out/ui/packages/markdown/components/MarkdownEditor.luau +315 -0
  179. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +6 -0
  180. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +132 -0
  181. package/out/ui/packages/markdown/htmlToMarkdown.d.ts +2 -0
  182. package/out/ui/packages/markdown/htmlToMarkdown.luau +350 -0
  183. package/out/ui/packages/markdown/index.d.ts +8 -0
  184. package/out/ui/packages/markdown/init.luau +11 -0
  185. package/out/ui/packages/markdown/parseMarkdown.d.ts +42 -0
  186. package/out/ui/packages/markdown/parseMarkdown.luau +459 -0
  187. package/out/ui/packages/menu/components/Menu.d.ts +7 -1
  188. package/out/ui/packages/menu/components/Menu.luau +68 -26
  189. package/out/ui/packages/menu/components/Menu.styles.luau +5 -1
  190. package/out/ui/packages/modal/components/Modal.d.ts +2 -1
  191. package/out/ui/packages/modal/components/Modal.luau +79 -37
  192. package/out/ui/packages/motion/index.d.ts +1 -1
  193. package/out/ui/packages/motion/init.luau +1 -0
  194. package/out/ui/packages/motion/unit.d.ts +5 -0
  195. package/out/ui/packages/motion/unit.luau +23 -0
  196. package/out/ui/packages/numberInput/components/NumberInput.d.ts +2 -0
  197. package/out/ui/packages/numberInput/components/NumberInput.luau +16 -3
  198. package/out/ui/packages/numberInput/components/numberValue.d.ts +1 -0
  199. package/out/ui/packages/numberInput/components/numberValue.luau +45 -0
  200. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +12 -16
  201. package/out/ui/packages/pagination/components/Pagination.d.ts +6 -1
  202. package/out/ui/packages/pagination/components/Pagination.luau +62 -38
  203. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +6 -1
  204. package/out/ui/packages/pagination/components/Pagination.styles.luau +36 -4
  205. package/out/ui/packages/pagination/components/pageRange.d.ts +2 -1
  206. package/out/ui/packages/pagination/components/pageRange.luau +91 -8
  207. package/out/ui/packages/pagination/index.d.ts +1 -0
  208. package/out/ui/packages/pagination/init.luau +1 -0
  209. package/out/ui/packages/paper/components/Paper.d.ts +4 -2
  210. package/out/ui/packages/paper/components/Paper.luau +31 -9
  211. package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
  212. package/out/ui/packages/paper/components/Paper.styles.luau +6 -0
  213. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +63 -38
  214. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +21 -7
  215. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +2 -0
  216. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +14 -0
  217. package/out/ui/packages/popup/components/Popup.d.ts +2 -1
  218. package/out/ui/packages/popup/components/Popup.luau +35 -18
  219. package/out/ui/packages/popup/index.d.ts +1 -0
  220. package/out/ui/packages/popup/init.luau +1 -0
  221. package/out/ui/packages/preloader/components/Preloader.luau +9 -16
  222. package/out/ui/packages/progressBar/components/ProgressBar.luau +12 -16
  223. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +1 -0
  224. package/out/ui/packages/radioGroup/components/RadioGroup.luau +16 -18
  225. package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +1 -0
  226. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +4 -1
  227. package/out/ui/packages/rating/components/Rating.d.ts +11 -0
  228. package/out/ui/packages/rating/components/Rating.luau +97 -0
  229. package/out/ui/packages/rating/components/Rating.styles.d.ts +6 -0
  230. package/out/ui/packages/rating/components/Rating.styles.luau +44 -0
  231. package/out/ui/packages/rating/index.d.ts +2 -0
  232. package/out/ui/packages/rating/init.luau +5 -0
  233. package/out/ui/packages/rayEditor/components/RayEditor.luau +12 -16
  234. package/out/ui/packages/rectEditor/components/RectEditor.luau +86 -43
  235. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +30 -7
  236. package/out/ui/packages/select/components/Select.d.ts +5 -0
  237. package/out/ui/packages/select/components/Select.luau +61 -77
  238. package/out/ui/packages/select/components/Select.styles.luau +1 -1
  239. package/out/ui/packages/shadow/components/Shadow.d.ts +2 -1
  240. package/out/ui/packages/shadow/components/Shadow.luau +39 -17
  241. package/out/ui/packages/shadow/components/Shadow.styles.luau +7 -2
  242. package/out/ui/packages/sidebar/components/Sidebar.luau +9 -16
  243. package/out/ui/packages/skeleton/components/Skeleton.luau +22 -30
  244. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +7 -2
  245. package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
  246. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +20 -0
  247. package/out/ui/packages/skeleton/components/skeletonTone.luau +14 -0
  248. package/out/ui/packages/slider/components/Slider.d.ts +3 -0
  249. package/out/ui/packages/slider/components/Slider.luau +47 -19
  250. package/out/ui/packages/slider/components/Slider.styles.d.ts +2 -0
  251. package/out/ui/packages/slider/components/Slider.styles.luau +14 -1
  252. package/out/ui/packages/slider/components/sliderMarks.d.ts +1 -0
  253. package/out/ui/packages/slider/components/sliderMarks.luau +37 -0
  254. package/out/ui/packages/snackbar/components/Snackbar.d.ts +2 -0
  255. package/out/ui/packages/snackbar/components/Snackbar.luau +5 -0
  256. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +1 -0
  257. package/out/ui/packages/snackbar/components/snackbarAction.luau +10 -0
  258. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +19 -0
  259. package/out/ui/packages/speedDial/components/SpeedDial.luau +97 -0
  260. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +5 -0
  261. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +31 -0
  262. package/out/ui/packages/speedDial/index.d.ts +3 -0
  263. package/out/ui/packages/speedDial/init.luau +5 -0
  264. package/out/ui/packages/splitPane/components/SplitPane.luau +13 -17
  265. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  266. package/out/ui/packages/stateMatrix.d.ts +2 -0
  267. package/out/ui/packages/stateMatrix.luau +872 -881
  268. package/out/ui/packages/stepper/components/Stepper.d.ts +1 -0
  269. package/out/ui/packages/stepper/components/Stepper.luau +16 -17
  270. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +3 -1
  271. package/out/ui/packages/stepper/components/Stepper.styles.luau +6 -2
  272. package/out/ui/packages/switch/components/Switch.d.ts +2 -0
  273. package/out/ui/packages/switch/components/Switch.luau +21 -16
  274. package/out/ui/packages/switch/components/Switch.styles.d.ts +2 -0
  275. package/out/ui/packages/switch/components/Switch.styles.luau +6 -1
  276. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  277. package/out/ui/packages/table/components/Table.d.ts +1 -0
  278. package/out/ui/packages/table/components/Table.luau +15 -19
  279. package/out/ui/packages/table/components/Table.styles.d.ts +3 -1
  280. package/out/ui/packages/table/components/Table.styles.luau +10 -6
  281. package/out/ui/packages/tabs/components/Tabs.d.ts +3 -0
  282. package/out/ui/packages/tabs/components/Tabs.luau +24 -19
  283. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +5 -1
  284. package/out/ui/packages/tabs/components/Tabs.styles.luau +26 -10
  285. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +2 -0
  286. package/out/ui/packages/tabs/components/tabsOrientation.luau +7 -0
  287. package/out/ui/packages/tabs/index.d.ts +1 -0
  288. package/out/ui/packages/tabs/init.luau +1 -0
  289. package/out/ui/packages/toast/components/Toast.d.ts +2 -0
  290. package/out/ui/packages/toast/components/Toast.luau +41 -13
  291. package/out/ui/packages/toast/components/Toast.styles.luau +23 -5
  292. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +21 -0
  293. package/out/ui/packages/toggleButton/components/ToggleButton.luau +129 -0
  294. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +9 -0
  295. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +69 -0
  296. package/out/ui/packages/toggleButton/index.d.ts +2 -0
  297. package/out/ui/packages/toggleButton/init.luau +7 -0
  298. package/out/ui/packages/tooltip/components/Tooltip.luau +9 -16
  299. package/out/ui/packages/treeView/components/TreeView.luau +9 -16
  300. package/out/ui/packages/typography/components/Typography.luau +13 -14
  301. package/out/ui/packages/udimEditor/components/UDimEditor.luau +12 -16
  302. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +12 -16
  303. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +7 -0
  304. package/out/ui/packages/virtualList/components/EmptyListHint.luau +43 -0
  305. package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +5 -0
  306. package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +26 -0
  307. package/out/ui/packages/virtualList/components/VirtualList.luau +9 -16
  308. package/out/ui/packages/virtualList/index.d.ts +2 -0
  309. package/out/ui/packages/virtualList/init.luau +1 -0
  310. package/package.json +2 -2
  311. package/out/ui/packages/select/components/selectMotion.d.ts +0 -2
  312. package/out/ui/packages/select/components/selectMotion.luau +0 -12
@@ -7,6 +7,7 @@ local useEffect = _react.useEffect
7
7
  local useRef = _react.useRef
8
8
  local DEFAULT_THEME = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").DEFAULT_THEME
9
9
  local Directions = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Directions
10
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
10
11
  local Shadow = TS.import(script, script.Parent.Parent.Parent, "shadow").Shadow
11
12
  local useToastStyles = TS.import(script, script.Parent, "Toast.styles").default
12
13
  local TWEEN_DURATION = 0.5
@@ -18,6 +19,8 @@ local function Toast(props)
18
19
  if duration == nil then
19
20
  duration = 4
20
21
  end
22
+ local action = _binding.action
23
+ local onAction = _binding.onAction
21
24
  local className = _binding.className
22
25
  local sx = _binding.sx
23
26
  local id = _binding.id
@@ -26,6 +29,7 @@ local function Toast(props)
26
29
  local container = _binding_1.container
27
30
  local label = _binding_1.label
28
31
  local close = _binding_1.close
32
+ local actionStyle = _binding_1.action
29
33
  local activePosition = _binding_1.activePosition
30
34
  local inActivePosition = _binding_1.inActivePosition
31
35
  local frameRef = useRef()
@@ -57,26 +61,28 @@ local function Toast(props)
57
61
  onDismiss()
58
62
  end
59
63
  end, {})
60
- local _attributes = {}
64
+ local _attributes = {
65
+ tag = "frame",
66
+ }
61
67
  local _condition = id
62
68
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
63
69
  _condition = "Toast"
64
70
  end
65
71
  _attributes.key = _condition
66
- _attributes.ref = frameRef
67
- for _k, _v in container do
68
- _attributes[_k] = _v
69
- end
70
- if className then
71
- for _k, _v in className do
72
- _attributes[_k] = _v
72
+ _attributes.hostRef = function(instance)
73
+ frameRef.current = instance
74
+ if ref == nil then
75
+ return nil
73
76
  end
74
- end
75
- if sx then
76
- for _k, _v in sx do
77
- _attributes[_k] = _v
77
+ if type(ref) == "function" then
78
+ ref(instance)
79
+ return nil
78
80
  end
81
+ ref.current = instance
79
82
  end
83
+ _attributes.base = container
84
+ _attributes.className = className
85
+ _attributes.sx = sx
80
86
  local _exp = React.createElement("uicorner", {
81
87
  key = "Corner",
82
88
  CornerRadius = UDim.new(0, DEFAULT_THEME.shape.borderRadius),
@@ -90,6 +96,28 @@ local function Toast(props)
90
96
  end
91
97
  _attributes_1.Text = text
92
98
  local _exp_2 = React.createElement("textlabel", _attributes_1)
99
+ local _condition_1 = action ~= nil and #action > 0
100
+ if _condition_1 then
101
+ local _attributes_2 = {
102
+ key = "Action",
103
+ }
104
+ for _k, _v in actionStyle do
105
+ _attributes_2[_k] = _v
106
+ end
107
+ _attributes_2.Text = action
108
+ _attributes_2.Event = {
109
+ Activated = function()
110
+ if onAction then
111
+ onAction()
112
+ end
113
+ tween(Directions.Out)
114
+ if onDismiss then
115
+ onDismiss()
116
+ end
117
+ end,
118
+ }
119
+ _condition_1 = (React.createElement("textbutton", _attributes_2))
120
+ end
93
121
  local _attributes_2 = {
94
122
  key = "Close",
95
123
  }
@@ -104,7 +132,7 @@ local function Toast(props)
104
132
  end
105
133
  end,
106
134
  }
107
- return React.createElement("frame", _attributes, _exp, _exp_1, _exp_2, React.createElement("imagebutton", _attributes_2))
135
+ return React.createElement(SxHost, _attributes, _exp, _exp_1, _exp_2, _condition_1, React.createElement("imagebutton", _attributes_2))
108
136
  end
109
137
  local default = Toast
110
138
  return {
@@ -11,6 +11,7 @@ local useToastStyles = componentStyles("Toast", function(theme, _param)
11
11
  if variant == nil then
12
12
  variant = ToastVariants.default
13
13
  end
14
+ local action = _param.action
14
15
  local getToastColors = function()
15
16
  repeat
16
17
  if variant == (ToastVariants.success) then
@@ -38,31 +39,48 @@ local useToastStyles = componentStyles("Toast", function(theme, _param)
38
39
  until true
39
40
  end
40
41
  local toastColors = getToastColors()
42
+ local hasAction = action ~= nil and #action > 0
43
+ local actionSlot = if hasAction then theme.spacing.calc(8) else 0
41
44
  local ACTIVE_POSITION = UDim2.new(0.5, 0, 1, -DEFAULT_THEME.padding.calc(2))
42
45
  local INACTIVE_POSITION = UDim2.new(0.5, 0, 1, DEFAULT_THEME.spacing.calc(20) + DEFAULT_THEME.padding.calc(2))
43
46
  return createStyles({
44
47
  container = {
45
48
  Size = UDim2.new(0, theme.spacing.calc(20), 0, theme.spacing.calc(4)),
46
- Position = INACTIVE_POSITION,
49
+ Position = ACTIVE_POSITION,
47
50
  BackgroundColor3 = toastColors.background,
48
51
  AnchorPoint = Vector2.new(0.5, 1),
49
52
  BorderSizePixel = 0,
50
53
  ZIndex = 50000,
51
54
  },
52
55
  label = {
53
- Size = UDim2.new(1, -theme.padding.calc(4), 1, -theme.padding.calc(4)),
54
- Position = UDim2.new(0.5, 0, 0.5, 0),
55
- AnchorPoint = Vector2.new(0.5, 0.5),
56
+ Size = UDim2.new(1, -(theme.padding.calc(4) + actionSlot), 1, -theme.padding.calc(4)),
57
+ Position = if hasAction then UDim2.new(0, theme.padding.calc(2), 0.5, 0) else UDim2.new(0.5, 0, 0.5, 0),
58
+ AnchorPoint = if hasAction then Vector2.new(0, 0.5) else Vector2.new(0.5, 0.5),
56
59
  BackgroundTransparency = 1,
57
60
  BorderSizePixel = 0,
58
61
  TextSize = theme.typography.fontSizes.body,
59
62
  TextColor3 = toastColors.content,
60
63
  Font = theme.typography.fontFamilies.default,
64
+ TextXAlignment = if hasAction then Enum.TextXAlignment.Left else Enum.TextXAlignment.Center,
65
+ TextTruncate = Enum.TextTruncate.AtEnd,
61
66
  TextScaled = false,
62
67
  ZIndex = 50001,
63
68
  },
69
+ action = {
70
+ AutomaticSize = Enum.AutomaticSize.X,
71
+ Size = UDim2.new(0, 0, 0, theme.spacing.calc(3)),
72
+ Position = UDim2.new(1, -(theme.padding.calc(2) + theme.options.constants.iconSizes.small + theme.padding.calc(1)), 0.5, 0),
73
+ AnchorPoint = Vector2.new(1, 0.5),
74
+ BackgroundTransparency = 1,
75
+ BorderSizePixel = 0,
76
+ Font = theme.typography.fontFamilies.default,
77
+ TextSize = theme.typography.fontSizes.body,
78
+ TextColor3 = toastColors.content,
79
+ AutoButtonColor = false,
80
+ ZIndex = 50001,
81
+ },
64
82
  close = {
65
- Size = UDim2.new(0, theme.spacing.calc(1), 0, theme.spacing.calc(1)),
83
+ Size = UDim2.new(0, theme.options.constants.iconSizes.small, 0, theme.options.constants.iconSizes.small),
66
84
  Position = UDim2.new(1, -theme.padding.calc(2), 0, theme.padding.calc(2)),
67
85
  AnchorPoint = Vector2.new(1, 0),
68
86
  ImageColor3 = toastColors.content,
@@ -0,0 +1,21 @@
1
+ import { ControlSize, CustomizedProps } from "../../../../theme/index";
2
+ import { ChoiceOption } from "../../radioGroup/index";
3
+ import { ToggleButtonOrientation } from "./ToggleButton.styles";
4
+ export interface ToggleButtonProps {
5
+ label: string;
6
+ selected?: boolean;
7
+ disabled?: boolean;
8
+ size?: ControlSize;
9
+ onActivated?: () => void;
10
+ }
11
+ declare function ToggleButton(props: CustomizedProps<TextButton, ToggleButtonProps>): JSX.Element;
12
+ export interface ToggleButtonGroupProps<T> {
13
+ value: T;
14
+ options: ChoiceOption<T>[];
15
+ onChange: (value: T) => void;
16
+ disabled?: boolean;
17
+ size?: ControlSize;
18
+ orientation?: ToggleButtonOrientation;
19
+ }
20
+ export declare function ToggleButtonGroup<T>(props: CustomizedProps<Frame, ToggleButtonGroupProps<T>>): JSX.Element;
21
+ export default ToggleButton;
@@ -0,0 +1,129 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
+ local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
5
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
6
+ local useToggleButtonStyles = TS.import(script, script.Parent, "ToggleButton.styles").default
7
+ local function ToggleButton(props)
8
+ local _binding = props
9
+ local label = _binding.label
10
+ local selected = _binding.selected
11
+ local disabled = _binding.disabled
12
+ local size = _binding.size
13
+ if size == nil then
14
+ size = "medium"
15
+ end
16
+ local onActivated = _binding.onActivated
17
+ local className = _binding.className
18
+ local sx = _binding.sx
19
+ local id = _binding.id
20
+ local ref = _binding.ref
21
+ local styles = useToggleButtonStyles({
22
+ selected = selected,
23
+ disabled = disabled,
24
+ size = size,
25
+ })
26
+ local active = canActivate(disabled)
27
+ local _attributes = {
28
+ tag = "textbutton",
29
+ }
30
+ local _condition = id
31
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
32
+ _condition = "ToggleButton"
33
+ end
34
+ _attributes.key = _condition
35
+ _attributes.hostRef = ref
36
+ _attributes.base = styles.root
37
+ _attributes.className = className
38
+ _attributes.sx = sx
39
+ _attributes.state = {
40
+ disabled = disabled,
41
+ selected = selected,
42
+ }
43
+ _attributes.Text = label
44
+ _attributes.Active = active
45
+ _attributes.Selectable = active
46
+ _attributes.Event = {
47
+ Activated = function()
48
+ if active then
49
+ local _result = onActivated
50
+ if _result ~= nil then
51
+ _result()
52
+ end
53
+ end
54
+ end,
55
+ }
56
+ local _attributes_1 = table.clone(styles.padding)
57
+ setmetatable(_attributes_1, nil)
58
+ local _exp = React.createElement("uipadding", _attributes_1)
59
+ local _attributes_2 = table.clone(styles.corner)
60
+ setmetatable(_attributes_2, nil)
61
+ local _exp_1 = React.createElement("uicorner", _attributes_2)
62
+ local _attributes_3 = table.clone(styles.stroke)
63
+ setmetatable(_attributes_3, nil)
64
+ return React.createElement(SxHost, _attributes, _exp, _exp_1, React.createElement("uistroke", _attributes_3))
65
+ end
66
+ local function ToggleButtonGroup(props)
67
+ local _binding = props
68
+ local value = _binding.value
69
+ local options = _binding.options
70
+ local onChange = _binding.onChange
71
+ local disabled = _binding.disabled
72
+ local size = _binding.size
73
+ local orientation = _binding.orientation
74
+ local className = _binding.className
75
+ local sx = _binding.sx
76
+ local id = _binding.id
77
+ local ref = _binding.ref
78
+ local styles = useToggleButtonStyles({
79
+ size = size,
80
+ orientation = orientation,
81
+ })
82
+ local _attributes = {
83
+ tag = "frame",
84
+ }
85
+ local _condition = id
86
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
87
+ _condition = "ToggleButtonGroup"
88
+ end
89
+ _attributes.key = _condition
90
+ _attributes.hostRef = ref
91
+ _attributes.base = styles.group
92
+ _attributes.className = className
93
+ _attributes.sx = sx
94
+ _attributes.state = {
95
+ disabled = disabled,
96
+ }
97
+ local _attributes_1 = table.clone(styles.list)
98
+ setmetatable(_attributes_1, nil)
99
+ local _exp = React.createElement("uilistlayout", _attributes_1)
100
+ -- ▼ ReadonlyArray.map ▼
101
+ local _newValue = table.create(#options)
102
+ local _callback = function(choice, index)
103
+ return React.createElement(ToggleButton, {
104
+ key = `{choice.label}-{index}`,
105
+ label = choice.label,
106
+ selected = choice.value == value,
107
+ disabled = disabled == true or choice.disabled == true,
108
+ size = size,
109
+ onActivated = function()
110
+ if choice.value ~= value then
111
+ onChange(choice.value)
112
+ end
113
+ end,
114
+ className = {
115
+ LayoutOrder = index,
116
+ },
117
+ })
118
+ end
119
+ for _k, _v in options do
120
+ _newValue[_k] = _callback(_v, _k - 1, options)
121
+ end
122
+ -- ▲ ReadonlyArray.map ▲
123
+ return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
124
+ end
125
+ local default = ToggleButton
126
+ return {
127
+ ToggleButtonGroup = ToggleButtonGroup,
128
+ default = default,
129
+ }
@@ -0,0 +1,9 @@
1
+ import { ControlSize } from "../../../../theme/index";
2
+ export type ToggleButtonOrientation = "horizontal" | "vertical";
3
+ declare const useToggleButtonStyles: (props: {
4
+ selected?: boolean;
5
+ disabled?: boolean;
6
+ size?: ControlSize;
7
+ orientation?: ToggleButtonOrientation;
8
+ }) => import("../../../../theme/index").ClassNameMap<string>;
9
+ export default useToggleButtonStyles;
@@ -0,0 +1,69 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local componentStyles = _theme.componentStyles
5
+ local createStyles = _theme.createStyles
6
+ local useToggleButtonStyles = componentStyles("ToggleButton", function(theme, _param)
7
+ local selected = _param.selected
8
+ if selected == nil then
9
+ selected = false
10
+ end
11
+ local disabled = _param.disabled
12
+ if disabled == nil then
13
+ disabled = false
14
+ end
15
+ local size = _param.size
16
+ if size == nil then
17
+ size = "medium"
18
+ end
19
+ local orientation = _param.orientation
20
+ if orientation == nil then
21
+ orientation = "horizontal"
22
+ end
23
+ local height = if size == "small" then theme.spacing.calc(3) elseif size == "large" then theme.spacing.calc(5) else theme.spacing.calc(4)
24
+ local textSize = if size == "small" then theme.typography.fontSizes.caption elseif size == "large" then theme.typography.fontSizes.h6 else theme.typography.fontSizes.body
25
+ local pad = theme.padding.calc(if size == "small" then 1 else 1.5)
26
+ return createStyles({
27
+ root = {
28
+ AutomaticSize = Enum.AutomaticSize.X,
29
+ Size = UDim2.new(0, 0, 0, height),
30
+ BackgroundColor3 = if selected then theme.palette.action.selected else theme.palette.surface.input,
31
+ BorderSizePixel = 0,
32
+ AutoButtonColor = false,
33
+ Active = not disabled,
34
+ Selectable = not disabled,
35
+ TextColor3 = if disabled then theme.palette.text.disabled elseif selected then theme.palette.primary.main else theme.palette.text.primary,
36
+ Font = theme.typography.fontFamilies.default,
37
+ TextSize = textSize,
38
+ },
39
+ padding = {
40
+ PaddingLeft = UDim.new(0, pad),
41
+ PaddingRight = UDim.new(0, pad),
42
+ },
43
+ corner = {
44
+ CornerRadius = UDim.new(0, theme.shape.borderRadius),
45
+ },
46
+ stroke = {
47
+ Color = if selected then theme.palette.primary.main else theme.palette.border,
48
+ ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
49
+ Transparency = if disabled then 0.5 else 0,
50
+ },
51
+ group = {
52
+ AutomaticSize = Enum.AutomaticSize.XY,
53
+ Size = UDim2.fromScale(0, 0),
54
+ BackgroundTransparency = 1,
55
+ BorderSizePixel = 0,
56
+ },
57
+ list = {
58
+ FillDirection = if orientation == "vertical" then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
59
+ HorizontalAlignment = Enum.HorizontalAlignment.Left,
60
+ VerticalAlignment = Enum.VerticalAlignment.Center,
61
+ SortOrder = Enum.SortOrder.LayoutOrder,
62
+ Padding = UDim.new(0, theme.padding.calc(0.5)),
63
+ },
64
+ })
65
+ end)
66
+ local default = useToggleButtonStyles
67
+ return {
68
+ default = default,
69
+ }
@@ -0,0 +1,2 @@
1
+ export { default as ToggleButton, ToggleButtonGroup } from "./components/ToggleButton";
2
+ export { ToggleButtonProps, ToggleButtonGroupProps } from "./components/ToggleButton";
@@ -0,0 +1,7 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ local _ToggleButton = TS.import(script, script, "components", "ToggleButton")
5
+ exports.ToggleButton = _ToggleButton.default
6
+ exports.ToggleButtonGroup = _ToggleButton.ToggleButtonGroup
7
+ return exports
@@ -7,6 +7,7 @@ local useRef = _react.useRef
7
7
  local useState = _react.useState
8
8
  local TextService = TS.import(script, TS.getModule(script, "@rbxts", "services")).TextService
9
9
  local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
10
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
10
11
  local Popup = TS.import(script, script.Parent.Parent.Parent, "popup").Popup
11
12
  local useTooltipStyles = TS.import(script, script.Parent, "Tooltip.styles").default
12
13
  local function Tooltip(props)
@@ -50,26 +51,18 @@ local function Tooltip(props)
50
51
  useEffect(function()
51
52
  return cancel
52
53
  end, {})
53
- local _attributes = {}
54
+ local _attributes = {
55
+ tag = "frame",
56
+ }
54
57
  local _condition_1 = id
55
58
  if not (_condition_1 ~= 0 and _condition_1 == _condition_1 and _condition_1 ~= "" and _condition_1) then
56
59
  _condition_1 = "Tooltip"
57
60
  end
58
61
  _attributes.key = _condition_1
59
- _attributes.ref = ref
60
- for _k, _v in styles.root do
61
- _attributes[_k] = _v
62
- end
63
- if className then
64
- for _k, _v in className do
65
- _attributes[_k] = _v
66
- end
67
- end
68
- if sx then
69
- for _k, _v in sx do
70
- _attributes[_k] = _v
71
- end
72
- end
62
+ _attributes.hostRef = ref
63
+ _attributes.base = styles.root
64
+ _attributes.className = className
65
+ _attributes.sx = sx
73
66
  _attributes.Event = {
74
67
  MouseEnter = function(rbx)
75
68
  setAnchor(rbx)
@@ -111,7 +104,7 @@ local function Tooltip(props)
111
104
  preferredHeight = tipHeight,
112
105
  }, React.createElement("textlabel", _attributes_1, _exp_1, _exp_2, React.createElement("uistroke", _attributes_4))))
113
106
  end
114
- return React.createElement("frame", _attributes, _exp, _condition_2)
107
+ return React.createElement(SxHost, _attributes, _exp, _condition_2)
115
108
  end
116
109
  local default = Tooltip
117
110
  return {
@@ -9,6 +9,7 @@ local useState = _react.useState
9
9
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
10
10
  local cx = _theme.cx
11
11
  local useTheme = _theme.useTheme
12
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
12
13
  local Icon = TS.import(script, script.Parent.Parent.Parent, "icon").Icon
13
14
  local Typography = TS.import(script, script.Parent.Parent.Parent, "typography").Typography
14
15
  local VirtualList = TS.import(script, script.Parent.Parent.Parent, "virtualList").VirtualList
@@ -252,26 +253,18 @@ local function TreeView(props)
252
253
  family = if bold then "bold" else "default",
253
254
  }))
254
255
  end
255
- local _attributes = {}
256
+ local _attributes = {
257
+ tag = "frame",
258
+ }
256
259
  local _condition = id
257
260
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
258
261
  _condition = "TreeView"
259
262
  end
260
263
  _attributes.key = _condition
261
- _attributes.ref = ref
262
- for _k, _v in root do
263
- _attributes[_k] = _v
264
- end
265
- if className then
266
- for _k, _v in className do
267
- _attributes[_k] = _v
268
- end
269
- end
270
- if sx then
271
- for _k, _v in sx do
272
- _attributes[_k] = _v
273
- end
274
- end
264
+ _attributes.hostRef = ref
265
+ _attributes.base = root
266
+ _attributes.className = className
267
+ _attributes.sx = sx
275
268
  local _attributes_1 = {}
276
269
  local _object = {
277
270
  Text = tree.title,
@@ -283,7 +276,7 @@ local function TreeView(props)
283
276
  _attributes_1.color = "textSecondary"
284
277
  _attributes_1.variant = "body"
285
278
  _attributes_1.family = "bold"
286
- return React.createElement("frame", _attributes, React.createElement(Typography, _attributes_1), React.createElement(VirtualList, {
279
+ return React.createElement(SxHost, _attributes, React.createElement(Typography, _attributes_1), React.createElement(VirtualList, {
287
280
  key = "List",
288
281
  items = rows,
289
282
  getKey = function(entry)
@@ -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 useTypographyStyles = TS.import(script, script.Parent, "Typography.styles").default
5
6
  local function Typography(props)
6
7
  local _binding = props
@@ -16,31 +17,29 @@ local function Typography(props)
16
17
  local _binding_1 = useTypographyStyles(props)
17
18
  local root = _binding_1.root
18
19
  local variantToken = _binding_1.variantToken
19
- local _attributes = {}
20
+ local _attributes = {
21
+ tag = "textlabel",
22
+ }
20
23
  local _condition = id
21
24
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
22
25
  _condition = "Typography"
23
26
  end
24
27
  _attributes.key = _condition
25
- _attributes.ref = ref
26
- for _k, _v in root do
27
- _attributes[_k] = _v
28
- end
29
- _attributes.Text = text
28
+ _attributes.hostRef = ref
29
+ local _object = table.clone(root)
30
+ setmetatable(_object, nil)
31
+ _object.Text = text
30
32
  if className ~= 0 and className == className and className ~= "" and className then
31
33
  for _k, _v in className do
32
- _attributes[_k] = _v
34
+ _object[_k] = _v
33
35
  end
34
36
  end
35
37
  for _k, _v in variantToken do
36
- _attributes[_k] = _v
37
- end
38
- if sx ~= 0 and sx == sx and sx ~= "" and sx then
39
- for _k, _v in sx do
40
- _attributes[_k] = _v
41
- end
38
+ _object[_k] = _v
42
39
  end
43
- return React.createElement("textlabel", _attributes, children)
40
+ _attributes.base = _object
41
+ _attributes.sx = sx
42
+ return React.createElement(SxHost, _attributes, children)
44
43
  end
45
44
  local default = Typography
46
45
  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 NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
5
6
  local _vectorValue = TS.import(script, script.Parent.Parent.Parent, "vectorEditor", "components", "vectorValue")
6
7
  local writeUDim = _vectorValue.writeUDim
@@ -41,26 +42,21 @@ local function UDimEditor(props)
41
42
  onChange = commit,
42
43
  })))
43
44
  end
44
- local _attributes = {}
45
+ local _attributes = {
46
+ tag = "frame",
47
+ }
45
48
  local _condition = id
46
49
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
47
50
  _condition = "UDimEditor"
48
51
  end
49
52
  _attributes.key = _condition
50
- _attributes.ref = ref
51
- for _k, _v in styles.root do
52
- _attributes[_k] = _v
53
- end
54
- if className then
55
- for _k, _v in className do
56
- _attributes[_k] = _v
57
- end
58
- end
59
- if sx then
60
- for _k, _v in sx do
61
- _attributes[_k] = _v
62
- end
63
- end
53
+ _attributes.hostRef = ref
54
+ _attributes.base = styles.root
55
+ _attributes.className = className
56
+ _attributes.sx = sx
57
+ _attributes.state = {
58
+ disabled = disabled,
59
+ }
64
60
  local _attributes_1 = table.clone(styles.column)
65
61
  setmetatable(_attributes_1, nil)
66
62
  local _exp = React.createElement("uilistlayout", _attributes_1)
@@ -119,7 +115,7 @@ local function UDimEditor(props)
119
115
  return onChange(writeUDim(value, "Offset", amount))
120
116
  end, 2)))
121
117
  end
122
- return React.createElement("frame", _attributes, _exp, _result)
118
+ return React.createElement(SxHost, _attributes, _exp, _result)
123
119
  end
124
120
  local default = UDimEditor
125
121
  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 NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
5
6
  local useVectorEditorStyles = TS.import(script, script.Parent, "VectorEditor.styles").default
6
7
  local _vectorValue = TS.import(script, script.Parent, "vectorValue")
@@ -19,26 +20,21 @@ local function VectorEditor(props)
19
20
  local styles = useVectorEditorStyles()
20
21
  local isVector3 = typeof(value) == "Vector3"
21
22
  local axes = props.axes or (if isVector3 then ({ "X", "Y", "Z" }) else ({ "X", "Y" }))
22
- local _attributes = {}
23
+ local _attributes = {
24
+ tag = "frame",
25
+ }
23
26
  local _condition = id
24
27
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
25
28
  _condition = "VectorEditor"
26
29
  end
27
30
  _attributes.key = _condition
28
- _attributes.ref = ref
29
- for _k, _v in styles.root do
30
- _attributes[_k] = _v
31
- end
32
- if className then
33
- for _k, _v in className do
34
- _attributes[_k] = _v
35
- end
36
- end
37
- if sx then
38
- for _k, _v in sx do
39
- _attributes[_k] = _v
40
- end
41
- end
31
+ _attributes.hostRef = ref
32
+ _attributes.base = styles.root
33
+ _attributes.className = className
34
+ _attributes.sx = sx
35
+ _attributes.state = {
36
+ disabled = disabled,
37
+ }
42
38
  local _attributes_1 = table.clone(styles.row)
43
39
  setmetatable(_attributes_1, nil)
44
40
  local _exp = React.createElement("uilistlayout", _attributes_1)
@@ -79,7 +75,7 @@ local function VectorEditor(props)
79
75
  _newValue[_k] = _callback(_v, _k - 1, axes)
80
76
  end
81
77
  -- ▲ ReadonlyArray.map ▲
82
- return React.createElement("frame", _attributes, _exp, _newValue)
78
+ return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
83
79
  end
84
80
  local default = VectorEditor
85
81
  return {
@@ -0,0 +1,7 @@
1
+ import { CustomizedProps } from "../../../../theme/index";
2
+ export interface EmptyListHintProps {
3
+ text: string;
4
+ height?: number;
5
+ }
6
+ declare function EmptyListHint(props: CustomizedProps<TextLabel, EmptyListHintProps>): JSX.Element;
7
+ export default EmptyListHint;