@react-types/calendar 3.0.0-nightly.1699 → 3.0.0-nightly.1702

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 +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/calendar",
3
- "version": "3.0.0-nightly.1699+9498c7d85",
3
+ "version": "3.0.0-nightly.1702+c9c838b03",
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.3399+9498c7d85",
13
- "@react-types/shared": "3.0.0-nightly.1699+9498c7d85"
12
+ "@internationalized/date": "3.0.2-nightly.3402+c9c838b03",
13
+ "@react-types/shared": "3.0.0-nightly.1702+c9c838b03"
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": "9498c7d858b08e03b4c36fac491b9e4434453da0"
21
+ "gitHead": "c9c838b03cf2c9a3efa957f86bb1981fa199b3de"
22
22
  }
package/src/index.d.ts CHANGED
@@ -10,8 +10,8 @@
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,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>> {}
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.
@@ -65,7 +65,7 @@ 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>, 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
@@ -73,7 +73,7 @@ export interface SpectrumCalendarProps<T extends DateValue> extends CalendarProp
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