@tokenami/config 0.0.39 → 0.0.40
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.d.mts +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.js +4 -429
- package/dist/index.mjs +4 -427
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
type Flatten<T> = {
|
|
3
|
-
[K in keyof T]: T[K] extends Array<infer E> ? E : T[K];
|
|
4
|
-
};
|
|
5
|
-
type CSSProperty = Flatten<typeof layers>[number];
|
|
6
|
-
declare const properties: CSSProperty;
|
|
1
|
+
import * as CSS from 'csstype';
|
|
7
2
|
|
|
3
|
+
interface CSSProperties<TLength = (string & {}) | 0, TTime = string & {}> extends CSS.StandardPropertiesHyphen<TLength, TTime>, CSS.SvgPropertiesHyphen<TLength, TTime> {
|
|
4
|
+
}
|
|
5
|
+
type CSSProperty = keyof CSSProperties;
|
|
8
6
|
type DeepReadonly<T> = T extends Function | any[] ? T : {
|
|
9
7
|
readonly [P in keyof T]: DeepReadonly<T[P]>;
|
|
10
8
|
};
|
|
@@ -260,13 +258,14 @@ declare function getTokenValueParts(tokenValue: TokenValue): {
|
|
|
260
258
|
themeKey: string;
|
|
261
259
|
token: string;
|
|
262
260
|
};
|
|
263
|
-
declare function getCSSPropertiesForAlias(alias: string, aliases: Config['aliases']):
|
|
261
|
+
declare function getCSSPropertiesForAlias(alias: string, aliases: Config['aliases']): string[];
|
|
264
262
|
|
|
265
263
|
declare const mapShorthandToLonghands: {
|
|
266
264
|
all: never[];
|
|
267
265
|
animation: ("animation-delay" | "animation-direction" | "animation-duration" | "animation-fill-mode" | "animation-iteration-count" | "animation-name" | "animation-play-state" | "animation-timeline" | "animation-timing-function")[];
|
|
268
266
|
background: ("background-attachment" | "background-clip" | "background-color" | "background-image" | "background-repeat" | "background-size" | "background-position")[];
|
|
269
|
-
|
|
267
|
+
'background-position': ("background-position-x" | "background-position-y")[];
|
|
268
|
+
border: ("border-block" | "border-bottom" | "border-color" | "border-image" | "border-inline" | "border-left" | "border-right" | "border-style" | "border-top" | "border-width")[];
|
|
270
269
|
'border-top': ("border-top-color" | "border-top-style" | "border-top-width")[];
|
|
271
270
|
'border-right': ("border-right-color" | "border-right-style" | "border-right-width")[];
|
|
272
271
|
'border-bottom': ("border-bottom-color" | "border-bottom-style" | "border-bottom-width")[];
|
|
@@ -294,7 +293,7 @@ declare const mapShorthandToLonghands: {
|
|
|
294
293
|
'contain-intrinsic-size': ("contain-intrinsic-height" | "contain-intrinsic-width")[];
|
|
295
294
|
flex: ("flex-basis" | "flex-grow" | "flex-shrink")[];
|
|
296
295
|
'flex-flow': ("flex-direction" | "flex-wrap")[];
|
|
297
|
-
font: ("font-
|
|
296
|
+
font: ("font-size" | "font-family" | "font-stretch" | "font-style" | "font-variant" | "font-weight" | "line-height")[];
|
|
298
297
|
'font-variant': ("font-variant-alternates" | "font-variant-caps" | "font-variant-east-asian" | "font-variant-emoji" | "font-variant-ligatures" | "font-variant-numeric" | "font-variant-position")[];
|
|
299
298
|
gap: ("column-gap" | "row-gap")[];
|
|
300
299
|
grid: ("grid-auto-columns" | "grid-auto-flow" | "grid-auto-rows" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows")[];
|
|
@@ -333,4 +332,4 @@ declare const mapShorthandToLonghands: {
|
|
|
333
332
|
transition: ("transition-delay" | "transition-duration" | "transition-property" | "transition-timing-function")[];
|
|
334
333
|
};
|
|
335
334
|
|
|
336
|
-
export { type Aliases, ArbitraryValue, type CSSProperty, type Config, type DeepReadonly, type DefaultConfig, GridProperty, GridValue, type Theme, type ThemeModes, TokenProperty, TokenValue, VariantProperty, arbitraryValue, createConfig, defaultConfig, getCSSPropertiesForAlias, getTokenPropertyName, getTokenPropertyParts, getTokenPropertySplit, getTokenValueParts, gridProperty,
|
|
335
|
+
export { type Aliases, ArbitraryValue, type CSSProperties, type CSSProperty, type Config, type DeepReadonly, type DefaultConfig, GridProperty, GridValue, type Theme, type ThemeModes, TokenProperty, TokenValue, VariantProperty, arbitraryValue, createConfig, defaultConfig, getCSSPropertiesForAlias, getTokenPropertyName, getTokenPropertyParts, getTokenPropertySplit, getTokenValueParts, gridProperty, mapShorthandToLonghands, tokenProperty, tokenValue, variantProperty };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
type Flatten<T> = {
|
|
3
|
-
[K in keyof T]: T[K] extends Array<infer E> ? E : T[K];
|
|
4
|
-
};
|
|
5
|
-
type CSSProperty = Flatten<typeof layers>[number];
|
|
6
|
-
declare const properties: CSSProperty;
|
|
1
|
+
import * as CSS from 'csstype';
|
|
7
2
|
|
|
3
|
+
interface CSSProperties<TLength = (string & {}) | 0, TTime = string & {}> extends CSS.StandardPropertiesHyphen<TLength, TTime>, CSS.SvgPropertiesHyphen<TLength, TTime> {
|
|
4
|
+
}
|
|
5
|
+
type CSSProperty = keyof CSSProperties;
|
|
8
6
|
type DeepReadonly<T> = T extends Function | any[] ? T : {
|
|
9
7
|
readonly [P in keyof T]: DeepReadonly<T[P]>;
|
|
10
8
|
};
|
|
@@ -260,13 +258,14 @@ declare function getTokenValueParts(tokenValue: TokenValue): {
|
|
|
260
258
|
themeKey: string;
|
|
261
259
|
token: string;
|
|
262
260
|
};
|
|
263
|
-
declare function getCSSPropertiesForAlias(alias: string, aliases: Config['aliases']):
|
|
261
|
+
declare function getCSSPropertiesForAlias(alias: string, aliases: Config['aliases']): string[];
|
|
264
262
|
|
|
265
263
|
declare const mapShorthandToLonghands: {
|
|
266
264
|
all: never[];
|
|
267
265
|
animation: ("animation-delay" | "animation-direction" | "animation-duration" | "animation-fill-mode" | "animation-iteration-count" | "animation-name" | "animation-play-state" | "animation-timeline" | "animation-timing-function")[];
|
|
268
266
|
background: ("background-attachment" | "background-clip" | "background-color" | "background-image" | "background-repeat" | "background-size" | "background-position")[];
|
|
269
|
-
|
|
267
|
+
'background-position': ("background-position-x" | "background-position-y")[];
|
|
268
|
+
border: ("border-block" | "border-bottom" | "border-color" | "border-image" | "border-inline" | "border-left" | "border-right" | "border-style" | "border-top" | "border-width")[];
|
|
270
269
|
'border-top': ("border-top-color" | "border-top-style" | "border-top-width")[];
|
|
271
270
|
'border-right': ("border-right-color" | "border-right-style" | "border-right-width")[];
|
|
272
271
|
'border-bottom': ("border-bottom-color" | "border-bottom-style" | "border-bottom-width")[];
|
|
@@ -294,7 +293,7 @@ declare const mapShorthandToLonghands: {
|
|
|
294
293
|
'contain-intrinsic-size': ("contain-intrinsic-height" | "contain-intrinsic-width")[];
|
|
295
294
|
flex: ("flex-basis" | "flex-grow" | "flex-shrink")[];
|
|
296
295
|
'flex-flow': ("flex-direction" | "flex-wrap")[];
|
|
297
|
-
font: ("font-
|
|
296
|
+
font: ("font-size" | "font-family" | "font-stretch" | "font-style" | "font-variant" | "font-weight" | "line-height")[];
|
|
298
297
|
'font-variant': ("font-variant-alternates" | "font-variant-caps" | "font-variant-east-asian" | "font-variant-emoji" | "font-variant-ligatures" | "font-variant-numeric" | "font-variant-position")[];
|
|
299
298
|
gap: ("column-gap" | "row-gap")[];
|
|
300
299
|
grid: ("grid-auto-columns" | "grid-auto-flow" | "grid-auto-rows" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows")[];
|
|
@@ -333,4 +332,4 @@ declare const mapShorthandToLonghands: {
|
|
|
333
332
|
transition: ("transition-delay" | "transition-duration" | "transition-property" | "transition-timing-function")[];
|
|
334
333
|
};
|
|
335
334
|
|
|
336
|
-
export { type Aliases, ArbitraryValue, type CSSProperty, type Config, type DeepReadonly, type DefaultConfig, GridProperty, GridValue, type Theme, type ThemeModes, TokenProperty, TokenValue, VariantProperty, arbitraryValue, createConfig, defaultConfig, getCSSPropertiesForAlias, getTokenPropertyName, getTokenPropertyParts, getTokenPropertySplit, getTokenValueParts, gridProperty,
|
|
335
|
+
export { type Aliases, ArbitraryValue, type CSSProperties, type CSSProperty, type Config, type DeepReadonly, type DefaultConfig, GridProperty, GridValue, type Theme, type ThemeModes, TokenProperty, TokenValue, VariantProperty, arbitraryValue, createConfig, defaultConfig, getCSSPropertiesForAlias, getTokenPropertyName, getTokenPropertyParts, getTokenPropertySplit, getTokenValueParts, gridProperty, mapShorthandToLonghands, tokenProperty, tokenValue, variantProperty };
|
package/dist/index.js
CHANGED
|
@@ -35,9 +35,7 @@ __export(src_exports, {
|
|
|
35
35
|
getTokenPropertySplit: () => getTokenPropertySplit,
|
|
36
36
|
getTokenValueParts: () => getTokenValueParts,
|
|
37
37
|
gridProperty: () => gridProperty,
|
|
38
|
-
layers: () => layers,
|
|
39
38
|
mapShorthandToLonghands: () => mapShorthandToLonghands,
|
|
40
|
-
properties: () => properties,
|
|
41
39
|
tokenProperty: () => tokenProperty,
|
|
42
40
|
tokenValue: () => tokenValue,
|
|
43
41
|
variantProperty: () => variantProperty
|
|
@@ -287,430 +285,6 @@ function getCSSPropertiesForAlias(alias, aliases) {
|
|
|
287
285
|
return (aliases == null ? void 0 : aliases[alias]) || [alias];
|
|
288
286
|
}
|
|
289
287
|
|
|
290
|
-
// src/supports.ts
|
|
291
|
-
var layers = [
|
|
292
|
-
[
|
|
293
|
-
"all",
|
|
294
|
-
"-webkit-line-clamp",
|
|
295
|
-
"accent-color",
|
|
296
|
-
"align-tracks",
|
|
297
|
-
"animation",
|
|
298
|
-
"appearance",
|
|
299
|
-
"aspect-ratio",
|
|
300
|
-
"backdrop-filter",
|
|
301
|
-
"backface-visibility",
|
|
302
|
-
"background",
|
|
303
|
-
"border",
|
|
304
|
-
"border-collapse",
|
|
305
|
-
"border-spacing",
|
|
306
|
-
"border-radius",
|
|
307
|
-
"box-decoration-break",
|
|
308
|
-
"box-shadow",
|
|
309
|
-
"box-sizing",
|
|
310
|
-
"break-after",
|
|
311
|
-
"break-before",
|
|
312
|
-
"break-inside",
|
|
313
|
-
"caption-side",
|
|
314
|
-
"clear",
|
|
315
|
-
"clip-path",
|
|
316
|
-
"color",
|
|
317
|
-
"color-scheme",
|
|
318
|
-
"column-fill",
|
|
319
|
-
"column-span",
|
|
320
|
-
"column-rule",
|
|
321
|
-
"columns",
|
|
322
|
-
"contain",
|
|
323
|
-
"contain-intrinsic-size",
|
|
324
|
-
"container",
|
|
325
|
-
"content",
|
|
326
|
-
"content-visibility",
|
|
327
|
-
"counter-increment",
|
|
328
|
-
"counter-reset",
|
|
329
|
-
"counter-set",
|
|
330
|
-
"cursor",
|
|
331
|
-
"direction",
|
|
332
|
-
"display",
|
|
333
|
-
"empty-cells",
|
|
334
|
-
"fill",
|
|
335
|
-
"filter",
|
|
336
|
-
"flex",
|
|
337
|
-
"flex-flow",
|
|
338
|
-
"float",
|
|
339
|
-
"font",
|
|
340
|
-
"font-feature-settings",
|
|
341
|
-
"font-kerning",
|
|
342
|
-
"font-language-override",
|
|
343
|
-
"font-optical-sizing",
|
|
344
|
-
"font-palette",
|
|
345
|
-
"font-size-adjust",
|
|
346
|
-
"font-synthesis",
|
|
347
|
-
"font-variation-settings",
|
|
348
|
-
"forced-color-adjust",
|
|
349
|
-
"gap",
|
|
350
|
-
"grid",
|
|
351
|
-
"grid-area",
|
|
352
|
-
"grid-column",
|
|
353
|
-
"grid-row",
|
|
354
|
-
"grid-template",
|
|
355
|
-
"hanging-punctuation",
|
|
356
|
-
"height",
|
|
357
|
-
"hyphenate-character",
|
|
358
|
-
"hyphenate-limit-chars",
|
|
359
|
-
"hyphens",
|
|
360
|
-
"image-orientation",
|
|
361
|
-
"image-rendering",
|
|
362
|
-
"image-resolution",
|
|
363
|
-
"initial-letter",
|
|
364
|
-
"input-security",
|
|
365
|
-
"inset",
|
|
366
|
-
"isolation",
|
|
367
|
-
"justify-tracks",
|
|
368
|
-
"letter-spacing",
|
|
369
|
-
"line-break",
|
|
370
|
-
"line-clamp",
|
|
371
|
-
"line-height-step",
|
|
372
|
-
"list-style",
|
|
373
|
-
"margin",
|
|
374
|
-
"mask",
|
|
375
|
-
"mask-border",
|
|
376
|
-
"math-depth",
|
|
377
|
-
"math-shift",
|
|
378
|
-
"math-style",
|
|
379
|
-
"max-height",
|
|
380
|
-
"max-width",
|
|
381
|
-
"min-height",
|
|
382
|
-
"min-width",
|
|
383
|
-
"mix-blend-mode",
|
|
384
|
-
"object-fit",
|
|
385
|
-
"object-position",
|
|
386
|
-
"offset",
|
|
387
|
-
"opacity",
|
|
388
|
-
"order",
|
|
389
|
-
"orphans",
|
|
390
|
-
"outline",
|
|
391
|
-
"overflow",
|
|
392
|
-
"overscroll-behavior",
|
|
393
|
-
"padding",
|
|
394
|
-
"page",
|
|
395
|
-
"paint-order",
|
|
396
|
-
"perspective",
|
|
397
|
-
"perspective-origin",
|
|
398
|
-
"place-content",
|
|
399
|
-
"place-items",
|
|
400
|
-
"place-self",
|
|
401
|
-
"pointer-events",
|
|
402
|
-
"position",
|
|
403
|
-
"print-color-adjust",
|
|
404
|
-
"quotes",
|
|
405
|
-
"resize",
|
|
406
|
-
"rotate",
|
|
407
|
-
"ruby-position",
|
|
408
|
-
"scale",
|
|
409
|
-
"scroll-behavior",
|
|
410
|
-
"scroll-margin",
|
|
411
|
-
"scroll-padding",
|
|
412
|
-
"scroll-snap-align",
|
|
413
|
-
"scroll-snap-stop",
|
|
414
|
-
"scroll-snap-type",
|
|
415
|
-
"scroll-timeline",
|
|
416
|
-
"scrollbar-color",
|
|
417
|
-
"scrollbar-gutter",
|
|
418
|
-
"scrollbar-width",
|
|
419
|
-
"shape-image-threshold",
|
|
420
|
-
"shape-margin",
|
|
421
|
-
"shape-outside",
|
|
422
|
-
"stroke",
|
|
423
|
-
"tab-size",
|
|
424
|
-
"table-layout",
|
|
425
|
-
"text-align",
|
|
426
|
-
"text-align-last",
|
|
427
|
-
"text-combine-upright",
|
|
428
|
-
"text-decoration",
|
|
429
|
-
"text-decoration-skip-ink",
|
|
430
|
-
"text-emphasis",
|
|
431
|
-
"text-emphasis-position",
|
|
432
|
-
"text-indent",
|
|
433
|
-
"text-justify",
|
|
434
|
-
"text-orientation",
|
|
435
|
-
"text-overflow",
|
|
436
|
-
"text-rendering",
|
|
437
|
-
"text-shadow",
|
|
438
|
-
"text-size-adjust",
|
|
439
|
-
"text-transform",
|
|
440
|
-
"text-underline-offset",
|
|
441
|
-
"text-underline-position",
|
|
442
|
-
"touch-action",
|
|
443
|
-
"transform",
|
|
444
|
-
"transform-box",
|
|
445
|
-
"transform-origin",
|
|
446
|
-
"transform-style",
|
|
447
|
-
"transition",
|
|
448
|
-
"translate",
|
|
449
|
-
"unicode-bidi",
|
|
450
|
-
"user-select",
|
|
451
|
-
"vertical-align",
|
|
452
|
-
"view-transition-name",
|
|
453
|
-
"visibility",
|
|
454
|
-
"white-space",
|
|
455
|
-
"widows",
|
|
456
|
-
"width",
|
|
457
|
-
"will-change",
|
|
458
|
-
"word-break",
|
|
459
|
-
"word-spacing",
|
|
460
|
-
"word-wrap",
|
|
461
|
-
"writing-mode",
|
|
462
|
-
"z-index",
|
|
463
|
-
"zoom"
|
|
464
|
-
],
|
|
465
|
-
[
|
|
466
|
-
"animation-composition",
|
|
467
|
-
"animation-delay",
|
|
468
|
-
"animation-direction",
|
|
469
|
-
"animation-duration",
|
|
470
|
-
"animation-fill-mode",
|
|
471
|
-
"animation-iteration-count",
|
|
472
|
-
"animation-name",
|
|
473
|
-
"animation-play-state",
|
|
474
|
-
"animation-timeline",
|
|
475
|
-
"animation-timing-function",
|
|
476
|
-
"background-attachment",
|
|
477
|
-
"background-blend-mode",
|
|
478
|
-
"background-clip",
|
|
479
|
-
"background-color",
|
|
480
|
-
"background-image",
|
|
481
|
-
"background-origin",
|
|
482
|
-
"background-position",
|
|
483
|
-
"background-position-x",
|
|
484
|
-
"background-position-y",
|
|
485
|
-
"background-repeat",
|
|
486
|
-
"background-size",
|
|
487
|
-
"border-top",
|
|
488
|
-
"border-right",
|
|
489
|
-
"border-bottom",
|
|
490
|
-
"border-left",
|
|
491
|
-
"border-top-left-radius",
|
|
492
|
-
"border-top-right-radius",
|
|
493
|
-
"border-bottom-left-radius",
|
|
494
|
-
"border-bottom-right-radius",
|
|
495
|
-
"caret-color",
|
|
496
|
-
"caret-shape",
|
|
497
|
-
"column-rule-color",
|
|
498
|
-
"column-rule-style",
|
|
499
|
-
"column-rule-width",
|
|
500
|
-
"column-count",
|
|
501
|
-
"column-width",
|
|
502
|
-
"contain-intrinsic-width",
|
|
503
|
-
"contain-intrinsic-height",
|
|
504
|
-
"container-name",
|
|
505
|
-
"container-type",
|
|
506
|
-
"flex-grow",
|
|
507
|
-
"flex-shrink",
|
|
508
|
-
"flex-basis",
|
|
509
|
-
"flex-direction",
|
|
510
|
-
"flex-wrap",
|
|
511
|
-
"font-style",
|
|
512
|
-
"font-variant",
|
|
513
|
-
"font-weight",
|
|
514
|
-
"font-stretch",
|
|
515
|
-
"font-size",
|
|
516
|
-
"font-family",
|
|
517
|
-
"row-gap",
|
|
518
|
-
"column-gap",
|
|
519
|
-
"grid-auto-columns",
|
|
520
|
-
"grid-auto-flow",
|
|
521
|
-
"grid-auto-rows",
|
|
522
|
-
"grid-template-areas",
|
|
523
|
-
"grid-template-columns",
|
|
524
|
-
"grid-template-rows",
|
|
525
|
-
"grid-row-start",
|
|
526
|
-
"grid-column-start",
|
|
527
|
-
"grid-row-end",
|
|
528
|
-
"grid-column-end",
|
|
529
|
-
"top",
|
|
530
|
-
"right",
|
|
531
|
-
"bottom",
|
|
532
|
-
"left",
|
|
533
|
-
"line-height",
|
|
534
|
-
"list-style-image",
|
|
535
|
-
"list-style-position",
|
|
536
|
-
"list-style-type",
|
|
537
|
-
"margin-top",
|
|
538
|
-
"margin-right",
|
|
539
|
-
"margin-bottom",
|
|
540
|
-
"margin-left",
|
|
541
|
-
"mask-border-mode",
|
|
542
|
-
"mask-border-outset",
|
|
543
|
-
"mask-border-repeat",
|
|
544
|
-
"mask-border-slice",
|
|
545
|
-
"mask-border-source",
|
|
546
|
-
"mask-border-width",
|
|
547
|
-
"mask-clip",
|
|
548
|
-
"mask-composite",
|
|
549
|
-
"mask-image",
|
|
550
|
-
"mask-mode",
|
|
551
|
-
"mask-origin",
|
|
552
|
-
"mask-position",
|
|
553
|
-
"mask-repeat",
|
|
554
|
-
"mask-size",
|
|
555
|
-
"mask-type",
|
|
556
|
-
"offset-anchor",
|
|
557
|
-
"offset-distance",
|
|
558
|
-
"offset-path",
|
|
559
|
-
"offset-position",
|
|
560
|
-
"offset-rotate",
|
|
561
|
-
"outline-color",
|
|
562
|
-
"outline-offset",
|
|
563
|
-
"outline-style",
|
|
564
|
-
"outline-width",
|
|
565
|
-
"overflow-anchor",
|
|
566
|
-
"overflow-clip-margin",
|
|
567
|
-
"overflow-wrap",
|
|
568
|
-
"overflow-x",
|
|
569
|
-
"overflow-y",
|
|
570
|
-
"overscroll-behavior-x",
|
|
571
|
-
"overscroll-behavior-y",
|
|
572
|
-
"padding-top",
|
|
573
|
-
"padding-right",
|
|
574
|
-
"padding-bottom",
|
|
575
|
-
"padding-left",
|
|
576
|
-
"align-content",
|
|
577
|
-
"justify-content",
|
|
578
|
-
"align-items",
|
|
579
|
-
"justify-items",
|
|
580
|
-
"align-self",
|
|
581
|
-
"justify-self",
|
|
582
|
-
"scroll-margin-top",
|
|
583
|
-
"scroll-margin-right",
|
|
584
|
-
"scroll-margin-bottom",
|
|
585
|
-
"scroll-margin-left",
|
|
586
|
-
"scroll-padding-top",
|
|
587
|
-
"scroll-padding-right",
|
|
588
|
-
"scroll-padding-bottom",
|
|
589
|
-
"scroll-padding-left",
|
|
590
|
-
"scroll-timeline-axis",
|
|
591
|
-
"scroll-timeline-name",
|
|
592
|
-
"text-decoration-color",
|
|
593
|
-
"text-decoration-line",
|
|
594
|
-
"text-decoration-style",
|
|
595
|
-
"text-decoration-thickness",
|
|
596
|
-
"text-emphasis-color",
|
|
597
|
-
"text-emphasis-style",
|
|
598
|
-
"transition-delay",
|
|
599
|
-
"transition-duration",
|
|
600
|
-
"transition-property",
|
|
601
|
-
"transition-timing-function"
|
|
602
|
-
],
|
|
603
|
-
[
|
|
604
|
-
"border-style",
|
|
605
|
-
"border-color",
|
|
606
|
-
"border-width",
|
|
607
|
-
"border-image",
|
|
608
|
-
"font-variant-alternates",
|
|
609
|
-
"font-variant-caps",
|
|
610
|
-
"font-variant-east-asian",
|
|
611
|
-
"font-variant-emoji",
|
|
612
|
-
"font-variant-ligatures",
|
|
613
|
-
"font-variant-numeric",
|
|
614
|
-
"font-variant-position"
|
|
615
|
-
],
|
|
616
|
-
[
|
|
617
|
-
"border-top-color",
|
|
618
|
-
"border-top-style",
|
|
619
|
-
"border-top-width",
|
|
620
|
-
"border-right-color",
|
|
621
|
-
"border-right-style",
|
|
622
|
-
"border-right-width",
|
|
623
|
-
"border-bottom-color",
|
|
624
|
-
"border-bottom-style",
|
|
625
|
-
"border-bottom-width",
|
|
626
|
-
"border-left-color",
|
|
627
|
-
"border-left-style",
|
|
628
|
-
"border-left-width",
|
|
629
|
-
"border-image-outset",
|
|
630
|
-
"border-image-repeat",
|
|
631
|
-
"border-image-slice",
|
|
632
|
-
"border-image-source",
|
|
633
|
-
"border-image-width"
|
|
634
|
-
],
|
|
635
|
-
[
|
|
636
|
-
"block-size",
|
|
637
|
-
"border-block",
|
|
638
|
-
"border-inline",
|
|
639
|
-
"contain-intrinsic-block-size",
|
|
640
|
-
"contain-intrinsic-inline-size",
|
|
641
|
-
"inline-size",
|
|
642
|
-
"inset-block",
|
|
643
|
-
"inset-inline",
|
|
644
|
-
"margin-block",
|
|
645
|
-
"margin-inline",
|
|
646
|
-
"max-block-size",
|
|
647
|
-
"min-block-size",
|
|
648
|
-
"max-inline-size",
|
|
649
|
-
"min-inline-size",
|
|
650
|
-
"overflow-block",
|
|
651
|
-
"overflow-inline",
|
|
652
|
-
"overscroll-behavior-block",
|
|
653
|
-
"overscroll-behavior-inline",
|
|
654
|
-
"padding-block",
|
|
655
|
-
"padding-inline",
|
|
656
|
-
"scroll-margin-block",
|
|
657
|
-
"scroll-margin-inline",
|
|
658
|
-
"scroll-padding-block",
|
|
659
|
-
"scroll-padding-inline"
|
|
660
|
-
],
|
|
661
|
-
[
|
|
662
|
-
"border-block-width",
|
|
663
|
-
"border-block-style",
|
|
664
|
-
"border-block-color",
|
|
665
|
-
"border-block-start",
|
|
666
|
-
"border-block-end",
|
|
667
|
-
"border-inline-color",
|
|
668
|
-
"border-inline-style",
|
|
669
|
-
"border-inline-width",
|
|
670
|
-
"border-inline-start",
|
|
671
|
-
"border-inline-end",
|
|
672
|
-
"inset-block-end",
|
|
673
|
-
"inset-block-start",
|
|
674
|
-
"inset-inline-end",
|
|
675
|
-
"inset-inline-start",
|
|
676
|
-
"margin-block-end",
|
|
677
|
-
"margin-block-start",
|
|
678
|
-
"margin-inline-end",
|
|
679
|
-
"margin-inline-start",
|
|
680
|
-
"padding-block-end",
|
|
681
|
-
"padding-block-start",
|
|
682
|
-
"padding-inline-end",
|
|
683
|
-
"padding-inline-start",
|
|
684
|
-
"scroll-margin-block-end",
|
|
685
|
-
"scroll-margin-block-start",
|
|
686
|
-
"scroll-margin-inline-end",
|
|
687
|
-
"scroll-margin-inline-start",
|
|
688
|
-
"scroll-padding-block-end",
|
|
689
|
-
"scroll-padding-block-start",
|
|
690
|
-
"scroll-padding-inline-end",
|
|
691
|
-
"scroll-padding-inline-start"
|
|
692
|
-
],
|
|
693
|
-
[
|
|
694
|
-
"border-start-end-radius",
|
|
695
|
-
"border-start-start-radius",
|
|
696
|
-
"border-end-end-radius",
|
|
697
|
-
"border-end-start-radius",
|
|
698
|
-
"border-block-start-color",
|
|
699
|
-
"border-block-start-style",
|
|
700
|
-
"border-block-start-width",
|
|
701
|
-
"border-block-end-color",
|
|
702
|
-
"border-block-end-style",
|
|
703
|
-
"border-block-end-width",
|
|
704
|
-
"border-inline-start-color",
|
|
705
|
-
"border-inline-start-style",
|
|
706
|
-
"border-inline-start-width",
|
|
707
|
-
"border-inline-end-color",
|
|
708
|
-
"border-inline-end-style",
|
|
709
|
-
"border-inline-end-width"
|
|
710
|
-
]
|
|
711
|
-
];
|
|
712
|
-
var properties = layers.flat();
|
|
713
|
-
|
|
714
288
|
// src/shorthands.ts
|
|
715
289
|
var mapShorthandToLonghands = {
|
|
716
290
|
all: [],
|
|
@@ -734,6 +308,7 @@ var mapShorthandToLonghands = {
|
|
|
734
308
|
"background-repeat",
|
|
735
309
|
"background-size"
|
|
736
310
|
],
|
|
311
|
+
"background-position": ["background-position-x", "background-position-y"],
|
|
737
312
|
border: [
|
|
738
313
|
"border-top",
|
|
739
314
|
"border-right",
|
|
@@ -742,7 +317,9 @@ var mapShorthandToLonghands = {
|
|
|
742
317
|
"border-color",
|
|
743
318
|
"border-style",
|
|
744
319
|
"border-width",
|
|
745
|
-
"border-image"
|
|
320
|
+
"border-image",
|
|
321
|
+
"border-block",
|
|
322
|
+
"border-inline"
|
|
746
323
|
],
|
|
747
324
|
"border-top": ["border-top-width", "border-top-style", "border-top-color"],
|
|
748
325
|
"border-right": ["border-right-width", "border-right-style", "border-right-color"],
|
|
@@ -940,9 +517,7 @@ var mapShorthandToLonghands = {
|
|
|
940
517
|
getTokenPropertySplit,
|
|
941
518
|
getTokenValueParts,
|
|
942
519
|
gridProperty,
|
|
943
|
-
layers,
|
|
944
520
|
mapShorthandToLonghands,
|
|
945
|
-
properties,
|
|
946
521
|
tokenProperty,
|
|
947
522
|
tokenValue,
|
|
948
523
|
variantProperty
|
package/dist/index.mjs
CHANGED
|
@@ -241,430 +241,6 @@ function getCSSPropertiesForAlias(alias, aliases) {
|
|
|
241
241
|
return (aliases == null ? void 0 : aliases[alias]) || [alias];
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
// src/supports.ts
|
|
245
|
-
var layers = [
|
|
246
|
-
[
|
|
247
|
-
"all",
|
|
248
|
-
"-webkit-line-clamp",
|
|
249
|
-
"accent-color",
|
|
250
|
-
"align-tracks",
|
|
251
|
-
"animation",
|
|
252
|
-
"appearance",
|
|
253
|
-
"aspect-ratio",
|
|
254
|
-
"backdrop-filter",
|
|
255
|
-
"backface-visibility",
|
|
256
|
-
"background",
|
|
257
|
-
"border",
|
|
258
|
-
"border-collapse",
|
|
259
|
-
"border-spacing",
|
|
260
|
-
"border-radius",
|
|
261
|
-
"box-decoration-break",
|
|
262
|
-
"box-shadow",
|
|
263
|
-
"box-sizing",
|
|
264
|
-
"break-after",
|
|
265
|
-
"break-before",
|
|
266
|
-
"break-inside",
|
|
267
|
-
"caption-side",
|
|
268
|
-
"clear",
|
|
269
|
-
"clip-path",
|
|
270
|
-
"color",
|
|
271
|
-
"color-scheme",
|
|
272
|
-
"column-fill",
|
|
273
|
-
"column-span",
|
|
274
|
-
"column-rule",
|
|
275
|
-
"columns",
|
|
276
|
-
"contain",
|
|
277
|
-
"contain-intrinsic-size",
|
|
278
|
-
"container",
|
|
279
|
-
"content",
|
|
280
|
-
"content-visibility",
|
|
281
|
-
"counter-increment",
|
|
282
|
-
"counter-reset",
|
|
283
|
-
"counter-set",
|
|
284
|
-
"cursor",
|
|
285
|
-
"direction",
|
|
286
|
-
"display",
|
|
287
|
-
"empty-cells",
|
|
288
|
-
"fill",
|
|
289
|
-
"filter",
|
|
290
|
-
"flex",
|
|
291
|
-
"flex-flow",
|
|
292
|
-
"float",
|
|
293
|
-
"font",
|
|
294
|
-
"font-feature-settings",
|
|
295
|
-
"font-kerning",
|
|
296
|
-
"font-language-override",
|
|
297
|
-
"font-optical-sizing",
|
|
298
|
-
"font-palette",
|
|
299
|
-
"font-size-adjust",
|
|
300
|
-
"font-synthesis",
|
|
301
|
-
"font-variation-settings",
|
|
302
|
-
"forced-color-adjust",
|
|
303
|
-
"gap",
|
|
304
|
-
"grid",
|
|
305
|
-
"grid-area",
|
|
306
|
-
"grid-column",
|
|
307
|
-
"grid-row",
|
|
308
|
-
"grid-template",
|
|
309
|
-
"hanging-punctuation",
|
|
310
|
-
"height",
|
|
311
|
-
"hyphenate-character",
|
|
312
|
-
"hyphenate-limit-chars",
|
|
313
|
-
"hyphens",
|
|
314
|
-
"image-orientation",
|
|
315
|
-
"image-rendering",
|
|
316
|
-
"image-resolution",
|
|
317
|
-
"initial-letter",
|
|
318
|
-
"input-security",
|
|
319
|
-
"inset",
|
|
320
|
-
"isolation",
|
|
321
|
-
"justify-tracks",
|
|
322
|
-
"letter-spacing",
|
|
323
|
-
"line-break",
|
|
324
|
-
"line-clamp",
|
|
325
|
-
"line-height-step",
|
|
326
|
-
"list-style",
|
|
327
|
-
"margin",
|
|
328
|
-
"mask",
|
|
329
|
-
"mask-border",
|
|
330
|
-
"math-depth",
|
|
331
|
-
"math-shift",
|
|
332
|
-
"math-style",
|
|
333
|
-
"max-height",
|
|
334
|
-
"max-width",
|
|
335
|
-
"min-height",
|
|
336
|
-
"min-width",
|
|
337
|
-
"mix-blend-mode",
|
|
338
|
-
"object-fit",
|
|
339
|
-
"object-position",
|
|
340
|
-
"offset",
|
|
341
|
-
"opacity",
|
|
342
|
-
"order",
|
|
343
|
-
"orphans",
|
|
344
|
-
"outline",
|
|
345
|
-
"overflow",
|
|
346
|
-
"overscroll-behavior",
|
|
347
|
-
"padding",
|
|
348
|
-
"page",
|
|
349
|
-
"paint-order",
|
|
350
|
-
"perspective",
|
|
351
|
-
"perspective-origin",
|
|
352
|
-
"place-content",
|
|
353
|
-
"place-items",
|
|
354
|
-
"place-self",
|
|
355
|
-
"pointer-events",
|
|
356
|
-
"position",
|
|
357
|
-
"print-color-adjust",
|
|
358
|
-
"quotes",
|
|
359
|
-
"resize",
|
|
360
|
-
"rotate",
|
|
361
|
-
"ruby-position",
|
|
362
|
-
"scale",
|
|
363
|
-
"scroll-behavior",
|
|
364
|
-
"scroll-margin",
|
|
365
|
-
"scroll-padding",
|
|
366
|
-
"scroll-snap-align",
|
|
367
|
-
"scroll-snap-stop",
|
|
368
|
-
"scroll-snap-type",
|
|
369
|
-
"scroll-timeline",
|
|
370
|
-
"scrollbar-color",
|
|
371
|
-
"scrollbar-gutter",
|
|
372
|
-
"scrollbar-width",
|
|
373
|
-
"shape-image-threshold",
|
|
374
|
-
"shape-margin",
|
|
375
|
-
"shape-outside",
|
|
376
|
-
"stroke",
|
|
377
|
-
"tab-size",
|
|
378
|
-
"table-layout",
|
|
379
|
-
"text-align",
|
|
380
|
-
"text-align-last",
|
|
381
|
-
"text-combine-upright",
|
|
382
|
-
"text-decoration",
|
|
383
|
-
"text-decoration-skip-ink",
|
|
384
|
-
"text-emphasis",
|
|
385
|
-
"text-emphasis-position",
|
|
386
|
-
"text-indent",
|
|
387
|
-
"text-justify",
|
|
388
|
-
"text-orientation",
|
|
389
|
-
"text-overflow",
|
|
390
|
-
"text-rendering",
|
|
391
|
-
"text-shadow",
|
|
392
|
-
"text-size-adjust",
|
|
393
|
-
"text-transform",
|
|
394
|
-
"text-underline-offset",
|
|
395
|
-
"text-underline-position",
|
|
396
|
-
"touch-action",
|
|
397
|
-
"transform",
|
|
398
|
-
"transform-box",
|
|
399
|
-
"transform-origin",
|
|
400
|
-
"transform-style",
|
|
401
|
-
"transition",
|
|
402
|
-
"translate",
|
|
403
|
-
"unicode-bidi",
|
|
404
|
-
"user-select",
|
|
405
|
-
"vertical-align",
|
|
406
|
-
"view-transition-name",
|
|
407
|
-
"visibility",
|
|
408
|
-
"white-space",
|
|
409
|
-
"widows",
|
|
410
|
-
"width",
|
|
411
|
-
"will-change",
|
|
412
|
-
"word-break",
|
|
413
|
-
"word-spacing",
|
|
414
|
-
"word-wrap",
|
|
415
|
-
"writing-mode",
|
|
416
|
-
"z-index",
|
|
417
|
-
"zoom"
|
|
418
|
-
],
|
|
419
|
-
[
|
|
420
|
-
"animation-composition",
|
|
421
|
-
"animation-delay",
|
|
422
|
-
"animation-direction",
|
|
423
|
-
"animation-duration",
|
|
424
|
-
"animation-fill-mode",
|
|
425
|
-
"animation-iteration-count",
|
|
426
|
-
"animation-name",
|
|
427
|
-
"animation-play-state",
|
|
428
|
-
"animation-timeline",
|
|
429
|
-
"animation-timing-function",
|
|
430
|
-
"background-attachment",
|
|
431
|
-
"background-blend-mode",
|
|
432
|
-
"background-clip",
|
|
433
|
-
"background-color",
|
|
434
|
-
"background-image",
|
|
435
|
-
"background-origin",
|
|
436
|
-
"background-position",
|
|
437
|
-
"background-position-x",
|
|
438
|
-
"background-position-y",
|
|
439
|
-
"background-repeat",
|
|
440
|
-
"background-size",
|
|
441
|
-
"border-top",
|
|
442
|
-
"border-right",
|
|
443
|
-
"border-bottom",
|
|
444
|
-
"border-left",
|
|
445
|
-
"border-top-left-radius",
|
|
446
|
-
"border-top-right-radius",
|
|
447
|
-
"border-bottom-left-radius",
|
|
448
|
-
"border-bottom-right-radius",
|
|
449
|
-
"caret-color",
|
|
450
|
-
"caret-shape",
|
|
451
|
-
"column-rule-color",
|
|
452
|
-
"column-rule-style",
|
|
453
|
-
"column-rule-width",
|
|
454
|
-
"column-count",
|
|
455
|
-
"column-width",
|
|
456
|
-
"contain-intrinsic-width",
|
|
457
|
-
"contain-intrinsic-height",
|
|
458
|
-
"container-name",
|
|
459
|
-
"container-type",
|
|
460
|
-
"flex-grow",
|
|
461
|
-
"flex-shrink",
|
|
462
|
-
"flex-basis",
|
|
463
|
-
"flex-direction",
|
|
464
|
-
"flex-wrap",
|
|
465
|
-
"font-style",
|
|
466
|
-
"font-variant",
|
|
467
|
-
"font-weight",
|
|
468
|
-
"font-stretch",
|
|
469
|
-
"font-size",
|
|
470
|
-
"font-family",
|
|
471
|
-
"row-gap",
|
|
472
|
-
"column-gap",
|
|
473
|
-
"grid-auto-columns",
|
|
474
|
-
"grid-auto-flow",
|
|
475
|
-
"grid-auto-rows",
|
|
476
|
-
"grid-template-areas",
|
|
477
|
-
"grid-template-columns",
|
|
478
|
-
"grid-template-rows",
|
|
479
|
-
"grid-row-start",
|
|
480
|
-
"grid-column-start",
|
|
481
|
-
"grid-row-end",
|
|
482
|
-
"grid-column-end",
|
|
483
|
-
"top",
|
|
484
|
-
"right",
|
|
485
|
-
"bottom",
|
|
486
|
-
"left",
|
|
487
|
-
"line-height",
|
|
488
|
-
"list-style-image",
|
|
489
|
-
"list-style-position",
|
|
490
|
-
"list-style-type",
|
|
491
|
-
"margin-top",
|
|
492
|
-
"margin-right",
|
|
493
|
-
"margin-bottom",
|
|
494
|
-
"margin-left",
|
|
495
|
-
"mask-border-mode",
|
|
496
|
-
"mask-border-outset",
|
|
497
|
-
"mask-border-repeat",
|
|
498
|
-
"mask-border-slice",
|
|
499
|
-
"mask-border-source",
|
|
500
|
-
"mask-border-width",
|
|
501
|
-
"mask-clip",
|
|
502
|
-
"mask-composite",
|
|
503
|
-
"mask-image",
|
|
504
|
-
"mask-mode",
|
|
505
|
-
"mask-origin",
|
|
506
|
-
"mask-position",
|
|
507
|
-
"mask-repeat",
|
|
508
|
-
"mask-size",
|
|
509
|
-
"mask-type",
|
|
510
|
-
"offset-anchor",
|
|
511
|
-
"offset-distance",
|
|
512
|
-
"offset-path",
|
|
513
|
-
"offset-position",
|
|
514
|
-
"offset-rotate",
|
|
515
|
-
"outline-color",
|
|
516
|
-
"outline-offset",
|
|
517
|
-
"outline-style",
|
|
518
|
-
"outline-width",
|
|
519
|
-
"overflow-anchor",
|
|
520
|
-
"overflow-clip-margin",
|
|
521
|
-
"overflow-wrap",
|
|
522
|
-
"overflow-x",
|
|
523
|
-
"overflow-y",
|
|
524
|
-
"overscroll-behavior-x",
|
|
525
|
-
"overscroll-behavior-y",
|
|
526
|
-
"padding-top",
|
|
527
|
-
"padding-right",
|
|
528
|
-
"padding-bottom",
|
|
529
|
-
"padding-left",
|
|
530
|
-
"align-content",
|
|
531
|
-
"justify-content",
|
|
532
|
-
"align-items",
|
|
533
|
-
"justify-items",
|
|
534
|
-
"align-self",
|
|
535
|
-
"justify-self",
|
|
536
|
-
"scroll-margin-top",
|
|
537
|
-
"scroll-margin-right",
|
|
538
|
-
"scroll-margin-bottom",
|
|
539
|
-
"scroll-margin-left",
|
|
540
|
-
"scroll-padding-top",
|
|
541
|
-
"scroll-padding-right",
|
|
542
|
-
"scroll-padding-bottom",
|
|
543
|
-
"scroll-padding-left",
|
|
544
|
-
"scroll-timeline-axis",
|
|
545
|
-
"scroll-timeline-name",
|
|
546
|
-
"text-decoration-color",
|
|
547
|
-
"text-decoration-line",
|
|
548
|
-
"text-decoration-style",
|
|
549
|
-
"text-decoration-thickness",
|
|
550
|
-
"text-emphasis-color",
|
|
551
|
-
"text-emphasis-style",
|
|
552
|
-
"transition-delay",
|
|
553
|
-
"transition-duration",
|
|
554
|
-
"transition-property",
|
|
555
|
-
"transition-timing-function"
|
|
556
|
-
],
|
|
557
|
-
[
|
|
558
|
-
"border-style",
|
|
559
|
-
"border-color",
|
|
560
|
-
"border-width",
|
|
561
|
-
"border-image",
|
|
562
|
-
"font-variant-alternates",
|
|
563
|
-
"font-variant-caps",
|
|
564
|
-
"font-variant-east-asian",
|
|
565
|
-
"font-variant-emoji",
|
|
566
|
-
"font-variant-ligatures",
|
|
567
|
-
"font-variant-numeric",
|
|
568
|
-
"font-variant-position"
|
|
569
|
-
],
|
|
570
|
-
[
|
|
571
|
-
"border-top-color",
|
|
572
|
-
"border-top-style",
|
|
573
|
-
"border-top-width",
|
|
574
|
-
"border-right-color",
|
|
575
|
-
"border-right-style",
|
|
576
|
-
"border-right-width",
|
|
577
|
-
"border-bottom-color",
|
|
578
|
-
"border-bottom-style",
|
|
579
|
-
"border-bottom-width",
|
|
580
|
-
"border-left-color",
|
|
581
|
-
"border-left-style",
|
|
582
|
-
"border-left-width",
|
|
583
|
-
"border-image-outset",
|
|
584
|
-
"border-image-repeat",
|
|
585
|
-
"border-image-slice",
|
|
586
|
-
"border-image-source",
|
|
587
|
-
"border-image-width"
|
|
588
|
-
],
|
|
589
|
-
[
|
|
590
|
-
"block-size",
|
|
591
|
-
"border-block",
|
|
592
|
-
"border-inline",
|
|
593
|
-
"contain-intrinsic-block-size",
|
|
594
|
-
"contain-intrinsic-inline-size",
|
|
595
|
-
"inline-size",
|
|
596
|
-
"inset-block",
|
|
597
|
-
"inset-inline",
|
|
598
|
-
"margin-block",
|
|
599
|
-
"margin-inline",
|
|
600
|
-
"max-block-size",
|
|
601
|
-
"min-block-size",
|
|
602
|
-
"max-inline-size",
|
|
603
|
-
"min-inline-size",
|
|
604
|
-
"overflow-block",
|
|
605
|
-
"overflow-inline",
|
|
606
|
-
"overscroll-behavior-block",
|
|
607
|
-
"overscroll-behavior-inline",
|
|
608
|
-
"padding-block",
|
|
609
|
-
"padding-inline",
|
|
610
|
-
"scroll-margin-block",
|
|
611
|
-
"scroll-margin-inline",
|
|
612
|
-
"scroll-padding-block",
|
|
613
|
-
"scroll-padding-inline"
|
|
614
|
-
],
|
|
615
|
-
[
|
|
616
|
-
"border-block-width",
|
|
617
|
-
"border-block-style",
|
|
618
|
-
"border-block-color",
|
|
619
|
-
"border-block-start",
|
|
620
|
-
"border-block-end",
|
|
621
|
-
"border-inline-color",
|
|
622
|
-
"border-inline-style",
|
|
623
|
-
"border-inline-width",
|
|
624
|
-
"border-inline-start",
|
|
625
|
-
"border-inline-end",
|
|
626
|
-
"inset-block-end",
|
|
627
|
-
"inset-block-start",
|
|
628
|
-
"inset-inline-end",
|
|
629
|
-
"inset-inline-start",
|
|
630
|
-
"margin-block-end",
|
|
631
|
-
"margin-block-start",
|
|
632
|
-
"margin-inline-end",
|
|
633
|
-
"margin-inline-start",
|
|
634
|
-
"padding-block-end",
|
|
635
|
-
"padding-block-start",
|
|
636
|
-
"padding-inline-end",
|
|
637
|
-
"padding-inline-start",
|
|
638
|
-
"scroll-margin-block-end",
|
|
639
|
-
"scroll-margin-block-start",
|
|
640
|
-
"scroll-margin-inline-end",
|
|
641
|
-
"scroll-margin-inline-start",
|
|
642
|
-
"scroll-padding-block-end",
|
|
643
|
-
"scroll-padding-block-start",
|
|
644
|
-
"scroll-padding-inline-end",
|
|
645
|
-
"scroll-padding-inline-start"
|
|
646
|
-
],
|
|
647
|
-
[
|
|
648
|
-
"border-start-end-radius",
|
|
649
|
-
"border-start-start-radius",
|
|
650
|
-
"border-end-end-radius",
|
|
651
|
-
"border-end-start-radius",
|
|
652
|
-
"border-block-start-color",
|
|
653
|
-
"border-block-start-style",
|
|
654
|
-
"border-block-start-width",
|
|
655
|
-
"border-block-end-color",
|
|
656
|
-
"border-block-end-style",
|
|
657
|
-
"border-block-end-width",
|
|
658
|
-
"border-inline-start-color",
|
|
659
|
-
"border-inline-start-style",
|
|
660
|
-
"border-inline-start-width",
|
|
661
|
-
"border-inline-end-color",
|
|
662
|
-
"border-inline-end-style",
|
|
663
|
-
"border-inline-end-width"
|
|
664
|
-
]
|
|
665
|
-
];
|
|
666
|
-
var properties = layers.flat();
|
|
667
|
-
|
|
668
244
|
// src/shorthands.ts
|
|
669
245
|
var mapShorthandToLonghands = {
|
|
670
246
|
all: [],
|
|
@@ -688,6 +264,7 @@ var mapShorthandToLonghands = {
|
|
|
688
264
|
"background-repeat",
|
|
689
265
|
"background-size"
|
|
690
266
|
],
|
|
267
|
+
"background-position": ["background-position-x", "background-position-y"],
|
|
691
268
|
border: [
|
|
692
269
|
"border-top",
|
|
693
270
|
"border-right",
|
|
@@ -696,7 +273,9 @@ var mapShorthandToLonghands = {
|
|
|
696
273
|
"border-color",
|
|
697
274
|
"border-style",
|
|
698
275
|
"border-width",
|
|
699
|
-
"border-image"
|
|
276
|
+
"border-image",
|
|
277
|
+
"border-block",
|
|
278
|
+
"border-inline"
|
|
700
279
|
],
|
|
701
280
|
"border-top": ["border-top-width", "border-top-style", "border-top-color"],
|
|
702
281
|
"border-right": ["border-right-width", "border-right-style", "border-right-color"],
|
|
@@ -893,9 +472,7 @@ export {
|
|
|
893
472
|
getTokenPropertySplit,
|
|
894
473
|
getTokenValueParts,
|
|
895
474
|
gridProperty,
|
|
896
|
-
layers,
|
|
897
475
|
mapShorthandToLonghands,
|
|
898
|
-
properties,
|
|
899
476
|
tokenProperty,
|
|
900
477
|
tokenValue,
|
|
901
478
|
variantProperty
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenami/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"csstype": "^3.1.2",
|
|
15
15
|
"tsup": "^7.0.0",
|
|
16
16
|
"typescript": "^5.1.3",
|
|
17
|
-
"@tokenami/dev": "0.0.
|
|
17
|
+
"@tokenami/dev": "0.0.40"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|