@unicom-cloud/ui-common 0.1.11 → 0.1.12

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 (364) hide show
  1. package/Development.js +1 -1
  2. package/Empty.js +1 -1
  3. package/Flex.js +1 -1
  4. package/Motion.js +1 -1
  5. package/Progress.js +1 -1
  6. package/ResizeObserver.js +5 -3
  7. package/Space.js +1 -1
  8. package/SuspenseFallbackTest.js +1 -1
  9. package/Timer.js +1 -1
  10. package/TransitionGroup.js +19 -21
  11. package/development/index.js +1 -1
  12. package/empty/index.js +1 -1
  13. package/flex/index.js +1 -1
  14. package/flex/utils.js +1 -1
  15. package/higher-order/index.js +1 -1
  16. package/higher-order/with-speech-synthesis/index.js +1 -1
  17. package/higher-order/withSpeechSynthesis.js +1 -1
  18. package/hooks/create-deep-compare-effect/index.js +1 -1
  19. package/hooks/create-update-effect/index.js +1 -1
  20. package/hooks/create-use-storage-state/index.js +1 -1
  21. package/hooks/createDeepCompareEffect.js +1 -1
  22. package/hooks/createUpdateEffect.js +1 -1
  23. package/hooks/createUseStorageState.js +1 -1
  24. package/hooks/index.js +30 -29
  25. package/hooks/use-async-effect/index.js +1 -1
  26. package/hooks/use-boolean/index.js +1 -1
  27. package/hooks/use-click-away/index.js +1 -1
  28. package/hooks/use-computed-state/index.js +1 -1
  29. package/hooks/use-controllable-value/index.js +1 -1
  30. package/hooks/use-cookie-state/index.js +1 -1
  31. package/hooks/use-count-down/index.js +1 -1
  32. package/hooks/use-counter/index.js +1 -1
  33. package/hooks/use-create/index.js +1 -1
  34. package/hooks/use-creation/index.js +1 -1
  35. package/hooks/use-debounce/index.js +1 -1
  36. package/hooks/use-debounce-effect/index.js +1 -1
  37. package/hooks/use-debounce-fn/index.js +1 -1
  38. package/hooks/use-deep-compare-effect/index.js +1 -1
  39. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  40. package/hooks/use-document-visibility/index.js +1 -1
  41. package/hooks/use-drag/index.js +1 -1
  42. package/hooks/use-drop/index.js +1 -1
  43. package/hooks/use-event/index.js +1 -1
  44. package/hooks/use-event-listener/index.js +1 -1
  45. package/hooks/use-event-target/index.js +1 -1
  46. package/hooks/use-external/index.js +1 -1
  47. package/hooks/use-favicon/index.js +1 -1
  48. package/hooks/use-focus-within/index.js +1 -1
  49. package/hooks/use-force-update/index.js +1 -1
  50. package/hooks/use-fullscreen/index.js +1 -1
  51. package/hooks/use-get-state/index.js +1 -1
  52. package/hooks/use-history-travel/index.js +1 -1
  53. package/hooks/use-hover/index.js +1 -1
  54. package/hooks/use-id/index.js +1 -1
  55. package/hooks/use-in-view/index.js +1 -1
  56. package/hooks/use-in-viewport/index.js +1 -1
  57. package/hooks/use-infinite-scroll/index.js +1 -1
  58. package/hooks/use-intersection-observer/index.js +1 -1
  59. package/hooks/use-intersection-observers/index.js +1 -1
  60. package/hooks/use-interval/index.js +1 -1
  61. package/hooks/use-is-first-render/index.js +1 -1
  62. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  63. package/hooks/use-key-press/index.js +1 -1
  64. package/hooks/use-keyboard-event/index.js +1 -1
  65. package/hooks/use-latest/index.js +1 -1
  66. package/hooks/use-listen-window-resize/index.js +1 -1
  67. package/hooks/use-local-storage-state/index.js +1 -1
  68. package/hooks/use-lock-fn/index.js +1 -1
  69. package/hooks/use-long-press/index.js +1 -1
  70. package/hooks/use-map/index.js +1 -1
  71. package/hooks/use-media/index.js +1 -1
  72. package/hooks/use-memo/index.js +1 -1
  73. package/hooks/use-memoized-fn/index.js +1 -1
  74. package/hooks/use-merge-props/index.js +1 -1
  75. package/hooks/use-merge-value/index.js +1 -1
  76. package/hooks/use-mobile/index.js +1 -1
  77. package/hooks/use-mount/index.js +1 -1
  78. package/hooks/use-mouse/index.js +1 -1
  79. package/hooks/use-move/index.js +1 -1
  80. package/hooks/use-mutation-observer/index.js +1 -1
  81. package/hooks/use-mutation-observers/index.js +1 -1
  82. package/hooks/use-network/index.js +1 -1
  83. package/hooks/use-online-status/index.js +1 -1
  84. package/hooks/use-overflow-hidden/index.js +1 -1
  85. package/hooks/use-override-ref/index.js +1 -1
  86. package/hooks/use-pagination/index.js +1 -1
  87. package/hooks/use-paste-image/index.js +1 -1
  88. package/hooks/use-persist-callback/index.js +1 -1
  89. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  90. package/hooks/use-previous/index.js +1 -1
  91. package/hooks/use-raf-interval/index.js +1 -1
  92. package/hooks/use-raf-state/index.js +1 -1
  93. package/hooks/use-raf-timeout/index.js +1 -1
  94. package/hooks/use-reactive/index.js +1 -1
  95. package/hooks/use-ref-latest/index.js +1 -1
  96. package/hooks/use-refs/index.js +15 -7
  97. package/hooks/use-request/index.js +1 -1
  98. package/hooks/use-request/src/Fetch.js +1 -1
  99. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  100. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  101. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  102. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  103. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  104. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  105. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  106. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  107. package/hooks/use-request/src/useRequest.js +1 -1
  108. package/hooks/use-request/src/useRequestImplement.js +1 -1
  109. package/hooks/use-request/src/utils/cache.js +1 -1
  110. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  111. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  112. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  113. package/hooks/use-request/src/utils/isOnline.js +1 -1
  114. package/hooks/use-request/src/utils/limit.js +1 -1
  115. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  116. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  117. package/hooks/use-reset-state/index.js +1 -1
  118. package/hooks/use-resize-observer/index.js +1 -1
  119. package/hooks/use-resize-observers/index.js +1 -1
  120. package/hooks/use-responsive/index.js +26 -25
  121. package/hooks/use-safe-state/index.js +1 -1
  122. package/hooks/use-scroll/index.js +1 -1
  123. package/hooks/use-selections/index.js +1 -1
  124. package/hooks/use-session-storage-state/index.js +1 -1
  125. package/hooks/use-set/index.js +1 -1
  126. package/hooks/use-set-state/index.js +1 -1
  127. package/hooks/use-size/index.js +1 -1
  128. package/hooks/use-state-callback/index.js +1 -1
  129. package/hooks/use-state-with-promise/index.js +1 -1
  130. package/hooks/use-sync-state/index.js +1 -1
  131. package/hooks/use-text-selection/index.js +1 -1
  132. package/hooks/use-theme/index.js +1 -1
  133. package/hooks/use-throttle/index.js +1 -1
  134. package/hooks/use-throttle-effect/index.js +1 -1
  135. package/hooks/use-throttle-fn/index.js +1 -1
  136. package/hooks/use-timeout/index.js +1 -1
  137. package/hooks/use-title/index.js +1 -1
  138. package/hooks/use-toggle/index.js +1 -1
  139. package/hooks/use-tracked-effect/index.js +1 -1
  140. package/hooks/use-unmount/index.js +1 -1
  141. package/hooks/use-unmounted-ref/index.js +1 -1
  142. package/hooks/use-update/index.js +1 -1
  143. package/hooks/use-update-effect/index.js +1 -1
  144. package/hooks/use-update-layout-effect/index.js +1 -1
  145. package/hooks/use-url-state/index.js +1 -1
  146. package/hooks/use-virtual-list/index.js +1 -1
  147. package/hooks/use-watch/index.js +1 -1
  148. package/hooks/use-web-socket/index.js +1 -1
  149. package/hooks/use-why-did-you-update/index.js +1 -1
  150. package/hooks/use-window-size/index.js +1 -1
  151. package/hooks/useAsyncEffect.js +1 -1
  152. package/hooks/useBoolean.js +1 -1
  153. package/hooks/useClickAway.js +1 -1
  154. package/hooks/useComputedState.js +1 -1
  155. package/hooks/useControllableValue.js +1 -1
  156. package/hooks/useCookieState.js +1 -1
  157. package/hooks/useCountDown.js +1 -1
  158. package/hooks/useCounter.js +1 -1
  159. package/hooks/useCreate.js +1 -1
  160. package/hooks/useCreation.js +1 -1
  161. package/hooks/useDebounce.js +1 -1
  162. package/hooks/useDebounceEffect.js +1 -1
  163. package/hooks/useDebounceFn.js +1 -1
  164. package/hooks/useDeepCompareEffect.js +1 -1
  165. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  166. package/hooks/useDocumentVisibility.js +1 -1
  167. package/hooks/useDrag.js +1 -1
  168. package/hooks/useDrop.js +1 -1
  169. package/hooks/useEvent.js +1 -1
  170. package/hooks/useEventListener.js +1 -1
  171. package/hooks/useEventTarget.js +1 -1
  172. package/hooks/useExternal.js +1 -1
  173. package/hooks/useFavicon.js +1 -1
  174. package/hooks/useFocusWithin.js +1 -1
  175. package/hooks/useForceUpdate.js +1 -1
  176. package/hooks/useFullscreen.js +1 -1
  177. package/hooks/useGetState.js +1 -1
  178. package/hooks/useHistoryTravel.js +1 -1
  179. package/hooks/useHover.js +1 -1
  180. package/hooks/useId.js +1 -1
  181. package/hooks/useInView.js +1 -1
  182. package/hooks/useInViewport.js +1 -1
  183. package/hooks/useInfiniteScroll.js +1 -1
  184. package/hooks/useIntersectionObserver.js +1 -1
  185. package/hooks/useIntersectionObservers.js +1 -1
  186. package/hooks/useInterval.js +1 -1
  187. package/hooks/useIsFirstRender.js +1 -1
  188. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  189. package/hooks/useKeyPress.js +1 -1
  190. package/hooks/useKeyboardEvent.js +1 -1
  191. package/hooks/useLatest.js +1 -1
  192. package/hooks/useListenWindowResize.js +1 -1
  193. package/hooks/useLocalStorageState.js +1 -1
  194. package/hooks/useLockFn.js +1 -1
  195. package/hooks/useLongPress.js +1 -1
  196. package/hooks/useMap.js +1 -1
  197. package/hooks/useMedia.js +1 -1
  198. package/hooks/useMemo.js +1 -1
  199. package/hooks/useMemoizedFn.js +1 -1
  200. package/hooks/useMergeProps.js +1 -1
  201. package/hooks/useMergeValue.js +1 -1
  202. package/hooks/useMobile.js +1 -1
  203. package/hooks/useMount.js +1 -1
  204. package/hooks/useMouse.js +1 -1
  205. package/hooks/useMove.js +1 -1
  206. package/hooks/useMutationObserver.js +1 -1
  207. package/hooks/useMutationObservers.js +1 -1
  208. package/hooks/useNetwork.js +1 -1
  209. package/hooks/useOnlineStatus.js +1 -1
  210. package/hooks/useOverflowHidden.js +1 -1
  211. package/hooks/useOverrideRef.js +1 -1
  212. package/hooks/usePagination.js +1 -1
  213. package/hooks/usePasteImage.js +1 -1
  214. package/hooks/usePersistCallback.js +1 -1
  215. package/hooks/usePrefersColorSchemeDark.js +1 -1
  216. package/hooks/usePrevious.js +1 -1
  217. package/hooks/useRafInterval.js +1 -1
  218. package/hooks/useRafState.js +1 -1
  219. package/hooks/useRafTimeout.js +1 -1
  220. package/hooks/useReactive.js +1 -1
  221. package/hooks/useRefLatest.js +1 -1
  222. package/hooks/useRefs.js +5 -3
  223. package/hooks/useRequest.js +1 -1
  224. package/hooks/useResetState.js +1 -1
  225. package/hooks/useResizeObserver.js +1 -1
  226. package/hooks/useResizeObservers.js +1 -1
  227. package/hooks/useResponsive.js +1 -1
  228. package/hooks/useSafeState.js +1 -1
  229. package/hooks/useScroll.js +1 -1
  230. package/hooks/useSelections.js +1 -1
  231. package/hooks/useSessionStorageState.js +1 -1
  232. package/hooks/useSet.js +1 -1
  233. package/hooks/useSetState.js +1 -1
  234. package/hooks/useSize.js +1 -1
  235. package/hooks/useStateCallback.js +1 -1
  236. package/hooks/useStateWithPromise.js +1 -1
  237. package/hooks/useSyncState.js +1 -1
  238. package/hooks/useTextSelection.js +1 -1
  239. package/hooks/useTheme.js +1 -1
  240. package/hooks/useThrottle.js +1 -1
  241. package/hooks/useThrottleEffect.js +1 -1
  242. package/hooks/useThrottleFn.js +1 -1
  243. package/hooks/useTimeout.js +1 -1
  244. package/hooks/useTitle.js +1 -1
  245. package/hooks/useToggle.js +1 -1
  246. package/hooks/useTrackedEffect.js +1 -1
  247. package/hooks/useUnmount.js +1 -1
  248. package/hooks/useUnmountedRef.js +1 -1
  249. package/hooks/useUpdate.js +1 -1
  250. package/hooks/useUpdateEffect.js +1 -1
  251. package/hooks/useUpdateLayoutEffect.js +1 -1
  252. package/hooks/useUrlState.js +1 -1
  253. package/hooks/useVirtualList.js +1 -1
  254. package/hooks/useWatch.js +1 -1
  255. package/hooks/useWebSocket.js +1 -1
  256. package/hooks/useWhyDidYouUpdate.js +1 -1
  257. package/hooks/useWindowSize.js +1 -1
  258. package/hooks/utils/createEffectWithTarget.js +1 -1
  259. package/hooks/utils/depsAreSame.js +1 -1
  260. package/hooks/utils/depsEqual.js +1 -1
  261. package/hooks/utils/domTarget.js +1 -1
  262. package/hooks/utils/getDocumentOrShadow.js +1 -1
  263. package/hooks/utils/index.js +1 -1
  264. package/hooks/utils/isAppleDevice.js +1 -1
  265. package/hooks/utils/isBrowser.js +1 -1
  266. package/hooks/utils/isDev.js +1 -1
  267. package/hooks/utils/rect.js +1 -1
  268. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  269. package/hooks/utils/useEffectWithTarget.js +1 -1
  270. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  271. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  272. package/hooks/utils.js +1 -1
  273. package/icons/file/index.js +1 -1
  274. package/icons/file.js +1 -1
  275. package/index.js +442 -443
  276. package/motion/CSSMotion.js +34 -32
  277. package/motion/CSSMotionList.js +1 -1
  278. package/motion/context.js +1 -1
  279. package/motion/hooks/useDomMotionEvents.js +1 -1
  280. package/motion/hooks/useNextFrame.js +1 -1
  281. package/motion/hooks/useStatus.js +1 -1
  282. package/motion/hooks/useStepQueue.js +1 -1
  283. package/motion/index.js +1 -1
  284. package/motion/interface.js +1 -1
  285. package/motion/util/diff.js +33 -31
  286. package/motion/util/motion.js +26 -25
  287. package/package.json +1 -1
  288. package/progress/index.js +1 -1
  289. package/resize-observer/Collection.js +1 -1
  290. package/resize-observer/SingleObserver.js +7 -5
  291. package/resize-observer/index.js +13 -11
  292. package/resize-observer/observerUtil.js +1 -1
  293. package/space/index.js +1 -1
  294. package/suspense-fallback-test/index.js +1 -1
  295. package/timer/index.js +1 -1
  296. package/transition-group/CSSTransition.js +26 -26
  297. package/transition-group/ChildMapping.js +1 -1
  298. package/transition-group/PqbCSSTransition.js +1 -1
  299. package/transition-group/ReplaceTransition.js +1 -1
  300. package/transition-group/SwitchTransition.js +1 -1
  301. package/transition-group/Transition.js +28 -29
  302. package/transition-group/TransitionGroup.js +1 -1
  303. package/transition-group/TransitionGroupContext.js +1 -1
  304. package/transition-group/index.js +19 -21
  305. package/types/hooks/index.d.ts +1 -1
  306. package/types/hooks/use-refs/index.d.ts +2 -0
  307. package/types/motion/CSSMotion.d.ts +3 -3
  308. package/types/motion/CSSMotionList.d.ts +4 -4
  309. package/types/transition-group/index.d.ts +1 -2
  310. package/utils/callOrReturn.js +1 -1
  311. package/utils/callbackOriginRef.js +1 -1
  312. package/utils/caseName.js +1 -1
  313. package/utils/className.js +1 -1
  314. package/utils/compute.js +1 -1
  315. package/utils/constant.js +1 -1
  316. package/utils/copy.js +1 -1
  317. package/utils/date.js +1 -1
  318. package/utils/dayjs.js +1 -1
  319. package/utils/dom.js +1 -1
  320. package/utils/emitter.js +1 -1
  321. package/utils/fileRead.js +1 -1
  322. package/utils/fileToDataURL.js +1 -1
  323. package/utils/fillNBSP.js +1 -1
  324. package/utils/findRootElement.js +7 -8
  325. package/utils/findScrollParent.js +1 -1
  326. package/utils/getHighlightText.js +1 -1
  327. package/utils/getHotkeyHandler.js +1 -1
  328. package/utils/getStringLength.js +1 -1
  329. package/utils/include.js +1 -1
  330. package/utils/index.js +1 -1
  331. package/utils/intersectionObserver.js +1 -1
  332. package/utils/is.js +1 -1
  333. package/utils/keyboardCode.js +1 -1
  334. package/utils/lodash.js +1 -1
  335. package/utils/math.js +1 -1
  336. package/utils/mergeProps.js +1 -1
  337. package/utils/mergedToString.js +1 -1
  338. package/utils/mutationObserver.js +1 -1
  339. package/utils/omit.js +1 -1
  340. package/utils/pad.js +1 -1
  341. package/utils/pick.js +1 -1
  342. package/utils/pinyin.js +1 -1
  343. package/utils/react19Adapter.js +1 -1
  344. package/utils/ref.js +1 -1
  345. package/utils/resizeObserver.js +1 -1
  346. package/utils/saveAs.js +1 -1
  347. package/utils/screenfull.js +1 -1
  348. package/utils/scrollIntoViewIfNeeded.js +1 -1
  349. package/utils/setCreateRoot.js +1 -1
  350. package/utils/setDarkTheme.js +1 -1
  351. package/utils/setDir.js +1 -1
  352. package/utils/setPrimaryColor.js +1 -1
  353. package/utils/setTheme.js +1 -1
  354. package/utils/string.js +1 -1
  355. package/utils/style.js +1 -1
  356. package/utils/throttleByRaf.js +1 -1
  357. package/utils/throttleByRaf2.js +1 -1
  358. package/utils/tinycolor.js +1 -1
  359. package/utils/toArray.js +1 -1
  360. package/utils/tree.js +1 -1
  361. package/utils/tween.js +1 -1
  362. package/utils/uuid.js +1 -1
  363. package/utils/validate.js +1 -1
  364. package/utils/warning.js +1 -1
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as S, useRef as T, useMemo as _ } from "react";
3
3
  import k from "../use-event-listener/index.js";
