@agregio-solutions/design-system 1.88.0 → 1.89.0
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/design-system.cjs +174 -150
- package/dist/design-system.js +4050 -4028
- package/dist/packages/components/ChartTooltip/ChartTooltip.d.ts +4 -4
- package/dist/packages/components/Timeline/components/BlockLineContainer/BlockLineContainer.styled.d.ts +3 -0
- package/dist/packages/components/Timeline/utils/Timeline.types.d.ts +6 -1
- package/package.json +1 -1
|
@@ -28,11 +28,11 @@ export interface Props {
|
|
|
28
28
|
/**
|
|
29
29
|
* Main title displayed at the top of the tooltip
|
|
30
30
|
*/
|
|
31
|
-
title
|
|
31
|
+
title?: string;
|
|
32
32
|
/**
|
|
33
33
|
* List of label-value pairs with an associated bullet color
|
|
34
34
|
*/
|
|
35
|
-
items
|
|
35
|
+
items?: ChartTooltipItem[];
|
|
36
36
|
/**
|
|
37
37
|
* Additional description of the tooltip, placed under the items
|
|
38
38
|
*/
|
|
@@ -42,9 +42,9 @@ export interface Props {
|
|
|
42
42
|
*/
|
|
43
43
|
bodyTitle?: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Content of middle section.
|
|
46
46
|
*/
|
|
47
|
-
bodyContent?:
|
|
47
|
+
bodyContent?: React.ReactNode;
|
|
48
48
|
/**
|
|
49
49
|
* Custom content for the footer area. Must be read-only (i.e. no interactivity like buttons, links, etc.)
|
|
50
50
|
*/
|
|
@@ -18,3 +18,6 @@ export declare const LineNow: import('@emotion/styled').StyledComponent<{
|
|
|
18
18
|
theme?: import('@emotion/react').Theme;
|
|
19
19
|
as?: React.ElementType;
|
|
20
20
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
+
export declare const CustomHoverTooltip: import('@emotion/styled').StyledComponent<import('react-aria-components').TooltipProps & import('react').RefAttributes<HTMLDivElement> & {
|
|
22
|
+
theme?: import('@emotion/react').Theme;
|
|
23
|
+
}, {}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
type Color = "orange" | "brown" | "azure" | "ocean" | "purple" | "pink" | "negative" | "positive" | "neutral";
|
|
3
3
|
type DatavizColor = `var(--color-content-dataviz-${Color}-${1 | 2 | 3 | 4})`;
|
|
4
4
|
export type Block = {
|
|
@@ -24,6 +24,11 @@ export type Block = {
|
|
|
24
24
|
* Also used to create the data-testid for the block for testing purposes.
|
|
25
25
|
*/
|
|
26
26
|
hoverText: string;
|
|
27
|
+
/**
|
|
28
|
+
* Custom content to display when hovering over the block.
|
|
29
|
+
* When provided, replaces the default tooltip with a rich content.
|
|
30
|
+
*/
|
|
31
|
+
hoverContent?: ReactNode;
|
|
27
32
|
/**
|
|
28
33
|
* The click handler for the block.
|
|
29
34
|
*/
|
package/package.json
CHANGED