@fangzhongya/icons 0.0.50 → 0.0.52

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 (350) hide show
  1. package/dist/async.cjs +56 -105
  2. package/dist/async.js +50 -104
  3. package/dist/components.cjs +42 -60
  4. package/dist/components.js +42 -61
  5. package/dist/config.cjs +5 -7
  6. package/dist/config.js +4 -7
  7. package/dist/humpToLine-Czhat99x.js +25 -0
  8. package/dist/humpToLine-gLzuzWOm.cjs +30 -0
  9. package/dist/icon/index.cjs +229 -13
  10. package/dist/icon/index.js +222 -12
  11. package/dist/iconify.cjs +102 -16
  12. package/dist/iconify.js +97 -15
  13. package/dist/index.cjs +100 -194
  14. package/dist/index.js +52 -194
  15. package/dist/index.json +1 -1
  16. package/dist/json-BpszFHNs.js +62 -0
  17. package/dist/json-C96CKb6M.cjs +67 -0
  18. package/dist/json.cjs +2 -7
  19. package/dist/json.js +2 -7
  20. package/dist/lineToLargeHump-BajF216g.cjs +30 -0
  21. package/dist/lineToLargeHump-CHL4-tNE.js +25 -0
  22. package/dist/name.cjs +68 -15
  23. package/dist/name.js +65 -15
  24. package/dist/picker/dialog.cjs +42 -7
  25. package/dist/picker/dialog.js +42 -7
  26. package/dist/picker/index.cjs +200 -324
  27. package/dist/picker/index.js +194 -325
  28. package/dist/util.cjs +13 -7
  29. package/dist/util.js +12 -7
  30. package/dist/vite/index.cjs +848 -1143
  31. package/dist/vite/index.js +848 -1144
  32. package/dist/vue/bar.cjs +16 -7
  33. package/dist/vue/bar.js +16 -7
  34. package/dist/vue/below.cjs +16 -7
  35. package/dist/vue/below.js +16 -7
  36. package/dist/vue/bicycle.cjs +16 -7
  37. package/dist/vue/bicycle.js +16 -7
  38. package/dist/vue/bottom-left.cjs +16 -7
  39. package/dist/vue/bottom-left.js +16 -7
  40. package/dist/vue/bottom-right.cjs +16 -7
  41. package/dist/vue/bottom-right.js +16 -7
  42. package/dist/vue/bottom.cjs +16 -7
  43. package/dist/vue/bottom.js +16 -7
  44. package/dist/vue/cascader-field.cjs +16 -7
  45. package/dist/vue/cascader-field.js +16 -7
  46. package/dist/vue/catalogue.cjs +16 -7
  47. package/dist/vue/catalogue.js +16 -7
  48. package/dist/vue/clear.cjs +16 -7
  49. package/dist/vue/clear.js +16 -7
  50. package/dist/vue/close.cjs +16 -7
  51. package/dist/vue/close.js +16 -7
  52. package/dist/vue/crl.cjs +16 -7
  53. package/dist/vue/crl.js +16 -7
  54. package/dist/vue/delete.cjs +16 -7
  55. package/dist/vue/delete.js +16 -7
  56. package/dist/vue/document.cjs +16 -7
  57. package/dist/vue/document.js +16 -7
  58. package/dist/vue/down.cjs +16 -7
  59. package/dist/vue/down.js +16 -7
  60. package/dist/vue/download.cjs +16 -7
  61. package/dist/vue/download.js +16 -7
  62. package/dist/vue/edit.cjs +16 -7
  63. package/dist/vue/edit.js +16 -7
  64. package/dist/vue/enter.cjs +16 -7
  65. package/dist/vue/enter.js +16 -7
  66. package/dist/vue/folder.cjs +16 -7
  67. package/dist/vue/folder.js +16 -7
  68. package/dist/vue/frame.cjs +16 -7
  69. package/dist/vue/frame.js +16 -7
  70. package/dist/vue/grid.cjs +16 -7
  71. package/dist/vue/grid.js +16 -7
  72. package/dist/vue/hidd.cjs +16 -7
  73. package/dist/vue/hidd.js +16 -7
  74. package/dist/vue/home.cjs +16 -7
  75. package/dist/vue/home.js +16 -7
  76. package/dist/vue/index.cjs +90 -180
  77. package/dist/vue/index.js +46 -180
  78. package/dist/vue/left.cjs +16 -7
  79. package/dist/vue/left.js +16 -7
  80. package/dist/vue/lock.cjs +16 -7
  81. package/dist/vue/lock.js +16 -7
  82. package/dist/vue/login.cjs +16 -7
  83. package/dist/vue/login.js +16 -7
  84. package/dist/vue/logink.cjs +16 -7
  85. package/dist/vue/logink.js +16 -7
  86. package/dist/vue/more.cjs +16 -7
  87. package/dist/vue/more.js +16 -7
  88. package/dist/vue/mr.cjs +16 -7
  89. package/dist/vue/mr.js +16 -7
  90. package/dist/vue/mute.cjs +16 -7
  91. package/dist/vue/mute.js +16 -7
  92. package/dist/vue/node-tree.cjs +16 -7
  93. package/dist/vue/node-tree.js +16 -7
  94. package/dist/vue/page.cjs +16 -7
  95. package/dist/vue/page.js +16 -7
  96. package/dist/vue/pause.cjs +16 -7
  97. package/dist/vue/pause.js +16 -7
  98. package/dist/vue/play.cjs +16 -7
  99. package/dist/vue/play.js +16 -7
  100. package/dist/vue/plus.cjs +16 -7
  101. package/dist/vue/plus.js +16 -7
  102. package/dist/vue/qx.cjs +16 -7
  103. package/dist/vue/qx.js +16 -7
  104. package/dist/vue/retreat.cjs +16 -7
  105. package/dist/vue/retreat.js +16 -7
  106. package/dist/vue/right.cjs +16 -7
  107. package/dist/vue/right.js +16 -7
  108. package/dist/vue/set.cjs +16 -7
  109. package/dist/vue/set.js +16 -7
  110. package/dist/vue/sound.cjs +16 -7
  111. package/dist/vue/sound.js +16 -7
  112. package/dist/vue/star.cjs +16 -7
  113. package/dist/vue/star.js +16 -7
  114. package/dist/vue/sub-form.cjs +16 -7
  115. package/dist/vue/sub-form.js +16 -7
  116. package/dist/vue/tab.cjs +16 -7
  117. package/dist/vue/tab.js +16 -7
  118. package/dist/vue/up.cjs +16 -7
  119. package/dist/vue/up.js +16 -7
  120. package/dist/vue/views.cjs +16 -7
  121. package/dist/vue/views.js +16 -7
  122. package/dist/vue-CR8K2hMZ.js +105 -0
  123. package/dist/vue-XcWpjtqA.cjs +110 -0
  124. package/package.json +32 -30
  125. package/dist/async.d.cts +0 -142
  126. package/dist/async.d.ts +0 -142
  127. package/dist/chunk-2D4VSAJ2.js +0 -13
  128. package/dist/chunk-2IK6ZEWL.js +0 -13
  129. package/dist/chunk-2TQQMTHZ.cjs +0 -13
  130. package/dist/chunk-32F77IBU.cjs +0 -13
  131. package/dist/chunk-3376ZTRC.cjs +0 -1
  132. package/dist/chunk-37O763HE.cjs +0 -152
  133. package/dist/chunk-37UZO7UL.cjs +0 -31
  134. package/dist/chunk-3AMDUJDV.js +0 -13
  135. package/dist/chunk-3AMS6SAI.js +0 -13
  136. package/dist/chunk-3TRFZFYF.js +0 -13
  137. package/dist/chunk-3YCLWMP7.cjs +0 -13
  138. package/dist/chunk-53VWOQDN.cjs +0 -13
  139. package/dist/chunk-5MQTT7S7.cjs +0 -188
  140. package/dist/chunk-5PXZNWE4.js +0 -13
  141. package/dist/chunk-5QUGHNG3.cjs +0 -13
  142. package/dist/chunk-5XDPKNBI.js +0 -13
  143. package/dist/chunk-66OLJGLO.js +0 -302
  144. package/dist/chunk-6BDDZBAQ.js +0 -13
  145. package/dist/chunk-75ZPJI57.cjs +0 -9
  146. package/dist/chunk-76TLDMR4.cjs +0 -13
  147. package/dist/chunk-7IBXEWY5.js +0 -13
  148. package/dist/chunk-7URGGQWA.js +0 -13
  149. package/dist/chunk-7ZWO2XCS.cjs +0 -13
  150. package/dist/chunk-AQDYWFIE.cjs +0 -13
  151. package/dist/chunk-AUEQIRLO.cjs +0 -13
  152. package/dist/chunk-BEQYH4ZH.js +0 -13
  153. package/dist/chunk-BMEJLYYZ.js +0 -13
  154. package/dist/chunk-BXEIRESQ.cjs +0 -17
  155. package/dist/chunk-BYXBJQAS.js +0 -0
  156. package/dist/chunk-D4YPZVLI.js +0 -13
  157. package/dist/chunk-DMNL42QX.cjs +0 -13
  158. package/dist/chunk-DOKVIYQP.cjs +0 -13
  159. package/dist/chunk-DSTHXXIG.js +0 -14
  160. package/dist/chunk-E3I6537N.js +0 -25
  161. package/dist/chunk-EEMF44IH.cjs +0 -58
  162. package/dist/chunk-EODYYDJS.js +0 -13
  163. package/dist/chunk-ERY3BNIM.js +0 -13
  164. package/dist/chunk-ESPY25SV.cjs +0 -13
  165. package/dist/chunk-EZJQO3RD.cjs +0 -13
  166. package/dist/chunk-FEFTZ7TT.cjs +0 -13
  167. package/dist/chunk-FZTWDRFN.js +0 -13
  168. package/dist/chunk-H4PA2G3N.cjs +0 -13
  169. package/dist/chunk-H7QPKI66.cjs +0 -13
  170. package/dist/chunk-HLATHB47.js +0 -13
  171. package/dist/chunk-I3A3AEAA.cjs +0 -13
  172. package/dist/chunk-I3U5MBNO.cjs +0 -13
  173. package/dist/chunk-I5KQLZMG.js +0 -58
  174. package/dist/chunk-IBTK77R3.cjs +0 -13
  175. package/dist/chunk-IEFCX4Q4.cjs +0 -13
  176. package/dist/chunk-IG3RZSAO.js +0 -152
  177. package/dist/chunk-IIVF4KK5.cjs +0 -6
  178. package/dist/chunk-ILE746VV.js +0 -13
  179. package/dist/chunk-IPHYXYU4.cjs +0 -13
  180. package/dist/chunk-J4G2OFZ4.js +0 -17
  181. package/dist/chunk-JJXGNEQB.js +0 -13
  182. package/dist/chunk-JT3V6FP7.js +0 -13
  183. package/dist/chunk-K5OMXRSR.js +0 -13
  184. package/dist/chunk-KDGKC2AD.cjs +0 -13
  185. package/dist/chunk-KZJIE3RV.cjs +0 -13
  186. package/dist/chunk-L7KCN6DV.cjs +0 -13
  187. package/dist/chunk-LBBA76TA.js +0 -13
  188. package/dist/chunk-LI54LRUK.cjs +0 -13
  189. package/dist/chunk-LLVO2B4L.js +0 -13
  190. package/dist/chunk-LZ5V6B6A.cjs +0 -13
  191. package/dist/chunk-MI2HCYC4.js +0 -13
  192. package/dist/chunk-MLKGABMK.js +0 -9
  193. package/dist/chunk-MOHILOKE.js +0 -6
  194. package/dist/chunk-NEHQ24EP.js +0 -13
  195. package/dist/chunk-NESEKAGU.cjs +0 -13
  196. package/dist/chunk-NS5Q6ZYS.js +0 -13
  197. package/dist/chunk-OIX6AEOH.js +0 -13
  198. package/dist/chunk-OPZJWWQC.cjs +0 -13
  199. package/dist/chunk-PM3NSGHO.js +0 -13
  200. package/dist/chunk-Q7LKAKNO.js +0 -13
  201. package/dist/chunk-QTMLVSMQ.js +0 -188
  202. package/dist/chunk-RENPHZI7.cjs +0 -13
  203. package/dist/chunk-RHPG3BCQ.cjs +0 -13
  204. package/dist/chunk-S2QMZA7X.js +0 -13
  205. package/dist/chunk-S7LOBBW2.cjs +0 -13
  206. package/dist/chunk-T7E6HY2F.js +0 -13
  207. package/dist/chunk-TCAPRSWP.cjs +0 -13
  208. package/dist/chunk-TCP7WBEZ.cjs +0 -13
  209. package/dist/chunk-TT42MDI2.cjs +0 -13
  210. package/dist/chunk-TZWDBH6E.js +0 -13
  211. package/dist/chunk-U4CNUH3A.cjs +0 -302
  212. package/dist/chunk-UMRBYGCW.cjs +0 -13
  213. package/dist/chunk-UTRCC2RP.js +0 -13
  214. package/dist/chunk-UVMBRQNS.cjs +0 -13
  215. package/dist/chunk-UZWXBTQL.js +0 -31
  216. package/dist/chunk-VDTZORF6.cjs +0 -13
  217. package/dist/chunk-VO6GNJ4O.js +0 -13
  218. package/dist/chunk-VQ54VGY3.js +0 -13
  219. package/dist/chunk-VRWNZZCS.js +0 -13
  220. package/dist/chunk-W3IE4UWT.cjs +0 -13
  221. package/dist/chunk-WE4BXFRS.js +0 -13
  222. package/dist/chunk-WLDTS6EO.js +0 -13
  223. package/dist/chunk-WOAJW7OB.cjs +0 -13
  224. package/dist/chunk-WZX5LXRH.cjs +0 -13
  225. package/dist/chunk-XHXN5JNR.cjs +0 -14
  226. package/dist/chunk-XUPJ3XJL.js +0 -13
  227. package/dist/chunk-XYIWDMXZ.cjs +0 -13
  228. package/dist/chunk-Y2W7MENX.cjs +0 -13
  229. package/dist/chunk-YBGWOI5B.cjs +0 -13
  230. package/dist/chunk-YGLV5TML.js +0 -111
  231. package/dist/chunk-YJLFP6SE.js +0 -13
  232. package/dist/chunk-YJVFENGG.cjs +0 -111
  233. package/dist/chunk-YSDDIRK3.js +0 -13
  234. package/dist/chunk-YUYOWQ5M.js +0 -13
  235. package/dist/chunk-YW7CKAOG.cjs +0 -25
  236. package/dist/chunk-YYG5XGJC.js +0 -13
  237. package/dist/chunk-Z7LHYEQW.js +0 -13
  238. package/dist/chunk-ZWJ4O3II.cjs +0 -13
  239. package/dist/components.d.cts +0 -16
  240. package/dist/components.d.ts +0 -16
  241. package/dist/config.d.cts +0 -6
  242. package/dist/config.d.ts +0 -6
  243. package/dist/icon/index.d.cts +0 -136
  244. package/dist/icon/index.d.ts +0 -136
  245. package/dist/iconify.d.cts +0 -53
  246. package/dist/iconify.d.ts +0 -53
  247. package/dist/index.d.cts +0 -50
  248. package/dist/index.d.ts +0 -50
  249. package/dist/json.d.cts +0 -155
  250. package/dist/json.d.ts +0 -155
  251. package/dist/name.d.cts +0 -15
  252. package/dist/name.d.ts +0 -15
  253. package/dist/picker/dialog.d.cts +0 -19
  254. package/dist/picker/dialog.d.ts +0 -19
  255. package/dist/picker/index.d.cts +0 -123
  256. package/dist/picker/index.d.ts +0 -123
  257. package/dist/util.d.cts +0 -6
  258. package/dist/util.d.ts +0 -6
  259. package/dist/vite/index.d.cts +0 -56
  260. package/dist/vite/index.d.ts +0 -56
  261. package/dist/vue/bar.d.cts +0 -7
  262. package/dist/vue/bar.d.ts +0 -7
  263. package/dist/vue/below.d.cts +0 -7
  264. package/dist/vue/below.d.ts +0 -7
  265. package/dist/vue/bicycle.d.cts +0 -7
  266. package/dist/vue/bicycle.d.ts +0 -7
  267. package/dist/vue/bottom-left.d.cts +0 -7
  268. package/dist/vue/bottom-left.d.ts +0 -7
  269. package/dist/vue/bottom-right.d.cts +0 -7
  270. package/dist/vue/bottom-right.d.ts +0 -7
  271. package/dist/vue/bottom.d.cts +0 -7
  272. package/dist/vue/bottom.d.ts +0 -7
  273. package/dist/vue/cascader-field.d.cts +0 -7
  274. package/dist/vue/cascader-field.d.ts +0 -7
  275. package/dist/vue/catalogue.d.cts +0 -7
  276. package/dist/vue/catalogue.d.ts +0 -7
  277. package/dist/vue/clear.d.cts +0 -7
  278. package/dist/vue/clear.d.ts +0 -7
  279. package/dist/vue/close.d.cts +0 -7
  280. package/dist/vue/close.d.ts +0 -7
  281. package/dist/vue/crl.d.cts +0 -7
  282. package/dist/vue/crl.d.ts +0 -7
  283. package/dist/vue/delete.d.cts +0 -7
  284. package/dist/vue/delete.d.ts +0 -7
  285. package/dist/vue/document.d.cts +0 -7
  286. package/dist/vue/document.d.ts +0 -7
  287. package/dist/vue/down.d.cts +0 -7
  288. package/dist/vue/down.d.ts +0 -7
  289. package/dist/vue/download.d.cts +0 -7
  290. package/dist/vue/download.d.ts +0 -7
  291. package/dist/vue/edit.d.cts +0 -7
  292. package/dist/vue/edit.d.ts +0 -7
  293. package/dist/vue/enter.d.cts +0 -7
  294. package/dist/vue/enter.d.ts +0 -7
  295. package/dist/vue/folder.d.cts +0 -7
  296. package/dist/vue/folder.d.ts +0 -7
  297. package/dist/vue/frame.d.cts +0 -7
  298. package/dist/vue/frame.d.ts +0 -7
  299. package/dist/vue/grid.d.cts +0 -7
  300. package/dist/vue/grid.d.ts +0 -7
  301. package/dist/vue/hidd.d.cts +0 -7
  302. package/dist/vue/hidd.d.ts +0 -7
  303. package/dist/vue/home.d.cts +0 -7
  304. package/dist/vue/home.d.ts +0 -7
  305. package/dist/vue/index.d.cts +0 -45
  306. package/dist/vue/index.d.ts +0 -45
  307. package/dist/vue/left.d.cts +0 -7
  308. package/dist/vue/left.d.ts +0 -7
  309. package/dist/vue/lock.d.cts +0 -7
  310. package/dist/vue/lock.d.ts +0 -7
  311. package/dist/vue/login.d.cts +0 -7
  312. package/dist/vue/login.d.ts +0 -7
  313. package/dist/vue/logink.d.cts +0 -7
  314. package/dist/vue/logink.d.ts +0 -7
  315. package/dist/vue/more.d.cts +0 -7
  316. package/dist/vue/more.d.ts +0 -7
  317. package/dist/vue/mr.d.cts +0 -7
  318. package/dist/vue/mr.d.ts +0 -7
  319. package/dist/vue/mute.d.cts +0 -7
  320. package/dist/vue/mute.d.ts +0 -7
  321. package/dist/vue/node-tree.d.cts +0 -7
  322. package/dist/vue/node-tree.d.ts +0 -7
  323. package/dist/vue/page.d.cts +0 -7
  324. package/dist/vue/page.d.ts +0 -7
  325. package/dist/vue/pause.d.cts +0 -7
  326. package/dist/vue/pause.d.ts +0 -7
  327. package/dist/vue/play.d.cts +0 -7
  328. package/dist/vue/play.d.ts +0 -7
  329. package/dist/vue/plus.d.cts +0 -7
  330. package/dist/vue/plus.d.ts +0 -7
  331. package/dist/vue/qx.d.cts +0 -7
  332. package/dist/vue/qx.d.ts +0 -7
  333. package/dist/vue/retreat.d.cts +0 -7
  334. package/dist/vue/retreat.d.ts +0 -7
  335. package/dist/vue/right.d.cts +0 -7
  336. package/dist/vue/right.d.ts +0 -7
  337. package/dist/vue/set.d.cts +0 -7
  338. package/dist/vue/set.d.ts +0 -7
  339. package/dist/vue/sound.d.cts +0 -7
  340. package/dist/vue/sound.d.ts +0 -7
  341. package/dist/vue/star.d.cts +0 -7
  342. package/dist/vue/star.d.ts +0 -7
  343. package/dist/vue/sub-form.d.cts +0 -7
  344. package/dist/vue/sub-form.d.ts +0 -7
  345. package/dist/vue/tab.d.cts +0 -7
  346. package/dist/vue/tab.d.ts +0 -7
  347. package/dist/vue/up.d.cts +0 -7
  348. package/dist/vue/up.d.ts +0 -7
  349. package/dist/vue/views.d.cts +0 -7
  350. package/dist/vue/views.d.ts +0 -7
