@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
@@ -10,9 +10,12 @@ local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "t
10
10
  local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
11
11
  local Popup = TS.import(script, script.Parent.Parent.Parent, "popup").Popup
12
12
  local useTooltipStyles = TS.import(script, script.Parent, "Tooltip.styles").default
13
+ local tooltipBox = TS.import(script, script.Parent, "tooltipBox").tooltipBox
14
+ local pointerInside = TS.import(script, script.Parent, "tooltipPointer").pointerInside
13
15
  local function Tooltip(props)
14
16
  local _binding = props
15
17
  local text = _binding.text
18
+ local title = _binding.title
16
19
  local delay = _binding.delay
17
20
  if delay == nil then
18
21
  delay = 0.4
@@ -36,9 +39,36 @@ local function Tooltip(props)
36
39
  end
37
40
  local textSize = _condition
38
41
  local font = theme.typography.fontFamilies.default or Enum.Font.SourceSans
39
- local textBounds = TextService:GetTextSize(text, textSize, font, Vector2.new(theme.spacing.calc(24), 10000))
40
- local tipWidth = textBounds.X + padX * 2
41
- local tipHeight = textBounds.Y + padY * 2
42
+ local _condition_1 = title
43
+ if _condition_1 == nil then
44
+ _condition_1 = ""
45
+ end
46
+ local heading = _condition_1
47
+ local limit = Vector2.new(theme.spacing.calc(24), 10000)
48
+ local textBounds = TextService:GetTextSize(text, textSize, font, limit)
49
+ local titleFont = theme.typography.fontFamilies.semibold or font
50
+ local titleBounds = if heading ~= "" then TextService:GetTextSize(heading, textSize, titleFont, limit) else nil
51
+ local _exp = textBounds.X
52
+ local _exp_1 = textBounds.Y
53
+ local _result = titleBounds
54
+ if _result ~= nil then
55
+ _result = _result.X
56
+ end
57
+ local _condition_2 = _result
58
+ if _condition_2 == nil then
59
+ _condition_2 = 0
60
+ end
61
+ local _result_1 = titleBounds
62
+ if _result_1 ~= nil then
63
+ _result_1 = _result_1.Y
64
+ end
65
+ local _condition_3 = _result_1
66
+ if _condition_3 == nil then
67
+ _condition_3 = 0
68
+ end
69
+ local box = tooltipBox(_exp, _exp_1, _condition_2, _condition_3, padX, padY, if heading ~= "" then padY else 0)
70
+ local tipWidth = box.width
71
+ local tipHeight = box.height
42
72
  local anchor, setAnchor = useState()
43
73
  local shown, setShown = useState(false)
44
74
  local pending = useRef()
@@ -54,11 +84,11 @@ local function Tooltip(props)
54
84
  local _attributes = {
55
85
  tag = "frame",
56
86
  }
57
- local _condition_1 = id
58
- if not (_condition_1 ~= 0 and _condition_1 == _condition_1 and _condition_1 ~= "" and _condition_1) then
59
- _condition_1 = "Tooltip"
87
+ local _condition_4 = id
88
+ if not (_condition_4 ~= 0 and _condition_4 == _condition_4 and _condition_4 ~= "" and _condition_4) then
89
+ _condition_4 = "Tooltip"
60
90
  end
61
- _attributes.key = _condition_1
91
+ _attributes.key = _condition_4
62
92
  _attributes.hostRef = ref
63
93
  _attributes.base = styles.root
64
94
  _attributes.className = className
@@ -72,39 +102,87 @@ local function Tooltip(props)
72
102
  setShown(true)
73
103
  end)
74
104
  end,
75
- MouseLeave = function()
105
+ MouseLeave = function(rbx, x, y)
106
+ if pointerInside(rbx.AbsolutePosition.X, rbx.AbsolutePosition.Y, rbx.AbsoluteSize.X, rbx.AbsoluteSize.Y, x, y) then
107
+ return nil
108
+ end
76
109
  cancel()
77
110
  setShown(false)
78
111
  end,
79
112
  }
