@amateescu/portal-ui-components 0.0.34 → 0.0.35-beta0

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 (35) hide show
  1. package/dist/{Box-D-aleOLf.js → Box-C-zPAMZN.js} +1 -1
  2. package/dist/{Button-xgiLW4_3.js → Button-DG4uye8X.js} +3 -3
  3. package/dist/{ButtonBase-DUKuDCWw.js → ButtonBase-DrxMtoTW.js} +1 -1
  4. package/dist/{CircularProgress-Dq_bUtxt.js → CircularProgress-DpvktFBW.js} +1 -1
  5. package/dist/{EllipsisOutlined-CmR4hXJ_.js → EllipsisOutlined-DfCu6q_b.js} +816 -816
  6. package/dist/{PurePanel-CykVuv66.js → PurePanel-DvQTygSo.js} +487 -491
  7. package/dist/{Skeleton-BBwDqRB3.js → Skeleton-Bh0A9xju.js} +15 -18
  8. package/dist/{UserInfoDropdown-Bf6STdbW.js → UserInfoDropdown-CWTcdnqL.js} +1186 -1221
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomButton/CustomButton.stories.js +1 -1
  13. package/dist/components/CustomPagination/CustomPagination.js +4 -4
  14. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  15. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  18. package/dist/components/KpiCard/KpiCard.js +715 -682
  19. package/dist/components/LoadingAnimation/LoadingAnimation.js +2 -2
  20. package/dist/components/Login/Login.js +775 -760
  21. package/dist/components/Login/Login.stories.js +4 -1
  22. package/dist/components/SideMenu/SideMenu.js +1 -1
  23. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  25. package/dist/components/index.js +1 -1
  26. package/dist/context-dCWAMvX5.js +7320 -0
  27. package/dist/createSimplePaletteValueFilter-CwLqlaaZ.js +3457 -0
  28. package/dist/{createSvgIcon-CgFXfzFk.js → createSvgIcon-DNSRtm3a.js} +1 -1
  29. package/dist/index-B00P9-H3.js +1681 -0
  30. package/dist/main.js +1 -1
  31. package/dist/{useSlot-Baxtq84W.js → useSlot-B4sbbhYz.js} +2 -2
  32. package/package.json +28 -28
  33. package/dist/context-4ttylmIf.js +0 -7356
  34. package/dist/createSimplePaletteValueFilter-evt-Xthj.js +0 -3444
  35. package/dist/index-Dz00OoV7.js +0 -1687
@@ -1,26 +1,26 @@
1
1
  import * as m from "react";
2
- import c, { useContext as _e, useRef as D, forwardRef as me, useState as je, useEffect as te, useMemo as oe, Children as kt } from "react";
3
- import { I as eo, U as We, v as Ge, e as M, Z as pt, $ as le, h as vt, Y as to, a0 as oo, a1 as ro, w as ce, q as bt, c as N, a2 as Ct, a as re, k as Fe, a3 as no, a4 as ao, a5 as io, g as ht, m as ne, E as yt, x as so, l as lo, a6 as co, a7 as uo, a8 as St, a9 as xt, p as Et, aa as Ot, _ as J, i as Te, s as $t, H as mo, K as T, ab as Re, u as ue, ac as go, B as fo, ad as po, T as vo, b as bo, ae as Co, n as ho, o as yo, af as So, C as xo } from "./context-4ttylmIf.js";
2
+ import c, { useContext as _e, useRef as L, forwardRef as me, useState as je, useEffect as le, useMemo as oe, Children as eo, useLayoutEffect as to } from "react";
3
+ import { I as oo, U as We, v as Ge, e as M, Z as pt, $ as se, h as vt, Y as ro, a0 as no, a1 as ao, w as ce, q as bt, c as H, a2 as Ct, a as k, k as Fe, a3 as io, a4 as lo, a5 as so, g as ht, m as re, E as yt, x as co, l as uo, a6 as mo, a7 as go, a8 as St, a9 as xt, p as Et, aa as Ot, _ as Q, i as Te, s as $t, H as fo, K as T, ab as Re, u as ue, ac as po, B as vo, ad as bo, T as Co, b as ho, ae as yo, n as So, o as xo, af as Eo, C as Oo } from "./context-dCWAMvX5.js";
4
4
  import { R as It } from "./index-BBBjHj3B.js";
5
- import { _ as se } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
5
+ import { _ as ie } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
6
6
  const Ve = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
