@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.
- 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 -4
- package/out/ui/packages/chip/components/Chip.luau +2 -44
- package/out/ui/packages/chip/components/Chip.styles.d.ts +0 -4
- package/out/ui/packages/chip/components/Chip.styles.luau +7 -46
- 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 -4
- package/out/ui/packages/menu/components/Menu.luau +23 -52
- 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 -733
- 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
|
@@ -13,10 +13,6 @@ local function Autocomplete(props)
|
|
|
13
13
|
local loading = _binding.loading
|
|
14
14
|
local placeholder = _binding.placeholder
|
|
15
15
|
local searchable = _binding.searchable
|
|
16
|
-
local defaultOpen = _binding.defaultOpen
|
|
17
|
-
local defaultQuery = _binding.defaultQuery
|
|
18
|
-
local emptyText = _binding.emptyText
|
|
19
|
-
local empty = _binding.empty
|
|
20
16
|
local reducedMotion = _binding.reducedMotion
|
|
21
17
|
local size = _binding.size
|
|
22
18
|
local className = _binding.className
|
|
@@ -32,10 +28,6 @@ local function Autocomplete(props)
|
|
|
32
28
|
loading = loading,
|
|
33
29
|
placeholder = placeholder,
|
|
34
30
|
searchable = autocompleteSearchable(searchable),
|
|
35
|
-
defaultOpen = defaultOpen,
|
|
36
|
-
defaultQuery = defaultQuery,
|
|
37
|
-
emptyText = emptyText,
|
|
38
|
-
empty = empty,
|
|
39
31
|
reducedMotion = reducedMotion,
|
|
40
32
|
size = size,
|
|
41
33
|
className = className,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
-
import { AvatarVariant } from "./Avatar.styles";
|
|
3
2
|
export interface AvatarProps {
|
|
4
3
|
name?: string;
|
|
5
4
|
image?: string;
|
|
6
5
|
size?: number;
|
|
7
|
-
variant?: AvatarVariant;
|
|
8
6
|
}
|
|
9
7
|
declare function Avatar(props: CustomizedProps<Frame, AvatarProps>): JSX.Element;
|
|
10
8
|
export default Avatar;
|
|
@@ -11,17 +11,12 @@ local function Avatar(props)
|
|
|
11
11
|
end
|
|
12
12
|
local image = _binding.image
|
|
13
13
|
local size = _binding.size
|
|
14
|
-
local variant = _binding.variant
|
|
15
|
-
if variant == nil then
|
|
16
|
-
variant = "circular"
|
|
17
|
-
end
|
|
18
14
|
local className = _binding.className
|
|
19
15
|
local sx = _binding.sx
|
|
20
16
|
local id = _binding.id
|
|
21
17
|
local ref = _binding.ref
|
|
22
18
|
local styles = useAvatarStyles({
|
|
23
19
|
size = size,
|
|
24
|
-
variant = variant,
|
|
25
20
|
})
|
|
26
21
|
local _attributes = {}
|
|
27
22
|
local _condition = id
|
|
@@ -43,33 +38,30 @@ local function Avatar(props)
|
|
|
43
38
|
_attributes[_k] = _v
|
|
44
39
|
end
|
|
45
40
|
end
|
|
46
|
-
local
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
setmetatable(_attributes_1, nil)
|
|
50
|
-
_condition_1 = React.createElement("uicorner", _attributes_1)
|
|
51
|
-
end
|
|
41
|
+
local _attributes_1 = table.clone(styles.corner)
|
|
42
|
+
setmetatable(_attributes_1, nil)
|
|
43
|
+
local _exp = React.createElement("uicorner", _attributes_1)
|
|
52
44
|
local _result
|
|
53
45
|
if image ~= nil then
|
|
54
|
-
local
|
|
46
|
+
local _attributes_2 = {
|
|
55
47
|
key = "Image",
|
|
56
48
|
}
|
|
57
49
|
for _k, _v in styles.image do
|
|
58
|
-
|
|
50
|
+
_attributes_2[_k] = _v
|
|
59
51
|
end
|
|
60
|
-
|
|
61
|
-
_result = (React.createElement("imagelabel",
|
|
52
|
+
_attributes_2.Image = image
|
|
53
|
+
_result = (React.createElement("imagelabel", _attributes_2))
|
|
62
54
|
else
|
|
63
|
-
local
|
|
55
|
+
local _attributes_2 = {
|
|
64
56
|
key = "Initials",
|
|
65
57
|
}
|
|
66
58
|
for _k, _v in styles.text do
|
|
67
|
-
|
|
59
|
+
_attributes_2[_k] = _v
|
|
68
60
|
end
|
|
69
|
-
|
|
70
|
-
_result = (React.createElement("textlabel",
|
|
61
|
+
_attributes_2.Text = avatarInitials(name)
|
|
62
|
+
_result = (React.createElement("textlabel", _attributes_2))
|
|
71
63
|
end
|
|
72
|
-
return React.createElement("frame", _attributes,
|
|
64
|
+
return React.createElement("frame", _attributes, _exp, _result)
|
|
73
65
|
end
|
|
74
66
|
local default = Avatar
|
|
75
67
|
return {
|
|
@@ -8,10 +8,6 @@ local useAvatarStyles = componentStyles("Avatar", function(theme, _param)
|
|
|
8
8
|
if size == nil then
|
|
9
9
|
size = 40
|
|
10
10
|
end
|
|
11
|
-
local variant = _param.variant
|
|
12
|
-
if variant == nil then
|
|
13
|
-
variant = "circular"
|
|
14
|
-
end
|
|
15
11
|
return createStyles({
|
|
16
12
|
root = {
|
|
17
13
|
Size = UDim2.fromOffset(size, size),
|
|
@@ -33,7 +29,7 @@ local useAvatarStyles = componentStyles("Avatar", function(theme, _param)
|
|
|
33
29
|
TextColor3 = theme.palette.primary.on,
|
|
34
30
|
},
|
|
35
31
|
corner = {
|
|
36
|
-
CornerRadius =
|
|
32
|
+
CornerRadius = UDim.new(1, 0),
|
|
37
33
|
},
|
|
38
34
|
})
|
|
39
35
|
end)
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import React from "@rbxts/react";
|
|
2
2
|
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
-
import { BadgeColor } from "./Badge.styles";
|
|
4
3
|
export interface BadgeProps {
|
|
5
4
|
count?: number;
|
|
6
5
|
max?: number;
|
|
7
6
|
invisible?: boolean;
|
|
8
|
-
variant?: "standard" | "dot";
|
|
9
|
-
color?: BadgeColor;
|
|
10
7
|
children?: React.ReactNode;
|
|
11
8
|
}
|
|
12
9
|
declare function Badge(props: CustomizedProps<Frame, BadgeProps>): JSX.Element;
|
|
@@ -17,25 +17,13 @@ local function Badge(props)
|
|
|
17
17
|
if invisible == nil then
|
|
18
18
|
invisible = false
|
|
19
19
|
end
|
|
20
|
-
local variant = _binding.variant
|
|
21
|
-
if variant == nil then
|
|
22
|
-
variant = "standard"
|
|
23
|
-
end
|
|
24
|
-
local color = _binding.color
|
|
25
|
-
if color == nil then
|
|
26
|
-
color = "error"
|
|
27
|
-
end
|
|
28
20
|
local children = _binding.children
|
|
29
21
|
local className = _binding.className
|
|
30
22
|
local sx = _binding.sx
|
|
31
23
|
local id = _binding.id
|
|
32
24
|
local ref = _binding.ref
|
|
33
|
-
local styles = useBadgeStyles(
|
|
34
|
-
|
|
35
|
-
color = color,
|
|
36
|
-
})
|
|
37
|
-
local isDot = variant == "dot"
|
|
38
|
-
local shown = not invisible and (isDot or count > 0)
|
|
25
|
+
local styles = useBadgeStyles()
|
|
26
|
+
local shown = not invisible and count > 0
|
|
39
27
|
local _attributes = {}
|
|
40
28
|
local _condition = id
|
|
41
29
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
@@ -65,16 +53,13 @@ local function Badge(props)
|
|
|
65
53
|
for _k, _v in styles.badge do
|
|
66
54
|
_attributes_1[_k] = _v
|
|
67
55
|
end
|
|
68
|
-
_attributes_1.Text =
|
|
69
|
-
local
|
|
70
|
-
if _condition_2 then
|
|
71
|
-
local _attributes_2 = table.clone(styles.padding)
|
|
72
|
-
setmetatable(_attributes_2, nil)
|
|
73
|
-
_condition_2 = React.createElement("uipadding", _attributes_2)
|
|
74
|
-
end
|
|
75
|
-
local _attributes_2 = table.clone(styles.corner)
|
|
56
|
+
_attributes_1.Text = badgeText(count, max)
|
|
57
|
+
local _attributes_2 = table.clone(styles.padding)
|
|
76
58
|
setmetatable(_attributes_2, nil)
|
|
77
|
-
|
|
59
|
+
local _exp_1 = React.createElement("uipadding", _attributes_2)
|
|
60
|
+
local _attributes_3 = table.clone(styles.corner)
|
|
61
|
+
setmetatable(_attributes_3, nil)
|
|
62
|
+
_condition_1 = (React.createElement("textlabel", _attributes_1, _exp_1, React.createElement("uicorner", _attributes_3)))
|
|
78
63
|
end
|
|
79
64
|
return React.createElement("frame", _attributes, _exp, _condition_1)
|
|
80
65
|
end
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const useBadgeStyles: (props: {
|
|
3
|
-
variant?: "standard" | "dot";
|
|
4
|
-
color?: BadgeColor;
|
|
5
|
-
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
1
|
+
declare const useBadgeStyles: () => import("../../../../theme/index").ClassNameMap<string>;
|
|
6
2
|
export default useBadgeStyles;
|
|
@@ -3,17 +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 useBadgeStyles = componentStyles("Badge", function(theme
|
|
7
|
-
local variant = _param.variant
|
|
8
|
-
if variant == nil then
|
|
9
|
-
variant = "standard"
|
|
10
|
-
end
|
|
11
|
-
local color = _param.color
|
|
12
|
-
if color == nil then
|
|
13
|
-
color = "error"
|
|
14
|
-
end
|
|
15
|
-
local diameter = if variant == "dot" then theme.spacing.calc(1) else theme.spacing.calc(2) + theme.padding.calc(1)
|
|
16
|
-
local tone = if color == "primary" then theme.palette.primary elseif color == "success" then theme.palette.status.success else theme.palette.status.error
|
|
6
|
+
local useBadgeStyles = componentStyles("Badge", function(theme)
|
|
17
7
|
return createStyles({
|
|
18
8
|
root = {
|
|
19
9
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -24,23 +14,21 @@ local useBadgeStyles = componentStyles("Badge", function(theme, _param)
|
|
|
24
14
|
badge = {
|
|
25
15
|
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
26
16
|
Position = UDim2.fromScale(1, 0),
|
|
27
|
-
AutomaticSize =
|
|
28
|
-
Size = UDim2.fromOffset(
|
|
29
|
-
BackgroundColor3 =
|
|
17
|
+
AutomaticSize = Enum.AutomaticSize.XY,
|
|
18
|
+
Size = UDim2.fromOffset(theme.padding.calc(2), theme.padding.calc(2)),
|
|
19
|
+
BackgroundColor3 = theme.palette.status.error.main,
|
|
30
20
|
BorderSizePixel = 0,
|
|
31
21
|
Font = theme.typography.fontFamilies.default,
|
|
32
22
|
TextSize = theme.typography.fontSizes.caption,
|
|
33
|
-
TextColor3 =
|
|
34
|
-
TextXAlignment = Enum.TextXAlignment.Center,
|
|
35
|
-
TextYAlignment = Enum.TextYAlignment.Center,
|
|
23
|
+
TextColor3 = theme.palette.text.inverse,
|
|
36
24
|
ZIndex = 2,
|
|
37
25
|
},
|
|
38
26
|
padding = {
|
|
39
|
-
PaddingLeft = UDim.new(0,
|
|
40
|
-
PaddingRight = UDim.new(0,
|
|
27
|
+
PaddingLeft = UDim.new(0, theme.padding.calc(0.5)),
|
|
28
|
+
PaddingRight = UDim.new(0, theme.padding.calc(0.5)),
|
|
41
29
|
},
|
|
42
30
|
corner = {
|
|
43
|
-
CornerRadius = UDim.new(
|
|
31
|
+
CornerRadius = UDim.new(1, 0),
|
|
44
32
|
},
|
|
45
33
|
})
|
|
46
34
|
end)
|
|
@@ -5,7 +5,6 @@ export interface BottomNavigationProps<T> {
|
|
|
5
5
|
options: ChoiceOption<T>[];
|
|
6
6
|
onChange: (value: T) => void;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
-
showLabels?: boolean;
|
|
9
8
|
}
|
|
10
9
|
declare function BottomNavigation<T>(props: CustomizedProps<Frame, BottomNavigationProps<T>>): JSX.Element;
|
|
11
10
|
export default BottomNavigation;
|
|
@@ -10,17 +10,11 @@ local function BottomNavigation(props)
|
|
|
10
10
|
local options = _binding.options
|
|
11
11
|
local onChange = _binding.onChange
|
|
12
12
|
local disabled = _binding.disabled
|
|
13
|
-
local showLabels = _binding.showLabels
|
|
14
|
-
if showLabels == nil then
|
|
15
|
-
showLabels = true
|
|
16
|
-
end
|
|
17
13
|
local className = _binding.className
|
|
18
14
|
local sx = _binding.sx
|
|
19
15
|
local id = _binding.id
|
|
20
16
|
local ref = _binding.ref
|
|
21
|
-
local styles = useBottomNavigationStyles(
|
|
22
|
-
showLabels = showLabels,
|
|
23
|
-
})
|
|
17
|
+
local styles = useBottomNavigationStyles()
|
|
24
18
|
local count = math.max(#options, 1)
|
|
25
19
|
local _attributes = {}
|
|
26
20
|
local _condition = id
|
|
@@ -57,7 +51,7 @@ local function BottomNavigation(props)
|
|
|
57
51
|
_attributes_2[_k] = _v
|
|
58
52
|
end
|
|
59
53
|
_attributes_2.Size = UDim2.new(1 / count, 0, 1, 0)
|
|
60
|
-
_attributes_2.Text =
|
|
54
|
+
_attributes_2.Text = choice.label
|
|
61
55
|
_attributes_2.LayoutOrder = index
|
|
62
56
|
_attributes_2.Active = active
|
|
63
57
|
_attributes_2.Selectable = active
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
declare const useBottomNavigationStyles: (
|
|
2
|
-
showLabels?: boolean;
|
|
3
|
-
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
1
|
+
declare const useBottomNavigationStyles: () => import("../../../../theme/index").ClassNameMap<string>;
|
|
4
2
|
export default useBottomNavigationStyles;
|
|
@@ -3,14 +3,10 @@ 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 useBottomNavigationStyles = componentStyles("BottomNavigation", function(theme
|
|
7
|
-
local showLabels = _param.showLabels
|
|
8
|
-
if showLabels == nil then
|
|
9
|
-
showLabels = true
|
|
10
|
-
end
|
|
6
|
+
local useBottomNavigationStyles = componentStyles("BottomNavigation", function(theme)
|
|
11
7
|
local _object = {
|
|
12
8
|
root = {
|
|
13
|
-
Size = UDim2.new(1, 0, 0, theme.spacing.calc(
|
|
9
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(7)),
|
|
14
10
|
BackgroundColor3 = theme.palette.surface.elevated,
|
|
15
11
|
BorderSizePixel = 0,
|
|
16
12
|
ZIndex = 11000,
|
|
@@ -6,7 +6,6 @@ export interface BreadcrumbItem {
|
|
|
6
6
|
export interface BreadcrumbsProps {
|
|
7
7
|
items: BreadcrumbItem[];
|
|
8
8
|
separator?: string;
|
|
9
|
-
maxItems?: number;
|
|
10
9
|
}
|
|
11
10
|
declare function Breadcrumbs(props: CustomizedProps<Frame, BreadcrumbsProps>): JSX.Element;
|
|
12
11
|
export default Breadcrumbs;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
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
|
-
local
|
|
6
|
-
local breadcrumbCurrent = _breadcrumbItems.breadcrumbCurrent
|
|
7
|
-
local breadcrumbVisible = _breadcrumbItems.breadcrumbVisible
|
|
5
|
+
local breadcrumbCurrent = TS.import(script, script.Parent, "breadcrumbItems").breadcrumbCurrent
|
|
8
6
|
local useBreadcrumbStyles = TS.import(script, script.Parent, "Breadcrumbs.styles").default
|
|
9
7
|
local function Breadcrumbs(props)
|
|
10
8
|
local _binding = props
|
|
@@ -13,13 +11,11 @@ local function Breadcrumbs(props)
|
|
|
13
11
|
if separator == nil then
|
|
14
12
|
separator = "/"
|
|
15
13
|
end
|
|
16
|
-
local maxItems = _binding.maxItems
|
|
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
18
|
local styles = useBreadcrumbStyles()
|
|
22
|
-
local visible = breadcrumbVisible(items, maxItems)
|
|
23
19
|
local _attributes = {}
|
|
24
20
|
local _condition = id
|
|
25
21
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
@@ -44,68 +40,38 @@ local function Breadcrumbs(props)
|
|
|
44
40
|
setmetatable(_attributes_1, nil)
|
|
45
41
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
46
42
|
-- ▼ ReadonlyArray.map ▼
|
|
47
|
-
local _newValue = table.create(#
|
|
48
|
-
local _callback = function(
|
|
49
|
-
local current =
|
|
50
|
-
local
|
|
51
|
-
local _condition_1 = order > 0
|
|
43
|
+
local _newValue = table.create(#items)
|
|
44
|
+
local _callback = function(item, index)
|
|
45
|
+
local current = breadcrumbCurrent(index, #items)
|
|
46
|
+
local _condition_1 = index > 0
|
|
52
47
|
if _condition_1 then
|
|
53
48
|
local _attributes_2 = table.clone(styles.separator)
|
|
54
49
|
setmetatable(_attributes_2, nil)
|
|
55
50
|
_attributes_2.Text = separator
|
|
56
|
-
_attributes_2.LayoutOrder =
|
|
51
|
+
_attributes_2.LayoutOrder = index * 2
|
|
57
52
|
_condition_1 = React.createElement("textlabel", _attributes_2)
|
|
58
53
|
end
|
|
59
|
-
local
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
_attributes_2.LayoutOrder = order * 2 + 1
|
|
71
|
-
local _condition_2 = not current
|
|
72
|
-
if _condition_2 then
|
|
73
|
-
local _result_1 = item
|
|
74
|
-
if _result_1 ~= nil then
|
|
75
|
-
_result_1 = _result_1.onActivated
|
|
54
|
+
local _attributes_2 = table.clone(cx(styles.item, current and styles.current))
|
|
55
|
+
setmetatable(_attributes_2, nil)
|
|
56
|
+
_attributes_2.Text = item.label
|
|
57
|
+
_attributes_2.LayoutOrder = index * 2 + 1
|
|
58
|
+
_attributes_2.Active = not current and item.onActivated ~= nil
|
|
59
|
+
_attributes_2.Selectable = not current and item.onActivated ~= nil
|
|
60
|
+
_attributes_2.Event = {
|
|
61
|
+
Activated = function()
|
|
62
|
+
local _result = item.onActivated
|
|
63
|
+
if _result ~= nil then
|
|
64
|
+
_result = _result()
|
|
76
65
|
end
|
|
77
|
-
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
local _condition_3 = not current
|
|
81
|
-
if _condition_3 then
|
|
82
|
-
local _result_1 = item
|
|
83
|
-
if _result_1 ~= nil then
|
|
84
|
-
_result_1 = _result_1.onActivated
|
|
85
|
-
end
|
|
86
|
-
_condition_3 = _result_1 ~= nil
|
|
87
|
-
end
|
|
88
|
-
_attributes_2.Selectable = _condition_3
|
|
89
|
-
_attributes_2.Event = {
|
|
90
|
-
Activated = function()
|
|
91
|
-
local _result_1 = item
|
|
92
|
-
if _result_1 ~= nil then
|
|
93
|
-
_result_1 = _result_1.onActivated
|
|
94
|
-
if _result_1 ~= nil then
|
|
95
|
-
_result_1 = _result_1()
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
return _result_1
|
|
99
|
-
end,
|
|
100
|
-
}
|
|
101
|
-
_result = (React.createElement("textbutton", _attributes_2))
|
|
102
|
-
end
|
|
66
|
+
return _result
|
|
67
|
+
end,
|
|
68
|
+
}
|
|
103
69
|
return React.createElement(React.Fragment, {
|
|
104
|
-
key = `{
|
|
105
|
-
}, _condition_1,
|
|
70
|
+
key = `{item.label}-{index}`,
|
|
71
|
+
}, _condition_1, React.createElement("textbutton", _attributes_2))
|
|
106
72
|
end
|
|
107
|
-
for _k, _v in
|
|
108
|
-
_newValue[_k] = _callback(_v, _k - 1,
|
|
73
|
+
for _k, _v in items do
|
|
74
|
+
_newValue[_k] = _callback(_v, _k - 1, items)
|
|
109
75
|
end
|
|
110
76
|
-- ▲ ReadonlyArray.map ▲
|
|
111
77
|
return React.createElement("frame", _attributes, _exp, _newValue)
|
|
@@ -1,10 +1 @@
|
|
|
1
1
|
export declare function breadcrumbCurrent(index: number, count: number): boolean;
|
|
2
|
-
export interface BreadcrumbSlice {
|
|
3
|
-
label: string;
|
|
4
|
-
index: number;
|
|
5
|
-
ellipsis?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/** Collapse middle items when over maxItems (keep ends). */
|
|
8
|
-
export declare function breadcrumbVisible<T extends {
|
|
9
|
-
label: string;
|
|
10
|
-
}>(items: T[], maxItems?: number): BreadcrumbSlice[];
|
|
@@ -2,74 +2,6 @@
|
|
|
2
2
|
local function breadcrumbCurrent(index, count)
|
|
3
3
|
return count > 0 and index == count - 1
|
|
4
4
|
end
|
|
5
|
-
--* Collapse middle items when over maxItems (keep ends).
|
|
6
|
-
local function breadcrumbVisible(items, maxItems)
|
|
7
|
-
local count = #items
|
|
8
|
-
if maxItems == nil or maxItems < 1 or count <= maxItems then
|
|
9
|
-
local out = {}
|
|
10
|
-
do
|
|
11
|
-
local i = 0
|
|
12
|
-
local _shouldIncrement = false
|
|
13
|
-
while true do
|
|
14
|
-
if _shouldIncrement then
|
|
15
|
-
i += 1
|
|
16
|
-
else
|
|
17
|
-
_shouldIncrement = true
|
|
18
|
-
end
|
|
19
|
-
if not (i < count) then
|
|
20
|
-
break
|
|
21
|
-
end
|
|
22
|
-
local _arg0 = {
|
|
23
|
-
label = items[i + 1].label,
|
|
24
|
-
index = i,
|
|
25
|
-
}
|
|
26
|
-
table.insert(out, _arg0)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
return out
|
|
30
|
-
end
|
|
31
|
-
if maxItems == 1 then
|
|
32
|
-
return { {
|
|
33
|
-
label = items[count].label,
|
|
34
|
-
index = count - 1,
|
|
35
|
-
} }
|
|
36
|
-
end
|
|
37
|
-
local keepEnd = 1
|
|
38
|
-
local rawStart = maxItems - keepEnd - 1
|
|
39
|
-
local keepStart = if rawStart < 1 then 1 else rawStart
|
|
40
|
-
local out = {}
|
|
41
|
-
do
|
|
42
|
-
local i = 0
|
|
43
|
-
local _shouldIncrement = false
|
|
44
|
-
while true do
|
|
45
|
-
if _shouldIncrement then
|
|
46
|
-
i += 1
|
|
47
|
-
else
|
|
48
|
-
_shouldIncrement = true
|
|
49
|
-
end
|
|
50
|
-
if not (i < keepStart) then
|
|
51
|
-
break
|
|
52
|
-
end
|
|
53
|
-
local _arg0 = {
|
|
54
|
-
label = items[i + 1].label,
|
|
55
|
-
index = i,
|
|
56
|
-
}
|
|
57
|
-
table.insert(out, _arg0)
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
table.insert(out, {
|
|
61
|
-
label = "…",
|
|
62
|
-
index = -1,
|
|
63
|
-
ellipsis = true,
|
|
64
|
-
})
|
|
65
|
-
local _arg0 = {
|
|
66
|
-
label = items[count].label,
|
|
67
|
-
index = count - 1,
|
|
68
|
-
}
|
|
69
|
-
table.insert(out, _arg0)
|
|
70
|
-
return out
|
|
71
|
-
end
|
|
72
5
|
return {
|
|
73
6
|
breadcrumbCurrent = breadcrumbCurrent,
|
|
74
|
-
breadcrumbVisible = breadcrumbVisible,
|
|
75
7
|
}
|
|
@@ -2,7 +2,4 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local exports = {}
|
|
4
4
|
exports.Breadcrumbs = TS.import(script, script, "components", "Breadcrumbs").default
|
|
5
|
-
local _breadcrumbItems = TS.import(script, script, "components", "breadcrumbItems")
|
|
6
|
-
exports.breadcrumbCurrent = _breadcrumbItems.breadcrumbCurrent
|
|
7
|
-
exports.breadcrumbVisible = _breadcrumbItems.breadcrumbVisible
|
|
8
5
|
return exports
|
|
@@ -4,7 +4,6 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
|
4
4
|
local React = _react
|
|
5
5
|
local useEffect = _react.useEffect
|
|
6
6
|
local useState = _react.useState
|
|
7
|
-
local useReducedMotion = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "hooks").useReducedMotion
|
|
8
7
|
local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
|
|
9
8
|
local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
|
|
10
9
|
local LoadingStroke = TS.import(script, script.Parent.Parent.Parent, "loadingStroke").LoadingStroke
|
|
@@ -37,10 +36,10 @@ local function Button(props)
|
|
|
37
36
|
if loadingPosition == nil then
|
|
38
37
|
loadingPosition = "center"
|
|
39
38
|
end
|
|
40
|
-
local
|
|
39
|
+
local reducedMotion = _binding.reducedMotion
|
|
41
40
|
local rounded = _binding.rounded
|
|
42
41
|
if rounded == nil then
|
|
43
|
-
rounded =
|
|
42
|
+
rounded = false
|
|
44
43
|
end
|
|
45
44
|
local hoveringDisabled = _binding.hoveringDisabled
|
|
46
45
|
if hoveringDisabled == nil then
|
|
@@ -70,14 +69,12 @@ local function Button(props)
|
|
|
70
69
|
local stroke = _binding_1.stroke
|
|
71
70
|
local _binding_2 = useTheme()
|
|
72
71
|
local theme = _binding_2.theme
|
|
73
|
-
local reducedMotion = useReducedMotion(reducedProp)
|
|
74
72
|
local hovering, setHovering = useState(false)
|
|
75
73
|
local focused, setFocused = useState(false)
|
|
76
74
|
local active = canActivate(disabled, loading)
|
|
77
75
|
local pressed = disabled or (not hoveringDisabled and active and (hovering or focused))
|
|
78
76
|
local face = buttonFace(text, loading, loadingLabel)
|
|
79
77
|
local place = spinnerPlace(loadingPosition)
|
|
80
|
-
local busy = loading or animating
|
|
81
78
|
local branded = (props.color or "primary") == "primary"
|
|
82
79
|
local spinnerColor = if variant == "contained" then if branded then theme.palette.primary.on else theme.palette.text.inverse elseif branded then theme.palette.primary.main else theme.palette.text.primary
|
|
83
80
|
useEffect(function()
|
|
@@ -189,15 +186,14 @@ local function Button(props)
|
|
|
189
186
|
end
|
|
190
187
|
end,
|
|
191
188
|
}
|
|
192
|
-
local _condition_1 = variant == "outlined" and not
|
|
189
|
+
local _condition_1 = variant == "outlined" and not animating
|
|
193
190
|
if _condition_1 then
|
|
194
191
|
local _attributes_1 = table.clone(stroke)
|
|
195
192
|
setmetatable(_attributes_1, nil)
|
|
196
193
|
_condition_1 = React.createElement("uistroke", _attributes_1)
|
|
197
194
|
end
|
|
198
|
-
local _exp =
|
|
199
|
-
animating =
|
|
200
|
-
color = spinnerColor,
|
|
195
|
+
local _exp = animating and React.createElement(LoadingStroke, {
|
|
196
|
+
animating = animating,
|
|
201
197
|
})
|
|
202
198
|
local _condition_2 = rounded
|
|
203
199
|
if _condition_2 then
|
|
@@ -11,7 +11,6 @@ local function Card(props)
|
|
|
11
11
|
if elevation == nil then
|
|
12
12
|
elevation = "flat"
|
|
13
13
|
end
|
|
14
|
-
local square = _binding.square
|
|
15
14
|
local actions = _binding.actions
|
|
16
15
|
local children = _binding.children
|
|
17
16
|
local styles = useCardStyles()
|
|
@@ -67,7 +66,6 @@ local function Card(props)
|
|
|
67
66
|
end
|
|
68
67
|
return React.createElement(Paper, {
|
|
69
68
|
elevation = elevation,
|
|
70
|
-
square = square,
|
|
71
69
|
}, React.createElement("frame", _attributes, _exp, _condition, _condition_1, _exp_1, _condition_2))
|
|
72
70
|
end
|
|
73
71
|
local default = Card
|
|
@@ -2,4 +2,4 @@ export type CheckboxPointer = "rest" | "hover" | "press" | "focus";
|
|
|
2
2
|
export declare function checkboxMark(value: boolean, mixed?: boolean): "" | "–" | "✓";
|
|
3
3
|
export declare function checkboxPointer(hovering: boolean, pressed: boolean, focused: boolean): CheckboxPointer;
|
|
4
4
|
export declare function checkboxBoxTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 1 | 0 | 0.7 | 0.55 | 0.85;
|
|
5
|
-
export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.25 | 0.
|
|
5
|
+
export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.25 | 0.55 | 0.45 | 0.2;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
export interface ChipProps {
|
|
3
3
|
label: string;
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
size?: ControlSize;
|
|
7
|
-
variant?: "filled" | "outlined";
|
|
8
6
|
onActivated?: () => void;
|
|
9
|
-
onDelete?: () => void;
|
|
10
7
|
}
|
|
11
8
|
declare function Chip(props: CustomizedProps<TextButton, ChipProps>): JSX.Element;
|
|
12
9
|
export default Chip;
|