@unicom-cloud/ui 0.8.52 → 0.8.53

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 (130) hide show
  1. package/Affix.js +41 -40
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +3 -3
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +2 -2
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +2 -2
  9. package/Button.js +1 -1
  10. package/Calendar.js +3 -3
  11. package/Card.js +1 -1
  12. package/Carousel.js +1 -1
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +3 -3
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +1 -1
  20. package/DatePicker.js +1268 -1233
  21. package/Descriptions.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +1 -1
  26. package/Empty.js +1 -1
  27. package/Form.js +122 -117
  28. package/Grid.js +86 -83
  29. package/Icon.js +1 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +2 -2
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +1 -1
  37. package/List.js +3 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +1 -1
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +1 -1
  49. package/Popover.js +1 -1
  50. package/Progress.js +1 -1
  51. package/Radio.js +2 -2
  52. package/Rate.js +1 -1
  53. package/ResizeBox.js +33 -32
  54. package/Result.js +1 -1
  55. package/Select.js +1 -1
  56. package/SelectView.js +142 -141
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +2 -2
  59. package/Space.js +1 -1
  60. package/Spin.js +1 -1
  61. package/Statistic.js +1 -1
  62. package/Steps.js +1 -1
  63. package/Switch.js +15 -14
  64. package/Table.js +141 -133
  65. package/Tabs.js +1 -1
  66. package/Tag.js +111 -82
  67. package/TimePicker.js +3 -3
  68. package/Timeline.js +1 -1
  69. package/Tooltip.js +1 -1
  70. package/Transfer.js +3 -3
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +1 -1
  73. package/Trigger.js +31 -30
  74. package/Typography.js +25 -25
  75. package/Upload.js +1 -1
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +1 -1
  78. package/Watermark.js +1 -1
  79. package/chunk/{CoevJNNj.js → -sV-N67P.js} +1 -1
  80. package/chunk/{CkIWpIl6.js → 8hWViek4.js} +1 -1
  81. package/chunk/{Ct7mcZuW.js → B8IzaBdN.js} +1 -1
  82. package/chunk/{DCe3olyi.js → BEVtQ2QL.js} +101 -99
  83. package/chunk/{tkU8zIK4.js → BEiJmFHq.js} +1 -1
  84. package/chunk/{CQvJK4kb.js → BOUZ7hSf.js} +12 -12
  85. package/chunk/{DMeJAY1S.js → BYMRs7t5.js} +6 -5
  86. package/chunk/{DWGwYNvC.js → CBaVCRtG.js} +2 -2
  87. package/chunk/{5PpvDpEt.js → CLU6Le34.js} +2 -2
  88. package/chunk/{dhljdm11.js → COWsswcW.js} +64 -63
  89. package/chunk/{B9nYZhXo.js → CRxPui7e.js} +2 -2
  90. package/chunk/CYyPBcnp.js +970 -0
  91. package/chunk/{DfvdYCUz.js → CccPQyYX.js} +1 -1
  92. package/chunk/{DUX5Hw8l.js → CmEyvBdT.js} +3 -3
  93. package/chunk/{Cku5-xbe.js → Cwp65v9h.js} +47 -46
  94. package/chunk/{I0bfWb5y.js → CyVLxv_U.js} +95 -93
  95. package/chunk/{Cw63stMm.js → Cz65nXZD.js} +18 -18
  96. package/chunk/D3pUE3-b.js +445 -0
  97. package/chunk/{9AJ-uN8F.js → D6BMh1k4.js} +1 -1
  98. package/chunk/{BHWpeAbb.js → DGK45cuc.js} +1 -1
  99. package/chunk/{CfqAfcA3.js → DNyP-r9G.js} +2 -2
  100. package/chunk/DQ3uFRJD.js +892 -0
  101. package/chunk/{4XXtB4ZV.js → DY9WA4bf.js} +1 -1
  102. package/chunk/{DG5zSZDd.js → DdVbiC4t.js} +2 -2
  103. package/chunk/{n58kSv9T.js → DfMf16uZ.js} +11 -5
  104. package/chunk/{z7sBNzI4.js → Lyg-9NEt.js} +17 -17
  105. package/chunk/{BXZYc88i.js → PRN8SqRA.js} +3 -3
  106. package/chunk/bcn23eHi.js +277 -0
  107. package/index.js +408 -346
  108. package/package.json +1 -23
  109. package/style.css +1 -1
  110. package/types/color-picker/colors.d.ts +1 -1
  111. package/types/date-picker/Picker.d.ts +4 -3
  112. package/types/date-picker/PickerRange.d.ts +3 -7
  113. package/types/date-picker/interface.d.ts +9 -1
  114. package/types/grid/index.d.ts +2 -1
  115. package/types/index.d.ts +1 -0
  116. package/types/pagination/interface.d.ts +1 -0
  117. package/types/picker/InputRange.d.ts +1 -1
  118. package/types/select/Select.d.ts +1 -1
  119. package/types/tag/interface.d.ts +7 -3
  120. package/types/utils/CSSTransition.d.ts +2 -1
  121. package/types/utils/is.d.ts +4 -17
  122. package/types/version/index.d.ts +1 -1
  123. package/utils/CSSTransition.js +1 -1
  124. package/utils/contextHolder.js +1 -1
  125. package/utils/is.js +102 -104
  126. package/utils/reactDOM.js +19 -19
  127. package/chunk/C61BEbHK.js +0 -263
  128. package/chunk/DXMtLuTP.js +0 -443
  129. package/chunk/m3_n9fBe.js +0 -961
  130. package/chunk/uUGMUxt_.js +0 -474
