@progress/kendo-react-animation 9.0.0-develop.2 → 9.0.0-develop.3
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/Animation.js +1 -1
- package/Animation.mjs +41 -63
- package/AnimationChild.js +1 -1
- package/AnimationChild.mjs +116 -96
- package/Expand.js +1 -1
- package/Expand.mjs +39 -34
- package/Fade.js +1 -1
- package/Fade.mjs +36 -28
- package/Push.js +1 -1
- package/Push.mjs +41 -43
- package/README.md +27 -26
- package/Reveal.js +1 -1
- package/Reveal.mjs +78 -97
- package/Slide.js +1 -1
- package/Slide.mjs +39 -36
- package/Zoom.js +1 -1
- package/Zoom.mjs +41 -41
- package/dist/cdn/js/kendo-react-animation.js +1 -1
- package/hooks/useAnimation.js +1 -1
- package/hooks/useAnimation.mjs +12 -17
- package/index.d.mts +49 -206
- package/index.d.ts +49 -206
- package/package-metadata.mjs +1 -1
- package/package.json +2 -2
package/Animation.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),e=require("prop-types"),r=require("@progress/kendo-react-common"),C=require("./AnimationChild.js"),N=require("react-transition-group"),O=require("./package-metadata.js");function A(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(i,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return i.default=t,Object.freeze(i)}const s=A(R),c=t=>{r.validatePackage(O.packageMetadata);const{id:i,style:n,children:o,component:l="div",className:u,childFactory:d,stackChildren:T,componentChildStyle:m,componentChildClassName:y,...p}=t,g=r.useUnstyled()||t.unstyled,a=t.unstyled||g,b=a&&a.uAnimation,f={id:i,style:n,component:l,childFactory:d,className:r.classNames(r.uAnimation.child({c:b}),u)},h=s.Children.map(o||null,q=>s.createElement(C.AnimationChild,{...p,unstyled:a,style:m,className:y},q));return s.createElement(N.TransitionGroup,{...f},h)};c.propTypes={children:e.oneOfType([e.arrayOf(e.node),e.node]),childFactory:e.any,className:e.string,component:e.string,id:e.string,style:e.any,transitionName:e.string.isRequired,appear:e.bool.isRequired,enter:e.bool.isRequired,exit:e.bool.isRequired,transitionEnterDuration:e.number.isRequired,transitionExitDuration:e.number.isRequired};exports.Animation=c;
|
package/Animation.mjs
CHANGED
|
@@ -6,70 +6,48 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
11
|
-
import { validatePackage as
|
|
12
|
-
import { AnimationChild as
|
|
13
|
-
import { TransitionGroup as
|
|
14
|
-
import { packageMetadata as
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
style: i,
|
|
37
|
-
component: a,
|
|
38
|
-
childFactory: l,
|
|
39
|
-
className: C(N.child({ c: u }), c)
|
|
40
|
-
}, y = e.Children.map(s || null, (f) => /* @__PURE__ */ e.createElement(
|
|
41
|
-
g,
|
|
42
|
-
{
|
|
43
|
-
...d,
|
|
44
|
-
style: m,
|
|
45
|
-
className: p
|
|
46
|
-
},
|
|
47
|
-
f
|
|
48
|
-
));
|
|
49
|
-
return /* @__PURE__ */ e.createElement(q, { ...h }, y);
|
|
50
|
-
}
|
|
9
|
+
import * as i from "react";
|
|
10
|
+
import e from "prop-types";
|
|
11
|
+
import { validatePackage as R, useUnstyled as g, classNames as q, uAnimation as C } from "@progress/kendo-react-common";
|
|
12
|
+
import { AnimationChild as b } from "./AnimationChild.mjs";
|
|
13
|
+
import { TransitionGroup as A } from "react-transition-group";
|
|
14
|
+
import { packageMetadata as x } from "./package-metadata.mjs";
|
|
15
|
+
const E = (t) => {
|
|
16
|
+
R(x);
|
|
17
|
+
const {
|
|
18
|
+
id: o,
|
|
19
|
+
style: r,
|
|
20
|
+
children: s,
|
|
21
|
+
component: a = "div",
|
|
22
|
+
className: l,
|
|
23
|
+
childFactory: c,
|
|
24
|
+
stackChildren: T,
|
|
25
|
+
componentChildStyle: m,
|
|
26
|
+
componentChildClassName: d,
|
|
27
|
+
...u
|
|
28
|
+
} = t, p = g() || t.unstyled, n = t.unstyled || p, y = n && n.uAnimation, h = {
|
|
29
|
+
id: o,
|
|
30
|
+
style: r,
|
|
31
|
+
component: a,
|
|
32
|
+
childFactory: c,
|
|
33
|
+
className: q(C.child({ c: y }), l)
|
|
34
|
+
}, f = i.Children.map(s || null, (N) => /* @__PURE__ */ i.createElement(b, { ...u, unstyled: n, style: m, className: d }, N));
|
|
35
|
+
return /* @__PURE__ */ i.createElement(A, { ...h }, f);
|
|
51
36
|
};
|
|
52
|
-
|
|
53
|
-
children:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
exit: t.bool.isRequired,
|
|
66
|
-
transitionEnterDuration: t.number.isRequired,
|
|
67
|
-
transitionExitDuration: t.number.isRequired
|
|
68
|
-
}, o.defaultProps = {
|
|
69
|
-
component: "div"
|
|
37
|
+
E.propTypes = {
|
|
38
|
+
children: e.oneOfType([e.arrayOf(e.node), e.node]),
|
|
39
|
+
childFactory: e.any,
|
|
40
|
+
className: e.string,
|
|
41
|
+
component: e.string,
|
|
42
|
+
id: e.string,
|
|
43
|
+
style: e.any,
|
|
44
|
+
transitionName: e.string.isRequired,
|
|
45
|
+
appear: e.bool.isRequired,
|
|
46
|
+
enter: e.bool.isRequired,
|
|
47
|
+
exit: e.bool.isRequired,
|
|
48
|
+
transitionEnterDuration: e.number.isRequired,
|
|
49
|
+
transitionExitDuration: e.number.isRequired
|
|
70
50
|
};
|
|
71
|
-
let r = o;
|
|
72
|
-
r.contextType = R;
|
|
73
51
|
export {
|
|
74
|
-
|
|
52
|
+
E as Animation
|
|
75
53
|
};
|
package/AnimationChild.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),t=require("prop-types"),n=require("@progress/kendo-react-common"),B=require("react-transition-group");function F(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const m=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(s,e,m.get?m:{enumerable:!0,get:()=>r[e]})}}return s.default=r,Object.freeze(s)}const c=F(G),d=c.forwardRef((r,s)=>{const e=c.useRef(null),{mountOnEnter:m=i.mountOnEnter,unmountOnExit:O=i.unmountOnExit,onEnter:E=i.onEnter,onEntering:x=i.onEntering,onEntered:g=i.onEntered,onExit:f=i.onExit,onExiting:p=i.onExiting,onExited:y=i.onExited,onAfterExited:S=i.onAfterExited,animationEnteringStyle:R=i.animationEnteringStyle,animationEnteredStyle:j=i.animationEnteredStyle,animationExitingStyle:D=i.animationExitingStyle,animationExitedStyle:h=i.animationExitedStyle,children:C,style:T,appear:q,enter:P,exit:_,transitionName:u,transitionEnterDuration:A,transitionExitDuration:b,className:k,unstyled:v,...w}=r,H={transitionDelay:"0ms",...T},l=v&&v.uAnimation,I=n.classNames(k,n.uAnimation.childContainer({c:l})),o=c.useRef({element:e.current,props:r}),a=c.useRef(null);c.useImperativeHandle(a,()=>({element:e.current,props:r})),c.useImperativeHandle(s,()=>a.current,[]);const M={entering:{transitionDuration:`${A}ms`,...R},entered:{...j},exiting:{transitionDuration:`${b}ms`,...D},exited:{...h}},$={in:r.in,appear:q,enter:P,exit:_,mountOnEnter:m,unmountOnExit:O,timeout:{enter:A,exit:b},onEnter:()=>{E&&E.call(void 0,{animatedElement:e.current,target:a.current||o.current})},onEntering:()=>{x&&x.call(void 0,{animatedElement:e.current,target:a.current||o.current})},onEntered:()=>{g&&g.call(void 0,{animatedElement:e.current,target:a.current||o.current})},onExit:()=>{f&&f.call(void 0,{animatedElement:e.current,target:a.current||o.current})},onExiting:()=>{p&&p.call(void 0,{animatedElement:e.current,target:a.current||o.current})},onExited:()=>{S&&S.call(void 0,{animatedElement:e.current,target:a.current||o.current}),y&&y.call(void 0,{animatedElement:e.current,target:a.current||o.current})},classNames:{appear:n.classNames(n.uAnimation.appear({c:l,transitionName:u})),appearActive:n.classNames(n.uAnimation.appearActive({c:l,transitionName:u})),enter:n.classNames(n.uAnimation.enter({c:l,transitionName:u})),enterActive:n.classNames(n.uAnimation.enterActive({c:l,transitionName:u})),exit:n.classNames(n.uAnimation.exit({c:l,transitionName:u})),exitActive:n.classNames(n.uAnimation.exitActive({c:l,transitionName:u}))}};return c.createElement(B.CSSTransition,{...$,...w,nodeRef:e},z=>c.createElement("div",{style:{...H,...M[z]},className:I,ref:N=>{e.current=N,o.current.element=N}},C))}),i={mountOnEnter:!0,unmountOnExit:!1,onEnter:n.noop,onEntering:n.noop,onEntered:n.noop,onExit:n.noop,onExiting:n.noop,onExited:n.noop,onAfterExited:n.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}};d.displayName="AnimationChild";d.propTypes={in:t.bool,children:t.oneOfType([t.arrayOf(t.node),t.node]),transitionName:t.string.isRequired,className:t.string,appear:t.bool,enter:t.bool,exit:t.bool,transitionEnterDuration:t.number.isRequired,transitionExitDuration:t.number.isRequired,mountOnEnter:t.bool,unmountOnExit:t.bool,animationEnteringStyle:t.object,animationEnteredStyle:t.object,animationExitingStyle:t.object,animationExitedStyle:t.object};exports.AnimationChild=d;
|
package/AnimationChild.mjs
CHANGED
|
@@ -6,114 +6,150 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
9
|
+
import * as a from "react";
|
|
10
10
|
import t from "prop-types";
|
|
11
|
-
import {
|
|
12
|
-
import { CSSTransition as
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
onExiting: p,
|
|
42
|
-
onExited: h,
|
|
43
|
-
onAfterExited: f,
|
|
44
|
-
mountOnEnter: A,
|
|
45
|
-
unmountOnExit: N,
|
|
46
|
-
animationEnteringStyle: O,
|
|
47
|
-
animationEnteredStyle: D,
|
|
48
|
-
animationExitingStyle: T,
|
|
49
|
-
animationExitedStyle: j,
|
|
50
|
-
...q
|
|
51
|
-
} = this.props, e = this.context && this.context.uAnimation, C = i(R, o.childContainer({ c: e })), P = {
|
|
11
|
+
import { classNames as l, uAnimation as m, noop as c } from "@progress/kendo-react-common";
|
|
12
|
+
import { CSSTransition as K } from "react-transition-group";
|
|
13
|
+
const O = a.forwardRef(
|
|
14
|
+
(E, R) => {
|
|
15
|
+
const e = a.useRef(null), {
|
|
16
|
+
mountOnEnter: N = n.mountOnEnter,
|
|
17
|
+
unmountOnExit: h = n.unmountOnExit,
|
|
18
|
+
onEnter: s = n.onEnter,
|
|
19
|
+
onEntering: d = n.onEntering,
|
|
20
|
+
onEntered: x = n.onEntered,
|
|
21
|
+
onExit: g = n.onExit,
|
|
22
|
+
onExiting: f = n.onExiting,
|
|
23
|
+
onExited: y = n.onExited,
|
|
24
|
+
onAfterExited: p = n.onAfterExited,
|
|
25
|
+
animationEnteringStyle: D = n.animationEnteringStyle,
|
|
26
|
+
animationEnteredStyle: C = n.animationEnteredStyle,
|
|
27
|
+
animationExitingStyle: T = n.animationExitingStyle,
|
|
28
|
+
animationExitedStyle: j = n.animationExitedStyle,
|
|
29
|
+
children: q,
|
|
30
|
+
style: P,
|
|
31
|
+
appear: H,
|
|
32
|
+
enter: I,
|
|
33
|
+
exit: $,
|
|
34
|
+
transitionName: u,
|
|
35
|
+
transitionEnterDuration: S,
|
|
36
|
+
transitionExitDuration: v,
|
|
37
|
+
className: w,
|
|
38
|
+
unstyled: A,
|
|
39
|
+
...k
|
|
40
|
+
} = E, z = {
|
|
52
41
|
transitionDelay: "0ms",
|
|
53
|
-
...
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
...P
|
|
43
|
+
}, o = A && A.uAnimation, B = l(w, m.childContainer({ c: o })), r = a.useRef({
|
|
44
|
+
element: e.current,
|
|
45
|
+
props: E
|
|
46
|
+
}), i = a.useRef(null);
|
|
47
|
+
a.useImperativeHandle(i, () => ({
|
|
48
|
+
element: e.current,
|
|
49
|
+
props: E
|
|
50
|
+
})), a.useImperativeHandle(
|
|
51
|
+
R,
|
|
52
|
+
() => i.current,
|
|
53
|
+
[]
|
|
54
|
+
);
|
|
55
|
+
const F = {
|
|
56
|
+
entering: { transitionDuration: `${S}ms`, ...D },
|
|
57
|
+
entered: { ...C },
|
|
58
|
+
exiting: { transitionDuration: `${v}ms`, ...T },
|
|
58
59
|
exited: { ...j }
|
|
59
|
-
},
|
|
60
|
-
in:
|
|
61
|
-
appear:
|
|
62
|
-
enter:
|
|
63
|
-
exit:
|
|
64
|
-
mountOnEnter:
|
|
65
|
-
unmountOnExit:
|
|
60
|
+
}, G = {
|
|
61
|
+
in: E.in,
|
|
62
|
+
appear: H,
|
|
63
|
+
enter: I,
|
|
64
|
+
exit: $,
|
|
65
|
+
mountOnEnter: N,
|
|
66
|
+
unmountOnExit: h,
|
|
66
67
|
timeout: {
|
|
67
|
-
enter:
|
|
68
|
-
exit:
|
|
68
|
+
enter: S,
|
|
69
|
+
exit: v
|
|
69
70
|
},
|
|
70
71
|
onEnter: () => {
|
|
71
|
-
|
|
72
|
+
s && s.call(void 0, {
|
|
73
|
+
animatedElement: e.current,
|
|
74
|
+
target: i.current || r.current
|
|
75
|
+
});
|
|
72
76
|
},
|
|
73
77
|
onEntering: () => {
|
|
74
|
-
d && d.call(void 0, {
|
|
78
|
+
d && d.call(void 0, {
|
|
79
|
+
animatedElement: e.current,
|
|
80
|
+
target: i.current || r.current
|
|
81
|
+
});
|
|
75
82
|
},
|
|
76
83
|
onEntered: () => {
|
|
77
|
-
x && x.call(void 0, {
|
|
84
|
+
x && x.call(void 0, {
|
|
85
|
+
animatedElement: e.current,
|
|
86
|
+
target: i.current || r.current
|
|
87
|
+
});
|
|
78
88
|
},
|
|
79
89
|
onExit: () => {
|
|
80
|
-
|
|
90
|
+
g && g.call(void 0, {
|
|
91
|
+
animatedElement: e.current,
|
|
92
|
+
target: i.current || r.current
|
|
93
|
+
});
|
|
81
94
|
},
|
|
82
95
|
onExiting: () => {
|
|
83
|
-
|
|
96
|
+
f && f.call(void 0, {
|
|
97
|
+
animatedElement: e.current,
|
|
98
|
+
target: i.current || r.current
|
|
99
|
+
});
|
|
84
100
|
},
|
|
85
101
|
onExited: () => {
|
|
86
|
-
|
|
102
|
+
p && p.call(void 0, {
|
|
103
|
+
animatedElement: e.current,
|
|
104
|
+
target: i.current || r.current
|
|
105
|
+
}), y && y.call(void 0, {
|
|
106
|
+
animatedElement: e.current,
|
|
107
|
+
target: i.current || r.current
|
|
108
|
+
});
|
|
87
109
|
},
|
|
88
110
|
classNames: {
|
|
89
|
-
appear:
|
|
90
|
-
appearActive:
|
|
91
|
-
enter:
|
|
92
|
-
enterActive:
|
|
93
|
-
exit:
|
|
94
|
-
exitActive:
|
|
111
|
+
appear: l(m.appear({ c: o, transitionName: u })),
|
|
112
|
+
appearActive: l(m.appearActive({ c: o, transitionName: u })),
|
|
113
|
+
enter: l(m.enter({ c: o, transitionName: u })),
|
|
114
|
+
enterActive: l(m.enterActive({ c: o, transitionName: u })),
|
|
115
|
+
exit: l(m.exit({ c: o, transitionName: u })),
|
|
116
|
+
exitActive: l(m.exitActive({ c: o, transitionName: u }))
|
|
95
117
|
}
|
|
96
118
|
};
|
|
97
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ a.createElement(K, { ...G, ...k, nodeRef: e }, (J) => /* @__PURE__ */ a.createElement(
|
|
98
120
|
"div",
|
|
99
121
|
{
|
|
100
122
|
style: {
|
|
101
|
-
...
|
|
102
|
-
|
|
123
|
+
...z,
|
|
124
|
+
...F[J]
|
|
103
125
|
},
|
|
104
|
-
className:
|
|
105
|
-
ref:
|
|
126
|
+
className: B,
|
|
127
|
+
ref: (b) => {
|
|
128
|
+
e.current = b, r.current.element = b;
|
|
129
|
+
}
|
|
106
130
|
},
|
|
107
|
-
|
|
131
|
+
q
|
|
108
132
|
));
|
|
109
133
|
}
|
|
134
|
+
), n = {
|
|
135
|
+
mountOnEnter: !0,
|
|
136
|
+
unmountOnExit: !1,
|
|
137
|
+
onEnter: c,
|
|
138
|
+
onEntering: c,
|
|
139
|
+
onEntered: c,
|
|
140
|
+
onExit: c,
|
|
141
|
+
onExiting: c,
|
|
142
|
+
onExited: c,
|
|
143
|
+
onAfterExited: c,
|
|
144
|
+
animationEnteringStyle: {},
|
|
145
|
+
animationEnteredStyle: {},
|
|
146
|
+
animationExitingStyle: {},
|
|
147
|
+
animationExitedStyle: {}
|
|
110
148
|
};
|
|
111
|
-
|
|
149
|
+
O.displayName = "AnimationChild";
|
|
150
|
+
O.propTypes = {
|
|
112
151
|
in: t.bool,
|
|
113
|
-
children: t.oneOfType([
|
|
114
|
-
t.arrayOf(t.node),
|
|
115
|
-
t.node
|
|
116
|
-
]),
|
|
152
|
+
children: t.oneOfType([t.arrayOf(t.node), t.node]),
|
|
117
153
|
transitionName: t.string.isRequired,
|
|
118
154
|
className: t.string,
|
|
119
155
|
appear: t.bool,
|
|
@@ -127,23 +163,7 @@ s.propTypes = {
|
|
|
127
163
|
animationEnteredStyle: t.object,
|
|
128
164
|
animationExitingStyle: t.object,
|
|
129
165
|
animationExitedStyle: t.object
|
|
130
|
-
}, s.defaultProps = {
|
|
131
|
-
mountOnEnter: !0,
|
|
132
|
-
unmountOnExit: !1,
|
|
133
|
-
onEnter: n,
|
|
134
|
-
onEntering: n,
|
|
135
|
-
onEntered: n,
|
|
136
|
-
onExit: n,
|
|
137
|
-
onExiting: n,
|
|
138
|
-
onExited: n,
|
|
139
|
-
onAfterExited: n,
|
|
140
|
-
animationEnteringStyle: {},
|
|
141
|
-
animationEnteredStyle: {},
|
|
142
|
-
animationExitingStyle: {},
|
|
143
|
-
animationExitedStyle: {}
|
|
144
166
|
};
|
|
145
|
-
let l = s;
|
|
146
|
-
l.contextType = w;
|
|
147
167
|
export {
|
|
148
|
-
|
|
168
|
+
O as AnimationChild
|
|
149
169
|
};
|
package/Expand.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),t=require("prop-types"),y=require("./Animation.js");function m(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return i.default=e,Object.freeze(i)}const g=m(f),a=e=>{const{appear:i=r.appear,enter:n=r.enter,exit:o=r.exit,transitionEnterDuration:c=r.transitionEnterDuration,transitionExitDuration:s=r.transitionExitDuration,direction:u=r.direction,children:p,...l}=e,d={transitionName:`expand-${u}`};return g.createElement(y.Animation,{...d,appear:i,enter:n,exit:o,transitionEnterDuration:c,transitionExitDuration:s,...l},p)},r={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"};a.propTypes={children:t.oneOfType([t.arrayOf(t.node),t.node]),childFactory:t.any,className:t.string,direction:t.oneOf(["horizontal","vertical"]),component:t.string,id:t.string,style:t.any};exports.Expand=a;
|
package/Expand.mjs
CHANGED
|
@@ -6,39 +6,36 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
9
|
+
import * as m from "react";
|
|
10
10
|
import t from "prop-types";
|
|
11
|
-
import { Animation as
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
id: t.string,
|
|
40
|
-
style: t.any
|
|
41
|
-
}, e.defaultProps = {
|
|
11
|
+
import { Animation as u } from "./Animation.mjs";
|
|
12
|
+
const x = (r) => {
|
|
13
|
+
const {
|
|
14
|
+
appear: i = n.appear,
|
|
15
|
+
enter: e = n.enter,
|
|
16
|
+
exit: o = n.exit,
|
|
17
|
+
transitionEnterDuration: a = n.transitionEnterDuration,
|
|
18
|
+
transitionExitDuration: s = n.transitionExitDuration,
|
|
19
|
+
direction: p = n.direction,
|
|
20
|
+
children: c,
|
|
21
|
+
...d
|
|
22
|
+
} = r, l = {
|
|
23
|
+
transitionName: `expand-${p}`
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ m.createElement(
|
|
26
|
+
u,
|
|
27
|
+
{
|
|
28
|
+
...l,
|
|
29
|
+
appear: i,
|
|
30
|
+
enter: e,
|
|
31
|
+
exit: o,
|
|
32
|
+
transitionEnterDuration: a,
|
|
33
|
+
transitionExitDuration: s,
|
|
34
|
+
...d
|
|
35
|
+
},
|
|
36
|
+
c
|
|
37
|
+
);
|
|
38
|
+
}, n = {
|
|
42
39
|
appear: !1,
|
|
43
40
|
enter: !0,
|
|
44
41
|
exit: !0,
|
|
@@ -46,7 +43,15 @@ e.propTypes = {
|
|
|
46
43
|
transitionExitDuration: 300,
|
|
47
44
|
direction: "vertical"
|
|
48
45
|
};
|
|
49
|
-
|
|
46
|
+
x.propTypes = {
|
|
47
|
+
children: t.oneOfType([t.arrayOf(t.node), t.node]),
|
|
48
|
+
childFactory: t.any,
|
|
49
|
+
className: t.string,
|
|
50
|
+
direction: t.oneOf(["horizontal", "vertical"]),
|
|
51
|
+
component: t.string,
|
|
52
|
+
id: t.string,
|
|
53
|
+
style: t.any
|
|
54
|
+
};
|
|
50
55
|
export {
|
|
51
|
-
|
|
56
|
+
x as Expand
|
|
52
57
|
};
|
package/Fade.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),t=require("prop-types"),f=require("./Animation.js");function y(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const m=y(d),o=e=>{const{appear:r=i.appear,enter:n=i.enter,exit:a=i.exit,transitionEnterDuration:s=i.transitionEnterDuration,transitionExitDuration:c=i.transitionExitDuration,children:u,...l}=e,p={transitionName:"fade"};return m.createElement(f.Animation,{...p,appear:r,enter:n,exit:a,transitionEnterDuration:s,transitionExitDuration:c,...l},u)},i={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500};o.propTypes={children:t.oneOfType([t.arrayOf(t.node),t.node]),childFactory:t.any,className:t.string,component:t.string,id:t.string,style:t.any};exports.Fade=o;
|
package/Fade.mjs
CHANGED
|
@@ -6,41 +6,49 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
9
|
+
import * as l from "react";
|
|
10
10
|
import t from "prop-types";
|
|
11
|
-
import { Animation as
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
import { Animation as u } from "./Animation.mjs";
|
|
12
|
+
const d = (r) => {
|
|
13
|
+
const {
|
|
14
|
+
appear: e = n.appear,
|
|
15
|
+
enter: i = n.enter,
|
|
16
|
+
exit: a = n.exit,
|
|
17
|
+
transitionEnterDuration: o = n.transitionEnterDuration,
|
|
18
|
+
transitionExitDuration: s = n.transitionExitDuration,
|
|
19
|
+
children: p,
|
|
20
|
+
...c
|
|
21
|
+
} = r, m = {
|
|
22
|
+
transitionName: "fade"
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ l.createElement(
|
|
25
|
+
u,
|
|
26
|
+
{
|
|
27
|
+
...m,
|
|
28
|
+
appear: e,
|
|
29
|
+
enter: i,
|
|
30
|
+
exit: a,
|
|
31
|
+
transitionEnterDuration: o,
|
|
32
|
+
transitionExitDuration: s,
|
|
33
|
+
...c
|
|
34
|
+
},
|
|
35
|
+
p
|
|
36
|
+
);
|
|
37
|
+
}, n = {
|
|
38
|
+
appear: !1,
|
|
39
|
+
enter: !0,
|
|
40
|
+
exit: !1,
|
|
41
|
+
transitionEnterDuration: 500,
|
|
42
|
+
transitionExitDuration: 500
|
|
25
43
|
};
|
|
26
|
-
|
|
27
|
-
children: t.oneOfType([
|
|
28
|
-
t.arrayOf(t.node),
|
|
29
|
-
t.node
|
|
30
|
-
]),
|
|
44
|
+
d.propTypes = {
|
|
45
|
+
children: t.oneOfType([t.arrayOf(t.node), t.node]),
|
|
31
46
|
childFactory: t.any,
|
|
32
47
|
className: t.string,
|
|
33
48
|
component: t.string,
|
|
34
49
|
id: t.string,
|
|
35
50
|
style: t.any
|
|
36
|
-
}, n.defaultProps = {
|
|
37
|
-
appear: !1,
|
|
38
|
-
enter: !0,
|
|
39
|
-
exit: !1,
|
|
40
|
-
transitionEnterDuration: 500,
|
|
41
|
-
transitionExitDuration: 500
|
|
42
51
|
};
|
|
43
|
-
let e = n;
|
|
44
52
|
export {
|
|
45
|
-
|
|
53
|
+
d as Fade
|
|
46
54
|
};
|
package/Push.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),t=require("prop-types"),h=require("./Animation.js");function y(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>e[i]})}}return r.default=e,Object.freeze(r)}const g=y(f),m={position:"absolute",top:"0",left:"0"},a=e=>{const{appear:r=n.appear,enter:i=n.enter,exit:o=n.exit,transitionEnterDuration:s=n.transitionEnterDuration,transitionExitDuration:c=n.transitionExitDuration,stackChildren:l=n.stackChildren,direction:u=n.direction,children:d,...p}=e;return g.createElement(h.Animation,{appear:r,enter:i,exit:o,transitionEnterDuration:s,transitionExitDuration:c,stackChildren:l,...p,transitionName:`push-${u}`,animationExitingStyle:e.stackChildren?m:void 0},d)},n={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1};a.propTypes={children:t.oneOfType([t.arrayOf(t.node),t.node]),childFactory:t.any,className:t.string,direction:t.oneOf(["up","down","left","right"]),component:t.string,id:t.string,style:t.any,stackChildren:t.bool};exports.Push=a;
|