@unicom-cloud/ui 0.8.55 → 0.8.57

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 (425) 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/B45v5S9k.js +209 -0
  85. package/chunk/B6fn5y_s.js +23 -0
  86. package/chunk/B9PsJar0.js +118 -0
  87. package/chunk/BA02BFUV.js +41 -0
  88. package/chunk/BCk8e9fj.js +29 -0
  89. package/chunk/BHK9zpXn.js +207 -0
  90. package/chunk/BHLTzWzi.js +29 -0
  91. package/chunk/BK1FKNAX.js +41 -0
  92. package/chunk/BM6dpkeM.js +32 -0
  93. package/chunk/{BC0PujUD.js → BMvZCjSU.js} +118 -120
  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/CR4u270n.js +284 -0
  115. package/chunk/CXNW5Y2a.js +23 -0
  116. package/chunk/Cb_oWoGj.js +40 -0
  117. package/chunk/CcX2pBUh.js +46 -0
  118. package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
  119. package/chunk/CkAOsst1.js +73 -0
  120. package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
  121. package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
  122. package/chunk/{RRWbBHK-.js → D5p8q9Pa.js} +221 -221
  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/{CZ8iz63Z.js → DBJ8d0o0.js} +210 -217
  127. package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
  128. package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
  129. package/chunk/{Niaq_og8.js → DMWMrXg1.js} +220 -226
  130. package/chunk/DPvnQJ-H.js +52 -0
  131. package/chunk/DQXq1QT0.js +58 -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/Dbk4DVhB.js +855 -0
  137. package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
  138. package/chunk/DhLbnw3R.js +29 -0
  139. package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
  140. package/chunk/Do1aMgY3.js +12 -0
  141. package/chunk/Dtnux4qL.js +38 -0
  142. package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
  143. package/chunk/HlP8inLK.js +1796 -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/{Dki1RB5p.js → aM2ePYrq.js} +154 -155
  148. package/chunk/bsawGxt8.js +32 -0
  149. package/chunk/cUuQh7L_.js +46 -0
  150. package/chunk/fqgc8r6C.js +29 -0
  151. package/chunk/m_kOQCiU.js +29 -0
  152. package/chunk/sl8s35SK.js +29 -0
  153. package/hooks/index.js +52 -246
  154. package/hooks/useForceUpdate.js +6 -6
  155. package/hooks/useIntersectionObserver.js +12 -10
  156. package/hooks/useKeyboardEvent.js +7 -7
  157. package/hooks/useMedia.js +9 -12
  158. package/hooks/useMergeValue.js +10 -8
  159. package/hooks/useResizeObserver.js +16 -0
  160. package/hooks/useUpdateEffect.js +7 -9
  161. package/hooks/useWindowSize.js +16 -20
  162. package/icons.js +6003 -0
  163. package/index.js +377 -472
  164. package/locale/en-US.js +20 -6
  165. package/locale/ja-JP.js +4 -2
  166. package/locale/ko-KR.js +2 -2
  167. package/locale/pt-BR.js +3 -3
  168. package/locale/pt-PT.js +3 -3
  169. package/locale/tr-TR.js +11 -3
  170. package/locale/zh-CN.js +6 -0
  171. package/locale/zh-HK.js +2 -0
  172. package/locale/zh-TW.js +2 -0
  173. package/package.json +1 -1
  174. package/style.css +1 -1
  175. package/types/anchor/util.d.ts +1 -0
  176. package/types/button/index.d.ts +2 -2
  177. package/types/color-picker/colors.d.ts +1 -1
  178. package/types/date-picker/util.d.ts +1 -1
  179. package/types/hooks/index.d.ts +3 -101
  180. package/types/hooks/useForceUpdate.d.ts +1 -2
  181. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  182. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  183. package/types/hooks/useMergeProps.d.ts +1 -1
  184. package/types/hooks/useResizeObserver.d.ts +5 -0
  185. package/types/hooks/useUpdateEffect.d.ts +2 -3
  186. package/types/hooks/useWindowSize.d.ts +1 -1
  187. package/types/icons.d.ts +4 -0
  188. package/types/index.d.ts +12 -2
  189. package/types/locale/en-US.d.ts +4 -0
  190. package/types/locale/interface.d.ts +2 -0
  191. package/types/locale/ja-JP.d.ts +4 -0
  192. package/types/locale/zh-CN.d.ts +4 -0
  193. package/types/locale/zh-HK.d.ts +4 -0
  194. package/types/locale/zh-TW.d.ts +4 -0
  195. package/types/version/index.d.ts +1 -1
  196. package/utils/CSSTransition.js +1 -1
  197. package/utils/className.js +2 -3
  198. package/utils/contextHolder.js +2 -2
  199. package/utils/copy.js +2 -3
  200. package/utils/is.js +127 -90
  201. package/utils/reactDOM.js +17 -15
  202. package/utils/responsiveObserve.js +16 -16
  203. package/utils/saveAs.js +2 -3
  204. package/chunk/BdYAMaw9.js +0 -6
  205. package/chunk/DdtfPvgk.js +0 -272
  206. package/chunk/I4RV9SKZ.js +0 -135
  207. package/chunk/TXCrI0jN.js +0 -20
  208. package/chunk/i1A7W8Qt.js +0 -277
  209. package/chunk/xPzFRQJn.js +0 -740
  210. package/hooks/useAsync.js +0 -13
  211. package/hooks/useAsyncFn.js +0 -15
  212. package/hooks/useAsyncRetry.js +0 -17
  213. package/hooks/useAudio.js +0 -5
  214. package/hooks/useBeforeUnload.js +0 -18
  215. package/hooks/useBoolean.js +0 -4
  216. package/hooks/useClickAway.js +0 -22
  217. package/hooks/useCopyToClipboard.js +0 -51
  218. package/hooks/useCounter.js +0 -45
  219. package/hooks/useCreation.js +0 -17
  220. package/hooks/useCustomCompareEffect.js +0 -15
  221. package/hooks/useDebounce.js +0 -9
  222. package/hooks/useDefault.js +0 -10
  223. package/hooks/useDrop.js +0 -44
  224. package/hooks/useDropArea.js +0 -45
  225. package/hooks/useEffectOnce.js +0 -7
  226. package/hooks/useEffectState.js +0 -9
  227. package/hooks/useEnsuredForwardedRef.js +0 -17
  228. package/hooks/useError.js +0 -13
  229. package/hooks/useEvent.js +0 -13
  230. package/hooks/useEventListener.js +0 -39
  231. package/hooks/useFavicon.js +0 -16
  232. package/hooks/useFirstMountState.js +0 -8
  233. package/hooks/useFullscreen.js +0 -39
  234. package/hooks/useGeolocation.js +0 -38
  235. package/hooks/useGetSet.js +0 -18
  236. package/hooks/useGetSetState.js +0 -12
  237. package/hooks/useHash.js +0 -26
  238. package/hooks/useHover.js +0 -16
  239. package/hooks/useHoverDirty.js +0 -17
  240. package/hooks/useIdle.js +0 -34
  241. package/hooks/useIntersection.js +0 -19
  242. package/hooks/useIsomorphicLayoutEffect2.js +0 -6
  243. package/hooks/useKey.js +0 -16
  244. package/hooks/useKeyPress.js +0 -13
  245. package/hooks/useKeyPressEvent.js +0 -11
  246. package/hooks/useLatest.js +0 -8
  247. package/hooks/useLifecycles.js +0 -9
  248. package/hooks/useList.js +0 -67
  249. package/hooks/useLocalStorage.js +0 -42
  250. package/hooks/useLocation.js +0 -51
  251. package/hooks/useLockBodyScroll.js +0 -55
  252. package/hooks/useLogger.js +0 -10
  253. package/hooks/useLongPress.js +0 -24
  254. package/hooks/useMap.js +0 -31
  255. package/hooks/useMeasure.js +0 -34
  256. package/hooks/useMeasureDirty.js +0 -24
  257. package/hooks/useMediaDevices.js +0 -26
  258. package/hooks/useMediatedState.js +0 -14
  259. package/hooks/useMethods.js +0 -14
  260. package/hooks/useMotion.js +0 -56
  261. package/hooks/useMount.js +0 -9
  262. package/hooks/useMountedState.js +0 -10
  263. package/hooks/useMouse.js +0 -44
  264. package/hooks/useMouseHovered.js +0 -9
  265. package/hooks/useMouseWheel.js +0 -14
  266. package/hooks/useMultiStateValidator.js +0 -19
  267. package/hooks/useNetworkState.js +0 -31
  268. package/hooks/useNumber.js +0 -4
  269. package/hooks/useObservable.js +0 -12
  270. package/hooks/useOrientation.js +0 -30
  271. package/hooks/usePageLeave.js +0 -19
  272. package/hooks/usePermission.js +0 -19
  273. package/hooks/usePinchZoom.js +0 -40
  274. package/hooks/usePreviousDistinct.js +0 -10
  275. package/hooks/usePromise.js +0 -19
  276. package/hooks/useQueue.js +0 -25
  277. package/hooks/useRaf.js +0 -24
  278. package/hooks/useRafLoop.js +0 -24
  279. package/hooks/useRafState.js +0 -15
  280. package/hooks/useReactive.js +0 -21
  281. package/hooks/useRendersCount.js +0 -7
  282. package/hooks/useScroll.js +0 -27
  283. package/hooks/useScrolling.js +0 -23
  284. package/hooks/useSearchParam.js +0 -18
  285. package/hooks/useSessionStorage.js +0 -29
  286. package/hooks/useSet.js +0 -15
  287. package/hooks/useSetState.js +0 -16
  288. package/hooks/useSize.js +0 -58
  289. package/hooks/useSlider.js +0 -48
  290. package/hooks/useSpeech.js +0 -45
  291. package/hooks/useStartTyping.js +0 -30
  292. package/hooks/useStateList.js +0 -37
  293. package/hooks/useStateValidator.js +0 -17
  294. package/hooks/useStateWithHistory.js +0 -46
  295. package/hooks/useSyncState.js +0 -14
  296. package/hooks/useThrottle.js +0 -21
  297. package/hooks/useThrottleFn.js +0 -21
  298. package/hooks/useTimeout.js +0 -17
  299. package/hooks/useTimeoutFn.js +0 -16
  300. package/hooks/useTitle.js +0 -18
  301. package/hooks/useToggle.js +0 -5
  302. package/hooks/useTween.js +0 -11
  303. package/hooks/useUnmount.js +0 -9
  304. package/hooks/useUnmountPromise.js +0 -20
  305. package/hooks/useUpdate.js +0 -10
  306. package/hooks/useUpdateTimeout.js +0 -9
  307. package/hooks/useUpsert.js +0 -16
  308. package/hooks/useVibrate.js +0 -21
  309. package/hooks/useVideo.js +0 -5
  310. package/hooks/useWindowScroll.js +0 -29
  311. package/types/hooks/component/UseKey.d.ts +0 -2
  312. package/types/hooks/factory/createBreakpoint.d.ts +0 -4
  313. package/types/hooks/factory/createGlobalState.d.ts +0 -7
  314. package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
  315. package/types/hooks/factory/createMemo.d.ts +0 -2
  316. package/types/hooks/factory/createReducer.d.ts +0 -8
  317. package/types/hooks/factory/createReducerContext.d.ts +0 -5
  318. package/types/hooks/factory/createRenderProp.d.ts +0 -1
  319. package/types/hooks/factory/createRouter.d.ts +0 -7
  320. package/types/hooks/factory/createStateContext.d.ts +0 -5
  321. package/types/hooks/misc/hookState.d.ts +0 -8
  322. package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
  323. package/types/hooks/misc/types.d.ts +0 -2
  324. package/types/hooks/misc/util.d.ts +0 -5
  325. package/types/hooks/useAsync.d.ts +0 -20
  326. package/types/hooks/useAsyncFn.d.ts +0 -23
  327. package/types/hooks/useAsyncRetry.d.ts +0 -27
  328. package/types/hooks/useAudio.d.ts +0 -11
  329. package/types/hooks/useBeforeUnload.d.ts +0 -2
  330. package/types/hooks/useBoolean.d.ts +0 -2
  331. package/types/hooks/useClickAway.d.ts +0 -3
  332. package/types/hooks/useCopyToClipboard.d.ts +0 -7
  333. package/types/hooks/useCounter.d.ts +0 -9
  334. package/types/hooks/useCreation.d.ts +0 -2
  335. package/types/hooks/useCustomCompareEffect.d.ts +0 -4
  336. package/types/hooks/useDebounce.d.ts +0 -3
  337. package/types/hooks/useDefault.d.ts +0 -2
  338. package/types/hooks/useDrop.d.ts +0 -17
  339. package/types/hooks/useDropArea.d.ts +0 -18
  340. package/types/hooks/useEffectOnce.d.ts +0 -3
  341. package/types/hooks/useEffectState.d.ts +0 -2
  342. package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
  343. package/types/hooks/useError.d.ts +0 -2
  344. package/types/hooks/useEvent.d.ts +0 -13
  345. package/types/hooks/useEventListener.d.ts +0 -2
  346. package/types/hooks/useFavicon.d.ts +0 -2
  347. package/types/hooks/useFirstMountState.d.ts +0 -1
  348. package/types/hooks/useFullscreen.d.ts +0 -10
  349. package/types/hooks/useGeolocation.d.ts +0 -21
  350. package/types/hooks/useGetSet.d.ts +0 -3
  351. package/types/hooks/useGetSetState.d.ts +0 -2
  352. package/types/hooks/useHash.d.ts +0 -2
  353. package/types/hooks/useHover.d.ts +0 -4
  354. package/types/hooks/useHoverDirty.d.ts +0 -3
  355. package/types/hooks/useIdle.d.ts +0 -2
  356. package/types/hooks/useIntersection.d.ts +0 -3
  357. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
  358. package/types/hooks/useKey.d.ts +0 -12
  359. package/types/hooks/useKeyPress.d.ts +0 -3
  360. package/types/hooks/useKeyPressEvent.d.ts +0 -3
  361. package/types/hooks/useLatest.d.ts +0 -4
  362. package/types/hooks/useLifecycles.d.ts +0 -2
  363. package/types/hooks/useList.d.ts +0 -18
  364. package/types/hooks/useLocalStorage.d.ts +0 -10
  365. package/types/hooks/useLocation.d.ts +0 -16
  366. package/types/hooks/useLockBodyScroll.d.ts +0 -8
  367. package/types/hooks/useLogger.d.ts +0 -2
  368. package/types/hooks/useLongPress.d.ts +0 -12
  369. package/types/hooks/useMap.d.ts +0 -11
  370. package/types/hooks/useMeasure.d.ts +0 -9
  371. package/types/hooks/useMeasureDirty.d.ts +0 -11
  372. package/types/hooks/useMediaDevices.d.ts +0 -2
  373. package/types/hooks/useMediatedState.d.ts +0 -9
  374. package/types/hooks/useMethods.d.ts +0 -8
  375. package/types/hooks/useMotion.d.ts +0 -20
  376. package/types/hooks/useMount.d.ts +0 -2
  377. package/types/hooks/useMountedState.d.ts +0 -1
  378. package/types/hooks/useMouse.d.ts +0 -13
  379. package/types/hooks/useMouseHovered.d.ts +0 -8
  380. package/types/hooks/useMouseWheel.d.ts +0 -2
  381. package/types/hooks/useMultiStateValidator.d.ts +0 -9
  382. package/types/hooks/useNetworkState.d.ts +0 -22
  383. package/types/hooks/useNumber.d.ts +0 -2
  384. package/types/hooks/useObservable.d.ts +0 -8
  385. package/types/hooks/useOrientation.d.ts +0 -6
  386. package/types/hooks/usePageLeave.d.ts +0 -2
  387. package/types/hooks/usePermission.d.ts +0 -16
  388. package/types/hooks/usePinchZoom.d.ts +0 -18
  389. package/types/hooks/usePreviousDistinct.d.ts +0 -2
  390. package/types/hooks/usePromise.d.ts +0 -3
  391. package/types/hooks/useQueue.d.ts +0 -9
  392. package/types/hooks/useRaf.d.ts +0 -2
  393. package/types/hooks/useRafLoop.d.ts +0 -2
  394. package/types/hooks/useRafState.d.ts +0 -3
  395. package/types/hooks/useReactive.d.ts +0 -2
  396. package/types/hooks/useRendersCount.d.ts +0 -1
  397. package/types/hooks/useScroll.d.ts +0 -7
  398. package/types/hooks/useScrolling.d.ts +0 -3
  399. package/types/hooks/useSearchParam.d.ts +0 -3
  400. package/types/hooks/useSessionStorage.d.ts +0 -2
  401. package/types/hooks/useSet.d.ts +0 -11
  402. package/types/hooks/useSetState.d.ts +0 -2
  403. package/types/hooks/useSize.d.ts +0 -8
  404. package/types/hooks/useSlider.d.ts +0 -15
  405. package/types/hooks/useSpeech.d.ts +0 -16
  406. package/types/hooks/useStartTyping.d.ts +0 -2
  407. package/types/hooks/useStateList.d.ts +0 -9
  408. package/types/hooks/useStateValidator.d.ts +0 -8
  409. package/types/hooks/useStateWithHistory.d.ts +0 -18
  410. package/types/hooks/useSyncState.d.ts +0 -3
  411. package/types/hooks/useThrottle.d.ts +0 -2
  412. package/types/hooks/useThrottleFn.d.ts +0 -2
  413. package/types/hooks/useTimeout.d.ts +0 -2
  414. package/types/hooks/useTimeoutFn.d.ts +0 -2
  415. package/types/hooks/useTitle.d.ts +0 -6
  416. package/types/hooks/useToggle.d.ts +0 -2
  417. package/types/hooks/useTween.d.ts +0 -3
  418. package/types/hooks/useUnmount.d.ts +0 -2
  419. package/types/hooks/useUnmountPromise.d.ts +0 -3
  420. package/types/hooks/useUpdate.d.ts +0 -2
  421. package/types/hooks/useUpdateTimeout.d.ts +0 -2
  422. package/types/hooks/useUpsert.d.ts +0 -6
  423. package/types/hooks/useVibrate.d.ts +0 -4
  424. package/types/hooks/useVideo.d.ts +0 -11
  425. package/types/hooks/useWindowScroll.d.ts +0 -6
