@aura-react-comp/motion 0.1.2 → 0.1.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"aurora.d.ts","sourceRoot":"","sources":["aurora.tsx"],"names":[],"mappings":";AASA,MAAM,WAAW,WAAW;IAC1B,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,MAAM,CAAC,EACrB,MAA0C,EAC1C,KAAS,EACT,MAAY,EACZ,IAAS,EACT,SAAS,EACT,KAAK,GACN,EAAE,WAAW,+BA2Cb"}
1
+ {"version":3,"file":"aurora.d.ts","sourceRoot":"","sources":["aurora.tsx"],"names":[],"mappings":";AAYA,MAAM,WAAW,WAAW;IAC1B,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AASD,wBAAgB,MAAM,CAAC,EACrB,MAA0C,EAC1C,KAAS,EACT,MAAY,EACZ,IAAU,EACV,SAAS,EACT,KAAK,GACN,EAAE,WAAW,+BAuDb"}
@@ -1,30 +1,37 @@
1
1
  'use client';
2
2
 
3
3
  /**
4
- * 渐变氛围背景:数个大模糊色块缓慢漂移(GPU transform 循环)。
4
+ * 渐变氛围背景(质感精修版):大尺度低透明模糊椭圆做超慢轨道漂移 + 自转。
5
+ *
6
+ * 精修点:色块 320→480px、透明度 0.45→0.32(更弥散)、椭圆形态 + 60s 慢自转
7
+ * (模糊边缘产生形态变化)、三色块互质周期(14s/17s/21s)避免同步循环感。
5
8
  * 用于登录页、empty 态、hero 区。reduced-motion 下呈静止渐变。
6
9
  */
7
10
  import { motion, useReducedMotion } from 'motion/react';
