@unicom-cloud/ui-common 0.1.24 → 0.1.26

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 (303) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +23 -19
  3. package/border-beam/BorderBeam.js +1 -1
  4. package/border-beam/Effect.d.ts +1 -1
  5. package/border-beam/Effect.js +19 -17
  6. package/border-beam/constants.js +3 -3
  7. package/border-beam/hooks/useBorderSize.js +1 -1
  8. package/border-beam/hooks/useChildDom.js +3 -3
  9. package/border-beam/index.d.ts +3 -0
  10. package/border-beam/index.js +2 -2
  11. package/border-beam/utils.js +1 -1
  12. package/development/Development.js +1 -1
  13. package/development/index.d.ts +3 -0
  14. package/development/index.js +2 -2
  15. package/empty/Empty.js +1 -1
  16. package/empty/index.d.ts +3 -0
  17. package/empty/index.js +2 -2
  18. package/flex/Flex.js +1 -1
  19. package/flex/index.d.ts +4 -1
  20. package/flex/index.js +2 -2
  21. package/flex/utils.js +1 -1
  22. package/higher-order/index.js +1 -1
  23. package/higher-order/with-speech-synthesis/index.d.ts +3 -0
  24. package/higher-order/with-speech-synthesis/index.js +2 -2
  25. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +1 -1
  26. package/hooks/create-deep-compare-effect/index.js +1 -1
  27. package/hooks/create-update-effect/index.js +1 -1
  28. package/hooks/create-use-storage-state/index.d.ts +1 -1
  29. package/hooks/create-use-storage-state/index.js +1 -1
  30. package/hooks/index.js +1 -1
  31. package/hooks/use-async-effect/index.js +1 -1
  32. package/hooks/use-boolean/index.js +1 -1
  33. package/hooks/use-click-away/index.js +1 -1
  34. package/hooks/use-computed-state/index.js +1 -1
  35. package/hooks/use-controllable-value/index.js +1 -1
  36. package/hooks/use-cookie-state/index.d.ts +1 -1
  37. package/hooks/use-cookie-state/index.js +1 -1
  38. package/hooks/use-count-down/index.js +1 -1
  39. package/hooks/use-counter/index.d.ts +4 -4
  40. package/hooks/use-counter/index.js +1 -1
  41. package/hooks/use-create/index.js +1 -1
  42. package/hooks/use-creation/index.js +1 -1
  43. package/hooks/use-debounce/index.js +1 -1
  44. package/hooks/use-debounce-effect/index.js +1 -1
  45. package/hooks/use-debounce-fn/index.js +1 -1
  46. package/hooks/use-deep-compare-effect/index.js +1 -1
  47. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  48. package/hooks/use-document-visibility/index.js +1 -1
  49. package/hooks/use-drag/index.js +1 -1
  50. package/hooks/use-drop/index.js +1 -1
  51. package/hooks/use-effect-event/index.js +1 -1
  52. package/hooks/use-event/index.js +1 -1
  53. package/hooks/use-event-emitter/index.js +1 -1
  54. package/hooks/use-event-listener/index.js +1 -1
  55. package/hooks/use-event-target/index.js +1 -1
  56. package/hooks/use-external/index.js +1 -1
  57. package/hooks/use-favicon/index.js +1 -1
  58. package/hooks/use-focus-within/index.js +1 -1
  59. package/hooks/use-force-update/index.js +1 -1
  60. package/hooks/use-fullscreen/index.d.ts +3 -3
  61. package/hooks/use-fullscreen/index.js +1 -1
  62. package/hooks/use-get-state/index.js +1 -1
  63. package/hooks/use-history-travel/index.d.ts +5 -5
  64. package/hooks/use-history-travel/index.js +1 -1
  65. package/hooks/use-hover/index.js +1 -1
  66. package/hooks/use-id/index.js +1 -1
  67. package/hooks/use-in-viewport/index.d.ts +1 -0
  68. package/hooks/use-in-viewport/index.js +7 -6
  69. package/hooks/use-infinite-scroll/index.d.ts +4 -4
  70. package/hooks/use-infinite-scroll/index.js +1 -1
  71. package/hooks/use-intersection-observer/index.js +1 -1
  72. package/hooks/use-intersection-observers/index.js +1 -1
  73. package/hooks/use-interval/index.js +1 -1
  74. package/hooks/use-is-first-render/index.js +1 -1
  75. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  76. package/hooks/use-key-press/index.js +1 -1
  77. package/hooks/use-keyboard-event/index.js +1 -1
  78. package/hooks/use-latest/index.js +1 -1
  79. package/hooks/use-listen-window-resize/index.js +1 -1
  80. package/hooks/use-local-storage-state/index.d.ts +1 -1
  81. package/hooks/use-local-storage-state/index.js +1 -1
  82. package/hooks/use-lock-fn/index.js +1 -1
  83. package/hooks/use-long-press/index.js +1 -1
  84. package/hooks/use-map/index.d.ts +5 -5
  85. package/hooks/use-map/index.js +1 -1
  86. package/hooks/use-media/index.js +1 -1
  87. package/hooks/use-memo/index.js +1 -1
  88. package/hooks/use-memoized-fn/index.d.ts +6 -3
  89. package/hooks/use-memoized-fn/index.js +2 -2
  90. package/hooks/use-merge-props/index.js +1 -1
  91. package/hooks/use-merge-value/index.js +1 -1
  92. package/hooks/use-mobile/index.js +1 -1
  93. package/hooks/use-mount/index.js +1 -1
  94. package/hooks/use-mouse/index.js +1 -1
  95. package/hooks/use-move/index.js +1 -1
  96. package/hooks/use-mutation-observer/index.js +1 -1
  97. package/hooks/use-mutation-observers/index.js +1 -1
  98. package/hooks/use-network/index.js +1 -1
  99. package/hooks/use-online-status/index.js +1 -1
  100. package/hooks/use-overflow-hidden/index.js +1 -1
  101. package/hooks/use-override-ref/index.js +1 -1
  102. package/hooks/use-pagination/index.js +1 -1
  103. package/hooks/use-paste-image/index.js +1 -1
  104. package/hooks/use-persist-callback/index.js +1 -1
  105. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  106. package/hooks/use-previous/index.js +1 -1
  107. package/hooks/use-raf-interval/index.js +1 -1
  108. package/hooks/use-raf-state/index.js +1 -1
  109. package/hooks/use-raf-timeout/index.js +1 -1
  110. package/hooks/use-reactive/index.js +1 -1
  111. package/hooks/use-ref-latest/index.js +1 -1
  112. package/hooks/use-refs/index.js +1 -1
  113. package/hooks/use-request/index.js +1 -1
  114. package/hooks/use-request/src/Fetch.js +1 -1
  115. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  116. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  117. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  118. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  119. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  120. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  121. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  122. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  123. package/hooks/use-request/src/useRequest.js +1 -1
  124. package/hooks/use-request/src/useRequestImplement.js +1 -1
  125. package/hooks/use-request/src/utils/cache.js +1 -1
  126. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  127. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  128. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  129. package/hooks/use-request/src/utils/isOnline.js +1 -1
  130. package/hooks/use-request/src/utils/limit.js +1 -1
  131. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  132. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  133. package/hooks/use-reset-state/index.js +1 -1
  134. package/hooks/use-resize-observer/index.js +1 -1
  135. package/hooks/use-resize-observers/index.js +1 -1
  136. package/hooks/use-responsive/index.js +1 -1
  137. package/hooks/use-safe-state/index.js +1 -1
  138. package/hooks/use-scroll/index.js +1 -1
  139. package/hooks/use-selections/index.d.ts +7 -7
  140. package/hooks/use-selections/index.js +1 -1
  141. package/hooks/use-session-storage-state/index.d.ts +1 -1
  142. package/hooks/use-session-storage-state/index.js +1 -1
  143. package/hooks/use-set/index.d.ts +3 -3
  144. package/hooks/use-set/index.js +1 -1
  145. package/hooks/use-set-state/index.d.ts +2 -2
  146. package/hooks/use-set-state/index.js +1 -1
  147. package/hooks/use-size/index.js +1 -1
  148. package/hooks/use-state-callback/index.js +1 -1
  149. package/hooks/use-state-with-promise/index.js +1 -1
  150. package/hooks/use-sync-state/index.js +1 -1
  151. package/hooks/use-text-selection/index.js +1 -1
  152. package/hooks/use-theme/index.d.ts +1 -1
  153. package/hooks/use-theme/index.js +1 -1
  154. package/hooks/use-throttle/index.js +1 -1
  155. package/hooks/use-throttle-effect/index.js +1 -1
  156. package/hooks/use-throttle-fn/index.js +1 -1
  157. package/hooks/use-timeout/index.js +1 -1
  158. package/hooks/use-title/index.js +1 -1
  159. package/hooks/use-toggle/index.js +1 -1
  160. package/hooks/use-tracked-effect/index.js +1 -1
  161. package/hooks/use-unmount/index.js +1 -1
  162. package/hooks/use-unmounted-ref/index.js +1 -1
  163. package/hooks/use-update/index.js +1 -1
  164. package/hooks/use-update-effect/index.js +1 -1
  165. package/hooks/use-update-layout-effect/index.js +1 -1
  166. package/hooks/use-url-state/index.d.ts +2 -1
  167. package/hooks/use-url-state/index.js +1 -1
  168. package/hooks/use-virtual-list/index.d.ts +1 -1
  169. package/hooks/use-virtual-list/index.js +1 -1
  170. package/hooks/use-watch/index.js +1 -1
  171. package/hooks/use-web-socket/index.js +1 -1
  172. package/hooks/use-why-did-you-update/index.js +1 -1
  173. package/hooks/use-window-size/index.js +1 -1
  174. package/hooks/utils/createEffectWithTarget.js +1 -1
  175. package/hooks/utils/depsAreSame.js +1 -1
  176. package/hooks/utils/depsEqual.js +1 -1
  177. package/hooks/utils/domTarget.js +1 -1
  178. package/hooks/utils/getDocumentOrShadow.js +1 -1
  179. package/hooks/utils/index.js +1 -1
  180. package/hooks/utils/isAppleDevice.js +1 -1
  181. package/hooks/utils/isBrowser.js +1 -1
  182. package/hooks/utils/isDev.js +1 -1
  183. package/hooks/utils/rect.js +1 -1
  184. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  185. package/hooks/utils/useEffectWithTarget.js +1 -1
  186. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  187. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  188. package/icons/file/IconFile.js +1 -1
  189. package/icons/file/index.d.ts +3 -0
  190. package/icons/file/index.js +2 -2
  191. package/index.js +144 -140
  192. package/package.json +1 -1
  193. package/progress/Progress.js +1 -1
  194. package/progress/index.d.ts +3 -0
  195. package/progress/index.js +2 -2
  196. package/resize-observer/Collection.js +1 -1
  197. package/resize-observer/ResizeObserver.js +1 -1
  198. package/resize-observer/SingleObserver.js +1 -1
  199. package/resize-observer/index.d.ts +4 -1
  200. package/resize-observer/index.js +2 -2
  201. package/resize-observer/observerUtil.js +1 -1
  202. package/space/Space.js +1 -1
  203. package/space/index.d.ts +4 -1
  204. package/space/index.js +2 -2
  205. package/style/animation.less +4 -2
  206. package/style/global.less +5 -2
  207. package/style/index.less +5 -1
  208. package/style/normalize.less +10 -0
  209. package/style/variables.less +1 -0
  210. package/style.css +1 -1
  211. package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
  212. package/suspense-fallback-test/index.d.ts +3 -0
  213. package/suspense-fallback-test/index.js +2 -2
  214. package/test.js +1 -1
  215. package/timer/Timer.js +1 -1
  216. package/timer/index.d.ts +3 -0
  217. package/timer/index.js +2 -2
  218. package/transition/Transition.js +63 -62
  219. package/transition/TransitionCSS.js +33 -33
  220. package/transition/TransitionGroup.js +2 -2
  221. package/transition/TransitionStyle.js +2 -2
  222. package/transition/constants.d.ts +18 -15
  223. package/transition/constants.js +49 -40
  224. package/transition/context.js +1 -1
  225. package/transition/index.d.ts +6 -3
  226. package/transition/index.js +10 -10
  227. package/transition/interface.d.ts +10 -12
  228. package/transition/utils.d.ts +1 -1
  229. package/transition/utils.js +61 -61
  230. package/utils/callOrReturn.js +1 -1
  231. package/utils/callbackOriginRef.js +1 -1
  232. package/utils/caseName.js +1 -1
  233. package/utils/className.js +1 -1
  234. package/utils/constant.js +1 -1
  235. package/utils/copy.js +1 -1
  236. package/utils/css.d.ts +1 -0
  237. package/utils/css.js +4 -0
  238. package/utils/date.js +1 -1
  239. package/utils/dayjs.js +1 -1
  240. package/utils/dom.d.ts +2 -1
  241. package/utils/dom.js +21 -21
  242. package/utils/emitter.js +1 -1
  243. package/utils/file.js +1 -1
  244. package/utils/fileRead.js +1 -1
  245. package/utils/fileToDataURL.js +1 -1
  246. package/utils/fillNBSP.js +1 -1
  247. package/utils/findRootElement.d.ts +1 -1
  248. package/utils/findRootElement.js +13 -13
  249. package/utils/findScrollParent.js +1 -1
  250. package/utils/getHighlightText.js +1 -1
  251. package/utils/getHotkeyHandler.js +1 -1
  252. package/utils/getScrollBarHeight.js +1 -1
  253. package/utils/getScrollBarSize.js +1 -1
  254. package/utils/getScrollBarWidth.js +1 -1
  255. package/utils/getStringLength.js +1 -1
  256. package/utils/include.js +1 -1
  257. package/utils/index.d.ts +3 -2
  258. package/utils/index.js +72 -70
  259. package/utils/intersectionObserver.js +1 -1
  260. package/utils/is.js +1 -1
  261. package/utils/keyboardCode.js +1 -1
  262. package/utils/lodash.js +1 -1
  263. package/utils/math.js +1 -1
  264. package/utils/mergeProps.js +1 -1
  265. package/utils/mergedToString.js +1 -1
  266. package/utils/mutationObserver.js +1 -1
  267. package/utils/names.js +1 -1
  268. package/utils/object.js +1 -1
  269. package/utils/omit.js +1 -1
  270. package/utils/pad.js +1 -1
  271. package/utils/pick.js +1 -1
  272. package/utils/pinyin.d.ts +2 -1
  273. package/utils/pinyin.js +10 -3
  274. package/utils/react19Adapter.js +1 -1
  275. package/utils/reactNode.js +1 -1
  276. package/utils/ref.d.ts +3 -3
  277. package/utils/ref.js +1 -1
  278. package/utils/resizeObserver.js +1 -1
  279. package/utils/saveAs.js +1 -1
  280. package/utils/screenfull.js +1 -1
  281. package/utils/scrollIntoViewIfNeeded.js +1 -1
  282. package/utils/setCreateRoot.js +1 -1
  283. package/utils/setDarkTheme.js +1 -1
  284. package/utils/setDir.js +2 -2
  285. package/utils/setPrimaryColor.js +1 -1
  286. package/utils/setTheme.js +2 -2
  287. package/utils/string.js +1 -1
  288. package/utils/style.js +1 -1
  289. package/utils/throttleByRequestAnimationFrame.d.ts +6 -0
  290. package/utils/throttleByRequestAnimationFrame.js +18 -0
  291. package/utils/tinycolor.js +1 -1
  292. package/utils/toArray.js +1 -1
  293. package/utils/tree.js +1 -1
  294. package/utils/tween.js +1 -1
  295. package/utils/uuid.js +1 -1
  296. package/utils/validate.js +1 -1
  297. package/utils/warning.js +1 -1
  298. package/version/index.js +8 -8
  299. package/hooks/use-event-emitter/demo/demo1.d.ts +0 -10
  300. package/utils/throttleByRaf.d.ts +0 -6
  301. package/utils/throttleByRaf.js +0 -16
  302. package/utils/throttleByRaf2.d.ts +0 -6
  303. package/utils/throttleByRaf2.js +0 -9
