@progress/kendo-react-animation 9.0.0-develop.2 → 9.0.0-develop.21

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