@@ -1,69 +1,63 @@
1
- import { jsxs as L, Fragment as B, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as L, Fragment as M, jsx as r } from "react/jsx-runtime";
2
2
  import F from "lodash/isFunction";
3
- import fe from "lodash/isNumber";
4
- import ee, { useContext as z, forwardRef as W, isValidElement as xe, useState as G, useMemo as $e, useEffect as Ie, useRef as te, useImperativeHandle as ge } from "react";
5
- import { a as J, I as ye } from "./xPzFRQJn.js";
6
- import we from "../hooks/useMergeProps.js";
7
- import K from "@unicom-cloud/utils/class-name";
8
- import Pe from "../utils/omit.js";
9
- import de from "../utils/warning.js";
10
- import { b as Ne, P as ie } from "./DQ3uFRJD.js";
11
- import { a as Re } from "./CTSIr-Pr.js";
12
- import he from "@unicom-cloud/icons/IconUiDelete";
13
- import Le from "@unicom-cloud/icons/IconUiEye";
14
- import Ce from "@unicom-cloud/icons/IconUiImageClose";
15
- import oe from "@unicom-cloud/icons/IconUiUpload";
3
+ import ue from "lodash/isNumber";
4
+ import ee, { useContext as z, forwardRef as W, isValidElement as ve, useState as B, useMemo as Ue, useEffect as Ie, useRef as te, useImperativeHandle as me } from "react";
5
+ import { b as J, I as xe } from "./DUxWiN2U.js";
6
+ import $e from "../hooks/useMergeProps.js";
7
+ import { y as K } from "./Do1aMgY3.js";
8
+ import ye from "../utils/omit.js";
9
+ import se from "../utils/warning.js";
10
+ import { b as we, P as ie } from "./BP7xX86Q.js";
11
+ import { a as Pe } from "./CwXmtKib.js";
12
+ import { I as fe } from "./sl8s35SK.js";
13
+ import { I as Ne } from "./C7Okdv4u.js";
14
+ import { I as Re } from "./CPl52AZh.js";
15
+ import { I as re, a as Le, b as Ce, c as ge, d as Fe, e as Ee, f as De } from "./BHK9zpXn.js";
16
16
  import X from "../hooks/useKeyboardEvent.js";
