@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
@@ -2,7 +2,6 @@ import { CustomizedProps } from "../../../../theme/index";
2
2
  export interface StepperProps {
3
3
  steps: string[];
4
4
  activeStep: number;
5
- orientation?: "horizontal" | "vertical";
6
5
  }
7
6
  declare function Stepper(props: CustomizedProps<Frame, StepperProps>): JSX.Element;
8
7
  export default Stepper;
@@ -8,17 +8,11 @@ local function Stepper(props)
8
8
  local _binding = props
9
9
  local steps = _binding.steps
10
10
  local activeStep = _binding.activeStep
11
- local orientation = _binding.orientation
12
- if orientation == nil then
13
- orientation = "horizontal"
14
- end
15
11
  local className = _binding.className
16
12
  local sx = _binding.sx
17
13
  local id = _binding.id
18
14
  local ref = _binding.ref
19
- local styles = useStepperStyles({
20
- orientation = orientation,
21
- })
15
+ local styles = useStepperStyles()
22
16
  local _attributes = {}
23
17
  local _condition = id
24
18
  if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
@@ -1,4 +1,2 @@
1
- declare const useStepperStyles: (props: {
2
- orientation?: "horizontal" | "vertical";
3
- }) => import("../../../../theme/index").ClassNameMap<string>;
1
+ declare const useStepperStyles: () => import("../../../../theme/index").ClassNameMap<string>;
4
2
  export default useStepperStyles;
@@ -3,11 +3,7 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local componentStyles = _theme.componentStyles
5
5
  local createStyles = _theme.createStyles
