@@ -61,46 +61,3 @@ export interface Point {
6161export interface CommonEventHandler {
6262 remove : ( ) => void ;
6363}
64-
65- // =================================== Motion ===================================
66- type MotionStatus = 'none' | 'appear' | 'enter' | 'leave' ;
67-
68- type MotionActiveStatus = 'appear-active' | 'enter-active' | 'leave-active' ;
69-
70- type MotionNameObject = {
71- [ key in MotionStatus | MotionActiveStatus ] ?: string ;
72- } ;
73-
74- type MotionEventHandler = (
75- element : HTMLElement ,
76- event : React . TransitionEvent < HTMLElement > | React . AnimationEvent < HTMLElement > | undefined ,
77- ) => React . CSSProperties | false | null | undefined | void ;
78-
79- export interface MotionType {
80- motionName ?: string | MotionNameObject ;
81- motionAppear ?: boolean ;
82- motionEnter ?: boolean ;
83- motionLeave ?: boolean ;
84- motionLeaveImmediately ?: boolean ; // Trigger leave motion immediately
85- removeOnLeave ?: boolean ;
86- leavedClassName ?: string ;
87- onAppearStart ?: MotionEventHandler ;
88- onAppearActive ?: MotionEventHandler ;
89- onAppearEnd ?: MotionEventHandler ;
90- onEnterStart ?: MotionEventHandler ;
91- onEnterActive ?: MotionEventHandler ;
92- onEnterEnd ?: MotionEventHandler ;
93- onLeaveStart ?: MotionEventHandler ;
94- onLeaveActive ?: MotionEventHandler ;
95- onLeaveEnd ?: MotionEventHandler ;
96- }
97-
98- export interface MotionProps extends MotionType {
99- visible ?: boolean ;
100- children : (
101- props : { className : string ; style : React . CSSProperties } ,
102- ref : React . Ref < any > ,
103- ) => React . ReactElement ;
104- }
105-
106- export type CSSMotionClass = React . ComponentClass < MotionProps > ;
0 commit comments