@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, true, false, false> {
4
+ export interface AutocompleteProps<T extends BaseOption> extends MuiAutocompleteProps<T, boolean, boolean, boolean> {
5
5
  id: string;
6
6
  options: T[];
7
- label: string;
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, true, false, false> {
215
+ interface AutocompleteProps<T extends BaseOption> extends AutocompleteProps$1<T, boolean, boolean, boolean> {
216
216
  id: string;
217
217
  options: T[];
218
- label: string;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.8.50",
3
+ "version": "1.8.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"