4
4
  import s from "../use-memoized-fn/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as c } from "react";
3
3
  import { isServerRendering as i } from "../../utils/is.js";
4
4
  import { isUndefined as u } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import v from "lodash/throttle";
3
3
  import { useState as d, useDeferredValue as E, useEffect as O } from "react";
4
4
  import { NOOP as s } from "../../utils/constant.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as u, useCallback as c, useEffect as f } from "react";
3
3
  import "../../utils/is.js";
4
4
  import o from "../use-memoized-fn/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as r, useEffect as t } from "react";
3
3
  function u() {
4
4
  const e = r(!0);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useLayoutEffect as o, useEffect as t } from "react";
3
3
  import { isBrowser as e } from "@unicom-cloud/utils/constant/platform";
4
4
  const s = e ? o : t;
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import "../../utils/is.js";
3
3
  import l from "../use-latest/index.js";
4
4
  import { getTargetElement as k } from "../utils/domTarget.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { Enter as t, ArrowDown as i, ArrowLeft as w, ArrowRight as f, ArrowUp as y } from "@unicom-cloud/utils/constant/keyboardCode";
3
3
  import { useCallback as A } from "react";
4
4
  function E(n) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as r } from "react";
3
3
  function n(t) {
4
4
  const e = r(t);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useEffect as i } from "react";
