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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +27 -109
  2. package/out/hooks/index.d.ts +1 -0
  3. package/out/hooks/init.luau +3 -0
  4. package/out/hooks/useBreakpoints.luau +2 -11
  5. package/out/hooks/viewportObserver.d.ts +10 -0
  6. package/out/hooks/viewportObserver.luau +75 -0
  7. package/out/theme/interfaces/theme/Theme.d.ts +15 -0
  8. package/out/theme/styles/utilities/componentStyles.luau +45 -3
  9. package/out/theme/styles/utilities/componentTheme.d.ts +15 -0
  10. package/out/theme/styles/utilities/index.d.ts +2 -0
  11. package/out/theme/styles/utilities/init.luau +7 -0
  12. package/out/theme/styles/utilities/resolveStyle.d.ts +10 -2
  13. package/out/theme/styles/utilities/resolveStyle.luau +7 -3
  14. package/out/theme/styles/utilities/resolveSx.d.ts +120 -0
  15. package/out/theme/styles/utilities/resolveSx.luau +524 -0
  16. package/out/theme/styles/utilities/styleCache.d.ts +2 -0
  17. package/out/theme/styles/utilities/styleCache.luau +9 -0
  18. package/out/ui/packages/accordion/components/Accordion.d.ts +2 -0
  19. package/out/ui/packages/accordion/components/Accordion.luau +46 -30
  20. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +1 -0
  21. package/out/ui/packages/accordion/components/Accordion.styles.luau +16 -4
  22. package/out/ui/packages/accordion/components/accordionOpen.d.ts +1 -0
  23. package/out/ui/packages/accordion/components/accordionOpen.luau +4 -0
  24. package/out/ui/packages/alert/components/Alert.d.ts +2 -0
  25. package/out/ui/packages/alert/components/Alert.luau +48 -42
  26. package/out/ui/packages/alert/components/Alert.styles.d.ts +2 -0
  27. package/out/ui/packages/alert/components/Alert.styles.luau +17 -8
  28. package/out/ui/packages/appBar/components/AppBar.d.ts +2 -1
  29. package/out/ui/packages/appBar/components/AppBar.luau +47 -36
  30. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +2 -0
  31. package/out/ui/packages/appBar/components/AppBar.styles.luau +16 -5
  32. package/out/ui/packages/assetField/components/AssetField.luau +12 -16
  33. package/out/ui/packages/autocomplete/components/Autocomplete.luau +8 -0
  34. package/out/ui/packages/avatar/components/Avatar.d.ts +2 -0
  35. package/out/ui/packages/avatar/components/Avatar.luau +27 -26
  36. package/out/ui/packages/avatar/components/Avatar.styles.d.ts +2 -0
  37. package/out/ui/packages/avatar/components/Avatar.styles.luau +5 -1
  38. package/out/ui/packages/backdrop/components/Backdrop.d.ts +10 -0
  39. package/out/ui/packages/backdrop/components/Backdrop.luau +51 -0
  40. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +4 -0
  41. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +24 -0
  42. package/out/ui/packages/backdrop/index.d.ts +2 -0
  43. package/out/ui/packages/backdrop/init.luau +5 -0
  44. package/out/ui/packages/badge/components/Badge.d.ts +3 -0
  45. package/out/ui/packages/badge/components/Badge.luau +32 -24
  46. package/out/ui/packages/badge/components/Badge.styles.d.ts +5 -1
  47. package/out/ui/packages/badge/components/Badge.styles.luau +20 -8
  48. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +1 -0
  49. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +20 -18
  50. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +3 -1
  51. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +6 -2
  52. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +1 -0
  53. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +67 -40
  54. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +9 -0
  55. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +68 -0
  56. package/out/ui/packages/breadcrumbs/index.d.ts +1 -0
  57. package/out/ui/packages/breadcrumbs/init.luau +3 -0
  58. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +12 -16
  59. package/out/ui/packages/button/components/Button.luau +28 -22
  60. package/out/ui/packages/card/components/Card.d.ts +3 -1
  61. package/out/ui/packages/card/components/Card.luau +10 -0
  62. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +75 -53
  63. package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +26 -9
  64. package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
  65. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
  66. package/out/ui/packages/chip/components/Chip.d.ts +6 -1
  67. package/out/ui/packages/chip/components/Chip.luau +61 -17
  68. package/out/ui/packages/chip/components/Chip.styles.d.ts +6 -0
  69. package/out/ui/packages/chip/components/Chip.styles.luau +54 -9
  70. package/out/ui/packages/circularProgress/components/CircularProgress.luau +29 -18
  71. package/out/ui/packages/colorPicker/components/ColorPicker.luau +16 -20
  72. package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +34 -20
  73. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +34 -35
  74. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +65 -62
  75. package/out/ui/packages/dialog/components/Dialog.d.ts +3 -2
  76. package/out/ui/packages/dialog/components/Dialog.luau +41 -21
  77. package/out/ui/packages/divider/components/Divider.d.ts +1 -0
  78. package/out/ui/packages/divider/components/Divider.luau +52 -17
  79. package/out/ui/packages/divider/components/Divider.styles.luau +32 -0
  80. package/out/ui/packages/divider/components/dividerLabel.d.ts +1 -0
  81. package/out/ui/packages/divider/components/dividerLabel.luau +10 -0
  82. package/out/ui/packages/drawer/components/Drawer.d.ts +3 -1
  83. package/out/ui/packages/drawer/components/Drawer.luau +71 -37
  84. package/out/ui/packages/drawer/components/Drawer.styles.d.ts +3 -1
  85. package/out/ui/packages/drawer/components/Drawer.styles.luau +3 -2
  86. package/out/ui/packages/fab/components/Fab.d.ts +3 -0
  87. package/out/ui/packages/fab/components/Fab.luau +79 -37
  88. package/out/ui/packages/fab/components/Fab.styles.d.ts +3 -0
  89. package/out/ui/packages/fab/components/Fab.styles.luau +39 -3
  90. package/out/ui/packages/fab/components/fabSize.d.ts +1 -0
  91. package/out/ui/packages/fab/components/fabSize.luau +4 -0
  92. package/out/ui/packages/fab/index.d.ts +1 -1
  93. package/out/ui/packages/fab/init.luau +1 -0
  94. package/out/ui/packages/fontEditor/components/FontEditor.luau +12 -16
  95. package/out/ui/packages/formText/components/FormHelperText.d.ts +8 -0
  96. package/out/ui/packages/formText/components/FormHelperText.luau +40 -0
  97. package/out/ui/packages/formText/components/FormLabel.d.ts +9 -0
  98. package/out/ui/packages/formText/components/FormLabel.luau +42 -0
  99. package/out/ui/packages/formText/components/FormText.styles.d.ts +5 -0
  100. package/out/ui/packages/formText/components/FormText.styles.luau +33 -0
  101. package/out/ui/packages/formText/index.d.ts +4 -0
  102. package/out/ui/packages/formText/init.luau +6 -0
  103. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +56 -42
  104. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +37 -4
  105. package/out/ui/packages/host/components/SxHost.d.ts +18 -0
  106. package/out/ui/packages/host/components/SxHost.luau +210 -0
  107. package/out/ui/packages/host/hostPaint.d.ts +12 -0
  108. package/out/ui/packages/host/hostPaint.luau +34 -0
  109. package/out/ui/packages/host/hostRules.d.ts +15 -0
  110. package/out/ui/packages/host/hostRules.luau +92 -0
  111. package/out/ui/packages/host/index.d.ts +3 -0
  112. package/out/ui/packages/host/init.luau +13 -0
  113. package/out/ui/packages/icon/components/Icon.luau +9 -16
  114. package/out/ui/packages/iconButton/components/IconButton.luau +22 -17
  115. package/out/ui/packages/iconButton/components/IconButton.styles.luau +3 -0
  116. package/out/ui/packages/imageList/components/ImageList.d.ts +14 -0
  117. package/out/ui/packages/imageList/components/ImageList.luau +93 -0
  118. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +6 -0
  119. package/out/ui/packages/imageList/components/ImageList.styles.luau +73 -0
  120. package/out/ui/packages/imageList/components/imageListLayout.d.ts +4 -0
  121. package/out/ui/packages/imageList/components/imageListLayout.luau +31 -0
  122. package/out/ui/packages/imageList/index.d.ts +2 -0
  123. package/out/ui/packages/imageList/init.luau +5 -0
  124. package/out/ui/packages/index.d.ts +8 -0
  125. package/out/ui/packages/init.luau +24 -0
  126. package/out/ui/packages/input/components/Input.d.ts +1 -0
  127. package/out/ui/packages/input/components/Input.luau +22 -19
  128. package/out/ui/packages/layout/components/Box.d.ts +11 -0
  129. package/out/ui/packages/layout/components/Box.luau +40 -0
  130. package/out/ui/packages/layout/components/Box.styles.d.ts +7 -0
  131. package/out/ui/packages/layout/components/Box.styles.luau +34 -0
  132. package/out/ui/packages/layout/components/Container.d.ts +10 -0
  133. package/out/ui/packages/layout/components/Container.luau +45 -0
  134. package/out/ui/packages/layout/components/Container.styles.d.ts +6 -0
  135. package/out/ui/packages/layout/components/Container.styles.luau +41 -0
  136. package/out/ui/packages/layout/components/FlexItem.d.ts +12 -0
  137. package/out/ui/packages/layout/components/FlexItem.luau +40 -0
  138. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +8 -0
  139. package/out/ui/packages/layout/components/FlexItem.styles.luau +66 -0
  140. package/out/ui/packages/layout/components/Grid.d.ts +5 -1
  141. package/out/ui/packages/layout/components/Grid.luau +41 -19
  142. package/out/ui/packages/layout/components/List.luau +9 -16
  143. package/out/ui/packages/layout/components/Stack.d.ts +14 -0
  144. package/out/ui/packages/layout/components/Stack.luau +44 -0
  145. package/out/ui/packages/layout/components/Stack.styles.d.ts +10 -0
  146. package/out/ui/packages/layout/components/Stack.styles.luau +101 -0
  147. package/out/ui/packages/layout/components/boxPad.d.ts +14 -0
  148. package/out/ui/packages/layout/components/boxPad.luau +59 -0
  149. package/out/ui/packages/layout/components/containerWidth.d.ts +2 -0
  150. package/out/ui/packages/layout/components/containerWidth.luau +17 -0
  151. package/out/ui/packages/layout/components/flexItemMode.d.ts +6 -0
  152. package/out/ui/packages/layout/components/flexItemMode.luau +36 -0
  153. package/out/ui/packages/layout/components/gridProps.d.ts +3 -0
  154. package/out/ui/packages/layout/components/gridProps.luau +20 -0
  155. package/out/ui/packages/layout/components/stackAlign.d.ts +10 -0
  156. package/out/ui/packages/layout/components/stackAlign.luau +43 -0
  157. package/out/ui/packages/layout/index.d.ts +14 -0
  158. package/out/ui/packages/layout/init.luau +5 -0
  159. package/out/ui/packages/link/components/Link.d.ts +11 -0
  160. package/out/ui/packages/link/components/Link.luau +80 -0
  161. package/out/ui/packages/link/components/Link.styles.d.ts +8 -0
  162. package/out/ui/packages/link/components/Link.styles.luau +59 -0
  163. package/out/ui/packages/link/index.d.ts +3 -0
  164. package/out/ui/packages/link/init.luau +5 -0
  165. package/out/ui/packages/listItem/components/ListItem.d.ts +4 -1
  166. package/out/ui/packages/listItem/components/ListItem.luau +44 -4
  167. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +1 -0
  168. package/out/ui/packages/listItem/components/ListItem.styles.luau +16 -5
  169. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +7 -1
  170. package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +23 -19
  171. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +11 -0
  172. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +2 -0
  173. package/out/ui/packages/markdown/components/Markdown.d.ts +6 -0
  174. package/out/ui/packages/markdown/components/Markdown.luau +221 -0
  175. package/out/ui/packages/markdown/components/Markdown.styles.d.ts +2 -0
  176. package/out/ui/packages/markdown/components/Markdown.styles.luau +101 -0
  177. package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +16 -0
  178. package/out/ui/packages/markdown/components/MarkdownEditor.luau +315 -0
  179. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +6 -0
  180. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +132 -0
  181. package/out/ui/packages/markdown/htmlToMarkdown.d.ts +2 -0
  182. package/out/ui/packages/markdown/htmlToMarkdown.luau +350 -0
  183. package/out/ui/packages/markdown/index.d.ts +8 -0
  184. package/out/ui/packages/markdown/init.luau +11 -0
  185. package/out/ui/packages/markdown/parseMarkdown.d.ts +42 -0
  186. package/out/ui/packages/markdown/parseMarkdown.luau +459 -0
  187. package/out/ui/packages/menu/components/Menu.d.ts +7 -1
  188. package/out/ui/packages/menu/components/Menu.luau +68 -26
  189. package/out/ui/packages/menu/components/Menu.styles.luau +5 -1
  190. package/out/ui/packages/modal/components/Modal.d.ts +2 -1
  191. package/out/ui/packages/modal/components/Modal.luau +79 -37
  192. package/out/ui/packages/motion/index.d.ts +1 -1
  193. package/out/ui/packages/motion/init.luau +1 -0
  194. package/out/ui/packages/motion/unit.d.ts +5 -0
  195. package/out/ui/packages/motion/unit.luau +23 -0
  196. package/out/ui/packages/numberInput/components/NumberInput.d.ts +2 -0
  197. package/out/ui/packages/numberInput/components/NumberInput.luau +16 -3
  198. package/out/ui/packages/numberInput/components/numberValue.d.ts +1 -0
  199. package/out/ui/packages/numberInput/components/numberValue.luau +45 -0
  200. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +12 -16
  201. package/out/ui/packages/pagination/components/Pagination.d.ts +6 -1
  202. package/out/ui/packages/pagination/components/Pagination.luau +62 -38
  203. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +6 -1
  204. package/out/ui/packages/pagination/components/Pagination.styles.luau +36 -4
  205. package/out/ui/packages/pagination/components/pageRange.d.ts +2 -1
  206. package/out/ui/packages/pagination/components/pageRange.luau +91 -8
  207. package/out/ui/packages/pagination/index.d.ts +1 -0
  208. package/out/ui/packages/pagination/init.luau +1 -0
  209. package/out/ui/packages/paper/components/Paper.d.ts +4 -2
  210. package/out/ui/packages/paper/components/Paper.luau +31 -9
  211. package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
  212. package/out/ui/packages/paper/components/Paper.styles.luau +6 -0
  213. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +63 -38
  214. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +21 -7
  215. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +2 -0
  216. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +14 -0
  217. package/out/ui/packages/popup/components/Popup.d.ts +2 -1
  218. package/out/ui/packages/popup/components/Popup.luau +35 -18
  219. package/out/ui/packages/popup/index.d.ts +1 -0
  220. package/out/ui/packages/popup/init.luau +1 -0
  221. package/out/ui/packages/preloader/components/Preloader.luau +9 -16
  222. package/out/ui/packages/progressBar/components/ProgressBar.luau +12 -16
  223. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +1 -0
  224. package/out/ui/packages/radioGroup/components/RadioGroup.luau +16 -18
  225. package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +1 -0
  226. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +4 -1
  227. package/out/ui/packages/rating/components/Rating.d.ts +11 -0
  228. package/out/ui/packages/rating/components/Rating.luau +97 -0
  229. package/out/ui/packages/rating/components/Rating.styles.d.ts +6 -0
  230. package/out/ui/packages/rating/components/Rating.styles.luau +44 -0
  231. package/out/ui/packages/rating/index.d.ts +2 -0
  232. package/out/ui/packages/rating/init.luau +5 -0
  233. package/out/ui/packages/rayEditor/components/RayEditor.luau +12 -16
  234. package/out/ui/packages/rectEditor/components/RectEditor.luau +86 -43
  235. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +30 -7
  236. package/out/ui/packages/select/components/Select.d.ts +5 -0
  237. package/out/ui/packages/select/components/Select.luau +61 -77
  238. package/out/ui/packages/select/components/Select.styles.luau +1 -1
  239. package/out/ui/packages/shadow/components/Shadow.d.ts +2 -1
  240. package/out/ui/packages/shadow/components/Shadow.luau +39 -17
  241. package/out/ui/packages/shadow/components/Shadow.styles.luau +7 -2
  242. package/out/ui/packages/sidebar/components/Sidebar.luau +9 -16
  243. package/out/ui/packages/skeleton/components/Skeleton.luau +22 -30
  244. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +7 -2
  245. package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
  246. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +20 -0
  247. package/out/ui/packages/skeleton/components/skeletonTone.luau +14 -0
  248. package/out/ui/packages/slider/components/Slider.d.ts +3 -0
  249. package/out/ui/packages/slider/components/Slider.luau +47 -19
  250. package/out/ui/packages/slider/components/Slider.styles.d.ts +2 -0
  251. package/out/ui/packages/slider/components/Slider.styles.luau +14 -1
  252. package/out/ui/packages/slider/components/sliderMarks.d.ts +1 -0
  253. package/out/ui/packages/slider/components/sliderMarks.luau +37 -0
  254. package/out/ui/packages/snackbar/components/Snackbar.d.ts +2 -0
  255. package/out/ui/packages/snackbar/components/Snackbar.luau +5 -0
  256. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +1 -0
  257. package/out/ui/packages/snackbar/components/snackbarAction.luau +10 -0
  258. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +19 -0
  259. package/out/ui/packages/speedDial/components/SpeedDial.luau +97 -0
  260. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +5 -0
  261. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +31 -0
  262. package/out/ui/packages/speedDial/index.d.ts +3 -0
  263. package/out/ui/packages/speedDial/init.luau +5 -0
  264. package/out/ui/packages/splitPane/components/SplitPane.luau +13 -17
  265. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  266. package/out/ui/packages/stateMatrix.d.ts +2 -0
  267. package/out/ui/packages/stateMatrix.luau +872 -881
  268. package/out/ui/packages/stepper/components/Stepper.d.ts +1 -0
  269. package/out/ui/packages/stepper/components/Stepper.luau +16 -17
  270. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +3 -1
  271. package/out/ui/packages/stepper/components/Stepper.styles.luau +6 -2
  272. package/out/ui/packages/switch/components/Switch.d.ts +2 -0
  273. package/out/ui/packages/switch/components/Switch.luau +21 -16
  274. package/out/ui/packages/switch/components/Switch.styles.d.ts +2 -0
  275. package/out/ui/packages/switch/components/Switch.styles.luau +6 -1
  276. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  277. package/out/ui/packages/table/components/Table.d.ts +1 -0
  278. package/out/ui/packages/table/components/Table.luau +15 -19
  279. package/out/ui/packages/table/components/Table.styles.d.ts +3 -1
  280. package/out/ui/packages/table/components/Table.styles.luau +10 -6
  281. package/out/ui/packages/tabs/components/Tabs.d.ts +3 -0
  282. package/out/ui/packages/tabs/components/Tabs.luau +24 -19
  283. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +5 -1
  284. package/out/ui/packages/tabs/components/Tabs.styles.luau +26 -10
  285. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +2 -0
  286. package/out/ui/packages/tabs/components/tabsOrientation.luau +7 -0
  287. package/out/ui/packages/tabs/index.d.ts +1 -0
  288. package/out/ui/packages/tabs/init.luau +1 -0
  289. package/out/ui/packages/toast/components/Toast.d.ts +2 -0
  290. package/out/ui/packages/toast/components/Toast.luau +41 -13
  291. package/out/ui/packages/toast/components/Toast.styles.luau +23 -5
  292. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +21 -0
  293. package/out/ui/packages/toggleButton/components/ToggleButton.luau +129 -0
  294. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +9 -0
  295. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +69 -0
  296. package/out/ui/packages/toggleButton/index.d.ts +2 -0
  297. package/out/ui/packages/toggleButton/init.luau +7 -0
  298. package/out/ui/packages/tooltip/components/Tooltip.luau +9 -16
  299. package/out/ui/packages/treeView/components/TreeView.luau +9 -16
  300. package/out/ui/packages/typography/components/Typography.luau +13 -14
  301. package/out/ui/packages/udimEditor/components/UDimEditor.luau +12 -16
  302. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +12 -16
  303. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +7 -0
  304. package/out/ui/packages/virtualList/components/EmptyListHint.luau +43 -0
  305. package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +5 -0
  306. package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +26 -0
  307. package/out/ui/packages/virtualList/components/VirtualList.luau +9 -16
  308. package/out/ui/packages/virtualList/index.d.ts +2 -0
  309. package/out/ui/packages/virtualList/init.luau +1 -0
  310. package/package.json +2 -2
  311. package/out/ui/packages/select/components/selectMotion.d.ts +0 -2
  312. package/out/ui/packages/select/components/selectMotion.luau +0 -12
