@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,54 +1,44 @@
1
- import { jsx as i, jsxs as L, Fragment as en } from "react/jsx-runtime";
2
- import nn from "@unicom-cloud/icons/IconUiClose";
3
- import Me from "lodash/isFunction";
4
- import tn, { forwardRef as De, useState as D, useImperativeHandle as on, useRef as b, useContext as rn, useCallback as U, useEffect as oe } from "react";
5
- import we from "../Button.js";
6
- import { d as T, b as $e, g as ln, e as sn, f as an, s as cn, a as un, h as w, I as dn } from "./xPzFRQJn.js";
1
+ import { jsx as i, jsxs as L, Fragment as nn } from "react/jsx-runtime";
2
+ import { b as we, a as tn, c as on, d as rn, I as ln } from "./B45v5S9k.js";
3
+ import ye from "lodash/isFunction";
4
+ import sn, { forwardRef as Ie, useState as I, useImperativeHandle as an, useRef as g, useContext as cn, useCallback as S, useEffect as oe } from "react";
5
+ import Te from "../Button.js";
6
+ import { h as T, C as $e, i as un, m as dn, o as mn, s as fn, b as pn, q as y, I as Cn } from "./DUxWiN2U.js";
7
7
  import "lodash/isEqualWith";
8
- import mn from "../hooks/useMergeValue.js";
8
+ import hn from "../hooks/useMergeValue.js";
9
9
  import "../utils/is.js";
10
- import { Esc as fn } from "../utils/keyCode.js";
10
+ import { Esc as bn } from "../utils/keyCode.js";
11
11
  import "lodash/isNumber";
12
12
  import "lodash/merge";
13
- import { isServerRendering as pn, contains as Cn } from "../utils/dom.js";
14
- import "@unicom-cloud/utils/clipboard-copy";
15
- import "@unicom-cloud/utils/screenfull";
16
- import "lodash/throttle";
13
+ import { isServerRendering as gn, contains as vn } from "../utils/dom.js";
17
14
  import "../hooks/useIntersectionObserver.js";
