@react-types/datepicker 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/datepicker",
|
|
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
|
@@ -38,6 +38,8 @@ interface DatePickerBase<T extends DateValue> extends InputBase, Validation, Foc
|
|
|
38
38
|
minValue?: DateValue,
|
|
39
39
|
/** The maximum allowed date that a user may select. */
|
|
40
40
|
maxValue?: DateValue,
|
|
41
|
+
/** Callback that is called for each date of the calendar. If it returns true, then the date is disabled. */
|
|
42
|
+
isDateDisabled?: (date: DateValue) => boolean,
|
|
41
43
|
/** A placeholder date to display when no value is selected. Defaults to today's date at midnight. */
|
|
42
44
|
placeholderValue?: T,
|
|
43
45
|
/** Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale. */
|