@harpercollins/harpercollins-design-system 1.8.45 → 1.8.47

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,6 +1,6 @@
1
1
  import { Meta, StoryObj } from "@storybook/react";
2
- import Autocomplete from "./Autocomplete";
3
- declare const meta: Meta<typeof Autocomplete>;
2
+ import CustomAutocomplete from "./Autocomplete";
3
+ declare const meta: Meta<typeof CustomAutocomplete>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof Autocomplete>;
5
+ type Story = StoryObj<typeof CustomAutocomplete>;
6
6
  export declare const Default: Story;
@@ -1,11 +1,4 @@
1
1
  import { ReactElement } from "react";
2
- import { AutocompleteProps } from "@mui/material";
3
- import { Option } from "../types";
4
- export interface AutocompleteSelectMultipleProps extends AutocompleteProps<Option, true, false, false> {
5
- defaultValue: Option[] | undefined;
6
- inline?: boolean;
7
- changeNotification?: () => void;
8
- label: string;
9
- }
2
+ import { AutocompleteSelectMultipleProps } from "../types";
10
3
  declare function AutocompleteSelectMultiple({ changeNotification, defaultValue, id, inline, label, onChange: originalOnChange, options, ...props }: AutocompleteSelectMultipleProps): ReactElement;
11
4
  export default AutocompleteSelectMultiple;
@@ -1,5 +1,15 @@
1
+ import { SyntheticEvent } from "react";
1
2
  export interface Option {
2
3
  label: string;
3
4
  value: string;
4
5
  id?: number | string;
5
6
  }
7
+ export interface AutocompleteSelectMultipleProps {
8
+ defaultValue: Option[] | undefined;
9
+ inline?: boolean;
10
+ changeNotification?: () => void;
11
+ label: string;
12
+ id: string;
13
+ options: Option[];
14
+ onChange: (event: SyntheticEvent<Element, Event>, value: Option[], reason: string) => void;
15
+ }