80
- local _exp = children
81
- local _condition_2 = shown and text ~= ""
82
- if _condition_2 then
83
- local _attributes_1 = {
84
- key = "Tip",
85
- }
86
- for _k, _v in styles.label do
87
- _attributes_1[_k] = _v
113
+ local _exp_2 = children
114
+ local _condition_5 = shown and (text ~= "" or heading ~= "")
115
+ if _condition_5 then
116
+ local _result_2
117
+ if heading == "" then
118
+ local _attributes_1 = {
119
+ key = "Tip",
120
+ }
121
+ for _k, _v in styles.label do
122
+ _attributes_1[_k] = _v
123
+ end
124
+ _attributes_1.Text = text
125
+ _attributes_1.Size = UDim2.fromScale(1, 1)
126
+ _attributes_1.AutomaticSize = Enum.AutomaticSize.None
127
+ _attributes_1.TextWrapped = true
128
+ local _attributes_2 = table.clone(styles.padding)
129
+ setmetatable(_attributes_2, nil)
130
+ local _exp_3 = React.createElement("uipadding", _attributes_2)
131
+ local _attributes_3 = table.clone(styles.corner)
132
+ setmetatable(_attributes_3, nil)
133
+ local _exp_4 = React.createElement("uicorner", _attributes_3)
134
+ local _attributes_4 = table.clone(styles.stroke)
135
+ setmetatable(_attributes_4, nil)
136
+ _result_2 = (React.createElement("textlabel", _attributes_1, _exp_3, _exp_4, React.createElement("uistroke", _attributes_4)))
137
+ else
138
+ local _attributes_1 = {
139
+ key = "Tip",
140
+ }
141
+ for _k, _v in styles.shell do
142
+ _attributes_1[_k] = _v
143
+ end
144
+ local _attributes_2 = table.clone(styles.padding)
145
+ setmetatable(_attributes_2, nil)
146
+ local _exp_3 = React.createElement("uipadding", _attributes_2)
147
+ local _attributes_3 = table.clone(styles.corner)
148
+ setmetatable(_attributes_3, nil)
149
+ local _exp_4 = React.createElement("uicorner", _attributes_3)
150
+ local _attributes_4 = table.clone(styles.stroke)
151
+ setmetatable(_attributes_4, nil)
152
+ local _exp_5 = React.createElement("uistroke", _attributes_4)
153
+ local _attributes_5 = table.clone(styles.stack)
154
+ setmetatable(_attributes_5, nil)
155
+ local _exp_6 = React.createElement("uilistlayout", _attributes_5)
156
+ local _attributes_6 = {
157
+ key = "Title",
158
+ }
159
+ for _k, _v in styles.title do
160
+ _attributes_6[_k] = _v
161
+ end
162
+ _attributes_6.Text = heading
163
+ _attributes_6.LayoutOrder = 0
164
+ local _exp_7 = React.createElement("textlabel", _attributes_6)
165
+ local _condition_6 = text ~= ""
166
+ if _condition_6 then
167
+ local _attributes_7 = {
168
+ key = "Body",
169
+ }
170
+ for _k, _v in styles.body do
171
+ _attributes_7[_k] = _v
172
+ end
173
+ _attributes_7.Text = text
174
+ _attributes_7.LayoutOrder = 1
175
+ _condition_6 = React.createElement("textlabel", _attributes_7)
176
+ end
177
+ _result_2 = (React.createElement("frame", _attributes_1, _exp_3, _exp_4, _exp_5, _exp_6, _exp_7, _condition_6))
88
178
  end
89
- _attributes_1.Text = text
90
- _attributes_1.Size = UDim2.fromScale(1, 1)
91
- _attributes_1.AutomaticSize = Enum.AutomaticSize.None
92
- _attributes_1.TextWrapped = true
93
- local _attributes_2 = table.clone(styles.padding)
94
- setmetatable(_attributes_2, nil)
95
- local _exp_1 = React.createElement("uipadding", _attributes_2)
96
- local _attributes_3 = table.clone(styles.corner)
97
- setmetatable(_attributes_3, nil)
98
- local _exp_2 = React.createElement("uicorner", _attributes_3)
99
- local _attributes_4 = table.clone(styles.stroke)
100
- setmetatable(_attributes_4, nil)
101
- _condition_2 = (React.createElement(Popup, {
179
+ _condition_5 = (React.createElement(Popup, {
102
180
  anchor = anchor,
103
181
  preferredWidth = tipWidth,
104
182
  preferredHeight = tipHeight,
105
- }, React.createElement("textlabel", _attributes_1, _exp_1, _exp_2, React.createElement("uistroke", _attributes_4))))
183
+ }, _result_2))
106
184
  end
