@unicom-cloud/ui 0.8.60 → 0.8.62

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 (180) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +44 -40
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +7 -7
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +22 -22
  9. package/Button.js +2 -2
  10. package/Calendar.js +106 -104
  11. package/Card.js +1 -1
  12. package/Carousel.js +34 -33
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +12 -12
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +16 -16
  20. package/DatePicker.js +165 -162
  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 +9 -9
  26. package/Empty.js +2 -2
  27. package/Form.js +60 -54
  28. package/Grid.js +2 -2
  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 +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +14 -14
  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 +9 -3
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +32 -32
  45. package/PageHeader.js +23 -22
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +7 -7
  49. package/Popover.js +1 -1
  50. package/Progress.js +14 -14
  51. package/Radio.js +2 -2
  52. package/Rate.js +43 -40
  53. package/ResizeBox.js +97 -96
  54. package/Result.js +15 -15
  55. package/Select.js +1 -1
  56. package/SelectView.js +295 -249
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +25 -25
  59. package/Space.js +1 -1
  60. package/SpeechSynthesis.js +32 -29
  61. package/Spin.js +2 -2
  62. package/Statistic.js +1 -1
  63. package/Steps.js +11 -11
  64. package/Switch.js +3 -3
  65. package/Table.js +994 -991
  66. package/Tabs.js +1 -1
  67. package/Tag.js +68 -67
  68. package/TimePicker.js +17 -17
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +1 -1
  71. package/Transfer.js +47 -46
  72. package/Tree.js +2 -2
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +3 -3
  75. package/Typography.js +1 -1
  76. package/Upload.js +2 -2
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/{V6euPXVB.js → -Z968QpN.js} +257 -251
  81. package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
  82. package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
  83. package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
  84. package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
  85. package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
  86. package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
  87. package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
  88. package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
  89. package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
  90. package/chunk/BsWphzcT.js +20 -0
  91. package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
  92. package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
  93. package/chunk/C8o-VGyc.js +376 -0
  94. package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
  95. package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
  96. package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
  97. package/chunk/CT1lZ7ss.js +116 -0
  98. package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
  99. package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
  100. package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
  101. package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
  102. package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
  103. package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
  104. package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
  105. package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
  106. package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
  107. package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
  108. package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
  109. package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
  110. package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
  111. package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
  112. package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
  113. package/hooks/useMergeValue.js +1 -1
  114. package/icons.js +4 -6001
  115. package/index.js +420 -392
  116. package/locale/en-US.js +1 -1
  117. package/locale/tr-TR.js +1 -1
  118. package/package.json +1 -1
  119. package/style.css +1 -1
  120. package/types/cascader/panel/Search.d.ts +1 -1
  121. package/types/config-provider/interface.d.ts +1 -1
  122. package/types/form/interface.d.ts +1 -1
  123. package/types/index.d.ts +1 -1
  124. package/types/message/index.d.ts +2 -2
  125. package/types/notification/index.d.ts +2 -2
  126. package/types/notification-base/index.d.ts +2 -2
  127. package/types/select/interface.d.ts +1 -0
  128. package/types/select-view/interface.d.ts +1 -0
  129. package/types/table/interface.d.ts +1 -0
  130. package/types/tree/Context.d.ts +1 -0
  131. package/types/tree/Tree.d.ts +1 -1
  132. package/types/tree/index.d.ts +5 -4
  133. package/types/tree/interface.d.ts +1 -0
  134. package/types/utils/index.d.ts +1 -0
  135. package/types/utils/lodash.d.ts +14 -1
  136. package/types/version/index.d.ts +1 -1
  137. package/utils/CSSTransition.js +1 -1
  138. package/utils/caseName.js +2 -18
  139. package/utils/contextHolder.js +1 -1
  140. package/utils/index.js +220 -191
  141. package/utils/is.js +68 -67
  142. package/utils/lodash.js +32 -6
  143. package/utils/reactDOM.js +1 -1
  144. package/chunk/-LZOUh53.js +0 -29
  145. package/chunk/-jdfq71f.js +0 -23
  146. package/chunk/B0GOLsj_.js +0 -58
  147. package/chunk/B7Zsp3gO.js +0 -29
  148. package/chunk/BDjXkzNj.js +0 -23
  149. package/chunk/BHn4xgbv.js +0 -209
  150. package/chunk/BLSiP_gg.js +0 -32
  151. package/chunk/BMJfSSLX.js +0 -23
  152. package/chunk/B_nfMl0e.js +0 -116
  153. package/chunk/BcS17Pzy.js +0 -66
  154. package/chunk/BdiEwtQO.js +0 -41
  155. package/chunk/Bpug_KxP.js +0 -34
  156. package/chunk/C1u_ckwU.js +0 -29
  157. package/chunk/C43Hv2Bl.js +0 -34
  158. package/chunk/C9vsih_D.js +0 -29
  159. package/chunk/CAfR2wLq.js +0 -41
  160. package/chunk/CAfecMDF.js +0 -46
  161. package/chunk/CKp4rZnD.js +0 -207
  162. package/chunk/CV2Aqv9q.js +0 -52
  163. package/chunk/CYdarMv9.js +0 -32
  164. package/chunk/C_S5Mdvd.js +0 -379
  165. package/chunk/CmB-TL7C.js +0 -46
  166. package/chunk/D-ER56Sf.js +0 -29
  167. package/chunk/D-aYnb6u.js +0 -41
  168. package/chunk/D3xQFJcO.js +0 -23
  169. package/chunk/DJcEys80.js +0 -29
  170. package/chunk/DLIm6rRJ.js +0 -29
  171. package/chunk/DOWEHtqM.js +0 -41
  172. package/chunk/DT37l12z.js +0 -40
  173. package/chunk/DW-B7npC.js +0 -23
  174. package/chunk/D_MTFBb0.js +0 -38
  175. package/chunk/Dx_5J4fO.js +0 -29
  176. package/chunk/Dy487FZ1.js +0 -118
  177. package/chunk/Uz-rNulO.js +0 -98
  178. package/chunk/cDZI_t6o.js +0 -52
  179. package/chunk/sScV-J56.js +0 -206
  180. package/chunk/wI2I1qb0.js +0 -23
