@rbxts/uiblox 0.2.0-alpha.36 → 0.2.0-alpha.5

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 (313) hide show
  1. package/README.md +109 -27
  2. package/out/hooks/index.d.ts +0 -1
  3. package/out/hooks/init.luau +0 -3
  4. package/out/hooks/useBreakpoints.luau +11 -2
  5. package/out/theme/interfaces/theme/Theme.d.ts +0 -15
  6. package/out/theme/styles/utilities/componentStyles.luau +3 -45
  7. package/out/theme/styles/utilities/componentTheme.d.ts +0 -15
  8. package/out/theme/styles/utilities/index.d.ts +0 -2
  9. package/out/theme/styles/utilities/init.luau +0 -7
  10. package/out/theme/styles/utilities/resolveStyle.d.ts +2 -10
  11. package/out/theme/styles/utilities/resolveStyle.luau +3 -7
  12. package/out/theme/styles/utilities/styleCache.d.ts +0 -2
  13. package/out/theme/styles/utilities/styleCache.luau +0 -9
  14. package/out/theme/types/types.d.ts +1 -2
  15. package/out/ui/packages/accordion/components/Accordion.d.ts +0 -2
  16. package/out/ui/packages/accordion/components/Accordion.luau +30 -46
  17. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +0 -1
  18. package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -16
  19. package/out/ui/packages/accordion/components/accordionOpen.d.ts +0 -1
  20. package/out/ui/packages/accordion/components/accordionOpen.luau +0 -4
  21. package/out/ui/packages/alert/components/Alert.d.ts +0 -2
  22. package/out/ui/packages/alert/components/Alert.luau +42 -48
  23. package/out/ui/packages/alert/components/Alert.styles.d.ts +0 -2
  24. package/out/ui/packages/alert/components/Alert.styles.luau +8 -17
  25. package/out/ui/packages/appBar/components/AppBar.d.ts +1 -2
  26. package/out/ui/packages/appBar/components/AppBar.luau +36 -47
  27. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +0 -2
  28. package/out/ui/packages/appBar/components/AppBar.styles.luau +5 -16
  29. package/out/ui/packages/assetField/components/AssetField.luau +16 -12
  30. package/out/ui/packages/avatar/components/Avatar.d.ts +0 -2
  31. package/out/ui/packages/avatar/components/Avatar.luau +26 -27
  32. package/out/ui/packages/avatar/components/Avatar.styles.d.ts +0 -2
  33. package/out/ui/packages/avatar/components/Avatar.styles.luau +1 -5
  34. package/out/ui/packages/badge/components/Badge.d.ts +0 -3
  35. package/out/ui/packages/badge/components/Badge.luau +24 -32
  36. package/out/ui/packages/badge/components/Badge.styles.d.ts +1 -5
  37. package/out/ui/packages/badge/components/Badge.styles.luau +8 -20
  38. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +0 -1
  39. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +18 -20
  40. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +1 -3
  41. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +2 -6
  42. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +0 -1
  43. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +40 -67
  44. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +0 -9
  45. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +0 -68
  46. package/out/ui/packages/breadcrumbs/index.d.ts +0 -1
  47. package/out/ui/packages/breadcrumbs/init.luau +0 -3
  48. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +16 -12
  49. package/out/ui/packages/button/components/Button.luau +18 -20
  50. package/out/ui/packages/card/components/Card.d.ts +1 -3
  51. package/out/ui/packages/card/components/Card.luau +0 -10
  52. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +53 -75
  53. package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +9 -26
  54. package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
  55. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
  56. package/out/ui/packages/chip/components/Chip.d.ts +1 -5
  57. package/out/ui/packages/chip/components/Chip.luau +16 -25
  58. package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -5
  59. package/out/ui/packages/chip/components/Chip.styles.luau +13 -30
  60. package/out/ui/packages/circularProgress/components/CircularProgress.luau +18 -29
  61. package/out/ui/packages/colorPicker/components/ColorPicker.luau +20 -16
  62. package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +20 -34
  63. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +35 -34
  64. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +62 -65
  65. package/out/ui/packages/dialog/components/Dialog.d.ts +2 -3
  66. package/out/ui/packages/dialog/components/Dialog.luau +21 -41
  67. package/out/ui/packages/divider/components/Divider.d.ts +0 -1
  68. package/out/ui/packages/divider/components/Divider.luau +17 -52
  69. package/out/ui/packages/divider/components/Divider.styles.luau +0 -32
  70. package/out/ui/packages/drawer/components/Drawer.d.ts +1 -3
  71. package/out/ui/packages/drawer/components/Drawer.luau +37 -71
  72. package/out/ui/packages/drawer/components/Drawer.styles.d.ts +1 -3
  73. package/out/ui/packages/drawer/components/Drawer.styles.luau +2 -3
  74. package/out/ui/packages/fab/components/Fab.d.ts +0 -3
  75. package/out/ui/packages/fab/components/Fab.luau +37 -79
  76. package/out/ui/packages/fab/components/Fab.styles.d.ts +0 -3
  77. package/out/ui/packages/fab/components/Fab.styles.luau +3 -39
  78. package/out/ui/packages/fab/components/fabSize.d.ts +0 -1
  79. package/out/ui/packages/fab/components/fabSize.luau +0 -4
  80. package/out/ui/packages/fab/index.d.ts +1 -1
  81. package/out/ui/packages/fab/init.luau +0 -1
  82. package/out/ui/packages/fontEditor/components/FontEditor.luau +16 -12
  83. package/out/ui/packages/formText/components/FormHelperText.luau +16 -12
  84. package/out/ui/packages/formText/components/FormLabel.luau +16 -12
  85. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +42 -56
  86. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +4 -37
  87. package/out/ui/packages/icon/components/Icon.luau +16 -9
  88. package/out/ui/packages/iconButton/components/IconButton.luau +16 -16
  89. package/out/ui/packages/index.d.ts +0 -6
  90. package/out/ui/packages/init.luau +0 -18
  91. package/out/ui/packages/input/components/Input.d.ts +0 -1
  92. package/out/ui/packages/input/components/Input.luau +18 -21
  93. package/out/ui/packages/layout/components/Grid.d.ts +1 -5
  94. package/out/ui/packages/layout/components/Grid.luau +19 -41
  95. package/out/ui/packages/layout/components/List.luau +16 -9
  96. package/out/ui/packages/layout/components/Stack.d.ts +0 -2
  97. package/out/ui/packages/layout/components/Stack.luau +15 -10
  98. package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -2
  99. package/out/ui/packages/layout/components/Stack.styles.luau +5 -34
  100. package/out/ui/packages/layout/components/stackAlign.d.ts +2 -4
  101. package/out/ui/packages/layout/components/stackAlign.luau +2 -16
  102. package/out/ui/packages/layout/index.d.ts +0 -11
  103. package/out/ui/packages/layout/init.luau +0 -4
  104. package/out/ui/packages/link/components/Link.luau +16 -13
  105. package/out/ui/packages/listItem/components/ListItem.d.ts +1 -4
  106. package/out/ui/packages/listItem/components/ListItem.luau +4 -44
  107. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
  108. package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -16
  109. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +1 -5
  110. package/out/ui/packages/menu/components/Menu.d.ts +1 -4
  111. package/out/ui/packages/menu/components/Menu.luau +15 -32
  112. package/out/ui/packages/modal/components/Modal.d.ts +1 -2
  113. package/out/ui/packages/modal/components/Modal.luau +37 -79
  114. package/out/ui/packages/motion/index.d.ts +1 -1
  115. package/out/ui/packages/motion/init.luau +0 -1
  116. package/out/ui/packages/motion/unit.d.ts +0 -5
  117. package/out/ui/packages/motion/unit.luau +0 -23
  118. package/out/ui/packages/numberInput/components/NumberInput.d.ts +0 -2
  119. package/out/ui/packages/numberInput/components/NumberInput.luau +3 -16
  120. package/out/ui/packages/numberInput/components/numberValue.d.ts +0 -1
  121. package/out/ui/packages/numberInput/components/numberValue.luau +0 -45
  122. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +16 -12
  123. package/out/ui/packages/pagination/components/Pagination.d.ts +1 -6
  124. package/out/ui/packages/pagination/components/Pagination.luau +38 -62
  125. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +1 -6
  126. package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -36
  127. package/out/ui/packages/pagination/components/pageRange.d.ts +1 -2
  128. package/out/ui/packages/pagination/components/pageRange.luau +8 -91
  129. package/out/ui/packages/pagination/index.d.ts +0 -1
  130. package/out/ui/packages/pagination/init.luau +0 -1
  131. package/out/ui/packages/paper/components/Paper.d.ts +2 -4
  132. package/out/ui/packages/paper/components/Paper.luau +9 -31
  133. package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
  134. package/out/ui/packages/paper/components/Paper.styles.luau +0 -6
  135. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +38 -63
  136. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +7 -21
  137. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +0 -2
  138. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +0 -14
  139. package/out/ui/packages/popup/components/Popup.d.ts +1 -2
  140. package/out/ui/packages/popup/components/Popup.luau +18 -35
  141. package/out/ui/packages/popup/index.d.ts +0 -1
  142. package/out/ui/packages/popup/init.luau +0 -1
  143. package/out/ui/packages/preloader/components/Preloader.luau +16 -9
  144. package/out/ui/packages/progressBar/components/ProgressBar.luau +16 -12
  145. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +0 -1
  146. package/out/ui/packages/radioGroup/components/RadioGroup.luau +18 -16
  147. package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +0 -1
  148. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +1 -4
  149. package/out/ui/packages/rating/components/Rating.d.ts +1 -3
  150. package/out/ui/packages/rating/components/Rating.luau +17 -19
  151. package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -2
  152. package/out/ui/packages/rating/components/Rating.styles.luau +2 -7
  153. package/out/ui/packages/rayEditor/components/RayEditor.luau +16 -12
  154. package/out/ui/packages/rectEditor/components/RectEditor.luau +43 -86
  155. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +7 -30
  156. package/out/ui/packages/scroll/index.d.ts +0 -2
  157. package/out/ui/packages/scroll/init.luau +0 -1
  158. package/out/ui/packages/select/components/Select.luau +55 -15
  159. package/out/ui/packages/select/components/selectMotion.d.ts +2 -0
  160. package/out/ui/packages/select/components/selectMotion.luau +12 -0
  161. package/out/ui/packages/shadow/components/Shadow.d.ts +1 -2
  162. package/out/ui/packages/shadow/components/Shadow.luau +17 -39
  163. package/out/ui/packages/shadow/components/Shadow.styles.luau +2 -7
  164. package/out/ui/packages/sidebar/components/Sidebar.luau +16 -9
  165. package/out/ui/packages/skeleton/components/Skeleton.luau +28 -19
  166. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +3 -7
  167. package/out/ui/packages/slider/components/Slider.d.ts +0 -3
  168. package/out/ui/packages/slider/components/Slider.luau +19 -47
  169. package/out/ui/packages/slider/components/Slider.styles.d.ts +0 -2
  170. package/out/ui/packages/slider/components/Slider.styles.luau +1 -14
  171. package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
  172. package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
  173. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -2
  174. package/out/ui/packages/speedDial/components/SpeedDial.luau +20 -25
  175. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +1 -4
  176. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +4 -9
  177. package/out/ui/packages/speedDial/index.d.ts +0 -1
  178. package/out/ui/packages/splitPane/components/SplitPane.luau +17 -13
  179. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  180. package/out/ui/packages/stateMatrix.d.ts +0 -2
  181. package/out/ui/packages/stateMatrix.luau +997 -793
  182. package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
  183. package/out/ui/packages/stepper/components/Stepper.luau +17 -16
  184. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
  185. package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
  186. package/out/ui/packages/switch/components/Switch.d.ts +0 -2
  187. package/out/ui/packages/switch/components/Switch.luau +16 -21
  188. package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
  189. package/out/ui/packages/switch/components/Switch.styles.luau +1 -6
  190. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  191. package/out/ui/packages/table/components/Table.d.ts +2 -16
  192. package/out/ui/packages/table/components/Table.luau +53 -136
  193. package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
  194. package/out/ui/packages/table/components/Table.styles.luau +6 -10
  195. package/out/ui/packages/table/index.d.ts +1 -2
  196. package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
  197. package/out/ui/packages/tabs/components/Tabs.luau +19 -24
  198. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
  199. package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
  200. package/out/ui/packages/tabs/index.d.ts +0 -1
  201. package/out/ui/packages/tabs/init.luau +0 -1
  202. package/out/ui/packages/toast/components/Toast.d.ts +0 -2
  203. package/out/ui/packages/toast/components/Toast.luau +13 -41
  204. package/out/ui/packages/toast/components/Toast.styles.luau +5 -23
  205. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +1 -5
  206. package/out/ui/packages/toggleButton/components/ToggleButton.luau +33 -36
  207. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -4
  208. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +5 -16
  209. package/out/ui/packages/tooltip/components/Tooltip.luau +16 -9
  210. package/out/ui/packages/treeView/components/TreeView.luau +16 -9
  211. package/out/ui/packages/typography/components/Typography.luau +14 -13
  212. package/out/ui/packages/udimEditor/components/UDimEditor.luau +16 -12
  213. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +16 -12
  214. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +1 -2
  215. package/out/ui/packages/virtualList/components/EmptyListHint.luau +4 -15
  216. package/out/ui/packages/virtualList/components/VirtualList.luau +16 -9
  217. package/package.json +2 -2
  218. package/out/hooks/viewportObserver.d.ts +0 -10
  219. package/out/hooks/viewportObserver.luau +0 -75
  220. package/out/theme/styles/utilities/resolveSx.d.ts +0 -120
  221. package/out/theme/styles/utilities/resolveSx.luau +0 -524
  222. package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
  223. package/out/ui/packages/backdrop/components/Backdrop.luau +0 -51
  224. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
  225. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
  226. package/out/ui/packages/backdrop/index.d.ts +0 -2
  227. package/out/ui/packages/backdrop/init.luau +0 -5
  228. package/out/ui/packages/dateRange/components/DateRangePicker.d.ts +0 -11
  229. package/out/ui/packages/dateRange/components/DateRangePicker.luau +0 -253
  230. package/out/ui/packages/dateRange/dateRangeValue.d.ts +0 -18
  231. package/out/ui/packages/dateRange/dateRangeValue.luau +0 -121
  232. package/out/ui/packages/dateRange/index.d.ts +0 -3
  233. package/out/ui/packages/dateRange/init.luau +0 -16
  234. package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
  235. package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
  236. package/out/ui/packages/host/components/SxHost.d.ts +0 -18
  237. package/out/ui/packages/host/components/SxHost.luau +0 -210
  238. package/out/ui/packages/host/hostPaint.d.ts +0 -12
  239. package/out/ui/packages/host/hostPaint.luau +0 -34
  240. package/out/ui/packages/host/hostRules.d.ts +0 -15
  241. package/out/ui/packages/host/hostRules.luau +0 -92
  242. package/out/ui/packages/host/index.d.ts +0 -3
  243. package/out/ui/packages/host/init.luau +0 -13
  244. package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
  245. package/out/ui/packages/imageList/components/ImageList.luau +0 -93
  246. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
  247. package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
  248. package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
  249. package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
  250. package/out/ui/packages/imageList/index.d.ts +0 -2
  251. package/out/ui/packages/imageList/init.luau +0 -5
  252. package/out/ui/packages/layout/components/Box.d.ts +0 -11
  253. package/out/ui/packages/layout/components/Box.luau +0 -40
  254. package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
  255. package/out/ui/packages/layout/components/Box.styles.luau +0 -34
  256. package/out/ui/packages/layout/components/Container.d.ts +0 -10
  257. package/out/ui/packages/layout/components/Container.luau +0 -45
  258. package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
  259. package/out/ui/packages/layout/components/Container.styles.luau +0 -41
  260. package/out/ui/packages/layout/components/FlexItem.d.ts +0 -12
  261. package/out/ui/packages/layout/components/FlexItem.luau +0 -40
  262. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +0 -8
  263. package/out/ui/packages/layout/components/FlexItem.styles.luau +0 -66
  264. package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
  265. package/out/ui/packages/layout/components/boxPad.luau +0 -59
  266. package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
  267. package/out/ui/packages/layout/components/containerWidth.luau +0 -17
  268. package/out/ui/packages/layout/components/flexItemMode.d.ts +0 -6
  269. package/out/ui/packages/layout/components/flexItemMode.luau +0 -36
  270. package/out/ui/packages/layout/components/gridProps.d.ts +0 -3
  271. package/out/ui/packages/layout/components/gridProps.luau +0 -20
  272. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +0 -11
  273. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +0 -2
  274. package/out/ui/packages/markdown/components/Markdown.d.ts +0 -6
  275. package/out/ui/packages/markdown/components/Markdown.luau +0 -221
  276. package/out/ui/packages/markdown/components/Markdown.styles.d.ts +0 -2
  277. package/out/ui/packages/markdown/components/Markdown.styles.luau +0 -101
  278. package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +0 -22
  279. package/out/ui/packages/markdown/components/MarkdownEditor.luau +0 -433
  280. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +0 -6
  281. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +0 -161
  282. package/out/ui/packages/markdown/components/markdownEditorHeight.d.ts +0 -1
  283. package/out/ui/packages/markdown/components/markdownEditorHeight.luau +0 -13
  284. package/out/ui/packages/markdown/htmlToMarkdown.d.ts +0 -2
  285. package/out/ui/packages/markdown/htmlToMarkdown.luau +0 -350
  286. package/out/ui/packages/markdown/index.d.ts +0 -8
  287. package/out/ui/packages/markdown/init.luau +0 -11
  288. package/out/ui/packages/markdown/parseMarkdown.d.ts +0 -42
  289. package/out/ui/packages/markdown/parseMarkdown.luau +0 -459
  290. package/out/ui/packages/reorder/index.d.ts +0 -2
  291. package/out/ui/packages/reorder/init.luau +0 -14
  292. package/out/ui/packages/reorder/reorder.d.ts +0 -24
  293. package/out/ui/packages/reorder/reorder.luau +0 -178
  294. package/out/ui/packages/reorder/useReorderDrag.d.ts +0 -15
  295. package/out/ui/packages/reorder/useReorderDrag.luau +0 -129
  296. package/out/ui/packages/scroll/components/ScrollView.d.ts +0 -7
  297. package/out/ui/packages/scroll/components/ScrollView.luau +0 -42
  298. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
  299. package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
  300. package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
  301. package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
  302. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
  303. package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
  304. package/out/ui/packages/sparkline/components/Sparkline.d.ts +0 -9
  305. package/out/ui/packages/sparkline/components/Sparkline.luau +0 -66
  306. package/out/ui/packages/sparkline/index.d.ts +0 -3
  307. package/out/ui/packages/sparkline/init.luau +0 -6
  308. package/out/ui/packages/sparkline/sparklineLayout.d.ts +0 -8
  309. package/out/ui/packages/sparkline/sparklineLayout.luau +0 -75
  310. package/out/ui/packages/table/components/tableColumns.d.ts +0 -26
  311. package/out/ui/packages/table/components/tableColumns.luau +0 -92
  312. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
  313. package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
