@fangzhongya/icons 0.0.22 → 0.0.24

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.
Files changed (40) hide show
  1. package/dist/async.cjs +18 -18
  2. package/dist/async.d.cts +17 -17
  3. package/dist/async.d.ts +17 -17
  4. package/dist/async.js +18 -18
  5. package/dist/chunk-3376ZTRC.cjs +1 -0
  6. package/dist/{chunk-TOMRI4OW.js → chunk-5JGXNE36.js} +80 -35
  7. package/dist/chunk-BYXBJQAS.js +0 -0
  8. package/dist/{chunk-E432JW5M.js → chunk-KI2ZVBGS.js} +1 -1
  9. package/dist/{chunk-S7ZK22ZV.cjs → chunk-MPD6UWMU.cjs} +1 -1
  10. package/dist/{chunk-TZA4B6RT.cjs → chunk-Q4QUAF3W.cjs} +81 -36
  11. package/dist/{chunk-HSJ3RNOH.js → chunk-SDYAFYDS.js} +12 -11
  12. package/dist/{chunk-OSHAEKZL.cjs → chunk-TKPAHR5G.cjs} +13 -12
  13. package/dist/icon/index.cjs +4 -2
  14. package/dist/icon/index.d.cts +11 -2
  15. package/dist/icon/index.d.ts +11 -2
  16. package/dist/icon/index.js +3 -1
  17. package/dist/iconify.cjs +5 -2
  18. package/dist/iconify.d.cts +12 -1
  19. package/dist/iconify.d.ts +12 -1
  20. package/dist/iconify.js +4 -1
  21. package/dist/index.cjs +13 -11
  22. package/dist/index.d.cts +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +13 -11
  25. package/dist/index.json +1 -1
  26. package/dist/json.cjs +2 -2
  27. package/dist/json.d.cts +1 -1
  28. package/dist/json.d.ts +1 -1
  29. package/dist/json.js +1 -1
  30. package/dist/picker/index.cjs +9 -18
  31. package/dist/picker/index.d.cts +0 -19
  32. package/dist/picker/index.d.ts +0 -19
  33. package/dist/picker/index.js +6 -15
  34. package/dist/vite/index.cjs +17 -7
  35. package/dist/vite/index.js +14 -4
  36. package/dist/vue/index.cjs +8 -8
  37. package/dist/vue/index.js +9 -9
  38. package/package.json +1 -1
  39. package/dist/{chunk-SRJ74PQ7.js → chunk-3YRVWHZK.js} +8 -8
  40. package/dist/{chunk-5ATJRRFS.cjs → chunk-BWFROGEZ.cjs} +7 -7
@@ -1,18 +1,39 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/icon/index.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
4
+
5
+ // packages/icon/index.ts
2
6
  var _vue = require('vue');
7
+
8
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
9
+ function humpToLine(name) {
10
+ const reg3 = /(([A-Z])([^A-Z]*))/g;
11
+ let result;
12
+ const arr = [];
13
+ let i = 0;
14
+ while ((result = reg3.exec(name)) !== null) {
15
+ if (i == 0 && result.index != 0) {
16
+ arr.push(name.substring(0, result.index));
17
+ }
18
+ i++;
19
+ arr.push(result[1].toLowerCase());
20
+ }
21
+ if (arr.length == 0) {
22
+ return name;
23
+ } else {
24
+ let a = arr.join("-");
25
+ a = a.replace(/[-]{2,}/g, "-");
26
+ return a;
27
+ }
28
+ }
29
+
30
+ // packages/icon/index.ts
3
31
  var reg = /<svg([^>]*)>((.|\n|\r|\t)*)<\/svg>/g;
4
32
  var reg1 = /<path([^>]*)>((.|\n|\r|\t)*)<\/path>/g;
5
33
  var reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
6
- var prefix = "icon-";
34
+ var prefix = humpToLine(_chunkIIVF4KK5cjs.defaultPrefix) + "-";
7
35
  var className = "icon";
8
36
  var directory = "/svg";