3
3
  function o(e, n = []) {
4
4
  i(() => (window.addEventListener("resize", e), window.addEventListener("orientationchange", e), () => {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import o from "../create-use-storage-state/index.js";
3
3
  import { isBrowser as t } from "@unicom-cloud/utils/constant/platform";
4
4
  const a = o(
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as n, useCallback as u } from "react";
3
3
  function o(e) {
4
4
  const r = n(!1);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as s } from "react";
3
3
  import v from "../use-latest/index.js";
4
4
  import { getTargetElement as D } from "../utils/domTarget.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as f } from "react";
3
3
  import t from "../use-memoized-fn/index.js";
4
4
  function d(c) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as o, useEffect as i } from "react";
3
3
  const r = (t, e) => e !== void 0 ? e : window.matchMedia(t).matches, d = (t, e) => {
4
4
  const [c, a] = o(r(t, e));
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import n from "react";
3
3
  function o(t, r, u) {
4
4
  const e = n.useRef({});
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as t, useMemo as n } from "react";
3
3
  import "../../utils/is.js";
4
4
  import u from "../utils/isDev.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useMemo as m } from "react";
3
3
  import { omit as u } from "../../utils/omit.js";
4
4
  function c(r, e, i = {}) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as n, useEffect as m } from "react";
3
3
  import "../../utils/is.js";
4
4
  import d from "../use-is-first-render/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import t from "@unicom-cloud/utils/constant/isMobile";
3
3
  import { useState as r } from "react";
4
4
  import s from "../use-isomorphic-layout-effect/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useEffect as t } from "react";
3
3
  import "../../utils/is.js";
4
4
  import e from "../utils/isDev.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import p from "../use-event-listener/index.js";
3
3
  import P from "../use-raf-state/index.js";
4
4
  import { getTargetElement as d } from "../utils/domTarget.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as k, useRef as F, useEffect as v } from "react";
3
3
  import { on as m, off as g } from "../../utils/dom.js";
4
4
  import { findRootElement as w } from "../../utils/findRootElement.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import a from "../use-latest/index.js";
3
3
  import { getTargetElement as c } from "../utils/domTarget.js";
4
4
  import m from "../utils/useDeepCompareWithTarget.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import h from "lodash/throttle";
3
3
  import { useState as v, useDeferredValue as O, useEffect as E } from "react";
4
4
  import "react-is";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as f, useEffect as l } from "react";
3
3
  import "../../utils/is.js";
4
4
  import { isObject as v } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useSyncExternalStore as n, useDebugValue as i } from "react";
3
3
  function t(e) {
4
4
  return window.addEventListener("online", e), window.addEventListener("offline", e), () => {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as d, useEffect as f } from "react";
3
3
  function a(o, { hidden: s }) {
4
4
  const c = d(!1), r = d({}), u = (t) => t === document.body || t.tagName?.toLowerCase?.() === "body" ? window.innerWidth - (document.body.clientWidth || document.documentElement.clientWidth) : t.offsetWidth - t.clientWidth, l = () => {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import f, { useCallback as l, isValidElement as u, cloneElement as c } from "react";
3
3
  import { callbackOriginRef as a } from "../../utils/callbackOriginRef.js";
4
4
  import { supportRef as m } from "../../utils/ref.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useMemo as M } from "react";
3
3
  import s from "../use-memoized-fn/index.js";
4
4
  import x from "../use-request/src/useRequest.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as l, useEffect as d } from "react";
3
3
  import "../../utils/is.js";
4
4
  import y from "../use-latest/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as u, useCallback as s } from "react";
3
3
  function c(r) {
4
4
  const e = u(r);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { MATCH_MEDIA_PREFERS_COLOR_SCHEME_DARK as e } from "@unicom-cloud/utils/constant";
3
3
  import { useState as o, useEffect as s } from "react";
4
4
  function m() {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as t, useEffect as u } from "react";
3
3
  function n(r) {
4
4
  const e = t(void 0);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as s, useCallback as m, useEffect as u } from "react";
3
3
  import "../../utils/is.js";
4
4
  import f from "../use-latest/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as s, useState as u, useCallback as c } from "react";
3
3
  import m from "../use-unmount/index.js";
4
4
  function l(e) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as u, useCallback as m, useEffect as s } from "react";
3
3
  import "../../utils/is.js";
4
4
  import c from "../use-latest/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as y } from "react";
3
3
  import "../../utils/is.js";
4
4
  import d from "../use-creation/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import e from "../use-latest/index.js";
3
3
  export {
4
4
  e as default
@@ -1,11 +1,19 @@
1
- /* 2025-12-23 17:18:00 */
2
- import { useRef as f } from "react";
3
- function c(s = []) {
4
- const r = f(s), u = (t, e) => {
5
- e === void 0 ? r.current.push(t) : r.current[e] = t;
1
+ /* 2025-12-30 17:27:19 */
2
+ import { useRef as u } from "react";
3
+ function c(e = []) {
4
+ const r = u(e), s = (t, n) => {
5
+ n === void 0 ? r.current.push(t) : r.current[n] = t;
6
6
  };
7
- return [r.current, u];
7
+ return [r.current, s];
8
+ }
9
+ function o() {
10
+ const e = u(null);
11
+ return e.current === null && (e.current = /* @__PURE__ */ new Map()), [(t, n) => {
12
+ e.current.set(t, n);
13
+ }, (t) => e.current.get(t)];
8
14
  }
9
15
  export {
10
- c as default
16
+ c as default,
17
+ c as useRefs,
18
+ o as useRefs2
11
19
  };
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import r from "./src/useRequest.js";
3
3
  import { clearCache as a } from "./src/utils/cache.js";
4
4
  export {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import "../../../utils/is.js";
3
3
  import { isFunction as u } from "@unicom-cloud/utils/is";
4
4
  class c {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as s } from "react";
3
3
  import o from "../../../use-update-effect/index.js";
4
4
  const l = (r, {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as l } from "react";
3
3
  import C from "../../../use-creation/index.js";
4
4
  import w from "../../../use-unmount/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import l from "lodash/debounce";
3
3
  import { useRef as p, useMemo as v, useEffect as y } from "react";
4
4
  const P = (n, { debounceWait: o, debounceLeading: s, debounceTrailing: u, debounceMaxWait: i }) => {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as u } from "react";
3
3
  const a = (n, { loadingDelay: t, ready: o }) => {
4
4
  const e = u(void 0);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as o } from "react";
3
3
  import n from "../../../use-update-effect/index.js";
4
4
  import m from "../utils/isDocumentVisible.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as u, useEffect as f } from "react";
3
3
  import m from "../../../use-unmount/index.js";
4
4
  import n from "../utils/limit.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as u } from "react";
3
3
  const f = (c, { retryInterval: o, retryCount: t }) => {
4
4
  const e = u(void 0), r = u(0), n = u(!1);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import m from "lodash/throttle";
3
3
  import { useRef as p, useEffect as y } from "react";
4
4
  const P = (n, { throttleWait: r, throttleLeading: c, throttleTrailing: o }) => {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import r from "./plugins/useAutoRunPlugin.js";
3
3
  import i from "./plugins/useCachePlugin.js";
4
4
  import m from "./plugins/useDebouncePlugin.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import "../../../utils/is.js";
3
3
  import p from "../../use-creation/index.js";
4
4
  import l from "../../use-latest/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import s from "lodash/castArray";
3
3
  const t = /* @__PURE__ */ new Map(), n = (e, c, r) => {
4
4
  const a = t.get(e);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  const t = /* @__PURE__ */ new Map(), s = (e) => t.get(e), o = (e, n) => {
3
3
  t.set(e, n), n.then((r) => (t.delete(e), r)).catch(() => {
4
4
  t.delete(e);
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  const n = {}, t = (s, c) => {
3
3
  n[s] && n[s].forEach((i) => i(c));
4
4
  }, o = (s, c) => (n[s] || (n[s] = []), n[s].push(c), function() {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { isBrowser as i } from "@unicom-cloud/utils/constant/platform";
3
3
  function e() {
4
4
  return i ? document.visibilityState !== "hidden" : !0;
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import "../../../../utils/is.js";
3
3
  import { isBrowser as r } from "@unicom-cloud/utils/constant/platform";
4
4
  import { isUndefined as i } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  function r(t, i) {
3
3
  let e = !1;
4
4
  return (...n) => {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { isBrowser as s } from "@unicom-cloud/utils/constant/platform";
3
3
  import t from "./isDocumentVisible.js";
4
4
  import r from "./isOnline.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { isBrowser as r } from "@unicom-cloud/utils/constant/platform";
3
3
  import s from "./isDocumentVisible.js";
4
4
  const i = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useRef as i, useState as a } from "react";
3
3
  import "../../utils/is.js";
4
4
  import m from "../use-creation/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import o from "../use-size/index.js";
3
3
  export {
4
4
  o as default
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import v from "lodash/throttle";
3
3
  import { useState as d, useDeferredValue as E, useEffect as O } from "react";
4
4
  import "react-is";
@@ -1,47 +1,48 @@
1
- /* 2025-12-23 17:18:00 */
2
- import { useState as l, useEffect as a } from "react";
3
- import { isBrowser as u } from "@unicom-cloud/utils/constant/platform";
1
+ /* 2025-12-30 17:27:19 */
2
+ import { useState as u, useEffect as a } from "react";
3
+ import { isBrowser as d } from "@unicom-cloud/utils/constant/platform";
4
4
  const r = /* @__PURE__ */ new Set();
5
5
  let e, c = {
6
6
  xs: 0,
7
7
  sm: 576,
8
8
  md: 768,
9
9
  lg: 992,
10
- xl: 1200
10
+ xl: 1200,
11
+ xxl: 1600,
12
+ xxxl: 2e3
11
13
  };
12
14
  function f() {
13
15
  const t = e;
14
- if (d(), t !== e)
15
- for (const n of r)
16
- n();
16
+ if (l(), t !== e)
17
+ for (const s of r)
18
+ s();
17
19
  }
18
20
  let o = !1;
19
- function d() {
20
- const t = window.innerWidth, n = {};
21
- let s = !1;
21
+ function l() {
22
+ const t = window.innerWidth, s = {};
23
+ let n = !1;
22
24
  for (const i of Object.keys(c))
23
- n[i] = t >= c[i], n[i] !== e[i] && (s = !0);
24
- s && (e = n);
25
+ s[i] = t >= c[i], s[i] !== e[i] && (n = !0);
26
+ n && (e = s);
25
27
  }
26
- function m(t) {
27
- c = t, e && d();
28
+ function b(t) {
29
+ c = t, e && l();
28
30
  }
29
- function p() {
30
- u && !o && (e = {}, d(), window.addEventListener("resize", f), o = !0);
31
- const [t, n] = l(e);
31
+ function m() {
32
+ d && !o && (e = {}, l(), window.addEventListener("resize", f), o = !0);
33
+ const [t, s] = u(e);
32
34
  return a(() => {
33
- if (!u)
34
- return;
35
+ if (!d) return;
35
36
  o || window.addEventListener("resize", f);
36
- const s = () => {
37
- n(e);
37
+ const n = () => {
38
+ s(e);
38
39
  };
39
- return r.add(s), () => {
40
- r.delete(s), r.size === 0 && (window.removeEventListener("resize", f), o = !1);
40
+ return r.add(n), () => {
41
+ r.delete(n), r.size === 0 && (window.removeEventListener("resize", f), o = !1);
41
42
  };
42
43
  }, []), t;
43
44
  }
44
45
  export {
45
- m as configResponsive,
46
- p as default
46
+ b as configResponsive,
47
+ m as default
47
48
  };
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as a } from "react";
3
3
  import s from "../use-unmounted-ref/index.js";
4
4
  function c(t) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import m from "../use-latest/index.js";
3
3
  import f from "../use-raf-state/index.js";
4
4
  import { getTargetElement as i } from "../utils/domTarget.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as b, useMemo as S } from "react";
3
3
  import "../../utils/is.js";
4
4
  import r from "../use-memoized-fn/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import e from "../create-use-storage-state/index.js";
3
3
  import { isBrowser as o } from "@unicom-cloud/utils/constant/platform";
4
4
  const s = e(
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as m } from "react";
3
3
  import s from "../use-memoized-fn/index.js";
4
4
  function S(a) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as i } from "react";
3
3
  import "../../utils/is.js";
4
4
  import u from "../use-memoized-fn/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useDeferredValue as l, useEffect as p } from "react";
3
3
  import "../../utils/is.js";
4
4
  import d from "../use-latest/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-23 17:18:00 */
1
+ /* 2025-12-30 17:27:19 */
2
2
  import { useState as l, useRef as n, useCallback as f, useEffect as o } from "react";
3
3
  function b(a) {
4
4
  const [t, s] = l(a), e = n(null), u = f(