@@ -2,7 +2,6 @@ import { CustomizedProps } from "../../../../theme/index";
2
2
  export interface StepperProps {
3
3
  steps: string[];
4
4
  activeStep: number;
5
- orientation?: "horizontal" | "vertical";
6
5
  }
7
6
  declare function Stepper(props: CustomizedProps<Frame, StepperProps>): JSX.Element;
8
7
  export default Stepper;
@@ -3,35 +3,36 @@ 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 stepState = TS.import(script, script.Parent, "stepState").stepState
6
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
7
6
  local useStepperStyles = TS.import(script, script.Parent, "Stepper.styles").default
8
7
  local function Stepper(props)
9
8
  local _binding = props
10
9
  local steps = _binding.steps
11
10
  local activeStep = _binding.activeStep
12
- local orientation = _binding.orientation
13
- if orientation == nil then
14
- orientation = "horizontal"
15
- end
16
11
  local className = _binding.className
17
12
  local sx = _binding.sx
18
13
  local id = _binding.id
19
14
  local ref = _binding.ref
20
- local styles = useStepperStyles({
21
- orientation = orientation,
22
- })
23
- local _attributes = {
24
- tag = "frame",
25
- }
15
+ local styles = useStepperStyles()
16
+ local _attributes = {}
26
17
  local _condition = id
