From 94fe252684ced952f67f15eaff0bfccef53921bb Mon Sep 17 00:00:00 2001 From: Raymond May Jr Date: Wed, 18 Jan 2017 19:25:57 +0100 Subject: [PATCH] add missing props for Modal component (#14043) reference: https://react-bootstrap.github.io/react-overlays/#modals --- react-bootstrap/index.d.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/react-bootstrap/index.d.ts b/react-bootstrap/index.d.ts index 7f89109ab1..76d046e10d 100644 --- a/react-bootstrap/index.d.ts +++ b/react-bootstrap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-bootstrap // Project: https://github.com/react-bootstrap/react-bootstrap -// Definitions by: Walker Burgin , Vincent Siao , Danilo Barros , Batbold Gansukh +// Definitions by: Walker Burgin , Vincent Siao , Danilo Barros , Batbold Gansukh , Raymond May Jr. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as React from 'react'; @@ -286,10 +286,10 @@ declare namespace ReactBootstrap { onHide?: Function; onEnter?: Function; onEntered?: Function; - onEntering?: Function; + onEntering?: Function; onExit?: Function; onExited?: Function; - onExiting?: Function; + onExiting?: Function; } type ModalDialog = React.ClassicComponent; var ModalDialog: React.ClassicComponentClass; @@ -334,20 +334,30 @@ declare namespace ReactBootstrap { // Optional animation?: boolean; + autoFocus?: boolean; backdrop?: boolean | string; + backdropClassName?: string; + backdropStyle?: any; + backdropTransitionTimeout?: number; bsSize?: Sizes; container?: any; // TODO: Add more specific type + containerClassName?: string; dialogClassName?: string; dialogComponent?: any; // TODO: Add more specific type + dialogTransitionTimeout?: number; enforceFocus?: boolean; keyboard?: boolean; + onBackdropClick?: (node: HTMLElement) => any; onEnter?: (node: HTMLElement) => any; onEntered?: (node: HTMLElement) => any; onEntering?: (node: HTMLElement) => any; + onEscapeKeyUp?: (node: HTMLElement) => any; onExit?: (node: HTMLElement) => any; onExited?: (node: HTMLElement) => any; onExiting?: (node: HTMLElement) => any; + onShow?: (node: HTMLElement) => any; show?: boolean; + transition?: React.ReactElement; } interface ModalClass extends React.ClassicComponentClass { Body: typeof ModalBody; @@ -359,7 +369,6 @@ declare namespace ReactBootstrap { type Modal = React.ClassicComponent; var Modal: ModalClass; - // interface OverlayTriggerProps { // Required