@master/css 2.0.0-rc.3 → 2.0.0-rc.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.
Files changed (109) hide show
  1. package/README.md +4 -43
  2. package/dist/_virtual/_commonjsHelpers.cjs +5 -0
  3. package/dist/_virtual/_commonjsHelpers.mjs +3 -0
  4. package/dist/_virtual/css-escape.cjs +5 -0
  5. package/dist/_virtual/css-escape.mjs +3 -0
  6. package/dist/bin/index.cjs +11 -0
  7. package/dist/bin/index.d.ts +0 -1
  8. package/dist/bin/index.mjs +9 -0
  9. package/dist/common.cjs +145 -0
  10. package/dist/common.d.ts +25 -0
  11. package/dist/common.mjs +124 -0
  12. package/dist/config/animations.cjs +113 -0
  13. package/dist/config/animations.mjs +111 -0
  14. package/dist/config/functions.cjs +351 -0
  15. package/dist/config/functions.mjs +349 -0
  16. package/dist/config/index.cjs +36 -0
  17. package/dist/config/index.d.ts +15 -12
  18. package/dist/config/index.mjs +26 -0
  19. package/dist/config/modes.cjs +8 -0
  20. package/dist/config/modes.d.ts +3 -0
  21. package/dist/config/modes.mjs +6 -0
  22. package/dist/config/queries.cjs +17 -0
  23. package/dist/config/queries.d.ts +22 -0
  24. package/dist/config/queries.mjs +15 -0
  25. package/dist/config/rules.cjs +2303 -0
  26. package/dist/config/rules.d.ts +8 -5
  27. package/dist/config/rules.mjs +2298 -0
  28. package/dist/config/selectors.cjs +28 -0
  29. package/dist/config/selectors.d.ts +0 -1
  30. package/dist/config/selectors.mjs +26 -0
  31. package/dist/config/styles.cjs +2 -0
  32. package/dist/config/styles.mjs +1 -0
  33. package/dist/config/utilities.cjs +191 -0
  34. package/dist/config/{semantics.d.ts → utilities.d.ts} +2 -5
  35. package/dist/config/utilities.mjs +189 -0
  36. package/dist/config/variables.cjs +116 -0
  37. package/dist/config/variables.d.ts +132 -177
  38. package/dist/config/variables.mjs +114 -0
  39. package/dist/core.cjs +1046 -0
  40. package/dist/core.d.ts +35 -31
  41. package/dist/core.mjs +1041 -0
  42. package/dist/index.cjs +72 -0
  43. package/dist/index.d.ts +15 -8
  44. package/dist/index.mjs +22 -0
  45. package/dist/layer.cjs +28 -0
  46. package/dist/layer.d.ts +26 -9
  47. package/dist/layer.mjs +26 -0
  48. package/dist/polyfills/css-escape.cjs +8 -0
  49. package/dist/polyfills/css-escape.mjs +2 -0
  50. package/dist/polyfills/css-escape2.cjs +68 -0
  51. package/dist/polyfills/css-escape2.mjs +64 -0
  52. package/dist/rule.cjs +722 -0
  53. package/dist/rule.d.ts +60 -22
  54. package/dist/rule.mjs +720 -0
  55. package/dist/shared/utils/css-escape.cjs +56 -0
  56. package/dist/shared/utils/css-escape.mjs +54 -0
  57. package/dist/tokens/screen-sizes.cjs +17 -0
  58. package/dist/tokens/screen-sizes.mjs +15 -0
  59. package/dist/types/global.cjs +2 -0
  60. package/dist/types/global.d.ts +3 -3
  61. package/dist/types/global.mjs +1 -0
  62. package/dist/utils/are-rule-modes-equal.cjs +7 -0
  63. package/dist/utils/are-rule-modes-equal.d.ts +2 -0
  64. package/dist/utils/are-rule-modes-equal.mjs +5 -0
  65. package/dist/utils/are-rule-queries-equal.cjs +22 -0
  66. package/dist/utils/are-rule-queries-equal.d.ts +2 -0
  67. package/dist/utils/are-rule-queries-equal.mjs +20 -0
  68. package/dist/utils/are-rule-selectors-equal.cjs +29 -0
  69. package/dist/utils/are-rule-selectors-equal.d.ts +2 -0
  70. package/dist/utils/are-rule-selectors-equal.mjs +27 -0
  71. package/dist/utils/are-rule-states-equal.cjs +11 -0
  72. package/dist/utils/are-rule-states-equal.d.ts +2 -0
  73. package/dist/utils/are-rule-states-equal.mjs +9 -0
  74. package/dist/utils/are-rules-duplicated.cjs +17 -0
  75. package/dist/utils/are-rules-duplicated.d.ts +2 -0
  76. package/dist/utils/are-rules-duplicated.mjs +15 -0
  77. package/dist/utils/extend-config.cjs +72 -0
  78. package/dist/utils/extend-config.d.ts +1 -1
  79. package/dist/utils/extend-config.mjs +70 -0
  80. package/dist/utils/flatten-object.cjs +15 -0
  81. package/dist/utils/flatten-object.mjs +13 -0
  82. package/dist/utils/generate-css.cjs +13 -0
  83. package/dist/utils/generate-css.d.ts +2 -0
  84. package/dist/utils/generate-css.mjs +11 -0
  85. package/dist/utils/hex-to-rgb.cjs +30 -0
  86. package/dist/utils/hex-to-rgb.d.ts +1 -1
  87. package/dist/utils/hex-to-rgb.mjs +28 -0
  88. package/dist/utils/is-core-rule.cjs +9 -0
  89. package/dist/utils/is-core-rule.d.ts +1 -0
  90. package/dist/utils/is-core-rule.mjs +7 -0
  91. package/dist/utils/reorder-for-readable-classes.cjs +62 -0
  92. package/dist/{functions → utils}/reorder-for-readable-classes.d.ts +2 -6
  93. package/dist/utils/reorder-for-readable-classes.mjs +60 -0
  94. package/package.json +1 -1
  95. package/dist/bin/index.bundle.js +0 -36
  96. package/dist/config/media-queries.d.ts +0 -1
  97. package/dist/constants/base-unit-regex.d.ts +0 -1
  98. package/dist/constants/config-esm-text.d.ts +0 -1
  99. package/dist/constants/config-text.d.ts +0 -1
  100. package/dist/constants/config-ts-text.d.ts +0 -1
  101. package/dist/constants/start-symbol.d.ts +0 -6
  102. package/dist/functions/transform-color-with-opacity.d.ts +0 -1
  103. package/dist/index.bundle.js +0 -35
  104. package/dist/index.bundle.mjs +0 -35
  105. package/dist/utils/concat-arrays.d.ts +0 -1
  106. package/dist/utils/get-type.d.ts +0 -7
  107. package/dist/utils/is-plain-object.d.ts +0 -8
  108. package/dist/utils/is-symbol.d.ts +0 -7
  109. package/dist/utils/rgb-to-hex.d.ts +0 -1
