@react-types/autocomplete 3.0.0-nightly.4308 → 3.0.0-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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/index.d.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/autocomplete",
3
- "version": "3.0.0-nightly.4308+75417bb15",
3
+ "version": "3.0.0-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,9 +9,9 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/combobox": "3.9.1-nightly.4308+75417bb15",
13
- "@react-types/searchfield": "3.0.0-nightly.2597+75417bb15",
14
- "@react-types/shared": "3.0.0-nightly.2597+75417bb15"
12
+ "@react-types/combobox": "3.9.1-nightly.4318+5e4dfb0c4",
13
+ "@react-types/searchfield": "3.0.0-nightly.2607+5e4dfb0c4",
14
+ "@react-types/shared": "3.0.0-nightly.2607+5e4dfb0c4"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -19,5 +19,5 @@
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
- "gitHead": "75417bb15cc7bec44defd2ff71e7d22d56453e85"
22
+ "gitHead": "5e4dfb0c403a3698e6e3da6eae89c7e65ed0b520"
23
23
  }
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, Key, LoadingState, SpectrumFieldValidation, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps} from '@react-types/shared';
13
+ import {AriaLabelingProps, AsyncLoadable, CollectionBase, DimensionValue, DOMProps, Key, LoadingState, SpectrumFieldValidation, SpectrumLabelableProps, SpectrumTextInputBase, StyleProps} from '@react-types/shared';
14
14
  import {AriaSearchFieldProps, SearchFieldProps} from '@react-types/searchfield';
15
15
  import {MenuTriggerAction} from '@react-types/combobox';
16
16
  import {ReactElement} from 'react';
@@ -54,6 +54,10 @@ export interface SpectrumSearchAutocompleteProps<T> extends SpectrumTextInputBas
54
54
  menuTrigger?: MenuTriggerAction,
55
55
  /** Whether the SearchAutocomplete should be displayed with a quiet style. */
56
56
  isQuiet?: boolean,
57
+ /** Alignment of the menu relative to the input target.
58
+ * @default 'start'
59
+ */
60
+ align?: 'start' | 'end',
57
61
  /**
58
62
  * Direction the menu will render relative to the SearchAutocomplete.
59
63
  * @default 'bottom'
@@ -66,6 +70,8 @@ export interface SpectrumSearchAutocompleteProps<T> extends SpectrumTextInputBas
66
70
  * @default true
67
71
  */
68
72
  shouldFlip?: boolean,
73
+ /** Width of the menu. By default, matches width of the trigger. */
74
+ menuWidth?: DimensionValue,
69
75
  onLoadMore?: () => void,
70
76
  /** An icon to display at the start of the input. */
71
77
  icon?: ReactElement | null