@unicom-cloud/ui-common 0.1.1

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 (543) hide show
  1. package/Development.js +10 -0
  2. package/Empty.js +14 -0
  3. package/Flex.js +14 -0
  4. package/Progress.js +8 -0
  5. package/Space.js +15 -0
  6. package/SuspenseFallbackTest.js +7 -0
  7. package/TransitionGroup.js +32 -0
  8. package/development/index.js +48 -0
  9. package/empty/index.js +52 -0
  10. package/flex/index.js +78 -0
  11. package/flex/interface.js +10 -0
  12. package/higher-order/index.js +5 -0
  13. package/higher-order/with-speech-synthesis/index.js +83 -0
  14. package/higher-order/withSpeechSynthesis.js +11 -0
  15. package/hooks/create-deep-compare-effect/index.js +10 -0
  16. package/hooks/create-update-effect/index.js +15 -0
  17. package/hooks/create-use-storage-state/index.js +79 -0
  18. package/hooks/createDeepCompareEffect.js +7 -0
  19. package/hooks/createUpdateEffect.js +6 -0
  20. package/hooks/createUseStorageState.js +12 -0
  21. package/hooks/index.js +197 -0
  22. package/hooks/use-async-effect/index.js +26 -0
  23. package/hooks/use-boolean/index.js +15 -0
  24. package/hooks/use-click-away/index.js +32 -0
  25. package/hooks/use-computed-state/index.js +12 -0
  26. package/hooks/use-controllable-value/index.js +27 -0
  27. package/hooks/use-cookie-state/index.js +21 -0
  28. package/hooks/use-count-down/index.js +37 -0
  29. package/hooks/use-counter/index.js +44 -0
  30. package/hooks/use-create/index.js +9 -0
  31. package/hooks/use-creation/index.js +14 -0
  32. package/hooks/use-debounce/index.js +14 -0
  33. package/hooks/use-debounce-effect/index.js +13 -0
  34. package/hooks/use-debounce-fn/index.js +31 -0
  35. package/hooks/use-deep-compare-effect/index.js +7 -0
  36. package/hooks/use-deep-compare-layout-effect/index.js +7 -0
  37. package/hooks/use-document-visibility/index.js +20 -0
  38. package/hooks/use-drag/index.js +47 -0
  39. package/hooks/use-drop/index.js +60 -0
  40. package/hooks/use-event-listener/index.js +37 -0
  41. package/hooks/use-event-target/index.js +21 -0
  42. package/hooks/use-external/index.js +65 -0
  43. package/hooks/use-favicon/index.js +18 -0
  44. package/hooks/use-focus-within/index.js +26 -0
  45. package/hooks/use-force-update/index.js +5 -0
  46. package/hooks/use-fullscreen/index.js +75 -0
  47. package/hooks/use-get-state/index.js +10 -0
  48. package/hooks/use-history-travel/index.js +79 -0
  49. package/hooks/use-hover/index.js +26 -0
  50. package/hooks/use-id/index.js +11 -0
  51. package/hooks/use-in-view/index.js +32 -0
  52. package/hooks/use-in-viewport/index.js +34 -0
  53. package/hooks/use-infinite-scroll/index.js +83 -0
  54. package/hooks/use-intersection-observer/index.js +25 -0
  55. package/hooks/use-interval/index.js +17 -0
  56. package/hooks/use-is-first-render/index.js +10 -0
  57. package/hooks/use-isomorphic-layout-effect/index.js +7 -0
  58. package/hooks/use-key-press/index.js +169 -0
  59. package/hooks/use-keyboard-event/index.js +17 -0
  60. package/hooks/use-latest/index.js +9 -0
  61. package/hooks/use-listen-window-resize/index.js +10 -0
  62. package/hooks/use-local-storage-state/index.js +9 -0
  63. package/hooks/use-lock-fn/index.js +23 -0
  64. package/hooks/use-long-press/index.js +59 -0
  65. package/hooks/use-map/index.js +31 -0
  66. package/hooks/use-media/index.js +16 -0
  67. package/hooks/use-memoized-fn/index.js +19 -0
  68. package/hooks/use-merge-props/index.js +18 -0
  69. package/hooks/use-merge-value/index.js +21 -0
  70. package/hooks/use-mount/index.js +13 -0
  71. package/hooks/use-mouse/index.js +50 -0
  72. package/hooks/use-mutation-observer/index.js +23 -0
  73. package/hooks/use-network/index.js +57 -0
  74. package/hooks/use-online-status/index.js +21 -0
  75. package/hooks/use-overflow-hidden/index.js +27 -0
  76. package/hooks/use-override-ref/index.js +15 -0
  77. package/hooks/use-pagination/index.js +49 -0
  78. package/hooks/use-persist-callback/index.js +9 -0
  79. package/hooks/use-prefers-color-scheme-dark/index.js +25 -0
  80. package/hooks/use-previous/index.js +10 -0
  81. package/hooks/use-raf-interval/index.js +36 -0
  82. package/hooks/use-raf-state/index.js +16 -0
  83. package/hooks/use-raf-timeout/index.js +35 -0
  84. package/hooks/use-reactive/index.js +38 -0
  85. package/hooks/use-ref-latest/index.js +5 -0
  86. package/hooks/use-refs/index.js +11 -0
  87. package/hooks/use-request/index.js +7 -0
  88. package/hooks/use-request/src/Fetch.js +93 -0
  89. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +30 -0
  90. package/hooks/use-request/src/plugins/useCachePlugin.js +66 -0
  91. package/hooks/use-request/src/plugins/useDebouncePlugin.js +34 -0
  92. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +28 -0
  93. package/hooks/use-request/src/plugins/usePollingPlugin.js +37 -0
  94. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +29 -0
  95. package/hooks/use-request/src/plugins/useRetryPlugin.js +28 -0
  96. package/hooks/use-request/src/plugins/useThrottlePlugin.js +31 -0
  97. package/hooks/use-request/src/useRequest.js +26 -0
  98. package/hooks/use-request/src/useRequestImplement.js +54 -0
  99. package/hooks/use-request/src/utils/cache.js +20 -0
  100. package/hooks/use-request/src/utils/cachePromise.js +10 -0
  101. package/hooks/use-request/src/utils/cacheSubscribe.js +11 -0
  102. package/hooks/use-request/src/utils/isDocumentVisible.js +8 -0
  103. package/hooks/use-request/src/utils/isOnline.js +8 -0
  104. package/hooks/use-request/src/utils/limit.js +12 -0
  105. package/hooks/use-request/src/utils/subscribeFocus.js +19 -0
  106. package/hooks/use-request/src/utils/subscribeReVisible.js +18 -0
  107. package/hooks/use-reset-state/index.js +18 -0
  108. package/hooks/use-resize-observer/index.js +5 -0
  109. package/hooks/use-responsive/index.js +47 -0
  110. package/hooks/use-safe-state/index.js +12 -0
  111. package/hooks/use-scroll/index.js +44 -0
  112. package/hooks/use-selections/index.js +58 -0
  113. package/hooks/use-session-storage-state/index.js +9 -0
  114. package/hooks/use-set/index.js +23 -0
  115. package/hooks/use-set-state/index.js +17 -0
  116. package/hooks/use-size/index.js +41 -0
  117. package/hooks/use-state-callback/index.js +16 -0
  118. package/hooks/use-state-with-promise/index.js +36 -0
  119. package/hooks/use-text-selection/index.js +56 -0
  120. package/hooks/use-theme/index.js +36 -0
  121. package/hooks/use-throttle/index.js +14 -0
  122. package/hooks/use-throttle-effect/index.js +13 -0
  123. package/hooks/use-throttle-fn/index.js +31 -0
  124. package/hooks/use-timeout/index.js +17 -0
  125. package/hooks/use-title/index.js +18 -0
  126. package/hooks/use-toggle/index.js +17 -0
  127. package/hooks/use-tracked-effect/index.js +12 -0
  128. package/hooks/use-unmount/index.js +21 -0
  129. package/hooks/use-unmounted-ref/index.js +11 -0
  130. package/hooks/use-update/index.js +9 -0
  131. package/hooks/use-update-effect/index.js +7 -0
  132. package/hooks/use-update-layout-effect/index.js +7 -0
  133. package/hooks/use-url-state/index.js +60 -0
  134. package/hooks/use-virtual-list/index.js +83 -0
  135. package/hooks/use-watch/index.js +14 -0
  136. package/hooks/use-web-socket/index.js +74 -0
  137. package/hooks/use-why-did-you-update/index.js +20 -0
  138. package/hooks/use-window-size/index.js +40 -0
  139. package/hooks/useAsyncEffect.js +8 -0
  140. package/hooks/useBoolean.js +7 -0
  141. package/hooks/useClickAway.js +11 -0
  142. package/hooks/useComputedState.js +6 -0
  143. package/hooks/useControllableValue.js +10 -0
  144. package/hooks/useCookieState.js +10 -0
  145. package/hooks/useCountDown.js +10 -0
  146. package/hooks/useCounter.js +9 -0
  147. package/hooks/useCreate.js +6 -0
  148. package/hooks/useCreation.js +7 -0
  149. package/hooks/useDebounce.js +7 -0
  150. package/hooks/useDebounceEffect.js +8 -0
  151. package/hooks/useDebounceFn.js +12 -0
  152. package/hooks/useDeepCompareEffect.js +7 -0
  153. package/hooks/useDeepCompareLayoutEffect.js +7 -0
  154. package/hooks/useDocumentVisibility.js +8 -0
  155. package/hooks/useDrag.js +12 -0
  156. package/hooks/useDrop.js +9 -0
  157. package/hooks/useEventListener.js +10 -0
  158. package/hooks/useEventTarget.js +9 -0
  159. package/hooks/useExternal.js +6 -0
  160. package/hooks/useFavicon.js +6 -0
  161. package/hooks/useFocusWithin.js +7 -0
  162. package/hooks/useForceUpdate.js +5 -0
  163. package/hooks/useFullscreen.js +12 -0
  164. package/hooks/useGetState.js +7 -0
  165. package/hooks/useHistoryTravel.js +9 -0
  166. package/hooks/useHover.js +7 -0
  167. package/hooks/useId.js +8 -0
  168. package/hooks/useInView.js +7 -0
  169. package/hooks/useInViewport.js +10 -0
  170. package/hooks/useInfiniteScroll.js +13 -0
  171. package/hooks/useIntersectionObserver.js +10 -0
  172. package/hooks/useInterval.js +9 -0
  173. package/hooks/useIsFirstRender.js +6 -0
  174. package/hooks/useIsomorphicLayoutEffect.js +7 -0
  175. package/hooks/useKeyPress.js +11 -0
  176. package/hooks/useKeyboardEvent.js +7 -0
  177. package/hooks/useLatest.js +6 -0
  178. package/hooks/useListenWindowResize.js +6 -0
  179. package/hooks/useLocalStorageState.js +7 -0
  180. package/hooks/useLockFn.js +6 -0
  181. package/hooks/useLongPress.js +9 -0
  182. package/hooks/useMap.js +7 -0
  183. package/hooks/useMedia.js +6 -0
  184. package/hooks/useMemoizedFn.js +9 -0
  185. package/hooks/useMergeProps.js +7 -0
  186. package/hooks/useMergeValue.js +9 -0
  187. package/hooks/useMount.js +9 -0
  188. package/hooks/useMouse.js +8 -0
  189. package/hooks/useMutationObserver.js +8 -0
  190. package/hooks/useNetwork.js +8 -0
  191. package/hooks/useOnlineStatus.js +6 -0
  192. package/hooks/useOverflowHidden.js +6 -0
  193. package/hooks/useOverrideRef.js +8 -0
  194. package/hooks/usePagination.js +9 -0
  195. package/hooks/usePersistCallback.js +6 -0
  196. package/hooks/usePrefersColorSchemeDark.js +7 -0
  197. package/hooks/usePrevious.js +6 -0
  198. package/hooks/useRafInterval.js +9 -0
  199. package/hooks/useRafState.js +7 -0
  200. package/hooks/useRafTimeout.js +9 -0
  201. package/hooks/useReactive.js +10 -0
  202. package/hooks/useRefLatest.js +5 -0
  203. package/hooks/useRefs.js +6 -0
  204. package/hooks/useRequest.js +7 -0
  205. package/hooks/useResetState.js +10 -0
  206. package/hooks/useResizeObserver.js +5 -0
  207. package/hooks/useResponsive.js +8 -0
  208. package/hooks/useSafeState.js +7 -0
  209. package/hooks/useScroll.js +9 -0
  210. package/hooks/useSelections.js +9 -0
  211. package/hooks/useSessionStorageState.js +7 -0
  212. package/hooks/useSet.js +7 -0
  213. package/hooks/useSetState.js +9 -0
  214. package/hooks/useSize.js +11 -0
  215. package/hooks/useStateCallback.js +6 -0
  216. package/hooks/useStateWithPromise.js +8 -0
  217. package/hooks/useTextSelection.js +8 -0
  218. package/hooks/useTheme.js +9 -0
  219. package/hooks/useThrottle.js +7 -0
  220. package/hooks/useThrottleEffect.js +8 -0
  221. package/hooks/useThrottleFn.js +12 -0
  222. package/hooks/useTimeout.js +9 -0
  223. package/hooks/useTitle.js +8 -0
  224. package/hooks/useToggle.js +6 -0
  225. package/hooks/useTrackedEffect.js +6 -0
  226. package/hooks/useUnmount.js +10 -0
  227. package/hooks/useUnmountedRef.js +6 -0
  228. package/hooks/useUpdate.js +6 -0
  229. package/hooks/useUpdateEffect.js +7 -0
  230. package/hooks/useUpdateLayoutEffect.js +7 -0
  231. package/hooks/useUrlState.js +12 -0
  232. package/hooks/useVirtualList.js +14 -0
  233. package/hooks/useWatch.js +9 -0
  234. package/hooks/useWebSocket.js +10 -0
  235. package/hooks/useWhyDidYouUpdate.js +6 -0
  236. package/hooks/useWindowSize.js +10 -0
  237. package/hooks/utils/createEffectWithTarget.js +23 -0
  238. package/hooks/utils/depsAreSame.js +12 -0
  239. package/hooks/utils/depsEqual.js +7 -0
  240. package/hooks/utils/domTarget.js +16 -0
  241. package/hooks/utils/getDocumentOrShadow.js +16 -0
  242. package/hooks/utils/index.js +5 -0
  243. package/hooks/utils/isAppleDevice.js +6 -0
  244. package/hooks/utils/isBrowser.js +6 -0
  245. package/hooks/utils/isDev.js +5 -0
  246. package/hooks/utils/rect.js +19 -0
  247. package/hooks/utils/useDeepCompareWithTarget.js +11 -0
  248. package/hooks/utils/useEffectWithTarget.js +7 -0
  249. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +8 -0
  250. package/hooks/utils/useLayoutEffectWithTarget.js +7 -0
  251. package/hooks/utils.js +5 -0
  252. package/icons/file/index.js +59 -0
  253. package/icons/file.js +9 -0
  254. package/index.js +49 -0
  255. package/package.json +1 -0
  256. package/progress/index.js +153 -0
  257. package/space/index.js +77 -0
  258. package/style/animation.less +21 -0
  259. package/style/global.less +69 -0
  260. package/style/index.less +41 -0
  261. package/style/keyframes.less +48 -0
  262. package/style/normalize.less +0 -0
  263. package/style/override.less +0 -0
  264. package/style/style.less +2 -0
  265. package/style/variables.css +3 -0
  266. package/style/variables.less +0 -0
  267. package/style.css +1 -0
  268. package/suspense-fallback-test/index.js +17 -0
  269. package/transition-group/CSSTransition.js +91 -0
  270. package/transition-group/PqbCSSTransition.js +36 -0
  271. package/transition-group/ReplaceTransition.js +34 -0
  272. package/transition-group/SwitchTransition.js +102 -0
  273. package/transition-group/Transition.js +188 -0
  274. package/transition-group/TransitionGroup.js +50 -0
  275. package/transition-group/TransitionGroupContext.js +6 -0
  276. package/transition-group/index.js +32 -0
  277. package/transition-group/utils/ChildMapping.js +66 -0
  278. package/types/development/index.d.ts +8 -0
  279. package/types/development/interface.d.ts +22 -0
  280. package/types/empty/index.d.ts +5 -0
  281. package/types/empty/interface.d.ts +24 -0
  282. package/types/flex/index.d.ts +8 -0
  283. package/types/flex/interface.d.ts +73 -0
  284. package/types/higher-order/index.d.ts +1 -0
  285. package/types/higher-order/with-speech-synthesis/index.d.ts +7 -0
  286. package/types/higher-order/with-speech-synthesis/interface.d.ts +13 -0
  287. package/types/hooks/create-deep-compare-effect/index.d.ts +5 -0
  288. package/types/hooks/create-update-effect/index.d.ts +4 -0
  289. package/types/hooks/create-use-storage-state/index.d.ts +11 -0
  290. package/types/hooks/index.d.ts +97 -0
  291. package/types/hooks/use-async-effect/index.d.ts +3 -0
  292. package/types/hooks/use-boolean/index.d.ts +7 -0
  293. package/types/hooks/use-click-away/index.d.ts +4 -0
  294. package/types/hooks/use-computed-state/index.d.ts +4 -0
  295. package/types/hooks/use-controllable-value/index.d.ts +16 -0
  296. package/types/hooks/use-cookie-state/index.d.ts +7 -0
  297. package/types/hooks/use-count-down/index.d.ts +17 -0
  298. package/types/hooks/use-counter/index.d.ts +18 -0
  299. package/types/hooks/use-create/index.d.ts +2 -0
  300. package/types/hooks/use-creation/index.d.ts +3 -0
  301. package/types/hooks/use-debounce/debounceOptions.d.ts +6 -0
  302. package/types/hooks/use-debounce/index.d.ts +3 -0
  303. package/types/hooks/use-debounce-effect/index.d.ts +4 -0
  304. package/types/hooks/use-debounce-fn/index.d.ts +8 -0
  305. package/types/hooks/use-deep-compare-effect/index.d.ts +3 -0
  306. package/types/hooks/use-deep-compare-layout-effect/index.d.ts +3 -0
  307. package/types/hooks/use-document-visibility/index.d.ts +3 -0
  308. package/types/hooks/use-drag/index.d.ts +13 -0
  309. package/types/hooks/use-drop/index.d.ts +15 -0
  310. package/types/hooks/use-event-listener/index.d.ts +17 -0
  311. package/types/hooks/use-event-target/index.d.ts +14 -0
  312. package/types/hooks/use-external/index.d.ts +20 -0
  313. package/types/hooks/use-favicon/index.d.ts +2 -0
  314. package/types/hooks/use-focus-within/index.d.ts +7 -0
  315. package/types/hooks/use-force-update/index.d.ts +16 -0
  316. package/types/hooks/use-fullscreen/index.d.ts +17 -0
  317. package/types/hooks/use-get-state/index.d.ts +9 -0
  318. package/types/hooks/use-history-travel/index.d.ts +10 -0
  319. package/types/hooks/use-hover/index.d.ts +8 -0
  320. package/types/hooks/use-id/index.d.ts +6 -0
  321. package/types/hooks/use-in-view/index.d.ts +11 -0
  322. package/types/hooks/use-in-viewport/index.d.ts +10 -0
  323. package/types/hooks/use-infinite-scroll/index.d.ts +15 -0
  324. package/types/hooks/use-infinite-scroll/types.d.ts +32 -0
  325. package/types/hooks/use-intersection-observer/index.d.ts +7 -0
  326. package/types/hooks/use-interval/index.d.ts +4 -0
  327. package/types/hooks/use-is-first-render/index.d.ts +2 -0
  328. package/types/hooks/use-isomorphic-layout-effect/index.d.ts +3 -0
  329. package/types/hooks/use-key-press/index.d.ts +14 -0
  330. package/types/hooks/use-keyboard-event/index.d.ts +8 -0
  331. package/types/hooks/use-latest/index.d.ts +2 -0
  332. package/types/hooks/use-listen-window-resize/index.d.ts +16 -0
  333. package/types/hooks/use-local-storage-state/index.d.ts +2 -0
  334. package/types/hooks/use-lock-fn/index.d.ts +2 -0
  335. package/types/hooks/use-long-press/index.d.ts +13 -0
  336. package/types/hooks/use-map/index.d.ts +8 -0
  337. package/types/hooks/use-media/index.d.ts +2 -0
  338. package/types/hooks/use-memoized-fn/index.d.ts +4 -0
  339. package/types/hooks/use-merge-props/index.d.ts +5 -0
  340. package/types/hooks/use-merge-value/index.d.ts +6 -0
  341. package/types/hooks/use-mount/index.d.ts +3 -0
  342. package/types/hooks/use-mouse/index.d.ts +17 -0
  343. package/types/hooks/use-mutation-observer/index.d.ts +3 -0
  344. package/types/hooks/use-network/index.d.ts +12 -0
  345. package/types/hooks/use-online-status/index.d.ts +2 -0
  346. package/types/hooks/use-overflow-hidden/index.d.ts +5 -0
  347. package/types/hooks/use-override-ref/index.d.ts +3 -0
  348. package/types/hooks/use-pagination/index.d.ts +3 -0
  349. package/types/hooks/use-pagination/types.d.ts +29 -0
  350. package/types/hooks/use-persist-callback/index.d.ts +2 -0
  351. package/types/hooks/use-prefers-color-scheme-dark/index.d.ts +2 -0
  352. package/types/hooks/use-previous/index.d.ts +3 -0
  353. package/types/hooks/use-raf-interval/index.d.ts +4 -0
  354. package/types/hooks/use-raf-state/index.d.ts +7 -0
  355. package/types/hooks/use-raf-timeout/index.d.ts +2 -0
  356. package/types/hooks/use-reactive/index.d.ts +2 -0
  357. package/types/hooks/use-ref-latest/index.d.ts +2 -0
  358. package/types/hooks/use-refs/index.d.ts +2 -0
  359. package/types/hooks/use-request/index.d.ts +4 -0
  360. package/types/hooks/use-request/src/Fetch.d.ts +20 -0
  361. package/types/hooks/use-request/src/plugins/useAutoRunPlugin.d.ts +3 -0
  362. package/types/hooks/use-request/src/plugins/useCachePlugin.d.ts +3 -0
  363. package/types/hooks/use-request/src/plugins/useDebouncePlugin.d.ts +3 -0
  364. package/types/hooks/use-request/src/plugins/useLoadingDelayPlugin.d.ts +3 -0
  365. package/types/hooks/use-request/src/plugins/usePollingPlugin.d.ts +3 -0
  366. package/types/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.d.ts +3 -0
  367. package/types/hooks/use-request/src/plugins/useRetryPlugin.d.ts +3 -0
  368. package/types/hooks/use-request/src/plugins/useThrottlePlugin.d.ts +3 -0
  369. package/types/hooks/use-request/src/types.d.ts +73 -0
  370. package/types/hooks/use-request/src/useRequest.d.ts +3 -0
  371. package/types/hooks/use-request/src/useRequestImplement.d.ts +3 -0
  372. package/types/hooks/use-request/src/utils/cache.d.ts +14 -0
  373. package/types/hooks/use-request/src/utils/cachePromise.d.ts +4 -0
  374. package/types/hooks/use-request/src/utils/cacheSubscribe.d.ts +4 -0
  375. package/types/hooks/use-request/src/utils/isDocumentVisible.d.ts +1 -0
  376. package/types/hooks/use-request/src/utils/isOnline.d.ts +2 -0
  377. package/types/hooks/use-request/src/utils/limit.d.ts +1 -0
  378. package/types/hooks/use-request/src/utils/subscribeFocus.d.ts +3 -0
  379. package/types/hooks/use-request/src/utils/subscribeReVisible.d.ts +3 -0
  380. package/types/hooks/use-reset-state/index.d.ts +4 -0
  381. package/types/hooks/use-resize-observer/index.d.ts +2 -0
  382. package/types/hooks/use-responsive/index.d.ts +5 -0
  383. package/types/hooks/use-safe-state/index.d.ts +7 -0
  384. package/types/hooks/use-scroll/index.d.ts +9 -0
  385. package/types/hooks/use-selections/index.d.ts +21 -0
  386. package/types/hooks/use-session-storage-state/index.d.ts +2 -0
  387. package/types/hooks/use-set/index.d.ts +6 -0
  388. package/types/hooks/use-set-state/index.d.ts +3 -0
  389. package/types/hooks/use-size/index.d.ts +7 -0
  390. package/types/hooks/use-state-callback/index.d.ts +5 -0
  391. package/types/hooks/use-state-with-promise/index.d.ts +2 -0
  392. package/types/hooks/use-text-selection/index.d.ts +14 -0
  393. package/types/hooks/use-theme/index.d.ts +16 -0
  394. package/types/hooks/use-throttle/index.d.ts +3 -0
  395. package/types/hooks/use-throttle/throttleOptions.d.ts +5 -0
  396. package/types/hooks/use-throttle-effect/index.d.ts +4 -0
  397. package/types/hooks/use-throttle-fn/index.d.ts +8 -0
  398. package/types/hooks/use-timeout/index.d.ts +2 -0
  399. package/types/hooks/use-title/index.d.ts +5 -0
  400. package/types/hooks/use-toggle/index.d.ts +10 -0
  401. package/types/hooks/use-tracked-effect/index.d.ts +4 -0
  402. package/types/hooks/use-unmount/index.d.ts +2 -0
  403. package/types/hooks/use-unmounted-ref/index.d.ts +2 -0
  404. package/types/hooks/use-update/index.d.ts +2 -0
  405. package/types/hooks/use-update-effect/index.d.ts +3 -0
  406. package/types/hooks/use-update-layout-effect/index.d.ts +3 -0
  407. package/types/hooks/use-url-state/index.d.ts +10 -0
  408. package/types/hooks/use-virtual-list/index.d.ts +13 -0
  409. package/types/hooks/use-watch/index.d.ts +3 -0
  410. package/types/hooks/use-web-socket/index.d.ts +26 -0
  411. package/types/hooks/use-why-did-you-update/index.d.ts +3 -0
  412. package/types/hooks/use-window-size/index.d.ts +18 -0
  413. package/types/hooks/utils/createEffectWithTarget.d.ts +4 -0
  414. package/types/hooks/utils/depsAreSame.d.ts +3 -0
  415. package/types/hooks/utils/depsEqual.d.ts +2 -0
  416. package/types/hooks/utils/domTarget.d.ts +6 -0
  417. package/types/hooks/utils/getDocumentOrShadow.d.ts +3 -0
  418. package/types/hooks/utils/index.d.ts +2 -0
  419. package/types/hooks/utils/isAppleDevice.d.ts +2 -0
  420. package/types/hooks/utils/isBrowser.d.ts +2 -0
  421. package/types/hooks/utils/isDev.d.ts +2 -0
  422. package/types/hooks/utils/rect.d.ts +4 -0
  423. package/types/hooks/utils/useDeepCompareWithTarget.d.ts +4 -0
  424. package/types/hooks/utils/useEffectWithTarget.d.ts +2 -0
  425. package/types/hooks/utils/useIsomorphicLayoutEffectWithTarget.d.ts +2 -0
  426. package/types/hooks/utils/useLayoutEffectWithTarget.d.ts +2 -0
  427. package/types/icons/file/index.d.ts +4 -0
  428. package/types/icons/file/interface.d.ts +20 -0
  429. package/types/index.d.ts +16 -0
  430. package/types/progress/index.d.ts +437 -0
  431. package/types/space/index.d.ts +7 -0
  432. package/types/space/interface.d.ts +53 -0
  433. package/types/suspense-fallback-test/index.d.ts +7 -0
  434. package/types/suspense-fallback-test/interface.d.ts +1 -0
  435. package/types/transition-group/CSSTransition.d.ts +98 -0
  436. package/types/transition-group/PqbCSSTransition.d.ts +4 -0
  437. package/types/transition-group/ReplaceTransition.d.ts +23 -0
  438. package/types/transition-group/SwitchTransition.d.ts +88 -0
  439. package/types/transition-group/Transition.d.ts +130 -0
  440. package/types/transition-group/TransitionGroup.d.ts +31 -0
  441. package/types/transition-group/TransitionGroupContext.d.ts +3 -0
  442. package/types/transition-group/index.d.ts +10 -0
  443. package/types/transition-group/utils/ChildMapping.d.ts +27 -0
  444. package/types/utils/caseName.d.ts +1 -0
  445. package/types/utils/className.d.ts +1 -0
  446. package/types/utils/compute.d.ts +100 -0
  447. package/types/utils/constant.d.ts +3 -0
  448. package/types/utils/copy.d.ts +3 -0
  449. package/types/utils/date.d.ts +1 -0
  450. package/types/utils/dayjs.d.ts +3 -0
  451. package/types/utils/dom.d.ts +27 -0
  452. package/types/utils/emitter.d.ts +1 -0
  453. package/types/utils/fileToURL.d.ts +1 -0
  454. package/types/utils/fillNBSP.d.ts +3 -0
  455. package/types/utils/findScrollParent.d.ts +2 -0
  456. package/types/utils/getHighlightText.d.ts +7 -0
  457. package/types/utils/getHotkeyHandler.d.ts +18 -0
  458. package/types/utils/getStringLength.d.ts +3 -0
  459. package/types/utils/include.d.ts +3 -0
  460. package/types/utils/index.d.ts +46 -0
  461. package/types/utils/intersectionObserver.d.ts +3 -0
  462. package/types/utils/is.d.ts +10 -0
  463. package/types/utils/keyboardCode.d.ts +4 -0
  464. package/types/utils/lodash.d.ts +60 -0
  465. package/types/utils/math.d.ts +1 -0
  466. package/types/utils/mergeProps.d.ts +3 -0
  467. package/types/utils/mergedToString.d.ts +4 -0
  468. package/types/utils/mutationObserver.d.ts +3 -0
  469. package/types/utils/omit.d.ts +3 -0
  470. package/types/utils/pad.d.ts +2 -0
  471. package/types/utils/pick.d.ts +6 -0
  472. package/types/utils/pinyin.d.ts +1 -0
  473. package/types/utils/react19Adapter.d.ts +1 -0
  474. package/types/utils/reactDOM.d.ts +34 -0
  475. package/types/utils/resizeObserver.d.ts +3 -0
  476. package/types/utils/saveAs.d.ts +1 -0
  477. package/types/utils/screenfull.d.ts +1 -0
  478. package/types/utils/scrollIntoViewIfNeeded.d.ts +12 -0
  479. package/types/utils/setDarkTheme.d.ts +4 -0
  480. package/types/utils/setDir.d.ts +3 -0
  481. package/types/utils/setPrimaryColor.d.ts +3 -0
  482. package/types/utils/setTheme.d.ts +3 -0
  483. package/types/utils/style.d.ts +3 -0
  484. package/types/utils/supportRef.d.ts +3 -0
  485. package/types/utils/throttleByRaf.d.ts +6 -0
  486. package/types/utils/throttleByRaf2.d.ts +6 -0
  487. package/types/utils/tinycolor.d.ts +2 -0
  488. package/types/utils/toArray.d.ts +13 -0
  489. package/types/utils/tree.d.ts +1 -0
  490. package/types/utils/tween.d.ts +1 -0
  491. package/types/utils/uuid.d.ts +1 -0
  492. package/types/utils/validate.d.ts +1 -0
  493. package/types/utils/warning.d.ts +3 -0
  494. package/utils/caseName.js +6 -0
  495. package/utils/className.js +6 -0
  496. package/utils/compute.js +142 -0
  497. package/utils/constant.js +10 -0
  498. package/utils/copy.js +8 -0
  499. package/utils/date.js +2 -0
  500. package/utils/dayjs.js +23 -0
  501. package/utils/dom.js +63 -0
  502. package/utils/emitter.js +6 -0
  503. package/utils/fileToURL.js +6 -0
  504. package/utils/fillNBSP.js +10 -0
  505. package/utils/findScrollParent.js +18 -0
  506. package/utils/getHighlightText.js +45 -0
  507. package/utils/getHotkeyHandler.js +29 -0
  508. package/utils/getStringLength.js +11 -0
  509. package/utils/include.js +11 -0
  510. package/utils/index.js +334 -0
  511. package/utils/intersectionObserver.js +23 -0
  512. package/utils/is.js +98 -0
  513. package/utils/keyboardCode.js +7 -0
  514. package/utils/lodash.js +121 -0
  515. package/utils/math.js +10 -0
  516. package/utils/mergeProps.js +13 -0
  517. package/utils/mergedToString.js +16 -0
  518. package/utils/mutationObserver.js +21 -0
  519. package/utils/omit.js +13 -0
  520. package/utils/pad.js +19 -0
  521. package/utils/pick.js +19 -0
  522. package/utils/pinyin.js +6 -0
  523. package/utils/react19Adapter.js +4 -0
  524. package/utils/reactDOM.js +87 -0
  525. package/utils/resizeObserver.js +33 -0
  526. package/utils/saveAs.js +6 -0
  527. package/utils/screenfull.js +6 -0
  528. package/utils/scrollIntoViewIfNeeded.js +75 -0
  529. package/utils/setDarkTheme.js +28 -0
  530. package/utils/setDir.js +14 -0
  531. package/utils/setPrimaryColor.js +31 -0
  532. package/utils/setTheme.js +56 -0
  533. package/utils/style.js +40 -0
  534. package/utils/supportRef.js +10 -0
  535. package/utils/throttleByRaf.js +17 -0
  536. package/utils/throttleByRaf2.js +9 -0
  537. package/utils/tinycolor.js +7 -0
  538. package/utils/toArray.js +15 -0
  539. package/utils/tree.js +14 -0
  540. package/utils/tween.js +7 -0
  541. package/utils/uuid.js +6 -0
  542. package/utils/validate.js +18 -0
  543. package/utils/warning.js +12 -0
