@material-ui/lab
Version:
Material-UI Lab - Incubator for Material-UI React components.
33 lines (32 loc) • 1.38 kB
TypeScript
/// <reference types="react" />
import { DateInputProps } from '../PureDateInput';
import { ExportedPickerPopperProps } from '../PickersPopper';
import { ExportedPickerModalProps } from '../PickersModalDialog';
export declare type DateInputPropsLike = Omit<DateInputProps<any, any>, 'renderInput' | 'validationError' | 'forwardedRef'> & {
renderInput: (...args: any) => JSX.Element;
validationError?: any;
forwardedRef?: any;
};
export interface StaticWrapperProps {
/**
* Force static wrapper inner components to be rendered in mobile or desktop mode
* @default "static"
*/
displayStaticWrapperAs?: 'desktop' | 'mobile';
}
export interface MobileWrapperProps extends ExportedPickerModalProps {
}
export interface DesktopWrapperProps extends ExportedPickerPopperProps {
}
export interface PrivateWrapperProps {
open: boolean;
onAccept: () => void;
onDismiss: () => void;
onClear: () => void;
onSetToday: () => void;
DateInputProps: DateInputPropsLike;
KeyboardDateInputComponent?: React.ComponentType<DateInputPropsLike>;
PureDateInputComponent?: React.ComponentType<DateInputPropsLike>;
}
/** Root interface for all wrappers props. Any wrapper can accept all the props and must spread them. */
export declare type WrapperProps = StaticWrapperProps & MobileWrapperProps & DesktopWrapperProps & PrivateWrapperProps;