@material-ui/lab
Version:
Material-UI Lab - Incubator for Material-UI React components.
33 lines (32 loc) • 1.66 kB
TypeScript
import * as React from 'react';
import PropTypes from 'prop-types';
import { BasePickerProps } from '../internal/pickers/typings/BasePicker';
import { SharedPickerProps } from '../internal/pickers/Picker/SharedPickerProps';
import { DateRangeInputProps } from './DateRangePickerInput';
import { RangeInput, DateRange, CurrentlySelectingRangeEndProps } from './RangeTypes';
import { ExportedDayPickerProps } from '../DayPicker/DayPicker';
import { ExportedDesktopDateRangeCalendarProps } from './DateRangePickerViewDesktop';
declare type BaseCalendarPropsToReuse<TDate> = Omit<ExportedDayPickerProps<TDate>, 'onYearChange' | 'renderDay'>;
export interface ExportedDateRangePickerViewProps<TDate> extends BaseCalendarPropsToReuse<TDate>, ExportedDesktopDateRangeCalendarProps<TDate>, Omit<BasePickerProps, 'value' | 'onChange'> {
/**
* if `true` after selecting `start` date calendar will not automatically switch to the month of `end` date
* @default false
*/
disableAutoMonthSwitching?: boolean;
}
interface DateRangePickerViewProps<TDate> extends CurrentlySelectingRangeEndProps, ExportedDateRangePickerViewProps<TDate>, SharedPickerProps<RangeInput<TDate>, DateRange<TDate>, DateRangeInputProps> {
open: boolean;
startText: React.ReactNode;
endText: React.ReactNode;
}
/**
* @ignore - internal component.
*/
export declare function DateRangePickerView<TDate>(props: DateRangePickerViewProps<TDate>): JSX.Element;
export declare namespace DateRangePickerView {
var propTypes: {
calendars: PropTypes.Requireable<number>;
disableAutoMonthSwitching: PropTypes.Requireable<boolean>;
};
}
export {};