@unicom-cloud/ui 0.8.81 → 0.8.82

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