@unicom-cloud/ui-common 0.1.18 → 0.1.20

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 (308) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +127 -191
  3. package/development/index.js +1 -1
  4. package/empty/index.js +1 -1
  5. package/flex/index.js +1 -1
  6. package/flex/utils.js +1 -1
  7. package/higher-order/index.js +1 -1
  8. package/higher-order/with-speech-synthesis/index.js +1 -1
  9. package/hooks/create-deep-compare-effect/index.js +8 -7
  10. package/hooks/create-update-effect/index.d.ts +1 -1
  11. package/hooks/create-update-effect/index.js +9 -10
  12. package/hooks/create-use-storage-state/index.d.ts +2 -1
  13. package/hooks/create-use-storage-state/index.js +44 -35
  14. package/hooks/index.d.ts +1 -0
  15. package/hooks/index.js +82 -81
  16. package/hooks/use-async-effect/index.js +1 -1
  17. package/hooks/use-boolean/index.js +1 -1
  18. package/hooks/use-click-away/index.d.ts +2 -2
  19. package/hooks/use-click-away/index.js +7 -3
  20. package/hooks/use-computed-state/index.js +1 -1
  21. package/hooks/use-controllable-value/index.js +1 -1
  22. package/hooks/use-cookie-state/index.d.ts +34 -1
  23. package/hooks/use-cookie-state/index.js +16 -16
  24. package/hooks/use-count-down/index.js +1 -1
  25. package/hooks/use-counter/index.js +1 -1
  26. package/hooks/use-create/index.d.ts +4 -1
  27. package/hooks/use-create/index.js +1 -1
  28. package/hooks/use-creation/index.js +1 -1
  29. package/hooks/use-debounce/index.js +1 -1
  30. package/hooks/use-debounce-effect/index.js +1 -1
  31. package/hooks/use-debounce-fn/index.js +1 -1
  32. package/hooks/use-deep-compare-effect/index.js +1 -1
  33. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  34. package/hooks/use-document-visibility/index.js +1 -1
  35. package/hooks/use-drag/index.js +1 -1
  36. package/hooks/use-drop/index.js +1 -1
  37. package/hooks/use-effect-event/index.js +1 -1
  38. package/hooks/use-event/index.js +1 -1
  39. package/hooks/use-event-emitter/demo/demo1.d.ts +10 -0
  40. package/hooks/use-event-emitter/index.d.ts +8 -0
  41. package/hooks/use-event-emitter/index.js +26 -0
  42. package/hooks/use-event-listener/index.d.ts +3 -2
  43. package/hooks/use-event-listener/index.js +1 -1
  44. package/hooks/use-event-target/index.js +1 -1
  45. package/hooks/use-external/index.js +25 -24
  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 +1 -1
  50. package/hooks/use-get-state/index.js +1 -1
  51. package/hooks/use-history-travel/index.js +1 -1
  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 +1 -1
  56. package/hooks/use-infinite-scroll/index.js +1 -1
  57. package/hooks/use-intersection-observer/index.js +1 -1
  58. package/hooks/use-intersection-observers/index.js +25 -25
  59. package/hooks/use-interval/index.js +1 -1
  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 +1 -1
  63. package/hooks/use-keyboard-event/index.js +3 -3
  64. package/hooks/use-latest/index.js +1 -1
  65. package/hooks/use-listen-window-resize/index.d.ts +1 -1
  66. package/hooks/use-listen-window-resize/index.js +3 -3
  67. package/hooks/use-local-storage-state/index.js +1 -1
  68. package/hooks/use-lock-fn/index.js +1 -1
  69. package/hooks/use-long-press/index.js +1 -1
  70. package/hooks/use-map/index.js +1 -1
  71. package/hooks/use-media/index.js +1 -1
  72. package/hooks/use-memo/index.js +1 -1
  73. package/hooks/use-memoized-fn/index.d.ts +1 -1
  74. package/hooks/use-memoized-fn/index.js +3 -3
  75. package/hooks/use-merge-props/index.js +1 -1
  76. package/hooks/use-merge-value/index.js +1 -1
  77. package/hooks/use-mobile/index.js +1 -1
  78. package/hooks/use-mount/index.js +1 -1
  79. package/hooks/use-mouse/index.js +1 -1
  80. package/hooks/use-move/index.js +1 -1
  81. package/hooks/use-mutation-observer/index.js +1 -1
  82. package/hooks/use-mutation-observers/index.js +24 -24
  83. package/hooks/use-network/index.js +1 -1
  84. package/hooks/use-online-status/index.js +1 -1
  85. package/hooks/use-overflow-hidden/index.js +17 -16
  86. package/hooks/use-override-ref/index.js +1 -1
  87. package/hooks/use-pagination/index.js +1 -1
  88. package/hooks/use-paste-image/index.js +1 -1
  89. package/hooks/use-persist-callback/index.js +1 -1
  90. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  91. package/hooks/use-previous/index.js +1 -1
  92. package/hooks/use-raf-interval/index.js +1 -1
  93. package/hooks/use-raf-state/index.js +1 -1
  94. package/hooks/use-raf-timeout/index.js +1 -1
  95. package/hooks/use-reactive/index.js +1 -1
  96. package/hooks/use-ref-latest/index.js +1 -1
  97. package/hooks/use-refs/index.js +13 -12
  98. package/hooks/use-request/index.js +1 -1
  99. package/hooks/use-request/src/Fetch.js +1 -1
  100. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  101. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  102. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  103. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  104. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  105. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  106. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  107. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  108. package/hooks/use-request/src/useRequest.d.ts +6 -2
  109. package/hooks/use-request/src/useRequest.js +1 -1
  110. package/hooks/use-request/src/useRequestImplement.js +1 -1
  111. package/hooks/use-request/src/utils/cache.js +1 -1
  112. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  113. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  114. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  115. package/hooks/use-request/src/utils/isOnline.js +1 -1
  116. package/hooks/use-request/src/utils/limit.js +1 -1
  117. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  118. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  119. package/hooks/use-reset-state/index.js +1 -1
  120. package/hooks/use-resize-observer/index.js +1 -1
  121. package/hooks/use-resize-observers/index.js +25 -25
  122. package/hooks/use-responsive/index.js +1 -1
  123. package/hooks/use-safe-state/index.js +1 -1
  124. package/hooks/use-scroll/index.js +1 -1
  125. package/hooks/use-selections/index.js +1 -1
  126. package/hooks/use-session-storage-state/index.js +1 -1
  127. package/hooks/use-set/index.js +1 -1
  128. package/hooks/use-set-state/index.js +1 -1
  129. package/hooks/use-size/index.js +1 -1
  130. package/hooks/use-state-callback/index.js +1 -1
  131. package/hooks/use-state-with-promise/index.d.ts +11 -1
  132. package/hooks/use-state-with-promise/index.js +21 -20
  133. package/hooks/use-sync-state/index.js +1 -1
  134. package/hooks/use-text-selection/index.js +1 -1
  135. package/hooks/use-theme/index.js +1 -1
  136. package/hooks/use-throttle/index.js +1 -1
  137. package/hooks/use-throttle-effect/index.js +1 -1
  138. package/hooks/use-throttle-fn/index.js +1 -1
  139. package/hooks/use-timeout/index.js +1 -1
  140. package/hooks/use-title/index.js +1 -1
  141. package/hooks/use-toggle/index.js +12 -11
  142. package/hooks/use-tracked-effect/index.js +1 -1
  143. package/hooks/use-unmount/index.js +1 -1
  144. package/hooks/use-unmounted-ref/index.js +1 -1
  145. package/hooks/use-update/index.d.ts +3 -1
  146. package/hooks/use-update/index.js +5 -5
  147. package/hooks/use-update-effect/index.js +1 -1
  148. package/hooks/use-update-layout-effect/index.js +1 -1
  149. package/hooks/use-url-state/index.js +1 -1
  150. package/hooks/use-virtual-list/index.js +1 -1
  151. package/hooks/use-watch/index.js +1 -1
  152. package/hooks/use-web-socket/index.js +1 -1
  153. package/hooks/use-why-did-you-update/index.js +1 -1
  154. package/hooks/use-window-size/index.d.ts +1 -1
  155. package/hooks/use-window-size/index.js +1 -1
  156. package/hooks/utils/createEffectWithTarget.js +1 -1
  157. package/hooks/utils/depsAreSame.js +1 -1
  158. package/hooks/utils/depsEqual.js +1 -1
  159. package/hooks/utils/domTarget.js +1 -1
  160. package/hooks/utils/getDocumentOrShadow.js +1 -1
  161. package/hooks/utils/index.js +1 -1
  162. package/hooks/utils/isAppleDevice.js +1 -1
  163. package/hooks/utils/isBrowser.js +1 -1
  164. package/hooks/utils/isDev.js +1 -1
  165. package/hooks/utils/rect.js +1 -1
  166. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  167. package/hooks/utils/useEffectWithTarget.js +1 -1
  168. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  169. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  170. package/icons/file/index.js +1 -1
  171. package/index.d.ts +1 -1
  172. package/index.js +574 -537
  173. package/package.json +1 -1
  174. package/progress/index.js +43 -43
  175. package/resize-observer/Collection.d.ts +2 -2
  176. package/resize-observer/Collection.js +1 -1
  177. package/resize-observer/SingleObserver.js +1 -1
  178. package/resize-observer/index.js +2 -2
  179. package/resize-observer/observerUtil.js +1 -1
  180. package/space/index.js +1 -1
  181. package/style/animation.less +16 -4
  182. package/style.css +1 -1
  183. package/suspense-fallback-test/index.js +1 -1
  184. package/test.d.ts +0 -0
  185. package/test.js +5 -0
  186. package/timer/index.js +1 -1
  187. package/transition/Transition.d.ts +11 -0
  188. package/transition/Transition.js +92 -0
  189. package/transition/TransitionCSS.d.ts +11 -0
  190. package/transition/TransitionCSS.js +33 -0
  191. package/transition/TransitionGroup.d.ts +11 -0
  192. package/transition/TransitionGroup.js +62 -0
  193. package/transition/TransitionStyle.d.ts +11 -0
  194. package/transition/TransitionStyle.js +46 -0
  195. package/transition/constants.d.ts +43 -0
  196. package/transition/constants.js +46 -0
  197. package/transition/index.d.ts +12 -0
  198. package/transition/index.js +12 -0
  199. package/transition/interface.d.ts +192 -0
  200. package/transition/utils.d.ts +19 -0
  201. package/transition/utils.js +97 -0
  202. package/utils/callOrReturn.js +1 -1
  203. package/utils/callbackOriginRef.js +1 -1
  204. package/utils/caseName.js +1 -1
  205. package/utils/className.js +1 -1
  206. package/utils/constant.js +1 -1
  207. package/utils/copy.js +1 -1
  208. package/utils/date.js +1 -1
  209. package/utils/dayjs.d.ts +1 -1
  210. package/utils/dayjs.js +19 -13
  211. package/utils/dom.js +15 -15
  212. package/utils/emitter.js +1 -1
  213. package/utils/fileRead.js +1 -1
  214. package/utils/fileToDataURL.js +1 -1
  215. package/utils/fillNBSP.js +1 -1
  216. package/utils/findRootElement.d.ts +6 -4
  217. package/utils/findRootElement.js +2 -2
  218. package/utils/findScrollParent.js +1 -1
  219. package/utils/getHighlightText.js +1 -1
  220. package/utils/getHotkeyHandler.js +1 -1
  221. package/utils/getScrollBarHeight.d.ts +3 -0
  222. package/utils/getScrollBarHeight.js +7 -0
  223. package/utils/getScrollBarSize.d.ts +3 -0
  224. package/utils/getScrollBarSize.js +10 -0
  225. package/utils/getScrollBarWidth.d.ts +3 -0
  226. package/utils/getScrollBarWidth.js +7 -0
  227. package/utils/getStringLength.js +1 -1
  228. package/utils/include.js +1 -1
  229. package/utils/index.d.ts +3 -0
  230. package/utils/index.js +277 -269
  231. package/utils/intersectionObserver.js +1 -1
  232. package/utils/is.d.ts +8 -7
  233. package/utils/is.js +23 -20
  234. package/utils/keyboardCode.js +1 -1
  235. package/utils/lodash.js +1 -1
  236. package/utils/math.js +1 -1
  237. package/utils/mergeProps.js +1 -1
  238. package/utils/mergedToString.js +1 -1
  239. package/utils/mutationObserver.js +1 -1
  240. package/utils/omit.d.ts +5 -1
  241. package/utils/omit.js +4 -8
  242. package/utils/pad.js +1 -1
  243. package/utils/pick.d.ts +4 -1
  244. package/utils/pick.js +5 -10
  245. package/utils/pinyin.js +1 -1
  246. package/utils/react19Adapter.js +1 -1
  247. package/utils/ref.js +2 -2
  248. package/utils/resizeObserver.js +21 -21
  249. package/utils/saveAs.js +1 -1
  250. package/utils/screenfull.js +1 -1
  251. package/utils/scrollIntoViewIfNeeded.js +1 -1
  252. package/utils/setCreateRoot.js +1 -1
  253. package/utils/setDarkTheme.js +1 -1
  254. package/utils/setDir.js +1 -1
  255. package/utils/setPrimaryColor.js +1 -1
  256. package/utils/setTheme.js +1 -1
  257. package/utils/string.js +1 -1
  258. package/utils/style.js +1 -1
  259. package/utils/throttleByRaf.js +1 -1
  260. package/utils/throttleByRaf2.js +1 -1
  261. package/utils/tinycolor.js +1 -1
  262. package/utils/toArray.js +1 -1
  263. package/utils/tree.js +1 -1
  264. package/utils/tween.js +1 -1
  265. package/utils/uuid.js +1 -1
  266. package/utils/validate.js +1 -1
  267. package/utils/warning.js +1 -1
  268. package/version/index.js +11 -14
  269. package/motion/CSSMotion.d.ts +0 -77
  270. package/motion/CSSMotion.js +0 -76
  271. package/motion/CSSMotionList.d.ts +0 -34
  272. package/motion/CSSMotionList.js +0 -82
  273. package/motion/context.d.ts +0 -9
  274. package/motion/context.js +0 -14
  275. package/motion/hooks/useDomMotionEvents.d.ts +0 -3
  276. package/motion/hooks/useDomMotionEvents.js +0 -19
  277. package/motion/hooks/useNextFrame.d.ts +0 -7
  278. package/motion/hooks/useNextFrame.js +0 -22
  279. package/motion/hooks/useStatus.d.ts +0 -5
  280. package/motion/hooks/useStatus.js +0 -92
  281. package/motion/hooks/useStepQueue.d.ts +0 -8
  282. package/motion/hooks/useStepQueue.js +0 -39
  283. package/motion/index.d.ts +0 -9
  284. package/motion/index.js +0 -9
  285. package/motion/interface.d.ts +0 -22
  286. package/motion/interface.js +0 -6
  287. package/motion/util/diff.d.ts +0 -20
  288. package/motion/util/diff.js +0 -50
  289. package/motion/util/motion.d.ts +0 -10
  290. package/motion/util/motion.js +0 -37
  291. package/transition-group/CSSTransition.d.ts +0 -97
  292. package/transition-group/CSSTransition.js +0 -73
  293. package/transition-group/ChildMapping.d.ts +0 -27
  294. package/transition-group/ChildMapping.js +0 -61
  295. package/transition-group/PqbCSSTransition.d.ts +0 -4
  296. package/transition-group/PqbCSSTransition.js +0 -34
  297. package/transition-group/ReplaceTransition.d.ts +0 -23
  298. package/transition-group/ReplaceTransition.js +0 -38
  299. package/transition-group/SwitchTransition.d.ts +0 -88
  300. package/transition-group/SwitchTransition.js +0 -84
  301. package/transition-group/Transition.d.ts +0 -130
  302. package/transition-group/Transition.js +0 -139
  303. package/transition-group/TransitionGroup.d.ts +0 -31
  304. package/transition-group/TransitionGroup.js +0 -54
  305. package/transition-group/TransitionGroupContext.d.ts +0 -3
  306. package/transition-group/TransitionGroupContext.js +0 -7
  307. package/transition-group/index.d.ts +0 -9
  308. package/transition-group/index.js +0 -11
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  //#region \0rolldown/runtime.js
3
3
  var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
