@react-types/combobox 3.2.1-nightly.3011 → 3.2.1-nightly.3022
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 +3 -3
- package/src/index.d.ts +10 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/combobox",
|
|
3
|
-
"version": "3.2.1-nightly.
|
|
3
|
+
"version": "3.2.1-nightly.3022+4312f197d",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/shared": "3.0.0-nightly.1334+4312f197d"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "4312f197d683e75af962cf29fe7152c0377652b9"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import {AsyncLoadable, CollectionBase, DOMProps, FocusableProps, HelpTextProps,
|
|
|
14
14
|
|
|
15
15
|
export type MenuTriggerAction = 'focus' | 'input' | 'manual';
|
|
16
16
|
|
|
17
|
-
export interface ComboBoxProps<T> extends CollectionBase<T>, SingleSelection, InputBase, TextInputBase,
|
|
17
|
+
export interface ComboBoxProps<T> extends CollectionBase<T>, SingleSelection, InputBase, TextInputBase, Validation, FocusableProps, LabelableProps, HelpTextProps {
|
|
18
18
|
/** The list of ComboBox items (uncontrolled). */
|
|
19
19
|
defaultItems?: Iterable<T>,
|
|
20
20
|
/** The list of ComboBox items (controlled). */
|
|
@@ -34,16 +34,19 @@ export interface ComboBoxProps<T> extends CollectionBase<T>, SingleSelection, In
|
|
|
34
34
|
// * @default 'suggest'
|
|
35
35
|
// */
|
|
36
36
|
// completionMode?: 'suggest' | 'complete',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
menuTrigger?: MenuTriggerAction
|
|
37
|
+
/**
|
|
38
|
+
* The interaction required to display the ComboBox menu.
|
|
39
|
+
* @default 'input'
|
|
40
|
+
*/
|
|
41
|
+
menuTrigger?: MenuTriggerAction
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface AriaComboBoxProps<T> extends ComboBoxProps<T>, DOMProps {
|
|
42
45
|
/** Whether keyboard navigation is circular. */
|
|
43
46
|
shouldFocusWrap?: boolean
|
|
44
47
|
}
|
|
45
48
|
|
|
46
|
-
export interface SpectrumComboBoxProps<T> extends Omit<
|
|
49
|
+
export interface SpectrumComboBoxProps<T> extends Omit<AriaComboBoxProps<T>, 'menuTrigger'>, SpectrumLabelableProps, StyleProps, Omit<AsyncLoadable, 'isLoading'> {
|
|
47
50
|
/**
|
|
48
51
|
* The interaction required to display the ComboBox menu. Note that this prop has no effect on the mobile ComboBox experience.
|
|
49
52
|
* @default 'input'
|