@rbxts/uiblox 0.2.0-alpha.2 → 0.2.0-alpha.21

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 (248) hide show
  1. package/README.md +2 -0
  2. package/out/theme/constants/NumberConstants.d.ts +2 -0
  3. package/out/theme/constants/NumberConstants.luau +3 -0
  4. package/out/theme/interfaces/spacing/Shape.d.ts +3 -0
  5. package/out/theme/interfaces/typography/FontSizes.d.ts +1 -1
  6. package/out/theme/interfaces/typography/FontSizes.luau +15 -8
  7. package/out/theme/interfaces/typography/ThemeTypography.d.ts +3 -0
  8. package/out/theme/interfaces/typography/Variants.d.ts +14 -15
  9. package/out/theme/interfaces/typography/Variants.luau +68 -18
  10. package/out/theme/themes/DarkTheme.luau +4 -0
  11. package/out/theme/themes/LightTheme.luau +4 -0
  12. package/out/ui/packages/accordion/components/Accordion.d.ts +2 -0
  13. package/out/ui/packages/accordion/components/Accordion.luau +36 -16
  14. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +1 -0
  15. package/out/ui/packages/accordion/components/Accordion.styles.luau +16 -4
  16. package/out/ui/packages/accordion/components/accordionOpen.d.ts +1 -0
  17. package/out/ui/packages/accordion/components/accordionOpen.luau +4 -0
  18. package/out/ui/packages/alert/components/Alert.d.ts +2 -0
  19. package/out/ui/packages/alert/components/Alert.luau +40 -27
  20. package/out/ui/packages/alert/components/Alert.styles.d.ts +2 -0
  21. package/out/ui/packages/alert/components/Alert.styles.luau +17 -8
  22. package/out/ui/packages/appBar/components/AppBar.d.ts +2 -1
  23. package/out/ui/packages/appBar/components/AppBar.luau +5 -0
  24. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +2 -0
  25. package/out/ui/packages/appBar/components/AppBar.styles.luau +6 -2
  26. package/out/ui/packages/autocomplete/components/Autocomplete.luau +8 -0
  27. package/out/ui/packages/avatar/components/Avatar.d.ts +2 -0
  28. package/out/ui/packages/avatar/components/Avatar.luau +20 -12
  29. package/out/ui/packages/avatar/components/Avatar.styles.d.ts +2 -0
  30. package/out/ui/packages/avatar/components/Avatar.styles.luau +5 -1
  31. package/out/ui/packages/backdrop/components/Backdrop.d.ts +10 -0
  32. package/out/ui/packages/backdrop/components/Backdrop.luau +58 -0
  33. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +4 -0
  34. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +24 -0
  35. package/out/ui/packages/backdrop/index.d.ts +2 -0
  36. package/out/ui/packages/backdrop/init.luau +5 -0
  37. package/out/ui/packages/badge/components/Badge.d.ts +3 -0
  38. package/out/ui/packages/badge/components/Badge.luau +23 -8
  39. package/out/ui/packages/badge/components/Badge.styles.d.ts +5 -1
  40. package/out/ui/packages/badge/components/Badge.styles.luau +20 -8
  41. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +1 -0
  42. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +9 -3
  43. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +3 -1
  44. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +6 -2
  45. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +1 -0
  46. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +59 -25
  47. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +9 -0
  48. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +68 -0
  49. package/out/ui/packages/breadcrumbs/index.d.ts +1 -0
  50. package/out/ui/packages/breadcrumbs/init.luau +3 -0
  51. package/out/ui/packages/brickColorPicker/components/brickColorCatalog.luau +1 -1
  52. package/out/ui/packages/button/components/Button.luau +9 -5
  53. package/out/ui/packages/card/components/Card.d.ts +1 -0
  54. package/out/ui/packages/card/components/Card.luau +2 -0
  55. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +1 -1
  56. package/out/ui/packages/chip/components/Chip.d.ts +6 -1
  57. package/out/ui/packages/chip/components/Chip.luau +49 -2
  58. package/out/ui/packages/chip/components/Chip.styles.d.ts +6 -0
  59. package/out/ui/packages/chip/components/Chip.styles.luau +55 -10
  60. package/out/ui/packages/circularProgress/components/CircularProgress.luau +13 -2
  61. package/out/ui/packages/colorPicker/components/ColorPicker.luau +1 -1
  62. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +1 -1
  63. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +1 -1
  64. package/out/ui/packages/dialog/components/Dialog.d.ts +1 -1
  65. package/out/ui/packages/dialog/components/Dialog.luau +27 -18
  66. package/out/ui/packages/divider/components/Divider.d.ts +1 -0
  67. package/out/ui/packages/divider/components/Divider.luau +48 -0
  68. package/out/ui/packages/divider/components/Divider.styles.luau +29 -0
  69. package/out/ui/packages/divider/components/dividerLabel.d.ts +1 -0
  70. package/out/ui/packages/divider/components/dividerLabel.luau +10 -0
  71. package/out/ui/packages/drawer/components/Drawer.d.ts +1 -0
  72. package/out/ui/packages/drawer/components/Drawer.luau +4 -1
  73. package/out/ui/packages/drawer/components/Drawer.styles.d.ts +3 -1
  74. package/out/ui/packages/drawer/components/Drawer.styles.luau +3 -2
  75. package/out/ui/packages/fab/components/Fab.d.ts +3 -0
  76. package/out/ui/packages/fab/components/Fab.luau +62 -25
  77. package/out/ui/packages/fab/components/Fab.styles.d.ts +3 -0
  78. package/out/ui/packages/fab/components/Fab.styles.luau +33 -3
  79. package/out/ui/packages/fab/components/fabSize.d.ts +1 -0
  80. package/out/ui/packages/fab/components/fabSize.luau +4 -0
  81. package/out/ui/packages/fab/index.d.ts +1 -1
  82. package/out/ui/packages/fab/init.luau +1 -0
  83. package/out/ui/packages/formText/components/FormHelperText.d.ts +8 -0
  84. package/out/ui/packages/formText/components/FormHelperText.luau +44 -0
  85. package/out/ui/packages/formText/components/FormLabel.d.ts +9 -0
  86. package/out/ui/packages/formText/components/FormLabel.luau +46 -0
  87. package/out/ui/packages/formText/components/FormText.styles.d.ts +5 -0
  88. package/out/ui/packages/formText/components/FormText.styles.luau +33 -0
  89. package/out/ui/packages/formText/index.d.ts +4 -0
  90. package/out/ui/packages/formText/init.luau +6 -0
  91. package/out/ui/packages/iconButton/components/IconButton.luau +7 -2
  92. package/out/ui/packages/iconButton/components/IconButton.styles.luau +3 -0
  93. package/out/ui/packages/imageList/components/ImageList.d.ts +14 -0
  94. package/out/ui/packages/imageList/components/ImageList.luau +100 -0
  95. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +6 -0
  96. package/out/ui/packages/imageList/components/ImageList.styles.luau +73 -0
  97. package/out/ui/packages/imageList/components/imageListLayout.d.ts +4 -0
  98. package/out/ui/packages/imageList/components/imageListLayout.luau +31 -0
  99. package/out/ui/packages/imageList/index.d.ts +2 -0
  100. package/out/ui/packages/imageList/init.luau +5 -0
  101. package/out/ui/packages/index.d.ts +7 -0
  102. package/out/ui/packages/init.luau +21 -0
  103. package/out/ui/packages/input/components/Input.d.ts +1 -0
  104. package/out/ui/packages/input/components/Input.luau +8 -3
  105. package/out/ui/packages/layout/components/Box.d.ts +11 -0
  106. package/out/ui/packages/layout/components/Box.luau +49 -0
  107. package/out/ui/packages/layout/components/Box.styles.d.ts +7 -0
  108. package/out/ui/packages/layout/components/Box.styles.luau +34 -0
  109. package/out/ui/packages/layout/components/Container.d.ts +10 -0
  110. package/out/ui/packages/layout/components/Container.luau +54 -0
  111. package/out/ui/packages/layout/components/Container.styles.d.ts +6 -0
  112. package/out/ui/packages/layout/components/Container.styles.luau +41 -0
  113. package/out/ui/packages/layout/components/FlexItem.d.ts +12 -0
  114. package/out/ui/packages/layout/components/FlexItem.luau +49 -0
  115. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +8 -0
  116. package/out/ui/packages/layout/components/FlexItem.styles.luau +66 -0
  117. package/out/ui/packages/layout/components/Grid.d.ts +5 -1
  118. package/out/ui/packages/layout/components/Grid.luau +35 -4
  119. package/out/ui/packages/layout/components/Stack.d.ts +14 -0
  120. package/out/ui/packages/layout/components/Stack.luau +53 -0
  121. package/out/ui/packages/layout/components/Stack.styles.d.ts +10 -0
  122. package/out/ui/packages/layout/components/Stack.styles.luau +101 -0
  123. package/out/ui/packages/layout/components/boxPad.d.ts +14 -0
  124. package/out/ui/packages/layout/components/boxPad.luau +59 -0
  125. package/out/ui/packages/layout/components/containerWidth.d.ts +2 -0
  126. package/out/ui/packages/layout/components/containerWidth.luau +17 -0
  127. package/out/ui/packages/layout/components/flexItemMode.d.ts +6 -0
  128. package/out/ui/packages/layout/components/flexItemMode.luau +36 -0
  129. package/out/ui/packages/layout/components/gridProps.d.ts +3 -0
  130. package/out/ui/packages/layout/components/gridProps.luau +20 -0
  131. package/out/ui/packages/layout/components/stackAlign.d.ts +10 -0
  132. package/out/ui/packages/layout/components/stackAlign.luau +43 -0
  133. package/out/ui/packages/layout/index.d.ts +14 -0
  134. package/out/ui/packages/layout/init.luau +5 -0
  135. package/out/ui/packages/link/components/Link.d.ts +11 -0
  136. package/out/ui/packages/link/components/Link.luau +83 -0
  137. package/out/ui/packages/link/components/Link.styles.d.ts +8 -0
  138. package/out/ui/packages/link/components/Link.styles.luau +59 -0
  139. package/out/ui/packages/link/index.d.ts +3 -0
  140. package/out/ui/packages/link/init.luau +5 -0
  141. package/out/ui/packages/listItem/components/ListItem.d.ts +2 -0
  142. package/out/ui/packages/listItem/components/ListItem.luau +22 -1
  143. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +1 -0
  144. package/out/ui/packages/listItem/components/ListItem.styles.luau +16 -5
  145. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +2 -0
  146. package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +23 -19
  147. package/out/ui/packages/menu/components/Menu.d.ts +5 -0
  148. package/out/ui/packages/menu/components/Menu.luau +54 -23
  149. package/out/ui/packages/menu/components/Menu.styles.luau +5 -1
  150. package/out/ui/packages/modal/components/Modal.d.ts +1 -1
  151. package/out/ui/packages/modal/components/Modal.luau +55 -37
  152. package/out/ui/packages/motion/index.d.ts +1 -1
  153. package/out/ui/packages/motion/init.luau +1 -0
  154. package/out/ui/packages/motion/unit.d.ts +5 -0
  155. package/out/ui/packages/motion/unit.luau +23 -0
  156. package/out/ui/packages/numberInput/components/NumberInput.d.ts +1 -0
  157. package/out/ui/packages/numberInput/components/NumberInput.luau +2 -0
  158. package/out/ui/packages/pagination/components/Pagination.d.ts +6 -1
  159. package/out/ui/packages/pagination/components/Pagination.luau +51 -23
  160. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +6 -1
  161. package/out/ui/packages/pagination/components/Pagination.styles.luau +36 -4
  162. package/out/ui/packages/pagination/components/pageRange.d.ts +2 -1
  163. package/out/ui/packages/pagination/components/pageRange.luau +91 -8
  164. package/out/ui/packages/pagination/index.d.ts +1 -0
  165. package/out/ui/packages/pagination/init.luau +1 -0
  166. package/out/ui/packages/paper/components/Paper.d.ts +2 -1
  167. package/out/ui/packages/paper/components/Paper.luau +14 -3
  168. package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
  169. package/out/ui/packages/paper/components/Paper.styles.luau +6 -0
  170. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +1 -1
  171. package/out/ui/packages/popup/index.d.ts +1 -0
  172. package/out/ui/packages/popup/init.luau +1 -0
  173. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +1 -0
  174. package/out/ui/packages/radioGroup/components/RadioGroup.luau +5 -3
  175. package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +1 -0
  176. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +4 -1
  177. package/out/ui/packages/rating/components/Rating.d.ts +11 -0
  178. package/out/ui/packages/rating/components/Rating.luau +101 -0
  179. package/out/ui/packages/rating/components/Rating.styles.d.ts +6 -0
  180. package/out/ui/packages/rating/components/Rating.styles.luau +44 -0
  181. package/out/ui/packages/rating/index.d.ts +2 -0
  182. package/out/ui/packages/rating/init.luau +5 -0
  183. package/out/ui/packages/rectEditor/components/RectEditor.luau +1 -1
  184. package/out/ui/packages/select/components/Select.d.ts +5 -0
  185. package/out/ui/packages/select/components/Select.luau +48 -24
  186. package/out/ui/packages/select/components/Select.styles.luau +1 -1
  187. package/out/ui/packages/skeleton/components/Skeleton.luau +4 -3
  188. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +7 -2
  189. package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
  190. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +20 -0
  191. package/out/ui/packages/skeleton/components/skeletonTone.luau +14 -0
  192. package/out/ui/packages/slider/components/Slider.d.ts +3 -0
  193. package/out/ui/packages/slider/components/Slider.luau +32 -3
  194. package/out/ui/packages/slider/components/Slider.styles.d.ts +2 -0
  195. package/out/ui/packages/slider/components/Slider.styles.luau +14 -1
  196. package/out/ui/packages/slider/components/sliderMarks.d.ts +1 -0
  197. package/out/ui/packages/slider/components/sliderMarks.luau +37 -0
  198. package/out/ui/packages/snackbar/components/Snackbar.d.ts +2 -0
  199. package/out/ui/packages/snackbar/components/Snackbar.luau +5 -0
  200. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +1 -0
  201. package/out/ui/packages/snackbar/components/snackbarAction.luau +10 -0
  202. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +19 -0
  203. package/out/ui/packages/speedDial/components/SpeedDial.luau +101 -0
  204. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +5 -0
  205. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +31 -0
  206. package/out/ui/packages/speedDial/index.d.ts +3 -0
  207. package/out/ui/packages/speedDial/init.luau +5 -0
  208. package/out/ui/packages/splitPane/components/SplitPane.luau +1 -1
  209. package/out/ui/packages/stateMatrix.d.ts +2 -0
  210. package/out/ui/packages/stateMatrix.luau +881 -253
  211. package/out/ui/packages/stepper/components/Stepper.d.ts +1 -0
  212. package/out/ui/packages/stepper/components/Stepper.luau +8 -2
  213. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +3 -1
  214. package/out/ui/packages/stepper/components/Stepper.styles.luau +6 -2
  215. package/out/ui/packages/switch/components/Switch.d.ts +2 -0
  216. package/out/ui/packages/switch/components/Switch.luau +5 -0
  217. package/out/ui/packages/switch/components/Switch.styles.d.ts +2 -0
  218. package/out/ui/packages/switch/components/Switch.styles.luau +7 -2
  219. package/out/ui/packages/table/components/Table.d.ts +1 -0
  220. package/out/ui/packages/table/components/Table.luau +7 -4
  221. package/out/ui/packages/table/components/Table.styles.d.ts +3 -1
  222. package/out/ui/packages/table/components/Table.styles.luau +10 -6
  223. package/out/ui/packages/tabs/components/Tabs.d.ts +3 -0
  224. package/out/ui/packages/tabs/components/Tabs.luau +13 -4
  225. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +5 -1
  226. package/out/ui/packages/tabs/components/Tabs.styles.luau +26 -10
  227. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +2 -0
  228. package/out/ui/packages/tabs/components/tabsOrientation.luau +7 -0
  229. package/out/ui/packages/tabs/index.d.ts +1 -0
  230. package/out/ui/packages/tabs/init.luau +1 -0
  231. package/out/ui/packages/toast/components/Toast.d.ts +2 -0
  232. package/out/ui/packages/toast/components/Toast.luau +26 -1
  233. package/out/ui/packages/toast/components/Toast.styles.luau +22 -4
  234. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +21 -0
  235. package/out/ui/packages/toggleButton/components/ToggleButton.luau +137 -0
  236. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +9 -0
  237. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +69 -0
  238. package/out/ui/packages/toggleButton/index.d.ts +2 -0
  239. package/out/ui/packages/toggleButton/init.luau +7 -0
  240. package/out/ui/packages/typography/components/Typography.styles.luau +4 -5
  241. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +1 -1
  242. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +6 -0
  243. package/out/ui/packages/virtualList/components/EmptyListHint.luau +32 -0
  244. package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +5 -0
  245. package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +26 -0
  246. package/out/ui/packages/virtualList/index.d.ts +2 -0
  247. package/out/ui/packages/virtualList/init.luau +1 -0
  248. package/package.json +2 -2
