@harpercollins/harpercollins-design-system 1.8.50 → 1.8.52
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.
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { AutocompleteProps as MuiAutocompleteProps } from "@mui/joy";
|
|
3
3
|
import { BaseOption } from "./types";
|
|
4
|
-
export interface AutocompleteProps<T extends BaseOption> extends MuiAutocompleteProps<T,
|
|
4
|
+
export interface AutocompleteProps<T extends BaseOption> extends MuiAutocompleteProps<T, boolean, boolean, boolean> {
|
|
5
5
|
id: string;
|
|
6
6
|
options: T[];
|
|
7
|
-
|
|
7
|
+
defaultValue?: T;
|
|
8
|
+
label?: string;
|
|
8
9
|
}
|
|
9
10
|
declare function AutoComplete<T extends BaseOption>({ id, options, onChange, name, ...props }: AutocompleteProps<T>): ReactElement;
|
|
10
11
|
export default AutoComplete;
|
package/dist/index.d.ts
CHANGED
|
@@ -212,10 +212,11 @@ interface BaseOption {
|
|
|
212
212
|
value: number | string;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
interface AutocompleteProps<T extends BaseOption> extends AutocompleteProps$1<T,
|
|
215
|
+
interface AutocompleteProps<T extends BaseOption> extends AutocompleteProps$1<T, boolean, boolean, boolean> {
|
|
216
216
|
id: string;
|
|
217
217
|
options: T[];
|
|
218
|
-
|
|
218
|
+
defaultValue?: T;
|
|
219
|
+
label?: string;
|
|
219
220
|
}
|
|
220
221
|
declare function AutoComplete<T extends BaseOption>({ id, options, onChange, name, ...props }: AutocompleteProps<T>): ReactElement;
|
|
221
222
|
|