@unocss/preset-uno 0.13.0 → 0.14.2

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.
@@ -1,3 +1,6 @@
1
+ import {
2
+ CONTROL_BYPASS_PSEUDO
3
+ } from "./chunk-CKV32YDT.mjs";
1
4
  import {
2
5
  capitalize,
3
6
  cornerMap,
@@ -707,17 +710,8 @@ var transitions = [
707
710
  // src/rules/filters.ts
708
711
  import { toArray as toArray2 } from "@unocss/core";
709
712
  var varEmpty = "var(--un-empty,/*!*/ /*!*/)";
710
- var percentWithDefault = (defaultValue = "1") => (str) => {
711
- const v = str ? handler.bracket.percent(str) : defaultValue;
712
- return v && parseFloat(v) <= 1 ? v : void 0;
713
- };
714
- var toFilter = (varName, resolver) => ([, b, s], { theme }) => {
715
- const value = resolver(s, theme);
716
- if (value)
717
- return { [`--un-${b || ""}${varName}`]: `${varName}(${value})` };
718
- };
719
713
  var filterContnet = "var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia) var(--un-drop-shadow)";
720
- var filter = {
714
+ var filterBase = {
721
715
  "--un-blur": varEmpty,
722
716
  "--un-brightness": varEmpty,
723
717
  "--un-contrast": varEmpty,
@@ -727,10 +721,11 @@ var filter = {
727
721
  "--un-saturate": varEmpty,
728
722
  "--un-sepia": varEmpty,
729
723
  "--un-drop-shadow": varEmpty,
730
- "filter": filterContnet
724
+ "filter": filterContnet,
725
+ [CONTROL_BYPASS_PSEUDO]: ""
731
726
  };
732
727
  var backdropFilterContent = "var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-saturate) var(--un-backdrop-sepia)";
733
- var backdropFilter = {
728
+ var backdropFilterBase = {
734
729
  "--un-backdrop-blur": varEmpty,
735
730
  "--un-backdrop-brightness": varEmpty,
736
731
  "--un-backdrop-contrast": varEmpty,
@@ -740,12 +735,26 @@ var backdropFilter = {
740
735
  "--un-backdrop-saturate": varEmpty,
741
736
  "--un-backdrop-sepia": varEmpty,
742
737
  "-webkit-backdrop-filter": backdropFilterContent,
743
- "backdrop-filter": backdropFilterContent
738
+ "backdrop-filter": backdropFilterContent,
739
+ [CONTROL_BYPASS_PSEUDO]: ""
740
+ };
741
+ var percentWithDefault = (defaultValue = "1") => (str) => {
742
+ const v = str ? handler.bracket.percent(str) : defaultValue;
743
+ return v && parseFloat(v) <= 1 ? v : void 0;
744
+ };
745
+ var toFilter = (varName, resolver) => ([, b, s], { theme }) => {
746
+ const value = resolver(s, theme);
747
+ if (value) {
748
+ return [
749
+ b ? backdropFilterBase : filterBase,
750
+ { [`--un-${b || ""}${varName}`]: `${varName}(${value})` }
751
+ ];
752
+ }
744
753
  };
745
754
  var filters = [
746
- ["filter", filter],
755
+ ["filter", filterBase],
747
756
  ["filter-none", { filter: "none" }],
748
- ["backdrop-filter", backdropFilter],
757
+ ["backdrop-filter", backdropFilterBase],
749
758
  ["backdrop-filter-none", {
750
759
  "-webkit-backdrop-filter": "none",
751
760
  "backdrop-filter": "none"
@@ -794,6 +803,155 @@ var flex = [
794
803
 
795
804
  // src/rules/typography.ts
796
805
  import { toArray as toArray3 } from "@unocss/core";
806
+
807
+ // src/rules/static.ts
808
+ var varEmpty2 = "var(--un-empty,/*!*/ /*!*/)";
809
+ var displays = [
810
+ ["inline", { display: "inline" }],
811
+ ["block", { display: "block" }],
812
+ ["inline-block", { display: "inline-block" }],
813
+ ["contents", { display: "contents" }],
814
+ ["flow-root", { display: "flow-root" }],
815
+ ["list-item", { display: "list-item" }],
816
+ ["hidden", { display: "none" }]
817
+ ];
818
+ var appearances = [
819
+ ["visible", { visibility: "visible" }],
820
+ ["invisible", { visibility: "hidden" }],
821
+ ["backface-visible", { "backface-visibility": "visible" }],
822
+ ["backface-hidden", { "backface-visibility": "hidden" }]
823
+ ];
824
+ var cursors = [
825
+ [/^cursor-(.+)$/, ([, c]) => ({ cursor: c })]
826
+ ];
827
+ var pointerEvents = [
828
+ ["pointer-events-none", { "pointer-events": "none" }],
829
+ ["pointer-events-auto", { "pointer-events": "auto" }]
830
+ ];
831
+ var resizes = [
832
+ ["resize-none", { resize: "none" }],
833
+ ["resize-x", { resize: "horizontal" }],
834
+ ["resize-y", { resize: "vertical" }],
835
+ ["resize", { resize: "both" }]
836
+ ];
837
+ var userSelects = [
838
+ [/^select-(none|text|all|auto)$/, ([, v]) => ({ "user-select": v })]
839
+ ];
840
+ var whitespaces = [
841
+ [/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
842
+ ];
843
+ var contents = [
844
+ ["content-empty", { content: '""' }]
845
+ ];
846
+ var breaks = [
847
+ ["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
848
+ ["break-word", { "overflow-wrap": "break-word" }],
849
+ ["break-all", { "word-break": "break-all" }]
850
+ ];
851
+ var textOverflows = [
852
+ ["truncate", { "overflow": "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }],
853
+ ["text-ellipsis", { "text-overflow": "ellipsis" }],
854
+ ["text-clip", { "text-overflow": "clip" }]
855
+ ];
856
+ var textTransforms = [
857
+ ["case-upper", { "text-transform": "uppercase" }],
858
+ ["case-lower", { "text-transform": "lowercase" }],
859
+ ["case-capital", { "text-transform": "capitalize" }],
860
+ ["case-normal", { "text-transform": "none" }],
861
+ ["uppercase", { "text-transform": "uppercase" }],
862
+ ["lowercase", { "text-transform": "lowercase" }],
863
+ ["capitalize", { "text-transform": "capitalize" }],
864
+ ["normal-case", { "text-transform": "none" }]
865
+ ];
866
+ var textDecorations = [
867
+ ["underline", { "text-decoration": "underline" }],
868
+ ["line-through", { "text-decoration": "line-through" }],
869
+ ["no-underline", { "text-decoration": "none" }]
870
+ ];
871
+ var textDecorationStyles = [
872
+ ["underline-solid", { "text-decoration-style": "solid" }],
873
+ ["underline-double", { "text-decoration-style": "double" }],
874
+ ["underline-dotted", { "text-decoration-style": "dotted" }],
875
+ ["underline-dashed", { "text-decoration-style": "dashed" }]
876
+ ];
877
+ var fontStyles = [
878
+ ["italic", { "font-style": "italic" }],
879
+ ["not-italic", { "font-style": "normal" }]
880
+ ];
881
+ var fontSmoothings = [
882
+ ["antialiased", {
883
+ "-webkit-font-smoothing": "antialiased",
884
+ "-moz-osx-font-smoothing": "grayscale",
885
+ "font-smoothing": "grayscale"
886
+ }],
887
+ ["subpixel-antialiased", {
888
+ "-webkit-font-smoothing": "auto",
889
+ "-moz-osx-font-smoothing": "auto",
890
+ "font-smoothing": "auto"
891
+ }]
892
+ ];
893
+ var hyphens = [
894
+ ["hyphens-none", {
895
+ "-webkit-hyphens": "none",
896
+ "-ms-hyphens": "none",
897
+ "hyphens": "none"
898
+ }],
899
+ ["hyphens-manual", {
900
+ "-webkit-hyphens": "manual",
901
+ "-ms-hyphens": "manual",
902
+ "hyphens": "manual"
903
+ }],
904
+ ["hyphens-auto", {
905
+ "-webkit-hyphens": "auto",
906
+ "-ms-hyphens": "auto",
907
+ "hyphens": "auto"
908
+ }]
909
+ ];
910
+ var writingModes = [
911
+ ["write-normal", { "writing-mode": "horizontal-tb" }],
912
+ ["write-vertical-right", { "writing-mode": "vertical-rl" }],
913
+ ["write-vertical-left", { "writing-mode": "vertical-lr" }]
914
+ ];
915
+ var writingOrientations = [
916
+ ["write-orient-mixed", { "text-orientation": "mixed" }],
917
+ ["write-orient-upright", { "text-orientation": "upright" }],
918
+ ["write-orient-sideways", { "text-orientation": "sideways" }]
919
+ ];
920
+ var screenReadersAccess = [
921
+ [
922
+ "sr-only",
923
+ {
924
+ "position": "absolute",
925
+ "width": "1px",
926
+ "height": "1px",
927
+ "padding": "0",
928
+ "margin": "-1px",
929
+ "overflow": "hidden",
930
+ "clip": "rect(0,0,0,0)",
931
+ "white-space": "nowrap",
932
+ "border-width": 0
933
+ }
934
+ ],
935
+ [
936
+ "not-sr-only",
937
+ {
938
+ "position": "static",
939
+ "width": "auto",
940
+ "height": "auto",
941
+ "padding": "0",
942
+ "margin": "0",
943
+ "overflow": "visible",
944
+ "clip": "auto",
945
+ "white-space": "normal"
946
+ }
947
+ ]
948
+ ];
949
+ var isolations = [
950
+ ["isolate", { isolation: "isolate" }],
951
+ ["isolate-auto", { isolation: "auto" }]
952
+ ];
953
+
954
+ // src/rules/typography.ts
797
955
  var fontsFamilies = [
798
956
  [/^font-(\w+)$/, ([, d], { theme }) => {
799
957
  var _a;
@@ -911,6 +1069,26 @@ var textShadows = [
911
1069
  return { "text-shadow": v };
912
1070
  }]
913
1071
  ];
1072
+ var fontVariantNumericBase = {
1073
+ "--un-ordinal": varEmpty2,
1074
+ "--un-slashed-zero": varEmpty2,
1075
+ "--un-numeric-figure": varEmpty2,
1076
+ "--un-numeric-spacing": varEmpty2,
1077
+ "--un-numeric-fraction": varEmpty2,
1078
+ "font-variant-numeric": "var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)",
1079
+ [CONTROL_BYPASS_PSEUDO]: ""
1080
+ };
1081
+ var fontVariantNumeric = [
1082
+ [/^ordinal$/, () => [fontVariantNumericBase, { "--un-ordinal": "ordinal" }]],
1083
+ [/^slashed-zero$/, () => [fontVariantNumericBase, { "--un-slashed-zero": "slashed-zero" }]],
1084
+ [/^lining-nums$/, () => [fontVariantNumericBase, { "--un-numeric-figure": "lining-nums" }]],
1085
+ [/^oldstyle-nums$/, () => [fontVariantNumericBase, { "--un-numeric-figure": "oldstyle-nums" }]],
1086
+ [/^proportional-nums$/, () => [fontVariantNumericBase, { "--un-numeric-spacing": "proportional-nums" }]],
1087
+ [/^tabular-nums$/, () => [fontVariantNumericBase, { "--un-numeric-spacing": "tabular-nums" }]],
1088
+ [/^diagonal-fractions$/, () => [fontVariantNumericBase, { "--un-numeric-fraction": "diagonal-fractions" }]],
1089
+ [/^stacked-fractions$/, () => [fontVariantNumericBase, { "--un-numeric-fraction": "stacked-fractions" }]],
1090
+ ["normal-nums", { "font-variant-numeric": "normal" }]
1091
+ ];
914
1092
  var fonts = [
915
1093
  fontsFamilies,
916
1094
  fontSizes,
@@ -1261,152 +1439,6 @@ var margins = [
1261
1439
  }]
1262
1440
  ];
1263
1441
 
1264
- // src/rules/static.ts
1265
- var displays = [
1266
- ["inline", { display: "inline" }],
1267
- ["block", { display: "block" }],
1268
- ["inline-block", { display: "inline-block" }],
1269
- ["contents", { display: "contents" }],
1270
- ["flow-root", { display: "flow-root" }],
1271
- ["list-item", { display: "list-item" }],
1272
- ["hidden", { display: "none" }]
1273
- ];
1274
- var appearances = [
1275
- ["visible", { visibility: "visible" }],
1276
- ["invisible", { visibility: "hidden" }],
1277
- ["backface-visible", { "backface-visibility": "visible" }],
1278
- ["backface-hidden", { "backface-visibility": "hidden" }]
1279
- ];
1280
- var cursors = [
1281
- [/^cursor-(.+)$/, ([, c]) => ({ cursor: c })]
1282
- ];
1283
- var pointerEvents = [
1284
- ["pointer-events-none", { "pointer-events": "none" }],
1285
- ["pointer-events-auto", { "pointer-events": "auto" }]
1286
- ];
1287
- var resizes = [
1288
- ["resize-none", { resize: "none" }],
1289
- ["resize-x", { resize: "horizontal" }],
1290
- ["resize-y", { resize: "vertical" }],
1291
- ["resize", { resize: "both" }]
1292
- ];
1293
- var userSelects = [
1294
- [/^select-(none|text|all|auto)$/, ([, v]) => ({ "user-select": v })]
1295
- ];
1296
- var whitespaces = [
1297
- [/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/, ([, v]) => ({ "white-space": v })]
1298
- ];
1299
- var contents = [
1300
- ["content-empty", { content: '""' }]
1301
- ];
1302
- var breaks = [
1303
- ["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
1304
- ["break-word", { "overflow-wrap": "break-word" }],
1305
- ["break-all", { "word-break": "break-all" }]
1306
- ];
1307
- var textOverflows = [
1308
- ["truncate", { "overflow": "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }],
1309
- ["text-ellipsis", { "text-overflow": "ellipsis" }],
1310
- ["text-clip", { "text-overflow": "clip" }]
1311
- ];
1312
- var textTransforms = [
1313
- ["case-upper", { "text-transform": "uppercase" }],
1314
- ["case-lower", { "text-transform": "lowercase" }],
1315
- ["case-capital", { "text-transform": "capitalize" }],
1316
- ["case-normal", { "text-transform": "none" }],
1317
- ["uppercase", { "text-transform": "uppercase" }],
1318
- ["lowercase", { "text-transform": "lowercase" }],
1319
- ["capitalize", { "text-transform": "capitalize" }],
1320
- ["normal-case", { "text-transform": "none" }]
1321
- ];
1322
- var textDecorations = [
1323
- ["underline", { "text-decoration": "underline" }],
1324
- ["line-through", { "text-decoration": "line-through" }],
1325
- ["no-underline", { "text-decoration": "none" }]
1326
- ];
1327
- var textDecorationStyles = [
1328
- ["underline-solid", { "text-decoration-style": "solid" }],
1329
- ["underline-double", { "text-decoration-style": "double" }],
1330
- ["underline-dotted", { "text-decoration-style": "dotted" }],
1331
- ["underline-dashed", { "text-decoration-style": "dashed" }]
1332
- ];
1333
- var fontStyles = [
1334
- ["italic", { "font-style": "italic" }],
1335
- ["not-italic", { "font-style": "normal" }]
1336
- ];
1337
- var fontSmoothings = [
1338
- ["antialiased", {
1339
- "-webkit-font-smoothing": "antialiased",
1340
- "-moz-osx-font-smoothing": "grayscale",
1341
- "font-smoothing": "grayscale"
1342
- }],
1343
- ["subpixel-antialiased", {
1344
- "-webkit-font-smoothing": "auto",
1345
- "-moz-osx-font-smoothing": "auto",
1346
- "font-smoothing": "auto"
1347
- }]
1348
- ];
1349
- var hyphens = [
1350
- ["hyphens-none", {
1351
- "-webkit-hyphens": "none",
1352
- "-ms-hyphens": "none",
1353
- "hyphens": "none"
1354
- }],
1355
- ["hyphens-manual", {
1356
- "-webkit-hyphens": "manual",
1357
- "-ms-hyphens": "manual",
1358
- "hyphens": "manual"
1359
- }],
1360
- ["hyphens-auto", {
1361
- "-webkit-hyphens": "auto",
1362
- "-ms-hyphens": "auto",
1363
- "hyphens": "auto"
1364
- }]
1365
- ];
1366
- var writingModes = [
1367
- ["write-normal", { "writing-mode": "horizontal-tb" }],
1368
- ["write-vertical-right", { "writing-mode": "vertical-rl" }],
1369
- ["write-vertical-left", { "writing-mode": "vertical-lr" }]
1370
- ];
1371
- var writingOrientations = [
1372
- ["write-orient-mixed", { "text-orientation": "mixed" }],
1373
- ["write-orient-upright", { "text-orientation": "upright" }],
1374
- ["write-orient-sideways", { "text-orientation": "sideways" }]
1375
- ];
1376
- var screenReadersAccess = [
1377
- [
1378
- "sr-only",
1379
- {
1380
- "position": "absolute",
1381
- "width": "1px",
1382
- "height": "1px",
1383
- "padding": "0",
1384
- "margin": "-1px",
1385
- "overflow": "hidden",
1386
- "clip": "rect(0,0,0,0)",
1387
- "white-space": "nowrap",
1388
- "border-width": 0
1389
- }
1390
- ],
1391
- [
1392
- "not-sr-only",
1393
- {
1394
- "position": "static",
1395
- "width": "auto",
1396
- "height": "auto",
1397
- "padding": "0",
1398
- "margin": "0",
1399
- "overflow": "visible",
1400
- "clip": "auto",
1401
- "white-space": "normal"
1402
- }
1403
- ]
1404
- ];
1405
- var isolations = [
1406
- ["isolate", { isolation: "isolate" }],
1407
- ["isolate-auto", { isolation: "auto" }]
1408
- ];
1409
-
1410
1442
  // src/rules/table.ts
1411
1443
  var tables = [
1412
1444
  ["border-collapse", { "border-collapse": "collapse" }],
@@ -1430,25 +1462,22 @@ var tables = [
1430
1462
  ];
1431
1463
 
1432
1464
  // src/rules/transform.ts
1465
+ var transformBase = {
1466
+ "--un-rotate": 0,
1467
+ "--un-scale-x": 1,
1468
+ "--un-scale-y": 1,
1469
+ "--un-scale-z": 1,
1470
+ "--un-skew-x": 0,
1471
+ "--un-skew-y": 0,
1472
+ "--un-translate-x": 0,
1473
+ "--un-translate-y": 0,
1474
+ "--un-translate-z": 0,
1475
+ "transform": "rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z))",
1476
+ [CONTROL_BYPASS_PSEUDO]: ""
1477
+ };
1433
1478
  var transforms = [
1434
- [
1435
- "transform",
1436
- {
1437
- "--un-rotate": 0,
1438
- "--un-scale-x": 1,
1439
- "--un-scale-y": 1,
1440
- "--un-scale-z": 1,
1441
- "--un-skew-x": 0,
1442
- "--un-skew-y": 0,
1443
- "--un-translate-x": 0,
1444
- "--un-translate-y": 0,
1445
- "--un-translate-z": 0,
1446
- "transform": "rotate(var(--un-rotate)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z))"
1447
- }
1448
- ],
1449
- [/^preserve-(3d|flat)$/, ([, value]) => ({
1450
- "transform-style": value === "3d" ? `preserve-${value}` : value
1451
- })],
1479
+ ["transform", transformBase],
1480
+ [/^preserve-(3d|flat)$/, ([, value]) => ({ "transform-style": value === "3d" ? `preserve-${value}` : value })],
1452
1481
  [/^translate()-([^-]+)$/, handleTranslate],
1453
1482
  [/^translate-([xyz])-([^-]+)$/, handleTranslate],
1454
1483
  [/^scale()-([^-]+)$/, handleScale],
@@ -1468,7 +1497,10 @@ function handleTranslate([, d, b]) {
1468
1497
  const v = handler.bracket.fraction.rem(b);
1469
1498
  if (v != null) {
1470
1499
  return [
1471
- ...xyzMap[d].map((i) => [`--un-translate${i}`, v])
1500
+ transformBase,
1501
+ [
1502
+ ...xyzMap[d].map((i) => [`--un-translate${i}`, v])
1503
+ ]
1472
1504
  ];
1473
1505
  }
1474
1506
  }
@@ -1476,14 +1508,21 @@ function handleScale([, d, b]) {
1476
1508
  const v = handler.bracket.fraction.percent(b);
1477
1509
  if (v != null) {
1478
1510
  return [
1479
- ...xyzMap[d].map((i) => [`--un-scale${i}`, v])
1511
+ transformBase,
1512
+ [
1513
+ ...xyzMap[d].map((i) => [`--un-scale${i}`, v])
1514
+ ]
1480
1515
  ];
1481
1516
  }
1482
1517
  }
1483
1518
  function handleRotate([, b]) {
1484
1519
  const v = handler.bracket.number(b);
1485
- if (v != null)
1486
- return { "--un-rotate": `${v}deg` };
1520
+ if (v != null) {
1521
+ return [
1522
+ transformBase,
1523
+ { "--un-rotate": `${v}deg` }
1524
+ ];
1525
+ }
1487
1526
  }
1488
1527
 
1489
1528
  // src/rules/variables.ts
@@ -1633,6 +1672,7 @@ var rules = [
1633
1672
  textAligns,
1634
1673
  textColors,
1635
1674
  fontStyles,
1675
+ fontVariantNumeric,
1636
1676
  fontSmoothings,
1637
1677
  hyphens,
1638
1678
  writingModes,
@@ -1734,6 +1774,27 @@ export {
1734
1774
  transitions,
1735
1775
  filters,
1736
1776
  flex,
1777
+ varEmpty2 as varEmpty,
1778
+ displays,
1779
+ appearances,
1780
+ cursors,
1781
+ pointerEvents,
1782
+ resizes,
1783
+ userSelects,
1784
+ whitespaces,
1785
+ contents,
1786
+ breaks,
1787
+ textOverflows,
1788
+ textTransforms,
1789
+ textDecorations,
1790
+ textDecorationStyles,
1791
+ fontStyles,
1792
+ fontSmoothings,
1793
+ hyphens,
1794
+ writingModes,
1795
+ writingOrientations,
1796
+ screenReadersAccess,
1797
+ isolations,
1737
1798
  fontsFamilies,
1738
1799
  fontSizes,
1739
1800
  fontWeights,
@@ -1746,6 +1807,7 @@ export {
1746
1807
  textIndents,
1747
1808
  textStrokeWidths,
1748
1809
  textShadows,
1810
+ fontVariantNumeric,
1749
1811
  fonts,
1750
1812
  gaps,
1751
1813
  grids,
@@ -1773,26 +1835,6 @@ export {
1773
1835
  aspectRatio,
1774
1836
  paddings,
1775
1837
  margins,
1776
- displays,
1777
- appearances,
1778
- cursors,
1779
- pointerEvents,
1780
- resizes,
1781
- userSelects,
1782
- whitespaces,
1783
- contents,
1784
- breaks,
1785
- textOverflows,
1786
- textTransforms,
1787
- textDecorations,
1788
- textDecorationStyles,
1789
- fontStyles,
1790
- fontSmoothings,
1791
- hyphens,
1792
- writingModes,
1793
- writingOrientations,
1794
- screenReadersAccess,
1795
- isolations,
1796
1838
  tables,
1797
1839
  transforms,
1798
1840
  cssVariables,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkGBKIE2NKjs = require('./chunk-GBKIE2NK.js');
4
+ var _chunkVYMMTQ2Njs = require('./chunk-VYMMTQ2N.js');
5
5
 
6
6
 
7
7
  var _chunkBOWXQI3Bjs = require('./chunk-BOWXQI3B.js');
@@ -12,7 +12,8 @@ var _chunk7O4GGKN3js = require('./chunk-7O4GGKN3.js');
12
12
 
13
13
 
14
14
 
15
- var _chunk64RIF3V4js = require('./chunk-64RIF3V4.js');
15
+ var _chunkHD4ZLDCQjs = require('./chunk-HD4ZLDCQ.js');
16
+ require('./chunk-VQNLS43G.js');
16
17
  require('./chunk-LPZDYB4J.js');
17
18
  require('./chunk-Y6EUTGDC.js');
18
19
 
@@ -20,13 +21,13 @@ require('./chunk-Y6EUTGDC.js');
20
21
  var preset = (options = {}) => ({
21
22
  name: "@unocss/preset-uno",
22
23
  theme: _chunkBOWXQI3Bjs.theme,
23
- rules: _chunkGBKIE2NKjs.rules,
24
+ rules: _chunkVYMMTQ2Njs.rules,
24
25
  variants: [
25
- ..._chunk64RIF3V4js.variants,
26
- ...options.dark === "media" ? _chunk64RIF3V4js.variantColorsMedia : _chunk64RIF3V4js.variantColorsClass
26
+ ..._chunkHD4ZLDCQjs.variants,
27
+ ...options.dark === "media" ? _chunkHD4ZLDCQjs.variantColorsMedia : _chunkHD4ZLDCQjs.variantColorsClass
27
28
  ],
28
29
  shortcuts: [
29
- ..._chunkGBKIE2NKjs.containerShortcuts
30
+ ..._chunkVYMMTQ2Njs.containerShortcuts
30
31
  ],
31
32
  options
32
33
  });
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  containerShortcuts,
3
3
  rules
4
- } from "./chunk-RDUXYWRV.mjs";
4
+ } from "./chunk-XF2Z5UCK.mjs";
5
5
  import {
6
6
  theme
7
7
  } from "./chunk-BLAKJWHG.mjs";
@@ -12,7 +12,8 @@ import {
12
12
  variantColorsClass,
13
13
  variantColorsMedia,
14
14
  variants
15
- } from "./chunk-IFOGL3S7.mjs";
15
+ } from "./chunk-SVHXUA5V.mjs";
16
+ import "./chunk-CKV32YDT.mjs";
16
17
  import "./chunk-O7YRGPXQ.mjs";
17
18
  import "./chunk-5SH5BFJ4.mjs";
18
19
 
package/dist/rules.d.ts CHANGED
@@ -114,6 +114,7 @@ declare const aspectRatio: Rule[];
114
114
  declare const paddings: Rule[];
115
115
  declare const margins: Rule[];
116
116
 
117
+ declare const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
117
118
  declare const displays: Rule[];
118
119
  declare const appearances: Rule[];
119
120
  declare const cursors: Rule[];
@@ -153,8 +154,9 @@ declare const textDecorationOffsets: Rule<Theme>[];
153
154
  declare const textIndents: Rule<Theme>[];
154
155
  declare const textStrokeWidths: Rule<Theme>[];
155
156
  declare const textShadows: Rule<Theme>[];
157
+ declare const fontVariantNumeric: Rule[];
156
158
  declare const fonts: Rule<Theme>[];
157
159
 
158
160
  declare const cssVariables: Rule[];
159
161
 
160
- export { alignContents, alignItems, alignSelfs, animations, appearance, appearances, aspectRatio, bgAttachments, bgBlendModes, bgClips, bgColors, bgGradients, bgImages, bgOrigins, bgPositions, bgRepeats, bgSizes, borderColors, borderRadius, borderSizes, borderStyles, borders, boxDecorationBreaks, boxShadows, boxSizing, breaks, caretColors, caretOpacity, colorResolver, container, containerShortcuts, contents, cssVariables, cursors, displays, divideColors, divideSizes, divideStyles, divides, fillColors, filters, flex, floats, fontSizes, fontSmoothings, fontStyles, fontWeights, fonts, fontsFamilies, gaps, grids, hyphens, imageRenderings, insets, isolations, justifies, justifyItems, justifySelfs, leadings, lineClamps, listStyle, margins, mixBlendModes, objectPositions, opacity, orders, outline, overflows, overscrolls, paddings, parseColorUtil, placeContents, placeItems, placeSelfs, placeholder, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, screenReadersAccess, sizes, tabSizes, tables, textAligns, textColors, textDecorationColors, textDecorationLengths, textDecorationOffsets, textDecorationStyles, textDecorations, textIndents, textOverflows, textShadows, textStrokeColors, textStrokeWidths, textTransforms, trackings, transforms, transitions, userSelects, verticalAligns, whitespaces, wordSpacings, writingModes, writingOrientations, zIndexes };
162
+ export { alignContents, alignItems, alignSelfs, animations, appearance, appearances, aspectRatio, bgAttachments, bgBlendModes, bgClips, bgColors, bgGradients, bgImages, bgOrigins, bgPositions, bgRepeats, bgSizes, borderColors, borderRadius, borderSizes, borderStyles, borders, boxDecorationBreaks, boxShadows, boxSizing, breaks, caretColors, caretOpacity, colorResolver, container, containerShortcuts, contents, cssVariables, cursors, displays, divideColors, divideSizes, divideStyles, divides, fillColors, filters, flex, floats, fontSizes, fontSmoothings, fontStyles, fontVariantNumeric, fontWeights, fonts, fontsFamilies, gaps, grids, hyphens, imageRenderings, insets, isolations, justifies, justifyItems, justifySelfs, leadings, lineClamps, listStyle, margins, mixBlendModes, objectPositions, opacity, orders, outline, overflows, overscrolls, paddings, parseColorUtil, placeContents, placeItems, placeSelfs, placeholder, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, screenReadersAccess, sizes, tabSizes, tables, textAligns, textColors, textDecorationColors, textDecorationLengths, textDecorationOffsets, textDecorationStyles, textDecorations, textIndents, textOverflows, textShadows, textStrokeColors, textStrokeWidths, textTransforms, trackings, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, wordSpacings, writingModes, writingOrientations, zIndexes };
package/dist/rules.js CHANGED
@@ -109,7 +109,10 @@
109
109
 
110
110
 
111
111
 
112
- var _chunkGBKIE2NKjs = require('./chunk-GBKIE2NK.js');
112
+
113
+
114
+ var _chunkVYMMTQ2Njs = require('./chunk-VYMMTQ2N.js');
115
+ require('./chunk-VQNLS43G.js');
113
116
  require('./chunk-LPZDYB4J.js');
114
117
  require('./chunk-Y6EUTGDC.js');
115
118
 
@@ -223,4 +226,6 @@ require('./chunk-Y6EUTGDC.js');
223
226
 
224
227
 
225
228
 
226
- exports.alignContents = _chunkGBKIE2NKjs.alignContents; exports.alignItems = _chunkGBKIE2NKjs.alignItems; exports.alignSelfs = _chunkGBKIE2NKjs.alignSelfs; exports.animations = _chunkGBKIE2NKjs.animations; exports.appearance = _chunkGBKIE2NKjs.appearance; exports.appearances = _chunkGBKIE2NKjs.appearances; exports.aspectRatio = _chunkGBKIE2NKjs.aspectRatio; exports.bgAttachments = _chunkGBKIE2NKjs.bgAttachments; exports.bgBlendModes = _chunkGBKIE2NKjs.bgBlendModes; exports.bgClips = _chunkGBKIE2NKjs.bgClips; exports.bgColors = _chunkGBKIE2NKjs.bgColors; exports.bgGradients = _chunkGBKIE2NKjs.bgGradients; exports.bgImages = _chunkGBKIE2NKjs.bgImages; exports.bgOrigins = _chunkGBKIE2NKjs.bgOrigins; exports.bgPositions = _chunkGBKIE2NKjs.bgPositions; exports.bgRepeats = _chunkGBKIE2NKjs.bgRepeats; exports.bgSizes = _chunkGBKIE2NKjs.bgSizes; exports.borderColors = _chunkGBKIE2NKjs.borderColors; exports.borderRadius = _chunkGBKIE2NKjs.borderRadius; exports.borderSizes = _chunkGBKIE2NKjs.borderSizes; exports.borderStyles = _chunkGBKIE2NKjs.borderStyles; exports.borders = _chunkGBKIE2NKjs.borders; exports.boxDecorationBreaks = _chunkGBKIE2NKjs.boxDecorationBreaks; exports.boxShadows = _chunkGBKIE2NKjs.boxShadows; exports.boxSizing = _chunkGBKIE2NKjs.boxSizing; exports.breaks = _chunkGBKIE2NKjs.breaks; exports.caretColors = _chunkGBKIE2NKjs.caretColors; exports.caretOpacity = _chunkGBKIE2NKjs.caretOpacity; exports.colorResolver = _chunkGBKIE2NKjs.colorResolver; exports.container = _chunkGBKIE2NKjs.container; exports.containerShortcuts = _chunkGBKIE2NKjs.containerShortcuts; exports.contents = _chunkGBKIE2NKjs.contents; exports.cssVariables = _chunkGBKIE2NKjs.cssVariables; exports.cursors = _chunkGBKIE2NKjs.cursors; exports.displays = _chunkGBKIE2NKjs.displays; exports.divideColors = _chunkGBKIE2NKjs.divideColors; exports.divideSizes = _chunkGBKIE2NKjs.divideSizes; exports.divideStyles = _chunkGBKIE2NKjs.divideStyles; exports.divides = _chunkGBKIE2NKjs.divides; exports.fillColors = _chunkGBKIE2NKjs.fillColors; exports.filters = _chunkGBKIE2NKjs.filters; exports.flex = _chunkGBKIE2NKjs.flex; exports.floats = _chunkGBKIE2NKjs.floats; exports.fontSizes = _chunkGBKIE2NKjs.fontSizes; exports.fontSmoothings = _chunkGBKIE2NKjs.fontSmoothings; exports.fontStyles = _chunkGBKIE2NKjs.fontStyles; exports.fontWeights = _chunkGBKIE2NKjs.fontWeights; exports.fonts = _chunkGBKIE2NKjs.fonts; exports.fontsFamilies = _chunkGBKIE2NKjs.fontsFamilies; exports.gaps = _chunkGBKIE2NKjs.gaps; exports.grids = _chunkGBKIE2NKjs.grids; exports.hyphens = _chunkGBKIE2NKjs.hyphens; exports.imageRenderings = _chunkGBKIE2NKjs.imageRenderings; exports.insets = _chunkGBKIE2NKjs.insets; exports.isolations = _chunkGBKIE2NKjs.isolations; exports.justifies = _chunkGBKIE2NKjs.justifies; exports.justifyItems = _chunkGBKIE2NKjs.justifyItems; exports.justifySelfs = _chunkGBKIE2NKjs.justifySelfs; exports.leadings = _chunkGBKIE2NKjs.leadings; exports.lineClamps = _chunkGBKIE2NKjs.lineClamps; exports.listStyle = _chunkGBKIE2NKjs.listStyle; exports.margins = _chunkGBKIE2NKjs.margins; exports.mixBlendModes = _chunkGBKIE2NKjs.mixBlendModes; exports.objectPositions = _chunkGBKIE2NKjs.objectPositions; exports.opacity = _chunkGBKIE2NKjs.opacity; exports.orders = _chunkGBKIE2NKjs.orders; exports.outline = _chunkGBKIE2NKjs.outline; exports.overflows = _chunkGBKIE2NKjs.overflows; exports.overscrolls = _chunkGBKIE2NKjs.overscrolls; exports.paddings = _chunkGBKIE2NKjs.paddings; exports.parseColorUtil = _chunkGBKIE2NKjs.parseColorUtil; exports.placeContents = _chunkGBKIE2NKjs.placeContents; exports.placeItems = _chunkGBKIE2NKjs.placeItems; exports.placeSelfs = _chunkGBKIE2NKjs.placeSelfs; exports.placeholder = _chunkGBKIE2NKjs.placeholder; exports.pointerEvents = _chunkGBKIE2NKjs.pointerEvents; exports.positions = _chunkGBKIE2NKjs.positions; exports.questionMark = _chunkGBKIE2NKjs.questionMark; exports.resizes = _chunkGBKIE2NKjs.resizes; exports.ringColors = _chunkGBKIE2NKjs.ringColors; exports.ringOffsetColors = _chunkGBKIE2NKjs.ringOffsetColors; exports.rings = _chunkGBKIE2NKjs.rings; exports.rules = _chunkGBKIE2NKjs.rules; exports.screenReadersAccess = _chunkGBKIE2NKjs.screenReadersAccess; exports.sizes = _chunkGBKIE2NKjs.sizes; exports.tabSizes = _chunkGBKIE2NKjs.tabSizes; exports.tables = _chunkGBKIE2NKjs.tables; exports.textAligns = _chunkGBKIE2NKjs.textAligns; exports.textColors = _chunkGBKIE2NKjs.textColors; exports.textDecorationColors = _chunkGBKIE2NKjs.textDecorationColors; exports.textDecorationLengths = _chunkGBKIE2NKjs.textDecorationLengths; exports.textDecorationOffsets = _chunkGBKIE2NKjs.textDecorationOffsets; exports.textDecorationStyles = _chunkGBKIE2NKjs.textDecorationStyles; exports.textDecorations = _chunkGBKIE2NKjs.textDecorations; exports.textIndents = _chunkGBKIE2NKjs.textIndents; exports.textOverflows = _chunkGBKIE2NKjs.textOverflows; exports.textShadows = _chunkGBKIE2NKjs.textShadows; exports.textStrokeColors = _chunkGBKIE2NKjs.textStrokeColors; exports.textStrokeWidths = _chunkGBKIE2NKjs.textStrokeWidths; exports.textTransforms = _chunkGBKIE2NKjs.textTransforms; exports.trackings = _chunkGBKIE2NKjs.trackings; exports.transforms = _chunkGBKIE2NKjs.transforms; exports.transitions = _chunkGBKIE2NKjs.transitions; exports.userSelects = _chunkGBKIE2NKjs.userSelects; exports.verticalAligns = _chunkGBKIE2NKjs.verticalAligns; exports.whitespaces = _chunkGBKIE2NKjs.whitespaces; exports.wordSpacings = _chunkGBKIE2NKjs.wordSpacings; exports.writingModes = _chunkGBKIE2NKjs.writingModes; exports.writingOrientations = _chunkGBKIE2NKjs.writingOrientations; exports.zIndexes = _chunkGBKIE2NKjs.zIndexes;
229
+
230
+
231
+ exports.alignContents = _chunkVYMMTQ2Njs.alignContents; exports.alignItems = _chunkVYMMTQ2Njs.alignItems; exports.alignSelfs = _chunkVYMMTQ2Njs.alignSelfs; exports.animations = _chunkVYMMTQ2Njs.animations; exports.appearance = _chunkVYMMTQ2Njs.appearance; exports.appearances = _chunkVYMMTQ2Njs.appearances; exports.aspectRatio = _chunkVYMMTQ2Njs.aspectRatio; exports.bgAttachments = _chunkVYMMTQ2Njs.bgAttachments; exports.bgBlendModes = _chunkVYMMTQ2Njs.bgBlendModes; exports.bgClips = _chunkVYMMTQ2Njs.bgClips; exports.bgColors = _chunkVYMMTQ2Njs.bgColors; exports.bgGradients = _chunkVYMMTQ2Njs.bgGradients; exports.bgImages = _chunkVYMMTQ2Njs.bgImages; exports.bgOrigins = _chunkVYMMTQ2Njs.bgOrigins; exports.bgPositions = _chunkVYMMTQ2Njs.bgPositions; exports.bgRepeats = _chunkVYMMTQ2Njs.bgRepeats; exports.bgSizes = _chunkVYMMTQ2Njs.bgSizes; exports.borderColors = _chunkVYMMTQ2Njs.borderColors; exports.borderRadius = _chunkVYMMTQ2Njs.borderRadius; exports.borderSizes = _chunkVYMMTQ2Njs.borderSizes; exports.borderStyles = _chunkVYMMTQ2Njs.borderStyles; exports.borders = _chunkVYMMTQ2Njs.borders; exports.boxDecorationBreaks = _chunkVYMMTQ2Njs.boxDecorationBreaks; exports.boxShadows = _chunkVYMMTQ2Njs.boxShadows; exports.boxSizing = _chunkVYMMTQ2Njs.boxSizing; exports.breaks = _chunkVYMMTQ2Njs.breaks; exports.caretColors = _chunkVYMMTQ2Njs.caretColors; exports.caretOpacity = _chunkVYMMTQ2Njs.caretOpacity; exports.colorResolver = _chunkVYMMTQ2Njs.colorResolver; exports.container = _chunkVYMMTQ2Njs.container; exports.containerShortcuts = _chunkVYMMTQ2Njs.containerShortcuts; exports.contents = _chunkVYMMTQ2Njs.contents; exports.cssVariables = _chunkVYMMTQ2Njs.cssVariables; exports.cursors = _chunkVYMMTQ2Njs.cursors; exports.displays = _chunkVYMMTQ2Njs.displays; exports.divideColors = _chunkVYMMTQ2Njs.divideColors; exports.divideSizes = _chunkVYMMTQ2Njs.divideSizes; exports.divideStyles = _chunkVYMMTQ2Njs.divideStyles; exports.divides = _chunkVYMMTQ2Njs.divides; exports.fillColors = _chunkVYMMTQ2Njs.fillColors; exports.filters = _chunkVYMMTQ2Njs.filters; exports.flex = _chunkVYMMTQ2Njs.flex; exports.floats = _chunkVYMMTQ2Njs.floats; exports.fontSizes = _chunkVYMMTQ2Njs.fontSizes; exports.fontSmoothings = _chunkVYMMTQ2Njs.fontSmoothings; exports.fontStyles = _chunkVYMMTQ2Njs.fontStyles; exports.fontVariantNumeric = _chunkVYMMTQ2Njs.fontVariantNumeric; exports.fontWeights = _chunkVYMMTQ2Njs.fontWeights; exports.fonts = _chunkVYMMTQ2Njs.fonts; exports.fontsFamilies = _chunkVYMMTQ2Njs.fontsFamilies; exports.gaps = _chunkVYMMTQ2Njs.gaps; exports.grids = _chunkVYMMTQ2Njs.grids; exports.hyphens = _chunkVYMMTQ2Njs.hyphens; exports.imageRenderings = _chunkVYMMTQ2Njs.imageRenderings; exports.insets = _chunkVYMMTQ2Njs.insets; exports.isolations = _chunkVYMMTQ2Njs.isolations; exports.justifies = _chunkVYMMTQ2Njs.justifies; exports.justifyItems = _chunkVYMMTQ2Njs.justifyItems; exports.justifySelfs = _chunkVYMMTQ2Njs.justifySelfs; exports.leadings = _chunkVYMMTQ2Njs.leadings; exports.lineClamps = _chunkVYMMTQ2Njs.lineClamps; exports.listStyle = _chunkVYMMTQ2Njs.listStyle; exports.margins = _chunkVYMMTQ2Njs.margins; exports.mixBlendModes = _chunkVYMMTQ2Njs.mixBlendModes; exports.objectPositions = _chunkVYMMTQ2Njs.objectPositions; exports.opacity = _chunkVYMMTQ2Njs.opacity; exports.orders = _chunkVYMMTQ2Njs.orders; exports.outline = _chunkVYMMTQ2Njs.outline; exports.overflows = _chunkVYMMTQ2Njs.overflows; exports.overscrolls = _chunkVYMMTQ2Njs.overscrolls; exports.paddings = _chunkVYMMTQ2Njs.paddings; exports.parseColorUtil = _chunkVYMMTQ2Njs.parseColorUtil; exports.placeContents = _chunkVYMMTQ2Njs.placeContents; exports.placeItems = _chunkVYMMTQ2Njs.placeItems; exports.placeSelfs = _chunkVYMMTQ2Njs.placeSelfs; exports.placeholder = _chunkVYMMTQ2Njs.placeholder; exports.pointerEvents = _chunkVYMMTQ2Njs.pointerEvents; exports.positions = _chunkVYMMTQ2Njs.positions; exports.questionMark = _chunkVYMMTQ2Njs.questionMark; exports.resizes = _chunkVYMMTQ2Njs.resizes; exports.ringColors = _chunkVYMMTQ2Njs.ringColors; exports.ringOffsetColors = _chunkVYMMTQ2Njs.ringOffsetColors; exports.rings = _chunkVYMMTQ2Njs.rings; exports.rules = _chunkVYMMTQ2Njs.rules; exports.screenReadersAccess = _chunkVYMMTQ2Njs.screenReadersAccess; exports.sizes = _chunkVYMMTQ2Njs.sizes; exports.tabSizes = _chunkVYMMTQ2Njs.tabSizes; exports.tables = _chunkVYMMTQ2Njs.tables; exports.textAligns = _chunkVYMMTQ2Njs.textAligns; exports.textColors = _chunkVYMMTQ2Njs.textColors; exports.textDecorationColors = _chunkVYMMTQ2Njs.textDecorationColors; exports.textDecorationLengths = _chunkVYMMTQ2Njs.textDecorationLengths; exports.textDecorationOffsets = _chunkVYMMTQ2Njs.textDecorationOffsets; exports.textDecorationStyles = _chunkVYMMTQ2Njs.textDecorationStyles; exports.textDecorations = _chunkVYMMTQ2Njs.textDecorations; exports.textIndents = _chunkVYMMTQ2Njs.textIndents; exports.textOverflows = _chunkVYMMTQ2Njs.textOverflows; exports.textShadows = _chunkVYMMTQ2Njs.textShadows; exports.textStrokeColors = _chunkVYMMTQ2Njs.textStrokeColors; exports.textStrokeWidths = _chunkVYMMTQ2Njs.textStrokeWidths; exports.textTransforms = _chunkVYMMTQ2Njs.textTransforms; exports.trackings = _chunkVYMMTQ2Njs.trackings; exports.transforms = _chunkVYMMTQ2Njs.transforms; exports.transitions = _chunkVYMMTQ2Njs.transitions; exports.userSelects = _chunkVYMMTQ2Njs.userSelects; exports.varEmpty = _chunkVYMMTQ2Njs.varEmpty; exports.verticalAligns = _chunkVYMMTQ2Njs.verticalAligns; exports.whitespaces = _chunkVYMMTQ2Njs.whitespaces; exports.wordSpacings = _chunkVYMMTQ2Njs.wordSpacings; exports.writingModes = _chunkVYMMTQ2Njs.writingModes; exports.writingOrientations = _chunkVYMMTQ2Njs.writingOrientations; exports.zIndexes = _chunkVYMMTQ2Njs.zIndexes;