107
- return React.createElement(SxHost, _attributes, _exp, _condition_2)
185
+ return React.createElement(SxHost, _attributes, _exp_2, _condition_5)
108
186
  end
109
187
  local default = Tooltip
110
188
  return {
@@ -14,7 +14,7 @@ local useTooltipStyles = componentStyles("Tooltip", function(theme)
14
14
  label = {
15
15
  AutomaticSize = Enum.AutomaticSize.XY,
16
16
  Size = UDim2.fromScale(0, 0),
17
- BackgroundColor3 = theme.palette.surface.overlay,
17
+ BackgroundColor3 = theme.palette.surface.elevated,
18
18
  BorderSizePixel = 0,
19
19
  TextColor3 = theme.palette.text.primary,
20
20
  Font = theme.typography.fontFamilies.default,
@@ -35,6 +35,36 @@ local useTooltipStyles = componentStyles("Tooltip", function(theme)
35
35
  Color = theme.palette.border,
36
36
  ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
37
37
  },
38
+ shell = {
39
+ Size = UDim2.fromScale(1, 1),
40
+ BackgroundColor3 = theme.palette.surface.elevated,
41
+ BorderSizePixel = 0,
42
+ },
43
+ stack = {
44
+ FillDirection = Enum.FillDirection.Vertical,
45
+ Padding = UDim.new(0, theme.padding.default),
46
+ SortOrder = Enum.SortOrder.LayoutOrder,
47
+ },
48
+ title = {
49
+ Size = UDim2.new(1, 0, 0, 0),
50
+ AutomaticSize = Enum.AutomaticSize.Y,
51
+ BackgroundTransparency = 1,
52
+ TextColor3 = theme.palette.text.primary,
53
+ Font = theme.typography.fontFamilies.semibold,
54
+ TextSize = theme.typography.fontSizes.caption,
55
+ TextWrapped = true,
56
+ TextXAlignment = Enum.TextXAlignment.Left,
57
+ },
58
+ body = {
59
+ Size = UDim2.new(1, 0, 0, 0),
60
+ AutomaticSize = Enum.AutomaticSize.Y,
61
+ BackgroundTransparency = 1,
62
+ TextColor3 = theme.palette.text.primary,
63
+ Font = theme.typography.fontFamilies.default,
64
+ TextSize = theme.typography.fontSizes.caption,
65
+ TextWrapped = true,
66
+ TextXAlignment = Enum.TextXAlignment.Left,
67
+ },
38
68
  })
39
69
  end)
40
70
  local default = useTooltipStyles
@@ -0,0 +1,4 @@
1
+ export declare function tooltipBox(textWidth: number, textHeight: number, titleWidth: number, titleHeight: number, padX: number, padY: number, gap: number): {
2
+ width: number;
3
+ height: number;
4
+ };
@@ -0,0 +1,12 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local function tooltipBox(textWidth, textHeight, titleWidth, titleHeight, padX, padY, gap)
3
+ local width = math.max(textWidth, titleWidth) + padX * 2
4
+ local height = textHeight + (if titleHeight > 0 then titleHeight + gap else 0) + padY * 2
5
+ return {
6
+ width = width,
7
+ height = height,
8
+ }
9
+ end
10
+ return {
11
+ tooltipBox = tooltipBox,
12
+ }
@@ -0,0 +1,2 @@
1
+ /** True when the pointer is still over the host, including a child pin. */
2
+ export declare function pointerInside(originX: number, originY: number, width: number, height: number, x: number, y: number): boolean;
@@ -0,0 +1,11 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ --* True when the pointer is still over the host, including a child pin.
3
+ local function pointerInside(originX, originY, width, height, x, y)
4
+ if x ~= x or y ~= y then
5
+ return false
6
+ end
7
+ return x >= originX and y >= originY and x <= originX + width and y <= originY + height
8
+ end
9
+ return {
10
+ pointerInside = pointerInside,
11
+ }
@@ -34,6 +34,7 @@ local function TreeView(props)
34
34
  local header = _binding_1.header
35
35
  local list = _binding_1.list
36
36
  local row = _binding_1.row
37
+ local selectedRow = _binding_1.selectedRow
37
38
  local rowIcon = _binding_1.rowIcon
38
39
  local label = _binding_1.label
