@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
@@ -1,72 +1,37 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
- local Orientations = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Orientations
5
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
6
- local dividerLabel = TS.import(script, script.Parent, "dividerLabel").dividerLabel
7
4
  local useDividerStyles = TS.import(script, script.Parent, "Divider.styles").default
8
5
  local function Divider(props)
9
6
  local _binding = props
10
- local text = _binding.text
11
- local orientation = _binding.orientation
12
7
  local className = _binding.className
13
8
  local sx = _binding.sx
14
9
  local id = _binding.id
15
10
  local ref = _binding.ref
16
11
  local _binding_1 = useDividerStyles(props)
17
12
  local root = _binding_1.root
18
- local shell = _binding_1.shell
19
- local line = _binding_1.line
20
- local caption = _binding_1.caption
21
- local captionPad = _binding_1.captionPad
22
- local label = dividerLabel(text)
23
- if label ~= nil and orientation ~= Orientations.Vertical then
24
- local _attributes = {
25
- tag = "frame",
26
- }
27
- local _condition = id
28
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
29
- _condition = "Divider"
30
- end
31
- _attributes.key = _condition
32
- _attributes.hostRef = ref
33
- _attributes.base = shell
34
- _attributes.className = className
35
- _attributes.sx = sx
36
- local _attributes_1 = {
37
- key = "Line",
38
- }
39
- for _k, _v in line do
40
- _attributes_1[_k] = _v
41
- end
42
- local _exp = React.createElement("frame", _attributes_1)
43
- local _attributes_2 = {
44
- key = "Label",
45
- }
46
- for _k, _v in caption do
47
- _attributes_2[_k] = _v
48
- end
49
- _attributes_2.Text = label
50
- local _attributes_3 = table.clone(captionPad)
51
- setmetatable(_attributes_3, nil)
52
- return React.createElement(SxHost, _attributes, _exp, React.createElement("textlabel", _attributes_2, React.createElement("uipadding", _attributes_3)))
53
- end
54
- local _attributes = {
55
- tag = "frame",
56
- }
13
+ local _attributes = {}
57
14
  local _condition = id
58
15
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
59
16
  _condition = "Divider"
60
17
  end
61
18
  _attributes.key = _condition
62
- _attributes.hostRef = ref
63
- local _object = table.clone(root)
64
- setmetatable(_object, nil)
65
- _object.BorderSizePixel = 0
66
- _attributes.base = _object
67
- _attributes.className = className
68
- _attributes.sx = sx
69
- return React.createElement(SxHost, _attributes)
19
+ _attributes.ref = ref
20
+ for _k, _v in root do
21
+ _attributes[_k] = _v
22
+ end
23
+ _attributes.BorderSizePixel = 0
24
+ if className ~= 0 and className == className and className ~= "" and className then
25
+ for _k, _v in className do
26
+ _attributes[_k] = _v
27
+ end
28
+ end
29
+ if sx ~= 0 and sx == sx and sx ~= "" and sx then
30
+ for _k, _v in sx do
31
+ _attributes[_k] = _v
32
+ end
33
+ end
34
+ return React.createElement("frame", _attributes)
70
35
  end
71
36
  local default = Divider