9
- var setPrefix = (name) => {
10
- if (name.startsWith(prefix)) {
11
- return name;
12
- } else {
13
- return prefix + name;
14
- }
15
- };
16
37
  var isImg = (name) => {
17
38
  if (name) {
18
39
  if (name.startsWith("data:") || name.startsWith("/") || name.startsWith("./") || name.startsWith("../") || name.includes("://")) {
@@ -31,6 +52,19 @@ var contStyle = {
31
52
  width: "inherit",
32
53
  height: "inherit"
33
54
  };
55
+ var svgStyle = {
56
+ "--color": "inherit",
57
+ height: "1em",
58
+ width: "1em",
59
+ "line-height": "1em",
60
+ display: "inline-flex",
61
+ "justify-content": "center",
62
+ "align-items": "center",
63
+ position: "relative",
64
+ fill: "currentColor",
65
+ color: "var(--color)",
66
+ "font-size": "inherit"
67
+ };
34
68
  var icon_default = _vue.defineComponent.call(void 0, {
35
69
  name: "Icon",
36
70
  props: {
@@ -94,6 +128,10 @@ var icon_default = _vue.defineComponent.call(void 0, {
94
128
  directory: {
95
129
  type: String,
96
130
  default: directory
131
+ },
132
+ prefix: {
133
+ type: String,
134
+ default: prefix
97
135
  }
98
136
  },
99
137
  setup(props, { slots }) {
@@ -103,15 +141,22 @@ var icon_default = _vue.defineComponent.call(void 0, {
103
141
  } else {
104
142
  const name = props.name || "";
105
143
  if (typeof name == "object") {
106
- return "com";
144
+ return "vue";
107
145
  } else if (reg.test(name) || reg1.test(name) || reg2.test(name)) {
108
- return "str";
146
+ return "svg";
109
147
  } else if (isImg(name)) {
110
148
  return "img";
111
149
  }
112
150
  return props.default;
113
151
  }
114
152
  });
153
+ const setPrefix = (name) => {
154
+ if (name.startsWith(props.prefix)) {
155
+ return name;
156
+ } else {
157
+ return props.prefix + name;
158
+ }
159
+ };
115
160
  const transformStyle = _vue.computed.call(void 0, () => {
116
161
  const style = [];
117
162
  if (props.flip !== "") {
@@ -131,17 +176,7 @@ var icon_default = _vue.defineComponent.call(void 0, {
131
176
  style.push(`rotate(${props.rotate % 360}deg)`);
132
177
  }
133
178
  const styleObj = {
134
- "--color": "inherit",
135
- height: "1em",
136
- width: "1em",
137
- "line-height": "1em",
138
- display: "inline-flex",
139
- "justify-content": "center",
140
- "align-items": "center",
141
- position: "relative",
142
- fill: "currentColor",
143
- color: "var(--color)",
144
- "font-size": "inherit"
179
+ ...svgStyle
145
180
  };
146
181
  styleObj.transform = style.join(" ");
147
182
  if (props.color) {
@@ -162,7 +197,7 @@ var icon_default = _vue.defineComponent.call(void 0, {
162
197
  const name = props.name;
163
198
  if (typeof name == "string") {
164
199
  switch (outputType.value) {
165
- case "str":
200
+ case "svg":
166
201
  const rs = reg.exec(name);
167
202
  const rs1 = reg1.exec(name) || reg2.exec(name);
168
203
  if (rs && rs.length > 0) {
@@ -185,7 +220,7 @@ var icon_default = _vue.defineComponent.call(void 0, {
185
220
  return name;
186
221
  });
187
222
  const arr = _vue.computed.call(void 0, () => {
188
- var _a, _b, _c;
223
+ var _a, _b, _c, _d, _e;
189
224
  if (slots.default) {
190
225
  return _vue.h.call(void 0,
191
226
  _vue.Fragment,
@@ -215,7 +250,7 @@ var icon_default = _vue.defineComponent.call(void 0, {
215
250
  alt: "svg",
216
251
  src: outputName.value
217
252
  });
218
- } else if (outputType.value === "str") {
253
+ } else if (outputType.value === "svg") {
219
254
  let v;
220
255
  let viewBox;
221
256
  if (typeof outputName.value === "string") {
@@ -223,7 +258,7 @@ var icon_default = _vue.defineComponent.call(void 0, {
223
258
  viewBox = "0 0 1024 1024";
224
259
  } else {
225
260
  v = (_a = outputName.value) == null ? void 0 : _a.body;
226
- viewBox = `0 0 ${((_b = outputName.value) == null ? void 0 : _b.width) || 1024} ${((_c = outputName.value) == null ? void 0 : _c.height) || 1024}`;
261
+ viewBox = `${((_b = outputName.value) == null ? void 0 : _b.left) || 0} ${((_c = outputName.value) == null ? void 0 : _c.top) || 0} ${((_d = outputName.value) == null ? void 0 : _d.width) || 1024} ${((_e = outputName.value) == null ? void 0 : _e.height) || 1024}`;
227
262
  }
228
263
  return _vue.h.call(void 0, "svg", {
229
264
  class: [props.iconClass],
@@ -244,20 +279,30 @@ var icon_default = _vue.defineComponent.call(void 0, {
244
279
  "xlink:href": "#" + outputName.value
245
280
  })
246
281
  );
282
+ } else if (outputType.value === "vue") {
283
+ if (typeof outputName.value == "string") {
284
+ return _vue.h.call(void 0, _vue.resolveComponent.call(void 0, outputName.value), {
285
+ class: [props.iconClass],
286
+ style: contStyle
287
+ });
288
+ } else {
289
+ return _vue.h.call(void 0, outputName.value, {
290
+ class: [props.iconClass],
291
+ style: contStyle
292
+ });
293
+ }
247
294
  } else {
248
295
  if (typeof outputName.value == "string") {
249
- const v = _vue.resolveComponent.call(void 0, outputName.value);
250
- if (v) {
251
- return _vue.h.call(void 0, _vue.resolveComponent.call(void 0, outputName.value), {
252
- class: [props.iconClass],
296
+ const m = setPrefix(outputName.value);
297
+ const v = _vue.resolveComponent.call(void 0, m);
298
+ if (typeof v == "string") {
299
+ return _vue.h.call(void 0, "i", {
300
+ class: [props.iconClass, m],
253
301
  style: contStyle
254
302
  });
255
303
  } else {
256
- return _vue.h.call(void 0, "i", {
257
- class: [
258
- props.iconClass,
259
- setPrefix(outputName.value)
260
- ],
304
+ return _vue.h.call(void 0, v, {
305
+ class: [props.iconClass],
261
306
  style: contStyle
262
307
  });
263
308
  }
@@ -270,7 +315,7 @@ var icon_default = _vue.defineComponent.call(void 0, {
270
315
  }
271
316
  });
272
317
  return () => _vue.h.call(void 0,
273
- "i",
318
+ "span",
274
319
  {
275
320
  class: [className],
276
321
  style: transformStyle.value
@@ -20,20 +20,25 @@ function lineToLargeHump(name) {
20
20
  }
21
21
 
22
22
  // packages/iconify.ts
23
- function createSVG(obj) {
23
+ var xmlns = "http://www.w3.org/2000/svg";
24
+ function getViewBox(obj) {
24
25
  const viewBox = [
25
26
  obj.left || 0,
26
27
  obj.top || 0,
27
- obj.width || 24,
28
- obj.height || 24
28
+ obj.width || 1024,
29
+ obj.height || 1024
29
30
  ].join(" ");
31
+ return viewBox;
32
+ }
33
+ function createSVG(obj) {
34
+ const viewBox = getViewBox(obj);
30
35
  const name = "icon-" + obj.name;
31
36
  return defineComponent({
32
37
  name: lineToLargeHump(name),
33
38
  props: {},
34
39
  render() {
35
40
  return h("svg", {
36
- xmlns: "http://www.w3.org/2000/svg",
41
+ xmlns,
37
42
  "aria-hidden": true,
38
43
  id: name,
39
44
  ctype: "hcom",
@@ -106,18 +111,14 @@ function getIconifySVG(obj, name, str = "") {
106
111
  height: obj.height,
107
112
  ...n
108
113
  };
109
- const viewBox = [
110
- v.left || 0,
111
- v.top || 0,
112
- v.width || 1024,
113
- v.height || 1024
114
- ].join(" ");
115
- return `<svg ${str} xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}">${n.body}</svg>`;
114
+ const viewBox = getViewBox(v);
115
+ return `<svg ${str} xmlns="${xmlns}" viewBox="${viewBox}">${n.body}</svg>`;
116
116
  }
117
117
  }
118
118
 
119
119
  export {
120
120
  lineToLargeHump,
121
+ getViewBox,
121
122
  iconify,
122
123
  iconifySVG,
123
124
  getIconifySVG
@@ -20,20 +20,25 @@ function lineToLargeHump(name) {
20
20
  }
21
21
 
22
22
  // packages/iconify.ts
23
- function createSVG(obj) {
23
+ var xmlns = "http://www.w3.org/2000/svg";
24
+ function getViewBox(obj) {
24
25
  const viewBox = [
25
26
  obj.left || 0,
26
27
  obj.top || 0,
27
- obj.width || 24,
28
- obj.height || 24
28
+ obj.width || 1024,
29
+ obj.height || 1024
29
30
  ].join(" ");
31
+ return viewBox;
32
+ }
33
+ function createSVG(obj) {
34
+ const viewBox = getViewBox(obj);
30
35
  const name = "icon-" + obj.name;
31
36
  return _vue.defineComponent.call(void 0, {
32
37
  name: lineToLargeHump(name),
33
38
  props: {},
34
39
  render() {
35
40
  return _vue.h.call(void 0, "svg", {
36
- xmlns: "http://www.w3.org/2000/svg",
41
+ xmlns,
37
42
  "aria-hidden": true,
38
43
  id: name,
39
44
  ctype: "hcom",
@@ -106,13 +111,8 @@ function getIconifySVG(obj, name, str = "") {
106
111
  height: obj.height,
107
112
  ...n
108
113
  };
109
- const viewBox = [
110
- v.left || 0,
111
- v.top || 0,
112
- v.width || 1024,
113
- v.height || 1024
114
- ].join(" ");
115
- return `<svg ${str} xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}">${n.body}</svg>`;
114
+ const viewBox = getViewBox(v);
115
+ return `<svg ${str} xmlns="${xmlns}" viewBox="${viewBox}">${n.body}</svg>`;
116
116
  }
117
117
  }
118
118
 
@@ -121,4 +121,5 @@ function getIconifySVG(obj, name, str = "") {
121
121
 
122
122
 
123
123
 
124
- exports.lineToLargeHump = lineToLargeHump; exports.iconify = iconify; exports.iconifySVG = iconifySVG; exports.getIconifySVG = getIconifySVG;
124
+
125
+ exports.lineToLargeHump = lineToLargeHump; exports.getViewBox = getViewBox; exports.iconify = iconify; exports.iconifySVG = iconifySVG; exports.getIconifySVG = getIconifySVG;
@@ -1,7 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTZA4B6RTcjs = require('../chunk-TZA4B6RT.cjs');
3
+ var _chunkQ4QUAF3Wcjs = require('../chunk-Q4QUAF3W.cjs');
4
+ require('../chunk-3376ZTRC.cjs');
5
+ require('../chunk-IIVF4KK5.cjs');
4
6
  require('../chunk-75ZPJI57.cjs');
5
7
 
6
8
 
7
- exports.default = _chunkTZA4B6RTcjs.icon_default;
9
+ exports.default = _chunkQ4QUAF3Wcjs.icon_default;
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
2
 
3
3
  type Flip = 'horizontal' | 'vertical' | 'both' | '';
4
- type IconType = 'css' | 'id' | 'img' | 'font' | 'str' | 'com' | 'pub';
4
+ type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
5
5
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
6
6
  /**
7
7
  * @props { String, Object } name= ( )
@@ -64,6 +64,10 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
64
64
  type: StringConstructor;
65
65
  default: string;
66
66
  };
67
+ prefix: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
67
71
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
68
72
  [key: string]: any;
69
73
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -128,12 +132,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
128
132
  type: StringConstructor;
129
133
  default: string;
130
134
  };
135
+ prefix: {
136
+ type: StringConstructor;
137
+ default: string;
138
+ };
131
139
  }>> & Readonly<{}>, {
132
140
  name: string | Record<string, any>;
133
141
  runtime: boolean;
134
142
  flip: Flip;
135
143
  rotate: number;
136
144
  directory: string;
145
+ prefix: string;
137
146
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
138
147
 
139
- export { type IconType, _default as default };
148
+ export { type Flip, type IconType, _default as default };
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
2
 
3
3
  type Flip = 'horizontal' | 'vertical' | 'both' | '';
4
- type IconType = 'css' | 'id' | 'img' | 'font' | 'str' | 'com' | 'pub';
4
+ type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
5
5
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
6
6
  /**
7
7
  * @props { String, Object } name= ( )
@@ -64,6 +64,10 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
64
64
  type: StringConstructor;
65
65
  default: string;
66
66
  };
67
+ prefix: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
67
71
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
68
72
  [key: string]: any;
69
73
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -128,12 +132,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
128
132
  type: StringConstructor;
129
133
  default: string;
130
134
  };
135
+ prefix: {
136
+ type: StringConstructor;
137
+ default: string;
138
+ };
131
139
  }>> & Readonly<{}>, {
132
140
  name: string | Record<string, any>;
133
141
  runtime: boolean;
134
142
  flip: Flip;
135
143
  rotate: number;
136
144
  directory: string;
145
+ prefix: string;
137
146
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
138
147
 
139
- export { type IconType, _default as default };
148
+ export { type Flip, type IconType, _default as default };
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  icon_default
3
- } from "../chunk-TOMRI4OW.js";
3
+ } from "../chunk-5JGXNE36.js";
4
+ import "../chunk-BYXBJQAS.js";
5
+ import "../chunk-MOHILOKE.js";
4
6
  import "../chunk-MLKGABMK.js";
5
7
  export {
6
8
  icon_default as default
package/dist/iconify.cjs CHANGED
@@ -2,11 +2,14 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkOSHAEKZLcjs = require('./chunk-OSHAEKZL.cjs');
5
+
6
+ var _chunkTKPAHR5Gcjs = require('./chunk-TKPAHR5G.cjs');
7
+ require('./chunk-3376ZTRC.cjs');
6
8
  require('./chunk-IIVF4KK5.cjs');
7
9
  require('./chunk-75ZPJI57.cjs');
8
10
 
9
11
 
10
12
 
11
13
 
12
- exports.getIconifySVG = _chunkOSHAEKZLcjs.getIconifySVG; exports.iconify = _chunkOSHAEKZLcjs.iconify; exports.iconifySVG = _chunkOSHAEKZLcjs.iconifySVG;
14
+
15
+ exports.getIconifySVG = _chunkTKPAHR5Gcjs.getIconifySVG; exports.getViewBox = _chunkTKPAHR5Gcjs.getViewBox; exports.iconify = _chunkTKPAHR5Gcjs.iconify; exports.iconifySVG = _chunkTKPAHR5Gcjs.iconifySVG;
@@ -2,6 +2,17 @@ import * as vue from 'vue';
2
2
  import { App } from 'vue';
3
3
  import { InstallOptions } from './config.cjs';
4
4
 
5
+ type IconsValueObj = {
6
+ prefix: string;
7
+ name?: string;
8
+ body: string;
9
+ type?: string;
10
+ width?: number;
11
+ height?: number;
12
+ left?: number;
13
+ top?: number;
14
+ };
15
+ declare function getViewBox(obj: IconsValueObj): string;
5
16
  /**
6
17
  * 将图标配置转换为Vue组件并注册到应用中
7
18
  * @param app - Vue应用实例,用于注册组件
@@ -39,4 +50,4 @@ type Iconify = {
39
50
  declare function iconifySVG(obj: Iconify, name: string): vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
40
51
  declare function getIconifySVG(obj: Iconify, name: string, str?: string): string;
41
52
 
42
- export { getIconifySVG, iconify, iconifySVG };
53
+ export { getIconifySVG, getViewBox, iconify, iconifySVG };
package/dist/iconify.d.ts CHANGED
@@ -2,6 +2,17 @@ import * as vue from 'vue';
2
2
  import { App } from 'vue';
3
3
  import { InstallOptions } from './config.js';
4
4
 
5
+ type IconsValueObj = {
6
+ prefix: string;
7
+ name?: string;
8
+ body: string;
9
+ type?: string;
10
+ width?: number;
11
+ height?: number;
12
+ left?: number;
13
+ top?: number;
14
+ };
15
+ declare function getViewBox(obj: IconsValueObj): string;
5
16
  /**
6
17
  * 将图标配置转换为Vue组件并注册到应用中
7
18
  * @param app - Vue应用实例,用于注册组件
@@ -39,4 +50,4 @@ type Iconify = {
39
50
  declare function iconifySVG(obj: Iconify, name: string): vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
40
51
  declare function getIconifySVG(obj: Iconify, name: string, str?: string): string;
41
52
 
42
- export { getIconifySVG, iconify, iconifySVG };
53
+ export { getIconifySVG, getViewBox, iconify, iconifySVG };
package/dist/iconify.js CHANGED
@@ -1,12 +1,15 @@
1
1
  import {
2
2
  getIconifySVG,
3
+ getViewBox,
3
4
  iconify,
4
5
  iconifySVG
5
- } from "./chunk-HSJ3RNOH.js";
6
+ } from "./chunk-SDYAFYDS.js";
7
+ import "./chunk-BYXBJQAS.js";
6
8
  import "./chunk-MOHILOKE.js";
7
9
  import "./chunk-MLKGABMK.js";
8
10
  export {
9
11
  getIconifySVG,
12
+ getViewBox,
10
13
  iconify,
11
14
  iconifySVG
12
15
  };
package/dist/index.cjs CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5ATJRRFScjs = require('./chunk-5ATJRRFS.cjs');
3
+ var _chunkBWFROGEZcjs = require('./chunk-BWFROGEZ.cjs');
4
+
5
+
6
+ var _chunkWOAJW7OBcjs = require('./chunk-WOAJW7OB.cjs');
4
7
 
5
8
 
6
9
  var _chunkY2W7MENXcjs = require('./chunk-Y2W7MENX.cjs');
@@ -21,6 +24,9 @@ var _chunk53VWOQDNcjs = require('./chunk-53VWOQDN.cjs');
21
24
  var _chunkESPY25SVcjs = require('./chunk-ESPY25SV.cjs');
22
25
 
23
26
 
27
+ var _chunkIPHYXYU4cjs = require('./chunk-IPHYXYU4.cjs');
28
+
29
+
24
30
  var _chunk32F77IBUcjs = require('./chunk-32F77IBU.cjs');
25
31
 
26
32
 
@@ -39,7 +45,7 @@ var _chunkIBTK77R3cjs = require('./chunk-IBTK77R3.cjs');
39
45
  var _chunkI3A3AEAAcjs = require('./chunk-I3A3AEAA.cjs');
40
46
 
41
47
 
42
- var _chunkWOAJW7OBcjs = require('./chunk-WOAJW7OB.cjs');
48
+ var _chunkKDGKC2ADcjs = require('./chunk-KDGKC2AD.cjs');
43
49
 
44
50
 
45
51
  var _chunkVDTZORF6cjs = require('./chunk-VDTZORF6.cjs');
@@ -63,9 +69,6 @@ var _chunkL7KCN6DVcjs = require('./chunk-L7KCN6DV.cjs');
63
69
  var _chunkDOKVIYQPcjs = require('./chunk-DOKVIYQP.cjs');
64
70
 
65
71
 
66
- var _chunkIPHYXYU4cjs = require('./chunk-IPHYXYU4.cjs');
67
-
68
-
69
72
  var _chunkH4PA2G3Ncjs = require('./chunk-H4PA2G3N.cjs');
70
73
 
71
74
 
@@ -87,16 +90,15 @@ var _chunk76TLDMR4cjs = require('./chunk-76TLDMR4.cjs');
87
90
  var _chunk2TQQMTHZcjs = require('./chunk-2TQQMTHZ.cjs');
88
91
 
89
92
 
90
- var _chunkKDGKC2ADcjs = require('./chunk-KDGKC2AD.cjs');
91
-
92
-
93
93
  var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
94
94
  require('./chunk-75ZPJI57.cjs');
95
95
 
96
96
  // packages/index.ts
97
- var index_default = (app, { prefix = _chunkIIVF4KK5cjs.defaultPrefix } = {}) => {
98
- for (const [key, component] of Object.entries(_chunk5ATJRRFScjs.vue_exports)) {
99
- app.component(prefix + key, component);
97
+ var index_default = (app, options = {}) => {
98
+ var _a;
99
+ const { prefix = _chunkIIVF4KK5cjs.defaultPrefix } = options || {};
100
+ for (const [key, component] of Object.entries(_chunkBWFROGEZcjs.vue_exports)) {
101
+ (_a = app.component) == null ? void 0 : _a.call(app, prefix + key, component);
100
102
  }
101
103
  };
102
104
 
package/dist/index.d.cts CHANGED
@@ -30,6 +30,6 @@ export { default as Star } from './vue/star.cjs';
30
30
  export { default as Up } from './vue/up.cjs';
31
31
  export { default as Views } from './vue/views.cjs';
32
32
 
33
- declare const _default: (app: App, { prefix }?: InstallOptions) => void;
33
+ declare const _default: (app: App, options?: InstallOptions) => void;
34
34
 
35
35
  export { _default as default };
package/dist/index.d.ts CHANGED
@@ -30,6 +30,6 @@ export { default as Star } from './vue/star.js';
30
30
  export { default as Up } from './vue/up.js';
31
31
  export { default as Views } from './vue/views.js';
32
32
 
33
- declare const _default: (app: App, { prefix }?: InstallOptions) => void;
33
+ declare const _default: (app: App, options?: InstallOptions) => void;
34
34
 
35
35
  export { _default as default };
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  vue_exports
3
- } from "./chunk-SRJ74PQ7.js";
3
+ } from "./chunk-3YRVWHZK.js";
4
+ import {
5
+ plus_default
6
+ } from "./chunk-7IBXEWY5.js";
4
7
  import {
5
8
  retreat_default
6
9
  } from "./chunk-WLDTS6EO.js";
@@ -19,6 +22,9 @@ import {
19
22
  import {
20
23
  views_default
21
24
  } from "./chunk-3AMDUJDV.js";
25
+ import {
26
+ edit_default
27
+ } from "./chunk-BEQYH4ZH.js";
22
28
  import {
23
29
  enter_default
24
30
  } from "./chunk-YSDDIRK3.js";
@@ -38,8 +44,8 @@ import {
38
44
  play_default
39
45
  } from "./chunk-T7E6HY2F.js";
40
46
  import {
41
- plus_default
42
- } from "./chunk-7IBXEWY5.js";
47
+ catalogue_default
48
+ } from "./chunk-BMEJLYYZ.js";
43
49
  import {
44
50
  clear_default
45
51
  } from "./chunk-Z7LHYEQW.js";
@@ -61,9 +67,6 @@ import {
61
67
  import {
62
68
  download_default
63
69
  } from "./chunk-5PXZNWE4.js";
64
- import {
65
- edit_default
66
- } from "./chunk-BEQYH4ZH.js";
67
70
  import {
68
71
  bar_default
69
72
  } from "./chunk-NEHQ24EP.js";
@@ -85,18 +88,17 @@ import {
85
88
  import {
86
89
  cascader_field_default
87
90
  } from "./chunk-VQ54VGY3.js";
88
- import {
89
- catalogue_default
90
- } from "./chunk-BMEJLYYZ.js";
91
91
  import {
92
92
  defaultPrefix
93
93
  } from "./chunk-MOHILOKE.js";
94
94
  import "./chunk-MLKGABMK.js";
95
95
 
96
96
  // packages/index.ts
97
- var index_default = (app, { prefix = defaultPrefix } = {}) => {
97
+ var index_default = (app, options = {}) => {
98
+ var _a;
99
+ const { prefix = defaultPrefix } = options || {};
98
100
  for (const [key, component] of Object.entries(vue_exports)) {
99
- app.component(prefix + key, component);
101
+ (_a = app.component) == null ? void 0 : _a.call(app, prefix + key, component);
100
102
  }
101
103
  };
102
104
  export {
package/dist/index.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-icons",
3
3
  "info": {},
4
- "lastModified": 1767840097809,
4
+ "lastModified": 1767873985044,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"
package/dist/json.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkS7ZK22ZVcjs = require('./chunk-S7ZK22ZV.cjs');
3
+ var _chunkMPD6UWMUcjs = require('./chunk-MPD6UWMU.cjs');
4
4
  require('./chunk-75ZPJI57.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkS7ZK22ZVcjs.json_default;
7
+ exports.default = _chunkMPD6UWMUcjs.json_default;
package/dist/json.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  var prefix = "fang-icons";
2
2
  var info = {
3
3
  };
4
- var lastModified = 1767840097809;
4
+ var lastModified = 1767873985044;
5
5
  var icons = {
6
6
  bar: {
7
7
  body: "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"