@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.
Files changed (2) hide show
  1. package/dist/index.js +126 -121
  2. 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 ke, useState as De, createElement as Be } from "react";
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 x() {
5
- return x = Object.assign ? Object.assign.bind() : function(e) {
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
- }, x.apply(null, arguments);
11
+ }, T.apply(null, arguments);
12
12
  }
13
- function R(e) {
13
+ function w(e) {
14
14
  "@babel/helpers - typeof";
15
- return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
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
- }, R(e);
19
+ }, w(e);
20
20
  }
21
- function Ye(e, n) {
22
- if (R(e) != "object" || !e) return e;
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 (R(t) != "object") return t;
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 ze(e) {
32
- var n = Ye(e, "string");
33
- return R(n) == "symbol" ? n : n + "";
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 = ze(n)) in e ? Object.defineProperty(e, 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 Ue(e, n) {
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 = Ue(e, n);
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 I(e) {
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 Z = "data-rc-order", G = "data-rc-priority", Qe = "rc-util-key", k = /* @__PURE__ */ new Map();
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 Y(e) {
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 z(e) {
156
- return Array.from((k.get(e) || e).children).filter(function(n) {
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(Z, i), f && o && s.setAttribute(G, "".concat(o)), r != null && r.nonce && (s.nonce = r == null ? void 0 : r.nonce), s.innerHTML = e;
166
- var l = Y(n), p = l.firstChild;
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 || z(l)).filter(function(h) {
170
- if (!["prepend", "prependQueue"].includes(h.getAttribute(Z)))
169
+ var g = (n.styles || U(l)).filter(function(h) {
170
+ if (!["prepend", "prependQueue"].includes(h.getAttribute(G)))
171
171
  return !1;
172
- var v = Number(h.getAttribute(G) || 0);
173
- return o >= v;
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 Ze(e) {
184
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Y(n);
185
- return (n.styles || z(r)).find(function(t) {
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 Ge(e, n) {
190
- var r = k.get(e);
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
- k.set(e, a), e.removeChild(t);
193
+ D.set(e, a), e.removeChild(t);
194
194
  }
195
195
  }
196
- function Je(e, n) {
197
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = Y(r), a = z(t), o = I(I({}, r), {}, {
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
- Ge(t, o);
201
- var i = Ze(n, o);
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 D = {}, U = [], rn = function(n) {
224
- U.push(n);
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 = U.reduce(function(t, a) {
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 = U.reduce(function(t, a) {
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
- D = {};
243
+ k = {};
244
244
  }
245
245
  function se(e, n, r) {
246
- !n && !D[r] && (e(!1, r), D[r] = !0);
246
+ !n && !k[r] && (e(!1, r), k[r] = !0);
247
247
  }
248
- function M(e, n) {
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
- M.preMessage = rn;
255
- M.resetWarned = an;
256
- M.noteOnce = cn;
257
- function J(e, n) {
258
- M(e, "[@ant-design/icons] ".concat(n));
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
- Je(i, "@ant-design-icons", {
327
+ Ze(i, "@ant-design-icons", {
328
328
  prepend: !o,
329
329
  csp: t,
330
330
  attachTo: s
331
331
  });
332
332
  }, []);
333
- }, O = { exports: {} }, d = {};
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"), v = Symbol.for("react.offscreen"), C;
348
- C = Symbol.for("react.module.reference");
349
- function y(c) {
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 y(c) === i;
384
+ return v(c) === i;
385
385
  }, d.isContextProvider = function(c) {
386
- return y(c) === o;
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 y(c) === s;
390
+ return v(c) === s;
391
391
  }, d.isFragment = function(c) {
392
- return y(c) === r;
392
+ return v(c) === r;
393
393
  }, d.isLazy = function(c) {
394
- return y(c) === h;
394
+ return v(c) === h;
395
395
  }, d.isMemo = function(c) {
396
- return y(c) === g;
396
+ return v(c) === g;
397
397
  }, d.isPortal = function(c) {
398
- return y(c) === n;
398
+ return v(c) === n;
399
399
  }, d.isProfiler = function(c) {
400
- return y(c) === a;
400
+ return v(c) === a;
401
401
  }, d.isStrictMode = function(c) {
402
- return y(c) === t;
402
+ return v(c) === t;
403
403
  }, d.isSuspense = function(c) {
404
- return y(c) === l;
404
+ return v(c) === l;
405
405
  }, d.isSuspenseList = function(c) {
406
- return y(c) === p;
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 === v || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === g || c.$$typeof === o || c.$$typeof === i || c.$$typeof === s || c.$$typeof === C || c.getModuleId !== void 0);
409
- }, d.typeOf = y, d;
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"), v = Symbol.for("react.offscreen"), C = !1, y = !1, c = !1, E = !1, j = !1, T;
425
- T = Symbol.for("react.module.reference");
426
- function w(u) {
427
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === a || j || u === t || u === l || u === p || E || u === v || C || y || 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
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 === T || u.getModuleId !== void 0));
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 _ = u.type;
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 = _ && _.$$typeof;
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 P = 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;
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 = P, 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 = w, m.typeOf = S;
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" ? O.exports = ln() : O.exports = dn()), O.exports;
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(ke.split(".")[0]);
520
+ Number(De.split(".")[0]);
521
521
  var vn = function(n, r) {
522
- typeof n == "function" ? n(r) : R(n) === "object" && n && "current" in n && (n.current = 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
- J(!!(t || l), "Should have `component` prop or `children`."), fn(g);
545
- var v = b.useContext(oe), C = v.prefixCls, y = C === void 0 ? "anticon" : C, c = v.rootClassName, E = Q(c, y, F({}, "".concat(y, "-spin"), !!o && !!t), r), j = Q(F({}, "".concat(y, "-spin"), !!o)), T = i ? {
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, w = I(I({}, un), {}, {
549
- className: j,
550
- style: T,
548
+ } : void 0, P = N(N({}, un), {}, {
549
+ className: R,
550
+ style: _,
551
551
  viewBox: a
552
552
  });
553
- a || delete w.viewBox;
553
+ a || delete P.viewBox;
554
554
  var S = function() {
555
- return t ? /* @__PURE__ */ b.createElement(t, w, l) : l ? (J(!!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", x({}, w, {
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
- }, P = f;
559
- return P === void 0 && s && (P = -1), /* @__PURE__ */ b.createElement("span", x({
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: P,
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 N(e) {
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
- N(e, n + 1);
578
+ M(e, n + 1);
579
579
  }, t.onerror = function() {
580
- N(e, n + 1);
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) ? N(n.reverse()) : N([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, x({}, t, l, {
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 A(e) {
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 B(e, n) {
609
+ function Y(e, n) {
610
610
  function r(a, o, i) {
611
611
  if (typeof document < "u") {
612
- i = A({}, 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);
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, "", A({}, o, { expires: -1 }));
632
+ r(a, "", I({}, o, { expires: -1 }));
633
633
  }, withAttributes: function(a) {
634
- return B(this.converter, A({}, this.attributes, a));
634
+ return Y(this.converter, I({}, this.attributes, a));
635
635
  }, withConverter: function(a) {
636
- return B(A({}, this.converter, a), this.attributes);
636
+ return Y(I({}, this.converter, a), this.attributes);
637
637
  } }, { attributes: { value: Object.freeze(n) }, converter: { value: Object.freeze(e) } });
638
638
  }
639
- var Rn = B(En, { path: "/" }), wn = (e, n, r, t, a, o, i, f) => {
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(v) {
642
- (Array.isArray(e) ? e : [e]).forEach((C) => {
643
- let y = C === "class", c = y && o ? a.map((E) => o[E] || E) : a;
644
- y ? (s.classList.remove(...c), s.classList.add(o && o[v] ? o[v] : v)) : s.setAttribute(C, v);
645
- }), g(v);
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(v) {
648
- f && l.includes(v) && (s.style.colorScheme = v);
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 v = Rn.get(n) || localStorage.getItem(n) || r, C = i && v === "system" ? h() : v;
656
- p(C);
660
+ let y = C(n) || r, v = i && y === "system" ? h() : y;
661
+ p(v);
657
662
  } catch {
658
663
  }
659
- }, Pn = b.createContext(void 0), xn = { setTheme: (e) => {
660
- }, themes: [] }, Tn = () => {
664
+ }, wn = b.createContext(void 0), Pn = { setTheme: (e) => {
665
+ }, themes: [] }, xn = () => {
661
666
  var e;
662
- return (e = b.useContext(Pn)) != null ? e : xn;
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: `(${wn.toString()})(${p})` } });
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 _n = Cn({
678
+ const Tn = Cn({
674
679
  scriptUrl: "//cdn.ichaingo.com/common/iconfont/20250925/iconfont.js"
675
680
  // 在 iconfont.cn 上生成
676
- }), An = (e) => {
677
- const { type: n, lightType: r, darkType: t, ...a } = e, { resolvedTheme: o, theme: i } = Tn(), f = o || i, [s, l] = De(n);
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__ */ Be(_n, { ...a, type: s, key: s });
685
+ }, [f]), /* @__PURE__ */ Ye(Tn, { ...a, type: s, key: s });
681
686
  };
682
687
  export {
683
- An as default
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.6",
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.4",
21
+ "@ichaingo/next-themes": "^0.4.11",
22
22
  "@ant-design/icons": "^5.5.2"
23
23
  }
24
24
  }