@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
|
@@ -9,7 +9,7 @@ import useId from '@mui/utils/useId';
|
|
|
9
9
|
import { ChartsClipPath } from "../ChartsClipPath/index.mjs";
|
|
10
10
|
import { BarPlot } from "../BarChart/index.mjs";
|
|
11
11
|
import { LinePlot, AreaPlot, LineHighlightPlot } from "../LineChart/index.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
|
|
13
13
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
14
14
|
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from "../constants/index.mjs";
|
|
15
15
|
import { ChartsTooltip } from "../ChartsTooltip/index.mjs";
|
|
@@ -103,7 +103,7 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
|
|
|
103
103
|
}, yAxisProps, {
|
|
104
104
|
position: 'none'
|
|
105
105
|
})], [yAxisProps]);
|
|
106
|
-
return /*#__PURE__*/_jsxs(
|
|
106
|
+
return /*#__PURE__*/_jsxs(ChartsDataProvider, {
|
|
107
107
|
series: series,
|
|
108
108
|
width: width,
|
|
109
109
|
height: height,
|
|
@@ -219,6 +219,10 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
219
219
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
220
220
|
*/
|
|
221
221
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
222
|
+
/**
|
|
223
|
+
* The description of the chart.
|
|
224
|
+
* Used to provide an accessible description for the chart.
|
|
225
|
+
*/
|
|
222
226
|
desc: PropTypes.string,
|
|
223
227
|
/**
|
|
224
228
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -233,10 +237,17 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
233
237
|
*/
|
|
234
238
|
disableClipping: PropTypes.bool,
|
|
235
239
|
/**
|
|
236
|
-
* If true, the
|
|
240
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
237
241
|
*/
|
|
238
|
-
|
|
239
|
-
|
|
242
|
+
disableHitArea: PropTypes.bool,
|
|
243
|
+
/**
|
|
244
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
245
|
+
*/
|
|
246
|
+
disableKeyboardNavigation: PropTypes.bool,
|
|
247
|
+
/**
|
|
248
|
+
* Options to enable features planned for the next major.
|
|
249
|
+
*/
|
|
250
|
+
experimentalFeatures: PropTypes.object,
|
|
240
251
|
/**
|
|
241
252
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
242
253
|
*/
|
|
@@ -338,6 +349,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
338
349
|
seriesId: PropTypes.string.isRequired,
|
|
339
350
|
type: PropTypes.oneOf(['radar']).isRequired
|
|
340
351
|
})]),
|
|
352
|
+
/**
|
|
353
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
354
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
355
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
356
|
+
*/
|
|
357
|
+
hitAreaRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
341
358
|
/**
|
|
342
359
|
* This prop is used to help implement the accessibility logic.
|
|
343
360
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -466,7 +483,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
466
483
|
/**
|
|
467
484
|
* The callback fired when the tooltip item changes.
|
|
468
485
|
*
|
|
469
|
-
* @param {SeriesItemIdentifier<
|
|
486
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
470
487
|
*/
|
|
471
488
|
onTooltipItemChange: PropTypes.func,
|
|
472
489
|
/**
|
|
@@ -503,6 +520,10 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
503
520
|
slots: PropTypes.object,
|
|
504
521
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
505
522
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
523
|
+
/**
|
|
524
|
+
* The title of the chart.
|
|
525
|
+
* Used to provide an accessible label for the chart.
|
|
526
|
+
*/
|
|
506
527
|
title: PropTypes.string,
|
|
507
528
|
/**
|
|
508
529
|
* The controlled axis tooltip.
|
|
@@ -550,12 +571,6 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
550
571
|
* @default (value: number | null) => (value === null ? '' : value.toString())
|
|
551
572
|
*/
|
|
552
573
|
valueFormatter: PropTypes.func,
|
|
553
|
-
/**
|
|
554
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
555
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
556
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
557
|
-
*/
|
|
558
|
-
voronoiMaxRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
559
574
|
/**
|
|
560
575
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
561
576
|
*/
|
|
@@ -569,6 +584,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
569
584
|
barGapRatio: PropTypes.number,
|
|
570
585
|
categoryGapRatio: PropTypes.number,
|
|
571
586
|
classes: PropTypes.object,
|
|
587
|
+
className: PropTypes.string,
|
|
572
588
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
573
589
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
574
590
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -627,6 +643,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
627
643
|
}), PropTypes.shape({
|
|
628
644
|
axis: PropTypes.oneOf(['x']),
|
|
629
645
|
classes: PropTypes.object,
|
|
646
|
+
className: PropTypes.string,
|
|
630
647
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
631
648
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
632
649
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -685,6 +702,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
685
702
|
}), PropTypes.shape({
|
|
686
703
|
axis: PropTypes.oneOf(['x']),
|
|
687
704
|
classes: PropTypes.object,
|
|
705
|
+
className: PropTypes.string,
|
|
688
706
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
689
707
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
690
708
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -730,6 +748,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
730
748
|
}), PropTypes.shape({
|
|
731
749
|
axis: PropTypes.oneOf(['x']),
|
|
732
750
|
classes: PropTypes.object,
|
|
751
|
+
className: PropTypes.string,
|
|
733
752
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
734
753
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
735
754
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -776,6 +795,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
776
795
|
}), PropTypes.shape({
|
|
777
796
|
axis: PropTypes.oneOf(['x']),
|
|
778
797
|
classes: PropTypes.object,
|
|
798
|
+
className: PropTypes.string,
|
|
779
799
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
780
800
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
781
801
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -821,6 +841,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
821
841
|
}), PropTypes.shape({
|
|
822
842
|
axis: PropTypes.oneOf(['x']),
|
|
823
843
|
classes: PropTypes.object,
|
|
844
|
+
className: PropTypes.string,
|
|
824
845
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
825
846
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
826
847
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -866,6 +887,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
866
887
|
}), PropTypes.shape({
|
|
867
888
|
axis: PropTypes.oneOf(['x']),
|
|
868
889
|
classes: PropTypes.object,
|
|
890
|
+
className: PropTypes.string,
|
|
869
891
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
870
892
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
871
893
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -915,6 +937,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
915
937
|
}), PropTypes.shape({
|
|
916
938
|
axis: PropTypes.oneOf(['x']),
|
|
917
939
|
classes: PropTypes.object,
|
|
940
|
+
className: PropTypes.string,
|
|
918
941
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
919
942
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
920
943
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -964,6 +987,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
964
987
|
}), PropTypes.shape({
|
|
965
988
|
axis: PropTypes.oneOf(['x']),
|
|
966
989
|
classes: PropTypes.object,
|
|
990
|
+
className: PropTypes.string,
|
|
967
991
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
968
992
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
969
993
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1016,6 +1040,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1016
1040
|
barGapRatio: PropTypes.number,
|
|
1017
1041
|
categoryGapRatio: PropTypes.number,
|
|
1018
1042
|
classes: PropTypes.object,
|
|
1043
|
+
className: PropTypes.string,
|
|
1019
1044
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1020
1045
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
1021
1046
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1073,6 +1098,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1073
1098
|
}), PropTypes.shape({
|
|
1074
1099
|
axis: PropTypes.oneOf(['y']),
|
|
1075
1100
|
classes: PropTypes.object,
|
|
1101
|
+
className: PropTypes.string,
|
|
1076
1102
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1077
1103
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
1078
1104
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1130,6 +1156,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1130
1156
|
}), PropTypes.shape({
|
|
1131
1157
|
axis: PropTypes.oneOf(['y']),
|
|
1132
1158
|
classes: PropTypes.object,
|
|
1159
|
+
className: PropTypes.string,
|
|
1133
1160
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1134
1161
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1135
1162
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1174,6 +1201,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1174
1201
|
}), PropTypes.shape({
|
|
1175
1202
|
axis: PropTypes.oneOf(['y']),
|
|
1176
1203
|
classes: PropTypes.object,
|
|
1204
|
+
className: PropTypes.string,
|
|
1177
1205
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1178
1206
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1179
1207
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1219,6 +1247,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1219
1247
|
}), PropTypes.shape({
|
|
1220
1248
|
axis: PropTypes.oneOf(['y']),
|
|
1221
1249
|
classes: PropTypes.object,
|
|
1250
|
+
className: PropTypes.string,
|
|
1222
1251
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1223
1252
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1224
1253
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1263,6 +1292,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1263
1292
|
}), PropTypes.shape({
|
|
1264
1293
|
axis: PropTypes.oneOf(['y']),
|
|
1265
1294
|
classes: PropTypes.object,
|
|
1295
|
+
className: PropTypes.string,
|
|
1266
1296
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1267
1297
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1268
1298
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1307,6 +1337,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1307
1337
|
}), PropTypes.shape({
|
|
1308
1338
|
axis: PropTypes.oneOf(['y']),
|
|
1309
1339
|
classes: PropTypes.object,
|
|
1340
|
+
className: PropTypes.string,
|
|
1310
1341
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1311
1342
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1312
1343
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1355,6 +1386,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1355
1386
|
}), PropTypes.shape({
|
|
1356
1387
|
axis: PropTypes.oneOf(['y']),
|
|
1357
1388
|
classes: PropTypes.object,
|
|
1389
|
+
className: PropTypes.string,
|
|
1358
1390
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1359
1391
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1360
1392
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1403,6 +1435,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1403
1435
|
}), PropTypes.shape({
|
|
1404
1436
|
axis: PropTypes.oneOf(['y']),
|
|
1405
1437
|
classes: PropTypes.object,
|
|
1438
|
+
className: PropTypes.string,
|
|
1406
1439
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1407
1440
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1408
1441
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
package/context/ChartApi.d.mts
CHANGED
|
@@ -19,4 +19,4 @@ export type PluginsPerSeriesType = {
|
|
|
19
19
|
* If the chart is being created using composition, the `composition` value can be used.
|
|
20
20
|
* @example ChartApi<'composition'>
|
|
21
21
|
*/
|
|
22
|
-
export type ChartApi<
|
|
22
|
+
export type ChartApi<SeriesType extends keyof PluginsPerSeriesType | undefined = undefined, TSignatures extends readonly ChartAnyPluginSignature[] = (SeriesType extends keyof PluginsPerSeriesType ? PluginsPerSeriesType[SeriesType] : AllPluginSignatures)> = ChartPublicAPI<TSignatures>;
|
package/context/ChartApi.d.ts
CHANGED
|
@@ -19,4 +19,4 @@ export type PluginsPerSeriesType = {
|
|
|
19
19
|
* If the chart is being created using composition, the `composition` value can be used.
|
|
20
20
|
* @example ChartApi<'composition'>
|
|
21
21
|
*/
|
|
22
|
-
export type ChartApi<
|
|
22
|
+
export type ChartApi<SeriesType extends keyof PluginsPerSeriesType | undefined = undefined, TSignatures extends readonly ChartAnyPluginSignature[] = (SeriesType extends keyof PluginsPerSeriesType ? PluginsPerSeriesType[SeriesType] : AllPluginSignatures)> = ChartPublicAPI<TSignatures>;
|
|
@@ -3,5 +3,5 @@ import type { ChartsProviderProps } from "./ChartsProvider.types.mjs";
|
|
|
3
3
|
import { type ChartAnyPluginSignature } from "../../internals/plugins/models/index.mjs";
|
|
4
4
|
import type { ChartSeriesType } from "../../models/seriesType/config.mjs";
|
|
5
5
|
import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.mjs";
|
|
6
|
-
declare function ChartsProvider<
|
|
6
|
+
declare function ChartsProvider<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = ChartCorePluginSignatures<SeriesType>>(props: React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { ChartsProvider };
|
|
@@ -3,5 +3,5 @@ import type { ChartsProviderProps } from "./ChartsProvider.types.js";
|
|
|
3
3
|
import { type ChartAnyPluginSignature } from "../../internals/plugins/models/index.js";
|
|
4
4
|
import type { ChartSeriesType } from "../../models/seriesType/config.js";
|
|
5
5
|
import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.js";
|
|
6
|
-
declare function ChartsProvider<
|
|
6
|
+
declare function ChartsProvider<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = ChartCorePluginSignatures<SeriesType>>(props: React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { ChartsProvider };
|
|
@@ -17,11 +17,11 @@ export type ChartsContextValue<TSignatures extends readonly ChartAnyPluginSignat
|
|
|
17
17
|
*/
|
|
18
18
|
store: Store<ChartState<TSignatures, TOptionalSignatures>>;
|
|
19
19
|
};
|
|
20
|
-
export type ChartsPluginParams<
|
|
21
|
-
export interface ChartsProviderProps<
|
|
20
|
+
export type ChartsPluginParams<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = UseChartBaseProps<TSignatures> & MergeSignaturesProperty<[...ChartCorePluginSignatures<SeriesType>, ...TSignatures], 'params'>;
|
|
21
|
+
export interface ChartsProviderProps<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> {
|
|
22
22
|
/**
|
|
23
23
|
* Array of plugins used to add features to the chart.
|
|
24
24
|
*/
|
|
25
25
|
plugins?: ConvertSignaturesIntoPlugins<TSignatures>;
|
|
26
|
-
pluginParams?: ChartsPluginParams<
|
|
26
|
+
pluginParams?: ChartsPluginParams<SeriesType, TSignatures>;
|
|
27
27
|
}
|
|
@@ -17,11 +17,11 @@ export type ChartsContextValue<TSignatures extends readonly ChartAnyPluginSignat
|
|
|
17
17
|
*/
|
|
18
18
|
store: Store<ChartState<TSignatures, TOptionalSignatures>>;
|
|
19
19
|
};
|
|
20
|
-
export type ChartsPluginParams<
|
|
21
|
-
export interface ChartsProviderProps<
|
|
20
|
+
export type ChartsPluginParams<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = UseChartBaseProps<TSignatures> & MergeSignaturesProperty<[...ChartCorePluginSignatures<SeriesType>, ...TSignatures], 'params'>;
|
|
21
|
+
export interface ChartsProviderProps<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> {
|
|
22
22
|
/**
|
|
23
23
|
* Array of plugins used to add features to the chart.
|
|
24
24
|
*/
|
|
25
25
|
plugins?: ConvertSignaturesIntoPlugins<TSignatures>;
|
|
26
|
-
pluginParams?: ChartsPluginParams<
|
|
26
|
+
pluginParams?: ChartsPluginParams<SeriesType, TSignatures>;
|
|
27
27
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type ChartApi } from "./ChartApi.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
5
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
5
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
6
6
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
7
7
|
* @example
|
|
8
8
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type ChartApi } from "./ChartApi.js";
|
|
3
3
|
/**
|
|
4
4
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
5
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
5
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
6
6
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
7
7
|
* @example
|
|
8
8
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.useChartApiContext = useChartApiContext;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _ChartsProvider = require("./ChartsProvider");
|
|
11
11
|
/**
|
|
12
12
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
13
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
13
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
14
14
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
15
15
|
* @example
|
|
16
16
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -18,7 +18,7 @@ var _ChartProvider = require("./ChartProvider");
|
|
|
18
18
|
function useChartApiContext() {
|
|
19
19
|
const {
|
|
20
20
|
publicAPI
|
|
21
|
-
} = (0,
|
|
21
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
22
22
|
const apiRef = React.useRef(publicAPI);
|
|
23
23
|
React.useEffect(() => {
|
|
24
24
|
apiRef.current = publicAPI;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useChartsContext } from "./ChartsProvider/index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
7
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
7
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
8
8
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
9
9
|
* @example
|
|
10
10
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -12,7 +12,7 @@ import { useChartContext } from "./ChartProvider/index.mjs";
|
|
|
12
12
|
export function useChartApiContext() {
|
|
13
13
|
const {
|
|
14
14
|
publicAPI
|
|
15
|
-
} =
|
|
15
|
+
} = useChartsContext();
|
|
16
16
|
const apiRef = React.useRef(publicAPI);
|
|
17
17
|
React.useEffect(() => {
|
|
18
18
|
apiRef.current = publicAPI;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { PieArcLabelProps } from "../../PieChart/index.mjs";
|
|
3
|
-
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
3
|
+
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'arcLabelRadius' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
|
-
arcLabelRadius?: number;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
8
|
-
*/
|
|
9
|
-
innerRadius: PieArcLabelProps['innerRadius'];
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
12
|
-
*/
|
|
13
|
-
outerRadius: PieArcLabelProps['outerRadius'];
|
|
14
5
|
};
|
|
15
6
|
type UseAnimatePieArcLabelReturn = {
|
|
16
7
|
ref: React.Ref<SVGTextElement>;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { PieArcLabelProps } from "../../PieChart/index.js";
|
|
3
|
-
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
3
|
+
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'arcLabelRadius' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
|
-
arcLabelRadius?: number;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
8
|
-
*/
|
|
9
|
-
innerRadius: PieArcLabelProps['innerRadius'];
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
12
|
-
*/
|
|
13
|
-
outerRadius: PieArcLabelProps['outerRadius'];
|
|
14
5
|
};
|
|
15
6
|
type UseAnimatePieArcLabelReturn = {
|
|
16
7
|
ref: React.Ref<SVGTextElement>;
|
|
@@ -10,16 +10,14 @@ var _useAnimate = require("./useAnimate");
|
|
|
10
10
|
function pieArcLabelPropsInterpolator(from, to) {
|
|
11
11
|
const interpolateStartAngle = (0, _d3Interpolate.interpolateNumber)(from.startAngle, to.startAngle);
|
|
12
12
|
const interpolateEndAngle = (0, _d3Interpolate.interpolateNumber)(from.endAngle, to.endAngle);
|
|
13
|
-
const
|
|
14
|
-
const interpolateOuterRadius = (0, _d3Interpolate.interpolateNumber)(from.outerRadius, to.outerRadius);
|
|
13
|
+
const interpolateArcLabelRadius = (0, _d3Interpolate.interpolateNumber)(from.arcLabelRadius, to.arcLabelRadius);
|
|
15
14
|
const interpolatePaddingAngle = (0, _d3Interpolate.interpolateNumber)(from.paddingAngle, to.paddingAngle);
|
|
16
15
|
const interpolateCornerRadius = (0, _d3Interpolate.interpolateNumber)(from.cornerRadius, to.cornerRadius);
|
|
17
16
|
return t => {
|
|
18
17
|
return {
|
|
19
18
|
startAngle: interpolateStartAngle(t),
|
|
20
19
|
endAngle: interpolateEndAngle(t),
|
|
21
|
-
|
|
22
|
-
outerRadius: interpolateOuterRadius(t),
|
|
20
|
+
arcLabelRadius: interpolateArcLabelRadius(t),
|
|
23
21
|
paddingAngle: interpolatePaddingAngle(t),
|
|
24
22
|
cornerRadius: interpolateCornerRadius(t)
|
|
25
23
|
};
|
|
@@ -33,16 +31,14 @@ function useAnimatePieArcLabel(props) {
|
|
|
33
31
|
const initialProps = {
|
|
34
32
|
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
35
33
|
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
36
|
-
|
|
37
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
34
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
38
35
|
paddingAngle: props.paddingAngle,
|
|
39
36
|
cornerRadius: props.cornerRadius
|
|
40
37
|
};
|
|
41
38
|
return (0, _useAnimate.useAnimate)({
|
|
42
39
|
startAngle: props.startAngle,
|
|
43
40
|
endAngle: props.endAngle,
|
|
44
|
-
|
|
45
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
41
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
46
42
|
paddingAngle: props.paddingAngle,
|
|
47
43
|
cornerRadius: props.cornerRadius
|
|
48
44
|
}, {
|
|
@@ -52,8 +48,8 @@ function useAnimatePieArcLabel(props) {
|
|
|
52
48
|
padAngle: animatedProps.paddingAngle,
|
|
53
49
|
startAngle: animatedProps.startAngle,
|
|
54
50
|
endAngle: animatedProps.endAngle,
|
|
55
|
-
innerRadius: animatedProps.
|
|
56
|
-
outerRadius: animatedProps.
|
|
51
|
+
innerRadius: animatedProps.arcLabelRadius,
|
|
52
|
+
outerRadius: animatedProps.arcLabelRadius
|
|
57
53
|
});
|
|
58
54
|
return {
|
|
59
55
|
x,
|
|
@@ -4,16 +4,14 @@ import { useAnimate } from "./useAnimate.mjs";
|
|
|
4
4
|
function pieArcLabelPropsInterpolator(from, to) {
|
|
5
5
|
const interpolateStartAngle = interpolateNumber(from.startAngle, to.startAngle);
|
|
6
6
|
const interpolateEndAngle = interpolateNumber(from.endAngle, to.endAngle);
|
|
7
|
-
const
|
|
8
|
-
const interpolateOuterRadius = interpolateNumber(from.outerRadius, to.outerRadius);
|
|
7
|
+
const interpolateArcLabelRadius = interpolateNumber(from.arcLabelRadius, to.arcLabelRadius);
|
|
9
8
|
const interpolatePaddingAngle = interpolateNumber(from.paddingAngle, to.paddingAngle);
|
|
10
9
|
const interpolateCornerRadius = interpolateNumber(from.cornerRadius, to.cornerRadius);
|
|
11
10
|
return t => {
|
|
12
11
|
return {
|
|
13
12
|
startAngle: interpolateStartAngle(t),
|
|
14
13
|
endAngle: interpolateEndAngle(t),
|
|
15
|
-
|
|
16
|
-
outerRadius: interpolateOuterRadius(t),
|
|
14
|
+
arcLabelRadius: interpolateArcLabelRadius(t),
|
|
17
15
|
paddingAngle: interpolatePaddingAngle(t),
|
|
18
16
|
cornerRadius: interpolateCornerRadius(t)
|
|
19
17
|
};
|
|
@@ -27,16 +25,14 @@ export function useAnimatePieArcLabel(props) {
|
|
|
27
25
|
const initialProps = {
|
|
28
26
|
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
29
27
|
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
30
|
-
|
|
31
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
28
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
32
29
|
paddingAngle: props.paddingAngle,
|
|
33
30
|
cornerRadius: props.cornerRadius
|
|
34
31
|
};
|
|
35
32
|
return useAnimate({
|
|
36
33
|
startAngle: props.startAngle,
|
|
37
34
|
endAngle: props.endAngle,
|
|
38
|
-
|
|
39
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
35
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
40
36
|
paddingAngle: props.paddingAngle,
|
|
41
37
|
cornerRadius: props.cornerRadius
|
|
42
38
|
}, {
|
|
@@ -46,8 +42,8 @@ export function useAnimatePieArcLabel(props) {
|
|
|
46
42
|
padAngle: animatedProps.paddingAngle,
|
|
47
43
|
startAngle: animatedProps.startAngle,
|
|
48
44
|
endAngle: animatedProps.endAngle,
|
|
49
|
-
innerRadius: animatedProps.
|
|
50
|
-
outerRadius: animatedProps.
|
|
45
|
+
innerRadius: animatedProps.arcLabelRadius,
|
|
46
|
+
outerRadius: animatedProps.arcLabelRadius
|
|
51
47
|
});
|
|
52
48
|
return {
|
|
53
49
|
x,
|
package/hooks/index.d.mts
CHANGED
|
@@ -12,8 +12,8 @@ export { type UsePieSeriesReturnValue, type UsePieSeriesContextReturnValue, useP
|
|
|
12
12
|
export * from "./useBarSeries.mjs";
|
|
13
13
|
export * from "./useLineSeries.mjs";
|
|
14
14
|
export * from "./useRadarSeries.mjs";
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
15
|
+
export * from "./useItemHighlightState.mjs";
|
|
16
|
+
export * from "./useItemHighlightStateGetter.mjs";
|
|
17
17
|
export * from "./useLegend.mjs";
|
|
18
18
|
export { useChartGradientId, useChartGradientIdObjectBound } from "./useChartGradientId.mjs";
|
|
19
19
|
export * from "./animation/index.mjs";
|
package/hooks/index.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export { type UsePieSeriesReturnValue, type UsePieSeriesContextReturnValue, useP
|
|
|
12
12
|
export * from "./useBarSeries.js";
|
|
13
13
|
export * from "./useLineSeries.js";
|
|
14
14
|
export * from "./useRadarSeries.js";
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
15
|
+
export * from "./useItemHighlightState.js";
|
|
16
|
+
export * from "./useItemHighlightStateGetter.js";
|
|
17
17
|
export * from "./useLegend.js";
|
|
18
18
|
export { useChartGradientId, useChartGradientIdObjectBound } from "./useChartGradientId.js";
|
|
19
19
|
export * from "./animation/index.js";
|
package/hooks/index.js
CHANGED
|
@@ -204,27 +204,27 @@ Object.keys(_useRadarSeries).forEach(function (key) {
|
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
|
-
var
|
|
208
|
-
Object.keys(
|
|
207
|
+
var _useItemHighlightState = require("./useItemHighlightState");
|
|
208
|
+
Object.keys(_useItemHighlightState).forEach(function (key) {
|
|
209
209
|
if (key === "default" || key === "__esModule") return;
|
|
210
210
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
211
|
-
if (key in exports && exports[key] ===
|
|
211
|
+
if (key in exports && exports[key] === _useItemHighlightState[key]) return;
|
|
212
212
|
Object.defineProperty(exports, key, {
|
|
213
213
|
enumerable: true,
|
|
214
214
|
get: function () {
|
|
215
|
-
return
|
|
215
|
+
return _useItemHighlightState[key];
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
218
|
});
|
|
219
|
-
var
|
|
220
|
-
Object.keys(
|
|
219
|
+
var _useItemHighlightStateGetter = require("./useItemHighlightStateGetter");
|
|
220
|
+
Object.keys(_useItemHighlightStateGetter).forEach(function (key) {
|
|
221
221
|
if (key === "default" || key === "__esModule") return;
|
|
222
222
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
223
|
-
if (key in exports && exports[key] ===
|
|
223
|
+
if (key in exports && exports[key] === _useItemHighlightStateGetter[key]) return;
|
|
224
224
|
Object.defineProperty(exports, key, {
|
|
225
225
|
enumerable: true,
|
|
226
226
|
get: function () {
|
|
227
|
-
return
|
|
227
|
+
return _useItemHighlightStateGetter[key];
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
});
|
package/hooks/index.mjs
CHANGED
|
@@ -12,8 +12,8 @@ export { usePieSeries, usePieSeriesContext } from "./usePieSeries.mjs";
|
|
|
12
12
|
export * from "./useBarSeries.mjs";
|
|
13
13
|
export * from "./useLineSeries.mjs";
|
|
14
14
|
export * from "./useRadarSeries.mjs";
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
15
|
+
export * from "./useItemHighlightState.mjs";
|
|
16
|
+
export * from "./useItemHighlightStateGetter.mjs";
|
|
17
17
|
export * from "./useLegend.mjs";
|
|
18
18
|
export { useChartGradientId, useChartGradientIdObjectBound } from "./useChartGradientId.mjs";
|
|
19
19
|
export * from "./animation/index.mjs";
|
package/hooks/useChartRootRef.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useChartRootRef = useChartRootRef;
|
|
8
|
-
var
|
|
8
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
9
9
|
/**
|
|
10
10
|
* Get the ref for the root chart element.
|
|
11
11
|
* @returns The root chart element ref.
|
|
@@ -13,6 +13,6 @@ var _ChartProvider = require("../context/ChartProvider");
|
|
|
13
13
|
function useChartRootRef() {
|
|
14
14
|
const {
|
|
15
15
|
instance
|
|
16
|
-
} = (0,
|
|
16
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
17
17
|
return instance.chartRootRef;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the ref for the root chart element.
|
|
@@ -9,6 +9,6 @@ import { useChartContext } from "../context/ChartProvider/index.mjs";
|
|
|
9
9
|
export function useChartRootRef() {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
return instance.chartRootRef;
|
|
14
14
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useChartsLayerContainerRef = useChartsLayerContainerRef;
|
|
8
|
-
var
|
|
8
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
9
9
|
/**
|
|
10
10
|
* Get the ref for the chart surface element.
|
|
11
11
|
* @returns The chart surface ref.
|
|
@@ -13,6 +13,6 @@ var _ChartProvider = require("../context/ChartProvider");
|
|
|
13
13
|
function useChartsLayerContainerRef() {
|
|
14
14
|
const {
|
|
15
15
|
instance
|
|
16
|
-
} = (0,
|
|
16
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
17
17
|
return instance.chartsLayerContainerRef;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the ref for the chart surface element.
|
|
@@ -9,6 +9,6 @@ import { useChartContext } from "../context/ChartProvider/index.mjs";
|
|
|
9
9
|
export function useChartsLayerContainerRef() {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
return instance.chartsLayerContainerRef;
|
|
14
14
|
}
|