@@ -4,6 +4,8 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local React = _react
5
5
  local useEffect = _react.useEffect
6
6
  local useState = _react.useState
7
+ local useReducedMotion = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "hooks").useReducedMotion
8
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
7
9
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
8
10
  local iconSpinnerPixels = TS.import(script, script.Parent.Parent.Parent, "button", "components", "buttonLook").iconSpinnerPixels
9
11
  local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
@@ -18,7 +20,7 @@ local function IconButton(props)
18
20
  if loading == nil then
19
21
  loading = false
20
22
  end
21
- local reducedMotion = _binding.reducedMotion
23
+ local reducedProp = _binding.reducedMotion
22
24
  local onClick = _binding.onClick
23
25
  local className = _binding.className
24
26
  local sx = _binding.sx
@@ -26,6 +28,8 @@ local function IconButton(props)
26
28
  local ref = _binding.ref
27
29
  local _binding_1 = useIconButtonStyles(props)
28
30
  local container = _binding_1.container
31
+ local corner = _binding_1.corner
32
+ local reducedMotion = useReducedMotion(reducedProp)
29
33
  local active = canActivate(disabled, loading)
30
34
  local hovering, setHovering = useState(false)
31
35
  local focused, setFocused = useState(false)
@@ -36,26 +40,25 @@ local function IconButton(props)
36
40
  setHovering(false)
