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

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 (395) hide show
  1. package/README.md +1 -18
  2. package/out/theme/constants/NumberConstants.d.ts +10 -0
  3. package/out/theme/constants/NumberConstants.luau +12 -0
  4. package/out/theme/interfaces/density/controlMetrics.luau +2 -2
  5. package/out/theme/interfaces/palette/Palette.d.ts +7 -0
  6. package/out/theme/interfaces/spacing/Shape.d.ts +6 -0
  7. package/out/theme/interfaces/theme/Theme.d.ts +6 -0
  8. package/out/theme/interfaces/typography/FontFamilies.luau +1 -0
  9. package/out/theme/interfaces/typography/FontFamilyOptions.d.ts +1 -1
  10. package/out/theme/interfaces/typography/FontSizeOptions.d.ts +1 -1
  11. package/out/theme/interfaces/typography/FontSizes.luau +2 -0
  12. package/out/theme/interfaces/typography/Variants.d.ts +3 -1
  13. package/out/theme/interfaces/typography/Variants.luau +25 -1
  14. package/out/theme/styles/utilities/focusRing.d.ts +7 -0
  15. package/out/theme/styles/utilities/focusRing.luau +14 -0
  16. package/out/theme/styles/utilities/index.d.ts +1 -0
  17. package/out/theme/styles/utilities/init.luau +3 -0
  18. package/out/theme/styles/utilities/resolveSx.d.ts +6 -1
  19. package/out/theme/styles/utilities/resolveSx.luau +53 -12
  20. package/out/theme/themes/DarkTheme.luau +4 -0
  21. package/out/theme/themes/LightTheme.luau +4 -0
  22. package/out/theme/themes/createPalette.luau +15 -0
  23. package/out/ui/packages/accordion/components/Accordion.d.ts +1 -0
  24. package/out/ui/packages/accordion/components/Accordion.luau +112 -32
  25. package/out/ui/packages/accordion/components/Accordion.styles.luau +70 -32
  26. package/out/ui/packages/accordion/components/accordionNote.d.ts +2 -0
  27. package/out/ui/packages/accordion/components/accordionNote.luau +11 -0
  28. package/out/ui/packages/alert/components/Alert.d.ts +2 -0
  29. package/out/ui/packages/alert/components/Alert.luau +39 -12
  30. package/out/ui/packages/alert/components/Alert.styles.luau +44 -22
  31. package/out/ui/packages/alert/components/alertAction.d.ts +2 -0
  32. package/out/ui/packages/alert/components/alertAction.luau +11 -0
  33. package/out/ui/packages/appBar/components/AppBar.d.ts +1 -0
  34. package/out/ui/packages/appBar/components/AppBar.luau +88 -22
  35. package/out/ui/packages/appBar/components/AppBar.styles.luau +41 -11
  36. package/out/ui/packages/appBar/components/appBarSubtitle.d.ts +2 -0
  37. package/out/ui/packages/appBar/components/appBarSubtitle.luau +11 -0
  38. package/out/ui/packages/autocomplete/components/Autocomplete.luau +4 -0
  39. package/out/ui/packages/avatar/components/Avatar.d.ts +2 -0
  40. package/out/ui/packages/avatar/components/Avatar.luau +9 -2
  41. package/out/ui/packages/avatar/components/Avatar.styles.luau +7 -0
  42. package/out/ui/packages/avatarGroup/components/AvatarGroup.d.ts +14 -0
  43. package/out/ui/packages/avatarGroup/components/AvatarGroup.luau +107 -0
  44. package/out/ui/packages/avatarGroup/components/AvatarGroup.styles.d.ts +6 -0
  45. package/out/ui/packages/avatarGroup/components/AvatarGroup.styles.luau +55 -0
  46. package/out/ui/packages/avatarGroup/components/avatarGroupCut.d.ts +2 -0
  47. package/out/ui/packages/avatarGroup/components/avatarGroupCut.luau +11 -0
  48. package/out/ui/packages/avatarGroup/index.d.ts +3 -0
  49. package/out/ui/packages/avatarGroup/init.luau +6 -0
  50. package/out/ui/packages/badge/components/Badge.luau +14 -11
  51. package/out/ui/packages/badge/components/Badge.styles.luau +5 -1
  52. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +4 -1
  53. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +19 -1
  54. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +24 -3
  55. package/out/ui/packages/bottomNavigation/components/navBadge.d.ts +2 -0
  56. package/out/ui/packages/bottomNavigation/components/navBadge.luau +14 -0
  57. package/out/ui/packages/bottomNavigation/index.d.ts +1 -1
  58. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +21 -6
  59. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.styles.luau +10 -0
  60. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +2 -0
  61. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +8 -0
  62. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +20 -2
  63. package/out/ui/packages/brickColorPicker/components/BrickColorPicker.styles.luau +72 -66
  64. package/out/ui/packages/button/components/Button.d.ts +2 -0
  65. package/out/ui/packages/button/components/Button.luau +112 -36
  66. package/out/ui/packages/button/components/Button.styles.luau +2 -0
  67. package/out/ui/packages/button/components/buttonLook.d.ts +2 -0
  68. package/out/ui/packages/button/components/buttonLook.luau +11 -0
  69. package/out/ui/packages/button/components/buttonPaint.d.ts +16 -0
  70. package/out/ui/packages/button/components/buttonPaint.luau +70 -0
  71. package/out/ui/packages/buttonGroup/components/ButtonGroup.d.ts +14 -0
  72. package/out/ui/packages/buttonGroup/components/ButtonGroup.luau +117 -0
  73. package/out/ui/packages/buttonGroup/components/ButtonGroup.styles.d.ts +5 -0
  74. package/out/ui/packages/buttonGroup/components/ButtonGroup.styles.luau +57 -0
  75. package/out/ui/packages/buttonGroup/components/buttonGroupEdge.d.ts +2 -0
  76. package/out/ui/packages/buttonGroup/components/buttonGroupEdge.luau +16 -0
  77. package/out/ui/packages/buttonGroup/index.d.ts +3 -0
  78. package/out/ui/packages/buttonGroup/init.luau +6 -0
  79. package/out/ui/packages/card/components/Card.d.ts +1 -0
  80. package/out/ui/packages/card/components/Card.luau +21 -2
  81. package/out/ui/packages/card/components/Card.styles.d.ts +3 -1
  82. package/out/ui/packages/card/components/Card.styles.luau +20 -9
  83. package/out/ui/packages/card/components/cardWidth.d.ts +10 -0
  84. package/out/ui/packages/card/components/cardWidth.luau +36 -0
  85. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +18 -5
  86. package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +50 -32
  87. package/out/ui/packages/cframeEditor/components/cframeValue.d.ts +1 -0
  88. package/out/ui/packages/cframeEditor/components/cframeValue.luau +13 -0
  89. package/out/ui/packages/checkbox/components/Checkbox.luau +7 -5
  90. package/out/ui/packages/checkbox/components/Checkbox.styles.luau +2 -0
  91. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +2 -2
  92. package/out/ui/packages/checkbox/components/checkboxLook.luau +2 -2
  93. package/out/ui/packages/chip/components/Chip.luau +16 -14
  94. package/out/ui/packages/chip/components/Chip.styles.d.ts +2 -1
  95. package/out/ui/packages/chip/components/Chip.styles.luau +15 -9
  96. package/out/ui/packages/chip/components/chipTone.d.ts +3 -0
  97. package/out/ui/packages/chip/components/chipTone.luau +11 -0
  98. package/out/ui/packages/circularProgress/components/CircularProgress.luau +10 -3
  99. package/out/ui/packages/codeEditor/components/CodeEditor.d.ts +12 -0
  100. package/out/ui/packages/codeEditor/components/CodeEditor.luau +262 -0
  101. package/out/ui/packages/codeEditor/components/CodeEditor.styles.d.ts +6 -0
  102. package/out/ui/packages/codeEditor/components/CodeEditor.styles.luau +124 -0
  103. package/out/ui/packages/codeEditor/highlightCode.d.ts +11 -0
  104. package/out/ui/packages/codeEditor/highlightCode.luau +503 -0
  105. package/out/ui/packages/codeEditor/index.d.ts +2 -0
  106. package/out/ui/packages/codeEditor/init.luau +5 -0
  107. package/out/ui/packages/collapse/components/Collapse.d.ts +8 -0
  108. package/out/ui/packages/collapse/components/Collapse.luau +34 -0
  109. package/out/ui/packages/collapse/components/Collapse.styles.d.ts +2 -0
  110. package/out/ui/packages/collapse/components/Collapse.styles.luau +20 -0
  111. package/out/ui/packages/collapse/components/collapseOpen.d.ts +1 -0
  112. package/out/ui/packages/collapse/components/collapseOpen.luau +7 -0
  113. package/out/ui/packages/collapse/index.d.ts +3 -0
  114. package/out/ui/packages/collapse/init.luau +6 -0
  115. package/out/ui/packages/colorPicker/components/ColorPicker.luau +9 -1
  116. package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +74 -67
  117. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +16 -6
  118. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +16 -6
  119. package/out/ui/packages/colorPicker/components/sequenceValue.d.ts +2 -0
  120. package/out/ui/packages/colorPicker/components/sequenceValue.luau +8 -0
  121. package/out/ui/packages/colorPicker/index.d.ts +1 -1
  122. package/out/ui/packages/colorPicker/init.luau +2 -0
  123. package/out/ui/packages/copyButton/components/CopyButton.d.ts +8 -0
  124. package/out/ui/packages/copyButton/components/CopyButton.luau +32 -0
  125. package/out/ui/packages/copyButton/components/copyInvoke.d.ts +2 -0
  126. package/out/ui/packages/copyButton/components/copyInvoke.luau +12 -0
  127. package/out/ui/packages/copyButton/index.d.ts +3 -0
  128. package/out/ui/packages/copyButton/init.luau +6 -0
  129. package/out/ui/packages/cover/components/Cover.d.ts +8 -0
  130. package/out/ui/packages/cover/components/Cover.luau +47 -0
  131. package/out/ui/packages/cover/components/coverFill.d.ts +2 -0
  132. package/out/ui/packages/cover/components/coverFill.luau +14 -0
  133. package/out/ui/packages/cover/index.d.ts +3 -0
  134. package/out/ui/packages/cover/init.luau +6 -0
  135. package/out/ui/packages/dateRange/components/DateRangePicker.d.ts +3 -0
  136. package/out/ui/packages/dateRange/components/DateRangePicker.luau +186 -95
  137. package/out/ui/packages/dateRange/dateRangeValue.d.ts +5 -0
  138. package/out/ui/packages/dateRange/dateRangeValue.luau +34 -0
  139. package/out/ui/packages/dateRange/index.d.ts +1 -1
  140. package/out/ui/packages/dateRange/init.luau +3 -0
  141. package/out/ui/packages/dialog/components/Dialog.d.ts +1 -0
  142. package/out/ui/packages/dialog/components/Dialog.luau +55 -6
  143. package/out/ui/packages/dialog/components/Dialog.styles.luau +9 -5
  144. package/out/ui/packages/dialog/components/dialogWidth.d.ts +7 -0
  145. package/out/ui/packages/dialog/components/dialogWidth.luau +35 -0
  146. package/out/ui/packages/divider/components/Divider.luau +60 -13
  147. package/out/ui/packages/divider/components/Divider.styles.luau +1 -0
  148. package/out/ui/packages/divider/components/dividerLabel.d.ts +2 -0
  149. package/out/ui/packages/divider/components/dividerLabel.luau +11 -0
  150. package/out/ui/packages/drawer/components/Drawer.d.ts +2 -0
  151. package/out/ui/packages/drawer/components/Drawer.luau +51 -7
  152. package/out/ui/packages/drawer/components/Drawer.styles.luau +13 -5
  153. package/out/ui/packages/drawer/components/drawerPlacement.d.ts +15 -1
  154. package/out/ui/packages/drawer/components/drawerPlacement.luau +46 -0
  155. package/out/ui/packages/editorFace.d.ts +22 -0
  156. package/out/ui/packages/editorFace.luau +49 -0
  157. package/out/ui/packages/fab/components/Fab.luau +19 -6
  158. package/out/ui/packages/fab/components/Fab.styles.luau +4 -3
  159. package/out/ui/packages/fontEditor/components/FontEditor.luau +13 -3
  160. package/out/ui/packages/fontEditor/components/FontEditor.styles.luau +36 -27
  161. package/out/ui/packages/gradientEditor/components/GradientEditor.luau +21 -13
  162. package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +52 -44
  163. package/out/ui/packages/icon/components/DrawnGlyph.d.ts +11 -0
  164. package/out/ui/packages/icon/components/DrawnGlyph.luau +87 -0
  165. package/out/ui/packages/icon/components/Icon.d.ts +6 -2
  166. package/out/ui/packages/icon/components/Icon.luau +23 -3
  167. package/out/ui/packages/icon/components/Icon.styles.luau +3 -0
  168. package/out/ui/packages/icon/components/glyphs.d.ts +28 -0
  169. package/out/ui/packages/icon/components/glyphs.luau +64 -0
  170. package/out/ui/packages/icon/index.d.ts +1 -0
  171. package/out/ui/packages/iconButton/components/IconButton.d.ts +6 -1
  172. package/out/ui/packages/iconButton/components/IconButton.luau +112 -11
  173. package/out/ui/packages/iconButton/components/IconButton.styles.luau +4 -27
  174. package/out/ui/packages/iconButton/components/iconButtonBox.d.ts +11 -0
  175. package/out/ui/packages/iconButton/components/iconButtonBox.luau +48 -0
  176. package/out/ui/packages/iconButton/components/transportGlyph.d.ts +10 -0
  177. package/out/ui/packages/iconButton/components/transportGlyph.luau +77 -0
  178. package/out/ui/packages/imageList/components/ImageList.d.ts +4 -0
  179. package/out/ui/packages/imageList/components/ImageList.luau +28 -7
  180. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +1 -0
  181. package/out/ui/packages/imageList/components/ImageList.styles.luau +17 -10
  182. package/out/ui/packages/imageList/components/imageListLayout.d.ts +8 -0
  183. package/out/ui/packages/imageList/components/imageListLayout.luau +36 -0
  184. package/out/ui/packages/index.d.ts +12 -0
  185. package/out/ui/packages/init.luau +36 -0
  186. package/out/ui/packages/input/components/Input.d.ts +4 -0
  187. package/out/ui/packages/input/components/Input.luau +74 -37
  188. package/out/ui/packages/input/components/Input.styles.d.ts +1 -0
  189. package/out/ui/packages/input/components/Input.styles.luau +45 -18
  190. package/out/ui/packages/input/components/clampText.d.ts +2 -0
  191. package/out/ui/packages/input/components/clampText.luau +16 -0
  192. package/out/ui/packages/input/components/fieldChrome.d.ts +5 -0
  193. package/out/ui/packages/input/components/fieldChrome.luau +11 -0
  194. package/out/ui/packages/input/components/multilineHeight.d.ts +1 -0
  195. package/out/ui/packages/input/components/multilineHeight.luau +11 -0
  196. package/out/ui/packages/layout/components/Box.luau +92 -13
  197. package/out/ui/packages/layout/components/Box.styles.d.ts +0 -2
  198. package/out/ui/packages/layout/components/Box.styles.luau +0 -9
  199. package/out/ui/packages/layout/components/Grid.luau +81 -16
  200. package/out/ui/packages/layout/components/Pad.d.ts +24 -0
  201. package/out/ui/packages/layout/components/Pad.luau +88 -0
  202. package/out/ui/packages/layout/components/Stack.luau +79 -13
  203. package/out/ui/packages/link/components/Link.luau +17 -7
  204. package/out/ui/packages/link/components/Link.styles.d.ts +0 -1
  205. package/out/ui/packages/link/components/Link.styles.luau +3 -5
  206. package/out/ui/packages/listItem/components/ListItem.d.ts +6 -0
  207. package/out/ui/packages/listItem/components/ListItem.luau +155 -40
  208. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +4 -0
  209. package/out/ui/packages/listItem/components/ListItem.styles.luau +70 -31
  210. package/out/ui/packages/listItem/components/listItemInk.d.ts +3 -0
  211. package/out/ui/packages/listItem/components/listItemInk.luau +14 -0
  212. package/out/ui/packages/listItem/components/listItemLayout.d.ts +22 -0
  213. package/out/ui/packages/listItem/components/listItemLayout.luau +68 -0
  214. package/out/ui/packages/markdown/components/Markdown.d.ts +2 -0
  215. package/out/ui/packages/markdown/components/Markdown.luau +244 -46
  216. package/out/ui/packages/markdown/components/Markdown.styles.luau +125 -51
  217. package/out/ui/packages/markdown/components/MarkdownEditor.luau +215 -146
  218. package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +1 -0
  219. package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +153 -83
  220. package/out/ui/packages/markdown/index.d.ts +2 -2
  221. package/out/ui/packages/markdown/init.luau +2 -0
  222. package/out/ui/packages/markdown/parseMarkdown.d.ts +30 -2
  223. package/out/ui/packages/markdown/parseMarkdown.luau +453 -25
  224. package/out/ui/packages/menu/components/Menu.d.ts +4 -1
  225. package/out/ui/packages/menu/components/Menu.luau +76 -28
  226. package/out/ui/packages/menu/components/Menu.styles.luau +6 -1
  227. package/out/ui/packages/menu/components/menuIcon.d.ts +6 -0
  228. package/out/ui/packages/menu/components/menuIcon.luau +32 -0
  229. package/out/ui/packages/numberInput/components/NumberInput.d.ts +1 -0
  230. package/out/ui/packages/numberInput/components/NumberInput.luau +82 -1
  231. package/out/ui/packages/numberInput/components/numberValue.d.ts +2 -0
  232. package/out/ui/packages/numberInput/components/numberValue.luau +10 -0
  233. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +9 -1
  234. package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.styles.luau +23 -16
  235. package/out/ui/packages/pager/components/Pager.d.ts +11 -0
  236. package/out/ui/packages/pager/components/Pager.luau +114 -0
  237. package/out/ui/packages/pager/components/Pager.styles.d.ts +2 -0
  238. package/out/ui/packages/pager/components/Pager.styles.luau +66 -0
  239. package/out/ui/packages/pager/components/pagerStep.d.ts +3 -0
  240. package/out/ui/packages/pager/components/pagerStep.luau +24 -0
  241. package/out/ui/packages/pager/index.d.ts +3 -0
  242. package/out/ui/packages/pager/init.luau +9 -0
  243. package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -1
  244. package/out/ui/packages/paper/components/Paper.luau +17 -11
  245. package/out/ui/packages/paper/components/Paper.styles.luau +12 -5
  246. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +14 -1
  247. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +24 -19
  248. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +5 -0
  249. package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +22 -0
  250. package/out/ui/packages/popover/components/Popover.d.ts +12 -0
  251. package/out/ui/packages/popover/components/Popover.luau +52 -0
  252. package/out/ui/packages/popover/components/Popover.styles.d.ts +2 -0
  253. package/out/ui/packages/popover/components/Popover.styles.luau +32 -0
  254. package/out/ui/packages/popover/index.d.ts +2 -0
  255. package/out/ui/packages/popover/init.luau +5 -0
  256. package/out/ui/packages/popup/components/Popup.d.ts +2 -0
  257. package/out/ui/packages/popup/components/Popup.luau +64 -2
  258. package/out/ui/packages/popup/components/placement.luau +6 -4
  259. package/out/ui/packages/progressBar/components/ProgressBar.luau +1 -1
  260. package/out/ui/packages/progressBar/components/ProgressBar.styles.luau +3 -2
  261. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +4 -1
  262. package/out/ui/packages/radioGroup/components/RadioGroup.luau +53 -9
  263. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +26 -2
  264. package/out/ui/packages/radioGroup/components/radioHint.d.ts +2 -0
  265. package/out/ui/packages/radioGroup/components/radioHint.luau +11 -0
  266. package/out/ui/packages/radioGroup/index.d.ts +1 -1
  267. package/out/ui/packages/rating/components/Rating.d.ts +1 -1
  268. package/out/ui/packages/rating/components/Rating.luau +48 -4
  269. package/out/ui/packages/rating/components/Rating.styles.luau +1 -1
  270. package/out/ui/packages/rating/components/ratingCommit.d.ts +2 -0
  271. package/out/ui/packages/rating/components/ratingCommit.luau +11 -0
  272. package/out/ui/packages/rayEditor/components/RayEditor.luau +9 -1
  273. package/out/ui/packages/rayEditor/components/RayEditor.styles.luau +17 -11
  274. package/out/ui/packages/rectEditor/components/RectEditor.luau +9 -1
  275. package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +49 -42
  276. package/out/ui/packages/scroll/components/ScrollView.luau +76 -7
  277. package/out/ui/packages/select/components/Select.d.ts +2 -0
  278. package/out/ui/packages/select/components/Select.luau +164 -105
  279. package/out/ui/packages/select/components/Select.styles.d.ts +2 -0
  280. package/out/ui/packages/select/components/Select.styles.luau +30 -9
  281. package/out/ui/packages/select/components/selectWidth.d.ts +2 -0
  282. package/out/ui/packages/select/components/selectWidth.luau +15 -0
  283. package/out/ui/packages/shadow/components/Shadow.luau +202 -21
  284. package/out/ui/packages/sidebar/components/Sidebar.styles.luau +1 -0
  285. package/out/ui/packages/skeleton/components/Skeleton.luau +4 -0
  286. package/out/ui/packages/slider/components/RangeSlider.d.ts +16 -0
  287. package/out/ui/packages/slider/components/RangeSlider.luau +232 -0
  288. package/out/ui/packages/slider/components/RangeSlider.styles.d.ts +7 -0
  289. package/out/ui/packages/slider/components/RangeSlider.styles.luau +48 -0
  290. package/out/ui/packages/slider/components/Slider.d.ts +1 -0
  291. package/out/ui/packages/slider/components/Slider.luau +53 -25
  292. package/out/ui/packages/slider/components/Slider.styles.d.ts +1 -0
  293. package/out/ui/packages/slider/components/Slider.styles.luau +19 -5
  294. package/out/ui/packages/slider/components/rangeValue.d.ts +21 -0
  295. package/out/ui/packages/slider/components/rangeValue.luau +77 -0
  296. package/out/ui/packages/slider/components/sliderLabel.d.ts +4 -0
  297. package/out/ui/packages/slider/components/sliderLabel.luau +30 -0
  298. package/out/ui/packages/slider/index.d.ts +3 -0
  299. package/out/ui/packages/slider/init.luau +6 -0
  300. package/out/ui/packages/snackbar/components/Snackbar.d.ts +1 -0
  301. package/out/ui/packages/snackbar/components/Snackbar.luau +2 -0
  302. package/out/ui/packages/sparkline/components/Sparkline.d.ts +3 -0
  303. package/out/ui/packages/sparkline/components/Sparkline.luau +72 -8
  304. package/out/ui/packages/sparkline/index.d.ts +1 -1
  305. package/out/ui/packages/sparkline/init.luau +6 -1
  306. package/out/ui/packages/sparkline/sparklineLayout.d.ts +17 -0
  307. package/out/ui/packages/sparkline/sparklineLayout.luau +132 -8
  308. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +1 -0
  309. package/out/ui/packages/speedDial/components/SpeedDial.luau +59 -9
  310. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +1 -0
  311. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +50 -3
  312. package/out/ui/packages/speedDial/components/speedDialLabel.d.ts +4 -0
  313. package/out/ui/packages/speedDial/components/speedDialLabel.luau +16 -0
  314. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  315. package/out/ui/packages/stateMatrix.d.ts +1 -0
  316. package/out/ui/packages/stateMatrix.luau +9 -0
  317. package/out/ui/packages/stepper/components/Stepper.d.ts +2 -0
  318. package/out/ui/packages/stepper/components/Stepper.luau +35 -7
  319. package/out/ui/packages/stepper/components/Stepper.styles.luau +12 -6
  320. package/out/ui/packages/stepper/components/stepState.d.ts +4 -2
  321. package/out/ui/packages/stepper/components/stepState.luau +12 -1
  322. package/out/ui/packages/stepper/index.d.ts +1 -1
  323. package/out/ui/packages/stepper/init.luau +3 -1
  324. package/out/ui/packages/switch/components/Switch.luau +2 -2
  325. package/out/ui/packages/switch/components/Switch.styles.luau +2 -5
  326. package/out/ui/packages/switch/components/switchLook.d.ts +3 -3
  327. package/out/ui/packages/switch/components/switchLook.luau +4 -10
  328. package/out/ui/packages/table/components/Table.d.ts +1 -0
  329. package/out/ui/packages/table/components/Table.luau +99 -57
  330. package/out/ui/packages/table/components/Table.styles.luau +23 -6
  331. package/out/ui/packages/table/components/tableColumns.d.ts +2 -0
  332. package/out/ui/packages/table/components/tableColumns.luau +2 -0
  333. package/out/ui/packages/table/components/tableSort.d.ts +2 -0
  334. package/out/ui/packages/table/components/tableSort.luau +95 -0
  335. package/out/ui/packages/table/index.d.ts +1 -0
  336. package/out/ui/packages/table/init.luau +1 -0
  337. package/out/ui/packages/tabs/components/Tabs.luau +77 -6
  338. package/out/ui/packages/tabs/components/Tabs.styles.luau +12 -11
  339. package/out/ui/packages/tabs/components/tabIndicator.d.ts +7 -0
  340. package/out/ui/packages/tabs/components/tabIndicator.luau +21 -0
  341. package/out/ui/packages/tabs/components/tabScroll.d.ts +2 -0
  342. package/out/ui/packages/tabs/components/tabScroll.luau +18 -0
  343. package/out/ui/packages/text/components/Text.d.ts +9 -0
  344. package/out/ui/packages/text/components/Text.luau +64 -0
  345. package/out/ui/packages/text/components/textBox.d.ts +12 -0
  346. package/out/ui/packages/text/components/textBox.luau +21 -0
  347. package/out/ui/packages/text/index.d.ts +2 -0
  348. package/out/ui/packages/text/init.luau +5 -0
  349. package/out/ui/packages/timeField/components/TimeField.d.ts +13 -0
  350. package/out/ui/packages/timeField/components/TimeField.luau +106 -0
  351. package/out/ui/packages/timeField/index.d.ts +4 -0
  352. package/out/ui/packages/timeField/init.luau +9 -0
  353. package/out/ui/packages/timeField/timeValue.d.ts +8 -0
  354. package/out/ui/packages/timeField/timeValue.luau +49 -0
  355. package/out/ui/packages/timeline/components/Timeline.d.ts +12 -0
  356. package/out/ui/packages/timeline/components/Timeline.luau +102 -0
  357. package/out/ui/packages/timeline/components/Timeline.styles.d.ts +2 -0
  358. package/out/ui/packages/timeline/components/Timeline.styles.luau +115 -0
  359. package/out/ui/packages/timeline/components/timelineRail.d.ts +4 -0
  360. package/out/ui/packages/timeline/components/timelineRail.luau +15 -0
  361. package/out/ui/packages/timeline/index.d.ts +3 -0
  362. package/out/ui/packages/timeline/init.luau +8 -0
  363. package/out/ui/packages/toast/components/Toast.d.ts +1 -0
  364. package/out/ui/packages/toast/components/Toast.luau +200 -57
  365. package/out/ui/packages/toast/components/Toast.styles.luau +40 -20
  366. package/out/ui/packages/toast/components/toastPlace.d.ts +16 -0
  367. package/out/ui/packages/toast/components/toastPlace.luau +44 -0
  368. package/out/ui/packages/toast/enums/ToastVariants.d.ts +2 -1
  369. package/out/ui/packages/toast/enums/ToastVariants.luau +1 -0
  370. package/out/ui/packages/toggleButton/components/ToggleButton.luau +43 -4
  371. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +1 -1
  372. package/out/ui/packages/tooltip/components/Tooltip.d.ts +1 -0
  373. package/out/ui/packages/tooltip/components/Tooltip.luau +109 -31
  374. package/out/ui/packages/tooltip/components/Tooltip.styles.luau +31 -1
  375. package/out/ui/packages/tooltip/components/tooltipBox.d.ts +4 -0
  376. package/out/ui/packages/tooltip/components/tooltipBox.luau +12 -0
  377. package/out/ui/packages/tooltip/components/tooltipPointer.d.ts +2 -0
  378. package/out/ui/packages/tooltip/components/tooltipPointer.luau +11 -0
  379. package/out/ui/packages/treeView/components/TreeView.luau +12 -13
  380. package/out/ui/packages/treeView/components/TreeView.styles.luau +6 -0
  381. package/out/ui/packages/typography/components/Typography.d.ts +2 -0
  382. package/out/ui/packages/typography/components/Typography.luau +8 -0
  383. package/out/ui/packages/typography/components/Typography.styles.luau +3 -1
  384. package/out/ui/packages/udimEditor/components/UDimEditor.luau +9 -1
  385. package/out/ui/packages/udimEditor/components/UDimEditor.styles.luau +25 -18
  386. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +18 -3
  387. package/out/ui/packages/vectorEditor/components/VectorEditor.styles.luau +30 -16
  388. package/out/ui/packages/virtualList/components/VirtualList.styles.luau +1 -0
  389. package/out/ui/packages/weekGrid/components/WeekGrid.d.ts +24 -0
  390. package/out/ui/packages/weekGrid/components/WeekGrid.luau +187 -0
  391. package/out/ui/packages/weekGrid/components/weekColumns.d.ts +9 -0
  392. package/out/ui/packages/weekGrid/components/weekColumns.luau +25 -0
  393. package/out/ui/packages/weekGrid/index.d.ts +3 -0
  394. package/out/ui/packages/weekGrid/init.luau +8 -0
  395. package/package.json +2 -2
