@jordan-mace/chaser-design-system 1.2.8 → 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/Box/reset.css.ts +2 -2
- package/src/index.ts +6 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -15
- 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 -10
- 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 -12
- 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 -13
- 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 -10
- 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 -9
- 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 -151
- 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 -24
- package/dist/components/Combobox/Combobox.js +0 -111
- 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 -163
- 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 -10
- package/dist/components/Divider/Divider.js +0 -10
- 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 -18
- 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 -24
- package/dist/components/DropdownMenu/DropdownMenu.js +0 -46
- 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 -28
- package/dist/components/FileUpload/FileUpload.js +0 -106
- 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 -162
- 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 -8
- 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 -6
- package/dist/components/List/List.js +0 -7
- package/dist/components/List/ListItem.d.ts +0 -6
- 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 -15
- 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 -7
- package/dist/components/Navbar/Navbar.js +0 -8
- package/dist/components/Navbar/NavbarItem.d.ts +0 -7
- 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 -21
- 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 -12
- package/dist/components/Pagination/Pagination.js +0 -50
- 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 -19
- package/dist/components/Popover/Popover.js +0 -56
- 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 -11
- 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 -161
- 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 -158
- 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 -9
- 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 -15
- 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 -11
- 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 -167
- 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 -19
- 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 -41
- 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 -8
- 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 -11
- 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 -11
- 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,145 +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 fileUploadContainer = styleWithLayer({
|
|
5
|
-
width: '100%',
|
|
6
|
-
});
|
|
7
|
-
export const fileUploadDropzone = styleWithLayer({
|
|
8
|
-
border: `2px dashed ${vars.colors.borderDefault}`,
|
|
9
|
-
borderRadius: '12px',
|
|
10
|
-
padding: '2rem',
|
|
11
|
-
textAlign: 'center',
|
|
12
|
-
cursor: 'pointer',
|
|
13
|
-
transition: 'all 0.2s ease',
|
|
14
|
-
backgroundColor: vars.colors.backgroundMuted,
|
|
15
|
-
':hover': {
|
|
16
|
-
borderColor: vars.colors.inputBorderFocused,
|
|
17
|
-
backgroundColor: vars.colors.alertInfoBackground,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
export const fileUploadDropzoneVariants = styleVariants({
|
|
21
|
-
default: {},
|
|
22
|
-
dragOver: {
|
|
23
|
-
borderColor: vars.colors.buttonBackgroundPrimary,
|
|
24
|
-
backgroundColor: vars.colors.alertInfoBackground,
|
|
25
|
-
borderStyle: 'solid',
|
|
26
|
-
},
|
|
27
|
-
error: {
|
|
28
|
-
borderColor: vars.colors.alertErrorBorder,
|
|
29
|
-
backgroundColor: vars.colors.alertErrorBackground,
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
cursor: 'not-allowed',
|
|
33
|
-
opacity: 0.6,
|
|
34
|
-
':hover': {
|
|
35
|
-
borderColor: vars.colors.borderDefault,
|
|
36
|
-
backgroundColor: vars.colors.backgroundMuted,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
export const fileUploadLabel = styleWithLayer({
|
|
41
|
-
display: 'block',
|
|
42
|
-
fontSize: '14px',
|
|
43
|
-
fontWeight: '500',
|
|
44
|
-
color: vars.colors.textPrimary,
|
|
45
|
-
marginBottom: '8px',
|
|
46
|
-
});
|
|
47
|
-
export const fileUploadText = styleWithLayer({
|
|
48
|
-
fontSize: '14px',
|
|
49
|
-
color: vars.colors.textSecondary,
|
|
50
|
-
marginTop: '0.5rem',
|
|
51
|
-
});
|
|
52
|
-
export const fileUploadHint = styleWithLayer({
|
|
53
|
-
fontSize: '12px',
|
|
54
|
-
color: vars.colors.textSecondary,
|
|
55
|
-
marginTop: '0.5rem',
|
|
56
|
-
});
|
|
57
|
-
export const fileUploadInput = styleWithLayer({
|
|
58
|
-
display: 'none',
|
|
59
|
-
});
|
|
60
|
-
export const fileUploadList = styleWithLayer({
|
|
61
|
-
marginTop: '1rem',
|
|
62
|
-
display: 'flex',
|
|
63
|
-
flexDirection: 'column',
|
|
64
|
-
gap: '0.75rem',
|
|
65
|
-
});
|
|
66
|
-
export const fileUploadItem = styleWithLayer({
|
|
67
|
-
display: 'flex',
|
|
68
|
-
alignItems: 'center',
|
|
69
|
-
gap: '0.75rem',
|
|
70
|
-
padding: '0.75rem',
|
|
71
|
-
backgroundColor: vars.colors.backgroundDefault,
|
|
72
|
-
border: `1px solid ${vars.colors.borderMuted}`,
|
|
73
|
-
borderRadius: '8px',
|
|
74
|
-
});
|
|
75
|
-
export const fileUploadItemInfo = styleWithLayer({
|
|
76
|
-
flex: 1,
|
|
77
|
-
minWidth: 0,
|
|
78
|
-
});
|
|
79
|
-
export const fileUploadItemName = styleWithLayer({
|
|
80
|
-
fontSize: '14px',
|
|
81
|
-
fontWeight: '500',
|
|
82
|
-
color: vars.colors.textPrimary,
|
|
83
|
-
whiteSpace: 'nowrap',
|
|
84
|
-
overflow: 'hidden',
|
|
85
|
-
textOverflow: 'ellipsis',
|
|
86
|
-
});
|
|
87
|
-
export const fileUploadItemSize = styleWithLayer({
|
|
88
|
-
fontSize: '12px',
|
|
89
|
-
color: vars.colors.textSecondary,
|
|
90
|
-
marginTop: '2px',
|
|
91
|
-
});
|
|
92
|
-
export const fileUploadItemProgress = styleWithLayer({
|
|
93
|
-
flex: 1,
|
|
94
|
-
maxWidth: '200px',
|
|
95
|
-
});
|
|
96
|
-
export const fileUploadRemoveButton = styleWithLayer({
|
|
97
|
-
background: 'none',
|
|
98
|
-
border: 'none',
|
|
99
|
-
cursor: 'pointer',
|
|
100
|
-
padding: '0.25rem',
|
|
101
|
-
color: vars.colors.textSecondary,
|
|
102
|
-
fontSize: '18px',
|
|
103
|
-
display: 'flex',
|
|
104
|
-
alignItems: 'center',
|
|
105
|
-
justifyContent: 'center',
|
|
106
|
-
borderRadius: '4px',
|
|
107
|
-
transition: 'all 0.15s ease',
|
|
108
|
-
':hover': {
|
|
109
|
-
color: vars.colors.alertErrorText,
|
|
110
|
-
backgroundColor: vars.colors.alertErrorBackground,
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
export const fileUploadError = styleWithLayer({
|
|
114
|
-
fontSize: '12px',
|
|
115
|
-
color: vars.colors.alertErrorText,
|
|
116
|
-
marginTop: '0.5rem',
|
|
117
|
-
});
|
|
118
|
-
export const fileUploadIcon = styleWithLayer({
|
|
119
|
-
fontSize: '24px',
|
|
120
|
-
color: vars.colors.textSecondary,
|
|
121
|
-
});
|
|
122
|
-
export const fileUploadProgressBar = styleWithLayer({
|
|
123
|
-
width: '100%',
|
|
124
|
-
height: '4px',
|
|
125
|
-
backgroundColor: vars.colors.borderMuted,
|
|
126
|
-
borderRadius: '2px',
|
|
127
|
-
overflow: 'hidden',
|
|
128
|
-
marginTop: '0.5rem',
|
|
129
|
-
});
|
|
130
|
-
export const fileUploadProgressFill = styleWithLayer({
|
|
131
|
-
height: '100%',
|
|
132
|
-
backgroundColor: vars.colors.buttonBackgroundPrimary,
|
|
133
|
-
transition: 'width 0.3s ease',
|
|
134
|
-
});
|
|
135
|
-
export const fileUploadProgressFillVariants = styleVariants({
|
|
136
|
-
uploading: {
|
|
137
|
-
backgroundColor: vars.colors.buttonBackgroundPrimary,
|
|
138
|
-
},
|
|
139
|
-
success: {
|
|
140
|
-
backgroundColor: vars.colors.alertSuccessBorder,
|
|
141
|
-
},
|
|
142
|
-
error: {
|
|
143
|
-
backgroundColor: vars.colors.alertErrorBorder,
|
|
144
|
-
},
|
|
145
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
-
type FormProps = React.FormHTMLAttributes<HTMLFormElement> & Sprinkles & {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
declare const Form: (props: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default Form;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { formStyle } from './styles.css';
|
|
4
|
-
import Box from '../Box';
|
|
5
|
-
const Form = (props) => {
|
|
6
|
-
return (_jsx(Box, { as: "form", gap: "medium", paddingX: "large", className: clsx(formStyle, props.className), ...props, children: props.children }));
|
|
7
|
-
};
|
|
8
|
-
export default Form;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from '../Input/Input';
|
|
3
|
-
type FormInputProps = React.InputHTMLAttributes<HTMLInputElement> & InputProps;
|
|
4
|
-
declare const FormInput: (props: FormInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export default FormInput;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { formInputStyle } from './styles.css';
|
|
4
|
-
import { Input } from '../..';
|
|
5
|
-
import Box from '../Box';
|
|
6
|
-
const FormInput = (props) => {
|
|
7
|
-
return (_jsx(Box, { as: Input, padding: "small", className: clsx(formInputStyle, props.className), label: props.label, ...props }));
|
|
8
|
-
};
|
|
9
|
-
export default FormInput;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { styleWithLayer } from '../../styles/utils';
|
|
2
|
-
export const formStyle = styleWithLayer({
|
|
3
|
-
display: 'grid',
|
|
4
|
-
gridTemplateRows: 'min-content 1fr min-content',
|
|
5
|
-
});
|
|
6
|
-
export const formInputStyle = styleWithLayer({
|
|
7
|
-
display: 'flex',
|
|
8
|
-
flexDirection: 'row',
|
|
9
|
-
justifyContent: 'space-between',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
});
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
-
export type GridColumns = 1 | 2 | 3 | 4 | 5 | 6 | 12;
|
|
4
|
-
export type GridGap = 'none' | 'small' | 'medium' | 'large';
|
|
5
|
-
export type GridProps = React.HTMLAttributes<HTMLDivElement> & Sprinkles & {
|
|
6
|
-
columns?: GridColumns;
|
|
7
|
-
gap?: GridGap;
|
|
8
|
-
minChildWidth?: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare const Grid: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
12
|
-
display?: ("flex" | "none" | "block" | "inline" | {
|
|
13
|
-
mobile?: "flex" | "none" | "block" | "inline";
|
|
14
|
-
tablet?: "flex" | "none" | "block" | "inline";
|
|
15
|
-
desktop?: "flex" | "none" | "block" | "inline";
|
|
16
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "flex" | "none" | "block" | "inline">;
|
|
17
|
-
width?: ("auto" | "100%" | "50%" | "25%" | {
|
|
18
|
-
mobile?: "auto" | "100%" | "50%" | "25%";
|
|
19
|
-
tablet?: "auto" | "100%" | "50%" | "25%";
|
|
20
|
-
desktop?: "auto" | "100%" | "50%" | "25%";
|
|
21
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "100%" | "50%" | "25%">;
|
|
22
|
-
height?: ("auto" | "100%" | "50%" | "25%" | {
|
|
23
|
-
mobile?: "auto" | "100%" | "50%" | "25%";
|
|
24
|
-
tablet?: "auto" | "100%" | "50%" | "25%";
|
|
25
|
-
desktop?: "auto" | "100%" | "50%" | "25%";
|
|
26
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "100%" | "50%" | "25%">;
|
|
27
|
-
flexDirection?: ("column" | "row" | {
|
|
28
|
-
mobile?: "column" | "row";
|
|
29
|
-
tablet?: "column" | "row";
|
|
30
|
-
desktop?: "column" | "row";
|
|
31
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "column" | "row">;
|
|
32
|
-
justifyContent?: ("space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | {
|
|
33
|
-
mobile?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
|
|
34
|
-
tablet?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
|
|
35
|
-
desktop?: "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start";
|
|
36
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "space-around" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start">;
|
|
37
|
-
alignItems?: ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
38
|
-
mobile?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
39
|
-
tablet?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
40
|
-
desktop?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
41
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "stretch" | "center" | "flex-end" | "flex-start">;
|
|
42
|
-
paddingTop?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
43
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
44
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
45
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
46
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
47
|
-
paddingBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
48
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
49
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
50
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
51
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
52
|
-
paddingLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
53
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
54
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
55
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
56
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
57
|
-
paddingRight?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
58
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
59
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
60
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
61
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
62
|
-
marginLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
63
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
64
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
65
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
66
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
67
|
-
marginRight?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
68
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
69
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
70
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
71
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
72
|
-
marginTop?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
73
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
74
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
75
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
76
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
77
|
-
marginBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
78
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
79
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
80
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
81
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
82
|
-
borderLeft?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
83
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
84
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
85
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
86
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
87
|
-
borderRight?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
88
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
89
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
90
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
91
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
92
|
-
borderTop?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
93
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
94
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
95
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
96
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
97
|
-
borderBottom?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
98
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
99
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
100
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
101
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
102
|
-
borderRadius?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
103
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
104
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
105
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
106
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
107
|
-
gap?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
108
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
109
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
110
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
111
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
112
|
-
padding?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
113
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
114
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
115
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
116
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
117
|
-
border?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
118
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
119
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
120
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
121
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
122
|
-
paddingX?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
123
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
124
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
125
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
126
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
127
|
-
paddingY?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
128
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
129
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
130
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
131
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
132
|
-
marginX?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
133
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
134
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
135
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
136
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
137
|
-
marginY?: ("auto" | "medium" | "none" | "large" | "small" | {
|
|
138
|
-
mobile?: "auto" | "medium" | "none" | "large" | "small";
|
|
139
|
-
tablet?: "auto" | "medium" | "none" | "large" | "small";
|
|
140
|
-
desktop?: "auto" | "medium" | "none" | "large" | "small";
|
|
141
|
-
}) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "auto" | "medium" | "none" | "large" | "small">;
|
|
142
|
-
placeItems?: import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 3 | 1, "stretch" | "center" | "flex-end" | "flex-start"> | ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
143
|
-
mobile?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
144
|
-
tablet?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
145
|
-
desktop?: "stretch" | "center" | "flex-end" | "flex-start";
|
|
146
|
-
});
|
|
147
|
-
} & {
|
|
148
|
-
color?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900" | {
|
|
149
|
-
lightMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
150
|
-
darkMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
151
|
-
};
|
|
152
|
-
background?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900" | {
|
|
153
|
-
lightMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
154
|
-
darkMode?: "c1-50" | "c1-100" | "c1-150" | "c1-200" | "c1-250" | "c1-300" | "c1-350" | "c1-400" | "c1-450" | "c1-500" | "c1-550" | "c1-600" | "c1-650" | "c1-700" | "c1-750" | "c1-800" | "c1-850" | "c1-900" | "c2-50" | "c2-100" | "c2-150" | "c2-200" | "c2-250" | "c2-300" | "c2-350" | "c2-400" | "c2-450" | "c2-500" | "c2-550" | "c2-600" | "c2-650" | "c2-700" | "c2-750" | "c2-800" | "c2-850" | "c2-900" | "c3-50" | "c3-100" | "c3-150" | "c3-200" | "c3-250" | "c3-300" | "c3-350" | "c3-400" | "c3-450" | "c3-500" | "c3-550" | "c3-600" | "c3-650" | "c3-700" | "c3-750" | "c3-800" | "c3-850" | "c3-900" | "c4-50" | "c4-100" | "c4-150" | "c4-200" | "c4-250" | "c4-300" | "c4-350" | "c4-400" | "c4-450" | "c4-500" | "c4-550" | "c4-600" | "c4-650" | "c4-700" | "c4-750" | "c4-800" | "c4-850" | "c4-900" | "c5-50" | "c5-100" | "c5-150" | "c5-200" | "c5-250" | "c5-300" | "c5-350" | "c5-400" | "c5-450" | "c5-500" | "c5-550" | "c5-600" | "c5-650" | "c5-700" | "c5-750" | "c5-800" | "c5-850" | "c5-900";
|
|
155
|
-
};
|
|
156
|
-
} & {
|
|
157
|
-
columns?: GridColumns;
|
|
158
|
-
gap?: GridGap;
|
|
159
|
-
minChildWidth?: string;
|
|
160
|
-
children?: React.ReactNode;
|
|
161
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
162
|
-
export default Grid;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import Box from '../Box';
|
|
4
|
-
const gapMap = {
|
|
5
|
-
none: '0',
|
|
6
|
-
small: '0.5rem',
|
|
7
|
-
medium: '1rem',
|
|
8
|
-
large: '2rem',
|
|
9
|
-
};
|
|
10
|
-
const Grid = forwardRef(({ columns, gap = 'medium', minChildWidth, children, ...props }, ref) => {
|
|
11
|
-
const gapValue = gap;
|
|
12
|
-
const gridStyle = {
|
|
13
|
-
display: 'grid',
|
|
14
|
-
gap: gapMap[gapValue],
|
|
15
|
-
};
|
|
16
|
-
if (minChildWidth) {
|
|
17
|
-
gridStyle.gridTemplateColumns = `repeat(auto-fit, minmax(${minChildWidth},1fr))`;
|
|
18
|
-
}
|
|
19
|
-
else if (columns) {
|
|
20
|
-
gridStyle.gridTemplateColumns = `repeat(${columns},1fr)`;
|
|
21
|
-
}
|
|
22
|
-
return (_jsx(Box, { ref: ref, className: props.className, style: { ...gridStyle, ...props.style }, ...props, children: children }));
|
|
23
|
-
});
|
|
24
|
-
Grid.displayName = 'Grid';
|
|
25
|
-
export default Grid;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Grid } from './Grid';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
-
type IconProps = React.HTMLAttributes<HTMLSpanElement> & Sprinkles & {
|
|
4
|
-
name?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
color?: string;
|
|
7
|
-
};
|
|
8
|
-
declare const IconComponent: {
|
|
9
|
-
({ name, children, className, color }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
export default IconComponent;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { icon } from './styles.css';
|
|
4
|
-
import Box from '../Box';
|
|
5
|
-
const IconComponent = ({ name, children, className, color }) => {
|
|
6
|
-
const iconMap = {
|
|
7
|
-
check: '✓',
|
|
8
|
-
error: '✗',
|
|
9
|
-
warning: '⚠',
|
|
10
|
-
info: 'i',
|
|
11
|
-
success: '✓',
|
|
12
|
-
close: '×',
|
|
13
|
-
};
|
|
14
|
-
const displayContent = children || (name ? iconMap[name] : undefined);
|
|
15
|
-
if (!displayContent) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return (_jsx(Box, { as: "span", className: clsx(icon, className), style: { color }, "aria-hidden": "true", children: displayContent }));
|
|
19
|
-
};
|
|
20
|
-
IconComponent.displayName = 'Icon';
|
|
21
|
-
export default IconComponent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Icon } from './Icon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Icon } from './Icon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const icon: string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
-
export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & Sprinkles & {
|
|
4
|
-
label?: string;
|
|
5
|
-
fullWidth?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default Input;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { inputStyle, label } from './styles.css';
|
|
4
|
-
import { text } from '../Text/styles.css';
|
|
5
|
-
import Box from '../Box';
|
|
6
|
-
const Input = (props) => {
|
|
7
|
-
return (_jsxs(Box, { display: "flex", flexDirection: { mobile: 'column', tablet: 'row' }, gap: "small", children: [props.label && (_jsx(Box, { as: "label", className: clsx(text, label), marginX: { mobile: 'auto', tablet: 'none' }, marginY: { mobile: 'none', tablet: 'auto' }, htmlFor: props.id, children: props.label })), _jsx(Box, { as: "input", className: clsx(inputStyle, props.className), width: props.fullWidth ? '100%' : undefined, ...props })] }));
|
|
8
|
-
};
|
|
9
|
-
export default Input;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Input } from './Input';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Input } from './Input';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
3
|
-
export type KbdProps = React.HTMLAttributes<HTMLElement> & Sprinkles & {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
declare const Kbd: ({ children, className, ...props }: KbdProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default Kbd;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Kbd } from './Kbd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const kbd: string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { vars } from '../../styles/theme.css';
|
|
2
|
-
import { styleWithLayer } from '../../styles/utils';
|
|
3
|
-
export const kbd = styleWithLayer({
|
|
4
|
-
display: 'inline-block',
|
|
5
|
-
padding: '0.125rem 0.375rem',
|
|
6
|
-
fontFamily: 'monospace',
|
|
7
|
-
fontSize: '0.85em',
|
|
8
|
-
fontWeight: '600',
|
|
9
|
-
lineHeight: '1.5',
|
|
10
|
-
color: vars.colors.textPrimary,
|
|
11
|
-
backgroundColor: vars.colors.backgroundMuted,
|
|
12
|
-
border: `1px solid ${vars.colors.borderDefault}`,
|
|
13
|
-
borderRadius: '4px',
|
|
14
|
-
boxShadow: '0 2px 0 rgba(0, 0, 0, 0.1)',
|
|
15
|
-
whiteSpace: 'nowrap',
|
|
16
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { list } from './styles.css';
|
|
3
|
-
import Box from '../Box';
|
|
4
|
-
const List = ({ children, ...props }) => {
|
|
5
|
-
return (_jsx(Box, { as: "ul", className: list, ...props, children: children }));
|
|
6
|
-
};
|
|
7
|
-
export default List;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { listItem } from './styles.css';
|
|
3
|
-
import Box from '../Box';
|
|
4
|
-
const ListItem = ({ children, ...props }) => {
|
|
5
|
-
return (_jsx(Box, { as: "li", className: listItem, ...props, children: children }));
|
|
6
|
-
};
|
|
7
|
-
export default ListItem;
|