@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
@@ -0,0 +1,284 @@
1
+ import { jsxs as it, jsx as M } from "react/jsx-runtime";
2
+ import { y as vt, t as At } from "./CiZVOdJ3.js";
3
+ import ot from "lodash/isFunction";
4
+ import q from "lodash/isNumber";
5
+ import $t from "lodash/throttle";
6
+ import Rt, { createContext as Tt, forwardRef as ct, useContext as _, useRef as N, useImperativeHandle as st, useEffect as O, isValidElement as Pt, useState as bt, useCallback as D } from "react";
7
+ import Et from "../Affix.js";
8
+ import { b as lt } from "./DUxWiN2U.js";
9
+ import Mt from "../hooks/useIsFirstRender.js";
10
+ import at from "../hooks/useMergeProps.js";
11
+ import Ot from "../hooks/useStateWithPromise.js";
12
+ import { y as ut } from "./Do1aMgY3.js";
13
+ import { on as It, off as Ft } from "../utils/dom.js";
14
+ import { isWindow as ft } from "../utils/is.js";
15
+ import Ht from "lodash/isNull";
16
+ import Dt from "lodash/isPlainObject";
17
+ import G from "lodash/isString";
18
+ import Ut from "lodash/isUndefined";
19
+ import { I as jt, q as zt } from "./CkAOsst1.js";
20
+ const mt = Tt({
21
+ direction: "vertical",
22
+ currentLink: "",
23
+ onLinkClick: () => {
24
+ },
25
+ addLink: () => {
26
+ },
27
+ removeLink: () => {
28
+ }
29
+ }), dt = "AnchorLink", Bt = {
30
+ href: "#"
31
+ };
32
+ function Vt(e) {
33
+ return Dt(e) && Object.prototype.hasOwnProperty.call(e, "displayName");
34
+ }
35
+ function Yt(e, r) {
36
+ const { getPrefixCls: c, componentConfig: s } = _(lt), { className: y, style: j, href: l, title: m, children: u, ...z } = at(
37
+ e,
38
+ Bt,
39
+ s == null ? void 0 : s["Anchor.Link"]
40
+ ), C = _(mt), { currentLink: B, addLink: L, removeLink: S, onLinkClick: v, direction: I } = C, o = c("anchor-link"), A = ut(
41
+ o,
42
+ {
43
+ [`${o}-active`]: B === l
44
+ },
45
+ y
46
+ ), $ = N(null);
47
+ return st(r, () => $.current, []), O(() => (L == null || L(l, $.current), () => {
48
+ S == null || S(l);
49
+ }), [l]), /* @__PURE__ */ it("div", { className: A, style: j, ref: $, ...z, children: [
50
+ !Ut(m) && !Ht(m) && /* @__PURE__ */ M(
51
+ "a",
52
+ {
53
+ className: `${o}-title`,
54
+ title: G(m) ? m : "",
55
+ href: l,
56
+ "data-href": l,
57
+ onClick: (i) => {
58
+ v == null || v(i, l);
59
+ },
60
+ children: m
61
+ }
62
+ ),
63
+ u && I !== "horizontal" && Rt.Children.map(u, (i) => Pt(i) && Vt(i.type) && i.type.displayName === dt && i)
64
+ ] });
65
+ }
66
+ const pt = ct(Yt);
67
+ pt.displayName = dt;
68
+ function U(e, r) {
69
+ const c = G(r) && r[0] === "#" ? `[id='${r.replace("#", "")}']` : r;
70
+ try {
71
+ return e.querySelector(c);
72
+ } catch (s) {
73
+ return console.error(s), null;
74
+ }
75
+ }
76
+ function Wt(e, r, c) {
77
+ new jt({
78
+ from: {
79
+ scrollTop: e.scrollTop
80
+ },
81
+ to: {
82
+ scrollTop: r
83
+ },
84
+ easing: zt,
85
+ duration: 300,
86
+ onUpdate: (y) => {
87
+ e.scrollTop = y.scrollTop;
88
+ },
89
+ onFinish: () => {
90
+ c == null || c();
91
+ }
92
+ }).start();
93
+ }
94
+ function qt(e) {
95
+ return G(e) ? U(document, e) : e || window;
96
+ }
97
+ function _t(e) {
98
+ return ft(e) ? document.documentElement || document.body : e;
99
+ }
100
+ function ht(e) {
101
+ if (e == null)
102
+ return null;
103
+ if (e.tagName === "BODY")
104
+ return e.ownerDocument.documentElement;
105
+ const r = window.getComputedStyle(e).overflowY;
106
+ return r !== "visible" && r !== "hidden" && e.scrollHeight > e.clientHeight ? e : ht(e.parentElement);
107
+ }
108
+ const Gt = {
109
+ animation: !0,
110
+ affix: !0,
111
+ hash: !0,
112
+ boundary: "start"
113
+ };
114
+ function Jt(e, r) {
115
+ const { getPrefixCls: c, componentConfig: s, rtl: y } = _(lt), j = at(
116
+ e,
117
+ Gt,
118
+ s == null ? void 0 : s.Anchor
119
+ ), {
120
+ className: l,
121
+ style: m,
122
+ scrollContainer: u,
123
+ animation: z = !0,
124
+ lineless: C,
125
+ affix: B = !0,
126
+ affixStyle: L,
127
+ offsetBottom: S,
128
+ offsetTop: v,
129
+ hash: I = !0,
130
+ boundary: o = "start",
131
+ targetOffset: A,
132
+ children: $,
133
+ direction: i = "vertical",
134
+ onSelect: J,
135
+ onChange: V,
136
+ ...yt
137
+ } = j, k = c("anchor"), Ct = ut(k, l, {
138
+ [`${k}-lineless`]: C,
139
+ [`${k}-rtl`]: y,
140
+ [`${k}-horizontal`]: i === "horizontal"
141
+ }), d = N(null), R = N(null), w = N(/* @__PURE__ */ new Map()), Y = N(!1), T = N(null), [kt, K] = bt(0), [f, wt] = Ot(""), xt = Mt();
142
+ function Q() {
143
+ let t = qt(u);
144
+ return u || (t = ht(d.current)), t;
145
+ }
146
+ O(() => {
147
+ const t = Q();
148
+ T.current = t;
149
+ }, [u]);
150
+ const Nt = D(() => Q(), [u]);
151
+ st(
152
+ r,
153
+ () => ({
154
+ dom: d.current,
155
+ getRootDOMNode: () => d.current
156
+ }),
157
+ []
158
+ );
159
+ function X(t, n) {
160
+ t && (w.current.set(t, n), K(Math.random()));
161
+ }
162
+ function Lt(t) {
163
+ w.current.delete(t), K(Math.random());
164
+ }
165
+ const F = D(
166
+ (t) => {
167
+ if (!t || !d.current) return;
168
+ if (!w.current.has(t)) {
169
+ const p = U(d.current, `a[data-href='${t}']`);
170
+ p && X(t, p);
171
+ }
172
+ const n = w.current.get(t);
173
+ n && t !== f && (vt(n, {
174
+ behavior: "instant",
175
+ block: "nearest",
176
+ scrollMode: "if-needed",
177
+ boundary: d.current
178
+ }), wt(t).then(() => {
179
+ ot(V) && V(t, f);
180
+ }));
181
+ },
182
+ [f, V]
183
+ ), Z = D(() => {
184
+ let t;
185
+ const n = q(o) ? o : 0, p = T.current, b = _t(p).getBoundingClientRect(), H = document.documentElement.clientHeight;
186
+ return [...w.current.keys()].some((W) => {
187
+ const h = U(document, W);
188
+ let x = !1;
189
+ if (h) {
190
+ const { top: a, height: E } = h.getBoundingClientRect();
191
+ if (ft(p)) {
192
+ const g = A ?? H / 2;
193
+ x = a >= n && a <= g || a <= n && a + E >= g;
194
+ } else {
195
+ const g = a - b.top - n, rt = A ?? b.height / 2;
196
+ x = g >= 0 && g <= rt || g <= 0 && g + E >= rt;
197
+ }
198
+ x && (t = h);
199
+ }
200
+ return x;
201
+ }), t;
202
+ }, [o, A]), P = D(
203
+ $t(
204
+ () => {
205
+ if (Y.current) return;
206
+ const t = Z();
207
+ if (t && t.id) {
208
+ const n = `#${t.id}`;
209
+ F(n);
210
+ }
211
+ },
212
+ 30,
213
+ { trailing: !0 }
214
+ ),
215
+ [Z, F]
216
+ );
217
+ function tt(t) {
218
+ if (t)
219
+ try {
220
+ const n = U(document, t);
221
+ if (!n) return;
222
+ const p = q(o) ? "start" : o, nt = q(o) ? o : 0, b = At(n, { block: p });
223
+ if (!b.length) return;
224
+ let H = !1;
225
+ const W = b.map(({ el: h, top: x }) => new Promise((a) => {
226
+ if (!H) {
227
+ h === T.current && (H = !0);
228
+ const E = x - nt;
229
+ return z ? Wt(h, E, a) : (I || (h.scrollTop = E), a(null));
230
+ }
231
+ a(null);
232
+ }));
233
+ Y.current = !0, Promise.all(W).then(() => {
234
+ Y.current = !1;
235
+ });
236
+ } catch (n) {
237
+ console.error(n);
238
+ }
239
+ }
240
+ function St(t, n) {
241
+ I || t.preventDefault(), F(n), tt(n), ot(J) && J(n, f);
242
+ }
243
+ O(() => {
244
+ const t = decodeURIComponent(location.hash);
245
+ t ? (F(t), tt(t)) : P();
246
+ }, []), O(() => (xt || P(), It(T.current, "scroll", P), () => {
247
+ Ft(T.current, "scroll", P);
248
+ }), [u, P]), O(() => {
249
+ const t = w.current.get(f);
250
+ t && !C && R.current && (i === "horizontal" ? (R.current.style.left = `${t.offsetLeft}px`, R.current.style.width = `${t.clientWidth}px`) : R.current.style.top = `${t.offsetTop}px`);
251
+ }, [f, C, i, y, kt]);
252
+ const et = /* @__PURE__ */ it("div", { className: Ct, style: m, ref: d, ...yt, children: [
253
+ !C && f && /* @__PURE__ */ M("div", { className: `${k}-line-slider`, ref: R }),
254
+ /* @__PURE__ */ M(
255
+ mt.Provider,
256
+ {
257
+ value: {
258
+ direction: i,
259
+ currentLink: f,
260
+ addLink: X,
261
+ removeLink: Lt,
262
+ onLinkClick: St
263
+ },
264
+ children: /* @__PURE__ */ M("div", { className: `${k}-list`, children: $ })
265
+ }
266
+ )
267
+ ] });
268
+ return B ? /* @__PURE__ */ M(
269
+ Et,
270
+ {
271
+ offsetTop: v,
272
+ offsetBottom: S,
273
+ style: L,
274
+ target: Nt,
275
+ children: et
276
+ }
277
+ ) : et;
278
+ }
279
+ const Kt = ct(Jt), gt = Kt;
280
+ gt.displayName = "Anchor";
281
+ gt.Link = pt;
282
+ export {
283
+ gt as A
284
+ };
@@ -0,0 +1,23 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { u as c } from "./B45v5S9k.js";
4
+ const p = i.forwardRef(function(e, r) {
5
+ const t = c({ ...e, name: "ui-check" });
6
+ return /* @__PURE__ */ o(
7
+ "svg",
8
+ {
9
+ width: "1em",
10
+ height: "1em",
11
+ viewBox: "0 0 48 48",
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ ref: r,
15
+ ...t,
16
+ strokeWidth: "4",
17
+ children: /* @__PURE__ */ o("path", { d: "M41.678 11.05 19.05 33.678 6.322 20.95", strokeLinecap: "butt" })
18
+ }
19
+ );
20
+ });
21
+ export {
22
+ p as I
23
+ };
@@ -0,0 +1,40 @@
1
+ import a from "lodash/isString";
2
+ function o() {
3
+ return new DOMException("The request is not allowed", "NotAllowedError");
4
+ }
5
+ async function i(t) {
6
+ if (!navigator.clipboard)
7
+ throw o();
8
+ return navigator.clipboard.writeText(t);
9
+ }
10
+ async function l(t) {
11
+ const e = document.createElement("span");
12
+ e.textContent = t, e.style.whiteSpace = "pre", e.style.webkitUserSelect = "auto", e.style.userSelect = "all", document.body.appendChild(e);
13
+ const n = window.getSelection(), c = window.document.createRange();
14
+ n.removeAllRanges(), c.selectNode(e), n.addRange(c);
15
+ let r = !1;
16
+ try {
17
+ r = window.document.execCommand("copy");
18
+ } finally {
19
+ n.removeAllRanges(), window.document.body.removeChild(e);
20
+ }
21
+ if (!r) throw o();
22
+ }
23
+ async function s(t) {
24
+ try {
25
+ a(t) || (t = JSON.stringify(t) ?? t);
26
+ } catch {
27
+ }
28
+ try {
29
+ await i(t);
30
+ } catch (e) {
31
+ try {
32
+ await l(t);
33
+ } catch (n) {
34
+ throw n || e || o();
35
+ }
36
+ }
37
+ }
38
+ export {
39
+ s
40
+ };
@@ -0,0 +1,46 @@
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { u as s } from "./B45v5S9k.js";
4
+ const f = i.forwardRef(function(t, e) {
5
+ const r = s({ ...t, name: "ui-info" });
6
+ return /* @__PURE__ */ n(
7
+ "svg",
8
+ {
9
+ width: "1em",
10
+ height: "1em",
11
+ viewBox: "0 0 48 48",
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ ref: e,
15
+ ...r,
16
+ strokeWidth: "4",
17
+ children: [
18
+ /* @__PURE__ */ o("path", { d: "M25 39h-2V18h2z", strokeLinecap: "butt" }),
19
+ /* @__PURE__ */ o(
20
+ "path",
21
+ {
22
+ fill: "currentColor",
23
+ stroke: "none",
24
+ d: "M25 39h-2V18h2z",
25
+ strokeWidth: "none",
26
+ strokeLinecap: "butt"
27
+ }
28
+ ),
29
+ /* @__PURE__ */ o("path", { d: "M25 11h-2V9h2z", strokeLinecap: "butt" }),
30
+ /* @__PURE__ */ o(
31
+ "path",
32
+ {
33
+ fill: "currentColor",
34
+ stroke: "none",
35
+ d: "M25 11h-2V9h2z",
36
+ strokeWidth: "none",
37
+ strokeLinecap: "butt"
38
+ }
39
+ )
40
+ ]
41
+ }
42
+ );
43
+ });
44
+ export {
45
+ f as I
46
+ };
@@ -1,14 +1,14 @@
1
1
  import { jsxs as g, Fragment as ue, jsx as n } from "react/jsx-runtime";