27
18
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
28
19
  _condition = "Stepper"
29
20
  end
30
21
  _attributes.key = _condition
31
- _attributes.hostRef = ref
32
- _attributes.base = styles.root
33
- _attributes.className = className
34
- _attributes.sx = sx
22
+ _attributes.ref = ref
23
+ for _k, _v in styles.root do
24
+ _attributes[_k] = _v
25
+ end
26
+ if className then
27
+ for _k, _v in className do
28
+ _attributes[_k] = _v
29
+ end
30
+ end
31
+ if sx then
32
+ for _k, _v in sx do
33
+ _attributes[_k] = _v
34
+ end
35
+ end
35
36
  local _attributes_1 = table.clone(styles.list)
36
37
  setmetatable(_attributes_1, nil)
37
38
  local _exp = React.createElement("uilistlayout", _attributes_1)
@@ -53,7 +54,7 @@ local function Stepper(props)
53
54
  _newValue[_k] = _callback(_v, _k - 1, steps)
54
55
  end
55
56
  -- ▲ ReadonlyArray.map ▲
56
- return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
57
+ return React.createElement("frame", _attributes, _exp, _newValue)
57
58
  end
58
59
  local default = Stepper
59
60
  return {
@@ -1,4 +1,2 @@
1
- declare const useStepperStyles: (props: {
2
- orientation?: "horizontal" | "vertical";
3
- }) => import("../../../../theme/index").ClassNameMap<string>;
1
+ declare const useStepperStyles: () => import("../../../../theme/index").ClassNameMap<string>;
4
2
  export default useStepperStyles;
@@ -3,11 +3,7 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local componentStyles = _theme.componentStyles
5
5
  local createStyles = _theme.createStyles
6
- local useStepperStyles = componentStyles("Stepper", function(theme, _param)
7
- local orientation = _param.orientation
8
- if orientation == nil then
9
- orientation = "horizontal"
10
- end
6
+ local useStepperStyles = componentStyles("Stepper", function(theme)
11
7
  return createStyles({
12
8
  root = {
13
9
  AutomaticSize = Enum.AutomaticSize.XY,
@@ -16,7 +12,7 @@ local useStepperStyles = componentStyles("Stepper", function(theme, _param)
16
12
  BorderSizePixel = 0,
17
13
  },
18
14
  list = {
19
- FillDirection = if orientation == "vertical" then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
15
+ FillDirection = Enum.FillDirection.Horizontal,
20
16
  Padding = UDim.new(0, theme.padding.calc(1)),
21
17
  SortOrder = Enum.SortOrder.LayoutOrder,
22
18
  },
@@ -1,12 +1,10 @@
1
1
  import { ControlSize, CustomizedProps } from "../../../../theme/index";
2
- import { SwitchColor } from "./Switch.styles";
3
2
  export interface SwitchProps {
4
3
  value: boolean;
5
4
  onChange: (value: boolean) => void;
6
5
  disabled?: boolean;
7
6
  label?: string;
8
7
  size?: ControlSize;
9
- color?: SwitchColor;
10
8
  reducedMotion?: boolean;
11
9
  }
12
10
  declare function Switch(props: CustomizedProps<TextButton, SwitchProps>): JSX.Element;
@@ -11,7 +11,6 @@ local controlMetrics = _theme.controlMetrics
11
11
  local cx = _theme.cx
12
12
  local useTheme = _theme.useTheme
13
13
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
14
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
15
14
  local playProperty = TS.import(script, script.Parent.Parent.Parent, "motion").playProperty
16
15
  local useSwitchStyles = TS.import(script, script.Parent, "Switch.styles").default
17
16
  local _switchLook = TS.import(script, script.Parent, "switchLook")
@@ -28,10 +27,6 @@ local function Switch(props)
28
27
  local disabled = _binding.disabled
29
28
  local label = _binding.label
30
29
  local size = _binding.size
31
- local color = _binding.color
32
- if color == nil then
33
- color = "primary"
34
- end
35
30
  local reducedProp = _binding.reducedMotion
36
31
  local className = _binding.className
37
32
  local sx = _binding.sx
@@ -42,7 +37,6 @@ local function Switch(props)
42
37
  local theme = _binding_1.theme
43
38
  local _binding_2 = useSwitchStyles({
44
39
  size = size,
45
- color = color,
46
40
  })
47
41
  local root = _binding_2.root
48
42
  local row = _binding_2.row
@@ -79,25 +73,26 @@ local function Switch(props)
79
73
  end
80
74
  return playProperty(thumb, goal, THUMB_SECONDS, reducedMotion)
81
75
  end, { placement.scaleX, placement.offsetX, placement.anchorX, reducedMotion })
82
- local _attributes = {
83
- tag = "textbutton",
84
- }
76
+ local _attributes = {}
85
77
  local _condition = id
86
78
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
87
79
  _condition = "Switch"
88
80
  end
89
81
  _attributes.key = _condition
90
- _attributes.hostRef = ref
91
- _attributes.base = root
92
- _attributes.className = className
93
- _attributes.sx = sx
94
- _attributes.state = {
95
- disabled = disabled,
96
- checked = on,
97
- hover = hovering,
98
- pressed = pressed,
99
- focused = focused,
100
- }
82
+ _attributes.ref = ref
83
+ for _k, _v in root do
84
+ _attributes[_k] = _v
85
+ end
86
+ if className then
87
+ for _k, _v in className do
88
+ _attributes[_k] = _v
89
+ end
90
+ end
91
+ if sx then
92
+ for _k, _v in sx do
93
+ _attributes[_k] = _v
94
+ end
95
+ end
101
96
  _attributes.Active = active
102
97
  _attributes.Selectable = not disabled
103
98
  _attributes.BackgroundTransparency = if focused and active then 0.85 else 1
@@ -167,7 +162,7 @@ local function Switch(props)
167
162
  _attributes_7.LayoutOrder = 2
168
163
  _condition_1 = (React.createElement("textlabel", _attributes_7))
169
164
  end
170
- return React.createElement(SxHost, _attributes, _exp, _exp_3, _condition_1)
165
+ return React.createElement("textbutton", _attributes, _exp, _exp_3, _condition_1)
171
166
  end
172
167
  local default = Switch
173
168
  return {
@@ -1,8 +1,6 @@
1
1
  import { ControlSize } from "../../../../theme/index";
2
- export type SwitchColor = "primary" | "accent";
3
2
  export interface SwitchStyleProps {
4
3
  size?: ControlSize;
5
- color?: SwitchColor;
6
4
  }
7
5
  declare const useSwitchStyles: (props: SwitchStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
8
6
  export default useSwitchStyles;
@@ -6,12 +6,7 @@ local createStyles = _theme.createStyles
6
6
  local componentStyles = _theme.componentStyles
7
7
  local useSwitchStyles = componentStyles("Switch", function(theme, _param)
8
8
  local size = _param.size
9
- local color = _param.color
10
- if color == nil then
11
- color = "primary"
12
- end
13
9
  local metrics = controlMetrics(theme.density, size)
14
- local onTone = if color == "accent" then theme.palette.accent.main else theme.palette.primary.main
15
10
  return createStyles({
16
11
  root = {
17
12
  AutomaticSize = Enum.AutomaticSize.XY,
@@ -33,7 +28,7 @@ local useSwitchStyles = componentStyles("Switch", function(theme, _param)
33
28
  BorderSizePixel = 0,
34
29
  },
35
30
  trackOn = {
36
- BackgroundColor3 = onTone,
31
+ BackgroundColor3 = theme.palette.primary.main,
37
32
  },
38
33
  knob = {
39
34
  Size = UDim2.fromOffset(metrics.switchThumb, metrics.switchThumb),
@@ -1,6 +1,6 @@
1
1
  export type SwitchPointer = "rest" | "hover" | "press" | "focus";
2
2
  export declare function switchPointer(hovering: boolean, pressed: boolean, focused: boolean): SwitchPointer;
3
- export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.55 | 0.35 | 0.15 | 0.65 | 0.08;
3
+ export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.35 | 0.65 | 0.55 | 0.15 | 0.08;
4
4
  export declare function switchThumbTransparency(disabled: boolean): 0 | 0.35;
5
5
  export declare function switchStrokeTransparency(disabled: boolean, pointer: SwitchPointer): 1 | 0 | 0.35;
6
6
  export declare function switchThumbPlacement(on: boolean, inset: number): {
@@ -1,22 +1,8 @@
1
- import React from "@rbxts/react";
2
1
  import { CustomizedProps } from "../../../../theme/index";
3
- import { TableAlign, TableSortDirection } from "./tableColumns";
4
- export interface TableColumn {
5
- header: string | React.ReactNode;
6
- width?: number | UDim;
7
- flex?: number;
8
- align?: TableAlign;
9
- sortable?: boolean;
10
- }
11
- export type TableCell = string | React.ReactNode;
12
2
  export interface TableProps {
13
- columns: Array<string | TableColumn>;
14
- rows: Array<Array<TableCell>>;
3
+ columns: string[];
4
+ rows: string[][];
15
5
  selected?: number;
16
- dense?: boolean;
17
- sortColumn?: number;
18
- sortDirection?: TableSortDirection;
19
- onSort?: (column: number) => void;
20
6
  onRowActivated?: (index: number) => void;
21
7
  }
22
8
  declare function Table(props: CustomizedProps<Frame, TableProps>): JSX.Element;
@@ -2,64 +2,40 @@
2
2
  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
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
6
5
  local rowSelected = TS.import(script, script.Parent, "rowSelected").rowSelected
7
- local _tableColumns = TS.import(script, script.Parent, "tableColumns")
8
- local canSort = _tableColumns.canSort
9
- local columnSizes = _tableColumns.columnSizes
10
- local headerText = _tableColumns.headerText
11
- local isTextCell = _tableColumns.isTextCell
12
- local resolveColumn = _tableColumns.resolveColumn
13
6
  local useTableStyles = TS.import(script, script.Parent, "Table.styles").default
14
- local function textAlign(align)
15
- if align == "center" then
16
- return Enum.TextXAlignment.Center
17
- end
18
- if align == "right" then
19
- return Enum.TextXAlignment.Right
20
- end
21
- return Enum.TextXAlignment.Left
22
- end
23
7
  local function Table(props)
24
8
  local _binding = props
25
9
  local columns = _binding.columns
26
10
  local rows = _binding.rows
27
11
  local selected = _binding.selected
28
- local dense = _binding.dense
29
- local sortColumn = _binding.sortColumn
30
- local sortDirection = _binding.sortDirection
31
- local onSort = _binding.onSort
32
12
  local onRowActivated = _binding.onRowActivated
33
13
  local className = _binding.className
34
14
  local sx = _binding.sx
35
15
  local id = _binding.id
36
16
  local ref = _binding.ref
37
- local styles = useTableStyles({
38
- dense = dense,
39
- })
40
- -- ▼ ReadonlyArray.map ▼
41
- local _newValue = table.create(#columns)
42
- local _callback = function(column)
43
- return resolveColumn(column)
44
- end
45
- for _k, _v in columns do
46
- _newValue[_k] = _callback(_v, _k - 1, columns)
47
- end
48
- -- ▲ ReadonlyArray.map ▲
49
- local resolved = _newValue
50
- local sizes = columnSizes(resolved)
51
- local _attributes = {
52
- tag = "frame",
53
- }
17
+ local styles = useTableStyles()
18
+ local width = if #columns > 0 then 1 / #columns else 1
19
+ local _attributes = {}
54
20
  local _condition = id
55
21
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
56
22
  _condition = "Table"
57
23
  end
58
24
  _attributes.key = _condition
59
- _attributes.hostRef = ref
60
- _attributes.base = styles.root
61
- _attributes.className = className
62
- _attributes.sx = sx
25
+ _attributes.ref = ref
26
+ for _k, _v in styles.root do
27
+ _attributes[_k] = _v
28
+ end
29
+ if className then
30
+ for _k, _v in className do
31
+ _attributes[_k] = _v
32
+ end
33
+ end
34
+ if sx then
35
+ for _k, _v in sx do
36
+ _attributes[_k] = _v
37
+ end
38
+ end
63
39
  local _attributes_1 = table.clone(styles.corner)
64
40
  setmetatable(_attributes_1, nil)
65
41
  local _exp = React.createElement("uicorner", _attributes_1)
@@ -80,72 +56,27 @@ local function Table(props)
80
56
  setmetatable(_attributes_5, nil)
81
57
  local _exp_3 = React.createElement("uilistlayout", _attributes_5)
82
58
  -- ▼ ReadonlyArray.map ▼
83
- local _newValue_1 = table.create(#resolved)
84
- local _callback_1 = function(column, index)
85
- local size = sizes[index + 1]
86
- local box = UDim2.new(size.scale, size.offset, 0, 0)
87
- local align = textAlign(column.align)
88
- local active = sortColumn == index and column.sortable
89
- local _header = column.header
90
- local label = if type(_header) == "string" then headerText(column.header, active, sortDirection) else nil
91
- local clickable = canSort(column.sortable, onSort ~= nil)
92
- if clickable then
93
- local _attributes_6 = {
94
- key = `h-{index}`,
95
- }
96
- for _k, _v in (cx(styles.cell, styles.headerCell)) do
97
- _attributes_6[_k] = _v
98
- end
99
- local _condition_1 = label
100
- if _condition_1 == nil then
101
- _condition_1 = ""
102
- end
103
- _attributes_6.Text = _condition_1
104
- _attributes_6.Size = box
105
- _attributes_6.TextXAlignment = align
106
- _attributes_6.AutoButtonColor = false
107
- _attributes_6.LayoutOrder = index
108
- _attributes_6.Event = {
109
- Activated = function()
110
- local _result = onSort
111
- if _result ~= nil then
112
- _result = _result(index)
113
- end
114
- return _result
115
- end,
116
- }
117
- return React.createElement("textbutton", _attributes_6, label == nil and (column.header))
118
- end
119
- if label ~= nil then
120
- local _attributes_6 = {
121
- key = `h-{index}`,
122
- }
123
- for _k, _v in cx(styles.cell, styles.headerCell) do
124
- _attributes_6[_k] = _v
125
- end
126
- _attributes_6.Text = label
127
- _attributes_6.Size = box
128
- _attributes_6.TextXAlignment = align
129
- _attributes_6.LayoutOrder = index
130
- return React.createElement("textlabel", _attributes_6)
59
+ local _newValue = table.create(#columns)
60
+ local _callback = function(label, index)
61
+ local _attributes_6 = {
62
+ key = `h-{label}-{index}`,
63
+ }
64
+ for _k, _v in cx(styles.cell, styles.headerCell) do
65
+ _attributes_6[_k] = _v
131
66
  end
132
- return React.createElement("frame", {
133
- key = `h-{index}`,
134
- Size = box,
135
- AutomaticSize = Enum.AutomaticSize.Y,
136
- BackgroundTransparency = 1,
137
- BorderSizePixel = 0,
138
- LayoutOrder = index,
139
- }, column.header)
67
+ _attributes_6.Text = label
68
+ _attributes_6.Size = UDim2.new(width, 0, 0, 0)
69
+ _attributes_6.LayoutOrder = index
70
+ return React.createElement("textlabel", _attributes_6)
140
71
  end
141
- for _k, _v in resolved do
142
- _newValue_1[_k] = _callback_1(_v, _k - 1, resolved)
72
+ for _k, _v in columns do
73
+ _newValue[_k] = _callback(_v, _k - 1, columns)
143
74
  end
144
75
  -- ▲ ReadonlyArray.map ▲
145
- local _exp_4 = React.createElement("frame", _attributes_3, _exp_2, _exp_3, React.createElement(React.Fragment, nil, _newValue_1))
76
+ local _exp_4 = React.createElement("frame", _attributes_3, _exp_2, _exp_3, _newValue)
146
77
  -- ▼ ReadonlyArray.map ▼
147
- local _newValue_2 = table.create(#rows)
148
- local _callback_2 = function(cells, rowIndex)
78
+ local _newValue_1 = table.create(#rows)
79
+ local _callback_1 = function(cells, rowIndex)
149
80
  local _attributes_6 = {
150
81
  key = `r-{rowIndex}`,
151
82
  }
@@ -169,48 +100,34 @@ local function Table(props)
169
100
  setmetatable(_attributes_8, nil)
170
101
  local _exp_6 = React.createElement("uilistlayout", _attributes_8)
171
102
  -- ▼ ReadonlyArray.map ▼
172
- local _newValue_3 = table.create(#resolved)
173
- local _callback_3 = function(column, colIndex)
174
- local size = sizes[colIndex + 1]
175
- local box = UDim2.new(size.scale, size.offset, 0, 0)
176
- local value = cells[colIndex + 1]
177
- if isTextCell(value) then
178
- local _attributes_9 = {
179
- key = `c-{rowIndex}-{colIndex}`,
180
- }
181
- for _k, _v in styles.cell do
182
- _attributes_9[_k] = _v
183
- end
184
- local _condition_1 = value
185
- if _condition_1 == nil then
186
- _condition_1 = ""
187
- end
188
- _attributes_9.Text = _condition_1
189
- _attributes_9.Size = box
190
- _attributes_9.TextXAlignment = textAlign(column.align)
191
- _attributes_9.LayoutOrder = colIndex
192
- return React.createElement("textlabel", _attributes_9)
193
- end
194
- return React.createElement("frame", {
103
+ local _newValue_2 = table.create(#columns)
104
+ local _callback_2 = function(_, colIndex)
105
+ local _attributes_9 = {
195
106
  key = `c-{rowIndex}-{colIndex}`,
196
- Size = box,
197
- AutomaticSize = Enum.AutomaticSize.Y,
198
- BackgroundTransparency = 1,
199
- BorderSizePixel = 0,
200
- LayoutOrder = colIndex,
201
- }, value)
107
+ }
108
+ for _k, _v in styles.cell do
109
+ _attributes_9[_k] = _v
110
+ end
111
+ local _condition_1 = cells[colIndex + 1]
112
+ if _condition_1 == nil then
113
+ _condition_1 = ""
114
+ end
115
+ _attributes_9.Text = _condition_1
116
+ _attributes_9.Size = UDim2.new(width, 0, 0, 0)
117
+ _attributes_9.LayoutOrder = colIndex
118
+ return React.createElement("textlabel", _attributes_9)
202
119
  end
203
- for _k, _v in resolved do
204
- _newValue_3[_k] = _callback_3(_v, _k - 1, resolved)
120
+ for _k, _v in columns do
121
+ _newValue_2[_k] = _callback_2(_v, _k - 1, columns)
205
122
  end
206
123
  -- ▲ ReadonlyArray.map ▲
207
- return React.createElement("textbutton", _attributes_6, _exp_5, _exp_6, React.createElement(React.Fragment, nil, _newValue_3))
124
+ return React.createElement("textbutton", _attributes_6, _exp_5, _exp_6, _newValue_2)
208
125
  end
209
126
  for _k, _v in rows do
210
- _newValue_2[_k] = _callback_2(_v, _k - 1, rows)
127
+ _newValue_1[_k] = _callback_1(_v, _k - 1, rows)
211
128
  end
212
129
  -- ▲ ReadonlyArray.map ▲
213
- return React.createElement(SxHost, _attributes, _exp, _exp_1, _exp_4, React.createElement(React.Fragment, nil, _newValue_2))
130
+ return React.createElement("frame", _attributes, _exp, _exp_1, _exp_4, _newValue_1)
214
131
  end
215
132
  local default = Table
216
133
  return {
@@ -1,4 +1,2 @@
1
- declare const useTableStyles: (props: {
2
- dense?: boolean;
3
- }) => import("../../../../theme/index").ClassNameMap<string>;
1
+ declare const useTableStyles: () => import("../../../../theme/index").ClassNameMap<string>;
4
2
  export default useTableStyles;
@@ -3,11 +3,7 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local componentStyles = _theme.componentStyles
5
5
  local createStyles = _theme.createStyles
6
- local useTableStyles = componentStyles("Table", function(theme, _param)
7
- local dense = _param.dense
8
- local padY = theme.padding.calc(if dense == true then 0.5 else 1)
9
- local padX = theme.padding.calc(if dense == true then 1 else 1.5)
10
- local textSize = if dense == true then theme.typography.fontSizes.caption else theme.typography.fontSizes.body
6
+ local useTableStyles = componentStyles("Table", function(theme)
11
7
  return createStyles({
12
8
  root = {
13
9
  AutomaticSize = Enum.AutomaticSize.Y,
@@ -48,7 +44,7 @@ local useTableStyles = componentStyles("Table", function(theme, _param)
48
44
  BackgroundTransparency = 1,
49
45
  BorderSizePixel = 0,
50
46
  Font = theme.typography.fontFamilies.default,
51
- TextSize = textSize,
47
+ TextSize = theme.typography.fontSizes.body,
52
48
  TextColor3 = theme.palette.text.primary,
53
49
  TextXAlignment = Enum.TextXAlignment.Left,
54
50
  TextTruncate = Enum.TextTruncate.AtEnd,
@@ -58,10 +54,10 @@ local useTableStyles = componentStyles("Table", function(theme, _param)
58
54
  TextColor3 = theme.palette.text.secondary,
59
55
  },
60
56
  padding = {
61
- PaddingTop = UDim.new(0, padY),
62
- PaddingBottom = UDim.new(0, padY),
63
- PaddingLeft = UDim.new(0, padX),
64
- PaddingRight = UDim.new(0, padX),
57
+ PaddingTop = UDim.new(0, theme.padding.calc(1)),
58
+ PaddingBottom = UDim.new(0, theme.padding.calc(1)),
59
+ PaddingLeft = UDim.new(0, theme.padding.calc(1.5)),
60
+ PaddingRight = UDim.new(0, theme.padding.calc(1.5)),
65
61
  },
66
62
  corner = {
67
63
  CornerRadius = UDim.new(0, theme.shape.borderRadius),
@@ -1,3 +1,2 @@
1
1
  export { default as Table } from "./components/Table";
2
- export { TableProps, TableColumn, TableCell } from "./components/Table";
3
- export { TableAlign, TableSortDirection } from "./components/tableColumns";
2
+ export { TableProps } from "./components/Table";
@@ -1,13 +1,10 @@
1
1
  import { CustomizedProps } from "../../../../theme/index";
2
2
  import { ChoiceOption } from "../../radioGroup/index";
3
- import { TabsOrientation } from "./tabsOrientation";
4
3
  export interface TabsProps<T> {
5
4
  value: T;
6
5
  options: ChoiceOption<T>[];
7
6
  onChange: (value: T) => void;
8
7
  disabled?: boolean;
9
- orientation?: TabsOrientation;
10
- centered?: boolean;
11
8
  }
12
9
  declare function Tabs<T>(props: CustomizedProps<ScrollingFrame, TabsProps<T>>): JSX.Element;
13
10
  export default Tabs;
@@ -4,8 +4,6 @@ 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
6
  local stepChoice = TS.import(script, script.Parent.Parent.Parent, "select", "components", "stepChoice").stepChoice
7
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
8
- local tabsIsVertical = TS.import(script, script.Parent, "tabsOrientation").tabsIsVertical
9
7
  local useTabsStyles = TS.import(script, script.Parent, "Tabs.styles").default
10
8
  local function Tabs(props)
11
9
  local _binding = props
@@ -13,17 +11,11 @@ local function Tabs(props)
13
11
  local options = _binding.options
14
12
  local onChange = _binding.onChange
15
13
  local disabled = _binding.disabled
16
- local orientation = _binding.orientation
17
- local centered = _binding.centered
18
14
  local className = _binding.className
19
15
  local sx = _binding.sx
20
16
  local id = _binding.id
21
17
  local ref = _binding.ref
22
- local styles = useTabsStyles({
23
- orientation = orientation,
24
- centered = centered,
25
- })
26
- local vertical = tabsIsVertical(orientation)
18
+ local styles = useTabsStyles()
27
19
  local choose = function(index)
28
20
  local choice = options[index + 1]
29
21
  if choice ~= nil and canActivate(disabled or choice.disabled) and choice.value ~= value then
@@ -44,29 +36,32 @@ local function Tabs(props)
44
36
  end
45
37
  -- ▲ ReadonlyArray.findIndex ▲
46
38
  local index = _result
47
- local back = if vertical then Enum.KeyCode.Up else Enum.KeyCode.Left
48
- local forward = if vertical then Enum.KeyCode.Down else Enum.KeyCode.Right
49
- if input.KeyCode == back then
39
+ if input.KeyCode == Enum.KeyCode.Left then
50
40
  choose(stepChoice(options, index, -1))
51
- elseif input.KeyCode == forward then
41
+ elseif input.KeyCode == Enum.KeyCode.Right then
52
42
  choose(stepChoice(options, index, 1))
53
43
  end
54
44
  end
55
- local _attributes = {
56
- tag = "scrollingframe",
57
- }
45
+ local _attributes = {}
58
46
  local _condition = id
59
47
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
60
48
  _condition = "Tabs"
61
49
  end
62
50
  _attributes.key = _condition
63
- _attributes.hostRef = ref
64
- _attributes.base = styles.root
65
- _attributes.className = className
66
- _attributes.sx = sx
67
- _attributes.state = {
68
- disabled = disabled,
69
- }
51
+ _attributes.ref = ref
52
+ for _k, _v in styles.root do
53
+ _attributes[_k] = _v
54
+ end
55
+ if className then
56
+ for _k, _v in className do
57
+ _attributes[_k] = _v
58
+ end
59
+ end
60
+ if sx then
61
+ for _k, _v in sx do
62
+ _attributes[_k] = _v
63
+ end
64
+ end
70
65
  local _attributes_1 = table.clone(styles.list)
71
66
  setmetatable(_attributes_1, nil)
72
67
  local _exp = React.createElement("uilistlayout", _attributes_1)
@@ -110,7 +105,7 @@ local function Tabs(props)
110
105
  _newValue[_k] = _callback(_v, _k - 1, options)
111
106
  end
112
107
  -- ▲ ReadonlyArray.map ▲
113
- return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
108
+ return React.createElement("scrollingframe", _attributes, _exp, _newValue)
114
109
  end
115
110
  local default = Tabs
116
111
  return {
@@ -1,6 +1,2 @@
1
- import { TabsOrientation } from "./tabsOrientation";
2
- declare const useTabsStyles: (props: {
3
- orientation?: TabsOrientation;
4
- centered?: boolean;
5
- }) => import("../../../../theme/index").ClassNameMap<string>;
1
+ declare const useTabsStyles: () => import("../../../../theme/index").ClassNameMap<string>;
6
2
  export default useTabsStyles;