aliascss 1.2.1 → 1.2.3

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 (39) hide show
  1. package/aliascss.config.js +5 -12
  2. package/dist/aliascss.js +1 -1
  3. package/lib/config.d.ts +2 -0
  4. package/lib/config.js +20 -0
  5. package/lib/css-properties-all.js +231 -147
  6. package/lib/custom-css-compilers.d.ts +1 -0
  7. package/lib/custom-css-compilers.js +135 -24
  8. package/lib/prebuild.d.ts +348 -43
  9. package/lib/prebuild.js +308 -53
  10. package/lib/prefix/responsive.js +23 -1
  11. package/lib/returnStatement.js +9 -0
  12. package/lib/static/customStaticClassNames.js +46 -38
  13. package/package.json +1 -1
  14. package/ui-dev/app/index.html +35 -25
  15. package/ui-dev/app/index.html.css +69 -254
  16. package/ui-dev/app/index.html.module.css +0 -217
  17. package/ui-dev/button.html +6 -6
  18. package/ui-dev/button.html.css +55 -217
  19. package/ui-dev/button.html.module.css +0 -217
  20. package/ui-dev/card-section-row-container-box-bk.html.css +5 -217
  21. package/ui-dev/card-section-row-container-box-bk.html.module.css +0 -217
  22. package/ui-dev/card-section-row-container-box.html.css +45 -217
  23. package/ui-dev/card-section-row-container-box.html.module.css +0 -217
  24. package/ui-dev/examples/screen.html +66 -0
  25. package/ui-dev/examples/screen.html.css +167 -0
  26. package/ui-dev/examples/screen.html.module.css +55 -0
  27. package/ui-dev/index-preview-one.html.css +68 -217
  28. package/ui-dev/index-preview-one.html.module.css +0 -217
  29. package/ui-dev/index-test.html.css +89 -183
  30. package/ui-dev/index-test.html.module.css +0 -217
  31. package/ui-dev/index.html +1 -3
  32. package/ui-dev/index.html.css +0 -218
  33. package/ui-dev/index.html.module.css +0 -217
  34. package/ui-dev/nav-red.html.css +0 -217
  35. package/ui-dev/nav-red.html.module.css +0 -217
  36. package/ui-dev/navbar-demo.html.css +0 -217
  37. package/ui-dev/navbar-demo.html.module.css +0 -217
  38. package/ui-dev/tooltip.html.css +0 -217
  39. package/ui-dev/tooltip.html.module.css +0 -217
@@ -16,6 +16,8 @@ import { repeat } from './utils/cssFunc.js';
16
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
17
  const width = config.widths; // ['medium:m','thin:t','thick:th:t2'];
