UNPKG

@spaced-out/ui-design-system

Version:
30 lines 1.43 kB
import * as React from 'react'; import type { ChartOptions, Drilldown, LegendOptionsType, PieSeriesOptions } from '../../../types/charts'; import type { ChartWrapperClassNames, ExportOptionType } from '../../../components/Charts/ChartWrapper'; type ClassNames = Readonly<ChartWrapperClassNames & { highChart?: string; subtitleClassNames?: SubtitleClassNames; }>; interface SubtitleClassNames { wrapper?: string; text?: string; subtext?: string; } export interface DonutChartProps extends Omit<ChartOptions, 'isLoading' | 'classNames' | 'cardTitle' | 'customExportOptions' | 'headerActions' | 'centerText' | 'centerSubtext' | 'series' | 'drilldown' | 'legend' | 'hasEmptyData' | 'emptyText'> { isLoading?: boolean; classNames?: ClassNames; cardTitle?: React.ReactNode; customExportOptions?: Array<ExportOptionType> | null; headerActions?: React.ReactNode; centerText?: string; centerSubtext?: string; series: Array<PieSeriesOptions>; drilldown?: Drilldown; legend?: LegendOptionsType; hasEmptyData?: boolean; emptyText?: React.ReactNode; testId?: string; } export declare const DonutChart: ({ isLoading, classNames, cardTitle, customExportOptions, headerActions, series, drilldown, legend, centerText, centerSubtext, hasEmptyData, emptyText, testId, ...userOptions }: DonutChartProps) => React.JSX.Element; export {}; //# sourceMappingURL=DonutChart.d.ts.map