@unocss/preset-mini 0.31.13 → 0.31.16
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 +9 -10
- package/dist/chunks/default2.mjs +9 -10
- package/package.json +2 -2
package/dist/chunks/default2.cjs
CHANGED
|
@@ -26,8 +26,8 @@ const outline = [
|
|
|
26
26
|
[/^outline-(?:color-)?(.+)$/, utilities.colorResolver("outline-color", "outline-color"), { autocomplete: "outline-$colors" }],
|
|
27
27
|
[/^outline-offset-(.+)$/, ([, d], { theme }) => ({ "outline-offset": theme.lineWidth?.[d] ?? utilities.handler.bracket.cssvar.px(d) }), { autocomplete: "outline-(offset)-<num>" }],
|
|
28
28
|
["outline", { "outline-style": "solid" }],
|
|
29
|
-
["
|
|
30
|
-
|
|
29
|
+
...["auto", "dashed", "dotted", "double", "hidden", "solid", "groove", "ridge", "inset", "outset", "inherit", "initial", "revert", "unset"].map((v) => [`outline-${v}`, { "outline-style": v }]),
|
|
30
|
+
["outline-none", { "outline": "2px solid transparent", "outline-offset": "2px" }]
|
|
31
31
|
];
|
|
32
32
|
const appearance = [
|
|
33
33
|
["appearance-none", {
|
|
@@ -73,7 +73,10 @@ const borders = [
|
|
|
73
73
|
[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/, handlerRounded],
|
|
74
74
|
[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/, handlerRounded],
|
|
75
75
|
[/^(?:border|b)-(?:style-)?()(.+)$/, handlerBorderStyle, { autocomplete: ["(border|b)-style", `(border|b)-(${borderStyles.join("|")})`, "(border|b)-<directions>-style", `(border|b)-<directions>-(${borderStyles.join("|")})`, `(border|b)-<directions>-style-(${borderStyles.join("|")})`, `(border|b)-style-(${borderStyles.join("|")})`] }],
|
|
76
|
-
[/^(?:border|b)-([
|
|
76
|
+
[/^(?:border|b)-([xy])-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
77
|
+
[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
78
|
+
[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
79
|
+
[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/, handlerBorderStyle]
|
|
77
80
|
];
|
|
78
81
|
const borderColorResolver = (direction) => ([, body], theme) => {
|
|
79
82
|
const data = utilities.parseColor(body, theme);
|
|
@@ -135,12 +138,8 @@ function handlerRounded([, a = "", s], { theme }) {
|
|
|
135
138
|
return utilities.cornerMap[a].map((i) => [`border${i}-radius`, v]);
|
|
136
139
|
}
|
|
137
140
|
function handlerBorderStyle([, a = "", s]) {
|
|
138
|
-
if (borderStyles.includes(s))
|
|
139
|
-
|
|
140
|
-
return utilities.directionMap[a].map((i) => [`border${i}-style`, s]);
|
|
141
|
-
else
|
|
142
|
-
return [["border-style", s]];
|
|
143
|
-
}
|
|
141
|
+
if (borderStyles.includes(s) && a in utilities.directionMap)
|
|
142
|
+
return utilities.directionMap[a].map((i) => [`border${i}-style`, s]);
|
|
144
143
|
}
|
|
145
144
|
|
|
146
145
|
const opacity = [
|
|
@@ -388,7 +387,7 @@ const overflowValues = [
|
|
|
388
387
|
"scroll"
|
|
389
388
|
];
|
|
390
389
|
const overflows = [
|
|
391
|
-
[/^(?:overflow|of)-(.+)$/, ([, v]) => overflowValues.includes(v) ? { overflow: v } : void 0, { autocomplete: [`(overflow|of)
|
|
390
|
+
[/^(?:overflow|of)-(.+)$/, ([, v]) => overflowValues.includes(v) ? { overflow: v } : void 0, { autocomplete: [`(overflow|of)-(${overflowValues.join("|")})`, `(overflow|of)-(x|y)-(${overflowValues.join("|")})`] }],
|
|
392
391
|
[/^(?:overflow|of)-([xy])-(.+)$/, ([, d, v]) => overflowValues.includes(v) ? { [`overflow-${d}`]: v } : void 0]
|
|
393
392
|
];
|
|
394
393
|
|
package/dist/chunks/default2.mjs
CHANGED
|
@@ -24,8 +24,8 @@ const outline = [
|
|
|
24
24
|
[/^outline-(?:color-)?(.+)$/, colorResolver("outline-color", "outline-color"), { autocomplete: "outline-$colors" }],
|
|
25
25
|
[/^outline-offset-(.+)$/, ([, d], { theme }) => ({ "outline-offset": theme.lineWidth?.[d] ?? handler.bracket.cssvar.px(d) }), { autocomplete: "outline-(offset)-<num>" }],
|
|
26
26
|
["outline", { "outline-style": "solid" }],
|
|
27
|
-
["
|
|
28
|
-
|
|
27
|
+
...["auto", "dashed", "dotted", "double", "hidden", "solid", "groove", "ridge", "inset", "outset", "inherit", "initial", "revert", "unset"].map((v) => [`outline-${v}`, { "outline-style": v }]),
|
|
28
|
+
["outline-none", { "outline": "2px solid transparent", "outline-offset": "2px" }]
|
|
29
29
|
];
|
|
30
30
|
const appearance = [
|
|
31
31
|
["appearance-none", {
|
|
@@ -71,7 +71,10 @@ const borders = [
|
|
|
71
71
|
[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/, handlerRounded],
|
|
72
72
|
[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/, handlerRounded],
|
|
73
73
|
[/^(?:border|b)-(?:style-)?()(.+)$/, handlerBorderStyle, { autocomplete: ["(border|b)-style", `(border|b)-(${borderStyles.join("|")})`, "(border|b)-<directions>-style", `(border|b)-<directions>-(${borderStyles.join("|")})`, `(border|b)-<directions>-style-(${borderStyles.join("|")})`, `(border|b)-style-(${borderStyles.join("|")})`] }],
|
|
74
|
-
[/^(?:border|b)-([
|
|
74
|
+
[/^(?:border|b)-([xy])-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
75
|
+
[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
76
|
+
[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/, handlerBorderStyle],
|
|
77
|
+
[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/, handlerBorderStyle]
|
|
75
78
|
];
|
|
76
79
|
const borderColorResolver = (direction) => ([, body], theme) => {
|
|
77
80
|
const data = parseColor(body, theme);
|
|
@@ -133,12 +136,8 @@ function handlerRounded([, a = "", s], { theme }) {
|
|
|
133
136
|
return cornerMap[a].map((i) => [`border${i}-radius`, v]);
|
|
134
137
|
}
|
|
135
138
|
function handlerBorderStyle([, a = "", s]) {
|
|
136
|
-
if (borderStyles.includes(s))
|
|
137
|
-
|
|
138
|
-
return directionMap[a].map((i) => [`border${i}-style`, s]);
|
|
139
|
-
else
|
|
140
|
-
return [["border-style", s]];
|
|
141
|
-
}
|
|
139
|
+
if (borderStyles.includes(s) && a in directionMap)
|
|
140
|
+
return directionMap[a].map((i) => [`border${i}-style`, s]);
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
const opacity = [
|
|
@@ -386,7 +385,7 @@ const overflowValues = [
|
|
|
386
385
|
"scroll"
|
|
387
386
|
];
|
|
388
387
|
const overflows = [
|
|
389
|
-
[/^(?:overflow|of)-(.+)$/, ([, v]) => overflowValues.includes(v) ? { overflow: v } : void 0, { autocomplete: [`(overflow|of)
|
|
388
|
+
[/^(?:overflow|of)-(.+)$/, ([, v]) => overflowValues.includes(v) ? { overflow: v } : void 0, { autocomplete: [`(overflow|of)-(${overflowValues.join("|")})`, `(overflow|of)-(x|y)-(${overflowValues.join("|")})`] }],
|
|
390
389
|
[/^(?:overflow|of)-([xy])-(.+)$/, ([, d, v]) => overflowValues.includes(v) ? { [`overflow-${d}`]: v } : void 0]
|
|
391
390
|
];
|
|
392
391
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.16",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
],
|
|
62
62
|
"sideEffects": false,
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.31.
|
|
64
|
+
"@unocss/core": "0.31.16"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|