4
4
  let r = {};
@@ -58,7 +58,8 @@
58
58
  "src": "components/common/hooks/create-deep-compare-effect/index.ts",
59
59
  "isEntry": true,
60
60
  "imports": [
61
- "components/common/hooks/utils/depsEqual.ts"
61
+ "components/common/hooks/utils/depsEqual.ts",
62
+ "components/common/utils/is.ts"
62
63
  ]
63
64
  },
64
65
  "components/common/hooks/create-update-effect/index.ts": {
@@ -75,6 +76,7 @@
75
76
  "imports": [
76
77
  "components/common/hooks/use-event-listener/index.ts",
77
78
  "components/common/hooks/use-memoized-fn/index.ts",
79
+ "components/common/hooks/use-mount/index.ts",
78
80
  "components/common/hooks/use-update-effect/index.ts",
79
81
  "components/common/utils/is.ts"
80
82
  ]
@@ -104,6 +106,7 @@
104
106
  "components/common/hooks/use-document-visibility/index.ts",
105
107
  "components/common/hooks/use-drag/index.ts",
106
108
  "components/common/hooks/use-drop/index.ts",
109
+ "components/common/hooks/use-event-emitter/index.ts",
107
110
  "components/common/hooks/use-event-listener/index.ts",
108
111
  "components/common/hooks/use-event-target/index.ts",
109
112
  "components/common/hooks/use-event/index.ts",
@@ -376,6 +379,12 @@
376
379
  "src": "components/common/hooks/use-effect-event/index.ts",
377
380
  "isEntry": true
378
381
  },
