@harpercollins/harpercollins-design-system 1.8.78 → 1.8.81
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.
- package/dist/cjs/index.cjs +114 -192
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/data-display/Tooltip/Tooltip.d.ts +4 -5
- package/dist/cjs/types/src/components/data-display/Tooltip/Tooltip.stories.d.ts +2 -3
- package/dist/esm/index.js +122 -200
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/data-display/Tooltip/Tooltip.d.ts +4 -5
- package/dist/esm/types/src/components/data-display/Tooltip/Tooltip.stories.d.ts +2 -3
- package/dist/index.d.ts +4 -5
- package/package.json +1 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { TooltipProps as JoyTooltipProps } from "@mui/joy";
|
|
2
|
+
export interface TooltipProps extends JoyTooltipProps {
|
|
3
|
+
maxWidth?: string;
|
|
4
4
|
}
|
|
5
|
-
|
|
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
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const RightTooltipWithLongContent: Story;
|
|
10
|
+
export declare const WithLongTitleContent: Story;
|
|
11
|
+
export declare const WithHTMLContent: Story;
|
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';
|
|
@@ -287,11 +287,10 @@ interface ToastMessagesProps {
|
|
|
287
287
|
}
|
|
288
288
|
declare function ToastMessages({ messages }: ToastMessagesProps): ReactElement;
|
|
289
289
|
|
|
290
|
-
interface TooltipProps {
|
|
291
|
-
|
|
292
|
-
placement?: "top" | "bottom" | "left" | "right";
|
|
290
|
+
interface TooltipProps extends TooltipProps$1 {
|
|
291
|
+
maxWidth?: string;
|
|
293
292
|
}
|
|
294
|
-
declare function Tooltip({ children,
|
|
293
|
+
declare function Tooltip({ children, maxWidth, ...props }: React.PropsWithChildren<TooltipProps>): react_jsx_runtime.JSX.Element;
|
|
295
294
|
|
|
296
295
|
/**
|
|
297
296
|
* 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.
|
|
3
|
+
"version": "1.8.81",
|
|
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",
|