Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
33 lines
987 B
Plaintext
33 lines
987 B
Plaintext
import type { DatePickerProps } from 'react-datepicker';
|
|
export type SharedProps = {
|
|
displayFormat?: string;
|
|
overrides?: DatePickerProps;
|
|
pickerAppearance?: 'dayAndTime' | 'dayOnly' | 'default' | 'monthOnly' | 'timeOnly';
|
|
};
|
|
export type TimePickerProps = {
|
|
maxTime?: Date;
|
|
minTime?: Date;
|
|
timeFormat?: string;
|
|
timeIntervals?: number;
|
|
};
|
|
export type DayPickerProps = {
|
|
maxDate?: Date;
|
|
minDate?: Date;
|
|
monthsToShow?: 1 | 2;
|
|
};
|
|
export type MonthPickerProps = {
|
|
maxDate?: Date;
|
|
minDate?: Date;
|
|
};
|
|
export type ConditionalDateProps = ({
|
|
pickerAppearance: 'dayOnly';
|
|
} & DayPickerProps & SharedProps) | ({
|
|
pickerAppearance: 'monthOnly';
|
|
} & MonthPickerProps & SharedProps) | ({
|
|
pickerAppearance: 'timeOnly';
|
|
} & SharedProps & TimePickerProps) | ({
|
|
pickerAppearance?: 'dayAndTime';
|
|
} & DayPickerProps & SharedProps & TimePickerProps) | ({
|
|
pickerAppearance?: 'default';
|
|
} & SharedProps);
|
|
//# sourceMappingURL=DatePicker.d.ts.map |