UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

33 lines 1.31 kB
import { DialogContentProps, DialogProps, SxProps } from '@mui/material'; import React, { ReactNode } from 'react'; import { HelpPopoverProps } from './HelpPopover/HelpPopover'; export type CloseButtonProps = { sx?: SxProps; onClick?: () => void; }; export declare const CLOSE_BUTTON_LABEL = "close"; export declare function CloseButton({ sx, onClick, }: CloseButtonProps): React.JSX.Element; export type DialogBaseTitleProps = { title: ReactNode; titleHelpPopoverProps?: HelpPopoverProps; hasCloseButton?: boolean; onCancel: () => void; }; export declare function DialogBaseTitle(props: DialogBaseTitleProps): React.ReactNode; export type DialogBaseProps = DialogBaseTitleProps & { open: boolean; content: ReactNode; actions?: ReactNode; className?: string; onCancel: () => void; maxWidth?: DialogProps['maxWidth']; fullWidth?: boolean; sx?: DialogProps['sx']; contentProps?: DialogContentProps; DialogProps?: Partial<DialogProps>; }; /** * A dialog built using MUI components. */ export declare const DialogBase: ({ open, title, content, actions, className, onCancel, hasCloseButton, titleHelpPopoverProps, maxWidth, fullWidth, sx, contentProps, DialogProps, }: DialogBaseProps) => React.ReactNode; //# sourceMappingURL=DialogBase.d.ts.map