@unicom-cloud/ui 0.8.65 → 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 (112) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +3 -3
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +1 -1
  7. package/Badge.js +1 -1
  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 +4 -4
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +1 -1
  20. package/DatePicker.js +3 -3
  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 +1 -1
  28. package/Grid.js +2 -2
  29. package/Icon.js +1 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +2 -2
  32. package/Input.js +3 -3
  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 +2 -2
  40. package/Message.js +1 -1
  41. package/Modal.js +1 -1
  42. package/Notice.js +1 -1
  43. package/Notification.js +1 -1
  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 +1 -1
  54. package/Result.js +1 -1
  55. package/Select.js +2 -2
  56. package/SelectView.js +5 -4
  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 +1 -1
  64. package/Table.js +770 -767
  65. package/Tabs.js +2 -2
  66. package/Tag.js +1 -1
  67. package/TimePicker.js +3 -3
  68. package/Timeline.js +2 -2
  69. package/Tooltip.js +1 -1
  70. package/Transfer.js +3 -3
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +2 -2
  73. package/Trigger.js +1 -1
  74. package/Typography.js +1 -1
  75. package/Upload.js +2 -2
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +1 -1
  78. package/Watermark.js +1 -1
  79. package/chunk/{DlLL5JQo.js → -zpSUpGE.js} +1 -1
  80. package/chunk/{BUCEs557.js → BFipyA67.js} +1 -1
  81. package/chunk/{DIx0qmCq.js → BHgJ5Y3T.js} +2 -2
  82. package/chunk/{Dv_xRzvR.js → BIT0j3HT.js} +1 -1
  83. package/chunk/{tYXLFPVI.js → BbLKnaNO.js} +2 -2
  84. package/chunk/{CPcm9Cm5.js → Bc7t9jkb.js} +1 -1
  85. package/chunk/{BS09tn7B.js → Bfhv56O2.js} +1 -1
  86. package/chunk/{CF6p9R93.js → Bh23P4l7.js} +1 -1
  87. package/chunk/{DjtWv6Wn.js → BnSVm1YC.js} +1 -1
  88. package/chunk/{BqufsN8i.js → C6QWSzsM.js} +2 -2
  89. package/chunk/{CH1UUxsg.js → CHnFKgbk.js} +3 -3
  90. package/chunk/{DLvMA1OW.js → CPvvjMwZ.js} +1 -1
  91. package/chunk/{ewRDIDUz.js → CVkHTbic.js} +2 -2
  92. package/chunk/{CsbCHnFk.js → CZOP_ZHJ.js} +1 -1
  93. package/chunk/{DK4KcodH.js → CcV4wQB1.js} +3 -3
  94. package/chunk/{BtlvlGQN.js → CeGEvXby.js} +1 -1
  95. package/chunk/{DQDkV47j.js → CssIjN1g.js} +1 -1
  96. package/chunk/{Bqk6yh16.js → DNAigumg.js} +1 -1
  97. package/chunk/{CWgltRVL.js → DPByB1ab.js} +2 -2
  98. package/chunk/{DqFhzTWC.js → DQAot004.js} +1 -1
  99. package/chunk/{DXZEpA3t.js → DTBtQQ2H.js} +1 -1
  100. package/chunk/{1GQdnTJp.js → DV1Ab_cG.js} +1 -1
  101. package/chunk/{Dnycc1qJ.js → DnvO8A0Z.js} +2 -2
  102. package/chunk/{CIlGCedk.js → Du-bw6qA.js} +2 -2
  103. package/chunk/{BqGtwxTi.js → dBnNCOIU.js} +113 -112
  104. package/chunk/{Ek8U5CTN.js → it8qlDZ3.js} +2 -2
  105. package/chunk/{DTjcKyDN.js → jhQQCFMn.js} +2 -2
  106. package/chunk/{CGZ0In1p.js → te_43YrB.js} +22 -22
  107. package/chunk/{DG-epQqF.js → znkyQ-HR.js} +1 -1
  108. package/index.js +27 -27
  109. package/package.json +1 -1
  110. package/utils/contextHolder.js +1 -1
  111. package/utils/index.js +2 -2
  112. /package/style/{variable.less → variables.less} +0 -0
