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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +109 -27
  2. package/out/hooks/index.d.ts +0 -1
  3. package/out/hooks/init.luau +0 -3
  4. package/out/hooks/useBreakpoints.luau +11 -2
  5. package/out/theme/interfaces/theme/Theme.d.ts +0 -15
  6. package/out/theme/styles/utilities/componentStyles.luau +3 -45
  7. package/out/theme/styles/utilities/componentTheme.d.ts +0 -15
  8. package/out/theme/styles/utilities/index.d.ts +0 -2
  9. package/out/theme/styles/utilities/init.luau +0 -7
  10. package/out/theme/styles/utilities/resolveStyle.d.ts +2 -10
  11. package/out/theme/styles/utilities/resolveStyle.luau +3 -7
  12. package/out/theme/styles/utilities/styleCache.d.ts +0 -2
  13. package/out/theme/styles/utilities/styleCache.luau +0 -9
  14. package/out/ui/packages/accordion/components/Accordion.d.ts +0 -2
  15. package/out/ui/packages/accordion/components/Accordion.luau +30 -46
  16. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +0 -1
  17. package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -16
  18. package/out/ui/packages/accordion/components/accordionOpen.d.ts +0 -1
  19. package/out/ui/packages/accordion/components/accordionOpen.luau +0 -4
  20. package/out/ui/packages/alert/components/Alert.d.ts +0 -2
  21. package/out/ui/packages/alert/components/Alert.luau +42 -48
  22. package/out/ui/packages/alert/components/Alert.styles.d.ts +0 -2
  23. package/out/ui/packages/alert/components/Alert.styles.luau +8 -17
  24. package/out/ui/packages/appBar/components/AppBar.d.ts +1 -2
  25. package/out/ui/packages/appBar/components/AppBar.luau +16 -14
  26. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +0 -2
  27. package/out/ui/packages/appBar/components/AppBar.styles.luau +2 -6
  28. package/out/ui/packages/assetField/components/AssetField.luau +16 -12
  29. package/out/ui/packages/autocomplete/components/Autocomplete.luau +0 -8
  30. package/out/ui/packages/avatar/components/Avatar.d.ts +0 -2
  31. package/out/ui/packages/avatar/components/Avatar.luau +26 -27
  32. package/out/ui/packages/avatar/components/Avatar.styles.d.ts +0 -2
  33. package/out/ui/packages/avatar/components/Avatar.styles.luau +1 -5
  34. package/out/ui/packages/badge/components/Badge.d.ts +0 -3
  35. package/out/ui/packages/badge/components/Badge.luau +24 -32
  36. package/out/ui/packages/badge/components/Badge.styles.d.ts +1 -5
  37. package/out/ui/packages/badge/components/Badge.styles.luau +8 -20
  38. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +0 -1
  39. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +18 -20
  40. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +1 -3
  41. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +2 -6
  42. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +0 -1
  43. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +40 -67
  44. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +0 -9
  45. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +0 -68
  46. package/out/ui/packages/breadcrumbs/index.d.ts +0 -1
  47. package/out/ui/packages/breadcrumbs/init.luau +0 -3
  48. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +16 -12
  49. package/out/ui/packages/button/components/Button.luau +22 -28
  50. package/out/ui/packages/card/components/Card.d.ts +1 -3
  51. package/out/ui/packages/card/components/Card.luau +0 -10
  52. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +53 -75
  53. package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +9 -26
  54. package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
  55. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
  56. package/out/ui/packages/chip/components/Chip.d.ts +1 -6
  57. package/out/ui/packages/chip/components/Chip.luau +17 -61
  58. package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -6
  59. package/out/ui/packages/chip/components/Chip.styles.luau +9 -54
  60. package/out/ui/packages/circularProgress/components/CircularProgress.luau +18 -29
  61. package/out/ui/packages/colorPicker/components/ColorPicker.luau +20 -16
  62. package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +20 -34
  63. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +35 -34
  64. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +62 -65
  65. package/out/ui/packages/dialog/components/Dialog.d.ts +2 -3
  66. package/out/ui/packages/dialog/components/Dialog.luau +21 -41
  67. package/out/ui/packages/divider/components/Divider.d.ts +0 -1
  68. package/out/ui/packages/divider/components/Divider.luau +17 -52
  69. package/out/ui/packages/divider/components/Divider.styles.luau +0 -32
  70. package/out/ui/packages/drawer/components/Drawer.d.ts +1 -3
  71. package/out/ui/packages/drawer/components/Drawer.luau +37 -71
  72. package/out/ui/packages/drawer/components/Drawer.styles.d.ts +1 -3
  73. package/out/ui/packages/drawer/components/Drawer.styles.luau +2 -3
  74. package/out/ui/packages/fab/components/Fab.d.ts +0 -3
  75. package/out/ui/packages/fab/components/Fab.luau +37 -79
  76. package/out/ui/packages/fab/components/Fab.styles.d.ts +0 -3
  77. package/out/ui/packages/fab/components/Fab.styles.luau +3 -39
  78. package/out/ui/packages/fab/components/fabSize.d.ts +0 -1
  79. package/out/ui/packages/fab/components/fabSize.luau +0 -4
  80. package/out/ui/packages/fab/index.d.ts +1 -1
  81. package/out/ui/packages/fab/init.luau +0 -1
  82. package/out/ui/packages/fontEditor/components/FontEditor.luau +16 -12
  83. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +42 -56
  84. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +4 -37
  85. package/out/ui/packages/icon/components/Icon.luau +16 -9
  86. package/out/ui/packages/iconButton/components/IconButton.luau +17 -22
  87. package/out/ui/packages/iconButton/components/IconButton.styles.luau +0 -3
  88. package/out/ui/packages/index.d.ts +0 -8
  89. package/out/ui/packages/init.luau +0 -24
  90. package/out/ui/packages/input/components/Input.d.ts +0 -1
  91. package/out/ui/packages/input/components/Input.luau +19 -22
  92. package/out/ui/packages/layout/components/Grid.d.ts +1 -5
  93. package/out/ui/packages/layout/components/Grid.luau +19 -41
  94. package/out/ui/packages/layout/components/List.luau +16 -9
  95. package/out/ui/packages/layout/index.d.ts +0 -14
  96. package/out/ui/packages/layout/init.luau +0 -5
  97. package/out/ui/packages/listItem/components/ListItem.d.ts +1 -4
  98. package/out/ui/packages/listItem/components/ListItem.luau +4 -44
  99. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
  100. package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -16
  101. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +1 -7
  102. package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +19 -23
  103. package/out/ui/packages/menu/components/Menu.d.ts +1 -7
  104. package/out/ui/packages/menu/components/Menu.luau +26 -68
  105. package/out/ui/packages/menu/components/Menu.styles.luau +1 -5
  106. package/out/ui/packages/modal/components/Modal.d.ts +1 -2
  107. package/out/ui/packages/modal/components/Modal.luau +37 -79
  108. package/out/ui/packages/motion/index.d.ts +1 -1
  109. package/out/ui/packages/motion/init.luau +0 -1
  110. package/out/ui/packages/motion/unit.d.ts +0 -5
  111. package/out/ui/packages/motion/unit.luau +0 -23
  112. package/out/ui/packages/numberInput/components/NumberInput.d.ts +0 -2
  113. package/out/ui/packages/numberInput/components/NumberInput.luau +3 -16
  114. package/out/ui/packages/numberInput/components/numberValue.d.ts +0 -1
  115. package/out/ui/packages/numberInput/components/numberValue.luau +0 -45
  116. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +16 -12
  117. package/out/ui/packages/pagination/components/Pagination.d.ts +1 -6
  118. package/out/ui/packages/pagination/components/Pagination.luau +38 -62
  119. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +1 -6
  120. package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -36
  121. package/out/ui/packages/pagination/components/pageRange.d.ts +1 -2
  122. package/out/ui/packages/pagination/components/pageRange.luau +8 -91
  123. package/out/ui/packages/pagination/index.d.ts +0 -1
  124. package/out/ui/packages/pagination/init.luau +0 -1
  125. package/out/ui/packages/paper/components/Paper.d.ts +2 -4
  126. package/out/ui/packages/paper/components/Paper.luau +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/rayEditor/components/RayEditor.luau +16 -12
  144. package/out/ui/packages/rectEditor/components/RectEditor.luau +43 -86
  145. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +7 -30
  146. package/out/ui/packages/select/components/Select.d.ts +0 -5
  147. package/out/ui/packages/select/components/Select.luau +77 -61
  148. package/out/ui/packages/select/components/Select.styles.luau +1 -1
  149. package/out/ui/packages/select/components/selectMotion.d.ts +2 -0
  150. package/out/ui/packages/select/components/selectMotion.luau +12 -0
  151. package/out/ui/packages/shadow/components/Shadow.d.ts +1 -2
  152. package/out/ui/packages/shadow/components/Shadow.luau +17 -39
  153. package/out/ui/packages/shadow/components/Shadow.styles.luau +2 -7
  154. package/out/ui/packages/sidebar/components/Sidebar.luau +16 -9
  155. package/out/ui/packages/skeleton/components/Skeleton.luau +30 -22
  156. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +2 -7
  157. package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
  158. package/out/ui/packages/slider/components/Slider.d.ts +0 -3
  159. package/out/ui/packages/slider/components/Slider.luau +19 -47
  160. package/out/ui/packages/slider/components/Slider.styles.d.ts +0 -2
  161. package/out/ui/packages/slider/components/Slider.styles.luau +1 -14
  162. package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
  163. package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
  164. package/out/ui/packages/splitPane/components/SplitPane.luau +17 -13
  165. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  166. package/out/ui/packages/stateMatrix.d.ts +0 -2
  167. package/out/ui/packages/stateMatrix.luau +881 -872
  168. package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
  169. package/out/ui/packages/stepper/components/Stepper.luau +17 -16
  170. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
  171. package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
  172. package/out/ui/packages/switch/components/Switch.d.ts +0 -2
  173. package/out/ui/packages/switch/components/Switch.luau +16 -21
  174. package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
  175. package/out/ui/packages/switch/components/Switch.styles.luau +1 -6
  176. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  177. package/out/ui/packages/table/components/Table.d.ts +0 -1
  178. package/out/ui/packages/table/components/Table.luau +19 -15
  179. package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
  180. package/out/ui/packages/table/components/Table.styles.luau +6 -10
  181. package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
  182. package/out/ui/packages/tabs/components/Tabs.luau +19 -24
  183. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
  184. package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
  185. package/out/ui/packages/tabs/index.d.ts +0 -1
  186. package/out/ui/packages/tabs/init.luau +0 -1
  187. package/out/ui/packages/toast/components/Toast.d.ts +0 -2
  188. package/out/ui/packages/toast/components/Toast.luau +13 -41
  189. package/out/ui/packages/toast/components/Toast.styles.luau +5 -23
  190. package/out/ui/packages/tooltip/components/Tooltip.luau +16 -9
  191. package/out/ui/packages/treeView/components/TreeView.luau +16 -9
  192. package/out/ui/packages/typography/components/Typography.luau +14 -13
  193. package/out/ui/packages/udimEditor/components/UDimEditor.luau +16 -12
  194. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +16 -12
  195. package/out/ui/packages/virtualList/components/VirtualList.luau +16 -9
  196. package/out/ui/packages/virtualList/index.d.ts +0 -2
  197. package/out/ui/packages/virtualList/init.luau +0 -1
  198. package/package.json +2 -2
  199. package/out/hooks/viewportObserver.d.ts +0 -10
  200. package/out/hooks/viewportObserver.luau +0 -75
  201. package/out/theme/styles/utilities/resolveSx.d.ts +0 -110
  202. package/out/theme/styles/utilities/resolveSx.luau +0 -479
  203. package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
  204. package/out/ui/packages/backdrop/components/Backdrop.luau +0 -51
  205. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
  206. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
  207. package/out/ui/packages/backdrop/index.d.ts +0 -2
  208. package/out/ui/packages/backdrop/init.luau +0 -5
  209. package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
  210. package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
  211. package/out/ui/packages/formText/components/FormHelperText.d.ts +0 -8
  212. package/out/ui/packages/formText/components/FormHelperText.luau +0 -40
  213. package/out/ui/packages/formText/components/FormLabel.d.ts +0 -9
  214. package/out/ui/packages/formText/components/FormLabel.luau +0 -42
  215. package/out/ui/packages/formText/components/FormText.styles.d.ts +0 -5
  216. package/out/ui/packages/formText/components/FormText.styles.luau +0 -33
  217. package/out/ui/packages/formText/index.d.ts +0 -4
  218. package/out/ui/packages/formText/init.luau +0 -6
  219. package/out/ui/packages/host/components/SxHost.d.ts +0 -18
  220. package/out/ui/packages/host/components/SxHost.luau +0 -202
  221. package/out/ui/packages/host/hostPaint.d.ts +0 -11
  222. package/out/ui/packages/host/hostPaint.luau +0 -33
  223. package/out/ui/packages/host/hostRules.d.ts +0 -15
  224. package/out/ui/packages/host/hostRules.luau +0 -92
  225. package/out/ui/packages/host/index.d.ts +0 -3
  226. package/out/ui/packages/host/init.luau +0 -13
  227. package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
  228. package/out/ui/packages/imageList/components/ImageList.luau +0 -93
  229. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
  230. package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
  231. package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
  232. package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
  233. package/out/ui/packages/imageList/index.d.ts +0 -2
  234. package/out/ui/packages/imageList/init.luau +0 -5
  235. package/out/ui/packages/layout/components/Box.d.ts +0 -11
  236. package/out/ui/packages/layout/components/Box.luau +0 -40
  237. package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
  238. package/out/ui/packages/layout/components/Box.styles.luau +0 -34
  239. package/out/ui/packages/layout/components/Container.d.ts +0 -10
  240. package/out/ui/packages/layout/components/Container.luau +0 -45
  241. package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
  242. package/out/ui/packages/layout/components/Container.styles.luau +0 -41
  243. package/out/ui/packages/layout/components/FlexItem.d.ts +0 -12
  244. package/out/ui/packages/layout/components/FlexItem.luau +0 -40
  245. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +0 -8
  246. package/out/ui/packages/layout/components/FlexItem.styles.luau +0 -66
  247. package/out/ui/packages/layout/components/Stack.d.ts +0 -14
  248. package/out/ui/packages/layout/components/Stack.luau +0 -44
  249. package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -10
  250. package/out/ui/packages/layout/components/Stack.styles.luau +0 -101
  251. package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
  252. package/out/ui/packages/layout/components/boxPad.luau +0 -59
  253. package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
  254. package/out/ui/packages/layout/components/containerWidth.luau +0 -17
  255. package/out/ui/packages/layout/components/flexItemMode.d.ts +0 -6
  256. package/out/ui/packages/layout/components/flexItemMode.luau +0 -36
  257. package/out/ui/packages/layout/components/gridProps.d.ts +0 -3
  258. package/out/ui/packages/layout/components/gridProps.luau +0 -20
  259. package/out/ui/packages/layout/components/stackAlign.d.ts +0 -10
  260. package/out/ui/packages/layout/components/stackAlign.luau +0 -43
  261. package/out/ui/packages/link/components/Link.d.ts +0 -11
  262. package/out/ui/packages/link/components/Link.luau +0 -80
  263. package/out/ui/packages/link/components/Link.styles.d.ts +0 -8
  264. package/out/ui/packages/link/components/Link.styles.luau +0 -59
  265. package/out/ui/packages/link/index.d.ts +0 -3
  266. package/out/ui/packages/link/init.luau +0 -5
  267. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +0 -11
  268. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +0 -2
  269. package/out/ui/packages/markdown/components/Markdown.d.ts +0 -6
  270. package/out/ui/packages/markdown/components/Markdown.luau +0 -221
  271. package/out/ui/packages/markdown/components/Markdown.styles.d.ts +0 -2
  272. package/out/ui/packages/markdown/components/Markdown.styles.luau +0 -101
  273. package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +0 -16
  274. package/out/ui/packages/markdown/components/MarkdownEditor.luau +0 -315
  275. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +0 -6
  276. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +0 -132
  277. package/out/ui/packages/markdown/htmlToMarkdown.d.ts +0 -2
  278. package/out/ui/packages/markdown/htmlToMarkdown.luau +0 -350
  279. package/out/ui/packages/markdown/index.d.ts +0 -8
  280. package/out/ui/packages/markdown/init.luau +0 -11
  281. package/out/ui/packages/markdown/parseMarkdown.d.ts +0 -42
  282. package/out/ui/packages/markdown/parseMarkdown.luau +0 -459
  283. package/out/ui/packages/rating/components/Rating.d.ts +0 -11
  284. package/out/ui/packages/rating/components/Rating.luau +0 -97
  285. package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -6
  286. package/out/ui/packages/rating/components/Rating.styles.luau +0 -44
  287. package/out/ui/packages/rating/index.d.ts +0 -2
  288. package/out/ui/packages/rating/init.luau +0 -5
  289. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
  290. package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
  291. package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
  292. package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
  293. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
  294. package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
  295. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -19
  296. package/out/ui/packages/speedDial/components/SpeedDial.luau +0 -97
  297. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +0 -5
  298. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +0 -31
  299. package/out/ui/packages/speedDial/index.d.ts +0 -3
  300. package/out/ui/packages/speedDial/init.luau +0 -5
  301. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
  302. package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
  303. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +0 -21
  304. package/out/ui/packages/toggleButton/components/ToggleButton.luau +0 -129
  305. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -9
  306. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +0 -69
  307. package/out/ui/packages/toggleButton/index.d.ts +0 -2
  308. package/out/ui/packages/toggleButton/init.luau +0 -7
  309. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +0 -7
  310. package/out/ui/packages/virtualList/components/EmptyListHint.luau +0 -43
  311. package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +0 -5
  312. package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +0 -26