6
- local useStepperStyles = componentStyles("Stepper", function(theme, _param)
7
- local orientation = _param.orientation
8
- if orientation == nil then
9
- orientation = "horizontal"
10
- end
6
+ local useStepperStyles = componentStyles("Stepper", function(theme)
11
7
  return createStyles({
12
8
  root = {
13
9
  AutomaticSize = Enum.AutomaticSize.XY,
@@ -16,7 +12,7 @@ local useStepperStyles = componentStyles("Stepper", function(theme, _param)
16
12
  BorderSizePixel = 0,
17
13
  },
18
14
  list = {
19
- FillDirection = if orientation == "vertical" then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
15
+ FillDirection = Enum.FillDirection.Horizontal,
20
16
  Padding = UDim.new(0, theme.padding.calc(1)),
21
17
  SortOrder = Enum.SortOrder.LayoutOrder,
22
18
  },
@@ -1,12 +1,10 @@
1
1
  import { ControlSize, CustomizedProps } from "../../../../theme/index";
2
- import { SwitchColor } from "./Switch.styles";
3
2
  export interface SwitchProps {
4
3
  value: boolean;
5
4
  onChange: (value: boolean) => void;
6
5
  disabled?: boolean;
7
6
  label?: string;
8
7
  size?: ControlSize;
9
- color?: SwitchColor;
10
8
  reducedMotion?: boolean;
11
9
  }
12
10
  declare function Switch(props: CustomizedProps<TextButton, SwitchProps>): JSX.Element;
@@ -27,10 +27,6 @@ local function Switch(props)
27
27
  local disabled = _binding.disabled
28
28
  local label = _binding.label
29
29
  local size = _binding.size
30
- local color = _binding.color
31
- if color == nil then
32
- color = "primary"
33
- end
34
30
  local reducedProp = _binding.reducedMotion
35
31
  local className = _binding.className
36
32
  local sx = _binding.sx
@@ -41,7 +37,6 @@ local function Switch(props)
41
37
  local theme = _binding_1.theme
42
38
  local _binding_2 = useSwitchStyles({
43
39
  size = size,
44
- color = color,
45
40
  })
46
41
  local root = _binding_2.root
47
42
  local row = _binding_2.row
@@ -1,8 +1,6 @@
1
1
  import { ControlSize } from "../../../../theme/index";
2
- export type SwitchColor = "primary" | "accent";
3
2
  export interface SwitchStyleProps {
4
3
  size?: ControlSize;
5
- color?: SwitchColor;
6
4
  }
7
5
  declare const useSwitchStyles: (props: SwitchStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
8
6
  export default useSwitchStyles;
@@ -6,12 +6,7 @@ local createStyles = _theme.createStyles
6
6
  local componentStyles = _theme.componentStyles
7
7
  local useSwitchStyles = componentStyles("Switch", function(theme, _param)
8
8
  local size = _param.size
9
- local color = _param.color
10
- if color == nil then
11
- color = "primary"
12
- end
13
9
  local metrics = controlMetrics(theme.density, size)
14
- local onTone = if color == "accent" then theme.palette.accent.main else theme.palette.primary.main
15
10
  return createStyles({
16
11
  root = {
17
12
  AutomaticSize = Enum.AutomaticSize.XY,
@@ -33,7 +28,7 @@ local useSwitchStyles = componentStyles("Switch", function(theme, _param)
33
28
  BorderSizePixel = 0,
34
29
  },
35
30
  trackOn = {
36
- BackgroundColor3 = onTone,
31
+ BackgroundColor3 = theme.palette.primary.main,
37
32
  },
38
33
  knob = {
39
34
  Size = UDim2.fromOffset(metrics.switchThumb, metrics.switchThumb),
@@ -52,7 +47,7 @@ local useSwitchStyles = componentStyles("Switch", function(theme, _param)
52
47
  TextWrapped = true,
53
48
  },
54
49
  corner = {
55
- CornerRadius = UDim.new(theme.shape.pillScale, 0),
50
+ CornerRadius = UDim.new(1, 0),
56
51
  },
57
52
  stroke = {
58
53
  Color = theme.palette.focus,
@@ -1,6 +1,6 @@
1
1
  export type SwitchPointer = "rest" | "hover" | "press" | "focus";
2
2
  export declare function switchPointer(hovering: boolean, pressed: boolean, focused: boolean): SwitchPointer;
3
- export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.55 | 0.35 | 0.15 | 0.65 | 0.08;
3
+ export declare function switchTrackTransparency(on: boolean, disabled: boolean, pointer: SwitchPointer): 0 | 0.25 | 0.35 | 0.65 | 0.55 | 0.15 | 0.08;
4
4
  export declare function switchThumbTransparency(disabled: boolean): 0 | 0.35;
5
5
  export declare function switchStrokeTransparency(disabled: boolean, pointer: SwitchPointer): 1 | 0 | 0.35;
6
6
  export declare function switchThumbPlacement(on: boolean, inset: number): {
@@ -3,7 +3,6 @@ export interface TableProps {
3
3
  columns: string[];
4
4
  rows: string[][];
5
5
  selected?: number;
6
- dense?: boolean;
7
6
  onRowActivated?: (index: number) => void;
8
7
  }
9
8
  declare function Table(props: CustomizedProps<Frame, TableProps>): JSX.Element;
@@ -9,15 +9,12 @@ local function Table(props)
9
9
  local columns = _binding.columns
10
10
  local rows = _binding.rows
11
11
  local selected = _binding.selected
12
- local dense = _binding.dense
13
12
  local onRowActivated = _binding.onRowActivated
14
13
  local className = _binding.className
15
14
  local sx = _binding.sx
16
15
  local id = _binding.id
17
16
  local ref = _binding.ref
18
- local styles = useTableStyles({
19
- dense = dense,
20
- })
17
+ local styles = useTableStyles()
21
18
  local width = if #columns > 0 then 1 / #columns else 1
22
19
  local _attributes = {}
23
20
  local _condition = id
@@ -1,4 +1,2 @@
1
- declare const useTableStyles: (props: {
2
- dense?: boolean;
3
- }) => import("../../../../theme/index").ClassNameMap<string>;
1
+ declare const useTableStyles: () => import("../../../../theme/index").ClassNameMap<string>;
4
2
  export default useTableStyles;
@@ -3,11 +3,7 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local componentStyles = _theme.componentStyles
5
5
  local createStyles = _theme.createStyles
6
- local useTableStyles = componentStyles("Table", function(theme, _param)
7
- local dense = _param.dense
8
- local padY = theme.padding.calc(if dense == true then 0.5 else 1)
9
- local padX = theme.padding.calc(if dense == true then 1 else 1.5)
10
- local textSize = if dense == true then theme.typography.fontSizes.caption else theme.typography.fontSizes.body
6
+ local useTableStyles = componentStyles("Table", function(theme)
11
7
  return createStyles({
12
8
  root = {
13
9
  AutomaticSize = Enum.AutomaticSize.Y,
@@ -48,7 +44,7 @@ local useTableStyles = componentStyles("Table", function(theme, _param)
48
44
  BackgroundTransparency = 1,
49
45
  BorderSizePixel = 0,
50
46
  Font = theme.typography.fontFamilies.default,
51
- TextSize = textSize,
47
+ TextSize = theme.typography.fontSizes.body,
52
48
  TextColor3 = theme.palette.text.primary,
53
49
  TextXAlignment = Enum.TextXAlignment.Left,
54
50
  TextTruncate = Enum.TextTruncate.AtEnd,
@@ -58,10 +54,10 @@ local useTableStyles = componentStyles("Table", function(theme, _param)
58
54
  TextColor3 = theme.palette.text.secondary,
59
55
  },
60
56
  padding = {
61
- PaddingTop = UDim.new(0, padY),
62
- PaddingBottom = UDim.new(0, padY),
63
- PaddingLeft = UDim.new(0, padX),
64
- PaddingRight = UDim.new(0, padX),
57
+ PaddingTop = UDim.new(0, theme.padding.calc(1)),
58
+ PaddingBottom = UDim.new(0, theme.padding.calc(1)),
59
+ PaddingLeft = UDim.new(0, theme.padding.calc(1.5)),
60
+ PaddingRight = UDim.new(0, theme.padding.calc(1.5)),
65
61
  },
66
62
  corner = {
67
63
  CornerRadius = UDim.new(0, theme.shape.borderRadius),
@@ -1,13 +1,10 @@
1
1
  import { CustomizedProps } from "../../../../theme/index";
2
2
  import { ChoiceOption } from "../../radioGroup/index";
3
- import { TabsOrientation } from "./tabsOrientation";
4
3
  export interface TabsProps<T> {
5
4
  value: T;
6
5
  options: ChoiceOption<T>[];
7
6
  onChange: (value: T) => void;
8
7
  disabled?: boolean;
9
- orientation?: TabsOrientation;
10
- centered?: boolean;
11
8
  }
12
9
  declare function Tabs<T>(props: CustomizedProps<ScrollingFrame, TabsProps<T>>): JSX.Element;
13
10
  export default Tabs;
@@ -4,7 +4,6 @@ local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
5
5
  local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
6
6
  local stepChoice = TS.import(script, script.Parent.Parent.Parent, "select", "components", "stepChoice").stepChoice
7
- local tabsIsVertical = TS.import(script, script.Parent, "tabsOrientation").tabsIsVertical
8
7
  local useTabsStyles = TS.import(script, script.Parent, "Tabs.styles").default
9
8
  local function Tabs(props)
10
9
  local _binding = props
@@ -12,17 +11,11 @@ local function Tabs(props)
12
11
  local options = _binding.options
13
12
  local onChange = _binding.onChange
14
13
  local disabled = _binding.disabled
15
- local orientation = _binding.orientation
16
- local centered = _binding.centered
17
14
  local className = _binding.className
18
15
  local sx = _binding.sx
19
16
  local id = _binding.id
20
17
  local ref = _binding.ref
21
- local styles = useTabsStyles({
22
- orientation = orientation,
23
- centered = centered,
24
- })
25
- local vertical = tabsIsVertical(orientation)
18
+ local styles = useTabsStyles()
26
19
  local choose = function(index)
27
20
  local choice = options[index + 1]
28
21
  if choice ~= nil and canActivate(disabled or choice.disabled) and choice.value ~= value then
@@ -43,11 +36,9 @@ local function Tabs(props)
43
36
  end
44
37
  -- ▲ ReadonlyArray.findIndex ▲
45
38
  local index = _result
46
- local back = if vertical then Enum.KeyCode.Up else Enum.KeyCode.Left
47
- local forward = if vertical then Enum.KeyCode.Down else Enum.KeyCode.Right
48
- if input.KeyCode == back then
39
+ if input.KeyCode == Enum.KeyCode.Left then
49
40
  choose(stepChoice(options, index, -1))
50
- elseif input.KeyCode == forward then
41
+ elseif input.KeyCode == Enum.KeyCode.Right then
51
42
  choose(stepChoice(options, index, 1))
52
43
  end
53
44
  end
@@ -1,6 +1,2 @@
1
- import { TabsOrientation } from "./tabsOrientation";
2
- declare const useTabsStyles: (props: {
3
- orientation?: TabsOrientation;
4
- centered?: boolean;
5
- }) => import("../../../../theme/index").ClassNameMap<string>;
1
+ declare const useTabsStyles: () => import("../../../../theme/index").ClassNameMap<string>;
6
2
  export default useTabsStyles;
@@ -3,40 +3,32 @@ local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
5
5
  local componentStyles = _theme.componentStyles
6
- local tabsIsVertical = TS.import(script, script.Parent, "tabsOrientation").tabsIsVertical
7
- local useTabsStyles = componentStyles("Tabs", function(theme, _param)
8
- local orientation = _param.orientation
9
- local centered = _param.centered
10
- local vertical = tabsIsVertical(orientation)
11
- local bar = theme.padding.calc(0.5)
6
+ local useTabsStyles = componentStyles("Tabs", function(theme)
12
7
  return createStyles({
13
8
  root = {
14
- Size = if vertical then UDim2.new(0, theme.spacing.calc(16), 1, 0) else UDim2.new(1, 0, 0, theme.spacing.calc(4)),
9
+ Size = UDim2.new(1, 0, 0, theme.spacing.calc(4)),
15
10
  BackgroundTransparency = 1,
16
11
  BorderSizePixel = 0,
17
12
  CanvasSize = UDim2.fromScale(0, 0),
18
- AutomaticCanvasSize = if vertical then Enum.AutomaticSize.Y else Enum.AutomaticSize.X,
19
- ScrollingDirection = if vertical then Enum.ScrollingDirection.Y else Enum.ScrollingDirection.X,
13
+ AutomaticCanvasSize = Enum.AutomaticSize.X,
14
+ ScrollingDirection = Enum.ScrollingDirection.X,
20
15
  HorizontalScrollBarInset = Enum.ScrollBarInset.Always,
21
- VerticalScrollBarInset = Enum.ScrollBarInset.Always,
22
16
  ScrollBarThickness = theme.padding.calc(0.5),
23
17
  ScrollBarImageColor3 = theme.palette.text.secondary,
24
18
  },
25
19
  list = {
26
- FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
27
- HorizontalAlignment = if centered == true and vertical ~= true then Enum.HorizontalAlignment.Center else Enum.HorizontalAlignment.Left,
20
+ FillDirection = Enum.FillDirection.Horizontal,
28
21
  SortOrder = Enum.SortOrder.LayoutOrder,
29
22
  },
30
23
  tab = {
31
- AutomaticSize = if vertical then Enum.AutomaticSize.Y else Enum.AutomaticSize.X,
32
- Size = if vertical then UDim2.new(1, 0, 0, 0) else UDim2.fromScale(0, 1),
24
+ AutomaticSize = Enum.AutomaticSize.X,
25
+ Size = UDim2.fromScale(0, 1),
33
26
  BackgroundTransparency = 1,
34
27
  BorderSizePixel = 0,
35
28
  AutoButtonColor = false,
36
29
  TextColor3 = theme.palette.text.secondary,
37
30
  Font = theme.typography.fontFamilies.default,
38
31
  TextSize = theme.typography.fontSizes.body,
39
- TextXAlignment = if vertical then Enum.TextXAlignment.Left else Enum.TextXAlignment.Center,
40
32
  },
41
33
  selected = {
42
34
  TextColor3 = theme.palette.text.primary,
@@ -47,22 +39,14 @@ local useTabsStyles = componentStyles("Tabs", function(theme, _param)
47
39
  padding = {
48
40
  PaddingLeft = UDim.new(0, theme.padding.calc(2)),
49
41
  PaddingRight = UDim.new(0, theme.padding.calc(2)),
50
- PaddingTop = UDim.new(0, if vertical then theme.padding.calc(1) else 0),
51
- PaddingBottom = UDim.new(0, if vertical then theme.padding.calc(1) else 0),
52
42
  },
53
- indicator = if vertical then ({
54
- Size = UDim2.new(0, bar, 1, -theme.padding.calc(2)),
55
- Position = UDim2.new(0, 0, 0.5, 0),
56
- AnchorPoint = Vector2.new(0, 0.5),
57
- BackgroundColor3 = theme.palette.primary.main,
58
- BorderSizePixel = 0,
59
- }) else ({
60
- Size = UDim2.new(1, theme.padding.calc(4), 0, bar),
43
+ indicator = {
44
+ Size = UDim2.new(1, theme.padding.calc(4), 0, theme.padding.calc(0.5)),
61
45
  Position = UDim2.fromScale(0.5, 1),
62
46
  AnchorPoint = Vector2.new(0.5, 1),
63
47
  BackgroundColor3 = theme.palette.primary.main,
64
48
  BorderSizePixel = 0,
65
- }),
49
+ },
66
50
  })
67
51
  end)
68
52
  local default = useTabsStyles
@@ -1,3 +1,2 @@
1
1
  export { default as Tabs } from "./components/Tabs";
2
2
  export { TabsProps } from "./components/Tabs";
3
- export { TabsOrientation, tabsIsVertical } from "./components/tabsOrientation";
@@ -2,5 +2,4 @@
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Tabs = TS.import(script, script, "components", "Tabs").default
5
- exports.tabsIsVertical = TS.import(script, script, "components", "tabsOrientation").tabsIsVertical
6
5
  return exports
@@ -6,8 +6,6 @@ export interface ToastProps {
6
6
  duration?: number;
7
7
  variant?: ToastVariants;
8
8
  toggledAt?: number;
9
- action?: string;
10
- onAction?: () => void;
11
9
  }
12
10
  declare function Toast(props: CustomizedProps<Frame, ToastProps>): JSX.Element;
13
11
  export default Toast;
@@ -18,8 +18,6 @@ local function Toast(props)
18
18
  if duration == nil then
19
19
  duration = 4
20
20
  end
21
- local action = _binding.action
22
- local onAction = _binding.onAction
23
21
  local className = _binding.className
24
22
  local sx = _binding.sx
25
23
  local id = _binding.id
@@ -28,7 +26,6 @@ local function Toast(props)
28
26
  local container = _binding_1.container
29
27
  local label = _binding_1.label
30
28
  local close = _binding_1.close
31
- local actionStyle = _binding_1.action
32
29
  local activePosition = _binding_1.activePosition
33
30
  local inActivePosition = _binding_1.inActivePosition
34
31
  local frameRef = useRef()
@@ -93,28 +90,6 @@ local function Toast(props)
93
90
  end
94
91
  _attributes_1.Text = text
95
92
  local _exp_2 = React.createElement("textlabel", _attributes_1)
96
- local _condition_1 = action ~= nil and #action > 0
97
- if _condition_1 then
98
- local _attributes_2 = {
99
- key = "Action",
100
- }
101
- for _k, _v in actionStyle do
102
- _attributes_2[_k] = _v
103
- end
104
- _attributes_2.Text = action
105
- _attributes_2.Event = {
106
- Activated = function()
107
- if onAction then
108
- onAction()
109
- end
110
- tween(Directions.Out)
111
- if onDismiss then
112
- onDismiss()
113
- end
114
- end,
115
- }
116
- _condition_1 = (React.createElement("textbutton", _attributes_2))
117
- end
118
93
  local _attributes_2 = {
119
94
  key = "Close",
120
95
  }
@@ -129,7 +104,7 @@ local function Toast(props)
129
104
  end
130
105
  end,
131
106
  }
132
- return React.createElement("frame", _attributes, _exp, _exp_1, _exp_2, _condition_1, React.createElement("imagebutton", _attributes_2))
107
+ return React.createElement("frame", _attributes, _exp, _exp_1, _exp_2, React.createElement("imagebutton", _attributes_2))
133
108
  end
134
109
  local default = Toast
135
110
  return {
@@ -11,7 +11,6 @@ local useToastStyles = componentStyles("Toast", function(theme, _param)
11
11
  if variant == nil then
12
12
  variant = ToastVariants.default
13
13
  end
14
- local action = _param.action
15
14
  local getToastColors = function()
16
15
  repeat
17
16
  if variant == (ToastVariants.success) then
@@ -39,8 +38,6 @@ local useToastStyles = componentStyles("Toast", function(theme, _param)
39
38
  until true
40
39
  end
41
40
  local toastColors = getToastColors()
42
- local hasAction = action ~= nil and #action > 0
43
- local actionSlot = if hasAction then theme.spacing.calc(8) else 0
44
41
  local ACTIVE_POSITION = UDim2.new(0.5, 0, 1, -DEFAULT_THEME.padding.calc(2))
45
42
  local INACTIVE_POSITION = UDim2.new(0.5, 0, 1, DEFAULT_THEME.spacing.calc(20) + DEFAULT_THEME.padding.calc(2))
46
43
  return createStyles({
@@ -53,34 +50,19 @@ local useToastStyles = componentStyles("Toast", function(theme, _param)
53
50
  ZIndex = 50000,
54
51
  },
55
52
  label = {
56
- Size = UDim2.new(1, -(theme.padding.calc(4) + actionSlot), 1, -theme.padding.calc(4)),
57
- Position = if hasAction then UDim2.new(0, theme.padding.calc(2), 0.5, 0) else UDim2.new(0.5, 0, 0.5, 0),
58
- AnchorPoint = if hasAction then Vector2.new(0, 0.5) else Vector2.new(0.5, 0.5),
53
+ Size = UDim2.new(1, -theme.padding.calc(4), 1, -theme.padding.calc(4)),
54
+ Position = UDim2.new(0.5, 0, 0.5, 0),
55
+ AnchorPoint = Vector2.new(0.5, 0.5),
59
56
  BackgroundTransparency = 1,
60
57
  BorderSizePixel = 0,
61
58
  TextSize = theme.typography.fontSizes.body,
62
59
  TextColor3 = toastColors.content,
63
60
  Font = theme.typography.fontFamilies.default,
64
- TextXAlignment = if hasAction then Enum.TextXAlignment.Left else Enum.TextXAlignment.Center,
65
- TextTruncate = Enum.TextTruncate.AtEnd,
66
61
  TextScaled = false,
67
62
  ZIndex = 50001,
68
63
  },
69
- action = {
70
- AutomaticSize = Enum.AutomaticSize.X,
71
- Size = UDim2.new(0, 0, 0, theme.spacing.calc(3)),
72
- Position = UDim2.new(1, -(theme.padding.calc(2) + theme.options.constants.iconSizes.small + theme.padding.calc(1)), 0.5, 0),
73
- AnchorPoint = Vector2.new(1, 0.5),
74
- BackgroundTransparency = 1,
75
- BorderSizePixel = 0,
76
- Font = theme.typography.fontFamilies.default,
77
- TextSize = theme.typography.fontSizes.body,
78
- TextColor3 = toastColors.content,
79
- AutoButtonColor = false,
80
- ZIndex = 50001,
81
- },
82
64
  close = {
83
- Size = UDim2.new(0, theme.options.constants.iconSizes.small, 0, theme.options.constants.iconSizes.small),
65
+ Size = UDim2.new(0, theme.spacing.calc(1), 0, theme.spacing.calc(1)),
84
66
  Position = UDim2.new(1, -theme.padding.calc(2), 0, theme.padding.calc(2)),
85
67
  AnchorPoint = Vector2.new(1, 0),
86
68
  ImageColor3 = toastColors.content,
@@ -13,6 +13,9 @@ local useTypographyStyles = componentStyles("Typography", function(theme, _param
13
13
  variant = "body"
14
14
  end
15
15
  local family = _param.family
16
+ if family == nil then
17
+ family = "default"
18
+ end
16
19
  local align = _param.align
17
20
  if align == nil then
18
21
  align = "left"
@@ -25,8 +28,6 @@ local useTypographyStyles = componentStyles("Typography", function(theme, _param
25
28
  if lineClamp == nil then
26
29
  lineClamp = false
27
30
  end
28
- local spec = theme.typography.variants[variant or "body"]
29
- local resolvedFamily = family or spec.family
30
31
  local DEFAULT_COLOR = theme.palette.text.primary
31
32
  local COLOR_TO_PALETTE_MAP = {
32
33
  initial = DEFAULT_COLOR,
@@ -82,8 +83,8 @@ local useTypographyStyles = componentStyles("Typography", function(theme, _param
82
83
  return createStyles({
83
84
  root = makeRootStyles(),
84
85
  variantToken = {
85
- TextSize = spec.size,
86
- Font = theme.typography.fontFamilies[resolvedFamily],
86
+ TextSize = variant and theme.typography.fontSizes[variant],
87
+ Font = family and theme.typography.fontFamilies[family],
87
88
  },
88
89
  })
89
90
  end)
@@ -1,4 +1,2 @@
1
1
  export { default as VirtualList } from "./components/VirtualList";
2
2
  export { VirtualListProps, VirtualListHandle, VirtualListItemState, VirtualListAlign, } from "./components/VirtualList";
3
- export { default as EmptyListHint } from "./components/EmptyListHint";
4
- export { EmptyListHintProps } from "./components/EmptyListHint";
@@ -2,5 +2,4 @@
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.VirtualList = TS.import(script, script, "components", "VirtualList").default
5
- exports.EmptyListHint = TS.import(script, script, "components", "EmptyListHint").default
6
5
  return exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/uiblox",
3
- "version": "0.2.0-alpha.18",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "UI Library and theming for roblox-ts projects",
5
5
  "main": "out/init.luau",
6
6
  "packageManager": "pnpm@11.3.0",
@@ -8,7 +8,7 @@
8
8
  "build": "rbxtsc",
9
9
  "watch": "rbxtsc -w",
10
10
  "pack:check": "node scripts/pack-check.mjs",
11
- "test": "node scripts/no-internal-refs.check.mjs && node scripts/import-case.check.mjs && node --experimental-strip-types scripts/theme-scope.check.mjs && node --experimental-strip-types scripts/style-types.check.mjs && node --experimental-strip-types scripts/style-cache.check.mjs && node --experimental-strip-types scripts/style-variants.check.mjs && node --experimental-strip-types scripts/component-styles.check.mjs && node --experimental-strip-types scripts/interaction-styles.check.mjs && node --experimental-strip-types scripts/resolve-style.check.mjs && node --experimental-strip-types scripts/density.check.mjs && node --experimental-strip-types scripts/styles.check.mjs && node --experimental-strip-types scripts/contrast.check.mjs && node --experimental-strip-types scripts/primitives.check.mjs && node --experimental-strip-types scripts/paper.check.mjs && node --experimental-strip-types scripts/list-item.check.mjs && node --experimental-strip-types scripts/slider.check.mjs && node --experimental-strip-types scripts/menu.check.mjs && node --experimental-strip-types scripts/guard.check.mjs && node --experimental-strip-types scripts/breakpoints.check.mjs && node --experimental-strip-types scripts/focus-trap.check.mjs && node --experimental-strip-types scripts/select-typeahead.check.mjs && node --experimental-strip-types scripts/select-groups.check.mjs && node --experimental-strip-types scripts/select-multi.check.mjs && node --experimental-strip-types scripts/select-motion.check.mjs && node --experimental-strip-types scripts/select-polish.check.mjs && node --experimental-strip-types scripts/reduced-motion.check.mjs && node --experimental-strip-types scripts/card.check.mjs && node --experimental-strip-types scripts/chip.check.mjs && node --experimental-strip-types scripts/badge.check.mjs && node --experimental-strip-types scripts/avatar.check.mjs && node --experimental-strip-types scripts/imageList.check.mjs && node --experimental-strip-types scripts/drawer.check.mjs && node --experimental-strip-types scripts/breadcrumbs.check.mjs && node --experimental-strip-types scripts/pagination.check.mjs && node --experimental-strip-types scripts/stepper.check.mjs && node --experimental-strip-types scripts/accordion.check.mjs && node --experimental-strip-types scripts/snackbar.check.mjs && node --experimental-strip-types scripts/table.check.mjs && node --experimental-strip-types scripts/autocomplete.check.mjs && node --experimental-strip-types scripts/field-loading.check.mjs && node --experimental-strip-types scripts/fab.check.mjs && node --experimental-strip-types scripts/appbar.check.mjs && node --experimental-strip-types scripts/bottom-navigation.check.mjs && node --experimental-strip-types scripts/alert.check.mjs && node --experimental-strip-types scripts/toggle-button.check.mjs && node --experimental-strip-types scripts/link.check.mjs && node --experimental-strip-types scripts/rating.check.mjs && node --experimental-strip-types scripts/stack.check.mjs && node --experimental-strip-types scripts/speed-dial.check.mjs && node --experimental-strip-types scripts/form-text.check.mjs && node --experimental-strip-types scripts/box.check.mjs && node --experimental-strip-types scripts/image-list.check.mjs && node --experimental-strip-types scripts/radio-group.check.mjs && node --experimental-strip-types scripts/container.check.mjs && node --experimental-strip-types scripts/divider.check.mjs && node --experimental-strip-types scripts/switch.check.mjs && node --experimental-strip-types scripts/tabs.check.mjs && node --experimental-strip-types scripts/dialog.check.mjs && node --experimental-strip-types scripts/backdrop.check.mjs && node --experimental-strip-types scripts/cframe-editor.check.mjs && node --experimental-strip-types scripts/enum-picker.check.mjs && node --experimental-strip-types scripts/number-range.check.mjs && node --experimental-strip-types scripts/rect-editor.check.mjs && node --experimental-strip-types scripts/asset-field.check.mjs && node --experimental-strip-types scripts/gradient-editor.check.mjs && node --experimental-strip-types scripts/ray-editor.check.mjs && node --experimental-strip-types scripts/physical-properties.check.mjs && node --experimental-strip-types scripts/brickcolor-picker.check.mjs",
11
+ "test": "node scripts/no-internal-refs.check.mjs && node scripts/import-case.check.mjs && node --experimental-strip-types scripts/theme-scope.check.mjs && node --experimental-strip-types scripts/style-types.check.mjs && node --experimental-strip-types scripts/style-cache.check.mjs && node --experimental-strip-types scripts/style-variants.check.mjs && node --experimental-strip-types scripts/component-styles.check.mjs && node --experimental-strip-types scripts/interaction-styles.check.mjs && node --experimental-strip-types scripts/resolve-style.check.mjs && node --experimental-strip-types scripts/density.check.mjs && node --experimental-strip-types scripts/contrast.check.mjs && node --experimental-strip-types scripts/primitives.check.mjs && node --experimental-strip-types scripts/paper.check.mjs && node --experimental-strip-types scripts/list-item.check.mjs && node --experimental-strip-types scripts/menu.check.mjs && node --experimental-strip-types scripts/guard.check.mjs && node --experimental-strip-types scripts/breakpoints.check.mjs && node --experimental-strip-types scripts/focus-trap.check.mjs && node --experimental-strip-types scripts/select-typeahead.check.mjs && node --experimental-strip-types scripts/select-groups.check.mjs && node --experimental-strip-types scripts/select-multi.check.mjs && node --experimental-strip-types scripts/select-motion.check.mjs && node --experimental-strip-types scripts/select-polish.check.mjs && node --experimental-strip-types scripts/reduced-motion.check.mjs && node --experimental-strip-types scripts/card.check.mjs && node --experimental-strip-types scripts/chip.check.mjs && node --experimental-strip-types scripts/badge.check.mjs && node --experimental-strip-types scripts/avatar.check.mjs && node --experimental-strip-types scripts/drawer.check.mjs && node --experimental-strip-types scripts/breadcrumbs.check.mjs && node --experimental-strip-types scripts/pagination.check.mjs && node --experimental-strip-types scripts/stepper.check.mjs && node --experimental-strip-types scripts/accordion.check.mjs && node --experimental-strip-types scripts/snackbar.check.mjs && node --experimental-strip-types scripts/table.check.mjs && node --experimental-strip-types scripts/autocomplete.check.mjs && node --experimental-strip-types scripts/field-loading.check.mjs && node --experimental-strip-types scripts/fab.check.mjs && node --experimental-strip-types scripts/appbar.check.mjs && node --experimental-strip-types scripts/bottom-navigation.check.mjs && node --experimental-strip-types scripts/alert.check.mjs && node --experimental-strip-types scripts/cframe-editor.check.mjs && node --experimental-strip-types scripts/enum-picker.check.mjs && node --experimental-strip-types scripts/number-range.check.mjs && node --experimental-strip-types scripts/rect-editor.check.mjs && node --experimental-strip-types scripts/asset-field.check.mjs && node --experimental-strip-types scripts/gradient-editor.check.mjs && node --experimental-strip-types scripts/ray-editor.check.mjs && node --experimental-strip-types scripts/physical-properties.check.mjs && node --experimental-strip-types scripts/brickcolor-picker.check.mjs",
12
12
  "prepublishOnly": "pnpm build"
13
13
  },
14
14
  "keywords": [
@@ -1,10 +0,0 @@
1
- import React from "@rbxts/react";
2
- import { CustomizedProps } from "../../../../theme/index";
3
- export interface BackdropProps {
4
- open?: boolean;
5
- invisible?: boolean;
6
- onClick?: () => void;
7
- children?: React.ReactNode;
8
- }
9
- declare function Backdrop(props: CustomizedProps<TextButton, BackdropProps>): JSX.Element | undefined;
10
- export default Backdrop;
@@ -1,58 +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 useBackdropStyles = TS.import(script, script.Parent, "Backdrop.styles").default
5
- local function Backdrop(props)
6
- local _binding = props
7
- local open = _binding.open
8
- if open == nil then
9
- open = true
10
- end
11
- local invisible = _binding.invisible
12
- local onClick = _binding.onClick
13
- local children = _binding.children
14
- local className = _binding.className
15
- local sx = _binding.sx
16
- local id = _binding.id
17
- local ref = _binding.ref
18
- local styles = useBackdropStyles({
19
- invisible = invisible,
20
- })
21
- if open ~= true then
22
- return nil
23
- end
24
- local _attributes = {}
25
- local _condition = id
26
- if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
27
- _condition = "Backdrop"
28
- end
29
- _attributes.key = _condition
30
- _attributes.ref = ref
31
- for _k, _v in styles.root do
32
- _attributes[_k] = _v
33
- end
34
- if className then
35
- for _k, _v in className do
36
- _attributes[_k] = _v
37
- end
38
- end
39
- if sx then
40
- for _k, _v in sx do
41
- _attributes[_k] = _v
42
- end
43
- end
44
- _attributes.Event = {
45
- Activated = function()
46
- local _result = onClick
47
- if _result ~= nil then
48
- _result = _result()
49
- end
50
- return _result
51
- end,
52
- }
53
- return React.createElement("textbutton", _attributes, children)
54
- end
55
- local default = Backdrop
56
- return {
57
- default = default,
58
- }
@@ -1,4 +0,0 @@
1
- declare const useBackdropStyles: (props: {
2
- invisible?: boolean;
3
- }) => import("../../../../theme/index").ClassNameMap<string>;
4
- export default useBackdropStyles;