@instructure/ui-motion 8.11.2-snapshot.3 → 8.11.2-snapshot.45
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/es/Transition/BaseTransition/index.js +46 -27
- package/es/Transition/BaseTransition/props.js +12 -10
- package/es/Transition/index.js +8 -17
- package/es/Transition/props.js +4 -67
- package/es/Transition/styles.js +11 -8
- package/lib/Transition/BaseTransition/index.js +46 -27
- package/lib/Transition/BaseTransition/props.js +13 -10
- package/lib/Transition/index.js +8 -17
- package/lib/Transition/props.js +6 -67
- package/lib/Transition/styles.js +14 -9
- package/package.json +12 -12
- package/src/Transition/BaseTransition/index.ts +88 -79
- package/src/Transition/BaseTransition/props.ts +93 -51
- package/src/Transition/index.tsx +15 -32
- package/src/Transition/props.ts +32 -88
- package/src/Transition/styles.ts +10 -9
- package/types/Transition/BaseTransition/index.d.ts +27 -66
- package/types/Transition/BaseTransition/index.d.ts.map +1 -1
- package/types/Transition/BaseTransition/props.d.ts +52 -38
- package/types/Transition/BaseTransition/props.d.ts.map +1 -1
- package/types/Transition/index.d.ts +5 -55
- package/types/Transition/index.d.ts.map +1 -1
- package/types/Transition/props.d.ts +14 -18
- package/types/Transition/props.d.ts.map +1 -1
- package/types/Transition/styles.d.ts +8 -0
- package/types/Transition/styles.d.ts.map +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PropValidators } from '@instructure/shared-types';
|
|
3
|
-
declare type
|
|
3
|
+
declare type TransitionType = 'fade' | 'scale' | 'slide-down' | 'slide-up' | 'slide-left' | 'slide-right';
|
|
4
|
+
declare type TransitionCommonProps = {
|
|
4
5
|
/**
|
|
5
6
|
* Show the component? Triggers the enter or exit animation.
|
|
6
7
|
*/
|
|
@@ -22,6 +23,40 @@ declare type BaseTransitionOwnProps = {
|
|
|
22
23
|
* Run the exit animation
|
|
23
24
|
*/
|
|
24
25
|
transitionExit?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Callback fired when transitioning to the next state
|
|
28
|
+
*/
|
|
29
|
+
onTransition?: (toState: BaseTransitionStatesType, fromState: BaseTransitionStatesType) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Callback fired before the "entering" classes are applied
|
|
32
|
+
*/
|
|
33
|
+
onEnter?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Callback fired after the "entering" classes are applied
|
|
36
|
+
*/
|
|
37
|
+
onEntering?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback fired after the "enter" classes are applied
|
|
40
|
+
*/
|
|
41
|
+
onEntered?: (type?: TransitionType) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Callback fired before the "exiting" classes are applied
|
|
44
|
+
*/
|
|
45
|
+
onExit?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Callback fired after the "exiting" classes are applied
|
|
48
|
+
*/
|
|
49
|
+
onExiting?: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Callback fired after the "exited" classes are applied
|
|
52
|
+
*/
|
|
53
|
+
onExited?: (type?: TransitionType) => void;
|
|
54
|
+
/**
|
|
55
|
+
* A single element to animate in and out
|
|
56
|
+
*/
|
|
57
|
+
children?: React.ReactNode;
|
|
58
|
+
};
|
|
59
|
+
declare type OwnProps = {
|
|
25
60
|
/**
|
|
26
61
|
* A Timeout for the animation, in milliseconds, to ensure that a node doesn't
|
|
27
62
|
* transition indefinately if the browser transitionEnd events are
|
|
@@ -43,59 +78,38 @@ declare type BaseTransitionOwnProps = {
|
|
|
43
78
|
/**
|
|
44
79
|
* the base CSS class for the transition (transitions go here)
|
|
45
80
|
*/
|
|
46
|
-
transitionClassName
|
|
81
|
+
transitionClassName: string;
|
|
47
82
|
/**
|
|
48
83
|
* CSS class or classes applied when the component is exited
|
|
49
84
|
*/
|
|
50
|
-
exitedClassName
|
|
85
|
+
exitedClassName: string;
|
|
51
86
|
/**
|
|
52
87
|
* CSS class or classes applied while the component is exiting
|
|
53
88
|
*/
|
|
54
|
-
exitingClassName
|
|
89
|
+
exitingClassName: string;
|
|
55
90
|
/**
|
|
56
91
|
* CSS class or classes applied when the component is entered
|
|
57
92
|
*/
|
|
58
|
-
enteredClassName
|
|
93
|
+
enteredClassName: string;
|
|
59
94
|
/**
|
|
60
95
|
* CSS class or classes applied while the component is entering
|
|
61
96
|
*/
|
|
62
|
-
enteringClassName
|
|
63
|
-
/**
|
|
64
|
-
* Callback fired when transitioning to the next state
|
|
65
|
-
*/
|
|
66
|
-
onTransition?: (toState: number, fromState: number) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Callback fired before the "entering" classes are applied
|
|
69
|
-
*/
|
|
70
|
-
onEnter?: () => void;
|
|
71
|
-
/**
|
|
72
|
-
* Callback fired after the "entering" classes are applied
|
|
73
|
-
*/
|
|
74
|
-
onEntering?: () => void;
|
|
75
|
-
/**
|
|
76
|
-
* Callback fired after the "enter" classes are applied
|
|
77
|
-
*/
|
|
78
|
-
onEntered?: () => void;
|
|
79
|
-
/**
|
|
80
|
-
* Callback fired before the "exiting" classes are applied
|
|
81
|
-
*/
|
|
82
|
-
onExit?: () => void;
|
|
83
|
-
/**
|
|
84
|
-
* Callback fired after the "exiting" classes are applied
|
|
85
|
-
*/
|
|
86
|
-
onExiting?: () => void;
|
|
87
|
-
/**
|
|
88
|
-
* Callback fired after the "exited" classes are applied
|
|
89
|
-
*/
|
|
90
|
-
onExited?: () => void;
|
|
91
|
-
children?: React.ReactNode;
|
|
97
|
+
enteringClassName: string;
|
|
92
98
|
className?: string;
|
|
93
99
|
};
|
|
100
|
+
declare type BaseTransitionOwnProps = TransitionCommonProps & OwnProps;
|
|
101
|
+
declare type BaseTransitionProps = BaseTransitionOwnProps;
|
|
102
|
+
declare type CommonPropKeys = keyof TransitionCommonProps;
|
|
94
103
|
declare type PropKeys = keyof BaseTransitionOwnProps;
|
|
95
104
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
96
|
-
declare
|
|
105
|
+
declare const transitionCommonPropTypes: PropValidators<CommonPropKeys>;
|
|
97
106
|
declare const propTypes: PropValidators<PropKeys>;
|
|
98
107
|
declare const allowedProps: AllowedPropKeys;
|
|
99
|
-
|
|
100
|
-
|
|
108
|
+
declare type BaseTransitionState = {
|
|
109
|
+
transitioning: boolean;
|
|
110
|
+
};
|
|
111
|
+
declare type BaseTransitionStateValue = 'EXITED' | 'EXITING' | 'ENTERING' | 'ENTERED';
|
|
112
|
+
declare type BaseTransitionStatesType = -2 | -1 | 1 | 2;
|
|
113
|
+
export type { BaseTransitionProps, TransitionCommonProps, TransitionType, BaseTransitionState, BaseTransitionStateValue, BaseTransitionStatesType };
|
|
114
|
+
export { propTypes, allowedProps, transitionCommonPropTypes };
|
|
101
115
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Transition/BaseTransition/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Transition/BaseTransition/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,cAAc,GACf,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,aAAa,CAAA;AAGjB,aAAK,qBAAqB,GAAG;IAC3B;;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;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,OAAO,EAAE,wBAAwB,EACjC,SAAS,EAAE,wBAAwB,KAChC,IAAI,CAAA;IAET;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IAE1C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG;IACd;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAGD,aAAK,sBAAsB,GAAG,qBAAqB,GAAG,QAAQ,CAAA;AAI9D,aAAK,mBAAmB,GAAG,sBAAsB,CAAA;AAEjD,aAAK,cAAc,GAAG,MAAM,qBAAqB,CAAA;AACjD,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,QAAA,MAAM,yBAAyB,EAAE,cAAc,CAAC,cAAc,CAc7D,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAWvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAsBnB,CAAA;AAED,aAAK,mBAAmB,GAAG;IACzB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,aAAK,wBAAwB,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAA;AAC7E,aAAK,wBAAwB,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAE/C,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACzB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
/** @jsxFrag React.Fragment */
|
|
3
|
-
import
|
|
3
|
+
import { Component } from 'react';
|
|
4
4
|
import { jsx } from '@instructure/emotion';
|
|
5
5
|
import type { TransitionProps } from './props';
|
|
6
6
|
/**
|
|
@@ -8,41 +8,12 @@ import type { TransitionProps } from './props';
|
|
|
8
8
|
category: components/utilities
|
|
9
9
|
---
|
|
10
10
|
@module Transition
|
|
11
|
+
@tsProps
|
|
11
12
|
**/
|
|
12
13
|
declare class Transition extends Component<TransitionProps> {
|
|
13
14
|
static readonly componentId = "Transition";
|
|
14
|
-
static allowedProps: readonly (keyof
|
|
15
|
-
|
|
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
|
-
}>;
|
|
15
|
+
static allowedProps: readonly (keyof import("./BaseTransition/props").TransitionCommonProps | "type")[];
|
|
16
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof import("./BaseTransition/props").TransitionCommonProps | "type">;
|
|
46
17
|
static defaultProps: {
|
|
47
18
|
type: string;
|
|
48
19
|
in: boolean;
|
|
@@ -50,33 +21,12 @@ declare class Transition extends Component<TransitionProps> {
|
|
|
50
21
|
transitionOnMount: boolean;
|
|
51
22
|
transitionEnter: boolean;
|
|
52
23
|
transitionExit: boolean;
|
|
53
|
-
onEnter: () => void;
|
|
54
|
-
onEntering: () => void;
|
|
55
|
-
onEntered: () => void;
|
|
56
|
-
onExit: () => void;
|
|
57
|
-
onExiting: () => void;
|
|
58
|
-
onExited: () => void;
|
|
59
|
-
onTransition: (toState: any, fromState: any) => void;
|
|
60
|
-
children: null;
|
|
61
|
-
};
|
|
62
|
-
static states: {
|
|
63
|
-
EXITED: number;
|
|
64
|
-
EXITING: number;
|
|
65
|
-
ENTERING: number;
|
|
66
|
-
ENTERED: number;
|
|
67
24
|
};
|
|
25
|
+
static states: Record<import("./BaseTransition/props").BaseTransitionStateValue, import("./BaseTransition/props").BaseTransitionStatesType>;
|
|
68
26
|
componentDidMount(): void;
|
|
69
27
|
componentDidUpdate(): void;
|
|
70
28
|
handleExited: () => void;
|
|
71
29
|
handleEntered: () => void;
|
|
72
|
-
/**
|
|
73
|
-
* Transition helper:
|
|
74
|
-
* After emotion migration the only way to keep
|
|
75
|
-
* the old BaseTransition functionality with adding and removing
|
|
76
|
-
* classes was to add the `Global` helper of `emotion`
|
|
77
|
-
*
|
|
78
|
-
* Todo: try to refactor or replace Transition/BaseTransition component in v9.0.0. so that it is not class based
|
|
79
|
-
*/
|
|
80
30
|
renderTransitionHelper: () => jsx.JSX.Element;
|
|
81
31
|
render(): jsx.JSX.Element;
|
|
82
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Transition/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,8BAA8B;AAG9B,
|
|
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;AAKxC,OAAO,EAAa,GAAG,EAAU,MAAM,sBAAsB,CAAA;AAQ7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;;;GAMG;AACH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY,qFAAe;IAClC,MAAM,CAAC,SAAS,+IAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;MAOlB;IAED,MAAM,CAAC,MAAM,+HAAwB;IAErC,iBAAiB;IAIjB,kBAAkB;IAIlB,YAAY,aAIX;IAED,aAAa,aAIZ;IAOD,sBAAsB,wBAIrB;IAED,MAAM;CAyBP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import type { PropValidators, TransitionTheme } from '@instructure/shared-types';
|
|
4
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
5
|
-
|
|
6
|
-
declare
|
|
4
|
+
import type { TransitionCommonProps, TransitionType } from './BaseTransition/props';
|
|
5
|
+
declare const transitionTypePropType: PropTypes.Requireable<TransitionType>;
|
|
6
|
+
declare type OwnProps = {
|
|
7
7
|
type?: TransitionType;
|
|
8
|
-
in?: boolean;
|
|
9
|
-
unmountOnExit?: boolean;
|
|
10
|
-
transitionOnMount?: boolean;
|
|
11
|
-
transitionEnter?: boolean;
|
|
12
|
-
transitionExit?: boolean;
|
|
13
|
-
onTransition?: (...args: any[]) => any;
|
|
14
|
-
onEnter?: (...args: any[]) => any;
|
|
15
|
-
onEntering?: (...args: any[]) => any;
|
|
16
|
-
onEntered?: (...args: any[]) => any;
|
|
17
|
-
onExit?: (...args: any[]) => any;
|
|
18
|
-
onExiting?: (...args: any[]) => any;
|
|
19
|
-
onExited?: (...args: any[]) => any;
|
|
20
|
-
children?: React.ReactNode;
|
|
21
8
|
};
|
|
9
|
+
declare type TransitionOwnProps = OwnProps & TransitionCommonProps;
|
|
22
10
|
declare type PropKeys = keyof TransitionOwnProps;
|
|
23
11
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
24
12
|
declare type TransitionProps = TransitionOwnProps & WithStyleProps<TransitionTheme, TransitionStyle>;
|
|
25
|
-
declare type TransitionStyle = ComponentStyle<'
|
|
26
|
-
|
|
13
|
+
declare type TransitionStyle = ComponentStyle<'globalStyles'> & {
|
|
14
|
+
duration: TransitionTheme['duration'];
|
|
15
|
+
classNames: {
|
|
16
|
+
transitioning: string;
|
|
17
|
+
exited: string;
|
|
18
|
+
exiting: string;
|
|
19
|
+
entered: string;
|
|
20
|
+
entering: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
27
23
|
declare const propTypes: PropValidators<PropKeys>;
|
|
28
24
|
declare const allowedProps: AllowedPropKeys;
|
|
29
25
|
export type { TransitionProps, TransitionType, TransitionStyle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Transition/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Transition/props.ts"],"names":[],"mappings":"AAwBA,OAAO,SAAS,MAAM,YAAY,CAAA;AAElC,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1E,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,wBAAwB,CAAA;AAW/B,QAAA,MAAM,sBAAsB,uCAAmC,CAAA;AAE/D,aAAK,QAAQ,GAAG;IACd,IAAI,CAAC,EAAE,cAAc,CAAA;CACtB,CAAA;AAGD,aAAK,kBAAkB,GAAG,QAAQ,GAAG,qBAAqB,CAAA;AAE1D,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,eAAe,GAAG,kBAAkB,GACvC,cAAc,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAElD,aAAK,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACtD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,UAAU,EAAE;QACV,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAGvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { TransitionTheme } from '@instructure/shared-types';
|
|
2
2
|
import type { TransitionProps, TransitionStyle } from './props';
|
|
3
|
+
declare const getClassNames: (type: TransitionProps['type']) => {
|
|
4
|
+
transitioning: string;
|
|
5
|
+
exited: string;
|
|
6
|
+
exiting: string;
|
|
7
|
+
entered: string;
|
|
8
|
+
entering: string;
|
|
9
|
+
};
|
|
3
10
|
/**
|
|
4
11
|
* ---
|
|
5
12
|
* private: true
|
|
@@ -11,5 +18,6 @@ import type { TransitionProps, TransitionStyle } from './props';
|
|
|
11
18
|
* @return {Object} The final style object, which will be used in the component
|
|
12
19
|
*/
|
|
13
20
|
declare const generateStyle: (componentTheme: TransitionTheme, props: TransitionProps) => TransitionStyle;
|
|
21
|
+
export { generateStyle, getClassNames };
|
|
14
22
|
export default generateStyle;
|
|
15
23
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Transition/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE/D;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,eAAe,SACxB,eAAe,KACrB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Transition/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE/D,QAAA,MAAM,aAAa,SAAU,eAAe,CAAC,MAAM,CAAC;;;;;;CAMlD,CAAA;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,eAAe,SACxB,eAAe,KACrB,eA6GF,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA;AACvC,eAAe,aAAa,CAAA"}
|