// tslint:disable:max-classes-per-file import * as React from 'react'; import * as FlipMove from '..'; function childHook(el: React.ReactElement, node: HTMLElement) {} function childrenHook(els: Array>, nodes: Array) {} class ExtendedTest extends React.Component { public render() { return ({ top: 0, right: 0, bottom: 0, left: 0, height: 0, width: 0, })} maintainContainerHeight={true} verticalAlignment="top" onStart={childHook} onFinish={childHook} onStartAll={childrenHook} onFinishAll={childrenHook} style={{ height: 0, color: 'red', }} >
; } } class DefaultTest extends React.Component { public render() { return ; } } class PresetTest extends React.Component { public render() { return ( ); } } class CustomAnimationTest extends React.Component { public render() { const enterAnimation: FlipMove.Animation = { from: { opacity: '0' }, to: { opacity: '1' }, }; const leaveAnimation: FlipMove.Animation = { from: { opacity: '1' }, to: { opacity: '0' }, }; return ( ); } } class FlipMoveTest extends React.Component { public onStart = (childElement: React.ReactElement, domNode: HTMLElement) => {}; public onFinish = (childElement: React.ReactElement, domNode: HTMLElement) => {}; public onStartAll = (childElements: Array>, domNodes: Array) => {}; public onFinishAll = (childElements: Array>, domNodes: Array) => {}; public render() { return ( ); } }