@unocss/preset-mini 0.55.3 → 0.55.4
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/rules.cjs +6 -1
- package/dist/rules.mjs +6 -1
- package/package.json +3 -3
package/dist/rules.cjs
CHANGED
|
@@ -21,7 +21,12 @@ const verticalAlignAlias = {
|
|
|
21
21
|
...Object.fromEntries(colors.globalKeywords.map((x) => [x, x]))
|
|
22
22
|
};
|
|
23
23
|
const verticalAligns = [
|
|
24
|
-
[/^(?:vertical|align|v)-([-\w]
|
|
24
|
+
[/^(?:vertical|align|v)-([-\w]+%?)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] ?? v }), {
|
|
25
|
+
autocomplete: [
|
|
26
|
+
`(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})`,
|
|
27
|
+
"(vertical|align|v)-<percentage>"
|
|
28
|
+
]
|
|
29
|
+
}]
|
|
25
30
|
];
|
|
26
31
|
const textAligns = ["center", "left", "right", "justify", "start", "end"].map((v) => [`text-${v}`, { "text-align": v }]);
|
|
27
32
|
|
package/dist/rules.mjs
CHANGED
|
@@ -20,7 +20,12 @@ const verticalAlignAlias = {
|
|
|
20
20
|
...Object.fromEntries(globalKeywords.map((x) => [x, x]))
|
|
21
21
|
};
|
|
22
22
|
const verticalAligns = [
|
|
23
|
-
[/^(?:vertical|align|v)-([-\w]
|
|
23
|
+
[/^(?:vertical|align|v)-([-\w]+%?)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] ?? v }), {
|
|
24
|
+
autocomplete: [
|
|
25
|
+
`(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})`,
|
|
26
|
+
"(vertical|align|v)-<percentage>"
|
|
27
|
+
]
|
|
28
|
+
}]
|
|
24
29
|
];
|
|
25
30
|
const textAligns = ["center", "left", "right", "justify", "start", "end"].map((v) => [`text-${v}`, { "text-align": v }]);
|
|
26
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.4",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.55.
|
|
65
|
-
"@unocss/extractor-arbitrary-variants": "0.55.
|
|
64
|
+
"@unocss/core": "0.55.4",
|
|
65
|
+
"@unocss/extractor-arbitrary-variants": "0.55.4"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "unbuild",
|