18
- import hn from "../hooks/useUpdateEffect.js";
19
- import "../hooks/useLocation.js";
20
- import bn from "../hooks/useMergeProps.js";
21
- import "../hooks/useNetworkState.js";
22
- import gn from "../hooks/useOverflowHidden.js";
23
- import { render as xn, findDOMNode as vn } from "../utils/reactDOM.js";
24
- import "@unicom-cloud/utils/tween/easing";
25
- import kn from "../Portal.js";
26
- import { P as Te } from "./DQ3uFRJD.js";
27
- import Ne from "@unicom-cloud/utils/class-name";
28
- import yn from "../utils/omit.js";
29
- import En from "@unicom-cloud/icons/IconUiCheckCircleFill";
30
- import Mn from "@unicom-cloud/icons/IconUiCloseCircleFill";
31
- import Pe from "@unicom-cloud/icons/IconUiExclamationCircleFill";
32
- import wn from "@unicom-cloud/icons/IconUiInfoCircleFill";
33
- function Tn(n) {
34
- const { prefixCls: l, simple: c } = sn();
35
- return /* @__PURE__ */ i(y, { prefixCls: l, simple: c, ...n, children: n.content });
15
+ import xn from "../hooks/useMergeProps.js";
16
+ import kn from "../hooks/useOverflowHidden.js";
17
+ import { render as En, findDOMNode as Mn } from "../utils/reactDOM.js";
18
+ import wn from "../hooks/useUpdateEffect.js";
19
+ import yn from "../Portal.js";
20
+ import { P as Pe } from "./BP7xX86Q.js";
21
+ import { y as Ne } from "./Do1aMgY3.js";
22
+ import Tn from "../utils/omit.js";
23
+ function Pn(n) {
24
+ const { prefixCls: l, simple: c } = dn();
25
+ return /* @__PURE__ */ i(M, { prefixCls: l, simple: c, ...n, children: n.content });
36
26
  }
37
27
  const V = (n) => {
38
28
  let l = n.icon;
39
- if (!l && l !== null && (l = /* @__PURE__ */ i(Pe, {}), n.isNotice))
29
+ if (!l && l !== null && (l = /* @__PURE__ */ i(we, {}), n.isNotice))
40
30
  switch (n.noticeType) {
41
31
  case "info":
42
- l = /* @__PURE__ */ i(wn, {});
32
+ l = /* @__PURE__ */ i(rn, {});
43
33
  break;
44
34
  case "success":
45
- l = /* @__PURE__ */ i(En, {});
35
+ l = /* @__PURE__ */ i(on, {});
46
36
  break;
47
37
  case "warning":
48
- l = /* @__PURE__ */ i(Pe, {});
38
+ l = /* @__PURE__ */ i(we, {});
49
39
  break;
50
40
  case "error":
51
- l = /* @__PURE__ */ i(Mn, {});
41
+ l = /* @__PURE__ */ i(tn, {});
52
42
  break;
53
43
  }
54
44
  return n.noticeType === "show" && (l = n.icon), n.isNotice && (n.hideCancel = !0), n.title = l === null && n.title === null ? null : /* @__PURE__ */ L("span", { children: [
@@ -60,12 +50,12 @@ function le(n, l) {
60
50
  let c;
61
51
  const s = document.createElement("div");
62
52
  document.body.appendChild(s);
63
- const f = ln();
64
- function g(a) {
65
- const C = /* @__PURE__ */ i($e, { ...f, children: /* @__PURE__ */ i(Tn, { ...a, onCancel: h }) });
66
- c ? c.render(C) : c = xn(C, s);
53
+ const f = un();
54
+ function v(a) {
55
+ const C = /* @__PURE__ */ i($e, { ...f, children: /* @__PURE__ */ i(Pn, { ...a, onCancel: h }) });
56
+ c ? c.render(C) : c = En(C, s);
67
57
  }
68
- const o = g;
58
+ const o = v;
69
59
  let r = {
70
60
  ...n,
71
61
  visible: !1
@@ -86,16 +76,16 @@ function le(n, l) {
86
76
  function x() {
87
77
  c = c == null ? void 0 : c._unmount(), s.parentNode && s.parentNode.removeChild(s);
88
78
  for (let a = 0; a < T.length; a++)
89
- if (T[a] === v) {
79
+ if (T[a] === k) {
90
80
  T.splice(a, 1);
91
81
  break;
92
82
  }
93
83
  }
94
84
  function h(a) {
95
85
  var C;
96
- !a && ((C = n.onCancel) == null || C.call(n)), v();
86
+ !a && ((C = n.onCancel) == null || C.call(n)), k();
97
87
  }
98
- function M(a) {
88
+ function w(a) {
99
89
  r = {
100
90
  ...r,
101
91
  title: n.title,
@@ -103,22 +93,22 @@ function le(n, l) {
103
93
  ...a
104
94
  }, r = V(r), o(r);
105
95
  }
106
- function v() {
96
+ function k() {
107
97
  r.visible = !1, r.afterClose = () => {
108
98
  var a;
109
99
  (a = n.afterClose) == null || a.call(n), x();
110
100
  }, o(r);
111
101
  }
112
- return T.push(v), {
113
- close: v,
114
- update: M
102
+ return T.push(k), {
103
+ close: k,
104
+ update: w
115
105
  };
116
106
  }
117
107
  function Nn(n, l) {
118
- const [c, s] = D(!0), [f, g] = D(n);
119
- on(l, () => ({
108
+ const [c, s] = I(!0), [f, v] = I(n);
109
+ an(l, () => ({
120
110
  update: (u) => {
121
- g(u);
111
+ v(u);
122
112
  },
123
113
  close: () => {
124
114
  s(!1);
@@ -127,7 +117,7 @@ function Nn(n, l) {
127
117
  function o() {
128
118
  var x;
129
119
  const u = (x = f.onOk) == null ? void 0 : x.call(f);
130
- u && u.then && (g((h) => ({
120
+ u && u.then && (v((h) => ({
131
121
  ...h,
132
122
  confirmLoading: !0
133
123
  })), u.then(
@@ -135,8 +125,8 @@ function Nn(n, l) {
135
125
  s(!1);
136
126
  },
137
127
  (h) => {
138
- console.error(h), g((M) => ({
139
- ...M,
128
+ console.error(h), v((w) => ({
129
+ ...w,
140
130
  confirmLoading: !1
141
131
  }));
142
132
  }
@@ -147,7 +137,7 @@ function Nn(n, l) {
147
137
  (u = f.onCancel) == null || u.call(f), s(!1);
148
138
  }
149
139
  return /* @__PURE__ */ i(
150
- y,
140
+ M,
151
141
  {
152
142
  unmountOnExit: !0,
153
143
  simple: !0,
@@ -159,9 +149,9 @@ function Nn(n, l) {
159
149
  }
160
150
  );
161
151
  }
162
- const Pn = De(Nn);
163
- function Dn() {
164
- const n = b(), l = /* @__PURE__ */ i(an, { ref: n });
152
+ const In = Ie(Nn);
153
+ function $n() {
154
+ const n = g(), l = /* @__PURE__ */ i(mn, { ref: n });
165
155
  let c = 0;
166
156
  function s(o) {
167
157
  var C;
@@ -169,10 +159,10 @@ function Dn() {
169
159
  let r, u = { ...o };
170
160
  function x() {
171
161
  var p;
172
- (p = o.afterClose) == null || p.call(o), M();
162
+ (p = o.afterClose) == null || p.call(o), w();
173
163
  }
174
164
  const h = /* @__PURE__ */ i(
175
- Pn,
165
+ In,
176
166
  {
177
167
  ref: (p) => {
178
168
  r = p;
@@ -183,11 +173,11 @@ function Dn() {
183
173
  c
184
174
  );
185
175
  (C = n.current) == null || C.addInstance(h);
186
- function M() {
176
+ function w() {
187
177
  var p;
188
178
  (p = n.current) == null || p.removeInstance(h);
189
179
  }
190
- function v() {
180
+ function k() {
191
181
  r == null || r.close();
192
182
  }
193
183
  function a(p) {
@@ -196,8 +186,8 @@ function Dn() {
196
186
  ...p
197
187
  }, r == null || r.update(V({ ...u }));
198
188
  }
199
- return T.push(v), {
200
- close: v,
189
+ return T.push(k), {
190
+ close: k,
201
191
  update: a
202
192
  };
203
193
  }
@@ -206,21 +196,21 @@ function Dn() {
206
196
  ...o
207
197
  });
208
198
  }
209
- const g = {
199
+ const v = {
210
200
  confirm: f,
211
201
  show: f
212
202
  // 潘启宝添加于 2023年10月18日 星期三 10时31分58秒 CST
213
203
  };
214
204
  return ["info", "success", "warning", "error"].forEach((o) => {
215
- g[o] = (r) => s({
205
+ v[o] = (r) => s({
216
206
  ...r,
217
207
  isNotice: !0,
218
208
  noticeType: o
219
209
  });
220
- }), [g, l];
210
+ }), [v, l];
221
211
  }
222
- let re = null, $n = 0;
223
- pn || document.documentElement.addEventListener(
212
+ let re = null, Dn = 0;
213
+ gn || document.documentElement.addEventListener(
224
214
  "click",
225
215
  (n) => {
226
216
  re = {
@@ -232,7 +222,7 @@ pn || document.documentElement.addEventListener(
232
222
  },
233
223
  !0
234
224
  );
235
- const In = {
225
+ const On = {
236
226
  mask: !0,
237
227
  maskClosable: !0,
238
228
  mountOnEnter: !0,
@@ -240,54 +230,55 @@ const In = {
240
230
  getPopupContainer: () => document.body,
241
231
  alignCenter: !0
242
232
  };
243
- function On(n, l) {
244
- var Ee;
245
- l || (l = b());
246
- const c = rn(un), s = bn(
233
+ function Rn(n, l) {
234
+ var Me;
235
+ l || (l = g());
236
+ const c = cn(pn), s = xn(
247
237
  n,
248
- In,
249
- (Ee = c.componentConfig) == null ? void 0 : Ee.Modal
238
+ On,
239
+ (Me = c.componentConfig) == null ? void 0 : Me.Modal
250
240
  ), {
251
241
  className: f,
252
- style: g,
242
+ style: v,
253
243
  visible: o,
254
244
  simple: r,
255
245
  title: u,
256
246
  subtitle: x,
257
247
  children: h,
258
- cancelText: M,
259
- okText: v,
248
+ cancelText: w,
249
+ okText: k,
260
250
  okButtonProps: a,
261
251
  cancelButtonProps: C,
262
252
  getPopupContainer: p = () => document.body,
263
253
  footer: H,
264
254
  afterClose: z,
265
- confirmLoading: Ie,
255
+ confirmLoading: De,
266
256
  mountOnEnter: q,
267
257
  unmountOnExit: W,
268
258
  afterOpen: Z,
269
259
  hideCancel: Oe,
270
260
  maskClosable: Re,
271
- mask: S,
261
+ mask: X,
272
262
  alignCenter: Le,
273
263
  getChildrenPopupContainer: se,
274
264
  wrapClassName: He,
275
265
  escToExit: j,
276
266
  modalRender: ie,
277
- maskStyle: Se,
278
- wrapStyle: Xe,
267
+ maskStyle: Xe,
268
+ wrapStyle: Ye,
279
269
  closeIcon: ae,
280
- fullscreenable: Rn,
270
+ fullscreenable: Ln,
271
+ hidePreviousModal: Be,
281
272
  ...ce
282
- } = s, $ = b(null), ue = b(null), k = b(null), [de, me] = D(), [fe, Ye] = D(), X = b(null), I = b(!1), [Be, pe] = D(""), [Ce, he] = D(""), A = b(!0);
273
+ } = s, $ = g(null), ue = g(null), E = g(null), [de, me] = I(), [fe, Fe] = I(), Y = g(null), D = g(!1), [Ue, pe] = I(""), [Ce, he] = I(""), A = g(!0);
283
274
  o && A.current && (A.current = !1);
284
- const Y = b();
285
- Y.current || (Y.current = $n++);
286
- const [Fe, K] = mn(!1, {
275
+ const B = g();
276
+ B.current || (B.current = Dn++);
277
+ const [Se, K] = hn(!1, {
287
278
  defaultValue: !1,
288
- value: Ie
289
- }), d = c.getPrefixCls("modal", s.prefixCls), { locale: G, rtl: be } = c, Ue = !r || ce.noticeType === "show", Ve = "closable" in s ? s.closable : Ue, ze = U(() => vn(p()), [p]);
290
- gn(ze, { hidden: o && S });
279
+ value: De
280
+ }), d = c.getPrefixCls("modal", s.prefixCls), { locale: G, rtl: be } = c, Ve = !r || ce.noticeType === "show", ze = "closable" in s ? s.closable : Ve, qe = S(() => Mn(p()), [p]);
281
+ kn(qe, { hidden: o && X });
291
282
  function J(e) {
292
283
  e.stopPropagation(), Q();
293
284
  }
@@ -295,105 +286,108 @@ function On(n, l) {
295
286
  var e;
296
287
  (e = s.onCancel) == null || e.call(s);
297
288
  }
298
- const qe = (e) => {
299
- j && o && e.key === fn.key && (e.stopPropagation(), Q());
300
- }, _ = b(!1), We = (e) => {
301
- I.current && (I.current = !1, !_.current && Re && S && e.target === e.currentTarget && setTimeout(() => {
289
+ const We = (e) => {
290
+ j && o && e.key === bn.key && (e.stopPropagation(), Q());
291
+ }, _ = g(!1), Ze = (e) => {
292
+ D.current && (D.current = !1, !_.current && Re && X && e.target === e.currentTarget && setTimeout(() => {
302
293
  Q();
303
294
  }, 100));
304
- }, Ze = (e) => {
295
+ }, je = (e) => {
305
296
  var m;
306
297
  const t = (m = s.onOk ?? s.onConfirm) == null ? void 0 : m(e);
307
298
  t != null && t.then && (K(!0), t.then(
308
299
  () => {
309
300
  K(!1);
310
301
  },
311
- (E) => {
312
- K(!1), console.error(E);
302
+ (b) => {
303
+ K(!1), console.error(b);
313
304
  }
314
305
  ));
315
306
  };
316
- hn(() => {
317
- if (!s.hidePreviousModal || !(l != null && l.current))
318
- return;
319
- const e = w.indexOf(l.current);
320
- if (e !== -1 && w.splice(e, 1), o) {
321
- for (const m of w)
322
- m instanceof HTMLElement && m.style instanceof CSSStyleDeclaration && m.style.setProperty("display", "none");
323
- w.push(l.current);
324
- }
325
- const t = w.at(w.length - 1);
326
- return t instanceof HTMLElement && t.style instanceof CSSStyleDeclaration && t.style.removeProperty("display"), () => {
307
+ wn(() => {
308
+ var t, m;
309
+ let e = l == null ? void 0 : l.current;
310
+ if (!e)
311
+ return () => {
312
+ };
313
+ if (o) {
314
+ if (Be)
315
+ for (const b of y)
316
+ b instanceof HTMLElement && b.style.setProperty("display", "none");
317
+ y.push(e);
318
+ } else
319
+ e = y.pop();
320
+ return e = ((m = (t = y).at) == null ? void 0 : m.call(t, -1)) ?? y[y.length - 1], e instanceof HTMLElement && e.style.removeProperty("display"), () => {
327
321
  };
328
322
  }, [o, l == null ? void 0 : l.current]), oe(() => {
329
323
  let e = null;
330
324
  return j && (e = setTimeout(() => {
331
325
  var t;
332
- Cn(document.body, $.current) && ((t = $.current) == null || t.focus());
326
+ vn(document.body, $.current) && ((t = $.current) == null || t.focus());
333
327
  })), () => {
334
328
  e && clearTimeout(e);
335
329
  };
336
330
  }, [o, j]);
337
- const je = () => {
331
+ const Ae = () => {
338
332
  var e;
339
333
  if (o && fe === void 0 && $.current) {
340
334
  const t = +((e = window.getComputedStyle($.current, null)) == null ? void 0 : e.zIndex);
341
- isNaN(t) || Ye(t + 1);
335
+ isNaN(t) || Fe(t + 1);
342
336
  }
343
- }, Ae = () => {
337
+ }, Ke = () => {
344
338
  if (H === null) return;
345
- const e = /* @__PURE__ */ i(we, { onClick: J, ...C, children: M || G.Modal.cancelText }), t = /* @__PURE__ */ i(
346
- we,
339
+ const e = /* @__PURE__ */ i(Te, { onClick: J, ...C, children: w || G.Modal.cancelText }), t = /* @__PURE__ */ i(
340
+ Te,
347
341
  {
348
- loading: Fe,
349
- onClick: Ze,
342
+ loading: Se,
343
+ onClick: je,
350
344
  type: "primary",
351
345
  ...a,
352
- children: v || G.Modal.okText
346
+ children: k || G.Modal.okText
353
347
  }
354
- ), m = Me(H) ? H(e, t) : H || /* @__PURE__ */ L(en, { children: [
348
+ ), m = ye(H) ? H(e, t) : H || /* @__PURE__ */ L(nn, { children: [
355
349
  !Oe && e,
356
350
  t
357
351
  ] });
358
352
  return /* @__PURE__ */ i("div", { className: `${d}-footer`, children: m });
359
- }, ee = b(
360
- ve()
361
- ), Ke = U((e) => {
362
- var m, E, N, P, F;
363
- if (!k.current)
353
+ }, ee = g(
354
+ xe()
355
+ ), Ge = S((e) => {
356
+ var m, b, P, N, U;
357
+ if (!E.current)
364
358
  return;
365
359
  e.preventDefault();
366
360
  const t = ee.current;
367
- t.screenX = e.screenX, t.screenY = e.screenY, t.prewTranslateX = t.translateX, t.prewTranslateY = t.translateY, t.boundingClientRect = ((E = (m = k.current) == null ? void 0 : m.getBoundingClientRect) == null ? void 0 : E.call(m)) ?? {}, t.offsetParentBoundingClientRect = ((F = (P = (N = k.current) == null ? void 0 : N.offsetParent) == null ? void 0 : P.getBoundingClientRect) == null ? void 0 : F.call(P)) ?? {}, B(), Ge();
368
- }, []), ge = U((e) => {
361
+ t.screenX = e.screenX, t.screenY = e.screenY, t.prewTranslateX = t.translateX, t.prewTranslateY = t.translateY, t.boundingClientRect = ((b = (m = E.current) == null ? void 0 : m.getBoundingClientRect) == null ? void 0 : b.call(m)) ?? {}, t.offsetParentBoundingClientRect = ((U = (N = (P = E.current) == null ? void 0 : P.offsetParent) == null ? void 0 : N.getBoundingClientRect) == null ? void 0 : U.call(N)) ?? {}, F(), Je();
362
+ }, []), ge = S((e) => {
369
363
  e.preventDefault();
370
- const t = ee.current, { left: m, right: E, top: N, bottom: P } = t.boundingClientRect ?? {}, { width: F, height: _e } = t.offsetParentBoundingClientRect ?? {};
364
+ const t = ee.current, { left: m, right: b, top: P, bottom: N } = t.boundingClientRect ?? {}, { width: U, height: en } = t.offsetParentBoundingClientRect ?? {};
371
365
  let O = Math.max(e.screenX - t.screenX, -m);
372
- O = Math.min(O, F - E);
373
- let R = Math.max(e.screenY - t.screenY, -N);
374
- R = Math.min(R, _e - P), O += t.prewTranslateX, R += t.prewTranslateY, t.translateX = O, t.translateY = R, pe(`translate(${O}px, ${R}px)`);
375
- }, []), xe = U((e) => {
376
- e.preventDefault(), B();
366
+ O = Math.min(O, U - b);
367
+ let R = Math.max(e.screenY - t.screenY, -P);
368
+ R = Math.min(R, en - N), O += t.prewTranslateX, R += t.prewTranslateY, t.translateX = O, t.translateY = R, pe(`translate(${O}px, ${R}px)`);
369
+ }, []), ve = S((e) => {
370
+ e.preventDefault(), F();
377
371
  }, []);
378
- function Ge() {
372
+ function Je() {
379
373
  document.documentElement.addEventListener(
380
374
  "mousemove",
381
375
  ge
382
376
  ), document.documentElement.addEventListener(
383
377
  "mouseup",
384
- xe
378
+ ve
385
379
  );
386
380
  }
387
- function B() {
381
+ function F() {
388
382
  document.documentElement.removeEventListener(
389
383
  "mousemove",
390
384
  ge
391
385
  ), document.documentElement.removeEventListener(
392
386
  "mouseup",
393
- xe
387
+ ve
394
388
  );
395
389
  }
396
- function ve() {
390
+ function xe() {
397
391
  return {
398
392
  screenX: 0,
399
393
  screenY: 0,
@@ -406,13 +400,13 @@ function On(n, l) {
406
400
  };
407
401
  }
408
402
  function ne() {
409
- ee.current = ve(), pe(""), he("");
403
+ ee.current = xe(), pe(""), he("");
410
404
  }
411
405
  oe(() => () => {
412
- ne(), B();
413
- }, []), oe(() => (k.current || (ne(), B()), () => {
414
- }), [k.current]);
415
- const Je = /* @__PURE__ */ L(
406
+ ne(), F();
407
+ }, []), oe(() => (E.current || (ne(), F()), () => {
408
+ }), [E.current]);
409
+ const Qe = /* @__PURE__ */ L(
416
410
  $e,
417
411
  {
418
412
  ...c,
@@ -426,23 +420,23 @@ function On(n, l) {
426
420
  "div",
427
421
  {
428
422
  className: `${d}-title`,
429
- id: `pqb-dialog-${Y.current}`,
423
+ id: `pqb-dialog-${B.current}`,
430
424
  children: u
431
425
  }
432
426
  ),
433
427
  !!x && /* @__PURE__ */ i("div", { className: `${d}-subtitle`, children: x })
434
428
  ] }),
435
429
  /* @__PURE__ */ i("div", { ref: ue, className: `${d}-content`, children: h }),
436
- Ae(),
430
+ Ke(),
437
431
  !s.fullscreenable && s.draggable !== !1 && /* @__PURE__ */ i(
438
432
  "div",
439
433
  {
440
434
  className: `${d}-drag-icon`,
441
- onMouseDown: Ke,
435
+ onMouseDown: Ge,
442
436
  onDoubleClick: ne
443
437
  }
444
438
  ),
445
- (Ve || !!s.fullscreenable) && (ae !== void 0 ? /* @__PURE__ */ i(
439
+ (ze || !!s.fullscreenable) && (ae !== void 0 ? /* @__PURE__ */ i(
446
440
  "span",
447
441
  {
448
442
  className: `${d}-close-icon`,
@@ -450,24 +444,24 @@ function On(n, l) {
450
444
  children: ae
451
445
  }
452
446
  ) : /* @__PURE__ */ i(
453
- dn,
447
+ Cn,
454
448
  {
455
449
  tabIndex: -1,
456
450
  className: `${d}-close-icon`,
457
451
  onClick: J,
458
452
  role: "button",
459
453
  "aria-label": "Close",
460
- children: /* @__PURE__ */ i(nn, {})
454
+ children: /* @__PURE__ */ i(ln, {})
461
455
  }
462
456
  ))
463
457
  ]
464
458
  }
465
- ), Qe = u ? { "aria-labelledby": `pqb-dialog-${Y.current}` } : {}, ke = /* @__PURE__ */ i(
459
+ ), _e = u ? { "aria-labelledby": `pqb-dialog-${B.current}` } : {}, ke = /* @__PURE__ */ i(
466
460
  "div",
467
461
  {
468
462
  role: "dialog",
469
463
  "aria-modal": "true",
470
- ...Qe,
464
+ ..._e,
471
465
  className: Ne(
472
466
  d,
473
467
  {
@@ -478,28 +472,28 @@ function On(n, l) {
478
472
  f
479
473
  ),
480
474
  style: {
481
- ...g,
482
- transform: Be,
475
+ ...v,
476
+ transform: Ue,
483
477
  transformOrigin: Ce
484
478
  },
485
- ref: k,
486
- children: Je
479
+ ref: E,
480
+ children: Qe
487
481
  }
488
482
  ), te = (e) => {
489
483
  if (Ce)
490
484
  return;
491
485
  let t = "";
492
- if (X.current) {
493
- const m = e.getBoundingClientRect(), { left: E, top: N } = X.current;
494
- t = `${E - m.left}px ${N - m.top}px`;
486
+ if (Y.current) {
487
+ const m = e.getBoundingClientRect(), { left: b, top: P } = Y.current;
488
+ t = `${b - m.left}px ${P - m.top}px`;
495
489
  }
496
490
  he(t);
497
- }, ye = A.current ? !q : !!k.current;
498
- return o || ye ? /* @__PURE__ */ i(
499
- kn,
491
+ }, Ee = A.current ? !q : !!E.current;
492
+ return o || Ee ? /* @__PURE__ */ i(
493
+ yn,
500
494
  {
501
495
  visible: o,
502
- forceRender: ye,
496
+ forceRender: Ee,
503
497
  getContainer: p,
504
498
  children: /* @__PURE__ */ L(
505
499
  "div",
@@ -507,8 +501,8 @@ function On(n, l) {
507
501
  ref: l,
508
502
  className: `${d}-container`,
509
503
  children: [
510
- S ? /* @__PURE__ */ i(
511
- Te,
504
+ X ? /* @__PURE__ */ i(
505
+ Pe,
512
506
  {
513
507
  in: o,
514
508
  timeout: 400,
@@ -527,7 +521,7 @@ function On(n, l) {
527
521
  {
528
522
  "aria-hidden": !0,
529
523
  className: `${d}-mask`,
530
- style: Se
524
+ style: Xe
531
525
  }
532
526
  )
533
527
  }
@@ -535,7 +529,7 @@ function On(n, l) {
535
529
  /* @__PURE__ */ i(
536
530
  "div",
537
531
  {
538
- ...yn(ce, [
532
+ ...Tn(ce, [
539
533
  "content",
540
534
  "icon",
541
535
  "showIcon",
@@ -549,30 +543,30 @@ function On(n, l) {
549
543
  ]),
550
544
  tabIndex: -1,
551
545
  ref: (e) => {
552
- $.current = e, je();
546
+ $.current = e, Ae();
553
547
  },
554
548
  className: Ne(
555
549
  `${d}-wrapper`,
556
550
  {
557
- [`${d}-wrapper-no-mask`]: !S,
551
+ [`${d}-wrapper-no-mask`]: !X,
558
552
  [`${d}-wrapper-align-center`]: Le,
559
553
  [`${d}-wrapper-rtl`]: be
560
554
  },
561
555
  He
562
556
  ),
563
557
  style: {
564
- ...Xe || {},
558
+ ...Ye || {},
565
559
  // 必须 visible=false,立即设置display:none,否则modal加载react-monaco-editor的时候,编辑器显示异常
566
560
  display: o || de ? "block" : "none",
567
561
  overflow: !o && de ? "hidden" : ""
568
562
  },
569
- onKeyDown: qe,
563
+ onKeyDown: We,
570
564
  onMouseDown: (e) => {
571
- I.current = e.target === e.currentTarget;
565
+ D.current = e.target === e.currentTarget;
572
566
  },
573
- onClick: We,
567
+ onClick: Ze,
574
568
  children: /* @__PURE__ */ i(
575
- Te,
569
+ Pe,
576
570
  {
577
571
  in: o,
578
572
  timeout: 400,
@@ -581,25 +575,25 @@ function On(n, l) {
581
575
  unmountOnExit: W,
582
576
  mountOnEnter: q,
583
577
  onEnter: (e) => {
584
- e && (me(!0), X.current = re, te(e), k.current = e);
578
+ e && (me(!0), Y.current = re, te(e), E.current = e);
585
579
  },
586
580
  onEntered: (e) => {
587
- e && (te(e), X.current = null, Z == null || Z());
581
+ e && (te(e), Y.current = null, Z == null || Z());
588
582
  },
589
583
  onExit: () => {
590
584
  _.current = !0;
591
585
  },
592
586
  onExited: (e) => {
593
- e && (me(!1), te(e), z == null || z(), _.current = !1, W && (k.current = null));
587
+ e && (me(!1), te(e), z == null || z(), _.current = !1, W && (E.current = null));
594
588
  },
595
- children: tn.cloneElement(
596
- Me(ie) ? ie(ke) : ke,
589
+ children: sn.cloneElement(
590
+ ye(ie) ? ie(ke) : ke,
597
591
  {
598
592
  onMouseDown: () => {
599
- I.current = !1;
593
+ D.current = !1;
600
594
  },
601
595
  onMouseUp: () => {
602
- I.current = !1;
596
+ D.current = !1;
603
597
  }
604
598
  }
605
599
  )
@@ -613,28 +607,28 @@ function On(n, l) {
613
607
  }
614
608
  ) : null;
615
609
  }
616
- const y = De(
617
- On
610
+ const M = Ie(
611
+ Rn
618
612
  );
619
- y.displayName = "Modal";
620
- y.config = cn;
621
- y.show = (n) => le({ ...n, noticeType: "show" });
622
- y.confirm = (n) => le(n);
623
- y.useModal = Dn;
613
+ M.displayName = "Modal";
614
+ M.config = fn;
615
+ M.show = (n) => le({ ...n, noticeType: "show" });
616
+ M.confirm = (n) => le(n);
617
+ M.useModal = $n;
624
618
  ["info", "success", "warning", "error"].forEach((n) => {
625
- y[n] = (l) => le({
619
+ M[n] = (l) => le({
626
620
  ...l,
627
621
  isNotice: !0,
628
622
  noticeType: n
629
623
  });
630
624
  });
631
- y.destroyAll = () => {
625
+ M.destroyAll = () => {
632
626
  for (; T.length; ) {
633
627
  const n = T.pop();
634
628
  n && n();
635
629
  }
636
- w.length = 0;
630
+ y.length = 0;
637
631
  };
638
632
  export {
639
- y as E
633
+ M as E
640
634
  };