@harpercollins/harpercollins-design-system 1.8.57 → 1.8.59

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.
@@ -3,7 +3,6 @@ import { AutocompleteProps as MuiAutocompleteProps } from "@mui/joy";
3
3
  import { BaseOption } from "../types";
4
4
  export interface AutocompleteSelectMultipleProps<T extends BaseOption> extends MuiAutocompleteProps<T, boolean, boolean, boolean> {
5
5
  id: string;
6
- options: T[];
7
6
  inline?: boolean;
8
7
  defaultValue?: T[];
9
8
  SelectedOption?: React.JSXElementConstructor<{
@@ -11,5 +10,5 @@ export interface AutocompleteSelectMultipleProps<T extends BaseOption> extends M
11
10
  }>;
12
11
  placeholder?: string;
13
12
  }
14
- declare function AutocompleteSelectMultiple<T extends BaseOption>({ defaultValue, id, name, inline, onChange, options, filterOptions, SelectedOption, ...props }: AutocompleteSelectMultipleProps<T>): ReactElement;
13
+ declare function AutocompleteSelectMultiple<T extends BaseOption>({ defaultValue, id, name, inline, onChange, SelectedOption, ...props }: AutocompleteSelectMultipleProps<T>): ReactElement;
15
14
  export default AutocompleteSelectMultiple;
@@ -1,7 +1,11 @@
1
1
  /**
2
- * Custom hook to fetch data from an API.
2
+ * Fetch data from a URL
3
+ * @param url - The URL to fetch data from
4
+ * @param options - The fetch options
5
+ * @param debounce - The debounce time in milliseconds
6
+ * @returns The data, loading state, and error
3
7
  */
4
- export declare const useFetch: <T = unknown>(url: string, options?: RequestInit) => {
8
+ export declare const useFetch: <T = unknown>(url: string, options?: RequestInit, debounce?: number) => {
5
9
  data: T | null;
6
10
  loading: boolean;
7
11
  error: Error | null;