@fangzhongya/icons 0.0.15 → 0.0.17

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 (38) hide show
  1. package/dist/{vue.cjs → async.cjs} +23 -23
  2. package/dist/{vue.d.cts → async.d.cts} +20 -20
  3. package/dist/{vue.d.ts → async.d.ts} +20 -20
  4. package/dist/{vue.js → async.js} +23 -23
  5. package/dist/chunk-BKYM5ZD6.js +909 -0
  6. package/dist/{chunk-Y2JUP3JH.js → chunk-CDXRU53D.js} +4 -123
  7. package/dist/chunk-HSJ3RNOH.js +124 -0
  8. package/dist/chunk-OSHAEKZL.cjs +124 -0
  9. package/dist/{chunk-6UMRW5ES.cjs → chunk-P3DB3N7Y.cjs} +5 -124
  10. package/dist/chunk-V6F7B2R3.cjs +909 -0
  11. package/dist/iconify.cjs +2 -4
  12. package/dist/iconify.d.cts +1 -100
  13. package/dist/iconify.d.ts +1 -100
  14. package/dist/iconify.js +3 -5
  15. package/dist/index.cjs +17 -17
  16. package/dist/index.js +19 -19
  17. package/dist/index.json +1 -1
  18. package/dist/json.cjs +7 -0
  19. package/dist/json.d.cts +110 -0
  20. package/dist/json.d.ts +110 -0
  21. package/dist/json.js +7 -0
  22. package/dist/vite/index.cjs +293 -988
  23. package/dist/vite/index.d.cts +20 -1
  24. package/dist/vite/index.d.ts +20 -1
  25. package/dist/vite/index.js +298 -993
  26. package/dist/vite/index2.cjs +31 -9
  27. package/dist/vite/index2.d.cts +8 -7
  28. package/dist/vite/index2.d.ts +8 -7
  29. package/dist/vite/index2.js +32 -10
  30. package/dist/vite/index3.cjs +130 -0
  31. package/dist/vite/index3.d.cts +12 -0
  32. package/dist/vite/index3.d.ts +12 -0
  33. package/dist/vite/index3.js +130 -0
  34. package/dist/vue/index.cjs +16 -16
  35. package/dist/vue/index.js +19 -19
  36. package/package.json +2 -2
  37. package/dist/{chunk-3YRVWHZK.js → chunk-54HT4HDM.js} +18 -18
  38. package/dist/{chunk-BWFROGEZ.cjs → chunk-KXZN54UH.cjs} +15 -15
@@ -1,29 +1,8 @@
1
- import {
2
- defaultPrefix
3
- } from "./chunk-MOHILOKE.js";
4
-
5
- // packages/iconify.ts
6
- import { defineComponent, h } from "vue";
7
-
8
- // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
9
- function firstUpper(str) {
10
- return str.slice(0, 1).toUpperCase() + str.slice(1);
11
- }
12
-
13
- // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
14
- function lineToLargeHump(name) {
15
- let arr = name.split("-");
16
- arr = arr.map((vs) => {
17
- return firstUpper(vs);
18
- });
19
- return arr.join("");
20
- }
21
-
22
1
  // packages/index.json