@@ -1,14 +1,14 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { TRANSITION_COMPONENT_INFO as e } from "../utils/names.js";
3
- import { TRANSITION_ADD_END_LISTENER_KEY as t, TRANSITION_ALWAYS_MOUNTED_KEY as n, TRANSITION_CSS_CLASS_NAMES_SUFFIX as r, TRANSITION_DEFAULT_PROPS as i, TRANSITION_DURATION_DEFAULT as a, TRANSITION_DURATION_KEY as o, TRANSITION_EVENT_MAP as s, TRANSITION_EVENT_NAME_KEY as c, TRANSITION_MOUNT_ON_ENTER_KEY as l, TRANSITION_NEXT_PHASE_KEY as u, TRANSITION_PHASE_APPEAR as d, TRANSITION_PHASE_APPEAR_ACTIVE as f, TRANSITION_PHASE_APPEAR_DONE as p, TRANSITION_PHASE_ENTER as m, TRANSITION_PHASE_ENTER_ACTIVE as h, TRANSITION_PHASE_ENTER_DONE as g, TRANSITION_PHASE_EVENT_ON_ENTER as _, TRANSITION_PHASE_EVENT_ON_ENTERED as v, TRANSITION_PHASE_EVENT_ON_ENTERING as y, TRANSITION_PHASE_EVENT_ON_EXIT as b, TRANSITION_PHASE_EVENT_ON_EXITED as x, TRANSITION_PHASE_EVENT_ON_EXITING as S, TRANSITION_PHASE_EXIT as C, TRANSITION_PHASE_EXIT_ACTIVE as w, TRANSITION_PHASE_EXIT_DONE as T, TRANSITION_UNMOUNT_ON_EXIT_KEY as E, TransitionPhase as D, TransitionPhaseEvent as O } from "./constants.js";
4
- import { TransitionCSS_Context as k, TransitionContext as A, TransitionGroupContext as j, TransitionStyleContext as M } from "./context.js";
5
- import { inArrayHandler as ee, isActivePhaseHandler as N, isAppearActivePhaseHandler as P, isAppearDonePhaseHandler as F, isAppearPhaseHandler as I, isAppearStartPhaseHandler as L, isDonePhaseHandler as R, isEnterActivePhaseHandler as z, isEnterDonePhaseHandler as B, isEnterPhaseHandler as V, isEnterStartPhaseHandler as H, isExitActivePhaseHandler as U, isExitDonePhaseHandler as W, isExitPhaseHandler as G, isExitStartPhaseHandler as K, isStartPhaseHandler as q, transitionFallbackAppearToEnter as J, transitionNormalizeDurations as Y } from "./utils.js";
6
- import { Transition as X } from "./Transition.js";
7
- import { TransitionCSS as Z } from "./TransitionCSS.js";
8
- import { TransitionGroup as Q } from "./TransitionGroup.js";
9
- import { TransitionStyle as $ } from "./TransitionStyle.js";
3
+ import { TRANSITION_ADD_END_LISTENER_KEY as t, TRANSITION_ALWAYS_MOUNTED_KEY as ee, TRANSITION_CSS_CLASS_NAMES_SUFFIX as n, TRANSITION_DEFAULT_PROPS as r, TRANSITION_DURATION_DEFAULT as i, TRANSITION_DURATION_KEY as a, TRANSITION_EVENT_MAP as o, TRANSITION_EVENT_NAME_KEY as s, TRANSITION_MOUNT_ON_ENTER_KEY as c, TRANSITION_NEXT_PHASE_KEY as l, TRANSITION_PHASE_APPEAR_ACTIVE as u, TRANSITION_PHASE_APPEAR_DONE as d, TRANSITION_PHASE_APPEAR_KEY as f, TRANSITION_PHASE_APPEAR_START as p, TRANSITION_PHASE_ENTER_ACTIVE as m, TRANSITION_PHASE_ENTER_DONE as h, TRANSITION_PHASE_ENTER_KEY as g, TRANSITION_PHASE_ENTER_START as _, TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE as v, TRANSITION_PHASE_EVENT_ON_ENTER_DONE as y, TRANSITION_PHASE_EVENT_ON_ENTER_START as b, TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE as x, TRANSITION_PHASE_EVENT_ON_EXIT_DONE as S, TRANSITION_PHASE_EVENT_ON_EXIT_START as C, TRANSITION_PHASE_EXIT_ACTIVE as w, TRANSITION_PHASE_EXIT_DONE as T, TRANSITION_PHASE_EXIT_KEY as E, TRANSITION_PHASE_EXIT_START as D, TRANSITION_UNMOUNT_ON_EXIT_KEY as O, TransitionPhase as k, TransitionPhaseEvent as A } from "./constants.js";
4
+ import { TransitionCSS_Context as j, TransitionContext as M, TransitionGroupContext as N, TransitionStyleContext as P } from "./context.js";
5
+ import { inArrayHandler as F, isActivePhaseHandler as I, isAppearActivePhaseHandler as L, isAppearDonePhaseHandler as R, isAppearPhaseHandler as z, isAppearStartPhaseHandler as B, isDonePhaseHandler as V, isEnterActivePhaseHandler as H, isEnterDonePhaseHandler as U, isEnterPhaseHandler as W, isEnterStartPhaseHandler as G, isExitActivePhaseHandler as K, isExitDonePhaseHandler as q, isExitPhaseHandler as J, isExitStartPhaseHandler as Y, isStartPhaseHandler as X, transitionFallbackAppearToEnter as Z, transitionNormalizeDurations as Q } from "./utils.js";
6
+ import { Transition as $ } from "./Transition.js";
7
+ import { TransitionCSS as te } from "./TransitionCSS.js";
8
+ import { TransitionGroup as ne } from "./TransitionGroup.js";
9
+ import { TransitionStyle as re } from "./TransitionStyle.js";
10
10
  //#region components/common/transition/index.ts
