@unicom-cloud/ui-common 0.1.1
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.
- package/Development.js +10 -0
- package/Empty.js +14 -0
- package/Flex.js +14 -0
- package/Progress.js +8 -0
- package/Space.js +15 -0
- package/SuspenseFallbackTest.js +7 -0
- package/TransitionGroup.js +32 -0
- package/development/index.js +48 -0
- package/empty/index.js +52 -0
- package/flex/index.js +78 -0
- package/flex/interface.js +10 -0
- package/higher-order/index.js +5 -0
- package/higher-order/with-speech-synthesis/index.js +83 -0
- package/higher-order/withSpeechSynthesis.js +11 -0
- package/hooks/create-deep-compare-effect/index.js +10 -0
- package/hooks/create-update-effect/index.js +15 -0
- package/hooks/create-use-storage-state/index.js +79 -0
- package/hooks/createDeepCompareEffect.js +7 -0
- package/hooks/createUpdateEffect.js +6 -0
- package/hooks/createUseStorageState.js +12 -0
- package/hooks/index.js +197 -0
- package/hooks/use-async-effect/index.js +26 -0
- package/hooks/use-boolean/index.js +15 -0
- package/hooks/use-click-away/index.js +32 -0
- package/hooks/use-computed-state/index.js +12 -0
- package/hooks/use-controllable-value/index.js +27 -0
- package/hooks/use-cookie-state/index.js +21 -0
- package/hooks/use-count-down/index.js +37 -0
- package/hooks/use-counter/index.js +44 -0
- package/hooks/use-create/index.js +9 -0
- package/hooks/use-creation/index.js +14 -0
- package/hooks/use-debounce/index.js +14 -0
- package/hooks/use-debounce-effect/index.js +13 -0
- package/hooks/use-debounce-fn/index.js +31 -0
- package/hooks/use-deep-compare-effect/index.js +7 -0
- package/hooks/use-deep-compare-layout-effect/index.js +7 -0
- package/hooks/use-document-visibility/index.js +20 -0
- package/hooks/use-drag/index.js +47 -0
- package/hooks/use-drop/index.js +60 -0
- package/hooks/use-event-listener/index.js +37 -0
- package/hooks/use-event-target/index.js +21 -0
- package/hooks/use-external/index.js +65 -0
- package/hooks/use-favicon/index.js +18 -0
- package/hooks/use-focus-within/index.js +26 -0
- package/hooks/use-force-update/index.js +5 -0
- package/hooks/use-fullscreen/index.js +75 -0
- package/hooks/use-get-state/index.js +10 -0
- package/hooks/use-history-travel/index.js +79 -0
- package/hooks/use-hover/index.js +26 -0
- package/hooks/use-id/index.js +11 -0
- package/hooks/use-in-view/index.js +32 -0
- package/hooks/use-in-viewport/index.js +34 -0
- package/hooks/use-infinite-scroll/index.js +83 -0
- package/hooks/use-intersection-observer/index.js +25 -0
- package/hooks/use-interval/index.js +17 -0
- package/hooks/use-is-first-render/index.js +10 -0
- package/hooks/use-isomorphic-layout-effect/index.js +7 -0
- package/hooks/use-key-press/index.js +169 -0
- package/hooks/use-keyboard-event/index.js +17 -0
- package/hooks/use-latest/index.js +9 -0
- package/hooks/use-listen-window-resize/index.js +10 -0
- package/hooks/use-local-storage-state/index.js +9 -0
- package/hooks/use-lock-fn/index.js +23 -0
- package/hooks/use-long-press/index.js +59 -0
- package/hooks/use-map/index.js +31 -0
- package/hooks/use-media/index.js +16 -0
- package/hooks/use-memoized-fn/index.js +19 -0
- package/hooks/use-merge-props/index.js +18 -0
- package/hooks/use-merge-value/index.js +21 -0
- package/hooks/use-mount/index.js +13 -0
- package/hooks/use-mouse/index.js +50 -0
- package/hooks/use-mutation-observer/index.js +23 -0
- package/hooks/use-network/index.js +57 -0
- package/hooks/use-online-status/index.js +21 -0
- package/hooks/use-overflow-hidden/index.js +27 -0
- package/hooks/use-override-ref/index.js +15 -0
- package/hooks/use-pagination/index.js +49 -0
- package/hooks/use-persist-callback/index.js +9 -0
- package/hooks/use-prefers-color-scheme-dark/index.js +25 -0
- package/hooks/use-previous/index.js +10 -0
- package/hooks/use-raf-interval/index.js +36 -0
- package/hooks/use-raf-state/index.js +16 -0
- package/hooks/use-raf-timeout/index.js +35 -0
- package/hooks/use-reactive/index.js +38 -0
- package/hooks/use-ref-latest/index.js +5 -0
- package/hooks/use-refs/index.js +11 -0
- package/hooks/use-request/index.js +7 -0
- package/hooks/use-request/src/Fetch.js +93 -0
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +30 -0
- package/hooks/use-request/src/plugins/useCachePlugin.js +66 -0
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +34 -0
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +28 -0
- package/hooks/use-request/src/plugins/usePollingPlugin.js +37 -0
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +29 -0
- package/hooks/use-request/src/plugins/useRetryPlugin.js +28 -0
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +31 -0
- package/hooks/use-request/src/useRequest.js +26 -0
- package/hooks/use-request/src/useRequestImplement.js +54 -0
- package/hooks/use-request/src/utils/cache.js +20 -0
- package/hooks/use-request/src/utils/cachePromise.js +10 -0
- package/hooks/use-request/src/utils/cacheSubscribe.js +11 -0
- package/hooks/use-request/src/utils/isDocumentVisible.js +8 -0
- package/hooks/use-request/src/utils/isOnline.js +8 -0
- package/hooks/use-request/src/utils/limit.js +12 -0
- package/hooks/use-request/src/utils/subscribeFocus.js +19 -0
- package/hooks/use-request/src/utils/subscribeReVisible.js +18 -0
- package/hooks/use-reset-state/index.js +18 -0
- package/hooks/use-resize-observer/index.js +5 -0
- package/hooks/use-responsive/index.js +47 -0
- package/hooks/use-safe-state/index.js +12 -0
- package/hooks/use-scroll/index.js +44 -0
- package/hooks/use-selections/index.js +58 -0
- package/hooks/use-session-storage-state/index.js +9 -0
- package/hooks/use-set/index.js +23 -0
- package/hooks/use-set-state/index.js +17 -0
- package/hooks/use-size/index.js +41 -0
- package/hooks/use-state-callback/index.js +16 -0
- package/hooks/use-state-with-promise/index.js +36 -0
- package/hooks/use-text-selection/index.js +56 -0
- package/hooks/use-theme/index.js +36 -0
- package/hooks/use-throttle/index.js +14 -0
- package/hooks/use-throttle-effect/index.js +13 -0
- package/hooks/use-throttle-fn/index.js +31 -0
- package/hooks/use-timeout/index.js +17 -0
- package/hooks/use-title/index.js +18 -0
- package/hooks/use-toggle/index.js +17 -0
- package/hooks/use-tracked-effect/index.js +12 -0
- package/hooks/use-unmount/index.js +21 -0
- package/hooks/use-unmounted-ref/index.js +11 -0
- package/hooks/use-update/index.js +9 -0
- package/hooks/use-update-effect/index.js +7 -0
- package/hooks/use-update-layout-effect/index.js +7 -0
- package/hooks/use-url-state/index.js +60 -0
- package/hooks/use-virtual-list/index.js +83 -0
- package/hooks/use-watch/index.js +14 -0
- package/hooks/use-web-socket/index.js +74 -0
- package/hooks/use-why-did-you-update/index.js +20 -0
- package/hooks/use-window-size/index.js +40 -0
- package/hooks/useAsyncEffect.js +8 -0
- package/hooks/useBoolean.js +7 -0
- package/hooks/useClickAway.js +11 -0
- package/hooks/useComputedState.js +6 -0
- package/hooks/useControllableValue.js +10 -0
- package/hooks/useCookieState.js +10 -0
- package/hooks/useCountDown.js +10 -0
- package/hooks/useCounter.js +9 -0
- package/hooks/useCreate.js +6 -0
- package/hooks/useCreation.js +7 -0
- package/hooks/useDebounce.js +7 -0
- package/hooks/useDebounceEffect.js +8 -0
- package/hooks/useDebounceFn.js +12 -0
- package/hooks/useDeepCompareEffect.js +7 -0
- package/hooks/useDeepCompareLayoutEffect.js +7 -0
- package/hooks/useDocumentVisibility.js +8 -0
- package/hooks/useDrag.js +12 -0
- package/hooks/useDrop.js +9 -0
- package/hooks/useEventListener.js +10 -0
- package/hooks/useEventTarget.js +9 -0
- package/hooks/useExternal.js +6 -0
- package/hooks/useFavicon.js +6 -0
- package/hooks/useFocusWithin.js +7 -0
- package/hooks/useForceUpdate.js +5 -0
- package/hooks/useFullscreen.js +12 -0
- package/hooks/useGetState.js +7 -0
- package/hooks/useHistoryTravel.js +9 -0
- package/hooks/useHover.js +7 -0
- package/hooks/useId.js +8 -0
- package/hooks/useInView.js +7 -0
- package/hooks/useInViewport.js +10 -0
- package/hooks/useInfiniteScroll.js +13 -0
- package/hooks/useIntersectionObserver.js +10 -0
- package/hooks/useInterval.js +9 -0
- package/hooks/useIsFirstRender.js +6 -0
- package/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/hooks/useKeyPress.js +11 -0
- package/hooks/useKeyboardEvent.js +7 -0
- package/hooks/useLatest.js +6 -0
- package/hooks/useListenWindowResize.js +6 -0
- package/hooks/useLocalStorageState.js +7 -0
- package/hooks/useLockFn.js +6 -0
- package/hooks/useLongPress.js +9 -0
- package/hooks/useMap.js +7 -0
- package/hooks/useMedia.js +6 -0
- package/hooks/useMemoizedFn.js +9 -0
- package/hooks/useMergeProps.js +7 -0
- package/hooks/useMergeValue.js +9 -0
- package/hooks/useMount.js +9 -0
- package/hooks/useMouse.js +8 -0
- package/hooks/useMutationObserver.js +8 -0
- package/hooks/useNetwork.js +8 -0
- package/hooks/useOnlineStatus.js +6 -0
- package/hooks/useOverflowHidden.js +6 -0
- package/hooks/useOverrideRef.js +8 -0
- package/hooks/usePagination.js +9 -0
- package/hooks/usePersistCallback.js +6 -0
- package/hooks/usePrefersColorSchemeDark.js +7 -0
- package/hooks/usePrevious.js +6 -0
- package/hooks/useRafInterval.js +9 -0
- package/hooks/useRafState.js +7 -0
- package/hooks/useRafTimeout.js +9 -0
- package/hooks/useReactive.js +10 -0
- package/hooks/useRefLatest.js +5 -0
- package/hooks/useRefs.js +6 -0
- package/hooks/useRequest.js +7 -0
- package/hooks/useResetState.js +10 -0
- package/hooks/useResizeObserver.js +5 -0
- package/hooks/useResponsive.js +8 -0
- package/hooks/useSafeState.js +7 -0
- package/hooks/useScroll.js +9 -0
- package/hooks/useSelections.js +9 -0
- package/hooks/useSessionStorageState.js +7 -0
- package/hooks/useSet.js +7 -0
- package/hooks/useSetState.js +9 -0
- package/hooks/useSize.js +11 -0
- package/hooks/useStateCallback.js +6 -0
- package/hooks/useStateWithPromise.js +8 -0
- package/hooks/useTextSelection.js +8 -0
- package/hooks/useTheme.js +9 -0
- package/hooks/useThrottle.js +7 -0
- package/hooks/useThrottleEffect.js +8 -0
- package/hooks/useThrottleFn.js +12 -0
- package/hooks/useTimeout.js +9 -0
- package/hooks/useTitle.js +8 -0
- package/hooks/useToggle.js +6 -0
- package/hooks/useTrackedEffect.js +6 -0
- package/hooks/useUnmount.js +10 -0
- package/hooks/useUnmountedRef.js +6 -0
- package/hooks/useUpdate.js +6 -0
- package/hooks/useUpdateEffect.js +7 -0
- package/hooks/useUpdateLayoutEffect.js +7 -0
- package/hooks/useUrlState.js +12 -0
- package/hooks/useVirtualList.js +14 -0
- package/hooks/useWatch.js +9 -0
- package/hooks/useWebSocket.js +10 -0
- package/hooks/useWhyDidYouUpdate.js +6 -0
- package/hooks/useWindowSize.js +10 -0
- package/hooks/utils/createEffectWithTarget.js +23 -0
- package/hooks/utils/depsAreSame.js +12 -0
- package/hooks/utils/depsEqual.js +7 -0
- package/hooks/utils/domTarget.js +16 -0
- package/hooks/utils/getDocumentOrShadow.js +16 -0
- package/hooks/utils/index.js +5 -0
- package/hooks/utils/isAppleDevice.js +6 -0
- package/hooks/utils/isBrowser.js +6 -0
- package/hooks/utils/isDev.js +5 -0
- package/hooks/utils/rect.js +19 -0
- package/hooks/utils/useDeepCompareWithTarget.js +11 -0
- package/hooks/utils/useEffectWithTarget.js +7 -0
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +8 -0
- package/hooks/utils/useLayoutEffectWithTarget.js +7 -0
- package/hooks/utils.js +5 -0
- package/icons/file/index.js +59 -0
- package/icons/file.js +9 -0
- package/index.js +49 -0
- package/package.json +1 -0
- package/progress/index.js +153 -0
- package/space/index.js +77 -0
- package/style/animation.less +21 -0
- package/style/global.less +69 -0
- package/style/index.less +41 -0
- package/style/keyframes.less +48 -0
- package/style/normalize.less +0 -0
- package/style/override.less +0 -0
- package/style/style.less +2 -0
- package/style/variables.css +3 -0
- package/style/variables.less +0 -0
- package/style.css +1 -0
- package/suspense-fallback-test/index.js +17 -0
- package/transition-group/CSSTransition.js +91 -0
- package/transition-group/PqbCSSTransition.js +36 -0
- package/transition-group/ReplaceTransition.js +34 -0
- package/transition-group/SwitchTransition.js +102 -0
- package/transition-group/Transition.js +188 -0
- package/transition-group/TransitionGroup.js +50 -0
- package/transition-group/TransitionGroupContext.js +6 -0
- package/transition-group/index.js +32 -0
- package/transition-group/utils/ChildMapping.js +66 -0
- package/types/development/index.d.ts +8 -0
- package/types/development/interface.d.ts +22 -0
- package/types/empty/index.d.ts +5 -0
- package/types/empty/interface.d.ts +24 -0
- package/types/flex/index.d.ts +8 -0
- package/types/flex/interface.d.ts +73 -0
- package/types/higher-order/index.d.ts +1 -0
- package/types/higher-order/with-speech-synthesis/index.d.ts +7 -0
- package/types/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/hooks/create-deep-compare-effect/index.d.ts +5 -0
- package/types/hooks/create-update-effect/index.d.ts +4 -0
- package/types/hooks/create-use-storage-state/index.d.ts +11 -0
- package/types/hooks/index.d.ts +97 -0
- package/types/hooks/use-async-effect/index.d.ts +3 -0
- package/types/hooks/use-boolean/index.d.ts +7 -0
- package/types/hooks/use-click-away/index.d.ts +4 -0
- package/types/hooks/use-computed-state/index.d.ts +4 -0
- package/types/hooks/use-controllable-value/index.d.ts +16 -0
- package/types/hooks/use-cookie-state/index.d.ts +7 -0
- package/types/hooks/use-count-down/index.d.ts +17 -0
- package/types/hooks/use-counter/index.d.ts +18 -0
- package/types/hooks/use-create/index.d.ts +2 -0
- package/types/hooks/use-creation/index.d.ts +3 -0
- package/types/hooks/use-debounce/debounceOptions.d.ts +6 -0
- package/types/hooks/use-debounce/index.d.ts +3 -0
- package/types/hooks/use-debounce-effect/index.d.ts +4 -0
- package/types/hooks/use-debounce-fn/index.d.ts +8 -0
- package/types/hooks/use-deep-compare-effect/index.d.ts +3 -0
- package/types/hooks/use-deep-compare-layout-effect/index.d.ts +3 -0
- package/types/hooks/use-document-visibility/index.d.ts +3 -0
- package/types/hooks/use-drag/index.d.ts +13 -0
- package/types/hooks/use-drop/index.d.ts +15 -0
- package/types/hooks/use-event-listener/index.d.ts +17 -0
- package/types/hooks/use-event-target/index.d.ts +14 -0
- package/types/hooks/use-external/index.d.ts +20 -0
- package/types/hooks/use-favicon/index.d.ts +2 -0
- package/types/hooks/use-focus-within/index.d.ts +7 -0
- package/types/hooks/use-force-update/index.d.ts +16 -0
- package/types/hooks/use-fullscreen/index.d.ts +17 -0
- package/types/hooks/use-get-state/index.d.ts +9 -0
- package/types/hooks/use-history-travel/index.d.ts +10 -0
- package/types/hooks/use-hover/index.d.ts +8 -0
- package/types/hooks/use-id/index.d.ts +6 -0
- package/types/hooks/use-in-view/index.d.ts +11 -0
- package/types/hooks/use-in-viewport/index.d.ts +10 -0
- package/types/hooks/use-infinite-scroll/index.d.ts +15 -0
- package/types/hooks/use-infinite-scroll/types.d.ts +32 -0
- package/types/hooks/use-intersection-observer/index.d.ts +7 -0
- package/types/hooks/use-interval/index.d.ts +4 -0
- package/types/hooks/use-is-first-render/index.d.ts +2 -0
- package/types/hooks/use-isomorphic-layout-effect/index.d.ts +3 -0
- package/types/hooks/use-key-press/index.d.ts +14 -0
- package/types/hooks/use-keyboard-event/index.d.ts +8 -0
- package/types/hooks/use-latest/index.d.ts +2 -0
- package/types/hooks/use-listen-window-resize/index.d.ts +16 -0
- package/types/hooks/use-local-storage-state/index.d.ts +2 -0
- package/types/hooks/use-lock-fn/index.d.ts +2 -0
- package/types/hooks/use-long-press/index.d.ts +13 -0
- package/types/hooks/use-map/index.d.ts +8 -0
- package/types/hooks/use-media/index.d.ts +2 -0
- package/types/hooks/use-memoized-fn/index.d.ts +4 -0
- package/types/hooks/use-merge-props/index.d.ts +5 -0
- package/types/hooks/use-merge-value/index.d.ts +6 -0
- package/types/hooks/use-mount/index.d.ts +3 -0
- package/types/hooks/use-mouse/index.d.ts +17 -0
- package/types/hooks/use-mutation-observer/index.d.ts +3 -0
- package/types/hooks/use-network/index.d.ts +12 -0
- package/types/hooks/use-online-status/index.d.ts +2 -0
- package/types/hooks/use-overflow-hidden/index.d.ts +5 -0
- package/types/hooks/use-override-ref/index.d.ts +3 -0
- package/types/hooks/use-pagination/index.d.ts +3 -0
- package/types/hooks/use-pagination/types.d.ts +29 -0
- package/types/hooks/use-persist-callback/index.d.ts +2 -0
- package/types/hooks/use-prefers-color-scheme-dark/index.d.ts +2 -0
- package/types/hooks/use-previous/index.d.ts +3 -0
- package/types/hooks/use-raf-interval/index.d.ts +4 -0
- package/types/hooks/use-raf-state/index.d.ts +7 -0
- package/types/hooks/use-raf-timeout/index.d.ts +2 -0
- package/types/hooks/use-reactive/index.d.ts +2 -0
- package/types/hooks/use-ref-latest/index.d.ts +2 -0
- package/types/hooks/use-refs/index.d.ts +2 -0
- package/types/hooks/use-request/index.d.ts +4 -0
- package/types/hooks/use-request/src/Fetch.d.ts +20 -0
- package/types/hooks/use-request/src/plugins/useAutoRunPlugin.d.ts +3 -0
- package/types/hooks/use-request/src/plugins/useCachePlugin.d.ts +3 -0
- package/types/hooks/use-request/src/plugins/useDebouncePlugin.d.ts +3 -0
- package/types/hooks/use-request/src/plugins/useLoadingDelayPlugin.d.ts +3 -0
- package/types/hooks/use-request/src/plugins/usePollingPlugin.d.ts +3 -0
- package/types/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.d.ts +3 -0
- package/types/hooks/use-request/src/plugins/useRetryPlugin.d.ts +3 -0
- package/types/hooks/use-request/src/plugins/useThrottlePlugin.d.ts +3 -0
- package/types/hooks/use-request/src/types.d.ts +73 -0
- package/types/hooks/use-request/src/useRequest.d.ts +3 -0
- package/types/hooks/use-request/src/useRequestImplement.d.ts +3 -0
- package/types/hooks/use-request/src/utils/cache.d.ts +14 -0
- package/types/hooks/use-request/src/utils/cachePromise.d.ts +4 -0
- package/types/hooks/use-request/src/utils/cacheSubscribe.d.ts +4 -0
- package/types/hooks/use-request/src/utils/isDocumentVisible.d.ts +1 -0
- package/types/hooks/use-request/src/utils/isOnline.d.ts +2 -0
- package/types/hooks/use-request/src/utils/limit.d.ts +1 -0
- package/types/hooks/use-request/src/utils/subscribeFocus.d.ts +3 -0
- package/types/hooks/use-request/src/utils/subscribeReVisible.d.ts +3 -0
- package/types/hooks/use-reset-state/index.d.ts +4 -0
- package/types/hooks/use-resize-observer/index.d.ts +2 -0
- package/types/hooks/use-responsive/index.d.ts +5 -0
- package/types/hooks/use-safe-state/index.d.ts +7 -0
- package/types/hooks/use-scroll/index.d.ts +9 -0
- package/types/hooks/use-selections/index.d.ts +21 -0
- package/types/hooks/use-session-storage-state/index.d.ts +2 -0
- package/types/hooks/use-set/index.d.ts +6 -0
- package/types/hooks/use-set-state/index.d.ts +3 -0
- package/types/hooks/use-size/index.d.ts +7 -0
- package/types/hooks/use-state-callback/index.d.ts +5 -0
- package/types/hooks/use-state-with-promise/index.d.ts +2 -0
- package/types/hooks/use-text-selection/index.d.ts +14 -0
- package/types/hooks/use-theme/index.d.ts +16 -0
- package/types/hooks/use-throttle/index.d.ts +3 -0
- package/types/hooks/use-throttle/throttleOptions.d.ts +5 -0
- package/types/hooks/use-throttle-effect/index.d.ts +4 -0
- package/types/hooks/use-throttle-fn/index.d.ts +8 -0
- package/types/hooks/use-timeout/index.d.ts +2 -0
- package/types/hooks/use-title/index.d.ts +5 -0
- package/types/hooks/use-toggle/index.d.ts +10 -0
- package/types/hooks/use-tracked-effect/index.d.ts +4 -0
- package/types/hooks/use-unmount/index.d.ts +2 -0
- package/types/hooks/use-unmounted-ref/index.d.ts +2 -0
- package/types/hooks/use-update/index.d.ts +2 -0
- package/types/hooks/use-update-effect/index.d.ts +3 -0
- package/types/hooks/use-update-layout-effect/index.d.ts +3 -0
- package/types/hooks/use-url-state/index.d.ts +10 -0
- package/types/hooks/use-virtual-list/index.d.ts +13 -0
- package/types/hooks/use-watch/index.d.ts +3 -0
- package/types/hooks/use-web-socket/index.d.ts +26 -0
- package/types/hooks/use-why-did-you-update/index.d.ts +3 -0
- package/types/hooks/use-window-size/index.d.ts +18 -0
- package/types/hooks/utils/createEffectWithTarget.d.ts +4 -0
- package/types/hooks/utils/depsAreSame.d.ts +3 -0
- package/types/hooks/utils/depsEqual.d.ts +2 -0
- package/types/hooks/utils/domTarget.d.ts +6 -0
- package/types/hooks/utils/getDocumentOrShadow.d.ts +3 -0
- package/types/hooks/utils/index.d.ts +2 -0
- package/types/hooks/utils/isAppleDevice.d.ts +2 -0
- package/types/hooks/utils/isBrowser.d.ts +2 -0
- package/types/hooks/utils/isDev.d.ts +2 -0
- package/types/hooks/utils/rect.d.ts +4 -0
- package/types/hooks/utils/useDeepCompareWithTarget.d.ts +4 -0
- package/types/hooks/utils/useEffectWithTarget.d.ts +2 -0
- package/types/hooks/utils/useIsomorphicLayoutEffectWithTarget.d.ts +2 -0
- package/types/hooks/utils/useLayoutEffectWithTarget.d.ts +2 -0
- package/types/icons/file/index.d.ts +4 -0
- package/types/icons/file/interface.d.ts +20 -0
- package/types/index.d.ts +16 -0
- package/types/progress/index.d.ts +437 -0
- package/types/space/index.d.ts +7 -0
- package/types/space/interface.d.ts +53 -0
- package/types/suspense-fallback-test/index.d.ts +7 -0
- package/types/suspense-fallback-test/interface.d.ts +1 -0
- package/types/transition-group/CSSTransition.d.ts +98 -0
- package/types/transition-group/PqbCSSTransition.d.ts +4 -0
- package/types/transition-group/ReplaceTransition.d.ts +23 -0
- package/types/transition-group/SwitchTransition.d.ts +88 -0
- package/types/transition-group/Transition.d.ts +130 -0
- package/types/transition-group/TransitionGroup.d.ts +31 -0
- package/types/transition-group/TransitionGroupContext.d.ts +3 -0
- package/types/transition-group/index.d.ts +10 -0
- package/types/transition-group/utils/ChildMapping.d.ts +27 -0
- package/types/utils/caseName.d.ts +1 -0
- package/types/utils/className.d.ts +1 -0
- package/types/utils/compute.d.ts +100 -0
- package/types/utils/constant.d.ts +3 -0
- package/types/utils/copy.d.ts +3 -0
- package/types/utils/date.d.ts +1 -0
- package/types/utils/dayjs.d.ts +3 -0
- package/types/utils/dom.d.ts +27 -0
- package/types/utils/emitter.d.ts +1 -0
- package/types/utils/fileToURL.d.ts +1 -0
- package/types/utils/fillNBSP.d.ts +3 -0
- package/types/utils/findScrollParent.d.ts +2 -0
- package/types/utils/getHighlightText.d.ts +7 -0
- package/types/utils/getHotkeyHandler.d.ts +18 -0
- package/types/utils/getStringLength.d.ts +3 -0
- package/types/utils/include.d.ts +3 -0
- package/types/utils/index.d.ts +46 -0
- package/types/utils/intersectionObserver.d.ts +3 -0
- package/types/utils/is.d.ts +10 -0
- package/types/utils/keyboardCode.d.ts +4 -0
- package/types/utils/lodash.d.ts +60 -0
- package/types/utils/math.d.ts +1 -0
- package/types/utils/mergeProps.d.ts +3 -0
- package/types/utils/mergedToString.d.ts +4 -0
- package/types/utils/mutationObserver.d.ts +3 -0
- package/types/utils/omit.d.ts +3 -0
- package/types/utils/pad.d.ts +2 -0
- package/types/utils/pick.d.ts +6 -0
- package/types/utils/pinyin.d.ts +1 -0
- package/types/utils/react19Adapter.d.ts +1 -0
- package/types/utils/reactDOM.d.ts +34 -0
- package/types/utils/resizeObserver.d.ts +3 -0
- package/types/utils/saveAs.d.ts +1 -0
- package/types/utils/screenfull.d.ts +1 -0
- package/types/utils/scrollIntoViewIfNeeded.d.ts +12 -0
- package/types/utils/setDarkTheme.d.ts +4 -0
- package/types/utils/setDir.d.ts +3 -0
- package/types/utils/setPrimaryColor.d.ts +3 -0
- package/types/utils/setTheme.d.ts +3 -0
- package/types/utils/style.d.ts +3 -0
- package/types/utils/supportRef.d.ts +3 -0
- package/types/utils/throttleByRaf.d.ts +6 -0
- package/types/utils/throttleByRaf2.d.ts +6 -0
- package/types/utils/tinycolor.d.ts +2 -0
- package/types/utils/toArray.d.ts +13 -0
- package/types/utils/tree.d.ts +1 -0
- package/types/utils/tween.d.ts +1 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +1 -0
- package/types/utils/warning.d.ts +3 -0
- package/utils/caseName.js +6 -0
- package/utils/className.js +6 -0
- package/utils/compute.js +142 -0
- package/utils/constant.js +10 -0
- package/utils/copy.js +8 -0
- package/utils/date.js +2 -0
- package/utils/dayjs.js +23 -0
- package/utils/dom.js +63 -0
- package/utils/emitter.js +6 -0
- package/utils/fileToURL.js +6 -0
- package/utils/fillNBSP.js +10 -0
- package/utils/findScrollParent.js +18 -0
- package/utils/getHighlightText.js +45 -0
- package/utils/getHotkeyHandler.js +29 -0
- package/utils/getStringLength.js +11 -0
- package/utils/include.js +11 -0
- package/utils/index.js +334 -0
- package/utils/intersectionObserver.js +23 -0
- package/utils/is.js +98 -0
- package/utils/keyboardCode.js +7 -0
- package/utils/lodash.js +121 -0
- package/utils/math.js +10 -0
- package/utils/mergeProps.js +13 -0
- package/utils/mergedToString.js +16 -0
- package/utils/mutationObserver.js +21 -0
- package/utils/omit.js +13 -0
- package/utils/pad.js +19 -0
- package/utils/pick.js +19 -0
- package/utils/pinyin.js +6 -0
- package/utils/react19Adapter.js +4 -0
- package/utils/reactDOM.js +87 -0
- package/utils/resizeObserver.js +33 -0
- package/utils/saveAs.js +6 -0
- package/utils/screenfull.js +6 -0
- package/utils/scrollIntoViewIfNeeded.js +75 -0
- package/utils/setDarkTheme.js +28 -0
- package/utils/setDir.js +14 -0
- package/utils/setPrimaryColor.js +31 -0
- package/utils/setTheme.js +56 -0
- package/utils/style.js +40 -0
- package/utils/supportRef.js +10 -0
- package/utils/throttleByRaf.js +17 -0
- package/utils/throttleByRaf2.js +9 -0
- package/utils/tinycolor.js +7 -0
- package/utils/toArray.js +15 -0
- package/utils/tree.js +14 -0
- package/utils/tween.js +7 -0
- package/utils/uuid.js +6 -0
- package/utils/validate.js +18 -0
- package/utils/warning.js +12 -0
package/utils/index.js
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
2
|
+
import { default as a } from "@unicom-cloud/utils/case-name";
|
|
3
|
+
import { default as s } from "@unicom-cloud/utils/class-name";
|
|
4
|
+
import { CSS_VARIABLE_ELEMENT as i, NOOP as m } from "./constant.js";
|
|
5
|
+
import { default as d, default as u } from "@unicom-cloud/utils/clipboard-copy";
|
|
6
|
+
export * from "@unicom-cloud/utils/date";
|
|
7
|
+
import "./dayjs.js";
|
|
8
|
+
import { contains as c, getBodyContainer as g, getScrollElements as y, isScrollElement as h, off as S, on as E, parentContainsChildren as C } from "./dom.js";
|
|
9
|
+
import { default as B } from "@unicom-cloud/utils/emitter";
|
|
10
|
+
import { default as v } from "@unicom-cloud/utils/file/fileToURL";
|
|
11
|
+
import { fillNBSP as O } from "./fillNBSP.js";
|
|
12
|
+
import { getHighlightText as D } from "./getHighlightText.js";
|
|
13
|
+
import { getHotkeyHandler as R } from "./getHotkeyHandler.js";
|
|
14
|
+
import { getStringLength as k } from "./getStringLength.js";
|
|
15
|
+
import { include as w } from "./include.js";
|
|
16
|
+
import { intersectionObserver as M } from "./intersectionObserver.js";
|
|
17
|
+
import { isClassComponent as _, isDOMElement as j, isEmptyReactNode as F, isForwardRefReact as z, isReact18 as U, isReact19 as H, isReactComponent as q, isServerRendering as K } from "./is.js";
|
|
18
|
+
import { default as Y } from "lodash/assign";
|
|
19
|
+
import { default as Q } from "lodash/assignIn";
|
|
20
|
+
import { default as Z } from "lodash/at";
|
|
21
|
+
import { default as ee } from "lodash/camelCase";
|
|
22
|
+
import { default as re } from "lodash/capitalize";
|
|
23
|
+
import { default as ae } from "lodash/castArray";
|
|
24
|
+
import { default as se } from "lodash/chain";
|
|
25
|
+
import { default as ie } from "lodash/chunk";
|
|
26
|
+
import { default as pe } from "lodash/clone";
|
|
27
|
+
import { default as ue } from "lodash/cloneDeep";
|
|
28
|
+
import { default as ne } from "lodash/cloneDeepWith";
|
|
29
|
+
import { default as ge } from "lodash/cloneWith";
|
|
30
|
+
import { default as he } from "lodash/compact";
|
|
31
|
+
import { default as Ee } from "lodash/curry";
|
|
32
|
+
import { default as be } from "lodash/debounce";
|
|
33
|
+
import { default as Ne } from "lodash/defaults";
|
|
34
|
+
import { default as Ae } from "lodash/defaultsDeep";
|
|
35
|
+
import { default as Ve } from "lodash/defaultTo";
|
|
36
|
+
import { default as Ie } from "lodash/difference";
|
|
37
|
+
import { default as Te } from "lodash/escape";
|
|
38
|
+
import { default as Le } from "lodash/findKey";
|
|
39
|
+
import { default as We } from "lodash/flattenDeep";
|
|
40
|
+
import { default as Pe } from "lodash/flow";
|
|
41
|
+
import { default as je } from "lodash/get";
|
|
42
|
+
import { default as ze } from "lodash/groupBy";
|
|
43
|
+
import { default as He } from "lodash/has";
|
|
44
|
+
import { default as Ke } from "lodash/intersection";
|
|
45
|
+
import { default as Ye } from "lodash/invert";
|
|
46
|
+
import { default as Qe } from "lodash/invertBy";
|
|
47
|
+
import { default as Ze } from "lodash/kebabCase";
|
|
48
|
+
import { default as et } from "lodash/mean";
|
|
49
|
+
import { default as rt } from "lodash/memoize";
|
|
50
|
+
import { default as at } from "lodash/merge";
|
|
51
|
+
import { default as st } from "lodash/mergeWith";
|
|
52
|
+
import { default as it } from "lodash/orderBy";
|
|
53
|
+
import { default as pt } from "lodash/partition";
|
|
54
|
+
import { default as ut } from "lodash/pullAll";
|
|
55
|
+
import { default as nt } from "lodash/result";
|
|
56
|
+
import { default as gt } from "lodash/sample";
|
|
57
|
+
import { default as ht } from "lodash/sampleSize";
|
|
58
|
+
import { default as Et } from "lodash/set";
|
|
59
|
+
import { default as bt } from "lodash/setWith";
|
|
60
|
+
import { default as Nt } from "lodash/shuffle";
|
|
61
|
+
import { default as At } from "lodash/snakeCase";
|
|
62
|
+
import { default as Vt } from "lodash/startCase";
|
|
63
|
+
import { default as It } from "lodash/throttle";
|
|
64
|
+
import { default as Tt } from "lodash/toPath";
|
|
65
|
+
import { default as Lt } from "lodash/truncate";
|
|
66
|
+
import { default as Wt } from "lodash/union";
|
|
67
|
+
import { default as Pt } from "lodash/uniq";
|
|
68
|
+
import { default as jt } from "lodash/uniqueId";
|
|
69
|
+
import { default as zt } from "lodash/unset";
|
|
70
|
+
import { default as Ht } from "lodash/update";
|
|
71
|
+
import { default as Kt } from "lodash/updateWith";
|
|
72
|
+
import { default as Yt } from "lodash/upperCase";
|
|
73
|
+
import { default as Qt } from "lodash/upperFirst";
|
|
74
|
+
import { default as Zt } from "lodash/without";
|
|
75
|
+
import { default as er } from "lodash/xor";
|
|
76
|
+
import { default as rr } from "lodash/zip";
|
|
77
|
+
import { div as ar, default as fr, minus as sr, plus as lr, times as ir } from "@unicom-cloud/utils/math";
|
|
78
|
+
import { mergedToString as pr } from "./mergedToString.js";
|
|
79
|
+
import { mergeProps as ur } from "./mergeProps.js";
|
|
80
|
+
import { mutationObserver as nr } from "./mutationObserver.js";
|
|
81
|
+
import { omit as gr } from "./omit.js";
|
|
82
|
+
import { padEnd as hr, padStart as Sr } from "./pad.js";
|
|
83
|
+
import { pick as Cr, pickDataAttributes as br } from "./pick.js";
|
|
84
|
+
import { default as Nr } from "@unicom-cloud/utils/pinyin";
|
|
85
|
+
import { callbackOriginRef as Ar, findDOMNode as Or, render as Vr, setCreateRoot as Dr } from "./reactDOM.js";
|
|
86
|
+
import { resizeObserver as Rr } from "./resizeObserver.js";
|
|
87
|
+
import { default as kr } from "@unicom-cloud/utils/file/saveAs";
|
|
88
|
+
import { default as wr } from "@unicom-cloud/utils/screenfull";
|
|
89
|
+
import { getOptions as Mr, isCustomScrollBehavior as Pr, isInDocument as _r, isStandardScrollBehavior as jr, scrollIntoView as Fr, scrollIntoViewIfNeeded as zr, scrollIntoViewNative as Ur } from "./scrollIntoViewIfNeeded.js";
|
|
90
|
+
import { removeDarkTheme as qr, setDarkTheme as Kr } from "./setDarkTheme.js";
|
|
91
|
+
import { setDir as Yr } from "./setDir.js";
|
|
92
|
+
import { setPrimaryColor as Qr } from "./setPrimaryColor.js";
|
|
93
|
+
import { setTheme as Zr } from "./setTheme.js";
|
|
94
|
+
import { fixedWidth as eo, getStyle as to, setTransformStyle as ro } from "./style.js";
|
|
95
|
+
import { supportRef as ao } from "./supportRef.js";
|
|
96
|
+
import { throttleByRaf as so } from "./throttleByRaf.js";
|
|
97
|
+
export * from "@unicom-cloud/utils/tinycolor";
|
|
98
|
+
import { default as mo } from "@unicom-cloud/utils/tinycolor";
|
|
99
|
+
import { toArray as uo } from "./toArray.js";
|
|
100
|
+
import { findNodeBy as no, getChildWithParentBy as co, getItemBy as go, getItemBy2 as yo, getItemBy3 as ho, getItemByID as So, getLabelFromDictionaryByValue as Eo, searchTree as Co, default as bo } from "@unicom-cloud/utils/tree";
|
|
101
|
+
import { default as No, easing as vo } from "@unicom-cloud/utils/tween";
|
|
102
|
+
import { v4 as Oo, v4 as Vo } from "uuid";
|
|
103
|
+
import { ArrayValidator as Io, BooleanValidator as Ro, CustomValidator as To, DefaultValidateMessage as ko, NumberValidator as Lo, ObjectValidator as wo, Schema as Wo, StringValidator as Mo, TypeValidator as Po, defaultValidateLocale as _o, enUSValidateLocale as jo, mergeTemplate as Fo, default as zo, zhCNValidateLocale as Uo } from "@unicom-cloud/utils/validate";
|
|
104
|
+
import { warning as qo } from "./warning.js";
|
|
105
|
+
import * as t from "@unicom-cloud/utils/constant/keyboardCode";
|
|
106
|
+
import { alignNearest as Jo, canOverflow as Yo, compute as Go, getFrameElement as Qo, getParentElement as Xo, getScrollMargins as Zo, isHiddenByFrame as $o, isScrollable as ea } from "./compute.js";
|
|
107
|
+
import { UI_PC_KEY as ra, UI_PC_THEME_DARK_CLASS_NAME as oa } from "@unicom-cloud/utils/constant/ui";
|
|
108
|
+
import { default as fa, isDayjs as sa } from "dayjs";
|
|
109
|
+
import { default as ia, default as ma } from "@unicom-cloud/utils/dom-helpers/reflow";
|
|
110
|
+
import { is32Bit as da, isArguments as ua, isArray as xa, isArrayBuffer as na, isArrayLike as ca, isArrayLikeObject as ga, isBlob as ya, isBoolean as ha, isBuffer as Sa, isColorValue as Ea, isDate as Ca, isElement as ba, isEmpty as Ba, isEmptyArray as Na, isEmptyObject as va, isEmptyValue as Aa, isEqual as Oa, isEqualWith as Va, isError as Da, isEventTarget as Ia, isExist as Ra, isFile as Ta, isFinite as ka, isFunction as La, isInteger as wa, isJSON as Wa, isLength as Ma, isMap as Pa, isMatch as _a, isMatchWith as ja, isNaN as Fa, isNative as za, isNil as Ua, isNull as Ha, isNullOrUndefined as qa, isNumber as Ka, isObject as Ja, isObjectLike as Ya, isPlainObject as Ga, isPromise as Qa, isReadableStream as Xa, isRegExp as Za, isSafeInteger as $a, isSet as ef, isString as tf, isSymbol as rf, isTypedArray as of, isUndefined as af, isWeakMap as ff, isWeakSet as sf, isWindow as lf } from "@unicom-cloud/utils/is";
|
|
111
|
+
export {
|
|
112
|
+
Io as ArrayValidator,
|
|
113
|
+
Ro as BooleanValidator,
|
|
114
|
+
i as CSS_VARIABLE_ELEMENT,
|
|
115
|
+
To as CustomValidator,
|
|
116
|
+
ko as DefaultValidateMessage,
|
|
117
|
+
m as NOOP,
|
|
118
|
+
Lo as NumberValidator,
|
|
119
|
+
wo as ObjectValidator,
|
|
120
|
+
Wo as Schema,
|
|
121
|
+
Mo as StringValidator,
|
|
122
|
+
No as Tween,
|
|
123
|
+
Po as TypeValidator,
|
|
124
|
+
ra as UI_PC_KEY,
|
|
125
|
+
oa as UI_PC_THEME_DARK_CLASS_NAME,
|
|
126
|
+
Jo as alignNearest,
|
|
127
|
+
Y as assign,
|
|
128
|
+
Q as assignIn,
|
|
129
|
+
Z as at,
|
|
130
|
+
Ar as callbackOriginRef,
|
|
131
|
+
ee as camelCase,
|
|
132
|
+
Yo as canOverflow,
|
|
133
|
+
re as capitalize,
|
|
134
|
+
a as caseName,
|
|
135
|
+
ae as castArray,
|
|
136
|
+
se as chain,
|
|
137
|
+
ie as chunk,
|
|
138
|
+
s as className,
|
|
139
|
+
d as clipboardCopy,
|
|
140
|
+
pe as clone,
|
|
141
|
+
ue as cloneDeep,
|
|
142
|
+
ne as cloneDeepWith,
|
|
143
|
+
ge as cloneWith,
|
|
144
|
+
he as compact,
|
|
145
|
+
Go as compute,
|
|
146
|
+
c as contains,
|
|
147
|
+
u as copy,
|
|
148
|
+
Ee as curry,
|
|
149
|
+
fa as dayjs,
|
|
150
|
+
be as debounce,
|
|
151
|
+
Ve as defaultTo,
|
|
152
|
+
_o as defaultValidateLocale,
|
|
153
|
+
Ne as defaults,
|
|
154
|
+
Ae as defaultsDeep,
|
|
155
|
+
Ie as difference,
|
|
156
|
+
ar as div,
|
|
157
|
+
vo as easing,
|
|
158
|
+
B as emitter,
|
|
159
|
+
jo as enUSValidateLocale,
|
|
160
|
+
Te as escape,
|
|
161
|
+
v as fileToURL,
|
|
162
|
+
O as fillNBSP,
|
|
163
|
+
Or as findDOMNode,
|
|
164
|
+
Le as findKey,
|
|
165
|
+
no as findNodeBy,
|
|
166
|
+
eo as fixedWidth,
|
|
167
|
+
We as flattenDeep,
|
|
168
|
+
Pe as flow,
|
|
169
|
+
ia as forceReflow,
|
|
170
|
+
je as get,
|
|
171
|
+
g as getBodyContainer,
|
|
172
|
+
co as getChildWithParentBy,
|
|
173
|
+
Qo as getFrameElement,
|
|
174
|
+
D as getHighlightText,
|
|
175
|
+
R as getHotkeyHandler,
|
|
176
|
+
go as getItemBy,
|
|
177
|
+
yo as getItemBy2,
|
|
178
|
+
ho as getItemBy3,
|
|
179
|
+
So as getItemByID,
|
|
180
|
+
Eo as getLabelFromDictionaryByValue,
|
|
181
|
+
Mr as getOptions,
|
|
182
|
+
Xo as getParentElement,
|
|
183
|
+
y as getScrollElements,
|
|
184
|
+
Zo as getScrollMargins,
|
|
185
|
+
k as getStringLength,
|
|
186
|
+
to as getStyle,
|
|
187
|
+
ze as groupBy,
|
|
188
|
+
He as has,
|
|
189
|
+
w as include,
|
|
190
|
+
Ke as intersection,
|
|
191
|
+
M as intersectionObserver,
|
|
192
|
+
Ye as invert,
|
|
193
|
+
Qe as invertBy,
|
|
194
|
+
da as is32Bit,
|
|
195
|
+
ua as isArguments,
|
|
196
|
+
xa as isArray,
|
|
197
|
+
na as isArrayBuffer,
|
|
198
|
+
ca as isArrayLike,
|
|
199
|
+
ga as isArrayLikeObject,
|
|
200
|
+
ya as isBlob,
|
|
201
|
+
ha as isBoolean,
|
|
202
|
+
Sa as isBuffer,
|
|
203
|
+
_ as isClassComponent,
|
|
204
|
+
Ea as isColorValue,
|
|
205
|
+
Pr as isCustomScrollBehavior,
|
|
206
|
+
j as isDOMElement,
|
|
207
|
+
Ca as isDate,
|
|
208
|
+
sa as isDayjs,
|
|
209
|
+
ba as isElement,
|
|
210
|
+
Ba as isEmpty,
|
|
211
|
+
Na as isEmptyArray,
|
|
212
|
+
va as isEmptyObject,
|
|
213
|
+
F as isEmptyReactNode,
|
|
214
|
+
Aa as isEmptyValue,
|
|
215
|
+
Oa as isEqual,
|
|
216
|
+
Va as isEqualWith,
|
|
217
|
+
Da as isError,
|
|
218
|
+
Ia as isEventTarget,
|
|
219
|
+
Ra as isExist,
|
|
220
|
+
Ta as isFile,
|
|
221
|
+
ka as isFinite,
|
|
222
|
+
z as isForwardRefReact,
|
|
223
|
+
La as isFunction,
|
|
224
|
+
$o as isHiddenByFrame,
|
|
225
|
+
_r as isInDocument,
|
|
226
|
+
wa as isInteger,
|
|
227
|
+
Wa as isJSON,
|
|
228
|
+
Ma as isLength,
|
|
229
|
+
Pa as isMap,
|
|
230
|
+
_a as isMatch,
|
|
231
|
+
ja as isMatchWith,
|
|
232
|
+
Fa as isNaN,
|
|
233
|
+
za as isNative,
|
|
234
|
+
Ua as isNil,
|
|
235
|
+
Ha as isNull,
|
|
236
|
+
qa as isNullOrUndefined,
|
|
237
|
+
Ka as isNumber,
|
|
238
|
+
Ja as isObject,
|
|
239
|
+
Ya as isObjectLike,
|
|
240
|
+
Ga as isPlainObject,
|
|
241
|
+
Qa as isPromise,
|
|
242
|
+
U as isReact18,
|
|
243
|
+
H as isReact19,
|
|
244
|
+
q as isReactComponent,
|
|
245
|
+
Xa as isReadableStream,
|
|
246
|
+
Za as isRegExp,
|
|
247
|
+
$a as isSafeInteger,
|
|
248
|
+
h as isScrollElement,
|
|
249
|
+
ea as isScrollable,
|
|
250
|
+
K as isServerRendering,
|
|
251
|
+
ef as isSet,
|
|
252
|
+
jr as isStandardScrollBehavior,
|
|
253
|
+
tf as isString,
|
|
254
|
+
rf as isSymbol,
|
|
255
|
+
of as isTypedArray,
|
|
256
|
+
af as isUndefined,
|
|
257
|
+
ff as isWeakMap,
|
|
258
|
+
sf as isWeakSet,
|
|
259
|
+
lf as isWindow,
|
|
260
|
+
Ze as kebabCase,
|
|
261
|
+
t as keyboardCode,
|
|
262
|
+
fr as math,
|
|
263
|
+
et as mean,
|
|
264
|
+
rt as memoize,
|
|
265
|
+
at as merge,
|
|
266
|
+
ur as mergeProps,
|
|
267
|
+
Fo as mergeTemplate,
|
|
268
|
+
st as mergeWith,
|
|
269
|
+
pr as mergedToString,
|
|
270
|
+
sr as minus,
|
|
271
|
+
nr as mutationObserver,
|
|
272
|
+
S as off,
|
|
273
|
+
gr as omit,
|
|
274
|
+
E as on,
|
|
275
|
+
it as orderBy,
|
|
276
|
+
hr as padEnd,
|
|
277
|
+
Sr as padStart,
|
|
278
|
+
C as parentContainsChildren,
|
|
279
|
+
pt as partition,
|
|
280
|
+
Cr as pick,
|
|
281
|
+
br as pickDataAttributes,
|
|
282
|
+
Nr as pinyin,
|
|
283
|
+
lr as plus,
|
|
284
|
+
ut as pullAll,
|
|
285
|
+
ma as reflow,
|
|
286
|
+
qr as removeDarkTheme,
|
|
287
|
+
Vr as render,
|
|
288
|
+
Rr as resizeObserver,
|
|
289
|
+
nt as result,
|
|
290
|
+
gt as sample,
|
|
291
|
+
ht as sampleSize,
|
|
292
|
+
kr as saveAs,
|
|
293
|
+
wr as screenfull,
|
|
294
|
+
Fr as scrollIntoView,
|
|
295
|
+
zr as scrollIntoViewIfNeeded,
|
|
296
|
+
Ur as scrollIntoViewNative,
|
|
297
|
+
Co as searchTree,
|
|
298
|
+
Et as set,
|
|
299
|
+
Dr as setCreateRoot,
|
|
300
|
+
Kr as setDarkTheme,
|
|
301
|
+
Yr as setDir,
|
|
302
|
+
Qr as setPrimaryColor,
|
|
303
|
+
Zr as setTheme,
|
|
304
|
+
ro as setTransformStyle,
|
|
305
|
+
bt as setWith,
|
|
306
|
+
Nt as shuffle,
|
|
307
|
+
At as snakeCase,
|
|
308
|
+
Vt as startCase,
|
|
309
|
+
ao as supportRef,
|
|
310
|
+
It as throttle,
|
|
311
|
+
so as throttleByRaf,
|
|
312
|
+
ir as times,
|
|
313
|
+
mo as tinycolor,
|
|
314
|
+
uo as toArray,
|
|
315
|
+
Tt as toPath,
|
|
316
|
+
bo as tree,
|
|
317
|
+
Lt as truncate,
|
|
318
|
+
Wt as union,
|
|
319
|
+
Pt as uniq,
|
|
320
|
+
jt as uniqueId,
|
|
321
|
+
zt as unset,
|
|
322
|
+
Ht as update,
|
|
323
|
+
Kt as updateWith,
|
|
324
|
+
Yt as upperCase,
|
|
325
|
+
Qt as upperFirst,
|
|
326
|
+
Oo as uuid,
|
|
327
|
+
Vo as uuidv4,
|
|
328
|
+
zo as validate,
|
|
329
|
+
qo as warning,
|
|
330
|
+
Zt as without,
|
|
331
|
+
er as xor,
|
|
332
|
+
Uo as zhCNValidateLocale,
|
|
333
|
+
rr as zip
|
|
334
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
2
|
+
import a from "lodash/throttle";
|
|
3
|
+
import "./is.js";
|
|
4
|
+
import { isFunction as f } from "@unicom-cloud/utils/is";
|
|
5
|
+
function h(i, o) {
|
|
6
|
+
const t = [].concat(i).filter(Boolean);
|
|
7
|
+
if (!(t.length && f(o))) return () => {
|
|
8
|
+
};
|
|
9
|
+
const n = a((...e) => {
|
|
10
|
+
o(...e);
|
|
11
|
+
}, 227), r = new IntersectionObserver(n);
|
|
12
|
+
return t.forEach((e, c, s) => {
|
|
13
|
+
r.observe(e);
|
|
14
|
+
}), () => {
|
|
15
|
+
t.forEach((e, c, s) => {
|
|
16
|
+
r.unobserve(e);
|
|
17
|
+
}), r.disconnect(), n.cancel();
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
h as default,
|
|
22
|
+
h as intersectionObserver
|
|
23
|
+
};
|
package/utils/is.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
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();
|
|
11
|
+
return i <= parseFloat(r);
|
|
12
|
+
});
|
|
13
|
+
function $(i, e) {
|
|
14
|
+
return !!(p(i) || i === !1 || n(i) && (e ? i.trim() === "" : i === ""));
|
|
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;
|
|
21
|
+
}
|
|
22
|
+
function _(i) {
|
|
23
|
+
return a(i) && n(i.type);
|
|
24
|
+
}
|
|
25
|
+
function C(i) {
|
|
26
|
+
if (!E) return y(i);
|
|
27
|
+
const e = Symbol.for("react.element"), s = Symbol.for("react.transitional.element"), t = Symbol.for("react.forward_ref");
|
|
28
|
+
if (m(i)) {
|
|
29
|
+
const r = i.$$typeof;
|
|
30
|
+
if (r === e || r === s) {
|
|
31
|
+
const o = i.type;
|
|
32
|
+
return (o && o.$$typeof) === t;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
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,
|
|
90
|
+
Oi as isSet,
|
|
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
|
|
98
|
+
};
|
package/utils/lodash.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
2
|
+
import { default as a } from "lodash/assign";
|
|
3
|
+
import { default as o } from "lodash/assignIn";
|
|
4
|
+
import { default as s } from "lodash/at";
|
|
5
|
+
import { default as l } from "lodash/camelCase";
|
|
6
|
+
import { default as d } from "lodash/capitalize";
|
|
7
|
+
import { default as x } from "lodash/castArray";
|
|
8
|
+
import { default as n } from "lodash/chain";
|
|
9
|
+
import { default as h } from "lodash/chunk";
|
|
10
|
+
import { default as y } from "lodash/clone";
|
|
11
|
+
import { default as W } from "lodash/cloneDeep";
|
|
12
|
+
import { default as D } from "lodash/cloneDeepWith";
|
|
13
|
+
import { default as k } from "lodash/cloneWith";
|
|
14
|
+
import { default as q } from "lodash/compact";
|
|
15
|
+
import { default as w } from "lodash/curry";
|
|
16
|
+
import { default as I } from "lodash/debounce";
|
|
17
|
+
import { default as K } from "lodash/defaults";
|
|
18
|
+
import { default as S } from "lodash/defaultsDeep";
|
|
19
|
+
import { default as j } from "lodash/defaultTo";
|
|
20
|
+
import { default as G } from "lodash/difference";
|
|
21
|
+
import { default as J } from "lodash/escape";
|
|
22
|
+
import { default as M } from "lodash/findKey";
|
|
23
|
+
import { default as O } from "lodash/flattenDeep";
|
|
24
|
+
import { default as R } from "lodash/flow";
|
|
25
|
+
import { default as V } from "lodash/get";
|
|
26
|
+
import { default as Y } from "lodash/groupBy";
|
|
27
|
+
import { default as _ } from "lodash/has";
|
|
28
|
+
import { default as ee } from "lodash/intersection";
|
|
29
|
+
import { default as ae } from "lodash/invert";
|
|
30
|
+
import { default as oe } from "lodash/invertBy";
|
|
31
|
+
import { default as se } from "lodash/kebabCase";
|
|
32
|
+
import { default as le } from "lodash/mean";
|
|
33
|
+
import { default as de } from "lodash/memoize";
|
|
34
|
+
import { default as xe } from "lodash/merge";
|
|
35
|
+
import { default as ne } from "lodash/mergeWith";
|
|
36
|
+
import { default as he } from "lodash/orderBy";
|
|
37
|
+
import { default as ye } from "lodash/partition";
|
|
38
|
+
import { default as We } from "lodash/pullAll";
|
|
39
|
+
import { default as De } from "lodash/result";
|
|
40
|
+
import { default as ke } from "lodash/sample";
|
|
41
|
+
import { default as qe } from "lodash/sampleSize";
|
|
42
|
+
import { default as we } from "lodash/set";
|
|
43
|
+
import { default as Ie } from "lodash/setWith";
|
|
44
|
+
import { default as Ke } from "lodash/shuffle";
|
|
45
|
+
import { default as Se } from "lodash/snakeCase";
|
|
46
|
+
import { default as je } from "lodash/startCase";
|
|
47
|
+
import { default as Ge } from "lodash/throttle";
|
|
48
|
+
import { default as Je } from "lodash/toPath";
|
|
49
|
+
import { default as Me } from "lodash/truncate";
|
|
50
|
+
import { default as Oe } from "lodash/union";
|
|
51
|
+
import { default as Re } from "lodash/uniq";
|
|
52
|
+
import { default as Ve } from "lodash/uniqueId";
|
|
53
|
+
import { default as Ye } from "lodash/unset";
|
|
54
|
+
import { default as _e } from "lodash/update";
|
|
55
|
+
import { default as et } from "lodash/updateWith";
|
|
56
|
+
import { default as at } from "lodash/upperCase";
|
|
57
|
+
import { default as ot } from "lodash/upperFirst";
|
|
58
|
+
import { default as st } from "lodash/without";
|
|
59
|
+
import { default as lt } from "lodash/xor";
|
|
60
|
+
import { default as dt } from "lodash/zip";
|
|
61
|
+
export {
|
|
62
|
+
a as assign,
|
|
63
|
+
o as assignIn,
|
|
64
|
+
s as at,
|
|
65
|
+
l as camelCase,
|
|
66
|
+
d as capitalize,
|
|
67
|
+
x as castArray,
|
|
68
|
+
n as chain,
|
|
69
|
+
h as chunk,
|
|
70
|
+
y as clone,
|
|
71
|
+
W as cloneDeep,
|
|
72
|
+
D as cloneDeepWith,
|
|
73
|
+
k as cloneWith,
|
|
74
|
+
q as compact,
|
|
75
|
+
w as curry,
|
|
76
|
+
I as debounce,
|
|
77
|
+
j as defaultTo,
|
|
78
|
+
K as defaults,
|
|
79
|
+
S as defaultsDeep,
|
|
80
|
+
G as difference,
|
|
81
|
+
J as escape,
|
|
82
|
+
M as findKey,
|
|
83
|
+
O as flattenDeep,
|
|
84
|
+
R as flow,
|
|
85
|
+
V as get,
|
|
86
|
+
Y as groupBy,
|
|
87
|
+
_ as has,
|
|
88
|
+
ee as intersection,
|
|
89
|
+
ae as invert,
|
|
90
|
+
oe as invertBy,
|
|
91
|
+
se as kebabCase,
|
|
92
|
+
le as mean,
|
|
93
|
+
de as memoize,
|
|
94
|
+
xe as merge,
|
|
95
|
+
ne as mergeWith,
|
|
96
|
+
he as orderBy,
|
|
97
|
+
ye as partition,
|
|
98
|
+
We as pullAll,
|
|
99
|
+
De as result,
|
|
100
|
+
ke as sample,
|
|
101
|
+
qe as sampleSize,
|
|
102
|
+
we as set,
|
|
103
|
+
Ie as setWith,
|
|
104
|
+
Ke as shuffle,
|
|
105
|
+
Se as snakeCase,
|
|
106
|
+
je as startCase,
|
|
107
|
+
Ge as throttle,
|
|
108
|
+
Je as toPath,
|
|
109
|
+
Me as truncate,
|
|
110
|
+
Oe as union,
|
|
111
|
+
Re as uniq,
|
|
112
|
+
Ve as uniqueId,
|
|
113
|
+
Ye as unset,
|
|
114
|
+
_e as update,
|
|
115
|
+
et as updateWith,
|
|
116
|
+
at as upperCase,
|
|
117
|
+
ot as upperFirst,
|
|
118
|
+
st as without,
|
|
119
|
+
lt as xor,
|
|
120
|
+
dt as zip
|
|
121
|
+
};
|
package/utils/math.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
2
|
+
function u(f, i, l, s) {
|
|
3
|
+
const c = i || {}, e = l || {}, o = f || {}, b = s ? new Set(s) : new Set(
|
|
4
|
+
Object.keys(o).concat(Object.keys(c)).concat(Object.keys(e))
|
|
5
|
+
), t = {};
|
|
6
|
+
return b.forEach((n) => {
|
|
7
|
+
o[n] !== void 0 ? t[n] = o[n] : n in e ? t[n] = e[n] : n in c && (t[n] = c[n]);
|
|
8
|
+
}), t;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
u as default,
|
|
12
|
+
u as mergeProps
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
2
|
+
import p from "react";
|
|
3
|
+
import "./is.js";
|
|
4
|
+
import { isPlainObject as i, isString as f, isNumber as m } from "@unicom-cloud/utils/is";
|
|
5
|
+
const s = (r) => f(r) || m(r);
|
|
6
|
+
function u(r) {
|
|
7
|
+
const o = [""];
|
|
8
|
+
return i(r) && r.children && (r = r.children), p.Children.forEach(r, (e) => {
|
|
9
|
+
const t = o.length - 1, n = o[t];
|
|
10
|
+
s(e) && s(n) ? o[t] = `${n}${e}` : e && e.props && e.props.children && o.push(u(e.props.children));
|
|
11
|
+
}), o.join("");
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
u as default,
|
|
15
|
+
u as mergedToString
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
2
|
+
import s from "lodash/throttle";
|
|
3
|
+
import "./is.js";
|
|
4
|
+
import { isFunction as u } from "@unicom-cloud/utils/is";
|
|
5
|
+
function b(i, e) {
|
|
6
|
+
const r = [].concat(i).filter(Boolean);
|
|
7
|
+
if (!(r.length && u(e))) return () => {
|
|
8
|
+
};
|
|
9
|
+
const o = s((...t) => {
|
|
10
|
+
e(...t);
|
|
11
|
+
}, 227), n = new MutationObserver(o);
|
|
12
|
+
return r.forEach((t, c, a) => {
|
|
13
|
+
n.observe(t, { attributes: !0, childList: !0, subtree: !0 });
|
|
14
|
+
}), () => {
|
|
15
|
+
n.disconnect(), o.cancel();
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
b as default,
|
|
20
|
+
b as mutationObserver
|
|
21
|
+
};
|
package/utils/omit.js
ADDED
package/utils/pad.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* 2025-11-14 09:11:19 */
|
|
2
|
+
function s(o, n, i = " ") {
|
|
3
|
+
const t = String(o);
|
|
4
|
+
if (!n)
|
|
5
|
+
return t;
|
|
6
|
+
const r = t.length < n ? `${i}${t}` : t;
|
|
7
|
+
return r.length < n ? s(r, n, i) : r;
|
|
8
|
+
}
|
|
9
|
+
function u(o, n, i = " ") {
|
|
10
|
+
const t = String(o);
|
|
11
|
+
if (!n)
|
|
12
|
+
return t;
|
|
13
|
+
const r = t.length < n ? `${t}${i}` : t;
|
|
14
|
+
return r.length < n ? u(r, n, i) : r;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as padEnd,
|
|
18
|
+
s as padStart
|
|
19
|
+
};
|