@chakra-ui/panda-preset 3.27.0 → 3.28.0

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.
@@ -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": {
@@ -143,6 +143,7 @@ const codeBlockSlotRecipe = def.defineSlotRecipe({
143
143
  content: "''",
144
144
  display: "block",
145
145
  position: "absolute",
146
+ top: "0",
146
147
  insetStart: "calc(var(--code-block-padding) * -1)",
147
148
  insetEnd: "0px",
148
149
  width: "calc(100% + var(--code-block-padding) * 2)",
@@ -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,
@@ -105,8 +105,7 @@ const tableSlotRecipe = def.defineSlotRecipe({
105
105
  },
106
106
  outline: {
107
107
  root: {
108
- boxShadow: "0 0 0 1px {colors.border}",
109
- overflow: "hidden"
108
+ boxShadow: "0 0 0 1px {colors.border}"
110
109
  },
111
110
  columnHeader: {
112
111
  borderBottomWidth: "1px"
@@ -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;
@@ -24,18 +24,18 @@ const timelineSlotRecipe = def.defineSlotRecipe({
24
24
  "--timeline-gutter": "4px"
25
25
  },
26
26
  item: {
27
+ "--timeline-content-gap": "spacing.6",
27
28
  display: "flex",
28
29
  position: "relative",
29
30
  alignItems: "flex-start",
30
31
  flexShrink: 0,
31
32
  gap: "4",
32
33
  _last: {
33
- "& :where(.timeline__separator)": {
34
- display: "none"
35
- }
34
+ "--timeline-content-gap": "0"
36
35
  }
37
36
  },
38
37
  separator: {
38
+ display: "var(--timeline-separator-display)",
39
39
  position: "absolute",
40
40
  borderStartWidth: "var(--timeline-thickness)",
41
41
  ms: "calc(-1 * var(--timeline-thickness) / 2)",
@@ -60,7 +60,7 @@ const timelineSlotRecipe = def.defineSlotRecipe({
60
60
  position: "relative"
61
61
  },
62
62
  content: {
63
- pb: "6",
63
+ pb: "var(--timeline-content-gap)",
64
64
  display: "flex",
65
65
  flexDirection: "column",
66
66
  width: "full",
@@ -101,6 +101,22 @@ const timelineSlotRecipe = def.defineSlotRecipe({
101
101
  },
102
102
  plain: {}
103
103
  },
104
+ showLastSeparator: {
105
+ true: {
106
+ item: {
107
+ _last: {
108
+ "--timeline-separator-display": "initial"
109
+ }
110
+ }
111
+ },
112
+ false: {
113
+ item: {
114
+ _last: {
115
+ "--timeline-separator-display": "none"
116
+ }
117
+ }
118
+ }
119
+ },
104
120
  size: {
105
121
  sm: {
106
122
  root: {
@@ -144,7 +160,8 @@ const timelineSlotRecipe = def.defineSlotRecipe({
144
160
  },
145
161
  defaultVariants: {
146
162
  size: "md",
147
- variant: "solid"
163
+ variant: "solid",
164
+ showLastSeparator: false
148
165
  }
149
166
  });
150
167
 
@@ -17,6 +17,7 @@ const treeViewSlotRecipe = def.defineSlotRecipe({
17
17
  "itemText",
18
18
  "label",
19
19
  "nodeCheckbox",
20
+ "nodeRenameInput",
20
21
  "root",
21
22
  "tree"
22
23
  ],
@@ -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": {
@@ -141,6 +141,7 @@ const codeBlockSlotRecipe = defineSlotRecipe({
141
141
  content: "''",
142
142
  display: "block",
143
143
  position: "absolute",
144
+ top: "0",
144
145
  insetStart: "calc(var(--code-block-padding) * -1)",
145
146
  insetEnd: "0px",
146
147
  width: "calc(100% + var(--code-block-padding) * 2)",
@@ -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,
@@ -103,8 +103,7 @@ const tableSlotRecipe = defineSlotRecipe({
103
103
  },
104
104
  outline: {
105
105
  root: {
106
- boxShadow: "0 0 0 1px {colors.border}",
107
- overflow: "hidden"
106
+ boxShadow: "0 0 0 1px {colors.border}"
108
107
  },
109
108
  columnHeader: {
110
109
  borderBottomWidth: "1px"
@@ -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 };
@@ -22,18 +22,18 @@ const timelineSlotRecipe = defineSlotRecipe({
22
22
  "--timeline-gutter": "4px"
23
23
  },
24
24
  item: {
25
+ "--timeline-content-gap": "spacing.6",
25
26
  display: "flex",
26
27
  position: "relative",
27
28
  alignItems: "flex-start",
28
29
  flexShrink: 0,
29
30
  gap: "4",
30
31
  _last: {
31
- "& :where(.timeline__separator)": {
32
- display: "none"
33
- }
32
+ "--timeline-content-gap": "0"
34
33
  }
35
34
  },
36
35
  separator: {
36
+ display: "var(--timeline-separator-display)",
37
37
  position: "absolute",
38
38
  borderStartWidth: "var(--timeline-thickness)",
39
39
  ms: "calc(-1 * var(--timeline-thickness) / 2)",
@@ -58,7 +58,7 @@ const timelineSlotRecipe = defineSlotRecipe({
58
58
  position: "relative"
59
59
  },
60
60
  content: {
61
- pb: "6",
61
+ pb: "var(--timeline-content-gap)",
62
62
  display: "flex",
63
63
  flexDirection: "column",
64
64
  width: "full",
@@ -99,6 +99,22 @@ const timelineSlotRecipe = defineSlotRecipe({
99
99
  },
100
100
  plain: {}
101
101
  },
102
+ showLastSeparator: {
103
+ true: {
104
+ item: {
105
+ _last: {
106
+ "--timeline-separator-display": "initial"
107
+ }
108
+ }
109
+ },
110
+ false: {
111
+ item: {
112
+ _last: {
113
+ "--timeline-separator-display": "none"
114
+ }
115
+ }
116
+ }
117
+ },
102
118
  size: {
103
119
  sm: {
104
120
  root: {
@@ -142,7 +158,8 @@ const timelineSlotRecipe = defineSlotRecipe({
142
158
  },
143
159
  defaultVariants: {
144
160
  size: "md",
145
- variant: "solid"
161
+ variant: "solid",
162
+ showLastSeparator: false
146
163
  }
147
164
  });
148
165
 
@@ -15,6 +15,7 @@ const treeViewSlotRecipe = defineSlotRecipe({
15
15
  "itemText",
16
16
  "label",
17
17
  "nodeCheckbox",
18
+ "nodeRenameInput",
18
19
  "root",
19
20
  "tree"
20
21
  ],
@@ -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.27.0",
3
+ "version": "3.28.0",
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": "^0.54.0"
48
+ "@pandacss/types": "^1.4.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "globby": "14.1.0",
52
- "@chakra-ui/cli": "3.27.0"
52
+ "@chakra-ui/cli": "3.28.0"
53
53
  },
54
54
  "scripts": {
55
55
  "theme:eject": "chakra eject --outdir=src",