@chakra-ui/panda-preset 3.32.0 → 3.34.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.
- package/dist/cjs/slot-recipes/code-block.cjs +3 -3
- package/dist/cjs/slot-recipes/date-picker.cjs +473 -0
- package/dist/cjs/slot-recipes/index.cjs +2 -0
- package/dist/esm/slot-recipes/code-block.js +3 -3
- package/dist/esm/slot-recipes/date-picker.js +471 -0
- package/dist/esm/slot-recipes/index.js +2 -0
- package/dist/types/slot-recipes/date-picker.d.ts +1 -0
- package/dist/types/slot-recipes/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -75,8 +75,6 @@ const codeBlockSlotRecipe = def.defineSlotRecipe({
|
|
|
75
75
|
content: {
|
|
76
76
|
position: "relative",
|
|
77
77
|
colorScheme: "dark",
|
|
78
|
-
overflowX: "auto",
|
|
79
|
-
overflowY: "hidden",
|
|
80
78
|
borderBottomRadius: "var(--code-block-radius)",
|
|
81
79
|
maxHeight: "var(--code-block-max-height)",
|
|
82
80
|
"& ::selection": {
|
|
@@ -108,7 +106,9 @@ const codeBlockSlotRecipe = def.defineSlotRecipe({
|
|
|
108
106
|
fontFamily: "mono",
|
|
109
107
|
lineHeight: "tall",
|
|
110
108
|
whiteSpace: "pre",
|
|
111
|
-
counterReset: "line 0"
|
|
109
|
+
counterReset: "line 0",
|
|
110
|
+
overflowX: "auto",
|
|
111
|
+
overflowY: "hidden"
|
|
112
112
|
},
|
|
113
113
|
codeText: {
|
|
114
114
|
px: "var(--code-block-padding)",
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var def = require('../def.cjs');
|
|
5
|
+
|
|
6
|
+
const datePickerSlotRecipe = def.defineSlotRecipe({
|
|
7
|
+
className: "date-picker",
|
|
8
|
+
slots: [
|
|
9
|
+
"clearTrigger",
|
|
10
|
+
"content",
|
|
11
|
+
"control",
|
|
12
|
+
"input",
|
|
13
|
+
"label",
|
|
14
|
+
"monthSelect",
|
|
15
|
+
"nextTrigger",
|
|
16
|
+
"positioner",
|
|
17
|
+
"presetTrigger",
|
|
18
|
+
"prevTrigger",
|
|
19
|
+
"rangeText",
|
|
20
|
+
"root",
|
|
21
|
+
"table",
|
|
22
|
+
"tableBody",
|
|
23
|
+
"tableCell",
|
|
24
|
+
"tableCellTrigger",
|
|
25
|
+
"tableHead",
|
|
26
|
+
"tableHeader",
|
|
27
|
+
"tableRow",
|
|
28
|
+
"trigger",
|
|
29
|
+
"view",
|
|
30
|
+
"viewControl",
|
|
31
|
+
"viewTrigger",
|
|
32
|
+
"yearSelect",
|
|
33
|
+
"view",
|
|
34
|
+
"valueText",
|
|
35
|
+
"indicatorGroup"
|
|
36
|
+
],
|
|
37
|
+
base: {
|
|
38
|
+
root: {
|
|
39
|
+
display: "flex",
|
|
40
|
+
flexDirection: "column",
|
|
41
|
+
gap: "1.5",
|
|
42
|
+
width: "full",
|
|
43
|
+
"--datepicker-indicators-offset": "sizes.3",
|
|
44
|
+
_disabled: {
|
|
45
|
+
opacity: 0.5
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
label: {
|
|
49
|
+
textStyle: "sm",
|
|
50
|
+
fontWeight: "medium"
|
|
51
|
+
},
|
|
52
|
+
indicatorGroup: {
|
|
53
|
+
position: "absolute",
|
|
54
|
+
insetEnd: "var(--datepicker-indicators-offset)",
|
|
55
|
+
top: "50%",
|
|
56
|
+
transform: "translateY(-50%)",
|
|
57
|
+
display: "flex",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
justifyContent: "center",
|
|
60
|
+
gap: "1"
|
|
61
|
+
},
|
|
62
|
+
control: {
|
|
63
|
+
display: "flex",
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
gap: "2",
|
|
66
|
+
width: "full",
|
|
67
|
+
position: "relative"
|
|
68
|
+
},
|
|
69
|
+
input: {
|
|
70
|
+
flex: "1",
|
|
71
|
+
minWidth: "0",
|
|
72
|
+
height: "var(--datepicker-input-height)",
|
|
73
|
+
"--input-height": "var(--datepicker-input-height)",
|
|
74
|
+
px: "var(--datepicker-input-px)",
|
|
75
|
+
textStyle: "sm",
|
|
76
|
+
bg: "transparent",
|
|
77
|
+
borderRadius: "l2",
|
|
78
|
+
outline: "0",
|
|
79
|
+
appearance: "none",
|
|
80
|
+
color: "fg",
|
|
81
|
+
"--focus-color": "colors.colorPalette.focusRing",
|
|
82
|
+
"--error-color": "colors.border.error",
|
|
83
|
+
_placeholder: {
|
|
84
|
+
color: "fg.muted"
|
|
85
|
+
},
|
|
86
|
+
_invalid: {
|
|
87
|
+
focusRingColor: "var(--error-color)",
|
|
88
|
+
borderColor: "var(--error-color)"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
trigger: {
|
|
92
|
+
display: "inline-flex",
|
|
93
|
+
alignItems: "center",
|
|
94
|
+
justifyContent: "center",
|
|
95
|
+
width: "6",
|
|
96
|
+
height: "6",
|
|
97
|
+
borderRadius: "l1",
|
|
98
|
+
color: "fg.muted",
|
|
99
|
+
outline: "none",
|
|
100
|
+
_hover: {
|
|
101
|
+
color: "fg"
|
|
102
|
+
},
|
|
103
|
+
focusVisibleRing: "inside",
|
|
104
|
+
focusRingWidth: "2px",
|
|
105
|
+
_icon: {
|
|
106
|
+
boxSize: "4"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
content: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
flexDirection: "column",
|
|
112
|
+
gap: "3",
|
|
113
|
+
p: "3",
|
|
114
|
+
minW: "18rem",
|
|
115
|
+
bg: "bg.panel",
|
|
116
|
+
borderRadius: "l2",
|
|
117
|
+
boxShadow: "lg",
|
|
118
|
+
color: "fg",
|
|
119
|
+
maxHeight: "var(--available-height)",
|
|
120
|
+
"--date-picker-z-index": "zIndex.popover",
|
|
121
|
+
zIndex: "calc(var(--date-picker-z-index) + var(--layer-index, 0))",
|
|
122
|
+
outline: "none",
|
|
123
|
+
_open: {
|
|
124
|
+
animationStyle: "scale-fade-in",
|
|
125
|
+
animationDuration: "fast"
|
|
126
|
+
},
|
|
127
|
+
_closed: {
|
|
128
|
+
animationStyle: "scale-fade-out",
|
|
129
|
+
animationDuration: "faster"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
view: {
|
|
133
|
+
display: "flex",
|
|
134
|
+
flexDirection: "column",
|
|
135
|
+
gap: "3"
|
|
136
|
+
},
|
|
137
|
+
viewControl: {
|
|
138
|
+
display: "flex",
|
|
139
|
+
alignItems: "center",
|
|
140
|
+
justifyContent: "space-between",
|
|
141
|
+
gap: "2",
|
|
142
|
+
height: "var(--datepicker-nav-trigger-size)"
|
|
143
|
+
},
|
|
144
|
+
viewTrigger: {
|
|
145
|
+
display: "inline-flex",
|
|
146
|
+
flex: "1",
|
|
147
|
+
alignItems: "center",
|
|
148
|
+
justifyContent: "center",
|
|
149
|
+
gap: "1",
|
|
150
|
+
py: "1.5",
|
|
151
|
+
px: "2",
|
|
152
|
+
textStyle: "sm",
|
|
153
|
+
fontWeight: "semibold",
|
|
154
|
+
borderRadius: "l2",
|
|
155
|
+
focusVisibleRing: "inside",
|
|
156
|
+
focusRingWidth: "2px",
|
|
157
|
+
_hover: {
|
|
158
|
+
bg: "colorPalette.subtle"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
prevTrigger: {
|
|
162
|
+
display: "inline-flex",
|
|
163
|
+
alignItems: "center",
|
|
164
|
+
justifyContent: "center",
|
|
165
|
+
boxSize: "var(--datepicker-nav-trigger-size)",
|
|
166
|
+
borderRadius: "l2",
|
|
167
|
+
color: "fg",
|
|
168
|
+
focusVisibleRing: "inside",
|
|
169
|
+
focusRingWidth: "2px",
|
|
170
|
+
_hover: {
|
|
171
|
+
bg: "colorPalette.subtle"
|
|
172
|
+
},
|
|
173
|
+
_focusVisible: {
|
|
174
|
+
boxShadow: "0 0 0 2px var(--colors-color-palette-focus-ring)"
|
|
175
|
+
},
|
|
176
|
+
_disabled: {
|
|
177
|
+
opacity: 0.5
|
|
178
|
+
},
|
|
179
|
+
_icon: {
|
|
180
|
+
boxSize: "4"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
nextTrigger: {
|
|
184
|
+
display: "inline-flex",
|
|
185
|
+
alignItems: "center",
|
|
186
|
+
justifyContent: "center",
|
|
187
|
+
boxSize: "var(--datepicker-nav-trigger-size)",
|
|
188
|
+
borderRadius: "l2",
|
|
189
|
+
color: "fg",
|
|
190
|
+
focusVisibleRing: "inside",
|
|
191
|
+
focusRingWidth: "2px",
|
|
192
|
+
_hover: {
|
|
193
|
+
bg: "colorPalette.subtle"
|
|
194
|
+
},
|
|
195
|
+
_focusVisible: {
|
|
196
|
+
boxShadow: "0 0 0 2px var(--colors-color-palette-focus-ring)"
|
|
197
|
+
},
|
|
198
|
+
_disabled: {
|
|
199
|
+
opacity: 0.5
|
|
200
|
+
},
|
|
201
|
+
_icon: {
|
|
202
|
+
boxSize: "4"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
rangeText: {
|
|
206
|
+
textStyle: "sm",
|
|
207
|
+
fontWeight: "semibold"
|
|
208
|
+
},
|
|
209
|
+
table: {
|
|
210
|
+
borderCollapse: "separate",
|
|
211
|
+
borderSpacing: "0"
|
|
212
|
+
},
|
|
213
|
+
tableHeader: {
|
|
214
|
+
width: "var(--table-cell-size)",
|
|
215
|
+
py: "2",
|
|
216
|
+
textStyle: "xs",
|
|
217
|
+
fontWeight: "medium",
|
|
218
|
+
color: "fg.muted",
|
|
219
|
+
textAlign: "center",
|
|
220
|
+
textTransform: "uppercase",
|
|
221
|
+
"&[data-type='week-number']": {
|
|
222
|
+
color: "fg.subtle"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
tableCell: {
|
|
226
|
+
py: "0.5",
|
|
227
|
+
"&[data-type='week-number']": {
|
|
228
|
+
color: "fg.subtle"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
tableCellTrigger: {
|
|
232
|
+
display: "inline-flex",
|
|
233
|
+
alignItems: "center",
|
|
234
|
+
justifyContent: "center",
|
|
235
|
+
minWidth: "var(--table-cell-size)",
|
|
236
|
+
minHeight: "var(--table-cell-size)",
|
|
237
|
+
textStyle: "sm",
|
|
238
|
+
borderRadius: "l2",
|
|
239
|
+
focusVisibleRing: "inside",
|
|
240
|
+
focusRingWidth: "2px",
|
|
241
|
+
focusRingOffset: "0px",
|
|
242
|
+
cursor: "default",
|
|
243
|
+
position: "relative",
|
|
244
|
+
_hover: {
|
|
245
|
+
bg: "colorPalette.subtle"
|
|
246
|
+
},
|
|
247
|
+
"[data-view=month] &, [data-view=year] &": {
|
|
248
|
+
width: "calc(var(--table-cell-size) * 1.75)"
|
|
249
|
+
},
|
|
250
|
+
_today: {
|
|
251
|
+
color: "colorPalette.fg",
|
|
252
|
+
fontWeight: "semibold",
|
|
253
|
+
textDecoration: "underline",
|
|
254
|
+
textUnderlineOffset: "3px",
|
|
255
|
+
textDecorationThickness: "2px"
|
|
256
|
+
},
|
|
257
|
+
_selected: {
|
|
258
|
+
bg: "colorPalette.solid",
|
|
259
|
+
color: "colorPalette.contrast",
|
|
260
|
+
_hover: {
|
|
261
|
+
bg: "colorPalette.solid"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"&[data-in-range]": {
|
|
265
|
+
bg: "colorPalette.subtle",
|
|
266
|
+
color: "colorPalette.fg",
|
|
267
|
+
borderRadius: "0",
|
|
268
|
+
_hover: {
|
|
269
|
+
bg: "colorPalette.subtle"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"&[data-range-start]": {
|
|
273
|
+
bg: "colorPalette.solid",
|
|
274
|
+
color: "colorPalette.contrast",
|
|
275
|
+
borderRadius: "0",
|
|
276
|
+
borderStartRadius: "l2",
|
|
277
|
+
_hover: {
|
|
278
|
+
bg: "colorPalette.solid"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"&[data-range-end]": {
|
|
282
|
+
bg: "colorPalette.solid",
|
|
283
|
+
color: "colorPalette.contrast",
|
|
284
|
+
borderRadius: "0",
|
|
285
|
+
borderEndRadius: "l2",
|
|
286
|
+
_hover: {
|
|
287
|
+
bg: "colorPalette.solid"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"&[data-range-start][data-range-end]": {
|
|
291
|
+
borderRadius: "l2"
|
|
292
|
+
},
|
|
293
|
+
"&[data-selected][data-in-range]": {
|
|
294
|
+
bg: "colorPalette.solid",
|
|
295
|
+
color: "colorPalette.contrast",
|
|
296
|
+
borderRadius: "l2",
|
|
297
|
+
_hover: {
|
|
298
|
+
bg: "colorPalette.solid"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
_disabled: {
|
|
302
|
+
opacity: 0.4
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
monthSelect: {
|
|
306
|
+
height: "var(--datepicker-select-height)",
|
|
307
|
+
ps: "2",
|
|
308
|
+
pe: "8",
|
|
309
|
+
textStyle: "sm",
|
|
310
|
+
borderWidth: "1px",
|
|
311
|
+
borderRadius: "l2",
|
|
312
|
+
outline: "none",
|
|
313
|
+
focusVisibleRing: "inside",
|
|
314
|
+
appearance: "none",
|
|
315
|
+
fieldSizing: "content",
|
|
316
|
+
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,
|
|
317
|
+
backgroundRepeat: "no-repeat",
|
|
318
|
+
backgroundPosition: "right 0.375rem center",
|
|
319
|
+
backgroundSize: "1.25em"
|
|
320
|
+
},
|
|
321
|
+
yearSelect: {
|
|
322
|
+
height: "var(--datepicker-select-height)",
|
|
323
|
+
ps: "2",
|
|
324
|
+
pe: "8",
|
|
325
|
+
textStyle: "sm",
|
|
326
|
+
borderWidth: "1px",
|
|
327
|
+
borderRadius: "l2",
|
|
328
|
+
outline: "none",
|
|
329
|
+
focusVisibleRing: "inside",
|
|
330
|
+
appearance: "none",
|
|
331
|
+
fieldSizing: "content",
|
|
332
|
+
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,
|
|
333
|
+
backgroundRepeat: "no-repeat",
|
|
334
|
+
backgroundPosition: "right 0.375rem center",
|
|
335
|
+
backgroundSize: "1.25em"
|
|
336
|
+
},
|
|
337
|
+
clearTrigger: {
|
|
338
|
+
display: "inline-flex",
|
|
339
|
+
alignItems: "center",
|
|
340
|
+
justifyContent: "center",
|
|
341
|
+
width: "6",
|
|
342
|
+
height: "6",
|
|
343
|
+
flexShrink: 0,
|
|
344
|
+
textStyle: "xs",
|
|
345
|
+
borderRadius: "l2",
|
|
346
|
+
color: "fg.muted",
|
|
347
|
+
_hover: {
|
|
348
|
+
color: "fg"
|
|
349
|
+
},
|
|
350
|
+
focusVisibleRing: "inside",
|
|
351
|
+
_icon: {
|
|
352
|
+
width: "4",
|
|
353
|
+
height: "4"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
variants: {
|
|
358
|
+
size: {
|
|
359
|
+
xs: {
|
|
360
|
+
root: {
|
|
361
|
+
"--datepicker-input-height": "sizes.8",
|
|
362
|
+
"--datepicker-input-px": "sizes.2",
|
|
363
|
+
"--datepicker-indicators-offset": "sizes.2"
|
|
364
|
+
},
|
|
365
|
+
view: {
|
|
366
|
+
"--table-cell-size": "sizes.8",
|
|
367
|
+
"--datepicker-nav-trigger-size": "sizes.7",
|
|
368
|
+
"--datepicker-select-height": "sizes.8"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
sm: {
|
|
372
|
+
root: {
|
|
373
|
+
"--datepicker-input-height": "sizes.9",
|
|
374
|
+
"--datepicker-input-px": "sizes.2.5",
|
|
375
|
+
"--datepicker-indicators-offset": "sizes.2.5"
|
|
376
|
+
},
|
|
377
|
+
view: {
|
|
378
|
+
"--table-cell-size": "sizes.9",
|
|
379
|
+
"--datepicker-nav-trigger-size": "sizes.8",
|
|
380
|
+
"--datepicker-select-height": "sizes.9"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
md: {
|
|
384
|
+
root: {
|
|
385
|
+
"--datepicker-input-height": "sizes.10",
|
|
386
|
+
"--datepicker-input-px": "sizes.3"
|
|
387
|
+
},
|
|
388
|
+
view: {
|
|
389
|
+
"--table-cell-size": "sizes.10",
|
|
390
|
+
"--datepicker-nav-trigger-size": "sizes.8",
|
|
391
|
+
"--datepicker-select-height": "sizes.10"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
lg: {
|
|
395
|
+
root: {
|
|
396
|
+
"--datepicker-input-height": "sizes.11",
|
|
397
|
+
"--datepicker-input-px": "sizes.4"
|
|
398
|
+
},
|
|
399
|
+
view: {
|
|
400
|
+
"--table-cell-size": "sizes.10",
|
|
401
|
+
"--datepicker-nav-trigger-size": "sizes.9",
|
|
402
|
+
"--datepicker-select-height": "sizes.10"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
xl: {
|
|
406
|
+
root: {
|
|
407
|
+
"--datepicker-input-height": "sizes.12",
|
|
408
|
+
"--datepicker-input-px": "sizes.4.5"
|
|
409
|
+
},
|
|
410
|
+
view: {
|
|
411
|
+
"--table-cell-size": "sizes.10",
|
|
412
|
+
"--datepicker-nav-trigger-size": "sizes.9",
|
|
413
|
+
"--datepicker-select-height": "sizes.10"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
hideOutsideDays: {
|
|
418
|
+
true: {
|
|
419
|
+
tableCellTrigger: {
|
|
420
|
+
"&[data-outside-range]": {
|
|
421
|
+
visibility: "hidden"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
variant: {
|
|
427
|
+
outline: {
|
|
428
|
+
input: {
|
|
429
|
+
bg: "transparent",
|
|
430
|
+
borderWidth: "1px",
|
|
431
|
+
borderColor: "border",
|
|
432
|
+
focusVisibleRing: "inside",
|
|
433
|
+
focusRingColor: "var(--focus-color)"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
subtle: {
|
|
437
|
+
input: {
|
|
438
|
+
borderWidth: "1px",
|
|
439
|
+
borderColor: "transparent",
|
|
440
|
+
bg: "bg.muted",
|
|
441
|
+
focusVisibleRing: "inside",
|
|
442
|
+
focusRingColor: "var(--focus-color)"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
flushed: {
|
|
446
|
+
input: {
|
|
447
|
+
bg: "transparent",
|
|
448
|
+
borderBottomWidth: "1px",
|
|
449
|
+
borderBottomColor: "border",
|
|
450
|
+
borderRadius: "0",
|
|
451
|
+
px: "0",
|
|
452
|
+
_focusVisible: {
|
|
453
|
+
borderColor: "var(--focus-color)",
|
|
454
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)",
|
|
455
|
+
_invalid: {
|
|
456
|
+
borderColor: "var(--error-color)",
|
|
457
|
+
boxShadow: "0px 1px 0px 0px var(--error-color)"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
indicatorGroup: {
|
|
462
|
+
insetEnd: "0"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
defaultVariants: {
|
|
468
|
+
size: "md",
|
|
469
|
+
variant: "outline"
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
exports.datePickerSlotRecipe = datePickerSlotRecipe;
|
|
@@ -16,6 +16,7 @@ var collapsible = require('./collapsible.cjs');
|
|
|
16
16
|
var colorPicker = require('./color-picker.cjs');
|
|
17
17
|
var combobox = require('./combobox.cjs');
|
|
18
18
|
var dataList = require('./data-list.cjs');
|
|
19
|
+
var datePicker = require('./date-picker.cjs');
|
|
19
20
|
var dialog = require('./dialog.cjs');
|
|
20
21
|
var drawer = require('./drawer.cjs');
|
|
21
22
|
var editable = require('./editable.cjs');
|
|
@@ -70,6 +71,7 @@ const slotRecipes = {
|
|
|
70
71
|
codeBlock: codeBlock.codeBlockSlotRecipe,
|
|
71
72
|
collapsible: collapsible.collapsibleSlotRecipe,
|
|
72
73
|
dataList: dataList.dataListSlotRecipe,
|
|
74
|
+
datePicker: datePicker.datePickerSlotRecipe,
|
|
73
75
|
dialog: dialog.dialogSlotRecipe,
|
|
74
76
|
drawer: drawer.drawerSlotRecipe,
|
|
75
77
|
editable: editable.editableSlotRecipe,
|
|
@@ -73,8 +73,6 @@ const codeBlockSlotRecipe = defineSlotRecipe({
|
|
|
73
73
|
content: {
|
|
74
74
|
position: "relative",
|
|
75
75
|
colorScheme: "dark",
|
|
76
|
-
overflowX: "auto",
|
|
77
|
-
overflowY: "hidden",
|
|
78
76
|
borderBottomRadius: "var(--code-block-radius)",
|
|
79
77
|
maxHeight: "var(--code-block-max-height)",
|
|
80
78
|
"& ::selection": {
|
|
@@ -106,7 +104,9 @@ const codeBlockSlotRecipe = defineSlotRecipe({
|
|
|
106
104
|
fontFamily: "mono",
|
|
107
105
|
lineHeight: "tall",
|
|
108
106
|
whiteSpace: "pre",
|
|
109
|
-
counterReset: "line 0"
|
|
107
|
+
counterReset: "line 0",
|
|
108
|
+
overflowX: "auto",
|
|
109
|
+
overflowY: "hidden"
|
|
110
110
|
},
|
|
111
111
|
codeText: {
|
|
112
112
|
px: "var(--code-block-padding)",
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import { defineSlotRecipe } from '../def.js';
|
|
3
|
+
|
|
4
|
+
const datePickerSlotRecipe = defineSlotRecipe({
|
|
5
|
+
className: "date-picker",
|
|
6
|
+
slots: [
|
|
7
|
+
"clearTrigger",
|
|
8
|
+
"content",
|
|
9
|
+
"control",
|
|
10
|
+
"input",
|
|
11
|
+
"label",
|
|
12
|
+
"monthSelect",
|
|
13
|
+
"nextTrigger",
|
|
14
|
+
"positioner",
|
|
15
|
+
"presetTrigger",
|
|
16
|
+
"prevTrigger",
|
|
17
|
+
"rangeText",
|
|
18
|
+
"root",
|
|
19
|
+
"table",
|
|
20
|
+
"tableBody",
|
|
21
|
+
"tableCell",
|
|
22
|
+
"tableCellTrigger",
|
|
23
|
+
"tableHead",
|
|
24
|
+
"tableHeader",
|
|
25
|
+
"tableRow",
|
|
26
|
+
"trigger",
|
|
27
|
+
"view",
|
|
28
|
+
"viewControl",
|
|
29
|
+
"viewTrigger",
|
|
30
|
+
"yearSelect",
|
|
31
|
+
"view",
|
|
32
|
+
"valueText",
|
|
33
|
+
"indicatorGroup"
|
|
34
|
+
],
|
|
35
|
+
base: {
|
|
36
|
+
root: {
|
|
37
|
+
display: "flex",
|
|
38
|
+
flexDirection: "column",
|
|
39
|
+
gap: "1.5",
|
|
40
|
+
width: "full",
|
|
41
|
+
"--datepicker-indicators-offset": "sizes.3",
|
|
42
|
+
_disabled: {
|
|
43
|
+
opacity: 0.5
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
label: {
|
|
47
|
+
textStyle: "sm",
|
|
48
|
+
fontWeight: "medium"
|
|
49
|
+
},
|
|
50
|
+
indicatorGroup: {
|
|
51
|
+
position: "absolute",
|
|
52
|
+
insetEnd: "var(--datepicker-indicators-offset)",
|
|
53
|
+
top: "50%",
|
|
54
|
+
transform: "translateY(-50%)",
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
justifyContent: "center",
|
|
58
|
+
gap: "1"
|
|
59
|
+
},
|
|
60
|
+
control: {
|
|
61
|
+
display: "flex",
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
gap: "2",
|
|
64
|
+
width: "full",
|
|
65
|
+
position: "relative"
|
|
66
|
+
},
|
|
67
|
+
input: {
|
|
68
|
+
flex: "1",
|
|
69
|
+
minWidth: "0",
|
|
70
|
+
height: "var(--datepicker-input-height)",
|
|
71
|
+
"--input-height": "var(--datepicker-input-height)",
|
|
72
|
+
px: "var(--datepicker-input-px)",
|
|
73
|
+
textStyle: "sm",
|
|
74
|
+
bg: "transparent",
|
|
75
|
+
borderRadius: "l2",
|
|
76
|
+
outline: "0",
|
|
77
|
+
appearance: "none",
|
|
78
|
+
color: "fg",
|
|
79
|
+
"--focus-color": "colors.colorPalette.focusRing",
|
|
80
|
+
"--error-color": "colors.border.error",
|
|
81
|
+
_placeholder: {
|
|
82
|
+
color: "fg.muted"
|
|
83
|
+
},
|
|
84
|
+
_invalid: {
|
|
85
|
+
focusRingColor: "var(--error-color)",
|
|
86
|
+
borderColor: "var(--error-color)"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
trigger: {
|
|
90
|
+
display: "inline-flex",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "center",
|
|
93
|
+
width: "6",
|
|
94
|
+
height: "6",
|
|
95
|
+
borderRadius: "l1",
|
|
96
|
+
color: "fg.muted",
|
|
97
|
+
outline: "none",
|
|
98
|
+
_hover: {
|
|
99
|
+
color: "fg"
|
|
100
|
+
},
|
|
101
|
+
focusVisibleRing: "inside",
|
|
102
|
+
focusRingWidth: "2px",
|
|
103
|
+
_icon: {
|
|
104
|
+
boxSize: "4"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
content: {
|
|
108
|
+
display: "flex",
|
|
109
|
+
flexDirection: "column",
|
|
110
|
+
gap: "3",
|
|
111
|
+
p: "3",
|
|
112
|
+
minW: "18rem",
|
|
113
|
+
bg: "bg.panel",
|
|
114
|
+
borderRadius: "l2",
|
|
115
|
+
boxShadow: "lg",
|
|
116
|
+
color: "fg",
|
|
117
|
+
maxHeight: "var(--available-height)",
|
|
118
|
+
"--date-picker-z-index": "zIndex.popover",
|
|
119
|
+
zIndex: "calc(var(--date-picker-z-index) + var(--layer-index, 0))",
|
|
120
|
+
outline: "none",
|
|
121
|
+
_open: {
|
|
122
|
+
animationStyle: "scale-fade-in",
|
|
123
|
+
animationDuration: "fast"
|
|
124
|
+
},
|
|
125
|
+
_closed: {
|
|
126
|
+
animationStyle: "scale-fade-out",
|
|
127
|
+
animationDuration: "faster"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
view: {
|
|
131
|
+
display: "flex",
|
|
132
|
+
flexDirection: "column",
|
|
133
|
+
gap: "3"
|
|
134
|
+
},
|
|
135
|
+
viewControl: {
|
|
136
|
+
display: "flex",
|
|
137
|
+
alignItems: "center",
|
|
138
|
+
justifyContent: "space-between",
|
|
139
|
+
gap: "2",
|
|
140
|
+
height: "var(--datepicker-nav-trigger-size)"
|
|
141
|
+
},
|
|
142
|
+
viewTrigger: {
|
|
143
|
+
display: "inline-flex",
|
|
144
|
+
flex: "1",
|
|
145
|
+
alignItems: "center",
|
|
146
|
+
justifyContent: "center",
|
|
147
|
+
gap: "1",
|
|
148
|
+
py: "1.5",
|
|
149
|
+
px: "2",
|
|
150
|
+
textStyle: "sm",
|
|
151
|
+
fontWeight: "semibold",
|
|
152
|
+
borderRadius: "l2",
|
|
153
|
+
focusVisibleRing: "inside",
|
|
154
|
+
focusRingWidth: "2px",
|
|
155
|
+
_hover: {
|
|
156
|
+
bg: "colorPalette.subtle"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
prevTrigger: {
|
|
160
|
+
display: "inline-flex",
|
|
161
|
+
alignItems: "center",
|
|
162
|
+
justifyContent: "center",
|
|
163
|
+
boxSize: "var(--datepicker-nav-trigger-size)",
|
|
164
|
+
borderRadius: "l2",
|
|
165
|
+
color: "fg",
|
|
166
|
+
focusVisibleRing: "inside",
|
|
167
|
+
focusRingWidth: "2px",
|
|
168
|
+
_hover: {
|
|
169
|
+
bg: "colorPalette.subtle"
|
|
170
|
+
},
|
|
171
|
+
_focusVisible: {
|
|
172
|
+
boxShadow: "0 0 0 2px var(--colors-color-palette-focus-ring)"
|
|
173
|
+
},
|
|
174
|
+
_disabled: {
|
|
175
|
+
opacity: 0.5
|
|
176
|
+
},
|
|
177
|
+
_icon: {
|
|
178
|
+
boxSize: "4"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
nextTrigger: {
|
|
182
|
+
display: "inline-flex",
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
justifyContent: "center",
|
|
185
|
+
boxSize: "var(--datepicker-nav-trigger-size)",
|
|
186
|
+
borderRadius: "l2",
|
|
187
|
+
color: "fg",
|
|
188
|
+
focusVisibleRing: "inside",
|
|
189
|
+
focusRingWidth: "2px",
|
|
190
|
+
_hover: {
|
|
191
|
+
bg: "colorPalette.subtle"
|
|
192
|
+
},
|
|
193
|
+
_focusVisible: {
|
|
194
|
+
boxShadow: "0 0 0 2px var(--colors-color-palette-focus-ring)"
|
|
195
|
+
},
|
|
196
|
+
_disabled: {
|
|
197
|
+
opacity: 0.5
|
|
198
|
+
},
|
|
199
|
+
_icon: {
|
|
200
|
+
boxSize: "4"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
rangeText: {
|
|
204
|
+
textStyle: "sm",
|
|
205
|
+
fontWeight: "semibold"
|
|
206
|
+
},
|
|
207
|
+
table: {
|
|
208
|
+
borderCollapse: "separate",
|
|
209
|
+
borderSpacing: "0"
|
|
210
|
+
},
|
|
211
|
+
tableHeader: {
|
|
212
|
+
width: "var(--table-cell-size)",
|
|
213
|
+
py: "2",
|
|
214
|
+
textStyle: "xs",
|
|
215
|
+
fontWeight: "medium",
|
|
216
|
+
color: "fg.muted",
|
|
217
|
+
textAlign: "center",
|
|
218
|
+
textTransform: "uppercase",
|
|
219
|
+
"&[data-type='week-number']": {
|
|
220
|
+
color: "fg.subtle"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
tableCell: {
|
|
224
|
+
py: "0.5",
|
|
225
|
+
"&[data-type='week-number']": {
|
|
226
|
+
color: "fg.subtle"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
tableCellTrigger: {
|
|
230
|
+
display: "inline-flex",
|
|
231
|
+
alignItems: "center",
|
|
232
|
+
justifyContent: "center",
|
|
233
|
+
minWidth: "var(--table-cell-size)",
|
|
234
|
+
minHeight: "var(--table-cell-size)",
|
|
235
|
+
textStyle: "sm",
|
|
236
|
+
borderRadius: "l2",
|
|
237
|
+
focusVisibleRing: "inside",
|
|
238
|
+
focusRingWidth: "2px",
|
|
239
|
+
focusRingOffset: "0px",
|
|
240
|
+
cursor: "default",
|
|
241
|
+
position: "relative",
|
|
242
|
+
_hover: {
|
|
243
|
+
bg: "colorPalette.subtle"
|
|
244
|
+
},
|
|
245
|
+
"[data-view=month] &, [data-view=year] &": {
|
|
246
|
+
width: "calc(var(--table-cell-size) * 1.75)"
|
|
247
|
+
},
|
|
248
|
+
_today: {
|
|
249
|
+
color: "colorPalette.fg",
|
|
250
|
+
fontWeight: "semibold",
|
|
251
|
+
textDecoration: "underline",
|
|
252
|
+
textUnderlineOffset: "3px",
|
|
253
|
+
textDecorationThickness: "2px"
|
|
254
|
+
},
|
|
255
|
+
_selected: {
|
|
256
|
+
bg: "colorPalette.solid",
|
|
257
|
+
color: "colorPalette.contrast",
|
|
258
|
+
_hover: {
|
|
259
|
+
bg: "colorPalette.solid"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"&[data-in-range]": {
|
|
263
|
+
bg: "colorPalette.subtle",
|
|
264
|
+
color: "colorPalette.fg",
|
|
265
|
+
borderRadius: "0",
|
|
266
|
+
_hover: {
|
|
267
|
+
bg: "colorPalette.subtle"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"&[data-range-start]": {
|
|
271
|
+
bg: "colorPalette.solid",
|
|
272
|
+
color: "colorPalette.contrast",
|
|
273
|
+
borderRadius: "0",
|
|
274
|
+
borderStartRadius: "l2",
|
|
275
|
+
_hover: {
|
|
276
|
+
bg: "colorPalette.solid"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"&[data-range-end]": {
|
|
280
|
+
bg: "colorPalette.solid",
|
|
281
|
+
color: "colorPalette.contrast",
|
|
282
|
+
borderRadius: "0",
|
|
283
|
+
borderEndRadius: "l2",
|
|
284
|
+
_hover: {
|
|
285
|
+
bg: "colorPalette.solid"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"&[data-range-start][data-range-end]": {
|
|
289
|
+
borderRadius: "l2"
|
|
290
|
+
},
|
|
291
|
+
"&[data-selected][data-in-range]": {
|
|
292
|
+
bg: "colorPalette.solid",
|
|
293
|
+
color: "colorPalette.contrast",
|
|
294
|
+
borderRadius: "l2",
|
|
295
|
+
_hover: {
|
|
296
|
+
bg: "colorPalette.solid"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
_disabled: {
|
|
300
|
+
opacity: 0.4
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
monthSelect: {
|
|
304
|
+
height: "var(--datepicker-select-height)",
|
|
305
|
+
ps: "2",
|
|
306
|
+
pe: "8",
|
|
307
|
+
textStyle: "sm",
|
|
308
|
+
borderWidth: "1px",
|
|
309
|
+
borderRadius: "l2",
|
|
310
|
+
outline: "none",
|
|
311
|
+
focusVisibleRing: "inside",
|
|
312
|
+
appearance: "none",
|
|
313
|
+
fieldSizing: "content",
|
|
314
|
+
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,
|
|
315
|
+
backgroundRepeat: "no-repeat",
|
|
316
|
+
backgroundPosition: "right 0.375rem center",
|
|
317
|
+
backgroundSize: "1.25em"
|
|
318
|
+
},
|
|
319
|
+
yearSelect: {
|
|
320
|
+
height: "var(--datepicker-select-height)",
|
|
321
|
+
ps: "2",
|
|
322
|
+
pe: "8",
|
|
323
|
+
textStyle: "sm",
|
|
324
|
+
borderWidth: "1px",
|
|
325
|
+
borderRadius: "l2",
|
|
326
|
+
outline: "none",
|
|
327
|
+
focusVisibleRing: "inside",
|
|
328
|
+
appearance: "none",
|
|
329
|
+
fieldSizing: "content",
|
|
330
|
+
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`,
|
|
331
|
+
backgroundRepeat: "no-repeat",
|
|
332
|
+
backgroundPosition: "right 0.375rem center",
|
|
333
|
+
backgroundSize: "1.25em"
|
|
334
|
+
},
|
|
335
|
+
clearTrigger: {
|
|
336
|
+
display: "inline-flex",
|
|
337
|
+
alignItems: "center",
|
|
338
|
+
justifyContent: "center",
|
|
339
|
+
width: "6",
|
|
340
|
+
height: "6",
|
|
341
|
+
flexShrink: 0,
|
|
342
|
+
textStyle: "xs",
|
|
343
|
+
borderRadius: "l2",
|
|
344
|
+
color: "fg.muted",
|
|
345
|
+
_hover: {
|
|
346
|
+
color: "fg"
|
|
347
|
+
},
|
|
348
|
+
focusVisibleRing: "inside",
|
|
349
|
+
_icon: {
|
|
350
|
+
width: "4",
|
|
351
|
+
height: "4"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
variants: {
|
|
356
|
+
size: {
|
|
357
|
+
xs: {
|
|
358
|
+
root: {
|
|
359
|
+
"--datepicker-input-height": "sizes.8",
|
|
360
|
+
"--datepicker-input-px": "sizes.2",
|
|
361
|
+
"--datepicker-indicators-offset": "sizes.2"
|
|
362
|
+
},
|
|
363
|
+
view: {
|
|
364
|
+
"--table-cell-size": "sizes.8",
|
|
365
|
+
"--datepicker-nav-trigger-size": "sizes.7",
|
|
366
|
+
"--datepicker-select-height": "sizes.8"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
sm: {
|
|
370
|
+
root: {
|
|
371
|
+
"--datepicker-input-height": "sizes.9",
|
|
372
|
+
"--datepicker-input-px": "sizes.2.5",
|
|
373
|
+
"--datepicker-indicators-offset": "sizes.2.5"
|
|
374
|
+
},
|
|
375
|
+
view: {
|
|
376
|
+
"--table-cell-size": "sizes.9",
|
|
377
|
+
"--datepicker-nav-trigger-size": "sizes.8",
|
|
378
|
+
"--datepicker-select-height": "sizes.9"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
md: {
|
|
382
|
+
root: {
|
|
383
|
+
"--datepicker-input-height": "sizes.10",
|
|
384
|
+
"--datepicker-input-px": "sizes.3"
|
|
385
|
+
},
|
|
386
|
+
view: {
|
|
387
|
+
"--table-cell-size": "sizes.10",
|
|
388
|
+
"--datepicker-nav-trigger-size": "sizes.8",
|
|
389
|
+
"--datepicker-select-height": "sizes.10"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
lg: {
|
|
393
|
+
root: {
|
|
394
|
+
"--datepicker-input-height": "sizes.11",
|
|
395
|
+
"--datepicker-input-px": "sizes.4"
|
|
396
|
+
},
|
|
397
|
+
view: {
|
|
398
|
+
"--table-cell-size": "sizes.10",
|
|
399
|
+
"--datepicker-nav-trigger-size": "sizes.9",
|
|
400
|
+
"--datepicker-select-height": "sizes.10"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
xl: {
|
|
404
|
+
root: {
|
|
405
|
+
"--datepicker-input-height": "sizes.12",
|
|
406
|
+
"--datepicker-input-px": "sizes.4.5"
|
|
407
|
+
},
|
|
408
|
+
view: {
|
|
409
|
+
"--table-cell-size": "sizes.10",
|
|
410
|
+
"--datepicker-nav-trigger-size": "sizes.9",
|
|
411
|
+
"--datepicker-select-height": "sizes.10"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
hideOutsideDays: {
|
|
416
|
+
true: {
|
|
417
|
+
tableCellTrigger: {
|
|
418
|
+
"&[data-outside-range]": {
|
|
419
|
+
visibility: "hidden"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
variant: {
|
|
425
|
+
outline: {
|
|
426
|
+
input: {
|
|
427
|
+
bg: "transparent",
|
|
428
|
+
borderWidth: "1px",
|
|
429
|
+
borderColor: "border",
|
|
430
|
+
focusVisibleRing: "inside",
|
|
431
|
+
focusRingColor: "var(--focus-color)"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
subtle: {
|
|
435
|
+
input: {
|
|
436
|
+
borderWidth: "1px",
|
|
437
|
+
borderColor: "transparent",
|
|
438
|
+
bg: "bg.muted",
|
|
439
|
+
focusVisibleRing: "inside",
|
|
440
|
+
focusRingColor: "var(--focus-color)"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
flushed: {
|
|
444
|
+
input: {
|
|
445
|
+
bg: "transparent",
|
|
446
|
+
borderBottomWidth: "1px",
|
|
447
|
+
borderBottomColor: "border",
|
|
448
|
+
borderRadius: "0",
|
|
449
|
+
px: "0",
|
|
450
|
+
_focusVisible: {
|
|
451
|
+
borderColor: "var(--focus-color)",
|
|
452
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)",
|
|
453
|
+
_invalid: {
|
|
454
|
+
borderColor: "var(--error-color)",
|
|
455
|
+
boxShadow: "0px 1px 0px 0px var(--error-color)"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
indicatorGroup: {
|
|
460
|
+
insetEnd: "0"
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
defaultVariants: {
|
|
466
|
+
size: "md",
|
|
467
|
+
variant: "outline"
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
export { datePickerSlotRecipe };
|
|
@@ -14,6 +14,7 @@ import { collapsibleSlotRecipe } from './collapsible.js';
|
|
|
14
14
|
import { colorPickerSlotRecipe } from './color-picker.js';
|
|
15
15
|
import { comboboxSlotRecipe } from './combobox.js';
|
|
16
16
|
import { dataListSlotRecipe } from './data-list.js';
|
|
17
|
+
import { datePickerSlotRecipe } from './date-picker.js';
|
|
17
18
|
import { dialogSlotRecipe } from './dialog.js';
|
|
18
19
|
import { drawerSlotRecipe } from './drawer.js';
|
|
19
20
|
import { editableSlotRecipe } from './editable.js';
|
|
@@ -68,6 +69,7 @@ const slotRecipes = {
|
|
|
68
69
|
codeBlock: codeBlockSlotRecipe,
|
|
69
70
|
collapsible: collapsibleSlotRecipe,
|
|
70
71
|
dataList: dataListSlotRecipe,
|
|
72
|
+
datePicker: datePickerSlotRecipe,
|
|
71
73
|
dialog: dialogSlotRecipe,
|
|
72
74
|
drawer: drawerSlotRecipe,
|
|
73
75
|
editable: editableSlotRecipe,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const datePickerSlotRecipe: import("@pandacss/types").SlotRecipeConfig;
|
|
@@ -12,6 +12,7 @@ export declare const slotRecipes: {
|
|
|
12
12
|
codeBlock: import("@pandacss/types").SlotRecipeConfig;
|
|
13
13
|
collapsible: import("@pandacss/types").SlotRecipeConfig;
|
|
14
14
|
dataList: import("@pandacss/types").SlotRecipeConfig;
|
|
15
|
+
datePicker: import("@pandacss/types").SlotRecipeConfig;
|
|
15
16
|
dialog: import("@pandacss/types").SlotRecipeConfig;
|
|
16
17
|
drawer: import("@pandacss/types").SlotRecipeConfig;
|
|
17
18
|
editable: 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.34.0",
|
|
4
4
|
"description": "Panda preset for Chakra UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.cjs",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"globby": "14.1.0",
|
|
52
|
-
"@chakra-ui/cli": "3.
|
|
52
|
+
"@chakra-ui/cli": "3.34.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"theme:eject": "chakra eject --outdir=src",
|