@amateescu/portal-ui-components 0.0.28 → 0.0.30-beta

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 (45) hide show
  1. package/dist/Box-ZFRI9JCw.js +102 -0
  2. package/dist/Button-CNfTnafe.js +676 -0
  3. package/dist/ButtonBase-DWpUn0eT.js +965 -0
  4. package/dist/CircularProgress-D6RyizwS.js +247 -0
  5. package/dist/{EllipsisOutlined-DZsCEqiL.js → EllipsisOutlined-CzFuvGH_.js} +3 -3
  6. package/dist/{PurePanel-iUNZWTe_.js → PurePanel-CxlAi3G7.js} +3 -3
  7. package/dist/{Skeleton-CfEiGUkR.js → Skeleton-dypyF9G2.js} +2 -2
  8. package/dist/{UserInfoDropdown-CoZutJAR.js → UserInfoDropdown-DPyds49a.js} +763 -769
  9. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  10. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  11. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  12. package/dist/components/CustomButton/CustomButton.js +1 -1
  13. package/dist/components/CustomButton/CustomButton.stories.d.ts +1 -0
  14. package/dist/components/CustomButton/CustomButton.stories.js +21 -7
  15. package/dist/components/CustomFooter/CustomFooter.js +1 -1
  16. package/dist/components/CustomPagination/CustomPagination.js +484 -372
  17. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  18. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  19. package/dist/components/InfoModal/InfoModal.js +1 -1
  20. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  21. package/dist/components/KpiCard/KpiCard.js +355 -351
  22. package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
  23. package/dist/components/Login/Login.js +4638 -3844
  24. package/dist/components/Login/Login.stories.js +15693 -14785
  25. package/dist/components/SideMenu/SideMenu.js +1 -1
  26. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  27. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  28. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  29. package/dist/components/index.js +1 -1
  30. package/dist/{context-Crxhk7DD.js → context-Bk4VnwMB.js} +7 -7
  31. package/dist/createSimplePaletteValueFilter-rq2_biPF.js +3443 -0
  32. package/dist/createSvgIcon-jB7EUYpq.js +248 -0
  33. package/dist/{index-BxiDYyNJ.js → index-DLbr86ak.js} +511 -513
  34. package/dist/{index-DpDv68WZ.js → index-xh_JY2OQ.js} +1 -1
  35. package/dist/main.js +1 -1
  36. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
  37. package/dist/useSlot-CT4096EK.js +188 -0
  38. package/package.json +31 -31
  39. package/dist/Box-C1OwXVV-.js +0 -68
  40. package/dist/Button-CIvE-fcO.js +0 -355
  41. package/dist/ButtonBase-BeQnmGXr.js +0 -966
  42. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  43. package/dist/createSvgIcon-Db107M0j.js +0 -250
  44. package/dist/generateUtilityClasses-DY-qyzNG.js +0 -3427
  45. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +0 -46
@@ -2,11 +2,11 @@ import { jsx as ze, jsxs as Et } from "react/jsx-runtime";
2
2
  import { LoadingAnimation as ga } from "../LoadingAnimation/LoadingAnimation.js";
3
3
  import { cn as pa } from "../../portal-utils/cn.js";
4
4
  import * as l from "react";