382
+ "components/common/hooks/use-event-emitter/index.ts": {
383
+ "file": "hooks/use-event-emitter/index.js",
384
+ "name": "hooks/use-event-emitter/index",
385
+ "src": "components/common/hooks/use-event-emitter/index.ts",
386
+ "isEntry": true
387
+ },
379
388
  "components/common/hooks/use-event-listener/index.ts": {
380
389
  "file": "hooks/use-event-listener/index.js",
381
390
  "name": "hooks/use-event-listener/index",
@@ -410,7 +419,10 @@
410
419
  "file": "hooks/use-external/index.js",
411
420
  "name": "hooks/use-external/index",
412
421
  "src": "components/common/hooks/use-external/index.ts",
413
- "isEntry": true
422
+ "isEntry": true,
423
+ "imports": [
424
+ "components/common/utils/is.ts"
425
+ ]
414
426
  },
415
427
  "components/common/hooks/use-favicon/index.ts": {
416
428
  "file": "hooks/use-favicon/index.js",
@@ -759,7 +771,10 @@
759
771
  "file": "hooks/use-overflow-hidden/index.js",
760
772
  "name": "hooks/use-overflow-hidden/index",
761
773
  "src": "components/common/hooks/use-overflow-hidden/index.ts",
762
- "isEntry": true
774
+ "isEntry": true,
775
+ "imports": [
776
+ "components/common/utils/getScrollBarWidth.ts"
777
+ ]
763
778
  },
