@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
@@ -10,17 +10,17 @@ import me from "lodash/isArray";
10
10
  import I from "lodash/isEqualWith";
11
11
  import $ from "lodash/isFunction";
12
12
  import ee from "lodash/isUndefined";
13
- import { a as q, I as xe } from "./z7sBNzI4.js";
13
+ import { a as q, I as xe } from "./xPzFRQJn.js";
14
14
  import M from "@unicom-cloud/utils/class-name";
15
15
  import { pickDataAttributes as Ne } from "../utils/pick.js";
16
16
  import be from "@unicom-cloud/icons/IconUiCaretDown";
17
17
  import De from "@unicom-cloud/icons/IconUiDragDotVertical";
18
18
  import Ce from "@unicom-cloud/icons/IconUiFile";
19
19
  import Pe from "@unicom-cloud/icons/IconUiLoading";
20
- import { C as Ee } from "./Ct7mcZuW.js";
20
+ import { C as Ee } from "./BH5fVprw.js";
21
21
  import we from "../utils/throttleByRaf.js";
22
22
  import Se from "lodash/isNumber";
23
- import { P as _e } from "./uUGMUxt_.js";
23
+ import { P as _e } from "./DQ3uFRJD.js";
24
24
  import { V as ne } from "./CiEln_Q1.js";
25
25
  import Le from "../utils/scrollIntoView.js";
26
26
  const z = ye({});
@@ -256,7 +256,12 @@ function Ie(r, y) {
256
256
  [`${h}-title-block`]: r.blockNode
257
257
  }),
