@unocss/preset-uno 0.7.6 → 0.9.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.
- package/dist/{chunk-34AMC765.js → chunk-42CFKKVU.js} +38 -28
- package/dist/{chunk-YI4MPAID.mjs → chunk-5SH5BFJ4.mjs} +0 -0
- package/dist/{chunk-3PTRS5N3.js → chunk-CPLQ3FYN.js} +11 -2
- package/dist/{chunk-WRKYDT4G.mjs → chunk-HO34ND5Y.mjs} +11 -2
- package/dist/{chunk-OFR2H3GI.js → chunk-Y6EUTGDC.js} +0 -0
- package/dist/{chunk-NTFGEALE.mjs → chunk-Y7KPZLM4.mjs} +37 -27
- package/dist/{colors-11c6cb9f.d.ts → colors-c48e51c6.d.ts} +1 -1
- package/dist/{index-1149fe4d.d.ts → index-617c3a40.d.ts} +2 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/rules.js +3 -3
- package/dist/rules.mjs +2 -2
- package/dist/theme.d.ts +2 -2
- package/dist/theme.js +3 -3
- package/dist/theme.mjs +2 -2
- package/dist/variants.d.ts +1 -1
- package/dist/variants.js +1 -1
- package/dist/variants.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkY6EUTGDCjs = require('./chunk-Y6EUTGDC.js');
|
|
4
4
|
|
|
5
5
|
// src/rules/transition.ts
|
|
6
6
|
var transitionBasicProps = [
|
|
@@ -130,7 +130,7 @@ var xyzMap = {
|
|
|
130
130
|
|
|
131
131
|
// src/utils/handlers/handlers.ts
|
|
132
132
|
var handlers_exports = {};
|
|
133
|
-
|
|
133
|
+
_chunkY6EUTGDCjs.__export.call(void 0, handlers_exports, {
|
|
134
134
|
bracket: () => bracket,
|
|
135
135
|
cssvar: () => cssvar,
|
|
136
136
|
fraction: () => fraction,
|
|
@@ -584,7 +584,8 @@ var flex = [
|
|
|
584
584
|
["flex-shrink", { "flex-shrink": 1 }],
|
|
585
585
|
["flex-shrink-0", { "flex-shrink": 0 }],
|
|
586
586
|
["flex", { display: "flex" }],
|
|
587
|
-
["inline-flex", { display: "inline-flex" }]
|
|
587
|
+
["inline-flex", { display: "inline-flex" }],
|
|
588
|
+
["flex-inline", { display: "inline-flex" }]
|
|
588
589
|
];
|
|
589
590
|
|
|
590
591
|
// src/rules/typography.ts
|
|
@@ -672,21 +673,29 @@ var textDecorationOffsets = [
|
|
|
672
673
|
}]
|
|
673
674
|
];
|
|
674
675
|
var textIndents = [
|
|
675
|
-
[/^indent
|
|
676
|
+
[/^indent(?:-(.+))?$/, ([, s], { theme }) => {
|
|
676
677
|
var _a;
|
|
677
|
-
const v = ((_a = theme.textIndent) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.fraction.rem(s);
|
|
678
|
+
const v = ((_a = theme.textIndent) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar.fraction.rem(s);
|
|
678
679
|
if (v != null)
|
|
679
680
|
return { "text-indent": v };
|
|
680
681
|
}]
|
|
681
682
|
];
|
|
682
683
|
var textStrokeWidths = [
|
|
683
|
-
[/^text-stroke
|
|
684
|
+
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => {
|
|
684
685
|
var _a;
|
|
685
|
-
const v = ((_a = theme.textStrokeWidth) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.px(s);
|
|
686
|
+
const v = ((_a = theme.textStrokeWidth) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar.px(s);
|
|
686
687
|
if (v != null)
|
|
687
688
|
return { "-webkit-text-stroke-width": v };
|
|
688
689
|
}]
|
|
689
690
|
];
|
|
691
|
+
var textShadows = [
|
|
692
|
+
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
693
|
+
var _a;
|
|
694
|
+
const v = ((_a = theme.textShadow) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar(s);
|
|
695
|
+
if (v != null)
|
|
696
|
+
return { "text-shadow": v };
|
|
697
|
+
}]
|
|
698
|
+
];
|
|
690
699
|
var fonts = [
|
|
691
700
|
fontsFamilies,
|
|
692
701
|
fontSizes,
|
|
@@ -955,15 +964,14 @@ var mixBlendModes = [
|
|
|
955
964
|
["mix-blend-color", { "mix-blend-mode": "color" }],
|
|
956
965
|
["mix-blend-luminosity", { "mix-blend-mode": "luminosity" }]
|
|
957
966
|
];
|
|
958
|
-
var
|
|
967
|
+
var boxShadows = [
|
|
959
968
|
[/^shadow-?(.*)$/, ([, d], { theme }) => {
|
|
960
969
|
var _a;
|
|
961
|
-
const value = (_a = theme == null ? void 0 : theme.
|
|
970
|
+
const value = (_a = theme == null ? void 0 : theme.boxShadow) == null ? void 0 : _a[d || "DEFAULT"];
|
|
962
971
|
if (value) {
|
|
963
972
|
return {
|
|
964
973
|
"--un-shadow-color": "0,0,0",
|
|
965
974
|
"--un-shadow": value,
|
|
966
|
-
"-webkit-box-shadow": "var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)",
|
|
967
975
|
"box-shadow": "var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"
|
|
968
976
|
};
|
|
969
977
|
}
|
|
@@ -974,6 +982,13 @@ var shadows = [
|
|
|
974
982
|
];
|
|
975
983
|
|
|
976
984
|
// src/rules/size.ts
|
|
985
|
+
function getPropName(minmax, hw) {
|
|
986
|
+
const minMaxMap = {
|
|
987
|
+
w: "width",
|
|
988
|
+
h: "height"
|
|
989
|
+
};
|
|
990
|
+
return `${minmax ? `${minmax}-` : ""}${minMaxMap[hw]}`;
|
|
991
|
+
}
|
|
977
992
|
var sizes = [
|
|
978
993
|
["w-full", { width: "100%" }],
|
|
979
994
|
["h-full", { height: "100%" }],
|
|
@@ -991,24 +1006,22 @@ var sizes = [
|
|
|
991
1006
|
["min-h-none", { "min-height": "none" }],
|
|
992
1007
|
["min-h-full", { "min-height": "100%" }],
|
|
993
1008
|
["min-h-screen", { "min-height": "100vh" }],
|
|
994
|
-
[/^((
|
|
995
|
-
[/^((
|
|
1009
|
+
[/^(?:(min|max)-)?(w|h)-(.+)$/, ([, m, w, s]) => ({ [getPropName(m, w)]: handler.bracket.cssvar.fraction.rem(s) })],
|
|
1010
|
+
[/^(?:(min|max)-)?(w)-screen-(.+)$/, ([, m, w, s], { theme }) => {
|
|
996
1011
|
var _a;
|
|
997
1012
|
const v = (_a = theme.breakpoints) == null ? void 0 : _a[s];
|
|
998
1013
|
if (v != null)
|
|
999
1014
|
return { [getPropName(m, w)]: v };
|
|
1000
1015
|
}]
|
|
1001
1016
|
];
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
return `${(_a = minMaxMap[minmax]) != null ? _a : ""}${minMaxMap[hw]}`;
|
|
1011
|
-
}
|
|
1017
|
+
var aspectRatio = [
|
|
1018
|
+
["aspect-ratio-auto", { "aspect-ratio": "auto" }],
|
|
1019
|
+
[/^aspect-ratio-(.+)$/, ([, d]) => {
|
|
1020
|
+
const v = (/^\d+\/\d+$/.test(d) ? d : null) || handler.bracket.cssvar.number(d);
|
|
1021
|
+
if (v != null)
|
|
1022
|
+
return { "aspect-ratio": v };
|
|
1023
|
+
}]
|
|
1024
|
+
];
|
|
1012
1025
|
|
|
1013
1026
|
// src/rules/spacing.ts
|
|
1014
1027
|
var directionSize = (prefix) => ([_, direction, size]) => {
|
|
@@ -1496,10 +1509,6 @@ ${constructCSS({ animation: `${name} 1s linear infinite` })}`;
|
|
|
1496
1509
|
|
|
1497
1510
|
// src/rules/variables.ts
|
|
1498
1511
|
var variablesAbbrMap = {
|
|
1499
|
-
"w": "width",
|
|
1500
|
-
"h": "height",
|
|
1501
|
-
"max-w": "max-width",
|
|
1502
|
-
"max-h": "max-height",
|
|
1503
1512
|
"visible": "visibility",
|
|
1504
1513
|
"select": "user-select",
|
|
1505
1514
|
"vertical": "vertical-align",
|
|
@@ -1523,7 +1532,6 @@ var variablesAbbrMap = {
|
|
|
1523
1532
|
"tab": "tab-size",
|
|
1524
1533
|
"underline": "text-decoration-thickness",
|
|
1525
1534
|
"underline-offset": "text-underline-offset",
|
|
1526
|
-
"indent": "text-indent",
|
|
1527
1535
|
"text": "color",
|
|
1528
1536
|
"grid-cols": "grid-template-columns",
|
|
1529
1537
|
"grid-rows": "grid-template-rows",
|
|
@@ -1637,6 +1645,7 @@ var rules = [
|
|
|
1637
1645
|
textDecorationOffsets,
|
|
1638
1646
|
textStrokeWidths,
|
|
1639
1647
|
textStrokeColors,
|
|
1648
|
+
textShadows,
|
|
1640
1649
|
textTransforms,
|
|
1641
1650
|
textAligns,
|
|
1642
1651
|
textColors,
|
|
@@ -1646,13 +1655,14 @@ var rules = [
|
|
|
1646
1655
|
writingModes,
|
|
1647
1656
|
writingOrientations,
|
|
1648
1657
|
mixBlendModes,
|
|
1649
|
-
|
|
1658
|
+
boxShadows,
|
|
1650
1659
|
rings,
|
|
1651
1660
|
flex,
|
|
1652
1661
|
grids,
|
|
1653
1662
|
gaps,
|
|
1654
1663
|
positions,
|
|
1655
1664
|
sizes,
|
|
1665
|
+
aspectRatio,
|
|
1656
1666
|
cursors,
|
|
1657
1667
|
appearances,
|
|
1658
1668
|
pointerEvents,
|
|
File without changes
|
|
@@ -374,6 +374,14 @@ var textStrokeWidth = {
|
|
|
374
374
|
md: "medium",
|
|
375
375
|
lg: "thick"
|
|
376
376
|
};
|
|
377
|
+
var textShadow = {
|
|
378
|
+
DEFAULT: "0px 0px 1px rgb(0 0 0/20%), 0px 0px 1px rgb(1 0 5/10%)",
|
|
379
|
+
sm: "1px 1px 3px rgb(36 37 47 / 25%)",
|
|
380
|
+
md: "0px 1px 2px rgb(30 29 39 / 19%), 1px 2px 4px rgb(54 64 147 / 18%)",
|
|
381
|
+
lg: "3px 3px 6px rgb(0 0 0 / 26%), 0 0 5px rgb(15 3 86 / 22%)",
|
|
382
|
+
xl: "1px 1px 3px rgb(0 0 0 / 29%), 2px 4px 7px rgb(73 64 125 / 35%)",
|
|
383
|
+
none: "none"
|
|
384
|
+
};
|
|
377
385
|
var lineHeight = {
|
|
378
386
|
none: "1",
|
|
379
387
|
tight: "1.25",
|
|
@@ -410,7 +418,7 @@ var borderRadius = {
|
|
|
410
418
|
"3xl": "1.5rem",
|
|
411
419
|
"full": "9999px"
|
|
412
420
|
};
|
|
413
|
-
var
|
|
421
|
+
var boxShadow = {
|
|
414
422
|
"DEFAULT": "0 1px 3px 0 rgba(var(--un-shadow-color), 0.1), 0 1px 2px 0 rgba(var(--un-shadow-color), 0.06)",
|
|
415
423
|
"sm": "0 1px 2px 0 rgba(var(--un-shadow-color), 0.05)",
|
|
416
424
|
"md": "0 4px 6px -1px rgba(var(--un-shadow-color), 0.1), 0 2px 4px -1px rgba(var(--un-shadow-color), 0.06)",
|
|
@@ -451,8 +459,9 @@ var theme = {
|
|
|
451
459
|
borderRadius,
|
|
452
460
|
lineHeight,
|
|
453
461
|
letterSpacing,
|
|
454
|
-
|
|
462
|
+
boxShadow,
|
|
455
463
|
textIndent,
|
|
464
|
+
textShadow,
|
|
456
465
|
textStrokeWidth,
|
|
457
466
|
blur,
|
|
458
467
|
dropShadow
|
|
@@ -374,6 +374,14 @@ var textStrokeWidth = {
|
|
|
374
374
|
md: "medium",
|
|
375
375
|
lg: "thick"
|
|
376
376
|
};
|
|
377
|
+
var textShadow = {
|
|
378
|
+
DEFAULT: "0px 0px 1px rgb(0 0 0/20%), 0px 0px 1px rgb(1 0 5/10%)",
|
|
379
|
+
sm: "1px 1px 3px rgb(36 37 47 / 25%)",
|
|
380
|
+
md: "0px 1px 2px rgb(30 29 39 / 19%), 1px 2px 4px rgb(54 64 147 / 18%)",
|
|
381
|
+
lg: "3px 3px 6px rgb(0 0 0 / 26%), 0 0 5px rgb(15 3 86 / 22%)",
|
|
382
|
+
xl: "1px 1px 3px rgb(0 0 0 / 29%), 2px 4px 7px rgb(73 64 125 / 35%)",
|
|
383
|
+
none: "none"
|
|
384
|
+
};
|
|
377
385
|
var lineHeight = {
|
|
378
386
|
none: "1",
|
|
379
387
|
tight: "1.25",
|
|
@@ -410,7 +418,7 @@ var borderRadius = {
|
|
|
410
418
|
"3xl": "1.5rem",
|
|
411
419
|
"full": "9999px"
|
|
412
420
|
};
|
|
413
|
-
var
|
|
421
|
+
var boxShadow = {
|
|
414
422
|
"DEFAULT": "0 1px 3px 0 rgba(var(--un-shadow-color), 0.1), 0 1px 2px 0 rgba(var(--un-shadow-color), 0.06)",
|
|
415
423
|
"sm": "0 1px 2px 0 rgba(var(--un-shadow-color), 0.05)",
|
|
416
424
|
"md": "0 4px 6px -1px rgba(var(--un-shadow-color), 0.1), 0 2px 4px -1px rgba(var(--un-shadow-color), 0.06)",
|
|
@@ -451,8 +459,9 @@ var theme = {
|
|
|
451
459
|
borderRadius,
|
|
452
460
|
lineHeight,
|
|
453
461
|
letterSpacing,
|
|
454
|
-
|
|
462
|
+
boxShadow,
|
|
455
463
|
textIndent,
|
|
464
|
+
textShadow,
|
|
456
465
|
textStrokeWidth,
|
|
457
466
|
blur,
|
|
458
467
|
dropShadow
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5SH5BFJ4.mjs";
|
|
4
4
|
|
|
5
5
|
// src/rules/transition.ts
|
|
6
6
|
var transitionBasicProps = [
|
|
@@ -584,7 +584,8 @@ var flex = [
|
|
|
584
584
|
["flex-shrink", { "flex-shrink": 1 }],
|
|
585
585
|
["flex-shrink-0", { "flex-shrink": 0 }],
|
|
586
586
|
["flex", { display: "flex" }],
|
|
587
|
-
["inline-flex", { display: "inline-flex" }]
|
|
587
|
+
["inline-flex", { display: "inline-flex" }],
|
|
588
|
+
["flex-inline", { display: "inline-flex" }]
|
|
588
589
|
];
|
|
589
590
|
|
|
590
591
|
// src/rules/typography.ts
|
|
@@ -672,21 +673,29 @@ var textDecorationOffsets = [
|
|
|
672
673
|
}]
|
|
673
674
|
];
|
|
674
675
|
var textIndents = [
|
|
675
|
-
[/^indent
|
|
676
|
+
[/^indent(?:-(.+))?$/, ([, s], { theme }) => {
|
|
676
677
|
var _a;
|
|
677
|
-
const v = ((_a = theme.textIndent) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.fraction.rem(s);
|
|
678
|
+
const v = ((_a = theme.textIndent) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar.fraction.rem(s);
|
|
678
679
|
if (v != null)
|
|
679
680
|
return { "text-indent": v };
|
|
680
681
|
}]
|
|
681
682
|
];
|
|
682
683
|
var textStrokeWidths = [
|
|
683
|
-
[/^text-stroke
|
|
684
|
+
[/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => {
|
|
684
685
|
var _a;
|
|
685
|
-
const v = ((_a = theme.textStrokeWidth) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.px(s);
|
|
686
|
+
const v = ((_a = theme.textStrokeWidth) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar.px(s);
|
|
686
687
|
if (v != null)
|
|
687
688
|
return { "-webkit-text-stroke-width": v };
|
|
688
689
|
}]
|
|
689
690
|
];
|
|
691
|
+
var textShadows = [
|
|
692
|
+
[/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
|
|
693
|
+
var _a;
|
|
694
|
+
const v = ((_a = theme.textShadow) == null ? void 0 : _a[s || "DEFAULT"]) || handler.bracket.cssvar(s);
|
|
695
|
+
if (v != null)
|
|
696
|
+
return { "text-shadow": v };
|
|
697
|
+
}]
|
|
698
|
+
];
|
|
690
699
|
var fonts = [
|
|
691
700
|
fontsFamilies,
|
|
692
701
|
fontSizes,
|
|
@@ -955,15 +964,14 @@ var mixBlendModes = [
|
|
|
955
964
|
["mix-blend-color", { "mix-blend-mode": "color" }],
|
|
956
965
|
["mix-blend-luminosity", { "mix-blend-mode": "luminosity" }]
|
|
957
966
|
];
|
|
958
|
-
var
|
|
967
|
+
var boxShadows = [
|
|
959
968
|
[/^shadow-?(.*)$/, ([, d], { theme }) => {
|
|
960
969
|
var _a;
|
|
961
|
-
const value = (_a = theme == null ? void 0 : theme.
|
|
970
|
+
const value = (_a = theme == null ? void 0 : theme.boxShadow) == null ? void 0 : _a[d || "DEFAULT"];
|
|
962
971
|
if (value) {
|
|
963
972
|
return {
|
|
964
973
|
"--un-shadow-color": "0,0,0",
|
|
965
974
|
"--un-shadow": value,
|
|
966
|
-
"-webkit-box-shadow": "var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)",
|
|
967
975
|
"box-shadow": "var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"
|
|
968
976
|
};
|
|
969
977
|
}
|
|
@@ -974,6 +982,13 @@ var shadows = [
|
|
|
974
982
|
];
|
|
975
983
|
|
|
976
984
|
// src/rules/size.ts
|
|
985
|
+
function getPropName(minmax, hw) {
|
|
986
|
+
const minMaxMap = {
|
|
987
|
+
w: "width",
|
|
988
|
+
h: "height"
|
|
989
|
+
};
|
|
990
|
+
return `${minmax ? `${minmax}-` : ""}${minMaxMap[hw]}`;
|
|
991
|
+
}
|
|
977
992
|
var sizes = [
|
|
978
993
|
["w-full", { width: "100%" }],
|
|
979
994
|
["h-full", { height: "100%" }],
|
|
@@ -991,24 +1006,22 @@ var sizes = [
|
|
|
991
1006
|
["min-h-none", { "min-height": "none" }],
|
|
992
1007
|
["min-h-full", { "min-height": "100%" }],
|
|
993
1008
|
["min-h-screen", { "min-height": "100vh" }],
|
|
994
|
-
[/^((
|
|
995
|
-
[/^((
|
|
1009
|
+
[/^(?:(min|max)-)?(w|h)-(.+)$/, ([, m, w, s]) => ({ [getPropName(m, w)]: handler.bracket.cssvar.fraction.rem(s) })],
|
|
1010
|
+
[/^(?:(min|max)-)?(w)-screen-(.+)$/, ([, m, w, s], { theme }) => {
|
|
996
1011
|
var _a;
|
|
997
1012
|
const v = (_a = theme.breakpoints) == null ? void 0 : _a[s];
|
|
998
1013
|
if (v != null)
|
|
999
1014
|
return { [getPropName(m, w)]: v };
|
|
1000
1015
|
}]
|
|
1001
1016
|
];
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
return `${(_a = minMaxMap[minmax]) != null ? _a : ""}${minMaxMap[hw]}`;
|
|
1011
|
-
}
|
|
1017
|
+
var aspectRatio = [
|
|
1018
|
+
["aspect-ratio-auto", { "aspect-ratio": "auto" }],
|
|
1019
|
+
[/^aspect-ratio-(.+)$/, ([, d]) => {
|
|
1020
|
+
const v = (/^\d+\/\d+$/.test(d) ? d : null) || handler.bracket.cssvar.number(d);
|
|
1021
|
+
if (v != null)
|
|
1022
|
+
return { "aspect-ratio": v };
|
|
1023
|
+
}]
|
|
1024
|
+
];
|
|
1012
1025
|
|
|
1013
1026
|
// src/rules/spacing.ts
|
|
1014
1027
|
var directionSize = (prefix) => ([_, direction, size]) => {
|
|
@@ -1496,10 +1509,6 @@ ${constructCSS({ animation: `${name} 1s linear infinite` })}`;
|
|
|
1496
1509
|
|
|
1497
1510
|
// src/rules/variables.ts
|
|
1498
1511
|
var variablesAbbrMap = {
|
|
1499
|
-
"w": "width",
|
|
1500
|
-
"h": "height",
|
|
1501
|
-
"max-w": "max-width",
|
|
1502
|
-
"max-h": "max-height",
|
|
1503
1512
|
"visible": "visibility",
|
|
1504
1513
|
"select": "user-select",
|
|
1505
1514
|
"vertical": "vertical-align",
|
|
@@ -1523,7 +1532,6 @@ var variablesAbbrMap = {
|
|
|
1523
1532
|
"tab": "tab-size",
|
|
1524
1533
|
"underline": "text-decoration-thickness",
|
|
1525
1534
|
"underline-offset": "text-underline-offset",
|
|
1526
|
-
"indent": "text-indent",
|
|
1527
1535
|
"text": "color",
|
|
1528
1536
|
"grid-cols": "grid-template-columns",
|
|
1529
1537
|
"grid-rows": "grid-template-rows",
|
|
@@ -1637,6 +1645,7 @@ var rules = [
|
|
|
1637
1645
|
textDecorationOffsets,
|
|
1638
1646
|
textStrokeWidths,
|
|
1639
1647
|
textStrokeColors,
|
|
1648
|
+
textShadows,
|
|
1640
1649
|
textTransforms,
|
|
1641
1650
|
textAligns,
|
|
1642
1651
|
textColors,
|
|
@@ -1646,13 +1655,14 @@ var rules = [
|
|
|
1646
1655
|
writingModes,
|
|
1647
1656
|
writingOrientations,
|
|
1648
1657
|
mixBlendModes,
|
|
1649
|
-
|
|
1658
|
+
boxShadows,
|
|
1650
1659
|
rings,
|
|
1651
1660
|
flex,
|
|
1652
1661
|
grids,
|
|
1653
1662
|
gaps,
|
|
1654
1663
|
positions,
|
|
1655
1664
|
sizes,
|
|
1665
|
+
aspectRatio,
|
|
1656
1666
|
cursors,
|
|
1657
1667
|
appearances,
|
|
1658
1668
|
pointerEvents,
|
|
@@ -6,8 +6,9 @@ interface Theme {
|
|
|
6
6
|
fontSize?: Record<string, [string, string]>;
|
|
7
7
|
lineHeight?: Record<string, string>;
|
|
8
8
|
letterSpacing?: Record<string, string>;
|
|
9
|
-
|
|
9
|
+
boxShadow?: Record<string, string>;
|
|
10
10
|
textIndent?: Record<string, string>;
|
|
11
|
+
textShadow?: Record<string, string>;
|
|
11
12
|
textStrokeWidth?: Record<string, string>;
|
|
12
13
|
blur?: Record<string, string>;
|
|
13
14
|
dropShadow?: Record<string, string | string[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Preset } from '@unocss/core';
|
|
2
|
-
|
|
3
|
-
export {
|
|
2
|
+
import { T as Theme } from './index-617c3a40';
|
|
3
|
+
export { t as theme } from './index-617c3a40';
|
|
4
|
+
export { c as colors } from './colors-c48e51c6';
|
|
4
5
|
|
|
5
|
-
declare const preset: () => Preset
|
|
6
|
+
declare const preset: () => Preset<Theme>;
|
|
6
7
|
|
|
7
8
|
export { preset as default, preset };
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk42CFKKVUjs = require('./chunk-42CFKKVU.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCPLQ3FYNjs = require('./chunk-CPLQ3FYN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkNMJBNI4Pjs = require('./chunk-NMJBNI4P.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-Y6EUTGDC.js');
|
|
12
12
|
|
|
13
13
|
// src/index.ts
|
|
14
14
|
var preset = () => ({
|
|
15
15
|
name: "@unocss/preset-uno",
|
|
16
|
-
theme:
|
|
17
|
-
rules:
|
|
16
|
+
theme: _chunkCPLQ3FYNjs.theme,
|
|
17
|
+
rules: _chunk42CFKKVUjs.rules,
|
|
18
18
|
variants: _chunkNMJBNI4Pjs.variants
|
|
19
19
|
});
|
|
20
20
|
var src_default = preset;
|
|
@@ -23,4 +23,4 @@ var src_default = preset;
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.colors =
|
|
26
|
+
exports.colors = _chunkCPLQ3FYNjs.colors; exports.default = src_default; exports.preset = preset; exports.theme = _chunkCPLQ3FYNjs.theme;
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rules
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y7KPZLM4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
colors,
|
|
6
6
|
theme
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HO34ND5Y.mjs";
|
|
8
8
|
import {
|
|
9
9
|
variants
|
|
10
10
|
} from "./chunk-PZW27IKH.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-5SH5BFJ4.mjs";
|
|
12
12
|
|
|
13
13
|
// src/index.ts
|
|
14
14
|
var preset = () => ({
|
package/dist/rules.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk42CFKKVUjs = require('./chunk-42CFKKVU.js');
|
|
4
|
+
require('./chunk-Y6EUTGDC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.rules =
|
|
7
|
+
exports.rules = _chunk42CFKKVUjs.rules;
|
package/dist/rules.mjs
CHANGED
package/dist/theme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { T as Theme, t as theme } from './index-
|
|
2
|
-
export { c as colors } from './colors-
|
|
1
|
+
export { T as Theme, t as theme } from './index-617c3a40';
|
|
2
|
+
export { c as colors } from './colors-c48e51c6';
|
package/dist/theme.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkCPLQ3FYNjs = require('./chunk-CPLQ3FYN.js');
|
|
5
|
+
require('./chunk-Y6EUTGDC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.colors =
|
|
9
|
+
exports.colors = _chunkCPLQ3FYNjs.colors; exports.theme = _chunkCPLQ3FYNjs.theme;
|
package/dist/theme.mjs
CHANGED
package/dist/variants.d.ts
CHANGED
package/dist/variants.js
CHANGED
package/dist/variants.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-uno",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The default preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"*.css"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@unocss/core": "0.
|
|
48
|
+
"@unocss/core": "0.9.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup",
|