@unicom-cloud/ui-common 0.1.6 → 0.1.8

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 (399) 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 +181 -173
  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-move/index.js +69 -0
  78. package/hooks/use-mutation-observer/index.js +9 -9
  79. package/hooks/use-mutation-observers/index.js +33 -25
  80. package/hooks/use-network/index.js +1 -1
  81. package/hooks/use-online-status/index.js +1 -1
  82. package/hooks/use-overflow-hidden/index.js +1 -1
  83. package/hooks/use-override-ref/index.js +3 -3
  84. package/hooks/use-pagination/index.js +1 -1
  85. package/hooks/use-persist-callback/index.js +1 -1
  86. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  87. package/hooks/use-previous/index.js +1 -1
  88. package/hooks/use-raf-interval/index.js +15 -15
  89. package/hooks/use-raf-state/index.js +1 -1
  90. package/hooks/use-raf-timeout/index.js +3 -3
  91. package/hooks/use-reactive/index.js +7 -7
  92. package/hooks/use-ref-latest/index.js +1 -1
  93. package/hooks/use-refs/index.js +4 -4
  94. package/hooks/use-request/index.js +1 -1
  95. package/hooks/use-request/src/Fetch.js +1 -1
  96. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  97. package/hooks/use-request/src/plugins/useCachePlugin.js +3 -3
  98. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  99. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +8 -8
  100. package/hooks/use-request/src/plugins/usePollingPlugin.js +13 -13
  101. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +3 -3
  102. package/hooks/use-request/src/plugins/useRetryPlugin.js +5 -5
  103. package/hooks/use-request/src/plugins/useThrottlePlugin.js +3 -3
  104. package/hooks/use-request/src/useRequest.js +1 -1
  105. package/hooks/use-request/src/useRequestImplement.js +7 -7
  106. package/hooks/use-request/src/utils/cache.js +1 -1
  107. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  108. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  109. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  110. package/hooks/use-request/src/utils/isOnline.js +1 -1
  111. package/hooks/use-request/src/utils/limit.js +1 -1
  112. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  113. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  114. package/hooks/use-reset-state/index.js +7 -7
  115. package/hooks/use-resize-observer/index.js +1 -1
  116. package/hooks/use-resize-observers/index.js +34 -26
  117. package/hooks/use-responsive/index.js +1 -1
  118. package/hooks/use-safe-state/index.js +4 -4
  119. package/hooks/use-scroll/index.js +1 -1
  120. package/hooks/use-selections/index.js +1 -1
  121. package/hooks/use-session-storage-state/index.js +1 -1
  122. package/hooks/use-set/index.js +1 -1
  123. package/hooks/use-set-state/index.js +1 -1
  124. package/hooks/use-size/index.js +20 -23
  125. package/hooks/use-state-callback/index.js +6 -6
  126. package/hooks/use-state-with-promise/index.js +1 -1
  127. package/hooks/use-sync-state/index.js +15 -0
  128. package/hooks/use-text-selection/index.js +13 -13
  129. package/hooks/use-theme/index.js +1 -1
  130. package/hooks/use-throttle/index.js +1 -1
  131. package/hooks/use-throttle-effect/index.js +1 -1
  132. package/hooks/use-throttle-fn/index.js +6 -6
  133. package/hooks/use-timeout/index.js +3 -3
  134. package/hooks/use-title/index.js +1 -1
  135. package/hooks/use-toggle/index.js +1 -1
  136. package/hooks/use-tracked-effect/index.js +1 -1
  137. package/hooks/use-unmount/index.js +1 -1
  138. package/hooks/use-unmounted-ref/index.js +4 -4
  139. package/hooks/use-update/index.js +1 -1
  140. package/hooks/use-update-effect/index.js +1 -1
  141. package/hooks/use-update-layout-effect/index.js +1 -1
  142. package/hooks/use-url-state/index.js +3 -3
  143. package/hooks/use-virtual-list/index.js +10 -10
  144. package/hooks/use-watch/index.js +1 -1
  145. package/hooks/use-web-socket/index.js +30 -30
  146. package/hooks/use-why-did-you-update/index.js +1 -1
  147. package/hooks/use-window-size/index.js +28 -25
  148. package/hooks/useAsyncEffect.js +1 -1
  149. package/hooks/useBoolean.js +1 -1
  150. package/hooks/useClickAway.js +4 -5
  151. package/hooks/useComputedState.js +1 -1
  152. package/hooks/useControllableValue.js +1 -1
  153. package/hooks/useCookieState.js +1 -1
  154. package/hooks/useCountDown.js +1 -1
  155. package/hooks/useCounter.js +1 -1
  156. package/hooks/useCreate.js +1 -1
  157. package/hooks/useCreation.js +1 -1
  158. package/hooks/useDebounce.js +1 -1
  159. package/hooks/useDebounceEffect.js +1 -1
  160. package/hooks/useDebounceFn.js +1 -1
  161. package/hooks/useDeepCompareEffect.js +1 -1
  162. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  163. package/hooks/useDocumentVisibility.js +1 -1
  164. package/hooks/useDrag.js +1 -1
  165. package/hooks/useDrop.js +1 -1
  166. package/hooks/useEvent.js +7 -0
  167. package/hooks/useEventListener.js +4 -5
  168. package/hooks/useEventTarget.js +1 -1
  169. package/hooks/useExternal.js +1 -1
  170. package/hooks/useFavicon.js +1 -1
  171. package/hooks/useFocusWithin.js +1 -1
  172. package/hooks/useForceUpdate.js +1 -1
  173. package/hooks/useFullscreen.js +1 -1
  174. package/hooks/useGetState.js +1 -1
  175. package/hooks/useHistoryTravel.js +1 -1
  176. package/hooks/useHover.js +1 -1
  177. package/hooks/useId.js +1 -1
  178. package/hooks/useInView.js +1 -1
  179. package/hooks/useInViewport.js +4 -5
  180. package/hooks/useInfiniteScroll.js +1 -1
  181. package/hooks/useIntersectionObserver.js +5 -4
  182. package/hooks/useIntersectionObservers.js +11 -7
  183. package/hooks/useInterval.js +1 -1
  184. package/hooks/useIsFirstRender.js +1 -1
  185. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  186. package/hooks/useKeyPress.js +1 -1
  187. package/hooks/useKeyboardEvent.js +1 -1
  188. package/hooks/useLatest.js +1 -1
  189. package/hooks/useListenWindowResize.js +1 -1
  190. package/hooks/useLocalStorageState.js +1 -1
  191. package/hooks/useLockFn.js +1 -1
  192. package/hooks/useLongPress.js +1 -1
  193. package/hooks/useMap.js +1 -1
  194. package/hooks/useMedia.js +1 -1
  195. package/hooks/useMemo.js +6 -0
  196. package/hooks/useMemoizedFn.js +1 -1
  197. package/hooks/useMergeProps.js +1 -1
  198. package/hooks/useMergeValue.js +1 -1
  199. package/hooks/useMount.js +1 -1
  200. package/hooks/useMouse.js +1 -1
  201. package/hooks/useMove.js +10 -0
  202. package/hooks/useMutationObserver.js +1 -1
  203. package/hooks/useMutationObservers.js +11 -7
  204. package/hooks/useNetwork.js +1 -1
  205. package/hooks/useOnlineStatus.js +1 -1
  206. package/hooks/useOverflowHidden.js +1 -1
  207. package/hooks/useOverrideRef.js +3 -3
  208. package/hooks/usePagination.js +1 -1
  209. package/hooks/usePersistCallback.js +1 -1
  210. package/hooks/usePrefersColorSchemeDark.js +1 -1
  211. package/hooks/usePrevious.js +1 -1
  212. package/hooks/useRafInterval.js +1 -1
  213. package/hooks/useRafState.js +1 -1
  214. package/hooks/useRafTimeout.js +1 -1
  215. package/hooks/useReactive.js +1 -1
  216. package/hooks/useRefLatest.js +1 -1
  217. package/hooks/useRefs.js +1 -1
  218. package/hooks/useRequest.js +1 -1
  219. package/hooks/useResetState.js +1 -1
  220. package/hooks/useResizeObserver.js +1 -1
  221. package/hooks/useResizeObservers.js +11 -7
  222. package/hooks/useResponsive.js +1 -1
  223. package/hooks/useSafeState.js +1 -1
  224. package/hooks/useScroll.js +1 -1
  225. package/hooks/useSelections.js +1 -1
  226. package/hooks/useSessionStorageState.js +1 -1
  227. package/hooks/useSet.js +1 -1
  228. package/hooks/useSetState.js +1 -1
  229. package/hooks/useSize.js +4 -3
  230. package/hooks/useStateCallback.js +1 -1
  231. package/hooks/useStateWithPromise.js +1 -1
  232. package/hooks/useSyncState.js +10 -0
  233. package/hooks/useTextSelection.js +1 -1
  234. package/hooks/useTheme.js +1 -1
  235. package/hooks/useThrottle.js +1 -1
  236. package/hooks/useThrottleEffect.js +1 -1
  237. package/hooks/useThrottleFn.js +1 -1
  238. package/hooks/useTimeout.js +1 -1
  239. package/hooks/useTitle.js +1 -1
  240. package/hooks/useToggle.js +1 -1
  241. package/hooks/useTrackedEffect.js +1 -1
  242. package/hooks/useUnmount.js +1 -1
  243. package/hooks/useUnmountedRef.js +1 -1
  244. package/hooks/useUpdate.js +1 -1
  245. package/hooks/useUpdateEffect.js +1 -1
  246. package/hooks/useUpdateLayoutEffect.js +1 -1
  247. package/hooks/useUrlState.js +1 -1
  248. package/hooks/useVirtualList.js +1 -1
  249. package/hooks/useWatch.js +1 -1
  250. package/hooks/useWebSocket.js +1 -1
  251. package/hooks/useWhyDidYouUpdate.js +1 -1
  252. package/hooks/useWindowSize.js +4 -3
  253. package/hooks/utils/createEffectWithTarget.js +11 -12
  254. package/hooks/utils/depsAreSame.js +1 -1
  255. package/hooks/utils/depsEqual.js +1 -1
  256. package/hooks/utils/domTarget.js +1 -1
  257. package/hooks/utils/getDocumentOrShadow.js +5 -6
  258. package/hooks/utils/index.js +1 -1
  259. package/hooks/utils/isAppleDevice.js +1 -1
  260. package/hooks/utils/isBrowser.js +1 -1
  261. package/hooks/utils/isDev.js +1 -1
  262. package/hooks/utils/rect.js +1 -1
  263. package/hooks/utils/useDeepCompareWithTarget.js +4 -4
  264. package/hooks/utils/useEffectWithTarget.js +1 -1
  265. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  266. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  267. package/hooks/utils.js +1 -1
  268. package/icons/file/index.js +31 -24
  269. package/icons/file.js +1 -1
  270. package/index.js +47 -46
  271. package/motion/CSSMotion.js +102 -0
  272. package/motion/CSSMotionList.js +100 -0
  273. package/motion/context.js +14 -0
  274. package/motion/hooks/useDomMotionEvents.js +21 -0
  275. package/motion/hooks/useNextFrame.js +24 -0
  276. package/motion/hooks/useStatus.js +121 -0
  277. package/motion/hooks/useStepQueue.js +44 -0
  278. package/motion/index.js +9 -0
  279. package/motion/interface.js +14 -0
  280. package/motion/util/diff.js +56 -0
  281. package/motion/util/motion.js +56 -0
  282. package/package.json +1 -1
  283. package/progress/index.js +1 -1
  284. package/resize-observer/Collection.js +25 -0
  285. package/resize-observer/SingleObserver.js +48 -0
  286. package/resize-observer/index.js +27 -0
  287. package/resize-observer/observerUtil.js +22 -0
  288. package/space/index.js +65 -52
  289. package/suspense-fallback-test/index.js +1 -1
  290. package/transition-group/CSSTransition.js +59 -54
  291. package/transition-group/ChildMapping.js +68 -0
  292. package/transition-group/PqbCSSTransition.js +22 -18
  293. package/transition-group/ReplaceTransition.js +7 -7
  294. package/transition-group/SwitchTransition.js +1 -1
  295. package/transition-group/Transition.js +56 -52
  296. package/transition-group/TransitionGroup.js +2 -3
  297. package/transition-group/TransitionGroupContext.js +1 -1
  298. package/transition-group/index.js +30 -29
  299. package/types/hooks/index.d.ts +4 -0
  300. package/types/hooks/use-event/index.d.ts +2 -0
  301. package/types/hooks/use-intersection-observers/index.d.ts +3 -1
  302. package/types/hooks/use-listen-window-resize/index.d.ts +4 -4
  303. package/types/hooks/use-memo/index.d.ts +2 -0
  304. package/types/hooks/use-move/index.d.ts +4 -0
  305. package/types/hooks/use-mutation-observers/index.d.ts +3 -1
  306. package/types/hooks/use-resize-observers/index.d.ts +3 -1
  307. package/types/hooks/use-size/index.d.ts +1 -1
  308. package/types/hooks/use-sync-state/index.d.ts +10 -0
  309. package/types/hooks/use-window-size/index.d.ts +2 -3
  310. package/types/motion/CSSMotion.d.ts +77 -0
  311. package/types/motion/CSSMotionList.d.ts +34 -0
  312. package/types/motion/context.d.ts +9 -0
  313. package/types/motion/hooks/useDomMotionEvents.d.ts +3 -0
  314. package/types/motion/hooks/useNextFrame.d.ts +7 -0
  315. package/types/motion/hooks/useStatus.d.ts +5 -0
  316. package/types/motion/hooks/useStepQueue.d.ts +8 -0
  317. package/types/motion/index.d.ts +9 -0
  318. package/types/motion/interface.d.ts +22 -0
  319. package/types/motion/util/diff.d.ts +20 -0
  320. package/types/motion/util/motion.d.ts +10 -0
  321. package/types/resize-observer/Collection.d.ts +9 -0
  322. package/types/resize-observer/SingleObserver.d.ts +7 -0
  323. package/types/resize-observer/index.d.ts +7 -0
  324. package/types/resize-observer/interface.d.ts +25 -0
  325. package/types/resize-observer/observerUtil.d.ts +3 -0
  326. package/types/space/interface.d.ts +1 -1
  327. package/types/transition-group/CSSTransition.d.ts +0 -1
  328. package/types/transition-group/{utils/ChildMapping.d.ts → ChildMapping.d.ts} +4 -4
  329. package/types/transition-group/SwitchTransition.d.ts +3 -3
  330. package/types/transition-group/Transition.d.ts +1 -1
  331. package/types/transition-group/TransitionGroup.d.ts +1 -1
  332. package/types/transition-group/index.d.ts +1 -1
  333. package/types/utils/callbackOriginRef.d.ts +4 -0
  334. package/types/utils/dom.d.ts +2 -1
  335. package/types/utils/findRootElement.d.ts +23 -0
  336. package/types/utils/index.d.ts +4 -2
  337. package/types/utils/is.d.ts +5 -4
  338. package/types/utils/lodash.d.ts +2 -1
  339. package/types/utils/ref.d.ts +27 -0
  340. package/types/utils/setCreateRoot.d.ts +13 -0
  341. package/types/utils/toArray.d.ts +3 -3
  342. package/utils/callbackOriginRef.js +11 -0
  343. package/utils/caseName.js +1 -1
  344. package/utils/className.js +1 -1
  345. package/utils/compute.js +1 -1
  346. package/utils/constant.js +1 -1
  347. package/utils/copy.js +1 -1
  348. package/utils/date.js +1 -1
  349. package/utils/dayjs.js +1 -1
  350. package/utils/dom.js +12 -10
  351. package/utils/emitter.js +1 -1
  352. package/utils/fileToURL.js +1 -1
  353. package/utils/fillNBSP.js +1 -1
  354. package/utils/findRootElement.js +28 -0
  355. package/utils/findScrollParent.js +1 -1
  356. package/utils/getHighlightText.js +1 -1
  357. package/utils/getHotkeyHandler.js +1 -1
  358. package/utils/getStringLength.js +1 -1
  359. package/utils/include.js +1 -1
  360. package/utils/index.js +341 -329
  361. package/utils/intersectionObserver.js +1 -1
  362. package/utils/is.js +72 -81
  363. package/utils/keyboardCode.js +1 -1
  364. package/utils/lodash.js +45 -43
  365. package/utils/math.js +1 -1
  366. package/utils/mergeProps.js +1 -1
  367. package/utils/mergedToString.js +1 -1
  368. package/utils/mutationObserver.js +1 -1
  369. package/utils/omit.js +1 -1
  370. package/utils/pad.js +1 -1
  371. package/utils/pick.js +1 -1
  372. package/utils/pinyin.js +1 -1
  373. package/utils/react19Adapter.js +2 -2
  374. package/utils/ref.js +41 -0
  375. package/utils/resizeObserver.js +1 -1
  376. package/utils/saveAs.js +1 -1
  377. package/utils/screenfull.js +1 -1
  378. package/utils/scrollIntoViewIfNeeded.js +1 -1
  379. package/utils/setCreateRoot.js +53 -0
  380. package/utils/setDarkTheme.js +1 -1
  381. package/utils/setDir.js +1 -1
  382. package/utils/setPrimaryColor.js +1 -1
  383. package/utils/setTheme.js +1 -1
  384. package/utils/string.js +1 -1
  385. package/utils/style.js +1 -1
  386. package/utils/throttleByRaf.js +1 -1
  387. package/utils/throttleByRaf2.js +1 -1
  388. package/utils/tinycolor.js +1 -1
  389. package/utils/toArray.js +9 -9
  390. package/utils/tree.js +1 -1
  391. package/utils/tween.js +1 -1
  392. package/utils/uuid.js +1 -1
  393. package/utils/validate.js +1 -1
  394. package/utils/warning.js +1 -1
  395. package/transition-group/utils/ChildMapping.js +0 -66
  396. package/types/utils/reactDOM.d.ts +0 -34
  397. package/types/utils/supportRef.d.ts +0 -3
  398. package/utils/reactDOM.js +0 -87
  399. package/utils/supportRef.js +0 -10
