@unicom-cloud/ui-common 0.1.30 → 0.1.32
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/.virtual/_rolldown/runtime.js +1 -1
- package/animation/Animation.js +32 -32
- package/animation/constants.js +1 -1
- package/animation/context.d.ts +3 -0
- package/animation/context.js +3 -3
- package/animation/index.d.ts +2 -0
- package/animation/index.js +10 -5
- package/animation/style/index.css +1 -0
- package/animation/style/index.d.ts +1 -0
- package/animation/style/index.js +3 -0
- package/border-beam/BorderBeam.js +30 -30
- package/border-beam/Effect.js +1 -1
- package/border-beam/constants.js +2 -2
- package/border-beam/context.d.ts +3 -0
- package/border-beam/context.js +8 -0
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.d.ts +2 -0
- package/border-beam/index.js +9 -4
- package/border-beam/style/index.css +1 -0
- package/border-beam/style/index.d.ts +1 -0
- package/border-beam/style/index.js +3 -0
- package/border-beam/utils.js +1 -1
- package/development/Development.js +32 -30
- package/development/constants.d.ts +0 -0
- package/development/constants.js +2 -0
- package/development/context.d.ts +3 -0
- package/development/context.js +7 -0
- package/development/index.d.ts +2 -0
- package/development/index.js +9 -4
- package/development/style/index.css +1 -0
- package/development/style/index.d.ts +1 -0
- package/development/style/index.js +3 -0
- package/empty/Empty.js +32 -30
- package/empty/constants.d.ts +0 -0
- package/empty/constants.js +2 -0
- package/empty/context.d.ts +3 -0
- package/empty/context.js +7 -0
- package/empty/index.d.ts +2 -0
- package/empty/index.js +9 -4
- package/empty/style/index.css +1 -0
- package/empty/style/index.d.ts +1 -0
- package/empty/style/index.js +3 -0
- package/flex/Flex.js +32 -35
- package/flex/constants.d.ts +0 -0
- package/flex/constants.js +2 -0
- package/flex/context.d.ts +3 -0
- package/flex/context.js +10 -0
- package/flex/index.d.ts +2 -0
- package/flex/index.js +9 -6
- package/flex/style/index.css +1 -0
- package/flex/style/index.d.ts +1 -0
- package/flex/style/index.js +3 -0
- package/flex/utils.d.ts +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/constants.d.ts +0 -0
- package/higher-order/with-speech-synthesis/context.d.ts +3 -0
- package/higher-order/with-speech-synthesis/context.js +7 -0
- package/higher-order/with-speech-synthesis/index.d.ts +2 -0
- package/higher-order/with-speech-synthesis/index.js +9 -4
- package/higher-order/with-speech-synthesis/interface.d.ts +2 -1
- package/higher-order/with-speech-synthesis/style/index.css +1 -0
- package/higher-order/with-speech-synthesis/style/index.d.ts +0 -1
- package/higher-order/with-speech-synthesis/style/index.js +3 -0
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +52 -48
- 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/index.d.ts +1 -0
- package/hooks/index.js +5 -4
- 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 +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-emitter/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-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 +2 -2
- 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 +1 -1
- package/hooks/use-keyboard-event/index.js +2 -2
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- 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.d.ts +2 -2
- package/hooks/use-merge-props/index.js +4 -4
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/index.js +2 -2
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +2 -2
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.d.ts +1 -1
- package/hooks/use-overflow-hidden/index.js +7 -4
- 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 +2 -2
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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-throttle-fn-with-raf/index.d.ts +6 -0
- package/hooks/use-throttle-fn-with-raf/index.js +25 -0
- 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 +1 -1
- 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 +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 +1 -1
- package/hooks/utils/getDocumentOrShadow.js +1 -1
- package/hooks/utils/index.js +1 -1
- package/hooks/utils/isAppleDevice.d.ts +1 -1
- package/hooks/utils/isAppleDevice.js +2 -2
- package/hooks/utils/isBrowser.d.ts +1 -1
- package/hooks/utils/isBrowser.js +2 -2
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/noop.d.ts +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/icons/file/File.js +60 -0
- package/icons/file/constants.d.ts +0 -0
- package/icons/file/context.d.ts +3 -0
- package/icons/file/context.js +7 -0
- package/icons/file/index.d.ts +2 -0
- package/icons/file/index.js +9 -4
- package/icons/file/style/index.css +1 -0
- package/icons/file/style/index.d.ts +0 -1
- package/icons/file/style/index.js +3 -0
- package/index.js +72 -71
- package/package.json +1 -1
- package/progress/Progress.js +2 -2
- package/progress/constants.d.ts +0 -0
- package/progress/constants.js +2 -0
- package/progress/index.d.ts +1 -28
- package/progress/index.js +5 -5
- package/progress/style/index.css +1 -0
- package/progress/style/index.d.ts +1 -0
- package/progress/style/index.js +3 -0
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +19 -17
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/constants.d.ts +0 -0
- package/resize-observer/constants.js +2 -0
- package/resize-observer/context.d.ts +3 -0
- package/resize-observer/context.js +7 -0
- package/resize-observer/index.d.ts +2 -0
- package/resize-observer/index.js +9 -6
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.d.ts +1 -0
- package/resize-observer/style/index.js +3 -0
- package/space/Space.js +44 -47
- package/space/constants.d.ts +0 -0
- package/space/constants.js +2 -0
- package/space/context.d.ts +3 -0
- package/space/context.js +10 -0
- package/space/index.d.ts +2 -0
- package/space/index.js +8 -5
- package/space/style/index.css +1 -0
- package/space/style/index.d.ts +1 -0
- package/space/style/index.js +3 -0
- package/style/index.less +5 -1
- package/style/variables-css.less +5 -0
- package/style/variables.less +0 -4
- package/style.css +1 -2
- package/suspense-fallback-test/SuspenseFallbackTest.js +13 -10
- package/suspense-fallback-test/constants.d.ts +0 -0
- package/suspense-fallback-test/constants.js +2 -0
- package/suspense-fallback-test/context.d.ts +3 -0
- package/suspense-fallback-test/context.js +7 -0
- package/suspense-fallback-test/index.d.ts +2 -0
- package/suspense-fallback-test/index.js +9 -4
- package/suspense-fallback-test/style/index.css +1 -0
- package/suspense-fallback-test/style/index.d.ts +1 -0
- package/suspense-fallback-test/style/index.js +3 -0
- package/test.js +1 -1
- package/timer/Timer.js +28 -26
- package/timer/constants.d.ts +0 -0
- package/timer/constants.js +2 -0
- package/timer/context.d.ts +3 -0
- package/timer/context.js +7 -0
- package/timer/index.d.ts +2 -0
- package/timer/index.js +9 -4
- package/timer/style/index.css +1 -0
- package/timer/style/index.d.ts +1 -0
- package/timer/style/index.js +3 -0
- package/transition/Transition.d.ts +1 -0
- package/transition/Transition.js +46 -43
- package/transition/TransitionCSS.js +1 -1
- package/transition/TransitionGroup.js +1 -1
- package/transition/TransitionStyle.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.d.ts +2 -0
- package/transition/context.js +5 -5
- package/transition/index.d.ts +3 -1
- package/transition/index.js +8 -6
- package/transition/style/index.css +1 -0
- package/transition/style/index.d.ts +1 -0
- package/transition/style/index.js +3 -0
- package/transition/utils.js +1 -1
- package/typewriter/Typewriter.js +35 -37
- package/typewriter/constants.d.ts +0 -0
- package/typewriter/constants.js +2 -0
- package/typewriter/context.d.ts +3 -0
- package/typewriter/context.js +10 -0
- package/typewriter/index.d.ts +2 -0
- package/typewriter/index.js +9 -4
- package/typewriter/style/index.css +1 -0
- package/typewriter/style/index.d.ts +1 -0
- package/typewriter/style/index.js +3 -0
- 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.d.ts → constants.d.ts} +1 -1
- package/utils/{constant.js → constants.js} +3 -3
- package/utils/copy.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.d.ts +1 -0
- package/utils/document.js +4 -0
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- 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/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +2 -2
- package/utils/index.js +48 -48
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +2 -2
- package/utils/keyboardCode.d.ts +2 -2
- package/utils/keyboardCode.js +3 -3
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.d.ts +1 -1
- package/utils/mergeProps.js +6 -4
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +1 -0
- package/utils/names.js +2 -2
- package/utils/object.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 +1 -1
- package/utils/reactNode.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +2 -2
- 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 +3 -3
- package/utils/setDir.js +3 -3
- package/utils/setPrimaryColor.js +3 -3
- package/utils/setTheme.js +3 -3
- package/utils/string.d.ts +1 -1
- package/utils/string.js +2 -2
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.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 +2 -2
- package/version/index.js +8 -8
- package/.vite/license.md +0 -3
- package/.vite/manifest.json +0 -2750
- package/icons/file/IconFile.js +0 -56
- package/utils/throttleByRequestAnimationFrame.d.ts +0 -6
- package/utils/throttleByRequestAnimationFrame.js +0 -18
- /package/icons/file/{IconFile.d.ts → File.d.ts} +0 -0
package/utils/getStringLength.js
CHANGED
package/utils/include.js
CHANGED
package/utils/index.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ export * from './callbackOriginRef';
|
|
|
2
2
|
export * from './callOrReturn';
|
|
3
3
|
export * from './caseName';
|
|
4
4
|
export * from './className';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './constants';
|
|
6
6
|
export * from './copy';
|
|
7
7
|
export * from './css';
|
|
8
8
|
export * from './date';
|
|
9
9
|
export * from './dayjs';
|
|
10
|
+
export * from './document';
|
|
10
11
|
export * from './dom';
|
|
11
12
|
export * from './emitter';
|
|
12
13
|
export * from './file';
|
|
@@ -45,7 +46,6 @@ export * from './setPrimaryColor';
|
|
|
45
46
|
export * from './setTheme';
|
|
46
47
|
export * from './string';
|
|
47
48
|
export * from './style';
|
|
48
|
-
export * from './throttleByRequestAnimationFrame';
|
|
49
49
|
export * from './tinycolor';
|
|
50
50
|
export * from './toArray';
|
|
51
51
|
export * from './tree';
|
package/utils/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { __exportAll as ee, __reExport as te } from "../.virtual/_rolldown/runtime.js";
|
|
3
3
|
import { is32Bit as ne, isAllChinese as re, isArguments as e, isArray as t, isArrayAndNotEmpty as n, isArrayBuffer as r, isArrayEmpty as i, isArrayLike as a, isArrayLikeObject as o, isAscii as s, isAsyncFunction as c, isBase64 as l, isBigInt as u, isBlob as d, isBoolean as f, isBuffer as p, isChinese as m, isColorValue as h, isColorValue_ as g, isDOM as _, isDataURI as v, isDate as y, isDayjs as b, isElement as x, isElementByInstanceof as S, isEmail as C, isEmpty as w, isEmptyArray as T, isEmptyObject as E, isEmptyReactNode as D, isEmptyString as O, isEmptyValue as k, isEqual as A, isEqualWith as j, isError as M, isEventTarget as N, isExist as P, isFalse as F, isFile as I, isFinite as L, isFullWidth as R, isFunction as z, isHSL as B, isHTMLElement as V, isHalfWidth as H, isHash as U, isHexColor as W, isIMEI as G, isIP as K, isIPRange as q, isIdentityCard as J, isInteger as Y, isJSON as X, isJSON_String as ie, isJWT as ae, isLength as oe, isMACAddress as se, isMD5 as ce, isMap as le, isMatch as ue, isMatchWith as de, isMimeType as fe, isMobilePhone as pe, isMobilePhoneLocales as me, isNaN as he, isNative as ge, isNil as _e, isNonNullable as ve, isNotFound as ye, isNull as be, isNullOrUndefined as xe, isNumber as Se, isNumberOrString as Ce, isObject as we, isObjectLike as Te, isPlainObject as Ee, isPort as De, isPresent as Oe, isPrimitive as ke, isPromise as Ae, isReact18 as je, isReact19 as Me, isReactClassComponent as Ne, isReactComponent as Pe, isReactComponentAndNotFragment as Fe, isReadableStream as Ie, isRegExp as Le, isRgbColor as Re, isSVGElement as ze, isSafeInteger as Be, isScrollElement as Ve, isSemVer as He, isServerRendering as Ue, isSet as We, isSlug as Ge, isSparseArray as Ke, isString as qe, isStringAndExist as Je, isStringOrNumber as Ye, isStrongPassword as Xe, isSymbol as Ze, isThenable as Qe, isTrue as $e, isTypedArray as et, isURL as tt, isUUID as nt, isUndefined as rt, isUndefinedOrNull as it, isVariableWidth as at, isWeakMap as ot, isWeakSet as st, isWindow as ct, isZero as lt } from "./is.js";
|
|
4
4
|
import { object_exports as ut } from "./object.js";
|
|
5
5
|
import { composeRef as dt, fillRef as ft, getNodeRef as pt, getReactElementRef as mt, supportNodeRef as ht, supportRef as gt, useComposeRef as _t } from "./ref.js";
|
|
6
6
|
import vt from "./findRootElement.js";
|
|
7
7
|
import { canUseDOM as yt, contains as bt, focusAtEnd as xt, forceReflow as Z, getBodyContainer as St, getDOM as Ct, getElementCoordinates as wt, getScrollElements as Tt, off as Et, on as Dt, parentContainsChildren as Ot } from "./dom.js";
|
|
8
|
-
import { CSS_VARIABLE_ELEMENT as kt, DAYJS_DEFAULT_FORMAT as At, DAYJS_DEFAULT_FORMAT_WITH_TIME as jt, NOOP as Mt, PREFIX_CLASS as Nt, UI_PC_KEY as Pt, UI_PC_THEME_DARK_CLASS_NAME as Ft } from "./
|
|
8
|
+
import { CSS_VARIABLE_ELEMENT as kt, DAYJS_DEFAULT_FORMAT as At, DAYJS_DEFAULT_FORMAT_WITH_TIME as jt, NOOP as Mt, PREFIX_CLASS as Nt, UI_PC_KEY as Pt, UI_PC_THEME_DARK_CLASS_NAME as Ft } from "./constants.js";
|
|
9
9
|
import { assign as It, assignIn as Lt, at as Rt, camelCase as zt, capitalize as Bt, castArray as Vt, chain as Ht, chunk as Ut, clone as Wt, cloneDeep as Gt, cloneDeepWith as Kt, cloneWith as qt, compact as Jt, curry as Yt, debounce as Xt, defaultTo as Zt, defaults as Qt, defaultsDeep as $t, difference as Q, escape as en, findKey as tn, flattenDeep as nn, flow as rn, get as an, groupBy as on, has as sn, intersection as cn, invert as ln, invertBy as un, kebabCase as dn, mean as fn, memoize as pn, merge as mn, mergeWith as hn, noop as gn, omit as _n, omitBy as vn, orderBy as yn, partition as bn, pick as xn, pickBy as Sn, pullAll as Cn, result as wn, sample as Tn, sampleSize as En, set as Dn, setWith as On, shuffle as kn, snakeCase as An, sortBy as jn, startCase as Mn, throttle as Nn, toPath as Pn, truncate as Fn, union as In, uniq as Ln, uniqueId as Rn, unset as zn, update as Bn, updateWith as Vn, upperCase as Hn, upperFirst as Un, without as Wn, xor as Gn, zip as Kn } from "./lodash.js";
|
|
10
10
|
import qn from "./mergeProps.js";
|
|
11
11
|
import { callbackOriginRef as Jn } from "./callbackOriginRef.js";
|
|
@@ -16,6 +16,7 @@ import { clipboardCopy as $ } from "./copy.js";
|
|
|
16
16
|
import "./css.js";
|
|
17
17
|
import { convertTime as $n, convertToDurationBasedOnTimeUnits as er, dateFormat as tr, dayjsFormat as nr } from "./date.js";
|
|
18
18
|
import { dayjs as rr } from "./dayjs.js";
|
|
19
|
+
import "./document.js";
|
|
19
20
|
import { Emitter as ir } from "./emitter.js";
|
|
20
21
|
import "./file.js";
|
|
21
22
|
import { fileRead as ar } from "./fileRead.js";
|
|
@@ -46,26 +47,26 @@ import Fr from "./setPrimaryColor.js";
|
|
|
46
47
|
import Ir from "./setTheme.js";
|
|
47
48
|
import { HYPHEN as Lr, replaceEmptyWithHyphen as Rr } from "./string.js";
|
|
48
49
|
import { fixedWidth as zr, getStyle as Br, setTransformStyle as Vr } from "./style.js";
|
|
49
|
-
import Hr from "./
|
|
50
|
-
import
|
|
51
|
-
import Wr from "./
|
|
52
|
-
import {
|
|
53
|
-
import
|
|
54
|
-
import ei from "./
|
|
55
|
-
import {
|
|
56
|
-
import
|
|
57
|
-
import hi from "./
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import { COMPONENT_NAMES as vi } from "./names.js";
|
|
50
|
+
import { tinycolor as Hr } from "./tinycolor.js";
|
|
51
|
+
import Ur from "./toArray.js";
|
|
52
|
+
import { findNodeBy as Wr, getChildWithParentBy as Gr, getItemBy as Kr, getItemByID as qr, getLabelFromDictionaryByValue as Jr, searchTree as Yr, tree as Xr } from "./tree.js";
|
|
53
|
+
import { uuid as Zr, uuidv4 as Qr } from "./uuid.js";
|
|
54
|
+
import $r from "./tunnel.js";
|
|
55
|
+
import { Tween as ei, easing as ti } from "./tween.js";
|
|
56
|
+
import { PqbValidator as ni, Validator as ri, ValidatorArray as ii, ValidatorBase as ai, ValidatorBoolean as oi, ValidatorCustom as si, ValidatorNumber as ci, ValidatorObject as li, ValidatorSchema as ui, ValidatorString as di, ValidatorType as fi, validatorLocale as pi } from "./validate.js";
|
|
57
|
+
import mi from "./warning.js";
|
|
58
|
+
import { pinyin_exports as hi } from "./pinyin.js";
|
|
59
|
+
import { keyboardCode as gi } from "./keyboardCode.js";
|
|
60
|
+
import { COMPONENT_NAMES as _i } from "./names.js";
|
|
61
61
|
export * from "@unicom-cloud/utils/is";
|
|
62
62
|
export * from "@unicom-cloud/utils/object";
|
|
63
63
|
export * from "@unicom-cloud/utils/css";
|
|
64
|
+
export * from "@unicom-cloud/utils/document";
|
|
64
65
|
export * from "@unicom-cloud/utils/file";
|
|
65
66
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
66
67
|
//#region components/common/utils/index.ts
|
|
67
|
-
var
|
|
68
|
-
COMPONENT_NAMES: () =>
|
|
68
|
+
var vi = /* @__PURE__ */ ee({
|
|
69
|
+
COMPONENT_NAMES: () => _i,
|
|
69
70
|
CSS_VARIABLE_ELEMENT: () => kt,
|
|
70
71
|
DAYJS_DEFAULT_FORMAT: () => At,
|
|
71
72
|
DAYJS_DEFAULT_FORMAT_WITH_TIME: () => jt,
|
|
@@ -73,20 +74,20 @@ var yi = /* @__PURE__ */ ee({
|
|
|
73
74
|
HYPHEN: () => Lr,
|
|
74
75
|
NOOP: () => Mt,
|
|
75
76
|
PREFIX_CLASS: () => Nt,
|
|
76
|
-
PqbValidator: () =>
|
|
77
|
-
Tween: () =>
|
|
77
|
+
PqbValidator: () => ni,
|
|
78
|
+
Tween: () => ei,
|
|
78
79
|
UI_PC_KEY: () => Pt,
|
|
79
80
|
UI_PC_THEME_DARK_CLASS_NAME: () => Ft,
|
|
80
|
-
Validator: () =>
|
|
81
|
-
ValidatorArray: () =>
|
|
82
|
-
ValidatorBase: () =>
|
|
83
|
-
ValidatorBoolean: () =>
|
|
84
|
-
ValidatorCustom: () =>
|
|
85
|
-
ValidatorNumber: () =>
|
|
86
|
-
ValidatorObject: () =>
|
|
87
|
-
ValidatorSchema: () =>
|
|
88
|
-
ValidatorString: () =>
|
|
89
|
-
ValidatorType: () =>
|
|
81
|
+
Validator: () => ri,
|
|
82
|
+
ValidatorArray: () => ii,
|
|
83
|
+
ValidatorBase: () => ai,
|
|
84
|
+
ValidatorBoolean: () => oi,
|
|
85
|
+
ValidatorCustom: () => si,
|
|
86
|
+
ValidatorNumber: () => ci,
|
|
87
|
+
ValidatorObject: () => li,
|
|
88
|
+
ValidatorSchema: () => ui,
|
|
89
|
+
ValidatorString: () => di,
|
|
90
|
+
ValidatorType: () => fi,
|
|
90
91
|
assign: () => It,
|
|
91
92
|
assignIn: () => Lt,
|
|
92
93
|
at: () => Rt,
|
|
@@ -122,14 +123,14 @@ var yi = /* @__PURE__ */ ee({
|
|
|
122
123
|
defaultsDeep: () => $t,
|
|
123
124
|
difference: () => Q,
|
|
124
125
|
div: () => gr,
|
|
125
|
-
easing: () =>
|
|
126
|
+
easing: () => ti,
|
|
126
127
|
escape: () => en,
|
|
127
128
|
fileRead: () => ar,
|
|
128
129
|
fileToDataURL: () => or,
|
|
129
130
|
fillNBSP: () => sr,
|
|
130
131
|
fillRef: () => ft,
|
|
131
132
|
findKey: () => tn,
|
|
132
|
-
findNodeBy: () =>
|
|
133
|
+
findNodeBy: () => Wr,
|
|
133
134
|
findRootElement: () => vt,
|
|
134
135
|
fixedWidth: () => zr,
|
|
135
136
|
flattenDeep: () => nn,
|
|
@@ -138,14 +139,14 @@ var yi = /* @__PURE__ */ ee({
|
|
|
138
139
|
forceReflow: () => Z,
|
|
139
140
|
get: () => an,
|
|
140
141
|
getBodyContainer: () => St,
|
|
141
|
-
getChildWithParentBy: () =>
|
|
142
|
+
getChildWithParentBy: () => Gr,
|
|
142
143
|
getDOM: () => Ct,
|
|
143
144
|
getElementCoordinates: () => wt,
|
|
144
145
|
getHighlightText: () => cr,
|
|
145
146
|
getHotkeyHandler: () => lr,
|
|
146
|
-
getItemBy: () =>
|
|
147
|
-
getItemByID: () =>
|
|
148
|
-
getLabelFromDictionaryByValue: () =>
|
|
147
|
+
getItemBy: () => Kr,
|
|
148
|
+
getItemByID: () => qr,
|
|
149
|
+
getLabelFromDictionaryByValue: () => Jr,
|
|
149
150
|
getNodeRef: () => pt,
|
|
150
151
|
getReactElementRef: () => mt,
|
|
151
152
|
getScrollBarHeight: () => dr,
|
|
@@ -275,7 +276,7 @@ var yi = /* @__PURE__ */ ee({
|
|
|
275
276
|
isWindow: () => ct,
|
|
276
277
|
isZero: () => lt,
|
|
277
278
|
kebabCase: () => dn,
|
|
278
|
-
keyboardCode: () =>
|
|
279
|
+
keyboardCode: () => gi,
|
|
279
280
|
math: () => _r,
|
|
280
281
|
mean: () => fn,
|
|
281
282
|
memoize: () => pn,
|
|
@@ -298,7 +299,7 @@ var yi = /* @__PURE__ */ ee({
|
|
|
298
299
|
pick: () => xn,
|
|
299
300
|
pickBy: () => Sn,
|
|
300
301
|
pickDataAttributes: () => Tr,
|
|
301
|
-
pinyin: () =>
|
|
302
|
+
pinyin: () => hi,
|
|
302
303
|
plus: () => yr,
|
|
303
304
|
pullAll: () => Cn,
|
|
304
305
|
reflow: () => Z,
|
|
@@ -312,7 +313,7 @@ var yi = /* @__PURE__ */ ee({
|
|
|
312
313
|
saveAs: () => Dr,
|
|
313
314
|
screenfull: () => Or,
|
|
314
315
|
scrollIntoViewIfNeeded: () => kr,
|
|
315
|
-
searchTree: () =>
|
|
316
|
+
searchTree: () => Yr,
|
|
316
317
|
set: () => Dn,
|
|
317
318
|
setCreateRoot: () => Ar,
|
|
318
319
|
setDarkTheme: () => Mr,
|
|
@@ -328,14 +329,13 @@ var yi = /* @__PURE__ */ ee({
|
|
|
328
329
|
supportNodeRef: () => ht,
|
|
329
330
|
supportRef: () => gt,
|
|
330
331
|
throttle: () => Nn,
|
|
331
|
-
throttleByRequestAnimationFrame: () => Hr,
|
|
332
332
|
times: () => br,
|
|
333
|
-
tinycolor: () =>
|
|
334
|
-
toArray: () =>
|
|
333
|
+
tinycolor: () => Hr,
|
|
334
|
+
toArray: () => Ur,
|
|
335
335
|
toPath: () => Pn,
|
|
336
|
-
tree: () =>
|
|
336
|
+
tree: () => Xr,
|
|
337
337
|
truncate: () => Fn,
|
|
338
|
-
tunnel: () =>
|
|
338
|
+
tunnel: () => $r,
|
|
339
339
|
union: () => In,
|
|
340
340
|
uniq: () => Ln,
|
|
341
341
|
uniqueId: () => Rn,
|
|
@@ -345,15 +345,15 @@ var yi = /* @__PURE__ */ ee({
|
|
|
345
345
|
upperCase: () => Hn,
|
|
346
346
|
upperFirst: () => Un,
|
|
347
347
|
useComposeRef: () => _t,
|
|
348
|
-
uuid: () =>
|
|
349
|
-
uuidv4: () =>
|
|
350
|
-
validatorLocale: () =>
|
|
351
|
-
warning: () =>
|
|
348
|
+
uuid: () => Zr,
|
|
349
|
+
uuidv4: () => Qr,
|
|
350
|
+
validatorLocale: () => pi,
|
|
351
|
+
warning: () => mi,
|
|
352
352
|
without: () => Wn,
|
|
353
353
|
xor: () => Gn,
|
|
354
354
|
zip: () => Kn
|
|
355
355
|
});
|
|
356
|
-
te(
|
|
356
|
+
te(vi, ut);
|
|
357
357
|
//#endregion
|
|
358
|
-
export {
|
|
358
|
+
export { _i as COMPONENT_NAMES, kt as CSS_VARIABLE_ELEMENT, At as DAYJS_DEFAULT_FORMAT, jt as DAYJS_DEFAULT_FORMAT_WITH_TIME, ir as Emitter, Lr as HYPHEN, Mt as NOOP, Nt as PREFIX_CLASS, ni as PqbValidator, ei as Tween, Pt as UI_PC_KEY, Ft as UI_PC_THEME_DARK_CLASS_NAME, ri as Validator, ii as ValidatorArray, ai as ValidatorBase, oi as ValidatorBoolean, si as ValidatorCustom, ci as ValidatorNumber, li as ValidatorObject, ui as ValidatorSchema, di as ValidatorString, fi as ValidatorType, It as assign, Lt as assignIn, Rt as at, Yn as callOrReturn, Jn as callbackOriginRef, zt as camelCase, yt as canUseDOM, Bt as capitalize, Xn as caseName, Vt as castArray, Ht as chain, Ut as chunk, Zn as className, $ as clipboardCopy, $ as copy, Wt as clone, Gt as cloneDeep, Kt as cloneDeepWith, qt as cloneWith, Jt as compact, dt as composeRef, bt as contains, $n as convertTime, er as convertToDurationBasedOnTimeUnits, Qn as cs, Yt as curry, tr as dateFormat, rr as dayjs, nr as dayjsFormat, Xt as debounce, Zt as defaultTo, Qt as defaults, $t as defaultsDeep, Q as difference, gr as div, ti as easing, en as escape, ar as fileRead, or as fileToDataURL, sr as fillNBSP, ft as fillRef, tn as findKey, Wr as findNodeBy, vt as findRootElement, zr as fixedWidth, nn as flattenDeep, rn as flow, xt as focusAtEnd, Z as forceReflow, Z as reflow, an as get, St as getBodyContainer, Gr as getChildWithParentBy, Ct as getDOM, wt as getElementCoordinates, cr as getHighlightText, lr as getHotkeyHandler, Kr as getItemBy, qr as getItemByID, Jr as getLabelFromDictionaryByValue, pt as getNodeRef, mt as getReactElementRef, dr as getScrollBarHeight, ur as getScrollBarSize, fr as getScrollBarWidth, Tt as getScrollElements, pr as getStringLength, Br as getStyle, on as groupBy, sn as has, mr as include, cn as intersection, hr as intersectionObserver, ln as invert, un as invertBy, ne as is32Bit, re as isAllChinese, e as isArguments, t as isArray, n as isArrayAndNotEmpty, r as isArrayBuffer, i as isArrayEmpty, a as isArrayLike, o as isArrayLikeObject, s as isAscii, c as isAsyncFunction, l as isBase64, u as isBigInt, d as isBlob, f as isBoolean, p as isBuffer, m as isChinese, h as isColorValue, g as isColorValue_, _ as isDOM, v as isDataURI, y as isDate, b as isDayjs, x as isElement, S as isElementByInstanceof, C as isEmail, w as isEmpty, T as isEmptyArray, E as isEmptyObject, D as isEmptyReactNode, O as isEmptyString, k as isEmptyValue, A as isEqual, j as isEqualWith, M as isError, N as isEventTarget, P as isExist, F as isFalse, I as isFile, L as isFinite, R as isFullWidth, z as isFunction, B as isHSL, V as isHTMLElement, H as isHalfWidth, U as isHash, W as isHexColor, G as isIMEI, K as isIP, q as isIPRange, J as isIdentityCard, Y as isInteger, X as isJSON, ie as isJSON_String, ae as isJWT, oe as isLength, se as isMACAddress, ce as isMD5, le as isMap, ue as isMatch, de as isMatchWith, fe as isMimeType, pe as isMobilePhone, me as isMobilePhoneLocales, he as isNaN, ge as isNative, _e as isNil, ve as isNonNullable, ye as isNotFound, be as isNull, xe as isNullOrUndefined, Se as isNumber, Ce as isNumberOrString, we as isObject, Te as isObjectLike, Ee as isPlainObject, De as isPort, Oe as isPresent, ke as isPrimitive, Ae as isPromise, je as isReact18, Me as isReact19, Ne as isReactClassComponent, Pe as isReactComponent, Fe as isReactComponentAndNotFragment, Ie as isReadableStream, Le as isRegExp, Re as isRgbColor, ze as isSVGElement, Be as isSafeInteger, Ve as isScrollElement, He as isSemVer, Ue as isServerRendering, We as isSet, Ge as isSlug, Ke as isSparseArray, qe as isString, Je as isStringAndExist, Ye as isStringOrNumber, Xe as isStrongPassword, Ze as isSymbol, Qe as isThenable, $e as isTrue, et as isTypedArray, tt as isURL, nt as isUUID, rt as isUndefined, it as isUndefinedOrNull, at as isVariableWidth, ot as isWeakMap, st as isWeakSet, ct as isWindow, lt as isZero, dn as kebabCase, gi as keyboardCode, _r as math, fn as mean, pn as memoize, mn as merge, qn as mergeProps, hn as mergeWith, xr as mergedToString, vr as minus, Sr as mutationObserver, gn as noop, Et as off, _n as omit, vn as omitBy, Dt as on, yn as orderBy, Cr as padEnd, wr as padStart, Ot as parentContainsChildren, bn as partition, xn as pick, Sn as pickBy, Tr as pickDataAttributes, hi as pinyin, yr as plus, Cn as pullAll, Nr as removeDarkTheme, jr as render, Rr as replaceEmptyWithHyphen, Er as resizeObserver, wn as result, Tn as sample, En as sampleSize, Dr as saveAs, Or as screenfull, kr as scrollIntoViewIfNeeded, Yr as searchTree, Dn as set, Ar as setCreateRoot, Mr as setDarkTheme, Pr as setDir, Fr as setPrimaryColor, Ir as setTheme, Vr as setTransformStyle, On as setWith, kn as shuffle, An as snakeCase, jn as sortBy, Mn as startCase, ht as supportNodeRef, gt as supportRef, Nn as throttle, br as times, Hr as tinycolor, Ur as toArray, Pn as toPath, Xr as tree, Fn as truncate, $r as tunnel, In as union, Ln as uniq, Rn as uniqueId, zn as unset, Bn as update, Vn as updateWith, Hn as upperCase, Un as upperFirst, _t as useComposeRef, vi as utils_exports, Zr as uuid, Qr as uuidv4, pi as validatorLocale, mi as warning, Wn as without, Gn as xor, Kn as zip };
|
|
359
359
|
/* 独立思考,明辨是非 */
|
package/utils/is.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import "../.virtual/_rolldown/runtime.js";
|
|
3
3
|
import e, { isValidElement as t } from "react";
|
|
4
|
-
import { isBrowser as n } from "@unicom-cloud/utils/
|
|
4
|
+
import { isBrowser as n } from "@unicom-cloud/utils/constants/platform";
|
|
5
5
|
import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as o, isArrayAndNotEmpty as s, isArrayBuffer as c, isArrayEmpty as ee, isArrayLike as te, isArrayLikeObject as ne, isAscii as re, isAsyncFunction as ie, isBase64 as ae, isBigInt as oe, isBlob as l, isBoolean as u, isBuffer as d, isChinese as f, isColorValue as p, isColorValue_ as m, isDataURI as h, isDate as g, isElement as _, isEmail as v, isEmpty as y, isEmptyArray as b, isEmptyObject as x, isEmptyString as S, isEmptyValue as C, isEqual as w, isEqualWith as T, isError as E, isEventTarget as D, isExist as O, isFalse as k, isFile as A, isFinite as j, isFullWidth as M, isFunction as N, isHSL as P, isHalfWidth as F, isHash as I, isHexColor as L, isIMEI as R, isIP as z, isIPRange as B, isIdentityCard as V, isInteger as H, isJSON as U, isJSON_String as W, isJWT as G, isLength as K, isMACAddress as q, isMD5 as se, isMap as ce, isMatch as le, isMatchWith as ue, isMimeType as de, isMobilePhone as fe, isMobilePhoneLocales as pe, isNaN as me, isNative as he, isNil as ge, isNonNullable as _e, isNotFound as ve, isNull as ye, isNullOrUndefined as J, isNumber as be, isNumberOrString as xe, isObject as Se, isObjectLike as Ce, isPlainObject as we, isPort as Te, isPresent as Ee, isPrimitive as De, isPromise as Oe, isReadableStream as ke, isRegExp as Ae, isRgbColor as je, isSafeInteger as Me, isSemVer as Ne, isSet as Pe, isSlug as Fe, isSparseArray as Ie, isString as Y, isStringAndExist as Le, isStringOrNumber as Re, isStrongPassword as ze, isSymbol as Be, isThenable as Ve, isTrue as He, isTypedArray as Ue, isURL as We, isUUID as Ge, isUndefined as Ke, isUndefinedOrNull as qe, isVariableWidth as Je, isWeakMap as Ye, isWeakSet as Xe, isWindow as Ze, isZero as X } from "@unicom-cloud/utils/is";
|
|
6
6
|
import { isDayjs as Qe } from "dayjs";
|
|
7
7
|
import $e from "react-dom";
|
package/utils/keyboardCode.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as keyboardCode from '@unicom-cloud/utils/
|
|
2
|
-
export * from '@unicom-cloud/utils/
|
|
1
|
+
import * as keyboardCode from '@unicom-cloud/utils/constants/keyboardCode';
|
|
2
|
+
export * from '@unicom-cloud/utils/constants/keyboardCode';
|
|
3
3
|
export { keyboardCode };
|
|
4
4
|
export default keyboardCode;
|
package/utils/keyboardCode.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
2
|
-
import * as e from "@unicom-cloud/utils/
|
|
3
|
-
export * from "@unicom-cloud/utils/
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
|
+
import * as e from "@unicom-cloud/utils/constants/keyboardCode";
|
|
3
|
+
export * from "@unicom-cloud/utils/constants/keyboardCode";
|
|
4
4
|
//#region components/common/utils/keyboardCode.ts
|
|
5
5
|
var t = e;
|
|
6
6
|
//#endregion
|
package/utils/lodash.js
CHANGED
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import e, { div as t, minus as n, plus as r, times as i, default as a } from "@unicom-cloud/utils/math";
|
|
3
3
|
export { a as default, t as div, e as math, n as minus, r as plus, i as times };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/mergeProps.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function mergeProps<T extends object>(componentProps: T,
|
|
1
|
+
declare function mergeProps<T extends object>(componentProps: T, globalComponentProps?: Partial<T>, defaultProps?: Partial<T>, ...args: Array<Partial<T> | string[]>): Partial<T>;
|
|
2
2
|
export { mergeProps };
|
|
3
3
|
export default mergeProps;
|
package/utils/mergeProps.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isArray as e } from "./is.js";
|
|
3
3
|
import { defaults as t, pick as n } from "./lodash.js";
|
|
4
4
|
//#region components/common/utils/mergeProps.ts
|
|
5
|
-
function r(r, i, a, o) {
|
|
6
|
-
let s =
|
|
7
|
-
|
|
5
|
+
function r(r, i, a, ...o) {
|
|
6
|
+
let s = [...o], c = s.at(-1), l = e(c);
|
|
7
|
+
l && (s = s.slice(0, -1));
|
|
8
|
+
let u = t({}, r, i ?? {}, a, ...s);
|
|
9
|
+
return l && (u = n(u, c)), u;
|
|
8
10
|
}
|
|
9
11
|
//#endregion
|
|
10
12
|
export { r as default, r as mergeProps };
|
package/utils/mergedToString.js
CHANGED
package/utils/names.d.ts
CHANGED
package/utils/names.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
//#region components/common/utils/names.ts
|
|
3
3
|
var e = {
|
|
4
4
|
zh: "边框流光",
|
|
@@ -118,5 +118,5 @@ var e = {
|
|
|
118
118
|
};
|
|
119
119
|
Object.assign(y, {}), Object.freeze(y);
|
|
120
120
|
//#endregion
|
|
121
|
-
export { v as ANIMATION_COMPONENT_INFO, e as BORDER_BEAM_COMPONENT_INFO, y as COMPONENT_NAMES, t as DEVELOPMENT_COMPONENT_INFO, n as EMPTY_COMPONENT_INFO, r as FLEX_COMPONENT_INFO, i as FLEX_VERTICAL_COMPONENT_INFO, o as ICON_FILE_COMPONENT_INFO, s as PROGRESS_COMPONENT_INFO, c as RESIZE_OBSERVER_COMPONENT_INFO, l as SPACE_COMPONENT_INFO, u as SPACE_VERTICAL_COMPONENT_INFO, a as SPEECH_SYNTHESIS_COMPONENT_INFO, d as SUSPENSE_FALLBACK_TEST_COMPONENT_INFO, f as TIMER_COMPONENT_INFO, p as TRANSITION_COMPONENT_INFO, m as TRANSITION_CSS_COMPONENT_INFO, g as TRANSITION_GROUP_COMPONENT_INFO, h as TRANSITION_STYLE_COMPONENT_INFO, _ as TYPEWRITER_COMPONENT_INFO };
|
|
121
|
+
export { v as ANIMATION_COMPONENT_INFO, e as BORDER_BEAM_COMPONENT_INFO, y as COMPONENT_NAMES, y as default, t as DEVELOPMENT_COMPONENT_INFO, n as EMPTY_COMPONENT_INFO, r as FLEX_COMPONENT_INFO, i as FLEX_VERTICAL_COMPONENT_INFO, o as ICON_FILE_COMPONENT_INFO, s as PROGRESS_COMPONENT_INFO, c as RESIZE_OBSERVER_COMPONENT_INFO, l as SPACE_COMPONENT_INFO, u as SPACE_VERTICAL_COMPONENT_INFO, a as SPEECH_SYNTHESIS_COMPONENT_INFO, d as SUSPENSE_FALLBACK_TEST_COMPONENT_INFO, f as TIMER_COMPONENT_INFO, p as TRANSITION_COMPONENT_INFO, m as TRANSITION_CSS_COMPONENT_INFO, g as TRANSITION_GROUP_COMPONENT_INFO, h as TRANSITION_STYLE_COMPONENT_INFO, _ as TYPEWRITER_COMPONENT_INFO };
|
|
122
122
|
/* 独立思考,明辨是非 */
|
package/utils/object.js
CHANGED
package/utils/omit.js
CHANGED
package/utils/pad.js
CHANGED
package/utils/pick.js
CHANGED
package/utils/pinyin.js
CHANGED
package/utils/react19Adapter.js
CHANGED
package/utils/reactNode.js
CHANGED
package/utils/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isFunction as e, isObjectLike as t, isReact19 as n, isReactComponentAndNotFragment as r } from "./is.js";
|
|
3
3
|
import i from "../hooks/use-memo/index.js";
|
|
4
4
|
import { isValidElement as a } from "react";
|
package/utils/resizeObserver.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isElementByInstanceof as e, isFunction as t } from "./is.js";
|
|
3
|
-
import { NOOP as n } from "./
|
|
3
|
+
import { NOOP as n } from "./constants.js";
|
|
4
4
|
import r from "lodash/throttle";
|
|
5
5
|
//#region components/common/utils/resizeObserver.ts
|
|
6
6
|
function i(i, a) {
|
package/utils/saveAs.js
CHANGED
package/utils/screenfull.js
CHANGED
package/utils/setCreateRoot.js
CHANGED
package/utils/setDarkTheme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isElementByInstanceof as e } from "./is.js";
|
|
3
|
-
import { CSS_VARIABLE_ELEMENT as t } from "./
|
|
4
|
-
import { UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/
|
|
3
|
+
import { CSS_VARIABLE_ELEMENT as t } from "./constants.js";
|
|
4
|
+
import { UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constants/ui";
|
|
5
5
|
//#region components/common/utils/setDarkTheme.ts
|
|
6
6
|
var r = "dark";
|
|
7
7
|
function i(t, n) {
|
package/utils/setDir.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isPlainObject as e } from "./is.js";
|
|
3
|
-
import { CSS_VARIABLE_ELEMENT as t } from "./
|
|
4
|
-
import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/
|
|
3
|
+
import { CSS_VARIABLE_ELEMENT as t } from "./constants.js";
|
|
4
|
+
import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
5
5
|
//#region components/common/utils/setDir.ts
|
|
6
6
|
function r(r) {
|
|
7
7
|
if (!e(r)) return;
|
package/utils/setPrimaryColor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
2
|
-
import { CSS_VARIABLE_ELEMENT as e } from "./
|
|
3
|
-
import { UI_PC_PREFIX as t } from "@unicom-cloud/utils/
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
|
+
import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
|
|
3
|
+
import { UI_PC_PREFIX as t } from "@unicom-cloud/utils/constants/ui";
|
|
4
4
|
import n from "@unicom-cloud/utils/tinycolor";
|
|
5
5
|
import * as r from "@unicom-cloud/utils/ui-color";
|
|
6
6
|
//#region components/common/utils/setPrimaryColor.ts
|
package/utils/setTheme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isPlainObject as e } from "./is.js";
|
|
3
|
-
import { CSS_VARIABLE_ELEMENT as t } from "./
|
|
4
|
-
import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/
|
|
3
|
+
import { CSS_VARIABLE_ELEMENT as t } from "./constants.js";
|
|
4
|
+
import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
5
5
|
import r from "@unicom-cloud/utils/tinycolor";
|
|
6
6
|
//#region components/common/utils/setTheme.ts
|
|
7
7
|
function i(i) {
|
package/utils/string.d.ts
CHANGED
package/utils/string.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isEmptyReactNode as e } from "./is.js";
|
|
3
|
-
import { HYPHEN as t } from "@unicom-cloud/utils/
|
|
3
|
+
import { HYPHEN as t } from "@unicom-cloud/utils/constants/string";
|
|
4
4
|
import { replaceEmptyWithHyphen as n } from "@unicom-cloud/utils/string";
|
|
5
5
|
//#region components/common/utils/string.ts
|
|
6
6
|
function r(t) {
|
package/utils/style.js
CHANGED
package/utils/tinycolor.js
CHANGED
package/utils/toArray.js
CHANGED