From 45facf87e7b86072c26ce8ffd71b26d256bc3c24 Mon Sep 17 00:00:00 2001 From: Jose C Quintas Jr Date: Tue, 16 Jul 2024 17:44:10 +0200 Subject: [PATCH] [charts] Fix charts `api` tests (#13863) --- .../x/api/charts/continuous-color-legend.json | 3 +- docs/pages/x/api/charts/heatmap.json | 28 +++++++++---------- .../x/api/charts/piecewise-color-legend.json | 3 +- scripts/x-charts-pro.exports.json | 12 ++++---- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/pages/x/api/charts/continuous-color-legend.json b/docs/pages/x/api/charts/continuous-color-legend.json index f10df57be23c..654a9fc15dfd 100644 --- a/docs/pages/x/api/charts/continuous-color-legend.json +++ b/docs/pages/x/api/charts/continuous-color-legend.json @@ -49,7 +49,8 @@ "name": "ContinuousColorLegend", "imports": [ "import { ContinuousColorLegend } from '@mui/x-charts/ChartsLegend';", - "import { ContinuousColorLegend } from '@mui/x-charts';" + "import { ContinuousColorLegend } from '@mui/x-charts';", + "import { ContinuousColorLegend } from '@mui/x-charts-pro';" ], "classes": [], "muiName": "MuiContinuousColorLegend", diff --git a/docs/pages/x/api/charts/heatmap.json b/docs/pages/x/api/charts/heatmap.json index fe5c4c1c96db..5cc4ec4b7c5a 100644 --- a/docs/pages/x/api/charts/heatmap.json +++ b/docs/pages/x/api/charts/heatmap.json @@ -96,6 +96,12 @@ "import { Heatmap } from '@mui/x-charts-pro';" ], "slots": [ + { + "name": "axisLabel", + "description": "Custom component for axis label.", + "default": "ChartsText", + "class": null + }, { "name": "axisLine", "description": "Custom component for the axis main line.", @@ -115,16 +121,10 @@ "class": null }, { - "name": "axisLabel", - "description": "Custom component for axis label.", - "default": "ChartsText", - "class": null - }, - { - "name": "popper", - "description": "Custom component for the tooltip popper.", - "default": "ChartsTooltipRoot", - "class": null + "name": "cell", + "description": "The component that renders the heatmap cell.", + "default": "HeatmapCell", + "class": "MuiHeatmap-cell" }, { "name": "itemContent", @@ -145,10 +145,10 @@ "class": null }, { - "name": "cell", - "description": "The component that renders the heatmap cell.", - "default": "HeatmapCell", - "class": "MuiHeatmap-cell" + "name": "popper", + "description": "Custom component for the tooltip popper.", + "default": "ChartsTooltipRoot", + "class": null } ], "classes": [ diff --git a/docs/pages/x/api/charts/piecewise-color-legend.json b/docs/pages/x/api/charts/piecewise-color-legend.json index d2df44cd4829..cd19020d0cd5 100644 --- a/docs/pages/x/api/charts/piecewise-color-legend.json +++ b/docs/pages/x/api/charts/piecewise-color-legend.json @@ -47,7 +47,8 @@ "name": "PiecewiseColorLegend", "imports": [ "import { PiecewiseColorLegend } from '@mui/x-charts/ChartsLegend';", - "import { PiecewiseColorLegend } from '@mui/x-charts';" + "import { PiecewiseColorLegend } from '@mui/x-charts';", + "import { PiecewiseColorLegend } from '@mui/x-charts-pro';" ], "classes": [ { diff --git a/scripts/x-charts-pro.exports.json b/scripts/x-charts-pro.exports.json index b50c27a2feef..bec72c5ad30a 100644 --- a/scripts/x-charts-pro.exports.json +++ b/scripts/x-charts-pro.exports.json @@ -1,8 +1,5 @@ [ { "name": "AllSeriesType", "kind": "TypeAlias" }, - { "name": "AnchorPosition", "kind": "TypeAlias" }, - { "name": "AnchorX", "kind": "TypeAlias" }, - { "name": "AnchorY", "kind": "TypeAlias" }, { "name": "AnimatedArea", "kind": "Function" }, { "name": "AnimatedAreaProps", "kind": "Interface" }, { "name": "AnimatedLine", "kind": "Function" }, @@ -87,9 +84,7 @@ { "name": "ChartsLegend", "kind": "Function" }, { "name": "ChartsLegendClasses", "kind": "Interface" }, { "name": "ChartsLegendClassKey", "kind": "TypeAlias" }, - { "name": "ChartsLegendProps", "kind": "TypeAlias" }, - { "name": "ChartsLegendRoot", "kind": "Variable" }, - { "name": "ChartsLegendRootOwnerState", "kind": "TypeAlias" }, + { "name": "ChartsLegendProps", "kind": "Interface" }, { "name": "ChartsLegendSlotProps", "kind": "Interface" }, { "name": "ChartsLegendSlots", "kind": "Interface" }, { "name": "ChartsOnAxisClickHandler", "kind": "Function" }, @@ -127,6 +122,8 @@ { "name": "cheerfulFiestaPaletteLight", "kind": "Variable" }, { "name": "ColorProcessorsConfig", "kind": "TypeAlias" }, { "name": "ComputedPieRadius", "kind": "Interface" }, + { "name": "ContinuousColorLegend", "kind": "Function" }, + { "name": "ContinuousColorLegendProps", "kind": "Interface" }, { "name": "ContinuousScaleName", "kind": "TypeAlias" }, { "name": "CurveType", "kind": "TypeAlias" }, { "name": "DEFAULT_MARGINS", "kind": "Variable" }, @@ -143,7 +140,6 @@ { "name": "DefaultizedPieValueType", "kind": "TypeAlias" }, { "name": "DefaultizedScatterSeriesType", "kind": "Interface" }, { "name": "DefaultizedSeriesType", "kind": "TypeAlias" }, - { "name": "Direction", "kind": "TypeAlias" }, { "name": "ExtremumGettersConfig", "kind": "TypeAlias" }, { "name": "FadeOptions", "kind": "TypeAlias" }, { "name": "Gauge", "kind": "Variable" }, @@ -264,6 +260,8 @@ { "name": "PieArcPlotSlotProps", "kind": "Interface" }, { "name": "PieArcPlotSlots", "kind": "Interface" }, { "name": "PieArcProps", "kind": "TypeAlias" }, + { "name": "PiecewiseColorLegend", "kind": "Function" }, + { "name": "PiecewiseColorLegendProps", "kind": "Interface" }, { "name": "PieChart", "kind": "Variable" }, { "name": "PieChartProps", "kind": "Interface" }, { "name": "PieChartSlotProps", "kind": "Interface" },