@saas-ui/react 3.0.0-next.44 → 3.0.0-next.48
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/.tsbuildinfo.json +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/colors.js +1 -1
- package/dist/components/command/command.d.ts +1 -1
- package/dist/components/grid-list/grid-list.d.ts +1 -1
- package/dist/components/persona/persona-composed.d.ts +1 -1
- package/dist/components/persona/persona.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/preset.d.ts +1 -3
- package/dist/preset.js +1 -10
- package/package.json +4 -3
- package/dist/components/accordion/accordion.recipe.d.ts +0 -84
- package/dist/components/accordion/accordion.recipe.js +0 -148
- package/dist/components/action-bar/action-bar.recipe.d.ts +0 -1
- package/dist/components/action-bar/action-bar.recipe.js +0 -56
- package/dist/components/alert/alert.recipe.d.ts +0 -120
- package/dist/components/alert/alert.recipe.js +0 -149
- package/dist/components/app-shell/app-shell.recipe.d.ts +0 -13
- package/dist/components/app-shell/app-shell.recipe.js +0 -41
- package/dist/components/avatar/avatar.recipe.d.ts +0 -88
- package/dist/components/avatar/avatar.recipe.js +0 -129
- package/dist/components/badge/badge.recipe.d.ts +0 -48
- package/dist/components/badge/badge.recipe.js +0 -66
- package/dist/components/blockquote/blockquote.recipe.d.ts +0 -52
- package/dist/components/blockquote/blockquote.recipe.js +0 -77
- package/dist/components/breadcrumb/breadcrumb.recipe.d.ts +0 -46
- package/dist/components/breadcrumb/breadcrumb.recipe.js +0 -90
- package/dist/components/button/button.recipe.d.ts +0 -141
- package/dist/components/button/button.recipe.js +0 -185
- package/dist/components/card/card.recipe.d.ts +0 -78
- package/dist/components/card/card.recipe.js +0 -133
- package/dist/components/checkbox/checkbox.recipe.d.ts +0 -80
- package/dist/components/checkbox/checkbox.recipe.js +0 -64
- package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +0 -188
- package/dist/components/checkbox-card/checkbox-card.recipe.js +0 -202
- package/dist/components/checkmark/checkmark.recipe.d.ts +0 -54
- package/dist/components/checkmark/checkmark.recipe.js +0 -80
- package/dist/components/code/code.recipe.d.ts +0 -48
- package/dist/components/code/code.recipe.js +0 -14
- package/dist/components/collapsible/collapsible.recipe.d.ts +0 -1
- package/dist/components/collapsible/collapsible.recipe.js +0 -19
- package/dist/components/combobox/combobox.recipe.d.ts +0 -144
- package/dist/components/combobox/combobox.recipe.js +0 -292
- package/dist/components/command/command.recipe.d.ts +0 -15
- package/dist/components/command/command.recipe.js +0 -34
- package/dist/components/container/container.recipe.d.ts +0 -14
- package/dist/components/container/container.recipe.js +0 -25
- package/dist/components/data-list/data-list.recipe.d.ts +0 -55
- package/dist/components/data-list/data-list.recipe.js +0 -78
- package/dist/components/dialog/dialog.recipe.d.ts +0 -166
- package/dist/components/dialog/dialog.recipe.js +0 -256
- package/dist/components/drawer/drawer.recipe.d.ts +0 -113
- package/dist/components/drawer/drawer.recipe.js +0 -202
- package/dist/components/editable/editable.recipe.d.ts +0 -37
- package/dist/components/editable/editable.recipe.js +0 -89
- package/dist/components/empty-state/empty-state.recipe.d.ts +0 -83
- package/dist/components/empty-state/empty-state.recipe.js +0 -137
- package/dist/components/field/field.recipe.d.ts +0 -29
- package/dist/components/field/field.recipe.js +0 -74
- package/dist/components/fieldset/fieldset.recipe.d.ts +0 -37
- package/dist/components/fieldset/fieldset.recipe.js +0 -59
- package/dist/components/file-upload/file-upload.recipe.d.ts +0 -1
- package/dist/components/file-upload/file-upload.recipe.js +0 -90
- package/dist/components/grid-list/grid-list.recipe.d.ts +0 -60
- package/dist/components/grid-list/grid-list.recipe.js +0 -131
- package/dist/components/heading/heading.recipe.d.ts +0 -59
- package/dist/components/heading/heading.recipe.js +0 -70
- package/dist/components/hover-card/hover-card.recipe.d.ts +0 -28
- package/dist/components/hover-card/hover-card.recipe.js +0 -70
- package/dist/components/icon/icon.recipe.d.ts +0 -25
- package/dist/components/icon/icon.recipe.js +0 -27
- package/dist/components/icon-badge/icon-badge.recipe.d.ts +0 -43
- package/dist/components/icon-badge/icon-badge.recipe.js +0 -57
- package/dist/components/input/input.recipe.d.ts +0 -66
- package/dist/components/input/input.recipe.js +0 -93
- package/dist/components/input-addon/input-addon.recipe.d.ts +0 -56
- package/dist/components/input-addon/input-addon.recipe.js +0 -36
- package/dist/components/kbd/kbd.recipe.d.ts +0 -36
- package/dist/components/kbd/kbd.recipe.js +0 -56
- package/dist/components/link/link.recipe.d.ts +0 -18
- package/dist/components/link/link.recipe.js +0 -34
- package/dist/components/list/list.recipe.d.ts +0 -38
- package/dist/components/list/list.recipe.js +0 -62
- package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +0 -26
- package/dist/components/loading-overlay/loading-overlay.recipe.js +0 -51
- package/dist/components/mark/mark.recipe.d.ts +0 -16
- package/dist/components/mark/mark.recipe.js +0 -25
- package/dist/components/menu/menu.recipe.d.ts +0 -58
- package/dist/components/menu/menu.recipe.js +0 -133
- package/dist/components/native-select/native-select.recipe.d.ts +0 -90
- package/dist/components/native-select/native-select.recipe.js +0 -134
- package/dist/components/navbar/navbar.recipe.d.ts +0 -46
- package/dist/components/navbar/navbar.recipe.js +0 -124
- package/dist/components/number-input/number-input.recipe.d.ts +0 -144
- package/dist/components/number-input/number-input.recipe.js +0 -111
- package/dist/components/page/page.recipe.d.ts +0 -61
- package/dist/components/page/page.recipe.js +0 -99
- package/dist/components/persona/persona.recipe.d.ts +0 -104
- package/dist/components/persona/persona.recipe.js +0 -106
- package/dist/components/pin-input/pin-input.recipe.d.ts +0 -236
- package/dist/components/pin-input/pin-input.recipe.js +0 -32
- package/dist/components/popover/popover.recipe.d.ts +0 -24
- package/dist/components/popover/popover.recipe.js +0 -84
- package/dist/components/progress/progress.recipe.d.ts +0 -82
- package/dist/components/progress/progress.recipe.js +0 -121
- package/dist/components/progress-circle/progress-circle.recipe.d.ts +0 -49
- package/dist/components/progress-circle/progress-circle.recipe.js +0 -91
- package/dist/components/radio/radiomark.recipe.d.ts +0 -56
- package/dist/components/radio/radiomark.recipe.js +0 -95
- package/dist/components/radio-card/radio-card.recipe.d.ts +0 -191
- package/dist/components/radio-card/radio-card.recipe.js +0 -209
- package/dist/components/radio-group/radio-group.recipe.d.ts +0 -77
- package/dist/components/radio-group/radio-group.recipe.js +0 -61
- package/dist/components/rating-group/rating-group.recipe.d.ts +0 -24
- package/dist/components/rating-group/rating-group.recipe.js +0 -83
- package/dist/components/section/section.recipe.d.ts +0 -27
- package/dist/components/section/section.recipe.js +0 -63
- package/dist/components/segmented-control/segment-group.recipe.d.ts +0 -48
- package/dist/components/segmented-control/segment-group.recipe.js +0 -127
- package/dist/components/select/select.recipe.d.ts +0 -155
- package/dist/components/select/select.recipe.js +0 -285
- package/dist/components/separator/separator.recipe.d.ts +0 -37
- package/dist/components/separator/separator.recipe.js +0 -50
- package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +0 -67
- package/dist/components/sidebar/sidebar-nav-item.recipe.js +0 -118
- package/dist/components/sidebar/sidebar.recipe.d.ts +0 -108
- package/dist/components/sidebar/sidebar.recipe.js +0 -280
- package/dist/components/skeleton/skeleton.recipe.d.ts +0 -41
- package/dist/components/skeleton/skeleton.recipe.js +0 -50
- package/dist/components/skip-nav-link/skip-nav-link.recipe.d.ts +0 -1
- package/dist/components/skip-nav-link/skip-nav-link.recipe.js +0 -31
- package/dist/components/slider/slider.recipe.d.ts +0 -101
- package/dist/components/slider/slider.recipe.js +0 -175
- package/dist/components/spinner/spinner.recipe.d.ts +0 -22
- package/dist/components/spinner/spinner.recipe.js +0 -31
- package/dist/components/stat/stat.recipe.d.ts +0 -19
- package/dist/components/stat/stat.recipe.js +0 -76
- package/dist/components/status/status.recipe.d.ts +0 -19
- package/dist/components/status/status.recipe.js +0 -44
- package/dist/components/steps/steps.recipe.d.ts +0 -142
- package/dist/components/steps/steps.recipe.js +0 -213
- package/dist/components/switch/switch.recipe.d.ts +0 -77
- package/dist/components/switch/switch.recipe.js +0 -157
- package/dist/components/table/table.recipe.d.ts +0 -121
- package/dist/components/table/table.recipe.js +0 -161
- package/dist/components/tabs/tabs.recipe.d.ts +0 -263
- package/dist/components/tabs/tabs.recipe.js +0 -332
- package/dist/components/tag/tag.recipe.d.ts +0 -95
- package/dist/components/tag/tag.recipe.js +0 -154
- package/dist/components/textarea/textarea.recipe.d.ts +0 -65
- package/dist/components/textarea/textarea.recipe.js +0 -90
- package/dist/components/timeline/timeline.recipe.d.ts +0 -62
- package/dist/components/timeline/timeline.recipe.js +0 -134
- package/dist/components/toaster/toast.recipe.d.ts +0 -1
- package/dist/components/toaster/toast.recipe.js +0 -90
- package/dist/components/tooltip/tooltip.recipe.d.ts +0 -10
- package/dist/components/tooltip/tooltip.recipe.js +0 -52
- package/dist/theme/animation-styles.d.ts +0 -1
- package/dist/theme/animation-styles.js +0 -49
- package/dist/theme/breakpoints.d.ts +0 -10
- package/dist/theme/breakpoints.js +0 -8
- package/dist/theme/conditions.d.ts +0 -18
- package/dist/theme/conditions.js +0 -19
- package/dist/theme/fluid-font-sizes.d.ts +0 -0
- package/dist/theme/fluid-font-sizes.js +0 -61
- package/dist/theme/global-css.d.ts +0 -1
- package/dist/theme/global-css.js +0 -56
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.js +0 -72
- package/dist/theme/layer-styles.d.ts +0 -1
- package/dist/theme/layer-styles.js +0 -133
- package/dist/theme/recipes.d.ts +0 -861
- package/dist/theme/recipes.js +0 -44
- package/dist/theme/semantic-tokens/colors.d.ts +0 -1298
- package/dist/theme/semantic-tokens/colors.js +0 -687
- package/dist/theme/semantic-tokens/radii.d.ts +0 -44
- package/dist/theme/semantic-tokens/radii.js +0 -39
- package/dist/theme/semantic-tokens/shadows.d.ts +0 -56
- package/dist/theme/semantic-tokens/shadows.js +0 -57
- package/dist/theme/slot-recipes.d.ts +0 -4030
- package/dist/theme/slot-recipes.js +0 -108
- package/dist/theme/text-styles.d.ts +0 -1
- package/dist/theme/text-styles.js +0 -82
- package/dist/theme/tokens/animations.d.ts +0 -14
- package/dist/theme/tokens/animations.js +0 -7
- package/dist/theme/tokens/aspect-ratios.d.ts +0 -20
- package/dist/theme/tokens/aspect-ratios.js +0 -9
- package/dist/theme/tokens/blurs.d.ts +0 -26
- package/dist/theme/tokens/blurs.js +0 -11
- package/dist/theme/tokens/borders.d.ts +0 -17
- package/dist/theme/tokens/borders.js +0 -8
- package/dist/theme/tokens/colors.d.ts +0 -820
- package/dist/theme/tokens/colors.js +0 -306
- package/dist/theme/tokens/cursor.d.ts +0 -26
- package/dist/theme/tokens/cursor.js +0 -11
- package/dist/theme/tokens/durations.d.ts +0 -23
- package/dist/theme/tokens/durations.js +0 -10
- package/dist/theme/tokens/easings.d.ts +0 -20
- package/dist/theme/tokens/easings.js +0 -9
- package/dist/theme/tokens/font-sizes.d.ts +0 -44
- package/dist/theme/tokens/font-sizes.js +0 -18
- package/dist/theme/tokens/font-weights.d.ts +0 -29
- package/dist/theme/tokens/font-weights.js +0 -12
- package/dist/theme/tokens/fonts.d.ts +0 -11
- package/dist/theme/tokens/fonts.js +0 -13
- package/dist/theme/tokens/keyframes.d.ts +0 -1
- package/dist/theme/tokens/keyframes.js +0 -157
- package/dist/theme/tokens/letter-spacing.d.ts +0 -56
- package/dist/theme/tokens/letter-spacing.js +0 -21
- package/dist/theme/tokens/line-heights.d.ts +0 -77
- package/dist/theme/tokens/line-heights.js +0 -29
- package/dist/theme/tokens/radius.d.ts +0 -32
- package/dist/theme/tokens/radius.js +0 -15
- package/dist/theme/tokens/sizes.d.ts +0 -257
- package/dist/theme/tokens/sizes.js +0 -66
- package/dist/theme/tokens/spacing.d.ts +0 -101
- package/dist/theme/tokens/spacing.js +0 -37
- package/dist/theme/tokens/z-indices.d.ts +0 -53
- package/dist/theme/tokens/z-indices.js +0 -32
- package/dist/theme/utilities.d.ts +0 -10
- package/dist/theme/utilities.js +0 -49
- package/dist/theme/utils.d.ts +0 -19
- package/dist/theme/utils.js +0 -34
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { defineRecipe } from '@chakra-ui/react/styled-system';
|
|
2
|
-
export const textareaRecipe = defineRecipe({
|
|
3
|
-
className: 'chakra-textarea',
|
|
4
|
-
base: {
|
|
5
|
-
width: '100%',
|
|
6
|
-
minWidth: '0',
|
|
7
|
-
outline: '0',
|
|
8
|
-
position: 'relative',
|
|
9
|
-
appearance: 'none',
|
|
10
|
-
textAlign: 'start',
|
|
11
|
-
_disabled: {
|
|
12
|
-
layerStyle: 'disabled',
|
|
13
|
-
},
|
|
14
|
-
'--focus-color': 'colors.colorPalette.focusRing',
|
|
15
|
-
'--error-color': 'colors.border.error',
|
|
16
|
-
_invalid: {
|
|
17
|
-
focusRingColor: 'var(--error-color)',
|
|
18
|
-
borderColor: 'var(--error-color)',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
variants: {
|
|
22
|
-
size: {
|
|
23
|
-
xs: {
|
|
24
|
-
borderRadius: 'control.sm',
|
|
25
|
-
textStyle: 'xs',
|
|
26
|
-
px: '2',
|
|
27
|
-
py: '1',
|
|
28
|
-
scrollPaddingBottom: '1',
|
|
29
|
-
},
|
|
30
|
-
sm: {
|
|
31
|
-
borderRadius: 'control.md',
|
|
32
|
-
textStyle: 'sm',
|
|
33
|
-
px: '2.5',
|
|
34
|
-
py: '1.5',
|
|
35
|
-
scrollPaddingBottom: '1.5',
|
|
36
|
-
},
|
|
37
|
-
md: {
|
|
38
|
-
borderRadius: 'control.md',
|
|
39
|
-
textStyle: 'sm',
|
|
40
|
-
px: '3',
|
|
41
|
-
py: '1.5',
|
|
42
|
-
scrollPaddingBottom: '1.5',
|
|
43
|
-
},
|
|
44
|
-
lg: {
|
|
45
|
-
borderRadius: 'control.lg',
|
|
46
|
-
textStyle: 'md',
|
|
47
|
-
px: '4',
|
|
48
|
-
py: '2',
|
|
49
|
-
scrollPaddingBottom: '2',
|
|
50
|
-
},
|
|
51
|
-
xl: {
|
|
52
|
-
borderRadius: 'control.lg',
|
|
53
|
-
textStyle: 'md',
|
|
54
|
-
px: '4.5',
|
|
55
|
-
py: '3.5',
|
|
56
|
-
scrollPaddingBottom: '3.5',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
variant: {
|
|
60
|
-
outline: {
|
|
61
|
-
bg: 'transparent',
|
|
62
|
-
borderWidth: '1px',
|
|
63
|
-
borderColor: 'border',
|
|
64
|
-
focusVisibleRing: 'inside',
|
|
65
|
-
focusRingWidth: 0,
|
|
66
|
-
},
|
|
67
|
-
subtle: {
|
|
68
|
-
borderWidth: '1px',
|
|
69
|
-
borderColor: 'transparent',
|
|
70
|
-
bg: 'bg.muted',
|
|
71
|
-
focusVisibleRing: 'inside',
|
|
72
|
-
},
|
|
73
|
-
flushed: {
|
|
74
|
-
bg: 'transparent',
|
|
75
|
-
borderBottomWidth: '1px',
|
|
76
|
-
borderBottomColor: 'border',
|
|
77
|
-
borderRadius: '0',
|
|
78
|
-
px: '0',
|
|
79
|
-
_focusVisible: {
|
|
80
|
-
borderColor: 'var(--focus-color)',
|
|
81
|
-
boxShadow: '0px 1px 0px 0px var(--focus-color)',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
defaultVariants: {
|
|
87
|
-
size: 'md',
|
|
88
|
-
variant: 'outline',
|
|
89
|
-
},
|
|
90
|
-
});
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export declare const timelineSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "indicator" | "root" | "item" | "separator" | "title" | "connector", {
|
|
2
|
-
variant: {
|
|
3
|
-
subtle: {
|
|
4
|
-
indicator: {
|
|
5
|
-
bg: "bg.muted";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
solid: {
|
|
9
|
-
indicator: {
|
|
10
|
-
bg: "bg.inverted";
|
|
11
|
-
color: "fg.inverted";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
outline: {
|
|
15
|
-
indicator: {
|
|
16
|
-
bg: "bg";
|
|
17
|
-
borderWidth: "2px";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
plain: {};
|
|
21
|
-
};
|
|
22
|
-
size: {
|
|
23
|
-
sm: {
|
|
24
|
-
root: {
|
|
25
|
-
'--timeline-indicator-size': "sizes.4";
|
|
26
|
-
'--timeline-font-size': "fontSizes.2xs";
|
|
27
|
-
};
|
|
28
|
-
title: {
|
|
29
|
-
textStyle: "xs";
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
md: {
|
|
33
|
-
root: {
|
|
34
|
-
'--timeline-indicator-size': "sizes.5";
|
|
35
|
-
'--timeline-font-size': "fontSizes.xs";
|
|
36
|
-
};
|
|
37
|
-
title: {
|
|
38
|
-
textStyle: "sm";
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
lg: {
|
|
42
|
-
root: {
|
|
43
|
-
'--timeline-indicator-size': "sizes.6";
|
|
44
|
-
'--timeline-font-size': "fontSizes.xs";
|
|
45
|
-
};
|
|
46
|
-
title: {
|
|
47
|
-
mt: "0.5";
|
|
48
|
-
textStyle: "sm";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
xl: {
|
|
52
|
-
root: {
|
|
53
|
-
'--timeline-indicator-size': "sizes.8";
|
|
54
|
-
'--timeline-font-size': "fontSizes.sm";
|
|
55
|
-
};
|
|
56
|
-
title: {
|
|
57
|
-
mt: "1.5";
|
|
58
|
-
textStyle: "sm";
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}>;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { timelineAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const timelineSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: timelineAnatomy.keys(),
|
|
5
|
-
className: 'chakra-timeline',
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
display: 'flex',
|
|
9
|
-
flexDirection: 'column',
|
|
10
|
-
width: 'full',
|
|
11
|
-
'--timeline-thickness': '1px',
|
|
12
|
-
'--timeline-gutter': '4px',
|
|
13
|
-
},
|
|
14
|
-
item: {
|
|
15
|
-
display: 'flex',
|
|
16
|
-
position: 'relative',
|
|
17
|
-
alignItems: 'flex-start',
|
|
18
|
-
flexShrink: 0,
|
|
19
|
-
gap: '4',
|
|
20
|
-
_last: {
|
|
21
|
-
'& :where(.chakra-timeline__separator)': { display: 'none' },
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
separator: {
|
|
25
|
-
position: 'absolute',
|
|
26
|
-
borderStartWidth: 'var(--timeline-thickness)',
|
|
27
|
-
ms: 'calc(-1 * var(--timeline-thickness) / 2)',
|
|
28
|
-
insetInlineStart: 'calc(var(--timeline-indicator-size) / 2)',
|
|
29
|
-
insetBlock: '0',
|
|
30
|
-
borderColor: 'border',
|
|
31
|
-
},
|
|
32
|
-
indicator: {
|
|
33
|
-
outline: '2px solid {colors.bg}',
|
|
34
|
-
position: 'relative',
|
|
35
|
-
flexShrink: '0',
|
|
36
|
-
boxSize: 'var(--timeline-indicator-size)',
|
|
37
|
-
fontSize: 'var(--timeline-font-size)',
|
|
38
|
-
display: 'flex',
|
|
39
|
-
alignItems: 'center',
|
|
40
|
-
justifyContent: 'center',
|
|
41
|
-
borderRadius: 'full',
|
|
42
|
-
fontWeight: 'medium',
|
|
43
|
-
},
|
|
44
|
-
connector: {
|
|
45
|
-
alignSelf: 'stretch',
|
|
46
|
-
position: 'relative',
|
|
47
|
-
},
|
|
48
|
-
content: {
|
|
49
|
-
pb: '6',
|
|
50
|
-
display: 'flex',
|
|
51
|
-
flexDirection: 'column',
|
|
52
|
-
width: 'full',
|
|
53
|
-
gap: '2',
|
|
54
|
-
},
|
|
55
|
-
title: {
|
|
56
|
-
display: 'flex',
|
|
57
|
-
fontWeight: 'medium',
|
|
58
|
-
flexWrap: 'wrap',
|
|
59
|
-
gap: '1.5',
|
|
60
|
-
alignItems: 'center',
|
|
61
|
-
mt: 'var(--timeline-margin)',
|
|
62
|
-
},
|
|
63
|
-
description: {
|
|
64
|
-
color: 'fg.muted',
|
|
65
|
-
textStyle: 'xs',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
variants: {
|
|
69
|
-
variant: {
|
|
70
|
-
subtle: {
|
|
71
|
-
indicator: {
|
|
72
|
-
bg: 'bg.muted',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
solid: {
|
|
76
|
-
indicator: {
|
|
77
|
-
bg: 'bg.inverted',
|
|
78
|
-
color: 'fg.inverted',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
outline: {
|
|
82
|
-
indicator: {
|
|
83
|
-
bg: 'bg',
|
|
84
|
-
borderWidth: '2px',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
plain: {},
|
|
88
|
-
},
|
|
89
|
-
size: {
|
|
90
|
-
sm: {
|
|
91
|
-
root: {
|
|
92
|
-
'--timeline-indicator-size': 'sizes.4',
|
|
93
|
-
'--timeline-font-size': 'fontSizes.2xs',
|
|
94
|
-
},
|
|
95
|
-
title: {
|
|
96
|
-
textStyle: 'xs',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
md: {
|
|
100
|
-
root: {
|
|
101
|
-
'--timeline-indicator-size': 'sizes.5',
|
|
102
|
-
'--timeline-font-size': 'fontSizes.xs',
|
|
103
|
-
},
|
|
104
|
-
title: {
|
|
105
|
-
textStyle: 'sm',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
lg: {
|
|
109
|
-
root: {
|
|
110
|
-
'--timeline-indicator-size': 'sizes.6',
|
|
111
|
-
'--timeline-font-size': 'fontSizes.xs',
|
|
112
|
-
},
|
|
113
|
-
title: {
|
|
114
|
-
mt: '0.5',
|
|
115
|
-
textStyle: 'sm',
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
xl: {
|
|
119
|
-
root: {
|
|
120
|
-
'--timeline-indicator-size': 'sizes.8',
|
|
121
|
-
'--timeline-font-size': 'fontSizes.sm',
|
|
122
|
-
},
|
|
123
|
-
title: {
|
|
124
|
-
mt: '1.5',
|
|
125
|
-
textStyle: 'sm',
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
defaultVariants: {
|
|
131
|
-
size: 'md',
|
|
132
|
-
variant: 'solid',
|
|
133
|
-
},
|
|
134
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const toastSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "indicator" | "root" | "closeTrigger" | "title" | "actionTrigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"description" | "indicator" | "root" | "closeTrigger" | "title" | "actionTrigger">>;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { toastAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const toastSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: toastAnatomy.keys(),
|
|
5
|
-
className: 'chakra-toast',
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
width: 'full',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'flex-start',
|
|
11
|
-
position: 'relative',
|
|
12
|
-
gap: '2',
|
|
13
|
-
py: '3',
|
|
14
|
-
ps: '3',
|
|
15
|
-
pe: '6',
|
|
16
|
-
borderRadius: 'md',
|
|
17
|
-
borderWidth: '1px',
|
|
18
|
-
translate: 'var(--x) var(--y)',
|
|
19
|
-
scale: 'var(--scale)',
|
|
20
|
-
zIndex: 'var(--z-index)',
|
|
21
|
-
height: 'var(--height, var(--toast-height))',
|
|
22
|
-
opacity: 'var(--opacity)',
|
|
23
|
-
willChange: 'translate, opacity, scale, height',
|
|
24
|
-
transition: 'translate 400ms, scale 400ms, opacity 400ms, height 200ms, box-shadow 200ms',
|
|
25
|
-
transitionTimingFunction: 'bounce-in',
|
|
26
|
-
_closed: {
|
|
27
|
-
transition: 'translate 400ms, scale 400ms, height 200ms, opacity 200ms',
|
|
28
|
-
transitionTimingFunction: 'bounce-out',
|
|
29
|
-
},
|
|
30
|
-
bg: 'bg.panel',
|
|
31
|
-
color: 'fg',
|
|
32
|
-
boxShadow: 'lg',
|
|
33
|
-
overflow: 'hidden',
|
|
34
|
-
'--toast-indicated-color': 'colors.fg.muted',
|
|
35
|
-
'&[data-type=warning]': {
|
|
36
|
-
'--toast-indicated-color': 'colors.fg.warning',
|
|
37
|
-
},
|
|
38
|
-
'&[data-type=success]': {
|
|
39
|
-
'--toast-indicated-color': 'colors.fg.success',
|
|
40
|
-
},
|
|
41
|
-
'&[data-type=error]': {
|
|
42
|
-
'--toast-indicated-color': 'colors.fg.error',
|
|
43
|
-
},
|
|
44
|
-
'&[data-overlap]': {
|
|
45
|
-
_before: {
|
|
46
|
-
content: '""',
|
|
47
|
-
position: 'absolute',
|
|
48
|
-
inset: '0',
|
|
49
|
-
maskImage: 'linear-gradient(to bottom, transparent, black 50%)',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
title: {
|
|
54
|
-
fontWeight: 'medium',
|
|
55
|
-
textStyle: 'sm',
|
|
56
|
-
marginEnd: '2',
|
|
57
|
-
},
|
|
58
|
-
description: {
|
|
59
|
-
display: 'inline',
|
|
60
|
-
textStyle: 'sm',
|
|
61
|
-
opacity: '0.8',
|
|
62
|
-
},
|
|
63
|
-
indicator: {
|
|
64
|
-
flexShrink: '0',
|
|
65
|
-
boxSize: '5',
|
|
66
|
-
color: 'var(--toast-indicated-color)',
|
|
67
|
-
},
|
|
68
|
-
actionTrigger: {
|
|
69
|
-
cursor: 'button',
|
|
70
|
-
textStyle: 'sm',
|
|
71
|
-
fontWeight: 'medium',
|
|
72
|
-
height: '6',
|
|
73
|
-
px: '3',
|
|
74
|
-
ms: '-3',
|
|
75
|
-
borderRadius: 'sm',
|
|
76
|
-
alignSelf: 'flex-start',
|
|
77
|
-
transition: 'background 200ms',
|
|
78
|
-
color: 'colorPalette.solid/80',
|
|
79
|
-
_hover: {
|
|
80
|
-
bg: 'bg.subtle',
|
|
81
|
-
color: 'colorPalette.solid',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
closeTrigger: {
|
|
85
|
-
position: 'absolute',
|
|
86
|
-
top: '2',
|
|
87
|
-
insetEnd: '2',
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const tooltipSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "positioner" | "trigger" | "arrow" | "arrowTip", {
|
|
2
|
-
variant: {
|
|
3
|
-
inverted: {
|
|
4
|
-
content: {
|
|
5
|
-
'--tooltip-bg': "colors.bg.inverted";
|
|
6
|
-
color: "fg.inverted";
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { tooltipAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const tooltipSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: tooltipAnatomy.keys(),
|
|
5
|
-
className: 'chakra-tooltip',
|
|
6
|
-
base: {
|
|
7
|
-
content: {
|
|
8
|
-
'--tooltip-bg': 'colors.bg',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
bg: 'var(--tooltip-bg)',
|
|
12
|
-
color: 'fg',
|
|
13
|
-
px: '2.5',
|
|
14
|
-
py: '1',
|
|
15
|
-
borderRadius: 'panel.sm',
|
|
16
|
-
fontWeight: 'medium',
|
|
17
|
-
textStyle: 'xs',
|
|
18
|
-
boxShadow: 'md',
|
|
19
|
-
maxW: 'xs',
|
|
20
|
-
zIndex: 'tooltip',
|
|
21
|
-
transformOrigin: 'var(--transform-origin)',
|
|
22
|
-
_open: {
|
|
23
|
-
animationStyle: 'scale-fade-in',
|
|
24
|
-
animationDuration: 'fast',
|
|
25
|
-
},
|
|
26
|
-
_closed: {
|
|
27
|
-
animationStyle: 'scale-fade-out',
|
|
28
|
-
animationDuration: 'fast',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
arrow: {
|
|
32
|
-
'--arrow-size': 'sizes.2',
|
|
33
|
-
'--arrow-background': 'var(--tooltip-bg)',
|
|
34
|
-
zIndex: '-1',
|
|
35
|
-
},
|
|
36
|
-
arrowTip: {
|
|
37
|
-
borderTopWidth: '1px',
|
|
38
|
-
borderInlineStartWidth: '1px',
|
|
39
|
-
borderColor: 'var(--tooltip-bg)',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
variants: {
|
|
43
|
-
variant: {
|
|
44
|
-
inverted: {
|
|
45
|
-
content: {
|
|
46
|
-
'--tooltip-bg': 'colors.bg.inverted',
|
|
47
|
-
color: 'fg.inverted',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const animationStyles: any;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineAnimationStyles } from '@chakra-ui/react';
|
|
2
|
-
export const animationStyles = defineAnimationStyles({
|
|
3
|
-
'slide-fade-in': {
|
|
4
|
-
value: {
|
|
5
|
-
transformOrigin: 'var(--transform-origin)',
|
|
6
|
-
'&[data-placement^=top]': {
|
|
7
|
-
animationName: 'slide-from-bottom, fade-in',
|
|
8
|
-
},
|
|
9
|
-
'&[data-placement^=bottom]': {
|
|
10
|
-
animationName: 'slide-from-top, fade-in',
|
|
11
|
-
},
|
|
12
|
-
'&[data-placement^=left]': {
|
|
13
|
-
animationName: 'slide-from-right, fade-in',
|
|
14
|
-
},
|
|
15
|
-
'&[data-placement^=right]': {
|
|
16
|
-
animationName: 'slide-from-left, fade-in',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
'slide-fade-out': {
|
|
21
|
-
value: {
|
|
22
|
-
transformOrigin: 'var(--transform-origin)',
|
|
23
|
-
'&[data-placement^=top]': {
|
|
24
|
-
animationName: 'slide-to-bottom, fade-out',
|
|
25
|
-
},
|
|
26
|
-
'&[data-placement^=bottom]': {
|
|
27
|
-
animationName: 'slide-to-top, fade-out',
|
|
28
|
-
},
|
|
29
|
-
'&[data-placement^=left]': {
|
|
30
|
-
animationName: 'slide-to-right, fade-out',
|
|
31
|
-
},
|
|
32
|
-
'&[data-placement^=right]': {
|
|
33
|
-
animationName: 'slide-to-left, fade-out',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
'scale-fade-in': {
|
|
38
|
-
value: {
|
|
39
|
-
transformOrigin: 'var(--transform-origin)',
|
|
40
|
-
animationName: 'scale-in, fade-in',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
'scale-fade-out': {
|
|
44
|
-
value: {
|
|
45
|
-
transformOrigin: 'var(--transform-origin)',
|
|
46
|
-
animationName: 'scale-out, fade-out',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const conditions: {
|
|
2
|
-
collapsible: string;
|
|
3
|
-
groupCollapsible: string;
|
|
4
|
-
groupOpen: string;
|
|
5
|
-
groupFocus: string;
|
|
6
|
-
groupHover: string;
|
|
7
|
-
groupActive: string;
|
|
8
|
-
groupFocusWithin: string;
|
|
9
|
-
groupFocusVisible: string;
|
|
10
|
-
groupDisabled: string;
|
|
11
|
-
groupChecked: string;
|
|
12
|
-
groupExpanded: string;
|
|
13
|
-
groupInvalid: string;
|
|
14
|
-
parentHover: string;
|
|
15
|
-
pressable: string;
|
|
16
|
-
popupExpanded: string;
|
|
17
|
-
rowHover: string;
|
|
18
|
-
};
|
package/dist/theme/conditions.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineConditions } from '@chakra-ui/react';
|
|
2
|
-
export const conditions = defineConditions({
|
|
3
|
-
collapsible: '&:is([data-scope=collapsible])',
|
|
4
|
-
groupCollapsible: '.group:is([data-scope=collapsible]) &, [role=group]:is([data-scope=collapsible]) &',
|
|
5
|
-
groupOpen: '.group:is([data-state=open]) &, [role=group]:is([data-state=open]) &',
|
|
6
|
-
groupFocus: '.group:is(:focus, [data-focus]) &, [role=group]:is(:focus, [data-focus]) &',
|
|
7
|
-
groupHover: '.group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &, [role=group]:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &',
|
|
8
|
-
groupActive: '.group:is(:active, [data-active]):not(:disabled, [data-disabled]) &, [role=group]:is(:active, [data-active]):not(:disabled, [data-disabled]) &',
|
|
9
|
-
groupFocusWithin: '.group:focus-within &, [role=group]:focus-within &',
|
|
10
|
-
groupFocusVisible: '.group:is(:focus-visible, [data-focus-visible]) &, [role=group]:is(:focus-visible, [data-focus-visible]) &',
|
|
11
|
-
groupDisabled: '.group:is(:disabled, [disabled], [data-disabled]) &, [role=group]:is(:disabled, [disabled], [data-disabled]) &',
|
|
12
|
-
groupChecked: '.group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &, [role=group]:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &',
|
|
13
|
-
groupExpanded: '.group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &, [role=group]:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &',
|
|
14
|
-
groupInvalid: '.group:invalid &, [role=group]:invalid &',
|
|
15
|
-
parentHover: 'button:hover &, a:hover &, [role=button]:hover &',
|
|
16
|
-
pressable: '&:is(a, button, [role=button])',
|
|
17
|
-
popupExpanded: '&:is([aria-haspopup][aria-expanded=true], [aria-haspopup][data-expanded], [aria-haspopup][data-state=expanded])',
|
|
18
|
-
rowHover: 'tr:hover &, [role=row]:hover &',
|
|
19
|
-
});
|
|
File without changes
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// const fluidFontSizes = {
|
|
3
|
-
// 'min-max': fluid({
|
|
4
|
-
// property: 'fluid-text-size',
|
|
5
|
-
// from: breakpointValues.sm,
|
|
6
|
-
// to: breakpointValues['2xl'],
|
|
7
|
-
// divider: 1,
|
|
8
|
-
// }),
|
|
9
|
-
// }
|
|
10
|
-
// 'fluid-text-size': {
|
|
11
|
-
// 'min-max': fluid({ property: 'fluid-text-size', from: BP_SM, to: BP_2XL, divider: 1 }),
|
|
12
|
-
// 'sm-md': fluid({ property: 'fluid-text-size', from: BP_SM, to: BP_MD, divider: 1 }),
|
|
13
|
-
// 'sm-lg': fluid({ property: 'fluid-text-size', from: BP_SM, to: BP_LG, divider: 1 }),
|
|
14
|
-
// 'sm-xl': fluid({ property: 'fluid-text-size', from: BP_SM, to: BP_XL, divider: 1 }),
|
|
15
|
-
// 'md-lg': fluid({ property: 'fluid-text-size', from: BP_MD, to: BP_LG, divider: 1 }),
|
|
16
|
-
// 'md-xl': fluid({ property: 'fluid-text-size', from: BP_MD, to: BP_XL, divider: 1 }),
|
|
17
|
-
// 'md-2xl': fluid({ property: 'fluid-text-size', from: BP_MD, to: BP_2XL, divider: 1 }),
|
|
18
|
-
// 'lg-xl': fluid({ property: 'fluid-text-size', from: BP_LG, to: BP_XL, divider: 1 }),
|
|
19
|
-
// 'lg-2xl': fluid({ property: 'fluid-text-size', from: BP_LG, to: BP_2XL, divider: 1 }),
|
|
20
|
-
// },
|
|
21
|
-
// {
|
|
22
|
-
// utilities: {
|
|
23
|
-
// fluidFontSize: {
|
|
24
|
-
// shorthand: ['fluidFontSize'],
|
|
25
|
-
// transform(value, args) {
|
|
26
|
-
// console.log(value, args)
|
|
27
|
-
// const val = 'min-max(sm, lg)'
|
|
28
|
-
// const match = val.match(/(\w+-\w+)\((\w+),\s*(\w+)\)/)
|
|
29
|
-
// if (!match) {
|
|
30
|
-
// return {}
|
|
31
|
-
// }
|
|
32
|
-
// const [, breakpoints, min, max] = match
|
|
33
|
-
// console.log(match)
|
|
34
|
-
// const minSize = args.token.raw(`fontSizes.${min}`)?.value
|
|
35
|
-
// const maxSize = args.token.raw(`fontSizes.${max}`)?.value
|
|
36
|
-
// console.log(minSize, maxSize)
|
|
37
|
-
// return {
|
|
38
|
-
// fontSize: `var(--fluid-text-size-${breakpoints})`,
|
|
39
|
-
// '--fluid-text-size-min': minSize,
|
|
40
|
-
// '--fluid-text-size-max': maxSize,
|
|
41
|
-
// }
|
|
42
|
-
// },
|
|
43
|
-
// },
|
|
44
|
-
// fluidFontSizeMin: {
|
|
45
|
-
// shorthand: ['fluidFontSizeMin'],
|
|
46
|
-
// transform(value, args) {
|
|
47
|
-
// return {
|
|
48
|
-
// '--fluid-text-size-min': value,
|
|
49
|
-
// }
|
|
50
|
-
// },
|
|
51
|
-
// },
|
|
52
|
-
// fluidFontSizeMax: {
|
|
53
|
-
// shorthand: ['fluidFontSizeMax'],
|
|
54
|
-
// transform(value, args) {
|
|
55
|
-
// return {
|
|
56
|
-
// '--fluid-text-size-max': value,
|
|
57
|
-
// }
|
|
58
|
-
// },
|
|
59
|
-
// },
|
|
60
|
-
// },
|
|
61
|
-
// },
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const globalCss: import("@chakra-ui/react").GlobalStyleObject;
|