@unicom-cloud/ui 0.8.52 → 0.8.54

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 (133) 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 +2 -2
  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/{DUX5Hw8l.js → BC0PujUD.js} +3 -3
  80. package/chunk/{Ct7mcZuW.js → BH5fVprw.js} +1 -1
  81. package/chunk/{I0bfWb5y.js → BUQBof6z.js} +95 -93
  82. package/chunk/{DWGwYNvC.js → BdJcAQ0Q.js} +2 -2
  83. package/chunk/{CQvJK4kb.js → BmtF7P8U.js} +12 -12
  84. package/chunk/{DfvdYCUz.js → BzMYgxgO.js} +1 -1
  85. package/chunk/{n58kSv9T.js → BzqZZHGK.js} +11 -5
  86. package/chunk/{5PpvDpEt.js → C3I_L73_.js} +2 -2
  87. package/chunk/{CkIWpIl6.js → CIc4yo9k.js} +1 -1
  88. package/chunk/{dhljdm11.js → CK0H_Yi4.js} +64 -63
  89. package/chunk/{BXZYc88i.js → CTSIr-Pr.js} +3 -3
  90. package/chunk/{4XXtB4ZV.js → CqcZfQQ4.js} +1 -1
  91. package/chunk/{Cku5-xbe.js → CzTYWtfa.js} +47 -46
  92. package/chunk/DG7VgAhL.js +445 -0
  93. package/chunk/DQ3uFRJD.js +892 -0
  94. package/chunk/{DG5zSZDd.js → DTgc2wl4.js} +2 -2
  95. package/chunk/{9AJ-uN8F.js → DZGcv_9A.js} +1 -1
  96. package/chunk/{CoevJNNj.js → DbtCtriE.js} +1 -1
  97. package/chunk/{tkU8zIK4.js → DdtfPvgk.js} +1 -1
  98. package/chunk/{Cw63stMm.js → Dki1RB5p.js} +18 -18
  99. package/chunk/Niaq_og8.js +970 -0
  100. package/chunk/{DCe3olyi.js → PuuHmqnW.js} +101 -99
  101. package/chunk/{BHWpeAbb.js → RL1SNlng.js} +1 -1
  102. package/chunk/{CfqAfcA3.js → RRWbBHK-.js} +2 -2
  103. package/chunk/{B9nYZhXo.js → ShWkfsJd.js} +2 -2
  104. package/chunk/i1A7W8Qt.js +277 -0
  105. package/chunk/qSJXQ1qu.js +640 -0
  106. package/chunk/{z7sBNzI4.js → xPzFRQJn.js} +33 -32
  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/modal/config.d.ts +1 -0
  117. package/types/modal/interface.d.ts +1 -0
  118. package/types/pagination/interface.d.ts +1 -0
  119. package/types/picker/InputRange.d.ts +1 -1
  120. package/types/select/Select.d.ts +1 -1
  121. package/types/tag/interface.d.ts +7 -3
  122. package/types/utils/CSSTransition.d.ts +2 -1
  123. package/types/utils/is.d.ts +4 -17
  124. package/types/version/index.d.ts +1 -1
  125. package/utils/CSSTransition.js +1 -1
  126. package/utils/contextHolder.js +1 -1
  127. package/utils/is.js +102 -104
  128. package/utils/reactDOM.js +19 -19
  129. package/chunk/C61BEbHK.js +0 -263
  130. package/chunk/DMeJAY1S.js +0 -606
  131. package/chunk/DXMtLuTP.js +0 -443
  132. package/chunk/m3_n9fBe.js +0 -961
  133. package/chunk/uUGMUxt_.js +0 -474
@@ -2,21 +2,21 @@ import { jsx as x, jsxs as it, Fragment as kt } from "react/jsx-runtime";
2
2
  import ee from "lodash/isArray";
3
3
  import St from "lodash/isFunction";
