@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.
@@ -28,11 +28,11 @@ export interface Props {
28
28
  /**
29
29
  * Main title displayed at the top of the tooltip
30
30
  */
31
- title: string;
31
+ title?: string;
32
32
  /**
33
33
  * List of label-value pairs with an associated bullet color
34
34
  */
35
- items: ChartTooltipItem[];
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
- * Text content of middle section.
45
+ * Content of middle section.
46
46
  */
47
- bodyContent?: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agregio-solutions/design-system",
3
- "version": "1.88.0",
3
+ "version": "1.89.0",
4
4
  "description": "React Component library and Storybook that is part of the Design System for Agregio Solutions",
5
5
  "type": "module",
6
6
  "module": "dist/design-system.js",