@instructure/ui-motion 8.8.1-snapshot.3 → 8.9.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es/Transition/{BaseTransition.js → BaseTransition/index.js} +7 -120
  3. package/{src/Transition/types.ts → es/Transition/BaseTransition/props.js} +26 -26
  4. package/es/Transition/index.js +15 -83
  5. package/es/Transition/props.js +95 -0
  6. package/lib/Transition/{BaseTransition.js → BaseTransition/index.js} +8 -121
  7. package/lib/Transition/BaseTransition/props.js +60 -0
  8. package/lib/Transition/index.js +16 -84
  9. package/lib/Transition/props.js +106 -0
  10. package/package.json +12 -13
  11. package/src/Transition/{BaseTransition.ts → BaseTransition/index.ts} +12 -136
  12. package/src/Transition/BaseTransition/props.ts +187 -0
  13. package/src/Transition/index.tsx +15 -77
  14. package/src/Transition/props.ts +144 -0
  15. package/src/Transition/styles.ts +1 -1
  16. package/src/index.ts +1 -1
  17. package/types/Transition/BaseTransition/index.d.ts +101 -0
  18. package/types/Transition/BaseTransition/index.d.ts.map +1 -0
  19. package/types/Transition/BaseTransition/props.d.ts +102 -0
  20. package/types/Transition/BaseTransition/props.d.ts.map +1 -0
  21. package/types/Transition/index.d.ts +35 -62
  22. package/types/Transition/index.d.ts.map +1 -1
  23. package/types/Transition/props.d.ts +28 -0
  24. package/types/Transition/props.d.ts.map +1 -0
  25. package/types/Transition/styles.d.ts +1 -1
  26. package/types/index.d.ts +1 -1
  27. package/LICENSE.md +0 -27
  28. package/es/Transition/types.js +0 -1
  29. package/lib/Transition/types.js +0 -1
  30. package/types/Transition/BaseTransition.d.ts +0 -152
  31. package/types/Transition/BaseTransition.d.ts.map +0 -1
  32. package/types/Transition/types.d.ts +0 -19
  33. package/types/Transition/types.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Transition/BaseTransition/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,aAAK,sBAAsB,GAAG;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAA;IAEZ;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IAE3D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAErB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAAG,cAAc,CAAA;AAElE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAsBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAsBnB,CAAA;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,9 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  /** @jsxFrag React.Fragment */
3
- import { Component } from 'react';
4
- import PropTypes from 'prop-types';
3
+ import React, { Component } from 'react';
5
4
  import { jsx } from '@instructure/emotion';
6
- import { TransitionProps } from './types';
5
+ import type { TransitionProps } from './props';
7
6
  /**
8
7
  ---
9
8
  category: components/utilities
@@ -12,64 +11,38 @@ category: components/utilities
12
11
  **/
