@unicom-cloud/ui-common 0.1.4 → 0.1.5

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 (333) hide show
  1. package/Development.js +1 -1
  2. package/Empty.js +1 -1
  3. package/Flex.js +1 -1
  4. package/Progress.js +1 -1
  5. package/Space.js +1 -1
  6. package/SuspenseFallbackTest.js +1 -1
  7. package/TransitionGroup.js +1 -1
  8. package/development/index.js +1 -1
  9. package/empty/index.js +1 -1
  10. package/flex/index.js +1 -1
  11. package/flex/interface.js +1 -1
  12. package/higher-order/index.js +1 -1
  13. package/higher-order/with-speech-synthesis/index.js +1 -1
  14. package/higher-order/withSpeechSynthesis.js +1 -1
  15. package/hooks/create-deep-compare-effect/index.js +1 -1
  16. package/hooks/create-update-effect/index.js +1 -1
  17. package/hooks/create-use-storage-state/index.js +45 -35
  18. package/hooks/createDeepCompareEffect.js +1 -1
  19. package/hooks/createUpdateEffect.js +1 -1
  20. package/hooks/createUseStorageState.js +1 -1
  21. package/hooks/index.js +94 -88
  22. package/hooks/use-async-effect/index.js +1 -1
  23. package/hooks/use-boolean/index.js +1 -1
  24. package/hooks/use-click-away/index.js +1 -1
  25. package/hooks/use-computed-state/index.js +1 -1
  26. package/hooks/use-controllable-value/index.js +1 -1
  27. package/hooks/use-cookie-state/index.js +1 -1
  28. package/hooks/use-count-down/index.js +1 -1
  29. package/hooks/use-counter/index.js +1 -1
  30. package/hooks/use-create/index.js +1 -1
  31. package/hooks/use-creation/index.js +1 -1
  32. package/hooks/use-debounce/index.js +1 -1
  33. package/hooks/use-debounce-effect/index.js +1 -1
  34. package/hooks/use-debounce-fn/index.js +1 -1
  35. package/hooks/use-deep-compare-effect/index.js +1 -1
  36. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  37. package/hooks/use-document-visibility/index.js +1 -1
  38. package/hooks/use-drag/index.js +1 -1
  39. package/hooks/use-drop/index.js +41 -38
  40. package/hooks/use-event-listener/index.js +1 -1
  41. package/hooks/use-event-target/index.js +1 -1
  42. package/hooks/use-external/index.js +1 -1
  43. package/hooks/use-favicon/index.js +1 -1
  44. package/hooks/use-focus-within/index.js +1 -1
  45. package/hooks/use-force-update/index.js +1 -1
  46. package/hooks/use-fullscreen/index.js +1 -1
  47. package/hooks/use-get-state/index.js +1 -1
  48. package/hooks/use-history-travel/index.js +1 -1
  49. package/hooks/use-hover/index.js +1 -1
  50. package/hooks/use-id/index.js +1 -1
  51. package/hooks/use-in-view/index.js +1 -1
  52. package/hooks/use-in-viewport/index.js +1 -1
  53. package/hooks/use-infinite-scroll/index.js +1 -1
  54. package/hooks/use-intersection-observer/index.js +1 -1
  55. package/hooks/use-intersection-observers/index.js +113 -0
  56. package/hooks/use-interval/index.js +1 -1
  57. package/hooks/use-is-first-render/index.js +1 -1
  58. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  59. package/hooks/use-key-press/index.js +1 -1
  60. package/hooks/use-keyboard-event/index.js +1 -1
  61. package/hooks/use-latest/index.js +1 -1
  62. package/hooks/use-listen-window-resize/index.js +1 -1
  63. package/hooks/use-local-storage-state/index.js +1 -1
  64. package/hooks/use-lock-fn/index.js +1 -1
  65. package/hooks/use-long-press/index.js +1 -1
  66. package/hooks/use-map/index.js +1 -1
  67. package/hooks/use-media/index.js +1 -1
  68. package/hooks/use-memoized-fn/index.js +1 -1
  69. package/hooks/use-merge-props/index.js +1 -1
  70. package/hooks/use-merge-value/index.js +1 -1
  71. package/hooks/use-mount/index.js +1 -1
  72. package/hooks/use-mouse/index.js +1 -1
  73. package/hooks/use-mutation-observer/index.js +1 -1
  74. package/hooks/use-mutation-observers/index.js +116 -0
  75. package/hooks/use-network/index.js +1 -1
  76. package/hooks/use-online-status/index.js +1 -1
  77. package/hooks/use-overflow-hidden/index.js +1 -1
  78. package/hooks/use-override-ref/index.js +1 -1
  79. package/hooks/use-pagination/index.js +1 -1
  80. package/hooks/use-persist-callback/index.js +1 -1
  81. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  82. package/hooks/use-previous/index.js +1 -1
  83. package/hooks/use-raf-interval/index.js +1 -1
  84. package/hooks/use-raf-state/index.js +1 -1
  85. package/hooks/use-raf-timeout/index.js +1 -1
  86. package/hooks/use-reactive/index.js +1 -1
  87. package/hooks/use-ref-latest/index.js +1 -1
  88. package/hooks/use-refs/index.js +1 -1
  89. package/hooks/use-request/index.js +1 -1
  90. package/hooks/use-request/src/Fetch.js +1 -1
  91. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  92. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  93. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  94. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  95. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  96. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  97. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  98. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  99. package/hooks/use-request/src/useRequest.js +1 -1
  100. package/hooks/use-request/src/useRequestImplement.js +1 -1
  101. package/hooks/use-request/src/utils/cache.js +1 -1
  102. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  103. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  104. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  105. package/hooks/use-request/src/utils/isOnline.js +1 -1
  106. package/hooks/use-request/src/utils/limit.js +1 -1
  107. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  108. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  109. package/hooks/use-reset-state/index.js +1 -1
  110. package/hooks/use-resize-observer/index.js +1 -1
  111. package/hooks/use-resize-observers/index.js +113 -0
  112. package/hooks/use-responsive/index.js +1 -1
  113. package/hooks/use-safe-state/index.js +1 -1
  114. package/hooks/use-scroll/index.js +1 -1
  115. package/hooks/use-selections/index.js +1 -1
  116. package/hooks/use-session-storage-state/index.js +1 -1
  117. package/hooks/use-set/index.js +1 -1
  118. package/hooks/use-set-state/index.js +1 -1
  119. package/hooks/use-size/index.js +1 -1
  120. package/hooks/use-state-callback/index.js +1 -1
  121. package/hooks/use-state-with-promise/index.js +1 -1
  122. package/hooks/use-text-selection/index.js +1 -1
  123. package/hooks/use-theme/index.js +1 -1
  124. package/hooks/use-throttle/index.js +1 -1
  125. package/hooks/use-throttle-effect/index.js +1 -1
  126. package/hooks/use-throttle-fn/index.js +1 -1
  127. package/hooks/use-timeout/index.js +1 -1
  128. package/hooks/use-title/index.js +1 -1
  129. package/hooks/use-toggle/index.js +1 -1
  130. package/hooks/use-tracked-effect/index.js +1 -1
  131. package/hooks/use-unmount/index.js +1 -1
  132. package/hooks/use-unmounted-ref/index.js +1 -1
  133. package/hooks/use-update/index.js +1 -1
  134. package/hooks/use-update-effect/index.js +1 -1
  135. package/hooks/use-update-layout-effect/index.js +1 -1
  136. package/hooks/use-url-state/index.js +1 -1
  137. package/hooks/use-virtual-list/index.js +1 -1
  138. package/hooks/use-watch/index.js +1 -1
  139. package/hooks/use-web-socket/index.js +1 -1
  140. package/hooks/use-why-did-you-update/index.js +1 -1
  141. package/hooks/use-window-size/index.js +1 -1
  142. package/hooks/useAsyncEffect.js +1 -1
  143. package/hooks/useBoolean.js +1 -1
  144. package/hooks/useClickAway.js +1 -1
  145. package/hooks/useComputedState.js +1 -1
  146. package/hooks/useControllableValue.js +1 -1
  147. package/hooks/useCookieState.js +1 -1
  148. package/hooks/useCountDown.js +1 -1
  149. package/hooks/useCounter.js +1 -1
  150. package/hooks/useCreate.js +1 -1
  151. package/hooks/useCreation.js +1 -1
  152. package/hooks/useDebounce.js +1 -1
  153. package/hooks/useDebounceEffect.js +1 -1
  154. package/hooks/useDebounceFn.js +1 -1
  155. package/hooks/useDeepCompareEffect.js +1 -1
  156. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  157. package/hooks/useDocumentVisibility.js +1 -1
  158. package/hooks/useDrag.js +1 -1
  159. package/hooks/useDrop.js +5 -3
  160. package/hooks/useEventListener.js +1 -1
  161. package/hooks/useEventTarget.js +1 -1
  162. package/hooks/useExternal.js +1 -1
  163. package/hooks/useFavicon.js +1 -1
  164. package/hooks/useFocusWithin.js +1 -1
  165. package/hooks/useForceUpdate.js +1 -1
  166. package/hooks/useFullscreen.js +1 -1
  167. package/hooks/useGetState.js +1 -1
  168. package/hooks/useHistoryTravel.js +1 -1
  169. package/hooks/useHover.js +1 -1
  170. package/hooks/useId.js +1 -1
  171. package/hooks/useInView.js +1 -1
  172. package/hooks/useInViewport.js +1 -1
  173. package/hooks/useInfiniteScroll.js +1 -1
  174. package/hooks/useIntersectionObserver.js +1 -1
  175. package/hooks/useIntersectionObservers.js +94 -0
  176. package/hooks/useInterval.js +1 -1
  177. package/hooks/useIsFirstRender.js +1 -1
  178. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  179. package/hooks/useKeyPress.js +1 -1
  180. package/hooks/useKeyboardEvent.js +1 -1
  181. package/hooks/useLatest.js +1 -1
  182. package/hooks/useListenWindowResize.js +1 -1
  183. package/hooks/useLocalStorageState.js +1 -1
  184. package/hooks/useLockFn.js +1 -1
  185. package/hooks/useLongPress.js +1 -1
  186. package/hooks/useMap.js +1 -1
  187. package/hooks/useMedia.js +1 -1
  188. package/hooks/useMemoizedFn.js +1 -1
  189. package/hooks/useMergeProps.js +1 -1
  190. package/hooks/useMergeValue.js +1 -1
  191. package/hooks/useMount.js +1 -1
  192. package/hooks/useMouse.js +1 -1
  193. package/hooks/useMutationObserver.js +1 -1
  194. package/hooks/useMutationObservers.js +94 -0
  195. package/hooks/useNetwork.js +1 -1
  196. package/hooks/useOnlineStatus.js +1 -1
  197. package/hooks/useOverflowHidden.js +1 -1
  198. package/hooks/useOverrideRef.js +1 -1
  199. package/hooks/usePagination.js +1 -1
  200. package/hooks/usePersistCallback.js +1 -1
  201. package/hooks/usePrefersColorSchemeDark.js +1 -1
  202. package/hooks/usePrevious.js +1 -1
  203. package/hooks/useRafInterval.js +1 -1
  204. package/hooks/useRafState.js +1 -1
  205. package/hooks/useRafTimeout.js +1 -1
  206. package/hooks/useReactive.js +1 -1
  207. package/hooks/useRefLatest.js +1 -1
  208. package/hooks/useRefs.js +1 -1
  209. package/hooks/useRequest.js +1 -1
  210. package/hooks/useResetState.js +1 -1
  211. package/hooks/useResizeObserver.js +1 -1
  212. package/hooks/useResizeObservers.js +94 -0
  213. package/hooks/useResponsive.js +1 -1
  214. package/hooks/useSafeState.js +1 -1
  215. package/hooks/useScroll.js +1 -1
  216. package/hooks/useSelections.js +1 -1
  217. package/hooks/useSessionStorageState.js +1 -1
  218. package/hooks/useSet.js +1 -1
  219. package/hooks/useSetState.js +1 -1
  220. package/hooks/useSize.js +1 -1
  221. package/hooks/useStateCallback.js +1 -1
  222. package/hooks/useStateWithPromise.js +1 -1
  223. package/hooks/useTextSelection.js +1 -1
  224. package/hooks/useTheme.js +1 -1
  225. package/hooks/useThrottle.js +1 -1
  226. package/hooks/useThrottleEffect.js +1 -1
  227. package/hooks/useThrottleFn.js +1 -1
  228. package/hooks/useTimeout.js +1 -1
  229. package/hooks/useTitle.js +1 -1
  230. package/hooks/useToggle.js +1 -1
  231. package/hooks/useTrackedEffect.js +1 -1
  232. package/hooks/useUnmount.js +1 -1
  233. package/hooks/useUnmountedRef.js +1 -1
  234. package/hooks/useUpdate.js +1 -1
  235. package/hooks/useUpdateEffect.js +1 -1
  236. package/hooks/useUpdateLayoutEffect.js +1 -1
  237. package/hooks/useUrlState.js +1 -1
  238. package/hooks/useVirtualList.js +1 -1
  239. package/hooks/useWatch.js +1 -1
  240. package/hooks/useWebSocket.js +1 -1
  241. package/hooks/useWhyDidYouUpdate.js +1 -1
  242. package/hooks/useWindowSize.js +1 -1
  243. package/hooks/utils/createEffectWithTarget.js +1 -1
  244. package/hooks/utils/depsAreSame.js +1 -1
  245. package/hooks/utils/depsEqual.js +1 -1
  246. package/hooks/utils/domTarget.js +1 -1
  247. package/hooks/utils/getDocumentOrShadow.js +1 -1
  248. package/hooks/utils/index.js +1 -1
  249. package/hooks/utils/isAppleDevice.js +1 -1
  250. package/hooks/utils/isBrowser.js +1 -1
  251. package/hooks/utils/isDev.js +1 -1
  252. package/hooks/utils/rect.js +1 -1
  253. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  254. package/hooks/utils/useEffectWithTarget.js +1 -1
  255. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  256. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  257. package/hooks/utils.js +1 -1
  258. package/icons/file/index.js +1 -1
  259. package/icons/file.js +1 -1
  260. package/index.js +1 -1
  261. package/package.json +1 -1
  262. package/progress/index.js +1 -1
  263. package/space/index.js +6 -2
  264. package/suspense-fallback-test/index.js +1 -1
  265. package/transition-group/CSSTransition.js +1 -1
  266. package/transition-group/PqbCSSTransition.js +1 -1
  267. package/transition-group/ReplaceTransition.js +1 -1
  268. package/transition-group/SwitchTransition.js +1 -1
  269. package/transition-group/Transition.js +1 -1
  270. package/transition-group/TransitionGroup.js +1 -1
  271. package/transition-group/TransitionGroupContext.js +1 -1
  272. package/transition-group/index.js +1 -1
  273. package/transition-group/utils/ChildMapping.js +1 -1
  274. package/types/hooks/index.d.ts +3 -0
  275. package/types/hooks/use-intersection-observers/index.d.ts +4 -0
  276. package/types/hooks/use-mutation-observers/index.d.ts +4 -0
  277. package/types/hooks/use-resize-observers/index.d.ts +4 -0
  278. package/types/utils/constant.d.ts +1 -1
  279. package/types/utils/index.d.ts +1 -0
  280. package/types/utils/is.d.ts +1 -1
  281. package/types/utils/resizeObserver.d.ts +1 -1
  282. package/types/utils/string.d.ts +2 -0
  283. package/utils/caseName.js +1 -1
  284. package/utils/className.js +1 -1
  285. package/utils/compute.js +1 -1
  286. package/utils/constant.js +8 -8
  287. package/utils/copy.js +1 -1
  288. package/utils/date.js +1 -1
  289. package/utils/dayjs.js +1 -1
  290. package/utils/dom.js +1 -1
  291. package/utils/emitter.js +1 -1
  292. package/utils/fileToURL.js +1 -1
  293. package/utils/fillNBSP.js +1 -1
  294. package/utils/findScrollParent.js +1 -1
  295. package/utils/getHighlightText.js +1 -1
  296. package/utils/getHotkeyHandler.js +1 -1
  297. package/utils/getStringLength.js +1 -1
  298. package/utils/include.js +1 -1
  299. package/utils/index.js +144 -142
  300. package/utils/intersectionObserver.js +1 -1
  301. package/utils/is.js +77 -77
  302. package/utils/keyboardCode.js +1 -1
  303. package/utils/lodash.js +1 -1
  304. package/utils/math.js +1 -1
  305. package/utils/mergeProps.js +1 -1
  306. package/utils/mergedToString.js +1 -1
  307. package/utils/mutationObserver.js +1 -1
  308. package/utils/omit.js +1 -1
  309. package/utils/pad.js +1 -1
  310. package/utils/pick.js +1 -1
  311. package/utils/pinyin.js +1 -1
  312. package/utils/react19Adapter.js +1 -1
  313. package/utils/reactDOM.js +1 -1
  314. package/utils/resizeObserver.js +7 -7
  315. package/utils/saveAs.js +1 -1
  316. package/utils/screenfull.js +1 -1
  317. package/utils/scrollIntoViewIfNeeded.js +1 -1
  318. package/utils/setDarkTheme.js +1 -1
  319. package/utils/setDir.js +1 -1
  320. package/utils/setPrimaryColor.js +1 -1
  321. package/utils/setTheme.js +1 -1
  322. package/utils/string.js +10 -0
  323. package/utils/style.js +1 -1
  324. package/utils/supportRef.js +1 -1
  325. package/utils/throttleByRaf.js +1 -1
  326. package/utils/throttleByRaf2.js +1 -1
  327. package/utils/tinycolor.js +1 -1
  328. package/utils/toArray.js +1 -1
  329. package/utils/tree.js +1 -1
  330. package/utils/tween.js +1 -1
  331. package/utils/uuid.js +1 -1
  332. package/utils/validate.js +1 -1
  333. package/utils/warning.js +1 -1
