@unicom-cloud/ui-common 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.virtual/_rolldown/runtime.js +1 -1
- package/.vite/manifest.json +43 -0
- package/animation/Animation.d.ts +9 -0
- package/animation/Animation.js +63 -0
- package/animation/constants.d.ts +1 -0
- package/animation/constants.js +7 -0
- package/animation/context.d.ts +2 -0
- package/animation/context.js +7 -0
- package/animation/index.d.ts +15 -0
- package/animation/index.js +9 -0
- package/animation/interface.d.ts +11 -0
- package/border-beam/BorderBeam.js +1 -1
- package/border-beam/Effect.js +1 -1
- package/border-beam/constants.js +1 -1
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.js +1 -1
- package/border-beam/utils.js +1 -1
- package/development/Development.js +1 -1
- package/development/index.js +1 -1
- package/empty/Empty.js +1 -1
- package/empty/index.js +1 -1
- package/flex/Flex.js +1 -1
- package/flex/index.js +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +1 -1
- package/hooks/create-use-storage-state/index.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.d.ts +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.d.ts +1 -1
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.js +1 -1
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-viewport/index.js +1 -1
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-key-press/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-local-storage-state/index.js +1 -1
- package/hooks/use-lock-fn/index.js +1 -1
- package/hooks/use-long-press/index.js +1 -1
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-paste-image/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +1 -1
- package/hooks/use-raf-state/index.d.ts +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.d.ts +1 -1
- package/hooks/use-reset-state/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +1 -1
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +17 -17
- package/hooks/use-size/index.js +1 -1
- package/hooks/use-state-callback/index.d.ts +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-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.js +1 -1
- package/hooks/utils/isBrowser.js +1 -1
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +1 -1
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/icons/file/IconFile.js +1 -1
- package/icons/file/index.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +38 -34
- package/package.json +1 -1
- package/progress/Progress.js +1 -1
- package/progress/index.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +1 -1
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/index.js +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/space/Space.js +1 -1
- package/space/index.js +1 -1
- package/style/animation.less +39 -0
- package/style/global.less +0 -25
- package/style/index.less +1 -2
- package/style/keyframes.less +0 -32
- package/style/transition.less +0 -63
- package/style/variables.less +4 -0
- package/style.css +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +1 -1
- package/timer/index.js +1 -1
- package/transition/Transition.js +1 -1
- package/transition/TransitionCSS.js +1 -1
- package/transition/TransitionGroup.js +1 -1
- package/transition/TransitionStyle.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.js +1 -1
- package/transition/index.js +1 -1
- package/transition/utils.js +1 -1
- package/typewriter/Typewriter.js +1 -1
- package/typewriter/index.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.d.ts +2 -2
- package/utils/dom.js +3 -3
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +1 -1
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +12 -0
- package/utils/names.js +10 -4
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/reactNode.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.d.ts +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setDir.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRequestAnimationFrame.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 +1 -1
- package/version/index.js +5 -5
- package/style/variables.css +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
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/.vite/manifest.json
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
+
"components/common/animation/Animation.tsx": {
|
|
3
|
+
"file": "animation/Animation.js",
|
|
4
|
+
"name": "animation/Animation",
|
|
5
|
+
"src": "components/common/animation/Animation.tsx",
|
|
6
|
+
"isEntry": true,
|
|
7
|
+
"imports": [
|
|
8
|
+
"components/common/animation/context.ts",
|
|
9
|
+
"components/common/hooks/use-create/index.ts",
|
|
10
|
+
"components/common/hooks/use-is-first-render/index.ts",
|
|
11
|
+
"components/common/hooks/use-set-state/index.ts",
|
|
12
|
+
"components/common/hooks/use-update-effect/index.ts",
|
|
13
|
+
"components/common/hooks/use-update-layout-effect/index.ts",
|
|
14
|
+
"components/common/utils/className.ts",
|
|
15
|
+
"components/common/utils/is.ts",
|
|
16
|
+
"components/common/utils/lodash.ts",
|
|
17
|
+
"components/common/utils/names.ts"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"components/common/animation/constants.ts": {
|
|
21
|
+
"file": "animation/constants.js",
|
|
22
|
+
"name": "animation/constants",
|
|
23
|
+
"src": "components/common/animation/constants.ts",
|
|
24
|
+
"isEntry": true
|
|
25
|
+
},
|
|
26
|
+
"components/common/animation/context.ts": {
|
|
27
|
+
"file": "animation/context.js",
|
|
28
|
+
"name": "animation/context",
|
|
29
|
+
"src": "components/common/animation/context.ts",
|
|
30
|
+
"isEntry": true
|
|
31
|
+
},
|
|
32
|
+
"components/common/animation/index.ts": {
|
|
33
|
+
"file": "animation/index.js",
|
|
34
|
+
"name": "animation/index",
|
|
35
|
+
"src": "components/common/animation/index.ts",
|
|
36
|
+
"isEntry": true,
|
|
37
|
+
"imports": [
|
|
38
|
+
"components/common/animation/Animation.tsx",
|
|
39
|
+
"components/common/animation/constants.ts",
|
|
40
|
+
"components/common/utils/names.ts"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
2
43
|
"components/common/border-beam/BorderBeam.tsx": {
|
|
3
44
|
"file": "border-beam/BorderBeam.js",
|
|
4
45
|
"name": "border-beam/BorderBeam",
|
|
@@ -1680,6 +1721,8 @@
|
|
|
1680
1721
|
"isEntry": true,
|
|
1681
1722
|
"imports": [
|
|
1682
1723
|
"rolldown/runtime.js",
|
|
1724
|
+
"components/common/animation/constants.ts",
|
|
1725
|
+
"components/common/animation/index.ts",
|
|
1683
1726
|
"components/common/development/index.ts",
|
|
1684
1727
|
"components/common/empty/index.ts",
|
|
1685
1728
|
"components/common/flex/Flex.tsx",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnimationProps } from './interface';
|
|
2
|
+
declare const Animation: import("react").ForwardRefExoticComponent<AnimationProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
+
zh: string;
|
|
4
|
+
en: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
export { Animation };
|
|
9
|
+
export default Animation;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
|
+
import { isFunction as e } from "../utils/is.js";
|
|
3
|
+
import t from "../hooks/use-create/index.js";
|
|
4
|
+
import n from "../hooks/use-update-effect/index.js";
|
|
5
|
+
import r from "../hooks/use-set-state/index.js";
|
|
6
|
+
import i from "../hooks/use-update-layout-effect/index.js";
|
|
7
|
+
import { defaults as a } from "../utils/lodash.js";
|
|
8
|
+
import o from "../hooks/use-is-first-render/index.js";
|
|
9
|
+
import s from "../utils/className.js";
|
|
10
|
+
import { ANIMATION_COMPONENT_INFO as c } from "../utils/names.js";
|
|
11
|
+
import l from "./context.js";
|
|
12
|
+
import { forwardRef as u, isValidElement as d, useEffect as f, useImperativeHandle as p, useLayoutEffect as m, useRef as h, useTransition as g } from "react";
|
|
13
|
+
import { UI_COMMON_PREFIX as _ } from "@unicom-cloud/utils/constant/ui";
|
|
14
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
15
|
+
//#region components/common/animation/Animation.tsx
|
|
16
|
+
var { setTimeout: y, clearTimeout: b, requestAnimationFrame: x, cancelAnimationFrame: S } = window, C = {};
|
|
17
|
+
function w(c, u) {
|
|
18
|
+
let y = `${_}-animation`, b = a({}, c, C), { style: x, className: S, children: w, name: T, onStart: E, onEnd: D, onIteration: O } = b;
|
|
19
|
+
t(() => {}), o(), h({});
|
|
20
|
+
let k = h(null), [A, j, M] = r(() => {}), [N, P] = g();
|
|
21
|
+
function F() {}
|
|
22
|
+
function I() {}
|
|
23
|
+
i(() => () => {}, []), m(() => () => {}, []), n(() => () => {}, []), f(() => () => {}, []), p(u, () => ({
|
|
24
|
+
start: F,
|
|
25
|
+
destroy: I,
|
|
26
|
+
getRootElement() {
|
|
27
|
+
return k.current;
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
let L = w;
|
|
31
|
+
if (e(L) && (L = L(b, A)), d(L)) {
|
|
32
|
+
let { className: t } = L.props, n = s(t, T && [y, `${y}-${T}`], S);
|
|
33
|
+
L = /* @__PURE__ */ v(l.Provider, {
|
|
34
|
+
value: {
|
|
35
|
+
props: b,
|
|
36
|
+
name: T
|
|
37
|
+
},
|
|
38
|
+
children: /* @__PURE__ */ v("div", {
|
|
39
|
+
ref: k,
|
|
40
|
+
style: x,
|
|
41
|
+
className: n,
|
|
42
|
+
onAnimationStart: (t) => {
|
|
43
|
+
let n = E;
|
|
44
|
+
e(n) && n(t);
|
|
45
|
+
},
|
|
46
|
+
onAnimationEnd: (t) => {
|
|
47
|
+
let n = D;
|
|
48
|
+
e(n) && n(t);
|
|
49
|
+
},
|
|
50
|
+
onAnimationIteration: (t) => {
|
|
51
|
+
let n = O;
|
|
52
|
+
e(n) && n(t);
|
|
53
|
+
},
|
|
54
|
+
children: L
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return L;
|
|
59
|
+
}
|
|
60
|
+
var T = Object.assign(u(w), { ...c });
|
|
61
|
+
//#endregion
|
|
62
|
+
export { T as Animation, T as default };
|
|
63
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ANIMATION_NAMES: readonly ["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"];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
|
+
//#region components/common/animation/constants.ts
|
|
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
|
+
Object.freeze(e);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as ANIMATION_NAMES };
|
|
7
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ANIMATION_NAMES } from './constants';
|
|
2
|
+
declare const Animation: import("react").ForwardRefExoticComponent<import("./interface").AnimationProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
+
zh: string;
|
|
4
|
+
en: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
id: string;
|
|
7
|
+
} & {
|
|
8
|
+
zh: string;
|
|
9
|
+
en: string;
|
|
10
|
+
displayName: string;
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
export { ANIMATION_NAMES };
|
|
14
|
+
export default Animation;
|
|
15
|
+
export type * from './interface';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
|
+
import { ANIMATION_COMPONENT_INFO as e } from "../utils/names.js";
|
|
3
|
+
import { Animation as t } from "./Animation.js";
|
|
4
|
+
import { ANIMATION_NAMES as n } from "./constants.js";
|
|
5
|
+
//#region components/common/animation/index.ts
|
|
6
|
+
var r = Object.assign(t, { ...e });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as ANIMATION_NAMES, r as default };
|
|
9
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
+
import { ANIMATION_NAMES } from './constants';
|
|
3
|
+
export interface AnimationProps extends PropsWithChildren {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
/** 动画的名字 */
|
|
7
|
+
name?: (typeof ANIMATION_NAMES)[number];
|
|
8
|
+
onStart?: (event: AnimationEvent) => void;
|
|
9
|
+
onEnd?: (event: AnimationEvent) => void;
|
|
10
|
+
onIteration?: (event: AnimationEvent) => void;
|
|
11
|
+
}
|
package/border-beam/Effect.js
CHANGED
package/border-beam/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
2
|
import { UI_COMMON_PREFIX as e, UI_MOBILE_PREFIX as t, UI_PC_PREFIX as n } from "@unicom-cloud/utils/constant/ui";
|
|
3
3
|
//#region components/common/border-beam/constants.ts
|
|
4
4
|
function r(r) {
|
package/border-beam/index.js
CHANGED
package/border-beam/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
2
|
import { DEVELOPMENT_COMPONENT_INFO as e } from "../utils/names.js";
|
|
3
3
|
import { forwardRef as t, useImperativeHandle as n, useMemo as r, useRef as i } from "react";
|
|
4
4
|
import { UI_COMMON_PREFIX as a } from "@unicom-cloud/utils/constant/ui";
|
package/development/index.js
CHANGED
package/empty/Empty.js
CHANGED
package/empty/index.js
CHANGED
package/flex/Flex.js
CHANGED
package/flex/index.js
CHANGED
package/flex/utils.js
CHANGED
package/higher-order/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
2
|
import { SPEECH_SYNTHESIS_COMPONENT_INFO as e } from "../../utils/names.js";
|
|
3
3
|
import t from "./withSpeechSynthesis.js";
|
|
4
4
|
//#region components/common/higher-order/with-speech-synthesis/index.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
2
|
import { SPEECH_SYNTHESIS_COMPONENT_INFO as e } from "../../utils/names.js";
|
|
3
3
|
import { forwardRef as t, memo as n, useCallback as r, useEffect as i, useImperativeHandle as a, useMemo as o, useState as s } from "react";
|
|
4
4
|
import { jsx as c } from "react/jsx-runtime";
|
package/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
|
|
2
2
|
import { isFunction as e, isString as t, isUndefined as n } from "../../utils/is.js";
|
|
3
3
|
import { object_exports as r } from "../../utils/object.js";
|
|
4
4
|
import i from "../use-memoized-fn/index.js";
|
package/hooks/use-drag/index.js
CHANGED
package/hooks/use-drop/index.js
CHANGED
package/hooks/use-event/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
2
|
export type GetStateAction<S> = () => S;
|
|
3
3
|
declare function useGetState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>, GetStateAction<S>];
|
|
4
4
|
declare function useGetState<S = undefined>(): [
|