@rbxts/uiblox 0.2.0-alpha.35 → 0.2.0-alpha.4

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 (322) 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/autocomplete/components/Autocomplete.luau +0 -8
  31. package/out/ui/packages/avatar/components/Avatar.d.ts +0 -2
  32. package/out/ui/packages/avatar/components/Avatar.luau +26 -27
  33. package/out/ui/packages/avatar/components/Avatar.styles.d.ts +0 -2
  34. package/out/ui/packages/avatar/components/Avatar.styles.luau +1 -5
  35. package/out/ui/packages/badge/components/Badge.d.ts +0 -3
  36. package/out/ui/packages/badge/components/Badge.luau +24 -32
  37. package/out/ui/packages/badge/components/Badge.styles.d.ts +1 -5
  38. package/out/ui/packages/badge/components/Badge.styles.luau +8 -20
  39. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +0 -1
  40. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +18 -20
  41. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +1 -3
  42. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +2 -6
  43. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +0 -1
  44. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +40 -67
  45. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +0 -9
  46. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +0 -68
  47. package/out/ui/packages/breadcrumbs/index.d.ts +0 -1
  48. package/out/ui/packages/breadcrumbs/init.luau +0 -3
  49. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +16 -12
  50. package/out/ui/packages/button/components/Button.luau +18 -20
  51. package/out/ui/packages/card/components/Card.d.ts +1 -3
  52. package/out/ui/packages/card/components/Card.luau +0 -10
  53. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +53 -75
  54. package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +9 -26
  55. package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
  56. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
  57. package/out/ui/packages/chip/components/Chip.d.ts +1 -6
  58. package/out/ui/packages/chip/components/Chip.luau +17 -61
  59. package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -6
  60. package/out/ui/packages/chip/components/Chip.styles.luau +9 -54
  61. package/out/ui/packages/circularProgress/components/CircularProgress.luau +18 -29
  62. package/out/ui/packages/colorPicker/components/ColorPicker.luau +20 -16
  63. package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +20 -34
  64. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +35 -34
  65. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +62 -65
  66. package/out/ui/packages/dialog/components/Dialog.d.ts +2 -3
  67. package/out/ui/packages/dialog/components/Dialog.luau +21 -41
  68. package/out/ui/packages/divider/components/Divider.d.ts +0 -1
  69. package/out/ui/packages/divider/components/Divider.luau +17 -52
  70. package/out/ui/packages/divider/components/Divider.styles.luau +0 -32
  71. package/out/ui/packages/drawer/components/Drawer.d.ts +1 -3
  72. package/out/ui/packages/drawer/components/Drawer.luau +37 -71
  73. package/out/ui/packages/drawer/components/Drawer.styles.d.ts +1 -3
  74. package/out/ui/packages/drawer/components/Drawer.styles.luau +2 -3
  75. package/out/ui/packages/fab/components/Fab.d.ts +0 -3
  76. package/out/ui/packages/fab/components/Fab.luau +37 -79
  77. package/out/ui/packages/fab/components/Fab.styles.d.ts +0 -3
  78. package/out/ui/packages/fab/components/Fab.styles.luau +3 -39
  79. package/out/ui/packages/fab/components/fabSize.d.ts +0 -1
  80. package/out/ui/packages/fab/components/fabSize.luau +0 -4
  81. package/out/ui/packages/fab/index.d.ts +1 -1
  82. package/out/ui/packages/fab/init.luau +0 -1
  83. package/out/ui/packages/fontEditor/components/FontEditor.luau +16 -12
  84. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +42 -56
  85. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +4 -37
  86. package/out/ui/packages/icon/components/Icon.luau +16 -9
  87. package/out/ui/packages/iconButton/components/IconButton.luau +16 -16
  88. package/out/ui/packages/index.d.ts +0 -7
  89. package/out/ui/packages/init.luau +0 -21
  90. package/out/ui/packages/input/components/Input.d.ts +0 -1
  91. package/out/ui/packages/input/components/Input.luau +18 -21
  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/link/components/Link.luau +16 -13
  98. package/out/ui/packages/listItem/components/ListItem.d.ts +1 -4
  99. package/out/ui/packages/listItem/components/ListItem.luau +4 -44
  100. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
  101. package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -16
  102. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +1 -5
  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 +9 -31
  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/rating/components/Rating.d.ts +1 -3
  144. package/out/ui/packages/rating/components/Rating.luau +17 -19
  145. package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -2
  146. package/out/ui/packages/rating/components/Rating.styles.luau +2 -7
  147. package/out/ui/packages/rayEditor/components/RayEditor.luau +16 -12
  148. package/out/ui/packages/rectEditor/components/RectEditor.luau +43 -86
  149. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +7 -30
  150. package/out/ui/packages/scroll/index.d.ts +0 -2
  151. package/out/ui/packages/scroll/init.luau +0 -1
  152. package/out/ui/packages/select/components/Select.d.ts +0 -5
  153. package/out/ui/packages/select/components/Select.luau +77 -61
  154. package/out/ui/packages/select/components/Select.styles.luau +1 -1
  155. package/out/ui/packages/select/components/selectMotion.d.ts +2 -0
  156. package/out/ui/packages/select/components/selectMotion.luau +12 -0
  157. package/out/ui/packages/shadow/components/Shadow.d.ts +1 -2
  158. package/out/ui/packages/shadow/components/Shadow.luau +17 -39
  159. package/out/ui/packages/shadow/components/Shadow.styles.luau +2 -7
  160. package/out/ui/packages/sidebar/components/Sidebar.luau +16 -9
  161. package/out/ui/packages/skeleton/components/Skeleton.luau +28 -19
  162. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +3 -7
  163. package/out/ui/packages/slider/components/Slider.d.ts +0 -3
  164. package/out/ui/packages/slider/components/Slider.luau +19 -47
  165. package/out/ui/packages/slider/components/Slider.styles.d.ts +0 -2
  166. package/out/ui/packages/slider/components/Slider.styles.luau +1 -14
  167. package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
  168. package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
  169. package/out/ui/packages/splitPane/components/SplitPane.luau +17 -13
  170. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  171. package/out/ui/packages/stateMatrix.d.ts +0 -2
  172. package/out/ui/packages/stateMatrix.luau +929 -843
  173. package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
  174. package/out/ui/packages/stepper/components/Stepper.luau +17 -16
  175. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
  176. package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
  177. package/out/ui/packages/switch/components/Switch.d.ts +0 -2
  178. package/out/ui/packages/switch/components/Switch.luau +16 -21
  179. package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
  180. package/out/ui/packages/switch/components/Switch.styles.luau +1 -6
  181. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  182. package/out/ui/packages/table/components/Table.d.ts +2 -16
  183. package/out/ui/packages/table/components/Table.luau +53 -136
  184. package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
  185. package/out/ui/packages/table/components/Table.styles.luau +6 -10
  186. package/out/ui/packages/table/index.d.ts +1 -2
  187. package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
  188. package/out/ui/packages/tabs/components/Tabs.luau +19 -24
  189. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
  190. package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
  191. package/out/ui/packages/tabs/index.d.ts +0 -1
  192. package/out/ui/packages/tabs/init.luau +0 -1
  193. package/out/ui/packages/toast/components/Toast.d.ts +0 -2
  194. package/out/ui/packages/toast/components/Toast.luau +13 -41
  195. package/out/ui/packages/toast/components/Toast.styles.luau +5 -23
  196. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +1 -5
  197. package/out/ui/packages/toggleButton/components/ToggleButton.luau +33 -36
  198. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -4
  199. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +5 -16
  200. package/out/ui/packages/tooltip/components/Tooltip.luau +16 -9
  201. package/out/ui/packages/treeView/components/TreeView.luau +16 -9
  202. package/out/ui/packages/typography/components/Typography.luau +14 -13
  203. package/out/ui/packages/udimEditor/components/UDimEditor.luau +16 -12
  204. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +16 -12
  205. package/out/ui/packages/virtualList/components/VirtualList.luau +16 -9
  206. package/out/ui/packages/virtualList/index.d.ts +0 -2
  207. package/out/ui/packages/virtualList/init.luau +0 -1
  208. package/package.json +2 -2
  209. package/out/hooks/viewportObserver.d.ts +0 -10
  210. package/out/hooks/viewportObserver.luau +0 -75
  211. package/out/theme/styles/utilities/resolveSx.d.ts +0 -120
  212. package/out/theme/styles/utilities/resolveSx.luau +0 -524
  213. package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
  214. package/out/ui/packages/backdrop/components/Backdrop.luau +0 -51
  215. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
  216. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
  217. package/out/ui/packages/backdrop/index.d.ts +0 -2
  218. package/out/ui/packages/backdrop/init.luau +0 -5
  219. package/out/ui/packages/dateRange/components/DateRangePicker.d.ts +0 -11
  220. package/out/ui/packages/dateRange/components/DateRangePicker.luau +0 -253
  221. package/out/ui/packages/dateRange/dateRangeValue.d.ts +0 -18
  222. package/out/ui/packages/dateRange/dateRangeValue.luau +0 -121
  223. package/out/ui/packages/dateRange/index.d.ts +0 -3
  224. package/out/ui/packages/dateRange/init.luau +0 -16
  225. package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
  226. package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
  227. package/out/ui/packages/formText/components/FormHelperText.d.ts +0 -8
  228. package/out/ui/packages/formText/components/FormHelperText.luau +0 -40
  229. package/out/ui/packages/formText/components/FormLabel.d.ts +0 -9
  230. package/out/ui/packages/formText/components/FormLabel.luau +0 -42
  231. package/out/ui/packages/formText/components/FormText.styles.d.ts +0 -5
  232. package/out/ui/packages/formText/components/FormText.styles.luau +0 -33
  233. package/out/ui/packages/formText/index.d.ts +0 -4
  234. package/out/ui/packages/formText/init.luau +0 -6
  235. package/out/ui/packages/host/components/SxHost.d.ts +0 -18
  236. package/out/ui/packages/host/components/SxHost.luau +0 -210
  237. package/out/ui/packages/host/hostPaint.d.ts +0 -12
  238. package/out/ui/packages/host/hostPaint.luau +0 -34
  239. package/out/ui/packages/host/hostRules.d.ts +0 -15
  240. package/out/ui/packages/host/hostRules.luau +0 -92
  241. package/out/ui/packages/host/index.d.ts +0 -3
  242. package/out/ui/packages/host/init.luau +0 -13
  243. package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
  244. package/out/ui/packages/imageList/components/ImageList.luau +0 -93
  245. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
  246. package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
  247. package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
  248. package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
  249. package/out/ui/packages/imageList/index.d.ts +0 -2
  250. package/out/ui/packages/imageList/init.luau +0 -5
  251. package/out/ui/packages/layout/components/Box.d.ts +0 -11
  252. package/out/ui/packages/layout/components/Box.luau +0 -40
  253. package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
  254. package/out/ui/packages/layout/components/Box.styles.luau +0 -34
  255. package/out/ui/packages/layout/components/Container.d.ts +0 -10
  256. package/out/ui/packages/layout/components/Container.luau +0 -45
  257. package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
  258. package/out/ui/packages/layout/components/Container.styles.luau +0 -41
  259. package/out/ui/packages/layout/components/FlexItem.d.ts +0 -12
  260. package/out/ui/packages/layout/components/FlexItem.luau +0 -40
  261. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +0 -8
  262. package/out/ui/packages/layout/components/FlexItem.styles.luau +0 -66
  263. package/out/ui/packages/layout/components/Stack.d.ts +0 -14
  264. package/out/ui/packages/layout/components/Stack.luau +0 -44
  265. package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -10
  266. package/out/ui/packages/layout/components/Stack.styles.luau +0 -101
  267. package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
  268. package/out/ui/packages/layout/components/boxPad.luau +0 -59
  269. package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
  270. package/out/ui/packages/layout/components/containerWidth.luau +0 -17
  271. package/out/ui/packages/layout/components/flexItemMode.d.ts +0 -6
  272. package/out/ui/packages/layout/components/flexItemMode.luau +0 -36
  273. package/out/ui/packages/layout/components/gridProps.d.ts +0 -3
  274. package/out/ui/packages/layout/components/gridProps.luau +0 -20
  275. package/out/ui/packages/layout/components/stackAlign.d.ts +0 -10
  276. package/out/ui/packages/layout/components/stackAlign.luau +0 -43
  277. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +0 -11
  278. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +0 -2
  279. package/out/ui/packages/markdown/components/Markdown.d.ts +0 -6
  280. package/out/ui/packages/markdown/components/Markdown.luau +0 -221
  281. package/out/ui/packages/markdown/components/Markdown.styles.d.ts +0 -2
  282. package/out/ui/packages/markdown/components/Markdown.styles.luau +0 -101
  283. package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +0 -22
  284. package/out/ui/packages/markdown/components/MarkdownEditor.luau +0 -433
  285. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +0 -6
  286. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +0 -161
  287. package/out/ui/packages/markdown/components/markdownEditorHeight.d.ts +0 -1
  288. package/out/ui/packages/markdown/components/markdownEditorHeight.luau +0 -13
  289. package/out/ui/packages/markdown/htmlToMarkdown.d.ts +0 -2
  290. package/out/ui/packages/markdown/htmlToMarkdown.luau +0 -350
  291. package/out/ui/packages/markdown/index.d.ts +0 -8
  292. package/out/ui/packages/markdown/init.luau +0 -11
  293. package/out/ui/packages/markdown/parseMarkdown.d.ts +0 -42
  294. package/out/ui/packages/markdown/parseMarkdown.luau +0 -459
  295. package/out/ui/packages/scroll/components/ScrollView.d.ts +0 -7
  296. package/out/ui/packages/scroll/components/ScrollView.luau +0 -42
  297. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
  298. package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
  299. package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
  300. package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
  301. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
  302. package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
  303. package/out/ui/packages/sparkline/components/Sparkline.d.ts +0 -9
  304. package/out/ui/packages/sparkline/components/Sparkline.luau +0 -66
  305. package/out/ui/packages/sparkline/index.d.ts +0 -3
  306. package/out/ui/packages/sparkline/init.luau +0 -6
  307. package/out/ui/packages/sparkline/sparklineLayout.d.ts +0 -8
  308. package/out/ui/packages/sparkline/sparklineLayout.luau +0 -75
  309. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -19
  310. package/out/ui/packages/speedDial/components/SpeedDial.luau +0 -97
  311. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +0 -5
  312. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +0 -31
  313. package/out/ui/packages/speedDial/index.d.ts +0 -3
  314. package/out/ui/packages/speedDial/init.luau +0 -5
  315. package/out/ui/packages/table/components/tableColumns.d.ts +0 -26
  316. package/out/ui/packages/table/components/tableColumns.luau +0 -92
  317. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
  318. package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
  319. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +0 -7
  320. package/out/ui/packages/virtualList/components/EmptyListHint.luau +0 -43
  321. package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +0 -5
  322. package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +0 -26
