@unicom-cloud/ui 0.8.78 → 0.8.80

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