@react-types/datepicker 3.5.0 → 3.6.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 +6 -6
  2. package/src/index.d.ts +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/datepicker",
3
- "version": "3.5.0",
3
+ "version": "3.6.1",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,10 +9,10 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@internationalized/date": "^3.4.0",
13
- "@react-types/calendar": "^3.3.1",
14
- "@react-types/overlays": "^3.8.1",
15
- "@react-types/shared": "^3.19.0"
12
+ "@internationalized/date": "^3.5.0",
13
+ "@react-types/calendar": "^3.4.1",
14
+ "@react-types/overlays": "^3.8.3",
15
+ "@react-types/shared": "^3.21.0"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"
@@ -20,5 +20,5 @@
20
20
  "peerDependencies": {
21
21
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
22
22
  },
23
- "gitHead": "d4dfe4bb842a914f10045ee63fc6b92f034c5b30"
23
+ "gitHead": "4122e44d1991c90507d630d35ed297f89db435d3"
24
24
  }
package/src/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import {
19
19
  InputDOMProps,
20
20
  LabelableProps,
21
21
  RangeValue,
22
+ SpectrumFieldValidation,
22
23
  SpectrumLabelableProps,
23
24
  StyleProps,
24
25
  Validation,
@@ -97,7 +98,7 @@ export interface AriaDateRangePickerProps<T extends DateValue> extends AriaDateP
97
98
  endName?: string
98
99
  }
99
100
 
100
- interface SpectrumDateFieldBase extends SpectrumLabelableProps, HelpTextProps, StyleProps {
101
+ interface SpectrumDateFieldBase extends SpectrumLabelableProps, HelpTextProps, SpectrumFieldValidation, StyleProps {
101
102
  /**
102
103
  * Whether the date picker should be displayed with a quiet style.
103
104
  * @default false
@@ -123,9 +124,9 @@ interface SpectrumDatePickerBase extends SpectrumDateFieldBase, SpectrumLabelabl
123
124
  shouldFlip?: boolean
124
125
  }
125
126
 
126
- export interface SpectrumDatePickerProps<T extends DateValue> extends AriaDatePickerProps<T>, SpectrumDatePickerBase {}
127
- export interface SpectrumDateRangePickerProps<T extends DateValue> extends AriaDateRangePickerProps<T>, SpectrumDatePickerBase {}
128
- export interface SpectrumDateFieldProps<T extends DateValue> extends AriaDateFieldProps<T>, SpectrumDateFieldBase {}
127
+ export interface SpectrumDatePickerProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, 'isInvalid' | 'validationState'>, SpectrumDatePickerBase {}
128
+ export interface SpectrumDateRangePickerProps<T extends DateValue> extends Omit<AriaDateRangePickerProps<T>, 'isInvalid' | 'validationState'>, SpectrumDatePickerBase {}
129
+ export interface SpectrumDateFieldProps<T extends DateValue> extends Omit<AriaDateFieldProps<T>, 'isInvalid' | 'validationState'>, SpectrumDateFieldBase {}
129
130
 
130
131
  export type TimeValue = Time | CalendarDateTime | ZonedDateTime;
131
132
  type MappedTimeValue<T> =
@@ -162,7 +163,7 @@ export interface TimePickerProps<T extends TimeValue> extends InputBase, Validat
162
163
 
163
164
  export interface AriaTimeFieldProps<T extends TimeValue> extends TimePickerProps<T>, AriaLabelingProps, DOMProps, InputDOMProps {}
164
165
 
165
- export interface SpectrumTimeFieldProps<T extends TimeValue> extends AriaTimeFieldProps<T>, SpectrumLabelableProps, StyleProps, InputDOMProps {
166
+ export interface SpectrumTimeFieldProps<T extends TimeValue> extends Omit<AriaTimeFieldProps<T>, 'isInvalid' | 'validationState'>, SpectrumFieldValidation, SpectrumLabelableProps, StyleProps, InputDOMProps {
166
167
  /**
167
168
  * Whether the time field should be displayed with a quiet style.
168
169
  * @default false