@react-types/combobox 3.6.3-nightly.4036 → 3.6.3-nightly.4039
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 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/combobox",
|
|
3
|
-
"version": "3.6.3-nightly.
|
|
3
|
+
"version": "3.6.3-nightly.4039+07f673acb",
|
|
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.2334+07f673acb"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "07f673acb2d68144156df3aa0db6e91810b12c67"
|
|
21
21
|
}
|
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, FocusableProps, HelpTextProps, InputBase, LabelableProps, LoadingState, SingleSelection, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps, TextInputBase, Validation} from '@react-types/shared';
|
|
13
|
+
import {AriaLabelingProps, AsyncLoadable, CollectionBase, DOMProps, FocusableProps, HelpTextProps, InputBase, InputDOMProps, LabelableProps, LoadingState, SingleSelection, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps, TextInputBase, Validation} from '@react-types/shared';
|
|
14
14
|
|
|
15
15
|
export type MenuTriggerAction = 'focus' | 'input' | 'manual';
|
|
16
16
|
|
|
@@ -38,14 +38,10 @@ export interface ComboBoxProps<T> extends CollectionBase<T>, Omit<SingleSelectio
|
|
|
38
38
|
* The interaction required to display the ComboBox menu.
|
|
39
39
|
* @default 'input'
|
|
40
40
|
*/
|
|
41
|
-
menuTrigger?: MenuTriggerAction
|
|
42
|
-
/**
|
|
43
|
-
* The name of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
|
|
44
|
-
*/
|
|
45
|
-
name?: string
|
|
41
|
+
menuTrigger?: MenuTriggerAction
|
|
46
42
|
}
|
|
47
43
|
|
|
48
|
-
export interface AriaComboBoxProps<T> extends ComboBoxProps<T>, DOMProps, AriaLabelingProps {
|
|
44
|
+
export interface AriaComboBoxProps<T> extends ComboBoxProps<T>, DOMProps, InputDOMProps, AriaLabelingProps {
|
|
49
45
|
/** Whether keyboard navigation is circular. */
|
|
50
46
|
shouldFocusWrap?: boolean
|
|
51
47
|
}
|
|
@@ -69,5 +65,11 @@ export interface SpectrumComboBoxProps<T> extends SpectrumTextInputBase, Omit<Ar
|
|
|
69
65
|
* Whether the menu should automatically flip direction when space is limited.
|
|
70
66
|
* @default true
|
|
71
67
|
*/
|
|
72
|
-
shouldFlip?: boolean
|
|
68
|
+
shouldFlip?: boolean,
|
|
69
|
+
/**
|
|
70
|
+
* Whether the text or key of the selected item is submitted as part of an HTML form.
|
|
71
|
+
* When `allowsCustomValue` is `true`, this option does not apply and the text is always submitted.
|
|
72
|
+
* @default 'text'
|
|
73
|
+
*/
|
|
74
|
+
formValue?: 'text' | 'key'
|
|
73
75
|
}
|