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

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 (230) hide show
  1. package/README.md +0 -2
  2. package/out/theme/constants/NumberConstants.d.ts +0 -2
  3. package/out/theme/constants/NumberConstants.luau +0 -3
  4. package/out/theme/interfaces/spacing/Shape.d.ts +0 -3
  5. package/out/theme/interfaces/typography/FontSizes.d.ts +1 -1
  6. package/out/theme/interfaces/typography/FontSizes.luau +8 -15
  7. package/out/theme/interfaces/typography/ThemeTypography.d.ts +0 -3
  8. package/out/theme/interfaces/typography/Variants.d.ts +15 -14
  9. package/out/theme/interfaces/typography/Variants.luau +18 -68
  10. package/out/theme/themes/DarkTheme.luau +0 -4
  11. package/out/theme/themes/LightTheme.luau +0 -4
  12. package/out/ui/packages/accordion/components/Accordion.d.ts +0 -1
  13. package/out/ui/packages/accordion/components/Accordion.luau +6 -22
  14. package/out/ui/packages/accordion/components/Accordion.styles.d.ts +0 -1
  15. package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -16
  16. package/out/ui/packages/accordion/components/accordionOpen.d.ts +0 -1
  17. package/out/ui/packages/accordion/components/accordionOpen.luau +0 -4
  18. package/out/ui/packages/alert/components/Alert.d.ts +0 -1
  19. package/out/ui/packages/alert/components/Alert.luau +27 -36
  20. package/out/ui/packages/alert/components/Alert.styles.d.ts +0 -2
  21. package/out/ui/packages/alert/components/Alert.styles.luau +8 -17
  22. package/out/ui/packages/appBar/components/AppBar.d.ts +1 -2
  23. package/out/ui/packages/appBar/components/AppBar.luau +0 -5
  24. package/out/ui/packages/appBar/components/AppBar.styles.d.ts +0 -2
  25. package/out/ui/packages/appBar/components/AppBar.styles.luau +2 -6
  26. package/out/ui/packages/autocomplete/components/Autocomplete.luau +0 -8
  27. package/out/ui/packages/avatar/components/Avatar.d.ts +0 -2
  28. package/out/ui/packages/avatar/components/Avatar.luau +12 -20
  29. package/out/ui/packages/avatar/components/Avatar.styles.d.ts +0 -2
  30. package/out/ui/packages/avatar/components/Avatar.styles.luau +1 -5
  31. package/out/ui/packages/badge/components/Badge.d.ts +0 -3
  32. package/out/ui/packages/badge/components/Badge.luau +8 -23
  33. package/out/ui/packages/badge/components/Badge.styles.d.ts +1 -5
  34. package/out/ui/packages/badge/components/Badge.styles.luau +8 -20
  35. package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +0 -1
  36. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +2 -8
  37. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +1 -3
  38. package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +2 -6
  39. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +0 -1
  40. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +24 -58
  41. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +0 -9
  42. package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +0 -68
  43. package/out/ui/packages/breadcrumbs/index.d.ts +0 -1
  44. package/out/ui/packages/breadcrumbs/init.luau +0 -3
  45. package/out/ui/packages/brickColorPicker/components/brickColorCatalog.luau +1 -1
  46. package/out/ui/packages/button/components/Button.luau +5 -9
  47. package/out/ui/packages/card/components/Card.d.ts +0 -1
  48. package/out/ui/packages/card/components/Card.luau +0 -2
  49. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
  50. package/out/ui/packages/chip/components/Chip.d.ts +1 -6
  51. package/out/ui/packages/chip/components/Chip.luau +2 -49
  52. package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -6
  53. package/out/ui/packages/chip/components/Chip.styles.luau +10 -55
  54. package/out/ui/packages/circularProgress/components/CircularProgress.luau +2 -13
  55. package/out/ui/packages/dialog/components/Dialog.d.ts +1 -1
  56. package/out/ui/packages/dialog/components/Dialog.luau +18 -27
  57. package/out/ui/packages/divider/components/Divider.d.ts +0 -1
  58. package/out/ui/packages/divider/components/Divider.luau +0 -48
  59. package/out/ui/packages/divider/components/Divider.styles.luau +0 -29
  60. package/out/ui/packages/drawer/components/Drawer.d.ts +0 -1
  61. package/out/ui/packages/drawer/components/Drawer.luau +1 -4
  62. package/out/ui/packages/drawer/components/Drawer.styles.d.ts +1 -3
  63. package/out/ui/packages/drawer/components/Drawer.styles.luau +2 -3
  64. package/out/ui/packages/fab/components/Fab.d.ts +0 -3
  65. package/out/ui/packages/fab/components/Fab.luau +25 -62
  66. package/out/ui/packages/fab/components/Fab.styles.d.ts +0 -3
  67. package/out/ui/packages/fab/components/Fab.styles.luau +3 -33
  68. package/out/ui/packages/fab/components/fabSize.d.ts +0 -1
  69. package/out/ui/packages/fab/components/fabSize.luau +0 -4
  70. package/out/ui/packages/fab/index.d.ts +1 -1
  71. package/out/ui/packages/fab/init.luau +0 -1
  72. package/out/ui/packages/iconButton/components/IconButton.luau +2 -7
  73. package/out/ui/packages/iconButton/components/IconButton.styles.luau +0 -3
  74. package/out/ui/packages/index.d.ts +0 -7
  75. package/out/ui/packages/init.luau +0 -21
  76. package/out/ui/packages/input/components/Input.luau +1 -1
  77. package/out/ui/packages/layout/components/Grid.d.ts +1 -1
  78. package/out/ui/packages/layout/index.d.ts +0 -10
  79. package/out/ui/packages/layout/init.luau +0 -4
  80. package/out/ui/packages/listItem/components/ListItem.d.ts +0 -1
  81. package/out/ui/packages/listItem/components/ListItem.luau +0 -5
  82. package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
  83. package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -10
  84. package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +0 -2
  85. package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +19 -23
  86. package/out/ui/packages/menu/components/Menu.d.ts +0 -5
  87. package/out/ui/packages/menu/components/Menu.luau +23 -54
  88. package/out/ui/packages/menu/components/Menu.styles.luau +1 -5
  89. package/out/ui/packages/modal/components/Modal.d.ts +1 -1
  90. package/out/ui/packages/modal/components/Modal.luau +37 -55
  91. package/out/ui/packages/motion/index.d.ts +1 -1
  92. package/out/ui/packages/motion/init.luau +0 -1
  93. package/out/ui/packages/motion/unit.d.ts +0 -5
  94. package/out/ui/packages/motion/unit.luau +0 -23
  95. package/out/ui/packages/pagination/components/Pagination.d.ts +1 -4
  96. package/out/ui/packages/pagination/components/Pagination.luau +22 -41
  97. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +1 -4
  98. package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -19
  99. package/out/ui/packages/pagination/components/pageRange.d.ts +1 -2
  100. package/out/ui/packages/pagination/components/pageRange.luau +8 -91
  101. package/out/ui/packages/pagination/index.d.ts +0 -1
  102. package/out/ui/packages/pagination/init.luau +0 -1
  103. package/out/ui/packages/paper/components/Paper.d.ts +1 -2
  104. package/out/ui/packages/paper/components/Paper.luau +3 -14
  105. package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
  106. package/out/ui/packages/paper/components/Paper.styles.luau +0 -6
  107. package/out/ui/packages/popup/index.d.ts +0 -1
  108. package/out/ui/packages/popup/init.luau +0 -1
  109. package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +0 -1
  110. package/out/ui/packages/radioGroup/components/RadioGroup.luau +2 -4
  111. package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +0 -1
  112. package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +1 -4
  113. package/out/ui/packages/select/components/Select.d.ts +0 -5
  114. package/out/ui/packages/select/components/Select.luau +24 -48
  115. package/out/ui/packages/select/components/Select.styles.luau +1 -1
  116. package/out/ui/packages/skeleton/components/Skeleton.luau +2 -3
  117. package/out/ui/packages/skeleton/components/Skeleton.styles.luau +2 -7
  118. package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
  119. package/out/ui/packages/slider/components/Slider.d.ts +0 -1
  120. package/out/ui/packages/slider/components/Slider.luau +1 -24
  121. package/out/ui/packages/slider/components/Slider.styles.luau +0 -8
  122. package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
  123. package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
  124. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  125. package/out/ui/packages/stateMatrix.d.ts +0 -2
  126. package/out/ui/packages/stateMatrix.luau +221 -746
  127. package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
  128. package/out/ui/packages/stepper/components/Stepper.luau +1 -7
  129. package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
  130. package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
  131. package/out/ui/packages/switch/components/Switch.d.ts +0 -2
  132. package/out/ui/packages/switch/components/Switch.luau +0 -5
  133. package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
  134. package/out/ui/packages/switch/components/Switch.styles.luau +2 -7
  135. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  136. package/out/ui/packages/table/components/Table.d.ts +0 -1
  137. package/out/ui/packages/table/components/Table.luau +1 -4
  138. package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
  139. package/out/ui/packages/table/components/Table.styles.luau +6 -10
  140. package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
  141. package/out/ui/packages/tabs/components/Tabs.luau +3 -12
  142. package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
  143. package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
  144. package/out/ui/packages/tabs/index.d.ts +0 -1
  145. package/out/ui/packages/tabs/init.luau +0 -1
  146. package/out/ui/packages/toast/components/Toast.d.ts +0 -2
  147. package/out/ui/packages/toast/components/Toast.luau +1 -26
  148. package/out/ui/packages/toast/components/Toast.styles.luau +4 -22
  149. package/out/ui/packages/typography/components/Typography.styles.luau +5 -4
  150. package/out/ui/packages/virtualList/index.d.ts +0 -2
  151. package/out/ui/packages/virtualList/init.luau +0 -1
  152. package/package.json +2 -2
  153. package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
  154. package/out/ui/packages/backdrop/components/Backdrop.luau +0 -58
  155. package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
  156. package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
  157. package/out/ui/packages/backdrop/index.d.ts +0 -2
  158. package/out/ui/packages/backdrop/init.luau +0 -5
  159. package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
  160. package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
  161. package/out/ui/packages/formText/components/FormHelperText.d.ts +0 -8
  162. package/out/ui/packages/formText/components/FormHelperText.luau +0 -44
  163. package/out/ui/packages/formText/components/FormLabel.d.ts +0 -9
  164. package/out/ui/packages/formText/components/FormLabel.luau +0 -46
  165. package/out/ui/packages/formText/components/FormText.styles.d.ts +0 -5
  166. package/out/ui/packages/formText/components/FormText.styles.luau +0 -33
  167. package/out/ui/packages/formText/index.d.ts +0 -4
  168. package/out/ui/packages/formText/init.luau +0 -6
  169. package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
  170. package/out/ui/packages/imageList/components/ImageList.luau +0 -100
  171. package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
  172. package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
  173. package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
  174. package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
  175. package/out/ui/packages/imageList/index.d.ts +0 -2
  176. package/out/ui/packages/imageList/init.luau +0 -5
  177. package/out/ui/packages/layout/components/Box.d.ts +0 -11
  178. package/out/ui/packages/layout/components/Box.luau +0 -49
  179. package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
  180. package/out/ui/packages/layout/components/Box.styles.luau +0 -34
  181. package/out/ui/packages/layout/components/Container.d.ts +0 -10
  182. package/out/ui/packages/layout/components/Container.luau +0 -54
  183. package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
  184. package/out/ui/packages/layout/components/Container.styles.luau +0 -41
  185. package/out/ui/packages/layout/components/Stack.d.ts +0 -12
  186. package/out/ui/packages/layout/components/Stack.luau +0 -49
  187. package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -8
  188. package/out/ui/packages/layout/components/Stack.styles.luau +0 -72
  189. package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
  190. package/out/ui/packages/layout/components/boxPad.luau +0 -59
  191. package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
  192. package/out/ui/packages/layout/components/containerWidth.luau +0 -17
  193. package/out/ui/packages/layout/components/stackAlign.d.ts +0 -8
  194. package/out/ui/packages/layout/components/stackAlign.luau +0 -29
  195. package/out/ui/packages/link/components/Link.d.ts +0 -11
  196. package/out/ui/packages/link/components/Link.luau +0 -83
  197. package/out/ui/packages/link/components/Link.styles.d.ts +0 -8
  198. package/out/ui/packages/link/components/Link.styles.luau +0 -59
  199. package/out/ui/packages/link/index.d.ts +0 -3
  200. package/out/ui/packages/link/init.luau +0 -5
  201. package/out/ui/packages/rating/components/Rating.d.ts +0 -11
  202. package/out/ui/packages/rating/components/Rating.luau +0 -101
  203. package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -6
  204. package/out/ui/packages/rating/components/Rating.styles.luau +0 -44
  205. package/out/ui/packages/rating/index.d.ts +0 -2
  206. package/out/ui/packages/rating/init.luau +0 -5
  207. package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
  208. package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
  209. package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
  210. package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
  211. package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
  212. package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
  213. package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -19
  214. package/out/ui/packages/speedDial/components/SpeedDial.luau +0 -101
  215. package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +0 -5
  216. package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +0 -31
  217. package/out/ui/packages/speedDial/index.d.ts +0 -3
  218. package/out/ui/packages/speedDial/init.luau +0 -5
  219. package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
  220. package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
  221. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +0 -19
  222. package/out/ui/packages/toggleButton/components/ToggleButton.luau +0 -135
  223. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -7
  224. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +0 -65
  225. package/out/ui/packages/toggleButton/index.d.ts +0 -2
  226. package/out/ui/packages/toggleButton/init.luau +0 -7
  227. package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +0 -6
  228. package/out/ui/packages/virtualList/components/EmptyListHint.luau +0 -32
  229. package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +0 -5
  230. package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +0 -26
