@unicom-cloud/ui-common 0.1.25 → 0.1.27

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 (311) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +33 -18
  3. package/border-beam/BorderBeam.js +2 -2
  4. package/border-beam/Effect.d.ts +1 -1
  5. package/border-beam/Effect.js +19 -17
  6. package/border-beam/constants.js +1 -1
  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.js +1 -1
  68. package/hooks/use-infinite-scroll/index.d.ts +4 -4
  69. package/hooks/use-infinite-scroll/index.js +1 -1
  70. package/hooks/use-intersection-observer/index.js +1 -1
  71. package/hooks/use-intersection-observers/index.js +1 -1
  72. package/hooks/use-interval/index.js +1 -1
  73. package/hooks/use-is-first-render/index.js +1 -1
  74. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  75. package/hooks/use-key-press/index.js +1 -1
  76. package/hooks/use-keyboard-event/index.js +1 -1
  77. package/hooks/use-latest/index.js +1 -1
  78. package/hooks/use-listen-window-resize/index.js +1 -1
  79. package/hooks/use-local-storage-state/index.d.ts +1 -1
  80. package/hooks/use-local-storage-state/index.js +1 -1
  81. package/hooks/use-lock-fn/index.js +1 -1
  82. package/hooks/use-long-press/index.js +1 -1
  83. package/hooks/use-map/index.d.ts +5 -5
  84. package/hooks/use-map/index.js +1 -1
  85. package/hooks/use-media/index.js +1 -1
  86. package/hooks/use-memo/index.js +1 -1
  87. package/hooks/use-memoized-fn/index.d.ts +6 -3
  88. package/hooks/use-memoized-fn/index.js +2 -2
  89. package/hooks/use-merge-props/index.js +1 -1
  90. package/hooks/use-merge-value/index.js +1 -1
  91. package/hooks/use-mobile/index.js +1 -1
  92. package/hooks/use-mount/index.js +1 -1
  93. package/hooks/use-mouse/index.js +1 -1
  94. package/hooks/use-move/index.js +1 -1
  95. package/hooks/use-mutation-observer/index.js +1 -1
  96. package/hooks/use-mutation-observers/index.js +1 -1
  97. package/hooks/use-network/index.js +1 -1
  98. package/hooks/use-online-status/index.js +1 -1
  99. package/hooks/use-overflow-hidden/index.js +1 -1
  100. package/hooks/use-override-ref/index.js +1 -1
  101. package/hooks/use-pagination/index.js +1 -1
  102. package/hooks/use-paste-image/index.js +1 -1
  103. package/hooks/use-persist-callback/index.js +1 -1
  104. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  105. package/hooks/use-previous/index.js +1 -1
  106. package/hooks/use-raf-interval/index.js +1 -1
  107. package/hooks/use-raf-state/index.js +1 -1
  108. package/hooks/use-raf-timeout/index.js +1 -1
  109. package/hooks/use-reactive/index.js +1 -1
  110. package/hooks/use-ref-latest/index.js +1 -1
  111. package/hooks/use-refs/index.js +1 -1
  112. package/hooks/use-request/index.js +1 -1
  113. package/hooks/use-request/src/Fetch.js +1 -1
  114. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  115. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  116. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  117. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  118. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  119. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  120. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  121. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  122. package/hooks/use-request/src/useRequest.js +1 -1
  123. package/hooks/use-request/src/useRequestImplement.js +1 -1
  124. package/hooks/use-request/src/utils/cache.js +1 -1
  125. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  126. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  127. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  128. package/hooks/use-request/src/utils/isOnline.js +1 -1
  129. package/hooks/use-request/src/utils/limit.js +1 -1
  130. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  131. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  132. package/hooks/use-reset-state/index.js +1 -1
  133. package/hooks/use-resize-observer/index.js +1 -1
  134. package/hooks/use-resize-observers/index.js +1 -1
  135. package/hooks/use-responsive/index.js +1 -1
  136. package/hooks/use-safe-state/index.js +1 -1
  137. package/hooks/use-scroll/index.js +1 -1
  138. package/hooks/use-selections/index.d.ts +7 -7
  139. package/hooks/use-selections/index.js +1 -1
  140. package/hooks/use-session-storage-state/index.d.ts +1 -1
  141. package/hooks/use-session-storage-state/index.js +1 -1
  142. package/hooks/use-set/index.d.ts +3 -3
  143. package/hooks/use-set/index.js +1 -1
  144. package/hooks/use-set-state/index.d.ts +2 -2
  145. package/hooks/use-set-state/index.js +1 -1
  146. package/hooks/use-size/index.js +1 -1
  147. package/hooks/use-state-callback/index.js +1 -1
  148. package/hooks/use-state-with-promise/index.js +1 -1
  149. package/hooks/use-sync-state/index.js +1 -1
  150. package/hooks/use-text-selection/index.js +1 -1
  151. package/hooks/use-theme/index.d.ts +1 -1
  152. package/hooks/use-theme/index.js +1 -1
  153. package/hooks/use-throttle/index.js +1 -1
  154. package/hooks/use-throttle-effect/index.js +1 -1
  155. package/hooks/use-throttle-fn/index.js +1 -1
  156. package/hooks/use-timeout/index.js +1 -1
  157. package/hooks/use-title/index.js +1 -1
  158. package/hooks/use-toggle/index.js +1 -1
  159. package/hooks/use-tracked-effect/index.js +1 -1
  160. package/hooks/use-unmount/index.js +1 -1
  161. package/hooks/use-unmounted-ref/index.js +1 -1
  162. package/hooks/use-update/index.js +1 -1
  163. package/hooks/use-update-effect/index.js +1 -1
  164. package/hooks/use-update-layout-effect/index.js +1 -1
  165. package/hooks/use-url-state/index.d.ts +3 -2
  166. package/hooks/use-url-state/index.js +25 -31
  167. package/hooks/use-virtual-list/index.d.ts +1 -1
  168. package/hooks/use-virtual-list/index.js +1 -1
  169. package/hooks/use-watch/index.js +1 -1
  170. package/hooks/use-web-socket/index.js +1 -1
  171. package/hooks/use-why-did-you-update/index.js +1 -1
  172. package/hooks/use-window-size/index.js +1 -1
  173. package/hooks/utils/createEffectWithTarget.js +1 -1
  174. package/hooks/utils/depsAreSame.js +1 -1
  175. package/hooks/utils/depsEqual.js +1 -1
  176. package/hooks/utils/domTarget.js +1 -1
  177. package/hooks/utils/getDocumentOrShadow.js +1 -1
  178. package/hooks/utils/index.js +1 -1
  179. package/hooks/utils/isAppleDevice.js +1 -1
  180. package/hooks/utils/isBrowser.js +1 -1
  181. package/hooks/utils/isDev.js +1 -1
  182. package/hooks/utils/rect.js +1 -1
  183. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  184. package/hooks/utils/useEffectWithTarget.js +1 -1
  185. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  186. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  187. package/icons/file/IconFile.js +1 -1
  188. package/icons/file/index.d.ts +3 -0
  189. package/icons/file/index.js +2 -2
  190. package/index.js +604 -593
  191. package/package.json +1 -1
  192. package/progress/Progress.js +1 -1
  193. package/progress/index.d.ts +3 -0
  194. package/progress/index.js +2 -2
  195. package/resize-observer/Collection.d.ts +1 -1
  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 +0 -24
  206. package/style/global.less +39 -9
  207. package/style/index.less +6 -1
  208. package/style/normalize.less +13 -0
  209. package/style/transition.less +63 -0
  210. package/style/variables.less +1 -0
  211. package/style.css +1 -1
  212. package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
  213. package/suspense-fallback-test/index.d.ts +3 -0
  214. package/suspense-fallback-test/index.js +2 -2
  215. package/test.js +1 -1
  216. package/timer/Timer.js +1 -1
  217. package/timer/index.d.ts +3 -0
  218. package/timer/index.js +2 -2
  219. package/transition/Transition.d.ts +6 -1
  220. package/transition/Transition.js +63 -63
  221. package/transition/TransitionCSS.d.ts +14 -2
  222. package/transition/TransitionCSS.js +33 -33
  223. package/transition/TransitionGroup.d.ts +8 -1
  224. package/transition/TransitionGroup.js +3 -4
  225. package/transition/TransitionStyle.d.ts +14 -2
  226. package/transition/TransitionStyle.js +3 -4
  227. package/transition/constants.d.ts +18 -15
  228. package/transition/constants.js +49 -40
  229. package/transition/context.js +1 -1
  230. package/transition/index.d.ts +46 -4
  231. package/transition/index.js +11 -6
  232. package/transition/interface.d.ts +20 -21
  233. package/transition/utils.d.ts +2 -1
  234. package/transition/utils.js +64 -61
  235. package/utils/callOrReturn.js +1 -1
  236. package/utils/callbackOriginRef.js +1 -1
  237. package/utils/caseName.js +1 -1
  238. package/utils/className.js +1 -1
  239. package/utils/constant.d.ts +2 -0
  240. package/utils/constant.js +5 -5
  241. package/utils/copy.js +1 -1
  242. package/utils/css.d.ts +1 -0
  243. package/utils/css.js +4 -0
  244. package/utils/date.js +1 -1
  245. package/utils/dayjs.js +1 -1
  246. package/utils/dom.d.ts +2 -1
  247. package/utils/dom.js +21 -21
  248. package/utils/emitter.js +1 -1
  249. package/utils/file.js +1 -1
  250. package/utils/fileRead.js +1 -1
  251. package/utils/fileToDataURL.js +1 -1
  252. package/utils/fillNBSP.js +1 -1
  253. package/utils/findRootElement.d.ts +1 -1
  254. package/utils/findRootElement.js +13 -13
  255. package/utils/findScrollParent.js +1 -1
  256. package/utils/getHighlightText.js +1 -1
  257. package/utils/getHotkeyHandler.js +1 -1
  258. package/utils/getScrollBarHeight.js +1 -1
  259. package/utils/getScrollBarSize.js +1 -1
  260. package/utils/getScrollBarWidth.js +1 -1
  261. package/utils/getStringLength.js +1 -1
  262. package/utils/include.js +1 -1
  263. package/utils/index.d.ts +4 -2
  264. package/utils/index.js +312 -304
  265. package/utils/intersectionObserver.js +1 -1
  266. package/utils/is.d.ts +2 -2
  267. package/utils/is.js +16 -16
  268. package/utils/keyboardCode.js +1 -1
  269. package/utils/lodash.js +1 -1
  270. package/utils/math.js +1 -1
  271. package/utils/mergeProps.js +1 -1
  272. package/utils/mergedToString.js +1 -1
  273. package/utils/mutationObserver.js +1 -1
  274. package/utils/names.js +3 -3
  275. package/utils/object.js +1 -1
  276. package/utils/omit.js +1 -1
  277. package/utils/pad.js +1 -1
  278. package/utils/pick.js +1 -1
  279. package/utils/pinyin.js +1 -1
  280. package/utils/react19Adapter.js +1 -1
  281. package/utils/reactNode.js +1 -1
  282. package/utils/ref.d.ts +3 -3
  283. package/utils/ref.js +1 -1
  284. package/utils/resizeObserver.js +1 -1
  285. package/utils/saveAs.js +1 -1
  286. package/utils/screenfull.js +1 -1
  287. package/utils/scrollIntoViewIfNeeded.js +1 -1
  288. package/utils/setCreateRoot.js +1 -1
  289. package/utils/setDarkTheme.js +1 -1
  290. package/utils/setDir.js +2 -2
  291. package/utils/setPrimaryColor.js +1 -1
  292. package/utils/setTheme.js +2 -2
  293. package/utils/string.js +1 -1
  294. package/utils/style.js +1 -1
  295. package/utils/throttleByRequestAnimationFrame.d.ts +6 -0
  296. package/utils/throttleByRequestAnimationFrame.js +18 -0
  297. package/utils/tinycolor.js +1 -1
  298. package/utils/toArray.js +1 -1
  299. package/utils/tree.js +1 -1
  300. package/utils/tunnel.d.ts +17 -0
  301. package/utils/tunnel.js +55 -0
  302. package/utils/tween.js +1 -1
  303. package/utils/uuid.js +1 -1
  304. package/utils/validate.js +1 -1
  305. package/utils/warning.js +1 -1
  306. package/version/index.js +9 -9
  307. package/hooks/use-event-emitter/demo/demo1.d.ts +0 -10
  308. package/utils/throttleByRaf.d.ts +0 -6
  309. package/utils/throttleByRaf.js +0 -16
  310. package/utils/throttleByRaf2.d.ts +0 -6
  311. package/utils/throttleByRaf2.js +0 -9