764
779
  "components/common/hooks/use-override-ref/index.ts": {
765
780
  "file": "hooks/use-override-ref/index.js",
@@ -862,7 +877,10 @@
862
877
  "file": "hooks/use-refs/index.js",
863
878
  "name": "hooks/use-refs/index",
864
879
  "src": "components/common/hooks/use-refs/index.ts",
865
- "isEntry": true
880
+ "isEntry": true,
881
+ "imports": [
882
+ "components/common/utils/is.ts"
883
+ ]
866
884
  },
867
885
  "components/common/hooks/use-request/index.ts": {
868
886
  "file": "hooks/use-request/index.js",
@@ -1265,7 +1283,10 @@
1265
1283
  "file": "hooks/use-toggle/index.js",
1266
1284
  "name": "hooks/use-toggle/index",
1267
1285
  "src": "components/common/hooks/use-toggle/index.ts",
1268
- "isEntry": true
1286
+ "isEntry": true,
1287
+ "imports": [
1288
+ "components/common/utils/is.ts"
1289
+ ]
1269
1290
  },
1270
1291
  "components/common/hooks/use-tracked-effect/index.ts": {
1271
1292
  "file": "hooks/use-tracked-effect/index.js",
@@ -1536,6 +1557,7 @@
1536
1557
  "components/common/hooks/use-document-visibility/index.ts",
1537
1558
  "components/common/hooks/use-drag/index.ts",
1538
1559
  "components/common/hooks/use-drop/index.ts",
1560
+ "components/common/hooks/use-event-emitter/index.ts",
1539
1561
  "components/common/hooks/use-event-listener/index.ts",
1540
1562
  "components/common/hooks/use-event-target/index.ts",
1541
1563
  "components/common/hooks/use-event/index.ts",
@@ -1629,14 +1651,13 @@
1629
1651
  "components/common/space/index.tsx",
1630
1652
  "components/common/suspense-fallback-test/index.tsx",
1631
1653
  "components/common/timer/index.tsx",
1632
- "components/common/transition-group/CSSTransition.tsx",
1633
- "components/common/transition-group/ChildMapping.ts",
1634
- "components/common/transition-group/ReplaceTransition.tsx",
1635
- "components/common/transition-group/SwitchTransition.tsx",
1636
- "components/common/transition-group/Transition.tsx",
1637
- "components/common/transition-group/TransitionGroup.tsx",
1638
- "components/common/transition-group/TransitionGroupContext.ts",
1639
- "components/common/transition-group/index.ts",
1654
+ "components/common/transition/Transition.tsx",
1655
+ "components/common/transition/TransitionCSS.tsx",
1656
+ "components/common/transition/TransitionGroup.tsx",
1657
+ "components/common/transition/TransitionStyle.tsx",
1658
+ "components/common/transition/constants.ts",
1659
+ "components/common/transition/index.ts",
1660
+ "components/common/transition/utils.ts",
1640
1661
  "components/common/utils/callOrReturn.ts",
1641
1662
  "components/common/utils/callbackOriginRef.ts",
1642
1663
  "components/common/utils/caseName.ts",
@@ -1653,6 +1674,9 @@
1653
1674
  "components/common/utils/findRootElement.ts",
1654
1675
  "components/common/utils/getHighlightText.ts",
1655
1676
  "components/common/utils/getHotkeyHandler.ts",
1677
+ "components/common/utils/getScrollBarHeight.ts",
1678
+ "components/common/utils/getScrollBarSize.ts",
1679
+ "components/common/utils/getScrollBarWidth.ts",
1656
1680
  "components/common/utils/getStringLength.ts",
1657
1681
  "components/common/utils/include.ts",
1658
1682
  "components/common/utils/index.ts",
@@ -1691,118 +1715,6 @@
1691
1715
  "components/common/version/index.ts"
1692
1716
  ]
