@infinityfx/lively 2.1.6 → 3.0.0-beta.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 +2 -2
- package/dist/animations.js +2 -0
- package/dist/animations.js.map +1 -0
- package/dist/hooks.js +2 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/pop-0fdae9af.js +2 -0
- package/dist/pop-0fdae9af.js.map +1 -0
- package/dist/tslib.es6-96c5f7c9.js +2 -0
- package/dist/tslib.es6-96c5f7c9.js.map +1 -0
- package/dist/types/animatable.d.ts +40 -0
- package/dist/types/animate.d.ts +9 -0
- package/dist/types/animations/fade.d.ts +3 -0
- package/dist/types/animations/move.d.ts +3 -0
- package/dist/types/animations/pop.d.ts +3 -0
- package/dist/types/animations/scale.d.ts +3 -0
- package/dist/types/animations/wipe.d.ts +3 -0
- package/dist/types/animations.d.ts +6 -0
- package/dist/types/core/cache.d.ts +29 -0
- package/dist/types/core/clip.d.ts +51 -0
- package/dist/types/core/timeline.d.ts +32 -0
- package/dist/types/core/utils.d.ts +8 -0
- package/dist/types/hooks/use-link.d.ts +6 -0
- package/dist/types/hooks/use-mount.d.ts +3 -0
- package/dist/types/hooks/use-reduced-motion.d.ts +1 -0
- package/dist/types/hooks/use-scroll.d.ts +1 -0
- package/dist/types/hooks.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/utils-5bcfdcec.js +2 -0
- package/dist/utils-5bcfdcec.js.map +1 -0
- package/package.json +23 -26
- package/tsconfig.json +23 -0
- package/dist/cjs/animatable-6ef62899.js +0 -1
- package/dist/cjs/animation-42f8a59c.js +0 -1
- package/dist/cjs/animations.js +0 -1
- package/dist/cjs/auto.js +0 -1
- package/dist/cjs/events-5dde14ba.js +0 -1
- package/dist/cjs/hooks.js +0 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/link-66cfde2c.js +0 -1
- package/dist/cjs/pop-b6e5c61a.js +0 -1
- package/dist/cjs/scroll-9bb98808.js +0 -1
- package/dist/esm/animatable-5db28797.js +0 -1
- package/dist/esm/animation-14b9f97e.js +0 -1
- package/dist/esm/animations.js +0 -1
- package/dist/esm/auto.js +0 -1
- package/dist/esm/events-080727b0.js +0 -1
- package/dist/esm/hooks.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/link-0a883169.js +0 -1
- package/dist/esm/pop-8ecb8706.js +0 -1
- package/dist/esm/scroll-89df3fdf.js +0 -1
- package/types/animatable.d.ts +0 -164
- package/types/animate.d.ts +0 -45
- package/types/animations/animation.d.ts +0 -15
- package/types/animations/fade.d.ts +0 -9
- package/types/animations/move.d.ts +0 -19
- package/types/animations/pop.d.ts +0 -9
- package/types/animations/scale.d.ts +0 -19
- package/types/animations/wipe.d.ts +0 -19
- package/types/animations.d.ts +0 -8
- package/types/auto/layout-group.d.ts +0 -16
- package/types/auto/morph.d.ts +0 -26
- package/types/auto/parallax.d.ts +0 -11
- package/types/auto.d.ts +0 -5
- package/types/core/link.d.ts +0 -12
- package/types/globals.d.ts +0 -90
- package/types/hooks/link.d.ts +0 -8
- package/types/hooks/path.d.ts +0 -9
- package/types/hooks/reduced-motions.d.ts +0 -4
- package/types/hooks/scroll.d.ts +0 -6
- package/types/hooks/unmount.d.ts +0 -10
- package/types/hooks.d.ts +0 -7
- package/types/index.d.ts +0 -4
package/types/core/link.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type Link = {
|
|
2
|
-
|
|
3
|
-
set: (val: any, duration?: number) => void;
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A reactive `Function` which returns it currently stored value.
|
|
9
|
-
*
|
|
10
|
-
* @param {Function} transformer - A function which transforms the `Link` value before returning it.
|
|
11
|
-
*/
|
|
12
|
-
export function Link(transformer?: (val: any) => any): any;
|
package/types/globals.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
type TranslateProperty = { x?: number; y?: number; } | string;
|
|
4
|
-
|
|
5
|
-
type ScaleProperty = { x?: number; y?: number; } | string | number;
|
|
6
|
-
|
|
7
|
-
type ClipProperty = {
|
|
8
|
-
left?: number | string;
|
|
9
|
-
top?: number | string;
|
|
10
|
-
right?: number | string;
|
|
11
|
-
bottom?: number | string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface AnimationInitials extends React.CSSProperties {
|
|
15
|
-
/**
|
|
16
|
-
* Define the position of an `element` relative to initial rendered position.
|
|
17
|
-
*
|
|
18
|
-
* @default { x: 0, y: 0 }
|
|
19
|
-
*/
|
|
20
|
-
translate?: TranslateProperty;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @default { x: 1, y: 1 }
|
|
24
|
-
*/
|
|
25
|
-
scale?: ScaleProperty;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @default 0
|
|
29
|
-
*/
|
|
30
|
-
rotate?: number | string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @default { left: 0, top: 0, right: 0, bottom: 0 }
|
|
34
|
-
*/
|
|
35
|
-
clip?: ClipProperty;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Value between `0` and `1` which defines how much of an `SVGElement`'s stroke is shown.
|
|
39
|
-
*
|
|
40
|
-
* @default 1
|
|
41
|
-
*/
|
|
42
|
-
length?: number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface AnimationProperties extends AnimationInitials {
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Delay of the animation in seconds.
|
|
49
|
-
*
|
|
50
|
-
* @default 0
|
|
51
|
-
*/
|
|
52
|
-
delay?: number;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Duration of animation in seconds.
|
|
56
|
-
*
|
|
57
|
-
* @default 1
|
|
58
|
-
*/
|
|
59
|
-
duration?: number;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Number of times to repeat the animation.
|
|
63
|
-
*
|
|
64
|
-
* Accepts `Infinity` as a value to loop the animation indefinitely.
|
|
65
|
-
*
|
|
66
|
-
* @default 1
|
|
67
|
-
*/
|
|
68
|
-
repeat?: number;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Whether to alternate the animation direction (reversed) on repeats.
|
|
72
|
-
*
|
|
73
|
-
* @default false
|
|
74
|
-
*/
|
|
75
|
-
alternate?: boolean;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Interpolation method used between keyframes.
|
|
79
|
-
*
|
|
80
|
-
* @default "ease"
|
|
81
|
-
*/
|
|
82
|
-
interpolate?: 'constant' | 'linear' | 'ease' | 'spring';
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Alias for `transform-origin`.
|
|
86
|
-
*
|
|
87
|
-
* @default { x: 0.5, y: 0.5 }
|
|
88
|
-
*/
|
|
89
|
-
origin?: string | { x?: number, y?: number } | number;
|
|
90
|
-
}
|
package/types/hooks/link.d.ts
DELETED
package/types/hooks/path.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Returns a `Function`, which can be passed as an animation value for the `translate` property, that describes the motion along a referenced `SVGElement`'s path.
|
|
5
|
-
*
|
|
6
|
-
* @param {number[]} [offset=[0, 0]] - Offset the path's position by some amount along the x and y axis in pixels.
|
|
7
|
-
* @param {number} [scale=1] - Scale the size of the path some amount.
|
|
8
|
-
*/
|
|
9
|
-
export function usePath(offset?: number[], scale?: number): [Function, React.Ref<SVGElement>];
|
package/types/hooks/scroll.d.ts
DELETED
package/types/hooks/unmount.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Animatable } from '../animatable';
|
|
3
|
-
import { Animate } from '../animate';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Returns a boolean value which dictates whether the referenced component should be mounted or not and allows for animating the respective component when it unmounts.
|
|
7
|
-
*
|
|
8
|
-
* @param {boolean} initial - whether the referenced component is initially mounted.
|
|
9
|
-
*/
|
|
10
|
-
export function useUnmount(initial: boolean): [boolean, (mounted: boolean) => void, React.Ref<Animatable | Animate>];
|
package/types/hooks.d.ts
DELETED
package/types/index.d.ts
DELETED