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