17
17
  import "../utils/is.js";
18
- import Fe from "@unicom-cloud/icons/IconUiCheck";
19
- import Ee from "@unicom-cloud/icons/IconUiPause";
20
- import Oe from "@unicom-cloud/icons/IconUiPlayArrowFill";
21
- import De from "../Progress.js";
18
+ import { I as Oe } from "./CXNW5Y2a.js";
19
+ import Te from "../Progress.js";
22
20
  import ne from "../Tooltip.js";
23
- import { isPlainObject as re, isFile as pe } from "@unicom-cloud/utils/is";
24
- import Te from "@unicom-cloud/icons/IconUiExclamationCircleFill";
25
- import ke from "@unicom-cloud/icons/IconUiFile";
26
- import je from "@unicom-cloud/icons/IconUiFileAudio";
27
- import be from "@unicom-cloud/icons/IconUiFileImage";
28
- import Se from "@unicom-cloud/icons/IconUiFilePdf";
29
- import qe from "@unicom-cloud/icons/IconUiFileVideo";
30
- import ae from "lodash/isPlainObject";
31
- import ue from "@unicom-cloud/icons/IconUiPlus";
32
- import Ae from "../Button.js";
33
- import Ve from "lodash/isArray";
21
+ import { H as ke } from "./BeM2hfks.js";
22
+ import V from "lodash/isPlainObject";
23
+ import { b as je } from "./B45v5S9k.js";
24
+ import { I as Se } from "./DYZzQ2uT.js";
25
+ import { I as ce } from "./B6fn5y_s.js";
26
+ import qe from "../Button.js";
27
+ import Ae from "lodash/isArray";
34
28
  import { NOOP as Y } from "../utils/constant.js";
