@harpercollins/harpercollins-design-system 1.8.51 → 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.
@@ -4,7 +4,7 @@ import { BaseOption } from "./types";
4
4
  export interface AutocompleteProps<T extends BaseOption> extends MuiAutocompleteProps<T, boolean, boolean, boolean> {
5
5
  id: string;
6
6
  options: T[];
7
- defaultValue?: T[];
7
+ defaultValue?: T;
8
8
  label?: string;
9
9
  }
10
10
  declare function AutoComplete<T extends BaseOption>({ id, options, onChange, name, ...props }: AutocompleteProps<T>): ReactElement;
@@ -4,7 +4,7 @@ import { BaseOption } from "./types";
4
4
  export interface AutocompleteProps<T extends BaseOption> extends MuiAutocompleteProps<T, boolean, boolean, boolean> {
5
5
  id: string;
6
6
  options: T[];
7
- defaultValue?: T[];
7
+ defaultValue?: T;
8
8
  label?: string;
9
9
  }
10
10
  declare function AutoComplete<T extends BaseOption>({ id, options, onChange, name, ...props }: AutocompleteProps<T>): ReactElement;
package/dist/index.d.ts CHANGED
@@ -215,7 +215,7 @@ interface BaseOption {
215
215
  interface AutocompleteProps<T extends BaseOption> extends AutocompleteProps$1<T, boolean, boolean, boolean> {
216
216
  id: string;
217
217
  options: T[];
218
- defaultValue?: T[];
218
+ defaultValue?: T;
219
219
  label?: string;
220
220
  }
221
221
  declare function AutoComplete<T extends BaseOption>({ id, options, onChange, name, ...props }: AutocompleteProps<T>): ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.8.51",
3
+ "version": "1.8.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"