UNPKG

1.08 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React from 'react';
3interface SlideTransitionGroupProps {
4 onTransitionEnd: (node: ChildNode, hadFocus: boolean | null) => void;
5 direction: 'left' | 'right' | 'top' | 'bottom';
6}
7interface SlideTransitionGroupState {
8 prevClasses: string;
9 currentClasses: string;
10}
11declare class SlideTransitionGroup extends React.Component<SlideTransitionGroupProps, SlideTransitionGroupState> {
12 static defaultProps: {
13 direction: string;
14 };
15 static propTypes: {
16 direction: PropTypes.Requireable<string>;
17 onTransitionEnd: PropTypes.Requireable<(...args: any[]) => any>;
18 };
19 isTransitioning?: boolean;
20 container: React.RefObject<HTMLDivElement>;
21 current: React.ReactElement;
22 flush?: boolean;
23 prev?: React.ReactElement | null;
24 constructor(args: SlideTransitionGroupProps);
25 componentDidUpdate(): void;
26 handleTransitionEnd: (hadFocus: boolean | null) => void;
27 render(): JSX.Element;
28}
29export default SlideTransitionGroup;
30//# sourceMappingURL=SlideTransitionGroup.d.ts.map
\No newline at end of file