Skip to content

Commit 3fb3232

Browse files
committed
feat(input): manual entry of the date is enabled
affects: @datepicker-react/hooks, @datepicker-react/styled
1 parent 693f6ab commit 3fb3232

5 files changed

Lines changed: 1462 additions & 1390 deletions

File tree

packages/styled/lib/components/Datepicker/Datepicker.d.ts

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,7 @@ export interface DatepickerProps extends UseDatepickerProps {
1515
monthLabelFormat?(date: Date): string
1616
onDayRender?(date: Date): React.ReactNode
1717
}
18-
declare function Datepicker({
19-
startDate,
20-
endDate,
21-
minBookingDate,
22-
maxBookingDate,
23-
focusedInput,
24-
onDatesChange,
25-
dayLabelFormat,
26-
weekdayLabelFormat,
27-
monthLabelFormat,
28-
onDayRender,
29-
vertical,
30-
rtl,
31-
showResetDates,
32-
showClose,
33-
showSelectedDates,
34-
exactMinBookingDays,
35-
isDateBlocked,
36-
minBookingDays,
37-
onClose,
38-
numberOfMonths: numberOfMonthsProp,
39-
firstDayOfWeek: firstDayOfWeekProp,
40-
displayFormat,
41-
phrases,
42-
}: DatepickerProps): JSX.Element
43-
export default Datepicker
18+
declare const _default: React.ForwardRefExoticComponent<
19+
DatepickerProps & React.RefAttributes<unknown>
20+
>
21+
export default _default

packages/styled/lib/components/Input/Input.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ interface InputProps {
1212
rtl: boolean
1313
disableAccessibility?: boolean
1414
padding?: ResponsiveValue<PaddingProperty<TLengthStyledSystem>>
15+
onChange?(date: Date): void
16+
dateFormat: string
1517
}
1618
declare function Input({
1719
placeholder,
@@ -25,5 +27,7 @@ declare function Input({
2527
padding,
2628
rtl,
2729
disableAccessibility,
30+
dateFormat,
31+
onChange,
2832
}: InputProps): JSX.Element
2933
export default Input

0 commit comments

Comments
 (0)