diff --git a/src/components/dialog/Dialog.d.ts b/src/components/dialog/Dialog.d.ts index 9da54d98a2..e8da3136a1 100644 --- a/src/components/dialog/Dialog.d.ts +++ b/src/components/dialog/Dialog.d.ts @@ -44,6 +44,7 @@ export interface DialogProps { keepInViewport?: boolean; maximized?: boolean; breakpoints?: Breakpoints; + transitionOptions?: object; onMaximize?(e: MaximizeParams): void; onDragStart?(e: React.DragEvent): void; onDrag?(e: React.DragEvent): void; diff --git a/src/components/dialog/Dialog.js b/src/components/dialog/Dialog.js index 5d9f325839..7af5f0c246 100644 --- a/src/components/dialog/Dialog.js +++ b/src/components/dialog/Dialog.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import DomHandler from '../utils/DomHandler'; import { classNames } from '../utils/ClassNames'; import UniqueComponentId from '../utils/UniqueComponentId'; -import { CSSTransition } from 'react-transition-group'; +import { CSSTransition } from '../transition/CSSTransition'; import ObjectUtils from '../utils/ObjectUtils'; import { Ripple } from '../ripple/Ripple'; import { Portal } from '../portal/Portal'; @@ -44,6 +44,7 @@ export class Dialog extends Component { keepInViewport: true, maximized: false, breakpoints: null, + transitionOptions: null, onMaximize: null, onDragStart: null, onDrag: null, @@ -86,6 +87,7 @@ export class Dialog extends Component { keepInViewport: PropTypes.bool, maximized: PropTypes.bool, breakpoints: PropTypes.object, + transitionOptions: PropTypes.object, onMaximize: PropTypes.func, onDragStart: PropTypes.func, onDrag: PropTypes.func, @@ -636,8 +638,8 @@ export class Dialog extends Component { return (
this.mask = el} className={maskClassName} onClick={this.onMaskClick}> - +