package/utils/is.js CHANGED
@@ -1,31 +1,31 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { isBrowser as f } from "@unicom-cloud/utils/constant/platform";
3
- import { isNullOrUndefined as p, isString as n, isFunction as c, isObjectLike as m } from "@unicom-cloud/utils/is";
4
- import { is32Bit as W, isArguments as h, isArray as k, isArrayBuffer as v, isArrayLike as B, isArrayLikeObject as w, isBlob as x, isBoolean as D, isBuffer as P, isColorValue as V, isDate as j, isElement as U, isEmpty as Y, isEmptyArray as q, isEmptyObject as I, isEmptyValue as J, isEqual as z, isEqualWith as G, isError as H, isEventTarget as K, isExist as Q, isFile as X, isFinite as Z, isFunction as ii, isInteger as ei, isJSON as ri, isLength as si, isMap as ti, isMatch as oi, isMatchWith as ni, isNaN as ai, isNative as fi, isNil as pi, isNull as ci, isNullOrUndefined as mi, isNumber as li, isObject as ui, isObjectLike as yi, isPlainObject as Ei, isPromise as Ri, isReadableStream as di, isRegExp as Ni, isSafeInteger as Si, isSet as Oi, isString as Ti, isSymbol as Ai, isTypedArray as bi, isUndefined as gi, isWeakMap as $i, isWeakSet as Fi, isWindow as _i } from "@unicom-cloud/utils/is";
5
- import { isDayjs as Mi } from "dayjs";
6
- import l, { isValidElement as a } from "react";
7
- import u from "react-dom";
8
- import { isForwardRef as y } from "react-is";
9
- const b = !f, [g, E] = [18, 19].map((i, e, s) => {
10
- const r = (l.version || u.version || "").match(/\d+/).toString();
3
+ import { isNullOrUndefined as p, isString as n, isEmptyArray as m, isFunction as u, isObjectLike as y } from "@unicom-cloud/utils/is";
4
+ import { is32Bit as h, isArguments as k, isArray as v, isArrayBuffer as B, isArrayLike as w, isArrayLikeObject as x, isBlob as D, isBoolean as P, isBuffer as V, isColorValue as j, isDate as U, isElement as Y, isEmpty as q, isEmptyArray as I, isEmptyObject as J, isEmptyValue as z, isEqual as G, isEqualWith as H, isError as K, isEventTarget as Q, isExist as X, isFile as Z, isFinite as ii, isFunction as ei, isInteger as ri, isJSON as si, isLength as ti, isMap as oi, isMatch as ni, isMatchWith as ai, isNaN as fi, isNative as pi, isNil as mi, isNull as ui, isNullOrUndefined as yi, isNumber as ci, isObject as li, isObjectLike as Ei, isPlainObject as Ri, isPromise as di, isReadableStream as Ni, isRegExp as Si, isSafeInteger as Ai, isSet as Oi, isString as Ti, isSymbol as bi, isTypedArray as gi, isUndefined as $i, isWeakMap as Fi, isWeakSet as _i, isWindow as Ci } from "@unicom-cloud/utils/is";
5
+ import { isDayjs as Li } from "dayjs";
6
+ import c, { isValidElement as a } from "react";
7
+ import l from "react-dom";
8
+ import { isForwardRef as E } from "react-is";
9
+ const g = !f, [$, R] = [18, 19].map((i, e, s) => {
10
+ const r = (c.version || l.version || "").match(/\d+/).toString();
11
11
  return i <= parseFloat(r);
12
12
  });
13
- function $(i, e) {
14
- return !!(p(i) || i === !1 || n(i) && (e ? i.trim() === "" : i === ""));
13
+ function F(i, e) {
14
+ return !!(p(i) || i === !1 || n(i) && (e ? i.trim() === "" : i === "") || m(i));
15
15
  }
16
- function R(i) {
17
- return i && a(i) && c(i.type);
18
- }
19
- function F(i) {
20
- return R(i) && !!i.type.prototype?.isReactComponent;
16
+ function d(i) {
17
+ return i && a(i) && u(i.type);
21
18
  }
22
19
  function _(i) {
23
- return a(i) && n(i.type);
20
+ return d(i) && !!i.type.prototype?.isReactComponent;
24
21
  }
25
22
  function C(i) {
26
- if (!E) return y(i);
23
+ return a(i) && n(i.type);
24
+ }
25
+ function M(i) {
26
+ if (!R) return E(i);
27
27
  const e = Symbol.for("react.element"), s = Symbol.for("react.transitional.element"), t = Symbol.for("react.forward_ref");
28
- if (m(i)) {
28
+ if (y(i)) {
29
29
  const r = i.$$typeof;
30
30
  if (r === e || r === s) {
31
31
  const o = i.type;
@@ -35,64 +35,64 @@ function C(i) {
35
35
  return !1;
36
36
  }
37
37
  export {
38
- W as is32Bit,
39
- h as isArguments,
40
- k as isArray,
41
- v as isArrayBuffer,
42
- B as isArrayLike,
43
- w as isArrayLikeObject,
44
- x as isBlob,
45
- D as isBoolean,
46
- P as isBuffer,
47
- F as isClassComponent,
48
- V as isColorValue,
49
- _ as isDOMElement,
50
- j as isDate,
51
- Mi as isDayjs,
52
- U as isElement,
53
- Y as isEmpty,
54
- q as isEmptyArray,
55
- I as isEmptyObject,
56
- $ as isEmptyReactNode,
57
- J as isEmptyValue,
58
- z as isEqual,
59
- G as isEqualWith,
60
- H as isError,
61
- K as isEventTarget,
62
- Q as isExist,
63
- X as isFile,
64
- Z as isFinite,
65
- C as isForwardRefReact,
66
- ii as isFunction,
67
- ei as isInteger,
68
- ri as isJSON,
69
- si as isLength,
70
- ti as isMap,
71
- oi as isMatch,
72
- ni as isMatchWith,
73
- ai as isNaN,
74
- fi as isNative,
75
- pi as isNil,
76
- ci as isNull,
77
- mi as isNullOrUndefined,
78
- li as isNumber,
79
- ui as isObject,
80
- yi as isObjectLike,
81
- Ei as isPlainObject,
82
- Ri as isPromise,
83
- g as isReact18,
84
- E as isReact19,
85
- R as isReactComponent,
86
- di as isReadableStream,
87
- Ni as isRegExp,
88
- Si as isSafeInteger,
89
- b as isServerRendering,
38
+ h as is32Bit,
39
+ k as isArguments,
40
+ v as isArray,
41
+ B as isArrayBuffer,
42
+ w as isArrayLike,
43
+ x as isArrayLikeObject,
44
+ D as isBlob,
45
+ P as isBoolean,
46
+ V as isBuffer,
47
+ _ as isClassComponent,
48
+ j as isColorValue,
49
+ C as isDOMElement,
50
+ U as isDate,
51
+ Li as isDayjs,
52
+ Y as isElement,
53
+ q as isEmpty,
54
+ I as isEmptyArray,
55
+ J as isEmptyObject,
56
+ F as isEmptyReactNode,
57
+ z as isEmptyValue,
58
+ G as isEqual,
59
+ H as isEqualWith,
60
+ K as isError,
61
+ Q as isEventTarget,
62
+ X as isExist,
63
+ Z as isFile,
64
+ ii as isFinite,
65
+ M as isForwardRefReact,
66
+ ei as isFunction,
67
+ ri as isInteger,
68
+ si as isJSON,
69
+ ti as isLength,
70
+ oi as isMap,
71
+ ni as isMatch,
72
+ ai as isMatchWith,
73
+ fi as isNaN,
74
+ pi as isNative,
75
+ mi as isNil,
76
+ ui as isNull,
77
+ yi as isNullOrUndefined,
78
+ ci as isNumber,
79
+ li as isObject,
80
+ Ei as isObjectLike,
81
+ Ri as isPlainObject,
82
+ di as isPromise,
83
+ $ as isReact18,
84
+ R as isReact19,
85
+ d as isReactComponent,
86
+ Ni as isReadableStream,
87
+ Si as isRegExp,
88
+ Ai as isSafeInteger,
89
+ g as isServerRendering,
90
90
  Oi as isSet,
91
91
  Ti as isString,
92
- Ai as isSymbol,
93
- bi as isTypedArray,
94
- gi as isUndefined,
95
- $i as isWeakMap,
96
- Fi as isWeakSet,
97
- _i as isWindow
92
+ bi as isSymbol,
93
+ gi as isTypedArray,
94
+ $i as isUndefined,
95
+ Fi as isWeakMap,
96
+ _i as isWeakSet,
97
+ Ci as isWindow
98
98
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import * as o from "@unicom-cloud/utils/constant/keyboardCode";
3
3
  export * from "@unicom-cloud/utils/constant/keyboardCode";
4
4
  export {
package/utils/lodash.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { default as a } from "lodash/assign";
3
3
  import { default as o } from "lodash/assignIn";
4
4
  import { default as s } from "lodash/at";
package/utils/math.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { default as e, div as m, default as s, minus as u, plus as d, times as f } from "@unicom-cloud/utils/math";
3
3
  export {
4
4
  e as default,
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  function u(f, i, l, s) {
3
3
  const c = i || {}, e = l || {}, o = f || {}, b = s ? new Set(s) : new Set(
4
4
  Object.keys(o).concat(Object.keys(c)).concat(Object.keys(e))
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import p from "react";
3
3
  import "./is.js";
4
4
  import { isPlainObject as i, isString as f, isNumber as m } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import s from "lodash/throttle";
3
3
  import "./is.js";
4
4
  import { isFunction as u } from "@unicom-cloud/utils/is";
package/utils/omit.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  function c(n, o) {
3
3
  const t = {
4
4
  ...n
package/utils/pad.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  function s(o, n, i = " ") {
3
3
  const t = String(o);
4
4
  if (!n)
package/utils/pick.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  function s(n, i) {
3
3
  const t = {};
4
4
  return i.forEach((a) => {
package/utils/pinyin.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { default as f, default as t } from "@unicom-cloud/utils/pinyin";
3
3
  export {
4
4
  f as default,
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { createRoot as o } from "react-dom/client";
3
3
  import { setCreateRoot as t } from "./reactDOM.js";
4
4
  t(o);
package/utils/reactDOM.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { Component as m } from "react";
3
3
  import o from "react-dom";
4
4
  import O from "react-dom/client";
@@ -1,11 +1,11 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import u from "lodash/throttle";
3
+ import { NOOP as l } from "./constant.js";
3
4
  import "./is.js";
4
- import { isFunction as l } from "@unicom-cloud/utils/is";
5
- function h(m, i) {
5
+ import { isFunction as d } from "@unicom-cloud/utils/is";
6
+ function v(m, i) {
6
7
  const n = [].concat(m).filter((e, a, s) => e instanceof Element);
7
- if (!(n.length && l(i))) return () => {
8
- };
8
+ if (!(n.length && d(i))) return l;
9
9
  let t;
10
10
  const o = u((...e) => {
11
11
  c(), t = window.requestAnimationFrame(() => {
@@ -28,6 +28,6 @@ function h(m, i) {
28
28
  };
29
29
  }
30
30
  export {
31
- h as default,
32
- h as resizeObserver
31
+ v as default,
32
+ v as resizeObserver
33
33
  };
package/utils/saveAs.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { default as f, default as s } from "@unicom-cloud/utils/file/saveAs";
3
3
  export {
4
4
  f as default,
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { default as l, default as a } from "@unicom-cloud/utils/screenfull";
3
3
  export {
4
4
  l as default,
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { getScrollMargins as d, compute as c } from "./compute.js";
3
3
  import { alignNearest as x, canOverflow as C, getFrameElement as F, getParentElement as H, isHiddenByFrame as j, isScrollable as E } from "./compute.js";
4
4
  import "./is.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { UI_PC_THEME_DARK_CLASS_NAME as i } from "@unicom-cloud/utils/constant/ui";
3
3
  import { CSS_VARIABLE_ELEMENT as n } from "./constant.js";
4
4
  const o = "dark";
package/utils/setDir.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { UI_PC_PREFIX as e } from "@unicom-cloud/utils/constant/ui.js";
3
3
  import { CSS_VARIABLE_ELEMENT as s } from "./constant.js";
4
4
  import "./is.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { UI_PC_PREFIX as y } from "@unicom-cloud/utils/constant/ui";
3
3
  import c from "@unicom-cloud/utils/tinycolor";
4
4
  import * as o from "@unicom-cloud/utils/ui-color";
package/utils/setTheme.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { UI_PC_PREFIX as m } from "@unicom-cloud/utils/constant/ui.js";
3
3
  import n from "@unicom-cloud/utils/tinycolor";
4
4
  import { CSS_VARIABLE_ELEMENT as p } from "./constant.js";
@@ -0,0 +1,10 @@
1
+ /* 2025-11-19 09:09:36 */
2
+ import { replaceEmptyWithHyphen as p } from "@unicom-cloud/utils/string";
3
+ import { isEmptyReactNode as r } from "./is.js";
4
+ function m(t) {
5
+ let e = t;
6
+ return r(e, !0) && (e = void 0), p(e);
7
+ }
8
+ export {
9
+ m as replaceEmptyWithHyphen
10
+ };
package/utils/style.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  const o = [
3
3
  "transform",
4
4
  "WebkitTransform",
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { isForwardRef as t, ForwardRef as f, Memo as o } from "react-is";
3
3
  import { isDOMElement as i, isForwardRefReact as u, isReactComponent as s, isClassComponent as p } from "./is.js";
4
4
  function n(r) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  function i(n, a = 1) {
3
3
  let e = null;
4
4
  function t(...l) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { throttleByRaf as r } from "./throttleByRaf.js";
3
3
  function e(t) {
4
4
  return r(t, 2);
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  export * from "@unicom-cloud/utils/tinycolor";
3
3
  import { default as e, default as f } from "@unicom-cloud/utils/tinycolor";
4
4
  export {
package/utils/toArray.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import s from "react";
3
3
  import { isFragment as f } from "react-is";
4
4
  import "./is.js";
package/utils/tree.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { default as a, findNodeBy as r, getChildWithParentBy as y, getItemBy as B, getItemBy2 as g, getItemBy3 as m, getItemByID as d, getLabelFromDictionaryByValue as i, searchTree as l, default as o } from "@unicom-cloud/utils/tree";
3
3
  export {
4
4
  a as default,
package/utils/tween.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { default as f, default as t, easing as d } from "@unicom-cloud/utils/tween";
3
3
  export {
4
4
  f as Tween,
package/utils/uuid.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { v4 as a, v4 as d } from "uuid";
3
3
  export {
4
4
  a as uuid,
package/utils/validate.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  import { ArrayValidator as l, BooleanValidator as t, CustomValidator as o, DefaultValidateMessage as d, NumberValidator as r, ObjectValidator as i, Schema as V, StringValidator as m, TypeValidator as c, defaultValidateLocale as u, enUSValidateLocale as f, mergeTemplate as s, default as g, zhCNValidateLocale as n } from "@unicom-cloud/utils/validate";
3
3
  export {
4
4
  l as ArrayValidator,
package/utils/warning.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-14 16:27:44 */
1
+ /* 2025-11-19 09:09:36 */
2
2
  function i(e, n, ...o) {
3
3
  if (process.env.NODE_ENV !== "production" && console && e)
4
4
  return console.error(