@rbxts/uiblox 0.2.0-alpha.36 → 0.2.0-alpha.5

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 (313) 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/theme/types/types.d.ts +1 -2
  15. package/out/ui/packages/accordion/components/Accordion.d.ts +0 -2
  16. package/out/ui/packages/accordion/components/Accordion.luau +30 -46
  17. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +0 -1
  18. package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -16
  19. package/out/ui/packages/accordion/components/accordionOpen.d.ts +0 -1
  20. package/out/ui/packages/accordion/components/accordionOpen.luau +0 -4
  21. package/out/ui/packages/alert/components/Alert.d.ts +0 -2
  22. package/out/ui/packages/alert/components/Alert.luau +42 -48
  23. package/out/ui/packages/alert/components/Alert.styles.d.ts +0 -2
  24. package/out/ui/packages/alert/components/Alert.styles.luau +8 -17
  25. package/out/ui/packages/appBar/components/AppBar.d.ts +1 -2
  26. package/out/ui/packages/appBar/components/AppBar.luau +36 -47
  27. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +0 -2
  28. package/out/ui/packages/appBar/components/AppBar.styles.luau +5 -16
  29. package/out/ui/packages/assetField/components/AssetField.luau +16 -12
  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 +18 -20
  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 -5
  57. package/out/ui/packages/chip/components/Chip.luau +16 -25
  58. package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -5
  59. package/out/ui/packages/chip/components/Chip.styles.luau +13 -30
  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/formText/components/FormHelperText.luau +16 -12
  84. package/out/ui/packages/formText/components/FormLabel.luau +16 -12
  85. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +42 -56
  86. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +4 -37
  87. package/out/ui/packages/icon/components/Icon.luau +16 -9
  88. package/out/ui/packages/iconButton/components/IconButton.luau +16 -16
  89. package/out/ui/packages/index.d.ts +0 -6
  90. package/out/ui/packages/init.luau +0 -18
  91. package/out/ui/packages/input/components/Input.d.ts +0 -1
  92. package/out/ui/packages/input/components/Input.luau +18 -21
  93. package/out/ui/packages/layout/components/Grid.d.ts +1 -5
  94. package/out/ui/packages/layout/components/Grid.luau +19 -41
  95. package/out/ui/packages/layout/components/List.luau +16 -9
  96. package/out/ui/packages/layout/components/Stack.d.ts +0 -2
  97. package/out/ui/packages/layout/components/Stack.luau +15 -10
  98. package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -2
  99. package/out/ui/packages/layout/components/Stack.styles.luau +5 -34
  100. package/out/ui/packages/layout/components/stackAlign.d.ts +2 -4
  101. package/out/ui/packages/layout/components/stackAlign.luau +2 -16
  102. package/out/ui/packages/layout/index.d.ts +0 -11
  103. package/out/ui/packages/layout/init.luau +0 -4
  104. package/out/ui/packages/link/components/Link.luau +16 -13
  105. package/out/ui/packages/listItem/components/ListItem.d.ts +1 -4
  106. package/out/ui/packages/listItem/components/ListItem.luau +4 -44
  107. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
  108. package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -16
  109. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +1 -5
  110. package/out/ui/packages/menu/components/Menu.d.ts +1 -4
  111. package/out/ui/packages/menu/components/Menu.luau +15 -32
  112. package/out/ui/packages/modal/components/Modal.d.ts +1 -2
  113. package/out/ui/packages/modal/components/Modal.luau +37 -79
  114. package/out/ui/packages/motion/index.d.ts +1 -1
  115. package/out/ui/packages/motion/init.luau +0 -1
  116. package/out/ui/packages/motion/unit.d.ts +0 -5
  117. package/out/ui/packages/motion/unit.luau +0 -23
  118. package/out/ui/packages/numberInput/components/NumberInput.d.ts +0 -2
  119. package/out/ui/packages/numberInput/components/NumberInput.luau +3 -16
  120. package/out/ui/packages/numberInput/components/numberValue.d.ts +0 -1
  121. package/out/ui/packages/numberInput/components/numberValue.luau +0 -45
  122. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +16 -12
  123. package/out/ui/packages/pagination/components/Pagination.d.ts +1 -6
  124. package/out/ui/packages/pagination/components/Pagination.luau +38 -62
  125. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +1 -6
  126. package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -36
  127. package/out/ui/packages/pagination/components/pageRange.d.ts +1 -2
  128. package/out/ui/packages/pagination/components/pageRange.luau +8 -91
  129. package/out/ui/packages/pagination/index.d.ts +0 -1
  130. package/out/ui/packages/pagination/init.luau +0 -1
  131. package/out/ui/packages/paper/components/Paper.d.ts +2 -4
  132. package/out/ui/packages/paper/components/Paper.luau +9 -31
  133. package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
  134. package/out/ui/packages/paper/components/Paper.styles.luau +0 -6
  135. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +38 -63
  136. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +7 -21
  137. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +0 -2
  138. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +0 -14
  139. package/out/ui/packages/popup/components/Popup.d.ts +1 -2
  140. package/out/ui/packages/popup/components/Popup.luau +18 -35
  141. package/out/ui/packages/popup/index.d.ts +0 -1
  142. package/out/ui/packages/popup/init.luau +0 -1
  143. package/out/ui/packages/preloader/components/Preloader.luau +16 -9
  144. package/out/ui/packages/progressBar/components/ProgressBar.luau +16 -12
  145. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +0 -1
  146. package/out/ui/packages/radioGroup/components/RadioGroup.luau +18 -16
  147. package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +0 -1
  148. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +1 -4
  149. package/out/ui/packages/rating/components/Rating.d.ts +1 -3
  150. package/out/ui/packages/rating/components/Rating.luau +17 -19
  151. package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -2
  152. package/out/ui/packages/rating/components/Rating.styles.luau +2 -7
  153. package/out/ui/packages/rayEditor/components/RayEditor.luau +16 -12
  154. package/out/ui/packages/rectEditor/components/RectEditor.luau +43 -86
  155. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +7 -30
  156. package/out/ui/packages/scroll/index.d.ts +0 -2
  157. package/out/ui/packages/scroll/init.luau +0 -1
  158. package/out/ui/packages/select/components/Select.luau +55 -15
  159. package/out/ui/packages/select/components/selectMotion.d.ts +2 -0
  160. package/out/ui/packages/select/components/selectMotion.luau +12 -0
  161. package/out/ui/packages/shadow/components/Shadow.d.ts +1 -2
  162. package/out/ui/packages/shadow/components/Shadow.luau +17 -39
  163. package/out/ui/packages/shadow/components/Shadow.styles.luau +2 -7
  164. package/out/ui/packages/sidebar/components/Sidebar.luau +16 -9
  165. package/out/ui/packages/skeleton/components/Skeleton.luau +28 -19
  166. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +3 -7
  167. package/out/ui/packages/slider/components/Slider.d.ts +0 -3
  168. package/out/ui/packages/slider/components/Slider.luau +19 -47
  169. package/out/ui/packages/slider/components/Slider.styles.d.ts +0 -2
  170. package/out/ui/packages/slider/components/Slider.styles.luau +1 -14
  171. package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
  172. package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
  173. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -2
  174. package/out/ui/packages/speedDial/components/SpeedDial.luau +20 -25
  175. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +1 -4
  176. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +4 -9
  177. package/out/ui/packages/speedDial/index.d.ts +0 -1
  178. package/out/ui/packages/splitPane/components/SplitPane.luau +17 -13
  179. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  180. package/out/ui/packages/stateMatrix.d.ts +0 -2
  181. package/out/ui/packages/stateMatrix.luau +997 -793
  182. package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
  183. package/out/ui/packages/stepper/components/Stepper.luau +17 -16
  184. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
  185. package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
  186. package/out/ui/packages/switch/components/Switch.d.ts +0 -2
  187. package/out/ui/packages/switch/components/Switch.luau +16 -21
  188. package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
  189. package/out/ui/packages/switch/components/Switch.styles.luau +1 -6
  190. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  191. package/out/ui/packages/table/components/Table.d.ts +2 -16
  192. package/out/ui/packages/table/components/Table.luau +53 -136
  193. package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
  194. package/out/ui/packages/table/components/Table.styles.luau +6 -10
  195. package/out/ui/packages/table/index.d.ts +1 -2
  196. package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
  197. package/out/ui/packages/tabs/components/Tabs.luau +19 -24
  198. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
  199. package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
  200. package/out/ui/packages/tabs/index.d.ts +0 -1
  201. package/out/ui/packages/tabs/init.luau +0 -1
  202. package/out/ui/packages/toast/components/Toast.d.ts +0 -2
  203. package/out/ui/packages/toast/components/Toast.luau +13 -41
  204. package/out/ui/packages/toast/components/Toast.styles.luau +5 -23
  205. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +1 -5
  206. package/out/ui/packages/toggleButton/components/ToggleButton.luau +33 -36
  207. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -4
  208. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +5 -16
  209. package/out/ui/packages/tooltip/components/Tooltip.luau +16 -9
  210. package/out/ui/packages/treeView/components/TreeView.luau +16 -9
  211. package/out/ui/packages/typography/components/Typography.luau +14 -13
  212. package/out/ui/packages/udimEditor/components/UDimEditor.luau +16 -12
  213. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +16 -12
  214. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +1 -2
  215. package/out/ui/packages/virtualList/components/EmptyListHint.luau +4 -15
  216. package/out/ui/packages/virtualList/components/VirtualList.luau +16 -9
  217. package/package.json +2 -2
  218. package/out/hooks/viewportObserver.d.ts +0 -10
  219. package/out/hooks/viewportObserver.luau +0 -75
  220. package/out/theme/styles/utilities/resolveSx.d.ts +0 -120
  221. package/out/theme/styles/utilities/resolveSx.luau +0 -524
  222. package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
  223. package/out/ui/packages/backdrop/components/Backdrop.luau +0 -51
  224. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
  225. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
  226. package/out/ui/packages/backdrop/index.d.ts +0 -2
  227. package/out/ui/packages/backdrop/init.luau +0 -5
  228. package/out/ui/packages/dateRange/components/DateRangePicker.d.ts +0 -11
  229. package/out/ui/packages/dateRange/components/DateRangePicker.luau +0 -253
  230. package/out/ui/packages/dateRange/dateRangeValue.d.ts +0 -18
  231. package/out/ui/packages/dateRange/dateRangeValue.luau +0 -121
  232. package/out/ui/packages/dateRange/index.d.ts +0 -3
  233. package/out/ui/packages/dateRange/init.luau +0 -16
  234. package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
  235. package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
  236. package/out/ui/packages/host/components/SxHost.d.ts +0 -18
  237. package/out/ui/packages/host/components/SxHost.luau +0 -210
  238. package/out/ui/packages/host/hostPaint.d.ts +0 -12
  239. package/out/ui/packages/host/hostPaint.luau +0 -34
  240. package/out/ui/packages/host/hostRules.d.ts +0 -15
  241. package/out/ui/packages/host/hostRules.luau +0 -92
  242. package/out/ui/packages/host/index.d.ts +0 -3
  243. package/out/ui/packages/host/init.luau +0 -13
  244. package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
  245. package/out/ui/packages/imageList/components/ImageList.luau +0 -93
  246. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
  247. package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
  248. package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
  249. package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
  250. package/out/ui/packages/imageList/index.d.ts +0 -2
  251. package/out/ui/packages/imageList/init.luau +0 -5
  252. package/out/ui/packages/layout/components/Box.d.ts +0 -11
  253. package/out/ui/packages/layout/components/Box.luau +0 -40
  254. package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
  255. package/out/ui/packages/layout/components/Box.styles.luau +0 -34
  256. package/out/ui/packages/layout/components/Container.d.ts +0 -10
  257. package/out/ui/packages/layout/components/Container.luau +0 -45
  258. package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
  259. package/out/ui/packages/layout/components/Container.styles.luau +0 -41
  260. package/out/ui/packages/layout/components/FlexItem.d.ts +0 -12
  261. package/out/ui/packages/layout/components/FlexItem.luau +0 -40
  262. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +0 -8
  263. package/out/ui/packages/layout/components/FlexItem.styles.luau +0 -66
  264. package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
  265. package/out/ui/packages/layout/components/boxPad.luau +0 -59
  266. package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
  267. package/out/ui/packages/layout/components/containerWidth.luau +0 -17
  268. package/out/ui/packages/layout/components/flexItemMode.d.ts +0 -6
  269. package/out/ui/packages/layout/components/flexItemMode.luau +0 -36
  270. package/out/ui/packages/layout/components/gridProps.d.ts +0 -3
  271. package/out/ui/packages/layout/components/gridProps.luau +0 -20
  272. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +0 -11
  273. package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +0 -2
  274. package/out/ui/packages/markdown/components/Markdown.d.ts +0 -6
  275. package/out/ui/packages/markdown/components/Markdown.luau +0 -221
  276. package/out/ui/packages/markdown/components/Markdown.styles.d.ts +0 -2
  277. package/out/ui/packages/markdown/components/Markdown.styles.luau +0 -101
  278. package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +0 -22
  279. package/out/ui/packages/markdown/components/MarkdownEditor.luau +0 -433
  280. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +0 -6
  281. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +0 -161
  282. package/out/ui/packages/markdown/components/markdownEditorHeight.d.ts +0 -1
  283. package/out/ui/packages/markdown/components/markdownEditorHeight.luau +0 -13
  284. package/out/ui/packages/markdown/htmlToMarkdown.d.ts +0 -2
  285. package/out/ui/packages/markdown/htmlToMarkdown.luau +0 -350
  286. package/out/ui/packages/markdown/index.d.ts +0 -8
  287. package/out/ui/packages/markdown/init.luau +0 -11
  288. package/out/ui/packages/markdown/parseMarkdown.d.ts +0 -42
  289. package/out/ui/packages/markdown/parseMarkdown.luau +0 -459
  290. package/out/ui/packages/reorder/index.d.ts +0 -2
  291. package/out/ui/packages/reorder/init.luau +0 -14
  292. package/out/ui/packages/reorder/reorder.d.ts +0 -24
  293. package/out/ui/packages/reorder/reorder.luau +0 -178
  294. package/out/ui/packages/reorder/useReorderDrag.d.ts +0 -15
  295. package/out/ui/packages/reorder/useReorderDrag.luau +0 -129
  296. package/out/ui/packages/scroll/components/ScrollView.d.ts +0 -7
  297. package/out/ui/packages/scroll/components/ScrollView.luau +0 -42
  298. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
  299. package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
  300. package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
  301. package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
  302. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
  303. package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
  304. package/out/ui/packages/sparkline/components/Sparkline.d.ts +0 -9
  305. package/out/ui/packages/sparkline/components/Sparkline.luau +0 -66
  306. package/out/ui/packages/sparkline/index.d.ts +0 -3
  307. package/out/ui/packages/sparkline/init.luau +0 -6
  308. package/out/ui/packages/sparkline/sparklineLayout.d.ts +0 -8
  309. package/out/ui/packages/sparkline/sparklineLayout.luau +0 -75
  310. package/out/ui/packages/table/components/tableColumns.d.ts +0 -26
  311. package/out/ui/packages/table/components/tableColumns.luau +0 -92
  312. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
  313. package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
