@react-types/combobox 3.9.1-nightly.4308 → 3.9.1-nightly.4318
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 +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/combobox",
|
|
3
|
-
"version": "3.9.1-nightly.
|
|
3
|
+
"version": "3.9.1-nightly.4318+5e4dfb0c4",
|
|
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.2607+5e4dfb0c4"
|
|
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": "5e4dfb0c403a3698e6e3da6eae89c7e65ed0b520"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
AriaLabelingProps,
|
|
15
15
|
AsyncLoadable,
|
|
16
16
|
CollectionBase,
|
|
17
|
+
DimensionValue,
|
|
17
18
|
DOMProps,
|
|
18
19
|
FocusableProps,
|
|
19
20
|
HelpTextProps,
|
|
@@ -80,6 +81,10 @@ export interface SpectrumComboBoxProps<T> extends SpectrumTextInputBase, Omit<Ar
|
|
|
80
81
|
menuTrigger?: MenuTriggerAction,
|
|
81
82
|
/** Whether the ComboBox should be displayed with a quiet style. */
|
|
82
83
|
isQuiet?: boolean,
|
|
84
|
+
/** Alignment of the menu relative to the input target.
|
|
85
|
+
* @default 'end'
|
|
86
|
+
*/
|
|
87
|
+
align?: 'start' | 'end',
|
|
83
88
|
/**
|
|
84
89
|
* Direction the menu will render relative to the ComboBox.
|
|
85
90
|
* @default 'bottom'
|
|
@@ -92,6 +97,8 @@ export interface SpectrumComboBoxProps<T> extends SpectrumTextInputBase, Omit<Ar
|
|
|
92
97
|
* @default true
|
|
93
98
|
*/
|
|
94
99
|
shouldFlip?: boolean,
|
|
100
|
+
/** Width of the menu. By default, matches width of the trigger. */
|
|
101
|
+
menuWidth?: DimensionValue,
|
|
95
102
|
/**
|
|
96
103
|
* Whether the text or key of the selected item is submitted as part of an HTML form.
|
|
97
104
|
* When `allowsCustomValue` is `true`, this option does not apply and the text is always submitted.
|