7
- function Eo(e) {
7
+ function $o(e) {
8
8
  return e && /* @__PURE__ */ c.isValidElement(e) && e.type === c.Fragment;
9
9
  }
10
- const Oo = (e, t, o) => /* @__PURE__ */ c.isValidElement(e) ? /* @__PURE__ */ c.cloneElement(e, typeof o == "function" ? o(e.props || {}) : o) : t;
10
+ const Io = (e, t, o) => /* @__PURE__ */ c.isValidElement(e) ? /* @__PURE__ */ c.cloneElement(e, typeof o == "function" ? o(e.props || {}) : o) : t;
11
11
  function Rt(e, t) {
12
- return Oo(e, e, t);
12
+ return Io(e, e, t);
13
13
  }
14
- var $o = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, Io = function(t, o) {
15
- return /* @__PURE__ */ m.createElement(eo, se({}, t, {
14
+ var Ro = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, wo = function(t, o) {
15
+ return /* @__PURE__ */ m.createElement(oo, ie({}, t, {
16
16
  ref: o,
17
- icon: $o
17
+ icon: Ro
18
18
  }));
19
- }, wt = /* @__PURE__ */ m.forwardRef(Io);
19
+ }, wt = /* @__PURE__ */ m.forwardRef(wo);
20
20
  process.env.NODE_ENV !== "production" && (wt.displayName = "LoadingOutlined");
21
21
  const Bt = /* @__PURE__ */ c.createContext(void 0);
22
22
  process.env.NODE_ENV !== "production" && (Bt.displayName = "zIndexContext");
23
- const V = 100, Ro = 10, wo = V * Ro, Bo = wo + V, Nt = {
23
+ const V = 100, Bo = 10, No = V * Bo, Ho = No + V, Nt = {
24
24
  Modal: V,
25
25
  Drawer: V,
26
26
  Popover: V,
@@ -28,18 +28,18 @@ const V = 100, Ro = 10, wo = V * Ro, Bo = wo + V, Nt = {
28
28
  Tooltip: V,
29
29
  Tour: V,
30
30
  FloatButton: V
31
- }, No = {
31
+ }, zo = {
32
32
  SelectLike: 50,
33
33
  Dropdown: 50,
34
34
  DatePicker: 50,
35
35
  Menu: 50,
36
36
  ImagePreview: 1
37
37
  };
38
- function Ho(e) {
38
+ function Po(e) {
39
39
  return e in Nt;
40
40
  }
41
- const yn = (e, t) => {
42
- const [, o] = We(), r = c.useContext(Bt), n = Ho(e);
41
+ const xn = (e, t) => {
42
+ const [, o] = We(), r = c.useContext(Bt), n = Po(e);
43
43
  let a;
44
44
  if (t !== void 0)
45
45
  a = [t, t];
@@ -47,46 +47,46 @@ const yn = (e, t) => {
47
47
  let i = r ?? 0;
48
48
  n ? i += // Use preset token zIndex by default but not stack when has parent container
49
49
  (r ? 0 : o.zIndexPopupBase) + // Container offset
50
- Nt[e] : i += No[e], a = [r === void 0 ? t : i, i];
50
+ Nt[e] : i += zo[e], a = [r === void 0 ? t : i, i];
51
51
  }
52
52
  if (process.env.NODE_ENV !== "production") {
53
- const i = Ge(e), s = o.zIndexPopupBase + Bo, l = a[0] || 0;
54
- process.env.NODE_ENV !== "production" && i(t !== void 0 || l <= s, "usage", "`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");
53
+ const i = Ge(e), l = o.zIndexPopupBase + Ho, s = a[0] || 0;
54
+ process.env.NODE_ENV !== "production" && i(t !== void 0 || s <= l, "usage", "`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");
55
55
  }
56
56
  return a;
57
57
  };
58
- var ae = M({}, It), zo = ae.version, we = ae.render, Po = ae.unmountComponentAtNode, ge;
58
+ var ne = M({}, It), _o = ne.version, we = ne.render, jo = ne.unmountComponentAtNode, ge;
59
59
  try {
60
- var _o = Number((zo || "").split(".")[0]);
61
- _o >= 18 && (ge = ae.createRoot);
60
+ var To = Number((_o || "").split(".")[0]);
61
+ To >= 18 && (ge = ne.createRoot);
62
62
  } catch {
63
63
  }
64
- function lt(e) {
65
- var t = ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
64
+ function st(e) {
65
+ var t = ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
66
66
  t && vt(t) === "object" && (t.usingClientEntryPoint = e);
67
67
  }
68
68
  var de = "__rc_react_root__";
69
- function jo(e, t) {
70
- lt(!0);
69
+ function Do(e, t) {
70
+ st(!0);
71
71
  var o = t[de] || ge(t);
72
- lt(!1), o.render(e), t[de] = o;
72
+ st(!1), o.render(e), t[de] = o;
73
73
  }
74
- function To(e, t) {
74
+ function Lo(e, t) {
75
75
  we == null || we(e, t);
76
76
  }
77
- function Do(e, t) {
77
+ function Ao(e, t) {
78
78
  if (ge) {
79
- jo(e, t);
79
+ Do(e, t);
80
80
  return;
81
81
  }
82
- To(e, t);
82
+ Lo(e, t);
83
83
  }
84
- function Lo(e) {
84
+ function Mo(e) {
85
85
  return De.apply(this, arguments);
86
86
  }
87
87
  function De() {
88
- return De = pt(/* @__PURE__ */ le().mark(function e(t) {
89
- return le().wrap(function(r) {
88
+ return De = pt(/* @__PURE__ */ se().mark(function e(t) {
89
+ return se().wrap(function(r) {
90
90
  for (; ; ) switch (r.prev = r.next) {
91
91
  case 0:
92
92
  return r.abrupt("return", Promise.resolve().then(function() {
@@ -100,24 +100,24 @@ function De() {
100
100
  }, e);
101
101
  })), De.apply(this, arguments);
102
102
  }
103
- function Ao(e) {
104
- Po(e);
103
+ function Wo(e) {
104
+ jo(e);
105
105
  }
106
- function Mo(e) {
106
+ function Go(e) {
107
107
  return Le.apply(this, arguments);
108
108
  }
109
109
  function Le() {
110
- return Le = pt(/* @__PURE__ */ le().mark(function e(t) {
111
- return le().wrap(function(r) {
110
+ return Le = pt(/* @__PURE__ */ se().mark(function e(t) {
111
+ return se().wrap(function(r) {
112
112
  for (; ; ) switch (r.prev = r.next) {
113
113
  case 0:
114
114
  if (ge === void 0) {
115
115
  r.next = 2;
116
116
  break;
117
117
  }
118
- return r.abrupt("return", Lo(t));
118
+ return r.abrupt("return", Mo(t));
119
119
  case 2:
120
- Ao(t);
120
+ Wo(t);
121
121
  case 3:
122
122
  case "end":
123
123
  return r.stop();
@@ -125,18 +125,18 @@ function Le() {
125
125
  }, e);
126
126
  })), Le.apply(this, arguments);
127
127
  }
128
- const Wo = (e, t) => {
128
+ const Fo = (e, t) => {
129
129
  if (process.env.NODE_ENV !== "production") {
130
130
  const o = parseInt(m.version.split(".")[0], 10), r = Object.keys(It);
131
- process.env.NODE_ENV !== "production" && to(o < 19 || r.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");
131
+ process.env.NODE_ENV !== "production" && ro(o < 19 || r.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");
132
132
  }
133
- return Do(e, t), () => Mo(t);
133
+ return Ao(e, t), () => Go(t);
134
134
  };
135
- let Go = Wo;
136
- function Fo() {
137
- return Go;
135
+ let Vo = Fo;
136
+ function Uo(e) {
137
+ return Vo;
138
138
  }
139
- const Vo = (e) => {
139
+ const qo = (e) => {
140
140
  const {
141
141
  componentCls: t,
142
142
  colorPrimary: o
@@ -163,12 +163,12 @@ const Vo = (e) => {
163
163
  }
164
164
  }
165
165
  };
166
- }, Uo = oo("Wave", (e) => [Vo(e)]), Ht = `${ro}-wave-target`;
166
+ }, Xo = no("Wave", (e) => [qo(e)]), Ht = `${ao}-wave-target`;
167
167
  function Be(e) {
168
168
  return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
169
169
  e !== "transparent";
170
170
  }
171
- function qo(e) {
171
+ function Zo(e) {
172
172
  const {
173
173
  borderTopColor: t,
174
174
  borderColor: o,
@@ -179,7 +179,7 @@ function qo(e) {
179
179
  function Ne(e) {
180
180
  return Number.isNaN(e) ? 0 : e;
181
181
  }
182
- const Xo = (e) => {
182
+ const Yo = (e) => {
183
183
  const {
184
184
  className: t,
185
185
  target: o,
@@ -189,71 +189,68 @@ const Xo = (e) => {
189
189
  m.useEffect(() => {
190
190
  i.current = n();
191
191
  }, []);
192
- const [s, l] = m.useState(null), [u, d] = m.useState([]), [g, p] = m.useState(0), [C, h] = m.useState(0), [x, f] = m.useState(0), [b, w] = m.useState(0), [E, v] = m.useState(!1), y = {
192
+ const [l, s] = m.useState(null), [u, d] = m.useState([]), [g, p] = m.useState(0), [C, h] = m.useState(0), [x, f] = m.useState(0), [b, B] = m.useState(0), [E, v] = m.useState(!1), y = {
193
193
  left: g,
194
194
  top: C,
195
195
  width: x,
196
196
  height: b,
197
197
  borderRadius: u.map((S) => `${S}px`).join(" ")
198
198
  };
199
- s && (y["--wave-color"] = s);
200
- function B() {
199
+ l && (y["--wave-color"] = l);
200
+ function N() {
201
201
  const S = getComputedStyle(o);
202
- l(qo(o));
203
- const $ = S.position === "static", {
204
- borderLeftWidth: H,
205
- borderTopWidth: z
202
+ s(Zo(o));
203
+ const I = S.position === "static", {
204
+ borderLeftWidth: P,
205
+ borderTopWidth: _
206
206
  } = S;
207
- p($ ? o.offsetLeft : Ne(-parseFloat(H))), h($ ? o.offsetTop : Ne(-parseFloat(z))), f(o.offsetWidth), w(o.offsetHeight);
207
+ p(I ? o.offsetLeft : Ne(-parseFloat(P))), h(I ? o.offsetTop : Ne(-parseFloat(_))), f(o.offsetWidth), B(o.offsetHeight);
208
208
  const {
209
- borderTopLeftRadius: j,
210
- borderTopRightRadius: P,
211
- borderBottomLeftRadius: q,
212
- borderBottomRightRadius: L
209
+ borderTopLeftRadius: O,
210
+ borderTopRightRadius: G,
211
+ borderBottomLeftRadius: z,
212
+ borderBottomRightRadius: q
213
213
  } = S;
214
- d([j, P, L, q].map((G) => Ne(parseFloat(G))));
214
+ d([O, G, q, z].map((A) => Ne(parseFloat(A))));
215
215
  }
216
216
  if (m.useEffect(() => {
217
217
  if (o) {
218
218
  const S = ce(() => {
219
- B(), v(!0);
219
+ N(), v(!0);
220
220
  });
221
- let $;
222
- return typeof ResizeObserver < "u" && ($ = new ResizeObserver(B), $.observe(o)), () => {
223
- ce.cancel(S), $ == null || $.disconnect();
221
+ let I;
222
+ return typeof ResizeObserver < "u" && (I = new ResizeObserver(N), I.observe(o)), () => {
223
+ ce.cancel(S), I == null || I.disconnect();
224
224
  };
225
225
  }
226
226
  }, []), !E)
227
227
  return null;
228
- const _ = (r === "Checkbox" || r === "Radio") && (o == null ? void 0 : o.classList.contains(Ht));
228
+ const j = (r === "Checkbox" || r === "Radio") && (o == null ? void 0 : o.classList.contains(Ht));
229
229
  return /* @__PURE__ */ m.createElement(bt, {
230
230
  visible: !0,
231
231
  motionAppear: !0,
232
232
  motionName: "wave-motion",
233
233
  motionDeadline: 5e3,
234
- onAppearEnd: (S, $) => {
235
- var H, z;
236
- if ($.deadline || $.propertyName === "opacity") {
237
- const j = (H = a.current) === null || H === void 0 ? void 0 : H.parentElement;
238
- (z = i.current) === null || z === void 0 || z.call(i).then(() => {
239
- j == null || j.remove();
234
+ onAppearEnd: (S, I) => {
235
+ var P, _;
236
+ if (I.deadline || I.propertyName === "opacity") {
237
+ const O = (P = a.current) === null || P === void 0 ? void 0 : P.parentElement;
238
+ (_ = i.current) === null || _ === void 0 || _.call(i).then(() => {
239
+ O == null || O.remove();
240
240
  });
241
241
  }
242
242
  return !1;
243
243
  }
244
- }, (S, $) => {
245
- let {
246
- className: H
247
- } = S;
248
- return /* @__PURE__ */ m.createElement("div", {
249
- ref: Ct(a, $),
250
- className: N(t, H, {
251
- "wave-quick": _
252
- }),
253
- style: y
254
- });
255
- });
256
- }, Zo = (e, t) => {
244
+ }, ({
245
+ className: S
246
+ }, I) => /* @__PURE__ */ m.createElement("div", {
247
+ ref: Ct(a, I),
248
+ className: H(t, S, {
249
+ "wave-quick": j
250
+ }),
251
+ style: y
252
+ }));
253
+ }, Ko = (e, t) => {
257
254
  var o;
258
255
  const {
259
256
  component: r
@@ -262,35 +259,35 @@ const Xo = (e) => {
262
259
  return;
263
260
  const n = document.createElement("div");
264
261
  n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", e == null || e.insertBefore(n, e == null ? void 0 : e.firstChild);
265
- const a = Fo();
262
+ const a = Uo();
266
263
  let i = null;
267
- function s() {
264
+ function l() {
268
265
  return i;
269
266
  }
270
- i = a(/* @__PURE__ */ m.createElement(Xo, Object.assign({}, t, {
267
+ i = a(/* @__PURE__ */ m.createElement(Yo, Object.assign({}, t, {
271
268
  target: e,
272
- registerUnmount: s
269
+ registerUnmount: l
273
270
  })), n);
274
- }, Yo = (e, t, o) => {
271
+ }, Jo = (e, t, o) => {
275
272
  const {
276
273
  wave: r
277
- } = m.useContext(re), [, n, a] = We(), i = Fe((u) => {
274
+ } = m.useContext(k), [, n, a] = We(), i = Fe((u) => {
278
275
  const d = e.current;
279
276
  if (r != null && r.disabled || !d)
280
277
  return;
281
278
  const g = d.querySelector(`.${Ht}`) || d, {
282
279
  showEffect: p
283
280
  } = r || {};
284
- (p || Zo)(g, {
281
+ (p || Ko)(g, {
285
282
  className: t,
286
283
  token: n,
287
284
  component: o,
288
285
  event: u,
289
286
  hashId: a
290
287
  });
291
- }), s = m.useRef(null);
288
+ }), l = m.useRef(null);
292
289
  return (u) => {
293
- ce.cancel(s.current), s.current = ce(() => {
290
+ ce.cancel(l.current), l.current = ce(() => {
294
291
  i(u);
295
292
  });
296
293
  };
@@ -301,27 +298,27 @@ const Xo = (e) => {
301
298
  component: r
302
299
  } = e, {
303
300
  getPrefixCls: n
304
- } = _e(re), a = D(null), i = n("wave"), [, s] = Uo(i), l = Yo(a, N(i, s), r);
301
+ } = _e(k), a = L(null), i = n("wave"), [, l] = Xo(i), s = Jo(a, H(i, l), r);
305
302
  if (c.useEffect(() => {
306
303
  const d = a.current;
307
304
  if (!d || d.nodeType !== 1 || o)
308
305
  return;
309
306
  const g = (p) => {
310
- !io(p.target) || // No need wave
311
- !d.getAttribute || d.getAttribute("disabled") || d.disabled || d.className.includes("disabled") || d.className.includes("-leave") || l(p);
307
+ !so(p.target) || // No need wave
308
+ !d.getAttribute || d.getAttribute("disabled") || d.disabled || d.className.includes("disabled") || d.className.includes("-leave") || s(p);
312
309
  };
313
310
  return d.addEventListener("click", g, !0), () => {
314
311
  d.removeEventListener("click", g, !0);
315
312
  };
316
313
  }, [o]), !/* @__PURE__ */ c.isValidElement(t))
317
314
  return t ?? null;
318
- const u = no(t) ? Ct(ao(t), a) : a;
315
+ const u = io(t) ? Ct(lo(t), a) : a;
319
316
  return Rt(t, {
320
317
  ref: u
321
318
  });
322
319
  };
323
320
  process.env.NODE_ENV !== "production" && (zt.displayName = "Wave");
324
- const Ko = (e) => {
321
+ const Qo = (e) => {
325
322
  const {
326
323
  componentCls: t
327
324
  } = e;
@@ -336,7 +333,7 @@ const Ko = (e) => {
336
333
  }
337
334
  }
338
335
  };
339
- }, Jo = (e) => {
336
+ }, ko = (e) => {
340
337
  const {
341
338
  componentCls: t,
342
339
  antCls: o
@@ -374,7 +371,7 @@ const Ko = (e) => {
374
371
  }
375
372
  }
376
373
  };
377
- }, Qo = (e) => {
374
+ }, er = (e) => {
378
375
  const {
379
376
  componentCls: t
380
377
  } = e;
@@ -400,13 +397,13 @@ const Ko = (e) => {
400
397
  }
401
398
  }
402
399
  };
403
- }, ko = ht("Space", (e) => {
404
- const t = ne(e, {
400
+ }, tr = ht("Space", (e) => {
401
+ const t = re(e, {
405
402
  spaceGapSmallSize: e.paddingXS,
406
403
  spaceGapMiddleSize: e.padding,
407
404
  spaceGapLargeSize: e.paddingLG
408
405
  });
409
- return [Jo(t), Qo(t), Ko(t)];
406
+ return [ko(t), er(t), Qo(t)];
410
407
  }, () => ({}), {
411
408
  // Space component don't apply extra font style
412
409
  // https://github.com/ant-design/ant-design/issues/40315
@@ -419,7 +416,7 @@ var Pt = function(e, t) {
419
416
  t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (o[r[n]] = e[r[n]]);
420
417
  return o;
421
418
  };
422
- const fe = /* @__PURE__ */ m.createContext(null), er = (e, t) => {
419
+ const fe = /* @__PURE__ */ m.createContext(null), or = (e, t) => {
423
420
  const o = m.useContext(fe), r = m.useMemo(() => {
424
421
  if (!o)
425
422
  return "";
@@ -427,11 +424,11 @@ const fe = /* @__PURE__ */ m.createContext(null), er = (e, t) => {
427
424
  compactDirection: n,
428
425
  isFirstItem: a,
429
426
  isLastItem: i
430
- } = o, s = n === "vertical" ? "-vertical-" : "-";
431
- return N(`${e}-compact${s}item`, {
432
- [`${e}-compact${s}first-item`]: a,
433
- [`${e}-compact${s}last-item`]: i,
434
- [`${e}-compact${s}item-rtl`]: t === "rtl"
427
+ } = o, l = n === "vertical" ? "-vertical-" : "-";
428
+ return H(`${e}-compact${l}item`, {
429
+ [`${e}-compact${l}first-item`]: a,
430
+ [`${e}-compact${l}last-item`]: i,
431
+ [`${e}-compact${l}item-rtl`]: t === "rtl"
435
432
  });
436
433
  }, [e, t, o]);
437
434
  return {
@@ -439,39 +436,39 @@ const fe = /* @__PURE__ */ m.createContext(null), er = (e, t) => {
439
436
  compactDirection: o == null ? void 0 : o.compactDirection,
440
437
  compactItemClassnames: r
441
438
  };
442
- }, tr = (e) => {
439
+ }, rr = (e) => {
443
440
  const {
444
441
  children: t
445
442
  } = e;
446
443
  return /* @__PURE__ */ m.createElement(fe.Provider, {
447
444
  value: null
448
445
  }, t);
449
- }, or = (e) => {
446
+ }, nr = (e) => {
450
447
  const {
451
448
  children: t
452
449
  } = e, o = Pt(e, ["children"]);
453
450
  return /* @__PURE__ */ m.createElement(fe.Provider, {
454
451
  value: m.useMemo(() => o, [o])
455
452
  }, t);
456
- }, Sn = (e) => {
453
+ }, En = (e) => {
457
454
  const {
458
455
  getPrefixCls: t,
459
456
  direction: o
460
- } = m.useContext(re), {
457
+ } = m.useContext(k), {
461
458
  size: r,
462
459
  direction: n,
463
460
  block: a,
464
461
  prefixCls: i,
465
- className: s,
466
- rootClassName: l,
462
+ className: l,
463
+ rootClassName: s,
467
464
  children: u
468
- } = e, d = Pt(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), g = yt((E) => r ?? E), p = t("space-compact", i), [C, h] = ko(p), x = N(p, h, {
465
+ } = e, d = Pt(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), g = yt((E) => r ?? E), p = t("space-compact", i), [C, h] = tr(p), x = H(p, h, {
469
466
  [`${p}-rtl`]: o === "rtl",
470
467
  [`${p}-block`]: a,
471
468
  [`${p}-vertical`]: n === "vertical"
472
- }, s, l), f = m.useContext(fe), b = so(u), w = m.useMemo(() => b.map((E, v) => {
469
+ }, l, s), f = m.useContext(fe), b = co(u), B = m.useMemo(() => b.map((E, v) => {
473
470
  const y = (E == null ? void 0 : E.key) || `${p}-item-${v}`;
474
- return /* @__PURE__ */ m.createElement(or, {
471
+ return /* @__PURE__ */ m.createElement(nr, {
475
472
  key: y,
476
473
  compactSize: g,
477
474
  compactDirection: n,
@@ -481,24 +478,24 @@ const fe = /* @__PURE__ */ m.createContext(null), er = (e, t) => {
481
478
  }), [r, b, f]);
482
479
  return b.length === 0 ? null : C(/* @__PURE__ */ m.createElement("div", Object.assign({
483
480
  className: x
484
- }, d), w));
481
+ }, d), B));
485
482
  };
486
- var rr = function(e, t) {
483
+ var ar = function(e, t) {
487
484
  var o = {};
488
485
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
489
486
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
490
487
  t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (o[r[n]] = e[r[n]]);
491
488
  return o;
492
489
  };
493
- const _t = /* @__PURE__ */ m.createContext(void 0), nr = (e) => {
490
+ const _t = /* @__PURE__ */ m.createContext(void 0), ir = (e) => {
494
491
  const {
495
492
  getPrefixCls: t,
496
493
  direction: o
497
- } = m.useContext(re), {
494
+ } = m.useContext(k), {
498
495
  prefixCls: r,
499
496
  size: n,
500
497
  className: a
501
- } = e, i = rr(e, ["prefixCls", "size", "className"]), s = t("btn-group", r), [, , l] = We(), u = m.useMemo(() => {
498
+ } = e, i = ar(e, ["prefixCls", "size", "className"]), l = t("btn-group", r), [, , s] = We(), u = m.useMemo(() => {
502
499
  switch (n) {
503
500
  case "large":
504
501
  return "lg";
@@ -512,17 +509,17 @@ const _t = /* @__PURE__ */ m.createContext(void 0), nr = (e) => {
512
509
  const g = Ge("Button.Group");
513
510
  g.deprecated(!1, "Button.Group", "Space.Compact"), process.env.NODE_ENV !== "production" && g(!n || ["large", "small", "middle"].includes(n), "usage", "Invalid prop `size`.");
514
511
  }
515
- const d = N(s, {
516
- [`${s}-${u}`]: u,
517
- [`${s}-rtl`]: o === "rtl"
518
- }, a, l);
512
+ const d = H(l, {
513
+ [`${l}-${u}`]: u,
514
+ [`${l}-rtl`]: o === "rtl"
515
+ }, a, s);
519
516
  return /* @__PURE__ */ m.createElement(_t.Provider, {
520
517
  value: n
521
518
  }, /* @__PURE__ */ m.createElement("div", Object.assign({}, i, {
522
519
  className: d
523
520
  })));
524
521
  }, ct = /^[\u4E00-\u9FA5]{2}$/, Ae = ct.test.bind(ct);
525
- function xn(e) {
522
+ function On(e) {
526
523
  return e === "danger" ? {
527
524
  danger: !0
528
525
  } : {
@@ -532,38 +529,38 @@ function xn(e) {
532
529
  function ut(e) {
533
530
  return typeof e == "string";
534
531
  }
535
- function ie(e) {
532
+ function ae(e) {
536
533
  return e === "text" || e === "link";
537
534
  }
538
- function ar(e, t) {
535
+ function lr(e, t) {
539
536
  if (e == null)
540
537
  return;
541
538
  const o = t ? " " : "";
542
539
  return typeof e != "string" && typeof e != "number" && ut(e.type) && Ae(e.props.children) ? Rt(e, {
543
540
  children: e.props.children.split("").join(o)
544
- }) : ut(e) ? Ae(e) ? /* @__PURE__ */ c.createElement("span", null, e.split("").join(o)) : /* @__PURE__ */ c.createElement("span", null, e) : Eo(e) ? /* @__PURE__ */ c.createElement("span", null, e) : e;
541
+ }) : ut(e) ? Ae(e) ? /* @__PURE__ */ c.createElement("span", null, e.split("").join(o)) : /* @__PURE__ */ c.createElement("span", null, e) : $o(e) ? /* @__PURE__ */ c.createElement("span", null, e) : e;
545
542
  }
546
- function ir(e, t) {
543
+ function sr(e, t) {
547
544
  let o = !1;
548
545
  const r = [];
549
546
  return c.Children.forEach(e, (n) => {
550
547
  const a = typeof n, i = a === "string" || a === "number";
551
548
  if (o && i) {
552
- const s = r.length - 1, l = r[s];
553
- r[s] = `${l}${n}`;
549
+ const l = r.length - 1, s = r[l];
550
+ r[l] = `${s}${n}`;
554
551
  } else
555
552
  r.push(n);
556
553
  o = i;
557
- }), c.Children.map(r, (n) => ar(n, t));
554
+ }), c.Children.map(r, (n) => lr(n, t));
558
555
  }
559
- ["default", "primary", "danger"].concat(lo(Ve));
556
+ ["default", "primary", "danger"].concat(uo(Ve));
560
557
  const Me = /* @__PURE__ */ me((e, t) => {
561
558
  const {
562
559
  className: o,
563
560
  style: r,
564
561
  children: n,
565
562
  prefixCls: a
566
- } = e, i = N(`${a}-icon`, o);
563
+ } = e, i = H(`${a}-icon`, o);
567
564
  return /* @__PURE__ */ c.createElement("span", {
568
565
  ref: t,
569
566
  className: i,
@@ -575,7 +572,7 @@ const Me = /* @__PURE__ */ me((e, t) => {
575
572
  className: r,
576
573
  style: n,
577
574
  iconClassName: a
578
- } = e, i = N(`${o}-loading-icon`, r);
575
+ } = e, i = H(`${o}-loading-icon`, r);
579
576
  return /* @__PURE__ */ c.createElement(Me, {
580
577
  prefixCls: o,
581
578
  className: i,
@@ -592,7 +589,7 @@ const Me = /* @__PURE__ */ me((e, t) => {
592
589
  width: e.scrollWidth,
593
590
  opacity: 1,
594
591
  transform: "scale(1)"
595
- }), sr = (e) => {
592
+ }), cr = (e) => {
596
593
  const {
597
594
  prefixCls: t,
598
595
  loading: o,
@@ -600,13 +597,13 @@ const Me = /* @__PURE__ */ me((e, t) => {
600
597
  className: n,
601
598
  style: a,
602
599
  mount: i
603
- } = e, s = !!o;
600
+ } = e, l = !!o;
604
601
  return r ? /* @__PURE__ */ c.createElement(dt, {
605
602
  prefixCls: t,
606
603
  className: n,
607
604
  style: a
608
605
  }) : /* @__PURE__ */ c.createElement(bt, {
609
- visible: s,
606
+ visible: l,
610
607
  // Used for minus flex gap style only
611
608
  motionName: `${t}-loading-icon-motion`,
612
609
  motionAppear: !i,
@@ -619,17 +616,16 @@ const Me = /* @__PURE__ */ me((e, t) => {
619
616
  onEnterActive: ze,
620
617
  onLeaveStart: ze,
621
618
  onLeaveActive: He
622
- }, (l, u) => {
623
- let {
624
- className: d,
625
- style: g
626
- } = l;
627
- const p = Object.assign(Object.assign({}, a), g);
619
+ }, ({
620
+ className: s,
621
+ style: u
622
+ }, d) => {
623
+ const g = Object.assign(Object.assign({}, a), u);
628
624
  return /* @__PURE__ */ c.createElement(dt, {
629
625
  prefixCls: t,
630
- className: N(n, d),
631
- style: p,
632
- ref: u
626
+ className: H(n, s),
627
+ style: g,
628
+ ref: d
633
629
  });
634
630
  });
635
631
  }, mt = (e, t) => ({
@@ -650,7 +646,7 @@ const Me = /* @__PURE__ */ me((e, t) => {
650
646
  }
651
647
  }
652
648
  }
653
- }), lr = (e) => {
649
+ }), ur = (e) => {
654
650
  const {
655
651
  componentCls: t,
656
652
  fontSize: o,
@@ -699,56 +695,56 @@ const Me = /* @__PURE__ */ me((e, t) => {
699
695
  ]
700
696
  };
701
697
  };
702
- var cr = ["b"], ur = ["v"], Pe = function(t) {
698
+ var dr = ["b"], mr = ["v"], Pe = function(t) {
703
699
  return Math.round(Number(t || 0));
704
- }, dr = function(t) {
700
+ }, gr = function(t) {
705
701
  if (t instanceof Ot)
706
702
  return t;
707
703
  if (t && vt(t) === "object" && "h" in t && "b" in t) {
708
- var o = t, r = o.b, n = Et(o, cr);
704
+ var o = t, r = o.b, n = Et(o, dr);
709
705
  return M(M({}, n), {}, {
710
706
  v: r
711
707
  });
712
708
  }
713
709
  return typeof t == "string" && /hsb/.test(t) ? t.replace(/hsb/, "hsv") : t;
714
710
  }, U = /* @__PURE__ */ function(e) {
715
- co(o, e);
716
- var t = uo(o);
711
+ mo(o, e);
712
+ var t = go(o);
717
713
  function o(r) {
718
- return St(this, o), t.call(this, dr(r));
714
+ return St(this, o), t.call(this, gr(r));
719
715
  }
720
716
  return xt(o, [{
721
717
  key: "toHsbString",
722
718
  value: function() {
723
- var n = this.toHsb(), a = Pe(n.s * 100), i = Pe(n.b * 100), s = Pe(n.h), l = n.a, u = "hsb(".concat(s, ", ").concat(a, "%, ").concat(i, "%)"), d = "hsba(".concat(s, ", ").concat(a, "%, ").concat(i, "%, ").concat(l.toFixed(l === 0 ? 0 : 2), ")");
724
- return l === 1 ? u : d;
719
+ var n = this.toHsb(), a = Pe(n.s * 100), i = Pe(n.b * 100), l = Pe(n.h), s = n.a, u = "hsb(".concat(l, ", ").concat(a, "%, ").concat(i, "%)"), d = "hsba(".concat(l, ", ").concat(a, "%, ").concat(i, "%, ").concat(s.toFixed(s === 0 ? 0 : 2), ")");
720
+ return s === 1 ? u : d;
725
721
  }
726
722
  }, {
727
723
  key: "toHsb",
728
724
  value: function() {
729
- var n = this.toHsv(), a = n.v, i = Et(n, ur);
725
+ var n = this.toHsv(), a = n.v, i = Et(n, mr);
730
726
  return M(M({}, i), {}, {
731
727
  b: a,
732
728
  a: this.a
733
729
  });
734
730
  }
735
731
  }]), o;
736
- }(Ot), mr = "rc-color-picker", K = function(t) {
732
+ }(Ot), fr = "rc-color-picker", J = function(t) {
737
733
  return t instanceof U ? t : new U(t);
738
- }, gr = K("#1677ff"), jt = function(t) {
739
- var o = t.offset, r = t.targetRef, n = t.containerRef, a = t.color, i = t.type, s = n.current.getBoundingClientRect(), l = s.width, u = s.height, d = r.current.getBoundingClientRect(), g = d.width, p = d.height, C = g / 2, h = p / 2, x = (o.x + C) / l, f = 1 - (o.y + h) / u, b = a.toHsb(), w = x, E = (o.x + C) / l * 360;
734
+ }, pr = J("#1677ff"), jt = function(t) {
735
+ var o = t.offset, r = t.targetRef, n = t.containerRef, a = t.color, i = t.type, l = n.current.getBoundingClientRect(), s = l.width, u = l.height, d = r.current.getBoundingClientRect(), g = d.width, p = d.height, C = g / 2, h = p / 2, x = (o.x + C) / s, f = 1 - (o.y + h) / u, b = a.toHsb(), B = x, E = (o.x + C) / s * 360;
740
736
  if (i)
741
737
  switch (i) {
742
738
  case "hue":
743
- return K(M(M({}, b), {}, {
739
+ return J(M(M({}, b), {}, {
744
740
  h: E <= 0 ? 0 : E
745
741
  }));
746
742
  case "alpha":
747
- return K(M(M({}, b), {}, {
748
- a: w <= 0 ? 0 : w
743
+ return J(M(M({}, b), {}, {
744
+ a: B <= 0 ? 0 : B
749
745
  }));
750
746
  }
751
- return K({
747
+ return J({
752
748
  h: b.h,
753
749
  s: x <= 0 ? 0 : x,
754
750
  b: f >= 1 ? 1 : f,
@@ -774,20 +770,20 @@ var cr = ["b"], ur = ["v"], Pe = function(t) {
774
770
  y: (1 - r.b) * 100
775
771
  };
776
772
  }
777
- }, fr = function(t) {
778
- var o = t.color, r = t.prefixCls, n = t.className, a = t.style, i = t.onClick, s = "".concat(r, "-color-block");
773
+ }, vr = function(t) {
774
+ var o = t.color, r = t.prefixCls, n = t.className, a = t.style, i = t.onClick, l = "".concat(r, "-color-block");
779
775
  return /* @__PURE__ */ c.createElement("div", {
780
- className: N(s, n),
776
+ className: H(l, n),
781
777
  style: a,
782
778
  onClick: i
783
779
  }, /* @__PURE__ */ c.createElement("div", {
784
- className: "".concat(s, "-inner"),
780
+ className: "".concat(l, "-inner"),
785
781
  style: {
786
782
  background: o
787
783
  }
788
784
  }));
789
785
  };
790
- function pr(e) {
786
+ function br(e) {
791
787
  var t = "touches" in e ? e.touches[0] : e, o = document.documentElement.scrollLeft || document.body.scrollLeft || window.pageXOffset, r = document.documentElement.scrollTop || document.body.scrollTop || window.pageYOffset;
792
788
  return {
793
789
  pageX: t.pageX - o,
@@ -795,38 +791,38 @@ function pr(e) {
795
791
  };
796
792
  }
797
793
  function Dt(e) {
798
- var t = e.targetRef, o = e.containerRef, r = e.direction, n = e.onDragChange, a = e.onDragChangeComplete, i = e.calculate, s = e.color, l = e.disabledDrag, u = je({
794
+ var t = e.targetRef, o = e.containerRef, r = e.direction, n = e.onDragChange, a = e.onDragChangeComplete, i = e.calculate, l = e.color, s = e.disabledDrag, u = je({
799
795
  x: 0,
800
796
  y: 0
801
- }), d = J(u, 2), g = d[0], p = d[1], C = D(null), h = D(null);
802
- te(function() {
797
+ }), d = Q(u, 2), g = d[0], p = d[1], C = L(null), h = L(null);
798
+ le(function() {
803
799
  p(i());
804
- }, [s]), te(function() {
800
+ }, [l]), le(function() {
805
801
  return function() {
806
802
  document.removeEventListener("mousemove", C.current), document.removeEventListener("mouseup", h.current), document.removeEventListener("touchmove", C.current), document.removeEventListener("touchend", h.current), C.current = null, h.current = null;
807
803
  };
808
804
  }, []);
809
805
  var x = function(v) {
810
- var y = pr(v), B = y.pageX, _ = y.pageY, S = o.current.getBoundingClientRect(), $ = S.x, H = S.y, z = S.width, j = S.height, P = t.current.getBoundingClientRect(), q = P.width, L = P.height, G = q / 2, Z = L / 2, A = Math.max(0, Math.min(B - $, z)) - G, I = Math.max(0, Math.min(_ - H, j)) - Z, Q = {
811
- x: A,
812
- y: r === "x" ? g.y : I
806
+ var y = br(v), N = y.pageX, j = y.pageY, S = o.current.getBoundingClientRect(), I = S.x, P = S.y, _ = S.width, O = S.height, G = t.current.getBoundingClientRect(), z = G.width, q = G.height, A = z / 2, Z = q / 2, D = Math.max(0, Math.min(N - I, _)) - A, R = Math.max(0, Math.min(j - P, O)) - Z, ee = {
807
+ x: D,
808
+ y: r === "x" ? g.y : R
813
809
  };
814
- if (q === 0 && L === 0 || q !== L)
810
+ if (z === 0 && q === 0 || z !== q)
815
811
  return !1;
816
- n == null || n(Q);
812
+ n == null || n(ee);
817
813
  }, f = function(v) {
818
814
  v.preventDefault(), x(v);
819
815
  }, b = function(v) {
820
816
  v.preventDefault(), document.removeEventListener("mousemove", C.current), document.removeEventListener("mouseup", h.current), document.removeEventListener("touchmove", C.current), document.removeEventListener("touchend", h.current), C.current = null, h.current = null, a == null || a();
821
- }, w = function(v) {
822
- document.removeEventListener("mousemove", C.current), document.removeEventListener("mouseup", h.current), !l && (x(v), document.addEventListener("mousemove", f), document.addEventListener("mouseup", b), document.addEventListener("touchmove", f), document.addEventListener("touchend", b), C.current = f, h.current = b);
817
+ }, B = function(v) {
818
+ document.removeEventListener("mousemove", C.current), document.removeEventListener("mouseup", h.current), !s && (x(v), document.addEventListener("mousemove", f), document.addEventListener("mouseup", b), document.addEventListener("touchmove", f), document.addEventListener("touchend", b), C.current = f, h.current = b);
823
819
  };
824
- return [g, w];
820
+ return [g, B];
825
821
  }
826
822
  var Lt = function(t) {
827
823
  var o = t.size, r = o === void 0 ? "default" : o, n = t.color, a = t.prefixCls;
828
824
  return /* @__PURE__ */ c.createElement("div", {
829
- className: N("".concat(a, "-handler"), Te({}, "".concat(a, "-handler-sm"), r === "small")),
825
+ className: H("".concat(a, "-handler"), Te({}, "".concat(a, "-handler-sm"), r === "small")),
830
826
  style: {
831
827
  backgroundColor: n
832
828
  }
@@ -851,19 +847,19 @@ var Lt = function(t) {
851
847
  transform: "translate(-50%, -50%)"
852
848
  }
853
849
  }, o);
854
- }), vr = function(t) {
855
- var o = t.color, r = t.onChange, n = t.prefixCls, a = t.onChangeComplete, i = t.disabled, s = D(), l = D(), u = D(o), d = Fe(function(x) {
850
+ }), Cr = function(t) {
851
+ var o = t.color, r = t.onChange, n = t.prefixCls, a = t.onChangeComplete, i = t.disabled, l = L(), s = L(), u = L(o), d = Fe(function(x) {
856
852
  var f = jt({
857
853
  offset: x,
858
- targetRef: l,
859
- containerRef: s,
854
+ targetRef: s,
855
+ containerRef: l,
860
856
  color: o
861
857
  });
862
858
  u.current = f, r(f);
863
859
  }), g = Dt({
864
860
  color: o,
865
- containerRef: s,
866
- targetRef: l,
861
+ containerRef: l,
862
+ targetRef: s,
867
863
  calculate: function() {
868
864
  return Tt(o);
869
865
  },
@@ -872,9 +868,9 @@ var Lt = function(t) {
872
868
  return a == null ? void 0 : a(u.current);
873
869
  },
874
870
  disabledDrag: i
875
- }), p = J(g, 2), C = p[0], h = p[1];
871
+ }), p = Q(g, 2), C = p[0], h = p[1];
876
872
  return /* @__PURE__ */ c.createElement("div", {
877
- ref: s,
873
+ ref: l,
878
874
  className: "".concat(n, "-select"),
879
875
  onMouseDown: h,
880
876
  onTouchStart: h
@@ -883,7 +879,7 @@ var Lt = function(t) {
883
879
  }, /* @__PURE__ */ c.createElement(Mt, {
884
880
  x: C.x,
885
881
  y: C.y,
886
- ref: l
882
+ ref: s
887
883
  }, /* @__PURE__ */ c.createElement(Lt, {
888
884
  color: o.toRgbString(),
889
885
  prefixCls: n
@@ -894,46 +890,46 @@ var Lt = function(t) {
894
890
  backgroundImage: "linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"
895
891
  }
896
892
  })));
897
- }, br = function(t, o) {
893
+ }, hr = function(t, o) {
898
894
  var r = $t(t, {
899
895
  value: o
900
- }), n = J(r, 2), a = n[0], i = n[1], s = oe(function() {
901
- return K(a);
896
+ }), n = Q(r, 2), a = n[0], i = n[1], l = oe(function() {
897
+ return J(a);
902
898
  }, [a]);
903
- return [s, i];
904
- }, Cr = function(t) {
905
- var o = t.colors, r = t.children, n = t.direction, a = n === void 0 ? "to right" : n, i = t.type, s = t.prefixCls, l = oe(function() {
899
+ return [l, i];
900
+ }, yr = function(t) {
901
+ var o = t.colors, r = t.children, n = t.direction, a = n === void 0 ? "to right" : n, i = t.type, l = t.prefixCls, s = oe(function() {
906
902
  return o.map(function(u, d) {
907
- var g = K(u);
903
+ var g = J(u);
908
904
  return i === "alpha" && d === o.length - 1 && (g = new U(g.setA(1))), g.toRgbString();
909
905
  }).join(",");
910
906
  }, [o, i]);
911
907
  return /* @__PURE__ */ c.createElement("div", {
912
- className: "".concat(s, "-gradient"),
908
+ className: "".concat(l, "-gradient"),
913
909
  style: {
914
910
  position: "absolute",
915
911
  inset: 0,
916
- background: "linear-gradient(".concat(a, ", ").concat(l, ")")
912
+ background: "linear-gradient(".concat(a, ", ").concat(s, ")")
917
913
  }
918
914
  }, r);
919
- }, hr = function(t) {
920
- var o = t.prefixCls, r = t.colors, n = t.disabled, a = t.onChange, i = t.onChangeComplete, s = t.color, l = t.type, u = D(), d = D(), g = D(s), p = function(y) {
921
- return l === "hue" ? y.getHue() : y.a * 100;
915
+ }, Sr = function(t) {
916
+ var o = t.prefixCls, r = t.colors, n = t.disabled, a = t.onChange, i = t.onChangeComplete, l = t.color, s = t.type, u = L(), d = L(), g = L(l), p = function(y) {
917
+ return s === "hue" ? y.getHue() : y.a * 100;
922
918
  }, C = Fe(function(v) {
923
919
  var y = jt({
924
920
  offset: v,
925
921
  targetRef: d,
926
922
  containerRef: u,
927
- color: s,
928
- type: l
923
+ color: l,
924
+ type: s
929
925
  });
930
926
  g.current = y, a(p(y));
931
927
  }), h = Dt({
932
- color: s,
928
+ color: l,
933
929
  targetRef: d,
934
930
  containerRef: u,
935
931
  calculate: function() {
936
- return Tt(s, l);
932
+ return Tt(l, s);
937
933
  },
938
934
  onDragChange: C,
939
935
  onDragChangeComplete: function() {
@@ -941,22 +937,22 @@ var Lt = function(t) {
941
937
  },
942
938
  direction: "x",
943
939
  disabledDrag: n
944
- }), x = J(h, 2), f = x[0], b = x[1], w = c.useMemo(function() {
945
- if (l === "hue") {
946
- var v = s.toHsb();
940
+ }), x = Q(h, 2), f = x[0], b = x[1], B = c.useMemo(function() {
941
+ if (s === "hue") {
942
+ var v = l.toHsb();
947
943
  v.s = 1, v.b = 1, v.a = 1;
948
944
  var y = new U(v);
949
945
  return y;
950
946
  }
951
- return s;
952
- }, [s, l]), E = c.useMemo(function() {
947
+ return l;
948
+ }, [l, s]), E = c.useMemo(function() {
953
949
  return r.map(function(v) {
954
950
  return "".concat(v.color, " ").concat(v.percent, "%");
955
951
  });
956
952
  }, [r]);
957
953
  return /* @__PURE__ */ c.createElement("div", {
958
954
  ref: u,
959
- className: N("".concat(o, "-slider"), "".concat(o, "-slider-").concat(l)),
955
+ className: H("".concat(o, "-slider"), "".concat(o, "-slider-").concat(s)),
960
956
  onMouseDown: b,
961
957
  onTouchStart: b
962
958
  }, /* @__PURE__ */ c.createElement(At, {
@@ -967,21 +963,21 @@ var Lt = function(t) {
967
963
  ref: d
968
964
  }, /* @__PURE__ */ c.createElement(Lt, {
969
965
  size: "small",
970
- color: w.toHexString(),
966
+ color: B.toHexString(),
971
967
  prefixCls: o
972
- })), /* @__PURE__ */ c.createElement(Cr, {
968
+ })), /* @__PURE__ */ c.createElement(yr, {
973
969
  colors: E,
974
- type: l,
970
+ type: s,
975
971
  prefixCls: o
976
972
  })));
977
973
  };
978
- function yr(e) {
974
+ function xr(e) {
979
975
  return m.useMemo(function() {
980
976
  var t = e || {}, o = t.slider;
981
- return [o || hr];
977
+ return [o || Sr];
982
978
  }, [e]);
983
979
  }
984
- var Sr = [{
980
+ var Er = [{
985
981
  color: "rgb(255, 0, 0)",
986
982
  percent: 0
987
983
  }, {
@@ -1002,76 +998,76 @@ var Sr = [{
1002
998
  }, {
1003
999
  color: "rgb(255, 0, 0)",
1004
1000
  percent: 100
1005
- }], xr = /* @__PURE__ */ me(function(e, t) {
1006
- var o = e.value, r = e.defaultValue, n = e.prefixCls, a = n === void 0 ? mr : n, i = e.onChange, s = e.onChangeComplete, l = e.className, u = e.style, d = e.panelRender, g = e.disabledAlpha, p = g === void 0 ? !1 : g, C = e.disabled, h = C === void 0 ? !1 : C, x = e.components, f = yr(x), b = J(f, 1), w = b[0], E = br(r || gr, o), v = J(E, 2), y = v[0], B = v[1], _ = oe(function() {
1001
+ }], Or = /* @__PURE__ */ me(function(e, t) {
1002
+ var o = e.value, r = e.defaultValue, n = e.prefixCls, a = n === void 0 ? fr : n, i = e.onChange, l = e.onChangeComplete, s = e.className, u = e.style, d = e.panelRender, g = e.disabledAlpha, p = g === void 0 ? !1 : g, C = e.disabled, h = C === void 0 ? !1 : C, x = e.components, f = xr(x), b = Q(f, 1), B = b[0], E = hr(r || pr, o), v = Q(E, 2), y = v[0], N = v[1], j = oe(function() {
1007
1003
  return y.setA(1).toRgbString();
1008
- }, [y]), S = function(I, Q) {
1009
- o || B(I), i == null || i(I, Q);
1010
- }, $ = function(I) {
1011
- return new U(y.setHue(I));
1012
- }, H = function(I) {
1013
- return new U(y.setA(I / 100));
1014
- }, z = function(I) {
1015
- S($(I), {
1004
+ }, [y]), S = function(R, ee) {
1005
+ o || N(R), i == null || i(R, ee);
1006
+ }, I = function(R) {
1007
+ return new U(y.setHue(R));
1008
+ }, P = function(R) {
1009
+ return new U(y.setA(R / 100));
1010
+ }, _ = function(R) {
1011
+ S(I(R), {
1016
1012
  type: "hue",
1017
- value: I
1013
+ value: R
1018
1014
  });
1019
- }, j = function(I) {
1020
- S(H(I), {
1015
+ }, O = function(R) {
1016
+ S(P(R), {
1021
1017
  type: "alpha",
1022
- value: I
1018
+ value: R
1023
1019
  });
1024
- }, P = function(I) {
1025
- s && s($(I));
1026
- }, q = function(I) {
1027
- s && s(H(I));
1028
- }, L = N("".concat(a, "-panel"), l, Te({}, "".concat(a, "-panel-disabled"), h)), G = {
1020
+ }, G = function(R) {
1021
+ l && l(I(R));
1022
+ }, z = function(R) {
1023
+ l && l(P(R));
1024
+ }, q = H("".concat(a, "-panel"), s, Te({}, "".concat(a, "-panel-disabled"), h)), A = {
1029
1025
  prefixCls: a,
1030
1026
  disabled: h,
1031
1027
  color: y
1032
- }, Z = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement(vr, se({
1028
+ }, Z = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement(Cr, ie({
1033
1029
  onChange: S
1034
- }, G, {
1035
- onChangeComplete: s
1030
+ }, A, {
1031
+ onChangeComplete: l
1036
1032
  })), /* @__PURE__ */ c.createElement("div", {
1037
1033
  className: "".concat(a, "-slider-container")
1038
1034
  }, /* @__PURE__ */ c.createElement("div", {
1039
- className: N("".concat(a, "-slider-group"), Te({}, "".concat(a, "-slider-group-disabled-alpha"), p))
1040
- }, /* @__PURE__ */ c.createElement(w, se({}, G, {
1035
+ className: H("".concat(a, "-slider-group"), Te({}, "".concat(a, "-slider-group-disabled-alpha"), p))
1036
+ }, /* @__PURE__ */ c.createElement(B, ie({}, A, {
1041
1037
  type: "hue",
1042
- colors: Sr,
1038
+ colors: Er,
1043
1039
  min: 0,
1044
1040
  max: 359,
1045
1041
  value: y.getHue(),
1046
- onChange: z,
1047
- onChangeComplete: P
1048
- })), !p && /* @__PURE__ */ c.createElement(w, se({}, G, {
1042
+ onChange: _,
1043
+ onChangeComplete: G
1044
+ })), !p && /* @__PURE__ */ c.createElement(B, ie({}, A, {
1049
1045
  type: "alpha",
1050
1046
  colors: [{
1051
1047
  percent: 0,
1052
1048
  color: "rgba(255, 0, 4, 0)"
1053
1049
  }, {
1054
1050
  percent: 100,
1055
- color: _
1051
+ color: j
1056
1052
  }],
1057
1053
  min: 0,
1058
1054
  max: 100,
1059
1055
  value: y.a * 100,
1060
- onChange: j,
1061
- onChangeComplete: q
1062
- }))), /* @__PURE__ */ c.createElement(fr, {
1056
+ onChange: O,
1057
+ onChangeComplete: z
1058
+ }))), /* @__PURE__ */ c.createElement(vr, {
1063
1059
  color: y.toRgbString(),
1064
1060
  prefixCls: a
1065
1061
  })));
1066
1062
  return /* @__PURE__ */ c.createElement("div", {
1067
- className: L,
1063
+ className: q,
1068
1064
  style: u,
1069
1065
  ref: t
1070
1066
  }, typeof d == "function" ? d(Z) : Z);
1071
1067
  });
1072
- process.env.NODE_ENV !== "production" && (xr.displayName = "ColorPicker");
1073
- const Er = (e, t) => (e == null ? void 0 : e.replace(/[^\w/]/g, "").slice(0, t ? 8 : 6)) || "", Or = (e, t) => e ? Er(e, t) : "";
1074
- let $r = /* @__PURE__ */ function() {
1068
+ process.env.NODE_ENV !== "production" && (Or.displayName = "ColorPicker");
1069
+ const $r = (e, t) => (e == null ? void 0 : e.replace(/[^\w/]/g, "").slice(0, t ? 8 : 6)) || "", Ir = (e, t) => e ? $r(e, t) : "";
1070
+ let Rr = /* @__PURE__ */ function() {
1075
1071
  function e(t) {
1076
1072
  St(this, e);
1077
1073
  var o;
@@ -1083,16 +1079,13 @@ let $r = /* @__PURE__ */ function() {
1083
1079
  return;
1084
1080
  }
1085
1081
  const r = Array.isArray(t);
1086
- r && t.length ? (this.colors = t.map((n) => {
1087
- let {
1088
- color: a,
1089
- percent: i
1090
- } = n;
1091
- return {
1092
- color: new e(a),
1093
- percent: i
1094
- };
1095
- }), this.metaColor = new U(this.colors[0].color.metaColor)) : this.metaColor = new U(r ? "" : t), (!t || r && !this.colors) && (this.metaColor = this.metaColor.setA(0), this.cleared = !0);
1082
+ r && t.length ? (this.colors = t.map(({
1083
+ color: n,
1084
+ percent: a
1085
+ }) => ({
1086
+ color: new e(n),
1087
+ percent: a
1088
+ })), this.metaColor = new U(this.colors[0].color.metaColor)) : this.metaColor = new U(r ? "" : t), (!t || r && !this.colors) && (this.metaColor = this.metaColor.setA(0), this.cleared = !0);
1096
1089
  }
1097
1090
  return xt(e, [{
1098
1091
  key: "toHsb",
@@ -1107,7 +1100,7 @@ let $r = /* @__PURE__ */ function() {
1107
1100
  }, {
1108
1101
  key: "toHex",
1109
1102
  value: function() {
1110
- return Or(this.toHexString(), this.metaColor.a < 1);
1103
+ return Ir(this.toHexString(), this.metaColor.a < 1);
1111
1104
  }
1112
1105
  }, {
1113
1106
  key: "toHexString",
@@ -1155,7 +1148,7 @@ let $r = /* @__PURE__ */ function() {
1155
1148
  }
1156
1149
  }]);
1157
1150
  }();
1158
- const Ir = new T("antZoomIn", {
1151
+ const wr = new T("antZoomIn", {
1159
1152
  "0%": {
1160
1153
  transform: "scale(0.2)",
1161
1154
  opacity: 0
@@ -1164,7 +1157,7 @@ const Ir = new T("antZoomIn", {
1164
1157
  transform: "scale(1)",
1165
1158
  opacity: 1
1166
1159
  }
1167
- }), Rr = new T("antZoomOut", {
1160
+ }), Br = new T("antZoomOut", {
1168
1161
  "0%": {
1169
1162
  transform: "scale(1)"
1170
1163
  },
@@ -1189,7 +1182,7 @@ const Ir = new T("antZoomIn", {
1189
1182
  transform: "scale(0.8)",
1190
1183
  opacity: 0
1191
1184
  }
1192
- }), wr = new T("antZoomUpIn", {
1185
+ }), Nr = new T("antZoomUpIn", {
1193
1186
  "0%": {
1194
1187
  transform: "scale(0.8)",
1195
1188
  transformOrigin: "50% 0%",
@@ -1199,7 +1192,7 @@ const Ir = new T("antZoomIn", {
1199
1192
  transform: "scale(1)",
1200
1193
  transformOrigin: "50% 0%"
1201
1194
  }
1202
- }), Br = new T("antZoomUpOut", {
1195
+ }), Hr = new T("antZoomUpOut", {
1203
1196
  "0%": {
1204
1197
  transform: "scale(1)",
1205
1198
  transformOrigin: "50% 0%"
@@ -1209,7 +1202,7 @@ const Ir = new T("antZoomIn", {
1209
1202
  transformOrigin: "50% 0%",
1210
1203
  opacity: 0
1211
1204
  }
1212
- }), Nr = new T("antZoomLeftIn", {
1205
+ }), zr = new T("antZoomLeftIn", {
1213
1206
  "0%": {
1214
1207
  transform: "scale(0.8)",
1215
1208
  transformOrigin: "0% 50%",
@@ -1219,7 +1212,7 @@ const Ir = new T("antZoomIn", {
1219
1212
  transform: "scale(1)",
1220
1213
  transformOrigin: "0% 50%"
1221
1214
  }
1222
- }), Hr = new T("antZoomLeftOut", {
1215
+ }), Pr = new T("antZoomLeftOut", {
1223
1216
  "0%": {
1224
1217
  transform: "scale(1)",
1225
1218
  transformOrigin: "0% 50%"
@@ -1229,7 +1222,7 @@ const Ir = new T("antZoomIn", {
1229
1222
  transformOrigin: "0% 50%",
1230
1223
  opacity: 0
1231
1224
  }
1232
- }), zr = new T("antZoomRightIn", {
1225
+ }), _r = new T("antZoomRightIn", {
1233
1226
  "0%": {
1234
1227
  transform: "scale(0.8)",
1235
1228
  transformOrigin: "100% 50%",
@@ -1239,7 +1232,7 @@ const Ir = new T("antZoomIn", {
1239
1232
  transform: "scale(1)",
1240
1233
  transformOrigin: "100% 50%"
1241
1234
  }
1242
- }), Pr = new T("antZoomRightOut", {
1235
+ }), jr = new T("antZoomRightOut", {
1243
1236
  "0%": {
1244
1237
  transform: "scale(1)",
1245
1238
  transformOrigin: "100% 50%"
@@ -1249,7 +1242,7 @@ const Ir = new T("antZoomIn", {
1249
1242
  transformOrigin: "100% 50%",
1250
1243
  opacity: 0
1251
1244
  }
1252
- }), _r = new T("antZoomDownIn", {
1245
+ }), Tr = new T("antZoomDownIn", {
1253
1246
  "0%": {
1254
1247
  transform: "scale(0.8)",
1255
1248
  transformOrigin: "50% 100%",
@@ -1259,7 +1252,7 @@ const Ir = new T("antZoomIn", {
1259
1252
  transform: "scale(1)",
1260
1253
  transformOrigin: "50% 100%"
1261
1254
  }
1262
- }), jr = new T("antZoomDownOut", {
1255
+ }), Dr = new T("antZoomDownOut", {
1263
1256
  "0%": {
1264
1257
  transform: "scale(1)",
1265
1258
  transformOrigin: "50% 100%"
@@ -1269,10 +1262,10 @@ const Ir = new T("antZoomIn", {
1269
1262
  transformOrigin: "50% 100%",
1270
1263
  opacity: 0
1271
1264
  }
1272
- }), Tr = {
1265
+ }), Lr = {
1273
1266
  zoom: {
1274
- inKeyframes: Ir,
1275
- outKeyframes: Rr
1267
+ inKeyframes: wr,
1268
+ outKeyframes: Br
1276
1269
  },
1277
1270
  "zoom-big": {
1278
1271
  inKeyframes: gt,
@@ -1283,29 +1276,29 @@ const Ir = new T("antZoomIn", {
1283
1276
  outKeyframes: ft
1284
1277
  },
1285
1278
  "zoom-left": {
1286
- inKeyframes: Nr,
1287
- outKeyframes: Hr
1288
- },
1289
- "zoom-right": {
1290
1279
  inKeyframes: zr,
1291
1280
  outKeyframes: Pr
1292
1281
  },
1282
+ "zoom-right": {
1283
+ inKeyframes: _r,
1284
+ outKeyframes: jr
1285
+ },
1293
1286
  "zoom-up": {
1294
- inKeyframes: wr,
1295
- outKeyframes: Br
1287
+ inKeyframes: Nr,
1288
+ outKeyframes: Hr
1296
1289
  },
1297
1290
  "zoom-down": {
1298
- inKeyframes: _r,
1299
- outKeyframes: jr
1291
+ inKeyframes: Tr,
1292
+ outKeyframes: Dr
1300
1293
  }
1301
- }, En = (e, t) => {
1294
+ }, $n = (e, t) => {
1302
1295
  const {
1303
1296
  antCls: o
1304
1297
  } = e, r = `${o}-${t}`, {
1305
1298
  inKeyframes: n,
1306
1299
  outKeyframes: a
1307
- } = Tr[t];
1308
- return [mo(r, n, a, t === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), {
1300
+ } = Lr[t];
1301
+ return [fo(r, n, a, t === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), {
1309
1302
  [`
1310
1303
  ${r}-enter,
1311
1304
  ${r}-appear
@@ -1321,7 +1314,7 @@ const Ir = new T("antZoomIn", {
1321
1314
  animationTimingFunction: e.motionEaseInOutCirc
1322
1315
  }
1323
1316
  }];
1324
- }, Dr = (e, t) => {
1317
+ }, Ar = (e, t) => {
1325
1318
  const {
1326
1319
  r: o,
1327
1320
  g: r,
@@ -1334,15 +1327,15 @@ const Ir = new T("antZoomIn", {
1334
1327
  paddingInline: t,
1335
1328
  onlyIconSize: o
1336
1329
  } = e;
1337
- return ne(e, {
1330
+ return re(e, {
1338
1331
  buttonPaddingHorizontal: t,
1339
1332
  buttonPaddingVertical: 0,
1340
1333
  buttonIconOnlyFontSize: o
1341
1334
  });
1342
1335
  }, Gt = (e) => {
1343
1336
  var t, o, r, n, a, i;
1344
- const s = (t = e.contentFontSize) !== null && t !== void 0 ? t : e.fontSize, l = (o = e.contentFontSizeSM) !== null && o !== void 0 ? o : e.fontSize, u = (r = e.contentFontSizeLG) !== null && r !== void 0 ? r : e.fontSizeLG, d = (n = e.contentLineHeight) !== null && n !== void 0 ? n : Re(s), g = (a = e.contentLineHeightSM) !== null && a !== void 0 ? a : Re(l), p = (i = e.contentLineHeightLG) !== null && i !== void 0 ? i : Re(u), C = Dr(new $r(e.colorBgSolid), "#fff") ? "#000" : "#fff", h = Ve.reduce((x, f) => Object.assign(Object.assign({}, x), {
1345
- [`${f}ShadowColor`]: `0 ${ue(e.controlOutlineWidth)} 0 ${go(e[`${f}1`], e.colorBgContainer)}`
1337
+ const l = (t = e.contentFontSize) !== null && t !== void 0 ? t : e.fontSize, s = (o = e.contentFontSizeSM) !== null && o !== void 0 ? o : e.fontSize, u = (r = e.contentFontSizeLG) !== null && r !== void 0 ? r : e.fontSizeLG, d = (n = e.contentLineHeight) !== null && n !== void 0 ? n : Re(l), g = (a = e.contentLineHeightSM) !== null && a !== void 0 ? a : Re(s), p = (i = e.contentLineHeightLG) !== null && i !== void 0 ? i : Re(u), C = Ar(new Rr(e.colorBgSolid), "#fff") ? "#000" : "#fff", h = Ve.reduce((x, f) => Object.assign(Object.assign({}, x), {
1338
+ [`${f}ShadowColor`]: `0 ${ue(e.controlOutlineWidth)} 0 ${po(e[`${f}1`], e.colorBgContainer)}`
1346
1339
  }), {});
1347
1340
  return Object.assign(Object.assign({}, h), {
1348
1341
  fontWeight: 400,
@@ -1378,17 +1371,17 @@ const Ir = new T("antZoomIn", {
1378
1371
  defaultActiveColor: e.colorPrimaryActive,
1379
1372
  defaultActiveBorderColor: e.colorPrimaryActive,
1380
1373
  solidTextColor: C,
1381
- contentFontSize: s,
1382
- contentFontSizeSM: l,
1374
+ contentFontSize: l,
1375
+ contentFontSizeSM: s,
1383
1376
  contentFontSizeLG: u,
1384
1377
  contentLineHeight: d,
1385
1378
  contentLineHeightSM: g,
1386
1379
  contentLineHeightLG: p,
1387
- paddingBlock: Math.max((e.controlHeight - s * d) / 2 - e.lineWidth, 0),
1388
- paddingBlockSM: Math.max((e.controlHeightSM - l * g) / 2 - e.lineWidth, 0),
1380
+ paddingBlock: Math.max((e.controlHeight - l * d) / 2 - e.lineWidth, 0),
1381
+ paddingBlockSM: Math.max((e.controlHeightSM - s * g) / 2 - e.lineWidth, 0),
1389
1382
  paddingBlockLG: Math.max((e.controlHeightLG - u * p) / 2 - e.lineWidth, 0)
1390
1383
  });
1391
- }, Lr = (e) => {
1384
+ }, Mr = (e) => {
1392
1385
  const {
1393
1386
  componentCls: t,
1394
1387
  iconCls: o,
@@ -1396,8 +1389,8 @@ const Ir = new T("antZoomIn", {
1396
1389
  opacityLoading: n,
1397
1390
  motionDurationSlow: a,
1398
1391
  motionEaseInOut: i,
1399
- marginXS: s,
1400
- calc: l
1392
+ marginXS: l,
1393
+ calc: s
1401
1394
  } = e;
1402
1395
  return {
1403
1396
  [t]: {
@@ -1422,11 +1415,11 @@ const Ir = new T("antZoomIn", {
1422
1415
  pointerEvents: "none"
1423
1416
  },
1424
1417
  // https://github.com/ant-design/ant-design/issues/51380
1425
- [`${t}-icon > svg`]: po(),
1418
+ [`${t}-icon > svg`]: bo(),
1426
1419
  "> a": {
1427
1420
  color: "currentColor"
1428
1421
  },
1429
- "&:not(:disabled)": fo(e),
1422
+ "&:not(:disabled)": vo(e),
1430
1423
  [`&${t}-two-chinese-chars::first-letter`]: {
1431
1424
  letterSpacing: "0.34em"
1432
1425
  },
@@ -1456,7 +1449,7 @@ const Ir = new T("antZoomIn", {
1456
1449
  [`&:not(${t}-icon-end)`]: {
1457
1450
  [`${t}-loading-icon-motion`]: {
1458
1451
  "&-appear-start, &-enter-start": {
1459
- marginInlineEnd: l(s).mul(-1).equal()
1452
+ marginInlineEnd: s(l).mul(-1).equal()
1460
1453
  },
1461
1454
  "&-appear-active, &-enter-active": {
1462
1455
  marginInlineEnd: 0
@@ -1465,7 +1458,7 @@ const Ir = new T("antZoomIn", {
1465
1458
  marginInlineEnd: 0
1466
1459
  },
1467
1460
  "&-leave-active": {
1468
- marginInlineEnd: l(s).mul(-1).equal()
1461
+ marginInlineEnd: s(l).mul(-1).equal()
1469
1462
  }
1470
1463
  }
1471
1464
  },
@@ -1473,7 +1466,7 @@ const Ir = new T("antZoomIn", {
1473
1466
  flexDirection: "row-reverse",
1474
1467
  [`${t}-loading-icon-motion`]: {
1475
1468
  "&-appear-start, &-enter-start": {
1476
- marginInlineStart: l(s).mul(-1).equal()
1469
+ marginInlineStart: s(l).mul(-1).equal()
1477
1470
  },
1478
1471
  "&-appear-active, &-enter-active": {
1479
1472
  marginInlineStart: 0
@@ -1482,7 +1475,7 @@ const Ir = new T("antZoomIn", {
1482
1475
  marginInlineStart: 0
1483
1476
  },
1484
1477
  "&-leave-active": {
1485
- marginInlineStart: l(s).mul(-1).equal()
1478
+ marginInlineStart: s(l).mul(-1).equal()
1486
1479
  }
1487
1480
  }
1488
1481
  }
@@ -1493,22 +1486,22 @@ const Ir = new T("antZoomIn", {
1493
1486
  "&:hover": t,
1494
1487
  "&:active": o
1495
1488
  }
1496
- }), Ar = (e) => ({
1489
+ }), Wr = (e) => ({
1497
1490
  minWidth: e.controlHeight,
1498
1491
  paddingInlineStart: 0,
1499
1492
  paddingInlineEnd: 0,
1500
1493
  borderRadius: "50%"
1501
- }), Mr = (e) => ({
1494
+ }), Gr = (e) => ({
1502
1495
  borderRadius: e.controlHeight,
1503
1496
  paddingInlineStart: e.calc(e.controlHeight).div(2).equal(),
1504
1497
  paddingInlineEnd: e.calc(e.controlHeight).div(2).equal()
1505
- }), Wr = (e) => ({
1498
+ }), Fr = (e) => ({
1506
1499
  cursor: "not-allowed",
1507
1500
  borderColor: e.borderColorDisabled,
1508
1501
  color: e.colorTextDisabled,
1509
1502
  background: e.colorBgContainerDisabled,
1510
1503
  boxShadow: "none"
1511
- }), pe = (e, t, o, r, n, a, i, s) => ({
1504
+ }), pe = (e, t, o, r, n, a, i, l) => ({
1512
1505
  [`&${e}-background-ghost`]: Object.assign(Object.assign({
1513
1506
  color: o || void 0,
1514
1507
  background: t,
@@ -1518,22 +1511,22 @@ const Ir = new T("antZoomIn", {
1518
1511
  background: t
1519
1512
  }, i), Object.assign({
1520
1513
  background: t
1521
- }, s))), {
1514
+ }, l))), {
1522
1515
  "&:disabled": {
1523
1516
  cursor: "not-allowed",
1524
1517
  color: n || void 0,
1525
1518
  borderColor: a || void 0
1526
1519
  }
1527
1520
  })
1528
- }), Gr = (e) => ({
1529
- [`&:disabled, &${e.componentCls}-disabled`]: Object.assign({}, Wr(e))
1530
- }), Fr = (e) => ({
1521
+ }), Vr = (e) => ({
1522
+ [`&:disabled, &${e.componentCls}-disabled`]: Object.assign({}, Fr(e))
1523
+ }), Ur = (e) => ({
1531
1524
  [`&:disabled, &${e.componentCls}-disabled`]: {
1532
1525
  cursor: "not-allowed",
1533
1526
  color: e.colorTextDisabled
1534
1527
  }
1535
1528
  }), ve = (e, t, o, r) => {
1536
- const a = r && ["link", "text"].includes(r) ? Fr : Gr;
1529
+ const a = r && ["link", "text"].includes(r) ? Ur : Vr;
1537
1530
  return Object.assign(Object.assign({}, a(e)), Ft(e.componentCls, t, o));
1538
1531
  }, be = (e, t, o, r, n) => ({
1539
1532
  [`&${e.componentCls}-variant-solid`]: Object.assign({
@@ -1559,12 +1552,12 @@ const Ir = new T("antZoomIn", {
1559
1552
  color: t,
1560
1553
  boxShadow: "none"
1561
1554
  }, ve(e, r, n, o))
1562
- }), Vr = (e) => {
1555
+ }), qr = (e) => {
1563
1556
  const {
1564
1557
  componentCls: t
1565
1558
  } = e;
1566
1559
  return Ve.reduce((o, r) => {
1567
- const n = e[`${r}6`], a = e[`${r}1`], i = e[`${r}5`], s = e[`${r}2`], l = e[`${r}3`], u = e[`${r}7`];
1560
+ const n = e[`${r}6`], a = e[`${r}1`], i = e[`${r}5`], l = e[`${r}2`], s = e[`${r}3`], u = e[`${r}7`];
1568
1561
  return Object.assign(Object.assign({}, o), {
1569
1562
  [`&${t}-color-${r}`]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1570
1563
  color: n,
@@ -1582,9 +1575,9 @@ const Ir = new T("antZoomIn", {
1582
1575
  borderColor: u,
1583
1576
  background: e.colorBgContainer
1584
1577
  })), he(e)), ye(e, a, {
1585
- background: s
1586
- }, {
1587
1578
  background: l
1579
+ }, {
1580
+ background: s
1588
1581
  })), W(e, n, "link", {
1589
1582
  color: i
1590
1583
  }, {
@@ -1594,11 +1587,11 @@ const Ir = new T("antZoomIn", {
1594
1587
  background: a
1595
1588
  }, {
1596
1589
  color: u,
1597
- background: l
1590
+ background: s
1598
1591
  }))
1599
1592
  });
1600
1593
  }, {});
1601
- }, Ur = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1594
+ }, Xr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1602
1595
  color: e.defaultColor,
1603
1596
  boxShadow: e.defaultShadow
1604
1597
  }, be(e, e.solidTextColor, e.colorBgSolid, {
@@ -1616,7 +1609,7 @@ const Ir = new T("antZoomIn", {
1616
1609
  background: e.linkHoverBg
1617
1610
  }, {
1618
1611
  color: e.colorLinkActive
1619
- })), qr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1612
+ })), Zr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1620
1613
  color: e.colorPrimary,
1621
1614
  boxShadow: e.primaryShadow
1622
1615
  }, Ce(e, e.colorPrimary, e.colorBgContainer, {
@@ -1648,7 +1641,7 @@ const Ir = new T("antZoomIn", {
1648
1641
  }, {
1649
1642
  color: e.colorPrimaryActive,
1650
1643
  borderColor: e.colorPrimaryActive
1651
- })), Xr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1644
+ })), Yr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
1652
1645
  color: e.colorError,
1653
1646
  boxShadow: e.dangerShadow
1654
1647
  }, be(e, e.dangerColor, e.colorError, {
@@ -1681,7 +1674,7 @@ const Ir = new T("antZoomIn", {
1681
1674
  }, {
1682
1675
  color: e.colorErrorActive,
1683
1676
  borderColor: e.colorErrorActive
1684
- })), Zr = (e) => Object.assign(Object.assign({}, W(e, e.colorLink, "link", {
1677
+ })), Kr = (e) => Object.assign(Object.assign({}, W(e, e.colorLink, "link", {
1685
1678
  color: e.colorLinkHover
1686
1679
  }, {
1687
1680
  color: e.colorLinkActive
@@ -1691,17 +1684,17 @@ const Ir = new T("antZoomIn", {
1691
1684
  }, {
1692
1685
  color: e.colorInfoActive,
1693
1686
  borderColor: e.colorInfoActive
1694
- })), Yr = (e) => {
1687
+ })), Jr = (e) => {
1695
1688
  const {
1696
1689
  componentCls: t
1697
1690
  } = e;
1698
1691
  return Object.assign({
1699
- [`${t}-color-default`]: Ur(e),
1700
- [`${t}-color-primary`]: qr(e),
1701
- [`${t}-color-dangerous`]: Xr(e),
1702
- [`${t}-color-link`]: Zr(e)
1703
- }, Vr(e));
1704
- }, Kr = (e) => Object.assign(Object.assign(Object.assign(Object.assign({}, Ce(e, e.defaultBorderColor, e.defaultBg, {
1692
+ [`${t}-color-default`]: Xr(e),
1693
+ [`${t}-color-primary`]: Zr(e),
1694
+ [`${t}-color-dangerous`]: Yr(e),
1695
+ [`${t}-color-link`]: Kr(e)
1696
+ }, qr(e));
1697
+ }, Qr = (e) => Object.assign(Object.assign(Object.assign(Object.assign({}, Ce(e, e.defaultBorderColor, e.defaultBg, {
1705
1698
  color: e.defaultHoverColor,
1706
1699
  borderColor: e.defaultHoverBorderColor,
1707
1700
  background: e.defaultHoverBg
@@ -1726,16 +1719,15 @@ const Ir = new T("antZoomIn", {
1726
1719
  background: e.linkHoverBg
1727
1720
  }, {
1728
1721
  color: e.colorLinkActive
1729
- })), Ue = function(e) {
1730
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1722
+ })), Ue = (e, t = "") => {
1731
1723
  const {
1732
1724
  componentCls: o,
1733
1725
  controlHeight: r,
1734
1726
  fontSize: n,
1735
1727
  borderRadius: a,
1736
1728
  buttonPaddingHorizontal: i,
1737
- iconCls: s,
1738
- buttonPaddingVertical: l,
1729
+ iconCls: l,
1730
+ buttonPaddingVertical: s,
1739
1731
  buttonIconOnlyFontSize: u
1740
1732
  } = e;
1741
1733
  return [
@@ -1743,11 +1735,11 @@ const Ir = new T("antZoomIn", {
1743
1735
  [t]: {
1744
1736
  fontSize: n,
1745
1737
  height: r,
1746
- padding: `${ue(l)} ${ue(i)}`,
1738
+ padding: `${ue(s)} ${ue(i)}`,
1747
1739
  borderRadius: a,
1748
1740
  [`&${o}-icon-only`]: {
1749
1741
  width: r,
1750
- [s]: {
1742
+ [l]: {
1751
1743
  fontSize: u
1752
1744
  }
1753
1745
  }
@@ -1755,19 +1747,19 @@ const Ir = new T("antZoomIn", {
1755
1747
  },
1756
1748
  // Shape - patch prefixCls again to override solid border radius style
1757
1749
  {
1758
- [`${o}${o}-circle${t}`]: Ar(e)
1750
+ [`${o}${o}-circle${t}`]: Wr(e)
1759
1751
  },
1760
1752
  {
1761
- [`${o}${o}-round${t}`]: Mr(e)
1753
+ [`${o}${o}-round${t}`]: Gr(e)
1762
1754
  }
1763
1755
  ];
1764
- }, Jr = (e) => {
1765
- const t = ne(e, {
1756
+ }, kr = (e) => {
1757
+ const t = re(e, {
1766
1758
  fontSize: e.contentFontSize
1767
1759
  });
1768
1760
  return Ue(t, e.componentCls);
1769
- }, Qr = (e) => {
1770
- const t = ne(e, {
1761
+ }, en = (e) => {
1762
+ const t = re(e, {
1771
1763
  controlHeight: e.controlHeightSM,
1772
1764
  fontSize: e.contentFontSizeSM,
1773
1765
  padding: e.paddingXS,
@@ -1777,8 +1769,8 @@ const Ir = new T("antZoomIn", {
1777
1769
  buttonIconOnlyFontSize: e.onlyIconSizeSM
1778
1770
  });
1779
1771
  return Ue(t, `${e.componentCls}-sm`);
1780
- }, kr = (e) => {
1781
- const t = ne(e, {
1772
+ }, tn = (e) => {
1773
+ const t = re(e, {
1782
1774
  controlHeight: e.controlHeightLG,
1783
1775
  fontSize: e.contentFontSizeLG,
1784
1776
  buttonPaddingHorizontal: e.paddingInlineLG,
@@ -1787,7 +1779,7 @@ const Ir = new T("antZoomIn", {
1787
1779
  buttonIconOnlyFontSize: e.onlyIconSizeLG
1788
1780
  });
1789
1781
  return Ue(t, `${e.componentCls}-lg`);
1790
- }, en = (e) => {
1782
+ }, on = (e) => {
1791
1783
  const {
1792
1784
  componentCls: t
1793
1785
  } = e;
@@ -1798,23 +1790,23 @@ const Ir = new T("antZoomIn", {
1798
1790
  }
1799
1791
  }
1800
1792
  };
1801
- }, tn = ht("Button", (e) => {
1793
+ }, rn = ht("Button", (e) => {
1802
1794
  const t = Wt(e);
1803
1795
  return [
1804
1796
  // Shared
1805
- Lr(t),
1797
+ Mr(t),
1806
1798
  // Size
1807
- Jr(t),
1808
- Qr(t),
1809
1799
  kr(t),
1810
- // Block
1811
1800
  en(t),
1801
+ tn(t),
1802
+ // Block
1803
+ on(t),
1812
1804
  // Color
1813
- Yr(t),
1805
+ Jr(t),
1814
1806
  // https://github.com/ant-design/ant-design/issues/50969
1815
- Kr(t),
1807
+ Qr(t),
1816
1808
  // Button Group
1817
- lr(t)
1809
+ ur(t)
1818
1810
  ];
1819
1811
  }, Gt, {
1820
1812
  unitless: {
@@ -1824,18 +1816,18 @@ const Ir = new T("antZoomIn", {
1824
1816
  contentLineHeightLG: !0
1825
1817
  }
1826
1818
  });
1827
- function on(e, t, o) {
1819
+ function nn(e, t, o) {
1828
1820
  const {
1829
1821
  focusElCls: r,
1830
1822
  focus: n,
1831
1823
  borderElCls: a
1832
- } = o, i = a ? "> *" : "", s = ["hover", n ? "focus" : null, "active"].filter(Boolean).map((l) => `&:${l} ${i}`).join(",");
1824
+ } = o, i = a ? "> *" : "", l = ["hover", n ? "focus" : null, "active"].filter(Boolean).map((s) => `&:${s} ${i}`).join(",");
1833
1825
  return {
1834
1826
  [`&-item:not(${t}-last-item)`]: {
1835
1827
  marginInlineEnd: e.calc(e.lineWidth).mul(-1).equal()
1836
1828
  },
1837
1829
  "&-item": Object.assign(Object.assign({
1838
- [s]: {
1830
+ [l]: {
1839
1831
  zIndex: 2
1840
1832
  }
1841
1833
  }, r ? {
@@ -1849,7 +1841,7 @@ function on(e, t, o) {
1849
1841
  })
1850
1842
  };
1851
1843
  }
1852
- function rn(e, t, o) {
1844
+ function an(e, t, o) {
1853
1845
  const {
1854
1846
  borderElCls: r
1855
1847
  } = o, n = r ? `> ${r}` : "";
@@ -1871,18 +1863,17 @@ function rn(e, t, o) {
1871
1863
  }
1872
1864
  };
1873
1865
  }
1874
- function nn(e) {
1875
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1876
- focus: !0
1877
- };
1866
+ function ln(e, t = {
1867
+ focus: !0
1868
+ }) {
1878
1869
  const {
1879
1870
  componentCls: o
1880
1871
  } = e, r = `${o}-compact`;
1881
1872
  return {
1882
- [r]: Object.assign(Object.assign({}, on(e, r, t)), rn(o, r, t))
1873
+ [r]: Object.assign(Object.assign({}, nn(e, r, t)), an(o, r, t))
1883
1874
  };
1884
1875
  }
1885
- function an(e, t) {
1876
+ function sn(e, t) {
1886
1877
  return {
1887
1878
  // border collapse
1888
1879
  [`&-item:not(${t}-last-item)`]: {
@@ -1898,7 +1889,7 @@ function an(e, t) {
1898
1889
  }
1899
1890
  };
1900
1891
  }
1901
- function sn(e, t) {
1892
+ function cn(e, t) {
1902
1893
  return {
1903
1894
  [`&-item:not(${t}-first-item):not(${t}-last-item)`]: {
1904
1895
  borderRadius: 0
@@ -1917,50 +1908,50 @@ function sn(e, t) {
1917
1908
  }
1918
1909
  };
1919
1910
  }
1920
- function ln(e) {
1911
+ function un(e) {
1921
1912
  const t = `${e.componentCls}-compact-vertical`;
1922
1913
  return {
1923
- [t]: Object.assign(Object.assign({}, an(e, t)), sn(e.componentCls, t))
1914
+ [t]: Object.assign(Object.assign({}, sn(e, t)), cn(e.componentCls, t))
1924
1915
  };
1925
1916
  }
1926
- const cn = (e) => {
1917
+ const dn = (e) => {
1927
1918
  const {
1928
1919
  componentCls: t,
1929
1920
  colorPrimaryHover: o,
1930
1921
  lineWidth: r,
1931
1922
  calc: n
1932
- } = e, a = n(r).mul(-1).equal(), i = (s) => {
1933
- const l = `${t}-compact${s ? "-vertical" : ""}-item${t}-primary:not([disabled])`;
1923
+ } = e, a = n(r).mul(-1).equal(), i = (l) => {
1924
+ const s = `${t}-compact${l ? "-vertical" : ""}-item${t}-primary:not([disabled])`;
1934
1925
  return {
1935
- [`${l} + ${l}::before`]: {
1926
+ [`${s} + ${s}::before`]: {
1936
1927
  position: "absolute",
1937
- top: s ? a : 0,
1938
- insetInlineStart: s ? 0 : a,
1928
+ top: l ? a : 0,
1929
+ insetInlineStart: l ? 0 : a,
1939
1930
  backgroundColor: o,
1940
1931
  content: '""',
1941
- width: s ? "100%" : r,
1942
- height: s ? r : "100%"
1932
+ width: l ? "100%" : r,
1933
+ height: l ? r : "100%"
1943
1934
  }
1944
1935
  };
1945
1936
  };
1946
1937
  return Object.assign(Object.assign({}, i()), i(!0));
1947
- }, un = vo(["Button", "compact"], (e) => {
1938
+ }, mn = Co(["Button", "compact"], (e) => {
1948
1939
  const t = Wt(e);
1949
1940
  return [
1950
1941
  // Space Compact
1951
- nn(t),
1952
1942
  ln(t),
1953
- cn(t)
1943
+ un(t),
1944
+ dn(t)
1954
1945
  ];
1955
1946
  }, Gt);
1956
- var dn = function(e, t) {
1947
+ var gn = function(e, t) {
1957
1948
  var o = {};
1958
1949
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
1959
1950
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
1960
1951
  t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (o[r[n]] = e[r[n]]);
1961
1952
  return o;
1962
1953
  };
1963
- function mn(e) {
1954
+ function fn(e) {
1964
1955
  if (typeof e == "object" && e) {
1965
1956
  let t = e == null ? void 0 : e.delay;
1966
1957
  return t = !Number.isNaN(t) && typeof t == "number" ? t : 0, {
@@ -1973,21 +1964,21 @@ function mn(e) {
1973
1964
  delay: 0
1974
1965
  };
1975
1966
  }
1976
- const gn = {
1967
+ const pn = {
1977
1968
  default: ["default", "outlined"],
1978
1969
  primary: ["primary", "solid"],
1979
1970
  dashed: ["default", "dashed"],
1980
1971
  // `link` is not a real color but we should compatible with it
1981
1972
  link: ["link", "link"],
1982
1973
  text: ["default", "text"]
1983
- }, fn = /* @__PURE__ */ c.forwardRef((e, t) => {
1974
+ }, vn = /* @__PURE__ */ c.forwardRef((e, t) => {
1984
1975
  var o, r;
1985
1976
  const {
1986
1977
  loading: n = !1,
1987
1978
  prefixCls: a,
1988
1979
  color: i,
1989
- variant: s,
1990
- type: l,
1980
+ variant: l,
1981
+ type: s,
1991
1982
  danger: u = !1,
1992
1983
  shape: d = "default",
1993
1984
  size: g,
@@ -1997,129 +1988,134 @@ const gn = {
1997
1988
  rootClassName: x,
1998
1989
  children: f,
1999
1990
  icon: b,
2000
- iconPosition: w = "start",
1991
+ iconPosition: B = "start",
2001
1992
  ghost: E = !1,
2002
1993
  block: v = !1,
2003
1994
  // React does not recognize the `htmlType` prop on a DOM element. Here we pick it out of `rest`.
2004
1995
  htmlType: y = "button",
2005
- classNames: B,
2006
- style: _ = {},
1996
+ classNames: N,
1997
+ style: j = {},
2007
1998
  autoInsertSpace: S,
2008
- autoFocus: $
2009
- } = e, H = dn(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]), z = l || "default", [j, P] = oe(() => {
2010
- if (i && s)
2011
- return [i, s];
2012
- const R = gn[z] || [];
2013
- return u ? ["danger", R[1]] : R;
2014
- }, [l, i, s, u]), L = j === "danger" ? "dangerous" : j, {
2015
- getPrefixCls: G,
2016
- direction: Z,
2017
- autoInsertSpace: A,
2018
- className: I,
2019
- style: Q,
2020
- classNames: Vt,
2021
- styles: Ut
2022
- } = bo("button"), Se = (o = S ?? A) !== null && o !== void 0 ? o : !0, O = G("btn", a), [Xe, qt, Xt] = tn(O), Zt = _e(Co), Y = C ?? Zt, Yt = _e(_t), k = oe(() => mn(n), [n]), [X, Ze] = je(k.loading), [xe, Ye] = je(!1), ee = D(null), Ke = ho(t, ee), Je = kt.count(f) === 1 && !b && !ie(P), Ee = D(!0);
1999
+ autoFocus: I
2000
+ } = e, P = gn(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]), _ = s || "default", {
2001
+ button: O
2002
+ } = c.useContext(k), [G, z] = oe(() => {
2003
+ if (i && l)
2004
+ return [i, l];
2005
+ if (s || u) {
2006
+ const w = pn[_] || [];
2007
+ return u ? ["danger", w[1]] : w;
2008
+ }
2009
+ return O != null && O.color && (O != null && O.variant) ? [O.color, O.variant] : ["default", "outlined"];
2010
+ }, [s, i, l, u, O == null ? void 0 : O.variant, O == null ? void 0 : O.color]), A = G === "danger" ? "dangerous" : G, {
2011
+ getPrefixCls: Z,
2012
+ direction: D,
2013
+ autoInsertSpace: R,
2014
+ className: ee,
2015
+ style: Vt,
2016
+ classNames: Ut,
2017
+ styles: qt
2018
+ } = ho("button"), Se = (o = S ?? R) !== null && o !== void 0 ? o : !0, $ = Z("btn", a), [Xe, Xt, Zt] = rn($), Yt = _e(yo), Y = C ?? Yt, Kt = _e(_t), K = oe(() => fn(n), [n]), [X, Ze] = je(K.loading), [xe, Ye] = je(!1), te = L(null), Ke = So(t, te), Je = eo.count(f) === 1 && !b && !ae(z), Ee = L(!0);
2023
2019
  c.useEffect(() => (Ee.current = !1, () => {
2024
2020
  Ee.current = !0;
2025
- }), []), te(() => {
2026
- let R = null;
2027
- k.delay > 0 ? R = setTimeout(() => {
2028
- R = null, Ze(!0);
2029
- }, k.delay) : Ze(k.loading);
2021
+ }), []), to(() => {
2022
+ let w = null;
2023
+ K.delay > 0 ? w = setTimeout(() => {
2024
+ w = null, Ze(!0);
2025
+ }, K.delay) : Ze(K.loading);
2030
2026
  function F() {
2031
- R && (clearTimeout(R), R = null);
2027
+ w && (clearTimeout(w), w = null);
2032
2028
  }
2033
2029
  return F;
2034
- }, [k]), te(() => {
2035
- if (!ee.current || !Se)
2030
+ }, [K.delay, K.loading]), le(() => {
2031
+ if (!te.current || !Se)
2036
2032
  return;
2037
- const R = ee.current.textContent || "";
2038
- Je && Ae(R) ? xe || Ye(!0) : xe && Ye(!1);
2039
- }), te(() => {
2040
- $ && ee.current && ee.current.focus();
2033
+ const w = te.current.textContent || "";
2034
+ Je && Ae(w) ? xe || Ye(!0) : xe && Ye(!1);
2035
+ }), le(() => {
2036
+ I && te.current && te.current.focus();
2041
2037
  }, []);
2042
- const Qe = c.useCallback((R) => {
2038
+ const Qe = c.useCallback((w) => {
2043
2039
  var F;
2044
2040
  if (X || Y) {
2045
- R.preventDefault();
2041
+ w.preventDefault();
2046
2042
  return;
2047
2043
  }
2048
- (F = e.onClick) === null || F === void 0 || F.call(e, ("href" in e, R));
2044
+ (F = e.onClick) === null || F === void 0 || F.call(e, ("href" in e, w));
2049
2045
  }, [e.onClick, X, Y]);
2050
2046
  if (process.env.NODE_ENV !== "production") {
2051
- const R = Ge("Button");
2052
- process.env.NODE_ENV !== "production" && R(!(typeof b == "string" && b.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && R(!(E && ie(P)), "usage", "`link` or `text` button can't be a `ghost` button.");
2047
+ const w = Ge("Button");
2048
+ process.env.NODE_ENV !== "production" && w(!(typeof b == "string" && b.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && w(!(E && ae(z)), "usage", "`link` or `text` button can't be a `ghost` button.");
2053
2049
  }
2054
2050
  const {
2055
- compactSize: Kt,
2051
+ compactSize: Jt,
2056
2052
  compactItemClassnames: ke
2057
- } = er(O, Z), Jt = {
2053
+ } = or($, D), Qt = {
2058
2054
  large: "lg",
2059
2055
  small: "sm",
2060
2056
  middle: void 0
2061
- }, et = yt((R) => {
2057
+ }, et = yt((w) => {
2062
2058
  var F, Ie;
2063
- return (Ie = (F = g ?? Kt) !== null && F !== void 0 ? F : Yt) !== null && Ie !== void 0 ? Ie : R;
2064
- }), tt = et && (r = Jt[et]) !== null && r !== void 0 ? r : "", Qt = X ? "loading" : b, Oe = yo(H, ["navigate"]), ot = N(O, qt, Xt, {
2065
- [`${O}-${d}`]: d !== "default" && d,
2066
- // line(253 - 254): Compatible with versions earlier than 5.21.0
2067
- [`${O}-${z}`]: z,
2068
- [`${O}-dangerous`]: u,
2069
- [`${O}-color-${L}`]: L,
2070
- [`${O}-variant-${P}`]: P,
2071
- [`${O}-${tt}`]: tt,
2072
- [`${O}-icon-only`]: !f && f !== 0 && !!Qt,
2073
- [`${O}-background-ghost`]: E && !ie(P),
2074
- [`${O}-loading`]: X,
2075
- [`${O}-two-chinese-chars`]: xe && Se && !X,
2076
- [`${O}-block`]: v,
2077
- [`${O}-rtl`]: Z === "rtl",
2078
- [`${O}-icon-end`]: w === "end"
2079
- }, ke, h, x, I), rt = Object.assign(Object.assign({}, Q), _), nt = N(B == null ? void 0 : B.icon, Vt.icon), at = Object.assign(Object.assign({}, (p == null ? void 0 : p.icon) || {}), Ut.icon || {}), it = b && !X ? /* @__PURE__ */ c.createElement(Me, {
2080
- prefixCls: O,
2059
+ return (Ie = (F = g ?? Jt) !== null && F !== void 0 ? F : Kt) !== null && Ie !== void 0 ? Ie : w;
2060
+ }), tt = et && (r = Qt[et]) !== null && r !== void 0 ? r : "", kt = X ? "loading" : b, Oe = xo(P, ["navigate"]), ot = H($, Xt, Zt, {
2061
+ [`${$}-${d}`]: d !== "default" && d,
2062
+ // Compatible with versions earlier than 5.21.0
2063
+ [`${$}-${_}`]: _,
2064
+ [`${$}-dangerous`]: u,
2065
+ [`${$}-color-${A}`]: A,
2066
+ [`${$}-variant-${z}`]: z,
2067
+ [`${$}-${tt}`]: tt,
2068
+ [`${$}-icon-only`]: !f && f !== 0 && !!kt,
2069
+ [`${$}-background-ghost`]: E && !ae(z),
2070
+ [`${$}-loading`]: X,
2071
+ [`${$}-two-chinese-chars`]: xe && Se && !X,
2072
+ [`${$}-block`]: v,
2073
+ [`${$}-rtl`]: D === "rtl",
2074
+ [`${$}-icon-end`]: B === "end"
2075
+ }, ke, h, x, ee), rt = Object.assign(Object.assign({}, Vt), j), nt = H(N == null ? void 0 : N.icon, Ut.icon), at = Object.assign(Object.assign({}, (p == null ? void 0 : p.icon) || {}), qt.icon || {}), it = b && !X ? /* @__PURE__ */ c.createElement(Me, {
2076
+ prefixCls: $,
2081
2077
  className: nt,
2082
2078
  style: at
2083
2079
  }, b) : n && typeof n == "object" && n.icon ? /* @__PURE__ */ c.createElement(Me, {
2084
- prefixCls: O,
2080
+ prefixCls: $,
2085
2081
  className: nt,
2086
2082
  style: at
2087
- }, n.icon) : /* @__PURE__ */ c.createElement(sr, {
2083
+ }, n.icon) : /* @__PURE__ */ c.createElement(cr, {
2088
2084
  existIcon: !!b,
2089
- prefixCls: O,
2085
+ prefixCls: $,
2090
2086
  loading: X,
2091
2087
  mount: Ee.current
2092
- }), st = f || f === 0 ? ir(f, Je && Se) : null;
2088
+ }), lt = f || f === 0 ? sr(f, Je && Se) : null;
2093
2089
  if (Oe.href !== void 0)
2094
2090
  return Xe(/* @__PURE__ */ c.createElement("a", Object.assign({}, Oe, {
2095
- className: N(ot, {
2096
- [`${O}-disabled`]: Y
2091
+ className: H(ot, {
2092
+ [`${$}-disabled`]: Y
2097
2093
  }),
2098
2094
  href: Y ? void 0 : Oe.href,
2099
2095
  style: rt,
2100
2096
  onClick: Qe,
2101
2097
  ref: Ke,
2102
2098
  tabIndex: Y ? -1 : 0
2103
- }), it, st));
2104
- let $e = /* @__PURE__ */ c.createElement("button", Object.assign({}, H, {
2099
+ }), it, lt));
2100
+ let $e = /* @__PURE__ */ c.createElement("button", Object.assign({}, P, {
2105
2101
  type: y,
2106
2102
  className: ot,
2107
2103
  style: rt,
2108
2104
  onClick: Qe,
2109
2105
  disabled: Y,
2110
2106
  ref: Ke
2111
- }), it, st, ke && /* @__PURE__ */ c.createElement(un, {
2112
- prefixCls: O
2107
+ }), it, lt, ke && /* @__PURE__ */ c.createElement(mn, {
2108
+ prefixCls: $
2113
2109
  }));
2114
- return ie(P) || ($e = /* @__PURE__ */ c.createElement(zt, {
2110
+ return ae(z) || ($e = /* @__PURE__ */ c.createElement(zt, {
2115
2111
  component: "Button",
2116
2112
  disabled: X
2117
2113
  }, $e)), Xe($e);
2118
- }), qe = fn;
2119
- qe.Group = nr;
2114
+ }), qe = vn;
2115
+ qe.Group = ir;
2120
2116
  qe.__ANT_BUTTON = !0;
2121
2117
  process.env.NODE_ENV !== "production" && (qe.displayName = "Button");
2122
- const On = (e) => {
2118
+ const In = (e) => {
2123
2119
  const {
2124
2120
  space: t,
2125
2121
  form: o,
@@ -2128,13 +2124,13 @@ const On = (e) => {
2128
2124
  if (r == null)
2129
2125
  return null;
2130
2126
  let n = r;
2131
- return o && (n = /* @__PURE__ */ c.createElement(So, {
2127
+ return o && (n = /* @__PURE__ */ c.createElement(Eo, {
2132
2128
  override: !0,
2133
2129
  status: !0
2134
- }, n)), t && (n = /* @__PURE__ */ c.createElement(tr, null, n)), n;
2130
+ }, n)), t && (n = /* @__PURE__ */ c.createElement(rr, null, n)), n;
2135
2131
  };
2136
- function pn(e) {
2137
- return (t) => /* @__PURE__ */ m.createElement(xo, {
2132
+ function bn(e) {
2133
+ return (t) => /* @__PURE__ */ m.createElement(Oo, {
2138
2134
  theme: {
2139
2135
  token: {
2140
2136
  motion: !1,
@@ -2143,23 +2139,23 @@ function pn(e) {
2143
2139
  }
2144
2140
  }, /* @__PURE__ */ m.createElement(e, Object.assign({}, t)));
2145
2141
  }
2146
- const $n = (e, t, o, r, n) => pn((i) => {
2142
+ const Rn = (e, t, o, r, n) => bn((i) => {
2147
2143
  const {
2148
- prefixCls: s,
2149
- style: l
2144
+ prefixCls: l,
2145
+ style: s
2150
2146
  } = i, u = m.useRef(null), [d, g] = m.useState(0), [p, C] = m.useState(0), [h, x] = $t(!1, {
2151
2147
  value: i.open
2152
2148
  }), {
2153
2149
  getPrefixCls: f
2154
- } = m.useContext(re), b = f(r, s);
2150
+ } = m.useContext(k), b = f(r, l);
2155
2151
  m.useEffect(() => {
2156
2152
  if (x(!0), typeof ResizeObserver < "u") {
2157
- const v = new ResizeObserver((B) => {
2158
- const _ = B[0].target;
2159
- g(_.offsetHeight + 8), C(_.offsetWidth);
2153
+ const v = new ResizeObserver((N) => {
2154
+ const j = N[0].target;
2155
+ g(j.offsetHeight + 8), C(j.offsetWidth);
2160
2156
  }), y = setInterval(() => {
2161
- var B;
2162
- const _ = n ? `.${n(b)}` : `.${b}-dropdown`, S = (B = u.current) === null || B === void 0 ? void 0 : B.querySelector(_);
2157
+ var N;
2158
+ const j = n ? `.${n(b)}` : `.${b}-dropdown`, S = (N = u.current) === null || N === void 0 ? void 0 : N.querySelector(j);
2163
2159
  S && (clearInterval(y), v.observe(S));
2164
2160
  }, 10);
2165
2161
  return () => {
@@ -2167,15 +2163,15 @@ const $n = (e, t, o, r, n) => pn((i) => {
2167
2163
  };
2168
2164
  }
2169
2165
  }, []);
2170
- let w = Object.assign(Object.assign({}, i), {
2171
- style: Object.assign(Object.assign({}, l), {
2166
+ let B = Object.assign(Object.assign({}, i), {
2167
+ style: Object.assign(Object.assign({}, s), {
2172
2168
  margin: 0
2173
2169
  }),
2174
2170
  open: h,
2175
2171
  visible: h,
2176
2172
  getPopupContainer: () => u.current
2177
2173
  });
2178
- Object.assign(w, {
2174
+ Object.assign(B, {
2179
2175
  [t]: {
2180
2176
  overflow: {
2181
2177
  adjustX: !1,
@@ -2191,23 +2187,23 @@ const $n = (e, t, o, r, n) => pn((i) => {
2191
2187
  return /* @__PURE__ */ m.createElement("div", {
2192
2188
  ref: u,
2193
2189
  style: E
2194
- }, /* @__PURE__ */ m.createElement(e, Object.assign({}, w)));
2190
+ }, /* @__PURE__ */ m.createElement(e, Object.assign({}, B)));
2195
2191
  });
2196
2192
  export {
2197
2193
  qe as B,
2198
- On as C,
2194
+ In as C,
2199
2195
  Ve as P,
2200
- wo as a,
2201
- Eo as b,
2202
- xn as c,
2203
- Rt as d,
2204
- $n as e,
2205
- ko as f,
2206
- Fo as g,
2207
- Sn as h,
2208
- En as i,
2209
- er as j,
2210
- yn as u,
2211
- pn as w,
2196
+ No as a,
2197
+ Uo as b,
2198
+ On as c,
2199
+ $o as d,
2200
+ Rt as e,
2201
+ tr as f,
2202
+ Rn as g,
2203
+ En as h,
2204
+ $n as i,
2205
+ or as j,
2206
+ xn as u,
2207
+ bn as w,
2212
2208
  Bt as z
2213
2209
  };