1693
1717
  },
1694
- "components/common/motion/CSSMotion.tsx": {
1695
- "file": "motion/CSSMotion.js",
1696
- "name": "motion/CSSMotion",
1697
- "src": "components/common/motion/CSSMotion.tsx",
1698
- "isEntry": true,
1699
- "imports": [
1700
- "components/common/motion/context.tsx",
1701
- "components/common/motion/hooks/useStatus.ts",
1702
- "components/common/motion/hooks/useStepQueue.ts",
1703
- "components/common/motion/interface.ts",
1704
- "components/common/motion/util/motion.ts",
1705
- "components/common/utils/className.ts",
1706
- "components/common/utils/findRootElement.ts",
1707
- "components/common/utils/is.ts",
1708
- "components/common/utils/ref.ts"
1709
- ]
1710
- },
1711
- "components/common/motion/CSSMotionList.tsx": {
1712
- "file": "motion/CSSMotionList.js",
1713
- "name": "motion/CSSMotionList",
1714
- "src": "components/common/motion/CSSMotionList.tsx",
1715
- "isEntry": true,
1716
- "imports": [
1717
- "components/common/motion/CSSMotion.tsx",
1718
- "components/common/motion/util/diff.ts",
1719
- "components/common/motion/util/motion.ts"
1720
- ]
1721
- },
1722
- "components/common/motion/context.tsx": {
1723
- "file": "motion/context.js",
1724
- "name": "motion/context",
1725
- "src": "components/common/motion/context.tsx",
1726
- "isEntry": true
1727
- },
1728
- "components/common/motion/hooks/useDomMotionEvents.ts": {
1729
- "file": "motion/hooks/useDomMotionEvents.js",
1730
- "name": "motion/hooks/useDomMotionEvents",
1731
- "src": "components/common/motion/hooks/useDomMotionEvents.ts",
1732
- "isDynamicEntry": true,
1733
- "imports": [
1734
- "components/common/motion/util/motion.ts"
1735
- ]
1736
- },
1737
- "components/common/motion/hooks/useNextFrame.ts": {
1738
- "file": "motion/hooks/useNextFrame.js",
1739
- "name": "motion/hooks/useNextFrame",
1740
- "src": "components/common/motion/hooks/useNextFrame.ts",
1741
- "isDynamicEntry": true
1742
- },
1743
- "components/common/motion/hooks/useStatus.ts": {
1744
- "file": "motion/hooks/useStatus.js",
1745
- "name": "motion/hooks/useStatus",
1746
- "src": "components/common/motion/hooks/useStatus.ts",
1747
- "isDynamicEntry": true,
1748
- "imports": [
1749
- "components/common/hooks/use-event/index.ts",
1750
- "components/common/hooks/use-isomorphic-layout-effect/index.ts",
1751
- "components/common/hooks/use-safe-state/index.ts",
1752
- "components/common/hooks/use-sync-state/index.ts",
1753
- "components/common/motion/hooks/useDomMotionEvents.ts",
1754
- "components/common/motion/hooks/useStepQueue.ts",
1755
- "components/common/motion/interface.ts"
1756
- ]
1757
- },
1758
- "components/common/motion/hooks/useStepQueue.ts": {
1759
- "file": "motion/hooks/useStepQueue.js",
1760
- "name": "motion/hooks/useStepQueue",
1761
- "src": "components/common/motion/hooks/useStepQueue.ts",
1762
- "isDynamicEntry": true,
1763
- "imports": [
1764
- "components/common/hooks/use-isomorphic-layout-effect/index.ts",
1765
- "components/common/hooks/use-safe-state/index.ts",
1766
- "components/common/motion/hooks/useNextFrame.ts",
1767
- "components/common/motion/interface.ts"
1768
- ]
1769
- },
1770
- "components/common/motion/index.tsx": {
1771
- "file": "motion/index.js",
1772
- "name": "motion/index",
1773
- "src": "components/common/motion/index.tsx",
1774
- "isEntry": true,
1775
- "imports": [
1776
- "components/common/motion/CSSMotion.tsx",
1777
- "components/common/motion/CSSMotionList.tsx",
1778
- "components/common/motion/context.tsx"
1779
- ]
1780
- },
1781
- "components/common/motion/interface.ts": {
1782
- "file": "motion/interface.js",
1783
- "name": "motion/interface",
1784
- "src": "components/common/motion/interface.ts",
1785
- "isDynamicEntry": true
1786
- },
1787
- "components/common/motion/util/diff.ts": {
1788
- "file": "motion/util/diff.js",
1789
- "name": "motion/util/diff",
1790
- "src": "components/common/motion/util/diff.ts",
1791
- "isDynamicEntry": true,
1792
- "imports": [
1793
- "components/common/utils/is.ts"
1794
- ]
1795
- },
1796
- "components/common/motion/util/motion.ts": {
1797
- "file": "motion/util/motion.js",
1798
- "name": "motion/util/motion",
1799
- "src": "components/common/motion/util/motion.ts",
1800
- "isDynamicEntry": true,
1801
- "imports": [
1802
- "components/common/utils/dom.ts",
1803
- "components/common/utils/is.ts"
1804
- ]
1805
- },
1806
1718
  "components/common/progress/index.js": {
1807
1719
  "file": "progress/index.js",
1808
1720
  "name": "progress/index",
@@ -1867,6 +1779,12 @@
1867
1779
  "src": "components/common/suspense-fallback-test/index.tsx",
1868
1780
  "isEntry": true
1869
1781
  },