@@ -0,0 +1,73 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local componentStyles = _theme.componentStyles
5
+ local createStyles = _theme.createStyles
6
+ local _imageListLayout = TS.import(script, script.Parent, "imageListLayout")
7
+ local imageListCols = _imageListLayout.imageListCols
8
+ local imageListGap = _imageListLayout.imageListGap
9
+ local imageListItemSize = _imageListLayout.imageListItemSize
10
+ local useImageListStyles = componentStyles("ImageList", function(theme, _param)
11
+ local cols = _param.cols
12
+ local gap = _param.gap
13
+ local itemSize = _param.itemSize
14
+ local size = imageListItemSize(itemSize)
15
+ local pad = theme.spacing.calc(imageListGap(gap))
16
+ local bar = theme.spacing.calc(2.5)
17
+ return createStyles({
18
+ root = {
19
+ AutomaticSize = Enum.AutomaticSize.XY,
20
+ Size = UDim2.fromScale(0, 0),
21
+ BackgroundTransparency = 1,
22
+ BorderSizePixel = 0,
23
+ },
24
+ grid = {
25
+ CellSize = UDim2.fromOffset(size, size),
26
+ CellPadding = UDim2.fromOffset(pad, pad),
27
+ FillDirection = Enum.FillDirection.Horizontal,
28
+ FillDirectionMaxCells = imageListCols(cols),
29
+ SortOrder = Enum.SortOrder.LayoutOrder,
30
+ StartCorner = Enum.StartCorner.TopLeft,
31
+ HorizontalAlignment = Enum.HorizontalAlignment.Left,
32
+ VerticalAlignment = Enum.VerticalAlignment.Top,
33
+ },
34
+ tile = {
35
+ Size = UDim2.fromOffset(size, size),
36
+ BackgroundColor3 = theme.palette.surface.input,
37
+ BorderSizePixel = 0,
38
+ AutoButtonColor = false,
39
+ ClipsDescendants = true,
40
+ Text = "",
41
+ },
42
+ corner = {
43
+ CornerRadius = UDim.new(0, theme.shape.borderRadius),
44
+ },
45
+ image = {
46
+ Size = UDim2.fromScale(1, 1),
47
+ BackgroundTransparency = 1,
48
+ BorderSizePixel = 0,
49
+ ScaleType = Enum.ScaleType.Crop,
50
+ },
51
+ title = {
52
+ Size = UDim2.new(1, 0, 0, bar),
53
+ Position = UDim2.new(0, 0, 1, -bar),
54
+ BackgroundColor3 = theme.palette.surface.overlay,
55
+ BackgroundTransparency = 0.25,
56
+ BorderSizePixel = 0,
57
+ Font = theme.typography.fontFamilies.default,
58
+ TextSize = theme.typography.fontSizes.caption,
59
+ TextColor3 = theme.palette.text.inverse,
60
+ TextXAlignment = Enum.TextXAlignment.Left,
61
+ TextTruncate = Enum.TextTruncate.AtEnd,
62
+ ZIndex = 2,
63
+ },
64
+ titlePad = {
65
+ PaddingLeft = UDim.new(0, theme.spacing.calc(0.5)),
66
+ PaddingRight = UDim.new(0, theme.spacing.calc(0.5)),
67
+ },
68
+ })
69
+ end)
70
+ local default = useImageListStyles
71
+ return {
72
+ default = default,
73
+ }
@@ -0,0 +1,4 @@
1
+ export declare function imageListCols(cols?: number): number;
2
+ export declare function imageListGap(gap?: number): number;
3
+ export declare function imageListItemSize(itemSize?: number): number;
4
+ export declare function imageListTitle(title?: string): string | undefined;
@@ -0,0 +1,31 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local function imageListCols(cols)
3
+ if cols == nil or cols < 1 then
4
+ return 3
5
+ end
6
+ return math.floor(cols)
7
+ end
8
+ local function imageListGap(gap)
9
+ if gap == nil or gap < 0 then
10
+ return 1
11
+ end
12
+ return gap
13
+ end
14
+ local function imageListItemSize(itemSize)
15
+ if itemSize == nil or itemSize < 1 then
16
+ return 96
17
+ end
18
+ return math.floor(itemSize)
19
+ end
20
+ local function imageListTitle(title)
21
+ if title == nil or #title == 0 then
22
+ return nil
23
+ end
24
+ return title
25
+ end
26
+ return {
27
+ imageListCols = imageListCols,
28
+ imageListGap = imageListGap,
29
+ imageListItemSize = imageListItemSize,
30
+ imageListTitle = imageListTitle,
31
+ }
@@ -0,0 +1,2 @@
1
+ export { default as ImageList } from "./components/ImageList";
2
+ export { ImageListProps, ImageListItem } from "./components/ImageList";
@@ -0,0 +1,5 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ exports.ImageList = TS.import(script, script, "components", "ImageList").default
5
+ return exports
@@ -3,8 +3,10 @@ export * from "./skeleton/index";
3
3
  export * from "./divider/index";
