@unicom-cloud/ui 0.8.87 → 0.8.89

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 (111) hide show
  1. package/AutoComplete.js +2 -2
  2. package/Breadcrumb.js +1 -1
  3. package/Calendar.js +1 -1
  4. package/Cascader.js +1 -1
  5. package/Checkbox.js +1 -1
  6. package/Collapse.js +1 -1
  7. package/ColorPicker.js +1 -1
  8. package/Dropdown.js +1 -1
  9. package/Image.js +1 -1
  10. package/List.js +1 -1
  11. package/Mentions.js +2 -2
  12. package/Menu.js +1 -1
  13. package/Modal.js +1 -1
  14. package/Pagination.js +1 -1
  15. package/Popconfirm.js +1 -1
  16. package/Radio.js +1 -1
  17. package/ResizeBox.js +1 -1
  18. package/Select.js +1 -1
  19. package/Slider.js +1 -1
  20. package/Table.js +1 -1
  21. package/Tabs.js +1 -1
  22. package/Transfer.js +2 -2
  23. package/Tree.js +1 -1
  24. package/TreeSelect.js +1 -1
  25. package/Typography.js +1 -1
  26. package/auto-complete/index.js +2 -2
  27. package/breadcrumb/index.js +1 -1
  28. package/calendar/index.js +1 -1
  29. package/cascader/Cascader.js +2 -2
  30. package/cascader/index.js +1 -1
  31. package/cascader/util.js +1 -1
  32. package/checkbox/Checkbox.js +2 -2
  33. package/checkbox/Group.js +2 -2
  34. package/checkbox/GroupBlock.js +1 -1
  35. package/checkbox/index.js +2 -2
  36. package/chunk/{BRPQJFSI.js → BL8tIaO8.js} +1 -1
  37. package/chunk/{DuWBv5j3.js → CPCJg6bv.js} +1 -1
  38. package/chunk/{DSXeBMp3.js → CgyNQvYg.js} +5 -5
  39. package/chunk/{BZJwzdhZ.js → CkEaf5V0.js} +1 -1
  40. package/chunk/{CXPOj2uy.js → D5wldVRB.js} +5 -5
  41. package/chunk/{B1kymbJZ.js → DWvmq7az.js} +2 -2
  42. package/chunk/{BJjotfW6.js → DYmI9fFY.js} +1 -1
  43. package/collapse/Collapse.js +2 -2
  44. package/collapse/Item.js +1 -1
  45. package/collapse/index.js +1 -1
  46. package/color-picker/Panel.js +1 -1
  47. package/color-picker/index.js +1 -1
  48. package/dropdown/index.js +1 -1
  49. package/hooks/index.js +1 -1
  50. package/hooks/useMergeValue.js +1 -1
  51. package/hooks/useVerificationCode.js +1 -1
  52. package/image/Image.js +2 -2
  53. package/image/ImagePreview.js +2 -2
  54. package/image/ImagePreviewGroup.js +2 -2
  55. package/image/index.js +1 -1
  56. package/index.js +7 -7
  57. package/input/Button.js +1 -1
  58. package/input/Input.js +432 -438
  59. package/input/Password.js +1 -1
  60. package/input/Search.js +3 -4
  61. package/input/Textarea.js +1 -1
  62. package/input-tag/InputTag.js +1 -1
  63. package/layout/Sider.js +1 -1
  64. package/list/index.js +1 -1
  65. package/mentions/index.js +2 -2
  66. package/menu/Menu.js +2 -2
  67. package/menu/OverflowWrap.js +1 -1
  68. package/menu/index.js +2 -2
  69. package/modal/Confirm.js +1 -1
  70. package/modal/Modal.js +2 -2
  71. package/modal/index.js +1 -1
  72. package/package.json +1 -1
  73. package/pagination/PageOption.js +1 -1
  74. package/pagination/Pagination.js +2 -2
  75. package/pagination/index.js +1 -1
  76. package/popconfirm/index.js +1 -1
  77. package/radio/Group.js +2 -2
  78. package/radio/GroupBlock.js +1 -1
  79. package/radio/Radio.js +2 -2
  80. package/radio/index.js +2 -2
  81. package/resize-box/index.js +1 -1
  82. package/select/Option.js +1 -1
  83. package/select/Select.js +2 -2
  84. package/select/index.js +2 -2
  85. package/select/util.js +1 -1
  86. package/slider/Button.js +1 -1
  87. package/slider/index.js +1 -1
  88. package/space/index.js +54 -55
  89. package/style.css +1 -1
  90. package/table/Table.js +1 -1
  91. package/table/index.js +1 -1
  92. package/tabs/Tab.js +2 -2
  93. package/tabs/TabContent.js +1 -1
  94. package/tabs/index.js +2 -2
  95. package/transfer/Item.js +1 -1
  96. package/transfer/List.js +1 -1
  97. package/transfer/index.js +2 -2
  98. package/tree/Animation.js +1 -1
  99. package/tree/Node.js +1 -1
  100. package/tree/NodeList.js +1 -1
  101. package/tree/Tree.js +1 -1
  102. package/tree/index.js +1 -1
  103. package/tree-select/List.js +1 -1
  104. package/tree-select/Select.js +2 -2
  105. package/tree-select/index.js +2 -2
  106. package/types/common/space/interface.d.ts +1 -1
  107. package/types/pc/input/interface.d.ts +18 -21
  108. package/typography/Base.js +1 -1
  109. package/typography/Ellipsis.js +6 -6
  110. package/typography/index.js +1 -1
  111. package/version/index.js +1 -1
package/input/Input.js CHANGED
@@ -1,21 +1,21 @@
1
- import { jsx as c, jsxs as te, Fragment as He } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as te, Fragment as Pe } from "react/jsx-runtime";
2
+ import He from "lodash/isNil";
2
3
  import ne from "lodash/isPlainObject";
3
4
  import Fe from "lodash/isString";
4
- import _e from "lodash/isUndefined";
5
- import de, { useContext as ie, useState as se, useRef as re, useMemo as ce, useImperativeHandle as $e, useCallback as Ge, useEffect as xe, forwardRef as je } from "react";
6
- import { a as le, I as Ke } from "../chunk/B44Hj5ad.js";
7
- import { u as Ae } from "../chunk/BFTV6myl.js";
8
- import { u as me } from "../chunk/CXPOj2uy.js";
9
- import U from "@unicom-cloud/utils/class-name";
5
+ import de, { useContext as ie, useState as se, useRef as re, useMemo as ce, useImperativeHandle as Ie, useCallback as _e, useEffect as Ne, forwardRef as Ge } from "react";
6
+ import { a as le, I as je } from "../chunk/B44Hj5ad.js";
7
+ import { u as Re } from "../chunk/BFTV6myl.js";
8
+ import { u as me } from "../chunk/D5wldVRB.js";
9
+ import O from "@unicom-cloud/utils/class-name";
10
10
  import { contains as Se } from "../utils/dom.js";