11
- var te = Object.assign(X, { id: e.id });
11
+ var ie = Object.assign($, { ...e });
12
12
  //#endregion
13
- export { t as TRANSITION_ADD_END_LISTENER_KEY, n as TRANSITION_ALWAYS_MOUNTED_KEY, r as TRANSITION_CSS_CLASS_NAMES_SUFFIX, i as TRANSITION_DEFAULT_PROPS, a as TRANSITION_DURATION_DEFAULT, o as TRANSITION_DURATION_KEY, s as TRANSITION_EVENT_MAP, c as TRANSITION_EVENT_NAME_KEY, l as TRANSITION_MOUNT_ON_ENTER_KEY, u as TRANSITION_NEXT_PHASE_KEY, d as TRANSITION_PHASE_APPEAR, f as TRANSITION_PHASE_APPEAR_ACTIVE, p as TRANSITION_PHASE_APPEAR_DONE, m as TRANSITION_PHASE_ENTER, h as TRANSITION_PHASE_ENTER_ACTIVE, g as TRANSITION_PHASE_ENTER_DONE, _ as TRANSITION_PHASE_EVENT_ON_ENTER, v as TRANSITION_PHASE_EVENT_ON_ENTERED, y as TRANSITION_PHASE_EVENT_ON_ENTERING, b as TRANSITION_PHASE_EVENT_ON_EXIT, x as TRANSITION_PHASE_EVENT_ON_EXITED, S as TRANSITION_PHASE_EVENT_ON_EXITING, C as TRANSITION_PHASE_EXIT, w as TRANSITION_PHASE_EXIT_ACTIVE, T as TRANSITION_PHASE_EXIT_DONE, E as TRANSITION_UNMOUNT_ON_EXIT_KEY, X as Transition, Z as TransitionCSS, k as TransitionCSS_Context, A as TransitionContext, Q as TransitionGroup, j as TransitionGroupContext, D as TransitionPhase, O as TransitionPhaseEvent, $ as TransitionStyle, M as TransitionStyleContext, te as default, ee as inArrayHandler, N as isActivePhaseHandler, P as isAppearActivePhaseHandler, F as isAppearDonePhaseHandler, I as isAppearPhaseHandler, L as isAppearStartPhaseHandler, R as isDonePhaseHandler, z as isEnterActivePhaseHandler, B as isEnterDonePhaseHandler, V as isEnterPhaseHandler, H as isEnterStartPhaseHandler, U as isExitActivePhaseHandler, W as isExitDonePhaseHandler, G as isExitPhaseHandler, K as isExitStartPhaseHandler, q as isStartPhaseHandler, J as transitionFallbackAppearToEnter, N as transitionIsActivePhaseHandler, P as transitionIsAppearActivePhaseHandler, F as transitionIsAppearDonePhaseHandler, I as transitionIsAppearPhaseHandler, L as transitionIsAppearStartPhaseHandler, R as transitionIsDonePhaseHandler, z as transitionIsEnterActivePhaseHandler, B as transitionIsEnterDonePhaseHandler, V as transitionIsEnterPhaseHandler, H as transitionIsEnterStartPhaseHandler, U as transitionIsExitActivePhaseHandler, W as transitionIsExitDonePhaseHandler, G as transitionIsExitPhaseHandler, K as transitionIsExitStartPhaseHandler, q as transitionIsStartPhaseHandler, Y as transitionNormalizeDurations };
13
+ export { t as TRANSITION_ADD_END_LISTENER_KEY, ee as TRANSITION_ALWAYS_MOUNTED_KEY, n as TRANSITION_CSS_CLASS_NAMES_SUFFIX, r as TRANSITION_DEFAULT_PROPS, i as TRANSITION_DURATION_DEFAULT, a as TRANSITION_DURATION_KEY, o as TRANSITION_EVENT_MAP, s as TRANSITION_EVENT_NAME_KEY, c as TRANSITION_MOUNT_ON_ENTER_KEY, l as TRANSITION_NEXT_PHASE_KEY, u as TRANSITION_PHASE_APPEAR_ACTIVE, d as TRANSITION_PHASE_APPEAR_DONE, f as TRANSITION_PHASE_APPEAR_KEY, p as TRANSITION_PHASE_APPEAR_START, m as TRANSITION_PHASE_ENTER_ACTIVE, h as TRANSITION_PHASE_ENTER_DONE, g as TRANSITION_PHASE_ENTER_KEY, _ as TRANSITION_PHASE_ENTER_START, v as TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE, y as TRANSITION_PHASE_EVENT_ON_ENTER_DONE, b as TRANSITION_PHASE_EVENT_ON_ENTER_START, x as TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE, S as TRANSITION_PHASE_EVENT_ON_EXIT_DONE, C as TRANSITION_PHASE_EVENT_ON_EXIT_START, w as TRANSITION_PHASE_EXIT_ACTIVE, T as TRANSITION_PHASE_EXIT_DONE, E as TRANSITION_PHASE_EXIT_KEY, D as TRANSITION_PHASE_EXIT_START, O as TRANSITION_UNMOUNT_ON_EXIT_KEY, $ as Transition, te as TransitionCSS, j as TransitionCSS_Context, M as TransitionContext, ne as TransitionGroup, N as TransitionGroupContext, k as TransitionPhase, A as TransitionPhaseEvent, re as TransitionStyle, P as TransitionStyleContext, ie as default, F as inArrayHandler, I as isActivePhaseHandler, L as isAppearActivePhaseHandler, R as isAppearDonePhaseHandler, z as isAppearPhaseHandler, B as isAppearStartPhaseHandler, V as isDonePhaseHandler, H as isEnterActivePhaseHandler, U as isEnterDonePhaseHandler, W as isEnterPhaseHandler, G as isEnterStartPhaseHandler, K as isExitActivePhaseHandler, q as isExitDonePhaseHandler, J as isExitPhaseHandler, Y as isExitStartPhaseHandler, X as isStartPhaseHandler, Z as transitionFallbackAppearToEnter, I as transitionIsActivePhaseHandler, L as transitionIsAppearActivePhaseHandler, R as transitionIsAppearDonePhaseHandler, z as transitionIsAppearPhaseHandler, B as transitionIsAppearStartPhaseHandler, V as transitionIsDonePhaseHandler, H as transitionIsEnterActivePhaseHandler, U as transitionIsEnterDonePhaseHandler, W as transitionIsEnterPhaseHandler, G as transitionIsEnterStartPhaseHandler, K as transitionIsExitActivePhaseHandler, q as transitionIsExitDonePhaseHandler, J as transitionIsExitPhaseHandler, Y as transitionIsExitStartPhaseHandler, X as transitionIsStartPhaseHandler, Q as transitionNormalizeDurations };
14
14
  /* 独立思考,明辨是非 */
