@react-types/autocomplete 3.0.0-nightly.3200 → 3.0.0-nightly.3207
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 +5 -5
- package/src/index.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/autocomplete",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.3207+cc158b410",
|
|
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.3.1-nightly.
|
|
13
|
-
"@react-types/searchfield": "3.0.0-nightly.
|
|
14
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/combobox": "3.3.1-nightly.3207+cc158b410",
|
|
13
|
+
"@react-types/searchfield": "3.0.0-nightly.1508+cc158b410",
|
|
14
|
+
"@react-types/shared": "3.0.0-nightly.1508+cc158b410"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "cc158b410d11894fb2f14cc2732165dd91786036"
|
|
23
23
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {AsyncLoadable, CollectionBase, LoadingState, SpectrumLabelableProps, StyleProps} from '@react-types/shared';
|
|
13
|
+
import {AsyncLoadable, CollectionBase, LoadingState, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps, TextInputBase} from '@react-types/shared';
|
|
14
14
|
import {Key} from 'react';
|
|
15
15
|
import {MenuTriggerAction} from '@react-types/combobox';
|
|
16
16
|
import {SearchFieldProps} from '@react-types/searchfield';
|
|
17
|
-
export interface SearchAutocompleteProps<T> extends CollectionBase<T>, Omit<SearchFieldProps, 'onSubmit'
|
|
17
|
+
export interface SearchAutocompleteProps<T> extends CollectionBase<T>, Omit<SearchFieldProps, 'onSubmit'>, TextInputBase {
|
|
18
18
|
/** The list of SearchAutocomplete items (uncontrolled). */
|
|
19
19
|
defaultItems?: Iterable<T>,
|
|
20
20
|
/** The list of SearchAutocomplete items (controlled). */
|
|
@@ -35,7 +35,7 @@ export interface SearchAutocompleteProps<T> extends CollectionBase<T>, Omit<Sear
|
|
|
35
35
|
onSubmit?: (value: string, key: Key | null) => void
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export interface SpectrumSearchAutocompleteProps<T> extends Omit<SearchAutocompleteProps<T>, 'menuTrigger'>, SpectrumLabelableProps, StyleProps, Omit<AsyncLoadable, 'isLoading'> {
|
|
38
|
+
export interface SpectrumSearchAutocompleteProps<T> extends SpectrumTextInputBase, Omit<SearchAutocompleteProps<T>, 'menuTrigger'>, SpectrumLabelableProps, StyleProps, Omit<AsyncLoadable, 'isLoading'> {
|
|
39
39
|
/**
|
|
40
40
|
* The interaction required to display the SearchAutocomplete menu. Note that this prop has no effect on the mobile SearchAutocomplete experience.
|
|
41
41
|
* @default 'input'
|