@jordan-mace/chaser-design-system 1.2.7 → 1.2.9
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/dist/index.d.mts +1834 -0
- package/dist/index.mjs +4729 -0
- package/dist/styles/layers.css.d.mts +6 -0
- package/dist/styles/layers.css.mjs +7 -0
- package/dist/styles/reset.css.d.mts +1 -0
- package/dist/styles/reset.css.mjs +24 -0
- package/dist/styles/sprinkles.css.d.mts +246 -0
- package/dist/styles/sprinkles.css.mjs +200 -0
- package/dist/styles/theme.css.d.mts +41 -0
- package/dist/styles/theme.css.mjs +50 -0
- package/package.json +18 -9
- package/src/components/Accordion/Accordion.tsx +21 -16
- package/src/components/Alert/Alert.tsx +11 -7
- package/src/components/Avatar/Avatar.tsx +16 -14
- package/src/components/Badge/Badge.tsx +8 -6
- package/src/components/Box/reset.css.ts +2 -2
- package/src/components/Breadcrumb/Breadcrumb.tsx +7 -10
- package/src/components/Button/Button.tsx +9 -11
- package/src/components/Card/Card.tsx +8 -10
- package/src/components/Checkbox/Checkbox.tsx +11 -8
- package/src/components/Collapse/Collapse.tsx +12 -9
- package/src/components/Combobox/Combobox.tsx +60 -31
- package/src/components/Container/Container.tsx +4 -3
- package/src/components/Divider/Divider.tsx +9 -5
- package/src/components/Drawer/Drawer.tsx +20 -13
- package/src/components/DropdownMenu/DropdownMenu.tsx +37 -15
- package/src/components/EmptyState/EmptyState.tsx +9 -12
- package/src/components/FileUpload/FileUpload.tsx +61 -45
- package/src/components/Form/Form.tsx +6 -8
- package/src/components/Grid/Grid.tsx +18 -13
- package/src/components/Icon/Icon.tsx +7 -6
- package/src/components/Input/Input.tsx +7 -8
- package/src/components/Kbd/Kbd.tsx +5 -4
- package/src/components/List/List.tsx +6 -2
- package/src/components/List/ListItem.tsx +6 -2
- package/src/components/Modal/Modal.tsx +16 -5
- package/src/components/Navbar/Navbar.tsx +2 -1
- package/src/components/Navbar/NavbarItem.tsx +2 -1
- package/src/components/NumberInput/NumberInput.tsx +29 -22
- package/src/components/Pagination/Pagination.tsx +39 -28
- package/src/components/Popover/Popover.tsx +37 -21
- package/src/components/Progress/Progress.tsx +39 -38
- package/src/components/Radio/Radio.tsx +12 -6
- package/src/components/ScrollArea/ScrollArea.tsx +9 -10
- package/src/components/Select/Select.tsx +12 -7
- package/src/components/Separator/Separator.tsx +8 -14
- package/src/components/Skeleton/Skeleton.tsx +11 -13
- package/src/components/Spinner/Spinner.tsx +15 -11
- package/src/components/Stack/Stack.tsx +34 -15
- package/src/components/Stepper/Stepper.tsx +19 -17
- package/src/components/Table/Table.tsx +31 -21
- package/src/components/Tabs/Tabs.tsx +14 -10
- package/src/components/Tag/Tag.tsx +8 -7
- package/src/components/Text/Header.tsx +6 -5
- package/src/components/Text/P.tsx +5 -4
- package/src/components/TextArea/TextArea.tsx +7 -8
- package/src/components/Toggle/Toggle.tsx +16 -7
- package/src/components/Tooltip/Tooltip.tsx +16 -11
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +7 -8
- package/src/index.ts +6 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -16
- package/dist/components/Accordion/Accordion.js +0 -43
- package/dist/components/Accordion/index.d.ts +0 -1
- package/dist/components/Accordion/index.js +0 -1
- package/dist/components/Accordion/styles.css.d.ts +0 -7
- package/dist/components/Accordion/styles.css.js +0 -65
- package/dist/components/Alert/Alert.d.ts +0 -9
- package/dist/components/Alert/Alert.js +0 -8
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/Alert/index.js +0 -1
- package/dist/components/Alert/styles.css.d.ts +0 -4
- package/dist/components/Alert/styles.css.js +0 -54
- package/dist/components/AspectRatio/AspectRatio.d.ts +0 -9
- package/dist/components/AspectRatio/AspectRatio.js +0 -12
- package/dist/components/AspectRatio/index.d.ts +0 -2
- package/dist/components/AspectRatio/index.js +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -11
- package/dist/components/Avatar/Avatar.js +0 -13
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Avatar/index.js +0 -1
- package/dist/components/Avatar/styles.css.d.ts +0 -4
- package/dist/components/Avatar/styles.css.js +0 -151
- package/dist/components/Badge/Badge.d.ts +0 -11
- package/dist/components/Badge/Badge.js +0 -8
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Badge/index.js +0 -1
- package/dist/components/Badge/styles.css.d.ts +0 -5
- package/dist/components/Badge/styles.css.js +0 -77
- package/dist/components/Box/Box.d.ts +0 -11
- package/dist/components/Box/Box.js +0 -54
- package/dist/components/Box/index.d.ts +0 -2
- package/dist/components/Box/index.js +0 -1
- package/dist/components/Box/reset.css.d.ts +0 -1
- package/dist/components/Box/reset.css.js +0 -15
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -12
- package/dist/components/Breadcrumb/Breadcrumb.js +0 -8
- package/dist/components/Breadcrumb/index.d.ts +0 -1
- package/dist/components/Breadcrumb/index.js +0 -1
- package/dist/components/Breadcrumb/styles.css.d.ts +0 -6
- package/dist/components/Breadcrumb/styles.css.js +0 -50
- package/dist/components/Button/Button.d.ts +0 -9
- package/dist/components/Button/Button.js +0 -8
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Button/index.js +0 -1
- package/dist/components/Button/styles.css.d.ts +0 -2
- package/dist/components/Button/styles.css.js +0 -30
- package/dist/components/Card/Card.d.ts +0 -8
- package/dist/components/Card/Card.js +0 -8
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Card/index.js +0 -1
- package/dist/components/Card/styles.css.d.ts +0 -2
- package/dist/components/Card/styles.css.js +0 -25
- package/dist/components/Checkbox/Checkbox.d.ts +0 -6
- package/dist/components/Checkbox/Checkbox.js +0 -25
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/Checkbox/index.js +0 -1
- package/dist/components/Checkbox/styles.css.d.ts +0 -3
- package/dist/components/Checkbox/styles.css.js +0 -31
- package/dist/components/Collapse/Collapse.d.ts +0 -12
- package/dist/components/Collapse/Collapse.js +0 -56
- package/dist/components/Collapse/index.d.ts +0 -2
- package/dist/components/Collapse/index.js +0 -1
- package/dist/components/Collapse/styles.css.d.ts +0 -3
- package/dist/components/Collapse/styles.css.js +0 -36
- package/dist/components/Combobox/Combobox.d.ts +0 -23
- package/dist/components/Combobox/Combobox.js +0 -104
- package/dist/components/Combobox/index.d.ts +0 -2
- package/dist/components/Combobox/index.js +0 -1
- package/dist/components/Combobox/styles.css.d.ts +0 -13
- package/dist/components/Combobox/styles.css.js +0 -142
- package/dist/components/Container/Container.d.ts +0 -11
- package/dist/components/Container/Container.js +0 -21
- package/dist/components/Container/index.d.ts +0 -2
- package/dist/components/Container/index.js +0 -1
- package/dist/components/Divider/Divider.d.ts +0 -9
- package/dist/components/Divider/Divider.js +0 -8
- package/dist/components/Divider/index.d.ts +0 -2
- package/dist/components/Divider/index.js +0 -1
- package/dist/components/Divider/styles.css.d.ts +0 -4
- package/dist/components/Divider/styles.css.js +0 -41
- package/dist/components/Drawer/Drawer.d.ts +0 -16
- package/dist/components/Drawer/Drawer.js +0 -65
- package/dist/components/Drawer/index.d.ts +0 -2
- package/dist/components/Drawer/index.js +0 -1
- package/dist/components/Drawer/styles.css.d.ts +0 -8
- package/dist/components/Drawer/styles.css.js +0 -125
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -23
- package/dist/components/DropdownMenu/DropdownMenu.js +0 -43
- package/dist/components/DropdownMenu/index.d.ts +0 -2
- package/dist/components/DropdownMenu/index.js +0 -1
- package/dist/components/DropdownMenu/styles.css.d.ts +0 -9
- package/dist/components/DropdownMenu/styles.css.js +0 -93
- package/dist/components/EmptyState/EmptyState.d.ts +0 -10
- package/dist/components/EmptyState/EmptyState.js +0 -8
- package/dist/components/EmptyState/index.d.ts +0 -2
- package/dist/components/EmptyState/index.js +0 -1
- package/dist/components/EmptyState/styles.css.d.ts +0 -5
- package/dist/components/EmptyState/styles.css.js +0 -30
- package/dist/components/FileUpload/FileUpload.d.ts +0 -27
- package/dist/components/FileUpload/FileUpload.js +0 -102
- package/dist/components/FileUpload/index.d.ts +0 -2
- package/dist/components/FileUpload/index.js +0 -1
- package/dist/components/FileUpload/styles.css.d.ts +0 -19
- package/dist/components/FileUpload/styles.css.js +0 -145
- package/dist/components/Form/Form.d.ts +0 -7
- package/dist/components/Form/Form.js +0 -8
- package/dist/components/Form/FormInput.d.ts +0 -5
- package/dist/components/Form/FormInput.js +0 -9
- package/dist/components/Form/index.d.ts +0 -2
- package/dist/components/Form/index.js +0 -2
- package/dist/components/Form/styles.css.d.ts +0 -2
- package/dist/components/Form/styles.css.js +0 -11
- package/dist/components/Grid/Grid.d.ts +0 -13
- package/dist/components/Grid/Grid.js +0 -25
- package/dist/components/Grid/index.d.ts +0 -2
- package/dist/components/Grid/index.js +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -12
- package/dist/components/Icon/Icon.js +0 -21
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Icon/index.js +0 -1
- package/dist/components/Icon/styles.css.d.ts +0 -1
- package/dist/components/Icon/styles.css.js +0 -9
- package/dist/components/Input/Input.d.ts +0 -7
- package/dist/components/Input/Input.js +0 -9
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Input/index.js +0 -1
- package/dist/components/Input/styles.css.d.ts +0 -2
- package/dist/components/Input/styles.css.js +0 -8
- package/dist/components/Kbd/Kbd.d.ts +0 -7
- package/dist/components/Kbd/Kbd.js +0 -6
- package/dist/components/Kbd/index.d.ts +0 -2
- package/dist/components/Kbd/index.js +0 -1
- package/dist/components/Kbd/styles.css.d.ts +0 -1
- package/dist/components/Kbd/styles.css.js +0 -16
- package/dist/components/List/List.d.ts +0 -5
- package/dist/components/List/List.js +0 -7
- package/dist/components/List/ListItem.d.ts +0 -5
- package/dist/components/List/ListItem.js +0 -7
- package/dist/components/List/index.d.ts +0 -2
- package/dist/components/List/index.js +0 -2
- package/dist/components/List/styles.css.d.ts +0 -2
- package/dist/components/List/styles.css.js +0 -11
- package/dist/components/Modal/Modal.d.ts +0 -13
- package/dist/components/Modal/Modal.js +0 -35
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/Modal/index.js +0 -1
- package/dist/components/Modal/styles.css.d.ts +0 -7
- package/dist/components/Modal/styles.css.js +0 -92
- package/dist/components/Navbar/Navbar.d.ts +0 -6
- package/dist/components/Navbar/Navbar.js +0 -8
- package/dist/components/Navbar/NavbarItem.d.ts +0 -6
- package/dist/components/Navbar/NavbarItem.js +0 -8
- package/dist/components/Navbar/index.d.ts +0 -2
- package/dist/components/Navbar/index.js +0 -2
- package/dist/components/Navbar/styles.css.d.ts +0 -2
- package/dist/components/Navbar/styles.css.js +0 -3
- package/dist/components/NumberInput/NumberInput.d.ts +0 -20
- package/dist/components/NumberInput/NumberInput.js +0 -39
- package/dist/components/NumberInput/index.d.ts +0 -2
- package/dist/components/NumberInput/index.js +0 -1
- package/dist/components/NumberInput/styles.css.d.ts +0 -10
- package/dist/components/NumberInput/styles.css.js +0 -117
- package/dist/components/Pagination/Pagination.d.ts +0 -10
- package/dist/components/Pagination/Pagination.js +0 -47
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/Pagination/index.js +0 -1
- package/dist/components/Pagination/styles.css.d.ts +0 -4
- package/dist/components/Pagination/styles.css.js +0 -44
- package/dist/components/Popover/Popover.d.ts +0 -18
- package/dist/components/Popover/Popover.js +0 -55
- package/dist/components/Popover/index.d.ts +0 -2
- package/dist/components/Popover/index.js +0 -1
- package/dist/components/Popover/styles.css.d.ts +0 -11
- package/dist/components/Popover/styles.css.js +0 -185
- package/dist/components/Progress/Progress.d.ts +0 -10
- package/dist/components/Progress/Progress.js +0 -9
- package/dist/components/Progress/index.d.ts +0 -1
- package/dist/components/Progress/index.js +0 -1
- package/dist/components/Progress/styles.css.d.ts +0 -4
- package/dist/components/Progress/styles.css.js +0 -71
- package/dist/components/Radio/Radio.d.ts +0 -16
- package/dist/components/Radio/Radio.js +0 -25
- package/dist/components/Radio/index.d.ts +0 -1
- package/dist/components/Radio/index.js +0 -1
- package/dist/components/Radio/styles.css.d.ts +0 -5
- package/dist/components/Radio/styles.css.js +0 -42
- package/dist/components/ScrollArea/ScrollArea.d.ts +0 -11
- package/dist/components/ScrollArea/ScrollArea.js +0 -12
- package/dist/components/ScrollArea/index.d.ts +0 -2
- package/dist/components/ScrollArea/index.js +0 -1
- package/dist/components/ScrollArea/styles.css.d.ts +0 -3
- package/dist/components/ScrollArea/styles.css.js +0 -25
- package/dist/components/Select/Select.d.ts +0 -13
- package/dist/components/Select/Select.js +0 -10
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.js +0 -1
- package/dist/components/Select/styles.css.d.ts +0 -4
- package/dist/components/Select/styles.css.js +0 -82
- package/dist/components/Separator/Separator.d.ts +0 -8
- package/dist/components/Separator/Separator.js +0 -8
- package/dist/components/Separator/index.d.ts +0 -2
- package/dist/components/Separator/index.js +0 -1
- package/dist/components/Separator/styles.css.d.ts +0 -4
- package/dist/components/Separator/styles.css.js +0 -28
- package/dist/components/Skeleton/Skeleton.d.ts +0 -14
- package/dist/components/Skeleton/Skeleton.js +0 -13
- package/dist/components/Skeleton/index.d.ts +0 -2
- package/dist/components/Skeleton/index.js +0 -1
- package/dist/components/Skeleton/styles.css.d.ts +0 -4
- package/dist/components/Skeleton/styles.css.js +0 -56
- package/dist/components/Spinner/Spinner.d.ts +0 -10
- package/dist/components/Spinner/Spinner.js +0 -8
- package/dist/components/Spinner/index.d.ts +0 -2
- package/dist/components/Spinner/index.js +0 -1
- package/dist/components/Spinner/styles.css.d.ts +0 -4
- package/dist/components/Spinner/styles.css.js +0 -55
- package/dist/components/Stack/Stack.d.ts +0 -16
- package/dist/components/Stack/Stack.js +0 -24
- package/dist/components/Stack/index.d.ts +0 -2
- package/dist/components/Stack/index.js +0 -1
- package/dist/components/Stepper/Stepper.d.ts +0 -18
- package/dist/components/Stepper/Stepper.js +0 -25
- package/dist/components/Stepper/index.d.ts +0 -2
- package/dist/components/Stepper/index.js +0 -1
- package/dist/components/Stepper/styles.css.d.ts +0 -14
- package/dist/components/Stepper/styles.css.js +0 -104
- package/dist/components/Table/Table.d.ts +0 -42
- package/dist/components/Table/Table.js +0 -39
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Table/index.js +0 -1
- package/dist/components/Table/styles.css.d.ts +0 -8
- package/dist/components/Table/styles.css.js +0 -49
- package/dist/components/Tabs/Tabs.d.ts +0 -29
- package/dist/components/Tabs/Tabs.js +0 -52
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/Tabs/index.js +0 -1
- package/dist/components/Tabs/styles.css.d.ts +0 -6
- package/dist/components/Tabs/styles.css.js +0 -100
- package/dist/components/Tag/Tag.d.ts +0 -16
- package/dist/components/Tag/Tag.js +0 -18
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/Tag/index.js +0 -1
- package/dist/components/Tag/styles.css.d.ts +0 -3
- package/dist/components/Tag/styles.css.js +0 -93
- package/dist/components/Text/Header.d.ts +0 -8
- package/dist/components/Text/Header.js +0 -8
- package/dist/components/Text/P.d.ts +0 -7
- package/dist/components/Text/P.js +0 -8
- package/dist/components/Text/index.d.ts +0 -2
- package/dist/components/Text/index.js +0 -2
- package/dist/components/Text/styles.css.d.ts +0 -2
- package/dist/components/Text/styles.css.js +0 -13
- package/dist/components/TextArea/TextArea.d.ts +0 -7
- package/dist/components/TextArea/TextArea.js +0 -9
- package/dist/components/TextArea/index.d.ts +0 -2
- package/dist/components/TextArea/index.js +0 -1
- package/dist/components/TextArea/styles.css.d.ts +0 -2
- package/dist/components/TextArea/styles.css.js +0 -10
- package/dist/components/Toast/Toast.d.ts +0 -34
- package/dist/components/Toast/Toast.js +0 -177
- package/dist/components/Toast/index.d.ts +0 -1
- package/dist/components/Toast/index.js +0 -1
- package/dist/components/Toast/styles.css.d.ts +0 -21
- package/dist/components/Toast/styles.css.js +0 -192
- package/dist/components/Toggle/Toggle.d.ts +0 -10
- package/dist/components/Toggle/Toggle.js +0 -17
- package/dist/components/Toggle/index.d.ts +0 -2
- package/dist/components/Toggle/index.js +0 -1
- package/dist/components/Toggle/styles.css.d.ts +0 -12
- package/dist/components/Toggle/styles.css.js +0 -118
- package/dist/components/Tooltip/Tooltip.d.ts +0 -10
- package/dist/components/Tooltip/Tooltip.js +0 -16
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/components/Tooltip/index.js +0 -1
- package/dist/components/Tooltip/styles.css.d.ts +0 -8
- package/dist/components/Tooltip/styles.css.js +0 -86
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +0 -8
- package/dist/components/VisuallyHidden/VisuallyHidden.js +0 -9
- package/dist/components/VisuallyHidden/index.d.ts +0 -2
- package/dist/components/VisuallyHidden/index.js +0 -1
- package/dist/components/VisuallyHidden/styles.css.d.ts +0 -1
- package/dist/components/VisuallyHidden/styles.css.js +0 -12
- package/dist/components/index.d.ts +0 -68
- package/dist/components/index.js +0 -47
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/styles/layers.css.d.ts +0 -3
- package/dist/styles/layers.css.js +0 -3
- package/dist/styles/sprinkles.css.d.ts +0 -241
- package/dist/styles/sprinkles.css.js +0 -165
- package/dist/styles/theme.css.d.ts +0 -38
- package/dist/styles/theme.css.js +0 -51
- package/dist/styles/utils.d.ts +0 -2
- package/dist/styles/utils.js +0 -7
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { style, styleVariants, keyframes } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../styles/theme.css';
|
|
3
|
-
import { styleWithLayer } from '../../styles/utils';
|
|
4
|
-
export const slideInRight = keyframes({
|
|
5
|
-
'0%': {
|
|
6
|
-
transform: 'translateX(100%)',
|
|
7
|
-
opacity: '0',
|
|
8
|
-
},
|
|
9
|
-
'100%': {
|
|
10
|
-
transform: 'translateX(0)',
|
|
11
|
-
opacity: '1',
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
export const slideInLeft = keyframes({
|
|
15
|
-
'0%': {
|
|
16
|
-
transform: 'translateX(-100%)',
|
|
17
|
-
opacity: '0',
|
|
18
|
-
},
|
|
19
|
-
'100%': {
|
|
20
|
-
transform: 'translateX(0)',
|
|
21
|
-
opacity: '1',
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
export const slideInTop = keyframes({
|
|
25
|
-
'0%': {
|
|
26
|
-
transform: 'translateY(-100%)',
|
|
27
|
-
opacity: '0',
|
|
28
|
-
},
|
|
29
|
-
'100%': {
|
|
30
|
-
transform: 'translateY(0)',
|
|
31
|
-
opacity: '1',
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
export const slideOutRight = keyframes({
|
|
35
|
-
'0%': {
|
|
36
|
-
transform: 'translateX(0)',
|
|
37
|
-
opacity: '1',
|
|
38
|
-
},
|
|
39
|
-
'100%': {
|
|
40
|
-
transform: 'translateX(100%)',
|
|
41
|
-
opacity: '0',
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
export const slideOutLeft = keyframes({
|
|
45
|
-
'0%': {
|
|
46
|
-
transform: 'translateX(0)',
|
|
47
|
-
opacity: '1',
|
|
48
|
-
},
|
|
49
|
-
'100%': {
|
|
50
|
-
transform: 'translateX(-100%)',
|
|
51
|
-
opacity: '0',
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
export const slideInBottom = keyframes({
|
|
55
|
-
'0%': {
|
|
56
|
-
transform: 'translateY(100%)',
|
|
57
|
-
opacity: '0',
|
|
58
|
-
},
|
|
59
|
-
'100%': {
|
|
60
|
-
transform: 'translateY(0)',
|
|
61
|
-
opacity: '1',
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
export const slideOutBottom = keyframes({
|
|
65
|
-
'0%': {
|
|
66
|
-
transform: 'translateY(0)',
|
|
67
|
-
opacity: '1',
|
|
68
|
-
},
|
|
69
|
-
'100%': {
|
|
70
|
-
transform: 'translateY(100%)',
|
|
71
|
-
opacity: '0',
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
export const fadeIn = keyframes({
|
|
75
|
-
'0%': { opacity: '0' },
|
|
76
|
-
'100%': { opacity: '1' },
|
|
77
|
-
});
|
|
78
|
-
export const fadeOut = keyframes({
|
|
79
|
-
'0%': { opacity: '1' },
|
|
80
|
-
'100%': { opacity: '0' },
|
|
81
|
-
});
|
|
82
|
-
export const fadeOutSuccess = keyframes({
|
|
83
|
-
'0%': { opacity: '1' },
|
|
84
|
-
'100%': { opacity: '0' },
|
|
85
|
-
});
|
|
86
|
-
export const fadeOutError = keyframes({
|
|
87
|
-
'0%': { opacity: '1' },
|
|
88
|
-
'100%': { opacity: '0' },
|
|
89
|
-
});
|
|
90
|
-
export const fadeOutWarning = keyframes({
|
|
91
|
-
'0%': { opacity: '1' },
|
|
92
|
-
'100%': { opacity: '0' },
|
|
93
|
-
});
|
|
94
|
-
export const fadeOutInfo = keyframes({
|
|
95
|
-
'0%': { opacity: '1' },
|
|
96
|
-
'100%': { opacity: '0' },
|
|
97
|
-
});
|
|
98
|
-
export const slideOut = keyframes({
|
|
99
|
-
'0%': {
|
|
100
|
-
transform: 'translateX(0)',
|
|
101
|
-
opacity: '1',
|
|
102
|
-
},
|
|
103
|
-
'100%': {
|
|
104
|
-
transform: 'translateX(100%)',
|
|
105
|
-
opacity: '0',
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
export const toastContainer = style({
|
|
109
|
-
position: 'fixed',
|
|
110
|
-
zIndex: '9999',
|
|
111
|
-
pointerEvents: 'none',
|
|
112
|
-
});
|
|
113
|
-
export const toastWrapper = styleVariants({
|
|
114
|
-
topLeft: {
|
|
115
|
-
position: 'fixed',
|
|
116
|
-
top: '16px',
|
|
117
|
-
left: '16px',
|
|
118
|
-
zIndex: '9999',
|
|
119
|
-
},
|
|
120
|
-
topCenter: {
|
|
121
|
-
position: 'fixed',
|
|
122
|
-
top: '16px',
|
|
123
|
-
left: '50%',
|
|
124
|
-
transform: 'translateX(-50%)',
|
|
125
|
-
zIndex: '9999',
|
|
126
|
-
},
|
|
127
|
-
topRight: {
|
|
128
|
-
position: 'fixed',
|
|
129
|
-
top: '16px',
|
|
130
|
-
right: '16px',
|
|
131
|
-
zIndex: '9999',
|
|
132
|
-
},
|
|
133
|
-
bottomLeft: {
|
|
134
|
-
position: 'fixed',
|
|
135
|
-
bottom: '16px',
|
|
136
|
-
left: '16px',
|
|
137
|
-
zIndex: '9999',
|
|
138
|
-
},
|
|
139
|
-
bottomCenter: {
|
|
140
|
-
position: 'fixed',
|
|
141
|
-
bottom: '16px',
|
|
142
|
-
left: '50%',
|
|
143
|
-
transform: 'translateX(-50%)',
|
|
144
|
-
zIndex: '9999',
|
|
145
|
-
},
|
|
146
|
-
bottomRight: {
|
|
147
|
-
position: 'fixed',
|
|
148
|
-
bottom: '16px',
|
|
149
|
-
right: '16px',
|
|
150
|
-
zIndex: '9999',
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
export const toastItem = style({
|
|
154
|
-
width: '300px',
|
|
155
|
-
pointerEvents: 'auto',
|
|
156
|
-
marginBottom: '8px',
|
|
157
|
-
});
|
|
158
|
-
export const toastCloseButton = style({
|
|
159
|
-
background: 'none',
|
|
160
|
-
border: 'none',
|
|
161
|
-
cursor: 'pointer',
|
|
162
|
-
padding: '0',
|
|
163
|
-
display: 'flex',
|
|
164
|
-
alignItems: 'center',
|
|
165
|
-
justifyContent: 'center',
|
|
166
|
-
color: vars.colors.textSecondary,
|
|
167
|
-
fontSize: '16px',
|
|
168
|
-
lineHeight: '1',
|
|
169
|
-
':hover': {
|
|
170
|
-
color: vars.colors.textPrimary,
|
|
171
|
-
},
|
|
172
|
-
});
|
|
173
|
-
export const toastProgressBarContainer = style({
|
|
174
|
-
position: 'absolute',
|
|
175
|
-
left: 0,
|
|
176
|
-
right: 0,
|
|
177
|
-
bottom: 0,
|
|
178
|
-
height: '3px',
|
|
179
|
-
backgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
180
|
-
borderRadius: '0 0 4px 4px',
|
|
181
|
-
overflow: 'hidden',
|
|
182
|
-
});
|
|
183
|
-
export const toastProgressBar = style({
|
|
184
|
-
height: '100%',
|
|
185
|
-
borderRadius: '0 0 4px 4px',
|
|
186
|
-
transition: 'width 0.1s linear',
|
|
187
|
-
animation: `progressBar 0.3s ease ${fadeIn} forwards`,
|
|
188
|
-
});
|
|
189
|
-
export const toastContent = styleWithLayer({
|
|
190
|
-
flex: 1,
|
|
191
|
-
minWidth: 0,
|
|
192
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type ToggleSize = 'small' | 'medium' | 'large';
|
|
3
|
-
export interface ToggleProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'checked' | 'onChange'> {
|
|
4
|
-
checked?: boolean;
|
|
5
|
-
onChange?: (checked: boolean) => void;
|
|
6
|
-
size?: ToggleSize;
|
|
7
|
-
label?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Toggle: ({ checked, onChange, size, label, disabled, id, ...props }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Toggle;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { toggle, toggleLabel, toggleInput, toggleTrack, toggleTrackChecked, toggleTrackUnchecked, toggleThumb, toggleThumbSizes, toggleThumbChecked, toggleThumbUnchecked, toggleFocusRing, toggleSizes, } from './styles.css';
|
|
4
|
-
import { useState, useId } from 'react';
|
|
5
|
-
import Box from '../Box';
|
|
6
|
-
const Toggle = ({ checked = false, onChange, size = 'medium', label, disabled = false, id, ...props }) => {
|
|
7
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
8
|
-
const generatedId = useId();
|
|
9
|
-
const toggleId = id || `toggle-${generatedId}`;
|
|
10
|
-
const handleChange = (e) => {
|
|
11
|
-
if (!disabled && onChange) {
|
|
12
|
-
onChange(e.target.checked);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
return (_jsxs(Box, { as: "div", className: toggle, children: [_jsxs(Box, { as: "label", htmlFor: toggleId, className: toggleLabel, children: [_jsx(Box, { as: "input", type: "checkbox", id: toggleId, checked: checked, onChange: handleChange, disabled: disabled, className: toggleInput, onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), "aria-checked": checked, role: "switch", ...props }), _jsx(Box, { as: "span", className: clsx(toggleTrack, toggleSizes[size], checked ? toggleTrackChecked : toggleTrackUnchecked), "data-size": size, children: _jsx(Box, { as: "span", className: clsx(toggleThumb, toggleThumbSizes[size], checked ? toggleThumbChecked : toggleThumbUnchecked) }) }), _jsx(Box, { as: "span", className: toggleFocusRing, "data-focused": isFocused, "aria-hidden": "true" })] }), label && _jsx(Box, { as: "span", marginLeft: "small", children: label })] }));
|
|
16
|
-
};
|
|
17
|
-
export default Toggle;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toggle } from './Toggle';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const toggleSizes: Record<"medium" | "large" | "small", string>;
|
|
2
|
-
export declare const toggleLabel: string;
|
|
3
|
-
export declare const toggle: string;
|
|
4
|
-
export declare const toggleInput: string;
|
|
5
|
-
export declare const toggleTrack: string;
|
|
6
|
-
export declare const toggleTrackChecked: string;
|
|
7
|
-
export declare const toggleTrackUnchecked: string;
|
|
8
|
-
export declare const toggleThumb: string;
|
|
9
|
-
export declare const toggleThumbSizes: Record<"medium" | "large" | "small", string>;
|
|
10
|
-
export declare const toggleThumbChecked: string;
|
|
11
|
-
export declare const toggleThumbUnchecked: string;
|
|
12
|
-
export declare const toggleFocusRing: string;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../styles/theme.css';
|
|
3
|
-
import { styleWithLayer } from '../../styles/utils';
|
|
4
|
-
export const toggleSizes = styleVariants({
|
|
5
|
-
small: {
|
|
6
|
-
width: '1.5rem',
|
|
7
|
-
height: '0.75rem',
|
|
8
|
-
},
|
|
9
|
-
medium: {
|
|
10
|
-
width: '2rem',
|
|
11
|
-
height: '1rem',
|
|
12
|
-
},
|
|
13
|
-
large: {
|
|
14
|
-
width: '2.5rem',
|
|
15
|
-
height: '1.25rem',
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
export const toggleLabel = styleWithLayer({
|
|
19
|
-
display: 'inline-flex',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
cursor: 'pointer',
|
|
22
|
-
});
|
|
23
|
-
export const toggle = styleWithLayer({
|
|
24
|
-
position: 'relative',
|
|
25
|
-
display: 'inline-flex',
|
|
26
|
-
alignItems: 'center',
|
|
27
|
-
selectors: {
|
|
28
|
-
'&:has(input:disabled)': {
|
|
29
|
-
cursor: 'not-allowed',
|
|
30
|
-
opacity: 0.5,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
export const toggleInput = styleWithLayer({
|
|
35
|
-
position: 'absolute',
|
|
36
|
-
opacity: 0,
|
|
37
|
-
width: 0,
|
|
38
|
-
height: 0,
|
|
39
|
-
cursor: 'pointer',
|
|
40
|
-
});
|
|
41
|
-
export const toggleTrack = styleWithLayer({
|
|
42
|
-
borderRadius: '9999px',
|
|
43
|
-
transition: 'background-color 0.2s ease-in-out',
|
|
44
|
-
backgroundColor: vars.colors.borderDefault,
|
|
45
|
-
position: 'relative',
|
|
46
|
-
display: 'inline-flex',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
cursor: 'pointer',
|
|
49
|
-
selectors: {
|
|
50
|
-
'&:hover': {
|
|
51
|
-
backgroundColor: vars.colors.borderMuted,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
export const toggleTrackChecked = styleWithLayer({
|
|
56
|
-
backgroundColor: vars.colors.buttonBackgroundPrimary,
|
|
57
|
-
selectors: {
|
|
58
|
-
'&:hover': {
|
|
59
|
-
backgroundColor: vars.colors.buttonBackgroundFocusedPrimary,
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
export const toggleTrackUnchecked = styleWithLayer({
|
|
64
|
-
backgroundColor: vars.colors.borderDefault,
|
|
65
|
-
});
|
|
66
|
-
export const toggleThumb = styleWithLayer({
|
|
67
|
-
borderRadius: '50%',
|
|
68
|
-
backgroundColor: vars.colors.backgroundDefault,
|
|
69
|
-
position: 'absolute',
|
|
70
|
-
transition: 'transform 0.2s ease-in-out, background-color 0.2s ease-in-out',
|
|
71
|
-
top: '50%',
|
|
72
|
-
left: '0',
|
|
73
|
-
transform: 'translateY(-50%)',
|
|
74
|
-
});
|
|
75
|
-
export const toggleThumbSizes = styleVariants({
|
|
76
|
-
small: {
|
|
77
|
-
width: '0.5rem',
|
|
78
|
-
height: '0.5rem',
|
|
79
|
-
},
|
|
80
|
-
medium: {
|
|
81
|
-
width: '0.75rem',
|
|
82
|
-
height: '0.75rem',
|
|
83
|
-
},
|
|
84
|
-
large: {
|
|
85
|
-
width: '1rem',
|
|
86
|
-
height: '1rem',
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
export const toggleThumbChecked = styleWithLayer({
|
|
90
|
-
transform: 'translateY(-50%) translateX(1.25rem)',
|
|
91
|
-
backgroundColor: vars.colors.backgroundDefault,
|
|
92
|
-
selectors: {
|
|
93
|
-
'[data-size="small"] &': {
|
|
94
|
-
transform: 'translateY(-50%) translateX(1rem)',
|
|
95
|
-
},
|
|
96
|
-
'[data-size="large"] &': {
|
|
97
|
-
transform: 'translateY(-50%) translateX(1.5rem)',
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
export const toggleThumbUnchecked = styleWithLayer({
|
|
102
|
-
transform: 'translateY(-50%) translateX(0)',
|
|
103
|
-
backgroundColor: vars.colors.backgroundDefault,
|
|
104
|
-
});
|
|
105
|
-
export const toggleFocusRing = styleWithLayer({
|
|
106
|
-
position: 'absolute',
|
|
107
|
-
inset: '-0.25rem',
|
|
108
|
-
borderRadius: '0.5rem',
|
|
109
|
-
pointerEvents: 'none',
|
|
110
|
-
opacity: 0,
|
|
111
|
-
transition: 'opacity 0.2s ease-in-out',
|
|
112
|
-
boxShadow: `0 0 0 3px ${vars.colors.buttonBackgroundPrimary}`,
|
|
113
|
-
selectors: {
|
|
114
|
-
'[data-focused="true"] &': {
|
|
115
|
-
opacity: 1,
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
-
export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
content: string;
|
|
5
|
-
position?: TooltipPosition;
|
|
6
|
-
showArrow?: boolean;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const Tooltip: ({ content, position, showArrow, children, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Tooltip;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { tooltipContainer, tooltipContent, tooltipPositions, tooltipArrow, tooltipArrowTop, tooltipArrowBottom, tooltipArrowLeft, tooltipArrowRight, } from './styles.css';
|
|
4
|
-
import { useState } from 'react';
|
|
5
|
-
import Box from '../Box';
|
|
6
|
-
const Tooltip = ({ content, position = 'top', showArrow = true, children, ...props }) => {
|
|
7
|
-
const [isVisible, setIsVisible] = useState(false);
|
|
8
|
-
const arrowStyle = {
|
|
9
|
-
top: position === 'bottom' ? tooltipArrowBottom : undefined,
|
|
10
|
-
bottom: position === 'top' ? tooltipArrowTop : undefined,
|
|
11
|
-
left: position === 'right' ? tooltipArrowLeft : undefined,
|
|
12
|
-
right: position === 'left' ? tooltipArrowRight : undefined,
|
|
13
|
-
};
|
|
14
|
-
return (_jsxs(Box, { as: "div", className: clsx(tooltipContainer, props.className), onMouseEnter: () => setIsVisible(true), onMouseLeave: () => setIsVisible(false), onFocus: () => setIsVisible(true), onBlur: () => setIsVisible(false), ...props, children: [children, _jsxs(Box, { as: "div", className: clsx(tooltipContent, tooltipPositions[position]), "data-visible": isVisible, role: "tooltip", children: [showArrow && (_jsx(Box, { as: "span", className: clsx(tooltipArrow, arrowStyle.top, arrowStyle.bottom, arrowStyle.left, arrowStyle.right) })), content] })] }));
|
|
15
|
-
};
|
|
16
|
-
export default Tooltip;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Tooltip } from './Tooltip';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const tooltipPositions: Record<"bottom" | "left" | "right" | "top", string>;
|
|
2
|
-
export declare const tooltipContainer: string;
|
|
3
|
-
export declare const tooltipContent: string;
|
|
4
|
-
export declare const tooltipArrow: string;
|
|
5
|
-
export declare const tooltipArrowTop: string;
|
|
6
|
-
export declare const tooltipArrowBottom: string;
|
|
7
|
-
export declare const tooltipArrowLeft: string;
|
|
8
|
-
export declare const tooltipArrowRight: string;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../styles/theme.css';
|
|
3
|
-
import { styleWithLayer } from '../../styles/utils';
|
|
4
|
-
export const tooltipPositions = styleVariants({
|
|
5
|
-
top: {
|
|
6
|
-
bottom: '100%',
|
|
7
|
-
marginBottom: '0.25rem',
|
|
8
|
-
left: '50%',
|
|
9
|
-
transform: 'translateX(-50%)',
|
|
10
|
-
},
|
|
11
|
-
bottom: {
|
|
12
|
-
top: '100%',
|
|
13
|
-
marginTop: '0.25rem',
|
|
14
|
-
left: '50%',
|
|
15
|
-
transform: 'translateX(-50%)',
|
|
16
|
-
},
|
|
17
|
-
left: {
|
|
18
|
-
right: '100%',
|
|
19
|
-
marginRight: '0.25rem',
|
|
20
|
-
top: '50%',
|
|
21
|
-
transform: 'translateY(-50%)',
|
|
22
|
-
},
|
|
23
|
-
right: {
|
|
24
|
-
left: '100%',
|
|
25
|
-
marginLeft: '0.25rem',
|
|
26
|
-
top: '50%',
|
|
27
|
-
transform: 'translateY(-50%)',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
export const tooltipContainer = styleWithLayer({
|
|
31
|
-
position: 'relative',
|
|
32
|
-
display: 'inline-flex',
|
|
33
|
-
});
|
|
34
|
-
export const tooltipContent = styleWithLayer({
|
|
35
|
-
position: 'absolute',
|
|
36
|
-
backgroundColor: vars.colors.textPrimary,
|
|
37
|
-
color: vars.colors.backgroundDefault,
|
|
38
|
-
padding: '0.375rem 0.75rem',
|
|
39
|
-
borderRadius: '0.375rem',
|
|
40
|
-
fontSize: '0.75rem',
|
|
41
|
-
whiteSpace: 'nowrap',
|
|
42
|
-
zIndex: 1001,
|
|
43
|
-
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
|
|
44
|
-
opacity: 0,
|
|
45
|
-
visibility: 'hidden',
|
|
46
|
-
transition: 'opacity 0.2s ease-in-out, visibility 0.2s ease-in-out',
|
|
47
|
-
pointerEvents: 'none',
|
|
48
|
-
selectors: {
|
|
49
|
-
'&[data-visible="true"]': {
|
|
50
|
-
opacity: 1,
|
|
51
|
-
visibility: 'visible',
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
export const tooltipArrow = styleWithLayer({
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
width: '0',
|
|
58
|
-
height: '0',
|
|
59
|
-
borderStyle: 'solid',
|
|
60
|
-
borderWidth: '0.25rem',
|
|
61
|
-
borderColor: 'transparent',
|
|
62
|
-
});
|
|
63
|
-
export const tooltipArrowTop = styleWithLayer({
|
|
64
|
-
bottom: '-0.25rem',
|
|
65
|
-
left: '50%',
|
|
66
|
-
transform: 'translateX(-50%)',
|
|
67
|
-
borderTopColor: vars.colors.textPrimary,
|
|
68
|
-
});
|
|
69
|
-
export const tooltipArrowBottom = styleWithLayer({
|
|
70
|
-
top: '-0.25rem',
|
|
71
|
-
left: '50%',
|
|
72
|
-
transform: 'translateX(-50%)',
|
|
73
|
-
borderBottomColor: vars.colors.textPrimary,
|
|
74
|
-
});
|
|
75
|
-
export const tooltipArrowLeft = styleWithLayer({
|
|
76
|
-
right: '-0.25rem',
|
|
77
|
-
top: '50%',
|
|
78
|
-
transform: 'translateY(-50%)',
|
|
79
|
-
borderLeftColor: vars.colors.textPrimary,
|
|
80
|
-
});
|
|
81
|
-
export const tooltipArrowRight = styleWithLayer({
|
|
82
|
-
left: '-0.25rem',
|
|
83
|
-
top: '50%',
|
|
84
|
-
transform: 'translateY(-50%)',
|
|
85
|
-
borderRightColor: vars.colors.textPrimary,
|
|
86
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface VisuallyHiddenProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
as?: React.ElementType;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const VisuallyHidden: ({ children, as: Component, className, ...props }: VisuallyHiddenProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
-
export default VisuallyHidden;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { visuallyHidden } from './styles.css';
|
|
3
|
-
const VisuallyHidden = ({ children, as: Component = 'span', className, ...props }) => {
|
|
4
|
-
return React.createElement(Component, {
|
|
5
|
-
className: visuallyHidden,
|
|
6
|
-
...props,
|
|
7
|
-
}, children);
|
|
8
|
-
};
|
|
9
|
-
export default VisuallyHidden;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as VisuallyHidden } from './VisuallyHidden';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const visuallyHidden: string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { styleWithLayer } from '../../styles/utils';
|
|
2
|
-
export const visuallyHidden = styleWithLayer({
|
|
3
|
-
position: 'absolute',
|
|
4
|
-
width: '1px',
|
|
5
|
-
height: '1px',
|
|
6
|
-
padding: 0,
|
|
7
|
-
margin: '-1px',
|
|
8
|
-
overflow: 'hidden',
|
|
9
|
-
clip: 'rect(0, 0, 0, 0)',
|
|
10
|
-
whiteSpace: 'nowrap',
|
|
11
|
-
border: 0,
|
|
12
|
-
});
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export { Button } from './Button';
|
|
2
|
-
export { List, ListItem } from './List';
|
|
3
|
-
export { Input } from './Input';
|
|
4
|
-
export { Form, FormInput } from './Form';
|
|
5
|
-
export { Navbar, NavbarItem } from './Navbar';
|
|
6
|
-
export { Card } from './Card';
|
|
7
|
-
export { Alert } from './Alert';
|
|
8
|
-
export { P, Header } from './Text';
|
|
9
|
-
export { Modal } from './Modal';
|
|
10
|
-
export { Badge } from './Badge';
|
|
11
|
-
export { Divider } from './Divider';
|
|
12
|
-
export { Spinner } from './Spinner';
|
|
13
|
-
export { Tooltip } from './Tooltip';
|
|
14
|
-
export { Toggle } from './Toggle';
|
|
15
|
-
export { Checkbox } from './Checkbox';
|
|
16
|
-
export { Radio } from './Radio';
|
|
17
|
-
export { Select } from './Select';
|
|
18
|
-
export { Tabs } from './Tabs';
|
|
19
|
-
export { Avatar } from './Avatar';
|
|
20
|
-
export { Tag } from './Tag';
|
|
21
|
-
export { Breadcrumb } from './Breadcrumb';
|
|
22
|
-
export { Accordion } from './Accordion';
|
|
23
|
-
export { Progress } from './Progress';
|
|
24
|
-
export { Icon } from './Icon';
|
|
25
|
-
export { ToastProvider, Toast, useToast } from './Toast';
|
|
26
|
-
export { default as Box } from './Box';
|
|
27
|
-
export type { BoxProps } from './Box';
|
|
28
|
-
export { Table } from './Table';
|
|
29
|
-
export { TextArea } from './TextArea';
|
|
30
|
-
export type { TextAreaProps } from './TextArea';
|
|
31
|
-
export { Pagination } from './Pagination';
|
|
32
|
-
export type { PaginationProps } from './Pagination';
|
|
33
|
-
export { Skeleton } from './Skeleton';
|
|
34
|
-
export type { SkeletonProps, SkeletonVariant, SkeletonSize, SkeletonAnimation } from './Skeleton';
|
|
35
|
-
export { Drawer } from './Drawer';
|
|
36
|
-
export type { DrawerProps, DrawerPosition, DrawerSize } from './Drawer';
|
|
37
|
-
export { DropdownMenu } from './DropdownMenu';
|
|
38
|
-
export type { DropdownMenuProps, DropdownMenuItemProps, DropdownMenuGroupProps, DropdownMenuPosition, DropdownMenuItemVariant } from './DropdownMenu';
|
|
39
|
-
export { Popover } from './Popover';
|
|
40
|
-
export type { PopoverProps, PopoverPosition, PopoverTriggerType } from './Popover';
|
|
41
|
-
export { Stepper } from './Stepper';
|
|
42
|
-
export type { StepperProps, Step, StepperOrientation, StepStatus } from './Stepper';
|
|
43
|
-
export { Combobox } from './Combobox';
|
|
44
|
-
export type { ComboboxProps, ComboboxOption } from './Combobox';
|
|
45
|
-
export { NumberInput } from './NumberInput';
|
|
46
|
-
export type { NumberInputProps, NumberInputPosition } from './NumberInput';
|
|
47
|
-
export { FileUpload } from './FileUpload';
|
|
48
|
-
export type { FileUploadProps, FileUploadFile } from './FileUpload';
|
|
49
|
-
export { Stack } from './Stack';
|
|
50
|
-
export type { StackProps, StackDirection, StackAlign, StackJustify } from './Stack';
|
|
51
|
-
export { Grid } from './Grid';
|
|
52
|
-
export type { GridProps, GridColumns, GridGap } from './Grid';
|
|
53
|
-
export { Container } from './Container';
|
|
54
|
-
export type { ContainerProps, ContainerSize } from './Container';
|
|
55
|
-
export { AspectRatio } from './AspectRatio';
|
|
56
|
-
export type { AspectRatioProps, AspectRatioValue } from './AspectRatio';
|
|
57
|
-
export { Collapse } from './Collapse';
|
|
58
|
-
export type { CollapseProps, CollapseAnimation } from './Collapse';
|
|
59
|
-
export { VisuallyHidden } from './VisuallyHidden';
|
|
60
|
-
export type { VisuallyHiddenProps } from './VisuallyHidden';
|
|
61
|
-
export { EmptyState } from './EmptyState';
|
|
62
|
-
export type { EmptyStateProps } from './EmptyState';
|
|
63
|
-
export { Separator } from './Separator';
|
|
64
|
-
export type { SeparatorProps, SeparatorOrientation } from './Separator';
|
|
65
|
-
export { ScrollArea } from './ScrollArea';
|
|
66
|
-
export type { ScrollAreaProps, ScrollAreaOrientation } from './ScrollArea';
|
|
67
|
-
export { Kbd } from './Kbd';
|
|
68
|
-
export type { KbdProps } from './Kbd';
|
package/dist/components/index.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export { Button } from './Button';
|
|
2
|
-
export { List, ListItem } from './List';
|
|
3
|
-
export { Input } from './Input';
|
|
4
|
-
export { Form, FormInput } from './Form';
|
|
5
|
-
export { Navbar, NavbarItem } from './Navbar';
|
|
6
|
-
export { Card } from './Card';
|
|
7
|
-
export { Alert } from './Alert';
|
|
8
|
-
export { P, Header } from './Text';
|
|
9
|
-
export { Modal } from './Modal';
|
|
10
|
-
export { Badge } from './Badge';
|
|
11
|
-
export { Divider } from './Divider';
|
|
12
|
-
export { Spinner } from './Spinner';
|
|
13
|
-
export { Tooltip } from './Tooltip';
|
|
14
|
-
export { Toggle } from './Toggle';
|
|
15
|
-
export { Checkbox } from './Checkbox';
|
|
16
|
-
export { Radio } from './Radio';
|
|
17
|
-
export { Select } from './Select';
|
|
18
|
-
export { Tabs } from './Tabs';
|
|
19
|
-
export { Avatar } from './Avatar';
|
|
20
|
-
export { Tag } from './Tag';
|
|
21
|
-
export { Breadcrumb } from './Breadcrumb';
|
|
22
|
-
export { Accordion } from './Accordion';
|
|
23
|
-
export { Progress } from './Progress';
|
|
24
|
-
export { Icon } from './Icon';
|
|
25
|
-
export { ToastProvider, Toast, useToast } from './Toast';
|
|
26
|
-
export { default as Box } from './Box';
|
|
27
|
-
export { Table } from './Table';
|
|
28
|
-
export { TextArea } from './TextArea';
|
|
29
|
-
export { Pagination } from './Pagination';
|
|
30
|
-
export { Skeleton } from './Skeleton';
|
|
31
|
-
export { Drawer } from './Drawer';
|
|
32
|
-
export { DropdownMenu } from './DropdownMenu';
|
|
33
|
-
export { Popover } from './Popover';
|
|
34
|
-
export { Stepper } from './Stepper';
|
|
35
|
-
export { Combobox } from './Combobox';
|
|
36
|
-
export { NumberInput } from './NumberInput';
|
|
37
|
-
export { FileUpload } from './FileUpload';
|
|
38
|
-
export { Stack } from './Stack';
|
|
39
|
-
export { Grid } from './Grid';
|
|
40
|
-
export { Container } from './Container';
|
|
41
|
-
export { AspectRatio } from './AspectRatio';
|
|
42
|
-
export { Collapse } from './Collapse';
|
|
43
|
-
export { VisuallyHidden } from './VisuallyHidden';
|
|
44
|
-
export { EmptyState } from './EmptyState';
|
|
45
|
-
export { Separator } from './Separator';
|
|
46
|
-
export { ScrollArea } from './ScrollArea';
|
|
47
|
-
export { Kbd } from './Kbd';
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|