Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/BarChart/barElementClasses.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

26 lines
982 B
TypeScript

import { SeriesId } from "../models/seriesType/common.js";
export interface BarElementClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if it is highlighted. */
highlighted: string;
/** Styles applied to the root element if it is faded. */
faded: string;
/**
* Styles applied to the root element for a specified series.
* Needs to be suffixed with the series ID: `.${barElementClasses.series}-${seriesId}`.
*/
series: string;
}
export type BarElementClassKey = keyof BarElementClasses;
export interface BarElementOwnerState {
id: SeriesId;
dataIndex: number;
color: string;
isFaded: boolean;
isHighlighted: boolean;
classes?: Partial<BarElementClasses>;
}
export declare function getBarElementUtilityClass(slot: string): string;
export declare const barElementClasses: BarElementClasses;
export declare const useUtilityClasses: (ownerState: BarElementOwnerState) => Record<"root", string>;