@mui/x-charts 9.0.0-alpha.2 → 9.0.0-alpha.4
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/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +41 -8
- package/BarChart/BarChart.mjs +41 -8
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarElement.js +7 -8
- package/BarChart/BarElement.mjs +6 -7
- package/BarChart/BarLabel/BarLabel.js +1 -7
- package/BarChart/BarLabel/BarLabel.mjs +1 -7
- package/BarChart/BarLabel/BarLabel.types.d.mts +2 -2
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/BarChart/BarLabel/BarLabelItem.js +7 -8
- package/BarChart/BarLabel/BarLabelItem.mjs +6 -7
- package/BarChart/BarLabel/index.d.mts +1 -3
- package/BarChart/BarLabel/index.d.ts +1 -3
- package/BarChart/BarLabel/index.js +1 -14
- package/BarChart/BarLabel/index.mjs +1 -2
- package/BarChart/BarPlot.d.mts +4 -0
- package/BarChart/BarPlot.d.ts +4 -0
- package/BarChart/BarPlot.js +9 -4
- package/BarChart/BarPlot.mjs +10 -5
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/barClasses.d.mts +21 -1
- package/BarChart/barClasses.d.ts +21 -1
- package/BarChart/barClasses.js +9 -3
- package/BarChart/barClasses.mjs +9 -3
- package/BarChart/index.d.mts +1 -2
- package/BarChart/index.d.ts +1 -2
- package/BarChart/index.js +1 -20
- package/BarChart/index.mjs +1 -2
- package/BarChart/seriesConfig/bar/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +2 -2
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +246 -1
- package/ChartsAxis/index.d.mts +2 -1
- package/ChartsAxis/index.d.ts +2 -1
- package/ChartsAxis/index.js +11 -11
- package/ChartsAxis/index.mjs +1 -1
- package/ChartsAxisHighlight/index.d.mts +2 -1
- package/ChartsAxisHighlight/index.d.ts +2 -1
- package/ChartsAxisHighlight/index.js +12 -10
- package/ChartsAxisHighlight/index.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
- package/ChartsContainer/ChartsContainer.d.mts +1 -1
- package/ChartsContainer/ChartsContainer.d.ts +1 -1
- package/ChartsContainer/ChartsContainer.js +52 -15
- package/ChartsContainer/ChartsContainer.mjs +52 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +4 -4
- package/ChartsContainer/useChartsContainerProps.d.ts +4 -4
- package/ChartsContainer/useChartsContainerProps.js +10 -10
- package/ChartsContainer/useChartsContainerProps.mjs +10 -10
- package/ChartsDataProvider/ChartsDataProvider.d.mts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.d.ts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +4 -0
- package/ChartsGrid/ChartsGrid.d.ts +4 -0
- package/ChartsGrid/ChartsGrid.js +4 -2
- package/ChartsGrid/ChartsGrid.mjs +4 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
- package/ChartsGrid/index.d.mts +2 -1
- package/ChartsGrid/index.d.ts +2 -1
- package/ChartsGrid/index.js +11 -11
- package/ChartsGrid/index.mjs +1 -1
- package/ChartsLabel/ChartsLabelMark.d.mts +8 -1
- package/ChartsLabel/ChartsLabelMark.d.ts +8 -1
- package/ChartsLabel/ChartsLabelMark.js +29 -3
- package/ChartsLabel/ChartsLabelMark.mjs +29 -3
- package/ChartsLabel/labelMarkClasses.d.mts +2 -0
- package/ChartsLabel/labelMarkClasses.d.ts +2 -0
- package/ChartsLabel/labelMarkClasses.js +1 -1
- package/ChartsLabel/labelMarkClasses.mjs +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +49 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +50 -10
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
- package/ChartsLegend/ChartsLegend.js +6 -4
- package/ChartsLegend/ChartsLegend.mjs +6 -4
- package/ChartsLegend/legendContext.types.d.mts +1 -6
- package/ChartsLegend/legendContext.types.d.ts +1 -6
- package/ChartsLegend/onClickContextBuilder.js +0 -1
- package/ChartsLegend/onClickContextBuilder.mjs +0 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
- package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
- package/ChartsReferenceLine/index.d.mts +2 -1
- package/ChartsReferenceLine/index.d.ts +2 -1
- package/ChartsReferenceLine/index.js +11 -11
- package/ChartsReferenceLine/index.mjs +1 -2
- package/ChartsSurface/ChartsSurface.d.mts +2 -3
- package/ChartsSurface/ChartsSurface.d.ts +2 -3
- package/ChartsSurface/ChartsSurface.js +14 -2
- package/ChartsSurface/ChartsSurface.mjs +14 -2
- package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.js +9 -31
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -29
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -29
- package/ChartsTooltip/ChartsItemTooltipContent.js +80 -40
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +79 -40
- package/ChartsTooltip/ChartsTooltipContainer.js +10 -4
- package/ChartsTooltip/ChartsTooltipContainer.mjs +9 -3
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/index.d.mts +1 -2
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +1 -16
- package/ChartsTooltip/index.mjs +1 -2
- package/ChartsTooltip/useAxesTooltip.d.mts +3 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +3 -3
- package/ChartsTooltip/useAxesTooltip.js +6 -4
- package/ChartsTooltip/useAxesTooltip.mjs +6 -4
- package/ChartsTooltip/useItemTooltip.d.mts +3 -3
- package/ChartsTooltip/useItemTooltip.d.ts +3 -3
- package/ChartsTooltip/utils.d.mts +0 -4
- package/ChartsTooltip/utils.d.ts +0 -4
- package/ChartsTooltip/utils.js +0 -39
- package/ChartsTooltip/utils.mjs +0 -38
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +367 -286
- package/ChartsXAxis/useAxisTicksProps.d.ts +367 -286
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +367 -286
- package/ChartsYAxis/useAxisTicksProps.d.ts +367 -286
- package/Gauge/Gauge.js +12 -0
- package/Gauge/Gauge.mjs +12 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +14 -2
- package/Gauge/GaugeContainer.mjs +14 -2
- package/Gauge/index.d.mts +2 -1
- package/Gauge/index.d.ts +2 -1
- package/Gauge/index.js +7 -11
- package/Gauge/index.mjs +1 -1
- package/LineChart/AreaElement.d.mts +2 -23
- package/LineChart/AreaElement.d.ts +2 -23
- package/LineChart/AreaElement.js +10 -29
- package/LineChart/AreaElement.mjs +10 -27
- package/LineChart/AreaPlot.js +10 -4
- package/LineChart/AreaPlot.mjs +11 -5
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +10 -11
- package/LineChart/CircleMarkElement.mjs +10 -11
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +38 -11
- package/LineChart/LineChart.mjs +38 -11
- package/LineChart/LineElement.d.mts +2 -23
- package/LineChart/LineElement.d.ts +2 -23
- package/LineChart/LineElement.js +10 -29
- package/LineChart/LineElement.mjs +10 -27
- package/LineChart/LineHighlightElement.d.mts +0 -8
- package/LineChart/LineHighlightElement.d.ts +0 -8
- package/LineChart/LineHighlightElement.js +4 -22
- package/LineChart/LineHighlightElement.mjs +4 -20
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/LinePlot.js +11 -5
- package/LineChart/LinePlot.mjs +12 -6
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +10 -4
- package/LineChart/MarkElement.mjs +10 -4
- package/LineChart/MarkPlot.js +21 -11
- package/LineChart/MarkPlot.mjs +22 -12
- package/LineChart/index.d.mts +2 -2
- package/LineChart/index.d.ts +2 -2
- package/LineChart/index.js +4 -11
- package/LineChart/index.mjs +1 -1
- package/LineChart/lineClasses.d.mts +34 -0
- package/LineChart/lineClasses.d.ts +34 -0
- package/LineChart/lineClasses.js +32 -0
- package/LineChart/lineClasses.mjs +23 -0
- package/LineChart/seriesConfig/legend.js +1 -0
- package/LineChart/seriesConfig/legend.mjs +1 -0
- package/LineChart/seriesConfig/seriesProcessor.js +9 -6
- package/LineChart/seriesConfig/seriesProcessor.mjs +9 -6
- package/LineChart/seriesConfig/tooltip.js +2 -1
- package/LineChart/seriesConfig/tooltip.mjs +2 -1
- package/LineChart/useLineChartProps.d.mts +2 -2
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +2 -2
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.js +7 -8
- package/PieChart/FocusedPieArc.mjs +8 -8
- package/PieChart/PieArc.d.mts +1 -35
- package/PieChart/PieArc.d.ts +1 -35
- package/PieChart/PieArc.js +6 -27
- package/PieChart/PieArc.mjs +6 -25
- package/PieChart/PieArcLabel.d.mts +3 -30
- package/PieChart/PieArcLabel.d.ts +3 -30
- package/PieChart/PieArcLabel.js +9 -31
- package/PieChart/PieArcLabel.mjs +8 -28
- package/PieChart/PieArcLabelPlot.js +6 -3
- package/PieChart/PieArcLabelPlot.mjs +6 -3
- package/PieChart/PieArcPlot.js +6 -1
- package/PieChart/PieArcPlot.mjs +6 -1
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +22 -7
- package/PieChart/PieChart.mjs +22 -7
- package/PieChart/PiePlot.d.mts +1 -0
- package/PieChart/PiePlot.d.ts +1 -0
- package/PieChart/PiePlot.js +4 -1
- package/PieChart/PiePlot.mjs +4 -1
- package/PieChart/dataTransform/useTransformData.js +6 -8
- package/PieChart/dataTransform/useTransformData.mjs +6 -8
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/pieClasses.d.mts +22 -1
- package/PieChart/pieClasses.d.ts +22 -1
- package/PieChart/pieClasses.js +10 -3
- package/PieChart/pieClasses.mjs +10 -3
- package/PieChart/seriesConfig/legend.js +0 -2
- package/PieChart/seriesConfig/legend.mjs +0 -2
- package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
- package/RadarChart/RadarAxis/index.d.mts +1 -2
- package/RadarChart/RadarAxis/index.d.ts +1 -2
- package/RadarChart/RadarAxis/index.js +1 -13
- package/RadarChart/RadarAxis/index.mjs +1 -2
- package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
- package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
- package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
- package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
- package/RadarChart/RadarChart.js +20 -2
- package/RadarChart/RadarChart.mjs +20 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +2 -2
- package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
- package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/index.d.mts +1 -2
- package/RadarChart/RadarGrid/index.d.ts +1 -2
- package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
- package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +9 -12
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +8 -11
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
- package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
- package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
- package/RadarChart/RadarSeriesPlot/index.js +2 -10
- package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +10 -18
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +10 -18
- package/RadarChart/index.d.mts +3 -1
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/index.mjs +2 -1
- package/RadarChart/radarClasses.d.mts +30 -0
- package/RadarChart/radarClasses.d.ts +30 -0
- package/RadarChart/radarClasses.js +33 -0
- package/RadarChart/radarClasses.mjs +24 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/RadarChart/seriesConfig/tooltip.js +13 -8
- package/RadarChart/seriesConfig/tooltip.mjs +13 -8
- package/RadarChart/useRadarChartProps.js +3 -3
- package/RadarChart/useRadarChartProps.mjs +3 -3
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/BatchScatter.js +8 -6
- package/ScatterChart/BatchScatter.mjs +7 -6
- package/ScatterChart/FocusedScatterMark.d.mts +4 -1
- package/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/ScatterChart/FocusedScatterMark.js +12 -2
- package/ScatterChart/FocusedScatterMark.mjs +11 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/Scatter.js +14 -12
- package/ScatterChart/Scatter.mjs +14 -12
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +60 -15
- package/ScatterChart/ScatterChart.mjs +60 -15
- package/ScatterChart/ScatterPlot.d.mts +2 -1
- package/ScatterChart/ScatterPlot.d.ts +2 -1
- package/ScatterChart/ScatterPlot.js +16 -2
- package/ScatterChart/ScatterPlot.mjs +16 -2
- package/ScatterChart/index.d.mts +2 -2
- package/ScatterChart/index.d.ts +2 -2
- package/ScatterChart/scatterClasses.d.mts +14 -2
- package/ScatterChart/scatterClasses.d.ts +14 -2
- package/ScatterChart/scatterClasses.js +9 -3
- package/ScatterChart/scatterClasses.mjs +9 -3
- package/ScatterChart/seriesConfig/legend.js +2 -21
- package/ScatterChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/useScatterChartProps.d.mts +2 -2
- package/ScatterChart/useScatterChartProps.d.ts +2 -2
- package/ScatterChart/useScatterChartProps.js +9 -8
- package/ScatterChart/useScatterChartProps.mjs +9 -8
- package/SparkLineChart/SparkLineChart.d.mts +2 -2
- package/SparkLineChart/SparkLineChart.d.ts +2 -2
- package/SparkLineChart/SparkLineChart.js +45 -12
- package/SparkLineChart/SparkLineChart.mjs +45 -12
- package/context/ChartApi.d.mts +1 -1
- package/context/ChartApi.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.mts +3 -3
- package/context/ChartsProvider/ChartsProvider.types.d.ts +3 -3
- package/context/useChartApiContext.d.mts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/context/useChartApiContext.js +3 -3
- package/context/useChartApiContext.mjs +3 -3
- package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.js +6 -10
- package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
- package/hooks/index.d.mts +2 -2
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +8 -8
- package/hooks/index.mjs +2 -2
- package/hooks/useChartRootRef.js +2 -2
- package/hooks/useChartRootRef.mjs +2 -2
- package/hooks/useChartsLayerContainerRef.js +2 -2
- package/hooks/useChartsLayerContainerRef.mjs +2 -2
- package/hooks/useDataset.js +1 -1
- package/hooks/useDataset.mjs +2 -2
- package/hooks/useInteractionItemProps.d.mts +1 -2
- package/hooks/useInteractionItemProps.d.ts +1 -2
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- package/hooks/{useItemHighlighted.d.mts → useItemHighlightState.d.mts} +5 -13
- package/hooks/{useItemHighlighted.d.ts → useItemHighlightState.d.ts} +5 -13
- package/hooks/{useItemHighlighted.js → useItemHighlightState.js} +5 -10
- package/hooks/useItemHighlightState.mjs +17 -0
- package/hooks/useItemHighlightStateGetter.d.mts +9 -0
- package/hooks/useItemHighlightStateGetter.d.ts +9 -0
- package/hooks/useItemHighlightStateGetter.js +21 -0
- package/hooks/useItemHighlightStateGetter.mjs +16 -0
- package/hooks/useTicks.js +2 -2
- package/hooks/useTicks.mjs +2 -2
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.js +2 -22
- package/index.mjs +1 -3
- package/internals/commonNextFocusItem.d.mts +5 -5
- package/internals/commonNextFocusItem.d.ts +5 -5
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
- package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
- package/internals/identifierCleaner.d.mts +8 -4
- package/internals/identifierCleaner.d.ts +8 -4
- package/internals/identifierCleaner.js +4 -1
- package/internals/identifierCleaner.mjs +4 -1
- package/internals/identifierSerializer.d.mts +10 -2
- package/internals/identifierSerializer.d.ts +10 -2
- package/internals/identifierSerializer.js +8 -0
- package/internals/identifierSerializer.mjs +8 -0
- package/internals/index.d.mts +2 -3
- package/internals/index.d.ts +2 -3
- package/internals/index.js +27 -36
- package/internals/index.mjs +2 -3
- package/internals/legendUtils.d.mts +11 -0
- package/internals/legendUtils.d.ts +11 -0
- package/internals/legendUtils.js +28 -0
- package/internals/legendUtils.mjs +22 -0
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.mts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +1 -6
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +24 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +23 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.mts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.mts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.ts +3 -3
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.mts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +0 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.mjs +0 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +27 -64
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +24 -60
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +8 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +8 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +6 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +6 -4
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.mts +16 -16
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +16 -16
- package/internals/plugins/models/chart.d.mts +1 -1
- package/internals/plugins/models/chart.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +4 -0
- package/locales/elGR.d.ts +4 -0
- package/locales/elGR.js +6 -0
- package/locales/elGR.mjs +6 -0
- package/locales/enUS.d.mts +4 -0
- package/locales/enUS.d.ts +4 -0
- package/locales/enUS.js +6 -1
- package/locales/enUS.mjs +6 -1
- package/locales/frFR.d.mts +4 -0
- package/locales/frFR.d.ts +4 -0
- package/locales/frFR.js +6 -1
- package/locales/frFR.mjs +6 -1
- package/locales/nbNO.d.mts +4 -0
- package/locales/nbNO.d.ts +4 -0
- package/locales/nbNO.js +6 -0
- package/locales/nbNO.mjs +6 -0
- package/locales/ptBR.d.mts +4 -0
- package/locales/ptBR.d.ts +4 -0
- package/locales/ptBR.js +6 -0
- package/locales/ptBR.mjs +6 -0
- package/locales/ptPT.d.mts +4 -0
- package/locales/ptPT.d.ts +4 -0
- package/locales/ptPT.js +102 -99
- package/locales/ptPT.mjs +102 -99
- package/locales/svSE.d.mts +4 -0
- package/locales/svSE.d.ts +4 -0
- package/locales/svSE.js +6 -0
- package/locales/svSE.mjs +6 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +16 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +16 -0
- package/locales/utils/getChartsLocalization.d.mts +4 -0
- package/locales/utils/getChartsLocalization.d.ts +4 -0
- package/models/axis.d.mts +4 -0
- package/models/axis.d.ts +4 -0
- package/models/seriesType/composition.d.mts +1 -1
- package/models/seriesType/composition.d.ts +1 -1
- package/models/seriesType/composition.js +1 -1
- package/models/seriesType/composition.mjs +1 -1
- package/models/seriesType/config.d.mts +18 -6
- package/models/seriesType/config.d.ts +18 -6
- package/models/seriesType/index.d.mts +8 -8
- package/models/seriesType/index.d.ts +8 -8
- package/models/seriesType/line.d.mts +4 -2
- package/models/seriesType/line.d.ts +4 -2
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +86 -114
- package/themeAugmentation/components.d.mts +22 -17
- package/themeAugmentation/components.d.ts +22 -17
- package/themeAugmentation/overrides.d.mts +10 -8
- package/themeAugmentation/overrides.d.ts +10 -8
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -26
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -26
- package/BarChart/BarLabel/barLabelClasses.js +0 -30
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -20
- package/BarChart/barElementClasses.d.mts +0 -33
- package/BarChart/barElementClasses.d.ts +0 -33
- package/BarChart/barElementClasses.js +0 -29
- package/BarChart/barElementClasses.mjs +0 -19
- package/ChartContainer/ChartContainer.d.mts +0 -22
- package/ChartContainer/ChartContainer.d.ts +0 -22
- package/ChartContainer/ChartContainer.js +0 -24
- package/ChartContainer/ChartContainer.mjs +0 -20
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -1
- package/ChartContainer/useChartContainerProps.d.mts +0 -13
- package/ChartContainer/useChartContainerProps.d.ts +0 -13
- package/ChartContainer/useChartContainerProps.js +0 -19
- package/ChartContainer/useChartContainerProps.mjs +0 -14
- package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
- package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
- package/ChartDataProvider/ChartDataProvider.js +0 -24
- package/ChartDataProvider/ChartDataProvider.mjs +0 -20
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.js +0 -12
- package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
- package/LineChart/markElementClasses.d.mts +0 -33
- package/LineChart/markElementClasses.d.ts +0 -33
- package/LineChart/markElementClasses.js +0 -29
- package/LineChart/markElementClasses.mjs +0 -20
- package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
- package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
- package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
- package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
- package/context/ChartProvider/ChartContext.d.mts +0 -5
- package/context/ChartProvider/ChartContext.d.ts +0 -5
- package/context/ChartProvider/ChartContext.js +0 -13
- package/context/ChartProvider/ChartContext.mjs +0 -9
- package/context/ChartProvider/ChartProvider.d.mts +0 -5
- package/context/ChartProvider/ChartProvider.d.ts +0 -5
- package/context/ChartProvider/ChartProvider.js +0 -12
- package/context/ChartProvider/ChartProvider.mjs +0 -8
- package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
- package/context/ChartProvider/index.d.mts +0 -3
- package/context/ChartProvider/index.d.ts +0 -3
- package/context/ChartProvider/index.js +0 -38
- package/context/ChartProvider/index.mjs +0 -3
- package/context/ChartProvider/useChartContext.d.mts +0 -4
- package/context/ChartProvider/useChartContext.d.ts +0 -4
- package/context/ChartProvider/useChartContext.js +0 -12
- package/context/ChartProvider/useChartContext.mjs +0 -8
- package/hooks/useItemHighlighted.mjs +0 -22
- package/hooks/useItemHighlightedGetter.d.mts +0 -53
- package/hooks/useItemHighlightedGetter.d.ts +0 -53
- package/hooks/useItemHighlightedGetter.js +0 -26
- package/hooks/useItemHighlightedGetter.mjs +0 -21
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
- /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
- /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
package/PieChart/PieArc.d.ts
CHANGED
|
@@ -1,39 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
export interface PieArcClasses {
|
|
4
|
-
/** Styles applied to the root element. */
|
|
5
|
-
root: string;
|
|
6
|
-
/**
|
|
7
|
-
* Styles applied to the root element when highlighted.
|
|
8
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
9
|
-
*/
|
|
10
|
-
highlighted: string;
|
|
11
|
-
/**
|
|
12
|
-
* Styles applied to the root element when faded.
|
|
13
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
14
|
-
*/
|
|
15
|
-
faded: string;
|
|
16
|
-
/**
|
|
17
|
-
* Styles applied to the root element for a specified series.
|
|
18
|
-
* Needs to be suffixed with the series ID: `.${pieArcClasses.series}-${seriesId}`.
|
|
19
|
-
*/
|
|
20
|
-
series: string;
|
|
21
|
-
/** Styles applied to the focus indicator element. */
|
|
22
|
-
focusIndicator: string;
|
|
23
|
-
}
|
|
24
|
-
export type PieArcClassKey = keyof PieArcClasses;
|
|
25
|
-
interface PieArcOwnerState {
|
|
26
|
-
seriesId: SeriesId;
|
|
27
|
-
dataIndex: number;
|
|
28
|
-
color: string;
|
|
29
|
-
isFaded: boolean;
|
|
30
|
-
isHighlighted: boolean;
|
|
31
|
-
isFocused: boolean;
|
|
32
|
-
stroke?: string;
|
|
33
|
-
classes?: Partial<PieArcClasses>;
|
|
34
|
-
}
|
|
35
|
-
export declare function getPieArcUtilityClass(slot: string): string;
|
|
36
|
-
export declare const pieArcClasses: PieArcClasses;
|
|
2
|
+
import { type PieArcOwnerState } from "./pieClasses.js";
|
|
37
3
|
export type PieArcProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & PieArcOwnerState & {
|
|
38
4
|
cornerRadius: number;
|
|
39
5
|
endAngle: number;
|
package/PieChart/PieArc.js
CHANGED
|
@@ -7,43 +7,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.PieArc = void 0;
|
|
10
|
-
exports.getPieArcUtilityClass = getPieArcUtilityClass;
|
|
11
|
-
exports.pieArcClasses = void 0;
|
|
12
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
14
12
|
var React = _interopRequireWildcard(require("react"));
|
|
15
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
|
-
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
18
|
-
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
19
15
|
var _styles = require("@mui/material/styles");
|
|
20
|
-
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
21
16
|
var _hooks = require("../hooks");
|
|
22
17
|
var _animation = require("../internals/animation/animation");
|
|
23
18
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
19
|
+
var _pieClasses = require("./pieClasses");
|
|
24
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
21
|
const _excluded = ["className", "classes", "color", "dataIndex", "seriesId", "isFaded", "isHighlighted", "isFocused", "onClick", "cornerRadius", "startAngle", "endAngle", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "stroke", "skipInteraction"];
|
|
26
|
-
function getPieArcUtilityClass(slot) {
|
|
27
|
-
return (0, _generateUtilityClass.default)('MuiPieArc', slot);
|
|
28
|
-
}
|
|
29
|
-
const pieArcClasses = exports.pieArcClasses = (0, _generateUtilityClasses.default)('MuiPieArc', ['root', 'highlighted', 'faded', 'series', 'focusIndicator']);
|
|
30
|
-
const useUtilityClasses = ownerState => {
|
|
31
|
-
const {
|
|
32
|
-
classes,
|
|
33
|
-
seriesId,
|
|
34
|
-
isFaded,
|
|
35
|
-
isHighlighted,
|
|
36
|
-
dataIndex
|
|
37
|
-
} = ownerState;
|
|
38
|
-
const slots = {
|
|
39
|
-
root: ['root', `series-${seriesId}`, `data-index-${dataIndex}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
40
|
-
};
|
|
41
|
-
return (0, _composeClasses.default)(slots, getPieArcUtilityClass, classes);
|
|
42
|
-
};
|
|
43
22
|
const PieArcRoot = (0, _styles.styled)('path', {
|
|
44
23
|
name: 'MuiPieArc',
|
|
45
|
-
slot: 'Root'
|
|
46
|
-
overridesResolver: (_, styles) => styles.arc // FIXME: Inconsistent naming with slot
|
|
24
|
+
slot: 'Root'
|
|
47
25
|
})({
|
|
48
26
|
transitionProperty: 'opacity, fill, filter',
|
|
49
27
|
transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
|
|
@@ -82,7 +60,7 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
82
60
|
isHighlighted,
|
|
83
61
|
isFocused
|
|
84
62
|
};
|
|
85
|
-
const classes = useUtilityClasses(ownerState);
|
|
63
|
+
const classes = (0, _pieClasses.useUtilityClasses)(ownerState);
|
|
86
64
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
87
65
|
type: 'pie',
|
|
88
66
|
seriesId,
|
|
@@ -102,7 +80,7 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
102
80
|
onClick: onClick,
|
|
103
81
|
cursor: onClick ? 'pointer' : 'unset',
|
|
104
82
|
ownerState: ownerState,
|
|
105
|
-
className: (0, _clsx.default)(classes.
|
|
83
|
+
className: (0, _clsx.default)(classes.arc, className),
|
|
106
84
|
fill: color,
|
|
107
85
|
opacity: isFaded ? 0.3 : 1,
|
|
108
86
|
filter: isHighlighted ? 'brightness(120%)' : 'none',
|
|
@@ -110,7 +88,8 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
110
88
|
strokeWidth: 1,
|
|
111
89
|
strokeLinejoin: "round",
|
|
112
90
|
"data-highlighted": isHighlighted || undefined,
|
|
113
|
-
"data-faded": isFaded || undefined
|
|
91
|
+
"data-faded": isFaded || undefined,
|
|
92
|
+
"data-index": dataIndex
|
|
114
93
|
}, other, interactionProps, animatedProps));
|
|
115
94
|
});
|
|
116
95
|
if (process.env.NODE_ENV !== "production") PieArc.displayName = "PieArc";
|
package/PieChart/PieArc.mjs
CHANGED
|
@@ -6,35 +6,15 @@ const _excluded = ["className", "classes", "color", "dataIndex", "seriesId", "is
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
11
9
|
import { styled, useTheme } from '@mui/material/styles';
|
|
12
|
-
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
13
10
|
import { useAnimatePieArc } from "../hooks/index.mjs";
|
|
14
11
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
15
12
|
import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
|
|
13
|
+
import { useUtilityClasses as usePieUtilityClasses } from "./pieClasses.mjs";
|
|
16
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
export function getPieArcUtilityClass(slot) {
|
|
18
|
-
return generateUtilityClass('MuiPieArc', slot);
|
|
19
|
-
}
|
|
20
|
-
export const pieArcClasses = generateUtilityClasses('MuiPieArc', ['root', 'highlighted', 'faded', 'series', 'focusIndicator']);
|
|
21
|
-
const useUtilityClasses = ownerState => {
|
|
22
|
-
const {
|
|
23
|
-
classes,
|
|
24
|
-
seriesId,
|
|
25
|
-
isFaded,
|
|
26
|
-
isHighlighted,
|
|
27
|
-
dataIndex
|
|
28
|
-
} = ownerState;
|
|
29
|
-
const slots = {
|
|
30
|
-
root: ['root', `series-${seriesId}`, `data-index-${dataIndex}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
31
|
-
};
|
|
32
|
-
return composeClasses(slots, getPieArcUtilityClass, classes);
|
|
33
|
-
};
|
|
34
15
|
const PieArcRoot = styled('path', {
|
|
35
16
|
name: 'MuiPieArc',
|
|
36
|
-
slot: 'Root'
|
|
37
|
-
overridesResolver: (_, styles) => styles.arc // FIXME: Inconsistent naming with slot
|
|
17
|
+
slot: 'Root'
|
|
38
18
|
})({
|
|
39
19
|
transitionProperty: 'opacity, fill, filter',
|
|
40
20
|
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
@@ -73,7 +53,7 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
73
53
|
isHighlighted,
|
|
74
54
|
isFocused
|
|
75
55
|
};
|
|
76
|
-
const classes =
|
|
56
|
+
const classes = usePieUtilityClasses(ownerState);
|
|
77
57
|
const interactionProps = useInteractionItemProps({
|
|
78
58
|
type: 'pie',
|
|
79
59
|
seriesId,
|
|
@@ -93,7 +73,7 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
93
73
|
onClick: onClick,
|
|
94
74
|
cursor: onClick ? 'pointer' : 'unset',
|
|
95
75
|
ownerState: ownerState,
|
|
96
|
-
className: clsx(classes.
|
|
76
|
+
className: clsx(classes.arc, className),
|
|
97
77
|
fill: color,
|
|
98
78
|
opacity: isFaded ? 0.3 : 1,
|
|
99
79
|
filter: isHighlighted ? 'brightness(120%)' : 'none',
|
|
@@ -101,7 +81,8 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
101
81
|
strokeWidth: 1,
|
|
102
82
|
strokeLinejoin: "round",
|
|
103
83
|
"data-highlighted": isHighlighted || undefined,
|
|
104
|
-
"data-faded": isFaded || undefined
|
|
84
|
+
"data-faded": isFaded || undefined,
|
|
85
|
+
"data-index": dataIndex
|
|
105
86
|
}, other, interactionProps, animatedProps));
|
|
106
87
|
});
|
|
107
88
|
if (process.env.NODE_ENV !== "production") PieArc.displayName = "PieArc";
|
|
@@ -1,42 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/index.mjs";
|
|
3
|
-
|
|
4
|
-
/** Styles applied to the root element. */
|
|
5
|
-
root: string;
|
|
6
|
-
/**
|
|
7
|
-
* Styles applied to the root element when highlighted.
|
|
8
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
9
|
-
*/
|
|
10
|
-
highlighted: string;
|
|
11
|
-
/**
|
|
12
|
-
* Styles applied to the root element when faded.
|
|
13
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
14
|
-
*/
|
|
15
|
-
faded: string;
|
|
16
|
-
/** Styles applied to the root element when animation is not skipped. */
|
|
17
|
-
animate: string;
|
|
18
|
-
/**
|
|
19
|
-
* Styles applied to the root element for a specified series.
|
|
20
|
-
* Needs to be suffixed with the series ID: `.${pieArcLabelClasses.series}-${seriesId}`.
|
|
21
|
-
*/
|
|
22
|
-
series: string;
|
|
23
|
-
}
|
|
24
|
-
export type PieArcLabelClassKey = keyof PieArcLabelClasses;
|
|
3
|
+
import { type PieClasses } from "./pieClasses.mjs";
|
|
25
4
|
interface PieArcLabelOwnerState {
|
|
26
5
|
seriesId: SeriesId;
|
|
27
6
|
color: string;
|
|
28
7
|
isFaded: boolean;
|
|
29
8
|
isHighlighted: boolean;
|
|
30
9
|
skipAnimation: boolean;
|
|
31
|
-
classes?: Partial<
|
|
10
|
+
classes?: Partial<PieClasses>;
|
|
32
11
|
}
|
|
33
|
-
export declare function getPieArcLabelUtilityClass(slot: string): string;
|
|
34
|
-
export declare const pieArcLabelClasses: PieArcLabelClasses;
|
|
35
12
|
export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, 'ref' | 'color'> & {
|
|
36
13
|
startAngle: number;
|
|
37
14
|
endAngle: number;
|
|
38
|
-
innerRadius: number;
|
|
39
|
-
outerRadius: number;
|
|
40
15
|
arcLabelRadius: number;
|
|
41
16
|
cornerRadius: number;
|
|
42
17
|
paddingAngle: number;
|
|
@@ -44,11 +19,9 @@ export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTe
|
|
|
44
19
|
formattedArcLabel?: string | null;
|
|
45
20
|
hidden?: boolean;
|
|
46
21
|
};
|
|
47
|
-
declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "
|
|
22
|
+
declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "color" | "ref"> & {
|
|
48
23
|
startAngle: number;
|
|
49
24
|
endAngle: number;
|
|
50
|
-
innerRadius: number;
|
|
51
|
-
outerRadius: number;
|
|
52
25
|
arcLabelRadius: number;
|
|
53
26
|
cornerRadius: number;
|
|
54
27
|
paddingAngle: number;
|
|
@@ -1,42 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/index.js";
|
|
3
|
-
|
|
4
|
-
/** Styles applied to the root element. */
|
|
5
|
-
root: string;
|
|
6
|
-
/**
|
|
7
|
-
* Styles applied to the root element when highlighted.
|
|
8
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
9
|
-
*/
|
|
10
|
-
highlighted: string;
|
|
11
|
-
/**
|
|
12
|
-
* Styles applied to the root element when faded.
|
|
13
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
14
|
-
*/
|
|
15
|
-
faded: string;
|
|
16
|
-
/** Styles applied to the root element when animation is not skipped. */
|
|
17
|
-
animate: string;
|
|
18
|
-
/**
|
|
19
|
-
* Styles applied to the root element for a specified series.
|
|
20
|
-
* Needs to be suffixed with the series ID: `.${pieArcLabelClasses.series}-${seriesId}`.
|
|
21
|
-
*/
|
|
22
|
-
series: string;
|
|
23
|
-
}
|
|
24
|
-
export type PieArcLabelClassKey = keyof PieArcLabelClasses;
|
|
3
|
+
import { type PieClasses } from "./pieClasses.js";
|
|
25
4
|
interface PieArcLabelOwnerState {
|
|
26
5
|
seriesId: SeriesId;
|
|
27
6
|
color: string;
|
|
28
7
|
isFaded: boolean;
|
|
29
8
|
isHighlighted: boolean;
|
|
30
9
|
skipAnimation: boolean;
|
|
31
|
-
classes?: Partial<
|
|
10
|
+
classes?: Partial<PieClasses>;
|
|
32
11
|
}
|
|
33
|
-
export declare function getPieArcLabelUtilityClass(slot: string): string;
|
|
34
|
-
export declare const pieArcLabelClasses: PieArcLabelClasses;
|
|
35
12
|
export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, 'ref' | 'color'> & {
|
|
36
13
|
startAngle: number;
|
|
37
14
|
endAngle: number;
|
|
38
|
-
innerRadius: number;
|
|
39
|
-
outerRadius: number;
|
|
40
15
|
arcLabelRadius: number;
|
|
41
16
|
cornerRadius: number;
|
|
42
17
|
paddingAngle: number;
|
|
@@ -44,11 +19,9 @@ export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTe
|
|
|
44
19
|
formattedArcLabel?: string | null;
|
|
45
20
|
hidden?: boolean;
|
|
46
21
|
};
|
|
47
|
-
declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "
|
|
22
|
+
declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "color" | "ref"> & {
|
|
48
23
|
startAngle: number;
|
|
49
24
|
endAngle: number;
|
|
50
|
-
innerRadius: number;
|
|
51
|
-
outerRadius: number;
|
|
52
25
|
arcLabelRadius: number;
|
|
53
26
|
cornerRadius: number;
|
|
54
27
|
paddingAngle: number;
|
package/PieChart/PieArcLabel.js
CHANGED
|
@@ -7,37 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.PieArcLabel = void 0;
|
|
10
|
-
exports.getPieArcLabelUtilityClass = getPieArcLabelUtilityClass;
|
|
11
|
-
exports.pieArcLabelClasses = void 0;
|
|
12
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
14
12
|
var React = _interopRequireWildcard(require("react"));
|
|
15
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
|
-
var
|
|
17
|
-
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
14
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
18
15
|
var _styles = require("@mui/material/styles");
|
|
19
|
-
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
20
16
|
var _animation = require("../internals/animation/animation");
|
|
21
17
|
var _useAnimatePieArcLabel = require("../hooks/animation/useAnimatePieArcLabel");
|
|
18
|
+
var _pieClasses = require("./pieClasses");
|
|
22
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "
|
|
24
|
-
function getPieArcLabelUtilityClass(slot) {
|
|
25
|
-
return (0, _generateUtilityClass.default)('MuiPieArcLabel', slot);
|
|
26
|
-
}
|
|
27
|
-
const pieArcLabelClasses = exports.pieArcLabelClasses = (0, _generateUtilityClasses.default)('MuiPieArcLabel', ['root', 'highlighted', 'faded', 'animate', 'series']);
|
|
28
|
-
const useUtilityClasses = ownerState => {
|
|
29
|
-
const {
|
|
30
|
-
classes,
|
|
31
|
-
seriesId,
|
|
32
|
-
isFaded,
|
|
33
|
-
isHighlighted,
|
|
34
|
-
skipAnimation
|
|
35
|
-
} = ownerState;
|
|
36
|
-
const slots = {
|
|
37
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded', !skipAnimation && 'animate']
|
|
38
|
-
};
|
|
39
|
-
return (0, _composeClasses.default)(slots, getPieArcLabelUtilityClass, classes);
|
|
40
|
-
};
|
|
20
|
+
const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden", "className"];
|
|
41
21
|
const PieArcLabelRoot = (0, _styles.styled)('text', {
|
|
42
22
|
name: 'MuiPieArcLabel',
|
|
43
23
|
slot: 'Root'
|
|
@@ -54,7 +34,7 @@ const PieArcLabelRoot = (0, _styles.styled)('text', {
|
|
|
54
34
|
transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
|
|
55
35
|
transitionProperty: 'opacity',
|
|
56
36
|
transitionTimingFunction: _animation.ANIMATION_TIMING_FUNCTION,
|
|
57
|
-
[`&.${
|
|
37
|
+
[`&.${_pieClasses.pieClasses.animate}`]: {
|
|
58
38
|
animationDuration: `${_animation.ANIMATION_DURATION_MS}ms`
|
|
59
39
|
},
|
|
60
40
|
'@keyframes animate-opacity': {
|
|
@@ -77,7 +57,8 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
|
|
|
77
57
|
isHighlighted,
|
|
78
58
|
isFaded,
|
|
79
59
|
skipAnimation,
|
|
80
|
-
hidden
|
|
60
|
+
hidden,
|
|
61
|
+
className
|
|
81
62
|
} = props,
|
|
82
63
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
83
64
|
const ownerState = {
|
|
@@ -88,19 +69,18 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
|
|
|
88
69
|
isHighlighted,
|
|
89
70
|
skipAnimation
|
|
90
71
|
};
|
|
91
|
-
const classes = useUtilityClasses(ownerState);
|
|
72
|
+
const classes = (0, _pieClasses.useUtilityClasses)(ownerState);
|
|
92
73
|
const animatedProps = (0, _useAnimatePieArcLabel.useAnimatePieArcLabel)({
|
|
93
74
|
cornerRadius,
|
|
94
75
|
startAngle,
|
|
95
76
|
endAngle,
|
|
96
|
-
|
|
97
|
-
outerRadius: arcLabelRadius,
|
|
77
|
+
arcLabelRadius,
|
|
98
78
|
paddingAngle,
|
|
99
79
|
skipAnimation,
|
|
100
80
|
ref
|
|
101
81
|
});
|
|
102
82
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PieArcLabelRoot, (0, _extends2.default)({
|
|
103
|
-
className: classes.
|
|
83
|
+
className: (0, _clsx.default)(classes.arcLabel, className),
|
|
104
84
|
"data-highlighted": isHighlighted || undefined,
|
|
105
85
|
"data-faded": isFaded || undefined
|
|
106
86
|
}, other, animatedProps, {
|
|
@@ -121,10 +101,8 @@ process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
|
121
101
|
endAngle: _propTypes.default.number.isRequired,
|
|
122
102
|
formattedArcLabel: _propTypes.default.string,
|
|
123
103
|
hidden: _propTypes.default.bool,
|
|
124
|
-
innerRadius: _propTypes.default.number.isRequired,
|
|
125
104
|
isFaded: _propTypes.default.bool.isRequired,
|
|
126
105
|
isHighlighted: _propTypes.default.bool.isRequired,
|
|
127
|
-
outerRadius: _propTypes.default.number.isRequired,
|
|
128
106
|
paddingAngle: _propTypes.default.number.isRequired,
|
|
129
107
|
seriesId: _propTypes.default.string.isRequired,
|
|
130
108
|
skipAnimation: _propTypes.default.bool.isRequired,
|
package/PieChart/PieArcLabel.mjs
CHANGED
|
@@ -2,33 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "
|
|
5
|
+
const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden", "className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import
|
|
9
|
-
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
8
|
+
import clsx from 'clsx';
|
|
10
9
|
import { styled } from '@mui/material/styles';
|
|
11
|
-
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
12
10
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
13
11
|
import { useAnimatePieArcLabel } from "../hooks/animation/useAnimatePieArcLabel.mjs";
|
|
12
|
+
import { pieClasses, useUtilityClasses } from "./pieClasses.mjs";
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
export function getPieArcLabelUtilityClass(slot) {
|
|
16
|
-
return generateUtilityClass('MuiPieArcLabel', slot);
|
|
17
|
-
}
|
|
18
|
-
export const pieArcLabelClasses = generateUtilityClasses('MuiPieArcLabel', ['root', 'highlighted', 'faded', 'animate', 'series']);
|
|
19
|
-
const useUtilityClasses = ownerState => {
|
|
20
|
-
const {
|
|
21
|
-
classes,
|
|
22
|
-
seriesId,
|
|
23
|
-
isFaded,
|
|
24
|
-
isHighlighted,
|
|
25
|
-
skipAnimation
|
|
26
|
-
} = ownerState;
|
|
27
|
-
const slots = {
|
|
28
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded', !skipAnimation && 'animate']
|
|
29
|
-
};
|
|
30
|
-
return composeClasses(slots, getPieArcLabelUtilityClass, classes);
|
|
31
|
-
};
|
|
32
14
|
const PieArcLabelRoot = styled('text', {
|
|
33
15
|
name: 'MuiPieArcLabel',
|
|
34
16
|
slot: 'Root'
|
|
@@ -45,7 +27,7 @@ const PieArcLabelRoot = styled('text', {
|
|
|
45
27
|
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
46
28
|
transitionProperty: 'opacity',
|
|
47
29
|
transitionTimingFunction: ANIMATION_TIMING_FUNCTION,
|
|
48
|
-
[`&.${
|
|
30
|
+
[`&.${pieClasses.animate}`]: {
|
|
49
31
|
animationDuration: `${ANIMATION_DURATION_MS}ms`
|
|
50
32
|
},
|
|
51
33
|
'@keyframes animate-opacity': {
|
|
@@ -68,7 +50,8 @@ const PieArcLabel = /*#__PURE__*/React.forwardRef(function PieArcLabel(props, re
|
|
|
68
50
|
isHighlighted,
|
|
69
51
|
isFaded,
|
|
70
52
|
skipAnimation,
|
|
71
|
-
hidden
|
|
53
|
+
hidden,
|
|
54
|
+
className
|
|
72
55
|
} = props,
|
|
73
56
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
74
57
|
const ownerState = {
|
|
@@ -84,14 +67,13 @@ const PieArcLabel = /*#__PURE__*/React.forwardRef(function PieArcLabel(props, re
|
|
|
84
67
|
cornerRadius,
|
|
85
68
|
startAngle,
|
|
86
69
|
endAngle,
|
|
87
|
-
|
|
88
|
-
outerRadius: arcLabelRadius,
|
|
70
|
+
arcLabelRadius,
|
|
89
71
|
paddingAngle,
|
|
90
72
|
skipAnimation,
|
|
91
73
|
ref
|
|
92
74
|
});
|
|
93
75
|
return /*#__PURE__*/_jsx(PieArcLabelRoot, _extends({
|
|
94
|
-
className: classes.
|
|
76
|
+
className: clsx(classes.arcLabel, className),
|
|
95
77
|
"data-highlighted": isHighlighted || undefined,
|
|
96
78
|
"data-faded": isFaded || undefined
|
|
97
79
|
}, other, animatedProps, {
|
|
@@ -112,10 +94,8 @@ process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
|
112
94
|
endAngle: PropTypes.number.isRequired,
|
|
113
95
|
formattedArcLabel: PropTypes.string,
|
|
114
96
|
hidden: PropTypes.bool,
|
|
115
|
-
innerRadius: PropTypes.number.isRequired,
|
|
116
97
|
isFaded: PropTypes.bool.isRequired,
|
|
117
98
|
isHighlighted: PropTypes.bool.isRequired,
|
|
118
|
-
outerRadius: PropTypes.number.isRequired,
|
|
119
99
|
paddingAngle: PropTypes.number.isRequired,
|
|
120
100
|
seriesId: PropTypes.string.isRequired,
|
|
121
101
|
skipAnimation: PropTypes.bool.isRequired,
|
|
@@ -11,6 +11,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
|
+
var _styles = require("@mui/material/styles");
|
|
14
15
|
var _useTransformData = require("./dataTransform/useTransformData");
|
|
15
16
|
var _PieArcLabel = require("./PieArcLabel");
|
|
16
17
|
var _getLabel = require("../internals/getLabel");
|
|
@@ -38,6 +39,10 @@ function getItemLabel(arcLabel, arcLabelMinAngle, item) {
|
|
|
38
39
|
}));
|
|
39
40
|
}
|
|
40
41
|
}
|
|
42
|
+
const PieArcLabelPlotRoot = (0, _styles.styled)('g', {
|
|
43
|
+
name: 'MuiPieArcLabelPlot',
|
|
44
|
+
slot: 'Root'
|
|
45
|
+
})();
|
|
41
46
|
function PieArcLabelPlot(props) {
|
|
42
47
|
const {
|
|
43
48
|
arcLabel,
|
|
@@ -73,13 +78,11 @@ function PieArcLabelPlot(props) {
|
|
|
73
78
|
return null;
|
|
74
79
|
}
|
|
75
80
|
const ArcLabel = slots?.pieArcLabel ?? _PieArcLabel.PieArcLabel;
|
|
76
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
81
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PieArcLabelPlotRoot, (0, _extends2.default)({}, other, {
|
|
77
82
|
children: transformedData.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(ArcLabel, (0, _extends2.default)({
|
|
78
83
|
startAngle: item.startAngle,
|
|
79
84
|
endAngle: item.endAngle,
|
|
80
85
|
paddingAngle: item.paddingAngle,
|
|
81
|
-
innerRadius: item.innerRadius,
|
|
82
|
-
outerRadius: item.outerRadius,
|
|
83
86
|
arcLabelRadius: item.arcLabelRadius,
|
|
84
87
|
cornerRadius: item.cornerRadius,
|
|
85
88
|
hidden: item.hidden,
|
|
@@ -5,6 +5,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
5
5
|
const _excluded = ["arcLabel", "arcLabelMinAngle", "arcLabelRadius", "cornerRadius", "data", "faded", "highlighted", "seriesId", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "slotProps", "slots"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
8
9
|
import { useTransformData } from "./dataTransform/useTransformData.mjs";
|
|
9
10
|
import { PieArcLabel } from "./PieArcLabel.mjs";
|
|
10
11
|
import { getLabel } from "../internals/getLabel.mjs";
|
|
@@ -31,6 +32,10 @@ function getItemLabel(arcLabel, arcLabelMinAngle, item) {
|
|
|
31
32
|
}));
|
|
32
33
|
}
|
|
33
34
|
}
|
|
35
|
+
const PieArcLabelPlotRoot = styled('g', {
|
|
36
|
+
name: 'MuiPieArcLabelPlot',
|
|
37
|
+
slot: 'Root'
|
|
38
|
+
})();
|
|
34
39
|
function PieArcLabelPlot(props) {
|
|
35
40
|
const {
|
|
36
41
|
arcLabel,
|
|
@@ -66,13 +71,11 @@ function PieArcLabelPlot(props) {
|
|
|
66
71
|
return null;
|
|
67
72
|
}
|
|
68
73
|
const ArcLabel = slots?.pieArcLabel ?? PieArcLabel;
|
|
69
|
-
return /*#__PURE__*/_jsx(
|
|
74
|
+
return /*#__PURE__*/_jsx(PieArcLabelPlotRoot, _extends({}, other, {
|
|
70
75
|
children: transformedData.map(item => /*#__PURE__*/_jsx(ArcLabel, _extends({
|
|
71
76
|
startAngle: item.startAngle,
|
|
72
77
|
endAngle: item.endAngle,
|
|
73
78
|
paddingAngle: item.paddingAngle,
|
|
74
|
-
innerRadius: item.innerRadius,
|
|
75
|
-
outerRadius: item.outerRadius,
|
|
76
79
|
arcLabelRadius: item.arcLabelRadius,
|
|
77
80
|
cornerRadius: item.cornerRadius,
|
|
78
81
|
hidden: item.hidden,
|
package/PieChart/PieArcPlot.js
CHANGED
|
@@ -11,10 +11,15 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
|
+
var _styles = require("@mui/material/styles");
|
|
14
15
|
var _PieArc = require("./PieArc");
|
|
15
16
|
var _useTransformData = require("./dataTransform/useTransformData");
|
|
16
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
const _excluded = ["slots", "slotProps", "innerRadius", "outerRadius", "cornerRadius", "paddingAngle", "seriesId", "highlighted", "faded", "data", "onItemClick", "skipAnimation"];
|
|
19
|
+
const PieArcPlotRoot = (0, _styles.styled)('g', {
|
|
20
|
+
name: 'MuiPieArcPlot',
|
|
21
|
+
slot: 'Root'
|
|
22
|
+
})();
|
|
18
23
|
function PieArcPlot(props) {
|
|
19
24
|
const {
|
|
20
25
|
slots,
|
|
@@ -47,7 +52,7 @@ function PieArcPlot(props) {
|
|
|
47
52
|
return null;
|
|
48
53
|
}
|
|
49
54
|
const Arc = slots?.pieArc ?? _PieArc.PieArc;
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PieArcPlotRoot, (0, _extends2.default)({}, other, {
|
|
51
56
|
children: transformedData.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Arc, (0, _extends2.default)({
|
|
52
57
|
startAngle: item.startAngle,
|
|
53
58
|
endAngle: item.endAngle,
|
package/PieChart/PieArcPlot.mjs
CHANGED
|
@@ -5,9 +5,14 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["slots", "slotProps", "innerRadius", "outerRadius", "cornerRadius", "paddingAngle", "seriesId", "highlighted", "faded", "data", "onItemClick", "skipAnimation"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
8
9
|
import { PieArc } from "./PieArc.mjs";
|
|
9
10
|
import { useTransformData } from "./dataTransform/useTransformData.mjs";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const PieArcPlotRoot = styled('g', {
|
|
13
|
+
name: 'MuiPieArcPlot',
|
|
14
|
+
slot: 'Root'
|
|
15
|
+
})();
|
|
11
16
|
function PieArcPlot(props) {
|
|
12
17
|
const {
|
|
13
18
|
slots,
|
|
@@ -40,7 +45,7 @@ function PieArcPlot(props) {
|
|
|
40
45
|
return null;
|
|
41
46
|
}
|
|
42
47
|
const Arc = slots?.pieArc ?? PieArc;
|
|
43
|
-
return /*#__PURE__*/_jsx(
|
|
48
|
+
return /*#__PURE__*/_jsx(PieArcPlotRoot, _extends({}, other, {
|
|
44
49
|
children: transformedData.map((item, index) => /*#__PURE__*/_jsx(Arc, _extends({
|
|
45
50
|
startAngle: item.startAngle,
|
|
46
51
|
endAngle: item.endAngle,
|
package/PieChart/PieChart.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type MakeOptional } from '@mui/x-internals/types';
|
|
3
3
|
import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from "../Toolbar/index.mjs";
|
|
4
4
|
import { type ChartsSlotProps, type ChartsSlots } from "../internals/material/index.mjs";
|
|
5
|
-
import { type
|
|
5
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.mjs";
|
|
6
6
|
import { type PieSeriesType } from "../models/seriesType/index.mjs";
|
|
7
7
|
import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/ChartTooltip.types.mjs";
|
|
8
8
|
import { type ChartsLegendSlotProps, type ChartsLegendSlots } from "../ChartsLegend/index.mjs";
|
|
@@ -13,7 +13,7 @@ import { type PieChartPluginSignatures } from "./PieChart.plugins.mjs";
|
|
|
13
13
|
export interface PieChartSlots extends PiePlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots<'item' | 'none'>, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
14
14
|
export interface PieChartSlotProps extends PiePlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps<'item' | 'none'>, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
15
15
|
export type PieSeries = MakeOptional<PieSeriesType<MakeOptional<PieValueType, 'id'>>, 'type'>;
|
|
16
|
-
export interface PieChartProps extends Omit<
|
|
16
|
+
export interface PieChartProps extends Omit<ChartsContainerProps<'pie', PieChartPluginSignatures>, 'series' | 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, Pick<PiePlotProps, 'skipAnimation'> {
|
|
17
17
|
/**
|
|
18
18
|
* The series to display in the pie chart.
|
|
19
19
|
* An array of [[PieSeries]] objects.
|
package/PieChart/PieChart.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type MakeOptional } from '@mui/x-internals/types';
|
|
3
3
|
import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from "../Toolbar/index.js";
|
|
4
4
|
import { type ChartsSlotProps, type ChartsSlots } from "../internals/material/index.js";
|
|
5
|
-
import { type
|
|
5
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.js";
|
|
6
6
|
import { type PieSeriesType } from "../models/seriesType/index.js";
|
|
7
7
|
import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/ChartTooltip.types.js";
|
|
8
8
|
import { type ChartsLegendSlotProps, type ChartsLegendSlots } from "../ChartsLegend/index.js";
|
|
@@ -13,7 +13,7 @@ import { type PieChartPluginSignatures } from "./PieChart.plugins.js";
|
|
|
13
13
|
export interface PieChartSlots extends PiePlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots<'item' | 'none'>, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
14
14
|
export interface PieChartSlotProps extends PiePlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps<'item' | 'none'>, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
15
15
|
export type PieSeries = MakeOptional<PieSeriesType<MakeOptional<PieValueType, 'id'>>, 'type'>;
|
|
16
|
-
export interface PieChartProps extends Omit<
|
|
16
|
+
export interface PieChartProps extends Omit<ChartsContainerProps<'pie', PieChartPluginSignatures>, 'series' | 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, Pick<PiePlotProps, 'skipAnimation'> {
|
|
17
17
|
/**
|
|
18
18
|
* The series to display in the pie chart.
|
|
19
19
|
* An array of [[PieSeries]] objects.
|