@@ -24,19 +24,19 @@ export type TransitionProps = {
24
24
  */
25
25
  in?: boolean;
26
26
  /**
27
- * 如果为 true,当组件首次挂载时,过渡将运行 "appear" 阶段("appear"、"appearActive"、"appearDone")。
27
+ * 如果为 true,当组件首次挂载时,过渡将运行 "appear" 阶段("appearStart"、"appearActive"、"appearDone")。
28
28
  *
29
29
  * @default false
30
30
  */
31
31
  appear?: boolean;
32
32
  /**
33
- * 如果为 true,当组件进入时启用 "enter" 阶段("enter"、"enterActive"、"enterDone")。
33
+ * 如果为 true,当组件进入时启用 "enter" 阶段("enterStart"、"enterActive"、"enterDone")。
34
34
  *
35
35
  * @default true
36
36
  */
37
37
  enter?: boolean;
38
38
  /**
39
- * 如果为 true,当组件离开时启用 "exit" 阶段("exit"、"exitActive"、"exitDone")。
39
+ * 如果为 true,当组件离开时启用 "exit" 阶段("exitStart"、"exitActive"、"exitDone")。
40
40
  *
41
41
  * @default true
42
42
  */
@@ -78,27 +78,27 @@ export type TransitionProps = {
78
78
  /**
79
79
  * 进入开始时触发
80
80
  */
81
- onEnter?: (e?: HTMLElement | null) => void;
81
+ onEnterStart?: (e?: HTMLElement | null) => void;
82
82
  /**
83
83
  * 进入动画执行中触发
84
84
  */
85
- onEntering?: (e?: HTMLElement | null) => void;
85
+ onEnterActive?: (e?: HTMLElement | null) => void;
86
86
  /**
87
87
  * 进入动画完成触发
88
88
  */
89
- onEntered?: (e?: HTMLElement | null) => void;
89
+ onEnterDone?: (e?: HTMLElement | null) => void;
90
90
  /**
91
91
  * 退出开始时触发
92
92
  */
93
- onExit?: (e?: HTMLElement | null) => void;
93
+ onExitStart?: (e?: HTMLElement | null) => void;
94
94
  /**
95
95
  * 退出动画执行中触发
96
96
  */
97
- onExiting?: (e?: HTMLElement | null) => void;
97
+ onExitActive?: (e?: HTMLElement | null) => void;
98
98
  /**
99
99
  * 退出动画完成触发
100
100
  */
101
- onExited?: (e?: HTMLElement | null) => void;
101
+ onExitDone?: (e?: HTMLElement | null) => void;
102
102
  /**
103
103
  * 阶段发生变化前触发
104
104
  */
@@ -138,9 +138,7 @@ export type TransitionCSS_ChildProps = TransitionCSS_Props & {
138
138
  * 类型表示不同过渡阶段的样式。
139
139
  * `TransitionPhase` 是表示不同阶段的键,值是 `React.CSSProperties` 对象。
140
140
  */
141
- export type TransitionStyleStyles = {
142
- [key in TransitionPhase]?: React.CSSProperties;
143
- };
141
+ export type TransitionStyleStyles = Partial<Record<TransitionPhase, React.CSSProperties>>;
144
142
  export type TransitionStyleProps = Omit<TransitionProps, 'children'> & {
145
143
  /**
146
144
  * 要应用动画的子元素。
@@ -1,7 +1,7 @@
1
1
  import { TransitionPhase } from './constants';
2
2
  import type { TransitionCSS_ClassNamesObject, TransitionDurationObjectType, TransitionDurationType, TransitionStyleStyles } from './interface';
3
3
  export declare function transitionNormalizeDurations(duration: TransitionDurationType, declarationValue?: number): TransitionDurationObjectType;
4
- export declare function transitionFallbackAppearToEnter(o: TransitionStyleStyles | TransitionCSS_ClassNamesObject): TransitionCSS_ClassNamesObject | TransitionStyleStyles;
4
+ export declare function transitionFallbackAppearToEnter(o: TransitionStyleStyles | TransitionCSS_ClassNamesObject): TransitionCSS_ClassNamesObject | Partial<Record<TransitionPhase, import("react").CSSProperties>>;
5
5
  export declare function inArrayHandler<T extends TransitionPhase>(array: T[], phase: TransitionPhase): phase is T;
6
6
  export declare function isAppearPhaseHandler(phase: TransitionPhase): boolean;
7
7
  export declare function isAppearStartPhaseHandler(phase: TransitionPhase): boolean;
@@ -1,99 +1,99 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { isNullOrUndefined as e, isNumber as t, isPlainObject as n } from "../utils/is.js";
3
- import { TRANSITION_PHASE_APPEAR as r, TRANSITION_PHASE_APPEAR_ACTIVE as i, TRANSITION_PHASE_APPEAR_DONE as a, TRANSITION_PHASE_ENTER as o, TRANSITION_PHASE_ENTER_ACTIVE as s, TRANSITION_PHASE_ENTER_DONE as c, TRANSITION_PHASE_EXIT as l, TRANSITION_PHASE_EXIT_ACTIVE as u, TRANSITION_PHASE_EXIT_DONE as d } from "./constants.js";
3
+ import { TRANSITION_PHASE_APPEAR_ACTIVE as r, TRANSITION_PHASE_APPEAR_DONE as i, TRANSITION_PHASE_APPEAR_KEY as a, TRANSITION_PHASE_APPEAR_START as o, TRANSITION_PHASE_ENTER_ACTIVE as s, TRANSITION_PHASE_ENTER_DONE as c, TRANSITION_PHASE_ENTER_KEY as l, TRANSITION_PHASE_ENTER_START as u, TRANSITION_PHASE_EXIT_ACTIVE as d, TRANSITION_PHASE_EXIT_DONE as f, TRANSITION_PHASE_EXIT_KEY as p, TRANSITION_PHASE_EXIT_START as m } from "./constants.js";
4
4
  //#region components/common/transition/utils.ts
5
- function f(i, a) {
6
- let s = {
7
- [r]: void 0,
8
- [o]: void 0,
9
- [l]: void 0
5
+ function h(r, i) {
6
+ let o = {
7
+ [a]: void 0,
8
+ [l]: void 0,
9
+ [p]: void 0
10
10
  };
11
- return n(i) && (s = Object.assign(s, i)), Object.entries(s).forEach(([n, c], u, d) => {
12
- if (e(c)) {
11
+ return n(r) && (o = Object.assign(o, r)), Object.entries(o).forEach(([n, a], s, c) => {
12
+ if (e(a)) {
13
13
  let e;
14
- e = t(i) ? i : a ?? s[r] ?? s[o] ?? s[l] ?? 500, s[n] = Math.max(e, 0);
14
+ e = t(r) ? r : i ?? o.appear ?? o.enter ?? o.exit ?? 500, o[n] = Math.max(e, 0);
15
15
  }
16
- }), s;
16
+ }), o;
17
17
  }
18
- function p(e) {
19
- return e[r] ||= e[o], e[i] ||= e[s], e[a] ||= e[c], e;
18
+ function g(e) {
19
+ return e[o] ||= e[u], e[r] ||= e[s], e[i] ||= e[c], e;
20
20
  }
21
- function m(e, t) {
21
+ function _(e, t) {
22
22
  return e.includes(t);
23
23
  }
24
- function h(e) {
25
- return m([
24
+ function v(e) {
25
+ return _([
26
+ o,
26
27
  r,
27
- i,
28
- a
28
+ i
29
29
  ], e);
30
30
  }
31
- function g(e) {
32
- return m([r], e);
31
+ function y(e) {
32
+ return _([o], e);
33
33
  }
34
- function _(e) {
35
- return m([i], e);
34
+ function b(e) {
35
+ return _([r], e);
36
36
  }
37
- function v(e) {
38
- return m([a], e);
37
+ function x(e) {
38
+ return _([i], e);
39
39
  }
40
- function y(e, t) {
41
- let n = m([
42
- o,
40
+ function S(e, t) {
41
+ let n = _([
42
+ u,
43
43
  s,
44
44
  c
45
45
  ], e);
46
- return t && (n ||= h(e)), n;
46
+ return t && (n ||= v(e)), n;
47
47
  }
48
- function b(e, t) {
49
- let n = m([o], e);
50
- return t && (n ||= g(e)), n;
48
+ function C(e, t) {
49
+ let n = _([u], e);
50
+ return t && (n ||= y(e)), n;
51
51
  }
52
- function x(e, t) {
53
- let n = m([s], e);
54
- return t && (n ||= _(e)), n;
52
+ function w(e, t) {
53
+ let n = _([s], e);
54
+ return t && (n ||= b(e)), n;
55
55
  }
56
- function S(e, t) {
57
- let n = m([c], e);
58
- return t && (n ||= v(e)), n;
56
+ function T(e, t) {
57
+ let n = _([c], e);
58
+ return t && (n ||= x(e)), n;
59
59
  }
60
- function C(e) {
61
- return m([
62
- l,
63
- u,
64
- d
60
+ function E(e) {
61
+ return _([
62
+ m,
63
+ d,
64
+ f
65
65
  ], e);
66
66
  }
67
- function w(e) {
68
- return m([l], e);
67
+ function D(e) {
68
+ return _([m], e);
69
69
  }
70
- function T(e) {
71
- return m([u], e);
70
+ function O(e) {
71
+ return _([d], e);
72
72
  }
73
- function E(e) {
74
- return m([d], e);
73
+ function k(e) {
74
+ return _([f], e);
75
75
  }
76
- function D(e) {
77
- return m([
78
- r,
76
+ function A(e) {
77
+ return _([
79
78
  o,
80
- l
79
+ u,
80
+ m
81
81
  ], e);
82
82
  }
83
- function O(e) {
84
- return m([
85
- i,
83
+ function j(e) {
84
+ return _([
85
+ r,
86
86
  s,
87
- u
87
+ d
88
88
  ], e);
89
89
  }
90
- function k(e) {
91
- return m([
92
- a,
90
+ function M(e) {
91
+ return _([
92
+ i,
93
93
  c,
94
- d
94
+ f
95
95
  ], e);
96
96
  }
97
97
  //#endregion
98
- export { m as inArrayHandler, O as isActivePhaseHandler, _ as isAppearActivePhaseHandler, v as isAppearDonePhaseHandler, h as isAppearPhaseHandler, g as isAppearStartPhaseHandler, k as isDonePhaseHandler, x as isEnterActivePhaseHandler, S as isEnterDonePhaseHandler, y as isEnterPhaseHandler, b as isEnterStartPhaseHandler, T as isExitActivePhaseHandler, E as isExitDonePhaseHandler, C as isExitPhaseHandler, w as isExitStartPhaseHandler, D as isStartPhaseHandler, p as transitionFallbackAppearToEnter, f as transitionNormalizeDurations };
98
+ export { _ as inArrayHandler, j as isActivePhaseHandler, b as isAppearActivePhaseHandler, x as isAppearDonePhaseHandler, v as isAppearPhaseHandler, y as isAppearStartPhaseHandler, M as isDonePhaseHandler, w as isEnterActivePhaseHandler, T as isEnterDonePhaseHandler, S as isEnterPhaseHandler, C as isEnterStartPhaseHandler, O as isExitActivePhaseHandler, k as isExitDonePhaseHandler, E as isExitPhaseHandler, D as isExitStartPhaseHandler, A as isStartPhaseHandler, g as transitionFallbackAppearToEnter, h as transitionNormalizeDurations };
99
99
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { callOrReturn as e, callOrReturn as t } from "@unicom-cloud/utils/function";
3
3
  export { e as callOrReturn, t as default };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { fillRef as e, getReactElementRef as t } from "./ref.js";
3
3
  //#region components/common/utils/callbackOriginRef.ts
4
4
  function n(n, r) {
package/utils/caseName.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e, { default as t } from "@unicom-cloud/utils/case-name";
3
3
  export { e as caseName, t as default };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e, { default as t, default as n } from "@unicom-cloud/utils/class-name";
3
3
  export { e as className, n as cs, t as default };
4
4
  /* 独立思考,明辨是非 */
package/utils/constant.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e from "lodash/noop";
3
3
  import { UI_PC_KEY as t, UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constant/ui";
4
4
  //#region components/common/utils/constant.ts
package/utils/copy.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e from "@unicom-cloud/utils/clipboard-copy";
3
3
  //#region components/common/utils/copy.ts
4
4
  var t = e;
package/utils/css.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@unicom-cloud/utils/css';
package/utils/css.js ADDED
@@ -0,0 +1,4 @@
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
+ import "../.virtual/_rolldown/runtime.js";
3
+ export * from "@unicom-cloud/utils/css";
4
+ /* 独立思考,明辨是非 */
package/utils/date.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { convertTime as e, convertToDurationBasedOnTimeUnits as t, dateFormat as n, dayjsFormat as r } from "@unicom-cloud/utils/date";
3
3
  export { e as convertTime, t as convertToDurationBasedOnTimeUnits, n as dateFormat, r as dayjsFormat };
4
4
  /* 独立思考,明辨是非 */
package/utils/dayjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e from "dayjs";
3
3
  import "dayjs/locale/zh-cn.js";
4
4
  import t from "dayjs/plugin/advancedFormat.js";
package/utils/dom.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import canUseDOM from '@unicom-cloud/utils/dom-helpers/canUseDOM';
2
2
  import getElementCoordinates from '@unicom-cloud/utils/dom-helpers/getElementCoordinates';
3
3
  import forceReflow from '@unicom-cloud/utils/dom-helpers/reflow';
4
+ import type { ElementLike } from './findRootElement';
4
5
  declare function on(eventTarget: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
5
6
  declare function off(eventTarget: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
6
7
  declare function contains(parentNode: Node | HTMLElement, child: Node | HTMLElement): boolean;
@@ -28,5 +29,5 @@ declare function focusAtEnd(element: HTMLElement): void;
28
29
  /**
29
30
  * Retrieves a DOM node via a ref, and does not invoke `findDOMNode`.
30
31
  */
31
- declare function getDOM(node: unknown): HTMLElement | SVGElement | null;
32
+ declare function getDOM(node: ElementLike): HTMLElement | SVGElement | null;
32
33
  export { canUseDOM, contains, focusAtEnd, forceReflow, getBodyContainer, getDOM, getElementCoordinates, getScrollElements, off, on, parentContainsChildren, forceReflow as reflow, };
package/utils/dom.js CHANGED
@@ -1,17 +1,17 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
- import { isDOM as e, isEventTarget as t, isFunction as n, isObject as r, isScrollElement as i, isServerRendering as a, isString as o } from "./is.js";
3
- import s from "./findRootElement.js";
4
- import c from "@unicom-cloud/utils/dom-helpers/canUseDOM";
5
- import l from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
6
- import u from "@unicom-cloud/utils/dom-helpers/reflow";
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
+ import { isEventTarget as e, isFunction as t, isScrollElement as n, isServerRendering as r, isString as i } from "./is.js";
3
+ import a from "./findRootElement.js";
4
+ import o from "@unicom-cloud/utils/dom-helpers/canUseDOM";
5
+ import s from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
6
+ import c from "@unicom-cloud/utils/dom-helpers/reflow";
7
7
  //#region components/common/utils/dom.ts
8
- function d(e, r, i, s) {
9
- a || t(e) && o(r) && n(i) && e.addEventListener(r, i, s || !1);
8
+ function l(n, a, o, s) {
9
+ r || e(n) && i(a) && t(o) && n.addEventListener(a, o, s || !1);
10
10
  }
11
- function f(e, r, i, s) {
12
- a || t(e) && o(r) && n(i) && e.removeEventListener(r, i, s || !1);
11
+ function u(n, a, o, s) {
12
+ r || e(n) && i(a) && t(o) && n.removeEventListener(a, o, s || !1);
13
13
  }
14
- function p(e, t) {
14
+ function d(e, t) {
15
15
  if (!e) return !1;
16
16
  if (e.contains) return e.contains(t);
17
17
  let n = t;
@@ -21,12 +21,12 @@ function p(e, t) {
21
21
  }
22
22
  return !1;
23
23
  }
24
- function m(e, t = document.documentElement) {
25
- let n = [], r = e;
26
- for (; r && r !== t;) i(r) && n.push(r), r = r.parentElement;
27
- return n;
24
+ function f(e, t = document.documentElement) {
25
+ let r = [], i = e;
26
+ for (; i && i !== t;) n(i) && r.push(i), i = i.parentElement;
27
+ return r;
28
28
  }
29
- function h(e, t) {
29
+ function p(e, t) {
30
30
  if (!e || !t) return !1;
31
31
  if (e.contains) return e.contains(t);
32
32
  let n = t;
@@ -36,10 +36,10 @@ function h(e, t) {
36
36
  }
37
37
  return !1;
38
38
  }
39
- function g() {
39
+ function m() {
40
40
  return window.document.body;
41
41
  }
42
- function _(e) {
42
+ function h(e) {
43
43
  if (e.focus(), e.tagName === "INPUT" || e.tagName === "TEXTAREA") {
44
44
  let t = e;
45
45
  t.selectionStart = t.selectionEnd = t.value.length;
@@ -48,9 +48,9 @@ function _(e) {
48
48
  let t = document.createRange(), n = window.getSelection();
49
49
  t.selectNodeContents(e), t.collapse(!1), n && (n.removeAllRanges(), n.addRange(t));
50
50
  }
51
- function v(t) {
52
- return t && r(t) && e(t.nativeElement) ? t.nativeElement : e(t) ? t : s(t) || null;
51
+ function g(e) {
52
+ return a(e);
53
53
  }
54
54
  //#endregion
55
- export { c as canUseDOM, p as contains, _ as focusAtEnd, u as forceReflow, u as reflow, g as getBodyContainer, v as getDOM, l as getElementCoordinates, m as getScrollElements, f as off, d as on, h as parentContainsChildren };
55
+ export { o as canUseDOM, d as contains, h as focusAtEnd, c as forceReflow, c as reflow, m as getBodyContainer, g as getDOM, s as getElementCoordinates, f as getScrollElements, u as off, l as on, p as parentContainsChildren };
56
56
  /* 独立思考,明辨是非 */
package/utils/emitter.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e, { default as t } from "@unicom-cloud/utils/emitter";
3
3
  export { e as Emitter, t as default };
4
4
  /* 独立思考,明辨是非 */
package/utils/file.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import "../.virtual/_rolldown/runtime.js";
3
3
  export * from "@unicom-cloud/utils/file";
4
4
  /* 独立思考,明辨是非 */
package/utils/fileRead.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e, { fileRead as t } from "@unicom-cloud/utils/file/fileRead";
3
3
  export { e as default, t as fileRead };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e, { fileToDataURL as t } from "@unicom-cloud/utils/file/fileToDataURL";
3
3
  export { e as default, t as fileToDataURL };
4
4
  /* 独立思考,明辨是非 */
package/utils/fillNBSP.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { isString as e } from "./is.js";
3
3
  //#region components/common/utils/fillNBSP.ts
4
4
  function t(t) {
@@ -19,7 +19,7 @@ type ElementLike = Element | undefined | null | (() => Element | undefined | nul
19
19
  * @param element
20
20
  * @returns
21
21
  */
22
- declare function findRootElement(element?: ElementLike): Element | null;
22
+ declare function findRootElement(element?: ElementLike | null): Element | null;
23
23
  export { findRootElement };
24
24
  export default findRootElement;
25
25
  export type { ElementLike };
@@ -1,19 +1,19 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
2
- import { isElementByInstanceof as e, isFunction as t } from "./is.js";
3
- import { getReactElementRef as n } from "./ref.js";
4
- import { Component as r } from "react";
5
- import i from "react-dom";
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
+ import { isDOM as e, isElementByInstanceof as t, isFunction as n } from "./is.js";
3
+ import { getReactElementRef as r } from "./ref.js";
4
+ import { Component as i } from "react";
5
+ import a from "react-dom";
6
6
  //#region components/common/utils/findRootElement.ts
7
- var a = i.findDOMNode;
8
- function o(i) {
9
- let o = i;
10
- return o ? (o = i, e(o) ? o : e(o?.dom) ? o.dom : (o = i, o = o?.current, e(o) || (o = s(o), e(o)) || (o = i, o = n(o), o && (o = o.current, o && (e(o) || (o = s(o), e(o))))) || (o = i, t(o) && (o = o()), o = s(o), e(o)) ? o : (o = i, o instanceof r && t(a) ? a(o) : null))) : null;
7
+ var o = a.findDOMNode;
8
+ function s(a) {
9
+ let s = a;
10
+ return s ? (s = a, e(s) || (s = a, t(s)) ? s : t(s?.dom) ? s.dom : (s = a, s = s?.current, t(s) || (s = c(s), t(s)) || (s = a, s = r(s), s && (s = s.current, s && (t(s) || (s = c(s), t(s))))) || (s = a, n(s) && (s = s()), s = c(s), t(s)) ? s : (s = a, s instanceof i && n(o) ? o(s) : null))) : null;
11
11
  }
12
- function s(e) {
12
+ function c(e) {
13
13
  if (!e) return null;
14
- let n = e.getRootElement;
15
- return t(n) ? n() : e;
14
+ let t = e.getRootElement;
15
+ return n(t) ? t() : e;
16
16
  }
17
17
  //#endregion
18
- export { o as default, o as findRootElement };
18
+ export { s as default, s as findRootElement };
19
19
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  //#region components/common/utils/findScrollParent.ts
3
3
  function e(e, t = !1) {
4
4
  if (!e) return document.documentElement;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { isArray as e, isString as t } from "./is.js";
3
3
  import { cloneElement as n, createElement as r } from "react";
4
4
  import i from "lodash/escapeRegExp";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { isNumber as e, isString as t } from "./is.js";
3
3
  //#region components/common/utils/getHotkeyHandler.ts
4
4
  var n = (e) => JSON.stringify({
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e from "./getScrollBarSize.js";
3
3
  //#region components/common/utils/getScrollBarHeight.ts
4
4
  var t = (t) => e(t, "height");
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import { isNaN as e } from "./is.js";
3
3
  //#region components/common/utils/getScrollBarSize.ts
4
4
  var t = (t, n = "width") => {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  import e from "./getScrollBarSize.js";
3
3
  //#region components/common/utils/getScrollBarWidth.ts
4
4
  var t = (t) => e(t);
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  //#region components/common/utils/getStringLength.ts
3
3
  function e(e) {
4
4
  let t = 0;
package/utils/include.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-18 15:16:57 星期一 */
1
+ /* 潘启宝 2026-05-26 15:50:09 星期二 山东省济南市 */
2
2
  //#region components/common/utils/include.ts
3
3
  function e(e, t) {
4
4
  let n = {};
package/utils/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './caseName';
4
4
  export * from './className';
5
5
  export * from './constant';
6
6
  export * from './copy';
7
+ export * from './css';
7
8
  export * from './date';
8
9
  export * from './dayjs';
9
10
  export * from './dom';
@@ -32,7 +33,6 @@ export * from './object';
32
33
  export * from './omit';
33
34
  export * from './pad';
34
35
  export * from './pick';
35
- export * from './pinyin';
36
36
  export * from './ref';
37
37
  export * from './resizeObserver';
38
38
  export * from './saveAs';
@@ -45,7 +45,7 @@ export * from './setPrimaryColor';
45
45
  export * from './setTheme';
46
46
  export * from './string';
47
47
  export * from './style';
48
- export * from './throttleByRaf';
48
+ export * from './throttleByRequestAnimationFrame';
49
49
  export * from './tinycolor';
50
50
  export * from './toArray';
51
51
  export * from './tree';
@@ -55,3 +55,4 @@ export * from './validate';
55
55
  export * from './warning';
56
56
  export { keyboardCode } from './keyboardCode';
57
57
  export { COMPONENT_NAMES } from './names';
58
+ export * as pinyin from './pinyin';