@@ -1,433 +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 useEffect = _react.useEffect
6
- local useRef = _react.useRef
7
- local useState = _react.useState
8
- local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
9
- local Button = TS.import(script, script.Parent.Parent.Parent, "button").Button
10
- local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
11
- local IconButton = TS.import(script, script.Parent.Parent.Parent, "iconButton").IconButton
12
- local Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
13
- local ToggleButtonGroup = TS.import(script, script.Parent.Parent.Parent, "toggleButton").ToggleButtonGroup
14
- local htmlToMarkdown = TS.import(script, script.Parent.Parent, "htmlToMarkdown").htmlToMarkdown
15
- local Markdown = TS.import(script, script.Parent, "Markdown").default
16
- local clampEditorHeight = TS.import(script, script.Parent, "markdownEditorHeight").clampEditorHeight
17
- local useMarkdownEditorStyles = TS.import(script, script.Parent, "MarkdownEditor.styles").default
18
- local MODE_OPTIONS = { {
19
- label = "Split",
20
- value = "split",
21
- }, {
22
- label = "Edit",
23
- value = "edit",
24
- }, {
25
- label = "Preview",
26
- value = "preview",
27
- } }
28
- local function looksLikeHtml(text)
29
- local lower = string.lower(text)
30
- return (string.find(lower, "<p", 1, true)) ~= nil or (string.find(lower, "<h1", 1, true)) ~= nil or (string.find(lower, "<h2", 1, true)) ~= nil or (string.find(lower, "<div", 1, true)) ~= nil or (string.find(lower, "<ul", 1, true)) ~= nil or (string.find(lower, "<ol", 1, true)) ~= nil or (string.find(lower, "<pre", 1, true)) ~= nil or (string.find(lower, "<blockquote", 1, true)) ~= nil or (string.find(lower, "<strong", 1, true)) ~= nil
31
- end
32
- local function MarkdownEditor(props)
33
- local _binding = props
34
- local value = _binding.value
35
- local onChange = _binding.onChange
36
- local modeProp = _binding.mode
37
- local onModeChange = _binding.onModeChange
38
- local fullscreenProp = _binding.fullscreen
39
- local onFullscreenChange = _binding.onFullscreenChange
40
- local preview = _binding.preview
41
- local placeholder = _binding.placeholder
42
- if placeholder == nil then
43
- placeholder = "Write markdown…"
44
- end
45
- local resizable = _binding.resizable
46
- if resizable == nil then
47
- resizable = false
48
- end
49
- local heightProp = _binding.height
50
- local defaultHeight = _binding.defaultHeight
51
- if defaultHeight == nil then
52
- defaultHeight = 360
53
- end
54
- local minHeight = _binding.minHeight
55
- if minHeight == nil then
56
- minHeight = 200
57
- end
58
- local maxHeight = _binding.maxHeight
59
- if maxHeight == nil then
60
- maxHeight = 720
61
- end
62
- local onHeightChange = _binding.onHeightChange
63
- local className = _binding.className
64
- local sx = _binding.sx
65
- local id = _binding.id
66
- local ref = _binding.ref
67
- local _binding_1 = useTheme()
68
- local theme = _binding_1.theme
69
- local modeState, setModeState = useState("split")
70
- local fullscreenState, setFullscreenState = useState(false)
71
- local draft, setDraft = useState(value)
72
- local htmlDraft, setHtmlDraft = useState(nil)
73
- local heightState, setHeightState = useState(defaultHeight)
74
- local dragging, setDragging = useState(false)
75
- local focused = useRef(false)
76
- local dragStart = useRef(0)
77
- local heightStart = useRef(0)
78
- local mode = modeProp or modeState
79
- local _condition = fullscreenProp
80
- if _condition == nil then
81
- _condition = fullscreenState
82
- end
83
- local fullscreen = _condition
84
- local _condition_1 = heightProp
85
- if _condition_1 == nil then
86
- _condition_1 = heightState
87
- end
88
- local height = clampEditorHeight(_condition_1, minHeight, maxHeight)
89
- local compact = theme.density == "compact"
90
- local styles = useMarkdownEditorStyles({
91
- fullscreen = fullscreen,
92
- compact = compact,
93
- })
94
- useEffect(function()
95
- if not focused.current then
96
- setDraft(value)
97
- end
98
- end, { value })
99
- local setMode = function(modeNext)
100
- if modeProp == nil then
101
- setModeState(modeNext)
102
- end
103
- local _result = onModeChange
104
- if _result ~= nil then
105
- _result(modeNext)
106
- end
107
- end
108
- local setFullscreen = function(fullNext)
109
- if fullscreenProp == nil then
110
- setFullscreenState(fullNext)
111
- end
112
- local _result = onFullscreenChange
113
- if _result ~= nil then
114
- _result(fullNext)
115
- end
116
- end
117
- local setHeight = function(requested)
118
- local clamped = clampEditorHeight(requested, minHeight, maxHeight)
119
- if heightProp == nil then
120
- setHeightState(clamped)
121
- end
122
- if clamped ~= height then
123
- local _result = onHeightChange
124
- if _result ~= nil then
125
- _result(clamped)
126
- end
127
- end
128
- end
129
- local showEdit = mode == "split" or mode == "edit"
130
- local showPreview = mode == "split" or mode == "preview"
131
- local previewNode = if preview ~= nil then preview(value) else React.createElement(Markdown, {
132
- value = value,
133
- })
134
- local _attributes = {
135
- tag = "frame",
136
- }
137
- local _condition_2 = id
138
- if not (_condition_2 ~= 0 and _condition_2 == _condition_2 and _condition_2 ~= "" and _condition_2) then
139
- _condition_2 = "MarkdownEditor"
140
- end
141
- _attributes.key = _condition_2
142
- _attributes.hostRef = ref
143
- local _object = table.clone(styles.root)
144
- setmetatable(_object, nil)
145
- _object.Size = if resizable and not fullscreen then UDim2.new(1, 0, 0, height) else UDim2.fromScale(1, 1)
146
- _attributes.base = _object
147
- _attributes.className = className
148
- _attributes.sx = sx
149
- local _attributes_1 = table.clone(styles.corner)
150
- setmetatable(_attributes_1, nil)
151
- local _exp = React.createElement("uicorner", _attributes_1)
152
- local _attributes_2 = table.clone(styles.stroke)
153
- setmetatable(_attributes_2, nil)
154
- local _exp_1 = React.createElement("uistroke", _attributes_2)
155
- local _attributes_3 = {
156
- key = "Content",
157
- }
158
- for _k, _v in styles.content do
159
- _attributes_3[_k] = _v
160
- end
161
- local _attributes_4 = table.clone(styles.layout)
162
- setmetatable(_attributes_4, nil)
163
- local _exp_2 = React.createElement("uilistlayout", _attributes_4)
164
- local _attributes_5 = {
165
- key = "Toolbar",
166
- }
167
- for _k, _v in styles.toolbar do
168
- _attributes_5[_k] = _v
169
- end
170
- local _attributes_6 = table.clone(styles.toolbarPad)
171
- setmetatable(_attributes_6, nil)
172
- local _exp_3 = React.createElement("uipadding", _attributes_6)
173
- local _attributes_7 = table.clone(styles.toolbarRow)
174
- setmetatable(_attributes_7, nil)
175
- local _exp_4 = React.createElement("frame", _attributes_5, _exp_3, React.createElement("uilistlayout", _attributes_7), React.createElement(ToggleButtonGroup, {
176
- value = mode,
177
- options = MODE_OPTIONS,
178
- size = if compact then "small" else "medium",
179
- onChange = setMode,
180
- className = {
181
- LayoutOrder = 1,
182
- AutomaticSize = Enum.AutomaticSize.XY,
183
- Size = UDim2.fromScale(0, 0),
184
- },
185
- }), React.createElement(Button, {
186
- text = "Paste HTML",
187
- variant = "text",
188
- size = if compact then "small" else "medium",
189
- className = {
190
- LayoutOrder = 2,
191
- AutomaticSize = Enum.AutomaticSize.XY,
192
- Size = UDim2.fromScale(0, 0),
193
- },
194
- onLeftClick = function()
195
- if looksLikeHtml(value) then
196
- onChange(htmlToMarkdown(value))
197
- else
198
- setHtmlDraft("")
199
- end
200
- end,
201
- }), React.createElement(IconButton, {
202
- icon = Icons.Expanded,
203
- size = "sm",
204
- tint = theme.palette.text.secondary,
205
- selected = fullscreen,
206
- onClick = function()
207
- return setFullscreen(not fullscreen)
208
- end,
209
- className = {
210
- LayoutOrder = 99,
211
- },
212
- }))
213
- local _exp_5 = htmlDraft ~= nil and (React.createElement("frame", {
214
- key = "HtmlPaste",
215
- Size = UDim2.new(1, 0, 0, 96),
216
- BackgroundColor3 = theme.palette.surface.elevated,
217
- BorderSizePixel = 0,
218
- LayoutOrder = 1,
219
- }, React.createElement("uipadding", {
220
- PaddingTop = UDim.new(0, theme.padding.calc(1)),
221
- PaddingBottom = UDim.new(0, theme.padding.calc(1)),
222
- PaddingLeft = UDim.new(0, theme.padding.calc(1)),
223
- PaddingRight = UDim.new(0, theme.padding.calc(1)),
224
- }), React.createElement("uilistlayout", {
225
- FillDirection = Enum.FillDirection.Vertical,
226
- SortOrder = Enum.SortOrder.LayoutOrder,
227
- Padding = UDim.new(0, theme.padding.calc(1)),
228
- }), React.createElement("textbox", {
229
- key = "HtmlField",
230
- Size = UDim2.new(1, 0, 0, 48),
231
- BackgroundColor3 = theme.palette.surface.input,
232
- BorderSizePixel = 0,
233
- ClearTextOnFocus = false,
234
- MultiLine = true,
235
- Text = htmlDraft,
236
- PlaceholderText = "Paste HTML here",
237
- TextXAlignment = Enum.TextXAlignment.Left,
238
- TextYAlignment = Enum.TextYAlignment.Top,
239
- TextSize = theme.typography.fontSizes.caption,
240
- TextColor3 = theme.palette.text.primary,
241
- Font = Enum.Font.RobotoMono,
242
- Change = {
243
- Text = function(rbx)
244
- return setHtmlDraft(rbx.Text)
245
- end,
246
- },
247
- LayoutOrder = 1,
248
- }), React.createElement("frame", {
249
- key = "HtmlActions",
250
- Size = UDim2.new(1, 0, 0, 28),
251
- BackgroundTransparency = 1,
252
- LayoutOrder = 2,
253
- }, React.createElement("uilistlayout", {
254
- FillDirection = Enum.FillDirection.Horizontal,
255
- Padding = UDim.new(0, theme.padding.calc(1)),
256
- SortOrder = Enum.SortOrder.LayoutOrder,
257
- }), React.createElement(Button, {
258
- text = "Convert",
259
- size = "small",
260
- className = {
261
- LayoutOrder = 1,
262
- AutomaticSize = Enum.AutomaticSize.XY,
263
- Size = UDim2.fromScale(0, 0),
264
- },
265
- onLeftClick = function()
266
- onChange(htmlToMarkdown(htmlDraft))
267
- setHtmlDraft(nil)
268
- setMode("preview")
269
- end,
270
- }), React.createElement(Button, {
271
- text = "Cancel",
272
- variant = "text",
273
- size = "small",
274
- className = {
275
- LayoutOrder = 2,
276
- AutomaticSize = Enum.AutomaticSize.XY,
277
- Size = UDim2.fromScale(0, 0),
278
- },
279
- onLeftClick = function()
280
- return setHtmlDraft(nil)
281
- end,
282
- }))))
283
- local _attributes_8 = {
284
- key = "Body",
285
- }
286
- for _k, _v in styles.body do
287
- _attributes_8[_k] = _v
288
- end
289
- _attributes_8.LayoutOrder = 3
290
- local _condition_3 = mode == "split"
291
- if _condition_3 then
292
- local _attributes_9 = table.clone(styles.split)
293
- setmetatable(_attributes_9, nil)
294
- _condition_3 = React.createElement("uilistlayout", _attributes_9)
295
- end
296
- local _condition_4 = showEdit
297
- if _condition_4 then
298
- local _attributes_9 = {
299
- key = "EditPane",
300
- }
301
- for _k, _v in (if mode == "split" then styles.pane else styles.paneFull) do
302
- _attributes_9[_k] = _v
303
- end
304
- _attributes_9.LayoutOrder = 1
305
- local _attributes_10 = {
306
- key = "Editor",
307
- }
308
- for _k, _v in styles.editor do
309
- _attributes_10[_k] = _v
310
- end
311
- _attributes_10.Text = draft
312
- _attributes_10.PlaceholderText = placeholder
313
- _attributes_10.Change = {
314
- Text = function(rbx)
315
- setDraft(rbx.Text)
316
- if focused.current and rbx.Text ~= value then
317
- onChange(rbx.Text)
318
- end
319
- end,
320
- }
321
- _attributes_10.Event = {
322
- Focused = function()
323
- focused.current = true
324
- end,
325
- FocusLost = function(rbx)
326
- focused.current = false
327
- setDraft(rbx.Text)
328
- onChange(rbx.Text)
329
- end,
330
- }
331
- local _attributes_11 = table.clone(styles.editorPad)
332
- setmetatable(_attributes_11, nil)
333
- _condition_4 = (React.createElement("frame", _attributes_9, React.createElement("textbox", _attributes_10, React.createElement("uipadding", _attributes_11))))
334
- end
335
- local _condition_5 = mode == "split"
336
- if _condition_5 then
337
- local _attributes_9 = {
338
- key = "SplitRule",
339
- }
340
- for _k, _v in styles.divider do
341
- _attributes_9[_k] = _v
342
- end
343
- _condition_5 = React.createElement("frame", _attributes_9)
344
- end
345
- local _condition_6 = showPreview
346
- if _condition_6 then
347
- local _attributes_9 = {
348
- key = "PreviewPane",
349
- }
350
- for _k, _v in styles.previewScroll do
351
- _attributes_9[_k] = _v
352
- end
353
- _attributes_9.Size = if mode == "split" then UDim2.fromScale(0.5, 1) else UDim2.fromScale(1, 1)
354
- _attributes_9.LayoutOrder = 3
355
- local _attributes_10 = table.clone(styles.previewPad)
356
- setmetatable(_attributes_10, nil)
357
- _condition_6 = (React.createElement("scrollingframe", _attributes_9, React.createElement("uipadding", _attributes_10), previewNode))
358
- end
359
- local _exp_6 = React.createElement("frame", _attributes_3, _exp_2, _exp_4, _exp_5, React.createElement("frame", _attributes_8, _condition_3, _condition_4, _condition_5, _condition_6))
360
- local _condition_7 = resizable and not fullscreen
361
- if _condition_7 then
362
- local _attributes_9 = {
363
- key = "ResizeGrip",
364
- }
365
- for _k, _v in styles.resizeGrip do
366
- _attributes_9[_k] = _v
367
- end
368
- _attributes_9.Text = ""
369
- _attributes_9.Active = true
370
- _attributes_9.Selectable = true
371
- _attributes_9.Event = {
372
- InputBegan = function(_, input)
373
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
374
- dragStart.current = input.Position.Y
375
- heightStart.current = height
376
- setDragging(true)
377
- elseif input.KeyCode == Enum.KeyCode.Up then
378
- setHeight(height - 16)
379
- elseif input.KeyCode == Enum.KeyCode.Down then
380
- setHeight(height + 16)
381
- end
382
- end,
383
- }
384
- local _attributes_10 = {
385
- key = "Long",
386
- }
387
- for _k, _v in styles.resizeMark do
388
- _attributes_10[_k] = _v
389
- end
390
- _attributes_10.Position = UDim2.fromOffset(4, 14)
391
- _attributes_10.Size = UDim2.fromOffset(12, 2)
392
- local _exp_7 = React.createElement("frame", _attributes_10)
393
- local _attributes_11 = {
394
- key = "Short",
395
- }
396
- for _k, _v in styles.resizeMark do
397
- _attributes_11[_k] = _v
398
- end
399
- _attributes_11.Position = UDim2.fromOffset(10, 10)
400
- _attributes_11.Size = UDim2.fromOffset(6, 2)
401
- _condition_7 = (React.createElement("textbutton", _attributes_9, _exp_7, React.createElement("frame", _attributes_11)))
402
- end
403
- local _condition_8 = dragging
404
- if _condition_8 then
405
- local _attributes_9 = {
406
- key = "ResizeOverlay",
407
- }
408
- for _k, _v in styles.resizeOverlay do
409
- _attributes_9[_k] = _v
410
- end
411
- _attributes_9.Event = {
412
- InputChanged = function(_, input)
413
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
414
- setHeight(heightStart.current + input.Position.Y - dragStart.current)
415
- end
416
- end,
417
- InputEnded = function(_, input)
418
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
419
- setDragging(false)
420
- end
421
- end,
422
- MouseLeave = function()
423
- return setDragging(false)
424
- end,
425
- }
426
- _condition_8 = (React.createElement("frame", _attributes_9))
427
- end
428
- return React.createElement(SxHost, _attributes, _exp, _exp_1, _exp_6, _condition_7, _condition_8)
429
- end
430
- local default = MarkdownEditor
431
- return {
432
- default = default,
433
- }
@@ -1,6 +0,0 @@
1
- export type MarkdownEditorMode = "split" | "edit" | "preview";
2
- declare const useMarkdownEditorStyles: (props: {
3
- fullscreen?: boolean;
4
- compact?: boolean;
5
- }) => import("../../../../theme/index").ClassNameMap<string>;
6
- export default useMarkdownEditorStyles;
@@ -1,161 +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 useMarkdownEditorStyles = componentStyles("MarkdownEditor", function(theme, _param)
7
- local fullscreen = _param.fullscreen
8
- local compact = _param.compact
9
- local pad = if compact == true or theme.density == "compact" then theme.padding.calc(1) else theme.padding.calc(1.5)
10
- local _object = {
11
- root = {
12
- Size = if fullscreen == true then UDim2.fromScale(1, 1) else UDim2.new(1, 0, 1, 0),
13
- BackgroundColor3 = theme.palette.surface.paper,
14
- BorderSizePixel = 0,
15
- },
16
- content = {
17
- Size = UDim2.fromScale(1, 1),
18
- BackgroundTransparency = 1,
19
- BorderSizePixel = 0,
20
- },
21
- corner = {
22
- CornerRadius = UDim.new(0, theme.shape.borderRadius),
23
- },
24
- stroke = {
25
- Color = theme.palette.divider,
26
- Thickness = 1,
27
- ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
28
- },
29
- layout = {
30
- FillDirection = Enum.FillDirection.Vertical,
31
- HorizontalAlignment = Enum.HorizontalAlignment.Left,
32
- VerticalAlignment = Enum.VerticalAlignment.Top,
33
- SortOrder = Enum.SortOrder.LayoutOrder,
34
- Padding = UDim.new(0, 0),
35
- },
36
- toolbar = {
37
- Size = UDim2.new(1, 0, 0, if compact == true or theme.density == "compact" then 32 else 36),
38
- BackgroundColor3 = theme.palette.surface.elevated,
39
- BorderSizePixel = 0,
40
- LayoutOrder = 1,
41
- },
42
- toolbarPad = {
43
- PaddingLeft = UDim.new(0, pad),
44
- PaddingRight = UDim.new(0, pad),
45
- PaddingTop = UDim.new(0, theme.padding.calc(0.5)),
46
- PaddingBottom = UDim.new(0, theme.padding.calc(0.5)),
47
- },
48
- toolbarRow = {
49
- FillDirection = Enum.FillDirection.Horizontal,
50
- HorizontalAlignment = Enum.HorizontalAlignment.Left,
51
- VerticalAlignment = Enum.VerticalAlignment.Center,
52
- SortOrder = Enum.SortOrder.LayoutOrder,
53
- Padding = UDim.new(0, theme.padding.calc(1)),
54
- },
55
- spacer = {
56
- Size = UDim2.new(1, 0, 1, 0),
57
- BackgroundTransparency = 1,
58
- BorderSizePixel = 0,
59
- LayoutOrder = 50,
60
- },
61
- body = {
62
- Size = UDim2.new(1, 0, 1, -(if compact == true or theme.density == "compact" then 32 else 36)),
63
- BackgroundTransparency = 1,
64
- BorderSizePixel = 0,
65
- LayoutOrder = 2,
66
- },
67
- pane = {
68
- Size = UDim2.fromScale(0.5, 1),
69
- BackgroundTransparency = 1,
70
- BorderSizePixel = 0,
71
- },
72
- paneFull = {
73
- Size = UDim2.fromScale(1, 1),
74
- BackgroundTransparency = 1,
75
- BorderSizePixel = 0,
76
- },
77
- }
78
- local _left = "editor"
79
- local _object_1 = {
80
- Size = UDim2.fromScale(1, 1),
81
- BackgroundColor3 = theme.palette.surface.input,
82
- BorderSizePixel = 0,
83
- ClearTextOnFocus = false,
84
- MultiLine = true,
85
- TextXAlignment = Enum.TextXAlignment.Left,
86
- TextYAlignment = Enum.TextYAlignment.Top,
87
- TextWrapped = true,
88
- Font = Enum.Font.RobotoMono,
89
- }
90
- local _left_1 = "TextSize"
91
- local _condition = theme.typography.fontSizes.caption
92
- if _condition == nil then
93
- _condition = theme.typography.fontSizes.body
94
- end
95
- _object_1[_left_1] = _condition
96
- _object_1.TextColor3 = theme.palette.text.primary
97
- _object_1.PlaceholderColor3 = theme.palette.text.secondary
98
- _object[_left] = _object_1
99
- _object.editorPad = {
100
- PaddingTop = UDim.new(0, pad),
101
- PaddingBottom = UDim.new(0, pad),
102
- PaddingLeft = UDim.new(0, pad),
103
- PaddingRight = UDim.new(0, pad),
104
- }
105
- _object.previewScroll = {
106
- Size = UDim2.fromScale(1, 1),
107
- BackgroundTransparency = 1,
108
- BorderSizePixel = 0,
109
- ScrollBarThickness = 4,
110
- CanvasSize = UDim2.new(0, 0, 0, 0),
111
- AutomaticCanvasSize = Enum.AutomaticSize.Y,
112
- }
113
- _object.previewPad = {
114
- PaddingTop = UDim.new(0, pad),
115
- PaddingBottom = UDim.new(0, pad),
116
- PaddingLeft = UDim.new(0, pad),
117
- PaddingRight = UDim.new(0, pad),
118
- }
119
- _object.split = {
120
- FillDirection = Enum.FillDirection.Horizontal,
121
- HorizontalAlignment = Enum.HorizontalAlignment.Left,
122
- VerticalAlignment = Enum.VerticalAlignment.Top,
123
- SortOrder = Enum.SortOrder.LayoutOrder,
124
- Padding = UDim.new(0, 0),
125
- }
126
- _object.divider = {
127
- Size = UDim2.new(0, 1, 1, 0),
128
- BackgroundColor3 = theme.palette.divider,
129
- BorderSizePixel = 0,
130
- LayoutOrder = 2,
131
- }
132
- _object.resizeGrip = {
133
- AnchorPoint = Vector2.new(1, 1),
134
- Position = UDim2.fromScale(1, 1),
135
- Size = UDim2.fromOffset(22, 22),
136
- BackgroundColor3 = theme.palette.surface.elevated,
137
- BackgroundTransparency = 0.15,
138
- BorderSizePixel = 0,
139
- AutoButtonColor = false,
140
- ZIndex = 20,
141
- }
142
- _object.resizeMark = {
143
- AnchorPoint = Vector2.new(0.5, 0.5),
144
- BackgroundColor3 = theme.palette.text.secondary,
145
- BorderSizePixel = 0,
146
- Rotation = -45,
147
- ZIndex = 21,
148
- }
149
- _object.resizeOverlay = {
150
- Size = UDim2.fromScale(1, 1),
151
- BackgroundTransparency = 1,
152
- BorderSizePixel = 0,
153
- Active = true,
154
- ZIndex = 30,
155
- }
156
- return createStyles(_object)
157
- end)
158
- local default = useMarkdownEditorStyles
159
- return {
160
- default = default,
161
- }
@@ -1 +0,0 @@
1
- export declare function clampEditorHeight(value: number, min?: number, max?: number): number;
@@ -1,13 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function clampEditorHeight(value, min, max)
3
- if min == nil then
4
- min = 200
5
- end
6
- if max == nil then
7
- max = 720
8
- end
9
- return math.clamp(value, math.min(min, max), math.max(min, max))
10
- end
11
- return {
12
- clampEditorHeight = clampEditorHeight,
13
- }
@@ -1,2 +0,0 @@
1
- /** Map a small HTML subset to the markdown preview subset. Unknown tags unwrap to text. */
2
- export declare function htmlToMarkdown(html: string): string;