@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,59 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function boxPadSides(padding)
3
- if padding == nil then
4
- return {
5
- top = 0,
6
- right = 0,
7
- bottom = 0,
8
- left = 0,
9
- }
10
- end
11
- local _padding = padding
12
- if type(_padding) == "number" then
13
- return {
14
- top = padding,
15
- right = padding,
16
- bottom = padding,
17
- left = padding,
18
- }
19
- end
20
- local _condition = padding.x
21
- if _condition == nil then
22
- _condition = 0
23
- end
24
- local x = _condition
25
- local _condition_1 = padding.y
26
- if _condition_1 == nil then
27
- _condition_1 = 0
28
- end
29
- local y = _condition_1
30
- local _object = {}
31
- local _left = "top"
32
- local _condition_2 = padding.top
33
- if _condition_2 == nil then
34
- _condition_2 = y
35
- end
36
- _object[_left] = _condition_2
37
- local _left_1 = "right"
38
- local _condition_3 = padding.right
39
- if _condition_3 == nil then
40
- _condition_3 = x
41
- end
42
- _object[_left_1] = _condition_3
43
- local _left_2 = "bottom"
44
- local _condition_4 = padding.bottom
45
- if _condition_4 == nil then
46
- _condition_4 = y
47
- end
48
- _object[_left_2] = _condition_4
49
- local _left_3 = "left"
50
- local _condition_5 = padding.left
51
- if _condition_5 == nil then
52
- _condition_5 = x
53
- end
54
- _object[_left_3] = _condition_5
55
- return _object
56
- end
57
- return {
58
- boxPadSides = boxPadSides,
59
- }
@@ -1,2 +0,0 @@
1
- export type ContainerMaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false;
2
- export declare function containerMaxPx(maxWidth?: ContainerMaxWidth): number | undefined;
@@ -1,17 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local WIDTHS = {
3
- xs = 444,
4
- sm = 600,
5
- md = 900,
6
- lg = 1200,
7
- xl = 1536,
8
- }
9
- local function containerMaxPx(maxWidth)
10
- if maxWidth == false then
11
- return nil
12
- end
13
- return WIDTHS[maxWidth or "lg"]
14
- end
15
- return {
16
- containerMaxPx = containerMaxPx,
17
- }
@@ -1,6 +0,0 @@
1
- export type FlexItemAlign = "auto" | "start" | "center" | "end" | "stretch";
2
- export type FlexItemModeName = "none" | "grow" | "shrink" | "fill" | "custom";
3
- export declare function flexItemMode(grow?: number, shrink?: number, fill?: boolean): FlexItemModeName;
4
- export declare function flexItemGrowRatio(grow?: number): number;
5
- export declare function flexItemShrinkRatio(shrink?: number): number;
6
- export declare function flexItemAlignKey(align?: FlexItemAlign): FlexItemAlign;
@@ -1,36 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function flexItemMode(grow, shrink, fill)
3
- if fill then
4
- return "fill"
5
- end
6
- local g = grow ~= nil and grow > 0
7
- local s = shrink ~= nil and shrink > 0
8
- if g and s then
9
- return "custom"
10
- end
11
- if g then
12
- return "grow"
13
- end
14
- if s then
15
- return "shrink"
16
- end
17
- return "none"
18
- end
19
- local function flexItemGrowRatio(grow)
20
- return if grow == nil then 0 else grow
21
- end
22
- local function flexItemShrinkRatio(shrink)
23
- return if shrink == nil then 0 else shrink
24
- end
25
- local function flexItemAlignKey(align)
26
- if align == "start" or align == "center" or align == "end" or align == "stretch" then
27
- return align
28
- end
29
- return "auto"
30
- end
31
- return {
32
- flexItemMode = flexItemMode,
33
- flexItemGrowRatio = flexItemGrowRatio,
34
- flexItemShrinkRatio = flexItemShrinkRatio,
35
- flexItemAlignKey = flexItemAlignKey,
36
- }
@@ -1,3 +0,0 @@
1
- export type GridCorner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
2
- export declare function gridMaxCells(columns?: number, maxColumns?: number, fillDirectionMaxCells?: number): number;
3
- export declare function gridCornerKey(corner?: GridCorner): GridCorner;
@@ -1,20 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function gridMaxCells(columns, maxColumns, fillDirectionMaxCells)
3
- if columns ~= nil then
4
- return columns
5
- end
6
- if maxColumns ~= nil then
7
- return maxColumns
8
- end
9
- return if fillDirectionMaxCells == nil then 0 else fillDirectionMaxCells
10
- end
11
- local function gridCornerKey(corner)
12
- if corner == "top-right" or corner == "bottom-left" or corner == "bottom-right" then
13
- return corner
14
- end
15
- return "top-left"
16
- end
17
- return {
18
- gridMaxCells = gridMaxCells,
19
- gridCornerKey = gridCornerKey,
20
- }
@@ -1,10 +0,0 @@
1
- export type StackDirection = "row" | "column";
2
- export type StackAlign = "start" | "center" | "end" | "stretch";
3
- export type StackJustify = "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
4
- export declare function stackIsRow(direction?: StackDirection): direction is "row";
5
- export declare function stackGap(spacing?: number, gap?: number): number;
6
- export declare function stackUsesFlex(justify?: StackJustify): justify is "space-between" | "space-around" | "space-evenly";
7
- export declare function stackNeedsMainFill(wrap?: boolean, justify?: StackJustify): boolean;
8
- export declare function stackRootAutomaticSize(row: boolean, fillMain: boolean): "XY" | "X" | "Y";
9
- export declare function stackAlignKey(align?: StackAlign): StackAlign;
10
- export declare function stackJustifyKey(justify?: StackJustify): StackJustify;
@@ -1,43 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function stackIsRow(direction)
3
- return direction == "row"
4
- end
5
- local function stackGap(spacing, gap)
6
- if gap ~= nil then
7
- return gap
8
- end
9
- return if spacing == nil then 1 else spacing
10
- end
11
- local function stackUsesFlex(justify)
12
- return justify == "space-between" or justify == "space-around" or justify == "space-evenly"
13
- end
14
- local function stackNeedsMainFill(wrap, justify)
15
- return wrap == true or stackUsesFlex(justify)
16
- end
17
- local function stackRootAutomaticSize(row, fillMain)
18
- if not fillMain then
19
- return "XY"
20
- end
21
- return if row then "Y" else "X"
22
- end
23
- local function stackAlignKey(align)
24
- if align == "center" or align == "end" or align == "stretch" then
25
- return align
26
- end
27
- return "start"
28
- end
29
- local function stackJustifyKey(justify)
30
- if justify == "center" or justify == "end" or justify == "space-between" or justify == "space-around" or justify == "space-evenly" then
31
- return justify
32
- end
33
- return "start"
34
- end
35
- return {
36
- stackIsRow = stackIsRow,
37
- stackGap = stackGap,
38
- stackUsesFlex = stackUsesFlex,
39
- stackNeedsMainFill = stackNeedsMainFill,
40
- stackRootAutomaticSize = stackRootAutomaticSize,
41
- stackAlignKey = stackAlignKey,
42
- stackJustifyKey = stackJustifyKey,
43
- }
@@ -1,11 +0,0 @@
1
- import { CustomizedProps } from "../../../../theme/index";
2
- import { LinkColor, LinkUnderline } from "./Link.styles";
3
- export interface LinkProps {
4
- text: string;
5
- color?: LinkColor;
6
- underline?: LinkUnderline;
7
- disabled?: boolean;
8
- onActivated?: () => void;
9
- }
10
- declare function Link(props: CustomizedProps<TextButton, LinkProps>): JSX.Element;
11
- export default Link;
@@ -1,80 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
- local React = _react
5
- local useState = _react.useState
6
- local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
7
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
8
- local useLinkStyles = TS.import(script, script.Parent, "Link.styles").default
9
- local function Link(props)
10
- local _binding = props
11
- local text = _binding.text
12
- local color = _binding.color
13
- if color == nil then
14
- color = "primary"
15
- end
16
- local underline = _binding.underline
17
- if underline == nil then
18
- underline = "always"
19
- end
20
- local disabled = _binding.disabled
21
- local onActivated = _binding.onActivated
22
- local className = _binding.className
23
- local sx = _binding.sx
24
- local id = _binding.id
25
- local ref = _binding.ref
26
- local hover, setHover = useState(false)
27
- local showUnderline = underline == "always" or (underline == "hover" and hover)
28
- local styles = useLinkStyles({
29
- color = color,
30
- disabled = disabled,
31
- showUnderline = showUnderline,
32
- })
33
- local active = canActivate(disabled)
34
- local _attributes = {
35
- tag = "textbutton",
36
- }
37
- local _condition = id
38
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
39
- _condition = "Link"
40
- end
41
- _attributes.key = _condition
42
- _attributes.hostRef = ref
43
- _attributes.base = styles.root
44
- _attributes.className = className
45
- _attributes.sx = sx
46
- _attributes.state = {
47
- disabled = disabled,
48
- hover = hover,
49
- }
50
- _attributes.Text = text
51
- _attributes.Active = active
52
- _attributes.Selectable = active
53
- _attributes.Event = {
54
- Activated = function()
55
- if active then
56
- local _result = onActivated
57
- if _result ~= nil then
58
- _result()
59
- end
60
- end
61
- end,
62
- MouseEnter = function()
63
- return setHover(true)
64
- end,
65
- MouseLeave = function()
66
- return setHover(false)
67
- end,
68
- }
69
- local _attributes_1 = {
70
- key = "Underline",
71
- }
72
- for _k, _v in styles.underline do
73
- _attributes_1[_k] = _v
74
- end
75
- return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1))
76
- end
77
- local default = Link
78
- return {
79
- default = default,
80
- }
@@ -1,8 +0,0 @@
1
- export type LinkColor = "primary" | "inherit" | "error";
2
- export type LinkUnderline = "always" | "hover" | "none";
3
- declare const useLinkStyles: (props: {
4
- color?: LinkColor;
5
- disabled?: boolean;
6
- showUnderline?: boolean;
7
- }) => import("../../../../theme/index").ClassNameMap<string>;
8
- export default useLinkStyles;
@@ -1,59 +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 function linkColor(theme, color, disabled)
7
- if disabled then
8
- return theme.palette.text.disabled
9
- end
10
- if color == "error" then
11
- return theme.palette.status.error.main
12
- end
13
- if color == "inherit" then
14
- return theme.palette.text.primary
15
- end
16
- return theme.palette.primary.main
17
- end
18
- local useLinkStyles = componentStyles("Link", function(theme, _param)
19
- local color = _param.color
20
- if color == nil then
21
- color = "primary"
22
- end
23
- local disabled = _param.disabled
24
- if disabled == nil then
25
- disabled = false
26
- end
27
- local showUnderline = _param.showUnderline
28
- if showUnderline == nil then
29
- showUnderline = true
30
- end
31
- local ink = linkColor(theme, color, disabled)
32
- return createStyles({
33
- root = {
34
- AutomaticSize = Enum.AutomaticSize.XY,
35
- Size = UDim2.fromScale(0, 0),
36
- BackgroundTransparency = 1,
37
- BorderSizePixel = 0,
38
- AutoButtonColor = false,
39
- Active = not disabled,
40
- Selectable = not disabled,
41
- TextColor3 = ink,
42
- Font = theme.typography.fontFamilies.default,
43
- TextSize = theme.typography.fontSizes.body,
44
- TextXAlignment = Enum.TextXAlignment.Left,
45
- },
46
- underline = {
47
- Size = UDim2.new(1, 0, 0, 1),
48
- Position = UDim2.new(0, 0, 1, 0),
49
- AnchorPoint = Vector2.new(0, 1),
50
- BackgroundColor3 = ink,
51
- BackgroundTransparency = if showUnderline then 0 else 1,
52
- BorderSizePixel = 0,
53
- },
54
- })
55
- end)
56
- local default = useLinkStyles
57
- return {
58
- default = default,
59
- }
@@ -1,3 +0,0 @@
1
- export { default as Link } from "./components/Link";
2
- export { LinkProps } from "./components/Link";
3
- export { LinkColor, LinkUnderline } from "./components/Link.styles";
@@ -1,5 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- exports.Link = TS.import(script, script, "components", "Link").default
5
- return exports
@@ -1,11 +0,0 @@
1
- import { WriteableStyle } from "../../../../theme/index";
2
- export type LoadingStrokeStyle = WriteableStyle<UIStroke> & {
3
- BackgroundColor3?: never;
4
- BackgroundTransparency?: never;
5
- Size?: never;
6
- Position?: never;
7
- AnchorPoint?: never;
8
- BorderSizePixel?: never;
9
- Text?: never;
10
- TextColor3?: never;
11
- };
@@ -1,2 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- return nil
@@ -1,6 +0,0 @@
1
- import { CustomizedProps } from "../../../../theme/index";
2
- export interface MarkdownProps {
3
- value?: string;
4
- }
5
- declare function Markdown(props: CustomizedProps<Frame, MarkdownProps>): JSX.Element;
6
- export default Markdown;
@@ -1,221 +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 Divider = TS.import(script, script.Parent.Parent.Parent, "divider").Divider
5
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
6
- local Orientations = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Orientations
7
- local _parseMarkdown = TS.import(script, script.Parent.Parent, "parseMarkdown")
8
- local inlinesToRichText = _parseMarkdown.inlinesToRichText
9
- local parseMarkdown = _parseMarkdown.parseMarkdown
10
- local useMarkdownStyles = TS.import(script, script.Parent, "Markdown.styles").default
11
- local function headingVariant(level)
12
- if level <= 1 then
13
- return "h1"
14
- end
15
- if level == 2 then
16
- return "h2"
17
- end
18
- if level == 3 then
19
- return "h3"
20
- end
21
- if level == 4 then
22
- return "h4"
23
- end
24
- if level == 5 then
25
- return "h5"
26
- end
27
- return "h6"
28
- end
29
- local function textSizeFor(variant)
30
- if variant == "h1" then
31
- return 28
32
- end
33
- if variant == "h2" then
34
- return 22
35
- end
36
- if variant == "h3" then
37
- return 18
38
- end
39
- if variant == "h4" then
40
- return 16
41
- end
42
- if variant == "h5" or variant == "h6" then
43
- return 14
44
- end
45
- return 14
46
- end
47
- local function richLabel(key, styles, inlines, variant, order)
48
- local text = inlinesToRichText(inlines)
49
- local _attributes = {
50
- key = key,
51
- }
52
- for _k, _v in styles.text do
53
- _attributes[_k] = _v
54
- end
55
- _attributes.LayoutOrder = order
56
- _attributes.Text = text
57
- _attributes.TextSize = textSizeFor(variant)
58
- _attributes.Font = if variant ~= nil and variant ~= "body" then Enum.Font.SourceSansBold else Enum.Font.SourceSans
59
- return React.createElement("textlabel", _attributes)
60
- end
61
- local function renderBlock(block, index, styles)
62
- if block.kind == "heading" then
63
- local _attributes = {
64
- key = `h-{index}`,
65
- }
66
- for _k, _v in styles.block do
67
- _attributes[_k] = _v
68
- end
69
- _attributes.LayoutOrder = index
70
- return React.createElement("frame", _attributes, richLabel("Text", styles, block.inlines, headingVariant(block.level)))
71
- end
72
- if block.kind == "paragraph" then
73
- local _attributes = {
74
- key = `p-{index}`,
75
- }
76
- for _k, _v in styles.block do
77
- _attributes[_k] = _v
78
- end
79
- _attributes.LayoutOrder = index
80
- return React.createElement("frame", _attributes, richLabel("Text", styles, block.inlines, "body"))
81
- end
82
- if block.kind == "code" then
83
- local _attributes = {
84
- key = `c-{index}`,
85
- }
86
- for _k, _v in styles.code do
87
- _attributes[_k] = _v
88
- end
89
- _attributes.LayoutOrder = index
90
- local _exp = React.createElement("uicorner", {
91
- CornerRadius = UDim.new(0, 4),
92
- })
93
- local _attributes_1 = table.clone(styles.codePad)
94
- setmetatable(_attributes_1, nil)
95
- local _exp_1 = React.createElement("uipadding", _attributes_1)
96
- local _attributes_2 = {
97
- key = "Code",
98
- }
99
- for _k, _v in styles.codeText do
100
- _attributes_2[_k] = _v
101
- end
102
- _attributes_2.Text = block.text
103
- return React.createElement("frame", _attributes, _exp, _exp_1, React.createElement("textlabel", _attributes_2))
104
- end
105
- if block.kind == "hr" then
106
- return React.createElement(Divider, {
107
- key = `hr-{index}`,
108
- orientation = Orientations.Horizontal,
109
- padding = 0,
110
- className = {
111
- LayoutOrder = index,
112
- },
113
- })
114
- end
115
- if block.kind == "blockquote" then
116
- local _attributes = {
117
- key = `q-{index}`,
118
- }
119
- for _k, _v in styles.quote do
120
- _attributes[_k] = _v
121
- end
122
- _attributes.LayoutOrder = index
123
- local _exp = React.createElement("uicorner", {
124
- CornerRadius = UDim.new(0, 4),
125
- })
126
- local _attributes_1 = {
127
- key = "Bar",
128
- }
129
- for _k, _v in styles.quoteBar do
130
- _attributes_1[_k] = _v
131
- end
132
- local _exp_1 = React.createElement("frame", _attributes_1)
133
- local _attributes_2 = table.clone(styles.quotePad)
134
- setmetatable(_attributes_2, nil)
135
- return React.createElement("frame", _attributes, _exp, _exp_1, React.createElement("uipadding", _attributes_2), richLabel("Text", styles, block.inlines, "body"))
136
- end
137
- if block.kind == "list" then
138
- local _attributes = {
139
- key = `l-{index}`,
140
- }
141
- for _k, _v in styles.block do
142
- _attributes[_k] = _v
143
- end
144
- _attributes.LayoutOrder = index
145
- local _exp = React.createElement("uilistlayout", {
146
- FillDirection = Enum.FillDirection.Vertical,
147
- HorizontalAlignment = Enum.HorizontalAlignment.Left,
148
- SortOrder = Enum.SortOrder.LayoutOrder,
149
- Padding = UDim.new(0, 2),
150
- })
151
- local _exp_1 = block.items
152
- -- ▼ ReadonlyArray.map ▼
153
- local _newValue = table.create(#_exp_1)
154
- local _callback = function(item, itemIndex)
155
- local prefix = if block.ordered then `{itemIndex + 1}. ` else "• "
156
- local _array = { {
157
- kind = "text",
158
- text = prefix,
159
- } }
160
- local _length = #_array
161
- table.move(item, 1, #item, _length + 1, _array)
162
- local labeled = _array
163
- local _attributes_1 = {
164
- key = `li-{itemIndex}`,
165
- }
166
- for _k, _v in styles.listItem do
167
- _attributes_1[_k] = _v
168
- end
169
- _attributes_1.LayoutOrder = itemIndex
170
- return React.createElement("frame", _attributes_1, richLabel("Text", styles, labeled, "body"))
171
- end
172
- for _k, _v in _exp_1 do
173
- _newValue[_k] = _callback(_v, _k - 1, _exp_1)
174
- end
175
- -- ▲ ReadonlyArray.map ▲
176
- return React.createElement("frame", _attributes, _exp, _newValue)
177
- end
178
- return nil
179
- end
180
- local function Markdown(props)
181
- local _binding = props
182
- local value = _binding.value
183
- if value == nil then
184
- value = ""
185
- end
186
- local className = _binding.className
187
- local sx = _binding.sx
188
- local id = _binding.id
189
- local ref = _binding.ref
190
- local styles = useMarkdownStyles()
191
- local blocks = parseMarkdown(value)
192
- local _attributes = {
193
- tag = "frame",
194
- }
195
- local _condition = id
196
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
197
- _condition = "Markdown"
198
- end
199
- _attributes.key = _condition
200
- _attributes.hostRef = ref
201
- _attributes.base = styles.root
202
- _attributes.className = className
203
- _attributes.sx = sx
204
- local _attributes_1 = table.clone(styles.layout)
205
- setmetatable(_attributes_1, nil)
206
- local _exp = React.createElement("uilistlayout", _attributes_1)
207
- -- ▼ ReadonlyArray.map ▼
208
- local _newValue = table.create(#blocks)
209
- local _callback = function(block, index)
210
- return renderBlock(block, index, styles)
211
- end
212
- for _k, _v in blocks do
213
- _newValue[_k] = _callback(_v, _k - 1, blocks)
214
- end
215
- -- ▲ ReadonlyArray.map ▲
216
- return React.createElement(SxHost, _attributes, _exp, _newValue)
217
- end
218
- local default = Markdown
219
- return {
220
- default = default,
221
- }
@@ -1,2 +0,0 @@
1
- declare const useMarkdownStyles: () => import("../../../../theme/index").ClassNameMap<string>;
2
- export default useMarkdownStyles;