@rbxts/uiblox 0.2.0-alpha.28 → 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 +8 -28
  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 +445 -1632
  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,106 +1,23 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
- local function pageRange(count, page, siblingCount, boundaryCount)
3
- if page == nil then
4
- page = 1
5
- end
6
- if siblingCount == nil then
7
- siblingCount = 1
8
- end
9
- if boundaryCount == nil then
10
- boundaryCount = 1
11
- end
12
- local total = math.max(0, math.floor(count))
13
- if total == 0 then
14
- return {}
15
- end
16
- local current = math.clamp(math.floor(page), 1, total)
17
- local siblings = math.max(0, math.floor(siblingCount))
18
- local boundaries = math.max(0, math.floor(boundaryCount))
19
- local rangeLength = boundaries * 2 + siblings * 2 + 3
20
- if total <= rangeLength then
21
- local all = {}
22
- do
23
- local i = 1
24
- local _shouldIncrement = false
25
- while true do
26
- if _shouldIncrement then
27
- i += 1
28
- else
29
- _shouldIncrement = true
30
- end
31
- if not (i <= total) then
32
- break
33
- end
34
- local _i = i
35
- table.insert(all, _i)
36
- end
37
- end
38
- return all
39
- end
40
- local startFrom = math.max(current - siblings, boundaries + 2)
41
- local endAt = math.min(current + siblings, total - (boundaries + 1))
42
- local tokens = {}
43
- do
44
- local i = 1
45
- local _shouldIncrement = false
46
- while true do
47
- if _shouldIncrement then
48
- i += 1
49
- else
50
- _shouldIncrement = true
51
- end
52
- if not (i <= boundaries) then
53
- break
54
- end
55
- local _i = i
56
- table.insert(tokens, _i)
57
- end
58
- end
59
- if startFrom > boundaries + 2 then
60
- table.insert(tokens, "ellipsis")
61
- elseif boundaries + 1 < startFrom then
62
- local _arg0 = boundaries + 1
63
- table.insert(tokens, _arg0)
64
- end
65
- do
66
- local i = startFrom
67
- local _shouldIncrement = false
68
- while true do
69
- if _shouldIncrement then
70
- i += 1
71
- else
72
- _shouldIncrement = true
73
- end
74
- if not (i <= endAt) then
75
- break
76
- end
77
- local _i = i
78
- table.insert(tokens, _i)
79
- end
80
- end
81
- if endAt < total - (boundaries + 1) then
82
- table.insert(tokens, "ellipsis")
83
- elseif endAt + 1 < total - boundaries + 1 then
84
- local _arg0 = endAt + 1
85
- table.insert(tokens, _arg0)
86
- end
2
+ local function pageRange(count)
3
+ local pages = {}
87
4
  do
88
- local i = total - boundaries + 1
5
+ local page = 1
89
6
  local _shouldIncrement = false
90
7
  while true do
91
8
  if _shouldIncrement then
92
- i += 1
9
+ page += 1
93
10
  else
94
11
  _shouldIncrement = true
95
12
  end
96
- if not (i <= total) then
13
+ if not (page <= math.max(0, math.floor(count))) then
97
14
  break
98
15
  end
99
- local _i = i
100
- table.insert(tokens, _i)
16
+ local _page = page
17
+ table.insert(pages, _page)
101
18
  end
102
19
  end
103
- return tokens
20
+ return pages
104
21
  end
