@unicom-cloud/ui-common 0.1.9 → 0.1.11

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 (378) hide show
  1. package/Development.js +1 -1
  2. package/Empty.js +1 -1
  3. package/Flex.js +1 -1
  4. package/Motion.js +1 -1
  5. package/Progress.js +1 -1
  6. package/ResizeObserver.js +1 -1
  7. package/Space.js +1 -1
  8. package/SuspenseFallbackTest.js +1 -1
  9. package/Timer.js +12 -0
  10. package/TransitionGroup.js +1 -1
  11. package/development/index.js +1 -1
  12. package/empty/index.js +2 -2
  13. package/flex/index.js +1 -1
  14. package/flex/utils.js +27 -23
  15. package/higher-order/index.js +1 -1
  16. package/higher-order/with-speech-synthesis/index.js +1 -1
  17. package/higher-order/withSpeechSynthesis.js +1 -1
  18. package/hooks/create-deep-compare-effect/index.js +1 -1
  19. package/hooks/create-update-effect/index.js +1 -1
  20. package/hooks/create-use-storage-state/index.js +1 -1
  21. package/hooks/createDeepCompareEffect.js +1 -1
  22. package/hooks/createUpdateEffect.js +1 -1
  23. package/hooks/createUseStorageState.js +1 -1
  24. package/hooks/index.js +136 -134
  25. package/hooks/use-async-effect/index.js +1 -1
  26. package/hooks/use-boolean/index.js +1 -1
  27. package/hooks/use-click-away/index.js +1 -1
  28. package/hooks/use-computed-state/index.js +1 -1
  29. package/hooks/use-controllable-value/index.js +1 -1
  30. package/hooks/use-cookie-state/index.js +1 -1
  31. package/hooks/use-count-down/index.js +1 -1
  32. package/hooks/use-counter/index.js +1 -1
  33. package/hooks/use-create/index.js +1 -1
  34. package/hooks/use-creation/index.js +1 -1
  35. package/hooks/use-debounce/index.js +1 -1
  36. package/hooks/use-debounce-effect/index.js +1 -1
  37. package/hooks/use-debounce-fn/index.js +1 -1
  38. package/hooks/use-deep-compare-effect/index.js +1 -1
  39. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  40. package/hooks/use-document-visibility/index.js +1 -1
  41. package/hooks/use-drag/index.js +1 -1
  42. package/hooks/use-drop/index.js +1 -1
  43. package/hooks/use-event/index.js +1 -1
  44. package/hooks/use-event-listener/index.js +1 -1
  45. package/hooks/use-event-target/index.js +1 -1
  46. package/hooks/use-external/index.js +1 -1
  47. package/hooks/use-favicon/index.js +1 -1
  48. package/hooks/use-focus-within/index.js +1 -1
  49. package/hooks/use-force-update/index.js +1 -1
  50. package/hooks/use-fullscreen/index.js +1 -1
  51. package/hooks/use-get-state/index.js +1 -1
  52. package/hooks/use-history-travel/index.js +1 -1
  53. package/hooks/use-hover/index.js +1 -1
  54. package/hooks/use-id/index.js +1 -1
  55. package/hooks/use-in-view/index.js +1 -1
  56. package/hooks/use-in-viewport/index.js +1 -1
  57. package/hooks/use-infinite-scroll/index.js +1 -1
  58. package/hooks/use-intersection-observer/index.js +1 -1
  59. package/hooks/use-intersection-observers/index.js +1 -1
  60. package/hooks/use-interval/index.js +1 -1
  61. package/hooks/use-is-first-render/index.js +1 -1
  62. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  63. package/hooks/use-key-press/index.js +1 -1
  64. package/hooks/use-keyboard-event/index.js +1 -1
  65. package/hooks/use-latest/index.js +1 -1
  66. package/hooks/use-listen-window-resize/index.js +1 -1
  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.js +1 -1
  74. package/hooks/use-merge-props/index.js +1 -1
  75. package/hooks/use-merge-value/index.js +1 -1
  76. package/hooks/use-mobile/index.js +13 -0
  77. package/hooks/use-mount/index.js +1 -1
  78. package/hooks/use-mouse/index.js +1 -1
  79. package/hooks/use-move/index.js +1 -1
  80. package/hooks/use-mutation-observer/index.js +1 -1
  81. package/hooks/use-mutation-observers/index.js +7 -5
  82. package/hooks/use-network/index.js +1 -1
  83. package/hooks/use-online-status/index.js +1 -1
  84. package/hooks/use-overflow-hidden/index.js +1 -1
  85. package/hooks/use-override-ref/index.js +1 -1
  86. package/hooks/use-pagination/index.js +1 -1
  87. package/hooks/use-paste-image/index.js +1 -1
  88. package/hooks/use-persist-callback/index.js +1 -1
  89. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  90. package/hooks/use-previous/index.js +1 -1
  91. package/hooks/use-raf-interval/index.js +1 -1
  92. package/hooks/use-raf-state/index.js +1 -1
  93. package/hooks/use-raf-timeout/index.js +1 -1
  94. package/hooks/use-reactive/index.js +1 -1
  95. package/hooks/use-ref-latest/index.js +1 -1
  96. package/hooks/use-refs/index.js +1 -1
  97. package/hooks/use-request/index.js +1 -1
  98. package/hooks/use-request/src/Fetch.js +1 -1
  99. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  100. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  101. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  102. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  103. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  104. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  105. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  106. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  107. package/hooks/use-request/src/useRequest.js +1 -1
  108. package/hooks/use-request/src/useRequestImplement.js +1 -1
  109. package/hooks/use-request/src/utils/cache.js +1 -1
  110. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  111. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  112. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  113. package/hooks/use-request/src/utils/isOnline.js +1 -1
  114. package/hooks/use-request/src/utils/limit.js +1 -1
  115. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  116. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  117. package/hooks/use-reset-state/index.js +1 -1
  118. package/hooks/use-resize-observer/index.js +1 -1
  119. package/hooks/use-resize-observers/index.js +7 -5
  120. package/hooks/use-responsive/index.js +1 -1
  121. package/hooks/use-safe-state/index.js +10 -9
  122. package/hooks/use-scroll/index.js +1 -1
  123. package/hooks/use-selections/index.js +1 -1
  124. package/hooks/use-session-storage-state/index.js +1 -1
  125. package/hooks/use-set/index.js +1 -1
  126. package/hooks/use-set-state/index.js +1 -1
  127. package/hooks/use-size/index.js +1 -1
  128. package/hooks/use-state-callback/index.js +1 -1
  129. package/hooks/use-state-with-promise/index.js +1 -1
  130. package/hooks/use-sync-state/index.js +1 -1
  131. package/hooks/use-text-selection/index.js +1 -1
  132. package/hooks/use-theme/index.js +1 -1
  133. package/hooks/use-throttle/index.js +1 -1
  134. package/hooks/use-throttle-effect/index.js +1 -1
  135. package/hooks/use-throttle-fn/index.js +1 -1
  136. package/hooks/use-timeout/index.js +1 -1
  137. package/hooks/use-title/index.js +1 -1
  138. package/hooks/use-toggle/index.js +1 -1
  139. package/hooks/use-tracked-effect/index.js +1 -1
  140. package/hooks/use-unmount/index.js +1 -1
  141. package/hooks/use-unmounted-ref/index.js +1 -1
  142. package/hooks/use-update/index.js +1 -1
  143. package/hooks/use-update-effect/index.js +1 -1
  144. package/hooks/use-update-layout-effect/index.js +3 -3
  145. package/hooks/use-url-state/index.js +1 -1
  146. package/hooks/use-virtual-list/index.js +1 -1
  147. package/hooks/use-watch/index.js +1 -1
  148. package/hooks/use-web-socket/index.js +1 -1
  149. package/hooks/use-why-did-you-update/index.js +1 -1
  150. package/hooks/use-window-size/index.js +1 -1
  151. package/hooks/useAsyncEffect.js +1 -1
  152. package/hooks/useBoolean.js +1 -1
  153. package/hooks/useClickAway.js +1 -1
  154. package/hooks/useComputedState.js +1 -1
  155. package/hooks/useControllableValue.js +1 -1
  156. package/hooks/useCookieState.js +1 -1
  157. package/hooks/useCountDown.js +1 -1
  158. package/hooks/useCounter.js +1 -1
  159. package/hooks/useCreate.js +1 -1
  160. package/hooks/useCreation.js +1 -1
  161. package/hooks/useDebounce.js +1 -1
  162. package/hooks/useDebounceEffect.js +1 -1
  163. package/hooks/useDebounceFn.js +1 -1
  164. package/hooks/useDeepCompareEffect.js +1 -1
  165. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  166. package/hooks/useDocumentVisibility.js +1 -1
  167. package/hooks/useDrag.js +1 -1
  168. package/hooks/useDrop.js +1 -1
  169. package/hooks/useEvent.js +1 -1
  170. package/hooks/useEventListener.js +1 -1
  171. package/hooks/useEventTarget.js +1 -1
  172. package/hooks/useExternal.js +1 -1
  173. package/hooks/useFavicon.js +1 -1
  174. package/hooks/useFocusWithin.js +1 -1
  175. package/hooks/useForceUpdate.js +1 -1
  176. package/hooks/useFullscreen.js +1 -1
  177. package/hooks/useGetState.js +1 -1
  178. package/hooks/useHistoryTravel.js +1 -1
  179. package/hooks/useHover.js +1 -1
  180. package/hooks/useId.js +1 -1
  181. package/hooks/useInView.js +1 -1
  182. package/hooks/useInViewport.js +1 -1
  183. package/hooks/useInfiniteScroll.js +1 -1
  184. package/hooks/useIntersectionObserver.js +1 -1
  185. package/hooks/useIntersectionObservers.js +1 -1
  186. package/hooks/useInterval.js +1 -1
  187. package/hooks/useIsFirstRender.js +1 -1
  188. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  189. package/hooks/useKeyPress.js +1 -1
  190. package/hooks/useKeyboardEvent.js +1 -1
  191. package/hooks/useLatest.js +1 -1
  192. package/hooks/useListenWindowResize.js +1 -1
  193. package/hooks/useLocalStorageState.js +1 -1
  194. package/hooks/useLockFn.js +1 -1
  195. package/hooks/useLongPress.js +1 -1
  196. package/hooks/useMap.js +1 -1
  197. package/hooks/useMedia.js +1 -1
  198. package/hooks/useMemo.js +1 -1
  199. package/hooks/useMemoizedFn.js +1 -1
  200. package/hooks/useMergeProps.js +1 -1
  201. package/hooks/useMergeValue.js +1 -1
  202. package/hooks/useMobile.js +8 -0
  203. package/hooks/useMount.js +1 -1
  204. package/hooks/useMouse.js +1 -1
  205. package/hooks/useMove.js +1 -1
  206. package/hooks/useMutationObserver.js +1 -1
  207. package/hooks/useMutationObservers.js +7 -5
  208. package/hooks/useNetwork.js +1 -1
  209. package/hooks/useOnlineStatus.js +1 -1
  210. package/hooks/useOverflowHidden.js +1 -1
  211. package/hooks/useOverrideRef.js +1 -1
  212. package/hooks/usePagination.js +1 -1
  213. package/hooks/usePasteImage.js +1 -1
  214. package/hooks/usePersistCallback.js +1 -1
  215. package/hooks/usePrefersColorSchemeDark.js +1 -1
  216. package/hooks/usePrevious.js +1 -1
  217. package/hooks/useRafInterval.js +1 -1
  218. package/hooks/useRafState.js +1 -1
  219. package/hooks/useRafTimeout.js +1 -1
  220. package/hooks/useReactive.js +1 -1
  221. package/hooks/useRefLatest.js +1 -1
  222. package/hooks/useRefs.js +1 -1
  223. package/hooks/useRequest.js +1 -1
  224. package/hooks/useResetState.js +1 -1
  225. package/hooks/useResizeObserver.js +1 -1
  226. package/hooks/useResizeObservers.js +7 -5
  227. package/hooks/useResponsive.js +1 -1
  228. package/hooks/useSafeState.js +1 -1
  229. package/hooks/useScroll.js +1 -1
  230. package/hooks/useSelections.js +1 -1
  231. package/hooks/useSessionStorageState.js +1 -1
  232. package/hooks/useSet.js +1 -1
  233. package/hooks/useSetState.js +1 -1
  234. package/hooks/useSize.js +1 -1
  235. package/hooks/useStateCallback.js +1 -1
  236. package/hooks/useStateWithPromise.js +1 -1
  237. package/hooks/useSyncState.js +1 -1
  238. package/hooks/useTextSelection.js +1 -1
  239. package/hooks/useTheme.js +1 -1
  240. package/hooks/useThrottle.js +1 -1
  241. package/hooks/useThrottleEffect.js +1 -1
  242. package/hooks/useThrottleFn.js +1 -1
  243. package/hooks/useTimeout.js +1 -1
  244. package/hooks/useTitle.js +1 -1
  245. package/hooks/useToggle.js +1 -1
  246. package/hooks/useTrackedEffect.js +1 -1
  247. package/hooks/useUnmount.js +1 -1
  248. package/hooks/useUnmountedRef.js +1 -1
  249. package/hooks/useUpdate.js +1 -1
  250. package/hooks/useUpdateEffect.js +1 -1
  251. package/hooks/useUpdateLayoutEffect.js +1 -1
  252. package/hooks/useUrlState.js +1 -1
  253. package/hooks/useVirtualList.js +1 -1
  254. package/hooks/useWatch.js +1 -1
  255. package/hooks/useWebSocket.js +1 -1
  256. package/hooks/useWhyDidYouUpdate.js +1 -1
  257. package/hooks/useWindowSize.js +1 -1
  258. package/hooks/utils/createEffectWithTarget.js +1 -1
  259. package/hooks/utils/depsAreSame.js +1 -1
  260. package/hooks/utils/depsEqual.js +1 -1
  261. package/hooks/utils/domTarget.js +1 -1
  262. package/hooks/utils/getDocumentOrShadow.js +1 -1
  263. package/hooks/utils/index.js +1 -1
  264. package/hooks/utils/isAppleDevice.js +1 -1
  265. package/hooks/utils/isBrowser.js +1 -1
  266. package/hooks/utils/isDev.js +1 -1
  267. package/hooks/utils/rect.js +1 -1
  268. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  269. package/hooks/utils/useEffectWithTarget.js +1 -1
  270. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  271. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  272. package/hooks/utils.js +1 -1
  273. package/icons/file/index.js +1 -1
  274. package/icons/file.js +1 -1
  275. package/index.js +569 -559
  276. package/motion/CSSMotion.js +1 -1
  277. package/motion/CSSMotionList.js +1 -1
  278. package/motion/context.js +1 -1
  279. package/motion/hooks/useDomMotionEvents.js +1 -1
  280. package/motion/hooks/useNextFrame.js +1 -1
  281. package/motion/hooks/useStatus.js +1 -1
  282. package/motion/hooks/useStepQueue.js +1 -1
  283. package/motion/index.js +1 -1
  284. package/motion/interface.js +1 -1
  285. package/motion/util/diff.js +1 -1
  286. package/motion/util/motion.js +1 -1
  287. package/package.json +1 -1
  288. package/progress/index.js +1 -1
  289. package/resize-observer/Collection.js +1 -1
  290. package/resize-observer/SingleObserver.js +1 -1
  291. package/resize-observer/index.js +1 -1
  292. package/resize-observer/observerUtil.js +1 -1
  293. package/space/index.js +1 -1
  294. package/style.css +1 -1
  295. package/suspense-fallback-test/index.js +1 -1
  296. package/timer/index.js +41 -0
  297. package/transition-group/CSSTransition.js +1 -1
  298. package/transition-group/ChildMapping.js +1 -1
  299. package/transition-group/PqbCSSTransition.js +1 -1
  300. package/transition-group/ReplaceTransition.js +1 -1
  301. package/transition-group/SwitchTransition.js +1 -1
  302. package/transition-group/Transition.js +1 -1
  303. package/transition-group/TransitionGroup.js +1 -1
  304. package/transition-group/TransitionGroupContext.js +1 -1
  305. package/transition-group/index.js +1 -1
  306. package/types/flex/interface.d.ts +1 -1
  307. package/types/higher-order/with-speech-synthesis/style/index.d.ts +2 -0
  308. package/types/hooks/index.d.ts +1 -0
  309. package/types/hooks/use-mobile/index.d.ts +6 -0
  310. package/types/hooks/use-safe-state/index.d.ts +13 -6
  311. package/types/hooks/use-update-effect/index.d.ts +2 -2
  312. package/types/hooks/use-update-layout-effect/index.d.ts +2 -2
  313. package/types/icons/file/style/index.d.ts +2 -0
  314. package/types/index.d.ts +2 -0
  315. package/types/timer/index.d.ts +3 -0
  316. package/types/timer/interface.d.ts +10 -0
  317. package/types/utils/callOrReturn.d.ts +1 -0
  318. package/types/utils/fileRead.d.ts +1 -0
  319. package/types/utils/fileToDataURL.d.ts +1 -0
  320. package/types/utils/index.d.ts +3 -1
  321. package/types/utils/is.d.ts +2 -2
  322. package/utils/callOrReturn.js +6 -0
  323. package/utils/callbackOriginRef.js +1 -1
  324. package/utils/caseName.js +1 -1
  325. package/utils/className.js +1 -1
  326. package/utils/compute.js +1 -1
  327. package/utils/constant.js +1 -1
  328. package/utils/copy.js +1 -1
  329. package/utils/date.js +1 -1
  330. package/utils/dayjs.js +1 -1
  331. package/utils/dom.js +1 -1
  332. package/utils/emitter.js +1 -1
  333. package/utils/fileRead.js +6 -0
  334. package/utils/fileToDataURL.js +6 -0
  335. package/utils/fillNBSP.js +1 -1
  336. package/utils/findRootElement.js +1 -1
  337. package/utils/findScrollParent.js +1 -1
  338. package/utils/getHighlightText.js +1 -1
  339. package/utils/getHotkeyHandler.js +1 -1
  340. package/utils/getStringLength.js +1 -1
  341. package/utils/include.js +1 -1
  342. package/utils/index.js +377 -371
  343. package/utils/intersectionObserver.js +1 -1
  344. package/utils/is.js +91 -89
  345. package/utils/keyboardCode.js +1 -1
  346. package/utils/lodash.js +1 -1
  347. package/utils/math.js +1 -1
  348. package/utils/mergeProps.js +1 -1
  349. package/utils/mergedToString.js +1 -1
  350. package/utils/mutationObserver.js +1 -1
  351. package/utils/omit.js +1 -1
  352. package/utils/pad.js +1 -1
  353. package/utils/pick.js +1 -1
  354. package/utils/pinyin.js +1 -1
  355. package/utils/react19Adapter.js +1 -1
  356. package/utils/ref.js +1 -1
  357. package/utils/resizeObserver.js +1 -1
  358. package/utils/saveAs.js +1 -1
  359. package/utils/screenfull.js +1 -1
  360. package/utils/scrollIntoViewIfNeeded.js +1 -1
  361. package/utils/setCreateRoot.js +1 -1
  362. package/utils/setDarkTheme.js +1 -1
  363. package/utils/setDir.js +1 -1
  364. package/utils/setPrimaryColor.js +1 -1
  365. package/utils/setTheme.js +1 -1
  366. package/utils/string.js +1 -1
  367. package/utils/style.js +1 -1
  368. package/utils/throttleByRaf.js +1 -1
  369. package/utils/throttleByRaf2.js +1 -1
  370. package/utils/tinycolor.js +1 -1
  371. package/utils/toArray.js +1 -1
  372. package/utils/tree.js +1 -1
  373. package/utils/tween.js +1 -1
  374. package/utils/uuid.js +1 -1
  375. package/utils/validate.js +1 -1
  376. package/utils/warning.js +1 -1
  377. package/types/utils/fileToURL.d.ts +0 -1
  378. package/utils/fileToURL.js +0 -6
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import o, { useRef as _ } from "react";
3
3
  import h from "@unicom-cloud/utils/class-name";
