@react-types/calendar 3.7.4 → 3.8.1
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 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/calendar",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
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.32.
|
|
12
|
+
"@internationalized/date": "^3.10.1",
|
|
13
|
+
"@react-types/shared": "^3.32.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 || ^19.0.0-rc.1"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "4d838da5bfe36abb35aed166995a9ef63825370f"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface CalendarPropsBase {
|
|
|
45
45
|
autoFocus?: boolean,
|
|
46
46
|
/** Controls the currently focused date within the calendar. */
|
|
47
47
|
focusedValue?: DateValue | null,
|
|
48
|
-
/** The date that is focused when the calendar first mounts (
|
|
48
|
+
/** The date that is focused when the calendar first mounts (uncontrolled). */
|
|
49
49
|
defaultFocusedValue?: DateValue | null,
|
|
50
50
|
/** Handler that is called when the focused date changes. */
|
|
51
51
|
onFocusChange?: (date: CalendarDate) => void,
|
|
@@ -66,7 +66,12 @@ export interface CalendarPropsBase {
|
|
|
66
66
|
/**
|
|
67
67
|
* The day that starts the week.
|
|
68
68
|
*/
|
|
69
|
-
firstDayOfWeek?: 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat'
|
|
69
|
+
firstDayOfWeek?: 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat',
|
|
70
|
+
/**
|
|
71
|
+
* Determines the alignment of the visible months on initial render based on the current selection or current date if there is no selection.
|
|
72
|
+
* @default 'center'
|
|
73
|
+
*/
|
|
74
|
+
selectionAlignment?: 'start' | 'center' | 'end'
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
export type DateRange = RangeValue<DateValue> | null;
|