@unicom-cloud/ui 0.8.64 → 0.8.66

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 (136) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +2 -2
  6. package/BackTop.js +2 -2
  7. package/Badge.js +37 -31
  8. package/Breadcrumb.js +3 -3
  9. package/Button.js +82 -71
  10. package/Calendar.js +4 -4
  11. package/Card.js +2 -2
  12. package/Carousel.js +2 -2
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +5 -5
  17. package/Comment.js +2 -2
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +3 -3
  20. package/DatePicker.js +92 -92
  21. package/Descriptions.js +2 -2
  22. package/Divider.js +2 -2
  23. package/Draggable.js +2 -2
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +2 -2
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +2 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +3 -3
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +3 -3
  36. package/Link.js +2 -2
  37. package/List.js +30 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +2 -2
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +2 -2
  49. package/Popover.js +2 -2
  50. package/Progress.js +2 -2
  51. package/Radio.js +2 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +155 -154
  54. package/Result.js +2 -2
  55. package/Select.js +2 -2
  56. package/SelectView.js +9 -8
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +2 -2
  60. package/Spin.js +2 -2
  61. package/Statistic.js +2 -2
  62. package/Steps.js +2 -2
  63. package/Switch.js +3 -3
  64. package/Table.js +771 -768
  65. package/Tabs.js +4 -4
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +4 -4
  68. package/Timeline.js +2 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +2 -2
  73. package/Trigger.js +43 -42
  74. package/Typography.js +1 -1
  75. package/Upload.js +4 -5
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{B5GDq8NJ.js → -zpSUpGE.js} +100 -97
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{oR9TkA35.js → BFipyA67.js} +2 -2
  82. package/chunk/{CxpFYX4B.js → BHgJ5Y3T.js} +3 -3
  83. package/chunk/{BwSpYGK-.js → BIT0j3HT.js} +3 -3
  84. package/chunk/{pq-36BDW.js → BbLKnaNO.js} +3 -3
  85. package/chunk/{tW_FgNSv.js → Bc7t9jkb.js} +2 -2
  86. package/chunk/{BJSjbYSN.js → Bfhv56O2.js} +2 -2
  87. package/chunk/{CAhODOfT.js → Bh23P4l7.js} +2 -2
  88. package/chunk/{CTF5o0OX.js → BnSVm1YC.js} +1 -1
  89. package/chunk/{DPJEIBKZ.js → C6QWSzsM.js} +4 -4
  90. package/chunk/{BHnRi7Xh.js → CHnFKgbk.js} +4 -4
  91. package/chunk/{CYQ1EE4h.js → CPvvjMwZ.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{BSBJlVZH.js → CVkHTbic.js} +4 -4
  94. package/chunk/{BCxoi4Kf.js → CZOP_ZHJ.js} +2 -2
  95. package/chunk/{D01b7bWX.js → CcV4wQB1.js} +176 -175
  96. package/chunk/{CA69nxbj.js → CeGEvXby.js} +2 -2
  97. package/chunk/{CAiaqaWc.js → CssIjN1g.js} +2 -2
  98. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  99. package/chunk/{CtUTlwlQ.js → DNAigumg.js} +2 -2
  100. package/chunk/{BtIG250j.js → DPByB1ab.js} +40 -40
  101. package/chunk/{B68hRpYG.js → DQAot004.js} +3 -3
  102. package/chunk/{CZfGDXaB.js → DTBtQQ2H.js} +2 -2
  103. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  104. package/chunk/{-IELMT_x.js → DV1Ab_cG.js} +2 -2
  105. package/chunk/{CBgwLBAC.js → DnvO8A0Z.js} +104 -103
  106. package/chunk/{Yvz-hPQB.js → Du-bw6qA.js} +3 -3
  107. package/chunk/dBnNCOIU.js +778 -0
  108. package/chunk/{DQ561AmR.js → it8qlDZ3.js} +222 -221
  109. package/chunk/{BfHNSLva.js → jhQQCFMn.js} +135 -134
  110. package/chunk/{D-oHJail.js → te_43YrB.js} +178 -175
  111. package/chunk/{QlYCEvCX.js → znkyQ-HR.js} +2 -2
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +378 -374
  115. package/locale/en-US.js +1 -1
  116. package/locale/tr-TR.js +1 -1
  117. package/package.json +1 -1
  118. package/style/variables.less +820 -0
  119. package/style.css +1 -1
  120. package/types/badge/index.d.ts +2 -2
  121. package/types/button/index.d.ts +3 -1
  122. package/types/config-provider/interface.d.ts +1 -1
  123. package/types/index.d.ts +5 -5
  124. package/types/select/interface.d.ts +1 -1
  125. package/types/tabs/Tab.d.ts +1 -1
  126. package/types/upload/Upload.d.ts +1 -1
  127. package/types/version/index.d.ts +2 -0
  128. package/utils/className.js +1 -1
  129. package/utils/contextHolder.js +1 -1
  130. package/utils/copy.js +1 -1
  131. package/utils/index.js +41 -41
  132. package/utils/is.js +37 -37
  133. package/utils/reactDOM.js +3 -3
  134. package/utils/scrollIntoView.js +1 -1
  135. package/chunk/BzPkh4Zv.js +0 -11
  136. package/chunk/_m8hLSsx.js +0 -776
@@ -1,35 +1,36 @@
1
- var Je = Object.defineProperty;
2
- var Qe = (e, t, r) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var z = (e, t, r) => Qe(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as N, jsxs as se, Fragment as Ze } from "react/jsx-runtime";
5
- import Z from "lodash/isPlainObject";
6
- import et from "lodash/isString";
7
- import tt from "lodash/isUndefined";
8
- import ce, { useContext as de, useRef as ee, useState as le, useMemo as he, useImperativeHandle as Ae, useCallback as nt, useEffect as we } from "react";
9
- import { d as fe, I as rt } from "./B5GDq8NJ.js";
10
- import { useMergeProps as Le } from "../hooks/useMergeProps.js";
1
+ var Qe = Object.defineProperty;
2
+ var Ze = (e, t, r) => t in e ? Qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var z = (e, t, r) => Ze(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { jsx as N, jsxs as ie, Fragment as et } from "react/jsx-runtime";
5
+ import le from "lodash/isPlainObject";
6
+ import tt from "lodash/isString";
7
+ import nt from "lodash/isUndefined";
8
+ import ce, { useContext as de, useRef as Z, useState as ae, useMemo as he, useImperativeHandle as Ae, useCallback as rt, useEffect as we } from "react";
9
+ import { d as fe, I as it } from "./-zpSUpGE.js";
10
+ import { useMergeProps as ze } from "../hooks/useMergeProps.js";
11
11
  import { useMergeValue as ye } from "../hooks/useMergeValue.js";
12
- import { y as F } from "./BzPkh4Zv.js";
12
+ import { y as F } from "./BAWsPQBM.js";
13
13
  import { contains as Te } from "../utils/dom.js";
14
- import { u as it, I as st } from "./BwSpYGK-.js";
15
- import ot from "@unicom-cloud/icons/IconUiDown";
16
- import at from "@unicom-cloud/icons/IconUiMinus";
17
- import lt from "@unicom-cloud/icons/IconUiPlus";
18
- import ut from "@unicom-cloud/icons/IconUiUp";
19
- import oe from "lodash/isNumber";
20
- import ct from "@unicom-cloud/icons/IconUiEye";
21
- import dt from "@unicom-cloud/icons/IconUiEyeInvisible";
22
- import { useKeyboardEvent as ft } from "../hooks/useKeyboardEvent.js";
14
+ import { u as st, I as ot } from "./BIT0j3HT.js";
15
+ import at from "@unicom-cloud/icons/IconUiDown";
16
+ import lt from "@unicom-cloud/icons/IconUiMinus";
17
+ import ut from "@unicom-cloud/icons/IconUiPlus";
18
+ import ct from "@unicom-cloud/icons/IconUiUp";
19
+ import se from "lodash/isNumber";
20
+ import dt from "@unicom-cloud/icons/IconUiEye";
21
+ import ft from "@unicom-cloud/icons/IconUiEyeInvisible";
22
+ import { useKeyboardEvent as mt } from "../hooks/useKeyboardEvent.js";
23
23
  import $e from "../utils/omit.js";
24
- import mt from "@unicom-cloud/icons/IconUiLoading";
24
+ import gt from "@unicom-cloud/icons/IconUiLoading";
25
25
  import De from "@unicom-cloud/icons/IconUiSearch";
26
- import gt from "../Button.js";
27
- import { I as ht } from "./DPJEIBKZ.js";
28
- import pt from "@unicom-cloud/icons/IconUiClose";
29
- import { useIsomorphicLayoutEffect as ze } from "../hooks/useIsomorphicLayoutEffect.js";
26
+ import ht from "../Button.js";
27
+ import { I as pt } from "./C6QWSzsM.js";
28
+ import Nt from "@unicom-cloud/icons/IconUiClose";
29
+ import { useIsomorphicLayoutEffect as Fe } from "../hooks/useIsomorphicLayoutEffect.js";
30
30
  import "../utils/is.js";
31
- import { A as Nt, c as St } from "./C2lIz2F9.js";
32
- const Fe = ce.forwardRef((e, t) => {
31
+ import Le from "lodash/isPlainObject.js";
32
+ import { A as St, c as xt } from "./C2lIz2F9.js";
33
+ const ke = ce.forwardRef((e, t) => {
33
34
  const { getPrefixCls: r } = de(fe), { className: i, style: s, children: u, compact: n, ...m } = e, l = r("input-group"), h = F(
34
35
  l,
35
36
  {
@@ -39,8 +40,8 @@ const Fe = ce.forwardRef((e, t) => {
39
40
  );
40
41
  return /* @__PURE__ */ N("div", { ref: t, className: h, style: s, ...m, children: u });
41
42
  });
42
- Fe.displayName = "InputGroup";
43
- function ke(e) {
43
+ ke.displayName = "InputGroup";
44
+ function He(e) {
44
45
  return !Number.isNaN(Number(e)) && String(e).includes("e");
45
46
  }
46
47
  function Ee() {
@@ -48,15 +49,15 @@ function Ee() {
48
49
  }
49
50
  function Ce(e) {
50
51
  const t = String(e);
51
- if (ke(e)) {
52
+ if (He(e)) {
52
53
  let r = Number(t.slice(t.indexOf("e-") + 2));
53
54
  return t.replace(/\.(\d+)/, (i, s) => (r += s.length, i)), r;
54
55
  }
55
- return t.includes(".") && Ue(t) ? t.length - t.indexOf(".") - 1 : 0;
56
+ return t.includes(".") && Oe(t) ? t.length - t.indexOf(".") - 1 : 0;
56
57
  }
57
- function He(e) {
58
+ function Ue(e) {
58
59
  let t = String(e);
59
- if (ke(e)) {
60
+ if (He(e)) {
60
61
  if (e < Number.MIN_SAFE_INTEGER)
61
62
  return Ee() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER.toString();
62
63
  if (e > Number.MAX_SAFE_INTEGER)
@@ -66,7 +67,7 @@ function He(e) {
66
67
  }
67
68
  return pe(t).fullStr;
68
69
  }
69
- function Ue(e) {
70
+ function Oe(e) {
70
71
  return typeof e == "number" ? !Number.isNaN(e) : e ? (
71
72
  // 1.1
72
73
  /^\s*-?\d+(\.\d+)?\s*$/.test(e) || // 1.
@@ -106,8 +107,8 @@ class Ne {
106
107
  this.isNaN = !0;
107
108
  return;
108
109
  }
109
- const r = He(t);
110
- if (Ue(r)) {
110
+ const r = Ue(t);
111
+ if (Oe(r)) {
111
112
  const { negative: i, trimStr: s } = pe(r), [u, n = "0"] = s.split(".");
112
113
  this.isNegative = i, this.integer = BigInt(u), this.decimal = BigInt(n), this.decimalLen = n.length;
113
114
  } else
@@ -171,7 +172,7 @@ class Ne {
171
172
  return typeof i == "number" ? Re(s, i) : s;
172
173
  }
173
174
  }
174
- class ie {
175
+ class re {
175
176
  constructor(t) {
176
177
  z(this, "isEmpty");
177
178
  z(this, "isNaN");
@@ -183,7 +184,7 @@ class ie {
183
184
  return this.isEmpty || this.isNaN;
184
185
  }
185
186
  negate() {
186
- return new ie(-this.toNumber());
187
+ return new re(-this.toNumber());
187
188
  }
188
189
  equals(t) {
189
190
  return this.toNumber() === (t == null ? void 0 : t.toNumber());
@@ -192,32 +193,32 @@ class ie {
192
193
  return this.isInvalid || t.isInvalid ? !1 : this.add(t.negate().toString()).toNumber() < 0;
193
194
  }
194
195
  add(t) {
195
- const r = new ie(t);
196
+ const r = new re(t);
196
197
  if (r.isInvalid)
197
198
  return this;
198
199
  if (this.isInvalid)
199
200
  return r;
200
201
  const i = this.number + r.number;
201
202
  if (i > Number.MAX_SAFE_INTEGER)
202
- return new ie(Number.MAX_SAFE_INTEGER);
203
+ return new re(Number.MAX_SAFE_INTEGER);
203
204
  if (i < Number.MIN_SAFE_INTEGER)
204
- return new ie(Number.MIN_SAFE_INTEGER);
205
+ return new re(Number.MIN_SAFE_INTEGER);
205
206
  const s = Math.max(
206
207
  Ce(this.number),
207
208
  Ce(r.number)
208
209
  );
209
- return new ie(i.toFixed(s));
210
+ return new re(i.toFixed(s));
210
211
  }
211
212
  toNumber() {
212
213
  return this.number;
213
214
  }
214
215
  toString(t = { safe: !0 }) {
215
- const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : He(this.number) : this.origin;
216
+ const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : Ue(this.number) : this.origin;
216
217
  return typeof i == "number" ? Re(s, i) : s;
217
218
  }
218
219
  }
219
- function re(e) {
220
- return Ee() ? new Ne(e) : new ie(e);
220
+ function ne(e) {
221
+ return Ee() ? new Ne(e) : new re(e);
221
222
  }
222
223
  function Re(e, t, r = !1) {
223
224
  if (e === "")
@@ -226,7 +227,7 @@ function Re(e, t, r = !1) {
226
227
  if (t >= 0) {
227
228
  const h = Number(n[t]);
228
229
  if (h >= 5 && !r) {
229
- const g = re(e).add(
230
+ const g = ne(e).add(
230
231
  `${s}0.${"0".repeat(t)}${10 - h}`
231
232
  );
232
233
  return Re(g.toString(), t, r);
@@ -235,15 +236,15 @@ function Re(e, t, r = !1) {
235
236
  }
236
237
  return `${l}${m === ".0" ? "" : m}`;
237
238
  }
238
- function xt({
239
+ function vt({
239
240
  inputElement: e,
240
241
  inputValue: t
241
242
  }) {
242
- const r = ee(null);
243
- return ze(() => {
243
+ const r = Z(null);
244
+ return Fe(() => {
244
245
  try {
245
246
  const i = r.current;
246
- if (e && t && oe(i)) {
247
+ if (e && t && se(i)) {
247
248
  const s = Math.max(0, t.length - i);
248
249
  e.setSelectionRange(s, s);
249
250
  }
@@ -252,26 +253,26 @@ function xt({
252
253
  }
253
254
  }, [t]), (i) => {
254
255
  const { selectionEnd: s, value: u } = i.target;
255
- oe(s) && (r.current = u.length - s);
256
+ se(s) && (r.current = u.length - s);
256
257
  };
257
258
  }
258
- const vt = 200, bt = 1e3, yt = {
259
+ const bt = 200, yt = 1e3, $t = {
259
260
  max: 1 / 0,
260
261
  min: -1 / 0,
261
262
  step: 1,
262
263
  mode: "embed",
263
264
  parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
264
265
  };
265
- function $t(e, t) {
266
- var Pe;
266
+ function It(e, t) {
267
+ var Me;
267
268
  const {
268
269
  getPrefixCls: r,
269
270
  size: i,
270
271
  componentConfig: s,
271
272
  rtl: u
272
- } = de(fe), n = Le(
273
+ } = de(fe), n = ze(
273
274
  e,
274
- yt,
275
+ $t,
275
276
  s == null ? void 0 : s.InputNumber
276
277
  ), {
277
278
  className: m,
@@ -281,7 +282,7 @@ function $t(e, t) {
281
282
  error: I,
282
283
  readOnly: v,
283
284
  strictMode: E,
284
- placeholder: P,
285
+ placeholder: M,
285
286
  hideControl: R,
286
287
  suffix: V,
287
288
  prefix: T,
@@ -294,20 +295,20 @@ function $t(e, t) {
294
295
  max: U,
295
296
  parser: j,
296
297
  formatter: O,
297
- onBlur: M,
298
+ onBlur: P,
298
299
  onFocus: K,
299
300
  onChange: W,
300
301
  onKeyDown: B,
301
302
  ...me
302
303
  } = n, C = r("input-number"), a = p || i, L = (() => {
303
- if (oe(H)) {
304
+ if (se(H)) {
304
305
  const o = `${b}`.split(".")[1], x = o && o.length || 0;
305
306
  return Math.max(x, H);
306
307
  }
307
308
  return null;
308
- })(), [q, X] = le(() => re(
309
+ })(), [q, X] = ae(() => ne(
309
310
  "value" in n ? n.value : "defaultValue" in n ? h : void 0
310
- )), [D, te] = le(""), [ae, Y] = le(!1), [J, _] = le(!1), f = ee(null), c = ee(null), w = ee(!1), d = he(() => "value" in n ? re(n.value) : q, [n.value, q]), [G, ne] = he(() => [re(U), re($)], [U, $]);
311
+ )), [D, ee] = ae(""), [oe, Y] = ae(!1), [J, _] = ae(!1), f = Z(null), c = Z(null), w = Z(!1), d = he(() => "value" in n ? ne(n.value) : q, [n.value, q]), [G, te] = he(() => [ne(U), ne($)], [U, $]);
311
312
  Ae(t, () => c.current, []);
312
313
  const Se = (o, x) => {
313
314
  if (X(o), !o.equals(d) && W) {
@@ -322,60 +323,60 @@ function $t(e, t) {
322
323
  }
323
324
  }, xe = () => {
324
325
  f.current && clearTimeout(f.current), f.current = null;
325
- }, ge = nt(
326
+ }, ge = rt(
326
327
  (o) => {
327
328
  let x = o;
328
- return x.less(ne) ? x = ne : G.less(x) && (x = G), x;
329
+ return x.less(te) ? x = te : G.less(x) && (x = G), x;
329
330
  },
330
- [ne, G]
331
+ [te, G]
331
332
  );
332
333
  we(() => () => xe(), []), we(() => {
333
334
  w.current = !1;
334
335
  }, [n.value]), we(() => {
335
- const o = d.less(ne) || G.less(d);
336
+ const o = d.less(te) || G.less(d);
336
337
  o && w.current && Se(ge(d), "outOfRange"), Y(o);
337
- }, [ne, G, d, ge]);
338
+ }, [te, G, d, ge]);
338
339
  const Ie = (o, x, A = !1) => {
339
340
  if (o.persist(), o.preventDefault(), _(!1), g || v)
340
341
  return;
341
- const qe = d.isInvalid ? re($ === -1 / 0 || $ <= 0 && U >= 0 ? 0 : $) : d.add(x === "plus" ? b : -b);
342
+ const Ye = d.isInvalid ? ne($ === -1 / 0 || $ <= 0 && U >= 0 ? 0 : $) : d.add(x === "plus" ? b : -b);
342
343
  if (Se(
343
- ge(qe),
344
+ ge(Ye),
344
345
  x === "plus" ? "increase" : "decrease"
345
346
  ), c.current && c.current.focus(), A) {
346
- const Ye = f.current === null;
347
+ const Je = f.current === null;
347
348
  f.current = setTimeout(
348
349
  () => o.target.dispatchEvent(o.nativeEvent),
349
- Ye ? bt : vt
350
+ Je ? yt : bt
350
351
  );
351
352
  }
352
353
  }, Ve = he(() => {
353
354
  let o;
354
- return J ? o = j ? `${j(D)}` : D : oe(L) ? o = d.toString({ safe: !0, precision: L }) : d.isInvalid ? o = "" : o = d.toString(), O ? O(o, { userTyping: J, input: D }) : o;
355
- }, [d, D, J, L, j, O]), Ge = xt({
356
- inputElement: (Pe = c.current) == null ? void 0 : Pe.dom,
355
+ return J ? o = j ? `${j(D)}` : D : se(L) ? o = d.toString({ safe: !0, precision: L }) : d.isInvalid ? o = "" : o = d.toString(), O ? O(o, { userTyping: J, input: D }) : o;
356
+ }, [d, D, J, L, j, O]), je = vt({
357
+ inputElement: (Me = c.current) == null ? void 0 : Me.dom,
357
358
  inputValue: Ve
358
- }), je = {
359
+ }), Ke = {
359
360
  onChange: (o, x) => {
360
361
  _(!0), o = o.trim().replace(/。/g, ".");
361
362
  const A = j ? j(o) : o;
362
- (oe(+A) || A === "-" || !A || A === ".") && (te(o), Se(ge(re(A)), "manual"), Ge(x));
363
+ (se(+A) || A === "-" || !A || A === ".") && (ee(o), Se(ge(ne(A)), "manual"), je(x));
363
364
  },
364
365
  onKeyDown: (o) => {
365
366
  const x = o.key;
366
- x === Nt.key ? (o.stopPropagation(), Ie(o, "minus")) : x === St.key && (o.stopPropagation(), Ie(o, "plus")), xe(), B == null || B(o);
367
+ x === St.key ? (o.stopPropagation(), Ie(o, "minus")) : x === xt.key && (o.stopPropagation(), Ie(o, "plus")), xe(), B == null || B(o);
367
368
  },
368
369
  onFocus: (o) => {
369
370
  var x, A;
370
- w.current = !0, te((A = (x = c.current) == null ? void 0 : x.dom) == null ? void 0 : A.value), K == null || K(o);
371
+ w.current = !0, ee((A = (x = c.current) == null ? void 0 : x.dom) == null ? void 0 : A.value), K == null || K(o);
371
372
  },
372
373
  onBlur: (o) => {
373
- Se(ge(d), "outOfRange"), _(!1), M == null || M(o);
374
+ Se(ge(d), "outOfRange"), _(!1), P == null || P(o);
374
375
  }
375
- }, Ke = (o) => v ? {} : {
376
+ }, Xe = (o) => v ? {} : {
376
377
  onMouseDown: (x) => Ie(x, o, !0)
377
- }, Me = !R && y === "button", Xe = !R && !v && y === "embed", ve = (o, x) => {
378
- const A = !g && (d.isInvalid || (o === "plus" ? G.isInvalid || d.less(G) : ne.isInvalid || ne.less(d)));
378
+ }, Pe = !R && y === "button", qe = !R && !v && y === "embed", ve = (o, x) => {
379
+ const A = !g && (d.isInvalid || (o === "plus" ? G.isInvalid || d.less(G) : te.isInvalid || te.less(d)));
379
380
  return /* @__PURE__ */ N(
380
381
  "div",
381
382
  {
@@ -384,7 +385,7 @@ function $t(e, t) {
384
385
  }),
385
386
  onMouseLeave: xe,
386
387
  onMouseUp: xe,
387
- ...A ? Ke(o) : {},
388
+ ...A ? Xe(o) : {},
388
389
  children: x
389
390
  }
390
391
  );
@@ -398,7 +399,7 @@ function $t(e, t) {
398
399
  "aria-valuemin": $,
399
400
  "aria-valuenow": d.isEmpty ? void 0 : d.toNumber(),
400
401
  ...$e(me, ["allowClear"]),
401
- ...je,
402
+ ...Ke,
402
403
  style: l,
403
404
  className: F(
404
405
  C,
@@ -407,7 +408,7 @@ function $t(e, t) {
407
408
  {
408
409
  [`${C}-rtl`]: u,
409
410
  [`${C}-readonly`]: v,
410
- [`${C}-illegal-value`]: !d.isEmpty && ae
411
+ [`${C}-illegal-value`]: !d.isEmpty && oe
411
412
  },
412
413
  m
413
414
  ),
@@ -417,42 +418,42 @@ function $t(e, t) {
417
418
  disabled: g,
418
419
  readOnly: v,
419
420
  value: Ve,
420
- placeholder: P,
421
+ placeholder: M,
421
422
  prefix: T && /* @__PURE__ */ N("div", { className: `${C}-prefix`, children: T }),
422
- suffix: /* @__PURE__ */ se(Ze, { children: [
423
- Xe && /* @__PURE__ */ se("div", { className: `${C}-step-layer`, children: [
423
+ suffix: /* @__PURE__ */ ie(et, { children: [
424
+ qe && /* @__PURE__ */ ie("div", { className: `${C}-step-layer`, children: [
424
425
  ve(
425
426
  "plus",
426
- S && S.up ? S.up : /* @__PURE__ */ N(ut, {})
427
+ S && S.up ? S.up : /* @__PURE__ */ N(ct, {})
427
428
  ),
428
429
  ve(
429
430
  "minus",
430
- S && S.down ? S.down : /* @__PURE__ */ N(ot, {})
431
+ S && S.down ? S.down : /* @__PURE__ */ N(at, {})
431
432
  )
432
433
  ] }),
433
434
  V && /* @__PURE__ */ N("div", { className: `${C}-suffix`, children: V })
434
435
  ] }),
435
- addBefore: Me && ve(
436
+ addBefore: Pe && ve(
436
437
  "minus",
437
- S && S.minus ? S.minus : /* @__PURE__ */ N(at, {})
438
+ S && S.minus ? S.minus : /* @__PURE__ */ N(lt, {})
438
439
  ),
439
- addAfter: Me && ve(
440
+ addAfter: Pe && ve(
440
441
  "plus",
441
- S && S.plus ? S.plus : /* @__PURE__ */ N(lt, {})
442
+ S && S.plus ? S.plus : /* @__PURE__ */ N(ut, {})
442
443
  )
443
444
  }
444
445
  );
445
446
  }
446
- const Oe = ce.forwardRef(
447
- $t
448
- );
449
- Oe.displayName = "InputNumber";
450
447
  const We = ce.forwardRef(
448
+ It
449
+ );
450
+ We.displayName = "InputNumber";
451
+ const Be = ce.forwardRef(
451
452
  (e, t) => {
452
453
  const [r, i] = ye(!1, {
453
454
  defaultValue: e.defaultVisibility,
454
455
  value: e.visibility
455
- }), { getPrefixCls: s } = de(fe), u = ft(), {
456
+ }), { getPrefixCls: s } = de(fe), u = mt(), {
456
457
  className: n,
457
458
  visibilityToggle: m = !0,
458
459
  onVisibilityChange: l,
@@ -467,21 +468,21 @@ const We = ce.forwardRef(
467
468
  "visibility" in e || i(R), l == null || l(R);
468
469
  };
469
470
  let E = e.suffix;
470
- const P = () => {
471
+ const M = () => {
471
472
  v(!r);
472
473
  };
473
474
  if (m) {
474
475
  const R = {
475
- onClick: P,
476
+ onClick: M,
476
477
  // 预防focus丢失
477
478
  onMouseDown: (V) => V.preventDefault(),
478
479
  onMouseUp: (V) => V.preventDefault(),
479
480
  ...u({
480
- onPressEnter: P
481
+ onPressEnter: M
481
482
  })
482
483
  };
483
484
  e.suffix ? E = /* @__PURE__ */ N("span", { ...R, children: e.suffix }) : E = /* @__PURE__ */ N(
484
- r ? ct : dt,
485
+ r ? dt : ft,
485
486
  {
486
487
  ...R,
487
488
  focusable: void 0,
@@ -503,8 +504,8 @@ const We = ce.forwardRef(
503
504
  );
504
505
  }
505
506
  );
506
- We.displayName = "Password";
507
- const Be = ce.forwardRef(
507
+ Be.displayName = "Password";
508
+ const _e = ce.forwardRef(
508
509
  (e, t) => {
509
510
  const { getPrefixCls: r } = de(fe), {
510
511
  className: i,
@@ -517,9 +518,9 @@ const Be = ce.forwardRef(
517
518
  addAfter: g,
518
519
  suffix: I,
519
520
  ...v
520
- } = e, E = Z(e.maxLength) ? e.maxLength.length : e.maxLength, P = Z(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [R, V] = ye("", {
521
- defaultValue: "defaultValue" in e ? ue(e.defaultValue, P) : void 0,
522
- value: "value" in e ? ue(e.value, P) : void 0
521
+ } = e, E = le(e.maxLength) ? e.maxLength.length : e.maxLength, M = le(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [R, V] = ye("", {
522
+ defaultValue: "defaultValue" in e ? ue(e.defaultValue, M) : void 0,
523
+ value: "value" in e ? ue(e.value, M) : void 0
523
524
  }), T = r("input-search"), S = F(
524
525
  T,
525
526
  {
@@ -540,7 +541,7 @@ const Be = ce.forwardRef(
540
541
  ref: t,
541
542
  placeholder: u,
542
543
  addAfter: g !== void 0 ? g : m ? /* @__PURE__ */ N(
543
- gt,
544
+ ht,
544
545
  {
545
546
  disabled: n,
546
547
  size: v.size,
@@ -554,7 +555,7 @@ const Be = ce.forwardRef(
554
555
  children: m !== !0 && m
555
556
  }
556
557
  ) : null,
557
- suffix: I !== void 0 ? I : !m && (l ? /* @__PURE__ */ N(mt, {}) : /* @__PURE__ */ N(De, { onClick: y })),
558
+ suffix: I !== void 0 ? I : !m && (l ? /* @__PURE__ */ N(gt, {}) : /* @__PURE__ */ N(De, { onClick: y })),
558
559
  onChange: (p, b) => {
559
560
  var H;
560
561
  V(p), (H = e.onChange) == null || H.call(e, p, b);
@@ -568,8 +569,8 @@ const Be = ce.forwardRef(
568
569
  );
569
570
  }
570
571
  );
571
- Be.displayName = "Search";
572
- const It = [
572
+ _e.displayName = "Search";
573
+ const wt = [
573
574
  "position: absolute",
574
575
  "min-height: 0 !important",
575
576
  "max-height: none",
@@ -578,7 +579,7 @@ const It = [
578
579
  "z-index: -100",
579
580
  "top: 0",
580
581
  "right: 0"
581
- ].join(";"), wt = [
582
+ ].join(";"), Et = [
582
583
  "border-width",
583
584
  "box-sizing",
584
585
  "font-family",
@@ -597,10 +598,10 @@ const It = [
597
598
  "width"
598
599
  ];
599
600
  let Q;
600
- function Et(e) {
601
+ function Ct(e) {
601
602
  Q || (Q = document.createElement("textarea"), document.body.appendChild(Q));
602
- const t = window.getComputedStyle(e), r = wt.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
603
- Q.setAttribute("style", It + r);
603
+ const t = window.getComputedStyle(e), r = Et.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
604
+ Q.setAttribute("style", wt + r);
604
605
  const i = parseFloat(t.getPropertyValue("padding-top")) + parseFloat(t.getPropertyValue("padding-bottom")), s = t.getPropertyValue("box-sizing"), u = parseFloat(t.getPropertyValue("border-top-width")) + parseFloat(t.getPropertyValue("border-bottom-width"));
605
606
  return {
606
607
  paddingSize: i,
@@ -608,28 +609,28 @@ function Et(e) {
608
609
  borderSize: u
609
610
  };
610
611
  }
611
- function Ct(e, t) {
612
+ function At(e, t) {
612
613
  const r = () => {
613
614
  let i, s;
614
- return Z(e) && (i = e.minRows, s = e.maxRows), {
615
+ return le(e) && (i = e.minRows, s = e.maxRows), {
615
616
  minRows: i,
616
617
  maxRows: s
617
618
  };
618
619
  };
619
620
  if (e) {
620
- const { minRows: i, maxRows: s } = r(), u = t, { paddingSize: n, boxSizing: m, borderSize: l } = Et(u);
621
+ const { minRows: i, maxRows: s } = r(), u = t, { paddingSize: n, boxSizing: m, borderSize: l } = Ct(u);
621
622
  Q.value = u.value || u.placeholder || "";
622
623
  let h = Q.scrollHeight + l, g, I, v;
623
624
  if (i || s) {
624
625
  Q.value = "";
625
- const P = Q.scrollHeight - n;
626
- oe(i) && (g = P * i, m === "border-box" && (g += n, g += l), h = Math.max(h, g)), oe(s) && (I = P * s, m === "border-box" && (I += n, I += l), v = h > I ? "auto" : "", I = Math.min(h, I));
626
+ const M = Q.scrollHeight - n;
627
+ se(i) && (g = M * i, m === "border-box" && (g += n, g += l), h = Math.max(h, g)), se(s) && (I = M * s, m === "border-box" && (I += n, I += l), v = h > I ? "auto" : "", I = Math.min(h, I));
627
628
  }
628
629
  const E = {};
629
630
  return E.height = h, g && (E.minHeight = g), I && (E.maxHeight = I), v && (E.overflowY = v), E;
630
631
  }
631
632
  }
632
- const At = (e, t) => {
633
+ const Rt = (e, t) => {
633
634
  const {
634
635
  className: r,
635
636
  style: i,
@@ -643,25 +644,25 @@ const At = (e, t) => {
643
644
  onChange: I,
644
645
  onClear: v,
645
646
  onKeyDown: E,
646
- onPressEnter: P,
647
+ onPressEnter: M,
647
648
  status: R,
648
649
  clearIcon: V,
649
650
  ...T
650
- } = e, S = Z(l) ? l.length : l, y = Z(l) ? l.errorOnly ? void 0 : l.length : l, p = ee(), [b, H] = le({}), [$, U] = ye("", {
651
+ } = e, S = Le(l) ? l.length : l, y = Le(l) ? l.errorOnly ? void 0 : l.length : l, p = Z(), [b, H] = ae({}), [$, U] = ye("", {
651
652
  defaultValue: "defaultValue" in e ? ue(e.defaultValue, y) : void 0,
652
653
  value: "value" in e ? ue(e.value, y) : void 0
653
654
  }), {
654
655
  compositionValue: j,
655
656
  compositionHandler: O,
656
- valueChangeHandler: M,
657
+ valueChangeHandler: P,
657
658
  keyDownHandler: K,
658
659
  triggerValueChangeCallback: W
659
- } = it({
660
+ } = st({
660
661
  value: $,
661
662
  maxLength: y,
662
663
  onChange: I,
663
664
  onKeyDown: E,
664
- onPressEnter: P,
665
+ onPressEnter: M,
665
666
  beforeTriggerValueChangeCallback: (f) => {
666
667
  !("value" in e) && (y === void 0 || f.length <= y) && U(f);
667
668
  }
@@ -676,7 +677,7 @@ const At = (e, t) => {
676
677
  p.current.focus();
677
678
  }
678
679
  }, q = () => {
679
- const f = Ct(
680
+ const f = At(
680
681
  e.autoSize,
681
682
  p.current
682
683
  );
@@ -684,7 +685,7 @@ const At = (e, t) => {
684
685
  }, X = (f) => {
685
686
  f.stopPropagation(), L(), W("", f), v == null || v();
686
687
  };
687
- ze(() => {
688
+ Fe(() => {
688
689
  q();
689
690
  }, [B]), Ae(
690
691
  t,
@@ -701,7 +702,7 @@ const At = (e, t) => {
701
702
  }),
702
703
  []
703
704
  );
704
- const D = $ ? $.length : 0, te = S && h || g, ae = he(() => !y && S ? D > S : !1, [D, S, y]), Y = R || (m || ae ? "error" : void 0), J = F(
705
+ const D = $ ? $.length : 0, ee = S && h || g, oe = he(() => !y && S ? D > S : !1, [D, S, y]), Y = R || (m || oe ? "error" : void 0), J = F(
705
706
  a,
706
707
  {
707
708
  [`${a}-${Y}`]: Y,
@@ -721,16 +722,16 @@ const At = (e, t) => {
721
722
  placeholder: u,
722
723
  disabled: n,
723
724
  value: B,
724
- onChange: M,
725
+ onChange: P,
725
726
  onKeyDown: K,
726
727
  onCompositionStart: O,
727
728
  onCompositionUpdate: O,
728
729
  onCompositionEnd: O
729
730
  }
730
731
  );
731
- if (te) {
732
+ if (ee) {
732
733
  const f = !n && g && $, [c, w] = C ? [S, D] : [D, S];
733
- return /* @__PURE__ */ se(
734
+ return /* @__PURE__ */ ie(
734
735
  "div",
735
736
  {
736
737
  className: F(`${a}-wrapper`, {
@@ -750,8 +751,8 @@ const At = (e, t) => {
750
751
  },
751
752
  children: V
752
753
  }
753
- ) : /* @__PURE__ */ N(rt, { className: `${a}-clear-icon`, children: /* @__PURE__ */ N(
754
- pt,
754
+ ) : /* @__PURE__ */ N(it, { className: `${a}-clear-icon`, children: /* @__PURE__ */ N(
755
+ Nt,
755
756
  {
756
757
  onClick: X,
757
758
  onMouseDown: (d) => {
@@ -759,11 +760,11 @@ const At = (e, t) => {
759
760
  }
760
761
  }
761
762
  ) }) : null,
762
- S && h && /* @__PURE__ */ se(
763
+ S && h && /* @__PURE__ */ ie(
763
764
  "span",
764
765
  {
765
766
  className: F(`${a}-word-limit`, {
766
- [`${a}-word-limit-error`]: ae
767
+ [`${a}-word-limit-error`]: oe
767
768
  }),
768
769
  children: [
769
770
  c,
@@ -777,22 +778,22 @@ const At = (e, t) => {
777
778
  );
778
779
  }
779
780
  return _;
780
- }, _e = ce.forwardRef(At);
781
- _e.displayName = "TextArea";
782
- const Rt = (e) => {
781
+ }, Ge = ce.forwardRef(Rt);
782
+ Ge.displayName = "TextArea";
783
+ const Vt = (e) => {
783
784
  e.target.tagName !== "INPUT" && e.preventDefault();
784
785
  }, be = (e, t, r = {}, i) => t ? /* @__PURE__ */ N("span", { style: r, className: e, onClick: i, children: t }) : null;
785
786
  function ue(e, t) {
786
- const r = e !== null && !tt(e) && !et(e) ? String(e) : e || "";
787
+ const r = e !== null && !nt(e) && !tt(e) ? String(e) : e || "";
787
788
  return t ? r.slice(0, t) : r;
788
789
  }
789
- function Vt(e, t) {
790
+ function Pt(e, t) {
790
791
  const {
791
792
  getPrefixCls: r,
792
793
  size: i,
793
794
  componentConfig: s,
794
795
  rtl: u
795
- } = de(fe), n = Le(
796
+ } = de(fe), n = ze(
796
797
  e,
797
798
  {},
798
799
  s == null ? void 0 : s.Input
@@ -804,7 +805,7 @@ function Vt(e, t) {
804
805
  suffix: I,
805
806
  prefix: v,
806
807
  beforeStyle: E,
807
- afterStyle: P,
808
+ afterStyle: M,
808
809
  height: R,
809
810
  disabled: V,
810
811
  maxLength: T,
@@ -814,13 +815,13 @@ function Vt(e, t) {
814
815
  } = n, b = p ? {
815
816
  minWidth: 0,
816
817
  maxWidth: "100%",
817
- ...Z(p) ? p : {}
818
+ ...le(p) ? p : {}
818
819
  } : null, H = {
819
820
  minWidth: b == null ? void 0 : b.minWidth,
820
821
  maxWidth: b == null ? void 0 : b.maxWidth,
821
822
  width: b && "auto",
822
823
  ...l
823
- }, $ = Z(T) ? T.length : T, U = Z(T) && T.errorOnly ? void 0 : $, [j, O] = le(!1), M = ee(), K = ee(), W = ee(), [B, me] = ye("", {
824
+ }, $ = le(T) ? T.length : T, U = le(T) && T.errorOnly ? void 0 : $, [j, O] = ae(!1), P = Z(), K = Z(), W = Z(), [B, me] = ye("", {
824
825
  defaultValue: "defaultValue" in n ? ue(n.defaultValue, U) : void 0,
825
826
  value: "value" in n ? ue(n.value, U) : void 0
826
827
  });
@@ -829,13 +830,13 @@ function Vt(e, t) {
829
830
  () => {
830
831
  var c, w, d;
831
832
  return {
832
- focus: (c = M.current) == null ? void 0 : c.focus,
833
- blur: (w = M.current) == null ? void 0 : w.blur,
834
- dom: (d = M.current) == null ? void 0 : d.dom,
833
+ focus: (c = P.current) == null ? void 0 : c.focus,
834
+ blur: (w = P.current) == null ? void 0 : w.blur,
835
+ dom: (d = P.current) == null ? void 0 : d.dom,
835
836
  // 保持之前逻辑
836
837
  getRootDOMNode: () => {
837
838
  var G;
838
- return K.current || ((G = M.current) == null ? void 0 : G.dom);
839
+ return K.current || ((G = P.current) == null ? void 0 : G.dom);
839
840
  }
840
841
  };
841
842
  },
@@ -846,14 +847,14 @@ function Vt(e, t) {
846
847
  "value" in n || me(c), (d = n.onChange) == null || d.call(n, c, w);
847
848
  }, a = r("input"), L = n.size || i, q = "height" in n;
848
849
  let X = I;
849
- const D = B ? B.length : 0, te = he(() => !U && $ ? D > $ : !1, [D, $, U]);
850
+ const D = B ? B.length : 0, ee = he(() => !U && $ ? D > $ : !1, [D, $, U]);
850
851
  if ($ && S) {
851
852
  const [c, w] = u ? [$, D] : [D, $];
852
- X = /* @__PURE__ */ se(
853
+ X = /* @__PURE__ */ ie(
853
854
  "span",
854
855
  {
855
856
  className: F(`${a}-word-limit`, {
856
- [`${a}-word-limit-error`]: te
857
+ [`${a}-word-limit-error`]: ee
857
858
  }),
858
859
  children: [
859
860
  c,
@@ -863,7 +864,7 @@ function Vt(e, t) {
863
864
  }
864
865
  );
865
866
  }
866
- const ae = F(
867
+ const oe = F(
867
868
  `${a}-group-wrapper`,
868
869
  `${a}-group-wrapper-${L}`,
869
870
  {
@@ -874,10 +875,10 @@ function Vt(e, t) {
874
875
  [`${a}-group-wrapper-autowidth`]: b
875
876
  },
876
877
  m
877
- ), Y = n.status || (n.error || te ? "error" : void 0), J = h || g || X || v, _ = /* @__PURE__ */ N(
878
- st,
878
+ ), Y = n.status || (n.error || ee ? "error" : void 0), J = h || g || X || v, _ = /* @__PURE__ */ N(
879
+ ot,
879
880
  {
880
- ref: M,
881
+ ref: P,
881
882
  ...n,
882
883
  autoFitWidth: !!b,
883
884
  style: H,
@@ -909,11 +910,11 @@ function Vt(e, t) {
909
910
  "div",
910
911
  {
911
912
  ref: K,
912
- className: ae,
913
+ className: oe,
913
914
  style: { ...H, ...q ? { height: R } : {} },
914
- children: /* @__PURE__ */ se("span", { className: `${a}-group`, children: [
915
+ children: /* @__PURE__ */ ie("span", { className: `${a}-group`, children: [
915
916
  be(`${a}-group-addbefore`, h, E),
916
- /* @__PURE__ */ se(
917
+ /* @__PURE__ */ ie(
917
918
  "span",
918
919
  {
919
920
  className: f,
@@ -922,7 +923,7 @@ function Vt(e, t) {
922
923
  c.target.tagName !== "INPUT" && W.current && Te(W.current, c.target) && c.preventDefault();
923
924
  },
924
925
  onClick: (c) => {
925
- W.current && Te(W.current, c.target) && M.current && M.current.focus();
926
+ W.current && Te(W.current, c.target) && P.current && P.current.focus();
926
927
  },
927
928
  children: [
928
929
  be(`${a}-group-prefix`, v),
@@ -931,7 +932,7 @@ function Vt(e, t) {
931
932
  ]
932
933
  }
933
934
  ),
934
- be(`${a}-group-addafter`, g, P)
935
+ be(`${a}-group-addafter`, g, M)
935
936
  ] })
936
937
  }
937
938
  ) : y ? /* @__PURE__ */ N(
@@ -940,28 +941,28 @@ function Vt(e, t) {
940
941
  ref: K,
941
942
  className: F(m, f),
942
943
  style: { ...H, ...q ? { height: R } : {} },
943
- onMouseDown: Rt,
944
+ onMouseDown: Vt,
944
945
  onClick: () => {
945
- M.current && M.current.focus();
946
+ P.current && P.current.focus();
946
947
  },
947
948
  children: _
948
949
  }
949
950
  ) : _;
950
951
  }
951
- const k = ce.forwardRef(Vt);
952
+ const k = ce.forwardRef(Pt);
952
953
  k.displayName = "Input";
953
- k.Search = Be;
954
- k.TextArea = _e;
955
- k.Password = We;
956
- k.Number = k.InputNumber = Oe;
957
- k.Tag = k.InputTag = ht;
958
- k.Group = Fe;
954
+ k.Search = _e;
955
+ k.TextArea = Ge;
956
+ k.Password = Be;
957
+ k.Number = k.InputNumber = We;
958
+ k.Tag = k.InputTag = pt;
959
+ k.Group = ke;
959
960
  export {
960
- Fe as G,
961
+ ke as G,
961
962
  k as I,
962
- We as P,
963
- Be as S,
964
- _e as T,
965
- Oe as a,
963
+ Be as P,
964
+ _e as S,
965
+ Ge as T,
966
+ We as a,
966
967
  ue as f
967
968
  };