@mui/x-charts 9.0.0-alpha.3 → 9.0.0-beta.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.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +55 -34
- package/BarChart/BarChart.mjs +55 -34
- package/BarChart/BarElement.js +4 -8
- package/BarChart/BarElement.mjs +4 -8
- package/BarChart/BarLabel/BarLabel.js +1 -11
- package/BarChart/BarLabel/BarLabel.mjs +1 -11
- package/BarChart/BarLabel/BarLabelItem.js +1 -3
- package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
- package/BarChart/BarLabel/BarLabelPlot.d.mts +0 -2
- package/BarChart/BarLabel/BarLabelPlot.d.ts +0 -2
- package/BarChart/BarLabel/BarLabelPlot.js +2 -3
- package/BarChart/BarLabel/BarLabelPlot.mjs +2 -3
- 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 +6 -12
- package/BarChart/BarPlot.d.ts +6 -12
- package/BarChart/BarPlot.js +11 -19
- package/BarChart/BarPlot.mjs +11 -19
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -30
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -30
- package/BarChart/IndividualBarPlot.d.mts +1 -2
- package/BarChart/IndividualBarPlot.d.ts +1 -2
- package/BarChart/IndividualBarPlot.js +5 -10
- package/BarChart/IndividualBarPlot.mjs +5 -10
- package/BarChart/index.d.mts +0 -1
- package/BarChart/index.d.ts +0 -1
- package/BarChart/index.js +0 -12
- package/BarChart/index.mjs +0 -1
- package/BarChart/seriesConfig/bar/descriptionGetter.d.mts +3 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.d.ts +3 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.js +36 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.mjs +30 -0
- package/BarChart/seriesConfig/bar/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/seriesConfig/index.js +5 -1
- package/BarChart/seriesConfig/index.mjs +5 -1
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +4 -6
- package/BarChart/useBarChartProps.mjs +4 -6
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +229 -0
- 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.js +77 -43
- package/ChartsContainer/ChartsContainer.mjs +77 -43
- package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
- package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
- package/ChartsContainer/useChartsContainerProps.js +8 -8
- package/ChartsContainer/useChartsContainerProps.mjs +8 -8
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- 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/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +53 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +55 -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 +2 -2
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/legendContext.types.d.mts +0 -6
- package/ChartsLegend/legendContext.types.d.ts +0 -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 +8 -30
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +8 -30
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
- package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -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 +2 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
- package/ChartsTooltip/useItemTooltip.d.mts +2 -4
- package/ChartsTooltip/useItemTooltip.d.ts +2 -4
- 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 +14 -5
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +14 -5
- 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 +170 -89
- package/ChartsXAxis/useAxisTicksProps.d.ts +170 -89
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +14 -5
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +14 -5
- 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 +170 -89
- package/ChartsYAxis/useAxisTicksProps.d.ts +170 -89
- package/Gauge/Gauge.js +8 -0
- package/Gauge/Gauge.mjs +8 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +10 -2
- package/Gauge/GaugeContainer.mjs +10 -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 -35
- package/LineChart/AreaElement.d.ts +2 -35
- package/LineChart/AreaElement.js +8 -42
- package/LineChart/AreaElement.mjs +8 -42
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +11 -16
- package/LineChart/CircleMarkElement.mjs +12 -17
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +51 -25
- package/LineChart/LineChart.mjs +51 -25
- package/LineChart/LineElement.d.mts +2 -35
- package/LineChart/LineElement.d.ts +2 -35
- package/LineChart/LineElement.js +8 -42
- package/LineChart/LineElement.mjs +8 -42
- package/LineChart/LineHighlightElement.d.mts +0 -20
- package/LineChart/LineHighlightElement.d.ts +0 -20
- package/LineChart/LineHighlightElement.js +2 -39
- package/LineChart/LineHighlightElement.mjs +2 -39
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +10 -8
- package/LineChart/MarkElement.mjs +11 -9
- package/LineChart/MarkPlot.js +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/index.d.mts +0 -2
- package/LineChart/index.d.ts +0 -2
- package/LineChart/index.js +0 -15
- package/LineChart/index.mjs +0 -1
- package/LineChart/seriesConfig/curveEvaluation.d.mts +11 -0
- package/LineChart/seriesConfig/curveEvaluation.d.ts +11 -0
- package/LineChart/seriesConfig/curveEvaluation.js +134 -0
- package/LineChart/seriesConfig/curveEvaluation.mjs +129 -0
- package/LineChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/LineChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/LineChart/seriesConfig/descriptionGetter.js +37 -0
- package/LineChart/seriesConfig/descriptionGetter.mjs +31 -0
- package/LineChart/seriesConfig/getItemAtPosition.d.mts +7 -0
- package/LineChart/seriesConfig/getItemAtPosition.d.ts +7 -0
- package/LineChart/seriesConfig/getItemAtPosition.js +356 -0
- package/LineChart/seriesConfig/getItemAtPosition.mjs +351 -0
- package/LineChart/seriesConfig/index.js +4 -0
- package/LineChart/seriesConfig/index.mjs +4 -0
- package/LineChart/seriesConfig/seriesProcessor.js +8 -5
- package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
- 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 +1 -4
- package/PieChart/FocusedPieArc.mjs +2 -4
- package/PieChart/PieArc.d.mts +0 -37
- package/PieChart/PieArc.d.ts +0 -37
- package/PieChart/PieArc.js +5 -45
- package/PieChart/PieArc.mjs +5 -45
- package/PieChart/PieArcLabel.d.mts +2 -43
- package/PieChart/PieArcLabel.d.ts +2 -43
- package/PieChart/PieArcLabel.js +3 -46
- package/PieChart/PieArcLabel.mjs +5 -48
- package/PieChart/PieArcLabelPlot.js +0 -2
- package/PieChart/PieArcLabelPlot.mjs +0 -2
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +17 -5
- package/PieChart/PieChart.mjs +17 -5
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/PieChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/PieChart/seriesConfig/descriptionGetter.js +26 -0
- package/PieChart/seriesConfig/descriptionGetter.mjs +20 -0
- package/PieChart/seriesConfig/index.js +2 -0
- package/PieChart/seriesConfig/index.mjs +2 -0
- 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 +15 -0
- package/RadarChart/RadarChart.mjs +15 -0
- 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 +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
- 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.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
- 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/descriptionGetter.d.mts +3 -0
- package/RadarChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/RadarChart/seriesConfig/descriptionGetter.js +37 -0
- package/RadarChart/seriesConfig/descriptionGetter.mjs +31 -0
- package/RadarChart/seriesConfig/index.js +2 -0
- package/RadarChart/seriesConfig/index.mjs +2 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/BatchScatter.js +3 -3
- package/ScatterChart/BatchScatter.mjs +3 -3
- package/ScatterChart/Scatter.js +3 -3
- package/ScatterChart/Scatter.mjs +3 -3
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +73 -31
- package/ScatterChart/ScatterChart.mjs +73 -31
- package/ScatterChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/ScatterChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/ScatterChart/seriesConfig/descriptionGetter.js +34 -0
- package/ScatterChart/seriesConfig/descriptionGetter.mjs +28 -0
- package/ScatterChart/seriesConfig/index.js +2 -0
- package/ScatterChart/seriesConfig/index.mjs +2 -0
- 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 +60 -28
- package/SparkLineChart/SparkLineChart.mjs +60 -28
- package/constants/index.js +0 -2
- package/constants/index.mjs +0 -2
- 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/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 -1
- package/hooks/useInteractionItemProps.d.ts +1 -1
- package/hooks/useInteractionItemProps.js +5 -5
- package/hooks/useInteractionItemProps.mjs +5 -5
- 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/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +5 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +5 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +100 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +96 -0
- package/internals/components/ChartsAccessibilityProxy/index.d.mts +1 -0
- package/internals/components/ChartsAccessibilityProxy/index.d.ts +1 -0
- package/internals/components/ChartsAccessibilityProxy/index.js +16 -0
- package/internals/components/ChartsAccessibilityProxy/index.mjs +1 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.d.mts +5 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.d.ts +5 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.js +71 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.mjs +66 -0
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/getChartPoint.js +18 -1
- package/internals/getChartPoint.mjs +18 -1
- package/internals/identifierCleaner.d.mts +5 -5
- package/internals/identifierCleaner.d.ts +5 -5
- package/internals/identifierCleaner.js +0 -1
- package/internals/identifierCleaner.mjs +0 -1
- 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/corePlugins/corePlugins.d.mts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -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 +19 -9
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +19 -9
- package/internals/plugins/corePlugins/useChartSeries/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeries/index.js +12 -0
- package/internals/plugins/corePlugins/useChartSeries/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +21 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +21 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +20 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +20 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.mts +8 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.ts +8 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +19 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +14 -0
- 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/descriptionGetter.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.ts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.mjs +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +3 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +3 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +22 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +3 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +7 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +7 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.mts +4 -10
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +4 -10
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +30 -21
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +30 -20
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.mts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.js +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.mjs +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.mts +33 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.ts +33 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.js +318 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +311 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +63 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +62 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +12 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +12 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +13 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +13 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +32 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +31 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +22 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.mts +30 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.ts +30 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +96 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +91 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.mts +16 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.ts +16 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +36 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +31 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.mts +15 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.ts +15 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +45 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +39 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.mts +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +53 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +52 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +20 -45
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +23 -48
- 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/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +20 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +20 -2
- 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/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +36 -30
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +36 -30
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.mts +8 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +8 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +9 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +9 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +6 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +6 -0
- package/internals/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useCharts.d.mts +1 -1
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +80 -0
- package/locales/elGR.d.ts +80 -0
- package/locales/elGR.js +95 -0
- package/locales/elGR.mjs +95 -0
- package/locales/enUS.d.mts +80 -0
- package/locales/enUS.d.ts +80 -0
- package/locales/enUS.js +94 -1
- package/locales/enUS.mjs +94 -1
- package/locales/frFR.d.mts +80 -0
- package/locales/frFR.d.ts +80 -0
- package/locales/frFR.js +95 -1
- package/locales/frFR.mjs +95 -1
- package/locales/nbNO.d.mts +80 -0
- package/locales/nbNO.d.ts +80 -0
- package/locales/nbNO.js +95 -0
- package/locales/nbNO.mjs +95 -0
- package/locales/ptBR.d.mts +80 -0
- package/locales/ptBR.d.ts +80 -0
- package/locales/ptBR.js +95 -0
- package/locales/ptBR.mjs +95 -0
- package/locales/ptPT.d.mts +80 -0
- package/locales/ptPT.d.ts +80 -0
- package/locales/ptPT.js +191 -99
- package/locales/ptPT.mjs +191 -99
- package/locales/svSE.d.mts +80 -0
- package/locales/svSE.d.ts +80 -0
- package/locales/svSE.js +95 -0
- package/locales/svSE.mjs +95 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +205 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +205 -0
- package/locales/utils/getChartsLocalization.d.mts +80 -0
- package/locales/utils/getChartsLocalization.d.ts +80 -0
- package/models/axis.d.mts +15 -5
- package/models/axis.d.ts +15 -5
- 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 +29 -0
- package/models/seriesType/config.d.ts +29 -0
- package/models/seriesType/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +3 -31
- package/themeAugmentation/components.d.mts +5 -25
- package/themeAugmentation/components.d.ts +5 -25
- package/themeAugmentation/overrides.d.mts +3 -15
- package/themeAugmentation/overrides.d.ts +3 -15
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
- package/BarChart/BarLabel/barLabelClasses.js +0 -49
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
- package/BarChart/barElementClasses.d.mts +0 -40
- package/BarChart/barElementClasses.d.ts +0 -40
- package/BarChart/barElementClasses.js +0 -48
- package/BarChart/barElementClasses.mjs +0 -39
- 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 -42
- package/LineChart/markElementClasses.d.ts +0 -42
- package/LineChart/markElementClasses.js +0 -48
- package/LineChart/markElementClasses.mjs +0 -40
- 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/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.mts
CHANGED
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type PieArcOwnerState } from "./pieClasses.mjs";
|
|
3
|
-
export { type PieArcOwnerState };
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
6
|
-
*/
|
|
7
|
-
export interface PieArcClasses {
|
|
8
|
-
/** Styles applied to the root element. */
|
|
9
|
-
root: string;
|
|
10
|
-
/**
|
|
11
|
-
* Styles applied to the root element when highlighted.
|
|
12
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
13
|
-
*/
|
|
14
|
-
highlighted: string;
|
|
15
|
-
/**
|
|
16
|
-
* Styles applied to the root element when faded.
|
|
17
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
18
|
-
*/
|
|
19
|
-
faded: string;
|
|
20
|
-
/**
|
|
21
|
-
* Styles applied to the root element for a specified series.
|
|
22
|
-
* Needs to be suffixed with the series ID: `.${pieArcClasses.series}-${seriesId}`.
|
|
23
|
-
*/
|
|
24
|
-
series: string;
|
|
25
|
-
/** Styles applied to the focus indicator element. */
|
|
26
|
-
focusIndicator: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
30
|
-
*/
|
|
31
|
-
export type PieArcClassKey = keyof PieArcClasses;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
34
|
-
*/
|
|
35
|
-
export declare function getPieArcUtilityClass(slot: string): string;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
38
|
-
*/
|
|
39
|
-
export declare const pieArcClasses: PieArcClasses;
|
|
40
3
|
export type PieArcProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & PieArcOwnerState & {
|
|
41
4
|
cornerRadius: number;
|
|
42
5
|
endAngle: number;
|
package/PieChart/PieArc.d.ts
CHANGED
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type PieArcOwnerState } from "./pieClasses.js";
|
|
3
|
-
export { type PieArcOwnerState };
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
6
|
-
*/
|
|
7
|
-
export interface PieArcClasses {
|
|
8
|
-
/** Styles applied to the root element. */
|
|
9
|
-
root: string;
|
|
10
|
-
/**
|
|
11
|
-
* Styles applied to the root element when highlighted.
|
|
12
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
13
|
-
*/
|
|
14
|
-
highlighted: string;
|
|
15
|
-
/**
|
|
16
|
-
* Styles applied to the root element when faded.
|
|
17
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
18
|
-
*/
|
|
19
|
-
faded: string;
|
|
20
|
-
/**
|
|
21
|
-
* Styles applied to the root element for a specified series.
|
|
22
|
-
* Needs to be suffixed with the series ID: `.${pieArcClasses.series}-${seriesId}`.
|
|
23
|
-
*/
|
|
24
|
-
series: string;
|
|
25
|
-
/** Styles applied to the focus indicator element. */
|
|
26
|
-
focusIndicator: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
30
|
-
*/
|
|
31
|
-
export type PieArcClassKey = keyof PieArcClasses;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
34
|
-
*/
|
|
35
|
-
export declare function getPieArcUtilityClass(slot: string): string;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
38
|
-
*/
|
|
39
|
-
export declare const pieArcClasses: PieArcClasses;
|
|
40
3
|
export type PieArcProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & PieArcOwnerState & {
|
|
41
4
|
cornerRadius: number;
|
|
42
5
|
endAngle: number;
|
package/PieChart/PieArc.js
CHANGED
|
@@ -7,57 +7,18 @@ 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");
|
|
24
19
|
var _pieClasses = require("./pieClasses");
|
|
25
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
21
|
const _excluded = ["className", "classes", "color", "dataIndex", "seriesId", "isFaded", "isHighlighted", "isFocused", "onClick", "cornerRadius", "startAngle", "endAngle", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "stroke", "skipInteraction"];
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
35
|
-
*/
|
|
36
|
-
function getPieArcUtilityClass(slot) {
|
|
37
|
-
return (0, _generateUtilityClass.default)('MuiPieArc', slot);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
42
|
-
*/
|
|
43
|
-
const pieArcClasses = exports.pieArcClasses = (0, _generateUtilityClasses.default)('MuiPieArc', ['root', 'highlighted', 'faded', 'series', 'focusIndicator']);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
|
|
47
|
-
*/
|
|
48
|
-
const useUtilityClasses = ownerState => {
|
|
49
|
-
const {
|
|
50
|
-
classes,
|
|
51
|
-
seriesId,
|
|
52
|
-
isFaded,
|
|
53
|
-
isHighlighted,
|
|
54
|
-
dataIndex
|
|
55
|
-
} = ownerState;
|
|
56
|
-
const slots = {
|
|
57
|
-
root: ['root', `series-${seriesId}`, `data-index-${dataIndex}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
58
|
-
};
|
|
59
|
-
return (0, _composeClasses.default)(slots, getPieArcUtilityClass, classes);
|
|
60
|
-
};
|
|
61
22
|
const PieArcRoot = (0, _styles.styled)('path', {
|
|
62
23
|
name: 'MuiPieArc',
|
|
63
24
|
slot: 'Root'
|
|
@@ -84,8 +45,7 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
84
45
|
outerRadius,
|
|
85
46
|
paddingAngle,
|
|
86
47
|
skipAnimation,
|
|
87
|
-
stroke: strokeProp
|
|
88
|
-
skipInteraction
|
|
48
|
+
stroke: strokeProp
|
|
89
49
|
} = props,
|
|
90
50
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
91
51
|
const theme = (0, _styles.useTheme)();
|
|
@@ -100,12 +60,11 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
100
60
|
isFocused
|
|
101
61
|
};
|
|
102
62
|
const classes = (0, _pieClasses.useUtilityClasses)(ownerState);
|
|
103
|
-
const deprecatedClasses = useUtilityClasses(ownerState);
|
|
104
63
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
105
64
|
type: 'pie',
|
|
106
65
|
seriesId,
|
|
107
66
|
dataIndex
|
|
108
|
-
}
|
|
67
|
+
});
|
|
109
68
|
const animatedProps = (0, _hooks.useAnimatePieArc)({
|
|
110
69
|
cornerRadius,
|
|
111
70
|
startAngle,
|
|
@@ -120,7 +79,7 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
120
79
|
onClick: onClick,
|
|
121
80
|
cursor: onClick ? 'pointer' : 'unset',
|
|
122
81
|
ownerState: ownerState,
|
|
123
|
-
className: (0, _clsx.default)(classes.arc,
|
|
82
|
+
className: (0, _clsx.default)(classes.arc, className),
|
|
124
83
|
fill: color,
|
|
125
84
|
opacity: isFaded ? 0.3 : 1,
|
|
126
85
|
filter: isHighlighted ? 'brightness(120%)' : 'none',
|
|
@@ -128,7 +87,8 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
128
87
|
strokeWidth: 1,
|
|
129
88
|
strokeLinejoin: "round",
|
|
130
89
|
"data-highlighted": isHighlighted || undefined,
|
|
131
|
-
"data-faded": isFaded || undefined
|
|
90
|
+
"data-faded": isFaded || undefined,
|
|
91
|
+
"data-index": dataIndex
|
|
132
92
|
}, other, interactionProps, animatedProps));
|
|
133
93
|
});
|
|
134
94
|
if (process.env.NODE_ENV !== "production") PieArc.displayName = "PieArc";
|
package/PieChart/PieArc.mjs
CHANGED
|
@@ -6,51 +6,12 @@ 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";
|
|
16
13
|
import { useUtilityClasses as usePieUtilityClasses } from "./pieClasses.mjs";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
24
|
-
*/
|
|
25
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
28
|
-
*/
|
|
29
|
-
export function getPieArcUtilityClass(slot) {
|
|
30
|
-
return generateUtilityClass('MuiPieArc', slot);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
35
|
-
*/
|
|
36
|
-
export const pieArcClasses = generateUtilityClasses('MuiPieArc', ['root', 'highlighted', 'faded', 'series', 'focusIndicator']);
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
|
|
40
|
-
*/
|
|
41
|
-
const useUtilityClasses = ownerState => {
|
|
42
|
-
const {
|
|
43
|
-
classes,
|
|
44
|
-
seriesId,
|
|
45
|
-
isFaded,
|
|
46
|
-
isHighlighted,
|
|
47
|
-
dataIndex
|
|
48
|
-
} = ownerState;
|
|
49
|
-
const slots = {
|
|
50
|
-
root: ['root', `series-${seriesId}`, `data-index-${dataIndex}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
51
|
-
};
|
|
52
|
-
return composeClasses(slots, getPieArcUtilityClass, classes);
|
|
53
|
-
};
|
|
54
15
|
const PieArcRoot = styled('path', {
|
|
55
16
|
name: 'MuiPieArc',
|
|
56
17
|
slot: 'Root'
|
|
@@ -77,8 +38,7 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
77
38
|
outerRadius,
|
|
78
39
|
paddingAngle,
|
|
79
40
|
skipAnimation,
|
|
80
|
-
stroke: strokeProp
|
|
81
|
-
skipInteraction
|
|
41
|
+
stroke: strokeProp
|
|
82
42
|
} = props,
|
|
83
43
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
84
44
|
const theme = useTheme();
|
|
@@ -93,12 +53,11 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
93
53
|
isFocused
|
|
94
54
|
};
|
|
95
55
|
const classes = usePieUtilityClasses(ownerState);
|
|
96
|
-
const deprecatedClasses = useUtilityClasses(ownerState);
|
|
97
56
|
const interactionProps = useInteractionItemProps({
|
|
98
57
|
type: 'pie',
|
|
99
58
|
seriesId,
|
|
100
59
|
dataIndex
|
|
101
|
-
}
|
|
60
|
+
});
|
|
102
61
|
const animatedProps = useAnimatePieArc({
|
|
103
62
|
cornerRadius,
|
|
104
63
|
startAngle,
|
|
@@ -113,7 +72,7 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
113
72
|
onClick: onClick,
|
|
114
73
|
cursor: onClick ? 'pointer' : 'unset',
|
|
115
74
|
ownerState: ownerState,
|
|
116
|
-
className: clsx(classes.arc,
|
|
75
|
+
className: clsx(classes.arc, className),
|
|
117
76
|
fill: color,
|
|
118
77
|
opacity: isFaded ? 0.3 : 1,
|
|
119
78
|
filter: isHighlighted ? 'brightness(120%)' : 'none',
|
|
@@ -121,7 +80,8 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
121
80
|
strokeWidth: 1,
|
|
122
81
|
strokeLinejoin: "round",
|
|
123
82
|
"data-highlighted": isHighlighted || undefined,
|
|
124
|
-
"data-faded": isFaded || undefined
|
|
83
|
+
"data-faded": isFaded || undefined,
|
|
84
|
+
"data-index": dataIndex
|
|
125
85
|
}, other, interactionProps, animatedProps));
|
|
126
86
|
});
|
|
127
87
|
if (process.env.NODE_ENV !== "production") PieArc.displayName = "PieArc";
|
|
@@ -1,56 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/index.mjs";
|
|
3
|
-
|
|
4
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
5
|
-
*/
|
|
6
|
-
export interface PieArcLabelClasses {
|
|
7
|
-
/** Styles applied to the root element. */
|
|
8
|
-
root: string;
|
|
9
|
-
/**
|
|
10
|
-
* Styles applied to the root element when highlighted.
|
|
11
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
12
|
-
*/
|
|
13
|
-
highlighted: string;
|
|
14
|
-
/**
|
|
15
|
-
* Styles applied to the root element when faded.
|
|
16
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
17
|
-
*/
|
|
18
|
-
faded: string;
|
|
19
|
-
/** Styles applied to the root element when animation is not skipped.
|
|
20
|
-
* @deprecated Use the `animate` class from `./pieClasses` instead.
|
|
21
|
-
*/
|
|
22
|
-
animate: string;
|
|
23
|
-
/**
|
|
24
|
-
* Styles applied to the root element for a specified series.
|
|
25
|
-
* Needs to be suffixed with the series ID: `.${pieArcLabelClasses.series}-${seriesId}`.
|
|
26
|
-
*/
|
|
27
|
-
series: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
31
|
-
*/
|
|
32
|
-
export type PieArcLabelClassKey = keyof PieArcLabelClasses;
|
|
3
|
+
import { type PieClasses } from "./pieClasses.mjs";
|
|
33
4
|
interface PieArcLabelOwnerState {
|
|
34
5
|
seriesId: SeriesId;
|
|
35
6
|
color: string;
|
|
36
7
|
isFaded: boolean;
|
|
37
8
|
isHighlighted: boolean;
|
|
38
9
|
skipAnimation: boolean;
|
|
39
|
-
classes?: Partial<
|
|
10
|
+
classes?: Partial<PieClasses>;
|
|
40
11
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
43
|
-
*/
|
|
44
|
-
export declare function getPieArcLabelUtilityClass(slot: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
47
|
-
*/
|
|
48
|
-
export declare const pieArcLabelClasses: PieArcLabelClasses;
|
|
49
12
|
export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, 'ref' | 'color'> & {
|
|
50
13
|
startAngle: number;
|
|
51
14
|
endAngle: number;
|
|
52
|
-
innerRadius: number;
|
|
53
|
-
outerRadius: number;
|
|
54
15
|
arcLabelRadius: number;
|
|
55
16
|
cornerRadius: number;
|
|
56
17
|
paddingAngle: number;
|
|
@@ -61,8 +22,6 @@ export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTe
|
|
|
61
22
|
declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "color" | "ref"> & {
|
|
62
23
|
startAngle: number;
|
|
63
24
|
endAngle: number;
|
|
64
|
-
innerRadius: number;
|
|
65
|
-
outerRadius: number;
|
|
66
25
|
arcLabelRadius: number;
|
|
67
26
|
cornerRadius: number;
|
|
68
27
|
paddingAngle: number;
|
|
@@ -1,56 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/index.js";
|
|
3
|
-
|
|
4
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
5
|
-
*/
|
|
6
|
-
export interface PieArcLabelClasses {
|
|
7
|
-
/** Styles applied to the root element. */
|
|
8
|
-
root: string;
|
|
9
|
-
/**
|
|
10
|
-
* Styles applied to the root element when highlighted.
|
|
11
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
12
|
-
*/
|
|
13
|
-
highlighted: string;
|
|
14
|
-
/**
|
|
15
|
-
* Styles applied to the root element when faded.
|
|
16
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
17
|
-
*/
|
|
18
|
-
faded: string;
|
|
19
|
-
/** Styles applied to the root element when animation is not skipped.
|
|
20
|
-
* @deprecated Use the `animate` class from `./pieClasses` instead.
|
|
21
|
-
*/
|
|
22
|
-
animate: string;
|
|
23
|
-
/**
|
|
24
|
-
* Styles applied to the root element for a specified series.
|
|
25
|
-
* Needs to be suffixed with the series ID: `.${pieArcLabelClasses.series}-${seriesId}`.
|
|
26
|
-
*/
|
|
27
|
-
series: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
31
|
-
*/
|
|
32
|
-
export type PieArcLabelClassKey = keyof PieArcLabelClasses;
|
|
3
|
+
import { type PieClasses } from "./pieClasses.js";
|
|
33
4
|
interface PieArcLabelOwnerState {
|
|
34
5
|
seriesId: SeriesId;
|
|
35
6
|
color: string;
|
|
36
7
|
isFaded: boolean;
|
|
37
8
|
isHighlighted: boolean;
|
|
38
9
|
skipAnimation: boolean;
|
|
39
|
-
classes?: Partial<
|
|
10
|
+
classes?: Partial<PieClasses>;
|
|
40
11
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
43
|
-
*/
|
|
44
|
-
export declare function getPieArcLabelUtilityClass(slot: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
47
|
-
*/
|
|
48
|
-
export declare const pieArcLabelClasses: PieArcLabelClasses;
|
|
49
12
|
export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, 'ref' | 'color'> & {
|
|
50
13
|
startAngle: number;
|
|
51
14
|
endAngle: number;
|
|
52
|
-
innerRadius: number;
|
|
53
|
-
outerRadius: number;
|
|
54
15
|
arcLabelRadius: number;
|
|
55
16
|
cornerRadius: number;
|
|
56
17
|
paddingAngle: number;
|
|
@@ -61,8 +22,6 @@ export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTe
|
|
|
61
22
|
declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "color" | "ref"> & {
|
|
62
23
|
startAngle: number;
|
|
63
24
|
endAngle: number;
|
|
64
|
-
innerRadius: number;
|
|
65
|
-
outerRadius: number;
|
|
66
25
|
arcLabelRadius: number;
|
|
67
26
|
cornerRadius: number;
|
|
68
27
|
paddingAngle: number;
|
package/PieChart/PieArcLabel.js
CHANGED
|
@@ -7,56 +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
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 _animation = require("../internals/animation/animation");
|
|
22
17
|
var _useAnimatePieArcLabel = require("../hooks/animation/useAnimatePieArcLabel");
|
|
23
18
|
var _pieClasses = require("./pieClasses");
|
|
24
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
-
const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
34
|
-
*/
|
|
35
|
-
function getPieArcLabelUtilityClass(slot) {
|
|
36
|
-
return (0, _generateUtilityClass.default)('MuiPieArcLabel', slot);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
41
|
-
*/
|
|
42
|
-
const pieArcLabelClasses = exports.pieArcLabelClasses = (0, _generateUtilityClasses.default)('MuiPieArcLabel', ['root', 'highlighted', 'faded', 'animate', 'series']);
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
|
|
46
|
-
*/
|
|
47
|
-
const useUtilityClasses = ownerState => {
|
|
48
|
-
const {
|
|
49
|
-
classes,
|
|
50
|
-
seriesId,
|
|
51
|
-
isFaded,
|
|
52
|
-
isHighlighted,
|
|
53
|
-
skipAnimation
|
|
54
|
-
} = ownerState;
|
|
55
|
-
const slots = {
|
|
56
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded', !skipAnimation && 'animate']
|
|
57
|
-
};
|
|
58
|
-
return (0, _composeClasses.default)(slots, getPieArcLabelUtilityClass, classes);
|
|
59
|
-
};
|
|
20
|
+
const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden", "className"];
|
|
60
21
|
const PieArcLabelRoot = (0, _styles.styled)('text', {
|
|
61
22
|
name: 'MuiPieArcLabel',
|
|
62
23
|
slot: 'Root'
|
|
@@ -109,19 +70,17 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
|
|
|
109
70
|
skipAnimation
|
|
110
71
|
};
|
|
111
72
|
const classes = (0, _pieClasses.useUtilityClasses)(ownerState);
|
|
112
|
-
const deprecatedClasses = useUtilityClasses(ownerState);
|
|
113
73
|
const animatedProps = (0, _useAnimatePieArcLabel.useAnimatePieArcLabel)({
|
|
114
74
|
cornerRadius,
|
|
115
75
|
startAngle,
|
|
116
76
|
endAngle,
|
|
117
|
-
|
|
118
|
-
outerRadius: arcLabelRadius,
|
|
77
|
+
arcLabelRadius,
|
|
119
78
|
paddingAngle,
|
|
120
79
|
skipAnimation,
|
|
121
80
|
ref
|
|
122
81
|
});
|
|
123
82
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PieArcLabelRoot, (0, _extends2.default)({
|
|
124
|
-
className: (0, _clsx.default)(classes.arcLabel,
|
|
83
|
+
className: (0, _clsx.default)(classes.arcLabel, className),
|
|
125
84
|
"data-highlighted": isHighlighted || undefined,
|
|
126
85
|
"data-faded": isFaded || undefined
|
|
127
86
|
}, other, animatedProps, {
|
|
@@ -142,10 +101,8 @@ process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
|
142
101
|
endAngle: _propTypes.default.number.isRequired,
|
|
143
102
|
formattedArcLabel: _propTypes.default.string,
|
|
144
103
|
hidden: _propTypes.default.bool,
|
|
145
|
-
innerRadius: _propTypes.default.number.isRequired,
|
|
146
104
|
isFaded: _propTypes.default.bool.isRequired,
|
|
147
105
|
isHighlighted: _propTypes.default.bool.isRequired,
|
|
148
|
-
outerRadius: _propTypes.default.number.isRequired,
|
|
149
106
|
paddingAngle: _propTypes.default.number.isRequired,
|
|
150
107
|
seriesId: _propTypes.default.string.isRequired,
|
|
151
108
|
skipAnimation: _propTypes.default.bool.isRequired,
|
package/PieChart/PieArcLabel.mjs
CHANGED
|
@@ -2,54 +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
8
|
import clsx from 'clsx';
|
|
9
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
11
9
|
import { styled } from '@mui/material/styles';
|
|
12
|
-
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
13
10
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
14
11
|
import { useAnimatePieArcLabel } from "../hooks/animation/useAnimatePieArcLabel.mjs";
|
|
15
|
-
import { pieClasses, useUtilityClasses
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `PieClasses` from `./pieClasses` instead.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use `PieClassKey` from `./pieClasses` instead.
|
|
23
|
-
*/
|
|
12
|
+
import { pieClasses, useUtilityClasses } from "./pieClasses.mjs";
|
|
24
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
|
|
27
|
-
*/
|
|
28
|
-
export function getPieArcLabelUtilityClass(slot) {
|
|
29
|
-
return generateUtilityClass('MuiPieArcLabel', slot);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use `pieClasses` from `./pieClasses` instead.
|
|
34
|
-
*/
|
|
35
|
-
export const pieArcLabelClasses = generateUtilityClasses('MuiPieArcLabel', ['root', 'highlighted', 'faded', 'animate', 'series']);
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
|
|
39
|
-
*/
|
|
40
|
-
const useUtilityClasses = ownerState => {
|
|
41
|
-
const {
|
|
42
|
-
classes,
|
|
43
|
-
seriesId,
|
|
44
|
-
isFaded,
|
|
45
|
-
isHighlighted,
|
|
46
|
-
skipAnimation
|
|
47
|
-
} = ownerState;
|
|
48
|
-
const slots = {
|
|
49
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded', !skipAnimation && 'animate']
|
|
50
|
-
};
|
|
51
|
-
return composeClasses(slots, getPieArcLabelUtilityClass, classes);
|
|
52
|
-
};
|
|
53
14
|
const PieArcLabelRoot = styled('text', {
|
|
54
15
|
name: 'MuiPieArcLabel',
|
|
55
16
|
slot: 'Root'
|
|
@@ -101,20 +62,18 @@ const PieArcLabel = /*#__PURE__*/React.forwardRef(function PieArcLabel(props, re
|
|
|
101
62
|
isHighlighted,
|
|
102
63
|
skipAnimation
|
|
103
64
|
};
|
|
104
|
-
const classes =
|
|
105
|
-
const deprecatedClasses = useUtilityClasses(ownerState);
|
|
65
|
+
const classes = useUtilityClasses(ownerState);
|
|
106
66
|
const animatedProps = useAnimatePieArcLabel({
|
|
107
67
|
cornerRadius,
|
|
108
68
|
startAngle,
|
|
109
69
|
endAngle,
|
|
110
|
-
|
|
111
|
-
outerRadius: arcLabelRadius,
|
|
70
|
+
arcLabelRadius,
|
|
112
71
|
paddingAngle,
|
|
113
72
|
skipAnimation,
|
|
114
73
|
ref
|
|
115
74
|
});
|
|
116
75
|
return /*#__PURE__*/_jsx(PieArcLabelRoot, _extends({
|
|
117
|
-
className: clsx(classes.arcLabel,
|
|
76
|
+
className: clsx(classes.arcLabel, className),
|
|
118
77
|
"data-highlighted": isHighlighted || undefined,
|
|
119
78
|
"data-faded": isFaded || undefined
|
|
120
79
|
}, other, animatedProps, {
|
|
@@ -135,10 +94,8 @@ process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
|
135
94
|
endAngle: PropTypes.number.isRequired,
|
|
136
95
|
formattedArcLabel: PropTypes.string,
|
|
137
96
|
hidden: PropTypes.bool,
|
|
138
|
-
innerRadius: PropTypes.number.isRequired,
|
|
139
97
|
isFaded: PropTypes.bool.isRequired,
|
|
140
98
|
isHighlighted: PropTypes.bool.isRequired,
|
|
141
|
-
outerRadius: PropTypes.number.isRequired,
|
|
142
99
|
paddingAngle: PropTypes.number.isRequired,
|
|
143
100
|
seriesId: PropTypes.string.isRequired,
|
|
144
101
|
skipAnimation: PropTypes.bool.isRequired,
|
|
@@ -83,8 +83,6 @@ function PieArcLabelPlot(props) {
|
|
|
83
83
|
startAngle: item.startAngle,
|
|
84
84
|
endAngle: item.endAngle,
|
|
85
85
|
paddingAngle: item.paddingAngle,
|
|
86
|
-
innerRadius: item.innerRadius,
|
|
87
|
-
outerRadius: item.outerRadius,
|
|
88
86
|
arcLabelRadius: item.arcLabelRadius,
|
|
89
87
|
cornerRadius: item.cornerRadius,
|
|
90
88
|
hidden: item.hidden,
|
|
@@ -76,8 +76,6 @@ function PieArcLabelPlot(props) {
|
|
|
76
76
|
startAngle: item.startAngle,
|
|
77
77
|
endAngle: item.endAngle,
|
|
78
78
|
paddingAngle: item.paddingAngle,
|
|
79
|
-
innerRadius: item.innerRadius,
|
|
80
|
-
outerRadius: item.outerRadius,
|
|
81
79
|
arcLabelRadius: item.arcLabelRadius,
|
|
82
80
|
cornerRadius: item.cornerRadius,
|
|
83
81
|
hidden: item.hidden,
|
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.
|