72
37
  return {
@@ -32,38 +32,6 @@ local useDividerStyles = componentStyles("Divider", function(theme, props)
32
32
  anchorPoint = Vector2.new(0, 0)
33
33
  end
34
34
  return createStyles({
35
- shell = {
36
- Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
37
- BackgroundTransparency = 1,
38
- BorderSizePixel = 0,
39
- ClipsDescendants = true,
40
- },
41
- line = {
42
- Size = UDim2.new(1, 0, 0, weight),
43
- Position = UDim2.new(0, 0, 0.5, 0),
44
- AnchorPoint = Vector2.new(0, 0.5),
45
- BackgroundColor3 = color,
46
- BackgroundTransparency = transparency,
47
- BorderSizePixel = 0,
48
- },
49
- caption = {
50
- AutomaticSize = Enum.AutomaticSize.X,
51
- Size = UDim2.new(0, 0, 1, 0),
52
- AnchorPoint = Vector2.new(0.5, 0.5),
53
- Position = UDim2.new(0.5, 0, 0.5, 0),
54
- BackgroundColor3 = theme.palette.surface.canvas,
55
- BorderSizePixel = 0,
56
- Font = theme.typography.fontFamilies.default,
57
- TextSize = theme.typography.fontSizes.caption,
58
- TextColor3 = theme.palette.text.secondary,
59
- TextTruncate = Enum.TextTruncate.AtEnd,
60
- TextXAlignment = Enum.TextXAlignment.Center,
61
- ZIndex = 2,
62
- },
63
- captionPad = {
64
- PaddingLeft = UDim.new(0, theme.padding.calc(1)),
65
- PaddingRight = UDim.new(0, theme.padding.calc(1)),
66
- },
67
35
  root = {
68
36
  Position = position or UDim2.new(0, 0, 0, 0),
69
37
  Size = UDim2.new(if orientation == Orientations.Horizontal then 1 else 0, if orientation == Orientations.Horizontal then -padding * 2 else weight, if orientation == Orientations.Vertical then 1 else 0, if orientation == Orientations.Vertical then -padding * 2 else weight),
@@ -1,13 +1,11 @@
1
1
  import React from "@rbxts/react";
2
- import { CustomizedProps } from "../../../../theme/index";
3
2
  import { DrawerEdge } from "./drawerPlacement";
4
3
  export interface DrawerProps {
5
4
  host?: Instance;
6
5
  open: boolean;
7
6
  edge?: DrawerEdge;
8
- width?: number;
9
7
  onClose: () => void;
10
8
  children?: React.ReactNode;
11
9
  }
12
- declare function Drawer(props: CustomizedProps<Frame, DrawerProps>): JSX.Element;
10
+ declare function Drawer(props: DrawerProps): JSX.Element | undefined;
13
11
  export default Drawer;
@@ -4,13 +4,9 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local React = _react
5
5
  local useEffect = _react.useEffect
6
6
  local useRef = _react.useRef
7
- local useState = _react.useState
8
7
  local UserInputService = TS.import(script, TS.getModule(script, "@rbxts", "services")).UserInputService
9
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
8
+ local Portal = TS.import(script, script.Parent.Parent.Parent, "popup").Portal
10
9
  local isDismissInput = TS.import(script, script.Parent.Parent.Parent, "modal", "components", "dismissInput").isDismissInput
11
- local _popup = TS.import(script, script.Parent.Parent.Parent, "popup")
12
- local Portal = _popup.Portal
13
- local portalTarget = _popup.portalTarget
14
10
  local drawerAnchor = TS.import(script, script.Parent, "drawerPlacement").drawerAnchor
15
11
  local useDrawerStyles = TS.import(script, script.Parent, "Drawer.styles").default
16
12
  local function Drawer(props)
@@ -21,25 +17,11 @@ local function Drawer(props)
21
17
  if edge == nil then
22
18
  edge = "left"
23
19
  end
24
- local width = _binding.width
25
20
  local onClose = _binding.onClose
26
21
  local children = _binding.children
27
- local className = _binding.className
28
- local sx = _binding.sx
29
- local id = _binding.id
30
- local ref = _binding.ref
31
- local styles = useDrawerStyles({
32
- width = width,
33
- })
22
+ local styles = useDrawerStyles()
34
23
  local close = useRef(onClose)
35
- local anchor = useRef()
36
- local layer, setLayer = useState(function()
37
- return portalTarget(host)
38
- end)
39
24
  close.current = onClose
40
- useEffect(function()
41
- setLayer(portalTarget(host or anchor.current))
42
- end, { host, open })
43
25
  useEffect(function()
44
26
  if not open then
45
27
  return nil
@@ -52,58 +34,42 @@ local function Drawer(props)
52
34
  return function()
53
35
  return connection:Disconnect()
54
36
  end
55
- end, { open, layer })
56
- local placement = drawerAnchor(edge)
57
- local panelStyle = styles.panel
58
- local _exp = React.createElement("frame", {
59
- key = "DrawerAnchor",
60
- ref = anchor,
61
- Size = UDim2.fromOffset(0, 0),
62
- BackgroundTransparency = 1,
63
- BorderSizePixel = 0,
64
- })
65
- local _condition = open and layer ~= nil
66
- if _condition then
67
- local _attributes = {
68
- key = "Drawer",
69
- }
70
- for _k, _v in styles.root do
71
- _attributes[_k] = _v
72
- end
73
- local _attributes_1 = {
74
- key = "Backdrop",
75
- }
76
- for _k, _v in styles.backdrop do
77
- _attributes_1[_k] = _v
78
- end
79
- _attributes_1.Event = {
80
- Activated = function()
81
- return close.current()
82
- end,
83
- }
84
- local _exp_1 = React.createElement("textbutton", _attributes_1)
85
- local _attributes_2 = {
86
- tag = "frame",
87
- }
88
- local _condition_1 = id
89
- if not (_condition_1 ~= 0 and _condition_1 == _condition_1 and _condition_1 ~= "" and _condition_1) then
90
- _condition_1 = "Panel"
91
- end
92
- _attributes_2.key = _condition_1
93
- _attributes_2.hostRef = ref
94
- _attributes_2.base = panelStyle
95
- _attributes_2.className = className
96
- _attributes_2.sx = sx
97
- _attributes_2.AnchorPoint = Vector2.new(placement, 0)
98
- _attributes_2.Position = UDim2.fromScale(placement, 0)
99
- _attributes_2.ZIndex = panelStyle.ZIndex
100
- local _attributes_3 = table.clone(styles.padding)
101
- setmetatable(_attributes_3, nil)
102
- _condition = (React.createElement(Portal, {
103
- host = layer,
104
- }, React.createElement("frame", _attributes, _exp_1, React.createElement(SxHost, _attributes_2, React.createElement("uipadding", _attributes_3), children))))
37
+ end, { open })
38
+ if not open then
39
+ return nil
40
+ end
41
+ local anchor = drawerAnchor(edge)
42
+ local _attributes = {
43
+ key = "Drawer",
44
+ }
45
+ for _k, _v in styles.root do
46
+ _attributes[_k] = _v
47
+ end
48
+ local _attributes_1 = {
49
+ key = "Backdrop",
50
+ }
51
+ for _k, _v in styles.backdrop do
52
+ _attributes_1[_k] = _v
53
+ end
54
+ _attributes_1.Event = {
55
+ Activated = function()
56
+ return close.current()
57
+ end,
58
+ }
59
+ local _exp = React.createElement("textbutton", _attributes_1)
60
+ local _attributes_2 = {
61
+ key = "Panel",
62
+ }
63
+ for _k, _v in styles.panel do
64
+ _attributes_2[_k] = _v
105
65
  end
106
- return React.createElement(React.Fragment, nil, _exp, _condition)
66
+ _attributes_2.AnchorPoint = Vector2.new(anchor, 0)
67
+ _attributes_2.Position = UDim2.fromScale(anchor, 0)
68
+ local _attributes_3 = table.clone(styles.padding)
69
+ setmetatable(_attributes_3, nil)
70
+ return React.createElement(Portal, {
71
+ host = host,
72
+ }, React.createElement("frame", _attributes, _exp, React.createElement("frame", _attributes_2, React.createElement("uipadding", _attributes_3), children)))
107
73
  end
108
74
  local default = Drawer
109
75
  return {
@@ -1,4 +1,2 @@
1
- declare const useDrawerStyles: (props: {
2
- width?: number;
3
- }) => import("../../../../theme/index").ClassNameMap<string>;
1
+ declare const useDrawerStyles: () => import("../../../../theme/index").ClassNameMap<string>;
4
2
  export default useDrawerStyles;
@@ -3,8 +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 useDrawerStyles = componentStyles("Drawer", function(theme, _param)
7
- local width = _param.width
6
+ local useDrawerStyles = componentStyles("Drawer", function(theme)
8
7
  return createStyles({
9
8
  root = {
10
9
  Size = UDim2.fromScale(1, 1),
@@ -22,7 +21,7 @@ local useDrawerStyles = componentStyles("Drawer", function(theme, _param)
22
21
  ZIndex = 30000,
23
22
  },
24
23
  panel = {
25
- Size = UDim2.new(0, if width ~= nil and width > 0 then width else theme.spacing.calc(20), 1, 0),
24
+ Size = UDim2.new(0, theme.spacing.calc(20), 1, 0),
26
25
  BackgroundColor3 = theme.palette.surface.elevated,
27
26
  BorderSizePixel = 0,
28
27
  ZIndex = 30001,
@@ -1,12 +1,9 @@
1
1
  import { CustomizedProps } from "../../../../theme/index";
2
2
  import { Icons } from "../../../enums/index";
3
3
  import { FabSize } from "./fabSize";
4
- import { FabColor } from "./Fab.styles";
5
4
  export interface FabProps {
6
5
  icon: Icons;
7
- label?: string;
8
6
  size?: FabSize;
9
- color?: FabColor;
10
7
  disabled?: boolean;
11
8
  loading?: boolean;
12
9
  reducedMotion?: boolean;
@@ -7,24 +7,16 @@ local useState = _react.useState
7
7
  local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
8
8
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
9
9
  local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
10
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
11
10
  local Shadow = TS.import(script, script.Parent.Parent.Parent, "shadow").Shadow
12
- local _fabSize = TS.import(script, script.Parent, "fabSize")
13
- local fabExtended = _fabSize.fabExtended
14
- local fabIconPixels = _fabSize.fabIconPixels
11
+ local fabIconPixels = TS.import(script, script.Parent, "fabSize").fabIconPixels
15
12
  local useFabStyles = TS.import(script, script.Parent, "Fab.styles").default
16
13
  local function Fab(props)
17
14
  local _binding = props
18
15
  local icon = _binding.icon
19
- local label = _binding.label
20
16
  local size = _binding.size
21
17
  if size == nil then
22
18
  size = "medium"
23
19
  end
24
- local color = _binding.color
25
- if color == nil then
26
- color = "primary"
27
- end
28
20
  local disabled = _binding.disabled
29
21
  local loading = _binding.loading
30
22
  if loading == nil then
@@ -37,12 +29,9 @@ local function Fab(props)
37
29
  local id = _binding.id
38
30
  local ref = _binding.ref
39
31
  local active = canActivate(disabled, loading)
40
- local extended = fabExtended(label)
41
32
  local styles = useFabStyles({
42
33
  size = size,
43
- color = color,
44
34
  disabled = not active,
45
- extended = extended,
46
35
  })
47
36
  local _binding_1 = useTheme()
48
37
  local theme = _binding_1.theme
@@ -56,52 +45,26 @@ local function Fab(props)
56
45
  setHovering(false)
57
46
  setFocused(false)
58
47
  end, { active })
59
- local _result
60
- if loading then
61
- _result = (React.createElement(CircularProgress, {
62
- size = iconPx,
63
- thickness = 2,
64
- color = theme.palette.primary.on,
65
- reducedMotion = reducedMotion,
66
- className = if extended then {
67
- LayoutOrder = 1,
68
- } else {
69
- AnchorPoint = Vector2.new(0.5, 0.5),
70
- Position = UDim2.fromScale(0.5, 0.5),
71
- },
72
- }))
73
- else
74
- local _attributes = {
75
- key = "Icon",
76
- }
77
- for _k, _v in styles.icon do
78
- _attributes[_k] = _v
79
- end
80
- _attributes.Size = UDim2.fromOffset(iconPx, iconPx)
81
- _attributes.AnchorPoint = if extended then Vector2.new(0, 0) else Vector2.new(0.5, 0.5)
82
- _attributes.Position = if extended then UDim2.fromScale(0, 0) else UDim2.fromScale(0.5, 0.5)
83
- _attributes.Image = tostring(icon)
84
- _result = (React.createElement("imagelabel", _attributes))
85
- end
86
- local iconEl = _result
87
- local _attributes = {
88
- tag = "textbutton",
89
- }
48
+ local _attributes = {}
90
49
  local _condition = id
91
50
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
92
51
  _condition = "Fab"
93
52
  end
94
53
  _attributes.key = _condition
95
- _attributes.hostRef = ref
96
- _attributes.base = styles.root
97
- _attributes.className = className
98
- _attributes.sx = sx
99
- _attributes.state = {
100
- disabled = disabled,
101
- loading = loading,
102
- hover = hovering,
103
- focused = focused,
104
- }
54
+ _attributes.ref = ref
55
+ for _k, _v in styles.root do
56
+ _attributes[_k] = _v
57
+ end
58
+ if className then
59
+ for _k, _v in className do
60
+ _attributes[_k] = _v
61
+ end
62
+ end
63
+ if sx then
64
+ for _k, _v in sx do
65
+ _attributes[_k] = _v
66
+ end
67
+ end
105
68
  _attributes.Active = active
106
69
  _attributes.Selectable = active
107
70
  _attributes.BackgroundTransparency = if not active then 0.5 elseif hovering or focused then 0.15 else 0
@@ -132,37 +95,32 @@ local function Fab(props)
132
95
  setmetatable(_attributes_1, nil)
133
96
  local _exp = React.createElement("uicorner", _attributes_1)
134
97
  local _exp_1 = React.createElement(Shadow)
135
- local _result_1
136
- if extended then
98
+ local _result
99
+ if loading then
100
+ _result = (React.createElement(CircularProgress, {
101
+ size = iconPx,
102
+ thickness = 2,
103
+ color = theme.palette.primary.on,
104
+ reducedMotion = reducedMotion,
105
+ className = {
106
+ AnchorPoint = Vector2.new(0.5, 0.5),
107
+ Position = UDim2.fromScale(0.5, 0.5),
108
+ },
109
+ }))
110
+ else
137
111
  local _attributes_2 = {
138
- key = "Content",
112
+ key = "Icon",
139
113
  }
140
- for _k, _v in styles.content do
114
+ for _k, _v in styles.icon do
141
115
  _attributes_2[_k] = _v
142
116
  end
143
- local _attributes_3 = table.clone(styles.padding)
144
- setmetatable(_attributes_3, nil)
145
- local _exp_2 = React.createElement("uipadding", _attributes_3)
146
- local _attributes_4 = table.clone(styles.row)
147
- setmetatable(_attributes_4, nil)
148
- local _exp_3 = React.createElement("uilistlayout", _attributes_4)
149
- local _exp_4 = iconEl
150
- local _condition_1 = not loading
151
- if _condition_1 then
152
- local _attributes_5 = {
153
- key = "Label",
154
- }
155
- for _k, _v in styles.label do
156
- _attributes_5[_k] = _v
157
- end
158
- _attributes_5.Text = label
159
- _condition_1 = React.createElement("textlabel", _attributes_5)
160
- end
161
- _result_1 = (React.createElement("frame", _attributes_2, _exp_2, _exp_3, _exp_4, _condition_1))
162
- else
163
- _result_1 = iconEl
117
+ _attributes_2.Size = UDim2.fromOffset(iconPx, iconPx)
118
+ _attributes_2.AnchorPoint = Vector2.new(0.5, 0.5)
119
+ _attributes_2.Position = UDim2.fromScale(0.5, 0.5)
120
+ _attributes_2.Image = tostring(icon)
121
+ _result = (React.createElement("imagelabel", _attributes_2))
164
122
  end
165
- return React.createElement(SxHost, _attributes, _exp, _exp_1, _result_1)
123
+ return React.createElement("textbutton", _attributes, _exp, _exp_1, _result)
166
124
  end
167
125
  local default = Fab
168
126
  return {
@@ -1,10 +1,7 @@
1
1
  import { FabSize } from "./fabSize";
2
- export type FabColor = "primary" | "accent";
3
2
  export interface FabStyleProps {
4
3
  size?: FabSize;
5
- color?: FabColor;
6
4
  disabled?: boolean;
7
- extended?: boolean;
8
5
  }
9
6
  declare const useFabStyles: (props: FabStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
10
7
  export default useFabStyles;
@@ -9,19 +9,12 @@ local useFabStyles = componentStyles("Fab", function(theme, _param)
9
9
  if size == nil then
10
10
  size = "medium"
11
11
  end
12
- local color = _param.color
13
- if color == nil then
14
- color = "primary"
15
- end
16
12
  local disabled = _param.disabled
17
- local extended = _param.extended
18
13
  local diameter = fabPixels(size)
19
- local tone = if color == "accent" then theme.palette.accent else theme.palette.primary
20
14
  return createStyles({
21
15
  root = {
22
- Size = if extended == true then UDim2.new(0, 0, 0, diameter) else UDim2.fromOffset(diameter, diameter),
23
- AutomaticSize = if extended == true then Enum.AutomaticSize.X else Enum.AutomaticSize.None,
24
- BackgroundColor3 = tone.main,
16
+ Size = UDim2.fromOffset(diameter, diameter),
17
+ BackgroundColor3 = theme.palette.primary.main,
25
18
  BackgroundTransparency = if disabled then 0.5 else 0,
26
19
  BorderSizePixel = 0,
27
20
  AutoButtonColor = false,
@@ -31,42 +24,13 @@ local useFabStyles = componentStyles("Fab", function(theme, _param)
31
24
  corner = {
32
25
  CornerRadius = UDim.new(1, 0),
33
26
  },
34
- content = {
35
- Size = UDim2.new(0, 0, 0, diameter),
36
- AutomaticSize = Enum.AutomaticSize.X,
37
- BackgroundTransparency = 1,
38
- BorderSizePixel = 0,
39
- },
40
- padding = {
41
- PaddingLeft = UDim.new(0, theme.padding.calc(2)),
42
- PaddingRight = UDim.new(0, theme.padding.calc(2.5)),
43
- },
44
- row = {
45
- FillDirection = Enum.FillDirection.Horizontal,
46
- VerticalAlignment = Enum.VerticalAlignment.Center,
47
- HorizontalAlignment = Enum.HorizontalAlignment.Center,
48
- SortOrder = Enum.SortOrder.LayoutOrder,
49
- Padding = UDim.new(0, theme.padding.calc(1)),
50
- },
51
27
  icon = {
52
28
  Size = UDim2.fromScale(1, 1),
53
29
  BackgroundTransparency = 1,
54
30
  BorderSizePixel = 0,
55
31
  ScaleType = Enum.ScaleType.Fit,
56
- ImageColor3 = tone.on,
32
+ ImageColor3 = theme.palette.primary.on,
57
33
  ImageTransparency = if disabled then 0.5 else 0,
58
- LayoutOrder = 1,
59
- },
60
- label = {
61
- AutomaticSize = Enum.AutomaticSize.XY,
62
- Size = UDim2.fromScale(0, 0),
63
- BackgroundTransparency = 1,
64
- BorderSizePixel = 0,
65
- Font = theme.typography.fontFamilies.default,
66
- TextSize = theme.typography.fontSizes.body,
67
- TextColor3 = tone.on,
68
- TextTransparency = if disabled then 0.5 else 0,
69
- LayoutOrder = 2,
70
34
  },
71
35
  })
72
36
  end)
@@ -1,4 +1,3 @@
1
1
  export type FabSize = "small" | "medium" | "large";
2
2
  export declare function fabPixels(size?: FabSize): 40 | 64 | 56;
3
3
  export declare function fabIconPixels(size?: FabSize): 18 | 24 | 28;
4
- export declare function fabExtended(label?: string): boolean;
@@ -23,11 +23,7 @@ local function fabIconPixels(size)
23
23
  end
24
24
  return 24
25
25
  end
26
- local function fabExtended(label)
27
- return label ~= nil and label ~= ""
28
- end
29
26
  return {
30
27
  fabPixels = fabPixels,
31
28
  fabIconPixels = fabIconPixels,
32
- fabExtended = fabExtended,
33
29
  }
@@ -1,3 +1,3 @@
1
1
  export { default as Fab } from "./components/Fab";
2
2
  export { FabProps } from "./components/Fab";
3
- export { FabSize, fabPixels, fabIconPixels, fabExtended } from "./components/fabSize";
3
+ export { FabSize, fabPixels, fabIconPixels } from "./components/fabSize";
@@ -5,5 +5,4 @@ exports.Fab = TS.import(script, script, "components", "Fab").default
5
5
  local _fabSize = TS.import(script, script, "components", "fabSize")
6
6
  exports.fabPixels = _fabSize.fabPixels
7
7
  exports.fabIconPixels = _fabSize.fabIconPixels
8
- exports.fabExtended = _fabSize.fabExtended
9
8
  return exports
@@ -3,7 +3,6 @@ local TS = _G[script]
3
3
  local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local React = _react
5
5
  local useState = _react.useState
6
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
7
6
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
8
7
  local Input = TS.import(script, script.Parent.Parent.Parent, "input").Input
9
8
  local Select = TS.import(script, script.Parent.Parent.Parent, "select").Select
@@ -74,21 +73,26 @@ local function FontEditor(props)
74
73
  local custom, setCustom = useState(value.Family)
75
74
  local weights = enumOptions(Enum.FontWeight:GetEnumItems())
76
75
  local stylesList = enumOptions(Enum.FontStyle:GetEnumItems())
77
- local _attributes = {
78
- tag = "frame",
79
- }
76
+ local _attributes = {}
80
77
  local _condition = id
81
78
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
82
79
  _condition = "FontEditor"
83
80
  end
84
81
  _attributes.key = _condition
85
- _attributes.hostRef = ref
86
- _attributes.base = styles.root
87
- _attributes.className = className
88
- _attributes.sx = sx
89
- _attributes.state = {
90
- disabled = disabled,
91
- }
82
+ _attributes.ref = ref
83
+ for _k, _v in styles.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
92
96
  local _attributes_1 = table.clone(styles.column)
93
97
  setmetatable(_attributes_1, nil)
94
98
  local _exp = React.createElement("uilistlayout", _attributes_1)
@@ -211,7 +215,7 @@ local function FontEditor(props)
211
215
  local _exp_7 = React.createElement("uicorner", _attributes_10)
212
216
  local _attributes_11 = table.clone(styles.stroke)
213
217
  setmetatable(_attributes_11, nil)
214
- return React.createElement(SxHost, _attributes, _exp, _exp_1, _exp_2, _exp_5, React.createElement("textlabel", _attributes_8, _exp_6, _exp_7, React.createElement("uistroke", _attributes_11)))
218
+ return React.createElement("frame", _attributes, _exp, _exp_1, _exp_2, _exp_5, React.createElement("textlabel", _attributes_8, _exp_6, _exp_7, React.createElement("uistroke", _attributes_11)))
215
219
  end
216
220
  local default = FontEditor
217
221
  return {