@unocss/preset-mini 66.7.0 → 66.7.2-beta.1
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/variants.mjs +3 -1
- package/package.json +4 -4
package/dist/variants.mjs
CHANGED
|
@@ -595,7 +595,9 @@ const variantSupports = {
|
|
|
595
595
|
let supports = h.bracket(match) ?? "";
|
|
596
596
|
if (supports === "") supports = ctx.theme.supports?.[match] ?? "";
|
|
597
597
|
if (supports) {
|
|
598
|
-
if (
|
|
598
|
+
if (/^[\w-]+$/.test(supports)) supports = `(${supports}: var(--un))`;
|
|
599
|
+
supports = supports.replace(/\b(and|or|not)\b/gi, " $1 ").replace(/\s+/g, " ").trim();
|
|
600
|
+
if (!(supports.startsWith("(") && supports.endsWith(")")) && !/^not\b/i.test(supports)) supports = `(${supports})`;
|
|
599
601
|
return {
|
|
600
602
|
matcher: rest,
|
|
601
603
|
handle: (input, next) => next({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.7.
|
|
4
|
+
"version": "66.7.2-beta.1",
|
|
5
5
|
"description": "The minimal preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@unocss/
|
|
46
|
-
"@unocss/rule-utils": "66.7.
|
|
47
|
-
"@unocss/
|
|
45
|
+
"@unocss/core": "66.7.2-beta.1",
|
|
46
|
+
"@unocss/rule-utils": "66.7.2-beta.1",
|
|
47
|
+
"@unocss/extractor-arbitrary-variants": "66.7.2-beta.1"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown",
|