@unocss/preset-mini 0.31.5 → 0.31.6
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/default3.cjs
CHANGED
|
@@ -139,9 +139,10 @@ const variantScope = {
|
|
|
139
139
|
};
|
|
140
140
|
const variantImportant = {
|
|
141
141
|
match(matcher) {
|
|
142
|
-
|
|
142
|
+
const match = matcher.match(/^(important[:-]|!)/);
|
|
143
|
+
if (match) {
|
|
143
144
|
return {
|
|
144
|
-
matcher: matcher.slice(
|
|
145
|
+
matcher: matcher.slice(match[0].length),
|
|
145
146
|
body: (body) => {
|
|
146
147
|
body.forEach((v) => {
|
|
147
148
|
if (v[1])
|
|
@@ -151,7 +152,8 @@ const variantImportant = {
|
|
|
151
152
|
}
|
|
152
153
|
};
|
|
153
154
|
}
|
|
154
|
-
}
|
|
155
|
+
},
|
|
156
|
+
autocomplete: "(important)"
|
|
155
157
|
};
|
|
156
158
|
const variantNegative = {
|
|
157
159
|
match(matcher) {
|
package/dist/chunks/default3.mjs
CHANGED
|
@@ -137,9 +137,10 @@ const variantScope = {
|
|
|
137
137
|
};
|
|
138
138
|
const variantImportant = {
|
|
139
139
|
match(matcher) {
|
|
140
|
-
|
|
140
|
+
const match = matcher.match(/^(important[:-]|!)/);
|
|
141
|
+
if (match) {
|
|
141
142
|
return {
|
|
142
|
-
matcher: matcher.slice(
|
|
143
|
+
matcher: matcher.slice(match[0].length),
|
|
143
144
|
body: (body) => {
|
|
144
145
|
body.forEach((v) => {
|
|
145
146
|
if (v[1])
|
|
@@ -149,7 +150,8 @@ const variantImportant = {
|
|
|
149
150
|
}
|
|
150
151
|
};
|
|
151
152
|
}
|
|
152
|
-
}
|
|
153
|
+
},
|
|
154
|
+
autocomplete: "(important)"
|
|
153
155
|
};
|
|
154
156
|
const variantNegative = {
|
|
155
157
|
match(matcher) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.6",
|
|
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.6"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|