@tokenami/config 0.0.30 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,90 +1,5 @@
1
- // src/config.ts
2
- var gridPropertyRegex = /--_grid/;
3
- var GridProperty = {
4
- safeParse: (input) => validate(gridPropertyRegex, input)
5
- };
6
- function gridProperty() {
7
- return `--_grid`;
8
- }
9
- var gridValueRegex = /^\d+/;
10
- var GridValue = {
11
- safeParse: (input) => validate(gridValueRegex, input)
12
- };
13
- var tokenPropertyRegex = /(?<!var\()--(\w([\w-]+)?)/;
14
- var TokenProperty = {
15
- safeParse: (input) => validate(tokenPropertyRegex, input)
16
- };
17
- function tokenProperty(name) {
18
- return `--${name}`;
19
- }
20
- var variantPropertyRegex = /(?<!var\()--((\w)([\w-]+)_([\w-]+))/;
21
- var VariantProperty = {
22
- safeParse: (input) => validate(variantPropertyRegex, input)
23
- };
24
- function variantProperty(variant, name) {
25
- return `--${variant}_${name}`;
26
- }
27
- var tokenValueRegex = /var\((--([\w-]+)_([\w-]+))\)/;
28
- var TokenValue = {
29
- safeParse: (input) => validate(tokenValueRegex, input)
30
- };
31
- function tokenValue(themeKey, name) {
32
- return `var(--${themeKey}_${name})`;
33
- }
34
- var arbitraryValueRegex = /var\(---,(.+)\)/;
35
- var ArbitraryValue = {
36
- safeParse: (input) => validate(arbitraryValueRegex, input)
37
- };
38
- function arbitraryValue(value) {
39
- return `var(---,${value})`;
40
- }
41
- function validate(regex, input) {
42
- try {
43
- const inputString = String(input);
44
- if (regex.test(inputString)) {
45
- return { success: true, output: inputString };
46
- } else {
47
- return { success: false };
48
- }
49
- } catch (e) {
50
- return { success: false };
51
- }
52
- }
53
- var createConfig = (obj) => {
54
- return obj;
55
- };
56
- function getTokenPropertyName(tokenProperty2) {
57
- return tokenProperty2.replace(tokenPropertyRegex, "$1");
58
- }
59
- function getTokenPropertySplit(tokenProperty2) {
60
- const name = getTokenPropertyName(tokenProperty2);
61
- const [alias, ...variants] = name.split("_").reverse();
62
- return { alias, variants: variants.reverse() };
63
- }
64
- function getTokenPropertyParts(tokenProperty2, config) {
65
- var _a, _b, _c;
66
- const name = getTokenPropertyName(tokenProperty2);
67
- const { alias, variants } = getTokenPropertySplit(tokenProperty2);
68
- const [firstVariant, secondVariant] = variants;
69
- const firstSelector = ((_a = config.selectors) == null ? void 0 : _a[firstVariant]) && firstVariant;
70
- const secondSelector = ((_b = config.selectors) == null ? void 0 : _b[secondVariant]) && secondVariant;
71
- const responsive = ((_c = config.responsive) == null ? void 0 : _c[firstVariant]) && firstVariant;
72
- const selector = firstSelector || secondSelector;
73
- const validVariant = [responsive, selector].filter(Boolean).join("_");
74
- if (firstVariant && variantProperty(validVariant, alias) !== tokenProperty2)
75
- return null;
76
- return { name, alias, responsive, selector, variant: validVariant };
77
- }
78
- function getTokenValueParts(tokenValue2) {
79
- const [, property, themeKey, token] = tokenValue2.split(tokenValueRegex);
80
- return { property, themeKey, token };
81
- }
82
- function getCSSPropertiesForAlias(alias, aliases) {
83
- return (aliases == null ? void 0 : aliases[alias]) || [alias];
84
- }
85
-
86
1
  // src/config.default.ts
87
- var defaultConfig = createConfig({
2
+ var defaultConfig = {
88
3
  include: [],
89
4
  grid: "0.25rem",
90
5
  responsive: {},
@@ -235,428 +150,514 @@ var defaultConfig = createConfig({
235
150
  width: ["grid", "size"],
236
151
  "z-index": ["z"]
237
152
  }
238
- });
239
- var config_default_default = defaultConfig;
153
+ };
154
+
155
+ // src/config.ts
156
+ var gridPropertyRegex = /--_grid/;
157
+ var GridProperty = {
158
+ safeParse: (input) => validate(gridPropertyRegex, input)
159
+ };
160
+ function gridProperty() {
161
+ return `--_grid`;
162
+ }
163
+ var gridValueRegex = /^\d+/;
164
+ var GridValue = {
165
+ safeParse: (input) => validate(gridValueRegex, input)
166
+ };
167
+ var tokenPropertyRegex = /(?<!var\()--(\w([\w-]+)?)/;
168
+ var TokenProperty = {
169
+ safeParse: (input) => validate(tokenPropertyRegex, input)
170
+ };
171
+ function tokenProperty(name) {
172
+ return `--${name}`;
173
+ }
174
+ var variantPropertyRegex = /(?<!var\()--((\w)([\w-]+)_([\w-]+))/;
175
+ var VariantProperty = {
176
+ safeParse: (input) => validate(variantPropertyRegex, input)
177
+ };
178
+ function variantProperty(variant, name) {
179
+ return `--${variant}_${name}`;
180
+ }
181
+ var tokenValueRegex = /var\((--([\w-]+)_([\w-]+))\)/;
182
+ var TokenValue = {
183
+ safeParse: (input) => validate(tokenValueRegex, input)
184
+ };
185
+ function tokenValue(themeKey, name) {
186
+ return `var(--${themeKey}_${name})`;
187
+ }
188
+ var arbitraryValueRegex = /var\(---,(.+)\)/;
189
+ var ArbitraryValue = {
190
+ safeParse: (input) => validate(arbitraryValueRegex, input)
191
+ };
192
+ function arbitraryValue(value) {
193
+ return `var(---,${value})`;
194
+ }
195
+ function validate(regex, input) {
196
+ try {
197
+ const inputString = String(input);
198
+ if (regex.test(inputString)) {
199
+ return { success: true, output: inputString };
200
+ } else {
201
+ return { success: false };
202
+ }
203
+ } catch (e) {
204
+ return { success: false };
205
+ }
206
+ }
207
+ function createConfig(obj) {
208
+ return obj;
209
+ }
210
+ function getTokenPropertyName(tokenProperty2) {
211
+ return tokenProperty2.replace(tokenPropertyRegex, "$1");
212
+ }
213
+ function getTokenPropertySplit(tokenProperty2) {
214
+ const name = getTokenPropertyName(tokenProperty2);
215
+ const [alias, ...variants] = name.split("_").reverse();
216
+ return { alias, variants: variants.reverse() };
217
+ }
218
+ function getTokenPropertyParts(tokenProperty2, config) {
219
+ var _a, _b, _c;
220
+ const name = getTokenPropertyName(tokenProperty2);
221
+ const { alias, variants } = getTokenPropertySplit(tokenProperty2);
222
+ const [firstVariant, secondVariant] = variants;
223
+ const firstSelector = ((_a = config.selectors) == null ? void 0 : _a[firstVariant]) && firstVariant;
224
+ const secondSelector = ((_b = config.selectors) == null ? void 0 : _b[secondVariant]) && secondVariant;
225
+ const responsive = ((_c = config.responsive) == null ? void 0 : _c[firstVariant]) && firstVariant;
226
+ const selector = firstSelector || secondSelector;
227
+ const validVariant = [responsive, selector].filter(Boolean).join("_");
228
+ if (firstVariant && variantProperty(validVariant, alias) !== tokenProperty2)
229
+ return null;
230
+ return { name, alias, responsive, selector, variant: validVariant };
231
+ }
232
+ function getTokenValueParts(tokenValue2) {
233
+ const [, property, themeKey, token] = tokenValue2.split(tokenValueRegex);
234
+ return { property, themeKey, token };
235
+ }
236
+ function getCSSPropertiesForAlias(alias, aliases) {
237
+ return (aliases == null ? void 0 : aliases[alias]) || [alias];
238
+ }
240
239
 
241
240
  // src/supports.ts
242
- var logicalProperties = [
243
- "block-size",
244
- "border-block",
245
- "border-block-width",
246
- "border-block-style",
247
- "border-block-color",
248
- "border-block-start",
249
- "border-block-end",
250
- "border-block-start-color",
251
- "border-block-start-style",
252
- "border-block-start-width",
253
- "border-block-end-color",
254
- "border-block-end-style",
255
- "border-block-end-width",
256
- "border-inline",
257
- "border-inline-color",
258
- "border-inline-style",
259
- "border-inline-width",
260
- "border-inline-start",
261
- "border-inline-end",
262
- "border-inline-start-color",
263
- "border-inline-start-style",
264
- "border-inline-start-width",
265
- "border-inline-end-color",
266
- "border-inline-end-style",
267
- "border-inline-end-width",
268
- "contain-intrinsic-block-size",
269
- "contain-intrinsic-inline-size",
270
- "inset-block",
271
- "inset-block-end",
272
- "inset-block-start",
273
- "inset-inline",
274
- "inset-inline-end",
275
- "inset-inline-start",
276
- "margin-block",
277
- "margin-block-end",
278
- "margin-block-start",
279
- "margin-inline",
280
- "margin-inline-end",
281
- "margin-inline-start",
282
- "max-block-size",
283
- "min-block-size",
284
- "max-inline-size",
285
- "min-inline-size",
286
- "overflow-block",
287
- "overflow-inline",
288
- "overscroll-behavior-block",
289
- "overscroll-behavior-inline",
290
- "padding-block",
291
- "padding-block-end",
292
- "padding-block-start",
293
- "padding-inline",
294
- "padding-inline-end",
295
- "padding-inline-start",
296
- "scroll-margin-block",
297
- "scroll-margin-block-end",
298
- "scroll-margin-block-start",
299
- "scroll-margin-inline",
300
- "scroll-margin-inline-end",
301
- "scroll-margin-inline-start",
302
- "scroll-padding-block",
303
- "scroll-padding-block-end",
304
- "scroll-padding-block-start",
305
- "scroll-padding-inline",
306
- "scroll-padding-inline-end",
307
- "scroll-padding-inline-start"
308
- ];
309
- var properties = [
310
- "all",
311
- "-webkit-line-clamp",
312
- "accent-color",
313
- "align-tracks",
314
- "animation",
315
- "animation-composition",
316
- "animation-delay",
317
- "animation-direction",
318
- "animation-duration",
319
- "animation-fill-mode",
320
- "animation-iteration-count",
321
- "animation-name",
322
- "animation-play-state",
323
- "animation-timeline",
324
- "animation-timing-function",
325
- "appearance",
326
- "aspect-ratio",
327
- "backdrop-filter",
328
- "backface-visibility",
329
- "background",
330
- "background-attachment",
331
- "background-blend-mode",
332
- "background-clip",
333
- "background-color",
334
- "background-image",
335
- "background-origin",
336
- "background-position",
337
- "background-position-x",
338
- "background-position-y",
339
- "background-repeat",
340
- "background-size",
341
- "border",
342
- "border-style",
343
- "border-color",
344
- "border-width",
345
- "border-top",
346
- "border-top-color",
347
- "border-top-style",
348
- "border-top-width",
349
- "border-right",
350
- "border-right-color",
351
- "border-right-style",
352
- "border-right-width",
353
- "border-bottom",
354
- "border-bottom-color",
355
- "border-bottom-style",
356
- "border-bottom-width",
357
- "border-left",
358
- "border-left-color",
359
- "border-left-style",
360
- "border-left-width",
361
- "border-image",
362
- "border-image-outset",
363
- "border-image-repeat",
364
- "border-image-slice",
365
- "border-image-source",
366
- "border-image-width",
367
- "border-radius",
368
- "border-top-left-radius",
369
- "border-top-right-radius",
370
- "border-bottom-left-radius",
371
- "border-bottom-right-radius",
372
- "border-start-end-radius",
373
- "border-start-start-radius",
374
- "border-end-end-radius",
375
- "border-end-start-radius",
376
- "border-collapse",
377
- "border-spacing",
378
- "box-decoration-break",
379
- "box-shadow",
380
- "box-sizing",
381
- "break-after",
382
- "break-before",
383
- "break-inside",
384
- "caption-side",
385
- "caret",
386
- "caret-color",
387
- "caret-shape",
388
- "clear",
389
- "clip",
390
- "clip-path",
391
- "color",
392
- "color-scheme",
393
- "column-fill",
394
- "column-span",
395
- "column-rule",
396
- "column-rule-color",
397
- "column-rule-style",
398
- "column-rule-width",
399
- "columns",
400
- "column-count",
401
- "column-width",
402
- "contain",
403
- "contain-intrinsic-height",
404
- "contain-intrinsic-size",
405
- "contain-intrinsic-width",
406
- "container",
407
- "container-name",
408
- "container-type",
409
- "content",
410
- "content-visibility",
411
- "counter-increment",
412
- "counter-reset",
413
- "counter-set",
414
- "cursor",
415
- "direction",
416
- "display",
417
- "empty-cells",
418
- "filter",
419
- "flex",
420
- "flex-basis",
421
- "flex-direction",
422
- "flex-flow",
423
- "flex-grow",
424
- "flex-shrink",
425
- "flex-wrap",
426
- "float",
427
- "font",
428
- "font-family",
429
- "font-feature-settings",
430
- "font-kerning",
431
- "font-language-override",
432
- "font-optical-sizing",
433
- "font-palette",
434
- "font-size",
435
- "font-size-adjust",
436
- "font-stretch",
437
- "font-style",
438
- "font-synthesis",
439
- "font-variant",
440
- "font-variant-alternates",
441
- "font-variant-caps",
442
- "font-variant-east-asian",
443
- "font-variant-emoji",
444
- "font-variant-ligatures",
445
- "font-variant-numeric",
446
- "font-variant-position",
447
- "font-variation-settings",
448
- "font-weight",
449
- "forced-color-adjust",
450
- "gap",
451
- "row-gap",
452
- "column-gap",
453
- "grid",
454
- "grid-area",
455
- "grid-auto-rows",
456
- "grid-auto-columns",
457
- "grid-auto-flow",
458
- "grid-column",
459
- "grid-column-end",
460
- "grid-column-start",
461
- "grid-row",
462
- "grid-row-end",
463
- "grid-row-start",
464
- "grid-template",
465
- "grid-template-rows",
466
- "grid-template-columns",
467
- "grid-template-areas",
468
- "hanging-punctuation",
469
- "height",
470
- "hyphenate-character",
471
- "hyphenate-limit-chars",
472
- "hyphens",
473
- "image-orientation",
474
- "image-rendering",
475
- "image-resolution",
476
- "initial-letter",
477
- "inline-size",
478
- "input-security",
479
- "inset",
480
- "top",
481
- "right",
482
- "bottom",
483
- "left",
484
- "isolation",
485
- "justify-tracks",
486
- "letter-spacing",
487
- "line-break",
488
- "line-clamp",
489
- "line-height",
490
- "line-height-step",
491
- "list-style",
492
- "list-style-image",
493
- "list-style-position",
494
- "list-style-type",
495
- "margin",
496
- "margin-top",
497
- "margin-right",
498
- "margin-bottom",
499
- "margin-left",
500
- "margin-trim",
501
- "mask",
502
- "mask-border",
503
- "mask-border-mode",
504
- "mask-border-outset",
505
- "mask-border-repeat",
506
- "mask-border-slice",
507
- "mask-border-source",
508
- "mask-border-width",
509
- "mask-clip",
510
- "mask-composite",
511
- "mask-image",
512
- "mask-mode",
513
- "mask-origin",
514
- "mask-position",
515
- "mask-repeat",
516
- "mask-size",
517
- "mask-type",
518
- "math-depth",
519
- "math-shift",
520
- "math-style",
521
- "max-height",
522
- "max-lines",
523
- "max-width",
524
- "min-height",
525
- "min-width",
526
- "mix-blend-mode",
527
- "object-fit",
528
- "object-position",
529
- "offset",
530
- "offset-anchor",
531
- "offset-distance",
532
- "offset-path",
533
- "offset-position",
534
- "offset-rotate",
535
- "opacity",
536
- "order",
537
- "orphans",
538
- "outline",
539
- "outline-color",
540
- "outline-offset",
541
- "outline-style",
542
- "outline-width",
543
- "overflow",
544
- "overflow-anchor",
545
- "overflow-clip-margin",
546
- "overflow-wrap",
547
- "overflow-x",
548
- "overflow-y",
549
- "overscroll-behavior",
550
- "overscroll-behavior-x",
551
- "overscroll-behavior-y",
552
- "padding",
553
- "padding-top",
554
- "padding-right",
555
- "padding-bottom",
556
- "padding-left",
557
- "page",
558
- "page-break-after",
559
- "page-break-before",
560
- "page-break-inside",
561
- "paint-order",
562
- "perspective",
563
- "perspective-origin",
564
- "place-content",
565
- "align-content",
566
- "justify-content",
567
- "place-items",
568
- "align-items",
569
- "justify-items",
570
- "place-self",
571
- "align-self",
572
- "justify-self",
573
- "pointer-events",
574
- "position",
575
- "print-color-adjust",
576
- "quotes",
577
- "resize",
578
- "rotate",
579
- "ruby-align",
580
- "ruby-merge",
581
- "ruby-position",
582
- "scale",
583
- "scroll-behavior",
584
- "scroll-margin",
585
- "scroll-margin-top",
586
- "scroll-margin-right",
587
- "scroll-margin-bottom",
588
- "scroll-margin-left",
589
- "scroll-padding",
590
- "scroll-padding-top",
591
- "scroll-padding-right",
592
- "scroll-padding-bottom",
593
- "scroll-padding-left",
594
- "scroll-snap-align",
595
- "scroll-snap-stop",
596
- "scroll-snap-type",
597
- "scroll-timeline",
598
- "scroll-timeline-axis",
599
- "scroll-timeline-name",
600
- "scrollbar-color",
601
- "scrollbar-gutter",
602
- "scrollbar-width",
603
- "shape-image-threshold",
604
- "shape-margin",
605
- "shape-outside",
606
- "tab-size",
607
- "table-layout",
608
- "text-align",
609
- "text-align-last",
610
- "text-combine-upright",
611
- "text-decoration",
612
- "text-decoration-color",
613
- "text-decoration-line",
614
- "text-decoration-style",
615
- "text-decoration-thickness",
616
- "text-decoration-skip-ink",
617
- "text-emphasis",
618
- "text-emphasis-color",
619
- "text-emphasis-position",
620
- "text-emphasis-style",
621
- "text-indent",
622
- "text-justify",
623
- "text-orientation",
624
- "text-overflow",
625
- "text-rendering",
626
- "text-shadow",
627
- "text-size-adjust",
628
- "text-transform",
629
- "text-underline-offset",
630
- "text-underline-position",
631
- "touch-action",
632
- "transform",
633
- "transform-box",
634
- "transform-origin",
635
- "transform-style",
636
- "transition",
637
- "transition-delay",
638
- "transition-duration",
639
- "transition-property",
640
- "transition-timing-function",
641
- "translate",
642
- "unicode-bidi",
643
- "user-select",
644
- "vertical-align",
645
- "view-transition-name",
646
- "visibility",
647
- "white-space",
648
- "widows",
649
- "width",
650
- "will-change",
651
- "word-break",
652
- "word-spacing",
653
- "word-wrap",
654
- "writing-mode",
655
- "z-index",
656
- "zoom",
657
- // logical properties have higher specificity
658
- ...logicalProperties
241
+ var layers = [
242
+ [
243
+ "all",
244
+ "-webkit-line-clamp",
245
+ "accent-color",
246
+ "align-tracks",
247
+ "animation",
248
+ "appearance",
249
+ "aspect-ratio",
250
+ "backdrop-filter",
251
+ "backface-visibility",
252
+ "background",
253
+ "border",
254
+ "border-collapse",
255
+ "border-spacing",
256
+ "border-radius",
257
+ "box-decoration-break",
258
+ "box-shadow",
259
+ "box-sizing",
260
+ "break-after",
261
+ "break-before",
262
+ "break-inside",
263
+ "caption-side",
264
+ "clear",
265
+ "clip-path",
266
+ "color",
267
+ "color-scheme",
268
+ "column-fill",
269
+ "column-span",
270
+ "column-rule",
271
+ "columns",
272
+ "contain",
273
+ "contain-intrinsic-size",
274
+ "container",
275
+ "content",
276
+ "content-visibility",
277
+ "counter-increment",
278
+ "counter-reset",
279
+ "counter-set",
280
+ "cursor",
281
+ "direction",
282
+ "display",
283
+ "empty-cells",
284
+ "filter",
285
+ "flex",
286
+ "flex-flow",
287
+ "float",
288
+ "font",
289
+ "font-feature-settings",
290
+ "font-kerning",
291
+ "font-language-override",
292
+ "font-optical-sizing",
293
+ "font-palette",
294
+ "font-size-adjust",
295
+ "font-synthesis",
296
+ "font-variation-settings",
297
+ "forced-color-adjust",
298
+ "gap",
299
+ "grid",
300
+ "grid-area",
301
+ "grid-column",
302
+ "grid-row",
303
+ "grid-template",
304
+ "hanging-punctuation",
305
+ "height",
306
+ "hyphenate-character",
307
+ "hyphenate-limit-chars",
308
+ "hyphens",
309
+ "image-orientation",
310
+ "image-rendering",
311
+ "image-resolution",
312
+ "initial-letter",
313
+ "input-security",
314
+ "inset",
315
+ "isolation",
316
+ "justify-tracks",
317
+ "letter-spacing",
318
+ "line-break",
319
+ "line-clamp",
320
+ "line-height-step",
321
+ "list-style",
322
+ "margin",
323
+ "mask",
324
+ "mask-border",
325
+ "math-depth",
326
+ "math-shift",
327
+ "math-style",
328
+ "max-height",
329
+ "max-width",
330
+ "min-height",
331
+ "min-width",
332
+ "mix-blend-mode",
333
+ "object-fit",
334
+ "object-position",
335
+ "offset",
336
+ "opacity",
337
+ "order",
338
+ "orphans",
339
+ "outline",
340
+ "overflow",
341
+ "overscroll-behavior",
342
+ "padding",
343
+ "page",
344
+ "paint-order",
345
+ "perspective",
346
+ "perspective-origin",
347
+ "place-content",
348
+ "place-items",
349
+ "place-self",
350
+ "pointer-events",
351
+ "position",
352
+ "print-color-adjust",
353
+ "quotes",
354
+ "resize",
355
+ "rotate",
356
+ "ruby-position",
357
+ "scale",
358
+ "scroll-behavior",
359
+ "scroll-margin",
360
+ "scroll-padding",
361
+ "scroll-snap-align",
362
+ "scroll-snap-stop",
363
+ "scroll-snap-type",
364
+ "scroll-timeline",
365
+ "scrollbar-color",
366
+ "scrollbar-gutter",
367
+ "scrollbar-width",
368
+ "shape-image-threshold",
369
+ "shape-margin",
370
+ "shape-outside",
371
+ "tab-size",
372
+ "table-layout",
373
+ "text-align",
374
+ "text-align-last",
375
+ "text-combine-upright",
376
+ "text-decoration",
377
+ "text-decoration-skip-ink",
378
+ "text-emphasis",
379
+ "text-emphasis-position",
380
+ "text-indent",
381
+ "text-justify",
382
+ "text-orientation",
383
+ "text-overflow",
384
+ "text-rendering",
385
+ "text-shadow",
386
+ "text-size-adjust",
387
+ "text-transform",
388
+ "text-underline-offset",
389
+ "text-underline-position",
390
+ "touch-action",
391
+ "transform",
392
+ "transform-box",
393
+ "transform-origin",
394
+ "transform-style",
395
+ "transition",
396
+ "translate",
397
+ "unicode-bidi",
398
+ "user-select",
399
+ "vertical-align",
400
+ "view-transition-name",
401
+ "visibility",
402
+ "white-space",
403
+ "widows",
404
+ "width",
405
+ "will-change",
406
+ "word-break",
407
+ "word-spacing",
408
+ "word-wrap",
409
+ "writing-mode",
410
+ "z-index",
411
+ "zoom"
412
+ ],
413
+ [
414
+ "animation-composition",
415
+ "animation-delay",
416
+ "animation-direction",
417
+ "animation-duration",
418
+ "animation-fill-mode",
419
+ "animation-iteration-count",
420
+ "animation-name",
421
+ "animation-play-state",
422
+ "animation-timeline",
423
+ "animation-timing-function",
424
+ "background-attachment",
425
+ "background-blend-mode",
426
+ "background-clip",
427
+ "background-color",
428
+ "background-image",
429
+ "background-origin",
430
+ "background-position",
431
+ "background-position-x",
432
+ "background-position-y",
433
+ "background-repeat",
434
+ "background-size",
435
+ "border-top",
436
+ "border-right",
437
+ "border-bottom",
438
+ "border-left",
439
+ "border-top-left-radius",
440
+ "border-top-right-radius",
441
+ "border-bottom-left-radius",
442
+ "border-bottom-right-radius",
443
+ "caret-color",
444
+ "caret-shape",
445
+ "column-rule-color",
446
+ "column-rule-style",
447
+ "column-rule-width",
448
+ "column-count",
449
+ "column-width",
450
+ "contain-intrinsic-width",
451
+ "contain-intrinsic-height",
452
+ "container-name",
453
+ "container-type",
454
+ "flex-grow",
455
+ "flex-shrink",
456
+ "flex-basis",
457
+ "flex-direction",
458
+ "flex-wrap",
459
+ "font-style",
460
+ "font-variant",
461
+ "font-weight",
462
+ "font-stretch",
463
+ "font-size",
464
+ "font-family",
465
+ "row-gap",
466
+ "column-gap",
467
+ "grid-auto-columns",
468
+ "grid-auto-flow",
469
+ "grid-auto-rows",
470
+ "grid-template-areas",
471
+ "grid-template-columns",
472
+ "grid-template-rows",
473
+ "grid-row-start",
474
+ "grid-column-start",
475
+ "grid-row-end",
476
+ "grid-column-end",
477
+ "top",
478
+ "right",
479
+ "bottom",
480
+ "left",
481
+ "line-height",
482
+ "list-style-image",
483
+ "list-style-position",
484
+ "list-style-type",
485
+ "margin-top",
486
+ "margin-right",
487
+ "margin-bottom",
488
+ "margin-left",
489
+ "mask-border-mode",
490
+ "mask-border-outset",
491
+ "mask-border-repeat",
492
+ "mask-border-slice",
493
+ "mask-border-source",
494
+ "mask-border-width",
495
+ "mask-clip",
496
+ "mask-composite",
497
+ "mask-image",
498
+ "mask-mode",
499
+ "mask-origin",
500
+ "mask-position",
501
+ "mask-repeat",
502
+ "mask-size",
503
+ "mask-type",
504
+ "offset-anchor",
505
+ "offset-distance",
506
+ "offset-path",
507
+ "offset-position",
508
+ "offset-rotate",
509
+ "outline-color",
510
+ "outline-offset",
511
+ "outline-style",
512
+ "outline-width",
513
+ "overflow-anchor",
514
+ "overflow-clip-margin",
515
+ "overflow-wrap",
516
+ "overflow-x",
517
+ "overflow-y",
518
+ "overscroll-behavior-x",
519
+ "overscroll-behavior-y",
520
+ "padding-top",
521
+ "padding-right",
522
+ "padding-bottom",
523
+ "padding-left",
524
+ "align-content",
525
+ "justify-content",
526
+ "align-items",
527
+ "justify-items",
528
+ "align-self",
529
+ "justify-self",
530
+ "scroll-margin-top",
531
+ "scroll-margin-right",
532
+ "scroll-margin-bottom",
533
+ "scroll-margin-left",
534
+ "scroll-padding-top",
535
+ "scroll-padding-right",
536
+ "scroll-padding-bottom",
537
+ "scroll-padding-left",
538
+ "scroll-timeline-axis",
539
+ "scroll-timeline-name",
540
+ "text-decoration-color",
541
+ "text-decoration-line",
542
+ "text-decoration-style",
543
+ "text-decoration-thickness",
544
+ "text-emphasis-color",
545
+ "text-emphasis-style",
546
+ "transition-delay",
547
+ "transition-duration",
548
+ "transition-property",
549
+ "transition-timing-function"
550
+ ],
551
+ [
552
+ "border-style",
553
+ "border-color",
554
+ "border-width",
555
+ "border-image",
556
+ "font-variant-alternates",
557
+ "font-variant-caps",
558
+ "font-variant-east-asian",
559
+ "font-variant-emoji",
560
+ "font-variant-ligatures",
561
+ "font-variant-numeric",
562
+ "font-variant-position"
563
+ ],
564
+ [
565
+ "border-top-color",
566
+ "border-top-style",
567
+ "border-top-width",
568
+ "border-right-color",
569
+ "border-right-style",
570
+ "border-right-width",
571
+ "border-bottom-color",
572
+ "border-bottom-style",
573
+ "border-bottom-width",
574
+ "border-left-color",
575
+ "border-left-style",
576
+ "border-left-width",
577
+ "border-image-outset",
578
+ "border-image-repeat",
579
+ "border-image-slice",
580
+ "border-image-source",
581
+ "border-image-width"
582
+ ],
583
+ [
584
+ "block-size",
585
+ "border-block",
586
+ "border-inline",
587
+ "contain-intrinsic-block-size",
588
+ "contain-intrinsic-inline-size",
589
+ "inline-size",
590
+ "inset-block",
591
+ "inset-inline",
592
+ "margin-block",
593
+ "margin-inline",
594
+ "max-block-size",
595
+ "min-block-size",
596
+ "max-inline-size",
597
+ "min-inline-size",
598
+ "overflow-block",
599
+ "overflow-inline",
600
+ "overscroll-behavior-block",
601
+ "overscroll-behavior-inline",
602
+ "padding-block",
603
+ "padding-inline",
604
+ "scroll-margin-block",
605
+ "scroll-margin-inline",
606
+ "scroll-padding-block",
607
+ "scroll-padding-inline"
608
+ ],
609
+ [
610
+ "border-block-width",
611
+ "border-block-style",
612
+ "border-block-color",
613
+ "border-block-start",
614
+ "border-block-end",
615
+ "border-inline-color",
616
+ "border-inline-style",
617
+ "border-inline-width",
618
+ "border-inline-start",
619
+ "border-inline-end",
620
+ "inset-block-end",
621
+ "inset-block-start",
622
+ "inset-inline-end",
623
+ "inset-inline-start",
624
+ "margin-block-end",
625
+ "margin-block-start",
626
+ "margin-inline-end",
627
+ "margin-inline-start",
628
+ "padding-block-end",
629
+ "padding-block-start",
630
+ "padding-inline-end",
631
+ "padding-inline-start",
632
+ "scroll-margin-block-end",
633
+ "scroll-margin-block-start",
634
+ "scroll-margin-inline-end",
635
+ "scroll-margin-inline-start",
636
+ "scroll-padding-block-end",
637
+ "scroll-padding-block-start",
638
+ "scroll-padding-inline-end",
639
+ "scroll-padding-inline-start"
640
+ ],
641
+ [
642
+ "border-start-end-radius",
643
+ "border-start-start-radius",
644
+ "border-end-end-radius",
645
+ "border-end-start-radius",
646
+ "border-block-start-color",
647
+ "border-block-start-style",
648
+ "border-block-start-width",
649
+ "border-block-end-color",
650
+ "border-block-end-style",
651
+ "border-block-end-width",
652
+ "border-inline-start-color",
653
+ "border-inline-start-style",
654
+ "border-inline-start-width",
655
+ "border-inline-end-color",
656
+ "border-inline-end-style",
657
+ "border-inline-end-width"
658
+ ]
659
659
  ];
660
+ var properties = layers.flat();
660
661
 
661
662
  // src/shorthands.ts
662
663
  var mapShorthandToLonghands = {
@@ -689,8 +690,7 @@ var mapShorthandToLonghands = {
689
690
  "border-color",
690
691
  "border-style",
691
692
  "border-width",
692
- "border-image",
693
- "border-radius"
693
+ "border-image"
694
694
  ],
695
695
  "border-top": ["border-top-width", "border-top-style", "border-top-color"],
696
696
  "border-right": ["border-right-width", "border-right-style", "border-right-color"],
@@ -783,19 +783,22 @@ var mapShorthandToLonghands = {
783
783
  "font-family"
784
784
  ],
785
785
  "font-variant": [
786
- "font-variant-ligatures",
786
+ "font-variant-alternates",
787
787
  "font-variant-caps",
788
+ "font-variant-east-asian",
789
+ "font-variant-emoji",
790
+ "font-variant-ligatures",
788
791
  "font-variant-numeric",
789
- "font-variant-east-asian"
792
+ "font-variant-position"
790
793
  ],
791
794
  gap: ["row-gap", "column-gap"],
792
795
  grid: [
793
- "grid-template-rows",
794
- "grid-template-columns",
795
- "grid-template-areas",
796
- "grid-auto-rows",
797
796
  "grid-auto-columns",
798
- "grid-auto-flow"
797
+ "grid-auto-flow",
798
+ "grid-auto-rows",
799
+ "grid-template-areas",
800
+ "grid-template-columns",
801
+ "grid-template-rows"
799
802
  ],
800
803
  "grid-area": ["grid-row-start", "grid-column-start", "grid-row-end", "grid-column-end"],
801
804
  "grid-column": ["grid-column-start", "grid-column-end"],
@@ -830,6 +833,7 @@ var mapShorthandToLonghands = {
830
833
  offset: ["offset-position", "offset-path", "offset-distance", "offset-anchor", "offset-rotate"],
831
834
  outline: ["outline-color", "outline-style", "outline-width"],
832
835
  overflow: ["overflow-x", "overflow-y"],
836
+ "overscroll-behavior": ["overscroll-behavior-x", "overscroll-behavior-y"],
833
837
  padding: ["padding-top", "padding-right", "padding-bottom", "padding-left"],
834
838
  "padding-block": ["padding-block-start", "padding-block-end"],
835
839
  "padding-inline": ["padding-inline-start", "padding-inline-end"],
@@ -861,10 +865,10 @@ var mapShorthandToLonghands = {
861
865
  ],
862
866
  "text-emphasis": ["text-emphasis-style", "text-emphasis-color"],
863
867
  transition: [
864
- "transition-property",
868
+ "transition-delay",
865
869
  "transition-duration",
866
- "transition-timing-function",
867
- "transition-delay"
870
+ "transition-property",
871
+ "transition-timing-function"
868
872
  ]
869
873
  };
870
874
  export {
@@ -876,14 +880,14 @@ export {
876
880
  VariantProperty,
877
881
  arbitraryValue,
878
882
  createConfig,
879
- config_default_default as defaultConfig,
883
+ defaultConfig,
880
884
  getCSSPropertiesForAlias,
881
885
  getTokenPropertyName,
882
886
  getTokenPropertyParts,
883
887
  getTokenPropertySplit,
884
888
  getTokenValueParts,
885
889
  gridProperty,
886
- logicalProperties,
890
+ layers,
887
891
  mapShorthandToLonghands,
888
892
  properties,
889
893
  tokenProperty,