@mui/x-date-pickers-pro
Version:
The Pro plan edition of the MUI X Date and Time Picker components.
91 lines • 2.67 kB
TypeScript
import { PickerDayOwnerState, PickersDayProps } from '@mui/x-date-pickers/PickersDay';
import { DateRangePickerDayClasses } from "./dateRangePickerDayClasses.js";
export interface DateRangePickerDayProps extends Omit<PickersDayProps, 'classes' | 'onBlur' | 'onFocus' | 'onKeyDown'> {
/**
* Set to `true` if the `day` is in a highlighted date range.
*/
isHighlighting: boolean;
/**
* Set to `true` if the `day` is the end of a highlighted date range.
*/
isEndOfHighlighting: boolean;
/**
* Set to `true` if the `day` is the start of a highlighted date range.
*/
isStartOfHighlighting: boolean;
/**
* Set to `true` if the `day` is in a preview date range.
*/
isPreviewing: boolean;
/**
* Set to `true` if the `day` is the end of a previewing date range.
*/
isEndOfPreviewing: boolean;
/**
* Set to `true` if the `day` is the start of a previewing date range.
*/
isStartOfPreviewing: boolean;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<DateRangePickerDayClasses>;
/**
* Indicates if the day should be visually selected.
*/
isVisuallySelected?: boolean;
/**
* If `true`, the day can be dragged to change the current date range.
* @default false
*/
draggable?: boolean;
}
export interface DateRangePickerDayOwnerState extends PickerDayOwnerState {
/**
* Whether the day is the first day of the selected range.
*/
isDaySelectionStart: boolean;
/**
* Whether the day is the last day of the selected range.
*/
isDaySelectionEnd: boolean;
/**
* Whether the day is within the selected range and is not its first or last day.
*/
isDayInsideSelection: boolean;
/**
* Whether the day is within the preview range.
*/
isDayPreviewed: boolean;
/**
* Whether the day is the first day of the preview range.
*/
isDayPreviewStart: boolean;
/**
* Whether the day is the last day of the preview range.
*/
isDayPreviewEnd: boolean;
/**
* Whether the day is within the preview range and is not its first or last day.
*/
isDayInsidePreview: boolean;
/**
* Whether the day is the first day of the month.
*/
isDayStartOfMonth: boolean;
/**
* Whether the day is the last day of the month.
*/
isDayEndOfMonth: boolean;
/**
* Whether the day is the first visible cell of the month it's being rendered in.
*/
isDayFirstVisibleCell: boolean;
/**
* Whether the day is the last visible cell of the month it's being rendered in.
*/
isDayLastVisibleCell: boolean;
/**
* Whether the day is a filler day (its content is hidden).
*/
isDayFillerCell: boolean;
}