@pandacss/preset-base 0.0.0-dev-20230608163155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,2319 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ default: () => src_default,
24
+ preset: () => preset
25
+ });
26
+ module.exports = __toCommonJS(src_exports);
27
+
28
+ // src/conditions.ts
29
+ var conditions = {
30
+ hover: "&:where(:hover, [data-hover])",
31
+ focus: "&:where(:focus, [data-focus])",
32
+ focusWithin: "&:focus-within",
33
+ focusVisible: "&:where(:focus-visible, [data-focus-visible])",
34
+ disabled: "&:where(:disabled, [disabled], [data-disabled])",
35
+ active: "&:where(:active, [data-active])",
36
+ visited: "&:visited",
37
+ target: "&:target",
38
+ readOnly: "&:where(:read-only, [data-read-only])",
39
+ readWrite: "&:read-write",
40
+ empty: "&:where(:empty, [data-empty])",
41
+ checked: "&:where(:checked, [data-checked], [aria-checked=true])",
42
+ enabled: "&:enabled",
43
+ expanded: "&:where([aria-expanded=true], [data-expanded])",
44
+ highlighted: "&[data-highlighted]",
45
+ before: "&::before",
46
+ after: "&::after",
47
+ firstLetter: "&::first-letter",
48
+ firstLine: "&::first-line",
49
+ marker: "&::marker",
50
+ selection: "&::selection",
51
+ file: "&::file-selector-button",
52
+ backdrop: "&::backdrop",
53
+ first: "&:first-child",
54
+ last: "&:last-child",
55
+ only: "&:only-child",
56
+ even: "&:even",
57
+ odd: "&:odd",
58
+ firstOfType: "&:first-of-type",
59
+ lastOfType: "&:last-of-type",
60
+ onlyOfType: "&:only-of-type",
61
+ peerFocus: ".peer:where(:focus, [data-focus]) ~ &",
62
+ peerHover: ".peer:where(:hover, [data-hover]) ~ &",
63
+ peerActive: ".peer:where(:active, [data-active]) ~ &",
64
+ peerFocusWithin: ".peer:focus-within ~ &",
65
+ peerFocusVisible: ".peer:where(:focus-visible, [data-focus-visible]) ~ &",
66
+ peerDisabled: ".peer:where(:disabled, [disabled], [data-disabled]) ~ &",
67
+ peerChecked: ".peer:where(:checked, [data-checked], [aria-checked=true]) ~ &",
68
+ peerInvalid: ".peer:where(:invalid, [data-invalid], [aria-invalid=true]) ~ &",
69
+ peerExpanded: ".peer:where([aria-expanded=true], [data-expanded]) ~ &",
70
+ peerPlaceholderShown: ".peer:placeholder-shown ~ &",
71
+ groupFocus: ".group:where(:focus, [data-focus]) &",
72
+ groupHover: ".group:where(:hover, [data-hover]) &",
73
+ groupActive: ".group:where(:active, [data-active]) &",
74
+ groupFocusWithin: ".group:focus-within &",
75
+ groupFocusVisible: ".group:where(:focus-visible, [data-focus-visible]) &",
76
+ groupDisabled: ".group:where(:disabled, [disabled], [data-disabled]) &",
77
+ groupChecked: ".group:where(:checked, [data-checked], [aria-checked=true]) &",
78
+ groupExpanded: ".group:where([aria-expanded=true], [data-expanded]) &",
79
+ groupInvalid: ".group:invalid &",
80
+ indeterminate: "&:where(:indeterminate, [data-indeterminate], [aria-checked=mixed])",
81
+ required: "&:required",
82
+ valid: "&:where(:valid, [data-valid])",
83
+ invalid: "&:where(:invalid, [data-invalid])",
84
+ autofill: "&:autofill",
85
+ inRange: "&:in-range",
86
+ outOfRange: "&:out-of-range",
87
+ placeholder: "&:placeholder",
88
+ placeholderShown: "&:placeholder-shown",
89
+ pressed: "&:where([aria-pressed=true], [data-pressed])",
90
+ selected: "&:where([aria-selected=true], [data-selected])",
91
+ default: "&:default",
92
+ optional: "&:optional",
93
+ open: "&[open]",
94
+ fullscreen: "&:fullscreen",
95
+ loading: "&:where([data-loading], [aria-busy=true])",
96
+ currentPage: "&[aria-current=page]",
97
+ currentStep: "&[aria-current=step]",
98
+ motionReduce: "@media (prefers-reduced-motion: reduce)",
99
+ motionSafe: "@media (prefers-reduced-motion: no-preference)",
100
+ print: "@media print",
101
+ landscape: "@media (orientation: landscape)",
102
+ portrait: "@media (orientation: portrait)",
103
+ dark: " &.dark, .dark &",
104
+ light: " &.light, .light &",
105
+ osDark: "@media (prefers-color-scheme: dark)",
106
+ osLight: "@media (prefers-color-scheme: light)",
107
+ highConstrast: "@media (forced-colors: active)",
108
+ lessContrast: "@media (prefers-contrast: less)",
109
+ moreContrast: "@media (prefers-contrast: more)",
110
+ ltr: "[dir=ltr] &",
111
+ rtl: "[dir=rtl] &",
112
+ scrollbar: "&::-webkit-scrollbar",
113
+ scrollbarThumb: "&::-webkit-scrollbar-thumb",
114
+ scrollbarTrack: "&::-webkit-scrollbar-track",
115
+ horizontal: "&[data-orientation=horizontal]",
116
+ vertical: "&[data-orientation=vertical]"
117
+ };
118
+
119
+ // src/utilities/background.ts
120
+ var background = {
121
+ backgroundPosition: {
122
+ shorthand: "bgPosition",
123
+ className: "bg"
124
+ },
125
+ backgroundPositionX: {
126
+ shorthand: "bgPositionX",
127
+ className: "bg-x"
128
+ },
129
+ backgroundPositionY: {
130
+ shorthand: "bgPositionY",
131
+ className: "bg-y"
132
+ },
133
+ backgroundAttachment: {
134
+ shorthand: "bgAttachment",
135
+ className: "bg"
136
+ },
137
+ backgroundClip: {
138
+ shorthand: "bgClip",
139
+ className: "bg-clip"
140
+ },
141
+ background: {
142
+ shorthand: "bg",
143
+ className: "bg",
144
+ values: "colors"
145
+ },
146
+ backgroundColor: {
147
+ shorthand: "bgColor",
148
+ className: "bg",
149
+ values: "colors"
150
+ },
151
+ backgroundOrigin: {
152
+ shorthand: "bgOrigin",
153
+ className: "bg-origin"
154
+ },
155
+ backgroundImage: {
156
+ shorthand: "bgImage",
157
+ className: "bg-img",
158
+ values: "assets"
159
+ },
160
+ backgroundRepeat: {
161
+ shorthand: "bgRepeat",
162
+ className: "bg-repeat"
163
+ },
164
+ backgroundBlendMode: {
165
+ shorthand: "bgBlendMode",
166
+ className: "bg-blend"
167
+ },
168
+ backgroundSize: {
169
+ shorthand: "bgSize",
170
+ className: "bg"
171
+ },
172
+ backgroundGradient: {
173
+ shorthand: "bgGradient",
174
+ className: "bg-gradient",
175
+ values(theme) {
176
+ return {
177
+ ...theme("gradients"),
178
+ "to-t": "linear-gradient(to top, var(--gradient))",
179
+ "to-tr": "linear-gradient(to top right, var(--gradient))",
180
+ "to-r": "linear-gradient(to right, var(--gradient))",
181
+ "to-br": "linear-gradient(to bottom right, var(--gradient))",
182
+ "to-b": "linear-gradient(to bottom, var(--gradient))",
183
+ "to-bl": "linear-gradient(to bottom left, var(--gradient))",
184
+ "to-l": "linear-gradient(to left, var(--gradient))",
185
+ "to-tl": "linear-gradient(to top left, var(--gradient))"
186
+ };
187
+ },
188
+ transform(value) {
189
+ return {
190
+ "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
191
+ "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
192
+ backgroundImage: value
193
+ };
194
+ }
195
+ },
196
+ textGradient: {
197
+ className: "text-gradient",
198
+ values(theme) {
199
+ return {
200
+ ...theme("gradients"),
201
+ "to-t": "linear-gradient(to top, var(--gradient))",
202
+ "to-tr": "linear-gradient(to top right, var(--gradient))",
203
+ "to-r": "linear-gradient(to right, var(--gradient))",
204
+ "to-br": "linear-gradient(to bottom right, var(--gradient))",
205
+ "to-b": "linear-gradient(to bottom, var(--gradient))",
206
+ "to-bl": "linear-gradient(to bottom left, var(--gradient))",
207
+ "to-l": "linear-gradient(to left, var(--gradient))",
208
+ "to-tl": "linear-gradient(to top left, var(--gradient))"
209
+ };
210
+ },
211
+ transform(value) {
212
+ return {
213
+ "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
214
+ "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
215
+ backgroundImage: value,
216
+ backgroundClip: "text",
217
+ color: "transparent"
218
+ };
219
+ }
220
+ },
221
+ gradientFrom: {
222
+ className: "from",
223
+ values: "colors",
224
+ transform(value) {
225
+ return {
226
+ "--gradient-from": value
227
+ };
228
+ }
229
+ },
230
+ gradientTo: {
231
+ className: "to",
232
+ values: "colors",
233
+ transform(value) {
234
+ return {
235
+ "--gradient-to": value
236
+ };
237
+ }
238
+ },
239
+ gradientVia: {
240
+ className: "via",
241
+ values: "colors",
242
+ transform(value) {
243
+ return {
244
+ "--gradient-via-stops": "var(--gradient-from), var(--gradient-via), var(--gradient-to)",
245
+ "--gradient-via": value
246
+ };
247
+ }
248
+ }
249
+ };
250
+
251
+ // src/utilities/border.ts
252
+ var border = {
253
+ borderRadius: {
254
+ className: "rounded",
255
+ shorthand: "rounded",
256
+ values: "radii"
257
+ },
258
+ borderTopLeftRadius: {
259
+ className: "rounded-tl",
260
+ shorthand: "roundedTopLeft",
261
+ values: "radii"
262
+ },
263
+ borderTopRightRadius: {
264
+ className: "rounded-tr",
265
+ shorthand: "roundedTopRight",
266
+ values: "radii"
267
+ },
268
+ borderBottomRightRadius: {
269
+ className: "rounded-br",
270
+ shorthand: "roundedBottomRight",
271
+ values: "radii"
272
+ },
273
+ borderBottomLeftRadius: {
274
+ className: "rounded-bl",
275
+ shorthand: "roundedBottomLeft",
276
+ values: "radii"
277
+ },
278
+ borderTopRadius: {
279
+ className: "rounded-t",
280
+ shorthand: "roundedTop",
281
+ property: "borderRadius",
282
+ values: "radii",
283
+ transform(value) {
284
+ return {
285
+ borderTopLeftRadius: value,
286
+ borderTopRightRadius: value
287
+ };
288
+ }
289
+ },
290
+ borderRightRadius: {
291
+ className: "rounded-r",
292
+ shorthand: "roundedRight",
293
+ property: "borderRadius",
294
+ values: "radii",
295
+ transform(value) {
296
+ return {
297
+ borderTopRightRadius: value,
298
+ borderBottomRightRadius: value
299
+ };
300
+ }
301
+ },
302
+ borderBottomRadius: {
303
+ className: "rounded-b",
304
+ shorthand: "roundedBottom",
305
+ property: "borderRadius",
306
+ values: "radii",
307
+ transform(value) {
308
+ return {
309
+ borderBottomLeftRadius: value,
310
+ borderBottomRightRadius: value
311
+ };
312
+ }
313
+ },
314
+ borderLeftRadius: {
315
+ className: "rounded-l",
316
+ shorthand: "roundedLeft",
317
+ values: "radii",
318
+ property: "borderRadius",
319
+ transform(value) {
320
+ return {
321
+ borderTopLeftRadius: value,
322
+ borderBottomLeftRadius: value
323
+ };
324
+ }
325
+ },
326
+ borderStartStartRadius: {
327
+ className: "rounded-ss",
328
+ shorthand: "roundedStartStart",
329
+ values: "radii"
330
+ },
331
+ borderStartEndRadius: {
332
+ className: "rounded-se",
333
+ shorthand: "roundedStartEnd",
334
+ values: "radii"
335
+ },
336
+ borderStartRadius: {
337
+ className: "rounded-s",
338
+ values: "radii",
339
+ property: "borderRadius",
340
+ shorthand: "roundedStart",
341
+ transform(value) {
342
+ return {
343
+ borderStartStartRadius: value,
344
+ borderEndStartRadius: value
345
+ };
346
+ }
347
+ },
348
+ borderEndStartRadius: {
349
+ className: "rounded-es",
350
+ shorthand: "roundedEndStart",
351
+ values: "radii"
352
+ },
353
+ borderEndEndRadius: {
354
+ className: "rounded-ee",
355
+ shorthand: "roundedEndEnd",
356
+ values: "radii"
357
+ },
358
+ borderEndRadius: {
359
+ className: "rounded-e",
360
+ shorthand: "roundedEnd",
361
+ property: "borderRadius",
362
+ values: "radii",
363
+ transform(value) {
364
+ return {
365
+ borderStartEndRadius: value,
366
+ borderEndEndRadius: value
367
+ };
368
+ }
369
+ },
370
+ border: {
371
+ className: "border",
372
+ values: "borders"
373
+ },
374
+ borderColor: {
375
+ className: "border",
376
+ values: "colors"
377
+ },
378
+ borderInline: {
379
+ className: "border-x",
380
+ values: "borders",
381
+ shorthand: "borderX"
382
+ },
383
+ borderInlineColor: {
384
+ className: "border-x",
385
+ values: "colors",
386
+ shorthand: "borderXColor"
387
+ },
388
+ borderBlock: {
389
+ className: "border-y",
390
+ values: "borders"
391
+ },
392
+ borderBlockColor: {
393
+ className: "border-y",
394
+ values: "colors",
395
+ shorthand: "borderYColor"
396
+ },
397
+ borderLeft: {
398
+ className: "border-l",
399
+ values: "borders"
400
+ },
401
+ borderLeftColor: {
402
+ className: "border-l",
403
+ values: "colors"
404
+ },
405
+ borderInlineStart: {
406
+ className: "border-s",
407
+ values: "borders"
408
+ },
409
+ borderInlineStartColor: {
410
+ className: "border-s"
411
+ },
412
+ borderRight: {
413
+ className: "border-r",
414
+ values: "borders"
415
+ },
416
+ borderRightColor: {
417
+ className: "border-r",
418
+ values: "colors"
419
+ },
420
+ borderInlineEnd: {
421
+ className: "border-e",
422
+ values: "borders"
423
+ },
424
+ borderInlineEndColor: {
425
+ className: "border-e",
426
+ values: "colors"
427
+ },
428
+ borderTop: {
429
+ className: "border-t",
430
+ values: "borders"
431
+ },
432
+ borderTopColor: {
433
+ className: "border-t",
434
+ values: "colors"
435
+ },
436
+ borderBottom: {
437
+ className: "border-b",
438
+ values: "borders"
439
+ },
440
+ borderBottomColor: {
441
+ className: "border-b",
442
+ values: "colors"
443
+ },
444
+ borderBlockEnd: {
445
+ className: "border-be",
446
+ values: "borders"
447
+ },
448
+ borderBlockEndColor: {
449
+ className: "border-be",
450
+ values: "colors"
451
+ },
452
+ borderBlockStart: {
453
+ className: "border-bs",
454
+ values: "borders"
455
+ },
456
+ borderBlockStartColor: {
457
+ className: "border-bs",
458
+ values: "colors"
459
+ }
460
+ };
461
+
462
+ // src/utilities/display.ts
463
+ var display = {
464
+ display: {
465
+ className: "d"
466
+ },
467
+ hideFrom: {
468
+ className: "hide",
469
+ values: "breakpoints",
470
+ transform(value, { raw }) {
471
+ return {
472
+ [`@breakpoint ${raw}`]: {
473
+ display: "none"
474
+ }
475
+ };
476
+ }
477
+ },
478
+ hideBelow: {
479
+ className: "show",
480
+ values: "breakpoints",
481
+ transform(value, { raw }) {
482
+ return {
483
+ [`@breakpoint ${raw}Down`]: {
484
+ display: "none"
485
+ }
486
+ };
487
+ }
488
+ }
489
+ };
490
+
491
+ // src/utilities/divide.ts
492
+ var divide = {
493
+ divideX: {
494
+ className: "divide-x",
495
+ values: { type: "string" },
496
+ transform(value) {
497
+ return {
498
+ "& > :not([hidden]) ~ :not([hidden])": {
499
+ borderLeftWidth: value,
500
+ borderRightWidth: "0px"
501
+ }
502
+ };
503
+ }
504
+ },
505
+ divideY: {
506
+ className: "divide-y",
507
+ values: { type: "string" },
508
+ transform(value) {
509
+ return {
510
+ "& > :not([hidden]) ~ :not([hidden])": {
511
+ borderTopWidth: value,
512
+ borderBottomWidth: "0px"
513
+ }
514
+ };
515
+ }
516
+ },
517
+ divideColor: {
518
+ className: "divide",
519
+ values: "colors",
520
+ transform(value) {
521
+ return {
522
+ "& > :not([hidden]) ~ :not([hidden])": {
523
+ borderColor: value
524
+ }
525
+ };
526
+ }
527
+ },
528
+ divideStyle: {
529
+ className: "divide",
530
+ property: "borderStyle",
531
+ transform(value) {
532
+ return {
533
+ "& > :not([hidden]) ~ :not([hidden])": {
534
+ borderStyle: value
535
+ }
536
+ };
537
+ }
538
+ }
539
+ };
540
+
541
+ // src/utilities/effects.ts
542
+ var effects = {
543
+ boxShadow: {
544
+ shorthand: "shadow",
545
+ className: "shadow",
546
+ values: "shadows"
547
+ },
548
+ boxShadowColor: {
549
+ shorthand: "shadowColor",
550
+ className: "shadow",
551
+ values: "colors",
552
+ transform(value) {
553
+ return {
554
+ "--shadow-color": value
555
+ };
556
+ }
557
+ },
558
+ mixBlendMode: {
559
+ className: "mix-blend"
560
+ },
561
+ filter: {
562
+ className: "filter",
563
+ values: {
564
+ auto: [
565
+ "var(--blur)",
566
+ "var(--brightness)",
567
+ "var(--contrast)",
568
+ "var(--grayscale)",
569
+ "var(--hue-rotate)",
570
+ "var(--invert)",
571
+ "var(--saturate)",
572
+ "var(--sepia)",
573
+ "var(--drop-shadow)"
574
+ ].join(" ")
575
+ }
576
+ },
577
+ brightness: {
578
+ className: "brightness",
579
+ transform(value) {
580
+ return {
581
+ "--brightness": `brightness(${value})`
582
+ };
583
+ }
584
+ },
585
+ contrast: {
586
+ className: "contrast",
587
+ transform(value) {
588
+ return {
589
+ "--contrast": `constrast(${value})`
590
+ };
591
+ }
592
+ },
593
+ grayscale: {
594
+ className: "grayscale",
595
+ transform(value) {
596
+ return {
597
+ "--grayscale": `grayscale(${value})`
598
+ };
599
+ }
600
+ },
601
+ hueRotate: {
602
+ className: "hue-rotate",
603
+ transform(value) {
604
+ return {
605
+ "--hue-rotate": `hue-rotate(${value})`
606
+ };
607
+ }
608
+ },
609
+ invert: {
610
+ className: "invert",
611
+ transform(value) {
612
+ return {
613
+ "--invert": `invert(${value})`
614
+ };
615
+ }
616
+ },
617
+ saturate: {
618
+ className: "saturate",
619
+ transform(value) {
620
+ return {
621
+ "--saturate": `saturate(${value})`
622
+ };
623
+ }
624
+ },
625
+ sepia: {
626
+ className: "sepia",
627
+ transform(value) {
628
+ return {
629
+ "--sepia": `sepia(${value})`
630
+ };
631
+ }
632
+ },
633
+ dropShadow: {
634
+ className: "drop-shadow",
635
+ values: "dropShadows",
636
+ transform(value) {
637
+ return {
638
+ "--drop-shadow": value
639
+ };
640
+ }
641
+ },
642
+ blur: {
643
+ className: "blur",
644
+ values: "blurs",
645
+ transform(value) {
646
+ return {
647
+ "--blur": `blur(${value})`
648
+ };
649
+ }
650
+ },
651
+ backdropFilter: {
652
+ className: "backdrop",
653
+ values: {
654
+ auto: [
655
+ "var(--backdrop-blur)",
656
+ "var(--backdrop-brightness)",
657
+ "var(--backdrop-contrast)",
658
+ "var(--backdrop-grayscale)",
659
+ "var(--backdrop-hue-rotate)",
660
+ "var(--backdrop-invert)",
661
+ "var(--backdrop-saturate)",
662
+ "var(--backdrop-sepia)"
663
+ ].join(" ")
664
+ }
665
+ },
666
+ backdropBlur: {
667
+ className: "backdrop-blur",
668
+ values: "blurs",
669
+ transform(value) {
670
+ return {
671
+ "--backdrop-blur": `blur(${value})`
672
+ };
673
+ }
674
+ },
675
+ backdropBrightness: {
676
+ className: "backdrop-brightness",
677
+ transform(value) {
678
+ return {
679
+ "--backdrop-brightness": `brightness(${value})`
680
+ };
681
+ }
682
+ },
683
+ backdropContrast: {
684
+ className: "backdrop-contrast",
685
+ transform(value) {
686
+ return {
687
+ "--backdrop-contrast": `constrast(${value})`
688
+ };
689
+ }
690
+ },
691
+ backdropGrayscale: {
692
+ className: "backdrop-grayscale",
693
+ transform(value) {
694
+ return {
695
+ "--backdrop-grayscale": `grayscale(${value})`
696
+ };
697
+ }
698
+ },
699
+ backdropHueRotate: {
700
+ className: "backdrop-hue-rotate",
701
+ transform(value) {
702
+ return {
703
+ "--backdrop-hue-rotate": `hue-rotate(${value})`
704
+ };
705
+ }
706
+ },
707
+ backdropInvert: {
708
+ className: "backdrop-invert",
709
+ transform(value) {
710
+ return {
711
+ "--backdrop-invert": `invert(${value})`
712
+ };
713
+ }
714
+ },
715
+ backdropOpacity: {
716
+ className: "backdrop-opacity",
717
+ transform(value) {
718
+ return {
719
+ "--backdrop-opacity": value
720
+ };
721
+ }
722
+ },
723
+ backdropSaturate: {
724
+ className: "backdrop-saturate",
725
+ transform(value) {
726
+ return {
727
+ "--backdrop-saturate": `saturate(${value})`
728
+ };
729
+ }
730
+ },
731
+ backdropSepia: {
732
+ className: "backdrop-sepia",
733
+ transform(value) {
734
+ return {
735
+ "--backdrop-sepia": `sepia(${value})`
736
+ };
737
+ }
738
+ }
739
+ };
740
+
741
+ // src/utilities/flex-and-grid.ts
742
+ var flexGrid = {
743
+ flexBasis: {
744
+ className: "basis",
745
+ values(theme) {
746
+ return {
747
+ ...theme("spacing"),
748
+ "1/2": "50%",
749
+ "1/3": "33.333333%",
750
+ "2/3": "66.666667%",
751
+ "1/4": "25%",
752
+ "2/4": "50%",
753
+ "3/4": "75%",
754
+ "1/5": "20%",
755
+ "2/5": "40%",
756
+ "3/5": "60%",
757
+ "4/5": "80%",
758
+ "1/6": "16.666667%",
759
+ "2/6": "33.333333%",
760
+ "3/6": "50%",
761
+ "4/6": "66.666667%",
762
+ "5/6": "83.333333%",
763
+ "1/12": "8.333333%",
764
+ "2/12": "16.666667%",
765
+ "3/12": "25%",
766
+ "4/12": "33.333333%",
767
+ "5/12": "41.666667%",
768
+ "6/12": "50%",
769
+ "7/12": "58.333333%",
770
+ "8/12": "66.666667%",
771
+ "9/12": "75%",
772
+ "10/12": "83.333333%",
773
+ "11/12": "91.666667%",
774
+ full: "100%"
775
+ };
776
+ }
777
+ },
778
+ flex: {
779
+ className: "flex",
780
+ values: {
781
+ "1": "1 1 0%",
782
+ auto: "1 1 auto",
783
+ initial: "0 1 auto",
784
+ none: "none"
785
+ }
786
+ },
787
+ flexDirection: {
788
+ className: "flex",
789
+ shorthand: "flexDir"
790
+ },
791
+ flexGrow: {
792
+ className: "grow"
793
+ },
794
+ flexShrink: {
795
+ className: "shrink"
796
+ },
797
+ gridTemplateColumns: {
798
+ className: "grid-cols",
799
+ values: {
800
+ "1": "repeat(1, minmax(0, 1fr))",
801
+ "2": "repeat(2, minmax(0, 1fr))",
802
+ "3": "repeat(3, minmax(0, 1fr))",
803
+ "4": "repeat(4, minmax(0, 1fr))",
804
+ "5": "repeat(5, minmax(0, 1fr))",
805
+ "6": "repeat(6, minmax(0, 1fr))",
806
+ "7": "repeat(7, minmax(0, 1fr))",
807
+ "8": "repeat(8, minmax(0, 1fr))",
808
+ "9": "repeat(9, minmax(0, 1fr))",
809
+ "10": "repeat(10, minmax(0, 1fr))",
810
+ "11": "repeat(11, minmax(0, 1fr))",
811
+ "12": "repeat(12, minmax(0, 1fr))"
812
+ }
813
+ },
814
+ gridTemplateRows: {
815
+ className: "grid-cols",
816
+ values: {
817
+ "1": "repeat(1, minmax(0, 1fr))",
818
+ "2": "repeat(2, minmax(0, 1fr))",
819
+ "3": "repeat(3, minmax(0, 1fr))",
820
+ "4": "repeat(4, minmax(0, 1fr))",
821
+ "5": "repeat(5, minmax(0, 1fr))",
822
+ "6": "repeat(6, minmax(0, 1fr))",
823
+ "7": "repeat(7, minmax(0, 1fr))",
824
+ "8": "repeat(8, minmax(0, 1fr))",
825
+ "9": "repeat(9, minmax(0, 1fr))",
826
+ "10": "repeat(10, minmax(0, 1fr))",
827
+ "11": "repeat(11, minmax(0, 1fr))",
828
+ "12": "repeat(12, minmax(0, 1fr))"
829
+ }
830
+ },
831
+ gridColumn: {
832
+ className: "col-span",
833
+ values: {
834
+ full: "1 / -1",
835
+ "1": "span 1 / span 1",
836
+ "2": "span 2 / span 2",
837
+ "3": "span 3 / span 3",
838
+ "4": "span 4 / span 4",
839
+ "5": "span 5 / span 5",
840
+ "6": "span 6 / span 6",
841
+ "7": "span 7 / span 7",
842
+ "8": "span 8 / span 8",
843
+ "9": "span 9 / span 9",
844
+ "10": "span 10 / span 10",
845
+ "11": "span 11 / span 11",
846
+ "12": "span 12 / span 12"
847
+ }
848
+ },
849
+ gridRow: {
850
+ className: "row-span",
851
+ values: {
852
+ full: "1 / -1",
853
+ "1": "span 1 / span 1",
854
+ "2": "span 2 / span 2",
855
+ "3": "span 3 / span 3",
856
+ "4": "span 4 / span 4",
857
+ "5": "span 5 / span 5",
858
+ "6": "span 6 / span 6",
859
+ "7": "span 7 / span 7",
860
+ "8": "span 8 / span 8",
861
+ "9": "span 9 / span 9",
862
+ "10": "span 10 / span 10",
863
+ "11": "span 11 / span 11",
864
+ "12": "span 12 / span 12"
865
+ }
866
+ },
867
+ gridColumnStart: {
868
+ className: "col-start"
869
+ },
870
+ gridColumnEnd: {
871
+ className: "col-end"
872
+ },
873
+ gridAutoFlow: {
874
+ className: "grid-flow"
875
+ },
876
+ gridAutoColumns: {
877
+ className: "auto-cols",
878
+ values: {
879
+ min: "min-content",
880
+ max: "max-content",
881
+ fr: "minmax(0, 1fr)"
882
+ }
883
+ },
884
+ gridAutoRows: {
885
+ className: "auto-rows",
886
+ values: {
887
+ min: "min-content",
888
+ max: "max-content",
889
+ fr: "minmax(0, 1fr)"
890
+ }
891
+ },
892
+ gap: {
893
+ className: "gap",
894
+ values: "spacing"
895
+ },
896
+ gridGap: {
897
+ className: "gap",
898
+ values: "spacing"
899
+ },
900
+ gridRowGap: {
901
+ className: "gap-x",
902
+ values: "spacing"
903
+ },
904
+ gridColumnGap: {
905
+ className: "gap-y",
906
+ values: "spacing"
907
+ },
908
+ rowGap: {
909
+ className: "gap-x",
910
+ values: "spacing"
911
+ },
912
+ columnGap: {
913
+ className: "gap-y",
914
+ values: "spacing"
915
+ },
916
+ justifyContent: {
917
+ className: "justify"
918
+ },
919
+ alignContent: {
920
+ className: "content"
921
+ },
922
+ alignItems: {
923
+ className: "items"
924
+ },
925
+ alignSelf: {
926
+ className: "self"
927
+ }
928
+ };
929
+
930
+ // src/utilities/helpers.ts
931
+ var srMapping = {
932
+ true: {
933
+ position: "absolute",
934
+ width: "1px",
935
+ height: "1px",
936
+ padding: "0",
937
+ margin: "-1px",
938
+ overflow: "hidden",
939
+ clip: "rect(0, 0, 0, 0)",
940
+ whiteSpace: "nowrap",
941
+ borderWidth: "0"
942
+ },
943
+ false: {
944
+ position: "static",
945
+ width: "auto",
946
+ height: "auto",
947
+ padding: "0",
948
+ margin: "0",
949
+ overflow: "visible",
950
+ clip: "auto",
951
+ whiteSpace: "normal"
952
+ }
953
+ };
954
+ var helpers = {
955
+ srOnly: {
956
+ className: "sr",
957
+ values: { type: "boolean" },
958
+ transform(value) {
959
+ return srMapping[value] || {};
960
+ }
961
+ },
962
+ debug: {
963
+ className: "debug",
964
+ values: { type: "boolean" },
965
+ transform(value) {
966
+ if (!value)
967
+ return {};
968
+ return {
969
+ outline: "1px solid blue !important",
970
+ "&>*": {
971
+ outline: "1px solid red !important"
972
+ }
973
+ };
974
+ }
975
+ }
976
+ };
977
+
978
+ // src/utilities/interactivity.ts
979
+ var interactivity = {
980
+ accentColor: {
981
+ className: "accent",
982
+ values: "colors"
983
+ },
984
+ caretColor: {
985
+ className: "caret",
986
+ values: "colors"
987
+ },
988
+ scrollBehavior: {
989
+ className: "scroll"
990
+ },
991
+ scrollbar: {
992
+ className: "scrollbar",
993
+ values: ["visible", "hidden"],
994
+ transform(value) {
995
+ if (value === "visible") {
996
+ return {
997
+ msOverflowStyle: "auto",
998
+ scrollbarWidth: "auto",
999
+ "&::-webkit-scrollbar": {
1000
+ display: "block"
1001
+ }
1002
+ };
1003
+ }
1004
+ if (value === "hidden") {
1005
+ return {
1006
+ msOverflowStyle: "none",
1007
+ scrollbarWidth: "none",
1008
+ "&::-webkit-scrollbar": {
1009
+ display: "none"
1010
+ }
1011
+ };
1012
+ }
1013
+ }
1014
+ },
1015
+ scrollMargin: {
1016
+ className: "scroll-m",
1017
+ values: "spacing"
1018
+ },
1019
+ scrollMarginX: {
1020
+ className: "scroll-mx",
1021
+ values: "spacing",
1022
+ property: "scrollMarginInline",
1023
+ transform(value) {
1024
+ return {
1025
+ scrollMarginInline: value
1026
+ };
1027
+ }
1028
+ },
1029
+ scrollMarginY: {
1030
+ className: "scroll-my",
1031
+ values: "spacing",
1032
+ property: "scrollMarginBlock",
1033
+ transform(value) {
1034
+ return {
1035
+ scrollMarginBlock: value
1036
+ };
1037
+ }
1038
+ },
1039
+ scrollMarginLeft: {
1040
+ className: "scroll-ml",
1041
+ values: "spacing"
1042
+ },
1043
+ scrollMarginRight: {
1044
+ className: "scroll-mr",
1045
+ values: "spacing"
1046
+ },
1047
+ scrollMarginTop: {
1048
+ className: "scroll-mt",
1049
+ values: "spacing"
1050
+ },
1051
+ scrollMarginBottom: {
1052
+ className: "scroll-mb",
1053
+ values: "spacing"
1054
+ },
1055
+ scrollMarginBlock: {
1056
+ className: "scroll-my",
1057
+ values: "spacing"
1058
+ },
1059
+ scrollMarginBlockEnd: {
1060
+ className: "scroll-mb",
1061
+ values: "spacing"
1062
+ },
1063
+ scrollMarginBlockStart: {
1064
+ className: "scroll-mt",
1065
+ values: "spacing"
1066
+ },
1067
+ scrollMarginInline: {
1068
+ className: "scroll-mx",
1069
+ values: "spacing"
1070
+ },
1071
+ scrollMarginInlineEnd: {
1072
+ className: "scroll-me",
1073
+ values: "spacing"
1074
+ },
1075
+ scrollMarginInlineStart: {
1076
+ className: "scroll-ms",
1077
+ values: "spacing"
1078
+ },
1079
+ scrollPadding: {
1080
+ className: "scroll-p",
1081
+ values: "spacing"
1082
+ },
1083
+ scrollPaddingBlock: {
1084
+ className: "scroll-pb",
1085
+ values: "spacing"
1086
+ },
1087
+ scrollPaddingBlockStart: {
1088
+ className: "scroll-pt",
1089
+ values: "spacing"
1090
+ },
1091
+ scrollPaddingBlockEnd: {
1092
+ className: "scroll-pb",
1093
+ values: "spacing"
1094
+ },
1095
+ scrollPaddingInline: {
1096
+ className: "scroll-px",
1097
+ values: "spacing"
1098
+ },
1099
+ scrollPaddingInlineEnd: {
1100
+ className: "scroll-pe",
1101
+ values: "spacing"
1102
+ },
1103
+ scrollPaddingInlineStart: {
1104
+ className: "scroll-ps",
1105
+ values: "spacing"
1106
+ },
1107
+ scrollPaddingX: {
1108
+ className: "scroll-px",
1109
+ values: "spacing",
1110
+ property: "scrollPaddingInline",
1111
+ transform(value) {
1112
+ return {
1113
+ scrollPaddingInline: value
1114
+ };
1115
+ }
1116
+ },
1117
+ scrollPaddingY: {
1118
+ className: "scroll-py",
1119
+ values: "spacing",
1120
+ property: "scrollPaddingBlock",
1121
+ transform(value) {
1122
+ return {
1123
+ scrollPaddingBlock: value
1124
+ };
1125
+ }
1126
+ },
1127
+ scrollPaddingLeft: {
1128
+ className: "scroll-pl",
1129
+ values: "spacing"
1130
+ },
1131
+ scrollPaddingRight: {
1132
+ className: "scroll-pr",
1133
+ values: "spacing"
1134
+ },
1135
+ scrollPaddingTop: {
1136
+ className: "scroll-pt",
1137
+ values: "spacing"
1138
+ },
1139
+ scrollPaddingBottom: {
1140
+ className: "scroll-pb",
1141
+ values: "spacing"
1142
+ },
1143
+ scrollSnapAlign: {
1144
+ className: "snap"
1145
+ },
1146
+ scrollSnapStop: {
1147
+ className: "snap"
1148
+ },
1149
+ scrollSnapType: {
1150
+ className: "snap",
1151
+ values: {
1152
+ none: "none",
1153
+ x: "x var(--scroll-snap-strictness)",
1154
+ y: "y var(--scroll-snap-strictness)",
1155
+ both: "both var(--scroll-snap-strictness)"
1156
+ }
1157
+ },
1158
+ scrollSnapStrictness: {
1159
+ className: "strictness",
1160
+ values: ["mandatory", "proximity"],
1161
+ transform(value) {
1162
+ return {
1163
+ "--scroll-snap-strictness": value
1164
+ };
1165
+ }
1166
+ },
1167
+ scrollSnapMargin: {
1168
+ className: "snap-m",
1169
+ values: "spacing"
1170
+ },
1171
+ scrollSnapMarginTop: {
1172
+ className: "snap-mt",
1173
+ values: "spacing"
1174
+ },
1175
+ scrollSnapMarginBottom: {
1176
+ className: "snap-mb",
1177
+ values: "spacing"
1178
+ },
1179
+ scrollSnapMarginLeft: {
1180
+ className: "snap-ml",
1181
+ values: "spacing"
1182
+ },
1183
+ scrollSnapMarginRight: {
1184
+ className: "snap-mr",
1185
+ values: "spacing"
1186
+ },
1187
+ touchAction: {
1188
+ className: "touch"
1189
+ },
1190
+ userSelect: {
1191
+ className: "select"
1192
+ }
1193
+ };
1194
+
1195
+ // src/utilities/layout.ts
1196
+ var layout = {
1197
+ aspectRatio: {
1198
+ className: "aspect",
1199
+ values: {
1200
+ square: "1 / 1",
1201
+ landscape: "4 / 3",
1202
+ portrait: "3 / 4",
1203
+ wide: "16 / 9",
1204
+ ultrawide: "18 / 5",
1205
+ golden: "1.618 / 1"
1206
+ }
1207
+ },
1208
+ boxDecorationBreak: {
1209
+ className: "decoration"
1210
+ },
1211
+ zIndex: {
1212
+ className: "z"
1213
+ },
1214
+ boxSizing: {
1215
+ className: "box"
1216
+ },
1217
+ objectPosition: {
1218
+ className: "object"
1219
+ },
1220
+ objectFit: {
1221
+ className: "object"
1222
+ },
1223
+ overscrollBehavior: {
1224
+ className: "overscroll"
1225
+ },
1226
+ overscrollBehaviorX: {
1227
+ className: "overscroll-x"
1228
+ },
1229
+ overscrollBehaviorY: {
1230
+ className: "overscroll-y"
1231
+ },
1232
+ position: {
1233
+ className: "pos",
1234
+ shorthand: "pos"
1235
+ },
1236
+ top: {
1237
+ className: "top",
1238
+ values: "spacing"
1239
+ },
1240
+ left: {
1241
+ className: "left",
1242
+ values: "spacing"
1243
+ },
1244
+ insetInline: {
1245
+ className: "inset-x",
1246
+ values: "spacing"
1247
+ },
1248
+ insetBlock: {
1249
+ className: "inset-y",
1250
+ values: "spacing"
1251
+ },
1252
+ inset: {
1253
+ className: "inset",
1254
+ values: "spacing"
1255
+ },
1256
+ insetBlockEnd: {
1257
+ className: "inset-b",
1258
+ values: "spacing"
1259
+ },
1260
+ insetBlockStart: {
1261
+ className: "inset-t",
1262
+ values: "spacing"
1263
+ },
1264
+ insetInlineEnd: {
1265
+ className: "end",
1266
+ values: "spacing",
1267
+ shorthand: ["insetEnd", "end"]
1268
+ },
1269
+ insetInlineStart: {
1270
+ className: "start",
1271
+ values: "spacing",
1272
+ shorthand: ["insetStart", "start"]
1273
+ },
1274
+ right: {
1275
+ className: "right",
1276
+ values: "spacing"
1277
+ },
1278
+ bottom: {
1279
+ className: "bottom",
1280
+ values: "spacing"
1281
+ },
1282
+ insetX: {
1283
+ className: "inset-x",
1284
+ values: "spacing",
1285
+ property: "insetInline",
1286
+ transform(value) {
1287
+ return {
1288
+ insetInline: value
1289
+ };
1290
+ }
1291
+ },
1292
+ insetY: {
1293
+ className: "inset-y",
1294
+ values: "spacing",
1295
+ property: "insetBlock",
1296
+ transform(value) {
1297
+ return {
1298
+ insetBlock: value
1299
+ };
1300
+ }
1301
+ },
1302
+ float: {
1303
+ className: "float",
1304
+ values: ["left", "right", "start", "end"],
1305
+ transform(value) {
1306
+ if (value === "start") {
1307
+ return {
1308
+ float: "left",
1309
+ '[dir="rtl"] &': {
1310
+ float: "right"
1311
+ }
1312
+ };
1313
+ }
1314
+ if (value === "end") {
1315
+ return {
1316
+ float: "right",
1317
+ '[dir="rtl"] &': {
1318
+ float: "left"
1319
+ }
1320
+ };
1321
+ }
1322
+ return {
1323
+ float: value
1324
+ };
1325
+ }
1326
+ },
1327
+ visibility: {
1328
+ className: "vis"
1329
+ }
1330
+ };
1331
+
1332
+ // src/utilities/list.ts
1333
+ var list = {
1334
+ listStyleType: {
1335
+ className: "list"
1336
+ },
1337
+ listStylePosition: {
1338
+ className: "list"
1339
+ },
1340
+ listStyleImage: {
1341
+ className: "list-img",
1342
+ values: "assets"
1343
+ }
1344
+ };
1345
+
1346
+ // src/utilities/outline.ts
1347
+ var outline = {
1348
+ outlineWidth: {
1349
+ className: "ring",
1350
+ shorthand: "ringWidth"
1351
+ },
1352
+ outlineColor: {
1353
+ className: "ring",
1354
+ values: "colors",
1355
+ shorthand: "ringColor"
1356
+ },
1357
+ outline: {
1358
+ className: "ring",
1359
+ shorthand: "ring",
1360
+ values: "borders",
1361
+ transform(value) {
1362
+ if (value === "none") {
1363
+ return { outline: "2px solid transparent", outlineOffset: "2px" };
1364
+ }
1365
+ return { outline: value };
1366
+ }
1367
+ },
1368
+ outlineOffset: {
1369
+ className: "ring",
1370
+ shorthand: "ringOffset",
1371
+ values: "spacing"
1372
+ }
1373
+ };
1374
+
1375
+ // src/utilities/sizing.ts
1376
+ var widthValues = (theme) => ({
1377
+ ...theme("sizes"),
1378
+ "1/2": "50%",
1379
+ "1/3": "33.333333%",
1380
+ "2/3": "66.666667%",
1381
+ "1/4": "25%",
1382
+ "2/4": "50%",
1383
+ "3/4": "75%",
1384
+ "1/5": "20%",
1385
+ "2/5": "40%",
1386
+ "3/5": "60%",
1387
+ "4/5": "80%",
1388
+ "1/6": "16.666667%",
1389
+ "2/6": "33.333333%",
1390
+ "3/6": "50%",
1391
+ "4/6": "66.666667%",
1392
+ "5/6": "83.333333%",
1393
+ "1/12": "8.333333%",
1394
+ "2/12": "16.666667%",
1395
+ "3/12": "25%",
1396
+ "4/12": "33.333333%",
1397
+ "5/12": "41.666667%",
1398
+ "6/12": "50%",
1399
+ "7/12": "58.333333%",
1400
+ "8/12": "66.666667%",
1401
+ "9/12": "75%",
1402
+ "10/12": "83.333333%",
1403
+ "11/12": "91.666667%",
1404
+ screen: "100vw"
1405
+ });
1406
+ var heightValues = (theme) => ({
1407
+ ...theme("sizes"),
1408
+ svh: "100svh",
1409
+ lvh: "100lvh",
1410
+ dvh: "100dvh",
1411
+ screen: "100vh",
1412
+ "1/2": "50%",
1413
+ "1/3": "33.333333%",
1414
+ "2/3": "66.666667%",
1415
+ "1/4": "25%",
1416
+ "2/4": "50%",
1417
+ "3/4": "75%",
1418
+ "1/5": "20%",
1419
+ "2/5": "40%",
1420
+ "3/5": "60%",
1421
+ "4/5": "80%",
1422
+ "1/6": "16.666667%",
1423
+ "2/6": "33.333333%",
1424
+ "3/6": "50%",
1425
+ "4/6": "66.666667%",
1426
+ "5/6": "83.333333%"
1427
+ });
1428
+ var sizing = {
1429
+ width: {
1430
+ shorthand: "w",
1431
+ className: "w",
1432
+ values: widthValues
1433
+ },
1434
+ inlineSize: {
1435
+ className: "w",
1436
+ values: widthValues
1437
+ },
1438
+ minWidth: {
1439
+ shorthand: "minW",
1440
+ className: "min-w",
1441
+ values: widthValues
1442
+ },
1443
+ minInlineSize: {
1444
+ className: "min-w",
1445
+ values: widthValues
1446
+ },
1447
+ maxWidth: {
1448
+ shorthand: "maxW",
1449
+ className: "max-w",
1450
+ values: widthValues
1451
+ },
1452
+ maxInlineSize: {
1453
+ className: "max-w",
1454
+ values: widthValues
1455
+ },
1456
+ height: {
1457
+ shorthand: "h",
1458
+ className: "h",
1459
+ values: heightValues
1460
+ },
1461
+ blockSize: {
1462
+ className: "h",
1463
+ values: heightValues
1464
+ },
1465
+ minHeight: {
1466
+ shorthand: "minH",
1467
+ className: "min-h",
1468
+ values: heightValues
1469
+ },
1470
+ minBlockSize: {
1471
+ className: "min-h",
1472
+ values: heightValues
1473
+ },
1474
+ maxHeight: {
1475
+ shorthand: "maxH",
1476
+ className: "max-h",
1477
+ values: heightValues
1478
+ },
1479
+ maxBlockSize: {
1480
+ className: "max-b",
1481
+ values: heightValues
1482
+ }
1483
+ };
1484
+
1485
+ // src/utilities/spacing.ts
1486
+ var spacing = {
1487
+ padding: {
1488
+ className: "p",
1489
+ shorthand: "p",
1490
+ values: "spacing"
1491
+ },
1492
+ paddingLeft: {
1493
+ className: "pl",
1494
+ shorthand: "pl",
1495
+ values: "spacing"
1496
+ },
1497
+ paddingRight: {
1498
+ className: "pr",
1499
+ shorthand: "pr",
1500
+ values: "spacing"
1501
+ },
1502
+ paddingTop: {
1503
+ className: "pt",
1504
+ shorthand: "pt",
1505
+ values: "spacing"
1506
+ },
1507
+ paddingBottom: {
1508
+ className: "pb",
1509
+ shorthand: "pb",
1510
+ values: "spacing"
1511
+ },
1512
+ paddingBlock: {
1513
+ className: "py",
1514
+ values: "spacing",
1515
+ shorthand: ["py", "paddingY"]
1516
+ },
1517
+ paddingBlockEnd: {
1518
+ className: "pb",
1519
+ values: "spacing"
1520
+ },
1521
+ paddingBlockStart: {
1522
+ className: "pt",
1523
+ values: "spacing"
1524
+ },
1525
+ paddingInline: {
1526
+ className: "px",
1527
+ values: "spacing",
1528
+ shorthand: ["paddingX", "px"]
1529
+ },
1530
+ paddingInlineEnd: {
1531
+ className: "pe",
1532
+ shorthand: ["pe", "paddingEnd"],
1533
+ values: "spacing"
1534
+ },
1535
+ paddingInlineStart: {
1536
+ className: "ps",
1537
+ shorthand: ["ps", "paddingStart"],
1538
+ values: "spacing"
1539
+ },
1540
+ marginLeft: {
1541
+ className: "ml",
1542
+ shorthand: "ml",
1543
+ values: "spacing"
1544
+ },
1545
+ marginRight: {
1546
+ className: "mr",
1547
+ shorthand: "mr",
1548
+ values: "spacing"
1549
+ },
1550
+ marginTop: {
1551
+ className: "mt",
1552
+ shorthand: "mt",
1553
+ values: "spacing"
1554
+ },
1555
+ marginBottom: {
1556
+ className: "mb",
1557
+ shorthand: "mb",
1558
+ values: "spacing"
1559
+ },
1560
+ margin: {
1561
+ className: "m",
1562
+ shorthand: "m",
1563
+ values: "spacing"
1564
+ },
1565
+ marginBlock: {
1566
+ className: "my",
1567
+ values: "spacing",
1568
+ shorthand: ["my", "marginY"]
1569
+ },
1570
+ marginBlockEnd: {
1571
+ className: "mb",
1572
+ values: "spacing"
1573
+ },
1574
+ marginBlockStart: {
1575
+ className: "mt",
1576
+ values: "spacing"
1577
+ },
1578
+ marginInline: {
1579
+ className: "mx",
1580
+ values: "spacing",
1581
+ shorthand: ["mx", "marginX"]
1582
+ },
1583
+ marginInlineEnd: {
1584
+ className: "me",
1585
+ shorthand: ["me", "marginEnd"],
1586
+ values: "spacing"
1587
+ },
1588
+ marginInlineStart: {
1589
+ className: "ms",
1590
+ shorthand: ["ms", "marginStart"],
1591
+ values: "spacing"
1592
+ }
1593
+ };
1594
+
1595
+ // src/utilities/svg.ts
1596
+ var svg = {
1597
+ fill: {
1598
+ className: "fill",
1599
+ values: "colors"
1600
+ },
1601
+ stroke: {
1602
+ className: "stroke",
1603
+ values: "colors"
1604
+ }
1605
+ };
1606
+
1607
+ // src/utilities/tables.ts
1608
+ var tables = {
1609
+ borderCollapse: {
1610
+ className: "border"
1611
+ },
1612
+ borderSpacing: {
1613
+ className: "border-spacing",
1614
+ values: "spacing"
1615
+ },
1616
+ borderSpacingX: {
1617
+ className: "border-spacing-x",
1618
+ values: "spacing",
1619
+ transform(value) {
1620
+ return {
1621
+ borderSpacing: `${value} var(--border-spacing-y)`
1622
+ };
1623
+ }
1624
+ },
1625
+ borderSpacingY: {
1626
+ className: "border-spacing-y",
1627
+ values: "spacing",
1628
+ transform(value) {
1629
+ return {
1630
+ borderSpacing: `var(--border-spacing-x) ${value}`
1631
+ };
1632
+ }
1633
+ },
1634
+ tableLayout: {
1635
+ className: "table"
1636
+ }
1637
+ };
1638
+
1639
+ // src/utilities/transforms.ts
1640
+ var transformTemplate = [
1641
+ "rotate(var(--rotate))",
1642
+ "scaleX(var(--scale-x))",
1643
+ "scaleY(var(--scale-y))",
1644
+ "skewX(var(--skew-x))",
1645
+ "skewY(var(--skew-y))"
1646
+ ];
1647
+ var baseTransformTemplate = [
1648
+ "translateX(var(--translate-x))",
1649
+ "translateY(var(--translate-y))",
1650
+ ...transformTemplate
1651
+ ].join(" ");
1652
+ var gpuTransformTemplate = [
1653
+ "translate3d(var(--translate-x), var(--translate-y), 0)",
1654
+ ...transformTemplate
1655
+ ].join(" ");
1656
+ var transforms = {
1657
+ transform: {
1658
+ className: "transform",
1659
+ values: {
1660
+ auto: baseTransformTemplate,
1661
+ "auto-gpu": gpuTransformTemplate
1662
+ }
1663
+ },
1664
+ transformOrigin: {
1665
+ className: "origin"
1666
+ },
1667
+ scale: {
1668
+ className: "scale",
1669
+ transform(value) {
1670
+ return {
1671
+ "--scale-x": value,
1672
+ "--scale-y": value
1673
+ };
1674
+ }
1675
+ },
1676
+ scaleX: {
1677
+ className: "scale-x",
1678
+ transform(value) {
1679
+ return {
1680
+ "--scale-x": value
1681
+ };
1682
+ }
1683
+ },
1684
+ scaleY: {
1685
+ className: "scale-y",
1686
+ transform(value) {
1687
+ return {
1688
+ "--scale-y": value
1689
+ };
1690
+ }
1691
+ },
1692
+ rotate: {
1693
+ className: "rotate",
1694
+ transform(value) {
1695
+ return {
1696
+ "--rotate": value
1697
+ };
1698
+ }
1699
+ },
1700
+ translateX: {
1701
+ shorthand: "x",
1702
+ className: "translate-x",
1703
+ values(theme) {
1704
+ return {
1705
+ ...theme("spacing"),
1706
+ "1/2": "50%",
1707
+ "1/3": "33.333333%",
1708
+ "2/3": "66.666667%",
1709
+ "1/4": "25%",
1710
+ "2/4": "50%",
1711
+ "3/4": "75%",
1712
+ full: "100%"
1713
+ };
1714
+ },
1715
+ transform(value) {
1716
+ return {
1717
+ "--translate-x": value
1718
+ };
1719
+ }
1720
+ },
1721
+ translateY: {
1722
+ shorthand: "y",
1723
+ className: "translate-y",
1724
+ values(theme) {
1725
+ return {
1726
+ ...theme("spacing"),
1727
+ "1/2": "50%",
1728
+ "1/3": "33.333333%",
1729
+ "2/3": "66.666667%",
1730
+ "1/4": "25%",
1731
+ "2/4": "50%",
1732
+ "3/4": "75%",
1733
+ full: "100%"
1734
+ };
1735
+ },
1736
+ transform(value) {
1737
+ return {
1738
+ "--translate-y": value
1739
+ };
1740
+ }
1741
+ },
1742
+ skewX: {
1743
+ className: "skew-x",
1744
+ transform(value) {
1745
+ return {
1746
+ "--skew-x": value
1747
+ };
1748
+ }
1749
+ },
1750
+ skewY: {
1751
+ className: "skew-y",
1752
+ transform(value) {
1753
+ return {
1754
+ "--skew-y": value
1755
+ };
1756
+ }
1757
+ }
1758
+ };
1759
+
1760
+ // src/utilities/transitions.ts
1761
+ var transitions = {
1762
+ transitionTimingFunction: {
1763
+ className: "ease",
1764
+ values: "easings"
1765
+ },
1766
+ transitionDelay: {
1767
+ className: "delay",
1768
+ values: "durations"
1769
+ },
1770
+ transitionDuration: {
1771
+ className: "duration",
1772
+ values: "durations"
1773
+ },
1774
+ transitionProperty: {
1775
+ className: "transition",
1776
+ values: {
1777
+ all: "all",
1778
+ none: "none",
1779
+ opacity: "opacity",
1780
+ shadow: "box-shadow",
1781
+ transform: "transform",
1782
+ base: "color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
1783
+ background: "background, background-color",
1784
+ colors: "color, background-color, border-color, outline-color, text-decoration-color, fill, stroke"
1785
+ }
1786
+ },
1787
+ animation: {
1788
+ className: "animation",
1789
+ values: "animations"
1790
+ },
1791
+ animationDelay: {
1792
+ className: "animation-delay",
1793
+ values: "durations"
1794
+ }
1795
+ };
1796
+
1797
+ // src/utilities/typography.ts
1798
+ var typography = {
1799
+ color: {
1800
+ className: "text",
1801
+ values: "colors"
1802
+ },
1803
+ fontFamily: {
1804
+ className: "font",
1805
+ values: "fonts"
1806
+ },
1807
+ fontSize: {
1808
+ className: "fs",
1809
+ values: "fontSizes"
1810
+ },
1811
+ fontWeight: {
1812
+ className: "font",
1813
+ values: "fontWeights"
1814
+ },
1815
+ fontSmoothing: {
1816
+ className: "smoothing",
1817
+ values: {
1818
+ antialiased: "antialiased",
1819
+ "subpixel-antialiased": "auto"
1820
+ },
1821
+ transform(value) {
1822
+ return {
1823
+ WebkitFontSmoothing: value
1824
+ };
1825
+ }
1826
+ },
1827
+ fontVariantNumeric: {
1828
+ className: "numeric"
1829
+ },
1830
+ letterSpacing: {
1831
+ className: "tracking",
1832
+ values: "letterSpacings"
1833
+ },
1834
+ lineHeight: {
1835
+ className: "leading",
1836
+ values: "lineHeights"
1837
+ },
1838
+ textAlign: {
1839
+ className: "text"
1840
+ },
1841
+ textDecoration: {
1842
+ className: "text-decor"
1843
+ },
1844
+ textDecorationColor: {
1845
+ className: "text-decor",
1846
+ values: "colors"
1847
+ },
1848
+ textEmphasisColor: {
1849
+ className: "text-emphasis",
1850
+ values: "colors"
1851
+ },
1852
+ textDecorationStyle: {
1853
+ className: "decoration"
1854
+ },
1855
+ textDecorationThickness: {
1856
+ className: "decoration"
1857
+ },
1858
+ textUnderlineOffset: {
1859
+ className: "underline-offset"
1860
+ },
1861
+ textTransform: {
1862
+ className: "text"
1863
+ },
1864
+ textIndent: {
1865
+ className: "indent",
1866
+ values: "spacing"
1867
+ },
1868
+ textShadow: {
1869
+ className: "text-shadow",
1870
+ values: "shadows"
1871
+ },
1872
+ textOverflow: {
1873
+ className: "text"
1874
+ },
1875
+ verticalAlign: {
1876
+ className: "align"
1877
+ },
1878
+ wordBreak: {
1879
+ className: "break"
1880
+ },
1881
+ textWrap: {
1882
+ className: "text",
1883
+ values: ["wrap", "balance", "nowrap"],
1884
+ transform(value) {
1885
+ return { textWrap: value };
1886
+ }
1887
+ },
1888
+ truncate: {
1889
+ className: "truncate",
1890
+ values: { type: "boolean" },
1891
+ transform(value) {
1892
+ if (!value)
1893
+ return {};
1894
+ return {
1895
+ overflow: "hidden",
1896
+ textOverflow: "ellipsis",
1897
+ whiteSpace: "nowrap"
1898
+ };
1899
+ }
1900
+ },
1901
+ lineClamp: {
1902
+ className: "clamp",
1903
+ transform(value) {
1904
+ if (value === "none") {
1905
+ return {
1906
+ WebkitLineClamp: "unset"
1907
+ };
1908
+ }
1909
+ return {
1910
+ overflow: "hidden",
1911
+ display: "-webkit-box",
1912
+ WebkitLineClamp: value,
1913
+ WebkitBoxOrient: "vertical"
1914
+ };
1915
+ }
1916
+ }
1917
+ };
1918
+
1919
+ // src/utilities/index.ts
1920
+ var utilities = Object.assign(
1921
+ {},
1922
+ layout,
1923
+ display,
1924
+ flexGrid,
1925
+ spacing,
1926
+ outline,
1927
+ divide,
1928
+ sizing,
1929
+ typography,
1930
+ list,
1931
+ background,
1932
+ border,
1933
+ effects,
1934
+ tables,
1935
+ transitions,
1936
+ transforms,
1937
+ interactivity,
1938
+ svg,
1939
+ helpers
1940
+ );
1941
+
1942
+ // src/patterns.ts
1943
+ function definePattern(config) {
1944
+ return config;
1945
+ }
1946
+ var box = definePattern({
1947
+ properties: {},
1948
+ transform(props) {
1949
+ return props;
1950
+ }
1951
+ });
1952
+ var flex = definePattern({
1953
+ properties: {
1954
+ align: { type: "property", value: "alignItems" },
1955
+ justify: { type: "property", value: "justifyContent" },
1956
+ direction: { type: "property", value: "flexDirection" },
1957
+ wrap: { type: "property", value: "flexWrap" },
1958
+ basis: { type: "property", value: "flexBasis" },
1959
+ grow: { type: "property", value: "flexGrow" },
1960
+ shrink: { type: "property", value: "flexShrink" }
1961
+ },
1962
+ transform(props) {
1963
+ const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
1964
+ return {
1965
+ display: "flex",
1966
+ flexDirection: direction,
1967
+ alignItems: align,
1968
+ justifyContent: justify,
1969
+ flexWrap: wrap2,
1970
+ flexBasis: basis,
1971
+ flexGrow: grow,
1972
+ flexShrink: shrink,
1973
+ ...rest
1974
+ };
1975
+ }
1976
+ });
1977
+ var stack = definePattern({
1978
+ properties: {
1979
+ align: { type: "property", value: "alignItems" },
1980
+ justify: { type: "property", value: "justifyContent" },
1981
+ direction: { type: "property", value: "flexDirection" },
1982
+ gap: { type: "property", value: "gap" }
1983
+ },
1984
+ transform(props) {
1985
+ const { align, justify, direction = "column", gap = "10px", ...rest } = props;
1986
+ return {
1987
+ display: "flex",
1988
+ flexDirection: direction,
1989
+ alignItems: align,
1990
+ justifyContent: justify,
1991
+ gap,
1992
+ ...rest
1993
+ };
1994
+ }
1995
+ });
1996
+ var vstack = definePattern({
1997
+ jsx: "VStack",
1998
+ properties: {
1999
+ justify: { type: "property", value: "justifyContent" },
2000
+ gap: { type: "property", value: "gap" }
2001
+ },
2002
+ transform(props) {
2003
+ const { justify, gap = "10px", ...rest } = props;
2004
+ return {
2005
+ display: "flex",
2006
+ alignItems: "center",
2007
+ justifyContent: justify,
2008
+ gap,
2009
+ flexDirection: "column",
2010
+ ...rest
2011
+ };
2012
+ }
2013
+ });
2014
+ var hstack = definePattern({
2015
+ jsx: "HStack",
2016
+ properties: {
2017
+ justify: { type: "property", value: "justifyContent" },
2018
+ gap: { type: "property", value: "gap" }
2019
+ },
2020
+ transform(props) {
2021
+ const { justify, gap = "10px", ...rest } = props;
2022
+ return {
2023
+ display: "flex",
2024
+ alignItems: "center",
2025
+ justifyContent: justify,
2026
+ gap,
2027
+ flexDirection: "row",
2028
+ ...rest
2029
+ };
2030
+ }
2031
+ });
2032
+ var spacer = definePattern({
2033
+ properties: {
2034
+ size: { type: "token", value: "spacing" }
2035
+ },
2036
+ transform(props, { map }) {
2037
+ const { size, ...rest } = props;
2038
+ return {
2039
+ alignSelf: "stretch",
2040
+ justifySelf: "stretch",
2041
+ flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
2042
+ ...rest
2043
+ };
2044
+ }
2045
+ });
2046
+ var circle = definePattern({
2047
+ properties: {
2048
+ size: { type: "property", value: "width" }
2049
+ },
2050
+ transform(props) {
2051
+ const { size, ...rest } = props;
2052
+ return {
2053
+ display: "flex",
2054
+ alignItems: "center",
2055
+ justifyContent: "center",
2056
+ flex: "0 0 auto",
2057
+ width: size,
2058
+ height: size,
2059
+ borderRadius: "9999px",
2060
+ ...rest
2061
+ };
2062
+ }
2063
+ });
2064
+ var square = definePattern({
2065
+ properties: {
2066
+ size: { type: "property", value: "width" }
2067
+ },
2068
+ transform(props) {
2069
+ const { size, ...rest } = props;
2070
+ return {
2071
+ display: "flex",
2072
+ alignItems: "center",
2073
+ justifyContent: "center",
2074
+ flex: "0 0 auto",
2075
+ width: size,
2076
+ height: size,
2077
+ ...rest
2078
+ };
2079
+ }
2080
+ });
2081
+ var absoluteCenter = definePattern({
2082
+ properties: {
2083
+ axis: { type: "enum", value: ["x", "y", "both"] }
2084
+ },
2085
+ transform(props, { map }) {
2086
+ const { axis = "both", ...rest } = props;
2087
+ return {
2088
+ position: "absolute",
2089
+ insetBlockStart: map(axis, (v) => v === "x" ? "auto" : "50%"),
2090
+ insetInlineStart: map(axis, (v) => v === "y" ? "auto" : "50%"),
2091
+ transform: map(
2092
+ axis,
2093
+ (v) => v === "both" ? "translate(-50%, -50%)" : v === "x" ? "translateX(-50%)" : "translateY(-50%)"
2094
+ ),
2095
+ maxWidth: "100%",
2096
+ maxHeight: "100%",
2097
+ ...rest
2098
+ };
2099
+ }
2100
+ });
2101
+ var grid = definePattern({
2102
+ properties: {
2103
+ gap: { type: "property", value: "gap" },
2104
+ columnGap: { type: "property", value: "gap" },
2105
+ rowGap: { type: "property", value: "gap" },
2106
+ columns: { type: "number" },
2107
+ minChildWidth: { type: "token", value: "sizes", property: "width" }
2108
+ },
2109
+ transform(props, { map }) {
2110
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", columns, minChildWidth, ...rest } = props;
2111
+ return {
2112
+ display: "grid",
2113
+ gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${v}, 1fr))`) : void 0,
2114
+ gap,
2115
+ columnGap,
2116
+ rowGap,
2117
+ ...rest
2118
+ };
2119
+ }
2120
+ });
2121
+ var gridItem = definePattern({
2122
+ properties: {
2123
+ colSpan: { type: "number" },
2124
+ rowSpan: { type: "number" },
2125
+ colStart: { type: "number" },
2126
+ rowStart: { type: "number" },
2127
+ colEnd: { type: "number" },
2128
+ rowEnd: { type: "number" }
2129
+ },
2130
+ transform(props, { map }) {
2131
+ const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
2132
+ const spanFn = (v) => v === "auto" ? v : `span ${v}`;
2133
+ return {
2134
+ gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
2135
+ gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
2136
+ gridColumnEnd: colEnd,
2137
+ gridRowEnd: rowEnd,
2138
+ ...rest
2139
+ };
2140
+ }
2141
+ });
2142
+ var wrap = definePattern({
2143
+ properties: {
2144
+ gap: { type: "property", value: "gap" },
2145
+ rowGap: { type: "property", value: "gap" },
2146
+ columnGap: { type: "property", value: "gap" },
2147
+ align: { type: "property", value: "alignItems" },
2148
+ justify: { type: "property", value: "justifyContent" }
2149
+ },
2150
+ transform(props) {
2151
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props;
2152
+ return {
2153
+ display: "flex",
2154
+ flexWrap: "wrap",
2155
+ alignItems: align,
2156
+ justifyContent: justify,
2157
+ gap,
2158
+ columnGap,
2159
+ rowGap,
2160
+ ...rest
2161
+ };
2162
+ }
2163
+ });
2164
+ var container = definePattern({
2165
+ properties: {},
2166
+ transform(props) {
2167
+ return {
2168
+ position: "relative",
2169
+ maxWidth: "8xl",
2170
+ mx: "auto",
2171
+ px: { base: "4", md: "6", lg: "8" },
2172
+ ...props
2173
+ };
2174
+ }
2175
+ });
2176
+ var center = definePattern({
2177
+ properties: {
2178
+ inline: { type: "boolean" }
2179
+ },
2180
+ transform(props) {
2181
+ const { inline, ...rest } = props;
2182
+ return {
2183
+ display: inline ? "inline-flex" : "flex",
2184
+ alignItems: "center",
2185
+ justifyContent: "center",
2186
+ ...rest
2187
+ };
2188
+ }
2189
+ });
2190
+ var aspectRatio = definePattern({
2191
+ properties: {
2192
+ ratio: { type: "number" }
2193
+ },
2194
+ blocklist: ["aspectRatio"],
2195
+ transform(props) {
2196
+ const { ratio, ...rest } = props;
2197
+ return {
2198
+ aspectRatio: ratio,
2199
+ overflow: "hidden",
2200
+ display: "flex",
2201
+ justifyContent: "center",
2202
+ alignItems: "center",
2203
+ "&>img, &>video": {
2204
+ width: "100%",
2205
+ height: "100%",
2206
+ objectFit: "cover"
2207
+ },
2208
+ ...rest
2209
+ };
2210
+ }
2211
+ });
2212
+ var divider = definePattern({
2213
+ properties: {
2214
+ orientation: { type: "enum", value: ["horizontal", "vertical"] },
2215
+ thickness: { type: "token", value: "sizes", property: "borderWidth" },
2216
+ color: { type: "token", value: "colors", property: "borderColor" }
2217
+ },
2218
+ transform(props, { map }) {
2219
+ const { orientation = "horizontal", thickness = "1px", color, ...rest } = props;
2220
+ return {
2221
+ "--thickness": thickness,
2222
+ width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
2223
+ height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
2224
+ borderInlineStartWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
2225
+ borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
2226
+ borderColor: color,
2227
+ ...rest
2228
+ };
2229
+ }
2230
+ });
2231
+ var float = definePattern({
2232
+ properties: {
2233
+ offsetX: { type: "token", value: "spacing", property: "left" },
2234
+ offsetY: { type: "token", value: "spacing", property: "top" },
2235
+ offset: { type: "token", value: "spacing", property: "top" },
2236
+ placement: {
2237
+ type: "enum",
2238
+ value: [
2239
+ "bottom-end",
2240
+ "bottom-start",
2241
+ "top-end",
2242
+ "top-start",
2243
+ "bottom-center",
2244
+ "top-center",
2245
+ "middle-center",
2246
+ "middle-end",
2247
+ "middle-start"
2248
+ ]
2249
+ }
2250
+ },
2251
+ transform(props, { map }) {
2252
+ const { offset = "0", offsetX = offset, offsetY = offset, placement = "top-end", ...rest } = props;
2253
+ return {
2254
+ display: "inline-flex",
2255
+ justifyContent: "center",
2256
+ alignItems: "center",
2257
+ position: "absolute",
2258
+ insetBlockStart: map(placement, (v) => {
2259
+ const [side] = v.split("-");
2260
+ const map2 = { top: offsetY, middle: "50%", bottom: "auto" };
2261
+ return map2[side];
2262
+ }),
2263
+ insetBlockEnd: map(placement, (v) => {
2264
+ const [side] = v.split("-");
2265
+ const map2 = { top: "auto", middle: "50%", bottom: offsetY };
2266
+ return map2[side];
2267
+ }),
2268
+ insetInlineStart: map(placement, (v) => {
2269
+ const [, align] = v.split("-");
2270
+ const map2 = { start: offsetX, center: "50%", end: "auto" };
2271
+ return map2[align];
2272
+ }),
2273
+ insetInlineEnd: map(placement, (v) => {
2274
+ const [, align] = v.split("-");
2275
+ const map2 = { start: "auto", center: "50%", end: offsetX };
2276
+ return map2[align];
2277
+ }),
2278
+ translate: map(placement, (v) => {
2279
+ const [side, align] = v.split("-");
2280
+ const mapX = { start: "-50%", center: "-50%", end: "50%" };
2281
+ const mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
2282
+ return `${mapX[align]} ${mapY[side]}`;
2283
+ }),
2284
+ ...rest
2285
+ };
2286
+ }
2287
+ });
2288
+ var patterns = {
2289
+ box,
2290
+ flex,
2291
+ stack,
2292
+ vstack,
2293
+ hstack,
2294
+ spacer,
2295
+ square,
2296
+ circle,
2297
+ center,
2298
+ absoluteCenter,
2299
+ aspectRatio,
2300
+ grid,
2301
+ gridItem,
2302
+ wrap,
2303
+ container,
2304
+ divider,
2305
+ float
2306
+ };
2307
+
2308
+ // src/index.ts
2309
+ var definePreset = (preset2) => preset2;
2310
+ var preset = definePreset({
2311
+ conditions,
2312
+ utilities,
2313
+ patterns
2314
+ });
2315
+ var src_default = preset;
2316
+ // Annotate the CommonJS export names for ESM import in node:
2317
+ 0 && (module.exports = {
2318
+ preset
2319
+ });