35
29
  const y = {
36
30
  init: "init",
37
31
  uploading: "uploading",
38
32
  success: "done",
39
33
  fail: "error"
40
- }, ve = (e) => {
34
+ }, he = (e) => {
41
35
  var U, n, g, P, o, b;
42
- const d = X(), { file: u, prefixCls: s, progressProps: t, progressRender: a } = e, { locale: i } = z(J), { status: l, percent: m = 0 } = u, f = `${s}-list`, h = t && t.width ? { width: t.width } : {}, $ = /* @__PURE__ */ L(B, { children: [
36
+ const d = X(), { file: u, prefixCls: s, progressProps: t, progressRender: a } = e, { locale: i } = z(J), { status: l, percent: m = 0 } = u, f = `${s}-list`, h = t && t.width ? { width: t.width } : {}, x = /* @__PURE__ */ L(M, { children: [
43
37
  l === y.fail && e.reuploadIcon !== null && /* @__PURE__ */ r(
44
38
  "span",
45
39
  {
46
40
  className: `${s}-list-reupload-icon`,
47
41
  onClick: () => {
48
- var x;
49
- (x = e.onReupload) == null || x.call(e, u);
42
+ var I;
43
+ (I = e.onReupload) == null || I.call(e, u);
50
44
  },
51
45
  tabIndex: 0,
52
46
  role: "button",
53
47
  "aria-label": (U = i == null ? void 0 : i.Upload) == null ? void 0 : U.reupload,
54
48
  ...d({
55
49
  onPressEnter: () => {
56
- var x;
57
- (x = e.onReupload) == null || x.call(e, u);
50
+ var I;
51
+ (I = e.onReupload) == null || I.call(e, u);
58
52
  }
59
53
  }),
60
- children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(oe, {}) : (n = i == null ? void 0 : i.Upload) == null ? void 0 : n.reupload)
54
+ children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(re, {}) : (n = i == null ? void 0 : i.Upload) == null ? void 0 : n.reupload)
61
55
  }
62
56
  ),
63
- l === y.success && e.successIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ r(Fe, {}) }),
57
+ l === y.success && e.successIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ r(Oe, {}) }),
64
58
  l !== y.success && /* @__PURE__ */ L("div", { className: `${f}-status`, style: h, children: [
65
59
  /* @__PURE__ */ r(
66
- De,
60
+ Te,
67
61
  {
68
62
  showText: !1,
69
63
  className: `${f}-progress`,
@@ -82,16 +76,16 @@ const y = {
82
76
  "aria-label": (g = i == null ? void 0 : i.Upload) == null ? void 0 : g.start,
83
77
  className: `${s}-list-start-icon`,
84
78
  onClick: () => {
85
- var x;
86
- (x = e.onUpload) == null || x.call(e, u);
79
+ var I;
80
+ (I = e.onUpload) == null || I.call(e, u);
87
81
  },
88
82
  ...d({
89
83
  onPressEnter: () => {
90
- var x;
91
- (x = e.onUpload) == null || x.call(e, u);
84
+ var I;
85
+ (I = e.onUpload) == null || I.call(e, u);
92
86
  }
93
87
  }),
94
- children: e.startIcon || /* @__PURE__ */ r(ne, { content: (P = i == null ? void 0 : i.Upload) == null ? void 0 : P.start, children: /* @__PURE__ */ r(Oe, {}) })
88
+ children: e.startIcon || /* @__PURE__ */ r(ne, { content: (P = i == null ? void 0 : i.Upload) == null ? void 0 : P.start, children: /* @__PURE__ */ r(Le, {}) })
95
89
  }
96
90
  ),
97
91
  l === y.uploading && e.cancelIcon !== null && /* @__PURE__ */ r(
@@ -99,27 +93,27 @@ const y = {
99
93
  {
100
94
  className: `${e.prefixCls}-list-cancel-icon`,
101
95
  onClick: () => {
102
- var x;
103
- (x = e.onAbort) == null || x.call(e, u);
96
+ var I;
97
+ (I = e.onAbort) == null || I.call(e, u);
104
98
  },
105
99
  tabIndex: 0,
106
100
  "aria-label": (o = i == null ? void 0 : i.Upload) == null ? void 0 : o.cancel,
107
101
  ...d({
108
102
  onPressEnter: () => {
109
- var x;
110
- (x = e.onAbort) == null || x.call(e, u);
103
+ var I;
104
+ (I = e.onAbort) == null || I.call(e, u);
111
105
  }
112
106
  }),
113
- children: e.cancelIcon || /* @__PURE__ */ r(ne, { content: (b = i == null ? void 0 : i.Upload) == null ? void 0 : b.cancel, children: /* @__PURE__ */ r(Ee, {}) })
107
+ children: e.cancelIcon || /* @__PURE__ */ r(ne, { content: (b = i == null ? void 0 : i.Upload) == null ? void 0 : b.cancel, children: /* @__PURE__ */ r(Ce, {}) })
114
108
  }
115
109
  )
116
110
  ] })
117
111
  ] });
118
- return F(a) ? a(u, $) : $;
112
+ return F(a) ? a(u, x) : x;
119
113
  }, He = (e, d) => {
120
- const { disabled: u, prefixCls: s, file: t, showUploadList: a, locale: i } = e, l = X(), m = `${s}-list-item-picture`, { status: f, originFile: h } = t, $ = t.url !== void 0 ? t.url : h && F(URL.createObjectURL) && URL.createObjectURL(h), U = re(a) ? a : {};
114
+ const { disabled: u, prefixCls: s, file: t, showUploadList: a, locale: i } = e, l = X(), m = `${s}-list-item-picture`, { status: f, originFile: h } = t, x = t.url !== void 0 ? t.url : h && F(URL.createObjectURL) && URL.createObjectURL(h), U = V(a) ? a : {};
121
115
  return /* @__PURE__ */ r("div", { className: m, ref: d, children: f === y.uploading ? /* @__PURE__ */ r(
122
- ve,
116
+ he,
123
117
  {
124
118
  onReupload: e.onReupload,
125
119
  onUpload: e.onUpload,
@@ -130,10 +124,10 @@ const y = {
130
124
  progressProps: e.progressProps,
131
125
  ...U
132
126
  }
133
- ) : /* @__PURE__ */ L(B, { children: [
134
- F(U.imageRender) ? U.imageRender(t) : /* @__PURE__ */ r("img", { src: $, alt: t.name }),
127
+ ) : /* @__PURE__ */ L(M, { children: [
128
+ F(U.imageRender) ? U.imageRender(t) : /* @__PURE__ */ r("img", { src: x, alt: t.name }),
135
129
  /* @__PURE__ */ L("div", { className: `${m}-mask`, role: "radiogroup", children: [
136
- t.status === y.fail && /* @__PURE__ */ r("div", { className: `${m}-error-tip`, children: U.errorIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-error-icon`, children: U.errorIcon || /* @__PURE__ */ r(Ce, {}) }) }),
130
+ t.status === y.fail && /* @__PURE__ */ r("div", { className: `${m}-error-tip`, children: U.errorIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-error-icon`, children: U.errorIcon || /* @__PURE__ */ r(Re, {}) }) }),
137
131
  /* @__PURE__ */ L("div", { className: `${m}-operation`, children: [
138
132
  t.status !== y.fail && U.previewIcon !== null && /* @__PURE__ */ r(
139
133
  "span",
@@ -152,7 +146,7 @@ const y = {
152
146
  var n;
153
147
  (n = e.onPreview) == null || n.call(e, t);
154
148
  },
155
- children: U.previewIcon || /* @__PURE__ */ r(Le, {})
149
+ children: U.previewIcon || /* @__PURE__ */ r(Ne, {})
156
150
  }
157
151
  ),
158
152
  t.status === y.fail && U.reuploadIcon !== null && /* @__PURE__ */ r(
@@ -172,7 +166,7 @@ const y = {
172
166
  (n = e.onReupload) == null || n.call(e, t);
173
167
  }
174
168
  }),
175
- children: U.reuploadIcon || /* @__PURE__ */ r(oe, {})
169
+ children: U.reuploadIcon || /* @__PURE__ */ r(re, {})
176
170
  }
177
171
  ),
178
172
  !u && U.removeIcon !== null && /* @__PURE__ */ r(
@@ -192,13 +186,13 @@ const y = {
192
186
  (n = e.onRemove) == null || n.call(e, t);
193
187
  }
194
188
  }),
195
- children: U.removeIcon || /* @__PURE__ */ r(he, {})
189
+ children: U.removeIcon || /* @__PURE__ */ r(fe, {})
196
190
  }
197
191
  )
198
192
  ] })
199
193
  ] })
200
194
  ] }) });
201
- }, Ge = W(He), Be = (e) => {
195
+ }, Ve = W(He), pe = (e) => {
202
196
  let d = "";
203
197
  if (e.originFile && e.originFile.type)
204
198
  d = e.originFile.type;
@@ -206,9 +200,9 @@ const y = {
206
200
  const s = (e.name || "").split(".").pop() || "";
207
201
  d = s, ["png", "jpg", "jpeg", "bmp", "gif"].indexOf(s) > -1 ? d = "image" : ["mp4", "m2v", "mkv"].indexOf(s) > -1 ? d = "video" : ["mp3", "wav", "wmv"].indexOf(s) > -1 && (d = "audio");
208
202
  }
209
- return d.indexOf("image") > -1 ? be : d.indexOf("pdf") > -1 ? Se : d.indexOf("audio") > -1 ? je : d.indexOf("video") > -1 ? qe : ke;
210
- }, Me = (e, d) => {
211
- const { prefixCls: u, disabled: s, file: t, locale: a } = e, i = `${u}-list-item-text`, l = X(), m = Be(t), f = re(e.showUploadList) ? e.showUploadList : {}, h = re(f) ? f : {}, $ = t.name || t.originFile && t.originFile.name, U = t.url !== void 0 ? t.url : t.originFile && F(URL.createObjectURL) && URL.createObjectURL(t.originFile);
203
+ return d.indexOf("image") > -1 ? ge : d.indexOf("pdf") > -1 ? Fe : d.indexOf("audio") > -1 ? Ee : d.indexOf("video") > -1 ? De : Se;
204
+ }, Ge = (e, d) => {
205
+ const { prefixCls: u, disabled: s, file: t, locale: a } = e, i = `${u}-list-item-text`, l = X(), m = pe(t), f = V(e.showUploadList) ? e.showUploadList : {}, h = V(f) ? f : {}, x = t.name || t.originFile && t.originFile.name, U = t.url !== void 0 ? t.url : t.originFile && F(URL.createObjectURL) && URL.createObjectURL(t.originFile);
212
206
  let n = {};
213
207
  return t.status !== y.fail && (n = {
214
208
  popupVisible: !1
@@ -230,21 +224,21 @@ const y = {
230
224
  target: "_blank",
231
225
  rel: "noreferrer",
232
226
  className: `${i}-name-link`,
233
- children: $
227
+ children: x
234
228
  }
235
- ) : /* @__PURE__ */ r("span", { className: `${i}-name-text`, children: $ }),
229
+ ) : /* @__PURE__ */ r("span", { className: `${i}-name-text`, children: x }),
236
230
  t.status === y.fail && h.errorIcon !== null && /* @__PURE__ */ r(
237
231
  ne,
238
232
  {
239
- content: (typeof t.response == "object" ? xe(t.response) && t.response : t.response) || a.Upload.error,
233
+ content: (typeof t.response == "object" ? ve(t.response) && t.response : t.response) || a.Upload.error,
240
234
  ...n,
241
235
  disabled: t.status !== y.fail,
242
- children: /* @__PURE__ */ r("span", { className: `${e.prefixCls}-list-error-icon`, children: h.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(be, {}) : /* @__PURE__ */ r(Te, {})) })
236
+ children: /* @__PURE__ */ r("span", { className: `${e.prefixCls}-list-error-icon`, children: h.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(ge, {}) : /* @__PURE__ */ r(je, {})) })
243
237
  }
