@mui/x-charts 7.15.0 → 7.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/BarChart.js +23 -12
- package/BarChart/BarClipPath.js +1 -1
- package/BarChart/BarElement.js +2 -2
- package/BarChart/BarLabel/BarLabel.js +1 -1
- package/BarChart/BarLabel/BarLabelItem.js +4 -4
- package/BarChart/BarLabel/BarLabelPlot.js +1 -1
- package/BarChart/BarLabel/index.js +2 -2
- package/BarChart/BarPlot.js +8 -8
- package/BarChart/checkScaleErrors.js +2 -2
- package/BarChart/formatter.js +2 -2
- package/BarChart/index.js +4 -4
- package/BarChart/legend.js +1 -1
- package/BarChart/plugin.js +3 -3
- package/BarChart/useBarChartProps.js +1 -1
- package/CHANGELOG.md +98 -1
- package/ChartContainer/ChartContainer.js +9 -9
- package/ChartContainer/index.js +1 -1
- package/ChartContainer/useChartContainerProps.js +2 -2
- package/ChartContainer/useDefaultizeAxis.js +1 -1
- package/ChartsAxis/ChartsAxis.js +3 -3
- package/ChartsAxis/index.js +2 -2
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +4 -4
- package/ChartsAxisHighlight/index.js +1 -1
- package/ChartsClipPath/ChartsClipPath.js +1 -1
- package/ChartsClipPath/index.js +1 -1
- package/ChartsGrid/ChartsGrid.js +18 -66
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +14 -0
- package/ChartsGrid/ChartsHorizontalGrid.js +36 -0
- package/ChartsGrid/ChartsVerticalGrid.d.ts +14 -0
- package/ChartsGrid/ChartsVerticalGrid.js +36 -0
- package/ChartsGrid/index.js +2 -2
- package/ChartsGrid/styledCommonents.d.ts +2 -0
- package/ChartsGrid/styledCommonents.js +22 -0
- package/ChartsLegend/ChartsLegend.d.ts +4 -13
- package/ChartsLegend/ChartsLegend.js +59 -25
- package/ChartsLegend/ContinuousColorLegend.js +7 -7
- package/ChartsLegend/DefaultChartsLegend.d.ts +6 -1
- package/ChartsLegend/DefaultChartsLegend.js +7 -3
- package/ChartsLegend/LegendPerItem.d.ts +9 -6
- package/ChartsLegend/LegendPerItem.js +4 -8
- package/ChartsLegend/PiecewiseColorLegend.js +3 -8
- package/ChartsLegend/index.js +6 -6
- package/ChartsLegend/useAxis.js +2 -2
- package/ChartsLegend/utils.js +4 -4
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +4 -4
- package/ChartsOnAxisClickHandler/index.js +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.js +1 -1
- package/ChartsOverlay/ChartsOverlay.js +3 -3
- package/ChartsOverlay/index.js +3 -3
- package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.js +5 -5
- package/ChartsReferenceLine/ChartsYReferenceLine.js +5 -5
- package/ChartsReferenceLine/common.js +1 -1
- package/ChartsReferenceLine/index.js +2 -2
- package/ChartsSurface/ChartsSurface.js +1 -1
- package/ChartsSurface/index.js +1 -1
- package/ChartsText/ChartsText.js +1 -1
- package/ChartsText/index.js +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +6 -6
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.js +5 -5
- package/ChartsTooltip/ChartsTooltip.d.ts +2 -2
- package/ChartsTooltip/ChartsTooltip.js +13 -11
- package/ChartsTooltip/ChartsTooltipTable.js +10 -5
- package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +5 -5
- package/ChartsTooltip/DefaultChartsItemTooltipContent.js +3 -3
- package/ChartsTooltip/chartsTooltipClasses.d.ts +2 -0
- package/ChartsTooltip/chartsTooltipClasses.js +1 -1
- package/ChartsTooltip/index.js +7 -7
- package/ChartsTooltip/utils.js +1 -1
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +7 -7
- package/ChartsVoronoiHandler/index.js +1 -1
- package/ChartsXAxis/ChartsXAxis.js +18 -13
- package/ChartsXAxis/index.js +1 -1
- package/ChartsYAxis/ChartsYAxis.js +15 -10
- package/ChartsYAxis/index.js +1 -1
- package/Gauge/Gauge.js +5 -5
- package/Gauge/GaugeContainer.js +4 -4
- package/Gauge/GaugeProvider.js +3 -3
- package/Gauge/GaugeReferenceArc.js +1 -1
- package/Gauge/GaugeValueArc.js +1 -1
- package/Gauge/GaugeValueText.js +2 -2
- package/Gauge/index.js +7 -7
- package/LineChart/AnimatedArea.js +31 -14
- package/LineChart/AnimatedLine.js +32 -15
- package/LineChart/AreaElement.js +3 -3
- package/LineChart/AreaPlot.js +83 -78
- package/LineChart/LineChart.js +26 -15
- package/LineChart/LineElement.js +3 -3
- package/LineChart/LineHighlightPlot.js +8 -8
- package/LineChart/LinePlot.js +65 -60
- package/LineChart/MarkElement.js +4 -4
- package/LineChart/MarkPlot.js +9 -9
- package/LineChart/formatter.js +2 -2
- package/LineChart/index.js +11 -11
- package/LineChart/legend.js +1 -1
- package/LineChart/plugin.js +3 -3
- package/LineChart/useLineChartProps.js +1 -1
- package/PieChart/PieArc.js +1 -1
- package/PieChart/PieArcLabelPlot.js +4 -4
- package/PieChart/PieArcPlot.js +4 -4
- package/PieChart/PieChart.js +19 -8
- package/PieChart/PiePlot.js +6 -6
- package/PieChart/dataTransform/useTransformData.js +1 -1
- package/PieChart/formatter.js +1 -1
- package/PieChart/getPieCoordinates.js +1 -1
- package/PieChart/index.js +7 -7
- package/PieChart/legend.js +1 -1
- package/PieChart/plugin.js +2 -2
- package/ResponsiveChartContainer/ResponsiveChartContainer.js +3 -3
- package/ResponsiveChartContainer/index.js +1 -1
- package/ResponsiveChartContainer/useResponsiveChartContainerProps.js +1 -1
- package/ScatterChart/Scatter.js +5 -5
- package/ScatterChart/ScatterChart.js +23 -12
- package/ScatterChart/ScatterPlot.js +5 -5
- package/ScatterChart/formatter.js +1 -1
- package/ScatterChart/index.js +3 -3
- package/ScatterChart/legend.js +1 -1
- package/ScatterChart/plugin.js +3 -3
- package/SparkLineChart/SparkLineChart.js +6 -6
- package/SparkLineChart/index.js +1 -1
- package/colorPalettes/index.js +1 -1
- package/context/CartesianProvider/CartesianProvider.js +6 -6
- package/context/CartesianProvider/computeValue.js +6 -6
- package/context/CartesianProvider/defaultizeAxis.js +1 -1
- package/context/CartesianProvider/index.js +5 -5
- package/context/CartesianProvider/useCartesianContext.js +1 -1
- package/context/DrawingProvider.js +1 -1
- package/context/HighlightedProvider/HighlightedProvider.js +4 -4
- package/context/HighlightedProvider/index.js +4 -4
- package/context/HighlightedProvider/useHighlighted.js +1 -1
- package/context/HighlightedProvider/useItemHighlighted.js +1 -1
- package/context/PluginProvider/PluginProvider.js +2 -2
- package/context/PluginProvider/index.js +10 -10
- package/context/PluginProvider/mergePlugins.js +4 -4
- package/context/PluginProvider/useColorProcessor.js +1 -1
- package/context/PluginProvider/useSeriesFormatter.js +1 -1
- package/context/PluginProvider/useXExtremumGetter.js +1 -1
- package/context/PluginProvider/useYExtremumGetter.js +1 -1
- package/context/SeriesProvider/SeriesProvider.js +4 -4
- package/context/SeriesProvider/index.js +4 -4
- package/context/SeriesProvider/processSeries.js +1 -1
- package/context/ZAxisContextProvider.js +1 -1
- package/context/index.js +2 -2
- package/hooks/index.js +7 -7
- package/hooks/useAxis.js +1 -1
- package/hooks/useAxisEvents.js +6 -6
- package/hooks/useChartDimensions.js +1 -1
- package/hooks/useChartId.js +1 -1
- package/hooks/useColorScale.js +2 -2
- package/hooks/useDrawingArea.js +1 -1
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useReducedMotion.js +13 -12
- package/hooks/useScale.js +2 -2
- package/hooks/useSeries.js +1 -1
- package/hooks/useSvgRef.js +1 -1
- package/hooks/useTicks.js +2 -2
- package/index.js +27 -27
- package/internals/components/AxisSharedComponents.js +1 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +5 -5
- package/internals/components/ChartsAxesGradients/index.js +1 -1
- package/internals/getWordsByLines.js +1 -1
- package/internals/index.js +31 -31
- package/internals/isCartesian.js +1 -1
- package/internals/useStringInterpolator.d.ts +1 -0
- package/internals/{useAnimatedPath.js → useStringInterpolator.js} +2 -15
- package/models/index.d.ts +1 -0
- package/models/index.js +5 -3
- package/models/seriesType/index.js +4 -4
- package/modern/BarChart/BarChart.js +23 -12
- package/modern/BarChart/BarClipPath.js +1 -1
- package/modern/BarChart/BarElement.js +2 -2
- package/modern/BarChart/BarLabel/BarLabel.js +1 -1
- package/modern/BarChart/BarLabel/BarLabelItem.js +4 -4
- package/modern/BarChart/BarLabel/BarLabelPlot.js +1 -1
- package/modern/BarChart/BarLabel/index.js +2 -2
- package/modern/BarChart/BarPlot.js +8 -8
- package/modern/BarChart/checkScaleErrors.js +2 -2
- package/modern/BarChart/formatter.js +2 -2
- package/modern/BarChart/index.js +4 -4
- package/modern/BarChart/legend.js +1 -1
- package/modern/BarChart/plugin.js +3 -3
- package/modern/BarChart/useBarChartProps.js +1 -1
- package/modern/ChartContainer/ChartContainer.js +9 -9
- package/modern/ChartContainer/index.js +1 -1
- package/modern/ChartContainer/useChartContainerProps.js +2 -2
- package/modern/ChartContainer/useDefaultizeAxis.js +1 -1
- package/modern/ChartsAxis/ChartsAxis.js +3 -3
- package/modern/ChartsAxis/index.js +2 -2
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.js +4 -4
- package/modern/ChartsAxisHighlight/index.js +1 -1
- package/modern/ChartsClipPath/ChartsClipPath.js +1 -1
- package/modern/ChartsClipPath/index.js +1 -1
- package/modern/ChartsGrid/ChartsGrid.js +18 -66
- package/modern/ChartsGrid/ChartsHorizontalGrid.js +36 -0
- package/modern/ChartsGrid/ChartsVerticalGrid.js +36 -0
- package/modern/ChartsGrid/index.js +2 -2
- package/modern/ChartsGrid/styledCommonents.js +22 -0
- package/modern/ChartsLegend/ChartsLegend.js +59 -25
- package/modern/ChartsLegend/ContinuousColorLegend.js +7 -7
- package/modern/ChartsLegend/DefaultChartsLegend.js +7 -3
- package/modern/ChartsLegend/LegendPerItem.js +4 -8
- package/modern/ChartsLegend/PiecewiseColorLegend.js +3 -8
- package/modern/ChartsLegend/index.js +6 -6
- package/modern/ChartsLegend/useAxis.js +2 -2
- package/modern/ChartsLegend/utils.js +4 -4
- package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +4 -4
- package/modern/ChartsOnAxisClickHandler/index.js +1 -1
- package/modern/ChartsOverlay/ChartsLoadingOverlay.js +1 -1
- package/modern/ChartsOverlay/ChartsNoDataOverlay.js +1 -1
- package/modern/ChartsOverlay/ChartsOverlay.js +3 -3
- package/modern/ChartsOverlay/index.js +3 -3
- package/modern/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/modern/ChartsReferenceLine/ChartsXReferenceLine.js +5 -5
- package/modern/ChartsReferenceLine/ChartsYReferenceLine.js +5 -5
- package/modern/ChartsReferenceLine/common.js +1 -1
- package/modern/ChartsReferenceLine/index.js +2 -2
- package/modern/ChartsSurface/ChartsSurface.js +1 -1
- package/modern/ChartsSurface/index.js +1 -1
- package/modern/ChartsText/ChartsText.js +1 -1
- package/modern/ChartsText/index.js +1 -1
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +6 -6
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +5 -5
- package/modern/ChartsTooltip/ChartsTooltip.js +13 -11
- package/modern/ChartsTooltip/ChartsTooltipTable.js +10 -5
- package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +5 -5
- package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +3 -3
- package/modern/ChartsTooltip/chartsTooltipClasses.js +1 -1
- package/modern/ChartsTooltip/index.js +7 -7
- package/modern/ChartsTooltip/utils.js +1 -1
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +7 -7
- package/modern/ChartsVoronoiHandler/index.js +1 -1
- package/modern/ChartsXAxis/ChartsXAxis.js +18 -13
- package/modern/ChartsXAxis/index.js +1 -1
- package/modern/ChartsYAxis/ChartsYAxis.js +15 -10
- package/modern/ChartsYAxis/index.js +1 -1
- package/modern/Gauge/Gauge.js +5 -5
- package/modern/Gauge/GaugeContainer.js +4 -4
- package/modern/Gauge/GaugeProvider.js +3 -3
- package/modern/Gauge/GaugeReferenceArc.js +1 -1
- package/modern/Gauge/GaugeValueArc.js +1 -1
- package/modern/Gauge/GaugeValueText.js +2 -2
- package/modern/Gauge/index.js +7 -7
- package/modern/LineChart/AnimatedArea.js +31 -14
- package/modern/LineChart/AnimatedLine.js +32 -15
- package/modern/LineChart/AreaElement.js +3 -3
- package/modern/LineChart/AreaPlot.js +83 -78
- package/modern/LineChart/LineChart.js +26 -15
- package/modern/LineChart/LineElement.js +3 -3
- package/modern/LineChart/LineHighlightPlot.js +8 -8
- package/modern/LineChart/LinePlot.js +65 -60
- package/modern/LineChart/MarkElement.js +4 -4
- package/modern/LineChart/MarkPlot.js +9 -9
- package/modern/LineChart/formatter.js +2 -2
- package/modern/LineChart/index.js +11 -11
- package/modern/LineChart/legend.js +1 -1
- package/modern/LineChart/plugin.js +3 -3
- package/modern/LineChart/useLineChartProps.js +1 -1
- package/modern/PieChart/PieArc.js +1 -1
- package/modern/PieChart/PieArcLabelPlot.js +4 -4
- package/modern/PieChart/PieArcPlot.js +4 -4
- package/modern/PieChart/PieChart.js +19 -8
- package/modern/PieChart/PiePlot.js +6 -6
- package/modern/PieChart/dataTransform/useTransformData.js +1 -1
- package/modern/PieChart/formatter.js +1 -1
- package/modern/PieChart/getPieCoordinates.js +1 -1
- package/modern/PieChart/index.js +7 -7
- package/modern/PieChart/legend.js +1 -1
- package/modern/PieChart/plugin.js +2 -2
- package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +3 -3
- package/modern/ResponsiveChartContainer/index.js +1 -1
- package/modern/ResponsiveChartContainer/useResponsiveChartContainerProps.js +1 -1
- package/modern/ScatterChart/Scatter.js +5 -5
- package/modern/ScatterChart/ScatterChart.js +23 -12
- package/modern/ScatterChart/ScatterPlot.js +5 -5
- package/modern/ScatterChart/formatter.js +1 -1
- package/modern/ScatterChart/index.js +3 -3
- package/modern/ScatterChart/legend.js +1 -1
- package/modern/ScatterChart/plugin.js +3 -3
- package/modern/SparkLineChart/SparkLineChart.js +6 -6
- package/modern/SparkLineChart/index.js +1 -1
- package/modern/colorPalettes/index.js +1 -1
- package/modern/context/CartesianProvider/CartesianProvider.js +6 -6
- package/modern/context/CartesianProvider/computeValue.js +6 -6
- package/modern/context/CartesianProvider/defaultizeAxis.js +1 -1
- package/modern/context/CartesianProvider/index.js +5 -5
- package/modern/context/CartesianProvider/useCartesianContext.js +1 -1
- package/modern/context/DrawingProvider.js +1 -1
- package/modern/context/HighlightedProvider/HighlightedProvider.js +4 -4
- package/modern/context/HighlightedProvider/index.js +4 -4
- package/modern/context/HighlightedProvider/useHighlighted.js +1 -1
- package/modern/context/HighlightedProvider/useItemHighlighted.js +1 -1
- package/modern/context/PluginProvider/PluginProvider.js +2 -2
- package/modern/context/PluginProvider/index.js +10 -10
- package/modern/context/PluginProvider/mergePlugins.js +4 -4
- package/modern/context/PluginProvider/useColorProcessor.js +1 -1
- package/modern/context/PluginProvider/useSeriesFormatter.js +1 -1
- package/modern/context/PluginProvider/useXExtremumGetter.js +1 -1
- package/modern/context/PluginProvider/useYExtremumGetter.js +1 -1
- package/modern/context/SeriesProvider/SeriesProvider.js +4 -4
- package/modern/context/SeriesProvider/index.js +4 -4
- package/modern/context/SeriesProvider/processSeries.js +1 -1
- package/modern/context/ZAxisContextProvider.js +1 -1
- package/modern/context/index.js +2 -2
- package/modern/hooks/index.js +7 -7
- package/modern/hooks/useAxis.js +1 -1
- package/modern/hooks/useAxisEvents.js +6 -6
- package/modern/hooks/useChartDimensions.js +1 -1
- package/modern/hooks/useChartId.js +1 -1
- package/modern/hooks/useColorScale.js +2 -2
- package/modern/hooks/useDrawingArea.js +1 -1
- package/modern/hooks/useInteractionItemProps.js +2 -2
- package/modern/hooks/useReducedMotion.js +13 -12
- package/modern/hooks/useScale.js +2 -2
- package/modern/hooks/useSeries.js +1 -1
- package/modern/hooks/useSvgRef.js +1 -1
- package/modern/hooks/useTicks.js +2 -2
- package/modern/index.js +27 -27
- package/modern/internals/components/AxisSharedComponents.js +1 -1
- package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +5 -5
- package/modern/internals/components/ChartsAxesGradients/index.js +1 -1
- package/modern/internals/getWordsByLines.js +1 -1
- package/modern/internals/index.js +31 -31
- package/modern/internals/isCartesian.js +1 -1
- package/modern/internals/{useAnimatedPath.js → useStringInterpolator.js} +2 -15
- package/modern/models/index.js +5 -3
- package/modern/models/seriesType/index.js +4 -4
- package/modern/themeAugmentation/index.js +0 -3
- package/node/BarChart/BarChart.js +14 -4
- package/node/BarChart/BarClipPath.js +2 -3
- package/node/BarChart/BarElement.js +2 -3
- package/node/BarChart/BarLabel/BarLabel.js +2 -3
- package/node/BarChart/BarLabel/BarLabelItem.js +2 -3
- package/node/BarChart/BarLabel/BarLabelPlot.js +2 -3
- package/node/BarChart/BarLabel/barLabelClasses.js +1 -1
- package/node/BarChart/BarPlot.js +2 -3
- package/node/BarChart/formatter.js +1 -1
- package/node/BarChart/plugin.js +1 -1
- package/node/BarChart/useBarChartProps.js +1 -1
- package/node/ChartContainer/ChartContainer.js +2 -3
- package/node/ChartContainer/useChartContainerProps.js +2 -3
- package/node/ChartContainer/useDefaultizeAxis.js +2 -3
- package/node/ChartsAxis/ChartsAxis.js +2 -3
- package/node/ChartsAxisHighlight/ChartsAxisHighlight.js +2 -3
- package/node/ChartsClipPath/ChartsClipPath.js +2 -3
- package/node/ChartsGrid/ChartsGrid.js +17 -66
- package/node/ChartsGrid/ChartsHorizontalGrid.js +43 -0
- package/node/ChartsGrid/ChartsVerticalGrid.js +43 -0
- package/node/ChartsGrid/chartsGridClasses.js +1 -1
- package/node/ChartsGrid/styledCommonents.js +28 -0
- package/node/ChartsLegend/ChartsLegend.js +56 -23
- package/node/ChartsLegend/ContinuousColorLegend.js +2 -3
- package/node/ChartsLegend/DefaultChartsLegend.js +8 -5
- package/node/ChartsLegend/LegendPerItem.js +2 -7
- package/node/ChartsLegend/PiecewiseColorLegend.js +2 -8
- package/node/ChartsLegend/legendItemsPlacement.js +1 -1
- package/node/ChartsLegend/useAxis.js +1 -2
- package/node/ChartsLegend/utils.js +1 -1
- package/node/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +2 -3
- package/node/ChartsOverlay/ChartsLoadingOverlay.js +2 -3
- package/node/ChartsOverlay/ChartsNoDataOverlay.js +2 -3
- package/node/ChartsOverlay/ChartsOverlay.js +2 -3
- package/node/ChartsReferenceLine/ChartsReferenceLine.js +2 -3
- package/node/ChartsReferenceLine/ChartsXReferenceLine.js +2 -3
- package/node/ChartsReferenceLine/ChartsYReferenceLine.js +2 -3
- package/node/ChartsReferenceLine/chartsReferenceLineClasses.js +1 -1
- package/node/ChartsReferenceLine/common.js +1 -1
- package/node/ChartsSurface/ChartsSurface.js +2 -3
- package/node/ChartsText/ChartsText.js +2 -3
- package/node/ChartsTooltip/ChartsAxisTooltipContent.js +2 -3
- package/node/ChartsTooltip/ChartsItemTooltipContent.js +2 -3
- package/node/ChartsTooltip/ChartsTooltip.js +10 -9
- package/node/ChartsTooltip/ChartsTooltipTable.js +9 -4
- package/node/ChartsTooltip/DefaultChartsAxisTooltipContent.js +3 -4
- package/node/ChartsTooltip/DefaultChartsItemTooltipContent.js +3 -4
- package/node/ChartsTooltip/chartsTooltipClasses.js +1 -1
- package/node/ChartsTooltip/utils.js +2 -3
- package/node/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -3
- package/node/ChartsXAxis/ChartsXAxis.js +8 -4
- package/node/ChartsYAxis/ChartsYAxis.js +8 -4
- package/node/Gauge/Gauge.js +2 -3
- package/node/Gauge/GaugeContainer.js +2 -3
- package/node/Gauge/GaugeProvider.js +1 -2
- package/node/Gauge/GaugeReferenceArc.js +2 -3
- package/node/Gauge/GaugeValueArc.js +2 -3
- package/node/Gauge/GaugeValueText.js +2 -3
- package/node/Gauge/gaugeClasses.js +1 -1
- package/node/LineChart/AnimatedArea.js +30 -14
- package/node/LineChart/AnimatedLine.js +30 -14
- package/node/LineChart/AreaElement.js +2 -3
- package/node/LineChart/AreaPlot.js +78 -74
- package/node/LineChart/LineChart.js +14 -4
- package/node/LineChart/LineElement.js +2 -3
- package/node/LineChart/LineHighlightElement.js +2 -3
- package/node/LineChart/LineHighlightPlot.js +2 -3
- package/node/LineChart/LinePlot.js +60 -56
- package/node/LineChart/MarkElement.js +2 -3
- package/node/LineChart/MarkPlot.js +2 -3
- package/node/LineChart/formatter.js +1 -1
- package/node/LineChart/plugin.js +1 -1
- package/node/LineChart/useLineChartProps.js +1 -1
- package/node/PieChart/PieArc.js +2 -3
- package/node/PieChart/PieArcLabel.js +2 -3
- package/node/PieChart/PieArcLabelPlot.js +2 -3
- package/node/PieChart/PieArcPlot.js +2 -3
- package/node/PieChart/PieChart.js +13 -3
- package/node/PieChart/PiePlot.js +2 -3
- package/node/PieChart/dataTransform/useTransformData.js +2 -3
- package/node/PieChart/formatter.js +1 -1
- package/node/PieChart/plugin.js +1 -1
- package/node/ResponsiveChartContainer/ResponsiveChartContainer.js +2 -3
- package/node/ResponsiveChartContainer/useChartContainerDimensions.js +2 -3
- package/node/ResponsiveChartContainer/useResponsiveChartContainerProps.js +1 -1
- package/node/ScatterChart/Scatter.js +2 -3
- package/node/ScatterChart/ScatterChart.js +14 -4
- package/node/ScatterChart/ScatterPlot.js +2 -3
- package/node/ScatterChart/plugin.js +1 -1
- package/node/ScatterChart/useScatterChartProps.js +1 -1
- package/node/SparkLineChart/SparkLineChart.js +2 -3
- package/node/context/CartesianProvider/CartesianContext.js +1 -2
- package/node/context/CartesianProvider/CartesianProvider.js +1 -2
- package/node/context/CartesianProvider/computeValue.js +1 -1
- package/node/context/CartesianProvider/defaultizeAxis.js +1 -1
- package/node/context/CartesianProvider/useCartesianContext.js +1 -2
- package/node/context/DrawingProvider.js +2 -3
- package/node/context/HighlightedProvider/HighlightedContext.js +1 -2
- package/node/context/HighlightedProvider/HighlightedProvider.js +2 -3
- package/node/context/HighlightedProvider/useHighlighted.js +1 -2
- package/node/context/InteractionProvider.js +2 -3
- package/node/context/PluginProvider/PluginContext.js +1 -2
- package/node/context/PluginProvider/PluginProvider.js +1 -2
- package/node/context/PluginProvider/useColorProcessor.js +1 -2
- package/node/context/PluginProvider/useSeriesFormatter.js +1 -2
- package/node/context/PluginProvider/useXExtremumGetter.js +1 -2
- package/node/context/PluginProvider/useYExtremumGetter.js +1 -2
- package/node/context/SeriesProvider/SeriesContext.js +1 -2
- package/node/context/SeriesProvider/SeriesProvider.js +1 -2
- package/node/context/SeriesProvider/processSeries.js +1 -1
- package/node/context/ZAxisContextProvider.js +2 -3
- package/node/hooks/useAxisEvents.js +1 -2
- package/node/hooks/useChartDimensions.js +2 -3
- package/node/hooks/useChartId.js +1 -2
- package/node/hooks/useColorScale.js +1 -2
- package/node/hooks/useDrawingArea.js +1 -2
- package/node/hooks/useInteractionItemProps.js +1 -2
- package/node/hooks/useMounted.js +2 -3
- package/node/hooks/useReducedMotion.js +14 -12
- package/node/hooks/useSeries.js +1 -2
- package/node/hooks/useSvgRef.js +1 -2
- package/node/hooks/useTicks.js +1 -2
- package/node/index.js +1 -1
- package/node/internals/components/AxisSharedComponents.js +1 -1
- package/node/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +2 -3
- package/node/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +1 -2
- package/node/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +1 -2
- package/node/internals/defaultizeColor.js +1 -1
- package/node/internals/defaultizeValueFormatter.js +1 -1
- package/node/internals/domUtils.js +1 -1
- package/node/internals/getWordsByLines.js +1 -1
- package/node/internals/useStringInterpolator.js +28 -0
- package/node/tests/firePointerEvent.js +1 -1
- package/node/themeAugmentation/index.js +1 -38
- package/package.json +4 -3
- package/themeAugmentation/components.d.ts +2 -0
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/index.js +0 -3
- package/themeAugmentation/overrides.d.ts +6 -4
- package/internals/useAnimatedPath.d.ts +0 -1
- package/node/internals/useAnimatedPath.js +0 -42
package/BarChart/BarChart.js
CHANGED
|
@@ -2,17 +2,17 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useThemeProps } from '@mui/material/styles';
|
|
5
|
-
import { BarPlot } from
|
|
6
|
-
import { ResponsiveChartContainer } from
|
|
7
|
-
import { ChartsAxis } from
|
|
8
|
-
import { ChartsTooltip } from
|
|
9
|
-
import { ChartsLegend } from
|
|
10
|
-
import { ChartsAxisHighlight } from
|
|
11
|
-
import { ChartsClipPath } from
|
|
12
|
-
import { ChartsGrid } from
|
|
13
|
-
import { ChartsOnAxisClickHandler } from
|
|
14
|
-
import { ChartsOverlay } from
|
|
15
|
-
import { useBarChartProps } from
|
|
5
|
+
import { BarPlot } from "./BarPlot.js";
|
|
6
|
+
import { ResponsiveChartContainer } from "../ResponsiveChartContainer/index.js";
|
|
7
|
+
import { ChartsAxis } from "../ChartsAxis/index.js";
|
|
8
|
+
import { ChartsTooltip } from "../ChartsTooltip/index.js";
|
|
9
|
+
import { ChartsLegend } from "../ChartsLegend/index.js";
|
|
10
|
+
import { ChartsAxisHighlight } from "../ChartsAxisHighlight/index.js";
|
|
11
|
+
import { ChartsClipPath } from "../ChartsClipPath/index.js";
|
|
12
|
+
import { ChartsGrid } from "../ChartsGrid/index.js";
|
|
13
|
+
import { ChartsOnAxisClickHandler } from "../ChartsOnAxisClickHandler/index.js";
|
|
14
|
+
import { ChartsOverlay } from "../ChartsOverlay/ChartsOverlay.js";
|
|
15
|
+
import { useBarChartProps } from "./useBarChartProps.js";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
/**
|
|
18
18
|
* Demos:
|
|
@@ -47,7 +47,7 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(inProps, ref) {
|
|
|
47
47
|
return /*#__PURE__*/_jsxs(ResponsiveChartContainer, _extends({
|
|
48
48
|
ref: ref
|
|
49
49
|
}, chartContainerProps, {
|
|
50
|
-
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)),
|
|
50
|
+
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
51
51
|
children: [/*#__PURE__*/_jsx(BarPlot, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
52
52
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
53
53
|
}));
|
|
@@ -139,6 +139,17 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
139
139
|
classes: PropTypes.object,
|
|
140
140
|
direction: PropTypes.oneOf(['column', 'row']),
|
|
141
141
|
hidden: PropTypes.bool,
|
|
142
|
+
itemGap: PropTypes.number,
|
|
143
|
+
itemMarkHeight: PropTypes.number,
|
|
144
|
+
itemMarkWidth: PropTypes.number,
|
|
145
|
+
labelStyle: PropTypes.object,
|
|
146
|
+
markGap: PropTypes.number,
|
|
147
|
+
padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
148
|
+
bottom: PropTypes.number,
|
|
149
|
+
left: PropTypes.number,
|
|
150
|
+
right: PropTypes.number,
|
|
151
|
+
top: PropTypes.number
|
|
152
|
+
})]),
|
|
142
153
|
position: PropTypes.shape({
|
|
143
154
|
horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
|
|
144
155
|
vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
|
package/BarChart/BarClipPath.js
CHANGED
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
const _excluded = ["style", "maskId"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { animated } from '@react-spring/web';
|
|
6
|
-
import { getRadius } from
|
|
6
|
+
import { getRadius } from "./getRadius.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const buildInset = corners => `inset(0px round ${corners.topLeft}px ${corners.topRight}px ${corners.bottomRight}px ${corners.bottomLeft}px)`;
|
|
9
9
|
function BarClipRect(props) {
|
package/BarChart/BarElement.js
CHANGED
|
@@ -10,8 +10,8 @@ import { styled } from '@mui/material/styles';
|
|
|
10
10
|
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
11
11
|
import { color as d3Color } from '@mui/x-charts-vendor/d3-color';
|
|
12
12
|
import { animated } from '@react-spring/web';
|
|
13
|
-
import { useInteractionItemProps } from
|
|
14
|
-
import { useItemHighlighted } from
|
|
13
|
+
import { useInteractionItemProps } from "../hooks/useInteractionItemProps.js";
|
|
14
|
+
import { useItemHighlighted } from "../context/index.js";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
export function getBarElementUtilityClass(slot) {
|
|
17
17
|
return generateUtilityClass('MuiBarElement', slot);
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
6
6
|
import { animated } from '@react-spring/web';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { barLabelClasses } from
|
|
8
|
+
import { barLabelClasses } from "./barLabelClasses.js";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export const BarLabelComponent = styled(animated.text, {
|
|
11
11
|
name: 'MuiBarLabel',
|
|
@@ -5,10 +5,10 @@ const _excluded = ["seriesId", "classes", "color", "style", "dataIndex", "barLab
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { useUtilityClasses } from
|
|
9
|
-
import { getBarLabel } from
|
|
10
|
-
import { BarLabel } from
|
|
11
|
-
import { useItemHighlighted } from
|
|
8
|
+
import { useUtilityClasses } from "./barLabelClasses.js";
|
|
9
|
+
import { getBarLabel } from "./getBarLabel.js";
|
|
10
|
+
import { BarLabel } from "./BarLabel.js";
|
|
11
|
+
import { useItemHighlighted } from "../../context/index.js";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
const _excluded = ["bars", "skipAnimation"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useTransition } from '@react-spring/web';
|
|
6
|
-
import { BarLabelItem } from
|
|
6
|
+
import { BarLabelItem } from "./BarLabelItem.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const leaveStyle = ({
|
|
9
9
|
layout,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BarLabel } from
|
|
2
|
-
export { barLabelClasses, getBarLabelUtilityClass } from
|
|
1
|
+
export { BarLabel } from "./BarLabel.js";
|
|
2
|
+
export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.js";
|
package/BarChart/BarPlot.js
CHANGED
|
@@ -4,14 +4,14 @@ const _excluded = ["skipAnimation", "onItemClick", "borderRadius", "barLabel"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useTransition } from '@react-spring/web';
|
|
7
|
-
import { useCartesianContext } from
|
|
8
|
-
import { BarElement } from
|
|
9
|
-
import getColor from
|
|
10
|
-
import { useChartId } from
|
|
11
|
-
import { BarClipPath } from
|
|
12
|
-
import { BarLabelPlot } from
|
|
13
|
-
import { checkScaleErrors } from
|
|
14
|
-
import { useBarSeries } from
|
|
7
|
+
import { useCartesianContext } from "../context/CartesianProvider/index.js";
|
|
8
|
+
import { BarElement } from "./BarElement.js";
|
|
9
|
+
import getColor from "./getColor.js";
|
|
10
|
+
import { useChartId } from "../hooks/index.js";
|
|
11
|
+
import { BarClipPath } from "./BarClipPath.js";
|
|
12
|
+
import { BarLabelPlot } from "./BarLabel/BarLabelPlot.js";
|
|
13
|
+
import { checkScaleErrors } from "./checkScaleErrors.js";
|
|
14
|
+
import { useBarSeries } from "../hooks/useSeries.js";
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
16
|
/**
|
|
17
17
|
* Solution of the equations
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from
|
|
2
|
-
import { isBandScaleConfig, isPointScaleConfig } from
|
|
1
|
+
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from "../constants/index.js";
|
|
2
|
+
import { isBandScaleConfig, isPointScaleConfig } from "../models/axis.js";
|
|
3
3
|
const getAxisMessage = (axisDirection, axisId) => {
|
|
4
4
|
const axisName = `${axisDirection}-axis`;
|
|
5
5
|
const axisIdName = `${axisDirection}Axis`;
|
package/BarChart/formatter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { stack as d3Stack } from '@mui/x-charts-vendor/d3-shape';
|
|
3
|
-
import { getStackingGroups } from
|
|
4
|
-
import { defaultizeValueFormatter } from
|
|
3
|
+
import { getStackingGroups } from "../internals/stackSeries.js";
|
|
4
|
+
import { defaultizeValueFormatter } from "../internals/defaultizeValueFormatter.js";
|
|
5
5
|
let warnOnce = false;
|
|
6
6
|
const formatter = (params, dataset) => {
|
|
7
7
|
const {
|
package/BarChart/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./BarChart.js";
|
|
2
|
+
export * from "./BarPlot.js";
|
|
3
|
+
export * from "./BarElement.js";
|
|
4
|
+
export * from "./BarLabel/index.js";
|
package/BarChart/legend.js
CHANGED
package/BarChart/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getExtremumX, getExtremumY } from
|
|
2
|
-
import formatter from
|
|
3
|
-
import getColor from
|
|
1
|
+
import { getExtremumX, getExtremumY } from "./extremums.js";
|
|
2
|
+
import formatter from "./formatter.js";
|
|
3
|
+
import getColor from "./getColor.js";
|
|
4
4
|
export const plugin = {
|
|
5
5
|
seriesType: 'bar',
|
|
6
6
|
seriesFormatter: formatter,
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["xAxis", "yAxis", "series", "width", "height", "margin", "colors", "dataset", "sx", "tooltip", "onAxisClick", "axisHighlight", "legend", "grid", "topAxis", "leftAxis", "rightAxis", "bottomAxis", "children", "slots", "slotProps", "skipAnimation", "loading", "layout", "onItemClick", "highlightedItem", "onHighlightChange", "borderRadius", "barLabel", "className"];
|
|
4
4
|
import useId from '@mui/utils/useId';
|
|
5
|
-
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from
|
|
5
|
+
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from "../constants/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* A helper function that extracts BarChartProps from the input props
|
|
8
8
|
* and returns an object with props for the children components of BarChart.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,105 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.16.0
|
|
7
|
+
|
|
8
|
+
_Sep 5, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎨 Update the design of Data Grid column headers (#14293)
|
|
13
|
+
- 🧠 Add the `slots` concept introduction documentation page (#13881)
|
|
14
|
+
- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.16.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
|
|
25
|
+
- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
|
|
26
|
+
- [DataGrid] Column header design updates (#14293) @KenanYusuf
|
|
27
|
+
- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
|
|
28
|
+
- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
|
|
29
|
+
- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
|
|
30
|
+
- [DataGrid] Restore reselect behavior (#14410) @romgrk
|
|
31
|
+
- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
|
|
32
|
+
- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@7.16.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@7.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@7.16.0`.
|
|
43
|
+
|
|
44
|
+
### Date and Time Pickers
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers@7.16.0`
|
|
47
|
+
|
|
48
|
+
- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
|
|
49
|
+
- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
|
|
50
|
+
- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-date-pickers-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
53
|
+
|
|
54
|
+
Same changes as in `@mui/x-date-pickers@7.16.0`.
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@7.16.0`
|
|
59
|
+
|
|
60
|
+
- [charts] Fix JSDoc typos (#14497) @alexfauquette
|
|
61
|
+
- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
|
|
62
|
+
- [charts] Fix theme augmentation (#14372) @alexfauquette
|
|
63
|
+
- [charts] Pass all props to legend (#14392) @JCQuintas
|
|
64
|
+
- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
|
|
65
|
+
- [charts] Update `package.json` for vendor package (#14465) @alexfauquette
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@7.0.0-beta.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@7.16.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
|
|
72
|
+
|
|
73
|
+
### Tree View
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-tree-view@7.16.0`
|
|
76
|
+
|
|
77
|
+
- [TreeView] Clean label editing code (#14264) @flaviendelangle
|
|
78
|
+
|
|
79
|
+
### `@mui/x-codemod@7.16.0`
|
|
80
|
+
|
|
81
|
+
- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
|
|
82
|
+
|
|
83
|
+
### Docs
|
|
84
|
+
|
|
85
|
+
- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
|
|
86
|
+
- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
|
|
87
|
+
- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
|
|
88
|
+
- [docs] Remove notion of seats (#14351) @oliviertassinari
|
|
89
|
+
- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
|
|
90
|
+
|
|
91
|
+
### Core
|
|
92
|
+
|
|
93
|
+
- [core] Fix changelog spelling @oliviertassinari
|
|
94
|
+
- [core] Fix failing tests on the pickers (#14457) @flaviendelangle
|
|
95
|
+
- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
|
|
96
|
+
- [code-infra] Add babel runtime version check (#14483) @Janpot
|
|
97
|
+
- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
|
|
98
|
+
- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
|
|
99
|
+
- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
|
|
100
|
+
- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
|
|
101
|
+
- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
|
|
102
|
+
|
|
6
103
|
## 7.15.0
|
|
7
104
|
|
|
8
105
|
_Aug 29, 2024_
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { DrawingProvider } from
|
|
5
|
-
import { SeriesProvider } from
|
|
6
|
-
import { InteractionProvider } from
|
|
7
|
-
import { ChartsSurface } from
|
|
8
|
-
import { CartesianProvider } from
|
|
9
|
-
import { ChartsAxesGradients } from
|
|
10
|
-
import { HighlightedProvider, ZAxisContextProvider } from
|
|
11
|
-
import { PluginProvider } from
|
|
12
|
-
import { useChartContainerProps } from
|
|
4
|
+
import { DrawingProvider } from "../context/DrawingProvider.js";
|
|
5
|
+
import { SeriesProvider } from "../context/SeriesProvider/index.js";
|
|
6
|
+
import { InteractionProvider } from "../context/InteractionProvider.js";
|
|
7
|
+
import { ChartsSurface } from "../ChartsSurface/index.js";
|
|
8
|
+
import { CartesianProvider } from "../context/CartesianProvider/index.js";
|
|
9
|
+
import { ChartsAxesGradients } from "../internals/components/ChartsAxesGradients/index.js";
|
|
10
|
+
import { HighlightedProvider, ZAxisContextProvider } from "../context/index.js";
|
|
11
|
+
import { PluginProvider } from "../context/PluginProvider/index.js";
|
|
12
|
+
import { useChartContainerProps } from "./useChartContainerProps.js";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
const ChartContainer = /*#__PURE__*/React.forwardRef(function ChartContainer(props, ref) {
|
|
15
15
|
const {
|
package/ChartContainer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ChartContainer.js";
|
|
@@ -3,8 +3,8 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
const _excluded = ["width", "height", "series", "margin", "xAxis", "yAxis", "zAxis", "colors", "dataset", "sx", "title", "desc", "disableAxisListener", "highlightedItem", "onHighlightChange", "plugins", "children"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import useForkRef from '@mui/utils/useForkRef';
|
|
6
|
-
import { useDefaultizeAxis } from
|
|
7
|
-
import { useReducedMotion } from
|
|
6
|
+
import { useDefaultizeAxis } from "./useDefaultizeAxis.js";
|
|
7
|
+
import { useReducedMotion } from "../hooks/useReducedMotion.js";
|
|
8
8
|
export const useChartContainerProps = (props, ref) => {
|
|
9
9
|
const {
|
|
10
10
|
width,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from
|
|
3
|
+
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from "../constants/index.js";
|
|
4
4
|
const defaultizeAxis = (inAxis, dataset, axisName) => {
|
|
5
5
|
const DEFAULT_AXIS_KEY = axisName === 'x' ? DEFAULT_X_AXIS_KEY : DEFAULT_Y_AXIS_KEY;
|
|
6
6
|
return [...(inAxis?.map((axis, index) => _extends({
|
package/ChartsAxis/ChartsAxis.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useCartesianContext } from
|
|
5
|
-
import { ChartsXAxis } from
|
|
6
|
-
import { ChartsYAxis } from
|
|
4
|
+
import { useCartesianContext } from "../context/CartesianProvider/index.js";
|
|
5
|
+
import { ChartsXAxis } from "../ChartsXAxis/index.js";
|
|
6
|
+
import { ChartsYAxis } from "../ChartsYAxis/index.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const getAxisId = (propsValue, defaultAxisId) => {
|
|
9
9
|
if (propsValue == null) {
|
package/ChartsAxis/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./ChartsAxis.js";
|
|
2
|
+
export * from "./axisClasses.js";
|
|
@@ -5,10 +5,10 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
5
5
|
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
6
6
|
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
7
7
|
import { styled } from '@mui/material/styles';
|
|
8
|
-
import { InteractionContext } from
|
|
9
|
-
import { useCartesianContext } from
|
|
10
|
-
import { getValueToPositionMapper } from
|
|
11
|
-
import { isBandScale } from
|
|
8
|
+
import { InteractionContext } from "../context/InteractionProvider.js";
|
|
9
|
+
import { useCartesianContext } from "../context/CartesianProvider/index.js";
|
|
10
|
+
import { getValueToPositionMapper } from "../hooks/useScale.js";
|
|
11
|
+
import { isBandScale } from "../internals/isBandScale.js";
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
export function getAxisHighlightUtilityClass(slot) {
|
|
14
14
|
return generateUtilityClass('MuiChartsAxisHighlight', slot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ChartsAxisHighlight.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useDrawingArea } from
|
|
4
|
+
import { useDrawingArea } from "../hooks/useDrawingArea.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
/**
|
|
7
7
|
* API:
|
package/ChartsClipPath/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ChartsClipPath.js";
|
package/ChartsGrid/ChartsGrid.js
CHANGED
|
@@ -4,32 +4,14 @@ const _excluded = ["vertical", "horizontal"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import {
|
|
8
|
-
import { useCartesianContext } from
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { useThemeProps } from '@mui/material/styles';
|
|
8
|
+
import { useCartesianContext } from "../context/CartesianProvider/index.js";
|
|
9
|
+
import { getChartsGridUtilityClass } from "./chartsGridClasses.js";
|
|
10
|
+
import { useDrawingArea } from "../hooks/useDrawingArea.js";
|
|
11
|
+
import { GridRoot } from "./styledCommonents.js";
|
|
12
|
+
import { ChartsGridVertical } from "./ChartsVerticalGrid.js";
|
|
13
|
+
import { ChartsGridHorizontal } from "./ChartsHorizontalGrid.js";
|
|
12
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
const GridRoot = styled('g', {
|
|
14
|
-
name: 'MuiChartsGrid',
|
|
15
|
-
slot: 'Root',
|
|
16
|
-
overridesResolver: (props, styles) => [{
|
|
17
|
-
[`&.${chartsGridClasses.verticalLine}`]: styles.verticalLine
|
|
18
|
-
}, {
|
|
19
|
-
[`&.${chartsGridClasses.horizontalLine}`]: styles.horizontalLine
|
|
20
|
-
}, styles.root]
|
|
21
|
-
})({});
|
|
22
|
-
const GridLine = styled('line', {
|
|
23
|
-
name: 'MuiChartsGrid',
|
|
24
|
-
slot: 'Line',
|
|
25
|
-
overridesResolver: (props, styles) => styles.line
|
|
26
|
-
})(({
|
|
27
|
-
theme
|
|
28
|
-
}) => ({
|
|
29
|
-
stroke: (theme.vars || theme).palette.divider,
|
|
30
|
-
shapeRendering: 'crispEdges',
|
|
31
|
-
strokeWidth: 1
|
|
32
|
-
}));
|
|
33
15
|
const useUtilityClasses = ({
|
|
34
16
|
classes
|
|
35
17
|
}) => {
|
|
@@ -67,49 +49,19 @@ function ChartsGrid(inProps) {
|
|
|
67
49
|
yAxisIds
|
|
68
50
|
} = useCartesianContext();
|
|
69
51
|
const classes = useUtilityClasses(props);
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const {
|
|
73
|
-
scale: xScale,
|
|
74
|
-
tickNumber: xTickNumber,
|
|
75
|
-
tickInterval: xTickInterval
|
|
76
|
-
} = xAxis[verticalAxisId];
|
|
77
|
-
const {
|
|
78
|
-
scale: yScale,
|
|
79
|
-
tickNumber: yTickNumber,
|
|
80
|
-
tickInterval: yTickInterval
|
|
81
|
-
} = yAxis[horizontalAxisId];
|
|
82
|
-
const xTicks = useTicks({
|
|
83
|
-
scale: xScale,
|
|
84
|
-
tickNumber: xTickNumber,
|
|
85
|
-
tickInterval: xTickInterval
|
|
86
|
-
});
|
|
87
|
-
const yTicks = useTicks({
|
|
88
|
-
scale: yScale,
|
|
89
|
-
tickNumber: yTickNumber,
|
|
90
|
-
tickInterval: yTickInterval
|
|
91
|
-
});
|
|
52
|
+
const horizontalAxis = yAxis[yAxisIds[0]];
|
|
53
|
+
const verticalAxis = xAxis[xAxisIds[0]];
|
|
92
54
|
return /*#__PURE__*/_jsxs(GridRoot, _extends({}, other, {
|
|
93
55
|
className: classes.root,
|
|
94
|
-
children: [vertical &&
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}, `vertical-${formattedValue}`)), horizontal && yTicks.map(({
|
|
104
|
-
formattedValue,
|
|
105
|
-
offset
|
|
106
|
-
}) => /*#__PURE__*/_jsx(GridLine, {
|
|
107
|
-
y1: offset,
|
|
108
|
-
y2: offset,
|
|
109
|
-
x1: drawingArea.left,
|
|
110
|
-
x2: drawingArea.left + drawingArea.width,
|
|
111
|
-
className: classes.horizontalLine
|
|
112
|
-
}, `horizontal-${formattedValue}`))]
|
|
56
|
+
children: [vertical && /*#__PURE__*/_jsx(ChartsGridVertical, {
|
|
57
|
+
axis: verticalAxis,
|
|
58
|
+
drawingArea: drawingArea,
|
|
59
|
+
classes: classes
|
|
60
|
+
}), horizontal && /*#__PURE__*/_jsx(ChartsGridHorizontal, {
|
|
61
|
+
axis: horizontalAxis,
|
|
62
|
+
drawingArea: drawingArea,
|
|
63
|
+
classes: classes
|
|
64
|
+
})]
|
|
113
65
|
}));
|
|
114
66
|
}
|
|
115
67
|
process.env.NODE_ENV !== "production" ? ChartsGrid.propTypes = {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DrawingArea } from '../context/DrawingProvider';
|
|
3
|
+
import { AxisDefaultized, ChartsYAxisProps, ScaleName } from '../models/axis';
|
|
4
|
+
import { ChartsGridClasses } from './chartsGridClasses';
|
|
5
|
+
interface ChartsGridHorizontalProps {
|
|
6
|
+
axis: AxisDefaultized<ScaleName, any, ChartsYAxisProps>;
|
|
7
|
+
drawingArea: DrawingArea;
|
|
8
|
+
classes: Partial<ChartsGridClasses>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @ignore - internal component.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ChartsGridHorizontal(props: ChartsGridHorizontalProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useTicks } from "../hooks/useTicks.js";
|
|
3
|
+
import { GridLine } from "./styledCommonents.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - internal component.
|
|
7
|
+
*/
|
|
8
|
+
export function ChartsGridHorizontal(props) {
|
|
9
|
+
const {
|
|
10
|
+
axis,
|
|
11
|
+
drawingArea,
|
|
12
|
+
classes
|
|
13
|
+
} = props;
|
|
14
|
+
const {
|
|
15
|
+
scale,
|
|
16
|
+
tickNumber,
|
|
17
|
+
tickInterval
|
|
18
|
+
} = axis;
|
|
19
|
+
const yTicks = useTicks({
|
|
20
|
+
scale,
|
|
21
|
+
tickNumber,
|
|
22
|
+
tickInterval
|
|
23
|
+
});
|
|
24
|
+
return /*#__PURE__*/_jsx(React.Fragment, {
|
|
25
|
+
children: yTicks.map(({
|
|
26
|
+
formattedValue,
|
|
27
|
+
offset
|
|
28
|
+
}) => /*#__PURE__*/_jsx(GridLine, {
|
|
29
|
+
y1: offset,
|
|
30
|
+
y2: offset,
|
|
31
|
+
x1: drawingArea.left,
|
|
32
|
+
x2: drawingArea.left + drawingArea.width,
|
|
33
|
+
className: classes.horizontalLine
|
|
34
|
+
}, `horizontal-${formattedValue}`))
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DrawingArea } from '../context/DrawingProvider';
|
|
3
|
+
import { AxisDefaultized, ChartsXAxisProps, ScaleName } from '../models/axis';
|
|
4
|
+
import { ChartsGridClasses } from './chartsGridClasses';
|
|
5
|
+
interface ChartsGridVerticalProps {
|
|
6
|
+
axis: AxisDefaultized<ScaleName, any, ChartsXAxisProps>;
|
|
7
|
+
drawingArea: DrawingArea;
|
|
8
|
+
classes: Partial<ChartsGridClasses>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @ignore - internal component.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ChartsGridVertical(props: ChartsGridVerticalProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useTicks } from "../hooks/useTicks.js";
|
|
3
|
+
import { GridLine } from "./styledCommonents.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - internal component.
|
|
7
|
+
*/
|
|
8
|
+
export function ChartsGridVertical(props) {
|
|
9
|
+
const {
|
|
10
|
+
axis,
|
|
11
|
+
drawingArea,
|
|
12
|
+
classes
|
|
13
|
+
} = props;
|
|
14
|
+
const {
|
|
15
|
+
scale,
|
|
16
|
+
tickNumber,
|
|
17
|
+
tickInterval
|
|
18
|
+
} = axis;
|
|
19
|
+
const xTicks = useTicks({
|
|
20
|
+
scale,
|
|
21
|
+
tickNumber,
|
|
22
|
+
tickInterval
|
|
23
|
+
});
|
|
24
|
+
return /*#__PURE__*/_jsx(React.Fragment, {
|
|
25
|
+
children: xTicks.map(({
|
|
26
|
+
formattedValue,
|
|
27
|
+
offset
|
|
28
|
+
}) => /*#__PURE__*/_jsx(GridLine, {
|
|
29
|
+
y1: drawingArea.top,
|
|
30
|
+
y2: drawingArea.top + drawingArea.height,
|
|
31
|
+
x1: offset,
|
|
32
|
+
x2: offset,
|
|
33
|
+
className: classes.verticalLine
|
|
34
|
+
}, `vertical-${formattedValue}`))
|
|
35
|
+
});
|
|
36
|
+
}
|
package/ChartsGrid/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./ChartsGrid.js";
|
|
2
|
+
export * from "./chartsGridClasses.js";
|