@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
@@ -1,20 +0,0 @@
1
- interface SkeletonPalette {
2
- surface: {
3
- canvas: Color3;
4
- elevated: Color3;
5
- };
6
- action: {
7
- hover: Color3;
8
- };
9
- text: {
10
- secondary: Color3;
11
- };
12
- }
13
- /** Bone + shimmer peak from semantic tokens; shine always lifts off the bone vs canvas. */
14
- export declare function skeletonTone(theme: {
15
- palette: SkeletonPalette;
16
- }): {
17
- bone: Color3;
18
- shine: Color3;
19
- };
20
- export {};
@@ -1,14 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local relativeLuminance = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme", "utilites", "colorMath").relativeLuminance
4
- --* Bone + shimmer peak from semantic tokens; shine always lifts off the bone vs canvas.
5
- local function skeletonTone(theme)
6
- local lightCanvas = relativeLuminance(theme.palette.surface.canvas) > 0.5
7
- return {
8
- bone = theme.palette.action.hover,
9
- shine = if lightCanvas then theme.palette.surface.elevated else theme.palette.text.secondary,
10
- }
11
- end
12
- return {
13
- skeletonTone = skeletonTone,
14
- }
@@ -1 +0,0 @@
1
- export declare function sliderMarkValues(min: number, max: number, step: number | undefined, marks: boolean | ReadonlyArray<number> | undefined): number[];
@@ -1,37 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function sliderMarkValues(min, max, step, marks)
3
- if marks == nil or marks == false then
4
- return {}
5
- end
6
- if marks ~= true then
7
- local out = {}
8
- for _, value in marks do
9
- if value >= min and value <= max then
10
- table.insert(out, value)
11
- end
12
- end
13
- return out
14
- end
15
- local span = max - min
16
- if span <= 0 then
17
- return { min }
18
- end
19
- local increment = if step ~= nil and step > 0 then step else span
20
- local out = {}
21
- local value = min
22
- local guard = 0
23
- while value <= max + increment * 1e-9 and guard < 64 do
24
- local _arg0 = math.clamp(value, min, max)
25
- table.insert(out, _arg0)
26
- value += increment
27
- guard += 1
28
- end
29
- if out[#out] ~= max then
30
- local _max = max
31
- table.insert(out, _max)
32
- end
33
- return out
34
- end
35
- return {
36
- sliderMarkValues = sliderMarkValues,
37
- }
@@ -1 +0,0 @@
1
- export declare function snackbarActionLabel(action?: string): string | undefined;
@@ -1,10 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function snackbarActionLabel(action)
3
- if action == nil or #action == 0 then
4
- return nil
5
- end
6
- return action
7
- end
8
- return {
9
- snackbarActionLabel = snackbarActionLabel,
10
- }
@@ -1,19 +0,0 @@
1
- import { CustomizedProps } from "../../../../theme/index";
2
- import { Icons } from "../../../enums/index";
3
- import { SpeedDialDirection } from "./SpeedDial.styles";
4
- export interface SpeedDialAction {
5
- icon: Icons;
6
- disabled?: boolean;
7
- onClick?: () => void;
8
- }
9
- export interface SpeedDialProps {
10
- open: boolean;
11
- onOpenChange: (open: boolean) => void;
12
- actions: SpeedDialAction[];
13
- icon?: Icons;
14
- openIcon?: Icons;
15
- disabled?: boolean;
16
- direction?: SpeedDialDirection;
17
- }
18
- declare function SpeedDial(props: CustomizedProps<Frame, SpeedDialProps>): JSX.Element;
19
- export default SpeedDial;
@@ -1,101 +0,0 @@
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 Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
5
- local Fab = TS.import(script, script.Parent.Parent.Parent, "fab").Fab
6
- local useSpeedDialStyles = TS.import(script, script.Parent, "SpeedDial.styles").default
7
- local function SpeedDial(props)
8
- local _binding = props
9
- local open = _binding.open
10
- local onOpenChange = _binding.onOpenChange
11
- local actions = _binding.actions
12
- local icon = _binding.icon
13
- if icon == nil then
14
- icon = Icons.OpenBox
15
- end
16
- local openIcon = _binding.openIcon
17
- if openIcon == nil then
18
- openIcon = Icons.Close
19
- end
20
- local disabled = _binding.disabled
21
- local direction = _binding.direction
22
- if direction == nil then
23
- direction = "up"
24
- end
25
- local className = _binding.className
26
- local sx = _binding.sx
27
- local id = _binding.id
28
- local ref = _binding.ref
29
- local styles = useSpeedDialStyles({
30
- direction = direction,
31
- })
32
- local mainFirst = direction == "down" or direction == "right"
33
- local mainOrder = if mainFirst then 0 else 1000
34
- local actionBase = if mainFirst then 1 else 0
35
- local _attributes = {}
36
- local _condition = id
37
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
38
- _condition = "SpeedDial"
39
- end
40
- _attributes.key = _condition
41
- _attributes.ref = ref
42
- for _k, _v in styles.root do
43
- _attributes[_k] = _v
44
- end
45
- if className then
46
- for _k, _v in className do
47
- _attributes[_k] = _v
48
- end
49
- end
50
- if sx then
51
- for _k, _v in sx do
52
- _attributes[_k] = _v
53
- end
54
- end
55
- local _attributes_1 = table.clone(styles.list)
56
- setmetatable(_attributes_1, nil)
57
- local _exp = React.createElement("uilistlayout", _attributes_1)
58
- local _condition_1 = open
59
- if _condition_1 then
60
- -- ▼ ReadonlyArray.map ▼
61
- local _newValue = table.create(#actions)
62
- local _callback = function(action, index)
63
- return React.createElement(Fab, {
64
- key = `Action-{index}`,
65
- icon = action.icon,
66
- size = "small",
67
- disabled = disabled == true or action.disabled == true,
68
- onClick = function()
69
- local _result = action.onClick
70
- if _result ~= nil then
71
- _result()
72
- end
73
- onOpenChange(false)
74
- end,
75
- className = {
76
- LayoutOrder = actionBase + index,
77
- },
78
- })
79
- end
80
- for _k, _v in actions do
81
- _newValue[_k] = _callback(_v, _k - 1, actions)
82
- end
83
- -- ▲ ReadonlyArray.map ▲
84
- _condition_1 = _newValue
85
- end
86
- return React.createElement("frame", _attributes, _exp, _condition_1, React.createElement(Fab, {
87
- key = "Main",
88
- icon = if open then openIcon else icon,
89
- disabled = disabled,
90
- onClick = function()
91
- return onOpenChange(not open)
92
- end,
93
- className = {
94
- LayoutOrder = mainOrder,
95
- },
96
- }))
97
- end
98
- local default = SpeedDial
99
- return {
100
- default = default,
101
- }
@@ -1,5 +0,0 @@
1
- export type SpeedDialDirection = "up" | "down" | "left" | "right";
2
- declare const useSpeedDialStyles: (props: {
3
- direction?: SpeedDialDirection;
4
- }) => import("../../../../theme/index").ClassNameMap<string>;
5
- export default useSpeedDialStyles;
@@ -1,31 +0,0 @@
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 useSpeedDialStyles = componentStyles("SpeedDial", function(theme, _param)
7
- local direction = _param.direction
8
- if direction == nil then
9
- direction = "up"
10
- end
11
- local vertical = direction == "up" or direction == "down"
12
- return createStyles({
13
- root = {
14
- AutomaticSize = Enum.AutomaticSize.XY,
15
- Size = UDim2.fromScale(0, 0),
16
- BackgroundTransparency = 1,
17
- BorderSizePixel = 0,
18
- },
19
- list = {
20
- FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
21
- HorizontalAlignment = if direction == "left" then Enum.HorizontalAlignment.Right elseif direction == "right" then Enum.HorizontalAlignment.Left else Enum.HorizontalAlignment.Center,
22
- VerticalAlignment = if direction == "up" then Enum.VerticalAlignment.Bottom elseif direction == "down" then Enum.VerticalAlignment.Top else Enum.VerticalAlignment.Center,
23
- SortOrder = Enum.SortOrder.LayoutOrder,
24
- Padding = UDim.new(0, theme.padding.calc(1)),
25
- },
26
- })
27
- end)
28
- local default = useSpeedDialStyles
29
- return {
30
- default = default,
31
- }
@@ -1,3 +0,0 @@
1
- export { default as SpeedDial } from "./components/SpeedDial";
2
- export { SpeedDialProps, SpeedDialAction } from "./components/SpeedDial";
3
- export { SpeedDialDirection } from "./components/SpeedDial.styles";
@@ -1,5 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- exports.SpeedDial = TS.import(script, script, "components", "SpeedDial").default
5
- return exports
@@ -1,2 +0,0 @@
1
- export type TabsOrientation = "horizontal" | "vertical";
2
- export declare function tabsIsVertical(orientation?: TabsOrientation): orientation is "vertical";
@@ -1,7 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local function tabsIsVertical(orientation)
3
- return orientation == "vertical"
4
- end
5
- return {
6
- tabsIsVertical = tabsIsVertical,
7
- }
@@ -1,19 +0,0 @@
1
- import { ControlSize, CustomizedProps } from "../../../../theme/index";
2
- import { ChoiceOption } from "../../radioGroup/index";
3
- export interface ToggleButtonProps {
4
- label: string;
5
- selected?: boolean;
6
- disabled?: boolean;
7
- size?: ControlSize;
8
- onActivated?: () => void;
9
- }
10
- declare function ToggleButton(props: CustomizedProps<TextButton, ToggleButtonProps>): JSX.Element;
11
- export interface ToggleButtonGroupProps<T> {
12
- value: T;
13
- options: ChoiceOption<T>[];
14
- onChange: (value: T) => void;
15
- disabled?: boolean;
16
- size?: ControlSize;
17
- }
18
- export declare function ToggleButtonGroup<T>(props: CustomizedProps<Frame, ToggleButtonGroupProps<T>>): JSX.Element;
19
- export default ToggleButton;
@@ -1,135 +0,0 @@
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 canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
5
- local useToggleButtonStyles = TS.import(script, script.Parent, "ToggleButton.styles").default
6
- local function ToggleButton(props)
7
- local _binding = props
8
- local label = _binding.label
9
- local selected = _binding.selected
10
- local disabled = _binding.disabled
11
- local size = _binding.size
12
- if size == nil then
13
- size = "medium"
14
- end
15
- local onActivated = _binding.onActivated
16
- local className = _binding.className
17
- local sx = _binding.sx
18
- local id = _binding.id
19
- local ref = _binding.ref
20
- local styles = useToggleButtonStyles({
21
- selected = selected,
22
- disabled = disabled,
23
- size = size,
24
- })
25
- local active = canActivate(disabled)
26
- local _attributes = {}
27
- local _condition = id
28
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
29
- _condition = "ToggleButton"
30
- end
31
- _attributes.key = _condition
32
- _attributes.ref = ref
33
- for _k, _v in styles.root do
34
- _attributes[_k] = _v
35
- end
36
- if className then
37
- for _k, _v in className do
38
- _attributes[_k] = _v
39
- end
40
- end
41
- if sx then
42
- for _k, _v in sx do
43
- _attributes[_k] = _v
44
- end
45
- end
46
- _attributes.Text = label
47
- _attributes.Active = active
48
- _attributes.Selectable = active
49
- _attributes.Event = {
50
- Activated = function()
51
- if active then
52
- local _result = onActivated
53
- if _result ~= nil then
54
- _result()
55
- end
56
- end
57
- end,
58
- }
59
- local _attributes_1 = table.clone(styles.padding)
60
- setmetatable(_attributes_1, nil)
61
- local _exp = React.createElement("uipadding", _attributes_1)
62
- local _attributes_2 = table.clone(styles.corner)
63
- setmetatable(_attributes_2, nil)
64
- local _exp_1 = React.createElement("uicorner", _attributes_2)
65
- local _attributes_3 = table.clone(styles.stroke)
66
- setmetatable(_attributes_3, nil)
67
- return React.createElement("textbutton", _attributes, _exp, _exp_1, React.createElement("uistroke", _attributes_3))
68
- end
69
- local function ToggleButtonGroup(props)
70
- local _binding = props
71
- local value = _binding.value
72
- local options = _binding.options
73
- local onChange = _binding.onChange
74
- local disabled = _binding.disabled
75
- local size = _binding.size
76
- local className = _binding.className
77
- local sx = _binding.sx
78
- local id = _binding.id
79
- local ref = _binding.ref
80
- local styles = useToggleButtonStyles({
81
- size = size,
82
- })
83
- local _attributes = {}
84
- local _condition = id
85
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
86
- _condition = "ToggleButtonGroup"
87
- end
88
- _attributes.key = _condition
89
- _attributes.ref = ref
90
- for _k, _v in styles.group do
91
- _attributes[_k] = _v
92
- end
93
- if className then
94
- for _k, _v in className do
95
- _attributes[_k] = _v
96
- end
97
- end
98
- if sx then
99
- for _k, _v in sx do
100
- _attributes[_k] = _v
101
- end
102
- end
103
- local _attributes_1 = table.clone(styles.list)
104
- setmetatable(_attributes_1, nil)
105
- local _exp = React.createElement("uilistlayout", _attributes_1)
106
- -- ▼ ReadonlyArray.map ▼
107
- local _newValue = table.create(#options)
108
- local _callback = function(choice, index)
109
- return React.createElement(ToggleButton, {
110
- key = `{choice.label}-{index}`,
111
- label = choice.label,
112
- selected = choice.value == value,
113
- disabled = disabled == true or choice.disabled == true,
114
- size = size,
115
- onActivated = function()
116
- if choice.value ~= value then
117
- onChange(choice.value)
118
- end
119
- end,
120
- className = {
121
- LayoutOrder = index,
122
- },
123
- })
124
- end
125
- for _k, _v in options do
126
- _newValue[_k] = _callback(_v, _k - 1, options)
127
- end
128
- -- ▲ ReadonlyArray.map ▲
129
- return React.createElement("frame", _attributes, _exp, _newValue)
130
- end
131
- local default = ToggleButton
132
- return {
133
- ToggleButtonGroup = ToggleButtonGroup,
134
- default = default,
135
- }
@@ -1,7 +0,0 @@
1
- import { ControlSize } from "../../../../theme/index";
2
- declare const useToggleButtonStyles: (props: {
3
- selected?: boolean;
4
- disabled?: boolean;
5
- size?: ControlSize;
6
- }) => import("../../../../theme/index").ClassNameMap<string>;
7
- export default useToggleButtonStyles;
@@ -1,65 +0,0 @@
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 useToggleButtonStyles = componentStyles("ToggleButton", function(theme, _param)
7
- local selected = _param.selected
8
- if selected == nil then
9
- selected = false
10
- end
11
- local disabled = _param.disabled
12
- if disabled == nil then
13
- disabled = false
14
- end
15
- local size = _param.size
16
- if size == nil then
17
- size = "medium"
18
- end
19
- local height = if size == "small" then theme.spacing.calc(3) elseif size == "large" then theme.spacing.calc(5) else theme.spacing.calc(4)
20
- local textSize = if size == "small" then theme.typography.fontSizes.caption elseif size == "large" then theme.typography.fontSizes.h6 else theme.typography.fontSizes.body
21
- local pad = theme.padding.calc(if size == "small" then 1 else 1.5)
22
- return createStyles({
23
- root = {
24
- AutomaticSize = Enum.AutomaticSize.X,
25
- Size = UDim2.new(0, 0, 0, height),
26
- BackgroundColor3 = if selected then theme.palette.action.selected else theme.palette.surface.input,
27
- BorderSizePixel = 0,
28
- AutoButtonColor = false,
29
- Active = not disabled,
30
- Selectable = not disabled,
31
- TextColor3 = if disabled then theme.palette.text.disabled elseif selected then theme.palette.primary.main else theme.palette.text.primary,
32
- Font = theme.typography.fontFamilies.default,
33
- TextSize = textSize,
34
- },
35
- padding = {
36
- PaddingLeft = UDim.new(0, pad),
37
- PaddingRight = UDim.new(0, pad),
38
- },
39
- corner = {
40
- CornerRadius = UDim.new(0, theme.shape.borderRadius),
41
- },
42
- stroke = {
43
- Color = if selected then theme.palette.primary.main else theme.palette.border,
44
- ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
45
- Transparency = if disabled then 0.5 else 0,
46
- },
47
- group = {
48
- AutomaticSize = Enum.AutomaticSize.XY,
49
- Size = UDim2.fromScale(0, 0),
50
- BackgroundTransparency = 1,
51
- BorderSizePixel = 0,
52
- },
53
- list = {
54
- FillDirection = Enum.FillDirection.Horizontal,
55
- HorizontalAlignment = Enum.HorizontalAlignment.Left,
56
- VerticalAlignment = Enum.VerticalAlignment.Center,
57
- SortOrder = Enum.SortOrder.LayoutOrder,
58
- Padding = UDim.new(0, theme.padding.calc(0.5)),
59
- },
60
- })
61
- end)
62
- local default = useToggleButtonStyles
63
- return {
64
- default = default,
65
- }
@@ -1,2 +0,0 @@
1
- export { default as ToggleButton, ToggleButtonGroup } from "./components/ToggleButton";
2
- export { ToggleButtonProps, ToggleButtonGroupProps } from "./components/ToggleButton";
@@ -1,7 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- local _ToggleButton = TS.import(script, script, "components", "ToggleButton")
5
- exports.ToggleButton = _ToggleButton.default
6
- exports.ToggleButtonGroup = _ToggleButton.ToggleButtonGroup
7
- return exports
@@ -1,6 +0,0 @@
1
- export interface EmptyListHintProps {
2
- text: string;
3
- height?: number;
4
- }
5
- declare function EmptyListHint(props: EmptyListHintProps): JSX.Element;
6
- export default EmptyListHint;
@@ -1,32 +0,0 @@
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 useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
5
- local useEmptyListHintStyles = TS.import(script, script.Parent, "EmptyListHint.styles").default
6
- local function EmptyListHint(props)
7
- local _binding = props
8
- local text = _binding.text
9
- local height = _binding.height
10
- local _binding_1 = useTheme()
11
- local theme = _binding_1.theme
12
- local _object = {}
13
- local _left = "height"
14
- local _condition = height
15
- if _condition == nil then
16
- _condition = theme.spacing.calc(4)
17
- end
18
- _object[_left] = _condition
19
- local styles = useEmptyListHintStyles(_object)
20
- local _attributes = {
21
- key = "EmptyListHint",
22
- }
23
- for _k, _v in styles.root do
24
- _attributes[_k] = _v
25
- end
26
- _attributes.Text = text
27
- return React.createElement("textlabel", _attributes)
28
- end
29
- local default = EmptyListHint
30
- return {
31
- default = default,
32
- }
@@ -1,5 +0,0 @@
1
- export interface EmptyListHintStyleProps {
2
- height: number;
3
- }
4
- declare const useEmptyListHintStyles: (props: EmptyListHintStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
5
- export default useEmptyListHintStyles;
@@ -1,26 +0,0 @@
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 createStyles = _theme.createStyles
5
- local componentStyles = _theme.componentStyles
6
- local useEmptyListHintStyles = componentStyles("EmptyListHint", function(theme, _param)
7
- local height = _param.height
8
- return createStyles({
9
- root = {
10
- Size = UDim2.new(1, 0, 0, height),
11
- BackgroundTransparency = 1,
12
- BorderSizePixel = 0,
13
- TextColor3 = theme.palette.text.secondary,
14
- Font = theme.typography.fontFamilies.default,
15
- TextSize = theme.typography.fontSizes.body,
16
- TextXAlignment = Enum.TextXAlignment.Center,
17
- TextYAlignment = Enum.TextYAlignment.Center,
18
- TextTruncate = Enum.TextTruncate.AtEnd,
19
- ZIndex = 20002,
20
- },
21
- })
22
- end)
23
- local default = useEmptyListHintStyles
24
- return {
25
- default = default,
26
- }