aliascss 1.1.0

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 (85) hide show
  1. package/.prettierrc +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +544 -0
  4. package/READMEEdititng.md +615 -0
  5. package/aliascss.config.js +201 -0
  6. package/bin/aliascss.js +101 -0
  7. package/dist/aliascss.js +1 -0
  8. package/jestconfig.json +10 -0
  9. package/lib/build/index.d.ts +1 -0
  10. package/lib/build/index.js +63 -0
  11. package/lib/classPrinter.d.ts +6 -0
  12. package/lib/classPrinter.js +233 -0
  13. package/lib/compilers/border.d.ts +5 -0
  14. package/lib/compilers/border.js +50 -0
  15. package/lib/compilers/clipPath.d.ts +5 -0
  16. package/lib/compilers/clipPath.js +57 -0
  17. package/lib/compilers/color.d.ts +5 -0
  18. package/lib/compilers/color.js +61 -0
  19. package/lib/compilers/filter.d.ts +7 -0
  20. package/lib/compilers/filter.js +54 -0
  21. package/lib/compilers/font.d.ts +5 -0
  22. package/lib/compilers/font.js +19 -0
  23. package/lib/compilers/gradient.d.ts +5 -0
  24. package/lib/compilers/gradient.js +138 -0
  25. package/lib/compilers/length.d.ts +2 -0
  26. package/lib/compilers/length.js +10 -0
  27. package/lib/compilers/shadow.d.ts +5 -0
  28. package/lib/compilers/shadow.js +55 -0
  29. package/lib/compilers/stringAndContent.d.ts +6 -0
  30. package/lib/compilers/stringAndContent.js +23 -0
  31. package/lib/compilers/timingFunction.d.ts +5 -0
  32. package/lib/compilers/timingFunction.js +35 -0
  33. package/lib/compilers/transform.d.ts +2 -0
  34. package/lib/compilers/transform.js +117 -0
  35. package/lib/compilers/transition.d.ts +1 -0
  36. package/lib/compilers/transition.js +35 -0
  37. package/lib/compilers/url.d.ts +1 -0
  38. package/lib/compilers/url.js +33 -0
  39. package/lib/config.d.ts +20 -0
  40. package/lib/config.js +21 -0
  41. package/lib/css-properties-all.d.ts +16 -0
  42. package/lib/css-properties-all.js +2642 -0
  43. package/lib/index.d.ts +8 -0
  44. package/lib/index.js +7 -0
  45. package/lib/node/compileFile.d.ts +25 -0
  46. package/lib/node/compileFile.js +337 -0
  47. package/lib/node/extractClassNamesFromFile.d.ts +18 -0
  48. package/lib/node/extractClassNamesFromFile.js +105 -0
  49. package/lib/prefix/PseudoPrefix.d.ts +7 -0
  50. package/lib/prefix/PseudoPrefix.js +145 -0
  51. package/lib/prefix/attribute-selector.d.ts +5 -0
  52. package/lib/prefix/attribute-selector.js +14 -0
  53. package/lib/prefix/colonToDefaultConversion.d.ts +1 -0
  54. package/lib/prefix/colonToDefaultConversion.js +3 -0
  55. package/lib/prefix/element-selector.d.ts +5 -0
  56. package/lib/prefix/element-selector.js +25 -0
  57. package/lib/prefix/extractMediaPrefix.d.ts +3 -0
  58. package/lib/prefix/extractMediaPrefix.js +12 -0
  59. package/lib/prefix/extractPrefix.d.ts +1 -0
  60. package/lib/prefix/extractPrefix.js +66 -0
  61. package/lib/prefix/pseudoSelector.d.ts +1 -0
  62. package/lib/prefix/pseudoSelector.js +48 -0
  63. package/lib/prefix/pseudoSelectorNew.d.ts +1 -0
  64. package/lib/prefix/pseudoSelectorNew.js +78 -0
  65. package/lib/prefix/responsive.d.ts +10 -0
  66. package/lib/prefix/responsive.js +26 -0
  67. package/lib/returnPropertyAndValue.d.ts +8 -0
  68. package/lib/returnPropertyAndValue.js +42 -0
  69. package/lib/returnStatement.d.ts +5 -0
  70. package/lib/returnStatement.js +189 -0
  71. package/lib/static/customColors.d.ts +3 -0
  72. package/lib/static/customColors.js +376 -0
  73. package/lib/static/customStaticClassNames.d.ts +3 -0
  74. package/lib/static/customStaticClassNames.js +132 -0
  75. package/lib/static/staticClassNamesAlias.d.ts +3 -0
  76. package/lib/static/staticClassNamesAlias.js +1300 -0
  77. package/lib/utils/createCompilerObj.d.ts +35 -0
  78. package/lib/utils/createCompilerObj.js +97 -0
  79. package/lib/utils/cssFunc.d.ts +1 -0
  80. package/lib/utils/cssFunc.js +27 -0
  81. package/package.json +64 -0
  82. package/ts.js +5 -0
  83. package/tsconfig.json +14 -0
  84. package/tslint.json +9 -0
  85. package/webpack.config.js +11 -0
