@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 +41 -24
- package/dist/index.mjs +305 -304
- package/dist/src/iconify.d.ts +7 -1
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/iconify.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Icon as
|
|
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
|
-
|
|
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
|
|
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(
|
|
21
|
+
if (typeof document > "u" || document.getElementById(f)) return;
|
|
22
22
|
const t = document.createElement("style");
|
|
23
|
-
t.id =
|
|
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:
|
|
26
|
+
const { icon: n, size: e, color: o, spin: y, rotate: a } = t, r = {}, i = [];
|
|
27
27
|
if (e) {
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
const s = typeof e == "number" ? `${e}px` : e;
|
|
29
|
+
r.width = s, r.height = s, r.fontSize = s;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
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(
|
|
34
|
+
style: Object.keys(r).length > 0 ? r : void 0
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function S() {
|
|
38
38
|
return (t) => {
|
|
39
39
|
const n = I(t);
|
|
40
|
-
return h(
|
|
40
|
+
return h(p, n);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function c(t) {
|
|
44
44
|
return t.includes(":") ? t : t.includes("/") ? t.replace("/", ":") : `mdi:${t}`;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
function b(t) {
|
|
47
|
+
if (typeof t != "string" || !t.trim())
|
|
48
|
+
return !1;
|
|
47
49
|
try {
|
|
48
|
-
|
|
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
|
|
54
|
-
|
|
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
|
|
58
|
-
if (!
|
|
73
|
+
const o = await u(n);
|
|
74
|
+
if (!o)
|
|
59
75
|
throw new Error(`Icon not found: ${t}`);
|
|
60
|
-
return
|
|
76
|
+
return o;
|
|
61
77
|
} catch {
|
|
62
78
|
throw new Error(`Failed to load icon: ${t}`);
|
|
63
79
|
}
|
|
64
80
|
}
|
|
65
81
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
E as
|
|
69
|
-
|
|
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 {
|
|
3
|
-
import { COMMON_ICONS as
|
|
4
|
-
import { ICON_COLLECTIONS as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { AddLocation as
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
83
|
+
p as DEFAULT_ENABLED_PRESETS,
|
|
84
84
|
qe as DataAnalysis,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
g as
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
Xi as
|
|
318
|
-
Yi as
|
|
319
|
-
|
|
320
|
-
d as
|
|
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
|
};
|
package/dist/src/iconify.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|