@@ -0,0 +1,2298 @@
1
+ import cssEscape from '../shared/utils/css-escape.mjs';
2
+ import Layer from '../layer.mjs';
3
+ import { VALUE_DELIMITERS, NUMBER_VALUE_REGEX, COLOR_VALUE_REGEX, IMAGE_VALUE_REGEX } from '../common.mjs';
4
+
5
+ // values
6
+ const BORDER_STYLE_VALUES = [
7
+ 'none',
8
+ 'auto',
9
+ 'hidden',
10
+ 'dotted',
11
+ 'dashed',
12
+ 'solid',
13
+ 'double',
14
+ 'groove',
15
+ 'ridge',
16
+ 'inset',
17
+ 'outset'
18
+ ];
19
+ const autofillSolidToValueComponent = function(valueComponents) {
20
+ if (valueComponents.length < 2) return valueComponents;
21
+ const styleValueComponent = valueComponents.find((valueComponent)=>{
22
+ return valueComponent.type === 'string' && BORDER_STYLE_VALUES.includes(valueComponent.value) || valueComponent.type === 'variable' && BORDER_STYLE_VALUES.includes(String(valueComponent.variable?.value));
23
+ });
24
+ if (!styleValueComponent) {
25
+ valueComponents.push({
26
+ type: 'separator',
27
+ value: ' ',
28
+ token: '|'
29
+ }, {
30
+ type: 'string',
31
+ value: 'solid',
32
+ token: 'solid'
33
+ });
34
+ }
35
+ return valueComponents;
36
+ };
37
+ const rules = {
38
+ group: {
39
+ matcher: /^(?:.+?[*_>~+])?\{.+?\}/,
40
+ layer: Layer.Shorthand,
41
+ analyze (className) {
42
+ let i = 0;
43
+ for(; i < className.length; i++){
44
+ if (className[i] === '{' && className[i - 1] !== '\\') {
45
+ break;
46
+ }
47
+ }
48
+ return [
49
+ className.slice(i),
50
+ className.slice(0, i)
51
+ ];
52
+ },
53
+ declare (value) {
54
+ const declarations = {};
55
+ const addProp = (propertyName)=>{
56
+ const indexOfColon = propertyName.indexOf(':');
57
+ if (indexOfColon !== -1) {
58
+ const propName = propertyName.slice(0, indexOfColon);
59
+ declarations[propName] = propertyName.slice(indexOfColon + 1);
60
+ }
61
+ };
62
+ const handleRule = (rule)=>{
63
+ const addProps = (cssText)=>{
64
+ const cssProperties = cssText.slice(cssEscape(rule.className).length).match(/\{(.*)\}/)?.[1].split(';');
65
+ if (cssProperties) for (const eachCssProperty of cssProperties){
66
+ addProp(eachCssProperty);
67
+ }
68
+ };
69
+ for (const eachNative of rule.natives){
70
+ addProps(eachNative.text);
71
+ }
72
+ // animation
73
+ if (rule.animationNames) {
74
+ if (!this.animationNames) {
75
+ this.animationNames = [];
76
+ }
77
+ for (const eachKeyframeName of rule.animationNames){
78
+ if (!this.animationNames.includes(eachKeyframeName)) {
79
+ this.animationNames.push(eachKeyframeName);
80
+ }
81
+ }
82
+ }
83
+ // variable
84
+ if (rule.variableNames) {
85
+ if (!this.variableNames) {
86
+ this.variableNames = [];
87
+ }
88
+ for (const eachVariableName of rule.variableNames){
89
+ if (!this.variableNames.includes(eachVariableName)) {
90
+ this.variableNames.push(eachVariableName);
91
+ }
92
+ }
93
+ }
94
+ };
95
+ const names = [];
96
+ let currentName = '';
97
+ const addName = ()=>{
98
+ if (currentName) {
99
+ names.push(currentName.replace(/ /g, '|'));
100
+ currentName = '';
101
+ }
102
+ };
103
+ let i = 1;
104
+ (function analyze(end) {
105
+ for(; i < value.length; i++){
106
+ const char = value[i];
107
+ if (!end) {
108
+ if (char === ';') {
109
+ addName();
110
+ continue;
111
+ }
112
+ if (char === '}') {
113
+ break;
114
+ }
115
+ }
116
+ currentName += char;
117
+ if (end === char) {
118
+ if (end === '\'' || end === '"') {
119
+ let count = 0;
120
+ for(let j = currentName.length - 2;; j--){
121
+ if (currentName[j] !== '\\') {
122
+ break;
123
+ }
124
+ count++;
125
+ }
126
+ if (count % 2) {
127
+ continue;
128
+ }
129
+ }
130
+ break;
131
+ } else if (char in VALUE_DELIMITERS && end !== '\'' && end !== '"') {
132
+ i++;
133
+ analyze(VALUE_DELIMITERS[char]);
134
+ }
135
+ }
136
+ })('');
137
+ addName();
138
+ for (const eachName of names){
139
+ const rules = this.css.generate(eachName);
140
+ if (rules.length) {
141
+ for (const eachRule of rules){
142
+ handleRule(eachRule);
143
+ }
144
+ } else {
145
+ addProp(eachName);
146
+ }
147
+ }
148
+ return declarations;
149
+ }
150
+ },
151
+ variable: {
152
+ matcher: /^\$[\w-]+:/,
153
+ layer: Layer.Normal,
154
+ declare (value) {
155
+ return {
156
+ ['--' + this.keyToken.slice(1, -1)]: value
157
+ };
158
+ }
159
+ },
160
+ 'font-size': {
161
+ ambiguousKeys: [
162
+ 'font',
163
+ 'f'
164
+ ],
165
+ ambiguousValues: [
166
+ NUMBER_VALUE_REGEX
167
+ ],
168
+ unit: 'rem',
169
+ layer: Layer.Native
170
+ },
171
+ 'font-weight': {
172
+ ambiguousKeys: [
173
+ 'font',
174
+ 'f'
175
+ ],
176
+ ambiguousValues: [
177
+ 'bolder'
178
+ ],
179
+ layer: Layer.Native
180
+ },
181
+ 'font-family': {
182
+ ambiguousKeys: [
183
+ 'font',
184
+ 'f'
185
+ ],
186
+ layer: Layer.Native
187
+ },
188
+ 'font-smoothing': {
189
+ ambiguousKeys: [
190
+ 'font',
191
+ 'f'
192
+ ],
193
+ ambiguousValues: [
194
+ 'antialiased',
195
+ 'subpixel-antialiased'
196
+ ],
197
+ layer: Layer.Native,
198
+ declare (value) {
199
+ switch(value){
200
+ case 'subpixel-antialiased':
201
+ return {
202
+ '-webkit-font-smoothing': 'auto',
203
+ '-moz-osx-font-smoothing': 'auto'
204
+ };
205
+ case 'antialiased':
206
+ return {
207
+ '-webkit-font-smoothing': 'antialiased',
208
+ '-moz-osx-font-smoothing': 'grayscale'
209
+ };
210
+ }
211
+ }
212
+ },
213
+ 'font-style': {
214
+ ambiguousKeys: [
215
+ 'font',
216
+ 'f'
217
+ ],
218
+ ambiguousValues: [
219
+ 'normal',
220
+ 'italic',
221
+ 'oblique'
222
+ ],
223
+ layer: Layer.Native,
224
+ unit: 'deg'
225
+ },
226
+ 'font-variant-numeric': {
227
+ ambiguousKeys: [
228
+ 'font',
229
+ 'f'
230
+ ],
231
+ ambiguousValues: [
232
+ 'ordinal',
233
+ 'slashed-zero',
234
+ 'lining-nums',
235
+ 'oldstyle-nums',
236
+ 'proportional-nums',
237
+ 'tabular-nums',
238
+ 'diagonal-fractions',
239
+ 'stacked-fractions'
240
+ ],
241
+ layer: Layer.Native
242
+ },
243
+ 'font-variant': {
244
+ ambiguousKeys: [
245
+ 'font',
246
+ 'f'
247
+ ],
248
+ layer: Layer.NativeShorthand
249
+ },
250
+ font: {
251
+ subkey: 'f',
252
+ layer: Layer.NativeShorthand,
253
+ variables: [
254
+ 'font-family',
255
+ 'font-variant',
256
+ 'font-weight',
257
+ 'font-size',
258
+ 'font-style',
259
+ 'line-height'
260
+ ]
261
+ },
262
+ 'font-feature-settings': {
263
+ key: 'font-feature',
264
+ layer: Layer.Native
265
+ },
266
+ color: {
267
+ key: 'fg',
268
+ layer: Layer.Native,
269
+ variables: [
270
+ 'text'
271
+ ]
272
+ },
273
+ // margin
274
+ 'margin-left': {
275
+ key: 'ml',
276
+ layer: Layer.Native,
277
+ unit: 'rem',
278
+ variables: [
279
+ 'spacing'
280
+ ]
281
+ },
282
+ 'margin-right': {
283
+ key: 'mr',
284
+ layer: Layer.Native,
285
+ unit: 'rem',
286
+ variables: [
287
+ 'spacing'
288
+ ]
289
+ },
290
+ 'margin-top': {
291
+ key: 'mt',
292
+ layer: Layer.Native,
293
+ unit: 'rem',
294
+ variables: [
295
+ 'spacing'
296
+ ]
297
+ },
298
+ 'margin-bottom': {
299
+ key: 'mb',
300
+ layer: Layer.Native,
301
+ unit: 'rem',
302
+ variables: [
303
+ 'spacing'
304
+ ]
305
+ },
306
+ 'margin-x': {
307
+ key: 'mx',
308
+ subkey: 'margin-x',
309
+ unit: 'rem',
310
+ layer: Layer.Shorthand,
311
+ declare (value) {
312
+ return {
313
+ 'margin-left': value,
314
+ 'margin-right': value
315
+ };
316
+ },
317
+ variables: [
318
+ 'spacing'
319
+ ]
320
+ },
321
+ 'margin-y': {
322
+ key: 'my',
323
+ unit: 'rem',
324
+ layer: Layer.Shorthand,
325
+ declare (value) {
326
+ return {
327
+ 'margin-top': value,
328
+ 'margin-bottom': value
329
+ };
330
+ },
331
+ variables: [
332
+ 'spacing'
333
+ ]
334
+ },
335
+ margin: {
336
+ key: 'm',
337
+ unit: 'rem',
338
+ layer: Layer.NativeShorthand,
339
+ variables: [
340
+ 'spacing'
341
+ ]
342
+ },
343
+ // margin inline
344
+ 'margin-inline-start': {
345
+ key: 'mis',
346
+ layer: Layer.Native,
347
+ unit: 'rem',
348
+ variables: [
349
+ 'spacing'
350
+ ]
351
+ },
352
+ 'margin-inline-end': {
353
+ key: 'mie',
354
+ layer: Layer.Native,
355
+ unit: 'rem',
356
+ variables: [
357
+ 'spacing'
358
+ ]
359
+ },
360
+ 'margin-inline': {
361
+ key: 'mi',
362
+ unit: 'rem',
363
+ layer: Layer.NativeShorthand,
364
+ variables: [
365
+ 'spacing'
366
+ ]
367
+ },
368
+ // padding
369
+ 'padding-left': {
370
+ key: 'pl',
371
+ layer: Layer.Native,
372
+ unit: 'rem',
373
+ variables: [
374
+ 'spacing'
375
+ ]
376
+ },
377
+ 'padding-right': {
378
+ key: 'pr',
379
+ layer: Layer.Native,
380
+ unit: 'rem',
381
+ variables: [
382
+ 'spacing'
383
+ ]
384
+ },
385
+ 'padding-top': {
386
+ key: 'pt',
387
+ layer: Layer.Native,
388
+ unit: 'rem',
389
+ variables: [
390
+ 'spacing'
391
+ ]
392
+ },
393
+ 'padding-bottom': {
394
+ key: 'pb',
395
+ layer: Layer.Native,
396
+ unit: 'rem',
397
+ variables: [
398
+ 'spacing'
399
+ ]
400
+ },
401
+ 'padding-x': {
402
+ key: 'px',
403
+ unit: 'rem',
404
+ layer: Layer.Shorthand,
405
+ declare (value) {
406
+ return {
407
+ 'padding-left': value,
408
+ 'padding-right': value
409
+ };
410
+ },
411
+ variables: [
412
+ 'spacing'
413
+ ]
414
+ },
415
+ 'padding-y': {
416
+ key: 'py',
417
+ unit: 'rem',
418
+ layer: Layer.Shorthand,
419
+ declare (value) {
420
+ return {
421
+ 'padding-top': value,
422
+ 'padding-bottom': value
423
+ };
424
+ },
425
+ variables: [
426
+ 'spacing'
427
+ ]
428
+ },
429
+ padding: {
430
+ key: 'p',
431
+ unit: 'rem',
432
+ layer: Layer.NativeShorthand,
433
+ variables: [
434
+ 'spacing'
435
+ ]
436
+ },
437
+ // padding inline
438
+ 'padding-inline-start': {
439
+ key: 'pis',
440
+ layer: Layer.Native,
441
+ unit: 'rem',
442
+ variables: [
443
+ 'spacing'
444
+ ]
445
+ },
446
+ 'padding-inline-end': {
447
+ key: 'pie',
448
+ layer: Layer.Native,
449
+ unit: 'rem',
450
+ variables: [
451
+ 'spacing'
452
+ ]
453
+ },
454
+ 'padding-inline': {
455
+ key: 'pi',
456
+ unit: 'rem',
457
+ layer: Layer.NativeShorthand,
458
+ variables: [
459
+ 'spacing'
460
+ ]
461
+ },
462
+ // flex
463
+ 'flex-basis': {
464
+ ambiguousKeys: [
465
+ 'flex'
466
+ ],
467
+ unit: 'rem',
468
+ layer: Layer.Native
469
+ },
470
+ 'flex-wrap': {
471
+ ambiguousKeys: [
472
+ 'flex'
473
+ ],
474
+ ambiguousValues: [
475
+ 'wrap',
476
+ 'nowrap',
477
+ 'wrap-reverse'
478
+ ],
479
+ layer: Layer.Native
480
+ },
481
+ 'flex-grow': {
482
+ ambiguousKeys: [
483
+ 'flex'
484
+ ],
485
+ layer: Layer.Native
486
+ },
487
+ 'flex-shrink': {
488
+ ambiguousKeys: [
489
+ 'flex'
490
+ ],
491
+ layer: Layer.Native
492
+ },
493
+ 'flex-direction': {
494
+ ambiguousKeys: [
495
+ 'flex'
496
+ ],
497
+ ambiguousValues: [
498
+ 'row',
499
+ 'row-reverse',
500
+ 'column',
501
+ 'column-reverse'
502
+ ],
503
+ layer: Layer.Native
504
+ },
505
+ flex: {
506
+ layer: Layer.NativeShorthand
507
+ },
508
+ display: {
509
+ key: 'd',
510
+ layer: Layer.Native
511
+ },
512
+ width: {
513
+ key: 'w',
514
+ unit: 'rem',
515
+ layer: Layer.Native
516
+ },
517
+ height: {
518
+ key: 'h',
519
+ unit: 'rem',
520
+ layer: Layer.Native
521
+ },
522
+ 'min-width': {
523
+ key: 'min-w',
524
+ unit: 'rem',
525
+ layer: Layer.Native
526
+ },
527
+ 'min-height': {
528
+ key: 'min-h',
529
+ unit: 'rem',
530
+ layer: Layer.Native
531
+ },
532
+ size: {
533
+ layer: Layer.Shorthand,
534
+ unit: 'rem',
535
+ declare (_value, valueComponents) {
536
+ const length = valueComponents.length;
537
+ return {
538
+ width: length === 1 ? valueComponents[0].text : valueComponents[0].text,
539
+ height: length === 1 ? valueComponents[0].text : valueComponents[2].text
540
+ };
541
+ }
542
+ },
543
+ 'min-size': {
544
+ key: 'min',
545
+ layer: Layer.Shorthand,
546
+ unit: 'rem',
547
+ declare (_value, valueComponents) {
548
+ const length = valueComponents.length;
549
+ return {
550
+ 'min-width': length === 1 ? valueComponents[0].text : valueComponents[0].text,
551
+ 'min-height': length === 1 ? valueComponents[0].text : valueComponents[2].text
552
+ };
553
+ }
554
+ },
555
+ 'max-size': {
556
+ key: 'max',
557
+ layer: Layer.Shorthand,
558
+ unit: 'rem',
559
+ declare (_value, valueComponents) {
560
+ const length = valueComponents.length;
561
+ return {
562
+ 'max-width': length === 1 ? valueComponents[0].text : valueComponents[0].text,
563
+ 'max-height': length === 1 ? valueComponents[0].text : valueComponents[2].text
564
+ };
565
+ }
566
+ },
567
+ 'box-sizing': {
568
+ ambiguousKeys: [
569
+ 'box'
570
+ ],
571
+ layer: Layer.Native
572
+ },
573
+ 'box-decoration-break': {
574
+ key: 'box-decoration',
575
+ layer: Layer.Native,
576
+ declare (value) {
577
+ return {
578
+ '-webkit-box-decoration-break': value,
579
+ 'box-decoration-break': value
580
+ };
581
+ }
582
+ },
583
+ contain: {
584
+ layer: Layer.Native
585
+ },
586
+ content: {
587
+ layer: Layer.Native
588
+ },
589
+ 'counter-increment': {
590
+ layer: Layer.Native
591
+ },
592
+ 'counter-reset': {
593
+ layer: Layer.Native
594
+ },
595
+ 'letter-spacing': {
596
+ key: 'tracking',
597
+ subkey: 'ls',
598
+ layer: Layer.Native,
599
+ unit: 'em'
600
+ },
601
+ 'line-height': {
602
+ key: 'leading',
603
+ subkey: 'line-h',
604
+ layer: Layer.Native
605
+ },
606
+ 'object-fit': {
607
+ ambiguousKeys: [
608
+ 'object',
609
+ 'obj'
610
+ ],
611
+ ambiguousValues: [
612
+ 'contain',
613
+ 'cover',
614
+ 'fill',
615
+ 'scale-down'
616
+ ],
617
+ layer: Layer.Native
618
+ },
619
+ 'object-position': {
620
+ ambiguousKeys: [
621
+ 'object',
622
+ 'obj'
623
+ ],
624
+ ambiguousValues: [
625
+ 'top',
626
+ 'bottom',
627
+ 'right',
628
+ 'left',
629
+ 'center'
630
+ ],
631
+ layer: Layer.Native
632
+ },
633
+ 'text-align': {
634
+ ambiguousKeys: [
635
+ 'text',
636
+ 't'
637
+ ],
638
+ ambiguousValues: [
639
+ 'justify',
640
+ 'center',
641
+ 'left',
642
+ 'right',
643
+ 'start',
644
+ 'end'
645
+ ],
646
+ layer: Layer.Native
647
+ },
648
+ 'text-decoration-color': {
649
+ ambiguousKeys: [
650
+ 'text-decoration'
651
+ ],
652
+ ambiguousValues: [
653
+ COLOR_VALUE_REGEX
654
+ ],
655
+ layer: Layer.Native,
656
+ variables: [
657
+ 'text'
658
+ ]
659
+ },
660
+ 'text-decoration-style': {
661
+ ambiguousKeys: [
662
+ 'text-decoration'
663
+ ],
664
+ ambiguousValues: [
665
+ 'solid',
666
+ 'double',
667
+ 'dotted',
668
+ 'dashed',
669
+ 'wavy'
670
+ ],
671
+ layer: Layer.Native
672
+ },
673
+ 'text-decoration-thickness': {
674
+ ambiguousKeys: [
675
+ 'text-decoration'
676
+ ],
677
+ ambiguousValues: [
678
+ 'from-font',
679
+ NUMBER_VALUE_REGEX
680
+ ],
681
+ layer: Layer.Native,
682
+ unit: 'em'
683
+ },
684
+ 'text-decoration-line': {
685
+ ambiguousKeys: [
686
+ 'text-decoration'
687
+ ],
688
+ ambiguousValues: [
689
+ 'underline',
690
+ 'overline',
691
+ 'line-through'
692
+ ],
693
+ layer: Layer.Native
694
+ },
695
+ 'text-decoration': {
696
+ ambiguousKeys: [
697
+ 'text',
698
+ 't'
699
+ ],
700
+ ambiguousValues: [
701
+ 'underline',
702
+ 'overline',
703
+ 'line-through'
704
+ ],
705
+ unit: 'rem',
706
+ layer: Layer.NativeShorthand,
707
+ variables: [
708
+ 'text'
709
+ ],
710
+ declare (value) {
711
+ return {
712
+ '-webkit-text-decoration': value,
713
+ 'text-decoration': value
714
+ };
715
+ }
716
+ },
717
+ 'text-underline-offset': {
718
+ ambiguousKeys: [
719
+ 'text-underline'
720
+ ],
721
+ unit: 'rem',
722
+ layer: Layer.Native,
723
+ variables: [
724
+ 'spacing'
725
+ ]
726
+ },
727
+ 'text-underline-position': {
728
+ ambiguousKeys: [
729
+ 'text-underline'
730
+ ],
731
+ ambiguousValues: [
732
+ 'front-font',
733
+ 'under',
734
+ 'left',
735
+ 'right'
736
+ ],
737
+ layer: Layer.Native
738
+ },
739
+ 'text-overflow': {
740
+ ambiguousKeys: [
741
+ 'text',
742
+ 't'
743
+ ],
744
+ ambiguousValues: [
745
+ 'ellipsis',
746
+ 'clip'
747
+ ],
748
+ layer: Layer.Native
749
+ },
750
+ 'text-orientation': {
751
+ ambiguousKeys: [
752
+ 'text',
753
+ 't'
754
+ ],
755
+ ambiguousValues: [
756
+ 'mixed',
757
+ 'upright',
758
+ 'sideways-right',
759
+ 'sideways',
760
+ 'use-glyph-orientation'
761
+ ],
762
+ layer: Layer.Native
763
+ },
764
+ 'text-transform': {
765
+ ambiguousKeys: [
766
+ 'text',
767
+ 't'
768
+ ],
769
+ ambiguousValues: [
770
+ 'uppercase',
771
+ 'lowercase',
772
+ 'capitalize'
773
+ ],
774
+ layer: Layer.Native
775
+ },
776
+ 'text-rendering': {
777
+ ambiguousKeys: [
778
+ 'text',
779
+ 't'
780
+ ],
781
+ ambiguousValues: [
782
+ 'optimizeSpeed',
783
+ 'optimizeLegibility',
784
+ 'geometricPrecision'
785
+ ],
786
+ layer: Layer.Native
787
+ },
788
+ 'text-indent': {
789
+ unit: 'rem',
790
+ layer: Layer.Native
791
+ },
792
+ 'vertical-align': {
793
+ key: 'v',
794
+ subkey: 'vertical',
795
+ layer: Layer.Native
796
+ },
797
+ columns: {
798
+ key: 'cols',
799
+ layer: Layer.NativeShorthand
800
+ },
801
+ 'white-space': {
802
+ layer: Layer.Native
803
+ },
804
+ top: {
805
+ layer: Layer.Native,
806
+ unit: 'rem',
807
+ variables: [
808
+ 'spacing'
809
+ ]
810
+ },
811
+ bottom: {
812
+ layer: Layer.Native,
813
+ unit: 'rem',
814
+ variables: [
815
+ 'spacing'
816
+ ]
817
+ },
818
+ left: {
819
+ layer: Layer.Native,
820
+ unit: 'rem',
821
+ variables: [
822
+ 'spacing'
823
+ ]
824
+ },
825
+ right: {
826
+ layer: Layer.Native,
827
+ unit: 'rem',
828
+ variables: [
829
+ 'spacing'
830
+ ]
831
+ },
832
+ inset: {
833
+ unit: 'rem',
834
+ layer: Layer.NativeShorthand,
835
+ variables: [
836
+ 'spacing'
837
+ ]
838
+ },
839
+ 'max-height': {
840
+ key: 'max-h',
841
+ unit: 'rem',
842
+ layer: Layer.Native
843
+ },
844
+ 'max-width': {
845
+ key: 'max-w',
846
+ unit: 'rem',
847
+ layer: Layer.Native
848
+ },
849
+ opacity: {
850
+ layer: Layer.Native
851
+ },
852
+ visibility: {
853
+ layer: Layer.Native
854
+ },
855
+ clear: {
856
+ layer: Layer.Native
857
+ },
858
+ float: {
859
+ layer: Layer.Native
860
+ },
861
+ isolation: {
862
+ layer: Layer.Native
863
+ },
864
+ 'overflow-x': {
865
+ layer: Layer.Native,
866
+ declare (value) {
867
+ return value === 'overlay' ? {
868
+ 'overflow-x': [
869
+ 'auto',
870
+ value
871
+ ]
872
+ } : {
873
+ 'overflow-x': value
874
+ };
875
+ }
876
+ },
877
+ 'overflow-y': {
878
+ layer: Layer.Native,
879
+ declare (value) {
880
+ return value === 'overlay' ? {
881
+ 'overflow-y': [
882
+ 'auto',
883
+ value
884
+ ]
885
+ } : {
886
+ 'overflow-y': value
887
+ };
888
+ }
889
+ },
890
+ overflow: {
891
+ layer: Layer.NativeShorthand,
892
+ declare (value) {
893
+ return value === 'overlay' ? {
894
+ overflow: [
895
+ 'auto',
896
+ value
897
+ ]
898
+ } : {
899
+ overflow: value
900
+ };
901
+ }
902
+ },
903
+ 'overscroll-behavior-x': {
904
+ layer: Layer.Native
905
+ },
906
+ 'overscroll-behavior-y': {
907
+ layer: Layer.Native
908
+ },
909
+ 'overscroll-behavior': {
910
+ layer: Layer.NativeShorthand
911
+ },
912
+ 'z-index': {
913
+ key: 'z',
914
+ layer: Layer.Native
915
+ },
916
+ position: {
917
+ layer: Layer.Native
918
+ },
919
+ cursor: {
920
+ layer: Layer.Native
921
+ },
922
+ 'pointer-events': {
923
+ layer: Layer.Native
924
+ },
925
+ resize: {
926
+ layer: Layer.Native
927
+ },
928
+ 'touch-action': {
929
+ layer: Layer.Native
930
+ },
931
+ 'word-break': {
932
+ layer: Layer.Native
933
+ },
934
+ 'word-spacing': {
935
+ layer: Layer.Native,
936
+ unit: 'em'
937
+ },
938
+ 'user-drag': {
939
+ layer: Layer.Native,
940
+ declare (value) {
941
+ return {
942
+ '-webkit-user-drag': value,
943
+ 'user-drag': value
944
+ };
945
+ }
946
+ },
947
+ 'user-select': {
948
+ layer: Layer.Native,
949
+ declare (value) {
950
+ return {
951
+ '-webkit-user-select': value,
952
+ 'user-select': value
953
+ };
954
+ }
955
+ },
956
+ 'text-shadow': {
957
+ unit: 'rem',
958
+ layer: Layer.Native
959
+ },
960
+ 'text-size': {
961
+ ambiguousKeys: [
962
+ 'text',
963
+ 't'
964
+ ],
965
+ ambiguousValues: [
966
+ NUMBER_VALUE_REGEX
967
+ ],
968
+ unit: 'rem',
969
+ declare (value) {
970
+ const diff = .875;
971
+ return {
972
+ 'font-size': value,
973
+ 'line-height': `calc(${value} + ${diff}em)`
974
+ };
975
+ },
976
+ layer: Layer.Shorthand
977
+ },
978
+ 'text-fill-color': {
979
+ ambiguousKeys: [
980
+ 'text',
981
+ 't'
982
+ ],
983
+ ambiguousValues: [
984
+ COLOR_VALUE_REGEX
985
+ ],
986
+ layer: Layer.Native,
987
+ variables: [
988
+ 'text'
989
+ ],
990
+ declare (value) {
991
+ return {
992
+ '-webkit-text-fill-color': value
993
+ };
994
+ }
995
+ },
996
+ 'text-stroke-width': {
997
+ ambiguousKeys: [
998
+ 'text-stroke'
999
+ ],
1000
+ ambiguousValues: [
1001
+ 'thin',
1002
+ 'medium',
1003
+ 'thick',
1004
+ NUMBER_VALUE_REGEX
1005
+ ],
1006
+ unit: 'rem',
1007
+ layer: Layer.Native,
1008
+ declare (value) {
1009
+ return {
1010
+ '-webkit-text-stroke-width': value
1011
+ };
1012
+ }
1013
+ },
1014
+ 'text-stroke-color': {
1015
+ ambiguousKeys: [
1016
+ 'text-stroke'
1017
+ ],
1018
+ ambiguousValues: [
1019
+ COLOR_VALUE_REGEX
1020
+ ],
1021
+ layer: Layer.Native,
1022
+ variables: [
1023
+ 'text'
1024
+ ],
1025
+ declare (value) {
1026
+ return {
1027
+ '-webkit-text-stroke-color': value
1028
+ };
1029
+ }
1030
+ },
1031
+ 'text-stroke': {
1032
+ unit: 'rem',
1033
+ layer: Layer.Native,
1034
+ declare (value) {
1035
+ return {
1036
+ '-webkit-text-stroke': value
1037
+ };
1038
+ }
1039
+ },
1040
+ 'text-truncate': {
1041
+ subkey: 'lines',
1042
+ declare (value) {
1043
+ return {
1044
+ display: '-webkit-box',
1045
+ '-webkit-box-orient': 'vertical',
1046
+ '-webkit-line-clamp': value,
1047
+ overflow: 'hidden',
1048
+ 'overflow-wrap': 'break-word',
1049
+ 'text-overflow': 'ellipsis'
1050
+ };
1051
+ },
1052
+ layer: Layer.Shorthand
1053
+ },
1054
+ 'box-shadow': {
1055
+ key: 'shadow',
1056
+ subkey: 's',
1057
+ unit: 'rem',
1058
+ layer: Layer.Native
1059
+ },
1060
+ 'table-layout': {
1061
+ layer: Layer.Native
1062
+ },
1063
+ 'transform-box': {
1064
+ ambiguousKeys: [
1065
+ 'transform'
1066
+ ],
1067
+ layer: Layer.Native
1068
+ },
1069
+ 'transform-style': {
1070
+ ambiguousKeys: [
1071
+ 'transform'
1072
+ ],
1073
+ ambiguousValues: [
1074
+ 'flat',
1075
+ 'preserve-3d'
1076
+ ],
1077
+ layer: Layer.Native
1078
+ },
1079
+ 'transform-origin': {
1080
+ ambiguousKeys: [
1081
+ 'transform'
1082
+ ],
1083
+ ambiguousValues: [
1084
+ 'top',
1085
+ 'bottom',
1086
+ 'right',
1087
+ 'left',
1088
+ 'center',
1089
+ NUMBER_VALUE_REGEX
1090
+ ],
1091
+ unit: 'px',
1092
+ layer: Layer.Native
1093
+ },
1094
+ transform: {
1095
+ matcher: /^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,
1096
+ layer: Layer.Native,
1097
+ analyze (className) {
1098
+ return [
1099
+ className.startsWith('transform') ? className.slice(10) : className
1100
+ ];
1101
+ },
1102
+ variables: [
1103
+ 'spacing'
1104
+ ]
1105
+ },
1106
+ 'transition-property': {
1107
+ key: '~property',
1108
+ layer: Layer.Native
1109
+ },
1110
+ 'transition-timing-function': {
1111
+ key: '~easing',
1112
+ layer: Layer.Native
1113
+ },
1114
+ 'transition-duration': {
1115
+ key: '~duration',
1116
+ layer: Layer.Native,
1117
+ unit: 'ms'
1118
+ },
1119
+ 'transition-delay': {
1120
+ key: '~delay',
1121
+ layer: Layer.Native,
1122
+ unit: 'ms'
1123
+ },
1124
+ transition: {
1125
+ sign: '~',
1126
+ analyze (className) {
1127
+ if (className.startsWith('~')) {
1128
+ return [
1129
+ className.slice(1)
1130
+ ];
1131
+ } else {
1132
+ const indexOfColon = className.indexOf(':');
1133
+ this.keyToken = className.slice(0, indexOfColon + 1);
1134
+ return [
1135
+ className.slice(indexOfColon + 1)
1136
+ ];
1137
+ }
1138
+ },
1139
+ layer: Layer.NativeShorthand
1140
+ },
1141
+ 'animation-delay': {
1142
+ key: '@delay',
1143
+ layer: Layer.Native,
1144
+ unit: 'ms'
1145
+ },
1146
+ 'animation-direction': {
1147
+ key: '@direction',
1148
+ layer: Layer.Native
1149
+ },
1150
+ 'animation-duration': {
1151
+ key: '@duration',
1152
+ layer: Layer.Native,
1153
+ unit: 'ms'
1154
+ },
1155
+ 'animation-fill-mode': {
1156
+ key: '@fill',
1157
+ layer: Layer.Native
1158
+ },
1159
+ 'animation-iteration-count': {
1160
+ key: '@iteration',
1161
+ layer: Layer.Native
1162
+ },
1163
+ 'animation-name': {
1164
+ key: '@name',
1165
+ layer: Layer.Native,
1166
+ includeAnimations: true
1167
+ },
1168
+ 'animation-play-state': {
1169
+ key: '@play',
1170
+ layer: Layer.Native
1171
+ },
1172
+ 'animation-timing-function': {
1173
+ key: '@easing',
1174
+ layer: Layer.Native
1175
+ },
1176
+ animation: {
1177
+ sign: '@',
1178
+ layer: Layer.NativeShorthand,
1179
+ includeAnimations: true,
1180
+ analyze (className) {
1181
+ if (className.startsWith('@')) {
1182
+ return [
1183
+ className.slice(1)
1184
+ ];
1185
+ } else {
1186
+ const indexOfColon = className.indexOf(':');
1187
+ this.keyToken = className.slice(0, indexOfColon + 1);
1188
+ return [
1189
+ className.slice(indexOfColon + 1)
1190
+ ];
1191
+ }
1192
+ }
1193
+ },
1194
+ 'border-collapse': {
1195
+ ambiguousKeys: [
1196
+ 'b',
1197
+ 'border'
1198
+ ],
1199
+ ambiguousValues: [
1200
+ 'collapse',
1201
+ 'separate'
1202
+ ],
1203
+ layer: Layer.Native
1204
+ },
1205
+ 'border-spacing': {
1206
+ unit: 'rem',
1207
+ layer: Layer.Native,
1208
+ variables: [
1209
+ 'spacing'
1210
+ ]
1211
+ },
1212
+ // border color
1213
+ 'border-top-color': {
1214
+ ambiguousKeys: [
1215
+ 'bt',
1216
+ 'border-top'
1217
+ ],
1218
+ ambiguousValues: [
1219
+ COLOR_VALUE_REGEX
1220
+ ],
1221
+ layer: Layer.Native
1222
+ },
1223
+ 'border-bottom-color': {
1224
+ ambiguousKeys: [
1225
+ 'bb',
1226
+ 'border-bottom'
1227
+ ],
1228
+ ambiguousValues: [
1229
+ COLOR_VALUE_REGEX
1230
+ ],
1231
+ layer: Layer.Native
1232
+ },
1233
+ 'border-left-color': {
1234
+ ambiguousKeys: [
1235
+ 'bl',
1236
+ 'border-left'
1237
+ ],
1238
+ ambiguousValues: [
1239
+ COLOR_VALUE_REGEX
1240
+ ],
1241
+ layer: Layer.Native
1242
+ },
1243
+ 'border-right-color': {
1244
+ ambiguousKeys: [
1245
+ 'br',
1246
+ 'border-right'
1247
+ ],
1248
+ ambiguousValues: [
1249
+ COLOR_VALUE_REGEX
1250
+ ],
1251
+ layer: Layer.Native
1252
+ },
1253
+ 'border-x-color': {
1254
+ ambiguousKeys: [
1255
+ 'bx',
1256
+ 'border-x'
1257
+ ],
1258
+ ambiguousValues: [
1259
+ COLOR_VALUE_REGEX
1260
+ ],
1261
+ layer: Layer.Shorthand,
1262
+ declare (value) {
1263
+ return {
1264
+ 'border-left-color': value,
1265
+ 'border-right-color': value
1266
+ };
1267
+ }
1268
+ },
1269
+ 'border-y-color': {
1270
+ ambiguousKeys: [
1271
+ 'by',
1272
+ 'border-y'
1273
+ ],
1274
+ ambiguousValues: [
1275
+ COLOR_VALUE_REGEX
1276
+ ],
1277
+ layer: Layer.Shorthand,
1278
+ declare (value) {
1279
+ return {
1280
+ 'border-top-color': value,
1281
+ 'border-bottom-color': value
1282
+ };
1283
+ }
1284
+ },
1285
+ 'border-color': {
1286
+ ambiguousKeys: [
1287
+ 'b',
1288
+ 'border'
1289
+ ],
1290
+ ambiguousValues: [
1291
+ COLOR_VALUE_REGEX
1292
+ ],
1293
+ layer: Layer.NativeShorthand
1294
+ },
1295
+ // border radius
1296
+ 'border-top-left-radius': {
1297
+ key: 'rtl',
1298
+ unit: 'rem',
1299
+ layer: Layer.Native
1300
+ },
1301
+ 'border-top-right-radius': {
1302
+ key: 'rtr',
1303
+ unit: 'rem',
1304
+ layer: Layer.Native
1305
+ },
1306
+ 'border-bottom-left-radius': {
1307
+ key: 'rbl',
1308
+ unit: 'rem',
1309
+ layer: Layer.Native
1310
+ },
1311
+ 'border-bottom-right-radius': {
1312
+ key: 'rbr',
1313
+ unit: 'rem',
1314
+ layer: Layer.Native
1315
+ },
1316
+ 'border-top-radius': {
1317
+ key: 'rt',
1318
+ unit: 'rem',
1319
+ layer: Layer.Shorthand,
1320
+ declare (value) {
1321
+ return {
1322
+ 'border-top-left-radius': value,
1323
+ 'border-top-right-radius': value
1324
+ };
1325
+ }
1326
+ },
1327
+ 'border-bottom-radius': {
1328
+ key: 'rb',
1329
+ unit: 'rem',
1330
+ layer: Layer.Shorthand,
1331
+ declare (value) {
1332
+ return {
1333
+ 'border-bottom-left-radius': value,
1334
+ 'border-bottom-right-radius': value
1335
+ };
1336
+ }
1337
+ },
1338
+ 'border-left-radius': {
1339
+ key: 'rl',
1340
+ unit: 'rem',
1341
+ layer: Layer.Shorthand,
1342
+ declare (value) {
1343
+ return {
1344
+ 'border-top-left-radius': value,
1345
+ 'border-bottom-left-radius': value
1346
+ };
1347
+ }
1348
+ },
1349
+ 'border-right-radius': {
1350
+ key: 'rr',
1351
+ unit: 'rem',
1352
+ layer: Layer.Shorthand,
1353
+ declare (value) {
1354
+ return {
1355
+ 'border-top-right-radius': value,
1356
+ 'border-bottom-right-radius': value
1357
+ };
1358
+ }
1359
+ },
1360
+ 'border-radius': {
1361
+ key: 'r',
1362
+ unit: 'rem',
1363
+ layer: Layer.NativeShorthand
1364
+ },
1365
+ // border style
1366
+ 'border-top-style': {
1367
+ ambiguousKeys: [
1368
+ 'bt',
1369
+ 'border-top'
1370
+ ],
1371
+ ambiguousValues: BORDER_STYLE_VALUES,
1372
+ layer: Layer.Native
1373
+ },
1374
+ 'border-bottom-style': {
1375
+ ambiguousKeys: [
1376
+ 'bb',
1377
+ 'border-bottom'
1378
+ ],
1379
+ ambiguousValues: BORDER_STYLE_VALUES,
1380
+ layer: Layer.Native
1381
+ },
1382
+ 'border-left-style': {
1383
+ ambiguousKeys: [
1384
+ 'bl',
1385
+ 'border-left'
1386
+ ],
1387
+ ambiguousValues: BORDER_STYLE_VALUES,
1388
+ layer: Layer.Native
1389
+ },
1390
+ 'border-right-style': {
1391
+ ambiguousKeys: [
1392
+ 'br',
1393
+ 'border-right'
1394
+ ],
1395
+ ambiguousValues: BORDER_STYLE_VALUES,
1396
+ layer: Layer.Native
1397
+ },
1398
+ 'border-x-style': {
1399
+ ambiguousKeys: [
1400
+ 'bx',
1401
+ 'border-x'
1402
+ ],
1403
+ ambiguousValues: BORDER_STYLE_VALUES,
1404
+ layer: Layer.Shorthand,
1405
+ declare (value) {
1406
+ return {
1407
+ 'border-left-style': value,
1408
+ 'border-right-style': value
1409
+ };
1410
+ }
1411
+ },
1412
+ 'border-y-style': {
1413
+ ambiguousKeys: [
1414
+ 'by',
1415
+ 'border-y'
1416
+ ],
1417
+ ambiguousValues: BORDER_STYLE_VALUES,
1418
+ layer: Layer.Shorthand,
1419
+ declare (value) {
1420
+ return {
1421
+ 'border-top-style': value,
1422
+ 'border-bottom-style': value
1423
+ };
1424
+ }
1425
+ },
1426
+ 'border-style': {
1427
+ ambiguousKeys: [
1428
+ 'b',
1429
+ 'border'
1430
+ ],
1431
+ ambiguousValues: BORDER_STYLE_VALUES,
1432
+ layer: Layer.NativeShorthand
1433
+ },
1434
+ // border width
1435
+ 'border-top-width': {
1436
+ ambiguousKeys: [
1437
+ 'bt',
1438
+ 'border-top'
1439
+ ],
1440
+ ambiguousValues: [
1441
+ NUMBER_VALUE_REGEX
1442
+ ],
1443
+ unit: 'rem',
1444
+ layer: Layer.Native
1445
+ },
1446
+ 'border-bottom-width': {
1447
+ ambiguousKeys: [
1448
+ 'bb',
1449
+ 'border-bottom'
1450
+ ],
1451
+ ambiguousValues: [
1452
+ NUMBER_VALUE_REGEX
1453
+ ],
1454
+ unit: 'rem',
1455
+ layer: Layer.Native
1456
+ },
1457
+ 'border-left-width': {
1458
+ ambiguousKeys: [
1459
+ 'bl',
1460
+ 'border-left'
1461
+ ],
1462
+ ambiguousValues: [
1463
+ NUMBER_VALUE_REGEX
1464
+ ],
1465
+ unit: 'rem',
1466
+ layer: Layer.Native
1467
+ },
1468
+ 'border-right-width': {
1469
+ ambiguousKeys: [
1470
+ 'br',
1471
+ 'border-right'
1472
+ ],
1473
+ ambiguousValues: [
1474
+ NUMBER_VALUE_REGEX
1475
+ ],
1476
+ unit: 'rem',
1477
+ layer: Layer.Native
1478
+ },
1479
+ 'border-x-width': {
1480
+ ambiguousKeys: [
1481
+ 'bx',
1482
+ 'border-x'
1483
+ ],
1484
+ ambiguousValues: [
1485
+ NUMBER_VALUE_REGEX
1486
+ ],
1487
+ unit: 'rem',
1488
+ layer: Layer.Shorthand,
1489
+ declare (value) {
1490
+ return {
1491
+ 'border-left-width': value,
1492
+ 'border-right-width': value
1493
+ };
1494
+ }
1495
+ },
1496
+ 'border-y-width': {
1497
+ ambiguousKeys: [
1498
+ 'by',
1499
+ 'border-y'
1500
+ ],
1501
+ ambiguousValues: [
1502
+ NUMBER_VALUE_REGEX
1503
+ ],
1504
+ unit: 'rem',
1505
+ layer: Layer.Shorthand,
1506
+ declare (value) {
1507
+ return {
1508
+ 'border-top-width': value,
1509
+ 'border-bottom-width': value
1510
+ };
1511
+ }
1512
+ },
1513
+ 'border-width': {
1514
+ ambiguousKeys: [
1515
+ 'b',
1516
+ 'border'
1517
+ ],
1518
+ ambiguousValues: [
1519
+ NUMBER_VALUE_REGEX
1520
+ ],
1521
+ unit: 'rem',
1522
+ layer: Layer.NativeShorthand
1523
+ },
1524
+ // border image
1525
+ 'border-image-repeat': {
1526
+ ambiguousKeys: [
1527
+ 'border-image'
1528
+ ],
1529
+ ambiguousValues: [
1530
+ 'stretch',
1531
+ 'repeat',
1532
+ 'round',
1533
+ 'space'
1534
+ ],
1535
+ layer: Layer.Native
1536
+ },
1537
+ 'border-image-slice': {
1538
+ ambiguousKeys: [
1539
+ 'border-image'
1540
+ ],
1541
+ layer: Layer.Native
1542
+ },
1543
+ 'border-image-source': {
1544
+ ambiguousKeys: [
1545
+ 'border-image'
1546
+ ],
1547
+ ambiguousValues: [
1548
+ IMAGE_VALUE_REGEX
1549
+ ],
1550
+ layer: Layer.Native
1551
+ },
1552
+ 'border-image-width': {
1553
+ ambiguousKeys: [
1554
+ 'border-image'
1555
+ ],
1556
+ ambiguousValues: [
1557
+ 'auto',
1558
+ NUMBER_VALUE_REGEX
1559
+ ],
1560
+ unit: 'rem',
1561
+ layer: Layer.Native
1562
+ },
1563
+ 'border-image-outset': {
1564
+ ambiguousKeys: [
1565
+ 'border-image'
1566
+ ],
1567
+ ambiguousValues: [
1568
+ NUMBER_VALUE_REGEX
1569
+ ],
1570
+ unit: 'rem',
1571
+ layer: Layer.Native
1572
+ },
1573
+ 'border-image': {
1574
+ layer: Layer.NativeShorthand
1575
+ },
1576
+ // border
1577
+ 'border-top': {
1578
+ key: 'bt',
1579
+ layer: Layer.NativeShorthand,
1580
+ unit: 'rem',
1581
+ transformValueComponents: autofillSolidToValueComponent
1582
+ },
1583
+ 'border-bottom': {
1584
+ key: 'bb',
1585
+ layer: Layer.NativeShorthand,
1586
+ unit: 'rem',
1587
+ transformValueComponents: autofillSolidToValueComponent
1588
+ },
1589
+ 'border-left': {
1590
+ key: 'bl',
1591
+ layer: Layer.NativeShorthand,
1592
+ unit: 'rem',
1593
+ transformValueComponents: autofillSolidToValueComponent
1594
+ },
1595
+ 'border-right': {
1596
+ key: 'br',
1597
+ layer: Layer.NativeShorthand,
1598
+ unit: 'rem',
1599
+ transformValueComponents: autofillSolidToValueComponent
1600
+ },
1601
+ 'border-x': {
1602
+ key: 'bx',
1603
+ unit: 'rem',
1604
+ layer: Layer.Shorthand,
1605
+ transformValueComponents: autofillSolidToValueComponent,
1606
+ declare (value) {
1607
+ return {
1608
+ 'border-left': value,
1609
+ 'border-right': value
1610
+ };
1611
+ }
1612
+ },
1613
+ 'border-y': {
1614
+ key: 'by',
1615
+ unit: 'rem',
1616
+ layer: Layer.Shorthand,
1617
+ transformValueComponents: autofillSolidToValueComponent,
1618
+ declare (value) {
1619
+ return {
1620
+ 'border-top': value,
1621
+ 'border-bottom': value
1622
+ };
1623
+ }
1624
+ },
1625
+ border: {
1626
+ key: 'b',
1627
+ unit: 'rem',
1628
+ layer: Layer.NativeShorthand,
1629
+ transformValueComponents: autofillSolidToValueComponent
1630
+ },
1631
+ 'background-attachment': {
1632
+ ambiguousKeys: [
1633
+ 'bg'
1634
+ ],
1635
+ ambiguousValues: [
1636
+ 'fixed',
1637
+ 'local',
1638
+ 'scroll'
1639
+ ],
1640
+ layer: Layer.Native
1641
+ },
1642
+ 'background-blend-mode': {
1643
+ key: 'bg-blend',
1644
+ layer: Layer.Native
1645
+ },
1646
+ 'background-color': {
1647
+ ambiguousKeys: [
1648
+ 'bg'
1649
+ ],
1650
+ ambiguousValues: [
1651
+ COLOR_VALUE_REGEX
1652
+ ],
1653
+ layer: Layer.Native
1654
+ },
1655
+ 'background-clip': {
1656
+ key: 'bg-clip',
1657
+ layer: Layer.Native,
1658
+ declare (value) {
1659
+ return {
1660
+ '-webkit-background-clip': value,
1661
+ 'background-clip': value
1662
+ };
1663
+ }
1664
+ },
1665
+ 'background-origin': {
1666
+ key: 'bg-origin',
1667
+ layer: Layer.Native
1668
+ },
1669
+ 'background-position': {
1670
+ ambiguousKeys: [
1671
+ 'bg'
1672
+ ],
1673
+ ambiguousValues: [
1674
+ 'top',
1675
+ 'bottom',
1676
+ 'right',
1677
+ 'left',
1678
+ 'center'
1679
+ ],
1680
+ layer: Layer.Native,
1681
+ unit: 'px'
1682
+ },
1683
+ 'background-repeat': {
1684
+ ambiguousKeys: [
1685
+ 'bg'
1686
+ ],
1687
+ ambiguousValues: [
1688
+ 'space',
1689
+ 'round',
1690
+ 'repeat',
1691
+ 'no-repeat',
1692
+ 'repeat-x',
1693
+ 'repeat-y'
1694
+ ],
1695
+ layer: Layer.Native
1696
+ },
1697
+ 'background-size': {
1698
+ ambiguousKeys: [
1699
+ 'bg'
1700
+ ],
1701
+ ambiguousValues: [
1702
+ 'auto',
1703
+ 'cover',
1704
+ 'contain',
1705
+ NUMBER_VALUE_REGEX
1706
+ ],
1707
+ unit: 'rem',
1708
+ layer: Layer.Native
1709
+ },
1710
+ 'background-image': {
1711
+ ambiguousKeys: [
1712
+ 'bg'
1713
+ ],
1714
+ ambiguousValues: [
1715
+ IMAGE_VALUE_REGEX
1716
+ ],
1717
+ layer: Layer.Native
1718
+ },
1719
+ background: {
1720
+ key: 'bg',
1721
+ layer: Layer.NativeShorthand
1722
+ },
1723
+ gradient: {
1724
+ matcher: /^gradient\(/,
1725
+ layer: Layer.Shorthand,
1726
+ declare (value) {
1727
+ return {
1728
+ 'background-image': 'linear-' + value
1729
+ };
1730
+ }
1731
+ },
1732
+ 'mix-blend-mode': {
1733
+ key: 'blend',
1734
+ layer: Layer.Native
1735
+ },
1736
+ 'backdrop-filter': {
1737
+ key: 'bd',
1738
+ layer: Layer.Native,
1739
+ declare (value) {
1740
+ return {
1741
+ '-webkit-backdrop-filter': value,
1742
+ 'backdrop-filter': value
1743
+ };
1744
+ }
1745
+ },
1746
+ filter: {
1747
+ matcher: /^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,
1748
+ layer: Layer.Native
1749
+ },
1750
+ fill: {
1751
+ layer: Layer.Native
1752
+ },
1753
+ 'stroke-dasharray': {
1754
+ layer: Layer.Native
1755
+ },
1756
+ 'stroke-dashoffset': {
1757
+ layer: Layer.Native,
1758
+ variables: [
1759
+ 'spacing'
1760
+ ]
1761
+ },
1762
+ 'stroke-width': {
1763
+ ambiguousKeys: [
1764
+ 'stroke'
1765
+ ],
1766
+ ambiguousValues: [
1767
+ NUMBER_VALUE_REGEX
1768
+ ],
1769
+ layer: Layer.Native
1770
+ },
1771
+ stroke: {
1772
+ layer: Layer.Native
1773
+ },
1774
+ x: {
1775
+ layer: Layer.Native,
1776
+ variables: [
1777
+ 'spacing'
1778
+ ]
1779
+ },
1780
+ y: {
1781
+ layer: Layer.Native,
1782
+ variables: [
1783
+ 'spacing'
1784
+ ]
1785
+ },
1786
+ cx: {
1787
+ layer: Layer.Native,
1788
+ variables: [
1789
+ 'spacing'
1790
+ ]
1791
+ },
1792
+ cy: {
1793
+ layer: Layer.Native,
1794
+ variables: [
1795
+ 'spacing'
1796
+ ]
1797
+ },
1798
+ rx: {
1799
+ layer: Layer.Native
1800
+ },
1801
+ ry: {
1802
+ layer: Layer.Native
1803
+ },
1804
+ 'grid-column-start': {
1805
+ key: 'grid-col-start',
1806
+ layer: Layer.Native
1807
+ },
1808
+ 'grid-column-end': {
1809
+ key: 'grid-col-end',
1810
+ layer: Layer.Native
1811
+ },
1812
+ 'grid-column-span': {
1813
+ key: 'grid-col-span',
1814
+ layer: Layer.Shorthand,
1815
+ transformValue (value) {
1816
+ return 'span' + ' ' + value + '/' + 'span' + ' ' + value;
1817
+ },
1818
+ declare (value) {
1819
+ return {
1820
+ 'grid-column': value
1821
+ };
1822
+ }
1823
+ },
1824
+ 'grid-column': {
1825
+ key: 'grid-col',
1826
+ layer: Layer.NativeShorthand
1827
+ },
1828
+ 'grid-columns': {
1829
+ key: 'grid-cols',
1830
+ declare (value) {
1831
+ return {
1832
+ display: 'grid',
1833
+ 'grid-template-columns': 'repeat' + '(' + value + ',' + 'minmax' + '(' + 0 + ',' + 1 + 'fr' + '))'
1834
+ };
1835
+ },
1836
+ layer: Layer.Shorthand
1837
+ },
1838
+ 'grid-row-start': {
1839
+ layer: Layer.Native
1840
+ },
1841
+ 'grid-row-end': {
1842
+ layer: Layer.Native
1843
+ },
1844
+ 'grid-row-span': {
1845
+ layer: Layer.Shorthand,
1846
+ transformValue (value) {
1847
+ return 'span' + ' ' + value + '/' + 'span' + ' ' + value;
1848
+ },
1849
+ declare (value) {
1850
+ return {
1851
+ 'grid-row': value
1852
+ };
1853
+ }
1854
+ },
1855
+ 'grid-row': {
1856
+ layer: Layer.NativeShorthand
1857
+ },
1858
+ 'grid-rows': {
1859
+ declare (value) {
1860
+ return {
1861
+ display: 'grid',
1862
+ 'grid-auto-flow': 'column',
1863
+ 'grid-template-rows': 'repeat' + '(' + value + ',' + 'minmax' + '(' + 0 + ',' + 1 + 'fr' + '))'
1864
+ };
1865
+ },
1866
+ layer: Layer.Shorthand
1867
+ },
1868
+ 'grid-auto-columns': {
1869
+ key: 'grid-auto-cols',
1870
+ layer: Layer.Native
1871
+ },
1872
+ 'grid-auto-flow': {
1873
+ key: 'grid-flow',
1874
+ layer: Layer.Native
1875
+ },
1876
+ 'grid-auto-rows': {
1877
+ layer: Layer.Native
1878
+ },
1879
+ 'grid-template-areas': {
1880
+ layer: Layer.Native
1881
+ },
1882
+ 'grid-template-columns': {
1883
+ key: 'grid-template-cols',
1884
+ layer: Layer.Native,
1885
+ unit: 'rem'
1886
+ },
1887
+ 'grid-template-rows': {
1888
+ layer: Layer.Native,
1889
+ unit: 'rem'
1890
+ },
1891
+ 'grid-template': {
1892
+ layer: Layer.NativeShorthand
1893
+ },
1894
+ 'grid-area': {
1895
+ layer: Layer.NativeShorthand
1896
+ },
1897
+ grid: {
1898
+ layer: Layer.NativeShorthand
1899
+ },
1900
+ 'column-gap': {
1901
+ key: 'gap-x',
1902
+ unit: 'rem',
1903
+ layer: Layer.Native,
1904
+ variables: [
1905
+ 'spacing'
1906
+ ]
1907
+ },
1908
+ 'row-gap': {
1909
+ key: 'gap-y',
1910
+ unit: 'rem',
1911
+ layer: Layer.Native,
1912
+ variables: [
1913
+ 'spacing'
1914
+ ]
1915
+ },
1916
+ gap: {
1917
+ unit: 'rem',
1918
+ layer: Layer.NativeShorthand,
1919
+ variables: [
1920
+ 'spacing'
1921
+ ]
1922
+ },
1923
+ order: {
1924
+ key: 'o',
1925
+ layer: Layer.Native
1926
+ },
1927
+ 'break-inside': {
1928
+ layer: Layer.Native
1929
+ },
1930
+ 'break-before': {
1931
+ layer: Layer.Native
1932
+ },
1933
+ 'break-after': {
1934
+ layer: Layer.Native
1935
+ },
1936
+ 'aspect-ratio': {
1937
+ key: 'aspect',
1938
+ layer: Layer.Native
1939
+ },
1940
+ 'column-span': {
1941
+ key: 'col-span',
1942
+ layer: Layer.Native
1943
+ },
1944
+ 'align-content': {
1945
+ subkey: 'ac',
1946
+ layer: Layer.Native
1947
+ },
1948
+ 'align-items': {
1949
+ subkey: 'ai',
1950
+ layer: Layer.Native
1951
+ },
1952
+ 'align-self': {
1953
+ subkey: 'as',
1954
+ layer: Layer.Native
1955
+ },
1956
+ 'justify-content': {
1957
+ subkey: 'jc',
1958
+ layer: Layer.Native
1959
+ },
1960
+ 'justify-items': {
1961
+ subkey: 'ji',
1962
+ layer: Layer.Native
1963
+ },
1964
+ 'justify-self': {
1965
+ subkey: 'js',
1966
+ layer: Layer.Native
1967
+ },
1968
+ 'place-content': {
1969
+ layer: Layer.NativeShorthand
1970
+ },
1971
+ 'place-items': {
1972
+ layer: Layer.NativeShorthand
1973
+ },
1974
+ 'place-self': {
1975
+ layer: Layer.NativeShorthand
1976
+ },
1977
+ 'list-style-position': {
1978
+ ambiguousKeys: [
1979
+ 'list-style'
1980
+ ],
1981
+ ambiguousValues: [
1982
+ 'inside',
1983
+ 'outside'
1984
+ ],
1985
+ layer: Layer.Native
1986
+ },
1987
+ 'list-style-type': {
1988
+ ambiguousKeys: [
1989
+ 'list-style'
1990
+ ],
1991
+ ambiguousValues: [
1992
+ 'disc',
1993
+ 'decimal'
1994
+ ],
1995
+ layer: Layer.Native
1996
+ },
1997
+ 'list-style-image': {
1998
+ ambiguousKeys: [
1999
+ 'list-style'
2000
+ ],
2001
+ ambiguousValues: [
2002
+ IMAGE_VALUE_REGEX
2003
+ ],
2004
+ layer: Layer.Native
2005
+ },
2006
+ 'list-style': {
2007
+ layer: Layer.NativeShorthand
2008
+ },
2009
+ 'outline-color': {
2010
+ ambiguousKeys: [
2011
+ 'outline'
2012
+ ],
2013
+ ambiguousValues: [
2014
+ COLOR_VALUE_REGEX
2015
+ ],
2016
+ layer: Layer.Native
2017
+ },
2018
+ 'outline-offset': {
2019
+ unit: 'rem',
2020
+ layer: Layer.Native,
2021
+ variables: [
2022
+ 'spacing'
2023
+ ]
2024
+ },
2025
+ 'outline-style': {
2026
+ ambiguousKeys: [
2027
+ 'outline'
2028
+ ],
2029
+ ambiguousValues: BORDER_STYLE_VALUES,
2030
+ layer: Layer.Native
2031
+ },
2032
+ 'outline-width': {
2033
+ ambiguousKeys: [
2034
+ 'outline'
2035
+ ],
2036
+ ambiguousValues: [
2037
+ 'medium',
2038
+ 'thick',
2039
+ 'thin',
2040
+ NUMBER_VALUE_REGEX
2041
+ ],
2042
+ unit: 'rem',
2043
+ layer: Layer.Native
2044
+ },
2045
+ outline: {
2046
+ unit: 'rem',
2047
+ layer: Layer.NativeShorthand,
2048
+ variables: [
2049
+ 'outline-width',
2050
+ 'outline-style',
2051
+ 'outline-offset',
2052
+ 'outline-color'
2053
+ ],
2054
+ transformValueComponents: autofillSolidToValueComponent
2055
+ },
2056
+ 'accent-color': {
2057
+ key: 'accent',
2058
+ layer: Layer.Native
2059
+ },
2060
+ appearance: {
2061
+ layer: Layer.Native
2062
+ },
2063
+ 'caret-color': {
2064
+ key: 'caret',
2065
+ layer: Layer.Native,
2066
+ variables: [
2067
+ 'text'
2068
+ ]
2069
+ },
2070
+ 'scroll-behavior': {
2071
+ layer: Layer.Native
2072
+ },
2073
+ // scroll margin
2074
+ 'scroll-margin-left': {
2075
+ key: 'scroll-ml',
2076
+ layer: Layer.Native,
2077
+ unit: 'rem',
2078
+ variables: [
2079
+ 'spacing'
2080
+ ]
2081
+ },
2082
+ 'scroll-margin-right': {
2083
+ key: 'scroll-mr',
2084
+ layer: Layer.Native,
2085
+ unit: 'rem',
2086
+ variables: [
2087
+ 'spacing'
2088
+ ]
2089
+ },
2090
+ 'scroll-margin-top': {
2091
+ key: 'scroll-mt',
2092
+ layer: Layer.Native,
2093
+ unit: 'rem',
2094
+ variables: [
2095
+ 'spacing'
2096
+ ]
2097
+ },
2098
+ 'scroll-margin-bottom': {
2099
+ key: 'scroll-mb',
2100
+ layer: Layer.Native,
2101
+ unit: 'rem',
2102
+ variables: [
2103
+ 'spacing'
2104
+ ]
2105
+ },
2106
+ 'scroll-margin-x': {
2107
+ key: 'scroll-mx',
2108
+ unit: 'rem',
2109
+ layer: Layer.Shorthand,
2110
+ declare (value) {
2111
+ return {
2112
+ 'scroll-margin-left': value,
2113
+ 'scroll-margin-right': value
2114
+ };
2115
+ },
2116
+ variables: [
2117
+ 'spacing'
2118
+ ]
2119
+ },
2120
+ 'scroll-margin-y': {
2121
+ key: 'scroll-my',
2122
+ unit: 'rem',
2123
+ layer: Layer.Shorthand,
2124
+ declare (value) {
2125
+ return {
2126
+ 'scroll-margin-top': value,
2127
+ 'scroll-margin-bottom': value
2128
+ };
2129
+ },
2130
+ variables: [
2131
+ 'spacing'
2132
+ ]
2133
+ },
2134
+ 'scroll-margin': {
2135
+ key: 'scroll-m',
2136
+ unit: 'rem',
2137
+ layer: Layer.NativeShorthand,
2138
+ variables: [
2139
+ 'spacing'
2140
+ ]
2141
+ },
2142
+ // scroll padding
2143
+ 'scroll-padding-left': {
2144
+ key: 'scroll-pl',
2145
+ layer: Layer.Native,
2146
+ unit: 'rem',
2147
+ variables: [
2148
+ 'spacing'
2149
+ ]
2150
+ },
2151
+ 'scroll-padding-right': {
2152
+ key: 'scroll-pr',
2153
+ layer: Layer.Native,
2154
+ unit: 'rem',
2155
+ variables: [
2156
+ 'spacing'
2157
+ ]
2158
+ },
2159
+ 'scroll-padding-top': {
2160
+ key: 'scroll-pt',
2161
+ layer: Layer.Native,
2162
+ unit: 'rem',
2163
+ variables: [
2164
+ 'spacing'
2165
+ ]
2166
+ },
2167
+ 'scroll-padding-bottom': {
2168
+ key: 'scroll-pb',
2169
+ layer: Layer.Native,
2170
+ unit: 'rem',
2171
+ variables: [
2172
+ 'spacing'
2173
+ ]
2174
+ },
2175
+ 'scroll-padding-x': {
2176
+ key: 'scroll-px',
2177
+ unit: 'rem',
2178
+ layer: Layer.Shorthand,
2179
+ declare (value) {
2180
+ return {
2181
+ 'scroll-padding-left': value,
2182
+ 'scroll-padding-right': value
2183
+ };
2184
+ },
2185
+ variables: [
2186
+ 'spacing'
2187
+ ]
2188
+ },
2189
+ 'scroll-padding-y': {
2190
+ key: 'scroll-py',
2191
+ unit: 'rem',
2192
+ layer: Layer.Shorthand,
2193
+ declare (value) {
2194
+ return {
2195
+ 'scroll-padding-top': value,
2196
+ 'scroll-padding-bottom': value
2197
+ };
2198
+ },
2199
+ variables: [
2200
+ 'spacing'
2201
+ ]
2202
+ },
2203
+ 'scroll-padding': {
2204
+ key: 'scroll-p',
2205
+ unit: 'rem',
2206
+ layer: Layer.NativeShorthand,
2207
+ variables: [
2208
+ 'spacing'
2209
+ ]
2210
+ },
2211
+ // scroll snap
2212
+ 'scroll-snap-align': {
2213
+ ambiguousKeys: [
2214
+ 'scroll-snap'
2215
+ ],
2216
+ ambiguousValues: [
2217
+ 'start',
2218
+ 'end',
2219
+ 'center'
2220
+ ],
2221
+ layer: Layer.Native
2222
+ },
2223
+ 'scroll-snap-stop': {
2224
+ ambiguousKeys: [
2225
+ 'scroll-snap'
2226
+ ],
2227
+ ambiguousValues: [
2228
+ 'normal',
2229
+ 'always'
2230
+ ],
2231
+ layer: Layer.Native
2232
+ },
2233
+ 'scroll-snap-type': {
2234
+ ambiguousKeys: [
2235
+ 'scroll-snap'
2236
+ ],
2237
+ ambiguousValues: [
2238
+ 'x',
2239
+ 'y',
2240
+ 'block',
2241
+ 'inline',
2242
+ 'both'
2243
+ ],
2244
+ layer: Layer.Native
2245
+ },
2246
+ 'will-change': {
2247
+ layer: Layer.Native
2248
+ },
2249
+ 'writing-mode': {
2250
+ key: 'writing',
2251
+ layer: Layer.Native
2252
+ },
2253
+ direction: {
2254
+ layer: Layer.Native
2255
+ },
2256
+ 'shape-outside': {
2257
+ ambiguousKeys: [
2258
+ 'shape'
2259
+ ],
2260
+ ambiguousValues: [
2261
+ /(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/
2262
+ ],
2263
+ layer: Layer.Native
2264
+ },
2265
+ 'shape-margin': {
2266
+ ambiguousKeys: [
2267
+ 'shape'
2268
+ ],
2269
+ ambiguousValues: [
2270
+ NUMBER_VALUE_REGEX
2271
+ ],
2272
+ unit: 'rem',
2273
+ layer: Layer.Native,
2274
+ variables: [
2275
+ 'spacing'
2276
+ ]
2277
+ },
2278
+ 'shape-image-threshold': {
2279
+ layer: Layer.Native
2280
+ },
2281
+ 'clip-path': {
2282
+ layer: Layer.Native
2283
+ },
2284
+ quotes: {
2285
+ layer: Layer.Native
2286
+ },
2287
+ 'mask-image': {
2288
+ layer: Layer.Native,
2289
+ declare (value) {
2290
+ return {
2291
+ '-webkit-mask-image': value,
2292
+ 'mask-image': value
2293
+ };
2294
+ }
2295
+ }
2296
+ };
2297
+
2298
+ export { autofillSolidToValueComponent, rules as default };