@unicom-cloud/ui-common 0.1.5 → 0.1.7

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 (396) hide show
  1. package/Development.js +1 -1
  2. package/Empty.js +1 -1
  3. package/Flex.js +1 -1
  4. package/Motion.js +9 -0
  5. package/Progress.js +1 -1
  6. package/ResizeObserver.js +10 -0
  7. package/Space.js +1 -1
  8. package/SuspenseFallbackTest.js +1 -1
  9. package/TransitionGroup.js +30 -29
  10. package/development/index.js +38 -27
  11. package/empty/index.js +36 -32
  12. package/flex/index.js +56 -50
  13. package/flex/interface.js +1 -1
  14. package/higher-order/index.js +1 -1
  15. package/higher-order/with-speech-synthesis/index.js +33 -37
  16. package/higher-order/withSpeechSynthesis.js +1 -1
  17. package/hooks/create-deep-compare-effect/index.js +1 -1
  18. package/hooks/create-update-effect/index.js +1 -1
  19. package/hooks/create-use-storage-state/index.js +1 -1
  20. package/hooks/createDeepCompareEffect.js +1 -1
  21. package/hooks/createUpdateEffect.js +1 -1
  22. package/hooks/createUseStorageState.js +1 -1
  23. package/hooks/index.js +177 -171
  24. package/hooks/use-async-effect/index.js +1 -1
  25. package/hooks/use-boolean/index.js +1 -1
  26. package/hooks/use-click-away/index.js +19 -20
  27. package/hooks/use-computed-state/index.js +1 -1
  28. package/hooks/use-controllable-value/index.js +5 -5
  29. package/hooks/use-cookie-state/index.js +1 -1
  30. package/hooks/use-count-down/index.js +3 -3
  31. package/hooks/use-counter/index.js +1 -1
  32. package/hooks/use-create/index.js +1 -1
  33. package/hooks/use-creation/index.js +1 -1
  34. package/hooks/use-debounce/index.js +1 -1
  35. package/hooks/use-debounce-effect/index.js +1 -1
  36. package/hooks/use-debounce-fn/index.js +1 -1
  37. package/hooks/use-deep-compare-effect/index.js +1 -1
  38. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  39. package/hooks/use-document-visibility/index.js +1 -1
  40. package/hooks/use-drag/index.js +10 -10
  41. package/hooks/use-drop/index.js +1 -1
  42. package/hooks/use-event/index.js +10 -0
  43. package/hooks/use-event-listener/index.js +15 -16
  44. package/hooks/use-event-target/index.js +3 -3
  45. package/hooks/use-external/index.js +1 -1
  46. package/hooks/use-favicon/index.js +1 -1
  47. package/hooks/use-focus-within/index.js +1 -1
  48. package/hooks/use-force-update/index.js +1 -1
  49. package/hooks/use-fullscreen/index.js +13 -13
  50. package/hooks/use-get-state/index.js +6 -6
  51. package/hooks/use-history-travel/index.js +18 -18
  52. package/hooks/use-hover/index.js +1 -1
  53. package/hooks/use-id/index.js +1 -1
  54. package/hooks/use-in-view/index.js +1 -1
  55. package/hooks/use-in-viewport/index.js +17 -18
  56. package/hooks/use-infinite-scroll/index.js +1 -1
  57. package/hooks/use-intersection-observer/index.js +7 -6
  58. package/hooks/use-intersection-observers/index.js +34 -26
  59. package/hooks/use-interval/index.js +7 -7
  60. package/hooks/use-is-first-render/index.js +1 -1
  61. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  62. package/hooks/use-key-press/index.js +21 -21
  63. package/hooks/use-keyboard-event/index.js +1 -1
  64. package/hooks/use-latest/index.js +1 -1
  65. package/hooks/use-listen-window-resize/index.js +4 -4
  66. package/hooks/use-local-storage-state/index.js +1 -1
  67. package/hooks/use-lock-fn/index.js +1 -1
  68. package/hooks/use-long-press/index.js +24 -24
  69. package/hooks/use-map/index.js +1 -1
  70. package/hooks/use-media/index.js +1 -1
  71. package/hooks/use-memo/index.js +9 -0
  72. package/hooks/use-memoized-fn/index.js +1 -1
  73. package/hooks/use-merge-props/index.js +1 -1
  74. package/hooks/use-merge-value/index.js +1 -1
  75. package/hooks/use-mount/index.js +1 -1
  76. package/hooks/use-mouse/index.js +1 -1
  77. package/hooks/use-mutation-observer/index.js +9 -9
  78. package/hooks/use-mutation-observers/index.js +33 -25
  79. package/hooks/use-network/index.js +1 -1
  80. package/hooks/use-online-status/index.js +1 -1
  81. package/hooks/use-overflow-hidden/index.js +1 -1
  82. package/hooks/use-override-ref/index.js +3 -3
  83. package/hooks/use-pagination/index.js +1 -1
  84. package/hooks/use-persist-callback/index.js +1 -1
  85. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  86. package/hooks/use-previous/index.js +1 -1
  87. package/hooks/use-raf-interval/index.js +15 -15
  88. package/hooks/use-raf-state/index.js +1 -1
  89. package/hooks/use-raf-timeout/index.js +3 -3
  90. package/hooks/use-reactive/index.js +7 -7
  91. package/hooks/use-ref-latest/index.js +1 -1
  92. package/hooks/use-refs/index.js +4 -4
  93. package/hooks/use-request/index.js +1 -1
  94. package/hooks/use-request/src/Fetch.js +1 -1
  95. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  96. package/hooks/use-request/src/plugins/useCachePlugin.js +3 -3
  97. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  98. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +8 -8
  99. package/hooks/use-request/src/plugins/usePollingPlugin.js +13 -13
  100. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +3 -3
  101. package/hooks/use-request/src/plugins/useRetryPlugin.js +5 -5
  102. package/hooks/use-request/src/plugins/useThrottlePlugin.js +3 -3
  103. package/hooks/use-request/src/useRequest.js +1 -1
  104. package/hooks/use-request/src/useRequestImplement.js +7 -7
  105. package/hooks/use-request/src/utils/cache.js +1 -1
  106. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  107. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  108. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  109. package/hooks/use-request/src/utils/isOnline.js +1 -1
  110. package/hooks/use-request/src/utils/limit.js +1 -1
  111. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  112. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  113. package/hooks/use-reset-state/index.js +7 -7
  114. package/hooks/use-resize-observer/index.js +1 -1
  115. package/hooks/use-resize-observers/index.js +34 -26
  116. package/hooks/use-responsive/index.js +1 -1
  117. package/hooks/use-safe-state/index.js +4 -4
  118. package/hooks/use-scroll/index.js +1 -1
  119. package/hooks/use-selections/index.js +1 -1
  120. package/hooks/use-session-storage-state/index.js +1 -1
  121. package/hooks/use-set/index.js +1 -1
  122. package/hooks/use-set-state/index.js +1 -1
  123. package/hooks/use-size/index.js +20 -23
  124. package/hooks/use-state-callback/index.js +6 -6
  125. package/hooks/use-state-with-promise/index.js +1 -1
  126. package/hooks/use-sync-state/index.js +15 -0
  127. package/hooks/use-text-selection/index.js +13 -13
  128. package/hooks/use-theme/index.js +1 -1
  129. package/hooks/use-throttle/index.js +1 -1
  130. package/hooks/use-throttle-effect/index.js +1 -1
  131. package/hooks/use-throttle-fn/index.js +6 -6
  132. package/hooks/use-timeout/index.js +3 -3
  133. package/hooks/use-title/index.js +1 -1
  134. package/hooks/use-toggle/index.js +1 -1
  135. package/hooks/use-tracked-effect/index.js +1 -1
  136. package/hooks/use-unmount/index.js +1 -1
  137. package/hooks/use-unmounted-ref/index.js +4 -4
  138. package/hooks/use-update/index.js +1 -1
  139. package/hooks/use-update-effect/index.js +1 -1
  140. package/hooks/use-update-layout-effect/index.js +1 -1
  141. package/hooks/use-url-state/index.js +3 -3
  142. package/hooks/use-virtual-list/index.js +10 -10
  143. package/hooks/use-watch/index.js +1 -1
  144. package/hooks/use-web-socket/index.js +30 -30
  145. package/hooks/use-why-did-you-update/index.js +1 -1
  146. package/hooks/use-window-size/index.js +28 -25
  147. package/hooks/useAsyncEffect.js +1 -1
  148. package/hooks/useBoolean.js +1 -1
  149. package/hooks/useClickAway.js +4 -5
  150. package/hooks/useComputedState.js +1 -1
  151. package/hooks/useControllableValue.js +1 -1
  152. package/hooks/useCookieState.js +1 -1
  153. package/hooks/useCountDown.js +1 -1
  154. package/hooks/useCounter.js +1 -1
  155. package/hooks/useCreate.js +1 -1
  156. package/hooks/useCreation.js +1 -1
  157. package/hooks/useDebounce.js +1 -1
  158. package/hooks/useDebounceEffect.js +1 -1
  159. package/hooks/useDebounceFn.js +1 -1
  160. package/hooks/useDeepCompareEffect.js +1 -1
  161. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  162. package/hooks/useDocumentVisibility.js +1 -1
  163. package/hooks/useDrag.js +1 -1
  164. package/hooks/useDrop.js +1 -1
  165. package/hooks/useEvent.js +7 -0
  166. package/hooks/useEventListener.js +4 -5
  167. package/hooks/useEventTarget.js +1 -1
  168. package/hooks/useExternal.js +1 -1
  169. package/hooks/useFavicon.js +1 -1
  170. package/hooks/useFocusWithin.js +1 -1
  171. package/hooks/useForceUpdate.js +1 -1
  172. package/hooks/useFullscreen.js +1 -1
  173. package/hooks/useGetState.js +1 -1
  174. package/hooks/useHistoryTravel.js +1 -1
  175. package/hooks/useHover.js +1 -1
  176. package/hooks/useId.js +1 -1
  177. package/hooks/useInView.js +1 -1
  178. package/hooks/useInViewport.js +4 -5
  179. package/hooks/useInfiniteScroll.js +1 -1
  180. package/hooks/useIntersectionObserver.js +5 -4
  181. package/hooks/useIntersectionObservers.js +11 -7
  182. package/hooks/useInterval.js +1 -1
  183. package/hooks/useIsFirstRender.js +1 -1
  184. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  185. package/hooks/useKeyPress.js +1 -1
  186. package/hooks/useKeyboardEvent.js +1 -1
  187. package/hooks/useLatest.js +1 -1
  188. package/hooks/useListenWindowResize.js +1 -1
  189. package/hooks/useLocalStorageState.js +1 -1
  190. package/hooks/useLockFn.js +1 -1
  191. package/hooks/useLongPress.js +1 -1
  192. package/hooks/useMap.js +1 -1
  193. package/hooks/useMedia.js +1 -1
  194. package/hooks/useMemo.js +6 -0
  195. package/hooks/useMemoizedFn.js +1 -1
  196. package/hooks/useMergeProps.js +1 -1
  197. package/hooks/useMergeValue.js +1 -1
  198. package/hooks/useMount.js +1 -1
  199. package/hooks/useMouse.js +1 -1
  200. package/hooks/useMutationObserver.js +1 -1
  201. package/hooks/useMutationObservers.js +11 -7
  202. package/hooks/useNetwork.js +1 -1
  203. package/hooks/useOnlineStatus.js +1 -1
  204. package/hooks/useOverflowHidden.js +1 -1
  205. package/hooks/useOverrideRef.js +3 -3
  206. package/hooks/usePagination.js +1 -1
  207. package/hooks/usePersistCallback.js +1 -1
  208. package/hooks/usePrefersColorSchemeDark.js +1 -1
  209. package/hooks/usePrevious.js +1 -1
  210. package/hooks/useRafInterval.js +1 -1
  211. package/hooks/useRafState.js +1 -1
  212. package/hooks/useRafTimeout.js +1 -1
  213. package/hooks/useReactive.js +1 -1
  214. package/hooks/useRefLatest.js +1 -1
  215. package/hooks/useRefs.js +1 -1
  216. package/hooks/useRequest.js +1 -1
  217. package/hooks/useResetState.js +1 -1
  218. package/hooks/useResizeObserver.js +1 -1
  219. package/hooks/useResizeObservers.js +11 -7
  220. package/hooks/useResponsive.js +1 -1
  221. package/hooks/useSafeState.js +1 -1
  222. package/hooks/useScroll.js +1 -1
  223. package/hooks/useSelections.js +1 -1
  224. package/hooks/useSessionStorageState.js +1 -1
  225. package/hooks/useSet.js +1 -1
  226. package/hooks/useSetState.js +1 -1
  227. package/hooks/useSize.js +4 -3
  228. package/hooks/useStateCallback.js +1 -1
  229. package/hooks/useStateWithPromise.js +1 -1
  230. package/hooks/useSyncState.js +10 -0
  231. package/hooks/useTextSelection.js +1 -1
  232. package/hooks/useTheme.js +1 -1
  233. package/hooks/useThrottle.js +1 -1
  234. package/hooks/useThrottleEffect.js +1 -1
  235. package/hooks/useThrottleFn.js +1 -1
  236. package/hooks/useTimeout.js +1 -1
  237. package/hooks/useTitle.js +1 -1
  238. package/hooks/useToggle.js +1 -1
  239. package/hooks/useTrackedEffect.js +1 -1
  240. package/hooks/useUnmount.js +1 -1
  241. package/hooks/useUnmountedRef.js +1 -1
  242. package/hooks/useUpdate.js +1 -1
  243. package/hooks/useUpdateEffect.js +1 -1
  244. package/hooks/useUpdateLayoutEffect.js +1 -1
  245. package/hooks/useUrlState.js +1 -1
  246. package/hooks/useVirtualList.js +1 -1
  247. package/hooks/useWatch.js +1 -1
  248. package/hooks/useWebSocket.js +1 -1
  249. package/hooks/useWhyDidYouUpdate.js +1 -1
  250. package/hooks/useWindowSize.js +4 -3
  251. package/hooks/utils/createEffectWithTarget.js +11 -12
  252. package/hooks/utils/depsAreSame.js +1 -1
  253. package/hooks/utils/depsEqual.js +1 -1
  254. package/hooks/utils/domTarget.js +1 -1
  255. package/hooks/utils/getDocumentOrShadow.js +5 -6
  256. package/hooks/utils/index.js +1 -1
  257. package/hooks/utils/isAppleDevice.js +1 -1
  258. package/hooks/utils/isBrowser.js +1 -1
  259. package/hooks/utils/isDev.js +1 -1
  260. package/hooks/utils/rect.js +1 -1
  261. package/hooks/utils/useDeepCompareWithTarget.js +4 -4
  262. package/hooks/utils/useEffectWithTarget.js +1 -1
  263. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  264. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  265. package/hooks/utils.js +1 -1
  266. package/icons/file/index.js +31 -24
  267. package/icons/file.js +1 -1
  268. package/index.js +47 -46
  269. package/motion/CSSMotion.js +102 -0
  270. package/motion/CSSMotionList.js +100 -0
  271. package/motion/context.js +14 -0
  272. package/motion/hooks/useDomMotionEvents.js +21 -0
  273. package/motion/hooks/useNextFrame.js +24 -0
  274. package/motion/hooks/useStatus.js +121 -0
  275. package/motion/hooks/useStepQueue.js +44 -0
  276. package/motion/index.js +9 -0
  277. package/motion/interface.js +14 -0
  278. package/motion/util/diff.js +56 -0
  279. package/motion/util/motion.js +56 -0
  280. package/package.json +1 -1
  281. package/progress/index.js +1 -1
  282. package/resize-observer/Collection.js +25 -0
  283. package/resize-observer/SingleObserver.js +48 -0
  284. package/resize-observer/index.js +27 -0
  285. package/resize-observer/observerUtil.js +22 -0
  286. package/space/index.js +65 -52
  287. package/suspense-fallback-test/index.js +1 -1
  288. package/transition-group/CSSTransition.js +59 -54
  289. package/transition-group/ChildMapping.js +68 -0
  290. package/transition-group/PqbCSSTransition.js +22 -18
  291. package/transition-group/ReplaceTransition.js +7 -7
  292. package/transition-group/SwitchTransition.js +1 -1
  293. package/transition-group/Transition.js +56 -52
  294. package/transition-group/TransitionGroup.js +2 -3
  295. package/transition-group/TransitionGroupContext.js +1 -1
  296. package/transition-group/index.js +30 -29
  297. package/types/hooks/index.d.ts +3 -0
  298. package/types/hooks/use-event/index.d.ts +2 -0
  299. package/types/hooks/use-intersection-observers/index.d.ts +3 -1
  300. package/types/hooks/use-listen-window-resize/index.d.ts +4 -4
  301. package/types/hooks/use-memo/index.d.ts +2 -0
  302. package/types/hooks/use-mutation-observers/index.d.ts +3 -1
  303. package/types/hooks/use-resize-observers/index.d.ts +3 -1
  304. package/types/hooks/use-size/index.d.ts +1 -1
  305. package/types/hooks/use-sync-state/index.d.ts +10 -0
  306. package/types/hooks/use-window-size/index.d.ts +2 -3
  307. package/types/motion/CSSMotion.d.ts +77 -0
  308. package/types/motion/CSSMotionList.d.ts +34 -0
  309. package/types/motion/context.d.ts +9 -0
  310. package/types/motion/hooks/useDomMotionEvents.d.ts +3 -0
  311. package/types/motion/hooks/useNextFrame.d.ts +7 -0
  312. package/types/motion/hooks/useStatus.d.ts +5 -0
  313. package/types/motion/hooks/useStepQueue.d.ts +8 -0
  314. package/types/motion/index.d.ts +9 -0
  315. package/types/motion/interface.d.ts +22 -0
  316. package/types/motion/util/diff.d.ts +20 -0
  317. package/types/motion/util/motion.d.ts +10 -0
  318. package/types/resize-observer/Collection.d.ts +9 -0
  319. package/types/resize-observer/SingleObserver.d.ts +7 -0
  320. package/types/resize-observer/index.d.ts +7 -0
  321. package/types/resize-observer/interface.d.ts +25 -0
  322. package/types/resize-observer/observerUtil.d.ts +3 -0
  323. package/types/space/interface.d.ts +1 -1
  324. package/types/transition-group/CSSTransition.d.ts +0 -1
  325. package/types/transition-group/{utils/ChildMapping.d.ts → ChildMapping.d.ts} +4 -4
  326. package/types/transition-group/SwitchTransition.d.ts +3 -3
  327. package/types/transition-group/Transition.d.ts +1 -1
  328. package/types/transition-group/TransitionGroup.d.ts +1 -1
  329. package/types/transition-group/index.d.ts +1 -1
  330. package/types/utils/callbackOriginRef.d.ts +4 -0
  331. package/types/utils/dom.d.ts +2 -1
  332. package/types/utils/findRootElement.d.ts +23 -0
  333. package/types/utils/index.d.ts +4 -2
  334. package/types/utils/is.d.ts +5 -4
  335. package/types/utils/lodash.d.ts +2 -1
  336. package/types/utils/ref.d.ts +27 -0
  337. package/types/utils/setCreateRoot.d.ts +13 -0
  338. package/types/utils/toArray.d.ts +3 -3
  339. package/utils/callbackOriginRef.js +11 -0
  340. package/utils/caseName.js +1 -1
  341. package/utils/className.js +1 -1
  342. package/utils/compute.js +1 -1
  343. package/utils/constant.js +1 -1
  344. package/utils/copy.js +1 -1
  345. package/utils/date.js +1 -1
  346. package/utils/dayjs.js +1 -1
  347. package/utils/dom.js +12 -10
  348. package/utils/emitter.js +1 -1
  349. package/utils/fileToURL.js +1 -1
  350. package/utils/fillNBSP.js +1 -1
  351. package/utils/findRootElement.js +28 -0
  352. package/utils/findScrollParent.js +1 -1
  353. package/utils/getHighlightText.js +1 -1
  354. package/utils/getHotkeyHandler.js +1 -1
  355. package/utils/getStringLength.js +1 -1
  356. package/utils/include.js +1 -1
  357. package/utils/index.js +341 -329
  358. package/utils/intersectionObserver.js +1 -1
  359. package/utils/is.js +72 -81
  360. package/utils/keyboardCode.js +1 -1
  361. package/utils/lodash.js +45 -43
  362. package/utils/math.js +1 -1
  363. package/utils/mergeProps.js +1 -1
  364. package/utils/mergedToString.js +1 -1
  365. package/utils/mutationObserver.js +1 -1
  366. package/utils/omit.js +1 -1
  367. package/utils/pad.js +1 -1
  368. package/utils/pick.js +1 -1
  369. package/utils/pinyin.js +1 -1
  370. package/utils/react19Adapter.js +2 -2
  371. package/utils/ref.js +41 -0
  372. package/utils/resizeObserver.js +1 -1
  373. package/utils/saveAs.js +1 -1
  374. package/utils/screenfull.js +1 -1
  375. package/utils/scrollIntoViewIfNeeded.js +1 -1
  376. package/utils/setCreateRoot.js +53 -0
  377. package/utils/setDarkTheme.js +1 -1
  378. package/utils/setDir.js +1 -1
  379. package/utils/setPrimaryColor.js +1 -1
  380. package/utils/setTheme.js +1 -1
  381. package/utils/string.js +1 -1
  382. package/utils/style.js +1 -1
  383. package/utils/throttleByRaf.js +1 -1
  384. package/utils/throttleByRaf2.js +1 -1
  385. package/utils/tinycolor.js +1 -1
  386. package/utils/toArray.js +9 -9
  387. package/utils/tree.js +1 -1
  388. package/utils/tween.js +1 -1
  389. package/utils/uuid.js +1 -1
  390. package/utils/validate.js +1 -1
  391. package/utils/warning.js +1 -1
  392. package/transition-group/utils/ChildMapping.js +0 -66
  393. package/types/utils/reactDOM.d.ts +0 -34
  394. package/types/utils/supportRef.d.ts +0 -3
  395. package/utils/reactDOM.js +0 -87
  396. package/utils/supportRef.js +0 -10