18
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 remUnits = config.remUnits; // [`${1/4}rem:1`,`${2/4}rem:2`,`${3/4}rem:3`,`${4/4}rem:4`,`${5/4}rem:5`,`${6/4}rem:6`,`${7/4}rem:7`,`${8/4}rem:8`,`${9/4}rem:9`,`${10/4}rem:10`,];
20
+ const remUnitsNegative = config.remUnitsNegative; // [`-${1/4}rem:-1`, `-${2/4}rem:-2`, `-${3/4}rem:-3`, `-${4/4}rem:-4`, `-${5/4}rem:-5`, `-${6/4}rem:-6`, `-${7/4}rem:-7`, `-${8/4}rem:-8`, `-${9/4}rem:-9`, `-${10/4}rem:-10`];
19
21
  const cssProps = {
20
22
  // type:s=static,d=dynamic
21
23
  // -----------------xc----------------
@@ -72,6 +74,14 @@ const cssProps = {
72
74
  compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
73
75
  values: ['auto:a', 'anchor-center:ac', 'stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'baseline:b'],
74
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
+ },
75
85
  'all': {
76
86
  alias: '',
77
87
  type: 's',
@@ -800,7 +810,7 @@ const cssProps = {
800
810
  alias: 'cg',
801
811
  type: 'd',
802
812
  compiler: length,
803
- values: ['normal:n'],
813
+ values: ['normal:n', ...remUnits],
804
814
  },
805
815
  'column-rule': {
806
816
  alias: 'cr',
@@ -1134,12 +1144,18 @@ const cssProps = {
1134
1144
  // compiler:'',
1135
1145
  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
1146
  },
1147
+ 'forced-color-adjust': {
1148
+ alias: 'fca',
1149
+ type: 's',
1150
+ // compiler:'',
1151
+ values: ['auto:a', 'none:n', 'preserve-parent-color:ppc'],
1152
+ },
1137
1153
  // ----------G--------
1138
1154
  'gap': {
1139
1155
  alias: 'g',
1140
1156
  type: 'd',
1141
1157
  compiler: length,
1142
- values: [''],
1158
+ values: ['none:n', ...remUnits],
1143
1159
  },
1144
1160
  'grid': {
1145
1161
  alias: 'gd',
@@ -1218,7 +1234,7 @@ const cssProps = {
1218
1234
  alias: 'gcg',
1219
1235
  type: 'd',
1220
1236
  compiler: length,
1221
- values: [],
1237
+ values: ['none:n', ...remUnits],
1222
1238
  },
1223
1239
  'grid-column-start': {
1224
1240
  alias: 'gcs',
@@ -1231,7 +1247,7 @@ const cssProps = {
1231
1247
  alias: 'gg',
1232
1248
  type: 'd',
1233
1249
  compiler: lenByNumPer,
1234
- values: [],
1250
+ values: ['none:n', ...remUnits],
1235
1251
  },
1236
1252
  'grid-row': {
1237
1253
  alias: 'gr',
@@ -1251,7 +1267,7 @@ const cssProps = {
1251
1267
  alias: 'grg',
1252
1268
  type: 'd',
1253
1269
  compiler: length,
1254
- values: [],
1270
+ values: ['none:n', ...remUnits],
1255
1271
  },
1256
1272
  'grid-row-start': {
1257
1273
  alias: 'grs',
@@ -1437,6 +1453,12 @@ const cssProps = {
1437
1453
  compiler: length,
1438
1454
  values: ['normal:nl'],
1439
1455
  },
1456
+ 'lighting-color': {
1457
+ alias: 'lc',
1458
+ type: 'd',
1459
+ compiler: color,
1460
+ values: ['none:n'],
1461
+ },
1440
1462
  'line-break': {
1441
1463
  alias: 'lb',
1442
1464
  type: 's',
@@ -1496,67 +1518,67 @@ const cssProps = {
1496
1518
  alias: 'm',
1497
1519
  type: 'd',
1498
1520
  compiler: length,
1499
- values: [],
1521
+ values: [...remUnits, ...remUnitsNegative],
1500
1522
  },
1501
1523
  'margin-block': {
1502
1524
  alias: '',
1503
1525
  type: 'd',
1504
1526
  compiler: length,
1505
- values: ['auto:a'],
1527
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1506
1528
  },
1507
1529
  'margin-block-end': {
1508
1530
  alias: 'mbe',
1509
1531
  type: 'd',
1510
1532
  compiler: length,
1511
- values: ['auto:a'],
1533
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1512
1534
  },
1513
1535
  'margin-block-start': {
1514
1536
  alias: 'mbs',
1515
1537
  type: 'd',
1516
1538
  compiler: length,
1517
- values: ['auto:a'],
1539
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1518
1540
  },
1519
1541
  'margin-bottom': {
1520
1542
  alias: 'mb',
1521
1543
  type: 'd',
1522
1544
  compiler: length,
1523
- values: ['auto:a'],
1545
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1524
1546
  },
1525
1547
  'margin-inline': {
1526
1548
  alias: 'mi',
1527
1549
  type: 'd',
1528
1550
  compiler: length,
1529
- values: ['auto:a'],
1551
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1530
1552
  },
1531
1553
  'margin-inline-end': {
1532
1554
  alias: 'mie',
1533
1555
  type: 'd',
1534
1556
  compiler: length,
1535
- values: ['auto:a'],
1557
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1536
1558
  },
1537
1559
  'margin-inline-start': {
1538
1560
  alias: 'mis',
1539
1561
  type: 'd',
1540
1562
  compiler: length,
1541
- values: ['auto:a'],
1563
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1542
1564
  },
1543
1565
  'margin-left': {
1544
1566
  alias: 'ml',
1545
1567
  type: 'd',
1546
1568
  compiler: length,
1547
- values: ['auto:a'],
1569
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1548
1570
  },
1549
1571
  'margin-right': {
1550
1572
  alias: 'mr',
1551
1573
  type: 'd',
1552
1574
  compiler: length,
1553
- values: ['auto:a'],
1575
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1554
1576
  },
1555
1577
  'margin-top': {
1556
1578
  alias: 'mt',
1557
1579
  type: 'd',
1558
1580
  compiler: length,
1559
- values: ['auto:a'],
1581
+ values: ['auto:a', ...remUnits, ...remUnitsNegative],
1560
1582
  },
1561
1583
  'mask': {
1562
1584
  alias: '', // --
@@ -1872,67 +1894,67 @@ const cssProps = {
1872
1894
  alias: 'p',
1873
1895
  type: 'd',
1874
1896
  compiler: length,
1875
- values: ['none:n'],
1897
+ values: ['none:n', ...remUnits],
1876
1898
  },
1877
1899
  'padding-block': {
1878
1900
  alias: '',
1879
1901
  type: 's',
1880
1902
  compiler: length,
1881
- values: ['none:n'],
1903
+ values: ['none:n', ...remUnits],
1882
1904
  },
1883
1905
  'padding-block-end': {
1884
1906
  alias: 'pbe',
1885
1907
  type: 'd',
1886
1908
  compiler: length,
1887
- values: [''],
1909
+ values: ['none:n', ...remUnits],
1888
1910
  },
1889
1911
  'padding-block-start': {
1890
1912
  alias: 'pbs',
1891
1913
  type: 'd',
1892
1914
  compiler: length,
1893
- values: [''],
1915
+ values: ['none:n', ...remUnits],
1894
1916
  },
1895
1917
  'padding-bottom': {
1896
1918
  alias: 'pb',
1897
1919
  type: 'd',
1898
1920
  compiler: length,
1899
- values: [''],
1921
+ values: ['none:n', ...remUnits],
1900
1922
  },
1901
1923
  'padding-inline': {
1902
1924
  alias: 'pi',
1903
1925
  type: 'd',
1904
1926
  compiler: length,
1905
- values: [''],
1927
+ values: ['', ...remUnits],
1906
1928
  },
1907
1929
  'padding-inline-end': {
1908
1930
  alias: 'pie',
1909
1931
  type: 'd',
1910
1932
  compiler: length,
1911
- values: [''],
1933
+ values: ['none:n', ...remUnits],
1912
1934
  },
1913
1935
  'padding-inline-start': {
1914
1936
  alias: 'pis',
1915
1937
  type: 'd',
1916
1938
  compiler: length,
1917
- values: [''],
1939
+ values: ['none:n', ...remUnits],
1918
1940
  },
1919
1941
  'padding-left': {
1920
1942
  alias: 'pl',
1921
1943
  type: 'd',
1922
1944
  compiler: length,
1923
- values: [''],
1945
+ values: ['none:n', ...remUnits],
1924
1946
  },
1925
1947
  'padding-right': {
1926
1948
  alias: 'pr',
1927
1949
  type: 'd',
1928
1950
  compiler: length,
1929
- values: [''],
1951
+ values: ['none:n', ...remUnits],
1930
1952
  },
1931
1953
  'padding-top': {
1932
1954
  alias: 'pt',
1933
1955
  type: 'd',
1934
1956
  compiler: length,
1935
- values: [''],
1957
+ values: ['none:n', ...remUnits],
1936
1958
  },
1937
1959
  'page': {
1938
1960
  alias: 'pg',
@@ -2057,7 +2079,7 @@ const cssProps = {
2057
2079
  alias: 'rg',
2058
2080
  type: 'd',
2059
2081
  compiler: length,
2060
- values: [''],
2082
+ values: ['none:n', ...remUnits],
2061
2083
  },
2062
2084
  // ----------S--------
2063
2085
  'scale': {
@@ -2142,67 +2164,67 @@ const cssProps = {
2142
2164
  alias: 'sp',
2143
2165
  type: 'd',
2144
2166
  compiler: length,
2145
- values: [''],
2167
+ values: ['none:n', ...remUnits],
2146
2168
  },
2147
2169
  'scroll-padding-block': {
2148
2170
  alias: '',
2149
2171
  type: 'd',
2150
2172
  compiler: length,
2151
- values: [''],
2173
+ values: ['none:n', ...remUnits],
2152
2174
  },
2153
2175
  'scroll-padding-block-end': {
2154
2176
  alias: 'spbe',
2155
2177
  type: 'd',
2156
2178
  compiler: length,
2157
- values: [''],
2179
+ values: ['none:n', ...remUnits],
2158
2180
  },
2159
2181
  'scroll-padding-block-start': {
2160
2182
  alias: 'spbs',
2161
2183
  type: 'd',
2162
2184
  compiler: length,
2163
- values: [''],
2185
+ values: ['none:n', ...remUnits],
2164
2186
  },
2165
2187
  'scroll-padding-bottom': {
2166
2188
  alias: 'spb',
2167
2189
  type: 'd',
2168
2190
  compiler: length,
2169
- values: [''],
2191
+ values: ['none:n', ...remUnits],
2170
2192
  },
2171
2193
  'scroll-padding-inline': {
2172
2194
  alias: 'spi',
2173
2195
  type: 'd',
2174
2196
  compiler: length,
2175
- values: [''],
2197
+ values: ['none:n', ...remUnits],
2176
2198
  },
2177
2199
  'scroll-padding-inline-end': {
2178
2200
  alias: 'spie',
2179
2201
  type: 'd',
2180
2202
  compiler: length,
2181
- values: [''],
2203
+ values: ['none:n', ...remUnits],
2182
2204
  },
2183
2205
  'scroll-padding-inline-start': {
2184
2206
  alias: 'spis',
2185
2207
  type: 'd',
2186
2208
  compiler: length,
2187
- values: [''],
2209
+ values: ['none:n', ...remUnits],
2188
2210
  },
2189
2211
  'scroll-padding-left': {
2190
2212
  alias: 'spl',
2191
2213
  type: 'd',
2192
2214
  compiler: length,
2193
- values: [''],
2215
+ values: ['none:n', ...remUnits],
2194
2216
  },
2195
2217
  'scroll-padding-right': {
2196
2218
  alias: 'spr',
2197
2219
  type: 'd',
2198
2220
  compiler: length,
2199
- values: [''],
2221
+ values: ['none:n', ...remUnits],
2200
2222
  },
2201
2223
  'scroll-padding-top': {
2202
2224
  alias: 'spt',
2203
2225
  type: 'd',
2204
2226
  compiler: length,
2205
- values: [''],
2227
+ values: ['none:n', ...remUnits],
2206
2228
  },
2207
2229
  'scroll-snap-align': {
2208
2230
  alias: 'ssa',
@@ -2276,6 +2298,18 @@ const cssProps = {
2276
2298
  compiler: clipPath,
2277
2299
  values: ['none:n', 'margin-box:mb', 'border-box:bb', 'padding-box:pb', 'content-box:cb'],
2278
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
+ },
2279
2313
  // ----------T--------
2280
2314
  'tab-size': {
2281
2315
  alias: 'ts',
@@ -2301,6 +2335,12 @@ const cssProps = {
2301
2335
  // compiler:'',
2302
2336
  values: ['auto:a', 'left:l', 'right:r', 'center:c', 'justify:j', 'end:e', 'start:s'],
2303
2337
  },
2338
+ 'text-anchor': {
2339
+ alias: '',
2340
+ type: 's',
2341
+ // compiler:'',
2342
+ values: ['start:s', 'middle:m', 'end:e'],
2343
+ },
2304
2344
  'text-combine-upright': {
2305
2345
  alias: '',
2306
2346
  type: '',
@@ -2343,6 +2383,12 @@ const cssProps = {
2343
2383
  // compiler:'',
2344
2384
  values: ['none:n', 'open:o', 'filled:f', 'dot:d', 'circle:c', 'double-circle:dc', 'triangle:t', 'sesame'],
2345
2385
  },
2386
+ 'text-emphasis-color': {
2387
+ alias: 'tec',
2388
+ type: 's',
2389
+ compiler: color,
2390
+ values: [''],
2391
+ },
2346
2392
  'text-indent': {
2347
2393
  alias: 'ti',
2348
2394
  type: 'd',
@@ -2367,6 +2413,12 @@ const cssProps = {
2367
2413
  // compiler:'',
2368
2414
  values: ['clip:c', 'ellipsis:e', ''],
2369
2415
  },
2416
+ 'text-rendering': {
2417
+ alias: '',
2418
+ type: 's',
2419
+ // compiler:'',
2420
+ values: ['auto:a', 'optimizeSpeed:os', 'optimizeLegibility:ol', 'geometricPrecision:gp'],
2421
+ },
2370
2422
  'text-shadow': {
2371
2423
  alias: 'txs',
2372
2424
  type: 'd',
@@ -2384,18 +2436,46 @@ const cssProps = {
2384
2436
  compiler: (value) => '-' + value,
2385
2437
  values: ['none:n']
2386
2438
  },
2439
+ 'text-underline-offset': {
2440
+ alias: 'tup',
2441
+ type: 'd',
2442
+ compiler: length,
2443
+ values: ['auto:a'],
2444
+ },
2387
2445
  'text-underline-position': {
2388
2446
  alias: 'tup',
2389
2447
  type: 's',
2390
2448
  // compiler:'',
2391
2449
  values: ['auto:a', 'under:u', 'left:l', 'right:r'],
2392
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
+ },
2393
2469
  'top': {
2394
2470
  alias: 't',
2395
2471
  type: 'd',
2396
2472
  compiler: length,
2397
2473
  values: ['auto:a'],
2398
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
+ },
2399
2479
  'transform': {
2400
2480
  alias: 'tf',
2401
2481
  type: 'd',
@@ -2460,10 +2540,6 @@ const cssProps = {
2460
2540
  compiler: length,
2461
2541
  values: ['none:n'],
2462
2542
  },
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
2543
  // ----------U--------
2468
2544
  'unicode-bidi': {
2469
2545
  alias: 'ub',
@@ -2478,6 +2554,12 @@ const cssProps = {
2478
2554
  values: ['none:n', 'auto:a', 'text:t', 'contain:c', 'all'],
2479
2555
  },
2480
2556
  // ----------V--------
2557
+ 'vector-effect': {
2558
+ alias: 've',
2559
+ type: 's',
2560
+ // compiler:length,
2561
+ values: ['none:n', 'non-scaling-stroke:nss'],
2562
+ },
2481
2563
  'vertical-align': {
2482
2564
  alias: 'va',
2483
2565
  type: 'd',
@@ -2568,6 +2650,18 @@ const cssProps = {
2568
2650
  // compiler:'',
2569
2651
  values: ['horizontal-tb:ht', 'vertical-rl:vrl', 'vertical-lr:vlr'],
2570
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
+ },
2571
2665
  // ----------Z--------
2572
2666
  'z-index': {
2573
2667
  alias: 'zi',
@@ -2588,14 +2682,6 @@ const cssProps = {
2588
2682
  // // compiler:'',
2589
2683
  // value:['']
2590
2684
  // },
2591
- 'alignment-baseline': {
2592
- alias: 'ab',
2593
- type: 's',
2594
- // compiler:'',
2595
- values: ['auto', 'baseline', 'before-edge', 'text-before-edge',
2596
- 'middle', 'central', 'after-edge', 'text-after-edge', 'ideographic', 'alphabetic',
2597
- 'hanging', 'mathematical', 'top', 'center', 'bottom']
2598
- },
2599
2685
  'stroke': {
2600
2686
  alias: 'str',
2601
2687
  type: 'd',
@@ -2678,176 +2764,174 @@ const cssProps = {
2678
2764
  compiler: color,
2679
2765
  values: ['transparent:t'],
2680
2766
  },
2767
+ /*
2681
2768
  // ---------------------------------CUSTOM
2682
2769
  // padding, margin
2683
- 'padding-x': {
2684
- type: 'group',
2685
- compiler: (y) => {
2686
- if (/^--[a-z]/.test(y)) {
2770
+ 'padding-x':{
2771
+ type:'group',
2772
+ compiler:(y)=>{
2773
+ if(/^--[a-z]/.test(y)){
2687
2774
  return `padding-left:var(${y});padding-right:var(${y})`;
2688
2775
  }
2689
- const value = y.split('-');
2690
- if (value.length === 3) {
2776
+ const value=y.split('-');
2777
+ if(value.length===3){
2691
2778
  return `padding-left:${value[1]};padding-right:${value[2]}`;
2692
- }
2693
- else if (value.length === 2) {
2779
+ }else if(value.length===2){
2694
2780
  return `padding-left:${value[1]};padding-right:${value[1]}`;
2695
2781
  }
2696
2782
  // else{
2697
2783
  // return `padding-left:${y};padding-right:${y}`;
2698
2784
  // }
2699
- },
2700
- groups: {
2701
- 0: "padding-left:0;padding-right:0",
2785
+ },
2786
+ groups:{
2787
+ 0:"padding-left:0;padding-right:0",
2702
2788
  },
2703
2789
  },
2704
- 'px': {
2705
- type: 'group',
2706
- compiler: (y) => {
2707
- if (/^--[a-z]/.test(y)) {
2790
+ 'px':{
2791
+ type:'group',
2792
+ compiler:(y)=>{
2793
+ if(/^--[a-z]/.test(y)){
2708
2794
  return `padding-left:var(${y});padding-right:var(${y})`;
2709
2795
  }
2710
- const value = y.split('-');
2711
- if (value.length === 3) {
2796
+ const value=y.split('-');
2797
+ if(value.length===3){
2712
2798
  return `padding-left:${value[1]};padding-right:${value[2]}`;
2713
- }
2714
- else if (value.length === 2) {
2799
+ }else if(value.length===2){
2715
2800
  return `padding-left:${value[1]};padding-right:${value[1]}`;
2716
2801
  }
2717
2802
  // else{
2718
2803
  // return `padding-left:${y};padding-right:${y}`;
2719
2804
  // }
2720
- },
2721
- groups: {
2722
- 0: "padding-left:0;padding-right:0",
2805
+ },
2806
+ groups:{
2807
+ 0:"padding-left:0;padding-right:0",
2723
2808
  },
2724
2809
  },
2725
- 'padding-y': {
2726
- type: 'group',
2727
- compiler: (y) => {
2728
- if (/^--[a-z]/.test(y)) {
2810
+
2811
+ 'padding-y':{
2812
+ type:'group',
2813
+ compiler:(y)=>{
2814
+ if(/^--[a-z]/.test(y)){
2729
2815
  return `padding-top:var(${y});padding-bottom:var(${y})`;
2730
2816
  }
2731
- const value = y.split('-');
2732
- if (value.length === 3) {
2817
+ const value=y.split('-');
2818
+ if(value.length===3){
2733
2819
  return `padding-top:${value[1]};padding-bottom:${value[2]}`;
2734
- }
2735
- else if (value.length === 2) {
2820
+ }else if(value.length===2){
2736
2821
  return `padding-top:${value[1]};padding-bottom:${value[1]}`;
2737
2822
  }
2738
2823
  // else{
2739
2824
  // return `padding-top:${y};padding-bottom:${y}`;
2740
2825
  // }
2741
- },
2742
- groups: {
2743
- 0: "padding-top:0;padding-bottom:0",
2826
+ },
2827
+ groups:{
2828
+ 0:"padding-top:0;padding-bottom:0",
2744
2829
  },
2745
2830
  },
2746
- 'py': {
2747
- type: 'group',
2748
- compiler: (y) => {
2749
- if (/^--[a-z]/.test(y)) {
2831
+ 'py':{
2832
+ type:'group',
2833
+ compiler:(y)=>{
2834
+ if(/^--[a-z]/.test(y)){
2750
2835
  return `padding-top:var(${y});padding-bottom:var(${y})`;
2751
2836
  }
2752
- const value = y.split('-');
2753
- if (value.length === 3) {
2837
+ const value=y.split('-');
2838
+ if(value.length===3){
2754
2839
  return `padding-top:${value[1]};padding-bottom:${value[2]}`;
2755
- }
2756
- else if (value.length === 2) {
2840
+ }else if(value.length===2){
2757
2841
  return `padding-top:${value[1]};padding-bottom:${value[1]}`;
2758
2842
  }
2759
2843
  // else{
2760
2844
  // return `padding-top:${y};padding-bottom:${y}`;
2761
2845
  // }
2762
- },
2763
- groups: {
2764
- 0: "padding-top:0;padding-bottom:0",
2846
+ },
2847
+ groups:{
2848
+ 0:"padding-top:0;padding-bottom:0",
2765
2849
  },
2766
2850
  },
2767
2851
  // Margin
2768
- 'margin-x': {
2769
- type: 'group',
2770
- compiler: (y) => {
2771
- if (/^--[a-z]/.test(y)) {
2852
+ 'margin-x':{
2853
+ type:'group',
2854
+ compiler:(y)=>{
2855
+ if(/^--[a-z]/.test(y)){
2772
2856
  return `margin-left:var(${y});margin-right:var(${y})`;
2773
2857
  }
2774
- const value = y.replace(/--/g, '-M').split('-');
2775
- if (value.length === 3) {
2776
- return `margin-left:${value[1].replace("M", '-')};margin-right:${value[2].replace("M", '-')}`;
2777
- }
2778
- else if (value.length === 2) {
2779
- return `margin-left:${value[1].replace("M", '-')};margin-right:${value[1].replace("M", '-')}`;
2858
+ const value=y.replace(/--/g,'-M').split('-');
2859
+ if(value.length===3){
2860
+ return `margin-left:${value[1].replace("M",'-')};margin-right:${value[2].replace("M",'-')}`;
2861
+ }else if(value.length===2){
2862
+ return `margin-left:${value[1].replace("M",'-')};margin-right:${value[1].replace("M",'-')}`;
2780
2863
  }
2781
2864
  // else{
2782
2865
  // return `margin-left:${y};margin-right:${y}`;
2783
2866
  // }
2784
- },
2785
- groups: {
2786
- 0: "margin-left:0;margin-right:0",
2867
+ },
2868
+ groups:{
2869
+ 0:"margin-left:0;margin-right:0",
2787
2870
  },
2788
2871
  },
2789
- 'mx': {
2790
- type: 'group',
2791
- compiler: (y) => {
2792
- if (/^--[a-z]/.test(y)) {
2872
+ 'mx':{
2873
+ type:'group',
2874
+ compiler:(y)=>{
2875
+ if(/^--[a-z]/.test(y)){
2793
2876
  return `margin-left:var(${y});margin-right:var(${y})`;
2794
2877
  }
2795
- const value = y.replace(/--/g, '-M').split('-');
2796
- if (value.length === 3) {
2797
- return `margin-left:${value[1].replace("M", '-')};margin-right:${value[2].replace("M", '-')}`;
2798
- }
2799
- else if (value.length === 2) {
2800
- return `margin-left:${value[1].replace("M", '-')};margin-right:${value[1].replace("M", '-')}`;
2878
+ const value=y.replace(/--/g,'-M').split('-');
2879
+ if(value.length===3){
2880
+ return `margin-left:${value[1].replace("M",'-')};margin-right:${value[2].replace("M",'-')}`;
2881
+ }else if(value.length===2){
2882
+ return `margin-left:${value[1].replace("M",'-')};margin-right:${value[1].replace("M",'-')}`;
2801
2883
  }
2802
2884
  // else{
2803
2885
  // return `margin-left:${y};margin-right:${y}`;
2804
2886
  // }
2805
- },
2806
- groups: {
2807
- 0: "margin-left:0;margin-right:0",
2887
+ },
2888
+ groups:{
2889
+ 0:"margin-left:0;margin-right:0",
2808
2890
  },
2809
2891
  },
2810
- 'margin-y': {
2811
- type: 'group',
2812
- compiler: (y) => {
2813
- if (/^--[a-z]/.test(y)) {
2892
+
2893
+ 'margin-y':{
2894
+ type:'group',
2895
+ compiler:(y)=>{
2896
+ if(/^--[a-z]/.test(y)){
2814
2897
  return `margin-top:var(${y});margin-bottom:var(${y})`;
2815
2898
  }
2816
- const value = y.replace(/--/g, '-M').split('-');
2817
- if (value.length === 3) {
2818
- return `margin-top:${value[1].replace("M", '-')};margin-bottom:${value[2].replace("M", '-')}`;
2819
- }
2820
- else if (value.length === 2) {
2821
- return `margin-top:${value[1].replace("M", '-')};margin-bottom:${value[1].replace("M", '-')}`;
2899
+ const value=y.replace(/--/g,'-M').split('-');
2900
+ if(value.length===3){
2901
+ return `margin-top:${value[1].replace("M",'-')};margin-bottom:${value[2].replace("M",'-')}`;
2902
+ }else if(value.length===2){
2903
+ return `margin-top:${value[1].replace("M",'-')};margin-bottom:${value[1].replace("M",'-')}`;
2822
2904
  }
2823
2905
  // else{
2824
2906
  // return `margin-top:${y};margin-bottom:${y}`;
2825
2907
  // }
2826
- },
2827
- groups: {
2828
- 0: "margin-top:0;margin-bottom:0",
2908
+ },
2909
+ groups:{
2910
+ 0:"margin-top:0;margin-bottom:0",
2829
2911
  },
2830
2912
  },
2831
- 'my': {
2832
- type: 'group',
2833
- compiler: (y) => {
2834
- if (/^--[a-z]/.test(y)) {
2913
+ 'my':{
2914
+ type:'group',
2915
+ compiler:(y)=>{ return "fuck";
2916
+ if(/^--[a-z]/.test(y)){
2835
2917
  return `margin-top:var(${y});margin-bottom:var(${y})`;
2836
2918
  }
2837
- const value = y.replace(/--/g, '-M').split('-');
2838
- if (value.length === 3) {
2839
- return `margin-top:${value[1].replace("M", '-')};margin-bottom:${value[2].replace("M", '-')}`;
2840
- }
2841
- else if (value.length === 2) {
2842
- return `margin-top:${value[1].replace("M", '-')};margin-bottom:${value[1].replace("M", '-')}`;
2919
+ const value=y.replace(/--/g,'-M').split('-');
2920
+ if(value.length===3){
2921
+ return `margin-top:${value[1].replace("M",'-')};margin-bottom:${value[2].replace("M",'-')}`;
2922
+ }else if(value.length===2){
2923
+ return `margin-top:${value[1].replace("M",'-')};margin-bottom:${value[1].replace("M",'-')}`;
2843
2924
  }
2844
2925
  // else{
2845
2926
  // return `margin-top:${y};margin-bottom:${y}`;
2846
2927
  // }
2847
- },
2848
- groups: {
2849
- 0: "margin-top:0;margin-bottom:0",
2928
+ },
2929
+ groups:{
2930
+ 0:"margin-top:0;margin-bottom:0",
2931
+ 1:`margin-top:${1/4}rem;margin-bottom:${1/4}rem`,
2932
+ '-1ss':`margin-top:-${1/4}rem;margin-bottom:-${1/4}rem`,
2850
2933
  },
2851
2934
  }
2935
+ */
2852
2936
  };
2853
2937
  export default cssProps;