@react-types/calendar 3.0.0-rc.1 → 3.0.2
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.
- package/package.json +4 -4
- package/src/index.d.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/calendar",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
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.
|
|
13
|
-
"@react-types/shared": "^3.
|
|
12
|
+
"@internationalized/date": "^3.0.1",
|
|
13
|
+
"@react-types/shared": "^3.14.1"
|
|
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": "
|
|
21
|
+
"gitHead": "b03ef51e6317547dd0a840f151e59d039b1e1fd3"
|
|
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;
|
|
@@ -65,7 +65,11 @@ export interface RangeCalendarProps<T extends DateValue> extends CalendarPropsBa
|
|
|
65
65
|
allowsNonContiguousRanges?: boolean
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export interface
|
|
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
|
|
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
|