@@ -1,54 +1,59 @@
1
- /* 2025-11-19 09:09:36 */
2
- import { jsx as l } from "react/jsx-runtime";
3
- import d from "react";
4
- import c from "@unicom-cloud/utils/dom-helpers/reflow";
1
+ /* 2025-11-27 12:10:58 */
2
+ import { jsx as h } from "react/jsx-runtime";
3
+ import m from "react";
4
+ import "@unicom-cloud/utils/dom-helpers/canUseDOM";
5
+ import d from "@unicom-cloud/utils/dom-helpers/reflow";
5
6
  import "../utils/is.js";
6
- import m from "./Transition.js";
7
+ import { findRootElement as c } from "../utils/findRootElement.js";
8
+ import E from "./Transition.js";
7
9
  import { isString as a } from "@unicom-cloud/utils/is";
8
- function n(r, s, t = "add") {
9
- r instanceof Element && s && a(s) && s.split(" ").filter(Boolean).forEach((e, i, o) => {
10
- r.classList[t](e);
10
+ function o(r, e, s = "add") {
11
+ r instanceof Element && e && a(e) && e.split(" ").filter(Boolean).forEach((t, i, n) => {
12
+ r.classList[s](t);
11
13
  });
12
14
  }
13
- class u extends d.Component {
15
+ class A extends m.Component {
14
16
  constructor() {
15
- super(...arguments), this.refElement = void 0, this.appliedClasses = {
17
+ super(...arguments), this.appliedClasses = {
16
18
  appear: {},
17
19
  enter: {},
18
20
  exit: {}
19
- }, this.onEnter = (s, t) => {
20
- const [e, i] = this.resolveArguments(
21
- s,
22
- t
21
+ }, this.onEnter = (e, s) => {
22
+ const [t, i] = this.resolveArguments(
23
+ e,
24
+ s
23
25
  );
24
- this.removeClasses(e, "exit"), this.addClass(e, i ? "appear" : "enter", "base"), this.props.onEnter && this.props.onEnter(s, t);
25
- }, this.onEntering = (s, t) => {
26
- const [e, i] = this.resolveArguments(
27
- s,
28
- t
29
- ), o = i ? "appear" : "enter";
30
- this.addClass(e, o, "active"), this.props.onEntering && this.props.onEntering(s, t);
31
- }, this.onEntered = (s, t) => {
32
- const [e, i] = this.resolveArguments(
33
- s,
34
- t
35
- ), o = i ? "appear" : "enter";
36
- this.removeClasses(e, o), this.addClass(e, o, "done"), this.props.onEntered && this.props.onEntered(s, t);
37
- }, this.onExit = (s) => {
38
- const [t] = this.resolveArguments(s);
39
- this.removeClasses(t, "appear"), this.removeClasses(t, "enter"), this.addClass(t, "exit", "base"), this.props.onExit && this.props.onExit(s);
40
- }, this.onExiting = (s) => {
41
- const [t] = this.resolveArguments(s);
42
- this.addClass(t, "exit", "active"), this.props.onExiting && this.props.onExiting(s);
43
- }, this.onExited = (s) => {
44
- const [t] = this.resolveArguments(s);
45
- this.removeClasses(t, "exit"), this.addClass(t, "exit", "done"), this.props.onExited && this.props.onExited(s);
46
- }, this.resolveArguments = (s, t) => this.props.refElement ? [this.props.refElement.current, s] : [s, t], this.getClassNames = (s) => {
47
- const { classNames: t } = this.props, e = a(t), i = e && t ? `${t}-` : "", o = e ? `${i}${s}` : t[s], p = e ? `${o}-active` : t[`${s}Active`], h = e ? `${o}-done` : t[`${s}Done`];
26
+ this.removeClasses(t, "exit"), this.addClass(t, i ? "appear" : "enter", "base"), this.props.onEnter && this.props.onEnter(t, s);
27
+ }, this.onEntering = (e, s) => {
28
+ const [t, i] = this.resolveArguments(
29
+ e,
30
+ s
31
+ ), n = i ? "appear" : "enter";
32
+ this.addClass(t, n, "active"), this.props.onEntering && this.props.onEntering(t, s);
33
+ }, this.onEntered = (e, s) => {
34
+ const [t, i] = this.resolveArguments(
35
+ e,
36
+ s
37
+ ), n = i ? "appear" : "enter";
38
+ this.removeClasses(t, n), this.addClass(t, n, "done"), this.props.onEntered && this.props.onEntered(t, s);
39
+ }, this.onExit = (e) => {
40
+ const [s] = this.resolveArguments(e);
41
+ this.removeClasses(s, "appear"), this.removeClasses(s, "enter"), this.addClass(s, "exit", "base"), this.props.onExit && this.props.onExit(s);
42
+ }, this.onExiting = (e) => {
43
+ const [s] = this.resolveArguments(e);
44
+ this.addClass(s, "exit", "active"), this.props.onExiting && this.props.onExiting(s);
45
+ }, this.onExited = (e) => {
46
+ const [s] = this.resolveArguments(e);
47
+ this.removeClasses(s, "exit"), this.addClass(s, "exit", "done"), this.props.onExited && this.props.onExited(s);
48
+ }, this.resolveArguments = (e, s) => [
49
+ c(this.props.refElement) || e,
50
+ s
51
+ ], this.getClassNames = (e) => {
52
+ const { classNames: s } = this.props, t = a(s), i = t && s ? `${s}-` : "", n = t ? `${i}${e}` : s[e], p = t ? `${n}-active` : s[`${e}Active`], l = t ? `${n}-done` : s[`${e}Done`];
48
53
  return {
49
- baseClassName: o,
54
+ baseClassName: n,
50
55
  activeClassName: p,
51
- doneClassName: h
56
+ doneClassName: l
52
57
  };
53
58
  };
54
59
  }
@@ -57,25 +62,25 @@ class u extends d.Component {
57
62
  classNames: ""
58
63
  };
59
64
  }
60
- addClass(s, t, e) {
61
- let i = this.getClassNames(t)[`${e}ClassName`];
62
- const { doneClassName: o } = this.getClassNames("enter");
63
- t === "appear" && e === "done" && o && (i += ` ${o}`), e === "active" && s && c(s), i && (this.appliedClasses[t][e] = i, n(s, i, "add"));
65
+ addClass(e, s, t) {
66
+ let i = this.getClassNames(s)[`${t}ClassName`];
67
+ const { doneClassName: n } = this.getClassNames("enter");
68
+ s === "appear" && t === "done" && n && (i += ` ${n}`), t === "active" && e && d(e), i && (this.appliedClasses[s][t] = i, o(e, i, "add"));
64
69
  }
65
- removeClasses(s, t) {
70
+ removeClasses(e, s) {
66
71
  const {
67
- base: e,
72
+ base: t,
68
73
  active: i,
69
- done: o
70
- } = this.appliedClasses[t];
71
- this.appliedClasses[t] = {}, e && n(s, e, "remove"), i && n(s, i, "remove"), o && n(s, o, "remove");
74
+ done: n
75
+ } = this.appliedClasses[s];
76
+ this.appliedClasses[s] = {}, t && o(e, t, "remove"), i && o(e, i, "remove"), n && o(e, n, "remove");
72
77
  }
73
78
  render() {
74
- const { classNames: s, ...t } = this.props;
75
- return /* @__PURE__ */ l(
76
- m,
79
+ const { classNames: e, ...s } = this.props;
80
+ return /* @__PURE__ */ h(
81
+ E,
77
82
  {
78
- ...t,
83
+ ...s,
79
84
  onEnter: this.onEnter,
80
85
  onEntered: this.onEntered,
81
86
  onEntering: this.onEntering,
@@ -87,5 +92,5 @@ class u extends d.Component {
87
92
  }
88
93
  }
89
94
  export {
90
- u as default
95
+ A as default
91
96
  };
@@ -0,0 +1,68 @@
1
+ /* 2025-11-27 12:10:58 */
2
+ import { isValidElement as a, cloneElement as g, Children as p } from "react";
3
+ function h(e, t) {
4
+ const l = (n) => t && a(n) ? t(n) : n, c = /* @__PURE__ */ Object.create(null);
5
+ return e && p.map(e, (n) => n).forEach((n) => {
6
+ c[n.key] = l(n);
7
+ }), c;
8
+ }
9
+ function b(e, t) {
10
+ e = e || {}, t = t || {};
11
+ function l(r) {
12
+ return r in t ? t[r] : e[r];
13
+ }
14
+ const c = /* @__PURE__ */ Object.create(null);
15
+ let n = [];
16
+ for (const r in e)
17
+ r in t ? n.length && (c[r] = n, n = []) : n.push(r);
18
+ let i;
19
+ const o = {};
20
+ for (const r in t) {
21
+ if (c[r])
22
+ for (i = 0; i < c[r].length; i++) {
23
+ const s = c[r][i];
24
+ o[c[r][i]] = l(s);
25
+ }
26
+ o[r] = l(r);
27
+ }
28
+ for (i = 0; i < n.length; i++)
29
+ o[n[i]] = l(n[i]);
30
+ return o;
31
+ }
32
+ function u(e, t, l) {
33
+ return l[t] != null ? l[t] : e.props[t];
34
+ }
35
+ function x(e, t) {
36
+ return h(e.children, (l) => g(l, {
37
+ onExited: t.bind(null, l),
38
+ in: !0,
39
+ appear: u(l, "appear", e),
40
+ enter: u(l, "enter", e),
41
+ exit: u(l, "exit", e)
42
+ }));
43
+ }
44
+ function E(e, t, l) {
45
+ const c = h(e.children), n = b(t, c);
46
+ return Object.keys(n).forEach((i) => {
47
+ const o = n[i];
48
+ if (!a(o)) return;
49
+ const r = i in t, s = i in c, f = t[i], d = a(f) && !f.props.in;
50
+ s && (!r || d) ? n[i] = g(o, {
51
+ onExited: l.bind(null, o),
52
+ in: !0,
53
+ exit: u(o, "exit", e),
54
+ enter: u(o, "enter", e)
55
+ }) : !s && r && !d ? n[i] = g(o, { in: !1 }) : s && r && a(f) && (n[i] = g(o, {
56
+ onExited: l.bind(null, o),
57
+ in: f.props.in,
58
+ exit: u(o, "exit", e),
59
+ enter: u(o, "enter", e)
60
+ }));
61
+ }), n;
62
+ }
63
+ export {
64
+ h as getChildMapping,
65
+ x as getInitialChildMapping,
66
+ E as getNextChildMapping,
67
+ b as mergeChildMappings
68
+ };
@@ -1,15 +1,18 @@
1
- /* 2025-11-19 09:09:36 */
2
- import { jsx as l } from "react/jsx-runtime";
3
- import { useRef as f, useMemo as u, isValidElement as E, cloneElement as d } from "react";
4
- import { findDOMNode as a, callbackOriginRef as s } from "../utils/reactDOM.js";
5
- import { supportRef as x } from "../utils/supportRef.js";
6
- import g from "./CSSTransition.js";
1
+ /* 2025-11-27 12:10:58 */
2
+ import { jsx as E } from "react/jsx-runtime";
3
+ import { useRef as m, useMemo as s, isValidElement as d, cloneElement as a } from "react";
4
+ import { callbackOriginRef as p } from "../utils/callbackOriginRef.js";
5
+ import { findRootElement as x } from "../utils/findRootElement.js";
6
+ import "../utils/is.js";
7
+ import { supportRef as g } from "../utils/ref.js";
8
+ import R from "./CSSTransition.js";
9
+ import { isUndefined as S } from "@unicom-cloud/utils/is";
7
10
  function M(n) {
8
- const { children: e, ...o } = n, i = f(void 0), t = f(void 0), m = u(() => n.refElement === void 0 && x(e) && E(e) ? (t.current = !0, d(e, {
9
- ref(r) {
10
- i.current = a(r), s(e, r);
11
+ const { children: r, ...i } = n, o = m(void 0), t = m(void 0), c = s(() => S(n.refElement) && g(r) && d(r) ? (t.current = !0, a(r, {
12
+ ref(e) {
13
+ o.current = x(e), p(r, e);
11
14
  }
12
- })) : (t.current = !1, e), [e, n.refElement]);
15
+ })) : (t.current = !1, r), [r, n.refElement]);
13
16
  return t.current && [
14
17
  "onEnter",
15
18
  "onEntering",
@@ -17,16 +20,17 @@ function M(n) {
17
20
  "onExit",
18
21
  "onExiting",
19
22
  "onExited"
20
- ].forEach((r) => {
21
- n[r] && (o[r] = (v, ...c) => {
22
- n[r](i.current, ...c);
23
+ ].forEach((e) => {
24
+ const f = n[e];
25
+ f && (i[e] = (l, ...u) => {
26
+ f(o.current || l, ...u);
23
27
  });
24
- }), /* @__PURE__ */ l(
25
- g,
28
+ }), /* @__PURE__ */ E(
29
+ R,
26
30
  {
27
- ...o,
28
- refElement: t.current ? i : void 0,
29
- children: m
31
+ ...i,
32
+ refElement: t.current ? o : void 0,
33
+ children: c
30
34
  }
31
35
  );
32
36
  }
@@ -1,8 +1,8 @@
1
- /* 2025-11-19 09:09:36 */
2
- import { jsx as d } from "react/jsx-runtime";
1
+ /* 2025-11-27 12:10:58 */
2
+ import { jsx as l } from "react/jsx-runtime";
3
3
  import i from "react";
4
- import h from "react-dom";
5
- import l from "./TransitionGroup.js";
4
+ import { findRootElement as s } from "../utils/findRootElement.js";
5
+ import d from "./TransitionGroup.js";
6
6
  class m extends i.Component {
7
7
  constructor() {
8
8
  super(...arguments), this.handleEnter = (...e) => this.handleLifecycle("onEnter", 0, e), this.handleEntering = (...e) => this.handleLifecycle("onEntering", 0, e), this.handleEntered = (...e) => this.handleLifecycle("onEntered", 0, e), this.handleExit = (...e) => this.handleLifecycle("onExit", 1, e), this.handleExiting = (...e) => this.handleLifecycle("onExiting", 1, e), this.handleExited = (...e) => this.handleLifecycle("onExited", 1, e);
@@ -10,13 +10,13 @@ class m extends i.Component {
10
10
  handleLifecycle(e, o, n) {
11
11
  const { children: r } = this.props, t = i.Children.toArray(r)[o];
12
12
  if (t.props[e] && t.props[e](...n), this.props[e]) {
13
- const s = t.props.refElement ? void 0 : h.findDOMNode?.(this);
14
- this.props[e](s);
13
+ const h = s(t.props.refElement) || s(this);
14
+ this.props[e](h);
15
15
  }
16
16
  }
17
17
  render() {
18
18
  const { children: e, in: o, ...n } = this.props, [r, t] = i.Children.toArray(e);
19
- return delete n.onEnter, delete n.onEntering, delete n.onEntered, delete n.onExit, delete n.onExiting, delete n.onExited, /* @__PURE__ */ d(l, { ...n, children: o ? i.cloneElement(r, {
19
+ return delete n.onEnter, delete n.onEntering, delete n.onEntered, delete n.onExit, delete n.onExiting, delete n.onExited, /* @__PURE__ */ l(d, { ...n, children: o ? i.cloneElement(r, {
20
20
  key: "first",
21
21
  onEnter: this.handleEnter,
22
22
  onEntering: this.handleEntering,
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 09:09:36 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { jsx as d } from "react/jsx-runtime";
3
3
  import r from "react";
4
4
  import { ENTERED as a, ENTERING as s, EXITING as E } from "./Transition.js";
@@ -1,21 +1,25 @@
1
- /* 2025-11-19 09:09:36 */
2
- import { jsx as N } from "react/jsx-runtime";
3
- import c from "react";
4
- import h from "react-dom";
5
- import S from "@unicom-cloud/utils/dom-helpers/reflow";
1
+ /* 2025-11-27 12:10:58 */
2
+ import { jsx as S } from "react/jsx-runtime";
3
+ import h from "react";
4
+ import "@unicom-cloud/utils/dom-helpers/canUseDOM";
5
+ import T from "@unicom-cloud/utils/dom-helpers/reflow";
6
6
  import "../utils/is.js";
7
- import x from "./TransitionGroupContext.js";
7
+ import { findRootElement as x } from "../utils/findRootElement.js";
8
+ import d from "./TransitionGroupContext.js";
8
9
  import { isFunction as b } from "@unicom-cloud/utils/is";
9
- const E = "unmounted", o = "exited", r = "entering", l = "entered", f = "exiting";
10
- class p extends c.Component {
10
+ const E = "unmounted", o = "exited", a = "entering", l = "entered", m = "exiting";
11
+ class u extends h.Component {
12
+ static {
13
+ this.contextType = d;
14
+ }
11
15
  constructor(t, e) {
12
- super(t, e), this.refElement = void 0;
16
+ super(t, e);
13
17
  const n = e, s = n && !n.isMounting ? t.enter : t.appear;
14
18
  let i;
15
- this.appearStatus = null, t.in ? s ? (i = o, this.appearStatus = r) : i = l : t.unmountOnExit || t.mountOnEnter ? i = E : i = o, this.state = { status: i }, this.nextCallback = null;
19
+ this.appearStatus = null, t.in ? s ? (i = o, this.appearStatus = a) : i = l : t.unmountOnExit || t.mountOnEnter ? i = E : i = o, this.state = { status: i }, this.nextCallback = null;
16
20
  }
17
- static {
18
- this.contextType = x;
21
+ getElement() {
22
+ return x(this.props.refElement) || x(this);
19
23
  }
20
24
  static getDerivedStateFromProps({ in: t }, e) {
21
25
  return t && e.status === E ? { status: o } : null;
@@ -43,7 +47,7 @@ class p extends c.Component {
43
47
  let e = null;
44
48
  if (t !== this.props) {
45
49
  const { status: n } = this.state;
46
- this.props.in ? n !== r && n !== l && (e = r) : (n === r || n === l) && (e = f);
50
+ this.props.in ? n !== a && n !== l && (e = a) : (n === a || n === l) && (e = m);
47
51
  }
48
52
  this.updateStatus(!1, e);
49
53
  }
@@ -57,10 +61,10 @@ class p extends c.Component {
57
61
  }
58
62
  updateStatus(t = !1, e) {
59
63
  if (e !== null)
60
- if (this.cancelNextCallback(), e === r) {
64
+ if (this.cancelNextCallback(), e === a) {
61
65
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
62
- const n = this.props.refElement ? this.props.refElement.current : h.findDOMNode?.(this);
63
- n && S(n);
66
+ const n = this.getElement();
67
+ n && T(n);
64
68
  }
65
69
  this.performEnter(t);
66
70
  } else
@@ -68,15 +72,15 @@ class p extends c.Component {
68
72
  else this.props.unmountOnExit && this.state.status === o && this.setState({ status: E });
69
73
  }
70
74
  performEnter(t) {
71
- const { enter: e } = this.props, n = this.context ? this.context.isMounting : t, [s, i] = this.props.refElement ? [n] : [h.findDOMNode?.(this), n], u = this.getTimeouts(), m = n ? u.appear : u.enter;
75
+ const { enter: e } = this.props, n = this.context ? this.context.isMounting : t, [s, i] = [this.getElement(), n], p = this.getTimeouts(), c = n ? p.appear : p.enter;
72
76
  if (!t && !e) {
73
77
  this.safeSetState({ status: l }, () => {
74
78
  this.props.onEntered(s);
75
79
  });
76
80
  return;
77
81
  }
78
- this.props.onEnter(s, i), this.safeSetState({ status: r }, () => {
79
- this.props.onEntering(s, i), this.onTransitionEnd(m, () => {
82
+ this.props.onEnter(s, i), this.safeSetState({ status: a }, () => {
83
+ this.props.onEntering(s, i), this.onTransitionEnd(c, () => {
80
84
  this.safeSetState({ status: l }, () => {
81
85
  this.props.onEntered(s, i);
82
86
  });
@@ -84,14 +88,14 @@ class p extends c.Component {
84
88
  });
85
89
  }
86
90
  performExit() {
87
- const { exit: t } = this.props, e = this.getTimeouts(), n = this.props.refElement ? void 0 : h.findDOMNode?.(this);
91
+ const { exit: t } = this.props, e = this.getTimeouts(), n = this.getElement();
88
92
  if (!t) {
89
93
  this.safeSetState({ status: o }, () => {
90
94
  this.props.onExited(n);
91
95
  });
92
96
  return;
93
97
  }
94
- this.props.onExit(n), this.safeSetState({ status: f }, () => {
98
+ this.props.onExit(n), this.safeSetState({ status: m }, () => {
95
99
  this.props.onExiting(n), this.onTransitionEnd(e.exit, () => {
96
100
  this.safeSetState({ status: o }, () => {
97
101
  this.props.onExited(n);
@@ -115,14 +119,14 @@ class p extends c.Component {
115
119
  }
116
120
  onTransitionEnd(t, e) {
117
121
  this.setNextCallback(e);
118
- const n = this.props.refElement ? this.props.refElement.current : h.findDOMNode?.(this), s = t == null && !this.props.addEndListener;
122
+ const n = this.getElement(), s = t == null && !this.props.addEndListener;
119
123
  if (!n || s) {
120
124
  setTimeout(this.nextCallback, 0);
121
125
  return;
122
126
  }
123
127
  if (this.props.addEndListener) {
124
- const [i, u] = this.props.refElement ? [this.nextCallback] : [n, this.nextCallback];
125
- this.props.addEndListener(i, u);
128
+ const [i, p] = [n, this.nextCallback];
129
+ this.props.addEndListener(i, p);
126
130
  }
127
131
  t != null && setTimeout(this.nextCallback, t);
128
132
  }
@@ -136,29 +140,29 @@ class p extends c.Component {
136
140
  in: n,
137
141
  mountOnEnter: s,
138
142
  unmountOnExit: i,
139
- appear: u,
140
- enter: m,
143
+ appear: p,
144
+ enter: c,
141
145
  exit: C,
142
- timeout: O,
143
- addEndListener: g,
144
- onEnter: k,
145
- onEntering: _,
146
+ timeout: N,
147
+ addEndListener: k,
148
+ onEnter: _,
149
+ onEntering: O,
146
150
  onEntered: D,
147
- onExit: M,
148
- onExiting: v,
149
- onExited: y,
150
- refElement: I,
151
- ...d
151
+ onExit: y,
152
+ onExiting: I,
153
+ onExited: v,
154
+ refElement: R,
155
+ ...f
152
156
  } = this.props;
153
157
  return (
154
158
  // allows for nested Transitions
155
- /* @__PURE__ */ N(x.Provider, { value: null, children: b(e) ? e(t, d) : c.cloneElement(c.Children.only(e), d) })
159
+ /* @__PURE__ */ S(d.Provider, { value: null, children: b(e) ? e(t, f) : h.cloneElement(h.Children.only(e), f) })
156
160
  );
157
161
  }
158
162
  }
159
- function a() {
163
+ function r() {
160
164
  }
161
- p.defaultProps = {
165
+ u.defaultProps = {
162
166
  in: !1,
163
167
  mountOnEnter: !1,
164
168
  unmountOnExit: !1,
@@ -166,23 +170,23 @@ p.defaultProps = {
166
170
  enter: !0,
167
171
  exit: !0,
168
172
  refElement: void 0,
169
- onEnter: a,
170
- onEntering: a,
171
- onEntered: a,
172
- onExit: a,
173
- onExiting: a,
174
- onExited: a
173
+ onEnter: r,
174
+ onEntering: r,
175
+ onEntered: r,
176
+ onExit: r,
177
+ onExiting: r,
178
+ onExited: r
175
179
  };
176
- p.UNMOUNTED = E;
177
- p.EXITED = o;
178
- p.ENTERING = r;
179
- p.ENTERED = l;
180
- p.EXITING = f;
180
+ u.UNMOUNTED = E;
181
+ u.EXITED = o;
182
+ u.ENTERING = a;
183
+ u.ENTERED = l;
184
+ u.EXITING = m;
181
185
  export {
182
186
  l as ENTERED,
183
- r as ENTERING,
187
+ a as ENTERING,
184
188
  o as EXITED,
185
- f as EXITING,
189
+ m as EXITING,
186
190
  E as UNMOUNTED,
187
- p as default
191
+ u as default
188
192
  };
@@ -1,8 +1,8 @@
1
- /* 2025-11-19 09:09:36 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import p from "react";
4
+ import { getInitialChildMapping as a, getNextChildMapping as l, getChildMapping as c } from "./ChildMapping.js";
4
5
  import d from "./TransitionGroupContext.js";
5
- import { getInitialChildMapping as a, getNextChildMapping as l, getChildMapping as c } from "./utils/ChildMapping.js";
6
6
  const u = {
7
7
  component: "div",
8
8
  childFactory: (s) => s
@@ -31,7 +31,6 @@ class h extends p.Component {
31
31
  firstRender: !1
32
32
  };
33
33
  }
34
- // element is `undefined` when user provided `refElement` prop
35
34
  handleExited(t, n) {
36
35
  const e = c(this.props.children);
37
36
  t.key in e || (t.props.onExited && t.props.onExited(n), this.mounted && this.setState((r) => {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 09:09:36 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import t from "react";
3
3
  const e = t.createContext(null);
4
4
  export {
@@ -1,32 +1,33 @@
1
- /* 2025-11-19 09:09:36 */
2
- import { default as o } from "@unicom-cloud/utils/dom-helpers/reflow";
1
+ /* 2025-11-27 12:10:58 */
2
+ import "@unicom-cloud/utils/dom-helpers/canUseDOM";
3
+ import { default as r } from "@unicom-cloud/utils/dom-helpers/reflow";
3
4
  import "../utils/is.js";
4
- import { default as n } from "./CSSTransition.js";
5
- import { PqbCSSTransition as p } from "./PqbCSSTransition.js";
6
- import { default as T } from "./ReplaceTransition.js";
7
- import { default as l, modes as I } from "./SwitchTransition.js";
8
- import { ENTERED as f, ENTERING as E, EXITED as u, EXITING as G, UNMOUNTED as g, default as m } from "./Transition.js";
9
- import { default as M, default as C } from "./TransitionGroup.js";
10
- import { default as S } from "./TransitionGroupContext.js";
11
- import { getChildMapping as O, getInitialChildMapping as D, getNextChildMapping as A, mergeChildMappings as _ } from "./utils/ChildMapping.js";
5
+ import { getChildMapping as e, getInitialChildMapping as p, getNextChildMapping as s, mergeChildMappings as T } from "./ChildMapping.js";
6
+ import { default as l } from "./CSSTransition.js";
7
+ import { PqbCSSTransition as d } from "./PqbCSSTransition.js";
8
+ import { default as E } from "./ReplaceTransition.js";
9
+ import { default as G, modes as g } from "./SwitchTransition.js";
10
+ import { ENTERED as x, ENTERING as M, EXITED as C, EXITING as R, UNMOUNTED as S, default as h } from "./Transition.js";
11
+ import { default as D, default as A } from "./TransitionGroup.js";
12
+ import { default as c } from "./TransitionGroupContext.js";
12
13
  export {
13
- n as CSSTransition,
14
- p as PqbCSSTransition,
15
- T as ReplaceTransition,
16
- l as SwitchTransition,
17
- I as SwitchTransitionModes,
18
- f as TRANSITION_ENTERED,
19
- E as TRANSITION_ENTERING,
20
- u as TRANSITION_EXITED,
21
- G as TRANSITION_EXITING,
22
- g as TRANSITION_UNMOUNTED,
23
- m as Transition,
24
- M as TransitionGroup,
25
- S as TransitionGroupContext,
26
- o as TransitionGroupForceReflow,
27
- O as TransitionGroupGetChildMapping,
28
- D as TransitionGroupGetInitialChildMapping,
29
- A as TransitionGroupGetNextChildMapping,
30
- _ as TransitionGroupMergeChildMappings,
31
- C as default
14
+ l as CSSTransition,
15
+ d as PqbCSSTransition,
16
+ E as ReplaceTransition,
17
+ G as SwitchTransition,
18
+ g as SwitchTransitionModes,
19
+ x as TRANSITION_ENTERED,
20
+ M as TRANSITION_ENTERING,
21
+ C as TRANSITION_EXITED,
22
+ R as TRANSITION_EXITING,
23
+ S as TRANSITION_UNMOUNTED,
24
+ h as Transition,
25
+ D as TransitionGroup,
26
+ c as TransitionGroupContext,
27
+ r as TransitionGroupForceReflow,
28
+ e as TransitionGroupGetChildMapping,
29
+ p as TransitionGroupGetInitialChildMapping,
30
+ s as TransitionGroupGetNextChildMapping,
31
+ T as TransitionGroupMergeChildMappings,
32
+ A as default
32
33
  };
@@ -17,6 +17,7 @@ export { default as useDeepCompareLayoutEffect } from './use-deep-compare-layout
17
17
  export { default as useDocumentVisibility } from './use-document-visibility';
18
18
  export { default as useDrag } from './use-drag';
19
19
  export { default as useDrop } from './use-drop';
20
+ export { default as useEvent } from './use-event';
20
21
  export { default as useEventListener } from './use-event-listener';
21
22
  export { default as useEventTarget } from './use-event-target';
22
23
  export { default as useExternal } from './use-external';
@@ -35,6 +36,7 @@ export { default as useLatest } from './use-latest';
35
36
  export { default as useLocalStorageState } from './use-local-storage-state';
36
37
  export { default as useLockFn } from './use-lock-fn';
37
38
  export { default as useLongPress } from './use-long-press';
39
+ export { default as useMemo } from './use-memo';
38
40
  export { default as useMemoizedFn } from './use-memoized-fn';
39
41
  export { default as useMount } from './use-mount';
40
42
  export { default as useMouse } from './use-mouse';
@@ -56,6 +58,7 @@ export { default as useSelections } from './use-selections';
56
58
  export { default as useSessionStorageState } from './use-session-storage-state';
57
59
  export { default as useSetState } from './use-set-state';
58
60
  export { default as useSize } from './use-size';
61
+ export { default as useSyncState } from './use-sync-state';
59
62
  export { default as useTextSelection } from './use-text-selection';
60
63
  export { default as useTheme } from './use-theme';
61
64
  export { default as useThrottle } from './use-throttle';
@@ -0,0 +1,2 @@
1
+ declare function useEvent(callback: any): (...args: unknown[]) => any;
2
+ export default useEvent;
@@ -1,4 +1,6 @@
1
1
  import { DependencyList } from 'react';
2
- declare function useIntersectionObservers(callback: IntersectionObserverCallback, deps?: DependencyList, options?: IntersectionObserverInit): IntersectionObserverEntry[] | undefined;
2
+ declare function useIntersectionObservers(callback: IntersectionObserverCallback, deps?: DependencyList, options?: IntersectionObserverInit & {
3
+ immediate?: boolean;
4
+ }): IntersectionObserverEntry[] | undefined;
3
5
  export { useIntersectionObservers };
4
6
  export default useIntersectionObservers;