|
10 | 10 | * governing permissions and limitations under the License.
|
11 | 11 | */
|
12 | 12 |
|
| 13 | +import {AriaLabelingProps, DOMProps, RangeValue, StyleProps, ValidationState, ValueBase} from '@react-types/shared'; |
13 | 14 | import {CalendarDate, CalendarDateTime, ZonedDateTime} from '@internationalized/date';
|
14 |
| -import {DOMProps, RangeValue, StyleProps, ValidationState, ValueBase} from '@react-types/shared'; |
15 | 15 | import {ReactNode} from 'react';
|
16 | 16 |
|
17 | 17 | export type DateValue = CalendarDate | CalendarDateTime | ZonedDateTime;
|
@@ -56,24 +56,24 @@ export interface CalendarPropsBase {
|
56 | 56 | }
|
57 | 57 |
|
58 | 58 | export type DateRange = RangeValue<DateValue>;
|
59 |
| -export interface CalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<T, MappedDateValue<T>> {} |
60 |
| -export interface RangeCalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<RangeValue<T>, RangeValue<MappedDateValue<T>>> { |
| 59 | +export interface CalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<T, MappedDateValue<T>>, DOMProps, AriaLabelingProps {} |
| 60 | +export interface RangeCalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<RangeValue<T>, RangeValue<MappedDateValue<T>>>, DOMProps, AriaLabelingProps { |
61 | 61 | /**
|
62 | 62 | * When combined with `isDateUnavailable`, determines whether non-contiguous ranges,
|
63 | 63 | * i.e. ranges containing unavailable dates, may be selected.
|
64 | 64 | */
|
65 | 65 | allowsNonContiguousRanges?: boolean
|
66 | 66 | }
|
67 | 67 |
|
68 |
| -export interface SpectrumCalendarProps<T extends DateValue> extends CalendarProps<T>, DOMProps, StyleProps { |
| 68 | +export interface SpectrumCalendarProps<T extends DateValue> extends CalendarProps<T>, StyleProps { |
69 | 69 | /**
|
70 | 70 | * The number of months to display at once. Up to 3 months are supported.
|
71 | 71 | * @default 1
|
72 | 72 | */
|
73 | 73 | visibleMonths?: number
|
74 | 74 | }
|
75 | 75 |
|
76 |
| -export interface SpectrumRangeCalendarProps<T extends DateValue> extends RangeCalendarProps<T>, DOMProps, StyleProps { |
| 76 | +export interface SpectrumRangeCalendarProps<T extends DateValue> extends RangeCalendarProps<T>, StyleProps { |
77 | 77 | /**
|
78 | 78 | * The number of months to display at once. Up to 3 months are supported.
|
79 | 79 | * @default 1
|
|
0 commit comments