37
41
  setFocused(false)
38
42
  end, { active })
39
- local _attributes = {}
43
+ local _attributes = {
44
+ tag = "imagebutton",
45
+ }
40
46
  local _condition = id
41
47
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
42
48
  _condition = "IconButton"
43
49
  end
44
50
  _attributes.key = _condition
45
- _attributes.ref = ref
46
- for _k, _v in container do
47
- _attributes[_k] = _v
48
- end
49
- if className then
50
- for _k, _v in className do
51
- _attributes[_k] = _v
52
- end
53
- end
54
- if sx then
55
- for _k, _v in sx do
56
- _attributes[_k] = _v
57
- end
58
- end
51
+ _attributes.hostRef = ref
52
+ _attributes.base = container
53
+ _attributes.className = className
54
+ _attributes.sx = sx
55
+ _attributes.state = {
56
+ disabled = disabled,
57
+ loading = loading,
58
+ selected = selected,
59
+ hover = hovering,
60
+ focused = focused,
61
+ }
59
62
  _attributes.Active = active
60
63
  _attributes.AutoButtonColor = active
61
64
  _attributes.Selectable = active
@@ -86,7 +89,9 @@ local function IconButton(props)
86
89
  return setFocused(false)
87
90
  end,
88
91
  }
89
- return React.createElement("imagebutton", _attributes, loading and (React.createElement(CircularProgress, {
92
+ local _attributes_1 = table.clone(corner)
93
+ setmetatable(_attributes_1, nil)
94
+ return React.createElement(SxHost, _attributes, React.createElement("uicorner", _attributes_1), loading and (React.createElement(CircularProgress, {
90
95
  size = iconSpinnerPixels(props.size),
91
96
  thickness = 2,
92
97
  color = tint,
@@ -39,6 +39,9 @@ local useIconButtonStyles = componentStyles("IconButton", function(theme, props)
39
39
  ScaleType = Enum.ScaleType.Fit,
40
40
  ZIndex = 12000,
41
41
  },
42
+ corner = {
43
+ CornerRadius = UDim.new(0, theme.shape.borderRadius),
44
+ },
42
45
  })
43
46
  end)
44
47
  local default = useIconButtonStyles
@@ -0,0 +1,14 @@
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;
@@ -0,0 +1,93 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ declare const useImageListStyles: (props: {
2
+ cols?: number;
3
+ gap?: number;
4
+ itemSize?: number;
5
+ }) => import("../../../../theme/index").ClassNameMap<string>;
6
+ export default useImageListStyles;
@@ -0,0 +1,73 @@
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
+ }
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,31 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ export { default as ImageList } from "./components/ImageList";
2
+ export { ImageListProps, ImageListItem } from "./components/ImageList";
@@ -0,0 +1,5 @@
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
@@ -3,8 +3,10 @@ export * from "./skeleton/index";
3
3
  export * from "./divider/index";
4
4
  export * from "./errorBoundary/index";
5
5
  export * from "./icon/index";
6
+ export * from "./imageList/index";
6
7
  export * from "./iconButton/index";
7
8
  export * from "./input/index";
9
+ export * from "./formText/index";
8
10
  export * from "./layout/index";
9
11
  export * from "./preloader/index";
10
12
  export * from "./progressBar/index";
@@ -30,6 +32,7 @@ export * from "./cframeEditor/index";
30
32
  export * from "./enumPicker/index";
31
33
  export * from "./popup/index";
32
34
  export * from "./modal/index";
35
+ export * from "./backdrop/index";
33
36
  export * from "./dialog/index";
34
37
  export * from "./paper/index";
35
38
  export * from "./card/index";
@@ -48,9 +51,14 @@ export * from "./snackbar/index";
48
51
  export * from "./table/index";
49
52
  export * from "./autocomplete/index";
50
53
  export * from "./fab/index";
54
+ export * from "./speedDial/index";
51
55
  export * from "./appBar/index";
52
56
  export * from "./bottomNavigation/index";
53
57
  export * from "./alert/index";
58
+ export * from "./toggleButton/index";
59
+ export * from "./link/index";
60
+ export * from "./markdown/index";
61
+ export * from "./rating/index";
54
62
  export * from "./listItem/index";
55
63
  export * from "./menu/index";
56
64
  export * from "./motion/index";
@@ -16,12 +16,18 @@ end
16
16
  for _k, _v in TS.import(script, script, "icon") or {} do
17
17
  exports[_k] = _v
18
18
  end
19
+ for _k, _v in TS.import(script, script, "imageList") or {} do
20
+ exports[_k] = _v
21
+ end
19
22
  for _k, _v in TS.import(script, script, "iconButton") or {} do
20
23
  exports[_k] = _v
21
24
  end
22
25
  for _k, _v in TS.import(script, script, "input") or {} do
23
26
  exports[_k] = _v
24
27
  end
28
+ for _k, _v in TS.import(script, script, "formText") or {} do
29
+ exports[_k] = _v
30
+ end
25
31
  for _k, _v in TS.import(script, script, "layout") or {} do
26
32
  exports[_k] = _v
27
33
  end
@@ -97,6 +103,9 @@ end
97
103
  for _k, _v in TS.import(script, script, "modal") or {} do
98
104
  exports[_k] = _v
99
105
  end
106
+ for _k, _v in TS.import(script, script, "backdrop") or {} do
107
+ exports[_k] = _v
108
+ end
100
109
  for _k, _v in TS.import(script, script, "dialog") or {} do
101
110
  exports[_k] = _v
102
111
  end
@@ -151,6 +160,9 @@ end
151
160
  for _k, _v in TS.import(script, script, "fab") or {} do
152
161
  exports[_k] = _v
153
162
  end
163
+ for _k, _v in TS.import(script, script, "speedDial") or {} do
164
+ exports[_k] = _v
165
+ end
154
166
  for _k, _v in TS.import(script, script, "appBar") or {} do
155
167
  exports[_k] = _v
156
168
  end
@@ -160,6 +172,18 @@ end
160
172
  for _k, _v in TS.import(script, script, "alert") or {} do
161
173
  exports[_k] = _v
162
174
  end
175
+ for _k, _v in TS.import(script, script, "toggleButton") or {} do
176
+ exports[_k] = _v
177
+ end
178
+ for _k, _v in TS.import(script, script, "link") or {} do
179
+ exports[_k] = _v
180
+ end
181
+ for _k, _v in TS.import(script, script, "markdown") or {} do
182
+ exports[_k] = _v
183
+ end
184
+ for _k, _v in TS.import(script, script, "rating") or {} do
185
+ exports[_k] = _v
186
+ end
163
187
  for _k, _v in TS.import(script, script, "listItem") or {} do
164
188
  exports[_k] = _v
165
189
  end
@@ -5,6 +5,7 @@ export type DefaultInputComponent = Frame;
5
5
  export interface InputProps {
6
6
  color?: InputColor;
7
7
  disabled?: boolean;
8
+ readOnly?: boolean;
8
9
  loading?: boolean;
9
10
  hasError?: boolean;
10
11
  helperText?: string;
@@ -12,6 +12,7 @@ local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "co
12
12
  local spinnerPixels = TS.import(script, script.Parent.Parent.Parent, "button", "components", "buttonLook").spinnerPixels
13
13
  local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
14
14
  local Divider = TS.import(script, script.Parent.Parent.Parent, "divider").Divider
15
+ local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
15
16
  local Orientations = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Orientations
16
17
  local useInputStyles = TS.import(script, script.Parent, "Input.styles").default
17
18
  local syncInputDraft = TS.import(script, script.Parent, "inputDraft").syncInputDraft
@@ -36,6 +37,10 @@ local function Input(props)
36
37
  if disabled == nil then
37
38
  disabled = false
38
39
  end
40
+ local readOnly = _binding.readOnly
41
+ if readOnly == nil then
42
+ readOnly = false
43
+ end
39
44
  local loading = _binding.loading
40
45
  if loading == nil then
41
46
  loading = false
@@ -46,7 +51,7 @@ local function Input(props)
46
51
  end
47
52
  local rounded = _binding.rounded
48
53
  if rounded == nil then
49
- rounded = false
54
+ rounded = true
50
55
  end
51
56
  local size = _binding.size
52
57
  local reducedMotion = _binding.reducedMotion
@@ -71,7 +76,8 @@ local function Input(props)
71
76
  local focused, setFocused = useState(false)
72
77
  local _binding_1 = useTheme()
73
78
  local theme = _binding_1.theme
74
- local editable = canActivate(disabled, loading)
79
+ local active = canActivate(disabled, loading)
80
+ local editable = active and readOnly ~= true
75
81
  local endSlotContent = if loading then nil else endAdornment
76
82
  local _object = table.clone(props)
77
83
  setmetatable(_object, nil)
@@ -97,26 +103,23 @@ local function Input(props)
97
103
  end, { text })
98
104
  local showStroke = variant == "outlined" or variant == "filled"
99
105
  local showCorner = rounded
100
- local _attributes = {}
106
+ local _attributes = {
107
+ tag = "frame",
108
+ }
101
109
  local _condition_1 = id
102
110
  if not (_condition_1 ~= 0 and _condition_1 == _condition_1 and _condition_1 ~= "" and _condition_1) then
103
111
  _condition_1 = "Input"
104
112
  end
105
113
  _attributes.key = _condition_1
106
- _attributes.ref = ref
107
- for _k, _v in root do
108
- _attributes[_k] = _v
109
- end
110
- if className then
111
- for _k, _v in className do
112
- _attributes[_k] = _v
113
- end
114
- end
115
- if sx then
116
- for _k, _v in sx do
117
- _attributes[_k] = _v
118
- end
119
- end
114
+ _attributes.hostRef = ref
115
+ _attributes.base = root
116
+ _attributes.className = className
117
+ _attributes.sx = sx
118
+ _attributes.state = {
119
+ disabled = disabled,
120
+ loading = loading,
121
+ focused = focused,
122
+ }
120
123
  local _attributes_1 = {
121
124
  key = "Margin",
122
125
  }
@@ -160,7 +163,7 @@ local function Input(props)
160
163
  for _k, _v in box do
161
164
  _attributes_3[_k] = _v
162
165
  end
163
- _attributes_3.Active = editable
166
+ _attributes_3.Active = active
164
167
  _attributes_3.TextEditable = editable
165
168
  _attributes_3.Text = draft
166
169
  _attributes_3.PlaceholderText = placeholder
@@ -267,7 +270,7 @@ local function Input(props)
267
270
  _attributes_4.Text = helperText
268
271
  _condition_7 = (React.createElement("textlabel", _attributes_4))
269
272
  end
270
- return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp_1, _exp_2, _condition_7))
273
+ return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _exp_1, _exp_2, _condition_7))
271
274
  end
