@unicom-cloud/ui 0.8.54 → 0.8.56

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 (429) hide show
  1. package/Affix.js +36 -36
  2. package/Alert.js +41 -45
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +40 -40
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +26 -26
  7. package/Badge.js +43 -43
  8. package/Breadcrumb.js +17 -17
  9. package/Button.js +42 -42
  10. package/Calendar.js +54 -56
  11. package/Card.js +28 -28
  12. package/Carousel.js +42 -43
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +11 -580
  17. package/Comment.js +14 -14
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +26 -26
  20. package/DatePicker.js +661 -670
  21. package/Descriptions.js +53 -53
  22. package/Divider.js +15 -15
  23. package/Draggable.js +16 -16
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +10 -10
  26. package/Empty.js +3 -3
  27. package/Form.js +10 -1410
  28. package/Grid.js +49 -49
  29. package/Icon.js +10 -10
  30. package/IconHover.js +2 -2
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +7 -7
  34. package/InputTag.js +1 -1
  35. package/Layout.js +34 -34
  36. package/Link.js +26 -26
  37. package/List.js +39 -39
  38. package/Mentions.js +17 -17
  39. package/Menu.js +1 -1
  40. package/Message.js +3 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +4 -10
  43. package/Notification.js +3 -3
  44. package/OverflowEllipsis.js +18 -18
  45. package/PageHeader.js +26 -27
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +15 -15
  49. package/Popover.js +22 -22
  50. package/Progress.js +18 -18
  51. package/Radio.js +2 -2
  52. package/Rate.js +40 -43
  53. package/ResizeBox.js +191 -192
  54. package/Result.js +17 -17
  55. package/Select.js +1 -1
  56. package/SelectView.js +56 -56
  57. package/Skeleton.js +35 -35
  58. package/Slider.js +81 -81
  59. package/Space.js +27 -27
  60. package/SpeechSynthesis.js +29 -32
  61. package/Spin.js +15 -15
  62. package/Statistic.js +54 -54
  63. package/Steps.js +44 -44
  64. package/Switch.js +39 -38
  65. package/Table.js +488 -488
  66. package/Tabs.js +1 -1
  67. package/Tag.js +13 -14
  68. package/TimePicker.js +68 -68
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +27 -28
  71. package/Transfer.js +29 -30
  72. package/Tree.js +1 -1
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +53 -52
  75. package/Typography.js +2 -737
  76. package/Upload.js +1 -1
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/1mEO29GP.js +23 -0
  81. package/chunk/5pZ3ayqs.js +29 -0
  82. package/chunk/9Gh1afjL.js +23 -0
  83. package/chunk/B1S1OEw6.js +29 -0
  84. package/chunk/{RRWbBHK-.js → B2Bp3i5u.js} +221 -221
  85. package/chunk/B45v5S9k.js +209 -0
  86. package/chunk/B6fn5y_s.js +23 -0
  87. package/chunk/B9PsJar0.js +118 -0
  88. package/chunk/BA02BFUV.js +41 -0
  89. package/chunk/BCk8e9fj.js +29 -0
  90. package/chunk/BHK9zpXn.js +207 -0
  91. package/chunk/BHLTzWzi.js +29 -0
  92. package/chunk/BK1FKNAX.js +41 -0
  93. package/chunk/BM6dpkeM.js +32 -0
  94. package/chunk/{DQ3uFRJD.js → BP7xX86Q.js} +223 -202
  95. package/chunk/BWx1cVT_.js +66 -0
  96. package/chunk/BbI3gqVr.js +23 -0
  97. package/chunk/{CIc4yo9k.js → BbYzi8M0.js} +46 -46
  98. package/chunk/Be7oeWU8.js +34 -0
  99. package/chunk/BeM2hfks.js +88 -0
  100. package/chunk/BkHxm4sv.js +41 -0
  101. package/chunk/{BUQBof6z.js → Bl-ODC57.js} +206 -207
  102. package/chunk/BlKc_pDZ.js +678 -0
  103. package/chunk/{BzqZZHGK.js → Bny52uiG.js} +48 -48
  104. package/chunk/{PuuHmqnW.js → BpwDupra.js} +238 -238
  105. package/chunk/BqxwlITu.js +52 -0
  106. package/chunk/BuEC_zcc.js +278 -0
  107. package/chunk/{CqcZfQQ4.js → Bv8ZRDFt.js} +80 -80
  108. package/chunk/{DZGcv_9A.js → C-w9pFY-.js} +32 -32
  109. package/chunk/C2fspJbE.js +23 -0
  110. package/chunk/C7Okdv4u.js +34 -0
  111. package/chunk/C95ipQ6b.js +41 -0
  112. package/chunk/{BzMYgxgO.js → CF3Telny.js} +26 -26
  113. package/chunk/CPl52AZh.js +206 -0
  114. package/chunk/CXNW5Y2a.js +23 -0
  115. package/chunk/Cb_oWoGj.js +40 -0
  116. package/chunk/CcX2pBUh.js +46 -0
  117. package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
  118. package/chunk/CilQ012k.js +1796 -0
  119. package/chunk/CkAOsst1.js +73 -0
  120. package/chunk/CnY8SvgY.js +126 -0
  121. package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
  122. package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
  123. package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
  124. package/chunk/D6mVoX-C.js +116 -0
  125. package/chunk/D9TqtOhq.js +40 -0
  126. package/chunk/{qSJXQ1qu.js → DBJ8d0o0.js} +183 -189
  127. package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
  128. package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
  129. package/chunk/DPvnQJ-H.js +52 -0
  130. package/chunk/DQXq1QT0.js +58 -0
  131. package/chunk/DRJO1GfY.js +855 -0
  132. package/chunk/DUxWiN2U.js +1465 -0
  133. package/chunk/DYZzQ2uT.js +29 -0
  134. package/chunk/{CK0H_Yi4.js → DafaH1Qt.js} +140 -138
  135. package/chunk/{ShWkfsJd.js → DalIRWr7.js} +21 -21
  136. package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
  137. package/chunk/DhLbnw3R.js +29 -0
  138. package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
  139. package/chunk/Do1aMgY3.js +12 -0
  140. package/chunk/Dtnux4qL.js +38 -0
  141. package/chunk/{Niaq_og8.js → Dw4SJ4o1.js} +219 -225
  142. package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
  143. package/chunk/JnyGFb5j.js +284 -0
  144. package/chunk/Lk60-jkf.js +1098 -0
  145. package/chunk/V_IcWDFx.js +49 -0
  146. package/chunk/{DG7VgAhL.js → WkB0MERB.js} +107 -108
  147. package/chunk/bsawGxt8.js +32 -0
  148. package/chunk/cUuQh7L_.js +46 -0
  149. package/chunk/fqgc8r6C.js +29 -0
  150. package/chunk/m_kOQCiU.js +29 -0
  151. package/chunk/sl8s35SK.js +29 -0
  152. package/chunk/{Dki1RB5p.js → t51ig1FZ.js} +154 -155
  153. package/chunk/{BC0PujUD.js → yvbAFxtk.js} +119 -121
  154. package/hooks/index.js +52 -246
  155. package/hooks/useForceUpdate.js +6 -6
  156. package/hooks/useIntersectionObserver.js +12 -10
  157. package/hooks/useKeyboardEvent.js +7 -7
  158. package/hooks/useMedia.js +9 -12
  159. package/hooks/useMergeValue.js +10 -8
  160. package/hooks/useResizeObserver.js +16 -0
  161. package/hooks/useUpdateEffect.js +7 -9
  162. package/hooks/useWindowSize.js +16 -20
  163. package/icons.js +6003 -0
  164. package/index.js +377 -472
  165. package/locale/en-US.js +20 -6
  166. package/locale/ja-JP.js +4 -2
  167. package/locale/ko-KR.js +2 -2
  168. package/locale/pt-BR.js +3 -3
  169. package/locale/pt-PT.js +3 -3
  170. package/locale/tr-TR.js +11 -3
  171. package/locale/zh-CN.js +6 -0
  172. package/locale/zh-HK.js +2 -0
  173. package/locale/zh-TW.js +2 -0
  174. package/package.json +1 -1
  175. package/style.css +1 -1
  176. package/types/anchor/util.d.ts +1 -0
  177. package/types/button/index.d.ts +2 -2
  178. package/types/color-picker/colors.d.ts +1 -1
  179. package/types/date-picker/util.d.ts +1 -1
  180. package/types/hooks/index.d.ts +3 -101
  181. package/types/hooks/useForceUpdate.d.ts +1 -2
  182. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  183. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  184. package/types/hooks/useMergeProps.d.ts +1 -1
  185. package/types/hooks/useResizeObserver.d.ts +5 -0
  186. package/types/hooks/useUpdateEffect.d.ts +2 -3
  187. package/types/hooks/useWindowSize.d.ts +1 -1
  188. package/types/icons.d.ts +4 -0
  189. package/types/index.d.ts +12 -2
  190. package/types/locale/en-US.d.ts +4 -0
  191. package/types/locale/interface.d.ts +2 -0
  192. package/types/locale/ja-JP.d.ts +4 -0
  193. package/types/locale/zh-CN.d.ts +4 -0
  194. package/types/locale/zh-HK.d.ts +4 -0
  195. package/types/locale/zh-TW.d.ts +4 -0
  196. package/types/modal/config.d.ts +1 -1
  197. package/types/version/index.d.ts +1 -1
  198. package/utils/CSSTransition.js +1 -1
  199. package/utils/className.js +2 -3
  200. package/utils/contextHolder.js +2 -2
  201. package/utils/copy.js +2 -3
  202. package/utils/is.js +127 -90
  203. package/utils/reactDOM.js +17 -15
  204. package/utils/responsiveObserve.js +16 -16
  205. package/utils/saveAs.js +2 -3
  206. package/utils/scrollIntoView.js +1 -1
  207. package/chunk/BdYAMaw9.js +0 -6
  208. package/chunk/CiZVOdJ3.js +0 -122
  209. package/chunk/DdtfPvgk.js +0 -272
  210. package/chunk/I4RV9SKZ.js +0 -135
  211. package/chunk/TXCrI0jN.js +0 -20
  212. package/chunk/i1A7W8Qt.js +0 -277
  213. package/chunk/xPzFRQJn.js +0 -740
  214. package/hooks/useAsync.js +0 -13
  215. package/hooks/useAsyncFn.js +0 -15
  216. package/hooks/useAsyncRetry.js +0 -17
  217. package/hooks/useAudio.js +0 -5
  218. package/hooks/useBeforeUnload.js +0 -18
  219. package/hooks/useBoolean.js +0 -4
  220. package/hooks/useClickAway.js +0 -22
  221. package/hooks/useCopyToClipboard.js +0 -51
  222. package/hooks/useCounter.js +0 -45
  223. package/hooks/useCreation.js +0 -17
  224. package/hooks/useCustomCompareEffect.js +0 -15
  225. package/hooks/useDebounce.js +0 -9
  226. package/hooks/useDefault.js +0 -10
  227. package/hooks/useDrop.js +0 -44
  228. package/hooks/useDropArea.js +0 -45
  229. package/hooks/useEffectOnce.js +0 -7
  230. package/hooks/useEffectState.js +0 -9
  231. package/hooks/useEnsuredForwardedRef.js +0 -17
  232. package/hooks/useError.js +0 -13
  233. package/hooks/useEvent.js +0 -13
  234. package/hooks/useEventListener.js +0 -39
  235. package/hooks/useFavicon.js +0 -16
  236. package/hooks/useFirstMountState.js +0 -8
  237. package/hooks/useFullscreen.js +0 -39
  238. package/hooks/useGeolocation.js +0 -38
  239. package/hooks/useGetSet.js +0 -18
  240. package/hooks/useGetSetState.js +0 -12
  241. package/hooks/useHash.js +0 -26
  242. package/hooks/useHover.js +0 -16
  243. package/hooks/useHoverDirty.js +0 -17
  244. package/hooks/useIdle.js +0 -34
  245. package/hooks/useIntersection.js +0 -19
  246. package/hooks/useIsomorphicLayoutEffect2.js +0 -6
  247. package/hooks/useKey.js +0 -16
  248. package/hooks/useKeyPress.js +0 -13
  249. package/hooks/useKeyPressEvent.js +0 -11
  250. package/hooks/useLatest.js +0 -8
  251. package/hooks/useLifecycles.js +0 -9
  252. package/hooks/useList.js +0 -67
  253. package/hooks/useLocalStorage.js +0 -42
  254. package/hooks/useLocation.js +0 -51
  255. package/hooks/useLockBodyScroll.js +0 -55
  256. package/hooks/useLogger.js +0 -10
  257. package/hooks/useLongPress.js +0 -24
  258. package/hooks/useMap.js +0 -31
  259. package/hooks/useMeasure.js +0 -34
  260. package/hooks/useMeasureDirty.js +0 -24
  261. package/hooks/useMediaDevices.js +0 -26
  262. package/hooks/useMediatedState.js +0 -14
  263. package/hooks/useMethods.js +0 -14
  264. package/hooks/useMotion.js +0 -56
  265. package/hooks/useMount.js +0 -9
  266. package/hooks/useMountedState.js +0 -10
  267. package/hooks/useMouse.js +0 -44
  268. package/hooks/useMouseHovered.js +0 -9
  269. package/hooks/useMouseWheel.js +0 -14
  270. package/hooks/useMultiStateValidator.js +0 -19
  271. package/hooks/useNetworkState.js +0 -31
  272. package/hooks/useNumber.js +0 -4
  273. package/hooks/useObservable.js +0 -12
  274. package/hooks/useOrientation.js +0 -30
  275. package/hooks/usePageLeave.js +0 -19
  276. package/hooks/usePermission.js +0 -19
  277. package/hooks/usePinchZoom.js +0 -40
  278. package/hooks/usePreviousDistinct.js +0 -10
  279. package/hooks/usePromise.js +0 -19
  280. package/hooks/useQueue.js +0 -25
  281. package/hooks/useRaf.js +0 -24
  282. package/hooks/useRafLoop.js +0 -24
  283. package/hooks/useRafState.js +0 -15
  284. package/hooks/useReactive.js +0 -21
  285. package/hooks/useRendersCount.js +0 -7
  286. package/hooks/useScroll.js +0 -27
  287. package/hooks/useScrolling.js +0 -23
  288. package/hooks/useSearchParam.js +0 -18
  289. package/hooks/useSessionStorage.js +0 -29
  290. package/hooks/useSet.js +0 -15
  291. package/hooks/useSetState.js +0 -16
  292. package/hooks/useSize.js +0 -58
  293. package/hooks/useSlider.js +0 -48
  294. package/hooks/useSpeech.js +0 -45
  295. package/hooks/useStartTyping.js +0 -30
  296. package/hooks/useStateList.js +0 -37
  297. package/hooks/useStateValidator.js +0 -17
  298. package/hooks/useStateWithHistory.js +0 -46
  299. package/hooks/useSyncState.js +0 -14
  300. package/hooks/useThrottle.js +0 -21
  301. package/hooks/useThrottleFn.js +0 -21
  302. package/hooks/useTimeout.js +0 -17
  303. package/hooks/useTimeoutFn.js +0 -16
  304. package/hooks/useTitle.js +0 -18
  305. package/hooks/useToggle.js +0 -5
  306. package/hooks/useTween.js +0 -11
  307. package/hooks/useUnmount.js +0 -9
  308. package/hooks/useUnmountPromise.js +0 -20
  309. package/hooks/useUpdate.js +0 -10
  310. package/hooks/useUpdateTimeout.js +0 -9
  311. package/hooks/useUpsert.js +0 -16
  312. package/hooks/useVibrate.js +0 -21
  313. package/hooks/useVideo.js +0 -5
  314. package/hooks/useWindowScroll.js +0 -29
  315. package/types/hooks/component/UseKey.d.ts +0 -2
  316. package/types/hooks/factory/createBreakpoint.d.ts +0 -4
  317. package/types/hooks/factory/createGlobalState.d.ts +0 -7
  318. package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
  319. package/types/hooks/factory/createMemo.d.ts +0 -2
  320. package/types/hooks/factory/createReducer.d.ts +0 -8
  321. package/types/hooks/factory/createReducerContext.d.ts +0 -5
  322. package/types/hooks/factory/createRenderProp.d.ts +0 -1
  323. package/types/hooks/factory/createRouter.d.ts +0 -7
  324. package/types/hooks/factory/createStateContext.d.ts +0 -5
  325. package/types/hooks/misc/hookState.d.ts +0 -8
  326. package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
  327. package/types/hooks/misc/types.d.ts +0 -2
  328. package/types/hooks/misc/util.d.ts +0 -5
  329. package/types/hooks/useAsync.d.ts +0 -20
  330. package/types/hooks/useAsyncFn.d.ts +0 -23
  331. package/types/hooks/useAsyncRetry.d.ts +0 -27
  332. package/types/hooks/useAudio.d.ts +0 -11
  333. package/types/hooks/useBeforeUnload.d.ts +0 -2
  334. package/types/hooks/useBoolean.d.ts +0 -2
  335. package/types/hooks/useClickAway.d.ts +0 -3
  336. package/types/hooks/useCopyToClipboard.d.ts +0 -7
  337. package/types/hooks/useCounter.d.ts +0 -9
  338. package/types/hooks/useCreation.d.ts +0 -2
  339. package/types/hooks/useCustomCompareEffect.d.ts +0 -4
  340. package/types/hooks/useDebounce.d.ts +0 -3
  341. package/types/hooks/useDefault.d.ts +0 -2
  342. package/types/hooks/useDrop.d.ts +0 -17
  343. package/types/hooks/useDropArea.d.ts +0 -18
  344. package/types/hooks/useEffectOnce.d.ts +0 -3
  345. package/types/hooks/useEffectState.d.ts +0 -2
  346. package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
  347. package/types/hooks/useError.d.ts +0 -2
  348. package/types/hooks/useEvent.d.ts +0 -13
  349. package/types/hooks/useEventListener.d.ts +0 -2
  350. package/types/hooks/useFavicon.d.ts +0 -2
  351. package/types/hooks/useFirstMountState.d.ts +0 -1
  352. package/types/hooks/useFullscreen.d.ts +0 -10
  353. package/types/hooks/useGeolocation.d.ts +0 -21
  354. package/types/hooks/useGetSet.d.ts +0 -3
  355. package/types/hooks/useGetSetState.d.ts +0 -2
  356. package/types/hooks/useHash.d.ts +0 -2
  357. package/types/hooks/useHover.d.ts +0 -4
  358. package/types/hooks/useHoverDirty.d.ts +0 -3
  359. package/types/hooks/useIdle.d.ts +0 -2
  360. package/types/hooks/useIntersection.d.ts +0 -3
  361. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
  362. package/types/hooks/useKey.d.ts +0 -12
  363. package/types/hooks/useKeyPress.d.ts +0 -3
  364. package/types/hooks/useKeyPressEvent.d.ts +0 -3
  365. package/types/hooks/useLatest.d.ts +0 -4
  366. package/types/hooks/useLifecycles.d.ts +0 -2
  367. package/types/hooks/useList.d.ts +0 -18
  368. package/types/hooks/useLocalStorage.d.ts +0 -10
  369. package/types/hooks/useLocation.d.ts +0 -16
  370. package/types/hooks/useLockBodyScroll.d.ts +0 -8
  371. package/types/hooks/useLogger.d.ts +0 -2
  372. package/types/hooks/useLongPress.d.ts +0 -12
  373. package/types/hooks/useMap.d.ts +0 -11
  374. package/types/hooks/useMeasure.d.ts +0 -9
  375. package/types/hooks/useMeasureDirty.d.ts +0 -11
  376. package/types/hooks/useMediaDevices.d.ts +0 -2
  377. package/types/hooks/useMediatedState.d.ts +0 -9
  378. package/types/hooks/useMethods.d.ts +0 -8
  379. package/types/hooks/useMotion.d.ts +0 -20
  380. package/types/hooks/useMount.d.ts +0 -2
  381. package/types/hooks/useMountedState.d.ts +0 -1
  382. package/types/hooks/useMouse.d.ts +0 -13
  383. package/types/hooks/useMouseHovered.d.ts +0 -8
  384. package/types/hooks/useMouseWheel.d.ts +0 -2
  385. package/types/hooks/useMultiStateValidator.d.ts +0 -9
  386. package/types/hooks/useNetworkState.d.ts +0 -22
  387. package/types/hooks/useNumber.d.ts +0 -2
  388. package/types/hooks/useObservable.d.ts +0 -8
  389. package/types/hooks/useOrientation.d.ts +0 -6
  390. package/types/hooks/usePageLeave.d.ts +0 -2
  391. package/types/hooks/usePermission.d.ts +0 -16
  392. package/types/hooks/usePinchZoom.d.ts +0 -18
  393. package/types/hooks/usePreviousDistinct.d.ts +0 -2
  394. package/types/hooks/usePromise.d.ts +0 -3
  395. package/types/hooks/useQueue.d.ts +0 -9
  396. package/types/hooks/useRaf.d.ts +0 -2
  397. package/types/hooks/useRafLoop.d.ts +0 -2
  398. package/types/hooks/useRafState.d.ts +0 -3
  399. package/types/hooks/useReactive.d.ts +0 -2
  400. package/types/hooks/useRendersCount.d.ts +0 -1
  401. package/types/hooks/useScroll.d.ts +0 -7
  402. package/types/hooks/useScrolling.d.ts +0 -3
  403. package/types/hooks/useSearchParam.d.ts +0 -3
  404. package/types/hooks/useSessionStorage.d.ts +0 -2
  405. package/types/hooks/useSet.d.ts +0 -11
  406. package/types/hooks/useSetState.d.ts +0 -2
  407. package/types/hooks/useSize.d.ts +0 -8
  408. package/types/hooks/useSlider.d.ts +0 -15
  409. package/types/hooks/useSpeech.d.ts +0 -16
  410. package/types/hooks/useStartTyping.d.ts +0 -2
  411. package/types/hooks/useStateList.d.ts +0 -9
  412. package/types/hooks/useStateValidator.d.ts +0 -8
  413. package/types/hooks/useStateWithHistory.d.ts +0 -18
  414. package/types/hooks/useSyncState.d.ts +0 -3
  415. package/types/hooks/useThrottle.d.ts +0 -2
  416. package/types/hooks/useThrottleFn.d.ts +0 -2
  417. package/types/hooks/useTimeout.d.ts +0 -2
  418. package/types/hooks/useTimeoutFn.d.ts +0 -2
  419. package/types/hooks/useTitle.d.ts +0 -6
  420. package/types/hooks/useToggle.d.ts +0 -2
  421. package/types/hooks/useTween.d.ts +0 -3
  422. package/types/hooks/useUnmount.d.ts +0 -2
  423. package/types/hooks/useUnmountPromise.d.ts +0 -3
  424. package/types/hooks/useUpdate.d.ts +0 -2
  425. package/types/hooks/useUpdateTimeout.d.ts +0 -2
  426. package/types/hooks/useUpsert.d.ts +0 -6
  427. package/types/hooks/useVibrate.d.ts +0 -4
  428. package/types/hooks/useVideo.d.ts +0 -11
  429. package/types/hooks/useWindowScroll.d.ts +0 -6