8
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
+ /** 互质周期与相位各异的漂移轨道(椭圆八字形),下标循环取用 */
13
+ const ORBITS = [{
14
+ duration: 14,
15
+ x: [0, 64, 0, -64, 0],
16
+ y: [28, 0, -28, 0, 28]
17
+ }, {
18
+ duration: 17,
19
+ x: [0, -56, 0, 56, 0],
20
+ y: [-24, 0, 24, 0, -24]
21
+ }, {
22
+ duration: 21,
23
+ x: [0, 48, -48, 0, 48],
24
+ y: [0, 32, 0, -32, 0]
25
+ }];
9
26
  export function Aurora({
10
27
  colors = ['#7c3aed', '#06b6d4', '#f472b6'],
11
28
  blobs = 3,
12
29
  height = 320,
13
- blur = 80,
30
+ blur = 120,
14
31
  className,
15
32
  style
16
33
  }) {
17
34
  const reduced = useReducedMotion();
18
- const drift = [{
19
- x: [0, 48, -36, 0],
20
- y: [0, -32, 24, 0]
21
- }, {
22
- x: [0, -40, 32, 0],
23
- y: [0, 28, -24, 0]
24
- }, {
25
- x: [0, 32, 40, 0],
26
- y: [0, 24, -28, 0]
27
- }];
28
35
  return /*#__PURE__*/_jsx("div", {
29
36
  "aria-hidden": true,
30
37
  className: className,
@@ -33,32 +40,46 @@ export function Aurora({
33
40
  overflow: 'hidden',
34
41
  height,
35
42
  borderRadius: 16,
43
+ isolation: 'isolate',
36
44
  ...style
37
45
  },
38
46
  children: Array.from({
39
47
  length: blobs
40
48
  }).map((_, i) => {
41
- const d = drift[i % drift.length];
49
+ const orbit = ORBITS[i % ORBITS.length];
42
50
  return /*#__PURE__*/_jsx(motion.div, {
43
51
  style: {
44
52
  position: 'absolute',
45
- width: 320,
53
+ width: 480,
46
54
  height: 320,
47
55
  borderRadius: '50%',
48
56
  background: colors[i % colors.length],
49
57
  filter: `blur(${blur}px)`,
50
- opacity: 0.45,
51
- left: `${8 + i * 28}%`,
52
- top: `${16 + i % 2 * 32}%`
58
+ opacity: 0.32,
59
+ left: `${8 + i * 24}%`,
60
+ top: `${10 + i % 2 * 34}%`
53
61
  },
54
62
  animate: reduced ? undefined : {
55
- x: d.x,
56
- y: d.y
63
+ x: orbit.x,
64
+ y: orbit.y,
65
+ rotate: [0, i % 2 === 0 ? 360 : -360]
57
66
  },
58
- transition: {
59
- duration: 14 + i * 4,
60
- repeat: Infinity,
61
- ease: 'easeInOut'
67
+ transition: reduced ? undefined : {
68
+ x: {
69
+ duration: orbit.duration,
70
+ repeat: Infinity,
71
+ ease: 'easeInOut'
72
+ },
73
+ y: {
74
+ duration: orbit.duration,
75
+ repeat: Infinity,
76
+ ease: 'easeInOut'
77
+ },
78
+ rotate: {
79
+ duration: 60,
80
+ repeat: Infinity,
81
+ ease: 'linear'
82
+ }
62
83
  }
63
84
  }, i);
64
85
  })
@@ -1 +1 @@
1
- {"version":3,"file":"confetti.d.ts","sourceRoot":"","sources":["confetti.tsx"],"names":[],"mappings":";AAUA,MAAM,WAAW,aAAa;IAC5B,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAyBD,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,KAAW,EACX,MAA2B,EAC3B,MAAuB,GACxB,EAAE,aAAa,sCAsFf"}
1
+ {"version":3,"file":"confetti.d.ts","sourceRoot":"","sources":["confetti.tsx"],"names":[],"mappings":";AAeA,MAAM,WAAW,aAAa;IAC5B,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AA6BD,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,KAAW,EACX,MAA2B,EAC3B,MAAuB,GACxB,EAAE,aAAa,sCAuGf"}
@@ -1,8 +1,13 @@
1
1
  'use client';
2
2
 
3
3
  /**
4
- * 庆祝粒子(canvas 2d):`fire` 计数器变化时发射一轮。
5
- * reduced-motion 下不渲染任何内容;粒子全部离场后自动停止 rAF。
4
+ * 庆祝粒子(canvas 2d,物理精修版):`fire` 计数器变化时发射一轮。
5
+ *
6
+ * 精修点:
7
+ * - 形态:纸条(1:2.6)+ 圆点,纸条以 scaleY 正弦翻转模拟 3D 翻面;
8
+ * - 物理:初速呈上抛扇形分布(±60°),空气阻力 0.985/帧,
9
+ * 翻转速度与下落速度耦合,末段低速时水平摇摆(纸片飘落感);
10
+ * - reduced-motion 下不渲染任何内容;粒子全部离场后自动停止 rAF。
6
11
  */
7
12
  import { useEffect, useRef } from 'react';
8
13
  import { useReducedMotion } from 'motion/react';
@@ -19,7 +24,6 @@ export function Confetti({
19
24
  }) {
20
25
  const canvasRef = useRef(null);
21
26
  const reduced = useReducedMotion();
22
- const lastFire = useRef(0);
23
27
  useEffect(() => {
24
28
  if (!fire || reduced) return;
25
29
  const canvas = canvasRef.current;
@@ -32,19 +36,28 @@ export function Confetti({
32
36
  const oy = origin.y * canvas.height;
33
37
  const parts = Array.from({
34
38
  length: count
35
- }, (_, i) => ({
36
- x: ox,
37
- y: oy,
38
- vx: (Math.random() - 0.5) * 16,
39
- vy: -Math.random() * 14 - 4,
40
- rot: Math.random() * Math.PI,
41
- vr: (Math.random() - 0.5) * 0.3,
42
- size: 6 + Math.random() * 6,
43
- color: colors[i % colors.length],
44
- life: 1,
45
- decay: 0.008 + Math.random() * 0.008,
46
- rect: Math.random() > 0.5
47
- }));
39
+ }, (_, i) => {
40
+ // 上抛扇形:-90° ± 60°
41
+ const angle = -Math.PI / 2 + (Math.random() - 0.5) * (Math.PI * 2 / 3);
42
+ const speed = 8 + Math.random() * 9;
43
+ const ribbon = Math.random() > 0.55;
44
+ return {
45
+ x: ox,
46
+ y: oy,
47
+ vx: Math.cos(angle) * speed,
48
+ vy: Math.sin(angle) * speed,
49
+ rot: Math.random() * Math.PI,
50
+ vr: (Math.random() - 0.5) * 0.2,
51
+ tilt: Math.random() * Math.PI * 2,
52
+ tiltSpeed: 0.12 + Math.random() * 0.22,
53
+ w: ribbon ? 5 + Math.random() * 4 : 7 + Math.random() * 5,
54
+ h: ribbon ? 16 + Math.random() * 8 : 7 + Math.random() * 5,
55
+ color: colors[i % colors.length],
56
+ life: 1,
57
+ decay: 0.007 + Math.random() * 0.007,
58
+ ribbon
59
+ };
60
+ });
48
61
  let raf = 0;
49
62
  const tick = () => {
50
63
  ctx.clearRect(0, 0, canvas.width, canvas.height);
@@ -53,20 +66,29 @@ export function Confetti({
53
66
  p.life -= p.decay;
54
67
  if (p.life <= 0) continue;
55
68
  alive = true;
56
- p.vy += 0.35;
69
+
70
+ // 空气阻力 + 重力
71
+ p.vx *= 0.985;
72
+ p.vy = p.vy * 0.985 + 0.32;
57
73
  p.x += p.vx;
58
74
  p.y += p.vy;
59
75
  p.rot += p.vr;
76
+
77
+ // 翻面速度与下落速度耦合;低速末段水平摇摆(纸片飘落)
78
+ p.tilt += p.tiltSpeed * (Math.abs(p.vy) / 14 + 0.35);
79
+ if (p.vy > -1 && p.life < 0.7) p.x += Math.sin(p.tilt * 0.5) * 0.35;
60
80
  ctx.save();
61
81
  ctx.globalAlpha = Math.max(p.life, 0);
62
82
  ctx.translate(p.x, p.y);
63
83
  ctx.rotate(p.rot);
64
84
  ctx.fillStyle = p.color;
65
- if (p.rect) {
66
- ctx.fillRect(-p.size / 2, -p.size / 4, p.size, p.size / 2);
85
+ if (p.ribbon) {
86
+ // 纸条:scaleY 正弦翻转模拟 3D 翻面
87
+ ctx.scale(1, Math.sin(p.tilt));
88
+ ctx.fillRect(-p.w / 2, -p.h / 2, p.w, p.h);
67
89
  } else {
68
90
  ctx.beginPath();
69
- ctx.arc(0, 0, p.size / 2, 0, Math.PI * 2);
91
+ ctx.arc(0, 0, p.w / 2, 0, Math.PI * 2);
70
92
  ctx.fill();
71
93
  }
72
94
  ctx.restore();
@@ -78,7 +100,6 @@ export function Confetti({
78
100
  }
79
101
  };
80
102
  raf = requestAnimationFrame(tick);
81
- lastFire.current = fire;
82
103
  return () => cancelAnimationFrame(raf);
83
104
  // origin/colors 变化不重发;fire 是唯一触发器
84
105
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -1 +1 @@
1
- {"version":3,"file":"page-transition.d.ts","sourceRoot":"","sources":["page-transition.tsx"],"names":[],"mappings":";AAEA;;;;;;;;;;GAUG;AAEH,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAgC,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAE7E,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC;IACnF,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAC7B,aAAa,EACb,IAAa,EACb,QAAmB,EACnB,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,mBAAmB,+BAgBrB"}
1
+ {"version":3,"file":"page-transition.d.ts","sourceRoot":"","sources":["page-transition.tsx"],"names":[],"mappings":";AAEA;;;;;;;;;;GAUG;AAEH,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAgC,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAE7E,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC;IACnF,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAC7B,aAAa,EACb,IAAa,EACb,QAAmB,EACnB,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,mBAAmB,+BA2BrB"}
@@ -26,10 +26,7 @@ export function PageTransition({
26
26
  mode: mode,
27
27
  initial: false,
28
28
  children: /*#__PURE__*/_jsx(motion.div, {
29
- initial: {
30
- opacity: 0,
31
- y: 12
32
- },
29
+ initial: false,
33
30
  animate: {
34
31
  opacity: 1,
35
32
  y: 0
@@ -39,15 +36,30 @@ export function PageTransition({
39
36
  y: -8
40
37
  },
41
38
  transition: {
42
- duration: motionDurations[duration],
43
- ease: motionEases.standard
39
+ // 快退慢进:外层只负责退场(0.6 倍时长 + accelerate)
40
+ duration: motionDurations[duration] * 0.6,
41
+ ease: motionEases.accelerate
44
42
  },
45
43
  style: mode === 'sync' ? {
46
44
  position: 'relative',
47
45
  ...style
48
46
  } : style,
49
47
  ...rest,
50
- children: children
48
+ children: /*#__PURE__*/_jsx(motion.div, {
49
+ initial: {
50
+ opacity: 0,
51
+ y: 16
52
+ },
53
+ animate: {
54
+ opacity: 1,
55
+ y: 0
56
+ },
57
+ transition: {
58
+ duration: motionDurations[duration],
59
+ ease: motionEases.decelerate
60
+ },
61
+ children: children
62
+ })
51
63
  }, transitionKey)
52
64
  });
53
65
  }
@@ -1,16 +1,20 @@
1
1
  /// <reference types="react" />
2
2
  import { type SpringToken } from '../tokens';
3
3
  export interface NumberTickerProps {
4
- /** 目标数值;变化时从当前展示值过渡过去 */
4
+ /** 目标数值;变化时从当前位值过渡过去 */
5
5
  value: number;
6
6
  /** 数字格式化;默认按 zh-CN 千分位取整 */
7
7
  format?: (n: number) => string;
8
8
  /** 弹簧档位;'spring' 稳定、'bouncy' 轻微回弹 */
9
9
  spring?: SpringToken;
10
+ /** 位间错峰延迟(秒/位);默认 0.04 */
11
+ stagger?: number;
12
+ /** 挂载时是否从 0 滚入(false 则直接呈现) */
13
+ fromZero?: boolean;
10
14
  /** reduced-motion 时也用它渲染终值 */
11
15
  className?: string;
12
16
  style?: React.CSSProperties;
13
17
  'aria-label'?: string;
14
18
  }
15
- export declare function NumberTicker({ value, format, spring, className, style, ...rest }: NumberTickerProps): import("react").JSX.Element;
19
+ export declare function NumberTicker({ value, format, spring, stagger, fromZero, className, style, ...rest }: NumberTickerProps): import("react").JSX.Element;
16
20
  //# sourceMappingURL=number-ticker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-ticker.d.ts","sourceRoot":"","sources":["number-ticker.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/B,qCAAqC;IACrC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAA6D,EAC7D,MAAiB,EACjB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,+BAuBnB"}
1
+ {"version":3,"file":"number-ticker.d.ts","sourceRoot":"","sources":["number-ticker.tsx"],"names":[],"mappings":";AAqBA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/B,qCAAqC;IACrC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAyBD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAA6D,EAC7D,MAAiB,EACjB,OAAc,EACd,QAAe,EACf,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,+BAiCnB"}
@@ -1,30 +1,48 @@
1
1
  'use client';
2
2
 
3
3
  /**
4
- * 数字滚动:计数器、金额、指标变化。
4
+ * 数字滚动(精修版):计数器、金额、指标变化。
5
5
  *
6
- * value 变化时从**当前值**弹簧过渡到新值(流式场景不会从 0 重播);
6
+ * 精修点:**逐位独立弹簧**——每一位数字各自弹簧过渡并按位错峰(默认 40ms/位),
7
+ * 大数字滚动时呈现层次而非整体糊动;千分位逗号静态占位;
8
+ * 容器默认 `fontVariantNumeric: tabular-nums` 消除数字宽度抖动。
9
+ *
10
+ * value 变化时从当前位值过渡到新值;位数变化时新增位从 0 滚入;
7
11
  * reduced-motion 下直接呈现终值。
8
12
  */
9
13
  import { useEffect } from 'react';
10
14
  import { motion, useMotionValue, useReducedMotion, useSpring, useTransform } from 'motion/react';
11
15
  import { motionSprings } from "../tokens";
12
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
+ /** 单个数字位:独立弹簧 + 错峰延迟 */
18
+ function DigitColumn({
19
+ target,
20
+ delay,
21
+ spring,
22
+ fromZero
23
+ }) {
24
+ const raw = useMotionValue(fromZero ? 0 : target);
25
+ const springed = useSpring(raw, motionSprings[spring]);
26
+ const text = useTransform(springed, v => String(Math.round(v)));
27
+ useEffect(() => {
28
+ raw.set(target);
29
+ }, [target, raw]);
30
+ return /*#__PURE__*/_jsx(motion.span, {
31
+ children: text
32
+ });
33
+ }
13
34
  export function NumberTicker({
14
35
  value,
15
36
  format = n => Math.round(n).toLocaleString('zh-CN'),
16
37
  spring = 'spring',
38
+ stagger = 0.04,
39
+ fromZero = true,
17
40
  className,
18
41
  style,
19
42
  ...rest
20
43
  }) {
21
44
  const reduced = useReducedMotion();
22
- const raw = useMotionValue(value);
23
- const springed = useSpring(raw, motionSprings[spring]);
24
- const text = useTransform(springed, v => format(v));
25
- useEffect(() => {
26
- raw.set(value);
27
- }, [value, raw]);
45
+ const chars = format(value).split('');
28
46
  if (reduced) {
29
47
  return /*#__PURE__*/_jsx("span", {
30
48
  className: className,
@@ -33,10 +51,20 @@ export function NumberTicker({
33
51
  children: format(value)
34
52
  });
35
53
  }
36
- return /*#__PURE__*/_jsx(motion.span, {
54
+ return /*#__PURE__*/_jsx("span", {
37
55
  className: className,
38
- style: style,
56
+ style: {
57
+ fontVariantNumeric: 'tabular-nums',
58
+ ...style
59
+ },
39
60
  ...rest,
40
- children: text
61
+ children: chars.map((c, i) => /\d/.test(c) ? /*#__PURE__*/_jsx(DigitColumn, {
62
+ target: Number(c),
63
+ delay: i * stagger,
64
+ spring: spring,
65
+ fromZero: fromZero
66
+ }, `${i}-${chars.length}`) : /*#__PURE__*/_jsx("span", {
67
+ children: c
68
+ }, `${i}-${chars.length}`))
41
69
  });
42
70
  }
@@ -1,22 +1,29 @@
1
1
  /// <reference types="react" />
2
2
  /**
3
- * 进入视口时揭示:滚动浏览场景的默认进场(淡入 + 上移 16px)。
4
- *
5
- * 多个 Reveal 需要依次揭示时,用 `index` 传入序号(内部换算为 delay);
6
- * 复杂的时序编排请用 `<Timeline>`。
3
+ * 进入视口时揭示(精修版):
4
+ * - variant="fade"(默认):淡入上移,向后兼容;
5
+ * - variant="blur":blur 8px→0 对焦质感(进场瞬间的一次性短时 filter 动画);
6
+ * - variant="mask":外层 overflow hidden,内容从下方升起(Linear/Apple 风格);
7
+ * - variant="scale":0.96→1 卡片揭示。
8
+ * 错峰改为递增步进(0.08 + 0.04*i 累加),多卡片依次揭示节奏更有层次。
7
9
  */
8
10
  import { type HTMLMotionProps } from 'motion/react';
9
11
  import { type DurationToken } from '../tokens';
12
+ export type RevealVariant = 'fade' | 'blur' | 'mask' | 'scale';
10
13
  export interface RevealProps extends Omit<HTMLMotionProps<'div'>, 'initial' | 'animate' | 'transition'> {
11
- /** 兄弟 Reveal 的序号,自动换算 80ms 步进延迟;缺省 0 */
14
+ /** 兄弟 Reveal 的序号,自动换算递增错峰延迟;缺省 0 */
12
15
  index?: number;
13
16
  /** 显式延迟(秒),与 index 二选一 */
14
17
  delay?: number;
18
+ /** 揭示形态;默认 fade(向后兼容) */
19
+ variant?: RevealVariant;
15
20
  duration?: DurationToken;
16
21
  /** 视口判定边距,负值提前/正值延后触发;同 IntersectionObserver rootMargin */
17
22
  margin?: string;
18
23
  /** 是否只播放一次;默认 true(滚回上方不重播) */
19
24
  once?: boolean;
25
+ /** mask 形态下内容升起距离(px) */
26
+ rise?: number;
20
27
  }
21
- export declare function Reveal({ index, delay, duration, margin, once, style, ...rest }: RevealProps): import("react").JSX.Element;
28
+ export declare function Reveal({ index, delay, variant, duration, margin, once, rise, style, children, ...rest }: RevealProps): import("react").JSX.Element;
22
29
  //# sourceMappingURL=reveal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reveal.d.ts","sourceRoot":"","sources":["reveal.tsx"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAgC,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAG7E,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;IAC1E,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAS,EACT,KAAK,EACL,QAAmB,EACnB,MAA4B,EAC5B,IAAW,EACX,KAAK,EACL,GAAG,IAAI,EACR,EAAE,WAAW,+BAiBb"}
1
+ {"version":3,"file":"reveal.d.ts","sourceRoot":"","sources":["reveal.tsx"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAEH,OAAO,EAA4B,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAgC,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAE7E,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/D,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;IAC1E,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAUD,wBAAgB,MAAM,CAAC,EACrB,KAAS,EACT,KAAK,EACL,OAAgB,EAChB,QAAmB,EACnB,MAA4B,EAC5B,IAAW,EACX,IAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,WAAW,+BAmEb"}
@@ -1,45 +1,125 @@
1
1
  'use client';
2
2
 
3
3
  /**
4
- * 进入视口时揭示:滚动浏览场景的默认进场(淡入 + 上移 16px)。
5
- *
6
- * 多个 Reveal 需要依次揭示时,用 `index` 传入序号(内部换算为 delay);
7
- * 复杂的时序编排请用 `<Timeline>`。
4
+ * 进入视口时揭示(精修版):
5
+ * - variant="fade"(默认):淡入上移,向后兼容;
6
+ * - variant="blur":blur 8px→0 对焦质感(进场瞬间的一次性短时 filter 动画);
7
+ * - variant="mask":外层 overflow hidden,内容从下方升起(Linear/Apple 风格);
8
+ * - variant="scale":0.96→1 卡片揭示。
9
+ * 错峰改为递增步进(0.08 + 0.04*i 累加),多卡片依次揭示节奏更有层次。
8
10
  */
9
- import { motion } from 'motion/react';
11
+ import { motion, useReducedMotion } from 'motion/react';
10
12
  import { motionDurations, motionEases } from "../tokens";
11
- import { useReducedMotion } from 'motion/react';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
+ /** 递增错峰:基础步距 0.08s,每多一项额外 +0.04s(0, 0.12, 0.28, 0.48...) */
15
+ function staggerDelay(index, delay) {
16
+ if (delay !== undefined) return delay;
17
+ let t = 0;
18
+ for (let i = 0; i < index; i += 1) t += 0.08 + i * 0.04;
19
+ return t;
20
+ }
13
21
  export function Reveal({
14
22
  index = 0,
15
23
  delay,
24
+ variant = 'fade',
16
25
  duration = 'normal',
17
26
  margin = '0px 0px -64px 0px',
18
27
  once = true,
28
+ rise = 24,
19
29
  style,
30
+ children,
20
31
  ...rest
21
32
  }) {
22
33
  const reduced = useReducedMotion();
23
- const resolvedDelay = delay ?? index * 0.08;
34
+ const transition = {
35
+ duration: reduced ? 0 : motionDurations[duration],
36
+ ease: motionEases.decelerate,
37
+ delay: reduced ? 0 : staggerDelay(index, delay)
38
+ };
39
+ if (reduced) {
40
+ return /*#__PURE__*/_jsx(motion.div, {
41
+ style: style,
42
+ ...rest,
43
+ children: children
44
+ });
45
+ }
46
+
47
+ // mask 形态:外层裁切容器淡入,内层内容从下方升起(时长略放大以显层次)
48
+ if (variant === 'mask') {
49
+ return /*#__PURE__*/_jsx(motion.div, {
50
+ initial: {
51
+ opacity: 0
52
+ },
53
+ animate: {
54
+ opacity: 1
55
+ },
56
+ whileInView: {
57
+ opacity: 1
58
+ },
59
+ viewport: {
60
+ once,
61
+ margin
62
+ },
63
+ transition: transition,
64
+ style: {
65
+ overflow: 'hidden',
66
+ ...style
67
+ },
68
+ ...rest,
69
+ children: /*#__PURE__*/_jsx(motion.div, {
70
+ initial: {
71
+ y: rise
72
+ },
73
+ whileInView: {
74
+ y: 0
75
+ },
76
+ viewport: {
77
+ once,
78
+ margin
79
+ },
80
+ transition: {
81
+ ...transition,
82
+ duration: motionDurations[duration] * 1.15
83
+ },
84
+ children: children
85
+ })
86
+ });
87
+ }
88
+ const initialByVariant = variant === 'blur' ? {
89
+ opacity: 0,
90
+ y: 16,
91
+ filter: 'blur(8px)'
92
+ } : variant === 'scale' ? {
93
+ opacity: 0,
94
+ scale: 0.96,
95
+ y: 8
96
+ } : {
97
+ opacity: 0,
98
+ y: 16
99
+ };
100
+ const animateByVariant = variant === 'blur' ? {
101
+ opacity: 1,
102
+ y: 0,
103
+ filter: 'blur(0px)'
104
+ } : variant === 'scale' ? {
105
+ opacity: 1,
106
+ scale: 1,
107
+ y: 0
108
+ } : {
109
+ opacity: 1,
110
+ y: 0
111
+ };
24
112
  return /*#__PURE__*/_jsx(motion.div, {
25
- initial: reduced ? false : {
26
- opacity: 0,
27
- y: 16
28
- },
29
- whileInView: {
30
- opacity: 1,
31
- y: 0
32
- },
113
+ initial: initialByVariant,
114
+ animate: animateByVariant,
115
+ whileInView: animateByVariant,
33
116
  viewport: {
34
117
  once,
35
118
  margin
36
119
  },
37
- transition: {
38
- duration: reduced ? 0 : motionDurations[duration],
39
- ease: motionEases.decelerate,
40
- delay: reduced ? 0 : resolvedDelay
41
- },
120
+ transition: transition,
42
121
  style: style,
43
- ...rest
122
+ ...rest,
123
+ children: children
44
124
  });
45
125
  }
@@ -5,8 +5,10 @@ export interface SkeletonShimmerProps {
5
5
  radius?: number | string;
6
6
  /** 扫过一轮的时长(秒) */
7
7
  duration?: number;
8
+ /** 兄弟序号:错峰出光的相位偏移(0.12s/位) */
9
+ index?: number;
8
10
  className?: string;
9
11
  style?: React.CSSProperties;
10
12
  }
11
- export declare function SkeletonShimmer({ width, height, radius, duration, className, style, }: SkeletonShimmerProps): import("react").JSX.Element;
13
+ export declare function SkeletonShimmer({ width, height, radius, duration, index, className, style, }: SkeletonShimmerProps): import("react").JSX.Element;
12
14
  //# sourceMappingURL=skeleton-shimmer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-shimmer.d.ts","sourceRoot":"","sources":["skeleton-shimmer.tsx"],"names":[],"mappings":";AASA,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,iBAAiB;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAc,EACd,MAAW,EACX,MAAU,EACV,QAAc,EACd,SAAS,EACT,KAAK,GACN,EAAE,oBAAoB,+BA+BtB"}
1
+ {"version":3,"file":"skeleton-shimmer.d.ts","sourceRoot":"","sources":["skeleton-shimmer.tsx"],"names":[],"mappings":";AAYA,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,iBAAiB;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAc,EACd,MAAW,EACX,MAAU,EACV,QAAc,EACd,KAAS,EACT,SAAS,EACT,KAAK,GACN,EAAE,oBAAoB,+BAuCtB"}
@@ -1,8 +1,11 @@
1
1
  'use client';
2
2
 
3
3
  /**
4
- * 骨架屏光泽扫过:引擎驱动的 transform 循环(合成器友好),
5
- * reduced-motion 下呈现静止底色。
4
+ * 骨架屏光泽扫过(精修版):
5
+ * - 光带改为 55% 宽度的柔和渐变(原全宽扫掠过于生硬);
6
+ * - 新增 `index`:相邻骨架块按序号错峰出光(0.12s/位),多块组合时有节奏
7
+ * 而非"整页同时闪";
8
+ * - 引擎驱动的 transform 循环(合成器友好),reduced-motion 下呈现静止底色。
6
9
  */
7
10
  import { motion, useReducedMotion } from 'motion/react';
8
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -11,6 +14,7 @@ export function SkeletonShimmer({
11
14
  height = 16,
12
15
  radius = 8,
13
16
  duration = 1.4,
17
+ index = 0,
14
18
  className,
15
19
  style
16
20
  }) {
@@ -23,27 +27,30 @@ export function SkeletonShimmer({
23
27
  width,
24
28
  height,
25
29
  borderRadius: radius,
26
- background: 'rgba(127, 127, 127, 0.16)',
30
+ background: 'rgba(127, 127, 127, 0.14)',
27
31
  ...style
28
32
  },
29
33
  children: !reduced && /*#__PURE__*/_jsx(motion.div, {
30
34
  "aria-hidden": true,
31
35
  style: {
32
36
  position: 'absolute',
33
- inset: 0,
34
- background: 'linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent)'
37
+ top: 0,
38
+ bottom: 0,
39
+ width: '55%',
40
+ background: 'linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent)'
35
41
  },
36
42
  initial: {
37
- x: '-100%'
43
+ x: '-60%'
38
44
  },
39
45
  animate: {
40
- x: '100%'
46
+ x: '180%'
41
47
  },
42
48
  transition: {
43
49
  repeat: Infinity,
44
50
  duration,
45
51
  ease: 'linear',
46
- repeatDelay: 0.2
52
+ repeatDelay: 0.35,
53
+ delay: index % 6 * 0.12
47
54
  }
48
55
  })
49
56
  });
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  type Granularity = 'char' | 'word' | 'line';
3
+ export type SplitVariant = 'fade' | 'rise' | 'flip';
3
4
  export interface SplitTextProps {
4
5
  text: string;
5
6
  granularity?: Granularity;
@@ -8,10 +9,14 @@ export interface SplitTextProps {
8
9
  duration?: 'fast' | 'normal' | 'slow';
9
10
  /** mount 时播放(默认);inView = 进入视口时播放 */
10
11
  mode?: 'mount' | 'inView';
12
+ /** 入场形态;默认 fade(向后兼容) */
13
+ variant?: SplitVariant;
14
+ /** flip 形态的透视距离(px) */
15
+ perspective?: number;
11
16
  className?: string;
12
17
  /** 片段元素上附加的样式(如 inline-block 间距) */
13
18
  style?: React.CSSProperties;
14
19
  }
15
- export declare function SplitText({ text, granularity, stagger, duration, mode, className, style, }: SplitTextProps): import("react").JSX.Element;
20
+ export declare function SplitText({ text, granularity, stagger, duration, mode, variant, perspective, className, style, }: SplitTextProps): import("react").JSX.Element;
16
21
  export {};
17
22
  //# sourceMappingURL=split-text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"split-text.d.ts","sourceRoot":"","sources":["split-text.tsx"],"names":[],"mappings":";AAWA,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACtC,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAQD,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,WAAoB,EACpB,OAAc,EACd,QAAmB,EACnB,IAAc,EACd,SAAS,EACT,KAAK,GACN,EAAE,cAAc,+BAqEhB"}
1
+ {"version":3,"file":"split-text.d.ts","sourceRoot":"","sources":["split-text.tsx"],"names":[],"mappings":";AAeA,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAC5C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACtC,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,yBAAyB;IACzB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAQD,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,WAAoB,EACpB,OAAc,EACd,QAAmB,EACnB,IAAc,EACd,OAAgB,EAChB,WAAiB,EACjB,SAAS,EACT,KAAK,GACN,EAAE,cAAc,+BAmGhB"}
@@ -1,7 +1,11 @@
1
1
  'use client';
2
2
 
3
3
  /**
4
- * 文字拆分进场:按字 / 词 / 行三种粒度依次入场。
4
+ * 文字拆分进场(精修版):按字 / 词 / 行三种粒度依次入场。
5
+ * - variant="fade"(默认):淡入上移,向后兼容;
6
+ * - variant="rise":每字独立 overflow hidden 裁切,从遮罩下方升起(Linear/Apple 风格);
7
+ * - variant="flip":rotateX -90° 翻牌入场(带透视)。
8
+ * 默认 stagger 从 0.04 收紧到 0.03,长句节奏更紧凑。
5
9
  * reduced-motion 下直接渲染完整文本。
6
10
  */
7
11
  import { Fragment, useMemo } from 'react';
@@ -18,9 +22,11 @@ function split(text, granularity) {
18
22
  export function SplitText({
19
23
  text,
20
24
  granularity = 'char',
21
- stagger = 0.04,
25
+ stagger = 0.03,
22
26
  duration = 'normal',
23
27
  mode = 'mount',
28
+ variant = 'fade',
29
+ perspective = 600,
24
30
  className,
25
31
  style
26
32
  }) {
@@ -43,7 +49,31 @@ export function SplitText({
43
49
  }
44
50
  }
45
51
  };
46
- const item = {
52
+ const piece = variant === 'rise' ? {
53
+ hidden: {
54
+ y: '110%'
55
+ },
56
+ show: {
57
+ y: '0%',
58
+ transition: {
59
+ duration: motionDurations[duration] * 1.1,
60
+ ease: motionEases.decelerate
61
+ }
62
+ }
63
+ } : variant === 'flip' ? {
64
+ hidden: {
65
+ opacity: 0,
66
+ rotateX: -90
67
+ },
68
+ show: {
69
+ opacity: 1,
70
+ rotateX: 0,
71
+ transition: {
72
+ duration: motionDurations[duration],
73
+ ease: motionEases.decelerate
74
+ }
75
+ }
76
+ } : {
47
77
  hidden: {
48
78
  opacity: 0,
49
79
  y: granularity === 'line' ? 12 : 8
@@ -66,12 +96,24 @@ export function SplitText({
66
96
  } : {
67
97
  animate: 'show'
68
98
  };
99
+ const containerStyle = variant === 'flip' ? {
100
+ display: 'inline-block',
101
+ perspective,
102
+ ...style
103
+ } : {
104
+ display: 'inline-block',
105
+ ...style
106
+ };
107
+ const pieceStyle = {
108
+ display: 'inline-block',
109
+ willChange: 'transform, opacity',
110
+ ...(variant === 'rise' && granularity === 'char' ? {
111
+ whiteSpace: 'pre'
112
+ } : null)
113
+ };
69
114
  return /*#__PURE__*/_jsx(motion.span, {
70
115
  className: className,
71
- style: {
72
- display: 'inline-block',
73
- ...style
74
- },
116
+ style: containerStyle,
75
117
  initial: "hidden",
76
118
  variants: container,
77
119
  ...trigger,
@@ -81,16 +123,24 @@ export function SplitText({
81
123
  if (/^\s+$/.test(part)) return /*#__PURE__*/_jsx(Fragment, {
82
124
  children: part
83
125
  }, i);
84
- return /*#__PURE__*/_jsx(motion.span, {
85
- variants: item,
126
+ const pieceNode = /*#__PURE__*/_jsx(motion.span, {
127
+ variants: piece,
86
128
  "aria-hidden": true,
87
- style: {
88
- display: 'inline-block',
89
- willChange: 'transform, opacity'
90
- },
129
+ style: pieceStyle,
91
130
  children: granularity === 'line' ? /*#__PURE__*/_jsxs(_Fragment, {
92
131
  children: [i > 0 && /*#__PURE__*/_jsx("br", {}), part]
93
132
  }) : part
133
+ });
134
+ // rise 形态:每片包一层独立 overflow hidden 裁切,实现逐字升起
135
+ return variant === 'rise' ? /*#__PURE__*/_jsx("span", {
136
+ style: {
137
+ display: 'inline-block',
138
+ overflow: 'hidden',
139
+ verticalAlign: 'bottom'
140
+ },
141
+ children: pieceNode
142
+ }, i) : /*#__PURE__*/_jsx(Fragment, {
143
+ children: pieceNode
94
144
  }, i);
95
145
  })
96
146
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aura-react-comp/motion",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Aura 动效组件库 — 令牌驱动的场景化动画组件(进出场、数字与文字特效、滚动驱动、编排、手势)",
5
5
  "keywords": [
6
6
  "aura",