@unocss/preset-mini 0.22.1 → 0.22.5
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 +215 -216
- package/dist/chunks/default2.mjs +216 -218
- package/dist/chunks/default3.cjs +15 -26
- package/dist/chunks/default3.mjs +16 -26
- package/dist/chunks/utilities.cjs +5 -7
- package/dist/chunks/utilities.mjs +6 -7
- package/dist/index.d.ts +1 -1
- package/dist/rules.cjs +1 -0
- package/dist/rules.d.ts +2 -2
- package/dist/rules.mjs +1 -1
- package/dist/{utilities-13c33ba5.d.ts → utilities-29b01158.d.ts} +1 -2
- package/dist/utils.cjs +0 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +0 -1
- package/dist/variants.d.ts +8 -12
- package/dist/variants.mjs +1 -1
- package/package.json +2 -2
package/dist/chunks/default3.cjs
CHANGED
|
@@ -43,9 +43,19 @@ const variantCombinators = [
|
|
|
43
43
|
variants$1.variantMatcher("next", (input) => `${input}+*`),
|
|
44
44
|
variants$1.variantMatcher("sibling", (input) => `${input}+*`),
|
|
45
45
|
variants$1.variantMatcher("siblings", (input) => `${input}~*`),
|
|
46
|
-
variants$1.variantMatcher("svg", (input) => `${input} svg
|
|
46
|
+
variants$1.variantMatcher("svg", (input) => `${input} svg`)
|
|
47
47
|
];
|
|
48
48
|
|
|
49
|
+
const variantMotions = [
|
|
50
|
+
variants$1.variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
|
|
51
|
+
variants$1.variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
|
|
52
|
+
];
|
|
53
|
+
const variantOrientations = [
|
|
54
|
+
variants$1.variantParentMatcher("landscape", "@media (orientation: landscape)"),
|
|
55
|
+
variants$1.variantParentMatcher("portrait", "@media (orientation: portrait)")
|
|
56
|
+
];
|
|
57
|
+
const variantPrint = variants$1.variantParentMatcher("print", "@media print");
|
|
58
|
+
|
|
49
59
|
const variantColorsMediaOrClass = (options = {}) => {
|
|
50
60
|
if (options?.dark === "class") {
|
|
51
61
|
return [
|
|
@@ -98,19 +108,6 @@ const variantNegative = {
|
|
|
98
108
|
}
|
|
99
109
|
};
|
|
100
110
|
|
|
101
|
-
const variantMotions = [
|
|
102
|
-
variants$1.variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
|
|
103
|
-
variants$1.variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
|
|
104
|
-
];
|
|
105
|
-
|
|
106
|
-
const variantOrientations = [
|
|
107
|
-
variants$1.variantParentMatcher("landscape", "@media (orientation: landscape)"),
|
|
108
|
-
variants$1.variantParentMatcher("portrait", "@media (orientation: portrait)")
|
|
109
|
-
];
|
|
110
|
-
|
|
111
|
-
const variantPrint = variants$1.variantParentMatcher("print", "@media print");
|
|
112
|
-
|
|
113
|
-
const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
|
|
114
111
|
const PseudoClasses = Object.fromEntries([
|
|
115
112
|
"any-link",
|
|
116
113
|
"link",
|
|
@@ -173,9 +170,6 @@ const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
|
|
173
170
|
const PseudoElementsRE = new RegExp(`^(${PseudoElementsStr})[:-]`);
|
|
174
171
|
const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
|
|
175
172
|
const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
|
|
176
|
-
function shouldAdd(entires) {
|
|
177
|
-
return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
|
|
178
|
-
}
|
|
179
173
|
const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
180
174
|
const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
|
|
181
175
|
const rawRe = new RegExp(`^${core.escapeRegExp(parent)}:`);
|
|
@@ -187,9 +181,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
187
181
|
pseudo = `:${match[2]}(${pseudo})`;
|
|
188
182
|
return {
|
|
189
183
|
matcher: input.slice(match[1].length + tag.length + 2),
|
|
190
|
-
selector: (s,
|
|
191
|
-
return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`;
|
|
192
|
-
}
|
|
184
|
+
selector: (s) => rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`
|
|
193
185
|
};
|
|
194
186
|
}
|
|
195
187
|
};
|
|
@@ -211,7 +203,7 @@ const variantPseudoClasses = {
|
|
|
211
203
|
const pseudo = PseudoClasses[match[1]] || `:${match[1]}`;
|
|
212
204
|
return {
|
|
213
205
|
matcher: input.slice(match[1].length + 1),
|
|
214
|
-
selector: (s
|
|
206
|
+
selector: (s) => `${s}${pseudo}`
|
|
215
207
|
};
|
|
216
208
|
}
|
|
217
209
|
},
|
|
@@ -225,7 +217,7 @@ const variantPseudoClassFunctions = {
|
|
|
225
217
|
const pseudo = PseudoClasses[match[2]] || `:${match[2]}`;
|
|
226
218
|
return {
|
|
227
219
|
matcher: input.slice(match[1].length + match[2].length + 2),
|
|
228
|
-
selector: (s
|
|
220
|
+
selector: (s) => `${s}:${fn}(${pseudo})`
|
|
229
221
|
};
|
|
230
222
|
}
|
|
231
223
|
},
|
|
@@ -251,9 +243,7 @@ const partClasses = {
|
|
|
251
243
|
const part = `part(${match[2]})`;
|
|
252
244
|
return {
|
|
253
245
|
matcher: input.slice(match[1].length),
|
|
254
|
-
selector: (s
|
|
255
|
-
return shouldAdd(body) && `${s}::${part}`;
|
|
256
|
-
}
|
|
246
|
+
selector: (s) => `${s}::${part}`
|
|
257
247
|
};
|
|
258
248
|
}
|
|
259
249
|
},
|
|
@@ -277,7 +267,6 @@ const variants = (options) => [
|
|
|
277
267
|
...variantLanguageDirections
|
|
278
268
|
];
|
|
279
269
|
|
|
280
|
-
exports.CONTROL_BYPASS_PSEUDO_CLASS = CONTROL_BYPASS_PSEUDO_CLASS;
|
|
281
270
|
exports.partClasses = partClasses;
|
|
282
271
|
exports.variantBreakpoints = variantBreakpoints;
|
|
283
272
|
exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
|
package/dist/chunks/default3.mjs
CHANGED
|
@@ -41,9 +41,19 @@ const variantCombinators = [
|
|
|
41
41
|
variantMatcher("next", (input) => `${input}+*`),
|
|
42
42
|
variantMatcher("sibling", (input) => `${input}+*`),
|
|
43
43
|
variantMatcher("siblings", (input) => `${input}~*`),
|
|
44
|
-
variantMatcher("svg", (input) => `${input} svg
|
|
44
|
+
variantMatcher("svg", (input) => `${input} svg`)
|
|
45
45
|
];
|
|
46
46
|
|
|
47
|
+
const variantMotions = [
|
|
48
|
+
variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
|
|
49
|
+
variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
|
|
50
|
+
];
|
|
51
|
+
const variantOrientations = [
|
|
52
|
+
variantParentMatcher("landscape", "@media (orientation: landscape)"),
|
|
53
|
+
variantParentMatcher("portrait", "@media (orientation: portrait)")
|
|
54
|
+
];
|
|
55
|
+
const variantPrint = variantParentMatcher("print", "@media print");
|
|
56
|
+
|
|
47
57
|
const variantColorsMediaOrClass = (options = {}) => {
|
|
48
58
|
if (options?.dark === "class") {
|
|
49
59
|
return [
|
|
@@ -96,19 +106,6 @@ const variantNegative = {
|
|
|
96
106
|
}
|
|
97
107
|
};
|
|
98
108
|
|
|
99
|
-
const variantMotions = [
|
|
100
|
-
variantParentMatcher("motion-reduce", "@media (prefers-reduced-motion: reduce)"),
|
|
101
|
-
variantParentMatcher("motion-safe", "@media (prefers-reduced-motion: no-preference)")
|
|
102
|
-
];
|
|
103
|
-
|
|
104
|
-
const variantOrientations = [
|
|
105
|
-
variantParentMatcher("landscape", "@media (orientation: landscape)"),
|
|
106
|
-
variantParentMatcher("portrait", "@media (orientation: portrait)")
|
|
107
|
-
];
|
|
108
|
-
|
|
109
|
-
const variantPrint = variantParentMatcher("print", "@media print");
|
|
110
|
-
|
|
111
|
-
const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
|
|
112
109
|
const PseudoClasses = Object.fromEntries([
|
|
113
110
|
"any-link",
|
|
114
111
|
"link",
|
|
@@ -171,9 +168,6 @@ const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
|
|
171
168
|
const PseudoElementsRE = new RegExp(`^(${PseudoElementsStr})[:-]`);
|
|
172
169
|
const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
|
|
173
170
|
const PseudoClassFunctionsRE = new RegExp(`^(${PseudoClassFunctionsStr})-(${PseudoClassesStr})[:-]`);
|
|
174
|
-
function shouldAdd(entires) {
|
|
175
|
-
return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO_CLASS) || void 0;
|
|
176
|
-
}
|
|
177
171
|
const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
178
172
|
const re = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
|
|
179
173
|
const rawRe = new RegExp(`^${escapeRegExp(parent)}:`);
|
|
@@ -185,9 +179,7 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
185
179
|
pseudo = `:${match[2]}(${pseudo})`;
|
|
186
180
|
return {
|
|
187
181
|
matcher: input.slice(match[1].length + tag.length + 2),
|
|
188
|
-
selector: (s,
|
|
189
|
-
return shouldAdd(body) && rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`;
|
|
190
|
-
}
|
|
182
|
+
selector: (s) => rawRe.test(s) ? s.replace(rawRe, `${parent}${pseudo}:`) : `${parent}${pseudo}${combinator}${s}`
|
|
191
183
|
};
|
|
192
184
|
}
|
|
193
185
|
};
|
|
@@ -209,7 +201,7 @@ const variantPseudoClasses = {
|
|
|
209
201
|
const pseudo = PseudoClasses[match[1]] || `:${match[1]}`;
|
|
210
202
|
return {
|
|
211
203
|
matcher: input.slice(match[1].length + 1),
|
|
212
|
-
selector: (s
|
|
204
|
+
selector: (s) => `${s}${pseudo}`
|
|
213
205
|
};
|
|
214
206
|
}
|
|
215
207
|
},
|
|
@@ -223,7 +215,7 @@ const variantPseudoClassFunctions = {
|
|
|
223
215
|
const pseudo = PseudoClasses[match[2]] || `:${match[2]}`;
|
|
224
216
|
return {
|
|
225
217
|
matcher: input.slice(match[1].length + match[2].length + 2),
|
|
226
|
-
selector: (s
|
|
218
|
+
selector: (s) => `${s}:${fn}(${pseudo})`
|
|
227
219
|
};
|
|
228
220
|
}
|
|
229
221
|
},
|
|
@@ -249,9 +241,7 @@ const partClasses = {
|
|
|
249
241
|
const part = `part(${match[2]})`;
|
|
250
242
|
return {
|
|
251
243
|
matcher: input.slice(match[1].length),
|
|
252
|
-
selector: (s
|
|
253
|
-
return shouldAdd(body) && `${s}::${part}`;
|
|
254
|
-
}
|
|
244
|
+
selector: (s) => `${s}::${part}`
|
|
255
245
|
};
|
|
256
246
|
}
|
|
257
247
|
},
|
|
@@ -275,4 +265,4 @@ const variants = (options) => [
|
|
|
275
265
|
...variantLanguageDirections
|
|
276
266
|
];
|
|
277
267
|
|
|
278
|
-
export {
|
|
268
|
+
export { variantBreakpoints as a, variantCombinators as b, variantMotions as c, variantOrientations as d, variantPrint as e, variantColorsMediaOrClass as f, variantLanguageDirections as g, variantImportant as h, variantNegative as i, variantPseudoElements as j, variantPseudoClasses as k, variantPseudoClassFunctions as l, variantTaggedPseudoClasses as m, partClasses as p, variants as v };
|
|
@@ -21,6 +21,8 @@ const directionMap = {
|
|
|
21
21
|
};
|
|
22
22
|
const insetMap = {
|
|
23
23
|
...directionMap,
|
|
24
|
+
s: ["-inset-inline-start"],
|
|
25
|
+
e: ["-inset-inline-end"],
|
|
24
26
|
bs: ["-inset-block-start"],
|
|
25
27
|
be: ["-inset-block-end"],
|
|
26
28
|
is: ["-inset-inline-start"],
|
|
@@ -204,7 +206,7 @@ function fraction(str) {
|
|
|
204
206
|
}
|
|
205
207
|
function bracket(str) {
|
|
206
208
|
if (str && str[0] === "[" && str[str.length - 1] === "]") {
|
|
207
|
-
return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
|
|
209
|
+
return str.slice(1, -1).replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/([^\\])_/g, "$1 ").replace(/calc\((.*)/g, (v) => {
|
|
208
210
|
return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
|
|
209
211
|
});
|
|
210
212
|
}
|
|
@@ -223,7 +225,7 @@ function time(str) {
|
|
|
223
225
|
return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
|
|
224
226
|
}
|
|
225
227
|
function degree(str) {
|
|
226
|
-
const match = str.match(/^(-?[0-9.]+)(deg)?$/i);
|
|
228
|
+
const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
|
|
227
229
|
if (!match)
|
|
228
230
|
return;
|
|
229
231
|
const [, n, unit] = match;
|
|
@@ -263,11 +265,8 @@ const valueHandlers = {
|
|
|
263
265
|
const handler = core.createValueHandler(valueHandlers);
|
|
264
266
|
const h = handler;
|
|
265
267
|
|
|
266
|
-
function capitalize(str) {
|
|
267
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
268
|
-
}
|
|
269
268
|
const directionSize = (propertyPrefix) => ([_, direction, size]) => {
|
|
270
|
-
const v = handler.bracket.auto.
|
|
269
|
+
const v = handler.bracket.cssvar.auto.fraction.rem(size);
|
|
271
270
|
if (v !== void 0)
|
|
272
271
|
return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
|
|
273
272
|
};
|
|
@@ -351,7 +350,6 @@ const colorResolver = (property, varName) => ([, body], { theme }) => {
|
|
|
351
350
|
}
|
|
352
351
|
};
|
|
353
352
|
|
|
354
|
-
exports.capitalize = capitalize;
|
|
355
353
|
exports.colorResolver = colorResolver;
|
|
356
354
|
exports.cornerMap = cornerMap;
|
|
357
355
|
exports.directionMap = directionMap;
|
|
@@ -19,6 +19,8 @@ const directionMap = {
|
|
|
19
19
|
};
|
|
20
20
|
const insetMap = {
|
|
21
21
|
...directionMap,
|
|
22
|
+
s: ["-inset-inline-start"],
|
|
23
|
+
e: ["-inset-inline-end"],
|
|
22
24
|
bs: ["-inset-block-start"],
|
|
23
25
|
be: ["-inset-block-end"],
|
|
24
26
|
is: ["-inset-inline-start"],
|
|
@@ -202,7 +204,7 @@ function fraction(str) {
|
|
|
202
204
|
}
|
|
203
205
|
function bracket(str) {
|
|
204
206
|
if (str && str[0] === "[" && str[str.length - 1] === "]") {
|
|
205
|
-
return str.slice(1, -1).replace(/_/g, " ").replace(/calc\((.*)/g, (v) => {
|
|
207
|
+
return str.slice(1, -1).replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/([^\\])_/g, "$1 ").replace(/calc\((.*)/g, (v) => {
|
|
206
208
|
return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
|
|
207
209
|
});
|
|
208
210
|
}
|
|
@@ -221,7 +223,7 @@ function time(str) {
|
|
|
221
223
|
return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
|
|
222
224
|
}
|
|
223
225
|
function degree(str) {
|
|
224
|
-
const match = str.match(/^(-?[0-9.]+)(deg)?$/i);
|
|
226
|
+
const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
|
|
225
227
|
if (!match)
|
|
226
228
|
return;
|
|
227
229
|
const [, n, unit] = match;
|
|
@@ -261,11 +263,8 @@ const valueHandlers = {
|
|
|
261
263
|
const handler = createValueHandler(valueHandlers);
|
|
262
264
|
const h = handler;
|
|
263
265
|
|
|
264
|
-
function capitalize(str) {
|
|
265
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
266
|
-
}
|
|
267
266
|
const directionSize = (propertyPrefix) => ([_, direction, size]) => {
|
|
268
|
-
const v = handler.bracket.auto.
|
|
267
|
+
const v = handler.bracket.cssvar.auto.fraction.rem(size);
|
|
269
268
|
if (v !== void 0)
|
|
270
269
|
return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
|
|
271
270
|
};
|
|
@@ -349,4 +348,4 @@ const colorResolver = (property, varName) => ([, body], { theme }) => {
|
|
|
349
348
|
}
|
|
350
349
|
};
|
|
351
350
|
|
|
352
|
-
export { cornerMap as a, directionSize as b, colorResolver as c, directionMap as d, positionMap as e, h as f,
|
|
351
|
+
export { cornerMap as a, directionSize as b, colorResolver as c, directionMap as d, positionMap as e, h as f, handler as h, insetMap as i, parseColor as p, valueHandlers as v, xyzMap as x };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { T as Theme } from './types-c14b808b';
|
|
|
3
3
|
export { T as Theme, a as ThemeAnimation } from './types-c14b808b';
|
|
4
4
|
export { t as theme } from './default-17948303';
|
|
5
5
|
export { c as colors } from './colors-338f482c';
|
|
6
|
-
export { p as parseColor } from './utilities-
|
|
6
|
+
export { p as parseColor } from './utilities-29b01158';
|
|
7
7
|
|
|
8
8
|
interface PresetMiniOptions extends PresetOptions {
|
|
9
9
|
/**
|
package/dist/rules.cjs
CHANGED
|
@@ -17,6 +17,7 @@ exports.borders = _default.borders;
|
|
|
17
17
|
exports.boxShadows = _default.boxShadows;
|
|
18
18
|
exports.boxSizing = _default.boxSizing;
|
|
19
19
|
exports.breaks = _default.breaks;
|
|
20
|
+
exports.colorableShadows = _default.colorableShadows;
|
|
20
21
|
exports.contents = _default.contents;
|
|
21
22
|
exports.cssProperty = _default.cssProperty;
|
|
22
23
|
exports.cssVariables = _default.cssVariables;
|
package/dist/rules.d.ts
CHANGED
|
@@ -55,8 +55,8 @@ declare const shadowBase: {
|
|
|
55
55
|
'--un-ring-shadow': string;
|
|
56
56
|
'--un-shadow-inset': string;
|
|
57
57
|
'--un-shadow': string;
|
|
58
|
-
'--un-shadow-colored': string;
|
|
59
58
|
};
|
|
59
|
+
declare const colorableShadows: (shadows: string | string[], colorVar: string) => string[];
|
|
60
60
|
declare const boxShadows: Rule<Theme>[];
|
|
61
61
|
|
|
62
62
|
declare const sizes: Rule<Theme>[];
|
|
@@ -97,4 +97,4 @@ declare const cssProperty: Rule[];
|
|
|
97
97
|
|
|
98
98
|
declare const textDecorations: Rule[];
|
|
99
99
|
|
|
100
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssProperty, 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, shadowBase, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
|
100
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, colorableShadows, contents, cssProperty, 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, shadowBase, 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,3 +1,3 @@
|
|
|
1
|
-
export { l as alignments, a as appearance,
|
|
1
|
+
export { l as alignments, a as appearance, I as appearances, D as aspectRatio, e as bgColors, b as borders, B as boxShadows, s as boxSizing, P as breaks, A as colorableShadows, O as contents, a1 as cssProperty, a0 as cssVariables, J as cursors, H as displays, f as flex, q as floats, T as fontSmoothings, S as fontStyles, X as fonts, g as gaps, h as grids, n as insets, j as justifies, F as margins, c as opacity, k as orders, o as outline, i as overflows, E as paddings, m as placements, K as pointerEvents, p as positions, u as questionMark, L as resizes, x as rings, r as rules, y as shadowBase, C as sizes, U as svgUtilities, Y as tabSizes, t as textAligns, d as textColors, a2 as textDecorations, Z as textIndents, Q as textOverflows, $ as textShadows, _ as textStrokes, R as textTransforms, V as transforms, W as transitions, M as userSelects, G as varEmpty, v as verticalAligns, N as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
|
|
2
2
|
import './chunks/utilities.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue } from '@unocss/core';
|
|
2
2
|
import { T as Theme } from './types-c14b808b';
|
|
3
3
|
|
|
4
|
-
declare function capitalize<T extends string>(str: T): Capitalize<T>;
|
|
5
4
|
/**
|
|
6
5
|
* Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
|
|
7
6
|
*
|
|
@@ -53,4 +52,4 @@ declare const parseColor: (body: string, theme: Theme) => ParsedColorValue | und
|
|
|
53
52
|
*/
|
|
54
53
|
declare const colorResolver: (property: string, varName: string) => DynamicMatcher;
|
|
55
54
|
|
|
56
|
-
export { colorResolver as
|
|
55
|
+
export { colorResolver as c, directionSize as d, parseColor as p };
|
package/dist/utils.cjs
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { VariantHandler } from '@unocss/core';
|
|
3
|
-
export { c as
|
|
3
|
+
export { c as colorResolver, d as directionSize, p as parseColor } from './utilities-29b01158';
|
|
4
4
|
import './types-c14b808b';
|
|
5
5
|
|
|
6
6
|
declare const directionMap: Record<string, string[]>;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { c as colorResolver, a as cornerMap, d as directionMap, b as directionSize, f as h, h as handler, i as insetMap, p as parseColor, e as positionMap, v as valueHandlers, x as xyzMap } from './chunks/utilities.mjs';
|
|
2
2
|
export { v as variantMatcher, a as variantParentMatcher } from './chunks/variants.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
|
@@ -8,7 +8,6 @@ require('@unocss/core');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.CONTROL_BYPASS_PSEUDO_CLASS = _default.CONTROL_BYPASS_PSEUDO_CLASS;
|
|
12
11
|
exports.partClasses = _default.partClasses;
|
|
13
12
|
exports.variantBreakpoints = _default.variantBreakpoints;
|
|
14
13
|
exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
import * as _unocss_core from '@unocss/core';
|
|
2
1
|
import { Variant, VariantFunction, VariantObject } from '@unocss/core';
|
|
3
2
|
import { T as Theme } from './types-c14b808b';
|
|
4
3
|
import { PresetMiniOptions } from './index';
|
|
5
4
|
import './default-17948303';
|
|
6
5
|
import './colors-338f482c';
|
|
7
|
-
import './utilities-
|
|
6
|
+
import './utilities-29b01158';
|
|
8
7
|
|
|
9
8
|
declare const variantBreakpoints: Variant<Theme>;
|
|
10
9
|
|
|
11
10
|
declare const variantCombinators: Variant[];
|
|
12
11
|
|
|
13
|
-
declare const
|
|
12
|
+
declare const variantMotions: VariantFunction[];
|
|
13
|
+
declare const variantOrientations: VariantFunction[];
|
|
14
|
+
declare const variantPrint: VariantFunction;
|
|
14
15
|
|
|
15
|
-
declare const
|
|
16
|
+
declare const variantColorsMediaOrClass: (options?: PresetMiniOptions) => VariantFunction[];
|
|
16
17
|
|
|
17
18
|
declare const variants: (options: PresetMiniOptions) => Variant<Theme>[];
|
|
18
19
|
|
|
20
|
+
declare const variantLanguageDirections: Variant[];
|
|
21
|
+
|
|
19
22
|
declare const variantImportant: Variant;
|
|
20
23
|
declare const variantNegative: Variant;
|
|
21
24
|
|
|
22
|
-
declare const variantMotions: Variant[];
|
|
23
|
-
|
|
24
|
-
declare const variantOrientations: Variant[];
|
|
25
|
-
|
|
26
|
-
declare const variantPrint: (input: string) => _unocss_core.VariantHandler | undefined;
|
|
27
|
-
|
|
28
|
-
declare const CONTROL_BYPASS_PSEUDO_CLASS = "$$no-pseudo";
|
|
29
25
|
declare const variantPseudoElements: VariantFunction;
|
|
30
26
|
declare const variantPseudoClasses: VariantObject;
|
|
31
27
|
declare const variantPseudoClassFunctions: VariantObject;
|
|
32
28
|
declare const variantTaggedPseudoClasses: (options?: PresetMiniOptions) => VariantObject[];
|
|
33
29
|
declare const partClasses: VariantObject;
|
|
34
30
|
|
|
35
|
-
export {
|
|
31
|
+
export { partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantImportant, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPrint, variantPseudoClassFunctions, variantPseudoClasses, variantPseudoElements, variantTaggedPseudoClasses, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { p as partClasses, a as variantBreakpoints, f as variantColorsMediaOrClass, b as variantCombinators, h as variantImportant, g as variantLanguageDirections, c as variantMotions, i as variantNegative, d as variantOrientations, e as variantPrint, l as variantPseudoClassFunctions, k as variantPseudoClasses, j as variantPseudoElements, m as variantTaggedPseudoClasses, v as variants } from './chunks/default3.mjs';
|
|
2
2
|
import './chunks/variants.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.5",
|
|
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.22.
|
|
64
|
+
"@unocss/core": "0.22.5"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|