File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
export { useResolvedDirection } from './useResolvedDirection'
2
- export { useDatePicker } from './useDatePicker'
2
+ export {
3
+ useDatePicker ,
4
+ DatePickerOptions ,
5
+ OnDateSelectPayload ,
6
+ } from './useDatePicker'
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ import {
17
17
import { useResolvedLocaleOptions } from './internal/useResolvedLocaleOptions'
18
18
import { useWeekDayLabels } from './internal/useWeekDayLabels'
19
19
20
- type DatePickerOptions = {
20
+ export type OnDateSelectPayload = {
21
+ calendarDateString : string
22
+ } | null
23
+
24
+ export type DatePickerOptions = {
21
25
date : string
22
26
options : PickerOptions
23
- onDateSelect : ( {
24
- calendarDateString,
25
- } : {
26
- calendarDateString : string
27
- } ) => void
27
+ onDateSelect : ( payload : OnDateSelectPayload ) => void
28
28
minDate ?: string
29
29
maxDate ?: string
30
30
format ?: 'YYYY-MM-DD' | 'DD-MM-YYYY'
You can’t perform that action at this time.
0 commit comments