@@ -0,0 +1,2642 @@
1
+ import config from './config.js';
2
+ import length, { lenByNumPer } from './compilers/length.js';
3
+ import color from './compilers/color.js';
4
+ import timingFunction from './compilers/timingFunction.js';
5
+ import content, { string } from './compilers/stringAndContent.js';
6
+ import border from './compilers/border.js';
7
+ import gradient from './compilers/gradient.js';
8
+ import url from './compilers/url.js';
9
+ import clipPath from './compilers/clipPath.js';
10
+ import shadow from './compilers/shadow.js';
11
+ import filter from './compilers/filter.js';
12
+ import transform from './compilers/transform.js';
13
+ import transition from './compilers/transition.js';
14
+ import font from './compilers/font.js';
15
+ import { repeat } from './utils/cssFunc.js';
16
+ const style = config.styles; // ['dotted:d','dashed:da:d2','solid:s','double:db:d3','groove:g','ridge:ri:r','inset:i','outset:o','none:n','hidden:h'];
17
+ const width = config.widths; // ['medium:m','thin:t','thick:th:t2'];
18
+ const mode = config.modes; // ['normal:ml','multiply:m','screen:s','overlay:o','darken:d','lighten:l','color-dodge:cd','color-burn:cb','hard-light:hl','soft-light:sl','difference:di:d2','exclusion:e','hue:h','saturation:sa:s2','color:c','luminosity:lu:l2'];
19
+ const cssProps = {
20
+ // type:s=static,d=dynamic
21
+ // -----------------xc----------------
22
+ 'width-grow': {
23
+ alias: '',
24
+ property: '--width-grow',
25
+ type: 'd',
26
+ compiler: length,
27
+ values: [],
28
+ },
29
+ 'width-shrink': {
30
+ alias: '',
31
+ property: '--width-shrink',
32
+ type: 'd',
33
+ compiler: length,
34
+ values: [],
35
+ },
36
+ 'height-grow': {
37
+ alias: '',
38
+ property: '--height-grow',
39
+ type: 'd',
40
+ compiler: length,
41
+ values: [],
42
+ },
43
+ 'height-shrink': {
44
+ alias: '',
45
+ property: '--height-shrink',
46
+ type: 'd',
47
+ compiler: length,
48
+ values: [],
49
+ },
50
+ // ----------xc-end
51
+ 'accent-color': {
52
+ alias: 'accent',
53
+ type: 'd',
54
+ compiler: color,
55
+ values: [],
56
+ },
57
+ 'align-content': {
58
+ alias: 'ac',
59
+ type: 's',
60
+ compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
61
+ values: ['stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'space-between:sb', 'space-around:sa', 'space-evenly:se'],
62
+ },
63
+ 'align-items': {
64
+ alias: 'ai',
65
+ type: 's',
66
+ compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
67
+ values: ['normal:n', 'anchor-center:ac', 'stretch:st:s2', 'center:c', 'start:s', 'end:e', 'flex-start:fs', 'flex-end:fe', 'baseline:b'],
68
+ },
69
+ 'align-self': {
70
+ alias: 'as',
71
+ type: 's',
72
+ compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
73
+ values: ['auto:a', 'anchor-center:ac', 'stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'baseline:b'],
74
+ },
75
+ 'all': {
76
+ alias: '',
77
+ type: 's',
78
+ // compiler:'',
79
+ values: [],
80
+ },
81
+ 'anchor-name': {
82
+ alias: '',
83
+ type: 'd',
84
+ compiler: (value) => "-" + value.replace(/__/g, ', --'),
85
+ values: ['none:n']
86
+ },
87
+ 'animation': {
88
+ alias: 'a',
89
+ type: 'd',
90
+ compiler: (value) => {
91
+ let result = '';
92
+ value.split(/__/).forEach((val) => result += (val.replace(/-/g, ' ').replace(/(ease[\s]in|ease[\s]out|ease[\s]in[\s]out|linear|step[\s]start|step[\s]end)/, (m, e) => m.replace(/\s/g, '-')) + ', '));
93
+ return result.replace(/(,\s)$/, '');
94
+ },
95
+ values: [],
96
+ },
97
+ 'animation-composition': {
98
+ 'alias': 'anc',
99
+ compiler: (value) => value.replace(/[-_]/g, ', ')
100
+ },
101
+ 'animation-delay': {
102
+ alias: 'adl',
103
+ type: 'dynamic',
104
+ compiler: length,
105
+ values: [],
106
+ },
107
+ 'animation-direction': {
108
+ alias: 'ad',
109
+ type: 's',
110
+ // compiler:'',
111
+ values: ['normal:n', 'reverse:r', 'alternate:a', 'alternate-reverse:ar'],
112
+ },
113
+ 'animation-duration': {
114
+ alias: 'adu',
115
+ type: 'd',
116
+ compiler: length,
117
+ values: [''],
118
+ },
119
+ 'animation-fill-mode': {
120
+ alias: 'afm',
121
+ type: 's',
122
+ // compiler:'',
123
+ values: ['none:n', 'forwards:f', 'backwards:b', 'both:bo:b2'],
124
+ },
125
+ 'animation-iteration-count': {
126
+ alias: 'aic',
127
+ type: 'd',
128
+ compiler: (value) => value.replace(/[d]/, '.').replace('-', ""),
129
+ values: ['infinite:i'],
130
+ },
131
+ 'animation-name': {
132
+ alias: 'an',
133
+ type: 'd',
134
+ compiler: string,
135
+ values: ['none:n'],
136
+ },
137
+ 'animation-play-state': {
138
+ alias: 'aps',
139
+ type: 's',
140
+ // compiler:'',
141
+ values: ['paused:p', 'running:r'],
142
+ },
143
+ 'animation-timing-function': {
144
+ alias: 'atf',
145
+ type: 'd',
146
+ compiler: timingFunction,
147
+ values: ['linear:l', 'ease:e', 'ease-in:ei', 'ease-out:eo', 'ease-in-out:eio', 'step-start:ss', 'step-end:se'],
148
+ },
149
+ 'animation-timeline': {
150
+ alias: 'at',
151
+ type: 'd',
152
+ compiler: (values) => {
153
+ let result = '';
154
+ values.split(/__/).forEach((value) => {
155
+ if (value.match(/^-(scroll|view|s|v)-/)) {
156
+ result += /^-s/.test(value) ? 'scroll(' : 'view(';
157
+ value = value.replace(/^-(scroll|view|s|v)-/, '');
158
+ if (value)
159
+ result += value.replace(/-/g, ' ')
160
+ .replace(/(\d)[p][\s]/g, '$1% ')
161
+ .replace(/(\d)p$/, '$1%')
162
+ .replace(/(\d)d(\d)/g, '$1.$2') + "), ";
163
+ }
164
+ else {
165
+ result += (value.match(/^-/) ? ("-" + value) : ('--' + value)).replace(/--none/, 'none ') + ', ';
166
+ }
167
+ });
168
+ return result.replace(/,[\s]$/, '');
169
+ },
170
+ values: ['auto:a', 'none:n', 'view():view:v', 'scroll():scroll:s',]
171
+ },
172
+ 'animation-range': {
173
+ 'alias': 'ar2',
174
+ compiler: (value) => value.replace(/-/g, ' ').replace(/([\d])[p][\s]/, '$1% ').replace(/([\d])[p]$/, '$1%'),
175
+ },
176
+ 'animation-range-end': {
177
+ 'alias': 'are',
178
+ compiler: (value) => value.replace(/-/g, ' ').replace(/([\d])[p][\s]/, '$1% ').replace(/([\d])[p]$/, '$1%'),
179
+ values: ['normal:nl', 'cover', 'contain:']
180
+ },
181
+ 'animation-range-start': {
182
+ 'alias': 'ars',
183
+ compiler: (value) => value.replace(/-/g, ' ').replace(/([\d])[p][\s]/, '$1% ').replace(/([\d])[p]$/, '$1%'),
184
+ },
185
+ 'appearance': {
186
+ alias: 'a2',
187
+ type: 's',
188
+ compiler: (value) => value.replace(/^-/, '').replace(/moz/, '-moz'),
189
+ values: ['none:n', 'auto:a', 'menulist-button:mb', 'textfield:t:tf'],
190
+ },
191
+ 'aspect-ratio': {
192
+ alias: 'ar',
193
+ type: 'd',
194
+ compiler: (value) => value.replace(/^-/, '').replace(/(-by-)/, '/').replace(/([\d])d([\d])/g, '$1.$2').replace("-", " "),
195
+ values: ['auto:a'],
196
+ },
197
+ // ----------B--------'
198
+ 'backdrop-filter': {
199
+ alias: 'bf',
200
+ type: 'd',
201
+ compiler: filter,
202
+ values: ['none:n', 'invert():invert:i', 'sepia():sepia:se', 'grayscale():grayscale:gs'],
203
+ },
204
+ 'backface-visibility': {
205
+ alias: 'bv',
206
+ type: 's',
207
+ // compiler:'',
208
+ values: ['visible:v', 'hidden:h'],
209
+ },
210
+ 'background': {
211
+ alias: 'bg',
212
+ type: 'd',
213
+ compiler: (value, custom) => {
214
+ if (value.match(/^[-]?url/)) {
215
+ return url(value);
216
+ }
217
+ else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
218
+ return gradient(value, custom);
219
+ }
220
+ else {
221
+ return color(value, custom);
222
+ }
223
+ },
224
+ values: [],
225
+ },
226
+ 'background-attachment': {
227
+ alias: 'bga',
228
+ type: 's',
229
+ compiler: (value) => value.replace(/^-/, '').replace(/-/g, ', '),
230
+ values: ['scroll:s', 'fixed:f', 'local:l'],
231
+ },
232
+ 'background-blend-mode': {
233
+ alias: 'bgbm',
234
+ type: 's',
235
+ compiler: (value) => value.replace(/^-/, '').replace(/(-|__)/g, ', ').replace(/color,[\s]dodge/g, 'color-dodge'),
236
+ values: ['normal:nl', 'multiply:m', 'screen:s', 'overlay:o', 'darken:d', 'lighten:l', 'color-dodge:cd', 'saturation:sa|s2', 'color:c', 'luminosity:lu:l2'],
237
+ },
238
+ 'background-clip': {
239
+ alias: 'bgc2',
240
+ type: 's',
241
+ compiler: (value) => value.replace(/^-/, '').replace(/(-|__)/g, ', ').replace(/,[\s]b/g, '-b'),
242
+ values: ['border-box:bb', 'padding-box:pb', 'content-box:cb'],
243
+ },
244
+ 'background-color': {
245
+ alias: 'bgc',
246
+ type: 'd',
247
+ compiler: color,
248
+ values: ['none:n'],
249
+ },
250
+ 'background-image': {
251
+ alias: 'bgi',
252
+ type: 'd',
253
+ compiler: (value, custom) => {
254
+ if (value.match(/^[-]?url/)) {
255
+ return url(value);
256
+ }
257
+ else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
258
+ return gradient(value, custom);
259
+ }
260
+ else {
261
+ return null;
262
+ }
263
+ },
264
+ values: ['none:n'],
265
+ },
266
+ 'background-origin': {
267
+ alias: 'bgo',
268
+ type: 's',
269
+ // compiler:'',
270
+ values: ['padding-box:pb', 'border-box:bb', 'content-box:cb'],
271
+ },
272
+ 'background-position': {
273
+ alias: 'bgp',
274
+ type: 'd',
275
+ // compiler:length,
276
+ compiler: (value) => value.replace(/-/g, ' ').replace(/(\d)d(\d)/g, '$1.$2').replace(/__/g, ', ').replace(/([\d])p([\s,])/g, "$1%$2 ").replace(/([\d])p$/, "$1%"),
277
+ values: ['bottom:b', 'bottom center:bc', 'bottom left:bl', 'bottom right:br', 'center:c', 'center bottom:cb', 'center center:cc', 'center top:ct', 'left:l', 'left bottom:lb', 'left center:lc', 'left top:lt', 'right:r', 'right bottom:rb', 'right center:rc', 'right top:rt', 'top:t', 'top center:tc', 'top left:tl', 'top right:tr'],
278
+ },
279
+ 'background-position-x': {
280
+ alias: 'bgpx',
281
+ type: 'd',
282
+ compiler: (value) => value.replace(/-/g, ' ').replace(/(\d)d(\d)/g, '$1.$2').replace(/__/g, ', ').replace(/([\d])p([\s,])/g, "$1%$2 ").replace(/([\d])p$/, "$1%"),
283
+ values: ['right:r', 'left:l', 'center:c'],
284
+ },
285
+ 'background-position-y': {
286
+ alias: 'bgpy',
287
+ type: 'd',
288
+ compiler: (value) => value.replace(/-/g, ' ').replace(/(\d)d(\d)/g, '$1.$2').replace(/__/g, ', ').replace(/([\d])p([\s,])/g, "$1%$2 ").replace(/([\d])p$/, "$1%"),
289
+ values: ['top:t', 'center:c', 'bottom:b'],
290
+ },
291
+ 'background-repeat': {
292
+ alias: 'bgr',
293
+ type: 's',
294
+ // compiler:'',
295
+ compiler: (value) => value.replace(/^-/, '').replace(/__/g, ' '),
296
+ values: ['repeat:r', 'repeat-x:rx', 'repeat-y:ry', 'round:ro', 'space:s', 'no-repeat:nr',
297
+ 'repeat repeat:rr', 'repeat space:rs', 'repeat round:rro', 'repeat no-repeat:rnr',
298
+ 'space repeat:sr', 'space space:ss', 'space round:sro', 'space no-repeat:snr',
299
+ 'round repeat:ror', 'round space:ros', 'round round:roro', 'round no-repeat:ronr',
300
+ 'no-repeat repeat:nrr', 'no-repeat space:nrs', 'no-repeat round:nrro', 'no-repeat no-repeat:nrnr'
301
+ ],
302
+ },
303
+ 'background-size': {
304
+ alias: 'bgs',
305
+ type: 'd',
306
+ // compiler:length,
307
+ compiler: (value) => {
308
+ let result = '';
309
+ value.split('__').forEach((val) => {
310
+ result += length(val).replace(/-(contain|cover|auto)/g, " $1") + ", ";
311
+ });
312
+ return result.replace(/[,][\s]$/, '');
313
+ },
314
+ values: ['auto:a', 'contain:c', 'cover:co'],
315
+ },
316
+ // 'bleed':{},
317
+ 'block-overflow': {
318
+ alias: '',
319
+ type: 'd',
320
+ compiler: (value) => value.replace(/^-/, ''),
321
+ values: ['clip:c', 'ellipsis:e']
322
+ },
323
+ 'block-size': {
324
+ alias: '', // border-spacing-bs
325
+ type: 'd',
326
+ compiler: length,
327
+ values: ['auto:a', 'max-content:xc', 'min-content:mc', 'fit-content:fc'],
328
+ },
329
+ 'border': {
330
+ alias: 'b',
331
+ type: 'd',
332
+ compiler: border,
333
+ values: ['none:n'],
334
+ },
335
+ 'border-block': {
336
+ alias: '',
337
+ type: 'd',
338
+ compiler: border,
339
+ values: [''],
340
+ },
341
+ 'border-block-color': {
342
+ alias: '',
343
+ type: 'd',
344
+ compiler: color,
345
+ values: [''],
346
+ },
347
+ 'border-block-end-color': {
348
+ alias: 'bbec',
349
+ type: 'd',
350
+ compiler: color,
351
+ values: [''],
352
+ },
353
+ 'border-block-end-style': {
354
+ alias: 'bbes',
355
+ type: 's',
356
+ // compiler:'',
357
+ values: style,
358
+ },
359
+ 'border-block-end-width': {
360
+ alias: 'bbew',
361
+ type: 'd',
362
+ compiler: length,
363
+ values: width,
364
+ },
365
+ 'border-block-start-color': {
366
+ alias: 'bbsc',
367
+ type: 'd',
368
+ compiler: color,
369
+ values: [''],
370
+ },
371
+ 'border-block-start-style': {
372
+ alias: 'bbss',
373
+ type: 's',
374
+ // compiler:'',
375
+ values: style,
376
+ },
377
+ 'border-block-start-width': {
378
+ alias: 'bbsw',
379
+ type: 'd',
380
+ compiler: length,
381
+ values: width,
382
+ },
383
+ 'border-block-style': {
384
+ alias: '',
385
+ type: 's',
386
+ // compiler:'',
387
+ values: style,
388
+ },
389
+ 'border-block-width': {
390
+ alias: '',
391
+ type: 'd',
392
+ compiler: length,
393
+ values: width,
394
+ },
395
+ 'border-bottom': {
396
+ alias: 'bb',
397
+ type: 'd',
398
+ compiler: border,
399
+ values: [''],
400
+ },
401
+ 'border-bottom-color': {
402
+ alias: 'bbc',
403
+ type: 'd',
404
+ compiler: color,
405
+ values: [''],
406
+ },
407
+ 'border-bottom-left-radius': {
408
+ alias: 'bblr',
409
+ type: 'd',
410
+ compiler: length,
411
+ values: [''],
412
+ },
413
+ 'border-bottom-right-radius': {
414
+ alias: 'bbrr',
415
+ type: 'd',
416
+ compiler: length,
417
+ values: [''],
418
+ },
419
+ 'border-bottom-style': {
420
+ alias: 'bbs',
421
+ type: 's',
422
+ // compiler:'',
423
+ values: style,
424
+ },
425
+ 'border-bottom-width': {
426
+ alias: 'bbw',
427
+ type: 'd',
428
+ compiler: length,
429
+ values: width,
430
+ },
431
+ 'border-boundary': {
432
+ alias: '',
433
+ type: 's',
434
+ 'values': ['none:n', 'patent:p', 'display:d']
435
+ },
436
+ 'border-collapse': {
437
+ alias: '',
438
+ type: 's',
439
+ // compiler:'',
440
+ values: ['separate:s', 'collapse:c'],
441
+ },
442
+ 'border-color': {
443
+ alias: 'bc',
444
+ type: 'd',
445
+ compiler: color,
446
+ values: [''],
447
+ },
448
+ 'border-end-end-radius': {
449
+ alias: 'beer',
450
+ type: 'd',
451
+ compiler: length,
452
+ values: [''],
453
+ },
454
+ 'border-end-start-radius': {
455
+ alias: 'besr',
456
+ type: 'd',
457
+ compiler: length,
458
+ values: [''],
459
+ },
460
+ 'border-image': {
461
+ alias: '', // taken by border-inline
462
+ type: '',
463
+ compiler: (value, custom) => {
464
+ if (value.match(/^[-]?url/)) {
465
+ return url(value);
466
+ }
467
+ else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
468
+ return gradient(value, custom);
469
+ }
470
+ else {
471
+ return null;
472
+ }
473
+ },
474
+ values: [''],
475
+ },
476
+ 'border-image-outset': {
477
+ alias: '',
478
+ type: 'd',
479
+ compiler: length,
480
+ values: [''],
481
+ },
482
+ 'border-image-repeat': {
483
+ alias: 'bir',
484
+ type: 's',
485
+ // compiler:'',
486
+ values: ['stretch:s', 'repeat:r', 'round:ro|r2', 'space:sp|s2'],
487
+ },
488
+ 'border-image-slice': {
489
+ alias: '',
490
+ type: 'd',
491
+ compiler: length,
492
+ values: [''],
493
+ },
494
+ 'border-image-source': {
495
+ alias: '',
496
+ type: '',
497
+ compiler: (value, custom) => {
498
+ if (value.match(/^[-]?url/)) {
499
+ return url(value);
500
+ }
501
+ else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
502
+ return gradient(value, custom);
503
+ }
504
+ else {
505
+ return null;
506
+ }
507
+ },
508
+ values: ['none:n'],
509
+ },
510
+ 'border-image-width': {
511
+ alias: '',
512
+ type: 'd',
513
+ compiler: length,
514
+ values: [''],
515
+ },
516
+ 'border-inline': {
517
+ alias: 'bi',
518
+ type: 'd',
519
+ compiler: border,
520
+ values: [''],
521
+ },
522
+ 'border-inline-color': {
523
+ alias: 'bic',
524
+ type: 'd',
525
+ compiler: color,
526
+ values: [''],
527
+ },
528
+ 'border-inline-end-color': {
529
+ alias: 'biec',
530
+ type: 'd',
531
+ compiler: color,
532
+ values: [''],
533
+ },
534
+ 'border-inline-end-style': {
535
+ alias: 'bies',
536
+ type: 's',
537
+ // compiler:'',
538
+ values: style,
539
+ },
540
+ 'border-inline-end-width': {
541
+ alias: 'biew',
542
+ type: 'd',
543
+ compiler: length,
544
+ values: width,
545
+ },
546
+ 'border-inline-start-color': {
547
+ alias: 'bisc',
548
+ type: 'd',
549
+ compiler: color,
550
+ values: [''],
551
+ },
552
+ 'border-inline-start-style': {
553
+ alias: 'biss',
554
+ type: 's',
555
+ // compiler:'',
556
+ values: style,
557
+ },
558
+ 'border-inline-start-width': {
559
+ alias: 'bisw',
560
+ type: 'd',
561
+ compiler: length,
562
+ values: width,
563
+ },
564
+ 'border-inline-style': {
565
+ alias: 'bis',
566
+ type: 's',
567
+ // compiler:'',
568
+ values: style,
569
+ },
570
+ 'border-inline-width': {
571
+ alias: 'biw',
572
+ type: 'd',
573
+ compiler: length,
574
+ values: width,
575
+ },
576
+ 'border-left': {
577
+ alias: 'bl',
578
+ type: 'd',
579
+ compiler: border,
580
+ values: [''],
581
+ },
582
+ 'border-left-color': {
583
+ alias: 'blc',
584
+ type: 'd',
585
+ compiler: color,
586
+ values: [''],
587
+ },
588
+ 'border-left-style': {
589
+ alias: 'bls',
590
+ type: 's',
591
+ // compiler:'',
592
+ values: style,
593
+ },
594
+ 'border-left-width': {
595
+ alias: 'blw',
596
+ type: 'd',
597
+ compiler: length,
598
+ values: width,
599
+ },
600
+ 'border-radius': {
601
+ alias: 'br',
602
+ type: 'd',
603
+ compiler: length,
604
+ values: [''],
605
+ },
606
+ 'border-right': {
607
+ alias: 'brt',
608
+ type: 'd',
609
+ compiler: border,
610
+ values: [''],
611
+ },
612
+ 'border-right-color': {
613
+ alias: 'brc',
614
+ type: 'd',
615
+ compiler: color,
616
+ values: [''],
617
+ },
618
+ 'border-right-style': {
619
+ alias: 'brs',
620
+ type: 's',
621
+ // compiler:'',
622
+ values: style,
623
+ },
624
+ 'border-right-width': {
625
+ alias: 'brw',
626
+ type: 'd',
627
+ compiler: length,
628
+ values: width,
629
+ },
630
+ 'border-spacing': {
631
+ alias: '',
632
+ type: 'd',
633
+ compiler: length,
634
+ values: [''],
635
+ },
636
+ 'border-start-end-radius': {
637
+ alias: 'bser',
638
+ type: 'd',
639
+ compiler: length,
640
+ values: [''],
641
+ },
642
+ 'border-start-star-radius': {
643
+ alias: 'bssr',
644
+ type: 'd',
645
+ compiler: length,
646
+ values: [''],
647
+ },
648
+ 'border-style': {
649
+ alias: 'bs', // ------
650
+ type: 's',
651
+ // compiler:'',
652
+ values: style,
653
+ },
654
+ 'border-top': {
655
+ alias: 'bt',
656
+ type: 'd',
657
+ compiler: border,
658
+ values: [''],
659
+ },
660
+ 'border-top-color': {
661
+ alias: 'btc',
662
+ type: 'd',
663
+ compiler: color,
664
+ values: [''],
665
+ },
666
+ 'border-top-left-radius': {
667
+ alias: 'btlr',
668
+ type: 'd',
669
+ compiler: length,
670
+ values: [''],
671
+ },
672
+ 'border-top-right-radius': {
673
+ alias: 'btrr',
674
+ type: 'd',
675
+ compiler: length,
676
+ values: [''],
677
+ },
678
+ 'border-top-style': {
679
+ alias: 'bts',
680
+ type: 's',
681
+ // compiler:'',
682
+ values: style,
683
+ },
684
+ 'border-top-width': {
685
+ alias: 'btw',
686
+ type: 'd',
687
+ compiler: length,
688
+ values: width,
689
+ },
690
+ 'border-width': {
691
+ alias: 'bw',
692
+ type: 'd',
693
+ compiler: length,
694
+ values: width,
695
+ },
696
+ 'bottom': {
697
+ alias: 'btm',
698
+ type: 'd',
699
+ compiler: length,
700
+ values: [''],
701
+ },
702
+ 'box-decoration-break': {
703
+ alias: 'bdb',
704
+ type: '',
705
+ // compiler:'',
706
+ values: ['slice:s', 'clone:c'],
707
+ },
708
+ 'box-reflect': {
709
+ alias: 'bxr',
710
+ type: 'd',
711
+ compiler: length,
712
+ values: ['none:n', 'below:b', 'above:a', 'left:l', 'right:r'],
713
+ },
714
+ 'box-shadow': {
715
+ alias: 'bxs',
716
+ type: 'd',
717
+ compiler: shadow,
718
+ values: ['none:n'],
719
+ },
720
+ 'box-sizing': {
721
+ alias: '',
722
+ type: 's',
723
+ // compiler:'',
724
+ values: ['content-box:cb', 'border-box:bb'],
725
+ },
726
+ 'break-after': {
727
+ alias: 'ba',
728
+ type: 's',
729
+ // compiler:'',
730
+ values: ['auto:au', 'all', 'always:al', 'avoid:av', 'avoid-column:ac', 'avoid-page:ap', 'avoid-region:ar', 'column:c', 'left:l', 'page:p', 'recto:rec', 'region:reg', 'right:r', 'verso:v'],
731
+ },
732
+ 'break-before': {
733
+ alias: '',
734
+ type: 's',
735
+ // compiler:'',
736
+ values: ['auto:au', 'all', 'always:al', 'avoid:av', 'avoid-column:ac', 'avoid-page:ap', 'avoid-region:ar', 'column:c', 'left:l', 'page:p', 'recto:rec', 'region:reg', 'right:r', 'verso:v'],
737
+ },
738
+ 'break-inside': {
739
+ alias: '', // ----
740
+ type: 's',
741
+ // compiler:'',
742
+ values: ['auto:au', 'all', 'always:al', 'avoid:av', 'avoid-column:ac', 'avoid-page:ap', 'avoid-region:ar', 'column:c', 'left:l', 'page:p', 'recto:rec', 'region:reg', 'right:r', 'verso:v'],
743
+ },
744
+ // ----------C--------
745
+ 'caption-side': {
746
+ alias: '',
747
+ type: 's',
748
+ // compiler:'',
749
+ values: ['top:t', 'bottom:b'],
750
+ },
751
+ 'caret-color': {
752
+ alias: '', // ---
753
+ type: 'd',
754
+ compiler: color,
755
+ values: [],
756
+ },
757
+ 'clear': {
758
+ alias: 'cl', // --
759
+ type: '',
760
+ // compiler:'',
761
+ values: ['none:n', 'left:l', 'right:r', 'both:b'],
762
+ },
763
+ 'clip-path': {
764
+ alias: 'cp',
765
+ type: 'd',
766
+ compiler: clipPath,
767
+ values: ['none:n', 'margin-box:mb', 'border-box:bb', 'padding-box:pb', 'content-box:cb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
768
+ },
769
+ 'color': {
770
+ alias: 'c',
771
+ type: 'd',
772
+ compiler: color,
773
+ values: [''],
774
+ },
775
+ 'color-interpolation': {
776
+ alias: '',
777
+ type: 's',
778
+ // compiler:'',
779
+ values: ['auto:a', 'sRGB', 'linerRGB']
780
+ },
781
+ 'color-scheme': {
782
+ alias: '',
783
+ type: 's',
784
+ // compiler:'',
785
+ values: ['normal:n', 'dark:d', 'light dark:light-dark:ld', 'only light:only-light:ol']
786
+ },
787
+ 'column-count': {
788
+ alias: 'cc',
789
+ type: 'd',
790
+ compiler: length,
791
+ values: ['auto:a'],
792
+ },
793
+ 'column-fill': {
794
+ alias: 'cf',
795
+ type: 's',
796
+ // compiler:'',
797
+ values: ['auto:a', 'balance:b'],
798
+ },
799
+ 'column-gap': {
800
+ alias: 'cg',
801
+ type: 'd',
802
+ compiler: length,
803
+ values: ['normal:n'],
804
+ },
805
+ 'column-rule': {
806
+ alias: 'cr',
807
+ type: 'd',
808
+ compiler: border,
809
+ values: [''],
810
+ },
811
+ 'column-rule-color': {
812
+ alias: 'crc',
813
+ type: 'd',
814
+ compiler: color,
815
+ values: [''],
816
+ },
817
+ 'column-rule-style': {
818
+ alias: 'crs',
819
+ type: 's',
820
+ // compiler:'',
821
+ values: style,
822
+ },
823
+ 'column-rule-width': {
824
+ alias: 'crw',
825
+ type: 'd',
826
+ compiler: length,
827
+ values: width,
828
+ },
829
+ 'column-span': {
830
+ alias: 'cs',
831
+ type: 's',
832
+ // compiler:'',
833
+ values: ['all:a', 'none:n'],
834
+ },
835
+ 'column-width': {
836
+ alias: 'cw',
837
+ type: 'd',
838
+ compiler: length,
839
+ values: ['auto:a'],
840
+ },
841
+ 'columns': {
842
+ alias: 'cols',
843
+ type: 'd',
844
+ compiler: length,
845
+ values: [''],
846
+ },
847
+ 'contain': {
848
+ alias: '',
849
+ type: 'd',
850
+ compiler: (value) => value.replace(/^-/, '').replace(/_[_]?/g, ' '),
851
+ values: ['none:n', 'strict:st', 'content:c', 'size:si', 'inline-size:is', 'layout:l', 'style:sty', 'paint:P']
852
+ },
853
+ 'contain-intrinsic-block-size': {
854
+ alias: '',
855
+ type: 'd',
856
+ compiler: length,
857
+ values: ['none:n', 'auto:a']
858
+ },
859
+ 'contain-intrinsic-height': {
860
+ alias: '',
861
+ type: 'd',
862
+ compiler: length,
863
+ values: ['none:n', 'auto:a']
864
+ },
865
+ 'contain-intrinsic-inline-size': {
866
+ alias: '',
867
+ type: 'd',
868
+ compiler: length,
869
+ values: ['none:n', 'auto:a']
870
+ },
871
+ 'contain-intrinsic-size': {
872
+ alias: '',
873
+ type: 'd',
874
+ compiler: length,
875
+ values: ['none:n', 'auto:a']
876
+ }, 'contain-intrinsic-width': {
877
+ alias: '',
878
+ type: 'd',
879
+ compiler: length,
880
+ values: ['none:n', 'auto:a']
881
+ },
882
+ 'container': {
883
+ alias: '',
884
+ type: 'd',
885
+ compiler: (value) => value.replace(/^-/, '').replace(/-by-/, ' / '),
886
+ values: ['none']
887
+ },
888
+ 'container-name': {
889
+ alias: '',
890
+ type: 'd',
891
+ compiler: (value) => value.replace(/^-/, '').replace(/__/, ' '),
892
+ values: []
893
+ },
894
+ 'container-type': {
895
+ alias: '',
896
+ type: 's',
897
+ // compiler:'',
898
+ values: ['normal', 'size', 'inline-size']
899
+ },
900
+ 'content': {
901
+ alias: 'cont',
902
+ type: 'd',
903
+ compiler: content,
904
+ values: ['normal:nl', 'none:n', 'open-quote:oq', 'close-quote:cq', 'no-open-quote:noq', 'no-close-quote:ncq'],
905
+ },
906
+ 'content-visibility': {
907
+ alias: 'cv',
908
+ type: 's',
909
+ values: ['visible:v', 'hidden:h', 'auto:a']
910
+ },
911
+ 'counter-increment': {
912
+ alias: 'ci',
913
+ type: 'd',
914
+ compiler: (value) => value.replace(/^-/, '').replace(/[-]([-]?[\d])[-]?/g, ' $1 '),
915
+ values: ['none'],
916
+ },
917
+ 'counter-reset': {
918
+ alias: '',
919
+ type: 'd',
920
+ compiler: (value) => value.replace(/^-/, '').replace(/[-]([-]?[\d])[-]?/g, ' $1 '),
921
+ values: ['none:n'],
922
+ },
923
+ 'counter-set': {
924
+ alias: '',
925
+ type: 'd',
926
+ compiler: (value) => value.replace(/^-/, '').replace(/[-]([-]?[\d])[-]?/g, ' $1 '),
927
+ values: ['none:n'],
928
+ },
929
+ 'cursor': {
930
+ alias: 'cu',
931
+ type: '',
932
+ // compiler:'',
933
+ values: ['alias:al', 'all-scroll:as', 'auto:a', 'cell:c', 'col-resize:cr', 'context-menu:cm', 'copy:cp',
934
+ 'crosshair:ch', 'default:d', 'e-resize:er', 'ew-resize:ewr', 'help:h', 'move:mo', 'n-resize:nr', 'ne-resize:ner', 'nesw-resize:neswr',
935
+ 'no-drop:nd', 'none:n', 'not-allowed:na', 'ns-resize:nsr', 'nw-resize:nwr', 'nwse-resize:nwser',
936
+ 'pointer:p', 'progress:pr', 'row-resize:rr', 's-resize:sr', 'se-resize:ser', 'sw-resize:swr',
937
+ 'text:t', 'vertical-text:vt', 'w-resize:wr', 'wait:w', 'zoom-in:zi', 'zoom-out:zo'],
938
+ },
939
+ // ----------D--------
940
+ 'direction': {
941
+ alias: 'dir', // --
942
+ type: 's',
943
+ // compiler:'',
944
+ values: ['ltr:l', 'rtl:r'],
945
+ },
946
+ 'display': {
947
+ alias: 'd',
948
+ type: 's',
949
+ // compiler:'',
950
+ values: ['block:b', 'compact:cp', 'container:c', 'flex:f', 'grid:g', 'inline:i', 'inline-block:ib',
951
+ 'inline-flex:if', 'inline-grid:ig', 'inline-table:it',
952
+ 'list-item:li', 'none:n', 'run-in:ri', 'table:t', 'table-caption:tcap', 'table-cell:tcl', 'table-column:tc',
953
+ 'table-column-group:tcg', 'table-footer-group:tfg', 'table-header-group:thg', 'table-row:tr', 'table-row-group:trg'],
954
+ },
955
+ // ----------E--------
956
+ 'empty-cells': {
957
+ alias: 'ec',
958
+ type: 's',
959
+ // compiler:'',
960
+ values: ['hide:h', 'show:s'],
961
+ },
962
+ // ----------F--------
963
+ 'field-sizing': {
964
+ alias: '',
965
+ type: 's',
966
+ // compiler:'',
967
+ values: ['content:c', 'fixed:f'],
968
+ },
969
+ 'filter': {
970
+ alias: '',
971
+ type: 'd',
972
+ compiler: filter,
973
+ values: ['none:n', 'invert():invert:i', 'sepia():sepia:se', 'grayscale():grayscale:gs'],
974
+ },
975
+ 'flex': {
976
+ alias: '',
977
+ type: 'd',
978
+ compiler: length,
979
+ values: [''],
980
+ },
981
+ 'flex-basis': {
982
+ alias: 'fb',
983
+ type: 'd',
984
+ compiler: length,
985
+ values: [''],
986
+ },
987
+ 'flex-direction': {
988
+ alias: 'fd',
989
+ type: 's',
990
+ // compiler:'',
991
+ values: ['row:r', 'row-reverse:rr', 'column:c', 'column-reverse:cr'],
992
+ },
993
+ 'flex-flow': {
994
+ alias: '',
995
+ type: 'd',
996
+ compiler: (value) => value.replace(/[-](w|n)/, " $1"),
997
+ values: [''],
998
+ },
999
+ 'flex-grow': {
1000
+ alias: 'fg',
1001
+ type: 'd',
1002
+ compiler: length,
1003
+ values: [''],
1004
+ },
1005
+ 'flex-shrink': {
1006
+ alias: '',
1007
+ type: 'd',
1008
+ compiler: length,
1009
+ values: [''],
1010
+ },
1011
+ 'flex-wrap': {
1012
+ alias: '',
1013
+ type: 's',
1014
+ // compiler:'',
1015
+ values: ['nowrap:nw:n', 'wrap:w', 'wrap-reverse:wr'],
1016
+ },
1017
+ 'float': {
1018
+ alias: 'f', // ----
1019
+ type: 's',
1020
+ // compiler:'',
1021
+ values: ['none:n', 'left:l', 'right:r', ''],
1022
+ },
1023
+ 'font': {
1024
+ alias: '',
1025
+ type: 'd',
1026
+ compiler: length,
1027
+ values: [''],
1028
+ },
1029
+ 'font-family': {
1030
+ alias: 'ff',
1031
+ type: 'd',
1032
+ compiler: font,
1033
+ values: [''],
1034
+ },
1035
+ 'font-feature-settings': {
1036
+ alias: 'ffs',
1037
+ type: '',
1038
+ compiler: (value) => value.replace(/--/g, ', ').replace(/(\w{4})/g, '"$1" ').replace('-', ' '),
1039
+ values: [''],
1040
+ },
1041
+ 'font-kerning': {
1042
+ alias: 'fk',
1043
+ type: 's',
1044
+ // compiler:'',
1045
+ values: ['auto:a', 'normal:nl|n2', 'none:n'],
1046
+ },
1047
+ 'font-language-override': {
1048
+ alias: 'flo',
1049
+ type: 'd',
1050
+ compiler: (value) => value.replace(/(\w+)/, '"$1"'),
1051
+ values: ['normal|nl'],
1052
+ },
1053
+ 'font-size': {
1054
+ alias: 'fs',
1055
+ type: 'd',
1056
+ compiler: length,
1057
+ values: ['medium:m:md', 'xx-small:xxs', 'x-small:xs', 'small:sm:s', 'large:lg:l', 'x-large:xl', 'xx-large:xxl', 'smaller:smr', 'larger:lgr'],
1058
+ },
1059
+ 'font-size-adjust': {
1060
+ alias: 'fsa',
1061
+ type: 'd',
1062
+ compiler: length,
1063
+ values: ['none:n'],
1064
+ },
1065
+ 'font-stretch': {
1066
+ alias: '', // --
1067
+ type: 's',
1068
+ // compiler:'',
1069
+ values: ['ultra-condensed:uc', 'extra-condensed:ec', 'condensed:c', 'semi-condensed:sc', 'normal:nl', 'semi-expanded:se', 'expanded:e', 'extra-expanded:ee', 'ultra-expanded:ue'],
1070
+ },
1071
+ 'font-style': {
1072
+ alias: '', // --
1073
+ type: 's',
1074
+ // compiler:'',
1075
+ values: ['normal:nl', 'italic:i', 'oblique:o'],
1076
+ },
1077
+ 'font-synthesis': {
1078
+ alias: '',
1079
+ type: 'd',
1080
+ compiler: length,
1081
+ values: ['none:n', 'weight:w',],
1082
+ },
1083
+ 'font-variant': {
1084
+ alias: 'fv',
1085
+ type: 's',
1086
+ // compiler:'',
1087
+ values: ['normal:nl', 'small-caps:sc'],
1088
+ },
1089
+ 'font-variant-alternates': {
1090
+ alias: 'fva',
1091
+ type: '',
1092
+ // compiler:'',
1093
+ values: [''],
1094
+ },
1095
+ 'font-variant-caps': {
1096
+ alias: 'fvc',
1097
+ type: 's',
1098
+ // compiler:'',
1099
+ values: ['normal:nl', 'small-caps:sc', 'all-small-caps:asc', 'petite-caps:pc', 'all-petite-caps:apc', 'unicase:u', 'titling-caps:tc'],
1100
+ },
1101
+ 'font-variant-east-asian': {
1102
+ alias: 'fvea',
1103
+ type: '',
1104
+ // compiler:'',
1105
+ values: [''],
1106
+ },
1107
+ 'font-variant-ligatures': {
1108
+ alias: 'fvl',
1109
+ type: 's',
1110
+ // compiler:'',
1111
+ values: ['normal:nl', 'none:n', 'common-ligatures:cl', 'no-common-ligatures:ncl', 'discretionary-ligatures:dl', 'no-discretionary-ligatures:ndl', 'historical-ligatures:hl', 'no-historical-ligatures:nhl', 'contextual:c', 'no-contextual:nc'],
1112
+ },
1113
+ 'font-variant-numeric': {
1114
+ alias: 'fvn',
1115
+ type: 's',
1116
+ // compiler:'',
1117
+ values: ['normal:nl', 'ordinal:o', 'slashed-zero:sz', 'lining-nums:ln', 'oldstyle-nums:on', 'proportional-nums:pn', 'tabular-nums:yn', 'diagonal-fractions:df', 'stacked-fractions:sf'],
1118
+ },
1119
+ 'font-variant-position': {
1120
+ alias: 'fvp',
1121
+ type: 's',
1122
+ // compiler:'',
1123
+ values: ['normal:nl', 'sub:s', 'super:su:s2'],
1124
+ },
1125
+ 'font-variant-emoji': {
1126
+ alias: 'fve',
1127
+ type: 's',
1128
+ // compiler:'',
1129
+ values: ['normal:nl', 'text:t', 'emoji:e', 'unicode:u'],
1130
+ },
1131
+ 'font-weight': {
1132
+ alias: 'fw',
1133
+ type: 's',
1134
+ // compiler:'',
1135
+ values: ['bolder:b2:blr', 'lighter:l:ltr', '100:1', '200:2', '300:3', '400:4:normal:nl', '500:5', '600:6', '700:7:bold:b', '800:8', '900:9'],
1136
+ },
1137
+ // ----------G--------
1138
+ 'gap': {
1139
+ alias: 'g',
1140
+ type: 'd',
1141
+ compiler: length,
1142
+ values: [''],
1143
+ },
1144
+ 'grid': {
1145
+ alias: 'gd',
1146
+ type: 'd',
1147
+ compiler: (value) => repeat(value).replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g, " $1($2 , $3 ) ")
1148
+ .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
1149
+ .replace(/-([\d|a|a|m|f])/g, ' $1')
1150
+ .replace(/([\d])d([\d])/g, '$1.$2').replace(/auto-flow-dense/g, 'auto-flow dense').replace(/auto flow/, 'auto-flow')
1151
+ .replace(/([\d])p([\s])/g, "$1% ").replace(/p$/, "%").replace(/-by[-\s]/g, ' / '),
1152
+ values: ['none:n'],
1153
+ },
1154
+ 'grid-area': {
1155
+ alias: 'ga',
1156
+ type: 'd',
1157
+ // compiler:lenByNumPer,
1158
+ compiler: (value) => value.replace(/--([\d])/g, '-Minus$1').replace(/^-/, '').replace(/-by-/g, " / ").replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ').replace(/[-]?Minus[\s]*/g, '-'),
1159
+ values: [''],
1160
+ },
1161
+ 'grid-auto-columns': {
1162
+ alias: 'gac',
1163
+ type: 'd',
1164
+ compiler: (value) => {
1165
+ // if(/^fit-content-/.test(value:string)){
1166
+ // return value.replace(/(fit-content)[-]([\w]+)/,"$1( $2 )") // fit-content-50px
1167
+ // .replace(/([\d])d([\d])/,'$1.$2').replace(/([\d])p([\s])/,"$1% ");
1168
+ // }
1169
+ // if(/^minmax-/.text(value:string)){
1170
+ return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g, " $1($2 , $3 ) ")
1171
+ .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
1172
+ .replace(/-([\d|a|a|f|m])/g, ' $1')
1173
+ .replace(/([\d])d([\d])/g, '$1.$2')
1174
+ .replace(/([\d])p([\s])/g, "$1% ").replace(/p$/, "%");
1175
+ // }
1176
+ },
1177
+ values: ['max-content:xc', 'min-content:mc', 'auto:a'],
1178
+ },
1179
+ 'grid-auto-flow': {
1180
+ alias: 'gaf',
1181
+ type: 's',
1182
+ // compiler:'',
1183
+ values: ['row:r', 'column:c', 'dense:d', 'row dense:row-dense:rd', 'column dense:column-dense:cd'],
1184
+ },
1185
+ 'grid-auto-rows': {
1186
+ alias: 'gar',
1187
+ type: 'd',
1188
+ compiler: (value) => {
1189
+ // if(/^fit-content-/.test(value:string)){
1190
+ // return value.replace(/(fit-content)[-]([\w]+)/,"$1( $2 )") // fit-content-50px
1191
+ // .replace(/([\d])d([\d])/,'$1.$2').replace(/([\d])p([\s])/,"$1% ");
1192
+ // }
1193
+ // if(/^minmax-/.text(value:string)){
1194
+ return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g, " $1($2 , $3 ) ")
1195
+ .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
1196
+ .replace(/-([\d|a|a|f|m])/g, ' $1')
1197
+ .replace(/([\d])d([\d])/g, '$1.$2')
1198
+ .replace(/([\d])p([\s])/g, "$1% ").replace(/p$/, "%");
1199
+ // }
1200
+ },
1201
+ values: ['max-content:xc', 'min-content:mc', 'auto:a'],
1202
+ },
1203
+ 'grid-column': {
1204
+ alias: 'gc',
1205
+ type: 'd',
1206
+ // compiler:lenByNumPer,
1207
+ compiler: (value) => value.replace(/--([\d])/g, '-Minus$1').replace(/^-/, '').replace(/-by-/g, " / ").replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ').replace(/[-]?Minus[\s]*/g, '-'),
1208
+ values: [],
1209
+ },
1210
+ 'grid-column-end': {
1211
+ alias: 'gce',
1212
+ type: 'd',
1213
+ // compiler:lenByNumPer,
1214
+ compiler: (value) => value.replace(/--([\d])/g, '-Minus$1').replace(/^-/, '').replace(/-by-/g, " / ").replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ').replace(/[-]?Minus[\s]*/g, '-'),
1215
+ values: ['auto'],
1216
+ },
1217
+ 'grid-column-gap': {
1218
+ alias: 'gcg',
1219
+ type: 'd',
1220
+ compiler: length,
1221
+ values: [],
1222
+ },
1223
+ 'grid-column-start': {
1224
+ alias: 'gcs',
1225
+ type: 'd',
1226
+ // compiler:length,
1227
+ compiler: (value) => value.replace(/--([\d])/g, '-Minus$1').replace(/^-/, '').replace(/-by-/g, " / ").replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ').replace(/[-]?Minus[\s]*/g, '-'),
1228
+ values: ['auto:a'],
1229
+ },
1230
+ 'grid-gap': {
1231
+ alias: 'gg',
1232
+ type: 'd',
1233
+ compiler: lenByNumPer,
1234
+ values: [],
1235
+ },
1236
+ 'grid-row': {
1237
+ alias: 'gr',
1238
+ type: 'd',
1239
+ // compiler:lenByNumPer,
1240
+ compiler: (value) => value.replace(/--([\d])/g, '-Minus$1').replace(/^-/, '').replace(/-by-/g, " / ").replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ').replace(/[-]?Minus[\s]*/g, '-'),
1241
+ values: ['auto:a', 'auto / auto:auto-auto'],
1242
+ },
1243
+ 'grid-row-end': {
1244
+ alias: 'gre',
1245
+ type: 'd',
1246
+ // compiler:lenByNumPer,
1247
+ compiler: (value) => value.replace(/--([\d])/g, '-Minus$1').replace(/^-/, '').replace(/-by-/g, " / ").replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ').replace(/[-]?Minus[\s]*/g, '-'),
1248
+ values: ['auto:a'],
1249
+ },
1250
+ 'grid-row-gap': {
1251
+ alias: 'grg',
1252
+ type: 'd',
1253
+ compiler: length,
1254
+ values: [],
1255
+ },
1256
+ 'grid-row-start': {
1257
+ alias: 'grs',
1258
+ type: 'd',
1259
+ // compiler:lenByNumPer,
1260
+ compiler: (value) => value.replace(/--([\d])/g, '-Minus$1').replace(/^-/, '').replace(/-by-/g, " / ").replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ').replace(/[-]?Minus[\s]*/g, '-'),
1261
+ values: ['auto:a'],
1262
+ },
1263
+ 'grid-template': {
1264
+ alias: 'gt',
1265
+ type: 'd',
1266
+ compiler: repeat,
1267
+ values: ['none:n'],
1268
+ },
1269
+ 'grid-template-areas': {
1270
+ alias: 'gta',
1271
+ type: 'd',
1272
+ compiler: (value) => value.replace(/[-]?([\w]+)/g, "'$1' ").replace(/_/g, " ").replace(/dot/g, '.'),
1273
+ values: ['none'],
1274
+ },
1275
+ 'grid-template-columns': {
1276
+ alias: 'gtc',
1277
+ type: 'd',
1278
+ compiler: repeat,
1279
+ // compiler:(value:string)=>{
1280
+ // return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g," $1($2 , $3 ) ")
1281
+ // .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
1282
+ // .replace(/-([\d|a|a|m|f])/g,' $1')
1283
+ // .replace(/([\d])d([\d])/g,'$1.$2')
1284
+ // .replace(/([\d])p([\s])/g,"$1% ").replace(/p$/,"%");
1285
+ // },
1286
+ values: ['subgrid:sg:s', 'masonry:m', 'none:n'],
1287
+ },
1288
+ 'grid-template-rows': {
1289
+ alias: 'gtr',
1290
+ type: 'd',
1291
+ compiler: repeat,
1292
+ // compiler:(value:string)=>{
1293
+ // return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g," $1($2 , $3 ) ")
1294
+ // .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
1295
+ // .replace(/-([\d|a|a|f|m])/g,' $1')
1296
+ // .replace(/([\d])d([\d])/g,'$1.$2')
1297
+ // .replace(/([\d])p([\s])/g,"$1% ").replace(/p$/,"%");
1298
+ // },
1299
+ values: ['subgrid:sg:s', 'masonry:m', 'none:n'],
1300
+ },
1301
+ // ----------H--------
1302
+ 'hanging-punctuation': {
1303
+ alias: 'hp',
1304
+ type: 'd',
1305
+ compiler: (value) => value.replace(/-e/g, 'E').replace(/-/g, ' ').replace(/E/g, '-e'),
1306
+ values: ['none:n', 'first:f', 'last:l', 'force-end:fe', 'allow-end:ae'],
1307
+ },
1308
+ 'height': {
1309
+ alias: 'h', // --
1310
+ type: 'd',
1311
+ compiler: length,
1312
+ values: ['auto:a', 'max-content:xc', 'min-content:mc'],
1313
+ },
1314
+ 'hyphens': {
1315
+ alias: '',
1316
+ type: 's',
1317
+ // compiler:'',
1318
+ values: ['auto:a', 'none:n', 'manual:m'],
1319
+ },
1320
+ // ----------I--------
1321
+ 'image-orientation': {
1322
+ alias: 'io',
1323
+ type: 's',
1324
+ // compiler:'',
1325
+ values: ['none:n', 'from-image:fi'],
1326
+ },
1327
+ 'image-rendering': {
1328
+ alias: 'ir',
1329
+ type: 's',
1330
+ // compiler:'',
1331
+ values: ['auto:a', 'crisp-edges:ce', 'pixelated:p'],
1332
+ },
1333
+ 'initial-letter': {
1334
+ 'alias': 'il',
1335
+ compiler: (value) => value.replace(/^-/, '').replace(/(\d)d(\d)/, '$1.$2'),
1336
+ values: ['normal:nl']
1337
+ },
1338
+ 'inline-size': {
1339
+ alias: 'is',
1340
+ type: 'd',
1341
+ compiler: length,
1342
+ values: ['auto:a', 'max-content:xc', 'min-content:mc'],
1343
+ },
1344
+ 'inset': {
1345
+ alias: 'i',
1346
+ type: 'd',
1347
+ compiler: length,
1348
+ values: ['auto:a'],
1349
+ },
1350
+ 'inset-area': {
1351
+ alias: 'ia',
1352
+ values: ['none:n', 'top left:top-left:tl', 'start end:start-end:se', 'block-start center:block-start-center:bsc',
1353
+ 'inline-start block-end:inline-start block-end:isbe', 'x-start y-end:x-start-y-end:xsye',
1354
+ 'center y-self-end:center-y-self-end:cye', 'top span-left:top-span-left:tsl',
1355
+ 'center span-start:center-span-start:css', 'inline-start span-block-end:inline-start-span-block-end:issbe',
1356
+ 'y-start span-x-end:y-start-span-x-end:yssxe', 'top span-all:top-span-all:tsa', 'block-end span-all:block-end-span-all:besa',
1357
+ 'x-self-start span-all:x-self-start-span-all:xsssa', 'top:t', 'inline-start:is', 'center:c', 'span-all:sa', 'end:e'
1358
+ ],
1359
+ },
1360
+ 'inset-block': {
1361
+ alias: 'ib',
1362
+ type: 'd',
1363
+ compiler: length,
1364
+ values: ['auto:a'],
1365
+ },
1366
+ 'inset-block-end': {
1367
+ alias: 'ibe',
1368
+ type: 'd',
1369
+ compiler: length,
1370
+ values: ['auto:a'],
1371
+ },
1372
+ 'inset-block-start': {
1373
+ alias: 'ibs',
1374
+ type: 'd',
1375
+ compiler: length,
1376
+ values: ['auto:a'],
1377
+ },
1378
+ 'inset-inline': {
1379
+ alias: 'ii',
1380
+ type: 'd',
1381
+ compiler: length,
1382
+ values: ['auto:a'],
1383
+ },
1384
+ 'inset-inline-end': {
1385
+ alias: 'iie',
1386
+ type: 'd',
1387
+ compiler: length,
1388
+ values: ['auto:a'],
1389
+ },
1390
+ 'inset-inline-start': {
1391
+ alias: 'iis',
1392
+ type: 'd',
1393
+ compiler: length,
1394
+ values: ['auto:a'],
1395
+ },
1396
+ 'isolation': {
1397
+ alias: '',
1398
+ type: 's',
1399
+ // compiler:'',
1400
+ values: ['auto:a', 'isolate:i'],
1401
+ },
1402
+ // ----------J--------
1403
+ 'justify-content': {
1404
+ alias: 'jc',
1405
+ type: 's',
1406
+ // compiler:'',
1407
+ values: ['flex-start:fs', 'flex-end:fe', 'center:c', 'space-around:sa', 'space-evenly:se', 'space-between:sb'],
1408
+ },
1409
+ 'justify-items': {
1410
+ alias: 'ji',
1411
+ type: 's',
1412
+ // compiler:'',
1413
+ values: ['legacy:le|l2', 'stretch:st|s2', 'start:s', 'left:l', 'center:c', 'end:e', 'right:r', 'flex-start:fs', 'flex-end:fe',
1414
+ 'normal:nl', 'baseline:b', 'first baseline:first-baseline:fb', 'last baseline:last-baseline:fl', 'self-start:ss', 'self-end:se',
1415
+ 'unsafe:us', 'safe center:safe-center:sc', 'unsafe center:unsafe-center:uc', 'legacy right:legacy-right:lr',
1416
+ 'legacy left:legacy-left:ll', 'legacy center:legacy-center:lc'],
1417
+ },
1418
+ 'justify-self': {
1419
+ alias: 'js',
1420
+ type: 's',
1421
+ // compiler:'',
1422
+ values: ['auto:a', 'normal:nl', 'stretch:st:s2', 'center:c', 'start:s', 'end:e', 'flex-start:fs', 'flex-end:fe',
1423
+ 'self-start:ss', 'self-end:se', 'left:l', 'right:r', 'baseline:b', 'first baseline:first-baseline:fb', 'last baseline:last-baseline:lb',
1424
+ 'safe center:safe-center:sc', 'unsafe center:unsafe-center:uc'],
1425
+ },
1426
+ // ----------K--------
1427
+ // ----------L--------
1428
+ 'left': {
1429
+ alias: 'l',
1430
+ type: 'd',
1431
+ compiler: length,
1432
+ values: ['auto:a'],
1433
+ },
1434
+ 'letter-spacing': {
1435
+ alias: 'les',
1436
+ type: 'd',
1437
+ compiler: length,
1438
+ values: ['normal:nl'],
1439
+ },
1440
+ 'line-break': {
1441
+ alias: 'lb',
1442
+ type: 's',
1443
+ // compiler:'',
1444
+ values: ['auto:a', 'loose:l', 'normal:nl', 'strict:s', 'anywhere:aw:a2'],
1445
+ },
1446
+ 'line-clamp': {
1447
+ compiler: (value) => value.replace(/^-/, ''),
1448
+ values: ['none:n']
1449
+ },
1450
+ 'line-height': {
1451
+ alias: 'lh',
1452
+ type: 'd',
1453
+ compiler: length,
1454
+ values: ['normal:nl'],
1455
+ },
1456
+ 'list-style': {
1457
+ alias: 'ls', // --
1458
+ type: '',
1459
+ // compiler:'',
1460
+ values: ['armenian:a:ar', 'circle:c', 'cjk-ideographic:ci', 'hebrew:h', 'hiragana:hira:h2', 'hiragana-iroha:hi', 'katakana:k',
1461
+ 'katakana-iroha:ki', 'decimal:d', 'decimal-leading-zero:dlz', 'disc:di:d2', 'georgian:g', 'lower-alpha:la',
1462
+ 'lower-greek:lg', 'lower-latin:ll', 'lower-roman:lr', 'none:n', 'square:s', 'upper-alpha:ua', 'upper-latin:ul'],
1463
+ },
1464
+ 'list-style-image': {
1465
+ alias: 'lsi',
1466
+ type: 'd',
1467
+ compiler: (value, custom) => {
1468
+ if (value.match(/^[-]?url/)) {
1469
+ return url(value);
1470
+ }
1471
+ else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
1472
+ return gradient(value, custom);
1473
+ }
1474
+ else {
1475
+ return null;
1476
+ }
1477
+ },
1478
+ values: ['none:n'],
1479
+ },
1480
+ 'list-style-position': {
1481
+ alias: 'lsp',
1482
+ type: 's',
1483
+ // compiler:'',
1484
+ values: ['inside:i', 'outside:o'],
1485
+ },
1486
+ 'list-style-type': {
1487
+ alias: 'lst',
1488
+ type: 's',
1489
+ // compiler:'',
1490
+ values: ['armenian:a:ar', 'circle:c', 'cjk-ideographic:ci', 'hebrew:h', 'hiragana:hira:h2', 'hiragana-iroha:hi', 'katakana:k',
1491
+ 'katakana-iroha:ki', 'decimal:d', 'decimal-leading-zero:dlz', 'disc:di:d2', 'georgian:g', 'lower-alpha:la',
1492
+ 'lower-greek:lg', 'lower-latin:ll', 'lower-roman:lr', 'none:n', 'square:s', 'upper-alpha:ua', 'upper-latin:ul',],
1493
+ },
1494
+ // ----------M--------
1495
+ 'margin': {
1496
+ alias: 'm',
1497
+ type: 'd',
1498
+ compiler: length,
1499
+ values: [],
1500
+ },
1501
+ 'margin-block': {
1502
+ alias: '',
1503
+ type: 'd',
1504
+ compiler: length,
1505
+ values: ['auto:a'],
1506
+ },
1507
+ 'margin-block-end': {
1508
+ alias: 'mbe',
1509
+ type: 'd',
1510
+ compiler: length,
1511
+ values: ['auto:a'],
1512
+ },
1513
+ 'margin-block-start': {
1514
+ alias: 'mbs',
1515
+ type: 'd',
1516
+ compiler: length,
1517
+ values: ['auto:a'],
1518
+ },
1519
+ 'margin-bottom': {
1520
+ alias: 'mb',
1521
+ type: 'd',
1522
+ compiler: length,
1523
+ values: ['auto:a'],
1524
+ },
1525
+ 'margin-inline': {
1526
+ alias: 'mi',
1527
+ type: 'd',
1528
+ compiler: length,
1529
+ values: ['auto:a'],
1530
+ },
1531
+ 'margin-inline-end': {
1532
+ alias: 'mie',
1533
+ type: 'd',
1534
+ compiler: length,
1535
+ values: ['auto:a'],
1536
+ },
1537
+ 'margin-inline-start': {
1538
+ alias: 'mis',
1539
+ type: 'd',
1540
+ compiler: length,
1541
+ values: ['auto:a'],
1542
+ },
1543
+ 'margin-left': {
1544
+ alias: 'ml',
1545
+ type: 'd',
1546
+ compiler: length,
1547
+ values: ['auto:a'],
1548
+ },
1549
+ 'margin-right': {
1550
+ alias: 'mr',
1551
+ type: 'd',
1552
+ compiler: length,
1553
+ values: ['auto:a'],
1554
+ },
1555
+ 'margin-top': {
1556
+ alias: 'mt',
1557
+ type: 'd',
1558
+ compiler: length,
1559
+ values: ['auto:a'],
1560
+ },
1561
+ 'mask': {
1562
+ alias: '', // --
1563
+ type: '',
1564
+ // compiler:'',
1565
+ values: ['none:n'],
1566
+ },
1567
+ 'mask-border': {},
1568
+ 'mask-clip': {
1569
+ alias: '',
1570
+ type: '',
1571
+ // compiler:'',
1572
+ values: ['no-clip:nc', 'content-box:cb', 'padding-box:pb', 'border-box:bb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
1573
+ },
1574
+ 'mask-composite': {
1575
+ alias: '',
1576
+ type: 's',
1577
+ // compiler:'',
1578
+ values: ['add:a', 'subtract:s', 'intersect:i', 'exclude:e'],
1579
+ },
1580
+ 'mask-image': {
1581
+ alias: '',
1582
+ type: 'd',
1583
+ compiler: (value, custom) => {
1584
+ if (value.match(/^[-]?url/)) {
1585
+ return url(value);
1586
+ }
1587
+ else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
1588
+ return gradient(value, custom);
1589
+ }
1590
+ else {
1591
+ return null;
1592
+ }
1593
+ },
1594
+ values: [''],
1595
+ },
1596
+ 'mask-mode': {
1597
+ alias: '',
1598
+ type: 's',
1599
+ // compiler:'',
1600
+ values: ['alpha:a', 'luminance:l', 'match-source:ms'],
1601
+ },
1602
+ 'mask-origin': {
1603
+ alias: '',
1604
+ type: 's',
1605
+ // compiler:'',
1606
+ values: ['content-box:cb', 'padding-box:pb', 'border-box:bb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
1607
+ },
1608
+ 'mask-position': {
1609
+ alias: '',
1610
+ type: 'd',
1611
+ compiler: length,
1612
+ values: ['top:t', 'right:r', 'bottom:b', 'left:l', 'center:c'],
1613
+ },
1614
+ 'mask-repeat': {
1615
+ alias: '',
1616
+ type: 's',
1617
+ // compiler:'',
1618
+ values: ['repeat-x:rx', 'repeat-y:ry', 'repeat:r', 'space:r', 'round:ro:r2', 'no-repeat:nr'],
1619
+ },
1620
+ 'mask-size': {
1621
+ alias: '',
1622
+ type: 'd',
1623
+ compiler: length,
1624
+ values: ['cover:c', 'contain:con:c2', 'auto:a'],
1625
+ },
1626
+ 'mask-type': {
1627
+ alias: '',
1628
+ type: 'd',
1629
+ compiler: length,
1630
+ values: ['alpha:a', 'luminance:l'],
1631
+ },
1632
+ 'math-depth': {
1633
+ alias: '',
1634
+ type: 'd',
1635
+ compiler: (value) => value.replace(/^-/, '').replace(/add-([-]?[\d]+)/, 'add($1)'),
1636
+ values: ['auto-add:aa'],
1637
+ },
1638
+ 'math-shift': {
1639
+ alias: '',
1640
+ type: 's',
1641
+ // compiler:'',
1642
+ values: ['normal:nl', 'compact:c'],
1643
+ },
1644
+ 'math-style': {
1645
+ alias: '',
1646
+ type: 'd',
1647
+ // compiler:'',
1648
+ values: ['normal:nl', 'compact:c'],
1649
+ },
1650
+ 'max-height': {
1651
+ alias: 'xh',
1652
+ type: 'd',
1653
+ compiler: length,
1654
+ values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
1655
+ },
1656
+ 'max-width': {
1657
+ alias: 'xw',
1658
+ type: 'd',
1659
+ compiler: length,
1660
+ values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
1661
+ },
1662
+ 'max-block-size': {
1663
+ alias: 'xbs',
1664
+ type: 'd',
1665
+ compiler: length,
1666
+ values: ['max-content:xc', 'min-content:mc', 'none:n'],
1667
+ },
1668
+ 'max-inline-size': {
1669
+ alias: 'xis',
1670
+ type: 'd',
1671
+ compiler: length,
1672
+ values: ['max-content:xc', 'min-content:mc', 'none:n'],
1673
+ },
1674
+ 'min-block-size': {
1675
+ alias: '',
1676
+ type: 'd',
1677
+ compiler: length,
1678
+ values: ['max-content:xc', 'min-content:mc', 'none:n'],
1679
+ },
1680
+ 'min-inline-size': {
1681
+ alias: '',
1682
+ type: 'd',
1683
+ compiler: length,
1684
+ values: ['max-content:xc', 'min-content:mc', 'none:n'],
1685
+ },
1686
+ 'min-height': {
1687
+ alias: 'mh',
1688
+ type: 'd',
1689
+ compiler: length,
1690
+ values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
1691
+ },
1692
+ 'min-width': {
1693
+ alias: 'mw',
1694
+ type: 'd',
1695
+ compiler: length,
1696
+ values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
1697
+ },
1698
+ 'mix-blend-mode': {
1699
+ alias: 'mbm',
1700
+ type: 's',
1701
+ // compiler:'',
1702
+ values: mode,
1703
+ },
1704
+ // ----------O--------
1705
+ 'object-fit': {
1706
+ alias: '',
1707
+ type: 's',
1708
+ // compiler:'',
1709
+ values: ['contain:c', 'cover:co:c2', 'fill:f', 'none:n', 'scale-down:sd'],
1710
+ },
1711
+ 'object-position': {
1712
+ alias: '',
1713
+ type: 'd',
1714
+ compiler: length,
1715
+ values: ['top:t', 'left:l', 'center:c', 'bottom:b', 'right:r'],
1716
+ },
1717
+ // 'offset':{// --
1718
+ // alias:'',
1719
+ // type:'',
1720
+ // // compiler:'',
1721
+ // values:[''],
1722
+ // },
1723
+ 'offset-anchor': {
1724
+ alias: 'ofa',
1725
+ type: 'd',
1726
+ compiler: length,
1727
+ values: ['top:t', 'left:l', 'center:c', 'bottom:b', 'right:r', 'auto:a'],
1728
+ },
1729
+ 'offset-distance': {
1730
+ alias: 'ofd',
1731
+ type: 's',
1732
+ compiler: length,
1733
+ values: [''],
1734
+ },
1735
+ 'offset-path': {
1736
+ alias: 'ofp',
1737
+ type: 'd',
1738
+ compiler: clipPath,
1739
+ values: [''],
1740
+ },
1741
+ 'offset-position': {
1742
+ alias: 'ofpos',
1743
+ type: 'd',
1744
+ compiler: length,
1745
+ values: [''],
1746
+ },
1747
+ 'offset-rotate': {
1748
+ alias: 'ofr',
1749
+ type: 'd',
1750
+ compiler: length,
1751
+ values: ['auto:a', 'reverse:r'],
1752
+ },
1753
+ 'opacity': {
1754
+ alias: 'o',
1755
+ type: 'd',
1756
+ compiler: length,
1757
+ values: [''],
1758
+ },
1759
+ 'order': {
1760
+ alias: 'ord',
1761
+ type: 's',
1762
+ compiler: length,
1763
+ values: [''],
1764
+ },
1765
+ 'orphans': {
1766
+ alias: 'orp',
1767
+ type: 's',
1768
+ compiler: length,
1769
+ values: [''],
1770
+ },
1771
+ 'outline': {
1772
+ alias: 'ol',
1773
+ type: 's',
1774
+ compiler: border,
1775
+ values: ['none:n', 'auto:a'],
1776
+ },
1777
+ 'outline-color': {
1778
+ alias: 'olc',
1779
+ type: 'd',
1780
+ compiler: color,
1781
+ values: [''],
1782
+ },
1783
+ 'outline-offset': {
1784
+ alias: 'olo',
1785
+ type: 'd',
1786
+ compiler: length,
1787
+ values: [''],
1788
+ },
1789
+ 'outline-style': {
1790
+ alias: 'ols',
1791
+ type: 's',
1792
+ // compiler:'',
1793
+ values: style,
1794
+ },
1795
+ 'outline-width': {
1796
+ alias: 'olw',
1797
+ type: 'd',
1798
+ compiler: lenByNumPer,
1799
+ values: [''],
1800
+ },
1801
+ 'overflow': {
1802
+ alias: 'of',
1803
+ type: 's',
1804
+ // compiler:'',
1805
+ values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a',],
1806
+ },
1807
+ 'overflow-clip-margin': {
1808
+ 'alias': 'ocm',
1809
+ compiler: length,
1810
+ values: ['content-box:cb', 'padding-box:pb', 'border-box:bb']
1811
+ },
1812
+ 'overflow-anchor': {
1813
+ alias: 'oa',
1814
+ type: 's',
1815
+ // compiler:'',
1816
+ values: ['auto:a', 'none:n'],
1817
+ },
1818
+ 'overflow-wrap': {
1819
+ alias: 'ow',
1820
+ type: 's',
1821
+ // compiler:'',
1822
+ values: ['normal:nl', 'break-word:bw', 'anywhere:a:aw'],
1823
+ },
1824
+ 'overflow-x': {
1825
+ alias: 'ox',
1826
+ type: 's',
1827
+ // compiler:'',
1828
+ values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a',],
1829
+ },
1830
+ 'overflow-y': {
1831
+ alias: 'oy',
1832
+ type: 's',
1833
+ // compiler:'',
1834
+ values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a',],
1835
+ },
1836
+ 'overlay': {
1837
+ alias: 'olay',
1838
+ values: ['auto:a', 'none:n']
1839
+ },
1840
+ 'overscroll-behavior': {
1841
+ alias: 'ob',
1842
+ type: 's',
1843
+ // compiler:'',
1844
+ values: ['auto:a', 'contain:c', 'none:n'],
1845
+ },
1846
+ 'overscroll-behavior-block': {
1847
+ alias: 'obb',
1848
+ type: 's',
1849
+ // compiler:'',
1850
+ values: ['auto:a', 'contain:c', 'none:n'],
1851
+ },
1852
+ 'overscroll-behavior-inline': {
1853
+ alias: 'obi',
1854
+ type: 's',
1855
+ // compiler:'',
1856
+ values: ['auto:a', 'contain:c', 'none:n'],
1857
+ },
1858
+ 'overscroll-behavior-x': {
1859
+ alias: 'obx',
1860
+ type: 's',
1861
+ // compiler:'',
1862
+ values: ['auto:a', 'contain:c', 'none:n'],
1863
+ },
1864
+ 'overscroll-behavior-y': {
1865
+ alias: 'oby',
1866
+ type: 's',
1867
+ // compiler:'',
1868
+ values: ['auto:a', 'contain:c', 'none:n'],
1869
+ },
1870
+ // ----------P--------
1871
+ 'padding': {
1872
+ alias: 'p',
1873
+ type: 'd',
1874
+ compiler: length,
1875
+ values: [''],
1876
+ },
1877
+ 'padding-block': {
1878
+ alias: '',
1879
+ type: 's',
1880
+ compiler: length,
1881
+ values: [''],
1882
+ },
1883
+ 'padding-block-end': {
1884
+ alias: 'pbe',
1885
+ type: 'd',
1886
+ compiler: length,
1887
+ values: [''],
1888
+ },
1889
+ 'padding-block-start': {
1890
+ alias: 'pbs',
1891
+ type: 'd',
1892
+ compiler: length,
1893
+ values: [''],
1894
+ },
1895
+ 'padding-bottom': {
1896
+ alias: 'pb',
1897
+ type: 'd',
1898
+ compiler: length,
1899
+ values: [''],
1900
+ },
1901
+ 'padding-inline': {
1902
+ alias: 'pi',
1903
+ type: 'd',
1904
+ compiler: length,
1905
+ values: [''],
1906
+ },
1907
+ 'padding-inline-end': {
1908
+ alias: 'pie',
1909
+ type: 'd',
1910
+ compiler: length,
1911
+ values: [''],
1912
+ },
1913
+ 'padding-inline-start': {
1914
+ alias: 'pis',
1915
+ type: 'd',
1916
+ compiler: length,
1917
+ values: [''],
1918
+ },
1919
+ 'padding-left': {
1920
+ alias: 'pl',
1921
+ type: 'd',
1922
+ compiler: length,
1923
+ values: [''],
1924
+ },
1925
+ 'padding-right': {
1926
+ alias: 'pr',
1927
+ type: 'd',
1928
+ compiler: length,
1929
+ values: [''],
1930
+ },
1931
+ 'padding-top': {
1932
+ alias: 'pt',
1933
+ type: 'd',
1934
+ compiler: length,
1935
+ values: [''],
1936
+ },
1937
+ 'page': {
1938
+ alias: 'pg',
1939
+ type: 'd',
1940
+ compiler: (value) => value.replace(/^-/, ''),
1941
+ values: ['auto:a']
1942
+ },
1943
+ 'page-break-after': {
1944
+ alias: 'pba',
1945
+ type: 's',
1946
+ // compiler:'',
1947
+ values: ['auto:a', 'always:al:a3', 'avoid:av:a2', 'left:l', 'right:r', 'recto:rc:r2', 'verso:v'],
1948
+ },
1949
+ 'page-break-before': {
1950
+ alias: 'pbb',
1951
+ type: 's',
1952
+ // compiler:'',
1953
+ values: ['auto:a', 'always:al:a3', 'avoid:av:a2', 'left:l', 'right:r', 'recto:rc:r2', 'verso:v'],
1954
+ },
1955
+ 'page-break-inside': {
1956
+ alias: 'pbi',
1957
+ type: 's',
1958
+ // compiler:'',
1959
+ values: ['auto:a', 'avoid:av:a2'],
1960
+ },
1961
+ 'paint-order': {
1962
+ alias: 'po',
1963
+ type: 's',
1964
+ // compiler:'',
1965
+ values: ['fill:f', 'stroke:s', 'markers:m', 'normal:nl'],
1966
+ },
1967
+ 'perspective': {
1968
+ alias: 'pers',
1969
+ type: 'd',
1970
+ compiler: length,
1971
+ values: ['none:n'],
1972
+ },
1973
+ 'perspective-origin': {
1974
+ alias: 'perso',
1975
+ type: 's',
1976
+ compiler: length,
1977
+ values: [''],
1978
+ },
1979
+ 'place-content': {
1980
+ alias: 'pc',
1981
+ type: 'd',
1982
+ compiler: (value) => {
1983
+ const m = /[-]?(start|end|flex-start|flex-end|center|left|right|space-between|baseline|first|last|space-evenly|space-around|stretch|safe|unsafe)/g;
1984
+ return value.replace(m, " $1");
1985
+ },
1986
+ values: [''],
1987
+ },
1988
+ 'place-items': {
1989
+ alias: '',
1990
+ type: 'd',
1991
+ compiler: (value) => {
1992
+ const m = /[-]?(start|end|flex-start|flex-end|self-start|self-end|normal|center|baseline|first|last|auto|right|left|legacy|stretch|safe|unsafe)/g;
1993
+ return value.replace(m, " $1");
1994
+ },
1995
+ values: [''],
1996
+ },
1997
+ 'place-self': {
1998
+ alias: 'ps',
1999
+ type: 'd',
2000
+ compiler: (value) => {
2001
+ const m = /[-]?(start|end|flex-start|flex-end|self-start|self-end|normal|center|baseline|first|last|auto|right|left|legacy|stretch|safe|unsafe)/g;
2002
+ return value.replace(m, " $1");
2003
+ },
2004
+ values: [''],
2005
+ },
2006
+ 'pointer-events': {
2007
+ alias: 'pe',
2008
+ type: 's',
2009
+ // compiler:'',
2010
+ values: ['auto:a', 'none:n', 'visiblePainted:vp', 'visibleFill:vf', 'visibleStroke:vs', 'visible:v', 'painted:p', 'fill:f', 'stroke:s', 'all']
2011
+ },
2012
+ 'position': {
2013
+ alias: 'pos',
2014
+ type: 's',
2015
+ // compiler:'',
2016
+ values: ['static:st:s2', 'absolute:a', 'fixed:f', 'relative:r', 'sticky:s'],
2017
+ },
2018
+ 'position-anchor': {
2019
+ alias: 'pa',
2020
+ type: 'd',
2021
+ compiler: (value) => "-" + value,
2022
+ values: ['none:n']
2023
+ },
2024
+ 'print-color-adjust': {
2025
+ alias: 'pca',
2026
+ type: 's',
2027
+ // compiler:'',
2028
+ values: ['economy:e', 'exact:ex'],
2029
+ },
2030
+ // ----------Q--------
2031
+ 'quotes': {
2032
+ alias: 'q',
2033
+ type: '',
2034
+ // compiler:'',
2035
+ values: ['none:n', 'auto:a'],
2036
+ },
2037
+ // ----------R--------
2038
+ 'resize': {
2039
+ alias: 'rs',
2040
+ type: 's',
2041
+ // compiler:'',
2042
+ values: ['none:n', 'both:b', 'horizontal:h', 'vertical:v'],
2043
+ },
2044
+ 'right': {
2045
+ alias: 'r',
2046
+ type: 'd',
2047
+ compiler: length,
2048
+ values: ['auto:a'],
2049
+ },
2050
+ 'rotate': {
2051
+ alias: 'rt',
2052
+ type: 'd',
2053
+ compiler: lenByNumPer,
2054
+ values: ['none:n'],
2055
+ },
2056
+ 'row-gap': {
2057
+ alias: 'rg',
2058
+ type: 'd',
2059
+ compiler: length,
2060
+ values: [''],
2061
+ },
2062
+ // ----------S--------
2063
+ 'scale': {
2064
+ alias: 's',
2065
+ type: 'd',
2066
+ compiler: length,
2067
+ values: ['none:n'],
2068
+ },
2069
+ 'scroll-behavior': {
2070
+ alias: 'sb',
2071
+ type: 's',
2072
+ // compiler:'',
2073
+ values: ['auto:a', 'smooth:s'],
2074
+ },
2075
+ 'scroll-margin': {
2076
+ alias: 'sm',
2077
+ type: 'd',
2078
+ compiler: length,
2079
+ values: [''],
2080
+ },
2081
+ 'scroll-margin-block': {
2082
+ alias: '',
2083
+ type: 'd',
2084
+ compiler: length,
2085
+ values: [''],
2086
+ },
2087
+ 'scroll-margin-block-end': {
2088
+ alias: 'smbe',
2089
+ type: 'd',
2090
+ compiler: length,
2091
+ values: [''],
2092
+ },
2093
+ 'scroll-margin-block-start': {
2094
+ alias: 'smbs',
2095
+ type: 'd',
2096
+ compiler: length,
2097
+ values: [''],
2098
+ },
2099
+ 'scroll-margin-bottom': {
2100
+ alias: 'smb',
2101
+ type: 'd',
2102
+ compiler: length,
2103
+ values: [''],
2104
+ },
2105
+ 'scroll-margin-inline': {
2106
+ alias: 'smi',
2107
+ type: 'd',
2108
+ compiler: length,
2109
+ values: [''],
2110
+ },
2111
+ 'scroll-margin-inline-end': {
2112
+ alias: 'smie',
2113
+ type: 'd',
2114
+ compiler: length,
2115
+ values: [''],
2116
+ },
2117
+ 'scroll-margin-inline-start': {
2118
+ alias: 'smis',
2119
+ type: 'd',
2120
+ compiler: length,
2121
+ values: [''],
2122
+ },
2123
+ 'scroll-margin-left': {
2124
+ alias: 'sml',
2125
+ type: 'd',
2126
+ compiler: length,
2127
+ values: [''],
2128
+ },
2129
+ 'scroll-margin-right': {
2130
+ alias: 'smr',
2131
+ type: 'd',
2132
+ compiler: length,
2133
+ values: [''],
2134
+ },
2135
+ 'scroll-margin-top': {
2136
+ alias: 'smt',
2137
+ type: 'd',
2138
+ compiler: length,
2139
+ values: [''],
2140
+ },
2141
+ 'scroll-padding': {
2142
+ alias: 'sp',
2143
+ type: 'd',
2144
+ compiler: length,
2145
+ values: [''],
2146
+ },
2147
+ 'scroll-padding-block': {
2148
+ alias: '',
2149
+ type: 'd',
2150
+ compiler: length,
2151
+ values: [''],
2152
+ },
2153
+ 'scroll-padding-block-end': {
2154
+ alias: 'spbe',
2155
+ type: 'd',
2156
+ compiler: length,
2157
+ values: [''],
2158
+ },
2159
+ 'scroll-padding-block-start': {
2160
+ alias: 'spbs',
2161
+ type: 'd',
2162
+ compiler: length,
2163
+ values: [''],
2164
+ },
2165
+ 'scroll-padding-bottom': {
2166
+ alias: 'spb',
2167
+ type: 'd',
2168
+ compiler: length,
2169
+ values: [''],
2170
+ },
2171
+ 'scroll-padding-inline': {
2172
+ alias: 'spi',
2173
+ type: 'd',
2174
+ compiler: length,
2175
+ values: [''],
2176
+ },
2177
+ 'scroll-padding-inline-end': {
2178
+ alias: 'spie',
2179
+ type: 'd',
2180
+ compiler: length,
2181
+ values: [''],
2182
+ },
2183
+ 'scroll-padding-inline-start': {
2184
+ alias: 'spis',
2185
+ type: 'd',
2186
+ compiler: length,
2187
+ values: [''],
2188
+ },
2189
+ 'scroll-padding-left': {
2190
+ alias: 'spl',
2191
+ type: 'd',
2192
+ compiler: length,
2193
+ values: [''],
2194
+ },
2195
+ 'scroll-padding-right': {
2196
+ alias: 'spr',
2197
+ type: 'd',
2198
+ compiler: length,
2199
+ values: [''],
2200
+ },
2201
+ 'scroll-padding-top': {
2202
+ alias: 'spt',
2203
+ type: 'd',
2204
+ compiler: length,
2205
+ values: [''],
2206
+ },
2207
+ 'scroll-snap-align': {
2208
+ alias: 'ssa',
2209
+ type: 's',
2210
+ // compiler:'',
2211
+ values: ['start:s', 'end:e', 'center:c'],
2212
+ },
2213
+ 'scroll-snap-stop': {
2214
+ alias: 'sss',
2215
+ type: 's',
2216
+ // compiler:'',
2217
+ values: ['always:al:a', 'normal:nl'],
2218
+ },
2219
+ 'scroll-snap-type': {
2220
+ alias: 'sst',
2221
+ type: 's',
2222
+ // compiler:'',
2223
+ values: ['x', 'y', 'block:b', 'inline:i', 'both:bo:b2',
2224
+ 'x mandatory:x-mandatory:xm', 'y proximity:y-proximity:yp', 'both mandatory:both-mandatory:bm',
2225
+ 'y mandatory:y-mandatory:ym', 'x proximity:x-proximity:xp', 'both proximity:both-proximity:bp',
2226
+ ],
2227
+ },
2228
+ 'scroll-timeline': {
2229
+ 'alias': 'st',
2230
+ compiler: (value) => ('-' + value).replace(/-(block|inline|y|x)/, " $1").replace(/^--none[\s]/, 'none '),
2231
+ values: ['none:n']
2232
+ },
2233
+ 'scroll-timeline-axis': {
2234
+ 'alias': 'sta',
2235
+ // compiler:'',
2236
+ values: ['none:n', 'block:b', 'inline:i', 'y', 'x']
2237
+ },
2238
+ 'scroll-timeline-name': {
2239
+ 'alias': 'stn',
2240
+ compiler: (value) => '-' + value,
2241
+ values: ['none:n']
2242
+ },
2243
+ 'scrollbar-color': {
2244
+ alias: 'sbc',
2245
+ type: 'd',
2246
+ compiler: color,
2247
+ values: [''],
2248
+ },
2249
+ 'scrollbar-gutter': {
2250
+ alias: 'sbg',
2251
+ type: 'd',
2252
+ // compiler:'',
2253
+ values: ['auto:a', 'stable:s', 'stable both-edges:stable-both-edges:sbe'],
2254
+ },
2255
+ 'scrollbar-width': {
2256
+ alias: 'sbw',
2257
+ type: 'd',
2258
+ compiler: color,
2259
+ values: [''],
2260
+ },
2261
+ 'shape-image-threshold': {
2262
+ alias: 'sit',
2263
+ type: 'd',
2264
+ compiler: length,
2265
+ values: []
2266
+ }, // 0.7;'
2267
+ 'shape-margin': {
2268
+ alias: '',
2269
+ type: 'd',
2270
+ compiler: length,
2271
+ values: [],
2272
+ },
2273
+ 'shape-outside': {
2274
+ alias: 'so',
2275
+ type: 'd',
2276
+ compiler: clipPath,
2277
+ values: ['none:n', 'margin-box:mb', 'border-box:bb', 'padding-box:pb', 'content-box:cb'],
2278
+ },
2279
+ // ----------T--------
2280
+ 'tab-size': {
2281
+ alias: 'ts',
2282
+ type: 'd',
2283
+ compiler: length,
2284
+ values: [''],
2285
+ },
2286
+ 'table-layout': {
2287
+ alias: 'tl',
2288
+ type: 's',
2289
+ // compiler:'',
2290
+ values: ['auto:a', 'fixed:f'],
2291
+ },
2292
+ 'text-align': {
2293
+ alias: 'ta',
2294
+ type: 's',
2295
+ // compiler:'',
2296
+ values: ['auto:a', 'left:l', 'right:r', 'center:c', 'justify:j', 'end:e', 'start:s'],
2297
+ },
2298
+ 'text-align-last': {
2299
+ alias: 'tal',
2300
+ type: 's',
2301
+ // compiler:'',
2302
+ values: ['auto:a', 'left:l', 'right:r', 'center:c', 'justify:j', 'end:e', 'start:s'],
2303
+ },
2304
+ 'text-combine-upright': {
2305
+ alias: '',
2306
+ type: '',
2307
+ // compiler:'',
2308
+ values: [''],
2309
+ },
2310
+ 'text-decoration': {
2311
+ alias: 'td',
2312
+ type: 's',
2313
+ // compiler:'',
2314
+ values: [...style, 'underline:u', 'overline:ol:o2', 'line-through:lt'],
2315
+ },
2316
+ 'text-decoration-color': {
2317
+ alias: 'tdc',
2318
+ type: 'd',
2319
+ compiler: color,
2320
+ values: [''],
2321
+ },
2322
+ 'text-decoration-line': {
2323
+ alias: 'tdln',
2324
+ type: '',
2325
+ // compiler:'',
2326
+ values: ['none:n', 'underline:u', 'overline:o', 'line-through:lt'],
2327
+ },
2328
+ 'text-decoration-style': {
2329
+ alias: 'tds',
2330
+ type: '',
2331
+ // compiler:'',
2332
+ values: [...style, 'wavy:w'],
2333
+ },
2334
+ 'text-decoration-thickness': {
2335
+ alias: 'tdt',
2336
+ type: 'd',
2337
+ compiler: length,
2338
+ values: ['auto:a', 'from-font:ff'],
2339
+ },
2340
+ 'text-emphasis': {
2341
+ alias: 'te',
2342
+ type: 's',
2343
+ // compiler:'',
2344
+ values: ['none:n', 'open:o', 'filled:f', 'dot:d', 'circle:c', 'double-circle:dc', 'triangle:t', 'sesame'],
2345
+ },
2346
+ 'text-indent': {
2347
+ alias: 'ti',
2348
+ type: 'd',
2349
+ compiler: length,
2350
+ values: [''],
2351
+ },
2352
+ 'text-justify': {
2353
+ alias: 'tj',
2354
+ type: 's',
2355
+ // compiler:'',
2356
+ values: ['none:n', 'inter-word:iw', 'inter-character:ic', 'distribute:d', 'auto:a'],
2357
+ },
2358
+ 'text-orientation': {
2359
+ alias: '', // --
2360
+ type: '',
2361
+ // compiler:'',
2362
+ values: ['mixed:m', 'upright:u', 'sideways:s', 'sideways-right:sr', 'use-glyph-orientation:ugo'],
2363
+ },
2364
+ 'text-overflow': {
2365
+ alias: 'to',
2366
+ type: 's',
2367
+ // compiler:'',
2368
+ values: ['clip:c', 'ellipsis:e', ''],
2369
+ },
2370
+ 'text-shadow': {
2371
+ alias: 'txs',
2372
+ type: 'd',
2373
+ compiler: shadow,
2374
+ values: [''],
2375
+ },
2376
+ 'text-transform': {
2377
+ alias: 'tt',
2378
+ type: 's',
2379
+ // compiler:'',
2380
+ values: ['none:n', 'capitalize:c', 'uppercase:u:uc', 'lowercase:l:lc', 'full-width:fw', 'full-size-kana:fsk'],
2381
+ },
2382
+ 'timeline-scope': {
2383
+ 'alias': 'tls',
2384
+ compiler: (value) => '-' + value,
2385
+ values: ['none:n']
2386
+ },
2387
+ 'text-underline-position': {
2388
+ alias: 'tup',
2389
+ type: 's',
2390
+ // compiler:'',
2391
+ values: ['auto:a', 'under:u', 'left:l', 'right:r'],
2392
+ },
2393
+ 'top': {
2394
+ alias: 't',
2395
+ type: 'd',
2396
+ compiler: length,
2397
+ values: ['auto:a'],
2398
+ },
2399
+ 'transform': {
2400
+ alias: 'tf',
2401
+ type: 'd',
2402
+ compiler: transform,
2403
+ values: ['none:n'],
2404
+ },
2405
+ 'transform-box': {
2406
+ alias: 'tfb',
2407
+ type: 's',
2408
+ // compiler:'',
2409
+ values: ['content-box:cb', 'border-box:bb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
2410
+ },
2411
+ 'transform-origin': {
2412
+ alias: 'tfo',
2413
+ type: 'd',
2414
+ compiler: length,
2415
+ values: [''],
2416
+ },
2417
+ 'transform-style': {
2418
+ alias: 'tfs',
2419
+ type: 's',
2420
+ // compiler:'',
2421
+ values: ['flat:f', 'preserve-3d:p:p3:p3d'],
2422
+ },
2423
+ 'transition': {
2424
+ alias: 'tn',
2425
+ type: 'd',
2426
+ compiler: transition,
2427
+ values: [''],
2428
+ },
2429
+ 'transition-behavior': {
2430
+ alias: 'tb',
2431
+ values: ['allow-discrete:ad', 'normal:nl'],
2432
+ },
2433
+ 'transition-delay': {
2434
+ alias: 'tdl',
2435
+ type: 'd',
2436
+ compiler: length,
2437
+ values: [''],
2438
+ },
2439
+ 'transition-duration': {
2440
+ alias: 'tdu',
2441
+ type: 'd',
2442
+ compiler: length,
2443
+ values: [''],
2444
+ },
2445
+ 'transition-property': {
2446
+ alias: 'tp',
2447
+ type: 'd',
2448
+ compiler: (value) => value.replace(/_[_]?/g, " , "),
2449
+ values: [''],
2450
+ },
2451
+ 'transition-timing-function': {
2452
+ alias: 'ttf',
2453
+ type: 'd',
2454
+ compiler: timingFunction,
2455
+ values: [''],
2456
+ },
2457
+ 'translate': {
2458
+ alias: '',
2459
+ type: 'd',
2460
+ compiler: length,
2461
+ values: ['none:n'],
2462
+ },
2463
+ 'touch-action': {
2464
+ alias: 'toa',
2465
+ values: ['auto:a', 'none:n', 'pan-x:px', 'pan-left:pl', 'pan-right:pr', 'pan-y:py', 'pan-up:pu', 'pan-down:pd', 'pinch-zoom:pz', 'manipulation:m']
2466
+ },
2467
+ // ----------U--------
2468
+ 'unicode-bidi': {
2469
+ alias: 'ub',
2470
+ type: 's',
2471
+ // compiler:'',
2472
+ values: ['normal:nl', 'embed:e', 'isolate:i', 'bidi-override:bo', 'isolate-override:io', 'plaintext:p|pt'],
2473
+ },
2474
+ 'user-select': {
2475
+ alias: 'us',
2476
+ type: 's',
2477
+ // compiler:'',
2478
+ values: ['none:n', 'auto:a', 'text:t', 'contain:c', 'all'],
2479
+ },
2480
+ // ----------V--------
2481
+ 'vertical-align': {
2482
+ alias: 'va',
2483
+ type: 'd',
2484
+ compiler: length,
2485
+ values: ['baseline:bl:b2', 'sub:s', 'super:su:s2', 'text-top:tt', 'text-bottom:tb', 'middle:m', 'top:t', 'bottom:b'],
2486
+ },
2487
+ 'visibility': {
2488
+ alias: 'v',
2489
+ type: 's',
2490
+ // compiler:'',
2491
+ values: ['visible:v', 'hidden:h', 'collapse:c'],
2492
+ },
2493
+ 'view-timeline': {
2494
+ compiler: (value) => "-" + value.replace(/-(block|inline|x|y)/, ' $1'),
2495
+ values: ['none block:none-block', 'none inline:none-inline', 'none x:none-x', 'none y:none-y']
2496
+ },
2497
+ 'view-timeline-name': {
2498
+ compiler: (value) => "-" + value,
2499
+ 'values': ['none:n']
2500
+ },
2501
+ 'view-timeline-axis': {
2502
+ // compiler:'',
2503
+ values: ['block:b', 'inline:i', 'y', 'x']
2504
+ },
2505
+ 'view-timeline-inset': {
2506
+ compiler: length,
2507
+ values: ['auto:a']
2508
+ },
2509
+ 'view-transition-name': {
2510
+ compiler: (value) => value.replace(/^-/, ''),
2511
+ 'values': ['none:n']
2512
+ },
2513
+ // ----------W--------
2514
+ 'white-space': {
2515
+ alias: 'ws',
2516
+ type: 's',
2517
+ // compiler:'',
2518
+ values: ['normal:nl', 'nowrap:nw', 'pre:p', 'pre-line:pl', 'pre-wrap:pw', 'break-spaces:bs'],
2519
+ },
2520
+ 'white-space-collapse': {
2521
+ values: ['collapse:c', 'preserve:p', 'preserve-breaks:pb', 'preserve-spaces:ps', 'break-spaces:bs']
2522
+ },
2523
+ 'widows': {
2524
+ alias: 'win',
2525
+ type: 'd',
2526
+ compiler: length,
2527
+ values: [''],
2528
+ },
2529
+ 'width': {
2530
+ alias: 'w',
2531
+ type: 'd',
2532
+ compiler: length,
2533
+ values: ['max-content:xc', 'min-content:mc', 'auto:a', 'fit-content:fc'],
2534
+ },
2535
+ 'will-change': {
2536
+ alias: 'wc', // --
2537
+ type: 's',
2538
+ compiler: (value) => value.replace(/^-/, '').replace(/__/, ', '),
2539
+ values: ['auto:a', 'scroll-position:sc', 'contents:c', 'transform:tf', 'opacity:o', 'left:l', 'top:t'],
2540
+ },
2541
+ 'word-break': {
2542
+ alias: 'wb',
2543
+ type: '',
2544
+ // compiler:'',
2545
+ values: ['break-all:ba', 'keep-all:ka', 'break-word:bw', 'normal:nl'],
2546
+ },
2547
+ 'word-spacing': {
2548
+ alias: 'wos',
2549
+ type: 'd',
2550
+ compiler: length,
2551
+ values: ['normal:nl'],
2552
+ },
2553
+ 'word-wrap': {
2554
+ alias: 'ww',
2555
+ type: 's',
2556
+ // compiler:'',
2557
+ values: ['break-word:bw', 'normal:nl'],
2558
+ },
2559
+ 'writing-mode': {
2560
+ alias: 'wm',
2561
+ type: 's',
2562
+ // compiler:'',
2563
+ values: ['horizontal-tb:ht', 'vertical-rl:vrl', 'vertical-lr:vlr'],
2564
+ },
2565
+ // ----------Z--------
2566
+ 'z-index': {
2567
+ alias: 'zi',
2568
+ type: 'd',
2569
+ compiler: (value) => value.replace(/[-]([-]?)/, '$1'),
2570
+ values: ['auto:a'],
2571
+ },
2572
+ 'zoom': {
2573
+ alias: 'zo',
2574
+ type: 'd',
2575
+ compiler: length,
2576
+ values: ['reset:re', 'normal:nl']
2577
+ },
2578
+ // ----------------SVG---
2579
+ // 'alignment-baseline':{
2580
+ // alias:'',
2581
+ // type:'',
2582
+ // // compiler:'',
2583
+ // value:['']
2584
+ // },
2585
+ 'alignment-baseline': {
2586
+ alias: 'ab',
2587
+ type: 's',
2588
+ // compiler:'',
2589
+ values: ['auto', 'baseline', 'before-edge', 'text-before-edge',
2590
+ 'middle', 'central', 'after-edge', 'text-after-edge', 'ideographic', 'alphabetic',
2591
+ 'hanging', 'mathematical', 'top', 'center', 'bottom']
2592
+ },
2593
+ 'stroke': {
2594
+ alias: 'str',
2595
+ type: 'd',
2596
+ compiler: color,
2597
+ values: [],
2598
+ },
2599
+ 'fill': {
2600
+ alias: '',
2601
+ type: 'd',
2602
+ compiler: color,
2603
+ values: [],
2604
+ },
2605
+ 'stroke-dasharray': {
2606
+ alias: 'sda',
2607
+ type: 'd',
2608
+ compiler: length,
2609
+ values: [],
2610
+ },
2611
+ 'stroke-dashoffset': {
2612
+ alias: 'sdo',
2613
+ type: 'd',
2614
+ compiler: length,
2615
+ values: [],
2616
+ },
2617
+ 'stroke-width': {
2618
+ alias: 'sw',
2619
+ type: 'd',
2620
+ compiler: length,
2621
+ values: [],
2622
+ },
2623
+ 'stroke-opacity': {
2624
+ alias: 'so',
2625
+ type: 'd',
2626
+ compiler: length,
2627
+ values: [],
2628
+ },
2629
+ 'stroke-linecap': {
2630
+ alias: 'slc',
2631
+ type: 's',
2632
+ // compiler:'',
2633
+ values: ['butt', 'round', 'square'],
2634
+ },
2635
+ 'stroke-linejoin': {
2636
+ alias: 'slj',
2637
+ type: 's',
2638
+ // compiler:'',
2639
+ values: ['arcs', 'bevel', 'iter', 'miter-clip', 'round'],
2640
+ },
2641
+ };
2642
+ export default cssProps;