@react-types/autocomplete 3.0.0-alpha.10 → 3.0.0-alpha.11

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 +3 -3
  2. package/src/index.d.ts +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/autocomplete",
3
- "version": "3.0.0-alpha.10",
3
+ "version": "3.0.0-alpha.11",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@react-types/combobox": "^3.5.5",
13
- "@react-types/searchfield": "^3.3.5",
13
+ "@react-types/searchfield": "^3.3.6",
14
14
  "@react-types/shared": "^3.16.0"
15
15
  },
16
16
  "peerDependencies": {
@@ -19,5 +19,5 @@
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
- "gitHead": "2954307ddbefe149241685440c81f80ece6b2c83"
22
+ "gitHead": "5480d76bd815e239366f92852c76b6831ad2a4fd"
23
23
  }
package/src/index.d.ts CHANGED
@@ -12,9 +12,8 @@
12
12
 
13
13
  import {AriaSearchFieldProps} from '@react-types/searchfield';
14
14
  import {AsyncLoadable, CollectionBase, LoadingState, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps} from '@react-types/shared';
15
- import {Key} from 'react';
15
+ import {Key, ReactElement} from 'react';
16
16
  import {MenuTriggerAction} from '@react-types/combobox';
17
- import {ReactElement} from 'react';
18
17
 
19
18
  export interface SearchAutocompleteProps<T> extends CollectionBase<T>, Omit<AriaSearchFieldProps, 'onSubmit'> {
20
19
  /** The list of SearchAutocomplete items (uncontrolled). */
@@ -34,9 +33,9 @@ export interface SearchAutocompleteProps<T> extends CollectionBase<T>, Omit<Aria
34
33
  * @default 'input'
35
34
  */
36
35
  menuTrigger?: MenuTriggerAction,
37
- onSubmit?: (value: string, key: Key | null) => void,
36
+ onSubmit?: (value: string | null, key: Key | null) => void,
38
37
  /** An icon to display at the start of the input. */
39
- icon?: ReactElement
38
+ icon?: ReactElement | null
40
39
  }
41
40
 
42
41
  export interface SpectrumSearchAutocompleteProps<T> extends SpectrumTextInputBase, Omit<SearchAutocompleteProps<T>, 'menuTrigger'>, SpectrumLabelableProps, StyleProps, Omit<AsyncLoadable, 'isLoading'> {