@mui/x-charts 9.0.0-alpha.3 → 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/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +36 -6
- package/BarChart/BarChart.mjs +36 -6
- package/BarChart/BarElement.js +1 -3
- package/BarChart/BarElement.mjs +1 -3
- package/BarChart/BarLabel/BarLabel.js +1 -11
- package/BarChart/BarLabel/BarLabel.mjs +1 -11
- package/BarChart/BarLabel/BarLabelItem.js +1 -3
- package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
- package/BarChart/BarLabel/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 +8 -2
- package/BarChart/BarPlot.mjs +8 -2
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/index.d.mts +0 -1
- package/BarChart/index.d.ts +0 -1
- package/BarChart/index.js +0 -12
- package/BarChart/index.mjs +0 -1
- package/BarChart/seriesConfig/bar/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 +123 -0
- package/ChartsAxis/index.d.mts +2 -1
- package/ChartsAxis/index.d.ts +2 -1
- package/ChartsAxis/index.js +11 -11
- package/ChartsAxis/index.mjs +1 -1
- package/ChartsAxisHighlight/index.d.mts +2 -1
- package/ChartsAxisHighlight/index.d.ts +2 -1
- package/ChartsAxisHighlight/index.js +12 -10
- package/ChartsAxisHighlight/index.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
- package/ChartsContainer/ChartsContainer.js +49 -15
- package/ChartsContainer/ChartsContainer.mjs +49 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
- package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
- package/ChartsContainer/useChartsContainerProps.js +8 -8
- package/ChartsContainer/useChartsContainerProps.mjs +8 -8
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +4 -0
- package/ChartsGrid/ChartsGrid.d.ts +4 -0
- package/ChartsGrid/ChartsGrid.js +4 -2
- package/ChartsGrid/ChartsGrid.mjs +4 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
- package/ChartsGrid/index.d.mts +2 -1
- package/ChartsGrid/index.d.ts +2 -1
- package/ChartsGrid/index.js +11 -11
- package/ChartsGrid/index.mjs +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +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 +2 -2
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/legendContext.types.d.mts +0 -6
- package/ChartsLegend/legendContext.types.d.ts +0 -6
- package/ChartsLegend/onClickContextBuilder.js +0 -1
- package/ChartsLegend/onClickContextBuilder.mjs +0 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
- package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
- package/ChartsReferenceLine/index.d.mts +2 -1
- package/ChartsReferenceLine/index.d.ts +2 -1
- package/ChartsReferenceLine/index.js +11 -11
- package/ChartsReferenceLine/index.mjs +1 -2
- package/ChartsSurface/ChartsSurface.d.mts +2 -3
- package/ChartsSurface/ChartsSurface.d.ts +2 -3
- package/ChartsSurface/ChartsSurface.js +14 -2
- package/ChartsSurface/ChartsSurface.mjs +14 -2
- package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.js +9 -31
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
- package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -1
- package/ChartsTooltip/index.d.mts +1 -2
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +1 -16
- package/ChartsTooltip/index.mjs +1 -2
- package/ChartsTooltip/useAxesTooltip.d.mts +2 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
- package/ChartsTooltip/useItemTooltip.d.mts +2 -4
- package/ChartsTooltip/useItemTooltip.d.ts +2 -4
- package/ChartsTooltip/utils.d.mts +0 -4
- package/ChartsTooltip/utils.d.ts +0 -4
- package/ChartsTooltip/utils.js +0 -39
- package/ChartsTooltip/utils.mjs +0 -38
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +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 +81 -0
- package/ChartsXAxis/useAxisTicksProps.d.ts +81 -0
- 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 +81 -0
- package/ChartsYAxis/useAxisTicksProps.d.ts +81 -0
- 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 -35
- package/LineChart/AreaElement.d.ts +2 -35
- package/LineChart/AreaElement.js +3 -41
- package/LineChart/AreaElement.mjs +3 -41
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +3 -11
- package/LineChart/CircleMarkElement.mjs +4 -12
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +33 -9
- package/LineChart/LineChart.mjs +33 -9
- package/LineChart/LineElement.d.mts +2 -35
- package/LineChart/LineElement.d.ts +2 -35
- package/LineChart/LineElement.js +3 -41
- package/LineChart/LineElement.mjs +3 -41
- package/LineChart/LineHighlightElement.d.mts +0 -20
- package/LineChart/LineHighlightElement.d.ts +0 -20
- package/LineChart/LineHighlightElement.js +2 -39
- package/LineChart/LineHighlightElement.mjs +2 -39
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +3 -4
- package/LineChart/MarkElement.mjs +4 -5
- package/LineChart/MarkPlot.js +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/index.d.mts +0 -2
- package/LineChart/index.d.ts +0 -2
- package/LineChart/index.js +0 -15
- package/LineChart/index.mjs +0 -1
- package/LineChart/seriesConfig/seriesProcessor.js +8 -5
- package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
- package/LineChart/useLineChartProps.d.mts +2 -2
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +2 -2
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.js +1 -4
- package/PieChart/FocusedPieArc.mjs +2 -4
- package/PieChart/PieArc.d.mts +0 -37
- package/PieChart/PieArc.d.ts +0 -37
- package/PieChart/PieArc.js +3 -42
- package/PieChart/PieArc.mjs +3 -42
- package/PieChart/PieArcLabel.d.mts +2 -43
- package/PieChart/PieArcLabel.d.ts +2 -43
- package/PieChart/PieArcLabel.js +3 -46
- package/PieChart/PieArcLabel.mjs +5 -48
- package/PieChart/PieArcLabelPlot.js +0 -2
- package/PieChart/PieArcLabelPlot.mjs +0 -2
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +17 -5
- package/PieChart/PieChart.mjs +17 -5
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/seriesConfig/legend.js +0 -2
- package/PieChart/seriesConfig/legend.mjs +0 -2
- package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
- package/RadarChart/RadarAxis/index.d.mts +1 -2
- package/RadarChart/RadarAxis/index.d.ts +1 -2
- package/RadarChart/RadarAxis/index.js +1 -13
- package/RadarChart/RadarAxis/index.mjs +1 -2
- package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
- package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
- package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
- package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
- package/RadarChart/RadarChart.js +15 -0
- package/RadarChart/RadarChart.mjs +15 -0
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +2 -2
- package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
- package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/index.d.mts +1 -2
- package/RadarChart/RadarGrid/index.d.ts +1 -2
- package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
- package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
- package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
- package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
- package/RadarChart/RadarSeriesPlot/index.js +2 -10
- package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
- package/RadarChart/index.d.mts +3 -1
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/index.mjs +2 -1
- package/RadarChart/radarClasses.d.mts +30 -0
- package/RadarChart/radarClasses.d.ts +30 -0
- package/RadarChart/radarClasses.js +33 -0
- package/RadarChart/radarClasses.mjs +24 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/BatchScatter.js +3 -3
- package/ScatterChart/BatchScatter.mjs +3 -3
- package/ScatterChart/Scatter.js +3 -3
- package/ScatterChart/Scatter.mjs +3 -3
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +55 -13
- package/ScatterChart/ScatterChart.mjs +55 -13
- 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 +40 -10
- package/SparkLineChart/SparkLineChart.mjs +40 -10
- package/context/useChartApiContext.d.mts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/context/useChartApiContext.js +3 -3
- package/context/useChartApiContext.mjs +3 -3
- package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.js +6 -10
- package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
- package/hooks/useChartRootRef.js +2 -2
- package/hooks/useChartRootRef.mjs +2 -2
- package/hooks/useChartsLayerContainerRef.js +2 -2
- package/hooks/useChartsLayerContainerRef.mjs +2 -2
- package/hooks/useDataset.js +1 -1
- package/hooks/useDataset.mjs +2 -2
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- 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/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/identifierCleaner.d.mts +5 -5
- package/internals/identifierCleaner.d.ts +5 -5
- package/internals/identifierCleaner.js +0 -1
- package/internals/identifierCleaner.mjs +0 -1
- package/internals/index.d.mts +2 -3
- package/internals/index.d.ts +2 -3
- package/internals/index.js +27 -36
- package/internals/index.mjs +2 -3
- package/internals/legendUtils.d.mts +11 -0
- package/internals/legendUtils.d.ts +11 -0
- package/internals/legendUtils.js +28 -0
- package/internals/legendUtils.mjs +22 -0
- package/internals/plugins/corePlugins/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/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/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/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/seriesConfig.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- 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/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/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- 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/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +87 -115
- package/themeAugmentation/components.d.mts +5 -25
- package/themeAugmentation/components.d.ts +5 -25
- package/themeAugmentation/overrides.d.mts +3 -15
- package/themeAugmentation/overrides.d.ts +3 -15
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
- package/BarChart/BarLabel/barLabelClasses.js +0 -49
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
- package/BarChart/barElementClasses.d.mts +0 -40
- package/BarChart/barElementClasses.d.ts +0 -40
- package/BarChart/barElementClasses.js +0 -48
- package/BarChart/barElementClasses.mjs +0 -39
- package/ChartContainer/ChartContainer.d.mts +0 -22
- package/ChartContainer/ChartContainer.d.ts +0 -22
- package/ChartContainer/ChartContainer.js +0 -24
- package/ChartContainer/ChartContainer.mjs +0 -20
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -1
- package/ChartContainer/useChartContainerProps.d.mts +0 -13
- package/ChartContainer/useChartContainerProps.d.ts +0 -13
- package/ChartContainer/useChartContainerProps.js +0 -19
- package/ChartContainer/useChartContainerProps.mjs +0 -14
- package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
- package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
- package/ChartDataProvider/ChartDataProvider.js +0 -24
- package/ChartDataProvider/ChartDataProvider.mjs +0 -20
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.js +0 -12
- package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
- package/LineChart/markElementClasses.d.mts +0 -42
- package/LineChart/markElementClasses.d.ts +0 -42
- package/LineChart/markElementClasses.js +0 -48
- package/LineChart/markElementClasses.mjs +0 -40
- package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
- package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
- package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
- package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
- package/context/ChartProvider/ChartContext.d.mts +0 -5
- package/context/ChartProvider/ChartContext.d.ts +0 -5
- package/context/ChartProvider/ChartContext.js +0 -13
- package/context/ChartProvider/ChartContext.mjs +0 -9
- package/context/ChartProvider/ChartProvider.d.mts +0 -5
- package/context/ChartProvider/ChartProvider.d.ts +0 -5
- package/context/ChartProvider/ChartProvider.js +0 -12
- package/context/ChartProvider/ChartProvider.mjs +0 -8
- package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
- package/context/ChartProvider/index.d.mts +0 -3
- package/context/ChartProvider/index.d.ts +0 -3
- package/context/ChartProvider/index.js +0 -38
- package/context/ChartProvider/index.mjs +0 -3
- package/context/ChartProvider/useChartContext.d.mts +0 -4
- package/context/ChartProvider/useChartContext.d.ts +0 -4
- package/context/ChartProvider/useChartContext.js +0 -12
- package/context/ChartProvider/useChartContext.mjs +0 -8
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
- /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
- /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
|
@@ -33,11 +33,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
33
33
|
*/
|
|
34
34
|
const ChartsContainer = /*#__PURE__*/React.forwardRef(function ChartsContainer(props, ref) {
|
|
35
35
|
const {
|
|
36
|
-
|
|
36
|
+
chartsDataProviderProps,
|
|
37
37
|
children,
|
|
38
38
|
chartsSurfaceProps
|
|
39
39
|
} = useChartsContainerProps(props);
|
|
40
|
-
return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({},
|
|
40
|
+
return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({}, chartsDataProviderProps, {
|
|
41
41
|
children: /*#__PURE__*/_jsx(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
42
42
|
ref: ref,
|
|
43
43
|
children: children
|
|
@@ -79,6 +79,10 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
79
79
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
80
80
|
*/
|
|
81
81
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
82
|
+
/**
|
|
83
|
+
* The description of the chart.
|
|
84
|
+
* Used to provide an accessible description for the chart.
|
|
85
|
+
*/
|
|
82
86
|
desc: PropTypes.string,
|
|
83
87
|
/**
|
|
84
88
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -87,19 +91,17 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
87
91
|
*/
|
|
88
92
|
disableAxisListener: PropTypes.bool,
|
|
89
93
|
/**
|
|
90
|
-
* If
|
|
94
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
91
95
|
*/
|
|
92
|
-
|
|
96
|
+
disableHitArea: PropTypes.bool,
|
|
93
97
|
/**
|
|
94
|
-
* If true
|
|
98
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
95
99
|
*/
|
|
96
|
-
|
|
100
|
+
disableKeyboardNavigation: PropTypes.bool,
|
|
97
101
|
/**
|
|
98
102
|
* Options to enable features planned for the next major.
|
|
99
103
|
*/
|
|
100
|
-
experimentalFeatures: PropTypes.
|
|
101
|
-
preferStrictDomainInLineCharts: PropTypes.bool
|
|
102
|
-
}),
|
|
104
|
+
experimentalFeatures: PropTypes.object,
|
|
103
105
|
/**
|
|
104
106
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
105
107
|
*/
|
|
@@ -153,6 +155,12 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
153
155
|
seriesId: PropTypes.string.isRequired,
|
|
154
156
|
type: PropTypes.oneOf(['bar', 'line', 'pie', 'radar', 'scatter']).isRequired
|
|
155
157
|
})]),
|
|
158
|
+
/**
|
|
159
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
160
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
161
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
162
|
+
*/
|
|
163
|
+
hitAreaRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
156
164
|
/**
|
|
157
165
|
* This prop is used to help implement the accessibility logic.
|
|
158
166
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -258,6 +266,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
258
266
|
*/
|
|
259
267
|
radiusAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
260
268
|
classes: PropTypes.object,
|
|
269
|
+
className: PropTypes.string,
|
|
261
270
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
262
271
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
263
272
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -311,6 +320,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
311
320
|
barGapRatio: PropTypes.number,
|
|
312
321
|
categoryGapRatio: PropTypes.number,
|
|
313
322
|
classes: PropTypes.object,
|
|
323
|
+
className: PropTypes.string,
|
|
314
324
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
315
325
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
316
326
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -370,6 +380,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
370
380
|
valueFormatter: PropTypes.func
|
|
371
381
|
}), PropTypes.shape({
|
|
372
382
|
classes: PropTypes.object,
|
|
383
|
+
className: PropTypes.string,
|
|
373
384
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
374
385
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
375
386
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -429,6 +440,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
429
440
|
valueFormatter: PropTypes.func
|
|
430
441
|
}), PropTypes.shape({
|
|
431
442
|
classes: PropTypes.object,
|
|
443
|
+
className: PropTypes.string,
|
|
432
444
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
433
445
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
434
446
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -475,6 +487,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
475
487
|
valueFormatter: PropTypes.func
|
|
476
488
|
}), PropTypes.shape({
|
|
477
489
|
classes: PropTypes.object,
|
|
490
|
+
className: PropTypes.string,
|
|
478
491
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
479
492
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
480
493
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -522,6 +535,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
522
535
|
valueFormatter: PropTypes.func
|
|
523
536
|
}), PropTypes.shape({
|
|
524
537
|
classes: PropTypes.object,
|
|
538
|
+
className: PropTypes.string,
|
|
525
539
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
526
540
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
527
541
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -568,6 +582,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
568
582
|
valueFormatter: PropTypes.func
|
|
569
583
|
}), PropTypes.shape({
|
|
570
584
|
classes: PropTypes.object,
|
|
585
|
+
className: PropTypes.string,
|
|
571
586
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
572
587
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
573
588
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -614,6 +629,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
614
629
|
valueFormatter: PropTypes.func
|
|
615
630
|
}), PropTypes.shape({
|
|
616
631
|
classes: PropTypes.object,
|
|
632
|
+
className: PropTypes.string,
|
|
617
633
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
618
634
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
619
635
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -664,6 +680,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
664
680
|
valueFormatter: PropTypes.func
|
|
665
681
|
}), PropTypes.shape({
|
|
666
682
|
classes: PropTypes.object,
|
|
683
|
+
className: PropTypes.string,
|
|
667
684
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
668
685
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
669
686
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -714,6 +731,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
714
731
|
valueFormatter: PropTypes.func
|
|
715
732
|
}), PropTypes.shape({
|
|
716
733
|
classes: PropTypes.object,
|
|
734
|
+
className: PropTypes.string,
|
|
717
735
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
718
736
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
719
737
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -780,6 +798,10 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
780
798
|
slots: PropTypes.object,
|
|
781
799
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
782
800
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
801
|
+
/**
|
|
802
|
+
* The title of the chart.
|
|
803
|
+
* Used to provide an accessible label for the chart.
|
|
804
|
+
*/
|
|
783
805
|
title: PropTypes.string,
|
|
784
806
|
/**
|
|
785
807
|
* The controlled axis tooltip.
|
|
@@ -801,12 +823,6 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
801
823
|
seriesId: PropTypes.string.isRequired,
|
|
802
824
|
type: PropTypes.oneOf(['bar', 'line', 'pie', 'radar', 'scatter']).isRequired
|
|
803
825
|
})]),
|
|
804
|
-
/**
|
|
805
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
806
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
807
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
808
|
-
*/
|
|
809
|
-
voronoiMaxRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
810
826
|
/**
|
|
811
827
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
812
828
|
*/
|
|
@@ -821,6 +837,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
821
837
|
barGapRatio: PropTypes.number,
|
|
822
838
|
categoryGapRatio: PropTypes.number,
|
|
823
839
|
classes: PropTypes.object,
|
|
840
|
+
className: PropTypes.string,
|
|
824
841
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
825
842
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
826
843
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -879,6 +896,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
879
896
|
}), PropTypes.shape({
|
|
880
897
|
axis: PropTypes.oneOf(['x']),
|
|
881
898
|
classes: PropTypes.object,
|
|
899
|
+
className: PropTypes.string,
|
|
882
900
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
883
901
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
884
902
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -937,6 +955,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
937
955
|
}), PropTypes.shape({
|
|
938
956
|
axis: PropTypes.oneOf(['x']),
|
|
939
957
|
classes: PropTypes.object,
|
|
958
|
+
className: PropTypes.string,
|
|
940
959
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
941
960
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
942
961
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -982,6 +1001,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
982
1001
|
}), PropTypes.shape({
|
|
983
1002
|
axis: PropTypes.oneOf(['x']),
|
|
984
1003
|
classes: PropTypes.object,
|
|
1004
|
+
className: PropTypes.string,
|
|
985
1005
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
986
1006
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
987
1007
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1028,6 +1048,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1028
1048
|
}), PropTypes.shape({
|
|
1029
1049
|
axis: PropTypes.oneOf(['x']),
|
|
1030
1050
|
classes: PropTypes.object,
|
|
1051
|
+
className: PropTypes.string,
|
|
1031
1052
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1032
1053
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1033
1054
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1073,6 +1094,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1073
1094
|
}), PropTypes.shape({
|
|
1074
1095
|
axis: PropTypes.oneOf(['x']),
|
|
1075
1096
|
classes: PropTypes.object,
|
|
1097
|
+
className: PropTypes.string,
|
|
1076
1098
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1077
1099
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1078
1100
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1118,6 +1140,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1118
1140
|
}), PropTypes.shape({
|
|
1119
1141
|
axis: PropTypes.oneOf(['x']),
|
|
1120
1142
|
classes: PropTypes.object,
|
|
1143
|
+
className: PropTypes.string,
|
|
1121
1144
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1122
1145
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1123
1146
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1167,6 +1190,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1167
1190
|
}), PropTypes.shape({
|
|
1168
1191
|
axis: PropTypes.oneOf(['x']),
|
|
1169
1192
|
classes: PropTypes.object,
|
|
1193
|
+
className: PropTypes.string,
|
|
1170
1194
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1171
1195
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1172
1196
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1216,6 +1240,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1216
1240
|
}), PropTypes.shape({
|
|
1217
1241
|
axis: PropTypes.oneOf(['x']),
|
|
1218
1242
|
classes: PropTypes.object,
|
|
1243
|
+
className: PropTypes.string,
|
|
1219
1244
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1220
1245
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1221
1246
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1269,6 +1294,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1269
1294
|
barGapRatio: PropTypes.number,
|
|
1270
1295
|
categoryGapRatio: PropTypes.number,
|
|
1271
1296
|
classes: PropTypes.object,
|
|
1297
|
+
className: PropTypes.string,
|
|
1272
1298
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1273
1299
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
1274
1300
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1326,6 +1352,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1326
1352
|
}), PropTypes.shape({
|
|
1327
1353
|
axis: PropTypes.oneOf(['y']),
|
|
1328
1354
|
classes: PropTypes.object,
|
|
1355
|
+
className: PropTypes.string,
|
|
1329
1356
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1330
1357
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
1331
1358
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1383,6 +1410,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1383
1410
|
}), PropTypes.shape({
|
|
1384
1411
|
axis: PropTypes.oneOf(['y']),
|
|
1385
1412
|
classes: PropTypes.object,
|
|
1413
|
+
className: PropTypes.string,
|
|
1386
1414
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1387
1415
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1388
1416
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1427,6 +1455,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1427
1455
|
}), PropTypes.shape({
|
|
1428
1456
|
axis: PropTypes.oneOf(['y']),
|
|
1429
1457
|
classes: PropTypes.object,
|
|
1458
|
+
className: PropTypes.string,
|
|
1430
1459
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1431
1460
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1432
1461
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1472,6 +1501,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1472
1501
|
}), PropTypes.shape({
|
|
1473
1502
|
axis: PropTypes.oneOf(['y']),
|
|
1474
1503
|
classes: PropTypes.object,
|
|
1504
|
+
className: PropTypes.string,
|
|
1475
1505
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1476
1506
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1477
1507
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1516,6 +1546,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1516
1546
|
}), PropTypes.shape({
|
|
1517
1547
|
axis: PropTypes.oneOf(['y']),
|
|
1518
1548
|
classes: PropTypes.object,
|
|
1549
|
+
className: PropTypes.string,
|
|
1519
1550
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1520
1551
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1521
1552
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1560,6 +1591,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1560
1591
|
}), PropTypes.shape({
|
|
1561
1592
|
axis: PropTypes.oneOf(['y']),
|
|
1562
1593
|
classes: PropTypes.object,
|
|
1594
|
+
className: PropTypes.string,
|
|
1563
1595
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1564
1596
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1565
1597
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1608,6 +1640,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1608
1640
|
}), PropTypes.shape({
|
|
1609
1641
|
axis: PropTypes.oneOf(['y']),
|
|
1610
1642
|
classes: PropTypes.object,
|
|
1643
|
+
className: PropTypes.string,
|
|
1611
1644
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1612
1645
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1613
1646
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1656,6 +1689,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
|
|
|
1656
1689
|
}), PropTypes.shape({
|
|
1657
1690
|
axis: PropTypes.oneOf(['y']),
|
|
1658
1691
|
classes: PropTypes.object,
|
|
1692
|
+
className: PropTypes.string,
|
|
1659
1693
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1660
1694
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1661
1695
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ChartsSurfaceProps } from "../ChartsSurface/index.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ChartsDataProviderProps } from "../ChartsDataProvider/index.mjs";
|
|
3
3
|
import type { ChartsContainerProps } from "./ChartsContainer.mjs";
|
|
4
4
|
import { type ChartSeriesType } from "../models/seriesType/config.mjs";
|
|
5
5
|
import { type AllPluginSignatures } from "../internals/plugins/allPlugins.mjs";
|
|
6
6
|
import { type ChartAnyPluginSignature } from "../internals/plugins/models/plugin.mjs";
|
|
7
7
|
export type UseChartsContainerPropsReturnValue<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = {
|
|
8
|
-
|
|
8
|
+
chartsDataProviderProps: ChartsDataProviderProps<SeriesType, TSignatures>;
|
|
9
9
|
chartsSurfaceProps: ChartsSurfaceProps;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ChartsDataProviderProps } from "../ChartsDataProvider/index.js";
|
|
3
3
|
import type { ChartsContainerProps } from "./ChartsContainer.js";
|
|
4
4
|
import { type ChartSeriesType } from "../models/seriesType/config.js";
|
|
5
5
|
import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
6
6
|
import { type ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
|
|
7
7
|
export type UseChartsContainerPropsReturnValue<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = {
|
|
8
|
-
|
|
8
|
+
chartsDataProviderProps: ChartsDataProviderProps<SeriesType, TSignatures>;
|
|
9
9
|
chartsSurfaceProps: ChartsSurfaceProps;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
};
|
|
@@ -9,7 +9,7 @@ exports.useChartsContainerProps = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var _allPlugins = require("../internals/plugins/allPlugins");
|
|
12
|
-
const _excluded = ["width", "height", "margin", "children", "series", "colors", "dataset", "desc", "onAxisClick", "highlightedAxis", "onHighlightedAxisChange", "tooltipAxis", "onTooltipAxisChange", "tooltipItem", "onTooltipItemChange", "
|
|
12
|
+
const _excluded = ["width", "height", "margin", "children", "series", "colors", "dataset", "desc", "onAxisClick", "highlightedAxis", "onHighlightedAxisChange", "tooltipAxis", "onTooltipAxisChange", "tooltipItem", "onTooltipItemChange", "disableHitArea", "hitAreaRadius", "onItemClick", "disableAxisListener", "highlightedItem", "onHighlightChange", "sx", "title", "axesGap", "xAxis", "yAxis", "zAxis", "rotationAxis", "radiusAxis", "skipAnimation", "seriesConfig", "experimentalFeatures", "plugins", "localeText", "slots", "slotProps", "disableKeyboardNavigation", "brushConfig", "onHiddenItemsChange", "hiddenItems", "initialHiddenItems"];
|
|
13
13
|
const useChartsContainerProps = props => {
|
|
14
14
|
const _ref = props,
|
|
15
15
|
{
|
|
@@ -28,8 +28,8 @@ const useChartsContainerProps = props => {
|
|
|
28
28
|
onTooltipAxisChange,
|
|
29
29
|
tooltipItem,
|
|
30
30
|
onTooltipItemChange,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
disableHitArea,
|
|
32
|
+
hitAreaRadius,
|
|
33
33
|
onItemClick,
|
|
34
34
|
disableAxisListener,
|
|
35
35
|
highlightedItem,
|
|
@@ -44,11 +44,11 @@ const useChartsContainerProps = props => {
|
|
|
44
44
|
radiusAxis,
|
|
45
45
|
skipAnimation,
|
|
46
46
|
seriesConfig,
|
|
47
|
+
experimentalFeatures,
|
|
47
48
|
plugins,
|
|
48
49
|
localeText,
|
|
49
50
|
slots,
|
|
50
51
|
slotProps,
|
|
51
|
-
experimentalFeatures,
|
|
52
52
|
disableKeyboardNavigation,
|
|
53
53
|
brushConfig,
|
|
54
54
|
onHiddenItemsChange,
|
|
@@ -61,7 +61,7 @@ const useChartsContainerProps = props => {
|
|
|
61
61
|
desc,
|
|
62
62
|
sx
|
|
63
63
|
}, other);
|
|
64
|
-
const
|
|
64
|
+
const chartsDataProviderProps = {
|
|
65
65
|
margin,
|
|
66
66
|
series,
|
|
67
67
|
colors,
|
|
@@ -76,8 +76,8 @@ const useChartsContainerProps = props => {
|
|
|
76
76
|
onTooltipAxisChange,
|
|
77
77
|
tooltipItem,
|
|
78
78
|
onTooltipItemChange,
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
disableHitArea,
|
|
80
|
+
hitAreaRadius,
|
|
81
81
|
onItemClick,
|
|
82
82
|
axesGap,
|
|
83
83
|
xAxis,
|
|
@@ -101,7 +101,7 @@ const useChartsContainerProps = props => {
|
|
|
101
101
|
slotProps
|
|
102
102
|
};
|
|
103
103
|
return {
|
|
104
|
-
|
|
104
|
+
chartsDataProviderProps,
|
|
105
105
|
chartsSurfaceProps,
|
|
106
106
|
children
|
|
107
107
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["width", "height", "margin", "children", "series", "colors", "dataset", "desc", "onAxisClick", "highlightedAxis", "onHighlightedAxisChange", "tooltipAxis", "onTooltipAxisChange", "tooltipItem", "onTooltipItemChange", "
|
|
5
|
+
const _excluded = ["width", "height", "margin", "children", "series", "colors", "dataset", "desc", "onAxisClick", "highlightedAxis", "onHighlightedAxisChange", "tooltipAxis", "onTooltipAxisChange", "tooltipItem", "onTooltipItemChange", "disableHitArea", "hitAreaRadius", "onItemClick", "disableAxisListener", "highlightedItem", "onHighlightChange", "sx", "title", "axesGap", "xAxis", "yAxis", "zAxis", "rotationAxis", "radiusAxis", "skipAnimation", "seriesConfig", "experimentalFeatures", "plugins", "localeText", "slots", "slotProps", "disableKeyboardNavigation", "brushConfig", "onHiddenItemsChange", "hiddenItems", "initialHiddenItems"];
|
|
6
6
|
import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.mjs";
|
|
7
7
|
export const useChartsContainerProps = props => {
|
|
8
8
|
const _ref = props,
|
|
@@ -22,8 +22,8 @@ export const useChartsContainerProps = props => {
|
|
|
22
22
|
onTooltipAxisChange,
|
|
23
23
|
tooltipItem,
|
|
24
24
|
onTooltipItemChange,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
disableHitArea,
|
|
26
|
+
hitAreaRadius,
|
|
27
27
|
onItemClick,
|
|
28
28
|
disableAxisListener,
|
|
29
29
|
highlightedItem,
|
|
@@ -38,11 +38,11 @@ export const useChartsContainerProps = props => {
|
|
|
38
38
|
radiusAxis,
|
|
39
39
|
skipAnimation,
|
|
40
40
|
seriesConfig,
|
|
41
|
+
experimentalFeatures,
|
|
41
42
|
plugins,
|
|
42
43
|
localeText,
|
|
43
44
|
slots,
|
|
44
45
|
slotProps,
|
|
45
|
-
experimentalFeatures,
|
|
46
46
|
disableKeyboardNavigation,
|
|
47
47
|
brushConfig,
|
|
48
48
|
onHiddenItemsChange,
|
|
@@ -55,7 +55,7 @@ export const useChartsContainerProps = props => {
|
|
|
55
55
|
desc,
|
|
56
56
|
sx
|
|
57
57
|
}, other);
|
|
58
|
-
const
|
|
58
|
+
const chartsDataProviderProps = {
|
|
59
59
|
margin,
|
|
60
60
|
series,
|
|
61
61
|
colors,
|
|
@@ -70,8 +70,8 @@ export const useChartsContainerProps = props => {
|
|
|
70
70
|
onTooltipAxisChange,
|
|
71
71
|
tooltipItem,
|
|
72
72
|
onTooltipItemChange,
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
disableHitArea,
|
|
74
|
+
hitAreaRadius,
|
|
75
75
|
onItemClick,
|
|
76
76
|
axesGap,
|
|
77
77
|
xAxis,
|
|
@@ -95,7 +95,7 @@ export const useChartsContainerProps = props => {
|
|
|
95
95
|
slotProps
|
|
96
96
|
};
|
|
97
97
|
return {
|
|
98
|
-
|
|
98
|
+
chartsDataProviderProps,
|
|
99
99
|
chartsSurfaceProps,
|
|
100
100
|
children
|
|
101
101
|
};
|
|
@@ -80,12 +80,6 @@ process.env.NODE_ENV !== "production" ? ChartsDataProvider.propTypes = {
|
|
|
80
80
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
81
81
|
*/
|
|
82
82
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
83
|
-
/**
|
|
84
|
-
* Options to enable features planned for the next major.
|
|
85
|
-
*/
|
|
86
|
-
experimentalFeatures: _propTypes.default.shape({
|
|
87
|
-
preferStrictDomainInLineCharts: _propTypes.default.bool
|
|
88
|
-
}),
|
|
89
83
|
/**
|
|
90
84
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
91
85
|
*/
|
|
@@ -73,12 +73,6 @@ process.env.NODE_ENV !== "production" ? ChartsDataProvider.propTypes = {
|
|
|
73
73
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
74
74
|
*/
|
|
75
75
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
76
|
-
/**
|
|
77
|
-
* Options to enable features planned for the next major.
|
|
78
|
-
*/
|
|
79
|
-
experimentalFeatures: PropTypes.shape({
|
|
80
|
-
preferStrictDomainInLineCharts: PropTypes.bool
|
|
81
|
-
}),
|
|
82
76
|
/**
|
|
83
77
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
84
78
|
*/
|
|
@@ -16,7 +16,7 @@ const useChartsDataProviderProps = inProps => {
|
|
|
16
16
|
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
17
17
|
const themedProps = (0, _styles.useThemeProps)({
|
|
18
18
|
props: inProps,
|
|
19
|
-
name: '
|
|
19
|
+
name: 'MuiChartsDataProvider'
|
|
20
20
|
});
|
|
21
21
|
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
22
22
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -10,7 +10,7 @@ export const useChartsDataProviderProps = inProps => {
|
|
|
10
10
|
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
11
11
|
const themedProps = useThemeProps({
|
|
12
12
|
props: inProps,
|
|
13
|
-
name: '
|
|
13
|
+
name: 'MuiChartsDataProvider'
|
|
14
14
|
});
|
|
15
15
|
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
16
16
|
const props = useThemeProps({
|
package/ChartsGrid/ChartsGrid.js
CHANGED
|
@@ -9,6 +9,7 @@ exports.ChartsGrid = ChartsGrid;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
14
|
var _styles = require("@mui/material/styles");
|
|
14
15
|
var _chartsGridClasses = require("./chartsGridClasses");
|
|
@@ -18,7 +19,7 @@ var _ChartsVerticalGrid = require("./ChartsVerticalGrid");
|
|
|
18
19
|
var _ChartsHorizontalGrid = require("./ChartsHorizontalGrid");
|
|
19
20
|
var _useAxis = require("../hooks/useAxis");
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const _excluded = ["vertical", "horizontal"];
|
|
22
|
+
const _excluded = ["className", "vertical", "horizontal"];
|
|
22
23
|
const useUtilityClasses = ({
|
|
23
24
|
classes
|
|
24
25
|
}) => {
|
|
@@ -45,6 +46,7 @@ function ChartsGrid(inProps) {
|
|
|
45
46
|
});
|
|
46
47
|
const drawingArea = (0, _useDrawingArea.useDrawingArea)();
|
|
47
48
|
const {
|
|
49
|
+
className,
|
|
48
50
|
vertical,
|
|
49
51
|
horizontal
|
|
50
52
|
} = props,
|
|
@@ -61,7 +63,7 @@ function ChartsGrid(inProps) {
|
|
|
61
63
|
const horizontalAxis = yAxis[yAxisIds[0]];
|
|
62
64
|
const verticalAxis = xAxis[xAxisIds[0]];
|
|
63
65
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledComponents.GridRoot, (0, _extends2.default)({}, other, {
|
|
64
|
-
className: classes.root,
|
|
66
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
65
67
|
children: [vertical && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsVerticalGrid.ChartsGridVertical, {
|
|
66
68
|
axis: verticalAxis,
|
|
67
69
|
start: drawingArea.top,
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["vertical", "horizontal"];
|
|
5
|
+
const _excluded = ["className", "vertical", "horizontal"];
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
+
import clsx from 'clsx';
|
|
7
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
9
|
import { useThemeProps } from '@mui/material/styles';
|
|
9
10
|
import { getChartsGridUtilityClass } from "./chartsGridClasses.mjs";
|
|
@@ -39,6 +40,7 @@ function ChartsGrid(inProps) {
|
|
|
39
40
|
});
|
|
40
41
|
const drawingArea = useDrawingArea();
|
|
41
42
|
const {
|
|
43
|
+
className,
|
|
42
44
|
vertical,
|
|
43
45
|
horizontal
|
|
44
46
|
} = props,
|
|
@@ -55,7 +57,7 @@ function ChartsGrid(inProps) {
|
|
|
55
57
|
const horizontalAxis = yAxis[yAxisIds[0]];
|
|
56
58
|
const verticalAxis = xAxis[xAxisIds[0]];
|
|
57
59
|
return /*#__PURE__*/_jsxs(GridRoot, _extends({}, other, {
|
|
58
|
-
className: classes.root,
|
|
60
|
+
className: clsx(classes.root, className),
|
|
59
61
|
children: [vertical && /*#__PURE__*/_jsx(ChartsGridVertical, {
|
|
60
62
|
axis: verticalAxis,
|
|
61
63
|
start: drawingArea.top,
|
|
@@ -8,7 +8,7 @@ exports.ChartsGridHorizontal = ChartsGridHorizontal;
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _useTicks = require("../hooks/useTicks");
|
|
10
10
|
var _styledComponents = require("./styledComponents");
|
|
11
|
-
var
|
|
11
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
@@ -16,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
function ChartsGridHorizontal(props) {
|
|
17
17
|
const {
|
|
18
18
|
instance
|
|
19
|
-
} = (0,
|
|
19
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
20
20
|
const {
|
|
21
21
|
axis,
|
|
22
22
|
start,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useTicks } from "../hooks/useTicks.mjs";
|
|
3
3
|
import { GridLine } from "./styledComponents.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
@@ -9,7 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
export function ChartsGridHorizontal(props) {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
const {
|
|
14
14
|
axis,
|
|
15
15
|
start,
|
|
@@ -8,7 +8,7 @@ exports.ChartsGridVertical = ChartsGridVertical;
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _useTicks = require("../hooks/useTicks");
|
|
10
10
|
var _styledComponents = require("./styledComponents");
|
|
11
|
-
var
|
|
11
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
@@ -16,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
function ChartsGridVertical(props) {
|
|
17
17
|
const {
|
|
18
18
|
instance
|
|
19
|
-
} = (0,
|
|
19
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
20
20
|
const {
|
|
21
21
|
axis,
|
|
22
22
|
start,
|