11
- import Ee from "../button/index.js";
11
+ import Ke from "../button/index.js";
12
12
  import qe from "./Group.js";
13
13
  import Ye from "./InputElement.js";
14
14
  import Je from "@unicom-cloud/icons/IconUiDown";
15
15
  import Qe from "@unicom-cloud/icons/IconUiMinus";
16
16
  import Xe from "@unicom-cloud/icons/IconUiPlus";
17
17
  import Ze from "@unicom-cloud/icons/IconUiUp";
18
- import Ne from "lodash/isNumber";
18
+ import $e from "lodash/isNumber";
19
19
  import { ArrowDown as et, ArrowUp as tt } from "@unicom-cloud/utils/constant/keyboardCode";
20
20
  import { o as ve } from "../chunk/BKKEev13.js";
21
21
  import { getDecimal as oe } from "../input-number/decimal.js";
@@ -25,66 +25,70 @@ import at from "@unicom-cloud/icons/IconUiEyeInvisible";
25
25
  import { u as ot } from "../chunk/BYdIoY50.js";
26
26
  import st from "@unicom-cloud/icons/IconUiLoading";
27
27
  import Le from "@unicom-cloud/icons/IconUiSearch";
28
- import De from "../input-tag/InputTag.js";
28
+ import Ee from "../input-tag/InputTag.js";
29
29
  import it from "@unicom-cloud/icons/IconUiClose";
30
30
  import { u as lt } from "../chunk/B2yFlXke.js";
31
31
  import "../chunk/ClM74To2.js";
32
32
  import ut from "./autoSizeTextAreaHeight.js";
33
33
  import ct from "./useComposition.js";
