@ichaingo/iconfont 1.3.82 → 1.3.83
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/index.js +11 -684
- package/package.json +4 -1
- package/vite.config.ts +9 -1
package/dist/index.js
CHANGED
|
@@ -1,689 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
7
|
-
var r = arguments[n];
|
|
8
|
-
for (var t in r) ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
9
|
-
}
|
|
10
|
-
return e;
|
|
11
|
-
}, T.apply(null, arguments);
|
|
12
|
-
}
|
|
13
|
-
function w(e) {
|
|
14
|
-
"@babel/helpers - typeof";
|
|
15
|
-
return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
16
|
-
return typeof n;
|
|
17
|
-
} : function(n) {
|
|
18
|
-
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
19
|
-
}, w(e);
|
|
20
|
-
}
|
|
21
|
-
function Be(e, n) {
|
|
22
|
-
if (w(e) != "object" || !e) return e;
|
|
23
|
-
var r = e[Symbol.toPrimitive];
|
|
24
|
-
if (r !== void 0) {
|
|
25
|
-
var t = r.call(e, n);
|
|
26
|
-
if (w(t) != "object") return t;
|
|
27
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
28
|
-
}
|
|
29
|
-
return (n === "string" ? String : Number)(e);
|
|
30
|
-
}
|
|
31
|
-
function Ue(e) {
|
|
32
|
-
var n = Be(e, "string");
|
|
33
|
-
return w(n) == "symbol" ? n : n + "";
|
|
34
|
-
}
|
|
35
|
-
function F(e, n, r) {
|
|
36
|
-
return (n = Ue(n)) in e ? Object.defineProperty(e, n, {
|
|
37
|
-
value: r,
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
configurable: !0,
|
|
40
|
-
writable: !0
|
|
41
|
-
}) : e[n] = r, e;
|
|
42
|
-
}
|
|
43
|
-
function ze(e, n) {
|
|
44
|
-
if (e == null) return {};
|
|
45
|
-
var r = {};
|
|
46
|
-
for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
|
|
47
|
-
if (n.indexOf(t) !== -1) continue;
|
|
48
|
-
r[t] = e[t];
|
|
49
|
-
}
|
|
50
|
-
return r;
|
|
51
|
-
}
|
|
52
|
-
function ie(e, n) {
|
|
53
|
-
if (e == null) return {};
|
|
54
|
-
var r, t, a = ze(e, n);
|
|
55
|
-
if (Object.getOwnPropertySymbols) {
|
|
56
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
57
|
-
for (t = 0; t < o.length; t++) r = o[t], n.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
58
|
-
}
|
|
59
|
-
return a;
|
|
60
|
-
}
|
|
61
|
-
function Ve(e) {
|
|
62
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
63
|
-
}
|
|
64
|
-
var L = { exports: {} };
|
|
65
|
-
/*!
|
|
66
|
-
Copyright (c) 2018 Jed Watson.
|
|
67
|
-
Licensed under the MIT License (MIT), see
|
|
68
|
-
http://jedwatson.github.io/classnames
|
|
69
|
-
*/
|
|
70
|
-
var K;
|
|
71
|
-
function qe() {
|
|
72
|
-
return K || (K = 1, (function(e) {
|
|
73
|
-
(function() {
|
|
74
|
-
var n = {}.hasOwnProperty;
|
|
75
|
-
function r() {
|
|
76
|
-
for (var o = "", i = 0; i < arguments.length; i++) {
|
|
77
|
-
var f = arguments[i];
|
|
78
|
-
f && (o = a(o, t(f)));
|
|
79
|
-
}
|
|
80
|
-
return o;
|
|
81
|
-
}
|
|
82
|
-
function t(o) {
|
|
83
|
-
if (typeof o == "string" || typeof o == "number")
|
|
84
|
-
return o;
|
|
85
|
-
if (typeof o != "object")
|
|
86
|
-
return "";
|
|
87
|
-
if (Array.isArray(o))
|
|
88
|
-
return r.apply(null, o);
|
|
89
|
-
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
90
|
-
return o.toString();
|
|
91
|
-
var i = "";
|
|
92
|
-
for (var f in o)
|
|
93
|
-
n.call(o, f) && o[f] && (i = a(i, f));
|
|
94
|
-
return i;
|
|
95
|
-
}
|
|
96
|
-
function a(o, i) {
|
|
97
|
-
return i ? o ? o + " " + i : o + i : o;
|
|
98
|
-
}
|
|
99
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
100
|
-
})();
|
|
101
|
-
})(L)), L.exports;
|
|
102
|
-
}
|
|
103
|
-
var We = qe();
|
|
104
|
-
const Q = /* @__PURE__ */ Ve(We);
|
|
105
|
-
function X(e, n) {
|
|
106
|
-
var r = Object.keys(e);
|
|
107
|
-
if (Object.getOwnPropertySymbols) {
|
|
108
|
-
var t = Object.getOwnPropertySymbols(e);
|
|
109
|
-
n && (t = t.filter(function(a) {
|
|
110
|
-
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
111
|
-
})), r.push.apply(r, t);
|
|
112
|
-
}
|
|
113
|
-
return r;
|
|
114
|
-
}
|
|
115
|
-
function N(e) {
|
|
116
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
117
|
-
var r = arguments[n] != null ? arguments[n] : {};
|
|
118
|
-
n % 2 ? X(Object(r), !0).forEach(function(t) {
|
|
119
|
-
F(e, t, r[t]);
|
|
120
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : X(Object(r)).forEach(function(t) {
|
|
121
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
return e;
|
|
125
|
-
}
|
|
126
|
-
function He() {
|
|
127
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
128
|
-
}
|
|
129
|
-
function Ke(e, n) {
|
|
130
|
-
if (!e)
|
|
131
|
-
return !1;
|
|
132
|
-
if (e.contains)
|
|
133
|
-
return e.contains(n);
|
|
134
|
-
for (var r = n; r; ) {
|
|
135
|
-
if (r === e)
|
|
136
|
-
return !0;
|
|
137
|
-
r = r.parentNode;
|
|
138
|
-
}
|
|
139
|
-
return !1;
|
|
140
|
-
}
|
|
141
|
-
var G = "data-rc-order", J = "data-rc-priority", Qe = "rc-util-key", D = /* @__PURE__ */ new Map();
|
|
142
|
-
function ae() {
|
|
143
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.mark;
|
|
144
|
-
return n ? n.startsWith("data-") ? n : "data-".concat(n) : Qe;
|
|
145
|
-
}
|
|
146
|
-
function B(e) {
|
|
147
|
-
if (e.attachTo)
|
|
148
|
-
return e.attachTo;
|
|
149
|
-
var n = document.querySelector("head");
|
|
150
|
-
return n || document.body;
|
|
151
|
-
}
|
|
152
|
-
function Xe(e) {
|
|
153
|
-
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
154
|
-
}
|
|
155
|
-
function U(e) {
|
|
156
|
-
return Array.from((D.get(e) || e).children).filter(function(n) {
|
|
157
|
-
return n.tagName === "STYLE";
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function ce(e) {
|
|
161
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
162
|
-
if (!He())
|
|
163
|
-
return null;
|
|
164
|
-
var r = n.csp, t = n.prepend, a = n.priority, o = a === void 0 ? 0 : a, i = Xe(t), f = i === "prependQueue", s = document.createElement("style");
|
|
165
|
-
s.setAttribute(G, i), f && o && s.setAttribute(J, "".concat(o)), r != null && r.nonce && (s.nonce = r == null ? void 0 : r.nonce), s.innerHTML = e;
|
|
166
|
-
var l = B(n), p = l.firstChild;
|
|
167
|
-
if (t) {
|
|
168
|
-
if (f) {
|
|
169
|
-
var g = (n.styles || U(l)).filter(function(h) {
|
|
170
|
-
if (!["prepend", "prependQueue"].includes(h.getAttribute(G)))
|
|
171
|
-
return !1;
|
|
172
|
-
var C = Number(h.getAttribute(J) || 0);
|
|
173
|
-
return o >= C;
|
|
174
|
-
});
|
|
175
|
-
if (g.length)
|
|
176
|
-
return l.insertBefore(s, g[g.length - 1].nextSibling), s;
|
|
177
|
-
}
|
|
178
|
-
l.insertBefore(s, p);
|
|
179
|
-
} else
|
|
180
|
-
l.appendChild(s);
|
|
181
|
-
return s;
|
|
182
|
-
}
|
|
183
|
-
function Ge(e) {
|
|
184
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = B(n);
|
|
185
|
-
return (n.styles || U(r)).find(function(t) {
|
|
186
|
-
return t.getAttribute(ae(n)) === e;
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
function Je(e, n) {
|
|
190
|
-
var r = D.get(e);
|
|
191
|
-
if (!r || !Ke(document, r)) {
|
|
192
|
-
var t = ce("", n), a = t.parentNode;
|
|
193
|
-
D.set(e, a), e.removeChild(t);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
function Ze(e, n) {
|
|
197
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = B(r), a = U(t), o = N(N({}, r), {}, {
|
|
198
|
-
styles: a
|
|
199
|
-
});
|
|
200
|
-
Je(t, o);
|
|
201
|
-
var i = Ge(n, o);
|
|
202
|
-
if (i) {
|
|
203
|
-
var f, s;
|
|
204
|
-
if ((f = o.csp) !== null && f !== void 0 && f.nonce && i.nonce !== ((s = o.csp) === null || s === void 0 ? void 0 : s.nonce)) {
|
|
205
|
-
var l;
|
|
206
|
-
i.nonce = (l = o.csp) === null || l === void 0 ? void 0 : l.nonce;
|
|
207
|
-
}
|
|
208
|
-
return i.innerHTML !== e && (i.innerHTML = e), i;
|
|
209
|
-
}
|
|
210
|
-
var p = ce(e, o);
|
|
211
|
-
return p.setAttribute(ae(o), n), p;
|
|
212
|
-
}
|
|
213
|
-
function ue(e) {
|
|
214
|
-
var n;
|
|
215
|
-
return e == null || (n = e.getRootNode) === null || n === void 0 ? void 0 : n.call(e);
|
|
216
|
-
}
|
|
217
|
-
function en(e) {
|
|
218
|
-
return ue(e) instanceof ShadowRoot;
|
|
219
|
-
}
|
|
220
|
-
function nn(e) {
|
|
221
|
-
return en(e) ? ue(e) : null;
|
|
222
|
-
}
|
|
223
|
-
var k = {}, z = [], rn = function(n) {
|
|
224
|
-
z.push(n);
|
|
225
|
-
};
|
|
226
|
-
function tn(e, n) {
|
|
227
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
228
|
-
var r = z.reduce(function(t, a) {
|
|
229
|
-
return a(t ?? "", "warning");
|
|
230
|
-
}, n);
|
|
231
|
-
r && console.error("Warning: ".concat(r));
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
function on(e, n) {
|
|
235
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
236
|
-
var r = z.reduce(function(t, a) {
|
|
237
|
-
return a(t ?? "", "note");
|
|
238
|
-
}, n);
|
|
239
|
-
r && console.warn("Note: ".concat(r));
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function an() {
|
|
243
|
-
k = {};
|
|
244
|
-
}
|
|
245
|
-
function se(e, n, r) {
|
|
246
|
-
!n && !k[r] && (e(!1, r), k[r] = !0);
|
|
247
|
-
}
|
|
248
|
-
function j(e, n) {
|
|
249
|
-
se(tn, e, n);
|
|
250
|
-
}
|
|
251
|
-
function cn(e, n) {
|
|
252
|
-
se(on, e, n);
|
|
253
|
-
}
|
|
254
|
-
j.preMessage = rn;
|
|
255
|
-
j.resetWarned = an;
|
|
256
|
-
j.noteOnce = cn;
|
|
257
|
-
function Z(e, n) {
|
|
258
|
-
j(e, "[@ant-design/icons] ".concat(n));
|
|
259
|
-
}
|
|
260
|
-
var un = {
|
|
261
|
-
width: "1em",
|
|
262
|
-
height: "1em",
|
|
263
|
-
fill: "currentColor",
|
|
264
|
-
"aria-hidden": "true",
|
|
265
|
-
focusable: "false"
|
|
266
|
-
}, sn = `
|
|
267
|
-
.anticon {
|
|
268
|
-
display: inline-flex;
|
|
269
|
-
align-items: center;
|
|
270
|
-
color: inherit;
|
|
271
|
-
font-style: normal;
|
|
272
|
-
line-height: 0;
|
|
273
|
-
text-align: center;
|
|
274
|
-
text-transform: none;
|
|
275
|
-
vertical-align: -0.125em;
|
|
276
|
-
text-rendering: optimizeLegibility;
|
|
277
|
-
-webkit-font-smoothing: antialiased;
|
|
278
|
-
-moz-osx-font-smoothing: grayscale;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.anticon > * {
|
|
282
|
-
line-height: 1;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.anticon svg {
|
|
286
|
-
display: inline-block;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.anticon::before {
|
|
290
|
-
display: none;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.anticon .anticon-icon {
|
|
294
|
-
display: block;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.anticon[tabindex] {
|
|
298
|
-
cursor: pointer;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.anticon-spin::before,
|
|
302
|
-
.anticon-spin {
|
|
303
|
-
display: inline-block;
|
|
304
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
305
|
-
animation: loadingCircle 1s infinite linear;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
@-webkit-keyframes loadingCircle {
|
|
309
|
-
100% {
|
|
310
|
-
-webkit-transform: rotate(360deg);
|
|
311
|
-
transform: rotate(360deg);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
@keyframes loadingCircle {
|
|
316
|
-
100% {
|
|
317
|
-
-webkit-transform: rotate(360deg);
|
|
318
|
-
transform: rotate(360deg);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
`, fn = function(n) {
|
|
322
|
-
var r = Fe(oe), t = r.csp, a = r.prefixCls, o = r.layer, i = sn;
|
|
323
|
-
a && (i = i.replace(/anticon/g, a)), o && (i = "@layer ".concat(o, ` {
|
|
324
|
-
`).concat(i, `
|
|
325
|
-
}`)), te(function() {
|
|
326
|
-
var f = n.current, s = nn(f);
|
|
327
|
-
Ze(i, "@ant-design-icons", {
|
|
328
|
-
prepend: !o,
|
|
329
|
-
csp: t,
|
|
330
|
-
attachTo: s
|
|
331
|
-
});
|
|
332
|
-
}, []);
|
|
333
|
-
}, A = { exports: {} }, d = {};
|
|
334
|
-
/**
|
|
335
|
-
* @license React
|
|
336
|
-
* react-is.production.min.js
|
|
337
|
-
*
|
|
338
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
339
|
-
*
|
|
340
|
-
* This source code is licensed under the MIT license found in the
|
|
341
|
-
* LICENSE file in the root directory of this source tree.
|
|
342
|
-
*/
|
|
343
|
-
var ee;
|
|
344
|
-
function ln() {
|
|
345
|
-
if (ee) return d;
|
|
346
|
-
ee = 1;
|
|
347
|
-
var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), f = Symbol.for("react.server_context"), s = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), y;
|
|
348
|
-
y = Symbol.for("react.module.reference");
|
|
349
|
-
function v(c) {
|
|
350
|
-
if (typeof c == "object" && c !== null) {
|
|
351
|
-
var E = c.$$typeof;
|
|
352
|
-
switch (E) {
|
|
353
|
-
case e:
|
|
354
|
-
switch (c = c.type, c) {
|
|
355
|
-
case r:
|
|
356
|
-
case a:
|
|
357
|
-
case t:
|
|
358
|
-
case l:
|
|
359
|
-
case p:
|
|
360
|
-
return c;
|
|
361
|
-
default:
|
|
362
|
-
switch (c = c && c.$$typeof, c) {
|
|
363
|
-
case f:
|
|
364
|
-
case i:
|
|
365
|
-
case s:
|
|
366
|
-
case h:
|
|
367
|
-
case g:
|
|
368
|
-
case o:
|
|
369
|
-
return c;
|
|
370
|
-
default:
|
|
371
|
-
return E;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
case n:
|
|
375
|
-
return E;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
return d.ContextConsumer = i, d.ContextProvider = o, d.Element = e, d.ForwardRef = s, d.Fragment = r, d.Lazy = h, d.Memo = g, d.Portal = n, d.Profiler = a, d.StrictMode = t, d.Suspense = l, d.SuspenseList = p, d.isAsyncMode = function() {
|
|
380
|
-
return !1;
|
|
381
|
-
}, d.isConcurrentMode = function() {
|
|
382
|
-
return !1;
|
|
383
|
-
}, d.isContextConsumer = function(c) {
|
|
384
|
-
return v(c) === i;
|
|
385
|
-
}, d.isContextProvider = function(c) {
|
|
386
|
-
return v(c) === o;
|
|
387
|
-
}, d.isElement = function(c) {
|
|
388
|
-
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
389
|
-
}, d.isForwardRef = function(c) {
|
|
390
|
-
return v(c) === s;
|
|
391
|
-
}, d.isFragment = function(c) {
|
|
392
|
-
return v(c) === r;
|
|
393
|
-
}, d.isLazy = function(c) {
|
|
394
|
-
return v(c) === h;
|
|
395
|
-
}, d.isMemo = function(c) {
|
|
396
|
-
return v(c) === g;
|
|
397
|
-
}, d.isPortal = function(c) {
|
|
398
|
-
return v(c) === n;
|
|
399
|
-
}, d.isProfiler = function(c) {
|
|
400
|
-
return v(c) === a;
|
|
401
|
-
}, d.isStrictMode = function(c) {
|
|
402
|
-
return v(c) === t;
|
|
403
|
-
}, d.isSuspense = function(c) {
|
|
404
|
-
return v(c) === l;
|
|
405
|
-
}, d.isSuspenseList = function(c) {
|
|
406
|
-
return v(c) === p;
|
|
407
|
-
}, d.isValidElementType = function(c) {
|
|
408
|
-
return typeof c == "string" || typeof c == "function" || c === r || c === a || c === t || c === l || c === p || c === C || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === g || c.$$typeof === o || c.$$typeof === i || c.$$typeof === s || c.$$typeof === y || c.getModuleId !== void 0);
|
|
409
|
-
}, d.typeOf = v, d;
|
|
410
|
-
}
|
|
411
|
-
var m = {};
|
|
412
|
-
/**
|
|
413
|
-
* @license React
|
|
414
|
-
* react-is.development.js
|
|
415
|
-
*
|
|
416
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
417
|
-
*
|
|
418
|
-
* This source code is licensed under the MIT license found in the
|
|
419
|
-
* LICENSE file in the root directory of this source tree.
|
|
420
|
-
*/
|
|
421
|
-
var ne;
|
|
422
|
-
function dn() {
|
|
423
|
-
return ne || (ne = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
424
|
-
var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), f = Symbol.for("react.server_context"), s = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), y = !1, v = !1, c = !1, E = !1, R = !1, _;
|
|
425
|
-
_ = Symbol.for("react.module.reference");
|
|
426
|
-
function P(u) {
|
|
427
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === a || R || u === t || u === l || u === p || E || u === C || y || v || c || typeof u == "object" && u !== null && (u.$$typeof === h || u.$$typeof === g || u.$$typeof === o || u.$$typeof === i || u.$$typeof === s || // This needs to include all possible module reference object
|
|
428
|
-
// types supported by any Flight configuration anywhere since
|
|
429
|
-
// we don't know which Flight build this will end up being used
|
|
430
|
-
// with.
|
|
431
|
-
u.$$typeof === _ || u.getModuleId !== void 0));
|
|
432
|
-
}
|
|
433
|
-
function S(u) {
|
|
434
|
-
if (typeof u == "object" && u !== null) {
|
|
435
|
-
var $ = u.$$typeof;
|
|
436
|
-
switch ($) {
|
|
437
|
-
case e:
|
|
438
|
-
var O = u.type;
|
|
439
|
-
switch (O) {
|
|
440
|
-
case r:
|
|
441
|
-
case a:
|
|
442
|
-
case t:
|
|
443
|
-
case l:
|
|
444
|
-
case p:
|
|
445
|
-
return O;
|
|
446
|
-
default:
|
|
447
|
-
var H = O && O.$$typeof;
|
|
448
|
-
switch (H) {
|
|
449
|
-
case f:
|
|
450
|
-
case i:
|
|
451
|
-
case s:
|
|
452
|
-
case h:
|
|
453
|
-
case g:
|
|
454
|
-
case o:
|
|
455
|
-
return H;
|
|
456
|
-
default:
|
|
457
|
-
return $;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
case n:
|
|
461
|
-
return $;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
var x = i, V = o, de = e, me = s, pe = r, ve = h, ye = g, ge = n, be = a, he = t, Se = l, Ce = p, q = !1, W = !1;
|
|
466
|
-
function Ee(u) {
|
|
467
|
-
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
468
|
-
}
|
|
469
|
-
function Re(u) {
|
|
470
|
-
return W || (W = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
471
|
-
}
|
|
472
|
-
function we(u) {
|
|
473
|
-
return S(u) === i;
|
|
474
|
-
}
|
|
475
|
-
function Pe(u) {
|
|
476
|
-
return S(u) === o;
|
|
477
|
-
}
|
|
478
|
-
function xe(u) {
|
|
479
|
-
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
480
|
-
}
|
|
481
|
-
function Te(u) {
|
|
482
|
-
return S(u) === s;
|
|
483
|
-
}
|
|
484
|
-
function _e(u) {
|
|
485
|
-
return S(u) === r;
|
|
486
|
-
}
|
|
487
|
-
function Oe(u) {
|
|
488
|
-
return S(u) === h;
|
|
489
|
-
}
|
|
490
|
-
function Ae(u) {
|
|
491
|
-
return S(u) === g;
|
|
492
|
-
}
|
|
493
|
-
function Ie(u) {
|
|
494
|
-
return S(u) === n;
|
|
495
|
-
}
|
|
496
|
-
function Ne(u) {
|
|
497
|
-
return S(u) === a;
|
|
498
|
-
}
|
|
499
|
-
function Me(u) {
|
|
500
|
-
return S(u) === t;
|
|
501
|
-
}
|
|
502
|
-
function je(u) {
|
|
503
|
-
return S(u) === l;
|
|
504
|
-
}
|
|
505
|
-
function $e(u) {
|
|
506
|
-
return S(u) === p;
|
|
507
|
-
}
|
|
508
|
-
m.ContextConsumer = x, m.ContextProvider = V, m.Element = de, m.ForwardRef = me, m.Fragment = pe, m.Lazy = ve, m.Memo = ye, m.Portal = ge, m.Profiler = be, m.StrictMode = he, m.Suspense = Se, m.SuspenseList = Ce, m.isAsyncMode = Ee, m.isConcurrentMode = Re, m.isContextConsumer = we, m.isContextProvider = Pe, m.isElement = xe, m.isForwardRef = Te, m.isFragment = _e, m.isLazy = Oe, m.isMemo = Ae, m.isPortal = Ie, m.isProfiler = Ne, m.isStrictMode = Me, m.isSuspense = je, m.isSuspenseList = $e, m.isValidElementType = P, m.typeOf = S;
|
|
509
|
-
})()), m;
|
|
510
|
-
}
|
|
511
|
-
var re;
|
|
512
|
-
function mn() {
|
|
513
|
-
return re || (re = 1, process.env.NODE_ENV === "production" ? A.exports = ln() : A.exports = dn()), A.exports;
|
|
514
|
-
}
|
|
515
|
-
mn();
|
|
516
|
-
function pn(e, n, r) {
|
|
517
|
-
var t = b.useRef({});
|
|
518
|
-
return (!("value" in t.current) || r(t.current.condition, n)) && (t.current.value = e(), t.current.condition = n), t.current.value;
|
|
519
|
-
}
|
|
520
|
-
Number(De.split(".")[0]);
|
|
521
|
-
var vn = function(n, r) {
|
|
522
|
-
typeof n == "function" ? n(r) : w(n) === "object" && n && "current" in n && (n.current = r);
|
|
523
|
-
}, yn = function() {
|
|
524
|
-
for (var n = arguments.length, r = new Array(n), t = 0; t < n; t++)
|
|
525
|
-
r[t] = arguments[t];
|
|
526
|
-
var a = r.filter(Boolean);
|
|
527
|
-
return a.length <= 1 ? a[0] : function(o) {
|
|
528
|
-
r.forEach(function(i) {
|
|
529
|
-
vn(i, o);
|
|
530
|
-
});
|
|
531
|
-
};
|
|
532
|
-
}, gn = function() {
|
|
533
|
-
for (var n = arguments.length, r = new Array(n), t = 0; t < n; t++)
|
|
534
|
-
r[t] = arguments[t];
|
|
535
|
-
return pn(function() {
|
|
536
|
-
return yn.apply(void 0, r);
|
|
537
|
-
}, r, function(a, o) {
|
|
538
|
-
return a.length !== o.length || a.every(function(i, f) {
|
|
539
|
-
return i !== o[f];
|
|
540
|
-
});
|
|
541
|
-
});
|
|
542
|
-
}, bn = ["className", "component", "viewBox", "spin", "rotate", "tabIndex", "onClick", "children"], fe = /* @__PURE__ */ b.forwardRef(function(e, n) {
|
|
543
|
-
var r = e.className, t = e.component, a = e.viewBox, o = e.spin, i = e.rotate, f = e.tabIndex, s = e.onClick, l = e.children, p = ie(e, bn), g = b.useRef(), h = gn(g, n);
|
|
544
|
-
Z(!!(t || l), "Should have `component` prop or `children`."), fn(g);
|
|
545
|
-
var C = b.useContext(oe), y = C.prefixCls, v = y === void 0 ? "anticon" : y, c = C.rootClassName, E = Q(c, v, F({}, "".concat(v, "-spin"), !!o && !!t), r), R = Q(F({}, "".concat(v, "-spin"), !!o)), _ = i ? {
|
|
546
|
-
msTransform: "rotate(".concat(i, "deg)"),
|
|
547
|
-
transform: "rotate(".concat(i, "deg)")
|
|
548
|
-
} : void 0, P = N(N({}, un), {}, {
|
|
549
|
-
className: R,
|
|
550
|
-
style: _,
|
|
551
|
-
viewBox: a
|
|
552
|
-
});
|
|
553
|
-
a || delete P.viewBox;
|
|
554
|
-
var S = function() {
|
|
555
|
-
return t ? /* @__PURE__ */ b.createElement(t, P, l) : l ? (Z(!!a || b.Children.count(l) === 1 && /* @__PURE__ */ b.isValidElement(l) && b.Children.only(l).type === "use", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."), /* @__PURE__ */ b.createElement("svg", T({}, P, {
|
|
556
|
-
viewBox: a
|
|
557
|
-
}), l)) : null;
|
|
558
|
-
}, x = f;
|
|
559
|
-
return x === void 0 && s && (x = -1), /* @__PURE__ */ b.createElement("span", T({
|
|
560
|
-
role: "img"
|
|
561
|
-
}, p, {
|
|
562
|
-
ref: h,
|
|
563
|
-
tabIndex: x,
|
|
564
|
-
onClick: s,
|
|
565
|
-
className: E
|
|
566
|
-
}), S());
|
|
567
|
-
});
|
|
568
|
-
fe.displayName = "AntdIcon";
|
|
569
|
-
var hn = ["type", "children"], le = /* @__PURE__ */ new Set();
|
|
570
|
-
function Sn(e) {
|
|
571
|
-
return !!(typeof e == "string" && e.length && !le.has(e));
|
|
572
|
-
}
|
|
573
|
-
function M(e) {
|
|
574
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = e[n];
|
|
575
|
-
if (Sn(r)) {
|
|
576
|
-
var t = document.createElement("script");
|
|
577
|
-
t.setAttribute("src", r), t.setAttribute("data-namespace", r), e.length > n + 1 && (t.onload = function() {
|
|
578
|
-
M(e, n + 1);
|
|
579
|
-
}, t.onerror = function() {
|
|
580
|
-
M(e, n + 1);
|
|
581
|
-
}), le.add(r), document.body.appendChild(t);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
function Cn() {
|
|
585
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.scriptUrl, r = e.extraCommonProps, t = r === void 0 ? {} : r;
|
|
586
|
-
n && typeof document < "u" && typeof window < "u" && typeof document.createElement == "function" && (Array.isArray(n) ? M(n.reverse()) : M([n]));
|
|
587
|
-
var a = /* @__PURE__ */ b.forwardRef(function(o, i) {
|
|
588
|
-
var f = o.type, s = o.children, l = ie(o, hn), p = null;
|
|
589
|
-
return o.type && (p = /* @__PURE__ */ b.createElement("use", {
|
|
590
|
-
xlinkHref: "#".concat(f)
|
|
591
|
-
})), s && (p = s), /* @__PURE__ */ b.createElement(fe, T({}, t, l, {
|
|
592
|
-
ref: i
|
|
593
|
-
}), p);
|
|
594
|
-
});
|
|
595
|
-
return a.displayName = "Iconfont", a;
|
|
596
|
-
}
|
|
597
|
-
function I(e) {
|
|
598
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
599
|
-
var r = arguments[n];
|
|
600
|
-
for (var t in r) e[t] = r[t];
|
|
601
|
-
}
|
|
602
|
-
return e;
|
|
603
|
-
}
|
|
604
|
-
var En = { read: function(e) {
|
|
605
|
-
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
606
|
-
}, write: function(e) {
|
|
607
|
-
return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
608
|
-
} };
|
|
609
|
-
function Y(e, n) {
|
|
610
|
-
function r(a, o, i) {
|
|
611
|
-
if (typeof document < "u") {
|
|
612
|
-
i = I({}, n, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), a = encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
613
|
-
var f = "";
|
|
614
|
-
for (var s in i) i[s] && (f += "; " + s, i[s] !== !0 && (f += "=" + i[s].split(";")[0]));
|
|
615
|
-
return document.cookie = a + "=" + e.write(o, a) + f;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
function t(a) {
|
|
619
|
-
if (!(typeof document > "u" || arguments.length && !a)) {
|
|
620
|
-
for (var o = document.cookie ? document.cookie.split("; ") : [], i = {}, f = 0; f < o.length; f++) {
|
|
621
|
-
var s = o[f].split("="), l = s.slice(1).join("=");
|
|
622
|
-
try {
|
|
623
|
-
var p = decodeURIComponent(s[0]);
|
|
624
|
-
if (i[p] = e.read(l, p), a === p) break;
|
|
625
|
-
} catch {
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
return a ? i[a] : i;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
return Object.create({ set: r, get: t, remove: function(a, o) {
|
|
632
|
-
r(a, "", I({}, o, { expires: -1 }));
|
|
633
|
-
}, withAttributes: function(a) {
|
|
634
|
-
return Y(this.converter, I({}, this.attributes, a));
|
|
635
|
-
}, withConverter: function(a) {
|
|
636
|
-
return Y(I({}, this.converter, a), this.attributes);
|
|
637
|
-
} }, { attributes: { value: Object.freeze(n) }, converter: { value: Object.freeze(e) } });
|
|
638
|
-
}
|
|
639
|
-
Y(En, { path: "/" });
|
|
640
|
-
var Rn = (e, n, r, t, a, o, i, f) => {
|
|
641
|
-
let s = document.documentElement, l = ["light", "dark"];
|
|
642
|
-
function p(y) {
|
|
643
|
-
(Array.isArray(e) ? e : [e]).forEach((v) => {
|
|
644
|
-
let c = v === "class", E = c && o ? a.map((R) => o[R] || R) : a;
|
|
645
|
-
c ? (s.classList.remove(...E), s.classList.add(o && o[y] ? o[y] : y)) : s.setAttribute(v, y);
|
|
646
|
-
}), g(y);
|
|
647
|
-
}
|
|
648
|
-
function g(y) {
|
|
649
|
-
f && l.includes(y) && (s.style.colorScheme = y);
|
|
650
|
-
}
|
|
651
|
-
function h() {
|
|
652
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
653
|
-
}
|
|
654
|
-
function C(y) {
|
|
655
|
-
let v = document.cookie.match(new RegExp("(^| )" + y + "=([^;]+)"));
|
|
656
|
-
if (v) return decodeURIComponent(v[2]);
|
|
657
|
-
}
|
|
658
|
-
if (t) p(t);
|
|
659
|
-
else try {
|
|
660
|
-
let y = C(n) || r, v = i && y === "system" ? h() : y;
|
|
661
|
-
p(v);
|
|
662
|
-
} catch {
|
|
663
|
-
}
|
|
664
|
-
}, wn = b.createContext(void 0), Pn = { setTheme: (e) => {
|
|
665
|
-
}, themes: [] }, xn = () => {
|
|
666
|
-
var e;
|
|
667
|
-
return (e = b.useContext(wn)) != null ? e : Pn;
|
|
668
|
-
};
|
|
669
|
-
b.memo(({ forcedTheme: e, storageKey: n, attribute: r, enableSystem: t, enableColorScheme: a, defaultTheme: o, value: i, themes: f, nonce: s, scriptProps: l }) => {
|
|
670
|
-
let p = JSON.stringify([r, n, o, e, f, i, t, a]).slice(1, -1);
|
|
671
|
-
return b.createElement("script", { ...l, suppressHydrationWarning: !0, nonce: typeof window > "u" ? s : "", dangerouslySetInnerHTML: { __html: `(${Rn.toString()})(${p})` } });
|
|
672
|
-
});
|
|
673
|
-
/*! Bundled license information:
|
|
674
|
-
|
|
675
|
-
js-cookie/dist/js.cookie.mjs:
|
|
676
|
-
(*! js-cookie v3.0.5 | MIT *)
|
|
677
|
-
*/
|
|
678
|
-
const Tn = Cn({
|
|
1
|
+
'use client';
|
|
2
|
+
import { useState as a, useEffect as f, createElement as l } from "react";
|
|
3
|
+
import { createFromIconfontCN as y } from "@ant-design/icons";
|
|
4
|
+
import { useTheme as T } from "@ichaingo/next-themes";
|
|
5
|
+
const h = y({
|
|
679
6
|
scriptUrl: "//cdn.ichaingo.com/common/iconfont/20251024/iconfont.js"
|
|
680
7
|
// 在 iconfont.cn 上生成
|
|
681
|
-
}),
|
|
682
|
-
const { type:
|
|
683
|
-
return
|
|
684
|
-
|
|
685
|
-
}, [
|
|
8
|
+
}), F = (r) => {
|
|
9
|
+
const { type: e, lightType: c, darkType: s, ...m } = r, { resolvedTheme: i, theme: p } = T(), t = i || p, [o, n] = a(e);
|
|
10
|
+
return f(() => {
|
|
11
|
+
n(t === "dark" ? s || e : c || e);
|
|
12
|
+
}, [t]), /* @__PURE__ */ l(h, { ...m, type: o, key: o });
|
|
686
13
|
};
|
|
687
14
|
export {
|
|
688
|
-
|
|
15
|
+
F as default
|
|
689
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/iconfont",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.83",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -20,5 +20,8 @@
|
|
|
20
20
|
"next": "^15.1.6",
|
|
21
21
|
"@ichaingo/next-themes": "^0.4.11",
|
|
22
22
|
"@ant-design/icons": "^5.5.2"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"rollup-plugin-preserve-use-client": "^1.0.0"
|
|
23
26
|
}
|
|
24
27
|
}
|
package/vite.config.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { defineConfig } from 'vite';
|
|
|
3
3
|
import react from '@vitejs/plugin-react';
|
|
4
4
|
import dts from 'vite-plugin-dts';
|
|
5
5
|
import * as path from 'path';
|
|
6
|
+
import preserveUseClientDirective from 'rollup-plugin-preserve-use-client';
|
|
6
7
|
|
|
7
8
|
export default defineConfig(() => ({
|
|
8
9
|
root: __dirname,
|
|
9
10
|
cacheDir: '../../node_modules/.vite/packages/iconfont',
|
|
10
11
|
plugins: [
|
|
11
12
|
react(),
|
|
13
|
+
preserveUseClientDirective(),
|
|
12
14
|
dts({
|
|
13
15
|
entryRoot: 'src',
|
|
14
16
|
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
|
@@ -38,7 +40,13 @@ export default defineConfig(() => ({
|
|
|
38
40
|
},
|
|
39
41
|
rollupOptions: {
|
|
40
42
|
// External packages that should not be bundled into your library.
|
|
41
|
-
external: [
|
|
43
|
+
external: [
|
|
44
|
+
'react',
|
|
45
|
+
'react-dom',
|
|
46
|
+
'react/jsx-runtime',
|
|
47
|
+
'@ant-design/icons',
|
|
48
|
+
'@ichaingo/next-themes',
|
|
49
|
+
],
|
|
42
50
|
},
|
|
43
51
|
},
|
|
44
52
|
test: {
|