@harpercollins/harpercollins-design-system 1.14.1 → 1.14.2

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,11 +1,12 @@
1
1
  import { ReactElement } from "react";
2
+ type MessageLevel = "info" | "success" | "warning" | "error";
2
3
  export interface TextMessage {
3
- level: "success" | "warning" | "error";
4
+ level: MessageLevel;
4
5
  text: string;
5
6
  noFade?: boolean;
6
7
  }
7
8
  export interface HTMLMessage {
8
- level: "success" | "warning" | "error";
9
+ level: MessageLevel;
9
10
  html: string;
10
11
  noFade?: boolean;
11
12
  }
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof ToastMessages>;
4
4
  export default meta;
5
5
  export declare function Success(): import("react/jsx-runtime").JSX.Element;
6
6
  export declare function Warning(): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Info(): import("react/jsx-runtime").JSX.Element;
7
8
  export declare function Error(): import("react/jsx-runtime").JSX.Element;
8
9
  export declare function HTML(): import("react/jsx-runtime").JSX.Element;
9
10
  export declare function Multiple(): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,3 @@
1
- declare const MenuHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@mui/joy").ListItemSlotsAndSlotProps & {
2
- color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ListItemPropsColorOverrides>;
3
- children?: React.ReactNode;
4
- startAction?: React.ReactNode;
5
- endAction?: React.ReactNode;
6
- nested?: boolean;
7
- sticky?: boolean;
8
- variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ListItemPropsVariantOverrides>;
9
- sx?: import("@mui/joy/styles/types").SxProps;
10
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
11
- ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
12
- }, "children" | "color" | "sticky" | "sx" | "variant" | keyof import("@mui/joy").ListItemSlotsAndSlotProps | "startAction" | "endAction" | "nested">, never>> & string & Omit<import("@mui/types").OverridableComponent<import("@mui/joy").ListItemTypeMap<{}, "li">>, keyof import("react").Component<any, {}, any>>;
1
+ import { ListItem } from "@mui/joy";
2
+ declare const MenuHeading: typeof ListItem;
13
3
  export default MenuHeading;