4
4
  export * from "./errorBoundary/index";
5
5
  export * from "./icon/index";
6
+ export * from "./imageList/index";
6
7
  export * from "./iconButton/index";
7
8
  export * from "./input/index";
9
+ export * from "./formText/index";
8
10
  export * from "./layout/index";
9
11
  export * from "./preloader/index";
10
12
  export * from "./progressBar/index";
@@ -30,6 +32,7 @@ export * from "./cframeEditor/index";
30
32
  export * from "./enumPicker/index";
31
33
  export * from "./popup/index";
32
34
  export * from "./modal/index";
35
+ export * from "./backdrop/index";
33
36
  export * from "./dialog/index";
34
37
  export * from "./paper/index";
35
38
  export * from "./card/index";
@@ -48,9 +51,13 @@ export * from "./snackbar/index";
48
51
  export * from "./table/index";
49
52
  export * from "./autocomplete/index";
50
53
  export * from "./fab/index";
54
+ export * from "./speedDial/index";
51
55
  export * from "./appBar/index";
52
56
  export * from "./bottomNavigation/index";
53
57
  export * from "./alert/index";
58
+ export * from "./toggleButton/index";
59
+ export * from "./link/index";
60
+ export * from "./rating/index";
54
61
  export * from "./listItem/index";
