@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.js CHANGED
@@ -28,14 +28,14 @@ __export(src_exports, {
28
28
  VariantProperty: () => VariantProperty,
29
29
  arbitraryValue: () => arbitraryValue,
30
30
  createConfig: () => createConfig,
31
- defaultConfig: () => config_default_default,
31
+ defaultConfig: () => defaultConfig,
32
32
  getCSSPropertiesForAlias: () => getCSSPropertiesForAlias,
33
33
  getTokenPropertyName: () => getTokenPropertyName,
34
34
  getTokenPropertyParts: () => getTokenPropertyParts,
35
35
  getTokenPropertySplit: () => getTokenPropertySplit,
36
36
  getTokenValueParts: () => getTokenValueParts,
37
37
  gridProperty: () => gridProperty,
38
- logicalProperties: () => logicalProperties,
38
+ layers: () => layers,
39
39
  mapShorthandToLonghands: () => mapShorthandToLonghands,
40
40
  properties: () => properties,
41
41
  tokenProperty: () => tokenProperty,
@@ -44,93 +44,8 @@ __export(src_exports, {
44
44
  });
45
45
  module.exports = __toCommonJS(src_exports);
46
46
 
47
- // src/config.ts
48
- var gridPropertyRegex = /--_grid/;
49
- var GridProperty = {
50
- safeParse: (input) => validate(gridPropertyRegex, input)
51
- };
52
- function gridProperty() {
53
- return `--_grid`;
54
- }
55
- var gridValueRegex = /^\d+/;
56
- var GridValue = {
57
- safeParse: (input) => validate(gridValueRegex, input)
58
- };
59
- var tokenPropertyRegex = /(?<!var\()--(\w([\w-]+)?)/;
60
- var TokenProperty = {
61
- safeParse: (input) => validate(tokenPropertyRegex, input)
62
- };
63
- function tokenProperty(name) {
64
- return `--${name}`;
65
- }
66
- var variantPropertyRegex = /(?<!var\()--((\w)([\w-]+)_([\w-]+))/;
67
- var VariantProperty = {
68
- safeParse: (input) => validate(variantPropertyRegex, input)
69
- };
70
- function variantProperty(variant, name) {
71
- return `--${variant}_${name}`;
72
- }
73
- var tokenValueRegex = /var\((--([\w-]+)_([\w-]+))\)/;
74
- var TokenValue = {
75
- safeParse: (input) => validate(tokenValueRegex, input)
76
- };
77
- function tokenValue(themeKey, name) {
78
- return `var(--${themeKey}_${name})`;
79
- }
80
- var arbitraryValueRegex = /var\(---,(.+)\)/;
81
- var ArbitraryValue = {
82
- safeParse: (input) => validate(arbitraryValueRegex, input)
83
- };
84
- function arbitraryValue(value) {
85
- return `var(---,${value})`;
86
- }
87
- function validate(regex, input) {
88
- try {
89
- const inputString = String(input);
90
- if (regex.test(inputString)) {
91
- return { success: true, output: inputString };
92
- } else {
93
- return { success: false };
94
- }
95
- } catch (e) {
96
- return { success: false };
97
- }
98
- }
99
- var createConfig = (obj) => {
100
- return obj;
101
- };
102
- function getTokenPropertyName(tokenProperty2) {
103
- return tokenProperty2.replace(tokenPropertyRegex, "$1");
104
- }
105
- function getTokenPropertySplit(tokenProperty2) {
106
- const name = getTokenPropertyName(tokenProperty2);
107
- const [alias, ...variants] = name.split("_").reverse();
108
- return { alias, variants: variants.reverse() };
109
- }
110
- function getTokenPropertyParts(tokenProperty2, config) {
111
- var _a, _b, _c;
112
- const name = getTokenPropertyName(tokenProperty2);
113
- const { alias, variants } = getTokenPropertySplit(tokenProperty2);
114
- const [firstVariant, secondVariant] = variants;
115
- const firstSelector = ((_a = config.selectors) == null ? void 0 : _a[firstVariant]) && firstVariant;
116
- const secondSelector = ((_b = config.selectors) == null ? void 0 : _b[secondVariant]) && secondVariant;
117
- const responsive = ((_c = config.responsive) == null ? void 0 : _c[firstVariant]) && firstVariant;
118
- const selector = firstSelector || secondSelector;
119
- const validVariant = [responsive, selector].filter(Boolean).join("_");
120
- if (firstVariant && variantProperty(validVariant, alias) !== tokenProperty2)
121
- return null;
122
- return { name, alias, responsive, selector, variant: validVariant };
123
- }
124
- function getTokenValueParts(tokenValue2) {
125
- const [, property, themeKey, token] = tokenValue2.split(tokenValueRegex);
126
- return { property, themeKey, token };
127
- }
128
- function getCSSPropertiesForAlias(alias, aliases) {
129
- return (aliases == null ? void 0 : aliases[alias]) || [alias];
130
- }
131
-
132
47
  // src/config.default.ts
133
- var defaultConfig = createConfig({
48
+ var defaultConfig = {
134
49
  include: [],
135
50
  grid: "0.25rem",
136
51
  responsive: {},
@@ -281,428 +196,514 @@ var defaultConfig = createConfig({
281
196
  width: ["grid", "size"],
282
197
  "z-index": ["z"]
283
198
  }
284
- });
285
- var config_default_default = defaultConfig;
199
+ };
200
+
201
+ // src/config.ts
202
+ var gridPropertyRegex = /--_grid/;
203
+ var GridProperty = {
204
+ safeParse: (input) => validate(gridPropertyRegex, input)
205
+ };
206
+ function gridProperty() {
207
+ return `--_grid`;
208
+ }
209
+ var gridValueRegex = /^\d+/;
210
+ var GridValue = {
211
+ safeParse: (input) => validate(gridValueRegex, input)
212
+ };
213
+ var tokenPropertyRegex = /(?<!var\()--(\w([\w-]+)?)/;
214
+ var TokenProperty = {
215
+ safeParse: (input) => validate(tokenPropertyRegex, input)
216
+ };
217
+ function tokenProperty(name) {
218
+ return `--${name}`;
219
+ }
220
+ var variantPropertyRegex = /(?<!var\()--((\w)([\w-]+)_([\w-]+))/;
221
+ var VariantProperty = {
222
+ safeParse: (input) => validate(variantPropertyRegex, input)
223
+ };
224
+ function variantProperty(variant, name) {
225
+ return `--${variant}_${name}`;
226
+ }
227
+ var tokenValueRegex = /var\((--([\w-]+)_([\w-]+))\)/;
228
+ var TokenValue = {
229
+ safeParse: (input) => validate(tokenValueRegex, input)
230
+ };
231
+ function tokenValue(themeKey, name) {
232
+ return `var(--${themeKey}_${name})`;
233
+ }
234
+ var arbitraryValueRegex = /var\(---,(.+)\)/;
235
+ var ArbitraryValue = {
236
+ safeParse: (input) => validate(arbitraryValueRegex, input)
237
+ };
238
+ function arbitraryValue(value) {
239
+ return `var(---,${value})`;
240
+ }
241
+ function validate(regex, input) {
242
+ try {
243
+ const inputString = String(input);
244
+ if (regex.test(inputString)) {
245
+ return { success: true, output: inputString };
246
+ } else {
247
+ return { success: false };
248
+ }
249
+ } catch (e) {
250
+ return { success: false };
251
+ }
252
+ }
253
+ function createConfig(obj) {
254
+ return obj;
255
+ }
256
+ function getTokenPropertyName(tokenProperty2) {
257
+ return tokenProperty2.replace(tokenPropertyRegex, "$1");
258
+ }
259
+ function getTokenPropertySplit(tokenProperty2) {
260
+ const name = getTokenPropertyName(tokenProperty2);
261
+ const [alias, ...variants] = name.split("_").reverse();
262
+ return { alias, variants: variants.reverse() };
263
+ }
264
+ function getTokenPropertyParts(tokenProperty2, config) {
265
+ var _a, _b, _c;
266
+ const name = getTokenPropertyName(tokenProperty2);
267
+ const { alias, variants } = getTokenPropertySplit(tokenProperty2);
268
+ const [firstVariant, secondVariant] = variants;
269
+ const firstSelector = ((_a = config.selectors) == null ? void 0 : _a[firstVariant]) && firstVariant;
270
+ const secondSelector = ((_b = config.selectors) == null ? void 0 : _b[secondVariant]) && secondVariant;
271
+ const responsive = ((_c = config.responsive) == null ? void 0 : _c[firstVariant]) && firstVariant;
272
+ const selector = firstSelector || secondSelector;
273
+ const validVariant = [responsive, selector].filter(Boolean).join("_");
274
+ if (firstVariant && variantProperty(validVariant, alias) !== tokenProperty2)
275
+ return null;
276
+ return { name, alias, responsive, selector, variant: validVariant };
277
+ }
278
+ function getTokenValueParts(tokenValue2) {
279
+ const [, property, themeKey, token] = tokenValue2.split(tokenValueRegex);
280
+ return { property, themeKey, token };
281
+ }
282
+ function getCSSPropertiesForAlias(alias, aliases) {
283
+ return (aliases == null ? void 0 : aliases[alias]) || [alias];
284
+ }
286
285
 
287
286
  // src/supports.ts
288
- var logicalProperties = [
289
- "block-size",
290
- "border-block",
291
- "border-block-width",
292
- "border-block-style",
293
- "border-block-color",
294
- "border-block-start",
295
- "border-block-end",
296
- "border-block-start-color",
297
- "border-block-start-style",
298
- "border-block-start-width",
299
- "border-block-end-color",
300
- "border-block-end-style",
301
- "border-block-end-width",
302
- "border-inline",
303
- "border-inline-color",
304
- "border-inline-style",
305
- "border-inline-width",
306
- "border-inline-start",
307
- "border-inline-end",
308
- "border-inline-start-color",
309
- "border-inline-start-style",
310
- "border-inline-start-width",
311
- "border-inline-end-color",
312
- "border-inline-end-style",
313
- "border-inline-end-width",
314
- "contain-intrinsic-block-size",
315
- "contain-intrinsic-inline-size",
316
- "inset-block",
317
- "inset-block-end",
318
- "inset-block-start",
319
- "inset-inline",
320
- "inset-inline-end",
321
- "inset-inline-start",
322
- "margin-block",
323
- "margin-block-end",
324
- "margin-block-start",
325
- "margin-inline",
326
- "margin-inline-end",
327
- "margin-inline-start",
328
- "max-block-size",
329
- "min-block-size",
330
- "max-inline-size",
331
- "min-inline-size",
332
- "overflow-block",
333
- "overflow-inline",
334
- "overscroll-behavior-block",
335
- "overscroll-behavior-inline",
336
- "padding-block",
337
- "padding-block-end",
338
- "padding-block-start",
339
- "padding-inline",
340
- "padding-inline-end",
341
- "padding-inline-start",
342
- "scroll-margin-block",
343
- "scroll-margin-block-end",
344
- "scroll-margin-block-start",
345
- "scroll-margin-inline",
346
- "scroll-margin-inline-end",
347
- "scroll-margin-inline-start",
348
- "scroll-padding-block",
349
- "scroll-padding-block-end",
350
- "scroll-padding-block-start",
351
- "scroll-padding-inline",
352
- "scroll-padding-inline-end",
353
- "scroll-padding-inline-start"
354
- ];
355
- var properties = [
356
- "all",
357
- "-webkit-line-clamp",
358
- "accent-color",
359
- "align-tracks",
360
- "animation",
361
- "animation-composition",
362
- "animation-delay",
363
- "animation-direction",
364
- "animation-duration",
365
- "animation-fill-mode",
366
- "animation-iteration-count",
367
- "animation-name",
368
- "animation-play-state",
369
- "animation-timeline",
370
- "animation-timing-function",
371
- "appearance",
372
- "aspect-ratio",
373
- "backdrop-filter",
374
- "backface-visibility",
375
- "background",
376
- "background-attachment",
377
- "background-blend-mode",
378
- "background-clip",
379
- "background-color",
380
- "background-image",
381
- "background-origin",
382
- "background-position",
383
- "background-position-x",
384
- "background-position-y",
385
- "background-repeat",
386
- "background-size",
387
- "border",
388
- "border-style",
389
- "border-color",
390
- "border-width",
391
- "border-top",
392
- "border-top-color",
393
- "border-top-style",
394
- "border-top-width",
395
- "border-right",
396
- "border-right-color",
397
- "border-right-style",
398
- "border-right-width",
399
- "border-bottom",
400
- "border-bottom-color",
401
- "border-bottom-style",
402
- "border-bottom-width",
403
- "border-left",
404
- "border-left-color",
405
- "border-left-style",
406
- "border-left-width",
407
- "border-image",
408
- "border-image-outset",
409
- "border-image-repeat",
410
- "border-image-slice",
411
- "border-image-source",
412
- "border-image-width",
413
- "border-radius",
414
- "border-top-left-radius",
415
- "border-top-right-radius",
416
- "border-bottom-left-radius",
417
- "border-bottom-right-radius",
418
- "border-start-end-radius",
419
- "border-start-start-radius",
420
- "border-end-end-radius",
421
- "border-end-start-radius",
422
- "border-collapse",
423
- "border-spacing",
424
- "box-decoration-break",
425
- "box-shadow",
426
- "box-sizing",
427
- "break-after",
428
- "break-before",
429
- "break-inside",
430
- "caption-side",
431
- "caret",
432
- "caret-color",
433
- "caret-shape",
434
- "clear",
435
- "clip",
436
- "clip-path",
437
- "color",
438
- "color-scheme",
439
- "column-fill",
440
- "column-span",
441
- "column-rule",
442
- "column-rule-color",
443
- "column-rule-style",
444
- "column-rule-width",
445
- "columns",
446
- "column-count",
447
- "column-width",
448
- "contain",
449
- "contain-intrinsic-height",
450
- "contain-intrinsic-size",
451
- "contain-intrinsic-width",
452
- "container",
453
- "container-name",
454
- "container-type",
455
- "content",
456
- "content-visibility",
457
- "counter-increment",
458
- "counter-reset",
459
- "counter-set",
460
- "cursor",
461
- "direction",
462
- "display",
463
- "empty-cells",
464
- "filter",
465
- "flex",
466
- "flex-basis",
467
- "flex-direction",
468
- "flex-flow",
469
- "flex-grow",
470
- "flex-shrink",
471
- "flex-wrap",
472
- "float",
473
- "font",
474
- "font-family",
475
- "font-feature-settings",
476
- "font-kerning",
477
- "font-language-override",
478
- "font-optical-sizing",
479
- "font-palette",
480
- "font-size",
481
- "font-size-adjust",
482
- "font-stretch",
483
- "font-style",
484
- "font-synthesis",
485
- "font-variant",
486
- "font-variant-alternates",
487
- "font-variant-caps",
488
- "font-variant-east-asian",
489
- "font-variant-emoji",
490
- "font-variant-ligatures",
491
- "font-variant-numeric",
492
- "font-variant-position",
493
- "font-variation-settings",
494
- "font-weight",
495
- "forced-color-adjust",
496
- "gap",
497
- "row-gap",
498
- "column-gap",
499
- "grid",
500
- "grid-area",
501
- "grid-auto-rows",
502
- "grid-auto-columns",
503
- "grid-auto-flow",
504
- "grid-column",
505
- "grid-column-end",
506
- "grid-column-start",
507
- "grid-row",
508
- "grid-row-end",
509
- "grid-row-start",
510
- "grid-template",
511
- "grid-template-rows",
512
- "grid-template-columns",
513
- "grid-template-areas",
514
- "hanging-punctuation",
515
- "height",
516
- "hyphenate-character",
517
- "hyphenate-limit-chars",
518
- "hyphens",
519
- "image-orientation",
520
- "image-rendering",
521
- "image-resolution",
522
- "initial-letter",
523
- "inline-size",
524
- "input-security",
525
- "inset",
526
- "top",
527
- "right",
528
- "bottom",
529
- "left",
530
- "isolation",
531
- "justify-tracks",
532
- "letter-spacing",
533
- "line-break",
534
- "line-clamp",
535
- "line-height",
536
- "line-height-step",
537
- "list-style",
538
- "list-style-image",
539
- "list-style-position",
540
- "list-style-type",
541
- "margin",
542
- "margin-top",
543
- "margin-right",
544
- "margin-bottom",
545
- "margin-left",
546
- "margin-trim",
547
- "mask",
548
- "mask-border",
549
- "mask-border-mode",
550
- "mask-border-outset",
551
- "mask-border-repeat",
552
- "mask-border-slice",
553
- "mask-border-source",
554
- "mask-border-width",
555
- "mask-clip",
556
- "mask-composite",
557
- "mask-image",
558
- "mask-mode",
559
- "mask-origin",
560
- "mask-position",
561
- "mask-repeat",
562
- "mask-size",
563
- "mask-type",
564
- "math-depth",
565
- "math-shift",
566
- "math-style",
567
- "max-height",
568
- "max-lines",
569
- "max-width",
570
- "min-height",
571
- "min-width",
572
- "mix-blend-mode",
573
- "object-fit",
574
- "object-position",
575
- "offset",
576
- "offset-anchor",
577
- "offset-distance",
578
- "offset-path",
579
- "offset-position",
580
- "offset-rotate",
581
- "opacity",
582
- "order",
583
- "orphans",
584
- "outline",
585
- "outline-color",
586
- "outline-offset",
587
- "outline-style",
588
- "outline-width",
589
- "overflow",
590
- "overflow-anchor",
591
- "overflow-clip-margin",
592
- "overflow-wrap",
593
- "overflow-x",
594
- "overflow-y",
595
- "overscroll-behavior",
596
- "overscroll-behavior-x",
597
- "overscroll-behavior-y",
598
- "padding",
599
- "padding-top",
600
- "padding-right",
601
- "padding-bottom",
602
- "padding-left",
603
- "page",
604
- "page-break-after",
605
- "page-break-before",
606
- "page-break-inside",
607
- "paint-order",
608
- "perspective",
609
- "perspective-origin",
610
- "place-content",
611
- "align-content",
612
- "justify-content",
613
- "place-items",
614
- "align-items",
615
- "justify-items",
616
- "place-self",
617
- "align-self",
618
- "justify-self",
619
- "pointer-events",
620
- "position",
621
- "print-color-adjust",
622
- "quotes",
623
- "resize",
624
- "rotate",
625
- "ruby-align",
626
- "ruby-merge",
627
- "ruby-position",
628
- "scale",
629
- "scroll-behavior",
630
- "scroll-margin",
631
- "scroll-margin-top",
632
- "scroll-margin-right",
633
- "scroll-margin-bottom",
634
- "scroll-margin-left",
635
- "scroll-padding",
636
- "scroll-padding-top",
637
- "scroll-padding-right",
638
- "scroll-padding-bottom",
639
- "scroll-padding-left",
640
- "scroll-snap-align",
641
- "scroll-snap-stop",
642
- "scroll-snap-type",
643
- "scroll-timeline",
644
- "scroll-timeline-axis",
645
- "scroll-timeline-name",
646
- "scrollbar-color",
647
- "scrollbar-gutter",
648
- "scrollbar-width",
649
- "shape-image-threshold",
650
- "shape-margin",
651
- "shape-outside",
652
- "tab-size",
653
- "table-layout",
654
- "text-align",
655
- "text-align-last",
656
- "text-combine-upright",
657
- "text-decoration",
658
- "text-decoration-color",
659
- "text-decoration-line",
660
- "text-decoration-style",
661
- "text-decoration-thickness",
662
- "text-decoration-skip-ink",
663
- "text-emphasis",
664
- "text-emphasis-color",
665
- "text-emphasis-position",
666
- "text-emphasis-style",
667
- "text-indent",
668
- "text-justify",
669
- "text-orientation",
670
- "text-overflow",
671
- "text-rendering",
672
- "text-shadow",
673
- "text-size-adjust",
674
- "text-transform",
675
- "text-underline-offset",
676
- "text-underline-position",
677
- "touch-action",
678
- "transform",
679
- "transform-box",
680
- "transform-origin",
681
- "transform-style",
682
- "transition",
683
- "transition-delay",
684
- "transition-duration",
685
- "transition-property",
686
- "transition-timing-function",
687
- "translate",
688
- "unicode-bidi",
689
- "user-select",
690
- "vertical-align",
691
- "view-transition-name",
692
- "visibility",
693
- "white-space",
694
- "widows",
695
- "width",
696
- "will-change",
697
- "word-break",
698
- "word-spacing",
699
- "word-wrap",
700
- "writing-mode",
701
- "z-index",
702
- "zoom",
703
- // logical properties have higher specificity
704
- ...logicalProperties
287
+ var layers = [
288
+ [
289
+ "all",
290
+ "-webkit-line-clamp",
291
+ "accent-color",
292
+ "align-tracks",
293
+ "animation",
294
+ "appearance",
295
+ "aspect-ratio",
296
+ "backdrop-filter",
297
+ "backface-visibility",
298
+ "background",
299
+ "border",
300
+ "border-collapse",
301
+ "border-spacing",
302
+ "border-radius",
303
+ "box-decoration-break",
304
+ "box-shadow",
305
+ "box-sizing",
306
+ "break-after",
307
+ "break-before",
308
+ "break-inside",
309
+ "caption-side",
310
+ "clear",
311
+ "clip-path",
312
+ "color",
313
+ "color-scheme",
314
+ "column-fill",
315
+ "column-span",
316
+ "column-rule",
317
+ "columns",
318
+ "contain",
319
+ "contain-intrinsic-size",
320
+ "container",
321
+ "content",
322
+ "content-visibility",
323
+ "counter-increment",
324
+ "counter-reset",
325
+ "counter-set",
326
+ "cursor",
327
+ "direction",
328
+ "display",
329
+ "empty-cells",
330
+ "filter",
331
+ "flex",
332
+ "flex-flow",
333
+ "float",
334
+ "font",
335
+ "font-feature-settings",
336
+ "font-kerning",
337
+ "font-language-override",
338
+ "font-optical-sizing",
339
+ "font-palette",
340
+ "font-size-adjust",
341
+ "font-synthesis",
342
+ "font-variation-settings",
343
+ "forced-color-adjust",
344
+ "gap",
345
+ "grid",
346
+ "grid-area",
347
+ "grid-column",
348
+ "grid-row",
349
+ "grid-template",
350
+ "hanging-punctuation",
351
+ "height",
352
+ "hyphenate-character",
353
+ "hyphenate-limit-chars",
354
+ "hyphens",
355
+ "image-orientation",
356
+ "image-rendering",
357
+ "image-resolution",
358
+ "initial-letter",
359
+ "input-security",
360
+ "inset",
361
+ "isolation",
362
+ "justify-tracks",
363
+ "letter-spacing",
364
+ "line-break",
365
+ "line-clamp",
366
+ "line-height-step",
367
+ "list-style",
368
+ "margin",
369
+ "mask",
370
+ "mask-border",
371
+ "math-depth",
372
+ "math-shift",
373
+ "math-style",
374
+ "max-height",
375
+ "max-width",
376
+ "min-height",
377
+ "min-width",
378
+ "mix-blend-mode",
379
+ "object-fit",
380
+ "object-position",
381
+ "offset",
382
+ "opacity",
383
+ "order",
384
+ "orphans",
385
+ "outline",
386
+ "overflow",
387
+ "overscroll-behavior",
388
+ "padding",
389
+ "page",
390
+ "paint-order",
391
+ "perspective",
392
+ "perspective-origin",
393
+ "place-content",
394
+ "place-items",
395
+ "place-self",
396
+ "pointer-events",
397
+ "position",
398
+ "print-color-adjust",
399
+ "quotes",
400
+ "resize",
401
+ "rotate",
402
+ "ruby-position",
403
+ "scale",
404
+ "scroll-behavior",
405
+ "scroll-margin",
406
+ "scroll-padding",
407
+ "scroll-snap-align",
408
+ "scroll-snap-stop",
409
+ "scroll-snap-type",
410
+ "scroll-timeline",
411
+ "scrollbar-color",
412
+ "scrollbar-gutter",
413
+ "scrollbar-width",
414
+ "shape-image-threshold",
415
+ "shape-margin",
416
+ "shape-outside",
417
+ "tab-size",
418
+ "table-layout",
419
+ "text-align",
420
+ "text-align-last",
421
+ "text-combine-upright",
422
+ "text-decoration",
423
+ "text-decoration-skip-ink",
424
+ "text-emphasis",
425
+ "text-emphasis-position",
426
+ "text-indent",
427
+ "text-justify",
428
+ "text-orientation",
429
+ "text-overflow",
430
+ "text-rendering",
431
+ "text-shadow",
432
+ "text-size-adjust",
433
+ "text-transform",
434
+ "text-underline-offset",
435
+ "text-underline-position",
436
+ "touch-action",
437
+ "transform",
438
+ "transform-box",
439
+ "transform-origin",
440
+ "transform-style",
441
+ "transition",
442
+ "translate",
443
+ "unicode-bidi",
444
+ "user-select",
445
+ "vertical-align",
446
+ "view-transition-name",
447
+ "visibility",
448
+ "white-space",
449
+ "widows",
450
+ "width",
451
+ "will-change",
452
+ "word-break",
453
+ "word-spacing",
454
+ "word-wrap",
455
+ "writing-mode",
456
+ "z-index",
457
+ "zoom"
458
+ ],
459
+ [
460
+ "animation-composition",
461
+ "animation-delay",
462
+ "animation-direction",
463
+ "animation-duration",
464
+ "animation-fill-mode",
465
+ "animation-iteration-count",
466
+ "animation-name",
467
+ "animation-play-state",
468
+ "animation-timeline",
469
+ "animation-timing-function",
470
+ "background-attachment",
471
+ "background-blend-mode",
472
+ "background-clip",
473
+ "background-color",
474
+ "background-image",
475
+ "background-origin",
476
+ "background-position",
477
+ "background-position-x",
478
+ "background-position-y",
479
+ "background-repeat",
480
+ "background-size",
481
+ "border-top",
482
+ "border-right",
483
+ "border-bottom",
484
+ "border-left",
485
+ "border-top-left-radius",
486
+ "border-top-right-radius",
487
+ "border-bottom-left-radius",
488
+ "border-bottom-right-radius",
489
+ "caret-color",
490
+ "caret-shape",
491
+ "column-rule-color",
492
+ "column-rule-style",
493
+ "column-rule-width",
494
+ "column-count",
495
+ "column-width",
496
+ "contain-intrinsic-width",
497
+ "contain-intrinsic-height",
498
+ "container-name",
499
+ "container-type",
500
+ "flex-grow",
501
+ "flex-shrink",
502
+ "flex-basis",
503
+ "flex-direction",
504
+ "flex-wrap",
505
+ "font-style",
506
+ "font-variant",
507
+ "font-weight",
508
+ "font-stretch",
509
+ "font-size",
510
+ "font-family",
511
+ "row-gap",
512
+ "column-gap",
513
+ "grid-auto-columns",
514
+ "grid-auto-flow",
515
+ "grid-auto-rows",
516
+ "grid-template-areas",
517
+ "grid-template-columns",
518
+ "grid-template-rows",
519
+ "grid-row-start",
520
+ "grid-column-start",
521
+ "grid-row-end",
522
+ "grid-column-end",
523
+ "top",
524
+ "right",
525
+ "bottom",
526
+ "left",
527
+ "line-height",
528
+ "list-style-image",
529
+ "list-style-position",
530
+ "list-style-type",
531
+ "margin-top",
532
+ "margin-right",
533
+ "margin-bottom",
534
+ "margin-left",
535
+ "mask-border-mode",
536
+ "mask-border-outset",
537
+ "mask-border-repeat",
538
+ "mask-border-slice",
539
+ "mask-border-source",
540
+ "mask-border-width",
541
+ "mask-clip",
542
+ "mask-composite",
543
+ "mask-image",
544
+ "mask-mode",
545
+ "mask-origin",
546
+ "mask-position",
547
+ "mask-repeat",
548
+ "mask-size",
549
+ "mask-type",
550
+ "offset-anchor",
551
+ "offset-distance",
552
+ "offset-path",
553
+ "offset-position",
554
+ "offset-rotate",
555
+ "outline-color",
556
+ "outline-offset",
557
+ "outline-style",
558
+ "outline-width",
559
+ "overflow-anchor",
560
+ "overflow-clip-margin",
561
+ "overflow-wrap",
562
+ "overflow-x",
563
+ "overflow-y",
564
+ "overscroll-behavior-x",
565
+ "overscroll-behavior-y",
566
+ "padding-top",
567
+ "padding-right",
568
+ "padding-bottom",
569
+ "padding-left",
570
+ "align-content",
571
+ "justify-content",
572
+ "align-items",
573
+ "justify-items",
574
+ "align-self",
575
+ "justify-self",
576
+ "scroll-margin-top",
577
+ "scroll-margin-right",
578
+ "scroll-margin-bottom",
579
+ "scroll-margin-left",
580
+ "scroll-padding-top",
581
+ "scroll-padding-right",
582
+ "scroll-padding-bottom",
583
+ "scroll-padding-left",
584
+ "scroll-timeline-axis",
585
+ "scroll-timeline-name",
586
+ "text-decoration-color",
587
+ "text-decoration-line",
588
+ "text-decoration-style",
589
+ "text-decoration-thickness",
590
+ "text-emphasis-color",
591
+ "text-emphasis-style",
592
+ "transition-delay",
593
+ "transition-duration",
594
+ "transition-property",
595
+ "transition-timing-function"
596
+ ],
597
+ [
598
+ "border-style",
599
+ "border-color",
600
+ "border-width",
601
+ "border-image",
602
+ "font-variant-alternates",
603
+ "font-variant-caps",
604
+ "font-variant-east-asian",
605
+ "font-variant-emoji",
606
+ "font-variant-ligatures",
607
+ "font-variant-numeric",
608
+ "font-variant-position"
609
+ ],
610
+ [
611
+ "border-top-color",
612
+ "border-top-style",
613
+ "border-top-width",
614
+ "border-right-color",
615
+ "border-right-style",
616
+ "border-right-width",
617
+ "border-bottom-color",
618
+ "border-bottom-style",
619
+ "border-bottom-width",
620
+ "border-left-color",
621
+ "border-left-style",
622
+ "border-left-width",
623
+ "border-image-outset",
624
+ "border-image-repeat",
625
+ "border-image-slice",
626
+ "border-image-source",
627
+ "border-image-width"
628
+ ],
629
+ [
630
+ "block-size",
631
+ "border-block",
632
+ "border-inline",
633
+ "contain-intrinsic-block-size",
634
+ "contain-intrinsic-inline-size",
635
+ "inline-size",
636
+ "inset-block",
637
+ "inset-inline",
638
+ "margin-block",
639
+ "margin-inline",
640
+ "max-block-size",
641
+ "min-block-size",
642
+ "max-inline-size",
643
+ "min-inline-size",
644
+ "overflow-block",
645
+ "overflow-inline",
646
+ "overscroll-behavior-block",
647
+ "overscroll-behavior-inline",
648
+ "padding-block",
649
+ "padding-inline",
650
+ "scroll-margin-block",
651
+ "scroll-margin-inline",
652
+ "scroll-padding-block",
653
+ "scroll-padding-inline"
654
+ ],
655
+ [
656
+ "border-block-width",
657
+ "border-block-style",
658
+ "border-block-color",
659
+ "border-block-start",
660
+ "border-block-end",
661
+ "border-inline-color",
662
+ "border-inline-style",
663
+ "border-inline-width",
664
+ "border-inline-start",
665
+ "border-inline-end",
666
+ "inset-block-end",
667
+ "inset-block-start",
668
+ "inset-inline-end",
669
+ "inset-inline-start",
670
+ "margin-block-end",
671
+ "margin-block-start",
672
+ "margin-inline-end",
673
+ "margin-inline-start",
674
+ "padding-block-end",
675
+ "padding-block-start",
676
+ "padding-inline-end",
677
+ "padding-inline-start",
678
+ "scroll-margin-block-end",
679
+ "scroll-margin-block-start",
680
+ "scroll-margin-inline-end",
681
+ "scroll-margin-inline-start",
682
+ "scroll-padding-block-end",
683
+ "scroll-padding-block-start",
684
+ "scroll-padding-inline-end",
685
+ "scroll-padding-inline-start"
686
+ ],
687
+ [
688
+ "border-start-end-radius",
689
+ "border-start-start-radius",
690
+ "border-end-end-radius",
691
+ "border-end-start-radius",
692
+ "border-block-start-color",
693
+ "border-block-start-style",
694
+ "border-block-start-width",
695
+ "border-block-end-color",
696
+ "border-block-end-style",
697
+ "border-block-end-width",
698
+ "border-inline-start-color",
699
+ "border-inline-start-style",
700
+ "border-inline-start-width",
701
+ "border-inline-end-color",
702
+ "border-inline-end-style",
703
+ "border-inline-end-width"
704
+ ]
705
705
  ];
706
+ var properties = layers.flat();
706
707
 
707
708
  // src/shorthands.ts
708
709
  var mapShorthandToLonghands = {
@@ -735,8 +736,7 @@ var mapShorthandToLonghands = {
735
736
  "border-color",
736
737
  "border-style",
737
738
  "border-width",
738
- "border-image",
739
- "border-radius"
739
+ "border-image"
740
740
  ],
741
741
  "border-top": ["border-top-width", "border-top-style", "border-top-color"],
742
742
  "border-right": ["border-right-width", "border-right-style", "border-right-color"],
@@ -829,19 +829,22 @@ var mapShorthandToLonghands = {
829
829
  "font-family"
830
830
  ],
831
831
  "font-variant": [
832
- "font-variant-ligatures",
832
+ "font-variant-alternates",
833
833
  "font-variant-caps",
834
+ "font-variant-east-asian",
835
+ "font-variant-emoji",
836
+ "font-variant-ligatures",
834
837
  "font-variant-numeric",
835
- "font-variant-east-asian"
838
+ "font-variant-position"
836
839
  ],
837
840
  gap: ["row-gap", "column-gap"],
838
841
  grid: [
839
- "grid-template-rows",
840
- "grid-template-columns",
841
- "grid-template-areas",
842
- "grid-auto-rows",
843
842
  "grid-auto-columns",
844
- "grid-auto-flow"
843
+ "grid-auto-flow",
844
+ "grid-auto-rows",
845
+ "grid-template-areas",
846
+ "grid-template-columns",
847
+ "grid-template-rows"
845
848
  ],
846
849
  "grid-area": ["grid-row-start", "grid-column-start", "grid-row-end", "grid-column-end"],
847
850
  "grid-column": ["grid-column-start", "grid-column-end"],
@@ -876,6 +879,7 @@ var mapShorthandToLonghands = {
876
879
  offset: ["offset-position", "offset-path", "offset-distance", "offset-anchor", "offset-rotate"],
877
880
  outline: ["outline-color", "outline-style", "outline-width"],
878
881
  overflow: ["overflow-x", "overflow-y"],
882
+ "overscroll-behavior": ["overscroll-behavior-x", "overscroll-behavior-y"],
879
883
  padding: ["padding-top", "padding-right", "padding-bottom", "padding-left"],
880
884
  "padding-block": ["padding-block-start", "padding-block-end"],
881
885
  "padding-inline": ["padding-inline-start", "padding-inline-end"],
@@ -907,10 +911,10 @@ var mapShorthandToLonghands = {
907
911
  ],
908
912
  "text-emphasis": ["text-emphasis-style", "text-emphasis-color"],
909
913
  transition: [
910
- "transition-property",
914
+ "transition-delay",
911
915
  "transition-duration",
912
- "transition-timing-function",
913
- "transition-delay"
916
+ "transition-property",
917
+ "transition-timing-function"
914
918
  ]
915
919
  };
916
920
  // Annotate the CommonJS export names for ESM import in node:
@@ -930,7 +934,7 @@ var mapShorthandToLonghands = {
930
934
  getTokenPropertySplit,
931
935
  getTokenValueParts,
932
936
  gridProperty,
933
- logicalProperties,
937
+ layers,
934
938
  mapShorthandToLonghands,
935
939
  properties,
936
940
  tokenProperty,