@unicom-cloud/ui 0.8.55 → 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 (428) 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/{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/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/version/index.d.ts +1 -1
  197. package/utils/CSSTransition.js +1 -1
  198. package/utils/className.js +2 -3
  199. package/utils/contextHolder.js +2 -2
  200. package/utils/copy.js +2 -3
  201. package/utils/is.js +127 -90
  202. package/utils/reactDOM.js +17 -15
  203. package/utils/responsiveObserve.js +16 -16
  204. package/utils/saveAs.js +2 -3
  205. package/utils/scrollIntoView.js +1 -1
  206. package/chunk/BdYAMaw9.js +0 -6
  207. package/chunk/CiZVOdJ3.js +0 -122
  208. package/chunk/DdtfPvgk.js +0 -272
  209. package/chunk/I4RV9SKZ.js +0 -135
  210. package/chunk/TXCrI0jN.js +0 -20
  211. package/chunk/i1A7W8Qt.js +0 -277
  212. package/chunk/xPzFRQJn.js +0 -740
  213. package/hooks/useAsync.js +0 -13
  214. package/hooks/useAsyncFn.js +0 -15
  215. package/hooks/useAsyncRetry.js +0 -17
  216. package/hooks/useAudio.js +0 -5
  217. package/hooks/useBeforeUnload.js +0 -18
  218. package/hooks/useBoolean.js +0 -4
  219. package/hooks/useClickAway.js +0 -22
  220. package/hooks/useCopyToClipboard.js +0 -51
  221. package/hooks/useCounter.js +0 -45
  222. package/hooks/useCreation.js +0 -17
  223. package/hooks/useCustomCompareEffect.js +0 -15
  224. package/hooks/useDebounce.js +0 -9
  225. package/hooks/useDefault.js +0 -10
  226. package/hooks/useDrop.js +0 -44
  227. package/hooks/useDropArea.js +0 -45
  228. package/hooks/useEffectOnce.js +0 -7
  229. package/hooks/useEffectState.js +0 -9
  230. package/hooks/useEnsuredForwardedRef.js +0 -17
  231. package/hooks/useError.js +0 -13
  232. package/hooks/useEvent.js +0 -13
  233. package/hooks/useEventListener.js +0 -39
  234. package/hooks/useFavicon.js +0 -16
  235. package/hooks/useFirstMountState.js +0 -8
  236. package/hooks/useFullscreen.js +0 -39
  237. package/hooks/useGeolocation.js +0 -38
  238. package/hooks/useGetSet.js +0 -18
  239. package/hooks/useGetSetState.js +0 -12
  240. package/hooks/useHash.js +0 -26
  241. package/hooks/useHover.js +0 -16
  242. package/hooks/useHoverDirty.js +0 -17
  243. package/hooks/useIdle.js +0 -34
  244. package/hooks/useIntersection.js +0 -19
  245. package/hooks/useIsomorphicLayoutEffect2.js +0 -6
  246. package/hooks/useKey.js +0 -16
  247. package/hooks/useKeyPress.js +0 -13
  248. package/hooks/useKeyPressEvent.js +0 -11
  249. package/hooks/useLatest.js +0 -8
  250. package/hooks/useLifecycles.js +0 -9
  251. package/hooks/useList.js +0 -67
  252. package/hooks/useLocalStorage.js +0 -42
  253. package/hooks/useLocation.js +0 -51
  254. package/hooks/useLockBodyScroll.js +0 -55
  255. package/hooks/useLogger.js +0 -10
  256. package/hooks/useLongPress.js +0 -24
  257. package/hooks/useMap.js +0 -31
  258. package/hooks/useMeasure.js +0 -34
  259. package/hooks/useMeasureDirty.js +0 -24
  260. package/hooks/useMediaDevices.js +0 -26
  261. package/hooks/useMediatedState.js +0 -14
  262. package/hooks/useMethods.js +0 -14
  263. package/hooks/useMotion.js +0 -56
  264. package/hooks/useMount.js +0 -9
  265. package/hooks/useMountedState.js +0 -10
  266. package/hooks/useMouse.js +0 -44
  267. package/hooks/useMouseHovered.js +0 -9
  268. package/hooks/useMouseWheel.js +0 -14
  269. package/hooks/useMultiStateValidator.js +0 -19
  270. package/hooks/useNetworkState.js +0 -31
  271. package/hooks/useNumber.js +0 -4
  272. package/hooks/useObservable.js +0 -12
  273. package/hooks/useOrientation.js +0 -30
  274. package/hooks/usePageLeave.js +0 -19
  275. package/hooks/usePermission.js +0 -19
  276. package/hooks/usePinchZoom.js +0 -40
  277. package/hooks/usePreviousDistinct.js +0 -10
  278. package/hooks/usePromise.js +0 -19
  279. package/hooks/useQueue.js +0 -25
  280. package/hooks/useRaf.js +0 -24
  281. package/hooks/useRafLoop.js +0 -24
  282. package/hooks/useRafState.js +0 -15
  283. package/hooks/useReactive.js +0 -21
  284. package/hooks/useRendersCount.js +0 -7
  285. package/hooks/useScroll.js +0 -27
  286. package/hooks/useScrolling.js +0 -23
  287. package/hooks/useSearchParam.js +0 -18
  288. package/hooks/useSessionStorage.js +0 -29
  289. package/hooks/useSet.js +0 -15
  290. package/hooks/useSetState.js +0 -16
  291. package/hooks/useSize.js +0 -58
  292. package/hooks/useSlider.js +0 -48
  293. package/hooks/useSpeech.js +0 -45
  294. package/hooks/useStartTyping.js +0 -30
  295. package/hooks/useStateList.js +0 -37
  296. package/hooks/useStateValidator.js +0 -17
  297. package/hooks/useStateWithHistory.js +0 -46
  298. package/hooks/useSyncState.js +0 -14
  299. package/hooks/useThrottle.js +0 -21
  300. package/hooks/useThrottleFn.js +0 -21
  301. package/hooks/useTimeout.js +0 -17
  302. package/hooks/useTimeoutFn.js +0 -16
  303. package/hooks/useTitle.js +0 -18
  304. package/hooks/useToggle.js +0 -5
  305. package/hooks/useTween.js +0 -11
  306. package/hooks/useUnmount.js +0 -9
  307. package/hooks/useUnmountPromise.js +0 -20
  308. package/hooks/useUpdate.js +0 -10
  309. package/hooks/useUpdateTimeout.js +0 -9
  310. package/hooks/useUpsert.js +0 -16
  311. package/hooks/useVibrate.js +0 -21
  312. package/hooks/useVideo.js +0 -5
  313. package/hooks/useWindowScroll.js +0 -29
  314. package/types/hooks/component/UseKey.d.ts +0 -2
  315. package/types/hooks/factory/createBreakpoint.d.ts +0 -4
  316. package/types/hooks/factory/createGlobalState.d.ts +0 -7
  317. package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
  318. package/types/hooks/factory/createMemo.d.ts +0 -2
  319. package/types/hooks/factory/createReducer.d.ts +0 -8
  320. package/types/hooks/factory/createReducerContext.d.ts +0 -5
  321. package/types/hooks/factory/createRenderProp.d.ts +0 -1
  322. package/types/hooks/factory/createRouter.d.ts +0 -7
  323. package/types/hooks/factory/createStateContext.d.ts +0 -5
  324. package/types/hooks/misc/hookState.d.ts +0 -8
  325. package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
  326. package/types/hooks/misc/types.d.ts +0 -2
  327. package/types/hooks/misc/util.d.ts +0 -5
  328. package/types/hooks/useAsync.d.ts +0 -20
  329. package/types/hooks/useAsyncFn.d.ts +0 -23
  330. package/types/hooks/useAsyncRetry.d.ts +0 -27
  331. package/types/hooks/useAudio.d.ts +0 -11
  332. package/types/hooks/useBeforeUnload.d.ts +0 -2
  333. package/types/hooks/useBoolean.d.ts +0 -2
  334. package/types/hooks/useClickAway.d.ts +0 -3
  335. package/types/hooks/useCopyToClipboard.d.ts +0 -7
  336. package/types/hooks/useCounter.d.ts +0 -9
  337. package/types/hooks/useCreation.d.ts +0 -2
  338. package/types/hooks/useCustomCompareEffect.d.ts +0 -4
  339. package/types/hooks/useDebounce.d.ts +0 -3
  340. package/types/hooks/useDefault.d.ts +0 -2
  341. package/types/hooks/useDrop.d.ts +0 -17
  342. package/types/hooks/useDropArea.d.ts +0 -18
  343. package/types/hooks/useEffectOnce.d.ts +0 -3
  344. package/types/hooks/useEffectState.d.ts +0 -2
  345. package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
  346. package/types/hooks/useError.d.ts +0 -2
  347. package/types/hooks/useEvent.d.ts +0 -13
  348. package/types/hooks/useEventListener.d.ts +0 -2
  349. package/types/hooks/useFavicon.d.ts +0 -2
  350. package/types/hooks/useFirstMountState.d.ts +0 -1
  351. package/types/hooks/useFullscreen.d.ts +0 -10
  352. package/types/hooks/useGeolocation.d.ts +0 -21
  353. package/types/hooks/useGetSet.d.ts +0 -3
  354. package/types/hooks/useGetSetState.d.ts +0 -2
  355. package/types/hooks/useHash.d.ts +0 -2
  356. package/types/hooks/useHover.d.ts +0 -4
  357. package/types/hooks/useHoverDirty.d.ts +0 -3
  358. package/types/hooks/useIdle.d.ts +0 -2
  359. package/types/hooks/useIntersection.d.ts +0 -3
  360. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
  361. package/types/hooks/useKey.d.ts +0 -12
  362. package/types/hooks/useKeyPress.d.ts +0 -3
  363. package/types/hooks/useKeyPressEvent.d.ts +0 -3
  364. package/types/hooks/useLatest.d.ts +0 -4
  365. package/types/hooks/useLifecycles.d.ts +0 -2
  366. package/types/hooks/useList.d.ts +0 -18
  367. package/types/hooks/useLocalStorage.d.ts +0 -10
  368. package/types/hooks/useLocation.d.ts +0 -16
  369. package/types/hooks/useLockBodyScroll.d.ts +0 -8
  370. package/types/hooks/useLogger.d.ts +0 -2
  371. package/types/hooks/useLongPress.d.ts +0 -12
  372. package/types/hooks/useMap.d.ts +0 -11
  373. package/types/hooks/useMeasure.d.ts +0 -9
  374. package/types/hooks/useMeasureDirty.d.ts +0 -11
  375. package/types/hooks/useMediaDevices.d.ts +0 -2
  376. package/types/hooks/useMediatedState.d.ts +0 -9
  377. package/types/hooks/useMethods.d.ts +0 -8
  378. package/types/hooks/useMotion.d.ts +0 -20
  379. package/types/hooks/useMount.d.ts +0 -2
  380. package/types/hooks/useMountedState.d.ts +0 -1
  381. package/types/hooks/useMouse.d.ts +0 -13
  382. package/types/hooks/useMouseHovered.d.ts +0 -8
  383. package/types/hooks/useMouseWheel.d.ts +0 -2
  384. package/types/hooks/useMultiStateValidator.d.ts +0 -9
  385. package/types/hooks/useNetworkState.d.ts +0 -22
  386. package/types/hooks/useNumber.d.ts +0 -2
  387. package/types/hooks/useObservable.d.ts +0 -8
  388. package/types/hooks/useOrientation.d.ts +0 -6
  389. package/types/hooks/usePageLeave.d.ts +0 -2
  390. package/types/hooks/usePermission.d.ts +0 -16
  391. package/types/hooks/usePinchZoom.d.ts +0 -18
  392. package/types/hooks/usePreviousDistinct.d.ts +0 -2
  393. package/types/hooks/usePromise.d.ts +0 -3
  394. package/types/hooks/useQueue.d.ts +0 -9
  395. package/types/hooks/useRaf.d.ts +0 -2
  396. package/types/hooks/useRafLoop.d.ts +0 -2
  397. package/types/hooks/useRafState.d.ts +0 -3
  398. package/types/hooks/useReactive.d.ts +0 -2
  399. package/types/hooks/useRendersCount.d.ts +0 -1
  400. package/types/hooks/useScroll.d.ts +0 -7
  401. package/types/hooks/useScrolling.d.ts +0 -3
  402. package/types/hooks/useSearchParam.d.ts +0 -3
  403. package/types/hooks/useSessionStorage.d.ts +0 -2
  404. package/types/hooks/useSet.d.ts +0 -11
  405. package/types/hooks/useSetState.d.ts +0 -2
  406. package/types/hooks/useSize.d.ts +0 -8
  407. package/types/hooks/useSlider.d.ts +0 -15
  408. package/types/hooks/useSpeech.d.ts +0 -16
  409. package/types/hooks/useStartTyping.d.ts +0 -2
  410. package/types/hooks/useStateList.d.ts +0 -9
  411. package/types/hooks/useStateValidator.d.ts +0 -8
  412. package/types/hooks/useStateWithHistory.d.ts +0 -18
  413. package/types/hooks/useSyncState.d.ts +0 -3
  414. package/types/hooks/useThrottle.d.ts +0 -2
  415. package/types/hooks/useThrottleFn.d.ts +0 -2
  416. package/types/hooks/useTimeout.d.ts +0 -2
  417. package/types/hooks/useTimeoutFn.d.ts +0 -2
  418. package/types/hooks/useTitle.d.ts +0 -6
  419. package/types/hooks/useToggle.d.ts +0 -2
  420. package/types/hooks/useTween.d.ts +0 -3
  421. package/types/hooks/useUnmount.d.ts +0 -2
  422. package/types/hooks/useUnmountPromise.d.ts +0 -3
  423. package/types/hooks/useUpdate.d.ts +0 -2
  424. package/types/hooks/useUpdateTimeout.d.ts +0 -2
  425. package/types/hooks/useUpsert.d.ts +0 -6
  426. package/types/hooks/useVibrate.d.ts +0 -4
  427. package/types/hooks/useVideo.d.ts +0 -11
  428. package/types/hooks/useWindowScroll.d.ts +0 -6
package/chunk/xPzFRQJn.js DELETED
@@ -1,740 +0,0 @@
1
- var pe = Object.defineProperty;
2
- var ue = (d, m, e) => m in d ? pe(d, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[m] = e;
3
- var f = (d, m, e) => ue(d, typeof m != "symbol" ? m + "" : m, e);
4
- import { jsx as c, jsxs as k } from "react/jsx-runtime";
5
- import S from "@unicom-cloud/icons/context";
6
- import he from "@unicom-cloud/utils/tinycolor";
7
- import Ce from "lodash/isPlainObject";
8
- import D, { forwardRef as Z, useContext as z, createContext as ge, useRef as G, useImperativeHandle as _, Component as xe, createRef as ve, useState as be, useEffect as q } from "react";
9
- import ee from "../hooks/useMergeProps.js";
10
- import { b as te, P as re } from "./DQ3uFRJD.js";
11
- import T from "lodash/isNumber";
12
- import I from "lodash/isUndefined";
13
- import ye from "@unicom-cloud/icons/IconUiCheckCircleFill";
14
- import B from "@unicom-cloud/icons/IconUiClose";
15
- import $e from "@unicom-cloud/icons/IconUiCloseCircleFill";
16
- import Ne from "@unicom-cloud/icons/IconUiExclamationCircleFill";
17
- import Ee from "@unicom-cloud/icons/IconUiInfoCircleFill";
18
- import Pe from "@unicom-cloud/icons/IconUiLoading";
19
- import { createPortal as Ie } from "react-dom";
20
- import se from "../NotificationBase.js";
21
- import M from "@unicom-cloud/utils/class-name";
22
- import { render as oe } from "../utils/reactDOM.js";
23
- import we from "@unicom-cloud/icons/IconUiEmpty";
24
- import Re from "../locale/zh-CN.js";
25
- import Te from "../utils/omit.js";
26
- import Me from "lodash/isString";
27
- function Le(d, m) {
28
- const {
29
- getPrefixCls: e,
30
- locale: t,
31
- componentConfig: s
32
- } = z(R), p = ee(
33
- d,
34
- {},
35
- s == null ? void 0 : s.Empty
36
- ), { style: l, className: o, description: u, icon: n, imgSrc: r, ...a } = p, h = e("empty"), g = M(h, o), C = t.Empty.noData, i = typeof u == "string" ? u : "empty";
37
- return /* @__PURE__ */ c("div", { ref: m, className: g, style: l, ...a, children: /* @__PURE__ */ k("div", { className: `${h}-wrapper`, children: [
38
- /* @__PURE__ */ c("div", { className: `${h}-image`, children: r ? /* @__PURE__ */ c("img", { alt: i, src: r }) : n || /* @__PURE__ */ c(we, {}) }),
39
- /* @__PURE__ */ c("div", { className: `${h}-description`, children: u || C })
40
- ] }) });
41
- }
42
- const ne = Z(Le);
43
- ne.displayName = "Empty";
44
- const qe = D.memo(ne);
45
- function Oe(d) {
46
- switch (d) {
47
- default:
48
- return /* @__PURE__ */ c(qe, {});
49
- }
50
- }
51
- const ie = {
52
- locale: Re,
53
- prefixCls: "pqb",
54
- getPopupContainer: () => document.body,
55
- size: "default",
56
- renderEmpty: Oe
57
- }, R = ge({
58
- getPrefixCls: (d, m) => `${m || "pqb"}-${d}`,
59
- ...ie
60
- });
61
- function ke(d, m) {
62
- const {
63
- children: e,
64
- className: t,
65
- disabled: s,
66
- prefix: p,
67
- size: l = "default",
68
- ...o
69
- } = d, { getPrefixCls: u } = z(R), n = u("icon-hover"), r = G();
70
- return _(m, () => ({
71
- getRootDOMNode: () => r.current
72
- })), /* @__PURE__ */ c(
73
- "span",
74
- {
75
- ref: r,
76
- className: M(
77
- n,
78
- {
79
- [`${p}-icon-hover`]: p,
80
- [`${n}-size-${l}`]: l && l !== "default",
81
- [`${n}-disabled`]: s
82
- },
83
- t
84
- ),
85
- onClick: d.onClick,
86
- ...o,
87
- children: e
88
- }
89
- );
90
- }
91
- const W = D.forwardRef(ke);
92
- class U extends xe {
93
- constructor(e) {
94
- super(e);
95
- f(this, "context");
96
- f(this, "wrapper");
97
- f(this, "timer");
98
- f(this, "rootDOMRef");
99
- f(this, "getRootDOMNode", () => this.rootDOMRef.current);
100
- f(this, "startTimer", () => {
101
- const { duration: e, onClose: t, id: s } = this.props;
102
- e !== 0 && (this.timer = window.setTimeout(() => {
103
- t == null || t(s), this.removeTimer();
104
- }, e));
105
- });
106
- f(this, "removeTimer", () => {
107
- this.timer && (window.clearTimeout(this.timer), this.timer = null);
108
- });
109
- f(this, "onClose", () => {
110
- var e, t;
111
- (t = (e = this.props).onClose) == null || t.call(e, this.props.id);
112
- });
113
- f(this, "renderIcon", () => {
114
- const { showIcon: e, icon: t, type: s, prefixCls: p, iconPrefix: l } = this.props;
115
- let o;
116
- if (t)
117
- o = t;
118
- else if (e) {
119
- switch (s) {
120
- case "info":
121
- o = /* @__PURE__ */ c(Ee, {});
122
- break;
123
- case "success":
124
- o = /* @__PURE__ */ c(ye, {});
125
- break;
126
- case "error":
127
- o = /* @__PURE__ */ c($e, {});
128
- break;
129
- case "warning":
130
- o = /* @__PURE__ */ c(Ne, {});
131
- break;
132
- case "loading":
133
- o = /* @__PURE__ */ c(Pe, {});
134
- break;
135
- }
136
- o = /* @__PURE__ */ c(
137
- S.Provider,
138
- {
139
- value: l ? { prefixCls: l } : {},
140
- children: o
141
- }
142
- );
143
- }
144
- return /* @__PURE__ */ c("span", { className: `${p}-icon`, children: o });
145
- });
146
- f(this, "onMouseEnter", () => {
147
- this.removeTimer();
148
- });
149
- f(this, "onMouseLeave", () => {
150
- this.removeTimer(), this.startTimer();
151
- });
152
- this.rootDOMRef = ve();
153
- }
154
- componentDidMount() {
155
- this.startTimer();
156
- }
157
- componentDidUpdate(e) {
158
- (e.duration !== this.props.duration || this.props.update) && (this.removeTimer(), this.startTimer());
159
- }
160
- componentWillUnmount() {
161
- this.removeTimer();
162
- }
163
- render() {
164
- const {
165
- title: e,
166
- content: t,
167
- showIcon: s,
168
- className: p,
169
- style: l,
170
- type: o,
171
- btn: u,
172
- icon: n,
173
- prefixCls: r,
174
- closable: a,
175
- noticeType: h,
176
- iconPrefix: g,
177
- rtl: C,
178
- closeIcon: i,
179
- classPrefixCls: x
180
- } = this.props, v = M(
181
- r,
182
- `${r}-${o}`,
183
- {
184
- [`${r}-closable`]: a,
185
- [`${r}-rtl`]: C
186
- },
187
- p
188
- );
189
- let y = "closable" in this.props ? a : !0, b = s;
190
- o === "normal" && !n && (b = !1);
191
- const L = { ...this.context };
192
- if (x && (L.prefixCls = x), h === "message")
193
- return y = a, /* @__PURE__ */ c(j, { ...L, children: /* @__PURE__ */ c(
194
- "div",
195
- {
196
- style: { textAlign: "center" },
197
- onMouseEnter: this.onMouseEnter,
198
- onMouseLeave: this.onMouseLeave,
199
- ref: this.rootDOMRef,
200
- children: /* @__PURE__ */ k("div", { className: v, style: l, role: "alert", children: [
201
- b && this.renderIcon(),
202
- /* @__PURE__ */ c("span", { className: `${r}-content`, children: t }),
203
- y && (i !== void 0 ? /* @__PURE__ */ c(
204
- "span",
205
- {
206
- onClick: this.onClose,
207
- className: `${r}-close-btn`,
208
- children: i
209
- }
210
- ) : /* @__PURE__ */ c(
211
- W,
212
- {
213
- prefix: r,
214
- className: `${r}-close-btn`,
215
- onClick: this.onClose,
216
- children: /* @__PURE__ */ c(B, {})
217
- }
218
- ))
219
- ] })
220
- }
221
- ) });
222
- if (h === "notification")
223
- return /* @__PURE__ */ c(j, { ...L, children: /* @__PURE__ */ c(
224
- "div",
225
- {
226
- ref: this.rootDOMRef,
227
- onMouseEnter: this.onMouseEnter,
228
- onMouseLeave: this.onMouseLeave,
229
- children: /* @__PURE__ */ k("div", { className: v, style: l, role: "alert", children: [
230
- b && /* @__PURE__ */ c("div", { className: `${r}-left`, children: this.renderIcon() }),
231
- /* @__PURE__ */ k("div", { className: `${r}-right`, children: [
232
- e && /* @__PURE__ */ c("div", { className: `${r}-title`, children: e }),
233
- /* @__PURE__ */ c("div", { className: `${r}-content`, children: t }),
234
- u && /* @__PURE__ */ c("div", { className: `${r}-btn-wrapper`, children: u })
235
- ] }),
236
- y && (i !== void 0 ? /* @__PURE__ */ c(
237
- "span",
238
- {
239
- onClick: this.onClose,
240
- className: `${r}-close-btn`,
241
- children: i
242
- }
243
- ) : /* @__PURE__ */ c(
244
- W,
245
- {
246
- prefix: r,
247
- className: `${r}-close-btn`,
248
- onClick: this.onClose,
249
- children: /* @__PURE__ */ c(
250
- S.Provider,
251
- {
252
- value: g ? { prefixCls: g } : {},
253
- children: /* @__PURE__ */ c(B, {})
254
- }
255
- )
256
- }
257
- ))
258
- ] })
259
- }
260
- ) });
261
- }
262
- }
263
- f(U, "defaultProps", {
264
- type: "info",
265
- showIcon: !0,
266
- noticeType: "message",
267
- duration: 3e3
268
- }), f(U, "contextType", R);
269
- function le(d, m) {
270
- const e = z(R), [t, s] = be([]);
271
- function p(u) {
272
- s((n) => [...n, u]);
273
- }
274
- function l(u) {
275
- s(
276
- (n) => n.filter((r) => u !== r)
277
- );
278
- }
279
- function o() {
280
- return e;
281
- }
282
- return _(m, () => ({
283
- addInstance: p,
284
- removeInstance: l,
285
- getContextConfig: o
286
- })), D.Children.map(
287
- t,
288
- (u, n) => D.cloneElement(u, { key: n })
289
- );
290
- }
291
- le.displayName = "ContextHolderElement";
292
- const ce = Z(le);
293
- function De(d = {}) {
294
- const { maxCount: m, duration: e = 3e3, prefixCls: t } = d, s = G(), p = /* @__PURE__ */ c(ce, { ref: s }), l = {};
295
- let o;
296
- function u(r) {
297
- let a, h;
298
- if (s.current) {
299
- const b = s.current.getContextConfig();
300
- h = b.rtl, a = b.prefixCls;
301
- }
302
- const g = t || a, C = {
303
- position: "top",
304
- duration: e,
305
- ...r
306
- }, { position: i, transitionClassNames: x } = C;
307
- let v;
308
- if (l[i]) {
309
- const b = l[i].state.notices;
310
- b.length >= m ? (v = b[0].id, b.shift(), l[i].add({ ...C, id: v })) : v = l[i].add(C);
311
- } else
312
- o = /* @__PURE__ */ c(
313
- $,
314
- {
315
- transitionClassNames: x,
316
- ref: (b) => {
317
- l[i] = b, l[i] && (v = l[i].add(C));
318
- },
319
- prefixCls: g,
320
- rtl: h
321
- }
322
- ), s.current.addInstance(o);
323
- return () => {
324
- l[i] && l[i].remove(v);
325
- };
326
- }
327
- const n = {};
328
- return ["info", "success", "warning", "error", "normal"].forEach((r) => {
329
- n[r] = (a) => {
330
- const h = Me(a) ? { content: a } : a;
331
- return u({
332
- ...h,
333
- type: r
334
- });
335
- };
336
- }), [n, p];
337
- }
338
- const Ue = [
339
- "info",
340
- "success",
341
- "error",
342
- "warning",
343
- "loading",
344
- "normal"
345
- ];
346
- let P = {}, ae, J, de, A, K, Q;
347
- function fe(d) {
348
- const m = {
349
- position: "top",
350
- duration: de,
351
- ...d
352
- }, { position: e, transitionClassNames: t, transitionTimeout: s } = m;
353
- let p;
354
- const { instance: l, pending: o } = P[e] || {};
355
- if (l || o) {
356
- const n = () => {
357
- const { instance: r } = P[e] || {}, a = r.state.notices, h = a.find((C) => C.id === d.id), g = {
358
- ...m,
359
- update: h
360
- };
361
- a.length >= ae ? h ? r.add({
362
- ...g,
363
- id: h.id
364
- }) : (a.shift(), r.add(g)) : p = r.add(g);
365
- };
366
- l ? n() : o != null && o.then && o.then(() => {
367
- n(), P[e].pending = null;
368
- });
369
- } else {
370
- const n = document.createElement("div");
371
- (A || document.body).appendChild(n), P[e] = {}, P[e].pending = new Promise((r) => {
372
- oe(
373
- /* @__PURE__ */ c(
374
- $,
375
- {
376
- transitionClassNames: t,
377
- transitionTimeout: s,
378
- ref: (a) => {
379
- P[e] || (P[e] = {}), P[e].instance = a, p = a.add(m), r(null);
380
- }
381
- }
382
- ),
383
- n
384
- );
385
- });
386
- }
387
- return () => {
388
- var n, r;
389
- (r = (n = P[e]) == null ? void 0 : n.instance) == null || r.remove(p);
390
- };
391
- }
392
- class $ extends se {
393
- constructor() {
394
- super(...arguments);
395
- f(this, "remove", (e) => {
396
- const t = this.state.notices.find((s) => s.id === e);
397
- t && this.update({
398
- ...t,
399
- style: { ...t.style, opacity: 0 }
400
- }), setTimeout(() => {
401
- super.remove(e);
402
- }, 100);
403
- });
404
- }
405
- render() {
406
- const {
407
- transitionClassNames: e,
408
- transitionTimeout: t,
409
- prefixCls: s,
410
- rtl: p,
411
- closable: l
412
- } = this.props, { notices: o, position: u } = this.state, n = s || J, r = I(p) ? K : p, a = I(l) ? Q : l, h = n ? `${n}-message` : "pqb-message", g = {
413
- enter: T(t == null ? void 0 : t.enter) ? t == null ? void 0 : t.enter : 100,
414
- exit: T(t == null ? void 0 : t.exit) ? t == null ? void 0 : t.exit : 300
415
- }, C = M(
416
- `${h}-wrapper`,
417
- `${h}-wrapper-${u}`
418
- );
419
- return /* @__PURE__ */ c("div", { className: C, children: /* @__PURE__ */ c(te, { component: null, children: o.map((i) => /* @__PURE__ */ c(
420
- re,
421
- {
422
- timeout: g,
423
- classNames: e || "fadeMessage",
424
- onExit: (x) => {
425
- x && (x.style.height = `${x.scrollHeight}px`);
426
- },
427
- onExiting: (x) => {
428
- x && (x.style.height = 0);
429
- },
430
- onExited: (x) => {
431
- var v;
432
- x && (x.style.height = 0, (v = i.onClose) == null || v.call(i));
433
- },
434
- children: /* @__PURE__ */ c(
435
- U,
436
- {
437
- ...i,
438
- prefixCls: h,
439
- classPrefixCls: n,
440
- iconPrefix: n,
441
- onClose: this.remove,
442
- noticeType: "message",
443
- rtl: r,
444
- ...I(a) ? {} : { closable: a }
445
- }
446
- )
447
- },
448
- i.id
449
- )) }) });
450
- }
451
- }
452
- f($, "useMessage"), f($, "success"), f($, "info"), f($, "warning"), f($, "error"), f($, "loading"), f($, "normal"), f($, "config", (e = {}) => {
453
- var t;
454
- T(e.maxCount) && (ae = e.maxCount), e.prefixCls && (J = e.prefixCls), T(e.duration) && (de = e.duration), typeof e.rtl == "boolean" && (K = e.rtl), typeof e.closable == "boolean" && (Q = e.closable), ((t = e.getContainer) == null ? void 0 : t.call(e)) !== A && (A = e.getContainer(), Object.values(P).forEach(
455
- ({ instance: s }) => s == null ? void 0 : s.clear()
456
- ), P = {});
457
- }), f($, "clear", () => {
458
- Object.values(P).forEach(({ instance: e }) => {
459
- e == null || e.clear();
460
- });
461
- }), f($, "addInstance", fe);
462
- Ue.forEach((d) => {
463
- $[d] = (m) => fe({
464
- ...typeof m == "string" ? { content: m } : m,
465
- type: d
466
- });
467
- });
468
- $.useMessage = De;
469
- let me = {};
470
- function je(d) {
471
- me = {
472
- ...d
473
- };
474
- }
475
- function pt() {
476
- return me;
477
- }
478
- let F = {
479
- simple: !0
480
- };
481
- const ut = (d) => {
482
- F = {
483
- ...F,
484
- ...d
485
- };
486
- }, ht = () => F, Ct = [], gt = [];
487
- function He(d = {}) {
488
- const {
489
- maxCount: m,
490
- duration: e = 3e3,
491
- prefixCls: t,
492
- getContainer: s
493
- } = d, p = G(), l = /* @__PURE__ */ c(ce, { ref: p }), o = {};
494
- let u;
495
- function n(a) {
496
- let h, g;
497
- if (p.current) {
498
- const y = p.current.getContextConfig();
499
- g = y.rtl, h = y.prefixCls;
500
- }
501
- const C = t || h;
502
- let i = a.position;
503
- I(a.position) && (i = g ? "topLeft" : "topRight");
504
- const x = {
505
- duration: e,
506
- ...a
507
- };
508
- let v;
509
- if (o[i]) {
510
- const y = o[i].state.notices;
511
- y.length >= m ? (v = y[0].id, y.shift(), o[i].add({ ...x, id: v })) : v = o[i].add(x);
512
- } else
513
- u = /* @__PURE__ */ c(
514
- w,
515
- {
516
- ref: (y) => {
517
- o[i] = y, o[i] && (v = o[i].add(x));
518
- },
519
- prefixCls: C,
520
- rtl: g,
521
- getContainer: s
522
- }
523
- ), p.current.addInstance(u);
524
- return o[i];
525
- }
526
- const r = {};
527
- return ["info", "success", "warning", "error", "normal"].forEach((a) => {
528
- r[a] = (h) => n({
529
- ...h,
530
- type: a
531
- });
532
- }), [r, l];
533
- }
534
- const Se = ["info", "success", "error", "warning", "normal"];
535
- let N = {}, V, X, Y, H, O;
536
- const E = class E extends se {
537
- constructor() {
538
- super(...arguments);
539
- f(this, "remove", (e) => {
540
- const t = this.state.notices.find((s) => s.id === e);
541
- t && this.update({
542
- ...t,
543
- style: { ...t.style, opacity: 0 }
544
- }), setTimeout(() => {
545
- super.remove(e);
546
- }, 200);
547
- });
548
- }
549
- render() {
550
- const { notices: e } = this.state, { prefixCls: t, rtl: s, getContainer: p } = this.props;
551
- let l = this.state.position;
552
- const o = I(s) ? O : s;
553
- I(l) && (l = o ? "topLeft" : "topRight");
554
- const u = t || X, n = u ? `${u}-notification` : "pqb-notification";
555
- let r;
556
- l === "topLeft" || l === "bottomLeft" ? r = "slideNoticeLeft" : r = "slideNoticeRight";
557
- const a = M(
558
- `${n}-wrapper`,
559
- `${n}-wrapper-${l}`,
560
- { [`${n}-wrapper-rtl`]: O }
561
- ), h = p == null ? void 0 : p(), g = /* @__PURE__ */ c("div", { className: a, children: /* @__PURE__ */ c(te, { component: null, children: e.map((C) => /* @__PURE__ */ c(
562
- re,
563
- {
564
- timeout: {
565
- enter: 400,
566
- exit: 300
567
- },
568
- classNames: r,
569
- onExit: (i) => {
570
- i && (i.style.height = `${i.scrollHeight}px`);
571
- },
572
- onExiting: (i) => {
573
- i && (i.style.height = 0);
574
- },
575
- onExited: (i) => {
576
- var x;
577
- i && (i.style.height = 0, (x = C.onClose) == null || x.call(C));
578
- },
579
- children: /* @__PURE__ */ c(
580
- U,
581
- {
582
- ...C,
583
- onClose: this.remove,
584
- prefixCls: n,
585
- iconPrefix: u,
586
- classPrefixCls: u,
587
- noticeType: "notification",
588
- rtl: o
589
- }
590
- )
591
- },
592
- C.id
593
- )) }) });
594
- return h ? Ie(g, h) : g;
595
- }
596
- };
597
- f(E, "useNotification"), f(E, "success"), f(E, "info"), f(E, "warning"), f(E, "error"), f(E, "normal"), f(E, "config", (e = {}) => {
598
- var t;
599
- T(e.maxCount) && (V = e.maxCount), e.prefixCls && (X = e.prefixCls), T(e.duration) && (Y = e.duration), typeof e.rtl == "boolean" && (O = e.rtl), e.getContainer && ((t = e.getContainer) == null ? void 0 : t.call(e)) !== H && (H = e.getContainer(), Object.values(N).forEach(
600
- ({ instance: s }) => s == null ? void 0 : s.clear()
601
- ), N = {});
602
- }), f(E, "clear", () => {
603
- Object.values(N).forEach(({ instance: e }) => {
604
- e == null || e.clear();
605
- });
606
- }), f(E, "remove", (e) => {
607
- Object.values(N).forEach(({ instance: t }) => {
608
- t == null || t.remove(e);
609
- });
610
- }), f(E, "addInstance", (e) => {
611
- let t = e.position;
612
- I(e.position) && (t = O ? "topLeft" : "topRight");
613
- const s = {
614
- duration: Y,
615
- ...e
616
- }, { instance: p, pending: l } = N[t] || {};
617
- if (p || l) {
618
- const u = () => {
619
- const { instance: n } = N[t] || {}, r = n.state.notices, a = r.find((g) => g.id === e.id), h = {
620
- ...s,
621
- update: a
622
- };
623
- return r.length >= V ? a ? n.add({
624
- ...h,
625
- id: a.id
626
- }) : (r.shift(), n.add(h)) : n.add({ ...h }), n;
627
- };
628
- return p ? u() : l != null && l.then && l.then(() => {
629
- u(), N[t].pending = null;
630
- }), p;
631
- }
632
- const o = document.createElement("div");
633
- return (H || document.body).appendChild(o), N[t] = {}, N[t].pending = new Promise((u) => {
634
- oe(
635
- /* @__PURE__ */ c(
636
- E,
637
- {
638
- ref: (n) => (N[t] || (N[t] = {}), N[t].instance = n, n.add(s), u(null), n)
639
- }
640
- ),
641
- o
642
- );
643
- }), N[t].instance;
644
- });
645
- let w = E;
646
- Se.forEach((d) => {
647
- w[d] = (m) => w.addInstance({
648
- ...m,
649
- type: d
650
- });
651
- });
652
- w.useNotification = He;
653
- const Ae = {
654
- primaryColor: {
655
- default: "--pqbblue-6",
656
- hover: "--pqbblue-5",
657
- active: "--pqbblue-7"
658
- },
659
- successColor: {
660
- default: "--green-6",
661
- hover: "--green-5",
662
- active: "--green-7"
663
- },
664
- infoColor: {
665
- default: "--pqbblue-6",
666
- hover: "--pqbblue-5",
667
- active: "--pqbblue-7"
668
- },
669
- warningColor: {
670
- default: "--orangered-6",
671
- hover: "--orangered-5",
672
- active: "--orangered-7"
673
- },
674
- dangerColor: {
675
- default: "--red-6",
676
- hover: "--red-5",
677
- active: "--red-7"
678
- }
679
- }, Fe = ie, ze = {};
680
- function j(d) {
681
- const m = ee(
682
- d,
683
- Fe,
684
- ze
685
- ), {
686
- theme: e,
687
- themeType: t,
688
- prefixCls: s,
689
- children: p,
690
- locale: l,
691
- rtl: o,
692
- effectGlobalNotice: u = !0,
693
- effectGlobalModal: n = !0
694
- } = m, r = window.document.body;
695
- q(() => {
696
- Ce(e) && Object.entries(Ae).forEach(([C, i], x, v) => {
697
- let y = e == null ? void 0 : e[C];
698
- if (y) {
699
- let b = new he(y);
700
- r.style.setProperty(i.default, b.lighten(0).toRgbArrayString()), e != null && e[`${C}Hover`] || r.style.setProperty(i.hover, b.lighten(10).toRgbArrayString()), e != null && e[`${C}Active`] || r.style.setProperty(i.active, b.lighten(-10).toRgbArrayString());
701
- }
702
- });
703
- }, [e]), q(() => {
704
- t && (t === "dark" ? r.setAttribute("pqb-theme", "dark") : r.removeAttribute("pqb-theme"));
705
- }, [t]), q(() => {
706
- u && ($.config({ prefixCls: s, rtl: o }), w.config({ prefixCls: s, rtl: o }));
707
- }, [s, o, u]);
708
- function a(C, i) {
709
- return `${i || s}-${C}`;
710
- }
711
- const h = {
712
- ...Te(m, ["children"]),
713
- getPrefixCls: a
714
- };
715
- q(() => {
716
- n && je({ locale: l, prefixCls: s, rtl: o });
717
- }, [l, s, o, n]);
718
- let g = p;
719
- return s && s !== "pqb" && (g = /* @__PURE__ */ c(S.Provider, { value: { prefixCls: s }, children: p })), /* @__PURE__ */ c(R.Provider, { value: h, children: g });
720
- }
721
- j.ConfigContext = R;
722
- j.displayName = "ConfigProvider";
723
- const xt = R.Consumer;
724
- export {
725
- xt as C,
726
- qe as E,
727
- W as I,
728
- $ as M,
729
- w as N,
730
- R as a,
731
- j as b,
732
- Ae as c,
733
- Ct as d,
734
- ht as e,
735
- ce as f,
736
- pt as g,
737
- gt as h,
738
- U as i,
739
- ut as s
740
- };