55
62
  export * from "./menu/index";
56
63
  export * from "./motion/index";
@@ -16,12 +16,18 @@ end
16
16
  for _k, _v in TS.import(script, script, "icon") or {} do
17
17
  exports[_k] = _v
18
18
  end
19
+ for _k, _v in TS.import(script, script, "imageList") or {} do
20
+ exports[_k] = _v
21
+ end
19
22
  for _k, _v in TS.import(script, script, "iconButton") or {} do
20
23
  exports[_k] = _v
21
24
  end
22
25
  for _k, _v in TS.import(script, script, "input") or {} do
23
26
  exports[_k] = _v
24
27
  end
28
+ for _k, _v in TS.import(script, script, "formText") or {} do
29
+ exports[_k] = _v
30
+ end
25
31
  for _k, _v in TS.import(script, script, "layout") or {} do
26
32
  exports[_k] = _v
27
33
  end
@@ -97,6 +103,9 @@ end
97
103
  for _k, _v in TS.import(script, script, "modal") or {} do
98
104
  exports[_k] = _v
99
105
  end
106
+ for _k, _v in TS.import(script, script, "backdrop") or {} do
107
+ exports[_k] = _v
108
+ end
100
109
  for _k, _v in TS.import(script, script, "dialog") or {} do
101
110
  exports[_k] = _v