272
275
  local default = Input
273
276
  return {
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,34 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local componentStyles = _theme.componentStyles
5
+ local createStyles = _theme.createStyles
6
+ local boxPadSides = TS.import(script, script.Parent, "boxPad").boxPadSides
7
+ local useBoxStyles = componentStyles("Box", function(theme, _param)
8
+ local padding = _param.padding
9
+ local bgcolor = _param.bgcolor
10
+ if bgcolor == nil then
11
+ bgcolor = "transparent"
12
+ end
13
+ local sides = boxPadSides(padding)
14
+ local fill = if bgcolor == "paper" then theme.palette.surface.paper elseif bgcolor == "elevated" then theme.palette.surface.elevated elseif bgcolor == "input" then theme.palette.surface.input else theme.palette.surface.paper
15
+ return createStyles({
16
+ root = {
17
+ AutomaticSize = Enum.AutomaticSize.XY,
18
+ Size = UDim2.fromScale(0, 0),
19
+ BackgroundColor3 = fill,
20
+ BackgroundTransparency = if bgcolor == "transparent" then 1 else 0,
21
+ BorderSizePixel = 0,
22
+ },
23
+ padding = {
24
+ PaddingTop = UDim.new(0, theme.spacing.calc(sides.top)),
25
+ PaddingRight = UDim.new(0, theme.spacing.calc(sides.right)),
26
+ PaddingBottom = UDim.new(0, theme.spacing.calc(sides.bottom)),
27
+ PaddingLeft = UDim.new(0, theme.spacing.calc(sides.left)),
28
+ },
29
+ })
30
+ end)
31
+ local default = useBoxStyles
32
+ return {
33
+ default = default,
34
+ }
@@ -0,0 +1,10 @@
1
+ import React from "@rbxts/react";
2
+ import { CustomizedProps } from "../../../../theme/index";
3
+ import { ContainerMaxWidth } from "./containerWidth";
4
+ export interface ContainerProps {
5
+ maxWidth?: ContainerMaxWidth;
6
+ disableGutters?: boolean;
7
+ children?: React.ReactNode;
8
+ }
9
+ declare function Container(props: CustomizedProps<Frame, ContainerProps>): JSX.Element;
10
+ export default Container;
@@ -0,0 +1,45 @@
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 useContainerStyles = TS.import(script, script.Parent, "Container.styles").default
6
+ local function Container(props)
7
+ local _binding = props
8
+ local maxWidth = _binding.maxWidth
9
+ local disableGutters = _binding.disableGutters
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 = useContainerStyles({
16
+ maxWidth = maxWidth,
17
+ disableGutters = disableGutters,
18
+ })
19
+ local _attributes = {}
20
+ local _condition = id
21
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
22
+ _condition = "Container"
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 _attributes_1 = {
30
+ key = "Inner",
31
+ }
32
+ for _k, _v in styles.inner do
33
+ _attributes_1[_k] = _v
34
+ end
35
+ local _attributes_2 = table.clone(styles.constraint)
36
+ setmetatable(_attributes_2, nil)
37
+ local _exp = React.createElement("uisizeconstraint", _attributes_2)
38
+ local _attributes_3 = table.clone(styles.gutter)
39
+ setmetatable(_attributes_3, nil)
40
+ return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _exp, React.createElement("uipadding", _attributes_3), children))
41
+ end
42
+ local default = Container
43
+ return {
44
+ default = default,
45
+ }