5
- import ha, { createContext as $a, useState as Z, useRef as te, useEffect as me, useMemo as Gt } from "react";
6
- import { a as Me, V as ya, d as Sa, I as _a, _ as M, w as Pt, e as se, f as xa, h as nt, i as ne, c as A, j as Se, k as Ca, l as Tt, n as wa, p as He, q as Ea, r as Pa, s as Nt, t as Ta, v as rt, x as Na, g as Ht, m as Wt, u, y as it, z as ot, A as Vt, B as tt, D as Oa, E as Kt, F as We, o as Ra } from "../../context-Crxhk7DD.js";
7
- import { R as Ia, S as za } from "../../Skeleton-CfEiGUkR.js";
8
- import { E as Ma, M as La, D as Da, R as et, i as Ba, a as Ot, b as ja } from "../../EllipsisOutlined-DZsCEqiL.js";
9
- import { a as pe } from "../../objectWithoutPropertiesLoose-DYizGgyG.js";
5
+ import ha, { createContext as $a, useState as Q, useRef as te, useEffect as me, useMemo as Gt } from "react";
6
+ import { a as Me, V as ya, d as Sa, I as _a, _ as L, w as Pt, e as se, f as Ca, h as nt, i as ne, c as W, j as Se, k as xa, l as Tt, n as wa, p as He, q as Ea, r as Pa, s as Nt, t as Ta, v as rt, x as Na, g as Ht, m as Wt, u, y as it, z as ot, A as Vt, B as tt, D as Oa, E as Kt, F as We, o as Ra } from "../../context-Bk4VnwMB.js";
7
+ import { R as Ia, S as za } from "../../Skeleton-dypyF9G2.js";
8
+ import { E as Ma, M as La, D as Da, R as et, i as Ba, a as Ot, b as ja } from "../../EllipsisOutlined-CzFuvGH_.js";
9
+ import { _ as pe } from "../../objectWithoutPropertiesLoose-BTau6TOn.js";
10
10
  import '../../assets/KpiCard.css';const Aa = function(e, t) {
11
11
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
12
12
  var a, r;
@@ -28,25 +28,29 @@ var Ga = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
28
28
  process.env.NODE_ENV !== "production" && (Xt.displayName = "PlusOutlined");
29
29
  const Ve = /* @__PURE__ */ $a(null);
30
30
  var Wa = function(t) {
31
- var n = t.activeTabOffset, a = t.horizontal, r = t.rtl, o = t.indicator, c = o === void 0 ? {} : o, i = c.size, d = c.align, s = d === void 0 ? "center" : d, m = Z(), p = M(m, 2), y = p[0], E = p[1], B = te(), C = ha.useCallback(function(h) {
32
- return typeof i == "function" ? i(h) : typeof i == "number" ? i : h;
31
+ var n = t.activeTabOffset, a = t.horizontal, r = t.rtl, o = t.indicator, c = o === void 0 ? {} : o, i = c.size, d = c.align, s = d === void 0 ? "center" : d, m = Q(), h = L(m, 2), y = h[0], P = h[1], A = te(), x = ha.useCallback(function(g) {
32
+ return typeof i == "function" ? i(g) : typeof i == "number" ? i : g;
33
33
  }, [i]);
34
34
  function N() {
35
- Pt.cancel(B.current);
35
+ Pt.cancel(A.current);
36
36
  }
37
37
  return me(function() {
38
- var h = {};
38
+ var g = {};
39
39
  if (n)
40
40
  if (a) {
41
- h.width = C(n.width);
41
+ g.width = x(n.width);
42
42
  var $ = r ? "right" : "left";
43
- s === "start" && (h[$] = n[$]), s === "center" && (h[$] = n[$] + n.width / 2, h.transform = r ? "translateX(50%)" : "translateX(-50%)"), s === "end" && (h[$] = n[$] + n.width, h.transform = "translateX(-100%)");
43
+ s === "start" && (g[$] = n[$]), s === "center" && (g[$] = n[$] + n.width / 2, g.transform = r ? "translateX(50%)" : "translateX(-50%)"), s === "end" && (g[$] = n[$] + n.width, g.transform = "translateX(-100%)");
44
44
  } else
45
- h.height = C(n.height), s === "start" && (h.top = n.top), s === "center" && (h.top = n.top + n.height / 2, h.transform = "translateY(-50%)"), s === "end" && (h.top = n.top + n.height, h.transform = "translateY(-100%)");
46
- return N(), B.current = Pt(function() {
47
- E(h);
45
+ g.height = x(n.height), s === "start" && (g.top = n.top), s === "center" && (g.top = n.top + n.height / 2, g.transform = "translateY(-50%)"), s === "end" && (g.top = n.top + n.height, g.transform = "translateY(-100%)");
46
+ return N(), A.current = Pt(function() {
47
+ var w = y && g && Object.keys(g).every(function(M) {
48
+ var D = g[M], G = y[M];
49
+ return typeof D == "number" && typeof G == "number" ? Math.round(D) === Math.round(G) : D === G;
50
+ });
51
+ w || P(g);
48
52
  }), N;
49
- }, [n, a, r, s, C]), {
53
+ }, [JSON.stringify(n), a, r, s, x]), {
50
54
  style: y
51
55
  };
52
56
  }, Rt = {
@@ -63,8 +67,8 @@ function Va(e, t, n) {
63
67
  var m;
64
68
  s = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || Rt;
65
69
  }
66
- var p = r.get(d) || se({}, s);
67
- p.right = c - p.left - p.width, r.set(d, p);
70
+ var h = r.get(d) || se({}, s);
71
+ h.right = c - h.left - h.width, r.set(d, h);
68
72
  }
69
73
  return r;
70
74
  }, [e.map(function(a) {
@@ -72,7 +76,7 @@ function Va(e, t, n) {
72
76
  }).join("_"), t, n]);
73
77
  }
74
78
  function It(e, t) {
75
- var n = l.useRef(e), a = l.useState({}), r = M(a, 2), o = r[1];
79
+ var n = l.useRef(e), a = l.useState({}), r = L(a, 2), o = r[1];
76
80
  function c(i) {
77
81
  var d = typeof i == "function" ? i(n.current) : i;
78
82
  d !== n.current && t(d, n.current), n.current = d, o({});
@@ -81,35 +85,35 @@ function It(e, t) {
81
85
  }
82
86
  var Ka = 0.1, zt = 0.01, Ge = 20, Mt = Math.pow(0.995, Ge);
83
87
  function Xa(e, t) {
84
- var n = Z(), a = M(n, 2), r = a[0], o = a[1], c = Z(0), i = M(c, 2), d = i[0], s = i[1], m = Z(0), p = M(m, 2), y = p[0], E = p[1], B = Z(), C = M(B, 2), N = C[0], h = C[1], $ = te();
85
- function P(x) {
86
- var T = x.touches[0], g = T.screenX, S = T.screenY;
88
+ var n = Q(), a = L(n, 2), r = a[0], o = a[1], c = Q(0), i = L(c, 2), d = i[0], s = i[1], m = Q(0), h = L(m, 2), y = h[0], P = h[1], A = Q(), x = L(A, 2), N = x[0], g = x[1], $ = te();
89
+ function w(C) {
90
+ var T = C.touches[0], p = T.screenX, S = T.screenY;
87
91
  o({
88
- x: g,
92
+ x: p,
89
93
  y: S
90
94
  }), window.clearInterval($.current);
91
95
  }
92
- function G(x) {
96
+ function M(C) {
93
97
  if (r) {
94
- var T = x.touches[0], g = T.screenX, S = T.screenY;
98
+ var T = C.touches[0], p = T.screenX, S = T.screenY;
95
99
  o({
96
- x: g,
100
+ x: p,
97
101
  y: S
98
102
  });
99
- var f = g - r.x, _ = S - r.y;
103
+ var f = p - r.x, _ = S - r.y;
100
104
  t(f, _);
101
105
  var k = Date.now();
102
- s(k), E(k - d), h({
106
+ s(k), P(k - d), g({
103
107
  x: f,
104
108
  y: _
105
109
  });
106
110
  }
107
111
  }
108
- function K() {
109
- if (r && (o(null), h(null), N)) {
110
- var x = N.x / y, T = N.y / y, g = Math.abs(x), S = Math.abs(T);
111
- if (Math.max(g, S) < Ka) return;
112
- var f = x, _ = T;
112
+ function D() {
113
+ if (r && (o(null), g(null), N)) {
114
+ var C = N.x / y, T = N.y / y, p = Math.abs(C), S = Math.abs(T);
115
+ if (Math.max(p, S) < Ka) return;
116
+ var f = C, _ = T;
113
117
  $.current = window.setInterval(function() {
114
118
  if (Math.abs(f) < zt && Math.abs(_) < zt) {
115
119
  window.clearInterval($.current);
@@ -119,25 +123,25 @@ function Xa(e, t) {
119
123
  }, Ge);
120
124
  }
121
125
  }
122
- var X = te();
123
- function q(x) {
124
- var T = x.deltaX, g = x.deltaY, S = 0, f = Math.abs(T), _ = Math.abs(g);
125
- f === _ ? S = X.current === "x" ? T : g : f > _ ? (S = T, X.current = "x") : (S = g, X.current = "y"), t(-S, -S) && x.preventDefault();
126
+ var G = te();
127
+ function q(C) {
128
+ var T = C.deltaX, p = C.deltaY, S = 0, f = Math.abs(T), _ = Math.abs(p);
129
+ f === _ ? S = G.current === "x" ? T : p : f > _ ? (S = T, G.current = "x") : (S = p, G.current = "y"), t(-S, -S) && C.preventDefault();
126
130
  }
127
131
  var O = te(null);
128
132
  O.current = {
129
- onTouchStart: P,
130
- onTouchMove: G,
131
- onTouchEnd: K,
133
+ onTouchStart: w,
134
+ onTouchMove: M,
135
+ onTouchEnd: D,
132
136
  onWheel: q
133
137
  }, l.useEffect(function() {
134
- function x(f) {
138
+ function C(f) {
135
139
  O.current.onTouchStart(f);
136
140
  }
137
141
  function T(f) {
138
142
  O.current.onTouchMove(f);
139
143
  }
140
- function g(f) {
144
+ function p(f) {
141
145
  O.current.onTouchEnd(f);
142
146
  }
143
147
  function S(f) {
@@ -145,20 +149,20 @@ function Xa(e, t) {
145
149
  }
146
150
  return document.addEventListener("touchmove", T, {
147
151
  passive: !1
148
- }), document.addEventListener("touchend", g, {
152
+ }), document.addEventListener("touchend", p, {
149
153
  passive: !0
150
- }), e.current.addEventListener("touchstart", x, {
154
+ }), e.current.addEventListener("touchstart", C, {
151
155
  passive: !0
152
156
  }), e.current.addEventListener("wheel", S, {
153
157
  passive: !1
154
158
  }), function() {
155
- document.removeEventListener("touchmove", T), document.removeEventListener("touchend", g);
159
+ document.removeEventListener("touchmove", T), document.removeEventListener("touchend", p);
156
160
  };
157
161
  }, []);
158
162
  }
159
163
  function qt(e) {
160
- var t = Z(0), n = M(t, 2), a = n[0], r = n[1], o = te(0), c = te();
161
- return c.current = e, xa(function() {
164
+ var t = Q(0), n = L(t, 2), a = n[0], r = n[1], o = te(0), c = te();
165
+ return c.current = e, Ca(function() {
162
166
  var i;
163
167
  (i = c.current) === null || i === void 0 || i.call(c);
164
168
  }, [a]), function() {
@@ -166,7 +170,7 @@ function qt(e) {
166
170
  };
167
171
  }
168
172
  function qa(e) {
169
- var t = te([]), n = Z({}), a = M(n, 2), r = a[1], o = te(typeof e == "function" ? e() : e), c = qt(function() {
173
+ var t = te([]), n = Q({}), a = L(n, 2), r = a[1], o = te(typeof e == "function" ? e() : e), c = qt(function() {
170
174
  var d = o.current;
171
175
  t.current.forEach(function(s) {
172
176
  d = s(d);
@@ -185,27 +189,27 @@ var Lt = {
185
189
  right: 0
186
190
  };
187
191
  function Fa(e, t, n, a, r, o, c) {
188
- var i = c.tabs, d = c.tabPosition, s = c.rtl, m, p, y;
189
- return ["top", "bottom"].includes(d) ? (m = "width", p = s ? "right" : "left", y = Math.abs(n)) : (m = "height", p = "top", y = -n), Gt(function() {
192
+ var i = c.tabs, d = c.tabPosition, s = c.rtl, m, h, y;
193
+ return ["top", "bottom"].includes(d) ? (m = "width", h = s ? "right" : "left", y = Math.abs(n)) : (m = "height", h = "top", y = -n), Gt(function() {
190
194
  if (!i.length)
191
195
  return [0, 0];
192
- for (var E = i.length, B = E, C = 0; C < E; C += 1) {
193
- var N = e.get(i[C].key) || Lt;
194
- if (Math.floor(N[p] + N[m]) > Math.floor(y + t)) {
195
- B = C - 1;
196
+ for (var P = i.length, A = P, x = 0; x < P; x += 1) {
197
+ var N = e.get(i[x].key) || Lt;
198
+ if (Math.floor(N[h] + N[m]) > Math.floor(y + t)) {
199
+ A = x - 1;
196
200
  break;
197
201
  }
198
202
  }
199
- for (var h = 0, $ = E - 1; $ >= 0; $ -= 1) {
200
- var P = e.get(i[$].key) || Lt;
201
- if (P[p] < y) {
202
- h = $ + 1;
203
+ for (var g = 0, $ = P - 1; $ >= 0; $ -= 1) {
204
+ var w = e.get(i[$].key) || Lt;
205
+ if (w[h] < y) {
206
+ g = $ + 1;
203
207
  break;
204
208
  }
205
209
  }
206
- return h >= B ? [0, 0] : [h, B];
207
- }, [e, t, a, r, o, y, d, i.map(function(E) {
208
- return E.key;
210
+ return g >= A ? [0, 0] : [g, A];
211
+ }, [e, t, a, r, o, y, d, i.map(function(P) {
212
+ return P.key;
209
213
  }).join("_"), s]);
210
214
  }
211
215
  function Dt(e) {
@@ -253,17 +257,17 @@ var Ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
253
257
  });
254
258
  process.env.NODE_ENV !== "production" && (at.displayName = "ExtraContent");
255
259
  var Ya = /* @__PURE__ */ l.forwardRef(function(e, t) {
256
- var n = e.prefixCls, a = e.id, r = e.tabs, o = e.locale, c = e.mobile, i = e.more, d = i === void 0 ? {} : i, s = e.style, m = e.className, p = e.editable, y = e.tabBarGutter, E = e.rtl, B = e.removeAriaLabel, C = e.onTabClick, N = e.getPopupContainer, h = e.popupClassName, $ = Z(!1), P = M($, 2), G = P[0], K = P[1], X = Z(null), q = M(X, 2), O = q[0], x = q[1], T = d.icon, g = T === void 0 ? "More" : T, S = "".concat(a, "-more-popup"), f = "".concat(n, "-dropdown"), _ = O !== null ? "".concat(S, "-").concat(O) : null, k = o == null ? void 0 : o.dropdownAriaLabel;
257
- function H(w, j) {
258
- w.preventDefault(), w.stopPropagation(), p.onEdit("remove", {
259
- key: j,
260
- event: w
260
+ var n = e.prefixCls, a = e.id, r = e.tabs, o = e.locale, c = e.mobile, i = e.more, d = i === void 0 ? {} : i, s = e.style, m = e.className, h = e.editable, y = e.tabBarGutter, P = e.rtl, A = e.removeAriaLabel, x = e.onTabClick, N = e.getPopupContainer, g = e.popupClassName, $ = Q(!1), w = L($, 2), M = w[0], D = w[1], G = Q(null), q = L(G, 2), O = q[0], C = q[1], T = d.icon, p = T === void 0 ? "More" : T, S = "".concat(a, "-more-popup"), f = "".concat(n, "-dropdown"), _ = O !== null ? "".concat(S, "-").concat(O) : null, k = o == null ? void 0 : o.dropdownAriaLabel;
261
+ function V(E, H) {
262
+ E.preventDefault(), E.stopPropagation(), h.onEdit("remove", {
263
+ key: H,
264
+ event: E
261
265
  });
262
266
  }
263
267
  var v = /* @__PURE__ */ l.createElement(Ma, {
264
- onClick: function(j) {
265
- var Y = j.key, Q = j.domEvent;
266
- C(Y, Q), K(!1);
268
+ onClick: function(H) {
269
+ var Y = H.key, J = H.domEvent;
270
+ x(Y, J), D(!1);
267
271
  },
268
272
  prefixCls: "".concat(f, "-menu"),
269
273
  id: S,
@@ -272,8 +276,8 @@ var Ya = /* @__PURE__ */ l.forwardRef(function(e, t) {
272
276
  "aria-activedescendant": _,
273
277
  selectedKeys: [O],
274
278
  "aria-label": k !== void 0 ? k : "expanded dropdown"
275
- }, r.map(function(w) {
276
- var j = w.closable, Y = w.disabled, Q = w.closeIcon, F = w.key, re = w.label, ae = lt(j, Q, p, Y);
279
+ }, r.map(function(E) {
280
+ var H = E.closable, Y = E.disabled, J = E.closeIcon, F = E.key, re = E.label, ae = lt(H, J, h, Y);
277
281
  return /* @__PURE__ */ l.createElement(La, {
278
282
  key: F,
279
283
  id: "".concat(S, "-").concat(F),
@@ -282,64 +286,64 @@ var Ya = /* @__PURE__ */ l.forwardRef(function(e, t) {
282
286
  disabled: Y
283
287
  }, /* @__PURE__ */ l.createElement("span", null, re), ae && /* @__PURE__ */ l.createElement("button", {
284
288
  type: "button",
285
- "aria-label": B || "remove",
289
+ "aria-label": A || "remove",
286
290
  tabIndex: 0,
287
291
  className: "".concat(f, "-menu-item-remove"),
288
292
  onClick: function(fe) {
289
- fe.stopPropagation(), H(fe, F);
293
+ fe.stopPropagation(), V(fe, F);
290
294
  }
291
- }, Q || p.removeIcon || "×"));
295
+ }, J || h.removeIcon || "×"));
292
296
  }));
293
- function J(w) {
294
- for (var j = r.filter(function(ae) {
297
+ function Z(E) {
298
+ for (var H = r.filter(function(ae) {
295
299
  return !ae.disabled;
296
- }), Y = j.findIndex(function(ae) {
300
+ }), Y = H.findIndex(function(ae) {
297
301
  return ae.key === O;
298
- }) || 0, Q = j.length, F = 0; F < Q; F += 1) {
299
- Y = (Y + w + Q) % Q;
300
- var re = j[Y];
302
+ }) || 0, J = H.length, F = 0; F < J; F += 1) {
303
+ Y = (Y + E + J) % J;
304
+ var re = H[Y];
301
305
  if (!re.disabled) {
302
- x(re.key);
306
+ C(re.key);
303
307
  return;
304
308
  }
305
309
  }
306
310
  }
307
- function R(w) {
308
- var j = w.which;
309
- if (!G) {
310
- [Se.DOWN, Se.SPACE, Se.ENTER].includes(j) && (K(!0), w.preventDefault());
311
+ function R(E) {
312
+ var H = E.which;
313
+ if (!M) {
314
+ [Se.DOWN, Se.SPACE, Se.ENTER].includes(H) && (D(!0), E.preventDefault());
311
315
  return;
312
316
  }
313
- switch (j) {
317
+ switch (H) {
314
318
  case Se.UP:
315
- J(-1), w.preventDefault();
319
+ Z(-1), E.preventDefault();
316
320
  break;
317
321
  case Se.DOWN:
318
- J(1), w.preventDefault();
322
+ Z(1), E.preventDefault();
319
323
  break;
320
324
  case Se.ESC:
321
- K(!1);
325
+ D(!1);
322
326
  break;
323
327
  case Se.SPACE:
324
328
  case Se.ENTER:
325
- O !== null && C(O, w);
329
+ O !== null && x(O, E);
326
330
  break;
327
331
  }
328
332
  }
329
333
  me(function() {
330
- var w = document.getElementById(_);
331
- w && w.scrollIntoView && w.scrollIntoView(!1);
334
+ var E = document.getElementById(_);
335
+ E && E.scrollIntoView && E.scrollIntoView(!1);
332
336
  }, [O]), me(function() {
333
- G || x(null);
334
- }, [G]);
335
- var U = ne({}, E ? "marginRight" : "marginLeft", y);
337
+ M || C(null);
338
+ }, [M]);
339
+ var U = ne({}, P ? "marginRight" : "marginLeft", y);
336
340
  r.length || (U.visibility = "hidden", U.order = 1);
337
- var ee = A(ne({}, "".concat(f, "-rtl"), E)), ve = c ? null : /* @__PURE__ */ l.createElement(Da, pe({
341
+ var ee = W(ne({}, "".concat(f, "-rtl"), P)), ve = c ? null : /* @__PURE__ */ l.createElement(Da, pe({
338
342
  prefixCls: f,
339
343
  overlay: v,
340
- visible: r.length ? G : !1,
341
- onVisibleChange: K,
342
- overlayClassName: A(ee, h),
344
+ visible: r.length ? M : !1,
345
+ onVisibleChange: D,
346
+ overlayClassName: W(ee, g),
343
347
  mouseEnterDelay: 0.1,
344
348
  mouseLeaveDelay: 0.1,
345
349
  getPopupContainer: N
@@ -350,17 +354,17 @@ var Ya = /* @__PURE__ */ l.forwardRef(function(e, t) {
350
354
  "aria-haspopup": "listbox",
351
355
  "aria-controls": S,
352
356
  id: "".concat(a, "-more"),
353
- "aria-expanded": G,
357
+ "aria-expanded": M,
354
358
  onKeyDown: R
355
- }, g));
359
+ }, p));
356
360
  return /* @__PURE__ */ l.createElement("div", {
357
- className: A("".concat(n, "-nav-operations"), m),
361
+ className: W("".concat(n, "-nav-operations"), m),
358
362
  style: s,
359
363
  ref: t
360
364
  }, ve, /* @__PURE__ */ l.createElement(Ut, {
361
365
  prefixCls: n,
362
366
  locale: o,
363
- editable: p
367
+ editable: h
364
368
  }));
365
369
  });
366
370
  const ka = /* @__PURE__ */ l.memo(Ya, function(e, t) {
@@ -370,45 +374,45 @@ const ka = /* @__PURE__ */ l.memo(Ya, function(e, t) {
370
374
  t.tabMoving
371
375
  );
372
376
  });
373
- var Qa = function(t) {
374
- var n = t.prefixCls, a = t.id, r = t.active, o = t.focus, c = t.tab, i = c.key, d = c.label, s = c.disabled, m = c.closeIcon, p = c.icon, y = t.closable, E = t.renderWrapper, B = t.removeAriaLabel, C = t.editable, N = t.onClick, h = t.onFocus, $ = t.onBlur, P = t.onKeyDown, G = t.onMouseDown, K = t.onMouseUp, X = t.style, q = t.tabCount, O = t.currentPosition, x = "".concat(n, "-tab"), T = lt(y, m, C, s);
375
- function g(H) {
376
- s || N(H);
377
+ var Ja = function(t) {
378
+ var n = t.prefixCls, a = t.id, r = t.active, o = t.focus, c = t.tab, i = c.key, d = c.label, s = c.disabled, m = c.closeIcon, h = c.icon, y = t.closable, P = t.renderWrapper, A = t.removeAriaLabel, x = t.editable, N = t.onClick, g = t.onFocus, $ = t.onBlur, w = t.onKeyDown, M = t.onMouseDown, D = t.onMouseUp, G = t.style, q = t.tabCount, O = t.currentPosition, C = "".concat(n, "-tab"), T = lt(y, m, x, s);
379
+ function p(V) {
380
+ s || N(V);
377
381
  }
378
- function S(H) {
379
- H.preventDefault(), H.stopPropagation(), C.onEdit("remove", {
382
+ function S(V) {
383
+ V.preventDefault(), V.stopPropagation(), x.onEdit("remove", {
380
384
  key: i,
381
- event: H
385
+ event: V
382
386
  });
383
387
  }
384
388
  var f = l.useMemo(function() {
385
- return p && typeof d == "string" ? /* @__PURE__ */ l.createElement("span", null, d) : d;
386
- }, [d, p]), _ = l.useRef(null);
389
+ return h && typeof d == "string" ? /* @__PURE__ */ l.createElement("span", null, d) : d;
390
+ }, [d, h]), _ = l.useRef(null);
387
391
  l.useEffect(function() {
388
392
  o && _.current && _.current.focus();
389
393
  }, [o]);
390
394
  var k = /* @__PURE__ */ l.createElement("div", {
391
395
  key: i,
392
396
  "data-node-key": Ft(i),
393
- className: A(x, ne(ne(ne(ne({}, "".concat(x, "-with-remove"), T), "".concat(x, "-active"), r), "".concat(x, "-disabled"), s), "".concat(x, "-focus"), o)),
394
- style: X,
395
- onClick: g
397
+ className: W(C, ne(ne(ne(ne({}, "".concat(C, "-with-remove"), T), "".concat(C, "-active"), r), "".concat(C, "-disabled"), s), "".concat(C, "-focus"), o)),
398
+ style: G,
399
+ onClick: p
396
400
  }, /* @__PURE__ */ l.createElement("div", {
397
401
  ref: _,
398
402
  role: "tab",
399
403
  "aria-selected": r,
400
404
  id: a && "".concat(a, "-tab-").concat(i),
401
- className: "".concat(x, "-btn"),
405
+ className: "".concat(C, "-btn"),
402
406
  "aria-controls": a && "".concat(a, "-panel-").concat(i),
403
407
  "aria-disabled": s,
404
408
  tabIndex: s ? null : r ? 0 : -1,
405
409
  onClick: function(v) {
406
- v.stopPropagation(), g(v);
410
+ v.stopPropagation(), p(v);
407
411
  },
408
- onKeyDown: P,
409
- onMouseDown: G,
410
- onMouseUp: K,
411
- onFocus: h,
412
+ onKeyDown: w,
413
+ onMouseDown: M,
414
+ onMouseUp: D,
415
+ onFocus: g,
412
416
  onBlur: $
413
417
  }, o && /* @__PURE__ */ l.createElement("div", {
414
418
  "aria-live": "polite",
@@ -419,23 +423,23 @@ var Qa = function(t) {
419
423
  overflow: "hidden",
420
424
  opacity: 0
421
425
  }
422
- }, "Tab ".concat(O, " of ").concat(q)), p && /* @__PURE__ */ l.createElement("span", {
423
- className: "".concat(x, "-icon")
424
- }, p), d && f), T && /* @__PURE__ */ l.createElement("button", {
426
+ }, "Tab ".concat(O, " of ").concat(q)), h && /* @__PURE__ */ l.createElement("span", {
427
+ className: "".concat(C, "-icon")
428
+ }, h), d && f), T && /* @__PURE__ */ l.createElement("button", {
425
429
  type: "button",
426
430
  role: "tab",
427
- "aria-label": B || "remove",
431
+ "aria-label": A || "remove",
428
432
  tabIndex: r ? 0 : -1,
429
- className: "".concat(x, "-remove"),
433
+ className: "".concat(C, "-remove"),
430
434
  onClick: function(v) {
431
435
  v.stopPropagation(), S(v);
432
436
  }
433
- }, m || C.removeIcon || "×"));
434
- return E ? E(k) : k;
435
- }, Za = function(t, n) {
436
- var a = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, c = t.offsetLeft, i = t.getBoundingClientRect(), d = i.width, s = i.height, m = i.left, p = i.top;
437
- return Math.abs(d - a) < 1 ? [d, s, m - n.left, p - n.top] : [a, r, c, o];
438
- }, Oe = function(t) {
437
+ }, m || x.removeIcon || "×"));
438
+ return P ? P(k) : k;
439
+ }, Qa = function(t, n) {
440
+ var a = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, c = t.offsetLeft, i = t.getBoundingClientRect(), d = i.width, s = i.height, m = i.left, h = i.top;
441
+ return Math.abs(d - a) < 1 ? [d, s, m - n.left, h - n.top] : [a, r, c, o];
442
+ }, Ne = function(t) {
439
443
  var n = t.current || {}, a = n.offsetWidth, r = a === void 0 ? 0 : a, o = n.offsetHeight, c = o === void 0 ? 0 : o;
440
444
  if (t.current) {
441
445
  var i = t.current.getBoundingClientRect(), d = i.width, s = i.height;
@@ -446,20 +450,20 @@ var Qa = function(t) {
446
450
  }, Ae = function(t, n) {
447
451
  return t[n ? 0 : 1];
448
452
  }, Bt = /* @__PURE__ */ l.forwardRef(function(e, t) {
449
- var n = e.className, a = e.style, r = e.id, o = e.animated, c = e.activeKey, i = e.rtl, d = e.extra, s = e.editable, m = e.locale, p = e.tabPosition, y = e.tabBarGutter, E = e.children, B = e.onTabClick, C = e.onTabScroll, N = e.indicator, h = l.useContext(Ve), $ = h.prefixCls, P = h.tabs, G = te(null), K = te(null), X = te(null), q = te(null), O = te(null), x = te(null), T = te(null), g = p === "top" || p === "bottom", S = It(0, function(I, b) {
450
- g && C && C({
453
+ var n = e.className, a = e.style, r = e.id, o = e.animated, c = e.activeKey, i = e.rtl, d = e.extra, s = e.editable, m = e.locale, h = e.tabPosition, y = e.tabBarGutter, P = e.children, A = e.onTabClick, x = e.onTabScroll, N = e.indicator, g = l.useContext(Ve), $ = g.prefixCls, w = g.tabs, M = te(null), D = te(null), G = te(null), q = te(null), O = te(null), C = te(null), T = te(null), p = h === "top" || h === "bottom", S = It(0, function(I, b) {
454
+ p && x && x({
451
455
  direction: I > b ? "left" : "right"
452
456
  });
453
- }), f = M(S, 2), _ = f[0], k = f[1], H = It(0, function(I, b) {
454
- !g && C && C({
457
+ }), f = L(S, 2), _ = f[0], k = f[1], V = It(0, function(I, b) {
458
+ !p && x && x({
455
459
  direction: I > b ? "top" : "bottom"
456
460
  });
457
- }), v = M(H, 2), J = v[0], R = v[1], U = Z([0, 0]), ee = M(U, 2), ve = ee[0], w = ee[1], j = Z([0, 0]), Y = M(j, 2), Q = Y[0], F = Y[1], re = Z([0, 0]), ae = M(re, 2), he = ae[0], fe = ae[1], ie = Z([0, 0]), $e = M(ie, 2), z = $e[0], de = $e[1], xe = qa(/* @__PURE__ */ new Map()), Le = M(xe, 2), Xe = Le[0], qe = Le[1], W = Va(P, Xe, Q[0]), L = Ae(ve, g), oe = Ae(Q, g), Ce = Ae(he, g), dt = Ae(z, g), ut = Math.floor(L) < Math.floor(oe + Ce), be = ut ? L - dt : L - Ce, Jt = "".concat($, "-nav-operations-hidden"), ye = 0, we = 0;
458
- g && i ? (ye = 0, we = Math.max(0, oe - be)) : (ye = Math.min(0, be - oe), we = 0);
461
+ }), v = L(V, 2), Z = v[0], R = v[1], U = Q([0, 0]), ee = L(U, 2), ve = ee[0], E = ee[1], H = Q([0, 0]), Y = L(H, 2), J = Y[0], F = Y[1], re = Q([0, 0]), ae = L(re, 2), he = ae[0], fe = ae[1], ie = Q([0, 0]), $e = L(ie, 2), z = $e[0], de = $e[1], Ce = qa(/* @__PURE__ */ new Map()), Le = L(Ce, 2), Xe = Le[0], qe = Le[1], K = Va(w, Xe, J[0]), B = Ae(ve, p), oe = Ae(J, p), xe = Ae(he, p), dt = Ae(z, p), ut = Math.floor(B) < Math.floor(oe + xe), be = ut ? B - dt : B - xe, Zt = "".concat($, "-nav-operations-hidden"), ye = 0, we = 0;
462
+ p && i ? (ye = 0, we = Math.max(0, oe - be)) : (ye = Math.min(0, be - oe), we = 0);
459
463
  function Fe(I) {
460
464
  return I < ye ? ye : I > we ? we : I;
461
465
  }
462
- var Ue = te(null), ea = Z(), vt = M(ea, 2), De = vt[0], ft = vt[1];
466
+ var Ue = te(null), ea = Q(), vt = L(ea, 2), De = vt[0], ft = vt[1];
463
467
  function Ye() {
464
468
  ft(Date.now());
465
469
  }
@@ -467,76 +471,76 @@ var Qa = function(t) {
467
471
  Ue.current && clearTimeout(Ue.current);
468
472
  }
469
473
  Xa(q, function(I, b) {
470
- function D(V, ue) {
471
- V(function(le) {
472
- var Te = Fe(le + ue);
473
- return Te;
474
+ function j(X, ue) {
475
+ X(function(le) {
476
+ var Pe = Fe(le + ue);
477
+ return Pe;
474
478
  });
475
479
  }
476
- return ut ? (g ? D(k, I) : D(R, b), ke(), Ye(), !0) : !1;
480
+ return ut ? (p ? j(k, I) : j(R, b), ke(), Ye(), !0) : !1;
477
481
  }), me(function() {
478
482
  return ke(), De && (Ue.current = setTimeout(function() {
479
483
  ft(0);
480
484
  }, 100)), ke;
481
485
  }, [De]);
482
486
  var ta = Fa(
483
- W,
487
+ K,
484
488
  // Container
485
489
  be,
486
490
  // Transform
487
- g ? _ : J,
491
+ p ? _ : Z,
488
492
  // Tabs
489
493
  oe,
490
494
  // Add
491
- Ce,
495
+ xe,
492
496
  // Operation
493
497
  dt,
494
498
  se(se({}, e), {}, {
495
- tabs: P
499
+ tabs: w
496
500
  })
497
- ), bt = M(ta, 2), aa = bt[0], na = bt[1], mt = Ca(function() {
498
- var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : c, b = W.get(I) || {
501
+ ), bt = L(ta, 2), aa = bt[0], na = bt[1], mt = xa(function() {
502
+ var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : c, b = K.get(I) || {
499
503
  width: 0,
500
504
  height: 0,
501
505
  left: 0,
502
506
  right: 0,
503
507
  top: 0
504
508
  };
505
- if (g) {
506
- var D = _;
507
- i ? b.right < _ ? D = b.right : b.right + b.width > _ + be && (D = b.right + b.width - be) : b.left < -_ ? D = -b.left : b.left + b.width > -_ + be && (D = -(b.left + b.width - be)), R(0), k(Fe(D));
509
+ if (p) {
510
+ var j = _;
511
+ i ? b.right < _ ? j = b.right : b.right + b.width > _ + be && (j = b.right + b.width - be) : b.left < -_ ? j = -b.left : b.left + b.width > -_ + be && (j = -(b.left + b.width - be)), R(0), k(Fe(j));
508
512
  } else {
509
- var V = J;
510
- b.top < -J ? V = -b.top : b.top + b.height > -J + be && (V = -(b.top + b.height - be)), k(0), R(Fe(V));
513
+ var X = Z;
514
+ b.top < -Z ? X = -b.top : b.top + b.height > -Z + be && (X = -(b.top + b.height - be)), k(0), R(Fe(X));
511
515
  }
512
- }), ra = Z(), gt = M(ra, 2), Ee = gt[0], Re = gt[1], ia = Z(!1), pt = M(ia, 2), oa = pt[0], ht = pt[1], ge = P.filter(function(I) {
516
+ }), ra = Q(), gt = L(ra, 2), Oe = gt[0], Re = gt[1], ia = Q(!1), pt = L(ia, 2), oa = pt[0], ht = pt[1], ge = w.filter(function(I) {
513
517
  return !I.disabled;
514
518
  }).map(function(I) {
515
519
  return I.key;
516
- }), Pe = function(b) {
517
- var D = ge.indexOf(Ee || c), V = ge.length, ue = (D + b + V) % V, le = ge[ue];
520
+ }), Ee = function(b) {
521
+ var j = ge.indexOf(Oe || c), X = ge.length, ue = (j + b + X) % X, le = ge[ue];
518
522
  Re(le);
519
523
  }, la = function(b) {
520
- var D = b.code, V = i && g, ue = ge[0], le = ge[ge.length - 1];
521
- switch (D) {
524
+ var j = b.code, X = i && p, ue = ge[0], le = ge[ge.length - 1];
525
+ switch (j) {
522
526
  // LEFT
523
527
  case "ArrowLeft": {
524
- g && Pe(V ? 1 : -1);
528
+ p && Ee(X ? 1 : -1);
525
529
  break;
526
530
  }
527
531
  // RIGHT
528
532
  case "ArrowRight": {
529
- g && Pe(V ? -1 : 1);
533
+ p && Ee(X ? -1 : 1);
530
534
  break;
531
535
  }
532
536
  // UP
533
537
  case "ArrowUp": {
534
- b.preventDefault(), g || Pe(-1);
538
+ b.preventDefault(), p || Ee(-1);
535
539
  break;
536
540
  }
537
541
  // DOWN
538
542
  case "ArrowDown": {
539
- b.preventDefault(), g || Pe(1);
543
+ b.preventDefault(), p || Ee(1);
540
544
  break;
541
545
  }
542
546
  // HOME
@@ -552,46 +556,46 @@ var Qa = function(t) {
552
556
  // Enter & Space
553
557
  case "Enter":
554
558
  case "Space": {
555
- b.preventDefault(), B(Ee, b);
559
+ b.preventDefault(), A(c, b);
556
560
  break;
557
561
  }
558
562
  // Backspace
559
563
  case "Backspace":
560
564
  case "Delete": {
561
- var Te = ge.indexOf(Ee), ce = P.find(function(Ne) {
562
- return Ne.key === Ee;
563
- }), Je = lt(ce == null ? void 0 : ce.closable, ce == null ? void 0 : ce.closeIcon, s, ce == null ? void 0 : ce.disabled);
564
- Je && (b.preventDefault(), b.stopPropagation(), s.onEdit("remove", {
565
- key: Ee,
565
+ var Pe = ge.indexOf(Oe), ce = w.find(function(Te) {
566
+ return Te.key === Oe;
567
+ }), Ze = lt(ce == null ? void 0 : ce.closable, ce == null ? void 0 : ce.closeIcon, s, ce == null ? void 0 : ce.disabled);
568
+ Ze && (b.preventDefault(), b.stopPropagation(), s.onEdit("remove", {
569
+ key: Oe,
566
570
  event: b
567
- }), Te === ge.length - 1 ? Pe(-1) : Pe(1));
571
+ }), Pe === ge.length - 1 ? Ee(-1) : Ee(1));
568
572
  break;
569
573
  }
570
574
  }
571
575
  }, Be = {};
572
- g ? Be[i ? "marginRight" : "marginLeft"] = y : Be.marginTop = y;
573
- var $t = P.map(function(I, b) {
574
- var D = I.key;
575
- return /* @__PURE__ */ l.createElement(Qa, {
576
+ p ? Be[i ? "marginRight" : "marginLeft"] = y : Be.marginTop = y;
577
+ var $t = w.map(function(I, b) {
578
+ var j = I.key;
579
+ return /* @__PURE__ */ l.createElement(Ja, {
576
580
  id: r,
577
581
  prefixCls: $,
578
- key: D,
582
+ key: j,
579
583
  tab: I,
580
584
  style: b === 0 ? void 0 : Be,
581
585
  closable: I.closable,
582
586
  editable: s,
583
- active: D === c,
584
- focus: D === Ee,
585
- renderWrapper: E,
587
+ active: j === c,
588
+ focus: j === Oe,
589
+ renderWrapper: P,
586
590
  removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
587
591
  tabCount: ge.length,
588
592
  currentPosition: b + 1,
589
593
  onClick: function(ue) {
590
- B(D, ue);
594
+ A(j, ue);
591
595
  },
592
596
  onKeyDown: la,
593
597
  onFocus: function() {
594
- oa || Re(D), mt(D), Ye(), q.current && (i || (q.current.scrollLeft = 0), q.current.scrollTop = 0);
598
+ oa || Re(j), mt(j), Ye(), q.current && (i || (q.current.scrollLeft = 0), q.current.scrollTop = 0);
595
599
  },
596
600
  onBlur: function() {
597
601
  Re(void 0);
@@ -605,67 +609,67 @@ var Qa = function(t) {
605
609
  });
606
610
  }), yt = function() {
607
611
  return qe(function() {
608
- var b, D = /* @__PURE__ */ new Map(), V = (b = O.current) === null || b === void 0 ? void 0 : b.getBoundingClientRect();
609
- return P.forEach(function(ue) {
610
- var le, Te = ue.key, ce = (le = O.current) === null || le === void 0 ? void 0 : le.querySelector('[data-node-key="'.concat(Ft(Te), '"]'));
612
+ var b, j = /* @__PURE__ */ new Map(), X = (b = O.current) === null || b === void 0 ? void 0 : b.getBoundingClientRect();
613
+ return w.forEach(function(ue) {
614
+ var le, Pe = ue.key, ce = (le = O.current) === null || le === void 0 ? void 0 : le.querySelector('[data-node-key="'.concat(Ft(Pe), '"]'));
611
615
  if (ce) {
612
- var Je = Za(ce, V), Ne = M(Je, 4), va = Ne[0], fa = Ne[1], ba = Ne[2], ma = Ne[3];
613
- D.set(Te, {
616
+ var Ze = Qa(ce, X), Te = L(Ze, 4), va = Te[0], fa = Te[1], ba = Te[2], ma = Te[3];
617
+ j.set(Pe, {
614
618
  width: va,
615
619
  height: fa,
616
620
  left: ba,
617
621
  top: ma
618
622
  });
619
623
  }
620
- }), D;
624
+ }), j;
621
625
  });
622
626
  };
623
627
  me(function() {
624
628
  yt();
625
- }, [P.map(function(I) {
629
+ }, [w.map(function(I) {
626
630
  return I.key;
627
631
  }).join("_")]);
628
632
  var je = qt(function() {
629
- var I = Oe(G), b = Oe(K), D = Oe(X);
630
- w([I[0] - b[0] - D[0], I[1] - b[1] - D[1]]);
631
- var V = Oe(T);
632
- fe(V);
633
- var ue = Oe(x);
633
+ var I = Ne(M), b = Ne(D), j = Ne(G);
634
+ E([I[0] - b[0] - j[0], I[1] - b[1] - j[1]]);
635
+ var X = Ne(T);
636
+ fe(X);
637
+ var ue = Ne(C);
634
638
  de(ue);
635
- var le = Oe(O);
636
- F([le[0] - V[0], le[1] - V[1]]), yt();
637
- }), ca = P.slice(0, aa), sa = P.slice(na + 1), St = [].concat(Tt(ca), Tt(sa)), _t = W.get(c), da = Wa({
639
+ var le = Ne(O);
640
+ F([le[0] - X[0], le[1] - X[1]]), yt();
641
+ }), ca = w.slice(0, aa), sa = w.slice(na + 1), St = [].concat(Tt(ca), Tt(sa)), _t = K.get(c), da = Wa({
638
642
  activeTabOffset: _t,
639
- horizontal: g,
643
+ horizontal: p,
640
644
  indicator: N,
641
645
  rtl: i
642
646
  }), ua = da.style;
643
647
  me(function() {
644
648
  mt();
645
- }, [c, ye, we, Dt(_t), Dt(W), g]), me(function() {
649
+ }, [c, ye, we, Dt(_t), Dt(K), p]), me(function() {
646
650
  je();
647
651
  }, [i]);
648
- var xt = !!St.length, Ie = "".concat($, "-nav-wrap"), Qe, Ze, Ct, wt;
649
- return g ? i ? (Ze = _ > 0, Qe = _ !== we) : (Qe = _ < 0, Ze = _ !== ye) : (Ct = J < 0, wt = J !== ye), /* @__PURE__ */ l.createElement(et, {
652
+ var Ct = !!St.length, Ie = "".concat($, "-nav-wrap"), Je, Qe, xt, wt;
653
+ return p ? i ? (Qe = _ > 0, Je = _ !== we) : (Je = _ < 0, Qe = _ !== ye) : (xt = Z < 0, wt = Z !== ye), /* @__PURE__ */ l.createElement(et, {
650
654
  onResize: je
651
655
  }, /* @__PURE__ */ l.createElement("div", {
652
- ref: wa(t, G),
656
+ ref: wa(t, M),
653
657
  role: "tablist",
654
- "aria-orientation": g ? "horizontal" : "vertical",
655
- className: A("".concat($, "-nav"), n),
658
+ "aria-orientation": p ? "horizontal" : "vertical",
659
+ className: W("".concat($, "-nav"), n),
656
660
  style: a,
657
661
  onKeyDown: function() {
658
662
  Ye();
659
663
  }
660
664
  }, /* @__PURE__ */ l.createElement(at, {
661
- ref: K,
665
+ ref: D,
662
666
  position: "left",
663
667
  extra: d,
664
668
  prefixCls: $
665
669
  }), /* @__PURE__ */ l.createElement(et, {
666
670
  onResize: je
667
671
  }, /* @__PURE__ */ l.createElement("div", {
668
- className: A(Ie, ne(ne(ne(ne({}, "".concat(Ie, "-ping-left"), Qe), "".concat(Ie, "-ping-right"), Ze), "".concat(Ie, "-ping-top"), Ct), "".concat(Ie, "-ping-bottom"), wt)),
672
+ className: W(Ie, ne(ne(ne(ne({}, "".concat(Ie, "-ping-left"), Je), "".concat(Ie, "-ping-right"), Qe), "".concat(Ie, "-ping-top"), xt), "".concat(Ie, "-ping-bottom"), wt)),
669
673
  ref: q
670
674
  }, /* @__PURE__ */ l.createElement(et, {
671
675
  onResize: je
@@ -673,7 +677,7 @@ var Qa = function(t) {
673
677
  ref: O,
674
678
  className: "".concat($, "-nav-list"),
675
679
  style: {
676
- transform: "translate(".concat(_, "px, ").concat(J, "px)"),
680
+ transform: "translate(".concat(_, "px, ").concat(Z, "px)"),
677
681
  transition: De ? "none" : void 0
678
682
  }
679
683
  }, $t, /* @__PURE__ */ l.createElement(Ut, {
@@ -682,20 +686,20 @@ var Qa = function(t) {
682
686
  locale: m,
683
687
  editable: s,
684
688
  style: se(se({}, $t.length === 0 ? void 0 : Be), {}, {
685
- visibility: xt ? "hidden" : null
689
+ visibility: Ct ? "hidden" : null
686
690
  })
687
691
  }), /* @__PURE__ */ l.createElement("div", {
688
- className: A("".concat($, "-ink-bar"), ne({}, "".concat($, "-ink-bar-animated"), o.inkBar)),
692
+ className: W("".concat($, "-ink-bar"), ne({}, "".concat($, "-ink-bar-animated"), o.inkBar)),
689
693
  style: ua
690
694
  }))))), /* @__PURE__ */ l.createElement(ka, pe({}, e, {
691
695
  removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
692
- ref: x,
696
+ ref: C,
693
697
  prefixCls: $,
694
698
  tabs: St,
695
- className: !xt && Jt,
699
+ className: !Ct && Zt,
696
700
  tabMoving: !!De
697
701
  })), /* @__PURE__ */ l.createElement(at, {
698
- ref: X,
702
+ ref: G,
699
703
  position: "right",
700
704
  extra: d,
701
705
  prefixCls: $
@@ -709,13 +713,13 @@ var Qa = function(t) {
709
713
  "aria-labelledby": o && "".concat(o, "-tab-").concat(i),
710
714
  "aria-hidden": !c,
711
715
  style: r,
712
- className: A(n, c && "".concat(n, "-active"), a),
716
+ className: W(n, c && "".concat(n, "-active"), a),
713
717
  ref: t
714
718
  }, d);
715
719
  });
716
720
  process.env.NODE_ENV !== "production" && (ct.displayName = "TabPane");
717
- var Ja = ["renderTabBar"], en = ["label", "key"], Yt = function(t) {
718
- var n = t.renderTabBar, a = He(t, Ja), r = l.useContext(Ve), o = r.tabs;
721
+ var Za = ["renderTabBar"], en = ["label", "key"], Yt = function(t) {
722
+ var n = t.renderTabBar, a = He(t, Za), r = l.useContext(Ve), o = r.tabs;
719
723
  if (n) {
720
724
  var c = se(se({}, a), {}, {
721
725
  // Legacy support. We do not use this actually
@@ -734,30 +738,30 @@ var Ja = ["renderTabBar"], en = ["label", "key"], Yt = function(t) {
734
738
  };
735
739
  process.env.NODE_ENV !== "production" && (Yt.displayName = "TabNavListWrapper");
736
740
  var tn = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], an = function(t) {
737
- var n = t.id, a = t.activeKey, r = t.animated, o = t.tabPosition, c = t.destroyInactiveTabPane, i = l.useContext(Ve), d = i.prefixCls, s = i.tabs, m = r.tabPane, p = "".concat(d, "-tabpane");
741
+ var n = t.id, a = t.activeKey, r = t.animated, o = t.tabPosition, c = t.destroyInactiveTabPane, i = l.useContext(Ve), d = i.prefixCls, s = i.tabs, m = r.tabPane, h = "".concat(d, "-tabpane");
738
742
  return /* @__PURE__ */ l.createElement("div", {
739
- className: A("".concat(d, "-content-holder"))
743
+ className: W("".concat(d, "-content-holder"))
740
744
  }, /* @__PURE__ */ l.createElement("div", {
741
- className: A("".concat(d, "-content"), "".concat(d, "-content-").concat(o), ne({}, "".concat(d, "-content-animated"), m))
745
+ className: W("".concat(d, "-content"), "".concat(d, "-content-").concat(o), ne({}, "".concat(d, "-content-animated"), m))
742
746
  }, s.map(function(y) {
743
- var E = y.key, B = y.forceRender, C = y.style, N = y.className, h = y.destroyInactiveTabPane, $ = He(y, tn), P = E === a;
747
+ var P = y.key, A = y.forceRender, x = y.style, N = y.className, g = y.destroyInactiveTabPane, $ = He(y, tn), w = P === a;
744
748
  return /* @__PURE__ */ l.createElement(Ea, pe({
745
- key: E,
746
- visible: P,
747
- forceRender: B,
748
- removeOnLeave: !!(c || h),
749
- leavedClassName: "".concat(p, "-hidden")
750
- }, r.tabPaneMotion), function(G, K) {
751
- var X = G.style, q = G.className;
749
+ key: P,
750
+ visible: w,
751
+ forceRender: A,
752
+ removeOnLeave: !!(c || g),
753
+ leavedClassName: "".concat(h, "-hidden")
754
+ }, r.tabPaneMotion), function(M, D) {
755
+ var G = M.style, q = M.className;
752
756
  return /* @__PURE__ */ l.createElement(ct, pe({}, $, {
753
- prefixCls: p,
757
+ prefixCls: h,
754
758
  id: n,
755
- tabKey: E,
759
+ tabKey: P,
756
760
  animated: m,
757
- active: P,
758
- style: se(se({}, C), X),
759
- className: A(N, q),
760
- ref: K
761
+ active: w,
762
+ style: se(se({}, x), G),
763
+ className: W(N, q),
764
+ ref: D
761
765
  }));
762
766
  });
763
767
  })));
@@ -778,13 +782,13 @@ function nn() {
778
782
  }, nt(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Pa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
779
783
  }
780
784
  var rn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], jt = 0, kt = /* @__PURE__ */ l.forwardRef(function(e, t) {
781
- var n = e.id, a = e.prefixCls, r = a === void 0 ? "rc-tabs" : a, o = e.className, c = e.items, i = e.direction, d = e.activeKey, s = e.defaultActiveKey, m = e.editable, p = e.animated, y = e.tabPosition, E = y === void 0 ? "top" : y, B = e.tabBarGutter, C = e.tabBarStyle, N = e.tabBarExtraContent, h = e.locale, $ = e.more, P = e.destroyInactiveTabPane, G = e.renderTabBar, K = e.onChange, X = e.onTabClick, q = e.onTabScroll, O = e.getPopupContainer, x = e.popupClassName, T = e.indicator, g = He(e, rn), S = l.useMemo(function() {
785
+ var n = e.id, a = e.prefixCls, r = a === void 0 ? "rc-tabs" : a, o = e.className, c = e.items, i = e.direction, d = e.activeKey, s = e.defaultActiveKey, m = e.editable, h = e.animated, y = e.tabPosition, P = y === void 0 ? "top" : y, A = e.tabBarGutter, x = e.tabBarStyle, N = e.tabBarExtraContent, g = e.locale, $ = e.more, w = e.destroyInactiveTabPane, M = e.renderTabBar, D = e.onChange, G = e.onTabClick, q = e.onTabScroll, O = e.getPopupContainer, C = e.popupClassName, T = e.indicator, p = He(e, rn), S = l.useMemo(function() {
782
786
  return (c || []).filter(function(z) {
783
787
  return z && nt(z) === "object" && "key" in z;
784
788
  });
785
- }, [c]), f = i === "rtl", _ = nn(p), k = Z(!1), H = M(k, 2), v = H[0], J = H[1];
789
+ }, [c]), f = i === "rtl", _ = nn(h), k = Q(!1), V = L(k, 2), v = V[0], Z = V[1];
786
790
  me(function() {
787
- J(Ba());
791
+ Z(Ba());
788
792
  }, []);
789
793
  var R = Nt(function() {
790
794
  var z;
@@ -792,53 +796,53 @@ var rn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
792
796
  }, {
793
797
  value: d,
794
798
  defaultValue: s
795
- }), U = M(R, 2), ee = U[0], ve = U[1], w = Z(function() {
799
+ }), U = L(R, 2), ee = U[0], ve = U[1], E = Q(function() {
796
800
  return S.findIndex(function(z) {
797
801
  return z.key === ee;
798
802
  });
799
- }), j = M(w, 2), Y = j[0], Q = j[1];
803
+ }), H = L(E, 2), Y = H[0], J = H[1];
800
804
  me(function() {
801
- var z = S.findIndex(function(xe) {
802
- return xe.key === ee;
805
+ var z = S.findIndex(function(Ce) {
806
+ return Ce.key === ee;
803
807
  });
804
808
  if (z === -1) {
805
809
  var de;
806
810
  z = Math.max(0, Math.min(Y, S.length - 1)), ve((de = S[z]) === null || de === void 0 ? void 0 : de.key);
807
811
  }
808
- Q(z);
812
+ J(z);
809
813
  }, [S.map(function(z) {
810
814
  return z.key;
811
815
  }).join("_"), ee, Y]);
812
816
  var F = Nt(null, {
813
817
  value: n
814
- }), re = M(F, 2), ae = re[0], he = re[1];
818
+ }), re = L(F, 2), ae = re[0], he = re[1];
815
819
  me(function() {
816
820
  n || (he("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : jt)), jt += 1);
817
821
  }, []);
818
822
  function fe(z, de) {
819
- X == null || X(z, de);
820
- var xe = z !== ee;
821
- ve(z), xe && (K == null || K(z));
823
+ G == null || G(z, de);
824
+ var Ce = z !== ee;
825
+ ve(z), Ce && (D == null || D(z));
822
826
  }
823
827
  var ie = {
824
828
  id: ae,
825
829
  activeKey: ee,
826
830
  animated: _,
827
- tabPosition: E,
831
+ tabPosition: P,
828
832
  rtl: f,
829
833
  mobile: v
830
834
  }, $e = se(se({}, ie), {}, {
831
835
  editable: m,
832
- locale: h,
836
+ locale: g,
833
837
  more: $,
834
- tabBarGutter: B,
838
+ tabBarGutter: A,
835
839
  onTabClick: fe,
836
840
  onTabScroll: q,
837
841
  extra: N,
838
- style: C,
842
+ style: x,
839
843
  panes: null,
840
844
  getPopupContainer: O,
841
- popupClassName: x,
845
+ popupClassName: C,
842
846
  indicator: T
843
847
  });
844
848
  return /* @__PURE__ */ l.createElement(Ve.Provider, {
@@ -849,11 +853,11 @@ var rn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
849
853
  }, /* @__PURE__ */ l.createElement("div", pe({
850
854
  ref: t,
851
855
  id: n,
852
- className: A(r, "".concat(r, "-").concat(E), ne(ne(ne({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), f), o)
853
- }, g), /* @__PURE__ */ l.createElement(Yt, pe({}, $e, {
854
- renderTabBar: G
856
+ className: W(r, "".concat(r, "-").concat(P), ne(ne(ne({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), f), o)
857
+ }, p), /* @__PURE__ */ l.createElement(Yt, pe({}, $e, {
858
+ renderTabBar: M
855
859
  })), /* @__PURE__ */ l.createElement(an, pe({
856
- destroyInactiveTabPane: P
860
+ destroyInactiveTabPane: w
857
861
  }, ie, {
858
862
  animated: _
859
863
  }))));
@@ -1110,7 +1114,7 @@ const un = (e) => {
1110
1114
  _skip_check_: !0,
1111
1115
  value: e.marginSM
1112
1116
  },
1113
- color: e.colorTextDescription,
1117
+ color: e.colorIcon,
1114
1118
  fontSize: e.fontSizeSM,
1115
1119
  background: "transparent",
1116
1120
  border: 0,
@@ -1453,7 +1457,7 @@ const un = (e) => {
1453
1457
  _skip_check_: !0,
1454
1458
  value: e.marginXS
1455
1459
  },
1456
- color: e.colorTextDescription,
1460
+ color: e.colorIcon,
1457
1461
  fontSize: e.fontSizeSM,
1458
1462
  background: "transparent",
1459
1463
  border: "none",
@@ -1766,8 +1770,8 @@ const un = (e) => {
1766
1770
  tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
1767
1771
  });
1768
1772
  return [mn(t), pn(t), bn(t), fn(t), vn(t), hn(t), un(t)];
1769
- }, $n), Qt = () => null;
1770
- process.env.NODE_ENV !== "production" && (Qt.displayName = "DeprecatedTabPane");
1773
+ }, $n), Jt = () => null;
1774
+ process.env.NODE_ENV !== "production" && (Jt.displayName = "DeprecatedTabPane");
1771
1775
  var Sn = function(e, t) {
1772
1776
  var n = {};
1773
1777
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
@@ -1776,34 +1780,34 @@ var Sn = function(e, t) {
1776
1780
  return n;
1777
1781
  };
1778
1782
  const st = (e) => {
1779
- var t, n, a, r, o, c, i, d, s, m, p;
1783
+ var t, n, a, r, o, c, i, d, s, m, h;
1780
1784
  const {
1781
1785
  type: y,
1782
- className: E,
1783
- rootClassName: B,
1784
- size: C,
1786
+ className: P,
1787
+ rootClassName: A,
1788
+ size: x,
1785
1789
  onEdit: N,
1786
- hideAdd: h,
1790
+ hideAdd: g,
1787
1791
  centered: $,
1788
- addIcon: P,
1789
- removeIcon: G,
1790
- moreIcon: K,
1791
- more: X,
1792
+ addIcon: w,
1793
+ removeIcon: M,
1794
+ moreIcon: D,
1795
+ more: G,
1792
1796
  popupClassName: q,
1793
1797
  children: O,
1794
- items: x,
1798
+ items: C,
1795
1799
  animated: T,
1796
- style: g,
1800
+ style: p,
1797
1801
  indicatorSize: S,
1798
1802
  indicator: f
1799
1803
  } = e, _ = Sn(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
1800
1804
  prefixCls: k
1801
1805
  } = _, {
1802
- direction: H,
1806
+ direction: V,
1803
1807
  tabs: v,
1804
- getPrefixCls: J,
1808
+ getPrefixCls: Z,
1805
1809
  getPopupContainer: R
1806
- } = l.useContext(Me), U = J("tabs", k), ee = Oa(U), [ve, w, j] = yn(U, ee);
1810
+ } = l.useContext(Me), U = Z("tabs", k), ee = Oa(U), [ve, E, H] = yn(U, ee);
1807
1811
  let Y;
1808
1812
  y === "editable-card" && (Y = {
1809
1813
  onEdit: (ie, $e) => {
@@ -1813,43 +1817,43 @@ const st = (e) => {
1813
1817
  } = $e;
1814
1818
  N == null || N(ie === "add" ? de : z, ie);
1815
1819
  },
1816
- removeIcon: (t = G ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ia, null),
1817
- addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(Xt, null),
1818
- showAdd: h !== !0
1820
+ removeIcon: (t = M ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ia, null),
1821
+ addIcon: (w ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(Xt, null),
1822
+ showAdd: g !== !0
1819
1823
  });
1820
- const Q = J();
1824
+ const J = Z();
1821
1825
  if (process.env.NODE_ENV !== "production") {
1822
1826
  const ie = rt("Tabs");
1823
1827
  process.env.NODE_ENV !== "production" && ie(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && ie(!(S || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
1824
1828
  }
1825
- const F = Kt(C), re = dn(x, O), ae = ln(U, T), he = Object.assign(Object.assign({}, v == null ? void 0 : v.style), g), fe = {
1829
+ const F = Kt(x), re = dn(C, O), ae = ln(U, T), he = Object.assign(Object.assign({}, v == null ? void 0 : v.style), p), fe = {
1826
1830
  align: (n = f == null ? void 0 : f.align) !== null && n !== void 0 ? n : (a = v == null ? void 0 : v.indicator) === null || a === void 0 ? void 0 : a.align,
1827
1831
  size: (i = (o = (r = f == null ? void 0 : f.size) !== null && r !== void 0 ? r : S) !== null && o !== void 0 ? o : (c = v == null ? void 0 : v.indicator) === null || c === void 0 ? void 0 : c.size) !== null && i !== void 0 ? i : v == null ? void 0 : v.indicatorSize
1828
1832
  };
1829
1833
  return ve(/* @__PURE__ */ l.createElement(kt, Object.assign({
1830
- direction: H,
1834
+ direction: V,
1831
1835
  getPopupContainer: R
1832
1836
  }, _, {
1833
1837
  items: re,
1834
- className: A({
1838
+ className: W({
1835
1839
  [`${U}-${F}`]: F,
1836
1840
  [`${U}-card`]: ["card", "editable-card"].includes(y),
1837
1841
  [`${U}-editable-card`]: y === "editable-card",
1838
1842
  [`${U}-centered`]: $
1839
- }, v == null ? void 0 : v.className, E, B, w, j, ee),
1840
- popupClassName: A(q, w, j, ee),
1843
+ }, v == null ? void 0 : v.className, P, A, E, H, ee),
1844
+ popupClassName: W(q, E, H, ee),
1841
1845
  style: he,
1842
1846
  editable: Y,
1843
1847
  more: Object.assign({
1844
- icon: (p = (m = (s = (d = v == null ? void 0 : v.more) === null || d === void 0 ? void 0 : d.icon) !== null && s !== void 0 ? s : v == null ? void 0 : v.moreIcon) !== null && m !== void 0 ? m : K) !== null && p !== void 0 ? p : /* @__PURE__ */ l.createElement(ja, null),
1845
- transitionName: `${Q}-slide-up`
1846
- }, X),
1848
+ icon: (h = (m = (s = (d = v == null ? void 0 : v.more) === null || d === void 0 ? void 0 : d.icon) !== null && s !== void 0 ? s : v == null ? void 0 : v.moreIcon) !== null && m !== void 0 ? m : D) !== null && h !== void 0 ? h : /* @__PURE__ */ l.createElement(ja, null),
1849
+ transitionName: `${J}-slide-up`
1850
+ }, G),
1847
1851
  prefixCls: U,
1848
1852
  animated: ae,
1849
1853
  indicator: fe
1850
1854
  })));
1851
1855
  };
1852
- st.TabPane = Qt;
1856
+ st.TabPane = Jt;
1853
1857
  process.env.NODE_ENV !== "production" && (st.displayName = "Tabs");
1854
1858
  var _n = function(e, t) {
1855
1859
  var n = {};
@@ -1858,7 +1862,7 @@ var _n = function(e, t) {
1858
1862
  t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
1859
1863
  return n;
1860
1864
  };
1861
- const Zt = (e) => {
1865
+ const Qt = (e) => {
1862
1866
  var {
1863
1867
  prefixCls: t,
1864
1868
  className: n,
@@ -1866,13 +1870,13 @@ const Zt = (e) => {
1866
1870
  } = e, r = _n(e, ["prefixCls", "className", "hoverable"]);
1867
1871
  const {
1868
1872
  getPrefixCls: o
1869
- } = l.useContext(Me), c = o("card", t), i = A(`${c}-grid`, n, {
1873
+ } = l.useContext(Me), c = o("card", t), i = W(`${c}-grid`, n, {
1870
1874
  [`${c}-grid-hoverable`]: a
1871
1875
  });
1872
1876
  return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
1873
1877
  className: i
1874
1878
  }));
1875
- }, xn = (e) => {
1879
+ }, Cn = (e) => {
1876
1880
  const {
1877
1881
  antCls: t,
1878
1882
  componentCls: n,
@@ -1923,7 +1927,7 @@ const Zt = (e) => {
1923
1927
  }
1924
1928
  }
1925
1929
  });
1926
- }, Cn = (e) => {
1930
+ }, xn = (e) => {
1927
1931
  const {
1928
1932
  cardPaddingBase: t,
1929
1933
  colorBorderSecondary: n,
@@ -1985,7 +1989,7 @@ const Zt = (e) => {
1985
1989
  [`a:not(${t}-btn), > ${n}`]: {
1986
1990
  display: "inline-block",
1987
1991
  width: "100%",
1988
- color: e.colorTextDescription,
1992
+ color: e.colorIcon,
1989
1993
  lineHeight: u(e.fontHeight),
1990
1994
  transition: `color ${e.motionDurationMid}`,
1991
1995
  "&:hover": {
@@ -2071,7 +2075,7 @@ const Zt = (e) => {
2071
2075
  [`&:not(${t}-bordered)`]: {
2072
2076
  boxShadow: o
2073
2077
  },
2074
- [`${t}-head`]: xn(e),
2078
+ [`${t}-head`]: Cn(e),
2075
2079
  [`${t}-extra`]: {
2076
2080
  // https://stackoverflow.com/a/22429853/3040605
2077
2081
  marginInlineStart: "auto",
@@ -2083,7 +2087,7 @@ const Zt = (e) => {
2083
2087
  padding: c,
2084
2088
  borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2085
2089
  }, We()),
2086
- [`${t}-grid`]: Cn(e),
2090
+ [`${t}-grid`]: xn(e),
2087
2091
  [`${t}-cover`]: {
2088
2092
  "> *": {
2089
2093
  display: "block",
@@ -2238,106 +2242,106 @@ const zn = (e) => {
2238
2242
  bodyStyle: d = {},
2239
2243
  title: s,
2240
2244
  loading: m,
2241
- bordered: p,
2245
+ bordered: h,
2242
2246
  variant: y,
2243
- size: E,
2244
- type: B,
2245
- cover: C,
2247
+ size: P,
2248
+ type: A,
2249
+ cover: x,
2246
2250
  actions: N,
2247
- tabList: h,
2251
+ tabList: g,
2248
2252
  children: $,
2249
- activeTabKey: P,
2250
- defaultActiveTabKey: G,
2251
- tabBarExtraContent: K,
2252
- hoverable: X,
2253
+ activeTabKey: w,
2254
+ defaultActiveTabKey: M,
2255
+ tabBarExtraContent: D,
2256
+ hoverable: G,
2253
2257
  tabProps: q = {},
2254
2258
  classNames: O,
2255
- styles: x
2259
+ styles: C
2256
2260
  } = e, T = At(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
2257
- getPrefixCls: g,
2261
+ getPrefixCls: p,
2258
2262
  direction: S,
2259
2263
  card: f
2260
- } = l.useContext(Me), [_] = Aa("card", y, p);
2264
+ } = l.useContext(Me), [_] = Aa("card", y, h);
2261
2265
  if (process.env.NODE_ENV !== "production") {
2262
- const W = rt("Card");
2263
- [["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((L) => {
2264
- let [oe, Ce] = L;
2265
- W.deprecated(!(oe in e), oe, Ce);
2266
+ const K = rt("Card");
2267
+ [["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach((B) => {
2268
+ let [oe, xe] = B;
2269
+ K.deprecated(!(oe in e), oe, xe);
2266
2270
  });
2267
2271
  }
2268
- const k = (W) => {
2269
- var L;
2270
- (L = e.onTabChange) === null || L === void 0 || L.call(e, W);
2271
- }, H = (W) => {
2272
- var L;
2273
- return A((L = f == null ? void 0 : f.classNames) === null || L === void 0 ? void 0 : L[W], O == null ? void 0 : O[W]);
2274
- }, v = (W) => {
2275
- var L;
2276
- return Object.assign(Object.assign({}, (L = f == null ? void 0 : f.styles) === null || L === void 0 ? void 0 : L[W]), x == null ? void 0 : x[W]);
2277
- }, J = l.useMemo(() => {
2278
- let W = !1;
2279
- return l.Children.forEach($, (L) => {
2280
- (L == null ? void 0 : L.type) === Zt && (W = !0);
2281
- }), W;
2282
- }, [$]), R = g("card", n), [U, ee, ve] = In(R), w = /* @__PURE__ */ l.createElement(za, {
2272
+ const k = (K) => {
2273
+ var B;
2274
+ (B = e.onTabChange) === null || B === void 0 || B.call(e, K);
2275
+ }, V = (K) => {
2276
+ var B;
2277
+ return W((B = f == null ? void 0 : f.classNames) === null || B === void 0 ? void 0 : B[K], O == null ? void 0 : O[K]);
2278
+ }, v = (K) => {
2279
+ var B;
2280
+ return Object.assign(Object.assign({}, (B = f == null ? void 0 : f.styles) === null || B === void 0 ? void 0 : B[K]), C == null ? void 0 : C[K]);
2281
+ }, Z = l.useMemo(() => {
2282
+ let K = !1;
2283
+ return l.Children.forEach($, (B) => {
2284
+ (B == null ? void 0 : B.type) === Qt && (K = !0);
2285
+ }), K;
2286
+ }, [$]), R = p("card", n), [U, ee, ve] = In(R), E = /* @__PURE__ */ l.createElement(za, {
2283
2287
  loading: !0,
2284
2288
  active: !0,
2285
2289
  paragraph: {
2286
2290
  rows: 4
2287
2291
  },
2288
2292
  title: !1
2289
- }, $), j = P !== void 0, Y = Object.assign(Object.assign({}, q), {
2290
- [j ? "activeKey" : "defaultActiveKey"]: j ? P : G,
2291
- tabBarExtraContent: K
2293
+ }, $), H = w !== void 0, Y = Object.assign(Object.assign({}, q), {
2294
+ [H ? "activeKey" : "defaultActiveKey"]: H ? w : M,
2295
+ tabBarExtraContent: D
2292
2296
  });
2293
- let Q;
2294
- const F = Kt(E), re = !F || F === "default" ? "large" : F, ae = h ? /* @__PURE__ */ l.createElement(st, Object.assign({
2297
+ let J;
2298
+ const F = Kt(P), re = !F || F === "default" ? "large" : F, ae = g ? /* @__PURE__ */ l.createElement(st, Object.assign({
2295
2299
  size: re
2296
2300
  }, Y, {
2297
2301
  className: `${R}-head-tabs`,
2298
2302
  onChange: k,
2299
- items: h.map((W) => {
2303
+ items: g.map((K) => {
2300
2304
  var {
2301
- tab: L
2302
- } = W, oe = At(W, ["tab"]);
2305
+ tab: B
2306
+ } = K, oe = At(K, ["tab"]);
2303
2307
  return Object.assign({
2304
- label: L
2308
+ label: B
2305
2309
  }, oe);
2306
2310
  })
2307
2311
  })) : null;
2308
2312
  if (s || c || ae) {
2309
- const W = A(`${R}-head`, H("header")), L = A(`${R}-head-title`, H("title")), oe = A(`${R}-extra`, H("extra")), Ce = Object.assign(Object.assign({}, i), v("header"));
2310
- Q = /* @__PURE__ */ l.createElement("div", {
2311
- className: W,
2312
- style: Ce
2313
+ const K = W(`${R}-head`, V("header")), B = W(`${R}-head-title`, V("title")), oe = W(`${R}-extra`, V("extra")), xe = Object.assign(Object.assign({}, i), v("header"));
2314
+ J = /* @__PURE__ */ l.createElement("div", {
2315
+ className: K,
2316
+ style: xe
2313
2317
  }, /* @__PURE__ */ l.createElement("div", {
2314
2318
  className: `${R}-head-wrapper`
2315
2319
  }, s && /* @__PURE__ */ l.createElement("div", {
2316
- className: L,
2320
+ className: B,
2317
2321
  style: v("title")
2318
2322
  }, s), c && /* @__PURE__ */ l.createElement("div", {
2319
2323
  className: oe,
2320
2324
  style: v("extra")
2321
2325
  }, c)), ae);
2322
2326
  }
2323
- const he = A(`${R}-cover`, H("cover")), fe = C ? /* @__PURE__ */ l.createElement("div", {
2327
+ const he = W(`${R}-cover`, V("cover")), fe = x ? /* @__PURE__ */ l.createElement("div", {
2324
2328
  className: he,
2325
2329
  style: v("cover")
2326
- }, C) : null, ie = A(`${R}-body`, H("body")), $e = Object.assign(Object.assign({}, d), v("body")), z = /* @__PURE__ */ l.createElement("div", {
2330
+ }, x) : null, ie = W(`${R}-body`, V("body")), $e = Object.assign(Object.assign({}, d), v("body")), z = /* @__PURE__ */ l.createElement("div", {
2327
2331
  className: ie,
2328
2332
  style: $e
2329
- }, m ? w : $), de = A(`${R}-actions`, H("actions")), xe = N != null && N.length ? /* @__PURE__ */ l.createElement(zn, {
2333
+ }, m ? E : $), de = W(`${R}-actions`, V("actions")), Ce = N != null && N.length ? /* @__PURE__ */ l.createElement(zn, {
2330
2334
  actionClasses: de,
2331
2335
  actionStyle: v("actions"),
2332
2336
  actions: N
2333
- }) : null, Le = Ra(T, ["onTabChange"]), Xe = A(R, f == null ? void 0 : f.className, {
2337
+ }) : null, Le = Ra(T, ["onTabChange"]), Xe = W(R, f == null ? void 0 : f.className, {
2334
2338
  [`${R}-loading`]: m,
2335
2339
  [`${R}-bordered`]: _ !== "borderless",
2336
- [`${R}-hoverable`]: X,
2337
- [`${R}-contain-grid`]: J,
2338
- [`${R}-contain-tabs`]: h == null ? void 0 : h.length,
2340
+ [`${R}-hoverable`]: G,
2341
+ [`${R}-contain-grid`]: Z,
2342
+ [`${R}-contain-tabs`]: g == null ? void 0 : g.length,
2339
2343
  [`${R}-${F}`]: F,
2340
- [`${R}-type-${B}`]: !!B,
2344
+ [`${R}-type-${A}`]: !!A,
2341
2345
  [`${R}-rtl`]: S === "rtl"
2342
2346
  }, a, r, ee, ve), qe = Object.assign(Object.assign({}, f == null ? void 0 : f.style), o);
2343
2347
  return U(/* @__PURE__ */ l.createElement("div", Object.assign({
@@ -2345,7 +2349,7 @@ const zn = (e) => {
2345
2349
  }, Le, {
2346
2350
  className: Xe,
2347
2351
  style: qe
2348
- }), Q, fe, z, xe));
2352
+ }), J, fe, z, Ce));
2349
2353
  });
2350
2354
  var Ln = function(e, t) {
2351
2355
  var n = {};
@@ -2363,20 +2367,20 @@ const Dn = (e) => {
2363
2367
  description: o
2364
2368
  } = e, c = Ln(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2365
2369
  getPrefixCls: i
2366
- } = l.useContext(Me), d = i("card", t), s = A(`${d}-meta`, n), m = a ? /* @__PURE__ */ l.createElement("div", {
2370
+ } = l.useContext(Me), d = i("card", t), s = W(`${d}-meta`, n), m = a ? /* @__PURE__ */ l.createElement("div", {
2367
2371
  className: `${d}-meta-avatar`
2368
- }, a) : null, p = r ? /* @__PURE__ */ l.createElement("div", {
2372
+ }, a) : null, h = r ? /* @__PURE__ */ l.createElement("div", {
2369
2373
  className: `${d}-meta-title`
2370
2374
  }, r) : null, y = o ? /* @__PURE__ */ l.createElement("div", {
2371
2375
  className: `${d}-meta-description`
2372
- }, o) : null, E = p || y ? /* @__PURE__ */ l.createElement("div", {
2376
+ }, o) : null, P = h || y ? /* @__PURE__ */ l.createElement("div", {
2373
2377
  className: `${d}-meta-detail`
2374
- }, p, y) : null;
2378
+ }, h, y) : null;
2375
2379
  return /* @__PURE__ */ l.createElement("div", Object.assign({}, c, {
2376
2380
  className: s
2377
- }), m, E);
2381
+ }), m, P);
2378
2382
  }, Ke = Mn;
2379
- Ke.Grid = Zt;
2383
+ Ke.Grid = Qt;
2380
2384
  Ke.Meta = Dn;
2381
2385
  process.env.NODE_ENV !== "production" && (Ke.displayName = "Card");
2382
2386
  const Bn = "_kpiCard_19chq_43", jn = "_width430_19chq_49", An = "_width384_19chq_58", Gn = "_flexCol_19chq_62", Hn = "_flexRow_19chq_67", Wn = "_title_19chq_72", Vn = "_content_19chq_98", _e = {
@@ -2388,7 +2392,7 @@ const Bn = "_kpiCard_19chq_43", jn = "_width430_19chq_49", An = "_width384_19chq
2388
2392
  title: Wn,
2389
2393
  content: Vn
2390
2394
  };
2391
- function Zn({ title: e, content: t, icon: n, menuCollapsed: a }) {
2395
+ function Qn({ title: e, content: t, icon: n, menuCollapsed: a }) {
2392
2396
  return /* @__PURE__ */ ze(Ke, { className: pa(_e.kpiCard, a ? _e.width430 : _e.width384), children: e && t ? /* @__PURE__ */ ze("div", { className: _e.flexCol, children: /* @__PURE__ */ Et("div", { className: _e.flexRow, children: [
2393
2397
  n,
2394
2398
  /* @__PURE__ */ Et("div", { className: _e.flexCol, children: [
@@ -2398,5 +2402,5 @@ function Zn({ title: e, content: t, icon: n, menuCollapsed: a }) {
2398
2402
  ] }) }) : /* @__PURE__ */ ze(ga, {}) });
2399
2403
  }
2400
2404
  export {
2401
- Zn as KpiCard
2405
+ Qn as KpiCard
2402
2406
  };