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

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 +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/ui/packages/accordion/components/Accordion.d.ts +0 -2
  15. package/out/ui/packages/accordion/components/Accordion.luau +30 -46
  16. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +0 -1
  17. package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -16
  18. package/out/ui/packages/accordion/components/accordionOpen.d.ts +0 -1
  19. package/out/ui/packages/accordion/components/accordionOpen.luau +0 -4
  20. package/out/ui/packages/alert/components/Alert.d.ts +0 -2
  21. package/out/ui/packages/alert/components/Alert.luau +42 -48
  22. package/out/ui/packages/alert/components/Alert.styles.d.ts +0 -2
  23. package/out/ui/packages/alert/components/Alert.styles.luau +8 -17
  24. package/out/ui/packages/appBar/components/AppBar.d.ts +1 -2
  25. package/out/ui/packages/appBar/components/AppBar.luau +16 -14
  26. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +0 -2
  27. package/out/ui/packages/appBar/components/AppBar.styles.luau +2 -6
  28. package/out/ui/packages/assetField/components/AssetField.luau +16 -12
  29. package/out/ui/packages/autocomplete/components/Autocomplete.luau +0 -8
  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 +22 -28
  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 -6
  57. package/out/ui/packages/chip/components/Chip.luau +17 -61
  58. package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -6
  59. package/out/ui/packages/chip/components/Chip.styles.luau +9 -54
  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/gradientEditor/components/GradientEditor.luau +42 -56
  84. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +4 -37
  85. package/out/ui/packages/icon/components/Icon.luau +16 -9
  86. package/out/ui/packages/iconButton/components/IconButton.luau +17 -22
  87. package/out/ui/packages/iconButton/components/IconButton.styles.luau +0 -3
  88. package/out/ui/packages/index.d.ts +0 -8
  89. package/out/ui/packages/init.luau +0 -24
  90. package/out/ui/packages/input/components/Input.d.ts +0 -1
  91. package/out/ui/packages/input/components/Input.luau +19 -22
  92. package/out/ui/packages/layout/components/Grid.d.ts +1 -5
  93. package/out/ui/packages/layout/components/Grid.luau +19 -41
  94. package/out/ui/packages/layout/components/List.luau +16 -9
  95. package/out/ui/packages/layout/index.d.ts +0 -14
  96. package/out/ui/packages/layout/init.luau +0 -5
  97. package/out/ui/packages/listItem/components/ListItem.d.ts +1 -4
  98. package/out/ui/packages/listItem/components/ListItem.luau +4 -44
  99. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
  100. package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -16
  101. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +1 -7
  102. package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +19 -23
  103. package/out/ui/packages/menu/components/Menu.d.ts +1 -7
  104. package/out/ui/packages/menu/components/Menu.luau +26 -68
  105. package/out/ui/packages/menu/components/Menu.styles.luau +1 -5
  106. package/out/ui/packages/modal/components/Modal.d.ts +1 -2
  107. package/out/ui/packages/modal/components/Modal.luau +37 -79
  108. package/out/ui/packages/motion/index.d.ts +1 -1
  109. package/out/ui/packages/motion/init.luau +0 -1
  110. package/out/ui/packages/motion/unit.d.ts +0 -5
  111. package/out/ui/packages/motion/unit.luau +0 -23
  112. package/out/ui/packages/numberInput/components/NumberInput.d.ts +0 -2
  113. package/out/ui/packages/numberInput/components/NumberInput.luau +3 -16
  114. package/out/ui/packages/numberInput/components/numberValue.d.ts +0 -1
  115. package/out/ui/packages/numberInput/components/numberValue.luau +0 -45
  116. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +16 -12
  117. package/out/ui/packages/pagination/components/Pagination.d.ts +1 -6
  118. package/out/ui/packages/pagination/components/Pagination.luau +38 -62
  119. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +1 -6
  120. package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -36
  121. package/out/ui/packages/pagination/components/pageRange.d.ts +1 -2
  122. package/out/ui/packages/pagination/components/pageRange.luau +8 -91
  123. package/out/ui/packages/pagination/index.d.ts +0 -1
  124. package/out/ui/packages/pagination/init.luau +0 -1
  125. package/out/ui/packages/paper/components/Paper.d.ts +2 -4
  126. package/out/ui/packages/paper/components/Paper.luau +8 -28
  127. package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
  128. package/out/ui/packages/paper/components/Paper.styles.luau +0 -6
  129. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +38 -63
  130. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +7 -21
  131. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +0 -2
  132. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +0 -14
  133. package/out/ui/packages/popup/components/Popup.d.ts +1 -2
  134. package/out/ui/packages/popup/components/Popup.luau +18 -35
  135. package/out/ui/packages/popup/index.d.ts +0 -1
  136. package/out/ui/packages/popup/init.luau +0 -1
  137. package/out/ui/packages/preloader/components/Preloader.luau +16 -9
  138. package/out/ui/packages/progressBar/components/ProgressBar.luau +16 -12
  139. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +0 -1
  140. package/out/ui/packages/radioGroup/components/RadioGroup.luau +18 -16
  141. package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +0 -1
  142. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +1 -4
  143. package/out/ui/packages/rayEditor/components/RayEditor.luau +16 -12
  144. package/out/ui/packages/rectEditor/components/RectEditor.luau +43 -86
  145. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +7 -30
  146. package/out/ui/packages/select/components/Select.d.ts +0 -5
  147. package/out/ui/packages/select/components/Select.luau +77 -61
  148. package/out/ui/packages/select/components/Select.styles.luau +1 -1
  149. package/out/ui/packages/select/components/selectMotion.d.ts +2 -0
  150. package/out/ui/packages/select/components/selectMotion.luau +12 -0
  151. package/out/ui/packages/shadow/components/Shadow.d.ts +1 -2
  152. package/out/ui/packages/shadow/components/Shadow.luau +17 -39
  153. package/out/ui/packages/shadow/components/Shadow.styles.luau +2 -7
  154. package/out/ui/packages/sidebar/components/Sidebar.luau +16 -9
  155. package/out/ui/packages/skeleton/components/Skeleton.luau +30 -22
  156. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +2 -7
  157. package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
  158. package/out/ui/packages/slider/components/Slider.d.ts +0 -3
  159. package/out/ui/packages/slider/components/Slider.luau +19 -47
  160. package/out/ui/packages/slider/components/Slider.styles.d.ts +0 -2
  161. package/out/ui/packages/slider/components/Slider.styles.luau +1 -14
  162. package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
  163. package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
  164. package/out/ui/packages/splitPane/components/SplitPane.luau +17 -13
  165. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  166. package/out/ui/packages/stateMatrix.d.ts +0 -2
  167. package/out/ui/packages/stateMatrix.luau +445 -1632
  168. package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
  169. package/out/ui/packages/stepper/components/Stepper.luau +17 -16
  170. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
  171. package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
  172. package/out/ui/packages/switch/components/Switch.d.ts +0 -2
  173. package/out/ui/packages/switch/components/Switch.luau +16 -21
  174. package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
  175. package/out/ui/packages/switch/components/Switch.styles.luau +1 -6
  176. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  177. package/out/ui/packages/table/components/Table.d.ts +0 -1
  178. package/out/ui/packages/table/components/Table.luau +19 -15
  179. package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
  180. package/out/ui/packages/table/components/Table.styles.luau +6 -10
  181. package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
  182. package/out/ui/packages/tabs/components/Tabs.luau +19 -24
  183. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
  184. package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
  185. package/out/ui/packages/tabs/index.d.ts +0 -1
  186. package/out/ui/packages/tabs/init.luau +0 -1
  187. package/out/ui/packages/toast/components/Toast.d.ts +0 -2
  188. package/out/ui/packages/toast/components/Toast.luau +13 -41
  189. package/out/ui/packages/toast/components/Toast.styles.luau +5 -23
  190. package/out/ui/packages/tooltip/components/Tooltip.luau +16 -9
  191. package/out/ui/packages/treeView/components/TreeView.luau +16 -9
  192. package/out/ui/packages/typography/components/Typography.luau +14 -13
  193. package/out/ui/packages/udimEditor/components/UDimEditor.luau +16 -12
  194. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +16 -12
  195. package/out/ui/packages/virtualList/components/VirtualList.luau +16 -9
  196. package/out/ui/packages/virtualList/index.d.ts +0 -2
  197. package/out/ui/packages/virtualList/init.luau +0 -1
  198. package/package.json +2 -2
  199. package/out/hooks/viewportObserver.d.ts +0 -10
  200. package/out/hooks/viewportObserver.luau +0 -75
  201. package/out/theme/styles/utilities/resolveSx.d.ts +0 -110
  202. package/out/theme/styles/utilities/resolveSx.luau +0 -479
  203. package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
  204. package/out/ui/packages/backdrop/components/Backdrop.luau +0 -51
  205. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
  206. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
  207. package/out/ui/packages/backdrop/index.d.ts +0 -2
  208. package/out/ui/packages/backdrop/init.luau +0 -5
  209. package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
  210. package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
  211. package/out/ui/packages/formText/components/FormHelperText.d.ts +0 -8
  212. package/out/ui/packages/formText/components/FormHelperText.luau +0 -40
  213. package/out/ui/packages/formText/components/FormLabel.d.ts +0 -9
  214. package/out/ui/packages/formText/components/FormLabel.luau +0 -42
  215. package/out/ui/packages/formText/components/FormText.styles.d.ts +0 -5
  216. package/out/ui/packages/formText/components/FormText.styles.luau +0 -33
  217. package/out/ui/packages/formText/index.d.ts +0 -4
  218. package/out/ui/packages/formText/init.luau +0 -6
  219. package/out/ui/packages/host/components/SxHost.d.ts +0 -18
  220. package/out/ui/packages/host/components/SxHost.luau +0 -202
  221. package/out/ui/packages/host/hostPaint.d.ts +0 -11
  222. package/out/ui/packages/host/hostPaint.luau +0 -33
  223. package/out/ui/packages/host/hostRules.d.ts +0 -15
  224. package/out/ui/packages/host/hostRules.luau +0 -92
  225. package/out/ui/packages/host/index.d.ts +0 -3
  226. package/out/ui/packages/host/init.luau +0 -13
  227. package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
  228. package/out/ui/packages/imageList/components/ImageList.luau +0 -93
  229. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
  230. package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
  231. package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
  232. package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
  233. package/out/ui/packages/imageList/index.d.ts +0 -2
  234. package/out/ui/packages/imageList/init.luau +0 -5
  235. package/out/ui/packages/layout/components/Box.d.ts +0 -11
  236. package/out/ui/packages/layout/components/Box.luau +0 -40
  237. package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
  238. package/out/ui/packages/layout/components/Box.styles.luau +0 -34
  239. package/out/ui/packages/layout/components/Container.d.ts +0 -10
  240. package/out/ui/packages/layout/components/Container.luau +0 -45
  241. package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
  242. package/out/ui/packages/layout/components/Container.styles.luau +0 -41
  243. package/out/ui/packages/layout/components/FlexItem.d.ts +0 -12
  244. package/out/ui/packages/layout/components/FlexItem.luau +0 -40
  245. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +0 -8
  246. package/out/ui/packages/layout/components/FlexItem.styles.luau +0 -66
  247. package/out/ui/packages/layout/components/Stack.d.ts +0 -14
  248. package/out/ui/packages/layout/components/Stack.luau +0 -44
  249. package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -10
  250. package/out/ui/packages/layout/components/Stack.styles.luau +0 -101
  251. package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
  252. package/out/ui/packages/layout/components/boxPad.luau +0 -59
  253. package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
  254. package/out/ui/packages/layout/components/containerWidth.luau +0 -17
  255. package/out/ui/packages/layout/components/flexItemMode.d.ts +0 -6
  256. package/out/ui/packages/layout/components/flexItemMode.luau +0 -36
  257. package/out/ui/packages/layout/components/gridProps.d.ts +0 -3
  258. package/out/ui/packages/layout/components/gridProps.luau +0 -20
  259. package/out/ui/packages/layout/components/stackAlign.d.ts +0 -10
  260. package/out/ui/packages/layout/components/stackAlign.luau +0 -43
  261. package/out/ui/packages/link/components/Link.d.ts +0 -11
  262. package/out/ui/packages/link/components/Link.luau +0 -80
  263. package/out/ui/packages/link/components/Link.styles.d.ts +0 -8
  264. package/out/ui/packages/link/components/Link.styles.luau +0 -59
  265. package/out/ui/packages/link/index.d.ts +0 -3
  266. package/out/ui/packages/link/init.luau +0 -5
  267. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +0 -11
  268. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +0 -2
  269. package/out/ui/packages/markdown/components/Markdown.d.ts +0 -6
  270. package/out/ui/packages/markdown/components/Markdown.luau +0 -221
  271. package/out/ui/packages/markdown/components/Markdown.styles.d.ts +0 -2
  272. package/out/ui/packages/markdown/components/Markdown.styles.luau +0 -101
  273. package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +0 -16
  274. package/out/ui/packages/markdown/components/MarkdownEditor.luau +0 -315
  275. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +0 -6
  276. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +0 -132
  277. package/out/ui/packages/markdown/htmlToMarkdown.d.ts +0 -2
  278. package/out/ui/packages/markdown/htmlToMarkdown.luau +0 -350
  279. package/out/ui/packages/markdown/index.d.ts +0 -8
  280. package/out/ui/packages/markdown/init.luau +0 -11
  281. package/out/ui/packages/markdown/parseMarkdown.d.ts +0 -42
  282. package/out/ui/packages/markdown/parseMarkdown.luau +0 -459
  283. package/out/ui/packages/rating/components/Rating.d.ts +0 -11
  284. package/out/ui/packages/rating/components/Rating.luau +0 -97
  285. package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -6
  286. package/out/ui/packages/rating/components/Rating.styles.luau +0 -44
  287. package/out/ui/packages/rating/index.d.ts +0 -2
  288. package/out/ui/packages/rating/init.luau +0 -5
  289. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
  290. package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
  291. package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
  292. package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
  293. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
  294. package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
  295. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -19
  296. package/out/ui/packages/speedDial/components/SpeedDial.luau +0 -97
  297. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +0 -5
  298. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +0 -31
  299. package/out/ui/packages/speedDial/index.d.ts +0 -3
  300. package/out/ui/packages/speedDial/init.luau +0 -5
  301. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
  302. package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
  303. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +0 -21
  304. package/out/ui/packages/toggleButton/components/ToggleButton.luau +0 -129
  305. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -9
  306. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +0 -69
  307. package/out/ui/packages/toggleButton/index.d.ts +0 -2
  308. package/out/ui/packages/toggleButton/init.luau +0 -7
  309. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +0 -7
  310. package/out/ui/packages/virtualList/components/EmptyListHint.luau +0 -43
  311. package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +0 -5
  312. package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +0 -26
