@ovapos/ui 1.0.3 → 1.0.5

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.
@@ -7,6 +7,8 @@ interface DonutChartProps {
7
7
  gapDegrees?: number;
8
8
  valueSuffix?: string;
9
9
  totalText?: string;
10
+ /** The tooltip also shows the slice's share of the total, e.g. "(25%)". */
11
+ showPercent?: boolean;
10
12
  }
11
- declare const DonutChart: ({ data, size, strokeWidth, showTotal, gapDegrees, valueSuffix, totalText, }: DonutChartProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const DonutChart: ({ data, size, strokeWidth, showTotal, gapDegrees, valueSuffix, totalText, showPercent, }: DonutChartProps) => import("react/jsx-runtime").JSX.Element;
12
14
  export default DonutChart;
@@ -2,4 +2,6 @@ export type DonutChartData = {
2
2
  label: string;
3
3
  count: number;
4
4
  color?: string;
5
+ /** An extra line in the slice's tooltip, e.g. "12 orders". */
6
+ details?: string;
5
7
  };