@@ -1,210 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
- local React = _react
5
- local useEffect = _react.useEffect
6
- local useRef = _react.useRef
7
- local useState = _react.useState
8
- local observeViewport = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "hooks", "viewportObserver").observeViewport
9
- local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
10
- local _hostRules = TS.import(script, script.Parent.Parent, "hostRules")
11
- local elementProps = _hostRules.elementProps
12
- local elementType = _hostRules.elementType
13
- local hostKind = _hostRules.hostKind
14
- local hostRest = _hostRules.hostRest
15
- local layoutGapPatch = _hostRules.layoutGapPatch
16
- local sxUsesBreakpoints = _hostRules.sxUsesBreakpoints
17
- local paintHostStyle = TS.import(script, script.Parent.Parent, "hostPaint").paintHostStyle
18
- local function setRef(hostRef, instance)
19
- if hostRef == nil then
20
- return nil
21
- end
22
- local _hostRef = hostRef
23
- if type(_hostRef) == "function" then
24
- hostRef(instance)
25
- return nil
26
- end
27
- hostRef.current = instance
28
- end
29
- local function SxHost(props)
30
- local _condition = props.tag
31
- if _condition == nil then
32
- _condition = "frame"
33
- end
34
- local tag = _condition
35
- local sx = props.sx
36
- local _binding = useTheme()
37
- local theme = _binding.theme
38
- local bound = useRef()
39
- local width, setWidth = useState(nil)
40
- local hover, setHover = useState(false)
41
- local pressed, setPressed = useState(false)
42
- local focused, setFocused = useState(false)
43
- useEffect(function()
44
- local host = bound.current
45
- if host == nil or not sxUsesBreakpoints(sx) then
46
- return nil
47
- end
48
- return observeViewport(host, function(size)
49
- setWidth(function(prev)
50
- return if prev == size.width then prev else size.width
51
- end)
52
- end)
53
- end, { sx })
54
- local passed = props.state
55
- local _result = passed
56
- if _result ~= nil then
57
- _result = _result.disabled
58
- end
59
- local locked = _result == true
60
- local _exp = props.base
61
- local _exp_1 = props.className
62
- local _object = {
63
- hover = hover,
64
- pressed = pressed,
65
- focused = focused,
66
- }
67
- if passed then
68
- for _k, _v in passed do
69
- _object[_k] = _v
70
- end
71
- end
72
- local paint = paintHostStyle(theme, _exp, _exp_1, sx, width, _object)
73
- local rest = hostRest(props)
74
- local caller = rest.Event
75
- local pressable = tag == "textbutton" or tag == "imagebutton"
76
- local _object_1 = {}
77
- if caller then
78
- for _k, _v in caller do
79
- _object_1[_k] = _v
80
- end
81
- end
82
- _object_1.MouseEnter = function(...)
83
- local args = { ... }
84
- if not locked then
85
- setHover(true)
86
- end
87
- local _result_1 = caller
88
- if _result_1 ~= nil then
89
- _result_1 = _result_1.MouseEnter
90
- if _result_1 ~= nil then
91
- _result_1(unpack(args))
92
- end
93
- end
94
- end
95
- _object_1.MouseLeave = function(...)
96
- local args = { ... }
97
- setHover(false)
98
- setPressed(false)
99
- local _result_1 = caller
100
- if _result_1 ~= nil then
101
- _result_1 = _result_1.MouseLeave
102
- if _result_1 ~= nil then
103
- _result_1(unpack(args))
104
- end
105
- end
106
- end
107
- _object_1.SelectionGained = function(...)
108
- local args = { ... }
109
- if not locked then
110
- setFocused(true)
111
- end
112
- local _result_1 = caller
113
- if _result_1 ~= nil then
114
- _result_1 = _result_1.SelectionGained
115
- if _result_1 ~= nil then
116
- _result_1(unpack(args))
117
- end
118
- end
119
- end
120
- _object_1.SelectionLost = function(...)
121
- local args = { ... }
122
- setFocused(false)
123
- local _result_1 = caller
124
- if _result_1 ~= nil then
125
- _result_1 = _result_1.SelectionLost
126
- if _result_1 ~= nil then
127
- _result_1(unpack(args))
128
- end
129
- end
130
- end
131
- rest.Event = _object_1
132
- -- GuiButton-only; Frames reject MouseButton1* and crash Select/Menu hosts.
133
- if pressable then
134
- local events = rest.Event
135
- events.MouseButton1Down = function(...)
136
- local args = { ... }
137
- if not locked then
138
- setPressed(true)
139
- end
140
- local _result_1 = caller
141
- if _result_1 ~= nil then
142
- _result_1 = _result_1.MouseButton1Down
143
- if _result_1 ~= nil then
144
- _result_1(unpack(args))
145
- end
146
- end
147
- end
148
- events.MouseButton1Up = function(...)
149
- local args = { ... }
150
- setPressed(false)
151
- local _result_1 = caller
152
- if _result_1 ~= nil then
153
- _result_1 = _result_1.MouseButton1Up
154
- if _result_1 ~= nil then
155
- _result_1(unpack(args))
156
- end
157
- end
158
- end
159
- end
160
- local nodes = React.Children.toArray(props.children)
161
- local painted = {}
162
- local hasPad = false
163
- local hasCorner = false
164
- local hasGradient = false
165
- for _, node in nodes do
166
- if not React.isValidElement(node) then
167
- continue
168
- end
169
- local kind = hostKind(elementType(node))
170
- if kind == "uipadding" then
171
- hasPad = true
172
- end
173
- if kind == "uicorner" then
174
- hasCorner = true
175
- end
176
- if kind == "uigradient" then
177
- hasGradient = true
178
- end
179
- local patch = if kind ~= nil then layoutGapPatch(kind, elementProps(node), paint.gap) else nil
180
- local _arg0 = if patch ~= nil then React.cloneElement(node, patch) else node
181
- table.insert(painted, _arg0)
182
- end
183
- if not hasPad and paint.padding ~= nil then
184
- local _arg0 = React.createElement("uipadding", paint.padding)
185
- table.insert(painted, _arg0)
186
- end
187
- if not hasCorner and paint.corner ~= nil then
188
- local _arg0 = React.createElement("uicorner", paint.corner)
189
- table.insert(painted, _arg0)
190
- end
191
- if not hasGradient and paint.gradient ~= nil then
192
- local _arg0 = React.createElement("uigradient", paint.gradient)
193
- table.insert(painted, _arg0)
194
- end
195
- local _object_2 = table.clone(paint.props)
196
- setmetatable(_object_2, nil)
197
- for _k, _v in rest do
198
- _object_2[_k] = _v
199
- end
200
- _object_2.ref = function(instance)
201
- bound.current = instance
202
- setRef(props.hostRef, instance)
203
- end
204
- _object_2.children = painted
205
- return React.createElement(tag, _object_2)
206
- end
207
- local default = SxHost
208
- return {
209
- default = default,
210
- }
@@ -1,12 +0,0 @@
1
- import { resolveSx, ResolvedSx, SxInput } from "../../../theme/styles/utilities/resolveSx";
2
- import { StyleState } from "../../../theme/styles/utilities/resolveStyle";
3
- export interface HostPaint {
4
- props: {
5
- [key: string]: unknown;
6
- };
7
- padding?: ResolvedSx["padding"];
8
- corner?: ResolvedSx["corner"];
9
- gradient?: ResolvedSx["gradient"];
10
- gap?: number;
11
- }
12
- export declare function paintHostStyle(theme: Parameters<typeof resolveSx>[0], base: object | undefined, className: object | undefined, sx: SxInput | undefined, width: number | undefined, state: StyleState | undefined): HostPaint;
@@ -1,34 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local resolveSx = TS.import(script, script.Parent.Parent.Parent.Parent, "theme", "styles", "utilities", "resolveSx").resolveSx
4
- local resolveStyle = TS.import(script, script.Parent.Parent.Parent.Parent, "theme", "styles", "utilities", "resolveStyle").resolveStyle
5
- local function paintHostStyle(theme, base, className, sx, width, state)
6
- local resolved = resolveSx(theme, sx, width)
7
- local _object = {}
8
- local _spread = (base or {})
9
- if _spread then
10
- for _k, _v in _spread do
11
- _object[_k] = _v
12
- end
13
- end
14
- local _spread_1 = (className or {})
15
- if _spread_1 then
16
- for _k, _v in _spread_1 do
17
- _object[_k] = _v
18
- end
19
- end
20
- for _k, _v in resolved.root do
21
- _object[_k] = _v
22
- end
23
- local merged = _object
24
- return {
25
- props = resolveStyle(merged, state or {}),
26
- padding = resolved.padding,
27
- corner = resolved.corner,
28
- gradient = resolved.gradient,
29
- gap = resolved.gap,
30
- }
31
- end
32
- return {
33
- paintHostStyle = paintHostStyle,
34
- }
@@ -1,15 +0,0 @@
1
- export declare function sxUsesBreakpoints(sx: object | undefined): boolean;
2
- export declare function elementProps(element: unknown): {
3
- [key: string]: unknown;
4
- };
5
- export declare function elementType(element: unknown): unknown;
6
- export declare function hostKind(typeName: unknown): string | undefined;
7
- /** Explicit layout padding wins. Otherwise sx `gap` fills the empty field. */
8
- export declare function layoutGapPatch(kind: string, props: {
9
- [key: string]: unknown;
10
- }, gap: number | undefined): {
11
- [key: string]: unknown;
12
- } | undefined;
13
- export declare function hostRest(props: object): {
14
- [key: string]: unknown;
15
- };
@@ -1,92 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local SKIP = {
3
- tag = true,
4
- base = true,
5
- className = true,
6
- sx = true,
7
- state = true,
8
- hostRef = true,
9
- children = true,
10
- }
11
- local function sxUsesBreakpoints(sx)
12
- if sx == nil then
13
- return false
14
- end
15
- for _, value in pairs(sx) do
16
- if typeof(value) ~= "table" then
17
- continue
18
- end
19
- local record = value
20
- if record.phone ~= nil or record.tablet ~= nil or record.desktop ~= nil then
21
- return true
22
- end
23
- end
24
- return false
25
- end
26
- local function elementProps(element)
27
- local _element = element
28
- if typeof(_element) ~= "table" then
29
- return {}
30
- end
31
- local props = element.props
32
- if typeof(props) ~= "table" then
33
- return {}
34
- end
35
- return props
36
- end
37
- local function elementType(element)
38
- local _element = element
39
- if typeof(_element) ~= "table" then
40
- return nil
41
- end
42
- return element.type
43
- end
44
- local function hostKind(typeName)
45
- local _typeName = typeName
46
- if not (type(_typeName) == "string") then
47
- return nil
48
- end
49
- return string.lower(typeName)
50
- end
51
- --* Explicit layout padding wins. Otherwise sx `gap` fills the empty field.
52
- local function layoutGapPatch(kind, props, gap)
53
- if gap == nil then
54
- return nil
55
- end
56
- if kind == "uilistlayout" then
57
- if props.Padding ~= nil then
58
- return nil
59
- end
60
- return {
61
- Padding = UDim.new(0, gap),
62
- }
63
- end
64
- if kind == "uigridlayout" then
65
- if props.CellPadding ~= nil then
66
- return nil
67
- end
68
- return {
69
- CellPadding = UDim2.new(0, gap, 0, gap),
70
- }
71
- end
72
- return nil
73
- end
74
- local function hostRest(props)
75
- local rest = {}
76
- for key, value in pairs(props) do
77
- local name = key
78
- if SKIP[name] == true then
79
- continue
80
- end
81
- rest[name] = value
82
- end
83
- return rest
84
- end
85
- return {
86
- sxUsesBreakpoints = sxUsesBreakpoints,
87
- elementProps = elementProps,
88
- elementType = elementType,
89
- hostKind = hostKind,
90
- layoutGapPatch = layoutGapPatch,
91
- hostRest = hostRest,
92
- }
@@ -1,3 +0,0 @@
1
- export { default as SxHost, SxHostProps } from "./components/SxHost";
2
- export { paintHostStyle } from "./hostPaint";
3
- export { elementProps, elementType, hostKind, hostRest, layoutGapPatch, sxUsesBreakpoints } from "./hostRules";
@@ -1,13 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- exports.SxHost = TS.import(script, script, "components", "SxHost").default
5
- exports.paintHostStyle = TS.import(script, script, "hostPaint").paintHostStyle
6
- local _hostRules = TS.import(script, script, "hostRules")
7
- exports.elementProps = _hostRules.elementProps
8
- exports.elementType = _hostRules.elementType
9
- exports.hostKind = _hostRules.hostKind
10
- exports.hostRest = _hostRules.hostRest
11
- exports.layoutGapPatch = _hostRules.layoutGapPatch
12
- exports.sxUsesBreakpoints = _hostRules.sxUsesBreakpoints
13
- return exports
@@ -1,14 +0,0 @@
1
- import { CustomizedProps } from "../../../../theme/index";
2
- export interface ImageListItem {
3
- src: string;
4
- title?: string;
5
- }
6
- export interface ImageListProps {
7
- items: ImageListItem[];
8
- cols?: number;
9
- gap?: number;
10
- itemSize?: number;
11
- onItemActivated?: (index: number) => void;
12
- }
13
- declare function ImageList(props: CustomizedProps<Frame, ImageListProps>): JSX.Element;
14
- export default ImageList;
@@ -1,93 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
- local imageListTitle = TS.import(script, script.Parent, "imageListLayout").imageListTitle
6
- local useImageListStyles = TS.import(script, script.Parent, "ImageList.styles").default
7
- local function ImageList(props)
8
- local _binding = props
9
- local items = _binding.items
10
- local cols = _binding.cols
11
- local gap = _binding.gap
12
- local itemSize = _binding.itemSize
13
- local onItemActivated = _binding.onItemActivated
14
- local className = _binding.className
15
- local sx = _binding.sx
16
- local id = _binding.id
17
- local ref = _binding.ref
18
- local styles = useImageListStyles({
19
- cols = cols,
20
- gap = gap,
21
- itemSize = itemSize,
22
- })
23
- local _attributes = {
24
- tag = "frame",
25
- }
26
- local _condition = id
27
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
28
- _condition = "ImageList"
29
- end
30
- _attributes.key = _condition
31
- _attributes.hostRef = ref
32
- _attributes.base = styles.root
33
- _attributes.className = className
34
- _attributes.sx = sx
35
- local _attributes_1 = table.clone(styles.grid)
36
- setmetatable(_attributes_1, nil)
37
- local _exp = React.createElement("uigridlayout", _attributes_1)
38
- -- ▼ ReadonlyArray.map ▼
39
- local _newValue = table.create(#items)
40
- local _callback = function(item, index)
41
- local title = imageListTitle(item.title)
42
- local _attributes_2 = {
43
- key = `Tile-{index}`,
44
- }
45
- for _k, _v in styles.tile do
46
- _attributes_2[_k] = _v
47
- end
48
- _attributes_2.LayoutOrder = index
49
- _attributes_2.Event = {
50
- Activated = function()
51
- local _result = onItemActivated
52
- if _result ~= nil then
53
- _result = _result(index)
54
- end
55
- return _result
56
- end,
57
- }
58
- local _attributes_3 = table.clone(styles.corner)
59
- setmetatable(_attributes_3, nil)
60
- local _exp_1 = React.createElement("uicorner", _attributes_3)
61
- local _attributes_4 = {
62
- key = "Image",
63
- }
64
- for _k, _v in styles.image do
65
- _attributes_4[_k] = _v
66
- end
67
- _attributes_4.Image = item.src
68
- local _exp_2 = React.createElement("imagelabel", _attributes_4)
69
- local _condition_1 = title ~= nil
70
- if _condition_1 then
71
- local _attributes_5 = {
72
- key = "Title",
73
- }
74
- for _k, _v in styles.title do
75
- _attributes_5[_k] = _v
76
- end
77
- _attributes_5.Text = title
78
- local _attributes_6 = table.clone(styles.titlePad)
79
- setmetatable(_attributes_6, nil)
80
- _condition_1 = (React.createElement("textlabel", _attributes_5, React.createElement("uipadding", _attributes_6)))
81
- end
82
- return React.createElement("imagebutton", _attributes_2, _exp_1, _exp_2, _condition_1)
83
- end
84
- for _k, _v in items do
85
- _newValue[_k] = _callback(_v, _k - 1, items)
86
- end
87
- -- ▲ ReadonlyArray.map ▲
88
- return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
89
- end
90
- local default = ImageList
91
- return {
92
- default = default,
93
- }
@@ -1,6 +0,0 @@
1
- declare const useImageListStyles: (props: {
2
- cols?: number;
3
- gap?: number;
4
- itemSize?: number;
5
- }) => import("../../../../theme/index").ClassNameMap<string>;
6
- export default useImageListStyles;
@@ -1,73 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
- local Common = _theme.Common
5
- local componentStyles = _theme.componentStyles
6
- local createStyles = _theme.createStyles
7
- local _imageListLayout = TS.import(script, script.Parent, "imageListLayout")
8
- local imageListCols = _imageListLayout.imageListCols
9
- local imageListGap = _imageListLayout.imageListGap
10
- local imageListItemSize = _imageListLayout.imageListItemSize
11
- local useImageListStyles = componentStyles("ImageList", function(theme, _param)
12
- local cols = _param.cols
13
- local gap = _param.gap
14
- local itemSize = _param.itemSize
15
- local size = imageListItemSize(itemSize)
16
- local pad = theme.spacing.calc(imageListGap(gap))
17
- local bar = theme.spacing.calc(2.5)
18
- return createStyles({
19
- root = {
20
- AutomaticSize = Enum.AutomaticSize.XY,
21
- Size = UDim2.fromScale(0, 0),
22
- BackgroundTransparency = 1,
23
- BorderSizePixel = 0,
24
- },
25
- grid = {
26
- CellSize = UDim2.fromOffset(size, size),
27
- CellPadding = UDim2.fromOffset(pad, pad),
28
- FillDirection = Enum.FillDirection.Horizontal,
29
- FillDirectionMaxCells = imageListCols(cols),
30
- SortOrder = Enum.SortOrder.LayoutOrder,
31
- StartCorner = Enum.StartCorner.TopLeft,
32
- HorizontalAlignment = Enum.HorizontalAlignment.Left,
33
- VerticalAlignment = Enum.VerticalAlignment.Top,
34
- },
35
- tile = {
36
- Size = UDim2.fromOffset(size, size),
37
- BackgroundColor3 = theme.palette.surface.input,
38
- BorderSizePixel = 0,
39
- AutoButtonColor = false,
40
- ClipsDescendants = true,
41
- },
42
- corner = {
43
- CornerRadius = UDim.new(0, theme.shape.borderRadius),
44
- },
45
- image = {
46
- Size = UDim2.fromScale(1, 1),
47
- BackgroundTransparency = 1,
48
- BorderSizePixel = 0,
49
- ScaleType = Enum.ScaleType.Crop,
50
- },
51
- title = {
52
- Size = UDim2.new(1, 0, 0, bar),
53
- Position = UDim2.new(0, 0, 1, -bar),
54
- BackgroundColor3 = theme.palette.backdrop,
55
- BackgroundTransparency = 0.35,
56
- BorderSizePixel = 0,
57
- Font = theme.typography.fontFamilies.default,
58
- TextSize = theme.typography.fontSizes.caption,
59
- TextColor3 = Common.White,
60
- TextXAlignment = Enum.TextXAlignment.Left,
61
- TextTruncate = Enum.TextTruncate.AtEnd,
62
- ZIndex = 2,
63
- },
64
- titlePad = {
65
- PaddingLeft = UDim.new(0, theme.spacing.calc(0.5)),
66
- PaddingRight = UDim.new(0, theme.spacing.calc(0.5)),
67
- },
68
- })
69
- end)
70
- local default = useImageListStyles
71
- return {
72
- default = default,
73
- }
@@ -1,4 +0,0 @@
1
- export declare function imageListCols(cols?: number): number;
2
- export declare function imageListGap(gap?: number): number;
3
- export declare function imageListItemSize(itemSize?: number): number;
4
- export declare function imageListTitle(title?: string): string | undefined;
@@ -1,31 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function imageListCols(cols)
3
- if cols == nil or cols < 1 then
4
- return 3
5
- end
6
- return math.floor(cols)
7
- end
8
- local function imageListGap(gap)
9
- if gap == nil or gap < 0 then
10
- return 1
11
- end
12
- return gap
13
- end
14
- local function imageListItemSize(itemSize)
15
- if itemSize == nil or itemSize < 1 then
16
- return 96
17
- end
18
- return math.floor(itemSize)
19
- end
20
- local function imageListTitle(title)
21
- if title == nil or #title == 0 then
22
- return nil
23
- end
24
- return title
25
- end
26
- return {
27
- imageListCols = imageListCols,
28
- imageListGap = imageListGap,
29
- imageListItemSize = imageListItemSize,
30
- imageListTitle = imageListTitle,
31
- }
@@ -1,2 +0,0 @@
1
- export { default as ImageList } from "./components/ImageList";
2
- export { ImageListProps, ImageListItem } from "./components/ImageList";
@@ -1,5 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- exports.ImageList = TS.import(script, script, "components", "ImageList").default
5
- return exports
@@ -1,11 +0,0 @@
1
- import React from "@rbxts/react";
2
- import { CustomizedProps } from "../../../../theme/index";
3
- import { BoxPad } from "./boxPad";
4
- import { BoxBg } from "./Box.styles";
5
- export interface BoxProps {
6
- padding?: BoxPad;
7
- bgcolor?: BoxBg;
8
- children?: React.ReactNode;
9
- }
10
- declare function Box(props: CustomizedProps<Frame, BoxProps>): JSX.Element;
11
- export default Box;
@@ -1,40 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
- local useBoxStyles = TS.import(script, script.Parent, "Box.styles").default
6
- local function Box(props)
7
- local _binding = props
8
- local padding = _binding.padding
9
- local bgcolor = _binding.bgcolor
10
- local children = _binding.children
11
- local className = _binding.className
12
- local sx = _binding.sx
13
- local id = _binding.id
14
- local ref = _binding.ref
15
- local styles = useBoxStyles({
16
- padding = padding,
17
- bgcolor = bgcolor,
18
- })
19
- local _attributes = {}
20
- local _condition = id
21
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
22
- _condition = "Box"
23
- end
24
- _attributes.key = _condition
25
- _attributes.hostRef = ref
26
- _attributes.base = styles.root
27
- _attributes.className = className
28
- _attributes.sx = sx
29
- local _condition_1 = padding ~= nil
30
- if _condition_1 then
31
- local _attributes_1 = table.clone(styles.padding)
32
- setmetatable(_attributes_1, nil)
33
- _condition_1 = React.createElement("uipadding", _attributes_1)
34
- end
35
- return React.createElement(SxHost, _attributes, _condition_1, children)
36
- end
37
- local default = Box
38
- return {
39
- default = default,
40
- }
@@ -1,7 +0,0 @@
1
- import { BoxPad } from "./boxPad";
2
- export type BoxBg = "transparent" | "paper" | "elevated" | "input";
3
- declare const useBoxStyles: (props: {
4
- padding?: BoxPad;
5
- bgcolor?: BoxBg;
6
- }) => import("../../../../theme/index").ClassNameMap<string>;
7
- export default useBoxStyles;