@@ -1,111 +0,0 @@
1
- import {
2
- lineToLargeHump
3
- } from "./chunk-J4G2OFZ4.js";
4
- import {
5
- defaultPrefix
6
- } from "./chunk-MOHILOKE.js";
7
-
8
- // packages/iconify.ts
9
- import { defineComponent, h } from "vue";
10
- var xmlns = "http://www.w3.org/2000/svg";
11
- function getViewBox(obj) {
12
- const viewBox = [
13
- obj.left || 0,
14
- obj.top || 0,
15
- obj.width || 1024,
16
- obj.height || 1024
17
- ].join(" ");
18
- return viewBox;
19
- }
20
- function createSVG(obj) {
21
- const viewBox = getViewBox(obj);
22
- const name = "icon-" + obj.name;
23
- return defineComponent({
24
- name: lineToLargeHump(name),
25
- props: {},
26
- render() {
27
- return h("svg", {
28
- xmlns,
29
- "aria-hidden": true,
30
- id: name,
31
- ctype: "hcom",
32
- role: "img",
33
- class: "iconify iconify-" + obj.prefix,
34
- viewBox,
35
- innerHTML: obj.body
36
- // 直接使用innerHTML
37
- });
38
- }
39
- });
40
- }
41
- var iconify = (app, ify, { prefix = defaultPrefix } = {}) => {
42
- const obj = {
43
- prefix: ify.prefix,
44
- width: ify.width,
45
- height: ify.height
46
- };
47
- const icons = ify.icons;
48
- for (const key of Object.keys(icons)) {
49
- app.component(
50
- prefix + lineToLargeHump(key),
51
- createSVG({
52
- ...obj,
53
- name: key,
54
- ...icons[key]
55
- })
56
- );
57
- }
58
- const aliases = ify.aliases;
59
- for (const key of Object.keys(aliases)) {
60
- const a = aliases[key];
61
- app.component(
62
- prefix + lineToLargeHump(key),
63
- createSVG({
64
- ...obj,
65
- name: key,
66
- ...icons[a.parent]
67
- })
68
- );
69
- }
70
- };
71
- function iconifySVG(obj, name) {
72
- var _a;
73
- const icons = obj.icons;
74
- const aliases = obj.aliases;
75
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
76
- const n = icons[name] ?? (ap ? icons[ap] : void 0);
77
- if (n) {
78
- return createSVG({
79
- prefix: obj.prefix,
80
- name,
81
- width: obj.width,
82
- height: obj.height,
83
- ...n
84
- });
85
- }
86
- }
87
- function getIconifySVG(obj, name, str = "") {
88
- var _a;
89
- const icons = obj.icons;
90
- const aliases = obj.aliases;
91
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
92
- const n = icons[name] ?? (ap ? icons[ap] : void 0);
93
- if (n) {
94
- const v = {
95
- prefix: obj.prefix,
96
- name,
97
- width: obj.width,
98
- height: obj.height,
99
- ...n
100
- };
101
- const viewBox = getViewBox(v);
102
- return `<svg ${str} xmlns="${xmlns}" viewBox="${viewBox}">${n.body}</svg>`;
103
- }
104
- }
105
-
106
- export {
107
- getViewBox,
108
- iconify,
109
- iconifySVG,
110
- getIconifySVG
111
- };
@@ -1,13 +0,0 @@
1
- // packages/vue/bottom-right.ts
2
- import { h, defineComponent } from "vue";
3
- var svg = '<path d="M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"/><path d="M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"/>';
4
- var bottom_right_default = defineComponent({
5
- name: "BottomRight",
6
- setup() {
7
- return () => h("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", innerHTML: svg });
8
- }
9
- });
10
-
11
- export {
12
- bottom_right_default
13
- };
@@ -1,111 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
-
3
- var _chunkBXEIRESQcjs = require('./chunk-BXEIRESQ.cjs');
4
-
5
-
6
- var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
7
-
8
- // packages/iconify.ts
9
- var _vue = require('vue');
10
- var xmlns = "http://www.w3.org/2000/svg";
11
- function getViewBox(obj) {
12
- const viewBox = [
13
- obj.left || 0,
14
- obj.top || 0,
15
- obj.width || 1024,
16
- obj.height || 1024
17
- ].join(" ");
18
- return viewBox;
19
- }
20
- function createSVG(obj) {
21
- const viewBox = getViewBox(obj);
22
- const name = "icon-" + obj.name;
23
- return _vue.defineComponent.call(void 0, {
24
- name: _chunkBXEIRESQcjs.lineToLargeHump.call(void 0, name),
25
- props: {},
26
- render() {
27
- return _vue.h.call(void 0, "svg", {
28
- xmlns,
29
- "aria-hidden": true,
30
- id: name,
31
- ctype: "hcom",
32
- role: "img",
33
- class: "iconify iconify-" + obj.prefix,
34
- viewBox,
35
- innerHTML: obj.body
36
- // 直接使用innerHTML
37
- });
38
- }
39
- });
40
- }
41
- var iconify = (app, ify, { prefix = _chunkIIVF4KK5cjs.defaultPrefix } = {}) => {
42
- const obj = {
43
- prefix: ify.prefix,
44
- width: ify.width,
45
- height: ify.height
46
- };
47
- const icons = ify.icons;
48
- for (const key of Object.keys(icons)) {
49
- app.component(
50
- prefix + _chunkBXEIRESQcjs.lineToLargeHump.call(void 0, key),
51
- createSVG({
52
- ...obj,
53
- name: key,
54
- ...icons[key]
55
- })
56
- );
57
- }
58
- const aliases = ify.aliases;
59
- for (const key of Object.keys(aliases)) {
60
- const a = aliases[key];
61
- app.component(
62
- prefix + _chunkBXEIRESQcjs.lineToLargeHump.call(void 0, key),
63
- createSVG({
64
- ...obj,
65
- name: key,
66
- ...icons[a.parent]
67
- })
68
- );
69
- }
70
- };
71
- function iconifySVG(obj, name) {
72
- var _a;
73
- const icons = obj.icons;
74
- const aliases = obj.aliases;
75
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
76
- const n = _nullishCoalesce(icons[name], () => ( (ap ? icons[ap] : void 0)));
77
- if (n) {
78
- return createSVG({
79
- prefix: obj.prefix,
80
- name,
81
- width: obj.width,
82
- height: obj.height,
83
- ...n
84
- });
85
- }
86
- }
87
- function getIconifySVG(obj, name, str = "") {
88
- var _a;
89
- const icons = obj.icons;
90
- const aliases = obj.aliases;
91
- const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
92
- const n = _nullishCoalesce(icons[name], () => ( (ap ? icons[ap] : void 0)));
93
- if (n) {
94
- const v = {
95
- prefix: obj.prefix,
96
- name,
97
- width: obj.width,
98
- height: obj.height,
99
- ...n
100
- };
101
- const viewBox = getViewBox(v);
102
- return `<svg ${str} xmlns="${xmlns}" viewBox="${viewBox}">${n.body}</svg>`;
103
- }
104
- }
105
-
106
-
107
-
108
-
109
-
110
-
111
- exports.getViewBox = getViewBox; exports.iconify = iconify; exports.iconifySVG = iconifySVG; exports.getIconifySVG = getIconifySVG;
@@ -1,13 +0,0 @@
1
- // packages/vue/enter.ts
2
- import { h, defineComponent } from "vue";
3
- var svg = '<path d="M656.36179153 933.07378604a68.79342673 68.79342673 0 0 1-27.51737036-5.96209735 71.08654065 71.08654065 0 0 1-42.1933016-65.58306674v-256.82879141L226.17356421 915.64611825a67.87618066 67.87618066 0 0 1-73.8382772 12.38281651A71.08654065 71.08654065 0 0 1 110.14198542 861.52862195V161.67016327A71.08654065 71.08654065 0 0 1 152.79390964 96.08709734a67.87618066 67.87618066 0 0 1 73.838278 12.84143913l359.56030848 310.94628772V161.67016327a71.08654065 71.08654065 0 0 1 42.65192505-65.58306592 67.87618066 67.87618066 0 0 1 74.29690063 12.84143912L1107.64666924 457.02327451a72.00378671 72.00378671 0 0 1 0 105.94187704L702.22407574 915.64611825a68.33480328 68.33480328 0 0 1-45.86228422 17.42766779z m-476.96775677-72.00378671l405.88121611-349.47060672-404.50534743-351.76372064v701.69294998z m476.0505107 0l405.88121696-349.47060672-404.50534827-351.76372064v701.69294998z"></path>';
4
- var enter_default = defineComponent({
5
- name: "Enter",
6
- setup() {
7
- return () => h("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", innerHTML: svg });
8
- }
9
- });
10
-
11
- export {
12
- enter_default
13
- };
@@ -1,13 +0,0 @@
1
- // packages/vue/crl.ts
2
- import { h, defineComponent } from "vue";
3
- var svg = '<metadata><?xpacket begin="\uFEFF" id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01 "><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about=""/></rdf:RDF></x:xmpmeta><?xpacket end="w"?></metadata><defs><style> .cls-1 { fill: #fff; stroke: #267afb; stroke-width: 1px; } .cls-2 { fill: #267afb; fill-rule: evenodd; } </style></defs><circle id="\u692D\u5706_1_\u62F7\u8D1D_7" data-name="\u692D\u5706 1 \u62F7\u8D1D 7" class="cls-1" cx="10.5" cy="10.5" r="10"/><path id="\u5F62\u72B6_515_\u62F7\u8D1D" data-name="\u5F62\u72B6 515 \u62F7\u8D1D" class="cls-2" d="M681.525,266.235a0.267,0.267,0,0,1,.265-0.264h1.193a0.267,0.267,0,0,1,.265.264v5.937a0.268,0.268,0,0,1-.265.264H681.79a0.268,0.268,0,0,1-.265-0.264v-5.937m-0.531,0v5.937a0.8,0.8,0,0,0,.8.792h1.193a0.8,0.8,0,0,0,.8-0.792v-5.937a0.8,0.8,0,0,0-.8-0.792H681.79A0.8,0.8,0,0,0,680.994,266.235Zm4.641-3.431a0.269,0.269,0,0,1,.265-0.264h1.194a0.268,0.268,0,0,1,.265.264v5.938a0.268,0.268,0,0,1-.265.264H685.9a0.269,0.269,0,0,1-.265-0.264V262.8m-0.53,0v5.938a0.8,0.8,0,0,0,.795.791h1.194a0.8,0.8,0,0,0,.795-0.791V262.8a0.8,0.8,0,0,0-.795-0.792H685.9A0.8,0.8,0,0,0,685.105,262.8Zm4.641,3.431a0.267,0.267,0,0,1,.265-0.264H691.2a0.268,0.268,0,0,1,.266.264v5.937a0.269,0.269,0,0,1-.266.264h-1.193a0.268,0.268,0,0,1-.265-0.264v-5.937m-0.531,0v5.937a0.8,0.8,0,0,0,.8.792H691.2a0.8,0.8,0,0,0,.8-0.792v-5.937a0.8,0.8,0,0,0-.8-0.792h-1.193A0.8,0.8,0,0,0,689.215,266.235ZM686.5,272.35l-0.941-.936a0.264,0.264,0,0,0-.375.373L686.3,272.9a0.131,0.131,0,0,0,.011.012,0.268,0.268,0,0,0,.378,0,0.127,0.127,0,0,0,.01-0.012l1.117-1.111a0.264,0.264,0,0,0-.375-0.373Z" transform="translate(-675.5 -256.5)"/>';
4
- var crl_default = defineComponent({
5
- name: "Crl",
6
- setup() {
7
- return () => h("svg", { viewBox: "0 0 21 21", xmlns: "http://www.w3.org/2000/svg", innerHTML: svg });
8
- }
9
- });
10
-
11
- export {
12
- crl_default
13
- };
@@ -1,25 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
2
- function humpToLine(name) {
3
- const reg = /(([A-Z])([^A-Z]*))/g;
4
- let result;
5
- const arr = [];
6
- let i = 0;
7
- while ((result = reg.exec(name)) !== null) {
8
- if (i == 0 && result.index != 0) {
9
- arr.push(name.substring(0, result.index));
10
- }
11
- i++;
12
- arr.push(result[1].toLowerCase());
13
- }
14
- if (arr.length == 0) {
15
- return name;
16
- } else {
17
- let a = arr.join("-");
18
- a = a.replace(/[-]{2,}/g, "-");
19
- return a;
20
- }
21
- }
22
-
23
-
24
-
25
- exports.humpToLine = humpToLine;
@@ -1,13 +0,0 @@
1
- // packages/vue/sound.ts
2
- import { h, defineComponent } from "vue";
3
- var svg = '<path d="M572.16 104.96a47.04 47.04 0 0 0-49.92 4.48L181.76 360.96H70.4c-26.24 0-48 21.76-48 48v245.12c0 26.24 21.76 48 48 48h111.36l344.32 203.52c7.68 4.48 16 6.4 24.32 6.4s16.64-1.92 23.68-6.4c14.72-8.32 24.32-24.32 24.32-41.6V147.84a48.64 48.64 0 0 0-26.24-42.88zM502.4 780.16L230.4 619.52l-11.52-6.4a47.744 47.744 0 0 0-24.32-6.4H118.4V456.96h78.72c10.24 0 20.48-3.2 28.8-9.6l276.48-204.8v537.6zM760.32 338.56c-18.56-18.56-49.28-18.56-67.84 0s-18.56 49.28 0 67.84c51.84 51.84 51.84 136.32 0 188.16-18.56 18.56-18.56 49.28 0 67.84 9.6 9.6 21.76 14.08 33.92 14.08s24.32-4.48 33.92-14.08c88.96-88.96 88.96-234.24 0-323.84z"></path><path d="M888.32 210.56c-18.56-18.56-49.28-18.56-67.84 0s-18.56 49.28 0 67.84a314.816 314.816 0 0 1 0 444.16c-18.56 18.56-18.56 49.28 0 67.84 9.6 9.6 21.76 14.08 33.92 14.08s24.32-4.48 33.92-14.08a410.24 410.24 0 0 0 0-579.84z"></path>';
4
- var sound_default = defineComponent({
5
- name: "Sound",
6
- setup() {
7
- return () => h("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", innerHTML: svg });
8
- }
9
- });
10
-
11
- export {
12
- sound_default
13
- };
@@ -1,13 +0,0 @@
1
- // packages/vue/clear.ts
2
- import { h, defineComponent } from "vue";
3
- var svg = '<path d="m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"></path><path d="M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"></path>';
4
- var clear_default = defineComponent({
5
- name: "Clear",
6
- setup() {
7
- return () => h("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", innerHTML: svg });
8
- }
9
- });
10
-
11
- export {
12
- clear_default
13
- };
@@ -1,13 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/vue/page.ts
2
- var _vue = require('vue');
3
- var svg = '<path d="M385.68138313 382.54617325v466.03377778H333.89985186v-466.03377778H178.55525926V330.76464197h673.15990164v51.78153128h-466.03377777zM126.773728 123.63851811h776.72296295v776.72296297H126.773728V123.63851811z m51.78153126 51.78153128v673.15990164h673.15990164V175.42004939H178.55525926z"></path>';
4
- var page_default = _vue.defineComponent.call(void 0, {
5
- name: "Page",
6
- setup() {
7
- return () => _vue.h.call(void 0, "svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", innerHTML: svg });
8
- }
9
- });
10
-
11
-
12
-
13
- exports.page_default = page_default;
@@ -1,16 +0,0 @@
1
- import { ComponentResolver } from 'unplugin-vue-components';
2
-
3
- type Config = {
4
- /**
5
- * 别名
6
- */
7
- alias?: string;
8
- icon?: string;
9
- };
10
- /**
11
- * 自动按需匹配注册
12
- * @returns
13
- */
14
- declare function FangIconsResolver(conf?: Config): ComponentResolver[];
15
-
16
- export { FangIconsResolver };
@@ -1,16 +0,0 @@
1
- import { ComponentResolver } from 'unplugin-vue-components';
2
-
3
- type Config = {
4
- /**
5
- * 别名
6
- */
7
- alias?: string;
8
- icon?: string;
9
- };
10
- /**
11
- * 自动按需匹配注册
12
- * @returns
13
- */
14
- declare function FangIconsResolver(conf?: Config): ComponentResolver[];
15
-
16
- export { FangIconsResolver };
package/dist/config.d.cts DELETED
@@ -1,6 +0,0 @@
1
- declare const defaultPrefix = "Icon";
2
- interface InstallOptions {
3
- prefix?: string;
4
- }
5
-
6
- export { type InstallOptions, defaultPrefix };
package/dist/config.d.ts DELETED
@@ -1,6 +0,0 @@
1
- declare const defaultPrefix = "Icon";
2
- interface InstallOptions {
3
- prefix?: string;
4
- }
5
-
6
- export { type InstallOptions, defaultPrefix };
@@ -1,136 +0,0 @@
1
- import { SFCWithInstall } from '../util.cjs';
2
- import * as vue from 'vue';
3
-
4
- type Flip = 'horizontal' | 'vertical' | 'both' | '';
5
- type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
6
- declare const Icon: SFCWithInstall<vue.DefineComponent<vue.ExtractPropTypes<{
7
- /**
8
- * @props { String, Object } name= ( )
9
- * 图标名称
10
- */
11
- name: {
12
- type: (StringConstructor | ObjectConstructor)[];
13
- default: string;
14
- };
15
- /**
16
- * @props { String} iconClass= ( )
17
- * 图标样式名称
18
- */
19
- iconClass: {
20
- type: StringConstructor;
21
- };
22
- color: {
23
- type: StringConstructor;
24
- };
25
- /**
26
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
27
- * 图标类型
28
- */
29
- type: {
30
- type: () => IconType;
31
- };
32
- /**
33
- * @props { String, Number } size= ( )
34
- * 图标大小
35
- */
36
- size: {
37
- type: (StringConstructor | NumberConstructor)[];
38
- };
39
- /**
40
- * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
41
- * 图标方向
42
- */
43
- flip: {
44
- type: () => Flip;
45
- default: string;
46
- };
47
- /**
48
- * @props { Number } rotate=0
49
- * 图标旋转角度
50
- */
51
- rotate: {
52
- type: NumberConstructor;
53
- default: number;
54
- };
55
- default: {
56
- type: StringConstructor;
57
- };
58
- directory: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
- prefix: {
63
- type: StringConstructor;
64
- default: string;
65
- };
66
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
67
- [key: string]: any;
68
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
69
- /**
70
- * @props { String, Object } name= ( )
71
- * 图标名称
72
- */
73
- name: {
74
- type: (StringConstructor | ObjectConstructor)[];
75
- default: string;
76
- };
77
- /**
78
- * @props { String} iconClass= ( )
79
- * 图标样式名称
80
- */
81
- iconClass: {
82
- type: StringConstructor;
83
- };
84
- color: {
85
- type: StringConstructor;
86
- };
87
- /**
88
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
89
- * 图标类型
90
- */
91
- type: {
92
- type: () => IconType;
93
- };
94
- /**
95
- * @props { String, Number } size= ( )
96
- * 图标大小
97
- */
98
- size: {
99
- type: (StringConstructor | NumberConstructor)[];
100
- };
101
- /**
102
- * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
103
- * 图标方向
104
- */
105
- flip: {
106
- type: () => Flip;
107
- default: string;
108
- };
109
- /**
110
- * @props { Number } rotate=0
111
- * 图标旋转角度
112
- */
113
- rotate: {
114
- type: NumberConstructor;
115
- default: number;
116
- };
117
- default: {
118
- type: StringConstructor;
119
- };
120
- directory: {
121
- type: StringConstructor;
122
- default: string;
123
- };
124
- prefix: {
125
- type: StringConstructor;
126
- default: string;
127
- };
128
- }>> & Readonly<{}>, {
129
- name: string | Record<string, any>;
130
- flip: Flip;
131
- rotate: number;
132
- directory: string;
133
- prefix: string;
134
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>>;
135
-
136
- export { type Flip, Icon, type IconType, Icon as default };
@@ -1,136 +0,0 @@
1
- import { SFCWithInstall } from '../util.js';
2
- import * as vue from 'vue';
3
-
4
- type Flip = 'horizontal' | 'vertical' | 'both' | '';
5
- type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
6
- declare const Icon: SFCWithInstall<vue.DefineComponent<vue.ExtractPropTypes<{
7
- /**
8
- * @props { String, Object } name= ( )
9
- * 图标名称
10
- */
11
- name: {
12
- type: (StringConstructor | ObjectConstructor)[];
13
- default: string;
14
- };
15
- /**
16
- * @props { String} iconClass= ( )
17
- * 图标样式名称
18
- */
19
- iconClass: {
20
- type: StringConstructor;
21
- };
22
- color: {
23
- type: StringConstructor;
24
- };
25
- /**
26
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
27
- * 图标类型
28
- */
29
- type: {
30
- type: () => IconType;
31
- };
32
- /**
33
- * @props { String, Number } size= ( )
34
- * 图标大小
35
- */
36
- size: {
37
- type: (StringConstructor | NumberConstructor)[];
38
- };
39
- /**
40
- * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
41
- * 图标方向
42
- */
43
- flip: {
44
- type: () => Flip;
45
- default: string;
46
- };
47
- /**
48
- * @props { Number } rotate=0
49
- * 图标旋转角度
50
- */
51
- rotate: {
52
- type: NumberConstructor;
53
- default: number;
54
- };
55
- default: {
56
- type: StringConstructor;
57
- };
58
- directory: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
- prefix: {
63
- type: StringConstructor;
64
- default: string;
65
- };
66
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
67
- [key: string]: any;
68
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
69
- /**
70
- * @props { String, Object } name= ( )
71
- * 图标名称
72
- */
73
- name: {
74
- type: (StringConstructor | ObjectConstructor)[];
75
- default: string;
76
- };
77
- /**
78
- * @props { String} iconClass= ( )
79
- * 图标样式名称
80
- */
81
- iconClass: {
82
- type: StringConstructor;
83
- };
84
- color: {
85
- type: StringConstructor;
86
- };
87
- /**
88
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
89
- * 图标类型
90
- */
91
- type: {
92
- type: () => IconType;
93
- };
94
- /**
95
- * @props { String, Number } size= ( )
96
- * 图标大小
97
- */
98
- size: {
99
- type: (StringConstructor | NumberConstructor)[];
100
- };
101
- /**
102
- * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
103
- * 图标方向
104
- */
105
- flip: {
106
- type: () => Flip;
107
- default: string;
108
- };
109
- /**
110
- * @props { Number } rotate=0
111
- * 图标旋转角度
112
- */
113
- rotate: {
114
- type: NumberConstructor;
115
- default: number;
116
- };
117
- default: {
118
- type: StringConstructor;
119
- };
120
- directory: {
121
- type: StringConstructor;
122
- default: string;
123
- };
124
- prefix: {
125
- type: StringConstructor;
126
- default: string;
127
- };
128
- }>> & Readonly<{}>, {
129
- name: string | Record<string, any>;
130
- flip: Flip;
131
- rotate: number;
132
- directory: string;
133
- prefix: string;
134
- }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>>;
135
-
136
- export { type Flip, Icon, type IconType, Icon as default };