/
DateRangeInput.d.ts
55 lines (55 loc) · 1.38 KB
/
DateRangeInput.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import React from 'react'
import {UseDatepickerProps, FormatFunction, FocusedInput} from '@datepicker-react/hooks'
import {DateRangeInputPhrases} from '../../phrases'
export interface DateRangeInputProps extends UseDatepickerProps {
displayFormat?: string | FormatFunction
phrases?: DateRangeInputPhrases
onFocusChange(focusInput: FocusedInput): void
showStartDateCalendarIcon?: boolean
showEndDateCalendarIcon?: boolean
onClose?(): void
vertical?: boolean
showResetDates?: boolean
showSelectedDates?: boolean
showClose?: boolean
rtl?: boolean
placement?: 'top' | 'bottom'
dayLabelFormat?(date: Date): string
weekdayLabelFormat?(date: Date): string
monthLabelFormat?(date: Date): string
onDayRender?(date: Date): React.ReactNode
startDateInputId?: string
endDateInputId?: string
}
declare function DateRangeInput({
startDate,
endDate,
minBookingDate,
maxBookingDate,
firstDayOfWeek,
onFocusChange,
numberOfMonths,
focusedInput,
onDatesChange,
exactMinBookingDays,
dayLabelFormat,
weekdayLabelFormat,
monthLabelFormat,
onDayRender,
showClose,
showSelectedDates,
showResetDates,
vertical,
rtl,
isDateBlocked,
minBookingDays,
onClose,
showStartDateCalendarIcon,
showEndDateCalendarIcon,
displayFormat,
phrases,
placement,
startDateInputId,
endDateInputId,
}: DateRangeInputProps): JSX.Element
export default DateRangeInput