@react-types/calendar 3.4.9 → 3.5.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 +5 -5
- package/src/index.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/calendar",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@internationalized/date": "^3.
|
|
13
|
-
"@react-types/shared": "^3.
|
|
12
|
+
"@internationalized/date": "^3.6.0",
|
|
13
|
+
"@react-types/shared": "^3.26.0"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
19
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -44,9 +44,9 @@ export interface CalendarPropsBase {
|
|
|
44
44
|
*/
|
|
45
45
|
autoFocus?: boolean,
|
|
46
46
|
/** Controls the currently focused date within the calendar. */
|
|
47
|
-
focusedValue?: DateValue,
|
|
47
|
+
focusedValue?: DateValue | null,
|
|
48
48
|
/** The date that is focused when the calendar first mounts (uncountrolled). */
|
|
49
|
-
defaultFocusedValue?: DateValue,
|
|
49
|
+
defaultFocusedValue?: DateValue | null,
|
|
50
50
|
/** Handler that is called when the focused date changes. */
|
|
51
51
|
onFocusChange?: (date: CalendarDate) => void,
|
|
52
52
|
/**
|
|
@@ -66,8 +66,8 @@ export interface CalendarPropsBase {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export type DateRange = RangeValue<DateValue> | null;
|
|
69
|
-
export interface CalendarProps<T extends DateValue
|
|
70
|
-
export interface RangeCalendarProps<T extends DateValue
|
|
69
|
+
export interface CalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<T | null, MappedDateValue<T>> {}
|
|
70
|
+
export interface RangeCalendarProps<T extends DateValue> extends CalendarPropsBase, ValueBase<RangeValue<T> | null, RangeValue<MappedDateValue<T>>> {
|
|
71
71
|
/**
|
|
72
72
|
* When combined with `isDateUnavailable`, determines whether non-contiguous ranges,
|
|
73
73
|
* i.e. ranges containing unavailable dates, may be selected.
|