@@ -2,8 +2,8 @@ import { jsx as E, jsxs as st } 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 _e, useMemo as et, useRef as j, useCallback as Ue, useEffect as K, useImperativeHandle as At } from "react";
5
- import { C as lt } from "./DG-epQqF.js";
6
- import { d as Et } from "./DlLL5JQo.js";
5
+ import { C as lt } from "./znkyQ-HR.js";
6
+ import { d as Et } from "./-zpSUpGE.js";
7
7
  import { useId as Lt } from "../hooks/useId.js";
8
8
  import { useMergeProps as $t } from "../hooks/useMergeProps.js";
9
9
  import { useMergeValue as tt } from "../hooks/useMergeValue.js";
@@ -25,24 +25,24 @@ import jt from "lodash/isString";
25
25
  import Kt from "../utils/fillNBSP.js";
26
26
  import Bt from "../utils/getHighlightText.js";
27
27
  import U from "lodash/isPlainObject.js";
28
- function Qt(l, v) {
29
- const { prefixCls: x, label: O, ...R } = l;
28
+ function Qt(i, O) {
29
+ const { prefixCls: x, label: y, ...R } = i;
30
30
  return /* @__PURE__ */ E(
31
31
  "li",
32
32
  {
33
- ref: v,
33
+ ref: O,
34
34
  className: `${x}-group-title`,
35
35
  ...Me(R, ["_key", "children", "isSelectOptGroup"]),
36
- children: O
36
+ children: y
37
37
  }
38
38
  );
39
39
  }
40
40
  const Wt = te.forwardRef(Qt), at = Wt;
41
41
  at.__PQB_SELECT_OPTGROUP__ = !0;
42
- function qt(l, v) {
42
+ function qt(i, O) {
43
43
  const {
44
44
  style: x,
45
- className: O,
45
+ className: y,
46
46
  wrapperClassName: R,
47
47
  disabled: P,
48
48
  prefixCls: u,
@@ -58,30 +58,30 @@ function qt(l, v) {
58
58
  _onMouseLeave: H,
59
59
  _onClick: k,
60
60
  ...o
61
- } = l, f = "value" in l ? M : `${D}`, a = "children" in l ? D : `${M}`, s = J ? Q.indexOf(f) !== -1 : Q === f, b = {
61
+ } = i, f = "value" in i ? M : `${D}`, a = "children" in i ? D : `${M}`, l = J ? Q.indexOf(f) !== -1 : Q === f, v = {
62
62
  style: x,
63
63
  className: fe(
64
64
  `${u}-option`,
65
65
  {
66
- [`${u}-option-selected`]: s,
66
+ [`${u}-option-selected`]: l,
67
67
  [`${u}-option-disabled`]: P,
68
68
  [`${u}-option-hover`]: f === G,
69
69
  [`${u}-option-empty`]: !a && a !== 0 || typeof a == "string" && /^\s*$/.test(a),
70
70
  [`${u}-option-rtl`]: L
71
71
  },
72
- O
72
+ y
73
73
  ),
74
74
  onMouseEnter: (I) => {
75
- var y;
76
- $ == null || $(f), (y = o.onMouseEnter) == null || y.call(o, I);
75
+ var _;
76
+ $ == null || $(f), (_ = o.onMouseEnter) == null || _.call(o, I);
77
77
  },
78
78
  onMouseLeave: (I) => {
79
- var y;
80
- H == null || H(), (y = o.onMouseLeave) == null || y.call(o, I);
79
+ var _;
80
+ H == null || H(), (_ = o.onMouseLeave) == null || _.call(o, I);
81
81
  },
82
82
  onClick: (I) => {
83
- var y;
84
- k == null || k(f, P), (y = o.onClick) == null || y.call(o, I);
83
+ var _;
84
+ k == null || k(f, P), (_ = o.onClick) == null || _.call(o, I);
85
85
  },
86
86
  ...Me(o, [
87
87
  "_key",
@@ -92,9 +92,9 @@ function qt(l, v) {
92
92
  "onMouseLeave"
93
93
  ])
94
94
  }, h = {
95
- ref: v,
95
+ ref: O,
96
96
  role: "option",
97
- "aria-selected": s
97
+ "aria-selected": l
98
98
  };
99
99
  return B && Object.assign(h, { "data-user-created": !0 }), w && Object.assign(h, { "data-user-creating": !0 }), J ? /* @__PURE__ */ st(
100
100
  "li",
@@ -103,7 +103,7 @@ function qt(l, v) {
103
103
  className: fe(
104
104
  `${u}-option-wrapper`,
105
105
  {
106
- [`${u}-option-wrapper-selected`]: s,
106
+ [`${u}-option-wrapper-selected`]: l,
107
107
  [`${u}-option-wrapper-disabled`]: P
108
108
  },
109
109
  R
@@ -114,41 +114,42 @@ function qt(l, v) {
114
114
  {
115
115
  "aria-hidden": "true",
116
116
  className: `${u}-checkbox`,
117
- checked: s,
117
+ checked: l,
118
118
  disabled: P,
119
- onChange: b.onClick
119
+ onChange: v.onClick
120
120
  }
121
121
  ),
122
- /* @__PURE__ */ E("span", { ...b, children: a })
122
+ /* @__PURE__ */ E("span", { ...v, children: a })
123
123
  ]
124
124
  }
125
- ) : /* @__PURE__ */ E("li", { ...h, ...b, children: a });
125
+ ) : /* @__PURE__ */ E("li", { ...h, ...v, children: a });
126
126
  }
127
127
  const Jt = te.forwardRef(qt), De = Jt;
128
128
  De.__PQB_SELECT_OPTION__ = !0;
129
- function Xt(l) {
130
- l && l.preventDefault();
129
+ function Xt(i) {
130
+ var O;
131
+ (O = i == null ? void 0 : i.preventDefault) == null || O.call(i);
131
132
  }
132
- function be(l, v) {
133
- return v ? !ee(l) || Dt(l) : Gt(l);
133
+ function be(i, O) {
134
+ return O ? !ee(i) || Dt(i) : Gt(i);
134
135
  }
135
- function ot(l, v, x) {
136
- return x && (v ? l = Array.isArray(l) ? l.map(
137
- (O) => Re(O) && "label" in O ? O.value : O
138
- ) : l : l = Re(l) && "label" in l ? l.value : l), be(l, v) ? v ? Array.isArray(l) ? l : [] : void 0 : l;
136
+ function ot(i, O, x) {
137
+ return x && (O ? i = Array.isArray(i) ? i.map(
138
+ (y) => Re(y) && "label" in y ? y.value : y
139
+ ) : i : i = Re(i) && "label" in i ? i.value : i), be(i, O) ? O ? Array.isArray(i) ? i : [] : void 0 : i;
139
140
  }
140
- function ut(l) {
141
- return ie(l, "props.isSelectOption") || ie(l, "type.__PQB_SELECT_OPTION__");
141
+ function ut(i) {
142
+ return ie(i, "props.isSelectOption") || ie(i, "type.__PQB_SELECT_OPTION__");
142
143
  }
143
- function pt(l) {
144
- return ie(l, "props.isSelectOptGroup") || ie(l, "type.__PQB_SELECT_OPTGROUP__");
144
+ function pt(i) {
145
+ return ie(i, "props.isSelectOptGroup") || ie(i, "type.__PQB_SELECT_OPTGROUP__");
145
146
  }
146
147
  function ct({
147
- children: l,
148
- options: v,
148
+ children: i,
149
+ options: O,
149
150
  filterOption: x
150
151
  }, {
151
- inputValue: O = "",
152
+ inputValue: y = "",
152
153
  userCreatedOptions: R,
153
154
  userCreatingOption: P,
154
155
  prefixCls: u
@@ -161,33 +162,33 @@ function ct({
161
162
  const Q = (o) => {
162
163
  const f = ie(o, "props.value"), a = ie(o, "props.children");
163
164
  return f === void 0 && a !== null && a !== void 0 ? a.toString() : f;
164
- }, $ = ({ label: o, value: f }, a, s) => !o && !f && !a ? (D++, `custom_node_${D}`) : s ? a || `group_${o}` : a || `${typeof f}_${f}` || `${o}_${L.size}`, H = (o, f, a) => {
165
- const s = Q(o);
166
- let b = !0;
167
- x === !0 ? b = s !== void 0 && String(s).toLowerCase().indexOf(O.toLowerCase()) !== -1 : typeof x == "function" && (b = !O || x(O, o, a));
168
- const h = L.get(s), I = (h == null ? void 0 : h._origin) === "userCreatedOptions" || (h == null ? void 0 : h._origin) === "userCreatingOption";
165
+ }, $ = ({ label: o, value: f }, a, l) => !o && !f && !a ? (D++, `custom_node_${D}`) : l ? a || `group_${o}` : a || `${typeof f}_${f}` || `${o}_${L.size}`, H = (o, f, a) => {
166
+ const l = Q(o);
167
+ let v = !0;
168
+ x === !0 ? v = l !== void 0 && String(l).toLowerCase().indexOf(y.toLowerCase()) !== -1 : typeof x == "function" && (v = !y || x(y, o, a));
169
+ const h = L.get(l), I = (h == null ? void 0 : h._origin) === "userCreatedOptions" || (h == null ? void 0 : h._origin) === "userCreatingOption";
169
170
  if (!h || I) {
170
171
  "_key" in o.props || (o = te.cloneElement(o, {
171
172
  _key: $(o.props, o.key)
172
173
  }));
173
- const y = L.size, se = {
174
+ const _ = L.size, se = {
174
175
  child: o,
175
176
  ...o.props,
176
- value: s,
177
- _index: y,
177
+ value: l,
178
+ _index: _,
178
179
  _origin: f,
179
- _valid: b
180
+ _valid: v
180
181
  };
181
- if (L.set(s, se), I) {
182
+ if (L.set(l, se), I) {
182
183
  const le = w.findIndex(
183
184
  (ae) => {
184
185
  var ne;
185
- return ((ne = ae == null ? void 0 : ae.props) == null ? void 0 : ne.value) === s;
186
+ return ((ne = ae == null ? void 0 : ae.props) == null ? void 0 : ne.value) === l;
186
187
  }
187
188
  );
188
- le > -1 && (b ? w[le] = o : w.splice(le, 1));
189
+ le > -1 && (v ? w[le] = o : w.splice(le, 1));
189
190
  } else
190
- M.push(s), b && (w.push(o), se.disabled || G.push(y));
191
+ M.push(l), v && (w.push(o), se.disabled || G.push(_));
191
192
  }
192
193
  typeof o.props.children != "string" && (B = !0);
193
194
  }, k = (o, f) => {
@@ -196,7 +197,7 @@ function ct({
196
197
  label: a,
197
198
  value: a
198
199
  });
199
- const s = /* @__PURE__ */ E(
200
+ const l = /* @__PURE__ */ E(
200
201
  De,
201
202
  {
202
203
  _key: $(a),
@@ -206,37 +207,37 @@ function ct({
206
207
  children: Kt(a.label)
207
208
  }
208
209
  );
209
- H(s, f, a);
210
+ H(l, f, a);
210
211
  });
211
212
  };
212
- return P && k([P], "userCreatingOption"), l && te.Children.map(l, (o) => {
213
+ return P && k([P], "userCreatingOption"), i && te.Children.map(i, (o) => {
213
214
  if (pt(o)) {
214
215
  const { children: f, options: a } = o.props, {
215
- childrenList: s,
216
- optionIndexListForArrowKey: b,
216
+ childrenList: l,
217
+ optionIndexListForArrowKey: v,
217
218
  hasComplexLabelInOptions: h
218
219
  } = ct(
219
220
  { children: f, options: a, filterOption: x },
220
- { inputValue: O, prefixCls: u },
221
+ { inputValue: y, prefixCls: u },
221
222
  { optionInfoMap: L, optionValueList: M, customNodeCount: D }
222
223
  );
223
- s.length && (w.push(
224
+ l.length && (w.push(
224
225
  te.cloneElement(o, {
225
226
  children: null,
226
227
  _key: $(o.props, o.key, !0)
227
228
  })
228
- ), w = w.concat(s), G = G.concat(
229
- b
229
+ ), w = w.concat(l), G = G.concat(
230
+ v
230
231
  ), J = !0, B = B || h);
231
232
  } else ut(o) ? H(o, "children", null) : Re(o) && o.props && w.push(
232
233
  te.cloneElement(o, {
233
234
  _key: $(o.props, o.key)
234
235
  })
235
236
  );
236
- }), k(v, "options"), k(R, "userCreatedOptions"), {
237
+ }), k(O, "options"), k(R, "userCreatedOptions"), {
237
238
  childrenList: Bt({
238
239
  nodeList: w,
239
- pattern: O,
240
+ pattern: y,
240
241
  highlightClassName: `${u}-highlight`
241
242
  }),
242
243
  optionInfoMap: L,
@@ -254,10 +255,10 @@ const it = "userCreatingOption", Yt = {
254
255
  defaultActiveFirstOption: !0,
255
256
  allowCheckAll: !0
256
257
  }, Zt = { bottom: 4 };
257
- function zt(l, v) {
258
+ function zt(i, O) {
258
259
  var Ye;
259
- const { getPrefixCls: x, renderEmpty: O, componentConfig: R, rtl: P } = Vt(Et), u = $t(
260
- l,
260
+ const { getPrefixCls: x, renderEmpty: y, componentConfig: R, rtl: P } = Vt(Et), u = $t(
261
+ i,
261
262
  Yt,
262
263
  R == null ? void 0 : R.Select
263
264
  ), {
@@ -275,11 +276,11 @@ function zt(l, v) {
275
276
  getPopupContainer: o,
276
277
  trigger: f,
277
278
  triggerElement: a,
278
- triggerProps: s,
279
- dropdownRender: b,
279
+ triggerProps: l,
280
+ dropdownRender: v,
280
281
  dropdownMenuStyle: h,
281
282
  dropdownMenuClassName: I,
282
- virtualListProps: y,
283
+ virtualListProps: _,
283
284
  // events
284
285
  onChange: se,
285
286
  onSelect: le,
@@ -294,8 +295,8 @@ function zt(l, v) {
294
295
  onPaste: Ve,
295
296
  onKeyDown: Ae
296
297
  } = u;
297
- let { mode: Ee, allowCheckAll: He, allowCreate: _ } = u;
298
- Ee === "tags" && (Ee = "multiple", _ = !0, Rt(
298
+ let { mode: Ee, allowCheckAll: He, allowCreate: b } = u;
299
+ Ee === "tags" && (Ee = "multiple", b = !0, Rt(
299
300
  !0,
300
301
  `[Pqb Select] The 'tags' mode will be removed in the next major version, please use {mode: "multiple", allowCreate: true} instead.`
301
302
  ));
@@ -303,13 +304,13 @@ function zt(l, v) {
303
304
  g || (He = !1);
304
305
  const [ft, Le] = _e(
305
306
  ot(u.defaultValue, g, k)
306
- ), i = "value" in u ? ot(u.value, g, k) : ft, [V, mt, gt] = tt("", {
307
+ ), s = "value" in u ? ot(u.value, g, k) : ft, [V, mt, gt] = tt("", {
307
308
  value: "inputValue" in u ? u.inputValue || "" : void 0
308
309
  }), [N, ht] = tt(!1, {
309
310
  defaultValue: u.defaultPopupVisible,
310
- value: "popupVisible" in u ? u.popupVisible : s && "popupVisible" in s ? s.popupVisible : void 0
311
+ value: "popupVisible" in u ? u.popupVisible : l && "popupVisible" in l ? l.popupVisible : void 0
311
312
  }), [ue, Ct] = _e(null), [pe, Ot] = _e([]), [F, re] = _e(
312
- ee(i) ? i[0] : i
313
+ ee(s) ? s[0] : s
313
314
  ), {
314
315
  childrenList: $e,
315
316
  optionInfoMap: m,
@@ -332,14 +333,14 @@ function zt(l, v) {
332
333
  V,
333
334
  ue,
334
335
  pe
335
- ]), Ie = j(null), je = j(null), A = j(null), Y = j([]), q = j(null), Ke = j(V), Ne = j(null), me = j(0), Te = j(!1), Be = Lt(`${S}-popup-`), ge = be(i, g), Qe = et(() => {
336
+ ]), Ie = j(null), je = j(null), A = j(null), Y = j([]), q = j(null), Ke = j(V), Ne = j(null), me = j(0), Te = j(!1), Be = Lt(`${S}-popup-`), ge = be(s, g), Qe = et(() => {
336
337
  var e, t;
337
338
  if (D) {
338
- const n = ee(i) ? i[0] : i, r = !ge && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === it;
339
+ const n = ee(s) ? s[0] : s, r = !ge && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === it;
339
340
  return r && !c ? n : W[X[0]];
340
341
  }
341
342
  }, [
342
- i,
343
+ s,
343
344
  m,
344
345
  W,
345
346
  X,
@@ -356,20 +357,20 @@ function zt(l, v) {
356
357
  },
357
358
  [m]
358
359
  ), Ce = Ue(
359
- (e, t = !1) => U(_) && typeof (_ == null ? void 0 : _.formatter) == "function" ? _.formatter(e, t) : e,
360
- [_]
360
+ (e, t = !1) => U(b) && typeof (b == null ? void 0 : b.formatter) == "function" ? b.formatter(e, t) : e,
361
+ [b]
361
362
  ), Z = (e, t) => {
362
363
  (e !== Ke.current || t !== Ne.current) && (mt(e), Ke.current = e, Ne.current = t, Se == null || Se(e, t));
363
364
  }, oe = (e) => {
364
365
  var t;
365
- N !== e && (ht(e), ke == null || ke(e), (t = s == null ? void 0 : s.onVisibleChange) == null || t.call(s, e));
366
+ N !== e && (ht(e), ke == null || ke(e), (t = l == null ? void 0 : l.onVisibleChange) == null || t.call(l, e));
366
367
  };
367
368
  K(() => {
368
- g ? Array.isArray(i) || Le(i === void 0 ? [] : [i]) : Array.isArray(i) && Le(i.length === 0 ? void 0 : i[0]);
369
- }, [g, i]), K(() => {
369
+ g ? Array.isArray(s) || Le(s === void 0 ? [] : [s]) : Array.isArray(s) && Le(s.length === 0 ? void 0 : s[0]);
370
+ }, [g, s]), K(() => {
370
371
  if (N) {
371
372
  re(Qe);
372
- const e = ee(i) ? i[0] : i;
373
+ const e = ee(s) ? s[0] : s;
373
374
  !ge && m.has(e) && setTimeout(() => he(e));
374
375
  }
375
376
  }, [N]), K(() => {
@@ -380,14 +381,14 @@ function zt(l, v) {
380
381
  var t;
381
382
  return (t = e == null ? void 0 : e.props) == null ? void 0 : t.value;
382
383
  }))]), K(() => {
383
- Y.current = Y.current.filter((e) => g ? ee(i) && i.indexOf(e.value) > -1 : e.value === i);
384
- }, [i, g]), K(() => {
385
- if (_) {
384
+ Y.current = Y.current.filter((e) => g ? ee(s) && s.indexOf(e.value) > -1 : e.value === s);
385
+ }, [s, g]), K(() => {
386
+ if (b) {
386
387
  let e;
387
- if (be(i, g))
388
+ if (be(s, g))
388
389
  e = [];
389
390
  else {
390
- const n = Array.isArray(i) ? i : [i], r = n.filter((p) => {
391
+ const n = Array.isArray(s) ? s : [s], r = n.filter((p) => {
391
392
  var T;
392
393
  const C = m.get(p) || ((T = Y.current.find((d) => d.value === p)) == null ? void 0 : T.option);
393
394
  return !C || C._origin === it;
@@ -402,8 +403,8 @@ function zt(l, v) {
402
403
  const t = (n) => n.map((r) => U(r) ? r.value : r).toString();
403
404
  t(e) !== t(pe) && Ot(e);
404
405
  }
405
- }, [i, _, g, Ce]), K(() => {
406
- _ && Ct(
406
+ }, [s, b, g, Ce]), K(() => {
407
+ b && Ct(
407
408
  V && !m.has(V) ? Ce(V, !0) : null
408
409
  );
409
410
  }, [V, Ce]), K(() => {
@@ -461,7 +462,7 @@ function zt(l, v) {
461
462
  }
462
463
  }, qe = (e, t) => {
463
464
  if (t === "remove" || t === "add" && m.get(e)) {
464
- const n = t === "add" ? i.concat(e) : i.filter((c) => c !== e), r = t === "add" ? le : ae;
465
+ const n = t === "add" ? s.concat(e) : s.filter((c) => c !== e), r = t === "add" ? le : ae;
465
466
  if (z(n), typeof r == "function") {
466
467
  const c = Oe(
467
468
  e,
@@ -476,8 +477,8 @@ function zt(l, v) {
476
477
  }, Je = (e, t) => {
477
478
  t || (g ? (qe(
478
479
  e,
479
- i.indexOf(e) === -1 ? "add" : "remove"
480
- ), (!U(G) || !G.retainInputValueWhileSelect) && Z("", "optionChecked")) : (e !== i && z(e), setTimeout(() => {
480
+ s.indexOf(e) === -1 ? "add" : "remove"
481
+ ), (!U(G) || !G.retainInputValueWhileSelect) && Z("", "optionChecked")) : (e !== s && z(e), setTimeout(() => {
481
482
  oe(!1);
482
483
  })));
483
484
  }, ye = Tt(
@@ -515,7 +516,7 @@ function zt(l, v) {
515
516
  ])
516
517
  ), bt = () => {
517
518
  var C, T;
518
- const e = (s == null ? void 0 : s.autoAlignPopupWidth) === !1 && (!((C = s == null ? void 0 : s.style) != null && C.width) || ((T = s == null ? void 0 : s.style) == null ? void 0 : T.width) === "auto"), t = e && _t, n = "notFoundContent" in u ? w : O("Select"), r = $e.length ? /* @__PURE__ */ E(
519
+ const e = (l == null ? void 0 : l.autoAlignPopupWidth) === !1 && (!((C = l == null ? void 0 : l.style) != null && C.width) || ((T = l == null ? void 0 : l.style) == null ? void 0 : T.width) === "auto"), t = e && _t, n = "notFoundContent" in u ? w : y("Select"), r = $e.length ? /* @__PURE__ */ E(
519
520
  Mt,
520
521
  {
521
522
  id: Be,
@@ -533,8 +534,8 @@ function zt(l, v) {
533
534
  q.current = null;
534
535
  },
535
536
  onScroll: (d) => xe == null ? void 0 : xe(d.target),
536
- ...y,
537
- threshold: t ? null : y == null ? void 0 : y.threshold,
537
+ ..._,
538
+ threshold: t ? null : _ == null ? void 0 : _.threshold,
538
539
  children: (d) => {
539
540
  var Ze;
540
541
  if (pt(d))
@@ -546,10 +547,10 @@ function zt(l, v) {
546
547
  prefixCls: S,
547
548
  rtl: P,
548
549
  _valueActive: F,
549
- _valueSelect: i,
550
+ _valueSelect: s,
550
551
  _isMultipleMode: g,
551
- _isUserCreatingOption: _ && wt === ze,
552
- _isUserCreatedOption: _ && xt.indexOf(ze) > -1,
552
+ _isUserCreatingOption: b && wt === ze,
553
+ _isUserCreatedOption: b && xt.indexOf(ze) > -1,
553
554
  _onClick: Je,
554
555
  _onMouseEnter: (de) => {
555
556
  q.current === null && re(de);
@@ -563,7 +564,7 @@ function zt(l, v) {
563
564
  return d;
564
565
  }
565
566
  }
566
- ) : null, p = n && !(_ && V) ? /* @__PURE__ */ E(
567
+ ) : null, p = n && !(b && V) ? /* @__PURE__ */ E(
567
568
  "div",
568
569
  {
569
570
  style: h,
@@ -587,15 +588,15 @@ function zt(l, v) {
587
588
  {
588
589
  "aria-hidden": "true",
589
590
  className: `${S}-checkbox ${S}-checkbox-all`,
590
- checked: W.length === i.length,
591
- indeterminate: W.length !== i.length && i.length !== 0,
591
+ checked: W.length === s.length,
592
+ indeterminate: W.length !== s.length && s.length !== 0,
592
593
  onChange: (d) => {
593
594
  z(d ? [...W] : []);
594
595
  },
595
596
  children: "全选"
596
597
  }
597
598
  ),
598
- typeof b == "function" ? b(r || p) : r || p
599
+ typeof v == "function" ? v(r || p) : r || p
599
600
  ]
600
601
  }
601
602
  );
@@ -606,10 +607,10 @@ function zt(l, v) {
606
607
  me.current = Date.now();
607
608
  const n = t.filter(
608
609
  (p, C) => p && t.indexOf(p) === C
609
- ), r = i.slice(0);
610
+ ), r = s.slice(0);
610
611
  let c = !1;
611
612
  n.forEach((p) => {
612
- r.indexOf(p) === -1 && (_ || m.get(p)) && (r.push(p), c = !0);
613
+ r.indexOf(p) === -1 && (b || m.get(p)) && (r.push(p), c = !0);
613
614
  }), c && z(r);
614
615
  }
615
616
  }
@@ -638,11 +639,11 @@ function zt(l, v) {
638
639
  },
639
640
  // Option Items
640
641
  onRemoveCheckedItem: (e, t, n) => {
641
- n.stopPropagation(), qe(i[t], "remove");
642
+ n.stopPropagation(), qe(s[t], "remove");
642
643
  },
643
644
  onClear: (e) => {
644
645
  if (e.stopPropagation(), g) {
645
- const t = i.filter((n) => {
646
+ const t = s.filter((n) => {
646
647
  const r = m.get(n);
647
648
  return r && r.disabled;
648
649
  });
@@ -653,7 +654,7 @@ function zt(l, v) {
653
654
  }
654
655
  };
655
656
  At(
656
- v,
657
+ O,
657
658
  () => {
658
659
  var e;
659
660
  return {
@@ -703,10 +704,10 @@ function zt(l, v) {
703
704
  __onExited: () => {
704
705
  Te.current = !1, Z("", "optionListHide");
705
706
  },
706
- ...Me(s, ["popupVisible", "onVisibleChange"]),
707
+ ...Me(l, ["popupVisible", "onVisibleChange"]),
707
708
  children: e
708
709
  }
709
- ), Fe = typeof a == "function" ? a(Oe(i)) : a;
710
+ ), Fe = typeof a == "function" ? a(Oe(s)) : a;
710
711
  return K(() => {
711
712
  var t;
712
713
  let e;
@@ -723,12 +724,12 @@ function zt(l, v) {
723
724
  ...u,
724
725
  ...vt,
725
726
  ref: A,
726
- value: i,
727
+ value: s,
727
728
  inputValue: V,
728
729
  popupVisible: N,
729
730
  rtl: P,
730
731
  prefixCls: S,
731
- allowCreate: !!_,
732
+ allowCreate: !!b,
732
733
  ariaControls: Be,
733
734
  isEmptyValue: ge,
734
735
  isMultiple: g,
@@ -2,13 +2,13 @@ import { jsxs as F, Fragment as K, jsx as n } from "react/jsx-runtime";
2
2
  import k from "lodash/isFunction";
3
3
  import fe from "lodash/isNumber";
4
4
  import ee, { useContext as M, forwardRef as X, useState as A, useEffect as G, isValidElement as xe, useRef as te, useImperativeHandle as ge } from "react";
5
- import { d as z, I as $e } from "./DlLL5JQo.js";
5
+ import { d as z, I as $e } from "./-zpSUpGE.js";
6
6
  import { useMergeProps as Ie } from "../hooks/useMergeProps.js";
7
7
  import { y as J } from "./BAWsPQBM.js";
8
8
  import we from "../utils/omit.js";
9
9
  import de from "../utils/warning.js";
10
10
  import { _ as Pe, P as ie } from "./CLBavO5c.js";
11
- import { a as Ce } from "./DqFhzTWC.js";
11
+ import { a as Ce } from "./DQAot004.js";
12
12
  import he from "@unicom-cloud/icons/IconUiDelete";
13
13
  import Ne from "@unicom-cloud/icons/IconUiEye";
14
14
  import Fe from "@unicom-cloud/icons/IconUiImageClose";
@@ -12,7 +12,7 @@ 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 K, useState as le, useCallback as ae, useEffect as Z, forwardRef as Ge, useContext as Qe, useImperativeHandle as Xe } from "react";
15
- import { d as Ye } from "./DlLL5JQo.js";
15
+ import { d as Ye } from "./-zpSUpGE.js";
16
16
  import { useForceUpdate as ue } from "../hooks/useForceUpdate.js";
17
17
  import { useId as Ze } from "../hooks/useId.js";
18
18
  import { useMergeProps as et } from "../hooks/useMergeProps.js";
@@ -26,7 +26,7 @@ import { _ as st, P as it } from "./CLBavO5c.js";
26
26
  import me from "lodash/isEqualWith";
27
27
  import ee from "lodash/get";
28
28
  import { p as ct } from "./CANaGbGR.js";
29
- import { C as Oe } from "./DG-epQqF.js";
29
+ import { C as Oe } from "./znkyQ-HR.js";
30
30
  import { useIsFirstRender as ot } from "../hooks/useIsFirstRender.js";
31
31
  import { on as Le, off as de } from "../utils/dom.js";
32
32
  import "../utils/is.js";