@@ -1,99 +1,102 @@
1
- /* 潘启宝 2026-05-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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
+ function N(e, t) {
98
+ return e.map((e, n, r) => `${e}-${t}`);
99
+ }
97
100
  //#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 };
101
+ export { N as addSuffix, _ 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
102
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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
  /* 独立思考,明辨是非 */
@@ -3,3 +3,5 @@ export declare const NOOP: (...args: any[]) => void;
3
3
  export { UI_PC_KEY, UI_PC_THEME_DARK_CLASS_NAME, } from '@unicom-cloud/utils/constant/ui';
4
4
  export declare const DAYJS_DEFAULT_FORMAT = "YYYY-MM-DD";
5
5
  export declare const DAYJS_DEFAULT_FORMAT_WITH_TIME = "YYYY-MM-DD HH:mm:ss";
6
+ declare const PREFIX_CLASS: "pqbc";
7
+ export { PREFIX_CLASS };
package/utils/constant.js CHANGED
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-05-21 17:02:03 星期四 山东省济南市 */
2
- import e from "lodash/noop";
3
- import { UI_PC_KEY as t, UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constant/ui";
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
2
+ import { UI_COMMON_PREFIX as e, UI_PC_KEY as t, UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constant/ui";
3
+ import r from "lodash/noop";
4
4
  //#region components/common/utils/constant.ts
5
- var r = window.document.documentElement, i = e, a = "YYYY-MM-DD", o = `${a} HH:mm:ss`;
5
+ var i = window.document.documentElement, a = r, o = "YYYY-MM-DD", s = `${o} HH:mm:ss`, c = e;
6
6
  //#endregion
7
- export { r as CSS_VARIABLE_ELEMENT, a as DAYJS_DEFAULT_FORMAT, o as DAYJS_DEFAULT_FORMAT_WITH_TIME, i as NOOP, t as UI_PC_KEY, n as UI_PC_THEME_DARK_CLASS_NAME };
7
+ export { i as CSS_VARIABLE_ELEMENT, o as DAYJS_DEFAULT_FORMAT, s as DAYJS_DEFAULT_FORMAT_WITH_TIME, a as NOOP, c as PREFIX_CLASS, t as UI_PC_KEY, n as UI_PC_THEME_DARK_CLASS_NAME };
8
8
  /* 独立思考,明辨是非 */
package/utils/copy.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
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-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
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-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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-21 17:02:03 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:18 星期二 山东省济南市 */
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';
@@ -44,14 +45,15 @@ export * from './setPrimaryColor';
44
45
  export * from './setTheme';
45
46
  export * from './string';
46
47
  export * from './style';
47
- export * from './throttleByRaf';
48
+ export * from './throttleByRequestAnimationFrame';
48
49
  export * from './tinycolor';
49
50
  export * from './toArray';
50
51
  export * from './tree';
52
+ export * from './tunnel';
51
53
  export * from './tween';
52
54
  export * from './uuid';
53
55
  export * from './validate';
54
56
  export * from './warning';
57
+ export * as pinyin from './pinyin';
55
58
  export { keyboardCode } from './keyboardCode';
56
59
  export { COMPONENT_NAMES } from './names';
57
- export * as pinyin from './pinyin';