@pikacss/plugin-icons 0.0.28 → 0.0.29
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 +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -105,7 +105,13 @@ function createIconsPlugin(lookupIconLoader) {
|
|
|
105
105
|
const url = `url("data:image/svg+xml;utf8,${utils.encodeSvgForCss(parsed.svg)}")`;
|
|
106
106
|
const varName = `--${engine.config.prefix}svg-icon-${body.replace(globalColonRE, "-")}`;
|
|
107
107
|
if (engine.variables.store.has(varName) === false) {
|
|
108
|
-
engine.variables.add(
|
|
108
|
+
engine.variables.add({
|
|
109
|
+
[varName]: {
|
|
110
|
+
value: url,
|
|
111
|
+
autocomplete: { asValueOf: "-", asProperty: false },
|
|
112
|
+
pruneUnused: true
|
|
113
|
+
}
|
|
114
|
+
});
|
|
109
115
|
}
|
|
110
116
|
if (_mode === "auto")
|
|
111
117
|
_mode = parsed.svg.includes("currentColor") ? "mask" : "bg";
|
package/dist/index.mjs
CHANGED
|
@@ -103,7 +103,13 @@ function createIconsPlugin(lookupIconLoader) {
|
|
|
103
103
|
const url = `url("data:image/svg+xml;utf8,${encodeSvgForCss(parsed.svg)}")`;
|
|
104
104
|
const varName = `--${engine.config.prefix}svg-icon-${body.replace(globalColonRE, "-")}`;
|
|
105
105
|
if (engine.variables.store.has(varName) === false) {
|
|
106
|
-
engine.variables.add(
|
|
106
|
+
engine.variables.add({
|
|
107
|
+
[varName]: {
|
|
108
|
+
value: url,
|
|
109
|
+
autocomplete: { asValueOf: "-", asProperty: false },
|
|
110
|
+
pruneUnused: true
|
|
111
|
+
}
|
|
112
|
+
});
|
|
107
113
|
}
|
|
108
114
|
if (_mode === "auto")
|
|
109
115
|
_mode = parsed.svg.includes("currentColor") ? "mask" : "bg";
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.29",
|
|
8
8
|
"author": "DevilTea <ch19980814@gmail.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@iconify/utils": "^2.3.0",
|
|
39
39
|
"@unocss/preset-icons": "^65.4.3",
|
|
40
40
|
"ofetch": "^1.4.1",
|
|
41
|
-
"@pikacss/core": "0.0.
|
|
41
|
+
"@pikacss/core": "0.0.29"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "unbuild",
|