@unocss/preset-mini 0.19.0 → 0.20.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/chunks/default2.cjs +29 -27
- package/dist/chunks/default2.mjs +31 -28
- package/dist/chunks/default3.cjs +12 -0
- package/dist/chunks/default3.mjs +12 -1
- package/dist/index.cjs +11 -2
- package/dist/index.mjs +11 -2
- package/dist/rules.cjs +0 -1
- package/dist/rules.d.ts +1 -2
- package/dist/rules.mjs +1 -1
- package/dist/variants.cjs +1 -0
- package/dist/variants.d.ts +3 -1
- package/dist/variants.mjs +1 -1
- package/package.json +2 -2
package/dist/chunks/default2.cjs
CHANGED
|
@@ -45,12 +45,12 @@ const borders = [
|
|
|
45
45
|
[/^(?:border|b)-([^-]+)-size-(.+)$/, handlerBorderSize],
|
|
46
46
|
[/^(?:border|b)()-(.+)$/, handlerBorderColor],
|
|
47
47
|
[/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorderColor],
|
|
48
|
-
[/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]
|
|
49
|
-
[/^(?:border|b)-([^-]+)-op(?:acity)?-?(.+)$/, ([, a, opacity]
|
|
48
|
+
[/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-border-opacity": utilities.handler.bracket.percent(opacity) })],
|
|
49
|
+
[/^(?:border|b)-([^-]+)-op(?:acity)?-?(.+)$/, ([, a, opacity]) => {
|
|
50
50
|
const v = utilities.handler.bracket.percent(opacity);
|
|
51
51
|
const d = utilities.directionMap[a];
|
|
52
52
|
if (v !== void 0 && d)
|
|
53
|
-
return d.map((i) => [
|
|
53
|
+
return d.map((i) => [`--un-border${i}-opacity`, v]);
|
|
54
54
|
}],
|
|
55
55
|
[/^(?:border-)?(?:rounded|rd)$/, handlerRounded],
|
|
56
56
|
[/^(?:border-)?(?:rounded|rd)(?:-(.+))?$/, handlerRounded],
|
|
@@ -64,7 +64,7 @@ const borders = [
|
|
|
64
64
|
const borderHasColor = (color, { theme }) => {
|
|
65
65
|
return color !== void 0 && !!utilities.parseColor(color, theme)?.color;
|
|
66
66
|
};
|
|
67
|
-
const borderColorResolver = (direction) => ([, body], { theme
|
|
67
|
+
const borderColorResolver = (direction) => ([, body], { theme }) => {
|
|
68
68
|
const data = utilities.parseColor(body, theme);
|
|
69
69
|
if (!data)
|
|
70
70
|
return;
|
|
@@ -81,14 +81,14 @@ const borderColorResolver = (direction) => ([, body], { theme, options: { variab
|
|
|
81
81
|
} else {
|
|
82
82
|
if (direction === "") {
|
|
83
83
|
return {
|
|
84
|
-
|
|
85
|
-
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(
|
|
84
|
+
"--un-border-opacity": 1,
|
|
85
|
+
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(--un-border${direction}-opacity))`
|
|
86
86
|
};
|
|
87
87
|
} else {
|
|
88
88
|
return {
|
|
89
|
-
|
|
90
|
-
[
|
|
91
|
-
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(
|
|
89
|
+
"--un-border-opacity": 1,
|
|
90
|
+
[`--un-border${direction}-opacity`]: "var(--un-border-opacity)",
|
|
91
|
+
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(--un-border${direction}-opacity))`
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -434,7 +434,6 @@ const boxSizing = [
|
|
|
434
434
|
["box-content", { "box-sizing": "content-box" }]
|
|
435
435
|
];
|
|
436
436
|
|
|
437
|
-
const varEmptyFn = core.cacheFunction((prefix) => `var(--${prefix}empty,/*!*/ /*!*/)`);
|
|
438
437
|
const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
439
438
|
const displays = [
|
|
440
439
|
["inline", { display: "inline" }],
|
|
@@ -510,28 +509,32 @@ const fontSmoothings = [
|
|
|
510
509
|
];
|
|
511
510
|
|
|
512
511
|
const rings = [
|
|
513
|
-
[/^ring-?(.*)$/, ([, d]
|
|
512
|
+
[/^ring-?(.*)$/, ([, d]) => {
|
|
514
513
|
const value = utilities.handler.px(d || "1");
|
|
515
514
|
if (value) {
|
|
516
515
|
return {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
"-webkit-box-shadow":
|
|
524
|
-
"box-shadow":
|
|
516
|
+
"--un-ring-inset": varEmpty,
|
|
517
|
+
"--un-ring-offset-width": "0px",
|
|
518
|
+
"--un-ring-offset-color": "#fff",
|
|
519
|
+
"--un-ring-color": "rgba(59, 130, 246, .5)",
|
|
520
|
+
"--un-ring-offset-shadow": "var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)",
|
|
521
|
+
"--un-ring-shadow": `var(--un-ring-inset) 0 0 0 calc(${value} + var(--un-ring-offset-width)) var(--un-ring-color)`,
|
|
522
|
+
"-webkit-box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)",
|
|
523
|
+
"box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"
|
|
525
524
|
};
|
|
526
525
|
}
|
|
527
526
|
}],
|
|
528
|
-
[
|
|
529
|
-
[/^ring-offset-(.+)$/, ([, d]
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
[/^ring-
|
|
527
|
+
["ring-offset", { "--un-ring-offset-width": "1px" }],
|
|
528
|
+
[/^ring-offset-(.+)$/, ([, d]) => {
|
|
529
|
+
const value = utilities.handler.px(d || "1");
|
|
530
|
+
if (value)
|
|
531
|
+
return { "--un-ring-offset-width": value };
|
|
532
|
+
}],
|
|
533
|
+
[/^ring-(.+)$/, utilities.colorResolver("--un-ring-color", "ring")],
|
|
534
|
+
[/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-opacity": utilities.handler.bracket.percent(opacity) })],
|
|
535
|
+
[/^ring-offset-(.+)$/, utilities.colorResolver("--un-ring-offset-color", "ring-offset")],
|
|
536
|
+
[/^ring-offset-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-offset-opacity": utilities.handler.bracket.percent(opacity) })],
|
|
537
|
+
["ring-inset", { "--un-ring-inset": "inset" }]
|
|
535
538
|
];
|
|
536
539
|
|
|
537
540
|
const colorResolver = (body, theme) => {
|
|
@@ -907,7 +910,6 @@ exports.transforms = transforms;
|
|
|
907
910
|
exports.transitions = transitions;
|
|
908
911
|
exports.userSelects = userSelects;
|
|
909
912
|
exports.varEmpty = varEmpty;
|
|
910
|
-
exports.varEmptyFn = varEmptyFn;
|
|
911
913
|
exports.verticalAligns = verticalAligns;
|
|
912
914
|
exports.whitespaces = whitespaces;
|
|
913
915
|
exports.willChange = willChange;
|
package/dist/chunks/default2.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as handler, c as colorResolver$1, d as directionMap, p as parseColor, a as cornerMap, b as capitalize, e as directionSize, x as xyzMap } from './utilities.mjs';
|
|
2
|
-
import { toArray
|
|
2
|
+
import { toArray } from '@unocss/core';
|
|
3
3
|
import { C as CONTROL_BYPASS_PSEUDO_CLASS } from './pseudo.mjs';
|
|
4
4
|
|
|
5
5
|
const verticalAlignAlias = {
|
|
@@ -43,12 +43,12 @@ const borders = [
|
|
|
43
43
|
[/^(?:border|b)-([^-]+)-size-(.+)$/, handlerBorderSize],
|
|
44
44
|
[/^(?:border|b)()-(.+)$/, handlerBorderColor],
|
|
45
45
|
[/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorderColor],
|
|
46
|
-
[/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]
|
|
47
|
-
[/^(?:border|b)-([^-]+)-op(?:acity)?-?(.+)$/, ([, a, opacity]
|
|
46
|
+
[/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-border-opacity": handler.bracket.percent(opacity) })],
|
|
47
|
+
[/^(?:border|b)-([^-]+)-op(?:acity)?-?(.+)$/, ([, a, opacity]) => {
|
|
48
48
|
const v = handler.bracket.percent(opacity);
|
|
49
49
|
const d = directionMap[a];
|
|
50
50
|
if (v !== void 0 && d)
|
|
51
|
-
return d.map((i) => [
|
|
51
|
+
return d.map((i) => [`--un-border${i}-opacity`, v]);
|
|
52
52
|
}],
|
|
53
53
|
[/^(?:border-)?(?:rounded|rd)$/, handlerRounded],
|
|
54
54
|
[/^(?:border-)?(?:rounded|rd)(?:-(.+))?$/, handlerRounded],
|
|
@@ -62,7 +62,7 @@ const borders = [
|
|
|
62
62
|
const borderHasColor = (color, { theme }) => {
|
|
63
63
|
return color !== void 0 && !!parseColor(color, theme)?.color;
|
|
64
64
|
};
|
|
65
|
-
const borderColorResolver = (direction) => ([, body], { theme
|
|
65
|
+
const borderColorResolver = (direction) => ([, body], { theme }) => {
|
|
66
66
|
const data = parseColor(body, theme);
|
|
67
67
|
if (!data)
|
|
68
68
|
return;
|
|
@@ -79,14 +79,14 @@ const borderColorResolver = (direction) => ([, body], { theme, options: { variab
|
|
|
79
79
|
} else {
|
|
80
80
|
if (direction === "") {
|
|
81
81
|
return {
|
|
82
|
-
|
|
83
|
-
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(
|
|
82
|
+
"--un-border-opacity": 1,
|
|
83
|
+
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(--un-border${direction}-opacity))`
|
|
84
84
|
};
|
|
85
85
|
} else {
|
|
86
86
|
return {
|
|
87
|
-
|
|
88
|
-
[
|
|
89
|
-
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(
|
|
87
|
+
"--un-border-opacity": 1,
|
|
88
|
+
[`--un-border${direction}-opacity`]: "var(--un-border-opacity)",
|
|
89
|
+
[`border${direction}-color`]: `rgba(${rgba.slice(0, 3).join(",")},var(--un-border${direction}-opacity))`
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -432,7 +432,6 @@ const boxSizing = [
|
|
|
432
432
|
["box-content", { "box-sizing": "content-box" }]
|
|
433
433
|
];
|
|
434
434
|
|
|
435
|
-
const varEmptyFn = cacheFunction((prefix) => `var(--${prefix}empty,/*!*/ /*!*/)`);
|
|
436
435
|
const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
437
436
|
const displays = [
|
|
438
437
|
["inline", { display: "inline" }],
|
|
@@ -508,28 +507,32 @@ const fontSmoothings = [
|
|
|
508
507
|
];
|
|
509
508
|
|
|
510
509
|
const rings = [
|
|
511
|
-
[/^ring-?(.*)$/, ([, d]
|
|
510
|
+
[/^ring-?(.*)$/, ([, d]) => {
|
|
512
511
|
const value = handler.px(d || "1");
|
|
513
512
|
if (value) {
|
|
514
513
|
return {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
"-webkit-box-shadow":
|
|
522
|
-
"box-shadow":
|
|
514
|
+
"--un-ring-inset": varEmpty,
|
|
515
|
+
"--un-ring-offset-width": "0px",
|
|
516
|
+
"--un-ring-offset-color": "#fff",
|
|
517
|
+
"--un-ring-color": "rgba(59, 130, 246, .5)",
|
|
518
|
+
"--un-ring-offset-shadow": "var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)",
|
|
519
|
+
"--un-ring-shadow": `var(--un-ring-inset) 0 0 0 calc(${value} + var(--un-ring-offset-width)) var(--un-ring-color)`,
|
|
520
|
+
"-webkit-box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)",
|
|
521
|
+
"box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"
|
|
523
522
|
};
|
|
524
523
|
}
|
|
525
524
|
}],
|
|
526
|
-
[
|
|
527
|
-
[/^ring-offset-(.+)$/, ([, d]
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
[/^ring-
|
|
525
|
+
["ring-offset", { "--un-ring-offset-width": "1px" }],
|
|
526
|
+
[/^ring-offset-(.+)$/, ([, d]) => {
|
|
527
|
+
const value = handler.px(d || "1");
|
|
528
|
+
if (value)
|
|
529
|
+
return { "--un-ring-offset-width": value };
|
|
530
|
+
}],
|
|
531
|
+
[/^ring-(.+)$/, colorResolver$1("--un-ring-color", "ring")],
|
|
532
|
+
[/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-opacity": handler.bracket.percent(opacity) })],
|
|
533
|
+
[/^ring-offset-(.+)$/, colorResolver$1("--un-ring-offset-color", "ring-offset")],
|
|
534
|
+
[/^ring-offset-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-offset-opacity": handler.bracket.percent(opacity) })],
|
|
535
|
+
["ring-inset", { "--un-ring-inset": "inset" }]
|
|
533
536
|
];
|
|
534
537
|
|
|
535
538
|
const colorResolver = (body, theme) => {
|
|
@@ -855,4 +858,4 @@ const rules = [
|
|
|
855
858
|
questionMark
|
|
856
859
|
].flat(1);
|
|
857
860
|
|
|
858
|
-
export {
|
|
861
|
+
export { textDecorations as $, sizes as A, aspectRatio as B, paddings as C, margins as D, varEmpty as E, displays as F, appearances as G, cursors as H, pointerEvents as I, resizes as J, userSelects as K, whitespaces as L, contents as M, breaks as N, textOverflows as O, textTransforms as P, fontStyles as Q, fontSmoothings as R, svgUtilities as S, transforms as T, transitions as U, fonts as V, tabSizes as W, textIndents as X, textStrokes as Y, textShadows as Z, cssVariables as _, appearance as a, borders as b, opacity as c, textColors as d, bgColors as e, flex as f, gaps as g, grids as h, overflows as i, justifies as j, orders as k, alignments as l, placements as m, insets as n, outline as o, positions as p, floats as q, rules as r, boxSizing as s, textAligns as t, questionMark as u, verticalAligns as v, willChange as w, rings as x, boxShadows as y, zIndexes as z };
|
package/dist/chunks/default3.cjs
CHANGED
|
@@ -129,10 +129,21 @@ const variantSpace = (matcher) => {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
+
const variantPrint = (v) => {
|
|
133
|
+
const print = variants$1.variantMatcher("print")(v);
|
|
134
|
+
if (print) {
|
|
135
|
+
return {
|
|
136
|
+
...print,
|
|
137
|
+
parent: "@media print"
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
132
142
|
const variants = [
|
|
133
143
|
variantSpace,
|
|
134
144
|
variantNegative,
|
|
135
145
|
variantImportant,
|
|
146
|
+
variantPrint,
|
|
136
147
|
variantBreakpoints,
|
|
137
148
|
...variantCombinators,
|
|
138
149
|
pseudo.variantPseudoClasses,
|
|
@@ -148,5 +159,6 @@ exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
|
|
|
148
159
|
exports.variantCombinators = variantCombinators;
|
|
149
160
|
exports.variantImportant = variantImportant;
|
|
150
161
|
exports.variantNegative = variantNegative;
|
|
162
|
+
exports.variantPrint = variantPrint;
|
|
151
163
|
exports.variantSpace = variantSpace;
|
|
152
164
|
exports.variants = variants;
|
package/dist/chunks/default3.mjs
CHANGED
|
@@ -127,10 +127,21 @@ const variantSpace = (matcher) => {
|
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
+
const variantPrint = (v) => {
|
|
131
|
+
const print = variantMatcher("print")(v);
|
|
132
|
+
if (print) {
|
|
133
|
+
return {
|
|
134
|
+
...print,
|
|
135
|
+
parent: "@media print"
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
|
|
130
140
|
const variants = [
|
|
131
141
|
variantSpace,
|
|
132
142
|
variantNegative,
|
|
133
143
|
variantImportant,
|
|
144
|
+
variantPrint,
|
|
134
145
|
variantBreakpoints,
|
|
135
146
|
...variantCombinators,
|
|
136
147
|
variantPseudoClasses,
|
|
@@ -141,4 +152,4 @@ const variants = [
|
|
|
141
152
|
...variantColorsMediaOrClass
|
|
142
153
|
];
|
|
143
154
|
|
|
144
|
-
export { variantBreakpoints as a, variantCombinators as b, variantColorsMediaOrClass as c, variantImportant as d, variantNegative as e, variantSpace as f, variants as v };
|
|
155
|
+
export { variantBreakpoints as a, variantCombinators as b, variantColorsMediaOrClass as c, variantImportant as d, variantNegative as e, variantSpace as f, variantPrint as g, variants as v };
|
package/dist/index.cjs
CHANGED
|
@@ -14,15 +14,24 @@ require('./chunks/variants.cjs');
|
|
|
14
14
|
const presetMini = (options = {}) => {
|
|
15
15
|
options.dark = options.dark ?? "class";
|
|
16
16
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
17
|
-
options.variablePrefix = options.variablePrefix ?? "un-";
|
|
18
17
|
return {
|
|
19
18
|
name: "@unocss/preset-mini",
|
|
20
19
|
theme: _default.theme,
|
|
21
20
|
rules: _default$1.rules,
|
|
22
21
|
variants: _default$2.variants,
|
|
23
|
-
options
|
|
22
|
+
options,
|
|
23
|
+
postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
function VarPrefixPostprocessor(prefix) {
|
|
27
|
+
return (obj) => {
|
|
28
|
+
obj.entries.forEach((i) => {
|
|
29
|
+
i[0] = i[0].replace(/^--un-/, `--${prefix}`);
|
|
30
|
+
if (typeof i[1] === "string")
|
|
31
|
+
i[1] = i[1].replace(/var\(--un-/g, `var(--${prefix}`);
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
}
|
|
26
35
|
|
|
27
36
|
exports.theme = _default.theme;
|
|
28
37
|
exports.colors = colors.colors;
|
package/dist/index.mjs
CHANGED
|
@@ -11,14 +11,23 @@ import './chunks/variants.mjs';
|
|
|
11
11
|
const presetMini = (options = {}) => {
|
|
12
12
|
options.dark = options.dark ?? "class";
|
|
13
13
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
14
|
-
options.variablePrefix = options.variablePrefix ?? "un-";
|
|
15
14
|
return {
|
|
16
15
|
name: "@unocss/preset-mini",
|
|
17
16
|
theme,
|
|
18
17
|
rules,
|
|
19
18
|
variants,
|
|
20
|
-
options
|
|
19
|
+
options,
|
|
20
|
+
postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
+
function VarPrefixPostprocessor(prefix) {
|
|
24
|
+
return (obj) => {
|
|
25
|
+
obj.entries.forEach((i) => {
|
|
26
|
+
i[0] = i[0].replace(/^--un-/, `--${prefix}`);
|
|
27
|
+
if (typeof i[1] === "string")
|
|
28
|
+
i[1] = i[1].replace(/var\(--un-/g, `var(--${prefix}`);
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
}
|
|
23
32
|
|
|
24
33
|
export { presetMini as default, presetMini };
|
package/dist/rules.cjs
CHANGED
|
@@ -59,7 +59,6 @@ exports.transforms = _default.transforms;
|
|
|
59
59
|
exports.transitions = _default.transitions;
|
|
60
60
|
exports.userSelects = _default.userSelects;
|
|
61
61
|
exports.varEmpty = _default.varEmpty;
|
|
62
|
-
exports.varEmptyFn = _default.varEmptyFn;
|
|
63
62
|
exports.verticalAligns = _default.verticalAligns;
|
|
64
63
|
exports.whitespaces = _default.whitespaces;
|
|
65
64
|
exports.willChange = _default.willChange;
|
package/dist/rules.d.ts
CHANGED
|
@@ -57,7 +57,6 @@ declare const aspectRatio: Rule[];
|
|
|
57
57
|
declare const paddings: Rule[];
|
|
58
58
|
declare const margins: Rule[];
|
|
59
59
|
|
|
60
|
-
declare const varEmptyFn: (prefix: string) => `var(--${string}empty,/*!*/ /*!*/)`;
|
|
61
60
|
declare const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
62
61
|
declare const displays: Rule[];
|
|
63
62
|
declare const appearances: Rule[];
|
|
@@ -89,4 +88,4 @@ declare const cssVariables: Rule[];
|
|
|
89
88
|
|
|
90
89
|
declare const textDecorations: Rule[];
|
|
91
90
|
|
|
92
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty,
|
|
91
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { l as alignments, a as appearance,
|
|
1
|
+
export { l as alignments, a as appearance, G as appearances, B as aspectRatio, e as bgColors, b as borders, y as boxShadows, s as boxSizing, N as breaks, M as contents, _ as cssVariables, H as cursors, F as displays, f as flex, q as floats, R as fontSmoothings, Q as fontStyles, V as fonts, g as gaps, h as grids, n as insets, j as justifies, D as margins, c as opacity, k as orders, o as outline, i as overflows, C as paddings, m as placements, I as pointerEvents, p as positions, u as questionMark, J as resizes, x as rings, r as rules, A as sizes, S as svgUtilities, W as tabSizes, t as textAligns, d as textColors, $ as textDecorations, X as textIndents, O as textOverflows, Z as textShadows, Y as textStrokes, P as textTransforms, T as transforms, U as transitions, K as userSelects, E as varEmpty, v as verticalAligns, L as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
|
|
2
2
|
import './chunks/utilities.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import './chunks/pseudo.mjs';
|
package/dist/variants.cjs
CHANGED
|
@@ -14,6 +14,7 @@ exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
|
|
|
14
14
|
exports.variantCombinators = _default.variantCombinators;
|
|
15
15
|
exports.variantImportant = _default.variantImportant;
|
|
16
16
|
exports.variantNegative = _default.variantNegative;
|
|
17
|
+
exports.variantPrint = _default.variantPrint;
|
|
17
18
|
exports.variantSpace = _default.variantSpace;
|
|
18
19
|
exports.variants = _default.variants;
|
|
19
20
|
exports.CONTROL_BYPASS_PSEUDO_CLASS = pseudo.CONTROL_BYPASS_PSEUDO_CLASS;
|
package/dist/variants.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ declare const variantImportant: Variant;
|
|
|
13
13
|
declare const variantNegative: Variant;
|
|
14
14
|
declare const variantSpace: Variant;
|
|
15
15
|
|
|
16
|
+
declare const variantPrint: VariantFunction;
|
|
17
|
+
|
|
16
18
|
declare const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
|
|
17
19
|
declare const variantPseudoElements: VariantFunction;
|
|
18
20
|
declare const variantPseudoClasses: VariantObject;
|
|
@@ -20,4 +22,4 @@ declare const variantPseudoClassFunctions: VariantObject;
|
|
|
20
22
|
declare const variantTaggedPseudoClasses: VariantObject;
|
|
21
23
|
declare const partClasses: VariantObject;
|
|
22
24
|
|
|
23
|
-
export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantNegative, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantSpace, variantTaggedPseudoClasses, variants };
|
|
25
|
+
export { CONTROL_BYPASS_PSEUDO_CLASS, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantSpace, variantTaggedPseudoClasses, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, d as variantImportant, e as variantNegative, f as variantSpace, v as variants } from './chunks/default3.mjs';
|
|
1
|
+
export { a as variantBreakpoints, c as variantColorsMediaOrClass, b as variantCombinators, d as variantImportant, e as variantNegative, g as variantPrint, f as variantSpace, v as variants } from './chunks/default3.mjs';
|
|
2
2
|
export { C as CONTROL_BYPASS_PSEUDO_CLASS, p as partClasses, a as variantPseudoClassFunctions, v as variantPseudoClasses, c as variantPseudoElements, b as variantTaggedPseudoClasses } from './chunks/pseudo.mjs';
|
|
3
3
|
import './chunks/variants.mjs';
|
|
4
4
|
import '@unocss/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
64
|
+
"@unocss/core": "0.20.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|