@unocss/preset-mini 0.41.2 → 0.42.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 +6 -5
- package/dist/chunks/default2.mjs +6 -6
- package/dist/chunks/default3.cjs +8 -19
- package/dist/chunks/default3.mjs +8 -19
- package/dist/rules.cjs +1 -0
- package/dist/rules.d.ts +2 -1
- package/dist/rules.mjs +1 -1
- package/package.json +2 -2
package/dist/chunks/default2.cjs
CHANGED
|
@@ -274,11 +274,11 @@ const fonts = [
|
|
|
274
274
|
([, s], { theme }) => ({ "line-height": theme.lineHeight?.[s] || utilities.handler.bracket.cssvar.global.rem(s) }),
|
|
275
275
|
{ autocomplete: "(leading|lh)-$lineHeight" }
|
|
276
276
|
],
|
|
277
|
-
[
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
],
|
|
277
|
+
["font-synthesis-weight", { "font-synthesis": "weight" }],
|
|
278
|
+
["font-synthesis-style", { "font-synthesis": "style" }],
|
|
279
|
+
["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
|
|
280
|
+
["font-synthesis-none", { "font-synthesis": "none" }],
|
|
281
|
+
[/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": utilities.handler.bracket.cssvar.global(s) })],
|
|
282
282
|
[
|
|
283
283
|
/^(?:font-)?tracking-(.+)$/,
|
|
284
284
|
([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || utilities.handler.bracket.cssvar.global.rem(s) }),
|
|
@@ -739,6 +739,7 @@ exports.alignments = alignments;
|
|
|
739
739
|
exports.appearance = appearance;
|
|
740
740
|
exports.aspectRatio = aspectRatio;
|
|
741
741
|
exports.bgColors = bgColors;
|
|
742
|
+
exports.borderStyles = borderStyles;
|
|
742
743
|
exports.borders = borders;
|
|
743
744
|
exports.boxSizing = boxSizing;
|
|
744
745
|
exports.cssProperty = cssProperty;
|
package/dist/chunks/default2.mjs
CHANGED
|
@@ -272,11 +272,11 @@ const fonts = [
|
|
|
272
272
|
([, s], { theme }) => ({ "line-height": theme.lineHeight?.[s] || handler.bracket.cssvar.global.rem(s) }),
|
|
273
273
|
{ autocomplete: "(leading|lh)-$lineHeight" }
|
|
274
274
|
],
|
|
275
|
-
[
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
],
|
|
275
|
+
["font-synthesis-weight", { "font-synthesis": "weight" }],
|
|
276
|
+
["font-synthesis-style", { "font-synthesis": "style" }],
|
|
277
|
+
["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
|
|
278
|
+
["font-synthesis-none", { "font-synthesis": "none" }],
|
|
279
|
+
[/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": handler.bracket.cssvar.global(s) })],
|
|
280
280
|
[
|
|
281
281
|
/^(?:font-)?tracking-(.+)$/,
|
|
282
282
|
([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || handler.bracket.cssvar.global.rem(s) }),
|
|
@@ -733,4 +733,4 @@ const rules = [
|
|
|
733
733
|
questionMark
|
|
734
734
|
].flat(1);
|
|
735
735
|
|
|
736
|
-
export {
|
|
736
|
+
export { aspectRatio as A, paddings as B, margins as C, svgUtilities as D, transitions as E, fonts as F, tabSizes as G, textIndents as H, textStrokes as I, textShadows as J, cssVariables as K, cssProperty as L, textDecorations as M, appearance as a, borderStyles as b, borders as c, opacity as d, textColors as e, bgColors as f, flex as g, gaps as h, grids as i, overflows as j, justifies as k, orders as l, alignments as m, placements as n, outline as o, positions as p, insets as q, rules as r, floats as s, textAligns as t, boxSizing as u, verticalAligns as v, willChange as w, questionMark as x, sizes as y, zIndexes as z };
|
package/dist/chunks/default3.cjs
CHANGED
|
@@ -327,7 +327,7 @@ const sortValue = (pseudo) => {
|
|
|
327
327
|
return 1;
|
|
328
328
|
};
|
|
329
329
|
const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
330
|
-
const rawRe = new RegExp(
|
|
330
|
+
const rawRe = new RegExp(`^(${core.escapeRegExp(parent)}:)(\\S+)${core.escapeRegExp(combinator)}\\1`);
|
|
331
331
|
const pseudoRE = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
|
|
332
332
|
const pseudoColonRE = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))[:]`);
|
|
333
333
|
return {
|
|
@@ -342,12 +342,13 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
342
342
|
matcher: input.slice(match[0].length),
|
|
343
343
|
handle: (input2, next) => next({
|
|
344
344
|
...input2,
|
|
345
|
-
prefix:
|
|
345
|
+
prefix: `${parent}${pseudo}${combinator}${input2.prefix}`.replace(rawRe, "$1$2:"),
|
|
346
346
|
sort: sortValue(match[3])
|
|
347
347
|
})
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
|
-
}
|
|
350
|
+
},
|
|
351
|
+
multiPass: true
|
|
351
352
|
};
|
|
352
353
|
};
|
|
353
354
|
const PseudoClassesAndElementsStr = Object.entries(PseudoClasses).map(([key]) => key).join("|");
|
|
@@ -400,22 +401,10 @@ const variantPseudoClassFunctions = {
|
|
|
400
401
|
const variantTaggedPseudoClasses = (options = {}) => {
|
|
401
402
|
const attributify = !!options?.attributifyPseudo;
|
|
402
403
|
return [
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
{
|
|
408
|
-
...taggedPseudoClassMatcher("peer", attributify ? '[peer=""]' : ".peer", "~"),
|
|
409
|
-
multiPass: true
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
...taggedPseudoClassMatcher("parent", attributify ? '[parent=""]' : ".parent", ">"),
|
|
413
|
-
multiPass: true
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
...taggedPseudoClassMatcher("previous", attributify ? '[previous=""]' : ".previous", "+"),
|
|
417
|
-
multiPass: true
|
|
418
|
-
}
|
|
404
|
+
taggedPseudoClassMatcher("group", attributify ? '[group=""]' : ".group", " "),
|
|
405
|
+
taggedPseudoClassMatcher("peer", attributify ? '[peer=""]' : ".peer", "~"),
|
|
406
|
+
taggedPseudoClassMatcher("parent", attributify ? '[parent=""]' : ".parent", ">"),
|
|
407
|
+
taggedPseudoClassMatcher("previous", attributify ? '[previous=""]' : ".previous", "+")
|
|
419
408
|
];
|
|
420
409
|
};
|
|
421
410
|
const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
package/dist/chunks/default3.mjs
CHANGED
|
@@ -325,7 +325,7 @@ const sortValue = (pseudo) => {
|
|
|
325
325
|
return 1;
|
|
326
326
|
};
|
|
327
327
|
const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
328
|
-
const rawRe = new RegExp(
|
|
328
|
+
const rawRe = new RegExp(`^(${escapeRegExp(parent)}:)(\\S+)${escapeRegExp(combinator)}\\1`);
|
|
329
329
|
const pseudoRE = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesStr}))[:-]`);
|
|
330
330
|
const pseudoColonRE = new RegExp(`^${tag}-((?:(${PseudoClassFunctionsStr})-)?(${PseudoClassesColonStr}))[:]`);
|
|
331
331
|
return {
|
|
@@ -340,12 +340,13 @@ const taggedPseudoClassMatcher = (tag, parent, combinator) => {
|
|
|
340
340
|
matcher: input.slice(match[0].length),
|
|
341
341
|
handle: (input2, next) => next({
|
|
342
342
|
...input2,
|
|
343
|
-
prefix:
|
|
343
|
+
prefix: `${parent}${pseudo}${combinator}${input2.prefix}`.replace(rawRe, "$1$2:"),
|
|
344
344
|
sort: sortValue(match[3])
|
|
345
345
|
})
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
}
|
|
348
|
+
},
|
|
349
|
+
multiPass: true
|
|
349
350
|
};
|
|
350
351
|
};
|
|
351
352
|
const PseudoClassesAndElementsStr = Object.entries(PseudoClasses).map(([key]) => key).join("|");
|
|
@@ -398,22 +399,10 @@ const variantPseudoClassFunctions = {
|
|
|
398
399
|
const variantTaggedPseudoClasses = (options = {}) => {
|
|
399
400
|
const attributify = !!options?.attributifyPseudo;
|
|
400
401
|
return [
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
{
|
|
406
|
-
...taggedPseudoClassMatcher("peer", attributify ? '[peer=""]' : ".peer", "~"),
|
|
407
|
-
multiPass: true
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
...taggedPseudoClassMatcher("parent", attributify ? '[parent=""]' : ".parent", ">"),
|
|
411
|
-
multiPass: true
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
...taggedPseudoClassMatcher("previous", attributify ? '[previous=""]' : ".previous", "+"),
|
|
415
|
-
multiPass: true
|
|
416
|
-
}
|
|
402
|
+
taggedPseudoClassMatcher("group", attributify ? '[group=""]' : ".group", " "),
|
|
403
|
+
taggedPseudoClassMatcher("peer", attributify ? '[peer=""]' : ".peer", "~"),
|
|
404
|
+
taggedPseudoClassMatcher("parent", attributify ? '[parent=""]' : ".parent", ">"),
|
|
405
|
+
taggedPseudoClassMatcher("previous", attributify ? '[previous=""]' : ".previous", "+")
|
|
417
406
|
];
|
|
418
407
|
};
|
|
419
408
|
const PartClassesRE = /(part-\[(.+)]:)(.+)/;
|
package/dist/rules.cjs
CHANGED
|
@@ -13,6 +13,7 @@ exports.alignments = _default.alignments;
|
|
|
13
13
|
exports.appearance = _default.appearance;
|
|
14
14
|
exports.aspectRatio = _default.aspectRatio;
|
|
15
15
|
exports.bgColors = _default.bgColors;
|
|
16
|
+
exports.borderStyles = _default.borderStyles;
|
|
16
17
|
exports.borders = _default.borders;
|
|
17
18
|
exports.boxSizing = _default.boxSizing;
|
|
18
19
|
exports.cssProperty = _default.cssProperty;
|
package/dist/rules.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const outline: Rule<Theme>[];
|
|
|
8
8
|
declare const appearance: Rule[];
|
|
9
9
|
declare const willChange: Rule[];
|
|
10
10
|
|
|
11
|
+
declare const borderStyles: string[];
|
|
11
12
|
declare const borders: Rule[];
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -117,4 +118,4 @@ declare const cssProperty: Rule[];
|
|
|
117
118
|
|
|
118
119
|
declare const textDecorations: Rule<Theme>[];
|
|
119
120
|
|
|
120
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxShadowsBase, 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, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
|
121
|
+
export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, 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, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { m as alignments, a as appearance, A as aspectRatio, f as bgColors, b as borderStyles, c as borders, u as boxSizing, L as cssProperty, K as cssVariables, g as flex, s as floats, F as fonts, h as gaps, i as grids, q as insets, k as justifies, C as margins, d as opacity, l as orders, o as outline, j as overflows, B as paddings, n as placements, p as positions, x as questionMark, r as rules, y as sizes, D as svgUtilities, G as tabSizes, t as textAligns, e as textColors, M as textDecorations, H as textIndents, J as textShadows, I as textStrokes, E as transitions, v as verticalAligns, w as willChange, z as zIndexes } from './chunks/default2.mjs';
|
|
2
2
|
export { k as appearances, h as boxShadows, b as boxShadowsBase, m as breaks, c as contents, j as cursors, d as displays, g as fontSmoothings, f as fontStyles, p as pointerEvents, l as resizes, r as ringBase, i as rings, a as textOverflows, e as textTransforms, t as transformBase, n as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './chunks/transform.mjs';
|
|
3
3
|
import './chunks/utilities.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.42.0",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
64
|
+
"@unocss/core": "0.42.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|