material-ui - update to new dialog usage.

This commit is contained in:
Nathan Brown
2015-12-01 16:44:13 -07:00
parent 4910a7c52a
commit 9322940349
2 changed files with 30 additions and 6 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for material-ui v0.13.1
// Type definitions for material-ui v0.13.4
// Project: https://github.com/callemall/material-ui
// Definitions by: Nathan Brown <https://github.com/ngbrown>, Oliver Herrmann <https://github.com/herrmanno>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -379,14 +379,18 @@ declare namespace __MaterialUI {
openImmediately?: boolean;
repositionOnUpdate?: boolean;
title?: React.ReactNode;
defaultOpen?: boolean;
open?: boolean;
onClickAway?: () => void;
onDismiss?: () => void;
onShow?: () => void;
onRequestClose?: (buttonClicked: boolean) => void;
}
export class Dialog extends React.Component<DialogProps, {}> {
dismiss(): void;
show(): void;
isOpen(): boolean;
}
interface DropDownIconProps extends React.Props<DropDownIcon> {