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