@@ -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 , DOMProps , Validation , FocusableProps , LabelableProps , HelpTextProps {
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
- * The interaction required to display the ComboBox menu.
39
- * @default 'input'
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 < ComboBoxProps < T > , 'menuTrigger' > , SpectrumLabelableProps , StyleProps , Omit < AsyncLoadable , 'isLoading' > {
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'
0 commit comments