34
- import { isPlainObject as Re } from "@unicom-cloud/utils/is";
35
- const be = de.forwardRef(
36
- (e, $) => {
37
- const { getPrefixCls: l } = ie(le), {
38
- className: M,
39
- style: b,
40
- placeholder: T,
34
+ import { isPlainObject as Ae } from "@unicom-cloud/utils/is";
35
+ const xe = de.forwardRef(
36
+ (e, C) => {
37
+ const { getPrefixCls: s } = ie(le), {
38
+ className: T,
39
+ style: $,
40
+ placeholder: I,
41
41
  disabled: n,
42
- loading: y,
43
- defaultValue: g,
44
- addAfter: A,
45
- buttonProps: v,
46
- onCallback: E,
47
- ...p
48
- } = e, S = l == null ? void 0 : l("input-button"), P = U(S, `${S}-button`, M), I = ne(e.maxLength) ? e.maxLength.length : e.maxLength, x = ne(e.maxLength) && e.maxLength.errorOnly ? void 0 : I, [C, u] = me("", {
49
- defaultValue: "defaultValue" in e ? Q(e.defaultValue, x) : void 0,
50
- value: "value" in e ? Q(e.value, x) : void 0
42
+ loading: U,
43
+ defaultValue: v,
44
+ addAfter: y,
45
+ buttonProps: u,
46
+ label: k,
47
+ onCallback: p,
48
+ ...L
49
+ } = e, R = s == null ? void 0 : s("input-button"), w = y === void 0 ? /* @__PURE__ */ c(
50
+ Ke,
51
+ {
52
+ type: "primary",
53
+ disabled: n,
54
+ size: L.size,
55
+ loadingFixedWidth: !0,
56
+ ...u,
57
+ className: O(`${R}-btn`, u == null ? void 0 : u.className),
58
+ onClick: (f) => {
59
+ var h, E;
60
+ p == null || p(a), (h = e.onClick) == null || h.call(e, f), (E = u == null ? void 0 : u.onClick) == null || E.call(u, f);
61
+ },
62
+ children: k ?? "确定"
63
+ }
64
+ ) : y, N = ne(e.maxLength) ? e.maxLength.length : e.maxLength, m = ne(e.maxLength) && e.maxLength.errorOnly ? void 0 : N, [a, g] = me("", {
65
+ defaultValue: "defaultValue" in e ? Q(e.defaultValue, m) : void 0,
66
+ value: "value" in e ? Q(e.value, m) : void 0
51
67
  });
52
68
  return /* @__PURE__ */ c(
53
- R,
69
+ M,
54
70
  {
55
- ...p,
56
- disabled: n,
57
- className: P,
58
- style: b,
59
- ref: $,
60
- placeholder: T,
61
- addAfter: A !== void 0 ? A : /* @__PURE__ */ c(
62
- Ee,
63
- {
64
- disabled: n,
65
- size: p.size,
66
- className: `${S}-btn`,
67
- type: "primary",
68
- onClick: (d) => {
69
- var a;
70
- E == null || E(C), (a = e.onClick) == null || a.call(e, d);
71
- },
72
- loading: y,
73
- loadingFixedWidth: !0,
74
- ...v,
75
- children: e.label ?? "确定"
76
- }
71
+ ...L,
72
+ className: O(
73
+ R,
74
+ w && `${R}-has-after`,
75
+ T
77
76
  ),
78
- defaultValue: g,
79
- onChange: (d, a) => {
80
- var m;
81
- u(d), (m = e.onChange) == null || m.call(e, d, a);
77
+ style: $,
78
+ ref: C,
79
+ defaultValue: v,
80
+ placeholder: I,
81
+ addAfter: w,
82
+ disabled: n,
83
+ onChange: (f, h) => {
84
+ var E;
85
+ g(f), (E = e.onChange) == null || E.call(e, f, h);
82
86
  }
83
87
  }
84
88
  );
85
89
  }
86
90
  );
87
- be.displayName = "Input.Button";
91
+ xe.displayName = "Input.Button";
88
92
  const dt = 200, mt = 1e3, ft = {
89
93
  max: 1 / 0,
90
94
  min: -1 / 0,
@@ -92,453 +96,443 @@ const dt = 200, mt = 1e3, ft = {
92
96
  mode: "embed",
93
97
  parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
94
98
  };
95
- function gt(e, $) {
99
+ function pt(e, C) {
96
100
  var Ve;
97
101
  const {
98
- getPrefixCls: l,
99
- size: M,
100
- componentConfig: b,
101
- rtl: T
102
- } = ie(le), n = Ae(
102
+ getPrefixCls: s,
103
+ size: T,
104
+ componentConfig: $,
105
+ rtl: I
106
+ } = ie(le), n = Re(
103
107
  e,
104
108
  ft,
105
- b == null ? void 0 : b.InputNumber
109
+ $ == null ? void 0 : $.InputNumber
106
110
  ), {
107
- className: y,
108
- style: g,
109
- defaultValue: A,
110
- disabled: v,
111
- error: E,
111
+ className: U,
112
+ style: v,
113
+ defaultValue: y,
114
+ disabled: u,
115
+ error: k,
112
116
  readOnly: p,
113
- strictMode: S,
114
- placeholder: P,
115
- hideControl: I,
116
- suffix: x,
117
- prefix: C,
118
- icons: u,
119
- mode: d,
120
- size: a,
121
- step: m,
122
- precision: k,
123
- min: h,
124
- max: z,
117
+ strictMode: L,
118
+ placeholder: R,
119
+ hideControl: w,
120
+ suffix: N,
121
+ prefix: m,
122
+ icons: a,
123
+ mode: g,
124
+ size: f,
125
+ step: h,
126
+ precision: E,
127
+ min: x,
128
+ max: W,
125
129
  parser: G,
126
- formatter: W,
127
- onBlur: L,
130
+ formatter: B,
131
+ onBlur: A,
128
132
  onFocus: j,
129
- onChange: B,
133
+ onChange: P,
130
134
  onKeyDown: H,
131
135
  ...X
132
- } = n, w = l == null ? void 0 : l("input-number"), r = a || M, O = (() => {
133
- if (Ne(k)) {
134
- const t = `${m}`.split(".")[1], f = t && t.length || 0;
135
- return Math.max(f, k);
136
+ } = n, V = s == null ? void 0 : s("input-number"), r = f || T, z = (() => {
137
+ if ($e(E)) {
138
+ const t = `${h}`.split(".")[1], d = t && t.length || 0;
139
+ return Math.max(d, E);
136
140
  }
137
141
  return null;
138
142
  })(), [q, K] = se(() => oe(
139
- "value" in n ? n.value : "defaultValue" in n ? A : void 0
140
- )), [D, Z] = se(""), [ae, Y] = se(!1), [J, F] = se(!1), i = re(null), o = re(null), N = re(!1), s = ce(() => "value" in n ? oe(n.value) : q, [n.value, q]), [_, ee] = ce(() => [oe(z), oe(h)], [z, h]);
141
- $e($, () => o.current, []);
142
- const fe = (t, f) => {
143
- if (K(t), !t.equals(s) && B) {
144
- const V = t.toString({
143
+ "value" in n ? n.value : "defaultValue" in n ? y : void 0
144
+ )), [D, Z] = se(""), [ae, Y] = se(!1), [J, F] = se(!1), l = re(null), o = re(null), b = re(!1), i = ce(() => "value" in n ? oe(n.value) : q, [n.value, q]), [_, ee] = ce(() => [oe(W), oe(x)], [W, x]);
145
+ Ie(C, () => o.current, []);
146
+ const fe = (t, d) => {
147
+ if (K(t), !t.equals(i) && P) {
148
+ const S = t.toString({
145
149
  safe: !0,
146
- precision: O
150
+ precision: z
147
151
  });
148
- B(
149
- t.isEmpty ? void 0 : S ? V : t.isNaN ? NaN : Number(V),
150
- f
152
+ P(
153
+ t.isEmpty ? void 0 : L ? S : t.isNaN ? NaN : Number(S),
154
+ d
151
155
  );
152
156
  }
153
- }, ge = () => {
154
- i.current && clearTimeout(i.current), i.current = null;
155
- }, ue = Ge(
157
+ }, pe = () => {
158
+ l.current && clearTimeout(l.current), l.current = null;
159
+ }, ue = _e(
156
160
  (t) => {
157
- let f = t;
158
- return f.less(ee) ? f = ee : _.less(f) && (f = _), f;
161
+ let d = t;
162
+ return d.less(ee) ? d = ee : _.less(d) && (d = _), d;
159
163
  },
160
164
  [ee, _]
161
165
  );
162
- xe(() => () => ge(), []), xe(() => {
163
- N.current = !1;
164
- }, [n.value]), xe(() => {
165
- const t = s.less(ee) || _.less(s);
166
- t && N.current && fe(ue(s), "outOfRange"), Y(t);
167
- }, [ee, _, s, ue]);
168
- const ye = (t, f, V = !1) => {
169
- if (t.persist(), t.preventDefault(), F(!1), v || p)
166
+ Ne(() => () => pe(), []), Ne(() => {
167
+ b.current = !1;
168
+ }, [n.value]), Ne(() => {
169
+ const t = i.less(ee) || _.less(i);
170
+ t && b.current && fe(ue(i), "outOfRange"), Y(t);
171
+ }, [ee, _, i, ue]);
172
+ const ye = (t, d, S = !1) => {
173
+ if (t.persist(), t.preventDefault(), F(!1), u || p)
170
174
  return;
171
- const We = s.isInvalid ? oe(h === -1 / 0 || h <= 0 && z >= 0 ? 0 : h) : s.add(f === "plus" ? m : -m);
175
+ const We = i.isInvalid ? oe(x === -1 / 0 || x <= 0 && W >= 0 ? 0 : x) : i.add(d === "plus" ? h : -h);
172
176
  if (fe(
173
177
  ue(We),
174
- f === "plus" ? "increase" : "decrease"
175
- ), o.current && o.current.focus(), V) {
176
- const Be = i.current === null;
177
- i.current = setTimeout(
178
+ d === "plus" ? "increase" : "decrease"
179
+ ), o.current && o.current.focus(), S) {
180
+ const Be = l.current === null;
181
+ l.current = setTimeout(
178
182
  () => t.target.dispatchEvent(t.nativeEvent),
179
183
  Be ? mt : dt
180
184
  );
181
185
  }
182
- }, we = ce(() => {
186
+ }, be = ce(() => {
183
187
  let t;
184
- return J ? t = G ? `${G(D)}` : D : Ne(O) ? t = s.toString({ safe: !0, precision: O }) : s.isInvalid ? t = "" : t = s.toString(), W ? W(t, { userTyping: J, input: D }) : t;
185
- }, [s, D, J, O, G, W]), Oe = nt({
188
+ return J ? t = G ? `${G(D)}` : D : $e(z) ? t = i.toString({ safe: !0, precision: z }) : i.isInvalid ? t = "" : t = i.toString(), B ? B(t, { userTyping: J, input: D }) : t;
189
+ }, [i, D, J, z, G, B]), ke = nt({
186
190
  inputElement: (Ve = o.current) == null ? void 0 : Ve.dom,
187
- inputValue: we
188
- }), Ue = {
189
- onChange: (t, f) => {
191
+ inputValue: be
192
+ }), Oe = {
193
+ onChange: (t, d) => {
190
194
  F(!0), t = t.trim().replace(/。/g, ".");
191
- const V = G ? G(t) : t;
192
- (Ne(+V) || V === "-" || !V || V === ".") && (Z(t), fe(ue(oe(V)), "manual"), Oe(f));
195
+ const S = G ? G(t) : t;
196
+ ($e(+S) || S === "-" || !S || S === ".") && (Z(t), fe(ue(oe(S)), "manual"), ke(d));
193
197
  },
194
198
  onKeyDown: (t) => {
195
- const f = t.key;
196
- f === et.key ? (t.stopPropagation(), ye(t, "minus")) : f === tt.key && (t.stopPropagation(), ye(t, "plus")), ge(), H == null || H(t);
199
+ const d = t.key;
200
+ d === et.key ? (t.stopPropagation(), ye(t, "minus")) : d === tt.key && (t.stopPropagation(), ye(t, "plus")), pe(), H == null || H(t);
197
201
  },
198
202
  onFocus: (t) => {
199
- var f, V;
200
- N.current = !0, Z((V = (f = o.current) == null ? void 0 : f.dom) == null ? void 0 : V.value), j == null || j(t);
203
+ var d, S;
204
+ b.current = !0, Z((S = (d = o.current) == null ? void 0 : d.dom) == null ? void 0 : S.value), j == null || j(t);
201
205
  },
202
206
  onBlur: (t) => {
203
- fe(ue(s), "outOfRange"), F(!1), L == null || L(t);
207
+ fe(ue(i), "outOfRange"), F(!1), A == null || A(t);
204
208
  }
205
- }, ke = (t) => p ? {} : {
206
- onMouseDown: (f) => ye(f, t, !0)
207
- }, Ce = !I && d === "button", ze = !I && !p && d === "embed", pe = (t, f) => {
208
- const V = !v && (s.isInvalid || (t === "plus" ? _.isInvalid || s.less(_) : ee.isInvalid || ee.less(s)));
209
+ }, Ue = (t) => p ? {} : {
210
+ onMouseDown: (d) => ye(d, t, !0)
211
+ }, Ce = !w && g === "button", ze = !w && !p && g === "embed", ge = (t, d) => {
212
+ const S = !u && (i.isInvalid || (t === "plus" ? _.isInvalid || i.less(_) : ee.isInvalid || ee.less(i)));
209
213
  return /* @__PURE__ */ c(
210
214
  "div",
211
215
  {
212
- className: U(`${w}-step-button`, {
213
- [`${w}-step-button-disabled`]: !V
216
+ className: O(`${V}-step-button`, {
217
+ [`${V}-step-button-disabled`]: !S
214
218
  }),
215
- onMouseLeave: ge,
216
- onMouseUp: ge,
217
- ...V ? ke(t) : {},
218
- children: f
219
+ onMouseLeave: pe,
220
+ onMouseUp: pe,
221
+ ...S ? Ue(t) : {},
222
+ children: d
219
223
  }
220
224
  );
221
225
  };
222
226
  return /* @__PURE__ */ c(
223
- R,
227
+ M,
224
228
  {
225
229
  _ignorePropsFromGlobal: !0,
226
230
  role: "spinbutton",
227
- "aria-valuemax": z,
228
- "aria-valuemin": h,
229
- "aria-valuenow": s.isEmpty ? void 0 : s.toNumber(),
231
+ "aria-valuemax": W,
232
+ "aria-valuemin": x,
233
+ "aria-valuenow": i.isEmpty ? void 0 : i.toNumber(),
230
234
  ...ve(X, ["allowClear"]),
231
- ...Ue,
232
- style: g,
233
- className: U(
234
- w,
235
- `${w}-mode-${d}`,
236
- `${w}-size-${r}`,
235
+ ...Oe,
236
+ style: v,
237
+ className: O(
238
+ V,
239
+ `${V}-mode-${g}`,
240
+ `${V}-size-${r}`,
237
241
  {
238
- [`${w}-rtl`]: T,
239
- [`${w}-readonly`]: p,
240
- [`${w}-illegal-value`]: !s.isEmpty && ae
242
+ [`${V}-rtl`]: I,
243
+ [`${V}-readonly`]: p,
244
+ [`${V}-illegal-value`]: !i.isEmpty && ae
241
245
  },
242
- y
246
+ U
243
247
  ),
244
248
  ref: o,
245
249
  size: r,
246
- error: E,
247
- disabled: v,
250
+ error: k,
251
+ disabled: u,
248
252
  readOnly: p,
249
- value: we,
250
- placeholder: P,
251
- prefix: C && /* @__PURE__ */ c("div", { className: `${w}-prefix`, children: C }),
252
- suffix: /* @__PURE__ */ te(He, { children: [
253
- ze && /* @__PURE__ */ te("div", { className: `${w}-step-layer`, children: [
254
- pe(
253
+ value: be,
254
+ placeholder: R,
255
+ prefix: m && /* @__PURE__ */ c("div", { className: `${V}-prefix`, children: m }),
256
+ suffix: /* @__PURE__ */ te(Pe, { children: [
257
+ ze && /* @__PURE__ */ te("div", { className: `${V}-step-layer`, children: [
258
+ ge(
255
259
  "plus",
256
- u && u.up ? u.up : /* @__PURE__ */ c(Ze, {})
260
+ a && a.up ? a.up : /* @__PURE__ */ c(Ze, {})
257
261
  ),
258
- pe(
262
+ ge(
259
263
  "minus",
260
- u && u.down ? u.down : /* @__PURE__ */ c(Je, {})
264
+ a && a.down ? a.down : /* @__PURE__ */ c(Je, {})
261
265
  )
262
266
  ] }),
263
- x && /* @__PURE__ */ c("div", { className: `${w}-suffix`, children: x })
267
+ N && /* @__PURE__ */ c("div", { className: `${V}-suffix`, children: N })
264
268
  ] }),
265
- addBefore: Ce && pe(
269
+ addBefore: Ce && ge(
266
270
  "minus",
267
- u && u.minus ? u.minus : /* @__PURE__ */ c(Qe, {})
271
+ a && a.minus ? a.minus : /* @__PURE__ */ c(Qe, {})
268
272
  ),
269
- addAfter: Ce && pe(
273
+ addAfter: Ce && ge(
270
274
  "plus",
271
- u && u.plus ? u.plus : /* @__PURE__ */ c(Xe, {})
275
+ a && a.plus ? a.plus : /* @__PURE__ */ c(Xe, {})
272
276
  )
273
277
  }
274
278
  );
275
279
  }
276
- const Ie = de.forwardRef(
277
- gt
280
+ const we = de.forwardRef(
281
+ pt
278
282
  );
279
- Ie.displayName = "InputNumber";
280
- const Me = de.forwardRef(
281
- (e, $) => {
282
- const [l, M] = me(!1, {
283
+ we.displayName = "InputNumber";
284
+ const De = de.forwardRef(
285
+ (e, C) => {
286
+ const [s, T] = me(!1, {
283
287
  defaultValue: e.defaultVisibility,
284
288
  value: e.visibility
285
- }), { getPrefixCls: b } = ie(le), T = ot(), {
289
+ }), { getPrefixCls: $ } = ie(le), I = ot(), {
286
290
  className: n,
287
- visibilityToggle: y = !0,
288
- onVisibilityChange: g,
289
- ...A
290
- } = e, v = b == null ? void 0 : b("input-password"), E = U(
291
- v,
291
+ visibilityToggle: U = !0,
292
+ onVisibilityChange: v,
293
+ ...y
294
+ } = e, u = $ == null ? void 0 : $("input-password"), k = O(
295
+ u,
292
296
  {
293
- [`${v}-visibility`]: y
297
+ [`${u}-visibility`]: U
294
298
  },
295
299
  n
296
- ), p = (I) => {
297
- "visibility" in e || M(I), g == null || g(I);
300
+ ), p = (w) => {
301
+ "visibility" in e || T(w), v == null || v(w);
298
302
  };
299
- let S = e.suffix;
300
- const P = () => {
301
- p(!l);
303
+ let L = e.suffix;
304
+ const R = () => {
305
+ p(!s);
302
306
  };
303
- if (y) {
304
- const I = {
305
- onClick: P,
307
+ if (U) {
308
+ const w = {
309
+ onClick: R,
306
310
  // 预防focus丢失
307
- onMouseDown: (x) => x.preventDefault(),
308
- onMouseUp: (x) => x.preventDefault(),
309
- ...T({
310
- onPressEnter: P
311
+ onMouseDown: (N) => N.preventDefault(),
312
+ onMouseUp: (N) => N.preventDefault(),
313
+ ...I({
314
+ onPressEnter: R
311
315
  })
312
316
  };
313
- e.suffix ? S = /* @__PURE__ */ c("span", { ...I, children: e.suffix }) : S = /* @__PURE__ */ c(
314
- l ? rt : at,
317
+ e.suffix ? L = /* @__PURE__ */ c("span", { ...w, children: e.suffix }) : L = /* @__PURE__ */ c(
318
+ s ? rt : at,
315
319
  {
316
- ...I,
320
+ ...w,
317
321
  focusable: void 0,
318
322
  "aria-hidden": void 0,
319
323
  // tabIndex: 0,
320
- className: `${v}-visibility-icon`
324
+ className: `${u}-visibility-icon`
321
325
  }
322
326
  );
323
327
  }
324
328
  return /* @__PURE__ */ c(
325
- R,
329
+ M,
326
330
  {
327
- ...ve(A, ["visibility", "defaultVisibility"]),
328
- type: l ? "text" : "password",
329
- className: E,
330
- ref: $,
331
- suffix: S
331
+ ...ve(y, ["visibility", "defaultVisibility"]),
332
+ type: s ? "text" : "password",
333
+ className: k,
334
+ ref: C,
335
+ suffix: L
332
336
  }
333
337
  );
334
338
  }
335
339
  );
336
- Me.displayName = "Password";
337
- const Te = de.forwardRef(
338
- (e, $) => {
339
- const { getPrefixCls: l } = ie(le), {
340
- className: M,
341
- style: b,
342
- placeholder: T,
343
- disabled: n,
344
- searchButton: y,
345
- loading: g,
346
- defaultValue: A,
347
- addAfter: v,
348
- suffix: E,
349
- ...p
350
- } = e, S = ne(e.maxLength) ? e.maxLength.length : e.maxLength, P = ne(e.maxLength) && e.maxLength.errorOnly ? void 0 : S, [I, x] = me("", {
351
- defaultValue: "defaultValue" in e ? Q(e.defaultValue, P) : void 0,
352
- value: "value" in e ? Q(e.value, P) : void 0
353
- }), C = l == null ? void 0 : l("input-search"), u = U(
354
- C,
355
- {
356
- [`${C}-button`]: y
357
- },
358
- M
359
- ), d = () => {
360
- var a;
361
- !n && ((a = e.onSearch) == null || a.call(e, I));
340
+ De.displayName = "Password";
341
+ const Me = de.forwardRef(
342
+ (e, C) => {
343
+ const { getPrefixCls: s } = ie(le), {
344
+ className: T,
345
+ disabled: $,
346
+ searchButton: I,
347
+ loading: n,
348
+ addAfter: U,
349
+ suffix: v,
350
+ buttonProps: y,
351
+ ...u
352
+ } = e, k = s == null ? void 0 : s("input-search"), p = ne(e.maxLength) ? e.maxLength.length : e.maxLength, L = ne(e.maxLength) && e.maxLength.errorOnly ? void 0 : p, [R, w] = me("", {
353
+ defaultValue: "defaultValue" in e ? Q(e.defaultValue, L) : void 0,
354
+ value: "value" in e ? Q(e.value, L) : void 0
355
+ }), N = () => {
356
+ var m;
357
+ $ || (m = e.onSearch) == null || m.call(e, R);
362
358
  };
363
359
  return /* @__PURE__ */ c(
364
- R,
360
+ xe,
365
361
  {
366
- ...ve(p, ["onSearch"]),
367
- disabled: n,
368
- className: u,
369
- style: b,
370
- ref: $,
371
- placeholder: T,
372
- addAfter: v !== void 0 ? v : y ? /* @__PURE__ */ c(
373
- Ee,
374
- {
375
- disabled: n,
376
- size: p.size,
377
- className: `${C}-btn`,
378
- type: "primary",
379
- onClick: d,
380
- loading: g,
381
- loadingFixedWidth: !0,
382
- icon: y === !0 && !g && /* @__PURE__ */ c(Le, {}),
383
- ...e == null ? void 0 : e.searchButtonProps,
384
- children: y !== !0 && y
362
+ ...ve(u, ["onSearch"]),
363
+ disabled: $,
364
+ className: O(
365
+ k,
366
+ I && `${k}-button`,
367
+ T
368
+ ),
369
+ ref: C,
370
+ label: I !== !0 && I,
371
+ addAfter: I ? U : null,
372
+ suffix: v === void 0 ? I ? null : n ? /* @__PURE__ */ c(st, {}) : /* @__PURE__ */ c(Le, { onClick: N }) : v,
373
+ buttonProps: {
374
+ className: `${k}-btn`,
375
+ loading: n,
376
+ icon: I === !0 && !n && /* @__PURE__ */ c(Le, {}),
377
+ ...y,
378
+ onClick(m) {
379
+ var a;
380
+ N(), (a = y == null ? void 0 : y.onClick) == null || a.call(y, m);
385
381
  }
386
- ) : null,
387
- suffix: E !== void 0 ? E : !y && (g ? /* @__PURE__ */ c(st, {}) : /* @__PURE__ */ c(Le, { onClick: d })),
388
- onChange: (a, m) => {
389
- var k;
390
- x(a), (k = e.onChange) == null || k.call(e, a, m);
391
382
  },
392
- defaultValue: A,
393
- onPressEnter: (a) => {
394
- var m;
395
- d(), (m = e.onPressEnter) == null || m.call(e, a);
383
+ onChange: (m, a) => {
384
+ var g;
385
+ w(m), (g = e.onChange) == null || g.call(e, m, a);
386
+ },
387
+ onPressEnter: (m) => {
388
+ var a;
389
+ N(), (a = e.onPressEnter) == null || a.call(e, m);
396
390
  }
397
391
  }
398
392
  );
399
393
  }
400
394
  );
401
- Te.displayName = "Search";
402
- const pt = (e, $) => {
395
+ Me.displayName = "Search";
396
+ const gt = (e, C) => {
403
397
  const {
404
- className: l,
405
- style: M,
406
- wrapperStyle: b,
407
- placeholder: T,
398
+ className: s,
399
+ style: T,
400
+ wrapperStyle: $,
401
+ placeholder: I,
408
402
  disabled: n,
409
- error: y,
410
- maxLength: g,
411
- showWordLimit: A,
412
- allowClear: v,
413
- onChange: E,
403
+ error: U,
404
+ maxLength: v,
405
+ showWordLimit: y,
406
+ allowClear: u,
407
+ onChange: k,
414
408
  onClear: p,
415
- onKeyDown: S,
416
- onPressEnter: P,
417
- status: I,
418
- clearIcon: x,
419
- ...C
420
- } = e, u = Re(g) ? g.length : g, d = Re(g) ? g.errorOnly ? void 0 : g.length : g, a = re(), [m, k] = se({}), [h, z] = me("", {
421
- defaultValue: "defaultValue" in e ? Q(e.defaultValue, d) : void 0,
422
- value: "value" in e ? Q(e.value, d) : void 0
409
+ onKeyDown: L,
410
+ onPressEnter: R,
411
+ status: w,
412
+ clearIcon: N,
413
+ ...m
414
+ } = e, a = Ae(v) ? v.length : v, g = Ae(v) ? v.errorOnly ? void 0 : v.length : v, f = re(), [h, E] = se({}), [x, W] = me("", {
415
+ defaultValue: "defaultValue" in e ? Q(e.defaultValue, g) : void 0,
416
+ value: "value" in e ? Q(e.value, g) : void 0
423
417
  }), {
424
418
  compositionValue: G,
425
- compositionHandler: W,
426
- valueChangeHandler: L,
419
+ compositionHandler: B,
420
+ valueChangeHandler: A,
427
421
  keyDownHandler: j,
428
- triggerValueChangeCallback: B
422
+ triggerValueChangeCallback: P
429
423
  } = ct({
430
- value: h,
431
- maxLength: d,
432
- onChange: E,
433
- onKeyDown: S,
434
- onPressEnter: P,
435
- beforeTriggerValueChangeCallback: (i) => {
436
- !("value" in e) && (d === void 0 || i.length <= d) && z(i);
424
+ value: x,
425
+ maxLength: g,
426
+ onChange: k,
427
+ onKeyDown: L,
428
+ onPressEnter: R,
429
+ beforeTriggerValueChangeCallback: (l) => {
430
+ !("value" in e) && (g === void 0 || l.length <= g) && W(l);
437
431
  }
438
- }), H = G || h || "", { getPrefixCls: X, rtl: w } = ie(le), r = X == null ? void 0 : X("textarea");
439
- n && (m.resize = "none");
440
- const O = () => {
441
- if (a.current && a.current.focus) {
442
- if (a.current.setSelectionRange) {
443
- const i = a.current.textContent.length;
444
- a.current.setSelectionRange(i, i);
432
+ }), H = G || x || "", { getPrefixCls: X, rtl: V } = ie(le), r = X == null ? void 0 : X("textarea");
433
+ n && (h.resize = "none");
434
+ const z = () => {
435
+ if (f.current && f.current.focus) {
436
+ if (f.current.setSelectionRange) {
437
+ const l = f.current.textContent.length;
438
+ f.current.setSelectionRange(l, l);
445
439
  }
446
- a.current.focus();
440
+ f.current.focus();
447
441
  }
448
442
  }, q = () => {
449
- const i = ut(
443
+ const l = ut(
450
444
  e.autoSize,
451
- a.current
445
+ f.current
452
446
  );
453
- i && k(i);
454
- }, K = (i) => {
455
- i.stopPropagation(), O(), B("", i), p == null || p();
447
+ l && E(l);
448
+ }, K = (l) => {
449
+ l.stopPropagation(), z(), P("", l), p == null || p();
456
450
  };
457
451
  lt(() => {
458
452
  q();
459
- }, [H]), $e(
460
- $,
453
+ }, [H]), Ie(
454
+ C,
461
455
  () => ({
462
- dom: a.current,
456
+ dom: f.current,
463
457
  focus: () => {
464
- O();
458
+ z();
465
459
  },
466
460
  blur: () => {
467
- var i, o;
468
- (o = (i = a.current) == null ? void 0 : i.blur) == null || o.call(i);
461
+ var l, o;
462
+ (o = (l = f.current) == null ? void 0 : l.blur) == null || o.call(l);
469
463
  },
470
- getRootDOMNode: () => a.current
464
+ getRootDOMNode: () => f.current
471
465
  }),
472
466
  []
473
467
  );
474
- const D = h ? h.length : 0, Z = u && A || v, ae = ce(() => !d && u ? D > u : !1, [D, u, d]), Y = I || (y || ae ? "error" : void 0), J = U(
468
+ const D = x ? x.length : 0, Z = a && y || u, ae = ce(() => !g && a ? D > a : !1, [D, a, g]), Y = w || (U || ae ? "error" : void 0), J = O(
475
469
  r,
476
470
  {
477
471
  [`${r}-${Y}`]: Y,
478
472
  // [`${prefixCls}-error`]: error || lengthError || status === 'error',
479
473
  [`${r}-disabled`]: n,
480
- [`${r}-rtl`]: w
474
+ [`${r}-rtl`]: V
481
475
  },
482
- l
476
+ s
483
477
  ), F = /* @__PURE__ */ c(
484
478
  "textarea",
485
479
  {
486
- ...ve(C, ["autoSize", "defaultValue"]),
487
- maxLength: d,
488
- ref: a,
489
- style: { ...M, ...m },
480
+ ...ve(m, ["autoSize", "defaultValue"]),
481
+ maxLength: g,
482
+ ref: f,
483
+ style: { ...T, ...h },
490
484
  className: J,
491
- placeholder: T,
485
+ placeholder: I,
492
486
  disabled: n,
493
487
  value: H,
494
- onChange: L,
488
+ onChange: A,
495
489
  onKeyDown: j,
496
- onCompositionStart: W,
497
- onCompositionUpdate: W,
498
- onCompositionEnd: W
490
+ onCompositionStart: B,
491
+ onCompositionUpdate: B,
492
+ onCompositionEnd: B
499
493
  }
500
494
  );
501
495
  if (Z) {
502
- const i = !n && v && h, [o, N] = w ? [u, D] : [D, u];
496
+ const l = !n && u && x, [o, b] = V ? [a, D] : [D, a];
503
497
  return /* @__PURE__ */ te(
504
498
  "div",
505
499
  {
506
- className: U(`${r}-wrapper`, {
507
- [`${r}-clear-wrapper`]: v,
508
- [`${r}-wrapper-rtl`]: w
500
+ className: O(`${r}-wrapper`, {
501
+ [`${r}-clear-wrapper`]: u,
502
+ [`${r}-wrapper-rtl`]: V
509
503
  }),
510
- style: b,
504
+ style: $,
511
505
  children: [
512
506
  F,
513
- i ? x !== void 0 ? /* @__PURE__ */ c(
507
+ l ? N !== void 0 ? /* @__PURE__ */ c(
514
508
  "span",
515
509
  {
516
510
  className: `${r}-clear-icon`,
517
511
  onClick: K,
518
- onMouseDown: (s) => {
519
- s.preventDefault();
512
+ onMouseDown: (i) => {
513
+ i.preventDefault();
520
514
  },
521
- children: x
515
+ children: N
522
516
  }
523
- ) : /* @__PURE__ */ c(Ke, { className: `${r}-clear-icon`, children: /* @__PURE__ */ c(
517
+ ) : /* @__PURE__ */ c(je, { className: `${r}-clear-icon`, children: /* @__PURE__ */ c(
524
518
  it,
525
519
  {
526
520
  onClick: K,
527
- onMouseDown: (s) => {
528
- s.preventDefault();
521
+ onMouseDown: (i) => {
522
+ i.preventDefault();
529
523
  }
530
524
  }
531
525
  ) }) : null,
532
- u && A && /* @__PURE__ */ te(
526
+ a && y && /* @__PURE__ */ te(
533
527
  "span",
534
528
  {
535
- className: U(`${r}-word-limit`, {
529
+ className: O(`${r}-word-limit`, {
536
530
  [`${r}-word-limit-error`]: ae
537
531
  }),
538
532
  children: [
539
533
  o,
540
534
  "/",
541
- N
535
+ b
542
536
  ]
543
537
  }
544
538
  )
@@ -547,152 +541,152 @@ const pt = (e, $) => {
547
541
  );
548
542
  }
549
543
  return F;
550
- }, Pe = de.forwardRef(pt);
551
- Pe.displayName = "TextArea";
544
+ }, Te = de.forwardRef(gt);
545
+ Te.displayName = "TextArea";
552
546
  const ht = (e) => {
553
547
  e.target.tagName === "INPUT" || e.preventDefault();
554
- }, he = (e, $, l = {}, M) => $ ? /* @__PURE__ */ c("span", { style: l, className: e, onClick: M, children: $ }) : null;
555
- function Q(e, $) {
556
- const l = e !== null && !_e(e) && !Fe(e) ? String(e) : e || "";
557
- return $ ? l.slice(0, $) : l;
548
+ }, he = (e, C, s = {}, T) => C ? /* @__PURE__ */ c("span", { style: s, className: e, onClick: T, children: C }) : null;
549
+ function Q(e, C) {
550
+ let s = e || "";
551
+ return Fe(e) || He(e) || (s = String(e)), C && (s = s.slice(0, C)), s;
558
552
  }
559
- function vt(e, $) {
553
+ function vt(e, C) {
560
554
  const {
561
- getPrefixCls: l,
562
- size: M,
563
- componentConfig: b,
564
- rtl: T
565
- } = ie(le), n = Ae(
555
+ getPrefixCls: s,
556
+ size: T,
557
+ componentConfig: $,
558
+ rtl: I
559
+ } = ie(le), n = Re(
566
560
  e,
567
561
  {},
568
- b == null ? void 0 : b.Input
562
+ $ == null ? void 0 : $.Input
569
563
  ), {
570
- className: y,
571
- style: g,
572
- addBefore: A,
573
- addAfter: v,
574
- suffix: E,
564
+ className: U,
565
+ style: v,
566
+ addBefore: y,
567
+ addAfter: u,
568
+ suffix: k,
575
569
  prefix: p,
576
- beforeStyle: S,
577
- afterStyle: P,
578
- height: I,
579
- disabled: x,
580
- maxLength: C,
581
- showWordLimit: u,
582
- allowClear: d,
583
- autoWidth: a
584
- } = n, m = a ? {
570
+ beforeStyle: L,
571
+ afterStyle: R,
572
+ height: w,
573
+ disabled: N,
574
+ maxLength: m,
575
+ showWordLimit: a,
576
+ allowClear: g,
577
+ autoWidth: f
578
+ } = n, h = f ? {
585
579
  minWidth: 0,
586
580
  maxWidth: "100%",
587
- ...ne(a) ? a : {}
588
- } : null, k = {
589
- minWidth: m == null ? void 0 : m.minWidth,
590
- maxWidth: m == null ? void 0 : m.maxWidth,
591
- width: m && "auto",
592
- ...g
593
- }, h = ne(C) ? C.length : C, z = ne(C) && C.errorOnly ? void 0 : h, [G, W] = se(!1), L = re(), j = re(), B = re(), [H, X] = me("", {
594
- defaultValue: "defaultValue" in n ? Q(n.defaultValue, z) : void 0,
595
- value: "value" in n ? Q(n.value, z) : void 0
581
+ ...ne(f) ? f : {}
582
+ } : null, E = {
583
+ minWidth: h == null ? void 0 : h.minWidth,
584
+ maxWidth: h == null ? void 0 : h.maxWidth,
585
+ width: h && "auto",
586
+ ...v
587
+ }, x = ne(m) ? m.length : m, W = ne(m) && m.errorOnly ? void 0 : x, [G, B] = se(!1), A = re(), j = re(), P = re(), [H, X] = me("", {
588
+ defaultValue: "defaultValue" in n ? Q(n.defaultValue, W) : void 0,
589
+ value: "value" in n ? Q(n.value, W) : void 0
596
590
  });
597
- $e(
598
- $,
591
+ Ie(
592
+ C,
599
593
  () => {
600
- var o, N, s;
594
+ var o, b, i;
601
595
  return {
602
- focus: (o = L.current) == null ? void 0 : o.focus,
603
- blur: (N = L.current) == null ? void 0 : N.blur,
604
- dom: (s = L.current) == null ? void 0 : s.dom,
596
+ focus: (o = A.current) == null ? void 0 : o.focus,
597
+ blur: (b = A.current) == null ? void 0 : b.blur,
598
+ dom: (i = A.current) == null ? void 0 : i.dom,
605
599
  // 保持之前逻辑
606
600
  getRootDOMNode: () => {
607
601
  var _;
608
- return j.current || ((_ = L.current) == null ? void 0 : _.dom);
602
+ return j.current || ((_ = A.current) == null ? void 0 : _.dom);
609
603
  }
610
604
  };
611
605
  },
612
606
  []
613
607
  );
614
- const w = (o, N) => {
615
- var s;
616
- "value" in n || X(o), (s = n.onChange) == null || s.call(n, o, N);
617
- }, r = l == null ? void 0 : l("input"), O = n.size || M, q = "height" in n;
618
- let K = E;
619
- const D = H ? H.length : 0, Z = ce(() => !z && h ? D > h : !1, [D, h, z]);
620
- if (h && u) {
621
- const [o, N] = T ? [h, D] : [D, h];
608
+ const V = (o, b) => {
609
+ var i;
610
+ "value" in n || X(o), (i = n.onChange) == null || i.call(n, o, b);
611
+ }, r = s == null ? void 0 : s("input"), z = n.size || T, q = "height" in n;
612
+ let K = k;
613
+ const D = H ? H.length : 0, Z = ce(() => !W && x ? D > x : !1, [D, x, W]);
614
+ if (x && a) {
615
+ const [o, b] = I ? [x, D] : [D, x];
622
616
  K = /* @__PURE__ */ te(
623
617
  "span",
624
618
  {
625
- className: U(`${r}-word-limit`, {
619
+ className: O(`${r}-word-limit`, {
626
620
  [`${r}-word-limit-error`]: Z
627
621
  }),
628
622
  children: [
629
623
  o,
630
624
  "/",
631
- N
625
+ b
632
626
  ]
633
627
  }
634
628
  );
635
629
  }
636
- const ae = U(
630
+ const ae = O(
637
631
  `${r}-group-wrapper`,
638
- `${r}-group-wrapper-${O}`,
632
+ `${r}-group-wrapper-${z}`,
639
633
  {
640
634
  [`${r}-custom-height`]: q,
641
635
  [`${r}-has-suffix`]: K,
642
- [`${r}-group-wrapper-disabled`]: x,
643
- [`${r}-group-wrapper-rtl`]: T,
644
- [`${r}-group-wrapper-autowidth`]: m
636
+ [`${r}-group-wrapper-disabled`]: N,
637
+ [`${r}-group-wrapper-rtl`]: I,
638
+ [`${r}-group-wrapper-autowidth`]: h
645
639
  },
646
- y
647
- ), Y = n.status || (n.error || Z ? "error" : void 0), J = A || v || K || p, F = /* @__PURE__ */ c(
640
+ U
641
+ ), Y = n.status || (n.error || Z ? "error" : void 0), J = y || u || K || p, F = /* @__PURE__ */ c(
648
642
  Ye,
649
643
  {
650
- ref: L,
644
+ ref: A,
651
645
  ...n,
652
- autoFitWidth: !!m,
653
- style: k,
646
+ autoFitWidth: !!h,
647
+ style: E,
654
648
  status: Y,
655
649
  onFocus: (o) => {
656
- var N;
657
- W(!0), (N = n.onFocus) == null || N.call(n, o);
650
+ var b;
651
+ B(!0), (b = n.onFocus) == null || b.call(n, o);
658
652
  },
659
653
  onBlur: (o) => {
660
- var N;
661
- W(!1), (N = n.onBlur) == null || N.call(n, o);
654
+ var b;
655
+ B(!1), (b = n.onBlur) == null || b.call(n, o);
662
656
  },
663
- onChange: w,
657
+ onChange: V,
664
658
  prefixCls: r,
665
659
  value: H,
666
- hasParent: !!J || d,
667
- size: O
660
+ hasParent: !!J || g,
661
+ size: z
668
662
  }
669
- ), i = U(`${r}-inner-wrapper`, {
663
+ ), l = O(`${r}-inner-wrapper`, {
670
664
  [`${r}-inner-wrapper-${Y}`]: Y,
671
- [`${r}-inner-wrapper-disabled`]: x,
665
+ [`${r}-inner-wrapper-disabled`]: N,
672
666
  [`${r}-inner-wrapper-focus`]: G,
673
667
  [`${r}-inner-wrapper-has-prefix`]: p,
674
- [`${r}-inner-wrapper-${O}`]: O,
675
- [`${r}-clear-wrapper`]: d,
676
- [`${r}-inner-wrapper-rtl`]: T
668
+ [`${r}-inner-wrapper-${z}`]: z,
669
+ [`${r}-clear-wrapper`]: g,
670
+ [`${r}-inner-wrapper-rtl`]: I
677
671
  });
678
672
  return J ? /* @__PURE__ */ c(
679
673
  "div",
680
674
  {
681
675
  ref: j,
682
676
  className: ae,
683
- style: { ...k, ...q ? { height: I } : {} },
677
+ style: { ...E, ...q ? { height: w } : {} },
684
678
  children: /* @__PURE__ */ te("span", { className: `${r}-group`, children: [
685
- he(`${r}-group-addbefore`, A, S),
679
+ he(`${r}-group-addbefore`, y, L),
686
680
  /* @__PURE__ */ te(
687
681
  "span",
688
682
  {
689
- className: i,
690
- ref: B,
683
+ className: l,
684
+ ref: P,
691
685
  onMouseDown: (o) => {
692
- o.target.tagName !== "INPUT" && B.current && Se(B.current, o.target) && o.preventDefault();
686
+ o.target.tagName !== "INPUT" && P.current && Se(P.current, o.target) && o.preventDefault();
693
687
  },
694
688
  onClick: (o) => {
695
- B.current && Se(B.current, o.target) && L.current && L.current.focus();
689
+ P.current && Se(P.current, o.target) && A.current && A.current.focus();
696
690
  },
697
691
  children: [
698
692
  he(`${r}-group-prefix`, p),
@@ -701,44 +695,44 @@ function vt(e, $) {
701
695
  ]
702
696
  }
703
697
  ),
704
- he(`${r}-group-addafter`, v, P)
698
+ he(`${r}-group-addafter`, u, R)
705
699
  ] })
706
700
  }
707
- ) : d ? /* @__PURE__ */ c(
701
+ ) : g ? /* @__PURE__ */ c(
708
702
  "span",
709
703
  {
710
704
  ref: j,
711
- className: U(y, i),
712
- style: { ...k, ...q ? { height: I } : {} },
705
+ className: O(U, l),
706
+ style: { ...E, ...q ? { height: w } : {} },
713
707
  onMouseDown: ht,
714
708
  onClick: () => {
715
- L.current && L.current.focus();
709
+ A.current && A.current.focus();
716
710
  },
717
711
  children: F
718
712
  }
719
713
  ) : F;
720
714
  }
721
- const yt = je(vt), R = yt;
722
- R.displayName = "Input";
723
- R.Search = Te;
724
- R.Button = be;
725
- R.InputButton = be;
726
- R.TextArea = Pe;
727
- R.Password = Me;
728
- R.Number = Ie;
729
- R.InputNumber = Ie;
730
- R.Tag = De;
731
- R.InputTag = De;
732
- R.Group = qe;
715
+ const xt = Ge(vt), M = xt;
716
+ M.displayName = "Input";
717
+ M.Search = Me;
718
+ M.Button = xe;
719
+ M.InputButton = xe;
720
+ M.TextArea = Te;
721
+ M.Password = De;
722
+ M.Number = we;
723
+ M.InputNumber = we;
724
+ M.Tag = Ee;
725
+ M.InputTag = Ee;
726
+ M.Group = qe;
733
727
  export {
734
- be as InputButton,
728
+ xe as InputButton,
735
729
  qe as InputGroup,
736
- Ie as InputNumber,
737
- Me as InputPassword,
738
- Te as InputSearch,
739
- De as InputTag,
740
- Pe as InputTextArea,
741
- Pe as TextArea,
742
- R as default,
730
+ we as InputNumber,
731
+ De as InputPassword,
732
+ Me as InputSearch,
733
+ Ee as InputTag,
734
+ Te as InputTextArea,
735
+ Te as TextArea,
736
+ M as default,
743
737
  Q as formatValue
744
738
  };