UNPKG

@material-ui/lab

Version:

Material-UI Lab - Incubator for Material-UI React components.

54 lines (53 loc) 2.43 kB
import * as React from 'react'; import { DialogProps as MuiDialogProps } from '@material-ui/core/Dialog'; import { WithStyles } from '@material-ui/core/styles'; export interface ExportedPickerModalProps { /** * "OK" button text. * @default "OK" */ okText?: React.ReactNode; /** * "CANCEL" Text message * @default "CANCEL" */ cancelText?: React.ReactNode; /** * "CLEAR" Text message * @default "CLEAR" */ clearText?: React.ReactNode; /** * "TODAY" Text message * @default "TODAY" */ todayText?: React.ReactNode; /** * If `true`, it shows the clear action in the picker dialog. * @default false */ clearable?: boolean; /** * If `true`, the today button will be displayed. **Note** that `showClearButton` has a higher priority. * @default false */ showTodayButton?: boolean; /** * Props to be passed directly to material-ui [Dialog](https://material-ui.com/components/dialogs) */ DialogProps?: Partial<MuiDialogProps>; } export interface PickerModalDialogProps extends ExportedPickerModalProps { onAccept: () => void; onClear: () => void; onDismiss: () => void; onSetToday: () => void; wider?: boolean; open: boolean; } export declare const styles: Record<"dialog" | "dialogRoot" | "dialogRootWider" | "dialogContainer" | "dialogAction" | "withAdditionalAction", import("../../../../material-ui-styles/src").CSSProperties | import("../../../../material-ui-styles/src").CreateCSSProperties<{}> | import("../../../../material-ui-styles/src").PropsFunc<{}, import("../../../../material-ui-styles/src").CreateCSSProperties<{}>>>; export declare type PickersModalDialogClassKey = keyof WithStyles<typeof styles>['classes']; declare const _default: React.ComponentType<Pick<React.PropsWithChildren<PickerModalDialogProps & { classes: Record<"dialog" | "dialogRoot" | "dialogRootWider" | "dialogContainer" | "dialogAction" | "withAdditionalAction", string>; }>, "open" | "children" | "onAccept" | "onClear" | "onDismiss" | "onSetToday" | "wider" | "okText" | "cancelText" | "clearText" | "todayText" | "clearable" | "showTodayButton" | "DialogProps"> & import("../../../../material-ui/src/styles").StyledComponentProps<"dialog" | "dialogRoot" | "dialogRootWider" | "dialogContainer" | "dialogAction" | "withAdditionalAction">>; export default _default;