@unocss/rule-utils 65.4.0 → 65.4.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/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -163,7 +163,7 @@ function parseHexColor(str) {
|
|
|
163
163
|
return {
|
|
164
164
|
type: "rgb",
|
|
165
165
|
components: digits.slice(0, 3),
|
|
166
|
-
alpha: body.length === 3 ?
|
|
166
|
+
alpha: body.length === 3 ? undefined : Math.round(digits[3] / 255 * 100) / 100
|
|
167
167
|
};
|
|
168
168
|
case 6:
|
|
169
169
|
case 8:
|
|
@@ -171,7 +171,7 @@ function parseHexColor(str) {
|
|
|
171
171
|
return {
|
|
172
172
|
type: "rgb",
|
|
173
173
|
components: body.length === 6 ? [value >> 16 & 255, value >> 8 & 255, value & 255] : [value >> 24 & 255, value >> 16 & 255, value >> 8 & 255],
|
|
174
|
-
alpha: body.length === 6 ?
|
|
174
|
+
alpha: body.length === 6 ? undefined : Math.round((value & 255) / 255 * 100) / 100
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/rule-utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "65.4.
|
|
4
|
+
"version": "65.4.3",
|
|
5
5
|
"description": "Utilities for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/antfu",
|
|
9
|
-
"homepage": "https://
|
|
9
|
+
"homepage": "https://unocss.dev",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/unocss/unocss",
|
|
13
|
-
"directory": "packages/rule-utils"
|
|
13
|
+
"directory": "packages-presets/rule-utils"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/unocss/unocss/issues"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"magic-string": "^0.30.17",
|
|
37
|
-
"@unocss/core": "^65.4.
|
|
37
|
+
"@unocss/core": "^65.4.3"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "unbuild",
|