105
22
  return {
106
23
  pageRange = pageRange,
@@ -1,3 +1,2 @@
1
1
  export { default as Pagination } from "./components/Pagination";
2
2
  export { PaginationProps } from "./components/Pagination";
3
- export { pageRange, PageToken } from "./components/pageRange";
@@ -2,5 +2,4 @@
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Pagination = TS.import(script, script, "components", "Pagination").default
5
- exports.pageRange = TS.import(script, script, "components", "pageRange").pageRange
6
5
  return exports
@@ -1,10 +1,8 @@
1
1
  import React from "@rbxts/react";
2
- import { CustomizedProps } from "../../../../theme/index";
3
- export type PaperElevation = "flat" | "raised" | "outlined";
2
+ export type PaperElevation = "flat" | "raised";
4
3
  export interface PaperProps {
5
4
  elevation?: PaperElevation;
6
- square?: boolean;
7
5
  children?: React.ReactNode;
8
6
  }
9
- declare function Paper(props: CustomizedProps<Frame, PaperProps>): JSX.Element;
7
+ declare function Paper(props: PaperProps): JSX.Element;
10
8
  export default Paper;
@@ -1,7 +1,6 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
4
  local usePaperStyles = TS.import(script, script.Parent, "Paper.styles").default
6
5
  local function Paper(props)
7
6
  local _binding = props
@@ -9,41 +8,22 @@ local function Paper(props)
9
8
  if elevation == nil then
10
9
  elevation = "flat"
11
10
  end
12
- local square = _binding.square
13
11
  local children = _binding.children
14
- local className = _binding.className
15
- local sx = _binding.sx
16
- local id = _binding.id
17
- local ref = _binding.ref
18
12
  local styles = usePaperStyles({
19
13
  elevation = elevation,
20
14
  })
21
- local _attributes = {}
22
- local _condition = id
23
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
24
- _condition = "Paper"
15
+ local _attributes = {
16
+ key = "Paper",
17
+ }
18
+ for _k, _v in styles.root do
19
+ _attributes[_k] = _v
25
20
  end
26
- _attributes.key = _condition
27
- _attributes.hostRef = ref
28
- _attributes.base = styles.root
29
- _attributes.className = className
30
- _attributes.sx = sx
31
21
  local _attributes_1 = table.clone(styles.padding)
32
22
  setmetatable(_attributes_1, nil)
33
23
  local _exp = React.createElement("uipadding", _attributes_1)
34
- local _condition_1 = square ~= true
35
- if _condition_1 then
36
- local _attributes_2 = table.clone(styles.corner)
37
- setmetatable(_attributes_2, nil)
38
- _condition_1 = React.createElement("uicorner", _attributes_2)
39
- end
40
- local _condition_2 = elevation == "outlined"
41
- if _condition_2 then
42
- local _attributes_2 = table.clone(styles.stroke)
43
- setmetatable(_attributes_2, nil)
44
- _condition_2 = React.createElement("uistroke", _attributes_2)
45
- end
46
- return React.createElement(SxHost, _attributes, _exp, _condition_1, _condition_2, children)
24
+ local _attributes_2 = table.clone(styles.corner)
25
+ setmetatable(_attributes_2, nil)
26
+ return React.createElement("frame", _attributes, _exp, React.createElement("uicorner", _attributes_2), children)
47
27
  end
48
28
  local default = Paper
49
29
  return {
@@ -1,4 +1,4 @@
1
1
  declare const usePaperStyles: (props: {
2
- elevation?: "flat" | "raised" | "outlined";
2
+ elevation?: "flat" | "raised";
3
3
  }) => import("../../../../theme/index").ClassNameMap<string>;
4
4
  export default usePaperStyles;
@@ -15,12 +15,6 @@ local usePaperStyles = componentStyles("Paper", function(theme, _param)
15
15
  BackgroundColor3 = if elevation == "raised" then theme.palette.surface.elevated else theme.palette.surface.paper,
16
16
  BorderSizePixel = 0,
17
17
  },
18
- stroke = {
19
- Color = theme.palette.border,
20
- ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
21
- Thickness = 1,
22
- Transparency = 0,
23
- },
24
18
  padding = {
25
19
  PaddingTop = UDim.new(0, theme.padding.calc(2)),
26
20
  PaddingBottom = UDim.new(0, theme.padding.calc(2)),
@@ -1,13 +1,11 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
4
  local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
6
5
  local usePhysicalPropertiesEditorStyles = TS.import(script, script.Parent, "PhysicalPropertiesEditor.styles").default
7
6
  local _physicalParts = TS.import(script, script.Parent, "physicalParts")
8
7
  local patchPhysicalParts = _physicalParts.patchPhysicalParts
9
- local physicalCaption = _physicalParts.physicalCaption
10
- local physicalRows = _physicalParts.physicalRows
8
+ local physicalFields = _physicalParts.physicalFields
11
9
  local function PhysicalPropertiesEditor(props)
12
10
  local _binding = props
13
11
  local value = _binding.value
@@ -18,91 +16,68 @@ local function PhysicalPropertiesEditor(props)
18
16
  local id = _binding.id
19
17
  local ref = _binding.ref
20
18
  local styles = usePhysicalPropertiesEditorStyles()
21
- local amounts = {
22
- Density = value.Density,
23
- Friction = value.Friction,
24
- Elasticity = value.Elasticity,
25
- FrictionWeight = value.FrictionWeight,
26
- ElasticityWeight = value.ElasticityWeight,
27
- }
19
+ local amounts = { value.Density, value.Friction, value.Elasticity, value.FrictionWeight, value.ElasticityWeight }
28
20
  local commit = function(field, amount)
29
21
  local parts = patchPhysicalParts(value.Density, value.Friction, value.Elasticity, value.FrictionWeight, value.ElasticityWeight, field, amount)
30
22
  onChange(PhysicalProperties.new(parts[1], parts[2], parts[3], parts[4], parts[5]))
31
23
  end
32
- local _attributes = {
33
- tag = "frame",
34
- }
24
+ local _attributes = {}
35
25
  local _condition = id
36
26
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
37
27
  _condition = "PhysicalPropertiesEditor"
38
28
  end
39
29
  _attributes.key = _condition
40
- _attributes.hostRef = ref
41
- _attributes.base = styles.root
42
- _attributes.className = className
43
- _attributes.sx = sx
44
- _attributes.state = {
45
- disabled = disabled,
46
- }
30
+ _attributes.ref = ref
31
+ for _k, _v in styles.root do
32
+ _attributes[_k] = _v
33
+ end
34
+ if className then
35
+ for _k, _v in className do
36
+ _attributes[_k] = _v
37
+ end
38
+ end
39
+ if sx then
40
+ for _k, _v in sx do
41
+ _attributes[_k] = _v
42
+ end
43
+ end
47
44
  local _attributes_1 = table.clone(styles.wrap)
48
45
  setmetatable(_attributes_1, nil)
49
46
  local _exp = React.createElement("uilistlayout", _attributes_1)
50
- local _exp_1 = physicalRows()
47
+ local _exp_1 = physicalFields()
51
48
  -- ▼ ReadonlyArray.map ▼
52
49
  local _newValue = table.create(#_exp_1)
53
- local _callback = function(row, rowIndex)
50
+ local _callback = function(field, index)
54
51
  local _attributes_2 = {
55
- key = `Row-{rowIndex}`,
52
+ key = field,
56
53
  }
57
- for _k, _v in styles.row do
54
+ for _k, _v in styles.axis do
58
55
  _attributes_2[_k] = _v
59
56
  end
60
- _attributes_2.LayoutOrder = rowIndex + 1
61
- local _attributes_3 = table.clone(styles.pair)
57
+ _attributes_2.LayoutOrder = index + 1
58
+ local _attributes_3 = table.clone(styles.row)
62
59
  setmetatable(_attributes_3, nil)
63
60
  local _exp_2 = React.createElement("uilistlayout", _attributes_3)
64
- -- ▼ ReadonlyArray.map ▼
65
- local _newValue_1 = table.create(#row)
66
- local _callback_1 = function(field, index)
67
- local _attributes_4 = {
68
- key = field,
69
- }
70
- for _k, _v in styles.cell do
71
- _attributes_4[_k] = _v
72
- end
73
- _attributes_4.LayoutOrder = index + 1
74
- local _attributes_5 = table.clone(styles.stack)
75
- setmetatable(_attributes_5, nil)
76
- local _exp_3 = React.createElement("uilistlayout", _attributes_5)
77
- local _attributes_6 = table.clone(styles.label)
78
- setmetatable(_attributes_6, nil)
79
- _attributes_6.Text = physicalCaption(field)
80
- _attributes_6.LayoutOrder = 1
81
- local _exp_4 = React.createElement("textlabel", _attributes_6)
82
- local _attributes_7 = table.clone(styles.field)
83
- setmetatable(_attributes_7, nil)
84
- _attributes_7.LayoutOrder = 2
85
- return React.createElement("frame", _attributes_4, _exp_3, _exp_4, React.createElement("frame", _attributes_7, React.createElement(NumberInput, {
86
- value = amounts[field],
87
- places = 4,
88
- disabled = disabled,
89
- width = UDim.new(1, 0),
90
- onChange = function(amount)
91
- return commit(field, amount)
92
- end,
93
- })))
94
- end
95
- for _k, _v in row do
96
- _newValue_1[_k] = _callback_1(_v, _k - 1, row)
97
- end
98
- -- ▲ ReadonlyArray.map ▲
99
- return React.createElement("frame", _attributes_2, _exp_2, React.createElement(React.Fragment, nil, _newValue_1))
61
+ local _attributes_4 = table.clone(styles.label)
62
+ setmetatable(_attributes_4, nil)
63
+ _attributes_4.Text = field
64
+ local _exp_3 = React.createElement("textlabel", _attributes_4)
65
+ local _attributes_5 = table.clone(styles.field)
66
+ setmetatable(_attributes_5, nil)
67
+ return React.createElement("frame", _attributes_2, _exp_2, _exp_3, React.createElement("frame", _attributes_5, React.createElement(NumberInput, {
68
+ value = amounts[index + 1],
69
+ disabled = disabled,
70
+ width = UDim.new(1, 0),
71
+ onChange = function(amount)
72
+ return commit(field, amount)
73
+ end,
74
+ })))
100
75
  end
101
76
  for _k, _v in _exp_1 do
102
77
  _newValue[_k] = _callback(_v, _k - 1, _exp_1)
103
78
  end
104
79
  -- ▲ ReadonlyArray.map ▲
105
- return React.createElement(SxHost, _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
80
+ return React.createElement("frame", _attributes, _exp, _newValue)
106
81
  end
107
82
  local default = PhysicalPropertiesEditor
108
83
  return {
@@ -1,11 +1,9 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
- local controlMetrics = _theme.controlMetrics
5
4
  local createStyles = _theme.createStyles
6
5
  local componentStyles = _theme.componentStyles
7
6
  local usePhysicalPropertiesEditorStyles = componentStyles("PhysicalPropertiesEditor", function(theme)
8
- local gap = theme.padding.calc(1)
9
7
  return createStyles({
10
8
  root = {
11
9
  Size = UDim2.new(1, 0, 0, 0),
@@ -18,38 +16,26 @@ local usePhysicalPropertiesEditorStyles = componentStyles("PhysicalPropertiesEdi
18
16
  Padding = UDim.new(0, theme.padding.calc(0.5)),
19
17
  SortOrder = Enum.SortOrder.LayoutOrder,
20
18
  },
21
- pair = {
19
+ row = {
22
20
  FillDirection = Enum.FillDirection.Horizontal,
23
- Padding = UDim.new(0, gap),
21
+ Padding = UDim.new(0, theme.padding.calc(1)),
22
+ VerticalAlignment = Enum.VerticalAlignment.Center,
24
23
  SortOrder = Enum.SortOrder.LayoutOrder,
25
24
  },
26
- row = {
27
- Size = UDim2.new(1, 0, 0, 0),
28
- AutomaticSize = Enum.AutomaticSize.Y,
29
- BackgroundTransparency = 1,
30
- },
31
- cell = {
32
- Size = UDim2.new(0.5, -gap / 2, 0, 0),
33
- AutomaticSize = Enum.AutomaticSize.Y,
25
+ axis = {
26
+ Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
34
27
  BackgroundTransparency = 1,
35
28
  },
36
- stack = {
37
- FillDirection = Enum.FillDirection.Vertical,
38
- Padding = UDim.new(0, theme.padding.calc(0.5)),
39
- SortOrder = Enum.SortOrder.LayoutOrder,
40
- },
41
29
  label = {
42
- Size = UDim2.new(1, 0, 0, 0),
43
- AutomaticSize = Enum.AutomaticSize.Y,
30
+ Size = UDim2.new(0, theme.spacing.calc(7), 1, 0),
44
31
  BackgroundTransparency = 1,
45
32
  Font = theme.typography.fontFamilies.default,
46
33
  TextSize = theme.typography.fontSizes.caption,
47
34
  TextColor3 = theme.palette.text.secondary,
48
35
  TextXAlignment = Enum.TextXAlignment.Left,
49
- TextTruncate = Enum.TextTruncate.AtEnd,
50
36
  },
51
37
  field = {
52
- Size = UDim2.new(1, 0, 0, controlMetrics(theme.density).height),
38
+ Size = UDim2.new(1, -theme.spacing.calc(7), 1, 0),
53
39
  BackgroundTransparency = 1,
54
40
  },
55
41
  })
@@ -1,5 +1,3 @@
1
1
  export type PhysicalField = "Density" | "Friction" | "Elasticity" | "FrictionWeight" | "ElasticityWeight";
2
2
  export declare function physicalFields(): PhysicalField[];
3
- export declare function physicalCaption(field: PhysicalField): "Density" | "Friction" | "Elasticity" | "Friction wt" | "Elasticity wt";
4
- export declare function physicalRows(): PhysicalField[][];
5
3
  export declare function patchPhysicalParts(density: number, friction: number, elasticity: number, frictionWeight: number, elasticityWeight: number, field: PhysicalField, amount: number): number[];
@@ -2,18 +2,6 @@
2
2
  local function physicalFields()
3
3
  return { "Density", "Friction", "Elasticity", "FrictionWeight", "ElasticityWeight" }
4
4
  end
5
- local function physicalCaption(field)
6
- if field == "FrictionWeight" then
7
- return "Friction wt"
8
- end
9
- if field == "ElasticityWeight" then
10
- return "Elasticity wt"
11
- end
12
- return field
13
- end
14
- local function physicalRows()
15
- return { { "Density", "Friction" }, { "Elasticity", "FrictionWeight" }, { "ElasticityWeight" } }
16
- end
17
5
  local function patchPhysicalParts(density, friction, elasticity, frictionWeight, elasticityWeight, field, amount)
18
6
  local parts = { density, friction, elasticity, frictionWeight, elasticityWeight }
19
7
  local index = if field == "Density" then 0 elseif field == "Friction" then 1 elseif field == "Elasticity" then 2 elseif field == "FrictionWeight" then 3 else 4
@@ -22,7 +10,5 @@ local function patchPhysicalParts(density, friction, elasticity, frictionWeight,
22
10
  end
23
11
  return {
24
12
  physicalFields = physicalFields,
25
- physicalCaption = physicalCaption,
26
- physicalRows = physicalRows,
27
13
  patchPhysicalParts = patchPhysicalParts,
28
14
  }
@@ -1,5 +1,4 @@
1
1
  import React from "@rbxts/react";
2
- import { CustomizedProps } from "../../../../theme/index";
3
2
  export interface PopupProps {
4
3
  anchor?: GuiObject;
5
4
  /** Content height. Flips above the anchor and caps the shell. */
@@ -10,5 +9,5 @@ export interface PopupProps {
10
9
  onInput?: (input: InputObject) => void;
11
10
  children?: React.ReactNode;
12
11
  }
13
- declare function Popup(props: CustomizedProps<Frame, PopupProps>): JSX.Element | undefined;
12
+ declare function Popup(props: PopupProps): JSX.Element | undefined;
14
13
  export default Popup;
@@ -5,7 +5,6 @@ local React = _react
5
5
  local useEffect = _react.useEffect
6
6
  local useRef = _react.useRef
7
7
  local useState = _react.useState
8
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
9
8
  local popupPlacement = TS.import(script, script.Parent, "placement").popupPlacement
10
9
  local Portal = TS.import(script, script.Parent, "Portal").default
11
10
  local portalTarget = TS.import(script, script.Parent, "portalTarget").portalTarget
@@ -17,10 +16,6 @@ local function Popup(props)
17
16
  local onDismiss = _binding.onDismiss
18
17
  local onInput = _binding.onInput
19
18
  local children = _binding.children
20
- local className = _binding.className
21
- local sx = _binding.sx
22
- local id = _binding.id
23
- local ref = _binding.ref
24
19
  local dismiss = useRef(onDismiss)
25
20
  dismiss.current = onDismiss
26
21
  local _, bump = useState(0)
@@ -93,7 +88,14 @@ local function Popup(props)
93
88
  end
94
89
  local place = popupPlacement(_exp, _exp_1, _exp_2, _exp_3, _exp_4, _exp_5, _exp_6, _exp_7, _condition, _condition_1)
95
90
  local capped = place.height > 0
96
- local _exp_8 = onDismiss and (React.createElement("textbutton", {
91
+ return React.createElement(Portal, {
92
+ host = layer,
93
+ }, React.createElement("frame", {
94
+ key = "Popup",
95
+ Size = UDim2.fromScale(1, 1),
96
+ BackgroundTransparency = 1,
97
+ ZIndex = 20000,
98
+ }, onDismiss and (React.createElement("textbutton", {
97
99
  key = "Backdrop",
98
100
  Size = UDim2.fromScale(1, 1),
99
101
  BackgroundTransparency = 1,
@@ -111,36 +113,17 @@ local function Popup(props)
111
113
  return _result
112
114
  end,
113
115
  },
114
- }))
115
- local _attributes = {
116
- tag = "frame",
117
- }
118
- local _condition_2 = id
119
- if not (_condition_2 ~= 0 and _condition_2 == _condition_2 and _condition_2 ~= "" and _condition_2) then
120
- _condition_2 = "Content"
121
- end
122
- _attributes.key = _condition_2
123
- _attributes.hostRef = ref
124
- _attributes.base = {
116
+ })), React.createElement("frame", {
117
+ key = "Content",
118
+ Position = UDim2.fromOffset(place.x, place.y),
119
+ AnchorPoint = Vector2.new(0, if place.above then 1 else 0),
120
+ Size = if capped then UDim2.fromOffset(place.width, place.height) else UDim2.fromOffset(place.width, 0),
121
+ AutomaticSize = if capped then Enum.AutomaticSize.None else Enum.AutomaticSize.Y,
122
+ ClipsDescendants = capped,
125
123
  BackgroundTransparency = 1,
126
- }
127
- _attributes.className = className
128
- _attributes.sx = sx
129
- _attributes.Position = UDim2.fromOffset(place.x, place.y)
130
- _attributes.AnchorPoint = Vector2.new(0, if place.above then 1 else 0)
131
- _attributes.Size = if capped then UDim2.fromOffset(place.width, place.height) else UDim2.fromOffset(place.width, 0)
132
- _attributes.AutomaticSize = if capped then Enum.AutomaticSize.None else Enum.AutomaticSize.Y
133
- _attributes.ClipsDescendants = capped
134
- _attributes.Active = false
135
- _attributes.ZIndex = 20001
136
- return React.createElement(Portal, {
137
- host = layer,
138
- }, React.createElement("frame", {
139
- key = "Popup",
140
- Size = UDim2.fromScale(1, 1),
141
- BackgroundTransparency = 1,
142
- ZIndex = 20000,
143
- }, _exp_8, React.createElement(SxHost, _attributes, children)))
124
+ Active = false,
125
+ ZIndex = 20001,
126
+ }, children)))
144
127
  end
145
128
  local default = Popup
146
129
  return {
@@ -2,4 +2,3 @@ export { default as Popup } from "./components/Popup";
2
2
  export { PopupProps } from "./components/Popup";
3
3
  export { default as Portal } from "./components/Portal";
4
4
  export { PortalProps } from "./components/Portal";
5
- export { portalTarget } from "./components/portalTarget";
@@ -3,5 +3,4 @@ local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Popup = TS.import(script, script, "components", "Popup").default
5
5
  exports.Portal = TS.import(script, script, "components", "Portal").default
6
- exports.portalTarget = TS.import(script, script, "components", "portalTarget").portalTarget
7
6
  return exports
@@ -9,7 +9,6 @@ local _pretty_react_hooks = TS.import(script, TS.getModule(script, "@rbxts", "pr
9
9
  local useAsyncEffect = _pretty_react_hooks.useAsyncEffect
10
10
  local useDeferState = _pretty_react_hooks.useDeferState
11
11
  local ContentProvider = TS.import(script, TS.getModule(script, "@rbxts", "services")).ContentProvider
12
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
13
12
  local ProgressBar = TS.import(script, script.Parent.Parent.Parent, "progressBar").ProgressBar
14
13
  local usePreloaderStyles = TS.import(script, script.Parent, "Preloader.styles").default
15
14
  local function Preloader(props)
@@ -104,18 +103,26 @@ local function Preloader(props)
104
103
  children = children,
105
104
  })
106
105
  else
107
- local _attributes = {
108
- tag = "frame",
109
- }
106
+ local _attributes = {}
110
107
  local _condition = id
111
108
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
112
109
  _condition = "Preloader"
113
110
  end
114
111
  _attributes.key = _condition
115
- _attributes.hostRef = ref
116
- _attributes.base = container
117
- _attributes.className = className
118
- _attributes.sx = sx
112
+ _attributes.ref = ref
113
+ for _k, _v in container do
114
+ _attributes[_k] = _v
115
+ end
116
+ if className then
117
+ for _k, _v in className do
118
+ _attributes[_k] = _v
119
+ end
120
+ end
121
+ if sx then
122
+ for _k, _v in sx do
123
+ _attributes[_k] = _v
124
+ end
125
+ end
119
126
  local _exp = Adornment ~= nil and React.createElement(Adornment, {
120
127
  progress = percentage,
121
128
  })
@@ -135,7 +142,7 @@ local function Preloader(props)
135
142
  progress = percentage,
136
143
  })))
137
144
  end
138
- _result = (React.createElement(SxHost, _attributes, _exp, _condition_1, _condition_2))
145
+ _result = (React.createElement("frame", _attributes, _exp, _condition_1, _condition_2))
139
146
  end
140
147
  return React.createElement(React.Fragment, nil, _result)
141
148
  end
@@ -10,7 +10,6 @@ local _motion = TS.import(script, script.Parent.Parent.Parent, "motion")
10
10
  local loopProperty = _motion.loopProperty
11
11
  local progressSpin = _motion.progressSpin
12
12
  local progressUnit = _motion.progressUnit
13
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
14
13
  local useProgressBarStyles = TS.import(script, script.Parent, "ProgressBar.styles").default
15
14
  local function ProgressBar(props)
16
15
  local _binding = props
@@ -54,21 +53,26 @@ local function ProgressBar(props)
54
53
  Position = UDim2.new(1, 0, 0.5, 0),
55
54
  }, 1.1)
56
55
  end, { motion, unit })
57
- local _attributes = {
58
- tag = "frame",
59
- }
56
+ local _attributes = {}
60
57
  local _condition = id
61
58
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
62
59
  _condition = "ProgressBar"
63
60
  end
64
61
  _attributes.key = _condition
65
- _attributes.hostRef = ref
66
- _attributes.base = container
67
- _attributes.className = className
68
- _attributes.sx = sx
69
- _attributes.state = {
70
- disabled = disabled,
71
- }
62
+ _attributes.ref = ref
63
+ for _k, _v in container do
64
+ _attributes[_k] = _v
65
+ end
66
+ if className then
67
+ for _k, _v in className do
68
+ _attributes[_k] = _v
69
+ end
70
+ end
71
+ if sx then
72
+ for _k, _v in sx do
73
+ _attributes[_k] = _v
74
+ end
75
+ end
72
76
  local _attributes_1 = {
73
77
  key = "Bar",
74
78
  }
@@ -109,7 +113,7 @@ local function ProgressBar(props)
109
113
  for _k, _v in corner do
110
114
  _attributes_7[_k] = _v
111
115
  end
112
- return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _exp, _exp_1, React.createElement("frame", _attributes_4, _exp_2, React.createElement("frame", _attributes_6, React.createElement("uicorner", _attributes_7)))))
116
+ return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, _exp_1, React.createElement("frame", _attributes_4, _exp_2, React.createElement("frame", _attributes_6, React.createElement("uicorner", _attributes_7)))))
113
117
  end
114
118
  local default = ProgressBar
115
119
  return {