@yh-ui/icons 1.0.53 → 1.0.55

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/iconify.mjs CHANGED
@@ -1,14 +1,14 @@
1
- import { Icon as u, getIcon as p, loadIcon as l, addAPIProvider as y } from "@iconify/vue";
1
+ import { Icon as p, getIcon as d, loadIcon as u, addAPIProvider as l } from "@iconify/vue";
2
2
  import { h } from "vue";
3
3
  try {
4
- y("", {
4
+ l("", {
5
5
  resources: ["https://api.iconify.design", "https://api.simplesvg.com"],
6
6
  rotate: 1e3,
7
7
  timeout: 3e3
8
8
  });
9
9
  } catch {
10
10
  }
11
- const a = "yh-icon-spin-style", m = `
11
+ const f = "yh-icon-spin-style", m = `
12
12
  @keyframes yh-icon-spin {
13
13
  from { transform: rotate(0deg); }
14
14
  to { transform: rotate(360deg); }
@@ -18,53 +18,70 @@ const a = "yh-icon-spin-style", m = `
18
18
  }
19
19
  `;
20
20
  function g() {
21
- if (typeof document > "u" || document.getElementById(a)) return;
21
+ if (typeof document > "u" || document.getElementById(f)) return;
22
22
  const t = document.createElement("style");
23
- t.id = a, t.textContent = m, document.head.appendChild(t);
23
+ t.id = f, t.textContent = m, document.head.appendChild(t);
24
24
  }
25
25
  function I(t) {
26
- const { icon: n, size: e, color: r, spin: f, rotate: s } = t, o = {}, i = [];
26
+ const { icon: n, size: e, color: o, spin: y, rotate: a } = t, r = {}, i = [];
27
27
  if (e) {
28
- const c = typeof e == "number" ? `${e}px` : e;
29
- o.width = c, o.height = c, o.fontSize = c;
28
+ const s = typeof e == "number" ? `${e}px` : e;
29
+ r.width = s, r.height = s, r.fontSize = s;
30
30
  }
31
- return r && (o.color = r), s && (o.transform = `rotate(${s}deg)`), f && (g(), i.push("yh-icons--spin")), {
31
+ return o && (r.color = o), a && (r.transform = `rotate(${a}deg)`), y && (g(), i.push("yh-icons--spin")), {
32
32
  icon: n,
33
33
  class: i.length > 0 ? i.join(" ") : void 0,
34
- style: Object.keys(o).length > 0 ? o : void 0
34
+ style: Object.keys(r).length > 0 ? r : void 0
35
35
  };
36
36
  }
37
- function w() {
37
+ function S() {
38
38
  return (t) => {
39
39
  const n = I(t);
40
- return h(u, n);
40
+ return h(p, n);
41
41
  };
42
42
  }
43
- function d(t) {
43
+ function c(t) {
44
44
  return t.includes(":") ? t : t.includes("/") ? t.replace("/", ":") : `mdi:${t}`;
45
45
  }
46
- async function E(t) {
46
+ function b(t) {
47
+ if (typeof t != "string" || !t.trim())
48
+ return !1;
47
49
  try {
48
- return !!d(t);
50
+ const n = c(t);
51
+ return /^[a-z0-9-]+:[a-z0-9-_]+$/i.test(n);
49
52
  } catch {
50
53
  return !1;
51
54
  }
52
55
  }
53
- async function N(t) {
54
- const n = d(t), e = p(n);
56
+ async function x(t) {
57
+ if (!b(t))
58
+ return !1;
59
+ try {
60
+ const n = c(t), e = d(n);
61
+ if (e && e.body && typeof e.body == "string" && e.body.trim().length > 0)
62
+ return !0;
63
+ const o = await u(n);
64
+ return !!(o && o.body && typeof o.body == "string" && o.body.trim().length > 0);
65
+ } catch {
66
+ return !1;
67
+ }
68
+ }
69
+ async function E(t) {
70
+ const n = c(t), e = d(n);
55
71
  if (e) return e;
56
72
  try {
57
- const r = await l(n);
58
- if (!r)
73
+ const o = await u(n);
74
+ if (!o)
59
75
  throw new Error(`Icon not found: ${t}`);
60
- return r;
76
+ return o;
61
77
  } catch {
62
78
  throw new Error(`Failed to load icon: ${t}`);
63
79
  }
64
80
  }
65
81
  export {
66
- w as createIconifyComponent,
67
- N as getIconData,
68
- E as iconExists,
69
- d as parseIconName
82
+ b as canResolve,
83
+ S as createIconifyComponent,
84
+ E as getIconData,
85
+ x as iconExists,
86
+ c as parseIconName
70
87
  };
package/dist/index.mjs CHANGED
@@ -1,321 +1,322 @@
1
1
  import { AVAILABLE_COLLECTIONS as l, RECOMMENDED_COLLECTIONS as t } from "./types.mjs";
2
- import { createIconifyComponent as r, getIconData as a, iconExists as n, parseIconName as d } from "./iconify.mjs";
3
- import { COMMON_ICONS as C, DEFAULT_ENABLED_PRESETS as s, PREFIX_ALIAS as p, PRESETS as m, getPreset as u } from "./presets.mjs";
4
- import { ICON_COLLECTIONS as S, getAllPrefixes as F, getCollection as g } from "./collections.mjs";
5
- import { Icon as L, YhIcon as f, __test__ as P } from "./vue/icon.mjs";
6
- import { AddLocation as B, Aim as R, AlarmClock as k, Apple as A, ArrowDown as T, ArrowDownBold as I, ArrowLeft as w, ArrowLeftBold as E, ArrowRight as O, ArrowRightBold as y, ArrowUp as N, ArrowUpBold as x, Avatar as U, Back as _, Basketball as G, Bell as W, BellFilled as b, Bicycle as H, Bottom as V, BottomLeft as q, BottomRight as v, Bowl as z, Box as K, Briefcase as Q, Brush as Z, BrushFilled as X, Burger as Y, Calendar as j, Camera as J, CameraFilled as $, CaretBottom as ee, CaretLeft as oe, CaretRight as le, CaretTop as te, Cellphone as ie, ChatDotRound as re, ChatDotSquare as ae, ChatLineRound as ne, ChatLineSquare as de, ChatRound as ce, ChatSquare as Ce, Check as se, Checked as pe, Cherry as me, Chicken as ue, ChromeFilled as he, CircleCheck as Se, CircleCheckFilled as Fe, CircleClose as ge, CircleCloseFilled as De, CirclePlus as Le, CirclePlusFilled as fe, Clock as Pe, Close as Me, CloseBold as Be, Cloudy as Re, Coffee as ke, CoffeeCup as Ae, Coin as Te, ColdDrink as Ie, Collection as we, CollectionTag as Ee, Comment as Oe, Compass as ye, Connection as Ne, Coordinate as xe, CopyDocument as Ue, Cpu as _e, CreditCard as Ge, Crop as We, DArrowLeft as be, DArrowRight as He, DCaret as Ve, DataAnalysis as qe, DataBoard as ve, DataLine as ze, Delete as Ke, DeleteFilled as Qe, DeleteLocation as Ze, Dessert as Xe, Discount as Ye, Dish as je, DishDot as Je, Document as $e, DocumentAdd as eo, DocumentChecked as oo, DocumentCopy as lo, DocumentDelete as to, DocumentRemove as io, Download as ro, Drizzling as ao, Edit as no, EditPen as co, Eleme as Co, ElemeFilled as so, ElementPlus as po, Expand as mo, Failed as uo, Female as ho, Files as So, Film as Fo, Filter as go, Finished as Do, FirstAidKit as Lo, Flag as fo, Fold as Po, Folder as Mo, FolderAdd as Bo, FolderChecked as Ro, FolderDelete as ko, FolderOpened as Ao, FolderRemove as To, Food as Io, Football as wo, ForkSpoon as Eo, Fries as Oo, FullScreen as yo, Goblet as No, GobletFull as xo, GobletSquare as Uo, GobletSquareFull as _o, GoldMedal as Go, Goods as Wo, GoodsFilled as bo, Grape as Ho, Grid as Vo, Guide as qo, Handbag as vo, Headset as zo, Help as Ko, HelpFilled as Qo, Hide as Zo, Histogram as Xo, HomeFilled as Yo, HotWater as jo, House as Jo, IceCream as $o, IceCreamRound as el, IceCreamSquare as ol, IceDrink as ll, IceTea as tl, InfoFilled as il, Iphone as rl, Key as al, KnifeFork as nl, Lightning as dl, Link as cl, List as Cl, Loading as sl, Location as pl, LocationFilled as ml, LocationInformation as ul, Lock as hl, Lollipop as Sl, MagicStick as Fl, Magnet as gl, Male as Dl, Management as Ll, MapLocation as fl, Medal as Pl, Memo as Ml, Menu as Bl, Message as Rl, MessageBox as kl, Mic as Al, Microphone as Tl, MilkTea as Il, Minus as wl, Money as El, Monitor as Ol, Moon as yl, MoonNight as Nl, More as xl, MoreFilled as Ul, MostlyCloudy as _l, Mouse as Gl, Mug as Wl, Mute as bl, MuteNotification as Hl, NoSmoking as Vl, Notebook as ql, Notification as vl, Odometer as zl, OfficeBuilding as Kl, Open as Ql, Operation as Zl, Opportunity as Xl, Orange as Yl, Paperclip as jl, PartlyCloudy as Jl, Pear as $l, Phone as et, PhoneFilled as ot, Picture as lt, PictureFilled as tt, PictureRounded as it, PieChart as rt, Place as at, Platform as nt, Plus as dt, Pointer as ct, Position as Ct, Postcard as st, Pouring as pt, Present as mt, PriceTag as ut, Printer as ht, Promotion as St, QuartzWatch as Ft, QuestionFilled as gt, Rank as Dt, Reading as Lt, ReadingLamp as ft, Refresh as Pt, RefreshLeft as Mt, RefreshRight as Bt, Refrigerator as Rt, Remove as kt, RemoveFilled as At, Right as Tt, ScaleToOriginal as It, School as wt, Scissor as Et, Search as Ot, Select as yt, Sell as Nt, SemiSelect as xt, Service as Ut, SetUp as _t, Setting as Gt, Share as Wt, Ship as bt, Shop as Ht, ShoppingBag as Vt, ShoppingCart as qt, ShoppingCartFull as vt, ShoppingTrolley as zt, Smoking as Kt, Soccer as Qt, SoldOut as Zt, Sort as Xt, SortDown as Yt, SortUp as jt, Stamp as Jt, Star as $t, StarFilled as ei, Stopwatch as oi, SuccessFilled as li, Sugar as ti, Suitcase as ii, SuitcaseLine as ri, Sunny as ai, Sunrise as ni, Sunset as di, Switch as ci, SwitchButton as Ci, SwitchFilled as si, TakeawayBox as pi, Ticket as mi, Tickets as ui, Timer as hi, ToiletPaper as Si, Tools as Fi, Top as gi, TopLeft as Di, TopRight as Li, TrendCharts as fi, Trophy as Pi, TrophyBase as Mi, TurnOff as Bi, Umbrella as Ri, Unlock as ki, Upload as Ai, UploadFilled as Ti, User as Ii, UserFilled as wi, Van as Ei, VideoCamera as Oi, VideoCameraFilled as yi, VideoPause as Ni, VideoPlay as xi, View as Ui, Wallet as _i, WalletFilled as Gi, WarnTriangleFilled as Wi, Warning as bi, WarningFilled as Hi, Watch as Vi, Watermelon as qi, WindPower as vi, ZoomIn as zi, ZoomOut as Ki, createIconComponent as Qi, iconComponentMeta as Zi, iconComponentProps as Xi, iconComponents as Yi } from "./components.mjs";
2
+ import { canResolve as r, createIconifyComponent as a, getIconData as n, iconExists as d, parseIconName as c } from "./iconify.mjs";
3
+ import { COMMON_ICONS as s, DEFAULT_ENABLED_PRESETS as p, PREFIX_ALIAS as m, PRESETS as u, getPreset as h } from "./presets.mjs";
4
+ import { ICON_COLLECTIONS as F, getAllPrefixes as g, getCollection as D } from "./collections.mjs";
5
+ import { Icon as f, YhIcon as P, __test__ as M } from "./vue/icon.mjs";
6
+ import { AddLocation as R, Aim as k, AlarmClock as A, Apple as T, ArrowDown as I, ArrowDownBold as w, ArrowLeft as E, ArrowLeftBold as O, ArrowRight as y, ArrowRightBold as N, ArrowUp as x, ArrowUpBold as U, Avatar as _, Back as G, Basketball as W, Bell as b, BellFilled as H, Bicycle as v, Bottom as V, BottomLeft as q, BottomRight as z, Bowl as K, Box as Q, Briefcase as Z, Brush as X, BrushFilled as Y, Burger as j, Calendar as J, Camera as $, CameraFilled as ee, CaretBottom as oe, CaretLeft as le, CaretRight as te, CaretTop as ie, Cellphone as re, ChatDotRound as ae, ChatDotSquare as ne, ChatLineRound as de, ChatLineSquare as ce, ChatRound as Ce, ChatSquare as se, Check as pe, Checked as me, Cherry as ue, Chicken as he, ChromeFilled as Se, CircleCheck as Fe, CircleCheckFilled as ge, CircleClose as De, CircleCloseFilled as Le, CirclePlus as fe, CirclePlusFilled as Pe, Clock as Me, Close as Be, CloseBold as Re, Cloudy as ke, Coffee as Ae, CoffeeCup as Te, Coin as Ie, ColdDrink as we, Collection as Ee, CollectionTag as Oe, Comment as ye, Compass as Ne, Connection as xe, Coordinate as Ue, CopyDocument as _e, Cpu as Ge, CreditCard as We, Crop as be, DArrowLeft as He, DArrowRight as ve, DCaret as Ve, DataAnalysis as qe, DataBoard as ze, DataLine as Ke, Delete as Qe, DeleteFilled as Ze, DeleteLocation as Xe, Dessert as Ye, Discount as je, Dish as Je, DishDot as $e, Document as eo, DocumentAdd as oo, DocumentChecked as lo, DocumentCopy as to, DocumentDelete as io, DocumentRemove as ro, Download as ao, Drizzling as no, Edit as co, EditPen as Co, Eleme as so, ElemeFilled as po, ElementPlus as mo, Expand as uo, Failed as ho, Female as So, Files as Fo, Film as go, Filter as Do, Finished as Lo, FirstAidKit as fo, Flag as Po, Fold as Mo, Folder as Bo, FolderAdd as Ro, FolderChecked as ko, FolderDelete as Ao, FolderOpened as To, FolderRemove as Io, Food as wo, Football as Eo, ForkSpoon as Oo, Fries as yo, FullScreen as No, Goblet as xo, GobletFull as Uo, GobletSquare as _o, GobletSquareFull as Go, GoldMedal as Wo, Goods as bo, GoodsFilled as Ho, Grape as vo, Grid as Vo, Guide as qo, Handbag as zo, Headset as Ko, Help as Qo, HelpFilled as Zo, Hide as Xo, Histogram as Yo, HomeFilled as jo, HotWater as Jo, House as $o, IceCream as el, IceCreamRound as ol, IceCreamSquare as ll, IceDrink as tl, IceTea as il, InfoFilled as rl, Iphone as al, Key as nl, KnifeFork as dl, Lightning as cl, Link as Cl, List as sl, Loading as pl, Location as ml, LocationFilled as ul, LocationInformation as hl, Lock as Sl, Lollipop as Fl, MagicStick as gl, Magnet as Dl, Male as Ll, Management as fl, MapLocation as Pl, Medal as Ml, Memo as Bl, Menu as Rl, Message as kl, MessageBox as Al, Mic as Tl, Microphone as Il, MilkTea as wl, Minus as El, Money as Ol, Monitor as yl, Moon as Nl, MoonNight as xl, More as Ul, MoreFilled as _l, MostlyCloudy as Gl, Mouse as Wl, Mug as bl, Mute as Hl, MuteNotification as vl, NoSmoking as Vl, Notebook as ql, Notification as zl, Odometer as Kl, OfficeBuilding as Ql, Open as Zl, Operation as Xl, Opportunity as Yl, Orange as jl, Paperclip as Jl, PartlyCloudy as $l, Pear as et, Phone as ot, PhoneFilled as lt, Picture as tt, PictureFilled as it, PictureRounded as rt, PieChart as at, Place as nt, Platform as dt, Plus as ct, Pointer as Ct, Position as st, Postcard as pt, Pouring as mt, Present as ut, PriceTag as ht, Printer as St, Promotion as Ft, QuartzWatch as gt, QuestionFilled as Dt, Rank as Lt, Reading as ft, ReadingLamp as Pt, Refresh as Mt, RefreshLeft as Bt, RefreshRight as Rt, Refrigerator as kt, Remove as At, RemoveFilled as Tt, Right as It, ScaleToOriginal as wt, School as Et, Scissor as Ot, Search as yt, Select as Nt, Sell as xt, SemiSelect as Ut, Service as _t, SetUp as Gt, Setting as Wt, Share as bt, Ship as Ht, Shop as vt, ShoppingBag as Vt, ShoppingCart as qt, ShoppingCartFull as zt, ShoppingTrolley as Kt, Smoking as Qt, Soccer as Zt, SoldOut as Xt, Sort as Yt, SortDown as jt, SortUp as Jt, Stamp as $t, Star as ei, StarFilled as oi, Stopwatch as li, SuccessFilled as ti, Sugar as ii, Suitcase as ri, SuitcaseLine as ai, Sunny as ni, Sunrise as di, Sunset as ci, Switch as Ci, SwitchButton as si, SwitchFilled as pi, TakeawayBox as mi, Ticket as ui, Tickets as hi, Timer as Si, ToiletPaper as Fi, Tools as gi, Top as Di, TopLeft as Li, TopRight as fi, TrendCharts as Pi, Trophy as Mi, TrophyBase as Bi, TurnOff as Ri, Umbrella as ki, Unlock as Ai, Upload as Ti, UploadFilled as Ii, User as wi, UserFilled as Ei, Van as Oi, VideoCamera as yi, VideoCameraFilled as Ni, VideoPause as xi, VideoPlay as Ui, View as _i, Wallet as Gi, WalletFilled as Wi, WarnTriangleFilled as bi, Warning as Hi, WarningFilled as vi, Watch as Vi, Watermelon as qi, WindPower as zi, ZoomIn as Ki, ZoomOut as Qi, createIconComponent as Zi, iconComponentMeta as Xi, iconComponentProps as Yi, iconComponents as ji } from "./components.mjs";
7
7
  export {
8
8
  l as AVAILABLE_COLLECTIONS,
9
- B as AddLocation,
10
- R as Aim,
11
- k as AlarmClock,
12
- A as Apple,
13
- T as ArrowDown,
14
- I as ArrowDownBold,
15
- w as ArrowLeft,
16
- E as ArrowLeftBold,
17
- O as ArrowRight,
18
- y as ArrowRightBold,
19
- N as ArrowUp,
20
- x as ArrowUpBold,
21
- U as Avatar,
22
- _ as Back,
23
- G as Basketball,
24
- W as Bell,
25
- b as BellFilled,
26
- H as Bicycle,
9
+ R as AddLocation,
10
+ k as Aim,
11
+ A as AlarmClock,
12
+ T as Apple,
13
+ I as ArrowDown,
14
+ w as ArrowDownBold,
15
+ E as ArrowLeft,
16
+ O as ArrowLeftBold,
17
+ y as ArrowRight,
18
+ N as ArrowRightBold,
19
+ x as ArrowUp,
20
+ U as ArrowUpBold,
21
+ _ as Avatar,
22
+ G as Back,
23
+ W as Basketball,
24
+ b as Bell,
25
+ H as BellFilled,
26
+ v as Bicycle,
27
27
  V as Bottom,
28
28
  q as BottomLeft,
29
- v as BottomRight,
30
- z as Bowl,
31
- K as Box,
32
- Q as Briefcase,
33
- Z as Brush,
34
- X as BrushFilled,
35
- Y as Burger,
36
- C as COMMON_ICONS,
37
- j as Calendar,
38
- J as Camera,
39
- $ as CameraFilled,
40
- ee as CaretBottom,
41
- oe as CaretLeft,
42
- le as CaretRight,
43
- te as CaretTop,
44
- ie as Cellphone,
45
- re as ChatDotRound,
46
- ae as ChatDotSquare,
47
- ne as ChatLineRound,
48
- de as ChatLineSquare,
49
- ce as ChatRound,
50
- Ce as ChatSquare,
51
- se as Check,
52
- pe as Checked,
53
- me as Cherry,
54
- ue as Chicken,
55
- he as ChromeFilled,
56
- Se as CircleCheck,
57
- Fe as CircleCheckFilled,
58
- ge as CircleClose,
59
- De as CircleCloseFilled,
60
- Le as CirclePlus,
61
- fe as CirclePlusFilled,
62
- Pe as Clock,
63
- Me as Close,
64
- Be as CloseBold,
65
- Re as Cloudy,
66
- ke as Coffee,
67
- Ae as CoffeeCup,
68
- Te as Coin,
69
- Ie as ColdDrink,
70
- we as Collection,
71
- Ee as CollectionTag,
72
- Oe as Comment,
73
- ye as Compass,
74
- Ne as Connection,
75
- xe as Coordinate,
76
- Ue as CopyDocument,
77
- _e as Cpu,
78
- Ge as CreditCard,
79
- We as Crop,
80
- be as DArrowLeft,
81
- He as DArrowRight,
29
+ z as BottomRight,
30
+ K as Bowl,
31
+ Q as Box,
32
+ Z as Briefcase,
33
+ X as Brush,
34
+ Y as BrushFilled,
35
+ j as Burger,
36
+ s as COMMON_ICONS,
37
+ J as Calendar,
38
+ $ as Camera,
39
+ ee as CameraFilled,
40
+ oe as CaretBottom,
41
+ le as CaretLeft,
42
+ te as CaretRight,
43
+ ie as CaretTop,
44
+ re as Cellphone,
45
+ ae as ChatDotRound,
46
+ ne as ChatDotSquare,
47
+ de as ChatLineRound,
48
+ ce as ChatLineSquare,
49
+ Ce as ChatRound,
50
+ se as ChatSquare,
51
+ pe as Check,
52
+ me as Checked,
53
+ ue as Cherry,
54
+ he as Chicken,
55
+ Se as ChromeFilled,
56
+ Fe as CircleCheck,
57
+ ge as CircleCheckFilled,
58
+ De as CircleClose,
59
+ Le as CircleCloseFilled,
60
+ fe as CirclePlus,
61
+ Pe as CirclePlusFilled,
62
+ Me as Clock,
63
+ Be as Close,
64
+ Re as CloseBold,
65
+ ke as Cloudy,
66
+ Ae as Coffee,
67
+ Te as CoffeeCup,
68
+ Ie as Coin,
69
+ we as ColdDrink,
70
+ Ee as Collection,
71
+ Oe as CollectionTag,
72
+ ye as Comment,
73
+ Ne as Compass,
74
+ xe as Connection,
75
+ Ue as Coordinate,
76
+ _e as CopyDocument,
77
+ Ge as Cpu,
78
+ We as CreditCard,
79
+ be as Crop,
80
+ He as DArrowLeft,
81
+ ve as DArrowRight,
82
82
  Ve as DCaret,
83
- s as DEFAULT_ENABLED_PRESETS,
83
+ p as DEFAULT_ENABLED_PRESETS,
84
84
  qe as DataAnalysis,
85
- ve as DataBoard,
86
- ze as DataLine,
87
- Ke as Delete,
88
- Qe as DeleteFilled,
89
- Ze as DeleteLocation,
90
- Xe as Dessert,
91
- Ye as Discount,
92
- je as Dish,
93
- Je as DishDot,
94
- $e as Document,
95
- eo as DocumentAdd,
96
- oo as DocumentChecked,
97
- lo as DocumentCopy,
98
- to as DocumentDelete,
99
- io as DocumentRemove,
100
- ro as Download,
101
- ao as Drizzling,
102
- no as Edit,
103
- co as EditPen,
104
- Co as Eleme,
105
- so as ElemeFilled,
106
- po as ElementPlus,
107
- mo as Expand,
108
- uo as Failed,
109
- ho as Female,
110
- So as Files,
111
- Fo as Film,
112
- go as Filter,
113
- Do as Finished,
114
- Lo as FirstAidKit,
115
- fo as Flag,
116
- Po as Fold,
117
- Mo as Folder,
118
- Bo as FolderAdd,
119
- Ro as FolderChecked,
120
- ko as FolderDelete,
121
- Ao as FolderOpened,
122
- To as FolderRemove,
123
- Io as Food,
124
- wo as Football,
125
- Eo as ForkSpoon,
126
- Oo as Fries,
127
- yo as FullScreen,
128
- No as Goblet,
129
- xo as GobletFull,
130
- Uo as GobletSquare,
131
- _o as GobletSquareFull,
132
- Go as GoldMedal,
133
- Wo as Goods,
134
- bo as GoodsFilled,
135
- Ho as Grape,
85
+ ze as DataBoard,
86
+ Ke as DataLine,
87
+ Qe as Delete,
88
+ Ze as DeleteFilled,
89
+ Xe as DeleteLocation,
90
+ Ye as Dessert,
91
+ je as Discount,
92
+ Je as Dish,
93
+ $e as DishDot,
94
+ eo as Document,
95
+ oo as DocumentAdd,
96
+ lo as DocumentChecked,
97
+ to as DocumentCopy,
98
+ io as DocumentDelete,
99
+ ro as DocumentRemove,
100
+ ao as Download,
101
+ no as Drizzling,
102
+ co as Edit,
103
+ Co as EditPen,
104
+ so as Eleme,
105
+ po as ElemeFilled,
106
+ mo as ElementPlus,
107
+ uo as Expand,
108
+ ho as Failed,
109
+ So as Female,
110
+ Fo as Files,
111
+ go as Film,
112
+ Do as Filter,
113
+ Lo as Finished,
114
+ fo as FirstAidKit,
115
+ Po as Flag,
116
+ Mo as Fold,
117
+ Bo as Folder,
118
+ Ro as FolderAdd,
119
+ ko as FolderChecked,
120
+ Ao as FolderDelete,
121
+ To as FolderOpened,
122
+ Io as FolderRemove,
123
+ wo as Food,
124
+ Eo as Football,
125
+ Oo as ForkSpoon,
126
+ yo as Fries,
127
+ No as FullScreen,
128
+ xo as Goblet,
129
+ Uo as GobletFull,
130
+ _o as GobletSquare,
131
+ Go as GobletSquareFull,
132
+ Wo as GoldMedal,
133
+ bo as Goods,
134
+ Ho as GoodsFilled,
135
+ vo as Grape,
136
136
  Vo as Grid,
137
137
  qo as Guide,
138
- vo as Handbag,
139
- zo as Headset,
140
- Ko as Help,
141
- Qo as HelpFilled,
142
- Zo as Hide,
143
- Xo as Histogram,
144
- Yo as HomeFilled,
145
- jo as HotWater,
146
- Jo as House,
147
- S as ICON_COLLECTIONS,
148
- $o as IceCream,
149
- el as IceCreamRound,
150
- ol as IceCreamSquare,
151
- ll as IceDrink,
152
- tl as IceTea,
153
- L as Icon,
154
- il as InfoFilled,
155
- rl as Iphone,
156
- al as Key,
157
- nl as KnifeFork,
158
- dl as Lightning,
159
- cl as Link,
160
- Cl as List,
161
- sl as Loading,
162
- pl as Location,
163
- ml as LocationFilled,
164
- ul as LocationInformation,
165
- hl as Lock,
166
- Sl as Lollipop,
167
- Fl as MagicStick,
168
- gl as Magnet,
169
- Dl as Male,
170
- Ll as Management,
171
- fl as MapLocation,
172
- Pl as Medal,
173
- Ml as Memo,
174
- Bl as Menu,
175
- Rl as Message,
176
- kl as MessageBox,
177
- Al as Mic,
178
- Tl as Microphone,
179
- Il as MilkTea,
180
- wl as Minus,
181
- El as Money,
182
- Ol as Monitor,
183
- yl as Moon,
184
- Nl as MoonNight,
185
- xl as More,
186
- Ul as MoreFilled,
187
- _l as MostlyCloudy,
188
- Gl as Mouse,
189
- Wl as Mug,
190
- bl as Mute,
191
- Hl as MuteNotification,
138
+ zo as Handbag,
139
+ Ko as Headset,
140
+ Qo as Help,
141
+ Zo as HelpFilled,
142
+ Xo as Hide,
143
+ Yo as Histogram,
144
+ jo as HomeFilled,
145
+ Jo as HotWater,
146
+ $o as House,
147
+ F as ICON_COLLECTIONS,
148
+ el as IceCream,
149
+ ol as IceCreamRound,
150
+ ll as IceCreamSquare,
151
+ tl as IceDrink,
152
+ il as IceTea,
153
+ f as Icon,
154
+ rl as InfoFilled,
155
+ al as Iphone,
156
+ nl as Key,
157
+ dl as KnifeFork,
158
+ cl as Lightning,
159
+ Cl as Link,
160
+ sl as List,
161
+ pl as Loading,
162
+ ml as Location,
163
+ ul as LocationFilled,
164
+ hl as LocationInformation,
165
+ Sl as Lock,
166
+ Fl as Lollipop,
167
+ gl as MagicStick,
168
+ Dl as Magnet,
169
+ Ll as Male,
170
+ fl as Management,
171
+ Pl as MapLocation,
172
+ Ml as Medal,
173
+ Bl as Memo,
174
+ Rl as Menu,
175
+ kl as Message,
176
+ Al as MessageBox,
177
+ Tl as Mic,
178
+ Il as Microphone,
179
+ wl as MilkTea,
180
+ El as Minus,
181
+ Ol as Money,
182
+ yl as Monitor,
183
+ Nl as Moon,
184
+ xl as MoonNight,
185
+ Ul as More,
186
+ _l as MoreFilled,
187
+ Gl as MostlyCloudy,
188
+ Wl as Mouse,
189
+ bl as Mug,
190
+ Hl as Mute,
191
+ vl as MuteNotification,
192
192
  Vl as NoSmoking,
193
193
  ql as Notebook,
194
- vl as Notification,
195
- zl as Odometer,
196
- Kl as OfficeBuilding,
197
- Ql as Open,
198
- Zl as Operation,
199
- Xl as Opportunity,
200
- Yl as Orange,
201
- p as PREFIX_ALIAS,
202
- m as PRESETS,
203
- jl as Paperclip,
204
- Jl as PartlyCloudy,
205
- $l as Pear,
206
- et as Phone,
207
- ot as PhoneFilled,
208
- lt as Picture,
209
- tt as PictureFilled,
210
- it as PictureRounded,
211
- rt as PieChart,
212
- at as Place,
213
- nt as Platform,
214
- dt as Plus,
215
- ct as Pointer,
216
- Ct as Position,
217
- st as Postcard,
218
- pt as Pouring,
219
- mt as Present,
220
- ut as PriceTag,
221
- ht as Printer,
222
- St as Promotion,
223
- Ft as QuartzWatch,
224
- gt as QuestionFilled,
194
+ zl as Notification,
195
+ Kl as Odometer,
196
+ Ql as OfficeBuilding,
197
+ Zl as Open,
198
+ Xl as Operation,
199
+ Yl as Opportunity,
200
+ jl as Orange,
201
+ m as PREFIX_ALIAS,
202
+ u as PRESETS,
203
+ Jl as Paperclip,
204
+ $l as PartlyCloudy,
205
+ et as Pear,
206
+ ot as Phone,
207
+ lt as PhoneFilled,
208
+ tt as Picture,
209
+ it as PictureFilled,
210
+ rt as PictureRounded,
211
+ at as PieChart,
212
+ nt as Place,
213
+ dt as Platform,
214
+ ct as Plus,
215
+ Ct as Pointer,
216
+ st as Position,
217
+ pt as Postcard,
218
+ mt as Pouring,
219
+ ut as Present,
220
+ ht as PriceTag,
221
+ St as Printer,
222
+ Ft as Promotion,
223
+ gt as QuartzWatch,
224
+ Dt as QuestionFilled,
225
225
  t as RECOMMENDED_COLLECTIONS,
226
- Dt as Rank,
227
- Lt as Reading,
228
- ft as ReadingLamp,
229
- Pt as Refresh,
230
- Mt as RefreshLeft,
231
- Bt as RefreshRight,
232
- Rt as Refrigerator,
233
- kt as Remove,
234
- At as RemoveFilled,
235
- Tt as Right,
236
- It as ScaleToOriginal,
237
- wt as School,
238
- Et as Scissor,
239
- Ot as Search,
240
- yt as Select,
241
- Nt as Sell,
242
- xt as SemiSelect,
243
- Ut as Service,
244
- _t as SetUp,
245
- Gt as Setting,
246
- Wt as Share,
247
- bt as Ship,
248
- Ht as Shop,
226
+ Lt as Rank,
227
+ ft as Reading,
228
+ Pt as ReadingLamp,
229
+ Mt as Refresh,
230
+ Bt as RefreshLeft,
231
+ Rt as RefreshRight,
232
+ kt as Refrigerator,
233
+ At as Remove,
234
+ Tt as RemoveFilled,
235
+ It as Right,
236
+ wt as ScaleToOriginal,
237
+ Et as School,
238
+ Ot as Scissor,
239
+ yt as Search,
240
+ Nt as Select,
241
+ xt as Sell,
242
+ Ut as SemiSelect,
243
+ _t as Service,
244
+ Gt as SetUp,
245
+ Wt as Setting,
246
+ bt as Share,
247
+ Ht as Ship,
248
+ vt as Shop,
249
249
  Vt as ShoppingBag,
250
250
  qt as ShoppingCart,
251
- vt as ShoppingCartFull,
252
- zt as ShoppingTrolley,
253
- Kt as Smoking,
254
- Qt as Soccer,
255
- Zt as SoldOut,
256
- Xt as Sort,
257
- Yt as SortDown,
258
- jt as SortUp,
259
- Jt as Stamp,
260
- $t as Star,
261
- ei as StarFilled,
262
- oi as Stopwatch,
263
- li as SuccessFilled,
264
- ti as Sugar,
265
- ii as Suitcase,
266
- ri as SuitcaseLine,
267
- ai as Sunny,
268
- ni as Sunrise,
269
- di as Sunset,
270
- ci as Switch,
271
- Ci as SwitchButton,
272
- si as SwitchFilled,
273
- pi as TakeawayBox,
274
- mi as Ticket,
275
- ui as Tickets,
276
- hi as Timer,
277
- Si as ToiletPaper,
278
- Fi as Tools,
279
- gi as Top,
280
- Di as TopLeft,
281
- Li as TopRight,
282
- fi as TrendCharts,
283
- Pi as Trophy,
284
- Mi as TrophyBase,
285
- Bi as TurnOff,
286
- Ri as Umbrella,
287
- ki as Unlock,
288
- Ai as Upload,
289
- Ti as UploadFilled,
290
- Ii as User,
291
- wi as UserFilled,
292
- Ei as Van,
293
- Oi as VideoCamera,
294
- yi as VideoCameraFilled,
295
- Ni as VideoPause,
296
- xi as VideoPlay,
297
- Ui as View,
298
- _i as Wallet,
299
- Gi as WalletFilled,
300
- Wi as WarnTriangleFilled,
301
- bi as Warning,
302
- Hi as WarningFilled,
251
+ zt as ShoppingCartFull,
252
+ Kt as ShoppingTrolley,
253
+ Qt as Smoking,
254
+ Zt as Soccer,
255
+ Xt as SoldOut,
256
+ Yt as Sort,
257
+ jt as SortDown,
258
+ Jt as SortUp,
259
+ $t as Stamp,
260
+ ei as Star,
261
+ oi as StarFilled,
262
+ li as Stopwatch,
263
+ ti as SuccessFilled,
264
+ ii as Sugar,
265
+ ri as Suitcase,
266
+ ai as SuitcaseLine,
267
+ ni as Sunny,
268
+ di as Sunrise,
269
+ ci as Sunset,
270
+ Ci as Switch,
271
+ si as SwitchButton,
272
+ pi as SwitchFilled,
273
+ mi as TakeawayBox,
274
+ ui as Ticket,
275
+ hi as Tickets,
276
+ Si as Timer,
277
+ Fi as ToiletPaper,
278
+ gi as Tools,
279
+ Di as Top,
280
+ Li as TopLeft,
281
+ fi as TopRight,
282
+ Pi as TrendCharts,
283
+ Mi as Trophy,
284
+ Bi as TrophyBase,
285
+ Ri as TurnOff,
286
+ ki as Umbrella,
287
+ Ai as Unlock,
288
+ Ti as Upload,
289
+ Ii as UploadFilled,
290
+ wi as User,
291
+ Ei as UserFilled,
292
+ Oi as Van,
293
+ yi as VideoCamera,
294
+ Ni as VideoCameraFilled,
295
+ xi as VideoPause,
296
+ Ui as VideoPlay,
297
+ _i as View,
298
+ Gi as Wallet,
299
+ Wi as WalletFilled,
300
+ bi as WarnTriangleFilled,
301
+ Hi as Warning,
302
+ vi as WarningFilled,
303
303
  Vi as Watch,
304
304
  qi as Watermelon,
305
- vi as WindPower,
306
- f as YhIcon,
307
- zi as ZoomIn,
308
- Ki as ZoomOut,
309
- P as __test__,
310
- Qi as createIconComponent,
311
- r as createIconifyComponent,
312
- F as getAllPrefixes,
313
- g as getCollection,
314
- a as getIconData,
315
- u as getPreset,
316
- Zi as iconComponentMeta,
317
- Xi as iconComponentProps,
318
- Yi as iconComponents,
319
- n as iconExists,
320
- d as parseIconName
305
+ zi as WindPower,
306
+ P as YhIcon,
307
+ Ki as ZoomIn,
308
+ Qi as ZoomOut,
309
+ M as __test__,
310
+ r as canResolve,
311
+ Zi as createIconComponent,
312
+ a as createIconifyComponent,
313
+ g as getAllPrefixes,
314
+ D as getCollection,
315
+ n as getIconData,
316
+ h as getPreset,
317
+ Xi as iconComponentMeta,
318
+ Yi as iconComponentProps,
319
+ ji as iconComponents,
320
+ d as iconExists,
321
+ c as parseIconName
321
322
  };
@@ -55,7 +55,13 @@ export { Icon as Iconify };
55
55
  */
56
56
  export declare function parseIconName(name: string): string;
57
57
  /**
58
- * 检查图标是否存在
58
+ * 同步检查图标格式是否可以被解析
59
+ * @param name - 图标名称
60
+ * @returns 是否符合解析格式
61
+ */
62
+ export declare function canResolve(name: string): boolean;
63
+ /**
64
+ * 检查图标是否存在(异步严格检查网络与缓存)
59
65
  * @param name - 图标名称
60
66
  * @returns 是否存在
61
67
  */
@@ -9,7 +9,7 @@
9
9
  * 3. 使用预注册的图标简写(如:<YhIcon name="home" />)
10
10
  */
11
11
  export * from './types';
12
- export { createIconifyComponent, parseIconName, iconExists, getIconData } from './iconify';
12
+ export { createIconifyComponent, parseIconName, iconExists, getIconData, canResolve } from './iconify';
13
13
  export type { IconifyProps } from './iconify';
14
14
  export * from './presets';
15
15
  export * from './collections';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yh-ui/icons",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "YH-UI Icons - High performance icon library with Iconify integration",
5
5
  "type": "module",
6
6
  "sideEffects": false,