mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 19:09:04 +08:00
* refactor react-overlays into individual modules also adds correct definitions for some modules whose definitions were incorretly being imported from react-bootstrap. (react-bootstrap depends on react-overlays, not the other way around) * use exported namespace hack instead of default exports
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
// Type definitions for React Overlays 0.6
|
|
// Project: https://github.com/react-bootstrap/react-overlays
|
|
// Definitions by: Aaron Beall <https://github.com/aaronbeall>
|
|
// Vito Samson <https://github.com/vitosamson>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import * as React from "react";
|
|
|
|
export {
|
|
Affix,
|
|
AutoAffix,
|
|
Modal,
|
|
ModalManager,
|
|
Overlay,
|
|
Portal,
|
|
Position,
|
|
Transition,
|
|
RootCloseWrapper,
|
|
} from './lib';
|
|
|
|
// these callbacks are used in a few components
|
|
export interface TransitionCallbacks {
|
|
/**
|
|
* Callback fired before the Overlay transitions in
|
|
*/
|
|
onEnter?(node: HTMLElement): any;
|
|
|
|
/**
|
|
* Callback fired as the Overlay begins to transition in
|
|
*/
|
|
onEntering?(node: HTMLElement): any;
|
|
|
|
/**
|
|
* Callback fired after the Overlay finishes transitioning in
|
|
*/
|
|
onEntered?(node: HTMLElement): any;
|
|
|
|
/**
|
|
* Callback fired right before the Overlay transitions out
|
|
*/
|
|
onExit?(node: HTMLElement): any;
|
|
|
|
/**
|
|
* Callback fired as the Overlay begins to transition out
|
|
*/
|
|
onExiting?(node: HTMLElement): any;
|
|
|
|
/**
|
|
* Callback fired after the Overlay finishes transitioning out
|
|
*/
|
|
onExited?(node: HTMLElement): any;
|
|
}
|