@unocss/preset-mini 0.16.2 → 0.16.3
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 +10 -8
- package/dist/chunks/default2.mjs +10 -8
- package/package.json +2 -2
package/dist/chunks/default2.cjs
CHANGED
|
@@ -167,11 +167,11 @@ const placeholder = [
|
|
|
167
167
|
const borders = [
|
|
168
168
|
[/^border$/, handlerBorder],
|
|
169
169
|
[/^(?:border|b)()-(.+)$/, handlerBorder],
|
|
170
|
-
[/^(?:border|b)-([^-]+)
|
|
170
|
+
[/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorder],
|
|
171
171
|
[/^(?:border|b)()-size-(.+)$/, handlerBorderSize],
|
|
172
172
|
[/^(?:border|b)-([^-]+)-size-(.+)$/, handlerBorderSize],
|
|
173
173
|
[/^(?:border|b)()-(.+)$/, handlerBorderColor],
|
|
174
|
-
[/^(?:border|b)-([^-]+)
|
|
174
|
+
[/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorderColor],
|
|
175
175
|
[/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-border-opacity": index.handler.bracket.percent(opacity) })],
|
|
176
176
|
["border-solid", { "border-style": "solid" }],
|
|
177
177
|
["border-dashed", { "border-style": "dashed" }],
|
|
@@ -201,12 +201,14 @@ function handlerBorderSize([, a, b]) {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
function handlerBorderColor([, a, c], ctx) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
if (c !== void 0) {
|
|
205
|
+
const ofColor = colorResolver$1("border-color", "border")(["", c], ctx);
|
|
206
|
+
if (ofColor) {
|
|
207
|
+
const borders2 = index.directionMap[index.directionMap[a] ? a : ""].map((i) => colorResolver$1(`border${i}-color`, "border")(["", c], ctx));
|
|
208
|
+
const borderObject = {};
|
|
209
|
+
Object.assign(borderObject, ...borders2);
|
|
210
|
+
return borderObject;
|
|
211
|
+
}
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
214
|
function handlerRounded([, a, b], { theme }) {
|
package/dist/chunks/default2.mjs
CHANGED
|
@@ -165,11 +165,11 @@ const placeholder = [
|
|
|
165
165
|
const borders = [
|
|
166
166
|
[/^border$/, handlerBorder],
|
|
167
167
|
[/^(?:border|b)()-(.+)$/, handlerBorder],
|
|
168
|
-
[/^(?:border|b)-([^-]+)
|
|
168
|
+
[/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorder],
|
|
169
169
|
[/^(?:border|b)()-size-(.+)$/, handlerBorderSize],
|
|
170
170
|
[/^(?:border|b)-([^-]+)-size-(.+)$/, handlerBorderSize],
|
|
171
171
|
[/^(?:border|b)()-(.+)$/, handlerBorderColor],
|
|
172
|
-
[/^(?:border|b)-([^-]+)
|
|
172
|
+
[/^(?:border|b)-([^-]+)(?:-(.+))?$/, handlerBorderColor],
|
|
173
173
|
[/^(?:border|b)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-border-opacity": handler.bracket.percent(opacity) })],
|
|
174
174
|
["border-solid", { "border-style": "solid" }],
|
|
175
175
|
["border-dashed", { "border-style": "dashed" }],
|
|
@@ -199,12 +199,14 @@ function handlerBorderSize([, a, b]) {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
function handlerBorderColor([, a, c], ctx) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
202
|
+
if (c !== void 0) {
|
|
203
|
+
const ofColor = colorResolver$1("border-color", "border")(["", c], ctx);
|
|
204
|
+
if (ofColor) {
|
|
205
|
+
const borders2 = directionMap[directionMap[a] ? a : ""].map((i) => colorResolver$1(`border${i}-color`, "border")(["", c], ctx));
|
|
206
|
+
const borderObject = {};
|
|
207
|
+
Object.assign(borderObject, ...borders2);
|
|
208
|
+
return borderObject;
|
|
209
|
+
}
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
212
|
function handlerRounded([, a, b], { theme }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
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.16.
|
|
64
|
+
"@unocss/core": "0.16.3"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|