@pandacss/eslint-plugin 0.3.2 → 2.0.0-beta.11

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