@react-types/calendar 3.3.1 → 3.4.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.d.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/calendar",
3
- "version": "3.3.1",
3
+ "version": "3.4.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.4.0",
13
- "@react-types/shared": "^3.19.0"
12
+ "@internationalized/date": "^3.5.0",
13
+ "@react-types/shared": "^3.21.0"
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": "d4dfe4bb842a914f10045ee63fc6b92f034c5b30"
21
+ "gitHead": "4122e44d1991c90507d630d35ed297f89db435d3"
22
22
  }
package/src/index.d.ts CHANGED
@@ -49,8 +49,13 @@ export interface CalendarPropsBase {
49
49
  defaultFocusedValue?: DateValue,
50
50
  /** Handler that is called when the focused date changes. */
51
51
  onFocusChange?: (date: CalendarDate) => void,
52
- /** Whether the current selection is valid or invalid according to application logic. */
52
+ /**
53
+ * Whether the current selection is valid or invalid according to application logic.
54
+ * @deprecated Use `isInvalid` instead.
55
+ */
53
56
  validationState?: ValidationState,
57
+ /** Whether the current selection is invalid according to application logic. */
58
+ isInvalid?: boolean,
54
59
  /** An error message to display when the selected value is invalid. */
55
60
  errorMessage?: ReactNode,
56
61
  /**