244
238
  )
245
239
  ] }),
246
240
  /* @__PURE__ */ r(
247
- ve,
241
+ he,
248
242
  {
249
243
  file: t,
250
244
  prefixCls: u,
@@ -258,7 +252,7 @@ const y = {
258
252
  ] })
259
253
  ] }),
260
254
  /* @__PURE__ */ r("div", { className: `${u}-list-item-operation`, children: !s && h.removeIcon !== null && /* @__PURE__ */ r(
261
- ye,
255
+ xe,
262
256
  {
263
257
  className: `${u}-list-remove-icon-hover`,
264
258
  onClick: () => {
@@ -273,13 +267,13 @@ const y = {
273
267
  (g = e.onRemove) == null || g.call(e, t);
274
268
  }
275
269
  }),
276
- children: /* @__PURE__ */ r("span", { className: `${u}-list-remove-icon`, children: h.removeIcon || /* @__PURE__ */ r(he, {}) })
270
+ children: /* @__PURE__ */ r("span", { className: `${u}-list-remove-icon`, children: h.removeIcon || /* @__PURE__ */ r(fe, {}) })
277
271
  }
278
272
  ) })
279
273
  ]
280
274
  }
281
275
  );
282
- }, _e = W(Me), Ue = (e) => {
276
+ }, Be = W(Ge), be = (e) => {
283
277
  const { locale: d, rtl: u } = z(J), {
284
278
  listType: s,
285
279
  fileList: t,
@@ -287,7 +281,7 @@ const y = {
287
281
  renderUploadItem: i,
288
282
  prefixCls: l,
289
283
  ...m
290
- } = e, [f, h] = G(-1), $ = $e(() => t.map((n) => {
284
+ } = e, [f, h] = B(-1), x = Ue(() => t.map((n) => {
291
285
  let g = n.url;
292
286
  return n.url === void 0 && [y.init, y.success].indexOf(n.status) > -1 && (g = n.originFile && F(URL.createObjectURL) && URL.createObjectURL(n.originFile)), g;
293
287
  }).filter(Boolean), [t]);
@@ -296,9 +290,9 @@ const y = {
296
290
  const U = (n) => {
297
291
  e.imagePreview && h(n);
298
292
  };
299
- return /* @__PURE__ */ L(B, { children: [
293
+ return /* @__PURE__ */ L(M, { children: [
300
294
  /* @__PURE__ */ r(
301
- Ne,
295
+ we,
302
296
  {
303
297
  className: K(
304
298
  `${l}-list`,
@@ -313,7 +307,7 @@ const y = {
313
307
  {
314
308
  className: `${l}-list-item ${l}-list-item-${n.status}`,
315
309
  children: /* @__PURE__ */ r(
316
- Ge,
310
+ Ve,
317
311
  {
318
312
  ...e,
319
313
  onPreview: (o) => {
@@ -325,7 +319,7 @@ const y = {
325
319
  }
326
320
  )
327
321
  }
328
- ) : /* @__PURE__ */ r(_e, { ...e, file: n, locale: d });
322
+ ) : /* @__PURE__ */ r(Be, { ...e, file: n, locale: d });
329
323
  return F(i) && (P = i(P, n, t)), s === "picture-card" ? /* @__PURE__ */ r(
330
324
  ie,
331
325
  {
@@ -368,9 +362,9 @@ const y = {
368
362
  }
369
363
  ),
370
364
  s === "picture-card" && e.imagePreview && /* @__PURE__ */ r(
371
- Re,
365
+ Pe,
372
366
  {
373
- srcList: $,
367
+ srcList: x,
374
368
  visible: f !== -1,
375
369
  current: f,
376
370
  onChange: U,
@@ -381,11 +375,11 @@ const y = {
381
375
  )
382
376
  ] });
383
377
  };
384
- Ue.displayName = "FileList";
385
- const le = (e, d) => {
386
- const u = ae(d) ? d == null ? void 0 : d.type : d;
387
- if (!(ae(d) && d.strict === !1) && u && e) {
388
- const t = Ve(u) ? u : u.split(",").map((i) => i.trim()).filter((i) => i), a = (e.name.indexOf(".") > -1 ? `.${e.name.split(".").pop()}` : "").toLowerCase();
378
+ be.displayName = "FileList";
379
+ const ae = (e, d) => {
380
+ const u = V(d) ? d == null ? void 0 : d.type : d;
381
+ if (!(V(d) && d.strict === !1) && u && e) {
382
+ const t = Ae(u) ? u : u.split(",").map((i) => i.trim()).filter((i) => i), a = (e.name.indexOf(".") > -1 ? `.${e.name.split(".").pop()}` : "").toLowerCase();
389
383
  return t.some((i) => {
390
384
  const l = i && i.toLowerCase(), m = (e.type || "").toLowerCase(), f = m.split("/")[0];
391
385
  if (l === m || `${f}${a.replace(".", "/")}` === l || /^\*(\/\*)?$/.test(l))
@@ -400,12 +394,12 @@ const le = (e, d) => {
400
394
  });
401
395
  }
402
396
  return !!e;
403
- }, Ke = (e, d) => {
397
+ }, Me = (e, d) => {
404
398
  if (!e)
405
399
  return;
406
400
  let u = [].slice.call(e);
407
- return d && (u = u.filter((s) => le(s, d))), u;
408
- }, ze = (e, d, u) => {
401
+ return d && (u = u.filter((s) => ae(s, d))), u;
402
+ }, _e = (e, d, u) => {
409
403
  const s = [];
410
404
  let t = 0;
411
405
  const a = () => {
@@ -413,7 +407,7 @@ const le = (e, d) => {
413
407
  }, i = (m) => {
414
408
  if (t += 1, m != null && m.isFile) {
415
409
  m.file((f) => {
416
- t -= 1, le(f, d) && (Object.defineProperty(f, "webkitRelativePath", {
410
+ t -= 1, ae(f, d) && (Object.defineProperty(f, "webkitRelativePath", {
417
411
  value: m.fullPath.replace(/^\//, "")
418
412
  }), s.push(f)), a();
419
413
  });
@@ -422,12 +416,12 @@ const le = (e, d) => {
422
416
  if (m != null && m.isDirectory) {
423
417
  const f = m.createReader();
424
418
  let h = !1;
425
- const $ = () => {
419
+ const x = () => {
426
420
  f.readEntries((U) => {
427
- h || (t -= 1, h = !0), U.length === 0 ? a() : ($(), U.forEach(i));
421
+ h || (t -= 1, h = !0), U.length === 0 ? a() : (x(), U.forEach(i));
428
422
  });
429
423
  };
430
- $();
424
+ x();
431
425
  return;
432
426
  }
433
427
  t -= 1, a();
@@ -435,12 +429,12 @@ const le = (e, d) => {
435
429
  [].slice.call(e).forEach((m) => {
436
430
  m.webkitGetAsEntry && i(m.webkitGetAsEntry());
437
431
  });
438
- }, We = (e, d) => {
439
- const u = X(), { locale: s } = z(J), [t, a] = G(!1), [i, l] = G(0), {
432
+ }, Ke = (e, d) => {
433
+ const u = X(), { locale: s } = z(J), [t, a] = B(!1), [i, l] = B(0), {
440
434
  tip: m,
441
435
  children: f,
442
436
  disabled: h,
443
- drag: $,
437
+ drag: x,
444
438
  listType: U,
445
439
  prefixCls: n,
446
440
  accept: g,
@@ -466,32 +460,32 @@ const le = (e, d) => {
466
460
  l(i + 1);
467
461
  },
468
462
  onDragLeave: (b) => {
469
- var x;
470
- b.preventDefault(), i === 0 ? (a(!1), !h && ((x = e.onDragLeave) == null || x.call(e, b))) : l(i - 1);
463
+ var I;
464
+ b.preventDefault(), i === 0 ? (a(!1), !h && ((I = e.onDragLeave) == null || I.call(e, b))) : l(i - 1);
471
465
  },
472
466
  onDrop: (b) => {
473
- var x, S;
467
+ var I, q;
474
468
  if (b.preventDefault(), !h && e.drag !== !1) {
475
469
  if (a(!1), e.directory)
476
- ze(b.dataTransfer.items, g, (T) => {
477
- var D;
478
- (D = e.onDragFiles) == null || D.call(e, T);
470
+ _e(b.dataTransfer.items, g, (k) => {
471
+ var O;
472
+ (O = e.onDragFiles) == null || O.call(e, k);
479
473
  });
480
474
  else {
481
- const T = [].slice.call(b.dataTransfer.items || []).reduce((q, j, V) => {
482
- if (j.webkitGetAsEntry) {
483
- const c = j.webkitGetAsEntry();
484
- return c != null && c.isDirectory ? [...q, V] : q;
475
+ const k = [].slice.call(b.dataTransfer.items || []).reduce((A, S, p) => {
476
+ if (S.webkitGetAsEntry) {
477
+ const c = S.webkitGetAsEntry();
478
+ return c != null && c.isDirectory ? [...A, p] : A;
485
479
  }
486
- }, []), D = [].slice.call(b.dataTransfer.files || []).filter((q, j) => !T.includes(j)), k = Ke(D, g);
487
- k.length > 0 && ((x = e.onDragFiles) == null || x.call(e, P ? k : k.slice(0, 1)));
480
+ }, []), O = [].slice.call(b.dataTransfer.files || []).filter((A, S) => !k.includes(S)), j = Me(O, g);
481
+ j.length > 0 && ((I = e.onDragFiles) == null || I.call(e, P ? j : j.slice(0, 1)));
488
482
  }
489
- (S = e.onDrop) == null || S.call(e, b);
483
+ (q = e.onDrop) == null || q.call(e, b);
490
484
  }
491
485
  },
492
486
  onDragOver: (b) => {
493
- var x;
494
- b.preventDefault(), !h && !t && (a(!0), (x = e.onDragOver) == null || x.call(e, b));
487
+ var I;
488
+ b.preventDefault(), !h && !t && (a(!0), (I = e.onDragOver) == null || I.call(e, b));
495
489
  },
496
490
  children: ee.isValidElement(f) ? /* @__PURE__ */ r(
497
491
  "div",
@@ -505,9 +499,9 @@ const le = (e, d) => {
505
499
  className: `${n}-trigger-picture`,
506
500
  tabIndex: 0,
507
501
  "aria-label": s.Upload.upload,
508
- children: /* @__PURE__ */ r("div", { className: `${n}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ r(ue, {}) })
502
+ children: /* @__PURE__ */ r("div", { className: `${n}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ r(ce, {}) })
509
503
  }
510
- ) }) : $ ? /* @__PURE__ */ L(
504
+ ) }) : x ? /* @__PURE__ */ L(
511
505
  "div",
512
506
  {
513
507
  className: K(`${n}-trigger-drag`, {
@@ -516,30 +510,30 @@ const le = (e, d) => {
516
510
  tabIndex: 0,
517
511
  "aria-label": s.Upload.drag,
518
512
  children: [
519
- e.triggerPictureIcon ?? /* @__PURE__ */ r(ue, {}),
513
+ e.triggerPictureIcon ?? /* @__PURE__ */ r(ce, {}),
520
514
  /* @__PURE__ */ r("p", { className: `${n}-trigger-drag-text`, children: t ? s.Upload.dragHover : s.Upload.drag }),
521
515
  m && /* @__PURE__ */ r("div", { className: `${n}-trigger-tip`, children: m })
522
516
  ]
523
517
  }
524
518
  ) : /* @__PURE__ */ L(
525
- Ae,
519
+ qe,
526
520
  {
527
521
  ...o,
528
522
  "aria-label": s.Upload.upload,
529
523
  type: "primary",
530
524
  className: `${n}-trigger-with-icon`,
531
525
  children: [
532
- /* @__PURE__ */ r(oe, {}),
526
+ /* @__PURE__ */ r(re, {}),
533
527
  s.Upload.upload
534
528
  ]
535
529
  }
536
530
  )
537
531
  }
538
532
  );
539
- }, Je = W(
540
- We
533
+ }, ze = W(
534
+ Ke
541
535
  );
542
- function me(e) {
536
+ function de(e) {
543
537
  const d = e.responseText || e.response;
544
538
  if (!d)
545
539
  return d;
@@ -549,7 +543,7 @@ function me(e) {
549
543
  return d;
550
544
  }
551
545
  }
552
- const Xe = function(e) {
546
+ const We = function(e) {
553
547
  const {
554
548
  onProgress: d = Y,
555
549
  onError: u = Y,
@@ -562,10 +556,10 @@ const Xe = function(e) {
562
556
  data: f = {},
563
557
  withCredentials: h = !1
564
558
  } = e;
565
- function $(o) {
559
+ function x(o) {
566
560
  return typeof o == "function" ? o(m) : o;
567
561
  }
568
- const U = $(l), n = $(f), g = new XMLHttpRequest();
562
+ const U = x(l), n = x(f), g = new XMLHttpRequest();
569
563
  d && g.upload && (g.upload.onprogress = function(o) {
570
564
  let b;
571
565
  o.total > 0 && (b = o.loaded / o.total * 100), d(parseInt(b, 10), o);
@@ -573,8 +567,8 @@ const Xe = function(e) {
573
567
  u(b);
574
568
  }, g.onload = function() {
575
569
  if (g.status < 200 || g.status >= 300)
576
- return u(me(g));
577
- s(me(g));
570
+ return u(de(g));
571
+ s(de(g));
578
572
  };
579
573
  const P = new FormData();
580
574
  n && Object.keys(n).map((o) => P.append(o, n[o])), P.append(U || "file", m), g.open(a, t, !0), h && "withCredentials" in g && (g.withCredentials = !0);
@@ -586,33 +580,33 @@ const Xe = function(e) {
586
580
  }
587
581
  };
588
582
  };
589
- function Qe(e, d) {
590
- const u = te(null), [s, t] = G({ uploadRequests: {} });
583
+ function Je(e, d) {
584
+ const u = te(null), [s, t] = B({ uploadRequests: {} });
591
585
  function a(c) {
592
- $(c);
586
+ x(c);
593
587
  }
594
588
  function i(c) {
595
589
  var R;
596
- const I = s.uploadRequests[c.uid];
597
- I && ((R = I.abort) == null || R.call(I), f({
590
+ const $ = s.uploadRequests[c.uid];
591
+ $ && ((R = $.abort) == null || R.call($), f({
598
592
  ...c,
599
593
  status: y.fail
600
594
  }), m(c.uid));
601
595
  }
602
596
  function l(c) {
603
- $({
597
+ x({
604
598
  ...c,
605
599
  percent: 0,
606
600
  status: y.uploading
607
601
  });
608
602
  }
609
603
  function m(c) {
610
- const I = { ...s.uploadRequests };
611
- delete I[c], t({
612
- uploadRequests: I
604
+ const $ = { ...s.uploadRequests };
605
+ delete $[c], t({
606
+ uploadRequests: $
613
607
  });
614
608
  }
615
- ge(d, () => ({
609
+ me(d, () => ({
616
610
  // 提供 ref 调用
617
611
  upload: a,
618
612
  abort: i,
@@ -620,39 +614,39 @@ function Qe(e, d) {
620
614
  // 删除上传(手动上传时,文件会出现在上传列表,但属于init状态)
621
615
  delete: m
622
616
  }));
623
- function f(c, I = e.fileList) {
617
+ function f(c, $ = e.fileList) {
624
618
  const { onFileStatusChange: R } = e, C = "uid" in c ? "uid" : "name";
625
619
  R == null || R(
626
- I.map((v) => v[C] === c[C] ? c : v),
620
+ $.map((v) => v[C] === c[C] ? c : v),
627
621
  c
628
622
  );
629
623
  }
630
624
  function h(c) {
631
- const I = "uid" in c ? "uid" : "name";
632
- return e.fileList.find((C) => C[I] === c[I]);
625
+ const $ = "uid" in c ? "uid" : "name";
626
+ return e.fileList.find((C) => C[$] === c[$]);
633
627
  }
634
- async function $(c) {
628
+ async function x(c) {
635
629
  const {
636
- action: I,
630
+ action: $,
637
631
  headers: R,
638
632
  name: C,
639
633
  data: v,
640
634
  withCredentials: N,
641
635
  customRequest: w,
642
636
  method: E
643
- } = e, se = {
644
- onProgress: (H, O) => {
645
- var _, ce;
646
- const M = h(c);
647
- M && (M.status = y.uploading, M.percent = H, (ce = (_ = this == null ? void 0 : this.props) == null ? void 0 : _.onProgress) == null || ce.call(_, M, O));
637
+ } = e, oe = {
638
+ onProgress: (G, D) => {
639
+ var le;
640
+ const _ = h(c);
641
+ _ && (_.status = y.uploading, _.percent = G, (le = e == null ? void 0 : e.onProgress) == null || le.call(e, _, D));
648
642
  },
649
- onSuccess: (H) => {
650
- const O = h(c);
651
- O && (O.status = y.success, O.response = H, f(O)), m(c.uid);
643
+ onSuccess: (G) => {
644
+ const D = h(c);
645
+ D && (D.status = y.success, D.response = G, f(D)), m(c.uid);
652
646
  },
653
- onError: (H) => {
654
- const O = h(c);
655
- O && (O.status = y.fail, O.response = H, f(O)), m(c.uid);
647
+ onError: (G) => {
648
+ const D = h(c);
649
+ D && (D.status = y.fail, D.response = G, f(D)), m(c.uid);
656
650
  },
657
651
  headers: R,
658
652
  name: C,
@@ -662,7 +656,7 @@ function Qe(e, d) {
662
656
  };
663
657
  f(c);
664
658
  let Q;
665
- I ? Q = Xe({ ...se, action: I, method: E }) : w && (Q = await w(se)), t({
659
+ $ ? Q = We({ ...oe, action: $, method: E }) : w && (Q = await w(oe)), t({
666
660
  uploadRequests: {
667
661
  ...s.uploadRequests,
668
662
  [c.uid]: Q
@@ -670,32 +664,32 @@ function Qe(e, d) {
670
664
  });
671
665
  }
672
666
  function U(c) {
673
- const { limit: I, fileList: R, onExceedLimit: C, autoUpload: v } = e;
674
- if (fe(I) && I < R.length + c.length)
667
+ const { limit: $, fileList: R, onExceedLimit: C, autoUpload: v } = e;
668
+ if (ue($) && $ < R.length + c.length)
675
669
  return C == null ? void 0 : C(c, R);
676
670
  const N = (w, E) => {
677
- const p = e.fileList || [], A = {
671
+ const T = e.fileList || [], H = {
678
672
  uid: `${String(+/* @__PURE__ */ new Date())}${E}`,
679
673
  originFile: w,
680
674
  percent: 0,
681
675
  status: y.init,
682
676
  name: w.name
683
677
  };
684
- f(A), p.push(A), f(A, p), v && setTimeout(() => {
685
- $({
686
- ...A,
678
+ f(H), T.push(H), f(H, T), v && setTimeout(() => {
679
+ x({
680
+ ...H,
687
681
  status: y.uploading
688
682
  });
689
683
  }, 0);
690
684
  };
691
685
  c.forEach((w, E) => {
692
- le(w, e.accept) && (F(e.beforeUpload) ? Promise.resolve(e.beforeUpload(w, c)).then((p) => {
693
- if (p !== !1) {
694
- const A = pe(p) ? p : w;
695
- N(A, E);
686
+ ae(w, e.accept) && (F(e.beforeUpload) ? Promise.resolve(e.beforeUpload(w, c)).then((T) => {
687
+ if (T !== !1) {
688
+ const H = ke(T) ? T : w;
689
+ N(H, E);
696
690
  }
697
- }).catch((p) => {
698
- console.error(p);
691
+ }).catch((T) => {
692
+ console.error(T);
699
693
  }) : N(w, E));
700
694
  });
701
695
  }
@@ -705,16 +699,16 @@ function Qe(e, d) {
705
699
  children: P,
706
700
  prefixCls: o,
707
701
  tip: b,
708
- disabled: x,
709
- drag: S,
710
- listType: T,
711
- hide: D,
712
- directory: k,
713
- onDrop: q,
714
- onDragOver: j,
715
- onDragLeave: V
702
+ disabled: I,
703
+ drag: q,
704
+ listType: k,
705
+ hide: O,
706
+ directory: j,
707
+ onDrop: A,
708
+ onDragOver: S,
709
+ onDragLeave: p
716
710
  } = e;
717
- return /* @__PURE__ */ L(B, { children: [
711
+ return /* @__PURE__ */ L(M, { children: [
718
712
  /* @__PURE__ */ r(
719
713
  "input",
720
714
  {
@@ -728,12 +722,12 @@ function Qe(e, d) {
728
722
  zIndex: -999999
729
723
  },
730
724
  type: "file",
731
- accept: ae(n) ? n == null ? void 0 : n.type : n,
725
+ accept: V(n) ? n == null ? void 0 : n.type : n,
732
726
  multiple: g,
733
- ...k ? { webkitdirectory: "true" } : {},
727
+ ...j ? { webkitdirectory: "true" } : {},
734
728
  onChange: (c) => {
735
- const I = c.target.files;
736
- I && (U([].slice.call(I)), u.current.value = "");
729
+ const $ = c.target.files;
730
+ $ && (U([].slice.call($)), u.current.value = "");
737
731
  },
738
732
  onClick: (c) => {
739
733
  c.stopPropagation();
@@ -744,28 +738,28 @@ function Qe(e, d) {
744
738
  /* @__PURE__ */ r(
745
739
  ie,
746
740
  {
747
- in: !D,
741
+ in: !O,
748
742
  timeout: 100,
749
743
  unmountOnExit: !0,
750
744
  classNames: "fadeIn",
751
745
  children: /* @__PURE__ */ r(
752
- Je,
746
+ ze,
753
747
  {
754
- directory: k,
748
+ directory: j,
755
749
  tip: b,
756
750
  multiple: g,
757
751
  accept: n,
758
- disabled: x,
759
- drag: S,
760
- listType: T,
752
+ disabled: I,
753
+ drag: q,
754
+ listType: k,
761
755
  triggerPictureIcon: e.triggerPictureIcon,
762
- onDrop: q,
763
- onDragOver: j,
764
- onDragLeave: V,
756
+ onDrop: A,
757
+ onDragOver: S,
758
+ onDragLeave: p,
765
759
  onDragFiles: U,
766
760
  onClick: () => {
767
- var c, I;
768
- !x && ((I = (c = u.current) == null ? void 0 : c.click) == null || I.call(c));
761
+ var c, $;
762
+ !I && (($ = (c = u.current) == null ? void 0 : c.click) == null || $.call(c));
769
763
  },
770
764
  prefixCls: o,
771
765
  children: F(P) ? P({ fileList: e.fileList }) : P
@@ -774,17 +768,17 @@ function Qe(e, d) {
774
768
  },
775
769
  "trigger-node"
776
770
  ),
777
- b && T !== "picture-card" && !S ? /* @__PURE__ */ r("div", { className: `${o}-trigger-tip`, children: b }, "trigger-tip") : null
771
+ b && k !== "picture-card" && !q ? /* @__PURE__ */ r("div", { className: `${o}-trigger-tip`, children: b }, "trigger-tip") : null
778
772
  ] });
779
773
  }
780
- const Ye = ee.forwardRef(Qe), Z = function(e) {
774
+ const Xe = ee.forwardRef(Je), Z = function(e) {
781
775
  const d = [].concat(e || []).filter(Boolean);
782
776
  return d.reduce((u, s, t) => {
783
777
  if (s.uid) {
784
778
  const a = d.findIndex(
785
779
  (l) => s.uid === l.uid && s !== l
786
780
  );
787
- de(a !== -1, "[Upload]: duplicate uid");
781
+ se(a !== -1, "[Upload]: duplicate uid");
788
782
  const i = {
789
783
  status: y.success,
790
784
  percent: 100,
@@ -792,7 +786,7 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
792
786
  };
793
787
  a === -1 ? u.push(i) : u.splice(a, 1, i);
794
788
  } else {
795
- de(!0, "[Upload]: uid is required");
789
+ se(!0, "[Upload]: uid is required");
796
790
  const a = `${String(+/* @__PURE__ */ new Date())}${t}`;
797
791
  u.push({
798
792
  uid: a,
@@ -803,18 +797,18 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
803
797
  }
804
798
  return u;
805
799
  }, []);
806
- }, Ze = {
800
+ }, Qe = {
807
801
  listType: "text",
808
802
  autoUpload: !0,
809
803
  showUploadList: !0,
810
804
  beforeUpload: () => !0,
811
805
  method: "post"
812
- }, et = (e, d) => {
813
- const { getPrefixCls: u, componentConfig: s, rtl: t } = z(J), a = we(
806
+ }, Ye = (e, d) => {
807
+ const { getPrefixCls: u, componentConfig: s, rtl: t } = z(J), a = $e(
814
808
  e,
815
- Ze,
809
+ Qe,
816
810
  s == null ? void 0 : s.Upload
817
- ), i = u("upload"), l = te(), m = te(), [f, h] = G(() => "fileList" in a ? Z(a.fileList) : "defaultFileList" in a ? Z(a.defaultFileList) : []), $ = "fileList" in a ? Z(a.fileList) : f, U = (v, N) => {
811
+ ), i = u("upload"), l = te(), m = te(), [f, h] = B(() => "fileList" in a ? Z(a.fileList) : "defaultFileList" in a ? Z(a.defaultFileList) : []), x = "fileList" in a ? Z(a.fileList) : f, U = (v, N) => {
818
812
  var w;
819
813
  "fileList" in a || h(v), (w = a.onChange) == null || w.call(a, v, N);
820
814
  }, n = (v) => {
@@ -828,10 +822,10 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
828
822
  if (v) {
829
823
  const { onRemove: N } = a;
830
824
  Promise.resolve(
831
- F(N) ? N(v, $) : N
825
+ F(N) ? N(v, x) : N
832
826
  ).then((w) => {
833
827
  w !== !1 && (l.current && l.current.abort(v), U(
834
- $.filter((E) => E.uid !== v.uid),
828
+ x.filter((E) => E.uid !== v.uid),
835
829
  v
836
830
  ));
837
831
  }).catch((w) => {
@@ -841,10 +835,10 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
841
835
  }, o = (v) => {
842
836
  v && l.current && l.current.abort(v);
843
837
  };
844
- ge(d, () => ({
838
+ me(d, () => ({
845
839
  submit: (v) => {
846
840
  let N = [];
847
- v ? N = [v] : N = $.filter((w) => w.status === y.init), N.forEach((w) => {
841
+ v ? N = [v] : N = x.filter((w) => w.status === y.init), N.forEach((w) => {
848
842
  n(w);
849
843
  });
850
844
  },
@@ -860,18 +854,18 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
860
854
  }));
861
855
  const {
862
856
  listType: b,
863
- className: x,
864
- style: S,
865
- renderUploadItem: T,
866
- showUploadList: D,
867
- renderUploadList: k,
868
- progressProps: q,
869
- imagePreview: j,
870
- ...V
871
- } = a, c = fe(a.limit) ? { hideOnExceedLimit: !0, maxCount: a.limit } : { hideOnExceedLimit: !0, ...a.limit }, I = c.maxCount && c.maxCount <= $.length, R = "disabled" in a ? a.disabled : !c.hideOnExceedLimit && I, C = /* @__PURE__ */ r(
857
+ className: I,
858
+ style: q,
859
+ renderUploadItem: k,
860
+ showUploadList: O,
861
+ renderUploadList: j,
862
+ progressProps: A,
863
+ imagePreview: S,
864
+ ...p
865
+ } = a, c = ue(a.limit) ? { hideOnExceedLimit: !0, maxCount: a.limit } : { hideOnExceedLimit: !0, ...a.limit }, $ = c.maxCount && c.maxCount <= x.length, R = "disabled" in a ? a.disabled : !c.hideOnExceedLimit && $, C = /* @__PURE__ */ r(
872
866
  "div",
873
867
  {
874
- ...Pe(V, [
868
+ ...ye(p, [
875
869
  "disabled",
876
870
  "directory",
877
871
  "onReupload",
@@ -909,27 +903,27 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
909
903
  [`${i}-type-${b}`]: b,
910
904
  [`${i}-drag`]: a.drag,
911
905
  [`${i}-disabled`]: R,
912
- [`${i}-hide`]: c.hideOnExceedLimit && I,
906
+ [`${i}-hide`]: c.hideOnExceedLimit && $,
913
907
  [`${i}-rtl`]: t
914
908
  },
915
- x
909
+ I
916
910
  ),
917
- style: S,
911
+ style: q,
918
912
  ref: m,
919
913
  children: /* @__PURE__ */ r(
920
- Ye,
914
+ Xe,
921
915
  {
922
916
  ref: l,
923
917
  ...a,
924
918
  limit: c.maxCount,
925
- hide: c.hideOnExceedLimit && I,
919
+ hide: c.hideOnExceedLimit && $,
926
920
  disabled: R,
927
921
  prefixCls: i,
928
- fileList: $,
922
+ fileList: x,
929
923
  onProgress: (v, N) => {
930
924
  var w;
931
925
  v && ("fileList" in a || h(
932
- $.map((E) => E.uid === v.uid ? v : E)
926
+ x.map((E) => E.uid === v.uid ? v : E)
933
927
  ), (w = a.onProgress) == null || w.call(a, v, N));
934
928
  },
935
929
  onFileStatusChange: U
@@ -937,19 +931,19 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
937
931
  )
938
932
  }
939
933
  );
940
- return /* @__PURE__ */ L(B, { children: [
934
+ return /* @__PURE__ */ L(M, { children: [
941
935
  b !== "picture-card" && C,
942
- D && /* @__PURE__ */ r(
943
- Ue,
936
+ O && /* @__PURE__ */ r(
937
+ be,
944
938
  {
945
- imagePreview: j,
946
- progressProps: q,
947
- showUploadList: D,
939
+ imagePreview: S,
940
+ progressProps: A,
941
+ showUploadList: O,
948
942
  disabled: a.disabled,
949
943
  listType: b,
950
- fileList: $,
951
- renderUploadItem: T,
952
- renderUploadList: k,
944
+ fileList: x,
945
+ renderUploadItem: k,
946
+ renderUploadList: j,
953
947
  onUpload: n,
954
948
  onAbort: o,
955
949
  onRemove: P,
@@ -961,10 +955,10 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
961
955
  b === "picture-card" && C,
962
956
  a.tip && b === "picture-card" && /* @__PURE__ */ r("div", { className: `${i}-trigger-tip`, children: a.tip })
963
957
  ] });
964
- }, tt = W(
965
- et
958
+ }, Ze = W(
959
+ Ye
966
960
  );
967
- tt.displayName = "Upload";
961
+ Ze.displayName = "Upload";
968
962
  export {
969
- tt as U
963
+ Ze as U
970
964
  };