4
4
  import { findRootElement as V } from "../utils/findRootElement.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as f } from "react/jsx-runtime";
3
3
  import l, { createElement as A } from "react";
4
4
  import h from "./CSSMotion.js";
package/motion/context.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import e from "react";
4
4
  const n = e.createContext({});
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import f, { useRef as s } from "react";
3
3
  import { transitionEndName as c, animationEndName as u } from "../util/motion.js";
4
4
  function a(e) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import a from "react";
3
3
  function f() {
4
4
  const e = a.useRef(null);
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import Q, { useRef as d, useEffect as x } from "react";
3
3
  import st from "../../hooks/use-event/index.js";
4
4
  import ct from "../../hooks/use-isomorphic-layout-effect/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import l from "react";
3
3
  import x from "../../hooks/use-isomorphic-layout-effect/index.js";
4
4
  import A from "../../hooks/use-safe-state/index.js";
package/motion/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import t from "./CSSMotion.js";
3
3
  import { default as a } from "./CSSMotionList.js";
4
4
  import { default as i } from "./context.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  const T = "none", E = "appear", n = "enter", t = "leave", S = "none", e = "prepare", o = "start", A = "active", P = "end", c = "prepared";
3
3
  export {
4
4
  E as STATUS_APPEAR,
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  const d = "add", l = "keep", p = "remove", b = "removed";
3
3
  function E(s) {
4
4
  let n;
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import d from "@unicom-cloud/utils/dom-helpers/canUseDOM";
3
3
  import "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
4
4
  import "@unicom-cloud/utils/dom-helpers/reflow";
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@unicom-cloud/ui-common","version":"0.1.9","dependencies":{"@unicom-cloud/utils":"^0.1.0","@unicom-cloud/icons":"^0.1.0"},"peerDependencies":{"dayjs":"^1.11.19","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1","react-is":"^18.3.1"},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
1
+ {"name":"@unicom-cloud/ui-common","version":"0.1.11","dependencies":{"@unicom-cloud/utils":"^0.1.0","@unicom-cloud/icons":"^0.1.0"},"peerDependencies":{"dayjs":"^1.11.19","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1","react-is":"^18.3.1"},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
package/progress/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { UI_COMMON_PREFIX as a } from "@unicom-cloud/utils/constant/ui";
3
3
  import "../utils/is.js";
4
4
  import { isNumber as u } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as R } from "react/jsx-runtime";
3
3
  import e from "react";
4
4
  const i = e.createContext(null);
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import e from "react";
3
3
  import { findRootElement as I } from "../utils/findRootElement.js";
4
4
  import { supportRef as S, getReactElementRef as y, useComposeRef as P } from "../utils/ref.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import c, { createElement as m } from "react";
3
3
  import { toArray as a } from "../utils/toArray.js";
4
4
  import { warning as t } from "../utils/warning.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  const s = /* @__PURE__ */ new Map();
3
3
  function f(e) {
4
4
  e.forEach((r) => {
package/space/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as o, jsxs as k } from "react/jsx-runtime";
3
3
  import { UI_COMMON_PREFIX as H } from "@unicom-cloud/utils/constant/ui";
4
4
  import { forwardRef as g, useRef as O, useImperativeHandle as _, Fragment as A } from "react";
package/style.css CHANGED
@@ -1 +1 @@
1
- :root{--pi: 3.141592653589793}@keyframes pqbc-keyframes-vibrate{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}@keyframes pqbc-keyframes-rotate-360deg{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pqbc-keyframes-blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}.pqbc-animation-rotate-360deg{animation:pqbc-keyframes-rotate-360deg 1s infinite cubic-bezier(0,0,1,1)}.pqbc-animation-vibrate{animation:pqbc-keyframes-vibrate .3s linear infinite both}.pqbc-animation-blink-enter,.pqbc-animation-blink-appear{opacity:0}.pqbc-animation-blink-enter-active,.pqbc-animation-blink-appear-active{opacity:1;transition:opacity .3s linear}.pqbc-animation-blink-enter-done{animation:pqbc-keyframes-blink .5s linear}.pqbc-display-none{display:none!important}.pqbc-visibility-hidden{visibility:hidden!important}.pqbc-overflow-hidden{overflow:hidden}.pqbc-cursor-pointer{cursor:pointer}.pqbc-filter-invert-100{filter:invert(100%)}.pqbc-filter-grayscale-100{filter:grayscale(100%)}.pqbc-isolation-isolate{isolation:isolate}.pqbc-direction-rtl{direction:rtl}.pqbc-line-height-1{line-height:1}.pqbc-text-overflow-ellipsis{text-overflow:ellipsis;white-space:nowrap;word-break:break-all;overflow:hidden}.pqbc-line-clamp-2,.pqbc-line-clamp-3,.pqbc-line-clamp-4,.pqbc-line-clamp-5{display:-webkit-box;display:-moz-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}.pqbc-line-clamp-2{line-clamp:2;-webkit-line-clamp:2}.pqbc-line-clamp-3{line-clamp:3;-webkit-line-clamp:3}.pqbc-line-clamp-4{line-clamp:4;-webkit-line-clamp:4}.pqbc-line-clamp-5{line-clamp:5;-webkit-line-clamp:5}.pqb-theme-dark,.pqbm-theme-dark,.pqb-theme-dark *,.pqbm-theme-dark *{color-scheme:dark}[dir=rtl] *{direction:rtl}.pqbc-empty{width:100%}.pqbc-empty .pqbc-empty-description{line-height:1}.pqbc-development{width:100%;height:100%;min-height:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}.pqbc-development-icon,.pqbc-development-img{width:50px;height:50px}.pqbc-development-label{font-size:20px;--color-neutral: #868788;color:var(--pqbc-color-neutral-6, var(--pqb-color-neutral-6, var(--pqbm-color-neutral-6, --color-neutral)))}.pqbc-space-vertical{width:100%}.pqbc-space-rtl{direction:rtl}.pqbc-icons-file{position:relative}.pqbc-icons-file-svg{width:30px;height:30px}.pqbc-icons-file-svg-bg{--primary: 26, 94, 255;fill:rgb(var(--pqbc-primary-6, var(--pqb-primary-6, var(--pqbm-primary-6, --primary))))}.pqbc-icons-file-svg-tr{fill:#fff;fill-opacity:.7}.pqbc-icons-file-svg-text{fill:#fff;font-weight:bolder;font-size:66px;text-align:center}.pqbc-flex{display:flex;margin:0;padding:0;box-sizing:border-box}.pqbc-flex-inline{display:inline-flex}.pqbc-flex:empty{display:none}.pqbc-flex-rtl{direction:rtl}.pqbc-progress{pointer-events:none}.pqbc-progress-bar{--primary: 26, 94, 255;background-color:rgb(var(--pqbc-primary-6, var(--pqb-primary-6, var(--pqbm-primary-6, --primary))));position:fixed;z-index:870227;inset-block-start:0;inset-inline-start:0;width:100%;height:2px}
1
+ :root{--pi: 3.141592653589793}@keyframes pqbc-keyframes-vibrate{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}@keyframes pqbc-keyframes-rotate-360deg{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pqbc-keyframes-blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}.pqbc-animation-rotate-360deg{animation:pqbc-keyframes-rotate-360deg 1s infinite cubic-bezier(0,0,1,1)}.pqbc-animation-vibrate{animation:pqbc-keyframes-vibrate .3s linear infinite both}.pqbc-animation-blink-enter,.pqbc-animation-blink-appear{opacity:0}.pqbc-animation-blink-enter-active,.pqbc-animation-blink-appear-active{opacity:1;transition:opacity .3s linear}.pqbc-animation-blink-enter-done{animation:pqbc-keyframes-blink .5s linear}.pqbc-display-none{display:none!important}.pqbc-visibility-hidden{visibility:hidden!important}.pqbc-overflow-hidden{overflow:hidden}.pqbc-cursor-pointer{cursor:pointer}.pqbc-filter-invert-100{filter:invert(100%)}.pqbc-filter-grayscale-100{filter:grayscale(100%)}.pqbc-isolation-isolate{isolation:isolate}.pqbc-direction-rtl{direction:rtl}.pqbc-line-height-1{line-height:1}.pqbc-text-overflow-ellipsis{text-overflow:ellipsis;white-space:nowrap;word-break:break-all;overflow:hidden}.pqbc-line-clamp-2,.pqbc-line-clamp-3,.pqbc-line-clamp-4,.pqbc-line-clamp-5{display:-webkit-box;display:-moz-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}.pqbc-line-clamp-2{line-clamp:2;-webkit-line-clamp:2}.pqbc-line-clamp-3{line-clamp:3;-webkit-line-clamp:3}.pqbc-line-clamp-4{line-clamp:4;-webkit-line-clamp:4}.pqbc-line-clamp-5{line-clamp:5;-webkit-line-clamp:5}.pqb-theme-dark,.pqbm-theme-dark,.pqb-theme-dark *,.pqbm-theme-dark *{color-scheme:dark}[dir=rtl] *,.pqbc-with-speech-synthesis-rtl{direction:rtl}.pqbc-empty{width:100%}.pqbc-empty .pqbc-empty-description{line-height:1}.pqbc-development{width:100%;height:100%;min-height:300px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}.pqbc-development-icon,.pqbc-development-img{width:50px;height:50px}.pqbc-development-label{font-size:20px;--color-neutral: #868788;color:var(--pqbc-color-neutral-6, var(--pqb-color-neutral-6, var(--pqbm-color-neutral-6, --color-neutral)))}.pqbc-space-vertical{width:100%}.pqbc-space-rtl{direction:rtl}.pqbc-icons-file{position:relative}.pqbc-icons-file-svg{width:30px;height:30px}.pqbc-icons-file-svg-bg{--primary: 26, 94, 255;fill:rgb(var(--pqbc-primary-6, var(--pqb-primary-6, var(--pqbm-primary-6, --primary))))}.pqbc-icons-file-svg-tr{fill:#fff;fill-opacity:.7}.pqbc-icons-file-svg-text{fill:#fff;font-weight:bolder;font-size:66px;text-align:center}.pqbc-flex{display:flex;margin:0;padding:0;box-sizing:border-box}.pqbc-flex-inline{display:inline-flex}.pqbc-flex:empty{display:none}.pqbc-flex-rtl{direction:rtl}.pqbc-progress{pointer-events:none}.pqbc-progress-bar{--primary: 26, 94, 255;background-color:rgb(var(--pqbc-primary-6, var(--pqb-primary-6, var(--pqbm-primary-6, --primary))));position:fixed;z-index:870227;inset-block-start:0;inset-inline-start:0;width:100%;height:2px}.pqbc-timer-rtl{direction:rtl}
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import e from "react";
4
4
  const a = (n, r) => {
package/timer/index.js ADDED
@@ -0,0 +1,41 @@
1
+ /* 2025-12-23 17:18:00 */
2
+ import { jsx as d } from "react/jsx-runtime";
3
+ import { UI_COMMON_PREFIX as p } from "@unicom-cloud/utils/constant/ui";
4
+ import w from "dayjs";
5
+ import { forwardRef as R, useState as E, useEffect as F, useRef as M, useImperativeHandle as Y } from "react";
6
+ import x from "@unicom-cloud/utils/class-name";
7
+ import "../utils/is.js";
8
+ import { isFunction as H } from "@unicom-cloud/utils/is";
9
+ function I(i, s) {
10
+ const {
11
+ style: N,
12
+ className: a,
13
+ format: f = "YYYY-MM-DD HH:mm:ss dddd",
14
+ callback: t,
15
+ ...g
16
+ } = i, c = `${p}-timer`, [u, l] = E({ time: e() });
17
+ function e() {
18
+ return w().format(f);
19
+ }
20
+ F(() => {
21
+ let o = n();
22
+ function n(m = e()) {
23
+ return H(t) && t(m), window.requestAnimationFrame(() => {
24
+ l({ time: m }), o = n();
25
+ });
26
+ }
27
+ return () => {
28
+ window.cancelAnimationFrame(o);
29
+ };
30
+ }, []);
31
+ const r = M(null);
32
+ return Y(s, () => ({
33
+ getRootElement() {
34
+ return r.current;
35
+ }
36
+ })), /* @__PURE__ */ d("div", { ref: r, className: x(c, a), children: u.time });
37
+ }
38
+ const S = R(I);
39
+ export {
40
+ S as default
41
+ };
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as h } from "react/jsx-runtime";
3
3
  import m from "react";
4
4
  import "@unicom-cloud/utils/dom-helpers/canUseDOM";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { isValidElement as a, cloneElement as g, Children as p } from "react";
3
3
  function h(e, t) {
4
4
  const l = (n) => t && a(n) ? t(n) : n, c = /* @__PURE__ */ Object.create(null);
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as E } from "react/jsx-runtime";
3
3
  import { useRef as m, useMemo as s, isValidElement as d, cloneElement as a } from "react";
4
4
  import { callbackOriginRef as p } from "../utils/callbackOriginRef.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as l } from "react/jsx-runtime";
3
3
  import i from "react";
4
4
  import { findRootElement as s } from "../utils/findRootElement.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as d } from "react/jsx-runtime";
3
3
  import r from "react";
4
4
  import { ENTERED as a, ENTERING as s, EXITING as E } from "./Transition.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as S } from "react/jsx-runtime";
3
3
  import h from "react";
4
4
  import "@unicom-cloud/utils/dom-helpers/canUseDOM";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import p from "react";
4
4
  import { getInitialChildMapping as a, getNextChildMapping as l, getChildMapping as c } from "./ChildMapping.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import t from "react";
3
3
  const e = t.createContext(null);
4
4
  export {
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import "@unicom-cloud/utils/dom-helpers/canUseDOM";
3
3
  import "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
4
4
  import { default as n } from "@unicom-cloud/utils/dom-helpers/reflow";
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export type GapProperty = 'gap' | 'rowGap' | 'columnGap';
3
- export type SizeType = 'mini' | 'small' | 'medium' | 'large' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x';
3
+ export type SizeType = 'mini' | 'small' | 'medium' | 'large' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | 'x1' | 'x2' | 'x3' | 'x4' | 'x5' | 'x6' | 'x7' | 'x8' | 'x9';
4
4
  export type GapType = SizeType | React.CSSProperties['gap'];
5
5
  /**
6
6
  * @title Flex
@@ -0,0 +1,2 @@
1
+ import '../../../style/index.less';
2
+ import './index.less';
@@ -38,6 +38,7 @@ export { default as useLockFn } from './use-lock-fn';
38
38
  export { default as useLongPress } from './use-long-press';
39
39
  export { default as useMemo } from './use-memo';
40
40
  export { default as useMemoizedFn } from './use-memoized-fn';
41
+ export { default as useMobile } from './use-mobile';
41
42
  export { default as useMount } from './use-mount';
42
43
  export { default as useMouse } from './use-mouse';
43
44
  export { default as useMove } from './use-move';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Hook to detect if the user is on a mobile device
3
+ * Notice that this hook will only detect the device type in effect, so it will always be false in server side
4
+ */
5
+ declare const useMobile: () => boolean;
6
+ export default useMobile;
@@ -1,7 +1,14 @@
1
- import type { Dispatch, SetStateAction } from 'react';
2
- declare function useSafeState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
3
- declare function useSafeState<S = undefined>(): [
4
- S | undefined,
5
- Dispatch<SetStateAction<S | undefined>>
6
- ];
1
+ type Updater<T> = T | ((prevValue: T) => T);
2
+ export type SetState<T> = (nextValue: Updater<T>,
3
+ /**
4
+ * Will not update state when destroyed.
5
+ * Developer should make sure this is safe to ignore.
6
+ */
7
+ ignoreDestroy?: boolean) => void;
8
+ /**
9
+ * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
10
+ * We do not make this auto is to avoid real memory leak.
11
+ * Developer should confirm it's safe to ignore themselves.
12
+ */
13
+ declare function useSafeState<T>(defaultValue?: T | (() => T)): [T, SetState<T>];
7
14
  export default useSafeState;
@@ -1,3 +1,3 @@
1
1
  import { useEffect } from 'react';
2
- declare const _default: typeof useEffect | typeof import("react").useLayoutEffect;
3
- export default _default;
2
+ declare const useUpdateEffect: typeof useEffect | typeof import("react").useLayoutEffect;
3
+ export default useUpdateEffect;
@@ -1,3 +1,3 @@
1
1
  import { useLayoutEffect } from 'react';
2
- declare const _default: typeof import("react").useEffect | typeof useLayoutEffect;
3
- export default _default;
2
+ declare const useUpdateLayoutEffect: typeof import("react").useEffect | typeof useLayoutEffect;
3
+ export default useUpdateLayoutEffect;
@@ -0,0 +1,2 @@
1
+ import '../../../style/index.less';
2
+ import './index.less';
package/types/index.d.ts CHANGED
@@ -16,3 +16,5 @@ export { default as Space, SpaceVertical } from './space';
16
16
  export type { SpaceProps, SpaceVerticalProps } from './space/interface';
17
17
  export { default as SuspenseFallbackTest } from './suspense-fallback-test';
18
18
  export type { SuspenseFallbackTestProps } from './suspense-fallback-test/interface';
19
+ export { default as Timer } from './timer';
20
+ export type { TimerProps } from './timer/interface';
@@ -0,0 +1,3 @@
1
+ import { TimerProps } from './interface';
2
+ declare const Timer: import("react").ForwardRefExoticComponent<TimerProps & import("react").RefAttributes<unknown>>;
3
+ export default Timer;
@@ -0,0 +1,10 @@
1
+ import { CSSProperties } from 'react';
2
+ /**
3
+ * @title Timer
4
+ */
5
+ export interface TimerProps {
6
+ style?: CSSProperties;
7
+ className?: string | string[];
8
+ format?: string;
9
+ callback?: (time: string) => unknown;
10
+ }
@@ -0,0 +1 @@
1
+ export { callOrReturn, callOrReturn as default, } from '@unicom-cloud/utils/function';
@@ -0,0 +1 @@
1
+ export { default, fileRead } from '@unicom-cloud/utils/file/fileRead';
@@ -0,0 +1 @@
1
+ export { default, fileToDataURL } from '@unicom-cloud/utils/file/fileToDataURL';
@@ -1,4 +1,5 @@
1
1
  export * from './callbackOriginRef';
2
+ export * from './callOrReturn';
2
3
  export * from './caseName';
3
4
  export * from './className';
4
5
  export * from './constant';
@@ -7,7 +8,8 @@ export * from './date';
7
8
  export * from './dayjs';
8
9
  export * from './dom';
9
10
  export * from './emitter';
10
- export * from './fileToURL';
11
+ export * from './fileRead';
12
+ export * from './fileToDataURL';
11
13
  export * from './fillNBSP';
12
14
  export * from './findRootElement';
13
15
  export * from './findScrollParent';
@@ -1,4 +1,4 @@
1
- import { is32Bit, isAllChinese, isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isAscii, isBase64, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isString, isStrongPassword, isSymbol, isTypedArray, isUndefined, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow } from '@unicom-cloud/utils/is';
1
+ import { is32Bit, isAllChinese, isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isString, isStrongPassword, isSymbol, isTypedArray, isUndefined, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow } from '@unicom-cloud/utils/is';
2
2
  import { isDayjs } from 'dayjs';
3
3
  import React from 'react';
4
4
  declare const isServerRendering: boolean;
@@ -9,4 +9,4 @@ export declare function isReactComponent(element: any): boolean;
9
9
  export declare function isReactClassComponent(element: any): boolean;
10
10
  export declare function isElementByInstanceof(element: Element): boolean;
11
11
  export declare function isScrollElement(element: HTMLElement): boolean;
12
- export { is32Bit, isAllChinese, isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isAscii, isBase64, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isString, isStrongPassword, isSymbol, isTypedArray, isUndefined, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
12
+ export { is32Bit, isAllChinese, isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPort, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isString, isStrongPassword, isSymbol, isTypedArray, isUndefined, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
@@ -0,0 +1,6 @@
1
+ /* 2025-12-23 17:18:00 */
2
+ import { callOrReturn as a, callOrReturn as e } from "@unicom-cloud/utils/function";
3
+ export {
4
+ a as callOrReturn,
5
+ e as default
6
+ };
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { getReactElementRef as r, fillRef as l } from "./ref.js";
3
3
  function n(e, t) {
4
4
  if (!e) return;
package/utils/caseName.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { default as f, default as t } from "@unicom-cloud/utils/case-name";
3
3
  export {
4
4
  f as caseName,
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { default as f, default as l } from "@unicom-cloud/utils/class-name";
3
3
  export {
4
4
  f as className,
package/utils/compute.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import "./is.js";
3
3
  import { isFunction as z, isElement as _ } from "@unicom-cloud/utils/is";
4
4
  const Y = (t, e) => !(e && t === "hidden" || t === "visible" || t === "clip"), E = (t) => {
package/utils/constant.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import o from "lodash/noop";
3
3
  import { UI_PC_KEY as m, UI_PC_THEME_DARK_CLASS_NAME as r } from "@unicom-cloud/utils/constant/ui";
4
4
  const _ = window.document.documentElement, t = o;
package/utils/copy.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import "@unicom-cloud/utils/clipboard-copy";
3
3
  import { default as r, default as t, default as d } from "@unicom-cloud/utils/clipboard-copy";
4
4
  export {
package/utils/date.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { convertTime as e, convertToDurationBasedOnTimeUnits as r, dateFormat as a, dayjsFormat as m } from "@unicom-cloud/utils/date";
3
3
  export {
4
4
  e as convertTime,
package/utils/dayjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import e from "dayjs";
3
3
  import { default as y, default as F } from "dayjs";
4
4
  import r from "dayjs/plugin/advancedFormat";
package/utils/dom.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { default as C } from "@unicom-cloud/utils/dom-helpers/canUseDOM";
3
3
  import { default as g } from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
4
4
  import { default as S, default as h } from "@unicom-cloud/utils/dom-helpers/reflow";
package/utils/emitter.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { default as a, default as f } from "@unicom-cloud/utils/emitter";
3
3
  export {
4
4
  a as default,
@@ -0,0 +1,6 @@
1
+ /* 2025-12-23 17:18:00 */
2
+ import { default as a, fileRead as d } from "@unicom-cloud/utils/file/fileRead";
3
+ export {
4
+ a as default,
5
+ d as fileRead
6
+ };
@@ -0,0 +1,6 @@
1
+ /* 2025-12-23 17:18:00 */
2
+ import { default as f, fileToDataURL as o } from "@unicom-cloud/utils/file/fileToDataURL";
3
+ export {
4
+ f as default,
5
+ o as fileToDataURL
6
+ };
package/utils/fillNBSP.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import "./is.js";
3
3
  import { isString as t } from "@unicom-cloud/utils/is";
4
4
  function n(e) {
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import { Component as e } from "react";
3
3
  import u from "react-dom";
4
4
  import { isElementByInstanceof as n } from "./is.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  function i(o, l = !1) {
3
3
  if (!o) return document.documentElement;
4
4
  const n = getComputedStyle(o), r = n.position === "absolute", c = l ? /(auto|scroll|hidden)/ : /(auto|scroll)/;
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import l from "lodash/escapeRegExp";
3
3
  import { cloneElement as m, createElement as n } from "react";
4
4
  import "./is.js";
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  import "./is.js";
3
3
  import { isNumber as o, isString as s } from "@unicom-cloud/utils/is";
4
4
  const e = (a) => JSON.stringify({
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  function l(t) {
3
3
  let n = 0;
4
4
  for (let e = 0; e < t.length; e++)
package/utils/include.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-17 18:27:04 */
1
+ /* 2025-12-23 17:18:00 */
2
2
  function u(n, t) {
3
3
  const e = {};
4
4
  return Object.keys(n).forEach((c) => {