@tokenami/config 0.0.29 → 0.0.31

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
@@ -65,16 +65,15 @@ function getTokenPropertyParts(tokenProperty2, config) {
65
65
  var _a, _b, _c;
66
66
  const name = getTokenPropertyName(tokenProperty2);
67
67
  const { alias, variants } = getTokenPropertySplit(tokenProperty2);
68
- const [v1, v2, ...invalidVariants] = variants;
69
- const responsive = ((_a = config.responsive) == null ? void 0 : _a[v1]) && v1;
70
- const selectorVariant1 = ((_b = config.selectors) == null ? void 0 : _b[v1]) && !v2 ? v1 : void 0;
71
- const selectorVariant2 = responsive && ((_c = config.selectors) == null ? void 0 : _c[v2]) && v2;
72
- const selector = selectorVariant1 || selectorVariant2;
73
- const hasInvalidVariant = v1 && !responsive && !selector;
74
- const variant = [responsive, selector].filter(Boolean).join("_");
75
- if (invalidVariants.length || hasInvalidVariant)
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)
76
75
  return null;
77
- return { name, alias, responsive, selector, variant };
76
+ return { name, alias, responsive, selector, variant: validVariant };
78
77
  }
79
78
  function getTokenValueParts(tokenValue2) {
80
79
  const [, property, themeKey, token] = tokenValue2.split(tokenValueRegex);
@@ -240,424 +239,426 @@ var defaultConfig = createConfig({
240
239
  var config_default_default = defaultConfig;
241
240
 
242
241
  // src/supports.ts
243
- var logicalProperties = [
244
- "block-size",
245
- "border-block",
246
- "border-block-width",
247
- "border-block-style",
248
- "border-block-color",
249
- "border-block-start",
250
- "border-block-end",
251
- "border-block-start-color",
252
- "border-block-start-style",
253
- "border-block-start-width",
254
- "border-block-end-color",
255
- "border-block-end-style",
256
- "border-block-end-width",
257
- "border-inline",
258
- "border-inline-color",
259
- "border-inline-style",
260
- "border-inline-width",
261
- "border-inline-start",
262
- "border-inline-end",
263
- "border-inline-start-color",
264
- "border-inline-start-style",
265
- "border-inline-start-width",
266
- "border-inline-end-color",
267
- "border-inline-end-style",
268
- "border-inline-end-width",
269
- "contain-intrinsic-block-size",
270
- "contain-intrinsic-inline-size",
271
- "inset-block",
272
- "inset-block-end",
273
- "inset-block-start",
274
- "inset-inline",
275
- "inset-inline-end",
276
- "inset-inline-start",
277
- "margin-block",
278
- "margin-block-end",
279
- "margin-block-start",
280
- "margin-inline",
281
- "margin-inline-end",
282
- "margin-inline-start",
283
- "max-block-size",
284
- "min-block-size",
285
- "max-inline-size",
286
- "min-inline-size",
287
- "overflow-block",
288
- "overflow-inline",
289
- "overscroll-behavior-block",
290
- "overscroll-behavior-inline",
291
- "padding-block",
292
- "padding-block-end",
293
- "padding-block-start",
294
- "padding-inline",
295
- "padding-inline-end",
296
- "padding-inline-start",
297
- "scroll-margin-block",
298
- "scroll-margin-block-end",
299
- "scroll-margin-block-start",
300
- "scroll-margin-inline",
301
- "scroll-margin-inline-end",
302
- "scroll-margin-inline-start",
303
- "scroll-padding-block",
304
- "scroll-padding-block-end",
305
- "scroll-padding-block-start",
306
- "scroll-padding-inline",
307
- "scroll-padding-inline-end",
308
- "scroll-padding-inline-start"
309
- ];
310
- var properties = [
311
- "all",
312
- "-webkit-line-clamp",
313
- "accent-color",
314
- "align-tracks",
315
- "animation",
316
- "animation-composition",
317
- "animation-delay",
318
- "animation-direction",
319
- "animation-duration",
320
- "animation-fill-mode",
321
- "animation-iteration-count",
322
- "animation-name",
323
- "animation-play-state",
324
- "animation-timeline",
325
- "animation-timing-function",
326
- "appearance",
327
- "aspect-ratio",
328
- "backdrop-filter",
329
- "backface-visibility",
330
- "background",
331
- "background-attachment",
332
- "background-blend-mode",
333
- "background-clip",
334
- "background-color",
335
- "background-image",
336
- "background-origin",
337
- "background-position",
338
- "background-position-x",
339
- "background-position-y",
340
- "background-repeat",
341
- "background-size",
342
- "border",
343
- "border-style",
344
- "border-color",
345
- "border-width",
346
- "border-top",
347
- "border-top-color",
348
- "border-top-style",
349
- "border-top-width",
350
- "border-right",
351
- "border-right-color",
352
- "border-right-style",
353
- "border-right-width",
354
- "border-bottom",
355
- "border-bottom-color",
356
- "border-bottom-style",
357
- "border-bottom-width",
358
- "border-left",
359
- "border-left-color",
360
- "border-left-style",
361
- "border-left-width",
362
- "border-image",
363
- "border-image-outset",
364
- "border-image-repeat",
365
- "border-image-slice",
366
- "border-image-source",
367
- "border-image-width",
368
- "border-radius",
369
- "border-top-left-radius",
370
- "border-top-right-radius",
371
- "border-bottom-left-radius",
372
- "border-bottom-right-radius",
373
- "border-start-end-radius",
374
- "border-start-start-radius",
375
- "border-end-end-radius",
376
- "border-end-start-radius",
377
- "border-collapse",
378
- "border-spacing",
379
- "box-decoration-break",
380
- "box-shadow",
381
- "box-sizing",
382
- "break-after",
383
- "break-before",
384
- "break-inside",
385
- "caption-side",
386
- "caret",
387
- "caret-color",
388
- "caret-shape",
389
- "clear",
390
- "clip",
391
- "clip-path",
392
- "color",
393
- "color-scheme",
394
- "column-fill",
395
- "column-span",
396
- "column-rule",
397
- "column-rule-color",
398
- "column-rule-style",
399
- "column-rule-width",
400
- "columns",
401
- "column-count",
402
- "column-width",
403
- "contain",
404
- "contain-intrinsic-height",
405
- "contain-intrinsic-size",
406
- "contain-intrinsic-width",
407
- "container",
408
- "container-name",
409
- "container-type",
410
- "content",
411
- "content-visibility",
412
- "counter-increment",
413
- "counter-reset",
414
- "counter-set",
415
- "cursor",
416
- "direction",
417
- "display",
418
- "empty-cells",
419
- "filter",
420
- "flex",
421
- "flex-basis",
422
- "flex-direction",
423
- "flex-flow",
424
- "flex-grow",
425
- "flex-shrink",
426
- "flex-wrap",
427
- "float",
428
- "font",
429
- "font-family",
430
- "font-feature-settings",
431
- "font-kerning",
432
- "font-language-override",
433
- "font-optical-sizing",
434
- "font-palette",
435
- "font-size",
436
- "font-size-adjust",
437
- "font-stretch",
438
- "font-style",
439
- "font-synthesis",
440
- "font-variant",
441
- "font-variant-alternates",
442
- "font-variant-caps",
443
- "font-variant-east-asian",
444
- "font-variant-emoji",
445
- "font-variant-ligatures",
446
- "font-variant-numeric",
447
- "font-variant-position",
448
- "font-variation-settings",
449
- "font-weight",
450
- "forced-color-adjust",
451
- "gap",
452
- "row-gap",
453
- "column-gap",
454
- "grid",
455
- "grid-area",
456
- "grid-auto-rows",
457
- "grid-auto-columns",
458
- "grid-auto-flow",
459
- "grid-column",
460
- "grid-column-end",
461
- "grid-column-start",
462
- "grid-row",
463
- "grid-row-end",
464
- "grid-row-start",
465
- "grid-template",
466
- "grid-template-rows",
467
- "grid-template-columns",
468
- "grid-template-areas",
469
- "hanging-punctuation",
470
- "height",
471
- "hyphenate-character",
472
- "hyphenate-limit-chars",
473
- "hyphens",
474
- "image-orientation",
475
- "image-rendering",
476
- "image-resolution",
477
- "initial-letter",
478
- "inline-size",
479
- "input-security",
480
- "inset",
481
- "top",
482
- "right",
483
- "bottom",
484
- "left",
485
- "isolation",
486
- "justify-tracks",
487
- "letter-spacing",
488
- "line-break",
489
- "line-clamp",
490
- "line-height",
491
- "line-height-step",
492
- "list-style",
493
- "list-style-image",
494
- "list-style-position",
495
- "list-style-type",
496
- "margin",
497
- "margin-top",
498
- "margin-right",
499
- "margin-bottom",
500
- "margin-left",
501
- "margin-trim",
502
- "mask",
503
- "mask-border",
504
- "mask-border-mode",
505
- "mask-border-outset",
506
- "mask-border-repeat",
507
- "mask-border-slice",
508
- "mask-border-source",
509
- "mask-border-width",
510
- "mask-clip",
511
- "mask-composite",
512
- "mask-image",
513
- "mask-mode",
514
- "mask-origin",
515
- "mask-position",
516
- "mask-repeat",
517
- "mask-size",
518
- "mask-type",
519
- "math-depth",
520
- "math-shift",
521
- "math-style",
522
- "max-height",
523
- "max-lines",
524
- "max-width",
525
- "min-height",
526
- "min-width",
527
- "mix-blend-mode",
528
- "object-fit",
529
- "object-position",
530
- "offset",
531
- "offset-anchor",
532
- "offset-distance",
533
- "offset-path",
534
- "offset-position",
535
- "offset-rotate",
536
- "opacity",
537
- "order",
538
- "orphans",
539
- "outline",
540
- "outline-color",
541
- "outline-offset",
542
- "outline-style",
543
- "outline-width",
544
- "overflow",
545
- "overflow-anchor",
546
- "overflow-clip-margin",
547
- "overflow-wrap",
548
- "overflow-x",
549
- "overflow-y",
550
- "overscroll-behavior",
551
- "overscroll-behavior-x",
552
- "overscroll-behavior-y",
553
- "padding",
554
- "padding-top",
555
- "padding-right",
556
- "padding-bottom",
557
- "padding-left",
558
- "page",
559
- "page-break-after",
560
- "page-break-before",
561
- "page-break-inside",
562
- "paint-order",
563
- "perspective",
564
- "perspective-origin",
565
- "place-content",
566
- "align-content",
567
- "justify-content",
568
- "place-items",
569
- "align-items",
570
- "justify-items",
571
- "place-self",
572
- "align-self",
573
- "justify-self",
574
- "pointer-events",
575
- "position",
576
- "print-color-adjust",
577
- "quotes",
578
- "resize",
579
- "rotate",
580
- "ruby-align",
581
- "ruby-merge",
582
- "ruby-position",
583
- "scale",
584
- "scroll-behavior",
585
- "scroll-margin",
586
- "scroll-margin-top",
587
- "scroll-margin-right",
588
- "scroll-margin-bottom",
589
- "scroll-margin-left",
590
- "scroll-padding",
591
- "scroll-padding-top",
592
- "scroll-padding-right",
593
- "scroll-padding-bottom",
594
- "scroll-padding-left",
595
- "scroll-snap-align",
596
- "scroll-snap-stop",
597
- "scroll-snap-type",
598
- "scroll-timeline",
599
- "scroll-timeline-axis",
600
- "scroll-timeline-name",
601
- "scrollbar-color",
602
- "scrollbar-gutter",
603
- "scrollbar-width",
604
- "shape-image-threshold",
605
- "shape-margin",
606
- "shape-outside",
607
- "tab-size",
608
- "table-layout",
609
- "text-align",
610
- "text-align-last",
611
- "text-combine-upright",
612
- "text-decoration",
613
- "text-decoration-color",
614
- "text-decoration-line",
615
- "text-decoration-style",
616
- "text-decoration-thickness",
617
- "text-decoration-skip-ink",
618
- "text-emphasis",
619
- "text-emphasis-color",
620
- "text-emphasis-position",
621
- "text-emphasis-style",
622
- "text-indent",
623
- "text-justify",
624
- "text-orientation",
625
- "text-overflow",
626
- "text-rendering",
627
- "text-shadow",
628
- "text-size-adjust",
629
- "text-transform",
630
- "text-underline-offset",
631
- "text-underline-position",
632
- "touch-action",
633
- "transform",
634
- "transform-box",
635
- "transform-origin",
636
- "transform-style",
637
- "transition",
638
- "transition-delay",
639
- "transition-duration",
640
- "transition-property",
641
- "transition-timing-function",
642
- "translate",
643
- "unicode-bidi",
644
- "user-select",
645
- "vertical-align",
646
- "view-transition-name",
647
- "visibility",
648
- "white-space",
649
- "widows",
650
- "width",
651
- "will-change",
652
- "word-break",
653
- "word-spacing",
654
- "word-wrap",
655
- "writing-mode",
656
- "z-index",
657
- "zoom",
658
- // logical properties have higher specificity
659
- ...logicalProperties
242
+ var layers = [
243
+ [
244
+ "all",
245
+ "-webkit-line-clamp",
246
+ "accent-color",
247
+ "align-tracks",
248
+ "animation",
249
+ "appearance",
250
+ "aspect-ratio",
251
+ "backdrop-filter",
252
+ "backface-visibility",
253
+ "background",
254
+ "border",
255
+ "border-collapse",
256
+ "border-spacing",
257
+ "border-radius",
258
+ "box-decoration-break",
259
+ "box-shadow",
260
+ "box-sizing",
261
+ "break-after",
262
+ "break-before",
263
+ "break-inside",
264
+ "caption-side",
265
+ "clear",
266
+ "clip-path",
267
+ "color",
268
+ "color-scheme",
269
+ "column-fill",
270
+ "column-span",
271
+ "column-rule",
272
+ "columns",
273
+ "contain",
274
+ "contain-intrinsic-size",
275
+ "container",
276
+ "content",
277
+ "content-visibility",
278
+ "counter-increment",
279
+ "counter-reset",
280
+ "counter-set",
281
+ "cursor",
282
+ "direction",
283
+ "display",
284
+ "empty-cells",
285
+ "filter",
286
+ "flex",
287
+ "flex-flow",
288
+ "float",
289
+ "font",
290
+ "font-feature-settings",
291
+ "font-kerning",
292
+ "font-language-override",
293
+ "font-optical-sizing",
294
+ "font-palette",
295
+ "font-size-adjust",
296
+ "font-synthesis",
297
+ "font-variation-settings",
298
+ "forced-color-adjust",
299
+ "gap",
300
+ "grid",
301
+ "grid-area",
302
+ "grid-column",
303
+ "grid-row",
304
+ "grid-template",
305
+ "hanging-punctuation",
306
+ "height",
307
+ "hyphenate-character",
308
+ "hyphenate-limit-chars",
309
+ "hyphens",
310
+ "image-orientation",
311
+ "image-rendering",
312
+ "image-resolution",
313
+ "initial-letter",
314
+ "input-security",
315
+ "inset",
316
+ "isolation",
317
+ "justify-tracks",
318
+ "letter-spacing",
319
+ "line-break",
320
+ "line-clamp",
321
+ "line-height-step",
322
+ "list-style",
323
+ "margin",
324
+ "mask",
325
+ "mask-border",
326
+ "math-depth",
327
+ "math-shift",
328
+ "math-style",
329
+ "max-height",
330
+ "max-width",
331
+ "min-height",
332
+ "min-width",
333
+ "mix-blend-mode",
334
+ "object-fit",
335
+ "object-position",
336
+ "offset",
337
+ "opacity",
338
+ "order",
339
+ "orphans",
340
+ "outline",
341
+ "overflow",
342
+ "overscroll-behavior",
343
+ "padding",
344
+ "page",
345
+ "paint-order",
346
+ "perspective",
347
+ "perspective-origin",
348
+ "place-content",
349
+ "place-items",
350
+ "place-self",
351
+ "pointer-events",
352
+ "position",
353
+ "print-color-adjust",
354
+ "quotes",
355
+ "resize",
356
+ "rotate",
357
+ "ruby-position",
358
+ "scale",
359
+ "scroll-behavior",
360
+ "scroll-margin",
361
+ "scroll-padding",
362
+ "scroll-snap-align",
363
+ "scroll-snap-stop",
364
+ "scroll-snap-type",
365
+ "scroll-timeline",
366
+ "scrollbar-color",
367
+ "scrollbar-gutter",
368
+ "scrollbar-width",
369
+ "shape-image-threshold",
370
+ "shape-margin",
371
+ "shape-outside",
372
+ "tab-size",
373
+ "table-layout",
374
+ "text-align",
375
+ "text-align-last",
376
+ "text-combine-upright",
377
+ "text-decoration",
378
+ "text-decoration-skip-ink",
379
+ "text-emphasis",
380
+ "text-emphasis-position",
381
+ "text-indent",
382
+ "text-justify",
383
+ "text-orientation",
384
+ "text-overflow",
385
+ "text-rendering",
386
+ "text-shadow",
387
+ "text-size-adjust",
388
+ "text-transform",
389
+ "text-underline-offset",
390
+ "text-underline-position",
391
+ "touch-action",
392
+ "transform",
393
+ "transform-box",
394
+ "transform-origin",
395
+ "transform-style",
396
+ "transition",
397
+ "translate",
398
+ "unicode-bidi",
399
+ "user-select",
400
+ "vertical-align",
401
+ "view-transition-name",
402
+ "visibility",
403
+ "white-space",
404
+ "widows",
405
+ "width",
406
+ "will-change",
407
+ "word-break",
408
+ "word-spacing",
409
+ "word-wrap",
410
+ "writing-mode",
411
+ "z-index",
412
+ "zoom"
413
+ ],
414
+ [
415
+ "animation-composition",
416
+ "animation-delay",
417
+ "animation-direction",
418
+ "animation-duration",
419
+ "animation-fill-mode",
420
+ "animation-iteration-count",
421
+ "animation-name",
422
+ "animation-play-state",
423
+ "animation-timeline",
424
+ "animation-timing-function",
425
+ "background-attachment",
426
+ "background-blend-mode",
427
+ "background-clip",
428
+ "background-color",
429
+ "background-image",
430
+ "background-origin",
431
+ "background-position",
432
+ "background-position-x",
433
+ "background-position-y",
434
+ "background-repeat",
435
+ "background-size",
436
+ "border-top",
437
+ "border-right",
438
+ "border-bottom",
439
+ "border-left",
440
+ "border-top-left-radius",
441
+ "border-top-right-radius",
442
+ "border-bottom-left-radius",
443
+ "border-bottom-right-radius",
444
+ "caret-color",
445
+ "caret-shape",
446
+ "column-rule-color",
447
+ "column-rule-style",
448
+ "column-rule-width",
449
+ "column-count",
450
+ "column-width",
451
+ "contain-intrinsic-width",
452
+ "contain-intrinsic-height",
453
+ "container-name",
454
+ "container-type",
455
+ "flex-grow",
456
+ "flex-shrink",
457
+ "flex-basis",
458
+ "flex-direction",
459
+ "flex-wrap",
460
+ "font-style",
461
+ "font-variant",
462
+ "font-weight",
463
+ "font-stretch",
464
+ "font-size",
465
+ "font-family",
466
+ "row-gap",
467
+ "column-gap",
468
+ "grid-auto-columns",
469
+ "grid-auto-flow",
470
+ "grid-auto-rows",
471
+ "grid-template-areas",
472
+ "grid-template-columns",
473
+ "grid-template-rows",
474
+ "grid-row-start",
475
+ "grid-column-start",
476
+ "grid-row-end",
477
+ "grid-column-end",
478
+ "top",
479
+ "right",
480
+ "bottom",
481
+ "left",
482
+ "line-height",
483
+ "list-style-image",
484
+ "list-style-position",
485
+ "list-style-type",
486
+ "margin-top",
487
+ "margin-right",
488
+ "margin-bottom",
489
+ "margin-left",
490
+ "mask-border-mode",
491
+ "mask-border-outset",
492
+ "mask-border-repeat",
493
+ "mask-border-slice",
494
+ "mask-border-source",
495
+ "mask-border-width",
496
+ "mask-clip",
497
+ "mask-composite",
498
+ "mask-image",
499
+ "mask-mode",
500
+ "mask-origin",
501
+ "mask-position",
502
+ "mask-repeat",
503
+ "mask-size",
504
+ "mask-type",
505
+ "offset-anchor",
506
+ "offset-distance",
507
+ "offset-path",
508
+ "offset-position",
509
+ "offset-rotate",
510
+ "outline-color",
511
+ "outline-offset",
512
+ "outline-style",
513
+ "outline-width",
514
+ "overflow-anchor",
515
+ "overflow-clip-margin",
516
+ "overflow-wrap",
517
+ "overflow-x",
518
+ "overflow-y",
519
+ "overscroll-behavior-x",
520
+ "overscroll-behavior-y",
521
+ "padding-top",
522
+ "padding-right",
523
+ "padding-bottom",
524
+ "padding-left",
525
+ "align-content",
526
+ "justify-content",
527
+ "align-items",
528
+ "justify-items",
529
+ "align-self",
530
+ "justify-self",
531
+ "scroll-margin-top",
532
+ "scroll-margin-right",
533
+ "scroll-margin-bottom",
534
+ "scroll-margin-left",
535
+ "scroll-padding-top",
536
+ "scroll-padding-right",
537
+ "scroll-padding-bottom",
538
+ "scroll-padding-left",
539
+ "scroll-timeline-axis",
540
+ "scroll-timeline-name",
541
+ "text-decoration-color",
542
+ "text-decoration-line",
543
+ "text-decoration-style",
544
+ "text-decoration-thickness",
545
+ "text-emphasis-color",
546
+ "text-emphasis-style",
547
+ "transition-delay",
548
+ "transition-duration",
549
+ "transition-property",
550
+ "transition-timing-function"
551
+ ],
552
+ [
553
+ "border-style",
554
+ "border-color",
555
+ "border-width",
556
+ "border-image",
557
+ "font-variant-alternates",
558
+ "font-variant-caps",
559
+ "font-variant-east-asian",
560
+ "font-variant-emoji",
561
+ "font-variant-ligatures",
562
+ "font-variant-numeric",
563
+ "font-variant-position"
564
+ ],
565
+ [
566
+ "border-top-color",
567
+ "border-top-style",
568
+ "border-top-width",
569
+ "border-right-color",
570
+ "border-right-style",
571
+ "border-right-width",
572
+ "border-bottom-color",
573
+ "border-bottom-style",
574
+ "border-bottom-width",
575
+ "border-left-color",
576
+ "border-left-style",
577
+ "border-left-width",
578
+ "border-image-outset",
579
+ "border-image-repeat",
580
+ "border-image-slice",
581
+ "border-image-source",
582
+ "border-image-width"
583
+ ],
584
+ [
585
+ "block-size",
586
+ "border-block",
587
+ "border-inline",
588
+ "contain-intrinsic-block-size",
589
+ "contain-intrinsic-inline-size",
590
+ "inline-size",
591
+ "inset-block",
592
+ "inset-inline",
593
+ "margin-block",
594
+ "margin-inline",
595
+ "max-block-size",
596
+ "min-block-size",
597
+ "max-inline-size",
598
+ "min-inline-size",
599
+ "overflow-block",
600
+ "overflow-inline",
601
+ "overscroll-behavior-block",
602
+ "overscroll-behavior-inline",
603
+ "padding-block",
604
+ "padding-inline",
605
+ "scroll-margin-block",
606
+ "scroll-margin-inline",
607
+ "scroll-padding-block",
608
+ "scroll-padding-inline"
609
+ ],
610
+ [
611
+ "border-block-width",
612
+ "border-block-style",
613
+ "border-block-color",
614
+ "border-block-start",
615
+ "border-block-end",
616
+ "border-inline-color",
617
+ "border-inline-style",
618
+ "border-inline-width",
619
+ "border-inline-start",
620
+ "border-inline-end",
621
+ "inset-block-end",
622
+ "inset-block-start",
623
+ "inset-inline-end",
624
+ "inset-inline-start",
625
+ "margin-block-end",
626
+ "margin-block-start",
627
+ "margin-inline-end",
628
+ "margin-inline-start",
629
+ "padding-block-end",
630
+ "padding-block-start",
631
+ "padding-inline-end",
632
+ "padding-inline-start",
633
+ "scroll-margin-block-end",
634
+ "scroll-margin-block-start",
635
+ "scroll-margin-inline-end",
636
+ "scroll-margin-inline-start",
637
+ "scroll-padding-block-end",
638
+ "scroll-padding-block-start",
639
+ "scroll-padding-inline-end",
640
+ "scroll-padding-inline-start"
641
+ ],
642
+ [
643
+ "border-start-end-radius",
644
+ "border-start-start-radius",
645
+ "border-end-end-radius",
646
+ "border-end-start-radius",
647
+ "border-block-start-color",
648
+ "border-block-start-style",
649
+ "border-block-start-width",
650
+ "border-block-end-color",
651
+ "border-block-end-style",
652
+ "border-block-end-width",
653
+ "border-inline-start-color",
654
+ "border-inline-start-style",
655
+ "border-inline-start-width",
656
+ "border-inline-end-color",
657
+ "border-inline-end-style",
658
+ "border-inline-end-width"
659
+ ]
660
660
  ];
661
+ var properties = layers.flat();
661
662
 
662
663
  // src/shorthands.ts
663
664
  var mapShorthandToLonghands = {
@@ -690,8 +691,7 @@ var mapShorthandToLonghands = {
690
691
  "border-color",
691
692
  "border-style",
692
693
  "border-width",
693
- "border-image",
694
- "border-radius"
694
+ "border-image"
695
695
  ],
696
696
  "border-top": ["border-top-width", "border-top-style", "border-top-color"],
697
697
  "border-right": ["border-right-width", "border-right-style", "border-right-color"],
@@ -784,19 +784,22 @@ var mapShorthandToLonghands = {
784
784
  "font-family"
785
785
  ],
786
786
  "font-variant": [
787
- "font-variant-ligatures",
787
+ "font-variant-alternates",
788
788
  "font-variant-caps",
789
+ "font-variant-east-asian",
790
+ "font-variant-emoji",
791
+ "font-variant-ligatures",
789
792
  "font-variant-numeric",
790
- "font-variant-east-asian"
793
+ "font-variant-position"
791
794
  ],
792
795
  gap: ["row-gap", "column-gap"],
793
796
  grid: [
794
- "grid-template-rows",
795
- "grid-template-columns",
796
- "grid-template-areas",
797
- "grid-auto-rows",
798
797
  "grid-auto-columns",
799
- "grid-auto-flow"
798
+ "grid-auto-flow",
799
+ "grid-auto-rows",
800
+ "grid-template-areas",
801
+ "grid-template-columns",
802
+ "grid-template-rows"
800
803
  ],
801
804
  "grid-area": ["grid-row-start", "grid-column-start", "grid-row-end", "grid-column-end"],
802
805
  "grid-column": ["grid-column-start", "grid-column-end"],
@@ -831,6 +834,7 @@ var mapShorthandToLonghands = {
831
834
  offset: ["offset-position", "offset-path", "offset-distance", "offset-anchor", "offset-rotate"],
832
835
  outline: ["outline-color", "outline-style", "outline-width"],
833
836
  overflow: ["overflow-x", "overflow-y"],
837
+ "overscroll-behavior": ["overscroll-behavior-x", "overscroll-behavior-y"],
834
838
  padding: ["padding-top", "padding-right", "padding-bottom", "padding-left"],
835
839
  "padding-block": ["padding-block-start", "padding-block-end"],
836
840
  "padding-inline": ["padding-inline-start", "padding-inline-end"],
@@ -862,10 +866,10 @@ var mapShorthandToLonghands = {
862
866
  ],
863
867
  "text-emphasis": ["text-emphasis-style", "text-emphasis-color"],
864
868
  transition: [
865
- "transition-property",
869
+ "transition-delay",
866
870
  "transition-duration",
867
- "transition-timing-function",
868
- "transition-delay"
871
+ "transition-property",
872
+ "transition-timing-function"
869
873
  ]
870
874
  };
871
875
  export {
@@ -884,7 +888,7 @@ export {
884
888
  getTokenPropertySplit,
885
889
  getTokenValueParts,
886
890
  gridProperty,
887
- logicalProperties,
891
+ layers,
888
892
  mapShorthandToLonghands,
889
893
  properties,
890
894
  tokenProperty,