aliascss 1.2.2 → 1.2.4

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 (44) hide show
  1. package/README.md +6 -4
  2. package/aliascss.config.js +5 -12
  3. package/dist/aliascss.js +1 -1
  4. package/lib/css-properties-all.js +122 -38
  5. package/lib/custom-css-compilers.d.ts +1 -0
  6. package/lib/custom-css-compilers.js +50 -23
  7. package/lib/node/compileFile.js +1 -1
  8. package/lib/prebuild.d.ts +356 -43
  9. package/lib/prebuild.js +398 -54
  10. package/lib/prefix/responsive.js +23 -1
  11. package/lib/returnStatement.js +9 -0
  12. package/lib/static/customStaticClassNames.js +41 -33
  13. package/package.json +1 -1
  14. package/ui-dev/app/index.bk +0 -45
  15. package/ui-dev/app/index.html +0 -41
  16. package/ui-dev/app/index.html.css +0 -313
  17. package/ui-dev/app/index.html.module.css +0 -272
  18. package/ui-dev/button.html +0 -87
  19. package/ui-dev/button.html.css +0 -358
  20. package/ui-dev/button.html.module.css +0 -272
  21. package/ui-dev/card-section-row-container-box-bk.html +0 -154
  22. package/ui-dev/card-section-row-container-box-bk.html.css +0 -321
  23. package/ui-dev/card-section-row-container-box-bk.html.module.css +0 -272
  24. package/ui-dev/card-section-row-container-box.html +0 -150
  25. package/ui-dev/card-section-row-container-box.html.css +0 -346
  26. package/ui-dev/card-section-row-container-box.html.module.css +0 -272
  27. package/ui-dev/index-preview-one.html +0 -72
  28. package/ui-dev/index-preview-one.html.css +0 -293
  29. package/ui-dev/index-preview-one.html.module.css +0 -272
  30. package/ui-dev/index-test.html +0 -79
  31. package/ui-dev/index-test.html.css +0 -300
  32. package/ui-dev/index-test.html.module.css +0 -272
  33. package/ui-dev/index.html +0 -191
  34. package/ui-dev/index.html.css +0 -445
  35. package/ui-dev/index.html.module.css +0 -272
  36. package/ui-dev/nav-red.html +0 -121
  37. package/ui-dev/nav-red.html.css +0 -366
  38. package/ui-dev/nav-red.html.module.css +0 -272
  39. package/ui-dev/navbar-demo.html +0 -121
  40. package/ui-dev/navbar-demo.html.css +0 -368
  41. package/ui-dev/navbar-demo.html.module.css +0 -272
  42. package/ui-dev/tooltip.html +0 -113
  43. package/ui-dev/tooltip.html.css +0 -307
  44. package/ui-dev/tooltip.html.module.css +0 -272