@@ -9,19 +9,12 @@ local useFabStyles = componentStyles("Fab", function(theme, _param)
9
9
  if size == nil then
10
10
  size = "medium"
11
11
  end
12
- local color = _param.color
13
- if color == nil then
14
- color = "primary"
15
- end
16
12
  local disabled = _param.disabled
17
- local extended = _param.extended
18
13
  local diameter = fabPixels(size)
19
- local tone = if color == "accent" then theme.palette.accent else theme.palette.primary
20
14
  return createStyles({
21
15
  root = {
22
- Size = if extended == true then UDim2.new(0, 0, 0, diameter) else UDim2.fromOffset(diameter, diameter),
23
- AutomaticSize = if extended == true then Enum.AutomaticSize.X else Enum.AutomaticSize.None,
24
- BackgroundColor3 = tone.main,
16
+ Size = UDim2.fromOffset(diameter, diameter),
17
+ BackgroundColor3 = theme.palette.primary.main,
25
18
  BackgroundTransparency = if disabled then 0.5 else 0,
26
19
  BorderSizePixel = 0,
27
20
  AutoButtonColor = false,
@@ -31,36 +24,13 @@ local useFabStyles = componentStyles("Fab", function(theme, _param)
31
24
  corner = {
32
25
  CornerRadius = UDim.new(1, 0),
33
26
  },
34
- padding = {
35
- PaddingLeft = UDim.new(0, theme.padding.calc(2)),
36
- PaddingRight = UDim.new(0, theme.padding.calc(2.5)),
37
- },
38
- row = {
39
- FillDirection = Enum.FillDirection.Horizontal,
40
- VerticalAlignment = Enum.VerticalAlignment.Center,
41
- HorizontalAlignment = Enum.HorizontalAlignment.Center,
42
- SortOrder = Enum.SortOrder.LayoutOrder,
43
- Padding = UDim.new(0, theme.padding.calc(1)),
44
- },
45
27
  icon = {
46
28
  Size = UDim2.fromScale(1, 1),
47
29
  BackgroundTransparency = 1,
48
30
  BorderSizePixel = 0,
49
31
  ScaleType = Enum.ScaleType.Fit,
50
- ImageColor3 = tone.on,
32
+ ImageColor3 = theme.palette.primary.on,
51
33
  ImageTransparency = if disabled then 0.5 else 0,
52
- LayoutOrder = 1,
53
- },
54
- label = {
55
- AutomaticSize = Enum.AutomaticSize.XY,
56
- Size = UDim2.fromScale(0, 0),
57
- BackgroundTransparency = 1,
58
- BorderSizePixel = 0,
59
- Font = theme.typography.fontFamilies.default,
60
- TextSize = theme.typography.fontSizes.body,
61
- TextColor3 = tone.on,
62
- TextTransparency = if disabled then 0.5 else 0,
63
- LayoutOrder = 2,
64
34
  },
65
35
  })
66
36
  end)
@@ -1,4 +1,3 @@
1
1
  export type FabSize = "small" | "medium" | "large";
2
2
  export declare function fabPixels(size?: FabSize): 40 | 64 | 56;
3
3
  export declare function fabIconPixels(size?: FabSize): 18 | 24 | 28;
4
- export declare function fabExtended(label?: string): boolean;
@@ -23,11 +23,7 @@ local function fabIconPixels(size)
23
23
  end
24
24
  return 24
25
25
  end
26
- local function fabExtended(label)
27
- return label ~= nil and label ~= ""
28
- end
29
26
  return {
30
27
  fabPixels = fabPixels,
31
28
  fabIconPixels = fabIconPixels,
32
- fabExtended = fabExtended,
33
29
  }
@@ -1,3 +1,3 @@
1
1
  export { default as Fab } from "./components/Fab";
2
2
  export { FabProps } from "./components/Fab";
3
- export { FabSize, fabPixels, fabIconPixels, fabExtended } from "./components/fabSize";
3
+ export { FabSize, fabPixels, fabIconPixels } from "./components/fabSize";
@@ -5,5 +5,4 @@ exports.Fab = TS.import(script, script, "components", "Fab").default
5
5
  local _fabSize = TS.import(script, script, "components", "fabSize")
6
6
  exports.fabPixels = _fabSize.fabPixels
7
7
  exports.fabIconPixels = _fabSize.fabIconPixels
8
- exports.fabExtended = _fabSize.fabExtended
9
8
  return exports
@@ -4,7 +4,6 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local React = _react
5
5
  local useEffect = _react.useEffect
6
6
  local useState = _react.useState
7
- local useReducedMotion = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "hooks").useReducedMotion
8
7
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
9
8
  local iconSpinnerPixels = TS.import(script, script.Parent.Parent.Parent, "button", "components", "buttonLook").iconSpinnerPixels
10
9
  local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
@@ -19,7 +18,7 @@ local function IconButton(props)
19
18
  if loading == nil then
20
19
  loading = false
21
20
  end
22
- local reducedProp = _binding.reducedMotion
21
+ local reducedMotion = _binding.reducedMotion
23
22
  local onClick = _binding.onClick
24
23
  local className = _binding.className
25
24
  local sx = _binding.sx
@@ -27,8 +26,6 @@ local function IconButton(props)
27
26
  local ref = _binding.ref
28
27
  local _binding_1 = useIconButtonStyles(props)
29
28
  local container = _binding_1.container
30
- local corner = _binding_1.corner
31
- local reducedMotion = useReducedMotion(reducedProp)
32
29
  local active = canActivate(disabled, loading)
33
30
  local hovering, setHovering = useState(false)
34
31
  local focused, setFocused = useState(false)
@@ -89,9 +86,7 @@ local function IconButton(props)
89
86
  return setFocused(false)
90
87
  end,
91
88
  }
