@unocss/preset-wind 0.58.4 → 0.58.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/index.cjs +2 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +2 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1270,6 +1270,8 @@ function important(option) {
|
|
|
1270
1270
|
const wrapWithIs = (selector) => {
|
|
1271
1271
|
if (selector.startsWith(":is(") && selector.endsWith(")"))
|
|
1272
1272
|
return selector;
|
|
1273
|
+
if (selector.includes("::"))
|
|
1274
|
+
return selector.replace(/(.*)(::.*)/, ":is($1)$2");
|
|
1273
1275
|
return `:is(${selector})`;
|
|
1274
1276
|
};
|
|
1275
1277
|
return [
|
package/dist/index.d.cts
CHANGED
|
@@ -18,7 +18,9 @@ interface PresetWindOptions extends PresetMiniOptions {
|
|
|
18
18
|
*
|
|
19
19
|
* This can be really useful when using UnoCSS with existing CSS that has high specificity selectors.
|
|
20
20
|
*
|
|
21
|
-
* You can also set `important` to a selector like `#app` instead, which will generate `#app .m-1 { ... }`
|
|
21
|
+
* You can also set `important` to a selector like `#app` instead, which will generate `#app :is(.m-1) { ... }`
|
|
22
|
+
*
|
|
23
|
+
* Also check out the compatibility with [:is()](https://caniuse.com/?search=%3Ais())
|
|
22
24
|
*
|
|
23
25
|
* @default false
|
|
24
26
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -18,7 +18,9 @@ interface PresetWindOptions extends PresetMiniOptions {
|
|
|
18
18
|
*
|
|
19
19
|
* This can be really useful when using UnoCSS with existing CSS that has high specificity selectors.
|
|
20
20
|
*
|
|
21
|
-
* You can also set `important` to a selector like `#app` instead, which will generate `#app .m-1 { ... }`
|
|
21
|
+
* You can also set `important` to a selector like `#app` instead, which will generate `#app :is(.m-1) { ... }`
|
|
22
|
+
*
|
|
23
|
+
* Also check out the compatibility with [:is()](https://caniuse.com/?search=%3Ais())
|
|
22
24
|
*
|
|
23
25
|
* @default false
|
|
24
26
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,9 @@ interface PresetWindOptions extends PresetMiniOptions {
|
|
|
18
18
|
*
|
|
19
19
|
* This can be really useful when using UnoCSS with existing CSS that has high specificity selectors.
|
|
20
20
|
*
|
|
21
|
-
* You can also set `important` to a selector like `#app` instead, which will generate `#app .m-1 { ... }`
|
|
21
|
+
* You can also set `important` to a selector like `#app` instead, which will generate `#app :is(.m-1) { ... }`
|
|
22
|
+
*
|
|
23
|
+
* Also check out the compatibility with [:is()](https://caniuse.com/?search=%3Ais())
|
|
22
24
|
*
|
|
23
25
|
* @default false
|
|
24
26
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1251,6 +1251,8 @@ function important(option) {
|
|
|
1251
1251
|
const wrapWithIs = (selector) => {
|
|
1252
1252
|
if (selector.startsWith(":is(") && selector.endsWith(")"))
|
|
1253
1253
|
return selector;
|
|
1254
|
+
if (selector.includes("::"))
|
|
1255
|
+
return selector.replace(/(.*)(::.*)/, ":is($1)$2");
|
|
1254
1256
|
return `:is(${selector})`;
|
|
1255
1257
|
};
|
|
1256
1258
|
return [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.5",
|
|
4
4
|
"description": "Tailwind / Windi CSS compact preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.58.
|
|
39
|
-
"@unocss/preset-mini": "0.58.
|
|
40
|
-
"@unocss/rule-utils": "0.58.
|
|
38
|
+
"@unocss/core": "0.58.5",
|
|
39
|
+
"@unocss/preset-mini": "0.58.5",
|
|
40
|
+
"@unocss/rule-utils": "0.58.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|