@@ -74,6 +74,14 @@ const cssProps = {
74
74
  compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
75
75
  values: ['auto:a', 'anchor-center:ac', 'stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'baseline:b'],
76
76
  },
77
+ 'alignment-baseline': {
78
+ alias: 'ab',
79
+ type: 's',
80
+ // compiler:'',
81
+ values: ['auto', 'baseline', 'before-edge', 'text-before-edge',
82
+ 'middle', 'central', 'after-edge', 'text-after-edge', 'ideographic', 'alphabetic',
83
+ 'hanging', 'mathematical', 'top', 'center', 'bottom']
84
+ },
77
85
  'all': {
78
86
  alias: '',
79
87
  type: 's',
@@ -802,7 +810,7 @@ const cssProps = {
802
810
  alias: 'cg',
803
811
  type: 'd',
804
812
  compiler: length,
805
- values: ['normal:n'],
813
+ values: ['normal:n', ...remUnits],
806
814
  },
807
815
  'column-rule': {
808
816
  alias: 'cr',
@@ -1134,14 +1142,20 @@ const cssProps = {
1134
1142
  alias: 'fw',
1135
1143
  type: 's',
1136
1144
  // compiler:'',
1137
- 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'],
1145
+ values: ['bolder:b2:blr', 'lighter:l:ltr', '100:1:thin', '200:2:extra-light', '300:3:light', '400:4:normal:nl:regular', '500:5:medium', '600:6:semi-bold', '700:7:bold', '800:8:extra-bold', '900:9:black'],
1146
+ },
1147
+ 'forced-color-adjust': {
1148
+ alias: 'fca',
1149
+ type: 's',
1150
+ // compiler:'',
1151
+ values: ['auto:a', 'none:n', 'preserve-parent-color:ppc'],
1138
1152
  },
1139
1153
  // ----------G--------
1140
1154
  'gap': {
1141
1155
  alias: 'g',
1142
1156
  type: 'd',
1143
1157
  compiler: length,
1144
- values: [''],
1158
+ values: ['none:n', ...remUnits],
1145
1159
  },
1146
1160
  'grid': {
1147
1161
  alias: 'gd',
@@ -1220,7 +1234,7 @@ const cssProps = {
1220
1234
  alias: 'gcg',
1221
1235
  type: 'd',
1222
1236
  compiler: length,
1223
- values: [],
1237
+ values: ['none:n', ...remUnits],
1224
1238
  },
1225
1239
  'grid-column-start': {
1226
1240
  alias: 'gcs',
@@ -1233,7 +1247,7 @@ const cssProps = {
1233
1247
  alias: 'gg',
1234
1248
  type: 'd',
1235
1249
  compiler: lenByNumPer,
1236
- values: [],
1250
+ values: ['none:n', ...remUnits],
1237
1251
  },
1238
1252
  'grid-row': {
1239
1253
  alias: 'gr',
@@ -1253,7 +1267,7 @@ const cssProps = {
1253
1267
  alias: 'grg',
1254
1268
  type: 'd',
1255
1269
  compiler: length,
1256
- values: [],
1270
+ values: ['none:n', ...remUnits],
1257
1271
  },
1258
1272
  'grid-row-start': {
1259
1273
  alias: 'grs',
@@ -1439,6 +1453,12 @@ const cssProps = {
1439
1453
  compiler: length,
1440
1454
  values: ['normal:nl'],
1441
1455
  },
1456
+ 'lighting-color': {
1457
+ alias: 'lc',
1458
+ type: 'd',
1459
+ compiler: color,
1460
+ values: ['none:n'],
1461
+ },
1442
1462
  'line-break': {
1443
1463
  alias: 'lb',
1444
1464
  type: 's',
@@ -1886,19 +1906,19 @@ const cssProps = {
1886
1906
  alias: 'pbe',
1887
1907
  type: 'd',
1888
1908
  compiler: length,
1889
- values: ['', ...remUnits],
1909
+ values: ['none:n', ...remUnits],
1890
1910
  },
1891
1911
  'padding-block-start': {
1892
1912
  alias: 'pbs',
1893
1913
  type: 'd',
1894
1914
  compiler: length,
1895
- values: ['',],
1915
+ values: ['none:n', ...remUnits],
1896
1916
  },
1897
1917
  'padding-bottom': {
1898
1918
  alias: 'pb',
1899
1919
  type: 'd',
1900
1920
  compiler: length,
1901
- values: ['', ...remUnits],
1921
+ values: ['none:n', ...remUnits],
1902
1922
  },
1903
1923
  'padding-inline': {
1904
1924
  alias: 'pi',
@@ -1910,31 +1930,31 @@ const cssProps = {
1910
1930
  alias: 'pie',
1911
1931
  type: 'd',
1912
1932
  compiler: length,
1913
- values: ['', ...remUnits],
1933
+ values: ['none:n', ...remUnits],
1914
1934
  },
1915
1935
  'padding-inline-start': {
1916
1936
  alias: 'pis',
1917
1937
  type: 'd',
1918
1938
  compiler: length,
1919
- values: ['', ...remUnits],
1939
+ values: ['none:n', ...remUnits],
1920
1940
  },
1921
1941
  'padding-left': {
1922
1942
  alias: 'pl',
1923
1943
  type: 'd',
1924
1944
  compiler: length,
1925
- values: ['', ...remUnits],
1945
+ values: ['none:n', ...remUnits],
1926
1946
  },
1927
1947
  'padding-right': {
1928
1948
  alias: 'pr',
1929
1949
  type: 'd',
1930
1950
  compiler: length,
1931
- values: ['',],
1951
+ values: ['none:n', ...remUnits],
1932
1952
  },
1933
1953
  'padding-top': {
1934
1954
  alias: 'pt',
1935
1955
  type: 'd',
1936
1956
  compiler: length,
1937
- values: ['',],
1957
+ values: ['none:n', ...remUnits],
1938
1958
  },
1939
1959
  'page': {
1940
1960
  alias: 'pg',
@@ -2059,7 +2079,7 @@ const cssProps = {
2059
2079
  alias: 'rg',
2060
2080
  type: 'd',
2061
2081
  compiler: length,
2062
- values: [''],
2082
+ values: ['none:n', ...remUnits],
2063
2083
  },
2064
2084
  // ----------S--------
2065
2085
  'scale': {
@@ -2144,67 +2164,67 @@ const cssProps = {
2144
2164
  alias: 'sp',
2145
2165
  type: 'd',
2146
2166
  compiler: length,
2147
- values: [''],
2167
+ values: ['none:n', ...remUnits],
2148
2168
  },
2149
2169
  'scroll-padding-block': {
2150
2170
  alias: '',
2151
2171
  type: 'd',
2152
2172
  compiler: length,
2153
- values: [''],
2173
+ values: ['none:n', ...remUnits],
2154
2174
  },
2155
2175
  'scroll-padding-block-end': {
2156
2176
  alias: 'spbe',
2157
2177
  type: 'd',
2158
2178
  compiler: length,
2159
- values: [''],
2179
+ values: ['none:n', ...remUnits],
2160
2180
  },
2161
2181
  'scroll-padding-block-start': {
2162
2182
  alias: 'spbs',
2163
2183
  type: 'd',
2164
2184
  compiler: length,
2165
- values: [''],
2185
+ values: ['none:n', ...remUnits],
2166
2186
  },
2167
2187
  'scroll-padding-bottom': {
2168
2188
  alias: 'spb',
2169
2189
  type: 'd',
2170
2190
  compiler: length,
2171
- values: [''],
2191
+ values: ['none:n', ...remUnits],
2172
2192
  },
2173
2193
  'scroll-padding-inline': {
2174
2194
  alias: 'spi',
2175
2195
  type: 'd',
2176
2196
  compiler: length,
2177
- values: [''],
2197
+ values: ['none:n', ...remUnits],
2178
2198
  },
2179
2199
  'scroll-padding-inline-end': {
2180
2200
  alias: 'spie',
2181
2201
  type: 'd',
2182
2202
  compiler: length,
2183
- values: [''],
2203
+ values: ['none:n', ...remUnits],
2184
2204
  },
2185
2205
  'scroll-padding-inline-start': {
2186
2206
  alias: 'spis',
2187
2207
  type: 'd',
2188
2208
  compiler: length,
2189
- values: [''],
2209
+ values: ['none:n', ...remUnits],
2190
2210
  },
2191
2211
  'scroll-padding-left': {
2192
2212
  alias: 'spl',
2193
2213
  type: 'd',
2194
2214
  compiler: length,
2195
- values: [''],
2215
+ values: ['none:n', ...remUnits],
2196
2216
  },
2197
2217
  'scroll-padding-right': {
2198
2218
  alias: 'spr',
2199
2219
  type: 'd',
2200
2220
  compiler: length,
2201
- values: [''],
2221
+ values: ['none:n', ...remUnits],
2202
2222
  },
2203
2223
  'scroll-padding-top': {
2204
2224
  alias: 'spt',
2205
2225
  type: 'd',
2206
2226
  compiler: length,
2207
- values: [''],
2227
+ values: ['none:n', ...remUnits],
2208
2228
  },
2209
2229
  'scroll-snap-align': {
2210
2230
  alias: 'ssa',
@@ -2278,6 +2298,18 @@ const cssProps = {
2278
2298
  compiler: clipPath,
2279
2299
  values: ['none:n', 'margin-box:mb', 'border-box:bb', 'padding-box:pb', 'content-box:cb'],
2280
2300
  },
2301
+ 'stop-color': {
2302
+ alias: '',
2303
+ type: 'd',
2304
+ compiler: color,
2305
+ values: [''],
2306
+ },
2307
+ 'stop-opacity': {
2308
+ alias: '',
2309
+ type: 'd',
2310
+ compiler: lenByNumPer,
2311
+ values: [''],
2312
+ },
2281
2313
  // ----------T--------
2282
2314
  'tab-size': {
2283
2315
  alias: 'ts',
@@ -2303,6 +2335,12 @@ const cssProps = {
2303
2335
  // compiler:'',
2304
2336
  values: ['auto:a', 'left:l', 'right:r', 'center:c', 'justify:j', 'end:e', 'start:s'],
2305
2337
  },
2338
+ 'text-anchor': {
2339
+ alias: '',
2340
+ type: 's',
2341
+ // compiler:'',
2342
+ values: ['start:s', 'middle:m', 'end:e'],
2343
+ },
2306
2344
  'text-combine-upright': {
2307
2345
  alias: '',
2308
2346
  type: '',
@@ -2345,6 +2383,12 @@ const cssProps = {
2345
2383
  // compiler:'',
2346
2384
  values: ['none:n', 'open:o', 'filled:f', 'dot:d', 'circle:c', 'double-circle:dc', 'triangle:t', 'sesame'],
2347
2385
  },
2386
+ 'text-emphasis-color': {
2387
+ alias: 'tec',
2388
+ type: 's',
2389
+ compiler: color,
2390
+ values: [''],
2391
+ },
2348
2392
  'text-indent': {
2349
2393
  alias: 'ti',
2350
2394
  type: 'd',
@@ -2369,6 +2413,12 @@ const cssProps = {
2369
2413
  // compiler:'',
2370
2414
  values: ['clip:c', 'ellipsis:e', ''],
2371
2415
  },
2416
+ 'text-rendering': {
2417
+ alias: '',
2418
+ type: 's',
2419
+ // compiler:'',
2420
+ values: ['auto:a', 'optimizeSpeed:os', 'optimizeLegibility:ol', 'geometricPrecision:gp'],
2421
+ },
2372
2422
  'text-shadow': {
2373
2423
  alias: 'txs',
2374
2424
  type: 'd',
@@ -2386,18 +2436,46 @@ const cssProps = {
2386
2436
  compiler: (value) => '-' + value,
2387
2437
  values: ['none:n']
2388
2438
  },
2439
+ 'text-underline-offset': {
2440
+ alias: 'tup',
2441
+ type: 'd',
2442
+ compiler: length,
2443
+ values: ['auto:a'],
2444
+ },
2389
2445
  'text-underline-position': {
2390
2446
  alias: 'tup',
2391
2447
  type: 's',
2392
2448
  // compiler:'',
2393
2449
  values: ['auto:a', 'under:u', 'left:l', 'right:r'],
2394
2450
  },
2451
+ 'text-wrap': {
2452
+ alias: 'tw',
2453
+ type: 's',
2454
+ // compiler:'',
2455
+ values: ['wrap:w', 'nowrap:n:nw', 'balance:b', 'pretty:p', 'stable:s'],
2456
+ },
2457
+ 'text-wrap-mode': {
2458
+ alias: 'twm',
2459
+ type: 's',
2460
+ // compiler:'',
2461
+ values: ['wrap:w', 'nowrap:n:nw'],
2462
+ },
2463
+ 'text-wrap-style': {
2464
+ alias: 'tws',
2465
+ type: 's',
2466
+ // compiler:'',
2467
+ values: ['auto:a', 'balance:b', 'pretty:p', 'stable:s'],
2468
+ },
2395
2469
  'top': {
2396
2470
  alias: 't',
2397
2471
  type: 'd',
2398
2472
  compiler: length,
2399
2473
  values: ['auto:a'],
2400
2474
  },
2475
+ 'touch-action': {
2476
+ alias: 'toa',
2477
+ 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']
2478
+ },
2401
2479
  'transform': {
2402
2480
  alias: 'tf',
2403
2481
  type: 'd',
@@ -2462,10 +2540,6 @@ const cssProps = {
2462
2540
  compiler: length,
2463
2541
  values: ['none:n'],
2464
2542
  },
2465
- 'touch-action': {
2466
- alias: 'toa',
2467
- 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']
2468
- },
2469
2543
  // ----------U--------
2470
2544
  'unicode-bidi': {
2471
2545
  alias: 'ub',
@@ -2480,6 +2554,12 @@ const cssProps = {
2480
2554
  values: ['none:n', 'auto:a', 'text:t', 'contain:c', 'all'],
2481
2555
  },
2482
2556
  // ----------V--------
2557
+ 'vector-effect': {
2558
+ alias: 've',
2559
+ type: 's',
2560
+ // compiler:length,
2561
+ values: ['none:n', 'non-scaling-stroke:nss'],
2562
+ },
2483
2563
  'vertical-align': {
2484
2564
  alias: 'va',
2485
2565
  type: 'd',
@@ -2570,6 +2650,18 @@ const cssProps = {
2570
2650
  // compiler:'',
2571
2651
  values: ['horizontal-tb:ht', 'vertical-rl:vrl', 'vertical-lr:vlr'],
2572
2652
  },
2653
+ 'x': {
2654
+ alias: 'x',
2655
+ type: 'd',
2656
+ compiler: length,
2657
+ values: [''],
2658
+ },
2659
+ 'y': {
2660
+ alias: 'y',
2661
+ type: 'd',
2662
+ compiler: length,
2663
+ values: [''],
2664
+ },
2573
2665
  // ----------Z--------
2574
2666
  'z-index': {
2575
2667
  alias: 'zi',
@@ -2590,14 +2682,6 @@ const cssProps = {
2590
2682
  // // compiler:'',
2591
2683
  // value:['']
2592
2684
  // },
2593
- 'alignment-baseline': {
2594
- alias: 'ab',
2595
- type: 's',
2596
- // compiler:'',
2597
- values: ['auto', 'baseline', 'before-edge', 'text-before-edge',
2598
- 'middle', 'central', 'after-edge', 'text-after-edge', 'ideographic', 'alphabetic',
2599
- 'hanging', 'mathematical', 'top', 'center', 'bottom']
2600
- },
2601
2685
  'stroke': {
2602
2686
  alias: 'str',
2603
2687
  type: 'd',
@@ -7,6 +7,7 @@ type Property = {
7
7
  groups?: {
8
8
  [key: string]: string;
9
9
  };
10
+ statement?: string;
10
11
  compiler?: (a: string, b: {
11
12
  [key: string]: {
12
13
  [key: string]: string;
@@ -1,4 +1,5 @@
1
- const cssCustomCompilers = {
1
+ import prebuild from "./prebuild.js";
2
+ const cssCustomCompilers = Object.assign(Object.assign({}, prebuild), {
2
3
  // padding, margin
3
4
  'padding-x': {
4
5
  type: 'group',
@@ -30,8 +31,7 @@ const cssCustomCompilers = {
30
31
  9: `padding-left:${9 / 4}rem;padding-right:${9 / 4}rem`,
31
32
  10: `padding-left:${10 / 4}rem;padding-right:${10 / 4}rem`,
32
33
  },
33
- },
34
- 'px': {
34
+ }, 'px': {
35
35
  type: 'group',
36
36
  compiler: (y) => {
37
37
  if (/^--[a-z]/.test(y)) {
@@ -61,8 +61,7 @@ const cssCustomCompilers = {
61
61
  9: `padding-left:${9 / 4}rem;padding-right:${9 / 4}rem`,
62
62
  10: `padding-left:${10 / 4}rem;padding-right:${10 / 4}rem`,
63
63
  },
64
- },
65
- 'padding-y': {
64
+ }, 'padding-y': {
66
65
  type: 'group',
67
66
  compiler: (y) => {
68
67
  if (/^--[a-z]/.test(y)) {
@@ -92,8 +91,7 @@ const cssCustomCompilers = {
92
91
  9: `padding-top:${9 / 4}rem;padding-bottom:${9 / 4}rem`,
93
92
  10: `padding-top:${10 / 4}rem;padding-bottom:${10 / 4}rem`,
94
93
  },
95
- },
96
- 'py': {
94
+ }, 'py': {
97
95
  type: 'group',
98
96
  compiler: (y) => {
99
97
  if (/^--[a-z]/.test(y)) {
@@ -123,7 +121,7 @@ const cssCustomCompilers = {
123
121
  9: `padding-top:${9 / 4}rem;padding-bottom:${9 / 4}rem`,
124
122
  10: `padding-top:${10 / 4}rem;padding-bottom:${10 / 4}rem`,
125
123
  },
126
- },
124
+ },
127
125
  // Margin
128
126
  'margin-x': {
129
127
  type: 'group',
@@ -165,8 +163,7 @@ const cssCustomCompilers = {
165
163
  10: `margin-right:${10 / 4}rem;margin-left:${10 / 4}rem`,
166
164
  '-10': `margin-right:-${10 / 4}rem;margin-left:-${10 / 4}rem`,
167
165
  },
168
- },
169
- 'mx': {
166
+ }, 'mx': {
170
167
  type: 'group',
171
168
  compiler: (y) => {
172
169
  if (/^--[a-z]/.test(y)) {
@@ -206,8 +203,7 @@ const cssCustomCompilers = {
206
203
  10: `margin-right:${10 / 4}rem;margin-left:${10 / 4}rem`,
207
204
  '-10': `margin-right:-${10 / 4}rem;margin-left:-${10 / 4}rem`,
208
205
  },
209
- },
210
- 'margin-y': {
206
+ }, 'margin-y': {
211
207
  type: 'group',
212
208
  compiler: (y) => {
213
209
  if (/^--[a-z]/.test(y)) {
@@ -247,8 +243,7 @@ const cssCustomCompilers = {
247
243
  10: `margin-top:${10 / 4}rem;margin-bottom:${10 / 4}rem`,
248
244
  '-10': `margin-top:-${10 / 4}rem;margin-bottom:-${10 / 4}rem`,
249
245
  },
250
- },
251
- 'my': {
246
+ }, 'my': {
252
247
  type: 'group',
253
248
  compiler: (y) => {
254
249
  if (/^--[a-z]/.test(y)) {
@@ -288,23 +283,57 @@ const cssCustomCompilers = {
288
283
  10: `margin-top:${10 / 4}rem;margin-bottom:${10 / 4}rem`,
289
284
  '-10': `margin-top:-${10 / 4}rem;margin-bottom:-${10 / 4}rem`,
290
285
  },
291
- },
286
+ },
292
287
  // ---------------------x-custom-compiler
288
+ 'x-row': {
289
+ type: 'group',
290
+ compiler: (value) => {
291
+ return `--x-row-gap:${value.replace(/^-(\d)/, '$1')};display:flex;flex-wrap:wrap;margin-left:calc(var(--x-row-gap,${value.replace(/^-(\d)/, '$1')}) * -0.5);margin-right:calc(var(--x-row-gap,${value.replace(/^-(\d)/, '$1')}) * 0.5);`;
292
+ },
293
+ groups: {
294
+ 'xs': `--x-row-gap:4px;display:flex;flex-wrap:wrap;margin-left:calc(var(--x-row-gap,4px) * -0.5);margin-right:calc(var(--x-row-gap,16px) * 0.5);`,
295
+ 'sm': `--x-row-gap:8px;display:flex;flex-wrap:wrap;margin-left:calc(var(--x-row-gap,8px) * -0.5);margin-right:calc(var(--x-row-gap,16px) * 0.5);`,
296
+ 'md': `--x-row-gap:16px;display:flex;flex-wrap:wrap;margin-left:calc(var(--x-row-gap,16px) * -0.5);margin-right:calc(var(--x-row-gap,16px) * 0.5);`,
297
+ 'lg': `--x-row-gap:24px;display:flex;flex-wrap:wrap;margin-left:calc(var(--x-row-gap,24px) * -0.5);margin-right:calc(var(--x-row-gap,16px) * 0.5);`,
298
+ 'xl': `--x-row-gap:32px;display:flex;flex-wrap:wrap;margin-left:calc(var(--x-row-gap,32px) * -0.5);margin-right:calc(var(--x-row-gap,16px) * 0.5);`,
299
+ },
300
+ }, 'x-col': {
301
+ type: 'group',
302
+ compiler: (value) => {
303
+ return `--x-col-width:${value.replace(/^-(\d)/, '$1')};padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 var(--x-col-width,${value.replace(/^-(\d)/, '$1')});max-width:var(--x-col-width,${value.replace(/^-(\d)/, '$1')});`;
304
+ },
305
+ groups: {
306
+ 1: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 100%;max-width:100%;`,
307
+ 2: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 50%;max-width:50%;`,
308
+ 3: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 33.3333%;max-width:33.3333%;`,
309
+ 4: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 25%;max-width:25%;`,
310
+ 5: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 20%;max-width:20%;`,
311
+ 6: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 16.6667%;max-width:16.6667%;`,
312
+ 7: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 14.2857%;max-width:14.2857%;`,
313
+ 8: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 12.5%;max-width:12.5%;`,
314
+ 9: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 11.1111%;max-width:11.1111%;`,
315
+ 10: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 10%;max-width:10%;`,
316
+ 11: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 9.0909%;max-width:9.0909%;`,
317
+ 12: `padding-left:calc(var(--x-row-gap,16px) * 0.5);padding-right:calc(var(--x-row-gap,16px) * 0.5) box-sizing:border-box;flex:0 0 8.3333%;max-width:8.3333%;`,
318
+ },
319
+ },
320
+ // 'x-col-responsive':{
321
+ // type:'statement',
322
+ // statement:`[]`,
323
+ // },
293
324
  'x-square': {
294
325
  type: 'group',
295
326
  compiler: (value) => {
296
327
  const v = value.replace(/^-([-]?[\d])/g, '$1');
297
328
  return `width:calc(${v} + var(--x-square-grow,0px) - var(--x-square-shrink,0px)); flex-basis:calc(${v} + var(--x-square-grow,0px) - var(--x-square-shrink,0px)); flex-shrink:0;flex-grow:0;height:calc(${v} + var(--x-square-grow,0px) - var(--x-square-shrink,0px))`;
298
329
  },
299
- },
300
- 'x-circle': {
330
+ }, 'x-circle': {
301
331
  type: 'group',
302
332
  compiler: (value) => {
303
333
  const v = value.replace(/^-([-]?[\d])/g, '$1');
304
334
  return `width:calc(${v} + var(--x-circle-grow,0px) - var(--x-circle-shrink,0px)); height:calc(${v} + var(--x-circle-grow,0px) - var(--x-circle-shrink,0px)); border-radius:50%;`;
305
335
  },
306
- },
307
- 'x-width': {
336
+ }, 'x-width': {
308
337
  property: 'width',
309
338
  compiler: (value) => {
310
339
  if (/^--[a-zA-Z]/.test(value)) {
@@ -317,8 +346,7 @@ const cssCustomCompilers = {
317
346
  }
318
347
  return `calc(${value.replace(/^-([-]?[\d])/g, '$1')} + var(--x-width-grow,0px) - var(--x-width-shrink,0px))`;
319
348
  },
320
- },
321
- 'x-height': {
349
+ }, 'x-height': {
322
350
  property: 'height',
323
351
  compiler: (value) => {
324
352
  if (/^--[a-zA-Z]/.test(value)) {
@@ -331,6 +359,5 @@ const cssCustomCompilers = {
331
359
  }
332
360
  return `calc(${value.replace(/^-([-]?[\d])/g, '$1')} + var(--x-height-grow,0px) - var(--x-height-shrink,0px))`;
333
361
  },
334
- },
335
- };
362
+ } });
336
363
  export default cssCustomCompilers;
@@ -178,7 +178,7 @@ export function postify(file, plugin, minify = false) {
178
178
  if (fs.existsSync(file)) {
179
179
  if (minify === true)
180
180
  plugin.push(cssnano);
181
- postcss(plugin).process(data).then(result => {
181
+ postcss(plugin).process(data, { from: undefined }).then(result => {
182
182
  fs.truncateSync(file);
183
183
  fs.writeFileSync(file, result.css);
184
184
  });