@ichaingo/iconfont 1.3.6 → 1.3.71
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 +126 -121
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import * as b from "react";
|
|
2
|
-
import { createContext as Le, useContext as Fe, useEffect as te, version as
|
|
2
|
+
import { createContext as Le, useContext as Fe, useEffect as te, version as De, useState as ke, createElement as Ye } from "react";
|
|
3
3
|
var oe = /* @__PURE__ */ Le({});
|
|
4
|
-
function
|
|
5
|
-
return
|
|
4
|
+
function T() {
|
|
5
|
+
return T = Object.assign ? Object.assign.bind() : function(e) {
|
|
6
6
|
for (var n = 1; n < arguments.length; n++) {
|
|
7
7
|
var r = arguments[n];
|
|
8
8
|
for (var t in r) ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
9
9
|
}
|
|
10
10
|
return e;
|
|
11
|
-
},
|
|
11
|
+
}, T.apply(null, arguments);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function w(e) {
|
|
14
14
|
"@babel/helpers - typeof";
|
|
15
|
-
return
|
|
15
|
+
return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
16
16
|
return typeof n;
|
|
17
17
|
} : function(n) {
|
|
18
18
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
19
|
-
},
|
|
19
|
+
}, w(e);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
21
|
+
function Be(e, n) {
|
|
22
|
+
if (w(e) != "object" || !e) return e;
|
|
23
23
|
var r = e[Symbol.toPrimitive];
|
|
24
24
|
if (r !== void 0) {
|
|
25
25
|
var t = r.call(e, n);
|
|
26
|
-
if (
|
|
26
|
+
if (w(t) != "object") return t;
|
|
27
27
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
28
28
|
}
|
|
29
29
|
return (n === "string" ? String : Number)(e);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
var n =
|
|
33
|
-
return
|
|
31
|
+
function Ue(e) {
|
|
32
|
+
var n = Be(e, "string");
|
|
33
|
+
return w(n) == "symbol" ? n : n + "";
|
|
34
34
|
}
|
|
35
35
|
function F(e, n, r) {
|
|
36
|
-
return (n =
|
|
36
|
+
return (n = Ue(n)) in e ? Object.defineProperty(e, n, {
|
|
37
37
|
value: r,
|
|
38
38
|
enumerable: !0,
|
|
39
39
|
configurable: !0,
|
|
40
40
|
writable: !0
|
|
41
41
|
}) : e[n] = r, e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ze(e, n) {
|
|
44
44
|
if (e == null) return {};
|
|
45
45
|
var r = {};
|
|
46
46
|
for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
|
|
@@ -51,7 +51,7 @@ function Ue(e, n) {
|
|
|
51
51
|
}
|
|
52
52
|
function ie(e, n) {
|
|
53
53
|
if (e == null) return {};
|
|
54
|
-
var r, t, a =
|
|
54
|
+
var r, t, a = ze(e, n);
|
|
55
55
|
if (Object.getOwnPropertySymbols) {
|
|
56
56
|
var o = Object.getOwnPropertySymbols(e);
|
|
57
57
|
for (t = 0; t < o.length; t++) r = o[t], n.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
@@ -112,7 +112,7 @@ function X(e, n) {
|
|
|
112
112
|
}
|
|
113
113
|
return r;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function N(e) {
|
|
116
116
|
for (var n = 1; n < arguments.length; n++) {
|
|
117
117
|
var r = arguments[n] != null ? arguments[n] : {};
|
|
118
118
|
n % 2 ? X(Object(r), !0).forEach(function(t) {
|
|
@@ -138,12 +138,12 @@ function Ke(e, n) {
|
|
|
138
138
|
}
|
|
139
139
|
return !1;
|
|
140
140
|
}
|
|
141
|
-
var
|
|
141
|
+
var G = "data-rc-order", J = "data-rc-priority", Qe = "rc-util-key", D = /* @__PURE__ */ new Map();
|
|
142
142
|
function ae() {
|
|
143
143
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.mark;
|
|
144
144
|
return n ? n.startsWith("data-") ? n : "data-".concat(n) : Qe;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function B(e) {
|
|
147
147
|
if (e.attachTo)
|
|
148
148
|
return e.attachTo;
|
|
149
149
|
var n = document.querySelector("head");
|
|
@@ -152,8 +152,8 @@ function Y(e) {
|
|
|
152
152
|
function Xe(e) {
|
|
153
153
|
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return Array.from((
|
|
155
|
+
function U(e) {
|
|
156
|
+
return Array.from((D.get(e) || e).children).filter(function(n) {
|
|
157
157
|
return n.tagName === "STYLE";
|
|
158
158
|
});
|
|
159
159
|
}
|
|
@@ -162,15 +162,15 @@ function ce(e) {
|
|
|
162
162
|
if (!He())
|
|
163
163
|
return null;
|
|
164
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(
|
|
166
|
-
var l =
|
|
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
167
|
if (t) {
|
|
168
168
|
if (f) {
|
|
169
|
-
var g = (n.styles ||
|
|
170
|
-
if (!["prepend", "prependQueue"].includes(h.getAttribute(
|
|
169
|
+
var g = (n.styles || U(l)).filter(function(h) {
|
|
170
|
+
if (!["prepend", "prependQueue"].includes(h.getAttribute(G)))
|
|
171
171
|
return !1;
|
|
172
|
-
var
|
|
173
|
-
return o >=
|
|
172
|
+
var C = Number(h.getAttribute(J) || 0);
|
|
173
|
+
return o >= C;
|
|
174
174
|
});
|
|
175
175
|
if (g.length)
|
|
176
176
|
return l.insertBefore(s, g[g.length - 1].nextSibling), s;
|
|
@@ -180,25 +180,25 @@ function ce(e) {
|
|
|
180
180
|
l.appendChild(s);
|
|
181
181
|
return s;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r =
|
|
185
|
-
return (n.styles ||
|
|
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
186
|
return t.getAttribute(ae(n)) === e;
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
var r =
|
|
189
|
+
function Je(e, n) {
|
|
190
|
+
var r = D.get(e);
|
|
191
191
|
if (!r || !Ke(document, r)) {
|
|
192
192
|
var t = ce("", n), a = t.parentNode;
|
|
193
|
-
|
|
193
|
+
D.set(e, a), e.removeChild(t);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t =
|
|
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
198
|
styles: a
|
|
199
199
|
});
|
|
200
|
-
|
|
201
|
-
var i =
|
|
200
|
+
Je(t, o);
|
|
201
|
+
var i = Ge(n, o);
|
|
202
202
|
if (i) {
|
|
203
203
|
var f, s;
|
|
204
204
|
if ((f = o.csp) !== null && f !== void 0 && f.nonce && i.nonce !== ((s = o.csp) === null || s === void 0 ? void 0 : s.nonce)) {
|
|
@@ -220,12 +220,12 @@ function en(e) {
|
|
|
220
220
|
function nn(e) {
|
|
221
221
|
return en(e) ? ue(e) : null;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var k = {}, z = [], rn = function(n) {
|
|
224
|
+
z.push(n);
|
|
225
225
|
};
|
|
226
226
|
function tn(e, n) {
|
|
227
227
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
228
|
-
var r =
|
|
228
|
+
var r = z.reduce(function(t, a) {
|
|
229
229
|
return a(t ?? "", "warning");
|
|
230
230
|
}, n);
|
|
231
231
|
r && console.error("Warning: ".concat(r));
|
|
@@ -233,29 +233,29 @@ function tn(e, n) {
|
|
|
233
233
|
}
|
|
234
234
|
function on(e, n) {
|
|
235
235
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
236
|
-
var r =
|
|
236
|
+
var r = z.reduce(function(t, a) {
|
|
237
237
|
return a(t ?? "", "note");
|
|
238
238
|
}, n);
|
|
239
239
|
r && console.warn("Note: ".concat(r));
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
function an() {
|
|
243
|
-
|
|
243
|
+
k = {};
|
|
244
244
|
}
|
|
245
245
|
function se(e, n, r) {
|
|
246
|
-
!n && !
|
|
246
|
+
!n && !k[r] && (e(!1, r), k[r] = !0);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function j(e, n) {
|
|
249
249
|
se(tn, e, n);
|
|
250
250
|
}
|
|
251
251
|
function cn(e, n) {
|
|
252
252
|
se(on, e, n);
|
|
253
253
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
function
|
|
258
|
-
|
|
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
259
|
}
|
|
260
260
|
var un = {
|
|
261
261
|
width: "1em",
|
|
@@ -324,13 +324,13 @@ var un = {
|
|
|
324
324
|
`).concat(i, `
|
|
325
325
|
}`)), te(function() {
|
|
326
326
|
var f = n.current, s = nn(f);
|
|
327
|
-
|
|
327
|
+
Ze(i, "@ant-design-icons", {
|
|
328
328
|
prepend: !o,
|
|
329
329
|
csp: t,
|
|
330
330
|
attachTo: s
|
|
331
331
|
});
|
|
332
332
|
}, []);
|
|
333
|
-
},
|
|
333
|
+
}, A = { exports: {} }, d = {};
|
|
334
334
|
/**
|
|
335
335
|
* @license React
|
|
336
336
|
* react-is.production.min.js
|
|
@@ -344,9 +344,9 @@ var ee;
|
|
|
344
344
|
function ln() {
|
|
345
345
|
if (ee) return d;
|
|
346
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"),
|
|
348
|
-
|
|
349
|
-
function
|
|
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
350
|
if (typeof c == "object" && c !== null) {
|
|
351
351
|
var E = c.$$typeof;
|
|
352
352
|
switch (E) {
|
|
@@ -381,32 +381,32 @@ function ln() {
|
|
|
381
381
|
}, d.isConcurrentMode = function() {
|
|
382
382
|
return !1;
|
|
383
383
|
}, d.isContextConsumer = function(c) {
|
|
384
|
-
return
|
|
384
|
+
return v(c) === i;
|
|
385
385
|
}, d.isContextProvider = function(c) {
|
|
386
|
-
return
|
|
386
|
+
return v(c) === o;
|
|
387
387
|
}, d.isElement = function(c) {
|
|
388
388
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
389
389
|
}, d.isForwardRef = function(c) {
|
|
390
|
-
return
|
|
390
|
+
return v(c) === s;
|
|
391
391
|
}, d.isFragment = function(c) {
|
|
392
|
-
return
|
|
392
|
+
return v(c) === r;
|
|
393
393
|
}, d.isLazy = function(c) {
|
|
394
|
-
return
|
|
394
|
+
return v(c) === h;
|
|
395
395
|
}, d.isMemo = function(c) {
|
|
396
|
-
return
|
|
396
|
+
return v(c) === g;
|
|
397
397
|
}, d.isPortal = function(c) {
|
|
398
|
-
return
|
|
398
|
+
return v(c) === n;
|
|
399
399
|
}, d.isProfiler = function(c) {
|
|
400
|
-
return
|
|
400
|
+
return v(c) === a;
|
|
401
401
|
}, d.isStrictMode = function(c) {
|
|
402
|
-
return
|
|
402
|
+
return v(c) === t;
|
|
403
403
|
}, d.isSuspense = function(c) {
|
|
404
|
-
return
|
|
404
|
+
return v(c) === l;
|
|
405
405
|
}, d.isSuspenseList = function(c) {
|
|
406
|
-
return
|
|
406
|
+
return v(c) === p;
|
|
407
407
|
}, d.isValidElementType = function(c) {
|
|
408
|
-
return typeof c == "string" || typeof c == "function" || c === r || c === a || c === t || c === l || c === p || c ===
|
|
409
|
-
}, d.typeOf =
|
|
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
410
|
}
|
|
411
411
|
var m = {};
|
|
412
412
|
/**
|
|
@@ -421,30 +421,30 @@ var m = {};
|
|
|
421
421
|
var ne;
|
|
422
422
|
function dn() {
|
|
423
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"),
|
|
425
|
-
|
|
426
|
-
function
|
|
427
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === a ||
|
|
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
428
|
// types supported by any Flight configuration anywhere since
|
|
429
429
|
// we don't know which Flight build this will end up being used
|
|
430
430
|
// with.
|
|
431
|
-
u.$$typeof ===
|
|
431
|
+
u.$$typeof === _ || u.getModuleId !== void 0));
|
|
432
432
|
}
|
|
433
433
|
function S(u) {
|
|
434
434
|
if (typeof u == "object" && u !== null) {
|
|
435
435
|
var $ = u.$$typeof;
|
|
436
436
|
switch ($) {
|
|
437
437
|
case e:
|
|
438
|
-
var
|
|
439
|
-
switch (
|
|
438
|
+
var O = u.type;
|
|
439
|
+
switch (O) {
|
|
440
440
|
case r:
|
|
441
441
|
case a:
|
|
442
442
|
case t:
|
|
443
443
|
case l:
|
|
444
444
|
case p:
|
|
445
|
-
return
|
|
445
|
+
return O;
|
|
446
446
|
default:
|
|
447
|
-
var H =
|
|
447
|
+
var H = O && O.$$typeof;
|
|
448
448
|
switch (H) {
|
|
449
449
|
case f:
|
|
450
450
|
case i:
|
|
@@ -462,7 +462,7 @@ function dn() {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var
|
|
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
466
|
function Ee(u) {
|
|
467
467
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
468
468
|
}
|
|
@@ -505,21 +505,21 @@ function dn() {
|
|
|
505
505
|
function $e(u) {
|
|
506
506
|
return S(u) === p;
|
|
507
507
|
}
|
|
508
|
-
m.ContextConsumer =
|
|
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
509
|
})()), m;
|
|
510
510
|
}
|
|
511
511
|
var re;
|
|
512
512
|
function mn() {
|
|
513
|
-
return re || (re = 1, process.env.NODE_ENV === "production" ?
|
|
513
|
+
return re || (re = 1, process.env.NODE_ENV === "production" ? A.exports = ln() : A.exports = dn()), A.exports;
|
|
514
514
|
}
|
|
515
515
|
mn();
|
|
516
516
|
function pn(e, n, r) {
|
|
517
517
|
var t = b.useRef({});
|
|
518
518
|
return (!("value" in t.current) || r(t.current.condition, n)) && (t.current.value = e(), t.current.condition = n), t.current.value;
|
|
519
519
|
}
|
|
520
|
-
Number(
|
|
520
|
+
Number(De.split(".")[0]);
|
|
521
521
|
var vn = function(n, r) {
|
|
522
|
-
typeof n == "function" ? n(r) :
|
|
522
|
+
typeof n == "function" ? n(r) : w(n) === "object" && n && "current" in n && (n.current = r);
|
|
523
523
|
}, yn = function() {
|
|
524
524
|
for (var n = arguments.length, r = new Array(n), t = 0; t < n; t++)
|
|
525
525
|
r[t] = arguments[t];
|
|
@@ -541,26 +541,26 @@ var vn = function(n, r) {
|
|
|
541
541
|
});
|
|
542
542
|
}, bn = ["className", "component", "viewBox", "spin", "rotate", "tabIndex", "onClick", "children"], fe = /* @__PURE__ */ b.forwardRef(function(e, n) {
|
|
543
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
|
-
|
|
545
|
-
var
|
|
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
546
|
msTransform: "rotate(".concat(i, "deg)"),
|
|
547
547
|
transform: "rotate(".concat(i, "deg)")
|
|
548
|
-
} : void 0,
|
|
549
|
-
className:
|
|
550
|
-
style:
|
|
548
|
+
} : void 0, P = N(N({}, un), {}, {
|
|
549
|
+
className: R,
|
|
550
|
+
style: _,
|
|
551
551
|
viewBox: a
|
|
552
552
|
});
|
|
553
|
-
a || delete
|
|
553
|
+
a || delete P.viewBox;
|
|
554
554
|
var S = function() {
|
|
555
|
-
return t ? /* @__PURE__ */ b.createElement(t,
|
|
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
556
|
viewBox: a
|
|
557
557
|
}), l)) : null;
|
|
558
|
-
},
|
|
559
|
-
return
|
|
558
|
+
}, x = f;
|
|
559
|
+
return x === void 0 && s && (x = -1), /* @__PURE__ */ b.createElement("span", T({
|
|
560
560
|
role: "img"
|
|
561
561
|
}, p, {
|
|
562
562
|
ref: h,
|
|
563
|
-
tabIndex:
|
|
563
|
+
tabIndex: x,
|
|
564
564
|
onClick: s,
|
|
565
565
|
className: E
|
|
566
566
|
}), S());
|
|
@@ -570,31 +570,31 @@ var hn = ["type", "children"], le = /* @__PURE__ */ new Set();
|
|
|
570
570
|
function Sn(e) {
|
|
571
571
|
return !!(typeof e == "string" && e.length && !le.has(e));
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function M(e) {
|
|
574
574
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = e[n];
|
|
575
575
|
if (Sn(r)) {
|
|
576
576
|
var t = document.createElement("script");
|
|
577
577
|
t.setAttribute("src", r), t.setAttribute("data-namespace", r), e.length > n + 1 && (t.onload = function() {
|
|
578
|
-
|
|
578
|
+
M(e, n + 1);
|
|
579
579
|
}, t.onerror = function() {
|
|
580
|
-
|
|
580
|
+
M(e, n + 1);
|
|
581
581
|
}), le.add(r), document.body.appendChild(t);
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
function Cn() {
|
|
585
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) ?
|
|
586
|
+
n && typeof document < "u" && typeof window < "u" && typeof document.createElement == "function" && (Array.isArray(n) ? M(n.reverse()) : M([n]));
|
|
587
587
|
var a = /* @__PURE__ */ b.forwardRef(function(o, i) {
|
|
588
588
|
var f = o.type, s = o.children, l = ie(o, hn), p = null;
|
|
589
589
|
return o.type && (p = /* @__PURE__ */ b.createElement("use", {
|
|
590
590
|
xlinkHref: "#".concat(f)
|
|
591
|
-
})), s && (p = s), /* @__PURE__ */ b.createElement(fe,
|
|
591
|
+
})), s && (p = s), /* @__PURE__ */ b.createElement(fe, T({}, t, l, {
|
|
592
592
|
ref: i
|
|
593
593
|
}), p);
|
|
594
594
|
});
|
|
595
595
|
return a.displayName = "Iconfont", a;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function I(e) {
|
|
598
598
|
for (var n = 1; n < arguments.length; n++) {
|
|
599
599
|
var r = arguments[n];
|
|
600
600
|
for (var t in r) e[t] = r[t];
|
|
@@ -606,10 +606,10 @@ var En = { read: function(e) {
|
|
|
606
606
|
}, write: function(e) {
|
|
607
607
|
return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
608
608
|
} };
|
|
609
|
-
function
|
|
609
|
+
function Y(e, n) {
|
|
610
610
|
function r(a, o, i) {
|
|
611
611
|
if (typeof document < "u") {
|
|
612
|
-
i =
|
|
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
613
|
var f = "";
|
|
614
614
|
for (var s in i) i[s] && (f += "; " + s, i[s] !== !0 && (f += "=" + i[s].split(";")[0]));
|
|
615
615
|
return document.cookie = a + "=" + e.write(o, a) + f;
|
|
@@ -629,56 +629,61 @@ function B(e, n) {
|
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
return Object.create({ set: r, get: t, remove: function(a, o) {
|
|
632
|
-
r(a, "",
|
|
632
|
+
r(a, "", I({}, o, { expires: -1 }));
|
|
633
633
|
}, withAttributes: function(a) {
|
|
634
|
-
return
|
|
634
|
+
return Y(this.converter, I({}, this.attributes, a));
|
|
635
635
|
}, withConverter: function(a) {
|
|
636
|
-
return
|
|
636
|
+
return Y(I({}, this.converter, a), this.attributes);
|
|
637
637
|
} }, { attributes: { value: Object.freeze(n) }, converter: { value: Object.freeze(e) } });
|
|
638
638
|
}
|
|
639
|
-
|
|
639
|
+
Y(En, { path: "/" });
|
|
640
|
+
var Rn = (e, n, r, t, a, o, i, f) => {
|
|
640
641
|
let s = document.documentElement, l = ["light", "dark"];
|
|
641
|
-
function p(
|
|
642
|
-
(Array.isArray(e) ? e : [e]).forEach((
|
|
643
|
-
let
|
|
644
|
-
|
|
645
|
-
}), g(
|
|
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);
|
|
646
647
|
}
|
|
647
|
-
function g(
|
|
648
|
-
f && l.includes(
|
|
648
|
+
function g(y) {
|
|
649
|
+
f && l.includes(y) && (s.style.colorScheme = y);
|
|
649
650
|
}
|
|
650
651
|
function h() {
|
|
651
652
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
652
653
|
}
|
|
654
|
+
function C(y) {
|
|
655
|
+
let v = document.cookie.match(new RegExp("(^| )" + y + "=([^;]+)"));
|
|
656
|
+
if (v) return decodeURIComponent(v[2]);
|
|
657
|
+
}
|
|
653
658
|
if (t) p(t);
|
|
654
659
|
else try {
|
|
655
|
-
let
|
|
656
|
-
p(
|
|
660
|
+
let y = C(n) || r, v = i && y === "system" ? h() : y;
|
|
661
|
+
p(v);
|
|
657
662
|
} catch {
|
|
658
663
|
}
|
|
659
|
-
},
|
|
660
|
-
}, themes: [] },
|
|
664
|
+
}, wn = b.createContext(void 0), Pn = { setTheme: (e) => {
|
|
665
|
+
}, themes: [] }, xn = () => {
|
|
661
666
|
var e;
|
|
662
|
-
return (e = b.useContext(
|
|
667
|
+
return (e = b.useContext(wn)) != null ? e : Pn;
|
|
663
668
|
};
|
|
664
669
|
b.memo(({ forcedTheme: e, storageKey: n, attribute: r, enableSystem: t, enableColorScheme: a, defaultTheme: o, value: i, themes: f, nonce: s, scriptProps: l }) => {
|
|
665
670
|
let p = JSON.stringify([r, n, o, e, f, i, t, a]).slice(1, -1);
|
|
666
|
-
return b.createElement("script", { ...l, suppressHydrationWarning: !0, nonce: typeof window > "u" ? s : "", dangerouslySetInnerHTML: { __html: `(${
|
|
671
|
+
return b.createElement("script", { ...l, suppressHydrationWarning: !0, nonce: typeof window > "u" ? s : "", dangerouslySetInnerHTML: { __html: `(${Rn.toString()})(${p})` } });
|
|
667
672
|
});
|
|
668
673
|
/*! Bundled license information:
|
|
669
674
|
|
|
670
675
|
js-cookie/dist/js.cookie.mjs:
|
|
671
676
|
(*! js-cookie v3.0.5 | MIT *)
|
|
672
677
|
*/
|
|
673
|
-
const
|
|
678
|
+
const Tn = Cn({
|
|
674
679
|
scriptUrl: "//cdn.ichaingo.com/common/iconfont/20250925/iconfont.js"
|
|
675
680
|
// 在 iconfont.cn 上生成
|
|
676
|
-
}),
|
|
677
|
-
const { type: n, lightType: r, darkType: t, ...a } = e, { resolvedTheme: o, theme: i } =
|
|
681
|
+
}), On = (e) => {
|
|
682
|
+
const { type: n, lightType: r, darkType: t, ...a } = e, { resolvedTheme: o, theme: i } = xn(), f = o || i, [s, l] = ke(n);
|
|
678
683
|
return te(() => {
|
|
679
684
|
l(f === "dark" ? t || n : r || n);
|
|
680
|
-
}, [f]), /* @__PURE__ */
|
|
685
|
+
}, [f]), /* @__PURE__ */ Ye(Tn, { ...a, type: s, key: s });
|
|
681
686
|
};
|
|
682
687
|
export {
|
|
683
|
-
|
|
688
|
+
On as default
|
|
684
689
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/iconfont",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"react-dom": "^19.1.0",
|
|
19
19
|
"tailwind-merge": "^2.5.5",
|
|
20
20
|
"next": "^15.1.6",
|
|
21
|
-
"next-themes": "^0.4.
|
|
21
|
+
"@ichaingo/next-themes": "^0.4.11",
|
|
22
22
|
"@ant-design/icons": "^5.5.2"
|
|
23
23
|
}
|
|
24
24
|
}
|