@chakra-ui/panda-preset 3.27.1 → 3.28.1
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/cjs/keyframes.cjs +4 -4
- package/dist/cjs/slot-recipes/code-block.cjs +1 -0
- package/dist/cjs/slot-recipes/collapsible.cjs +8 -2
- package/dist/cjs/slot-recipes/index.cjs +2 -0
- package/dist/cjs/slot-recipes/segment-group.cjs +8 -6
- package/dist/cjs/slot-recipes/tabs.cjs +4 -4
- package/dist/cjs/slot-recipes/tags-input.cjs +249 -0
- package/dist/cjs/slot-recipes/tree-view.cjs +1 -0
- package/dist/esm/keyframes.js +4 -4
- package/dist/esm/slot-recipes/code-block.js +1 -0
- package/dist/esm/slot-recipes/collapsible.js +8 -2
- package/dist/esm/slot-recipes/index.js +2 -0
- package/dist/esm/slot-recipes/segment-group.js +8 -6
- package/dist/esm/slot-recipes/tabs.js +4 -4
- package/dist/esm/slot-recipes/tags-input.js +247 -0
- package/dist/esm/slot-recipes/tree-view.js +1 -0
- package/dist/types/slot-recipes/index.d.ts +1 -0
- package/dist/types/slot-recipes/tags-input.d.ts +1 -0
- package/package.json +3 -3
package/dist/cjs/keyframes.cjs
CHANGED
|
@@ -65,7 +65,7 @@ const keyframes = {
|
|
|
65
65
|
},
|
|
66
66
|
"expand-height": {
|
|
67
67
|
from: {
|
|
68
|
-
height: "0"
|
|
68
|
+
height: "var(--collapsed-height, 0)"
|
|
69
69
|
},
|
|
70
70
|
to: {
|
|
71
71
|
height: "var(--height)"
|
|
@@ -76,12 +76,12 @@ const keyframes = {
|
|
|
76
76
|
height: "var(--height)"
|
|
77
77
|
},
|
|
78
78
|
to: {
|
|
79
|
-
height: "0"
|
|
79
|
+
height: "var(--collapsed-height, 0)"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"expand-width": {
|
|
83
83
|
from: {
|
|
84
|
-
width: "0"
|
|
84
|
+
width: "var(--collapsed-width, 0)"
|
|
85
85
|
},
|
|
86
86
|
to: {
|
|
87
87
|
width: "var(--width)"
|
|
@@ -92,7 +92,7 @@ const keyframes = {
|
|
|
92
92
|
height: "var(--width)"
|
|
93
93
|
},
|
|
94
94
|
to: {
|
|
95
|
-
height: "0"
|
|
95
|
+
height: "var(--collapsed-width, 0)"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"fade-in": {
|
|
@@ -134,6 +134,7 @@ const codeBlockSlotRecipe = def.defineSlotRecipe({
|
|
|
134
134
|
},
|
|
135
135
|
"& [data-line]": {
|
|
136
136
|
position: "relative",
|
|
137
|
+
paddingInlineEnd: "var(--code-block-padding)",
|
|
137
138
|
"--highlight-bg": "var(--code-block-highlight-bg)",
|
|
138
139
|
"--highlight-border": "var(--code-block-highlight-border)",
|
|
139
140
|
"&[data-highlight], &[data-diff]": {
|
|
@@ -11,11 +11,17 @@ const collapsibleSlotRecipe = def.defineSlotRecipe({
|
|
|
11
11
|
overflow: "hidden",
|
|
12
12
|
_open: {
|
|
13
13
|
animationName: "expand-height, fade-in",
|
|
14
|
-
animationDuration: "moderate"
|
|
14
|
+
animationDuration: "moderate",
|
|
15
|
+
"&[data-has-collapsed-size]": {
|
|
16
|
+
animationName: "expand-height"
|
|
17
|
+
}
|
|
15
18
|
},
|
|
16
19
|
_closed: {
|
|
17
20
|
animationName: "collapse-height, fade-out",
|
|
18
|
-
animationDuration: "moderate"
|
|
21
|
+
animationDuration: "moderate",
|
|
22
|
+
"&[data-has-collapsed-size]": {
|
|
23
|
+
animationName: "collapse-height"
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
}
|
|
@@ -47,6 +47,7 @@ var _switch = require('./switch.cjs');
|
|
|
47
47
|
var table = require('./table.cjs');
|
|
48
48
|
var tabs = require('./tabs.cjs');
|
|
49
49
|
var tag = require('./tag.cjs');
|
|
50
|
+
var tagsInput = require('./tags-input.cjs');
|
|
50
51
|
var timeline = require('./timeline.cjs');
|
|
51
52
|
var toast = require('./toast.cjs');
|
|
52
53
|
var tooltip = require('./tooltip.cjs');
|
|
@@ -96,6 +97,7 @@ const slotRecipes = {
|
|
|
96
97
|
table: table.tableSlotRecipe,
|
|
97
98
|
tabs: tabs.tabsSlotRecipe,
|
|
98
99
|
tag: tag.tagSlotRecipe,
|
|
100
|
+
tagsInput: tagsInput.tagsInputSlotRecipe,
|
|
99
101
|
toast: toast.toastSlotRecipe,
|
|
100
102
|
tooltip: tooltip.tooltipSlotRecipe,
|
|
101
103
|
status: status.statusSlotRecipe,
|
|
@@ -9,7 +9,12 @@ const segmentGroupSlotRecipe = def.defineSlotRecipe({
|
|
|
9
9
|
base: {
|
|
10
10
|
root: {
|
|
11
11
|
"--segment-radius": "radii.l2",
|
|
12
|
-
|
|
12
|
+
"--segment-indicator-bg": {
|
|
13
|
+
_light: "colors.bg",
|
|
14
|
+
_dark: "colors.bg.emphasized"
|
|
15
|
+
},
|
|
16
|
+
"--segment-indicator-shadow": "shadows.sm",
|
|
17
|
+
borderRadius: "var(--segment-radius)",
|
|
13
18
|
display: "inline-flex",
|
|
14
19
|
boxShadow: "inset",
|
|
15
20
|
minW: "max-content",
|
|
@@ -68,12 +73,9 @@ const segmentGroupSlotRecipe = def.defineSlotRecipe({
|
|
|
68
73
|
}
|
|
69
74
|
},
|
|
70
75
|
indicator: {
|
|
71
|
-
shadow: "
|
|
76
|
+
shadow: "var(--segment-indicator-shadow)",
|
|
72
77
|
pos: "absolute",
|
|
73
|
-
bg:
|
|
74
|
-
_light: "bg",
|
|
75
|
-
_dark: "bg.emphasized"
|
|
76
|
-
},
|
|
78
|
+
bg: "var(--segment-indicator-bg)",
|
|
77
79
|
width: "var(--width)",
|
|
78
80
|
height: "var(--height)",
|
|
79
81
|
top: "var(--top)",
|
|
@@ -9,6 +9,8 @@ const tabsSlotRecipe = def.defineSlotRecipe({
|
|
|
9
9
|
base: {
|
|
10
10
|
root: {
|
|
11
11
|
"--tabs-trigger-radius": "radii.l2",
|
|
12
|
+
"--tabs-indicator-shadow": "shadows.xs",
|
|
13
|
+
"--tabs-indicator-bg": "colors.bg",
|
|
12
14
|
position: "relative",
|
|
13
15
|
_horizontal: {
|
|
14
16
|
display: "block"
|
|
@@ -21,8 +23,6 @@ const tabsSlotRecipe = def.defineSlotRecipe({
|
|
|
21
23
|
display: "inline-flex",
|
|
22
24
|
position: "relative",
|
|
23
25
|
isolation: "isolate",
|
|
24
|
-
"--tabs-indicator-shadow": "shadows.xs",
|
|
25
|
-
"--tabs-indicator-bg": "colors.bg",
|
|
26
26
|
minH: "var(--tabs-height)",
|
|
27
27
|
_horizontal: {
|
|
28
28
|
flexDirection: "row"
|
|
@@ -65,7 +65,7 @@ const tabsSlotRecipe = def.defineSlotRecipe({
|
|
|
65
65
|
indicator: {
|
|
66
66
|
width: "var(--width)",
|
|
67
67
|
height: "var(--height)",
|
|
68
|
-
borderRadius: "var(--tabs-
|
|
68
|
+
borderRadius: "var(--tabs-trigger-radius)",
|
|
69
69
|
bg: "var(--tabs-indicator-bg)",
|
|
70
70
|
shadow: "var(--tabs-indicator-shadow)",
|
|
71
71
|
zIndex: -1
|
|
@@ -266,7 +266,7 @@ const tabsSlotRecipe = def.defineSlotRecipe({
|
|
|
266
266
|
"&[data-selected][data-ssr]": {
|
|
267
267
|
bg: "var(--tabs-indicator-bg)",
|
|
268
268
|
shadow: "var(--tabs-indicator-shadow)",
|
|
269
|
-
borderRadius: "var(--tabs-
|
|
269
|
+
borderRadius: "var(--tabs-trigger-radius)"
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var def = require('../def.cjs');
|
|
5
|
+
|
|
6
|
+
const tagsInputSlotRecipe = def.defineSlotRecipe({
|
|
7
|
+
slots: [
|
|
8
|
+
"root",
|
|
9
|
+
"label",
|
|
10
|
+
"control",
|
|
11
|
+
"input",
|
|
12
|
+
"clearTrigger",
|
|
13
|
+
"item",
|
|
14
|
+
"itemPreview",
|
|
15
|
+
"itemInput",
|
|
16
|
+
"itemText",
|
|
17
|
+
"itemDeleteTrigger"
|
|
18
|
+
],
|
|
19
|
+
className: "tags-input",
|
|
20
|
+
base: {
|
|
21
|
+
root: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
gap: "1.5",
|
|
25
|
+
width: "full"
|
|
26
|
+
},
|
|
27
|
+
label: {
|
|
28
|
+
fontWeight: "medium",
|
|
29
|
+
textStyle: "sm",
|
|
30
|
+
_disabled: {
|
|
31
|
+
opacity: "0.5"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
control: {
|
|
35
|
+
"--focus-color": "colors.colorPalette.focusRing",
|
|
36
|
+
"--error-color": "colors.border.error",
|
|
37
|
+
minH: "var(--tags-input-height)",
|
|
38
|
+
"--input-height": "var(--tags-input-height)",
|
|
39
|
+
px: "var(--tags-input-px)",
|
|
40
|
+
py: "var(--tags-input-py)",
|
|
41
|
+
gap: "var(--tags-input-gap)",
|
|
42
|
+
display: "flex",
|
|
43
|
+
flexWrap: "wrap",
|
|
44
|
+
alignItems: "center",
|
|
45
|
+
borderRadius: "l2",
|
|
46
|
+
pos: "relative",
|
|
47
|
+
transitionProperty: "border-color, box-shadow",
|
|
48
|
+
transitionDuration: "normal",
|
|
49
|
+
_disabled: {
|
|
50
|
+
opacity: "0.5"
|
|
51
|
+
},
|
|
52
|
+
_invalid: {
|
|
53
|
+
borderColor: "var(--error-color)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
input: {
|
|
57
|
+
flex: "1",
|
|
58
|
+
minWidth: "20",
|
|
59
|
+
outline: "none",
|
|
60
|
+
bg: "transparent",
|
|
61
|
+
color: "fg",
|
|
62
|
+
px: "calc(var(--tags-input-item-px) / 1.25)",
|
|
63
|
+
height: "var(--tags-input-item-height)",
|
|
64
|
+
_readOnly: {
|
|
65
|
+
display: "none"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
itemText: {
|
|
69
|
+
lineClamp: "1"
|
|
70
|
+
},
|
|
71
|
+
itemInput: {
|
|
72
|
+
outline: "none",
|
|
73
|
+
bg: "transparent",
|
|
74
|
+
minWidth: "2ch",
|
|
75
|
+
color: "inherit",
|
|
76
|
+
px: "var(--tags-input-item-px)",
|
|
77
|
+
height: "var(--tags-input-item-height)"
|
|
78
|
+
},
|
|
79
|
+
itemPreview: {
|
|
80
|
+
height: "var(--tags-input-item-height)",
|
|
81
|
+
userSelect: "none",
|
|
82
|
+
display: "inline-flex",
|
|
83
|
+
alignItems: "center",
|
|
84
|
+
gap: "1",
|
|
85
|
+
rounded: "l1",
|
|
86
|
+
px: "var(--tags-input-item-px)"
|
|
87
|
+
},
|
|
88
|
+
itemDeleteTrigger: {
|
|
89
|
+
display: "flex",
|
|
90
|
+
alignItems: "center",
|
|
91
|
+
justifyContent: "center",
|
|
92
|
+
boxSize: "calc(var(--tags-input-item-height) / 1.5)",
|
|
93
|
+
cursor: {
|
|
94
|
+
base: "button",
|
|
95
|
+
_disabled: "initial"
|
|
96
|
+
},
|
|
97
|
+
me: "-1",
|
|
98
|
+
opacity: "0.4",
|
|
99
|
+
_hover: {
|
|
100
|
+
opacity: "1"
|
|
101
|
+
},
|
|
102
|
+
"[data-highlighted] &": {
|
|
103
|
+
opacity: "1"
|
|
104
|
+
},
|
|
105
|
+
_icon: {
|
|
106
|
+
boxSize: "80%"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
clearTrigger: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
justifyContent: "center",
|
|
113
|
+
boxSize: "calc(var(--tags-input-item-height) / 1.5)",
|
|
114
|
+
cursor: {
|
|
115
|
+
base: "button",
|
|
116
|
+
_disabled: "initial"
|
|
117
|
+
},
|
|
118
|
+
color: "fg.muted",
|
|
119
|
+
focusVisibleRing: "inside",
|
|
120
|
+
focusRingWidth: "2px",
|
|
121
|
+
rounded: "l1",
|
|
122
|
+
_icon: {
|
|
123
|
+
boxSize: "5"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
variants: {
|
|
128
|
+
size: {
|
|
129
|
+
xs: {
|
|
130
|
+
root: {
|
|
131
|
+
"--tags-input-height": "sizes.8",
|
|
132
|
+
"--tags-input-px": "spacing.1.5",
|
|
133
|
+
"--tags-input-py": "spacing.1",
|
|
134
|
+
"--tags-input-gap": "spacing.1",
|
|
135
|
+
"--tags-input-item-height": "sizes.6",
|
|
136
|
+
"--tags-input-item-px": "spacing.2",
|
|
137
|
+
textStyle: "xs"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
sm: {
|
|
141
|
+
root: {
|
|
142
|
+
"--tags-input-height": "sizes.9",
|
|
143
|
+
"--tags-input-px": "spacing.1.5",
|
|
144
|
+
"--tags-input-py": "spacing.1",
|
|
145
|
+
"--tags-input-gap": "spacing.1",
|
|
146
|
+
"--tags-input-item-height": "sizes.6",
|
|
147
|
+
"--tags-input-item-px": "spacing.2",
|
|
148
|
+
textStyle: "sm"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
md: {
|
|
152
|
+
root: {
|
|
153
|
+
"--tags-input-height": "sizes.10",
|
|
154
|
+
"--tags-input-px": "spacing.1.5",
|
|
155
|
+
"--tags-input-py": "spacing.1",
|
|
156
|
+
"--tags-input-gap": "spacing.1",
|
|
157
|
+
"--tags-input-item-height": "sizes.7",
|
|
158
|
+
"--tags-input-item-px": "spacing.2",
|
|
159
|
+
textStyle: "sm"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
lg: {
|
|
163
|
+
root: {
|
|
164
|
+
"--tags-input-height": "sizes.11",
|
|
165
|
+
"--tags-input-px": "spacing.1.5",
|
|
166
|
+
"--tags-input-py": "spacing.1",
|
|
167
|
+
"--tags-input-gap": "spacing.1",
|
|
168
|
+
"--tags-input-item-height": "sizes.8",
|
|
169
|
+
"--tags-input-item-px": "spacing.2",
|
|
170
|
+
textStyle: "md"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
variant: {
|
|
175
|
+
outline: {
|
|
176
|
+
control: {
|
|
177
|
+
borderWidth: "1px",
|
|
178
|
+
bg: "bg",
|
|
179
|
+
_focus: {
|
|
180
|
+
outlineWidth: "1px",
|
|
181
|
+
outlineStyle: "solid",
|
|
182
|
+
outlineColor: "var(--focus-color)",
|
|
183
|
+
borderColor: "var(--focus-color)",
|
|
184
|
+
_invalid: {
|
|
185
|
+
outlineColor: "var(--error-color)",
|
|
186
|
+
borderColor: "var(--error-color)"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
itemPreview: {
|
|
191
|
+
bg: "colorPalette.subtle",
|
|
192
|
+
_highlighted: {
|
|
193
|
+
bg: "colorPalette.muted"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
subtle: {
|
|
198
|
+
control: {
|
|
199
|
+
bg: "bg.muted",
|
|
200
|
+
borderWidth: "1px",
|
|
201
|
+
borderColor: "transparent",
|
|
202
|
+
_focus: {
|
|
203
|
+
outlineWidth: "1px",
|
|
204
|
+
outlineStyle: "solid",
|
|
205
|
+
outlineColor: "var(--focus-color)",
|
|
206
|
+
borderColor: "var(--focus-color)",
|
|
207
|
+
_invalid: {
|
|
208
|
+
outlineColor: "var(--error-color)",
|
|
209
|
+
borderColor: "var(--error-color)"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
itemPreview: {
|
|
214
|
+
bg: "bg",
|
|
215
|
+
borderWidth: "1px",
|
|
216
|
+
_highlighted: {
|
|
217
|
+
bg: "colorPalette.subtle",
|
|
218
|
+
borderColor: "colorPalette.emphasized"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
flushed: {
|
|
223
|
+
control: {
|
|
224
|
+
borderRadius: "0",
|
|
225
|
+
px: "0",
|
|
226
|
+
bg: "transparent",
|
|
227
|
+
borderBottomWidth: "1px",
|
|
228
|
+
borderBottomColor: "border",
|
|
229
|
+
_focus: {
|
|
230
|
+
borderColor: "var(--focus-color)",
|
|
231
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
itemPreview: {
|
|
235
|
+
bg: "colorPalette.subtle",
|
|
236
|
+
_highlighted: {
|
|
237
|
+
bg: "colorPalette.muted"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
defaultVariants: {
|
|
244
|
+
size: "md",
|
|
245
|
+
variant: "outline"
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
exports.tagsInputSlotRecipe = tagsInputSlotRecipe;
|
package/dist/esm/keyframes.js
CHANGED
|
@@ -63,7 +63,7 @@ const keyframes = {
|
|
|
63
63
|
},
|
|
64
64
|
"expand-height": {
|
|
65
65
|
from: {
|
|
66
|
-
height: "0"
|
|
66
|
+
height: "var(--collapsed-height, 0)"
|
|
67
67
|
},
|
|
68
68
|
to: {
|
|
69
69
|
height: "var(--height)"
|
|
@@ -74,12 +74,12 @@ const keyframes = {
|
|
|
74
74
|
height: "var(--height)"
|
|
75
75
|
},
|
|
76
76
|
to: {
|
|
77
|
-
height: "0"
|
|
77
|
+
height: "var(--collapsed-height, 0)"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"expand-width": {
|
|
81
81
|
from: {
|
|
82
|
-
width: "0"
|
|
82
|
+
width: "var(--collapsed-width, 0)"
|
|
83
83
|
},
|
|
84
84
|
to: {
|
|
85
85
|
width: "var(--width)"
|
|
@@ -90,7 +90,7 @@ const keyframes = {
|
|
|
90
90
|
height: "var(--width)"
|
|
91
91
|
},
|
|
92
92
|
to: {
|
|
93
|
-
height: "0"
|
|
93
|
+
height: "var(--collapsed-width, 0)"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"fade-in": {
|
|
@@ -132,6 +132,7 @@ const codeBlockSlotRecipe = defineSlotRecipe({
|
|
|
132
132
|
},
|
|
133
133
|
"& [data-line]": {
|
|
134
134
|
position: "relative",
|
|
135
|
+
paddingInlineEnd: "var(--code-block-padding)",
|
|
135
136
|
"--highlight-bg": "var(--code-block-highlight-bg)",
|
|
136
137
|
"--highlight-border": "var(--code-block-highlight-border)",
|
|
137
138
|
"&[data-highlight], &[data-diff]": {
|
|
@@ -9,11 +9,17 @@ const collapsibleSlotRecipe = defineSlotRecipe({
|
|
|
9
9
|
overflow: "hidden",
|
|
10
10
|
_open: {
|
|
11
11
|
animationName: "expand-height, fade-in",
|
|
12
|
-
animationDuration: "moderate"
|
|
12
|
+
animationDuration: "moderate",
|
|
13
|
+
"&[data-has-collapsed-size]": {
|
|
14
|
+
animationName: "expand-height"
|
|
15
|
+
}
|
|
13
16
|
},
|
|
14
17
|
_closed: {
|
|
15
18
|
animationName: "collapse-height, fade-out",
|
|
16
|
-
animationDuration: "moderate"
|
|
19
|
+
animationDuration: "moderate",
|
|
20
|
+
"&[data-has-collapsed-size]": {
|
|
21
|
+
animationName: "collapse-height"
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
24
|
}
|
|
19
25
|
}
|
|
@@ -45,6 +45,7 @@ import { switchSlotRecipe } from './switch.js';
|
|
|
45
45
|
import { tableSlotRecipe } from './table.js';
|
|
46
46
|
import { tabsSlotRecipe } from './tabs.js';
|
|
47
47
|
import { tagSlotRecipe } from './tag.js';
|
|
48
|
+
import { tagsInputSlotRecipe } from './tags-input.js';
|
|
48
49
|
import { timelineSlotRecipe } from './timeline.js';
|
|
49
50
|
import { toastSlotRecipe } from './toast.js';
|
|
50
51
|
import { tooltipSlotRecipe } from './tooltip.js';
|
|
@@ -94,6 +95,7 @@ const slotRecipes = {
|
|
|
94
95
|
table: tableSlotRecipe,
|
|
95
96
|
tabs: tabsSlotRecipe,
|
|
96
97
|
tag: tagSlotRecipe,
|
|
98
|
+
tagsInput: tagsInputSlotRecipe,
|
|
97
99
|
toast: toastSlotRecipe,
|
|
98
100
|
tooltip: tooltipSlotRecipe,
|
|
99
101
|
status: statusSlotRecipe,
|
|
@@ -7,7 +7,12 @@ const segmentGroupSlotRecipe = defineSlotRecipe({
|
|
|
7
7
|
base: {
|
|
8
8
|
root: {
|
|
9
9
|
"--segment-radius": "radii.l2",
|
|
10
|
-
|
|
10
|
+
"--segment-indicator-bg": {
|
|
11
|
+
_light: "colors.bg",
|
|
12
|
+
_dark: "colors.bg.emphasized"
|
|
13
|
+
},
|
|
14
|
+
"--segment-indicator-shadow": "shadows.sm",
|
|
15
|
+
borderRadius: "var(--segment-radius)",
|
|
11
16
|
display: "inline-flex",
|
|
12
17
|
boxShadow: "inset",
|
|
13
18
|
minW: "max-content",
|
|
@@ -66,12 +71,9 @@ const segmentGroupSlotRecipe = defineSlotRecipe({
|
|
|
66
71
|
}
|
|
67
72
|
},
|
|
68
73
|
indicator: {
|
|
69
|
-
shadow: "
|
|
74
|
+
shadow: "var(--segment-indicator-shadow)",
|
|
70
75
|
pos: "absolute",
|
|
71
|
-
bg:
|
|
72
|
-
_light: "bg",
|
|
73
|
-
_dark: "bg.emphasized"
|
|
74
|
-
},
|
|
76
|
+
bg: "var(--segment-indicator-bg)",
|
|
75
77
|
width: "var(--width)",
|
|
76
78
|
height: "var(--height)",
|
|
77
79
|
top: "var(--top)",
|
|
@@ -7,6 +7,8 @@ const tabsSlotRecipe = defineSlotRecipe({
|
|
|
7
7
|
base: {
|
|
8
8
|
root: {
|
|
9
9
|
"--tabs-trigger-radius": "radii.l2",
|
|
10
|
+
"--tabs-indicator-shadow": "shadows.xs",
|
|
11
|
+
"--tabs-indicator-bg": "colors.bg",
|
|
10
12
|
position: "relative",
|
|
11
13
|
_horizontal: {
|
|
12
14
|
display: "block"
|
|
@@ -19,8 +21,6 @@ const tabsSlotRecipe = defineSlotRecipe({
|
|
|
19
21
|
display: "inline-flex",
|
|
20
22
|
position: "relative",
|
|
21
23
|
isolation: "isolate",
|
|
22
|
-
"--tabs-indicator-shadow": "shadows.xs",
|
|
23
|
-
"--tabs-indicator-bg": "colors.bg",
|
|
24
24
|
minH: "var(--tabs-height)",
|
|
25
25
|
_horizontal: {
|
|
26
26
|
flexDirection: "row"
|
|
@@ -63,7 +63,7 @@ const tabsSlotRecipe = defineSlotRecipe({
|
|
|
63
63
|
indicator: {
|
|
64
64
|
width: "var(--width)",
|
|
65
65
|
height: "var(--height)",
|
|
66
|
-
borderRadius: "var(--tabs-
|
|
66
|
+
borderRadius: "var(--tabs-trigger-radius)",
|
|
67
67
|
bg: "var(--tabs-indicator-bg)",
|
|
68
68
|
shadow: "var(--tabs-indicator-shadow)",
|
|
69
69
|
zIndex: -1
|
|
@@ -264,7 +264,7 @@ const tabsSlotRecipe = defineSlotRecipe({
|
|
|
264
264
|
"&[data-selected][data-ssr]": {
|
|
265
265
|
bg: "var(--tabs-indicator-bg)",
|
|
266
266
|
shadow: "var(--tabs-indicator-shadow)",
|
|
267
|
-
borderRadius: "var(--tabs-
|
|
267
|
+
borderRadius: "var(--tabs-trigger-radius)"
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import { defineSlotRecipe } from '../def.js';
|
|
3
|
+
|
|
4
|
+
const tagsInputSlotRecipe = defineSlotRecipe({
|
|
5
|
+
slots: [
|
|
6
|
+
"root",
|
|
7
|
+
"label",
|
|
8
|
+
"control",
|
|
9
|
+
"input",
|
|
10
|
+
"clearTrigger",
|
|
11
|
+
"item",
|
|
12
|
+
"itemPreview",
|
|
13
|
+
"itemInput",
|
|
14
|
+
"itemText",
|
|
15
|
+
"itemDeleteTrigger"
|
|
16
|
+
],
|
|
17
|
+
className: "tags-input",
|
|
18
|
+
base: {
|
|
19
|
+
root: {
|
|
20
|
+
display: "flex",
|
|
21
|
+
flexDirection: "column",
|
|
22
|
+
gap: "1.5",
|
|
23
|
+
width: "full"
|
|
24
|
+
},
|
|
25
|
+
label: {
|
|
26
|
+
fontWeight: "medium",
|
|
27
|
+
textStyle: "sm",
|
|
28
|
+
_disabled: {
|
|
29
|
+
opacity: "0.5"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
control: {
|
|
33
|
+
"--focus-color": "colors.colorPalette.focusRing",
|
|
34
|
+
"--error-color": "colors.border.error",
|
|
35
|
+
minH: "var(--tags-input-height)",
|
|
36
|
+
"--input-height": "var(--tags-input-height)",
|
|
37
|
+
px: "var(--tags-input-px)",
|
|
38
|
+
py: "var(--tags-input-py)",
|
|
39
|
+
gap: "var(--tags-input-gap)",
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexWrap: "wrap",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
borderRadius: "l2",
|
|
44
|
+
pos: "relative",
|
|
45
|
+
transitionProperty: "border-color, box-shadow",
|
|
46
|
+
transitionDuration: "normal",
|
|
47
|
+
_disabled: {
|
|
48
|
+
opacity: "0.5"
|
|
49
|
+
},
|
|
50
|
+
_invalid: {
|
|
51
|
+
borderColor: "var(--error-color)"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
input: {
|
|
55
|
+
flex: "1",
|
|
56
|
+
minWidth: "20",
|
|
57
|
+
outline: "none",
|
|
58
|
+
bg: "transparent",
|
|
59
|
+
color: "fg",
|
|
60
|
+
px: "calc(var(--tags-input-item-px) / 1.25)",
|
|
61
|
+
height: "var(--tags-input-item-height)",
|
|
62
|
+
_readOnly: {
|
|
63
|
+
display: "none"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
itemText: {
|
|
67
|
+
lineClamp: "1"
|
|
68
|
+
},
|
|
69
|
+
itemInput: {
|
|
70
|
+
outline: "none",
|
|
71
|
+
bg: "transparent",
|
|
72
|
+
minWidth: "2ch",
|
|
73
|
+
color: "inherit",
|
|
74
|
+
px: "var(--tags-input-item-px)",
|
|
75
|
+
height: "var(--tags-input-item-height)"
|
|
76
|
+
},
|
|
77
|
+
itemPreview: {
|
|
78
|
+
height: "var(--tags-input-item-height)",
|
|
79
|
+
userSelect: "none",
|
|
80
|
+
display: "inline-flex",
|
|
81
|
+
alignItems: "center",
|
|
82
|
+
gap: "1",
|
|
83
|
+
rounded: "l1",
|
|
84
|
+
px: "var(--tags-input-item-px)"
|
|
85
|
+
},
|
|
86
|
+
itemDeleteTrigger: {
|
|
87
|
+
display: "flex",
|
|
88
|
+
alignItems: "center",
|
|
89
|
+
justifyContent: "center",
|
|
90
|
+
boxSize: "calc(var(--tags-input-item-height) / 1.5)",
|
|
91
|
+
cursor: {
|
|
92
|
+
base: "button",
|
|
93
|
+
_disabled: "initial"
|
|
94
|
+
},
|
|
95
|
+
me: "-1",
|
|
96
|
+
opacity: "0.4",
|
|
97
|
+
_hover: {
|
|
98
|
+
opacity: "1"
|
|
99
|
+
},
|
|
100
|
+
"[data-highlighted] &": {
|
|
101
|
+
opacity: "1"
|
|
102
|
+
},
|
|
103
|
+
_icon: {
|
|
104
|
+
boxSize: "80%"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
clearTrigger: {
|
|
108
|
+
display: "flex",
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
justifyContent: "center",
|
|
111
|
+
boxSize: "calc(var(--tags-input-item-height) / 1.5)",
|
|
112
|
+
cursor: {
|
|
113
|
+
base: "button",
|
|
114
|
+
_disabled: "initial"
|
|
115
|
+
},
|
|
116
|
+
color: "fg.muted",
|
|
117
|
+
focusVisibleRing: "inside",
|
|
118
|
+
focusRingWidth: "2px",
|
|
119
|
+
rounded: "l1",
|
|
120
|
+
_icon: {
|
|
121
|
+
boxSize: "5"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
variants: {
|
|
126
|
+
size: {
|
|
127
|
+
xs: {
|
|
128
|
+
root: {
|
|
129
|
+
"--tags-input-height": "sizes.8",
|
|
130
|
+
"--tags-input-px": "spacing.1.5",
|
|
131
|
+
"--tags-input-py": "spacing.1",
|
|
132
|
+
"--tags-input-gap": "spacing.1",
|
|
133
|
+
"--tags-input-item-height": "sizes.6",
|
|
134
|
+
"--tags-input-item-px": "spacing.2",
|
|
135
|
+
textStyle: "xs"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
sm: {
|
|
139
|
+
root: {
|
|
140
|
+
"--tags-input-height": "sizes.9",
|
|
141
|
+
"--tags-input-px": "spacing.1.5",
|
|
142
|
+
"--tags-input-py": "spacing.1",
|
|
143
|
+
"--tags-input-gap": "spacing.1",
|
|
144
|
+
"--tags-input-item-height": "sizes.6",
|
|
145
|
+
"--tags-input-item-px": "spacing.2",
|
|
146
|
+
textStyle: "sm"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
md: {
|
|
150
|
+
root: {
|
|
151
|
+
"--tags-input-height": "sizes.10",
|
|
152
|
+
"--tags-input-px": "spacing.1.5",
|
|
153
|
+
"--tags-input-py": "spacing.1",
|
|
154
|
+
"--tags-input-gap": "spacing.1",
|
|
155
|
+
"--tags-input-item-height": "sizes.7",
|
|
156
|
+
"--tags-input-item-px": "spacing.2",
|
|
157
|
+
textStyle: "sm"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
lg: {
|
|
161
|
+
root: {
|
|
162
|
+
"--tags-input-height": "sizes.11",
|
|
163
|
+
"--tags-input-px": "spacing.1.5",
|
|
164
|
+
"--tags-input-py": "spacing.1",
|
|
165
|
+
"--tags-input-gap": "spacing.1",
|
|
166
|
+
"--tags-input-item-height": "sizes.8",
|
|
167
|
+
"--tags-input-item-px": "spacing.2",
|
|
168
|
+
textStyle: "md"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
variant: {
|
|
173
|
+
outline: {
|
|
174
|
+
control: {
|
|
175
|
+
borderWidth: "1px",
|
|
176
|
+
bg: "bg",
|
|
177
|
+
_focus: {
|
|
178
|
+
outlineWidth: "1px",
|
|
179
|
+
outlineStyle: "solid",
|
|
180
|
+
outlineColor: "var(--focus-color)",
|
|
181
|
+
borderColor: "var(--focus-color)",
|
|
182
|
+
_invalid: {
|
|
183
|
+
outlineColor: "var(--error-color)",
|
|
184
|
+
borderColor: "var(--error-color)"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
itemPreview: {
|
|
189
|
+
bg: "colorPalette.subtle",
|
|
190
|
+
_highlighted: {
|
|
191
|
+
bg: "colorPalette.muted"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
subtle: {
|
|
196
|
+
control: {
|
|
197
|
+
bg: "bg.muted",
|
|
198
|
+
borderWidth: "1px",
|
|
199
|
+
borderColor: "transparent",
|
|
200
|
+
_focus: {
|
|
201
|
+
outlineWidth: "1px",
|
|
202
|
+
outlineStyle: "solid",
|
|
203
|
+
outlineColor: "var(--focus-color)",
|
|
204
|
+
borderColor: "var(--focus-color)",
|
|
205
|
+
_invalid: {
|
|
206
|
+
outlineColor: "var(--error-color)",
|
|
207
|
+
borderColor: "var(--error-color)"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
itemPreview: {
|
|
212
|
+
bg: "bg",
|
|
213
|
+
borderWidth: "1px",
|
|
214
|
+
_highlighted: {
|
|
215
|
+
bg: "colorPalette.subtle",
|
|
216
|
+
borderColor: "colorPalette.emphasized"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
flushed: {
|
|
221
|
+
control: {
|
|
222
|
+
borderRadius: "0",
|
|
223
|
+
px: "0",
|
|
224
|
+
bg: "transparent",
|
|
225
|
+
borderBottomWidth: "1px",
|
|
226
|
+
borderBottomColor: "border",
|
|
227
|
+
_focus: {
|
|
228
|
+
borderColor: "var(--focus-color)",
|
|
229
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
itemPreview: {
|
|
233
|
+
bg: "colorPalette.subtle",
|
|
234
|
+
_highlighted: {
|
|
235
|
+
bg: "colorPalette.muted"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
defaultVariants: {
|
|
242
|
+
size: "md",
|
|
243
|
+
variant: "outline"
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
export { tagsInputSlotRecipe };
|
|
@@ -42,6 +42,7 @@ export declare const slotRecipes: {
|
|
|
42
42
|
table: import("@pandacss/types").SlotRecipeConfig;
|
|
43
43
|
tabs: import("@pandacss/types").SlotRecipeConfig;
|
|
44
44
|
tag: import("@pandacss/types").SlotRecipeConfig;
|
|
45
|
+
tagsInput: import("@pandacss/types").SlotRecipeConfig;
|
|
45
46
|
toast: import("@pandacss/types").SlotRecipeConfig;
|
|
46
47
|
tooltip: import("@pandacss/types").SlotRecipeConfig;
|
|
47
48
|
status: import("@pandacss/types").SlotRecipeConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tagsInputSlotRecipe: import("@pandacss/types").SlotRecipeConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chakra-ui/panda-preset",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.28.1",
|
|
4
4
|
"description": "Panda preset for Chakra UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.cjs",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"./package.json": "./package.json"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@pandacss/types": "^
|
|
48
|
+
"@pandacss/types": "^1.4.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"globby": "14.1.0",
|
|
52
|
-
"@chakra-ui/cli": "3.
|
|
52
|
+
"@chakra-ui/cli": "3.28.1"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"theme:eject": "chakra eject --outdir=src",
|