@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
|
|
4
4
|
let r = {};
|
package/animation/Animation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isFunction as e } from "../utils/is.js";
|
|
3
3
|
import t from "../hooks/use-create/index.js";
|
|
4
4
|
import n from "../hooks/use-update-effect/index.js";
|
|
@@ -8,56 +8,56 @@ import { defaults as a } from "../utils/lodash.js";
|
|
|
8
8
|
import o from "../hooks/use-is-first-render/index.js";
|
|
9
9
|
import s from "../utils/className.js";
|
|
10
10
|
import { ANIMATION_COMPONENT_INFO as c } from "../utils/names.js";
|
|
11
|
-
import l from "./context.js";
|
|
12
|
-
import { forwardRef as
|
|
13
|
-
import { UI_COMMON_PREFIX as
|
|
14
|
-
import { jsx as
|
|
11
|
+
import l, { PropsContext as u, defaultProps as d } from "./context.js";
|
|
12
|
+
import { forwardRef as f, isValidElement as p, useContext as m, useEffect as h, useImperativeHandle as g, useLayoutEffect as _, useRef as v, useTransition as y } from "react";
|
|
13
|
+
import { UI_COMMON_PREFIX as b } from "@unicom-cloud/utils/constants/ui";
|
|
14
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
15
15
|
//#region components/common/animation/Animation.tsx
|
|
16
|
-
var { setTimeout:
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
t(() => {}), o(),
|
|
20
|
-
let
|
|
21
|
-
function
|
|
22
|
-
function
|
|
23
|
-
i(() => () => {}, []),
|
|
24
|
-
start:
|
|
25
|
-
destroy:
|
|
16
|
+
var { setTimeout: S, clearTimeout: C, requestAnimationFrame: w, cancelAnimationFrame: T } = window;
|
|
17
|
+
function E(c, f) {
|
|
18
|
+
let S = m(u), C = `${b}-animation`, w = a({}, c, S, d), { style: T, className: E, children: D, name: O, onStart: k, onEnd: A, onIteration: j } = w;
|
|
19
|
+
t(() => {}), o(), v({});
|
|
20
|
+
let M = v(null), [N, P, F] = r(() => {}), [I, L] = y();
|
|
21
|
+
function R() {}
|
|
22
|
+
function z() {}
|
|
23
|
+
i(() => () => {}, []), _(() => () => {}, []), n(() => () => {}, []), h(() => () => {}, []), g(f, () => ({
|
|
24
|
+
start: R,
|
|
25
|
+
destroy: z,
|
|
26
26
|
getRootElement() {
|
|
27
|
-
return
|
|
27
|
+
return M.current;
|
|
28
28
|
}
|
|
29
29
|
}));
|
|
30
|
-
let
|
|
31
|
-
if (e(
|
|
32
|
-
let { className: t } =
|
|
33
|
-
|
|
30
|
+
let B = D;
|
|
31
|
+
if (e(B) && (B = B(w, N)), p(B)) {
|
|
32
|
+
let { className: t } = B.props, n = s(t, O && [C, `${C}-${O}`], E);
|
|
33
|
+
B = /* @__PURE__ */ x(l.Provider, {
|
|
34
34
|
value: {
|
|
35
|
-
props:
|
|
36
|
-
name:
|
|
35
|
+
props: w,
|
|
36
|
+
name: O
|
|
37
37
|
},
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
ref:
|
|
40
|
-
style:
|
|
38
|
+
children: /* @__PURE__ */ x("div", {
|
|
39
|
+
ref: M,
|
|
40
|
+
style: T,
|
|
41
41
|
className: n,
|
|
42
42
|
onAnimationStart: (t) => {
|
|
43
|
-
let n =
|
|
43
|
+
let n = k;
|
|
44
44
|
e(n) && n(t);
|
|
45
45
|
},
|
|
46
46
|
onAnimationEnd: (t) => {
|
|
47
|
-
let n =
|
|
47
|
+
let n = A;
|
|
48
48
|
e(n) && n(t);
|
|
49
49
|
},
|
|
50
50
|
onAnimationIteration: (t) => {
|
|
51
|
-
let n =
|
|
51
|
+
let n = j;
|
|
52
52
|
e(n) && n(t);
|
|
53
53
|
},
|
|
54
|
-
children:
|
|
54
|
+
children: B
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
return
|
|
58
|
+
return B;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var D = Object.assign(f(E), { ...c });
|
|
61
61
|
//#endregion
|
|
62
|
-
export {
|
|
62
|
+
export { D as Animation, D as default };
|
|
63
63
|
/* 独立思考,明辨是非 */
|
package/animation/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
//#region components/common/animation/constants.ts
|
|
3
3
|
var e = /* @__PURE__ */ "back-in-down.back-in-left.back-in-right.back-in-up.back-out-down.back-out-left.back-out-right.back-out-up.bounce.bounce-in.bounce-in-down.bounce-in-left.bounce-in-right.bounce-in-up.bounce-out.bounce-out-down.bounce-out-left.bounce-out-right.bounce-out-up.flash.pulse.rubber-band.shake.shake-x.shake-y.head-shake.swing.tada.wobble.jello.heart-beat.fade-in.fade-in-down.fade-in-down-big.fade-in-left.fade-in-left-big.fade-in-right.fade-in-right-big.fade-in-up.fade-in-up-big.fade-in-top-left.fade-in-top-right.fade-in-bottom-left.fade-in-bottom-right.fade-out.fade-out-down.fade-out-down-big.fade-out-left.fade-out-left-big.fade-out-right.fade-out-right-big.fade-out-up.fade-out-up-big.fade-out-top-left.fade-out-top-right.fade-out-bottom-right.fade-out-bottom-left.flip.flip-in-x.flip-in-y.flip-out-x.flip-out-y.light-speed-in-right.light-speed-in-left.light-speed-out-right.light-speed-out-left.rotate-in.rotate-in-down-left.rotate-in-down-right.rotate-in-up-left.rotate-in-up-right.rotate-out.rotate-out-down-left.rotate-out-down-right.rotate-out-up-left.rotate-out-up-right.hinge.jack-in-the-box.roll-in.roll-out.zoom-in.zoom-in-down.zoom-in-left.zoom-in-right.zoom-in-up.zoom-out.zoom-out-down.zoom-out-left.zoom-out-right.zoom-out-up.slide-in-down.slide-in-left.slide-in-right.slide-in-up.slide-out-down.slide-out-left.slide-out-right.slide-out-up".split(".");
|
|
4
4
|
Object.freeze(e);
|
package/animation/context.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import type { AnimationProps } from './interface';
|
|
2
|
+
export declare const defaultProps: Partial<AnimationProps>;
|
|
3
|
+
export declare const PropsContext: import("react").Context<Partial<AnimationProps>>;
|
|
1
4
|
declare const AnimationContext: import("react").Context<{}>;
|
|
2
5
|
export default AnimationContext;
|
package/animation/context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { createContext as e } from "react";
|
|
3
3
|
//#region components/common/animation/context.ts
|
|
4
|
-
var t = e({});
|
|
4
|
+
var t = {}, n = e({}), r = e({});
|
|
5
5
|
//#endregion
|
|
6
|
-
export {
|
|
6
|
+
export { n as PropsContext, r as default, t as defaultProps };
|
|
7
7
|
/* 独立思考,明辨是非 */
|
package/animation/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './style';
|
|
1
2
|
import { ANIMATION_NAMES } from './constants';
|
|
2
3
|
declare const Animation: import("react").ForwardRefExoticComponent<import("./interface").AnimationProps & import("react").RefAttributes<unknown>> & {
|
|
3
4
|
zh: string;
|
|
@@ -5,6 +6,7 @@ declare const Animation: import("react").ForwardRefExoticComponent<import("./int
|
|
|
5
6
|
displayName: string;
|
|
6
7
|
id: string;
|
|
7
8
|
} & {
|
|
9
|
+
PropsContext: import("react").Context<Partial<import("./interface").AnimationProps>>;
|
|
8
10
|
zh: string;
|
|
9
11
|
en: string;
|
|
10
12
|
displayName: string;
|
package/animation/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { ANIMATION_COMPONENT_INFO as e } from "../utils/names.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import "./style/index.js";
|
|
4
|
+
import { PropsContext as t } from "./context.js";
|
|
5
|
+
import { Animation as n } from "./Animation.js";
|
|
6
|
+
import { ANIMATION_NAMES as r } from "./constants.js";
|
|
5
7
|
//#region components/common/animation/index.ts
|
|
6
|
-
var
|
|
8
|
+
var i = Object.assign(n, {
|
|
9
|
+
...e,
|
|
10
|
+
PropsContext: t
|
|
11
|
+
});
|
|
7
12
|
//#endregion
|
|
8
|
-
export {
|
|
13
|
+
export { r as ANIMATION_NAMES, i as default };
|
|
9
14
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--pqbc-animation-duration:1s}.pqbc-animation{animation-duration:var(--pqbc-animation-duration);animation-fill-mode:both}.pqbc-animation.infinite{animation-iteration-count:infinite}.pqbc-animation.faster{animation-duration:calc(var(--pqbc-animation-duration) / 2)}.pqbc-animation.fast{animation-duration:calc(var(--pqbc-animation-duration) * .8)}.pqbc-animation.slow{animation-duration:calc(var(--pqbc-animation-duration) * 2)}.pqbc-animation.slower{animation-duration:calc(var(--pqbc-animation-duration) * 3)}@media print,(prefers-reduced-motion:reduce){.pqbc-animation{transition-duration:1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important}.pqbc-animation[class*=out]{opacity:0}}@keyframes pqbc-keyframes-bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0,0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translateY(-30px)scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translateY(-15px)scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0,0)scaleY(.95)}90%{transform:translateY(-4px)scaleY(1.02)}}.pqbc-animation-bounce{transform-origin:bottom;animation-name:pqbc-keyframes-bounce}@keyframes pqbc-keyframes-flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.pqbc-animation-flash{animation-name:pqbc-keyframes-flash}@keyframes pqbc-keyframes-pulse{0%{transform:scale(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scale(1)}}.pqbc-animation-pulse{animation-name:pqbc-keyframes-pulse;animation-timing-function:ease-in-out}@keyframes pqbc-keyframes-rubber-band{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}.pqbc-animation-rubber-band{animation-name:pqbc-keyframes-rubber-band}@keyframes pqbc-keyframes-shake{0%,to{transform:translate(0,0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}.pqbc-animation-shake{animation-name:pqbc-keyframes-shake}@keyframes pqbc-keyframes-shake-x{0%,to{transform:translate(0,0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}.pqbc-animation-shake-x{animation-name:pqbc-keyframes-shake-x}@keyframes pqbc-keyframes-shake-y{0%,to{transform:translate(0,0)}10%,30%,50%,70%,90%{transform:translateY(-10px)}20%,40%,60%,80%{transform:translateY(10px)}}.pqbc-animation-shake-y{animation-name:pqbc-keyframes-shake-y}@keyframes pqbc-keyframes-head-shake{0%{transform:translate(0)}6.5%{transform:translate(-6px)rotateY(-9deg)}18.5%{transform:translate(5px)rotateY(7deg)}31.5%{transform:translate(-3px)rotateY(-5deg)}43.5%{transform:translate(2px)rotateY(3deg)}50%{transform:translate(0)}}.pqbc-animation-head-shake{animation-name:pqbc-keyframes-head-shake;animation-timing-function:ease-in-out}@keyframes pqbc-keyframes-swing{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}.pqbc-animation-swing{transform-origin:top;animation-name:pqbc-keyframes-swing}@keyframes pqbc-keyframes-tada{0%{transform:scale(1)}10%,20%{transform:scale3d(.9,.9,.9)rotate(-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1)rotate(3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1)rotate(-3deg)}to{transform:scale(1)}}.pqbc-animation-tada{animation-name:pqbc-keyframes-tada}@keyframes pqbc-keyframes-wobble{0%{transform:translate(0,0)}15%{transform:translate(-25%)rotate(-5deg)}30%{transform:translate(20%)rotate(3deg)}45%{transform:translate(-15%)rotate(-3deg)}60%{transform:translate(10%)rotate(2deg)}75%{transform:translate(-5%)rotate(-1deg)}to{transform:translate(0,0)}}.pqbc-animation-wobble{animation-name:pqbc-keyframes-wobble}@keyframes pqbc-keyframes-jello{0%,11.1%,to{transform:translate(0,0)}22.2%{transform:skew(-12.5deg)skewY(-12.5deg)}33.3%{transform:skew(6.25deg)skewY(6.25deg)}44.4%{transform:skew(-3.125deg)skewY(-3.125deg)}55.5%{transform:skew(1.5625deg)skewY(1.5625deg)}66.6%{transform:skew(-.78125deg)skewY(-.78125deg)}77.7%{transform:skew(.390625deg)skewY(.390625deg)}88.8%{transform:skew(-.195313deg)skewY(-.195313deg)}}.pqbc-animation-jello{transform-origin:50%;animation-name:pqbc-keyframes-jello}@keyframes pqbc-keyframes-heart-beat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}.pqbc-animation-heart-beat{animation-name:pqbc-keyframes-heart-beat;animation-duration:calc(var(--pqbc-animation-duration) * 1.3);animation-timing-function:ease-in-out}@keyframes pqbc-keyframes-back-in-down{0%{opacity:.7;transform:translateY(-1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-down{animation-name:pqbc-keyframes-back-in-down}@keyframes pqbc-keyframes-back-in-left{0%{opacity:.7;transform:translate(-2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-left{animation-name:pqbc-keyframes-back-in-left}@keyframes pqbc-keyframes-back-in-right{0%{opacity:.7;transform:translate(2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-right{animation-name:pqbc-keyframes-back-in-right}@keyframes pqbc-keyframes-back-in-up{0%{opacity:.7;transform:translateY(1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-up{animation-name:pqbc-keyframes-back-in-up}@keyframes pqbc-keyframes-back-out-down{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(700px)scale(.7)}}.pqbc-animation-back-out-down{animation-name:pqbc-keyframes-back-out-down}@keyframes pqbc-keyframes-back-out-left{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(-2000px)scale(.7)}}.pqbc-animation-back-out-left{animation-name:pqbc-keyframes-back-out-left}@keyframes pqbc-keyframes-back-out-right{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(2000px)scale(.7)}}.pqbc-animation-back-out-right{animation-name:pqbc-keyframes-back-out-right}@keyframes pqbc-keyframes-back-out-up{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(-700px)scale(.7)}}.pqbc-animation-back-out-up{animation-name:pqbc-keyframes-back-out-up}@keyframes pqbc-keyframes-bounce-in{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scale(1)}}.pqbc-animation-bounce-in{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-bounce-in}@keyframes pqbc-keyframes-bounce-in-down{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(-3000px)scaleY(3)}60%{opacity:1;transform:translateY(25px)scaleY(.9)}75%{transform:translateY(-10px)scaleY(.95)}90%{transform:translateY(5px)scaleY(.985)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-down{animation-name:pqbc-keyframes-bounce-in-down}@keyframes pqbc-keyframes-bounce-in-left{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(-3000px)scaleX(3)}60%{opacity:1;transform:translate(25px)scaleX(1)}75%{transform:translate(-10px)scaleX(.98)}90%{transform:translate(5px)scaleX(.995)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-left{animation-name:pqbc-keyframes-bounce-in-left}@keyframes pqbc-keyframes-bounce-in-right{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(3000px)scaleX(3)}60%{opacity:1;transform:translate(-25px)scaleX(1)}75%{transform:translate(10px)scaleX(.98)}90%{transform:translate(-5px)scaleX(.995)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-right{animation-name:pqbc-keyframes-bounce-in-right}@keyframes pqbc-keyframes-bounce-in-up{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(3000px)scaleY(5)}60%{opacity:1;transform:translateY(-20px)scaleY(.9)}75%{transform:translateY(10px)scaleY(.95)}90%{transform:translateY(-5px)scaleY(.985)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-up{animation-name:pqbc-keyframes-bounce-in-up}@keyframes pqbc-keyframes-bounce-out{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}.pqbc-animation-bounce-out{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-bounce-out}@keyframes pqbc-keyframes-bounce-out-down{20%{transform:translateY(10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(-20px)scaleY(.9)}to{opacity:0;transform:translateY(2000px)scaleY(3)}}.pqbc-animation-bounce-out-down{animation-name:pqbc-keyframes-bounce-out-down}@keyframes pqbc-keyframes-bounce-out-left{20%{opacity:1;transform:translate(20px)scaleX(.9)}to{opacity:0;transform:translate(-2000px)scaleX(2)}}.pqbc-animation-bounce-out-left{animation-name:pqbc-keyframes-bounce-out-left}@keyframes pqbc-keyframes-bounce-out-right{20%{opacity:1;transform:translate(-20px)scaleX(.9)}to{opacity:0;transform:translate(2000px)scaleX(2)}}.pqbc-animation-bounce-out-right{animation-name:pqbc-keyframes-bounce-out-right}@keyframes pqbc-keyframes-bounce-out-up{20%{transform:translateY(-10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(20px)scaleY(.9)}to{opacity:0;transform:translateY(-2000px)scaleY(3)}}.pqbc-animation-bounce-out-up{animation-name:pqbc-keyframes-bounce-out-up}@keyframes pqbc-keyframes-fade-in{0%{opacity:0}to{opacity:1}}.pqbc-animation-fade-in{animation-name:pqbc-keyframes-fade-in}@keyframes pqbc-keyframes-fade-in-down{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-down{animation-name:pqbc-keyframes-fade-in-down}@keyframes pqbc-keyframes-fade-in-down-big{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-down-big{animation-name:pqbc-keyframes-fade-in-down-big}@keyframes pqbc-keyframes-fade-in-left{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-left{animation-name:pqbc-keyframes-fade-in-left}@keyframes pqbc-keyframes-fade-in-left-big{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-left-big{animation-name:pqbc-keyframes-fade-in-left-big}@keyframes pqbc-keyframes-fade-in-right{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-right{animation-name:pqbc-keyframes-fade-in-right}@keyframes pqbc-keyframes-fade-in-right-big{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-right-big{animation-name:pqbc-keyframes-fade-in-right-big}@keyframes pqbc-keyframes-fade-in-up{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-up{animation-name:pqbc-keyframes-fade-in-up}@keyframes pqbc-keyframes-fade-in-up-big{0%{opacity:0;transform:translateY(2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-up-big{animation-name:pqbc-keyframes-fade-in-up-big}@keyframes pqbc-keyframes-fade-in-top-left{0%{opacity:0;transform:translate(-100%,-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-top-left{animation-name:pqbc-keyframes-fade-in-top-left}@keyframes pqbc-keyframes-fade-in-top-right{0%{opacity:0;transform:translate(100%,-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-top-right{animation-name:pqbc-keyframes-fade-in-top-right}@keyframes pqbc-keyframes-fade-in-bottom-left{0%{opacity:0;transform:translate(-100%,100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-bottom-left{animation-name:pqbc-keyframes-fade-in-bottom-left}@keyframes pqbc-keyframes-fade-in-bottom-right{0%{opacity:0;transform:translate(100%,100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-bottom-right{animation-name:pqbc-keyframes-fade-in-bottom-right}@keyframes pqbc-keyframes-fade-out{0%{opacity:1}to{opacity:0}}.pqbc-animation-fade-out{animation-name:pqbc-keyframes-fade-out}@keyframes pqbc-keyframes-fade-out-down{0%{opacity:1}to{opacity:0;transform:translateY(100%)}}.pqbc-animation-fade-out-down{animation-name:pqbc-keyframes-fade-out-down}@keyframes pqbc-keyframes-fade-out-down-big{0%{opacity:1}to{opacity:0;transform:translateY(2000px)}}.pqbc-animation-fade-out-down-big{animation-name:pqbc-keyframes-fade-out-down-big}@keyframes pqbc-keyframes-fade-out-left{0%{opacity:1}to{opacity:0;transform:translate(-100%)}}.pqbc-animation-fade-out-left{animation-name:pqbc-keyframes-fade-out-left}@keyframes pqbc-keyframes-fade-out-left-big{0%{opacity:1}to{opacity:0;transform:translate(-2000px)}}.pqbc-animation-fade-out-left-big{animation-name:pqbc-keyframes-fade-out-left-big}@keyframes pqbc-keyframes-fade-out-right{0%{opacity:1}to{opacity:0;transform:translate(100%)}}.pqbc-animation-fade-out-right{animation-name:pqbc-keyframes-fade-out-right}@keyframes pqbc-keyframes-fade-out-right-big{0%{opacity:1}to{opacity:0;transform:translate(2000px)}}.pqbc-animation-fade-out-right-big{animation-name:pqbc-keyframes-fade-out-right-big}@keyframes pqbc-keyframes-fade-out-up{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}.pqbc-animation-fade-out-up{animation-name:pqbc-keyframes-fade-out-up}@keyframes pqbc-keyframes-fade-out-up-big{0%{opacity:1}to{opacity:0;transform:translateY(-2000px)}}.pqbc-animation-fade-out-up-big{animation-name:pqbc-keyframes-fade-out-up-big}@keyframes pqbc-keyframes-fade-out-top-left{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(-100%,-100%)}}.pqbc-animation-fade-out-top-left{animation-name:pqbc-keyframes-fade-out-top-left}@keyframes pqbc-keyframes-fade-out-top-right{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(100%,-100%)}}.pqbc-animation-fade-out-top-right{animation-name:pqbc-keyframes-fade-out-top-right}@keyframes pqbc-keyframes-fade-out-bottom-right{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(100%,100%)}}.pqbc-animation-fade-out-bottom-right{animation-name:pqbc-keyframes-fade-out-bottom-right}@keyframes pqbc-keyframes-fade-out-bottom-left{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(-100%,100%)}}.pqbc-animation-fade-out-bottom-left{animation-name:pqbc-keyframes-fade-out-bottom-left}@keyframes pqbc-keyframes-flip{0%{animation-timing-function:ease-out;transform:perspective(400px)scale(1)translate(0,0)rotateY(-360deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)scale(1)translateZ(150px)rotateY(-190deg)}50%{animation-timing-function:ease-in;transform:perspective(400px)scale(1)translateZ(150px)rotateY(-170deg)}80%{animation-timing-function:ease-in;transform:perspective(400px)scale3d(.95,.95,.95)translate(0,0)rotateY(0)}to{animation-timing-function:ease-in;transform:perspective(400px)scale(1)translate(0,0)rotateY(0)}}.pqbc-animation-flip{backface-visibility:visible;animation-name:pqbc-keyframes-flip}@keyframes pqbc-keyframes-flip-in-x{0%{opacity:0;animation-timing-function:ease-in;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}.pqbc-animation-flip-in-x{animation-name:pqbc-keyframes-flip-in-x;backface-visibility:visible!important}@keyframes pqbc-keyframes-flip-in-y{0%{opacity:0;animation-timing-function:ease-in;transform:perspective(400px)rotateY(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px)rotateY(-20deg)}60%{opacity:1;transform:perspective(400px)rotateY(10deg)}80%{transform:perspective(400px)rotateY(-5deg)}to{transform:perspective(400px)}}.pqbc-animation-flip-in-y{animation-name:pqbc-keyframes-flip-in-y;backface-visibility:visible!important}@keyframes pqbc-keyframes-flip-out-x{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateX(-20deg)}to{opacity:0;transform:perspective(400px)rotateX(90deg)}}.pqbc-animation-flip-out-x{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-flip-out-x;backface-visibility:visible!important}@keyframes pqbc-keyframes-flip-out-y{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateY(-15deg)}to{opacity:0;transform:perspective(400px)rotateY(90deg)}}.pqbc-animation-flip-out-y{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-flip-out-y;backface-visibility:visible!important}@keyframes pqbc-keyframes-light-speed-in-right{0%{opacity:0;transform:translate(100%)skew(-30deg)}60%{opacity:1;transform:skew(20deg)}80%{transform:skew(-5deg)}to{transform:translate(0,0)}}.pqbc-animation-light-speed-in-right{animation-name:pqbc-keyframes-light-speed-in-right;animation-timing-function:ease-out}@keyframes pqbc-keyframes-light-speed-in-left{0%{opacity:0;transform:translate(-100%)skew(30deg)}60%{opacity:1;transform:skew(-20deg)}80%{transform:skew(5deg)}to{transform:translate(0,0)}}.pqbc-animation-light-speed-in-left{animation-name:pqbc-keyframes-light-speed-in-left;animation-timing-function:ease-out}@keyframes pqbc-keyframes-light-speed-out-right{0%{opacity:1}to{opacity:0;transform:translate(100%)skew(30deg)}}.pqbc-animation-light-speed-out-right{animation-name:pqbc-keyframes-light-speed-out-right;animation-timing-function:ease-in}@keyframes pqbc-keyframes-light-speed-out-left{0%{opacity:1}to{opacity:0;transform:translate(-100%)skew(-30deg)}}.pqbc-animation-light-speed-out-left{animation-name:pqbc-keyframes-light-speed-out-left;animation-timing-function:ease-in}@keyframes pqbc-keyframes-rotate-in{0%{opacity:0;transform:rotate(-200deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in{transform-origin:50%;animation-name:pqbc-keyframes-rotate-in}@keyframes pqbc-keyframes-rotate-in-down-left{0%{opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-down-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-in-down-left}@keyframes pqbc-keyframes-rotate-in-down-right{0%{opacity:0;transform:rotate(45deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-down-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-in-down-right}@keyframes pqbc-keyframes-rotate-in-up-left{0%{opacity:0;transform:rotate(45deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-up-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-in-up-left}@keyframes pqbc-keyframes-rotate-in-up-right{0%{opacity:0;transform:rotate(-90deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-up-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-in-up-right}@keyframes pqbc-keyframes-rotate-out{0%{opacity:1}to{opacity:0;transform:rotate(200deg)}}.pqbc-animation-rotate-out{transform-origin:50%;animation-name:pqbc-keyframes-rotate-out}@keyframes pqbc-keyframes-rotate-out-down-left{0%{opacity:1}to{opacity:0;transform:rotate(45deg)}}.pqbc-animation-rotate-out-down-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-out-down-left}@keyframes pqbc-keyframes-rotate-out-down-right{0%{opacity:1}to{opacity:0;transform:rotate(-45deg)}}.pqbc-animation-rotate-out-down-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-out-down-right}@keyframes pqbc-keyframes-rotate-out-up-left{0%{opacity:1}to{opacity:0;transform:rotate(-45deg)}}.pqbc-animation-rotate-out-up-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-out-up-left}@keyframes pqbc-keyframes-rotate-out-up-right{0%{opacity:1}to{opacity:0;transform:rotate(90deg)}}.pqbc-animation-rotate-out-up-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-out-up-right}@keyframes pqbc-keyframes-hinge{0%{animation-timing-function:ease-in-out}20%,60%{animation-timing-function:ease-in-out;transform:rotate(80deg)}40%,80%{opacity:1;animation-timing-function:ease-in-out;transform:rotate(60deg)}to{opacity:0;transform:translateY(700px)}}.pqbc-animation-hinge{animation-duration:calc(var(--pqbc-animation-duration) * 2);transform-origin:0 0;animation-name:pqbc-keyframes-hinge}@keyframes pqbc-keyframes-jack-in-the-box{0%{opacity:0;transform-origin:bottom;transform:scale(.1)rotate(30deg)}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}.pqbc-animation-jack-in-the-box{animation-name:pqbc-keyframes-jack-in-the-box}@keyframes pqbc-keyframes-roll-in{0%{opacity:0;transform:translate(-100%)rotate(-120deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-roll-in{animation-name:pqbc-keyframes-roll-in}@keyframes pqbc-keyframes-roll-out{0%{opacity:1}to{opacity:0;transform:translate(100%)rotate(120deg)}}.pqbc-animation-roll-out{animation-name:pqbc-keyframes-roll-out}@keyframes pqbc-keyframes-zoom-in{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.pqbc-animation-zoom-in{animation-name:pqbc-keyframes-zoom-in}@keyframes pqbc-keyframes-zoom-in-down{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(60px)}}.pqbc-animation-zoom-in-down{animation-name:pqbc-keyframes-zoom-in-down}@keyframes pqbc-keyframes-zoom-in-left{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(10px)}}.pqbc-animation-zoom-in-left{animation-name:pqbc-keyframes-zoom-in-left}@keyframes pqbc-keyframes-zoom-in-right{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(-10px)}}.pqbc-animation-zoom-in-right{animation-name:pqbc-keyframes-zoom-in-right}@keyframes pqbc-keyframes-zoom-in-up{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(-60px)}}.pqbc-animation-zoom-in-up{animation-name:pqbc-keyframes-zoom-in-up}@keyframes pqbc-keyframes-zoom-out{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.pqbc-animation-zoom-out{animation-name:pqbc-keyframes-zoom-out}@keyframes pqbc-keyframes-zoom-out-down{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(-60px)}to{opacity:0;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.1,.1,.1)translateY(2000px)}}.pqbc-animation-zoom-out-down{transform-origin:bottom;animation-name:pqbc-keyframes-zoom-out-down}@keyframes pqbc-keyframes-zoom-out-left{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(42px)}to{opacity:0;transform:scale(.1)translate(-2000px)}}.pqbc-animation-zoom-out-left{transform-origin:0;animation-name:pqbc-keyframes-zoom-out-left}@keyframes pqbc-keyframes-zoom-out-right{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(-42px)}to{opacity:0;transform:scale(.1)translate(2000px)}}.pqbc-animation-zoom-out-right{transform-origin:100%;animation-name:pqbc-keyframes-zoom-out-right}@keyframes pqbc-keyframes-zoom-out-up{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(60px)}to{opacity:0;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.1,.1,.1)translateY(-2000px)}}.pqbc-animation-zoom-out-up{transform-origin:bottom;animation-name:pqbc-keyframes-zoom-out-up}@keyframes pqbc-keyframes-slide-in-down{0%{visibility:visible;transform:translateY(-100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-down{animation-name:pqbc-keyframes-slide-in-down}@keyframes pqbc-keyframes-slide-in-left{0%{visibility:visible;transform:translate(-100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-left{animation-name:pqbc-keyframes-slide-in-left}@keyframes pqbc-keyframes-slide-in-right{0%{visibility:visible;transform:translate(100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-right{animation-name:pqbc-keyframes-slide-in-right}@keyframes pqbc-keyframes-slide-in-up{0%{visibility:visible;transform:translateY(100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-up{animation-name:pqbc-keyframes-slide-in-up}@keyframes pqbc-keyframes-slide-out-down{0%{transform:translate(0,0)}to{visibility:hidden;transform:translateY(100%)}}.pqbc-animation-slide-out-down{animation-name:pqbc-keyframes-slide-out-down}@keyframes pqbc-keyframes-slide-out-left{0%{transform:translate(0,0)}to{visibility:hidden;transform:translate(-100%)}}.pqbc-animation-slide-out-left{animation-name:pqbc-keyframes-slide-out-left}@keyframes pqbc-keyframes-slide-out-right{0%{transform:translate(0,0)}to{visibility:hidden;transform:translate(100%)}}.pqbc-animation-slide-out-right{animation-name:pqbc-keyframes-slide-out-right}@keyframes pqbc-keyframes-slide-out-up{0%{transform:translate(0,0)}to{visibility:hidden;transform:translateY(-100%)}}.pqbc-animation-slide-out-up{animation-name:pqbc-keyframes-slide-out-up}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isNonNullable as e, isString as t } from "../utils/is.js";
|
|
3
3
|
import n from "../hooks/use-merge-props/index.js";
|
|
4
4
|
import r from "../utils/className.js";
|
|
@@ -6,40 +6,40 @@ import { BORDER_BEAM_COMPONENT_INFO as i } from "../utils/names.js";
|
|
|
6
6
|
import "../utils/index.js";
|
|
7
7
|
import a from "./Effect.js";
|
|
8
8
|
import { GRADIENT_PRESETS as o } from "./constants.js";
|
|
9
|
-
import s from "./
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
9
|
+
import { PropsContext as s, defaultProps as c } from "./context.js";
|
|
10
|
+
import l from "./hooks/useBorderSize.js";
|
|
11
|
+
import u from "./hooks/useChildDom.js";
|
|
12
|
+
import { getBorderBeamGradient as d } from "./utils.js";
|
|
13
|
+
import { forwardRef as f, useContext as p, useImperativeHandle as m, useMemo as h, useRef as g } from "react";
|
|
14
|
+
import { UI_COMMON_PREFIX as _ } from "@unicom-cloud/utils/constants/ui";
|
|
15
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
15
16
|
//#region components/common/border-beam/BorderBeam.tsx
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
e && (E = e.color);
|
|
17
|
+
function x(i, f) {
|
|
18
|
+
let { className: x, style: S, children: C, color: w, gradientType: T, outset: E, ...D } = n(i, { ...p(s) }, c), O = w;
|
|
19
|
+
if (!O && T) {
|
|
20
|
+
let e = o.find((e, t, n) => e.key === T);
|
|
21
|
+
e && (O = e.color);
|
|
22
22
|
}
|
|
23
|
-
let
|
|
24
|
-
return
|
|
25
|
-
return
|
|
26
|
-
} })), /* @__PURE__ */
|
|
27
|
-
ref:
|
|
28
|
-
prefixCls:
|
|
29
|
-
hostDom:
|
|
30
|
-
className: r(
|
|
23
|
+
let k = `${_}-border-beam`, [A, j] = u(C), { borderWidth: M, borderRadius: N } = l(j), P = h(() => d(O), [O]), F = (e) => t(e) ? `calc(-1 * ${e})` : `${-1 * e}px`, I = h(() => e(E) ? F(E) : M.map(F).join(" "), [M, E]), L = {}, R = g(null);
|
|
24
|
+
return m(f, () => ({ getRootElement() {
|
|
25
|
+
return R.current;
|
|
26
|
+
} })), /* @__PURE__ */ b(v, { children: [A, /* @__PURE__ */ y(a, {
|
|
27
|
+
ref: R,
|
|
28
|
+
prefixCls: k,
|
|
29
|
+
hostDom: j,
|
|
30
|
+
className: r(k, x),
|
|
31
31
|
style: {
|
|
32
|
-
...
|
|
33
|
-
...
|
|
34
|
-
...
|
|
35
|
-
[`--${
|
|
36
|
-
[`--${
|
|
32
|
+
...L,
|
|
33
|
+
...S,
|
|
34
|
+
...P && { [`--${k}-gradient`]: P },
|
|
35
|
+
[`--${k}-inset-offset`]: I,
|
|
36
|
+
[`--${k}-border-radius`]: N
|
|
37
37
|
},
|
|
38
|
-
...
|
|
38
|
+
...D
|
|
39
39
|
})] });
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
|
|
41
|
+
var S = f(x);
|
|
42
|
+
S.displayName = i.displayName;
|
|
43
43
|
//#endregion
|
|
44
|
-
export {
|
|
44
|
+
export { S as default };
|
|
45
45
|
/* 独立思考,明辨是非 */
|
package/border-beam/Effect.js
CHANGED
package/border-beam/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
2
|
-
import { UI_COMMON_PREFIX as e, UI_MOBILE_PREFIX as t, UI_PC_PREFIX as n } from "@unicom-cloud/utils/
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
|
+
import { UI_COMMON_PREFIX as e, UI_MOBILE_PREFIX as t, UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
3
3
|
//#region components/common/border-beam/constants.ts
|
|
4
4
|
function r(r) {
|
|
5
5
|
return `rgb(var(--${e}-${r},var(--${n}-${r},var(--${t}-${r}))))`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
|
+
import { GRADIENT_PRESETS as e } from "./constants.js";
|
|
3
|
+
import { createContext as t } from "react";
|
|
4
|
+
//#region components/common/border-beam/context.ts
|
|
5
|
+
var n = { gradientType: e[0].key }, r = t({});
|
|
6
|
+
//#endregion
|
|
7
|
+
export { r as PropsContext, n as defaultProps };
|
|
8
|
+
/* 独立思考,明辨是非 */
|
package/border-beam/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import './style';
|
|
1
2
|
import { GRADIENT_PRESETS } from './constants';
|
|
2
3
|
declare const BorderBeam: import("react").ForwardRefExoticComponent<import("./interface").BorderBeamProps & import("react").RefAttributes<unknown>> & {
|
|
4
|
+
PropsContext: import("react").Context<Partial<import("./interface").BorderBeamProps>>;
|
|
3
5
|
zh: string;
|
|
4
6
|
en: string;
|
|
5
7
|
displayName: string;
|
package/border-beam/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { BORDER_BEAM_COMPONENT_INFO as e } from "../utils/names.js";
|
|
3
3
|
import { GRADIENT_PRESETS as t } from "./constants.js";
|
|
4
|
-
import n from "./
|
|
4
|
+
import { PropsContext as n } from "./context.js";
|
|
5
|
+
import r from "./BorderBeam.js";
|
|
6
|
+
import "./style/index.js";
|
|
5
7
|
//#region components/common/border-beam/index.ts
|
|
6
|
-
var
|
|
8
|
+
var i = Object.assign(r, {
|
|
9
|
+
...e,
|
|
10
|
+
PropsContext: n
|
|
11
|
+
});
|
|
7
12
|
//#endregion
|
|
8
|
-
export { t as BORDER_BEAM_GRADIENT_PRESETS,
|
|
13
|
+
export { t as BORDER_BEAM_GRADIENT_PRESETS, i as default };
|
|
9
14
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pqbc-border-beam{--pqbc-border-beam-gradient:linear-gradient(to left, rgb(var(--pqbc-primary-5,var(--pqb-primary-5,--pqbm-primary-5))) 0%, rgb(var(--pqbc-cyan-5,var(--pqb-cyan-5,--pqbm-cyan-5))) 36.4%, rgb(var(--pqbc-lime-5,var(--pqb-lime-5,--pqbm-lime-5))) 70%, transparent);--pqbc-border-beam-inset-offset:-1px -1px -1px -1px;--pqbc-border-beam-border-radius:8px;box-sizing:border-box;inset:var(--pqbc-border-beam-inset-offset,0);border-radius:var(--pqbc-border-beam-border-radius,0);z-index:1;pointer-events:none;padding:1px;display:none;position:absolute;overflow:hidden}@supports (mask-composite:exclude) or (-webkit-mask-composite:exclude) or (-webkit-mask-composite:xor){.pqbc-border-beam{mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-position:0 0,0 0;mask-size:auto,auto;mask-repeat:repeat,repeat;mask-clip:content-box,border-box;mask-origin:content-box,border-box;mask-composite:exclude;mask-mode:match-source,match-source}@supports (offset-path:rect(0 auto auto 0 round 1px)){.pqbc-border-beam{display:block}.pqbc-border-beam:before{content:"";aspect-ratio:1;opacity:.95;background-image:var(--pqbc-border-beam-gradient,linear-gradient(to left, rgb(var(--pqbc-primary-6,var(--pqb-primary-6,--pqbm-primary-6))) 0%, rgba(var(--pqbc-primary-6,var(--pqb-primary-6,--pqbm-primary-6)), .7) 70%, transparent));offset-anchor:90%50%;offset-distance:0%;offset-path:rect(0 auto auto 0 round 100px);offset-rotate:auto;will-change:offset-distance;width:100px;animation-name:pqbc-border-beam-move;animation-duration:6s;animation-timing-function:linear;animation-iteration-count:infinite;position:absolute;top:0;left:0}@media (prefers-reduced-motion:reduce){.pqbc-border-beam:before{transition:none;animation:none}}}}@media (prefers-reduced-motion:reduce){.pqbc-border-beam:before{display:none}}@keyframes pqbc-border-beam-move{0%{offset-distance:0%}to{offset-distance:100%}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
package/border-beam/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isString as e } from "../utils/is.js";
|
|
3
3
|
//#region components/common/border-beam/utils.ts
|
|
4
4
|
var t = 70, n = (...e) => `linear-gradient(to left, ${e.join(", ")}, transparent)`, r = (t) => e(t) ? [{
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import o from "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
|
+
import e from "../hooks/use-merge-props/index.js";
|
|
3
|
+
import { DEVELOPMENT_COMPONENT_INFO as t } from "../utils/names.js";
|
|
4
|
+
import { PropsContext as n, defaultProps as r } from "./context.js";
|
|
5
|
+
import { forwardRef as i, useContext as a, useImperativeHandle as o, useMemo as s, useRef as c } from "react";
|
|
6
|
+
import { UI_COMMON_PREFIX as l } from "@unicom-cloud/utils/constants/ui";
|
|
7
|
+
import u from "@unicom-cloud/utils/class-name";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
+
import p from "@unicom-cloud/icons/IconFluentHourglassNotDone";
|
|
8
10
|
//#region components/common/development/Development.tsx
|
|
9
|
-
function
|
|
10
|
-
let { url:
|
|
11
|
-
className:
|
|
12
|
-
src:
|
|
11
|
+
function m(t, i) {
|
|
12
|
+
let { url: m, imgClassName: h, icon: g, iconClassName: _, label: v = "等待开发", tip: y = v, labelClassName: b, style: x, className: S } = e(t, { ...a(n) }, r), C = `${l}-development`, w = s(() => m ? /* @__PURE__ */ d("img", {
|
|
13
|
+
className: u(`${C}-img`, h),
|
|
14
|
+
src: m,
|
|
13
15
|
alt: "开发预览图"
|
|
14
|
-
}) :
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
]),
|
|
21
|
-
return
|
|
22
|
-
return
|
|
23
|
-
} })), /* @__PURE__ */
|
|
24
|
-
ref:
|
|
25
|
-
style: { ...
|
|
26
|
-
className:
|
|
27
|
-
children: [
|
|
28
|
-
className:
|
|
29
|
-
children:
|
|
16
|
+
}) : g ?? /* @__PURE__ */ d(p, { className: u(`${C}-icon`, _) }), [
|
|
17
|
+
m,
|
|
18
|
+
C,
|
|
19
|
+
h,
|
|
20
|
+
g,
|
|
21
|
+
_
|
|
22
|
+
]), T = c(null);
|
|
23
|
+
return o(i, () => ({ getRootElement() {
|
|
24
|
+
return T.current;
|
|
25
|
+
} })), /* @__PURE__ */ f("div", {
|
|
26
|
+
ref: T,
|
|
27
|
+
style: { ...x },
|
|
28
|
+
className: u(C, S),
|
|
29
|
+
children: [w, /* @__PURE__ */ d("div", {
|
|
30
|
+
className: u(`${C}-label`, b),
|
|
31
|
+
children: y
|
|
30
32
|
})]
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
+
var h = i(m);
|
|
36
|
+
h.displayName = t.displayName;
|
|
35
37
|
//#endregion
|
|
36
|
-
export {
|
|
38
|
+
export { h as default };
|
|
37
39
|
/* 独立思考,明辨是非 */
|
|
File without changes
|
package/development/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import './style';
|
|
1
2
|
declare const Development: import("react").ForwardRefExoticComponent<import("./interface").DevelopmentProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
PropsContext: import("react").Context<Partial<import("./interface").DevelopmentProps>>;
|
|
2
4
|
zh: string;
|
|
3
5
|
en: string;
|
|
4
6
|
displayName: string;
|
package/development/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { DEVELOPMENT_COMPONENT_INFO as e } from "../utils/names.js";
|
|
3
|
-
import
|
|
3
|
+
import "./style/index.js";
|
|
4
|
+
import { PropsContext as t } from "./context.js";
|
|
5
|
+
import n from "./Development.js";
|
|
4
6
|
//#region components/common/development/index.ts
|
|
5
|
-
var
|
|
7
|
+
var r = Object.assign(n, {
|
|
8
|
+
...e,
|
|
9
|
+
PropsContext: t
|
|
10
|
+
});
|
|
6
11
|
//#endregion
|
|
7
|
-
export {
|
|
12
|
+
export { r as default };
|
|
8
13
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pqbc-development{flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%;height:100%;min-height:300px;display:flex}.pqbc-development .pqbc-development-icon,.pqbc-development .pqbc-development-img{width:50px;height:50px}.pqbc-development-label{--color-neutral:#868788;color:var(--pqbc-color-neutral-6,var(--pqb-color-neutral-6,var(--pqbm-color-neutral-6,--color-neutral)));font-size:20px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|