2
- import pe from "@unicom-cloud/icons/IconUiClose";
2
+ import { I as pe } from "./B45v5S9k.js";
3
3
  import fe from "lodash/isFunction";
4
4
  import he, { useContext as Ce, useRef as T, useState as d, useCallback as xe, useMemo as ye, useImperativeHandle as ke, useEffect as z } from "react";
5
5
  import F from "../Button.js";
6
- import { a as Ne, I as ge, b as B } from "./xPzFRQJn.js";
7
- import be from "../hooks/useMergeProps.js";
8
- import we from "../hooks/useOverflowHidden.js";
9
- import Ie from "../Portal.js";
10
- import { P as j } from "./DQ3uFRJD.js";
11
- import b from "@unicom-cloud/utils/class-name";
6
+ import { b as Ne, I as ge, C as B } from "./DUxWiN2U.js";
7
+ import Ie from "../hooks/useMergeProps.js";
8
+ import be from "../hooks/useOverflowHidden.js";
9
+ import we from "../Portal.js";
10
+ import { P as j } from "./BP7xX86Q.js";
11
+ import { y as I } from "./Do1aMgY3.js";
12
12
  import { isServerRendering as ve, contains as Pe } from "../utils/dom.js";
13
13
  import { Esc as $e } from "../utils/keyCode.js";
