Skip to content

Commit

Permalink
[charts] Remove not functional component styleOverrides (#9996)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy authored Aug 11, 2023
1 parent b3ed783 commit a1ae931
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions packages/x-charts/src/themeAugmentation/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,35 @@ export interface ChartsComponents {
};
MuiChartsXAxis?: {
defaultProps?: ComponentsProps['MuiChartsXAxis'];
styleOverrides?: ComponentsOverrides['MuiChartsXAxis'];
};
MuiChartsYAxis?: {
defaultProps?: ComponentsProps['MuiChartsYAxis'];
styleOverrides?: ComponentsOverrides['MuiChartsYAxis'];
};
MuiChartsAxisHighlight?: {
defaultProps?: ComponentsProps['MuiChartsAxisHighlight'];
styleOverrides?: never; // ComponentsOverrides['MuiChartsAxisHighlight'];
};
MuiChartsClipPath?: {
defaultProps?: ComponentsProps['MuiChartsClipPath'];
styleOverrides?: never; // ComponentsOverrides['MuiChartsClipPath'];
};
MuiChartsLegend?: {
defaultProps?: ComponentsProps['MuiChartsLegend'];
styleOverrides?: ComponentsOverrides['MuiChartsLegend'];
};
MuiChartsTooltip?: {
defaultProps?: ComponentsProps['MuiChartsTooltip'];
styleOverrides?: never; // ComponentsOverrides['MuiChartsTooltip'];
};
MuiChartsSurface?: {
defaultProps?: ComponentsProps['MuiChartsSurface'];
styleOverrides?: never; // ComponentsOverrides['MuiChartsSurface'];
};
MuiBarChart?: {
defaultProps?: ComponentsProps['MuiBarChart'];
styleOverrides?: never; // ComponentsOverrides['MuiBarChart'];
};
MuiBarElement?: {
defaultProps?: ComponentsProps['MuiBarElement'];
styleOverrides?: ComponentsOverrides['MuiBarElement'];
};
MuiLineChart?: {
defaultProps?: ComponentsProps['MuiLineChart'];
styleOverrides?: never; // ComponentsOverrides['MuiLineChart'];
};
MuiAreaElement?: {
defaultProps?: ComponentsProps['MuiAreaElement'];
Expand All @@ -59,11 +51,9 @@ export interface ChartsComponents {
};
MuiScatterChart?: {
defaultProps?: ComponentsProps['MuiScatterChart'];
styleOverrides?: never; // ComponentsOverrides['MuiScatterChart'];
};
MuiScatter?: {
defaultProps?: ComponentsProps['MuiScatter'];
styleOverrides?: never; // ComponentsOverrides['MuiScatter'];
};
}

Expand Down
2 changes: 0 additions & 2 deletions packages/x-charts/src/themeAugmentation/overrides.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from '.
// prettier-ignore
export interface PickersComponentNameToClassKey {
MuiChartsAxis: ChartsAxisClassKey;
MuiChartsXAxis: ChartsAxisClassKey;
MuiChartsYAxis: ChartsAxisClassKey;
MuiChartsLegend: ChartsLegendClassKey;

// BarChart components
Expand Down
10 changes: 0 additions & 10 deletions packages/x-charts/src/themeAugmentation/themeAugmentation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,13 @@ createTheme({
// @ts-expect-error invalid MuiChartsXAxis prop
someRandomProp: true,
},
styleOverrides: {
root: { backgroundColor: 'red' },
// @ts-expect-error invalid MuiChartsXAxis class key
constent: { color: 'red' },
},
},
MuiChartsYAxis: {
defaultProps: {
axisId: 'test',
// @ts-expect-error invalid MuiChartsYAxis prop
someRandomProp: true,
},
styleOverrides: {
root: { backgroundColor: 'red' },
// @ts-expect-error invalid MuiChartsYAxis class key
constent: { color: 'red' },
},
},
MuiChartsAxisHighlight: {
defaultProps: {
Expand Down

0 comments on commit a1ae931

Please sign in to comment.