package/space/index.js CHANGED
@@ -1,54 +1,54 @@
1
- /* 2025-11-19 10:00:01 */
2
- import { jsx as s, jsxs as _ } from "react/jsx-runtime";
3
- import { UI_COMMON_PREFIX as O } from "@unicom-cloud/utils/constant/ui";
4
- import { forwardRef as g, Fragment as R } from "react";
1
+ /* 2025-11-28 16:31:16 */
2
+ import { jsx as n, jsxs as M } from "react/jsx-runtime";
3
+ import { UI_COMMON_PREFIX as _ } from "@unicom-cloud/utils/constant/ui";
4
+ import { forwardRef as $, useRef as O, useImperativeHandle as b, Fragment as k } from "react";
5
5
  import { GAP_SIZE_MAP as d } from "../flex/interface.js";
6
- import b from "../hooks/use-merge-props/index.js";
7
- import k from "@unicom-cloud/utils/class-name";
6
+ import F from "../hooks/use-merge-props/index.js";
7
+ import H from "@unicom-cloud/utils/class-name";
8
8
  import "../utils/is.js";
9
- import { toArray as E } from "../utils/toArray.js";
10
- import { isString as F, isNumber as f, isArray as L } from "@unicom-cloud/utils/is";
11
- const U = {
9
+ import { toArray as L } from "../utils/toArray.js";
10
+ import { isString as U, isNumber as g, isArray as X } from "@unicom-cloud/utils/is";
11
+ const Z = {
12
12
  size: "small",
13
13
  direction: "horizontal"
14
- }, l = g(
15
- (n, a) => {
16
- const y = b(
17
- n,
18
- U,
14
+ }, l = $(
15
+ (a, s) => {
16
+ const S = F(
17
+ a,
18
+ Z,
19
19
  {}
20
20
  ), {
21
- className: S,
22
- style: h,
23
- children: N,
24
- gap: G,
25
- size: w,
21
+ className: h,
22
+ style: N,
23
+ children: G,
24
+ gap: w,
25
+ size: x,
26
26
  direction: i = "horizontal",
27
- align: x,
28
- alignItems: P,
27
+ align: P,
28
+ alignItems: R,
29
29
  justifyContent: p,
30
30
  wrap: V,
31
- split: m,
31
+ separator: m,
32
32
  rtl: j,
33
- ...z
34
- } = y, t = `${O}-space`, e = G ?? w, u = P ?? x ?? (i === "horizontal" ? "center" : ""), A = k(
35
- t,
33
+ ...v
34
+ } = S, e = `${_}-space`, t = w ?? x, u = R ?? P ?? (i === "horizontal" ? "center" : ""), z = H(
35
+ e,
36
36
  {
37
- [`${t}-${i}`]: i,
38
- [`${t}-justify-content-${p}`]: p,
39
- [`${t}-align-items-${u}`]: u,
40
- [`${t}-rtl`]: j
37
+ [`${e}-${i}`]: i,
38
+ [`${e}-justify-content-${p}`]: p,
39
+ [`${e}-align-items-${u}`]: u,
40
+ [`${e}-rtl`]: j
41
41
  },
42
- V ? `${t}-wrap` : `${t}-no-wrap`,
43
- S
44
- ), c = (r) => f(r) ? r : d[r] ?? d.small, v = {
42
+ V ? `${e}-wrap` : `${e}-no-wrap`,
43
+ h
44
+ ), c = (r) => g(r) ? r : d[r] ?? d.small, A = {
45
45
  ...(() => {
46
- if (F(e) || f(e))
46
+ if (U(t) || g(t))
47
47
  return {
48
- gap: `${c(e)}px`
48
+ gap: `${c(t)}px`
49
49
  };
50
- if (L(e)) {
51
- const r = c(e[1]), o = c(e[0]);
50
+ if (X(t)) {
51
+ const r = c(t[1]), o = c(t[0]);
52
52
  return {
53
53
  rowGap: `${r}px`,
54
54
  columnGap: `${o}px`
@@ -56,26 +56,39 @@ const U = {
56
56
  }
57
57
  return {};
58
58
  })(),
59
- ...h
60
- }, C = E(N);
61
- return /* @__PURE__ */ s("div", { ref: a, className: A, style: v, ...z, children: C.map((r, o) => {
62
- const I = r?.key ?? o, M = m != null && o > 0;
63
- return /* @__PURE__ */ _(R, { children: [
64
- M && /* @__PURE__ */ s("div", { className: `${t}-item-split`, children: m }),
65
- /* @__PURE__ */ s("div", { className: `${t}-item`, children: r })
66
- ] }, I);
67
- }) });
59
+ ...N
60
+ }, I = L(G), f = O(null);
61
+ return b(s, () => ({
62
+ getRootElement() {
63
+ return f.current;
64
+ }
65
+ })), /* @__PURE__ */ n(
66
+ "div",
67
+ {
68
+ ref: f,
69
+ className: z,
70
+ style: A,
71
+ ...v,
72
+ children: I.map((r, o) => {
73
+ const C = r?.key ?? o, E = m != null && o > 0;
74
+ return /* @__PURE__ */ M(k, { children: [
75
+ E && /* @__PURE__ */ n("div", { className: `${e}-item-separator`, children: m }),
76
+ /* @__PURE__ */ n("div", { className: `${e}-item`, children: r })
77
+ ] }, C);
78
+ })
79
+ }
80
+ );
68
81
  }
69
82
  );
70
83
  l.displayName = "Space";
71
- const $ = g(
72
- (n, a) => /* @__PURE__ */ s(l, { ...n, ref: a, direction: "vertical" })
84
+ const y = $(
85
+ (a, s) => /* @__PURE__ */ n(l, { ...a, ref: s, direction: "vertical" })
73
86
  );
74
- $.displayName = "SpaceVertical";
75
- const W = Object.assign(l, {
76
- Vertical: $
87
+ y.displayName = "SpaceVertical";
88
+ const re = Object.assign(l, {
89
+ Vertical: y
77
90
  });
78
91
  export {
79
- $ as SpaceVertical,
80
- W as default
92
+ y as SpaceVertical,
93
+ re as default
81
94
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import e from "react";
4
4
  const a = (n, r) => {
@@ -1,54 +1,59 @@
1
- /* 2025-11-19 10:00:01 */
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-28 16:31:16 */
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-28 16:31:16 */
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 10:00:01 */
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-28 16:31:16 */
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 10:00:01 */
2
- import { jsx as d } from "react/jsx-runtime";
1
+ /* 2025-11-28 16:31:16 */
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 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
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 10:00:01 */
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-28 16:31:16 */
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
  };