@master/css 2.0.0-rc.3 → 2.0.0-rc.30

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