@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
|
@@ -8,13 +8,13 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { styled, useTheme } from '@mui/material/styles';
|
|
9
9
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
10
10
|
import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
|
|
11
|
-
import {
|
|
11
|
+
import { lineClasses, useUtilityClasses as useLineUtilityClasses } from "./lineClasses.mjs";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const Circle = styled('circle', {
|
|
14
14
|
slot: 'internal',
|
|
15
15
|
shouldForwardProp: undefined
|
|
16
16
|
})({
|
|
17
|
-
[`&.${
|
|
17
|
+
[`&.${lineClasses.markAnimate}`]: {
|
|
18
18
|
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
19
19
|
transitionProperty: 'cx, cy, opacity',
|
|
20
20
|
transitionTimingFunction: ANIMATION_TIMING_FUNCTION
|
|
@@ -57,14 +57,10 @@ function CircleMarkElement(props) {
|
|
|
57
57
|
seriesId,
|
|
58
58
|
dataIndex
|
|
59
59
|
});
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
classes: innerClasses
|
|
63
|
-
|
|
64
|
-
isFaded,
|
|
65
|
-
skipAnimation
|
|
66
|
-
};
|
|
67
|
-
const classes = useUtilityClasses(ownerState);
|
|
60
|
+
const classes = useLineUtilityClasses({
|
|
61
|
+
skipAnimation,
|
|
62
|
+
classes: innerClasses
|
|
63
|
+
});
|
|
68
64
|
return /*#__PURE__*/_jsx(Circle, _extends({}, other, {
|
|
69
65
|
cx: x,
|
|
70
66
|
cy: y,
|
|
@@ -72,13 +68,16 @@ function CircleMarkElement(props) {
|
|
|
72
68
|
fill: (theme.vars || theme).palette.background.paper,
|
|
73
69
|
stroke: color,
|
|
74
70
|
strokeWidth: 2,
|
|
75
|
-
className: classes.
|
|
71
|
+
className: classes.mark,
|
|
76
72
|
onClick: onClick,
|
|
77
73
|
cursor: onClick ? 'pointer' : 'unset',
|
|
78
74
|
pointerEvents: hidden ? 'none' : undefined
|
|
79
75
|
}, interactionProps, {
|
|
80
76
|
"data-highlighted": isHighlighted || undefined,
|
|
81
77
|
"data-faded": isFaded || undefined,
|
|
78
|
+
"data-series-id": seriesId,
|
|
79
|
+
"data-series": seriesId,
|
|
80
|
+
"data-index": dataIndex,
|
|
82
81
|
opacity: hidden ? 0 : 1
|
|
83
82
|
}));
|
|
84
83
|
}
|
|
@@ -3,7 +3,7 @@ import { type MakeOptional } from '@mui/x-internals/types';
|
|
|
3
3
|
import { type ChartsSlots, type ChartsSlotProps } from "../internals/material/index.mjs";
|
|
4
4
|
import { type AreaPlotProps, type AreaPlotSlotProps, type AreaPlotSlots } from "./AreaPlot.mjs";
|
|
5
5
|
import { type LinePlotProps, type LinePlotSlotProps, type LinePlotSlots } from "./LinePlot.mjs";
|
|
6
|
-
import { type
|
|
6
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.mjs";
|
|
7
7
|
import { type MarkPlotProps, type MarkPlotSlotProps, type MarkPlotSlots } from "./MarkPlot.mjs";
|
|
8
8
|
import { type ChartsAxisProps } from "../ChartsAxis/ChartsAxis.mjs";
|
|
9
9
|
import { type LineSeriesType } from "../models/seriesType/line.mjs";
|
|
@@ -19,7 +19,7 @@ import type { ChartsToolbarSlots, ChartsToolbarSlotProps } from "../Toolbar/inde
|
|
|
19
19
|
export interface LineChartSlots extends ChartsAxisSlots, AreaPlotSlots, LinePlotSlots, MarkPlotSlots, LineHighlightPlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
20
20
|
export interface LineChartSlotProps extends ChartsAxisSlotProps, AreaPlotSlotProps, LinePlotSlotProps, MarkPlotSlotProps, LineHighlightPlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
21
21
|
export type LineSeries = MakeOptional<LineSeriesType, 'type'>;
|
|
22
|
-
export interface LineChartProps extends Omit<
|
|
22
|
+
export interface LineChartProps extends Omit<ChartsContainerProps<'line', LineChartPluginSignatures>, 'series' | 'plugins' | 'zAxis'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
|
|
23
23
|
/**
|
|
24
24
|
* The series to display in the line chart.
|
|
25
25
|
* An array of [[LineSeries]] objects.
|
package/LineChart/LineChart.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type MakeOptional } from '@mui/x-internals/types';
|
|
|
3
3
|
import { type ChartsSlots, type ChartsSlotProps } from "../internals/material/index.js";
|
|
4
4
|
import { type AreaPlotProps, type AreaPlotSlotProps, type AreaPlotSlots } from "./AreaPlot.js";
|
|
5
5
|
import { type LinePlotProps, type LinePlotSlotProps, type LinePlotSlots } from "./LinePlot.js";
|
|
6
|
-
import { type
|
|
6
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.js";
|
|
7
7
|
import { type MarkPlotProps, type MarkPlotSlotProps, type MarkPlotSlots } from "./MarkPlot.js";
|
|
8
8
|
import { type ChartsAxisProps } from "../ChartsAxis/ChartsAxis.js";
|
|
9
9
|
import { type LineSeriesType } from "../models/seriesType/line.js";
|
|
@@ -19,7 +19,7 @@ import type { ChartsToolbarSlots, ChartsToolbarSlotProps } from "../Toolbar/inde
|
|
|
19
19
|
export interface LineChartSlots extends ChartsAxisSlots, AreaPlotSlots, LinePlotSlots, MarkPlotSlots, LineHighlightPlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
20
20
|
export interface LineChartSlotProps extends ChartsAxisSlotProps, AreaPlotSlotProps, LinePlotSlotProps, MarkPlotSlotProps, LineHighlightPlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
21
21
|
export type LineSeries = MakeOptional<LineSeriesType, 'type'>;
|
|
22
|
-
export interface LineChartProps extends Omit<
|
|
22
|
+
export interface LineChartProps extends Omit<ChartsContainerProps<'line', LineChartPluginSignatures>, 'series' | 'plugins' | 'zAxis'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
|
|
23
23
|
/**
|
|
24
24
|
* The series to display in the line chart.
|
|
25
25
|
* An array of [[LineSeries]] objects.
|
package/LineChart/LineChart.js
CHANGED
|
@@ -23,8 +23,8 @@ var _LineHighlightPlot = require("./LineHighlightPlot");
|
|
|
23
23
|
var _ChartsGrid = require("../ChartsGrid");
|
|
24
24
|
var _ChartsOverlay = require("../ChartsOverlay");
|
|
25
25
|
var _useLineChartProps = require("./useLineChartProps");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var _useChartsContainerProps = require("../ChartsContainer/useChartsContainerProps");
|
|
27
|
+
var _ChartsDataProvider = require("../ChartsDataProvider");
|
|
28
28
|
var _ChartsSurface = require("../ChartsSurface");
|
|
29
29
|
var _ChartsWrapper = require("../ChartsWrapper");
|
|
30
30
|
var _FocusedLineMark = require("./FocusedLineMark");
|
|
@@ -46,7 +46,7 @@ const LineChart = exports.LineChart = /*#__PURE__*/React.forwardRef(function Lin
|
|
|
46
46
|
});
|
|
47
47
|
const {
|
|
48
48
|
chartsWrapperProps,
|
|
49
|
-
|
|
49
|
+
chartsContainerProps,
|
|
50
50
|
gridProps,
|
|
51
51
|
clipPathProps,
|
|
52
52
|
clipPathGroupProps,
|
|
@@ -61,12 +61,12 @@ const LineChart = exports.LineChart = /*#__PURE__*/React.forwardRef(function Lin
|
|
|
61
61
|
children
|
|
62
62
|
} = (0, _useLineChartProps.useLineChartProps)(props);
|
|
63
63
|
const {
|
|
64
|
-
|
|
64
|
+
chartsDataProviderProps,
|
|
65
65
|
chartsSurfaceProps
|
|
66
|
-
} = (0,
|
|
66
|
+
} = (0, _useChartsContainerProps.useChartsContainerProps)(chartsContainerProps);
|
|
67
67
|
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
68
68
|
const Toolbar = props.slots?.toolbar;
|
|
69
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProvider.ChartsDataProvider, (0, _extends2.default)({}, chartsDataProviderProps, {
|
|
70
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
|
|
71
71
|
ref: ref,
|
|
72
72
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
|
|
@@ -122,6 +122,10 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
122
122
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
123
123
|
*/
|
|
124
124
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
125
|
+
/**
|
|
126
|
+
* The description of the chart.
|
|
127
|
+
* Used to provide an accessible description for the chart.
|
|
128
|
+
*/
|
|
125
129
|
desc: _propTypes.default.string,
|
|
126
130
|
/**
|
|
127
131
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -129,17 +133,18 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
129
133
|
* @default false
|
|
130
134
|
*/
|
|
131
135
|
disableAxisListener: _propTypes.default.bool,
|
|
136
|
+
/**
|
|
137
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
138
|
+
*/
|
|
139
|
+
disableKeyboardNavigation: _propTypes.default.bool,
|
|
132
140
|
/**
|
|
133
141
|
* If `true`, render the line highlight item.
|
|
134
142
|
*/
|
|
135
143
|
disableLineItemHighlight: _propTypes.default.bool,
|
|
136
|
-
enableKeyboardNavigation: _propTypes.default.bool,
|
|
137
144
|
/**
|
|
138
145
|
* Options to enable features planned for the next major.
|
|
139
146
|
*/
|
|
140
|
-
experimentalFeatures: _propTypes.default.
|
|
141
|
-
preferStrictDomainInLineCharts: _propTypes.default.bool
|
|
142
|
-
}),
|
|
147
|
+
experimentalFeatures: _propTypes.default.object,
|
|
143
148
|
/**
|
|
144
149
|
* Option to display a cartesian grid in the background.
|
|
145
150
|
*/
|
|
@@ -309,7 +314,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
309
314
|
/**
|
|
310
315
|
* The callback fired when the tooltip item changes.
|
|
311
316
|
*
|
|
312
|
-
* @param {SeriesItemIdentifier<
|
|
317
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
313
318
|
*/
|
|
314
319
|
onTooltipItemChange: _propTypes.default.func,
|
|
315
320
|
/**
|
|
@@ -339,6 +344,10 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
339
344
|
slots: _propTypes.default.object,
|
|
340
345
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
341
346
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
347
|
+
/**
|
|
348
|
+
* The title of the chart.
|
|
349
|
+
* Used to provide an accessible label for the chart.
|
|
350
|
+
*/
|
|
342
351
|
title: _propTypes.default.string,
|
|
343
352
|
/**
|
|
344
353
|
* The controlled axis tooltip.
|
|
@@ -374,6 +383,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
374
383
|
barGapRatio: _propTypes.default.number,
|
|
375
384
|
categoryGapRatio: _propTypes.default.number,
|
|
376
385
|
classes: _propTypes.default.object,
|
|
386
|
+
className: _propTypes.default.string,
|
|
377
387
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
378
388
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
379
389
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -432,6 +442,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
432
442
|
}), _propTypes.default.shape({
|
|
433
443
|
axis: _propTypes.default.oneOf(['x']),
|
|
434
444
|
classes: _propTypes.default.object,
|
|
445
|
+
className: _propTypes.default.string,
|
|
435
446
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
436
447
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
437
448
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -490,6 +501,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
490
501
|
}), _propTypes.default.shape({
|
|
491
502
|
axis: _propTypes.default.oneOf(['x']),
|
|
492
503
|
classes: _propTypes.default.object,
|
|
504
|
+
className: _propTypes.default.string,
|
|
493
505
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
494
506
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
495
507
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -535,6 +547,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
535
547
|
}), _propTypes.default.shape({
|
|
536
548
|
axis: _propTypes.default.oneOf(['x']),
|
|
537
549
|
classes: _propTypes.default.object,
|
|
550
|
+
className: _propTypes.default.string,
|
|
538
551
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
539
552
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
540
553
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -581,6 +594,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
581
594
|
}), _propTypes.default.shape({
|
|
582
595
|
axis: _propTypes.default.oneOf(['x']),
|
|
583
596
|
classes: _propTypes.default.object,
|
|
597
|
+
className: _propTypes.default.string,
|
|
584
598
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
585
599
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
586
600
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -626,6 +640,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
626
640
|
}), _propTypes.default.shape({
|
|
627
641
|
axis: _propTypes.default.oneOf(['x']),
|
|
628
642
|
classes: _propTypes.default.object,
|
|
643
|
+
className: _propTypes.default.string,
|
|
629
644
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
630
645
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
631
646
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -671,6 +686,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
671
686
|
}), _propTypes.default.shape({
|
|
672
687
|
axis: _propTypes.default.oneOf(['x']),
|
|
673
688
|
classes: _propTypes.default.object,
|
|
689
|
+
className: _propTypes.default.string,
|
|
674
690
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
675
691
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
676
692
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -720,6 +736,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
720
736
|
}), _propTypes.default.shape({
|
|
721
737
|
axis: _propTypes.default.oneOf(['x']),
|
|
722
738
|
classes: _propTypes.default.object,
|
|
739
|
+
className: _propTypes.default.string,
|
|
723
740
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
724
741
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
725
742
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -769,6 +786,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
769
786
|
}), _propTypes.default.shape({
|
|
770
787
|
axis: _propTypes.default.oneOf(['x']),
|
|
771
788
|
classes: _propTypes.default.object,
|
|
789
|
+
className: _propTypes.default.string,
|
|
772
790
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
773
791
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
774
792
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -822,6 +840,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
822
840
|
barGapRatio: _propTypes.default.number,
|
|
823
841
|
categoryGapRatio: _propTypes.default.number,
|
|
824
842
|
classes: _propTypes.default.object,
|
|
843
|
+
className: _propTypes.default.string,
|
|
825
844
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
826
845
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
827
846
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -879,6 +898,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
879
898
|
}), _propTypes.default.shape({
|
|
880
899
|
axis: _propTypes.default.oneOf(['y']),
|
|
881
900
|
classes: _propTypes.default.object,
|
|
901
|
+
className: _propTypes.default.string,
|
|
882
902
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
883
903
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
884
904
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -936,6 +956,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
936
956
|
}), _propTypes.default.shape({
|
|
937
957
|
axis: _propTypes.default.oneOf(['y']),
|
|
938
958
|
classes: _propTypes.default.object,
|
|
959
|
+
className: _propTypes.default.string,
|
|
939
960
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
940
961
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
941
962
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -980,6 +1001,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
980
1001
|
}), _propTypes.default.shape({
|
|
981
1002
|
axis: _propTypes.default.oneOf(['y']),
|
|
982
1003
|
classes: _propTypes.default.object,
|
|
1004
|
+
className: _propTypes.default.string,
|
|
983
1005
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
984
1006
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
985
1007
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1025,6 +1047,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1025
1047
|
}), _propTypes.default.shape({
|
|
1026
1048
|
axis: _propTypes.default.oneOf(['y']),
|
|
1027
1049
|
classes: _propTypes.default.object,
|
|
1050
|
+
className: _propTypes.default.string,
|
|
1028
1051
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1029
1052
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1030
1053
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1069,6 +1092,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1069
1092
|
}), _propTypes.default.shape({
|
|
1070
1093
|
axis: _propTypes.default.oneOf(['y']),
|
|
1071
1094
|
classes: _propTypes.default.object,
|
|
1095
|
+
className: _propTypes.default.string,
|
|
1072
1096
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1073
1097
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1074
1098
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1113,6 +1137,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1113
1137
|
}), _propTypes.default.shape({
|
|
1114
1138
|
axis: _propTypes.default.oneOf(['y']),
|
|
1115
1139
|
classes: _propTypes.default.object,
|
|
1140
|
+
className: _propTypes.default.string,
|
|
1116
1141
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1117
1142
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1118
1143
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1161,6 +1186,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1161
1186
|
}), _propTypes.default.shape({
|
|
1162
1187
|
axis: _propTypes.default.oneOf(['y']),
|
|
1163
1188
|
classes: _propTypes.default.object,
|
|
1189
|
+
className: _propTypes.default.string,
|
|
1164
1190
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1165
1191
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1166
1192
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1209,6 +1235,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1209
1235
|
}), _propTypes.default.shape({
|
|
1210
1236
|
axis: _propTypes.default.oneOf(['y']),
|
|
1211
1237
|
classes: _propTypes.default.object,
|
|
1238
|
+
className: _propTypes.default.string,
|
|
1212
1239
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1213
1240
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1214
1241
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
package/LineChart/LineChart.mjs
CHANGED
|
@@ -16,8 +16,8 @@ import { LineHighlightPlot } from "./LineHighlightPlot.mjs";
|
|
|
16
16
|
import { ChartsGrid } from "../ChartsGrid/index.mjs";
|
|
17
17
|
import { ChartsOverlay } from "../ChartsOverlay/index.mjs";
|
|
18
18
|
import { useLineChartProps } from "./useLineChartProps.mjs";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { useChartsContainerProps } from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
20
|
+
import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
|
|
21
21
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
22
22
|
import { ChartsWrapper } from "../ChartsWrapper/index.mjs";
|
|
23
23
|
import { FocusedLineMark } from "./FocusedLineMark.mjs";
|
|
@@ -39,7 +39,7 @@ const LineChart = /*#__PURE__*/React.forwardRef(function LineChart(inProps, ref)
|
|
|
39
39
|
});
|
|
40
40
|
const {
|
|
41
41
|
chartsWrapperProps,
|
|
42
|
-
|
|
42
|
+
chartsContainerProps,
|
|
43
43
|
gridProps,
|
|
44
44
|
clipPathProps,
|
|
45
45
|
clipPathGroupProps,
|
|
@@ -54,12 +54,12 @@ const LineChart = /*#__PURE__*/React.forwardRef(function LineChart(inProps, ref)
|
|
|
54
54
|
children
|
|
55
55
|
} = useLineChartProps(props);
|
|
56
56
|
const {
|
|
57
|
-
|
|
57
|
+
chartsDataProviderProps,
|
|
58
58
|
chartsSurfaceProps
|
|
59
|
-
} =
|
|
59
|
+
} = useChartsContainerProps(chartsContainerProps);
|
|
60
60
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
61
61
|
const Toolbar = props.slots?.toolbar;
|
|
62
|
-
return /*#__PURE__*/_jsx(
|
|
62
|
+
return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({}, chartsDataProviderProps, {
|
|
63
63
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
64
64
|
ref: ref,
|
|
65
65
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
@@ -115,6 +115,10 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
115
115
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
116
116
|
*/
|
|
117
117
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
118
|
+
/**
|
|
119
|
+
* The description of the chart.
|
|
120
|
+
* Used to provide an accessible description for the chart.
|
|
121
|
+
*/
|
|
118
122
|
desc: PropTypes.string,
|
|
119
123
|
/**
|
|
120
124
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -122,17 +126,18 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
122
126
|
* @default false
|
|
123
127
|
*/
|
|
124
128
|
disableAxisListener: PropTypes.bool,
|
|
129
|
+
/**
|
|
130
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
131
|
+
*/
|
|
132
|
+
disableKeyboardNavigation: PropTypes.bool,
|
|
125
133
|
/**
|
|
126
134
|
* If `true`, render the line highlight item.
|
|
127
135
|
*/
|
|
128
136
|
disableLineItemHighlight: PropTypes.bool,
|
|
129
|
-
enableKeyboardNavigation: PropTypes.bool,
|
|
130
137
|
/**
|
|
131
138
|
* Options to enable features planned for the next major.
|
|
132
139
|
*/
|
|
133
|
-
experimentalFeatures: PropTypes.
|
|
134
|
-
preferStrictDomainInLineCharts: PropTypes.bool
|
|
135
|
-
}),
|
|
140
|
+
experimentalFeatures: PropTypes.object,
|
|
136
141
|
/**
|
|
137
142
|
* Option to display a cartesian grid in the background.
|
|
138
143
|
*/
|
|
@@ -302,7 +307,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
302
307
|
/**
|
|
303
308
|
* The callback fired when the tooltip item changes.
|
|
304
309
|
*
|
|
305
|
-
* @param {SeriesItemIdentifier<
|
|
310
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
306
311
|
*/
|
|
307
312
|
onTooltipItemChange: PropTypes.func,
|
|
308
313
|
/**
|
|
@@ -332,6 +337,10 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
332
337
|
slots: PropTypes.object,
|
|
333
338
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
334
339
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
340
|
+
/**
|
|
341
|
+
* The title of the chart.
|
|
342
|
+
* Used to provide an accessible label for the chart.
|
|
343
|
+
*/
|
|
335
344
|
title: PropTypes.string,
|
|
336
345
|
/**
|
|
337
346
|
* The controlled axis tooltip.
|
|
@@ -367,6 +376,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
367
376
|
barGapRatio: PropTypes.number,
|
|
368
377
|
categoryGapRatio: PropTypes.number,
|
|
369
378
|
classes: PropTypes.object,
|
|
379
|
+
className: PropTypes.string,
|
|
370
380
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
371
381
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
372
382
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -425,6 +435,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
425
435
|
}), PropTypes.shape({
|
|
426
436
|
axis: PropTypes.oneOf(['x']),
|
|
427
437
|
classes: PropTypes.object,
|
|
438
|
+
className: PropTypes.string,
|
|
428
439
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
429
440
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
430
441
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -483,6 +494,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
483
494
|
}), PropTypes.shape({
|
|
484
495
|
axis: PropTypes.oneOf(['x']),
|
|
485
496
|
classes: PropTypes.object,
|
|
497
|
+
className: PropTypes.string,
|
|
486
498
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
487
499
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
488
500
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -528,6 +540,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
528
540
|
}), PropTypes.shape({
|
|
529
541
|
axis: PropTypes.oneOf(['x']),
|
|
530
542
|
classes: PropTypes.object,
|
|
543
|
+
className: PropTypes.string,
|
|
531
544
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
532
545
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
533
546
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -574,6 +587,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
574
587
|
}), PropTypes.shape({
|
|
575
588
|
axis: PropTypes.oneOf(['x']),
|
|
576
589
|
classes: PropTypes.object,
|
|
590
|
+
className: PropTypes.string,
|
|
577
591
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
578
592
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
579
593
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -619,6 +633,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
619
633
|
}), PropTypes.shape({
|
|
620
634
|
axis: PropTypes.oneOf(['x']),
|
|
621
635
|
classes: PropTypes.object,
|
|
636
|
+
className: PropTypes.string,
|
|
622
637
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
623
638
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
624
639
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -664,6 +679,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
664
679
|
}), PropTypes.shape({
|
|
665
680
|
axis: PropTypes.oneOf(['x']),
|
|
666
681
|
classes: PropTypes.object,
|
|
682
|
+
className: PropTypes.string,
|
|
667
683
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
668
684
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
669
685
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -713,6 +729,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
713
729
|
}), PropTypes.shape({
|
|
714
730
|
axis: PropTypes.oneOf(['x']),
|
|
715
731
|
classes: PropTypes.object,
|
|
732
|
+
className: PropTypes.string,
|
|
716
733
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
717
734
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
718
735
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -762,6 +779,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
762
779
|
}), PropTypes.shape({
|
|
763
780
|
axis: PropTypes.oneOf(['x']),
|
|
764
781
|
classes: PropTypes.object,
|
|
782
|
+
className: PropTypes.string,
|
|
765
783
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
766
784
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
767
785
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -815,6 +833,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
815
833
|
barGapRatio: PropTypes.number,
|
|
816
834
|
categoryGapRatio: PropTypes.number,
|
|
817
835
|
classes: PropTypes.object,
|
|
836
|
+
className: PropTypes.string,
|
|
818
837
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
819
838
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
820
839
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -872,6 +891,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
872
891
|
}), PropTypes.shape({
|
|
873
892
|
axis: PropTypes.oneOf(['y']),
|
|
874
893
|
classes: PropTypes.object,
|
|
894
|
+
className: PropTypes.string,
|
|
875
895
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
876
896
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
877
897
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -929,6 +949,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
929
949
|
}), PropTypes.shape({
|
|
930
950
|
axis: PropTypes.oneOf(['y']),
|
|
931
951
|
classes: PropTypes.object,
|
|
952
|
+
className: PropTypes.string,
|
|
932
953
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
933
954
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
934
955
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -973,6 +994,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
973
994
|
}), PropTypes.shape({
|
|
974
995
|
axis: PropTypes.oneOf(['y']),
|
|
975
996
|
classes: PropTypes.object,
|
|
997
|
+
className: PropTypes.string,
|
|
976
998
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
977
999
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
978
1000
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1018,6 +1040,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1018
1040
|
}), PropTypes.shape({
|
|
1019
1041
|
axis: PropTypes.oneOf(['y']),
|
|
1020
1042
|
classes: PropTypes.object,
|
|
1043
|
+
className: PropTypes.string,
|
|
1021
1044
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1022
1045
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1023
1046
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1062,6 +1085,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1062
1085
|
}), PropTypes.shape({
|
|
1063
1086
|
axis: PropTypes.oneOf(['y']),
|
|
1064
1087
|
classes: PropTypes.object,
|
|
1088
|
+
className: PropTypes.string,
|
|
1065
1089
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1066
1090
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1067
1091
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1106,6 +1130,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1106
1130
|
}), PropTypes.shape({
|
|
1107
1131
|
axis: PropTypes.oneOf(['y']),
|
|
1108
1132
|
classes: PropTypes.object,
|
|
1133
|
+
className: PropTypes.string,
|
|
1109
1134
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1110
1135
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1111
1136
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1154,6 +1179,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1154
1179
|
}), PropTypes.shape({
|
|
1155
1180
|
axis: PropTypes.oneOf(['y']),
|
|
1156
1181
|
classes: PropTypes.object,
|
|
1182
|
+
className: PropTypes.string,
|
|
1157
1183
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1158
1184
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1159
1185
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1202,6 +1228,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1202
1228
|
}), PropTypes.shape({
|
|
1203
1229
|
axis: PropTypes.oneOf(['y']),
|
|
1204
1230
|
classes: PropTypes.object,
|
|
1231
|
+
className: PropTypes.string,
|
|
1205
1232
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1206
1233
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1207
1234
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -2,38 +2,17 @@ import * as React from 'react';
|
|
|
2
2
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
3
|
import { type AnimatedLineProps } from "./AnimatedLine.mjs";
|
|
4
4
|
import { type SeriesId } from "../models/seriesType/common.mjs";
|
|
5
|
-
|
|
6
|
-
/** Styles applied to the root element. */
|
|
7
|
-
root: string;
|
|
8
|
-
/**
|
|
9
|
-
* Styles applied to the root element when highlighted.
|
|
10
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
11
|
-
*/
|
|
12
|
-
highlighted: string;
|
|
13
|
-
/**
|
|
14
|
-
* Styles applied to the root element when faded.
|
|
15
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
16
|
-
*/
|
|
17
|
-
faded: string;
|
|
18
|
-
/**
|
|
19
|
-
* Styles applied to the root element for a specified series.
|
|
20
|
-
* Needs to be suffixed with the series ID: `.${lineElementClasses.series}-${seriesId}`.
|
|
21
|
-
*/
|
|
22
|
-
series: string;
|
|
23
|
-
}
|
|
24
|
-
export type LineElementClassKey = keyof LineElementClasses;
|
|
5
|
+
import { type LineClasses } from "./lineClasses.mjs";
|
|
25
6
|
export interface LineElementOwnerState {
|
|
26
7
|
seriesId: SeriesId;
|
|
27
8
|
color: string;
|
|
28
9
|
gradientId?: string;
|
|
29
10
|
isFaded: boolean;
|
|
30
11
|
isHighlighted: boolean;
|
|
31
|
-
classes?: Partial<
|
|
12
|
+
classes?: Partial<LineClasses>;
|
|
32
13
|
/** If `true`, the line is hidden. */
|
|
33
14
|
hidden?: boolean;
|
|
34
15
|
}
|
|
35
|
-
export declare function getLineElementUtilityClass(slot: string): string;
|
|
36
|
-
export declare const lineElementClasses: LineElementClasses;
|
|
37
16
|
export interface LineElementSlots {
|
|
38
17
|
/**
|
|
39
18
|
* The component that renders the line.
|
|
@@ -2,38 +2,17 @@ import * as React from 'react';
|
|
|
2
2
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
3
|
import { type AnimatedLineProps } from "./AnimatedLine.js";
|
|
4
4
|
import { type SeriesId } from "../models/seriesType/common.js";
|
|
5
|
-
|
|
6
|
-
/** Styles applied to the root element. */
|
|
7
|
-
root: string;
|
|
8
|
-
/**
|
|
9
|
-
* Styles applied to the root element when highlighted.
|
|
10
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
11
|
-
*/
|
|
12
|
-
highlighted: string;
|
|
13
|
-
/**
|
|
14
|
-
* Styles applied to the root element when faded.
|
|
15
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
16
|
-
*/
|
|
17
|
-
faded: string;
|
|
18
|
-
/**
|
|
19
|
-
* Styles applied to the root element for a specified series.
|
|
20
|
-
* Needs to be suffixed with the series ID: `.${lineElementClasses.series}-${seriesId}`.
|
|
21
|
-
*/
|
|
22
|
-
series: string;
|
|
23
|
-
}
|
|
24
|
-
export type LineElementClassKey = keyof LineElementClasses;
|
|
5
|
+
import { type LineClasses } from "./lineClasses.js";
|
|
25
6
|
export interface LineElementOwnerState {
|
|
26
7
|
seriesId: SeriesId;
|
|
27
8
|
color: string;
|
|
28
9
|
gradientId?: string;
|
|
29
10
|
isFaded: boolean;
|
|
30
11
|
isHighlighted: boolean;
|
|
31
|
-
classes?: Partial<
|
|
12
|
+
classes?: Partial<LineClasses>;
|
|
32
13
|
/** If `true`, the line is hidden. */
|
|
33
14
|
hidden?: boolean;
|
|
34
15
|
}
|
|
35
|
-
export declare function getLineElementUtilityClass(slot: string): string;
|
|
36
|
-
export declare const lineElementClasses: LineElementClasses;
|
|
37
16
|
export interface LineElementSlots {
|
|
38
17
|
/**
|
|
39
18
|
* The component that renders the line.
|