UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

34 lines (33 loc) 1.14 kB
import * as React from 'react'; import { ModalProps } from '../Modal'; import { WindowModalProps } from '../WindowModal'; import { BoxProps } from '../Flex'; type TypeProps = { modal?: boolean; autoFocus?: boolean; focusOnBrowserVisible?: boolean; fixed?: boolean; windowModal?: boolean; windowModalProps?: WindowModalProps; modalProps?: ModalProps; isOpen?: boolean; defaultIsOpen?: boolean; showCloseButton?: boolean; onDismiss?: () => void; dismissOnClickOutside?: boolean; }; export interface DialogProps extends Omit<BoxProps, 'ref'>, TypeProps { onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void; onClick?: (event: React.MouseEvent<HTMLDivElement>) => void; onChange?: (event: React.FormEvent<HTMLDivElement>) => void; className?: string; children?: React.ReactNode; style?: React.CSSProperties; } export type DialogRefType = { bringToFront: VoidFunction; }; export declare const Dialog: React.ForwardRefExoticComponent<DialogProps & { children?: React.ReactNode | undefined; } & React.RefAttributes<DialogRefType>>; export default Dialog;