@fangzhongya/icons 0.0.32 → 0.0.34
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/{chunk-WBRCD7JF.js → chunk-7RAANNNN.js} +35 -35
- package/dist/{chunk-6HCIF5VP.cjs → chunk-KKEXBY5B.cjs} +1 -1
- package/dist/{chunk-I2Y4XRQV.js → chunk-UX5LDTMC.js} +1 -1
- package/dist/{chunk-PUWPNLDY.cjs → chunk-VT6RFBVM.cjs} +35 -35
- package/dist/icon/index.cjs +4 -2
- package/dist/icon/index.d.cts +4 -2
- package/dist/icon/index.d.ts +4 -2
- package/dist/icon/index.js +5 -3
- package/dist/index.json +1 -1
- package/dist/json.cjs +2 -2
- package/dist/json.d.cts +1 -1
- package/dist/json.d.ts +1 -1
- package/dist/json.js +1 -1
- package/dist/picker/index.cjs +3 -3
- package/dist/picker/index.js +1 -1
- package/dist/vite/index.cjs +4 -4
- package/dist/vite/index.js +3 -3
- package/package.json +1 -1
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
} from "./chunk-MOHILOKE.js";
|
|
4
4
|
|
|
5
5
|
// packages/icon/index.ts
|
|
6
|
-
import { h, defineComponent, resolveComponent, computed
|
|
6
|
+
import { h, defineComponent, resolveComponent, computed } from "vue";
|
|
7
7
|
|
|
8
8
|
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
9
|
-
function humpToLine(
|
|
9
|
+
function humpToLine(name2) {
|
|
10
10
|
const reg3 = /(([A-Z])([^A-Z]*))/g;
|
|
11
11
|
let result;
|
|
12
12
|
const arr = [];
|
|
13
13
|
let i = 0;
|
|
14
|
-
while ((result = reg3.exec(
|
|
14
|
+
while ((result = reg3.exec(name2)) !== null) {
|
|
15
15
|
if (i == 0 && result.index != 0) {
|
|
16
|
-
arr.push(
|
|
16
|
+
arr.push(name2.substring(0, result.index));
|
|
17
17
|
}
|
|
18
18
|
i++;
|
|
19
19
|
arr.push(result[1].toLowerCase());
|
|
20
20
|
}
|
|
21
21
|
if (arr.length == 0) {
|
|
22
|
-
return
|
|
22
|
+
return name2;
|
|
23
23
|
} else {
|
|
24
24
|
let a = arr.join("-");
|
|
25
25
|
a = a.replace(/[-]{2,}/g, "-");
|
|
@@ -34,9 +34,9 @@ var reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
|
|
|
34
34
|
var prefix = humpToLine(defaultPrefix) + "-";
|
|
35
35
|
var className = "icon";
|
|
36
36
|
var directory = "/svg";
|
|
37
|
-
var isImg = (
|
|
38
|
-
if (
|
|
39
|
-
if (
|
|
37
|
+
var isImg = (name2) => {
|
|
38
|
+
if (name2) {
|
|
39
|
+
if (name2.startsWith("data:") || name2.startsWith("/") || name2.startsWith("./") || name2.startsWith("../") || name2.includes("://")) {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -65,7 +65,7 @@ var svgStyle = {
|
|
|
65
65
|
color: "var(--color)",
|
|
66
66
|
"font-size": "inherit"
|
|
67
67
|
};
|
|
68
|
-
var
|
|
68
|
+
var component = defineComponent({
|
|
69
69
|
name: "Icon",
|
|
70
70
|
props: {
|
|
71
71
|
/**
|
|
@@ -133,22 +133,22 @@ var icon_default = defineComponent({
|
|
|
133
133
|
if (props.type) {
|
|
134
134
|
return props.type;
|
|
135
135
|
} else {
|
|
136
|
-
const
|
|
137
|
-
if (typeof
|
|
136
|
+
const name2 = props.name || "";
|
|
137
|
+
if (typeof name2 == "object") {
|
|
138
138
|
return "vue";
|
|
139
|
-
} else if (reg.test(
|
|
139
|
+
} else if (reg.test(name2) || reg1.test(name2) || reg2.test(name2)) {
|
|
140
140
|
return "svg";
|
|
141
|
-
} else if (isImg(
|
|
141
|
+
} else if (isImg(name2)) {
|
|
142
142
|
return "img";
|
|
143
143
|
}
|
|
144
144
|
return props.default;
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
|
-
const setPrefix = (
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
147
|
+
const setPrefix = (name2) => {
|
|
148
|
+
if (name2.startsWith(props.prefix)) {
|
|
149
|
+
return name2;
|
|
150
150
|
} else {
|
|
151
|
-
return props.prefix +
|
|
151
|
+
return props.prefix + name2;
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
const transformStyle = computed(() => {
|
|
@@ -188,41 +188,35 @@ var icon_default = defineComponent({
|
|
|
188
188
|
return styleObj;
|
|
189
189
|
});
|
|
190
190
|
const outputName = computed(() => {
|
|
191
|
-
const
|
|
192
|
-
if (typeof
|
|
191
|
+
const name2 = props.name;
|
|
192
|
+
if (typeof name2 == "string") {
|
|
193
193
|
switch (outputType.value) {
|
|
194
194
|
case "svg":
|
|
195
|
-
const rs = reg.exec(
|
|
196
|
-
const rs1 = reg1.exec(
|
|
195
|
+
const rs = reg.exec(name2);
|
|
196
|
+
const rs1 = reg1.exec(name2) || reg2.exec(name2);
|
|
197
197
|
if (rs && rs.length > 0) {
|
|
198
198
|
return rs[1];
|
|
199
199
|
} else if (rs1 && rs1.length > 0) {
|
|
200
200
|
return rs1[0];
|
|
201
201
|
} else {
|
|
202
|
-
return
|
|
202
|
+
return name2;
|
|
203
203
|
}
|
|
204
204
|
case "css":
|
|
205
|
-
return setPrefix(
|
|
205
|
+
return setPrefix(name2);
|
|
206
206
|
case "id":
|
|
207
|
-
return setPrefix(
|
|
207
|
+
return setPrefix(name2);
|
|
208
208
|
case "font":
|
|
209
|
-
return setPrefix(
|
|
209
|
+
return setPrefix(name2);
|
|
210
210
|
default:
|
|
211
|
-
return
|
|
211
|
+
return name2;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
return
|
|
214
|
+
return name2;
|
|
215
215
|
});
|
|
216
216
|
const arr = computed(() => {
|
|
217
217
|
var _a, _b, _c, _d, _e;
|
|
218
|
-
if (slots.
|
|
219
|
-
return
|
|
220
|
-
Fragment,
|
|
221
|
-
slots.default({
|
|
222
|
-
class: [props.iconClass],
|
|
223
|
-
style: contStyle
|
|
224
|
-
})
|
|
225
|
-
);
|
|
218
|
+
if (Object.keys(slots).length > 0) {
|
|
219
|
+
return slots;
|
|
226
220
|
} else if (!outputName.value) {
|
|
227
221
|
return void 0;
|
|
228
222
|
} else if (outputType.value === "pub") {
|
|
@@ -317,7 +311,13 @@ var icon_default = defineComponent({
|
|
|
317
311
|
);
|
|
318
312
|
}
|
|
319
313
|
});
|
|
314
|
+
var name = "FangIcon";
|
|
315
|
+
var install = (app) => {
|
|
316
|
+
app.component(name, component);
|
|
317
|
+
};
|
|
318
|
+
var icon_default = component;
|
|
320
319
|
|
|
321
320
|
export {
|
|
321
|
+
install,
|
|
322
322
|
icon_default
|
|
323
323
|
};
|
|
@@ -6,20 +6,20 @@ var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
|
|
|
6
6
|
var _vue = require('vue');
|
|
7
7
|
|
|
8
8
|
// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
9
|
-
function humpToLine(
|
|
9
|
+
function humpToLine(name2) {
|
|
10
10
|
const reg3 = /(([A-Z])([^A-Z]*))/g;
|
|
11
11
|
let result;
|
|
12
12
|
const arr = [];
|
|
13
13
|
let i = 0;
|
|
14
|
-
while ((result = reg3.exec(
|
|
14
|
+
while ((result = reg3.exec(name2)) !== null) {
|
|
15
15
|
if (i == 0 && result.index != 0) {
|
|
16
|
-
arr.push(
|
|
16
|
+
arr.push(name2.substring(0, result.index));
|
|
17
17
|
}
|
|
18
18
|
i++;
|
|
19
19
|
arr.push(result[1].toLowerCase());
|
|
20
20
|
}
|
|
21
21
|
if (arr.length == 0) {
|
|
22
|
-
return
|
|
22
|
+
return name2;
|
|
23
23
|
} else {
|
|
24
24
|
let a = arr.join("-");
|
|
25
25
|
a = a.replace(/[-]{2,}/g, "-");
|
|
@@ -34,9 +34,9 @@ var reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
|
|
|
34
34
|
var prefix = humpToLine(_chunkIIVF4KK5cjs.defaultPrefix) + "-";
|
|
35
35
|
var className = "icon";
|
|
36
36
|
var directory = "/svg";
|
|
37
|
-
var isImg = (
|
|
38
|
-
if (
|
|
39
|
-
if (
|
|
37
|
+
var isImg = (name2) => {
|
|
38
|
+
if (name2) {
|
|
39
|
+
if (name2.startsWith("data:") || name2.startsWith("/") || name2.startsWith("./") || name2.startsWith("../") || name2.includes("://")) {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -65,7 +65,7 @@ var svgStyle = {
|
|
|
65
65
|
color: "var(--color)",
|
|
66
66
|
"font-size": "inherit"
|
|
67
67
|
};
|
|
68
|
-
var
|
|
68
|
+
var component = _vue.defineComponent.call(void 0, {
|
|
69
69
|
name: "Icon",
|
|
70
70
|
props: {
|
|
71
71
|
/**
|
|
@@ -133,22 +133,22 @@ var icon_default = _vue.defineComponent.call(void 0, {
|
|
|
133
133
|
if (props.type) {
|
|
134
134
|
return props.type;
|
|
135
135
|
} else {
|
|
136
|
-
const
|
|
137
|
-
if (typeof
|
|
136
|
+
const name2 = props.name || "";
|
|
137
|
+
if (typeof name2 == "object") {
|
|
138
138
|
return "vue";
|
|
139
|
-
} else if (reg.test(
|
|
139
|
+
} else if (reg.test(name2) || reg1.test(name2) || reg2.test(name2)) {
|
|
140
140
|
return "svg";
|
|
141
|
-
} else if (isImg(
|
|
141
|
+
} else if (isImg(name2)) {
|
|
142
142
|
return "img";
|
|
143
143
|
}
|
|
144
144
|
return props.default;
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
|
-
const setPrefix = (
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
147
|
+
const setPrefix = (name2) => {
|
|
148
|
+
if (name2.startsWith(props.prefix)) {
|
|
149
|
+
return name2;
|
|
150
150
|
} else {
|
|
151
|
-
return props.prefix +
|
|
151
|
+
return props.prefix + name2;
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
const transformStyle = _vue.computed.call(void 0, () => {
|
|
@@ -188,41 +188,35 @@ var icon_default = _vue.defineComponent.call(void 0, {
|
|
|
188
188
|
return styleObj;
|
|
189
189
|
});
|
|
190
190
|
const outputName = _vue.computed.call(void 0, () => {
|
|
191
|
-
const
|
|
192
|
-
if (typeof
|
|
191
|
+
const name2 = props.name;
|
|
192
|
+
if (typeof name2 == "string") {
|
|
193
193
|
switch (outputType.value) {
|
|
194
194
|
case "svg":
|
|
195
|
-
const rs = reg.exec(
|
|
196
|
-
const rs1 = reg1.exec(
|
|
195
|
+
const rs = reg.exec(name2);
|
|
196
|
+
const rs1 = reg1.exec(name2) || reg2.exec(name2);
|
|
197
197
|
if (rs && rs.length > 0) {
|
|
198
198
|
return rs[1];
|
|
199
199
|
} else if (rs1 && rs1.length > 0) {
|
|
200
200
|
return rs1[0];
|
|
201
201
|
} else {
|
|
202
|
-
return
|
|
202
|
+
return name2;
|
|
203
203
|
}
|
|
204
204
|
case "css":
|
|
205
|
-
return setPrefix(
|
|
205
|
+
return setPrefix(name2);
|
|
206
206
|
case "id":
|
|
207
|
-
return setPrefix(
|
|
207
|
+
return setPrefix(name2);
|
|
208
208
|
case "font":
|
|
209
|
-
return setPrefix(
|
|
209
|
+
return setPrefix(name2);
|
|
210
210
|
default:
|
|
211
|
-
return
|
|
211
|
+
return name2;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
return
|
|
214
|
+
return name2;
|
|
215
215
|
});
|
|
216
216
|
const arr = _vue.computed.call(void 0, () => {
|
|
217
217
|
var _a, _b, _c, _d, _e;
|
|
218
|
-
if (slots.
|
|
219
|
-
return
|
|
220
|
-
_vue.Fragment,
|
|
221
|
-
slots.default({
|
|
222
|
-
class: [props.iconClass],
|
|
223
|
-
style: contStyle
|
|
224
|
-
})
|
|
225
|
-
);
|
|
218
|
+
if (Object.keys(slots).length > 0) {
|
|
219
|
+
return slots;
|
|
226
220
|
} else if (!outputName.value) {
|
|
227
221
|
return void 0;
|
|
228
222
|
} else if (outputType.value === "pub") {
|
|
@@ -317,7 +311,13 @@ var icon_default = _vue.defineComponent.call(void 0, {
|
|
|
317
311
|
);
|
|
318
312
|
}
|
|
319
313
|
});
|
|
314
|
+
var name = "FangIcon";
|
|
315
|
+
var install = (app) => {
|
|
316
|
+
app.component(name, component);
|
|
317
|
+
};
|
|
318
|
+
var icon_default = component;
|
|
319
|
+
|
|
320
320
|
|
|
321
321
|
|
|
322
322
|
|
|
323
|
-
exports.icon_default = icon_default;
|
|
323
|
+
exports.install = install; exports.icon_default = icon_default;
|
package/dist/icon/index.cjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
var _chunkVT6RFBVMcjs = require('../chunk-VT6RFBVM.cjs');
|
|
4
5
|
require('../chunk-IIVF4KK5.cjs');
|
|
5
6
|
require('../chunk-3376ZTRC.cjs');
|
|
6
7
|
require('../chunk-75ZPJI57.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
exports.default = _chunkVT6RFBVMcjs.icon_default; exports.install = _chunkVT6RFBVMcjs.install;
|
package/dist/icon/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
2
3
|
|
|
3
4
|
type Flip = 'horizontal' | 'vertical' | 'both' | '';
|
|
4
5
|
type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
|
|
5
|
-
declare const
|
|
6
|
+
declare const component: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
7
|
/**
|
|
7
8
|
* @props { String, Object } name= ( )
|
|
8
9
|
* 图标名称
|
|
@@ -131,5 +132,6 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
131
132
|
directory: string;
|
|
132
133
|
prefix: string;
|
|
133
134
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
declare const install: (app: App) => void;
|
|
134
136
|
|
|
135
|
-
export { type Flip, type IconType,
|
|
137
|
+
export { type Flip, type IconType, component as default, install };
|
package/dist/icon/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
2
3
|
|
|
3
4
|
type Flip = 'horizontal' | 'vertical' | 'both' | '';
|
|
4
5
|
type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
|
|
5
|
-
declare const
|
|
6
|
+
declare const component: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
7
|
/**
|
|
7
8
|
* @props { String, Object } name= ( )
|
|
8
9
|
* 图标名称
|
|
@@ -131,5 +132,6 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
131
132
|
directory: string;
|
|
132
133
|
prefix: string;
|
|
133
134
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
declare const install: (app: App) => void;
|
|
134
136
|
|
|
135
|
-
export { type Flip, type IconType,
|
|
137
|
+
export { type Flip, type IconType, component as default, install };
|
package/dist/icon/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
icon_default
|
|
3
|
-
|
|
2
|
+
icon_default,
|
|
3
|
+
install
|
|
4
|
+
} from "../chunk-7RAANNNN.js";
|
|
4
5
|
import "../chunk-MOHILOKE.js";
|
|
5
6
|
import "../chunk-BYXBJQAS.js";
|
|
6
7
|
import "../chunk-MLKGABMK.js";
|
|
7
8
|
export {
|
|
8
|
-
icon_default as default
|
|
9
|
+
icon_default as default,
|
|
10
|
+
install
|
|
9
11
|
};
|
package/dist/index.json
CHANGED
package/dist/json.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKKEXBY5Bcjs = require('./chunk-KKEXBY5B.cjs');
|
|
4
4
|
require('./chunk-75ZPJI57.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = _chunkKKEXBY5Bcjs.json_default;
|
package/dist/json.d.cts
CHANGED
package/dist/json.d.ts
CHANGED
package/dist/json.js
CHANGED
package/dist/picker/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVT6RFBVMcjs = require('../chunk-VT6RFBVM.cjs');
|
|
4
4
|
require('../chunk-IIVF4KK5.cjs');
|
|
5
5
|
require('../chunk-3376ZTRC.cjs');
|
|
6
6
|
|
|
@@ -84,7 +84,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
84
84
|
return props.icon;
|
|
85
85
|
}
|
|
86
86
|
} else {
|
|
87
|
-
return
|
|
87
|
+
return _chunkVT6RFBVMcjs.icon_default;
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
const dialogVue = _vue.computed.call(void 0, () => {
|
|
@@ -299,7 +299,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
|
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
301
|
[
|
|
302
|
-
_vue.h.call(void 0,
|
|
302
|
+
_vue.h.call(void 0, _chunkVT6RFBVMcjs.icon_default, {
|
|
303
303
|
style: {
|
|
304
304
|
margin: "5px",
|
|
305
305
|
marginBottom: 0,
|
package/dist/picker/index.js
CHANGED
package/dist/vite/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkYJVFENGGcjs = require('../chunk-YJVFENGG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKKEXBY5Bcjs = require('../chunk-KKEXBY5B.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkBXEIRESQcjs = require('../chunk-BXEIRESQ.cjs');
|
|
@@ -1222,9 +1222,9 @@ function findComponents(code, name) {
|
|
|
1222
1222
|
return components;
|
|
1223
1223
|
}
|
|
1224
1224
|
function getText(iconName, match) {
|
|
1225
|
-
const svg = _chunkYJVFENGGcjs.getIconifySVG.call(void 0,
|
|
1225
|
+
const svg = _chunkYJVFENGGcjs.getIconifySVG.call(void 0, _chunkKKEXBY5Bcjs.json_default, iconName);
|
|
1226
1226
|
const s = match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "");
|
|
1227
|
-
const text = `${s}
|
|
1227
|
+
const text = `${s}${svg}</${match.componentName}>`;
|
|
1228
1228
|
return { text, imptext: "" };
|
|
1229
1229
|
}
|
|
1230
1230
|
function getImportName(iconName) {
|
|
@@ -1248,7 +1248,7 @@ function replaceComponent(match, type, dynamic, customReplacement) {
|
|
|
1248
1248
|
if (customReplacement) {
|
|
1249
1249
|
return customReplacement(iconName, attributes);
|
|
1250
1250
|
}
|
|
1251
|
-
let svgContent =
|
|
1251
|
+
let svgContent = _chunkKKEXBY5Bcjs.json_default.icons[iconName];
|
|
1252
1252
|
if (!svgContent) {
|
|
1253
1253
|
return { text: match.fullMatch, imptext: "" };
|
|
1254
1254
|
}
|
package/dist/vite/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../chunk-YGLV5TML.js";
|
|
4
4
|
import {
|
|
5
5
|
json_default
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UX5LDTMC.js";
|
|
7
7
|
import {
|
|
8
8
|
lineToLargeHump
|
|
9
9
|
} from "../chunk-J4G2OFZ4.js";
|
|
@@ -1222,9 +1222,9 @@ function findComponents(code, name) {
|
|
|
1222
1222
|
return components;
|
|
1223
1223
|
}
|
|
1224
1224
|
function getText(iconName, match) {
|
|
1225
|
-
const svg = getIconifySVG(json_default, iconName
|
|
1225
|
+
const svg = getIconifySVG(json_default, iconName);
|
|
1226
1226
|
const s = match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "");
|
|
1227
|
-
const text = `${s}
|
|
1227
|
+
const text = `${s}${svg}</${match.componentName}>`;
|
|
1228
1228
|
return { text, imptext: "" };
|
|
1229
1229
|
}
|
|
1230
1230
|
function getImportName(iconName) {
|