@unicom-cloud/ui 0.8.63 → 0.8.65

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 (214) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +2 -2
  6. package/BackTop.js +2 -2
  7. package/Badge.js +37 -31
  8. package/Breadcrumb.js +3 -3
  9. package/Button.js +82 -71
  10. package/Calendar.js +4 -4
  11. package/Card.js +2 -2
  12. package/Carousel.js +2 -2
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +5 -5
  17. package/Comment.js +2 -2
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +3 -3
  20. package/DatePicker.js +92 -92
  21. package/Descriptions.js +2 -2
  22. package/Divider.js +2 -2
  23. package/Draggable.js +2 -2
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +27 -26
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +3 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +4 -1
  32. package/Input.js +11 -2
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +25 -21
  36. package/Link.js +2 -2
  37. package/List.js +31 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +7 -2
  40. package/Message.js +4 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +4 -3
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +2 -2
  49. package/Popover.js +2 -2
  50. package/Progress.js +2 -2
  51. package/Radio.js +4 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +140 -137
  54. package/Result.js +2 -2
  55. package/Select.js +4 -1
  56. package/SelectView.js +7 -7
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +54 -50
  60. package/Spin.js +2 -2
  61. package/Statistic.js +29 -28
  62. package/Steps.js +41 -39
  63. package/Switch.js +3 -3
  64. package/Table.js +8 -5
  65. package/Tabs.js +6 -2
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +38 -37
  68. package/Timeline.js +4 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +3 -1
  73. package/Trigger.js +43 -42
  74. package/Typography.js +6 -2
  75. package/Upload.js +3 -3
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{DDDuw0Zi.js → 1GQdnTJp.js} +2 -2
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{CfZWOhnc.js → BS09tn7B.js} +2 -2
  82. package/chunk/{CZ1wrD_H.js → BUCEs557.js} +2 -2
  83. package/chunk/BqGtwxTi.js +777 -0
  84. package/chunk/{BcwdVUDs.js → Bqk6yh16.js} +2 -2
  85. package/chunk/{CD7dGcUa.js → BqufsN8i.js} +4 -4
  86. package/chunk/{Dpzgtdt-.js → BtlvlGQN.js} +2 -2
  87. package/chunk/{BoDdbbF_.js → CF6p9R93.js} +4 -3
  88. package/chunk/{BnLshM9R.js → CGZ0In1p.js} +189 -182
  89. package/chunk/{B5gIo-hD.js → CH1UUxsg.js} +4 -4
  90. package/chunk/{D3dcFbex.js → CIlGCedk.js} +3 -3
  91. package/chunk/{CgDayZDE.js → CPcm9Cm5.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{JpKOcIfl.js → CWgltRVL.js} +44 -41
  94. package/chunk/{BLLKKgZJ.js → CsbCHnFk.js} +23 -21
  95. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  96. package/chunk/{B9w_puFP.js → DG-epQqF.js} +2 -2
  97. package/chunk/{QFkhCtUr.js → DIx0qmCq.js} +3 -3
  98. package/chunk/{Bn2-vqTg.js → DK4KcodH.js} +201 -195
  99. package/chunk/{BEB_A9eY.js → DLvMA1OW.js} +2 -2
  100. package/chunk/{DbPYtS7-.js → DQDkV47j.js} +2 -2
  101. package/chunk/{rlfmXePI.js → DTjcKyDN.js} +135 -134
  102. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  103. package/chunk/{C6Zb_-OE.js → DXZEpA3t.js} +2 -2
  104. package/chunk/{aqSmxUbY.js → DjtWv6Wn.js} +1 -1
  105. package/chunk/{C5S_amaH.js → DlLL5JQo.js} +106 -101
  106. package/chunk/{CvlD3aiv.js → Dnycc1qJ.js} +133 -130
  107. package/chunk/{DbLgopUR.js → DqFhzTWC.js} +3 -3
  108. package/chunk/{DXZ8-ha7.js → Dv_xRzvR.js} +3 -3
  109. package/chunk/{Dk6hL04k.js → Ek8U5CTN.js} +222 -221
  110. package/chunk/{CfTcP6nF.js → ewRDIDUz.js} +4 -4
  111. package/chunk/{CAxIyiy6.js → tYXLFPVI.js} +6 -4
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +530 -476
  115. package/locale/en-US.js +1 -1
  116. package/locale/tr-TR.js +1 -1
  117. package/package.json +1 -1
  118. package/style/variable.less +820 -0
  119. package/style.css +1 -1
  120. package/types/badge/index.d.ts +2 -2
  121. package/types/button/index.d.ts +3 -1
  122. package/types/calendar/hook/useCellClassName.d.ts +2 -1
  123. package/types/checkbox/IconCheck.d.ts +2 -1
  124. package/types/config-provider/interface.d.ts +1 -1
  125. package/types/date-picker/hook/useCellClassName.d.ts +2 -1
  126. package/types/date-picker/panel/Footer.d.ts +2 -1
  127. package/types/dropdown/index.d.ts +1 -0
  128. package/types/form/IconSymbol.d.ts +2 -1
  129. package/types/form/useForm.d.ts +2 -1
  130. package/types/icon/addFromIconFontCn.d.ts +2 -1
  131. package/types/icon/index.d.ts +2 -0
  132. package/types/image/Image.d.ts +1 -0
  133. package/types/image/index.d.ts +2 -1
  134. package/types/image/util/getFixTranslate.d.ts +2 -1
  135. package/types/image/util/hook/useImageStatus.d.ts +2 -2
  136. package/types/image/util/hook/useShowFooter.d.ts +2 -2
  137. package/types/index.d.ts +26 -26
  138. package/types/input/Input.d.ts +1 -0
  139. package/types/input/index.d.ts +1 -0
  140. package/types/input/useComposition.d.ts +2 -1
  141. package/types/input-number/useSelectionRange.d.ts +2 -1
  142. package/types/layout/index.d.ts +1 -0
  143. package/types/list/index.d.ts +1 -0
  144. package/types/menu/Indent.d.ts +2 -1
  145. package/types/menu/Menu.d.ts +1 -0
  146. package/types/menu/index.d.ts +1 -0
  147. package/types/message/index.d.ts +2 -0
  148. package/types/notification/index.d.ts +2 -0
  149. package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
  150. package/types/overflow-ellipsis/index.d.ts +2 -2
  151. package/types/radio/Radio.d.ts +2 -0
  152. package/types/radio/index.d.ts +2 -1
  153. package/types/resize-box/ResizeTrigger.d.ts +2 -1
  154. package/types/resize-box/index.d.ts +1 -0
  155. package/types/result/403.d.ts +2 -1
  156. package/types/result/404.d.ts +2 -1
  157. package/types/result/500.d.ts +2 -1
  158. package/types/select/Select.d.ts +1 -1
  159. package/types/select/index.d.ts +1 -0
  160. package/types/select/interface.d.ts +1 -1
  161. package/types/skeleton/Image.d.ts +2 -1
  162. package/types/skeleton/Text.d.ts +2 -1
  163. package/types/slider/hook/useLegalValue.d.ts +2 -1
  164. package/types/space/index.d.ts +2 -0
  165. package/types/space/toArray.d.ts +2 -1
  166. package/types/speech-synthesis/index.d.ts +2 -1
  167. package/types/spin/DotLoading.d.ts +2 -1
  168. package/types/statistic/index.d.ts +1 -0
  169. package/types/steps/index.d.ts +1 -0
  170. package/types/table/hook/useComponent.d.ts +2 -1
  171. package/types/table/hook/useExpand.d.ts +2 -1
  172. package/types/table/hook/useRowSelection.d.ts +2 -1
  173. package/types/table/hook/useSorter.d.ts +2 -1
  174. package/types/table/index.d.ts +2 -1
  175. package/types/table/summary/index.d.ts +3 -0
  176. package/types/tabs/Tab.d.ts +1 -0
  177. package/types/tabs/TabContent.d.ts +2 -2
  178. package/types/tabs/hook/useDomSize.d.ts +2 -1
  179. package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
  180. package/types/tabs/index.d.ts +1 -0
  181. package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
  182. package/types/time-picker/TimeColumn.d.ts +2 -2
  183. package/types/time-picker/index.d.ts +5 -0
  184. package/types/timeline/Timeline.d.ts +1 -0
  185. package/types/timeline/index.d.ts +1 -0
  186. package/types/tree-select/Select.d.ts +5 -0
  187. package/types/tree-select/hook/useTreeData.d.ts +2 -1
  188. package/types/tree-select/index.d.ts +2 -1
  189. package/types/typography/Operations.d.ts +2 -1
  190. package/types/typography/index.d.ts +1 -0
  191. package/types/upload/Upload.d.ts +2 -1
  192. package/types/upload/index.d.ts +2 -3
  193. package/types/utils/fillNBSP.d.ts +2 -1
  194. package/types/utils/getHighlightText.d.ts +2 -1
  195. package/types/utils/getHotkeyHandler.d.ts +2 -1
  196. package/types/utils/getStringLength.d.ts +2 -1
  197. package/types/utils/include.d.ts +2 -1
  198. package/types/utils/mergeProps.d.ts +2 -1
  199. package/types/utils/mergedToString.d.ts +2 -1
  200. package/types/utils/omit.d.ts +2 -1
  201. package/types/utils/pick.d.ts +2 -1
  202. package/types/utils/throttleByRaf.d.ts +2 -1
  203. package/types/utils/throttleByRafV2.d.ts +2 -1
  204. package/types/utils/warning.d.ts +2 -1
  205. package/types/version/index.d.ts +2 -0
  206. package/utils/className.js +1 -1
  207. package/utils/contextHolder.js +1 -1
  208. package/utils/copy.js +1 -1
  209. package/utils/index.js +41 -41
  210. package/utils/is.js +37 -37
  211. package/utils/reactDOM.js +3 -3
  212. package/utils/scrollIntoView.js +1 -1
  213. package/chunk/BzPkh4Zv.js +0 -11
  214. package/chunk/Co3idurS.js +0 -774
package/TimePicker.js CHANGED
@@ -3,16 +3,16 @@ import Re from "@unicom-cloud/icons/IconUiClockCircle";
3
3
  import { isDayjs as L } from "dayjs";
4
4
  import p from "lodash/isArray";
5
5
  import He, { useContext as pe, useState as z, useRef as ze } from "react";
6
- import { d as Ae } from "./chunk/C5S_amaH.js";
6
+ import { d as Ae } from "./chunk/DlLL5JQo.js";
7
7
  import { useMergeProps as Oe } from "./hooks/useMergeProps.js";
8
8
  import { usePrevious as ce } from "./hooks/usePrevious.js";
9
9
  import { useUpdateEffect as Ee } from "./hooks/useUpdateEffect.js";
10
- import { a as Fe, I as Ne } from "./chunk/Dpzgtdt-.js";
10
+ import { a as Fe, I as Ne } from "./chunk/BtlvlGQN.js";
11
11
  import Ue from "./Trigger.js";
12
- import { y as $e } from "./chunk/BzPkh4Zv.js";
12
+ import { y as $e } from "./chunk/BAWsPQBM.js";
13
13
  import { getDayjsValue as B, toLocal as d, toTimezone as X, isValidTimeString as Q, getSortedDayjsArray as Be, isDayjsArrayChange as Le, isDayjsChange as Me } from "./utils/dayjs.js";
14
14
  import { pickDataAttributes as We } from "./utils/pick.js";
15
- import { P as me, g as _e, T as de } from "./chunk/C6Zb_-OE.js";
15
+ import { P as me, g as _e, T as de } from "./chunk/DXZEpA3t.js";
16
16
  import qe from "./utils/omit.js";
17
17
  function Ge(h) {
18
18
  return h.format || "HH:mm:ss";
@@ -26,8 +26,8 @@ const fe = {
26
26
  scrollSticky: !0
27
27
  }, Je = { bottom: 4 }, Ke = (h) => {
28
28
  var se, ae;
29
- const { locale: u, getPrefixCls: v, componentConfig: l, rtl: x } = pe(Ae);
30
- x && (fe.position = "br");
29
+ const { locale: u, getPrefixCls: v, componentConfig: l, rtl: T } = pe(Ae);
30
+ T && (fe.position = "br");
31
31
  const t = Oe(
32
32
  h,
33
33
  fe,
@@ -36,8 +36,8 @@ const fe = {
36
36
  allowClear: A = !0,
37
37
  className: f,
38
38
  disableConfirm: M,
39
- style: y,
40
- placeholder: T,
39
+ style: x,
40
+ placeholder: y,
41
41
  getPopupContainer: O,
42
42
  disabled: b,
43
43
  position: W,
@@ -56,15 +56,15 @@ const fe = {
56
56
  order: ve,
57
57
  utcOffset: n,
58
58
  timezone: r
59
- } = t, a = Ge(t), Ce = v("timepicker");
60
- function ke() {
59
+ } = t, a = Ge(t), ke = v("timepicker");
60
+ function Ce() {
61
61
  let e;
62
62
  return t.value ? e = B(t.value, a, n, r) : t.defaultValue && (e = B(t.defaultValue, a, n, r)), e;
63
63
  }
64
- const [ee, oe] = z(!1), [C, te] = z(ke()), [i, j] = z(), [R, k] = z(), [E, Ie] = z(0), V = "value" in t ? B(P, a, n, r) : C, q = "popupVisible" in t ? t.popupVisible : ee, F = ce(n), N = ce(r);
64
+ const [ee, oe] = z(!1), [k, te] = z(Ce()), [i, j] = z(), [R, C] = z(), [E, Ie] = z(0), V = "value" in t ? B(P, a, n, r) : k, q = "popupVisible" in t ? t.popupVisible : ee, F = ce(n), N = ce(r);
65
65
  Ee(() => {
66
- if (C && (F !== n || r !== N)) {
67
- const e = p(C) ? C.map((c) => d(c, F, N)) : d(C, F, N), o = p(e) ? e.map((c) => X(c, n, r)) : X(e, n, r);
66
+ if (k && (F !== n || r !== N)) {
67
+ const e = p(k) ? k.map((c) => d(c, F, N)) : d(k, F, N), o = p(e) ? e.map((c) => X(c, n, r)) : X(e, n, r);
68
68
  te(o);
69
69
  }
70
70
  }, [n, F, r, N]);
@@ -76,19 +76,19 @@ const fe = {
76
76
  function K(e) {
77
77
  Ie(e), setTimeout(() => J(e));
78
78
  }
79
- function xe(e) {
79
+ function Te(e) {
80
80
  e ? H(e, () => {
81
81
  setTimeout(() => J());
82
82
  }) : H(!1);
83
83
  }
84
84
  function H(e, o) {
85
- oe(e), k(void 0), o == null || o(), e || j(void 0);
85
+ oe(e), C(void 0), o == null || o(), e || j(void 0);
86
86
  }
87
87
  function U(e) {
88
88
  const o = g && ve && p(e) ? Be(e.map((c) => _e(c))) : e;
89
- te(o), j(void 0), k(void 0), ye(o), M || H(!1);
89
+ te(o), j(void 0), C(void 0), xe(o), M || H(!1);
90
90
  }
91
- function ye(e) {
91
+ function xe(e) {
92
92
  p(e) && Le(V, e) && (s == null || s(
93
93
  e.map((o) => d(o, n, r).format(a)),
94
94
  e.map((o) => d(o, n, r))
@@ -102,14 +102,14 @@ const fe = {
102
102
  return /* @__PURE__ */ m(
103
103
  "div",
104
104
  {
105
- className: $e(`${Ce}-container`, e ? f : ""),
106
- style: e ? y : {},
105
+ className: $e(`${ke}-container`, e ? f : ""),
106
+ style: e ? x : {},
107
107
  onClick: () => J(),
108
108
  children: He.cloneElement(_, {
109
109
  ...t,
110
110
  format: a,
111
111
  inputValue: R,
112
- setInputValue: k,
112
+ setInputValue: C,
113
113
  onConfirmValue: U,
114
114
  setValueShow: j,
115
115
  valueShow: o,
@@ -123,14 +123,14 @@ const fe = {
123
123
  }
124
124
  function ne(e) {
125
125
  const o = e.target.value;
126
- ee || oe(!0), k(o), Te(o);
126
+ ee || oe(!0), C(o), ye(o);
127
127
  }
128
- function Te(e) {
128
+ function ye(e) {
129
129
  var c, ue;
130
130
  const o = B(e, a);
131
131
  if (g) {
132
132
  const I = [
133
- ...p(i) ? i : C || []
133
+ ...p(i) ? i : k || []
134
134
  ];
135
135
  if (Q(e, a)) {
136
136
  I[E] = o;
@@ -141,11 +141,11 @@ const fe = {
141
141
  t,
142
142
  le.map(($) => $ && $.format(a)),
143
143
  le
144
- ), j(I), k(void 0);
144
+ ), j(I), C(void 0);
145
145
  }
146
146
  } else if (Q(e, a)) {
147
147
  const I = d(o, n, r);
148
- (ue = t.onSelect) == null || ue.call(t, I.format(a), I), j(o), k(void 0);
148
+ (ue = t.onSelect) == null || ue.call(t, I.format(a), I), j(o), C(void 0);
149
149
  }
150
150
  }
151
151
  function be() {
@@ -155,8 +155,8 @@ const fe = {
155
155
  var o;
156
156
  e.stopPropagation(), U(void 0), s == null || s(void 0, void 0), (o = t.onClear) == null || o.call(t);
157
157
  }
158
- const we = g && p(T) ? T : (se = u == null ? void 0 : u.TimePicker) == null ? void 0 : se.placeholders, De = T || ((ae = u == null ? void 0 : u.TimePicker) == null ? void 0 : ae.placeholder), je = Z && Z.inputSuffix || /* @__PURE__ */ m(Re, {}), re = {
159
- style: y,
158
+ const we = g && p(y) ? y : (se = u == null ? void 0 : u.TimePicker) == null ? void 0 : se.placeholders, De = y || ((ae = u == null ? void 0 : u.TimePicker) == null ? void 0 : ae.placeholder), je = Z && Z.inputSuffix || /* @__PURE__ */ m(Re, {}), re = {
159
+ style: x,
160
160
  className: f,
161
161
  popupVisible: q,
162
162
  format: a,
@@ -182,7 +182,7 @@ const fe = {
182
182
  disabled: b,
183
183
  popupAlign: Je,
184
184
  getPopupContainer: O,
185
- onVisibleChange: xe,
185
+ onVisibleChange: Te,
186
186
  popupVisible: q,
187
187
  classNames: "slideDynamicOrigin",
188
188
  unmountOnExit: !!he,
@@ -218,25 +218,25 @@ function Qe(h) {
218
218
  format: u = "HH:mm:ss",
219
219
  onSelect: v,
220
220
  focusedInputIndex: l,
221
- changeFocusedInputIndex: x,
221
+ changeFocusedInputIndex: T,
222
222
  popupVisible: t,
223
223
  onConfirmValue: A,
224
224
  valueShow: f = [],
225
225
  setValueShow: M,
226
- disableConfirm: y,
227
- ...T
226
+ disableConfirm: x,
227
+ ...y
228
228
  } = h, { utcOffset: O, timezone: b } = pe(me);
229
229
  function W(Y, w) {
230
230
  const D = f.slice(), P = f.map((s) => d(s, O, b));
231
231
  D[l] = X(w, O, b), P[l] = w, v == null || v(
232
232
  P.map((s) => s.format(u)),
233
233
  P
234
- ), M(D), y && p(P) && L(P[0]) && L(P[1]) && A(D);
234
+ ), M(D), x && p(P) && L(P[0]) && L(P[1]) && A(D);
235
235
  }
236
236
  function g() {
237
- f.length && (f[0] === void 0 || f[1] === void 0) ? x(l === 0 ? 1 : 0) : A(f);
237
+ f.length && (f[0] === void 0 || f[1] === void 0) ? T(l === 0 ? 1 : 0) : A(f);
238
238
  }
239
- const _ = qe(T, [
239
+ const _ = qe(y, [
240
240
  "defaultValue",
241
241
  "placeholder",
242
242
  "value",
@@ -253,14 +253,14 @@ function Qe(h) {
253
253
  confirmBtnDisabled: !L(S),
254
254
  valueShow: S,
255
255
  popupVisible: t,
256
- disableConfirm: y,
256
+ disableConfirm: x,
257
257
  ..._
258
258
  }
259
259
  );
260
260
  }
261
261
  function ge(h, u, v) {
262
- function l(x) {
263
- return /* @__PURE__ */ m(Ke, { ...x, picker: h, isRangePicker: v === "range" });
262
+ function l(T) {
263
+ return /* @__PURE__ */ m(Ke, { ...T, picker: h, isRangePicker: v === "range" });
264
264
  }
265
265
  return l.displayName = u, l;
266
266
  }
@@ -271,5 +271,6 @@ const Xe = ge(/* @__PURE__ */ m(de, {}), "TimePicker"), Ye = ge(
271
271
  );
272
272
  Object.assign(Xe, { RangePicker: Ye });
273
273
  export {
274
+ Ye as TimeRangePicker,
274
275
  Xe as default
275
276
  };
package/Timeline.js CHANGED
@@ -1,4 +1,6 @@
1
- import { T as o } from "./chunk/BoDdbbF_.js";
1
+ import { T as m } from "./chunk/CF6p9R93.js";
2
+ import { a } from "./chunk/CF6p9R93.js";
2
3
  export {
3
- o as default
4
+ a as TimelineItem,
5
+ m as default
4
6
  };
package/Tooltip.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { d as F, f as I } from "./chunk/C5S_amaH.js";
2
+ import { d as F, f as I } from "./chunk/DlLL5JQo.js";
3
3
  import S from "lodash/isFunction";
4
4
  import { forwardRef as j, useContext as z, useRef as B, useImperativeHandle as W, useMemo as q } from "react";
5
5
  import { useMergeProps as G } from "./hooks/useMergeProps.js";
6
6
  import J, { EventsByTriggerNeed as K } from "./Trigger.js";
7
- import { y as P } from "./chunk/BzPkh4Zv.js";
7
+ import { y as P } from "./chunk/BAWsPQBM.js";
8
8
  import { isEmptyReactNode as Q } from "./utils/is.js";
9
9
  import U, { pickDataAttributes as X } from "./utils/pick.js";
10
10
  const Y = {
package/Transfer.js CHANGED
@@ -4,16 +4,16 @@ import Ie from "@unicom-cloud/icons/IconUiRight";
4
4
  import ne from "lodash/isPlainObject";
5
5
  import de, { useRef as le, useState as G, useEffect as oe, useContext as fe, useMemo as ce } from "react";
6
6
  import ue from "./Button.js";
7
- import { I as pe, d as me } from "./chunk/C5S_amaH.js";
7
+ import { I as pe, d as me } from "./chunk/DlLL5JQo.js";
8
8
  import { useMergeProps as Ke } from "./hooks/useMergeProps.js";
9
9
  import { useMergeValue as ie } from "./hooks/useMergeValue.js";
10
- import { y as se } from "./chunk/BzPkh4Zv.js";
10
+ import { y as se } from "./chunk/BAWsPQBM.js";
11
11
  import { pickDataAttributes as xe } from "./utils/pick.js";
12
12
  import Ce from "@unicom-cloud/icons/IconUiDelete";
13
13
  import $e from "@unicom-cloud/icons/IconUiSearch";
14
- import { C as ae } from "./chunk/B9w_puFP.js";
14
+ import { C as ae } from "./chunk/DG-epQqF.js";
15
15
  import { useKeyboardEvent as ge } from "./hooks/useKeyboardEvent.js";
16
- import { I as ve } from "./chunk/Bn2-vqTg.js";
16
+ import { I as ve } from "./chunk/DK4KcodH.js";
17
17
  import Se from "./List.js";
18
18
  import Te from "@unicom-cloud/icons/IconUiClose";
19
19
  import Ne from "@unicom-cloud/icons/IconUiDragDotVertical";
package/Tree.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as f } from "./chunk/CfTcP6nF.js";
1
+ import { T as f } from "./chunk/ewRDIDUz.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/TreeSelect.js CHANGED
@@ -1,4 +1,6 @@
1
- import { T as o } from "./chunk/CvlD3aiv.js";
1
+ import { T as o } from "./chunk/Dnycc1qJ.js";
2
+ import { a } from "./chunk/Dnycc1qJ.js";
2
3
  export {
4
+ a as TreeSelectTreeNode,
3
5
  o as default
4
6
  };
package/Trigger.js CHANGED
@@ -1,15 +1,15 @@
1
- var st = Object.defineProperty;
2
- var nt = (h, l, t) => l in h ? st(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t;
3
- var s = (h, l, t) => nt(h, typeof l != "symbol" ? l + "" : l, t);
1
+ var ot = Object.defineProperty;
2
+ var st = (h, l, t) => l in h ? ot(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t;
3
+ var s = (h, l, t) => st(h, typeof l != "symbol" ? l + "" : l, t);
4
4
  import { jsx as N, jsxs as X } from "react/jsx-runtime";
5
- import { $ as rt } from "./chunk/CLBavO5c.js";
6
- import et from "lodash/isArray";
5
+ import { $ as nt } from "./chunk/CLBavO5c.js";
6
+ import rt from "lodash/isArray";
7
7
  import lt from "lodash/isEqual";
8
8
  import W from "lodash/isFunction";
9
- import A, { useRef as pt, useEffect as ht, PureComponent as ut, createRef as Q } from "react";
10
- import { d as at } from "./chunk/C5S_amaH.js";
11
- import { y as _ } from "./chunk/BzPkh4Zv.js";
12
- import { isServerRendering as it, on as U, off as Y, getScrollElements as ct, isScrollElement as ft, contains as q } from "./utils/dom.js";
9
+ import A, { useRef as pt, useEffect as ht, PureComponent as ut, createRef as q } from "react";
10
+ import { d as at } from "./chunk/DlLL5JQo.js";
11
+ import { y as _ } from "./chunk/BAWsPQBM.js";
12
+ import { isServerRendering as et, on as U, off as Y, getScrollElements as ct, isScrollElement as ft, contains as Q } from "./utils/dom.js";
13
13
  import { supportRef as dt } from "./utils/is.js";
14
14
  import { d as K } from "./chunk/C2lIz2F9.js";
15
15
  import gt from "./utils/mergeProps.js";
@@ -19,11 +19,12 @@ import { findDOMNode as bt, callbackOriginRef as yt } from "./utils/reactDOM.js"
19
19
  import j from "./utils/throttleByRaf.js";
20
20
  import wt from "react-dom";
21
21
  import { useIsFirstRender as Tt } from "./hooks/useIsFirstRender.js";
22
- import "./chunk/Cqyp4qni.js";
23
- import J from "lodash/isPlainObject";
24
- const Ct = (h) => {
22
+ import "./chunk/CSC_V_25.js";
23
+ import Ct from "lodash/isArray.js";
24
+ import J from "lodash/isPlainObject.js";
25
+ const Mt = (h) => {
25
26
  const { getContainer: l, children: t } = h, e = pt();
26
- return (Tt() || e.current === null) && !it && (e.current = l()), ht(() => () => {
27
+ return (Tt() || e.current === null) && !et && (e.current = l()), ht(() => () => {
27
28
  const n = e.current;
28
29
  n && n.parentNode && (n.parentNode.removeChild(n), e.current = null);
29
30
  }, []), e.current ? wt.createPortal(t, e.current) : null;
@@ -39,8 +40,8 @@ const Ct = (h) => {
39
40
  bottom: m
40
41
  };
41
42
  };
42
- function Mt(h, l, t, e) {
43
- if (!t || !h || it)
43
+ function vt(h, l, t, e) {
44
+ if (!t || !h || et)
44
45
  return { left: 0, width: 0, height: 0, top: 0 };
45
46
  const i = (m) => document.documentElement[m] || document.body[m], n = t === document.body ? i("scrollTop") : t.scrollTop, r = t === document.body ? i("scrollLeft") : t.scrollLeft, { left: u, top: y, width: o, height: v } = l, g = t === document.body ? 0 : I(t, e).left, a = t === document.body ? 0 : I(t, e).top, c = y + n - a;
46
47
  return {
@@ -52,7 +53,7 @@ function Mt(h, l, t, e) {
52
53
  }
53
54
  const O = function(h, l, t) {
54
55
  return t < h ? h : t > l ? l : t;
55
- }, vt = (h, l) => {
56
+ }, Et = (h, l) => {
56
57
  let t = 0, e = 0, i = {};
57
58
  l ? i = {
58
59
  left: 12,
@@ -62,7 +63,7 @@ const O = function(h, l, t) {
62
63
  ...h
63
64
  } : i = { ...h };
64
65
  for (const n in i)
65
- if (et(i[n])) {
66
+ if (Ct(i[n])) {
66
67
  let r = 0;
67
68
  ["top", "bottom"].indexOf(n) > -1 ? (r = 1, t = i[n][0]) : e = i[n][1], i[n] = i[n][r];
68
69
  }
@@ -71,27 +72,27 @@ const O = function(h, l, t) {
71
72
  horizontalOffset: t,
72
73
  verticalOffset: e
73
74
  };
74
- }, Et = (h, l, { boundaryDistance: t, position: e }) => l ? {
75
+ }, Dt = (h, l, { boundaryDistance: t, position: e }) => l ? {
75
76
  left: l.clientX,
76
77
  top: l.clientY,
77
78
  width: 0,
78
79
  height: 0,
79
80
  right: l.clientX,
80
81
  bottom: l.clientY
81
- } : I(h, { boundaryDistance: t, position: e }), Dt = (h) => {
82
+ } : I(h, { boundaryDistance: t, position: e }), Ot = (h) => {
82
83
  const l = h.offsetWidth, t = h.offsetHeight;
83
84
  return {
84
85
  width: l,
85
86
  height: t
86
87
  };
87
- }, Ot = (h) => {
88
+ }, xt = (h) => {
88
89
  var r, u;
89
- const l = h || {}, t = "left" in l ? l.left : "right" in l ? l.right : B, e = "top" in l ? l.top : "bottom" in l ? l.bottom : B, i = (((r = document.documentElement) == null ? void 0 : r.clientHeight) || window.innerHeight) - (e || B), n = (((u = document.documentElement) == null ? void 0 : u.clientWidth) || window.innerWidth) - (t || B);
90
+ const l = h, t = "left" in l ? l.left : "right" in l ? l.right : B, e = "top" in l ? l.top : "bottom" in l ? l.bottom : B, i = (((r = document.documentElement) == null ? void 0 : r.clientHeight) || window.innerHeight) - (e || B), n = (((u = document.documentElement) == null ? void 0 : u.clientWidth) || window.innerWidth) - (t || B);
90
91
  return {
91
92
  windowHeight: i,
92
93
  windowWidth: n
93
94
  };
94
- }, xt = (h, l, t, e, i) => {
95
+ }, Rt = (h, l, t, e, i) => {
95
96
  const {
96
97
  autoAlignPopupWidth: n,
97
98
  autoAlignPopupMinWidth: r,
@@ -100,10 +101,10 @@ const O = function(h, l, t) {
100
101
  } = h;
101
102
  if (!t || !l || !e)
102
103
  return {};
103
- const o = {}, v = !h.alignPoint && h.boundaryDistance || {}, g = Et(t, u && i, {
104
+ const o = {}, v = !h.alignPoint && h.boundaryDistance || {}, g = Dt(t, u && i, {
104
105
  boundaryDistance: v,
105
106
  position: h.position
106
- }), { left: a, top: c, width: f, height: m } = Mt(
107
+ }), { left: a, top: c, width: f, height: m } = vt(
107
108
  t,
108
109
  g,
109
110
  e,
@@ -111,14 +112,14 @@ const O = function(h, l, t) {
111
112
  boundaryDistance: v,
112
113
  position: h.position
113
114
  }
114
- ), z = vt(h.popupAlign, h.showArrow), V = z.left || 0, H = z.right || 0, k = z.top || 0, F = z.bottom || 0;
115
+ ), z = Et(h.popupAlign, h.showArrow), V = z.left || 0, H = z.right || 0, k = z.top || 0, F = z.bottom || 0;
115
116
  n && (y == null ? void 0 : y.width) === void 0 && (l.style.width = `${t.offsetWidth}px`), r && (l.style.minWidth = `${t.offsetWidth}px`);
116
- const p = Dt(l);
117
+ const p = Ot(l);
117
118
  let M = h.position;
118
119
  const T = {}, E = (D) => {
119
120
  if (!h.autoFitPosition)
120
121
  return;
121
- const { windowHeight: R, windowWidth: S } = Ot(v);
122
+ const { windowHeight: R, windowWidth: S } = xt(v);
122
123
  let L = !1;
123
124
  const b = {
124
125
  left: a - g.left,
@@ -157,8 +158,8 @@ const O = function(h, l, t) {
157
158
  ), L = !0) : o.left = b.left + S - p.width), o.left < 0)
158
159
  o.left = 0;
159
160
  else {
160
- const ot = e.scrollWidth - p.width;
161
- o.left = Math.min(ot, o.left);
161
+ const it = e.scrollWidth - p.width;
162
+ o.left = Math.min(it, o.left);
162
163
  }
163
164
  return L;
164
165
  }, d = z.horizontalOffset || 0, x = z.verticalOffset || 0;
@@ -222,7 +223,7 @@ function Z(h, l) {
222
223
  right: n
223
224
  };
224
225
  }
225
- const Jt = [
226
+ const te = [
226
227
  "onClick",
227
228
  "onMouseEnter",
228
229
  "onMouseLeave",
@@ -232,13 +233,13 @@ const Jt = [
232
233
  "onContextMenu",
233
234
  "onKeyDown"
234
235
  ];
235
- function Rt(h, l) {
236
+ function St(h, l) {
236
237
  const t = {}, e = { ...h };
237
238
  return l.forEach((i) => {
238
239
  h && i in h && (t[i] = h[i], delete e[i]);
239
240
  }), { picked: t, omitted: e };
240
241
  }
241
- const St = {
242
+ const zt = {
242
243
  blurToHide: !0,
243
244
  // clickToClose: true,
244
245
  classNames: "fadeIn",
@@ -264,7 +265,7 @@ class tt extends ut {
264
265
  s(this, "context");
265
266
  s(this, "popupContainer");
266
267
  s(this, "rootElementRef");
267
- s(this, "triggerRef", Q());
268
+ s(this, "triggerRef", q());
268
269
  // 标志 popup 是否被销毁
269
270
  s(this, "triggerRefDestoried");
270
271
  s(this, "delayTimer", null);
@@ -340,9 +341,9 @@ class tt extends ut {
340
341
  const { componentConfig: e } = this.context ?? {};
341
342
  return gt(
342
343
  t && J(t) ? t : this.props,
343
- St,
344
+ zt,
344
345
  e == null ? void 0 : e.Trigger,
345
- t && et(t) ? t : void 0
346
+ t && rt(t) ? t : void 0
346
347
  );
347
348
  });
348
349
  s(this, "getRootElement", () => {
@@ -485,7 +486,7 @@ class tt extends ut {
485
486
  const t = this.popupContainer, e = this.triggerRef.current, i = this.getRootElement();
486
487
  if (!i.offsetParent && !i.getClientRects().length)
487
488
  return this.state.popupStyle;
488
- const n = this.getMergedProps(), { style: r, arrowStyle: u, realPosition: y } = xt(
489
+ const n = this.getMergedProps(), { style: r, arrowStyle: u, realPosition: y } = Rt(
489
490
  n,
490
491
  e,
491
492
  i,
@@ -574,7 +575,7 @@ class tt extends ut {
574
575
  "onClickOutside",
575
576
  "clickOutsideToClose"
576
577
  ]), n = this.getPopupElement(), r = this.getRootElement();
577
- !q(n, t.target) && !q(r, t.target) && !this.hasPopupMouseDown && (e == null || e(), i && !this.isBlurToHide() && !this.isHoverTrigger() && this.setPopupVisible(!1));
578
+ !Q(n, t.target) && !Q(r, t.target) && !this.hasPopupMouseDown && (e == null || e(), i && !this.isBlurToHide() && !this.isHoverTrigger() && this.setPopupVisible(!1));
578
579
  });
579
580
  s(this, "onKeyDown", (t) => {
580
581
  const e = t.key;
@@ -644,7 +645,7 @@ class tt extends ut {
644
645
  if (["string", "number"].indexOf(typeof t) > -1 || A.Children.count(t) > 1)
645
646
  n = /* @__PURE__ */ N("span", { children: t });
646
647
  else if (e && i && (i.__PQB_BUTTON === !0 || i.__PQB_CHECKBOX === !0 || i.__PQB_SWITCH === !0 || i.__PQB_RADIO === !0 || i === "button") && e.props.disabled) {
647
- const { picked: u, omitted: y } = Rt(e.props.style, [
648
+ const { picked: u, omitted: y } = St(e.props.style, [
648
649
  "position",
649
650
  "left",
650
651
  "right",
@@ -703,7 +704,7 @@ class tt extends ut {
703
704
  } : i || n;
704
705
  });
705
706
  const i = this.getMergedProps(t), n = "popupVisible" in i ? i.popupVisible : i.defaultPopupVisible;
706
- this.popupOpen = !!n, this.triggerRef = Q(), this.state = {
707
+ this.popupOpen = !!n, this.triggerRef = q(), this.state = {
707
708
  popupVisible: !!n,
708
709
  popupStyle: {}
709
710
  };
@@ -788,7 +789,7 @@ class tt extends ut {
788
789
  this.rootElementRef = P, yt(w, P);
789
790
  } : void 0
790
791
  }), L = /* @__PURE__ */ N(
791
- rt,
792
+ nt,
792
793
  {
793
794
  in: !!T,
794
795
  timeout: o,
@@ -869,7 +870,7 @@ class tt extends ut {
869
870
  }
870
871
  )
871
872
  }
872
- ), b = T || this.getPopupElement() && !this.triggerRefDestoried ? /* @__PURE__ */ N(Ct, { getContainer: this.getContainer, children: L }) : null;
873
+ ), b = T || this.getPopupElement() && !this.triggerRefDestoried ? /* @__PURE__ */ N(Mt, { getContainer: this.getContainer, children: L }) : null;
873
874
  return k ? /* @__PURE__ */ X(A.Fragment, { children: [
874
875
  S,
875
876
  b
@@ -878,6 +879,6 @@ class tt extends ut {
878
879
  }
879
880
  s(tt, "displayName", "Trigger"), s(tt, "contextType", at);
880
881
  export {
881
- Jt as EventsByTriggerNeed,
882
+ te as EventsByTriggerNeed,
882
883
  tt as default
883
884
  };
package/Typography.js CHANGED
@@ -1,4 +1,8 @@
1
- import { T as f } from "./chunk/BnLshM9R.js";
1
+ import { E as r, P as y, a as s, b as T, T as o } from "./chunk/CGZ0In1p.js";
2
2
  export {
3
- f as default
3
+ r as TypographyEllipsis,
4
+ y as TypographyParagraph,
5
+ s as TypographyText,
6
+ T as TypographyTitle,
7
+ o as default
4
8
  };
package/Upload.js CHANGED
@@ -1,7 +1,7 @@
1
- import { U as o } from "./chunk/Dk6hL04k.js";
2
- import { S as s, F as t } from "./chunk/Dk6hL04k.js";
1
+ import { U as o } from "./chunk/Ek8U5CTN.js";
2
+ import { S as s, F as t } from "./chunk/Ek8U5CTN.js";
3
3
  export {
4
- s as STATUS,
4
+ s as UPLOAD_STATUS,
5
5
  t as UploadList,
6
6
  o as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { V as a } from "./chunk/QFkhCtUr.js";
1
+ import { V as a } from "./chunk/DIx0qmCq.js";
2
2
  export {
3
3
  a as default
4
4
  };
package/Version.js CHANGED
@@ -1,5 +1,7 @@
1
- const e = "2.65.0";
1
+ const t = "2024-12-27 13:02:08", e = "1735275728003", o = "2.65.0";
2
2
  export {
3
- e as default,
4
- e as version
3
+ t as buildDate,
4
+ e as buildTime,
5
+ o as default,
6
+ o as version
5
7
  };
package/Watermark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { W as r } from "./chunk/CgDayZDE.js";
1
+ import { W as r } from "./chunk/CPcm9Cm5.js";
2
2
  export {
3
3
  r as default
4
4
  };
@@ -5,11 +5,11 @@ import _ from "lodash/isNumber";
5
5
  import Pt from "lodash/throttle";
6
6
  import Rt, { createContext as Tt, forwardRef as ct, useContext as q, useRef as N, useImperativeHandle as st, useEffect as O, isValidElement as $t, useState as Et, useCallback as D } from "react";
7
7
  import bt from "../Affix.js";
8
- import { d as lt } from "./C5S_amaH.js";
8
+ import { d as lt } from "./DlLL5JQo.js";
9
9
  import { useIsFirstRender as Mt } from "../hooks/useIsFirstRender.js";
10
10
  import { useMergeProps as at } from "../hooks/useMergeProps.js";
11
11
  import { useStateWithPromise as Ot } from "../hooks/useStateWithPromise.js";
12
- import { y as ut } from "./BzPkh4Zv.js";
12
+ import { y as ut } from "./BAWsPQBM.js";
13
13
  import { on as Ft, off as Ht } from "../utils/dom.js";
14
14
  import { isWindow as ft } from "../utils/is.js";
15
15
  import It from "lodash/isNull";
@@ -0,0 +1,11 @@
1
+ import f from "lodash/isArray.js";
2
+ import l from "lodash/isPlainObject.js";
3
+ import n from "lodash/isString.js";
4
+ import i from "lodash/uniq.js";
5
+ function b(...t) {
6
+ const r = " ", e = t.map((o, p, a) => l(o) ? Object.keys(o).filter((m) => o[m]) : (n(o) || f(o), o)).flat(1 / 0).filter(Boolean).join(r).split(r).filter(Boolean);
7
+ return i(e).join(r);
8
+ }
9
+ export {
10
+ b as y
11
+ };
@@ -3,7 +3,7 @@ import tn from "@unicom-cloud/icons/IconUiClose";
3
3
  import we from "lodash/isFunction";
4
4
  import on, { forwardRef as Ie, useState as I, useImperativeHandle as rn, useRef as g, useContext as ln, useCallback as S, useEffect as oe } from "react";
5
5
  import ye from "../Button.js";
6
- import { h as T, a as $e, i as sn, j as an, C as cn, s as un, d as dn, k as y, I as mn } from "./C5S_amaH.js";
6
+ import { i as T, a as $e, j as sn, k as an, C as cn, s as un, d as dn, l as y, I as mn } from "./DlLL5JQo.js";
7
7
  import "lodash/isEqualWith";
8
8
  import { useMergeValue as fn } from "../hooks/useMergeValue.js";
9
9
  import "../utils/is.js";
@@ -18,7 +18,7 @@ import { render as vn, findDOMNode as xn } from "../utils/reactDOM.js";
18
18
  import { useUpdateEffect as kn } from "../hooks/useUpdateEffect.js";
19
19
  import En from "../Portal.js";
20
20
  import { P as Te } from "./CLBavO5c.js";
21
- import { y as Pe } from "./BzPkh4Zv.js";
21
+ import { y as Pe } from "./BAWsPQBM.js";
22
22
  import Mn from "../utils/omit.js";
23
23
  import wn from "@unicom-cloud/icons/IconUiCheckCircleFill";
24
24
  import yn from "@unicom-cloud/icons/IconUiCloseCircleFill";
@@ -3,12 +3,12 @@ import pe from "@unicom-cloud/icons/IconUiClose";
3
3
  import fe from "lodash/isFunction";
4
4
  import he, { useContext as Ce, useRef as T, useState as d, useCallback as xe, useMemo as ye, useImperativeHandle as ke, useEffect as z } from "react";
5
5
  import F from "../Button.js";
6
- import { d as Ne, I as ge, a as B } from "./C5S_amaH.js";
6
+ import { d as Ne, I as ge, a as B } from "./DlLL5JQo.js";
7
7
  import { useMergeProps as be } from "../hooks/useMergeProps.js";
8
8
  import { useOverflowHidden as we } from "../hooks/useOverflowHidden.js";
9
9
  import Ie from "../Portal.js";
10
10
  import { P as j } from "./CLBavO5c.js";
11
- import { y as b } from "./BzPkh4Zv.js";
11
+ import { y as b } from "./BAWsPQBM.js";
12
12
  import { isServerRendering as ve, contains as Pe } from "../utils/dom.js";
13
13
  import { d as $e } from "./C2lIz2F9.js";
14
14
  import Ee from "../utils/omit.js";