1782
+ "components/common/test.js": {
1783
+ "file": "test.js",
1784
+ "name": "test",
1785
+ "src": "components/common/test.js",
1786
+ "isEntry": true
1787
+ },
1870
1788
  "components/common/timer/index.tsx": {
1871
1789
  "file": "timer/index.js",
1872
1790
  "name": "timer/index",
@@ -1877,100 +1795,91 @@
1877
1795
  "components/common/utils/is.ts"
1878
1796
  ]
1879
1797
  },
1880
- "components/common/transition-group/CSSTransition.tsx": {
1881
- "file": "transition-group/CSSTransition.js",
1882
- "name": "transition-group/CSSTransition",
1883
- "src": "components/common/transition-group/CSSTransition.tsx",
1798
+ "components/common/transition/Transition.tsx": {
1799
+ "file": "transition/Transition.js",
1800
+ "name": "transition/Transition",
1801
+ "src": "components/common/transition/Transition.tsx",
1884
1802
  "isEntry": true,
1885
1803
  "imports": [
1886
- "components/common/transition-group/Transition.tsx",
1804
+ "components/common/hooks/index.ts",
1805
+ "components/common/hooks/use-create/index.ts",
1806
+ "components/common/hooks/use-is-first-render/index.ts",
1807
+ "components/common/hooks/use-latest/index.ts",
1808
+ "components/common/hooks/use-update-effect/index.ts",
1809
+ "components/common/hooks/use-update-layout-effect/index.ts",
1810
+ "components/common/transition/constants.ts",
1811
+ "components/common/transition/utils.ts",
1887
1812
  "components/common/utils/dom.ts",
1888
1813
  "components/common/utils/findRootElement.ts",
1889
- "components/common/utils/is.ts"
1814
+ "components/common/utils/is.ts",
1815
+ "components/common/utils/lodash.ts"
1890
1816
  ]
1891
1817
  },
1892
- "components/common/transition-group/ChildMapping.ts": {
1893
- "file": "transition-group/ChildMapping.js",
1894
- "name": "transition-group/ChildMapping",
1895
- "src": "components/common/transition-group/ChildMapping.ts",
1896
- "isEntry": true
1897
- },
1898
- "components/common/transition-group/PqbCSSTransition.tsx": {
1899
- "file": "transition-group/PqbCSSTransition.js",
1900
- "name": "transition-group/PqbCSSTransition",
1901
- "src": "components/common/transition-group/PqbCSSTransition.tsx",
1818
+ "components/common/transition/TransitionCSS.tsx": {
1819
+ "file": "transition/TransitionCSS.js",
1820
+ "name": "transition/TransitionCSS",
1821
+ "src": "components/common/transition/TransitionCSS.tsx",
1902
1822
  "isEntry": true,
1903
1823
  "imports": [
1904
- "components/common/transition-group/CSSTransition.tsx",
1905
- "components/common/utils/callbackOriginRef.ts",
1906
- "components/common/utils/findRootElement.ts",
1907
- "components/common/utils/is.ts",
1908
- "components/common/utils/ref.ts"
1824
+ "components/common/transition/Transition.tsx",
1825
+ "components/common/transition/constants.ts",
1826
+ "components/common/utils/className.ts",
1827
+ "components/common/utils/is.ts"
1909
1828
  ]
1910
1829
  },
1911
- "components/common/transition-group/ReplaceTransition.tsx": {
1912
- "file": "transition-group/ReplaceTransition.js",
1913
- "name": "transition-group/ReplaceTransition",
1914
- "src": "components/common/transition-group/ReplaceTransition.tsx",
1830
+ "components/common/transition/TransitionGroup.tsx": {
1831
+ "file": "transition/TransitionGroup.js",
1832
+ "name": "transition/TransitionGroup",
1833
+ "src": "components/common/transition/TransitionGroup.tsx",
1915
1834
  "isEntry": true,
1916
1835
  "imports": [
1917
- "components/common/transition-group/TransitionGroup.tsx",
1918
- "components/common/utils/findRootElement.ts"
1836
+ "components/common/hooks/use-isomorphic-layout-effect/index.ts",
1837
+ "components/common/transition/constants.ts",
1838
+ "components/common/transition/utils.ts",
1839
+ "components/common/utils/lodash.ts"
1919
1840
  ]
1920
1841
  },
1921
- "components/common/transition-group/SwitchTransition.tsx": {
1922
- "file": "transition-group/SwitchTransition.js",
1923
- "name": "transition-group/SwitchTransition",
1924
- "src": "components/common/transition-group/SwitchTransition.tsx",
1842
+ "components/common/transition/TransitionStyle.tsx": {
1843
+ "file": "transition/TransitionStyle.js",
1844
+ "name": "transition/TransitionStyle",
1845
+ "src": "components/common/transition/TransitionStyle.tsx",
1925
1846
  "isEntry": true,
1926
1847
  "imports": [
1927
- "components/common/transition-group/Transition.tsx",
1928
- "components/common/transition-group/TransitionGroupContext.ts"
1848
+ "components/common/transition/Transition.tsx",
1849
+ "components/common/transition/constants.ts"
1929
1850
  ]
1930
1851
  },
1931
- "components/common/transition-group/Transition.tsx": {
1932
- "file": "transition-group/Transition.js",
1933
- "name": "transition-group/Transition",
1934
- "src": "components/common/transition-group/Transition.tsx",
1852
+ "components/common/transition/constants.ts": {
1853
+ "file": "transition/constants.js",
1854
+ "name": "transition/constants",
1855
+ "src": "components/common/transition/constants.ts",
1935
1856
  "isEntry": true,
1936
1857
  "imports": [
1937
- "components/common/transition-group/TransitionGroupContext.ts",
1938
- "components/common/utils/constant.ts",
1939
- "components/common/utils/dom.ts",
1940
- "components/common/utils/findRootElement.ts",
1941
- "components/common/utils/is.ts"
1858
+ "components/common/utils/lodash.ts"
1942
1859
  ]
1943
1860
  },
1944
- "components/common/transition-group/TransitionGroup.tsx": {
1945
- "file": "transition-group/TransitionGroup.js",
1946
- "name": "transition-group/TransitionGroup",
1947
- "src": "components/common/transition-group/TransitionGroup.tsx",
1861
+ "components/common/transition/index.ts": {
1862
+ "file": "transition/index.js",
1863
+ "name": "transition/index",
1864
+ "src": "components/common/transition/index.ts",
1948
1865
  "isEntry": true,
1949
1866
  "imports": [
1950
- "components/common/transition-group/ChildMapping.ts",
1951
- "components/common/transition-group/TransitionGroupContext.ts"
1867
+ "components/common/transition/Transition.tsx",
1868
+ "components/common/transition/TransitionCSS.tsx",
1869
+ "components/common/transition/TransitionGroup.tsx",
1870
+ "components/common/transition/TransitionStyle.tsx",
1871
+ "components/common/transition/constants.ts",
1872
+ "components/common/transition/utils.ts"
1952
1873
  ]
1953
1874
  },
1954
- "components/common/transition-group/TransitionGroupContext.ts": {
1955
- "file": "transition-group/TransitionGroupContext.js",
1956
- "name": "transition-group/TransitionGroupContext",
1957
- "src": "components/common/transition-group/TransitionGroupContext.ts",
1958
- "isEntry": true
1959
- },
1960
- "components/common/transition-group/index.ts": {
1961
- "file": "transition-group/index.js",
1962
- "name": "transition-group/index",
1963
- "src": "components/common/transition-group/index.ts",
1875
+ "components/common/transition/utils.ts": {
1876
+ "file": "transition/utils.js",
1877
+ "name": "transition/utils",
1878
+ "src": "components/common/transition/utils.ts",
1964
1879
  "isEntry": true,
1965
1880
  "imports": [
1966
- "components/common/transition-group/CSSTransition.tsx",
1967
- "components/common/transition-group/ChildMapping.ts",
1968
- "components/common/transition-group/ReplaceTransition.tsx",
1969
- "components/common/transition-group/SwitchTransition.tsx",
1970
- "components/common/transition-group/Transition.tsx",
1971
- "components/common/transition-group/TransitionGroup.tsx",
1972
- "components/common/transition-group/TransitionGroupContext.ts",
1973
- "components/common/utils/dom.ts"
1881
+ "components/common/transition/constants.ts",
1882
+ "components/common/utils/is.ts"
1974
1883
  ]
1975
1884
  },
1976
1885
  "components/common/utils/callOrReturn.ts": {
@@ -2094,6 +2003,30 @@
2094
2003
  "components/common/utils/is.ts"
2095
2004
  ]
2096
2005
  },
2006
+ "components/common/utils/getScrollBarHeight.ts": {
2007
+ "file": "utils/getScrollBarHeight.js",
2008
+ "name": "utils/getScrollBarHeight",
2009
+ "src": "components/common/utils/getScrollBarHeight.ts",
2010
+ "isEntry": true,
2011
+ "imports": [
2012
+ "components/common/utils/getScrollBarSize.ts"
2013
+ ]
2014
+ },
2015
+ "components/common/utils/getScrollBarSize.ts": {
2016
+ "file": "utils/getScrollBarSize.js",
2017
+ "name": "utils/getScrollBarSize",
2018
+ "src": "components/common/utils/getScrollBarSize.ts",
2019
+ "isEntry": true
2020
+ },
2021
+ "components/common/utils/getScrollBarWidth.ts": {
2022
+ "file": "utils/getScrollBarWidth.js",
2023
+ "name": "utils/getScrollBarWidth",
2024
+ "src": "components/common/utils/getScrollBarWidth.ts",
2025
+ "isEntry": true,
2026
+ "imports": [
2027
+ "components/common/utils/getScrollBarSize.ts"
2028
+ ]
2029
+ },
2097
2030
  "components/common/utils/getStringLength.ts": {
2098
2031
  "file": "utils/getStringLength.js",
2099
2032
  "name": "utils/getStringLength",
@@ -2129,6 +2062,9 @@
2129
2062
  "components/common/utils/findRootElement.ts",
2130
2063
  "components/common/utils/getHighlightText.ts",
2131
2064
  "components/common/utils/getHotkeyHandler.ts",
2065
+ "components/common/utils/getScrollBarHeight.ts",
2066
+ "components/common/utils/getScrollBarSize.ts",
2067
+ "components/common/utils/getScrollBarWidth.ts",
2132
2068
  "components/common/utils/getStringLength.ts",
2133
2069
  "components/common/utils/include.ts",
2134
2070
  "components/common/utils/intersectionObserver.ts",
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { forwardRef as e, useImperativeHandle as t, useMemo as n, useRef as r } from "react";
3
3
  import { UI_COMMON_PREFIX as i } from "@unicom-cloud/utils/constant/ui";
4
4
  import a from "@unicom-cloud/utils/class-name";
package/empty/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { isString as e } from "../utils/is.js";
3
3
  import t from "../utils/className.js";
4
4
  import n from "../space/index.js";
package/flex/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { isBoolean as e } from "../utils/is.js";
3
3
  import t from "../hooks/use-merge-props/index.js";
4
4
  import n from "../utils/className.js";
package/flex/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { isArray as e } from "../utils/is.js";
3
3
  import "react";
4
4
  //#region components/common/flex/utils.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import e from "./with-speech-synthesis/index.js";
3
3
  export { e as withSpeechSynthesis };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import { forwardRef as e, memo as t, useCallback as n, useEffect as r, useImperativeHandle as i, useMemo as a, useState as o } from "react";
3
3
  import { jsx as s } from "react/jsx-runtime";
4
4
  import c from "@unicom-cloud/icons/IconUiMute";
@@ -1,11 +1,12 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
2
- import { depsEqual as e } from "../utils/depsEqual.js";
3
- import { useRef as t } from "react";
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
+ import { isUndefined as e } from "../../utils/is.js";
3
+ import { depsEqual as t } from "../utils/depsEqual.js";
4
+ import { useRef as n } from "react";
4
5
  //#region components/common/hooks/create-deep-compare-effect/index.ts
5
- var n = (n) => (r, i) => {
6
- let a = t(void 0), o = t(0);
7
- (i === void 0 || !e(i, a.current)) && (o.current += 1), a.current = i, n(r, [o.current]);
6
+ var r = (r) => (i, a) => {
7
+ let o = n(void 0), s = n(0);
8
+ (e(a) || !t(a, o.current)) && (s.current += 1), o.current = a, r(i, [s.current]);
8
9
  };
9
10
  //#endregion
10
- export { n as default };
11
+ export { r as default };
11
12
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
1
  import type { useEffect, useLayoutEffect } from 'react';
2
2
  type EffectHookType = typeof useEffect | typeof useLayoutEffect;
3
- declare const createUpdateEffect: (hook: EffectHookType) => EffectHookType;
3
+ declare function createUpdateEffect(hook: EffectHookType): EffectHookType;
4
4
  export default createUpdateEffect;
@@ -1,15 +1,14 @@
1
- /* 潘启宝 2026-03-24 15:26:24 星期二 */
1
+ /* 潘启宝 2026-04-14 16:51:31 星期二 */
2
2
  import e from "react";
3
3
  //#region components/common/hooks/create-update-effect/index.ts
4
- var t = (t) => (n, r) => {
5
- let i = e.useRef(!1);
6
- t(() => () => {
7
- i.current = !1;
8
- }, []), t(() => {
9
- if (i.current) return n();
10
- i.current = !0;
11
- }, r);
12
- };
4
+ function t(t) {
5
+ return (n, r) => {
6
+ let i = e.useRef(!1);
7
+ t(() => () => {
8
+ i.current = !1;
9
+ }, []), t(() => i.current ? n() : (i.current = !0, () => {}), r);
10
+ };
11
+ }
13
12
  //#endregion
14
13
  export { t as default };
15
14
  /* 独立思考,明辨是非 */
@@ -1,7 +1,8 @@
1
- export declare const SYNC_STORAGE_EVENT_NAME = "HOOKS_SYNC_STORAGE_EVENT_NAME";
1
+ export declare const SYNC_STORAGE_EVENT_NAME = "AHOOKS_SYNC_STORAGE_EVENT_NAME";
2
2
  export type SetState<S> = S | ((prevState?: S) => S);
3
3
  export interface Options<T> {
4
4
  defaultValue?: T | (() => T);
5
+ getInitialValueInEffect?: boolean;
5
6
  listenStorageChange?: boolean;
6
7
  serializer?: (value: T) => string;
7
8
  deserializer?: (value: string) => T;