4
4
  import te, { useContext as Vt, useState as ye, useMemo as ze, useRef as j, useCallback as Ue, useEffect as K, useImperativeHandle as At } from "react";
5
- import { C as st } from "./Ct7mcZuW.js";
6
- import { a as Et } from "./z7sBNzI4.js";
5
+ import { C as st } from "./BH5fVprw.js";
6
+ import { a as Et } from "./xPzFRQJn.js";
7
7
  import Lt from "../hooks/useId.js";
8
- import Nt from "../hooks/useMergeProps.js";
8
+ import $t from "../hooks/useMergeProps.js";
9
9
  import et from "../hooks/useMergeValue.js";
10
- import $t from "../SelectView.js";
10
+ import Nt from "../SelectView.js";
11
11
  import It from "../Trigger.js";
12
12
  import ce from "@unicom-cloud/utils/class-name";
13
13
  import Pt from "../utils/getHotkeyHandler.js";
14
- import { isObject as U } from "../utils/is.js";
14
+ import "../utils/is.js";
15
15
  import { Esc as Tt, Enter as tt, Tab as nt, ArrowUp as Ft, ArrowDown as Ut } from "../utils/keyCode.js";
16
16
  import Me from "../utils/omit.js";
17
17
  import Rt from "../utils/warning.js";
18
18
  import { V as Mt } from "./CiEln_Q1.js";
19
- import { isEmptyArray as Dt } from "@unicom-cloud/utils/is";
19
+ import { isEmptyArray as Dt, isPlainObject as U } from "@unicom-cloud/utils/is";
20
20
  import ie from "lodash/get";
21
21
  import Gt from "lodash/isNil";
22
22
  import Ht from "lodash/isNumber";
@@ -53,7 +53,7 @@ function qt(l, b) {
53
53
  _isUserCreatingOption: v,
54
54
  _valueActive: G,
55
55
  _valueSelect: Q,
56
- _onMouseEnter: N,
56
+ _onMouseEnter: $,
57
57
  _onMouseLeave: H,
58
58
  _onClick: k,
59
59
  ...o
@@ -70,17 +70,17 @@ function qt(l, b) {
70
70
  },
71
71
  C
72
72
  ),
