Skip to content

Commit

Permalink
Merge branch 'master' into fix-detailPanel-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Oct 9, 2024
2 parents 2792890 + e8991e9 commit 3dc9f0d
Show file tree
Hide file tree
Showing 132 changed files with 2,639 additions and 964 deletions.
8 changes: 3 additions & 5 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ const defaultAlias = {
packages: resolveAliasPath('./packages'),
};

const productionPlugins = [
['babel-plugin-react-remove-properties', { properties: ['data-mui-test'] }],
];

/** @type {babel.ConfigFunction} */
module.exports = function getBabelConfig(api) {
const useESModules = api.env(['modern', 'stable', 'rollup']);
Expand Down Expand Up @@ -129,7 +125,9 @@ module.exports = function getBabelConfig(api) {
}

if (process.env.NODE_ENV === 'production') {
plugins.push(...productionPlugins);
if (!process.env.E2E_BUILD) {
plugins.push(['babel-plugin-react-remove-properties', { properties: ['data-testid'] }]);
}

if (process.env.BABEL_ENV) {
plugins.push([
Expand Down
4 changes: 3 additions & 1 deletion docs/data/charts/highlighting/ElementHighlights.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import TextField from '@mui/material/TextField';
import MenuItem from '@mui/material/MenuItem';
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
import ToggleButton from '@mui/material/ToggleButton';

import { BarChart } from '@mui/x-charts/BarChart';
import { LineChart } from '@mui/x-charts/LineChart';
import { ScatterChart } from '@mui/x-charts/ScatterChart';
Expand Down Expand Up @@ -130,6 +129,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'line' && (
<LineChart
{...lineChartsParams}
Expand All @@ -143,6 +143,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'scatter' && (
<ScatterChart
{...scatterChartsParams}
Expand All @@ -155,6 +156,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'pie' && (
<PieChart
{...pieChartsParams}
Expand Down
5 changes: 4 additions & 1 deletion docs/data/charts/highlighting/ElementHighlights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import TextField from '@mui/material/TextField';
import MenuItem from '@mui/material/MenuItem';
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
import ToggleButton from '@mui/material/ToggleButton';
import { HighlightScope } from '@mui/x-charts/context';
import { BarChart } from '@mui/x-charts/BarChart';
import { LineChart } from '@mui/x-charts/LineChart';
import { ScatterChart } from '@mui/x-charts/ScatterChart';
import { PieChart } from '@mui/x-charts/PieChart';
import { HighlightScope } from '@mui/x-charts/context';

const barChartsParams = {
series: [
Expand Down Expand Up @@ -130,6 +130,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'line' && (
<LineChart
{...lineChartsParams}
Expand All @@ -143,6 +144,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'scatter' && (
<ScatterChart
{...scatterChartsParams}
Expand All @@ -155,6 +157,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'pie' && (
<PieChart
{...pieChartsParams}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function CustomActionBar(props) {
case 'clear':
return (
<MenuItem
data-mui-test="clear-action-button"
onClick={() => {
onClear();
setAnchorEl(null);
Expand Down Expand Up @@ -67,7 +66,6 @@ function CustomActionBar(props) {
case 'today':
return (
<MenuItem
data-mui-test="today-action-button"
onClick={() => {
setAnchorEl(null);
onSetToday();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function CustomActionBar(props: PickersActionBarProps) {
case 'clear':
return (
<MenuItem
data-mui-test="clear-action-button"
onClick={() => {
onClear();
setAnchorEl(null);
Expand Down Expand Up @@ -64,7 +63,6 @@ function CustomActionBar(props: PickersActionBarProps) {
case 'today':
return (
<MenuItem
data-mui-test="today-action-button"
onClick={() => {
setAnchorEl(null);
onSetToday();
Expand Down
58 changes: 0 additions & 58 deletions docs/data/tree-view/rich-tree-view/customization/LabelSlotProps.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3dc9f0d

Please sign in to comment.