@fangzhongya/icons 0.0.15 → 0.0.16
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/{vue.cjs → async.cjs} +19 -19
- package/dist/{vue.d.cts → async.d.cts} +18 -18
- package/dist/{vue.d.ts → async.d.ts} +18 -18
- package/dist/{vue.js → async.js} +19 -19
- package/dist/{chunk-6UMRW5ES.cjs → chunk-5NH4G6UJ.cjs} +5 -124
- package/dist/chunk-BKYM5ZD6.js +909 -0
- package/dist/chunk-HSJ3RNOH.js +124 -0
- package/dist/chunk-OSHAEKZL.cjs +124 -0
- package/dist/{chunk-Y2JUP3JH.js → chunk-RDKCKIKJ.js} +4 -123
- package/dist/chunk-V6F7B2R3.cjs +909 -0
- package/dist/iconify.cjs +2 -4
- package/dist/iconify.d.cts +1 -100
- package/dist/iconify.d.ts +1 -100
- package/dist/iconify.js +3 -5
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/dist/index.json +1 -1
- package/dist/json.cjs +7 -0
- package/dist/json.d.cts +110 -0
- package/dist/json.d.ts +110 -0
- package/dist/json.js +7 -0
- package/dist/vite/index.cjs +208 -906
- package/dist/vite/index.d.cts +18 -1
- package/dist/vite/index.d.ts +18 -1
- package/dist/vite/index.js +213 -911
- package/dist/vite/index2.cjs +31 -9
- package/dist/vite/index2.d.cts +8 -7
- package/dist/vite/index2.d.ts +8 -7
- package/dist/vite/index2.js +32 -10
- package/dist/vite/index3.cjs +130 -0
- package/dist/vite/index3.d.cts +12 -0
- package/dist/vite/index3.d.ts +12 -0
- package/dist/vite/index3.js +130 -0
- package/dist/vue/index.cjs +8 -8
- package/dist/vue/index.js +9 -9
- package/package.json +2 -2
- package/dist/{chunk-BWFROGEZ.cjs → chunk-5ATJRRFS.cjs} +7 -7
- package/dist/{chunk-3YRVWHZK.js → chunk-SRJ74PQ7.js} +8 -8
package/dist/vite/index.d.cts
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
+
type IconReplacement = (iconName: string, attributes: ComponentAttributes) => {
|
|
4
|
+
text: string;
|
|
5
|
+
imptext: string;
|
|
6
|
+
};
|
|
3
7
|
interface PluginOptions {
|
|
4
8
|
name?: string;
|
|
5
9
|
type?: string;
|
|
10
|
+
customReplacement?: IconReplacement;
|
|
6
11
|
directory?: string;
|
|
7
12
|
mobile?: boolean;
|
|
8
13
|
dynamic?: boolean;
|
|
9
14
|
}
|
|
15
|
+
interface ComponentAttributes {
|
|
16
|
+
name: string;
|
|
17
|
+
[key: string]: string | boolean | number;
|
|
18
|
+
}
|
|
19
|
+
interface ComponentMatchInfo {
|
|
20
|
+
componentName: string;
|
|
21
|
+
fullMatch: string;
|
|
22
|
+
start: number;
|
|
23
|
+
end: number;
|
|
24
|
+
attributes: ComponentAttributes;
|
|
25
|
+
isSelfClosing: boolean;
|
|
26
|
+
}
|
|
10
27
|
declare function simpleFangIcon(options?: PluginOptions): Plugin;
|
|
11
28
|
|
|
12
|
-
export { simpleFangIcon };
|
|
29
|
+
export { type ComponentAttributes, type ComponentMatchInfo, type IconReplacement, type PluginOptions, simpleFangIcon };
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
+
type IconReplacement = (iconName: string, attributes: ComponentAttributes) => {
|
|
4
|
+
text: string;
|
|
5
|
+
imptext: string;
|
|
6
|
+
};
|
|
3
7
|
interface PluginOptions {
|
|
4
8
|
name?: string;
|
|
5
9
|
type?: string;
|
|
10
|
+
customReplacement?: IconReplacement;
|
|
6
11
|
directory?: string;
|
|
7
12
|
mobile?: boolean;
|
|
8
13
|
dynamic?: boolean;
|
|
9
14
|
}
|
|
15
|
+
interface ComponentAttributes {
|
|
16
|
+
name: string;
|
|
17
|
+
[key: string]: string | boolean | number;
|
|
18
|
+
}
|
|
19
|
+
interface ComponentMatchInfo {
|
|
20
|
+
componentName: string;
|
|
21
|
+
fullMatch: string;
|
|
22
|
+
start: number;
|
|
23
|
+
end: number;
|
|
24
|
+
attributes: ComponentAttributes;
|
|
25
|
+
isSelfClosing: boolean;
|
|
26
|
+
}
|
|
10
27
|
declare function simpleFangIcon(options?: PluginOptions): Plugin;
|
|
11
28
|
|
|
12
|
-
export { simpleFangIcon };
|
|
29
|
+
export { type ComponentAttributes, type ComponentMatchInfo, type IconReplacement, type PluginOptions, simpleFangIcon };
|