92
- local _attributes_1 = table.clone(corner)
93
- setmetatable(_attributes_1, nil)
94
- return React.createElement("imagebutton", _attributes, React.createElement("uicorner", _attributes_1), loading and (React.createElement(CircularProgress, {
89
+ return React.createElement("imagebutton", _attributes, loading and (React.createElement(CircularProgress, {
95
90
  size = iconSpinnerPixels(props.size),
96
91
  thickness = 2,
97
92
  color = tint,
@@ -39,9 +39,6 @@ local useIconButtonStyles = componentStyles("IconButton", function(theme, props)
39
39
  ScaleType = Enum.ScaleType.Fit,
40
40
  ZIndex = 12000,
41
41
  },
42
- corner = {
43
- CornerRadius = UDim.new(0, theme.shape.borderRadius),
44
- },
45
42
  })
46
43
  end)
47
44
  local default = useIconButtonStyles
@@ -3,10 +3,8 @@ 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";
7
6
  export * from "./iconButton/index";
8
7
  export * from "./input/index";
9
- export * from "./formText/index";
10
8
  export * from "./layout/index";
11
9
  export * from "./preloader/index";
12
10
  export * from "./progressBar/index";
@@ -32,7 +30,6 @@ export * from "./cframeEditor/index";
32
30
  export * from "./enumPicker/index";
33
31
  export * from "./popup/index";
34
32
  export * from "./modal/index";
35
- export * from "./backdrop/index";
36
33
  export * from "./dialog/index";
37
34
  export * from "./paper/index";
38
35
  export * from "./card/index";
@@ -51,13 +48,9 @@ export * from "./snackbar/index";
51
48
  export * from "./table/index";
52
49
  export * from "./autocomplete/index";
53
50
  export * from "./fab/index";
54
- export * from "./speedDial/index";
55
51
  export * from "./appBar/index";
56
52
  export * from "./bottomNavigation/index";
57
53
  export * from "./alert/index";
58
- export * from "./toggleButton/index";
59
- export * from "./link/index";
60
- export * from "./rating/index";
61
54
  export * from "./listItem/index";
62
55
  export * from "./menu/index";
63
56
  export * from "./motion/index";
@@ -16,18 +16,12 @@ 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
22
19
  for _k, _v in TS.import(script, script, "iconButton") or {} do
23
20
  exports[_k] = _v
24
21
  end
25
22
  for _k, _v in TS.import(script, script, "input") or {} do
26
23
  exports[_k] = _v
27
24
  end
28
- for _k, _v in TS.import(script, script, "formText") or {} do
29
- exports[_k] = _v
30
- end
31
25
  for _k, _v in TS.import(script, script, "layout") or {} do
32
26
  exports[_k] = _v
33
27
  end
@@ -103,9 +97,6 @@ end
103
97
  for _k, _v in TS.import(script, script, "modal") or {} do
104
98
  exports[_k] = _v
105
99
  end
106
- for _k, _v in TS.import(script, script, "backdrop") or {} do
107
- exports[_k] = _v
108
- end
109
100
  for _k, _v in TS.import(script, script, "dialog") or {} do
110
101
  exports[_k] = _v
111
102
  end
@@ -160,9 +151,6 @@ end
160
151
  for _k, _v in TS.import(script, script, "fab") or {} do
161
152
  exports[_k] = _v
162
153
  end
163
- for _k, _v in TS.import(script, script, "speedDial") or {} do
164
- exports[_k] = _v
165
- end
166
154
  for _k, _v in TS.import(script, script, "appBar") or {} do
167
155
  exports[_k] = _v
168
156
  end
@@ -172,15 +160,6 @@ end
172
160
  for _k, _v in TS.import(script, script, "alert") or {} do
173
161
  exports[_k] = _v
174
162
  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
184
163
  for _k, _v in TS.import(script, script, "listItem") or {} do
185
164
  exports[_k] = _v
186
165
  end
@@ -46,7 +46,7 @@ local function Input(props)
46
46
  end
47
47
  local rounded = _binding.rounded
48
48
  if rounded == nil then
49
- rounded = true
49
+ rounded = false
50
50
  end
51
51
  local size = _binding.size
52
52
  local reducedMotion = _binding.reducedMotion
@@ -5,7 +5,7 @@ export interface GridProps {
5
5
  fillDirection?: Enum.FillDirection;
6
6
  fillDirectionMaxCells?: number;
7
7
  sortOrder?: Enum.SortOrder;
8
- startCorner?: Enum.StartCorner;
8
+ startCorner: Enum.StartCorner;
9
9
  horizontalAlignment?: Enum.HorizontalAlignment;
10
10
  verticalAlignment?: Enum.VerticalAlignment;
11
11
  }
@@ -4,13 +4,3 @@ export * from "./components/Grid";
4
4
  export { default as List } from "./components/List";
5
5
  export { ListProps } from "./components/List";
6
6
  export * from "./components/List";
7
- export { default as Stack } from "./components/Stack";
8
- export { StackProps } from "./components/Stack";
9
- export { StackAlign, StackDirection, StackJustify } from "./components/stackAlign";
10
- export { default as Box } from "./components/Box";
11
- export { BoxProps } from "./components/Box";
12
- export { BoxPad } from "./components/boxPad";
13
- export { BoxBg } from "./components/Box.styles";
14
- export { default as Container } from "./components/Container";
15
- export { ContainerProps } from "./components/Container";
16
- export { ContainerMaxWidth, containerMaxPx } from "./components/containerWidth";
@@ -9,8 +9,4 @@ exports.List = TS.import(script, script, "components", "List").default
9
9
  for _k, _v in TS.import(script, script, "components", "List") or {} do
10
10
  exports[_k] = _v
11
11
  end
12
- exports.Stack = TS.import(script, script, "components", "Stack").default
13
- exports.Box = TS.import(script, script, "components", "Box").default
14
- exports.Container = TS.import(script, script, "components", "Container").default
15
- exports.containerMaxPx = TS.import(script, script, "components", "containerWidth").containerMaxPx
16
12
  return exports
@@ -3,7 +3,6 @@ export interface ListItemProps {
3
3
  secondary?: string;
4
4
  selected?: boolean;
5
5
  disabled?: boolean;
6
- dense?: boolean;
7
6
  onActivated?: () => void;
8
7
  }
9
8
  declare function ListItem(props: ListItemProps): JSX.Element;
@@ -14,15 +14,10 @@ local function ListItem(props)
14
14
  if disabled == nil then
15
15
  disabled = false
16
16
  end
17
- local dense = _binding.dense
18
- if dense == nil then
19
- dense = false
20
- end
21
17
  local onActivated = _binding.onActivated
22
18
  local styles = useListItemStyles({
23
19
  selected = selected,
24
20
  disabled = disabled,
25
- dense = dense,
26
21
  })
27
22
  local _attributes = {
28
23
  key = "ListItem",
@@ -1,6 +1,5 @@
1
1
  declare const useListItemStyles: (props: {
2
2
  selected?: boolean;
3
3
  disabled?: boolean;
4
- dense?: boolean;
5
4
  }) => import("../../../../theme/index").ClassNameMap<string>;
6
5
  export default useListItemStyles;
@@ -12,11 +12,6 @@ local useListItemStyles = componentStyles("ListItem", function(theme, _param)
12
12
  if disabled == nil then
13
13
  disabled = false
14
14
  end
15
- local dense = _param.dense
16
- if dense == nil then
17
- dense = false
18
- end
19
- local pad = theme.padding.calc(if dense == true then 0.5 else 1)
20
15
  return createStyles({
21
16
  root = {
22
17
  Size = UDim2.new(1, 0, 0, 0),
@@ -30,10 +25,10 @@ local useListItemStyles = componentStyles("ListItem", function(theme, _param)
30
25
  Selectable = not disabled,
31
26
  },
32
27
  padding = {
33
- PaddingTop = UDim.new(0, pad),
34
- PaddingBottom = UDim.new(0, pad),
35
- PaddingLeft = UDim.new(0, pad),
36
- PaddingRight = UDim.new(0, pad),
28
+ PaddingTop = UDim.new(0, theme.padding.calc(1)),
29
+ PaddingBottom = UDim.new(0, theme.padding.calc(1)),
30
+ PaddingLeft = UDim.new(0, theme.padding.calc(1)),
31
+ PaddingRight = UDim.new(0, theme.padding.calc(1)),
37
32
  },
38
33
  list = {
39
34
  FillDirection = Enum.FillDirection.Vertical,
@@ -46,7 +41,7 @@ local useListItemStyles = componentStyles("ListItem", function(theme, _param)
46
41
  BackgroundTransparency = 1,
47
42
  BorderSizePixel = 0,
48
43
  Font = theme.typography.fontFamilies.default,
49
- TextSize = if dense == true then theme.typography.fontSizes.caption else theme.typography.fontSizes.body,
44
+ TextSize = theme.typography.fontSizes.body,
50
45
  TextColor3 = if disabled then theme.palette.text.disabled else theme.palette.text.primary,
51
46
  TextXAlignment = Enum.TextXAlignment.Left,
52
47
  },
@@ -1,8 +1,6 @@
1
1
  import { CustomizedProps } from "../../../../theme/index";
2
2
  export interface LoadingStrokeProps {
3
3
  animating?: boolean;
4
- color?: Color3;
5
- thickness?: number;
6
4
  }
7
5
  declare function LoadingStroke(props: CustomizedProps<UIStroke, LoadingStrokeProps>): JSX.Element;
8
6
  export default LoadingStroke;
@@ -4,41 +4,37 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local React = _react
5
5
  local useEffect = _react.useEffect
6
6
  local useRef = _react.useRef
7
- local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
8
- local loopProperty = TS.import(script, script.Parent.Parent.Parent, "motion").loopProperty
7
+ local TweenService = TS.import(script, TS.getModule(script, "@rbxts", "services")).TweenService
9
8
  local function LoadingStroke(props)
10
9
  local _binding = props
11
10
  local animating = _binding.animating
12
11
  if animating == nil then
13
12
  animating = false
14
13
  end
15
- local color = _binding.color
16
- local thickness = _binding.thickness
17
- if thickness == nil then
18
- thickness = 2
19
- end
20
14
  local className = _binding.className
21
15
  local sx = _binding.sx
22
16
  local children = _binding.children
23
17
  local id = _binding.id
24
18
  local ref = _binding.ref
25
- local _binding_1 = useTheme()
26
- local theme = _binding_1.theme
27
19
  local gradientRef = useRef()
28
- local stroke = color or theme.palette.primary.on
29
20
  useEffect(function()
30
- local gradient = gradientRef.current
31
- if not gradient then
32
- return nil
33
- end
34
- if animating then
35
- gradient.Rotation = 0
36
- return loopProperty(gradient, {
37
- Rotation = 360,
38
- }, 1.2)
21
+ if gradientRef.current then
22
+ if animating then
23
+ local tween = TweenService:Create(gradientRef.current, TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, false), {
24
+ Rotation = 360,
25
+ })
26
+ tween:Play()
27
+ return function()
28
+ return tween:Destroy()
29
+ end
30
+ else
31
+ gradientRef.current.Rotation = 0
32
+ end
39
33
  end
40
- gradient.Rotation = 0
41
34
  end, { animating })
35
+ -- Decorative shimmer; not a semantic text/surface token.
36
+ local stroke = Color3.fromRGB(255, 255, 255)
37
+ local mid = Color3.fromRGB(235, 235, 235)
42
38
  local _attributes = {}
43
39
  local _condition = id
44
40
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
@@ -47,7 +43,7 @@ local function LoadingStroke(props)
47
43
  _attributes.key = _condition
48
44
  _attributes.ref = ref
49
45
  _attributes.Color = stroke
50
- _attributes.Thickness = thickness
46
+ _attributes.Thickness = 2
51
47
  _attributes.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
52
48
  if className then
53
49
  for _k, _v in className do
@@ -61,9 +57,9 @@ local function LoadingStroke(props)
61
57
  end
62
58
  return React.createElement("uistroke", _attributes, React.createElement("uigradient", {
63
59
  ref = gradientRef,
64
- Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.45, 0), NumberSequenceKeypoint.new(0.55, 0), NumberSequenceKeypoint.new(1, 1) }),
60
+ Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1) }),
65
61
  Rotation = 0,
66
- Color = ColorSequence.new(stroke),
62
+ Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, stroke), ColorSequenceKeypoint.new(0.5, mid), ColorSequenceKeypoint.new(1, stroke) }),
67
63
  }), children)
68
64
  end
69
65
  local default = LoadingStroke
@@ -1,4 +1,3 @@
1
- import React from "@rbxts/react";
2
1
  export interface MenuItem {
3
2
  id: string;
4
3
  text: string;
@@ -10,10 +9,6 @@ export interface MenuProps {
10
9
  items: MenuItem[];
11
10
  onSelect: (id: string) => void;
12
11
  onClose: () => void;
13
- emptyText?: string;
14
- empty?: React.Element;
15
- dense?: boolean;
16
- selected?: string;
17
12
  }
18
13
  declare function Menu(props: MenuProps): JSX.Element | undefined;
19
14
  export default Menu;
@@ -3,10 +3,8 @@ local TS = _G[script]
3
3
  local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local ListItem = TS.import(script, script.Parent.Parent.Parent, "listItem").ListItem
5
5
  local Popup = TS.import(script, script.Parent.Parent.Parent, "popup").Popup
6
- local EmptyListHint = TS.import(script, script.Parent.Parent.Parent, "virtualList").EmptyListHint
7
6
  local useMenuStyles = TS.import(script, script.Parent, "Menu.styles").default
8
7
  local ROW = 28
9
- local ROW_DENSE = 22
10
8
  local function Menu(props)
11
9
  local _binding = props
12
10
  local anchor = _binding.anchor
@@ -14,17 +12,10 @@ local function Menu(props)
14
12
  local items = _binding.items
15
13
  local onSelect = _binding.onSelect
16
14
  local onClose = _binding.onClose
17
- local emptyText = _binding.emptyText
18
- local empty = _binding.empty
19
- local dense = _binding.dense
20
- local selected = _binding.selected
21
15
  local styles = useMenuStyles()
22
16
  if not open then
23
17
  return nil
24
18
  end
25
- local vacant = #items == 0
26
- local row = if dense == true then ROW_DENSE else ROW
27
- local height = if vacant then row else #items * row
28
19
  local _attributes = {
29
20
  key = "Surface",
30
21
  }
@@ -34,56 +25,34 @@ local function Menu(props)
34
25
  local _attributes_1 = table.clone(styles.corner)
35
26
  setmetatable(_attributes_1, nil)
36
27
  local _exp = React.createElement("uicorner", _attributes_1)
37
- local _attributes_2 = table.clone(styles.stroke)
28
+ local _attributes_2 = table.clone(styles.list)
38
29
  setmetatable(_attributes_2, nil)
39
- local _exp_1 = React.createElement("uistroke", _attributes_2)
40
- local _attributes_3 = table.clone(styles.list)
41
- setmetatable(_attributes_3, nil)
42
- local _exp_2 = React.createElement("uilistlayout", _attributes_3)
43
- local _result
44
- if vacant then
45
- local _condition = empty
46
- if _condition == nil then
47
- local _attributes_4 = {}
48
- local _condition_1 = emptyText
49
- if _condition_1 == nil then
50
- _condition_1 = "No options"
51
- end
52
- _attributes_4.text = _condition_1
53
- _attributes_4.height = row
54
- _condition = React.createElement(EmptyListHint, _attributes_4)
55
- end
56
- _result = _condition
57
- else
58
- -- ▼ ReadonlyArray.map ▼
59
- local _newValue = table.create(#items)
60
- local _callback = function(item)
61
- return React.createElement(ListItem, {
62
- key = item.id,
63
- text = item.text,
64
- disabled = item.disabled,
65
- dense = dense,
66
- selected = item.id == selected,
67
- onActivated = function()
68
- if item.disabled == true then
69
- return nil
70
- end
71
- onSelect(item.id)
72
- onClose()
73
- end,
74
- })
75
- end
76
- for _k, _v in items do
77
- _newValue[_k] = _callback(_v, _k - 1, items)
78
- end
79
- -- ▲ ReadonlyArray.map ▲
80
- _result = _newValue
30
+ local _exp_1 = React.createElement("uilistlayout", _attributes_2)
31
+ -- ▼ ReadonlyArray.map ▼
32
+ local _newValue = table.create(#items)
33
+ local _callback = function(item)
34
+ return React.createElement(ListItem, {
35
+ key = item.id,
36
+ text = item.text,
37
+ disabled = item.disabled,
38
+ onActivated = function()
39
+ if item.disabled == true then
40
+ return nil
41
+ end
42
+ onSelect(item.id)
43
+ onClose()
44
+ end,
45
+ })
81
46
  end
47
+ for _k, _v in items do
48
+ _newValue[_k] = _callback(_v, _k - 1, items)
49
+ end
50
+ -- ▲ ReadonlyArray.map ▲
82
51
  return React.createElement(Popup, {
83
52
  anchor = anchor,
84
- preferredHeight = height,
53
+ preferredHeight = #items * ROW,
85
54
  onDismiss = onClose,
86
- }, React.createElement("frame", _attributes, _exp, _exp_1, _exp_2, _result))
55
+ }, React.createElement("frame", _attributes, _exp, _exp_1, _newValue))
87
56
  end
88
57
  local default = Menu
89
58
  return {
@@ -8,16 +8,12 @@ local useMenuStyles = componentStyles("Menu", function(theme)
8
8
  surface = {
9
9
  Size = UDim2.new(1, 0, 0, 0),
10
10
  AutomaticSize = Enum.AutomaticSize.Y,
11
- BackgroundColor3 = theme.palette.surface.elevated,
11
+ BackgroundColor3 = theme.palette.surface.paper,
12
12
  BorderSizePixel = 0,
13
13
  },
14
14
  corner = {
15
15
  CornerRadius = UDim.new(0, theme.shape.borderRadius),
16
16
  },
17
- stroke = {
18
- Color = theme.palette.border,
19
- ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
20
- },
21
17
  list = {
22
18
  FillDirection = Enum.FillDirection.Vertical,
23
19
  SortOrder = Enum.SortOrder.LayoutOrder,
@@ -5,5 +5,5 @@ export interface ModalProps {
5
5
  onClose: () => void;
6
6
  children?: React.ReactNode;
7
7
  }
8
- declare function Modal(props: ModalProps): JSX.Element;
8
+ declare function Modal(props: ModalProps): JSX.Element | undefined;
9
9
  export default Modal;