@@ -1,17 +1,17 @@
1
1
  import { jsxs as ye, jsx as E } from "react/jsx-runtime";
2
- import { G as Se, V as Ve, z as ve } from "./BBVjSFnw.js";
2
+ import { H as Se, z as ve, G as Ve } from "./Cqyp4qni.js";
3
3
  import Pe from "lodash/debounce";
4
4
  import B from "lodash/isArray";
5
5
  import W from "lodash/isFunction";
6
6
  import Ke from "lodash/isNil";
7
7
  import { forwardRef as ue, useRef as R, useCallback as K, useMemo as Z, useImperativeHandle as de, useContext as fe, useState as te, useEffect as ie } from "react";
8
- import { d as he } from "./Bdh4XVuf.js";
8
+ import { d as he } from "./CV1kLw5Z.js";
9
9
  import { useId as Ie } from "../hooks/useId.js";
10
10
  import { useIsFirstRender as _e } from "../hooks/useIsFirstRender.js";
11
11
  import { useMergeProps as Te } from "../hooks/useMergeProps.js";
12
12
  import { useMergeValue as oe } from "../hooks/useMergeValue.js";
13
13
  import Oe from "../SelectView.js";
14
- import { T as w, g as xe, a as Le, b as Re } from "./DpfUGhi4.js";
14
+ import { T as w, g as xe, a as Le, b as Re } from "./BlNFmhNa.js";
15
15
  import we from "../Trigger.js";
16
16
  import { y as ee } from "./BzPkh4Zv.js";
17
17
  import "../utils/is.js";