73
- onMouseEnter: ($) => {
73
+ onMouseEnter: (N) => {
74
74
  var y;
75
- N == null || N(f), (y = o.onMouseEnter) == null || y.call(o, $);
75
+ $ == null || $(f), (y = o.onMouseEnter) == null || y.call(o, N);
76
76
  },
77
- onMouseLeave: ($) => {
77
+ onMouseLeave: (N) => {
78
78
  var y;
79
- H == null || H(), (y = o.onMouseLeave) == null || y.call(o, $);
79
+ H == null || H(), (y = o.onMouseLeave) == null || y.call(o, N);
80
80
  },
81
- onClick: ($) => {
81
+ onClick: (N) => {
82
82
  var y;
83
- k == null || k(f, T), (y = o.onClick) == null || y.call(o, $);
83
+ k == null || k(f, T), (y = o.onClick) == null || y.call(o, N);
84
84
  },
85
85
  ...Me(o, [
86
86
  "_key",
@@ -160,20 +160,20 @@ function pt({
160
160
  const Q = (o) => {
161
161
  const f = ie(o, "props.value"), s = ie(o, "props.children");
162
162
  return f === void 0 && s !== null && s !== void 0 ? s.toString() : f;
163
- }, N = ({ label: o, value: f }, s, a) => !o && !f && !s ? (D++, `custom_node_${D}`) : a ? s || `group_${o}` : s || `${typeof f}_${f}` || `${o}_${L.size}`, H = (o, f) => {
163
+ }, $ = ({ label: o, value: f }, s, a) => !o && !f && !s ? (D++, `custom_node_${D}`) : a ? s || `group_${o}` : s || `${typeof f}_${f}` || `${o}_${L.size}`, H = (o, f) => {
164
164
  const s = Q(o);
165
165
  let a = !0;
166
166
  w === !0 ? a = s !== void 0 && String(s).toLowerCase().indexOf(C.toLowerCase()) !== -1 : typeof w == "function" && (a = !C || w(C, o));
167
167
  const O = L.get(s), S = (O == null ? void 0 : O._origin) === "userCreatedOptions" || (O == null ? void 0 : O._origin) === "userCreatingOption";
168
168
  if (!O || S) {
169
169
  "_key" in o.props || (o = te.cloneElement(o, {
170
- _key: N(o.props, o.key)
170
+ _key: $(o.props, o.key)
171
171
  }));
172
- const $ = L.size, y = {
172
+ const N = L.size, y = {
173
173
  child: o,
174
174
  ...o.props,
175
175
  value: s,
176
- _index: $,
176
+ _index: N,
177
177
  _origin: f,
178
178
  _valid: a
179
179
  };
@@ -186,7 +186,7 @@ function pt({
186
186
  );
187
187
  ne > -1 && (a ? v[ne] = o : v.splice(ne, 1));
188
188
  } else
189
- M.push(s), a && (v.push(o), y.disabled || G.push($));
189
+ M.push(s), a && (v.push(o), y.disabled || G.push(N));
190
190
  }
191
191
  typeof o.props.children != "string" && (B = !0);
192
192
  }, k = (o, f) => {
@@ -198,7 +198,7 @@ function pt({
198
198
  const a = /* @__PURE__ */ x(
199
199
  De,
200
200
  {
201
- _key: N(s),
201
+ _key: $(s),
202
202
  value: s.value,
203
203
  disabled: s.disabled === !0,
204
204
  extra: s.extra,
@@ -222,14 +222,14 @@ function pt({
222
222
  a.length && (v.push(
223
223
  te.cloneElement(o, {
224
224
  children: null,
225
- _key: N(o.props, o.key, !0)
225
+ _key: $(o.props, o.key, !0)
226
226
  })
227
227
  ), v = v.concat(a), G = G.concat(
228
228
  O
229
229
  ), J = !0, B = B || S);
230
230
  } else at(o) ? H(o, "children") : Re(o) && o.props && v.push(
231
231
  te.cloneElement(o, {
232
- _key: N(o.props, o.key)
232
+ _key: $(o.props, o.key)
233
233
  })
234
234
  );
235
235
  }), k(b, "options"), k(R, "userCreatedOptions"), {
@@ -254,7 +254,7 @@ const ot = "userCreatingOption", Yt = {
254
254
  }, Zt = { bottom: 4 };
255
255
  function zt(l, b) {
256
256
  var Xe;
257
- const { getPrefixCls: w, renderEmpty: C, componentConfig: R, rtl: T } = Vt(Et), u = Nt(
257
+ const { getPrefixCls: w, renderEmpty: C, componentConfig: R, rtl: T } = Vt(Et), u = $t(
258
258
  l,
259
259
  Yt,
260
260
  R == null ? void 0 : R.Select
@@ -267,7 +267,7 @@ function zt(l, b) {
267
267
  notFoundContent: v,
268
268
  showSearch: G,
269
269
  tokenSeparators: Q,
270
- options: N,
270
+ options: $,
271
271
  filterOption: H,
272
272
  labelInValue: k,
273
273
  getPopupContainer: o,
@@ -276,7 +276,7 @@ function zt(l, b) {
276
276
  triggerProps: a,
277
277
  dropdownRender: O,
278
278
  dropdownMenuStyle: S,
279
- dropdownMenuClassName: $,
279
+ dropdownMenuClassName: N,
280
280
  virtualListProps: y,
281
281
  // events
282
282
  onChange: ne,
@@ -307,14 +307,14 @@ function zt(l, b) {
307
307
  }), [le, ht] = ye(null), [ae, Ct] = ye([]), [F, re] = ye(
308
308
  ee(i) ? i[0] : i
309
309
  ), {
310
- childrenList: Ne,
310
+ childrenList: $e,
311
311
  optionInfoMap: m,
312
312
  optionValueList: W,
313
313
  optionIndexListForArrowKey: X,
314
314
  hasOptGroup: Ot,
315
315
  hasComplexLabelInOptions: yt
316
316
  } = ze(() => pt(
317
- { children: L, options: N, filterOption: H },
317
+ { children: L, options: $, filterOption: H },
318
318
  {
319
319
  prefixCls: V,
320
320
  inputValue: A,
@@ -323,16 +323,16 @@ function zt(l, b) {
323
323
  }
324
324
  ), [
325
325
  L,
326
- N,
326
+ $,
327
327
  H,
328
328
  A,
329
329
  le,
330
330
  ae
331
- ]), $e = j(null), He = j(null), E = j(null), Y = j([]), q = j(null), je = j(A), Ie = j(null), fe = j(0), Pe = j(!1), Ke = Lt(`${V}-popup-`), me = _e(i, g), Be = ze(() => {
331
+ ]), Ne = j(null), He = j(null), E = j(null), Y = j([]), q = j(null), je = j(A), Ie = j(null), fe = j(0), Pe = j(!1), Ke = Lt(`${V}-popup-`), me = _e(i, g), Be = ze(() => {
332
332
  var e, t;
333
333
  if (D) {
334
- const r = ee(i) ? i[0] : i, n = !me && ((e = m.get(r)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === ot;
335
- return n && !c ? r : W[X[0]];
334
+ const n = ee(i) ? i[0] : i, r = !me && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === ot;
335
+ return r && !c ? n : W[X[0]];
336
336
  }
337
337
  }, [
338
338
  i,
@@ -343,10 +343,10 @@ function zt(l, b) {
343
343
  me
344
344
  ]), ge = Ue(
345
345
  (e, t) => {
346
- var n;
347
- const r = m.get(e);
348
- $e.current && ((n = r == null ? void 0 : r.child) != null && n.props) && $e.current.scrollTo({
349
- key: r.child.props._key,
346
+ var r;
347
+ const n = m.get(e);
348
+ Ne.current && ((r = n == null ? void 0 : n.child) != null && r.props) && Ne.current.scrollTo({
349
+ key: n.child.props._key,
350
350
  options: t
351
351
  });
352
352
  },
@@ -358,7 +358,7 @@ function zt(l, b) {
358
358
  (e !== je.current || t !== Ie.current) && (ft(e), je.current = e, Ie.current = t, Se == null || Se(e, t));
359
359
  }, oe = (e) => {
360
360
  var t;
361
- I !== e && (gt(e), ke == null || ke(e), a && ((t = a.onVisibleChange) == null || t.call(a, e)));
361
+ I !== e && (gt(e), ke == null || ke(e), (t = a == null ? void 0 : a.onVisibleChange) == null || t.call(a, e));
362
362
  };
363
363
  K(() => {
364
364
  g ? Array.isArray(i) || Le(i === void 0 ? [] : [i]) : Array.isArray(i) && Le(i.length === 0 ? void 0 : i[0]);
@@ -372,7 +372,7 @@ function zt(l, b) {
372
372
  (q.current === "up" || q.current === "down") && (ge(F), q.current = "none");
373
373
  }, [F]), K(() => {
374
374
  re(Be);
375
- }, [JSON.stringify(Ne.map((e) => {
375
+ }, [JSON.stringify($e.map((e) => {
376
376
  var t;
377
377
  return (t = e == null ? void 0 : e.props) == null ? void 0 : t.value;
378
378
  }))]), K(() => {
@@ -383,19 +383,19 @@ function zt(l, b) {
383
383
  if (_e(i, g))
384
384
  e = [];
385
385
  else {
386
- const r = Array.isArray(i) ? i : [i], n = r.filter((p) => {
386
+ const n = Array.isArray(i) ? i : [i], r = n.filter((p) => {
387
387
  var P;
388
388
  const h = m.get(p) || ((P = Y.current.find((d) => d.value === p)) == null ? void 0 : P.option);
389
389
  return !h || h._origin === ot;
390
390
  }).map((p) => he(p));
391
391
  e = ae.filter((p) => {
392
392
  const h = U(p) ? p.value : p;
393
- return r.indexOf(h) !== -1;
393
+ return n.indexOf(h) !== -1;
394
394
  }).concat(
395
- n
395
+ r
396
396
  );
397
397
  }
398
- const t = (r) => r.map((n) => U(n) ? n.value : n).toString();
398
+ const t = (n) => n.map((r) => U(r) ? r.value : r).toString();
399
399
  t(e) !== t(ae) && Ct(e);
400
400
  }
401
401
  }, [i, _, g, he]), K(() => {
@@ -410,13 +410,13 @@ function zt(l, b) {
410
410
  (e) => {
411
411
  const t = m.get(e);
412
412
  if (t) {
413
- const n = Y.current.findIndex(
413
+ const r = Y.current.findIndex(
414
414
  (c) => c.value === e
415
415
  );
416
- return n > -1 ? Y.current.splice(n, 1, { value: e, option: t }) : Y.current.push({ value: e, option: t }), t;
416
+ return r > -1 ? Y.current.splice(r, 1, { value: e, option: t }) : Y.current.push({ value: e, option: t }), t;
417
417
  }
418
- const r = Y.current.find((n) => n.value === e);
419
- return r && r.option;
418
+ const n = Y.current.find((r) => r.value === e);
419
+ return n && n.option;
420
420
  },
421
421
  [m]
422
422
  ), Qe = (e) => {
@@ -424,11 +424,11 @@ function zt(l, b) {
424
424
  return;
425
425
  if (F === void 0 || !m.has(F))
426
426
  return W[X[0]];
427
- const r = m.get(F)._index, n = X.indexOf(r), c = X.length;
428
- return W[X[((e === "up" ? n - 1 : n + 1) + c) % c]];
427
+ const n = m.get(F)._index, r = X.indexOf(n), c = X.length;
428
+ return W[X[((e === "up" ? r - 1 : r + 1) + c) % c]];
429
429
  }, Ce = (e, t = _e(e, g)) => {
430
- let r = e;
431
- const n = e === void 0 ? void 0 : Array.isArray(e) ? e.map(ue) : ue(e);
430
+ let n = e;
431
+ const r = e === void 0 ? void 0 : Array.isArray(e) ? e.map(ue) : ue(e);
432
432
  if (k && !t) {
433
433
  const c = (p, h) => {
434
434
  if (h)
@@ -441,15 +441,15 @@ function zt(l, b) {
441
441
  } else if (U(P) && P.value === p)
442
442
  return P.label;
443
443
  };
444
- Array.isArray(e) ? r = e.map((p, h) => ({
444
+ Array.isArray(e) ? n = e.map((p, h) => ({
445
445
  value: p,
446
- label: c(p, n[h])
447
- })) : r = {
446
+ label: c(p, r[h])
447
+ })) : n = {
448
448
  value: e,
449
- label: c(e, n)
449
+ label: c(e, r)
450
450
  };
451
451
  }
452
- return { option: n, value: r };
452
+ return { option: r, value: n };
453
453
  }, z = (e) => {
454
454
  if (Le(e), ne) {
455
455
  const t = Ce(e);
@@ -457,13 +457,13 @@ function zt(l, b) {
457
457
  }
458
458
  }, We = (e, t) => {
459
459
  if (t === "remove" || t === "add" && m.get(e)) {
460
- const r = t === "add" ? i.concat(e) : i.filter((c) => c !== e), n = t === "add" ? se : de;
461
- if (z(r), typeof n == "function") {
460
+ const n = t === "add" ? i.concat(e) : i.filter((c) => c !== e), r = t === "add" ? se : de;
461
+ if (z(n), typeof r == "function") {
462
462
  const c = Ce(
463
463
  e,
464
464
  !1
465
465
  );
466
- n(
466
+ r(
467
467
  c.value,
468
468
  c.option
469
469
  );
@@ -511,15 +511,15 @@ function zt(l, b) {
511
511
  ])
512
512
  ), _t = () => {
513
513
  var h, P;
514
- const e = (a == null ? void 0 : a.autoAlignPopupWidth) === !1 && (!((h = a == null ? void 0 : a.style) != null && h.width) || ((P = a == null ? void 0 : a.style) == null ? void 0 : P.width) === "auto"), t = e && yt, r = "notFoundContent" in u ? v : C("Select"), n = Ne.length ? /* @__PURE__ */ x(
514
+ const e = (a == null ? void 0 : a.autoAlignPopupWidth) === !1 && (!((h = a == null ? void 0 : a.style) != null && h.width) || ((P = a == null ? void 0 : a.style) == null ? void 0 : P.width) === "auto"), t = e && yt, n = "notFoundContent" in u ? v : C("Select"), r = $e.length ? /* @__PURE__ */ x(
515
515
  Mt,
516
516
  {
517
517
  id: Ke,
518
518
  role: "listbox",
519
519
  style: S,
520
- className: ce(`${V}-popup-inner`, $),
521
- ref: $e,
522
- data: Ne,
520
+ className: ce(`${V}-popup-inner`, N),
521
+ ref: Ne,
522
+ data: $e,
523
523
  height: null,
524
524
  isStaticItemHeight: !Ot,
525
525
  measureLongestItem: e,
@@ -559,26 +559,25 @@ function zt(l, b) {
559
559
  return d;
560
560
  }
561
561
  }
562
- ) : null, p = r && !(_ && A) ? /* @__PURE__ */ x(
562
+ ) : null, p = n && !(_ && A) ? /* @__PURE__ */ x(
563
563
  "div",
564
564
  {
565
565
  style: S,
566
- className: ce(`${V}-popup-inner`, $),
567
- children: r
566
+ className: ce(`${V}-popup-inner`, N),
567
+ children: n
568
568
  }
569
569
  ) : null;
570
570
  return /* @__PURE__ */ it(
571
571
  "div",
572
572
  {
573
573
  className: ce(`${V}-popup`, {
574
- [`${V}-popup-hidden`]: n === null && p === null,
574
+ [`${V}-popup-hidden`]: r === null && p === null,
575
575
  [`${V}-popup-multiple`]: g
576
576
  }),
577
577
  tabIndex: -1,
578
578
  onKeyDown: (d) => Oe(d),
579
579
  children: [
580
- !!g && !!n && // 潘启宝新增
581
- /* @__PURE__ */ x(kt, { children: /* @__PURE__ */ x(
580
+ !!g && !!r && /* @__PURE__ */ x(kt, { children: /* @__PURE__ */ x(
582
581
  st,
583
582
  {
584
583
  "aria-hidden": "true",
@@ -591,7 +590,7 @@ function zt(l, b) {
591
590
  children: "全选"
592
591
  }
593
592
  ) }),
594
- typeof O == "function" ? O(n || p) : n || p
593
+ typeof O == "function" ? O(r || p) : r || p
595
594
  ]
596
595
  }
597
596
  );
@@ -600,13 +599,13 @@ function zt(l, b) {
600
599
  const t = e.split(new RegExp(`[${Q.join("")}]`));
601
600
  if (t.length > 1) {
602
601
  fe.current = Date.now();
603
- const r = t.filter(
602
+ const n = t.filter(
604
603
  (p, h) => p && t.indexOf(p) === h
605
- ), n = i.slice(0);
604
+ ), r = i.slice(0);
606
605
  let c = !1;
607
- r.forEach((p) => {
608
- n.indexOf(p) === -1 && (_ || m.get(p)) && (n.push(p), c = !0);
609
- }), c && z(n);
606
+ n.forEach((p) => {
607
+ r.indexOf(p) === -1 && (_ || m.get(p)) && (r.push(p), c = !0);
608
+ }), c && z(r);
610
609
  }
611
610
  }
612
611
  return !!fe.current;
@@ -617,11 +616,11 @@ function zt(l, b) {
617
616
  },
618
617
  onKeyDown: (e) => {
619
618
  if (e.target.tagName === "INPUT" && e.target.value) {
620
- const t = e.key === nt.key, r = e.key === tt.key;
621
- if (r || t) {
622
- const n = r ? `
619
+ const t = e.key === nt.key, n = e.key === tt.key;
620
+ if (n || t) {
621
+ const r = n ? `
623
622
  ` : t ? " " : "";
624
- Te(e.target.value + n) && Z("", "tokenSeparator");
623
+ Te(e.target.value + r) && Z("", "tokenSeparator");
625
624
  }
626
625
  }
627
626
  Oe(e), Ae == null || Ae(e);
@@ -633,14 +632,14 @@ function zt(l, b) {
633
632
  Te(e.clipboardData.getData("text")), Ve == null || Ve(e);
634
633
  },
635
634
  // Option Items
636
- onRemoveCheckedItem: (e, t, r) => {
637
- r.stopPropagation(), We(i[t], "remove");
635
+ onRemoveCheckedItem: (e, t, n) => {
636
+ n.stopPropagation(), We(i[t], "remove");
638
637
  },
639
638
  onClear: (e) => {
640
639
  if (e.stopPropagation(), g) {
641
- const t = i.filter((r) => {
642
- const n = m.get(r);
643
- return n && n.disabled;
640
+ const t = i.filter((n) => {
641
+ const r = m.get(n);
642
+ return r && r.disabled;
644
643
  });
645
644
  z(t);
646
645
  } else
@@ -651,7 +650,7 @@ function zt(l, b) {
651
650
  At(
652
651
  b,
653
652
  () => {
654
- var e, t;
653
+ var e;
655
654
  return {
656
655
  dom: (e = E.current) == null ? void 0 : e.dom,
657
656
  focus() {
@@ -663,9 +662,12 @@ function zt(l, b) {
663
662
  hotkeyHandler: Oe,
664
663
  activeOptionValue: F,
665
664
  getOptionInfoByValue: ue,
666
- getOptionInfoList: () => [...m.values()].filter((r) => r._valid),
665
+ getOptionInfoList: () => [...m.values()].filter((t) => t._valid),
667
666
  scrollIntoView: ge,
668
- getRootDOMNode: (t = E.current) == null ? void 0 : t.getRootDOMNode
667
+ getRootDOMNode() {
668
+ var t, n;
669
+ return (n = (t = E.current) == null ? void 0 : t.getRootDOMNode) == null ? void 0 : n.call(t);
670
+ }
669
671
  };
670
672
  },
671
673
  [
@@ -704,14 +706,14 @@ function zt(l, b) {
704
706
  var t;
705
707
  let e;
706
708
  return (t = E.current) != null && t.dom && (e = new ResizeObserver(() => {
707
- var r, n;
708
- (n = (r = He.current) == null ? void 0 : r.updatePopupPosition) == null || n.call(r);
709
+ var n, r;
710
+ (r = (n = He.current) == null ? void 0 : n.updatePopupPosition) == null || r.call(n);
709
711
  }), e.observe(E.current.dom)), () => {
710
- var r, n, c;
711
- (r = E.current) != null && r.dom && ((n = e == null ? void 0 : e.unobserve) == null || n.call(e, E.current.dom)), (c = e == null ? void 0 : e.disconnect) == null || c.call(e), e = null;
712
+ var n, r, c;
713
+ (n = E.current) != null && n.dom && ((r = e == null ? void 0 : e.unobserve) == null || r.call(e, E.current.dom)), (c = e == null ? void 0 : e.disconnect) == null || c.call(e), e = null;
712
714
  };
713
715
  }, [(Xe = E.current) == null ? void 0 : Xe.dom]), Fe != null ? Je(Fe) : /* @__PURE__ */ x(
714
- $t,
716
+ Nt,
715
717
  {
716
718
  ...u,
717
719
  ...bt,
@@ -728,28 +730,28 @@ function zt(l, b) {
728
730
  onSort: z,
729
731
  renderText: (e) => {
730
732
  const t = ue(e);
731
- let r = e;
733
+ let n = e;
732
734
  if (St(M)) {
733
- const n = Ce(e, !1);
734
- r = M(
735
- n.option || null,
736
- n.value
735
+ const r = Ce(e, !1);
736
+ n = M(
737
+ r.option || null,
738
+ r.value
737
739
  );
738
740
  } else {
739
- let n = !1;
741
+ let r = !1;
740
742
  if (k) {
741
743
  const c = u.value || u.defaultValue;
742
744
  if (Array.isArray(c)) {
743
745
  const p = c.find(
744
746
  (h) => U(h) && h.value === e
745
747
  );
746
- p && (r = p.label, n = !0);
747
- } else U(c) && (r = c.label, n = !0);
748
+ p && (n = p.label, r = !0);
749
+ } else U(c) && (n = c.label, r = !0);
748
750
  }
749
- !n && t && "children" in t && (r = t.children);
751
+ !r && t && "children" in t && (n = t.children);
750
752
  }
751
753
  return {
752
- text: r,
754
+ text: n,
753
755
  disabled: t && t.disabled
754
756
  };
755
757
  },
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as g, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
3
- import { a as h } from "./z7sBNzI4.js";
3
+ import { a as h } from "./xPzFRQJn.js";
4
4
  import x from "../hooks/use-watermark.js";
5
5
  import k from "../hooks/useMergeProps.js";
6
6
  import w from "@unicom-cloud/utils/class-name";
@@ -2,7 +2,7 @@ import { jsx as u, jsxs as et } from "react/jsx-runtime";
2
2
  import ft from "lodash/isFunction";
3
3
  import kt from "lodash/isPlainObject";
4
4
  import F, { useContext as nt, useRef as j, useState as wt, useEffect as Y, useMemo as at, useCallback as ce, useImperativeHandle as le } from "react";
5
- import { a as mt, I as pt } from "./z7sBNzI4.js";
5
+ import { a as mt, I as pt } from "./xPzFRQJn.js";
6
6
  import se from "../hooks/useId.js";
7
7
  import fe from "../hooks/useMergeProps.js";
8
8
  import de from "../hooks/useMergeValue.js";
@@ -17,7 +17,7 @@ import { setTransformStyle as me } from "../utils/style.js";
17
17
  import jt from "@unicom-cloud/icons/IconUiDown";
18
18
  import Ut from "lodash/isNull";
19
19
  import pe from "../Dropdown.js";
20
- import { M as Mt } from "./DUX5Hw8l.js";
20
+ import { M as Mt } from "./BC0PujUD.js";
21
21
  import ge from "lodash/isEqualWith";
22
22
  import be from "../utils/throttleByRaf.js";
23
23
  import Et from "@unicom-cloud/icons/IconUiLeft";
@@ -1,8 +1,8 @@
1
1
  import { jsx as N, jsxs as b } from "react/jsx-runtime";
2
2
  import { forwardRef as w, useContext as R, useRef as F, Fragment as j, createElement as z } from "react";
3
- import { a as D } from "./z7sBNzI4.js";
3
+ import { a as D } from "./xPzFRQJn.js";
4
4
  import E from "../hooks/useMergeProps.js";
5
- import { I as K } from "./Cku5-xbe.js";
5
+ import { I as K } from "./CzTYWtfa.js";
6
6
  import u from "@unicom-cloud/utils/class-name";
7
7
  import L from "../hooks/use-verification-code.js";
8
8
  const M = {