@react-types/calendar 3.2.0 → 3.3.0
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 +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/calendar",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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.
|
|
13
|
-
"@react-types/shared": "^3.18.
|
|
12
|
+
"@internationalized/date": "^3.3.0",
|
|
13
|
+
"@react-types/shared": "^3.18.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": "504e40e0a50c1b20ed0fb3ba9561a263b6d5565e"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -52,7 +52,12 @@ export interface CalendarPropsBase {
|
|
|
52
52
|
/** Whether the current selection is valid or invalid according to application logic. */
|
|
53
53
|
validationState?: ValidationState,
|
|
54
54
|
/** An error message to display when the selected value is invalid. */
|
|
55
|
-
errorMessage?: ReactNode
|
|
55
|
+
errorMessage?: ReactNode,
|
|
56
|
+
/**
|
|
57
|
+
* Controls the behavior of paging. Pagination either works by advancing the visible page by visibleDuration (default) or one unit of visibleDuration.
|
|
58
|
+
* @default visible
|
|
59
|
+
*/
|
|
60
|
+
pageBehavior?: PageBehavior
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
export type DateRange = RangeValue<DateValue>;
|
|
@@ -69,6 +74,8 @@ export interface AriaCalendarProps<T extends DateValue> extends CalendarProps<T>
|
|
|
69
74
|
|
|
70
75
|
export interface AriaRangeCalendarProps<T extends DateValue> extends RangeCalendarProps<T>, DOMProps, AriaLabelingProps {}
|
|
71
76
|
|
|
77
|
+
export type PageBehavior = 'single' | 'visible';
|
|
78
|
+
|
|
72
79
|
export interface SpectrumCalendarProps<T extends DateValue> extends AriaCalendarProps<T>, StyleProps {
|
|
73
80
|
/**
|
|
74
81
|
* The number of months to display at once. Up to 3 months are supported.
|