@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,10 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function snackbarActionLabel(action)
3
- if action == nil or #action == 0 then
4
- return nil
5
- end
6
- return action
7
- end
8
- return {
9
- snackbarActionLabel = snackbarActionLabel,
10
- }
@@ -1,19 +0,0 @@
1
- import { CustomizedProps } from "../../../../theme/index";
2
- import { Icons } from "../../../enums/index";
3
- import { SpeedDialDirection } from "./SpeedDial.styles";
4
- export interface SpeedDialAction {
5
- icon: Icons;
6
- disabled?: boolean;
7
- onClick?: () => void;
8
- }
9
- export interface SpeedDialProps {
10
- open: boolean;
11
- onOpenChange: (open: boolean) => void;
12
- actions: SpeedDialAction[];
13
- icon?: Icons;
14
- openIcon?: Icons;
15
- disabled?: boolean;
16
- direction?: SpeedDialDirection;
17
- }
18
- declare function SpeedDial(props: CustomizedProps<Frame, SpeedDialProps>): JSX.Element;
19
- export default SpeedDial;
@@ -1,97 +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 Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
5
- local Fab = TS.import(script, script.Parent.Parent.Parent, "fab").Fab
6
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
7
- local useSpeedDialStyles = TS.import(script, script.Parent, "SpeedDial.styles").default
8
- local function SpeedDial(props)
9
- local _binding = props
10
- local open = _binding.open
11
- local onOpenChange = _binding.onOpenChange
12
- local actions = _binding.actions
13
- local icon = _binding.icon
14
- if icon == nil then
15
- icon = Icons.OpenBox
16
- end
17
- local openIcon = _binding.openIcon
18
- if openIcon == nil then
19
- openIcon = Icons.Close
20
- end
21
- local disabled = _binding.disabled
22
- local direction = _binding.direction
23
- if direction == nil then
24
- direction = "up"
25
- end
26
- local className = _binding.className
27
- local sx = _binding.sx
28
- local id = _binding.id
29
- local ref = _binding.ref
30
- local styles = useSpeedDialStyles({
31
- direction = direction,
32
- })
33
- local mainFirst = direction == "down" or direction == "right"
34
- local mainOrder = if mainFirst then 0 else 1000
35
- local actionBase = if mainFirst then 1 else 0
36
- local _attributes = {
37
- tag = "frame",
38
- }
39
- local _condition = id
40
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
41
- _condition = "SpeedDial"
42
- end
43
- _attributes.key = _condition
44
- _attributes.hostRef = ref
45
- _attributes.base = styles.root
46
- _attributes.className = className
47
- _attributes.sx = sx
48
- _attributes.state = {
49
- disabled = disabled,
50
- }
51
- local _attributes_1 = table.clone(styles.list)
52
- setmetatable(_attributes_1, nil)
53
- local _exp = React.createElement("uilistlayout", _attributes_1)
54
- local _condition_1 = open
55
- if _condition_1 then
56
- -- ▼ ReadonlyArray.map ▼
57
- local _newValue = table.create(#actions)
58
- local _callback = function(action, index)
59
- return React.createElement(Fab, {
60
- key = `Action-{index}`,
61
- icon = action.icon,
62
- size = "small",
63
- disabled = disabled == true or action.disabled == true,
64
- onClick = function()
65
- local _result = action.onClick
66
- if _result ~= nil then
67
- _result()
68
- end
69
- onOpenChange(false)
70
- end,
71
- className = {
72
- LayoutOrder = actionBase + index,
73
- },
74
- })
75
- end
76
- for _k, _v in actions do
77
- _newValue[_k] = _callback(_v, _k - 1, actions)
78
- end
79
- -- ▲ ReadonlyArray.map ▲
80
- _condition_1 = (React.createElement(React.Fragment, nil, _newValue))
81
- end
82
- return React.createElement(SxHost, _attributes, _exp, _condition_1, React.createElement(Fab, {
83
- key = "Main",
84
- icon = if open then openIcon else icon,
85
- disabled = disabled,
86
- onClick = function()
87
- return onOpenChange(not open)
88
- end,
89
- className = {
90
- LayoutOrder = mainOrder,
91
- },
92
- }))
93
- end
94
- local default = SpeedDial
95
- return {
96
- default = default,
97
- }
@@ -1,5 +0,0 @@
1
- export type SpeedDialDirection = "up" | "down" | "left" | "right";
2
- declare const useSpeedDialStyles: (props: {
3
- direction?: SpeedDialDirection;
4
- }) => import("../../../../theme/index").ClassNameMap<string>;
5
- export default useSpeedDialStyles;
@@ -1,31 +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 useSpeedDialStyles = componentStyles("SpeedDial", function(theme, _param)
7
- local direction = _param.direction
8
- if direction == nil then
9
- direction = "up"
10
- end
11
- local vertical = direction == "up" or direction == "down"
12
- return createStyles({
13
- root = {
14
- AutomaticSize = Enum.AutomaticSize.XY,
15
- Size = UDim2.fromScale(0, 0),
16
- BackgroundTransparency = 1,
17
- BorderSizePixel = 0,
18
- },
19
- list = {
20
- FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
21
- HorizontalAlignment = if direction == "left" then Enum.HorizontalAlignment.Right elseif direction == "right" then Enum.HorizontalAlignment.Left else Enum.HorizontalAlignment.Center,
22
- VerticalAlignment = if direction == "up" then Enum.VerticalAlignment.Bottom elseif direction == "down" then Enum.VerticalAlignment.Top else Enum.VerticalAlignment.Center,
23
- SortOrder = Enum.SortOrder.LayoutOrder,
24
- Padding = UDim.new(0, theme.padding.calc(1)),
25
- },
26
- })
27
- end)
28
- local default = useSpeedDialStyles
29
- return {
30
- default = default,
31
- }
@@ -1,3 +0,0 @@
1
- export { default as SpeedDial } from "./components/SpeedDial";
2
- export { SpeedDialProps, SpeedDialAction } from "./components/SpeedDial";
3
- export { SpeedDialDirection } from "./components/SpeedDial.styles";
@@ -1,5 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- exports.SpeedDial = TS.import(script, script, "components", "SpeedDial").default
5
- return exports
@@ -1,2 +0,0 @@
1
- export type TabsOrientation = "horizontal" | "vertical";
2
- export declare function tabsIsVertical(orientation?: TabsOrientation): orientation is "vertical";
@@ -1,7 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function tabsIsVertical(orientation)
3
- return orientation == "vertical"
4
- end
5
- return {
6
- tabsIsVertical = tabsIsVertical,
7
- }
@@ -1,21 +0,0 @@
1
- import { ControlSize, CustomizedProps } from "../../../../theme/index";
2
- import { ChoiceOption } from "../../radioGroup/index";
3
- import { ToggleButtonOrientation } from "./ToggleButton.styles";
4
- export interface ToggleButtonProps {
5
- label: string;
6
- selected?: boolean;
7
- disabled?: boolean;
8
- size?: ControlSize;
9
- onActivated?: () => void;
10
- }
11
- declare function ToggleButton(props: CustomizedProps<TextButton, ToggleButtonProps>): JSX.Element;
12
- export interface ToggleButtonGroupProps<T> {
13
- value: T;
14
- options: ChoiceOption<T>[];
15
- onChange: (value: T) => void;
16
- disabled?: boolean;
17
- size?: ControlSize;
18
- orientation?: ToggleButtonOrientation;
19
- }
20
- export declare function ToggleButtonGroup<T>(props: CustomizedProps<Frame, ToggleButtonGroupProps<T>>): JSX.Element;
21
- export default ToggleButton;
@@ -1,129 +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 canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
5
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
6
- local useToggleButtonStyles = TS.import(script, script.Parent, "ToggleButton.styles").default
7
- local function ToggleButton(props)
8
- local _binding = props
9
- local label = _binding.label
10
- local selected = _binding.selected
11
- local disabled = _binding.disabled
12
- local size = _binding.size
13
- if size == nil then
14
- size = "medium"
15
- end
16
- local onActivated = _binding.onActivated
17
- local className = _binding.className
18
- local sx = _binding.sx
19
- local id = _binding.id
20
- local ref = _binding.ref
21
- local styles = useToggleButtonStyles({
22
- selected = selected,
23
- disabled = disabled,
24
- size = size,
25
- })
26
- local active = canActivate(disabled)
27
- local _attributes = {
28
- tag = "textbutton",
29
- }
30
- local _condition = id
31
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
32
- _condition = "ToggleButton"
33
- end
34
- _attributes.key = _condition
35
- _attributes.hostRef = ref
36
- _attributes.base = styles.root
37
- _attributes.className = className
38
- _attributes.sx = sx
39
- _attributes.state = {
40
- disabled = disabled,
41
- selected = selected,
42
- }
43
- _attributes.Text = label
44
- _attributes.Active = active
45
- _attributes.Selectable = active
46
- _attributes.Event = {
47
- Activated = function()
48
- if active then
49
- local _result = onActivated
50
- if _result ~= nil then
51
- _result()
52
- end
53
- end
54
- end,
55
- }
56
- local _attributes_1 = table.clone(styles.padding)
57
- setmetatable(_attributes_1, nil)
58
- local _exp = React.createElement("uipadding", _attributes_1)
59
- local _attributes_2 = table.clone(styles.corner)
60
- setmetatable(_attributes_2, nil)
61
- local _exp_1 = React.createElement("uicorner", _attributes_2)
62
- local _attributes_3 = table.clone(styles.stroke)
63
- setmetatable(_attributes_3, nil)
64
- return React.createElement(SxHost, _attributes, _exp, _exp_1, React.createElement("uistroke", _attributes_3))
65
- end
66
- local function ToggleButtonGroup(props)
67
- local _binding = props
68
- local value = _binding.value
69
- local options = _binding.options
70
- local onChange = _binding.onChange
71
- local disabled = _binding.disabled
72
- local size = _binding.size
73
- local orientation = _binding.orientation
74
- local className = _binding.className
75
- local sx = _binding.sx
76
- local id = _binding.id
77
- local ref = _binding.ref
78
- local styles = useToggleButtonStyles({
79
- size = size,
80
- orientation = orientation,
81
- })
82
- local _attributes = {
83
- tag = "frame",
84
- }
85
- local _condition = id
86
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
87
- _condition = "ToggleButtonGroup"
88
- end
89
- _attributes.key = _condition
90
- _attributes.hostRef = ref
91
- _attributes.base = styles.group
92
- _attributes.className = className
93
- _attributes.sx = sx
94
- _attributes.state = {
95
- disabled = disabled,
96
- }
97
- local _attributes_1 = table.clone(styles.list)
98
- setmetatable(_attributes_1, nil)
99
- local _exp = React.createElement("uilistlayout", _attributes_1)
100
- -- ▼ ReadonlyArray.map ▼
101
- local _newValue = table.create(#options)
102
- local _callback = function(choice, index)
103
- return React.createElement(ToggleButton, {
104
- key = `{choice.label}-{index}`,
105
- label = choice.label,
106
- selected = choice.value == value,
107
- disabled = disabled == true or choice.disabled == true,
108
- size = size,
109
- onActivated = function()
110
- if choice.value ~= value then
111
- onChange(choice.value)
112
- end
113
- end,
114
- className = {
115
- LayoutOrder = index,
116
- },
117
- })
118
- end
119
- for _k, _v in options do
120
- _newValue[_k] = _callback(_v, _k - 1, options)
121
- end
122
- -- ▲ ReadonlyArray.map ▲
123
- return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
124
- end
125
- local default = ToggleButton
126
- return {
127
- ToggleButtonGroup = ToggleButtonGroup,
128
- default = default,
129
- }
@@ -1,9 +0,0 @@
1
- import { ControlSize } from "../../../../theme/index";
2
- export type ToggleButtonOrientation = "horizontal" | "vertical";
3
- declare const useToggleButtonStyles: (props: {
4
- selected?: boolean;
5
- disabled?: boolean;
6
- size?: ControlSize;
7
- orientation?: ToggleButtonOrientation;
8
- }) => import("../../../../theme/index").ClassNameMap<string>;
9
- export default useToggleButtonStyles;
@@ -1,69 +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 useToggleButtonStyles = componentStyles("ToggleButton", function(theme, _param)
7
- local selected = _param.selected
8
- if selected == nil then
9
- selected = false
10
- end
11
- local disabled = _param.disabled
12
- if disabled == nil then
13
- disabled = false
14
- end
15
- local size = _param.size
16
- if size == nil then
17
- size = "medium"
18
- end
19
- local orientation = _param.orientation
20
- if orientation == nil then
21
- orientation = "horizontal"
22
- end
23
- local height = if size == "small" then theme.spacing.calc(3) elseif size == "large" then theme.spacing.calc(5) else theme.spacing.calc(4)
24
- local textSize = if size == "small" then theme.typography.fontSizes.caption elseif size == "large" then theme.typography.fontSizes.h6 else theme.typography.fontSizes.body
25
- local pad = theme.padding.calc(if size == "small" then 1 else 1.5)
26
- return createStyles({
27
- root = {
28
- AutomaticSize = Enum.AutomaticSize.X,
29
- Size = UDim2.new(0, 0, 0, height),
30
- BackgroundColor3 = if selected then theme.palette.action.selected else theme.palette.surface.input,
31
- BorderSizePixel = 0,
32
- AutoButtonColor = false,
33
- Active = not disabled,
34
- Selectable = not disabled,
35
- TextColor3 = if disabled then theme.palette.text.disabled elseif selected then theme.palette.primary.main else theme.palette.text.primary,
36
- Font = theme.typography.fontFamilies.default,
37
- TextSize = textSize,
38
- },
39
- padding = {
40
- PaddingLeft = UDim.new(0, pad),
41
- PaddingRight = UDim.new(0, pad),
42
- },
43
- corner = {
44
- CornerRadius = UDim.new(0, theme.shape.borderRadius),
45
- },
46
- stroke = {
47
- Color = if selected then theme.palette.primary.main else theme.palette.border,
48
- ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
49
- Transparency = if disabled then 0.5 else 0,
50
- },
51
- group = {
52
- AutomaticSize = Enum.AutomaticSize.XY,
53
- Size = UDim2.fromScale(0, 0),
54
- BackgroundTransparency = 1,
55
- BorderSizePixel = 0,
56
- },
57
- list = {
58
- FillDirection = if orientation == "vertical" then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
59
- HorizontalAlignment = Enum.HorizontalAlignment.Left,
60
- VerticalAlignment = Enum.VerticalAlignment.Center,
61
- SortOrder = Enum.SortOrder.LayoutOrder,
62
- Padding = UDim.new(0, theme.padding.calc(0.5)),
63
- },
64
- })
65
- end)
66
- local default = useToggleButtonStyles
67
- return {
68
- default = default,
69
- }
@@ -1,2 +0,0 @@
1
- export { default as ToggleButton, ToggleButtonGroup } from "./components/ToggleButton";
2
- export { ToggleButtonProps, ToggleButtonGroupProps } from "./components/ToggleButton";
@@ -1,7 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- local _ToggleButton = TS.import(script, script, "components", "ToggleButton")
5
- exports.ToggleButton = _ToggleButton.default
6
- exports.ToggleButtonGroup = _ToggleButton.ToggleButtonGroup
7
- return exports
@@ -1,7 +0,0 @@
1
- import { CustomizedProps } from "../../../../theme/index";
2
- export interface EmptyListHintProps {
3
- text: string;
4
- height?: number;
5
- }
6
- declare function EmptyListHint(props: CustomizedProps<TextLabel, EmptyListHintProps>): JSX.Element;
7
- export default EmptyListHint;
@@ -1,43 +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 useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
5
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
6
- local useEmptyListHintStyles = TS.import(script, script.Parent, "EmptyListHint.styles").default
7
- local function EmptyListHint(props)
8
- local _binding = props
9
- local text = _binding.text
10
- local height = _binding.height
11
- local className = _binding.className
12
- local sx = _binding.sx
13
- local id = _binding.id
14
- local ref = _binding.ref
15
- local _binding_1 = useTheme()
16
- local theme = _binding_1.theme
17
- local _object = {}
18
- local _left = "height"
19
- local _condition = height
20
- if _condition == nil then
21
- _condition = theme.spacing.calc(4)
22
- end
23
- _object[_left] = _condition
24
- local styles = useEmptyListHintStyles(_object)
25
- local _attributes = {
26
- tag = "textlabel",
27
- }
28
- local _condition_1 = id
29
- if not (_condition_1 ~= 0 and _condition_1 == _condition_1 and _condition_1 ~= "" and _condition_1) then
30
- _condition_1 = "EmptyListHint"
31
- end
32
- _attributes.key = _condition_1
33
- _attributes.hostRef = ref
34
- _attributes.base = styles.root
35
- _attributes.className = className
36
- _attributes.sx = sx
37
- _attributes.Text = text
38
- return React.createElement(SxHost, _attributes)
39
- end
40
- local default = EmptyListHint
41
- return {
42
- default = default,
43
- }
@@ -1,5 +0,0 @@
1
- export interface EmptyListHintStyleProps {
2
- height: number;
3
- }
4
- declare const useEmptyListHintStyles: (props: EmptyListHintStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
5
- export default useEmptyListHintStyles;
@@ -1,26 +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 createStyles = _theme.createStyles
5
- local componentStyles = _theme.componentStyles
6
- local useEmptyListHintStyles = componentStyles("EmptyListHint", function(theme, _param)
7
- local height = _param.height
8
- return createStyles({
9
- root = {
10
- Size = UDim2.new(1, 0, 0, height),
11
- BackgroundTransparency = 1,
12
- BorderSizePixel = 0,
13
- TextColor3 = theme.palette.text.secondary,
14
- Font = theme.typography.fontFamilies.default,
15
- TextSize = theme.typography.fontSizes.body,
16
- TextXAlignment = Enum.TextXAlignment.Center,
17
- TextYAlignment = Enum.TextYAlignment.Center,
18
- TextTruncate = Enum.TextTruncate.AtEnd,
19
- ZIndex = 20002,
20
- },
21
- })
22
- end)
23
- local default = useEmptyListHintStyles
24
- return {
25
- default = default,
26
- }