258
258
  onClick: (f) => {
259
- const { onSelect: u, onSelect_: P, actionOnClick: T } = e;
259
+ const {
260
+ onSelect: u,
261
+ onSelect_: P,
262
+ // 潘启宝添加
263
+ actionOnClick: T
264
+ } = e;
260
265
  if (!r.disabled) {
261
266
  const v = [].concat(T);
262
267
  N && v.indexOf("select") > -1 && (u == null || u(a, f)), P == null || P(r), v.indexOf("expand") > -1 && L(), K && v.indexOf("check") > -1 && G(!r.checked, f);
@@ -274,11 +279,12 @@ function Ie(r, y) {
274
279
  onDragStart: (f) => {
275
280
  var u;
276
281
  if (k) {
277
- f.stopPropagation(), i({ ...t, isDragging: !0 }), (u = e.onNodeDragStart) == null || u.call(e, f, r);
282
+ f.stopPropagation(), i({ ...t, isDragging: !0 });
278
283
  try {
279
284
  f.dataTransfer.setData("text/plain", "");
280
285
  } catch {
281
286
  }
287
+ (u = e.onNodeDragStart) == null || u.call(e, f, r);
282
288
  }
283
289
  },
284
290
  onDragEnd: (f) => {
@@ -3,12 +3,12 @@ import U from "@unicom-cloud/icons/IconUiCaretLeft";
3
3
  import L from "@unicom-cloud/icons/IconUiCaretRight";
4
4
  import V from "lodash/isFunction";
5
5
  import M, { useContext as K, useRef as A, createContext as B } from "react";
6
- import { a as T, I as S } from "./z7sBNzI4.js";
6
+ import { a as T, I as S } from "./xPzFRQJn.js";
7
7
  import q from "../hooks/useMergeProps.js";
8
8
  import D from "../hooks/useMergeValue.js";
9
9
  import g from "@unicom-cloud/utils/class-name";
10
10
  import G from "../utils/omit.js";
11
- import { l as J } from "./uUGMUxt_.js";
11
+ import { u as J } from "./DQ3uFRJD.js";
12
12
  import Q from "../hooks/useKeyboardEvent.js";
13
13
  import { off as W, on as X } from "../utils/dom.js";
14
14
  function Y(l, h) {
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as z, Fragment as O } from "react/jsx-runtime";
2
2
  import j from "lodash/isFunction";
3
3
  import w from "lodash/isNil";
4
4
  import B, { createContext as H, useContext as G, useRef as L } from "react";
5
- import { a as A, I as Q } from "./z7sBNzI4.js";
5
+ import { a as A, I as Q } from "./xPzFRQJn.js";
6
6
  import D from "../hooks/useMergeProps.js";
7
7
  import F from "../hooks/useMergeValue.js";
8
8
  import I from "@unicom-cloud/utils/class-name";
@@ -1,25 +1,26 @@
1
1
  import { jsx as i, jsxs as R, Fragment as Be } from "react/jsx-runtime";
2
- import { P as Ie, j as Ge } from "./uUGMUxt_.js";
2
+ import { P as Ie, b as Ge } from "./DQ3uFRJD.js";
3
3
  import $e from "lodash/isArray";
4
4
  import Ve, { useContext as Ke, useRef as C, useState as Xe, useImperativeHandle as qe, useMemo as Ye, useEffect as Je } from "react";
5
- import { a as Qe, I as Ze } from "./z7sBNzI4.js";
6
- import ye from "../hooks/useMergeValue.js";
7
- import { I as et } from "./Cku5-xbe.js";
5
+ import { a as Qe, I as Ze } from "./xPzFRQJn.js";
6
+ import be from "../hooks/useMergeValue.js";
7
+ import { I as et } from "./CzTYWtfa.js";
8
8
  import tt from "../Tag.js";
9
9
  import S from "@unicom-cloud/utils/class-name";
10
10
  import at from "../utils/getHotkeyHandler.js";
11
11
  import { Backspace as ot } from "../utils/keyCode.js";
12
12
  import rt from "../Draggable.js";
13
- import st from "../hooks/useMergeProps.js";
14
- import nt from "../utils/fillNBSP.js";
13
+ import nt from "../hooks/useMergeProps.js";
14
+ import st from "../utils/fillNBSP.js";
15
15
  import lt from "../utils/omit.js";
16
16
  import ct from "@unicom-cloud/icons/IconUiClose";
17
17
  import it from "../Popover.js";
18
18
  import ut from "../OverflowEllipsis.js";
19
- import { isObject as _e } from "../utils/is.js";
20
- const be = "__arco_value_tag_placeholder", Y = 300, pt = "responsive", ft = `__input_${Math.random().toFixed(10).slice(2)}`, T = (n) => n == null, E = (n) => {
21
- n.target.tagName !== "INPUT" && n.preventDefault();
22
- }, Te = (n) => $e(n) ? n.map((l) => _e(l) ? {
19
+ import "../utils/is.js";
20
+ import { isPlainObject as _e } from "@unicom-cloud/utils/is";
21
+ const ye = "__arco_value_tag_placeholder", Y = 300, pt = "responsive", ft = `__input_${Math.random().toFixed(10).slice(2)}`, T = (s) => s == null, E = (s) => {
22
+ s.target.tagName !== "INPUT" && s.preventDefault();
23
+ }, Te = (s) => $e(s) ? s.map((l) => _e(l) ? {
23
24
  ...l,
24
25
  label: "label" in l ? l.label : l.value,
25
26
  value: l.value,
@@ -27,27 +28,27 @@ const be = "__arco_value_tag_placeholder", Y = 300, pt = "responsive", ft = `__i
27
28
  } : {
28
29
  label: l,
29
30
  value: l
30
- }) : [], dt = (n) => {
31
- const l = C(0), d = C(n.length);
31
+ }) : [], dt = (s) => {
32
+ const l = C(0), d = C(s.length);
32
33
  return Je(() => {
33
- l.current = n.length === 0 && d.current > 0 ? Y : 0, d.current = n.length;
34
- }, [n]), l;
34
+ l.current = s.length === 0 && d.current > 0 ? Y : 0, d.current = s.length;
35
+ }, [s]), l;
35
36
  }, Ce = ({
36
- prefixCls: n,
37
+ prefixCls: s,
37
38
  children: l,
38
39
  animation: d
39
- }) => /* @__PURE__ */ i("div", { className: `${n}-inner`, children: d ? /* @__PURE__ */ i(Ge, { component: null, children: l }) : l }), mt = {
40
+ }) => /* @__PURE__ */ i("div", { className: `${s}-inner`, children: d ? /* @__PURE__ */ i(Ge, { component: null, children: l }) : l }), mt = {
40
41
  animation: !0,
41
- validate: (n, l) => n && l.every((d) => d.value !== n)
42
+ validate: (s, l) => s && l.every((d) => d.value !== s)
42
43
  };
43
- function gt(n, l) {
44
+ function gt(s, l) {
44
45
  const {
45
46
  getPrefixCls: d,
46
47
  size: Pe,
47
48
  componentConfig: M,
48
49
  rtl: J
49
- } = Ke(Qe), p = st(
50
- n,
50
+ } = Ke(Qe), p = nt(
51
+ s,
51
52
  mt,
52
53
  M == null ? void 0 : M.InputTag
53
54
  ), {
@@ -76,20 +77,20 @@ function gt(n, l) {
76
77
  onInputChange: O,
77
78
  onKeyDown: z,
78
79
  onPaste: L,
79
- onChange: j,
80
- onFocus: F,
81
- onBlur: H,
80
+ onChange: F,
81
+ onFocus: H,
82
+ onBlur: j,
82
83
  onPressEnter: U,
83
84
  onRemove: W,
84
85
  onClear: B,
85
86
  onClick: re,
86
87
  ...Oe
87
- } = p, a = d("input-tag"), V = "size" in p ? p.size : Pe, _ = typeof m == "object" ? m.count : m, I = C(), G = C(null), K = C(), [P, se] = Xe(!1), [r, ze] = ye([], {
88
+ } = p, a = d("input-tag"), V = "size" in p ? p.size : Pe, _ = typeof m == "object" ? m.count : m, I = C(), G = C(null), K = C(), [P, ne] = Xe(!1), [r, ze] = be([], {
88
89
  defaultValue: "defaultValue" in p ? Te(p.defaultValue) : void 0,
89
90
  value: "value" in p ? Te(p.value) : void 0
90
- }), [y, w] = ye("", {
91
+ }), [b, w] = be("", {
91
92
  value: p.inputValue
92
- }), Le = dt(r), je = !!(ke && !g && !v);
93
+ }), Le = dt(r), Fe = !!(ke && !g && !v);
93
94
  qe(l, () => {
94
95
  var e, t;
95
96
  return {
@@ -98,23 +99,23 @@ function gt(n, l) {
98
99
  getRootDOMNode: () => K.current
99
100
  };
100
101
  }, []);
101
- const b = (e, t) => {
102
- v || g || ("value" in p || ze(e), j == null || j(Ee ? e : e.map((s) => s.value), t));
103
- }, ne = (e, t, s) => {
104
- W == null || W(e, t, s), b(
102
+ const y = (e, t) => {
103
+ v || g || ("value" in p || ze(e), F == null || F(Ee ? e : e.map((n) => n.value), t));
104
+ }, se = (e, t, n) => {
105
+ W == null || W(e, t, n), y(
105
106
  [...r.slice(0, t), ...r.slice(t + 1)],
106
107
  "remove"
107
108
  );
108
- }, Fe = at(
109
+ }, He = at(
109
110
  /* @__PURE__ */ new Map([
110
111
  [
111
112
  ot.key,
112
113
  (e) => {
113
114
  if (!e.target.value && r.length)
114
115
  for (let t = r.length - 1; t >= 0; t--) {
115
- const s = r[t];
116
- if (s.closable !== !1) {
117
- ne(s, t, e);
116
+ const n = r[t];
117
+ if (n.closable !== !1) {
118
+ se(n, t, e);
118
119
  return;
119
120
  }
120
121
  }
@@ -123,25 +124,25 @@ function gt(n, l) {
123
124
  ])
124
125
  ), le = async () => {
125
126
  try {
126
- const e = typeof $ == "function" ? await $(y, r) : !0;
127
- e && (b(
127
+ const e = typeof $ == "function" ? await $(b, r) : !0;
128
+ e && (y(
128
129
  r.concat({
129
- value: e === !0 ? y : e,
130
- label: y
130
+ value: e === !0 ? b : e,
131
+ label: b
131
132
  }),
132
133
  "add"
133
134
  ), w(""));
134
135
  } catch (e) {
135
136
  console.error(e);
136
137
  }
137
- }, ce = (e, t, s = !1) => {
138
+ }, ce = (e, t, n = !1) => {
138
139
  let { value: o, label: c } = e, f = !g && !v && e.closable !== !1, u = typeof o == "object" ? t : o;
139
140
  const h = (We) => {
140
- ne(e, t, We);
141
+ se(e, t, We);
141
142
  };
142
- if (!s && typeof _ == "number" && t >= _)
143
+ if (!n && typeof _ == "number" && t >= _)
143
144
  if (t === r.length - 1) {
144
- if (c = ie(r.length - Number(_)), o = be, f = !1, u = be, !k)
145
+ if (c = ie(r.length - Number(_)), o = ye, f = !1, u = ye, !k)
145
146
  return { valueKey: u, dom: c };
146
147
  } else
147
148
  return { valueKey: u, dom: null };
@@ -163,7 +164,7 @@ function gt(n, l) {
163
164
  closable: f,
164
165
  onClose: h,
165
166
  visible: !0,
166
- children: nt(c),
167
+ children: st(c),
167
168
  closeIcon: N == null ? void 0 : N.removeIcon,
168
169
  __closeIconProps: {
169
170
  onMouseDown: E
@@ -185,10 +186,10 @@ function gt(n, l) {
185
186
  {
186
187
  ..._e(m) ? m.popoverProps : {},
187
188
  children: t(e, r),
188
- content: /* @__PURE__ */ i(Be, { children: r.map((s, o) => ({ tagValue: s, tagIndex: o })).slice(-e).map(
189
- ({ tagValue: s, tagIndex: o }) => {
189
+ content: /* @__PURE__ */ i(Be, { children: r.map((n, o) => ({ tagValue: n, tagIndex: o })).slice(-e).map(
190
+ ({ tagValue: n, tagIndex: o }) => {
190
191
  var c;
191
- return (c = ce(s, o, !0)) == null ? void 0 : c.dom;
192
+ return (c = ce(n, o, !0)) == null ? void 0 : c.dom;
192
193
  }
193
194
  ) })
194
195
  }
@@ -201,16 +202,16 @@ function gt(n, l) {
201
202
  );
202
203
  if (t.length > 1) {
203
204
  G.current = Date.now();
204
- const s = [];
205
+ const n = [];
205
206
  await Promise.all(
206
207
  t.map(async (o) => {
207
208
  const c = o ? typeof $ == "function" ? await $(o, r) : !0 : !1;
208
- c && s.push({
209
+ c && n.push({
209
210
  value: c === !0 ? o : c,
210
211
  label: o
211
212
  });
212
213
  })
213
- ), s.length && b(r.concat(s), "add");
214
+ ), n.length && y(r.concat(n), "add");
214
215
  }
215
216
  }
216
217
  }, pe = Re && !v && !g && r.length ? /* @__PURE__ */ i(
@@ -220,17 +221,17 @@ function gt(n, l) {
220
221
  className: `${a}-clear-icon`,
221
222
  onClick: (e) => {
222
223
  var t;
223
- e.stopPropagation(), b([], "clear"), P || (t = I.current) == null || t.focus(), B == null || B();
224
+ e.stopPropagation(), y([], "clear"), P || (t = I.current) == null || t.focus(), B == null || B();
224
225
  },
225
226
  children: N && N.clearIcon || /* @__PURE__ */ i(ct, {})
226
227
  },
227
228
  "clearIcon"
228
229
  ) : null, fe = v || Me, X = Ye(() => {
229
230
  const e = {};
230
- return r.map((s, o) => {
231
- const c = e[s.value] || 0, f = c >= 1;
232
- e[s.value] = c + 1;
233
- const { dom: u, valueKey: h } = ce(s, o);
231
+ return r.map((n, o) => {
232
+ const c = e[n.value] || 0, f = c >= 1;
233
+ e[n.value] = c + 1;
234
+ const { dom: u, valueKey: h } = ce(n, o);
234
235
  return Ve.isValidElement(u) ? /* @__PURE__ */ i(
235
236
  Ie,
236
237
  {
@@ -263,20 +264,20 @@ function gt(n, l) {
263
264
  pure: !0
264
265
  },
265
266
  onPressEnter: async (e) => {
266
- y && e.preventDefault(), U == null || U(e), await le();
267
+ b && e.preventDefault(), U == null || U(e), await le();
267
268
  },
268
269
  onFocus: (e) => {
269
- !fe && !g && (se(!0), F == null || F(e));
270
+ !fe && !g && (ne(!0), H == null || H(e));
270
271
  },
271
272
  onBlur: async (e) => {
272
- se(!1), H == null || H(e), xe && await le(), w("");
273
+ ne(!1), j == null || j(e), xe && await le(), w("");
273
274
  },
274
- value: y,
275
+ value: b,
275
276
  onChange: (e, t) => {
276
277
  O == null || O(e, t), t.nativeEvent.inputType !== "insertFromPaste" && ue(e), G.current ? w("") : w(e);
277
278
  },
278
279
  onKeyDown: (e) => {
279
- Fe(e), z == null || z(e);
280
+ He(e), z == null || z(e);
280
281
  },
281
282
  onPaste: (e) => {
282
283
  L == null || L(e), ue(e.clipboardData.getData("text"));
@@ -286,7 +287,7 @@ function gt(n, l) {
286
287
  },
287
288
  ft
288
289
  )
289
- ], He = !T(Z), de = !T(ee) || !T(pe), me = !T(te), ge = !T(ae), A = me || ge, he = p.status, ve = S(a, {
290
+ ], je = !T(Z), de = !T(ee) || !T(pe), me = !T(te), ge = !T(ae), A = me || ge, he = p.status, ve = S(a, {
290
291
  [`${a}-size-${V}`]: V,
291
292
  [`${a}-disabled`]: v,
292
293
  [`${a}-${he}`]: he,
@@ -310,8 +311,8 @@ function gt(n, l) {
310
311
  },
311
312
  ref: A ? void 0 : K,
312
313
  children: /* @__PURE__ */ R("div", { className: `${a}-view`, children: [
313
- He && /* @__PURE__ */ i("div", { className: `${a}-prefix`, onMouseDown: E, children: Z }),
314
- je ? /* @__PURE__ */ i(
314
+ je && /* @__PURE__ */ i("div", { className: `${a}-prefix`, onMouseDown: E, children: Z }),
315
+ Fe ? /* @__PURE__ */ i(
315
316
  Ce,
316
317
  {
317
318
  prefixCls: a,
@@ -322,7 +323,7 @@ function gt(n, l) {
322
323
  itemWrapperStyle: { display: "inline-block" },
323
324
  direction: "horizontal",
324
325
  onIndexChange: (e, t) => {
325
- b(function(o, c, f) {
326
+ y(function(o, c, f) {
326
327
  o = o.slice();
327
328
  const u = c > f, [h] = o.splice(c, 1);
328
329
  return o.splice(u ? f : f - 1, 0, h), o;
@@ -19,9 +19,9 @@ import Dt from "@unicom-cloud/icons/IconUiRotateLeft";
19
19
  import Ot from "@unicom-cloud/icons/IconUiRotateRight";
20
20
  import Vt from "@unicom-cloud/icons/IconUiZoomIn";
21
21
  import Yt from "@unicom-cloud/icons/IconUiZoomOut";
22
- import { a as qe, b as Ft } from "./z7sBNzI4.js";
22
+ import { a as qe, b as Ft } from "./xPzFRQJn.js";
23
23
  import "lodash/isEqualWith";
24
- import "react-is";
24
+ import "../utils/is.js";
25
25
  import { ArrowDown as Xt, ArrowUp as Bt, ArrowLeft as Gt, ArrowRight as Wt, Esc as Zt } from "../utils/keyCode.js";
26
26
  import "lodash/isNumber";
27
27
  import "lodash/merge";
@@ -38,7 +38,7 @@ import Kt from "../hooks/useOverflowHidden.js";
38
38
  import { findDOMNode as Jt } from "../utils/reactDOM.js";
39
39
  import "@unicom-cloud/utils/tween/easing";
40
40
  import Qt from "../Portal.js";
41
- import { P as Ge } from "./uUGMUxt_.js";
41
+ import { P as Ge } from "./DQ3uFRJD.js";
42
42
  import Y from "@unicom-cloud/utils/class-name";
43
43
  import en from "@unicom-cloud/icons/IconUiMore";
44
44
  import tn from "../Tooltip.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as $, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
2
2
  import { useRef as j, useEffect as X, useCallback as V, createContext as Oe, useContext as se } from "react";
3
3
  import ie from "../Button.js";
4
- import { a as Ce } from "./z7sBNzI4.js";
4
+ import { a as Ce } from "./xPzFRQJn.js";
5
5
  import ee from "@unicom-cloud/utils/class-name";
6
6
  import { dayjs as g, methods as Y, getDayjsValue as He, getNow as re, toLocal as ce } from "../utils/dayjs.js";
7
7
  import { padStart as O } from "../utils/pad.js";
@@ -1,14 +1,15 @@
1
1
  import { jsxs as z, Fragment as F, jsx as C } from "react/jsx-runtime";
2
2
  import O from "@unicom-cloud/icons/IconUiClose";
3
3
  import tt from "lodash/isFunction";
4
- import et, { useRef as b, useState as A, useImperativeHandle as ot, useEffect as T } from "react";
4
+ import ot, { useRef as b, useState as A, useImperativeHandle as et, useEffect as T } from "react";
5
5
  import nt from "../hooks/useKeyboardEvent.js";
6
- import { I as rt } from "./z7sBNzI4.js";
6
+ import { I as rt } from "./xPzFRQJn.js";
7
7
  import V from "@unicom-cloud/utils/class-name";
8
8
  import it from "../utils/fillNBSP.js";
9
- import { isObject as N } from "../utils/is.js";
9
+ import "../utils/is.js";
10
10
  import at from "../utils/omit.js";
11
11
  import { Enter as ct } from "../utils/keyCode.js";
12
+ import { isPlainObject as N } from "@unicom-cloud/utils/is";
12
13
  function ut({
13
14
  value: r,
14
15
  maxLength: g,
@@ -18,27 +19,27 @@ function ut({
18
19
  beforeTriggerValueChangeCallback: x,
19
20
  normalizeHandler: y
20
21
  }) {
21
- const m = b(!1), [i, p] = A(""), h = (o, n) => {
22
- x && x(o), // Avoid triggering onChange repeatedly for the same value
22
+ const m = b(!1), [i, p] = A(""), h = (e, n) => {
23
+ x && x(e), // Avoid triggering onChange repeatedly for the same value
23
24
  // Compositionend is earlier than onchange in Firefox, different with chrome
24
- o !== r && (g === void 0 || o.length <= g) && (f == null || f(o, n));
25
+ e !== r && (g === void 0 || e.length <= g) && (f == null || f(e, n));
25
26
  };
26
27
  return {
27
28
  compositionValue: i,
28
29
  triggerValueChangeCallback: h,
29
- compositionHandler: (o) => {
30
- m.current = o.type !== "compositionend", m.current || (p(void 0), h(o.target.value, o));
30
+ compositionHandler: (e) => {
31
+ m.current = e.type !== "compositionend", m.current || (p(void 0), h(e.target.value, e));
31
32
  },
32
- valueChangeHandler: (o) => {
33
- const n = o.target.value;
34
- m.current ? (m.current = !1, p(n)) : (i && p(void 0), h(n, o));
33
+ valueChangeHandler: (e) => {
34
+ const n = e.target.value;
35
+ m.current ? (m.current = !1, p(n)) : (i && p(void 0), h(n, e));
35
36
  },
36
- keyDownHandler: (o) => {
37
- const n = o.key;
38
- if (!m.current && (u == null || u(o), n === ct.key)) {
39
- l == null || l(o);
37
+ keyDownHandler: (e) => {
38
+ const n = e.key;
39
+ if (!m.current && (u == null || u(e), n === ct.key)) {
40
+ l == null || l(e);
40
41
  const v = y == null ? void 0 : y("onPressEnter");
41
- v && h(v(o.target.value), o);
42
+ v && h(v(e.target.value), e);
42
43
  }
43
44
  }
44
45
  };
@@ -63,7 +64,7 @@ const st = 2, lt = (r) => {
63
64
  "borderRight",
64
65
  "boxSizing"
65
66
  ].reduce((u, l) => (u[l] = g[l], u), {});
66
- }, dt = et.forwardRef(
67
+ }, dt = ot.forwardRef(
67
68
  (r, g) => {
68
69
  const {
69
70
  allowClear: f,
@@ -75,15 +76,15 @@ const st = 2, lt = (r) => {
75
76
  prefixCls: i,
76
77
  hasParent: p,
77
78
  size: h,
78
- value: o,
79
+ value: e,
79
80
  autoFitWidth: n,
80
81
  onClear: v,
81
- readOnly: R,
82
+ readOnly: P,
82
83
  onChange: U,
83
84
  onKeyDown: K,
84
85
  onPressEnter: q,
85
86
  maxLength: S,
86
- clearIcon: B,
87
+ clearIcon: R,
87
88
  ...s
88
89
  } = r, G = at(s, [
89
90
  "error",
@@ -100,10 +101,10 @@ const st = 2, lt = (r) => {
100
101
  "normalize",
101
102
  "normalizeTrigger",
102
103
  "autoWidth"
103
- ]), [P, J] = A(), E = nt(), a = b(), d = b(), D = b(null), H = N(S) ? S.errorOnly ? void 0 : S.length : S, L = (t) => {
104
- let e;
104
+ ]), [B, J] = A(), E = nt(), a = b(), d = b(), D = b(null), H = N(S) ? S.errorOnly ? void 0 : S.length : S, L = (t) => {
105
+ let o;
105
106
  const c = r.normalizeTrigger || ["onBlur"];
106
- return Array.isArray(c) && c.indexOf(t) > -1 && tt(r.normalize) && (e = r.normalize), e;
107
+ return Array.isArray(c) && c.indexOf(t) > -1 && tt(r.normalize) && (o = r.normalize), o;
107
108
  }, {
108
109
  compositionValue: Q,
109
110
  valueChangeHandler: X,
@@ -111,7 +112,7 @@ const st = 2, lt = (r) => {
111
112
  keyDownHandler: Y,
112
113
  triggerValueChangeCallback: M
113
114
  } = ut({
114
- value: o,
115
+ value: e,
115
116
  maxLength: H,
116
117
  onChange: U,
117
118
  onKeyDown: K,
@@ -129,43 +130,43 @@ const st = 2, lt = (r) => {
129
130
  ), k = {
130
131
  "aria-invalid": r.status === "error" || void 0,
131
132
  ...G,
132
- readOnly: R,
133
+ readOnly: P,
133
134
  maxLength: H,
134
135
  disabled: u,
135
136
  placeholder: l,
136
- value: Q || o || "",
137
+ value: Q || e || "",
137
138
  className: Z,
138
139
  onKeyDown: Y,
139
140
  onChange: X,
140
141
  onCompositionStart: (t) => {
141
- var e;
142
- (e = s.onCompositionStart) == null || e.call(s, t), $(t);
142
+ var o;
143
+ (o = s.onCompositionStart) == null || o.call(s, t), $(t);
143
144
  },
144
145
  onCompositionUpdate: (t) => {
145
- var e;
146
- (e = s.onCompositionUpdate) == null || e.call(s, t), $(t);
146
+ var o;
147
+ (o = s.onCompositionUpdate) == null || o.call(s, t), $(t);
147
148
  },
148
149
  onCompositionEnd: (t) => {
149
- var e;
150
- (e = s.onCompositionEnd) == null || e.call(s, t), $(t);
150
+ var o;
151
+ (o = s.onCompositionEnd) == null || o.call(s, t), $(t);
151
152
  },
152
153
  onBlur: (t) => {
153
154
  var c;
154
155
  (c = r.onBlur) == null || c.call(r, t);
155
- const e = L("onBlur");
156
- e && M(e(t.target.value), t);
156
+ const o = L("onBlur");
157
+ o && M(o(t.target.value), t);
157
158
  }
158
159
  };
159
- ot(g, () => ({
160
+ et(g, () => ({
160
161
  dom: a.current,
161
162
  getRootDOMNode: () => a.current,
162
163
  focus: () => {
163
- var t, e;
164
- (e = (t = a.current) == null ? void 0 : t.focus) == null || e.call(t);
164
+ var t, o;
165
+ (o = (t = a.current) == null ? void 0 : t.focus) == null || o.call(t);
165
166
  },
166
167
  blur: () => {
167
- var t, e;
168
- (e = (t = a.current) == null ? void 0 : t.blur) == null || e.call(t);
168
+ var t, o;
169
+ (o = (t = a.current) == null ? void 0 : t.blur) == null || o.call(t);
169
170
  }
170
171
  }), []);
171
172
  const w = () => {
@@ -191,15 +192,15 @@ const st = 2, lt = (r) => {
191
192
  w();
192
193
  D.current = c;
193
194
  }
194
- let e;
195
- return d.current && (e = new ResizeObserver(t), e.observe(d.current)), () => {
195
+ let o;
196
+ return d.current && (o = new ResizeObserver(t), o.observe(d.current)), () => {
196
197
  var c, I;
197
- d.current && ((c = e == null ? void 0 : e.unobserve) == null || c.call(e, d.current)), (I = e == null ? void 0 : e.disconnect) == null || I.call(e), e = null;
198
+ d.current && ((c = o == null ? void 0 : o.unobserve) == null || c.call(o, d.current)), (I = o == null ? void 0 : o.disconnect) == null || I.call(o), o = null;
198
199
  };
199
200
  }, [d.current]), /* @__PURE__ */ z(F, { children: [
200
201
  f ? /* @__PURE__ */ z(F, { children: [
201
202
  /* @__PURE__ */ C("input", { ref: a, ...k }),
202
- !R && !u && f && o ? B !== void 0 ? /* @__PURE__ */ C(
203
+ !P && !u && f && e ? R !== void 0 ? /* @__PURE__ */ C(
203
204
  "span",
204
205
  {
205
206
  tabIndex: 0,
@@ -211,7 +212,7 @@ const st = 2, lt = (r) => {
211
212
  onMouseDown: (t) => {
212
213
  t.preventDefault();
213
214
  },
214
- children: B
215
+ children: R
215
216
  }
216
217
  ) : /* @__PURE__ */ C(
217
218
  rt,
@@ -249,8 +250,8 @@ const st = 2, lt = (r) => {
249
250
  "span",
250
251
  {
251
252
  className: V(`${i}-mirror`),
252
- style: p ? P : {
253
- ...P,
253
+ style: p ? B : {
254
+ ...B,
254
255
  ...y,
255
256
  ..."height" in r ? { height: m } : {}
256
257
  },