Skip to content

Commit

Permalink
Bump MUI X to 7.6.2 (mui#3647)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: MUI bot <[email protected]>
  • Loading branch information
renovate[bot] and Janpot authored Jun 6, 2024
1 parent 9d2dcc9 commit 1d3a80d
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 64 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@mui/internal-markdown": "1.0.4",
"@mui/internal-scripts": "1.0.9",
"@mui/monorepo": "github:mui/material-ui#6fe1242f0500f8bf1244680d2fbe5e09c3a3fd8c",
"@mui/x-charts": "7.6.1",
"@mui/x-charts": "7.6.2",
"@next/eslint-plugin-next": "14.2.3",
"@playwright/test": "1.44.1",
"@testing-library/react": "16.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/toolpad-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"dependencies": {
"@mui/lab": "5.0.0-alpha.170",
"@mui/utils": "5.15.14",
"@mui/x-charts": "7.6.1",
"@mui/x-data-grid": "7.6.1",
"@mui/x-charts": "7.6.2",
"@mui/x-data-grid": "7.6.2",
"@tanstack/react-query": "5.40.0",
"@toolpad/utils": "workspace:*",
"client-only": "^0.0.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/toolpad-core/src/LineChart/LineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
import {
LineChart as XLineChart,
LineChartProps as XLineChartProps,
AxisConfig,
blueberryTwilightPalette,
LineSeriesType,
} from '@mui/x-charts';
Expand All @@ -26,6 +25,8 @@ export interface LineChartProps<R extends Datum> extends Partial<XLineChartProps
dataProvider?: ResolvedDataProvider<R>;
}

type ChartsXAxis = NonNullable<XLineChartProps['xAxis']>[number];

/**
*
* Demos:
Expand Down Expand Up @@ -53,7 +54,7 @@ const LineChart = React.forwardRef(function LineChart<R extends Datum>(
return [{ dataKey: 'id' }];
}
return xAxis.map((axis) => {
let defaults: Partial<AxisConfig> = {};
let defaults: Partial<ChartsXAxis> = {};
if (axis.dataKey) {
const field = dataProvider?.fields?.[axis.dataKey];
if (field) {
Expand Down
6 changes: 3 additions & 3 deletions packages/toolpad-studio-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"@mui/icons-material": "5.15.19",
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "5.15.19",
"@mui/x-charts": "7.6.1",
"@mui/x-data-grid-premium": "7.6.1",
"@mui/x-date-pickers": "7.6.1",
"@mui/x-charts": "7.6.2",
"@mui/x-data-grid-premium": "7.6.2",
"@mui/x-date-pickers": "7.6.2",
"@mui/x-license": "7.6.1",
"@tanstack/react-query": "5.40.0",
"@toolpad/studio-runtime": "workspace:*",
Expand Down
12 changes: 6 additions & 6 deletions packages/toolpad-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"@mui/system": "5.15.15",
"@mui/types": "7.2.14",
"@mui/utils": "5.15.14",
"@mui/x-charts": "7.6.1",
"@mui/x-data-grid": "7.6.1",
"@mui/x-data-grid-premium": "7.6.1",
"@mui/x-date-pickers": "7.6.1",
"@mui/x-date-pickers-pro": "7.6.1",
"@mui/x-tree-view": "7.6.1",
"@mui/x-charts": "7.6.2",
"@mui/x-data-grid": "7.6.2",
"@mui/x-data-grid-premium": "7.6.2",
"@mui/x-date-pickers": "7.6.2",
"@mui/x-date-pickers-pro": "7.6.2",
"@mui/x-tree-view": "7.6.2",
"@tanstack/react-query": "5.40.0",
"@tanstack/react-query-devtools": "5.40.0",
"@toolpad/studio-components": "workspace:*",
Expand Down
Loading

0 comments on commit 1d3a80d

Please sign in to comment.