-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dependencies): update dependencies
affects: @datepicker-react/hooks, @datepicker-react/styled
- Loading branch information
Showing
12 changed files
with
3,944 additions
and
2,391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
interface CloseProps { | ||
onClick(): void | ||
rtl: boolean | ||
closeText: string | ||
} | ||
declare function Close({onClick, rtl}: CloseProps): JSX.Element | ||
declare function Close({onClick, rtl, closeText}: CloseProps): JSX.Element | ||
export default Close |
58 changes: 58 additions & 0 deletions
58
packages/styled/lib/components/DateSingleInput/DateSingleInput.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React from 'react' | ||
import {FormatFunction} from '@datepicker-react/hooks' | ||
import {DateSingleInputPhrases} from '../../phrases' | ||
import {FirstDayOfWeek, MonthType} from '@datepicker-react/hooks/src' | ||
export interface OnDateChangeProps { | ||
date: Date | null | ||
showDatepicker: boolean | ||
} | ||
export interface DateRangeInputProps { | ||
date: Date | null | ||
minBookingDate?: Date | ||
maxBookingDate?: Date | ||
showDatepicker: boolean | ||
numberOfMonths?: number | ||
firstDayOfWeek?: FirstDayOfWeek | ||
displayFormat?: string | FormatFunction | ||
phrases?: DateSingleInputPhrases | ||
showCalendarIcon?: boolean | ||
vertical?: boolean | ||
showResetDate?: boolean | ||
showClose?: boolean | ||
rtl?: boolean | ||
placement?: 'top' | 'bottom' | ||
onDateChange(data: OnDateChangeProps): void | ||
onFocusChange(focusInput: boolean): void | ||
initialVisibleMonth?(numberOfMonths: number): MonthType[] | ||
isDateBlocked?(date: Date): boolean | ||
onClose?(): void | ||
dayLabelFormat?(date: Date): string | ||
weekdayLabelFormat?(date: Date): string | ||
monthLabelFormat?(date: Date): string | ||
onDayRender?(date: Date): React.ReactNode | ||
} | ||
declare function DateSingleInput({ | ||
date, | ||
minBookingDate, | ||
maxBookingDate, | ||
firstDayOfWeek, | ||
onFocusChange, | ||
showDatepicker, | ||
onDateChange, | ||
dayLabelFormat, | ||
weekdayLabelFormat, | ||
monthLabelFormat, | ||
onDayRender, | ||
numberOfMonths, | ||
showClose, | ||
showResetDate, | ||
vertical, | ||
rtl, | ||
isDateBlocked, | ||
onClose, | ||
showCalendarIcon, | ||
displayFormat, | ||
phrases, | ||
placement, | ||
}: DateRangeInputProps): JSX.Element | ||
export default DateSingleInput |
1 change: 1 addition & 0 deletions
1
packages/styled/lib/components/DateSingleInput/DateSingleInput.stories.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {} |
1 change: 1 addition & 0 deletions
1
packages/styled/lib/components/DateSingleInput/DateSingleInput.test.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import DateSingleInput, {OnDateChangeProps} from './DateSingleInput' | ||
export {OnDateChangeProps} | ||
export default DateSingleInput |
Oops, something went wrong.