UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

23 lines (22 loc) 1.24 kB
import React from 'react'; import { PieChartProps, SeriesInfo } from './interfaces'; export interface InternalChartDatum<T> { index: number; color: string; datum: Readonly<T>; } interface InternalPieChartProps<T extends PieChartProps.Datum> extends PieChartProps<T> { visibleData: Array<InternalChartDatum<T>>; width: number; highlightedSegment: T | null; setHighlightedSegment: React.Dispatch<React.SetStateAction<T | null | undefined>>; pinnedSegment: T | null; setPinnedSegment: React.Dispatch<React.SetStateAction<T | null>>; } export interface TooltipData<T> { datum: T; trigger: Element; series: SeriesInfo; } declare const _default: <T extends PieChartProps.Datum>({ variant, size, i18nStrings, ariaLabel, ariaLabelledby, data, visibleData, ariaDescription, innerMetricValue, innerMetricDescription, hideTitles, hideDescriptions, detailPopoverContent, detailPopoverSize, width, additionalFilters, hideFilter, hideLegend, statusType, empty, noMatch, errorText, recoveryText, loadingText, onRecoveryClick, segmentDescription, onHighlightChange, highlightedSegment, setHighlightedSegment, pinnedSegment, setPinnedSegment }: InternalPieChartProps<T>) => JSX.Element; export default _default;