14
14
  import Ee from "../utils/omit.js";
@@ -25,7 +25,7 @@ const Se = {
25
25
  getPopupContainer: () => document.body
26
26
  };
27
27
  function De(H, M) {
28
- const m = Ce(Ne), { locale: w, getPrefixCls: Z, componentConfig: u, rtl: L } = m, o = be(
28
+ const m = Ce(Ne), { locale: b, getPrefixCls: Z, componentConfig: u, rtl: L } = m, o = Ie(
29
29
  H,
30
30
  Se,
31
31
  u == null ? void 0 : u.Drawer
@@ -50,7 +50,7 @@ function De(H, M) {
50
50
  maskClosable: ee,
51
51
  confirmLoading: ne,
52
52
  mountOnEnter: h,
53
- unmountOnExit: I,
53
+ unmountOnExit: w,
54
54
  afterOpen: C,
55
55
  afterClose: x,
56
56
  getPopupContainer: a,
@@ -62,7 +62,7 @@ function De(H, M) {
62
62
  closeIcon: $,
63
63
  ...ie
64
64
  } = o, s = T(null), E = T(null), [se, le] = d(!1), [y, ae] = d(), t = Z("drawer"), [R, k] = d(!1), [Te, S] = d(!1), D = /* @__PURE__ */ g(ue, { children: [
65
- /* @__PURE__ */ n(F, { onClick: o.onCancel, ...re, children: V || w.Drawer.cancelText }),
65
+ /* @__PURE__ */ n(F, { onClick: o.onCancel, ...re, children: V || b.Drawer.cancelText }),
66
66
  /* @__PURE__ */ n(
67
67
  F,
68
68
  {
@@ -70,14 +70,14 @@ function De(H, M) {
70
70
  loading: ne,
71
71
  onClick: o.onOk,
72
72
  ...oe,
73
- children: Q || w.Drawer.okText
73
+ children: Q || b.Drawer.okText
74
74
  }
75
75
  )
76
76
  ] }), N = xe(() => {
77
77
  const e = a == null ? void 0 : a();
78
78
  return Re(e) || document.body;
79
79
  }, [a]), ce = ye(() => !ve && N() === document.body, [se, N]);
80
- we(N, { hidden: (r || R) && f }), ke(M, () => s.current), z(() => {
80
+ be(N, { hidden: (r || R) && f }), ke(M, () => s.current), z(() => {
81
81
  r && o.getPopupContainer && le(!0);
82
82
  }, []), z(() => {
83
83
  var e, i;
@@ -106,7 +106,7 @@ function De(H, M) {
106
106
  E.current = e, de();
107
107
  },
108
108
  style: J,
109
- className: b(`${t}-content`, {
109
+ className: I(`${t}-content`, {
110
110
  [`${t}-content-nofooter`]: l === null,
111
111
  [`${t}-content-noheader`]: p === null
112
112
  }),
@@ -124,7 +124,7 @@ function De(H, M) {
124
124
  l !== null && /* @__PURE__ */ n("div", { className: `${t}-footer`, children: fe(l) ? l(D) : l || D })
125
125
  ] });
126
126
  return /* @__PURE__ */ n(
127
- Ie,
127
+ we,
128
128
  {
129
129
  forceRender: !h,
130
130
  visible: r,
@@ -138,7 +138,7 @@ function De(H, M) {
138
138
  var O;
139
139
  e.key === $e.key && te && r && ((O = o.onCancel) == null || O.call(o, e));
140
140
  },
141
- className: b(
141
+ className: I(
142
142
  `${t}-wrapper`,
143
143
  {
144
144
  [`${t}-no-mask`]: !f,
@@ -156,7 +156,7 @@ function De(H, M) {
156
156
  timeout: 300,
157
157
  classNames: "fadeInStandard",
158
158
  mountOnEnter: h,
159
- unmountOnExit: I,
159
+ unmountOnExit: w,
160
160
  children: /* @__PURE__ */ n(
161
161
  "div",
162
162
  {
@@ -183,7 +183,7 @@ function De(H, M) {
183
183
  right: "slideRight"
184
184
  }[c],
185
185
  mountOnEnter: h,
186
- unmountOnExit: I,
186
+ unmountOnExit: w,
187
187
  onEnter: (e) => {
188
188
  e && (e.parentNode.style.display = "block", k(!1));
189
189
  },
@@ -199,7 +199,7 @@ function De(H, M) {
199
199
  children: /* @__PURE__ */ n(
200
200
  "div",
201
201
  {
202
- className: b(t, q, { [`${t}-rtl`]: L }),
202
+ className: I(t, q, { [`${t}-rtl`]: L }),
203
203
  style: Object.assign(
204
204
  c === "left" || c === "right" ? { width: X } : { height: Y },
205
205
  { [c]: 0 },
@@ -0,0 +1,73 @@
1
+ import O from "lodash/isFunction";
2
+ import M from "lodash/isString";
3
+ const a = (t) => (i) => Math.pow(i, t), n = (t) => (i) => 1 - Math.abs(Math.pow(i - 1, t)), r = (t) => (i) => i < 0.5 ? a(t)(i * 2) / 2 : n(t)(i * 2 - 1) / 2 + 0.5, q = (t) => t, y = a(2), b = n(2), g = r(2), F = a(3), P = n(3), k = r(3), w = a(4), S = n(4), T = r(4), v = a(5), A = n(5), D = r(5), U = (t) => 1 + Math.sin(Math.PI / 2 * t - Math.PI / 2), x = (t) => Math.sin(Math.PI / 2 * t), B = (t) => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2, u = (t) => t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? (t -= 1.5 / 2.75, 7.5625 * t * t + 0.75) : t < 2.5 / 2.75 ? (t -= 2.25 / 2.75, 7.5625 * t * t + 0.9375) : (t -= 2.625 / 2.75, 7.5625 * t * t + 0.984375), l = (t) => 1 - u(1 - t), $ = (t) => t < 0.5 ? l(t * 2) * 0.5 : u(t * 2 - 1) * 0.5 + 0.5, d = {
4
+ linear: q,
5
+ quadIn: y,
6
+ quadOut: b,
7
+ quadInOut: g,
8
+ cubicIn: F,
9
+ cubicOut: P,
10
+ cubicInOut: k,
11
+ quartIn: w,
12
+ quartOut: S,
13
+ quartInOut: T,
14
+ quintIn: v,
15
+ quintOut: A,
16
+ quintInOut: D,
17
+ sineIn: U,
18
+ sineOut: x,
19
+ sineInOut: B,
20
+ bounceOut: u,
21
+ bounceIn: l,
22
+ bounceInOut: $
23
+ };
24
+ class C {
25
+ constructor(i) {
26
+ const {
27
+ from: h,
28
+ to: s,
29
+ duration: m,
30
+ delay: c,
31
+ easing: o,
32
+ onStart: I,
33
+ onUpdate: f,
34
+ onFinish: p
35
+ } = i;
36
+ for (let e in h)
37
+ s[e] === void 0 && (s[e] = h[e]);
38
+ for (let e in s)
39
+ h[e] === void 0 && (h[e] = s[e]);
40
+ this.from = h, this.to = s, this.duration = m || 500, this.delay = c || 0, O(o) ? this.easing = o : M(o) && (this.easing = d[o]), this.easing || (this.easing = d.linear), this.onStart = I, this.onUpdate = f || function() {
41
+ }, this.onFinish = p, this.startTime = Date.now() + this.delay, this.started = !1, this.finished = !1, this.timer = null, this.keys = {};
42
+ }
43
+ update() {
44
+ var i, h;
45
+ if (this.time = Date.now(), !(this.time < this.startTime) && !this.finished) {
46
+ if (this.elapsed === this.duration) {
47
+ this.finished || (this.finished = !0, (i = this.onFinish) == null || i.call(this, this.keys));
48
+ return;
49
+ }
50
+ this.elapsed = this.time - this.startTime, this.elapsed = this.elapsed > this.duration ? this.duration : this.elapsed;
51
+ for (let s in this.to)
52
+ this.keys[s] = this.from[s] + (this.to[s] - this.from[s]) * this.easing(this.elapsed / this.duration);
53
+ this.started || ((h = this.onStart) == null || h.call(this, this.keys), this.started = !0), this.onUpdate(this.keys);
54
+ }
55
+ }
56
+ start() {
57
+ this.startTime = Date.now() + this.delay;
58
+ const i = () => {
59
+ this.update(), this.timer = requestAnimationFrame(i), this.finished && (cancelAnimationFrame(this.timer), this.timer = null);
60
+ };
61
+ i();
62
+ }
63
+ stop() {
64
+ cancelAnimationFrame(this.timer), this.timer = null;
65
+ }
66
+ }
67
+ export {
68
+ C as I,
69
+ T as b,
70
+ D as f,
71
+ S as q,
72
+ d as x
73
+ };