@@ -1,17 +1,17 @@
1
1
  var Ze = Object.defineProperty;
2
2
  var et = (e, t, r) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var L = (e, t, r) => et(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as p, jsxs as re, Fragment as tt } from "react/jsx-runtime";
4
+ import { jsx as h, jsxs as re, Fragment as tt } from "react/jsx-runtime";
5
5
  import le from "lodash/isPlainObject";
6
6
  import nt from "lodash/isString";
7
7
  import rt from "lodash/isUndefined";
8
- import ce, { useContext as de, useRef as ie, useState as ae, useMemo as pe, useImperativeHandle as Ae, useCallback as it, useEffect as we } from "react";
9
- import { a as fe, I as st } from "./z7sBNzI4.js";
8
+ import ce, { useContext as de, useRef as ie, useState as ae, useMemo as he, useImperativeHandle as Ae, useCallback as it, useEffect as we } from "react";
9
+ import { a as fe, I as st } from "./Lyg-9NEt.js";
10
10
  import Fe from "../hooks/useMergeProps.js";
11
11
  import $e from "../hooks/useMergeValue.js";
12
12
  import D from "@unicom-cloud/utils/class-name";
13
13
  import { contains as Le } from "../utils/dom.js";
14
- import { u as ot, I as at } from "./Cku5-xbe.js";
14
+ import { u as ot, I as at } from "./Cwp65v9h.js";
15
15
  import lt from "@unicom-cloud/icons/IconUiDown";
16
16
  import ut from "@unicom-cloud/icons/IconUiMinus";
17
17
  import ct from "@unicom-cloud/icons/IconUiPlus";
@@ -21,13 +21,14 @@ import ft from "@unicom-cloud/icons/IconUiEye";
21
21
  import mt from "@unicom-cloud/icons/IconUiEyeInvisible";
22
22
  import gt from "../hooks/useKeyboardEvent.js";
23
23
  import ye from "../utils/omit.js";
24
- import pt from "@unicom-cloud/icons/IconUiLoading";
24
+ import ht from "@unicom-cloud/icons/IconUiLoading";
25
25
  import De from "@unicom-cloud/icons/IconUiSearch";
26
- import ht from "../Button.js";
27
- import { I as Nt } from "./dhljdm11.js";
26
+ import pt from "../Button.js";
27
+ import { I as Nt } from "./COWsswcW.js";
28
28
  import xt from "@unicom-cloud/icons/IconUiClose";
29
29
  import ke from "../hooks/useIsomorphicLayoutEffect.js";
30
- import { isObject as ze } from "../utils/is.js";
30
+ import "../utils/is.js";
31
+ import { isPlainObject as ze } from "@unicom-cloud/utils/is";
31
32
  import { ArrowDown as St, ArrowUp as vt } from "../utils/keyCode.js";
