import { Sizes } from '@m4l/styles'; import { ChartPieSlots } from './slots/ChartPieEnum'; import { CHART_PIE_KEY_COMPONENT } from './constants'; import { M4LOverridesStyleRules } from '@m4l/components'; import { SxProps, Theme } from '@mui/material/styles'; /** * Item for the ChartPie (API shape). */ export interface ChartPieValueItem { /** Displays the category name. */ title: string; /** Displays the formatted value of the category. */ v: string; /** Displays the numeric value of the category. */ r: number; /** Displays the category color. */ palletColor: string; } /** * Props for the ChartPie component. */ export interface ChartPieProps { /** Chart values (name, formatted value, numeric value, color). */ values: ChartPieValueItem[]; /** Component size. */ size?: Extract; /** System styles applied to the chart root container. */ sx?: SxProps; } /** * Data for the ChartPie (name, value, itemStyle). */ export interface ChartPieData { /** Displays the category name. */ name: string; /** Displays the numeric value of the category. */ value: number; /** Displays the formatted value of the category. */ valueFormatted: string; /** Displays the category color. */ itemStyle: { color: string; }; /** Displays the category color. */ colorName: string; /** Displays the data length. */ lenght: number; } export type ChartPieOwnerState = { color?: ChartPieData['colorName']; length?: ChartPieData['lenght']; size?: ChartPieProps['size']; selected?: boolean; }; export type ChartPieSlotsType = keyof typeof ChartPieSlots; export type ChartPieStyles = M4LOverridesStyleRules; //# sourceMappingURL=types.d.ts.map