@unicom-cloud/ui 0.8.66 → 0.8.67

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 (357) hide show
  1. package/Affix.js +79 -79
  2. package/Alert.js +46 -46
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +74 -74
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +35 -35
  7. package/Badge.js +55 -55
  8. package/Breadcrumb.js +42 -42
  9. package/Button.js +24 -24
  10. package/Calendar.js +230 -230
  11. package/Card.js +18 -18
  12. package/Carousel.js +165 -165
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +26 -26
  17. package/Comment.js +18 -18
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +28 -27
  20. package/DatePicker.js +872 -871
  21. package/Descriptions.js +34 -34
  22. package/Divider.js +19 -19
  23. package/Draggable.js +27 -26
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +110 -110
  26. package/Empty.js +3 -3
  27. package/Form.js +984 -945
  28. package/Grid.js +34 -34
  29. package/Icon.js +16 -16
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +7 -6
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +24 -24
  36. package/Link.js +30 -30
  37. package/List.js +95 -95
  38. package/Mentions.js +85 -84
  39. package/Menu.js +2 -2
  40. package/Message.js +7 -6
  41. package/Modal.js +1 -1
  42. package/Notice.js +14 -3
  43. package/Notification.js +9 -7
  44. package/OverflowEllipsis.js +64 -62
  45. package/PageHeader.js +73 -73
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +60 -60
  49. package/Popover.js +31 -31
  50. package/Portal.js +23 -31
  51. package/Progress.js +22 -22
  52. package/Radio.js +2 -2
  53. package/Rate.js +24 -24
  54. package/ResizeBox.js +274 -271
  55. package/Result.js +3 -3
  56. package/Select.js +4 -4
  57. package/SelectView.js +257 -238
  58. package/Skeleton.js +46 -46
  59. package/Slider.js +286 -283
  60. package/Space.js +28 -28
  61. package/SpeechSynthesis.js +62 -55
  62. package/Spin.js +23 -23
  63. package/Statistic.js +80 -80
  64. package/Steps.js +67 -67
  65. package/Switch.js +47 -47
  66. package/Table.js +1445 -1380
  67. package/Tabs.js +5 -5
  68. package/Tag.js +45 -45
  69. package/TimePicker.js +154 -154
  70. package/Timeline.js +2 -2
  71. package/Tooltip.js +80 -79
  72. package/Transfer.js +103 -102
  73. package/Tree.js +3 -2
  74. package/TreeSelect.js +2 -2
  75. package/Trigger.js +699 -772
  76. package/Typography.js +756 -6
  77. package/Upload.js +2 -2
  78. package/VerificationCode.js +1 -1
  79. package/Version.js +1 -1
  80. package/VirtualList.js +1 -1
  81. package/Watermark.js +1 -1
  82. package/chunk/{BHgJ5Y3T.js → -UuKKT0Z.js} +29 -29
  83. package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
  84. package/chunk/B5gK1Idp.js +19 -0
  85. package/chunk/B7FlazNB.js +24 -0
  86. package/chunk/{DTBtQQ2H.js → BBvWDeuZ.js} +67 -67
  87. package/chunk/BCftTxEy.js +626 -0
  88. package/chunk/{CZOP_ZHJ.js → BGny4zSb.js} +60 -60
  89. package/chunk/BHF15Dog.js +98 -0
  90. package/chunk/BJQ5UNa-.js +1585 -0
  91. package/chunk/BP9sYyk9.js +8 -0
  92. package/chunk/BUdtVdnv.js +38 -0
  93. package/chunk/BVQlOzTS.js +11 -0
  94. package/chunk/B__a_gb_.js +519 -0
  95. package/chunk/BbEYToV1.js +10 -0
  96. package/chunk/BbdDQAnm.js +15 -0
  97. package/chunk/BdUcgWdu.js +11 -0
  98. package/chunk/BfbXSG70.js +26 -0
  99. package/chunk/BndfNLK4.js +186 -0
  100. package/chunk/BoMCZV6K.js +1098 -0
  101. package/chunk/Br0B6y1T.js +18 -0
  102. package/chunk/BrOW642m.js +130 -0
  103. package/chunk/BxUs8_Cr.js +9 -0
  104. package/chunk/{CcV4wQB1.js → C42LIMP9.js} +244 -242
  105. package/chunk/C4YkFMzC.js +778 -0
  106. package/chunk/{Bh23P4l7.js → C9Wcraj7.js} +21 -21
  107. package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
  108. package/chunk/CJ_o9tZM.js +5 -0
  109. package/chunk/{DNAigumg.js → CK5m7rLl.js} +36 -36
  110. package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
  111. package/chunk/CLiqJm_T.js +10 -0
  112. package/chunk/{BnSVm1YC.js → CNmmhbCn.js} +32 -32
  113. package/chunk/{BFipyA67.js → CP0odX99.js} +51 -51
  114. package/chunk/CPT-OZH2.js +14 -0
  115. package/chunk/CVSF8p0O.js +698 -0
  116. package/chunk/C_agcwLN.js +31 -0
  117. package/chunk/{jhQQCFMn.js → C_gJWGGh.js} +201 -201
  118. package/chunk/{Bc7t9jkb.js → CaasmWg_.js} +11 -11
  119. package/chunk/Ce1j9KTi.js +6 -0
  120. package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
  121. package/chunk/CkNSv2U7.js +56 -0
  122. package/chunk/Cp2f70gB.js +9 -0
  123. package/chunk/CpegYjdC.js +16 -0
  124. package/chunk/CucI3KZr.js +20 -0
  125. package/chunk/CwoFBTYz.js +11 -0
  126. package/chunk/D2KPqPhV.js +17 -0
  127. package/chunk/D7NyvE5f.js +17 -0
  128. package/chunk/D8oTPQ2H.js +384 -0
  129. package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
  130. package/chunk/{DnvO8A0Z.js → DFrfrmfK.js} +120 -119
  131. package/chunk/DGTIZ_0O.js +6 -0
  132. package/chunk/DJfpiZn_.js +25 -0
  133. package/chunk/DKr2_PYd.js +34 -0
  134. package/chunk/DNUz6zgo.js +11 -0
  135. package/chunk/DRtM649q.js +11 -0
  136. package/chunk/DS_mUWn6.js +41 -0
  137. package/chunk/DU6bs_19.js +10 -0
  138. package/chunk/DWdbwz22.js +10 -0
  139. package/chunk/DcveZuqd.js +6 -0
  140. package/chunk/DdVFknul.js +24 -0
  141. package/chunk/DgRfikwe.js +16 -0
  142. package/chunk/{znkyQ-HR.js → DkyR2EfG.js} +66 -66
  143. package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
  144. package/chunk/DnrZEnQ_.js +27 -0
  145. package/chunk/DsRSHWtX.js +1025 -0
  146. package/chunk/Dz5BdmXo.js +270 -0
  147. package/chunk/EANe01DF.js +1030 -0
  148. package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
  149. package/chunk/GoNx5R4F.js +873 -0
  150. package/chunk/HDUQku8d.js +20 -0
  151. package/chunk/HrAP__Hi.js +25 -0
  152. package/chunk/JPPo5nY_.js +9 -0
  153. package/chunk/{Du-bw6qA.js → SLWP34OR.js} +90 -85
  154. package/chunk/VVKtwaGf.js +278 -0
  155. package/chunk/WPNpLxSI.js +16 -0
  156. package/chunk/{CPvvjMwZ.js → WpO_DsK4.js} +49 -48
  157. package/chunk/fdU3ang6.js +14 -0
  158. package/chunk/{DQAot004.js → fkclKOAL.js} +298 -292
  159. package/chunk/flvYlqx3.js +22 -0
  160. package/chunk/kTDayEpF.js +288 -0
  161. package/chunk/{CssIjN1g.js → pZoNQ75H.js} +31 -31
  162. package/chunk/qFf1w_Jq.js +8 -0
  163. package/chunk/{CHnFKgbk.js → w-kM1L5W.js} +155 -155
  164. package/hooks/index.js +53 -49
  165. package/hooks/useComputedState.js +2 -10
  166. package/hooks/useCreate.js +2 -7
  167. package/hooks/useForceUpdate.js +2 -7
  168. package/hooks/useId.js +2 -10
  169. package/hooks/useInView.js +2 -30
  170. package/hooks/useIntersectionObserver.js +2 -23
  171. package/hooks/useInterval.js +2 -17
  172. package/hooks/useIsFirstRender.js +2 -9
  173. package/hooks/useIsomorphicLayoutEffect.js +2 -5
  174. package/hooks/useKeyboardEvent.js +2 -16
  175. package/hooks/useMedia.js +2 -15
  176. package/hooks/useMergeProps.js +2 -18
  177. package/hooks/useMergeValue.js +2 -19
  178. package/hooks/useOnlineStatus.js +4 -0
  179. package/hooks/useOverflowHidden.js +2 -25
  180. package/hooks/useOverrideRef.js +2 -13
  181. package/hooks/usePersistCallback.js +2 -13
  182. package/hooks/usePrefersColorSchemeDark.js +4 -0
  183. package/hooks/usePrevious.js +2 -9
  184. package/hooks/useRefs.js +2 -9
  185. package/hooks/useResizeObserver.js +2 -15
  186. package/hooks/useStateCallback.js +2 -15
  187. package/hooks/useStateWithPromise.js +2 -24
  188. package/hooks/useUpdateEffect.js +2 -9
  189. package/hooks/useVerificationCode.js +73 -0
  190. package/hooks/useWatch.js +2 -10
  191. package/hooks/{use-watermark.js → useWatermark.js} +27 -26
  192. package/hooks/useWindowSize.js +2 -20
  193. package/index.js +571 -584
  194. package/locale/en-US.js +4 -2
  195. package/locale/interface.js +1 -4
  196. package/locale/ja-JP.js +3 -1
  197. package/locale/tr-TR.js +1 -1
  198. package/locale/zh-CN.js +3 -1
  199. package/locale/zh-HK.js +3 -1
  200. package/locale/zh-TW.js +3 -1
  201. package/package.json +1 -1
  202. package/style.css +1 -1
  203. package/types/anchor/util.d.ts +1 -1
  204. package/types/button/index.d.ts +2 -2
  205. package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
  206. package/types/form/Control-old.d.ts +56 -0
  207. package/types/form/Control.d.ts +6 -54
  208. package/types/form/FormItem.d.ts +1 -1
  209. package/types/form/store.d.ts +0 -1
  210. package/types/hooks/index.d.ts +2 -0
  211. package/types/hooks/useComputedState.d.ts +1 -4
  212. package/types/hooks/useCreate.d.ts +1 -2
  213. package/types/hooks/useForceUpdate.d.ts +1 -2
  214. package/types/hooks/useId.d.ts +1 -2
  215. package/types/hooks/useInView.d.ts +1 -11
  216. package/types/hooks/useIntersectionObserver.d.ts +1 -7
  217. package/types/hooks/useInterval.d.ts +1 -2
  218. package/types/hooks/useIsFirstRender.d.ts +1 -2
  219. package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
  220. package/types/hooks/useKeyboardEvent.d.ts +1 -8
  221. package/types/hooks/useMedia.d.ts +1 -2
  222. package/types/hooks/useMergeProps.d.ts +1 -5
  223. package/types/hooks/useMergeValue.d.ts +1 -6
  224. package/types/hooks/useOnlineStatus.d.ts +1 -0
  225. package/types/hooks/useOverflowHidden.d.ts +1 -5
  226. package/types/hooks/useOverrideRef.d.ts +1 -6
  227. package/types/hooks/usePersistCallback.d.ts +1 -2
  228. package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
  229. package/types/hooks/usePrevious.d.ts +1 -3
  230. package/types/hooks/useRefs.d.ts +1 -2
  231. package/types/hooks/useResizeObserver.d.ts +1 -6
  232. package/types/hooks/useStateCallback.d.ts +1 -5
  233. package/types/hooks/useStateWithPromise.d.ts +1 -2
  234. package/types/hooks/useUpdateEffect.d.ts +1 -3
  235. package/types/hooks/useWatch.d.ts +1 -3
  236. package/types/hooks/useWindowSize.d.ts +1 -5
  237. package/types/image/interface.d.ts +1 -0
  238. package/types/index.d.ts +157 -86
  239. package/types/input/Input.d.ts +1 -1
  240. package/types/input/Textarea.d.ts +2 -2
  241. package/types/locale/en-US.d.ts +2 -0
  242. package/types/locale/interface.d.ts +1 -2
  243. package/types/locale/ja-JP.d.ts +2 -0
  244. package/types/locale/zh-CN.d.ts +2 -0
  245. package/types/locale/zh-HK.d.ts +2 -0
  246. package/types/locale/zh-TW.d.ts +2 -0
  247. package/types/menu/context.d.ts +1 -1
  248. package/types/message/index.d.ts +14 -14
  249. package/types/message/interface.d.ts +2 -0
  250. package/types/modal/config.d.ts +0 -1
  251. package/types/modal/interface.d.ts +0 -1
  252. package/types/notice/index.d.ts +2 -27
  253. package/types/notification/index.d.ts +15 -16
  254. package/types/notification/interface.d.ts +2 -0
  255. package/types/notification/withNotification.d.ts +2 -0
  256. package/types/select/util.d.ts +1 -2
  257. package/types/select-view/interface.d.ts +2 -1
  258. package/types/speech-synthesis/index.d.ts +1 -1
  259. package/types/table/constant.d.ts +2 -0
  260. package/types/table/hook/useThResizable.d.ts +7 -0
  261. package/types/table/index.d.ts +10 -1
  262. package/types/table/style/index.d.ts +1 -0
  263. package/types/table/th-resizable/index.d.ts +2 -0
  264. package/types/table/thead/Column.d.ts +1 -2
  265. package/types/tree/Tree.d.ts +12 -67
  266. package/types/tree-select/Select.d.ts +2 -2
  267. package/types/trigger/index.d.ts +2 -120
  268. package/types/trigger/interface.d.ts +2 -1
  269. package/types/utils/CSSTransition.d.ts +2 -3
  270. package/types/utils/caseName.d.ts +1 -1
  271. package/types/utils/className.d.ts +1 -1
  272. package/types/utils/constant.d.ts +2 -2
  273. package/types/utils/copy.d.ts +1 -1
  274. package/types/utils/dayjs.d.ts +1 -21
  275. package/types/utils/dom.d.ts +1 -6
  276. package/types/utils/fileToURL.d.ts +1 -1
  277. package/types/utils/fillNBSP.d.ts +1 -1
  278. package/types/utils/getHighlightText.d.ts +1 -5
  279. package/types/utils/getHotkeyHandler.d.ts +1 -8
  280. package/types/utils/getStringLength.d.ts +1 -1
  281. package/types/utils/include.d.ts +1 -1
  282. package/types/utils/index.d.ts +3 -4
  283. package/types/utils/is.d.ts +1 -16
  284. package/types/utils/keyboardCode.d.ts +3 -0
  285. package/types/utils/lodash.d.ts +1 -17
  286. package/types/utils/mergeProps.d.ts +1 -1
  287. package/types/utils/mergedToString.d.ts +1 -1
  288. package/types/utils/omit.d.ts +1 -1
  289. package/types/utils/pad.d.ts +1 -2
  290. package/types/utils/pick.d.ts +2 -4
  291. package/types/utils/reactDOM.d.ts +1 -7
  292. package/types/utils/resizeObserverEffect.d.ts +2 -0
  293. package/types/utils/saveAs.d.ts +1 -1
  294. package/types/utils/screenfull.d.ts +2 -0
  295. package/types/utils/scrollIntoView.d.ts +1 -2
  296. package/types/utils/style.d.ts +1 -3
  297. package/types/utils/throttleByRaf.d.ts +1 -5
  298. package/types/utils/throttleByRaf2.d.ts +1 -0
  299. package/types/utils/warning.d.ts +1 -2
  300. package/types/version/index.d.ts +1 -1
  301. package/utils/CSSTransition.js +2 -6
  302. package/utils/className.js +2 -2
  303. package/utils/constant.js +8 -9
  304. package/utils/contextHolder.js +1 -1
  305. package/utils/copy.js +1 -1
  306. package/utils/dayjs.js +14 -173
  307. package/utils/dom.js +33 -29
  308. package/utils/fillNBSP.js +2 -4
  309. package/utils/getHighlightText.js +2 -38
  310. package/utils/getHotkeyHandler.js +2 -25
  311. package/utils/getStringLength.js +2 -7
  312. package/utils/include.js +2 -7
  313. package/utils/index.js +237 -240
  314. package/utils/is.js +116 -156
  315. package/utils/keyboardCode.js +27 -0
  316. package/utils/mergeProps.js +2 -9
  317. package/utils/mergedToString.js +2 -13
  318. package/utils/omit.js +2 -9
  319. package/utils/pad.js +12 -12
  320. package/utils/pick.js +4 -15
  321. package/utils/reactDOM.js +3 -54
  322. package/utils/resizeObserverEffect.js +4 -0
  323. package/utils/saveAs.js +1 -1
  324. package/utils/screenfull.js +4 -0
  325. package/utils/scrollIntoView.js +2 -21
  326. package/utils/style.js +12 -11
  327. package/utils/throttleByRaf.js +13 -12
  328. package/utils/throttleByRaf2.js +5 -0
  329. package/utils/warning.js +5 -4
  330. package/NotificationBase.js +0 -53
  331. package/chunk/-zpSUpGE.js +0 -1501
  332. package/chunk/BAWsPQBM.js +0 -11
  333. package/chunk/BIT0j3HT.js +0 -269
  334. package/chunk/BbLKnaNO.js +0 -871
  335. package/chunk/Bfhv56O2.js +0 -638
  336. package/chunk/C2lIz2F9.js +0 -60
  337. package/chunk/C6QWSzsM.js +0 -376
  338. package/chunk/CVkHTbic.js +0 -995
  339. package/chunk/CeGEvXby.js +0 -278
  340. package/chunk/D3NFxdmG.js +0 -518
  341. package/chunk/DApXtulb.js +0 -1102
  342. package/chunk/DPByB1ab.js +0 -698
  343. package/chunk/DV1Ab_cG.js +0 -284
  344. package/chunk/dBnNCOIU.js +0 -778
  345. package/chunk/it8qlDZ3.js +0 -1032
  346. package/chunk/l0sNRNKZ.js +0 -1
  347. package/chunk/te_43YrB.js +0 -776
  348. package/hooks/use-verification-code.js +0 -73
  349. package/types/notification-base/index.d.ts +0 -15
  350. package/types/notification-base/style/index.d.ts +0 -2
  351. package/types/trigger/Portal.d.ts +0 -7
  352. package/types/utils/keyCode.d.ts +0 -45
  353. package/types/utils/raf.d.ts +0 -3
  354. package/types/utils/throttleByRafV2.d.ts +0 -5
  355. package/utils/keyCode.js +0 -12
  356. package/utils/raf.js +0 -19
  357. package/utils/throttleByRafV2.js +0 -16
