@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;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import react__default, { ReactElement, PropsWithChildren } from 'react';
4
4
  import * as _mui_joy from '@mui/joy';
5
- import { AutocompleteProps as AutocompleteProps$1, ChipProps, DropdownProps, GridProps, ListProps, MenuProps } from '@mui/joy';
5
+ import { AutocompleteProps as AutocompleteProps$1, ChipProps, DropdownProps, GridProps, ListProps, MenuProps, TooltipProps as TooltipProps$1 } from '@mui/joy';
6
6
  export { Box, IconButton, ListItem, ListItemButton, ListItemDecorator, MenuButton, TextField } from '@mui/joy';
7
7
  import * as styled_components_dist_types from 'styled-components/dist/types';
8
8
  import * as styled_components from 'styled-components';
@@ -57,8 +57,9 @@ interface AutocompleteSelectMultipleProps<T extends BaseOption> extends Autocomp
57
57
  option: T;
58
58
  }>;
59
59
  placeholder?: string;
60
+ helpText?: string | ReactElement;
60
61
  }
61
- declare function AutocompleteSelectMultiple<T extends BaseOption>({ defaultValue, id, name, inline, onChange, SelectedOption, ...props }: AutocompleteSelectMultipleProps<T>): ReactElement;
62
+ declare function AutocompleteSelectMultiple<T extends BaseOption>({ defaultValue, id, name, inline, onChange, SelectedOption, helpText, ...props }: AutocompleteSelectMultipleProps<T>): ReactElement;
62
63
 
63
64
  interface BadgeInternalProps extends react__default.HTMLAttributes<HTMLElement> {
64
65
  size?: "small" | "medium" | "xsmall" | "xxsmall";
@@ -287,11 +288,10 @@ interface ToastMessagesProps {
287
288
  }
288
289
  declare function ToastMessages({ messages }: ToastMessagesProps): ReactElement;
289
290
 
290
- interface TooltipProps {
291
- content: string;
292
- placement?: "top" | "bottom" | "left" | "right";
291
+ interface TooltipProps extends TooltipProps$1 {
292
+ maxWidth?: string;
293
293
  }
294
- declare function Tooltip({ children, content, placement, }: React.PropsWithChildren<TooltipProps>): react_jsx_runtime.JSX.Element;
294
+ declare function Tooltip({ children, maxWidth, ...props }: React.PropsWithChildren<TooltipProps>): react_jsx_runtime.JSX.Element;
295
295
 
296
296
  /**
297
297
  * A hook to toggle a boolean value.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.8.80",
3
+ "version": "1.8.82",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"
@@ -55,7 +55,6 @@
55
55
  "react": "^18.2.0",
56
56
  "react-datepicker": "^6.9.0",
57
57
  "react-dom": "^18.2.0",
58
- "react-popper": "^2.3.0",
59
58
  "rimraf": "^5.0.5",
60
59
  "rollup": "^4.13.2",
61
60
  "rollup-plugin-dts": "^6.1.0",