@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,144 +0,0 @@
|
|
|
1
|
-
export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "label" | "control" | "root" | "item" | "itemIndicator" | "positioner" | "list" | "trigger" | "input" | "itemGroup" | "clearTrigger" | "itemGroupLabel" | "itemText" | "indicatorGroup" | "empty", {
|
|
2
|
-
variant: {
|
|
3
|
-
outline: {
|
|
4
|
-
input: {
|
|
5
|
-
bg: "transparent";
|
|
6
|
-
borderWidth: "1px";
|
|
7
|
-
borderColor: "border";
|
|
8
|
-
focusVisibleRing: "inside";
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
subtle: {
|
|
12
|
-
input: {
|
|
13
|
-
borderWidth: "1px";
|
|
14
|
-
borderColor: "transparent";
|
|
15
|
-
bg: "bg.muted";
|
|
16
|
-
focusVisibleRing: "inside";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
flushed: {
|
|
20
|
-
input: {
|
|
21
|
-
bg: "transparent";
|
|
22
|
-
borderBottomWidth: "1px";
|
|
23
|
-
borderBottomColor: "border";
|
|
24
|
-
borderRadius: "0";
|
|
25
|
-
px: "0";
|
|
26
|
-
_focusVisible: {
|
|
27
|
-
borderColor: "var(--focus-color)";
|
|
28
|
-
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
indicatorGroup: {
|
|
32
|
-
px: "0";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
size: {
|
|
37
|
-
xs: {
|
|
38
|
-
root: {
|
|
39
|
-
'--combobox-input-height': "sizes.6";
|
|
40
|
-
'--combobox-input-padding-x': "spacing.2";
|
|
41
|
-
'--combobox-indicator-size': "sizes.3.5";
|
|
42
|
-
};
|
|
43
|
-
input: {
|
|
44
|
-
textStyle: "xs";
|
|
45
|
-
};
|
|
46
|
-
content: {
|
|
47
|
-
'--combobox-item-padding-x': "spacing.1";
|
|
48
|
-
'--combobox-item-padding-y': "spacing.0.5";
|
|
49
|
-
'--combobox-indicator-size': "sizes.3.5";
|
|
50
|
-
borderRadius: "panel.sm";
|
|
51
|
-
p: "0.5";
|
|
52
|
-
textStyle: "xs";
|
|
53
|
-
};
|
|
54
|
-
trigger: {
|
|
55
|
-
textStyle: "xs";
|
|
56
|
-
gap: "1";
|
|
57
|
-
};
|
|
58
|
-
item: {
|
|
59
|
-
borderRadius: "calc({radii.panel.sm} - {sizes.0.5})";
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
sm: {
|
|
63
|
-
root: {
|
|
64
|
-
'--combobox-input-height': "sizes.7";
|
|
65
|
-
'--combobox-input-padding-x': "spacing.2.5";
|
|
66
|
-
'--combobox-indicator-size': "sizes.4";
|
|
67
|
-
};
|
|
68
|
-
input: {
|
|
69
|
-
textStyle: "sm";
|
|
70
|
-
};
|
|
71
|
-
content: {
|
|
72
|
-
'--combobox-item-padding-x': "spacing.1.5";
|
|
73
|
-
'--combobox-item-padding-y': "spacing.1";
|
|
74
|
-
'--combobox-indicator-size': "sizes.4";
|
|
75
|
-
borderRadius: "panel.md";
|
|
76
|
-
p: "1";
|
|
77
|
-
textStyle: "xs";
|
|
78
|
-
};
|
|
79
|
-
trigger: {
|
|
80
|
-
textStyle: "xs";
|
|
81
|
-
gap: "1";
|
|
82
|
-
};
|
|
83
|
-
item: {
|
|
84
|
-
borderRadius: "calc({radii.panel.md} - {sizes.0.5})";
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
md: {
|
|
88
|
-
root: {
|
|
89
|
-
'--combobox-input-height': "sizes.8";
|
|
90
|
-
'--combobox-input-padding-x': "spacing.3";
|
|
91
|
-
'--combobox-indicator-size': "sizes.4";
|
|
92
|
-
};
|
|
93
|
-
input: {
|
|
94
|
-
textStyle: "sm";
|
|
95
|
-
};
|
|
96
|
-
content: {
|
|
97
|
-
'--combobox-item-padding-x': "spacing.2";
|
|
98
|
-
'--combobox-item-padding-y': "spacing.1.5";
|
|
99
|
-
'--combobox-indicator-size': "sizes.4";
|
|
100
|
-
borderRadius: "panel.lg";
|
|
101
|
-
p: "1";
|
|
102
|
-
textStyle: "sm";
|
|
103
|
-
};
|
|
104
|
-
itemIndicator: {
|
|
105
|
-
display: "flex";
|
|
106
|
-
alignItems: "center";
|
|
107
|
-
justifyContent: "center";
|
|
108
|
-
};
|
|
109
|
-
trigger: {
|
|
110
|
-
textStyle: "sm";
|
|
111
|
-
gap: "2";
|
|
112
|
-
};
|
|
113
|
-
item: {
|
|
114
|
-
borderRadius: "calc({radii.panel.lg} - {sizes.1})";
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
lg: {
|
|
118
|
-
root: {
|
|
119
|
-
'--combobox-input-height': "sizes.10";
|
|
120
|
-
'--combobox-input-padding-x': "spacing.4";
|
|
121
|
-
'--combobox-indicator-size': "sizes.5";
|
|
122
|
-
};
|
|
123
|
-
input: {
|
|
124
|
-
textStyle: "md";
|
|
125
|
-
};
|
|
126
|
-
content: {
|
|
127
|
-
'--combobox-item-padding-y': "spacing.2";
|
|
128
|
-
'--combobox-item-padding-x': "spacing.3";
|
|
129
|
-
'--combobox-indicator-size': "sizes.5";
|
|
130
|
-
borderRadius: "panel.lg";
|
|
131
|
-
p: "1";
|
|
132
|
-
textStyle: "md";
|
|
133
|
-
};
|
|
134
|
-
trigger: {
|
|
135
|
-
textStyle: "md";
|
|
136
|
-
py: "3";
|
|
137
|
-
gap: "2";
|
|
138
|
-
};
|
|
139
|
-
item: {
|
|
140
|
-
borderRadius: "calc({radii.panel.lg} - {sizes.1})";
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
}>;
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { comboboxAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const comboboxSlotRecipe = defineSlotRecipe({
|
|
4
|
-
className: 'chakra-combobox',
|
|
5
|
-
slots: comboboxAnatomy.keys(),
|
|
6
|
-
base: {
|
|
7
|
-
root: {
|
|
8
|
-
display: 'flex',
|
|
9
|
-
flexDirection: 'column',
|
|
10
|
-
gap: '1.5',
|
|
11
|
-
width: 'full',
|
|
12
|
-
},
|
|
13
|
-
label: {
|
|
14
|
-
fontWeight: 'medium',
|
|
15
|
-
userSelect: 'none',
|
|
16
|
-
textStyle: 'sm',
|
|
17
|
-
_disabled: {
|
|
18
|
-
layerStyle: 'disabled',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
input: {
|
|
22
|
-
display: 'flex',
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
justifyContent: 'space-between',
|
|
25
|
-
background: 'bg.panel',
|
|
26
|
-
width: 'full',
|
|
27
|
-
minH: 'var(--combobox-input-height)',
|
|
28
|
-
px: 'var(--combobox-input-padding-x)',
|
|
29
|
-
'--input-height': 'var(--combobox-input-height)',
|
|
30
|
-
borderRadius: 'control.md',
|
|
31
|
-
outline: 0,
|
|
32
|
-
userSelect: 'none',
|
|
33
|
-
textAlign: 'start',
|
|
34
|
-
_placeholderShown: {
|
|
35
|
-
color: 'fg.muted',
|
|
36
|
-
},
|
|
37
|
-
_disabled: {
|
|
38
|
-
layerStyle: 'disabled',
|
|
39
|
-
},
|
|
40
|
-
'--focus-color': 'colors.colorPalette.focusRing',
|
|
41
|
-
'--error-color': 'colors.border.error',
|
|
42
|
-
_invalid: {
|
|
43
|
-
focusRingColor: 'var(--error-color)',
|
|
44
|
-
borderColor: 'var(--error-color)',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
trigger: {
|
|
48
|
-
display: 'inline-flex',
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
justifyContent: 'center',
|
|
51
|
-
'--input-height': 'var(--combobox-input-height)',
|
|
52
|
-
},
|
|
53
|
-
clearTrigger: {
|
|
54
|
-
color: 'fg.muted',
|
|
55
|
-
pointerEvents: 'auto',
|
|
56
|
-
focusVisibleRing: 'inside',
|
|
57
|
-
focusRingWidth: '2px',
|
|
58
|
-
rounded: 'control.sm',
|
|
59
|
-
},
|
|
60
|
-
control: {
|
|
61
|
-
pos: 'relative',
|
|
62
|
-
},
|
|
63
|
-
indicatorGroup: {
|
|
64
|
-
display: 'flex',
|
|
65
|
-
alignItems: 'center',
|
|
66
|
-
justifyContent: 'center',
|
|
67
|
-
gap: '1',
|
|
68
|
-
pos: 'absolute',
|
|
69
|
-
insetEnd: '0',
|
|
70
|
-
top: '0',
|
|
71
|
-
bottom: '0',
|
|
72
|
-
px: 'var(--combobox-input-padding-x)',
|
|
73
|
-
_icon: {
|
|
74
|
-
boxSize: 'var(--combobox-indicator-size)',
|
|
75
|
-
},
|
|
76
|
-
'[data-disabled] &': {
|
|
77
|
-
opacity: 0.5,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
content: {
|
|
81
|
-
layerStyle: 'overlay',
|
|
82
|
-
display: 'flex',
|
|
83
|
-
flexDirection: 'column',
|
|
84
|
-
'--menu-z-index': 'zIndex.layer-3',
|
|
85
|
-
zIndex: 'calc(var(--menu-z-index) + var(--layer-index, 0))',
|
|
86
|
-
outline: 0,
|
|
87
|
-
maxH: 'var(--available-height)',
|
|
88
|
-
overflowY: 'auto',
|
|
89
|
-
_open: {
|
|
90
|
-
animationStyle: 'slide-fade-in',
|
|
91
|
-
animationDuration: 'fast',
|
|
92
|
-
},
|
|
93
|
-
_closed: {
|
|
94
|
-
animationStyle: 'slide-fade-out',
|
|
95
|
-
animationDuration: '0s',
|
|
96
|
-
},
|
|
97
|
-
'&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))': {
|
|
98
|
-
opacity: 0,
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
item: {
|
|
102
|
-
position: 'relative',
|
|
103
|
-
userSelect: 'none',
|
|
104
|
-
display: 'flex',
|
|
105
|
-
alignItems: 'center',
|
|
106
|
-
gap: '2',
|
|
107
|
-
py: 'var(--combobox-item-padding-y)',
|
|
108
|
-
px: 'var(--combobox-item-padding-x)',
|
|
109
|
-
cursor: 'option',
|
|
110
|
-
justifyContent: 'space-between',
|
|
111
|
-
flex: '1',
|
|
112
|
-
textAlign: 'start',
|
|
113
|
-
borderRadius: 'control.md',
|
|
114
|
-
_highlighted: {
|
|
115
|
-
bg: 'bg.emphasized/60',
|
|
116
|
-
},
|
|
117
|
-
_disabled: {
|
|
118
|
-
pointerEvents: 'none',
|
|
119
|
-
opacity: '0.5',
|
|
120
|
-
},
|
|
121
|
-
_icon: {
|
|
122
|
-
boxSize: 'var(--combobox-indicator-size)',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
empty: {
|
|
126
|
-
py: 'var(--combobox-item-padding-y)',
|
|
127
|
-
px: 'var(--combobox-item-padding-x)',
|
|
128
|
-
},
|
|
129
|
-
itemText: {
|
|
130
|
-
flex: '1',
|
|
131
|
-
},
|
|
132
|
-
itemGroup: {
|
|
133
|
-
pb: 'var(--combobox-item-padding-y)',
|
|
134
|
-
_last: {
|
|
135
|
-
pb: '0',
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
itemGroupLabel: {
|
|
139
|
-
fontWeight: 'medium',
|
|
140
|
-
py: 'var(--combobox-item-padding-y)',
|
|
141
|
-
px: 'var(--combobox-item-padding-x)',
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
variants: {
|
|
145
|
-
variant: {
|
|
146
|
-
outline: {
|
|
147
|
-
input: {
|
|
148
|
-
bg: 'transparent',
|
|
149
|
-
borderWidth: '1px',
|
|
150
|
-
borderColor: 'border',
|
|
151
|
-
focusVisibleRing: 'inside',
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
subtle: {
|
|
155
|
-
input: {
|
|
156
|
-
borderWidth: '1px',
|
|
157
|
-
borderColor: 'transparent',
|
|
158
|
-
bg: 'bg.muted',
|
|
159
|
-
focusVisibleRing: 'inside',
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
flushed: {
|
|
163
|
-
input: {
|
|
164
|
-
bg: 'transparent',
|
|
165
|
-
borderBottomWidth: '1px',
|
|
166
|
-
borderBottomColor: 'border',
|
|
167
|
-
borderRadius: '0',
|
|
168
|
-
px: '0',
|
|
169
|
-
_focusVisible: {
|
|
170
|
-
borderColor: 'var(--focus-color)',
|
|
171
|
-
boxShadow: '0px 1px 0px 0px var(--focus-color)',
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
indicatorGroup: {
|
|
175
|
-
px: '0',
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
size: {
|
|
180
|
-
xs: {
|
|
181
|
-
root: {
|
|
182
|
-
'--combobox-input-height': 'sizes.6',
|
|
183
|
-
'--combobox-input-padding-x': 'spacing.2',
|
|
184
|
-
'--combobox-indicator-size': 'sizes.3.5',
|
|
185
|
-
},
|
|
186
|
-
input: {
|
|
187
|
-
textStyle: 'xs',
|
|
188
|
-
},
|
|
189
|
-
content: {
|
|
190
|
-
'--combobox-item-padding-x': 'spacing.1',
|
|
191
|
-
'--combobox-item-padding-y': 'spacing.0.5',
|
|
192
|
-
'--combobox-indicator-size': 'sizes.3.5',
|
|
193
|
-
borderRadius: 'panel.sm',
|
|
194
|
-
p: '0.5',
|
|
195
|
-
textStyle: 'xs',
|
|
196
|
-
},
|
|
197
|
-
trigger: {
|
|
198
|
-
textStyle: 'xs',
|
|
199
|
-
gap: '1',
|
|
200
|
-
},
|
|
201
|
-
item: {
|
|
202
|
-
borderRadius: 'calc({radii.panel.sm} - {sizes.0.5})',
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
sm: {
|
|
206
|
-
root: {
|
|
207
|
-
'--combobox-input-height': 'sizes.7',
|
|
208
|
-
'--combobox-input-padding-x': 'spacing.2.5',
|
|
209
|
-
'--combobox-indicator-size': 'sizes.4',
|
|
210
|
-
},
|
|
211
|
-
input: {
|
|
212
|
-
textStyle: 'sm',
|
|
213
|
-
},
|
|
214
|
-
content: {
|
|
215
|
-
'--combobox-item-padding-x': 'spacing.1.5',
|
|
216
|
-
'--combobox-item-padding-y': 'spacing.1',
|
|
217
|
-
'--combobox-indicator-size': 'sizes.4',
|
|
218
|
-
borderRadius: 'panel.md',
|
|
219
|
-
p: '1',
|
|
220
|
-
textStyle: 'xs',
|
|
221
|
-
},
|
|
222
|
-
trigger: {
|
|
223
|
-
textStyle: 'xs',
|
|
224
|
-
gap: '1',
|
|
225
|
-
},
|
|
226
|
-
item: {
|
|
227
|
-
borderRadius: 'calc({radii.panel.md} - {sizes.0.5})',
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
md: {
|
|
231
|
-
root: {
|
|
232
|
-
'--combobox-input-height': 'sizes.8',
|
|
233
|
-
'--combobox-input-padding-x': 'spacing.3',
|
|
234
|
-
'--combobox-indicator-size': 'sizes.4',
|
|
235
|
-
},
|
|
236
|
-
input: {
|
|
237
|
-
textStyle: 'sm',
|
|
238
|
-
},
|
|
239
|
-
content: {
|
|
240
|
-
'--combobox-item-padding-x': 'spacing.2',
|
|
241
|
-
'--combobox-item-padding-y': 'spacing.1.5',
|
|
242
|
-
'--combobox-indicator-size': 'sizes.4',
|
|
243
|
-
borderRadius: 'panel.lg',
|
|
244
|
-
p: '1',
|
|
245
|
-
textStyle: 'sm',
|
|
246
|
-
},
|
|
247
|
-
itemIndicator: {
|
|
248
|
-
display: 'flex',
|
|
249
|
-
alignItems: 'center',
|
|
250
|
-
justifyContent: 'center',
|
|
251
|
-
},
|
|
252
|
-
trigger: {
|
|
253
|
-
textStyle: 'sm',
|
|
254
|
-
gap: '2',
|
|
255
|
-
},
|
|
256
|
-
item: {
|
|
257
|
-
borderRadius: 'calc({radii.panel.lg} - {sizes.1})',
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
lg: {
|
|
261
|
-
root: {
|
|
262
|
-
'--combobox-input-height': 'sizes.10',
|
|
263
|
-
'--combobox-input-padding-x': 'spacing.4',
|
|
264
|
-
'--combobox-indicator-size': 'sizes.5',
|
|
265
|
-
},
|
|
266
|
-
input: {
|
|
267
|
-
textStyle: 'md',
|
|
268
|
-
},
|
|
269
|
-
content: {
|
|
270
|
-
'--combobox-item-padding-y': 'spacing.2',
|
|
271
|
-
'--combobox-item-padding-x': 'spacing.3',
|
|
272
|
-
'--combobox-indicator-size': 'sizes.5',
|
|
273
|
-
borderRadius: 'panel.lg',
|
|
274
|
-
p: '1',
|
|
275
|
-
textStyle: 'md',
|
|
276
|
-
},
|
|
277
|
-
trigger: {
|
|
278
|
-
textStyle: 'md',
|
|
279
|
-
py: '3',
|
|
280
|
-
gap: '2',
|
|
281
|
-
},
|
|
282
|
-
item: {
|
|
283
|
-
borderRadius: 'calc({radii.panel.lg} - {sizes.1})',
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
defaultVariants: {
|
|
289
|
-
size: 'md',
|
|
290
|
-
variant: 'outline',
|
|
291
|
-
},
|
|
292
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type RecipeVariantProps } from '@chakra-ui/react/styled-system';
|
|
2
|
-
export declare const commandRecipe: import("@chakra-ui/react").RecipeDefinition<{
|
|
3
|
-
size: {
|
|
4
|
-
sm: {
|
|
5
|
-
fontSize: "xs";
|
|
6
|
-
};
|
|
7
|
-
md: {
|
|
8
|
-
fontSize: "sm";
|
|
9
|
-
};
|
|
10
|
-
lg: {
|
|
11
|
-
fontSize: "md";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
export type CommandVariantProps = RecipeVariantProps<typeof commandRecipe>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineRecipe, } from '@chakra-ui/react/styled-system';
|
|
2
|
-
export const commandRecipe = defineRecipe({
|
|
3
|
-
className: 'sui-command',
|
|
4
|
-
base: {
|
|
5
|
-
colorPalette: 'gray',
|
|
6
|
-
display: 'inline-flex',
|
|
7
|
-
gap: 1,
|
|
8
|
-
color: 'fg.muted',
|
|
9
|
-
'[role=tooltip] > &': {
|
|
10
|
-
ms: 1,
|
|
11
|
-
_before: {
|
|
12
|
-
content: '"•"',
|
|
13
|
-
me: 1,
|
|
14
|
-
fontSize: 'xs',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
variants: {
|
|
19
|
-
size: {
|
|
20
|
-
sm: {
|
|
21
|
-
fontSize: 'xs',
|
|
22
|
-
},
|
|
23
|
-
md: {
|
|
24
|
-
fontSize: 'sm',
|
|
25
|
-
},
|
|
26
|
-
lg: {
|
|
27
|
-
fontSize: 'md',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
defaultVariants: {
|
|
32
|
-
size: 'md',
|
|
33
|
-
},
|
|
34
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const containerRecipe: import("@chakra-ui/react").RecipeDefinition<{
|
|
2
|
-
centerContent: {
|
|
3
|
-
true: {
|
|
4
|
-
display: "flex";
|
|
5
|
-
flexDirection: "column";
|
|
6
|
-
alignItems: "center";
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
fluid: {
|
|
10
|
-
true: {
|
|
11
|
-
maxWidth: "full";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineRecipe } from '@chakra-ui/react/styled-system';
|
|
2
|
-
export const containerRecipe = defineRecipe({
|
|
3
|
-
className: 'chakra-container',
|
|
4
|
-
base: {
|
|
5
|
-
position: 'relative',
|
|
6
|
-
maxWidth: '8xl',
|
|
7
|
-
w: '100%',
|
|
8
|
-
mx: 'auto',
|
|
9
|
-
px: { base: '4', md: '6', lg: '8' },
|
|
10
|
-
},
|
|
11
|
-
variants: {
|
|
12
|
-
centerContent: {
|
|
13
|
-
true: {
|
|
14
|
-
display: 'flex',
|
|
15
|
-
flexDirection: 'column',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
fluid: {
|
|
20
|
-
true: {
|
|
21
|
-
maxWidth: 'full',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export declare const dataListSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemLabel" | "itemValue", {
|
|
2
|
-
orientation: {
|
|
3
|
-
horizontal: {
|
|
4
|
-
root: {
|
|
5
|
-
display: "flex";
|
|
6
|
-
flexDirection: "column";
|
|
7
|
-
};
|
|
8
|
-
item: {
|
|
9
|
-
display: "inline-flex";
|
|
10
|
-
alignItems: "center";
|
|
11
|
-
gap: "4";
|
|
12
|
-
};
|
|
13
|
-
itemLabel: {
|
|
14
|
-
minWidth: "var(--label-width, 120px)";
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
vertical: {
|
|
18
|
-
root: {
|
|
19
|
-
display: "flex";
|
|
20
|
-
flexDirection: "column";
|
|
21
|
-
};
|
|
22
|
-
item: {
|
|
23
|
-
display: "flex";
|
|
24
|
-
flexDirection: "column";
|
|
25
|
-
gap: "1";
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
size: {
|
|
30
|
-
sm: {
|
|
31
|
-
root: {
|
|
32
|
-
gap: "3";
|
|
33
|
-
};
|
|
34
|
-
item: {
|
|
35
|
-
textStyle: "xs";
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
md: {
|
|
39
|
-
root: {
|
|
40
|
-
gap: "4";
|
|
41
|
-
};
|
|
42
|
-
item: {
|
|
43
|
-
textStyle: "sm";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
lg: {
|
|
47
|
-
root: {
|
|
48
|
-
gap: "5";
|
|
49
|
-
};
|
|
50
|
-
item: {
|
|
51
|
-
textStyle: "md";
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { dataListAnatomy } from '@chakra-ui/react/anatomy';
|
|
2
|
-
import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
|
|
3
|
-
export const dataListSlotRecipe = defineSlotRecipe({
|
|
4
|
-
slots: dataListAnatomy.keys(),
|
|
5
|
-
className: 'chakra-data-list',
|
|
6
|
-
base: {
|
|
7
|
-
itemLabel: {
|
|
8
|
-
color: 'fg.muted',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
gap: '1',
|
|
12
|
-
},
|
|
13
|
-
itemValue: {
|
|
14
|
-
display: 'flex',
|
|
15
|
-
minWidth: '0',
|
|
16
|
-
flex: '1',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
variants: {
|
|
20
|
-
orientation: {
|
|
21
|
-
horizontal: {
|
|
22
|
-
root: {
|
|
23
|
-
display: 'flex',
|
|
24
|
-
flexDirection: 'column',
|
|
25
|
-
},
|
|
26
|
-
item: {
|
|
27
|
-
display: 'inline-flex',
|
|
28
|
-
alignItems: 'center',
|
|
29
|
-
gap: '4',
|
|
30
|
-
},
|
|
31
|
-
itemLabel: {
|
|
32
|
-
minWidth: 'var(--label-width, 120px)',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
vertical: {
|
|
36
|
-
root: {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
flexDirection: 'column',
|
|
39
|
-
},
|
|
40
|
-
item: {
|
|
41
|
-
display: 'flex',
|
|
42
|
-
flexDirection: 'column',
|
|
43
|
-
gap: '1',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
size: {
|
|
48
|
-
sm: {
|
|
49
|
-
root: {
|
|
50
|
-
gap: '3',
|
|
51
|
-
},
|
|
52
|
-
item: {
|
|
53
|
-
textStyle: 'xs',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
md: {
|
|
57
|
-
root: {
|
|
58
|
-
gap: '4',
|
|
59
|
-
},
|
|
60
|
-
item: {
|
|
61
|
-
textStyle: 'sm',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
lg: {
|
|
65
|
-
root: {
|
|
66
|
-
gap: '5',
|
|
67
|
-
},
|
|
68
|
-
item: {
|
|
69
|
-
textStyle: 'md',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
defaultVariants: {
|
|
75
|
-
size: 'md',
|
|
76
|
-
orientation: 'horizontal',
|
|
77
|
-
},
|
|
78
|
-
});
|