@react-types/calendar 3.0.0-nightly.3142 → 3.0.0-nightly.3167

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 +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/calendar",
3
- "version": "3.0.0-nightly.3142+51ff50c6f",
3
+ "version": "3.0.0-nightly.3167+847af08e8",
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.0-nightly.3142+51ff50c6f",
13
- "@react-types/shared": "3.0.0-nightly.1446+51ff50c6f"
12
+ "@internationalized/date": "3.0.0-nightly.3167+847af08e8",
13
+ "@react-types/shared": "3.0.0-nightly.1468+847af08e8"
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"
20
20
  },
21
- "gitHead": "51ff50c6fed6df76c22467622b17b2af2d9380e0"
21
+ "gitHead": "847af08e81d798761328d3d7e5014a27206a6c87"
22
22
  }
package/src/index.d.ts CHANGED
@@ -41,7 +41,13 @@ export interface CalendarPropsBase {
41
41
  * Whether to automatically focus the calendar when it mounts.
42
42
  * @default false
43
43
  */
44
- autoFocus?: boolean
44
+ autoFocus?: boolean,
45
+ /** Controls the currently focused date within the calendar. */
46
+ focusedValue?: DateValue,
47
+ /** The date that is focused when the calendar first mounts (uncountrolled). */
48
+ defaultFocusedValue?: DateValue,
49
+ /** Handler that is called when the focused date changes. */
50
+ onFocusChange?: (date: CalendarDate) => void
45
51
  }
46
52
 
47
53
  export type DateRange = RangeValue<DateValue>;