@@ -0,0 +1,21 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useEffect as e } from "react";
3
+ import "../../utils/is.js";
4
+ import r from "../use-latest/index.js";
5
+ import i from "../utils/isDev.js";
6
+ import { isFunction as m } from "@unicom-cloud/utils/is";
7
+ const c = (o) => {
8
+ i && (m(o) || console.error(
9
+ `useUnmount expected parameter is a function, got ${typeof o}`
10
+ ));
11
+ const t = r(o);
12
+ e(
13
+ () => () => {
14
+ t.current();
15
+ },
16
+ []
17
+ );
18
+ };
19
+ export {
20
+ c as default
21
+ };
@@ -0,0 +1,11 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useRef as t, useEffect as r } from "react";
3
+ const n = () => {
4
+ const e = t(!1);
5
+ return r(() => (e.current = !1, () => {
6
+ e.current = !0;
7
+ }), []), e;
8
+ };
9
+ export {
10
+ n as default
11
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useState as e, useCallback as a } from "react";
3
+ const o = () => {
4
+ const [, t] = e({});
5
+ return a(() => t({}), []);
6
+ };
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useEffect as e } from "react";
3
+ import t from "../create-update-effect/index.js";
4
+ const r = t(e);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useLayoutEffect as t } from "react";
3
+ import e from "../create-update-effect/index.js";
4
+ const r = e(t);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,60 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import o from "@unicom-cloud/utils/query-string";
3
+ import { useRef as v, useMemo as u } from "react";
4
+ import * as F from "react-router";
5
+ import "../../utils/is.js";
6
+ import M from "../use-memoized-fn/index.js";
7
+ import N from "../use-update/index.js";
8
+ import { isFunction as g } from "@unicom-cloud/utils/is";
9
+ const a = F, U = {
10
+ parseNumbers: !1,
11
+ parseBooleans: !1
12
+ }, b = {
13
+ skipNull: !1,
14
+ skipEmptyString: !1
15
+ }, x = (e, h) => {
16
+ const {
17
+ navigateMode: n = "push",
18
+ parseOptions: l,
19
+ stringifyOptions: y
20
+ } = h || {}, d = { ...U, ...l }, i = {
21
+ ...b,
22
+ ...y
23
+ }, s = a.useLocation(), c = a.useHistory?.(), p = a.useNavigate?.(), S = N(), O = v(
24
+ g(e) ? e() : e || {}
25
+ ), t = u(() => o.parse(s.search, d), [s.search]), f = u(
26
+ () => ({
27
+ ...O.current,
28
+ ...t
29
+ }),
30
+ [t]
31
+ );
32
+ return [f, M((r) => {
33
+ const m = g(r) ? r(f) : r;
34
+ S(), c && c[n](
35
+ {
36
+ hash: s.hash,
37
+ search: o.stringify(
38
+ { ...t, ...m },
39
+ i
40
+ ) || "?"
41
+ },
42
+ s.state
43
+ ), p && p(
44
+ {
45
+ hash: s.hash,
46
+ search: o.stringify(
47
+ { ...t, ...m },
48
+ i
49
+ ) || "?"
50
+ },
51
+ {
52
+ replace: n === "replace",
53
+ state: s.state
54
+ }
55
+ );
56
+ })];
57
+ };
58
+ export {
59
+ x as default
60
+ };
@@ -0,0 +1,83 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useRef as C, useState as b, useMemo as D, useEffect as F } from "react";
3
+ import "../../utils/is.js";
4
+ import O from "../use-event-listener/index.js";
5
+ import V from "../use-latest/index.js";
6
+ import _ from "../use-memoized-fn/index.js";
7
+ import j from "../use-size/index.js";
8
+ import B from "../use-update-effect/index.js";
9
+ import { getTargetElement as m } from "../utils/domTarget.js";
10
+ import { isNumber as f } from "@unicom-cloud/utils/is";
11
+ const Q = (r, M) => {
12
+ const { containerTarget: i, wrapperTarget: w, itemHeight: E, overscan: p = 5 } = M, c = V(E), a = j(i), h = C(!1), [L, S] = b(
13
+ []
14
+ ), [g, v] = b({}), y = (t, e) => {
15
+ if (f(c.current))
16
+ return Math.ceil(t / c.current);
17
+ let n = 0, o = 0;
18
+ for (let s = e; s < r.length; s++) {
19
+ const u = c.current(s, r[s]);
20
+ if (n += u, o = s, n >= t)
21
+ break;
22
+ }
23
+ return o - e;
24
+ }, x = (t) => {
25
+ if (f(c.current))
26
+ return Math.floor(t / c.current);
27
+ let e = 0, n = 0;
28
+ for (let o = 0; o < r.length; o++) {
29
+ const s = c.current(o, r[o]);
30
+ if (e += s, e >= t) {
31
+ n = o;
32
+ break;
33
+ }
34
+ }
35
+ return n + 1;
36
+ }, T = (t) => f(c.current) ? t * c.current : r.slice(0, t).reduce(
37
+ (n, o, s) => n + c.current(s, r[s]),
38
+ 0
39
+ ), z = D(() => f(c.current) ? r.length * c.current : r.reduce(
40
+ (t, e, n) => t + c.current(n, r[n]),
41
+ 0
42
+ ), [r]), l = () => {
43
+ const t = m(i);
44
+ if (t) {
45
+ const { scrollTop: e, clientHeight: n } = t, o = x(e), s = y(n, o), u = Math.max(0, o - p), H = Math.min(r.length, o + s + p), d = T(u);
46
+ v({
47
+ height: z - d + "px",
48
+ marginTop: d + "px"
49
+ }), S(
50
+ r.slice(u, H).map((R, k) => ({
51
+ data: R,
52
+ index: k + u
53
+ }))
54
+ );
55
+ }
56
+ };
57
+ return B(() => {
58
+ const t = m(w);
59
+ t && Object.keys(g).forEach(
60
+ (e) => t.style[e] = g[e]
61
+ );
62
+ }, [g]), F(() => {
63
+ !a?.width || !a?.height || l();
64
+ }, [a?.width, a?.height, r]), O(
65
+ "scroll",
66
+ (t) => {
67
+ if (h.current) {
68
+ h.current = !1;
69
+ return;
70
+ }
71
+ t.preventDefault(), l();
72
+ },
73
+ {
74
+ target: i
75
+ }
76
+ ), [L, _((t) => {
77
+ const e = m(i);
78
+ e && (h.current = !0, e.scrollTop = T(t), l());
79
+ })];
80
+ };
81
+ export {
82
+ Q as default
83
+ };
@@ -0,0 +1,14 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useEffect as i } from "react";
3
+ import "../../utils/is.js";
4
+ import f from "../use-previous/index.js";
5
+ import { isFunction as m } from "@unicom-cloud/utils/is";
6
+ function u(o, t) {
7
+ const r = f(o);
8
+ return i(() => {
9
+ o !== r && m(t) && t(o, r);
10
+ }, [o]), [o, r];
11
+ }
12
+ export {
13
+ u as default
14
+ };
@@ -0,0 +1,74 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useState as M, useRef as i, useEffect as F } from "react";
3
+ import s from "../use-latest/index.js";
4
+ import f from "../use-memoized-fn/index.js";
5
+ import j from "../use-unmount/index.js";
6
+ var q = /* @__PURE__ */ ((r) => (r[r.Connecting = 0] = "Connecting", r[r.Open = 1] = "Open", r[r.Closing = 2] = "Closing", r[r.Closed = 3] = "Closed", r))(q || {});
7
+ function G(r, w = {}) {
8
+ const {
9
+ reconnectLimit: a = 3,
10
+ reconnectInterval: T = 3 * 1e3,
11
+ manual: m = !1,
12
+ onOpen: b,
13
+ onClose: v,
14
+ onMessage: S,
15
+ onError: E,
16
+ protocols: O
17
+ } = w, [W, k] = M(), [l, u] = M(
18
+ 3
19
+ /* Closed */
20
+ ), L = s(b), R = s(v), I = s(S), h = s(E), x = s(l), o = i(0), c = i(void 0), n = i(void 0), d = () => {
21
+ o.current < a && n.current?.readyState !== 1 && (c.current && clearTimeout(c.current), c.current = setTimeout(() => {
22
+ p(), o.current++;
23
+ }, T));
24
+ }, p = () => {
25
+ c.current && clearTimeout(c.current), n.current && n.current.close();
26
+ const e = new WebSocket(r, O);
27
+ u(
28
+ 0
29
+ /* Connecting */
30
+ ), e.onerror = (t) => {
31
+ n.current === e && (d(), h.current?.(t, e), u(
32
+ e.readyState || 3
33
+ /* Closed */
34
+ ));
35
+ }, e.onopen = (t) => {
36
+ n.current === e && (L.current?.(t, e), o.current = 0, u(
37
+ e.readyState || 1
38
+ /* Open */
39
+ ));
40
+ }, e.onmessage = (t) => {
41
+ n.current === e && (I.current?.(t, e), k(t));
42
+ }, e.onclose = (t) => {
43
+ R.current?.(t, e), n.current === e && d(), (!n.current || n.current === e) && u(
44
+ e.readyState || 3
45
+ /* Closed */
46
+ );
47
+ }, n.current = e;
48
+ }, z = (e) => {
49
+ if (x.current === 1)
50
+ n.current?.send(e);
51
+ else
52
+ throw new Error("WebSocket disconnected");
53
+ }, g = () => {
54
+ o.current = 0, p();
55
+ }, C = () => {
56
+ c.current && clearTimeout(c.current), o.current = a, n.current?.close(), n.current = void 0;
57
+ };
58
+ return F(() => {
59
+ !m && r && g();
60
+ }, [r, m]), j(() => {
61
+ C();
62
+ }), {
63
+ latestMessage: W,
64
+ sendMessage: f(z),
65
+ connect: f(g),
66
+ disconnect: f(C),
67
+ readyState: l,
68
+ webSocketIns: n.current
69
+ };
70
+ }
71
+ export {
72
+ q as ReadyState,
73
+ G as default
74
+ };
@@ -0,0 +1,20 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { useRef as u, useEffect as f } from "react";
3
+ function i(o, c) {
4
+ const e = u({});
5
+ f(() => {
6
+ if (e.current) {
7
+ const n = Object.keys({ ...e.current, ...c }), r = {};
8
+ n.forEach((t) => {
9
+ Object.is(e.current[t], c[t]) || (r[t] = {
10
+ from: e.current[t],
11
+ to: c[t]
12
+ });
13
+ }), Object.keys(r).length && console.log("[why-did-you-update]", o, r);
14
+ }
15
+ e.current = c;
16
+ });
17
+ }
18
+ export {
19
+ i as default
20
+ };
@@ -0,0 +1,40 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import l from "lodash/debounce";
3
+ import { useState as m, useDeferredValue as d, useMemo as h, useEffect as s } from "react";
4
+ import "../../utils/is.js";
5
+ import p from "../use-listen-window-resize/index.js";
6
+ import { isFunction as w } from "@unicom-cloud/utils/is";
7
+ function V(o = !1, c) {
8
+ const [n, u] = m({
9
+ ...r(null)
10
+ }), f = d(
11
+ n
12
+ // 延迟一个值与防抖和节流之间有什么不同?
13
+ // 防抖(Debounce) 是指在用户停止输入一段时间(例如一秒钟)之后再更新列表。
14
+ // 节流(Throttle) 是指每隔一段时间(例如最多每秒一次)更新列表。
15
+ // 虽然这些技术在某些情况下是有用的,但 useDeferredValue 更适合优化渲染,因为它与 React 自身深度集成,并且能够适应用户的设备。
16
+ // 与防抖或节流不同,useDeferredValue 不需要选择任何固定延迟时间。如果用户的设备很快(比如性能强劲的笔记本电脑),延迟的重渲染几乎会立即发生并且不会被察觉。如果用户的设备较慢,那么列表会相应地“滞后”于输入,滞后的程度与设备的速度有关。
17
+ // 此外,与防抖或节流不同,useDeferredValue 执行的延迟重新渲染默认是可中断的。这意味着,如果 React 正在重新渲染一个大型列表,但用户进行了另一次键盘输入,React 会放弃该重新渲染,先处理键盘输入,然后再次开始在后台渲染。相比之下,防抖和节流仍会产生不顺畅的体验,因为它们是阻塞的:它们仅仅是将渲染阻塞键盘输入的时刻推迟了。
18
+ // 如果你要优化的工作不是在渲染期间发生的,那么防抖和节流仍然非常有用。例如,它们可以让你减少网络请求的次数。你也可以同时使用这些技术。
19
+ );
20
+ function r(t) {
21
+ const { innerWidth: i = 0, innerHeight: a = 0 } = t?.currentTarget ?? t?.target ?? window;
22
+ return {
23
+ width: i,
24
+ height: a
25
+ };
26
+ }
27
+ const e = h(() => {
28
+ function t(i) {
29
+ u(r(i));
30
+ }
31
+ return o ? l(t, 123) : t;
32
+ }, [o]);
33
+ return p(e, [e]), s(() => (c?.(n), () => {
34
+ }), [n]), s(() => (u(r(null)), () => {
35
+ "cancel" in e && w(e.cancel) && e.cancel();
36
+ }), []), f;
37
+ }
38
+ export {
39
+ V as default
40
+ };
@@ -0,0 +1,8 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "../utils/is.js";
4
+ import "@unicom-cloud/utils/is";
5
+ import { default as i } from "./use-async-effect/index.js";
6
+ export {
7
+ i as default
8
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-toggle/index.js";
4
+ import { default as p } from "./use-boolean/index.js";
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,11 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "../utils/is.js";
3
+ import "./use-latest/index.js";
4
+ import "./utils/domTarget.js";
5
+ import "./utils/getDocumentOrShadow.js";
6
+ import "./utils/useEffectWithTarget.js";
7
+ import "@unicom-cloud/utils/is";
8
+ import { default as a } from "./use-click-away/index.js";
9
+ export {
10
+ a as default
11
+ };
@@ -0,0 +1,6 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import { default as e } from "./use-computed-state/index.js";
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,10 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "../utils/is.js";
4
+ import "./use-memoized-fn/index.js";
5
+ import "./use-update/index.js";
6
+ import "@unicom-cloud/utils/is";
7
+ import { default as f } from "./use-controllable-value/index.js";
8
+ export {
9
+ f as default
10
+ };
@@ -0,0 +1,10 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "@unicom-cloud/utils/js-cookie";
3
+ import "react";
4
+ import "../utils/is.js";
5
+ import "./use-memoized-fn/index.js";
6
+ import "@unicom-cloud/utils/is";
7
+ import { default as f } from "./use-cookie-state/index.js";
8
+ export {
9
+ f as default
10
+ };
@@ -0,0 +1,10 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "dayjs";
3
+ import "react";
4
+ import "../utils/is.js";
5
+ import "./use-latest/index.js";
6
+ import "@unicom-cloud/utils/is";
7
+ import { default as f } from "./use-count-down/index.js";
8
+ export {
9
+ f as default
10
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "../utils/is.js";
4
+ import "./use-memoized-fn/index.js";
5
+ import "@unicom-cloud/utils/is";
6
+ import { default as e } from "./use-counter/index.js";
7
+ export {
8
+ e as default
9
+ };
@@ -0,0 +1,6 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import { default as e } from "./use-create/index.js";
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./utils/depsAreSame.js";
4
+ import { default as p } from "./use-creation/index.js";
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-debounce-fn/index.js";
4
+ import { default as p } from "./use-debounce/index.js";
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,8 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-debounce-fn/index.js";
4
+ import "./use-update-effect/index.js";
5
+ import { default as i } from "./use-debounce-effect/index.js";
6
+ export {
7
+ i as default
8
+ };
@@ -0,0 +1,12 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "lodash/debounce";
3
+ import "react";
4
+ import "../utils/is.js";
5
+ import "./use-latest/index.js";
6
+ import "./use-unmount/index.js";
7
+ import "./utils/isDev.js";
8
+ import "@unicom-cloud/utils/is";
9
+ import { default as d } from "./use-debounce-fn/index.js";
10
+ export {
11
+ d as default
12
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./create-deep-compare-effect/index.js";
4
+ import { default as p } from "./use-deep-compare-effect/index.js";
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./create-deep-compare-effect/index.js";
4
+ import { default as p } from "./use-deep-compare-layout-effect/index.js";
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,8 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-event-listener/index.js";
4
+ import "@unicom-cloud/utils/constant/platform";
5
+ import { default as i } from "./use-document-visibility/index.js";
6
+ export {
7
+ i as default
8
+ };
@@ -0,0 +1,12 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "../utils/is.js";
4
+ import "./use-latest/index.js";
5
+ import "./use-mount/index.js";
6
+ import "./utils/domTarget.js";
7
+ import "./utils/useEffectWithTarget.js";
8
+ import "@unicom-cloud/utils/is";
9
+ import { default as d } from "./use-drag/index.js";
10
+ export {
11
+ d as default
12
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-latest/index.js";
4
+ import "./utils/domTarget.js";
5
+ import "./utils/useEffectWithTarget.js";
6
+ import { default as e } from "./use-drop/index.js";
7
+ export {
8
+ e as default
9
+ };
@@ -0,0 +1,10 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "../utils/is.js";
3
+ import "./use-latest/index.js";
4
+ import "./utils/domTarget.js";
5
+ import "./utils/useEffectWithTarget.js";
6
+ import "@unicom-cloud/utils/is";
7
+ import { default as f } from "./use-event-listener/index.js";
8
+ export {
9
+ f as default
10
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "../utils/is.js";
4
+ import "./use-latest/index.js";
5
+ import "@unicom-cloud/utils/is";
6
+ import { default as e } from "./use-event-target/index.js";
7
+ export {
8
+ e as default
9
+ };
@@ -0,0 +1,6 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import { default as e } from "./use-external/index.js";
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,6 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import { default as e } from "./use-favicon/index.js";
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-event-listener/index.js";
4
+ import { default as p } from "./use-focus-within/index.js";
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,5 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import { default as o } from "./use-update/index.js";
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,12 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "@unicom-cloud/utils/screenfull";
3
+ import "react";
4
+ import "../utils/is.js";
5
+ import "./use-latest/index.js";
6
+ import "./use-memoized-fn/index.js";
7
+ import "./utils/domTarget.js";
8
+ import "@unicom-cloud/utils/is";
9
+ import { default as d } from "./use-fullscreen/index.js";
10
+ export {
11
+ d as default
12
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-latest/index.js";
4
+ import { default as p } from "./use-get-state/index.js";
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "../utils/is.js";
4
+ import "./use-memoized-fn/index.js";
5
+ import "@unicom-cloud/utils/is";
6
+ import { default as e } from "./use-history-travel/index.js";
7
+ export {
8
+ e as default
9
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "./use-boolean/index.js";
3
+ import "./use-event-listener/index.js";
4
+ import { default as p } from "./use-hover/index.js";
5
+ export {
6
+ p as default
7
+ };
package/hooks/useId.js ADDED
@@ -0,0 +1,8 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "../utils/is.js";
4
+ import "@unicom-cloud/utils/is";
5
+ import { default as i } from "./use-id/index.js";
6
+ export {
7
+ i as default
8
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-11-14 09:11:19 */
2
+ import "react";
3
+ import "./use-intersection-observer/index.js";
4
+ import { default as p } from "./use-in-view/index.js";
5
+ export {
6
+ p as default
7
+ };