@harpercollins/harpercollins-design-system 1.8.80 → 1.8.82

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,7 +1,6 @@
1
- interface TooltipProps {
2
- content: string;
3
- placement?: "top" | "bottom" | "left" | "right";
1
+ import { TooltipProps as JoyTooltipProps } from "@mui/joy";
2
+ export interface TooltipProps extends JoyTooltipProps {
3
+ maxWidth?: string;
4
4
  }
5
- export declare const StyledTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
- declare function Tooltip({ children, content, placement, }: React.PropsWithChildren<TooltipProps>): import("react/jsx-runtime").JSX.Element;
5
+ declare function Tooltip({ children, maxWidth, ...props }: React.PropsWithChildren<TooltipProps>): import("react/jsx-runtime").JSX.Element;
7
6
  export default Tooltip;
@@ -7,6 +7,5 @@ export declare const Top: Story;
7
7
  export declare const Bottom: Story;
8
8
  export declare const Left: Story;
9
9
  export declare const Right: Story;
10
- export declare const TopTooltipWithLongContent: Story;
11
- export declare const LeftTooltipWithLongContent: Story;
12
- export declare const RightTooltipWithLongContent: Story;
10
+ export declare const WithLongTitleContent: Story;
11
+ export declare const WithHTMLContent: Story;
@@ -9,6 +9,7 @@ export interface AutocompleteSelectMultipleProps<T extends BaseOption> extends M
9
9
  option: T;
10
10
  }>;
11
11
  placeholder?: string;
12
+ helpText?: string | ReactElement;
12
13
  }
13
- declare function AutocompleteSelectMultiple<T extends BaseOption>({ defaultValue, id, name, inline, onChange, SelectedOption, ...props }: AutocompleteSelectMultipleProps<T>): ReactElement;
14
+ declare function AutocompleteSelectMultiple<T extends BaseOption>({ defaultValue, id, name, inline, onChange, SelectedOption, helpText, ...props }: AutocompleteSelectMultipleProps<T>): ReactElement;
14
15
  export default AutocompleteSelectMultiple;