@rbxts/uiblox 0.2.0-alpha.18 → 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 -4
  51. package/out/ui/packages/chip/components/Chip.luau +2 -44
  52. package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -4
  53. package/out/ui/packages/chip/components/Chip.styles.luau +7 -46
  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 -4
  87. package/out/ui/packages/menu/components/Menu.luau +23 -52
  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 -733
  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
@@ -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,9 +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
12
  }
17
13
  declare function Menu(props: MenuProps): JSX.Element | undefined;
18
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,16 +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
15
  local styles = useMenuStyles()
21
16
  if not open then
22
17
  return nil
23
18
  end
24
- local vacant = #items == 0
25
- local row = if dense == true then ROW_DENSE else ROW
26
- local height = if vacant then row else #items * row
27
19
  local _attributes = {
28
20
  key = "Surface",
29
21
  }
@@ -33,55 +25,34 @@ local function Menu(props)
33
25
  local _attributes_1 = table.clone(styles.corner)
34
26
  setmetatable(_attributes_1, nil)
35
27
  local _exp = React.createElement("uicorner", _attributes_1)
36
- local _attributes_2 = table.clone(styles.stroke)
28
+ local _attributes_2 = table.clone(styles.list)
37
29
  setmetatable(_attributes_2, nil)
38
- local _exp_1 = React.createElement("uistroke", _attributes_2)
39
- local _attributes_3 = table.clone(styles.list)
40
- setmetatable(_attributes_3, nil)
41
- local _exp_2 = React.createElement("uilistlayout", _attributes_3)
42
- local _result
43
- if vacant then
44
- local _condition = empty
45
- if _condition == nil then
46
- local _attributes_4 = {}
47
- local _condition_1 = emptyText
48
- if _condition_1 == nil then
49
- _condition_1 = "No options"
50
- end
51
- _attributes_4.text = _condition_1
52
- _attributes_4.height = row
53
- _condition = React.createElement(EmptyListHint, _attributes_4)
54
- end
55
- _result = _condition
56
- else
57
- -- ▼ ReadonlyArray.map ▼
58
- local _newValue = table.create(#items)
59
- local _callback = function(item)
60
- return React.createElement(ListItem, {
61
- key = item.id,
62
- text = item.text,
63
- disabled = item.disabled,
64
- dense = dense,
65
- onActivated = function()
66
- if item.disabled == true then
67
- return nil
68
- end
69
- onSelect(item.id)
70
- onClose()
71
- end,
72
- })
73
- end
74
- for _k, _v in items do
75
- _newValue[_k] = _callback(_v, _k - 1, items)
76
- end
77
- -- ▲ ReadonlyArray.map ▲
78
- _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
+ })
79
46
  end
47
+ for _k, _v in items do
48
+ _newValue[_k] = _callback(_v, _k - 1, items)
49
+ end
50
+ -- ▲ ReadonlyArray.map ▲
80
51
  return React.createElement(Popup, {
81
52
  anchor = anchor,
82
- preferredHeight = height,
53
+ preferredHeight = #items * ROW,
83
54
  onDismiss = onClose,
84
- }, React.createElement("frame", _attributes, _exp, _exp_1, _exp_2, _result))
55
+ }, React.createElement("frame", _attributes, _exp, _exp_1, _newValue))
85
56
  end
86
57
  local default = Menu
87
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;
@@ -4,13 +4,10 @@ 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 useState = _react.useState
8
7
  local _services = TS.import(script, TS.getModule(script, "@rbxts", "services"))
9
8
  local GuiService = _services.GuiService
10
9
  local UserInputService = _services.UserInputService
11
- local _popup = TS.import(script, script.Parent.Parent.Parent, "popup")
12
- local Portal = _popup.Portal
13
- local portalTarget = _popup.portalTarget
10
+ local Portal = TS.import(script, script.Parent.Parent.Parent, "popup").Portal
14
11
  local isDismissInput = TS.import(script, script.Parent, "dismissInput").isDismissInput
15
12
  local _focusTrap = TS.import(script, script.Parent, "focusTrap")
16
13
  local isFocusable = _focusTrap.isFocusable
@@ -25,14 +22,7 @@ local function Modal(props)
25
22
  local styles = useModalStyles()
26
23
  local close = useRef(onClose)
27
24
  local surface = useRef()
28
- local anchor = useRef()
29
- local layer, setLayer = useState(function()
30
- return portalTarget(host)
31
- end)
32
25
  close.current = onClose