@@ -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): {
@@ -3,7 +3,6 @@ export interface TableProps {
3
3
  columns: string[];
4
4
  rows: string[][];
5
5
  selected?: number;
6
- dense?: boolean;
7
6
  onRowActivated?: (index: number) => void;
8
7
  }
9
8
  declare function Table(props: CustomizedProps<Frame, TableProps>): JSX.Element;
@@ -3,35 +3,39 @@ 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 rowSelected = TS.import(script, script.Parent, "rowSelected").rowSelected
6
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
7
6
  local useTableStyles = TS.import(script, script.Parent, "Table.styles").default
8
7
  local function Table(props)
9
8
  local _binding = props
10
9
  local columns = _binding.columns
11
10
  local rows = _binding.rows
12
11
  local selected = _binding.selected
13
- local dense = _binding.dense
14
12
  local onRowActivated = _binding.onRowActivated
15
13
  local className = _binding.className
16
14
  local sx = _binding.sx
17
15
  local id = _binding.id
18
16
  local ref = _binding.ref
19
- local styles = useTableStyles({
20
- dense = dense,
21
- })
17
+ local styles = useTableStyles()
22
18
  local width = if #columns > 0 then 1 / #columns else 1
23
- local _attributes = {
24
- tag = "frame",
25
- }
19
+ local _attributes = {}
26
20
  local _condition = id
27
21
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
28
22
  _condition = "Table"
29
23
  end
30
24
  _attributes.key = _condition
31
- _attributes.hostRef = ref
32
- _attributes.base = styles.root
33
- _attributes.className = className
34
- _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
35
39
  local _attributes_1 = table.clone(styles.corner)
36
40
  setmetatable(_attributes_1, nil)
37
41
  local _exp = React.createElement("uicorner", _attributes_1)
@@ -69,7 +73,7 @@ local function Table(props)
69
73
  _newValue[_k] = _callback(_v, _k - 1, columns)
70
74
  end
71
75
  -- ▲ ReadonlyArray.map ▲
72
- local _exp_4 = React.createElement("frame", _attributes_3, _exp_2, _exp_3, React.createElement(React.Fragment, nil, _newValue))
76
+ local _exp_4 = React.createElement("frame", _attributes_3, _exp_2, _exp_3, _newValue)
73
77
  -- ▼ ReadonlyArray.map ▼
74
78
  local _newValue_1 = table.create(#rows)
75
79
  local _callback_1 = function(cells, rowIndex)
@@ -117,13 +121,13 @@ local function Table(props)
117
121
  _newValue_2[_k] = _callback_2(_v, _k - 1, columns)
118
122
  end
119
123
  -- ▲ ReadonlyArray.map ▲
120
- return React.createElement("textbutton", _attributes_6, _exp_5, _exp_6, React.createElement(React.Fragment, nil, _newValue_2))
124
+ return React.createElement("textbutton", _attributes_6, _exp_5, _exp_6, _newValue_2)
121
125
  end
122
126
  for _k, _v in rows do
123
127
  _newValue_1[_k] = _callback_1(_v, _k - 1, rows)
124
128
  end
125
129
  -- ▲ ReadonlyArray.map ▲
126
- return React.createElement(SxHost, _attributes, _exp, _exp_1, _exp_4, React.createElement(React.Fragment, nil, _newValue_1))
130
+ return React.createElement("frame", _attributes, _exp, _exp_1, _exp_4, _newValue_1)
127
131
  end
128
132
  local default = Table
129
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,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;
@@ -3,40 +3,32 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
5
5
  local componentStyles = _theme.componentStyles
6
- local tabsIsVertical = TS.import(script, script.Parent, "tabsOrientation").tabsIsVertical
7
- local useTabsStyles = componentStyles("Tabs", function(theme, _param)
8
- local orientation = _param.orientation
9
- local centered = _param.centered
10
- local vertical = tabsIsVertical(orientation)
11
- local bar = theme.padding.calc(0.5)
6
+ local useTabsStyles = componentStyles("Tabs", function(theme)
12
7
  return createStyles({
13
8
  root = {
14
- Size = if vertical then UDim2.new(0, theme.spacing.calc(16), 1, 0) else UDim2.new(1, 0, 0, theme.spacing.calc(4)),
9
+ Size = UDim2.new(1, 0, 0, theme.spacing.calc(4)),
15
10
  BackgroundTransparency = 1,
16
11
  BorderSizePixel = 0,
17
12
  CanvasSize = UDim2.fromScale(0, 0),
18
- AutomaticCanvasSize = if vertical then Enum.AutomaticSize.Y else Enum.AutomaticSize.X,
19
- ScrollingDirection = if vertical then Enum.ScrollingDirection.Y else Enum.ScrollingDirection.X,
13
+ AutomaticCanvasSize = Enum.AutomaticSize.X,
14
+ ScrollingDirection = Enum.ScrollingDirection.X,
20
15
  HorizontalScrollBarInset = Enum.ScrollBarInset.Always,
21
- VerticalScrollBarInset = Enum.ScrollBarInset.Always,
22
16
  ScrollBarThickness = theme.padding.calc(0.5),
23
17
  ScrollBarImageColor3 = theme.palette.text.secondary,
24
18
  },
25
19
  list = {
26
- FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
27
- HorizontalAlignment = if centered == true and vertical ~= true then Enum.HorizontalAlignment.Center else Enum.HorizontalAlignment.Left,
20
+ FillDirection = Enum.FillDirection.Horizontal,
28
21
  SortOrder = Enum.SortOrder.LayoutOrder,
29
22
  },
30
23
  tab = {
31
- AutomaticSize = if vertical then Enum.AutomaticSize.Y else Enum.AutomaticSize.X,
32
- Size = if vertical then UDim2.new(1, 0, 0, 0) else UDim2.fromScale(0, 1),
24
+ AutomaticSize = Enum.AutomaticSize.X,
25
+ Size = UDim2.fromScale(0, 1),
33
26
  BackgroundTransparency = 1,
34
27
  BorderSizePixel = 0,
35
28
  AutoButtonColor = false,
36
29
  TextColor3 = theme.palette.text.secondary,
37
30
  Font = theme.typography.fontFamilies.default,
38
31
  TextSize = theme.typography.fontSizes.body,
39
- TextXAlignment = if vertical then Enum.TextXAlignment.Left else Enum.TextXAlignment.Center,
40
32
  },
41
33
  selected = {
42
34
  TextColor3 = theme.palette.text.primary,
@@ -47,22 +39,14 @@ local useTabsStyles = componentStyles("Tabs", function(theme, _param)
47
39
  padding = {
48
40
  PaddingLeft = UDim.new(0, theme.padding.calc(2)),
49
41
  PaddingRight = UDim.new(0, theme.padding.calc(2)),
50
- PaddingTop = UDim.new(0, if vertical then theme.padding.calc(1) else 0),
51
- PaddingBottom = UDim.new(0, if vertical then theme.padding.calc(1) else 0),
52
42
  },
53
- indicator = if vertical then ({
54
- Size = UDim2.new(0, bar, 1, -theme.padding.calc(2)),
55
- Position = UDim2.new(0, 0, 0.5, 0),
56
- AnchorPoint = Vector2.new(0, 0.5),
57
- BackgroundColor3 = theme.palette.primary.main,
58
- BorderSizePixel = 0,
59
- }) else ({
60
- Size = UDim2.new(1, theme.padding.calc(4), 0, bar),
43
+ indicator = {
44
+ Size = UDim2.new(1, theme.padding.calc(4), 0, theme.padding.calc(0.5)),
61
45
  Position = UDim2.fromScale(0.5, 1),
62
46
  AnchorPoint = Vector2.new(0.5, 1),
63
47
  BackgroundColor3 = theme.palette.primary.main,
64
48
  BorderSizePixel = 0,
65
- }),
49
+ },
66
50
  })
67
51
  end)
68
52
  local default = useTabsStyles
@@ -1,3 +1,2 @@
1
1
  export { default as Tabs } from "./components/Tabs";
2
2
  export { TabsProps } from "./components/Tabs";
3
- export { TabsOrientation, tabsIsVertical } from "./components/tabsOrientation";
@@ -2,5 +2,4 @@
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Tabs = TS.import(script, script, "components", "Tabs").default
5
- exports.tabsIsVertical = TS.import(script, script, "components", "tabsOrientation").tabsIsVertical
6
5
  return exports
@@ -6,8 +6,6 @@ export interface ToastProps {
6
6
  duration?: number;
7
7
  variant?: ToastVariants;
8
8
  toggledAt?: number;
9
- action?: string;
10
- onAction?: () => void;
11
9
  }
12
10
  declare function Toast(props: CustomizedProps<Frame, ToastProps>): JSX.Element;
13
11
  export default Toast;