@ssgoi/core 3.2.1 → 3.3.0
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/README.md +10 -9
- package/dist/index.cjs +1 -2
- package/dist/index.js +155 -176
- package/dist/transition/create-transition-callback.d.ts.map +1 -1
- package/dist/transition/transition.d.ts +20 -13
- package/dist/transition/transition.d.ts.map +1 -1
- package/dist/transitions/blur.d.ts +2 -18
- package/dist/transitions/blur.d.ts.map +1 -1
- package/dist/transitions/bounce.d.ts +2 -18
- package/dist/transitions/bounce.d.ts.map +1 -1
- package/dist/transitions/fade.d.ts +2 -18
- package/dist/transitions/fade.d.ts.map +1 -1
- package/dist/transitions/fly.d.ts +2 -18
- package/dist/transitions/fly.d.ts.map +1 -1
- package/dist/transitions/index.cjs +1 -1
- package/dist/transitions/index.js +188 -172
- package/dist/transitions/mask.d.ts +2 -18
- package/dist/transitions/mask.d.ts.map +1 -1
- package/dist/transitions/none.d.ts +2 -18
- package/dist/transitions/none.d.ts.map +1 -1
- package/dist/transitions/rotate.d.ts +2 -18
- package/dist/transitions/rotate.d.ts.map +1 -1
- package/dist/transitions/scale.d.ts +2 -18
- package/dist/transitions/scale.d.ts.map +1 -1
- package/dist/transitions/slide.d.ts +2 -18
- package/dist/transitions/slide.d.ts.map +1 -1
- package/dist/types.d.ts +12 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/view-transitions/index.cjs +9 -9
- package/dist/view-transitions/index.d.ts +1 -0
- package/dist/view-transitions/index.d.ts.map +1 -1
- package/dist/view-transitions/index.js +129 -99
- package/dist/view-transitions/rotate.d.ts +3 -0
- package/dist/view-transitions/rotate.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/utils/parse-caller-location.d.ts +0 -6
- package/dist/utils/parse-caller-location.d.ts.map +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { StrategyContext, TRANSITION_STRATEGY, TransitionStrategy } from './transition-strategy';
|
|
2
|
-
import { TransitionCallback, TransitionOptions
|
|
3
|
-
|
|
2
|
+
import { RefCallback, TransitionCallback, TransitionOptions } from '../types';
|
|
3
|
+
type TransitionOptionsWithStrategy = TransitionOptions<undefined> & {
|
|
4
|
+
[TRANSITION_STRATEGY]?: (context: StrategyContext) => TransitionStrategy;
|
|
5
|
+
};
|
|
4
6
|
/**
|
|
5
7
|
* Framework-agnostic transition function that can be used as a ref
|
|
6
8
|
*
|
|
@@ -22,23 +24,28 @@ export declare function generateAutoKey(): TransitionKey;
|
|
|
22
24
|
* 4. `tick` - Called on each animation frame with progress value (1 → 0)
|
|
23
25
|
* 5. `onEnd` - Called when animation completes and element is removed
|
|
24
26
|
*
|
|
25
|
-
* @
|
|
27
|
+
* @param options - Transition configuration
|
|
28
|
+
* @param mode - 'manual' (default) returns cleanup, 'auto' handles unmount via MutationObserver
|
|
29
|
+
* @returns Callback function to be used as a ref
|
|
26
30
|
*
|
|
27
31
|
* @example
|
|
28
32
|
* ```tsx
|
|
33
|
+
* // Manual mode (default) - you handle cleanup
|
|
29
34
|
* <div ref={transition({
|
|
30
35
|
* key: 'hero-fade',
|
|
31
|
-
* in: (element) => ({
|
|
32
|
-
*
|
|
33
|
-
* tick: (progress) => el.style.opacity = progress.toString(),
|
|
34
|
-
* }),
|
|
35
|
-
* out: (element) => ({
|
|
36
|
-
* tick: (progress) => el.style.opacity = progress.toString(),
|
|
37
|
-
* })
|
|
36
|
+
* in: (element) => ({ tick: (p) => element.style.opacity = String(p) }),
|
|
37
|
+
* out: (element) => ({ tick: (p) => element.style.opacity = String(p) }),
|
|
38
38
|
* })} />
|
|
39
|
+
*
|
|
40
|
+
* // Auto mode - automatic unmount detection via MutationObserver
|
|
41
|
+
* <div ref={transition({
|
|
42
|
+
* key: 'hero-fade',
|
|
43
|
+
* in: (element) => ({ tick: (p) => element.style.opacity = String(p) }),
|
|
44
|
+
* out: (element) => ({ tick: (p) => element.style.opacity = String(p) }),
|
|
45
|
+
* }, 'auto')} />
|
|
39
46
|
* ```
|
|
40
47
|
*/
|
|
41
|
-
export declare function transition(options:
|
|
42
|
-
|
|
43
|
-
}
|
|
48
|
+
export declare function transition(options: TransitionOptionsWithStrategy, mode?: "manual"): TransitionCallback;
|
|
49
|
+
export declare function transition(options: TransitionOptionsWithStrategy, mode: "auto"): RefCallback;
|
|
50
|
+
export {};
|
|
44
51
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../src/lib/transition/transition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../src/lib/transition/transition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,WAAW,EAEX,kBAAkB,EAElB,iBAAiB,EAElB,MAAM,UAAU,CAAC;AA0ElB,KAAK,6BAA6B,GAAG,iBAAiB,CAAC,SAAS,CAAC,GAAG;IAClE,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,kBAAkB,CAAC;CAC1E,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,6BAA6B,EACtC,IAAI,CAAC,EAAE,QAAQ,GACd,kBAAkB,CAAC;AACtB,wBAAgB,UAAU,CACxB,OAAO,EAAE,6BAA6B,EACtC,IAAI,EAAE,MAAM,GACX,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Transition, TransitionKey } from '../types';
|
|
2
2
|
interface BlurOptions {
|
|
3
3
|
amount?: number | string;
|
|
4
4
|
opacity?: number;
|
|
@@ -10,22 +10,6 @@ interface BlurOptions {
|
|
|
10
10
|
};
|
|
11
11
|
key?: TransitionKey;
|
|
12
12
|
}
|
|
13
|
-
export declare const blur: (options?: BlurOptions) =>
|
|
14
|
-
key?: TransitionKey | undefined;
|
|
15
|
-
in: () => {
|
|
16
|
-
spring: {
|
|
17
|
-
stiffness?: number;
|
|
18
|
-
damping?: number;
|
|
19
|
-
};
|
|
20
|
-
css: (progress: number) => StyleObject;
|
|
21
|
-
};
|
|
22
|
-
out: () => {
|
|
23
|
-
spring: {
|
|
24
|
-
stiffness?: number;
|
|
25
|
-
damping?: number;
|
|
26
|
-
};
|
|
27
|
-
css: (progress: number) => StyleObject;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
13
|
+
export declare const blur: (options?: BlurOptions) => Transition;
|
|
30
14
|
export {};
|
|
31
15
|
//# sourceMappingURL=blur.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/blur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/blur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvE,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,UA+ChD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Transition, TransitionKey } from '../types';
|
|
2
2
|
interface BounceOptions {
|
|
3
3
|
height?: number;
|
|
4
4
|
intensity?: number;
|
|
@@ -11,22 +11,6 @@ interface BounceOptions {
|
|
|
11
11
|
};
|
|
12
12
|
key?: TransitionKey;
|
|
13
13
|
}
|
|
14
|
-
export declare const bounce: (options?: BounceOptions) =>
|
|
15
|
-
key?: TransitionKey | undefined;
|
|
16
|
-
in: () => {
|
|
17
|
-
spring: {
|
|
18
|
-
stiffness?: number;
|
|
19
|
-
damping?: number;
|
|
20
|
-
};
|
|
21
|
-
css: (progress: number) => StyleObject;
|
|
22
|
-
};
|
|
23
|
-
out: () => {
|
|
24
|
-
spring: {
|
|
25
|
-
stiffness?: number;
|
|
26
|
-
damping?: number;
|
|
27
|
-
};
|
|
28
|
-
css: (progress: number) => StyleObject;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
14
|
+
export declare const bounce: (options?: BounceOptions) => Transition;
|
|
31
15
|
export {};
|
|
32
16
|
//# sourceMappingURL=bounce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounce.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/bounce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"bounce.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/bounce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvE,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB,KAAG,UAwDpD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Transition, TransitionKey } from '../types';
|
|
2
2
|
interface FadeOptions {
|
|
3
3
|
from?: number;
|
|
4
4
|
to?: number;
|
|
@@ -8,22 +8,6 @@ interface FadeOptions {
|
|
|
8
8
|
};
|
|
9
9
|
key?: TransitionKey;
|
|
10
10
|
}
|
|
11
|
-
export declare const fade: (options?: FadeOptions) =>
|
|
12
|
-
key?: TransitionKey | undefined;
|
|
13
|
-
in: () => {
|
|
14
|
-
spring: {
|
|
15
|
-
stiffness?: number;
|
|
16
|
-
damping?: number;
|
|
17
|
-
};
|
|
18
|
-
css: (progress: number) => StyleObject;
|
|
19
|
-
};
|
|
20
|
-
out: () => {
|
|
21
|
-
spring: {
|
|
22
|
-
stiffness?: number;
|
|
23
|
-
damping?: number;
|
|
24
|
-
};
|
|
25
|
-
css: (progress: number) => StyleObject;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
11
|
+
export declare const fade: (options?: FadeOptions) => Transition;
|
|
28
12
|
export {};
|
|
29
13
|
//# sourceMappingURL=fade.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvE,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,UAuBhD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Transition, TransitionKey } from '../types';
|
|
2
2
|
interface FlyOptions {
|
|
3
3
|
x?: number | string;
|
|
4
4
|
y?: number | string;
|
|
@@ -9,22 +9,6 @@ interface FlyOptions {
|
|
|
9
9
|
};
|
|
10
10
|
key?: TransitionKey;
|
|
11
11
|
}
|
|
12
|
-
export declare const fly: (options?: FlyOptions) =>
|
|
13
|
-
key?: TransitionKey | undefined;
|
|
14
|
-
in: () => {
|
|
15
|
-
spring: {
|
|
16
|
-
stiffness?: number;
|
|
17
|
-
damping?: number;
|
|
18
|
-
};
|
|
19
|
-
css: (progress: number) => StyleObject;
|
|
20
|
-
};
|
|
21
|
-
out: () => {
|
|
22
|
-
spring: {
|
|
23
|
-
stiffness?: number;
|
|
24
|
-
damping?: number;
|
|
25
|
-
};
|
|
26
|
-
css: (progress: number) => StyleObject;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
12
|
+
export declare const fly: (options?: FlyOptions) => Transition;
|
|
29
13
|
export {};
|
|
30
14
|
//# sourceMappingURL=fly.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fly.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/fly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"fly.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/fly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvE,UAAU,UAAU;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,GAAG,GAAI,UAAS,UAAe,KAAG,UA2C9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=($={})=>{const{from:t=0,to:c=1,spring:n,key:a}=$,s={stiffness:(n==null?void 0:n.stiffness)??300,damping:(n==null?void 0:n.damping)??30};return{in:()=>({spring:s,css:e=>({opacity:t+(c-t)*e})}),out:()=>({spring:s,css:e=>({opacity:t+(c-t)*e})}),...a&&{key:a}}},k=($={})=>{const{start:t=0,opacity:c=0,axis:n="both",spring:a,key:s}=$,e={stiffness:(a==null?void 0:a.stiffness)??300,damping:(a==null?void 0:a.damping)??30},l=r=>{switch(n){case"x":return`scaleX(${r})`;case"y":return`scaleY(${r})`;case"both":default:return`scale(${r})`}},o=r=>{const f=t+(1-t)*r;return{transform:l(f),opacity:c+(1-c)*r}};return{in:()=>({spring:e,css:o}),out:()=>({spring:e,css:o}),...s&&{key:s}}},w=($={})=>{const{direction:t,distance:c=100,opacity:n=0,fade:a=!0,axis:s,spring:e,key:l}=$,o={stiffness:(e==null?void 0:e.stiffness)??400,damping:(e==null?void 0:e.damping)??35},f=t||(s==="x"?"left":s==="y"?"up":"left"),i=y=>{const u=1-y;if(typeof c=="number"){const d=u*c;switch(f){case"left":return`translate3d(${-d}px, 0, 0)`;case"right":return`translate3d(${d}px, 0, 0)`;case"up":return`translate3d(0, ${-d}px, 0)`;case"down":return`translate3d(0, ${d}px, 0)`}}else switch(f){case"left":return`translate3d(calc(-1 * ${c} * ${u}), 0, 0)`;case"right":return`translate3d(calc(${c} * ${u}), 0, 0)`;case"up":return`translate3d(0, calc(-1 * ${c} * ${u}), 0)`;case"down":return`translate3d(0, calc(${c} * ${u}), 0)`}},m=y=>{const u={transform:i(y)};return a&&(u.opacity=n+(1-n)*y),u};return{in:()=>({spring:o,css:m}),out:()=>({spring:o,css:m}),...l&&{key:l}}},C=($={})=>{const{degrees:t=360,clockwise:c=!0,scale:n=!1,fade:a=!0,origin:s="center",axis:e="2d",perspective:l=800,spring:o,key:r}=$,f={stiffness:(o==null?void 0:o.stiffness)??500,damping:(o==null?void 0:o.damping)??25},i=c?t:-t,m=u=>{const d=(1-u)*i;switch(e){case"x":return`perspective(${l}px) rotateX(${d}deg)`;case"y":return`perspective(${l}px) rotateY(${d}deg)`;case"z":return`rotateZ(${d}deg)`;case"2d":default:return`rotate(${d}deg)`}},y=u=>{const d={},p=[m(u)];return n&&p.push(`scale(${u})`),d.transform=p.join(" "),d.transformOrigin=s,a&&(d.opacity=u),d};return{in:()=>({spring:f,css:y}),out:()=>({spring:f,css:y}),...r&&{key:r}}},M=($={})=>{const{height:t=20,intensity:c=1,scale:n=!0,fade:a=!0,direction:s="up",spring:e,key:l}=$,o={stiffness:(e==null?void 0:e.stiffness)??800,damping:(e==null?void 0:e.damping)??15},r=f=>{const i={},m=[],y=Math.sin(f*Math.PI*(1+c)),u=1-f,d=y*t*u;if(s==="up"?m.push(`translateY(${-Math.abs(d)}px)`):m.push(`translateY(${Math.abs(d)}px)`),n){const p=.8+f*.2+y*.05*u;m.push(`scale(${p})`)}return i.transform=m.join(" "),a&&(i.opacity=f),i};return{in:()=>({spring:o,css:r}),out:()=>({spring:o,css:r}),...l&&{key:l}}},P=($={})=>{const{amount:t=10,opacity:c=0,scale:n=!1,fade:a=!0,spring:s,key:e}=$,l={stiffness:(s==null?void 0:s.stiffness)??300,damping:(s==null?void 0:s.damping)??30},o=r=>{const f=1-r,i={};return typeof t=="number"?i.filter=`blur(${f*t}px)`:i.filter=`blur(calc(${t} * ${f}))`,n&&(i.transform=`scale(${.8+r*.2})`),a&&(i.opacity=c+(1-c)*r),i};return{in:()=>({spring:l,css:o}),out:()=>({spring:l,css:o}),...e&&{key:e}}},S=($={})=>{const{x:t=0,y:c=-100,opacity:n=0,spring:a,key:s}=$,e={stiffness:(a==null?void 0:a.stiffness)??400,damping:(a==null?void 0:a.damping)??35},l=o=>{const r=1-o;let f,i;return typeof t=="number"?f=`${r*t}px`:f=`calc(${t} * ${r})`,typeof c=="number"?i=`${r*c}px`:i=`calc(${c} * ${r})`,{transform:`translate3d(${f}, ${i}, 0)`,opacity:n+(1-n)*o}};return{in:()=>({spring:e,css:l}),out:()=>({spring:e,css:l}),...s&&{key:s}}},z=($={})=>{const{shape:t="circle",origin:c="center",scale:n=1.5,fade:a=!1,spring:s,key:e}=$,l={stiffness:(s==null?void 0:s.stiffness)??300,damping:(s==null?void 0:s.damping)??30},o=()=>{switch(c){case"top":return"50% 0%";case"bottom":return"50% 100%";case"left":return"0% 50%";case"right":return"100% 50%";case"top-left":return"0% 0%";case"top-right":return"100% 0%";case"bottom-left":return"0% 100%";case"bottom-right":return"100% 100%";case"center":default:return"50% 50%"}},r=i=>{const m=i*n*100,y=o();switch(t){case"ellipse":return`ellipse(${m}% ${m*.75}% at ${y})`;case"square":{const u=i*n*100,[d,p]=y.split(" "),h=parseFloat(d),b=parseFloat(p),g=u/2;return`polygon(${h-g}% ${b-g}%, ${h+g}% ${b-g}%, ${h+g}% ${b+g}%, ${h-g}% ${b+g}%)`}case"circle":default:return`circle(${m}% at ${y})`}},f=i=>{const m={clipPath:r(i)};return a&&(m.opacity=i),m};return{in:()=>({spring:l,css:f}),out:()=>({spring:l,css:f}),...e&&{key:e}}},T=($={})=>{const{spring:t,key:c}=$,n={stiffness:(t==null?void 0:t.stiffness)??1e3,damping:(t==null?void 0:t.damping)??100};return{in:()=>({spring:n,css:()=>({})}),out:()=>({spring:n,css:()=>({})}),...c&&{key:c}}};exports.blur=P;exports.bounce=M;exports.fade=x;exports.fly=S;exports.mask=z;exports.none=T;exports.rotate=C;exports.scale=k;exports.slide=w;
|