@react-types/datepicker 3.0.0-nightly.3134 → 3.0.0-nightly.3156

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 +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/datepicker",
3
- "version": "3.0.0-nightly.3134+6fa5706ef",
3
+ "version": "3.0.0-nightly.3156+2c25922e2",
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.3134+6fa5706ef",
13
- "@react-types/shared": "3.0.0-nightly.1438+6fa5706ef"
12
+ "@internationalized/date": "3.0.0-nightly.3156+2c25922e2",
13
+ "@react-types/shared": "3.0.0-nightly.1460+2c25922e2"
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": "6fa5706efb7bb7d8c322b8f756c451378ca962ce"
21
+ "gitHead": "2c25922e23ec51bd487b7838adb48a60c558dc36"
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. */
@@ -107,7 +109,9 @@ export interface TimePickerProps<T extends TimeValue> extends InputBase, Validat
107
109
  maxValue?: TimeValue
108
110
  }
109
111
 
110
- export interface SpectrumTimePickerProps<T extends TimeValue> extends TimePickerProps<T>, SpectrumLabelableProps, DOMProps, StyleProps {
112
+ export interface AriaTimeFieldProps<T extends TimeValue> extends TimePickerProps<T>, AriaLabelingProps, DOMProps {}
113
+
114
+ export interface SpectrumTimePickerProps<T extends TimeValue> extends AriaTimeFieldProps<T>, SpectrumLabelableProps, StyleProps {
111
115
  /**
112
116
  * Whether the time field should be displayed with a quiet style.
113
117
  * @default false