@react-types/autocomplete 3.0.0-nightly.4094 → 3.0.0-nightly.4096

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 +5 -5
  2. package/src/index.d.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/autocomplete",
3
- "version": "3.0.0-nightly.4094+8d367e025",
3
+ "version": "3.0.0-nightly.4096+e02d20562",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,9 +9,9 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/combobox": "3.7.1-nightly.4094+8d367e025",
13
- "@react-types/searchfield": "3.0.0-nightly.2388+8d367e025",
14
- "@react-types/shared": "3.0.0-nightly.2388+8d367e025"
12
+ "@react-types/combobox": "3.7.1-nightly.4096+e02d20562",
13
+ "@react-types/searchfield": "3.0.0-nightly.2390+e02d20562",
14
+ "@react-types/shared": "3.0.0-nightly.2390+e02d20562"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -19,5 +19,5 @@
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
- "gitHead": "8d367e0253073dcb7700896957e6db073517adab"
22
+ "gitHead": "e02d20562f4f7f24dd31f50ab1a9d93e58d52a05"
23
23
  }
package/src/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {AriaLabelingProps, AsyncLoadable, CollectionBase, DOMProps, LoadingState, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps} from '@react-types/shared';
13
+ import {AriaLabelingProps, AsyncLoadable, CollectionBase, DOMProps, LoadingState, SpectrumFieldValidation, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps} from '@react-types/shared';
14
14
  import {Key, ReactElement} from 'react';
15
15
  import {MenuTriggerAction} from '@react-types/combobox';
16
16
  import {SearchFieldProps} from '@react-types/searchfield';
@@ -34,10 +34,10 @@ export interface SearchAutocompleteProps<T> extends CollectionBase<T>, Omit<Sear
34
34
  */
35
35
  menuTrigger?: MenuTriggerAction,
36
36
  /** Handler that is called when the SearchAutocomplete is submitted.
37
- *
37
+ *
38
38
  * A `value` will be passed if the submission is a custom value (e.g. a user types then presses enter).
39
39
  * If the input is a selected item, `value` will be null.
40
- *
40
+ *
41
41
  * A `key` will be passed if the submission is a selected item (e.g. a user clicks or presses enter on an option).
42
42
  * If the input is a custom value, `key` will be null.
43
43
  */
@@ -46,7 +46,7 @@ export interface SearchAutocompleteProps<T> extends CollectionBase<T>, Omit<Sear
46
46
 
47
47
  export interface AriaSearchAutocompleteProps<T> extends SearchAutocompleteProps<T>, DOMProps, AriaLabelingProps {}
48
48
 
49
- export interface SpectrumSearchAutocompleteProps<T> extends SpectrumTextInputBase, Omit<AriaSearchAutocompleteProps<T>, 'menuTrigger'>, SpectrumLabelableProps, StyleProps, Omit<AsyncLoadable, 'isLoading'> {
49
+ export interface SpectrumSearchAutocompleteProps<T> extends SpectrumTextInputBase, Omit<AriaSearchAutocompleteProps<T>, 'menuTrigger' | 'isInvalid' | 'validationState'>, SpectrumFieldValidation, SpectrumLabelableProps, StyleProps, Omit<AsyncLoadable, 'isLoading'> {
50
50
  /**
51
51
  * The interaction required to display the SearchAutocomplete menu. Note that this prop has no effect on the mobile SearchAutocomplete experience.
52
52
  * @default 'input'