13
12
  declare class Transition extends Component<TransitionProps> {
14
13
  static readonly componentId = "Transition";
15
- static propTypes: {
16
- makeStyles: PropTypes.Requireable<(...args: any[]) => any>;
17
- styles: PropTypes.Requireable<object>;
18
- type: PropTypes.Requireable<string>;
19
- /**
20
- * A single element to animate in and out
21
- */
22
- children: PropTypes.Requireable<PropTypes.ReactElementLike>;
23
- /**
24
- * Show the component; triggers the enter or exit animation
25
- */
26
- in: PropTypes.Requireable<boolean>;
27
- /**
28
- * Unmount the component (remove it from the DOM) when it is not shown
29
- */
30
- unmountOnExit: PropTypes.Requireable<boolean>;
31
- /**
32
- * Run the enter animation when the component mounts, if it is initially
33
- * shown
34
- */
35
- transitionOnMount: PropTypes.Requireable<boolean>;
36
- /**
37
- * Run the enter animation
38
- */
39
- transitionEnter: PropTypes.Requireable<boolean>;
40
- /**
41
- * Run the exit animation
42
- */
43
- transitionExit: PropTypes.Requireable<boolean>;
44
- /**
45
- * Callback fired when transitioning to the next state
46
- */
47
- onTransition: PropTypes.Requireable<(...args: any[]) => any>;
48
- /**
49
- * Callback fired before the "entering" classes are applied
50
- */
51
- onEnter: PropTypes.Requireable<(...args: any[]) => any>;
52
- /**
53
- * Callback fired after the "entering" classes are applied
54
- */
55
- onEntering: PropTypes.Requireable<(...args: any[]) => any>;
56
- /**
57
- * Callback fired after the "enter" classes are applied
58
- */
59
- onEntered: PropTypes.Requireable<(...args: any[]) => any>;
60
- /**
61
- * Callback fired before the "exiting" classes are applied
62
- */
63
- onExit: PropTypes.Requireable<(...args: any[]) => any>;
64
- /**
65
- * Callback fired after the "exiting" classes are applied
66
- */
67
- onExiting: PropTypes.Requireable<(...args: any[]) => any>;
68
- /**
69
- * Callback fired after the "exited" classes are applied
70
- */
71
- onExited: PropTypes.Requireable<(...args: any[]) => any>;
72
- };
14
+ static allowedProps: readonly (keyof {
15
+ type?: import("./props").TransitionType | undefined;
16
+ in?: boolean | undefined;
17
+ unmountOnExit?: boolean | undefined;
18
+ transitionOnMount?: boolean | undefined;
19
+ transitionEnter?: boolean | undefined;
20
+ transitionExit?: boolean | undefined;
21
+ onTransition?: ((...args: any[]) => any) | undefined;
22
+ onEnter?: ((...args: any[]) => any) | undefined;
23
+ onEntering?: ((...args: any[]) => any) | undefined;
24
+ onEntered?: ((...args: any[]) => any) | undefined;
25
+ onExit?: ((...args: any[]) => any) | undefined;
26
+ onExiting?: ((...args: any[]) => any) | undefined;
27
+ onExited?: ((...args: any[]) => any) | undefined;
28
+ children?: React.ReactNode;
29
+ })[];
30
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
31
+ type?: import("./props").TransitionType | undefined;
32
+ in?: boolean | undefined;
33
+ unmountOnExit?: boolean | undefined;
34
+ transitionOnMount?: boolean | undefined;
35
+ transitionEnter?: boolean | undefined;
36
+ transitionExit?: boolean | undefined;
37
+ onTransition?: ((...args: any[]) => any) | undefined;
38
+ onEnter?: ((...args: any[]) => any) | undefined;
39
+ onEntering?: ((...args: any[]) => any) | undefined;
40
+ onEntered?: ((...args: any[]) => any) | undefined;
41
+ onExit?: ((...args: any[]) => any) | undefined;
42
+ onExiting?: ((...args: any[]) => any) | undefined;
43
+ onExited?: ((...args: any[]) => any) | undefined;
44
+ children?: React.ReactNode;
45
+ }>;
73
46
  static defaultProps: {
74
47
  type: string;
75
48
  in: boolean;
@@ -93,7 +66,7 @@ declare class Transition extends Component<TransitionProps> {
93
66
  ENTERED: number;
94
67
  };
95
68
  componentDidMount(): void;
96
- componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
69
+ componentDidUpdate(): void;
97
70
  handleExited: () => void;
98
71
  handleEntered: () => void;
99
72
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Transition/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,8BAA8B;AAG9B,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,SAAS,MAAM,YAAY,CAAA;AAKlC,OAAO,EAAa,GAAG,EAAU,MAAM,sBAAsB,CAAA;AAM7D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;;GAKG;AACH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,SAAS;;;;QAad;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;;WAGG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;MAEJ;IAED,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;MAiBlB;IAED,MAAM,CAAC,MAAM;;;;;MAAwB;IAErC,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,YAAY,aAIX;IAED,aAAa,aAIZ;IAED;;;;;;;OAOG;IACH,sBAAsB,wBAIrB;IAED,MAAM;CAyBP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Transition/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,8BAA8B;AAG9B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKxC,OAAO,EAAa,GAAG,EAAU,MAAM,sBAAsB,CAAA;AAQ7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;;GAKG;AACH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;MAiBlB;IAED,MAAM,CAAC,MAAM;;;;;MAAwB;IAErC,iBAAiB;IAIjB,kBAAkB;IAIlB,YAAY,aAIX;IAED,aAAa,aAIZ;IAED;;;;;;;OAOG;IACH,sBAAsB,wBAIrB;IAED,MAAM;CA8BP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import type { PropValidators } from '@instructure/shared-types';
3
+ import type { WithStyleProps } from '@instructure/emotion';
4
+ declare type TransitionType = 'fade' | 'scale' | 'slide-down' | 'slide-up' | 'slide-left' | 'slide-right';
5
+ declare type TransitionOwnProps = {
6
+ type?: TransitionType;
7
+ in?: boolean;
8
+ unmountOnExit?: boolean;
9
+ transitionOnMount?: boolean;
10
+ transitionEnter?: boolean;
11
+ transitionExit?: boolean;
12
+ onTransition?: (...args: any[]) => any;
13
+ onEnter?: (...args: any[]) => any;
14
+ onEntering?: (...args: any[]) => any;
15
+ onEntered?: (...args: any[]) => any;
16
+ onExit?: (...args: any[]) => any;
17
+ onExiting?: (...args: any[]) => any;
18
+ onExited?: (...args: any[]) => any;
19
+ children?: React.ReactNode;
20
+ };
21
+ declare type PropKeys = keyof TransitionOwnProps;
22
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
23
+ declare type TransitionProps = TransitionOwnProps & WithStyleProps;
24
+ declare const propTypes: PropValidators<PropKeys>;
25
+ declare const allowedProps: AllowedPropKeys;
26
+ export type { TransitionProps, TransitionType };
27
+ export { propTypes, allowedProps };
28
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Transition/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,aAAK,cAAc,GACf,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,aAAa,CAAA;AAGjB,aAAK,kBAAkB,GAAG;IACxB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACtC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACjC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACnC,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAChC,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACnC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,eAAe,GAAG,kBAAkB,GAAG,cAAc,CAAA;AAE1D,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA8DvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { TransitionTheme } from '@instructure/shared-types';
2
- import { TransitionProps } from './types';
2
+ import { TransitionProps } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { Transition } from './Transition';
2
- export type { TransitionProps, TransitionType } from './Transition/types';
2
+ export type { TransitionProps, TransitionType } from './Transition/props';
3
3
  //# sourceMappingURL=index.d.ts.map
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,152 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- /**
4
- ---
5
- private: true
6
- ---
7
- Note: this is forked from https://github.com/react-bootstrap/react-overlays/blob/master/src/Transition.js
8
- so that it works with css modules. The internals are pretty different now, but it has roughly the same api.
9
- **/
10
- declare class BaseTransition extends React.Component {
11
- static propTypes: {
12
- /**
13
- * Show the component? Triggers the enter or exit animation.
14
- */
15
- in: PropTypes.Requireable<boolean>;
16
- /**
17
- * Unmount the component (remove it from the DOM) when it is not shown.
18
- */
19
- unmountOnExit: PropTypes.Requireable<boolean>;
20
- /**
21
- * Run the enter animation when the component mounts, if it is initially
22
- * shown
23
- */
24
- transitionOnMount: PropTypes.Requireable<boolean>;
25
- /**
26
- * Run the enter animation
27
- */
28
- transitionEnter: PropTypes.Requireable<boolean>;
29
- /**
30
- * Run the exit animation
31
- */
32
- transitionExit: PropTypes.Requireable<boolean>;
33
- /**
34
- * A Timeout for the animation, in milliseconds, to ensure that a node doesn't
35
- * transition indefinately if the browser transitionEnd events are
36
- * canceled or interrupted.
37
- *
38
- * By default this is set to a high number (5 seconds) as a failsafe. You should consider
39
- * setting this to the duration of your animation (or a bit above it).
40
- */
41
- enterDelay: PropTypes.Requireable<number>;
42
- /**
43
- * A Timeout for the animation, in milliseconds, to ensure that a node doesn't
44
- * transition indefinately if the browser transitionEnd events are
45
- * canceled or interrupted.
46
- *
47
- * By default this is set to a high number (5 seconds) as a failsafe. You should consider
48
- * setting this to the duration of your animation (or a bit above it).
49
- */
50
- exitDelay: PropTypes.Requireable<number>;
51
- /**
52
- * the base CSS class for the transition (transitions go here)
53
- */
54
- transitionClassName: PropTypes.Requireable<string>;
55
- /**
56
- * CSS class or classes applied when the component is exited
57
- */
58
- exitedClassName: PropTypes.Requireable<string>;
59
- /**
60
- * CSS class or classes applied while the component is exiting
61
- */
62
- exitingClassName: PropTypes.Requireable<string>;
63
- /**
64
- * CSS class or classes applied when the component is entered
65
- */
66
- enteredClassName: PropTypes.Requireable<string>;
67
- /**
68
- * CSS class or classes applied while the component is entering
69
- */
70
- enteringClassName: PropTypes.Requireable<string>;
71
- /**
72
- * Callback fired when transitioning to the next state
73
- */
74
- onTransition: PropTypes.Requireable<(...args: any[]) => any>;
75
- /**
76
- * Callback fired before the "entering" classes are applied
77
- */
78
- onEnter: PropTypes.Requireable<(...args: any[]) => any>;
79
- /**
80
- * Callback fired after the "entering" classes are applied
81
- */
82
- onEntering: PropTypes.Requireable<(...args: any[]) => any>;
83
- /**
84
- * Callback fired after the "enter" classes are applied
85
- */
86
- onEntered: PropTypes.Requireable<(...args: any[]) => any>;
87
- /**
88
- * Callback fired before the "exiting" classes are applied
89
- */
90
- onExit: PropTypes.Requireable<(...args: any[]) => any>;
91
- /**
92
- * Callback fired after the "exiting" classes are applied
93
- */
94
- onExiting: PropTypes.Requireable<(...args: any[]) => any>;
95
- /**
96
- * Callback fired after the "exited" classes are applied
97
- */
98
- onExited: PropTypes.Requireable<(...args: any[]) => any>;
99
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
100
- className: PropTypes.Requireable<string>;
101
- };
102
- static defaultProps: {
103
- in: boolean;
104
- component: string;
105
- unmountOnExit: boolean;
106
- transitionOnMount: boolean;
107
- transitionEnter: boolean;
108
- transitionExit: boolean;
109
- enterDelay: number;
110
- exitDelay: number;
111
- onEnter: () => void;
112
- onEntering: () => void;
113
- onEntered: () => void;
114
- onExit: () => void;
115
- onExiting: () => void;
116
- onExited: () => void;
117
- onTransition: (toState: any, fromState: any) => void;
118
- className: undefined;
119
- children: null;
120
- transitionClassName: undefined;
121
- exitedClassName: undefined;
122
- exitingClassName: undefined;
123
- enteredClassName: undefined;
124
- enteringClassName: undefined;
125
- };
126
- static states: {
127
- EXITED: number;
128
- EXITING: number;
129
- ENTERING: number;
130
- ENTERED: number;
131
- };
132
- _timeouts: never[];
133
- state: {
134
- transitioning: boolean;
135
- };
136
- componentDidMount(): void;
137
- getSnapshotBeforeUpdate(prevProps: any, prevState: any): true | null;
138
- componentDidUpdate(prevProps: any, prevState: any, cancelPrematurely: any): void;
139
- componentWillUnmount(): void;
140
- startTransition: (transitionIn: any, transitionOnStart: any) => void;
141
- transition: (toState: any, fromState: any, transitionCallback: any, transitionDuration?: number) => void;
142
- clearTransition(transitionClassName: any): void;
143
- enter: (initialState: any) => void;
144
- exit: (initialState: any) => void;
145
- transitionEnabled(toState: any): any;
146
- getTransitionClassName(transitionState: any): any;
147
- renderChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
148
- render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
149
- }
150
- export default BaseTransition;
151
- export { BaseTransition };
152
- //# sourceMappingURL=BaseTransition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseTransition.d.ts","sourceRoot":"","sources":["../../src/Transition/BaseTransition.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,YAAY,CAAA;AAelC;;;;;;GAMG;AACH,cAAM,cAAe,SAAQ,KAAK,CAAC,SAAS;IAC1C,MAAM,CAAC,SAAS;QACd;;WAEG;;QAGH;;WAEG;;QAGH;;;WAGG;;QAEH;;WAEG;;QAEH;;WAEG;;QAGH;;;;;;;WAOG;;QAGH;;;;;;;WAOG;;QAGH;;WAEG;;QAGH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;;MAMJ;IAED,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;MA4BlB;IAED,MAAM,CAAC,MAAM;;;;;MAAS;IAEtB,SAAS,UAAK;IAEd,KAAK;;MAEJ;IAED,iBAAiB;IAMjB,uBAAuB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA;IAU5C,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,iBAAiB,KAAA;IAiB1D,oBAAoB;IASpB,eAAe,sDAQd;IAED,UAAU,+FAiDT;IAGD,eAAe,CAAC,mBAAmB,KAAA;IAmBnC,KAAK,8BA2CJ;IAGD,IAAI,8BAqCH;IAGD,iBAAiB,CAAC,OAAO,KAAA;IAkBzB,sBAAsB,CAAC,eAAe,KAAA;IAoBtC,cAAc;IAOd,MAAM;CAaP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,19 +0,0 @@
1
- export declare type TransitionType = 'fade' | 'scale' | 'slide-down' | 'slide-up' | 'slide-left' | 'slide-right';
2
- export declare type TransitionProps = {
3
- makeStyles?: (...args: any[]) => any;
4
- styles?: any;
5
- type?: TransitionType;
6
- in?: boolean;
7
- unmountOnExit?: boolean;
8
- transitionOnMount?: boolean;
9
- transitionEnter?: boolean;
10
- transitionExit?: boolean;
11
- onTransition?: (...args: any[]) => any;
12
- onEnter?: (...args: any[]) => any;
13
- onEntering?: (...args: any[]) => any;
14
- onEntered?: (...args: any[]) => any;
15
- onExit?: (...args: any[]) => any;
16
- onExiting?: (...args: any[]) => any;
17
- onExited?: (...args: any[]) => any;
18
- };
19
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Transition/types.ts"],"names":[],"mappings":"AAwBA,oBAAY,cAAc,GACtB,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,aAAa,CAAA;AAEjB,oBAAY,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACtC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACjC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACnC,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAChC,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACnC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACnC,CAAA"}