@unicom-cloud/ui-common 0.1.32 → 0.1.34
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 +1 -1
- package/animation/constants.js +1 -1
- package/animation/context.js +1 -1
- package/animation/index.js +1 -1
- package/animation/style/index.js +1 -1
- package/border-beam/BorderBeam.js +2 -2
- package/border-beam/Effect.js +1 -1
- package/border-beam/constants.js +1 -1
- package/border-beam/context.js +1 -1
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.js +1 -1
- package/border-beam/style/index.js +1 -1
- package/border-beam/utils.js +1 -1
- package/development/Development.js +2 -2
- package/development/constants.js +1 -1
- package/development/context.js +1 -1
- package/development/index.js +1 -1
- package/development/style/index.js +1 -1
- package/empty/Empty.js +12 -10
- package/empty/constants.js +1 -1
- package/empty/context.js +1 -1
- package/empty/index.js +1 -1
- package/empty/style/index.css +1 -1
- package/empty/style/index.js +1 -1
- package/flex/Flex.js +3 -3
- package/flex/constants.js +1 -1
- package/flex/context.js +1 -1
- package/flex/index.js +1 -1
- package/flex/style/index.js +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/context.js +1 -1
- package/higher-order/with-speech-synthesis/index.js +1 -1
- package/higher-order/with-speech-synthesis/style/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +5 -2
- 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 +62 -62
- 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 +30 -31
- 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 +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 +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 +10 -7
- 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.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.d.ts +3 -3
- package/hooks/use-update/index.js +13 -9
- 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.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/File.js +2 -2
- package/icons/file/context.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/index.js +509 -507
- package/package.json +1 -1
- package/progress/Progress.js +1 -1
- package/progress/constants.js +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +2 -2
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/constants.js +1 -1
- package/resize-observer/context.js +1 -1
- package/resize-observer/index.js +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.js +1 -1
- package/space/Space.js +3 -3
- package/space/constants.js +1 -1
- package/space/context.js +1 -1
- package/space/index.js +1 -1
- package/space/style/index.js +1 -1
- package/style.css +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +2 -2
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/suspense-fallback-test/style/index.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +2 -2
- package/timer/constants.js +1 -1
- package/timer/context.js +1 -1
- package/timer/index.js +1 -1
- package/timer/style/index.js +1 -1
- package/transition/Transition.js +57 -53
- 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/style/index.js +1 -1
- package/transition/utils.js +1 -1
- package/typewriter/Typewriter.js +2 -2
- package/typewriter/constants.js +1 -1
- package/typewriter/context.js +1 -1
- package/typewriter/index.js +1 -1
- package/typewriter/style/index.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/constants.js +1 -1
- 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.js +8 -2
- package/utils/dom.d.ts +11 -9
- package/utils/dom.js +12 -6
- 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.js +345 -343
- 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 +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +44 -228
- package/utils/names.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/reactNode.js +1 -1
- 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 +21 -16
- 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/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.js +6 -4
- 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 +6 -6
package/utils/is.js
CHANGED
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.js
CHANGED
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
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/names.d.ts
CHANGED
|
@@ -1,232 +1,48 @@
|
|
|
1
|
-
export
|
|
2
|
-
zh: string;
|
|
3
|
-
en: string;
|
|
4
|
-
displayName: string;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const
|
|
26
|
-
zh: string;
|
|
27
|
-
en: string;
|
|
28
|
-
displayName: string;
|
|
29
|
-
id: string;
|
|
30
|
-
};
|
|
31
|
-
export declare const SPEECH_SYNTHESIS_COMPONENT_INFO: {
|
|
32
|
-
zh: string;
|
|
33
|
-
en: string;
|
|
34
|
-
displayName: string;
|
|
35
|
-
id: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const ICON_FILE_COMPONENT_INFO: {
|
|
38
|
-
zh: string;
|
|
39
|
-
en: string;
|
|
40
|
-
displayName: string;
|
|
41
|
-
id: string;
|
|
42
|
-
};
|
|
43
|
-
export declare const PROGRESS_COMPONENT_INFO: {
|
|
44
|
-
zh: string;
|
|
45
|
-
en: string;
|
|
46
|
-
displayName: string;
|
|
47
|
-
id: string;
|
|
48
|
-
};
|
|
49
|
-
export declare const RESIZE_OBSERVER_COMPONENT_INFO: {
|
|
50
|
-
zh: string;
|
|
51
|
-
en: string;
|
|
52
|
-
displayName: string;
|
|
53
|
-
id: string;
|
|
54
|
-
};
|
|
55
|
-
export declare const SPACE_COMPONENT_INFO: {
|
|
56
|
-
zh: string;
|
|
57
|
-
en: string;
|
|
58
|
-
displayName: string;
|
|
59
|
-
id: string;
|
|
60
|
-
};
|
|
61
|
-
export declare const SPACE_VERTICAL_COMPONENT_INFO: {
|
|
62
|
-
zh: string;
|
|
63
|
-
en: string;
|
|
64
|
-
displayName: string;
|
|
65
|
-
id: string;
|
|
66
|
-
};
|
|
67
|
-
export declare const SUSPENSE_FALLBACK_TEST_COMPONENT_INFO: {
|
|
68
|
-
zh: string;
|
|
69
|
-
en: string;
|
|
70
|
-
displayName: string;
|
|
71
|
-
id: string;
|
|
72
|
-
};
|
|
73
|
-
export declare const TIMER_COMPONENT_INFO: {
|
|
74
|
-
zh: string;
|
|
75
|
-
en: string;
|
|
76
|
-
displayName: string;
|
|
77
|
-
id: string;
|
|
78
|
-
};
|
|
79
|
-
export declare const TRANSITION_COMPONENT_INFO: {
|
|
80
|
-
zh: string;
|
|
81
|
-
en: string;
|
|
82
|
-
displayName: string;
|
|
83
|
-
id: string;
|
|
84
|
-
};
|
|
85
|
-
export declare const TRANSITION_CSS_COMPONENT_INFO: {
|
|
86
|
-
zh: string;
|
|
87
|
-
en: string;
|
|
88
|
-
displayName: string;
|
|
89
|
-
id: string;
|
|
90
|
-
};
|
|
91
|
-
export declare const TRANSITION_STYLE_COMPONENT_INFO: {
|
|
92
|
-
zh: string;
|
|
93
|
-
en: string;
|
|
94
|
-
displayName: string;
|
|
95
|
-
id: string;
|
|
96
|
-
};
|
|
97
|
-
export declare const TRANSITION_GROUP_COMPONENT_INFO: {
|
|
98
|
-
zh: string;
|
|
99
|
-
en: string;
|
|
100
|
-
displayName: string;
|
|
101
|
-
id: string;
|
|
102
|
-
};
|
|
103
|
-
export declare const TYPEWRITER_COMPONENT_INFO: {
|
|
104
|
-
zh: string;
|
|
105
|
-
en: string;
|
|
106
|
-
displayName: string;
|
|
107
|
-
id: string;
|
|
108
|
-
};
|
|
109
|
-
export declare const ANIMATION_COMPONENT_INFO: {
|
|
110
|
-
zh: string;
|
|
111
|
-
en: string;
|
|
112
|
-
displayName: string;
|
|
113
|
-
id: string;
|
|
114
|
-
};
|
|
1
|
+
export type COMPONENT_INFO_TYPE = {
|
|
2
|
+
zh: string;
|
|
3
|
+
en: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const BORDER_BEAM_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
8
|
+
export declare const DEVELOPMENT_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
9
|
+
export declare const EMPTY_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
10
|
+
export declare const FLEX_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
11
|
+
export declare const FLEX_VERTICAL_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
12
|
+
export declare const SPEECH_SYNTHESIS_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
13
|
+
export declare const ICON_FILE_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
14
|
+
export declare const PROGRESS_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
15
|
+
export declare const RESIZE_OBSERVER_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
16
|
+
export declare const SPACE_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
17
|
+
export declare const SPACE_VERTICAL_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
18
|
+
export declare const SUSPENSE_FALLBACK_TEST_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
19
|
+
export declare const TIMER_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
20
|
+
export declare const TRANSITION_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
21
|
+
export declare const TRANSITION_CSS_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
22
|
+
export declare const TRANSITION_STYLE_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
23
|
+
export declare const TRANSITION_GROUP_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
24
|
+
export declare const TYPEWRITER_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
25
|
+
export declare const ANIMATION_COMPONENT_INFO: COMPONENT_INFO_TYPE;
|
|
115
26
|
declare const COMPONENT_NAMES: {
|
|
116
|
-
BorderBeam:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
zh: string;
|
|
136
|
-
en: string;
|
|
137
|
-
displayName: string;
|
|
138
|
-
id: string;
|
|
139
|
-
};
|
|
140
|
-
FlexVertical: {
|
|
141
|
-
zh: string;
|
|
142
|
-
en: string;
|
|
143
|
-
displayName: string;
|
|
144
|
-
id: string;
|
|
145
|
-
};
|
|
146
|
-
IconFile: {
|
|
147
|
-
zh: string;
|
|
148
|
-
en: string;
|
|
149
|
-
displayName: string;
|
|
150
|
-
id: string;
|
|
151
|
-
};
|
|
152
|
-
Progress: {
|
|
153
|
-
zh: string;
|
|
154
|
-
en: string;
|
|
155
|
-
displayName: string;
|
|
156
|
-
id: string;
|
|
157
|
-
};
|
|
158
|
-
ResizeObserver: {
|
|
159
|
-
zh: string;
|
|
160
|
-
en: string;
|
|
161
|
-
displayName: string;
|
|
162
|
-
id: string;
|
|
163
|
-
};
|
|
164
|
-
Space: {
|
|
165
|
-
zh: string;
|
|
166
|
-
en: string;
|
|
167
|
-
displayName: string;
|
|
168
|
-
id: string;
|
|
169
|
-
};
|
|
170
|
-
SpaceVertical: {
|
|
171
|
-
zh: string;
|
|
172
|
-
en: string;
|
|
173
|
-
displayName: string;
|
|
174
|
-
id: string;
|
|
175
|
-
};
|
|
176
|
-
SpeechSynthesis: {
|
|
177
|
-
zh: string;
|
|
178
|
-
en: string;
|
|
179
|
-
displayName: string;
|
|
180
|
-
id: string;
|
|
181
|
-
};
|
|
182
|
-
SuspenseFallbackTest: {
|
|
183
|
-
zh: string;
|
|
184
|
-
en: string;
|
|
185
|
-
displayName: string;
|
|
186
|
-
id: string;
|
|
187
|
-
};
|
|
188
|
-
Timer: {
|
|
189
|
-
zh: string;
|
|
190
|
-
en: string;
|
|
191
|
-
displayName: string;
|
|
192
|
-
id: string;
|
|
193
|
-
};
|
|
194
|
-
Transition: {
|
|
195
|
-
zh: string;
|
|
196
|
-
en: string;
|
|
197
|
-
displayName: string;
|
|
198
|
-
id: string;
|
|
199
|
-
};
|
|
200
|
-
TransitionCSS: {
|
|
201
|
-
zh: string;
|
|
202
|
-
en: string;
|
|
203
|
-
displayName: string;
|
|
204
|
-
id: string;
|
|
205
|
-
};
|
|
206
|
-
TransitionStyle: {
|
|
207
|
-
zh: string;
|
|
208
|
-
en: string;
|
|
209
|
-
displayName: string;
|
|
210
|
-
id: string;
|
|
211
|
-
};
|
|
212
|
-
TransitionGroup: {
|
|
213
|
-
zh: string;
|
|
214
|
-
en: string;
|
|
215
|
-
displayName: string;
|
|
216
|
-
id: string;
|
|
217
|
-
};
|
|
218
|
-
Typewriter: {
|
|
219
|
-
zh: string;
|
|
220
|
-
en: string;
|
|
221
|
-
displayName: string;
|
|
222
|
-
id: string;
|
|
223
|
-
};
|
|
224
|
-
Animation: {
|
|
225
|
-
zh: string;
|
|
226
|
-
en: string;
|
|
227
|
-
displayName: string;
|
|
228
|
-
id: string;
|
|
229
|
-
};
|
|
27
|
+
BorderBeam: COMPONENT_INFO_TYPE;
|
|
28
|
+
Development: COMPONENT_INFO_TYPE;
|
|
29
|
+
Empty: COMPONENT_INFO_TYPE;
|
|
30
|
+
Flex: COMPONENT_INFO_TYPE;
|
|
31
|
+
FlexVertical: COMPONENT_INFO_TYPE;
|
|
32
|
+
IconFile: COMPONENT_INFO_TYPE;
|
|
33
|
+
Progress: COMPONENT_INFO_TYPE;
|
|
34
|
+
ResizeObserver: COMPONENT_INFO_TYPE;
|
|
35
|
+
Space: COMPONENT_INFO_TYPE;
|
|
36
|
+
SpaceVertical: COMPONENT_INFO_TYPE;
|
|
37
|
+
SpeechSynthesis: COMPONENT_INFO_TYPE;
|
|
38
|
+
SuspenseFallbackTest: COMPONENT_INFO_TYPE;
|
|
39
|
+
Timer: COMPONENT_INFO_TYPE;
|
|
40
|
+
Transition: COMPONENT_INFO_TYPE;
|
|
41
|
+
TransitionCSS: COMPONENT_INFO_TYPE;
|
|
42
|
+
TransitionStyle: COMPONENT_INFO_TYPE;
|
|
43
|
+
TransitionGroup: COMPONENT_INFO_TYPE;
|
|
44
|
+
Typewriter: COMPONENT_INFO_TYPE;
|
|
45
|
+
Animation: COMPONENT_INFO_TYPE;
|
|
230
46
|
};
|
|
231
47
|
export { COMPONENT_NAMES };
|
|
232
48
|
export default COMPONENT_NAMES;
|
package/utils/names.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/reactNode.js
CHANGED
package/utils/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
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,27 +1,32 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import { isElementByInstanceof as e } from "./is.js";
|
|
3
|
-
import { CSS_VARIABLE_ELEMENT as
|
|
4
|
-
import {
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
2
|
+
import { isElementByInstanceof as e, isString as t } from "./is.js";
|
|
3
|
+
import { CSS_VARIABLE_ELEMENT as n } from "./constants.js";
|
|
4
|
+
import { document_exports as r } from "./document.js";
|
|
5
|
+
import { UI_PC_THEME_DARK_CLASS_NAME as i } from "@unicom-cloud/utils/constants/ui";
|
|
5
6
|
//#region components/common/utils/setDarkTheme.ts
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
e(t) &&
|
|
7
|
+
var a = "dark";
|
|
8
|
+
function o(n, i) {
|
|
9
|
+
e(n) && t(i) && (0, r.startViewTransition)(() => {
|
|
10
|
+
n.classList.add(i);
|
|
11
|
+
});
|
|
9
12
|
}
|
|
10
|
-
function
|
|
11
|
-
e(t) &&
|
|
13
|
+
function s(n, i) {
|
|
14
|
+
e(n) && t(i) && (0, r.startViewTransition)(() => {
|
|
15
|
+
n.classList.remove(i);
|
|
16
|
+
});
|
|
12
17
|
}
|
|
13
|
-
function
|
|
14
|
-
let { element:
|
|
15
|
-
return c ===
|
|
16
|
-
|
|
18
|
+
function c(e) {
|
|
19
|
+
let { element: t = n, className: r = i, mode: c = a } = e ?? {};
|
|
20
|
+
return c === a ? o(t, r) : s(t, r), () => {
|
|
21
|
+
s(t, r);
|
|
17
22
|
};
|
|
18
23
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
24
|
+
function l(e) {
|
|
25
|
+
c({
|
|
21
26
|
...e,
|
|
22
27
|
mode: "light"
|
|
23
28
|
});
|
|
24
29
|
}
|
|
25
30
|
//#endregion
|
|
26
|
-
export {
|
|
31
|
+
export { c as default, c as setDarkTheme, l as removeDarkTheme };
|
|
27
32
|
/* 独立思考,明辨是非 */
|
package/utils/setDir.js
CHANGED
package/utils/setPrimaryColor.js
CHANGED
package/utils/setTheme.js
CHANGED
package/utils/string.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
2
2
|
import { isEmptyReactNode as e } from "./is.js";
|
|
3
3
|
import { HYPHEN as t } from "@unicom-cloud/utils/constants/string";
|
|
4
4
|
import { replaceEmptyWithHyphen as n } from "@unicom-cloud/utils/string";
|
package/utils/style.js
CHANGED
package/utils/tinycolor.js
CHANGED
package/utils/toArray.js
CHANGED
package/utils/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
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/tunnel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
2
2
|
import e from "../hooks/use-isomorphic-layout-effect/index.js";
|
|
3
3
|
import t from "../hooks/use-force-update/index.js";
|
|
4
4
|
import n from "./uuid.js";
|
|
@@ -7,8 +7,8 @@ import { useEffect as r, useRef as i } from "react";
|
|
|
7
7
|
function a(a) {
|
|
8
8
|
let o = { children: [] }, s = /* @__PURE__ */ new Set();
|
|
9
9
|
function c() {
|
|
10
|
-
s.forEach((e) => {
|
|
11
|
-
e();
|
|
10
|
+
s.forEach((e, t, n) => {
|
|
11
|
+
e((e) => {});
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
function l(e, t) {
|
|
@@ -43,7 +43,9 @@ function a(a) {
|
|
|
43
43
|
let i = d().map((e, t, n) => e.child);
|
|
44
44
|
return i.length > 1 ? i : i[0];
|
|
45
45
|
}
|
|
46
|
-
return {
|
|
46
|
+
return Object.setPrototypeOf(h, { get children() {
|
|
47
|
+
return d();
|
|
48
|
+
} }), {
|
|
47
49
|
In: m,
|
|
48
50
|
Out: h,
|
|
49
51
|
notify: c,
|
package/utils/tween.js
CHANGED
package/utils/uuid.js
CHANGED
package/utils/validate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
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-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 09:44:14 星期一 山东省济南市 */
|
|
2
2
|
//#region components/common/version/index.ts
|
|
3
3
|
var e = {
|
|
4
4
|
name: "潘启宝",
|
|
5
|
-
date: "2026-06-
|
|
5
|
+
date: "2026-06-29 09:44:13",
|
|
6
6
|
platform: "darwin",
|
|
7
7
|
arch: "arm64",
|
|
8
8
|
hostname: "Mac-mini-2.local",
|
|
@@ -10,9 +10,9 @@ var e = {
|
|
|
10
10
|
cpu: "Apple M4",
|
|
11
11
|
endianness: "LE",
|
|
12
12
|
release: "Darwin25.5.0",
|
|
13
|
-
uptime:
|
|
14
|
-
UUID: "
|
|
15
|
-
mac: "
|
|
13
|
+
uptime: 2583,
|
|
14
|
+
UUID: "76bfb2ae-1113-4715-a919-c4c92f3e0156",
|
|
15
|
+
mac: "66:bd:6d:14:6b:9f",
|
|
16
16
|
version: {
|
|
17
17
|
node: "24.15.0",
|
|
18
18
|
npm: "11.12.1",
|
|
@@ -21,7 +21,7 @@ var e = {
|
|
|
21
21
|
self: "0.0.0",
|
|
22
22
|
react: "19.2.7"
|
|
23
23
|
}
|
|
24
|
-
}, t = "2026-06-
|
|
24
|
+
}, t = "2026-06-29 09:44:13", n = "1782697453546", 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
|
/* 独立思考,明辨是非 */
|