@@ -1,110 +0,0 @@
1
- /** Dot-path into `theme.palette` (typed for common roles). */
2
- export type PaletteToken = "surface.canvas" | "surface.paper" | "surface.elevated" | "surface.overlay" | "surface.input" | "primary.main" | "primary.on" | "primary.hover" | "primary.pressed" | "accent.main" | "accent.on" | "accent.hover" | "accent.pressed" | "text.primary" | "text.secondary" | "text.disabled" | "text.inverse" | "text.link" | "border" | "divider" | "focus" | "action.hover" | "action.pressed" | "action.selected" | "action.disabled" | "status.success.main" | "status.success.on" | "status.success.surface" | "status.success.border" | "status.warning.main" | "status.warning.on" | "status.warning.surface" | "status.warning.border" | "status.error.main" | "status.error.on" | "status.error.surface" | "status.error.border" | "status.info.main" | "status.info.on" | "status.info.surface" | "status.info.border" | "backdrop" | "shadow";
3
- export declare function resolvePaletteToken(palette: object, token: PaletteToken | Color3): Color3;
4
- /** Matches `hooks/breakpoints` thresholds. Kept local so Node style checks need no path aliases. */
5
- type Responsive<T> = T | {
6
- phone?: T;
7
- tablet?: T;
8
- desktop?: T;
9
- };
10
- type PadInput = number | {
11
- x?: number;
12
- y?: number;
13
- top?: number;
14
- right?: number;
15
- bottom?: number;
16
- left?: number;
17
- };
18
- interface SxTheme {
19
- spacing: {
20
- calc: (multiple: number) => number;
21
- };
22
- palette: object;
23
- typography: {
24
- fontFamilies: {
25
- [family: string]: Enum.Font;
26
- };
27
- variants: {
28
- [name: string]: {
29
- size: number;
30
- family: string;
31
- };
32
- };
33
- };
34
- }
35
- export type SxColor = PaletteToken | Color3;
36
- /** CSS-like shorthands + pass-through Instance props. No CSS string parser. */
37
- export type SxInput = {
38
- width?: Responsive<number | UDim | UDim2>;
39
- height?: Responsive<number | UDim | UDim2>;
40
- w?: Responsive<number | UDim | UDim2>;
41
- h?: Responsive<number | UDim | UDim2>;
42
- size?: Responsive<UDim2 | {
43
- width?: number | UDim;
44
- height?: number | UDim;
45
- }>;
46
- x?: Responsive<number | UDim>;
47
- y?: Responsive<number | UDim>;
48
- position?: Responsive<UDim2>;
49
- pos?: Responsive<UDim2>;
50
- anchor?: Responsive<Vector2 | number | [number, number]>;
51
- p?: Responsive<number>;
52
- px?: Responsive<number>;
53
- py?: Responsive<number>;
54
- pt?: Responsive<number>;
55
- pr?: Responsive<number>;
56
- pb?: Responsive<number>;
57
- pl?: Responsive<number>;
58
- padding?: Responsive<PadInput>;
59
- gap?: Responsive<number>;
60
- bgcolor?: Responsive<SxColor>;
61
- bg?: Responsive<SxColor>;
62
- backgroundColor?: Responsive<SxColor>;
63
- color?: Responsive<SxColor>;
64
- borderColor?: Responsive<SxColor>;
65
- opacity?: Responsive<number>;
66
- transparency?: Responsive<number>;
67
- border?: Responsive<number>;
68
- borderWidth?: Responsive<number>;
69
- radius?: Responsive<number>;
70
- typography?: Responsive<string>;
71
- fontSize?: Responsive<number>;
72
- font?: Responsive<Enum.Font | string>;
73
- visible?: Responsive<boolean>;
74
- zIndex?: Responsive<number>;
75
- z?: Responsive<number>;
76
- _hover?: SxInput;
77
- _pressed?: SxInput;
78
- _focus?: SxInput;
79
- _focusVisible?: SxInput;
80
- _disabled?: SxInput;
81
- _selected?: SxInput;
82
- _checked?: SxInput;
83
- _loading?: SxInput;
84
- _first?: SxInput;
85
- _last?: SxInput;
86
- _odd?: SxInput;
87
- _even?: SxInput;
88
- [key: string]: unknown;
89
- };
90
- export interface ResolvedSx {
91
- root: {
92
- [key: string]: unknown;
93
- };
94
- padding?: {
95
- PaddingTop: UDim;
96
- PaddingRight: UDim;
97
- PaddingBottom: UDim;
98
- PaddingLeft: UDim;
99
- };
100
- corner?: {
101
- CornerRadius: UDim;
102
- };
103
- gap?: number;
104
- }
105
- /**
106
- * Maps sx shorthands / tokens → Instance props (+ UIPadding / UICorner / gap helpers).
107
- * Pass-through keys (BackgroundColor3, _hover, …) stay on `root` for `resolveStyle`.
108
- */
109
- export declare function resolveSx(theme: SxTheme, sx?: SxInput, width?: number): ResolvedSx;
110
- export {};
@@ -1,479 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- --* Dot-path into `theme.palette` (typed for common roles).
3
- local function resolvePaletteToken(palette, token)
4
- local _token = token
5
- if not (type(_token) == "string") then
6
- return token
7
- end
8
- local parts = string.split(token, ".")
9
- local cursor = palette
10
- for _, part in parts do
11
- local _condition = cursor == nil
12
- if not _condition then
13
- local _cursor = cursor
14
- _condition = typeof(_cursor) ~= "table"
15
- end
16
- if _condition then
17
- return Color3.new(0, 0, 0)
18
- end
19
- cursor = cursor[part]
20
- end
21
- local _cursor = cursor
22
- if typeof(_cursor) == "Color3" then
23
- return cursor
24
- end
25
- return Color3.new(0, 0, 0)
26
- end
27
- --* Matches `hooks/breakpoints` thresholds. Kept local so Node style checks need no path aliases.
28
- local function resolveResponsive(value, width)
29
- local _condition = value == nil
30
- if not _condition then
31
- local _value = value
32
- _condition = typeof(_value) ~= "table"
33
- end
34
- if _condition then
35
- return value
36
- end
37
- local record = value
38
- local size = if width == width and width < math.huge and width > 0 then width else 0
39
- local name = if size < 600 then "phone" elseif size < 960 then "tablet" else "desktop"
40
- if name == "desktop" then
41
- local _condition_1 = record.desktop
42
- if _condition_1 == nil then
43
- _condition_1 = record.tablet
44
- if _condition_1 == nil then
45
- _condition_1 = record.phone
46
- end
47
- end
48
- return _condition_1
49
- end
50
- if name == "tablet" then
51
- local _condition_1 = record.tablet
52
- if _condition_1 == nil then
53
- _condition_1 = record.phone
54
- end
55
- return _condition_1
56
- end
57
- return record.phone
58
- end
59
- local SELECTORS = {
60
- _hover = true,
61
- _pressed = true,
62
- _focus = true,
63
- _focusVisible = true,
64
- _disabled = true,
65
- _selected = true,
66
- _checked = true,
67
- _loading = true,
68
- _first = true,
69
- _last = true,
70
- _odd = true,
71
- _even = true,
72
- }
73
- local SHORTHAND = {
74
- width = true,
75
- height = true,
76
- w = true,
77
- h = true,
78
- size = true,
79
- x = true,
80
- y = true,
81
- position = true,
82
- pos = true,
83
- anchor = true,
84
- p = true,
85
- px = true,
86
- py = true,
87
- pt = true,
88
- pr = true,
89
- pb = true,
90
- pl = true,
91
- padding = true,
92
- gap = true,
93
- bgcolor = true,
94
- bg = true,
95
- backgroundColor = true,
96
- color = true,
97
- borderColor = true,
98
- opacity = true,
99
- transparency = true,
100
- border = true,
101
- borderWidth = true,
102
- radius = true,
103
- typography = true,
104
- fontSize = true,
105
- font = true,
106
- visible = true,
107
- zIndex = true,
108
- z = true,
109
- }
110
- --* CSS-like shorthands + pass-through Instance props. No CSS string parser.
111
- local function pick(value, width)
112
- if value == nil then
113
- return nil
114
- end
115
- if width ~= nil then
116
- return resolveResponsive(value, width)
117
- end
118
- local _value = value
119
- if typeof(_value) ~= "table" then
120
- return value
121
- end
122
- local record = value
123
- if record.phone ~= nil or record.tablet ~= nil or record.desktop ~= nil then
124
- local _condition = record.desktop
125
- if _condition == nil then
126
- _condition = record.tablet
127
- if _condition == nil then
128
- _condition = record.phone
129
- end
130
- end
131
- return _condition
132
- end
133
- return value
134
- end
135
- local function asUDim(value)
136
- local _value = value
137
- return if type(_value) == "number" then UDim.new(0, value) else value
138
- end
139
- local function sizeAxis(value, axis)
140
- if value == nil then
141
- return nil
142
- end
143
- local _value = value
144
- if type(_value) == "number" then
145
- return UDim.new(0, value)
146
- end
147
- local _value_1 = value
148
- if typeof(_value_1) == "UDim" then
149
- return value
150
- end
151
- return if axis == "X" then value.X else value.Y
152
- end
153
- local function padSides(padding)
154
- if padding == nil then
155
- return {
156
- top = 0,
157
- right = 0,
158
- bottom = 0,
159
- left = 0,
160
- }
161
- end
162
- local _padding = padding
163
- if type(_padding) == "number" then
164
- return {
165
- top = padding,
166
- right = padding,
167
- bottom = padding,
168
- left = padding,
169
- }
170
- end
171
- local _condition = padding.x
172
- if _condition == nil then
173
- _condition = 0
174
- end
175
- local x = _condition
176
- local _condition_1 = padding.y
177
- if _condition_1 == nil then
178
- _condition_1 = 0
179
- end
180
- local y = _condition_1
181
- local _object = {}
182
- local _left = "top"
183
- local _condition_2 = padding.top
184
- if _condition_2 == nil then
185
- _condition_2 = y
186
- end
187
- _object[_left] = _condition_2
188
- local _left_1 = "right"
189
- local _condition_3 = padding.right
190
- if _condition_3 == nil then
191
- _condition_3 = x
192
- end
193
- _object[_left_1] = _condition_3
194
- local _left_2 = "bottom"
195
- local _condition_4 = padding.bottom
196
- if _condition_4 == nil then
197
- _condition_4 = y
198
- end
199
- _object[_left_2] = _condition_4
200
- local _left_3 = "left"
201
- local _condition_5 = padding.left
202
- if _condition_5 == nil then
203
- _condition_5 = x
204
- end
205
- _object[_left_3] = _condition_5
206
- return _object
207
- end
208
- local function colorOf(theme, value)
209
- if value == nil then
210
- return nil
211
- end
212
- return resolvePaletteToken(theme.palette, value)
213
- end
214
- --[[
215
- *
216
- * Maps sx shorthands / tokens → Instance props (+ UIPadding / UICorner / gap helpers).
217
- * Pass-through keys (BackgroundColor3, _hover, …) stay on `root` for `resolveStyle`.
218
-
219
- ]]
220
- local function resolveSx(theme, sx, width)
221
- if sx == nil then
222
- return {
223
- root = {},
224
- }
225
- end
226
- local root = {}
227
- local pad
228
- local radius
229
- local gap
230
- local _condition = sx.width
231
- if _condition == nil then
232
- _condition = sx.w
233
- end
234
- local widthVal = pick(_condition, width)
235
- local _condition_1 = sx.height
236
- if _condition_1 == nil then
237
- _condition_1 = sx.h
238
- end
239
- local heightVal = pick(_condition_1, width)
240
- local sizeVal = pick(sx.size, width)
241
- local sizeX = sizeAxis(widthVal, "X")
242
- local sizeY = sizeAxis(heightVal, "Y")
243
- if sizeVal ~= nil then
244
- if typeof(sizeVal) == "UDim2" then
245
- sizeX = sizeX or sizeVal.X
246
- sizeY = sizeY or sizeVal.Y
247
- else
248
- local record = sizeVal
249
- sizeX = sizeX or sizeAxis(record.width, "X")
250
- sizeY = sizeY or sizeAxis(record.height, "Y")
251
- end
252
- end
253
- if sizeX ~= nil or sizeY ~= nil then
254
- local _result = sizeX
255
- if _result ~= nil then
256
- _result = _result.Scale
257
- end
258
- local _condition_2 = _result
259
- if _condition_2 == nil then
260
- _condition_2 = 0
261
- end
262
- local _result_1 = sizeX
263
- if _result_1 ~= nil then
264
- _result_1 = _result_1.Offset
265
- end
266
- local _condition_3 = _result_1
267
- if _condition_3 == nil then
268
- _condition_3 = 0
269
- end
270
- local _result_2 = sizeY
271
- if _result_2 ~= nil then
272
- _result_2 = _result_2.Scale
273
- end
274
- local _condition_4 = _result_2
275
- if _condition_4 == nil then
276
- _condition_4 = 0
277
- end
278
- local _result_3 = sizeY
279
- if _result_3 ~= nil then
280
- _result_3 = _result_3.Offset
281
- end
282
- local _condition_5 = _result_3
283
- if _condition_5 == nil then
284
- _condition_5 = 0
285
- end
286
- root.Size = UDim2.new(_condition_2, _condition_3, _condition_4, _condition_5)
287
- end
288
- local position = pick(sx.position or sx.pos, width)
289
- local x = pick(sx.x, width)
290
- local y = pick(sx.y, width)
291
- if position ~= nil then
292
- root.Position = position
293
- elseif x ~= nil or y ~= nil then
294
- local xU = if x ~= nil then asUDim(x) else UDim.new(0, 0)
295
- local yU = if y ~= nil then asUDim(y) else UDim.new(0, 0)
296
- root.Position = UDim2.new(xU.Scale, xU.Offset, yU.Scale, yU.Offset)
297
- end
298
- local anchor = pick(sx.anchor, width)
299
- if anchor ~= nil then
300
- if type(anchor) == "number" then
301
- root.AnchorPoint = Vector2.new(anchor, anchor)
302
- elseif typeof(anchor) == "Vector2" then
303
- root.AnchorPoint = anchor
304
- else
305
- local pair = anchor
306
- root.AnchorPoint = Vector2.new(pair[1], pair[2])
307
- end
308
- end
309
- local padding = pick(sx.padding, width)
310
- if padding ~= nil then
311
- pad = padSides(padding)
312
- end
313
- local p = pick(sx.p, width)
314
- local px = pick(sx.px, width)
315
- local py = pick(sx.py, width)
316
- local pt = pick(sx.pt, width)
317
- local pr = pick(sx.pr, width)
318
- local pb = pick(sx.pb, width)
319
- local pl = pick(sx.pl, width)
320
- if p ~= nil or px ~= nil or py ~= nil or pt ~= nil or pr ~= nil or pb ~= nil or pl ~= nil then
321
- local base = pad or {
322
- top = 0,
323
- right = 0,
324
- bottom = 0,
325
- left = 0,
326
- }
327
- local _condition_2 = p
328
- if _condition_2 == nil then
329
- _condition_2 = 0
330
- end
331
- local uniform = _condition_2
332
- local _object = {}
333
- local _left = "top"
334
- local _condition_3 = pt
335
- if _condition_3 == nil then
336
- _condition_3 = py
337
- if _condition_3 == nil then
338
- _condition_3 = (if p ~= nil then uniform else base.top)
339
- end
340
- end
341
- _object[_left] = _condition_3
342
- local _left_1 = "right"
343
- local _condition_4 = pr
344
- if _condition_4 == nil then
345
- _condition_4 = px
346
- if _condition_4 == nil then
347
- _condition_4 = (if p ~= nil then uniform else base.right)
348
- end
349
- end
350
- _object[_left_1] = _condition_4
351
- local _left_2 = "bottom"
352
- local _condition_5 = pb
353
- if _condition_5 == nil then
354
- _condition_5 = py
355
- if _condition_5 == nil then
356
- _condition_5 = (if p ~= nil then uniform else base.bottom)
357
- end
358
- end
359
- _object[_left_2] = _condition_5
360
- local _left_3 = "left"
361
- local _condition_6 = pl
362
- if _condition_6 == nil then
363
- _condition_6 = px
364
- if _condition_6 == nil then
365
- _condition_6 = (if p ~= nil then uniform else base.left)
366
- end
367
- end
368
- _object[_left_3] = _condition_6
369
- pad = _object
370
- end
371
- local gapVal = pick(sx.gap, width)
372
- if gapVal ~= nil then
373
- gap = theme.spacing.calc(gapVal)
374
- end
375
- local bg = pick(sx.bgcolor or sx.bg or sx.backgroundColor, width)
376
- local bgColor = colorOf(theme, bg)
377
- if bgColor ~= nil then
378
- root.BackgroundColor3 = bgColor
379
- if root.BackgroundTransparency == nil then
380
- root.BackgroundTransparency = 0
381
- end
382
- end
383
- local textColor = colorOf(theme, pick(sx.color, width))
384
- if textColor ~= nil then
385
- root.TextColor3 = textColor
386
- end
387
- local borderColor = colorOf(theme, pick(sx.borderColor, width))
388
- if borderColor ~= nil then
389
- root.BorderColor3 = borderColor
390
- end
391
- local opacity = pick(sx.opacity, width)
392
- if opacity ~= nil then
393
- root.BackgroundTransparency = 1 - opacity
394
- end
395
- local transparency = pick(sx.transparency, width)
396
- if transparency ~= nil then
397
- root.BackgroundTransparency = transparency
398
- end
399
- local _condition_2 = sx.border
400
- if _condition_2 == nil then
401
- _condition_2 = sx.borderWidth
402
- end
403
- local border = pick(_condition_2, width)
404
- if border ~= nil then
405
- root.BorderSizePixel = border
406
- end
407
- local radiusVal = pick(sx.radius, width)
408
- if radiusVal ~= nil then
409
- radius = radiusVal
410
- end
411
- local typography = pick(sx.typography, width)
412
- if typography ~= nil then
413
- local variant = theme.typography.variants[typography]
414
- if variant ~= nil then
415
- root.TextSize = variant.size
416
- root.Font = theme.typography.fontFamilies[variant.family]
417
- end
418
- end
419
- local fontSize = pick(sx.fontSize, width)
420
- if fontSize ~= nil then
421
- root.TextSize = fontSize
422
- end
423
- local font = pick(sx.font, width)
424
- if font ~= nil then
425
- if typeof(font) == "EnumItem" then
426
- root.Font = font
427
- else
428
- root.Font = theme.typography.fontFamilies[font]
429
- end
430
- end
431
- local visible = pick(sx.visible, width)
432
- if visible ~= nil then
433
- root.Visible = visible
434
- end
435
- local _condition_3 = sx.zIndex
436
- if _condition_3 == nil then
437
- _condition_3 = sx.z
438
- end
439
- local zIndex = pick(_condition_3, width)
440
- if zIndex ~= nil then
441
- root.ZIndex = zIndex
442
- end
443
- for key, raw in pairs(sx) do
444
- local name = key
445
- if SHORTHAND[name] == true then
446
- continue
447
- end
448
- if SELECTORS[name] == true then
449
- local nested = resolveSx(theme, raw, width)
450
- root[name] = nested.root
451
- continue
452
- end
453
- root[name] = pick(raw, width)
454
- end
455
- local resolved = {
456
- root = root,
457
- }
458
- if pad ~= nil then
459
- resolved.padding = {
460
- PaddingTop = UDim.new(0, theme.spacing.calc(pad.top)),
461
- PaddingRight = UDim.new(0, theme.spacing.calc(pad.right)),
462
- PaddingBottom = UDim.new(0, theme.spacing.calc(pad.bottom)),
463
- PaddingLeft = UDim.new(0, theme.spacing.calc(pad.left)),
464
- }
465
- end
466
- if radius ~= nil then
467
- resolved.corner = {
468
- CornerRadius = UDim.new(0, radius),
469
- }
470
- end
471
- if gap ~= nil then
472
- resolved.gap = gap
473
- end
474
- return resolved
475
- end
476
- return {
477
- resolvePaletteToken = resolvePaletteToken,
478
- resolveSx = resolveSx,
479
- }
@@ -1,10 +0,0 @@
1
- import React from "@rbxts/react";
2
- import { CustomizedProps } from "../../../../theme/index";
3
- export interface BackdropProps {
4
- open?: boolean;
5
- invisible?: boolean;
6
- onClick?: () => void;
7
- children?: React.ReactNode;
8
- }
9
- declare function Backdrop(props: CustomizedProps<TextButton, BackdropProps>): JSX.Element | undefined;
10
- export default Backdrop;
@@ -1,51 +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 useBackdropStyles = TS.import(script, script.Parent, "Backdrop.styles").default
6
- local function Backdrop(props)
7
- local _binding = props
8
- local open = _binding.open
9
- if open == nil then
10
- open = true
11
- end
12
- local invisible = _binding.invisible
13
- local onClick = _binding.onClick
14
- local children = _binding.children
15
- local className = _binding.className
16
- local sx = _binding.sx
17
- local id = _binding.id
18
- local ref = _binding.ref
19
- local styles = useBackdropStyles({
20
- invisible = invisible,
21
- })
22
- if open ~= true then
23
- return nil
24
- end
25
- local _attributes = {
26
- tag = "textbutton",
27
- }
28
- local _condition = id
29
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
30
- _condition = "Backdrop"
31
- end
32
- _attributes.key = _condition
33
- _attributes.hostRef = ref
34
- _attributes.base = styles.root
35
- _attributes.className = className
36
- _attributes.sx = sx
37
- _attributes.Event = {
38
- Activated = function()
39
- local _result = onClick
40
- if _result ~= nil then
41
- _result = _result()
42
- end
43
- return _result
44
- end,
45
- }
46
- return React.createElement(SxHost, _attributes, children)
47
- end
48
- local default = Backdrop
49
- return {
50
- default = default,
51
- }
@@ -1,4 +0,0 @@
1
- declare const useBackdropStyles: (props: {
2
- invisible?: boolean;
3
- }) => import("../../../../theme/index").ClassNameMap<string>;
4
- export default useBackdropStyles;
@@ -1,24 +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 componentStyles = _theme.componentStyles
5
- local createStyles = _theme.createStyles
6
- local useBackdropStyles = componentStyles("Backdrop", function(theme, _param)
7
- local invisible = _param.invisible
8
- return createStyles({
9
- root = {
10
- Size = UDim2.fromScale(1, 1),
11
- BackgroundColor3 = theme.palette.backdrop,
12
- BackgroundTransparency = if invisible == true then 1 else 0.45,
13
- BorderSizePixel = 0,
14
- Text = "",
15
- AutoButtonColor = false,
16
- Selectable = false,
17
- ZIndex = 30000,
18
- },
19
- })
20
- end)
21
- local default = useBackdropStyles
22
- return {
23
- default = default,
24
- }
@@ -1,2 +0,0 @@
1
- export { default as Backdrop } from "./components/Backdrop";
2
- export { BackdropProps } from "./components/Backdrop";
@@ -1,5 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- exports.Backdrop = TS.import(script, script, "components", "Backdrop").default
5
- return exports
@@ -1 +0,0 @@
1
- export declare function dividerLabel(text?: string): string | undefined;
@@ -1,10 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function dividerLabel(text)
3
- if text == nil or #text == 0 then
4
- return nil
5
- end
6
- return text
7
- end
8
- return {
9
- dividerLabel = dividerLabel,
10
- }