@unocss/transformer-directives 0.65.0 → 0.65.2
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 +7 -1
- package/package.json +7 -6
package/dist/index.mjs
CHANGED
|
@@ -101,6 +101,7 @@ async function transformIconString(uno, icon, color) {
|
|
|
101
101
|
collections: customCollections,
|
|
102
102
|
customizations = {},
|
|
103
103
|
autoInstall = false,
|
|
104
|
+
iconifyCollectionsNames,
|
|
104
105
|
collectionsNodeResolvePath,
|
|
105
106
|
unit
|
|
106
107
|
} = presetIcons.options;
|
|
@@ -131,7 +132,12 @@ async function transformIconString(uno, icon, color) {
|
|
|
131
132
|
for (const p of toArray(prefix)) {
|
|
132
133
|
if (icon.startsWith(p)) {
|
|
133
134
|
icon = icon.slice(p.length);
|
|
134
|
-
const parsed = await api.parseIconWithLoader(
|
|
135
|
+
const parsed = await api.parseIconWithLoader(
|
|
136
|
+
icon,
|
|
137
|
+
loader,
|
|
138
|
+
loaderOptions,
|
|
139
|
+
iconifyCollectionsNames
|
|
140
|
+
);
|
|
135
141
|
if (parsed)
|
|
136
142
|
return `url("data:image/svg+xml;utf8,${color ? api.encodeSvgForCss(parsed.svg).replace(/currentcolor/gi, color) : api.encodeSvgForCss(parsed.svg)}")`;
|
|
137
143
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-directives",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.65.
|
|
4
|
+
"version": "0.65.2",
|
|
5
5
|
"description": "UnoCSS transformer for `@apply` directive",
|
|
6
6
|
"author": "hannoeru <me@hanlee.co>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,15 +32,16 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"css-tree": "^3.0
|
|
36
|
-
"@unocss/core": "0.65.
|
|
37
|
-
"@unocss/rule-utils": "0.65.
|
|
35
|
+
"css-tree": "^3.1.0",
|
|
36
|
+
"@unocss/core": "0.65.2",
|
|
37
|
+
"@unocss/rule-utils": "0.65.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"magic-string": "^0.30.
|
|
40
|
+
"magic-string": "^0.30.17"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|
|
44
|
-
"stub": "unbuild --stub"
|
|
44
|
+
"stub": "unbuild --stub",
|
|
45
|
+
"test:attw": "attw --pack --config-path ../../.attw-esm-only.json"
|
|
45
46
|
}
|
|
46
47
|
}
|