@mui/x-charts 9.9.0 → 9.10.1
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/barClasses.d.mts +1 -1
- package/BarChart/barClasses.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +10 -10
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +10 -10
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.js +3 -1
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.mjs +3 -1
- package/CHANGELOG.md +217 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +1 -1
- package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +1 -1
- package/ChartsAxisHighlight/getSampledBandHighlight.js +15 -3
- package/ChartsAxisHighlight/getSampledBandHighlight.mjs +15 -3
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +1 -1
- package/ChartsLabel/labelGradientClasses.d.mts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.mts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.mts +2 -1
- package/ChartsLegend/chartsLegend.types.d.ts +2 -1
- package/ChartsLegend/chartsLegendClasses.d.mts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.ts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.mts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.ts +1 -1
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.mts +6 -6
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.ts +6 -6
- package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.mts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.ts +1 -1
- package/ChartsTooltip/ChartTooltip.types.d.mts +2 -1
- package/ChartsTooltip/ChartTooltip.types.d.ts +2 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.mts +4 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +4 -1
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.mts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
- package/ChartsTooltip/useItemTooltip.d.mts +1 -1
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsXAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsXAxis/utilities.d.mts +1 -1
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsYAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsYAxis/utilities.d.mts +1 -1
- package/ChartsYAxis/utilities.d.ts +1 -1
- package/LineChart/AreaPlot.d.mts +3 -3
- package/LineChart/AreaPlot.d.ts +3 -3
- package/LineChart/AreaPlot.js +4 -5
- package/LineChart/AreaPlot.mjs +4 -5
- package/LineChart/LinePlot.d.mts +3 -3
- package/LineChart/LinePlot.d.ts +3 -3
- package/LineChart/LinePlot.js +4 -5
- package/LineChart/LinePlot.mjs +4 -5
- package/LineChart/MarkPlot.d.mts +5 -4
- package/LineChart/MarkPlot.d.ts +5 -4
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/MarkPlot.mjs +1 -1
- package/LineChart/lineClasses.d.mts +1 -1
- package/LineChart/lineClasses.d.ts +1 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.js +3 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.mjs +3 -1
- package/LineChart/useLineItemClickHandler.d.mts +12 -0
- package/LineChart/useLineItemClickHandler.d.ts +12 -0
- package/LineChart/useLineItemClickHandler.js +54 -0
- package/LineChart/useLineItemClickHandler.mjs +48 -0
- package/PieChart/PieArcLabelPlot.d.mts +2 -1
- package/PieChart/PieArcLabelPlot.d.ts +2 -1
- package/PieChart/PieArcPlot.d.mts +2 -1
- package/PieChart/PieArcPlot.d.ts +2 -1
- package/PieChart/pieClasses.d.mts +1 -1
- package/PieChart/pieClasses.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +4 -4
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +4 -4
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +12 -12
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +12 -12
- package/RadarChart/radarClasses.d.mts +1 -1
- package/RadarChart/radarClasses.d.ts +1 -1
- package/RadarChart/seriesConfig/keyboardFocusHandler.js +3 -1
- package/RadarChart/seriesConfig/keyboardFocusHandler.mjs +3 -1
- package/RadarChart/useRadarChartProps.d.mts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.mts +2 -1
- package/ScatterChart/ScatterChart.d.ts +2 -1
- package/ScatterChart/ScatterMarker.types.d.mts +2 -1
- package/ScatterChart/ScatterMarker.types.d.ts +2 -1
- package/ScatterChart/scatterClasses.d.mts +1 -1
- package/ScatterChart/scatterClasses.d.ts +1 -1
- package/ScatterChart/useScatterPlotData.d.mts +1 -1
- package/ScatterChart/useScatterPlotData.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.d.mts +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/Toolbar/Toolbar.types.d.mts +2 -1
- package/Toolbar/Toolbar.types.d.ts +2 -1
- package/hooks/animation/useAnimatePieArc.js +2 -1
- package/hooks/animation/useAnimatePieArc.mjs +2 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +1 -1
- package/internals/colorScale.d.ts +1 -1
- package/internals/commonNextFocusItem.d.mts +2 -2
- package/internals/commonNextFocusItem.d.ts +2 -2
- package/internals/commonNextFocusItem.js +4 -4
- package/internals/commonNextFocusItem.mjs +4 -4
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +1 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +1 -0
- package/internals/configInit.d.mts +1 -1
- package/internals/configInit.d.ts +1 -1
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/consumeThemeProps.d.mts +1 -1
- package/internals/consumeThemeProps.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +1 -1
- package/internals/createGetBarDimensions.js +10 -5
- package/internals/createGetBarDimensions.mjs +10 -5
- package/internals/getGraphemeCount.d.mts +2 -2
- package/internals/getGraphemeCount.d.ts +2 -2
- package/internals/getGroupingConfig.d.mts +1 -1
- package/internals/getGroupingConfig.d.ts +1 -1
- package/internals/getSampledBucketRegion.d.mts +12 -0
- package/internals/getSampledBucketRegion.d.ts +12 -0
- package/internals/getSampledBucketRegion.js +23 -0
- package/internals/getSampledBucketRegion.mjs +17 -0
- package/internals/identifierCleaner.d.mts +1 -1
- package/internals/identifierCleaner.d.ts +1 -1
- package/internals/invertScale.d.mts +1 -1
- package/internals/invertScale.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +78 -78
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +78 -78
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +7 -7
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.d.mts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.js +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/utils/findVisibleDataIndex.mjs +3 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +6 -6
- package/internals/seriesSelectorOfType.d.ts +6 -6
- package/internals/sizeScale.d.mts +1 -1
- package/internals/sizeScale.d.ts +1 -1
- package/internals/sliceUntil.d.mts +2 -2
- package/internals/sliceUntil.d.ts +2 -2
- package/internals/snapEndAngleToFullCircle.d.mts +20 -0
- package/internals/snapEndAngleToFullCircle.d.ts +20 -0
- package/internals/snapEndAngleToFullCircle.js +47 -0
- package/internals/snapEndAngleToFullCircle.mjs +41 -0
- package/models/axis.d.mts +5 -4
- package/models/axis.d.ts +5 -4
- package/models/seriesType/config.d.mts +2 -2
- package/models/seriesType/config.d.ts +2 -2
- package/models/seriesType/index.d.mts +1 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/line.d.mts +14 -1
- package/models/seriesType/line.d.ts +14 -1
- package/package.json +3 -3
|
@@ -29,4 +29,4 @@ export interface UseUtilityClassesOptions {
|
|
|
29
29
|
skipAnimation?: boolean;
|
|
30
30
|
classes?: Partial<BarClasses>;
|
|
31
31
|
}
|
|
32
|
-
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"
|
|
32
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"element" | "label" | "root" | "series" | "seriesLabels", string>;
|
package/BarChart/barClasses.d.ts
CHANGED
|
@@ -29,4 +29,4 @@ export interface UseUtilityClassesOptions {
|
|
|
29
29
|
skipAnimation?: boolean;
|
|
30
30
|
classes?: Partial<BarClasses>;
|
|
31
31
|
}
|
|
32
|
-
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"
|
|
32
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"element" | "label" | "root" | "series" | "seriesLabels", string>;
|
|
@@ -2,22 +2,22 @@ import type { AllSeriesType } from "../../../models/seriesType/index.mjs";
|
|
|
2
2
|
export declare function getSeriesWithDefaultValues(seriesData: AllSeriesType<'bar'>, seriesIndex: number, colors: readonly string[]): {
|
|
3
3
|
id: string;
|
|
4
4
|
color: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
data?: ReadonlyArray<import("../../../index.mjs").BarValueType | null>;
|
|
6
|
+
dataKey?: string;
|
|
7
|
+
valueGetter?: (item: import("../../../internals/index.mjs").DatasetElementType<unknown>) => import("../../../index.mjs").BarValueType | null;
|
|
8
|
+
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
9
|
+
layout?: 'horizontal' | 'vertical';
|
|
10
|
+
minBarSize?: number;
|
|
11
|
+
barLabel?: 'value' | ((item: import("@mui/x-charts/BarChart").BarItem, context: import("@mui/x-charts/BarChart").BarLabelContext) => string | null | undefined);
|
|
12
|
+
type: 'bar';
|
|
13
|
+
barLabelPlacement?: 'center' | 'outside';
|
|
7
14
|
stackOffset?: import("../../../index.mjs").StackOffsetType;
|
|
15
|
+
colorGetter?: ((data: import("../../../internals/index.mjs").ColorCallbackValue<number | null>) => string) | undefined;
|
|
8
16
|
valueFormatter?: import("../../../internals/index.mjs").SeriesValueFormatter<number | null> | undefined;
|
|
9
17
|
highlightScope?: import("../../../internals/index.mjs").CommonHighlightScope | undefined;
|
|
10
18
|
labelMarkType?: import("../../../internals/index.mjs").ChartsLabelMarkType;
|
|
11
|
-
colorGetter?: ((data: import("../../../internals/index.mjs").ColorCallbackValue<number | null>) => string) | undefined;
|
|
12
19
|
xAxisId?: import("../../../internals/index.mjs").AxisId;
|
|
13
20
|
yAxisId?: import("../../../internals/index.mjs").AxisId;
|
|
14
21
|
stack?: string;
|
|
15
22
|
stackOrder?: import("../../../index.mjs").StackOrderType;
|
|
16
|
-
data?: ReadonlyArray<import("../../../index.mjs").BarValueType | null>;
|
|
17
|
-
dataKey?: string;
|
|
18
|
-
valueGetter?: (item: import("../../../internals/index.mjs").DatasetElementType<unknown>) => import("../../../index.mjs").BarValueType | null;
|
|
19
|
-
label?: string | ((location: "tooltip" | "legend") => string);
|
|
20
|
-
layout?: "horizontal" | "vertical";
|
|
21
|
-
minBarSize?: number;
|
|
22
|
-
barLabel?: "value" | ((item: import("@mui/x-charts/BarChart").BarItem, context: import("@mui/x-charts/BarChart").BarLabelContext) => string | null | undefined);
|
|
23
23
|
};
|
|
@@ -2,22 +2,22 @@ import type { AllSeriesType } from "../../../models/seriesType/index.js";
|
|
|
2
2
|
export declare function getSeriesWithDefaultValues(seriesData: AllSeriesType<'bar'>, seriesIndex: number, colors: readonly string[]): {
|
|
3
3
|
id: string;
|
|
4
4
|
color: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
data?: ReadonlyArray<import("../../../index.js").BarValueType | null>;
|
|
6
|
+
dataKey?: string;
|
|
7
|
+
valueGetter?: (item: import("../../../internals/index.js").DatasetElementType<unknown>) => import("../../../index.js").BarValueType | null;
|
|
8
|
+
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
9
|
+
layout?: 'horizontal' | 'vertical';
|
|
10
|
+
minBarSize?: number;
|
|
11
|
+
barLabel?: 'value' | ((item: import("@mui/x-charts/BarChart").BarItem, context: import("@mui/x-charts/BarChart").BarLabelContext) => string | null | undefined);
|
|
12
|
+
type: 'bar';
|
|
13
|
+
barLabelPlacement?: 'center' | 'outside';
|
|
7
14
|
stackOffset?: import("../../../index.js").StackOffsetType;
|
|
15
|
+
colorGetter?: ((data: import("../../../internals/index.js").ColorCallbackValue<number | null>) => string) | undefined;
|
|
8
16
|
valueFormatter?: import("../../../internals/index.js").SeriesValueFormatter<number | null> | undefined;
|
|
9
17
|
highlightScope?: import("../../../internals/index.js").CommonHighlightScope | undefined;
|
|
10
18
|
labelMarkType?: import("../../../internals/index.js").ChartsLabelMarkType;
|
|
11
|
-
colorGetter?: ((data: import("../../../internals/index.js").ColorCallbackValue<number | null>) => string) | undefined;
|
|
12
19
|
xAxisId?: import("../../../internals/index.js").AxisId;
|
|
13
20
|
yAxisId?: import("../../../internals/index.js").AxisId;
|
|
14
21
|
stack?: string;
|
|
15
22
|
stackOrder?: import("../../../index.js").StackOrderType;
|
|
16
|
-
data?: ReadonlyArray<import("../../../index.js").BarValueType | null>;
|
|
17
|
-
dataKey?: string;
|
|
18
|
-
valueGetter?: (item: import("../../../internals/index.js").DatasetElementType<unknown>) => import("../../../index.js").BarValueType | null;
|
|
19
|
-
label?: string | ((location: "tooltip" | "legend") => string);
|
|
20
|
-
layout?: "horizontal" | "vertical";
|
|
21
|
-
minBarSize?: number;
|
|
22
|
-
barLabel?: "value" | ((item: import("@mui/x-charts/BarChart").BarItem, context: import("@mui/x-charts/BarChart").BarLabelContext) => string | null | undefined);
|
|
23
23
|
};
|
|
@@ -6,5 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _createCommonKeyboardFocusHandler = require("../../../internals/createCommonKeyboardFocusHandler");
|
|
8
8
|
var _composition = require("../../../models/seriesType/composition");
|
|
9
|
-
const
|
|
9
|
+
const allowCycles = false;
|
|
10
|
+
const useCurrentSeriesMaxLength = false;
|
|
11
|
+
const keyboardFocusHandler = (0, _createCommonKeyboardFocusHandler.createCommonKeyboardFocusHandler)(_composition.composableCartesianSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
|
|
10
12
|
var _default = exports.default = keyboardFocusHandler;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { createCommonKeyboardFocusHandler } from "../../../internals/createCommonKeyboardFocusHandler.mjs";
|
|
2
2
|
import { composableCartesianSeriesTypes } from "../../../models/seriesType/composition.mjs";
|
|
3
|
-
const
|
|
3
|
+
const allowCycles = false;
|
|
4
|
+
const useCurrentSeriesMaxLength = false;
|
|
5
|
+
const keyboardFocusHandler = createCommonKeyboardFocusHandler(composableCartesianSeriesTypes, allowCycles, useCurrentSeriesMaxLength);
|
|
4
6
|
export default keyboardFocusHandler;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,222 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.10.1
|
|
4
|
+
|
|
5
|
+
_Jul 23, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 🦮 Improve accessibility of the Charts and Pickers components.
|
|
10
|
+
- 🐞 Bugfixes
|
|
11
|
+
- 📚 Documentation improvements
|
|
12
|
+
|
|
13
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
14
|
+
@kevincorizi-sbt, @mustafajw07, @SamanPandey-in
|
|
15
|
+
|
|
16
|
+
The following team members contributed to this release:
|
|
17
|
+
@brijeshb42, @hasdfa, @JCQuintas, @LukasTy, @michelengelen, @noraleonte, @rita-codes, @silviuaavram
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@9.10.1`
|
|
22
|
+
|
|
23
|
+
- [data grid] Fix `getColumn` return type not reflecting that it can return undefined (#23165) @JCQuintas
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@9.10.1`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.1`.
|
|
32
|
+
|
|
33
|
+
### Date and Time Pickers
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-date-pickers@9.10.1`
|
|
36
|
+
|
|
37
|
+
- [pickers] Fix format placeholder brightness with a start adornment (#23189) @LukasTy
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-date-pickers-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-date-pickers@9.10.1`, plus:
|
|
42
|
+
|
|
43
|
+
- [DateRangePicker] Fix broken active range position underline in single input range fields (#23166) @LukasTy
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@9.10.1`
|
|
48
|
+
|
|
49
|
+
- [charts] Fix pie chart disappearing when an arc spans almost the full circle (#23145) @JCQuintas
|
|
50
|
+
- [charts] Set `aria-hidden` on accessibility proxy divs at initialization (#23186) @kevincorizi-sbt
|
|
51
|
+
- [charts] Fix keyboard navigation on series with different lengths (#23182) @JCQuintas
|
|
52
|
+
- [charts] Fix out of bounds keyboard navigation (#23180) @silviuaavram
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-charts-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-charts@9.10.1`, plus:
|
|
57
|
+
|
|
58
|
+
- [charts-pro] Fix highlight shifting on sampled bar charts (#23190) @noraleonte
|
|
59
|
+
- [charts-pro] Sampled band highlight falls back to single-band width for Date/object values (#23024) @SamanPandey-in
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-charts-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
62
|
+
|
|
63
|
+
Same changes as in `@mui/x-charts-pro@9.10.1`.
|
|
64
|
+
|
|
65
|
+
### Tree View
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-tree-view@9.10.1`
|
|
68
|
+
|
|
69
|
+
- [TreeView] Fix selection propagation to exclude disabled items (#23012) @michelengelen
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-tree-view-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-tree-view@9.10.1`.
|
|
74
|
+
|
|
75
|
+
### Scheduler
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-scheduler@9.0.0-beta.7`
|
|
78
|
+
|
|
79
|
+
- [scheduler] Polish `EventCalendar` rendering for multi-resource events (#23161) @mustafajw07
|
|
80
|
+
- [scheduler] Responsive header (#22954) @noraleonte
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.7` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
83
|
+
|
|
84
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.7`, plus:
|
|
85
|
+
|
|
86
|
+
- [scheduler-premium] Add the dependencies data model (#23117) @rita-codes
|
|
87
|
+
- [scheduler-premium] Dependencies - Render the FS arrow (#23162) @rita-codes
|
|
88
|
+
|
|
89
|
+
### Codemod
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-codemod@9.10.1`
|
|
92
|
+
|
|
93
|
+
Internal changes.
|
|
94
|
+
|
|
95
|
+
### Docs
|
|
96
|
+
|
|
97
|
+
- [docs] Fix clearing, layout shift, and prop leak in Pickers demos (#23191) @LukasTy
|
|
98
|
+
|
|
99
|
+
### Core
|
|
100
|
+
|
|
101
|
+
- [code-infra] Validate working of specific code-infra canary (#23207) @brijeshb42
|
|
102
|
+
|
|
103
|
+
### Miscellaneous
|
|
104
|
+
|
|
105
|
+
- [chat] Normalize message part link URLs (#23187) @hasdfa
|
|
106
|
+
- [x-chat] Fix object URL leaks for submitted attachments (#23198) @hasdfa
|
|
107
|
+
- [internals] Make disposable types self-contained without `esnext.disposable` lib (#23164) @JCQuintas
|
|
108
|
+
|
|
109
|
+
## 9.10.0
|
|
110
|
+
|
|
111
|
+
_Jul 17, 2026_
|
|
112
|
+
|
|
113
|
+
We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
114
|
+
|
|
115
|
+
- 📊 Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` for Charts
|
|
116
|
+
- ⚙️ Allow opt-in `data-*` attributes on `slotProps`. [Read more](https://mui.com/x/common-concepts/custom-components/#passing-data-attributes-to-slots)
|
|
117
|
+
- 🐞 Bugfixes
|
|
118
|
+
- 📚 Documentation improvements
|
|
119
|
+
|
|
120
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
121
|
+
@Anexus5919, @mustafajw07
|
|
122
|
+
|
|
123
|
+
The following team members contributed to this release:
|
|
124
|
+
@brijeshb42, @Janpot, @JCQuintas, @LukasTy, @noraleonte
|
|
125
|
+
|
|
126
|
+
### Data Grid
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-data-grid@9.10.0`
|
|
129
|
+
|
|
130
|
+
Internal changes.
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-data-grid-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
133
|
+
|
|
134
|
+
Same changes as in `@mui/x-data-grid@9.10.0`.
|
|
135
|
+
|
|
136
|
+
#### `@mui/x-data-grid-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
137
|
+
|
|
138
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.0`.
|
|
139
|
+
|
|
140
|
+
### Date and Time Pickers
|
|
141
|
+
|
|
142
|
+
#### `@mui/x-date-pickers@9.10.0`
|
|
143
|
+
|
|
144
|
+
Internal changes.
|
|
145
|
+
|
|
146
|
+
#### `@mui/x-date-pickers-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
147
|
+
|
|
148
|
+
Same changes as in `@mui/x-date-pickers@9.10.0`.
|
|
149
|
+
|
|
150
|
+
### Charts
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-charts@9.10.0`
|
|
153
|
+
|
|
154
|
+
- [charts] Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` (#23144) @JCQuintas
|
|
155
|
+
|
|
156
|
+
#### `@mui/x-charts-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
157
|
+
|
|
158
|
+
Same changes as in `@mui/x-charts@9.10.0`.
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-charts-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
161
|
+
|
|
162
|
+
Same changes as in `@mui/x-charts-pro@9.10.0`.
|
|
163
|
+
|
|
164
|
+
### Tree View
|
|
165
|
+
|
|
166
|
+
#### `@mui/x-tree-view@9.10.0`
|
|
167
|
+
|
|
168
|
+
Internal changes.
|
|
169
|
+
|
|
170
|
+
#### `@mui/x-tree-view-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
171
|
+
|
|
172
|
+
Same changes as in `@mui/x-tree-view@9.10.0`, plus:
|
|
173
|
+
|
|
174
|
+
- [tree-view] Fix pre-loaded items not caching (#23155) @noraleonte
|
|
175
|
+
|
|
176
|
+
### Scheduler
|
|
177
|
+
|
|
178
|
+
#### `@mui/x-scheduler@9.0.0-beta.6`
|
|
179
|
+
|
|
180
|
+
- [scheduler] Carry custom event data through the edit dialog submit (#22874) @Anexus5919
|
|
181
|
+
- [scheduler] Support array values for `CalendarEvent.resource` (#23109) @mustafajw07
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
184
|
+
|
|
185
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.6`.
|
|
186
|
+
|
|
187
|
+
### Chat
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-chat@9.0.0-alpha.14`
|
|
190
|
+
|
|
191
|
+
- [chat] Reuse `resolveComponentProps` from `@mui/utils` (#23095) @LukasTy
|
|
192
|
+
|
|
193
|
+
#### `@mui/x-chat-headless@9.0.0-alpha.14`
|
|
194
|
+
|
|
195
|
+
Internal changes.
|
|
196
|
+
|
|
197
|
+
### Codemod
|
|
198
|
+
|
|
199
|
+
#### `@mui/x-codemod@9.10.0`
|
|
200
|
+
|
|
201
|
+
Internal changes.
|
|
202
|
+
|
|
203
|
+
### Docs
|
|
204
|
+
|
|
205
|
+
- [docs] Fix bugs on Scheduler overview page (#23147) @noraleonte
|
|
206
|
+
|
|
207
|
+
### Core
|
|
208
|
+
|
|
209
|
+
- [code-infra] Fix changelog dependency exclusion and l10n routing (#23112) @LukasTy
|
|
210
|
+
- [code-infra] Port codebase to use `tsgo` (#22826) @brijeshb42
|
|
211
|
+
- [code-infra] Reduce `release:build` concurrency to mitigate `tsgo` OOM kills (#23139) @LukasTy
|
|
212
|
+
- [core] Allow opt-in `data-*` attributes on `slotProps` (#22128) @LukasTy
|
|
213
|
+
|
|
214
|
+
### Miscellaneous
|
|
215
|
+
|
|
216
|
+
- [core] Ignore `code-infra-renovate[bot]` commits in changelog (#23153) @Janpot
|
|
217
|
+
- [website] Fix broken `ChatBox` API link (#23149) @brijeshb42
|
|
218
|
+
- [test] Fix WebGL benchmark timeout on CI (#23142) @JCQuintas
|
|
219
|
+
|
|
3
220
|
## 9.9.0
|
|
4
221
|
|
|
5
222
|
_Jul 9, 2026_
|
|
@@ -2,7 +2,7 @@ import type { D3OrdinalScale } from "../models/axis.mjs";
|
|
|
2
2
|
interface SampledBandHighlightParams {
|
|
3
3
|
scale: D3OrdinalScale;
|
|
4
4
|
/** The highlighted value. */
|
|
5
|
-
value: number | Date;
|
|
5
|
+
value: string | number | Date;
|
|
6
6
|
/** The data index of the highlighted value, when known (O(1) lookup). */
|
|
7
7
|
dataIndex: number | undefined;
|
|
8
8
|
/** The axis data. */
|
|
@@ -2,7 +2,7 @@ import type { D3OrdinalScale } from "../models/axis.js";
|
|
|
2
2
|
interface SampledBandHighlightParams {
|
|
3
3
|
scale: D3OrdinalScale;
|
|
4
4
|
/** The highlighted value. */
|
|
5
|
-
value: number | Date;
|
|
5
|
+
value: string | number | Date;
|
|
6
6
|
/** The data index of the highlighted value, when known (O(1) lookup). */
|
|
7
7
|
dataIndex: number | undefined;
|
|
8
8
|
/** The axis data. */
|
|
@@ -4,6 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getSampledBandHighlight = getSampledBandHighlight;
|
|
7
|
+
var _getSampledBucketRegion = require("../internals/getSampledBucketRegion");
|
|
8
|
+
function findDataIndex(data, value) {
|
|
9
|
+
if (value instanceof Date) {
|
|
10
|
+
const time = value.getTime();
|
|
11
|
+
return data.findIndex(item => item instanceof Date && item.getTime() === time);
|
|
12
|
+
}
|
|
13
|
+
return data.indexOf(value);
|
|
14
|
+
}
|
|
7
15
|
/**
|
|
8
16
|
* Computes the band highlight rectangle along the ordinal axis.
|
|
9
17
|
* When the series is sampled (`bucketSize > 1`), the band is widened to cover the whole merged bucket.
|
|
@@ -20,12 +28,16 @@ function getSampledBandHighlight({
|
|
|
20
28
|
let bandStart = scale(value) - halfPadding;
|
|
21
29
|
let bandSize = step;
|
|
22
30
|
if (bucketSize > 1 && data) {
|
|
23
|
-
const index = dataIndex ?? data
|
|
31
|
+
const index = dataIndex ?? findDataIndex(data, value);
|
|
24
32
|
if (index >= 0) {
|
|
25
33
|
const bucketStart = Math.floor(index / bucketSize) * bucketSize;
|
|
26
34
|
const bucketEnd = Math.min(bucketStart + bucketSize - 1, data.length - 1);
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
const {
|
|
36
|
+
regionStart,
|
|
37
|
+
regionSize
|
|
38
|
+
} = (0, _getSampledBucketRegion.getSampledBucketRegion)(scale, data, bucketStart, bucketEnd);
|
|
39
|
+
bandStart = regionStart;
|
|
40
|
+
bandSize = regionSize;
|
|
29
41
|
}
|
|
30
42
|
}
|
|
31
43
|
return {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import { getSampledBucketRegion } from "../internals/getSampledBucketRegion.mjs";
|
|
2
|
+
function findDataIndex(data, value) {
|
|
3
|
+
if (value instanceof Date) {
|
|
4
|
+
const time = value.getTime();
|
|
5
|
+
return data.findIndex(item => item instanceof Date && item.getTime() === time);
|
|
6
|
+
}
|
|
7
|
+
return data.indexOf(value);
|
|
8
|
+
}
|
|
1
9
|
/**
|
|
2
10
|
* Computes the band highlight rectangle along the ordinal axis.
|
|
3
11
|
* When the series is sampled (`bucketSize > 1`), the band is widened to cover the whole merged bucket.
|
|
@@ -14,12 +22,16 @@ export function getSampledBandHighlight({
|
|
|
14
22
|
let bandStart = scale(value) - halfPadding;
|
|
15
23
|
let bandSize = step;
|
|
16
24
|
if (bucketSize > 1 && data) {
|
|
17
|
-
const index = dataIndex ?? data
|
|
25
|
+
const index = dataIndex ?? findDataIndex(data, value);
|
|
18
26
|
if (index >= 0) {
|
|
19
27
|
const bucketStart = Math.floor(index / bucketSize) * bucketSize;
|
|
20
28
|
const bucketEnd = Math.min(bucketStart + bucketSize - 1, data.length - 1);
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
const {
|
|
30
|
+
regionStart,
|
|
31
|
+
regionSize
|
|
32
|
+
} = getSampledBucketRegion(scale, data, bucketStart, bucketEnd);
|
|
33
|
+
bandStart = regionStart;
|
|
34
|
+
bandSize = regionSize;
|
|
23
35
|
}
|
|
24
36
|
}
|
|
25
37
|
return {
|
|
@@ -48,7 +48,7 @@ export interface ChartsAxisHighlightValueProps {
|
|
|
48
48
|
*
|
|
49
49
|
* - [ChartsAxisHighlightValue API](https://mui.com/x/api/charts/charts-axis-highlight-value/)
|
|
50
50
|
*/
|
|
51
|
-
declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").
|
|
51
|
+
declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").JSX.Element[] | import("react").ReactPortal | null;
|
|
52
52
|
declare namespace ChartsAxisHighlightValue {
|
|
53
53
|
var propTypes: any;
|
|
54
54
|
}
|
|
@@ -48,7 +48,7 @@ export interface ChartsAxisHighlightValueProps {
|
|
|
48
48
|
*
|
|
49
49
|
* - [ChartsAxisHighlightValue API](https://mui.com/x/api/charts/charts-axis-highlight-value/)
|
|
50
50
|
*/
|
|
51
|
-
declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").
|
|
51
|
+
declare function ChartsAxisHighlightValue(props: ChartsAxisHighlightValueProps): import("react").JSX.Element[] | import("react").ReactPortal | null;
|
|
52
52
|
declare namespace ChartsAxisHighlightValue {
|
|
53
53
|
var propTypes: any;
|
|
54
54
|
}
|
|
@@ -13,6 +13,6 @@ export interface ChartsAxisHighlightValueClasses {
|
|
|
13
13
|
export type ChartsAxisHighlightValueClassKey = keyof ChartsAxisHighlightValueClasses;
|
|
14
14
|
export declare function getChartsAxisHighlightValueUtilityClass(slot: string): string;
|
|
15
15
|
export declare const useUtilityClasses: (ownerState: {
|
|
16
|
-
position:
|
|
16
|
+
position: 'top' | 'right' | 'bottom' | 'left';
|
|
17
17
|
}) => Record<"root", string>;
|
|
18
18
|
export declare const chartsAxisHighlightValueClasses: ChartsAxisHighlightValueClasses;
|
|
@@ -13,6 +13,6 @@ export interface ChartsAxisHighlightValueClasses {
|
|
|
13
13
|
export type ChartsAxisHighlightValueClassKey = keyof ChartsAxisHighlightValueClasses;
|
|
14
14
|
export declare function getChartsAxisHighlightValueUtilityClass(slot: string): string;
|
|
15
15
|
export declare const useUtilityClasses: (ownerState: {
|
|
16
|
-
position:
|
|
16
|
+
position: 'top' | 'right' | 'bottom' | 'left';
|
|
17
17
|
}) => Record<"root", string>;
|
|
18
18
|
export declare const chartsAxisHighlightValueClasses: ChartsAxisHighlightValueClasses;
|
|
@@ -4,7 +4,7 @@ import type { ChartAnyPluginSignature } from "../internals/plugins/models/index.
|
|
|
4
4
|
import type { ChartSeriesType } from "../models/seriesType/config.mjs";
|
|
5
5
|
import type { AllPluginSignatures } from "../internals/plugins/allPlugins.mjs";
|
|
6
6
|
import type { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.mjs";
|
|
7
|
-
export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType =
|
|
7
|
+
export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType = keyof import("../internals/index.mjs").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(inProps: ChartsDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
|
|
8
8
|
children: import("react").ReactNode;
|
|
9
9
|
localeText: Partial<import("../locales/index.mjs").ChartsLocaleText> | undefined;
|
|
10
10
|
chartProviderProps: ChartsProviderProps<SeriesType, TSignatures>;
|
|
@@ -4,7 +4,7 @@ import type { ChartAnyPluginSignature } from "../internals/plugins/models/index.
|
|
|
4
4
|
import type { ChartSeriesType } from "../models/seriesType/config.js";
|
|
5
5
|
import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
6
6
|
import type { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
|
|
7
|
-
export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType =
|
|
7
|
+
export declare const useChartsDataProviderProps: <SeriesType extends ChartSeriesType = keyof import("../internals/index.js").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(inProps: ChartsDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
|
|
8
8
|
children: import("react").ReactNode;
|
|
9
9
|
localeText: Partial<import("../locales/index.js").ChartsLocaleText> | undefined;
|
|
10
10
|
chartProviderProps: ChartsProviderProps<SeriesType, TSignatures>;
|
|
@@ -13,4 +13,4 @@ export interface ChartsLabelGradientClasses {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function getLabelGradientUtilityClass(slot: string): string;
|
|
15
15
|
export declare const labelGradientClasses: ChartsLabelGradientClasses;
|
|
16
|
-
export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"
|
|
16
|
+
export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"fill" | "mask" | "root", string>;
|
|
@@ -13,4 +13,4 @@ export interface ChartsLabelGradientClasses {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function getLabelGradientUtilityClass(slot: string): string;
|
|
15
15
|
export declare const labelGradientClasses: ChartsLabelGradientClasses;
|
|
16
|
-
export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"
|
|
16
|
+
export declare const useUtilityClasses: (props: ChartsLabelGradientProps) => Record<"fill" | "mask" | "root", string>;
|
|
@@ -14,4 +14,4 @@ export interface ChartsLabelMarkClasses {
|
|
|
14
14
|
fill: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const labelMarkClasses: ChartsLabelMarkClasses;
|
|
17
|
-
export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"
|
|
17
|
+
export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"fill" | "root", string>;
|
|
@@ -14,4 +14,4 @@ export interface ChartsLabelMarkClasses {
|
|
|
14
14
|
fill: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const labelMarkClasses: ChartsLabelMarkClasses;
|
|
17
|
-
export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"
|
|
17
|
+
export declare const useUtilityClasses: (props: ChartsLabelMarkProps) => Record<"fill" | "root", string>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
1
2
|
import type { ChartsLegendProps } from "./ChartsLegend.mjs";
|
|
2
3
|
import type { ContinuousColorLegendProps } from "./ContinuousColorLegend.mjs";
|
|
3
4
|
import type { ChartsLegendPosition } from "./legend.types.mjs";
|
|
@@ -11,7 +12,7 @@ export interface ChartsLegendSlots {
|
|
|
11
12
|
legend?: React.JSXElementConstructor<ChartsLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<ContinuousColorLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<PiecewiseColorLegendProps & LegendPropsOverrides>;
|
|
12
13
|
}
|
|
13
14
|
export interface ChartsLegendSlotProps {
|
|
14
|
-
legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides
|
|
15
|
+
legend?: WithDataAttributes<Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides>;
|
|
15
16
|
}
|
|
16
17
|
export interface ChartsLegendSlotExtension {
|
|
17
18
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
1
2
|
import type { ChartsLegendProps } from "./ChartsLegend.js";
|
|
2
3
|
import type { ContinuousColorLegendProps } from "./ContinuousColorLegend.js";
|
|
3
4
|
import type { ChartsLegendPosition } from "./legend.types.js";
|
|
@@ -11,7 +12,7 @@ export interface ChartsLegendSlots {
|
|
|
11
12
|
legend?: React.JSXElementConstructor<ChartsLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<ContinuousColorLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<PiecewiseColorLegendProps & LegendPropsOverrides>;
|
|
12
13
|
}
|
|
13
14
|
export interface ChartsLegendSlotProps {
|
|
14
|
-
legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides
|
|
15
|
+
legend?: WithDataAttributes<Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides>;
|
|
15
16
|
}
|
|
16
17
|
export interface ChartsLegendSlotExtension {
|
|
17
18
|
/**
|
|
@@ -18,5 +18,5 @@ export interface ChartsLegendClasses {
|
|
|
18
18
|
/** Styles applied to the legend in row layout. */
|
|
19
19
|
horizontal: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const useUtilityClasses: (props: ChartsLegendProps & ChartsLegendSlotExtension) => Record<"
|
|
21
|
+
export declare const useUtilityClasses: (props: ChartsLegendProps & ChartsLegendSlotExtension) => Record<"hidden" | "item" | "label" | "mark" | "root" | "series", string>;
|
|
22
22
|
export declare const legendClasses: ChartsLegendClasses;
|
|
@@ -18,5 +18,5 @@ export interface ChartsLegendClasses {
|
|
|
18
18
|
/** Styles applied to the legend in row layout. */
|
|
19
19
|
horizontal: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const useUtilityClasses: (props: ChartsLegendProps & ChartsLegendSlotExtension) => Record<"
|
|
21
|
+
export declare const useUtilityClasses: (props: ChartsLegendProps & ChartsLegendSlotExtension) => Record<"hidden" | "item" | "label" | "mark" | "root" | "series", string>;
|
|
22
22
|
export declare const legendClasses: ChartsLegendClasses;
|
|
@@ -22,5 +22,5 @@ export interface ContinuousColorLegendClasses {
|
|
|
22
22
|
/** Styles applied to the series label. */
|
|
23
23
|
label: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const useUtilityClasses: (props: ContinuousColorLegendProps & ChartsLegendSlotExtension) => Record<"
|
|
25
|
+
export declare const useUtilityClasses: (props: ContinuousColorLegendProps & ChartsLegendSlotExtension) => Record<"gradient" | "label" | "mark" | "maxLabel" | "minLabel" | "root", string>;
|
|
26
26
|
export declare const continuousColorLegendClasses: ContinuousColorLegendClasses;
|
|
@@ -22,5 +22,5 @@ export interface ContinuousColorLegendClasses {
|
|
|
22
22
|
/** Styles applied to the series label. */
|
|
23
23
|
label: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const useUtilityClasses: (props: ContinuousColorLegendProps & ChartsLegendSlotExtension) => Record<"
|
|
25
|
+
export declare const useUtilityClasses: (props: ContinuousColorLegendProps & ChartsLegendSlotExtension) => Record<"gradient" | "label" | "mark" | "maxLabel" | "minLabel" | "root", string>;
|
|
26
26
|
export declare const continuousColorLegendClasses: ContinuousColorLegendClasses;
|
|
@@ -28,5 +28,5 @@ export interface PiecewiseColorLegendClasses {
|
|
|
28
28
|
/** Styles applied to the series label. */
|
|
29
29
|
label: string;
|
|
30
30
|
}
|
|
31
|
-
export declare const useUtilityClasses: (props: PiecewiseColorLegendProps & ChartsLegendSlotExtension) => Record<"
|
|
31
|
+
export declare const useUtilityClasses: (props: PiecewiseColorLegendProps & ChartsLegendSlotExtension) => Record<"item" | "label" | "mark" | "maxLabel" | "minLabel" | "root", string>;
|
|
32
32
|
export declare const piecewiseColorLegendClasses: PiecewiseColorLegendClasses;
|
|
@@ -28,5 +28,5 @@ export interface PiecewiseColorLegendClasses {
|
|
|
28
28
|
/** Styles applied to the series label. */
|
|
29
29
|
label: string;
|
|
30
30
|
}
|
|
31
|
-
export declare const useUtilityClasses: (props: PiecewiseColorLegendProps & ChartsLegendSlotExtension) => Record<"
|
|
31
|
+
export declare const useUtilityClasses: (props: PiecewiseColorLegendProps & ChartsLegendSlotExtension) => Record<"item" | "label" | "mark" | "maxLabel" | "minLabel" | "root", string>;
|
|
32
32
|
export declare const piecewiseColorLegendClasses: PiecewiseColorLegendClasses;
|
|
@@ -4,7 +4,7 @@ import type { ChartAnyPluginSignature } from "../internals/plugins/models/index.
|
|
|
4
4
|
import type { RadialPluginSignatures } from "./ChartsRadialDataProvider.plugins.mjs";
|
|
5
5
|
import type { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.mjs";
|
|
6
6
|
import type { PolarChartSeriesType } from "../models/seriesType/config.mjs";
|
|
7
|
-
export declare const useChartsRadialDataProviderProps: <SeriesType extends PolarChartSeriesType =
|
|
7
|
+
export declare const useChartsRadialDataProviderProps: <SeriesType extends PolarChartSeriesType = "radar", TSignatures extends readonly ChartAnyPluginSignature[] = RadialPluginSignatures<SeriesType>>(inProps: ChartsRadialDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
|
|
8
8
|
children: import("react").ReactNode;
|
|
9
9
|
localeText: Partial<import("../locales/index.mjs").ChartsLocaleText> | undefined;
|
|
10
10
|
chartProviderProps: ChartsProviderProps<SeriesType, TSignatures>;
|
|
@@ -4,7 +4,7 @@ import type { ChartAnyPluginSignature } from "../internals/plugins/models/index.
|
|
|
4
4
|
import type { RadialPluginSignatures } from "./ChartsRadialDataProvider.plugins.js";
|
|
5
5
|
import type { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
|
|
6
6
|
import type { PolarChartSeriesType } from "../models/seriesType/config.js";
|
|
7
|
-
export declare const useChartsRadialDataProviderProps: <SeriesType extends PolarChartSeriesType =
|
|
7
|
+
export declare const useChartsRadialDataProviderProps: <SeriesType extends PolarChartSeriesType = "radar", TSignatures extends readonly ChartAnyPluginSignature[] = RadialPluginSignatures<SeriesType>>(inProps: ChartsRadialDataProviderProps<SeriesType, TSignatures> & ChartsLocalizationProviderProps) => {
|
|
8
8
|
children: import("react").ReactNode;
|
|
9
9
|
localeText: Partial<import("../locales/index.js").ChartsLocaleText> | undefined;
|
|
10
10
|
chartProviderProps: ChartsProviderProps<SeriesType, TSignatures>;
|
|
@@ -2,5 +2,5 @@ import type { ChartsRadialAxisClasses } from "./sharedRadialAxisClasses.mjs";
|
|
|
2
2
|
export declare const useUtilityClasses: (props: {
|
|
3
3
|
classes?: Partial<ChartsRadialAxisClasses>;
|
|
4
4
|
isCentered?: boolean;
|
|
5
|
-
}) => Record<"
|
|
5
|
+
}) => Record<"line" | "root" | "tick" | "tickContainer" | "tickLabel", string>;
|
|
6
6
|
export { type ChartsRadialAxisClasses, type ChartsRadialAxisClassKey, chartsRadialAxisClasses } from "./sharedRadialAxisClasses.mjs";
|
|
@@ -2,5 +2,5 @@ import type { ChartsRadialAxisClasses } from "./sharedRadialAxisClasses.js";
|
|
|
2
2
|
export declare const useUtilityClasses: (props: {
|
|
3
3
|
classes?: Partial<ChartsRadialAxisClasses>;
|
|
4
4
|
isCentered?: boolean;
|
|
5
|
-
}) => Record<"
|
|
5
|
+
}) => Record<"line" | "root" | "tick" | "tickContainer" | "tickLabel", string>;
|
|
6
6
|
export { type ChartsRadialAxisClasses, type ChartsRadialAxisClassKey, chartsRadialAxisClasses } from "./sharedRadialAxisClasses.js";
|