23
2
  var index_default = {
24
3
  prefix: "fang-icons",
25
4
  info: {},
26
- lastModified: 1767800830759,
5
+ lastModified: 1767836702567,
27
6
  icons: {
28
7
  bar: {
29
8
  body: '<path d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"></path>'
@@ -120,107 +99,9 @@ var index_default = {
120
99
  height: 1024
121
100
  };
122
101
 
123
- // packages/iconify.ts
124
- var icons = index_default;
125
- function createSVG(obj) {
126
- const viewBox = [
127
- obj.left || 0,
128
- obj.top || 0,
129
- obj.width || 24,
130
- obj.height || 24
131
- ].join(" ");
132
- const name = "icon-" + obj.name;
133
- return defineComponent({
134
- name: lineToLargeHump(name),
135
- props: {},
136
- render() {
137
- return h("svg", {
138
- xmlns: "http://www.w3.org/2000/svg",
139
- "aria-hidden": true,
140
- id: name,
141
- ctype: "hcom",
142
- role: "img",
143
- class: "iconify iconify-" + obj.prefix,
144
- viewBox,
145
- innerHTML: obj.body
146
- // 直接使用innerHTML
147
- });
148
- }
149
- });
150
- }
151
- var iconify = (app, ify, { prefix = defaultPrefix } = {}) => {
152
- const obj = {
153
- prefix: ify.prefix,
154
- width: ify.width,
155
- height: ify.height
156
- };
157
- const icons2 = ify.icons;
158
- for (const key of Object.keys(icons2)) {
159
- app.component(
160
- prefix + lineToLargeHump(key),
161
- createSVG({
162
- ...obj,
163
- name: key,
164
- ...icons2[key]
165
- })
166
- );
167
- }
168
- const aliases = ify.aliases;
169
- for (const key of Object.keys(aliases)) {
170
- const a = aliases[key];
171
- app.component(
172
- prefix + lineToLargeHump(key),
173
- createSVG({
174
- ...obj,
175
- name: key,
176
- ...icons2[a.parent]
177
- })
178
- );
179
- }
180
- };
181
- function iconifySVG(obj, name) {
182
- var _a;
183
- const icons2 = obj.icons;
184
- const aliases = obj.aliases;
185
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
186
- const n = icons2[name] ?? (ap ? icons2[ap] : void 0);
187
- if (n) {
188
- return createSVG({
189
- prefix: obj.prefix,
190
- name,
191
- width: obj.width,
192
- height: obj.height,
193
- ...n
194
- });
195
- }
196
- }
197
- function getIconifySVG(obj, name, str = "") {
198
- var _a;
199
- const icons2 = obj.icons;
200
- const aliases = obj.aliases;
201
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
202
- const n = icons2[name] ?? (ap ? icons2[ap] : void 0);
203
- if (n) {
204
- const v = {
205
- prefix: obj.prefix,
206
- name,
207
- width: obj.width,
208
- height: obj.height,
209
- ...n
210
- };
211
- const viewBox = [
212
- v.left || 0,
213
- v.top || 0,
214
- v.width || 1024,
215
- v.height || 1024
216
- ].join(" ");
217
- return `<svg ${str} xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}">${n.body}</svg>`;
218
- }
219
- }
102
+ // packages/json.ts
103
+ var json_default = index_default;
220
104
 
221
105
  export {
222
- icons,
223
- iconify,
224
- iconifySVG,
225
- getIconifySVG
106
+ json_default
226
107
  };
@@ -0,0 +1,124 @@
1
+ import {
2
+ defaultPrefix
3
+ } from "./chunk-MOHILOKE.js";
4
+
5
+ // packages/iconify.ts
6
+ import { defineComponent, h } from "vue";
7
+
8
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
9
+ function firstUpper(str) {
10
+ return str.slice(0, 1).toUpperCase() + str.slice(1);
11
+ }
12
+
13
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
14
+ function lineToLargeHump(name) {
15
+ let arr = name.split("-");
16
+ arr = arr.map((vs) => {
17
+ return firstUpper(vs);
18
+ });
19
+ return arr.join("");
20
+ }
21
+
22
+ // packages/iconify.ts
23
+ function createSVG(obj) {
24
+ const viewBox = [
25
+ obj.left || 0,
26
+ obj.top || 0,
27
+ obj.width || 24,
28
+ obj.height || 24
29
+ ].join(" ");
30
+ const name = "icon-" + obj.name;
31
+ return defineComponent({
32
+ name: lineToLargeHump(name),
33
+ props: {},
34
+ render() {
35
+ return h("svg", {
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ "aria-hidden": true,
38
+ id: name,
39
+ ctype: "hcom",
40
+ role: "img",
41
+ class: "iconify iconify-" + obj.prefix,
42
+ viewBox,
43
+ innerHTML: obj.body
44
+ // 直接使用innerHTML
45
+ });
46
+ }
47
+ });
48
+ }
49
+ var iconify = (app, ify, { prefix = defaultPrefix } = {}) => {
50
+ const obj = {
51
+ prefix: ify.prefix,
52
+ width: ify.width,
53
+ height: ify.height
54
+ };
55
+ const icons = ify.icons;
56
+ for (const key of Object.keys(icons)) {
57
+ app.component(
58
+ prefix + lineToLargeHump(key),
59
+ createSVG({
60
+ ...obj,
61
+ name: key,
62
+ ...icons[key]
63
+ })
64
+ );
65
+ }
66
+ const aliases = ify.aliases;
67
+ for (const key of Object.keys(aliases)) {
68
+ const a = aliases[key];
69
+ app.component(
70
+ prefix + lineToLargeHump(key),
71
+ createSVG({
72
+ ...obj,
73
+ name: key,
74
+ ...icons[a.parent]
75
+ })
76
+ );
77
+ }
78
+ };
79
+ function iconifySVG(obj, name) {
80
+ var _a;
81
+ const icons = obj.icons;
82
+ const aliases = obj.aliases;
83
+ const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
84
+ const n = icons[name] ?? (ap ? icons[ap] : void 0);
85
+ if (n) {
86
+ return createSVG({
87
+ prefix: obj.prefix,
88
+ name,
89
+ width: obj.width,
90
+ height: obj.height,
91
+ ...n
92
+ });
93
+ }
94
+ }
95
+ function getIconifySVG(obj, name, str = "") {
96
+ var _a;
97
+ const icons = obj.icons;
98
+ const aliases = obj.aliases;
99
+ const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
100
+ const n = icons[name] ?? (ap ? icons[ap] : void 0);
101
+ if (n) {
102
+ const v = {
103
+ prefix: obj.prefix,
104
+ name,
105
+ width: obj.width,
106
+ height: obj.height,
107
+ ...n
108
+ };
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>`;
116
+ }
117
+ }
118
+
119
+ export {
120
+ lineToLargeHump,
121
+ iconify,
122
+ iconifySVG,
123
+ getIconifySVG
124
+ };
@@ -0,0 +1,124 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+ var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
4
+
5
+ // packages/iconify.ts
6
+ var _vue = require('vue');
7
+
8
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
9
+ function firstUpper(str) {
10
+ return str.slice(0, 1).toUpperCase() + str.slice(1);
11
+ }
12
+
13
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
14
+ function lineToLargeHump(name) {
15
+ let arr = name.split("-");
16
+ arr = arr.map((vs) => {
17
+ return firstUpper(vs);
18
+ });
19
+ return arr.join("");
20
+ }
21
+
22
+ // packages/iconify.ts
23
+ function createSVG(obj) {
24
+ const viewBox = [
25
+ obj.left || 0,
26
+ obj.top || 0,
27
+ obj.width || 24,
28
+ obj.height || 24
29
+ ].join(" ");
30
+ const name = "icon-" + obj.name;
31
+ return _vue.defineComponent.call(void 0, {
32
+ name: lineToLargeHump(name),
33
+ props: {},
34
+ render() {
35
+ return _vue.h.call(void 0, "svg", {
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ "aria-hidden": true,
38
+ id: name,
39
+ ctype: "hcom",
40
+ role: "img",
41
+ class: "iconify iconify-" + obj.prefix,
42
+ viewBox,
43
+ innerHTML: obj.body
44
+ // 直接使用innerHTML
45
+ });
46
+ }
47
+ });
48
+ }
49
+ var iconify = (app, ify, { prefix = _chunkIIVF4KK5cjs.defaultPrefix } = {}) => {
50
+ const obj = {
51
+ prefix: ify.prefix,
52
+ width: ify.width,
53
+ height: ify.height
54
+ };
55
+ const icons = ify.icons;
56
+ for (const key of Object.keys(icons)) {
57
+ app.component(
58
+ prefix + lineToLargeHump(key),
59
+ createSVG({
60
+ ...obj,
61
+ name: key,
62
+ ...icons[key]
63
+ })
64
+ );
65
+ }
66
+ const aliases = ify.aliases;
67
+ for (const key of Object.keys(aliases)) {
68
+ const a = aliases[key];
69
+ app.component(
70
+ prefix + lineToLargeHump(key),
71
+ createSVG({
72
+ ...obj,
73
+ name: key,
74
+ ...icons[a.parent]
75
+ })
76
+ );
77
+ }
78
+ };
79
+ function iconifySVG(obj, name) {
80
+ var _a;
81
+ const icons = obj.icons;
82
+ const aliases = obj.aliases;
83
+ const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
84
+ const n = _nullishCoalesce(icons[name], () => ( (ap ? icons[ap] : void 0)));
85
+ if (n) {
86
+ return createSVG({
87
+ prefix: obj.prefix,
88
+ name,
89
+ width: obj.width,
90
+ height: obj.height,
91
+ ...n
92
+ });
93
+ }
94
+ }
95
+ function getIconifySVG(obj, name, str = "") {
96
+ var _a;
97
+ const icons = obj.icons;
98
+ const aliases = obj.aliases;
99
+ const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
100
+ const n = _nullishCoalesce(icons[name], () => ( (ap ? icons[ap] : void 0)));
101
+ if (n) {
102
+ const v = {
103
+ prefix: obj.prefix,
104
+ name,
105
+ width: obj.width,
106
+ height: obj.height,
107
+ ...n
108
+ };
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>`;
116
+ }
117
+ }
118
+
119
+
120
+
121
+
122
+
123
+
124
+ exports.lineToLargeHump = lineToLargeHump; exports.iconify = iconify; exports.iconifySVG = iconifySVG; exports.getIconifySVG = getIconifySVG;
@@ -1,29 +1,8 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
-
3
- var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
4
-
5
- // packages/iconify.ts
6
- var _vue = require('vue');
7
-
8
- // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
9
- function firstUpper(str) {
10
- return str.slice(0, 1).toUpperCase() + str.slice(1);
11
- }
12
-
13
- // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
14
- function lineToLargeHump(name) {
15
- let arr = name.split("-");
16
- arr = arr.map((vs) => {
17
- return firstUpper(vs);
18
- });
19
- return arr.join("");
20
- }
21
-
22
- // packages/index.json
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/index.json
23
2
  var index_default = {
24
3
  prefix: "fang-icons",
25
4
  info: {},
26
- lastModified: 1767800830759,
5
+ lastModified: 1767836702567,
27
6
  icons: {
28
7
  bar: {
29
8
  body: '<path d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"></path>'
@@ -120,107 +99,9 @@ var index_default = {
120
99
  height: 1024
121
100
  };
122
101
 
123
- // packages/iconify.ts
124
- var icons = index_default;
125
- function createSVG(obj) {
126
- const viewBox = [
127
- obj.left || 0,
128
- obj.top || 0,
129
- obj.width || 24,
130
- obj.height || 24
131
- ].join(" ");
132
- const name = "icon-" + obj.name;
133
- return _vue.defineComponent.call(void 0, {
134
- name: lineToLargeHump(name),
135
- props: {},
136
- render() {
137
- return _vue.h.call(void 0, "svg", {
138
- xmlns: "http://www.w3.org/2000/svg",
139
- "aria-hidden": true,
140
- id: name,
141
- ctype: "hcom",
142
- role: "img",
143
- class: "iconify iconify-" + obj.prefix,
144
- viewBox,
145
- innerHTML: obj.body
146
- // 直接使用innerHTML
147
- });
148
- }
149
- });
150
- }
151
- var iconify = (app, ify, { prefix = _chunkIIVF4KK5cjs.defaultPrefix } = {}) => {
152
- const obj = {
153
- prefix: ify.prefix,
154
- width: ify.width,
155
- height: ify.height
156
- };
157
- const icons2 = ify.icons;
158
- for (const key of Object.keys(icons2)) {
159
- app.component(
160
- prefix + lineToLargeHump(key),
161
- createSVG({
162
- ...obj,
163
- name: key,
164
- ...icons2[key]
165
- })
166
- );
167
- }
168
- const aliases = ify.aliases;
169
- for (const key of Object.keys(aliases)) {
170
- const a = aliases[key];
171
- app.component(
172
- prefix + lineToLargeHump(key),
173
- createSVG({
174
- ...obj,
175
- name: key,
176
- ...icons2[a.parent]
177
- })
178
- );
179
- }
180
- };
181
- function iconifySVG(obj, name) {
182
- var _a;
183
- const icons2 = obj.icons;
184
- const aliases = obj.aliases;
185
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
186
- const n = _nullishCoalesce(icons2[name], () => ( (ap ? icons2[ap] : void 0)));
187
- if (n) {
188
- return createSVG({
189
- prefix: obj.prefix,
190
- name,
191
- width: obj.width,
192
- height: obj.height,
193
- ...n
194
- });
195
- }
196
- }
197
- function getIconifySVG(obj, name, str = "") {
198
- var _a;
199
- const icons2 = obj.icons;
200
- const aliases = obj.aliases;
201
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
202
- const n = _nullishCoalesce(icons2[name], () => ( (ap ? icons2[ap] : void 0)));
203
- if (n) {
204
- const v = {
205
- prefix: obj.prefix,
206
- name,
207
- width: obj.width,
208
- height: obj.height,
209
- ...n
210
- };
211
- const viewBox = [
212
- v.left || 0,
213
- v.top || 0,
214
- v.width || 1024,
215
- v.height || 1024
216
- ].join(" ");
217
- return `<svg ${str} xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}">${n.body}</svg>`;
218
- }
219
- }
220
-
221
-
222
-
102
+ // packages/json.ts
103
+ var json_default = index_default;
223
104
 
224
105
 
225
106
 
226
- exports.icons = icons; exports.iconify = iconify; exports.iconifySVG = iconifySVG; exports.getIconifySVG = getIconifySVG;
107
+ exports.json_default = json_default;