@unicom-cloud/ui-common 0.1.22 → 0.1.23
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/.vite/manifest.json +18 -2
- package/development/Development.js +1 -1
- package/development/index.js +1 -1
- package/empty/Empty.js +1 -1
- package/empty/index.js +1 -1
- package/flex/Flex.js +1 -1
- package/flex/index.js +1 -1
- package/flex/interface.d.ts +2 -2
- 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/with-speech-synthesis/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/index.js +1 -1
- 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.d.ts +2 -0
- package/hooks/use-controllable-value/index.js +30 -15
- 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 +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 +1 -1
- 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 +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.js +1 -1
- 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 +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-network/index.js +16 -19
- 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.d.ts +3 -1
- package/hooks/use-paste-image/index.js +16 -13
- 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 +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 +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 +10 -10
- 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 +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 +29 -29
- 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.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/icons/file/IconFile.js +1 -1
- package/icons/file/index.js +1 -1
- package/index.js +602 -598
- package/package.json +1 -1
- package/progress/Progress.js +1 -1
- package/progress/index.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +1 -1
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/index.js +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/space/Space.js +1 -1
- package/space/index.js +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +1 -1
- package/timer/index.js +1 -1
- package/transition/Transition.js +1 -1
- 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.js +1 -1
- package/transition/index.js +1 -1
- package/transition/utils.js +1 -1
- 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.d.ts +3 -2
- package/utils/dom.js +11 -2
- package/utils/emitter.js +1 -1
- package/utils/file.d.ts +1 -0
- package/utils/file.js +4 -0
- 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 +1 -0
- package/utils/index.js +315 -310
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.d.ts +3 -2
- package/utils/is.js +18 -16
- 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 +1 -1
- package/utils/mutationObserver.js +1 -1
- 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/ref.d.ts +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 +1 -1
- 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 +1 -1
- 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/version/index.js +8 -8
package/utils/is.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor,
|
|
1
|
+
import { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isColorValue_, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHSL, isHalfWidth, isHash, isHexColor, isIMEI, isIP, isIPRange, isIdentityCard, isInteger, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMD5, isMap, isMatch, isMatchWith, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isURL, isUUID, isUndefined, isUndefinedOrNull, isVariableWidth, isWeakMap, isWeakSet, isWindow } from '@unicom-cloud/utils/is';
|
|
2
2
|
import { isDayjs } from 'dayjs';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
declare const isServerRendering: boolean;
|
|
@@ -10,4 +10,5 @@ export declare function isReactClassComponent(element?: React.ReactElement): ele
|
|
|
10
10
|
export declare function isElementByInstanceof(element?: unknown): element is Element;
|
|
11
11
|
export declare function isHTMLElement(element?: unknown): element is HTMLElement;
|
|
12
12
|
export declare function isScrollElement(element?: unknown): element is HTMLElement;
|
|
13
|
-
export
|
|
13
|
+
export * from '@unicom-cloud/utils/is';
|
|
14
|
+
export { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isColorValue_, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHSL, isHalfWidth, isHash, isHexColor, isIMEI, isIP, isIPRange, isIdentityCard, isInteger, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMD5, isMap, isMatch, isMatchWith, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isURL, isUUID, isUndefined, isUndefinedOrNull, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
|
package/utils/is.js
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-15 17:45:46 星期五 */
|
|
2
|
+
import "../.virtual/_rolldown/runtime.js";
|
|
2
3
|
import e, { isValidElement as t } from "react";
|
|
3
4
|
import { isBrowser as n } from "@unicom-cloud/utils/constant/platform";
|
|
4
|
-
import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as o, isArrayAndNotEmpty as ee, isArrayBuffer as te, isArrayEmpty as ne, isArrayLike as re, isArrayLikeObject as ie, isAscii as ae, isAsyncFunction as s, isBase64 as c, isBigInt as l, isBlob as u, isBoolean as d, isBuffer as f, isChinese as p, isColorValue as m,
|
|
5
|
-
import { isDayjs as
|
|
6
|
-
import
|
|
7
|
-
import { isFragment as
|
|
5
|
+
import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as o, isArrayAndNotEmpty as ee, isArrayBuffer as te, isArrayEmpty as ne, isArrayLike as re, isArrayLikeObject as ie, isAscii as ae, isAsyncFunction as s, isBase64 as c, isBigInt as l, isBlob as u, isBoolean as d, isBuffer as f, isChinese as p, isColorValue as m, isColorValue_ as h, isDataURI as g, isDate as _, isElement as v, isEmail as y, isEmpty as b, isEmptyArray as x, isEmptyObject 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 J, isMap as oe, isMatch as se, isMatchWith as ce, isMimeType as le, isMobilePhone as ue, isMobilePhoneLocales as de, isNaN as fe, isNative as pe, isNil as me, isNonNullable as he, isNull as ge, isNullOrUndefined as Y, isNumber as _e, isNumberOrString as ve, isObject as ye, isObjectLike as be, isPlainObject as xe, isPort as Se, isPresent as Ce, isPrimitive as we, isPromise as Te, isReadableStream as Ee, isRegExp as De, isRgbColor as Oe, isSafeInteger as ke, isSemVer as Ae, isSet as je, isSlug as Me, isSparseArray as Ne, isString as X, isStringAndExist as Pe, isStringOrNumber as Fe, isStrongPassword as Ie, isSymbol as Le, isThenable as Re, isTrue as ze, isTypedArray as Be, isURL as Ve, isUUID as He, isUndefined as Ue, isUndefinedOrNull as We, isVariableWidth as Ge, isWeakMap as Ke, isWeakSet as qe, isWindow as Je } from "@unicom-cloud/utils/is";
|
|
6
|
+
import { isDayjs as Ye } from "dayjs";
|
|
7
|
+
import Xe from "react-dom";
|
|
8
|
+
import { isFragment as Z } from "react-is";
|
|
9
|
+
export * from "@unicom-cloud/utils/is";
|
|
8
10
|
//#region components/common/utils/is.ts
|
|
9
|
-
var
|
|
10
|
-
let i = e.version ||
|
|
11
|
+
var Ze = !n, [Qe, $e] = [18, 19].map((t, n, r) => {
|
|
12
|
+
let i = e.version || Xe.version || "", a = /\d+/.exec(i)?.[0] ?? "";
|
|
11
13
|
return t <= parseFloat(a);
|
|
12
14
|
});
|
|
13
|
-
function
|
|
14
|
-
return !!(Y(e) || e === !1 || X(e) && (t ? e.trim() === "" : e === "") ||
|
|
15
|
+
function et(e, t) {
|
|
16
|
+
return !!(Y(e) || e === !1 || X(e) && (t ? e.trim() === "" : e === "") || x(e));
|
|
15
17
|
}
|
|
16
|
-
function
|
|
17
|
-
return t(e) && !
|
|
18
|
+
function tt(e) {
|
|
19
|
+
return t(e) && !Z(e);
|
|
18
20
|
}
|
|
19
21
|
function Q(e) {
|
|
20
|
-
return t(e) &&
|
|
22
|
+
return t(e) && N(e.type);
|
|
21
23
|
}
|
|
22
|
-
function
|
|
24
|
+
function nt(e) {
|
|
23
25
|
return Q(e) && !!e.type?.prototype?.isReactComponent;
|
|
24
26
|
}
|
|
25
|
-
function
|
|
27
|
+
function rt(e) {
|
|
26
28
|
return e instanceof Element;
|
|
27
29
|
}
|
|
28
30
|
function $(e) {
|
|
29
31
|
return e instanceof HTMLElement;
|
|
30
32
|
}
|
|
31
|
-
function
|
|
33
|
+
function it(e) {
|
|
32
34
|
if (!$(e) || [document.documentElement].includes(e)) return !1;
|
|
33
35
|
let t = window.getComputedStyle(e), n = [
|
|
34
36
|
"auto",
|
|
@@ -38,5 +40,5 @@ function rt(e) {
|
|
|
38
40
|
return e.scrollHeight > e.offsetHeight && n.includes(t.overflowY) || e.scrollWidth > e.offsetWidth && n.includes(t.overflowX);
|
|
39
41
|
}
|
|
40
42
|
//#endregion
|
|
41
|
-
export { r as is32Bit, i as isAllChinese, a as isArguments, o as isArray, ee as isArrayAndNotEmpty, te as isArrayBuffer, ne as isArrayEmpty, re as isArrayLike, ie as isArrayLikeObject, ae as isAscii, s as isAsyncFunction, c as isBase64, l as isBigInt, u as isBlob, d as isBoolean, f as isBuffer, p as isChinese, m as isColorValue, h as
|
|
43
|
+
export { r as is32Bit, i as isAllChinese, a as isArguments, o as isArray, ee as isArrayAndNotEmpty, te as isArrayBuffer, ne as isArrayEmpty, re as isArrayLike, ie as isArrayLikeObject, ae as isAscii, s as isAsyncFunction, c as isBase64, l as isBigInt, u as isBlob, d as isBoolean, f as isBuffer, p as isChinese, m as isColorValue, h as isColorValue_, g as isDataURI, _ as isDate, Ye as isDayjs, v as isElement, rt as isElementByInstanceof, y as isEmail, b as isEmpty, x as isEmptyArray, S as isEmptyObject, et as isEmptyReactNode, C as isEmptyValue, w as isEqual, T as isEqualWith, E as isError, D as isEventTarget, O as isExist, k as isFalse, A as isFile, j as isFinite, M as isFullWidth, N as isFunction, P as isHSL, $ as isHTMLElement, F as isHalfWidth, I as isHash, L as isHexColor, R as isIMEI, z as isIP, B as isIPRange, V as isIdentityCard, H as isInteger, U as isJSON, W as isJSON_String, G as isJWT, K as isLength, q as isMACAddress, J as isMD5, oe as isMap, se as isMatch, ce as isMatchWith, le as isMimeType, ue as isMobilePhone, de as isMobilePhoneLocales, fe as isNaN, pe as isNative, me as isNil, he as isNonNullable, ge as isNull, Y as isNullOrUndefined, _e as isNumber, ve as isNumberOrString, ye as isObject, be as isObjectLike, xe as isPlainObject, Se as isPort, Ce as isPresent, we as isPrimitive, Te as isPromise, Qe as isReact18, $e as isReact19, nt as isReactClassComponent, Q as isReactComponent, tt as isReactComponentAndNotFragment, Ee as isReadableStream, De as isRegExp, Oe as isRgbColor, ke as isSafeInteger, it as isScrollElement, Ae as isSemVer, Ze as isServerRendering, je as isSet, Me as isSlug, Ne as isSparseArray, X as isString, Pe as isStringAndExist, Fe as isStringOrNumber, Ie as isStrongPassword, Le as isSymbol, Re as isThenable, ze as isTrue, Be as isTypedArray, Ve as isURL, He as isUUID, Ue as isUndefined, We as isUndefinedOrNull, Ge as isVariableWidth, Ke as isWeakMap, qe as isWeakSet, Je as isWindow };
|
|
42
44
|
/* 独立思考,明辨是非 */
|
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.js
CHANGED
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-15 17:45:46 星期五 */
|
|
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.js
CHANGED
package/utils/mergedToString.js
CHANGED
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/ref.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { RefObject } from 'react';
|
|
2
|
-
interface RefAttributes<T> extends
|
|
1
|
+
import React, { Attributes, RefObject } from 'react';
|
|
2
|
+
interface RefAttributes<T> extends Attributes {
|
|
3
3
|
ref: React.Ref<T>;
|
|
4
4
|
}
|
|
5
5
|
declare const fillRef: <T>(ref: RefObject<T>, node: T) => void;
|
package/utils/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-15 17:45:46 星期五 */
|
|
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
package/utils/saveAs.js
CHANGED
package/utils/screenfull.js
CHANGED
package/utils/setCreateRoot.js
CHANGED
package/utils/setDarkTheme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-15 17:45:46 星期五 */
|
|
2
2
|
import { isElementByInstanceof as e } from "./is.js";
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as t } from "./constant.js";
|
|
4
4
|
import { UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constant/ui";
|
package/utils/setDir.js
CHANGED
package/utils/setPrimaryColor.js
CHANGED
package/utils/setTheme.js
CHANGED
package/utils/string.js
CHANGED
package/utils/style.js
CHANGED
package/utils/throttleByRaf.js
CHANGED
package/utils/throttleByRaf2.js
CHANGED
package/utils/tinycolor.js
CHANGED
package/utils/toArray.js
CHANGED
package/utils/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-15 17:45:46 星期五 */
|
|
2
2
|
import e, { findNodeBy as t, getChildWithParentBy as n, getItemBy as r, getItemByID as i, getLabelFromDictionaryByValue as a, searchTree as o, default as s } from "@unicom-cloud/utils/tree";
|
|
3
3
|
export { s as default, t as findNodeBy, n as getChildWithParentBy, r as getItemBy, i as getItemByID, a as getLabelFromDictionaryByValue, o as searchTree, e as tree };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/tween.js
CHANGED
package/utils/uuid.js
CHANGED
package/utils/validate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-15 17:45:46 星期五 */
|
|
2
2
|
import { PqbValidator as e, Validator as t, ValidatorArray as n, ValidatorBase as r, ValidatorBoolean as i, ValidatorCustom as a, ValidatorNumber as o, ValidatorObject as s, ValidatorSchema as c, ValidatorString as l, ValidatorType as u, validatorLocale as d } from "@unicom-cloud/utils/validate";
|
|
3
3
|
export { e as PqbValidator, t as Validator, n as ValidatorArray, r as ValidatorBase, i as ValidatorBoolean, a as ValidatorCustom, o as ValidatorNumber, s as ValidatorObject, c as ValidatorSchema, l as ValidatorString, u as ValidatorType, d as validatorLocale };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/warning.js
CHANGED
package/version/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-15 17:45:46 星期五 */
|
|
2
2
|
//#region components/common/version/index.ts
|
|
3
3
|
var e = {
|
|
4
4
|
name: "潘启宝",
|
|
5
|
-
date: "2026-05-
|
|
5
|
+
date: "2026-05-15 17:45:45",
|
|
6
6
|
platform: "darwin",
|
|
7
7
|
arch: "arm64",
|
|
8
8
|
hostname: "Mac-mini-2.local",
|
|
@@ -10,18 +10,18 @@ var e = {
|
|
|
10
10
|
cpu: "Apple M4",
|
|
11
11
|
endianness: "LE",
|
|
12
12
|
release: "Darwin25.4.0",
|
|
13
|
-
uptime:
|
|
14
|
-
UUID: "
|
|
15
|
-
mac: "
|
|
13
|
+
uptime: 377243,
|
|
14
|
+
UUID: "316e1fa3-4cf5-4182-ae9d-8a0744759dab",
|
|
15
|
+
mac: "d0:11:e5:86:6d:e8",
|
|
16
16
|
version: {
|
|
17
17
|
node: "24.15.0",
|
|
18
18
|
npm: "11.12.1",
|
|
19
|
-
vite: "8.0.
|
|
20
|
-
rolldown: "1.0.
|
|
19
|
+
vite: "8.0.13",
|
|
20
|
+
rolldown: "1.0.1",
|
|
21
21
|
self: "0.0.0",
|
|
22
22
|
react: "19.2.6"
|
|
23
23
|
}
|
|
24
|
-
}, t = "2026-05-
|
|
24
|
+
}, t = "2026-05-15 17:45:45", n = "1778838345709", r = "0.1.0";
|
|
25
25
|
//#endregion
|
|
26
26
|
export { r as VERSION, r as default, t as VERSION_BUILD_DATE, e as VERSION_BUILD_INFO, n as VERSION_BUILD_TIME };
|
|
27
27
|
/* 独立思考,明辨是非 */
|