33
- useEffect(function()
34
- setLayer(portalTarget(host or anchor.current))
35
- end, { host, open })
36
26
  useEffect(function()
37
27
  if not open then
38
28
  return nil
@@ -63,51 +53,43 @@ local function Modal(props)
63
53
  GuiService.SelectedObject = previous
64
54
  end
65
55
  end
66
- end, { open, layer })
67
- local _exp = React.createElement("frame", {
68
- key = "ModalAnchor",
69
- ref = anchor,
70
- Size = UDim2.fromOffset(0, 0),
71
- BackgroundTransparency = 1,
72
- BorderSizePixel = 0,
73
- })
74
- local _condition = open and layer ~= nil
75
- if _condition then
76
- local _attributes = {
77
- key = "Modal",
78
- }
79
- for _k, _v in styles.root do
80
- _attributes[_k] = _v
81
- end
82
- local _attributes_1 = {
83
- key = "Backdrop",
84
- }
85
- for _k, _v in styles.backdrop do
86
- _attributes_1[_k] = _v
87
- end
88
- _attributes_1.Event = {
89
- Activated = function()
90
- return close.current()
91
- end,
92
- }
93
- local _exp_1 = React.createElement("textbutton", _attributes_1)
94
- local _attributes_2 = {
95
- key = "Surface",
96
- ref = surface,
97
- }
98
- for _k, _v in styles.surface do
99
- _attributes_2[_k] = _v
100
- end
101
- local _attributes_3 = table.clone(styles.padding)
102
- setmetatable(_attributes_3, nil)
103
- local _exp_2 = React.createElement("uipadding", _attributes_3)
104
- local _attributes_4 = table.clone(styles.corner)
105
- setmetatable(_attributes_4, nil)
106
- _condition = (React.createElement(Portal, {
107
- host = layer,
108
- }, React.createElement("frame", _attributes, _exp_1, React.createElement("frame", _attributes_2, _exp_2, React.createElement("uicorner", _attributes_4), children))))
56
+ end, { open })
57
+ if not open then
58
+ return nil
59
+ end
60
+ local _attributes = {
61
+ key = "Modal",
62
+ }
63
+ for _k, _v in styles.root do
64
+ _attributes[_k] = _v
65
+ end
66
+ local _attributes_1 = {
67
+ key = "Backdrop",
68
+ }
69
+ for _k, _v in styles.backdrop do
70
+ _attributes_1[_k] = _v
71
+ end
72
+ _attributes_1.Event = {
73
+ Activated = function()
74
+ return close.current()
75
+ end,
76
+ }
77
+ local _exp = React.createElement("textbutton", _attributes_1)
78
+ local _attributes_2 = {
79
+ key = "Surface",
80
+ ref = surface,
81
+ }
82
+ for _k, _v in styles.surface do
83
+ _attributes_2[_k] = _v
109
84
  end
110
- return React.createElement(React.Fragment, nil, _exp, _condition)
85
+ local _attributes_3 = table.clone(styles.padding)
86
+ setmetatable(_attributes_3, nil)
87
+ local _exp_1 = React.createElement("uipadding", _attributes_3)
88
+ local _attributes_4 = table.clone(styles.corner)
89
+ setmetatable(_attributes_4, nil)
90
+ return React.createElement(Portal, {
91
+ host = host,
92
+ }, React.createElement("frame", _attributes, _exp, React.createElement("frame", _attributes_2, _exp_1, React.createElement("uicorner", _attributes_4), children)))
111
93
  end
112
94
  local default = Modal
113
95
  return {
@@ -2,4 +2,4 @@ export { loopProperty } from "./loop";
2
2
  export { motionDuration, assignGoal } from "./duration";
3
3
  export { playProperty } from "./play";
4
4
  export { resolveReduced } from "./resolveReduced";
5
- export { clampUnit, stopOnce, progressUnit, progressSpin, arcKeys, spinArcKeys } from "./unit";
5
+ export { clampUnit, stopOnce, progressUnit, progressSpin, arcKeys } from "./unit";
@@ -13,5 +13,4 @@ exports.stopOnce = _unit.stopOnce
13
13
  exports.progressUnit = _unit.progressUnit
14
14
  exports.progressSpin = _unit.progressSpin
15
15
  exports.arcKeys = _unit.arcKeys
16
- exports.spinArcKeys = _unit.spinArcKeys
17
16
  return exports
@@ -6,8 +6,3 @@ export declare function arcKeys(value: number): {
6
6
  time: number;
7
7
  transparency: number;
8
8
  }[];
9
- /** Indeterminate ring: long clear trail, bright head — reads as a sweep. */
10
- export declare function spinArcKeys(): {
11
- time: number;
12
- transparency: number;
13
- }[];