@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,285 +0,0 @@
|
|
|
1
|
-
import { selectAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const selectSlotRecipe = defineSlotRecipe({
|
|
4
|
-
className: 'chakra-select',
|
|
5
|
-
slots: selectAnatomy.keys(),
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
display: 'flex',
|
|
9
|
-
flexDirection: 'column',
|
|
10
|
-
gap: '1.5',
|
|
11
|
-
width: 'full',
|
|
12
|
-
},
|
|
13
|
-
trigger: {
|
|
14
|
-
display: 'flex',
|
|
15
|
-
alignItems: 'center',
|
|
16
|
-
justifyContent: 'space-between',
|
|
17
|
-
width: 'full',
|
|
18
|
-
minH: 'var(--select-trigger-height)',
|
|
19
|
-
px: 'var(--select-trigger-padding-x)',
|
|
20
|
-
userSelect: 'none',
|
|
21
|
-
textAlign: 'start',
|
|
22
|
-
focusVisibleRing: 'inside',
|
|
23
|
-
focusRingWidth: 0,
|
|
24
|
-
_placeholderShown: {
|
|
25
|
-
color: 'fg.muted',
|
|
26
|
-
},
|
|
27
|
-
_disabled: {
|
|
28
|
-
layerStyle: 'disabled',
|
|
29
|
-
},
|
|
30
|
-
_invalid: {
|
|
31
|
-
borderColor: 'border.error',
|
|
32
|
-
},
|
|
33
|
-
_hover: {
|
|
34
|
-
borderColor: 'border.emphasized',
|
|
35
|
-
_focusVisible: {
|
|
36
|
-
borderColor: 'var(--focus-ring-color)',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
indicatorGroup: {
|
|
41
|
-
display: 'flex',
|
|
42
|
-
alignItems: 'center',
|
|
43
|
-
gap: '1',
|
|
44
|
-
pos: 'absolute',
|
|
45
|
-
right: '0',
|
|
46
|
-
top: '0',
|
|
47
|
-
bottom: '0',
|
|
48
|
-
px: 'var(--select-trigger-padding-x)',
|
|
49
|
-
pointerEvents: 'none',
|
|
50
|
-
},
|
|
51
|
-
indicator: {
|
|
52
|
-
display: 'flex',
|
|
53
|
-
alignItems: 'center',
|
|
54
|
-
justifyContent: 'center',
|
|
55
|
-
color: { base: 'fg.muted', _disabled: 'fg.subtle', _invalid: 'fg.error' },
|
|
56
|
-
},
|
|
57
|
-
content: {
|
|
58
|
-
layerStyle: 'overlay',
|
|
59
|
-
boxShadow: 'md',
|
|
60
|
-
borderWidth: '1px',
|
|
61
|
-
borderColor: 'border',
|
|
62
|
-
display: 'flex',
|
|
63
|
-
flexDirection: 'column',
|
|
64
|
-
zIndex: 'dropdown',
|
|
65
|
-
outline: 0,
|
|
66
|
-
maxH: '96',
|
|
67
|
-
overflowY: 'auto',
|
|
68
|
-
_open: {
|
|
69
|
-
animationStyle: 'slide-fade-in',
|
|
70
|
-
animationDuration: 'fast',
|
|
71
|
-
},
|
|
72
|
-
_closed: {
|
|
73
|
-
animationStyle: 'slide-fade-out',
|
|
74
|
-
animationDuration: 'fastest',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
item: {
|
|
78
|
-
position: 'relative',
|
|
79
|
-
userSelect: 'none',
|
|
80
|
-
display: 'flex',
|
|
81
|
-
alignItems: 'center',
|
|
82
|
-
gap: '2',
|
|
83
|
-
cursor: 'option',
|
|
84
|
-
justifyContent: 'space-between',
|
|
85
|
-
flex: '1',
|
|
86
|
-
textAlign: 'start',
|
|
87
|
-
borderRadius: 'control.md',
|
|
88
|
-
_highlighted: {
|
|
89
|
-
bg: 'bg.subtle',
|
|
90
|
-
},
|
|
91
|
-
_disabled: {
|
|
92
|
-
pointerEvents: 'none',
|
|
93
|
-
opacity: '0.5',
|
|
94
|
-
},
|
|
95
|
-
_icon: {
|
|
96
|
-
width: '4',
|
|
97
|
-
height: '4',
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
control: {
|
|
101
|
-
pos: 'relative',
|
|
102
|
-
},
|
|
103
|
-
itemText: {
|
|
104
|
-
flex: '1',
|
|
105
|
-
},
|
|
106
|
-
itemGroup: {
|
|
107
|
-
_first: { mt: '0' },
|
|
108
|
-
},
|
|
109
|
-
itemGroupLabel: {
|
|
110
|
-
py: '1',
|
|
111
|
-
fontWeight: 'medium',
|
|
112
|
-
},
|
|
113
|
-
label: {
|
|
114
|
-
fontWeight: 'medium',
|
|
115
|
-
userSelect: 'none',
|
|
116
|
-
textStyle: 'sm',
|
|
117
|
-
_disabled: {
|
|
118
|
-
layerStyle: 'disabled',
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
valueText: {
|
|
122
|
-
lineClamp: '1',
|
|
123
|
-
maxW: '80%',
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
variants: {
|
|
127
|
-
variant: {
|
|
128
|
-
outline: {
|
|
129
|
-
trigger: {
|
|
130
|
-
bg: 'transparent',
|
|
131
|
-
borderWidth: '1px',
|
|
132
|
-
borderColor: 'border',
|
|
133
|
-
_expanded: {
|
|
134
|
-
borderColor: 'border.emphasized',
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
subtle: {
|
|
139
|
-
trigger: {
|
|
140
|
-
borderWidth: '1px',
|
|
141
|
-
borderColor: 'transparent',
|
|
142
|
-
bg: 'bg.muted',
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
size: {
|
|
147
|
-
xs: {
|
|
148
|
-
root: {
|
|
149
|
-
'--select-trigger-height': 'sizes.6',
|
|
150
|
-
'--select-trigger-padding-x': 'spacing.2',
|
|
151
|
-
},
|
|
152
|
-
content: {
|
|
153
|
-
p: '1',
|
|
154
|
-
gap: '1',
|
|
155
|
-
textStyle: 'xs',
|
|
156
|
-
},
|
|
157
|
-
trigger: {
|
|
158
|
-
borderRadius: 'sm',
|
|
159
|
-
textStyle: 'xs',
|
|
160
|
-
gap: '1',
|
|
161
|
-
},
|
|
162
|
-
item: {
|
|
163
|
-
py: '1',
|
|
164
|
-
px: '2',
|
|
165
|
-
},
|
|
166
|
-
itemGroupLabel: {
|
|
167
|
-
py: '1',
|
|
168
|
-
px: '2',
|
|
169
|
-
},
|
|
170
|
-
indicator: {
|
|
171
|
-
_icon: {
|
|
172
|
-
width: '3.5',
|
|
173
|
-
height: '3.5',
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
sm: {
|
|
178
|
-
root: {
|
|
179
|
-
'--select-trigger-height': 'sizes.7',
|
|
180
|
-
'--select-trigger-padding-x': 'spacing.2.5',
|
|
181
|
-
},
|
|
182
|
-
content: {
|
|
183
|
-
p: '1',
|
|
184
|
-
textStyle: 'sm',
|
|
185
|
-
},
|
|
186
|
-
trigger: {
|
|
187
|
-
borderRadius: 'sm',
|
|
188
|
-
textStyle: 'sm',
|
|
189
|
-
gap: '1',
|
|
190
|
-
},
|
|
191
|
-
indicator: {
|
|
192
|
-
_icon: {
|
|
193
|
-
width: '4',
|
|
194
|
-
height: '4',
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
item: {
|
|
198
|
-
py: '1',
|
|
199
|
-
px: '1.5',
|
|
200
|
-
},
|
|
201
|
-
itemGroup: {
|
|
202
|
-
mt: '1',
|
|
203
|
-
},
|
|
204
|
-
itemGroupLabel: {
|
|
205
|
-
py: '1',
|
|
206
|
-
px: '1.5',
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
md: {
|
|
210
|
-
root: {
|
|
211
|
-
'--select-trigger-height': 'sizes.8',
|
|
212
|
-
'--select-trigger-padding-x': 'spacing.3',
|
|
213
|
-
},
|
|
214
|
-
content: {
|
|
215
|
-
p: '1',
|
|
216
|
-
textStyle: 'sm',
|
|
217
|
-
},
|
|
218
|
-
itemGroup: {
|
|
219
|
-
mt: '1.5',
|
|
220
|
-
},
|
|
221
|
-
item: {
|
|
222
|
-
py: '1.5',
|
|
223
|
-
px: '2',
|
|
224
|
-
},
|
|
225
|
-
itemIndicator: {
|
|
226
|
-
display: 'flex',
|
|
227
|
-
alignItems: 'center',
|
|
228
|
-
justifyContent: 'center',
|
|
229
|
-
},
|
|
230
|
-
itemGroupLabel: {
|
|
231
|
-
py: '1.5',
|
|
232
|
-
px: '2',
|
|
233
|
-
},
|
|
234
|
-
trigger: {
|
|
235
|
-
borderRadius: 'md',
|
|
236
|
-
textStyle: 'sm',
|
|
237
|
-
gap: '2',
|
|
238
|
-
},
|
|
239
|
-
indicator: {
|
|
240
|
-
_icon: {
|
|
241
|
-
width: '4',
|
|
242
|
-
height: '4',
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
lg: {
|
|
247
|
-
root: {
|
|
248
|
-
'--select-trigger-height': 'sizes.10',
|
|
249
|
-
'--select-trigger-padding-x': 'spacing.4',
|
|
250
|
-
},
|
|
251
|
-
content: {
|
|
252
|
-
p: '1.5',
|
|
253
|
-
textStyle: 'md',
|
|
254
|
-
},
|
|
255
|
-
itemGroup: {
|
|
256
|
-
mt: '2',
|
|
257
|
-
},
|
|
258
|
-
item: {
|
|
259
|
-
py: '2',
|
|
260
|
-
px: '3',
|
|
261
|
-
},
|
|
262
|
-
itemGroupLabel: {
|
|
263
|
-
py: '2',
|
|
264
|
-
px: '3',
|
|
265
|
-
},
|
|
266
|
-
trigger: {
|
|
267
|
-
borderRadius: 'md',
|
|
268
|
-
textStyle: 'md',
|
|
269
|
-
py: '3',
|
|
270
|
-
gap: '2',
|
|
271
|
-
},
|
|
272
|
-
indicator: {
|
|
273
|
-
_icon: {
|
|
274
|
-
width: '5',
|
|
275
|
-
height: '5',
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
defaultVariants: {
|
|
282
|
-
size: 'md',
|
|
283
|
-
variant: 'outline',
|
|
284
|
-
},
|
|
285
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const separatorRecipe: import("@chakra-ui/react").RecipeDefinition<{
|
|
2
|
-
variant: {
|
|
3
|
-
solid: {
|
|
4
|
-
borderStyle: "solid";
|
|
5
|
-
};
|
|
6
|
-
dashed: {
|
|
7
|
-
borderStyle: "dashed";
|
|
8
|
-
};
|
|
9
|
-
dotted: {
|
|
10
|
-
borderStyle: "dotted";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
orientation: {
|
|
14
|
-
vertical: {
|
|
15
|
-
height: "100%";
|
|
16
|
-
borderInlineStartWidth: "var(--separator-thickness)";
|
|
17
|
-
};
|
|
18
|
-
horizontal: {
|
|
19
|
-
width: "100%";
|
|
20
|
-
borderTopWidth: "var(--separator-thickness)";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
size: {
|
|
24
|
-
xs: {
|
|
25
|
-
'--separator-thickness': "0.5px";
|
|
26
|
-
};
|
|
27
|
-
sm: {
|
|
28
|
-
'--separator-thickness': "1px";
|
|
29
|
-
};
|
|
30
|
-
md: {
|
|
31
|
-
'--separator-thickness': "2px";
|
|
32
|
-
};
|
|
33
|
-
lg: {
|
|
34
|
-
'--separator-thickness': "3px";
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineRecipe } from '@chakra-ui/react/styled-system';
|
|
2
|
-
export const separatorRecipe = defineRecipe({
|
|
3
|
-
className: 'chakra-separator',
|
|
4
|
-
base: {
|
|
5
|
-
display: 'block',
|
|
6
|
-
borderColor: 'border',
|
|
7
|
-
},
|
|
8
|
-
variants: {
|
|
9
|
-
variant: {
|
|
10
|
-
solid: {
|
|
11
|
-
borderStyle: 'solid',
|
|
12
|
-
},
|
|
13
|
-
dashed: {
|
|
14
|
-
borderStyle: 'dashed',
|
|
15
|
-
},
|
|
16
|
-
dotted: {
|
|
17
|
-
borderStyle: 'dotted',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
orientation: {
|
|
21
|
-
vertical: {
|
|
22
|
-
height: '100%',
|
|
23
|
-
borderInlineStartWidth: 'var(--separator-thickness)',
|
|
24
|
-
},
|
|
25
|
-
horizontal: {
|
|
26
|
-
width: '100%',
|
|
27
|
-
borderTopWidth: 'var(--separator-thickness)',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
xs: {
|
|
32
|
-
'--separator-thickness': '0.5px',
|
|
33
|
-
},
|
|
34
|
-
sm: {
|
|
35
|
-
'--separator-thickness': '1px',
|
|
36
|
-
},
|
|
37
|
-
md: {
|
|
38
|
-
'--separator-thickness': '2px',
|
|
39
|
-
},
|
|
40
|
-
lg: {
|
|
41
|
-
'--separator-thickness': '3px',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
defaultVariants: {
|
|
46
|
-
size: 'sm',
|
|
47
|
-
variant: 'solid',
|
|
48
|
-
orientation: 'horizontal',
|
|
49
|
-
},
|
|
50
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export declare const sidebarNavItemSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"button" | "item" | "endElement", {
|
|
2
|
-
variant: {
|
|
3
|
-
muted: {
|
|
4
|
-
button: {
|
|
5
|
-
bg: "transparent";
|
|
6
|
-
color: "sidebar.accent.fg/85";
|
|
7
|
-
'--sidebar-item-icon-color': "sidebar.accent.fg/85";
|
|
8
|
-
_hover: {
|
|
9
|
-
bg: "sidebar.accent.bg/90";
|
|
10
|
-
color: "sidebar.accent.fg";
|
|
11
|
-
'--sidebar-item-icon-color': "sidebar.accent.fg";
|
|
12
|
-
};
|
|
13
|
-
_active: {
|
|
14
|
-
bg: "sidebar.accent.bg";
|
|
15
|
-
color: "sidebar.accent.fg";
|
|
16
|
-
'--sidebar-item-icon-color': "sidebar.accent.fg";
|
|
17
|
-
};
|
|
18
|
-
_currentPage: {
|
|
19
|
-
bg: "sidebar.accent.bg";
|
|
20
|
-
color: "sidebar.accent.fg";
|
|
21
|
-
'--sidebar-item-icon-color': "sidebar.accent.fg";
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
size: {
|
|
27
|
-
sm: {
|
|
28
|
-
item: {
|
|
29
|
-
textStyle: "sm";
|
|
30
|
-
};
|
|
31
|
-
button: {
|
|
32
|
-
borderRadius: "control.md";
|
|
33
|
-
px: number;
|
|
34
|
-
height: number;
|
|
35
|
-
};
|
|
36
|
-
endElement: {
|
|
37
|
-
pe: "1";
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
md: {
|
|
41
|
-
item: {
|
|
42
|
-
textStyle: "sm";
|
|
43
|
-
};
|
|
44
|
-
button: {
|
|
45
|
-
borderRadius: "control.md";
|
|
46
|
-
px: number;
|
|
47
|
-
height: number;
|
|
48
|
-
};
|
|
49
|
-
endElement: {
|
|
50
|
-
pe: "1";
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
lg: {
|
|
54
|
-
item: {
|
|
55
|
-
textStyle: "sm";
|
|
56
|
-
};
|
|
57
|
-
button: {
|
|
58
|
-
borderRadius: "control.lg";
|
|
59
|
-
px: number;
|
|
60
|
-
height: number;
|
|
61
|
-
};
|
|
62
|
-
endElement: {
|
|
63
|
-
pe: "1";
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
}>;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { defineSlotRecipe } from '@chakra-ui/react';
|
|
2
|
-
export const sidebarNavItemSlotRecipe = defineSlotRecipe({
|
|
3
|
-
className: 'sui-sidebar-nav-item',
|
|
4
|
-
slots: ['item', 'button', 'endElement'],
|
|
5
|
-
base: {
|
|
6
|
-
item: {
|
|
7
|
-
position: 'relative',
|
|
8
|
-
fontSize: 'sm',
|
|
9
|
-
py: '1px',
|
|
10
|
-
},
|
|
11
|
-
button: {
|
|
12
|
-
display: 'flex',
|
|
13
|
-
alignItems: 'center',
|
|
14
|
-
gap: 2,
|
|
15
|
-
isolation: 'isolate',
|
|
16
|
-
width: '100%',
|
|
17
|
-
textOverflow: 'ellipsis',
|
|
18
|
-
overflow: 'hidden',
|
|
19
|
-
whiteSpace: 'nowrap',
|
|
20
|
-
cursor: 'button',
|
|
21
|
-
transitionProperty: 'common',
|
|
22
|
-
transitionDuration: 'fast',
|
|
23
|
-
focusVisibleRing: 'inside',
|
|
24
|
-
focusRingWidth: '1px',
|
|
25
|
-
_disabled: {
|
|
26
|
-
layerStyle: 'disabled',
|
|
27
|
-
},
|
|
28
|
-
'& > svg': {
|
|
29
|
-
boxSize: 4,
|
|
30
|
-
color: 'var(--sidebar-item-icon-color)',
|
|
31
|
-
},
|
|
32
|
-
'&:has([data-slot="endElement"])': {
|
|
33
|
-
pe: 0,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
endElement: {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
gap: '1px',
|
|
39
|
-
ms: 'auto',
|
|
40
|
-
'& button': {
|
|
41
|
-
_hover: {
|
|
42
|
-
bg: 'transparent',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
variants: {
|
|
48
|
-
variant: {
|
|
49
|
-
muted: {
|
|
50
|
-
button: {
|
|
51
|
-
bg: 'transparent',
|
|
52
|
-
color: 'sidebar.accent.fg/85',
|
|
53
|
-
'--sidebar-item-icon-color': 'sidebar.accent.fg/85',
|
|
54
|
-
_hover: {
|
|
55
|
-
bg: 'sidebar.accent.bg/90',
|
|
56
|
-
color: 'sidebar.accent.fg',
|
|
57
|
-
'--sidebar-item-icon-color': 'sidebar.accent.fg',
|
|
58
|
-
},
|
|
59
|
-
_active: {
|
|
60
|
-
bg: 'sidebar.accent.bg',
|
|
61
|
-
color: 'sidebar.accent.fg',
|
|
62
|
-
'--sidebar-item-icon-color': 'sidebar.accent.fg',
|
|
63
|
-
},
|
|
64
|
-
_currentPage: {
|
|
65
|
-
bg: 'sidebar.accent.bg',
|
|
66
|
-
color: 'sidebar.accent.fg',
|
|
67
|
-
'--sidebar-item-icon-color': 'sidebar.accent.fg',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
size: {
|
|
73
|
-
sm: {
|
|
74
|
-
item: {
|
|
75
|
-
textStyle: 'sm',
|
|
76
|
-
},
|
|
77
|
-
button: {
|
|
78
|
-
borderRadius: 'control.md',
|
|
79
|
-
px: 2,
|
|
80
|
-
height: 7,
|
|
81
|
-
},
|
|
82
|
-
endElement: {
|
|
83
|
-
pe: '1',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
md: {
|
|
87
|
-
item: {
|
|
88
|
-
textStyle: 'sm',
|
|
89
|
-
},
|
|
90
|
-
button: {
|
|
91
|
-
borderRadius: 'control.md',
|
|
92
|
-
px: 2.5,
|
|
93
|
-
height: 8,
|
|
94
|
-
},
|
|
95
|
-
endElement: {
|
|
96
|
-
pe: '1',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
lg: {
|
|
100
|
-
item: {
|
|
101
|
-
textStyle: 'sm',
|
|
102
|
-
},
|
|
103
|
-
button: {
|
|
104
|
-
borderRadius: 'control.lg',
|
|
105
|
-
px: 3,
|
|
106
|
-
height: 10,
|
|
107
|
-
},
|
|
108
|
-
endElement: {
|
|
109
|
-
pe: '1',
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
defaultVariants: {
|
|
115
|
-
variant: 'muted',
|
|
116
|
-
size: 'md',
|
|
117
|
-
},
|
|
118
|
-
});
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
export declare const sidebarSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"inset" | "body" | "backdrop" | "root" | "header" | "footer" | "group" | "trigger" | "track" | "flyoutTrigger" | "groupHeader" | "groupTitle" | "groupEndElement" | "groupContent", {
|
|
2
|
-
variant: {
|
|
3
|
-
sidebar: {
|
|
4
|
-
root: {
|
|
5
|
-
borderRightWidth: "1px";
|
|
6
|
-
borderLeftColor: "sidebar.border";
|
|
7
|
-
};
|
|
8
|
-
inset: {};
|
|
9
|
-
};
|
|
10
|
-
inset: {
|
|
11
|
-
inset: {
|
|
12
|
-
borderColor: "sidebar.border";
|
|
13
|
-
borderWidth: "1px";
|
|
14
|
-
borderRadius: "panel.md";
|
|
15
|
-
marginBlock: "var(--inset-gap, {spacing.2})";
|
|
16
|
-
marginEnd: "var(--inset-gap, {spacing.2})";
|
|
17
|
-
overflow: "clip";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
mode: {
|
|
22
|
-
collapsible: {
|
|
23
|
-
root: {
|
|
24
|
-
base: {
|
|
25
|
-
position: "fixed";
|
|
26
|
-
height: "100dvh";
|
|
27
|
-
zIndex: "layer-3";
|
|
28
|
-
};
|
|
29
|
-
md: {
|
|
30
|
-
position: "relative";
|
|
31
|
-
height: "auto";
|
|
32
|
-
zIndex: "unset";
|
|
33
|
-
};
|
|
34
|
-
width: "var(--sidebar-width, 280px)";
|
|
35
|
-
maxWidth: ("100vw" | "var(--sidebar-max-width, 320px)")[];
|
|
36
|
-
minWidth: "var(--sidebar-min-width, 220px)";
|
|
37
|
-
bg: "sidebar.bg";
|
|
38
|
-
transitionProperty: "margin-left";
|
|
39
|
-
_open: {
|
|
40
|
-
marginLeft: number;
|
|
41
|
-
transitionDuration: "moderate";
|
|
42
|
-
transitionTimingFunction: "bounce-in";
|
|
43
|
-
};
|
|
44
|
-
_closed: {
|
|
45
|
-
marginLeft: "calc(var(--sidebar-width, 280px) * -1)";
|
|
46
|
-
transitionDuration: "fast";
|
|
47
|
-
transitionTimingFunction: "bounce-out";
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
flyout: {
|
|
52
|
-
root: {
|
|
53
|
-
position: "fixed";
|
|
54
|
-
top: number;
|
|
55
|
-
left: number;
|
|
56
|
-
bottom: number;
|
|
57
|
-
zIndex: "var(--sidebar-z-index)";
|
|
58
|
-
width: "var(--sidebar-width, 280px)";
|
|
59
|
-
maxWidth: ("100vw" | "var(--sidebar-max-width, 320px)")[];
|
|
60
|
-
minWidth: "var(--sidebar-min-width, 220px)";
|
|
61
|
-
bg: "sidebar.bg";
|
|
62
|
-
borderColor: "sidebar.border";
|
|
63
|
-
boxShadow: "none";
|
|
64
|
-
borderWidth: "1px";
|
|
65
|
-
borderRadius: "lg";
|
|
66
|
-
_open: {
|
|
67
|
-
transitionDuration: "moderate";
|
|
68
|
-
transitionTimingFunction: "ease-out";
|
|
69
|
-
boxShadow: "lg";
|
|
70
|
-
};
|
|
71
|
-
_closed: {
|
|
72
|
-
left: "calc(var(--sidebar-width, 280px) * -1)";
|
|
73
|
-
transitionDuration: "fast";
|
|
74
|
-
transitionTimingFunction: "ease-in-out";
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
flyoutTrigger: {
|
|
78
|
-
display: "block";
|
|
79
|
-
position: "absolute";
|
|
80
|
-
'--sidebar-flyout-trigger-z-index': "zIndex.layer-3";
|
|
81
|
-
zIndex: "calc(var(--sidebar-flyout-trigger-z-index) - 1)";
|
|
82
|
-
height: "100%";
|
|
83
|
-
width: "8px";
|
|
84
|
-
};
|
|
85
|
-
track: {
|
|
86
|
-
top: "8px";
|
|
87
|
-
bottom: "8px";
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
compact: {};
|
|
91
|
-
};
|
|
92
|
-
size: {
|
|
93
|
-
md: {
|
|
94
|
-
header: {
|
|
95
|
-
px: number;
|
|
96
|
-
};
|
|
97
|
-
body: {
|
|
98
|
-
px: number;
|
|
99
|
-
};
|
|
100
|
-
footer: {
|
|
101
|
-
px: number;
|
|
102
|
-
};
|
|
103
|
-
groupEndElement: {
|
|
104
|
-
pe: "1";
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
}>;
|