39
40
  local _binding_2 = useTheme()
@@ -153,7 +154,8 @@ local function TreeView(props)
153
154
  local labelX = _binding_3.labelX
154
155
  local rowIconImage = if entry.kind == "leaf" then (entry.icon or icon or Icons.ListPrimary) else entry.icon
155
156
  local bold = if entry.kind == "branch" then entry.emphasized elseif selected ~= nil then selected == entry.path else clickedLeaf == entry.path
156
- local _attributes = table.clone(row)
157
+ local picked = if selected ~= nil and #selected > 0 then entry.path == selected else entry.kind == "leaf" and clickedLeaf == entry.path
158
+ local _attributes = table.clone(cx(row, if picked then selectedRow else nil))
157
159
  setmetatable(_attributes, nil)
158
160
  _attributes.Event = {
159
161
  MouseButton1Click = function()
@@ -244,6 +246,7 @@ local function TreeView(props)
244
246
  tint = theme.palette.primary.main,
245
247
  })), React.createElement(Typography, {
246
248
  text = entry.title,
249
+ noWrap = true,
247
250
  className = cx(label, {
248
251
  Position = UDim2.new(0, labelX, 0.5, 0),
249
252
  Size = UDim2.new(1, -labelX, 1, -theme.padding.calc(4)),
@@ -265,18 +268,14 @@ local function TreeView(props)
265
268
  _attributes.base = root
266
269
  _attributes.className = className
267
270
  _attributes.sx = sx
268
- local _attributes_1 = {}
269
- local _object = {
270
- Text = tree.title,
271
- }
272
- for _k, _v in header do
273
- _object[_k] = _v
274
- end
275
- _attributes_1.className = _object
276
- _attributes_1.color = "textSecondary"
277
- _attributes_1.variant = "body"
278
- _attributes_1.family = "bold"
279
- return React.createElement(SxHost, _attributes, React.createElement(Typography, _attributes_1), React.createElement(VirtualList, {
271
+ return React.createElement(SxHost, _attributes, React.createElement(Typography, {
272
+ text = tree.title,
273
+ noWrap = true,
274
+ className = header,
275
+ color = "textSecondary",
276
+ variant = "body",
277
+ family = "bold",
278
+ }), React.createElement(VirtualList, {
280
279
  key = "List",
281
280
  items = rows,
282
281
  getKey = function(entry)
@@ -38,8 +38,13 @@ local useTreeViewStyles = componentStyles("TreeView", function(theme)
38
38
  Size = UDim2.fromScale(1, 1),
39
39
  BackgroundTransparency = 1,
40
40
  BorderSizePixel = 0,
41
+ AutoButtonColor = false,
41
42
  ZIndex = 5200,
42
43
  },
44
+ selectedRow = {
45
+ BackgroundColor3 = theme.palette.action.selected,
46
+ BackgroundTransparency = 0,
47
+ },
43
48
  rowIcon = {
44
49
  AnchorPoint = Vector2.new(0, 0.5),
45
50
  BackgroundTransparency = 1,
@@ -51,6 +56,7 @@ local useTreeViewStyles = componentStyles("TreeView", function(theme)
51
56
  TextXAlignment = Enum.TextXAlignment.Left,
52
57
  TextYAlignment = Enum.TextYAlignment.Center,
53
58
  TextTruncate = Enum.TextTruncate.AtEnd,
59
+ TextWrapped = false,
54
60
  BackgroundTransparency = 1,
55
61
  BorderSizePixel = 0,
56
62
  ZIndex = 5300,
@@ -13,6 +13,8 @@ export interface TypographyProps {
13
13
  align?: TypographyAlignment;
14
14
  noWrap?: boolean;
15
15
  lineClamp?: boolean;
16
+ richText?: boolean;
17
+ fontFace?: Font;
16
18
  }
17
19
  declare function Typography<T extends DefaultTypographyComponent>(props: CustomizedProps<T, TypographyProps>): JSX.Element;
18
20
  export default Typography;
@@ -9,6 +9,8 @@ local function Typography(props)
9
9
  if text == nil then
10
10
  text = ""
11
11
  end
12
+ local richText = _binding.richText
13
+ local fontFace = _binding.fontFace
12
14
  local className = _binding.className
13
15
  local sx = _binding.sx
14
16
  local children = _binding.children
@@ -29,6 +31,7 @@ local function Typography(props)
29
31
  local _object = table.clone(root)
30
32
  setmetatable(_object, nil)
31
33
  _object.Text = text
34
+ _object.RichText = richText == true
32
35
  if className ~= 0 and className == className and className ~= "" and className then
33
36
  for _k, _v in className do
34
37
  _object[_k] = _v
@@ -37,6 +40,11 @@ local function Typography(props)
37
40
  for _k, _v in variantToken do
38
41
  _object[_k] = _v
39
42
  end
43
+ for _k, _v in (if fontFace ~= nil then {
44
+ FontFace = fontFace,
45
+ } else {}) do
46
+ _object[_k] = _v
47
+ end
40
48
  _attributes.base = _object
41
49
  _attributes.sx = sx
42
50
  return React.createElement(SxHost, _attributes, children)
@@ -72,17 +72,19 @@ local useTypographyStyles = componentStyles("Typography", function(theme, _param
72
72
  defaultStyles.TextColor3 = color and COLOR_TO_PALETTE(color)
73
73
  -- eslint-disable-next-line roblox-ts/lua-truthiness
74
74
  defaultStyles.TextWrapped = not noWrap
75
+ defaultStyles.TextTruncate = if noWrap then Enum.TextTruncate.AtEnd else Enum.TextTruncate.None
76
+ defaultStyles.TextYAlignment = Enum.TextYAlignment.Top
75
77
  defaultStyles.ClipsDescendants = lineClamp
76
78
  defaultStyles.BackgroundTransparency = 1
77
79
  defaultStyles.BorderSizePixel = 0
78
80
  defaultStyles.Size = UDim2.new(1, 0, 1, 0)
79
- defaultStyles.ZIndex = 10000
80
81
  return defaultStyles
81
82
  end
82
83
  return createStyles({
83
84
  root = makeRootStyles(),
84
85
  variantToken = {
85
86
  TextSize = spec.size,
87
+ LineHeight = spec.leading,
86
88
  Font = theme.typography.fontFamilies[resolvedFamily],
87
89
  },
88
90
  })
@@ -1,6 +1,7 @@
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 useEditorHover = TS.import(script, script.Parent.Parent.Parent, "editorFace").useEditorHover
4
5
  local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
6
  local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
6
7
  local _vectorValue = TS.import(script, script.Parent.Parent.Parent, "vectorEditor", "components", "vectorValue")
@@ -17,6 +18,7 @@ local function UDimEditor(props)
17
18
  local id = _binding.id
18
19
  local ref = _binding.ref
19
20
  local styles = useUDimEditorStyles()
21
+ local hover = useEditorHover(disabled)
20
22
  local isUDim2 = typeof(value) == "UDim2"
21
23
  local field = function(key, label, amount, commit, order)
22
24
  local _attributes = {
@@ -51,12 +53,18 @@ local function UDimEditor(props)
51
53
  end
52
54
  _attributes.key = _condition
53
55
  _attributes.hostRef = ref
54
- _attributes.base = styles.root
56
+ local _object = table.clone(styles.root)
57
+ setmetatable(_object, nil)
58
+ for _k, _v in hover.face do
59
+ _object[_k] = _v
60
+ end
61
+ _attributes.base = _object
55
62
  _attributes.className = className
56
63
  _attributes.sx = sx
57
64
  _attributes.state = {
58
65
  disabled = disabled,
59
66
  }
67
+ _attributes.Event = hover.event
60
68
  local _attributes_1 = table.clone(styles.column)
61
69
  setmetatable(_attributes_1, nil)
62
70
  local _exp = React.createElement("uilistlayout", _attributes_1)
@@ -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 useUDimEditorStyles = componentStyles("UDimEditor", 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,36 +17,39 @@ local useUDimEditorStyles = componentStyles("UDimEditor", function(theme)
13
17
  },
14
18
  column = {
15
19
  FillDirection = Enum.FillDirection.Vertical,
16
- Padding = UDim.new(0, theme.padding.calc(1)),
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(1)),
25
+ Padding = UDim.new(0, editorPad(theme)),
22
26
  VerticalAlignment = Enum.VerticalAlignment.Center,
23
27
  SortOrder = Enum.SortOrder.LayoutOrder,
24
28
  },
25
29
  axis = {
26
- Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
30
+ Size = UDim2.new(1, 0, 0, editorRowHeight(theme)),
27
31
  BackgroundTransparency = 1,
28
32
  },
29
33
  field = {
30
- Size = UDim2.new(0.5, -theme.padding.calc(1), 0, theme.spacing.calc(2)),
34
+ Size = UDim2.new(0.5, -editorPad(theme), 0, editorRowHeight(theme)),
31
35
  BackgroundTransparency = 1,
32
36
  },
33
- label = {
34
- Size = UDim2.new(0, theme.spacing.calc(2), 1, 0),
35
- BackgroundTransparency = 1,
36
- Font = theme.typography.fontFamilies.default,
37
- TextSize = theme.typography.fontSizes.caption,
38
- TextColor3 = theme.palette.text.secondary,
39
- TextXAlignment = Enum.TextXAlignment.Left,
40
- },
41
- input = {
42
- Size = UDim2.new(1, -theme.spacing.calc(2), 1, 0),
43
- BackgroundTransparency = 1,
44
- },
45
- })
37
+ }
38
+ local _left = "label"
39
+ local _object_1 = {
40
+ Size = UDim2.new(0, theme.spacing.calc(2), 1, 0),
41
+ BackgroundTransparency = 1,
42
+ TextColor3 = theme.palette.text.secondary,
43
+ }
44
+ for _k, _v in editorText(theme) do
45
+ _object_1[_k] = _v
46
+ end
47
+ _object[_left] = _object_1
48
+ _object.input = {
49
+ Size = UDim2.new(1, -theme.spacing.calc(2), 1, 0),
50
+ BackgroundTransparency = 1,
51
+ }
52
+ return createStyles(_object)
46
53
  end)
47
54
  local default = useUDimEditorStyles
48
55
  return {
@@ -1,6 +1,10 @@
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 useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
5
+ local _editorFace = TS.import(script, script.Parent.Parent.Parent, "editorFace")
6
+ local editorRowHeight = _editorFace.editorRowHeight
7
+ local useEditorHover = _editorFace.useEditorHover
4
8
  local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
9
  local NumberInput = TS.import(script, script.Parent.Parent.Parent, "numberInput").NumberInput
6
10
  local useVectorEditorStyles = TS.import(script, script.Parent, "VectorEditor.styles").default
@@ -17,7 +21,11 @@ local function VectorEditor(props)
17
21
  local sx = _binding.sx
18
22
  local id = _binding.id
19
23
  local ref = _binding.ref
24
+ local _binding_1 = useTheme()
25
+ local theme = _binding_1.theme
20
26
  local styles = useVectorEditorStyles()
27
+ local row = editorRowHeight(theme)
28
+ local hover = useEditorHover(disabled)
21
29
  local isVector3 = typeof(value) == "Vector3"
22
30
  local axes = props.axes or (if isVector3 then ({ "X", "Y", "Z" }) else ({ "X", "Y" }))
23
31
  local _attributes = {
@@ -29,13 +37,19 @@ local function VectorEditor(props)
29
37
  end
30
38
  _attributes.key = _condition
31
39
  _attributes.hostRef = ref
32
- _attributes.base = styles.root
40
+ local _object = table.clone(styles.root)
41
+ setmetatable(_object, nil)
42
+ for _k, _v in hover.face do
43
+ _object[_k] = _v
44
+ end
45
+ _attributes.base = _object
33
46
  _attributes.className = className
34
47
  _attributes.sx = sx
35
48
  _attributes.state = {
36
49
  disabled = disabled,
37
50
  }
38
- local _attributes_1 = table.clone(styles.row)
51
+ _attributes.Event = hover.event
52
+ local _attributes_1 = table.clone(styles.axes)
39
53
  setmetatable(_attributes_1, nil)
40
54
  local _exp = React.createElement("uilistlayout", _attributes_1)
41
55
  -- ▼ ReadonlyArray.map ▼
@@ -47,7 +61,7 @@ local function VectorEditor(props)
47
61
  for _k, _v in styles.axis do
48
62
  _attributes_2[_k] = _v
49
63
  end
50
- _attributes_2.Size = UDim2.new(1 / #axes, 0, 0, 32)
64
+ _attributes_2.Size = UDim2.new(1 / #axes, 0, 0, row)
51
65
  _attributes_2.LayoutOrder = index + 1
52
66
  local _attributes_3 = table.clone(styles.row)
53
67
  setmetatable(_attributes_3, nil)
@@ -60,6 +74,7 @@ local function VectorEditor(props)
60
74
  setmetatable(_attributes_5, nil)
61
75
  return React.createElement("frame", _attributes_2, _exp_1, _exp_2, React.createElement("frame", _attributes_5, React.createElement(NumberInput, {
62
76
  value = readAxis(value, axis),
77
+ places = 3,
63
78
  disabled = disabled,
64
79
  width = UDim.new(1, 0),
65
80
  onChange = function(amount)
@@ -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 useVectorEditorStyles = componentStyles("VectorEditor", 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,27 +17,37 @@ local useVectorEditorStyles = componentStyles("VectorEditor", function(theme)
13
17
  },
14
18
  row = {
15
19
  FillDirection = Enum.FillDirection.Horizontal,
16
- Padding = UDim.new(0, theme.padding.calc(1)),
20
+ Padding = UDim.new(0, editorPad(theme)),
17
21
  VerticalAlignment = Enum.VerticalAlignment.Center,
18
22
  SortOrder = Enum.SortOrder.LayoutOrder,
19
23
  },
20
- axis = {
21
- Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
22
- BackgroundTransparency = 1,
23
- },
24
- label = {
25
- Size = UDim2.new(0, theme.spacing.calc(1.5), 1, 0),
26
- BackgroundTransparency = 1,
27
- Font = theme.typography.fontFamilies.default,
28
- TextSize = theme.typography.fontSizes.caption,
29
- TextColor3 = theme.palette.text.secondary,
30
- TextXAlignment = Enum.TextXAlignment.Left,
24
+ axes = {
25
+ FillDirection = Enum.FillDirection.Horizontal,
26
+ HorizontalFlex = Enum.UIFlexAlignment.Fill,
27
+ Padding = UDim.new(0, editorPad(theme)),
28
+ VerticalAlignment = Enum.VerticalAlignment.Center,
29
+ SortOrder = Enum.SortOrder.LayoutOrder,
31
30
  },
32
- field = {
33
- Size = UDim2.new(1, -theme.spacing.calc(1.5), 1, 0),
31
+ axis = {
32
+ Size = UDim2.new(1, 0, 0, editorRowHeight(theme)),
34
33
  BackgroundTransparency = 1,
35
34
  },
36
- })
35
+ }
36
+ local _left = "label"
37
+ local _object_1 = {
38
+ Size = UDim2.new(0, theme.spacing.calc(1.5), 1, 0),
39
+ BackgroundTransparency = 1,
40
+ TextColor3 = theme.palette.text.secondary,
41
+ }
42
+ for _k, _v in editorText(theme) do
43
+ _object_1[_k] = _v
44
+ end
45
+ _object[_left] = _object_1
46
+ _object.field = {
47
+ Size = UDim2.new(1, -theme.spacing.calc(1.5) - editorPad(theme), 1, 0),
48
+ BackgroundTransparency = 1,
49
+ }
50
+ return createStyles(_object)
37
51
  end)
38
52
  local default = useVectorEditorStyles
39
53
  return {
@@ -20,6 +20,7 @@ local useVirtualListStyles = componentStyles("VirtualList", function()
20
20
  Size = UDim2.new(1, 0, 0, 0),
21
21
  BackgroundTransparency = 1,
22
22
  BorderSizePixel = 0,
23
+ ClipsDescendants = true,
23
24
  },
24
25
  })
25
26
  end)
@@ -0,0 +1,24 @@
1
+ import { CustomizedProps } from "../../../../theme/index";
2
+ export interface WeekGridColumn {
3
+ id: string;
4
+ label: string;
5
+ }
6
+ export interface WeekGridCell {
7
+ columnId: string;
8
+ text?: string;
9
+ }
10
+ export interface WeekGridRow {
11
+ id: string;
12
+ label: string;
13
+ cells: WeekGridCell[];
14
+ }
15
+ export interface WeekGridProps {
16
+ columns: WeekGridColumn[];
17
+ rows: WeekGridRow[];
18
+ narrow?: boolean;
19
+ day?: number;
20
+ empty?: string;
21
+ onCell?: (rowId: string, columnId: string) => void;
22
+ }
23
+ declare function WeekGrid(props: CustomizedProps<Frame, WeekGridProps>): JSX.Element;
24
+ export default WeekGrid;