@pandacss/eslint-plugin 0.0.0-dev-20240127113011

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.
@@ -0,0 +1,3487 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/utils/worker.ts
31
+ var worker_exports = {};
32
+ __export(worker_exports, {
33
+ getContext: () => getContext,
34
+ run: () => run,
35
+ runAsync: () => runAsync
36
+ });
37
+ module.exports = __toCommonJS(worker_exports);
38
+ var import_node2 = require("@pandacss/node");
39
+ var import_synckit = require("synckit");
40
+
41
+ // ../node_modules/.pnpm/@pandacss+preset-base@0.28.0/node_modules/@pandacss/preset-base/dist/index.mjs
42
+ var conditions = {
43
+ hover: "&:is(:hover, [data-hover])",
44
+ focus: "&:is(:focus, [data-focus])",
45
+ focusWithin: "&:focus-within",
46
+ focusVisible: "&:is(:focus-visible, [data-focus-visible])",
47
+ disabled: "&:is(:disabled, [disabled], [data-disabled])",
48
+ active: "&:is(:active, [data-active])",
49
+ visited: "&:visited",
50
+ target: "&:target",
51
+ readOnly: "&:is(:read-only, [data-read-only])",
52
+ readWrite: "&:read-write",
53
+ empty: "&:is(:empty, [data-empty])",
54
+ checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])',
55
+ enabled: "&:enabled",
56
+ expanded: '&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])',
57
+ highlighted: "&[data-highlighted]",
58
+ before: "&::before",
59
+ after: "&::after",
60
+ firstLetter: "&::first-letter",
61
+ firstLine: "&::first-line",
62
+ marker: "&::marker",
63
+ selection: "&::selection",
64
+ file: "&::file-selector-button",
65
+ backdrop: "&::backdrop",
66
+ first: "&:first-child",
67
+ last: "&:last-child",
68
+ only: "&:only-child",
69
+ even: "&:nth-child(even)",
70
+ odd: "&:nth-child(odd)",
71
+ firstOfType: "&:first-of-type",
72
+ lastOfType: "&:last-of-type",
73
+ onlyOfType: "&:only-of-type",
74
+ peerFocus: ".peer:is(:focus, [data-focus]) ~ &",
75
+ peerHover: ".peer:is(:hover, [data-hover]) ~ &",
76
+ peerActive: ".peer:is(:active, [data-active]) ~ &",
77
+ peerFocusWithin: ".peer:focus-within ~ &",
78
+ peerFocusVisible: ".peer:is(:focus-visible, [data-focus-visible]) ~ &",
79
+ peerDisabled: ".peer:is(:disabled, [disabled], [data-disabled]) ~ &",
80
+ peerChecked: '.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &',
81
+ peerInvalid: ".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",
82
+ peerExpanded: '.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &',
83
+ peerPlaceholderShown: ".peer:placeholder-shown ~ &",
84
+ groupFocus: ".group:is(:focus, [data-focus]) &",
85
+ groupHover: ".group:is(:hover, [data-hover]) &",
86
+ groupActive: ".group:is(:active, [data-active]) &",
87
+ groupFocusWithin: ".group:focus-within &",
88
+ groupFocusVisible: ".group:is(:focus-visible, [data-focus-visible]) &",
89
+ groupDisabled: ".group:is(:disabled, [disabled], [data-disabled]) &",
90
+ groupChecked: '.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &',
91
+ groupExpanded: '.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &',
92
+ groupInvalid: ".group:invalid &",
93
+ indeterminate: '&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])',
94
+ required: "&:is(:required, [data-required], [aria-required=true])",
95
+ valid: "&:is(:valid, [data-valid])",
96
+ invalid: "&:is(:invalid, [data-invalid])",
97
+ autofill: "&:autofill",
98
+ inRange: "&:in-range",
99
+ outOfRange: "&:out-of-range",
100
+ placeholder: "&::placeholder, &[data-placeholder]",
101
+ placeholderShown: "&:is(:placeholder-shown, [data-placeholder-shown])",
102
+ pressed: "&:is([aria-pressed=true], [data-pressed])",
103
+ selected: "&:is([aria-selected=true], [data-selected])",
104
+ default: "&:default",
105
+ optional: "&:optional",
106
+ open: '&:is([open], [data-open], [data-state="open"])',
107
+ closed: '&:is([closed], [data-closed], [data-state="closed"])',
108
+ fullscreen: "&:fullscreen",
109
+ loading: "&:is([data-loading], [aria-busy=true])",
110
+ currentPage: "&[aria-current=page]",
111
+ currentStep: "&[aria-current=step]",
112
+ motionReduce: "@media (prefers-reduced-motion: reduce)",
113
+ motionSafe: "@media (prefers-reduced-motion: no-preference)",
114
+ print: "@media print",
115
+ landscape: "@media (orientation: landscape)",
116
+ portrait: "@media (orientation: portrait)",
117
+ dark: " &.dark, .dark &",
118
+ light: " &.light, .light &",
119
+ osDark: "@media (prefers-color-scheme: dark)",
120
+ osLight: "@media (prefers-color-scheme: light)",
121
+ highContrast: "@media (forced-colors: active)",
122
+ lessContrast: "@media (prefers-contrast: less)",
123
+ moreContrast: "@media (prefers-contrast: more)",
124
+ ltr: "[dir=ltr] &",
125
+ rtl: "[dir=rtl] &",
126
+ scrollbar: "&::-webkit-scrollbar",
127
+ scrollbarThumb: "&::-webkit-scrollbar-thumb",
128
+ scrollbarTrack: "&::-webkit-scrollbar-track",
129
+ horizontal: "&[data-orientation=horizontal]",
130
+ vertical: "&[data-orientation=vertical]"
131
+ };
132
+ var background = {
133
+ backgroundPosition: {
134
+ shorthand: "bgPosition",
135
+ className: "bg"
136
+ },
137
+ backgroundPositionX: {
138
+ shorthand: "bgPositionX",
139
+ className: "bg-x"
140
+ },
141
+ backgroundPositionY: {
142
+ shorthand: "bgPositionY",
143
+ className: "bg-y"
144
+ },
145
+ backgroundAttachment: {
146
+ shorthand: "bgAttachment",
147
+ className: "bg"
148
+ },
149
+ backgroundClip: {
150
+ shorthand: "bgClip",
151
+ className: "bg-clip",
152
+ transform(value) {
153
+ return {
154
+ backgroundClip: value,
155
+ WebkitBackgroundClip: value
156
+ };
157
+ }
158
+ },
159
+ background: {
160
+ shorthand: "bg",
161
+ className: "bg",
162
+ values: "colors"
163
+ },
164
+ backgroundColor: {
165
+ shorthand: "bgColor",
166
+ className: "bg",
167
+ values: "colors"
168
+ },
169
+ backgroundOrigin: {
170
+ shorthand: "bgOrigin",
171
+ className: "bg-origin"
172
+ },
173
+ backgroundImage: {
174
+ shorthand: "bgImage",
175
+ className: "bg-img",
176
+ values: "assets"
177
+ },
178
+ backgroundRepeat: {
179
+ shorthand: "bgRepeat",
180
+ className: "bg-repeat"
181
+ },
182
+ backgroundBlendMode: {
183
+ shorthand: "bgBlendMode",
184
+ className: "bg-blend"
185
+ },
186
+ backgroundSize: {
187
+ shorthand: "bgSize",
188
+ className: "bg"
189
+ },
190
+ backgroundGradient: {
191
+ shorthand: "bgGradient",
192
+ className: "bg-gradient",
193
+ values(theme2) {
194
+ return {
195
+ ...theme2("gradients"),
196
+ "to-t": "linear-gradient(to top, var(--gradient))",
197
+ "to-tr": "linear-gradient(to top right, var(--gradient))",
198
+ "to-r": "linear-gradient(to right, var(--gradient))",
199
+ "to-br": "linear-gradient(to bottom right, var(--gradient))",
200
+ "to-b": "linear-gradient(to bottom, var(--gradient))",
201
+ "to-bl": "linear-gradient(to bottom left, var(--gradient))",
202
+ "to-l": "linear-gradient(to left, var(--gradient))",
203
+ "to-tl": "linear-gradient(to top left, var(--gradient))"
204
+ };
205
+ },
206
+ transform(value) {
207
+ return {
208
+ "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
209
+ "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
210
+ backgroundImage: value
211
+ };
212
+ }
213
+ },
214
+ textGradient: {
215
+ className: "text-gradient",
216
+ values(theme2) {
217
+ return {
218
+ ...theme2("gradients"),
219
+ "to-t": "linear-gradient(to top, var(--gradient))",
220
+ "to-tr": "linear-gradient(to top right, var(--gradient))",
221
+ "to-r": "linear-gradient(to right, var(--gradient))",
222
+ "to-br": "linear-gradient(to bottom right, var(--gradient))",
223
+ "to-b": "linear-gradient(to bottom, var(--gradient))",
224
+ "to-bl": "linear-gradient(to bottom left, var(--gradient))",
225
+ "to-l": "linear-gradient(to left, var(--gradient))",
226
+ "to-tl": "linear-gradient(to top left, var(--gradient))"
227
+ };
228
+ },
229
+ transform(value) {
230
+ return {
231
+ "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
232
+ "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
233
+ backgroundImage: value,
234
+ WebkitBackgroundClip: "text",
235
+ color: "transparent"
236
+ };
237
+ }
238
+ },
239
+ gradientFrom: {
240
+ className: "from",
241
+ values: "colors",
242
+ transform(value) {
243
+ return {
244
+ "--gradient-from": value
245
+ };
246
+ }
247
+ },
248
+ gradientTo: {
249
+ className: "to",
250
+ values: "colors",
251
+ transform(value) {
252
+ return {
253
+ "--gradient-to": value
254
+ };
255
+ }
256
+ },
257
+ gradientVia: {
258
+ className: "via",
259
+ values: "colors",
260
+ transform(value) {
261
+ return {
262
+ "--gradient-via-stops": "var(--gradient-from), var(--gradient-via), var(--gradient-to)",
263
+ "--gradient-via": value
264
+ };
265
+ }
266
+ }
267
+ };
268
+ var border = {
269
+ borderRadius: {
270
+ className: "rounded",
271
+ shorthand: "rounded",
272
+ values: "radii"
273
+ },
274
+ borderTopLeftRadius: {
275
+ className: "rounded-tl",
276
+ shorthand: "roundedTopLeft",
277
+ values: "radii"
278
+ },
279
+ borderTopRightRadius: {
280
+ className: "rounded-tr",
281
+ shorthand: "roundedTopRight",
282
+ values: "radii"
283
+ },
284
+ borderBottomRightRadius: {
285
+ className: "rounded-br",
286
+ shorthand: "roundedBottomRight",
287
+ values: "radii"
288
+ },
289
+ borderBottomLeftRadius: {
290
+ className: "rounded-bl",
291
+ shorthand: "roundedBottomLeft",
292
+ values: "radii"
293
+ },
294
+ borderTopRadius: {
295
+ className: "rounded-t",
296
+ shorthand: "roundedTop",
297
+ property: "borderRadius",
298
+ values: "radii",
299
+ transform(value) {
300
+ return {
301
+ borderTopLeftRadius: value,
302
+ borderTopRightRadius: value
303
+ };
304
+ }
305
+ },
306
+ borderRightRadius: {
307
+ className: "rounded-r",
308
+ shorthand: "roundedRight",
309
+ property: "borderRadius",
310
+ values: "radii",
311
+ transform(value) {
312
+ return {
313
+ borderTopRightRadius: value,
314
+ borderBottomRightRadius: value
315
+ };
316
+ }
317
+ },
318
+ borderBottomRadius: {
319
+ className: "rounded-b",
320
+ shorthand: "roundedBottom",
321
+ property: "borderRadius",
322
+ values: "radii",
323
+ transform(value) {
324
+ return {
325
+ borderBottomLeftRadius: value,
326
+ borderBottomRightRadius: value
327
+ };
328
+ }
329
+ },
330
+ borderLeftRadius: {
331
+ className: "rounded-l",
332
+ shorthand: "roundedLeft",
333
+ values: "radii",
334
+ property: "borderRadius",
335
+ transform(value) {
336
+ return {
337
+ borderTopLeftRadius: value,
338
+ borderBottomLeftRadius: value
339
+ };
340
+ }
341
+ },
342
+ borderStartStartRadius: {
343
+ className: "rounded-ss",
344
+ shorthand: "roundedStartStart",
345
+ values: "radii"
346
+ },
347
+ borderStartEndRadius: {
348
+ className: "rounded-se",
349
+ shorthand: "roundedStartEnd",
350
+ values: "radii"
351
+ },
352
+ borderStartRadius: {
353
+ className: "rounded-s",
354
+ values: "radii",
355
+ property: "borderRadius",
356
+ shorthand: "roundedStart",
357
+ transform(value) {
358
+ return {
359
+ borderStartStartRadius: value,
360
+ borderEndStartRadius: value
361
+ };
362
+ }
363
+ },
364
+ borderEndStartRadius: {
365
+ className: "rounded-es",
366
+ shorthand: "roundedEndStart",
367
+ values: "radii"
368
+ },
369
+ borderEndEndRadius: {
370
+ className: "rounded-ee",
371
+ shorthand: "roundedEndEnd",
372
+ values: "radii"
373
+ },
374
+ borderEndRadius: {
375
+ className: "rounded-e",
376
+ shorthand: "roundedEnd",
377
+ property: "borderRadius",
378
+ values: "radii",
379
+ transform(value) {
380
+ return {
381
+ borderStartEndRadius: value,
382
+ borderEndEndRadius: value
383
+ };
384
+ }
385
+ },
386
+ border: {
387
+ className: "border",
388
+ values: "borders"
389
+ },
390
+ borderWidth: {
391
+ className: "border-w",
392
+ values: "borderWidths"
393
+ },
394
+ borderTopWidth: {
395
+ className: "border-tw",
396
+ values: "borderWidths"
397
+ },
398
+ borderLeftWidth: {
399
+ className: "border-lw",
400
+ values: "borderWidths"
401
+ },
402
+ borderRightWidth: {
403
+ className: "border-rw",
404
+ values: "borderWidths"
405
+ },
406
+ borderBottomWidth: {
407
+ className: "border-bw",
408
+ values: "borderWidths"
409
+ },
410
+ borderColor: {
411
+ className: "border",
412
+ values: "colors"
413
+ },
414
+ borderInline: {
415
+ className: "border-x",
416
+ values: "borders",
417
+ shorthand: "borderX"
418
+ },
419
+ borderInlineWidth: {
420
+ className: "border-x",
421
+ values: "borderWidths",
422
+ shorthand: "borderXWidth"
423
+ },
424
+ borderInlineColor: {
425
+ className: "border-x",
426
+ values: "colors",
427
+ shorthand: "borderXColor"
428
+ },
429
+ borderBlock: {
430
+ className: "border-y",
431
+ values: "borders",
432
+ shorthand: "borderY"
433
+ },
434
+ borderBlockWidth: {
435
+ className: "border-y",
436
+ values: "borderWidths",
437
+ shorthand: "borderYWidth"
438
+ },
439
+ borderBlockColor: {
440
+ className: "border-y",
441
+ values: "colors",
442
+ shorthand: "borderYColor"
443
+ },
444
+ borderLeft: {
445
+ className: "border-l",
446
+ values: "borders"
447
+ },
448
+ borderLeftColor: {
449
+ className: "border-l",
450
+ values: "colors"
451
+ },
452
+ borderInlineStart: {
453
+ className: "border-s",
454
+ values: "borders",
455
+ shorthand: "borderStart"
456
+ },
457
+ borderInlineStartWidth: {
458
+ className: "border-s",
459
+ values: "borderWidths",
460
+ shorthand: "borderStartWidth"
461
+ },
462
+ borderInlineStartColor: {
463
+ className: "border-s",
464
+ values: "colors",
465
+ shorthand: "borderStartColor"
466
+ },
467
+ borderRight: {
468
+ className: "border-r",
469
+ values: "borders"
470
+ },
471
+ borderRightColor: {
472
+ className: "border-r",
473
+ values: "colors"
474
+ },
475
+ borderInlineEnd: {
476
+ className: "border-e",
477
+ values: "borders",
478
+ shorthand: "borderEnd"
479
+ },
480
+ borderInlineEndWidth: {
481
+ className: "border-e",
482
+ values: "borderWidths",
483
+ shorthand: "borderEndWidth"
484
+ },
485
+ borderInlineEndColor: {
486
+ className: "border-e",
487
+ values: "colors",
488
+ shorthand: "borderEndColor"
489
+ },
490
+ borderTop: {
491
+ className: "border-t",
492
+ values: "borders"
493
+ },
494
+ borderTopColor: {
495
+ className: "border-t",
496
+ values: "colors"
497
+ },
498
+ borderBottom: {
499
+ className: "border-b",
500
+ values: "borders"
501
+ },
502
+ borderBottomColor: {
503
+ className: "border-b",
504
+ values: "colors"
505
+ },
506
+ borderBlockEnd: {
507
+ className: "border-be",
508
+ values: "borders"
509
+ },
510
+ borderBlockEndColor: {
511
+ className: "border-be",
512
+ values: "colors"
513
+ },
514
+ borderBlockStart: {
515
+ className: "border-bs",
516
+ values: "borders"
517
+ },
518
+ borderBlockStartColor: {
519
+ className: "border-bs",
520
+ values: "colors"
521
+ }
522
+ };
523
+ var display = {
524
+ display: {
525
+ className: "d"
526
+ },
527
+ hideFrom: {
528
+ className: "hide",
529
+ values: "breakpoints",
530
+ transform(value, { raw, token }) {
531
+ const bp = token.raw(`breakpoints.${raw}`);
532
+ const media = bp ? `@breakpoint ${raw}` : `@media screen and (min-width: ${value})`;
533
+ return {
534
+ [media]: {
535
+ display: "none"
536
+ }
537
+ };
538
+ }
539
+ },
540
+ hideBelow: {
541
+ className: "show",
542
+ values: "breakpoints",
543
+ transform(value, { raw, token }) {
544
+ const bp = token.raw(`breakpoints.${raw}`);
545
+ const media = bp ? `@breakpoint ${raw}Down` : `@media screen and (max-width: ${value})`;
546
+ return {
547
+ [media]: {
548
+ display: "none"
549
+ }
550
+ };
551
+ }
552
+ }
553
+ };
554
+ var divide = {
555
+ divideX: {
556
+ className: "divide-x",
557
+ values: { type: "string" },
558
+ transform(value) {
559
+ return {
560
+ "& > :not([hidden]) ~ :not([hidden])": {
561
+ borderInlineStartWidth: value,
562
+ borderInlineEndWidth: "0px"
563
+ }
564
+ };
565
+ }
566
+ },
567
+ divideY: {
568
+ className: "divide-y",
569
+ values: { type: "string" },
570
+ transform(value) {
571
+ return {
572
+ "& > :not([hidden]) ~ :not([hidden])": {
573
+ borderTopWidth: value,
574
+ borderBottomWidth: "0px"
575
+ }
576
+ };
577
+ }
578
+ },
579
+ divideColor: {
580
+ className: "divide",
581
+ values: "colors",
582
+ transform(value) {
583
+ return {
584
+ "& > :not([hidden]) ~ :not([hidden])": {
585
+ borderColor: value
586
+ }
587
+ };
588
+ }
589
+ },
590
+ divideStyle: {
591
+ className: "divide",
592
+ property: "borderStyle",
593
+ transform(value) {
594
+ return {
595
+ "& > :not([hidden]) ~ :not([hidden])": {
596
+ borderStyle: value
597
+ }
598
+ };
599
+ }
600
+ }
601
+ };
602
+ var effects = {
603
+ opacity: {
604
+ values: "opacity"
605
+ },
606
+ boxShadow: {
607
+ shorthand: "shadow",
608
+ className: "shadow",
609
+ values: "shadows"
610
+ },
611
+ boxShadowColor: {
612
+ shorthand: "shadowColor",
613
+ className: "shadow",
614
+ values: "colors",
615
+ transform(value) {
616
+ return {
617
+ "--shadow-color": value
618
+ };
619
+ }
620
+ },
621
+ mixBlendMode: {
622
+ className: "mix-blend"
623
+ },
624
+ filter: {
625
+ className: "filter",
626
+ values: {
627
+ auto: [
628
+ "var(--blur)",
629
+ "var(--brightness)",
630
+ "var(--contrast)",
631
+ "var(--grayscale)",
632
+ "var(--hue-rotate)",
633
+ "var(--invert)",
634
+ "var(--saturate)",
635
+ "var(--sepia)",
636
+ "var(--drop-shadow)"
637
+ ].join(" ")
638
+ }
639
+ },
640
+ brightness: {
641
+ className: "brightness",
642
+ transform(value) {
643
+ return {
644
+ "--brightness": `brightness(${value})`
645
+ };
646
+ }
647
+ },
648
+ contrast: {
649
+ className: "contrast",
650
+ transform(value) {
651
+ return {
652
+ "--contrast": `contrast(${value})`
653
+ };
654
+ }
655
+ },
656
+ grayscale: {
657
+ className: "grayscale",
658
+ transform(value) {
659
+ return {
660
+ "--grayscale": `grayscale(${value})`
661
+ };
662
+ }
663
+ },
664
+ hueRotate: {
665
+ className: "hue-rotate",
666
+ transform(value) {
667
+ return {
668
+ "--hue-rotate": `hue-rotate(${value})`
669
+ };
670
+ }
671
+ },
672
+ invert: {
673
+ className: "invert",
674
+ transform(value) {
675
+ return {
676
+ "--invert": `invert(${value})`
677
+ };
678
+ }
679
+ },
680
+ saturate: {
681
+ className: "saturate",
682
+ transform(value) {
683
+ return {
684
+ "--saturate": `saturate(${value})`
685
+ };
686
+ }
687
+ },
688
+ sepia: {
689
+ className: "sepia",
690
+ transform(value) {
691
+ return {
692
+ "--sepia": `sepia(${value})`
693
+ };
694
+ }
695
+ },
696
+ dropShadow: {
697
+ className: "drop-shadow",
698
+ values: "dropShadows",
699
+ transform(value) {
700
+ return {
701
+ "--drop-shadow": value
702
+ };
703
+ }
704
+ },
705
+ blur: {
706
+ className: "blur",
707
+ values: "blurs",
708
+ transform(value) {
709
+ return {
710
+ "--blur": `blur(${value})`
711
+ };
712
+ }
713
+ },
714
+ backdropFilter: {
715
+ className: "backdrop",
716
+ values: {
717
+ auto: [
718
+ "var(--backdrop-blur)",
719
+ "var(--backdrop-brightness)",
720
+ "var(--backdrop-contrast)",
721
+ "var(--backdrop-grayscale)",
722
+ "var(--backdrop-hue-rotate)",
723
+ "var(--backdrop-invert)",
724
+ "var(--backdrop-saturate)",
725
+ "var(--backdrop-sepia)"
726
+ ].join(" ")
727
+ },
728
+ transform(value) {
729
+ return {
730
+ backdropFilter: value,
731
+ WebkitBackdropFilter: value
732
+ };
733
+ }
734
+ },
735
+ backdropBlur: {
736
+ className: "backdrop-blur",
737
+ values: "blurs",
738
+ transform(value) {
739
+ return {
740
+ "--backdrop-blur": `blur(${value})`
741
+ };
742
+ }
743
+ },
744
+ backdropBrightness: {
745
+ className: "backdrop-brightness",
746
+ transform(value) {
747
+ return {
748
+ "--backdrop-brightness": `brightness(${value})`
749
+ };
750
+ }
751
+ },
752
+ backdropContrast: {
753
+ className: "backdrop-contrast",
754
+ transform(value) {
755
+ return {
756
+ "--backdrop-contrast": `contrast(${value})`
757
+ };
758
+ }
759
+ },
760
+ backdropGrayscale: {
761
+ className: "backdrop-grayscale",
762
+ transform(value) {
763
+ return {
764
+ "--backdrop-grayscale": `grayscale(${value})`
765
+ };
766
+ }
767
+ },
768
+ backdropHueRotate: {
769
+ className: "backdrop-hue-rotate",
770
+ transform(value) {
771
+ return {
772
+ "--backdrop-hue-rotate": `hue-rotate(${value})`
773
+ };
774
+ }
775
+ },
776
+ backdropInvert: {
777
+ className: "backdrop-invert",
778
+ transform(value) {
779
+ return {
780
+ "--backdrop-invert": `invert(${value})`
781
+ };
782
+ }
783
+ },
784
+ backdropOpacity: {
785
+ className: "backdrop-opacity",
786
+ transform(value) {
787
+ return {
788
+ "--backdrop-opacity": value
789
+ };
790
+ }
791
+ },
792
+ backdropSaturate: {
793
+ className: "backdrop-saturate",
794
+ transform(value) {
795
+ return {
796
+ "--backdrop-saturate": `saturate(${value})`
797
+ };
798
+ }
799
+ },
800
+ backdropSepia: {
801
+ className: "backdrop-sepia",
802
+ transform(value) {
803
+ return {
804
+ "--backdrop-sepia": `sepia(${value})`
805
+ };
806
+ }
807
+ }
808
+ };
809
+ var flexGrid = {
810
+ flexBasis: {
811
+ className: "basis",
812
+ values(theme2) {
813
+ return {
814
+ ...theme2("spacing"),
815
+ "1/2": "50%",
816
+ "1/3": "33.333333%",
817
+ "2/3": "66.666667%",
818
+ "1/4": "25%",
819
+ "2/4": "50%",
820
+ "3/4": "75%",
821
+ "1/5": "20%",
822
+ "2/5": "40%",
823
+ "3/5": "60%",
824
+ "4/5": "80%",
825
+ "1/6": "16.666667%",
826
+ "2/6": "33.333333%",
827
+ "3/6": "50%",
828
+ "4/6": "66.666667%",
829
+ "5/6": "83.333333%",
830
+ "1/12": "8.333333%",
831
+ "2/12": "16.666667%",
832
+ "3/12": "25%",
833
+ "4/12": "33.333333%",
834
+ "5/12": "41.666667%",
835
+ "6/12": "50%",
836
+ "7/12": "58.333333%",
837
+ "8/12": "66.666667%",
838
+ "9/12": "75%",
839
+ "10/12": "83.333333%",
840
+ "11/12": "91.666667%",
841
+ full: "100%"
842
+ };
843
+ }
844
+ },
845
+ flex: {
846
+ className: "flex",
847
+ values: {
848
+ "1": "1 1 0%",
849
+ auto: "1 1 auto",
850
+ initial: "0 1 auto",
851
+ none: "none"
852
+ }
853
+ },
854
+ flexDirection: {
855
+ className: "flex",
856
+ shorthand: "flexDir"
857
+ },
858
+ flexGrow: {
859
+ className: "grow"
860
+ },
861
+ flexShrink: {
862
+ className: "shrink"
863
+ },
864
+ gridTemplateColumns: {
865
+ className: "grid-cols",
866
+ values: {
867
+ "1": "repeat(1, minmax(0, 1fr))",
868
+ "2": "repeat(2, minmax(0, 1fr))",
869
+ "3": "repeat(3, minmax(0, 1fr))",
870
+ "4": "repeat(4, minmax(0, 1fr))",
871
+ "5": "repeat(5, minmax(0, 1fr))",
872
+ "6": "repeat(6, minmax(0, 1fr))",
873
+ "7": "repeat(7, minmax(0, 1fr))",
874
+ "8": "repeat(8, minmax(0, 1fr))",
875
+ "9": "repeat(9, minmax(0, 1fr))",
876
+ "10": "repeat(10, minmax(0, 1fr))",
877
+ "11": "repeat(11, minmax(0, 1fr))",
878
+ "12": "repeat(12, minmax(0, 1fr))"
879
+ }
880
+ },
881
+ gridTemplateRows: {
882
+ className: "grid-rows",
883
+ values: {
884
+ "1": "repeat(1, minmax(0, 1fr))",
885
+ "2": "repeat(2, minmax(0, 1fr))",
886
+ "3": "repeat(3, minmax(0, 1fr))",
887
+ "4": "repeat(4, minmax(0, 1fr))",
888
+ "5": "repeat(5, minmax(0, 1fr))",
889
+ "6": "repeat(6, minmax(0, 1fr))",
890
+ "7": "repeat(7, minmax(0, 1fr))",
891
+ "8": "repeat(8, minmax(0, 1fr))",
892
+ "9": "repeat(9, minmax(0, 1fr))",
893
+ "10": "repeat(10, minmax(0, 1fr))",
894
+ "11": "repeat(11, minmax(0, 1fr))",
895
+ "12": "repeat(12, minmax(0, 1fr))"
896
+ }
897
+ },
898
+ gridColumn: {
899
+ className: "col-span",
900
+ values: {
901
+ full: "1 / -1",
902
+ "1": "span 1 / span 1",
903
+ "2": "span 2 / span 2",
904
+ "3": "span 3 / span 3",
905
+ "4": "span 4 / span 4",
906
+ "5": "span 5 / span 5",
907
+ "6": "span 6 / span 6",
908
+ "7": "span 7 / span 7",
909
+ "8": "span 8 / span 8",
910
+ "9": "span 9 / span 9",
911
+ "10": "span 10 / span 10",
912
+ "11": "span 11 / span 11",
913
+ "12": "span 12 / span 12"
914
+ }
915
+ },
916
+ gridRow: {
917
+ className: "row-span",
918
+ values: {
919
+ full: "1 / -1",
920
+ "1": "span 1 / span 1",
921
+ "2": "span 2 / span 2",
922
+ "3": "span 3 / span 3",
923
+ "4": "span 4 / span 4",
924
+ "5": "span 5 / span 5",
925
+ "6": "span 6 / span 6",
926
+ "7": "span 7 / span 7",
927
+ "8": "span 8 / span 8",
928
+ "9": "span 9 / span 9",
929
+ "10": "span 10 / span 10",
930
+ "11": "span 11 / span 11",
931
+ "12": "span 12 / span 12"
932
+ }
933
+ },
934
+ gridColumnStart: {
935
+ className: "col-start"
936
+ },
937
+ gridColumnEnd: {
938
+ className: "col-end"
939
+ },
940
+ gridAutoFlow: {
941
+ className: "grid-flow"
942
+ },
943
+ gridAutoColumns: {
944
+ className: "auto-cols",
945
+ values: {
946
+ min: "min-content",
947
+ max: "max-content",
948
+ fr: "minmax(0, 1fr)"
949
+ }
950
+ },
951
+ gridAutoRows: {
952
+ className: "auto-rows",
953
+ values: {
954
+ min: "min-content",
955
+ max: "max-content",
956
+ fr: "minmax(0, 1fr)"
957
+ }
958
+ },
959
+ gap: {
960
+ className: "gap",
961
+ values: "spacing"
962
+ },
963
+ gridGap: {
964
+ className: "gap",
965
+ values: "spacing"
966
+ },
967
+ gridRowGap: {
968
+ className: "gap-x",
969
+ values: "spacing"
970
+ },
971
+ gridColumnGap: {
972
+ className: "gap-y",
973
+ values: "spacing"
974
+ },
975
+ rowGap: {
976
+ className: "gap-x",
977
+ values: "spacing"
978
+ },
979
+ columnGap: {
980
+ className: "gap-y",
981
+ values: "spacing"
982
+ },
983
+ justifyContent: {
984
+ className: "justify"
985
+ },
986
+ alignContent: {
987
+ className: "content"
988
+ },
989
+ alignItems: {
990
+ className: "items"
991
+ },
992
+ alignSelf: {
993
+ className: "self"
994
+ }
995
+ };
996
+ var srMapping = {
997
+ true: {
998
+ position: "absolute",
999
+ width: "1px",
1000
+ height: "1px",
1001
+ padding: "0",
1002
+ margin: "-1px",
1003
+ overflow: "hidden",
1004
+ clip: "rect(0, 0, 0, 0)",
1005
+ whiteSpace: "nowrap",
1006
+ borderWidth: "0"
1007
+ },
1008
+ false: {
1009
+ position: "static",
1010
+ width: "auto",
1011
+ height: "auto",
1012
+ padding: "0",
1013
+ margin: "0",
1014
+ overflow: "visible",
1015
+ clip: "auto",
1016
+ whiteSpace: "normal"
1017
+ }
1018
+ };
1019
+ var helpers = {
1020
+ srOnly: {
1021
+ className: "sr",
1022
+ values: { type: "boolean" },
1023
+ transform(value) {
1024
+ return srMapping[value] || {};
1025
+ }
1026
+ },
1027
+ debug: {
1028
+ className: "debug",
1029
+ values: { type: "boolean" },
1030
+ transform(value) {
1031
+ if (!value)
1032
+ return {};
1033
+ return {
1034
+ outline: "1px solid blue !important",
1035
+ "&>*": {
1036
+ outline: "1px solid red !important"
1037
+ }
1038
+ };
1039
+ }
1040
+ }
1041
+ };
1042
+ var interactivity = {
1043
+ accentColor: {
1044
+ className: "accent",
1045
+ values: "colors"
1046
+ },
1047
+ caretColor: {
1048
+ className: "caret",
1049
+ values: "colors"
1050
+ },
1051
+ scrollBehavior: {
1052
+ className: "scroll"
1053
+ },
1054
+ scrollbar: {
1055
+ className: "scrollbar",
1056
+ values: ["visible", "hidden"],
1057
+ transform(value) {
1058
+ if (value === "visible") {
1059
+ return {
1060
+ msOverflowStyle: "auto",
1061
+ scrollbarWidth: "auto",
1062
+ "&::-webkit-scrollbar": {
1063
+ display: "block"
1064
+ }
1065
+ };
1066
+ }
1067
+ if (value === "hidden") {
1068
+ return {
1069
+ msOverflowStyle: "none",
1070
+ scrollbarWidth: "none",
1071
+ "&::-webkit-scrollbar": {
1072
+ display: "none"
1073
+ }
1074
+ };
1075
+ }
1076
+ }
1077
+ },
1078
+ scrollMargin: {
1079
+ className: "scroll-m",
1080
+ values: "spacing"
1081
+ },
1082
+ scrollMarginX: {
1083
+ className: "scroll-mx",
1084
+ values: "spacing",
1085
+ property: "scrollMarginInline",
1086
+ transform(value) {
1087
+ return {
1088
+ scrollMarginInline: value
1089
+ };
1090
+ }
1091
+ },
1092
+ scrollMarginY: {
1093
+ className: "scroll-my",
1094
+ values: "spacing",
1095
+ property: "scrollMarginBlock",
1096
+ transform(value) {
1097
+ return {
1098
+ scrollMarginBlock: value
1099
+ };
1100
+ }
1101
+ },
1102
+ scrollMarginLeft: {
1103
+ className: "scroll-ml",
1104
+ values: "spacing"
1105
+ },
1106
+ scrollMarginRight: {
1107
+ className: "scroll-mr",
1108
+ values: "spacing"
1109
+ },
1110
+ scrollMarginTop: {
1111
+ className: "scroll-mt",
1112
+ values: "spacing"
1113
+ },
1114
+ scrollMarginBottom: {
1115
+ className: "scroll-mb",
1116
+ values: "spacing"
1117
+ },
1118
+ scrollMarginBlock: {
1119
+ className: "scroll-my",
1120
+ values: "spacing"
1121
+ },
1122
+ scrollMarginBlockEnd: {
1123
+ className: "scroll-mb",
1124
+ values: "spacing"
1125
+ },
1126
+ scrollMarginBlockStart: {
1127
+ className: "scroll-mt",
1128
+ values: "spacing"
1129
+ },
1130
+ scrollMarginInline: {
1131
+ className: "scroll-mx",
1132
+ values: "spacing"
1133
+ },
1134
+ scrollMarginInlineEnd: {
1135
+ className: "scroll-me",
1136
+ values: "spacing"
1137
+ },
1138
+ scrollMarginInlineStart: {
1139
+ className: "scroll-ms",
1140
+ values: "spacing"
1141
+ },
1142
+ scrollPadding: {
1143
+ className: "scroll-p",
1144
+ values: "spacing"
1145
+ },
1146
+ scrollPaddingBlock: {
1147
+ className: "scroll-pb",
1148
+ values: "spacing"
1149
+ },
1150
+ scrollPaddingBlockStart: {
1151
+ className: "scroll-pt",
1152
+ values: "spacing"
1153
+ },
1154
+ scrollPaddingBlockEnd: {
1155
+ className: "scroll-pb",
1156
+ values: "spacing"
1157
+ },
1158
+ scrollPaddingInline: {
1159
+ className: "scroll-px",
1160
+ values: "spacing"
1161
+ },
1162
+ scrollPaddingInlineEnd: {
1163
+ className: "scroll-pe",
1164
+ values: "spacing"
1165
+ },
1166
+ scrollPaddingInlineStart: {
1167
+ className: "scroll-ps",
1168
+ values: "spacing"
1169
+ },
1170
+ scrollPaddingX: {
1171
+ className: "scroll-px",
1172
+ values: "spacing",
1173
+ property: "scrollPaddingInline",
1174
+ transform(value) {
1175
+ return {
1176
+ scrollPaddingInline: value
1177
+ };
1178
+ }
1179
+ },
1180
+ scrollPaddingY: {
1181
+ className: "scroll-py",
1182
+ values: "spacing",
1183
+ property: "scrollPaddingBlock",
1184
+ transform(value) {
1185
+ return {
1186
+ scrollPaddingBlock: value
1187
+ };
1188
+ }
1189
+ },
1190
+ scrollPaddingLeft: {
1191
+ className: "scroll-pl",
1192
+ values: "spacing"
1193
+ },
1194
+ scrollPaddingRight: {
1195
+ className: "scroll-pr",
1196
+ values: "spacing"
1197
+ },
1198
+ scrollPaddingTop: {
1199
+ className: "scroll-pt",
1200
+ values: "spacing"
1201
+ },
1202
+ scrollPaddingBottom: {
1203
+ className: "scroll-pb",
1204
+ values: "spacing"
1205
+ },
1206
+ scrollSnapAlign: {
1207
+ className: "snap"
1208
+ },
1209
+ scrollSnapStop: {
1210
+ className: "snap"
1211
+ },
1212
+ scrollSnapType: {
1213
+ className: "snap",
1214
+ values: {
1215
+ none: "none",
1216
+ x: "x var(--scroll-snap-strictness)",
1217
+ y: "y var(--scroll-snap-strictness)",
1218
+ both: "both var(--scroll-snap-strictness)"
1219
+ }
1220
+ },
1221
+ scrollSnapStrictness: {
1222
+ className: "strictness",
1223
+ values: ["mandatory", "proximity"],
1224
+ transform(value) {
1225
+ return {
1226
+ "--scroll-snap-strictness": value
1227
+ };
1228
+ }
1229
+ },
1230
+ scrollSnapMargin: {
1231
+ className: "snap-m",
1232
+ values: "spacing"
1233
+ },
1234
+ scrollSnapMarginTop: {
1235
+ className: "snap-mt",
1236
+ values: "spacing"
1237
+ },
1238
+ scrollSnapMarginBottom: {
1239
+ className: "snap-mb",
1240
+ values: "spacing"
1241
+ },
1242
+ scrollSnapMarginLeft: {
1243
+ className: "snap-ml",
1244
+ values: "spacing"
1245
+ },
1246
+ scrollSnapMarginRight: {
1247
+ className: "snap-mr",
1248
+ values: "spacing"
1249
+ },
1250
+ touchAction: {
1251
+ className: "touch"
1252
+ },
1253
+ userSelect: {
1254
+ className: "select",
1255
+ transform(value) {
1256
+ return {
1257
+ WebkitUserSelect: value,
1258
+ userSelect: value
1259
+ };
1260
+ }
1261
+ }
1262
+ };
1263
+ var layout = {
1264
+ aspectRatio: {
1265
+ className: "aspect",
1266
+ values: "aspectRatios"
1267
+ },
1268
+ boxDecorationBreak: {
1269
+ className: "decoration",
1270
+ transform(value) {
1271
+ return {
1272
+ boxDecorationBreak: value,
1273
+ WebkitBoxDecorationBreak: value
1274
+ };
1275
+ }
1276
+ },
1277
+ zIndex: {
1278
+ className: "z",
1279
+ values: "zIndex"
1280
+ },
1281
+ boxSizing: {
1282
+ className: "box"
1283
+ },
1284
+ objectPosition: {
1285
+ className: "object"
1286
+ },
1287
+ objectFit: {
1288
+ className: "object"
1289
+ },
1290
+ overscrollBehavior: {
1291
+ className: "overscroll"
1292
+ },
1293
+ overscrollBehaviorX: {
1294
+ className: "overscroll-x"
1295
+ },
1296
+ overscrollBehaviorY: {
1297
+ className: "overscroll-y"
1298
+ },
1299
+ position: {
1300
+ className: "pos",
1301
+ shorthand: "pos"
1302
+ },
1303
+ top: {
1304
+ className: "top",
1305
+ values: "spacing"
1306
+ },
1307
+ left: {
1308
+ className: "left",
1309
+ values: "spacing"
1310
+ },
1311
+ insetInline: {
1312
+ className: "inset-x",
1313
+ values: "spacing"
1314
+ },
1315
+ insetBlock: {
1316
+ className: "inset-y",
1317
+ values: "spacing"
1318
+ },
1319
+ inset: {
1320
+ className: "inset",
1321
+ values: (theme2) => ({
1322
+ auto: "auto",
1323
+ ...theme2("spacing")
1324
+ })
1325
+ },
1326
+ insetBlockEnd: {
1327
+ className: "inset-b",
1328
+ values: "spacing"
1329
+ },
1330
+ insetBlockStart: {
1331
+ className: "inset-t",
1332
+ values: "spacing"
1333
+ },
1334
+ insetInlineEnd: {
1335
+ className: "end",
1336
+ values: "spacing",
1337
+ shorthand: ["insetEnd", "end"]
1338
+ },
1339
+ insetInlineStart: {
1340
+ className: "start",
1341
+ values: "spacing",
1342
+ shorthand: ["insetStart", "start"]
1343
+ },
1344
+ right: {
1345
+ className: "right",
1346
+ values: "spacing"
1347
+ },
1348
+ bottom: {
1349
+ className: "bottom",
1350
+ values: "spacing"
1351
+ },
1352
+ insetX: {
1353
+ className: "inset-x",
1354
+ values: "spacing",
1355
+ property: "insetInline",
1356
+ transform(value) {
1357
+ return {
1358
+ insetInline: value
1359
+ };
1360
+ }
1361
+ },
1362
+ insetY: {
1363
+ className: "inset-y",
1364
+ values: "spacing",
1365
+ property: "insetBlock",
1366
+ transform(value) {
1367
+ return {
1368
+ insetBlock: value
1369
+ };
1370
+ }
1371
+ },
1372
+ float: {
1373
+ className: "float",
1374
+ values: ["left", "right", "start", "end"],
1375
+ transform(value) {
1376
+ if (value === "start") {
1377
+ return {
1378
+ float: "left",
1379
+ '[dir="rtl"] &': {
1380
+ float: "right"
1381
+ }
1382
+ };
1383
+ }
1384
+ if (value === "end") {
1385
+ return {
1386
+ float: "right",
1387
+ '[dir="rtl"] &': {
1388
+ float: "left"
1389
+ }
1390
+ };
1391
+ }
1392
+ return {
1393
+ float: value
1394
+ };
1395
+ }
1396
+ },
1397
+ visibility: {
1398
+ className: "vis"
1399
+ }
1400
+ };
1401
+ var list = {
1402
+ listStyleType: {
1403
+ className: "list"
1404
+ },
1405
+ listStylePosition: {
1406
+ className: "list"
1407
+ },
1408
+ listStyleImage: {
1409
+ className: "list-img",
1410
+ values: "assets"
1411
+ }
1412
+ };
1413
+ var outline = {
1414
+ outlineWidth: {
1415
+ className: "ring",
1416
+ shorthand: "ringWidth",
1417
+ values: "borderWidths"
1418
+ },
1419
+ outlineColor: {
1420
+ className: "ring",
1421
+ values: "colors",
1422
+ shorthand: "ringColor"
1423
+ },
1424
+ outline: {
1425
+ className: "ring",
1426
+ shorthand: "ring",
1427
+ values: "borders",
1428
+ transform(value) {
1429
+ if (value === "none") {
1430
+ return { outline: "2px solid transparent", outlineOffset: "2px" };
1431
+ }
1432
+ return { outline: value };
1433
+ }
1434
+ },
1435
+ outlineOffset: {
1436
+ className: "ring",
1437
+ shorthand: "ringOffset",
1438
+ values: "spacing"
1439
+ }
1440
+ };
1441
+ var widthValues = (theme2) => ({
1442
+ auto: "auto",
1443
+ ...theme2("sizes"),
1444
+ "1/2": "50%",
1445
+ "1/3": "33.333333%",
1446
+ "2/3": "66.666667%",
1447
+ "1/4": "25%",
1448
+ "2/4": "50%",
1449
+ "3/4": "75%",
1450
+ "1/5": "20%",
1451
+ "2/5": "40%",
1452
+ "3/5": "60%",
1453
+ "4/5": "80%",
1454
+ "1/6": "16.666667%",
1455
+ "2/6": "33.333333%",
1456
+ "3/6": "50%",
1457
+ "4/6": "66.666667%",
1458
+ "5/6": "83.333333%",
1459
+ "1/12": "8.333333%",
1460
+ "2/12": "16.666667%",
1461
+ "3/12": "25%",
1462
+ "4/12": "33.333333%",
1463
+ "5/12": "41.666667%",
1464
+ "6/12": "50%",
1465
+ "7/12": "58.333333%",
1466
+ "8/12": "66.666667%",
1467
+ "9/12": "75%",
1468
+ "10/12": "83.333333%",
1469
+ "11/12": "91.666667%",
1470
+ screen: "100vw"
1471
+ });
1472
+ var heightValues = (theme2) => ({
1473
+ auto: "auto",
1474
+ ...theme2("sizes"),
1475
+ svh: "100svh",
1476
+ lvh: "100lvh",
1477
+ dvh: "100dvh",
1478
+ screen: "100vh",
1479
+ "1/2": "50%",
1480
+ "1/3": "33.333333%",
1481
+ "2/3": "66.666667%",
1482
+ "1/4": "25%",
1483
+ "2/4": "50%",
1484
+ "3/4": "75%",
1485
+ "1/5": "20%",
1486
+ "2/5": "40%",
1487
+ "3/5": "60%",
1488
+ "4/5": "80%",
1489
+ "1/6": "16.666667%",
1490
+ "2/6": "33.333333%",
1491
+ "3/6": "50%",
1492
+ "4/6": "66.666667%",
1493
+ "5/6": "83.333333%"
1494
+ });
1495
+ var sizing = {
1496
+ width: {
1497
+ shorthand: "w",
1498
+ className: "w",
1499
+ values: widthValues
1500
+ },
1501
+ inlineSize: {
1502
+ className: "w",
1503
+ values: widthValues
1504
+ },
1505
+ minWidth: {
1506
+ shorthand: "minW",
1507
+ className: "min-w",
1508
+ values: widthValues
1509
+ },
1510
+ minInlineSize: {
1511
+ className: "min-w",
1512
+ values: widthValues
1513
+ },
1514
+ maxWidth: {
1515
+ shorthand: "maxW",
1516
+ className: "max-w",
1517
+ values: widthValues
1518
+ },
1519
+ maxInlineSize: {
1520
+ className: "max-w",
1521
+ values: widthValues
1522
+ },
1523
+ height: {
1524
+ shorthand: "h",
1525
+ className: "h",
1526
+ values: heightValues
1527
+ },
1528
+ blockSize: {
1529
+ className: "h",
1530
+ values: heightValues
1531
+ },
1532
+ minHeight: {
1533
+ shorthand: "minH",
1534
+ className: "min-h",
1535
+ values: heightValues
1536
+ },
1537
+ minBlockSize: {
1538
+ className: "min-h",
1539
+ values: heightValues
1540
+ },
1541
+ maxHeight: {
1542
+ shorthand: "maxH",
1543
+ className: "max-h",
1544
+ values: heightValues
1545
+ },
1546
+ maxBlockSize: {
1547
+ className: "max-b",
1548
+ values: heightValues
1549
+ }
1550
+ };
1551
+ var marginValues = (theme2) => ({
1552
+ auto: "auto",
1553
+ ...theme2("spacing")
1554
+ });
1555
+ var spacing = {
1556
+ padding: {
1557
+ className: "p",
1558
+ shorthand: "p",
1559
+ values: "spacing"
1560
+ },
1561
+ paddingLeft: {
1562
+ className: "pl",
1563
+ shorthand: "pl",
1564
+ values: "spacing"
1565
+ },
1566
+ paddingRight: {
1567
+ className: "pr",
1568
+ shorthand: "pr",
1569
+ values: "spacing"
1570
+ },
1571
+ paddingTop: {
1572
+ className: "pt",
1573
+ shorthand: "pt",
1574
+ values: "spacing"
1575
+ },
1576
+ paddingBottom: {
1577
+ className: "pb",
1578
+ shorthand: "pb",
1579
+ values: "spacing"
1580
+ },
1581
+ paddingBlock: {
1582
+ className: "py",
1583
+ values: "spacing",
1584
+ shorthand: ["py", "paddingY"]
1585
+ },
1586
+ paddingBlockEnd: {
1587
+ className: "pb",
1588
+ values: "spacing"
1589
+ },
1590
+ paddingBlockStart: {
1591
+ className: "pt",
1592
+ values: "spacing"
1593
+ },
1594
+ paddingInline: {
1595
+ className: "px",
1596
+ values: "spacing",
1597
+ shorthand: ["paddingX", "px"]
1598
+ },
1599
+ paddingInlineEnd: {
1600
+ className: "pe",
1601
+ shorthand: ["pe", "paddingEnd"],
1602
+ values: "spacing"
1603
+ },
1604
+ paddingInlineStart: {
1605
+ className: "ps",
1606
+ shorthand: ["ps", "paddingStart"],
1607
+ values: "spacing"
1608
+ },
1609
+ marginLeft: {
1610
+ className: "ml",
1611
+ shorthand: "ml",
1612
+ values: marginValues
1613
+ },
1614
+ marginRight: {
1615
+ className: "mr",
1616
+ shorthand: "mr",
1617
+ values: marginValues
1618
+ },
1619
+ marginTop: {
1620
+ className: "mt",
1621
+ shorthand: "mt",
1622
+ values: marginValues
1623
+ },
1624
+ marginBottom: {
1625
+ className: "mb",
1626
+ shorthand: "mb",
1627
+ values: marginValues
1628
+ },
1629
+ margin: {
1630
+ className: "m",
1631
+ shorthand: "m",
1632
+ values: marginValues
1633
+ },
1634
+ marginBlock: {
1635
+ className: "my",
1636
+ values: marginValues,
1637
+ shorthand: ["my", "marginY"]
1638
+ },
1639
+ marginBlockEnd: {
1640
+ className: "mb",
1641
+ values: marginValues
1642
+ },
1643
+ marginBlockStart: {
1644
+ className: "mt",
1645
+ values: marginValues
1646
+ },
1647
+ marginInline: {
1648
+ className: "mx",
1649
+ values: marginValues,
1650
+ shorthand: ["mx", "marginX"]
1651
+ },
1652
+ marginInlineEnd: {
1653
+ className: "me",
1654
+ shorthand: ["me", "marginEnd"],
1655
+ values: marginValues
1656
+ },
1657
+ marginInlineStart: {
1658
+ className: "ms",
1659
+ shorthand: ["ms", "marginStart"],
1660
+ values: marginValues
1661
+ }
1662
+ };
1663
+ var svg = {
1664
+ fill: {
1665
+ className: "fill",
1666
+ values: "colors"
1667
+ },
1668
+ stroke: {
1669
+ className: "stroke",
1670
+ values: "colors"
1671
+ },
1672
+ strokeWidth: {
1673
+ className: "stroke-w",
1674
+ values: "borderWidths"
1675
+ }
1676
+ };
1677
+ var tables = {
1678
+ borderCollapse: {
1679
+ className: "border"
1680
+ },
1681
+ borderSpacing: {
1682
+ className: "border-spacing",
1683
+ values: "spacing"
1684
+ },
1685
+ borderSpacingX: {
1686
+ className: "border-spacing-x",
1687
+ values: "spacing",
1688
+ transform(value) {
1689
+ return {
1690
+ borderSpacing: `${value} var(--border-spacing-y)`
1691
+ };
1692
+ }
1693
+ },
1694
+ borderSpacingY: {
1695
+ className: "border-spacing-y",
1696
+ values: "spacing",
1697
+ transform(value) {
1698
+ return {
1699
+ borderSpacing: `var(--border-spacing-x) ${value}`
1700
+ };
1701
+ }
1702
+ },
1703
+ tableLayout: {
1704
+ className: "table"
1705
+ }
1706
+ };
1707
+ var positiveFractions = {
1708
+ "1/2": "50%",
1709
+ "1/3": "33.333333%",
1710
+ "2/3": "66.666667%",
1711
+ "1/4": "25%",
1712
+ "2/4": "50%",
1713
+ "3/4": "75%",
1714
+ full: "100%"
1715
+ };
1716
+ var negativeFractions = Object.fromEntries(
1717
+ Object.entries(positiveFractions).map(([key, value]) => [`-${key}`, `-${value}`])
1718
+ );
1719
+ var fractions = { ...positiveFractions, ...negativeFractions };
1720
+ var transforms = {
1721
+ transformOrigin: {
1722
+ className: "origin"
1723
+ },
1724
+ scale: {
1725
+ className: "scale",
1726
+ property: "scale",
1727
+ values: {
1728
+ auto: "var(--scale-x) var(--scale-y)"
1729
+ }
1730
+ },
1731
+ scaleX: {
1732
+ className: "scale-x",
1733
+ transform(value) {
1734
+ return {
1735
+ "--scale-x": value
1736
+ };
1737
+ }
1738
+ },
1739
+ scaleY: {
1740
+ className: "scale-y",
1741
+ transform(value) {
1742
+ return {
1743
+ "--scale-y": value
1744
+ };
1745
+ }
1746
+ },
1747
+ translate: {
1748
+ className: "translate",
1749
+ property: "translate",
1750
+ values: {
1751
+ auto: "var(--translate-x) var(--translate-y)"
1752
+ }
1753
+ },
1754
+ translateX: {
1755
+ shorthand: "x",
1756
+ className: "translate-x",
1757
+ values(theme2) {
1758
+ return {
1759
+ ...theme2("spacing"),
1760
+ ...fractions
1761
+ };
1762
+ },
1763
+ transform(value) {
1764
+ return {
1765
+ "--translate-x": value
1766
+ };
1767
+ }
1768
+ },
1769
+ translateY: {
1770
+ shorthand: "y",
1771
+ className: "translate-y",
1772
+ values(theme2) {
1773
+ return {
1774
+ ...theme2("spacing"),
1775
+ ...fractions
1776
+ };
1777
+ },
1778
+ transform(value) {
1779
+ return {
1780
+ "--translate-y": value
1781
+ };
1782
+ }
1783
+ }
1784
+ };
1785
+ var createTransition = (value) => ({
1786
+ transitionProperty: `var(--transition-prop, ${value})`,
1787
+ transitionTimingFunction: "var(--transition-easing, cubic-bezier(0.4, 0, 0.2, 1))",
1788
+ transitionDuration: "var(--transition-duration, 150ms)"
1789
+ });
1790
+ var transitionMap = {
1791
+ all: createTransition("all"),
1792
+ common: createTransition(
1793
+ "color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter"
1794
+ ),
1795
+ background: createTransition("background, background-color"),
1796
+ colors: createTransition("color, background-color, border-color, outline-color, text-decoration-color, fill, stroke"),
1797
+ opacity: createTransition("opacity"),
1798
+ shadow: createTransition("box-shadow"),
1799
+ transform: createTransition("transform")
1800
+ };
1801
+ var transitions = {
1802
+ transitionTimingFunction: {
1803
+ className: "ease",
1804
+ values: "easings",
1805
+ transform(value) {
1806
+ return {
1807
+ "--transition-easing": value,
1808
+ transitionTimingFunction: value
1809
+ };
1810
+ }
1811
+ },
1812
+ transitionDelay: {
1813
+ className: "delay",
1814
+ values: "durations"
1815
+ },
1816
+ transitionDuration: {
1817
+ className: "duration",
1818
+ values: "durations",
1819
+ transform(value) {
1820
+ return {
1821
+ "--transition-duration": value,
1822
+ transitionDuration: value
1823
+ };
1824
+ }
1825
+ },
1826
+ transitionProperty: {
1827
+ className: "transition-prop",
1828
+ transform(value) {
1829
+ return {
1830
+ "--transition-prop": value,
1831
+ transitionProperty: value
1832
+ };
1833
+ }
1834
+ },
1835
+ transition: {
1836
+ className: "transition",
1837
+ values: Object.keys(transitionMap),
1838
+ transform(value) {
1839
+ return transitionMap[value] ?? { transition: value };
1840
+ }
1841
+ },
1842
+ animation: {
1843
+ className: "animation",
1844
+ values: "animations"
1845
+ },
1846
+ animationName: {
1847
+ className: "animation-name",
1848
+ values: "animationName"
1849
+ },
1850
+ animationDelay: {
1851
+ className: "animation-delay",
1852
+ values: "durations"
1853
+ }
1854
+ };
1855
+ var typography = {
1856
+ color: {
1857
+ className: "text",
1858
+ values: "colors"
1859
+ },
1860
+ fontFamily: {
1861
+ className: "font",
1862
+ values: "fonts"
1863
+ },
1864
+ fontSize: {
1865
+ className: "fs",
1866
+ values: "fontSizes"
1867
+ },
1868
+ fontWeight: {
1869
+ className: "font",
1870
+ values: "fontWeights"
1871
+ },
1872
+ fontSmoothing: {
1873
+ className: "smoothing",
1874
+ values: {
1875
+ antialiased: "antialiased",
1876
+ "subpixel-antialiased": "auto"
1877
+ },
1878
+ transform(value) {
1879
+ return {
1880
+ WebkitFontSmoothing: value
1881
+ };
1882
+ }
1883
+ },
1884
+ fontVariantNumeric: {
1885
+ className: "numeric"
1886
+ },
1887
+ letterSpacing: {
1888
+ className: "tracking",
1889
+ values: "letterSpacings"
1890
+ },
1891
+ lineHeight: {
1892
+ className: "leading",
1893
+ values: "lineHeights"
1894
+ },
1895
+ textAlign: {
1896
+ className: "text"
1897
+ },
1898
+ textDecoration: {
1899
+ className: "text-decor"
1900
+ },
1901
+ textDecorationColor: {
1902
+ className: "text-decor",
1903
+ values: "colors"
1904
+ },
1905
+ textEmphasisColor: {
1906
+ className: "text-emphasis",
1907
+ values: "colors"
1908
+ },
1909
+ textDecorationStyle: {
1910
+ className: "decoration"
1911
+ },
1912
+ textDecorationThickness: {
1913
+ className: "decoration"
1914
+ },
1915
+ textUnderlineOffset: {
1916
+ className: "underline-offset"
1917
+ },
1918
+ textTransform: {
1919
+ className: "text"
1920
+ },
1921
+ textIndent: {
1922
+ className: "indent",
1923
+ values: "spacing"
1924
+ },
1925
+ textShadow: {
1926
+ className: "text-shadow",
1927
+ values: "shadows"
1928
+ },
1929
+ textOverflow: {
1930
+ className: "text"
1931
+ },
1932
+ verticalAlign: {
1933
+ className: "align"
1934
+ },
1935
+ wordBreak: {
1936
+ className: "break"
1937
+ },
1938
+ textWrap: {
1939
+ className: "text",
1940
+ values: ["wrap", "balance", "nowrap"],
1941
+ transform(value) {
1942
+ return { textWrap: value };
1943
+ }
1944
+ },
1945
+ truncate: {
1946
+ className: "truncate",
1947
+ values: { type: "boolean" },
1948
+ transform(value) {
1949
+ if (!value)
1950
+ return {};
1951
+ return {
1952
+ overflow: "hidden",
1953
+ textOverflow: "ellipsis",
1954
+ whiteSpace: "nowrap"
1955
+ };
1956
+ }
1957
+ },
1958
+ lineClamp: {
1959
+ className: "clamp",
1960
+ transform(value) {
1961
+ if (value === "none") {
1962
+ return {
1963
+ WebkitLineClamp: "unset"
1964
+ };
1965
+ }
1966
+ return {
1967
+ overflow: "hidden",
1968
+ display: "-webkit-box",
1969
+ WebkitLineClamp: value,
1970
+ WebkitBoxOrient: "vertical"
1971
+ };
1972
+ }
1973
+ }
1974
+ };
1975
+ var polyfill = {
1976
+ appearance: {
1977
+ className: "appearance",
1978
+ transform(value) {
1979
+ return { appearance: value, WebkitAppearance: value };
1980
+ }
1981
+ },
1982
+ backfaceVisibility: {
1983
+ className: "backface",
1984
+ transform(value) {
1985
+ return { backfaceVisibility: value, WebkitBackfaceVisibility: value };
1986
+ }
1987
+ },
1988
+ clipPath: {
1989
+ className: "clip-path",
1990
+ transform(value) {
1991
+ return { clipPath: value, WebkitClipPath: value };
1992
+ }
1993
+ },
1994
+ hyphens: {
1995
+ className: "hyphens",
1996
+ transform(value) {
1997
+ return { hyphens: value, WebkitHyphens: value };
1998
+ }
1999
+ },
2000
+ mask: {
2001
+ className: "mask",
2002
+ transform(value) {
2003
+ return { mask: value, WebkitMask: value };
2004
+ }
2005
+ },
2006
+ maskImage: {
2007
+ className: "mask-image",
2008
+ transform(value) {
2009
+ return { maskImage: value, WebkitMaskImage: value };
2010
+ }
2011
+ },
2012
+ maskSize: {
2013
+ className: "mask-size",
2014
+ transform(value) {
2015
+ return { maskSize: value, WebkitMaskSize: value };
2016
+ }
2017
+ },
2018
+ textSizeAdjust: {
2019
+ className: "text-size-adjust",
2020
+ transform(value) {
2021
+ return { textSizeAdjust: value, WebkitTextSizeAdjust: value };
2022
+ }
2023
+ }
2024
+ };
2025
+ var utilities = Object.assign(
2026
+ {},
2027
+ layout,
2028
+ display,
2029
+ flexGrid,
2030
+ spacing,
2031
+ outline,
2032
+ divide,
2033
+ sizing,
2034
+ typography,
2035
+ list,
2036
+ background,
2037
+ border,
2038
+ effects,
2039
+ tables,
2040
+ transitions,
2041
+ transforms,
2042
+ interactivity,
2043
+ svg,
2044
+ helpers,
2045
+ polyfill
2046
+ );
2047
+ function definePattern(config2) {
2048
+ return config2;
2049
+ }
2050
+ var box = definePattern({
2051
+ transform(props) {
2052
+ return props;
2053
+ }
2054
+ });
2055
+ var flex = definePattern({
2056
+ properties: {
2057
+ align: { type: "property", value: "alignItems" },
2058
+ justify: { type: "property", value: "justifyContent" },
2059
+ direction: { type: "property", value: "flexDirection" },
2060
+ wrap: { type: "property", value: "flexWrap" },
2061
+ basis: { type: "property", value: "flexBasis" },
2062
+ grow: { type: "property", value: "flexGrow" },
2063
+ shrink: { type: "property", value: "flexShrink" }
2064
+ },
2065
+ transform(props) {
2066
+ const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
2067
+ return {
2068
+ display: "flex",
2069
+ flexDirection: direction,
2070
+ alignItems: align,
2071
+ justifyContent: justify,
2072
+ flexWrap: wrap2,
2073
+ flexBasis: basis,
2074
+ flexGrow: grow,
2075
+ flexShrink: shrink,
2076
+ ...rest
2077
+ };
2078
+ }
2079
+ });
2080
+ var stack = definePattern({
2081
+ properties: {
2082
+ align: { type: "property", value: "alignItems" },
2083
+ justify: { type: "property", value: "justifyContent" },
2084
+ direction: { type: "property", value: "flexDirection" },
2085
+ gap: { type: "property", value: "gap" }
2086
+ },
2087
+ transform(props) {
2088
+ const { align, justify, direction = "column", gap = "10px", ...rest } = props;
2089
+ return {
2090
+ display: "flex",
2091
+ flexDirection: direction,
2092
+ alignItems: align,
2093
+ justifyContent: justify,
2094
+ gap,
2095
+ ...rest
2096
+ };
2097
+ }
2098
+ });
2099
+ var vstack = definePattern({
2100
+ jsxName: "VStack",
2101
+ properties: {
2102
+ justify: { type: "property", value: "justifyContent" },
2103
+ gap: { type: "property", value: "gap" }
2104
+ },
2105
+ transform(props) {
2106
+ const { justify, gap = "10px", ...rest } = props;
2107
+ return {
2108
+ display: "flex",
2109
+ alignItems: "center",
2110
+ justifyContent: justify,
2111
+ gap,
2112
+ flexDirection: "column",
2113
+ ...rest
2114
+ };
2115
+ }
2116
+ });
2117
+ var hstack = definePattern({
2118
+ jsxName: "HStack",
2119
+ properties: {
2120
+ justify: { type: "property", value: "justifyContent" },
2121
+ gap: { type: "property", value: "gap" }
2122
+ },
2123
+ transform(props) {
2124
+ const { justify, gap = "10px", ...rest } = props;
2125
+ return {
2126
+ display: "flex",
2127
+ alignItems: "center",
2128
+ justifyContent: justify,
2129
+ gap,
2130
+ flexDirection: "row",
2131
+ ...rest
2132
+ };
2133
+ }
2134
+ });
2135
+ var spacer = definePattern({
2136
+ properties: {
2137
+ size: { type: "token", value: "spacing" }
2138
+ },
2139
+ transform(props, { map }) {
2140
+ const { size, ...rest } = props;
2141
+ return {
2142
+ alignSelf: "stretch",
2143
+ justifySelf: "stretch",
2144
+ flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
2145
+ ...rest
2146
+ };
2147
+ }
2148
+ });
2149
+ var circle = definePattern({
2150
+ properties: {
2151
+ size: { type: "property", value: "width" }
2152
+ },
2153
+ transform(props) {
2154
+ const { size, ...rest } = props;
2155
+ return {
2156
+ display: "flex",
2157
+ alignItems: "center",
2158
+ justifyContent: "center",
2159
+ flex: "0 0 auto",
2160
+ width: size,
2161
+ height: size,
2162
+ borderRadius: "9999px",
2163
+ ...rest
2164
+ };
2165
+ }
2166
+ });
2167
+ var square = definePattern({
2168
+ properties: {
2169
+ size: { type: "property", value: "width" }
2170
+ },
2171
+ transform(props) {
2172
+ const { size, ...rest } = props;
2173
+ return {
2174
+ display: "flex",
2175
+ alignItems: "center",
2176
+ justifyContent: "center",
2177
+ flex: "0 0 auto",
2178
+ width: size,
2179
+ height: size,
2180
+ ...rest
2181
+ };
2182
+ }
2183
+ });
2184
+ var grid = definePattern({
2185
+ properties: {
2186
+ gap: { type: "property", value: "gap" },
2187
+ columnGap: { type: "property", value: "gap" },
2188
+ rowGap: { type: "property", value: "gap" },
2189
+ columns: { type: "number" },
2190
+ minChildWidth: { type: "token", value: "sizes", property: "width" }
2191
+ },
2192
+ transform(props, { map }) {
2193
+ const regex = /\d+(cm|in|pt|em|px|rem|vh|vmax|vmin|vw|ch|lh|%)$/;
2194
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", columns, minChildWidth, ...rest } = props;
2195
+ const getValue = (v) => regex.test(v) ? v : `token(sizes.${v}, ${v})`;
2196
+ return {
2197
+ display: "grid",
2198
+ gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
2199
+ gap,
2200
+ columnGap,
2201
+ rowGap,
2202
+ ...rest
2203
+ };
2204
+ }
2205
+ });
2206
+ var gridItem = definePattern({
2207
+ properties: {
2208
+ colSpan: { type: "number" },
2209
+ rowSpan: { type: "number" },
2210
+ colStart: { type: "number" },
2211
+ rowStart: { type: "number" },
2212
+ colEnd: { type: "number" },
2213
+ rowEnd: { type: "number" }
2214
+ },
2215
+ transform(props, { map }) {
2216
+ const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
2217
+ const spanFn = (v) => v === "auto" ? v : `span ${v}`;
2218
+ return {
2219
+ gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
2220
+ gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
2221
+ gridColumnStart: colStart,
2222
+ gridColumnEnd: colEnd,
2223
+ gridRowStart: rowStart,
2224
+ gridRowEnd: rowEnd,
2225
+ ...rest
2226
+ };
2227
+ }
2228
+ });
2229
+ var wrap = definePattern({
2230
+ properties: {
2231
+ gap: { type: "property", value: "gap" },
2232
+ rowGap: { type: "property", value: "gap" },
2233
+ columnGap: { type: "property", value: "gap" },
2234
+ align: { type: "property", value: "alignItems" },
2235
+ justify: { type: "property", value: "justifyContent" }
2236
+ },
2237
+ transform(props) {
2238
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props;
2239
+ return {
2240
+ display: "flex",
2241
+ flexWrap: "wrap",
2242
+ alignItems: align,
2243
+ justifyContent: justify,
2244
+ gap,
2245
+ columnGap,
2246
+ rowGap,
2247
+ ...rest
2248
+ };
2249
+ }
2250
+ });
2251
+ var container = definePattern({
2252
+ transform(props) {
2253
+ return {
2254
+ position: "relative",
2255
+ maxWidth: "8xl",
2256
+ mx: "auto",
2257
+ px: { base: "4", md: "6", lg: "8" },
2258
+ ...props
2259
+ };
2260
+ }
2261
+ });
2262
+ var center = definePattern({
2263
+ properties: {
2264
+ inline: { type: "boolean" }
2265
+ },
2266
+ transform(props) {
2267
+ const { inline, ...rest } = props;
2268
+ return {
2269
+ display: inline ? "inline-flex" : "flex",
2270
+ alignItems: "center",
2271
+ justifyContent: "center",
2272
+ ...rest
2273
+ };
2274
+ }
2275
+ });
2276
+ var aspectRatio = definePattern({
2277
+ properties: {
2278
+ ratio: { type: "number" }
2279
+ },
2280
+ blocklist: ["aspectRatio"],
2281
+ transform(props, { map }) {
2282
+ const { ratio = 4 / 3, ...rest } = props;
2283
+ return {
2284
+ position: "relative",
2285
+ _before: {
2286
+ content: `""`,
2287
+ display: "block",
2288
+ height: "0",
2289
+ paddingBottom: map(ratio, (r) => `${1 / r * 100}%`)
2290
+ },
2291
+ "&>*": {
2292
+ display: "flex",
2293
+ justifyContent: "center",
2294
+ alignItems: "center",
2295
+ overflow: "hidden",
2296
+ position: "absolute",
2297
+ inset: "0",
2298
+ width: "100%",
2299
+ height: "100%"
2300
+ },
2301
+ "&>img, &>video": {
2302
+ objectFit: "cover"
2303
+ },
2304
+ ...rest
2305
+ };
2306
+ }
2307
+ });
2308
+ var divider = definePattern({
2309
+ properties: {
2310
+ orientation: { type: "enum", value: ["horizontal", "vertical"] },
2311
+ thickness: { type: "token", value: "sizes", property: "borderWidth" },
2312
+ color: { type: "token", value: "colors", property: "borderColor" }
2313
+ },
2314
+ transform(props, { map }) {
2315
+ const { orientation = "horizontal", thickness = "1px", color, ...rest } = props;
2316
+ return {
2317
+ "--thickness": thickness,
2318
+ width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
2319
+ height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
2320
+ borderBlockEndWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
2321
+ borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
2322
+ borderColor: color,
2323
+ ...rest
2324
+ };
2325
+ }
2326
+ });
2327
+ var linkBox = definePattern({
2328
+ transform(props) {
2329
+ return {
2330
+ position: "relative",
2331
+ "& :where(a, abbr)": {
2332
+ position: "relative",
2333
+ zIndex: "1"
2334
+ },
2335
+ ...props
2336
+ };
2337
+ }
2338
+ });
2339
+ var linkOverlay = definePattern({
2340
+ jsxElement: "a",
2341
+ transform(props) {
2342
+ return {
2343
+ position: "static",
2344
+ _before: {
2345
+ content: '""',
2346
+ display: "block",
2347
+ position: "absolute",
2348
+ cursor: "inherit",
2349
+ inset: "0",
2350
+ zIndex: "0",
2351
+ ...props["_before"]
2352
+ },
2353
+ ...props
2354
+ };
2355
+ }
2356
+ });
2357
+ var float = definePattern({
2358
+ properties: {
2359
+ offsetX: { type: "token", value: "spacing", property: "left" },
2360
+ offsetY: { type: "token", value: "spacing", property: "top" },
2361
+ offset: { type: "token", value: "spacing", property: "top" },
2362
+ placement: {
2363
+ type: "enum",
2364
+ value: [
2365
+ "bottom-end",
2366
+ "bottom-start",
2367
+ "top-end",
2368
+ "top-start",
2369
+ "bottom-center",
2370
+ "top-center",
2371
+ "middle-center",
2372
+ "middle-end",
2373
+ "middle-start"
2374
+ ]
2375
+ }
2376
+ },
2377
+ transform(props, { map }) {
2378
+ const { offset = "0", offsetX = offset, offsetY = offset, placement = "top-end", ...rest } = props;
2379
+ return {
2380
+ display: "inline-flex",
2381
+ justifyContent: "center",
2382
+ alignItems: "center",
2383
+ position: "absolute",
2384
+ insetBlockStart: map(placement, (v) => {
2385
+ const [side] = v.split("-");
2386
+ const map2 = { top: offsetY, middle: "50%", bottom: "auto" };
2387
+ return map2[side];
2388
+ }),
2389
+ insetBlockEnd: map(placement, (v) => {
2390
+ const [side] = v.split("-");
2391
+ const map2 = { top: "auto", middle: "50%", bottom: offsetY };
2392
+ return map2[side];
2393
+ }),
2394
+ insetInlineStart: map(placement, (v) => {
2395
+ const [, align] = v.split("-");
2396
+ const map2 = { start: offsetX, center: "50%", end: "auto" };
2397
+ return map2[align];
2398
+ }),
2399
+ insetInlineEnd: map(placement, (v) => {
2400
+ const [, align] = v.split("-");
2401
+ const map2 = { start: "auto", center: "50%", end: offsetX };
2402
+ return map2[align];
2403
+ }),
2404
+ translate: map(placement, (v) => {
2405
+ const [side, align] = v.split("-");
2406
+ const mapX = { start: "-50%", center: "-50%", end: "50%" };
2407
+ const mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
2408
+ return `${mapX[align]} ${mapY[side]}`;
2409
+ }),
2410
+ ...rest
2411
+ };
2412
+ }
2413
+ });
2414
+ var bleed = definePattern({
2415
+ properties: {
2416
+ inline: { type: "property", value: "marginInline" },
2417
+ block: { type: "property", value: "marginBlock" }
2418
+ },
2419
+ transform(props) {
2420
+ const { inline = "0", block = "0", ...rest } = props;
2421
+ return {
2422
+ "--bleed-x": `spacing.${inline}`,
2423
+ "--bleed-y": `spacing.${block}`,
2424
+ marginInline: "calc(var(--bleed-x, 0) * -1)",
2425
+ marginBlock: "calc(var(--bleed-y, 0) * -1)",
2426
+ ...rest
2427
+ };
2428
+ }
2429
+ });
2430
+ var visuallyHidden = definePattern({
2431
+ transform(props) {
2432
+ return {
2433
+ srOnly: true,
2434
+ ...props
2435
+ };
2436
+ }
2437
+ });
2438
+ var patterns = {
2439
+ box,
2440
+ flex,
2441
+ stack,
2442
+ vstack,
2443
+ hstack,
2444
+ spacer,
2445
+ square,
2446
+ circle,
2447
+ center,
2448
+ linkBox,
2449
+ linkOverlay,
2450
+ aspectRatio,
2451
+ grid,
2452
+ gridItem,
2453
+ wrap,
2454
+ container,
2455
+ divider,
2456
+ float,
2457
+ bleed,
2458
+ visuallyHidden
2459
+ };
2460
+ var definePreset = (preset22) => preset22;
2461
+ var preset = definePreset({
2462
+ conditions,
2463
+ utilities,
2464
+ patterns
2465
+ });
2466
+ var src_default = preset;
2467
+
2468
+ // ../node_modules/.pnpm/@pandacss+preset-panda@0.28.0/node_modules/@pandacss/preset-panda/dist/index.mjs
2469
+ var breakpoints = {
2470
+ sm: "640px",
2471
+ md: "768px",
2472
+ lg: "1024px",
2473
+ xl: "1280px",
2474
+ "2xl": "1536px"
2475
+ };
2476
+ var keyframes = {
2477
+ spin: {
2478
+ to: {
2479
+ transform: "rotate(360deg)"
2480
+ }
2481
+ },
2482
+ ping: {
2483
+ "75%, 100%": {
2484
+ transform: "scale(2)",
2485
+ opacity: "0"
2486
+ }
2487
+ },
2488
+ pulse: {
2489
+ "50%": {
2490
+ opacity: ".5"
2491
+ }
2492
+ },
2493
+ bounce: {
2494
+ "0%, 100%": {
2495
+ transform: "translateY(-25%)",
2496
+ animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
2497
+ },
2498
+ "50%": {
2499
+ transform: "none",
2500
+ animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
2501
+ }
2502
+ }
2503
+ };
2504
+ var animations = {
2505
+ spin: { value: "spin 1s linear infinite" },
2506
+ ping: { value: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite" },
2507
+ pulse: { value: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite" },
2508
+ bounce: { value: "bounce 1s infinite" }
2509
+ };
2510
+ var aspectRatios = {
2511
+ square: { value: "1 / 1" },
2512
+ landscape: { value: "4 / 3" },
2513
+ portrait: { value: "3 / 4" },
2514
+ wide: { value: "16 / 9" },
2515
+ ultrawide: { value: "18 / 5" },
2516
+ golden: { value: "1.618 / 1" }
2517
+ };
2518
+ var borders = {
2519
+ none: { value: "none" }
2520
+ };
2521
+ var colors = {
2522
+ current: { value: "currentColor" },
2523
+ black: { value: "#000" },
2524
+ white: { value: "#fff" },
2525
+ transparent: { value: "rgb(0 0 0 / 0)" },
2526
+ rose: {
2527
+ 50: { value: "#fff1f2" },
2528
+ 100: { value: "#ffe4e6" },
2529
+ 200: { value: "#fecdd3" },
2530
+ 300: { value: "#fda4af" },
2531
+ 400: { value: "#fb7185" },
2532
+ 500: { value: "#f43f5e" },
2533
+ 600: { value: "#e11d48" },
2534
+ 700: { value: "#be123c" },
2535
+ 800: { value: "#9f1239" },
2536
+ 900: { value: "#881337" },
2537
+ 950: { value: "#4c0519" }
2538
+ },
2539
+ pink: {
2540
+ 50: { value: "#fdf2f8" },
2541
+ 100: { value: "#fce7f3" },
2542
+ 200: { value: "#fbcfe8" },
2543
+ 300: { value: "#f9a8d4" },
2544
+ 400: { value: "#f472b6" },
2545
+ 500: { value: "#ec4899" },
2546
+ 600: { value: "#db2777" },
2547
+ 700: { value: "#be185d" },
2548
+ 800: { value: "#9d174d" },
2549
+ 900: { value: "#831843" },
2550
+ 950: { value: "#500724" }
2551
+ },
2552
+ fuchsia: {
2553
+ 50: { value: "#fdf4ff" },
2554
+ 100: { value: "#fae8ff" },
2555
+ 200: { value: "#f5d0fe" },
2556
+ 300: { value: "#f0abfc" },
2557
+ 400: { value: "#e879f9" },
2558
+ 500: { value: "#d946ef" },
2559
+ 600: { value: "#c026d3" },
2560
+ 700: { value: "#a21caf" },
2561
+ 800: { value: "#86198f" },
2562
+ 900: { value: "#701a75" },
2563
+ 950: { value: "#4a044e" }
2564
+ },
2565
+ purple: {
2566
+ 50: { value: "#faf5ff" },
2567
+ 100: { value: "#f3e8ff" },
2568
+ 200: { value: "#e9d5ff" },
2569
+ 300: { value: "#d8b4fe" },
2570
+ 400: { value: "#c084fc" },
2571
+ 500: { value: "#a855f7" },
2572
+ 600: { value: "#9333ea" },
2573
+ 700: { value: "#7e22ce" },
2574
+ 800: { value: "#6b21a8" },
2575
+ 900: { value: "#581c87" },
2576
+ 950: { value: "#3b0764" }
2577
+ },
2578
+ violet: {
2579
+ 50: { value: "#f5f3ff" },
2580
+ 100: { value: "#ede9fe" },
2581
+ 200: { value: "#ddd6fe" },
2582
+ 300: { value: "#c4b5fd" },
2583
+ 400: { value: "#a78bfa" },
2584
+ 500: { value: "#8b5cf6" },
2585
+ 600: { value: "#7c3aed" },
2586
+ 700: { value: "#6d28d9" },
2587
+ 800: { value: "#5b21b6" },
2588
+ 900: { value: "#4c1d95" },
2589
+ 950: { value: "#2e1065" }
2590
+ },
2591
+ indigo: {
2592
+ 50: { value: "#eef2ff" },
2593
+ 100: { value: "#e0e7ff" },
2594
+ 200: { value: "#c7d2fe" },
2595
+ 300: { value: "#a5b4fc" },
2596
+ 400: { value: "#818cf8" },
2597
+ 500: { value: "#6366f1" },
2598
+ 600: { value: "#4f46e5" },
2599
+ 700: { value: "#4338ca" },
2600
+ 800: { value: "#3730a3" },
2601
+ 900: { value: "#312e81" },
2602
+ 950: { value: "#1e1b4b" }
2603
+ },
2604
+ blue: {
2605
+ 50: { value: "#eff6ff" },
2606
+ 100: { value: "#dbeafe" },
2607
+ 200: { value: "#bfdbfe" },
2608
+ 300: { value: "#93c5fd" },
2609
+ 400: { value: "#60a5fa" },
2610
+ 500: { value: "#3b82f6" },
2611
+ 600: { value: "#2563eb" },
2612
+ 700: { value: "#1d4ed8" },
2613
+ 800: { value: "#1e40af" },
2614
+ 900: { value: "#1e3a8a" },
2615
+ 950: { value: "#172554" }
2616
+ },
2617
+ sky: {
2618
+ 50: { value: "#f0f9ff" },
2619
+ 100: { value: "#e0f2fe" },
2620
+ 200: { value: "#bae6fd" },
2621
+ 300: { value: "#7dd3fc" },
2622
+ 400: { value: "#38bdf8" },
2623
+ 500: { value: "#0ea5e9" },
2624
+ 600: { value: "#0284c7" },
2625
+ 700: { value: "#0369a1" },
2626
+ 800: { value: "#075985" },
2627
+ 900: { value: "#0c4a6e" },
2628
+ 950: { value: "#082f49" }
2629
+ },
2630
+ cyan: {
2631
+ 50: { value: "#ecfeff" },
2632
+ 100: { value: "#cffafe" },
2633
+ 200: { value: "#a5f3fc" },
2634
+ 300: { value: "#67e8f9" },
2635
+ 400: { value: "#22d3ee" },
2636
+ 500: { value: "#06b6d4" },
2637
+ 600: { value: "#0891b2" },
2638
+ 700: { value: "#0e7490" },
2639
+ 800: { value: "#155e75" },
2640
+ 900: { value: "#164e63" },
2641
+ 950: { value: "#083344" }
2642
+ },
2643
+ teal: {
2644
+ 50: { value: "#f0fdfa" },
2645
+ 100: { value: "#ccfbf1" },
2646
+ 200: { value: "#99f6e4" },
2647
+ 300: { value: "#5eead4" },
2648
+ 400: { value: "#2dd4bf" },
2649
+ 500: { value: "#14b8a6" },
2650
+ 600: { value: "#0d9488" },
2651
+ 700: { value: "#0f766e" },
2652
+ 800: { value: "#115e59" },
2653
+ 900: { value: "#134e4a" },
2654
+ 950: { value: "#042f2e" }
2655
+ },
2656
+ emerald: {
2657
+ 50: { value: "#ecfdf5" },
2658
+ 100: { value: "#d1fae5" },
2659
+ 200: { value: "#a7f3d0" },
2660
+ 300: { value: "#6ee7b7" },
2661
+ 400: { value: "#34d399" },
2662
+ 500: { value: "#10b981" },
2663
+ 600: { value: "#059669" },
2664
+ 700: { value: "#047857" },
2665
+ 800: { value: "#065f46" },
2666
+ 900: { value: "#064e3b" },
2667
+ 950: { value: "#022c22" }
2668
+ },
2669
+ green: {
2670
+ 50: { value: "#f0fdf4" },
2671
+ 100: { value: "#dcfce7" },
2672
+ 200: { value: "#bbf7d0" },
2673
+ 300: { value: "#86efac" },
2674
+ 400: { value: "#4ade80" },
2675
+ 500: { value: "#22c55e" },
2676
+ 600: { value: "#16a34a" },
2677
+ 700: { value: "#15803d" },
2678
+ 800: { value: "#166534" },
2679
+ 900: { value: "#14532d" },
2680
+ 950: { value: "#052e16" }
2681
+ },
2682
+ lime: {
2683
+ 50: { value: "#f7fee7" },
2684
+ 100: { value: "#ecfccb" },
2685
+ 200: { value: "#d9f99d" },
2686
+ 300: { value: "#bef264" },
2687
+ 400: { value: "#a3e635" },
2688
+ 500: { value: "#84cc16" },
2689
+ 600: { value: "#65a30d" },
2690
+ 700: { value: "#4d7c0f" },
2691
+ 800: { value: "#3f6212" },
2692
+ 900: { value: "#365314" },
2693
+ 950: { value: "#1a2e05" }
2694
+ },
2695
+ yellow: {
2696
+ 50: { value: "#fefce8" },
2697
+ 100: { value: "#fef9c3" },
2698
+ 200: { value: "#fef08a" },
2699
+ 300: { value: "#fde047" },
2700
+ 400: { value: "#facc15" },
2701
+ 500: { value: "#eab308" },
2702
+ 600: { value: "#ca8a04" },
2703
+ 700: { value: "#a16207" },
2704
+ 800: { value: "#854d0e" },
2705
+ 900: { value: "#713f12" },
2706
+ 950: { value: "#422006" }
2707
+ },
2708
+ amber: {
2709
+ 50: { value: "#fffbeb" },
2710
+ 100: { value: "#fef3c7" },
2711
+ 200: { value: "#fde68a" },
2712
+ 300: { value: "#fcd34d" },
2713
+ 400: { value: "#fbbf24" },
2714
+ 500: { value: "#f59e0b" },
2715
+ 600: { value: "#d97706" },
2716
+ 700: { value: "#b45309" },
2717
+ 800: { value: "#92400e" },
2718
+ 900: { value: "#78350f" },
2719
+ 950: { value: "#451a03" }
2720
+ },
2721
+ orange: {
2722
+ 50: { value: "#fff7ed" },
2723
+ 100: { value: "#ffedd5" },
2724
+ 200: { value: "#fed7aa" },
2725
+ 300: { value: "#fdba74" },
2726
+ 400: { value: "#fb923c" },
2727
+ 500: { value: "#f97316" },
2728
+ 600: { value: "#ea580c" },
2729
+ 700: { value: "#c2410c" },
2730
+ 800: { value: "#9a3412" },
2731
+ 900: { value: "#7c2d12" },
2732
+ 950: { value: "#431407" }
2733
+ },
2734
+ red: {
2735
+ 50: { value: "#fef2f2" },
2736
+ 100: { value: "#fee2e2" },
2737
+ 200: { value: "#fecaca" },
2738
+ 300: { value: "#fca5a5" },
2739
+ 400: { value: "#f87171" },
2740
+ 500: { value: "#ef4444" },
2741
+ 600: { value: "#dc2626" },
2742
+ 700: { value: "#b91c1c" },
2743
+ 800: { value: "#991b1b" },
2744
+ 900: { value: "#7f1d1d" },
2745
+ 950: { value: "#450a0a" }
2746
+ },
2747
+ neutral: {
2748
+ 50: { value: "#fafafa" },
2749
+ 100: { value: "#f5f5f5" },
2750
+ 200: { value: "#e5e5e5" },
2751
+ 300: { value: "#d4d4d4" },
2752
+ 400: { value: "#a3a3a3" },
2753
+ 500: { value: "#737373" },
2754
+ 600: { value: "#525252" },
2755
+ 700: { value: "#404040" },
2756
+ 800: { value: "#262626" },
2757
+ 900: { value: "#171717" },
2758
+ 950: { value: "#0a0a0a" }
2759
+ },
2760
+ stone: {
2761
+ 50: { value: "#fafaf9" },
2762
+ 100: { value: "#f5f5f4" },
2763
+ 200: { value: "#e7e5e4" },
2764
+ 300: { value: "#d6d3d1" },
2765
+ 400: { value: "#a8a29e" },
2766
+ 500: { value: "#78716c" },
2767
+ 600: { value: "#57534e" },
2768
+ 700: { value: "#44403c" },
2769
+ 800: { value: "#292524" },
2770
+ 900: { value: "#1c1917" },
2771
+ 950: { value: "#0c0a09" }
2772
+ },
2773
+ zinc: {
2774
+ 50: { value: "#fafafa" },
2775
+ 100: { value: "#f4f4f5" },
2776
+ 200: { value: "#e4e4e7" },
2777
+ 300: { value: "#d4d4d8" },
2778
+ 400: { value: "#a1a1aa" },
2779
+ 500: { value: "#71717a" },
2780
+ 600: { value: "#52525b" },
2781
+ 700: { value: "#3f3f46" },
2782
+ 800: { value: "#27272a" },
2783
+ 900: { value: "#18181b" },
2784
+ 950: { value: "#09090b" }
2785
+ },
2786
+ gray: {
2787
+ 50: { value: "#f9fafb" },
2788
+ 100: { value: "#f3f4f6" },
2789
+ 200: { value: "#e5e7eb" },
2790
+ 300: { value: "#d1d5db" },
2791
+ 400: { value: "#9ca3af" },
2792
+ 500: { value: "#6b7280" },
2793
+ 600: { value: "#4b5563" },
2794
+ 700: { value: "#374151" },
2795
+ 800: { value: "#1f2937" },
2796
+ 900: { value: "#111827" },
2797
+ 950: { value: "#030712" }
2798
+ },
2799
+ slate: {
2800
+ 50: { value: "#f8fafc" },
2801
+ 100: { value: "#f1f5f9" },
2802
+ 200: { value: "#e2e8f0" },
2803
+ 300: { value: "#cbd5e1" },
2804
+ 400: { value: "#94a3b8" },
2805
+ 500: { value: "#64748b" },
2806
+ 600: { value: "#475569" },
2807
+ 700: { value: "#334155" },
2808
+ 800: { value: "#1e293b" },
2809
+ 900: { value: "#0f172a" },
2810
+ 950: { value: "#020617" }
2811
+ }
2812
+ };
2813
+ var shadows = {
2814
+ xs: { value: "0 1px 2px 0 rgb(0 0 0 / 0.05)" },
2815
+ sm: { value: ["0 1px 3px 0 rgb(0 0 0 / 0.1)", "0 1px 2px -1px rgb(0 0 0 / 0.1)"] },
2816
+ md: { value: ["0 4px 6px -1px rgb(0 0 0 / 0.1)", "0 2px 4px -2px rgb(0 0 0 / 0.1)"] },
2817
+ lg: { value: ["0 10px 15px -3px rgb(0 0 0 / 0.1)", "0 4px 6px -4px rgb(0 0 0 / 0.1)"] },
2818
+ xl: { value: ["0 20px 25px -5px rgb(0 0 0 / 0.1)", "0 8px 10px -6px rgb(0 0 0 / 0.1)"] },
2819
+ "2xl": { value: "0 25px 50px -12px rgb(0 0 0 / 0.25)" },
2820
+ inner: { value: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)" }
2821
+ };
2822
+ var spacing2 = {
2823
+ 0: { value: "0rem" },
2824
+ 0.5: { value: "0.125rem" },
2825
+ 1: { value: "0.25rem" },
2826
+ 1.5: { value: "0.375rem" },
2827
+ 2: { value: "0.5rem" },
2828
+ 2.5: { value: "0.625rem" },
2829
+ 3: { value: "0.75rem" },
2830
+ 3.5: { value: "0.875rem" },
2831
+ 4: { value: "1rem" },
2832
+ 5: { value: "1.25rem" },
2833
+ 6: { value: "1.5rem" },
2834
+ 7: { value: "1.75rem" },
2835
+ 8: { value: "2rem" },
2836
+ 9: { value: "2.25rem" },
2837
+ 10: { value: "2.5rem" },
2838
+ 11: { value: "2.75rem" },
2839
+ 12: { value: "3rem" },
2840
+ 14: { value: "3.5rem" },
2841
+ 16: { value: "4rem" },
2842
+ 20: { value: "5rem" },
2843
+ 24: { value: "6rem" },
2844
+ 28: { value: "7rem" },
2845
+ 32: { value: "8rem" },
2846
+ 36: { value: "9rem" },
2847
+ 40: { value: "10rem" },
2848
+ 44: { value: "11rem" },
2849
+ 48: { value: "12rem" },
2850
+ 52: { value: "13rem" },
2851
+ 56: { value: "14rem" },
2852
+ 60: { value: "15rem" },
2853
+ 64: { value: "16rem" },
2854
+ 72: { value: "18rem" },
2855
+ 80: { value: "20rem" },
2856
+ 96: { value: "24rem" }
2857
+ };
2858
+ var largeSizes = {
2859
+ xs: { value: "20rem" },
2860
+ sm: { value: "24rem" },
2861
+ md: { value: "28rem" },
2862
+ lg: { value: "32rem" },
2863
+ xl: { value: "36rem" },
2864
+ "2xl": { value: "42rem" },
2865
+ "3xl": { value: "48rem" },
2866
+ "4xl": { value: "56rem" },
2867
+ "5xl": { value: "64rem" },
2868
+ "6xl": { value: "72rem" },
2869
+ "7xl": { value: "80rem" },
2870
+ "8xl": { value: "90rem" },
2871
+ prose: { value: "65ch" }
2872
+ };
2873
+ var sizes = {
2874
+ ...spacing2,
2875
+ ...largeSizes,
2876
+ full: { value: "100%" },
2877
+ min: { value: "min-content" },
2878
+ max: { value: "max-content" },
2879
+ fit: { value: "fit-content" }
2880
+ };
2881
+ var fontSizes = {
2882
+ "2xs": { value: "0.5rem" },
2883
+ xs: { value: "0.75rem" },
2884
+ sm: { value: "0.875rem" },
2885
+ md: { value: "1rem" },
2886
+ lg: { value: "1.125rem" },
2887
+ xl: { value: "1.25rem" },
2888
+ "2xl": { value: "1.5rem" },
2889
+ "3xl": { value: "1.875rem" },
2890
+ "4xl": { value: "2.25rem" },
2891
+ "5xl": { value: "3rem" },
2892
+ "6xl": { value: "3.75rem" },
2893
+ "7xl": { value: "4.5rem" },
2894
+ "8xl": { value: "6rem" },
2895
+ "9xl": { value: "8rem" }
2896
+ };
2897
+ var fontWeights = {
2898
+ thin: { value: "100" },
2899
+ extralight: { value: "200" },
2900
+ light: { value: "300" },
2901
+ normal: { value: "400" },
2902
+ medium: { value: "500" },
2903
+ semibold: { value: "600" },
2904
+ bold: { value: "700" },
2905
+ extrabold: { value: "800" },
2906
+ black: { value: "900" }
2907
+ };
2908
+ var letterSpacings = {
2909
+ tighter: { value: "-0.05em" },
2910
+ tight: { value: "-0.025em" },
2911
+ normal: { value: "0em" },
2912
+ wide: { value: "0.025em" },
2913
+ wider: { value: "0.05em" },
2914
+ widest: { value: "0.1em" }
2915
+ };
2916
+ var lineHeights = {
2917
+ none: { value: "1" },
2918
+ tight: { value: "1.25" },
2919
+ snug: { value: "1.375" },
2920
+ normal: { value: "1.5" },
2921
+ relaxed: { value: "1.625" },
2922
+ loose: { value: "2" }
2923
+ };
2924
+ var fonts = {
2925
+ sans: {
2926
+ value: [
2927
+ "ui-sans-serif",
2928
+ "system-ui",
2929
+ "-apple-system",
2930
+ "BlinkMacSystemFont",
2931
+ '"Segoe UI"',
2932
+ "Roboto",
2933
+ '"Helvetica Neue"',
2934
+ "Arial",
2935
+ '"Noto Sans"',
2936
+ "sans-serif",
2937
+ '"Apple Color Emoji"',
2938
+ '"Segoe UI Emoji"',
2939
+ '"Segoe UI Symbol"',
2940
+ '"Noto Color Emoji"'
2941
+ ]
2942
+ },
2943
+ serif: {
2944
+ value: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"]
2945
+ },
2946
+ mono: {
2947
+ value: [
2948
+ "ui-monospace",
2949
+ "SFMono-Regular",
2950
+ "Menlo",
2951
+ "Monaco",
2952
+ "Consolas",
2953
+ '"Liberation Mono"',
2954
+ '"Courier New"',
2955
+ "monospace"
2956
+ ]
2957
+ }
2958
+ };
2959
+ var textStyles = {
2960
+ xs: {
2961
+ value: {
2962
+ fontSize: "0.75rem",
2963
+ lineHeight: "1rem"
2964
+ }
2965
+ },
2966
+ sm: {
2967
+ value: {
2968
+ fontSize: "0.875rem",
2969
+ lineHeight: "1.25rem"
2970
+ }
2971
+ },
2972
+ md: {
2973
+ value: {
2974
+ fontSize: "1rem",
2975
+ lineHeight: "1.5rem"
2976
+ }
2977
+ },
2978
+ lg: {
2979
+ value: {
2980
+ fontSize: "1.125rem",
2981
+ lineHeight: "1.75rem"
2982
+ }
2983
+ },
2984
+ xl: {
2985
+ value: {
2986
+ fontSize: "1.25rem",
2987
+ lineHeight: "1.75rem"
2988
+ }
2989
+ },
2990
+ "2xl": {
2991
+ value: {
2992
+ fontSize: "1.5rem",
2993
+ lineHeight: "2rem"
2994
+ }
2995
+ },
2996
+ "3xl": {
2997
+ value: {
2998
+ fontSize: "1.875rem",
2999
+ lineHeight: "2.25rem"
3000
+ }
3001
+ },
3002
+ "4xl": {
3003
+ value: {
3004
+ fontSize: "2.25rem",
3005
+ lineHeight: "2.5rem"
3006
+ }
3007
+ },
3008
+ "5xl": {
3009
+ value: {
3010
+ fontSize: "3rem",
3011
+ lineHeight: "1"
3012
+ }
3013
+ },
3014
+ "6xl": {
3015
+ value: {
3016
+ fontSize: "3.75rem",
3017
+ lineHeight: "1"
3018
+ }
3019
+ },
3020
+ "7xl": {
3021
+ value: {
3022
+ fontSize: "4.5rem",
3023
+ lineHeight: "1"
3024
+ }
3025
+ },
3026
+ "8xl": {
3027
+ value: {
3028
+ fontSize: "6rem",
3029
+ lineHeight: "1"
3030
+ }
3031
+ },
3032
+ "9xl": {
3033
+ value: {
3034
+ fontSize: "8rem",
3035
+ lineHeight: "1"
3036
+ }
3037
+ }
3038
+ };
3039
+ var defineTokens = (v) => v;
3040
+ var tokens = defineTokens({
3041
+ aspectRatios,
3042
+ borders,
3043
+ easings: {
3044
+ default: { value: "cubic-bezier(0.4, 0, 0.2, 1)" },
3045
+ linear: { value: "linear" },
3046
+ in: { value: "cubic-bezier(0.4, 0, 1, 1)" },
3047
+ out: { value: "cubic-bezier(0, 0, 0.2, 1)" },
3048
+ "in-out": { value: "cubic-bezier(0.4, 0, 0.2, 1)" }
3049
+ },
3050
+ durations: {
3051
+ fastest: { value: "50ms" },
3052
+ faster: { value: "100ms" },
3053
+ fast: { value: "150ms" },
3054
+ normal: { value: "200ms" },
3055
+ slow: { value: "300ms" },
3056
+ slower: { value: "400ms" },
3057
+ slowest: { value: "500ms" }
3058
+ },
3059
+ radii: {
3060
+ xs: { value: "0.125rem" },
3061
+ sm: { value: "0.25rem" },
3062
+ md: { value: "0.375rem" },
3063
+ lg: { value: "0.5rem" },
3064
+ xl: { value: "0.75rem" },
3065
+ "2xl": { value: "1rem" },
3066
+ "3xl": { value: "1.5rem" },
3067
+ full: { value: "9999px" }
3068
+ },
3069
+ fontWeights,
3070
+ lineHeights,
3071
+ fonts,
3072
+ letterSpacings,
3073
+ fontSizes,
3074
+ shadows,
3075
+ colors,
3076
+ blurs: {
3077
+ sm: { value: "4px" },
3078
+ base: { value: "8px" },
3079
+ md: { value: "12px" },
3080
+ lg: { value: "16px" },
3081
+ xl: { value: "24px" },
3082
+ "2xl": { value: "40px" },
3083
+ "3xl": { value: "64px" }
3084
+ },
3085
+ spacing: spacing2,
3086
+ sizes,
3087
+ animations
3088
+ });
3089
+ var definePreset2 = (config2) => config2;
3090
+ var preset2 = definePreset2({
3091
+ theme: {
3092
+ keyframes,
3093
+ breakpoints,
3094
+ tokens,
3095
+ textStyles
3096
+ }
3097
+ });
3098
+ var src_default2 = preset2;
3099
+
3100
+ // ../fixture/src/recipes.ts
3101
+ var recipes = {
3102
+ textStyle: {
3103
+ className: "textStyle",
3104
+ base: {
3105
+ fontFamily: "mono",
3106
+ divideX: "20px"
3107
+ },
3108
+ variants: {
3109
+ size: {
3110
+ h1: {
3111
+ fontSize: "5rem",
3112
+ lineHeight: "1em",
3113
+ fontWeight: 800
3114
+ },
3115
+ h2: {
3116
+ fontSize: "3rem",
3117
+ lineHeight: "1.2em",
3118
+ fontWeight: 700,
3119
+ letterSpacing: "-0.03em"
3120
+ }
3121
+ }
3122
+ }
3123
+ },
3124
+ tooltipStyle: {
3125
+ className: "tooltipStyle",
3126
+ base: {
3127
+ "&[data-tooltip], & [data-tooltip]": {
3128
+ color: { _dark: "red" }
3129
+ }
3130
+ }
3131
+ },
3132
+ cardStyle: {
3133
+ className: "card",
3134
+ variants: {
3135
+ rounded: {
3136
+ true: {
3137
+ borderRadius: "0.375rem"
3138
+ }
3139
+ }
3140
+ }
3141
+ },
3142
+ buttonStyle: {
3143
+ className: "buttonStyle",
3144
+ base: {
3145
+ display: "inline-flex",
3146
+ alignItems: "center",
3147
+ justifyContent: "center",
3148
+ _hover: {
3149
+ backgroundColor: "red.200",
3150
+ fontSize: "3xl",
3151
+ color: "white"
3152
+ }
3153
+ },
3154
+ variants: {
3155
+ size: {
3156
+ sm: {
3157
+ height: "2.5rem",
3158
+ minWidth: "2.5rem",
3159
+ padding: "0 0.5rem"
3160
+ },
3161
+ md: {
3162
+ height: "3rem",
3163
+ minWidth: "3rem",
3164
+ padding: "0 0.75rem"
3165
+ }
3166
+ },
3167
+ variant: {
3168
+ solid: {
3169
+ backgroundColor: "blue",
3170
+ color: "white",
3171
+ _hover: {
3172
+ backgroundColor: "darkblue"
3173
+ },
3174
+ "&[data-disabled]": {
3175
+ backgroundColor: "gray",
3176
+ color: "black",
3177
+ fontSize: "2xl"
3178
+ }
3179
+ },
3180
+ outline: {
3181
+ backgroundColor: "transparent",
3182
+ border: "1px solid blue",
3183
+ color: "blue",
3184
+ _hover: {
3185
+ backgroundColor: "blue",
3186
+ color: "white"
3187
+ },
3188
+ "&[data-disabled]": {
3189
+ backgroundColor: "transparent",
3190
+ border: "1px solid gray",
3191
+ color: "gray"
3192
+ }
3193
+ }
3194
+ }
3195
+ },
3196
+ defaultVariants: {
3197
+ size: "md",
3198
+ variant: "solid"
3199
+ }
3200
+ }
3201
+ };
3202
+
3203
+ // ../fixture/src/slot-recipes.ts
3204
+ var slotRecipes = {
3205
+ checkbox: {
3206
+ className: "checkbox",
3207
+ slots: ["root", "control", "label"],
3208
+ base: {
3209
+ root: { display: "flex", alignItems: "center", gap: "2" },
3210
+ control: { borderWidth: "1px", borderRadius: "sm" },
3211
+ label: { marginStart: "2" }
3212
+ },
3213
+ variants: {
3214
+ size: {
3215
+ sm: {
3216
+ control: { textStyle: "headline.h1", width: "8", height: "8" },
3217
+ label: { fontSize: "sm" }
3218
+ },
3219
+ md: {
3220
+ control: { width: "10", height: "10" },
3221
+ label: { fontSize: "md" }
3222
+ },
3223
+ lg: {
3224
+ control: { width: "12", height: "12" },
3225
+ label: { fontSize: "lg" }
3226
+ }
3227
+ }
3228
+ },
3229
+ defaultVariants: {
3230
+ size: "sm"
3231
+ }
3232
+ },
3233
+ badge: {
3234
+ className: "badge",
3235
+ slots: ["title", "body"],
3236
+ base: {
3237
+ title: { bg: "red.300", rounded: "sm" }
3238
+ },
3239
+ variants: {
3240
+ size: {
3241
+ sm: {
3242
+ title: { px: "4" },
3243
+ body: { color: "red" }
3244
+ }
3245
+ },
3246
+ raised: {
3247
+ true: {
3248
+ title: { shadow: "md" }
3249
+ }
3250
+ }
3251
+ },
3252
+ compoundVariants: [
3253
+ {
3254
+ raised: true,
3255
+ size: "sm",
3256
+ css: {
3257
+ title: { color: "ButtonHighlight" }
3258
+ }
3259
+ }
3260
+ ]
3261
+ }
3262
+ };
3263
+
3264
+ // ../fixture/src/semantic-tokens.ts
3265
+ var semanticTokens = {
3266
+ colors: {
3267
+ primary: { value: { base: "{colors.red.500}", _dark: "{colors.red.400}" } },
3268
+ secondary: { value: { base: "{colors.red.800}", _dark: "{colors.red.700}" } },
3269
+ complex: { value: { base: "{colors.red.800}", _dark: { _highContrast: "{colors.red.700}" } } },
3270
+ surface: {
3271
+ value: {
3272
+ _materialTheme: { base: "#m-b", _dark: "#m-d" },
3273
+ _pastelTheme: { base: "#p-b", _dark: { md: "#p-d" } }
3274
+ }
3275
+ },
3276
+ button: {
3277
+ thick: {
3278
+ value: { base: "#fff", _dark: "#000" }
3279
+ },
3280
+ card: {
3281
+ body: {
3282
+ value: { base: "#fff", _dark: "#000" }
3283
+ },
3284
+ heading: {
3285
+ value: { base: "#fff", _dark: "#000" }
3286
+ }
3287
+ }
3288
+ }
3289
+ },
3290
+ spacing: {
3291
+ gutter: { value: { base: "{spacing.4}", lg: "{spacing.5}" } }
3292
+ }
3293
+ };
3294
+
3295
+ // ../fixture/src/config.ts
3296
+ var conditions2 = {
3297
+ ...src_default.conditions,
3298
+ materialTheme: "[data-color=material] &",
3299
+ pastelTheme: "[data-color=pastel] &",
3300
+ dark: "[data-theme=dark] &, .dark &, &.dark, &[data-theme=dark]",
3301
+ light: "[data-theme=light] &, .light &, &.light, &[data-theme=light]"
3302
+ };
3303
+ var theme = src_default2.theme;
3304
+ var tokens2 = {
3305
+ ...theme.tokens,
3306
+ colors: {
3307
+ ...theme.tokens?.colors,
3308
+ deep: {
3309
+ test: {
3310
+ yam: {
3311
+ value: "%555"
3312
+ },
3313
+ pool: {
3314
+ poller: {
3315
+ value: "#fff"
3316
+ },
3317
+ tall: {
3318
+ value: "$dfdf"
3319
+ }
3320
+ }
3321
+ }
3322
+ }
3323
+ }
3324
+ };
3325
+ var textStyles2 = {
3326
+ headline: {
3327
+ h1: {
3328
+ value: {
3329
+ fontSize: "2rem",
3330
+ fontWeight: "bold"
3331
+ }
3332
+ },
3333
+ h2: {
3334
+ value: {
3335
+ fontSize: { base: "1.5rem", lg: "2rem" },
3336
+ fontWeight: "bold"
3337
+ }
3338
+ }
3339
+ }
3340
+ };
3341
+ var fixturePreset = {
3342
+ ...src_default,
3343
+ conditions: conditions2,
3344
+ theme: {
3345
+ ...theme,
3346
+ textStyles: textStyles2,
3347
+ tokens: tokens2,
3348
+ semanticTokens,
3349
+ recipes,
3350
+ slotRecipes
3351
+ }
3352
+ };
3353
+
3354
+ // ../fixture/src/create-context.ts
3355
+ var import_config = require("@pandacss/config");
3356
+ var import_generator = require("@pandacss/generator");
3357
+ var import_node = require("@pandacss/node");
3358
+ var import_shared = require("@pandacss/shared");
3359
+ var config = {
3360
+ ...fixturePreset,
3361
+ optimize: true,
3362
+ cwd: "",
3363
+ outdir: "styled-system",
3364
+ include: [],
3365
+ //
3366
+ cssVarRoot: ":where(html)",
3367
+ jsxFramework: "react"
3368
+ };
3369
+ var fixtureDefaults = {
3370
+ dependencies: [],
3371
+ config,
3372
+ path: "",
3373
+ hooks: {},
3374
+ serialized: (0, import_shared.stringifyJson)(config),
3375
+ deserialize: () => (0, import_shared.parseJson)((0, import_shared.stringifyJson)(config))
3376
+ };
3377
+ var createContext = (userConfig) => {
3378
+ const resolvedConfig = userConfig ? (0, import_config.mergeConfigs)([fixtureDefaults.config, userConfig]) : fixtureDefaults.config;
3379
+ return new import_node.PandaContext({
3380
+ ...fixtureDefaults,
3381
+ config: resolvedConfig,
3382
+ tsconfig: {
3383
+ // @ts-expect-error
3384
+ useInMemoryFileSystem: true
3385
+ }
3386
+ });
3387
+ };
3388
+
3389
+ // src/utils/worker.ts
3390
+ var import_ts_path = require("@pandacss/config/ts-path");
3391
+ var import_config3 = require("@pandacss/config");
3392
+ var import_path = __toESM(require("path"));
3393
+ var promise;
3394
+ var configPath;
3395
+ async function _getContext(configPath2) {
3396
+ if (!configPath2)
3397
+ throw new Error("Invalid config path");
3398
+ const cwd = import_path.default.dirname(configPath2);
3399
+ const ctx = await (0, import_node2.loadConfigAndCreateContext)({ configPath: configPath2, cwd });
3400
+ return ctx;
3401
+ }
3402
+ async function getContext(opts) {
3403
+ if (process.env.NODE_ENV === "test") {
3404
+ const ctx = createContext({ importMap: "./panda" });
3405
+ ctx.getFiles = () => ["App.tsx"];
3406
+ return ctx;
3407
+ } else {
3408
+ configPath = configPath || (0, import_config3.findConfig)({ cwd: opts.configPath ?? opts.currentFile });
3409
+ promise = promise || _getContext(configPath);
3410
+ return await promise;
3411
+ }
3412
+ }
3413
+ async function filterInvalidTokenz(ctx, paths) {
3414
+ return paths.filter((path2) => !ctx.utility.tokens.get(path2));
3415
+ }
3416
+ async function isColorToken(ctx, value) {
3417
+ return !!ctx.utility.tokens.values.get("colors")?.get(value);
3418
+ }
3419
+ async function isColorAttribute(ctx, _attr) {
3420
+ const longhand = await resolveLongHand(ctx, _attr);
3421
+ const attr = longhand || _attr;
3422
+ const attrConfig = ctx.utility.config[attr];
3423
+ return attrConfig?.values === "colors";
3424
+ }
3425
+ async function isValidFile(ctx, fileName) {
3426
+ return ctx.getFiles().includes(fileName);
3427
+ }
3428
+ async function resolveShorthand(ctx, name) {
3429
+ return ctx.utility.resolveShorthand(name);
3430
+ }
3431
+ async function resolveLongHand(ctx, name) {
3432
+ const reverseShorthandsMap = /* @__PURE__ */ new Map();
3433
+ for (const [key, values] of ctx.utility.getPropShorthandsMap()) {
3434
+ for (const value of values) {
3435
+ reverseShorthandsMap.set(value, key);
3436
+ }
3437
+ }
3438
+ return reverseShorthandsMap.get(name);
3439
+ }
3440
+ async function isValidProperty(ctx, name) {
3441
+ return ctx.isValidProperty(name);
3442
+ }
3443
+ async function matchFile(ctx, name, imports) {
3444
+ const file = ctx.imports.file(imports);
3445
+ return file.match(name);
3446
+ }
3447
+ async function matchImports(ctx, result) {
3448
+ return ctx.imports.match(result, (mod) => {
3449
+ const { tsOptions } = ctx.parserOptions;
3450
+ if (!tsOptions?.pathMappings)
3451
+ return;
3452
+ return (0, import_ts_path.resolveTsPathPattern)(tsOptions.pathMappings, mod);
3453
+ });
3454
+ }
3455
+ async function runAsync(action, opts, ...args) {
3456
+ const ctx = await getContext(opts);
3457
+ switch (action) {
3458
+ case "matchImports":
3459
+ return matchImports(ctx, ...args);
3460
+ case "matchFile":
3461
+ return matchFile(ctx, ...args);
3462
+ case "isValidProperty":
3463
+ return isValidProperty(ctx, ...args);
3464
+ case "resolveLongHand":
3465
+ return resolveLongHand(ctx, ...args);
3466
+ case "resolveShorthand":
3467
+ return resolveShorthand(ctx, ...args);
3468
+ case "isValidFile":
3469
+ return isValidFile(ctx, opts.currentFile);
3470
+ case "isColorAttribute":
3471
+ return isColorAttribute(ctx, ...args);
3472
+ case "isColorToken":
3473
+ return isColorToken(ctx, ...args);
3474
+ case "filterInvalidTokenz":
3475
+ return filterInvalidTokenz(ctx, ...args);
3476
+ }
3477
+ }
3478
+ function run(action, opts, ...args) {
3479
+ return runAsync(action, opts, ...args);
3480
+ }
3481
+ (0, import_synckit.runAsWorker)(run);
3482
+ // Annotate the CommonJS export names for ESM import in node:
3483
+ 0 && (module.exports = {
3484
+ getContext,
3485
+ run,
3486
+ runAsync
3487
+ });