mui-component
Version:
some custom mui components
31 lines (30 loc) • 1.64 kB
TypeScript
import React from 'react';
import { DesktopDateRangePickerProps, DesktopDateRangePickerSlotsComponent, DesktopDateRangePickerSlotsComponentsProps } from './DesktopDateRangePicker';
import { MobileDateRangePickerProps, MobileDateRangePickerSlotsComponent, MobileDateRangePickerSlotsComponentsProps } from './MobileDateRangePicker';
export interface DateRangePickerSlotsComponent extends MobileDateRangePickerSlotsComponent, DesktopDateRangePickerSlotsComponent {
}
export interface DateRangePickerSlotsComponentsProps extends MobileDateRangePickerSlotsComponentsProps, DesktopDateRangePickerSlotsComponentsProps {
}
export interface DateRangePickerProps<TInputDate, TDate> extends Omit<DesktopDateRangePickerProps<TInputDate, TDate>, 'components' | 'componentsProps'>, Omit<MobileDateRangePickerProps<TInputDate, TDate>, 'components' | 'componentsProps'> {
/**
* CSS media query when `Mobile` mode will be changed to `Desktop`.
* @default '@media (pointer: fine)'
* @example '@media (min-width: 720px)' or theme.breakpoints.up("sm")
*/
desktopModeMediaQuery?: string;
/**
* Overrideable components.
* @default {}
*/
components?: Partial<DateRangePickerSlotsComponent>;
/**
* The props used for each component slot.
* @default {}
*/
componentsProps?: Partial<DateRangePickerSlotsComponentsProps>;
}
type DateRangePickerComponent = (<TInputDate, TDate = TInputDate>(props: DateRangePickerProps<TInputDate, TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
propTypes?: any;
};
export declare const DateRangePicker: DateRangePickerComponent;
export {};