32
33
  const He = ce.forwardRef((e, t) => {
33
34
  const { getPrefixCls: r } = de(fe), { className: i, style: s, children: c, compact: n, ...d } = e, u = r("input-group"), m = D(
@@ -37,7 +38,7 @@ const He = ce.forwardRef((e, t) => {
37
38
  },
38
39
  i
39
40
  );
40
- return /* @__PURE__ */ p("div", { ref: t, className: m, style: s, ...d, children: c });
41
+ return /* @__PURE__ */ h("div", { ref: t, className: m, style: s, ...d, children: c });
41
42
  });
42
43
  He.displayName = "InputGroup";
43
44
  function Ue(e) {
@@ -64,7 +65,7 @@ function Oe(e) {
64
65
  const r = Ce(t);
65
66
  t = Number(e).toFixed(Math.min(100, r));
66
67
  }
67
- return he(t).fullStr;
68
+ return pe(t).fullStr;
68
69
  }
69
70
  function We(e) {
70
71
  return typeof e == "number" ? !Number.isNaN(e) : e ? (
@@ -74,7 +75,7 @@ function We(e) {
74
75
  /^\s*-?\.\d+\s*$/.test(e)
75
76
  ) : !1;
76
77
  }
77
- function he(e) {
78
+ function pe(e) {
78
79
  let t = e.trim(), r = !1;
79
80
  t = t.replace(/^-/, () => (r = !0, "")).replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, "").replace(/^\./, "0.");
80
81
  const i = t || "0", [s = "0", c = "0"] = i.split(".");
@@ -108,7 +109,7 @@ class Ne {
108
109
  }
109
110
  const r = Oe(t);
110
111
  if (We(r)) {
111
- const { negative: i, trimStr: s } = he(r), [c, n = "0"] = s.split(".");
112
+ const { negative: i, trimStr: s } = pe(r), [c, n = "0"] = s.split(".");
112
113
  this.isNegative = i, this.integer = BigInt(c), this.decimal = BigInt(n), this.decimalLen = n.length;
113
114
  } else
114
115
  this.isNaN = !0;
@@ -145,7 +146,7 @@ class Ne {
145
146
  return this;
146
147
  if (this.isInvalid)
147
148
  return r;
148
- const i = Math.max(this.decimalLen, r.decimalLen), s = this.alignDecimal(i), c = r.alignDecimal(i), n = (s + c).toString(), { negativeStr: d, trimStr: u } = he(n), m = `${d}${u.padStart(
149
+ const i = Math.max(this.decimalLen, r.decimalLen), s = this.alignDecimal(i), c = r.alignDecimal(i), n = (s + c).toString(), { negativeStr: d, trimStr: u } = pe(n), m = `${d}${u.padStart(
149
150
  i + 1,
150
151
  "0"
151
152
  )}`;
@@ -165,7 +166,7 @@ class Ne {
165
166
  return this.isNaN ? NaN : Number(this.toString());
166
167
  }
167
168
  toString(t = { safe: !0 }) {
168
- const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : he(
169
+ const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : pe(
169
170
  `${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`
170
171
  ).fullStr : this.origin;
171
172
  return typeof i == "number" ? Re(s, i) : s;
@@ -222,7 +223,7 @@ function te(e) {
222
223
  function Re(e, t, r = !1) {
223
224
  if (e === "")
224
225
  return "";
225
- const i = ".", { negativeStr: s, integerStr: c, decimalStr: n } = he(e), d = `${i}${n}`, u = `${s}${c}`;
226
+ const i = ".", { negativeStr: s, integerStr: c, decimalStr: n } = pe(e), d = `${i}${n}`, u = `${s}${c}`;
226
227
  if (t >= 0) {
227
228
  const m = Number(n[t]);
228
229
  if (m >= 5 && !r) {
@@ -284,8 +285,8 @@ function wt(e, t) {
284
285
  placeholder: V,
285
286
  hideControl: A,
286
287
  suffix: R,
287
- prefix: M,
288
- icons: h,
288
+ prefix: P,
289
+ icons: p,
289
290
  mode: $,
290
291
  size: g,
291
292
  step: v,
@@ -294,7 +295,7 @@ function wt(e, t) {
294
295
  max: F,
295
296
  parser: W,
296
297
  formatter: U,
297
- onBlur: P,
298
+ onBlur: M,
298
299
  onFocus: k,
299
300
  onChange: K,
300
301
  onKeyDown: X,
@@ -305,12 +306,12 @@ function wt(e, t) {
305
306
  return Math.max(N, z);
306
307
  }
307
308
  return null;
308
- })(), [_, B] = ae(() => te(
309
+ })(), [B, _] = ae(() => te(
309
310
  "value" in n ? n.value : "defaultValue" in n ? m : void 0
310
- )), [T, oe] = ae(""), [q, Q] = ae(!1), [G, j] = ae(!1), l = ie(null), b = ie(null), Y = ie(!1), S = pe(() => "value" in n ? te(n.value) : _, [n.value, _]), [Z, ee] = pe(() => [te(F), te(y)], [F, y]);
311
+ )), [T, oe] = ae(""), [q, Q] = ae(!1), [G, j] = ae(!1), l = ie(null), b = ie(null), Y = ie(!1), S = he(() => "value" in n ? te(n.value) : B, [n.value, B]), [Z, ee] = he(() => [te(F), te(y)], [F, y]);
311
312
  Ae(t, () => b.current, []);
312
313
  const xe = (o, N) => {
313
- if (B(o), !o.equals(S) && K) {
314
+ if (_(o), !o.equals(S) && K) {
314
315
  const C = o.toString({
315
316
  safe: !0,
316
317
  precision: H
@@ -349,12 +350,12 @@ function wt(e, t) {
349
350
  Qe ? yt : $t
350
351
  );
351
352
  }
352
- }, Me = pe(() => {
353
+ }, Pe = he(() => {
353
354
  let o;
354
355
  return G ? o = W ? `${W(T)}` : T : se(H) ? o = S.toString({ safe: !0, precision: H }) : S.isInvalid ? o = "" : o = S.toString(), U ? U(o, { userTyping: G, input: T }) : o;
355
356
  }, [S, T, G, H, W, U]), Ke = bt({
356
357
  inputElement: (Te = b.current) == null ? void 0 : Te.dom,
357
- inputValue: Me
358
+ inputValue: Pe
358
359
  }), Xe = {
359
360
  onChange: (o, N) => {
360
361
  j(!0), o = o.trim().replace(/。/g, ".");
@@ -370,13 +371,13 @@ function wt(e, t) {
370
371
  Y.current = !0, oe((C = (N = b.current) == null ? void 0 : N.dom) == null ? void 0 : C.value), k == null || k(o);
371
372
  },
372
373
  onBlur: (o) => {
373
- xe(ge(S), "outOfRange"), j(!1), P == null || P(o);
374
+ xe(ge(S), "outOfRange"), j(!1), M == null || M(o);
374
375
  }
375
376
  }, qe = (o) => x ? {} : {
376
377
  onMouseDown: (N) => Ie(N, o, !0)
377
- }, Pe = !A && $ === "button", Ye = !A && !x && $ === "embed", ve = (o, N) => {
378
+ }, Me = !A && $ === "button", Ye = !A && !x && $ === "embed", ve = (o, N) => {
378
379
  const C = !f && (S.isInvalid || (o === "plus" ? Z.isInvalid || S.less(Z) : ee.isInvalid || ee.less(S)));
379
- return /* @__PURE__ */ p(
380
+ return /* @__PURE__ */ h(
380
381
  "div",
381
382
  {
382
383
  className: D(`${a}-step-button`, {
@@ -389,7 +390,7 @@ function wt(e, t) {
389
390
  }
390
391
  );
391
392
  };
392
- return /* @__PURE__ */ p(
393
+ return /* @__PURE__ */ h(
393
394
  Ve,
394
395
  {
395
396
  _ignorePropsFromGlobal: !0,
@@ -416,38 +417,38 @@ function wt(e, t) {
416
417
  error: I,
417
418
  disabled: f,
418
419
  readOnly: x,
419
- value: Me,
420
+ value: Pe,
420
421
  placeholder: V,
421
- prefix: M && /* @__PURE__ */ p("div", { className: `${a}-prefix`, children: M }),
422
+ prefix: P && /* @__PURE__ */ h("div", { className: `${a}-prefix`, children: P }),
422
423
  suffix: /* @__PURE__ */ re(tt, { children: [
423
424
  Ye && /* @__PURE__ */ re("div", { className: `${a}-step-layer`, children: [
424
425
  ve(
425
426
  "plus",
426
- h && h.up ? h.up : /* @__PURE__ */ p(dt, {})
427
+ p && p.up ? p.up : /* @__PURE__ */ h(dt, {})
427
428
  ),
428
429
  ve(
429
430
  "minus",
430
- h && h.down ? h.down : /* @__PURE__ */ p(lt, {})
431
+ p && p.down ? p.down : /* @__PURE__ */ h(lt, {})
431
432
  )
432
433
  ] }),
433
- R && /* @__PURE__ */ p("div", { className: `${a}-suffix`, children: R })
434
+ R && /* @__PURE__ */ h("div", { className: `${a}-suffix`, children: R })
434
435
  ] }),
435
- addBefore: Pe && ve(
436
+ addBefore: Me && ve(
436
437
  "minus",
437
- h && h.minus ? h.minus : /* @__PURE__ */ p(ut, {})
438
+ p && p.minus ? p.minus : /* @__PURE__ */ h(ut, {})
438
439
  ),
439
- addAfter: Pe && ve(
440
+ addAfter: Me && ve(
440
441
  "plus",
441
- h && h.plus ? h.plus : /* @__PURE__ */ p(ct, {})
442
+ p && p.plus ? p.plus : /* @__PURE__ */ h(ct, {})
442
443
  )
443
444
  }
444
445
  );
445
446
  }
446
- const _e = ce.forwardRef(
447
+ const Be = ce.forwardRef(
447
448
  wt
448
449
  );
449
- _e.displayName = "InputNumber";
450
- const Be = ce.forwardRef(
450
+ Be.displayName = "InputNumber";
451
+ const _e = ce.forwardRef(
451
452
  (e, t) => {
452
453
  const [r, i] = $e(!1, {
453
454
  defaultValue: e.defaultVisibility,
@@ -480,7 +481,7 @@ const Be = ce.forwardRef(
480
481
  onPressEnter: V
481
482
  })
482
483
  };
483
- e.suffix ? E = /* @__PURE__ */ p("span", { ...A, children: e.suffix }) : E = /* @__PURE__ */ p(
484
+ e.suffix ? E = /* @__PURE__ */ h("span", { ...A, children: e.suffix }) : E = /* @__PURE__ */ h(
484
485
  r ? ft : mt,
485
486
  {
486
487
  ...A,
@@ -491,7 +492,7 @@ const Be = ce.forwardRef(
491
492
  }
492
493
  );
493
494
  }
494
- return /* @__PURE__ */ p(
495
+ return /* @__PURE__ */ h(
495
496
  Ve,
496
497
  {
497
498
  ...ye(m, ["visibility", "defaultVisibility"]),
@@ -503,7 +504,7 @@ const Be = ce.forwardRef(
503
504
  );
504
505
  }
505
506
  );
506
- Be.displayName = "Password";
507
+ _e.displayName = "Password";
507
508
  const Ge = ce.forwardRef(
508
509
  (e, t) => {
509
510
  const { getPrefixCls: r } = de(fe), {
@@ -520,40 +521,41 @@ const Ge = ce.forwardRef(
520
521
  } = e, E = le(e.maxLength) ? e.maxLength.length : e.maxLength, V = le(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [A, R] = $e("", {
521
522
  defaultValue: "defaultValue" in e ? ue(e.defaultValue, V) : void 0,
522
523
  value: "value" in e ? ue(e.value, V) : void 0
523
- }), M = r("input-search"), h = D(
524
- M,
524
+ }), P = r("input-search"), p = D(
525
+ P,
525
526
  {
526
- [`${M}-button`]: d
527
+ [`${P}-button`]: d
527
528
  },
528
529
  i
529
530
  ), $ = () => {
530
531
  var g;
531
532
  !n && ((g = e.onSearch) == null || g.call(e, A));
532
533
  };
533
- return /* @__PURE__ */ p(
534
+ return /* @__PURE__ */ h(
534
535
  Ve,
535
536
  {
536
537
  ...ye(x, ["onSearch"]),
537
538
  disabled: n,
538
- className: h,
539
+ className: p,
539
540
  style: s,
540
541
  ref: t,
541
542
  placeholder: c,
542
- addAfter: f !== void 0 ? f : d ? /* @__PURE__ */ p(
543
- ht,
543
+ addAfter: f !== void 0 ? f : d ? /* @__PURE__ */ h(
544
+ pt,
544
545
  {
545
546
  disabled: n,
546
547
  size: x.size,
547
- className: `${M}-btn`,
548
+ className: `${P}-btn`,
548
549
  type: "primary",
549
550
  onClick: $,
550
551
  loading: u,
551
552
  loadingFixedWidth: !0,
552
- icon: d === !0 && !u && /* @__PURE__ */ p(De, {}),
553
+ icon: d === !0 && !u && /* @__PURE__ */ h(De, {}),
554
+ ...e == null ? void 0 : e.searchButtonProps,
553
555
  children: d !== !0 && d
554
556
  }
555
557
  ) : null,
556
- suffix: I !== void 0 ? I : !d && (u ? /* @__PURE__ */ p(pt, {}) : /* @__PURE__ */ p(De, { onClick: $ })),
558
+ suffix: I !== void 0 ? I : !d && (u ? /* @__PURE__ */ h(ht, {}) : /* @__PURE__ */ h(De, { onClick: $ })),
557
559
  onChange: (g, v) => {
558
560
  var z;
559
561
  R(g), (z = e.onChange) == null || z.call(e, g, v);
@@ -645,14 +647,14 @@ const Vt = (e, t) => {
645
647
  onPressEnter: V,
646
648
  status: A,
647
649
  clearIcon: R,
648
- ...M
649
- } = e, h = ze(u) ? u.length : u, $ = ze(u) ? u.errorOnly ? void 0 : u.length : u, g = ie(), [v, z] = ae({}), [y, F] = $e("", {
650
+ ...P
651
+ } = e, p = ze(u) ? u.length : u, $ = ze(u) ? u.errorOnly ? void 0 : u.length : u, g = ie(), [v, z] = ae({}), [y, F] = $e("", {
650
652
  defaultValue: "defaultValue" in e ? ue(e.defaultValue, $) : void 0,
651
653
  value: "value" in e ? ue(e.value, $) : void 0
652
654
  }), {
653
655
  compositionValue: W,
654
656
  compositionHandler: U,
655
- valueChangeHandler: P,
657
+ valueChangeHandler: M,
656
658
  keyDownHandler: k,
657
659
  triggerValueChangeCallback: K
658
660
  } = ot({
@@ -674,17 +676,17 @@ const Vt = (e, t) => {
674
676
  }
675
677
  g.current.focus();
676
678
  }
677
- }, _ = () => {
679
+ }, B = () => {
678
680
  const l = Rt(
679
681
  e.autoSize,
680
682
  g.current
681
683
  );
682
684
  l && z(l);
683
- }, B = (l) => {
685
+ }, _ = (l) => {
684
686
  l.stopPropagation(), H(), K("", l), x == null || x();
685
687
  };
686
688
  ke(() => {
687
- _();
689
+ B();
688
690
  }, [X]), Ae(
689
691
  t,
690
692
  () => ({
@@ -700,7 +702,7 @@ const Vt = (e, t) => {
700
702
  }),
701
703
  []
702
704
  );
703
- const T = y ? y.length : 0, oe = h && m || f, q = pe(() => !$ && h ? T > h : !1, [T, h, $]), Q = A || (d || q ? "error" : void 0), G = D(
705
+ const T = y ? y.length : 0, oe = p && m || f, q = he(() => !$ && p ? T > p : !1, [T, p, $]), Q = A || (d || q ? "error" : void 0), G = D(
704
706
  w,
705
707
  {
706
708
  [`${w}-${Q}`]: Q,
@@ -709,10 +711,10 @@ const Vt = (e, t) => {
709
711
  [`${w}-rtl`]: a
710
712
  },
711
713
  r
712
- ), j = /* @__PURE__ */ p(
714
+ ), j = /* @__PURE__ */ h(
713
715
  "textarea",
714
716
  {
715
- ...ye(M, ["autoSize", "defaultValue"]),
717
+ ...ye(P, ["autoSize", "defaultValue"]),
716
718
  maxLength: $,
717
719
  ref: g,
718
720
  style: { ...i, ...v },
@@ -720,7 +722,7 @@ const Vt = (e, t) => {
720
722
  placeholder: c,
721
723
  disabled: n,
722
724
  value: X,
723
- onChange: P,
725
+ onChange: M,
724
726
  onKeyDown: k,
725
727
  onCompositionStart: U,
726
728
  onCompositionUpdate: U,
@@ -728,7 +730,7 @@ const Vt = (e, t) => {
728
730
  }
729
731
  );
730
732
  if (oe) {
731
- const l = !n && f && y, [b, Y] = a ? [h, T] : [T, h];
733
+ const l = !n && f && y, [b, Y] = a ? [p, T] : [T, p];
732
734
  return /* @__PURE__ */ re(
733
735
  "div",
734
736
  {
@@ -739,26 +741,26 @@ const Vt = (e, t) => {
739
741
  style: s,
740
742
  children: [
741
743
  j,
742
- l ? R !== void 0 ? /* @__PURE__ */ p(
744
+ l ? R !== void 0 ? /* @__PURE__ */ h(
743
745
  "span",
744
746
  {
745
747
  className: `${w}-clear-icon`,
746
- onClick: B,
748
+ onClick: _,
747
749
  onMouseDown: (S) => {
748
750
  S.preventDefault();
749
751
  },
750
752
  children: R
751
753
  }
752
- ) : /* @__PURE__ */ p(st, { className: `${w}-clear-icon`, children: /* @__PURE__ */ p(
754
+ ) : /* @__PURE__ */ h(st, { className: `${w}-clear-icon`, children: /* @__PURE__ */ h(
753
755
  xt,
754
756
  {
755
- onClick: B,
757
+ onClick: _,
756
758
  onMouseDown: (S) => {
757
759
  S.preventDefault();
758
760
  }
759
761
  }
760
762
  ) }) : null,
761
- h && m && /* @__PURE__ */ re(
763
+ p && m && /* @__PURE__ */ re(
762
764
  "span",
763
765
  {
764
766
  className: D(`${w}-word-limit`, {
@@ -778,14 +780,14 @@ const Vt = (e, t) => {
778
780
  return j;
779
781
  }, je = ce.forwardRef(Vt);
780
782
  je.displayName = "TextArea";
781
- const Mt = (e) => {
783
+ const Pt = (e) => {
782
784
  e.target.tagName !== "INPUT" && e.preventDefault();
783
- }, be = (e, t, r = {}, i) => t ? /* @__PURE__ */ p("span", { style: r, className: e, onClick: i, children: t }) : null;
785
+ }, be = (e, t, r = {}, i) => t ? /* @__PURE__ */ h("span", { style: r, className: e, onClick: i, children: t }) : null;
784
786
  function ue(e, t) {
785
787
  const r = e !== null && !rt(e) && !nt(e) ? String(e) : e || "";
786
788
  return t ? r.slice(0, t) : r;
787
789
  }
788
- function Pt(e, t) {
790
+ function Mt(e, t) {
789
791
  const {
790
792
  getPrefixCls: r,
791
793
  size: i,
@@ -806,8 +808,8 @@ function Pt(e, t) {
806
808
  afterStyle: V,
807
809
  height: A,
808
810
  disabled: R,
809
- maxLength: M,
810
- showWordLimit: h,
811
+ maxLength: P,
812
+ showWordLimit: p,
811
813
  allowClear: $,
812
814
  autoWidth: g
813
815
  } = n, v = g ? {
@@ -819,20 +821,20 @@ function Pt(e, t) {
819
821
  maxWidth: v == null ? void 0 : v.maxWidth,
820
822
  width: v && "auto",
821
823
  ...u
822
- }, y = le(M) ? M.length : M, F = le(M) && M.errorOnly ? void 0 : y, [W, U] = ae(!1), P = ie(), k = ie(), [K, X] = $e("", {
824
+ }, y = le(P) ? P.length : P, F = le(P) && P.errorOnly ? void 0 : y, [W, U] = ae(!1), M = ie(), k = ie(), [K, X] = $e("", {
823
825
  defaultValue: "defaultValue" in n ? ue(n.defaultValue, F) : void 0,
824
826
  value: "value" in n ? ue(n.value, F) : void 0
825
827
  });
826
- Ae(t, () => P.current, []);
828
+ Ae(t, () => M.current, []);
827
829
  const me = (l, b) => {
828
830
  var Y;
829
831
  "value" in n || X(l), (Y = n.onChange) == null || Y.call(n, l, b);
830
832
  }, a = r("input"), w = n.size || i, H = "height" in n;
831
- let _ = I;
832
- const B = K ? K.length : 0, T = pe(() => !F && y ? B > y : !1, [B, y, F]);
833
- if (y && h) {
834
- const [l, b] = c ? [y, B] : [B, y];
835
- _ = /* @__PURE__ */ re(
833
+ let B = I;
834
+ const _ = K ? K.length : 0, T = he(() => !F && y ? _ > y : !1, [_, y, F]);
835
+ if (y && p) {
836
+ const [l, b] = c ? [y, _] : [_, y];
837
+ B = /* @__PURE__ */ re(
836
838
  "span",
837
839
  {
838
840
  className: D(`${a}-word-limit`, {
@@ -851,16 +853,16 @@ function Pt(e, t) {
851
853
  `${a}-group-wrapper-${w}`,
852
854
  {
853
855
  [`${a}-custom-height`]: H,
854
- [`${a}-has-suffix`]: _,
856
+ [`${a}-has-suffix`]: B,
855
857
  [`${a}-group-wrapper-disabled`]: R,
856
858
  [`${a}-group-wrapper-rtl`]: c,
857
859
  [`${a}-group-wrapper-autowidth`]: v
858
860
  },
859
861
  d
860
- ), q = n.status || (n.error || T ? "error" : void 0), Q = m || f || _ || x, G = /* @__PURE__ */ p(
862
+ ), q = n.status || (n.error || T ? "error" : void 0), Q = m || f || B || x, G = /* @__PURE__ */ h(
861
863
  at,
862
864
  {
863
- ref: P,
865
+ ref: M,
864
866
  ...n,
865
867
  autoFitWidth: !!v,
866
868
  style: z,
@@ -888,7 +890,7 @@ function Pt(e, t) {
888
890
  [`${a}-clear-wrapper`]: $,
889
891
  [`${a}-inner-wrapper-rtl`]: c
890
892
  });
891
- return Q ? /* @__PURE__ */ p(
893
+ return Q ? /* @__PURE__ */ h(
892
894
  "div",
893
895
  {
894
896
  className: oe,
@@ -904,41 +906,41 @@ function Pt(e, t) {
904
906
  l.target.tagName !== "INPUT" && k.current && Le(k.current, l.target) && l.preventDefault();
905
907
  },
906
908
  onClick: (l) => {
907
- k.current && Le(k.current, l.target) && P.current && P.current.focus();
909
+ k.current && Le(k.current, l.target) && M.current && M.current.focus();
908
910
  },
909
911
  children: [
910
912
  be(`${a}-group-prefix`, x),
911
913
  G,
912
- be(`${a}-group-suffix`, _)
914
+ be(`${a}-group-suffix`, B)
913
915
  ]
914
916
  }
915
917
  ),
916
918
  be(`${a}-group-addafter`, f, V)
917
919
  ] })
918
920
  }
919
- ) : $ ? /* @__PURE__ */ p(
921
+ ) : $ ? /* @__PURE__ */ h(
920
922
  "span",
921
923
  {
922
924
  className: D(d, j),
923
925
  style: { ...z, ...H ? { height: A } : {} },
924
- onMouseDown: Mt,
926
+ onMouseDown: Pt,
925
927
  onClick: () => {
926
- P.current && P.current.focus();
928
+ M.current && M.current.focus();
927
929
  },
928
930
  children: G
929
931
  }
930
932
  ) : G;
931
933
  }
932
- const O = ce.forwardRef(Pt);
934
+ const O = ce.forwardRef(Mt);
933
935
  O.displayName = "Input";
934
936
  O.Search = Ge;
935
937
  O.TextArea = je;
936
- O.Password = Be;
937
- O.Number = O.InputNumber = _e;
938
+ O.Password = _e;
939
+ O.Number = O.InputNumber = Be;
938
940
  O.Tag = O.InputTag = Nt;
939
941
  O.Group = He;
940
942
  const Ve = O;
941
943
  export {
942
944
  Ve as I,
943
- _e as a
945
+ Be as a
944
946
  };
@@ -6,13 +6,13 @@ import je from "@unicom-cloud/icons/IconUiCheck";
6
6
  import Ue from "@unicom-cloud/icons/IconUiLeft";
7
7
  import We from "@unicom-cloud/icons/IconUiLoading";
8
8
  import Ke from "@unicom-cloud/icons/IconUiRight";
9
- import { isEmptyValue as ze, isEmptyArray as qe } from "@unicom-cloud/utils/is";
10
- import we from "lodash/isArray";
9
+ import { isPlainObject as we, isEmptyValue as ze, isEmptyArray as qe } from "@unicom-cloud/utils/is";
10
+ import _e from "lodash/isArray";
11
11
  import W from "lodash/isFunction";
12
12
  import oe from "lodash/isPlainObject";
13
13
  import Y from "lodash/isString";
14
14
  import Je, { useRef as z, useState as le, useCallback as se, useEffect as Z, forwardRef as Ge, useContext as Qe, useImperativeHandle as Xe } from "react";
15
- import { a as Ye } from "./z7sBNzI4.js";
15
+ import { a as Ye } from "./Lyg-9NEt.js";
16
16
  import ue from "../hooks/useForceUpdate.js";
17
17
  import Ze from "../hooks/useId.js";
18
18
  import et from "../hooks/useMergeProps.js";
@@ -21,15 +21,15 @@ import re from "../hooks/useUpdateEffect.js";
21
21
  import tt from "../SelectView.js";
22
22
  import nt from "../Trigger.js";
23
23
  import q from "@unicom-cloud/utils/class-name";
24
- import { Enter as he, ArrowLeft as rt, ArrowRight as lt, ArrowUp as _e, ArrowDown as ae, Esc as fe, Tab as st } from "../utils/keyCode.js";
25
- import { j as at, P as it } from "./uUGMUxt_.js";
24
+ import { Enter as he, ArrowLeft as rt, ArrowRight as lt, ArrowUp as Oe, ArrowDown as ae, Esc as fe, Tab as st } from "../utils/keyCode.js";
25
+ import { b as at, P as it } from "./DQ3uFRJD.js";
26
26
  import me from "lodash/isEqualWith";
27
27
  import ee from "lodash/get";
28
28
  import { y as ct } from "./CiZVOdJ3.js";
29
- import { C as Oe } from "./Ct7mcZuW.js";
29
+ import { C as Le } from "./B8IzaBdN.js";
30
30
  import ot from "../hooks/useIsFirstRender.js";
31
- import { on as Le, off as de } from "../utils/dom.js";
32
- import { isObject as Pe } from "../utils/is.js";
31
+ import { on as Pe, off as de } from "../utils/dom.js";
32
+ import "../utils/is.js";
33
33
  import { V as xe } from "./CiEln_Q1.js";
34
34
  import dt from "../hooks/useRefs.js";
35
35
  function ut(t, e) {
@@ -184,7 +184,7 @@ class ht {
184
184
  const e = !this.config.changeOnSelect;
185
185
  this.flatNodes = [];
186
186
  const n = (l) => {
187
- l && ((!e || l.isLeaf) && this.flatNodes.push(l), we(l.children) && l.children.forEach((a) => {
187
+ l && ((!e || l.isLeaf) && this.flatNodes.push(l), _e(l.children) && l.children.forEach((a) => {
188
188
  n(a);
189
189
  }));
190
190
  };
@@ -308,7 +308,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
308
308
  const { prefixCls: e, multiple: n, option: l, renderOption: a, selected: c, icons: r } = t, k = l.disabled || n && l.disableCheckbox;
309
309
  return /* @__PURE__ */ X(ne, { children: [
310
310
  n ? /* @__PURE__ */ g(
311
- Oe,
311
+ Le,
312
312
  {
313
313
  disabled: k,
314
314
  checked: l._checked,
@@ -403,7 +403,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
403
403
  break;
404
404
  }
405
405
  case ae.key:
406
- case _e.key: {
406
+ case Oe.key: {
407
407
  if (!h)
408
408
  C = bt(O);
409
409
  else {
@@ -450,7 +450,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
450
450
  }, [t.popupVisible]), Z(() => {
451
451
  const s = t.getTriggerElement();
452
452
  if (s)
453
- return t.popupVisible ? Le(s, "keydown", p) : de(s, "keydown", p), () => {
453
+ return t.popupVisible ? Pe(s, "keydown", p) : de(s, "keydown", p), () => {
454
454
  de(s, "keydown", p);
455
455
  };
456
456
  }, [t.popupVisible, p]);
@@ -506,7 +506,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
506
506
  data: s,
507
507
  isStaticItemHeight: !0,
508
508
  itemKey: "value",
509
- ...Pe(t.virtualListProps) ? t.virtualListProps : {},
509
+ ...we(t.virtualListProps) ? t.virtualListProps : {},
510
510
  wrapper: "ul",
511
511
  role: "menu",
512
512
  ref: (o) => n(o, u),
@@ -641,7 +641,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
641
641
  case fe.key:
642
642
  return (D = t.onEsc) == null || D.call(t), !1;
643
643
  case ae.key:
644
- case _e.key: {
644
+ case Oe.key: {
645
645
  h.current = !0;
646
646
  const w = ae.key === p ? 1 : -1;
647
647
  let $ = Se(
@@ -662,7 +662,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
662
662
  }
663
663
  }
664
664
  };
665
- return Le(f, "keydown", L), () => {
665
+ return Pe(f, "keydown", L), () => {
666
666
  de(f, "keydown", L);
667
667
  };
668
668
  }, [N, O, x]), Z(() => {
@@ -684,7 +684,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
684
684
  data: N,
685
685
  isStaticItemHeight: !0,
686
686
  threshold: t.virtualListProps ? 100 : null,
687
- ...Pe(t.virtualListProps) ? t.virtualListProps : {},
687
+ ...we(t.virtualListProps) ? t.virtualListProps : {},
688
688
  onMouseMove: () => {
689
689
  h.current = !1;
690
690
  },
@@ -720,7 +720,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
720
720
  onMouseLeave: () => {
721
721
  !h.current && !f.disabled && j(_ ? 0 : -1);
722
722
  },
723
- children: /* @__PURE__ */ g("div", { className: `${n}-list-item-label`, children: W(t.renderOption) ? $ : l ? /* @__PURE__ */ g(Oe, { checked: D, disabled: f.disabled, children: $ }) : /* @__PURE__ */ X(ne, { children: [
723
+ children: /* @__PURE__ */ g("div", { className: `${n}-list-item-label`, children: W(t.renderOption) ? $ : l ? /* @__PURE__ */ g(Le, { checked: D, disabled: f.disabled, children: $ }) : /* @__PURE__ */ X(ne, { children: [
724
724
  $,
725
725
  D && /* @__PURE__ */ g("span", { className: `${n}-check-icon`, children: b.checked })
726
726
  ] }) })
@@ -821,7 +821,7 @@ function wt(t, e) {
821
821
  (i) => {
822
822
  var y;
823
823
  const m = pe([i])[0] || [];
824
- let v, M = we(i) ? i.map((R) => String(R)) : [];
824
+ let v, M = _e(i) ? i.map((R) => String(R)) : [];
825
825
  return m.length && (M = m.map((R) => R.label)), W(_) ? v = _(M) : M.every((R) => Y(R)) ? v = M.join(" / ") : v = M.reduce((R, B, ce) => R.concat(ce === 0 ? [B] : [" / ", B]), []), {
826
826
  text: v || "",
827
827
  disabled: (y = m[m.length - 1]) == null ? void 0 : y.disabled