@foris/avocado-not-front 8.0.3 → 8.1.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/avocado-not-front/src/components/chart/chart.constants.d.ts +3 -0
- package/dist/avocado-not-front/src/components/chart/chart.types.d.ts +3 -3
- package/dist/avocado-not-front/src/components/chart/charts/DonutChart.test.d.ts +1 -0
- package/dist/avocado-not-front/src/components/chart/charts/donutChart.util.d.ts +4 -0
- package/dist/avocado-not-front/src/components/chart/charts/donutChart.util.test.d.ts +1 -0
- package/dist/avocado-not-front/src/components/chart/components/Tooltip.d.ts +1 -6
- package/dist/avocado-not-front/src/types/components.type.d.ts +5 -5
- package/dist/avocado-not-front.es.js +1790 -1887
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ChartTheme, ChartType } from './chart.types';
|
|
2
2
|
export declare const CHART_HEIGHT = 400;
|
|
3
|
+
/** Keeps the legacy ring size: outerRadius 120 → 240px. */
|
|
4
|
+
export declare const CHART_DONUT_MAX_DIAMETER = 240;
|
|
5
|
+
export declare const CHART_DONUT_LEGEND_RESERVE = 48;
|
|
3
6
|
export declare const CHART_CATEGORY_WIDTH_PX = 56;
|
|
4
7
|
export declare const CHART_CATEGORY_HEIGHT_PX = 28;
|
|
5
8
|
export declare const CHART_Y_AXIS_MIN_WIDTH_PX = 100;
|
|
@@ -55,11 +55,11 @@ export interface ChartConfig {
|
|
|
55
55
|
yAxisWidth?: number;
|
|
56
56
|
/** Y-axis definitions for dual-axis composed charts. */
|
|
57
57
|
yAxes?: ChartYAxisConfig[];
|
|
58
|
-
/**
|
|
58
|
+
/** @deprecated Ignored for `donut`: the ring sizes itself (max 240 px). */
|
|
59
59
|
innerRadius?: number | string;
|
|
60
|
-
/**
|
|
60
|
+
/** @deprecated Ignored for `donut`: the ring sizes itself (max 240 px). */
|
|
61
61
|
outerRadius?: number;
|
|
62
|
-
/** Hover
|
|
62
|
+
/** Hover shows a callout and the slice label in the center (`donut` only). `false` shows the Chart tooltip instead. Default `true`. */
|
|
63
63
|
activeShape?: boolean;
|
|
64
64
|
/** Initial highlighted slice index (`donut` only). */
|
|
65
65
|
defaultIndex?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DonutProps, DonutSegment } from '../../../../../avocado-suite';
|
|
2
|
+
import type { ChartConfig } from '../chart.types';
|
|
3
|
+
export declare const mapDonutSegments: (data: ChartConfig['data'], xKey: string, valueKey?: string) => DonutSegment[];
|
|
4
|
+
export declare const mapDonutActiveShape: (activeShape: boolean) => Pick<DonutProps, 'interactive' | 'showCallout' | 'centerMode' | 'showCenter'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,11 +4,6 @@ interface TooltipProps {
|
|
|
4
4
|
tooltipCoverage?: TooltipCoverageConfig;
|
|
5
5
|
/** Initial highlighted item index before user interaction. */
|
|
6
6
|
defaultIndex?: number;
|
|
7
|
-
/**
|
|
8
|
-
* Keep Tooltip mounted for slice activation but render no floating box.
|
|
9
|
-
* Use with donut `activeShape` so hover drives the active slice renderer.
|
|
10
|
-
*/
|
|
11
|
-
hideContent?: boolean;
|
|
12
7
|
}
|
|
13
|
-
export declare const Tooltip: ({ tooltipKey, tooltipCoverage, defaultIndex,
|
|
8
|
+
export declare const Tooltip: ({ tooltipKey, tooltipCoverage, defaultIndex, }?: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
9
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccordionProps, ButtonProps, CardAccordionProps, CardNotificationProps, CheckboxProps, ContextualNavigationItem, DataCardPaletteIndex, DataCardV2HeaderStyle, DataCardV2Status, DividerProps, DrawerProps, DropzoneUploadStatus, FileUploadProps, HeadingProps, HeaderNavigationVisual, LinkProps, ModalProps, PillProps, PreviewerMarkdownProps, RoundButtonProps, SelectProps, SwitchProps, TableColumn, TableProps, TabsProps, TextareaProps, TextFieldProps, TextProps } from '../../../avocado-suite';
|
|
1
|
+
import type { AccordionProps, ButtonProps, CardAccordionProps, CardNotificationProps, CheckboxProps, ContextualNavigationItem, DataCardPaletteIndex, DataCardV2HeaderStyle, DataCardV2Status, DividerProps, DrawerProps, DropzoneUploadStatus, FileUploadProps, HeadingProps, HeaderNavigationBackground, HeaderNavigationVisual, LinkProps, ModalProps, PillProps, PreviewerMarkdownProps, RoundButtonProps, SelectProps, SwitchProps, TableColumn, TableProps, TabsProps, TextareaProps, TextFieldProps, TextProps } from '../../../avocado-suite';
|
|
2
2
|
import type { AiAgentTheme, ChatPanelTranslations, SuggestionType, SupportedLocale } from '../../../ai-agent';
|
|
3
3
|
import type { TooltipCoverageConfig } from '../components/chart/chart.types';
|
|
4
4
|
import type { ChartSeriesConfig, ChartYAxisConfig } from '../components/chart/chart.types';
|
|
@@ -38,7 +38,7 @@ export interface HeaderNavigationNotFrontProps extends NotFrontBaseProps {
|
|
|
38
38
|
component: 'headerNavigation';
|
|
39
39
|
title: string;
|
|
40
40
|
description?: string;
|
|
41
|
-
background?:
|
|
41
|
+
background?: HeaderNavigationBackground;
|
|
42
42
|
leadingVisual?: HeaderNavigationVisual;
|
|
43
43
|
pattern?: boolean | string;
|
|
44
44
|
menuLabel?: string;
|
|
@@ -93,11 +93,11 @@ export interface ChartNotFrontProps extends NotFrontBaseProps {
|
|
|
93
93
|
yAxisWidth?: number;
|
|
94
94
|
/** Y-axis definitions for dual-axis `composed` charts. */
|
|
95
95
|
yAxes?: ChartYAxisConfig[];
|
|
96
|
-
/**
|
|
96
|
+
/** @deprecated Ignored for `donut`: the ring sizes itself (max 240 px). */
|
|
97
97
|
innerRadius?: number | string;
|
|
98
|
-
/**
|
|
98
|
+
/** @deprecated Ignored for `donut`: the ring sizes itself (max 240 px). */
|
|
99
99
|
outerRadius?: number;
|
|
100
|
-
/** Hover
|
|
100
|
+
/** Hover shows a callout and the slice label in the center (`donut` only). `false` shows the Chart tooltip instead. Default `true`. */
|
|
101
101
|
activeShape?: boolean;
|
|
102
102
|
/** Initial highlighted slice index (`donut` only). */
|
|
103
103
|
defaultIndex?: number;
|