102
111
  end
@@ -151,6 +160,9 @@ end
151
160
  for _k, _v in TS.import(script, script, "fab") or {} do
152
161
  exports[_k] = _v
153
162
  end
163
+ for _k, _v in TS.import(script, script, "speedDial") or {} do
164
+ exports[_k] = _v
165
+ end
154
166
  for _k, _v in TS.import(script, script, "appBar") or {} do
155
167
  exports[_k] = _v
156
168
  end
@@ -160,6 +172,15 @@ end
160
172
  for _k, _v in TS.import(script, script, "alert") or {} do
161
173
  exports[_k] = _v
162
174
  end
175
+ for _k, _v in TS.import(script, script, "toggleButton") or {} do
176
+ exports[_k] = _v
177
+ end
178
+ for _k, _v in TS.import(script, script, "link") or {} do
179
+ exports[_k] = _v
180
+ end
181
+ for _k, _v in TS.import(script, script, "rating") or {} do
182
+ exports[_k] = _v
183
+ end
163
184
  for _k, _v in TS.import(script, script, "listItem") or {} do
164
185
  exports[_k] = _v
165
186
  end
@@ -5,6 +5,7 @@ export type DefaultInputComponent = Frame;
5
5
  export interface InputProps {
6
6
  color?: InputColor;
7
7
  disabled?: boolean;
8
+ readOnly?: boolean;
8
9
  loading?: boolean;
9
10
  hasError?: boolean;
10
11
  helperText?: string;
@@ -36,6 +36,10 @@ local function Input(props)
36
36
  if disabled == nil then
37
37
  disabled = false
38
38
  end
39
+ local readOnly = _binding.readOnly
40
+ if readOnly == nil then
41
+ readOnly = false
42
+ end
39
43
  local loading = _binding.loading
40
44
  if loading == nil then
41
45
  loading = false
@@ -46,7 +50,7 @@ local function Input(props)
46
50
  end
47
51
  local rounded = _binding.rounded
48
52
  if rounded == nil then
49
- rounded = false
53
+ rounded = true
50
54
  end
51
55
  local size = _binding.size
52
56
  local reducedMotion = _binding.reducedMotion
@@ -71,7 +75,8 @@ local function Input(props)
71
75
  local focused, setFocused = useState(false)
72
76
  local _binding_1 = useTheme()
73
77
  local theme = _binding_1.theme
74
- local editable = canActivate(disabled, loading)
78
+ local active = canActivate(disabled, loading)
79
+ local editable = active and readOnly ~= true
75
80
  local endSlotContent = if loading then nil else endAdornment
76
81
  local _object = table.clone(props)
77
82
  setmetatable(_object, nil)
@@ -160,7 +165,7 @@ local function Input(props)
160
165
  for _k, _v in box do
161
166
  _attributes_3[_k] = _v
162
167
  end
163
- _attributes_3.Active = editable
168
+ _attributes_3.Active = active
164
169
  _attributes_3.TextEditable = editable
165
170
  _attributes_3.Text = draft
166
171
  _attributes_3.PlaceholderText = placeholder
@@ -0,0 +1,11 @@
1
+ import React from "@rbxts/react";
2
+ import { CustomizedProps } from "../../../../theme/index";
3
+ import { BoxPad } from "./boxPad";
4
+ import { BoxBg } from "./Box.styles";
5
+ export interface BoxProps {
6
+ padding?: BoxPad;
7
+ bgcolor?: BoxBg;
8
+ children?: React.ReactNode;
9
+ }
10
+ declare function Box(props: CustomizedProps<Frame, BoxProps>): JSX.Element;
11
+ export default Box;
@@ -0,0 +1,49 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
+ local useBoxStyles = TS.import(script, script.Parent, "Box.styles").default
5
+ local function Box(props)
6
+ local _binding = props
7
+ local padding = _binding.padding
8
+ local bgcolor = _binding.bgcolor
9
+ local children = _binding.children
10
+ local className = _binding.className
11
+ local sx = _binding.sx
12
+ local id = _binding.id
13
+ local ref = _binding.ref
14
+ local styles = useBoxStyles({
15
+ padding = padding,
16
+ bgcolor = bgcolor,
17
+ })
18
+ local _attributes = {}
19
+ local _condition = id
20
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
21
+ _condition = "Box"
22
+ end
23
+ _attributes.key = _condition
24
+ _attributes.ref = ref
25
+ for _k, _v in styles.root do
26
+ _attributes[_k] = _v
27
+ end
28
+ if className then
29
+ for _k, _v in className do
30
+ _attributes[_k] = _v
31
+ end
32
+ end
33
+ if sx then
34
+ for _k, _v in sx do
35
+ _attributes[_k] = _v
36
+ end
37
+ end
38
+ local _condition_1 = padding ~= nil
39
+ if _condition_1 then
40
+ local _attributes_1 = table.clone(styles.padding)
41
+ setmetatable(_attributes_1, nil)
42
+ _condition_1 = React.createElement("uipadding", _attributes_1)
43
+ end
44
+ return React.createElement("frame", _attributes, _condition_1, children)
45
+ end
46
+ local default = Box
47
+ return {
48
+ default = default,
49
+ }
@@ -0,0 +1,7 @@
1
+ import { BoxPad } from "./boxPad";
2
+ export type BoxBg = "transparent" | "paper" | "elevated" | "input";
3
+ declare const useBoxStyles: (props: {
4
+ padding?: BoxPad;
5
+ bgcolor?: BoxBg;
6
+ }) => import("../../../../theme/index").ClassNameMap<string>;
7
+ export default useBoxStyles;
@@ -0,0 +1,34 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local componentStyles = _theme.componentStyles
5
+ local createStyles = _theme.createStyles
6
+ local boxPadSides = TS.import(script, script.Parent, "boxPad").boxPadSides
7
+ local useBoxStyles = componentStyles("Box", function(theme, _param)
8
+ local padding = _param.padding
9
+ local bgcolor = _param.bgcolor
10
+ if bgcolor == nil then
11
+ bgcolor = "transparent"
12
+ end
13
+ local sides = boxPadSides(padding)
14
+ local fill = if bgcolor == "paper" then theme.palette.surface.paper elseif bgcolor == "elevated" then theme.palette.surface.elevated elseif bgcolor == "input" then theme.palette.surface.input else theme.palette.surface.paper
15
+ return createStyles({
16
+ root = {
17
+ AutomaticSize = Enum.AutomaticSize.XY,
18
+ Size = UDim2.fromScale(0, 0),
19
+ BackgroundColor3 = fill,
20
+ BackgroundTransparency = if bgcolor == "transparent" then 1 else 0,
21
+ BorderSizePixel = 0,
22
+ },
23
+ padding = {
24
+ PaddingTop = UDim.new(0, theme.spacing.calc(sides.top)),
25
+ PaddingRight = UDim.new(0, theme.spacing.calc(sides.right)),
26
+ PaddingBottom = UDim.new(0, theme.spacing.calc(sides.bottom)),
27
+ PaddingLeft = UDim.new(0, theme.spacing.calc(sides.left)),
28
+ },
29
+ })
30
+ end)
31
+ local default = useBoxStyles
32
+ return {
33
+ default = default,
34
+ }
@@ -0,0 +1,10 @@
1
+ import React from "@rbxts/react";
2
+ import { CustomizedProps } from "../../../../theme/index";
3
+ import { ContainerMaxWidth } from "./containerWidth";
4
+ export interface ContainerProps {
5
+ maxWidth?: ContainerMaxWidth;
6
+ disableGutters?: boolean;
7
+ children?: React.ReactNode;
8
+ }
9
+ declare function Container(props: CustomizedProps<Frame, ContainerProps>): JSX.Element;
10
+ export default Container;
@@ -0,0 +1,54 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
+ local useContainerStyles = TS.import(script, script.Parent, "Container.styles").default
5
+ local function Container(props)
6
+ local _binding = props
7
+ local maxWidth = _binding.maxWidth
8
+ local disableGutters = _binding.disableGutters
9
+ local children = _binding.children
10
+ local className = _binding.className
11
+ local sx = _binding.sx
12
+ local id = _binding.id
13
+ local ref = _binding.ref
14
+ local styles = useContainerStyles({
15
+ maxWidth = maxWidth,
16
+ disableGutters = disableGutters,
17
+ })
18
+ local _attributes = {}
19
+ local _condition = id
20
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
21
+ _condition = "Container"
22
+ end
23
+ _attributes.key = _condition
24
+ _attributes.ref = ref
25
+ for _k, _v in styles.root do
26
+ _attributes[_k] = _v
27
+ end
28
+ if className then
29
+ for _k, _v in className do
30
+ _attributes[_k] = _v
31
+ end
32
+ end
33
+ if sx then
34
+ for _k, _v in sx do
35
+ _attributes[_k] = _v
36
+ end
37
+ end
38
+ local _attributes_1 = {
39
+ key = "Inner",
40
+ }
41
+ for _k, _v in styles.inner do
42
+ _attributes_1[_k] = _v
43
+ end
44
+ local _attributes_2 = table.clone(styles.constraint)
45
+ setmetatable(_attributes_2, nil)
46
+ local _exp = React.createElement("uisizeconstraint", _attributes_2)
47
+ local _attributes_3 = table.clone(styles.gutter)
48
+ setmetatable(_attributes_3, nil)
49
+ return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, React.createElement("uipadding", _attributes_3), children))
50
+ end
51
+ local default = Container
52
+ return {
53
+ default = default,
54
+ }
@@ -0,0 +1,6 @@
1
+ import { ContainerMaxWidth } from "./containerWidth";
2
+ declare const useContainerStyles: (props: {
3
+ maxWidth?: ContainerMaxWidth;
4
+ disableGutters?: boolean;
5
+ }) => import("../../../../theme/index").ClassNameMap<string>;
6
+ export default useContainerStyles;
@@ -0,0 +1,41 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local componentStyles = _theme.componentStyles
5
+ local createStyles = _theme.createStyles
6
+ local containerMaxPx = TS.import(script, script.Parent, "containerWidth").containerMaxPx
7
+ local useContainerStyles = componentStyles("Container", function(theme, _param)
8
+ local maxWidth = _param.maxWidth
9
+ local disableGutters = _param.disableGutters
10
+ local maxPx = containerMaxPx(maxWidth)
11
+ local gutter = theme.spacing.calc(2)
12
+ return createStyles({
13
+ root = {
14
+ AutomaticSize = Enum.AutomaticSize.Y,
15
+ Size = UDim2.new(1, 0, 0, 0),
16
+ BackgroundTransparency = 1,
17
+ BorderSizePixel = 0,
18
+ },
19
+ inner = {
20
+ AutomaticSize = Enum.AutomaticSize.Y,
21
+ Size = UDim2.new(1, 0, 0, 0),
22
+ Position = UDim2.new(0.5, 0, 0, 0),
23
+ AnchorPoint = Vector2.new(0.5, 0),
24
+ BackgroundTransparency = 1,
25
+ BorderSizePixel = 0,
26
+ },
27
+ constraint = {
28
+ MaxSize = if maxPx ~= nil then Vector2.new(maxPx, math.huge) else Vector2.new(math.huge, math.huge),
29
+ },
30
+ gutter = {
31
+ PaddingTop = UDim.new(0, 0),
32
+ PaddingBottom = UDim.new(0, 0),
33
+ PaddingLeft = UDim.new(0, if disableGutters == true then 0 else gutter),
34
+ PaddingRight = UDim.new(0, if disableGutters == true then 0 else gutter),
35
+ },
36
+ })
37
+ end)
38
+ local default = useContainerStyles
39
+ return {
40
+ default = default,
41
+ }
@@ -0,0 +1,12 @@
1
+ import React from "@rbxts/react";
2
+ import { CustomizedProps } from "../../../../theme/index";
3
+ import { FlexItemAlign } from "./flexItemMode";
4
+ export interface FlexItemProps {
5
+ grow?: number;
6
+ shrink?: number;
7
+ fill?: boolean;
8
+ alignSelf?: FlexItemAlign;
9
+ children?: React.ReactNode;
10
+ }
11
+ declare function FlexItem(props: CustomizedProps<Frame, FlexItemProps>): JSX.Element;
12
+ export default FlexItem;
@@ -0,0 +1,49 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
+ local useFlexItemStyles = TS.import(script, script.Parent, "FlexItem.styles").default
5
+ local function FlexItem(props)
6
+ local _binding = props
7
+ local grow = _binding.grow
8
+ local shrink = _binding.shrink
9
+ local fill = _binding.fill
10
+ local alignSelf = _binding.alignSelf
11
+ local children = _binding.children
12
+ local className = _binding.className
13
+ local sx = _binding.sx
14
+ local id = _binding.id
15
+ local ref = _binding.ref
16
+ local styles = useFlexItemStyles({
17
+ grow = grow,
18
+ shrink = shrink,
19
+ fill = fill,
20
+ alignSelf = alignSelf,
21
+ })
22
+ local _attributes = {}
23
+ local _condition = id
24
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
25
+ _condition = "FlexItem"
26
+ end
27
+ _attributes.key = _condition
28
+ _attributes.ref = ref
29
+ for _k, _v in styles.root do
30
+ _attributes[_k] = _v
31
+ end
32
+ if className then
33
+ for _k, _v in className do
34
+ _attributes[_k] = _v
35
+ end
36
+ end
37
+ if sx then
38
+ for _k, _v in sx do
39
+ _attributes[_k] = _v
40
+ end
41
+ end
42
+ local _attributes_1 = table.clone(styles.flex)
43
+ setmetatable(_attributes_1, nil)
44
+ return React.createElement("frame", _attributes, React.createElement("uiflexitem", _attributes_1), children)
45
+ end
46
+ local default = FlexItem
47
+ return {
48
+ default = default,
49
+ }
@@ -0,0 +1,8 @@
1
+ import { FlexItemAlign } from "./flexItemMode";
2
+ declare const useFlexItemStyles: (props: {
3
+ grow?: number;
4
+ shrink?: number;
5
+ fill?: boolean;
6
+ alignSelf?: FlexItemAlign;
7
+ }) => import("../../../../theme/index").ClassNameMap<string>;
8
+ export default useFlexItemStyles;
@@ -0,0 +1,66 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local componentStyles = _theme.componentStyles
5
+ local createStyles = _theme.createStyles
6
+ local _flexItemMode = TS.import(script, script.Parent, "flexItemMode")
7
+ local flexItemAlignKey = _flexItemMode.flexItemAlignKey
8
+ local flexItemGrowRatio = _flexItemMode.flexItemGrowRatio
9
+ local flexItemMode = _flexItemMode.flexItemMode
10
+ local flexItemShrinkRatio = _flexItemMode.flexItemShrinkRatio
11
+ local function modeEnum(mode)
12
+ if mode == "grow" then
13
+ return Enum.UIFlexMode.Grow
14
+ end
15
+ if mode == "shrink" then
16
+ return Enum.UIFlexMode.Shrink
17
+ end
18
+ if mode == "fill" then
19
+ return Enum.UIFlexMode.Fill
20
+ end
21
+ if mode == "custom" then
22
+ return Enum.UIFlexMode.Custom
23
+ end
24
+ return Enum.UIFlexMode.None
25
+ end
26
+ local function alignEnum(align)
27
+ if align == "start" then
28
+ return Enum.ItemLineAlignment.Start
29
+ end
30
+ if align == "center" then
31
+ return Enum.ItemLineAlignment.Center
32
+ end
33
+ if align == "end" then
34
+ return Enum.ItemLineAlignment.End
35
+ end
36
+ if align == "stretch" then
37
+ return Enum.ItemLineAlignment.Stretch
38
+ end
39
+ return Enum.ItemLineAlignment.Automatic
40
+ end
41
+ local useFlexItemStyles = componentStyles("FlexItem", function(_, _param)
42
+ local grow = _param.grow
43
+ local shrink = _param.shrink
44
+ local fill = _param.fill
45
+ local alignSelf = _param.alignSelf
46
+ local mode = flexItemMode(grow, shrink, fill)
47
+ local align = flexItemAlignKey(alignSelf)
48
+ return createStyles({
49
+ root = {
50
+ AutomaticSize = Enum.AutomaticSize.XY,
51
+ Size = UDim2.fromScale(0, 0),
52
+ BackgroundTransparency = 1,
53
+ BorderSizePixel = 0,
54
+ },
55
+ flex = {
56
+ FlexMode = modeEnum(mode),
57
+ GrowRatio = flexItemGrowRatio(grow),
58
+ ShrinkRatio = flexItemShrinkRatio(shrink),
59
+ ItemLineAlignment = alignEnum(align),
60
+ },
61
+ })
62
+ end)
63
+ local default = useFlexItemStyles
64
+ return {
65
+ default = default,
66
+ }
@@ -1,11 +1,15 @@
1
1
  import { CustomizedProps } from "../../../../theme/index";
2
+ import { GridCorner } from "./gridProps";
2
3
  export interface GridProps {
3
4
  cellPadding?: UDim2;
4
5
  cellSize?: UDim2;
6
+ gap?: number;
7
+ columns?: number;
8
+ maxColumns?: number;
5
9
  fillDirection?: Enum.FillDirection;
6
10
  fillDirectionMaxCells?: number;
7
11
  sortOrder?: Enum.SortOrder;
8
- startCorner: Enum.StartCorner;
12
+ startCorner?: Enum.StartCorner | GridCorner;
9
13
  horizontalAlignment?: Enum.HorizontalAlignment;
10
14
  verticalAlignment?: Enum.VerticalAlignment;
11
15
  }