@react-types/calendar 3.0.0-nightly.3125 → 3.0.0-nightly.3142
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 +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/calendar",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.3142+51ff50c6f",
|
|
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.
|
|
13
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@internationalized/date": "3.0.0-nightly.3142+51ff50c6f",
|
|
13
|
+
"@react-types/shared": "3.0.0-nightly.1446+51ff50c6f"
|
|
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": "
|
|
21
|
+
"gitHead": "51ff50c6fed6df76c22467622b17b2af2d9380e0"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface CalendarPropsBase {
|
|
|
25
25
|
minValue?: DateValue,
|
|
26
26
|
/** The maximum allowed date that a user may select. */
|
|
27
27
|
maxValue?: DateValue,
|
|
28
|
+
/** Callback that is called for each date of the calendar. If it returns true, then the date is disabled. */
|
|
29
|
+
isDateDisabled?: (date: DateValue) => boolean,
|
|
28
30
|
/**
|
|
29
31
|
* Whether the calendar is disabled.
|
|
30
32
|
* @default false
|