@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,202 +0,0 @@
|
|
|
1
|
-
import { drawerAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const drawerSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: drawerAnatomy.keys(),
|
|
5
|
-
className: 'chakra-drawer',
|
|
6
|
-
base: {
|
|
7
|
-
backdrop: {
|
|
8
|
-
layerStyle: 'backdrop',
|
|
9
|
-
pos: 'fixed',
|
|
10
|
-
insetInlineStart: 0,
|
|
11
|
-
top: 0,
|
|
12
|
-
w: '100vw',
|
|
13
|
-
h: '100dvh',
|
|
14
|
-
zIndex: 'layer-4',
|
|
15
|
-
_open: {
|
|
16
|
-
animationName: 'fade-in',
|
|
17
|
-
animationDuration: 'slow',
|
|
18
|
-
},
|
|
19
|
-
_closed: {
|
|
20
|
-
animationName: 'fade-out',
|
|
21
|
-
animationDuration: 'moderate',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
positioner: {
|
|
25
|
-
'--drawer-z-index': 'zIndex.layer-4',
|
|
26
|
-
display: 'flex',
|
|
27
|
-
width: '100vw',
|
|
28
|
-
height: '100dvh',
|
|
29
|
-
position: 'fixed',
|
|
30
|
-
padding: 2,
|
|
31
|
-
insetInlineStart: 0,
|
|
32
|
-
top: 0,
|
|
33
|
-
zIndex: 'calc(var(--drawer-z-index) + var(--layer-index, 0))',
|
|
34
|
-
overscrollBehaviorY: 'none',
|
|
35
|
-
},
|
|
36
|
-
content: {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
flexDirection: 'column',
|
|
39
|
-
position: 'relative',
|
|
40
|
-
width: '100%',
|
|
41
|
-
outline: 0,
|
|
42
|
-
zIndex: 'calc(var(--drawer-z-index) + var(--layer-index, 0))',
|
|
43
|
-
textStyle: 'sm',
|
|
44
|
-
maxH: '100dvh',
|
|
45
|
-
color: 'inherit',
|
|
46
|
-
layerStyle: 'overlay',
|
|
47
|
-
_open: {
|
|
48
|
-
animationDuration: 'slowest',
|
|
49
|
-
animationTimingFunction: 'ease-in-smooth',
|
|
50
|
-
},
|
|
51
|
-
_closed: {
|
|
52
|
-
animationDuration: 'slower',
|
|
53
|
-
animationTimingFunction: 'ease-in-smooth',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
header: {
|
|
57
|
-
display: 'flex',
|
|
58
|
-
flexDirection: 'row',
|
|
59
|
-
alignItems: 'center',
|
|
60
|
-
justifyContent: 'space-between',
|
|
61
|
-
flex: 0,
|
|
62
|
-
px: '6',
|
|
63
|
-
py: '4',
|
|
64
|
-
},
|
|
65
|
-
body: {
|
|
66
|
-
px: '6',
|
|
67
|
-
py: '2',
|
|
68
|
-
flex: '1',
|
|
69
|
-
overflow: 'auto',
|
|
70
|
-
},
|
|
71
|
-
footer: {
|
|
72
|
-
display: 'flex',
|
|
73
|
-
alignItems: 'center',
|
|
74
|
-
justifyContent: 'flex-end',
|
|
75
|
-
gap: '3',
|
|
76
|
-
px: '6',
|
|
77
|
-
pt: '2',
|
|
78
|
-
pb: '4',
|
|
79
|
-
},
|
|
80
|
-
title: {
|
|
81
|
-
textStyle: 'lg',
|
|
82
|
-
fontWeight: 'semibold',
|
|
83
|
-
},
|
|
84
|
-
description: {
|
|
85
|
-
color: 'fg.muted',
|
|
86
|
-
},
|
|
87
|
-
closeTrigger: {
|
|
88
|
-
position: 'absolute',
|
|
89
|
-
top: '4',
|
|
90
|
-
right: '4',
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
variants: {
|
|
94
|
-
size: {
|
|
95
|
-
xs: {
|
|
96
|
-
content: {
|
|
97
|
-
maxW: 'xs',
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
sm: {
|
|
101
|
-
content: {
|
|
102
|
-
maxW: 'md',
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
md: {
|
|
106
|
-
content: {
|
|
107
|
-
maxW: 'lg',
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
lg: {
|
|
111
|
-
content: {
|
|
112
|
-
maxW: '2xl',
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
xl: {
|
|
116
|
-
content: {
|
|
117
|
-
maxW: '4xl',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
full: {
|
|
121
|
-
content: {
|
|
122
|
-
maxW: '100vw',
|
|
123
|
-
h: '100dvh',
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
placement: {
|
|
128
|
-
start: {
|
|
129
|
-
positioner: {
|
|
130
|
-
justifyContent: 'flex-start',
|
|
131
|
-
},
|
|
132
|
-
content: {
|
|
133
|
-
_open: {
|
|
134
|
-
animationName: {
|
|
135
|
-
base: 'slide-from-left-full, fade-in',
|
|
136
|
-
_rtl: 'slide-from-right-full, fade-in',
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
_closed: {
|
|
140
|
-
animationName: {
|
|
141
|
-
base: 'slide-to-left-full, fade-out',
|
|
142
|
-
_rtl: 'slide-to-right-full, fade-out',
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
end: {
|
|
148
|
-
positioner: {
|
|
149
|
-
justifyContent: 'flex-end',
|
|
150
|
-
},
|
|
151
|
-
content: {
|
|
152
|
-
_open: {
|
|
153
|
-
animationName: {
|
|
154
|
-
base: 'slide-from-right-full, fade-in',
|
|
155
|
-
_rtl: 'slide-from-left-full, fade-in',
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
_closed: {
|
|
159
|
-
animationName: {
|
|
160
|
-
base: 'slide-to-right-full, fade-out',
|
|
161
|
-
_rtl: 'slide-to-right-full, fade-out',
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
top: {
|
|
167
|
-
positioner: {
|
|
168
|
-
alignItems: 'flex-start',
|
|
169
|
-
},
|
|
170
|
-
content: {
|
|
171
|
-
maxW: '100%',
|
|
172
|
-
_open: { animationName: 'slide-from-top-full, fade-in' },
|
|
173
|
-
_closed: { animationName: 'slide-to-top-full, fade-out' },
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
bottom: {
|
|
177
|
-
positioner: {
|
|
178
|
-
alignItems: 'flex-end',
|
|
179
|
-
},
|
|
180
|
-
content: {
|
|
181
|
-
maxW: '100%',
|
|
182
|
-
_open: { animationName: 'slide-from-bottom-full, fade-in' },
|
|
183
|
-
_closed: { animationName: 'slide-to-bottom-full, fade-out' },
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
attached: {
|
|
188
|
-
true: {
|
|
189
|
-
positioner: {
|
|
190
|
-
padding: 0,
|
|
191
|
-
},
|
|
192
|
-
content: {
|
|
193
|
-
borderRadius: 'none',
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
defaultVariants: {
|
|
199
|
-
size: 'xs',
|
|
200
|
-
placement: 'end',
|
|
201
|
-
},
|
|
202
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const editableSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "textarea" | "control" | "root" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger", {
|
|
2
|
-
size: {
|
|
3
|
-
sm: {
|
|
4
|
-
root: {
|
|
5
|
-
textStyle: "sm";
|
|
6
|
-
};
|
|
7
|
-
preview: {
|
|
8
|
-
minH: "8";
|
|
9
|
-
};
|
|
10
|
-
input: {
|
|
11
|
-
minH: "8";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
md: {
|
|
15
|
-
root: {
|
|
16
|
-
textStyle: "sm";
|
|
17
|
-
};
|
|
18
|
-
preview: {
|
|
19
|
-
minH: "9";
|
|
20
|
-
};
|
|
21
|
-
input: {
|
|
22
|
-
minH: "9";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
lg: {
|
|
26
|
-
root: {
|
|
27
|
-
textStyle: "md";
|
|
28
|
-
};
|
|
29
|
-
preview: {
|
|
30
|
-
minH: "10";
|
|
31
|
-
};
|
|
32
|
-
input: {
|
|
33
|
-
minH: "10";
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { editableAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe, defineStyle } from '@chakra-ui/react/styled-system';
|
|
3
|
-
const sharedStyles = defineStyle({
|
|
4
|
-
fontSize: 'inherit',
|
|
5
|
-
fontWeight: 'inherit',
|
|
6
|
-
textAlign: 'inherit',
|
|
7
|
-
bg: 'transparent',
|
|
8
|
-
borderRadius: 'control.md',
|
|
9
|
-
});
|
|
10
|
-
export const editableSlotRecipe = defineSlotRecipe({
|
|
11
|
-
slots: editableAnatomy.keys(),
|
|
12
|
-
className: 'chakra-editable',
|
|
13
|
-
base: {
|
|
14
|
-
root: {
|
|
15
|
-
display: 'inline-flex',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
position: 'relative',
|
|
18
|
-
gap: '1.5',
|
|
19
|
-
width: 'full',
|
|
20
|
-
},
|
|
21
|
-
preview: {
|
|
22
|
-
...sharedStyles,
|
|
23
|
-
py: '1',
|
|
24
|
-
px: '1',
|
|
25
|
-
display: 'inline-flex',
|
|
26
|
-
alignItems: 'center',
|
|
27
|
-
transitionProperty: 'common',
|
|
28
|
-
transitionDuration: 'moderate',
|
|
29
|
-
cursor: 'text',
|
|
30
|
-
_hover: {
|
|
31
|
-
bg: 'bg.muted',
|
|
32
|
-
},
|
|
33
|
-
_disabled: {
|
|
34
|
-
userSelect: 'none',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
input: {
|
|
38
|
-
...sharedStyles,
|
|
39
|
-
outline: '0',
|
|
40
|
-
py: '1',
|
|
41
|
-
px: '1',
|
|
42
|
-
transitionProperty: 'common',
|
|
43
|
-
transitionDuration: 'moderate',
|
|
44
|
-
width: 'full',
|
|
45
|
-
focusVisibleRing: 'inside',
|
|
46
|
-
focusRingWidth: '1px',
|
|
47
|
-
_placeholder: { opacity: 0.6 },
|
|
48
|
-
'--focus-color': 'colors.colorPalette.focusRing',
|
|
49
|
-
'--error-color': 'colors.border.error',
|
|
50
|
-
_invalid: {
|
|
51
|
-
focusRingColor: 'var(--error-color)',
|
|
52
|
-
borderColor: 'var(--error-color)',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
control: {
|
|
56
|
-
display: 'inline-flex',
|
|
57
|
-
alignItems: 'center',
|
|
58
|
-
gap: '1.5',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
variants: {
|
|
62
|
-
size: {
|
|
63
|
-
sm: {
|
|
64
|
-
root: {
|
|
65
|
-
textStyle: 'sm',
|
|
66
|
-
},
|
|
67
|
-
preview: { minH: '8' },
|
|
68
|
-
input: { minH: '8' },
|
|
69
|
-
},
|
|
70
|
-
md: {
|
|
71
|
-
root: {
|
|
72
|
-
textStyle: 'sm',
|
|
73
|
-
},
|
|
74
|
-
preview: { minH: '9' },
|
|
75
|
-
input: { minH: '9' },
|
|
76
|
-
},
|
|
77
|
-
lg: {
|
|
78
|
-
root: {
|
|
79
|
-
textStyle: 'md',
|
|
80
|
-
},
|
|
81
|
-
preview: { minH: '10' },
|
|
82
|
-
input: { minH: '10' },
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
defaultVariants: {
|
|
87
|
-
size: 'md',
|
|
88
|
-
},
|
|
89
|
-
});
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export declare const emptyStateSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "indicator" | "root" | "title" | "actions", {
|
|
2
|
-
size: {
|
|
3
|
-
sm: {
|
|
4
|
-
root: {
|
|
5
|
-
px: "4";
|
|
6
|
-
py: "6";
|
|
7
|
-
};
|
|
8
|
-
indicator: {
|
|
9
|
-
textStyle: "3xl";
|
|
10
|
-
mb: "2";
|
|
11
|
-
};
|
|
12
|
-
title: {
|
|
13
|
-
textStyle: "md";
|
|
14
|
-
};
|
|
15
|
-
description: {
|
|
16
|
-
textStyle: "xs";
|
|
17
|
-
};
|
|
18
|
-
content: {
|
|
19
|
-
textStyle: "xs";
|
|
20
|
-
};
|
|
21
|
-
actions: {
|
|
22
|
-
mt: "2";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
md: {
|
|
26
|
-
root: {
|
|
27
|
-
px: "8";
|
|
28
|
-
py: "12";
|
|
29
|
-
};
|
|
30
|
-
indicator: {
|
|
31
|
-
textStyle: "4xl";
|
|
32
|
-
mb: "3";
|
|
33
|
-
};
|
|
34
|
-
title: {
|
|
35
|
-
textStyle: "lg";
|
|
36
|
-
};
|
|
37
|
-
description: {
|
|
38
|
-
textStyle: "sm";
|
|
39
|
-
};
|
|
40
|
-
content: {
|
|
41
|
-
textStyle: "sm";
|
|
42
|
-
};
|
|
43
|
-
actions: {
|
|
44
|
-
mt: "3";
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
lg: {
|
|
48
|
-
root: {
|
|
49
|
-
px: "12";
|
|
50
|
-
py: "16";
|
|
51
|
-
};
|
|
52
|
-
indicator: {
|
|
53
|
-
textStyle: "6xl";
|
|
54
|
-
mb: "4";
|
|
55
|
-
};
|
|
56
|
-
title: {
|
|
57
|
-
textStyle: "xl";
|
|
58
|
-
};
|
|
59
|
-
description: {
|
|
60
|
-
textStyle: "md";
|
|
61
|
-
};
|
|
62
|
-
content: {
|
|
63
|
-
textStyle: "md";
|
|
64
|
-
};
|
|
65
|
-
actions: {
|
|
66
|
-
mt: "4";
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
align: {
|
|
71
|
-
start: {
|
|
72
|
-
content: {
|
|
73
|
-
alignItems: "flex-start";
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
center: {
|
|
77
|
-
content: {
|
|
78
|
-
alignItems: "center";
|
|
79
|
-
textAlign: "center";
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
}>;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { emptyStateAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const emptyStateSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: emptyStateAnatomy.extendWith('actions').keys(),
|
|
5
|
-
className: 'chakra-empty-state',
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
colorPalette: 'accent',
|
|
9
|
-
width: 'full',
|
|
10
|
-
height: 'full',
|
|
11
|
-
display: 'flex',
|
|
12
|
-
flexDirection: 'column',
|
|
13
|
-
alignItems: 'center',
|
|
14
|
-
justifyContent: 'center',
|
|
15
|
-
},
|
|
16
|
-
content: {
|
|
17
|
-
display: 'flex',
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
alignItems: 'center',
|
|
20
|
-
justifyContent: 'center',
|
|
21
|
-
gap: '0.25rem',
|
|
22
|
-
},
|
|
23
|
-
indicator: {
|
|
24
|
-
display: 'flex',
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
justifyContent: 'center',
|
|
27
|
-
color: 'colorPalette.solid',
|
|
28
|
-
_icon: {
|
|
29
|
-
boxSize: '1em',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
title: {
|
|
33
|
-
fontWeight: 'semibold',
|
|
34
|
-
},
|
|
35
|
-
description: {
|
|
36
|
-
textStyle: 'sm',
|
|
37
|
-
color: 'fg.muted',
|
|
38
|
-
'&:is(div)': {
|
|
39
|
-
display: 'flex',
|
|
40
|
-
flexDirection: 'column',
|
|
41
|
-
gap: '0.5rem',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
actions: {
|
|
45
|
-
display: 'flex',
|
|
46
|
-
flexDirection: 'row',
|
|
47
|
-
gap: '2',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
variants: {
|
|
51
|
-
size: {
|
|
52
|
-
sm: {
|
|
53
|
-
root: {
|
|
54
|
-
px: '4',
|
|
55
|
-
py: '6',
|
|
56
|
-
},
|
|
57
|
-
indicator: {
|
|
58
|
-
textStyle: '3xl',
|
|
59
|
-
mb: '2',
|
|
60
|
-
},
|
|
61
|
-
title: {
|
|
62
|
-
textStyle: 'md',
|
|
63
|
-
},
|
|
64
|
-
description: {
|
|
65
|
-
textStyle: 'xs',
|
|
66
|
-
},
|
|
67
|
-
content: {
|
|
68
|
-
textStyle: 'xs',
|
|
69
|
-
},
|
|
70
|
-
actions: {
|
|
71
|
-
mt: '2',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
md: {
|
|
75
|
-
root: {
|
|
76
|
-
px: '8',
|
|
77
|
-
py: '12',
|
|
78
|
-
},
|
|
79
|
-
indicator: {
|
|
80
|
-
textStyle: '4xl',
|
|
81
|
-
mb: '3',
|
|
82
|
-
},
|
|
83
|
-
title: {
|
|
84
|
-
textStyle: 'lg',
|
|
85
|
-
},
|
|
86
|
-
description: {
|
|
87
|
-
textStyle: 'sm',
|
|
88
|
-
},
|
|
89
|
-
content: {
|
|
90
|
-
textStyle: 'sm',
|
|
91
|
-
},
|
|
92
|
-
actions: {
|
|
93
|
-
mt: '3',
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
lg: {
|
|
97
|
-
root: {
|
|
98
|
-
px: '12',
|
|
99
|
-
py: '16',
|
|
100
|
-
},
|
|
101
|
-
indicator: {
|
|
102
|
-
textStyle: '6xl',
|
|
103
|
-
mb: '4',
|
|
104
|
-
},
|
|
105
|
-
title: {
|
|
106
|
-
textStyle: 'xl',
|
|
107
|
-
},
|
|
108
|
-
description: {
|
|
109
|
-
textStyle: 'md',
|
|
110
|
-
},
|
|
111
|
-
content: {
|
|
112
|
-
textStyle: 'md',
|
|
113
|
-
},
|
|
114
|
-
actions: {
|
|
115
|
-
mt: '4',
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
align: {
|
|
120
|
-
start: {
|
|
121
|
-
content: {
|
|
122
|
-
alignItems: 'flex-start',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
center: {
|
|
126
|
-
content: {
|
|
127
|
-
alignItems: 'center',
|
|
128
|
-
textAlign: 'center',
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
defaultVariants: {
|
|
134
|
-
size: 'md',
|
|
135
|
-
align: 'center',
|
|
136
|
-
},
|
|
137
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const fieldSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "textarea" | "root" | "input" | "errorText" | "helperText" | "select" | "requiredIndicator", {
|
|
2
|
-
orientation: {
|
|
3
|
-
vertical: {
|
|
4
|
-
root: {
|
|
5
|
-
flexDirection: "column";
|
|
6
|
-
alignItems: "flex-start";
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
horizontal: {
|
|
10
|
-
root: {
|
|
11
|
-
display: "grid";
|
|
12
|
-
gridTemplateColumns: "var(--field-label-width, 8rem) 1fr";
|
|
13
|
-
alignItems: "center";
|
|
14
|
-
'&:has(textarea)': {
|
|
15
|
-
alignItems: "flex-start";
|
|
16
|
-
'& label': {
|
|
17
|
-
pt: number;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
helperText: {
|
|
22
|
-
gridColumn: number;
|
|
23
|
-
};
|
|
24
|
-
errorText: {
|
|
25
|
-
gridColumn: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}>;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { fieldAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const fieldSlotRecipe = defineSlotRecipe({
|
|
4
|
-
className: 'chakra-field',
|
|
5
|
-
slots: fieldAnatomy.keys(),
|
|
6
|
-
base: {
|
|
7
|
-
requiredIndicator: {
|
|
8
|
-
color: 'fg.error',
|
|
9
|
-
lineHeight: '1',
|
|
10
|
-
},
|
|
11
|
-
root: {
|
|
12
|
-
display: 'flex',
|
|
13
|
-
width: '100%',
|
|
14
|
-
position: 'relative',
|
|
15
|
-
gap: '1.5',
|
|
16
|
-
},
|
|
17
|
-
label: {
|
|
18
|
-
display: 'flex',
|
|
19
|
-
alignItems: 'center',
|
|
20
|
-
textAlign: 'start',
|
|
21
|
-
textStyle: 'sm',
|
|
22
|
-
fontWeight: 'medium',
|
|
23
|
-
gap: '1',
|
|
24
|
-
userSelect: 'none',
|
|
25
|
-
_disabled: {
|
|
26
|
-
opacity: '0.5',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
errorText: {
|
|
30
|
-
display: 'inline-flex',
|
|
31
|
-
alignItems: 'center',
|
|
32
|
-
fontWeight: 'medium',
|
|
33
|
-
gap: '1',
|
|
34
|
-
color: 'fg.error',
|
|
35
|
-
textStyle: 'xs',
|
|
36
|
-
},
|
|
37
|
-
helperText: {
|
|
38
|
-
color: 'fg.muted',
|
|
39
|
-
textStyle: 'xs',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
variants: {
|
|
43
|
-
orientation: {
|
|
44
|
-
vertical: {
|
|
45
|
-
root: {
|
|
46
|
-
flexDirection: 'column',
|
|
47
|
-
alignItems: 'flex-start',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
horizontal: {
|
|
51
|
-
root: {
|
|
52
|
-
display: 'grid',
|
|
53
|
-
gridTemplateColumns: 'var(--field-label-width, 8rem) 1fr',
|
|
54
|
-
alignItems: 'center',
|
|
55
|
-
'&:has(textarea)': {
|
|
56
|
-
alignItems: 'flex-start',
|
|
57
|
-
'& label': {
|
|
58
|
-
pt: 1.5,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
helperText: {
|
|
63
|
-
gridColumn: 2,
|
|
64
|
-
},
|
|
65
|
-
errorText: {
|
|
66
|
-
gridColumn: 2,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
defaultVariants: {
|
|
72
|
-
orientation: 'vertical',
|
|
73
|
-
},
|
|
74
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const fieldsetSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "root" | "errorText" | "helperText" | "legend", {
|
|
2
|
-
size: {
|
|
3
|
-
sm: {
|
|
4
|
-
root: {
|
|
5
|
-
spaceY: "2";
|
|
6
|
-
};
|
|
7
|
-
content: {
|
|
8
|
-
gap: "1.5";
|
|
9
|
-
};
|
|
10
|
-
legend: {
|
|
11
|
-
textStyle: "sm";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
md: {
|
|
15
|
-
root: {
|
|
16
|
-
spaceY: "4";
|
|
17
|
-
};
|
|
18
|
-
content: {
|
|
19
|
-
gap: "4";
|
|
20
|
-
};
|
|
21
|
-
legend: {
|
|
22
|
-
textStyle: "sm";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
lg: {
|
|
26
|
-
root: {
|
|
27
|
-
spaceY: "6";
|
|
28
|
-
};
|
|
29
|
-
content: {
|
|
30
|
-
gap: "4";
|
|
31
|
-
};
|
|
32
|
-
legend: {
|
|
33
|
-
textStyle: "md";
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}>;
|