1 | import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
2 | import * as React from 'react';
|
3 | export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
4 | export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
5 | export interface EasingProps {
|
6 | easing: string | {
|
7 | enter?: string;
|
8 | exit?: string;
|
9 | };
|
10 | }
|
11 | export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
12 | export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
13 | }
|