@unicom-cloud/ui-common 0.1.54 → 0.1.55
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 +2 -3
- package/animation/Animation.js +2 -3
- package/animation/constants.js +2 -3
- package/animation/context.js +2 -3
- package/animation/index.js +2 -3
- package/animation/style/index.js +1 -1
- package/animation/utils.js +1 -1
- package/base/Base.js +2 -3
- package/base/constants.js +1 -1
- package/base/context.js +2 -3
- package/base/index.js +2 -3
- package/base/style/index.js +1 -1
- package/base/utils.js +1 -1
- package/border-beam/BorderBeam.js +2 -3
- package/border-beam/Effect.js +2 -3
- package/border-beam/constants.js +2 -3
- package/border-beam/context.js +2 -3
- package/border-beam/hooks/useBorderSize.js +2 -3
- package/border-beam/hooks/useChildDom.js +2 -3
- package/border-beam/index.js +2 -3
- package/border-beam/style/index.js +1 -1
- package/border-beam/utils.js +2 -3
- package/development/Development.js +2 -3
- package/development/constants.js +1 -1
- package/development/context.js +2 -3
- package/development/index.js +2 -3
- package/development/style/index.js +1 -1
- package/development/utils.js +1 -1
- package/empty/Empty.js +2 -3
- package/empty/constants.js +1 -1
- package/empty/context.js +2 -3
- package/empty/index.js +2 -3
- package/empty/style/index.js +1 -1
- package/empty/utils.js +1 -1
- package/flex/Flex.js +2 -3
- package/flex/FlexVertical.js +2 -3
- package/flex/constants.js +1 -1
- package/flex/context.js +2 -3
- package/flex/index.js +2 -3
- package/flex/style/index.js +1 -1
- package/flex/utils.js +2 -3
- package/grid/Grid.js +2 -3
- package/grid/Item.js +2 -3
- package/grid/constants.js +1 -1
- package/grid/context.js +2 -3
- package/grid/index.js +2 -3
- package/grid/style/index.js +1 -1
- package/grid/utils.js +2 -3
- package/higher-order/with-speech-synthesis/context.js +2 -3
- package/higher-order/with-speech-synthesis/index.js +2 -3
- package/higher-order/with-speech-synthesis/style/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +2 -3
- package/hoc/withContext.js +2 -3
- package/hooks/create-deep-compare-effect/index.js +2 -3
- package/hooks/create-update-effect/index.js +2 -3
- package/hooks/create-use-storage-state/index.js +2 -3
- package/hooks/index.js +1 -1
- package/hooks/use-async-effect/index.js +2 -3
- package/hooks/use-boolean/index.js +2 -3
- package/hooks/use-click-away/index.js +2 -3
- package/hooks/use-computed-state/index.js +2 -3
- package/hooks/use-controllable-value/index.js +2 -3
- package/hooks/use-cookie-state/index.js +2 -3
- package/hooks/use-count-down/index.js +2 -3
- package/hooks/use-counter/index.js +2 -3
- package/hooks/use-create/index.js +2 -3
- package/hooks/use-creation/index.js +3 -4
- package/hooks/use-debounce/index.js +2 -3
- package/hooks/use-debounce-effect/index.js +2 -3
- package/hooks/use-debounce-fn/index.js +2 -3
- package/hooks/use-deep-compare-effect/index.js +2 -3
- package/hooks/use-deep-compare-layout-effect/index.js +2 -3
- package/hooks/use-document-visibility/index.js +2 -3
- package/hooks/use-drag/index.js +2 -3
- package/hooks/use-drag-move/index.js +2 -3
- package/hooks/use-drop/index.js +2 -3
- package/hooks/use-effect-event/index.js +2 -3
- package/hooks/use-event/index.js +2 -3
- package/hooks/use-event-emitter/index.js +2 -3
- package/hooks/use-event-listener/index.js +2 -3
- package/hooks/use-event-target/index.js +2 -3
- package/hooks/use-external/index.js +2 -3
- package/hooks/use-favicon/index.js +2 -3
- package/hooks/use-focus-within/index.js +2 -3
- package/hooks/use-force-update/index.js +2 -3
- package/hooks/use-fullscreen/index.js +2 -3
- package/hooks/use-get-state/index.js +2 -3
- package/hooks/use-history-travel/index.js +2 -3
- package/hooks/use-hover/index.js +2 -3
- package/hooks/use-id/index.js +2 -3
- package/hooks/use-in-viewport/index.js +17 -18
- package/hooks/use-infinite-scroll/index.js +2 -3
- package/hooks/use-intersection-observer/index.js +2 -3
- package/hooks/use-intersection-observers/index.js +19 -20
- package/hooks/use-interval/index.js +2 -3
- package/hooks/use-is-first-render/index.js +2 -3
- package/hooks/use-isomorphic-layout-effect/index.js +2 -3
- package/hooks/use-key-press/index.js +2 -3
- package/hooks/use-keyboard-event/index.js +2 -3
- package/hooks/use-latest/index.js +2 -3
- package/hooks/use-listen-window-resize/index.js +2 -3
- package/hooks/use-local-storage-state/index.js +2 -3
- package/hooks/use-lock-fn/index.js +2 -3
- package/hooks/use-long-press/index.js +2 -3
- package/hooks/use-map/index.js +2 -3
- package/hooks/use-media/index.js +2 -3
- package/hooks/use-memo/index.js +2 -3
- package/hooks/use-memoized-fn/index.js +2 -3
- package/hooks/use-merge-component-props/index.js +2 -3
- package/hooks/use-merge-value/index.js +2 -3
- package/hooks/use-mobile/index.js +2 -3
- package/hooks/use-mount/index.js +2 -3
- package/hooks/use-mouse/index.js +2 -3
- package/hooks/use-mutation-observer/index.js +2 -3
- package/hooks/use-mutation-observers/index.js +19 -20
- package/hooks/use-network/index.js +2 -3
- package/hooks/use-online-status/index.js +2 -3
- package/hooks/use-overflow-hidden/index.js +2 -3
- package/hooks/use-override-ref/index.js +2 -3
- package/hooks/use-pagination/index.js +2 -3
- package/hooks/use-paste-file/index.js +2 -3
- package/hooks/use-paste-image/index.js +2 -3
- package/hooks/use-persist-callback/index.js +2 -3
- package/hooks/use-prefers-color-scheme-dark/index.js +2 -3
- package/hooks/use-previous/index.js +2 -3
- package/hooks/use-raf-interval/index.js +2 -3
- package/hooks/use-raf-state/index.js +2 -3
- package/hooks/use-raf-timeout/index.js +2 -3
- package/hooks/use-reactive/index.js +2 -3
- package/hooks/use-ref-latest/index.js +2 -3
- package/hooks/use-ref-map/index.js +2 -3
- package/hooks/use-refs/index.js +2 -3
- package/hooks/use-request/index.js +2 -3
- package/hooks/use-request/src/Fetch.js +2 -3
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useCachePlugin.js +2 -3
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -3
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +2 -3
- package/hooks/use-request/src/plugins/usePollingPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useRetryPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +2 -3
- package/hooks/use-request/src/useRequest.js +2 -3
- package/hooks/use-request/src/useRequestImplement.js +2 -3
- package/hooks/use-request/src/utils/cache.js +2 -3
- package/hooks/use-request/src/utils/cachePromise.js +2 -3
- package/hooks/use-request/src/utils/cacheSubscribe.js +2 -3
- package/hooks/use-request/src/utils/isDocumentVisible.js +2 -3
- package/hooks/use-request/src/utils/isOnline.js +2 -3
- package/hooks/use-request/src/utils/limit.js +2 -3
- package/hooks/use-request/src/utils/subscribeFocus.js +2 -3
- package/hooks/use-request/src/utils/subscribeReVisible.js +2 -3
- package/hooks/use-reset-state/index.js +2 -3
- package/hooks/use-resize-observer/index.js +2 -3
- package/hooks/use-resize-observers/index.js +19 -20
- package/hooks/use-responsive/index.js +2 -3
- package/hooks/use-safe-state/index.js +2 -3
- package/hooks/use-scroll/index.js +2 -3
- package/hooks/use-selections/index.js +2 -3
- package/hooks/use-session-storage-state/index.js +2 -3
- package/hooks/use-set/index.js +2 -3
- package/hooks/use-set-state/index.js +2 -3
- package/hooks/use-size/index.js +2 -3
- package/hooks/use-state-callback/index.js +3 -4
- package/hooks/use-state-with-promise/index.js +2 -3
- package/hooks/use-sync-state/index.js +2 -3
- package/hooks/use-text-selection/index.js +2 -3
- package/hooks/use-theme/index.js +2 -3
- package/hooks/use-throttle/index.js +2 -3
- package/hooks/use-throttle-effect/index.js +2 -3
- package/hooks/use-throttle-fn/index.js +2 -3
- package/hooks/use-throttle-fn-with-raf/index.js +2 -3
- package/hooks/use-timeout/index.js +2 -3
- package/hooks/use-title/index.js +2 -3
- package/hooks/use-toggle/index.js +2 -3
- package/hooks/use-tracked-effect/index.js +2 -3
- package/hooks/use-unmount/index.js +2 -3
- package/hooks/use-unmounted-ref/index.js +2 -3
- package/hooks/use-update/index.js +2 -3
- package/hooks/use-update-effect/index.js +2 -3
- package/hooks/use-update-layout-effect/index.js +2 -3
- package/hooks/use-url-state/index.js +2 -3
- package/hooks/use-virtual-list/index.js +2 -3
- package/hooks/use-watch/index.js +2 -3
- package/hooks/use-web-socket/index.js +3 -4
- package/hooks/use-why-did-you-update/index.js +2 -3
- package/hooks/use-window-size/index.js +2 -3
- package/hooks/utils/createEffectWithTarget.js +3 -4
- package/hooks/utils/depsAreSame.js +2 -3
- package/hooks/utils/depsEqual.js +2 -3
- package/hooks/utils/domTarget.js +2 -3
- package/hooks/utils/getDocumentOrShadow.js +2 -3
- package/hooks/utils/index.js +2 -3
- package/hooks/utils/isAppleDevice.js +2 -3
- package/hooks/utils/isBrowser.js +2 -3
- package/hooks/utils/isDev.js +2 -3
- package/hooks/utils/rect.js +2 -3
- package/hooks/utils/useDeepCompareWithTarget.js +2 -3
- package/hooks/utils/useEffectWithTarget.js +2 -3
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +2 -3
- package/hooks/utils/useLayoutEffectWithTarget.js +2 -3
- package/icons/file/File.js +2 -3
- package/icons/file/context.js +2 -3
- package/icons/file/index.js +2 -3
- package/icons/file/style/index.js +1 -1
- package/index.js +554 -554
- package/morphicons/core/interpolate.js +2 -3
- package/morphicons/core/normalize.js +2 -3
- package/morphicons/core/parse.js +0 -1
- package/morphicons/core/plan.js +0 -1
- package/morphicons/core/resample.js +2 -3
- package/morphicons/core/serialize.js +2 -3
- package/morphicons/core/spring.js +2 -3
- package/morphicons/dom/index.js +2 -3
- package/morphicons/index.js +1 -1
- package/morphicons/react/index.js +3 -4
- package/package.json +1 -1
- package/progress/Progress.js +40 -41
- package/progress/constants.js +1 -1
- package/progress/context.js +1 -1
- package/progress/index.js +2 -3
- package/progress/style/index.js +1 -1
- package/progress/utils.js +1 -1
- package/resize-observer/Collection.js +2 -3
- package/resize-observer/ResizeObserver.js +2 -3
- package/resize-observer/SingleObserver.js +2 -3
- package/resize-observer/constants.js +1 -1
- package/resize-observer/context.js +2 -3
- package/resize-observer/index.js +2 -3
- package/resize-observer/observerUtil.js +2 -3
- package/resize-observer/style/index.js +1 -1
- package/resize-observer/utils.js +1 -1
- package/space/Space.js +2 -3
- package/space/SpaceVertical.js +2 -3
- package/space/constants.js +1 -1
- package/space/context.js +2 -3
- package/space/index.js +2 -3
- package/space/style/index.js +1 -1
- package/space/utils.js +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +2 -3
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +2 -3
- package/suspense-fallback-test/index.js +2 -3
- package/suspense-fallback-test/style/index.js +1 -1
- package/suspense-fallback-test/utils.js +1 -1
- package/test.js +2 -3
- package/timer/Timer.js +2 -3
- package/timer/constants.js +1 -1
- package/timer/context.js +2 -3
- package/timer/index.js +2 -3
- package/timer/style/index.js +1 -1
- package/timer/utils.js +1 -1
- package/transition/Transition.js +2 -3
- package/transition/TransitionCSS.js +2 -3
- package/transition/TransitionGroup.js +2 -3
- package/transition/TransitionStyle.js +2 -3
- package/transition/constants.js +2 -3
- package/transition/context.js +2 -3
- package/transition/index.js +2 -3
- package/transition/style/index.js +1 -1
- package/transition/utils.js +2 -3
- package/utils/call.d.ts +1 -0
- package/utils/call.js +3 -0
- package/utils/callbackOriginRef.js +2 -3
- package/utils/confetti.js +2 -3
- package/utils/constants.js +2 -3
- package/utils/copy.js +2 -3
- package/utils/createRoot.js +3 -4
- package/utils/css.js +1 -1
- package/utils/dayjs.js +1 -2
- package/utils/document.js +2 -3
- package/utils/dom.js +2 -3
- package/utils/file.js +1 -1
- package/utils/fillNBSP.js +2 -3
- package/utils/getCompatProp.js +2 -3
- package/utils/getElement.js +2 -3
- package/utils/getHighlightText.js +2 -3
- package/utils/getHotkeyHandler.js +2 -3
- package/utils/getPrefixCls.js +2 -3
- package/utils/getScrollBarHeight.js +2 -3
- package/utils/getScrollBarSize.js +2 -3
- package/utils/getScrollBarWidth.js +2 -3
- package/utils/getScrollParent.js +2 -3
- package/utils/getStringLength.js +2 -3
- package/utils/getUrlSearchParam.js +2 -3
- package/utils/index.d.ts +1 -1
- package/utils/index.js +268 -268
- package/utils/initAllLineClamp.js +2 -3
- package/utils/injectLineClamp.js +2 -3
- package/utils/intersectionObserver.js +2 -3
- package/utils/is.js +2 -3
- package/utils/keyboardCode.js +2 -3
- package/utils/lodash.js +1 -1
- package/utils/mergeProps.js +2 -3
- package/utils/mergedToString.js +2 -3
- package/utils/migrateLegacyProps.js +2 -3
- package/utils/mutationObserver.js +2 -3
- package/utils/names.js +2 -3
- package/utils/object.js +2 -3
- package/utils/omit.js +2 -3
- package/utils/pad.js +2 -3
- package/utils/pick.js +2 -3
- package/utils/react19Adapter.js +2 -3
- package/utils/reactNode.js +2 -3
- package/utils/ref.js +2 -3
- package/utils/resizeObserver.js +2 -3
- package/utils/scrollIntoViewIfNeeded.js +2 -3
- package/utils/scrollTo.js +2 -3
- package/utils/setDarkTheme.js +2 -3
- package/utils/setDir.js +2 -3
- package/utils/setPrimaryColor.js +2 -3
- package/utils/setTheme.js +2 -3
- package/utils/string.js +2 -3
- package/utils/style.js +2 -3
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +2 -3
- package/utils/tunnel.js +2 -3
- package/utils/warning.js +2 -3
- package/version/index.js +8 -9
- package/utils/callOrReturn.d.ts +0 -1
- package/utils/callOrReturn.js +0 -3
package/grid/Grid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../hooks/use-merge-component-props/index.js";
|
|
4
4
|
import t from "../utils/className.js";
|
|
@@ -10,7 +10,7 @@ import { resolveGridTemplateColumns as c } from "./utils.js";
|
|
|
10
10
|
import { forwardRef as l, useContext as u, useEffect as d, useImperativeHandle as f, useRef as p } from "react";
|
|
11
11
|
import { isExist as m, isNil as h } from "@unicom-cloud/utils/is";
|
|
12
12
|
import { jsx as g } from "react/jsx-runtime";
|
|
13
|
-
|
|
13
|
+
// components/common/grid/Grid.tsx
|
|
14
14
|
function _(r, l) {
|
|
15
15
|
let _ = u(o), v = u(a), y = n("grid"), b = p(null), x = e({
|
|
16
16
|
internalProps: r,
|
|
@@ -52,7 +52,6 @@ function _(r, l) {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
var v = Object.assign(l(_), { ...r });
|
|
55
|
-
//#endregion
|
|
56
55
|
export { v as default };
|
|
57
56
|
/* 欲穷千里目,更上一层楼 */
|
|
58
57
|
/* 独立思考,明辨是非 */
|
package/grid/Item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { getDOM as e } from "../utils/dom.js";
|
|
4
4
|
import t from "../hooks/use-merge-component-props/index.js";
|
|
@@ -10,7 +10,7 @@ import { resolveItemData as c } from "./utils.js";
|
|
|
10
10
|
import { forwardRef as l, useContext as u, useEffect as d, useImperativeHandle as f, useRef as p } from "react";
|
|
11
11
|
import { isExist as m, isNumber as h } from "@unicom-cloud/utils/is";
|
|
12
12
|
import { jsx as g } from "react/jsx-runtime";
|
|
13
|
-
|
|
13
|
+
// components/common/grid/Item.tsx
|
|
14
14
|
function _(i, l) {
|
|
15
15
|
let _ = u(o), { columnGap: v, columns: y } = u(a), b = r("grid-item"), x = p(null), { style: S, className: C, children: w, offset: T, span: E, area: D, order: O, column: k, row: A, columnStart: j, columnEnd: M, rowStart: N, rowEnd: P, justifySelf: F, alignSelf: I, placeSelf: L } = t({
|
|
16
16
|
internalProps: i,
|
|
@@ -34,7 +34,6 @@ function _(i, l) {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
var v = Object.assign(l(_), { ...i });
|
|
37
|
-
//#endregion
|
|
38
37
|
export { v as default };
|
|
39
38
|
/* 欲穷千里目,更上一层楼 */
|
|
40
39
|
/* 独立思考,明辨是非 */
|
package/grid/constants.js
CHANGED
package/grid/context.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { GAP_SIZE_MAP as e } from "../flex/utils.js";
|
|
4
4
|
import { createContext as t } from "react";
|
|
5
|
-
|
|
5
|
+
// components/common/grid/context.ts
|
|
6
6
|
var n = t({}), r = { gap: e.small }, i = t({}), a = {
|
|
7
7
|
offset: 0,
|
|
8
8
|
span: 1
|
|
9
9
|
}, o = t({});
|
|
10
|
-
//#endregion
|
|
11
10
|
export { n as GridContext, i as PropsContext, o as PropsContextGridItem, r as defaultProps, a as defaultPropsGridItem };
|
|
12
11
|
/* 欲穷千里目,更上一层楼 */
|
|
13
12
|
/* 独立思考,明辨是非 */
|
package/grid/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { COMPONENT_INFO_GRID as e } from "../utils/names.js";
|
|
4
4
|
import "./style/index.js";
|
|
5
5
|
import { GridContext as t, PropsContext as n } from "./context.js";
|
|
6
6
|
import r from "./Grid.js";
|
|
7
7
|
import i from "./Item.js";
|
|
8
|
-
|
|
8
|
+
// components/common/grid/index.ts
|
|
9
9
|
var a = Object.assign(r, {
|
|
10
10
|
...e,
|
|
11
11
|
PropsContext: n,
|
|
12
12
|
Item: i,
|
|
13
13
|
Context: t
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { t as GridContext, i as GridItem, a as default };
|
|
17
16
|
/* 欲穷千里目,更上一层楼 */
|
|
18
17
|
/* 独立思考,明辨是非 */
|
package/grid/style/index.js
CHANGED
package/grid/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { isExist as e, isNumber as t, isPlainObject as n, isString as r } from "@unicom-cloud/utils/is";
|
|
4
|
-
|
|
4
|
+
// components/common/grid/utils.ts
|
|
5
5
|
function i(e, { span: t, offset: n }) {
|
|
6
6
|
let r = t ?? 1, i = n ?? 0, a = Math.min(i, e);
|
|
7
7
|
return {
|
|
@@ -20,7 +20,6 @@ function a(i) {
|
|
|
20
20
|
} else o = `repeat(${a}, minmax(0px, 1fr))`;
|
|
21
21
|
return o;
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { a as resolveGridTemplateColumns, i as resolveItemData };
|
|
25
24
|
/* 欲穷千里目,更上一层楼 */
|
|
26
25
|
/* 独立思考,明辨是非 */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { createContext as e } from "react";
|
|
4
|
-
|
|
4
|
+
// components/common/higher-order/with-speech-synthesis/context.ts
|
|
5
5
|
var t = {}, n = e({});
|
|
6
|
-
//#endregion
|
|
7
6
|
export { n as PropsContext, t as defaultProps };
|
|
8
7
|
/* 欲穷千里目,更上一层楼 */
|
|
9
8
|
/* 独立思考,明辨是非 */
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { COMPONENT_INFO_SPEECH_SYNTHESIS as e } from "../../utils/names.js";
|
|
4
4
|
import "./style/index.js";
|
|
5
5
|
import { PropsContext as t } from "./context.js";
|
|
6
6
|
import n from "./withSpeechSynthesis.js";
|
|
7
|
-
|
|
7
|
+
// components/common/higher-order/with-speech-synthesis/index.ts
|
|
8
8
|
var r = Object.assign(n, {
|
|
9
9
|
...e,
|
|
10
10
|
PropsContext: t
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { r as default };
|
|
14
13
|
/* 欲穷千里目,更上一层楼 */
|
|
15
14
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../../hooks/use-merge-component-props/index.js";
|
|
4
4
|
import { COMPONENT_INFO_SPEECH_SYNTHESIS as t } from "../../utils/names.js";
|
|
@@ -9,7 +9,7 @@ import p from "@unicom-cloud/icons/IconUiMute";
|
|
|
9
9
|
import m from "@unicom-cloud/icons/IconUiPauseCircleFill";
|
|
10
10
|
import h from "@unicom-cloud/icons/IconUiPlayCircleFill";
|
|
11
11
|
import g from "@unicom-cloud/icons/IconUiSound";
|
|
12
|
-
|
|
12
|
+
// components/common/higher-order/with-speech-synthesis/withSpeechSynthesis.tsx
|
|
13
13
|
function _(_) {
|
|
14
14
|
let v = i((t, i) => {
|
|
15
15
|
let a = s(n), { useButton: v = !0, buttonProps: y = {}, ...b } = e({
|
|
@@ -81,7 +81,6 @@ function _(_) {
|
|
|
81
81
|
displayName: `WithSpeechSynthesis.${_.displayName || _.name || t.displayName}`
|
|
82
82
|
}), a(v);
|
|
83
83
|
}
|
|
84
|
-
//#endregion
|
|
85
84
|
export { _ as default };
|
|
86
85
|
/* 欲穷千里目,更上一层楼 */
|
|
87
86
|
/* 独立思考,明辨是非 */
|
package/hoc/withContext.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as e } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// components/common/hoc/withContext.tsx
|
|
6
6
|
function t(t) {
|
|
7
7
|
return function(n) {
|
|
8
8
|
return (r) => t.reduceRight((t, n) => (r) => /* @__PURE__ */ e(n.ctx.Consumer, { children: (e) => t({
|
|
@@ -14,7 +14,6 @@ function t(t) {
|
|
|
14
14
|
}))({});
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { t as default };
|
|
19
18
|
/* 欲穷千里目,更上一层楼 */
|
|
20
19
|
/* 独立思考,明辨是非 */
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { depsEqual as e } from "../utils/depsEqual.js";
|
|
4
4
|
import { useRef as t } from "react";
|
|
5
5
|
import { isUndefined as n } from "@unicom-cloud/utils/is";
|
|
6
|
-
|
|
6
|
+
// components/common/hooks/create-deep-compare-effect/index.ts
|
|
7
7
|
var r = (r) => (i, a) => {
|
|
8
8
|
let o = t(void 0), s = t(0);
|
|
9
9
|
(n(a) || !e(a, o.current)) && (s.current += 1), o.current = a, r(i, [s.current]);
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { r as default };
|
|
13
12
|
/* 欲穷千里目,更上一层楼 */
|
|
14
13
|
/* 独立思考,明辨是非 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { useRef as e } from "react";
|
|
4
|
-
|
|
4
|
+
// components/common/hooks/create-update-effect/index.ts
|
|
5
5
|
function t(t) {
|
|
6
6
|
return (n, r) => {
|
|
7
7
|
let i = e(!1);
|
|
@@ -10,7 +10,6 @@ function t(t) {
|
|
|
10
10
|
}, []), t(() => i.current ? n() : (i.current = !0, () => {}), r);
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { t as default };
|
|
15
14
|
/* 欲穷千里目,更上一层楼 */
|
|
16
15
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-memoized-fn/index.js";
|
|
4
4
|
import t from "../use-update-effect/index.js";
|
|
@@ -6,7 +6,7 @@ import n from "../use-event-listener/index.js";
|
|
|
6
6
|
import r from "../use-mount/index.js";
|
|
7
7
|
import { useRef as i, useState as a } from "react";
|
|
8
8
|
import { isFunction as o, isUndefined as s } from "@unicom-cloud/utils/is";
|
|
9
|
-
|
|
9
|
+
// components/common/hooks/create-use-storage-state/index.ts
|
|
10
10
|
var c = "PQB_HOOKS_SYNC_STORAGE_EVENT_NAME";
|
|
11
11
|
function l(l) {
|
|
12
12
|
function u(u, d = {}) {
|
|
@@ -64,7 +64,6 @@ function l(l) {
|
|
|
64
64
|
}
|
|
65
65
|
return u;
|
|
66
66
|
}
|
|
67
|
-
//#endregion
|
|
68
67
|
export { c as SYNC_STORAGE_EVENT_NAME, l as default };
|
|
69
68
|
/* 欲穷千里目,更上一层楼 */
|
|
70
69
|
/* 独立思考,明辨是非 */
|
package/hooks/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { useEffect as e } from "react";
|
|
4
4
|
import { isFunction as t } from "@unicom-cloud/utils/is";
|
|
5
|
-
|
|
5
|
+
// components/common/hooks/use-async-effect/index.ts
|
|
6
6
|
function n(e) {
|
|
7
7
|
return t(e[Symbol.asyncIterator]);
|
|
8
8
|
}
|
|
@@ -20,7 +20,6 @@ function r(r, i) {
|
|
|
20
20
|
};
|
|
21
21
|
}, i);
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { r as default };
|
|
25
24
|
/* 欲穷千里目,更上一层楼 */
|
|
26
25
|
/* 独立思考,明辨是非 */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-toggle/index.js";
|
|
4
4
|
import { useMemo as t } from "react";
|
|
5
|
-
|
|
5
|
+
// components/common/hooks/use-boolean/index.ts
|
|
6
6
|
function n(n = !1) {
|
|
7
7
|
let [r, { toggle: i, set: a }] = e(!!n);
|
|
8
8
|
return [r, t(() => ({
|
|
@@ -12,7 +12,6 @@ function n(n = !1) {
|
|
|
12
12
|
setFalse: () => a(!1)
|
|
13
13
|
}), [])];
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { n as default };
|
|
17
16
|
/* 欲穷千里目,更上一层楼 */
|
|
18
17
|
/* 独立思考,明辨是非 */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-latest/index.js";
|
|
4
4
|
import t from "../utils/domTarget.js";
|
|
5
5
|
import n from "../utils/getDocumentOrShadow.js";
|
|
6
6
|
import r from "../utils/useEffectWithTarget.js";
|
|
7
7
|
import i from "lodash/castArray";
|
|
8
|
-
|
|
8
|
+
// components/common/hooks/use-click-away/index.ts
|
|
9
9
|
function a(a, o, s = "click") {
|
|
10
10
|
let c = e(a);
|
|
11
11
|
r(() => {
|
|
@@ -24,7 +24,6 @@ function a(a, o, s = "click") {
|
|
|
24
24
|
};
|
|
25
25
|
}, i(s), o);
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { a as default };
|
|
29
28
|
/* 欲穷千里目,更上一层楼 */
|
|
30
29
|
/* 独立思考,明辨是非 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { useEffect as e, useState as t } from "react";
|
|
4
|
-
|
|
4
|
+
// components/common/hooks/use-computed-state/index.ts
|
|
5
5
|
function n(n, r) {
|
|
6
6
|
let [i, a] = t(n());
|
|
7
7
|
return e(() => {
|
|
@@ -9,7 +9,6 @@ function n(n, r) {
|
|
|
9
9
|
a(e);
|
|
10
10
|
}, [r]), i;
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { n as default };
|
|
14
13
|
/* 欲穷千里目,更上一层楼 */
|
|
15
14
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { object_exports as e } from "../../utils/object.js";
|
|
4
4
|
import t from "../use-memoized-fn/index.js";
|
|
@@ -6,7 +6,7 @@ import n from "../use-previous/index.js";
|
|
|
6
6
|
import r from "../use-update/index.js";
|
|
7
7
|
import { useEffect as i, useMemo as a, useRef as o } from "react";
|
|
8
8
|
import { isFunction as s, isNotUndefined as c, isString as l } from "@unicom-cloud/utils/is";
|
|
9
|
-
|
|
9
|
+
// components/common/hooks/use-controllable-value/index.ts
|
|
10
10
|
function u(t, n, r) {
|
|
11
11
|
return r ? (0, e.hasOwn)(t, n) : c(t[n]);
|
|
12
12
|
}
|
|
@@ -40,7 +40,6 @@ function d(e = {}, c = {}) {
|
|
|
40
40
|
k()
|
|
41
41
|
];
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { d as default };
|
|
45
44
|
/* 欲穷千里目,更上一层楼 */
|
|
46
45
|
/* 独立思考,明辨是非 */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-memoized-fn/index.js";
|
|
4
4
|
import { useState as t } from "react";
|
|
5
5
|
import { isFunction as n, isString as r, isUndefined as i } from "@unicom-cloud/utils/is";
|
|
6
6
|
import a from "@unicom-cloud/utils/cookie";
|
|
7
|
-
|
|
7
|
+
// components/common/hooks/use-cookie-state/index.ts
|
|
8
8
|
function o(o, s = {}) {
|
|
9
9
|
let [c, l] = t(() => {
|
|
10
10
|
let e = a.get(o);
|
|
@@ -18,7 +18,6 @@ function o(o, s = {}) {
|
|
|
18
18
|
l(d), i(d) ? a.remove(o) : a.set(o, d, u);
|
|
19
19
|
})];
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { o as default };
|
|
23
22
|
/* 欲穷千里目,更上一层楼 */
|
|
24
23
|
/* 独立思考,明辨是非 */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-latest/index.js";
|
|
4
4
|
import { useEffect as t, useMemo as n, useState as r } from "react";
|
|
5
5
|
import { isNumber as i } from "@unicom-cloud/utils/is";
|
|
6
6
|
import a from "dayjs";
|
|
7
|
-
|
|
7
|
+
// components/common/hooks/use-count-down/index.ts
|
|
8
8
|
var o = (e) => {
|
|
9
9
|
if (!e) return 0;
|
|
10
10
|
let t = a(e).valueOf() - Date.now();
|
|
@@ -30,7 +30,6 @@ var o = (e) => {
|
|
|
30
30
|
return () => clearInterval(e);
|
|
31
31
|
}, [p, u]), [m, n(() => s(m), [m])];
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
export { c as default };
|
|
35
34
|
/* 欲穷千里目,更上一层楼 */
|
|
36
35
|
/* 独立思考,明辨是非 */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-memoized-fn/index.js";
|
|
4
4
|
import { useState as t } from "react";
|
|
5
5
|
import { isNumber as n } from "@unicom-cloud/utils/is";
|
|
6
|
-
|
|
6
|
+
// components/common/hooks/use-counter/index.ts
|
|
7
7
|
function r(e, t = {}) {
|
|
8
8
|
let { min: r, max: i } = t, a = e;
|
|
9
9
|
return n(i) && (a = Math.min(i, a)), n(r) && (a = Math.max(r, a)), a;
|
|
@@ -33,7 +33,6 @@ function i(i = 0, a = {}) {
|
|
|
33
33
|
})
|
|
34
34
|
}];
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { i as default };
|
|
38
37
|
/* 欲穷千里目,更上一层楼 */
|
|
39
38
|
/* 独立思考,明辨是非 */
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { useRef as e } from "react";
|
|
4
|
-
|
|
4
|
+
// components/common/hooks/use-create/index.ts
|
|
5
5
|
function t(t) {
|
|
6
6
|
let n = e(!1);
|
|
7
7
|
n.current === !1 && (t(), n.current = !0);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { t as default };
|
|
11
10
|
/* 欲穷千里目,更上一层楼 */
|
|
12
11
|
/* 独立思考,明辨是非 */
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../utils/depsAreSame.js";
|
|
4
4
|
import { useRef as t } from "react";
|
|
5
|
-
|
|
5
|
+
// components/common/hooks/use-creation/index.ts
|
|
6
6
|
var n = (n, r) => {
|
|
7
7
|
let { current: i } = t({
|
|
8
8
|
deps: r,
|
|
9
9
|
obj: void 0,
|
|
10
10
|
initialized: !1
|
|
11
11
|
});
|
|
12
|
-
return
|
|
12
|
+
return i.initialized !== !1 && e(i.deps, r) || (i.deps = r, i.obj = n(), i.initialized = !0), i.obj;
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { n as default };
|
|
16
15
|
/* 欲穷千里目,更上一层楼 */
|
|
17
16
|
/* 独立思考,明辨是非 */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-debounce-fn/index.js";
|
|
4
4
|
import { useEffect as t, useState as n } from "react";
|
|
5
|
-
|
|
5
|
+
// components/common/hooks/use-debounce/index.ts
|
|
6
6
|
function r(r, i) {
|
|
7
7
|
let [a, o] = n(r), { run: s } = e(() => {
|
|
8
8
|
o(r);
|
|
@@ -11,7 +11,6 @@ function r(r, i) {
|
|
|
11
11
|
s();
|
|
12
12
|
}, [r]), a;
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { r as default };
|
|
16
15
|
/* 欲穷千里目,更上一层楼 */
|
|
17
16
|
/* 独立思考,明辨是非 */
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-debounce-fn/index.js";
|
|
4
4
|
import t from "../use-update-effect/index.js";
|
|
5
5
|
import { useEffect as n, useState as r } from "react";
|
|
6
|
-
|
|
6
|
+
// components/common/hooks/use-debounce-effect/index.ts
|
|
7
7
|
function i(i, a, o) {
|
|
8
8
|
let [s, c] = r({}), { run: l } = e(() => {
|
|
9
9
|
c({});
|
|
10
10
|
}, o);
|
|
11
11
|
n(() => l(), a), t(i, [s]);
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { i as default };
|
|
15
14
|
/* 欲穷千里目,更上一层楼 */
|
|
16
15
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-latest/index.js";
|
|
4
4
|
import t from "../utils/isDev.js";
|
|
@@ -6,7 +6,7 @@ import n from "../use-unmount/index.js";
|
|
|
6
6
|
import { useMemo as r } from "react";
|
|
7
7
|
import { isFunction as i } from "@unicom-cloud/utils/is";
|
|
8
8
|
import a from "lodash/debounce";
|
|
9
|
-
|
|
9
|
+
// components/common/hooks/use-debounce-fn/index.ts
|
|
10
10
|
function o(o, s) {
|
|
11
11
|
t && (i(o) || console.error(`useDebounceFn expected parameter is a function, got ${typeof o}`));
|
|
12
12
|
let c = e(o), l = s?.wait ?? 1e3, u = r(() => a((...e) => c.current(...e), l, s), []);
|
|
@@ -18,7 +18,6 @@ function o(o, s) {
|
|
|
18
18
|
flush: u.flush
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { o as default };
|
|
23
22
|
/* 欲穷千里目,更上一层楼 */
|
|
24
23
|
/* 独立思考,明辨是非 */
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../create-deep-compare-effect/index.js";
|
|
4
4
|
import { useEffect as t } from "react";
|
|
5
|
-
|
|
5
|
+
// components/common/hooks/use-deep-compare-effect/index.tsx
|
|
6
6
|
var n = e(t);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { n as default };
|
|
9
8
|
/* 欲穷千里目,更上一层楼 */
|
|
10
9
|
/* 独立思考,明辨是非 */
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../create-deep-compare-effect/index.js";
|
|
4
4
|
import { useLayoutEffect as t } from "react";
|
|
5
|
-
|
|
5
|
+
// components/common/hooks/use-deep-compare-layout-effect/index.tsx
|
|
6
6
|
var n = e(t);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { n as default };
|
|
9
8
|
/* 欲穷千里目,更上一层楼 */
|
|
10
9
|
/* 独立思考,明辨是非 */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../utils/isBrowser.js";
|
|
4
4
|
import t from "../use-event-listener/index.js";
|
|
5
5
|
import { useState as n } from "react";
|
|
6
|
-
|
|
6
|
+
// components/common/hooks/use-document-visibility/index.ts
|
|
7
7
|
var r = () => e ? document.visibilityState : "visible";
|
|
8
8
|
function i() {
|
|
9
9
|
let [e, i] = n(r);
|
|
@@ -11,7 +11,6 @@ function i() {
|
|
|
11
11
|
i(r());
|
|
12
12
|
}, { target: () => document }), e;
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { i as default };
|
|
16
15
|
/* 欲穷千里目,更上一层楼 */
|
|
17
16
|
/* 独立思考,明辨是非 */
|
package/hooks/use-drag/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../use-latest/index.js";
|
|
4
4
|
import t from "../utils/domTarget.js";
|
|
@@ -6,7 +6,7 @@ import n from "../utils/useEffectWithTarget.js";
|
|
|
6
6
|
import r from "../use-mount/index.js";
|
|
7
7
|
import { useRef as i } from "react";
|
|
8
8
|
import { isString as a } from "@unicom-cloud/utils/is";
|
|
9
|
-
|
|
9
|
+
// components/common/hooks/use-drag/index.ts
|
|
10
10
|
var o = (o, s, c = {}) => {
|
|
11
11
|
let l = e(c), u = e(o), d = i(null), { dragImage: f } = l.current;
|
|
12
12
|
r(() => {
|
|
@@ -33,7 +33,6 @@ var o = (o, s, c = {}) => {
|
|
|
33
33
|
};
|
|
34
34
|
}, [], s);
|
|
35
35
|
};
|
|
36
|
-
//#endregion
|
|
37
36
|
export { o as default };
|
|
38
37
|
/* 欲穷千里目,更上一层楼 */
|
|
39
38
|
/* 独立思考,明辨是非 */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { getDOM as e, getDocumentElement as t, off as n, on as r } from "../../utils/dom.js";
|
|
4
4
|
import i from "../use-force-update/index.js";
|
|
5
5
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
6
6
|
import { isElement as c, isPlainObject as l } from "@unicom-cloud/utils/is";
|
|
7
|
-
|
|
7
|
+
// components/common/hooks/use-drag-move/index.ts
|
|
8
8
|
function u() {
|
|
9
9
|
return {
|
|
10
10
|
screenX: 0,
|
|
@@ -63,7 +63,6 @@ function d(d, f = !1) {
|
|
|
63
63
|
y();
|
|
64
64
|
}, 227), () => {}), []), f) return _;
|
|
65
65
|
}
|
|
66
|
-
//#endregion
|
|
67
66
|
export { d as default };
|
|
68
67
|
/* 欲穷千里目,更上一层楼 */
|
|
69
68
|
/* 独立思考,明辨是非 */
|