@@ -3,11 +3,18 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local componentStyles = _theme.componentStyles
5
5
  local createStyles = _theme.createStyles
6
- local useCardStyles = componentStyles("Card", function(theme)
6
+ local cardColumnWidth = TS.import(script, script.Parent, "cardWidth").cardColumnWidth
7
+ local useCardStyles = componentStyles("Card", function(theme, _param)
8
+ local fullWidth = _param.fullWidth
9
+ if fullWidth == nil then
10
+ fullWidth = false
11
+ end
12
+ local width = cardColumnWidth(fullWidth, theme.padding.calc(32))
13
+ local heading = theme.typography.variants.h6
7
14
  return createStyles({
8
15
  column = {
9
- AutomaticSize = Enum.AutomaticSize.XY,
10
- Size = UDim2.fromOffset(theme.padding.calc(32), 0),
16
+ AutomaticSize = Enum.AutomaticSize.Y,
17
+ Size = UDim2.new(width.scale, width.offset, 0, 0),
11
18
  BackgroundTransparency = 1,
12
19
  BorderSizePixel = 0,
13
20
  },
@@ -18,19 +25,22 @@ local useCardStyles = componentStyles("Card", function(theme)
18
25
  },
19
26
  title = {
20
27
  LayoutOrder = 1,
21
- AutomaticSize = Enum.AutomaticSize.XY,
22
- Size = UDim2.fromScale(0, 0),
28
+ AutomaticSize = Enum.AutomaticSize.Y,
29
+ Size = UDim2.new(1, 0, 0, 0),
30
+ TextWrapped = true,
23
31
  BackgroundTransparency = 1,
24
32
  BorderSizePixel = 0,
25
- Font = theme.typography.fontFamilies.default,
26
- TextSize = theme.typography.fontSizes.h6,
33
+ Font = theme.typography.fontFamilies[heading.family],
34
+ TextSize = heading.size,
35
+ LineHeight = heading.leading,
27
36
  TextColor3 = theme.palette.text.primary,
28
37
  TextXAlignment = Enum.TextXAlignment.Left,
29
38
  },
30
39
  subtitle = {
31
40
  LayoutOrder = 2,
32
- AutomaticSize = Enum.AutomaticSize.XY,
33
- Size = UDim2.fromScale(0, 0),
41
+ AutomaticSize = Enum.AutomaticSize.Y,
42
+ Size = UDim2.new(1, 0, 0, 0),
43
+ TextWrapped = true,
34
44
  BackgroundTransparency = 1,
35
45
  BorderSizePixel = 0,
36
46
  Font = theme.typography.fontFamilies.default,
@@ -57,6 +67,7 @@ local useCardStyles = componentStyles("Card", function(theme)
57
67
  HorizontalAlignment = Enum.HorizontalAlignment.Right,
58
68
  Padding = UDim.new(0, theme.padding.calc(1)),
59
69
  SortOrder = Enum.SortOrder.LayoutOrder,
70
+ Wraps = true,
60
71
  },
61
72
  })
62
73
  end)
@@ -0,0 +1,10 @@
1
+ export interface CardColumnWidth {
2
+ scale: number;
3
+ offset: number;
4
+ }
5
+ /** Fluid cards fill the parent. The default stays the fixed column. */
6
+ export declare function cardColumnWidth(fullWidth: boolean | undefined, fixed: number): CardColumnWidth;
7
+ /** A title wider than the column wraps. A short title stays one line. */
8
+ export declare function cardTitleWrap(textWidth: number, column: number): boolean;
9
+ /** Two small actions are wider than the fixed column, so the row wraps. */
10
+ export declare function cardActionWrap(column: number, button: number, count: number, gap?: number): boolean;
@@ -0,0 +1,36 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ --* Fluid cards fill the parent. The default stays the fixed column.
3
+ local function cardColumnWidth(fullWidth, fixed)
4
+ if fullWidth == true then
5
+ return {
6
+ scale = 1,
7
+ offset = 0,
8
+ }
9
+ end
10
+ return {
11
+ scale = 0,
12
+ offset = fixed,
13
+ }
14
+ end
15
+ --* A title wider than the column wraps. A short title stays one line.
16
+ local function cardTitleWrap(textWidth, column)
17
+ if column <= 0 then
18
+ return false
19
+ end
20
+ return textWidth > column
21
+ end
22
+ --* Two small actions are wider than the fixed column, so the row wraps.
23
+ local function cardActionWrap(column, button, count, gap)
24
+ if gap == nil then
25
+ gap = 0
26
+ end
27
+ if count < 2 or column <= 0 then
28
+ return false
29
+ end
30
+ return button * count + gap * (count - 1) > column
31
+ end
32
+ return {
33
+ cardColumnWidth = cardColumnWidth,
34
+ cardTitleWrap = cardTitleWrap,
35
+ cardActionWrap = cardActionWrap,
36
+ }
@@ -1,10 +1,14 @@
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 cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
5
+ local useEditorHover = TS.import(script, script.Parent.Parent.Parent, "editorFace").useEditorHover
4
6
  local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
7
  local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
6
8
  local useCFrameEditorStyles = TS.import(script, script.Parent, "CFrameEditor.styles").default
7
- local nextCFrameParts = TS.import(script, script.Parent, "cframeValue").nextCFrameParts
9
+ local _cframeValue = TS.import(script, script.Parent, "cframeValue")
10
+ local cframeAxis = _cframeValue.cframeAxis
11
+ local nextCFrameParts = _cframeValue.nextCFrameParts
8
12
  local POSITION = { "X", "Y", "Z" }
9
13
  local ORIENTATION = { "RX", "RY", "RZ" }
10
14
  local function CFrameEditor(props)
@@ -17,6 +21,7 @@ local function CFrameEditor(props)
17
21
  local id = _binding.id
18
22
  local ref = _binding.ref
19
23
  local styles = useCFrameEditorStyles()
24
+ local hover = useEditorHover(disabled)
20
25
  local rx, ry, rz = value:ToEulerAnglesXYZ()
21
26
  local degrees = { math.deg(rx), math.deg(ry), math.deg(rz) }
22
27
  local amounts = { value.X, value.Y, value.Z, degrees[1], degrees[2], degrees[3] }
@@ -65,15 +70,17 @@ local function CFrameEditor(props)
65
70
  local _attributes_6 = table.clone(styles.row)
66
71
  setmetatable(_attributes_6, nil)
67
72
  local _exp_3 = React.createElement("uilistlayout", _attributes_6)
68
- local _attributes_7 = table.clone(styles.label)
73
+ local _attributes_7 = table.clone(cx(styles.label, if cframeAxis(field) == "X" then styles.labelX elseif cframeAxis(field) == "Y" then styles.labelY else styles.labelZ))
69
74
  setmetatable(_attributes_7, nil)
70
- _attributes_7.Text = field
75
+ _attributes_7.Text = cframeAxis(field)
71
76
  local _exp_4 = React.createElement("textlabel", _attributes_7)
72
77
  local _attributes_8 = table.clone(styles.field)
73
78
  setmetatable(_attributes_8, nil)
74
79
  return React.createElement("frame", _attributes_5, _exp_3, _exp_4, React.createElement("frame", _attributes_8, React.createElement(NumberInput, {
75
80
  value = amounts[offset + index + 1],
81
+ places = 3,
76
82
  disabled = disabled,
83
+ size = "small",
77
84
  width = UDim.new(1, 0),
78
85
  onChange = function(amount)
79
86
  return commit(field, amount)
@@ -95,15 +102,21 @@ local function CFrameEditor(props)
95
102
  end
96
103
  _attributes.key = _condition
97
104
  _attributes.hostRef = ref
98
- _attributes.base = styles.root
105
+ local _object = table.clone(styles.root)
106
+ setmetatable(_object, nil)
107
+ for _k, _v in hover.face do
108
+ _object[_k] = _v
109
+ end
110
+ _attributes.base = _object
99
111
  _attributes.className = className
100
112
  _attributes.sx = sx
101
113
  _attributes.state = {
102
114
  disabled = disabled,
103
115
  }
116
+ _attributes.Event = hover.event
104
117
  local _attributes_1 = table.clone(styles.wrap)
105
118
  setmetatable(_attributes_1, nil)
106
- return React.createElement(SxHost, _attributes, React.createElement("uilistlayout", _attributes_1), group("Position", POSITION, 1, 0), group("Orientation", ORIENTATION, 2, 3))
119
+ return React.createElement(SxHost, _attributes, React.createElement("uilistlayout", _attributes_1), group("Position", POSITION, 1, 0), group("Rotation (degrees)", ORIENTATION, 2, 3))
107
120
  end
108
121
  local default = CFrameEditor
109
122
  return {
@@ -3,8 +3,12 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
5
5
  local componentStyles = _theme.componentStyles
6
+ local _editorFace = TS.import(script, script.Parent.Parent.Parent, "editorFace")
7
+ local editorPad = _editorFace.editorPad
8
+ local editorRowHeight = _editorFace.editorRowHeight
9
+ local editorText = _editorFace.editorText
6
10
  local useCFrameEditorStyles = componentStyles("CFrameEditor", function(theme)
7
- return createStyles({
11
+ local _object = {
8
12
  root = {
9
13
  Size = UDim2.new(1, 0, 0, 0),
10
14
  AutomaticSize = Enum.AutomaticSize.Y,
@@ -13,12 +17,12 @@ local useCFrameEditorStyles = componentStyles("CFrameEditor", function(theme)
13
17
  },
14
18
  wrap = {
15
19
  FillDirection = Enum.FillDirection.Vertical,
16
- Padding = UDim.new(0, theme.padding.calc(0.5)),
20
+ Padding = UDim.new(0, editorPad(theme)),
17
21
  SortOrder = Enum.SortOrder.LayoutOrder,
18
22
  },
19
23
  row = {
20
24
  FillDirection = Enum.FillDirection.Horizontal,
21
- Padding = UDim.new(0, theme.padding.calc(0.5)),
25
+ Padding = UDim.new(0, editorPad(theme)),
22
26
  VerticalAlignment = Enum.VerticalAlignment.Center,
23
27
  SortOrder = Enum.SortOrder.LayoutOrder,
24
28
  },
@@ -27,35 +31,49 @@ local useCFrameEditorStyles = componentStyles("CFrameEditor", function(theme)
27
31
  AutomaticSize = Enum.AutomaticSize.Y,
28
32
  BackgroundTransparency = 1,
29
33
  },
30
- groupLabel = {
31
- Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
32
- BackgroundTransparency = 1,
33
- Font = theme.typography.fontFamilies.default,
34
- TextSize = theme.typography.fontSizes.button,
35
- TextColor3 = theme.palette.text.secondary,
36
- TextXAlignment = Enum.TextXAlignment.Left,
37
- },
38
- axes = {
39
- Size = UDim2.new(1, 0, 0, theme.spacing.calc(3)),
40
- BackgroundTransparency = 1,
41
- },
42
- axis = {
43
- Size = UDim2.new(1 / 3, -theme.padding.calc(0.5), 1, 0),
44
- BackgroundTransparency = 1,
45
- },
46
- label = {
47
- Size = UDim2.new(0, theme.spacing.calc(2.5), 1, 0),
48
- BackgroundTransparency = 1,
49
- Font = theme.typography.fontFamilies.default,
50
- TextSize = theme.typography.fontSizes.button,
51
- TextColor3 = theme.palette.text.secondary,
52
- TextXAlignment = Enum.TextXAlignment.Left,
53
- },
54
- field = {
55
- Size = UDim2.new(1, -theme.spacing.calc(2.5), 1, 0),
56
- BackgroundTransparency = 1,
57
- },
58
- })
34
+ }
35
+ local _left = "groupLabel"
36
+ local _object_1 = {
37
+ Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
38
+ BackgroundTransparency = 1,
39
+ TextColor3 = theme.palette.text.secondary,
40
+ }
41
+ for _k, _v in editorText(theme) do
42
+ _object_1[_k] = _v
43
+ end
44
+ _object[_left] = _object_1
45
+ _object.axes = {
46
+ Size = UDim2.new(1, 0, 0, editorRowHeight(theme, "small")),
47
+ BackgroundTransparency = 1,
48
+ }
49
+ _object.axis = {
50
+ Size = UDim2.new(1 / 3, -editorPad(theme), 1, 0),
51
+ BackgroundTransparency = 1,
52
+ }
53
+ local _left_1 = "label"
54
+ local _object_2 = {
55
+ Size = UDim2.new(0, theme.spacing.calc(2.5), 1, 0),
56
+ BackgroundTransparency = 1,
57
+ TextColor3 = theme.palette.text.secondary,
58
+ }
59
+ for _k, _v in editorText(theme) do
60
+ _object_2[_k] = _v
61
+ end
62
+ _object[_left_1] = _object_2
63
+ _object.labelX = {
64
+ TextColor3 = theme.palette.status.error.main,
65
+ }
66
+ _object.labelY = {
67
+ TextColor3 = theme.palette.status.success.main,
68
+ }
69
+ _object.labelZ = {
70
+ TextColor3 = theme.palette.status.info.main,
71
+ }
72
+ _object.field = {
73
+ Size = UDim2.new(1, -theme.spacing.calc(2.5), 1, 0),
74
+ BackgroundTransparency = 1,
75
+ }
76
+ return createStyles(_object)
59
77
  end)
60
78
  local default = useCFrameEditorStyles
61
79
  return {
@@ -1,3 +1,4 @@
1
1
  export type CFrameField = "X" | "Y" | "Z" | "RX" | "RY" | "RZ";
2
2
  export declare function cframeFields(): CFrameField[];
3
+ export declare function cframeAxis(field: CFrameField): "X" | "Y" | "Z";
3
4
  export declare function nextCFrameParts(x: number, y: number, z: number, rx: number, ry: number, rz: number, field: CFrameField, amount: number): number[];
@@ -3,6 +3,18 @@ local FIELDS = { "X", "Y", "Z", "RX", "RY", "RZ" }
3
3
  local function cframeFields()
4
4
  return FIELDS
5
5
  end
6
+ local function cframeAxis(field)
7
+ if field == "RX" then
8
+ return "X"
9
+ end
10
+ if field == "RY" then
11
+ return "Y"
12
+ end
13
+ if field == "RZ" then
14
+ return "Z"
15
+ end
16
+ return field
17
+ end
6
18
  local function nextCFrameParts(x, y, z, rx, ry, rz, field, amount)
7
19
  local parts = { x, y, z, rx, ry, rz }
8
20
  local index = if field == "X" then 0 elseif field == "Y" then 1 elseif field == "Z" then 2 elseif field == "RX" then 3 elseif field == "RY" then 4 else 5
@@ -11,5 +23,6 @@ local function nextCFrameParts(x, y, z, rx, ry, rz, field, amount)
11
23
  end
12
24
  return {
13
25
  cframeFields = cframeFields,
26
+ cframeAxis = cframeAxis,
14
27
  nextCFrameParts = nextCFrameParts,
15
28
  }
@@ -3,7 +3,9 @@ local TS = _G[script]
3
3
  local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local React = _react
5
5
  local useState = _react.useState
6
- local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
6
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
7
+ local controlFade = _theme.controlFade
8
+ local cx = _theme.cx
7
9
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
8
10
  local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
9
11
  local useCheckboxStyles = TS.import(script, script.Parent, "Checkbox.styles").default
@@ -38,6 +40,7 @@ local function Checkbox(props)
38
40
  local fill = _binding_1.fill
39
41
  local activeStroke = _binding_1.activeStroke
40
42
  local idleStroke = _binding_1.idleStroke
43
+ local focus = _binding_1.focus
41
44
  local hovering, setHovering = useState(false)
42
45
  local pressed, setPressed = useState(false)
43
46
  local focused, setFocused = useState(false)
@@ -67,7 +70,6 @@ local function Checkbox(props)
67
70
  }
68
71
  _attributes.Active = active
69
72
  _attributes.Selectable = not disabled
70
- _attributes.BackgroundTransparency = if focused and active then 0.85 else 1
71
73
  _attributes.Event = {
72
74
  MouseButton1Click = function()
73
75
  if active then
@@ -109,7 +111,7 @@ local function Checkbox(props)
109
111
  local _attributes_3 = table.clone(corner)
110
112
  setmetatable(_attributes_3, nil)
111
113
  local _exp_1 = React.createElement("uicorner", _attributes_3)
112
- local _attributes_4 = table.clone(cx(stroke, if filled or pointer == "focus" or pointer == "press" then activeStroke else idleStroke, {
114
+ local _attributes_4 = table.clone(cx(stroke, if pointer == "focus" then focus elseif filled or pointer == "press" then activeStroke else idleStroke, {
113
115
  Transparency = strokeTransparency,
114
116
  }))
115
117
  setmetatable(_attributes_4, nil)
@@ -117,14 +119,14 @@ local function Checkbox(props)
117
119
  local _attributes_5 = table.clone(mark)
118
120
  setmetatable(_attributes_5, nil)
119
121
  _attributes_5.Text = checkboxMark(value, mixed)
120
- _attributes_5.TextTransparency = if disabled == true then 0.45 else 0
122
+ _attributes_5.TextTransparency = if disabled == true then controlFade else 0
121
123
  local _exp_3 = React.createElement("frame", _attributes_2, _exp_1, _exp_2, React.createElement("textlabel", _attributes_5))
122
124
  local _condition_1 = label ~= nil
123
125
  if _condition_1 then
124
126
  local _attributes_6 = table.clone(labelStyle)
125
127
  setmetatable(_attributes_6, nil)
126
128
  _attributes_6.Text = label
127
- _attributes_6.TextTransparency = if disabled == true then 0.5 else 0
129
+ _attributes_6.TextTransparency = if disabled == true then controlFade else 0
128
130
  _attributes_6.LayoutOrder = 2
129
131
  _condition_1 = (React.createElement("textlabel", _attributes_6))
130
132
  end
@@ -4,6 +4,7 @@ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "the
4
4
  local controlMetrics = _theme.controlMetrics
5
5
  local createStyles = _theme.createStyles
6
6
  local componentStyles = _theme.componentStyles
7
+ local focusRing = _theme.focusRing
7
8
  local useCheckboxStyles = componentStyles("Checkbox", function(theme, _param)
8
9
  local size = _param.size
9
10
  local metrics = controlMetrics(theme.density, size)
@@ -61,6 +62,7 @@ local useCheckboxStyles = componentStyles("Checkbox", function(theme, _param)
61
62
  idleStroke = {
62
63
  Color = theme.palette.text.secondary,
63
64
  },
65
+ focus = focusRing(theme.palette.focus),
64
66
  })
65
67
  end)
66
68
  local default = useCheckboxStyles
@@ -1,5 +1,5 @@
1
1
  export type CheckboxPointer = "rest" | "hover" | "press" | "focus";
2
2
  export declare function checkboxMark(value: boolean, mixed?: boolean): "" | "–" | "✓";
3
3
  export declare function checkboxPointer(hovering: boolean, pressed: boolean, focused: boolean): CheckboxPointer;
4
- export declare function checkboxBoxTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 1 | 0 | 0.7 | 0.55 | 0.85;
5
- export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.25 | 0.45 | 0.55 | 0.2;
4
+ export declare function checkboxBoxTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 1 | 0 | 0.5 | 0.7 | 0.85;
5
+ export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.5 | 0.25 | 0.45 | 0.2;
@@ -19,7 +19,7 @@ local function checkboxPointer(hovering, pressed, focused)
19
19
  end
20
20
  local function checkboxBoxTransparency(filled, disabled, pointer)
21
21
  if filled then
22
- return if disabled then 0.55 else 0
22
+ return if disabled then 0.5 else 0
23
23
  end
24
24
  if disabled then
25
25
  return 1
@@ -34,7 +34,7 @@ local function checkboxBoxTransparency(filled, disabled, pointer)
34
34
  end
35
35
  local function checkboxStrokeTransparency(filled, disabled, pointer)
36
36
  if disabled then
37
- return 0.55
37
+ return 0.5
38
38
  end
39
39
  if pointer == "focus" or pointer == "press" then
40
40
  return 0
@@ -1,8 +1,8 @@
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 Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
5
4
  local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
+ local IconButton = TS.import(script, script.Parent.Parent.Parent, "iconButton").IconButton
6
6
  local useChipStyles = TS.import(script, script.Parent, "Chip.styles").default
7
7
  local function Chip(props)
8
8
  local _binding = props
@@ -83,21 +83,23 @@ local function Chip(props)
83
83
  _attributes_5.Text = label
84
84
  local _exp_4 = React.createElement("textlabel", _attributes_5)
85
85
  local _attributes_6 = {
86
- key = "Delete",
86
+ id = "Delete",
87
+ glyph = "close",
87
88
  }
88
- for _k, _v in styles.delete do
89
- _attributes_6[_k] = _v
89
+ local _result = (styles.glyph).Size
90
+ if _result ~= nil then
91
+ _result = _result.X.Offset
90
92
  end
91
- _attributes_6.Image = tostring(Icons.Close)
92
- _attributes_6.Active = disabled ~= true
93
- _attributes_6.Event = {
94
- Activated = function()
95
- if disabled ~= true then
96
- onDelete()
97
- end
98
- end,
99
- }
100
- _condition_1 = (React.createElement(React.Fragment, nil, _exp_3, _exp_4, React.createElement("imagebutton", _attributes_6)))
93
+ local _condition_2 = _result
94
+ if _condition_2 == nil then
95
+ _condition_2 = 16
96
+ end
97
+ _attributes_6.iconSize = _condition_2
98
+ _attributes_6.tint = (styles.glyph).ImageColor3
99
+ _attributes_6.disabled = disabled
100
+ _attributes_6.className = styles.delete
101
+ _attributes_6.onClick = onDelete
102
+ _condition_1 = (React.createElement(React.Fragment, nil, _exp_3, _exp_4, React.createElement(IconButton, _attributes_6)))
101
103
  end
102
104
  return React.createElement(SxHost, _attributes, _exp, _exp_1, _exp_2, _condition_1)
103
105
  end
@@ -1,5 +1,6 @@
1
1
  import { ControlSize } from "../../../../theme/index";
2
- export type ChipColor = "default" | "primary";
2
+ import { ChipColor } from "./chipTone";
3
+ export type { ChipColor };
3
4
  declare const useChipStyles: (props: {
4
5
  selected?: boolean;
5
6
  disabled?: boolean;
@@ -4,6 +4,7 @@ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "the
4
4
  local componentStyles = _theme.componentStyles
5
5
  local controlMetrics = _theme.controlMetrics
6
6
  local createStyles = _theme.createStyles
7
+ local chipTone = TS.import(script, script.Parent, "chipTone").chipTone
7
8
  local useChipStyles = componentStyles("Chip", function(theme, _param)
8
9
  local selected = _param.selected
9
10
  if selected == nil then
@@ -30,13 +31,16 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
30
31
  local padY = if size == "small" then 0.25 elseif size == "large" then 0.75 else 0.5
31
32
  local padX = if size == "small" then 1 elseif size == "large" then 2 else 1.5
32
33
  local deletePx = metrics.icon
33
- local primary = color == "primary"
34
- local ink = if disabled then theme.palette.text.disabled elseif primary then if variant == "outlined" then theme.palette.primary.main else theme.palette.primary.on else theme.palette.text.primary
34
+ local glyphPx = math.round(metrics.font * 0.7)
35
+ local tone = chipTone(color)
36
+ local status = if tone == "success" then theme.palette.status.success elseif tone == "error" then theme.palette.status.error elseif tone == "primary" then theme.palette.primary else nil
37
+ local filledTone = status ~= nil and variant ~= "outlined"
38
+ local ink = if disabled then theme.palette.text.disabled elseif status == nil then theme.palette.text.primary elseif variant == "outlined" then status.main else status.on
35
39
  return createStyles({
36
40
  root = {
37
41
  AutomaticSize = Enum.AutomaticSize.XY,
38
42
  Size = UDim2.fromScale(0, 0),
39
- BackgroundColor3 = if primary and variant ~= "outlined" then theme.palette.primary.main elseif selected then theme.palette.action.selected else theme.palette.surface.input,
43
+ BackgroundColor3 = if filledTone and status ~= nil then status.main elseif selected then theme.palette.action.selected else theme.palette.surface.input,
40
44
  BackgroundTransparency = if variant == "outlined" and selected ~= true then 1 else 0,
41
45
  BorderSizePixel = 0,
42
46
  AutoButtonColor = false,
@@ -45,6 +49,7 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
45
49
  TextColor3 = ink,
46
50
  Font = theme.typography.fontFamilies.default,
47
51
  TextSize = metrics.font,
52
+ TextWrapped = true,
48
53
  },
49
54
  padding = {
50
55
  PaddingTop = UDim.new(0, theme.padding.calc(padY)),
@@ -56,9 +61,9 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
56
61
  CornerRadius = UDim.new(theme.shape.pillScale, 0),
57
62
  },
58
63
  stroke = {
59
- Color = if primary then theme.palette.primary.main else theme.palette.border,
64
+ Color = if status ~= nil then status.main else theme.palette.border,
60
65
  ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
61
- Transparency = if variant == "outlined" then (if disabled then 0.5 else 0) elseif primary or selected then 1 else 0,
66
+ Transparency = if variant == "outlined" then (if disabled then 0.5 else 0) elseif tone ~= "default" or selected then 1 else 0,
62
67
  },
63
68
  row = {
64
69
  FillDirection = Enum.FillDirection.Horizontal,
@@ -71,6 +76,7 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
71
76
  Size = UDim2.fromScale(0, 0),
72
77
  BackgroundTransparency = 1,
73
78
  BorderSizePixel = 0,
79
+ TextWrapped = true,
74
80
  TextColor3 = ink,
75
81
  Font = theme.typography.fontFamilies.default,
76
82
  TextSize = metrics.font,
@@ -78,12 +84,12 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
78
84
  },
79
85
  delete = {
80
86
  Size = UDim2.fromOffset(deletePx, deletePx),
81
- BackgroundTransparency = 1,
82
- BorderSizePixel = 0,
83
- AutoButtonColor = false,
84
- ImageColor3 = if disabled then theme.palette.text.disabled elseif primary and variant ~= "outlined" then theme.palette.primary.on else theme.palette.text.secondary,
85
87
  LayoutOrder = 2,
86
88
  },
89
+ glyph = {
90
+ Size = UDim2.fromOffset(glyphPx, glyphPx),
91
+ ImageColor3 = if disabled then theme.palette.text.disabled elseif filledTone and status ~= nil then status.on else theme.palette.text.secondary,
92
+ },
87
93
  })
88
94
  end)
89
95
  local default = useChipStyles
@@ -0,0 +1,3 @@
1
+ export type ChipColor = "default" | "primary" | "success" | "error";
2
+ /** Unknown colors stay the plain chip. Primary, success, and error keep their tone. */
3
+ export declare function chipTone(color?: ChipColor): ChipColor;
@@ -0,0 +1,11 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ --* Unknown colors stay the plain chip. Primary, success, and error keep their tone.
3
+ local function chipTone(color)
4
+ if color == "primary" or color == "success" or color == "error" then
5
+ return color
6
+ end
7
+ return "default"
8
+ end
9
+ return {
10
+ chipTone = chipTone,
11
+ }
@@ -99,14 +99,21 @@ local function CircularProgress(props)
99
99
  }
100
100
  return React.createElement(SxHost, _attributes, React.createElement("uicorner", {
101
101
  CornerRadius = UDim.new(1, 0),
102
+ }), React.createElement("frame", {
103
+ key = "Track",
104
+ Size = UDim2.fromScale(1, 1),
105
+ BackgroundTransparency = 1,
106
+ BorderSizePixel = 0,
107
+ }, React.createElement("uicorner", {
108
+ CornerRadius = UDim.new(1, 0),
102
109
  }), React.createElement("uistroke", {
103
110
  Color = tint,
104
111
  Thickness = thickness,
105
- Transparency = if disabled then 0.85 else 0.82,
106
- }), React.createElement("uistroke", {
112
+ Transparency = if disabled then 0.75 else 0.82,
113
+ })), React.createElement("uistroke", {
107
114
  Color = tint,
108
115
  Thickness = thickness,
109
- Transparency = if disabled then 0.55 else 0,
116
+ Transparency = if disabled then 0.4 else 0,
110
117
  }, React.createElement("uigradient", {
111
118
  ref = gradientRef,
112
119
  Rotation = -90,
@@ -0,0 +1,12 @@
1
+ import { CustomizedProps } from "../../../../theme/index";
2
+ import { CodeLanguage } from "../../markdown/parseMarkdown";
3
+ export interface CodeEditorProps {
4
+ value?: string;
5
+ onChange?: (value: string) => void;
6
+ language?: CodeLanguage;
7
+ onLanguageChange?: (language: CodeLanguage) => void;
8
+ readOnly?: boolean;
9
+ placeholder?: string;
10
+ }
11
+ declare function CodeEditor(props: CustomizedProps<Frame, CodeEditorProps>): JSX.Element;
12
+ export default CodeEditor;