@@ -33,7 +33,7 @@ function Fe(t, a) {
33
33
  treeData: u,
34
34
  treeProps: p,
35
35
  prefixCls: l,
36
- treeCheckable: v
36
+ treeCheckable: V
37
37
  } = t, C = p && p.renderTitle, m = R(), d = K(
38
38
  (b, { checkedNodes: o, checked: s, node: g }) => {
39
39
  const P = b.map((y) => {
@@ -121,7 +121,7 @@ function Fe(t, a) {
121
121
  blockNode: !0,
122
122
  filterNode: t.filterNode,
123
123
  ...p,
124
- checkable: v,
124
+ checkable: V,
125
125
  multiple: f,
126
126
  loadMore: t.loadMore ? O : void 0,
127
127
  checkedStrategy: i,
@@ -152,8 +152,8 @@ const We = ue(Fe), me = {
152
152
  let h = 0;
153
153
  const i = (e, u) => {
154
154
  const p = e.length;
155
- return e.map((l, v) => {
156
- const C = H(l, n.children) || l[n.children], m = H(l, n.key) || l[n.key] || `${(u == null ? void 0 : u._key) || ""}-${v}`, d = {
155
+ return e.map((l, V) => {
156
+ const C = H(l, n.children) || l[n.children], m = H(l, n.key) || l[n.key] || `${(u == null ? void 0 : u._key) || ""}-${V}`, d = {
157
157
  ...l,
158
158
  title: H(l, n.title) || l[n.title],
159
159
  selectable: H(l, n.selectable) || l[n.selectable],
@@ -169,7 +169,7 @@ const We = ue(Fe), me = {
169
169
  _level: u._level || 0,
170
170
  _index: h++
171
171
  };
172
- return p === v + 1 && (d.className = ee(
172
+ return p === V + 1 && (d.className = ee(
173
173
  `${a}-node-is-tail`,
174
174
  d.className
175
175
  )), f[m] = d, C && C.length && (f[m].children = i(C, {
@@ -225,7 +225,7 @@ const We = ue(Fe), me = {
225
225
  const f = R([]), h = () => {
226
226
  const l = t.value || t.defaultValue || [];
227
227
  if (t.treeCheckable) {
228
- const v = Me(
228
+ const V = Me(
229
229
  j(l),
230
230
  a,
231
231
  n,
@@ -236,7 +236,7 @@ const We = ue(Fe), me = {
236
236
  f.current
237
237
  );
238
238
  return z(
239
- v,
239
+ V,
240
240
  a,
241
241
  C
242
242
  );
@@ -259,11 +259,11 @@ const We = ue(Fe), me = {
259
259
  a
260
260
  ]);
261
261
  const p = K(
262
- (l, v) => {
262
+ (l, V) => {
263
263
  const { onChange: C, labelInValue: m } = t, d = t.multiple || t.treeCheckable;
264
264
  "value" in t || u(l);
265
265
  let _;
266
- d ? _ = l.map((D) => m ? { label: D.label, value: D.value } : D.value) : _ = m ? l[0] : l[0] && l[0].value, C == null || C(_, v);
266
+ d ? _ = l.map((D) => m ? { label: D.label, value: D.value } : D.value) : _ = m ? l[0] : l[0] && l[0].value, C == null || C(_, V);
267
267
  },
268
268
  [
269
269
  t.onChange,
@@ -290,7 +290,7 @@ const je = {
290
290
  t,
291
291
  je,
292
292
  h == null ? void 0 : h.TreeSelect
293
- ), u = _e(), p = R(), l = R(null), v = R(null), C = R([]), [m] = Ue(e), d = Ae(m, e.fieldNames), [_, D] = te(), [O, G] = oe(!1, {
293
+ ), u = _e(), p = R(), l = R(null), V = R(null), C = R([]), [m] = Ue(e), d = Ae(m, e.fieldNames), [_, D] = te(), [O, G] = oe(!1, {
294
294
  value: e.popupVisible
295
295
  }), [S, J] = oe(
296
296
  void 0,
@@ -314,7 +314,7 @@ const je = {
314
314
  return;
315
315
  }
316
316
  if (!k) return m;
317
- const V = /* @__PURE__ */ new Set();
317
+ const v = /* @__PURE__ */ new Set();
318
318
  Object.keys(d).forEach((x) => {
319
319
  const L = d[x];
320
320
  let $ = !1;
@@ -324,8 +324,8 @@ const je = {
324
324
  const U = L.value || L._key;
325
325
  U && U.indexOf(k) > -1 && ($ = !0);
326
326
  }
327
- $ && V.add(L.key);
328
- }), D(V);
327
+ $ && v.add(L.key);
328
+ }), D(v);
329
329
  }, 100)(r),
330
330
  [e.onSearch, m, d, e.filterTreeNode]
331
331
  ), ne = K(() => {
@@ -339,31 +339,31 @@ const je = {
339
339
  ), ge = (r, c, k) => {
340
340
  if (k.stopPropagation(), r.disabled)
341
341
  return;
342
- const V = q(r.value) ? r.value.value : r.value;
343
- if (!e.treeCheckable || e.treeCheckStrictly || !d[V]) {
342
+ const v = q(r.value) ? r.value.value : r.value;
343
+ if (!e.treeCheckable || e.treeCheckStrictly || !d[v]) {
344
344
  const L = s.filter(($, U) => U !== c);
345
345
  M(L, {
346
- trigger: d[V] || r,
346
+ trigger: d[v] || r,
347
347
  checked: !1,
348
348
  selected: !1
349
349
  });
350
350
  return;
351
351
  }
352
352
  const x = Re(
353
- V,
353
+ v,
354
354
  !1,
355
355
  j(s),
356
356
  d,
357
357
  C.current
358
358
  );
359
359
  C.current = x.indeterminateKeys, M(z(x.checkedKeys, d, s), {
360
- trigger: d[V],
360
+ trigger: d[v],
361
361
  checked: !1,
362
362
  selected: !1
363
363
  });
364
364
  };
365
365
  function X(r) {
366
- return Se(r) || Ve(r) || ve(r);
366
+ return Se(r) || ve(r) || Ve(r);
367
367
  }
368
368
  ie(() => {
369
369
  S !== void 0 && be(S), S !== F.current && (F.current = S);
@@ -372,8 +372,8 @@ const je = {
372
372
  let r = [];
373
373
  if (S)
374
374
  for (const c in d) {
375
- const V = [...d[c].pathParentKeys, c];
376
- V.some((x) => _ && _.has(x)) && (r = r.concat(V));
375
+ const v = [...d[c].pathParentKeys, c];
376
+ v.some((x) => _ && _.has(x)) && (r = r.concat(v));
377
377
  }
378
378
  return Array.from(new Set(r));
379
379
  }, [S, d, _]);
@@ -384,14 +384,14 @@ const je = {
384
384
  }) : u || S && Q("", "optionListHide");
385
385
  }, [O]), de(a, () => ({
386
386
  focus() {
387
- v.current && v.current.focus();
387
+ V.current && V.current.focus();
388
388
  },
389
389
  blur() {
390
- v.current && v.current.blur();
390
+ V.current && V.current.blur();
391
391
  },
392
392
  getRootDOMNode: () => {
393
393
  var r, c;
394
- return (c = (r = v.current) == null ? void 0 : r.getRootDOMNode) == null ? void 0 : c.call(r);
394
+ return (c = (r = V.current) == null ? void 0 : r.getRootDOMNode) == null ? void 0 : c.call(r);
395
395
  }
396
396
  }));
397
397
  const pe = K(
@@ -400,11 +400,11 @@ const je = {
400
400
  ), Ce = K(
401
401
  (r) => {
402
402
  const { disabled: c, value: k } = r || {};
403
- let V = r == null ? void 0 : r.label;
404
- return W(e.renderFormat) && (V = e.renderFormat(
403
+ let v = r == null ? void 0 : r.label;
404
+ return W(e.renderFormat) && (v = e.renderFormat(
405
405
  d[k] || null,
406
406
  e.labelInValue ? r : k
407
- )), { text: V || k || "", disabled: c };
407
+ )), { text: v || k || "", disabled: c };
408
408
  },
409
409
  [e.renderFormat, e.labelInValue, d]
410
410
  ), ke = (r) => {
@@ -427,7 +427,7 @@ const je = {
427
427
  e.triggerProps && e.triggerProps.className
428
428
  ),
429
429
  popup: () => {
430
- var V, x, L;
430
+ var v, x, L;
431
431
  const c = e.dropdownRender, k = T && X(Y) || X(m) ? e.notFoundContent || (f == null ? void 0 : f("TreeSelect")) : /* @__PURE__ */ E(
432
432
  We,
433
433
  {
@@ -450,7 +450,7 @@ const je = {
450
450
  [`${y}-rtl-popup`]: i
451
451
  }),
452
452
  style: {
453
- maxHeight: (V = e.treeProps) != null && V.height || (L = (x = e.treeProps) == null ? void 0 : x.virtualListProps) != null && L.height ? "unset" : "",
453
+ maxHeight: (v = e.treeProps) != null && v.height || (L = (x = e.treeProps) == null ? void 0 : x.virtualListProps) != null && L.height ? "unset" : "",
454
454
  ...e.dropdownMenuStyle
455
455
  },
456
456
  children: W(c) ? c(k) : k
@@ -474,7 +474,7 @@ const je = {
474
474
  return Ke(ce) ? /* @__PURE__ */ E(
475
475
  Oe,
476
476
  {
477
- ref: v,
477
+ ref: V,
478
478
  rtl: i,
479
479
  ariaControls: I,
480
480
  ...e,
@@ -1,6 +1,6 @@
1
1
  import { jsx as g } from "react/jsx-runtime";
2
2
  import { forwardRef as l, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
3
- import { d as h } from "./Bdh4XVuf.js";
3
+ import { d as h } from "./CV1kLw5Z.js";
4
4
  import { useWatermark as x } from "../hooks/use-watermark.js";
5
5
  import { useMergeProps as k } from "../hooks/useMergeProps.js";
6
6
  import { y } from "./BzPkh4Zv.js";