@mui/x-charts 9.14.0 → 9.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.mjs +2 -2
- package/BarChart/BarChart.mjs +1 -1
- package/BarChart/BarElement.mjs +2 -2
- package/BarChart/BarLabel/BarLabel.mjs +2 -2
- package/BarChart/BarLabel/BarLabelItem.mjs +2 -2
- package/BarChart/BarLabel/BarLabelPlot.mjs +2 -2
- package/BarChart/BarPlot.mjs +2 -2
- package/BarChart/BatchBarPlot/BarGroup.mjs +2 -2
- package/BarChart/FocusedBar.mjs +1 -1
- package/BarChart/IndividualBarPlot.mjs +2 -2
- package/BarChart/checkBarChartScaleErrors.js +1 -1
- package/BarChart/checkBarChartScaleErrors.mjs +2 -2
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.mjs +1 -1
- package/BarChart/seriesConfig/bar/seriesProcessor.mjs +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.js +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.mjs +1 -1
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useBarPlotData.mjs +1 -1
- package/CHANGELOG.md +176 -0
- package/ChartsAxisHighlight/ChartsAxisHighlightPath.mjs +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +1 -1
- package/ChartsClipPath/ChartsClipPath.mjs +1 -1
- package/ChartsContainer/ChartsContainer.mjs +1 -1
- package/ChartsContainer/useChartsContainerProps.mjs +2 -2
- package/ChartsDataProvider/ChartsDataProvider.mjs +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +2 -2
- package/ChartsGrid/ChartsGrid.mjs +2 -2
- package/ChartsLabel/ChartsLabel.mjs +2 -2
- package/ChartsLabel/ChartsLabelGradient.mjs +2 -2
- package/ChartsLabel/ChartsLabelMark.mjs +2 -2
- package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +4 -4
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/ContinuousColorLegend.mjs +2 -2
- package/ChartsLegend/PiecewiseColorLegend.mjs +2 -2
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +2 -2
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +1 -1
- package/ChartsOverlay/ChartsOverlay.mjs +1 -1
- package/ChartsOverlay/common.mjs +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.mjs +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.mjs +2 -2
- package/ChartsRadialGrid/ChartsRadialGrid.mjs +2 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.mjs +3 -3
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.mjs +3 -3
- package/ChartsReferenceLine/common.mjs +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +1 -1
- package/ChartsSurface/ChartsSurface.mjs +2 -2
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +2 -2
- package/ChartsText/ChartsText.mjs +2 -2
- package/ChartsTooltip/ChartsTooltip.mjs +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -5
- package/ChartsWrapper/ChartsWrapper.mjs +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
- package/ChartsXAxis/ChartsXAxis.mjs +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.js +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +4 -3
- package/ChartsXAxis/useAxisTicksProps.d.mts +17 -17
- package/ChartsXAxis/useAxisTicksProps.d.ts +17 -17
- package/ChartsXAxis/useAxisTicksProps.js +2 -1
- package/ChartsXAxis/useAxisTicksProps.mjs +4 -3
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +1 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
- package/ChartsYAxis/ChartsYAxis.mjs +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.js +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +4 -3
- package/ChartsYAxis/useAxisTicksProps.d.mts +17 -17
- package/ChartsYAxis/useAxisTicksProps.d.ts +17 -17
- package/ChartsYAxis/useAxisTicksProps.js +2 -1
- package/ChartsYAxis/useAxisTicksProps.mjs +4 -3
- package/Gauge/Gauge.mjs +2 -2
- package/Gauge/GaugeContainer.mjs +2 -2
- package/Gauge/GaugeReferenceArc.mjs +2 -2
- package/Gauge/GaugeValueArc.mjs +2 -2
- package/Gauge/GaugeValueText.mjs +2 -2
- package/LineChart/AnimatedArea.mjs +2 -2
- package/LineChart/AnimatedLine.mjs +2 -2
- package/LineChart/AreaElement.mjs +2 -2
- package/LineChart/AreaPlot.mjs +2 -2
- package/LineChart/CircleMarkElement.mjs +2 -2
- package/LineChart/LineChart.mjs +1 -1
- package/LineChart/LineElement.mjs +2 -2
- package/LineChart/LineHighlightElement.d.mts +3 -3
- package/LineChart/LineHighlightElement.d.ts +3 -3
- package/LineChart/LineHighlightElement.js +2 -2
- package/LineChart/LineHighlightElement.mjs +4 -4
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/LinePlot.mjs +2 -2
- package/LineChart/MarkElement.mjs +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/LineChart/seriesConfig/tooltipPosition.js +1 -1
- package/LineChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useLinePlotData.js +1 -1
- package/LineChart/useLinePlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.mjs +2 -2
- package/PieChart/PieArc.mjs +2 -2
- package/PieChart/PieArcLabel.mjs +2 -2
- package/PieChart/PieArcLabelPlot.mjs +2 -2
- package/PieChart/PieArcPlot.mjs +2 -2
- package/PieChart/PieChart.mjs +2 -2
- package/PieChart/dataTransform/getModifiedArcProperties.mjs +1 -1
- package/PieChart/dataTransform/useTransformData.mjs +1 -1
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/PieChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/PieChart/seriesConfig/tooltip.mjs +1 -1
- package/PieChart/seriesConfig/tooltipPosition.js +1 -1
- package/PieChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/RadarChart/FocusedRadarMark.mjs +1 -1
- package/RadarChart/RadarAxis/RadarAxis.mjs +1 -1
- package/RadarChart/RadarAxis/useRadarAxis.js +1 -1
- package/RadarChart/RadarAxis/useRadarAxis.mjs +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +1 -1
- package/RadarChart/RadarChart.mjs +1 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.js +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.mjs +3 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +1 -1
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/RadarChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/RadarChart/seriesConfig/tooltipPosition.js +1 -1
- package/RadarChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/RadarChart/useRadarChartProps.mjs +1 -1
- package/ScatterChart/FocusedScatterMark.mjs +2 -2
- package/ScatterChart/HighlightedScatterMark.mjs +2 -2
- package/ScatterChart/Scatter.mjs +2 -2
- package/ScatterChart/ScatterChart.mjs +1 -1
- package/ScatterChart/ScatterMarker.mjs +2 -2
- package/ScatterChart/ScatterPlot.mjs +1 -1
- package/ScatterChart/async/ScatterAsyncBatch.mjs +2 -2
- package/ScatterChart/async/scatterRenderData.selectors.js +1 -1
- package/ScatterChart/async/scatterRenderData.selectors.mjs +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/ScatterChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/ScatterChart/seriesConfig/tooltipPosition.js +1 -1
- package/ScatterChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/ScatterChart/useScatterChartProps.mjs +2 -2
- package/SparkLineChart/SparkLineChart.js +21 -21
- package/SparkLineChart/SparkLineChart.mjs +23 -23
- package/Toolbar/Toolbar.mjs +2 -2
- package/Toolbar/ToolbarButton.mjs +2 -2
- package/context/ChartsProvider/ChartsProvider.types.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.ts +1 -1
- package/context/ChartsSlotsContext.mjs +1 -1
- package/hooks/animation/useAnimate.mjs +1 -1
- package/hooks/useAxisCoordinates.mjs +1 -1
- package/hooks/useAxisTicks.mjs +1 -1
- package/hooks/useIsItemFocusedGetter.js +1 -1
- package/hooks/useIsItemFocusedGetter.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/Flatbush.js +9 -0
- package/internals/Flatbush.mjs +9 -0
- package/internals/commonNextFocusItem.d.mts +46 -0
- package/internals/commonNextFocusItem.d.ts +46 -0
- package/internals/commonNextFocusItem.js +241 -0
- package/internals/commonNextFocusItem.mjs +235 -0
- package/internals/components/AxisSharedComponents.mjs +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.mjs +1 -1
- package/internals/consumeSlots.mjs +2 -2
- package/internals/consumeThemeProps.js +1 -2
- package/internals/consumeThemeProps.mjs +1 -1
- package/internals/createCommonKeyboardFocusHandler.js +16 -0
- package/internals/createCommonKeyboardFocusHandler.mjs +17 -1
- package/internals/defaultizeMargin.mjs +1 -1
- package/internals/geometry.js +1 -1
- package/internals/geometry.mjs +1 -1
- package/internals/getGroupingConfig.mjs +1 -1
- package/internals/getInlineTypographyStyle.d.mts +9 -0
- package/internals/getInlineTypographyStyle.d.ts +9 -0
- package/internals/getInlineTypographyStyle.js +22 -0
- package/internals/getInlineTypographyStyle.mjs +16 -0
- package/internals/getLineLikeTooltip.mjs +1 -1
- package/internals/getWordsByLines.mjs +1 -1
- package/internals/material/index.mjs +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.mjs +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.mjs +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -4
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +9 -5
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +2 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +3 -3
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +1 -1
- package/internals/plugins/models/plugin.d.mts +1 -1
- package/internals/plugins/models/plugin.d.ts +1 -1
- package/internals/plugins/utils/useLazySelectorEffect.d.mts +1 -1
- package/internals/plugins/utils/useLazySelectorEffect.d.ts +1 -1
- package/internals/processLineLikeSeries.mjs +1 -1
- package/internals/seriesSelectorOfType.js +2 -2
- package/internals/seriesSelectorOfType.mjs +2 -2
- package/internals/store/extractPluginParamsFromProps.mjs +1 -1
- package/internals/store/useCharts.d.mts +1 -1
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useCharts.js +1 -1
- package/internals/store/useCharts.mjs +1 -1
- package/internals/store/useStore.d.mts +1 -1
- package/internals/store/useStore.d.ts +1 -1
- package/internals/ts-generic.d.mts +1 -1
- package/internals/ts-generic.d.ts +1 -1
- package/locales/elGR.d.mts +1 -1
- package/locales/elGR.d.ts +1 -1
- package/locales/enUS.d.mts +1 -1
- package/locales/enUS.d.ts +1 -1
- package/locales/frFR.d.mts +1 -1
- package/locales/frFR.d.ts +1 -1
- package/locales/nbNO.d.mts +1 -1
- package/locales/nbNO.d.ts +1 -1
- package/locales/ptBR.d.mts +1 -1
- package/locales/ptBR.d.ts +1 -1
- package/locales/ptPT.d.mts +1 -1
- package/locales/ptPT.d.ts +1 -1
- package/locales/svSE.d.mts +1 -1
- package/locales/svSE.d.ts +1 -1
- package/locales/utils/chartsLocaleTextApi.d.mts +1 -1
- package/locales/utils/chartsLocaleTextApi.d.ts +1 -1
- package/locales/utils/getChartsLocalization.d.mts +1 -1
- package/locales/utils/getChartsLocalization.d.ts +1 -1
- package/locales/utils/getChartsLocalization.mjs +1 -1
- package/package.json +7 -6
- package/tests/web-components.js +1 -0
- package/tests/web-components.mjs +1 -0
|
@@ -22,6 +22,7 @@ var _isInfinity = require("../internals/isInfinity");
|
|
|
22
22
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
23
23
|
var _scaleGuards = require("../internals/scaleGuards");
|
|
24
24
|
var _domUtils = require("../internals/domUtils");
|
|
25
|
+
var _getInlineTypographyStyle = require("../internals/getInlineTypographyStyle");
|
|
25
26
|
var _AxisSharedComponents = require("../internals/components/AxisSharedComponents");
|
|
26
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
28
|
const _excluded = ["axis"],
|
|
@@ -90,7 +91,7 @@ function ChartsYAxisImpl(_ref) {
|
|
|
90
91
|
externalSlotProps: slotProps?.axisLabel,
|
|
91
92
|
// @ts-expect-error `useSlotProps` applies `WithCommonProps` with adds a `style: React.CSSProperties` prop automatically.
|
|
92
93
|
additionalProps: {
|
|
93
|
-
style: (0, _extends2.default)({}, theme.typography.body1, {
|
|
94
|
+
style: (0, _extends2.default)({}, (0, _getInlineTypographyStyle.getInlineTypographyStyle)(theme.typography.body1), {
|
|
94
95
|
lineHeight: 1,
|
|
95
96
|
fontSize: 14,
|
|
96
97
|
angle: positionSign * 90,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["axis"],
|
|
6
6
|
_excluded2 = ["scale", "tickNumber", "reverse", "ordinalTimeTicks"];
|
|
7
7
|
import * as React from 'react';
|
|
@@ -17,6 +17,7 @@ import { isInfinity } from "../internals/isInfinity.mjs";
|
|
|
17
17
|
import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
18
18
|
import { isOrdinalScale } from "../internals/scaleGuards.mjs";
|
|
19
19
|
import { getStringSize } from "../internals/domUtils.mjs";
|
|
20
|
+
import { getInlineTypographyStyle } from "../internals/getInlineTypographyStyle.mjs";
|
|
20
21
|
import { AxisRoot } from "../internals/components/AxisSharedComponents.mjs";
|
|
21
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
23
|
const YAxisRoot = styled(AxisRoot, {
|
|
@@ -83,7 +84,7 @@ export function ChartsYAxisImpl(_ref) {
|
|
|
83
84
|
externalSlotProps: slotProps?.axisLabel,
|
|
84
85
|
// @ts-expect-error `useSlotProps` applies `WithCommonProps` with adds a `style: React.CSSProperties` prop automatically.
|
|
85
86
|
additionalProps: {
|
|
86
|
-
style: _extends({}, theme.typography.body1, {
|
|
87
|
+
style: _extends({}, getInlineTypographyStyle(theme.typography.body1), {
|
|
87
88
|
lineHeight: 1,
|
|
88
89
|
fontSize: 14,
|
|
89
90
|
angle: positionSign * 90,
|
|
@@ -3815,11 +3815,11 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3815
3815
|
onTransitionStart?: import("react").TransitionEventHandler<SVGTextElement> | undefined;
|
|
3816
3816
|
onTransitionStartCapture?: import("react").TransitionEventHandler<SVGTextElement> | undefined;
|
|
3817
3817
|
"aria-activedescendant"?: string | undefined;
|
|
3818
|
-
"aria-atomic"?:
|
|
3818
|
+
"aria-atomic"?: "false" | "true" | boolean | undefined;
|
|
3819
3819
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
3820
3820
|
"aria-braillelabel"?: string | undefined;
|
|
3821
3821
|
"aria-brailleroledescription"?: string | undefined;
|
|
3822
|
-
"aria-busy"?:
|
|
3822
|
+
"aria-busy"?: "false" | "true" | boolean | undefined;
|
|
3823
3823
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
3824
3824
|
"aria-colcount"?: number | undefined;
|
|
3825
3825
|
"aria-colindex"?: number | undefined;
|
|
@@ -3830,37 +3830,37 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3830
3830
|
"aria-describedby"?: string | undefined;
|
|
3831
3831
|
"aria-description"?: string | undefined;
|
|
3832
3832
|
"aria-details"?: string | undefined;
|
|
3833
|
-
"aria-disabled"?:
|
|
3833
|
+
"aria-disabled"?: "false" | "true" | boolean | undefined;
|
|
3834
3834
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
3835
3835
|
"aria-errormessage"?: string | undefined;
|
|
3836
|
-
"aria-expanded"?:
|
|
3836
|
+
"aria-expanded"?: "false" | "true" | boolean | undefined;
|
|
3837
3837
|
"aria-flowto"?: string | undefined;
|
|
3838
|
-
"aria-grabbed"?:
|
|
3838
|
+
"aria-grabbed"?: "false" | "true" | boolean | undefined;
|
|
3839
3839
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
3840
|
-
"aria-hidden"?:
|
|
3840
|
+
"aria-hidden"?: "false" | "true" | boolean | undefined;
|
|
3841
3841
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
3842
3842
|
"aria-keyshortcuts"?: string | undefined;
|
|
3843
3843
|
"aria-label"?: string | undefined;
|
|
3844
3844
|
"aria-labelledby"?: string | undefined;
|
|
3845
3845
|
"aria-level"?: number | undefined;
|
|
3846
3846
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
3847
|
-
"aria-modal"?:
|
|
3848
|
-
"aria-multiline"?:
|
|
3849
|
-
"aria-multiselectable"?:
|
|
3847
|
+
"aria-modal"?: "false" | "true" | boolean | undefined;
|
|
3848
|
+
"aria-multiline"?: "false" | "true" | boolean | undefined;
|
|
3849
|
+
"aria-multiselectable"?: "false" | "true" | boolean | undefined;
|
|
3850
3850
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
3851
3851
|
"aria-owns"?: string | undefined;
|
|
3852
3852
|
"aria-placeholder"?: string | undefined;
|
|
3853
3853
|
"aria-posinset"?: number | undefined;
|
|
3854
3854
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
3855
|
-
"aria-readonly"?:
|
|
3855
|
+
"aria-readonly"?: "false" | "true" | boolean | undefined;
|
|
3856
3856
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
3857
|
-
"aria-required"?:
|
|
3857
|
+
"aria-required"?: "false" | "true" | boolean | undefined;
|
|
3858
3858
|
"aria-roledescription"?: string | undefined;
|
|
3859
3859
|
"aria-rowcount"?: number | undefined;
|
|
3860
3860
|
"aria-rowindex"?: number | undefined;
|
|
3861
3861
|
"aria-rowindextext"?: string | undefined;
|
|
3862
3862
|
"aria-rowspan"?: number | undefined;
|
|
3863
|
-
"aria-selected"?:
|
|
3863
|
+
"aria-selected"?: "false" | "true" | boolean | undefined;
|
|
3864
3864
|
"aria-setsize"?: number | undefined;
|
|
3865
3865
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
3866
3866
|
"aria-valuemax"?: number | undefined;
|
|
@@ -3897,7 +3897,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3897
3897
|
ascent?: number | string | undefined;
|
|
3898
3898
|
attributeName?: string | undefined;
|
|
3899
3899
|
attributeType?: string | undefined;
|
|
3900
|
-
autoReverse?:
|
|
3900
|
+
autoReverse?: "false" | "true" | boolean | undefined;
|
|
3901
3901
|
azimuth?: number | string | undefined;
|
|
3902
3902
|
baseFrequency?: number | string | undefined;
|
|
3903
3903
|
baselineShift?: number | string | undefined;
|
|
@@ -3936,7 +3936,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3936
3936
|
enableBackground?: number | string | undefined;
|
|
3937
3937
|
end?: number | string | undefined;
|
|
3938
3938
|
exponent?: number | string | undefined;
|
|
3939
|
-
externalResourcesRequired?:
|
|
3939
|
+
externalResourcesRequired?: "false" | "true" | boolean | undefined;
|
|
3940
3940
|
fill?: string | undefined;
|
|
3941
3941
|
fillOpacity?: number | string | undefined;
|
|
3942
3942
|
fillRule?: "nonzero" | "evenodd" | "inherit" | undefined;
|
|
@@ -3945,7 +3945,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3945
3945
|
filterUnits?: number | string | undefined;
|
|
3946
3946
|
floodColor?: number | string | undefined;
|
|
3947
3947
|
floodOpacity?: number | string | undefined;
|
|
3948
|
-
focusable?:
|
|
3948
|
+
focusable?: "false" | "true" | boolean | "auto" | undefined;
|
|
3949
3949
|
fontFamily?: string | undefined;
|
|
3950
3950
|
fontSize?: number | string | undefined;
|
|
3951
3951
|
fontSizeAdjust?: number | string | undefined;
|
|
@@ -4025,7 +4025,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
4025
4025
|
pointsAtX?: number | string | undefined;
|
|
4026
4026
|
pointsAtY?: number | string | undefined;
|
|
4027
4027
|
pointsAtZ?: number | string | undefined;
|
|
4028
|
-
preserveAlpha?:
|
|
4028
|
+
preserveAlpha?: "false" | "true" | boolean | undefined;
|
|
4029
4029
|
preserveAspectRatio?: string | undefined;
|
|
4030
4030
|
primitiveUnits?: number | string | undefined;
|
|
4031
4031
|
r?: number | string | undefined;
|
|
@@ -4129,7 +4129,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
4129
4129
|
zoomAndPan?: string | undefined;
|
|
4130
4130
|
ref: ((instance: any | null) => void) | null;
|
|
4131
4131
|
text?: string | undefined;
|
|
4132
|
-
style?:
|
|
4132
|
+
style?: import("../index.mjs").ChartsTextStyle & import("react").CSSProperties | undefined;
|
|
4133
4133
|
needsComputation?: boolean;
|
|
4134
4134
|
lineHeight?: number;
|
|
4135
4135
|
ownerState: any;
|
|
@@ -3815,11 +3815,11 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3815
3815
|
onTransitionStart?: import("react").TransitionEventHandler<SVGTextElement> | undefined;
|
|
3816
3816
|
onTransitionStartCapture?: import("react").TransitionEventHandler<SVGTextElement> | undefined;
|
|
3817
3817
|
"aria-activedescendant"?: string | undefined;
|
|
3818
|
-
"aria-atomic"?:
|
|
3818
|
+
"aria-atomic"?: "false" | "true" | boolean | undefined;
|
|
3819
3819
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
3820
3820
|
"aria-braillelabel"?: string | undefined;
|
|
3821
3821
|
"aria-brailleroledescription"?: string | undefined;
|
|
3822
|
-
"aria-busy"?:
|
|
3822
|
+
"aria-busy"?: "false" | "true" | boolean | undefined;
|
|
3823
3823
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
3824
3824
|
"aria-colcount"?: number | undefined;
|
|
3825
3825
|
"aria-colindex"?: number | undefined;
|
|
@@ -3830,37 +3830,37 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3830
3830
|
"aria-describedby"?: string | undefined;
|
|
3831
3831
|
"aria-description"?: string | undefined;
|
|
3832
3832
|
"aria-details"?: string | undefined;
|
|
3833
|
-
"aria-disabled"?:
|
|
3833
|
+
"aria-disabled"?: "false" | "true" | boolean | undefined;
|
|
3834
3834
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
3835
3835
|
"aria-errormessage"?: string | undefined;
|
|
3836
|
-
"aria-expanded"?:
|
|
3836
|
+
"aria-expanded"?: "false" | "true" | boolean | undefined;
|
|
3837
3837
|
"aria-flowto"?: string | undefined;
|
|
3838
|
-
"aria-grabbed"?:
|
|
3838
|
+
"aria-grabbed"?: "false" | "true" | boolean | undefined;
|
|
3839
3839
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
3840
|
-
"aria-hidden"?:
|
|
3840
|
+
"aria-hidden"?: "false" | "true" | boolean | undefined;
|
|
3841
3841
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
3842
3842
|
"aria-keyshortcuts"?: string | undefined;
|
|
3843
3843
|
"aria-label"?: string | undefined;
|
|
3844
3844
|
"aria-labelledby"?: string | undefined;
|
|
3845
3845
|
"aria-level"?: number | undefined;
|
|
3846
3846
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
3847
|
-
"aria-modal"?:
|
|
3848
|
-
"aria-multiline"?:
|
|
3849
|
-
"aria-multiselectable"?:
|
|
3847
|
+
"aria-modal"?: "false" | "true" | boolean | undefined;
|
|
3848
|
+
"aria-multiline"?: "false" | "true" | boolean | undefined;
|
|
3849
|
+
"aria-multiselectable"?: "false" | "true" | boolean | undefined;
|
|
3850
3850
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
3851
3851
|
"aria-owns"?: string | undefined;
|
|
3852
3852
|
"aria-placeholder"?: string | undefined;
|
|
3853
3853
|
"aria-posinset"?: number | undefined;
|
|
3854
3854
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
3855
|
-
"aria-readonly"?:
|
|
3855
|
+
"aria-readonly"?: "false" | "true" | boolean | undefined;
|
|
3856
3856
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
3857
|
-
"aria-required"?:
|
|
3857
|
+
"aria-required"?: "false" | "true" | boolean | undefined;
|
|
3858
3858
|
"aria-roledescription"?: string | undefined;
|
|
3859
3859
|
"aria-rowcount"?: number | undefined;
|
|
3860
3860
|
"aria-rowindex"?: number | undefined;
|
|
3861
3861
|
"aria-rowindextext"?: string | undefined;
|
|
3862
3862
|
"aria-rowspan"?: number | undefined;
|
|
3863
|
-
"aria-selected"?:
|
|
3863
|
+
"aria-selected"?: "false" | "true" | boolean | undefined;
|
|
3864
3864
|
"aria-setsize"?: number | undefined;
|
|
3865
3865
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
3866
3866
|
"aria-valuemax"?: number | undefined;
|
|
@@ -3897,7 +3897,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3897
3897
|
ascent?: number | string | undefined;
|
|
3898
3898
|
attributeName?: string | undefined;
|
|
3899
3899
|
attributeType?: string | undefined;
|
|
3900
|
-
autoReverse?:
|
|
3900
|
+
autoReverse?: "false" | "true" | boolean | undefined;
|
|
3901
3901
|
azimuth?: number | string | undefined;
|
|
3902
3902
|
baseFrequency?: number | string | undefined;
|
|
3903
3903
|
baselineShift?: number | string | undefined;
|
|
@@ -3936,7 +3936,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3936
3936
|
enableBackground?: number | string | undefined;
|
|
3937
3937
|
end?: number | string | undefined;
|
|
3938
3938
|
exponent?: number | string | undefined;
|
|
3939
|
-
externalResourcesRequired?:
|
|
3939
|
+
externalResourcesRequired?: "false" | "true" | boolean | undefined;
|
|
3940
3940
|
fill?: string | undefined;
|
|
3941
3941
|
fillOpacity?: number | string | undefined;
|
|
3942
3942
|
fillRule?: "nonzero" | "evenodd" | "inherit" | undefined;
|
|
@@ -3945,7 +3945,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
3945
3945
|
filterUnits?: number | string | undefined;
|
|
3946
3946
|
floodColor?: number | string | undefined;
|
|
3947
3947
|
floodOpacity?: number | string | undefined;
|
|
3948
|
-
focusable?:
|
|
3948
|
+
focusable?: "false" | "true" | boolean | "auto" | undefined;
|
|
3949
3949
|
fontFamily?: string | undefined;
|
|
3950
3950
|
fontSize?: number | string | undefined;
|
|
3951
3951
|
fontSizeAdjust?: number | string | undefined;
|
|
@@ -4025,7 +4025,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
4025
4025
|
pointsAtX?: number | string | undefined;
|
|
4026
4026
|
pointsAtY?: number | string | undefined;
|
|
4027
4027
|
pointsAtZ?: number | string | undefined;
|
|
4028
|
-
preserveAlpha?:
|
|
4028
|
+
preserveAlpha?: "false" | "true" | boolean | undefined;
|
|
4029
4029
|
preserveAspectRatio?: string | undefined;
|
|
4030
4030
|
primitiveUnits?: number | string | undefined;
|
|
4031
4031
|
r?: number | string | undefined;
|
|
@@ -4129,7 +4129,7 @@ export declare function useAxisTicksProps(inProps: ChartsYAxisProps): {
|
|
|
4129
4129
|
zoomAndPan?: string | undefined;
|
|
4130
4130
|
ref: ((instance: any | null) => void) | null;
|
|
4131
4131
|
text?: string | undefined;
|
|
4132
|
-
style?:
|
|
4132
|
+
style?: import("../index.js").ChartsTextStyle & import("react").CSSProperties | undefined;
|
|
4133
4133
|
needsComputation?: boolean;
|
|
4134
4134
|
lineHeight?: number;
|
|
4135
4135
|
ownerState: any;
|
|
@@ -15,6 +15,7 @@ var _ChartsText = require("../ChartsText");
|
|
|
15
15
|
var _useAxis = require("../hooks/useAxis");
|
|
16
16
|
var _defaultTextPlacement = require("../ChartsText/defaultTextPlacement");
|
|
17
17
|
var _invertTextAnchor = require("../internals/invertTextAnchor");
|
|
18
|
+
var _getInlineTypographyStyle = require("../internals/getInlineTypographyStyle");
|
|
18
19
|
var _utilities = require("./utilities");
|
|
19
20
|
var _constants = require("../constants");
|
|
20
21
|
const _excluded = ["scale", "tickNumber", "reverse"];
|
|
@@ -57,7 +58,7 @@ function useAxisTicksProps(inProps) {
|
|
|
57
58
|
externalSlotProps: slotProps?.axisTickLabel,
|
|
58
59
|
// @ts-expect-error `useSlotProps` applies `WithCommonProps` with adds a `style: React.CSSProperties` prop automatically.
|
|
59
60
|
additionalProps: {
|
|
60
|
-
style: (0, _extends2.default)({}, theme.typography.caption, {
|
|
61
|
+
style: (0, _extends2.default)({}, (0, _getInlineTypographyStyle.getInlineTypographyStyle)(theme.typography.caption), {
|
|
61
62
|
fontSize: tickFontSize,
|
|
62
63
|
textAnchor: isRtl ? (0, _invertTextAnchor.invertTextAnchor)(defaultTextAnchor) : defaultTextAnchor,
|
|
63
64
|
dominantBaseline: defaultDominantBaseline
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["scale", "tickNumber", "reverse"];
|
|
6
6
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
7
7
|
import { useThemeProps, useTheme } from '@mui/material/styles';
|
|
@@ -10,6 +10,7 @@ import { ChartsText } from "../ChartsText/index.mjs";
|
|
|
10
10
|
import { useYAxes } from "../hooks/useAxis.mjs";
|
|
11
11
|
import { getDefaultBaseline, getDefaultTextAnchor } from "../ChartsText/defaultTextPlacement.mjs";
|
|
12
12
|
import { invertTextAnchor } from "../internals/invertTextAnchor.mjs";
|
|
13
|
+
import { getInlineTypographyStyle } from "../internals/getInlineTypographyStyle.mjs";
|
|
13
14
|
import { defaultProps, useUtilityClasses } from "./utilities.mjs";
|
|
14
15
|
import { DEFAULT_TICK_LABEL_FONT_SIZE } from "../constants/index.mjs";
|
|
15
16
|
export function useAxisTicksProps(inProps) {
|
|
@@ -51,7 +52,7 @@ export function useAxisTicksProps(inProps) {
|
|
|
51
52
|
externalSlotProps: slotProps?.axisTickLabel,
|
|
52
53
|
// @ts-expect-error `useSlotProps` applies `WithCommonProps` with adds a `style: React.CSSProperties` prop automatically.
|
|
53
54
|
additionalProps: {
|
|
54
|
-
style: _extends({}, theme.typography.caption, {
|
|
55
|
+
style: _extends({}, getInlineTypographyStyle(theme.typography.caption), {
|
|
55
56
|
fontSize: tickFontSize,
|
|
56
57
|
textAnchor: isRtl ? invertTextAnchor(defaultTextAnchor) : defaultTextAnchor,
|
|
57
58
|
dominantBaseline: defaultDominantBaseline
|
package/Gauge/Gauge.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["text", "children", "classes", "className", "skipAnimation"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
package/Gauge/GaugeContainer.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["width", "height", "margin", "title", "desc", "value", "valueMin", "valueMax", "startAngle", "endAngle", "outerRadius", "innerRadius", "cornerRadius", "cx", "cy", "children"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { arc as d3Arc } from '@mui/x-charts-vendor/d3-shape';
|
package/Gauge/GaugeValueArc.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["className"],
|
|
6
6
|
_excluded2 = ["cx", "cy", "startAngle", "endAngle", "cornerRadius", "innerRadius", "outerRadius", "skipAnimation"];
|
|
7
7
|
import * as React from 'react';
|
package/Gauge/GaugeValueText.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["text", "className"];
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["skipAnimation", "ownerState"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["skipAnimation", "ownerState"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
package/LineChart/AreaPlot.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["slots", "slotProps", "onItemClick", "skipAnimation", "className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["x", "y", "seriesId", "classes", "color", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted", "shape", "hidden"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
package/LineChart/LineChart.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick", "hidden"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -6,11 +6,11 @@ interface LineHighlightElementCommonProps {
|
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
8
8
|
}
|
|
9
|
-
export type LineHighlightElementProps =
|
|
9
|
+
export type LineHighlightElementProps = LineHighlightElementCommonProps & {
|
|
10
10
|
shape: 'circle';
|
|
11
|
-
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>
|
|
11
|
+
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'> | LineHighlightElementCommonProps & {
|
|
12
12
|
shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
13
|
-
} & Omit<React.SVGProps<SVGPathElement>, 'ref'
|
|
13
|
+
} & Omit<React.SVGProps<SVGPathElement>, 'ref'>;
|
|
14
14
|
/**
|
|
15
15
|
* Demos:
|
|
16
16
|
*
|
|
@@ -6,11 +6,11 @@ interface LineHighlightElementCommonProps {
|
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
8
8
|
}
|
|
9
|
-
export type LineHighlightElementProps =
|
|
9
|
+
export type LineHighlightElementProps = LineHighlightElementCommonProps & {
|
|
10
10
|
shape: 'circle';
|
|
11
|
-
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>
|
|
11
|
+
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'> | LineHighlightElementCommonProps & {
|
|
12
12
|
shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
13
|
-
} & Omit<React.SVGProps<SVGPathElement>, 'ref'
|
|
13
|
+
} & Omit<React.SVGProps<SVGPathElement>, 'ref'>;
|
|
14
14
|
/**
|
|
15
15
|
* Demos:
|
|
16
16
|
*
|
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
|
-
var
|
|
14
|
+
var _reactVersion = require("@base-ui/utils/reactVersion");
|
|
15
15
|
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
16
16
|
var _getSymbol = require("../internals/getSymbol");
|
|
17
17
|
var _lineClasses = require("./lineClasses");
|
|
@@ -46,7 +46,7 @@ function LineHighlightElement(props) {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
// React 18 does not recognize `transformOrigin` and React 19 does not recognize `transform-origin`
|
|
49
|
-
const transformOrigin =
|
|
49
|
+
const transformOrigin = (0, _reactVersion.isReactVersionAtLeast)(19) ? {
|
|
50
50
|
transformOrigin: `${x} ${y}`
|
|
51
51
|
} : {
|
|
52
52
|
'transform-origin': `${x} ${y}`
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["x", "y", "seriesId", "color", "shape"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import
|
|
8
|
+
import { isReactVersionAtLeast } from '@base-ui/utils/reactVersion';
|
|
9
9
|
import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
|
|
10
10
|
import { getSymbol } from "../internals/getSymbol.mjs";
|
|
11
11
|
import { useUtilityClasses as useLineUtilityClasses } from "./lineClasses.mjs";
|
|
@@ -39,7 +39,7 @@ function LineHighlightElement(props) {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
// React 18 does not recognize `transformOrigin` and React 19 does not recognize `transform-origin`
|
|
42
|
-
const transformOrigin =
|
|
42
|
+
const transformOrigin = isReactVersionAtLeast(19) ? {
|
|
43
43
|
transformOrigin: `${x} ${y}`
|
|
44
44
|
} : {
|
|
45
45
|
'transform-origin': `${x} ${y}`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
5
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
5
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
6
6
|
const _excluded = ["slots", "slotProps"];
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
package/LineChart/LinePlot.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick", "className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["x", "y", "seriesId", "classes", "color", "shape", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted", "hidden", "style"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
package/LineChart/MarkPlot.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick", "className"];
|
|
6
6
|
import { styled } from '@mui/material/styles';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => _extends({}, seriesData, {
|
|
3
3
|
id: seriesData.id ?? `auto-generated-id-${seriesIndex}`,
|
|
4
4
|
color: seriesData.color ?? colors[seriesIndex % colors.length],
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorTooltipItemPosition = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartTooltip = require("../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors");
|
|
9
9
|
var _useChartSeries = require("../../internals/plugins/corePlugins/useChartSeries");
|
|
10
10
|
var _useChartCartesianAxisRendering = require("../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelectorMemoized } from '@
|
|
1
|
+
import { createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartsTooltipItem } from "../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";
|
|
3
3
|
import { selectorChartSeriesProcessed } from "../../internals/plugins/corePlugins/useChartSeries/index.mjs";
|
|
4
4
|
import { selectorChartXAxis, selectorChartYAxis } from "../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["xAxis", "yAxis", "series", "width", "height", "margin", "colors", "dataset", "sx", "onAreaClick", "onLineClick", "onMarkClick", "axisHighlight", "disableLineItemHighlight", "hideLegend", "grid", "children", "slots", "slotProps", "skipAnimation", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar", "brushConfig"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import useId from '@mui/utils/useId';
|
|
@@ -87,7 +87,7 @@ samplingOverride) {
|
|
|
87
87
|
throw new Error(`MUI X Charts: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have a data property to be able to display a line plot. ` + 'The x-axis data defines the positions for each point in the line. ' + 'Provide a data array to the x-axis configuration.');
|
|
88
88
|
}
|
|
89
89
|
if (xData.length < stackedData.length) {
|
|
90
|
-
(0, _warning.
|
|
90
|
+
(0, _warning.errorOnce)(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
const shouldExpand = curve?.includes('step') && !strictStepCurve && (0, _scaleGuards.isOrdinalScale)(xScale);
|