@mlut/core 2.4.0 → 2.5.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.
@@ -71,6 +71,11 @@
71
71
 
72
72
  @if list.length($fraction) > 1 {
73
73
  $dividend: list.nth($fraction, 1);
74
+ $is-css-function: string.index($value, '(') and string.slice($value, -1) == ')';
75
+
76
+ @if $is-css-function {
77
+ @return $value;
78
+ }
74
79
 
75
80
  @if map.get($data, 'negative') {
76
81
  $dividend: '-' + $dividend;
@@ -321,7 +321,7 @@
321
321
  // Usage:
322
322
  // ```scss
323
323
  // @debug ml.uv('-Gdrl-b;r,black,#ff0'); // repeating-linear-gradient(to bottom right, black, #ff0)
324
- // @debug ml.uv('-Gdl-50d,blue;3r,cc;80p'); // linear-gradient(-50deg, blue 3rem, currentColor 80%)
324
+ // @debug ml.uv('-Msgl-50d,blue;3r,cc;80p'); // linear-gradient(-50deg, blue 3rem, currentColor 80%)
325
325
  // @debug ml.uv('-Gdc45d,#000;0.5g,yellow'); // conic-gradient(from 45deg, #000 0.5grad, yellow)
326
326
  // ```
327
327
  //
@@ -112,6 +112,20 @@ $-sizing-kw: (
112
112
  );
113
113
 
114
114
  $-bd-kw-links: ('border', 'line-style', 'line-width');
115
+ $-radial-grad-kw: (
116
+ 'position',
117
+ 'radial-shape',
118
+ 'ray-size',
119
+ 'color-space',
120
+ 'hue-interpolation',
121
+ 'gradients',
122
+ );
123
+ $-conic-grad-kw: (
124
+ 'position',
125
+ 'color-space',
126
+ 'hue-interpolation',
127
+ 'gradients',
128
+ );
115
129
 
116
130
  //stylelint-disable
117
131
  $utils-db: (
@@ -748,15 +762,7 @@ $utils-db: (
748
762
  'Bgr': (
749
763
  'properties': background-repeat,
750
764
  'multi-list-separator': ml.$tULs1,
751
- 'keywords': (
752
- '': no-repeat,
753
- 'nr': no-repeat,
754
- 'rx': repeat-x,
755
- 'ry': repeat-y,
756
- 'r': repeat,
757
- 's': space,
758
- 'rn': round,
759
- )
765
+ 'keywords': 'repeat-style',
760
766
  ),
761
767
  'Bgp': (
762
768
  'properties': background-position,
@@ -766,10 +772,7 @@ $utils-db: (
766
772
  'Bgs': (
767
773
  'properties': background-size,
768
774
  'multi-list-separator': ml.$tULs1,
769
- 'keywords': (
770
- 'ct': contain,
771
- 'cv': cover,
772
- ),
775
+ 'keywords': 'bg-size',
773
776
  ),
774
777
  'Bga': (
775
778
  'properties': background-attachment,
@@ -821,14 +824,7 @@ $utils-db: (
821
824
  'css-function': 'radial-gradient',
822
825
  'conversion': 'gradient',
823
826
  'multi-list-separator': ml.$tULs1,
824
- 'keywords': (
825
- 'position',
826
- 'radial-shape',
827
- 'ray-size',
828
- 'color-space',
829
- 'hue-interpolation',
830
- 'gradients',
831
- ),
827
+ 'keywords': $-radial-grad-kw,
832
828
  ),
833
829
  '-Gdrr': (
834
830
  'properties': background-image,
@@ -836,14 +832,7 @@ $utils-db: (
836
832
  'conversion': 'gradient',
837
833
  'css-function': 'repeating-radial-gradient',
838
834
  'multi-list-separator': ml.$tULs1,
839
- 'keywords': (
840
- 'position',
841
- 'radial-shape',
842
- 'ray-size',
843
- 'color-space',
844
- 'hue-interpolation',
845
- 'gradients',
846
- ),
835
+ 'keywords': $-radial-grad-kw,
847
836
  ),
848
837
  '-Gdc': (
849
838
  'properties': background-image,
@@ -851,12 +840,7 @@ $utils-db: (
851
840
  'css-function': 'conic-gradient',
852
841
  'conversion': 'gradient',
853
842
  'multi-list-separator': ml.$tULs1,
854
- 'keywords': (
855
- 'position',
856
- 'color-space',
857
- 'hue-interpolation',
858
- 'gradients',
859
- ),
843
+ 'keywords': $-conic-grad-kw,
860
844
  ),
861
845
  '-Gdrc': (
862
846
  'properties': background-image,
@@ -864,12 +848,7 @@ $utils-db: (
864
848
  'css-function': 'repeating-conic-gradient',
865
849
  'conversion': 'gradient',
866
850
  'multi-list-separator': ml.$tULs1,
867
- 'keywords': (
868
- 'position',
869
- 'color-space',
870
- 'hue-interpolation',
871
- 'gradients',
872
- ),
851
+ 'keywords': $-conic-grad-kw,
873
852
  ),
874
853
 
875
854
  // TRANSFORM
@@ -1267,6 +1246,115 @@ $utils-db: (
1267
1246
  'conversion': 'num-percent',
1268
1247
  ),
1269
1248
 
1249
+ // MASK
1250
+ 'Ms': (
1251
+ 'properties': mask,
1252
+ 'multi-list-separator': ml.$tULs1,
1253
+ ),
1254
+ 'Msi': (
1255
+ 'properties': mask-image,
1256
+ 'multi-list-separator': ml.$tULs1,
1257
+ ),
1258
+ 'Mscl': (
1259
+ 'properties': mask-clip,
1260
+ 'multi-list-separator': ml.$tULs1,
1261
+ 'keywords': ('box-ext', 'mask-clip'),
1262
+ ),
1263
+ 'Mso': (
1264
+ 'properties': mask-origin,
1265
+ 'multi-list-separator': ml.$tULs1,
1266
+ 'keywords': 'box-ext',
1267
+ ),
1268
+ 'Msc': (
1269
+ 'properties': mask-composite,
1270
+ 'multi-list-separator': ml.$tULs1,
1271
+ 'keywords': (
1272
+ 'a': add,
1273
+ 's': subtract,
1274
+ 'i': intersect,
1275
+ 'e': exclude,
1276
+ ),
1277
+ ),
1278
+ 'Msm': (
1279
+ 'properties': mask-mode,
1280
+ 'multi-list-separator': ml.$tULs1,
1281
+ 'keywords': (
1282
+ 'a': alpha,
1283
+ 'l': luminance,
1284
+ 'ms': match-source,
1285
+ ),
1286
+ ),
1287
+ 'Msp': (
1288
+ 'properties': mask-position,
1289
+ 'multi-list-separator': ml.$tULs1,
1290
+ 'keywords': 'position',
1291
+ ),
1292
+ 'Msr': (
1293
+ 'properties': mask-repeat,
1294
+ 'multi-list-separator': ml.$tULs1,
1295
+ 'keywords': 'repeat-style',
1296
+ ),
1297
+ 'Mss': (
1298
+ 'properties': mask-size,
1299
+ 'multi-list-separator': ml.$tULs1,
1300
+ 'keywords': 'bg-size',
1301
+ ),
1302
+ 'Mst': (
1303
+ 'properties': mask-type,
1304
+ 'keywords': (
1305
+ 'a': alpha,
1306
+ 'l': luminance,
1307
+ ),
1308
+ ),
1309
+ '-Msgl': (
1310
+ 'properties': mask-image,
1311
+ 'transformer': 'gradient',
1312
+ 'css-function': 'linear-gradient',
1313
+ 'conversion': 'gradient',
1314
+ 'multi-list-separator': ml.$tULs1,
1315
+ 'keywords': ('position', 'gradients'),
1316
+ ),
1317
+ '-Msgrpl': (
1318
+ 'properties': mask-image,
1319
+ 'transformer': 'gradient',
1320
+ 'conversion': 'gradient',
1321
+ 'css-function': 'repeating-linear-gradient',
1322
+ 'multi-list-separator': ml.$tULs1,
1323
+ 'keywords': ('position', 'gradients'),
1324
+ ),
1325
+ '-Msgr': (
1326
+ 'properties': mask-image,
1327
+ 'transformer': 'gradient',
1328
+ 'css-function': 'radial-gradient',
1329
+ 'conversion': 'gradient',
1330
+ 'multi-list-separator': ml.$tULs1,
1331
+ 'keywords': $-radial-grad-kw,
1332
+ ),
1333
+ '-Msgrpr': (
1334
+ 'properties': mask-image,
1335
+ 'transformer': 'gradient',
1336
+ 'conversion': 'gradient',
1337
+ 'css-function': 'repeating-radial-gradient',
1338
+ 'multi-list-separator': ml.$tULs1,
1339
+ 'keywords': $-radial-grad-kw,
1340
+ ),
1341
+ '-Msgc': (
1342
+ 'properties': mask-image,
1343
+ 'transformer': 'gradient',
1344
+ 'css-function': 'conic-gradient',
1345
+ 'conversion': 'gradient',
1346
+ 'multi-list-separator': ml.$tULs1,
1347
+ 'keywords': $-conic-grad-kw,
1348
+ ),
1349
+ '-Msgrpc': (
1350
+ 'properties': mask-image,
1351
+ 'transformer': 'gradient',
1352
+ 'css-function': 'repeating-conic-gradient',
1353
+ 'conversion': 'gradient',
1354
+ 'multi-list-separator': ml.$tULs1,
1355
+ 'keywords': $-conic-grad-kw,
1356
+ ),
1357
+
1270
1358
  // BORDER
1271
1359
  'Bd': (
1272
1360
  'properties': border,
@@ -1812,8 +1900,14 @@ $utils-db: (
1812
1900
  'bb': border-box,
1813
1901
  'cb': content-box,
1814
1902
  'pb': padding-box,
1903
+ 'fb': fill-box,
1904
+ 'sb': stroke-box,
1905
+ 'vb': view-box,
1815
1906
  't': text,
1816
1907
  ),
1908
+ 'mask-clip': (
1909
+ 'nc': no-clip,
1910
+ ),
1817
1911
  'blend-mode': (
1818
1912
  'n': normal,
1819
1913
  'm': multiply,
@@ -1910,6 +2004,19 @@ $utils-db: (
1910
2004
  'ic': increasing,
1911
2005
  'dc': decreasing,
1912
2006
  ),
2007
+ 'repeat-style': (
2008
+ '': no-repeat,
2009
+ 'nr': no-repeat,
2010
+ 'rx': repeat-x,
2011
+ 'ry': repeat-y,
2012
+ 'r': repeat,
2013
+ 's': space,
2014
+ 'rn': round,
2015
+ ),
2016
+ 'bg-size': (
2017
+ 'ct': contain,
2018
+ 'cv': cover,
2019
+ ),
1913
2020
  'sizing': $-sizing-kw,
1914
2021
  ),
1915
2022
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlut/core",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Tailwind CSS alternative for custom websites and creative coding",
5
5
  "author": "mr150",
6
6
  "type": "module",