@saas-ui/react 3.0.0-next.44 → 3.0.0-next.47
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 +3 -2
- 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,157 +0,0 @@
|
|
|
1
|
-
import { switchAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const switchSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: switchAnatomy.keys(),
|
|
5
|
-
className: 'chakra-switch',
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
colorPalette: 'accent',
|
|
9
|
-
display: 'inline-flex',
|
|
10
|
-
gap: '2.5',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
position: 'relative',
|
|
13
|
-
verticalAlign: 'middle',
|
|
14
|
-
'--switch-diff': 'calc(var(--switch-width) - var(--switch-height))',
|
|
15
|
-
'--switch-x': {
|
|
16
|
-
base: 'var(--switch-diff)',
|
|
17
|
-
_rtl: 'calc(var(--switch-diff) * -1)',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
label: {
|
|
21
|
-
lineHeight: '1',
|
|
22
|
-
userSelect: 'none',
|
|
23
|
-
fontSize: 'sm',
|
|
24
|
-
fontWeight: 'medium',
|
|
25
|
-
_disabled: {
|
|
26
|
-
opacity: '0.5',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
indicator: {
|
|
30
|
-
position: 'absolute',
|
|
31
|
-
height: 'var(--switch-height)',
|
|
32
|
-
width: 'var(--switch-height)',
|
|
33
|
-
fontSize: 'var(--switch-indicator-font-size)',
|
|
34
|
-
fontWeight: 'medium',
|
|
35
|
-
flexShrink: 0,
|
|
36
|
-
userSelect: 'none',
|
|
37
|
-
display: 'grid',
|
|
38
|
-
placeContent: 'center',
|
|
39
|
-
transition: 'inset-inline-start 0.12s ease',
|
|
40
|
-
insetInlineStart: 'calc(var(--switch-x) - 2px)',
|
|
41
|
-
_checked: {
|
|
42
|
-
insetInlineStart: '2px',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
control: {
|
|
46
|
-
display: 'inline-flex',
|
|
47
|
-
gap: '0.5rem',
|
|
48
|
-
flexShrink: 0,
|
|
49
|
-
justifyContent: 'flex-start',
|
|
50
|
-
cursor: 'switch',
|
|
51
|
-
borderRadius: 'full',
|
|
52
|
-
position: 'relative',
|
|
53
|
-
width: 'var(--switch-width)',
|
|
54
|
-
height: 'var(--switch-height)',
|
|
55
|
-
_disabled: {
|
|
56
|
-
opacity: '0.5',
|
|
57
|
-
cursor: 'not-allowed',
|
|
58
|
-
},
|
|
59
|
-
_invalid: {
|
|
60
|
-
focusRingColor: 'border.error',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
thumb: {
|
|
64
|
-
display: 'flex',
|
|
65
|
-
alignItems: 'center',
|
|
66
|
-
justifyContent: 'center',
|
|
67
|
-
flexShrink: 0,
|
|
68
|
-
transitionProperty: 'translate',
|
|
69
|
-
transitionDuration: 'fast',
|
|
70
|
-
borderRadius: 'inherit',
|
|
71
|
-
_checked: {
|
|
72
|
-
translate: 'var(--switch-x) 0',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
variants: {
|
|
77
|
-
variant: {
|
|
78
|
-
solid: {
|
|
79
|
-
control: {
|
|
80
|
-
borderRadius: 'full',
|
|
81
|
-
bg: 'bg.emphasized',
|
|
82
|
-
focusVisibleRing: 'outside',
|
|
83
|
-
_checked: {
|
|
84
|
-
bg: 'colorPalette.solid',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
thumb: {
|
|
88
|
-
bg: 'white',
|
|
89
|
-
width: 'var(--switch-height)',
|
|
90
|
-
height: 'var(--switch-height)',
|
|
91
|
-
scale: '0.8',
|
|
92
|
-
boxShadow: 'sm',
|
|
93
|
-
_checked: {
|
|
94
|
-
bg: 'colorPalette.contrast',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
raised: {
|
|
99
|
-
control: {
|
|
100
|
-
borderRadius: 'full',
|
|
101
|
-
height: 'calc(var(--switch-height) / 2)',
|
|
102
|
-
bg: 'bg.muted',
|
|
103
|
-
boxShadow: 'inset',
|
|
104
|
-
_checked: {
|
|
105
|
-
bg: 'colorPalette.solid/60',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
thumb: {
|
|
109
|
-
width: 'var(--switch-height)',
|
|
110
|
-
height: 'var(--switch-height)',
|
|
111
|
-
position: 'relative',
|
|
112
|
-
top: 'calc(var(--switch-height) * -0.25)',
|
|
113
|
-
bg: 'white',
|
|
114
|
-
boxShadow: 'xs',
|
|
115
|
-
focusVisibleRing: 'outside',
|
|
116
|
-
_checked: {
|
|
117
|
-
bg: 'colorPalette.solid',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
size: {
|
|
123
|
-
xs: {
|
|
124
|
-
root: {
|
|
125
|
-
'--switch-width': 'sizes.6',
|
|
126
|
-
'--switch-height': 'sizes.3',
|
|
127
|
-
'--switch-indicator-font-size': 'fontSizes.xs',
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
sm: {
|
|
131
|
-
root: {
|
|
132
|
-
'--switch-width': 'sizes.8',
|
|
133
|
-
'--switch-height': 'sizes.4',
|
|
134
|
-
'--switch-indicator-font-size': 'fontSizes.xs',
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
md: {
|
|
138
|
-
root: {
|
|
139
|
-
'--switch-width': 'sizes.10',
|
|
140
|
-
'--switch-height': 'sizes.5',
|
|
141
|
-
'--switch-indicator-font-size': 'fontSizes.sm',
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
lg: {
|
|
145
|
-
root: {
|
|
146
|
-
'--switch-width': 'sizes.12',
|
|
147
|
-
'--switch-height': 'sizes.6',
|
|
148
|
-
'--switch-indicator-font-size': 'fontSizes.md',
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
defaultVariants: {
|
|
154
|
-
variant: 'solid',
|
|
155
|
-
size: 'md',
|
|
156
|
-
},
|
|
157
|
-
});
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export declare const tableSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"body" | "cell" | "row" | "root" | "caption" | "header" | "footer" | "columnHeader", {
|
|
2
|
-
interactive: {
|
|
3
|
-
true: {
|
|
4
|
-
body: {
|
|
5
|
-
'& tr': {
|
|
6
|
-
_hover: {
|
|
7
|
-
bg: "colorPalette.subtle";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
stickyHeader: {
|
|
14
|
-
true: {
|
|
15
|
-
header: {
|
|
16
|
-
'& :where(tr)': {
|
|
17
|
-
top: "var(--table-sticky-offset, 0)";
|
|
18
|
-
position: "sticky";
|
|
19
|
-
zIndex: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
striped: {
|
|
25
|
-
true: {
|
|
26
|
-
row: {
|
|
27
|
-
'&:nth-of-type(odd) td': {
|
|
28
|
-
bg: "bg.muted";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
showColumnBorder: {
|
|
34
|
-
true: {
|
|
35
|
-
columnHeader: {
|
|
36
|
-
'&:not(:last-of-type)': {
|
|
37
|
-
borderInlineEndWidth: "1px";
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
cell: {
|
|
41
|
-
'&:not(:last-of-type)': {
|
|
42
|
-
borderInlineEndWidth: "1px";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
variant: {
|
|
48
|
-
line: {
|
|
49
|
-
columnHeader: {
|
|
50
|
-
borderBottomWidth: "1px";
|
|
51
|
-
};
|
|
52
|
-
cell: {
|
|
53
|
-
borderBottomWidth: "1px";
|
|
54
|
-
};
|
|
55
|
-
row: {
|
|
56
|
-
bg: "bg";
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
outline: {
|
|
60
|
-
root: {
|
|
61
|
-
boxShadow: "0 0 0 1px {colors.border}";
|
|
62
|
-
overflow: "hidden";
|
|
63
|
-
};
|
|
64
|
-
columnHeader: {
|
|
65
|
-
borderBottomWidth: "1px";
|
|
66
|
-
};
|
|
67
|
-
header: {
|
|
68
|
-
bg: "bg.muted";
|
|
69
|
-
};
|
|
70
|
-
row: {
|
|
71
|
-
'&:not(:last-of-type)': {
|
|
72
|
-
borderBottomWidth: "1px";
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
footer: {
|
|
76
|
-
borderTopWidth: "1px";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
size: {
|
|
81
|
-
sm: {
|
|
82
|
-
root: {
|
|
83
|
-
textStyle: "sm";
|
|
84
|
-
};
|
|
85
|
-
columnHeader: {
|
|
86
|
-
px: "2";
|
|
87
|
-
py: "2";
|
|
88
|
-
};
|
|
89
|
-
cell: {
|
|
90
|
-
px: "2";
|
|
91
|
-
py: "2";
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
md: {
|
|
95
|
-
root: {
|
|
96
|
-
textStyle: "sm";
|
|
97
|
-
};
|
|
98
|
-
columnHeader: {
|
|
99
|
-
px: "3";
|
|
100
|
-
py: "3";
|
|
101
|
-
};
|
|
102
|
-
cell: {
|
|
103
|
-
px: "3";
|
|
104
|
-
py: "3";
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
lg: {
|
|
108
|
-
root: {
|
|
109
|
-
textStyle: "md";
|
|
110
|
-
};
|
|
111
|
-
columnHeader: {
|
|
112
|
-
px: "4";
|
|
113
|
-
py: "3";
|
|
114
|
-
};
|
|
115
|
-
cell: {
|
|
116
|
-
px: "4";
|
|
117
|
-
py: "3";
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
}>;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { tableAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const tableSlotRecipe = defineSlotRecipe({
|
|
4
|
-
className: 'chakra-table',
|
|
5
|
-
slots: tableAnatomy.keys(),
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
fontVariantNumeric: 'lining-nums tabular-nums',
|
|
9
|
-
borderCollapse: 'collapse',
|
|
10
|
-
width: 'full',
|
|
11
|
-
textAlign: 'start',
|
|
12
|
-
verticalAlign: 'top',
|
|
13
|
-
},
|
|
14
|
-
row: {
|
|
15
|
-
_selected: {
|
|
16
|
-
bg: 'colorPalette.subtle',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
cell: {
|
|
20
|
-
textAlign: 'start',
|
|
21
|
-
alignItems: 'center',
|
|
22
|
-
},
|
|
23
|
-
columnHeader: {
|
|
24
|
-
fontWeight: 'medium',
|
|
25
|
-
textAlign: 'start',
|
|
26
|
-
color: 'fg',
|
|
27
|
-
},
|
|
28
|
-
caption: {
|
|
29
|
-
fontWeight: 'medium',
|
|
30
|
-
textStyle: 'xs',
|
|
31
|
-
},
|
|
32
|
-
footer: {
|
|
33
|
-
fontWeight: 'medium',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
variants: {
|
|
37
|
-
interactive: {
|
|
38
|
-
true: {
|
|
39
|
-
body: {
|
|
40
|
-
'& tr': {
|
|
41
|
-
_hover: {
|
|
42
|
-
bg: 'colorPalette.subtle',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
stickyHeader: {
|
|
49
|
-
true: {
|
|
50
|
-
header: {
|
|
51
|
-
'& :where(tr)': {
|
|
52
|
-
top: 'var(--table-sticky-offset, 0)',
|
|
53
|
-
position: 'sticky',
|
|
54
|
-
zIndex: 1,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
striped: {
|
|
60
|
-
true: {
|
|
61
|
-
row: {
|
|
62
|
-
'&:nth-of-type(odd) td': {
|
|
63
|
-
bg: 'bg.muted',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
showColumnBorder: {
|
|
69
|
-
true: {
|
|
70
|
-
columnHeader: {
|
|
71
|
-
'&:not(:last-of-type)': {
|
|
72
|
-
borderInlineEndWidth: '1px',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
cell: {
|
|
76
|
-
'&:not(:last-of-type)': {
|
|
77
|
-
borderInlineEndWidth: '1px',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
variant: {
|
|
83
|
-
line: {
|
|
84
|
-
columnHeader: {
|
|
85
|
-
borderBottomWidth: '1px',
|
|
86
|
-
},
|
|
87
|
-
cell: {
|
|
88
|
-
borderBottomWidth: '1px',
|
|
89
|
-
},
|
|
90
|
-
row: {
|
|
91
|
-
bg: 'bg',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
outline: {
|
|
95
|
-
root: {
|
|
96
|
-
boxShadow: '0 0 0 1px {colors.border}',
|
|
97
|
-
overflow: 'hidden',
|
|
98
|
-
},
|
|
99
|
-
columnHeader: {
|
|
100
|
-
borderBottomWidth: '1px',
|
|
101
|
-
},
|
|
102
|
-
header: {
|
|
103
|
-
bg: 'bg.muted',
|
|
104
|
-
},
|
|
105
|
-
row: {
|
|
106
|
-
'&:not(:last-of-type)': {
|
|
107
|
-
borderBottomWidth: '1px',
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
footer: {
|
|
111
|
-
borderTopWidth: '1px',
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
size: {
|
|
116
|
-
sm: {
|
|
117
|
-
root: {
|
|
118
|
-
textStyle: 'sm',
|
|
119
|
-
},
|
|
120
|
-
columnHeader: {
|
|
121
|
-
px: '2',
|
|
122
|
-
py: '2',
|
|
123
|
-
},
|
|
124
|
-
cell: {
|
|
125
|
-
px: '2',
|
|
126
|
-
py: '2',
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
md: {
|
|
130
|
-
root: {
|
|
131
|
-
textStyle: 'sm',
|
|
132
|
-
},
|
|
133
|
-
columnHeader: {
|
|
134
|
-
px: '3',
|
|
135
|
-
py: '3',
|
|
136
|
-
},
|
|
137
|
-
cell: {
|
|
138
|
-
px: '3',
|
|
139
|
-
py: '3',
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
lg: {
|
|
143
|
-
root: {
|
|
144
|
-
textStyle: 'md',
|
|
145
|
-
},
|
|
146
|
-
columnHeader: {
|
|
147
|
-
px: '4',
|
|
148
|
-
py: '3',
|
|
149
|
-
},
|
|
150
|
-
cell: {
|
|
151
|
-
px: '4',
|
|
152
|
-
py: '3',
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
defaultVariants: {
|
|
158
|
-
variant: 'line',
|
|
159
|
-
size: 'md',
|
|
160
|
-
},
|
|
161
|
-
});
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
export declare const tabsSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "root" | "list" | "trigger" | "contentGroup", {
|
|
2
|
-
fitted: {
|
|
3
|
-
true: {
|
|
4
|
-
list: {
|
|
5
|
-
display: "flex";
|
|
6
|
-
};
|
|
7
|
-
trigger: {
|
|
8
|
-
flex: number;
|
|
9
|
-
textAlign: "center";
|
|
10
|
-
justifyContent: "center";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
justify: {
|
|
15
|
-
start: {
|
|
16
|
-
list: {
|
|
17
|
-
justifyContent: "flex-start";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
center: {
|
|
21
|
-
list: {
|
|
22
|
-
justifyContent: "center";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
end: {
|
|
26
|
-
list: {
|
|
27
|
-
justifyContent: "flex-end";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
size: {
|
|
32
|
-
xs: {
|
|
33
|
-
root: {
|
|
34
|
-
'--tabs-height': "sizes.6";
|
|
35
|
-
'--tabs-content-padding': "spacing.2";
|
|
36
|
-
'--tabs-trigger-radius': "radii.control.sm";
|
|
37
|
-
};
|
|
38
|
-
trigger: {
|
|
39
|
-
py: "1";
|
|
40
|
-
px: "2";
|
|
41
|
-
textStyle: "xs";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
sm: {
|
|
45
|
-
root: {
|
|
46
|
-
'--tabs-height': "sizes.7";
|
|
47
|
-
'--tabs-content-padding': "spacing.3";
|
|
48
|
-
'--tabs-trigger-radius': "radii.control.md";
|
|
49
|
-
};
|
|
50
|
-
trigger: {
|
|
51
|
-
py: "1";
|
|
52
|
-
px: "3";
|
|
53
|
-
textStyle: "sm";
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
md: {
|
|
57
|
-
root: {
|
|
58
|
-
'--tabs-height': "sizes.8";
|
|
59
|
-
'--tabs-content-padding': "spacing.4";
|
|
60
|
-
'--tabs-trigger-radius': "radii.control.md";
|
|
61
|
-
};
|
|
62
|
-
trigger: {
|
|
63
|
-
py: "2";
|
|
64
|
-
px: "4";
|
|
65
|
-
textStyle: "sm";
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
lg: {
|
|
69
|
-
root: {
|
|
70
|
-
'--tabs-height': "sizes.10";
|
|
71
|
-
'--tabs-content-padding': "spacing.4.5";
|
|
72
|
-
'--tabs-trigger-radius': "radii.control.lg";
|
|
73
|
-
};
|
|
74
|
-
trigger: {
|
|
75
|
-
py: "2";
|
|
76
|
-
px: "4.5";
|
|
77
|
-
textStyle: "md";
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
variant: {
|
|
82
|
-
line: {
|
|
83
|
-
list: {
|
|
84
|
-
display: "flex";
|
|
85
|
-
borderColor: "border";
|
|
86
|
-
_horizontal: {
|
|
87
|
-
borderBottomWidth: "1px";
|
|
88
|
-
};
|
|
89
|
-
_vertical: {
|
|
90
|
-
borderEndWidth: "1px";
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
trigger: {
|
|
94
|
-
color: "fg.muted";
|
|
95
|
-
_hover: {
|
|
96
|
-
color: "fg.subtle";
|
|
97
|
-
};
|
|
98
|
-
_disabled: {
|
|
99
|
-
_active: {
|
|
100
|
-
bg: "initial";
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
_selected: {
|
|
104
|
-
color: "fg";
|
|
105
|
-
_horizontal: {
|
|
106
|
-
layerStyle: "indicator.bottom";
|
|
107
|
-
borderTopRadius: "3px";
|
|
108
|
-
'--indicator-offset-x': "spacing.3";
|
|
109
|
-
'--indicator-offset-y': "-1px";
|
|
110
|
-
'--indicator-color': "colors.colorPalette.solid";
|
|
111
|
-
};
|
|
112
|
-
_vertical: {
|
|
113
|
-
layerStyle: "indicator.end";
|
|
114
|
-
'--indicator-offset-x': "-1px";
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
pills: {
|
|
120
|
-
list: {
|
|
121
|
-
gap: number;
|
|
122
|
-
};
|
|
123
|
-
trigger: {
|
|
124
|
-
borderRadius: "var(--tabs-trigger-radius)";
|
|
125
|
-
color: "fg.muted";
|
|
126
|
-
borderWidth: "1px";
|
|
127
|
-
borderColor: "border.emphasized";
|
|
128
|
-
_hover: {
|
|
129
|
-
bg: "bg.muted";
|
|
130
|
-
color: "fg.subtle";
|
|
131
|
-
};
|
|
132
|
-
_selected: {
|
|
133
|
-
bg: "colorPalette.subtle";
|
|
134
|
-
color: "colorPalette.fg";
|
|
135
|
-
borderColor: "colorPalette.solid/40";
|
|
136
|
-
_hover: {
|
|
137
|
-
bg: "colorPalette.subtle";
|
|
138
|
-
color: "colorPalette.fg";
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
ghost: {
|
|
144
|
-
list: {
|
|
145
|
-
gap: number;
|
|
146
|
-
};
|
|
147
|
-
trigger: {
|
|
148
|
-
borderRadius: "var(--tabs-trigger-radius)";
|
|
149
|
-
color: "fg.subtle";
|
|
150
|
-
_hover: {
|
|
151
|
-
bg: "colorPalette.muted";
|
|
152
|
-
color: "colorPalette.fg";
|
|
153
|
-
};
|
|
154
|
-
_selected: {
|
|
155
|
-
bg: "colorPalette.subtle";
|
|
156
|
-
color: "colorPalette.fg";
|
|
157
|
-
_hover: {
|
|
158
|
-
bg: "colorPalette.subtle";
|
|
159
|
-
color: "colorPalette.fg";
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
enclosed: {
|
|
165
|
-
list: {
|
|
166
|
-
bg: "bg.muted";
|
|
167
|
-
boxShadow: "inset";
|
|
168
|
-
borderRadius: "md";
|
|
169
|
-
borderWidth: "1px";
|
|
170
|
-
minH: "calc(var(--tabs-height) - 4px)";
|
|
171
|
-
};
|
|
172
|
-
trigger: {
|
|
173
|
-
justifyContent: "center";
|
|
174
|
-
color: "fg.muted";
|
|
175
|
-
borderRadius: "calc({radii.md} - 1px)";
|
|
176
|
-
_hover: {
|
|
177
|
-
color: "fg.subtle";
|
|
178
|
-
};
|
|
179
|
-
_selected: {
|
|
180
|
-
bg: "bg";
|
|
181
|
-
color: "colorPalette.fg";
|
|
182
|
-
shadow: "sm";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
outline: {
|
|
187
|
-
list: {
|
|
188
|
-
'--line-thickness': "1px";
|
|
189
|
-
'--line-offset': "calc(var(--line-thickness) * -1)";
|
|
190
|
-
borderColor: "border";
|
|
191
|
-
display: "flex";
|
|
192
|
-
_horizontal: {
|
|
193
|
-
_before: {
|
|
194
|
-
content: "\"\"";
|
|
195
|
-
position: "absolute";
|
|
196
|
-
bottom: "0px";
|
|
197
|
-
width: "100%";
|
|
198
|
-
borderBottomWidth: "var(--line-thickness)";
|
|
199
|
-
borderBottomColor: "border";
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
_vertical: {
|
|
203
|
-
_before: {
|
|
204
|
-
content: "\"\"";
|
|
205
|
-
position: "absolute";
|
|
206
|
-
insetInline: "var(--line-offset)";
|
|
207
|
-
height: "calc(100% - calc(var(--line-thickness) * 2))";
|
|
208
|
-
borderEndWidth: "var(--line-thickness)";
|
|
209
|
-
borderEndColor: "border";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
trigger: {
|
|
214
|
-
color: "fg.muted";
|
|
215
|
-
borderWidth: "1px";
|
|
216
|
-
borderColor: "transparent";
|
|
217
|
-
_hover: {
|
|
218
|
-
color: "fg.subtle";
|
|
219
|
-
};
|
|
220
|
-
_selected: {
|
|
221
|
-
bg: "currentBg";
|
|
222
|
-
color: "colorPalette.fg";
|
|
223
|
-
};
|
|
224
|
-
_horizontal: {
|
|
225
|
-
borderTopRadius: "var(--tabs-trigger-radius)";
|
|
226
|
-
marginBottom: "var(--line-offset)";
|
|
227
|
-
marginEnd: {
|
|
228
|
-
_notLast: "var(--line-offset)";
|
|
229
|
-
};
|
|
230
|
-
_selected: {
|
|
231
|
-
borderColor: "border";
|
|
232
|
-
borderBottomColor: "transparent";
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
_vertical: {
|
|
236
|
-
borderStartRadius: "var(--tabs-trigger-radius)";
|
|
237
|
-
marginEnd: "var(--line-offset)";
|
|
238
|
-
marginBottom: {
|
|
239
|
-
_notLast: "var(--line-offset)";
|
|
240
|
-
};
|
|
241
|
-
_selected: {
|
|
242
|
-
borderColor: "border";
|
|
243
|
-
borderEndColor: "transparent";
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
plain: {
|
|
249
|
-
trigger: {
|
|
250
|
-
color: "fg.muted";
|
|
251
|
-
_selected: {
|
|
252
|
-
color: "colorPalette.fg";
|
|
253
|
-
};
|
|
254
|
-
borderRadius: "var(--tabs-trigger-radius)";
|
|
255
|
-
'&[data-selected][data-ssr]': {
|
|
256
|
-
bg: "var(--tabs-indicator-bg)";
|
|
257
|
-
shadow: "var(--tabs-indicator-shadow)";
|
|
258
|
-
borderRadius: "var(--tabs-indicator-radius)";
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
}>;
|