@rbxts/uiblox 0.2.0-alpha.19 → 0.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/out/theme/constants/NumberConstants.d.ts +0 -2
- package/out/theme/constants/NumberConstants.luau +0 -3
- package/out/theme/interfaces/spacing/Shape.d.ts +0 -3
- package/out/theme/interfaces/typography/FontSizes.d.ts +1 -1
- package/out/theme/interfaces/typography/FontSizes.luau +8 -15
- package/out/theme/interfaces/typography/ThemeTypography.d.ts +0 -3
- package/out/theme/interfaces/typography/Variants.d.ts +15 -14
- package/out/theme/interfaces/typography/Variants.luau +18 -68
- package/out/theme/themes/DarkTheme.luau +0 -4
- package/out/theme/themes/LightTheme.luau +0 -4
- package/out/ui/packages/accordion/components/Accordion.d.ts +0 -1
- package/out/ui/packages/accordion/components/Accordion.luau +6 -22
- package/out/ui/packages/accordion/components/Accordion.styles.d.ts +0 -1
- package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -16
- package/out/ui/packages/accordion/components/accordionOpen.d.ts +0 -1
- package/out/ui/packages/accordion/components/accordionOpen.luau +0 -4
- package/out/ui/packages/alert/components/Alert.d.ts +0 -1
- package/out/ui/packages/alert/components/Alert.luau +27 -36
- package/out/ui/packages/alert/components/Alert.styles.d.ts +0 -2
- package/out/ui/packages/alert/components/Alert.styles.luau +8 -17
- package/out/ui/packages/appBar/components/AppBar.d.ts +1 -2
- package/out/ui/packages/appBar/components/AppBar.luau +0 -5
- package/out/ui/packages/appBar/components/AppBar.styles.d.ts +0 -2
- package/out/ui/packages/appBar/components/AppBar.styles.luau +2 -6
- package/out/ui/packages/autocomplete/components/Autocomplete.luau +0 -8
- package/out/ui/packages/avatar/components/Avatar.d.ts +0 -2
- package/out/ui/packages/avatar/components/Avatar.luau +12 -20
- package/out/ui/packages/avatar/components/Avatar.styles.d.ts +0 -2
- package/out/ui/packages/avatar/components/Avatar.styles.luau +1 -5
- package/out/ui/packages/badge/components/Badge.d.ts +0 -3
- package/out/ui/packages/badge/components/Badge.luau +8 -23
- package/out/ui/packages/badge/components/Badge.styles.d.ts +1 -5
- package/out/ui/packages/badge/components/Badge.styles.luau +8 -20
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +0 -1
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +2 -8
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +1 -3
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +2 -6
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +0 -1
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +24 -58
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +0 -9
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +0 -68
- package/out/ui/packages/breadcrumbs/index.d.ts +0 -1
- package/out/ui/packages/breadcrumbs/init.luau +0 -3
- package/out/ui/packages/brickColorPicker/components/brickColorCatalog.luau +1 -1
- package/out/ui/packages/button/components/Button.luau +5 -9
- package/out/ui/packages/card/components/Card.d.ts +0 -1
- package/out/ui/packages/card/components/Card.luau +0 -2
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/chip/components/Chip.d.ts +1 -6
- package/out/ui/packages/chip/components/Chip.luau +2 -49
- package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -6
- package/out/ui/packages/chip/components/Chip.styles.luau +10 -55
- package/out/ui/packages/circularProgress/components/CircularProgress.luau +2 -13
- package/out/ui/packages/dialog/components/Dialog.d.ts +1 -1
- package/out/ui/packages/dialog/components/Dialog.luau +18 -27
- package/out/ui/packages/divider/components/Divider.d.ts +0 -1
- package/out/ui/packages/divider/components/Divider.luau +0 -48
- package/out/ui/packages/divider/components/Divider.styles.luau +0 -29
- package/out/ui/packages/drawer/components/Drawer.d.ts +0 -1
- package/out/ui/packages/drawer/components/Drawer.luau +1 -4
- package/out/ui/packages/drawer/components/Drawer.styles.d.ts +1 -3
- package/out/ui/packages/drawer/components/Drawer.styles.luau +2 -3
- package/out/ui/packages/fab/components/Fab.d.ts +0 -3
- package/out/ui/packages/fab/components/Fab.luau +25 -62
- package/out/ui/packages/fab/components/Fab.styles.d.ts +0 -3
- package/out/ui/packages/fab/components/Fab.styles.luau +3 -33
- package/out/ui/packages/fab/components/fabSize.d.ts +0 -1
- package/out/ui/packages/fab/components/fabSize.luau +0 -4
- package/out/ui/packages/fab/index.d.ts +1 -1
- package/out/ui/packages/fab/init.luau +0 -1
- package/out/ui/packages/iconButton/components/IconButton.luau +2 -7
- package/out/ui/packages/iconButton/components/IconButton.styles.luau +0 -3
- package/out/ui/packages/index.d.ts +0 -7
- package/out/ui/packages/init.luau +0 -21
- package/out/ui/packages/input/components/Input.luau +1 -1
- package/out/ui/packages/layout/components/Grid.d.ts +1 -1
- package/out/ui/packages/layout/index.d.ts +0 -10
- package/out/ui/packages/layout/init.luau +0 -4
- package/out/ui/packages/listItem/components/ListItem.d.ts +0 -1
- package/out/ui/packages/listItem/components/ListItem.luau +0 -5
- package/out/ui/packages/listItem/components/ListItem.styles.d.ts +0 -1
- package/out/ui/packages/listItem/components/ListItem.styles.luau +5 -10
- package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +0 -2
- package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +19 -23
- package/out/ui/packages/menu/components/Menu.d.ts +0 -5
- package/out/ui/packages/menu/components/Menu.luau +23 -54
- package/out/ui/packages/menu/components/Menu.styles.luau +1 -5
- package/out/ui/packages/modal/components/Modal.d.ts +1 -1
- package/out/ui/packages/modal/components/Modal.luau +37 -55
- package/out/ui/packages/motion/index.d.ts +1 -1
- package/out/ui/packages/motion/init.luau +0 -1
- package/out/ui/packages/motion/unit.d.ts +0 -5
- package/out/ui/packages/motion/unit.luau +0 -23
- package/out/ui/packages/pagination/components/Pagination.d.ts +1 -4
- package/out/ui/packages/pagination/components/Pagination.luau +22 -41
- package/out/ui/packages/pagination/components/Pagination.styles.d.ts +1 -4
- package/out/ui/packages/pagination/components/Pagination.styles.luau +4 -19
- package/out/ui/packages/pagination/components/pageRange.d.ts +1 -2
- package/out/ui/packages/pagination/components/pageRange.luau +8 -91
- package/out/ui/packages/pagination/index.d.ts +0 -1
- package/out/ui/packages/pagination/init.luau +0 -1
- package/out/ui/packages/paper/components/Paper.d.ts +1 -2
- package/out/ui/packages/paper/components/Paper.luau +3 -14
- package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
- package/out/ui/packages/paper/components/Paper.styles.luau +0 -6
- package/out/ui/packages/popup/index.d.ts +0 -1
- package/out/ui/packages/popup/init.luau +0 -1
- package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +0 -1
- package/out/ui/packages/radioGroup/components/RadioGroup.luau +2 -4
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +0 -1
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +1 -4
- package/out/ui/packages/select/components/Select.d.ts +0 -5
- package/out/ui/packages/select/components/Select.luau +24 -48
- package/out/ui/packages/select/components/Select.styles.luau +1 -1
- package/out/ui/packages/skeleton/components/Skeleton.luau +2 -3
- package/out/ui/packages/skeleton/components/Skeleton.styles.luau +2 -7
- package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
- package/out/ui/packages/slider/components/Slider.d.ts +0 -1
- package/out/ui/packages/slider/components/Slider.luau +1 -24
- package/out/ui/packages/slider/components/Slider.styles.luau +0 -8
- package/out/ui/packages/snackbar/components/Snackbar.d.ts +0 -2
- package/out/ui/packages/snackbar/components/Snackbar.luau +0 -5
- package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
- package/out/ui/packages/stateMatrix.d.ts +0 -2
- package/out/ui/packages/stateMatrix.luau +221 -746
- package/out/ui/packages/stepper/components/Stepper.d.ts +0 -1
- package/out/ui/packages/stepper/components/Stepper.luau +1 -7
- package/out/ui/packages/stepper/components/Stepper.styles.d.ts +1 -3
- package/out/ui/packages/stepper/components/Stepper.styles.luau +2 -6
- package/out/ui/packages/switch/components/Switch.d.ts +0 -2
- package/out/ui/packages/switch/components/Switch.luau +0 -5
- package/out/ui/packages/switch/components/Switch.styles.d.ts +0 -2
- package/out/ui/packages/switch/components/Switch.styles.luau +2 -7
- package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
- package/out/ui/packages/table/components/Table.d.ts +0 -1
- package/out/ui/packages/table/components/Table.luau +1 -4
- package/out/ui/packages/table/components/Table.styles.d.ts +1 -3
- package/out/ui/packages/table/components/Table.styles.luau +6 -10
- package/out/ui/packages/tabs/components/Tabs.d.ts +0 -3
- package/out/ui/packages/tabs/components/Tabs.luau +3 -12
- package/out/ui/packages/tabs/components/Tabs.styles.d.ts +1 -5
- package/out/ui/packages/tabs/components/Tabs.styles.luau +10 -26
- package/out/ui/packages/tabs/index.d.ts +0 -1
- package/out/ui/packages/tabs/init.luau +0 -1
- package/out/ui/packages/toast/components/Toast.d.ts +0 -2
- package/out/ui/packages/toast/components/Toast.luau +1 -26
- package/out/ui/packages/toast/components/Toast.styles.luau +4 -22
- package/out/ui/packages/typography/components/Typography.styles.luau +5 -4
- package/out/ui/packages/virtualList/index.d.ts +0 -2
- package/out/ui/packages/virtualList/init.luau +0 -1
- package/package.json +2 -2
- package/out/ui/packages/backdrop/components/Backdrop.d.ts +0 -10
- package/out/ui/packages/backdrop/components/Backdrop.luau +0 -58
- package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +0 -4
- package/out/ui/packages/backdrop/components/Backdrop.styles.luau +0 -24
- package/out/ui/packages/backdrop/index.d.ts +0 -2
- package/out/ui/packages/backdrop/init.luau +0 -5
- package/out/ui/packages/divider/components/dividerLabel.d.ts +0 -1
- package/out/ui/packages/divider/components/dividerLabel.luau +0 -10
- package/out/ui/packages/formText/components/FormHelperText.d.ts +0 -8
- package/out/ui/packages/formText/components/FormHelperText.luau +0 -44
- package/out/ui/packages/formText/components/FormLabel.d.ts +0 -9
- package/out/ui/packages/formText/components/FormLabel.luau +0 -46
- package/out/ui/packages/formText/components/FormText.styles.d.ts +0 -5
- package/out/ui/packages/formText/components/FormText.styles.luau +0 -33
- package/out/ui/packages/formText/index.d.ts +0 -4
- package/out/ui/packages/formText/init.luau +0 -6
- package/out/ui/packages/imageList/components/ImageList.d.ts +0 -14
- package/out/ui/packages/imageList/components/ImageList.luau +0 -100
- package/out/ui/packages/imageList/components/ImageList.styles.d.ts +0 -6
- package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -73
- package/out/ui/packages/imageList/components/imageListLayout.d.ts +0 -4
- package/out/ui/packages/imageList/components/imageListLayout.luau +0 -31
- package/out/ui/packages/imageList/index.d.ts +0 -2
- package/out/ui/packages/imageList/init.luau +0 -5
- package/out/ui/packages/layout/components/Box.d.ts +0 -11
- package/out/ui/packages/layout/components/Box.luau +0 -49
- package/out/ui/packages/layout/components/Box.styles.d.ts +0 -7
- package/out/ui/packages/layout/components/Box.styles.luau +0 -34
- package/out/ui/packages/layout/components/Container.d.ts +0 -10
- package/out/ui/packages/layout/components/Container.luau +0 -54
- package/out/ui/packages/layout/components/Container.styles.d.ts +0 -6
- package/out/ui/packages/layout/components/Container.styles.luau +0 -41
- package/out/ui/packages/layout/components/Stack.d.ts +0 -12
- package/out/ui/packages/layout/components/Stack.luau +0 -49
- package/out/ui/packages/layout/components/Stack.styles.d.ts +0 -8
- package/out/ui/packages/layout/components/Stack.styles.luau +0 -72
- package/out/ui/packages/layout/components/boxPad.d.ts +0 -14
- package/out/ui/packages/layout/components/boxPad.luau +0 -59
- package/out/ui/packages/layout/components/containerWidth.d.ts +0 -2
- package/out/ui/packages/layout/components/containerWidth.luau +0 -17
- package/out/ui/packages/layout/components/stackAlign.d.ts +0 -8
- package/out/ui/packages/layout/components/stackAlign.luau +0 -29
- package/out/ui/packages/link/components/Link.d.ts +0 -11
- package/out/ui/packages/link/components/Link.luau +0 -83
- package/out/ui/packages/link/components/Link.styles.d.ts +0 -8
- package/out/ui/packages/link/components/Link.styles.luau +0 -59
- package/out/ui/packages/link/index.d.ts +0 -3
- package/out/ui/packages/link/init.luau +0 -5
- package/out/ui/packages/rating/components/Rating.d.ts +0 -11
- package/out/ui/packages/rating/components/Rating.luau +0 -101
- package/out/ui/packages/rating/components/Rating.styles.d.ts +0 -6
- package/out/ui/packages/rating/components/Rating.styles.luau +0 -44
- package/out/ui/packages/rating/index.d.ts +0 -2
- package/out/ui/packages/rating/init.luau +0 -5
- package/out/ui/packages/skeleton/components/skeletonTone.d.ts +0 -20
- package/out/ui/packages/skeleton/components/skeletonTone.luau +0 -14
- package/out/ui/packages/slider/components/sliderMarks.d.ts +0 -1
- package/out/ui/packages/slider/components/sliderMarks.luau +0 -37
- package/out/ui/packages/snackbar/components/snackbarAction.d.ts +0 -1
- package/out/ui/packages/snackbar/components/snackbarAction.luau +0 -10
- package/out/ui/packages/speedDial/components/SpeedDial.d.ts +0 -19
- package/out/ui/packages/speedDial/components/SpeedDial.luau +0 -101
- package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +0 -5
- package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +0 -31
- package/out/ui/packages/speedDial/index.d.ts +0 -3
- package/out/ui/packages/speedDial/init.luau +0 -5
- package/out/ui/packages/tabs/components/tabsOrientation.d.ts +0 -2
- package/out/ui/packages/tabs/components/tabsOrientation.luau +0 -7
- package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +0 -19
- package/out/ui/packages/toggleButton/components/ToggleButton.luau +0 -135
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +0 -7
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +0 -65
- package/out/ui/packages/toggleButton/index.d.ts +0 -2
- package/out/ui/packages/toggleButton/init.luau +0 -7
- package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +0 -6
- package/out/ui/packages/virtualList/components/EmptyListHint.luau +0 -32
- package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +0 -5
- package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +0 -26
|
@@ -1,24 +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 useBackdropStyles = componentStyles("Backdrop", function(theme, _param)
|
|
7
|
-
local invisible = _param.invisible
|
|
8
|
-
return createStyles({
|
|
9
|
-
root = {
|
|
10
|
-
Size = UDim2.fromScale(1, 1),
|
|
11
|
-
BackgroundColor3 = theme.palette.backdrop,
|
|
12
|
-
BackgroundTransparency = if invisible == true then 1 else 0.45,
|
|
13
|
-
BorderSizePixel = 0,
|
|
14
|
-
Text = "",
|
|
15
|
-
AutoButtonColor = false,
|
|
16
|
-
Selectable = false,
|
|
17
|
-
ZIndex = 30000,
|
|
18
|
-
},
|
|
19
|
-
})
|
|
20
|
-
end)
|
|
21
|
-
local default = useBackdropStyles
|
|
22
|
-
return {
|
|
23
|
-
default = default,
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function dividerLabel(text?: string): string | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
-
export interface FormHelperTextProps {
|
|
3
|
-
text: string;
|
|
4
|
-
hasError?: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare function FormHelperText(props: CustomizedProps<TextLabel, FormHelperTextProps>): JSX.Element;
|
|
8
|
-
export default FormHelperText;
|
|
@@ -1,44 +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 useFormTextStyles = TS.import(script, script.Parent, "FormText.styles").default
|
|
5
|
-
local function FormHelperText(props)
|
|
6
|
-
local _binding = props
|
|
7
|
-
local text = _binding.text
|
|
8
|
-
local hasError = _binding.hasError
|
|
9
|
-
local disabled = _binding.disabled
|
|
10
|
-
local className = _binding.className
|
|
11
|
-
local sx = _binding.sx
|
|
12
|
-
local id = _binding.id
|
|
13
|
-
local ref = _binding.ref
|
|
14
|
-
local styles = useFormTextStyles({
|
|
15
|
-
hasError = hasError,
|
|
16
|
-
disabled = disabled,
|
|
17
|
-
})
|
|
18
|
-
local _attributes = {}
|
|
19
|
-
local _condition = id
|
|
20
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
21
|
-
_condition = "FormHelperText"
|
|
22
|
-
end
|
|
23
|
-
_attributes.key = _condition
|
|
24
|
-
_attributes.ref = ref
|
|
25
|
-
for _k, _v in styles.root do
|
|
26
|
-
_attributes[_k] = _v
|
|
27
|
-
end
|
|
28
|
-
if className then
|
|
29
|
-
for _k, _v in className do
|
|
30
|
-
_attributes[_k] = _v
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
if sx then
|
|
34
|
-
for _k, _v in sx do
|
|
35
|
-
_attributes[_k] = _v
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
_attributes.Text = text
|
|
39
|
-
return React.createElement("textlabel", _attributes)
|
|
40
|
-
end
|
|
41
|
-
local default = FormHelperText
|
|
42
|
-
return {
|
|
43
|
-
default = default,
|
|
44
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
-
export interface FormLabelProps {
|
|
3
|
-
text: string;
|
|
4
|
-
required?: boolean;
|
|
5
|
-
hasError?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function FormLabel(props: CustomizedProps<TextLabel, FormLabelProps>): JSX.Element;
|
|
9
|
-
export default FormLabel;
|
|
@@ -1,46 +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 useFormTextStyles = TS.import(script, script.Parent, "FormText.styles").default
|
|
5
|
-
local function FormLabel(props)
|
|
6
|
-
local _binding = props
|
|
7
|
-
local text = _binding.text
|
|
8
|
-
local required = _binding.required
|
|
9
|
-
local hasError = _binding.hasError
|
|
10
|
-
local disabled = _binding.disabled
|
|
11
|
-
local className = _binding.className
|
|
12
|
-
local sx = _binding.sx
|
|
13
|
-
local id = _binding.id
|
|
14
|
-
local ref = _binding.ref
|
|
15
|
-
local styles = useFormTextStyles({
|
|
16
|
-
hasError = hasError,
|
|
17
|
-
disabled = disabled,
|
|
18
|
-
})
|
|
19
|
-
local caption = if required == true then `{text} *` else text
|
|
20
|
-
local _attributes = {}
|
|
21
|
-
local _condition = id
|
|
22
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
23
|
-
_condition = "FormLabel"
|
|
24
|
-
end
|
|
25
|
-
_attributes.key = _condition
|
|
26
|
-
_attributes.ref = ref
|
|
27
|
-
for _k, _v in styles.root do
|
|
28
|
-
_attributes[_k] = _v
|
|
29
|
-
end
|
|
30
|
-
if className then
|
|
31
|
-
for _k, _v in className do
|
|
32
|
-
_attributes[_k] = _v
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
if sx then
|
|
36
|
-
for _k, _v in sx do
|
|
37
|
-
_attributes[_k] = _v
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
_attributes.Text = caption
|
|
41
|
-
return React.createElement("textlabel", _attributes)
|
|
42
|
-
end
|
|
43
|
-
local default = FormLabel
|
|
44
|
-
return {
|
|
45
|
-
default = default,
|
|
46
|
-
}
|
|
@@ -1,33 +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 useFormTextStyles = componentStyles("FormText", function(theme, _param)
|
|
7
|
-
local hasError = _param.hasError
|
|
8
|
-
if hasError == nil then
|
|
9
|
-
hasError = false
|
|
10
|
-
end
|
|
11
|
-
local disabled = _param.disabled
|
|
12
|
-
if disabled == nil then
|
|
13
|
-
disabled = false
|
|
14
|
-
end
|
|
15
|
-
local color = if disabled then theme.palette.text.disabled elseif hasError then theme.palette.status.error.main else theme.palette.text.secondary
|
|
16
|
-
return createStyles({
|
|
17
|
-
root = {
|
|
18
|
-
AutomaticSize = Enum.AutomaticSize.XY,
|
|
19
|
-
Size = UDim2.fromScale(0, 0),
|
|
20
|
-
BackgroundTransparency = 1,
|
|
21
|
-
BorderSizePixel = 0,
|
|
22
|
-
TextColor3 = color,
|
|
23
|
-
Font = theme.typography.fontFamilies.default,
|
|
24
|
-
TextSize = theme.typography.fontSizes.caption,
|
|
25
|
-
TextXAlignment = Enum.TextXAlignment.Left,
|
|
26
|
-
TextWrapped = true,
|
|
27
|
-
},
|
|
28
|
-
})
|
|
29
|
-
end)
|
|
30
|
-
local default = useFormTextStyles
|
|
31
|
-
return {
|
|
32
|
-
default = default,
|
|
33
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local exports = {}
|
|
4
|
-
exports.FormLabel = TS.import(script, script, "components", "FormLabel").default
|
|
5
|
-
exports.FormHelperText = TS.import(script, script, "components", "FormHelperText").default
|
|
6
|
-
return exports
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
-
export interface ImageListItem {
|
|
3
|
-
src: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ImageListProps {
|
|
7
|
-
items: ImageListItem[];
|
|
8
|
-
cols?: number;
|
|
9
|
-
gap?: number;
|
|
10
|
-
itemSize?: number;
|
|
11
|
-
onItemActivated?: (index: number) => void;
|
|
12
|
-
}
|
|
13
|
-
declare function ImageList(props: CustomizedProps<Frame, ImageListProps>): JSX.Element;
|
|
14
|
-
export default ImageList;
|
|
@@ -1,100 +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 imageListTitle = TS.import(script, script.Parent, "imageListLayout").imageListTitle
|
|
5
|
-
local useImageListStyles = TS.import(script, script.Parent, "ImageList.styles").default
|
|
6
|
-
local function ImageList(props)
|
|
7
|
-
local _binding = props
|
|
8
|
-
local items = _binding.items
|
|
9
|
-
local cols = _binding.cols
|
|
10
|
-
local gap = _binding.gap
|
|
11
|
-
local itemSize = _binding.itemSize
|
|
12
|
-
local onItemActivated = _binding.onItemActivated
|
|
13
|
-
local className = _binding.className
|
|
14
|
-
local sx = _binding.sx
|
|
15
|
-
local id = _binding.id
|
|
16
|
-
local ref = _binding.ref
|
|
17
|
-
local styles = useImageListStyles({
|
|
18
|
-
cols = cols,
|
|
19
|
-
gap = gap,
|
|
20
|
-
itemSize = itemSize,
|
|
21
|
-
})
|
|
22
|
-
local _attributes = {}
|
|
23
|
-
local _condition = id
|
|
24
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
25
|
-
_condition = "ImageList"
|
|
26
|
-
end
|
|
27
|
-
_attributes.key = _condition
|
|
28
|
-
_attributes.ref = ref
|
|
29
|
-
for _k, _v in styles.root do
|
|
30
|
-
_attributes[_k] = _v
|
|
31
|
-
end
|
|
32
|
-
if className then
|
|
33
|
-
for _k, _v in className do
|
|
34
|
-
_attributes[_k] = _v
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
if sx then
|
|
38
|
-
for _k, _v in sx do
|
|
39
|
-
_attributes[_k] = _v
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
local _attributes_1 = table.clone(styles.grid)
|
|
43
|
-
setmetatable(_attributes_1, nil)
|
|
44
|
-
local _exp = React.createElement("uigridlayout", _attributes_1)
|
|
45
|
-
-- ▼ ReadonlyArray.map ▼
|
|
46
|
-
local _newValue = table.create(#items)
|
|
47
|
-
local _callback = function(item, index)
|
|
48
|
-
local title = imageListTitle(item.title)
|
|
49
|
-
local _attributes_2 = {
|
|
50
|
-
key = `Tile-{index}`,
|
|
51
|
-
}
|
|
52
|
-
for _k, _v in styles.tile do
|
|
53
|
-
_attributes_2[_k] = _v
|
|
54
|
-
end
|
|
55
|
-
_attributes_2.LayoutOrder = index
|
|
56
|
-
_attributes_2.Event = {
|
|
57
|
-
Activated = function()
|
|
58
|
-
local _result = onItemActivated
|
|
59
|
-
if _result ~= nil then
|
|
60
|
-
_result = _result(index)
|
|
61
|
-
end
|
|
62
|
-
return _result
|
|
63
|
-
end,
|
|
64
|
-
}
|
|
65
|
-
local _attributes_3 = table.clone(styles.corner)
|
|
66
|
-
setmetatable(_attributes_3, nil)
|
|
67
|
-
local _exp_1 = React.createElement("uicorner", _attributes_3)
|
|
68
|
-
local _attributes_4 = {
|
|
69
|
-
key = "Image",
|
|
70
|
-
}
|
|
71
|
-
for _k, _v in styles.image do
|
|
72
|
-
_attributes_4[_k] = _v
|
|
73
|
-
end
|
|
74
|
-
_attributes_4.Image = item.src
|
|
75
|
-
local _exp_2 = React.createElement("imagelabel", _attributes_4)
|
|
76
|
-
local _condition_1 = title ~= nil
|
|
77
|
-
if _condition_1 then
|
|
78
|
-
local _attributes_5 = {
|
|
79
|
-
key = "Title",
|
|
80
|
-
}
|
|
81
|
-
for _k, _v in styles.title do
|
|
82
|
-
_attributes_5[_k] = _v
|
|
83
|
-
end
|
|
84
|
-
_attributes_5.Text = title
|
|
85
|
-
local _attributes_6 = table.clone(styles.titlePad)
|
|
86
|
-
setmetatable(_attributes_6, nil)
|
|
87
|
-
_condition_1 = (React.createElement("textlabel", _attributes_5, React.createElement("uipadding", _attributes_6)))
|
|
88
|
-
end
|
|
89
|
-
return React.createElement("imagebutton", _attributes_2, _exp_1, _exp_2, _condition_1)
|
|
90
|
-
end
|
|
91
|
-
for _k, _v in items do
|
|
92
|
-
_newValue[_k] = _callback(_v, _k - 1, items)
|
|
93
|
-
end
|
|
94
|
-
-- ▲ ReadonlyArray.map ▲
|
|
95
|
-
return React.createElement("frame", _attributes, _exp, _newValue)
|
|
96
|
-
end
|
|
97
|
-
local default = ImageList
|
|
98
|
-
return {
|
|
99
|
-
default = default,
|
|
100
|
-
}
|
|
@@ -1,73 +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 _imageListLayout = TS.import(script, script.Parent, "imageListLayout")
|
|
7
|
-
local imageListCols = _imageListLayout.imageListCols
|
|
8
|
-
local imageListGap = _imageListLayout.imageListGap
|
|
9
|
-
local imageListItemSize = _imageListLayout.imageListItemSize
|
|
10
|
-
local useImageListStyles = componentStyles("ImageList", function(theme, _param)
|
|
11
|
-
local cols = _param.cols
|
|
12
|
-
local gap = _param.gap
|
|
13
|
-
local itemSize = _param.itemSize
|
|
14
|
-
local size = imageListItemSize(itemSize)
|
|
15
|
-
local pad = theme.spacing.calc(imageListGap(gap))
|
|
16
|
-
local bar = theme.spacing.calc(2.5)
|
|
17
|
-
return createStyles({
|
|
18
|
-
root = {
|
|
19
|
-
AutomaticSize = Enum.AutomaticSize.XY,
|
|
20
|
-
Size = UDim2.fromScale(0, 0),
|
|
21
|
-
BackgroundTransparency = 1,
|
|
22
|
-
BorderSizePixel = 0,
|
|
23
|
-
},
|
|
24
|
-
grid = {
|
|
25
|
-
CellSize = UDim2.fromOffset(size, size),
|
|
26
|
-
CellPadding = UDim2.fromOffset(pad, pad),
|
|
27
|
-
FillDirection = Enum.FillDirection.Horizontal,
|
|
28
|
-
FillDirectionMaxCells = imageListCols(cols),
|
|
29
|
-
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
30
|
-
StartCorner = Enum.StartCorner.TopLeft,
|
|
31
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Left,
|
|
32
|
-
VerticalAlignment = Enum.VerticalAlignment.Top,
|
|
33
|
-
},
|
|
34
|
-
tile = {
|
|
35
|
-
Size = UDim2.fromOffset(size, size),
|
|
36
|
-
BackgroundColor3 = theme.palette.surface.input,
|
|
37
|
-
BorderSizePixel = 0,
|
|
38
|
-
AutoButtonColor = false,
|
|
39
|
-
ClipsDescendants = true,
|
|
40
|
-
Text = "",
|
|
41
|
-
},
|
|
42
|
-
corner = {
|
|
43
|
-
CornerRadius = UDim.new(0, theme.shape.borderRadius),
|
|
44
|
-
},
|
|
45
|
-
image = {
|
|
46
|
-
Size = UDim2.fromScale(1, 1),
|
|
47
|
-
BackgroundTransparency = 1,
|
|
48
|
-
BorderSizePixel = 0,
|
|
49
|
-
ScaleType = Enum.ScaleType.Crop,
|
|
50
|
-
},
|
|
51
|
-
title = {
|
|
52
|
-
Size = UDim2.new(1, 0, 0, bar),
|
|
53
|
-
Position = UDim2.new(0, 0, 1, -bar),
|
|
54
|
-
BackgroundColor3 = theme.palette.surface.overlay,
|
|
55
|
-
BackgroundTransparency = 0.25,
|
|
56
|
-
BorderSizePixel = 0,
|
|
57
|
-
Font = theme.typography.fontFamilies.default,
|
|
58
|
-
TextSize = theme.typography.fontSizes.caption,
|
|
59
|
-
TextColor3 = theme.palette.text.inverse,
|
|
60
|
-
TextXAlignment = Enum.TextXAlignment.Left,
|
|
61
|
-
TextTruncate = Enum.TextTruncate.AtEnd,
|
|
62
|
-
ZIndex = 2,
|
|
63
|
-
},
|
|
64
|
-
titlePad = {
|
|
65
|
-
PaddingLeft = UDim.new(0, theme.spacing.calc(0.5)),
|
|
66
|
-
PaddingRight = UDim.new(0, theme.spacing.calc(0.5)),
|
|
67
|
-
},
|
|
68
|
-
})
|
|
69
|
-
end)
|
|
70
|
-
local default = useImageListStyles
|
|
71
|
-
return {
|
|
72
|
-
default = default,
|
|
73
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local function imageListCols(cols)
|
|
3
|
-
if cols == nil or cols < 1 then
|
|
4
|
-
return 3
|
|
5
|
-
end
|
|
6
|
-
return math.floor(cols)
|
|
7
|
-
end
|
|
8
|
-
local function imageListGap(gap)
|
|
9
|
-
if gap == nil or gap < 0 then
|
|
10
|
-
return 1
|
|
11
|
-
end
|
|
12
|
-
return gap
|
|
13
|
-
end
|
|
14
|
-
local function imageListItemSize(itemSize)
|
|
15
|
-
if itemSize == nil or itemSize < 1 then
|
|
16
|
-
return 96
|
|
17
|
-
end
|
|
18
|
-
return math.floor(itemSize)
|
|
19
|
-
end
|
|
20
|
-
local function imageListTitle(title)
|
|
21
|
-
if title == nil or #title == 0 then
|
|
22
|
-
return nil
|
|
23
|
-
end
|
|
24
|
-
return title
|
|
25
|
-
end
|
|
26
|
-
return {
|
|
27
|
-
imageListCols = imageListCols,
|
|
28
|
-
imageListGap = imageListGap,
|
|
29
|
-
imageListItemSize = imageListItemSize,
|
|
30
|
-
imageListTitle = imageListTitle,
|
|
31
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "@rbxts/react";
|
|
2
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
-
import { BoxPad } from "./boxPad";
|
|
4
|
-
import { BoxBg } from "./Box.styles";
|
|
5
|
-
export interface BoxProps {
|
|
6
|
-
padding?: BoxPad;
|
|
7
|
-
bgcolor?: BoxBg;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare function Box(props: CustomizedProps<Frame, BoxProps>): JSX.Element;
|
|
11
|
-
export default Box;
|
|
@@ -1,49 +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 useBoxStyles = TS.import(script, script.Parent, "Box.styles").default
|
|
5
|
-
local function Box(props)
|
|
6
|
-
local _binding = props
|
|
7
|
-
local padding = _binding.padding
|
|
8
|
-
local bgcolor = _binding.bgcolor
|
|
9
|
-
local children = _binding.children
|
|
10
|
-
local className = _binding.className
|
|
11
|
-
local sx = _binding.sx
|
|
12
|
-
local id = _binding.id
|
|
13
|
-
local ref = _binding.ref
|
|
14
|
-
local styles = useBoxStyles({
|
|
15
|
-
padding = padding,
|
|
16
|
-
bgcolor = bgcolor,
|
|
17
|
-
})
|
|
18
|
-
local _attributes = {}
|
|
19
|
-
local _condition = id
|
|
20
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
21
|
-
_condition = "Box"
|
|
22
|
-
end
|
|
23
|
-
_attributes.key = _condition
|
|
24
|
-
_attributes.ref = ref
|
|
25
|
-
for _k, _v in styles.root do
|
|
26
|
-
_attributes[_k] = _v
|
|
27
|
-
end
|
|
28
|
-
if className then
|
|
29
|
-
for _k, _v in className do
|
|
30
|
-
_attributes[_k] = _v
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
if sx then
|
|
34
|
-
for _k, _v in sx do
|
|
35
|
-
_attributes[_k] = _v
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
local _condition_1 = padding ~= nil
|
|
39
|
-
if _condition_1 then
|
|
40
|
-
local _attributes_1 = table.clone(styles.padding)
|
|
41
|
-
setmetatable(_attributes_1, nil)
|
|
42
|
-
_condition_1 = React.createElement("uipadding", _attributes_1)
|
|
43
|
-
end
|
|
44
|
-
return React.createElement("frame", _attributes, _condition_1, children)
|
|
45
|
-
end
|
|
46
|
-
local default = Box
|
|
47
|
-
return {
|
|
48
|
-
default = default,
|
|
49
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BoxPad } from "./boxPad";
|
|
2
|
-
export type BoxBg = "transparent" | "paper" | "elevated" | "input";
|
|
3
|
-
declare const useBoxStyles: (props: {
|
|
4
|
-
padding?: BoxPad;
|
|
5
|
-
bgcolor?: BoxBg;
|
|
6
|
-
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
7
|
-
export default useBoxStyles;
|
|
@@ -1,34 +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 boxPadSides = TS.import(script, script.Parent, "boxPad").boxPadSides
|
|
7
|
-
local useBoxStyles = componentStyles("Box", function(theme, _param)
|
|
8
|
-
local padding = _param.padding
|
|
9
|
-
local bgcolor = _param.bgcolor
|
|
10
|
-
if bgcolor == nil then
|
|
11
|
-
bgcolor = "transparent"
|
|
12
|
-
end
|
|
13
|
-
local sides = boxPadSides(padding)
|
|
14
|
-
local fill = if bgcolor == "paper" then theme.palette.surface.paper elseif bgcolor == "elevated" then theme.palette.surface.elevated elseif bgcolor == "input" then theme.palette.surface.input else theme.palette.surface.paper
|
|
15
|
-
return createStyles({
|
|
16
|
-
root = {
|
|
17
|
-
AutomaticSize = Enum.AutomaticSize.XY,
|
|
18
|
-
Size = UDim2.fromScale(0, 0),
|
|
19
|
-
BackgroundColor3 = fill,
|
|
20
|
-
BackgroundTransparency = if bgcolor == "transparent" then 1 else 0,
|
|
21
|
-
BorderSizePixel = 0,
|
|
22
|
-
},
|
|
23
|
-
padding = {
|
|
24
|
-
PaddingTop = UDim.new(0, theme.spacing.calc(sides.top)),
|
|
25
|
-
PaddingRight = UDim.new(0, theme.spacing.calc(sides.right)),
|
|
26
|
-
PaddingBottom = UDim.new(0, theme.spacing.calc(sides.bottom)),
|
|
27
|
-
PaddingLeft = UDim.new(0, theme.spacing.calc(sides.left)),
|
|
28
|
-
},
|
|
29
|
-
})
|
|
30
|
-
end)
|
|
31
|
-
local default = useBoxStyles
|
|
32
|
-
return {
|
|
33
|
-
default = default,
|
|
34
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "@rbxts/react";
|
|
2
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
-
import { ContainerMaxWidth } from "./containerWidth";
|
|
4
|
-
export interface ContainerProps {
|
|
5
|
-
maxWidth?: ContainerMaxWidth;
|
|
6
|
-
disableGutters?: boolean;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare function Container(props: CustomizedProps<Frame, ContainerProps>): JSX.Element;
|
|
10
|
-
export default Container;
|
|
@@ -1,54 +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 useContainerStyles = TS.import(script, script.Parent, "Container.styles").default
|
|
5
|
-
local function Container(props)
|
|
6
|
-
local _binding = props
|
|
7
|
-
local maxWidth = _binding.maxWidth
|
|
8
|
-
local disableGutters = _binding.disableGutters
|
|
9
|
-
local children = _binding.children
|
|
10
|
-
local className = _binding.className
|
|
11
|
-
local sx = _binding.sx
|
|
12
|
-
local id = _binding.id
|
|
13
|
-
local ref = _binding.ref
|
|
14
|
-
local styles = useContainerStyles({
|
|
15
|
-
maxWidth = maxWidth,
|
|
16
|
-
disableGutters = disableGutters,
|
|
17
|
-
})
|
|
18
|
-
local _attributes = {}
|
|
19
|
-
local _condition = id
|
|
20
|
-
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
21
|
-
_condition = "Container"
|
|
22
|
-
end
|
|
23
|
-
_attributes.key = _condition
|
|
24
|
-
_attributes.ref = ref
|
|
25
|
-
for _k, _v in styles.root do
|
|
26
|
-
_attributes[_k] = _v
|
|
27
|
-
end
|
|
28
|
-
if className then
|
|
29
|
-
for _k, _v in className do
|
|
30
|
-
_attributes[_k] = _v
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
if sx then
|
|
34
|
-
for _k, _v in sx do
|
|
35
|
-
_attributes[_k] = _v
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
local _attributes_1 = {
|
|
39
|
-
key = "Inner",
|
|
40
|
-
}
|
|
41
|
-
for _k, _v in styles.inner do
|
|
42
|
-
_attributes_1[_k] = _v
|
|
43
|
-
end
|
|
44
|
-
local _attributes_2 = table.clone(styles.constraint)
|
|
45
|
-
setmetatable(_attributes_2, nil)
|
|
46
|
-
local _exp = React.createElement("uisizeconstraint", _attributes_2)
|
|
47
|
-
local _attributes_3 = table.clone(styles.gutter)
|
|
48
|
-
setmetatable(_attributes_3, nil)
|
|
49
|
-
return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, React.createElement("uipadding", _attributes_3), children))
|
|
50
|
-
end
|
|
51
|
-
local default = Container
|
|
52
|
-
return {
|
|
53
|
-
default = default,
|
|
54
|
-
}
|