@unicom-cloud/ui-common 0.1.15 → 0.1.17
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 +2 -2
- package/Empty.js +1 -1
- package/Flex.js +1 -1
- package/Motion.js +1 -1
- package/Progress.js +1 -1
- package/ResizeObserver.js +1 -1
- package/Space.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/Timer.js +1 -1
- package/TransitionGroup.js +1 -1
- package/development/index.js +9 -9
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/index.js +1 -1
- package/higher-order/withSpeechSynthesis.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +1 -1
- package/hooks/create-use-storage-state/index.js +1 -1
- package/hooks/createDeepCompareEffect.js +1 -1
- package/hooks/createUpdateEffect.js +1 -1
- package/hooks/createUseStorageState.js +1 -1
- package/hooks/index.js +13 -13
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-cookie-state/index.js +1 -1
- package/hooks/use-count-down/index.js +1 -1
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-debounce/index.js +1 -1
- package/hooks/use-debounce-effect/index.js +1 -1
- package/hooks/use-debounce-fn/index.js +1 -1
- package/hooks/use-deep-compare-effect/index.js +1 -1
- package/hooks/use-deep-compare-layout-effect/index.js +1 -1
- package/hooks/use-document-visibility/index.js +1 -1
- package/hooks/use-drag/index.js +1 -1
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-effect-event/index.js +17 -0
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-event-target/index.js +1 -1
- package/hooks/use-external/index.js +1 -1
- package/hooks/use-favicon/index.js +1 -1
- package/hooks/use-focus-within/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.js +1 -1
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-view/index.js +1 -1
- package/hooks/use-in-viewport/index.js +1 -1
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-key-press/index.js +54 -39
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +6 -6
- package/hooks/use-local-storage-state/index.js +1 -1
- package/hooks/use-lock-fn/index.js +1 -1
- package/hooks/use-long-press/index.js +1 -1
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +2 -2
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-move/index.js +2 -2
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-paste-image/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +18 -17
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +1 -1
- package/hooks/use-reactive/index.js +1 -1
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +1 -1
- package/hooks/use-request/src/Fetch.js +23 -26
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +1 -1
- package/hooks/use-request/src/utils/cache.js +1 -1
- package/hooks/use-request/src/utils/cachePromise.js +1 -1
- package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
- package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
- package/hooks/use-request/src/utils/isOnline.js +1 -1
- package/hooks/use-request/src/utils/limit.js +1 -1
- package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
- package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
- package/hooks/use-reset-state/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +1 -1
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-size/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-sync-state/index.js +1 -1
- package/hooks/use-text-selection/index.js +1 -1
- package/hooks/use-theme/index.js +1 -1
- package/hooks/use-throttle/index.js +1 -1
- package/hooks/use-throttle-effect/index.js +1 -1
- package/hooks/use-throttle-fn/index.js +1 -1
- package/hooks/use-timeout/index.js +1 -1
- package/hooks/use-title/index.js +1 -1
- package/hooks/use-toggle/index.js +1 -1
- package/hooks/use-tracked-effect/index.js +1 -1
- package/hooks/use-unmount/index.js +1 -1
- package/hooks/use-unmounted-ref/index.js +1 -1
- package/hooks/use-update/index.js +6 -5
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-url-state/index.js +1 -1
- package/hooks/use-virtual-list/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +1 -1
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.js +25 -22
- package/hooks/useAsyncEffect.js +1 -1
- package/hooks/useBoolean.js +1 -1
- package/hooks/useClickAway.js +1 -1
- package/hooks/useComputedState.js +1 -1
- package/hooks/useControllableValue.js +1 -1
- package/hooks/useCookieState.js +1 -1
- package/hooks/useCountDown.js +1 -1
- package/hooks/useCounter.js +1 -1
- package/hooks/useCreate.js +1 -1
- package/hooks/useCreation.js +1 -1
- package/hooks/useDebounce.js +1 -1
- package/hooks/useDebounceEffect.js +1 -1
- package/hooks/useDebounceFn.js +1 -1
- package/hooks/useDeepCompareEffect.js +1 -1
- package/hooks/useDeepCompareLayoutEffect.js +1 -1
- package/hooks/useDocumentVisibility.js +1 -1
- package/hooks/useDrag.js +1 -1
- package/hooks/useDrop.js +1 -1
- package/hooks/useEffectEvent.js +6 -0
- package/hooks/useEvent.js +1 -1
- package/hooks/useEventListener.js +1 -1
- package/hooks/useEventTarget.js +1 -1
- package/hooks/useExternal.js +1 -1
- package/hooks/useFavicon.js +1 -1
- package/hooks/useFocusWithin.js +1 -1
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useFullscreen.js +1 -1
- package/hooks/useGetState.js +1 -1
- package/hooks/useHistoryTravel.js +1 -1
- package/hooks/useHover.js +1 -1
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useInViewport.js +1 -1
- package/hooks/useInfiniteScroll.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useIntersectionObservers.js +4 -4
- package/hooks/useInterval.js +1 -1
- package/hooks/useIsFirstRender.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyPress.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useLatest.js +1 -1
- package/hooks/useListenWindowResize.js +1 -1
- package/hooks/useLocalStorageState.js +1 -1
- package/hooks/useLockFn.js +1 -1
- package/hooks/useLongPress.js +1 -1
- package/hooks/useMap.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/useMemo.js +1 -1
- package/hooks/useMemoizedFn.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useMobile.js +1 -1
- package/hooks/useMount.js +1 -1
- package/hooks/useMouse.js +1 -1
- package/hooks/useMove.js +1 -1
- package/hooks/useMutationObserver.js +1 -1
- package/hooks/useMutationObservers.js +4 -4
- package/hooks/useNetwork.js +1 -1
- package/hooks/useOnlineStatus.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePagination.js +1 -1
- package/hooks/usePasteImage.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/useRafInterval.js +1 -1
- package/hooks/useRafState.js +1 -1
- package/hooks/useRafTimeout.js +1 -1
- package/hooks/useReactive.js +1 -1
- package/hooks/useRefLatest.js +1 -1
- package/hooks/useRefs.js +5 -5
- package/hooks/useRequest.js +1 -1
- package/hooks/useResetState.js +1 -1
- package/hooks/useResizeObserver.js +1 -1
- package/hooks/useResizeObservers.js +2 -2
- package/hooks/useResponsive.js +1 -1
- package/hooks/useSafeState.js +1 -1
- package/hooks/useScroll.js +1 -1
- package/hooks/useSelections.js +1 -1
- package/hooks/useSessionStorageState.js +1 -1
- package/hooks/useSet.js +1 -1
- package/hooks/useSetState.js +1 -1
- package/hooks/useSize.js +1 -1
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useSyncState.js +1 -1
- package/hooks/useTextSelection.js +1 -1
- package/hooks/useTheme.js +1 -1
- package/hooks/useThrottle.js +1 -1
- package/hooks/useThrottleEffect.js +1 -1
- package/hooks/useThrottleFn.js +1 -1
- package/hooks/useTimeout.js +1 -1
- package/hooks/useTitle.js +1 -1
- package/hooks/useToggle.js +1 -1
- package/hooks/useTrackedEffect.js +1 -1
- package/hooks/useUnmount.js +1 -1
- package/hooks/useUnmountedRef.js +1 -1
- package/hooks/useUpdate.js +4 -3
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useUpdateLayoutEffect.js +1 -1
- package/hooks/useUrlState.js +1 -1
- package/hooks/useVirtualList.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWebSocket.js +1 -1
- package/hooks/useWhyDidYouUpdate.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/hooks/utils/createEffectWithTarget.js +1 -1
- package/hooks/utils/depsAreSame.js +1 -1
- package/hooks/utils/depsEqual.js +1 -1
- package/hooks/utils/domTarget.js +6 -7
- package/hooks/utils/getDocumentOrShadow.js +1 -1
- package/hooks/utils/index.js +1 -1
- package/hooks/utils/isAppleDevice.js +1 -1
- package/hooks/utils/isBrowser.js +1 -1
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +1 -1
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/hooks/utils.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file.js +1 -1
- package/index.js +316 -316
- package/motion/CSSMotion.js +2 -2
- package/motion/CSSMotionList.js +1 -1
- package/motion/context.js +1 -1
- package/motion/hooks/useDomMotionEvents.js +1 -1
- package/motion/hooks/useNextFrame.js +1 -1
- package/motion/hooks/useStatus.js +1 -1
- package/motion/hooks/useStepQueue.js +1 -1
- package/motion/index.js +1 -1
- package/motion/interface.js +1 -1
- package/motion/util/diff.js +1 -1
- package/motion/util/motion.js +1 -1
- package/package.json +1 -1
- package/progress/index.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/SingleObserver.js +2 -2
- package/resize-observer/index.js +3 -3
- package/resize-observer/observerUtil.js +1 -1
- package/space/index.js +2 -2
- package/suspense-fallback-test/index.js +1 -1
- package/timer/index.js +1 -1
- package/transition-group/CSSTransition.js +2 -2
- package/transition-group/ChildMapping.js +1 -1
- package/transition-group/PqbCSSTransition.js +2 -2
- package/transition-group/ReplaceTransition.js +2 -2
- package/transition-group/SwitchTransition.js +1 -1
- package/transition-group/Transition.js +2 -2
- package/transition-group/TransitionGroup.js +1 -1
- package/transition-group/TransitionGroupContext.js +1 -1
- package/transition-group/index.js +1 -1
- package/types/hooks/use-effect-event/index.d.ts +3 -0
- package/types/hooks/use-listen-window-resize/index.d.ts +1 -3
- package/types/hooks/use-update/index.d.ts +1 -1
- package/types/hooks/use-window-size/index.d.ts +1 -1
- package/types/hooks/utils/noop.d.ts +2 -0
- package/types/utils/emitter.d.ts +1 -1
- package/types/utils/setDarkTheme.d.ts +2 -2
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +3 -3
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +197 -197
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +10 -10
- package/utils/mutationObserver.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +2 -2
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +20 -19
- package/utils/setDir.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +2 -2
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
package/utils/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/* 2026-
|
|
2
|
-
import { callbackOriginRef as
|
|
1
|
+
/* 2026-03-02 09:26:44 */
|
|
2
|
+
import { callbackOriginRef as o } from "./callbackOriginRef.js";
|
|
3
3
|
import { callOrReturn as f } from "@unicom-cloud/utils/function";
|
|
4
4
|
import { default as l } from "@unicom-cloud/utils/case-name";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as d, default as p } from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { CSS_VARIABLE_ELEMENT as x, NOOP as n } from "./constant.js";
|
|
7
7
|
import { default as y, default as g } from "@unicom-cloud/utils/clipboard-copy";
|
|
8
|
-
import { convertTime as
|
|
8
|
+
import { convertTime as E, convertToDurationBasedOnTimeUnits as C, dateFormat as R, dayjsFormat as S } from "@unicom-cloud/utils/date";
|
|
9
9
|
import "./dayjs.js";
|
|
10
10
|
import { contains as A, getBodyContainer as B, getScrollElements as N, off as I, on as T, parentContainsChildren as D } from "./dom.js";
|
|
11
11
|
import { default as P } from "@unicom-cloud/utils/emitter";
|
|
12
12
|
import { fileRead as v } from "@unicom-cloud/utils/file/fileRead";
|
|
13
13
|
import { fileToDataURL as k } from "@unicom-cloud/utils/file/fileToDataURL";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { isElementByInstanceof as X, isEmptyReactNode as Z, isReact18 as $, isReact19 as ee, isReactClassComponent as te, isReactComponent as re, isReactComponentAndNotFragment as
|
|
14
|
+
import { default as M } from "./fillNBSP.js";
|
|
15
|
+
import { default as U } from "./findRootElement.js";
|
|
16
|
+
import { default as _ } from "./getHighlightText.js";
|
|
17
|
+
import { default as w } from "./getHotkeyHandler.js";
|
|
18
|
+
import { default as z } from "./getStringLength.js";
|
|
19
|
+
import { default as K } from "./include.js";
|
|
20
|
+
import { default as G } from "./intersectionObserver.js";
|
|
21
|
+
import { isElementByInstanceof as X, isEmptyReactNode as Z, isReact18 as $, isReact19 as ee, isReactClassComponent as te, isReactComponent as re, isReactComponentAndNotFragment as ae, isScrollElement as oe, isServerRendering as se } from "./is.js";
|
|
22
22
|
import { default as ie } from "lodash/assign";
|
|
23
23
|
import { default as me } from "lodash/assignIn";
|
|
24
|
-
import { default as
|
|
24
|
+
import { default as pe } from "lodash/at";
|
|
25
25
|
import { default as xe } from "lodash/camelCase";
|
|
26
26
|
import { default as ce } from "lodash/capitalize";
|
|
27
27
|
import { default as ge } from "lodash/castArray";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as Ee } from "lodash/chain";
|
|
29
29
|
import { default as Re } from "lodash/chunk";
|
|
30
30
|
import { default as be } from "lodash/clone";
|
|
31
31
|
import { default as Be } from "lodash/cloneDeep";
|
|
@@ -44,15 +44,15 @@ import { default as Ge } from "lodash/flattenDeep";
|
|
|
44
44
|
import { default as Xe } from "lodash/flow";
|
|
45
45
|
import { default as $e } from "lodash/get";
|
|
46
46
|
import { default as tt } from "lodash/groupBy";
|
|
47
|
-
import { default as
|
|
47
|
+
import { default as at } from "lodash/has";
|
|
48
48
|
import { default as st } from "lodash/intersection";
|
|
49
49
|
import { default as it } from "lodash/invert";
|
|
50
50
|
import { default as mt } from "lodash/invertBy";
|
|
51
|
-
import { default as
|
|
51
|
+
import { default as pt } from "lodash/kebabCase";
|
|
52
52
|
import { default as xt } from "lodash/mean";
|
|
53
53
|
import { default as ct } from "lodash/memoize";
|
|
54
54
|
import { default as gt } from "lodash/merge";
|
|
55
|
-
import { default as
|
|
55
|
+
import { default as Et } from "lodash/mergeWith";
|
|
56
56
|
import { default as Rt } from "lodash/orderBy";
|
|
57
57
|
import { default as bt } from "lodash/partition";
|
|
58
58
|
import { default as Bt } from "lodash/pullAll";
|
|
@@ -71,82 +71,83 @@ import { default as Gt } from "lodash/truncate";
|
|
|
71
71
|
import { default as Xt } from "lodash/union";
|
|
72
72
|
import { default as $t } from "lodash/uniq";
|
|
73
73
|
import { default as tr } from "lodash/uniqueId";
|
|
74
|
-
import { default as
|
|
74
|
+
import { default as ar } from "lodash/unset";
|
|
75
75
|
import { default as sr } from "lodash/update";
|
|
76
76
|
import { default as ir } from "lodash/updateWith";
|
|
77
77
|
import { default as mr } from "lodash/upperCase";
|
|
78
|
-
import { default as
|
|
78
|
+
import { default as pr } from "lodash/upperFirst";
|
|
79
79
|
import { default as xr } from "lodash/without";
|
|
80
80
|
import { default as cr } from "lodash/xor";
|
|
81
81
|
import { default as gr } from "lodash/zip";
|
|
82
|
-
import { div as
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
82
|
+
import { div as Er, default as Cr, minus as Rr, plus as Sr, times as br } from "@unicom-cloud/utils/math";
|
|
83
|
+
import { default as Br } from "./mergedToString.js";
|
|
84
|
+
import { default as Ir } from "./mergeProps.js";
|
|
85
|
+
import { default as Dr } from "./mutationObserver.js";
|
|
86
|
+
import { default as Pr } from "./omit.js";
|
|
87
87
|
import { padEnd as vr, padStart as Wr } from "./pad.js";
|
|
88
|
-
import {
|
|
88
|
+
import { default as Lr, pickDataAttributes as Mr } from "./pick.js";
|
|
89
89
|
import { default as Ur } from "@unicom-cloud/utils/pinyin";
|
|
90
90
|
import { composeRef as _r, fillRef as jr, getNodeRef as wr, getReactElementRef as qr, supportNodeRef as zr, supportRef as Jr, useComposeRef as Kr } from "./ref.js";
|
|
91
|
-
import {
|
|
91
|
+
import { default as Gr } from "./resizeObserver.js";
|
|
92
92
|
import { default as Xr } from "@unicom-cloud/utils/file/saveAs";
|
|
93
93
|
import { default as $r } from "@unicom-cloud/utils/screenfull";
|
|
94
|
-
import {
|
|
95
|
-
import { render as
|
|
96
|
-
import { removeDarkTheme as
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import { replaceEmptyWithHyphen as
|
|
101
|
-
import { fixedWidth as
|
|
102
|
-
import {
|
|
94
|
+
import { default as ta } from "./scrollIntoViewIfNeeded.js";
|
|
95
|
+
import { render as aa, default as oa } from "./setCreateRoot.js";
|
|
96
|
+
import { removeDarkTheme as fa, default as ia } from "./setDarkTheme.js";
|
|
97
|
+
import { default as ma } from "./setDir.js";
|
|
98
|
+
import { default as pa } from "./setPrimaryColor.js";
|
|
99
|
+
import { default as xa } from "./setTheme.js";
|
|
100
|
+
import { replaceEmptyWithHyphen as ca } from "./string.js";
|
|
101
|
+
import { fixedWidth as ga, getStyle as ha, setTransformStyle as Ea } from "./style.js";
|
|
102
|
+
import { default as Ra } from "./throttleByRaf.js";
|
|
103
103
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
104
|
-
import { default as
|
|
105
|
-
import {
|
|
106
|
-
import { findNodeBy as
|
|
107
|
-
import { default as
|
|
108
|
-
import { v4 as
|
|
109
|
-
import { PqbValidator as
|
|
110
|
-
import {
|
|
104
|
+
import { default as Aa } from "@unicom-cloud/utils/tinycolor";
|
|
105
|
+
import { default as Na } from "./toArray.js";
|
|
106
|
+
import { findNodeBy as Ta, getChildWithParentBy as Da, getItemBy as Oa, getItemByID as Pa, getLabelFromDictionaryByValue as Va, searchTree as va, default as Wa } from "@unicom-cloud/utils/tree";
|
|
107
|
+
import { default as La, easing as Ma } from "@unicom-cloud/utils/tween";
|
|
108
|
+
import { v4 as Ua, v4 as Fa } from "uuid";
|
|
109
|
+
import { PqbValidator as ja, Validator as wa, ValidatorArray as qa, ValidatorBase as za, ValidatorBoolean as Ja, ValidatorCustom as Ka, ValidatorNumber as Ya, ValidatorObject as Ga, ValidatorSchema as Qa, ValidatorString as Xa, ValidatorType as Za, validatorLocale as $a } from "@unicom-cloud/utils/validate";
|
|
110
|
+
import { default as to } from "./warning.js";
|
|
111
111
|
import * as t from "@unicom-cloud/utils/constant/keyboardCode";
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
112
|
+
import { HYPHEN as ao } from "@unicom-cloud/utils/constant/string";
|
|
113
|
+
import { UI_PC_KEY as so, UI_PC_THEME_DARK_CLASS_NAME as fo } from "@unicom-cloud/utils/constant/ui";
|
|
114
|
+
import { default as lo } from "@unicom-cloud/utils/dom-helpers/canUseDOM";
|
|
115
|
+
import { default as po, isDayjs as uo } from "dayjs";
|
|
116
|
+
import { default as no, default as co } from "@unicom-cloud/utils/dom-helpers/reflow";
|
|
117
|
+
import { default as go } from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
|
|
118
|
+
import { is32Bit as Eo, isAllChinese as Co, isArguments as Ro, isArray as So, isArrayBuffer as bo, isArrayLike as Ao, isArrayLikeObject as Bo, isAscii as No, isAsyncFunction as Io, isBase64 as To, isBigInt as Do, isBlob as Oo, isBoolean as Po, isBuffer as Vo, isChinese as vo, isColorValue as Wo, isDataURI as ko, isDate as Lo, isElement as Mo, isEmail as Ho, isEmpty as Uo, isEmptyArray as Fo, isEmptyObject as _o, isEmptyValue as jo, isEqual as wo, isEqualWith as qo, isError as zo, isEventTarget as Jo, isExist as Ko, isFile as Yo, isFinite as Go, isFullWidth as Qo, isFunction as Xo, isHSL as Zo, isHalfWidth as $o, isHash as es, isHexColor as ts, isIMEI as rs, isIP as as, isIPRange as os, isIdentityCard as ss, isInteger as fs, isJSON as is, isJSON_String as ls, isJWT as ms, isLength as ds, isMACAddress as ps, isMD5 as us, isMap as xs, isMatch as ns, isMatchWith as cs, isMimeType as ys, isMobilePhone as gs, isMobilePhoneLocales as hs, isNaN as Es, isNative as Cs, isNil as Rs, isNull as Ss, isNullOrUndefined as bs, isNumber as As, isObject as Bs, isObjectLike as Ns, isPlainObject as Is, isPort as Ts, isPromise as Ds, isReadableStream as Os, isRegExp as Ps, isRgbColor as Vs, isSafeInteger as vs, isSemVer as Ws, isSet as ks, isSlug as Ls, isString as Ms, isStrongPassword as Hs, isSymbol as Us, isTypedArray as Fs, isURL as _s, isUUID as js, isUndefined as ws, isVariableWidth as qs, isWeakMap as zs, isWeakSet as Js, isWindow as Ks } from "@unicom-cloud/utils/is";
|
|
119
119
|
export {
|
|
120
120
|
x as CSS_VARIABLE_ELEMENT,
|
|
121
|
-
|
|
121
|
+
P as Emitter,
|
|
122
|
+
ao as HYPHEN,
|
|
122
123
|
n as NOOP,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
124
|
+
ja as PqbValidator,
|
|
125
|
+
La as Tween,
|
|
126
|
+
so as UI_PC_KEY,
|
|
127
|
+
fo as UI_PC_THEME_DARK_CLASS_NAME,
|
|
128
|
+
wa as Validator,
|
|
129
|
+
qa as ValidatorArray,
|
|
130
|
+
za as ValidatorBase,
|
|
131
|
+
Ja as ValidatorBoolean,
|
|
132
|
+
Ka as ValidatorCustom,
|
|
133
|
+
Ya as ValidatorNumber,
|
|
134
|
+
Ga as ValidatorObject,
|
|
135
|
+
Qa as ValidatorSchema,
|
|
136
|
+
Xa as ValidatorString,
|
|
137
|
+
Za as ValidatorType,
|
|
137
138
|
ie as assign,
|
|
138
139
|
me as assignIn,
|
|
139
|
-
|
|
140
|
+
pe as at,
|
|
140
141
|
f as callOrReturn,
|
|
141
|
-
|
|
142
|
+
o as callbackOriginRef,
|
|
142
143
|
xe as camelCase,
|
|
143
|
-
|
|
144
|
+
lo as canUseDOM,
|
|
144
145
|
ce as capitalize,
|
|
145
146
|
l as caseName,
|
|
146
147
|
ge as castArray,
|
|
147
|
-
|
|
148
|
+
Ee as chain,
|
|
148
149
|
Re as chunk,
|
|
149
|
-
|
|
150
|
+
d as className,
|
|
150
151
|
y as clipboardCopy,
|
|
151
152
|
be as clone,
|
|
152
153
|
Be as cloneDeep,
|
|
@@ -155,156 +156,155 @@ export {
|
|
|
155
156
|
Pe as compact,
|
|
156
157
|
_r as composeRef,
|
|
157
158
|
A as contains,
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
E as convertTime,
|
|
160
|
+
C as convertToDurationBasedOnTimeUnits,
|
|
160
161
|
g as copy,
|
|
161
|
-
|
|
162
|
+
p as cs,
|
|
162
163
|
ve as curry,
|
|
163
164
|
R as dateFormat,
|
|
164
|
-
|
|
165
|
+
po as dayjs,
|
|
165
166
|
S as dayjsFormat,
|
|
166
167
|
ke as debounce,
|
|
167
168
|
_e as defaultTo,
|
|
168
169
|
Me as defaults,
|
|
169
170
|
Ue as defaultsDeep,
|
|
170
171
|
we as difference,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
P as emitter,
|
|
172
|
+
Er as div,
|
|
173
|
+
Ma as easing,
|
|
174
174
|
ze as escape,
|
|
175
175
|
v as fileRead,
|
|
176
176
|
k as fileToDataURL,
|
|
177
177
|
M as fillNBSP,
|
|
178
178
|
jr as fillRef,
|
|
179
179
|
Ke as findKey,
|
|
180
|
-
|
|
180
|
+
Ta as findNodeBy,
|
|
181
181
|
U as findRootElement,
|
|
182
|
-
|
|
182
|
+
ga as fixedWidth,
|
|
183
183
|
Ge as flattenDeep,
|
|
184
184
|
Xe as flow,
|
|
185
|
-
|
|
185
|
+
no as forceReflow,
|
|
186
186
|
$e as get,
|
|
187
187
|
B as getBodyContainer,
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
Da as getChildWithParentBy,
|
|
189
|
+
go as getElementCoordinates,
|
|
190
190
|
_ as getHighlightText,
|
|
191
191
|
w as getHotkeyHandler,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
Oa as getItemBy,
|
|
193
|
+
Pa as getItemByID,
|
|
194
|
+
Va as getLabelFromDictionaryByValue,
|
|
195
195
|
wr as getNodeRef,
|
|
196
196
|
qr as getReactElementRef,
|
|
197
197
|
N as getScrollElements,
|
|
198
198
|
z as getStringLength,
|
|
199
|
-
|
|
199
|
+
ha as getStyle,
|
|
200
200
|
tt as groupBy,
|
|
201
|
-
|
|
201
|
+
at as has,
|
|
202
202
|
K as include,
|
|
203
203
|
st as intersection,
|
|
204
204
|
G as intersectionObserver,
|
|
205
205
|
it as invert,
|
|
206
206
|
mt as invertBy,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
207
|
+
Eo as is32Bit,
|
|
208
|
+
Co as isAllChinese,
|
|
209
|
+
Ro as isArguments,
|
|
210
|
+
So as isArray,
|
|
211
|
+
bo as isArrayBuffer,
|
|
212
|
+
Ao as isArrayLike,
|
|
213
|
+
Bo as isArrayLikeObject,
|
|
214
|
+
No as isAscii,
|
|
215
|
+
Io as isAsyncFunction,
|
|
216
|
+
To as isBase64,
|
|
217
|
+
Do as isBigInt,
|
|
218
|
+
Oo as isBlob,
|
|
219
|
+
Po as isBoolean,
|
|
220
|
+
Vo as isBuffer,
|
|
221
|
+
vo as isChinese,
|
|
222
|
+
Wo as isColorValue,
|
|
223
|
+
ko as isDataURI,
|
|
224
|
+
Lo as isDate,
|
|
225
|
+
uo as isDayjs,
|
|
226
|
+
Mo as isElement,
|
|
227
227
|
X as isElementByInstanceof,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
Ho as isEmail,
|
|
229
|
+
Uo as isEmpty,
|
|
230
|
+
Fo as isEmptyArray,
|
|
231
|
+
_o as isEmptyObject,
|
|
232
232
|
Z as isEmptyReactNode,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
233
|
+
jo as isEmptyValue,
|
|
234
|
+
wo as isEqual,
|
|
235
|
+
qo as isEqualWith,
|
|
236
|
+
zo as isError,
|
|
237
|
+
Jo as isEventTarget,
|
|
238
|
+
Ko as isExist,
|
|
239
|
+
Yo as isFile,
|
|
240
|
+
Go as isFinite,
|
|
241
|
+
Qo as isFullWidth,
|
|
242
|
+
Xo as isFunction,
|
|
243
|
+
Zo as isHSL,
|
|
244
|
+
$o as isHalfWidth,
|
|
245
|
+
es as isHash,
|
|
246
|
+
ts as isHexColor,
|
|
247
|
+
rs as isIMEI,
|
|
248
|
+
as as isIP,
|
|
249
|
+
os as isIPRange,
|
|
250
|
+
ss as isIdentityCard,
|
|
251
|
+
fs as isInteger,
|
|
252
|
+
is as isJSON,
|
|
253
|
+
ls as isJSON_String,
|
|
254
|
+
ms as isJWT,
|
|
255
|
+
ds as isLength,
|
|
256
|
+
ps as isMACAddress,
|
|
257
|
+
us as isMD5,
|
|
258
|
+
xs as isMap,
|
|
259
|
+
ns as isMatch,
|
|
260
|
+
cs as isMatchWith,
|
|
261
|
+
ys as isMimeType,
|
|
262
|
+
gs as isMobilePhone,
|
|
263
|
+
hs as isMobilePhoneLocales,
|
|
264
|
+
Es as isNaN,
|
|
265
|
+
Cs as isNative,
|
|
266
|
+
Rs as isNil,
|
|
267
|
+
Ss as isNull,
|
|
268
|
+
bs as isNullOrUndefined,
|
|
269
|
+
As as isNumber,
|
|
270
|
+
Bs as isObject,
|
|
271
|
+
Ns as isObjectLike,
|
|
272
|
+
Is as isPlainObject,
|
|
273
|
+
Ts as isPort,
|
|
274
|
+
Ds as isPromise,
|
|
275
275
|
$ as isReact18,
|
|
276
276
|
ee as isReact19,
|
|
277
277
|
te as isReactClassComponent,
|
|
278
278
|
re as isReactComponent,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
ae as isReactComponentAndNotFragment,
|
|
280
|
+
Os as isReadableStream,
|
|
281
|
+
Ps as isRegExp,
|
|
282
|
+
Vs as isRgbColor,
|
|
283
|
+
vs as isSafeInteger,
|
|
284
|
+
oe as isScrollElement,
|
|
285
|
+
Ws as isSemVer,
|
|
286
286
|
se as isServerRendering,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
287
|
+
ks as isSet,
|
|
288
|
+
Ls as isSlug,
|
|
289
|
+
Ms as isString,
|
|
290
|
+
Hs as isStrongPassword,
|
|
291
|
+
Us as isSymbol,
|
|
292
|
+
Fs as isTypedArray,
|
|
293
|
+
_s as isURL,
|
|
294
|
+
js as isUUID,
|
|
295
|
+
ws as isUndefined,
|
|
296
|
+
qs as isVariableWidth,
|
|
297
|
+
zs as isWeakMap,
|
|
298
|
+
Js as isWeakSet,
|
|
299
|
+
Ks as isWindow,
|
|
300
|
+
pt as kebabCase,
|
|
301
301
|
t as keyboardCode,
|
|
302
|
-
|
|
302
|
+
Cr as math,
|
|
303
303
|
xt as mean,
|
|
304
304
|
ct as memoize,
|
|
305
305
|
gt as merge,
|
|
306
306
|
Ir as mergeProps,
|
|
307
|
-
|
|
307
|
+
Et as mergeWith,
|
|
308
308
|
Br as mergedToString,
|
|
309
309
|
Rr as minus,
|
|
310
310
|
Dr as mutationObserver,
|
|
@@ -321,25 +321,25 @@ export {
|
|
|
321
321
|
Ur as pinyin,
|
|
322
322
|
Sr as plus,
|
|
323
323
|
Bt as pullAll,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
324
|
+
co as reflow,
|
|
325
|
+
fa as removeDarkTheme,
|
|
326
|
+
aa as render,
|
|
327
|
+
ca as replaceEmptyWithHyphen,
|
|
328
328
|
Gr as resizeObserver,
|
|
329
329
|
It as result,
|
|
330
330
|
Dt as sample,
|
|
331
331
|
Pt as sampleSize,
|
|
332
332
|
Xr as saveAs,
|
|
333
333
|
$r as screenfull,
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
ta as scrollIntoViewIfNeeded,
|
|
335
|
+
va as searchTree,
|
|
336
336
|
vt as set,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
337
|
+
oa as setCreateRoot,
|
|
338
|
+
ia as setDarkTheme,
|
|
339
|
+
ma as setDir,
|
|
340
|
+
pa as setPrimaryColor,
|
|
341
|
+
xa as setTheme,
|
|
342
|
+
Ea as setTransformStyle,
|
|
343
343
|
kt as setWith,
|
|
344
344
|
Mt as shuffle,
|
|
345
345
|
Ut as snakeCase,
|
|
@@ -348,26 +348,26 @@ export {
|
|
|
348
348
|
zr as supportNodeRef,
|
|
349
349
|
Jr as supportRef,
|
|
350
350
|
zt as throttle,
|
|
351
|
-
|
|
351
|
+
Ra as throttleByRaf,
|
|
352
352
|
br as times,
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
Aa as tinycolor,
|
|
354
|
+
Na as toArray,
|
|
355
355
|
Kt as toPath,
|
|
356
|
-
|
|
356
|
+
Wa as tree,
|
|
357
357
|
Gt as truncate,
|
|
358
358
|
Xt as union,
|
|
359
359
|
$t as uniq,
|
|
360
360
|
tr as uniqueId,
|
|
361
|
-
|
|
361
|
+
ar as unset,
|
|
362
362
|
sr as update,
|
|
363
363
|
ir as updateWith,
|
|
364
364
|
mr as upperCase,
|
|
365
|
-
|
|
365
|
+
pr as upperFirst,
|
|
366
366
|
Kr as useComposeRef,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
367
|
+
Ua as uuid,
|
|
368
|
+
Fa as uuidv4,
|
|
369
|
+
$a as validatorLocale,
|
|
370
|
+
to as warning,
|
|
371
371
|
xr as without,
|
|
372
372
|
cr as xor,
|
|
373
373
|
gr as zip
|
package/utils/is.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2026-
|
|
1
|
+
/* 2026-03-02 09:26:44 */
|
|
2
2
|
import { isBrowser as o } from "@unicom-cloud/utils/constant/platform";
|
|
3
3
|
import { isNullOrUndefined as n, isString as a, isEmptyArray as c, isFunction as l } from "@unicom-cloud/utils/is";
|
|
4
4
|
import { is32Bit as B, isAllChinese as F, isArguments as w, isArray as L, isArrayBuffer as P, isArrayLike as H, isArrayLikeObject as U, isAscii as V, isAsyncFunction as j, isBase64 as x, isBigInt as D, isBlob as k, isBoolean as T, isBuffer as J, isChinese as q, isColorValue as X, isDataURI as Y, isDate as _, isElement as z, isEmail as G, isEmpty as K, isEmptyArray as Q, isEmptyObject as Z, isEmptyValue as $, isEqual as ii, isEqualWith as si, isError as ti, isEventTarget as ei, isExist as ri, isFile as oi, isFinite as ni, isFullWidth as ai, isFunction as ci, isHSL as li, isHalfWidth as ui, isHash as fi, isHexColor as di, isIMEI as mi, isIP as pi, isIPRange as yi, isIdentityCard as gi, isInteger as Ei, isJSON as hi, isJSON_String as Si, isJWT as Ri, isLength as Ai, isMACAddress as bi, isMD5 as Ci, isMap as Mi, isMatch as Ni, isMatchWith as Ii, isMimeType as Wi, isMobilePhone as vi, isMobilePhoneLocales as Oi, isNaN as Bi, isNative as Fi, isNil as wi, isNull as Li, isNullOrUndefined as Pi, isNumber as Hi, isObject as Ui, isObjectLike as Vi, isPlainObject as ji, isPort as xi, isPromise as Di, isReadableStream as ki, isRegExp as Ti, isRgbColor as Ji, isSafeInteger as qi, isSemVer as Xi, isSet as Yi, isSlug as _i, isString as zi, isStrongPassword as Gi, isSymbol as Ki, isTypedArray as Qi, isURL as Zi, isUUID as $i, isUndefined as is, isVariableWidth as ss, isWeakMap as ts, isWeakSet as es, isWindow as rs } from "@unicom-cloud/utils/is";
|
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.js
CHANGED
package/utils/math.js
CHANGED
package/utils/mergeProps.js
CHANGED
package/utils/mergedToString.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* 2026-
|
|
2
|
-
import
|
|
1
|
+
/* 2026-03-02 09:26:44 */
|
|
2
|
+
import s from "react";
|
|
3
3
|
import "./is.js";
|
|
4
|
-
import { isPlainObject as
|
|
5
|
-
const
|
|
6
|
-
function u(
|
|
7
|
-
const
|
|
8
|
-
return
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
}),
|
|
4
|
+
import { isPlainObject as p, isString as f, isNumber as m } from "@unicom-cloud/utils/is";
|
|
5
|
+
const i = (e) => f(e) || m(e);
|
|
6
|
+
function u(e) {
|
|
7
|
+
const r = [""];
|
|
8
|
+
return p(e) && e.children && (e = e.children), s.Children.forEach(e, (t) => {
|
|
9
|
+
const o = r.length - 1, n = r[o];
|
|
10
|
+
i(t) && i(n) ? r[o] = `${n}${t}` : t?.props?.children && r.push(u(t.props.children));
|
|
11
|
+
}), r.join("");
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
14
|
u as default,
|
package/utils/omit.js
CHANGED
package/utils/pad.js
CHANGED
package/utils/pick.js
CHANGED
package/utils/pinyin.js
CHANGED