@react-types/calendar 3.0.0-nightly.1729 → 3.0.0-nightly.1734

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.d.ts +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/calendar",
3
- "version": "3.0.0-nightly.1729+13696a97a",
3
+ "version": "3.0.0-nightly.1734+fe1ad32e5",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@internationalized/date": "3.0.2-nightly.3429+13696a97a",
13
- "@react-types/shared": "3.0.0-nightly.1729+13696a97a"
12
+ "@internationalized/date": "3.0.2-nightly.3434+fe1ad32e5",
13
+ "@react-types/shared": "3.0.0-nightly.1734+fe1ad32e5"
14
14
  },
15
15
  "publishConfig": {
16
16
  "access": "public"
@@ -18,5 +18,5 @@
18
18
  "peerDependencies": {
19
19
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
20
20
  },
21
- "gitHead": "13696a97a7742eb84cb31f5cb50123a2da8f090e"
21
+ "gitHead": "fe1ad32e50ebb524621113a4beb3678b6efc4ed0"
22
22
  }
package/src/index.d.ts CHANGED
@@ -56,8 +56,8 @@ 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>>, DOMProps, AriaLabelingProps {}
60
- export interface RangeCalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<RangeValue<T>, RangeValue<MappedDateValue<T>>>, DOMProps, AriaLabelingProps {
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>>> {
61
61
  /**
62
62
  * When combined with `isDateUnavailable`, determines whether non-contiguous ranges,
63
63
  * i.e. ranges containing unavailable dates, may be selected.
@@ -65,7 +65,11 @@ export interface RangeCalendarProps<T extends DateValue> extends CalendarPropsBa
65
65
  allowsNonContiguousRanges?: boolean
66
66
  }
67
67
 
68
- export interface SpectrumCalendarProps<T extends DateValue> extends CalendarProps<T>, StyleProps {
68
+ export interface AriaCalendarProps<T extends DateValue> extends CalendarProps<T>, DOMProps, AriaLabelingProps {}
69
+
70
+ export interface AriaRangeCalendarProps<T extends DateValue> extends RangeCalendarProps<T>, DOMProps, AriaLabelingProps {}
71
+
72
+ export interface SpectrumCalendarProps<T extends DateValue> extends AriaCalendarProps<T>, StyleProps {
69
73
  /**
70
74
  * The number of months to display at once. Up to 3 months are supported.
71
75
  * @default 1
@@ -73,7 +77,7 @@ export interface SpectrumCalendarProps<T extends DateValue> extends CalendarProp
73
77
  visibleMonths?: number
74
78
  }
75
79
 
76
- export interface SpectrumRangeCalendarProps<T extends DateValue> extends RangeCalendarProps<T>, StyleProps {
80
+ export interface SpectrumRangeCalendarProps<T extends DateValue> extends AriaRangeCalendarProps<T>, StyleProps {
77
81
  /**
78
82
  * The number of months to display at once. Up to 3 months are supported.
79
83
  * @default 1