@@ -1,36 +1,35 @@
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 L = (e, t, r) => et(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as h, jsxs as re, Fragment as tt } from "react/jsx-runtime";
5
- import le from "lodash/isPlainObject";
6
- import nt from "lodash/isString";
7
- import rt from "lodash/isUndefined";
8
- import ce, { useContext as de, useRef as ie, useState as ae, useMemo as he, useImperativeHandle as Ae, useCallback as it, useEffect as we } from "react";
9
- import { a as fe, I as st } from "./xPzFRQJn.js";
10
- import Fe from "../hooks/useMergeProps.js";
11
- import $e from "../hooks/useMergeValue.js";
12
- import D from "@unicom-cloud/utils/class-name";
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 L = (e, t, r) => Ze(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { jsx as h, jsxs as ie, Fragment as et } from "react/jsx-runtime";
5
+ import Q from "lodash/isPlainObject";
6
+ import tt from "lodash/isString";
7
+ import nt from "lodash/isUndefined";
8
+ import ce, { useContext as de, useRef as se, useState as le, useMemo as he, useImperativeHandle as Ae, useCallback as rt, useEffect as we } from "react";
9
+ import { b as fe, I as it } from "./DUxWiN2U.js";
10
+ import ze from "../hooks/useMergeProps.js";
11
+ import ye from "../hooks/useMergeValue.js";
12
+ import { y as D } from "./Do1aMgY3.js";
13
13
  import { contains as Le } from "../utils/dom.js";
14
- import { u as ot, I as at } from "./CzTYWtfa.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
- import se from "lodash/isNumber";
20
- import ft from "@unicom-cloud/icons/IconUiEye";
21
- import mt from "@unicom-cloud/icons/IconUiEyeInvisible";
22
- import gt from "../hooks/useKeyboardEvent.js";
23
- import ye from "../utils/omit.js";
24
- import ht from "@unicom-cloud/icons/IconUiLoading";
25
- import De from "@unicom-cloud/icons/IconUiSearch";
14
+ import { u as st, I as ot } from "./Dg2DmtzA.js";
15
+ import { I as at } from "./1mEO29GP.js";
16
+ import { I as lt } from "./9Gh1afjL.js";
17
+ import { I as ut } from "./B6fn5y_s.js";
18
+ import { I as ct } from "./C2fspJbE.js";
19
+ import oe from "lodash/isNumber";
20
+ import { I as dt } from "./C7Okdv4u.js";
21
+ import { I as ft } from "./Dtnux4qL.js";
22
+ import mt from "../hooks/useKeyboardEvent.js";
23
+ import Ie from "../utils/omit.js";
24
+ import { e as gt, I as ht } from "./B45v5S9k.js";
25
+ import { I as De } from "./DhLbnw3R.js";
26
26
  import pt from "../Button.js";
27
- import { I as Nt } from "./CK0H_Yi4.js";
28
- import xt from "@unicom-cloud/icons/IconUiClose";
29
- import ke from "../hooks/useIsomorphicLayoutEffect.js";
27
+ import { I as Nt } from "./DafaH1Qt.js";
28
+ import Fe from "../hooks/useIsomorphicLayoutEffect.js";
30
29
  import "../utils/is.js";
31
- import { isPlainObject as ze } from "@unicom-cloud/utils/is";
32
- import { ArrowDown as St, ArrowUp as vt } from "../utils/keyCode.js";
33
- const He = ce.forwardRef((e, t) => {
30
+ import "./BeM2hfks.js";
31
+ import { ArrowDown as xt, ArrowUp as St } from "../utils/keyCode.js";
32
+ const ke = ce.forwardRef((e, t) => {
34
33
  const { getPrefixCls: r } = de(fe), { className: i, style: s, children: c, compact: n, ...d } = e, u = r("input-group"), m = D(
35
34
  u,
36
35
  {
@@ -40,8 +39,8 @@ const He = ce.forwardRef((e, t) => {
40
39
  );
41
40
  return /* @__PURE__ */ h("div", { ref: t, className: m, style: s, ...d, children: c });
42
41
  });
43
- He.displayName = "InputGroup";
44
- function Ue(e) {
42
+ ke.displayName = "InputGroup";
43
+ function He(e) {
45
44
  return !Number.isNaN(Number(e)) && String(e).includes("e");
46
45
  }
47
46
  function Ee() {
@@ -49,15 +48,15 @@ function Ee() {
49
48
  }
50
49
  function Ce(e) {
51
50
  const t = String(e);
52
- if (Ue(e)) {
51
+ if (He(e)) {
53
52
  let r = Number(t.slice(t.indexOf("e-") + 2));
54
53
  return t.replace(/\.(\d+)/, (i, s) => (r += s.length, i)), r;
55
54
  }
56
55
  return t.includes(".") && We(t) ? t.length - t.indexOf(".") - 1 : 0;
57
56
  }
58
- function Oe(e) {
57
+ function Ue(e) {
59
58
  let t = String(e);
60
- if (Ue(e)) {
59
+ if (He(e)) {
61
60
  if (e < Number.MIN_SAFE_INTEGER)
62
61
  return Ee() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER.toString();
63
62
  if (e > Number.MAX_SAFE_INTEGER)
@@ -107,7 +106,7 @@ class Ne {
107
106
  this.isNaN = !0;
108
107
  return;
109
108
  }
110
- const r = Oe(t);
109
+ const r = Ue(t);
111
110
  if (We(r)) {
112
111
  const { negative: i, trimStr: s } = pe(r), [c, n = "0"] = s.split(".");
113
112
  this.isNegative = i, this.integer = BigInt(c), this.decimal = BigInt(n), this.decimalLen = n.length;
@@ -172,7 +171,7 @@ class Ne {
172
171
  return typeof i == "number" ? Re(s, i) : s;
173
172
  }
174
173
  }
175
- class ne {
174
+ class re {
176
175
  constructor(t) {
177
176
  L(this, "isEmpty");
178
177
  L(this, "isNaN");
@@ -184,7 +183,7 @@ class ne {
184
183
  return this.isEmpty || this.isNaN;
185
184
  }
186
185
  negate() {
187
- return new ne(-this.toNumber());
186
+ return new re(-this.toNumber());
188
187
  }
189
188
  equals(t) {
190
189
  return this.toNumber() === (t == null ? void 0 : t.toNumber());
@@ -193,32 +192,32 @@ class ne {
193
192
  return this.isInvalid || t.isInvalid ? !1 : this.add(t.negate().toString()).toNumber() < 0;
194
193
  }
195
194
  add(t) {
196
- const r = new ne(t);
195
+ const r = new re(t);
197
196
  if (r.isInvalid)
198
197
  return this;
199
198
  if (this.isInvalid)
200
199
  return r;
201
200
  const i = this.number + r.number;
202
201
  if (i > Number.MAX_SAFE_INTEGER)
203
- return new ne(Number.MAX_SAFE_INTEGER);
202
+ return new re(Number.MAX_SAFE_INTEGER);
204
203
  if (i < Number.MIN_SAFE_INTEGER)
205
- return new ne(Number.MIN_SAFE_INTEGER);
204
+ return new re(Number.MIN_SAFE_INTEGER);
206
205
  const s = Math.max(
207
206
  Ce(this.number),
208
207
  Ce(r.number)
209
208
  );
210
- return new ne(i.toFixed(s));
209
+ return new re(i.toFixed(s));
211
210
  }
212
211
  toNumber() {
213
212
  return this.number;
214
213
  }
215
214
  toString(t = { safe: !0 }) {
216
- const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : Oe(this.number) : this.origin;
215
+ const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : Ue(this.number) : this.origin;
217
216
  return typeof i == "number" ? Re(s, i) : s;
218
217
  }
219
218
  }
220
- function te(e) {
221
- return Ee() ? new Ne(e) : new ne(e);
219
+ function ne(e) {
220
+ return Ee() ? new Ne(e) : new re(e);
222
221
  }
223
222
  function Re(e, t, r = !1) {
224
223
  if (e === "")
@@ -227,7 +226,7 @@ function Re(e, t, r = !1) {
227
226
  if (t >= 0) {
228
227
  const m = Number(n[t]);
229
228
  if (m >= 5 && !r) {
230
- const f = te(e).add(
229
+ const f = ne(e).add(
231
230
  `${s}0.${"0".repeat(t)}${10 - m}`
232
231
  );
233
232
  return Re(f.toString(), t, r);
@@ -236,15 +235,15 @@ function Re(e, t, r = !1) {
236
235
  }
237
236
  return `${u}${d === ".0" ? "" : d}`;
238
237
  }
239
- function bt({
238
+ function vt({
240
239
  inputElement: e,
241
240
  inputValue: t
242
241
  }) {
243
- const r = ie(null);
244
- return ke(() => {
242
+ const r = se(null);
243
+ return Fe(() => {
245
244
  try {
246
245
  const i = r.current;
247
- if (e && t && se(i)) {
246
+ if (e && t && oe(i)) {
248
247
  const s = Math.max(0, t.length - i);
249
248
  e.setSelectionRange(s, s);
250
249
  }
@@ -253,24 +252,24 @@ function bt({
253
252
  }
254
253
  }, [t]), (i) => {
255
254
  const { selectionEnd: s, value: c } = i.target;
256
- se(s) && (r.current = c.length - s);
255
+ oe(s) && (r.current = c.length - s);
257
256
  };
258
257
  }
259
- const $t = 200, yt = 1e3, It = {
258
+ const bt = 200, yt = 1e3, It = {
260
259
  max: 1 / 0,
261
260
  min: -1 / 0,
262
261
  step: 1,
263
262
  mode: "embed",
264
263
  parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
265
264
  };
266
- function wt(e, t) {
265
+ function $t(e, t) {
267
266
  var Te;
268
267
  const {
269
268
  getPrefixCls: r,
270
269
  size: i,
271
270
  componentConfig: s,
272
271
  rtl: c
273
- } = de(fe), n = Fe(
272
+ } = de(fe), n = ze(
274
273
  e,
275
274
  It,
276
275
  s == null ? void 0 : s.InputNumber
@@ -279,36 +278,36 @@ function wt(e, t) {
279
278
  style: u,
280
279
  defaultValue: m,
281
280
  disabled: f,
282
- error: I,
281
+ error: $,
283
282
  readOnly: x,
284
283
  strictMode: E,
285
284
  placeholder: V,
286
285
  hideControl: A,
287
286
  suffix: R,
288
- prefix: P,
287
+ prefix: M,
289
288
  icons: p,
290
- mode: $,
289
+ mode: y,
291
290
  size: g,
292
291
  step: v,
293
292
  precision: z,
294
- min: y,
293
+ min: I,
295
294
  max: F,
296
- parser: W,
295
+ parser: O,
297
296
  formatter: U,
298
- onBlur: M,
297
+ onBlur: P,
299
298
  onFocus: k,
300
299
  onChange: K,
301
300
  onKeyDown: X,
302
301
  ...me
303
302
  } = n, a = r("input-number"), w = g || i, H = (() => {
304
- if (se(z)) {
303
+ if (oe(z)) {
305
304
  const o = `${v}`.split(".")[1], N = o && o.length || 0;
306
305
  return Math.max(N, z);
307
306
  }
308
307
  return null;
309
- })(), [B, _] = ae(() => te(
308
+ })(), [B, _] = le(() => ne(
310
309
  "value" in n ? n.value : "defaultValue" in n ? m : void 0
311
- )), [T, oe] = ae(""), [q, Q] = ae(!1), [G, j] = ae(!1), l = ie(null), b = ie(null), Y = ie(!1), S = he(() => "value" in n ? te(n.value) : B, [n.value, B]), [Z, ee] = he(() => [te(F), te(y)], [F, y]);
310
+ )), [T, ae] = le(""), [q, Z] = le(!1), [G, j] = le(!1), l = se(null), b = se(null), Y = se(!1), S = he(() => "value" in n ? ne(n.value) : B, [n.value, B]), [ee, te] = he(() => [ne(F), ne(I)], [F, I]);
312
311
  Ae(t, () => b.current, []);
313
312
  const xe = (o, N) => {
314
313
  if (_(o), !o.equals(S) && K) {
@@ -323,60 +322,60 @@ function wt(e, t) {
323
322
  }
324
323
  }, Se = () => {
325
324
  l.current && clearTimeout(l.current), l.current = null;
326
- }, ge = it(
325
+ }, ge = rt(
327
326
  (o) => {
328
327
  let N = o;
329
- return N.less(ee) ? N = ee : Z.less(N) && (N = Z), N;
328
+ return N.less(te) ? N = te : ee.less(N) && (N = ee), N;
330
329
  },
331
- [ee, Z]
330
+ [te, ee]
332
331
  );
333
332
  we(() => () => Se(), []), we(() => {
334
333
  Y.current = !1;
335
334
  }, [n.value]), we(() => {
336
- const o = S.less(ee) || Z.less(S);
337
- o && Y.current && xe(ge(S), "outOfRange"), Q(o);
338
- }, [ee, Z, S, ge]);
339
- const Ie = (o, N, C = !1) => {
335
+ const o = S.less(te) || ee.less(S);
336
+ o && Y.current && xe(ge(S), "outOfRange"), Z(o);
337
+ }, [te, ee, S, ge]);
338
+ const $e = (o, N, C = !1) => {
340
339
  if (o.persist(), o.preventDefault(), j(!1), f || x)
341
340
  return;
342
- const Je = S.isInvalid ? te(y === -1 / 0 || y <= 0 && F >= 0 ? 0 : y) : S.add(N === "plus" ? v : -v);
341
+ const Ye = S.isInvalid ? ne(I === -1 / 0 || I <= 0 && F >= 0 ? 0 : I) : S.add(N === "plus" ? v : -v);
343
342
  if (xe(
344
- ge(Je),
343
+ ge(Ye),
345
344
  N === "plus" ? "increase" : "decrease"
346
345
  ), b.current && b.current.focus(), C) {
347
- const Qe = l.current === null;
346
+ const Je = l.current === null;
348
347
  l.current = setTimeout(
349
348
  () => o.target.dispatchEvent(o.nativeEvent),
350
- Qe ? yt : $t
349
+ Je ? yt : bt
351
350
  );
352
351
  }
353
- }, Pe = he(() => {
352
+ }, Me = he(() => {
354
353
  let o;
355
- return G ? o = W ? `${W(T)}` : T : se(H) ? o = S.toString({ safe: !0, precision: H }) : S.isInvalid ? o = "" : o = S.toString(), U ? U(o, { userTyping: G, input: T }) : o;
356
- }, [S, T, G, H, W, U]), Ke = bt({
354
+ return G ? o = O ? `${O(T)}` : T : oe(H) ? o = S.toString({ safe: !0, precision: H }) : S.isInvalid ? o = "" : o = S.toString(), U ? U(o, { userTyping: G, input: T }) : o;
355
+ }, [S, T, G, H, O, U]), je = vt({
357
356
  inputElement: (Te = b.current) == null ? void 0 : Te.dom,
358
- inputValue: Pe
359
- }), Xe = {
357
+ inputValue: Me
358
+ }), Ke = {
360
359
  onChange: (o, N) => {
361
360
  j(!0), o = o.trim().replace(/。/g, ".");
362
- const C = W ? W(o) : o;
363
- (se(+C) || C === "-" || !C || C === ".") && (oe(o), xe(ge(te(C)), "manual"), Ke(N));
361
+ const C = O ? O(o) : o;
362
+ (oe(+C) || C === "-" || !C || C === ".") && (ae(o), xe(ge(ne(C)), "manual"), je(N));
364
363
  },
365
364
  onKeyDown: (o) => {
366
365
  const N = o.key;
367
- N === St.key ? (o.stopPropagation(), Ie(o, "minus")) : N === vt.key && (o.stopPropagation(), Ie(o, "plus")), Se(), X == null || X(o);
366
+ N === xt.key ? (o.stopPropagation(), $e(o, "minus")) : N === St.key && (o.stopPropagation(), $e(o, "plus")), Se(), X == null || X(o);
368
367
  },
369
368
  onFocus: (o) => {
370
369
  var N, C;
371
- Y.current = !0, oe((C = (N = b.current) == null ? void 0 : N.dom) == null ? void 0 : C.value), k == null || k(o);
370
+ Y.current = !0, ae((C = (N = b.current) == null ? void 0 : N.dom) == null ? void 0 : C.value), k == null || k(o);
372
371
  },
373
372
  onBlur: (o) => {
374
- xe(ge(S), "outOfRange"), j(!1), M == null || M(o);
373
+ xe(ge(S), "outOfRange"), j(!1), P == null || P(o);
375
374
  }
376
- }, qe = (o) => x ? {} : {
377
- onMouseDown: (N) => Ie(N, o, !0)
378
- }, Me = !A && $ === "button", Ye = !A && !x && $ === "embed", ve = (o, N) => {
379
- const C = !f && (S.isInvalid || (o === "plus" ? Z.isInvalid || S.less(Z) : ee.isInvalid || ee.less(S)));
375
+ }, Xe = (o) => x ? {} : {
376
+ onMouseDown: (N) => $e(N, o, !0)
377
+ }, Pe = !A && y === "button", qe = !A && !x && y === "embed", ve = (o, N) => {
378
+ const C = !f && (S.isInvalid || (o === "plus" ? ee.isInvalid || S.less(ee) : te.isInvalid || te.less(S)));
380
379
  return /* @__PURE__ */ h(
381
380
  "div",
382
381
  {
@@ -385,7 +384,7 @@ function wt(e, t) {
385
384
  }),
386
385
  onMouseLeave: Se,
387
386
  onMouseUp: Se,
388
- ...C ? qe(o) : {},
387
+ ...C ? Xe(o) : {},
389
388
  children: N
390
389
  }
391
390
  );
@@ -396,14 +395,14 @@ function wt(e, t) {
396
395
  _ignorePropsFromGlobal: !0,
397
396
  role: "spinbutton",
398
397
  "aria-valuemax": F,
399
- "aria-valuemin": y,
398
+ "aria-valuemin": I,
400
399
  "aria-valuenow": S.isEmpty ? void 0 : S.toNumber(),
401
- ...ye(me, ["allowClear"]),
402
- ...Xe,
400
+ ...Ie(me, ["allowClear"]),
401
+ ...Ke,
403
402
  style: u,
404
403
  className: D(
405
404
  a,
406
- `${a}-mode-${$}`,
405
+ `${a}-mode-${y}`,
407
406
  `${a}-size-${w}`,
408
407
  {
409
408
  [`${a}-rtl`]: c,
@@ -414,51 +413,51 @@ function wt(e, t) {
414
413
  ),
415
414
  ref: b,
416
415
  size: w,
417
- error: I,
416
+ error: $,
418
417
  disabled: f,
419
418
  readOnly: x,
420
- value: Pe,
419
+ value: Me,
421
420
  placeholder: V,
422
- prefix: P && /* @__PURE__ */ h("div", { className: `${a}-prefix`, children: P }),
423
- suffix: /* @__PURE__ */ re(tt, { children: [
424
- Ye && /* @__PURE__ */ re("div", { className: `${a}-step-layer`, children: [
421
+ prefix: M && /* @__PURE__ */ h("div", { className: `${a}-prefix`, children: M }),
422
+ suffix: /* @__PURE__ */ ie(et, { children: [
423
+ qe && /* @__PURE__ */ ie("div", { className: `${a}-step-layer`, children: [
425
424
  ve(
426
425
  "plus",
427
- p && p.up ? p.up : /* @__PURE__ */ h(dt, {})
426
+ p && p.up ? p.up : /* @__PURE__ */ h(ct, {})
428
427
  ),
429
428
  ve(
430
429
  "minus",
431
- p && p.down ? p.down : /* @__PURE__ */ h(lt, {})
430
+ p && p.down ? p.down : /* @__PURE__ */ h(at, {})
432
431
  )
433
432
  ] }),
434
433
  R && /* @__PURE__ */ h("div", { className: `${a}-suffix`, children: R })
435
434
  ] }),
436
- addBefore: Me && ve(
435
+ addBefore: Pe && ve(
437
436
  "minus",
438
- p && p.minus ? p.minus : /* @__PURE__ */ h(ut, {})
437
+ p && p.minus ? p.minus : /* @__PURE__ */ h(lt, {})
439
438
  ),
440
- addAfter: Me && ve(
439
+ addAfter: Pe && ve(
441
440
  "plus",
442
- p && p.plus ? p.plus : /* @__PURE__ */ h(ct, {})
441
+ p && p.plus ? p.plus : /* @__PURE__ */ h(ut, {})
443
442
  )
444
443
  }
445
444
  );
446
445
  }
447
- const Be = ce.forwardRef(
448
- wt
446
+ const Oe = ce.forwardRef(
447
+ $t
449
448
  );
450
- Be.displayName = "InputNumber";
451
- const _e = ce.forwardRef(
449
+ Oe.displayName = "InputNumber";
450
+ const Be = ce.forwardRef(
452
451
  (e, t) => {
453
- const [r, i] = $e(!1, {
452
+ const [r, i] = ye(!1, {
454
453
  defaultValue: e.defaultVisibility,
455
454
  value: e.visibility
456
- }), { getPrefixCls: s } = de(fe), c = gt(), {
455
+ }), { getPrefixCls: s } = de(fe), c = mt(), {
457
456
  className: n,
458
457
  visibilityToggle: d = !0,
459
458
  onVisibilityChange: u,
460
459
  ...m
461
- } = e, f = s("input-password"), I = D(
460
+ } = e, f = s("input-password"), $ = D(
462
461
  f,
463
462
  {
464
463
  [`${f}-visibility`]: d
@@ -482,7 +481,7 @@ const _e = ce.forwardRef(
482
481
  })
483
482
  };
484
483
  e.suffix ? E = /* @__PURE__ */ h("span", { ...A, children: e.suffix }) : E = /* @__PURE__ */ h(
485
- r ? ft : mt,
484
+ r ? dt : ft,
486
485
  {
487
486
  ...A,
488
487
  focusable: void 0,
@@ -495,17 +494,17 @@ const _e = ce.forwardRef(
495
494
  return /* @__PURE__ */ h(
496
495
  Ve,
497
496
  {
498
- ...ye(m, ["visibility", "defaultVisibility"]),
497
+ ...Ie(m, ["visibility", "defaultVisibility"]),
499
498
  type: r ? "text" : "password",
500
- className: I,
499
+ className: $,
501
500
  ref: t,
502
501
  suffix: E
503
502
  }
504
503
  );
505
504
  }
506
505
  );
507
- _e.displayName = "Password";
508
- const Ge = ce.forwardRef(
506
+ Be.displayName = "Password";
507
+ const _e = ce.forwardRef(
509
508
  (e, t) => {
510
509
  const { getPrefixCls: r } = de(fe), {
511
510
  className: i,
@@ -516,25 +515,25 @@ const Ge = ce.forwardRef(
516
515
  loading: u,
517
516
  defaultValue: m,
518
517
  addAfter: f,
519
- suffix: I,
518
+ suffix: $,
520
519
  ...x
521
- } = e, E = le(e.maxLength) ? e.maxLength.length : e.maxLength, V = le(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [A, R] = $e("", {
520
+ } = e, E = Q(e.maxLength) ? e.maxLength.length : e.maxLength, V = Q(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [A, R] = ye("", {
522
521
  defaultValue: "defaultValue" in e ? ue(e.defaultValue, V) : void 0,
523
522
  value: "value" in e ? ue(e.value, V) : void 0
524
- }), P = r("input-search"), p = D(
525
- P,
523
+ }), M = r("input-search"), p = D(
524
+ M,
526
525
  {
527
- [`${P}-button`]: d
526
+ [`${M}-button`]: d
528
527
  },
529
528
  i
530
- ), $ = () => {
529
+ ), y = () => {
531
530
  var g;
532
531
  !n && ((g = e.onSearch) == null || g.call(e, A));
533
532
  };
534
533
  return /* @__PURE__ */ h(
535
534
  Ve,
536
535
  {
537
- ...ye(x, ["onSearch"]),
536
+ ...Ie(x, ["onSearch"]),
538
537
  disabled: n,
539
538
  className: p,
540
539
  style: s,
@@ -545,9 +544,9 @@ const Ge = ce.forwardRef(
545
544
  {
546
545
  disabled: n,
547
546
  size: x.size,
548
- className: `${P}-btn`,
547
+ className: `${M}-btn`,
549
548
  type: "primary",
550
- onClick: $,
549
+ onClick: y,
551
550
  loading: u,
552
551
  loadingFixedWidth: !0,
553
552
  icon: d === !0 && !u && /* @__PURE__ */ h(De, {}),
@@ -555,7 +554,7 @@ const Ge = ce.forwardRef(
555
554
  children: d !== !0 && d
556
555
  }
557
556
  ) : null,
558
- suffix: I !== void 0 ? I : !d && (u ? /* @__PURE__ */ h(ht, {}) : /* @__PURE__ */ h(De, { onClick: $ })),
557
+ suffix: $ !== void 0 ? $ : !d && (u ? /* @__PURE__ */ h(gt, {}) : /* @__PURE__ */ h(De, { onClick: y })),
559
558
  onChange: (g, v) => {
560
559
  var z;
561
560
  R(g), (z = e.onChange) == null || z.call(e, g, v);
@@ -563,14 +562,14 @@ const Ge = ce.forwardRef(
563
562
  defaultValue: m,
564
563
  onPressEnter: (g) => {
565
564
  var v;
566
- $(), (v = e.onPressEnter) == null || v.call(e, g);
565
+ y(), (v = e.onPressEnter) == null || v.call(e, g);
567
566
  }
568
567
  }
569
568
  );
570
569
  }
571
570
  );
572
- Ge.displayName = "Search";
573
- const Et = [
571
+ _e.displayName = "Search";
572
+ const wt = [
574
573
  "position: absolute",
575
574
  "min-height: 0 !important",
576
575
  "max-height: none",
@@ -579,7 +578,7 @@ const Et = [
579
578
  "z-index: -100",
580
579
  "top: 0",
581
580
  "right: 0"
582
- ].join(";"), Ct = [
581
+ ].join(";"), Et = [
583
582
  "border-width",
584
583
  "box-sizing",
585
584
  "font-family",
@@ -598,10 +597,10 @@ const Et = [
598
597
  "width"
599
598
  ];
600
599
  let J;
601
- function At(e) {
600
+ function Ct(e) {
602
601
  J || (J = document.createElement("textarea"), document.body.appendChild(J));
603
- const t = window.getComputedStyle(e), r = Ct.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
604
- J.setAttribute("style", Et + r);
602
+ const t = window.getComputedStyle(e), r = Et.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
603
+ J.setAttribute("style", wt + r);
605
604
  const i = parseFloat(t.getPropertyValue("padding-top")) + parseFloat(t.getPropertyValue("padding-bottom")), s = t.getPropertyValue("box-sizing"), c = parseFloat(t.getPropertyValue("border-top-width")) + parseFloat(t.getPropertyValue("border-bottom-width"));
606
605
  return {
607
606
  paddingSize: i,
@@ -609,28 +608,28 @@ function At(e) {
609
608
  borderSize: c
610
609
  };
611
610
  }
612
- function Rt(e, t) {
611
+ function At(e, t) {
613
612
  const r = () => {
614
613
  let i, s;
615
- return le(e) && (i = e.minRows, s = e.maxRows), {
614
+ return Q(e) && (i = e.minRows, s = e.maxRows), {
616
615
  minRows: i,
617
616
  maxRows: s
618
617
  };
619
618
  };
620
619
  if (e) {
621
- const { minRows: i, maxRows: s } = r(), c = t, { paddingSize: n, boxSizing: d, borderSize: u } = At(c);
620
+ const { minRows: i, maxRows: s } = r(), c = t, { paddingSize: n, boxSizing: d, borderSize: u } = Ct(c);
622
621
  J.value = c.value || c.placeholder || "";
623
- let m = J.scrollHeight + u, f, I, x;
622
+ let m = J.scrollHeight + u, f, $, x;
624
623
  if (i || s) {
625
624
  J.value = "";
626
625
  const V = J.scrollHeight - n;
627
- se(i) && (f = V * i, d === "border-box" && (f += n, f += u), m = Math.max(m, f)), se(s) && (I = V * s, d === "border-box" && (I += n, I += u), x = m > I ? "auto" : "", I = Math.min(m, I));
626
+ oe(i) && (f = V * i, d === "border-box" && (f += n, f += u), m = Math.max(m, f)), oe(s) && ($ = V * s, d === "border-box" && ($ += n, $ += u), x = m > $ ? "auto" : "", $ = Math.min(m, $));
628
627
  }
629
628
  const E = {};
630
- return E.height = m, f && (E.minHeight = f), I && (E.maxHeight = I), x && (E.overflowY = x), E;
629
+ return E.height = m, f && (E.minHeight = f), $ && (E.maxHeight = $), x && (E.overflowY = x), E;
631
630
  }
632
631
  }
633
- const Vt = (e, t) => {
632
+ const Rt = (e, t) => {
634
633
  const {
635
634
  className: r,
636
635
  style: i,
@@ -641,32 +640,32 @@ const Vt = (e, t) => {
641
640
  maxLength: u,
642
641
  showWordLimit: m,
643
642
  allowClear: f,
644
- onChange: I,
643
+ onChange: $,
645
644
  onClear: x,
646
645
  onKeyDown: E,
647
646
  onPressEnter: V,
648
647
  status: A,
649
648
  clearIcon: R,
650
- ...P
651
- } = e, p = ze(u) ? u.length : u, $ = ze(u) ? u.errorOnly ? void 0 : u.length : u, g = ie(), [v, z] = ae({}), [y, F] = $e("", {
652
- defaultValue: "defaultValue" in e ? ue(e.defaultValue, $) : void 0,
653
- value: "value" in e ? ue(e.value, $) : void 0
649
+ ...M
650
+ } = e, p = Q(u) ? u.length : u, y = Q(u) ? u.errorOnly ? void 0 : u.length : u, g = se(), [v, z] = le({}), [I, F] = ye("", {
651
+ defaultValue: "defaultValue" in e ? ue(e.defaultValue, y) : void 0,
652
+ value: "value" in e ? ue(e.value, y) : void 0
654
653
  }), {
655
- compositionValue: W,
654
+ compositionValue: O,
656
655
  compositionHandler: U,
657
- valueChangeHandler: M,
656
+ valueChangeHandler: P,
658
657
  keyDownHandler: k,
659
658
  triggerValueChangeCallback: K
660
- } = ot({
661
- value: y,
662
- maxLength: $,
663
- onChange: I,
659
+ } = st({
660
+ value: I,
661
+ maxLength: y,
662
+ onChange: $,
664
663
  onKeyDown: E,
665
664
  onPressEnter: V,
666
665
  beforeTriggerValueChangeCallback: (l) => {
667
- !("value" in e) && ($ === void 0 || l.length <= $) && F(l);
666
+ !("value" in e) && (y === void 0 || l.length <= y) && F(l);
668
667
  }
669
- }), X = W || y || "", { getPrefixCls: me, rtl: a } = de(fe), w = me("textarea");
668
+ }), X = O || I || "", { getPrefixCls: me, rtl: a } = de(fe), w = me("textarea");
670
669
  n && (v.resize = "none");
671
670
  const H = () => {
672
671
  if (g.current && g.current.focus) {
@@ -677,7 +676,7 @@ const Vt = (e, t) => {
677
676
  g.current.focus();
678
677
  }
679
678
  }, B = () => {
680
- const l = Rt(
679
+ const l = At(
681
680
  e.autoSize,
682
681
  g.current
683
682
  );
@@ -685,7 +684,7 @@ const Vt = (e, t) => {
685
684
  }, _ = (l) => {
686
685
  l.stopPropagation(), H(), K("", l), x == null || x();
687
686
  };
688
- ke(() => {
687
+ Fe(() => {
689
688
  B();
690
689
  }, [X]), Ae(
691
690
  t,
@@ -702,10 +701,10 @@ const Vt = (e, t) => {
702
701
  }),
703
702
  []
704
703
  );
705
- const T = y ? y.length : 0, oe = p && m || f, q = he(() => !$ && p ? T > p : !1, [T, p, $]), Q = A || (d || q ? "error" : void 0), G = D(
704
+ const T = I ? I.length : 0, ae = p && m || f, q = he(() => !y && p ? T > p : !1, [T, p, y]), Z = A || (d || q ? "error" : void 0), G = D(
706
705
  w,
707
706
  {
708
- [`${w}-${Q}`]: Q,
707
+ [`${w}-${Z}`]: Z,
709
708
  // [`${prefixCls}-error`]: error || lengthError || status === 'error',
710
709
  [`${w}-disabled`]: n,
711
710
  [`${w}-rtl`]: a
@@ -714,24 +713,24 @@ const Vt = (e, t) => {
714
713
  ), j = /* @__PURE__ */ h(
715
714
  "textarea",
716
715
  {
717
- ...ye(P, ["autoSize", "defaultValue"]),
718
- maxLength: $,
716
+ ...Ie(M, ["autoSize", "defaultValue"]),
717
+ maxLength: y,
719
718
  ref: g,
720
719
  style: { ...i, ...v },
721
720
  className: G,
722
721
  placeholder: c,
723
722
  disabled: n,
724
723
  value: X,
725
- onChange: M,
724
+ onChange: P,
726
725
  onKeyDown: k,
727
726
  onCompositionStart: U,
728
727
  onCompositionUpdate: U,
729
728
  onCompositionEnd: U
730
729
  }
731
730
  );
732
- if (oe) {
733
- const l = !n && f && y, [b, Y] = a ? [p, T] : [T, p];
734
- return /* @__PURE__ */ re(
731
+ if (ae) {
732
+ const l = !n && f && I, [b, Y] = a ? [p, T] : [T, p];
733
+ return /* @__PURE__ */ ie(
735
734
  "div",
736
735
  {
737
736
  className: D(`${w}-wrapper`, {
@@ -751,8 +750,8 @@ const Vt = (e, t) => {
751
750
  },
752
751
  children: R
753
752
  }
754
- ) : /* @__PURE__ */ h(st, { className: `${w}-clear-icon`, children: /* @__PURE__ */ h(
755
- xt,
753
+ ) : /* @__PURE__ */ h(it, { className: `${w}-clear-icon`, children: /* @__PURE__ */ h(
754
+ ht,
756
755
  {
757
756
  onClick: _,
758
757
  onMouseDown: (S) => {
@@ -760,7 +759,7 @@ const Vt = (e, t) => {
760
759
  }
761
760
  }
762
761
  ) }) : null,
763
- p && m && /* @__PURE__ */ re(
762
+ p && m && /* @__PURE__ */ ie(
764
763
  "span",
765
764
  {
766
765
  className: D(`${w}-word-limit`, {
@@ -778,13 +777,13 @@ const Vt = (e, t) => {
778
777
  );
779
778
  }
780
779
  return j;
781
- }, je = ce.forwardRef(Vt);
782
- je.displayName = "TextArea";
783
- const Pt = (e) => {
780
+ }, Ge = ce.forwardRef(Rt);
781
+ Ge.displayName = "TextArea";
782
+ const Vt = (e) => {
784
783
  e.target.tagName !== "INPUT" && e.preventDefault();
785
784
  }, be = (e, t, r = {}, i) => t ? /* @__PURE__ */ h("span", { style: r, className: e, onClick: i, children: t }) : null;
786
785
  function ue(e, t) {
787
- const r = e !== null && !rt(e) && !nt(e) ? String(e) : e || "";
786
+ const r = e !== null && !nt(e) && !tt(e) ? String(e) : e || "";
788
787
  return t ? r.slice(0, t) : r;
789
788
  }
790
789
  function Mt(e, t) {
@@ -793,7 +792,7 @@ function Mt(e, t) {
793
792
  size: i,
794
793
  componentConfig: s,
795
794
  rtl: c
796
- } = de(fe), n = Fe(
795
+ } = de(fe), n = ze(
797
796
  e,
798
797
  {},
799
798
  s == null ? void 0 : s.Input
@@ -802,39 +801,39 @@ function Mt(e, t) {
802
801
  style: u,
803
802
  addBefore: m,
804
803
  addAfter: f,
805
- suffix: I,
804
+ suffix: $,
806
805
  prefix: x,
807
806
  beforeStyle: E,
808
807
  afterStyle: V,
809
808
  height: A,
810
809
  disabled: R,
811
- maxLength: P,
810
+ maxLength: M,
812
811
  showWordLimit: p,
813
- allowClear: $,
812
+ allowClear: y,
814
813
  autoWidth: g
815
814
  } = n, v = g ? {
816
815
  minWidth: 0,
817
816
  maxWidth: "100%",
818
- ...le(g) ? g : {}
817
+ ...Q(g) ? g : {}
819
818
  } : null, z = {
820
819
  minWidth: v == null ? void 0 : v.minWidth,
821
820
  maxWidth: v == null ? void 0 : v.maxWidth,
822
821
  width: v && "auto",
823
822
  ...u
824
- }, y = le(P) ? P.length : P, F = le(P) && P.errorOnly ? void 0 : y, [W, U] = ae(!1), M = ie(), k = ie(), [K, X] = $e("", {
823
+ }, I = Q(M) ? M.length : M, F = Q(M) && M.errorOnly ? void 0 : I, [O, U] = le(!1), P = se(), k = se(), [K, X] = ye("", {
825
824
  defaultValue: "defaultValue" in n ? ue(n.defaultValue, F) : void 0,
826
825
  value: "value" in n ? ue(n.value, F) : void 0
827
826
  });
828
- Ae(t, () => M.current, []);
827
+ Ae(t, () => P.current, []);
829
828
  const me = (l, b) => {
830
829
  var Y;
831
830
  "value" in n || X(l), (Y = n.onChange) == null || Y.call(n, l, b);
832
831
  }, a = r("input"), w = n.size || i, H = "height" in n;
833
- let B = I;
834
- const _ = K ? K.length : 0, T = he(() => !F && y ? _ > y : !1, [_, y, F]);
835
- if (y && p) {
836
- const [l, b] = c ? [y, _] : [_, y];
837
- B = /* @__PURE__ */ re(
832
+ let B = $;
833
+ const _ = K ? K.length : 0, T = he(() => !F && I ? _ > I : !1, [_, I, F]);
834
+ if (I && p) {
835
+ const [l, b] = c ? [I, _] : [_, I];
836
+ B = /* @__PURE__ */ ie(
838
837
  "span",
839
838
  {
840
839
  className: D(`${a}-word-limit`, {
@@ -848,7 +847,7 @@ function Mt(e, t) {
848
847
  }
849
848
  );
850
849
  }
851
- const oe = D(
850
+ const ae = D(
852
851
  `${a}-group-wrapper`,
853
852
  `${a}-group-wrapper-${w}`,
854
853
  {
@@ -859,10 +858,10 @@ function Mt(e, t) {
859
858
  [`${a}-group-wrapper-autowidth`]: v
860
859
  },
861
860
  d
862
- ), q = n.status || (n.error || T ? "error" : void 0), Q = m || f || B || x, G = /* @__PURE__ */ h(
863
- at,
861
+ ), q = n.status || (n.error || T ? "error" : void 0), Z = m || f || B || x, G = /* @__PURE__ */ h(
862
+ ot,
864
863
  {
865
- ref: M,
864
+ ref: P,
866
865
  ...n,
867
866
  autoFitWidth: !!v,
868
867
  style: z,
@@ -878,26 +877,26 @@ function Mt(e, t) {
878
877
  onChange: me,
879
878
  prefixCls: a,
880
879
  value: K,
881
- hasParent: !!Q || $,
880
+ hasParent: !!Z || y,
882
881
  size: w
883
882
  }
884
883
  ), j = D(`${a}-inner-wrapper`, {
885
884
  [`${a}-inner-wrapper-${q}`]: q,
886
885
  [`${a}-inner-wrapper-disabled`]: R,
887
- [`${a}-inner-wrapper-focus`]: W,
886
+ [`${a}-inner-wrapper-focus`]: O,
888
887
  [`${a}-inner-wrapper-has-prefix`]: x,
889
888
  [`${a}-inner-wrapper-${w}`]: w,
890
- [`${a}-clear-wrapper`]: $,
889
+ [`${a}-clear-wrapper`]: y,
891
890
  [`${a}-inner-wrapper-rtl`]: c
892
891
  });
893
- return Q ? /* @__PURE__ */ h(
892
+ return Z ? /* @__PURE__ */ h(
894
893
  "div",
895
894
  {
896
- className: oe,
895
+ className: ae,
897
896
  style: { ...z, ...H ? { height: A } : {} },
898
- children: /* @__PURE__ */ re("span", { className: `${a}-group`, children: [
897
+ children: /* @__PURE__ */ ie("span", { className: `${a}-group`, children: [
899
898
  be(`${a}-group-addbefore`, m, E),
900
- /* @__PURE__ */ re(
899
+ /* @__PURE__ */ ie(
901
900
  "span",
902
901
  {
903
902
  className: j,
@@ -906,7 +905,7 @@ function Mt(e, t) {
906
905
  l.target.tagName !== "INPUT" && k.current && Le(k.current, l.target) && l.preventDefault();
907
906
  },
908
907
  onClick: (l) => {
909
- k.current && Le(k.current, l.target) && M.current && M.current.focus();
908
+ k.current && Le(k.current, l.target) && P.current && P.current.focus();
910
909
  },
911
910
  children: [
912
911
  be(`${a}-group-prefix`, x),
@@ -918,29 +917,29 @@ function Mt(e, t) {
918
917
  be(`${a}-group-addafter`, f, V)
919
918
  ] })
920
919
  }
921
- ) : $ ? /* @__PURE__ */ h(
920
+ ) : y ? /* @__PURE__ */ h(
922
921
  "span",
923
922
  {
924
923
  className: D(d, j),
925
924
  style: { ...z, ...H ? { height: A } : {} },
926
- onMouseDown: Pt,
925
+ onMouseDown: Vt,
927
926
  onClick: () => {
928
- M.current && M.current.focus();
927
+ P.current && P.current.focus();
929
928
  },
930
929
  children: G
931
930
  }
932
931
  ) : G;
933
932
  }
934
- const O = ce.forwardRef(Mt);
935
- O.displayName = "Input";
936
- O.Search = Ge;
937
- O.TextArea = je;
938
- O.Password = _e;
939
- O.Number = O.InputNumber = Be;
940
- O.Tag = O.InputTag = Nt;
941
- O.Group = He;
942
- const Ve = O;
933
+ const W = ce.forwardRef(Mt);
934
+ W.displayName = "Input";
935
+ W.Search = _e;
936
+ W.TextArea = Ge;
937
+ W.Password = Be;
938
+ W.Number = W.InputNumber = Oe;
939
+ W.Tag = W.InputTag = Nt;
940
+ W.Group = ke;
941
+ const Ve = W;
943
942
  export {
944
943
  Ve as I,
945
- Be as a
944
+ Oe as a
946
945
  };