@@ -1,36 +1,36 @@
1
- var Qe = Object.defineProperty;
2
- var Ze = (e, t, r) => t in e ? Qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var z = (e, t, r) => Ze(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as N, jsxs as ie, Fragment as et } from "react/jsx-runtime";
1
+ var Ze = Object.defineProperty;
2
+ var et = (e, t, r) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var z = (e, t, r) => et(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { jsx as N, jsxs as ie, Fragment as tt } from "react/jsx-runtime";
5
5
  import le from "lodash/isPlainObject";
6
- import tt from "lodash/isString";
7
- import nt from "lodash/isUndefined";
8
- import ce, { useContext as de, useRef as Z, useState as ae, useMemo as he, useImperativeHandle as Ae, useCallback as rt, useEffect as we } from "react";
9
- import { d as fe, I as it } from "./-zpSUpGE.js";
10
- import { useMergeProps as ze } from "../hooks/useMergeProps.js";
11
- import { useMergeValue as ye } from "../hooks/useMergeValue.js";
12
- import { y as F } from "./BAWsPQBM.js";
13
- import { contains as Te } from "../utils/dom.js";
14
- import { u as st, I as ot } from "./BIT0j3HT.js";
15
- import at from "@unicom-cloud/icons/IconUiDown";
16
- import lt from "@unicom-cloud/icons/IconUiMinus";
17
- import ut from "@unicom-cloud/icons/IconUiPlus";
18
- import ct from "@unicom-cloud/icons/IconUiUp";
6
+ import nt from "lodash/isString";
7
+ import rt from "lodash/isUndefined";
8
+ import ce, { useContext as de, useRef as Z, useState as ae, useMemo as he, useImperativeHandle as Re, useCallback as it, useEffect as we } from "react";
9
+ import { a as fe, I as st } from "./BJQ5UNa-.js";
10
+ import { c as Fe } from "./B5gK1Idp.js";
11
+ import { R as $e } from "./HDUQku8d.js";
12
+ import { m as F } from "./JPPo5nY_.js";
13
+ import { contains as De } from "../utils/dom.js";
14
+ import { u as ot, I as at } from "./Dz5BdmXo.js";
15
+ import lt from "@unicom-cloud/icons/IconUiDown";
16
+ import ut from "@unicom-cloud/icons/IconUiMinus";
17
+ import ct from "@unicom-cloud/icons/IconUiPlus";
18
+ import dt from "@unicom-cloud/icons/IconUiUp";
19
19
  import se from "lodash/isNumber";
20
- import dt from "@unicom-cloud/icons/IconUiEye";
21
- import ft from "@unicom-cloud/icons/IconUiEyeInvisible";
22
- import { useKeyboardEvent as mt } from "../hooks/useKeyboardEvent.js";
23
- import $e from "../utils/omit.js";
24
- import gt from "@unicom-cloud/icons/IconUiLoading";
25
- import De from "@unicom-cloud/icons/IconUiSearch";
26
- import ht from "../Button.js";
27
- import { I as pt } from "./C6QWSzsM.js";
20
+ import ft from "@unicom-cloud/icons/IconUiEye";
21
+ import mt from "@unicom-cloud/icons/IconUiEyeInvisible";
22
+ import { h as gt } from "./D2KPqPhV.js";
23
+ import { c as ve } from "./BdUcgWdu.js";
24
+ import ht from "@unicom-cloud/icons/IconUiLoading";
25
+ import Le from "@unicom-cloud/icons/IconUiSearch";
26
+ import pt from "../Button.js";
27
+ import { I as ke } from "./D8oTPQ2H.js";
28
28
  import Nt from "@unicom-cloud/icons/IconUiClose";
29
- import { useIsomorphicLayoutEffect as Fe } from "../hooks/useIsomorphicLayoutEffect.js";
30
- import "../utils/is.js";
31
- import Le from "lodash/isPlainObject.js";
32
- import { A as St, c as xt } from "./C2lIz2F9.js";
33
- const ke = ce.forwardRef((e, t) => {
29
+ import { s as He } from "./DcveZuqd.js";
30
+ import "./CkNSv2U7.js";
31
+ import ze from "lodash/isPlainObject.js";
32
+ import { r as St, d as xt } from "./BrOW642m.js";
33
+ const Oe = ce.forwardRef((e, t) => {
34
34
  const { getPrefixCls: r } = de(fe), { className: i, style: s, children: u, compact: n, ...m } = e, l = r("input-group"), h = F(
35
35
  l,
36
36
  {
@@ -40,34 +40,34 @@ const ke = ce.forwardRef((e, t) => {
40
40
  );
41
41
  return /* @__PURE__ */ N("div", { ref: t, className: h, style: s, ...m, children: u });
42
42
  });
43
- ke.displayName = "InputGroup";
44
- function He(e) {
43
+ Oe.displayName = "InputGroup";
44
+ function Ue(e) {
45
45
  return !Number.isNaN(Number(e)) && String(e).includes("e");
46
46
  }
47
- function Ee() {
47
+ function Ce() {
48
48
  return typeof BigInt == "function";
49
49
  }
50
- function Ce(e) {
50
+ function Ee(e) {
51
51
  const t = String(e);
52
- if (He(e)) {
52
+ if (Ue(e)) {
53
53
  let r = Number(t.slice(t.indexOf("e-") + 2));
54
54
  return t.replace(/\.(\d+)/, (i, s) => (r += s.length, i)), r;
55
55
  }
56
- return t.includes(".") && Oe(t) ? t.length - t.indexOf(".") - 1 : 0;
56
+ return t.includes(".") && Be(t) ? t.length - t.indexOf(".") - 1 : 0;
57
57
  }
58
- function Ue(e) {
58
+ function We(e) {
59
59
  let t = String(e);
60
- if (He(e)) {
60
+ if (Ue(e)) {
61
61
  if (e < Number.MIN_SAFE_INTEGER)
62
- return Ee() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER.toString();
62
+ return Ce() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER.toString();
63
63
  if (e > Number.MAX_SAFE_INTEGER)
64
- return Ee() ? BigInt(e).toString() : Number.MAX_SAFE_INTEGER.toString();
65
- const r = Ce(t);
64
+ return Ce() ? BigInt(e).toString() : Number.MAX_SAFE_INTEGER.toString();
65
+ const r = Ee(t);
66
66
  t = Number(e).toFixed(Math.min(100, r));
67
67
  }
68
68
  return pe(t).fullStr;
69
69
  }
70
- function Oe(e) {
70
+ function Be(e) {
71
71
  return typeof e == "number" ? !Number.isNaN(e) : e ? (
72
72
  // 1.1
73
73
  /^\s*-?\d+(\.\d+)?\s*$/.test(e) || // 1.
@@ -107,8 +107,8 @@ class Ne {
107
107
  this.isNaN = !0;
108
108
  return;
109
109
  }
110
- const r = Ue(t);
111
- if (Oe(r)) {
110
+ const r = We(t);
111
+ if (Be(r)) {
112
112
  const { negative: i, trimStr: s } = pe(r), [u, n = "0"] = s.split(".");
113
113
  this.isNegative = i, this.integer = BigInt(u), this.decimal = BigInt(n), this.decimalLen = n.length;
114
114
  } else
@@ -169,7 +169,7 @@ class Ne {
169
169
  const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : pe(
170
170
  `${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`
171
171
  ).fullStr : this.origin;
172
- return typeof i == "number" ? Re(s, i) : s;
172
+ return typeof i == "number" ? Ae(s, i) : s;
173
173
  }
174
174
  }
175
175
  class re {
@@ -204,8 +204,8 @@ class re {
204
204
  if (i < Number.MIN_SAFE_INTEGER)
205
205
  return new re(Number.MIN_SAFE_INTEGER);
206
206
  const s = Math.max(
207
- Ce(this.number),
208
- Ce(r.number)
207
+ Ee(this.number),
208
+ Ee(r.number)
209
209
  );
210
210
  return new re(i.toFixed(s));
211
211
  }
@@ -213,14 +213,14 @@ class re {
213
213
  return this.number;
214
214
  }
215
215
  toString(t = { safe: !0 }) {
216
- const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : Ue(this.number) : this.origin;
217
- return typeof i == "number" ? Re(s, i) : s;
216
+ const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : We(this.number) : this.origin;
217
+ return typeof i == "number" ? Ae(s, i) : s;
218
218
  }
219
219
  }
220
220
  function ne(e) {
221
- return Ee() ? new Ne(e) : new re(e);
221
+ return Ce() ? new Ne(e) : new re(e);
222
222
  }
223
- function Re(e, t, r = !1) {
223
+ function Ae(e, t, r = !1) {
224
224
  if (e === "")
225
225
  return "";
226
226
  const i = ".", { negativeStr: s, integerStr: u, decimalStr: n } = pe(e), m = `${i}${n}`, l = `${s}${u}`;
@@ -230,18 +230,18 @@ function Re(e, t, r = !1) {
230
230
  const g = ne(e).add(
231
231
  `${s}0.${"0".repeat(t)}${10 - h}`
232
232
  );
233
- return Re(g.toString(), t, r);
233
+ return Ae(g.toString(), t, r);
234
234
  }
235
235
  return t === 0 ? l : `${l}${i}${n.padEnd(t, "0").slice(0, t)}`;
236
236
  }
237
237
  return `${l}${m === ".0" ? "" : m}`;
238
238
  }
239
- function vt({
239
+ function bt({
240
240
  inputElement: e,
241
241
  inputValue: t
242
242
  }) {
243
243
  const r = Z(null);
244
- return Fe(() => {
244
+ return He(() => {
245
245
  try {
246
246
  const i = r.current;
247
247
  if (e && t && se(i)) {
@@ -256,7 +256,7 @@ function vt({
256
256
  se(s) && (r.current = u.length - s);
257
257
  };
258
258
  }
259
- const bt = 200, yt = 1e3, $t = {
259
+ const yt = 200, $t = 1e3, vt = {
260
260
  max: 1 / 0,
261
261
  min: -1 / 0,
262
262
  step: 1,
@@ -264,15 +264,15 @@ const bt = 200, yt = 1e3, $t = {
264
264
  parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
265
265
  };
266
266
  function It(e, t) {
267
- var Me;
267
+ var Te;
268
268
  const {
269
269
  getPrefixCls: r,
270
270
  size: i,
271
271
  componentConfig: s,
272
272
  rtl: u
273
- } = de(fe), n = ze(
273
+ } = de(fe), n = Fe(
274
274
  e,
275
- $t,
275
+ vt,
276
276
  s == null ? void 0 : s.InputNumber
277
277
  ), {
278
278
  className: m,
@@ -280,50 +280,50 @@ function It(e, t) {
280
280
  defaultValue: h,
281
281
  disabled: g,
282
282
  error: I,
283
- readOnly: v,
284
- strictMode: E,
283
+ readOnly: b,
284
+ strictMode: C,
285
285
  placeholder: M,
286
- hideControl: R,
286
+ hideControl: A,
287
287
  suffix: V,
288
288
  prefix: T,
289
289
  icons: S,
290
- mode: y,
290
+ mode: $,
291
291
  size: p,
292
- step: b,
292
+ step: y,
293
293
  precision: H,
294
- min: $,
295
- max: U,
294
+ min: v,
295
+ max: O,
296
296
  parser: j,
297
- formatter: O,
297
+ formatter: U,
298
298
  onBlur: P,
299
299
  onFocus: K,
300
300
  onChange: W,
301
301
  onKeyDown: B,
302
302
  ...me
303
- } = n, C = r("input-number"), a = p || i, L = (() => {
303
+ } = n, E = r("input-number"), a = p || i, L = (() => {
304
304
  if (se(H)) {
305
- const o = `${b}`.split(".")[1], x = o && o.length || 0;
305
+ const o = `${y}`.split(".")[1], x = o && o.length || 0;
306
306
  return Math.max(x, H);
307
307
  }
308
308
  return null;
309
309
  })(), [q, X] = ae(() => ne(
310
310
  "value" in n ? n.value : "defaultValue" in n ? h : void 0
311
- )), [D, ee] = ae(""), [oe, Y] = ae(!1), [J, _] = ae(!1), f = Z(null), c = Z(null), w = Z(!1), d = he(() => "value" in n ? ne(n.value) : q, [n.value, q]), [G, te] = he(() => [ne(U), ne($)], [U, $]);
312
- Ae(t, () => c.current, []);
311
+ )), [D, ee] = ae(""), [oe, Y] = ae(!1), [J, _] = ae(!1), f = Z(null), c = Z(null), w = Z(!1), d = he(() => "value" in n ? ne(n.value) : q, [n.value, q]), [G, te] = he(() => [ne(O), ne(v)], [O, v]);
312
+ Re(t, () => c.current, []);
313
313
  const Se = (o, x) => {
314
314
  if (X(o), !o.equals(d) && W) {
315
- const A = o.toString({
315
+ const R = o.toString({
316
316
  safe: !0,
317
317
  precision: L
318
318
  });
319
319
  W(
320
- o.isEmpty ? void 0 : E ? A : o.isNaN ? NaN : Number(A),
320
+ o.isEmpty ? void 0 : C ? R : o.isNaN ? NaN : Number(R),
321
321
  x
322
322
  );
323
323
  }
324
324
  }, xe = () => {
325
325
  f.current && clearTimeout(f.current), f.current = null;
326
- }, ge = rt(
326
+ }, ge = it(
327
327
  (o) => {
328
328
  let x = o;
329
329
  return x.less(te) ? x = te : G.less(x) && (x = G), x;
@@ -336,56 +336,56 @@ function It(e, t) {
336
336
  const o = d.less(te) || G.less(d);
337
337
  o && w.current && Se(ge(d), "outOfRange"), Y(o);
338
338
  }, [te, G, d, ge]);
339
- const Ie = (o, x, A = !1) => {
340
- if (o.persist(), o.preventDefault(), _(!1), g || v)
339
+ const Ie = (o, x, R = !1) => {
340
+ if (o.persist(), o.preventDefault(), _(!1), g || b)
341
341
  return;
342
- const Ye = d.isInvalid ? ne($ === -1 / 0 || $ <= 0 && U >= 0 ? 0 : $) : d.add(x === "plus" ? b : -b);
342
+ const Je = d.isInvalid ? ne(v === -1 / 0 || v <= 0 && O >= 0 ? 0 : v) : d.add(x === "plus" ? y : -y);
343
343
  if (Se(
344
- ge(Ye),
344
+ ge(Je),
345
345
  x === "plus" ? "increase" : "decrease"
346
- ), c.current && c.current.focus(), A) {
347
- const Je = f.current === null;
346
+ ), c.current && c.current.focus(), R) {
347
+ const Qe = f.current === null;
348
348
  f.current = setTimeout(
349
349
  () => o.target.dispatchEvent(o.nativeEvent),
350
- Je ? yt : bt
350
+ Qe ? $t : yt
351
351
  );
352
352
  }
353
- }, Ve = he(() => {
353
+ }, Pe = he(() => {
354
354
  let o;
355
- return J ? o = j ? `${j(D)}` : D : se(L) ? o = d.toString({ safe: !0, precision: L }) : d.isInvalid ? o = "" : o = d.toString(), O ? O(o, { userTyping: J, input: D }) : o;
356
- }, [d, D, J, L, j, O]), je = vt({
357
- inputElement: (Me = c.current) == null ? void 0 : Me.dom,
358
- inputValue: Ve
359
- }), Ke = {
355
+ return J ? o = j ? `${j(D)}` : D : se(L) ? o = d.toString({ safe: !0, precision: L }) : d.isInvalid ? o = "" : o = d.toString(), U ? U(o, { userTyping: J, input: D }) : o;
356
+ }, [d, D, J, L, j, U]), Ke = bt({
357
+ inputElement: (Te = c.current) == null ? void 0 : Te.dom,
358
+ inputValue: Pe
359
+ }), Xe = {
360
360
  onChange: (o, x) => {
361
361
  _(!0), o = o.trim().replace(/。/g, ".");
362
- const A = j ? j(o) : o;
363
- (se(+A) || A === "-" || !A || A === ".") && (ee(o), Se(ge(ne(A)), "manual"), je(x));
362
+ const R = j ? j(o) : o;
363
+ (se(+R) || R === "-" || !R || R === ".") && (ee(o), Se(ge(ne(R)), "manual"), Ke(x));
364
364
  },
365
365
  onKeyDown: (o) => {
366
366
  const x = o.key;
367
367
  x === St.key ? (o.stopPropagation(), Ie(o, "minus")) : x === xt.key && (o.stopPropagation(), Ie(o, "plus")), xe(), B == null || B(o);
368
368
  },
369
369
  onFocus: (o) => {
370
- var x, A;
371
- w.current = !0, ee((A = (x = c.current) == null ? void 0 : x.dom) == null ? void 0 : A.value), K == null || K(o);
370
+ var x, R;
371
+ w.current = !0, ee((R = (x = c.current) == null ? void 0 : x.dom) == null ? void 0 : R.value), K == null || K(o);
372
372
  },
373
373
  onBlur: (o) => {
374
374
  Se(ge(d), "outOfRange"), _(!1), P == null || P(o);
375
375
  }
376
- }, Xe = (o) => v ? {} : {
376
+ }, qe = (o) => b ? {} : {
377
377
  onMouseDown: (x) => Ie(x, o, !0)
378
- }, Pe = !R && y === "button", qe = !R && !v && y === "embed", ve = (o, x) => {
379
- const A = !g && (d.isInvalid || (o === "plus" ? G.isInvalid || d.less(G) : te.isInvalid || te.less(d)));
378
+ }, Me = !A && $ === "button", Ye = !A && !b && $ === "embed", be = (o, x) => {
379
+ const R = !g && (d.isInvalid || (o === "plus" ? G.isInvalid || d.less(G) : te.isInvalid || te.less(d)));
380
380
  return /* @__PURE__ */ N(
381
381
  "div",
382
382
  {
383
- className: F(`${C}-step-button`, {
384
- [`${C}-step-button-disabled`]: !A
383
+ className: F(`${E}-step-button`, {
384
+ [`${E}-step-button-disabled`]: !R
385
385
  }),
386
386
  onMouseLeave: xe,
387
387
  onMouseUp: xe,
388
- ...A ? Xe(o) : {},
388
+ ...R ? qe(o) : {},
389
389
  children: x
390
390
  }
391
391
  );
@@ -395,20 +395,20 @@ function It(e, t) {
395
395
  {
396
396
  _ignorePropsFromGlobal: !0,
397
397
  role: "spinbutton",
398
- "aria-valuemax": U,
399
- "aria-valuemin": $,
398
+ "aria-valuemax": O,
399
+ "aria-valuemin": v,
400
400
  "aria-valuenow": d.isEmpty ? void 0 : d.toNumber(),
401
- ...$e(me, ["allowClear"]),
402
- ...Ke,
401
+ ...ve(me, ["allowClear"]),
402
+ ...Xe,
403
403
  style: l,
404
404
  className: F(
405
- C,
406
- `${C}-mode-${y}`,
407
- `${C}-size-${a}`,
405
+ E,
406
+ `${E}-mode-${$}`,
407
+ `${E}-size-${a}`,
408
408
  {
409
- [`${C}-rtl`]: u,
410
- [`${C}-readonly`]: v,
411
- [`${C}-illegal-value`]: !d.isEmpty && oe
409
+ [`${E}-rtl`]: u,
410
+ [`${E}-readonly`]: b,
411
+ [`${E}-illegal-value`]: !d.isEmpty && oe
412
412
  },
413
413
  m
414
414
  ),
@@ -416,44 +416,44 @@ function It(e, t) {
416
416
  size: a,
417
417
  error: I,
418
418
  disabled: g,
419
- readOnly: v,
420
- value: Ve,
419
+ readOnly: b,
420
+ value: Pe,
421
421
  placeholder: M,
422
- prefix: T && /* @__PURE__ */ N("div", { className: `${C}-prefix`, children: T }),
423
- suffix: /* @__PURE__ */ ie(et, { children: [
424
- qe && /* @__PURE__ */ ie("div", { className: `${C}-step-layer`, children: [
425
- ve(
422
+ prefix: T && /* @__PURE__ */ N("div", { className: `${E}-prefix`, children: T }),
423
+ suffix: /* @__PURE__ */ ie(tt, { children: [
424
+ Ye && /* @__PURE__ */ ie("div", { className: `${E}-step-layer`, children: [
425
+ be(
426
426
  "plus",
427
- S && S.up ? S.up : /* @__PURE__ */ N(ct, {})
427
+ S && S.up ? S.up : /* @__PURE__ */ N(dt, {})
428
428
  ),
429
- ve(
429
+ be(
430
430
  "minus",
431
- S && S.down ? S.down : /* @__PURE__ */ N(at, {})
431
+ S && S.down ? S.down : /* @__PURE__ */ N(lt, {})
432
432
  )
433
433
  ] }),
434
- V && /* @__PURE__ */ N("div", { className: `${C}-suffix`, children: V })
434
+ V && /* @__PURE__ */ N("div", { className: `${E}-suffix`, children: V })
435
435
  ] }),
436
- addBefore: Pe && ve(
436
+ addBefore: Me && be(
437
437
  "minus",
438
- S && S.minus ? S.minus : /* @__PURE__ */ N(lt, {})
438
+ S && S.minus ? S.minus : /* @__PURE__ */ N(ut, {})
439
439
  ),
440
- addAfter: Pe && ve(
440
+ addAfter: Me && be(
441
441
  "plus",
442
- S && S.plus ? S.plus : /* @__PURE__ */ N(ut, {})
442
+ S && S.plus ? S.plus : /* @__PURE__ */ N(ct, {})
443
443
  )
444
444
  }
445
445
  );
446
446
  }
447
- const We = ce.forwardRef(
447
+ const Ve = ce.forwardRef(
448
448
  It
449
449
  );
450
- We.displayName = "InputNumber";
451
- const Be = ce.forwardRef(
450
+ Ve.displayName = "InputNumber";
451
+ const _e = ce.forwardRef(
452
452
  (e, t) => {
453
- const [r, i] = ye(!1, {
453
+ const [r, i] = $e(!1, {
454
454
  defaultValue: e.defaultVisibility,
455
455
  value: e.visibility
456
- }), { getPrefixCls: s } = de(fe), u = mt(), {
456
+ }), { getPrefixCls: s } = de(fe), u = gt(), {
457
457
  className: n,
458
458
  visibilityToggle: m = !0,
459
459
  onVisibilityChange: l,
@@ -464,15 +464,15 @@ const Be = ce.forwardRef(
464
464
  [`${g}-visibility`]: m
465
465
  },
466
466
  n
467
- ), v = (R) => {
468
- "visibility" in e || i(R), l == null || l(R);
467
+ ), b = (A) => {
468
+ "visibility" in e || i(A), l == null || l(A);
469
469
  };
470
- let E = e.suffix;
470
+ let C = e.suffix;
471
471
  const M = () => {
472
- v(!r);
472
+ b(!r);
473
473
  };
474
474
  if (m) {
475
- const R = {
475
+ const A = {
476
476
  onClick: M,
477
477
  // 预防focus丢失
478
478
  onMouseDown: (V) => V.preventDefault(),
@@ -481,10 +481,10 @@ const Be = ce.forwardRef(
481
481
  onPressEnter: M
482
482
  })
483
483
  };
484
- e.suffix ? E = /* @__PURE__ */ N("span", { ...R, children: e.suffix }) : E = /* @__PURE__ */ N(
485
- r ? dt : ft,
484
+ e.suffix ? C = /* @__PURE__ */ N("span", { ...A, children: e.suffix }) : C = /* @__PURE__ */ N(
485
+ r ? ft : mt,
486
486
  {
487
- ...R,
487
+ ...A,
488
488
  focusable: void 0,
489
489
  "aria-hidden": void 0,
490
490
  // tabIndex: 0,
@@ -495,17 +495,17 @@ const Be = ce.forwardRef(
495
495
  return /* @__PURE__ */ N(
496
496
  k,
497
497
  {
498
- ...$e(h, ["visibility", "defaultVisibility"]),
498
+ ...ve(h, ["visibility", "defaultVisibility"]),
499
499
  type: r ? "text" : "password",
500
500
  className: I,
501
501
  ref: t,
502
- suffix: E
502
+ suffix: C
503
503
  }
504
504
  );
505
505
  }
506
506
  );
507
- Be.displayName = "Password";
508
- const _e = ce.forwardRef(
507
+ _e.displayName = "Password";
508
+ const Ge = ce.forwardRef(
509
509
  (e, t) => {
510
510
  const { getPrefixCls: r } = de(fe), {
511
511
  className: i,
@@ -517,8 +517,8 @@ const _e = ce.forwardRef(
517
517
  defaultValue: h,
518
518
  addAfter: g,
519
519
  suffix: I,
520
- ...v
521
- } = e, E = le(e.maxLength) ? e.maxLength.length : e.maxLength, M = le(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [R, V] = ye("", {
520
+ ...b
521
+ } = e, C = le(e.maxLength) ? e.maxLength.length : e.maxLength, M = le(e.maxLength) && e.maxLength.errorOnly ? void 0 : C, [A, V] = $e("", {
522
522
  defaultValue: "defaultValue" in e ? ue(e.defaultValue, M) : void 0,
523
523
  value: "value" in e ? ue(e.value, M) : void 0
524
524
  }), T = r("input-search"), S = F(
@@ -527,49 +527,49 @@ const _e = ce.forwardRef(
527
527
  [`${T}-button`]: m
528
528
  },
529
529
  i
530
- ), y = () => {
530
+ ), $ = () => {
531
531
  var p;
532
- !n && ((p = e.onSearch) == null || p.call(e, R));
532
+ !n && ((p = e.onSearch) == null || p.call(e, A));
533
533
  };
534
534
  return /* @__PURE__ */ N(
535
535
  k,
536
536
  {
537
- ...$e(v, ["onSearch"]),
537
+ ...ve(b, ["onSearch"]),
538
538
  disabled: n,
539
539
  className: S,
540
540
  style: s,
541
541
  ref: t,
542
542
  placeholder: u,
543
543
  addAfter: g !== void 0 ? g : m ? /* @__PURE__ */ N(
544
- ht,
544
+ pt,
545
545
  {
546
546
  disabled: n,
547
- size: v.size,
547
+ size: b.size,
548
548
  className: `${T}-btn`,
549
549
  type: "primary",
550
- onClick: y,
550
+ onClick: $,
551
551
  loading: l,
552
552
  loadingFixedWidth: !0,
553
- icon: m === !0 && !l && /* @__PURE__ */ N(De, {}),
553
+ icon: m === !0 && !l && /* @__PURE__ */ N(Le, {}),
554
554
  ...e == null ? void 0 : e.searchButtonProps,
555
555
  children: m !== !0 && m
556
556
  }
557
557
  ) : null,
558
- suffix: I !== void 0 ? I : !m && (l ? /* @__PURE__ */ N(gt, {}) : /* @__PURE__ */ N(De, { onClick: y })),
559
- onChange: (p, b) => {
558
+ suffix: I !== void 0 ? I : !m && (l ? /* @__PURE__ */ N(ht, {}) : /* @__PURE__ */ N(Le, { onClick: $ })),
559
+ onChange: (p, y) => {
560
560
  var H;
561
- V(p), (H = e.onChange) == null || H.call(e, p, b);
561
+ V(p), (H = e.onChange) == null || H.call(e, p, y);
562
562
  },
563
563
  defaultValue: h,
564
564
  onPressEnter: (p) => {
565
- var b;
566
- y(), (b = e.onPressEnter) == null || b.call(e, p);
565
+ var y;
566
+ $(), (y = e.onPressEnter) == null || y.call(e, p);
567
567
  }
568
568
  }
569
569
  );
570
570
  }
571
571
  );
572
- _e.displayName = "Search";
572
+ Ge.displayName = "Search";
573
573
  const wt = [
574
574
  "position: absolute",
575
575
  "min-height: 0 !important",
@@ -579,7 +579,7 @@ const wt = [
579
579
  "z-index: -100",
580
580
  "top: 0",
581
581
  "right: 0"
582
- ].join(";"), Et = [
582
+ ].join(";"), Ct = [
583
583
  "border-width",
584
584
  "box-sizing",
585
585
  "font-family",
@@ -598,9 +598,9 @@ const wt = [
598
598
  "width"
599
599
  ];
600
600
  let Q;
601
- function Ct(e) {
601
+ function Et(e) {
602
602
  Q || (Q = document.createElement("textarea"), document.body.appendChild(Q));
603
- const t = window.getComputedStyle(e), r = Et.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
603
+ const t = window.getComputedStyle(e), r = Ct.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
604
604
  Q.setAttribute("style", wt + r);
605
605
  const i = parseFloat(t.getPropertyValue("padding-top")) + parseFloat(t.getPropertyValue("padding-bottom")), s = t.getPropertyValue("box-sizing"), u = parseFloat(t.getPropertyValue("border-top-width")) + parseFloat(t.getPropertyValue("border-bottom-width"));
606
606
  return {
@@ -609,7 +609,7 @@ function Ct(e) {
609
609
  borderSize: u
610
610
  };
611
611
  }
612
- function At(e, t) {
612
+ function Rt(e, t) {
613
613
  const r = () => {
614
614
  let i, s;
615
615
  return le(e) && (i = e.minRows, s = e.maxRows), {
@@ -618,19 +618,19 @@ function At(e, t) {
618
618
  };
619
619
  };
620
620
  if (e) {
621
- const { minRows: i, maxRows: s } = r(), u = t, { paddingSize: n, boxSizing: m, borderSize: l } = Ct(u);
621
+ const { minRows: i, maxRows: s } = r(), u = t, { paddingSize: n, boxSizing: m, borderSize: l } = Et(u);
622
622
  Q.value = u.value || u.placeholder || "";
623
- let h = Q.scrollHeight + l, g, I, v;
623
+ let h = Q.scrollHeight + l, g, I, b;
624
624
  if (i || s) {
625
625
  Q.value = "";
626
626
  const M = Q.scrollHeight - n;
627
- se(i) && (g = M * i, m === "border-box" && (g += n, g += l), h = Math.max(h, g)), se(s) && (I = M * s, m === "border-box" && (I += n, I += l), v = h > I ? "auto" : "", I = Math.min(h, I));
627
+ se(i) && (g = M * i, m === "border-box" && (g += n, g += l), h = Math.max(h, g)), se(s) && (I = M * s, m === "border-box" && (I += n, I += l), b = h > I ? "auto" : "", I = Math.min(h, I));
628
628
  }
629
- const E = {};
630
- return E.height = h, g && (E.minHeight = g), I && (E.maxHeight = I), v && (E.overflowY = v), E;
629
+ const C = {};
630
+ return C.height = h, g && (C.minHeight = g), I && (C.maxHeight = I), b && (C.overflowY = b), C;
631
631
  }
632
632
  }
633
- const Rt = (e, t) => {
633
+ const At = (e, t) => {
634
634
  const {
635
635
  className: r,
636
636
  style: i,
@@ -642,32 +642,32 @@ const Rt = (e, t) => {
642
642
  showWordLimit: h,
643
643
  allowClear: g,
644
644
  onChange: I,
645
- onClear: v,
646
- onKeyDown: E,
645
+ onClear: b,
646
+ onKeyDown: C,
647
647
  onPressEnter: M,
648
- status: R,
648
+ status: A,
649
649
  clearIcon: V,
650
650
  ...T
651
- } = e, S = Le(l) ? l.length : l, y = Le(l) ? l.errorOnly ? void 0 : l.length : l, p = Z(), [b, H] = ae({}), [$, U] = ye("", {
652
- defaultValue: "defaultValue" in e ? ue(e.defaultValue, y) : void 0,
653
- value: "value" in e ? ue(e.value, y) : void 0
651
+ } = e, S = ze(l) ? l.length : l, $ = ze(l) ? l.errorOnly ? void 0 : l.length : l, p = Z(), [y, H] = ae({}), [v, O] = $e("", {
652
+ defaultValue: "defaultValue" in e ? ue(e.defaultValue, $) : void 0,
653
+ value: "value" in e ? ue(e.value, $) : void 0
654
654
  }), {
655
655
  compositionValue: j,
656
- compositionHandler: O,
656
+ compositionHandler: U,
657
657
  valueChangeHandler: P,
658
658
  keyDownHandler: K,
659
659
  triggerValueChangeCallback: W
660
- } = st({
661
- value: $,
662
- maxLength: y,
660
+ } = ot({
661
+ value: v,
662
+ maxLength: $,
663
663
  onChange: I,
664
- onKeyDown: E,
664
+ onKeyDown: C,
665
665
  onPressEnter: M,
666
666
  beforeTriggerValueChangeCallback: (f) => {
667
- !("value" in e) && (y === void 0 || f.length <= y) && U(f);
667
+ !("value" in e) && ($ === void 0 || f.length <= $) && O(f);
668
668
  }
669
- }), B = j || $ || "", { getPrefixCls: me, rtl: C } = de(fe), a = me("textarea");
670
- n && (b.resize = "none");
669
+ }), B = j || v || "", { getPrefixCls: me, rtl: E } = de(fe), a = me("textarea");
670
+ n && (y.resize = "none");
671
671
  const L = () => {
672
672
  if (p.current && p.current.focus) {
673
673
  if (p.current.setSelectionRange) {
@@ -677,17 +677,17 @@ const Rt = (e, t) => {
677
677
  p.current.focus();
678
678
  }
679
679
  }, q = () => {
680
- const f = At(
680
+ const f = Rt(
681
681
  e.autoSize,
682
682
  p.current
683
683
  );
684
684
  f && H(f);
685
685
  }, X = (f) => {
686
- f.stopPropagation(), L(), W("", f), v == null || v();
686
+ f.stopPropagation(), L(), W("", f), b == null || b();
687
687
  };
688
- Fe(() => {
688
+ He(() => {
689
689
  q();
690
- }, [B]), Ae(
690
+ }, [B]), Re(
691
691
  t,
692
692
  () => ({
693
693
  dom: p.current,
@@ -702,41 +702,41 @@ const Rt = (e, t) => {
702
702
  }),
703
703
  []
704
704
  );
705
- const D = $ ? $.length : 0, ee = S && h || g, oe = he(() => !y && S ? D > S : !1, [D, S, y]), Y = R || (m || oe ? "error" : void 0), J = F(
705
+ const D = v ? v.length : 0, ee = S && h || g, oe = he(() => !$ && S ? D > S : !1, [D, S, $]), Y = A || (m || oe ? "error" : void 0), J = F(
706
706
  a,
707
707
  {
708
708
  [`${a}-${Y}`]: Y,
709
709
  // [`${prefixCls}-error`]: error || lengthError || status === 'error',
710
710
  [`${a}-disabled`]: n,
711
- [`${a}-rtl`]: C
711
+ [`${a}-rtl`]: E
712
712
  },
713
713
  r
714
714
  ), _ = /* @__PURE__ */ N(
715
715
  "textarea",
716
716
  {
717
- ...$e(T, ["autoSize", "defaultValue"]),
718
- maxLength: y,
717
+ ...ve(T, ["autoSize", "defaultValue"]),
718
+ maxLength: $,
719
719
  ref: p,
720
- style: { ...i, ...b },
720
+ style: { ...i, ...y },
721
721
  className: J,
722
722
  placeholder: u,
723
723
  disabled: n,
724
724
  value: B,
725
725
  onChange: P,
726
726
  onKeyDown: K,
727
- onCompositionStart: O,
728
- onCompositionUpdate: O,
729
- onCompositionEnd: O
727
+ onCompositionStart: U,
728
+ onCompositionUpdate: U,
729
+ onCompositionEnd: U
730
730
  }
731
731
  );
732
732
  if (ee) {
733
- const f = !n && g && $, [c, w] = C ? [S, D] : [D, S];
733
+ const f = !n && g && v, [c, w] = E ? [S, D] : [D, S];
734
734
  return /* @__PURE__ */ ie(
735
735
  "div",
736
736
  {
737
737
  className: F(`${a}-wrapper`, {
738
738
  [`${a}-clear-wrapper`]: g,
739
- [`${a}-wrapper-rtl`]: C
739
+ [`${a}-wrapper-rtl`]: E
740
740
  }),
741
741
  style: s,
742
742
  children: [
@@ -751,7 +751,7 @@ const Rt = (e, t) => {
751
751
  },
752
752
  children: V
753
753
  }
754
- ) : /* @__PURE__ */ N(it, { className: `${a}-clear-icon`, children: /* @__PURE__ */ N(
754
+ ) : /* @__PURE__ */ N(st, { className: `${a}-clear-icon`, children: /* @__PURE__ */ N(
755
755
  Nt,
756
756
  {
757
757
  onClick: X,
@@ -778,13 +778,13 @@ const Rt = (e, t) => {
778
778
  );
779
779
  }
780
780
  return _;
781
- }, Ge = ce.forwardRef(Rt);
782
- Ge.displayName = "TextArea";
781
+ }, je = ce.forwardRef(At);
782
+ je.displayName = "TextArea";
783
783
  const Vt = (e) => {
784
784
  e.target.tagName !== "INPUT" && e.preventDefault();
785
- }, be = (e, t, r = {}, i) => t ? /* @__PURE__ */ N("span", { style: r, className: e, onClick: i, children: t }) : null;
785
+ }, ye = (e, t, r = {}, i) => t ? /* @__PURE__ */ N("span", { style: r, className: e, onClick: i, children: t }) : null;
786
786
  function ue(e, t) {
787
- const r = e !== null && !nt(e) && !tt(e) ? String(e) : e || "";
787
+ const r = e !== null && !rt(e) && !nt(e) ? String(e) : e || "";
788
788
  return t ? r.slice(0, t) : r;
789
789
  }
790
790
  function Pt(e, t) {
@@ -793,7 +793,7 @@ function Pt(e, t) {
793
793
  size: i,
794
794
  componentConfig: s,
795
795
  rtl: u
796
- } = de(fe), n = ze(
796
+ } = de(fe), n = Fe(
797
797
  e,
798
798
  {},
799
799
  s == null ? void 0 : s.Input
@@ -803,29 +803,29 @@ function Pt(e, t) {
803
803
  addBefore: h,
804
804
  addAfter: g,
805
805
  suffix: I,
806
- prefix: v,
807
- beforeStyle: E,
806
+ prefix: b,
807
+ beforeStyle: C,
808
808
  afterStyle: M,
809
- height: R,
809
+ height: A,
810
810
  disabled: V,
811
811
  maxLength: T,
812
812
  showWordLimit: S,
813
- allowClear: y,
813
+ allowClear: $,
814
814
  autoWidth: p
815
- } = n, b = p ? {
815
+ } = n, y = p ? {
816
816
  minWidth: 0,
817
817
  maxWidth: "100%",
818
818
  ...le(p) ? p : {}
819
819
  } : null, H = {
820
- minWidth: b == null ? void 0 : b.minWidth,
821
- maxWidth: b == null ? void 0 : b.maxWidth,
822
- width: b && "auto",
820
+ minWidth: y == null ? void 0 : y.minWidth,
821
+ maxWidth: y == null ? void 0 : y.maxWidth,
822
+ width: y && "auto",
823
823
  ...l
824
- }, $ = le(T) ? T.length : T, U = le(T) && T.errorOnly ? void 0 : $, [j, O] = ae(!1), P = Z(), K = Z(), W = Z(), [B, me] = ye("", {
825
- defaultValue: "defaultValue" in n ? ue(n.defaultValue, U) : void 0,
826
- value: "value" in n ? ue(n.value, U) : void 0
824
+ }, v = le(T) ? T.length : T, O = le(T) && T.errorOnly ? void 0 : v, [j, U] = ae(!1), P = Z(), K = Z(), W = Z(), [B, me] = $e("", {
825
+ defaultValue: "defaultValue" in n ? ue(n.defaultValue, O) : void 0,
826
+ value: "value" in n ? ue(n.value, O) : void 0
827
827
  });
828
- Ae(
828
+ Re(
829
829
  t,
830
830
  () => {
831
831
  var c, w, d;
@@ -842,14 +842,14 @@ function Pt(e, t) {
842
842
  },
843
843
  []
844
844
  );
845
- const C = (c, w) => {
845
+ const E = (c, w) => {
846
846
  var d;
847
847
  "value" in n || me(c), (d = n.onChange) == null || d.call(n, c, w);
848
848
  }, a = r("input"), L = n.size || i, q = "height" in n;
849
849
  let X = I;
850
- const D = B ? B.length : 0, ee = he(() => !U && $ ? D > $ : !1, [D, $, U]);
851
- if ($ && S) {
852
- const [c, w] = u ? [$, D] : [D, $];
850
+ const D = B ? B.length : 0, ee = he(() => !O && v ? D > v : !1, [D, v, O]);
851
+ if (v && S) {
852
+ const [c, w] = u ? [v, D] : [D, v];
853
853
  X = /* @__PURE__ */ ie(
854
854
  "span",
855
855
  {
@@ -872,38 +872,38 @@ function Pt(e, t) {
872
872
  [`${a}-has-suffix`]: X,
873
873
  [`${a}-group-wrapper-disabled`]: V,
874
874
  [`${a}-group-wrapper-rtl`]: u,
875
- [`${a}-group-wrapper-autowidth`]: b
875
+ [`${a}-group-wrapper-autowidth`]: y
876
876
  },
877
877
  m
878
- ), Y = n.status || (n.error || ee ? "error" : void 0), J = h || g || X || v, _ = /* @__PURE__ */ N(
879
- ot,
878
+ ), Y = n.status || (n.error || ee ? "error" : void 0), J = h || g || X || b, _ = /* @__PURE__ */ N(
879
+ at,
880
880
  {
881
881
  ref: P,
882
882
  ...n,
883
- autoFitWidth: !!b,
883
+ autoFitWidth: !!y,
884
884
  style: H,
885
885
  status: Y,
886
886
  onFocus: (c) => {
887
887
  var w;
888
- O(!0), (w = n.onFocus) == null || w.call(n, c);
888
+ U(!0), (w = n.onFocus) == null || w.call(n, c);
889
889
  },
890
890
  onBlur: (c) => {
891
891
  var w;
892
- O(!1), (w = n.onBlur) == null || w.call(n, c);
892
+ U(!1), (w = n.onBlur) == null || w.call(n, c);
893
893
  },
894
- onChange: C,
894
+ onChange: E,
895
895
  prefixCls: a,
896
896
  value: B,
897
- hasParent: !!J || y,
897
+ hasParent: !!J || $,
898
898
  size: L
899
899
  }
900
900
  ), f = F(`${a}-inner-wrapper`, {
901
901
  [`${a}-inner-wrapper-${Y}`]: Y,
902
902
  [`${a}-inner-wrapper-disabled`]: V,
903
903
  [`${a}-inner-wrapper-focus`]: j,
904
- [`${a}-inner-wrapper-has-prefix`]: v,
904
+ [`${a}-inner-wrapper-has-prefix`]: b,
905
905
  [`${a}-inner-wrapper-${L}`]: L,
906
- [`${a}-clear-wrapper`]: y,
906
+ [`${a}-clear-wrapper`]: $,
907
907
  [`${a}-inner-wrapper-rtl`]: u
908
908
  });
909
909
  return J ? /* @__PURE__ */ N(
@@ -911,36 +911,36 @@ function Pt(e, t) {
911
911
  {
912
912
  ref: K,
913
913
  className: oe,
914
- style: { ...H, ...q ? { height: R } : {} },
914
+ style: { ...H, ...q ? { height: A } : {} },
915
915
  children: /* @__PURE__ */ ie("span", { className: `${a}-group`, children: [
916
- be(`${a}-group-addbefore`, h, E),
916
+ ye(`${a}-group-addbefore`, h, C),
917
917
  /* @__PURE__ */ ie(
918
918
  "span",
919
919
  {
920
920
  className: f,
921
921
  ref: W,
922
922
  onMouseDown: (c) => {
923
- c.target.tagName !== "INPUT" && W.current && Te(W.current, c.target) && c.preventDefault();
923
+ c.target.tagName !== "INPUT" && W.current && De(W.current, c.target) && c.preventDefault();
924
924
  },
925
925
  onClick: (c) => {
926
- W.current && Te(W.current, c.target) && P.current && P.current.focus();
926
+ W.current && De(W.current, c.target) && P.current && P.current.focus();
927
927
  },
928
928
  children: [
929
- be(`${a}-group-prefix`, v),
929
+ ye(`${a}-group-prefix`, b),
930
930
  _,
931
- be(`${a}-group-suffix`, X)
931
+ ye(`${a}-group-suffix`, X)
932
932
  ]
933
933
  }
934
934
  ),
935
- be(`${a}-group-addafter`, g, M)
935
+ ye(`${a}-group-addafter`, g, M)
936
936
  ] })
937
937
  }
938
- ) : y ? /* @__PURE__ */ N(
938
+ ) : $ ? /* @__PURE__ */ N(
939
939
  "span",
940
940
  {
941
941
  ref: K,
942
942
  className: F(m, f),
943
- style: { ...H, ...q ? { height: R } : {} },
943
+ style: { ...H, ...q ? { height: A } : {} },
944
944
  onMouseDown: Vt,
945
945
  onClick: () => {
946
946
  P.current && P.current.focus();
@@ -951,18 +951,20 @@ function Pt(e, t) {
951
951
  }
952
952
  const k = ce.forwardRef(Pt);
953
953
  k.displayName = "Input";
954
- k.Search = _e;
955
- k.TextArea = Ge;
956
- k.Password = Be;
957
- k.Number = k.InputNumber = We;
958
- k.Tag = k.InputTag = pt;
959
- k.Group = ke;
954
+ k.Search = Ge;
955
+ k.TextArea = je;
956
+ k.Password = _e;
957
+ k.Number = Ve;
958
+ k.InputNumber = Ve;
959
+ k.Tag = ke;
960
+ k.InputTag = ke;
961
+ k.Group = Oe;
960
962
  export {
961
- ke as G,
963
+ Oe as G,
962
964
  k as I,
963
- Be as P,
964
- _e as S,
965
- Ge as T,
966
- We as a,
965
+ _e as P,
966
+ Ge as S,
967
+ je as T,
968
+ Ve as a,
967
969
  ue as f
968
970
  };