@mui/x-charts 8.27.0 → 8.27.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarElement.d.ts +2 -2
- package/BarChart/BarElement.js +4 -2
- package/BarChart/BarLabel/BarLabel.js +4 -0
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/BarChart/BarLabel/BarLabelItem.js +6 -2
- package/BarChart/BarLabel/barLabelClasses.d.ts +15 -0
- package/BarChart/BarLabel/barLabelClasses.js +19 -0
- package/BarChart/BarPlot.js +1 -2
- package/BarChart/barClasses.d.ts +21 -1
- package/BarChart/barClasses.js +9 -3
- package/BarChart/barElementClasses.d.ts +17 -9
- package/BarChart/barElementClasses.js +19 -0
- package/CHANGELOG.md +279 -0
- package/ChartContainer/ChartContainer.d.ts +16 -29
- package/ChartContainer/ChartContainer.js +14 -1691
- package/ChartContainer/useChartContainerProps.d.ts +9 -10
- package/ChartContainer/useChartContainerProps.js +9 -94
- package/ChartDataProvider/ChartDataProvider.d.ts +15 -44
- package/ChartDataProvider/ChartDataProvider.js +16 -130
- package/ChartDataProvider/useChartDataProviderProps.d.ts +7 -10
- package/ChartDataProvider/useChartDataProviderProps.js +5 -38
- package/ChartsContainer/ChartsContainer.d.ts +37 -0
- package/ChartsContainer/ChartsContainer.js +1702 -0
- package/ChartsContainer/index.d.ts +1 -0
- package/ChartsContainer/index.js +16 -0
- package/ChartsContainer/useChartsContainerProps.d.ts +15 -0
- package/ChartsContainer/useChartsContainerProps.js +104 -0
- package/ChartsDataProvider/ChartsDataProvider.d.ts +51 -0
- package/ChartsDataProvider/ChartsDataProvider.js +138 -0
- package/ChartsDataProvider/index.d.ts +1 -0
- package/ChartsDataProvider/index.js +16 -0
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +13 -0
- package/ChartsDataProvider/useChartsDataProviderProps.js +45 -0
- package/LineChart/AreaElement.d.ts +12 -0
- package/LineChart/AreaElement.js +26 -4
- package/LineChart/AreaPlot.js +10 -4
- package/LineChart/CircleMarkElement.js +9 -2
- package/LineChart/LineElement.d.ts +12 -0
- package/LineChart/LineElement.js +26 -4
- package/LineChart/LineHighlightElement.d.ts +12 -0
- package/LineChart/LineHighlightElement.js +22 -3
- package/LineChart/LinePlot.js +11 -5
- package/LineChart/MarkElement.js +9 -2
- package/LineChart/MarkPlot.js +15 -3
- package/LineChart/index.d.ts +3 -1
- package/LineChart/index.js +17 -2
- package/LineChart/lineClasses.d.ts +34 -0
- package/LineChart/lineClasses.js +32 -0
- package/LineChart/markElementClasses.d.ts +17 -8
- package/LineChart/markElementClasses.js +19 -0
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/BatchScatter.js +5 -3
- package/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/ScatterChart/FocusedScatterMark.js +12 -2
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/Scatter.js +6 -2
- package/ScatterChart/ScatterPlot.d.ts +2 -1
- package/ScatterChart/ScatterPlot.js +16 -2
- package/ScatterChart/index.d.ts +2 -2
- package/ScatterChart/index.js +8 -1
- package/ScatterChart/scatterClasses.d.ts +14 -2
- package/ScatterChart/scatterClasses.js +10 -4
- package/context/ChartProvider/ChartContext.d.ts +2 -3
- package/context/ChartProvider/ChartContext.js +3 -4
- package/context/ChartProvider/ChartProvider.d.ts +5 -8
- package/context/ChartProvider/ChartProvider.js +6 -41
- package/context/ChartProvider/ChartProvider.types.d.ts +14 -41
- package/context/ChartProvider/useChartContext.d.ts +4 -3
- package/context/ChartProvider/useChartContext.js +5 -11
- package/context/ChartsProvider/ChartsContext.d.ts +6 -0
- package/context/ChartsProvider/ChartsContext.js +14 -0
- package/context/ChartsProvider/ChartsProvider.d.ts +8 -0
- package/context/ChartsProvider/ChartsProvider.js +47 -0
- package/context/ChartsProvider/ChartsProvider.types.d.ts +40 -0
- package/context/ChartsProvider/ChartsProvider.types.js +5 -0
- package/context/ChartsProvider/index.d.ts +3 -0
- package/context/ChartsProvider/index.js +38 -0
- package/context/ChartsProvider/useChartsContext.d.ts +3 -0
- package/context/ChartsProvider/useChartsContext.js +18 -0
- package/context/ChartsSlotsContext.d.ts +1 -1
- package/context/ChartsSlotsContext.js +1 -1
- package/esm/BarChart/AnimatedBarElement.d.ts +1 -1
- package/esm/BarChart/BarElement.d.ts +2 -2
- package/esm/BarChart/BarElement.js +4 -2
- package/esm/BarChart/BarLabel/BarLabel.js +4 -0
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/esm/BarChart/BarLabel/BarLabelItem.js +6 -2
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +15 -0
- package/esm/BarChart/BarLabel/barLabelClasses.js +20 -0
- package/esm/BarChart/BarPlot.js +2 -3
- package/esm/BarChart/barClasses.d.ts +21 -1
- package/esm/BarChart/barClasses.js +9 -3
- package/esm/BarChart/barElementClasses.d.ts +17 -9
- package/esm/BarChart/barElementClasses.js +20 -0
- package/esm/ChartContainer/ChartContainer.d.ts +16 -29
- package/esm/ChartContainer/ChartContainer.js +15 -1690
- package/esm/ChartContainer/useChartContainerProps.d.ts +9 -10
- package/esm/ChartContainer/useChartContainerProps.js +10 -93
- package/esm/ChartDataProvider/ChartDataProvider.d.ts +15 -44
- package/esm/ChartDataProvider/ChartDataProvider.js +16 -128
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +7 -10
- package/esm/ChartDataProvider/useChartDataProviderProps.js +6 -36
- package/esm/ChartsContainer/ChartsContainer.d.ts +37 -0
- package/esm/ChartsContainer/ChartsContainer.js +1696 -0
- package/esm/ChartsContainer/index.d.ts +1 -0
- package/esm/ChartsContainer/index.js +1 -0
- package/esm/ChartsContainer/useChartsContainerProps.d.ts +15 -0
- package/esm/ChartsContainer/useChartsContainerProps.js +97 -0
- package/esm/ChartsDataProvider/ChartsDataProvider.d.ts +51 -0
- package/esm/ChartsDataProvider/ChartsDataProvider.js +132 -0
- package/esm/ChartsDataProvider/index.d.ts +1 -0
- package/esm/ChartsDataProvider/index.js +1 -0
- package/esm/ChartsDataProvider/useChartsDataProviderProps.d.ts +13 -0
- package/esm/ChartsDataProvider/useChartsDataProviderProps.js +38 -0
- package/esm/LineChart/AreaElement.d.ts +12 -0
- package/esm/LineChart/AreaElement.js +28 -4
- package/esm/LineChart/AreaPlot.js +11 -5
- package/esm/LineChart/CircleMarkElement.js +10 -3
- package/esm/LineChart/LineElement.d.ts +12 -0
- package/esm/LineChart/LineElement.js +28 -4
- package/esm/LineChart/LineHighlightElement.d.ts +12 -0
- package/esm/LineChart/LineHighlightElement.js +24 -3
- package/esm/LineChart/LinePlot.js +12 -6
- package/esm/LineChart/MarkElement.js +10 -3
- package/esm/LineChart/MarkPlot.js +15 -3
- package/esm/LineChart/index.d.ts +3 -1
- package/esm/LineChart/index.js +2 -1
- package/esm/LineChart/lineClasses.d.ts +34 -0
- package/esm/LineChart/lineClasses.js +23 -0
- package/esm/LineChart/markElementClasses.d.ts +17 -8
- package/esm/LineChart/markElementClasses.js +20 -0
- package/esm/ScatterChart/BatchScatter.d.ts +2 -1
- package/esm/ScatterChart/BatchScatter.js +4 -3
- package/esm/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/esm/ScatterChart/FocusedScatterMark.js +11 -1
- package/esm/ScatterChart/Scatter.d.ts +1 -1
- package/esm/ScatterChart/Scatter.js +6 -2
- package/esm/ScatterChart/ScatterPlot.d.ts +2 -1
- package/esm/ScatterChart/ScatterPlot.js +16 -2
- package/esm/ScatterChart/index.d.ts +2 -2
- package/esm/ScatterChart/index.js +1 -1
- package/esm/ScatterChart/scatterClasses.d.ts +14 -2
- package/esm/ScatterChart/scatterClasses.js +10 -4
- package/esm/context/ChartProvider/ChartContext.d.ts +2 -3
- package/esm/context/ChartProvider/ChartContext.js +4 -3
- package/esm/context/ChartProvider/ChartProvider.d.ts +5 -8
- package/esm/context/ChartProvider/ChartProvider.js +5 -38
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +14 -41
- package/esm/context/ChartProvider/useChartContext.d.ts +4 -3
- package/esm/context/ChartProvider/useChartContext.js +6 -9
- package/esm/context/ChartsProvider/ChartsContext.d.ts +6 -0
- package/esm/context/ChartsProvider/ChartsContext.js +8 -0
- package/esm/context/ChartsProvider/ChartsProvider.d.ts +8 -0
- package/esm/context/ChartsProvider/ChartsProvider.js +41 -0
- package/esm/context/ChartsProvider/ChartsProvider.types.d.ts +40 -0
- package/esm/context/ChartsProvider/ChartsProvider.types.js +1 -0
- package/esm/context/ChartsProvider/index.d.ts +3 -0
- package/esm/context/ChartsProvider/index.js +3 -0
- package/esm/context/ChartsProvider/useChartsContext.d.ts +3 -0
- package/esm/context/ChartsProvider/useChartsContext.js +11 -0
- package/esm/context/ChartsSlotsContext.d.ts +1 -1
- package/esm/context/ChartsSlotsContext.js +1 -1
- package/esm/index.d.ts +4 -1
- package/esm/index.js +3 -1
- package/esm/internals/index.d.ts +3 -0
- package/esm/internals/index.js +3 -0
- package/esm/internals/store/useStore.js +1 -1
- package/esm/themeAugmentation/components.d.ts +24 -1
- package/esm/themeAugmentation/overrides.d.ts +13 -1
- package/esm/themeAugmentation/props.d.ts +4 -2
- package/index.d.ts +4 -1
- package/index.js +21 -1
- package/internals/index.d.ts +3 -0
- package/internals/index.js +36 -0
- package/internals/store/useStore.js +1 -1
- package/package.json +3 -3
- package/themeAugmentation/components.d.ts +24 -1
- package/themeAugmentation/overrides.d.ts +13 -1
- package/themeAugmentation/props.d.ts +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/seriesType/common.js";
|
|
3
|
-
import { type BarElementOwnerState } from "./
|
|
3
|
+
import { type BarElementOwnerState } from "./barClasses.js";
|
|
4
4
|
export interface BarProps extends Omit<React.SVGProps<SVGRectElement>, 'id' | 'color' | 'ref' | 'x' | 'y' | 'height' | 'width'> {
|
|
5
5
|
id: SeriesId;
|
|
6
6
|
dataIndex: number;
|
package/BarChart/BarElement.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
|
-
import { type BarElementOwnerState } from "./
|
|
3
|
+
import { type BarElementOwnerState } from "./barClasses.js";
|
|
4
4
|
import { type BarProps } from "./AnimatedBarElement.js";
|
|
5
5
|
export interface BarElementSlots {
|
|
6
6
|
/**
|
|
@@ -12,7 +12,7 @@ export interface BarElementSlots {
|
|
|
12
12
|
export interface BarElementSlotProps {
|
|
13
13
|
bar?: SlotComponentPropsFromProps<BarProps, {}, BarElementOwnerState>;
|
|
14
14
|
}
|
|
15
|
-
export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.SVGProps<SVGRectElement>, 'ref' | 'id'> & {
|
|
15
|
+
export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighlighted' | 'isFocused'> & Omit<React.SVGProps<SVGRectElement>, 'ref' | 'id'> & {
|
|
16
16
|
/**
|
|
17
17
|
* The props used for each component slot.
|
|
18
18
|
* @default {}
|
package/BarChart/BarElement.js
CHANGED
|
@@ -12,6 +12,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
15
|
+
var _barClasses = require("./barClasses");
|
|
15
16
|
var _barElementClasses = require("./barElementClasses");
|
|
16
17
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
17
18
|
var _useItemHighlighted = require("../hooks/useItemHighlighted");
|
|
@@ -64,7 +65,8 @@ function BarElement(props) {
|
|
|
64
65
|
isHighlighted,
|
|
65
66
|
isFocused
|
|
66
67
|
};
|
|
67
|
-
const classes = (0,
|
|
68
|
+
const classes = (0, _barClasses.useUtilityClasses)(ownerState);
|
|
69
|
+
const deprecatedClasses = (0, _barElementClasses.useUtilityClasses)(ownerState);
|
|
68
70
|
const Bar = slots?.bar ?? _AnimatedBarElement.AnimatedBarElement;
|
|
69
71
|
const barProps = (0, _useSlotProps.default)({
|
|
70
72
|
elementType: Bar,
|
|
@@ -89,7 +91,7 @@ function BarElement(props) {
|
|
|
89
91
|
layout,
|
|
90
92
|
hidden
|
|
91
93
|
}),
|
|
92
|
-
className: classes.root
|
|
94
|
+
className: `${classes.element} ${deprecatedClasses.root}`,
|
|
93
95
|
ownerState
|
|
94
96
|
});
|
|
95
97
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Bar, (0, _extends2.default)({}, barProps));
|
|
@@ -25,6 +25,10 @@ const BarLabelComponent = exports.BarLabelComponent = (0, _styles.styled)('text'
|
|
|
25
25
|
[`&.${_barLabelClasses.barLabelClasses.faded}`]: styles.faded
|
|
26
26
|
}, {
|
|
27
27
|
[`&.${_barLabelClasses.barLabelClasses.highlighted}`]: styles.highlighted
|
|
28
|
+
}, {
|
|
29
|
+
[`&[data-faded]`]: styles.faded
|
|
30
|
+
}, {
|
|
31
|
+
[`&[data-highlighted]`]: styles.highlighted
|
|
28
32
|
}, styles.root]
|
|
29
33
|
})(({
|
|
30
34
|
theme
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SeriesId } from "../../models/seriesType/common.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BarClasses } from "../barClasses.js";
|
|
3
3
|
import { type BarValueType } from "../../models/index.js";
|
|
4
4
|
export interface BarLabelOwnerState {
|
|
5
5
|
seriesId: SeriesId;
|
|
@@ -9,7 +9,7 @@ export interface BarLabelOwnerState {
|
|
|
9
9
|
isHighlighted: boolean;
|
|
10
10
|
skipAnimation: boolean;
|
|
11
11
|
layout: 'vertical' | 'horizontal';
|
|
12
|
-
classes?: Partial<
|
|
12
|
+
classes?: Partial<BarClasses>;
|
|
13
13
|
}
|
|
14
14
|
export type BarItem = {
|
|
15
15
|
/**
|
|
@@ -11,6 +11,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _useSlotProps2 = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
|
+
var _barClasses = require("../barClasses");
|
|
14
15
|
var _barLabelClasses = require("./barLabelClasses");
|
|
15
16
|
var _getBarLabel = require("./getBarLabel");
|
|
16
17
|
var _BarLabel = require("./BarLabel");
|
|
@@ -60,7 +61,8 @@ function BarLabelItem(props) {
|
|
|
60
61
|
skipAnimation,
|
|
61
62
|
layout
|
|
62
63
|
};
|
|
63
|
-
const classes = (0,
|
|
64
|
+
const classes = (0, _barClasses.useUtilityClasses)(ownerState);
|
|
65
|
+
const deprecatedClasses = (0, _barLabelClasses.useUtilityClasses)(ownerState);
|
|
64
66
|
const Component = slots?.barLabel ?? _BarLabel.BarLabel;
|
|
65
67
|
const _useSlotProps = (0, _useSlotProps2.default)({
|
|
66
68
|
elementType: Component,
|
|
@@ -73,7 +75,9 @@ function BarLabelItem(props) {
|
|
|
73
75
|
width,
|
|
74
76
|
height,
|
|
75
77
|
placement: barLabelPlacement,
|
|
76
|
-
className: classes.root
|
|
78
|
+
className: `${classes.label} ${deprecatedClasses.root}`,
|
|
79
|
+
'data-highlighted': isHighlighted || undefined,
|
|
80
|
+
'data-faded': isFaded || undefined
|
|
77
81
|
}),
|
|
78
82
|
ownerState
|
|
79
83
|
}),
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { BarLabelOwnerState } from "./BarLabel.types.js";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `BarClasses` from `../barClasses` instead.
|
|
4
|
+
*/
|
|
2
5
|
export interface BarLabelClasses {
|
|
3
6
|
/** Styles applied to the root element. */
|
|
4
7
|
root: string;
|
|
@@ -14,7 +17,19 @@ export interface BarLabelClasses {
|
|
|
14
17
|
*/
|
|
15
18
|
series: string;
|
|
16
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `BarClassKey` from `../barClasses` instead.
|
|
22
|
+
*/
|
|
17
23
|
export type BarLabelClassKey = keyof BarLabelClasses;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `getBarUtilityClass` from `../barClasses` instead.
|
|
26
|
+
*/
|
|
18
27
|
export declare function getBarLabelUtilityClass(slot: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `barClasses` from `../barClasses` instead.
|
|
30
|
+
*/
|
|
19
31
|
export declare const barLabelClasses: Record<"root" | "animate" | "highlighted" | "faded", string>;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Use `useBarLabelUtilityClasses` from `../barClasses` instead.
|
|
34
|
+
*/
|
|
20
35
|
export declare const useUtilityClasses: (ownerState: BarLabelOwnerState) => Record<"root", string>;
|
|
@@ -10,10 +10,29 @@ exports.useUtilityClasses = void 0;
|
|
|
10
10
|
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
11
11
|
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
12
12
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `BarClasses` from `../barClasses` instead.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `BarClassKey` from `../barClasses` instead.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use `getBarUtilityClass` from `../barClasses` instead.
|
|
23
|
+
*/
|
|
13
24
|
function getBarLabelUtilityClass(slot) {
|
|
14
25
|
return (0, _generateUtilityClass.default)('MuiBarLabel', slot);
|
|
15
26
|
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `barClasses` from `../barClasses` instead.
|
|
30
|
+
*/
|
|
16
31
|
const barLabelClasses = exports.barLabelClasses = (0, _generateUtilityClasses.default)('MuiBarLabel', ['root', 'highlighted', 'faded', 'animate']);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `useBarLabelUtilityClasses` from `../barClasses` instead.
|
|
35
|
+
*/
|
|
17
36
|
const useUtilityClasses = ownerState => {
|
|
18
37
|
const {
|
|
19
38
|
classes,
|
package/BarChart/BarPlot.js
CHANGED
|
@@ -12,7 +12,6 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _styles = require("@mui/material/styles");
|
|
15
|
-
var _barElementClasses = require("./barElementClasses");
|
|
16
15
|
var _hooks = require("../hooks");
|
|
17
16
|
var _BarLabelPlot = require("./BarLabel/BarLabelPlot");
|
|
18
17
|
var _useSkipAnimation = require("../hooks/useSkipAnimation");
|
|
@@ -28,7 +27,7 @@ const BarPlotRoot = (0, _styles.styled)('g', {
|
|
|
28
27
|
name: 'MuiBarPlot',
|
|
29
28
|
slot: 'Root'
|
|
30
29
|
})({
|
|
31
|
-
[`& .${
|
|
30
|
+
[`& .${_barClasses.barClasses.element}`]: {
|
|
32
31
|
transitionProperty: 'opacity, fill',
|
|
33
32
|
transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
|
|
34
33
|
transitionTimingFunction: _animation.ANIMATION_TIMING_FUNCTION
|
package/BarChart/barClasses.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SeriesId } from "../models/seriesType/common.js";
|
|
1
2
|
export interface BarClasses {
|
|
2
3
|
/** Styles applied to the bar plot element. */
|
|
3
4
|
root: string;
|
|
@@ -5,8 +6,27 @@ export interface BarClasses {
|
|
|
5
6
|
series: string;
|
|
6
7
|
/** Styles applied to the group surrounding a series' labels. */
|
|
7
8
|
seriesLabels: string;
|
|
9
|
+
/** Styles applied to an individual bar element. */
|
|
10
|
+
element: string;
|
|
11
|
+
/** Styles applied to an individual bar label. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Styles applied to a bar label when it is animated. */
|
|
14
|
+
labelAnimate: string;
|
|
8
15
|
}
|
|
9
16
|
export type BarClassKey = keyof BarClasses;
|
|
17
|
+
export interface BarElementOwnerState {
|
|
18
|
+
id: SeriesId;
|
|
19
|
+
dataIndex: number;
|
|
20
|
+
color: string;
|
|
21
|
+
isFaded: boolean;
|
|
22
|
+
isHighlighted: boolean;
|
|
23
|
+
isFocused: boolean;
|
|
24
|
+
classes?: Partial<BarClasses>;
|
|
25
|
+
}
|
|
10
26
|
export declare function getBarUtilityClass(slot: string): string;
|
|
11
27
|
export declare const barClasses: BarClasses;
|
|
12
|
-
export
|
|
28
|
+
export interface UseUtilityClassesOptions {
|
|
29
|
+
skipAnimation?: boolean;
|
|
30
|
+
classes?: Partial<BarClasses>;
|
|
31
|
+
}
|
|
32
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"series" | "root" | "label" | "seriesLabels" | "element", string>;
|
package/BarChart/barClasses.js
CHANGED
|
@@ -13,12 +13,18 @@ var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generat
|
|
|
13
13
|
function getBarUtilityClass(slot) {
|
|
14
14
|
return (0, _generateUtilityClass.default)('MuiBar', slot);
|
|
15
15
|
}
|
|
16
|
-
const barClasses = exports.barClasses = (0, _generateUtilityClasses.default)('MuiBar', ['root', 'series', 'seriesLabels']);
|
|
17
|
-
const useUtilityClasses =
|
|
16
|
+
const barClasses = exports.barClasses = (0, _generateUtilityClasses.default)('MuiBar', ['root', 'series', 'seriesLabels', 'element', 'label', 'labelAnimate']);
|
|
17
|
+
const useUtilityClasses = options => {
|
|
18
|
+
const {
|
|
19
|
+
skipAnimation,
|
|
20
|
+
classes
|
|
21
|
+
} = options ?? {};
|
|
18
22
|
const slots = {
|
|
19
23
|
root: ['root'],
|
|
20
24
|
series: ['series'],
|
|
21
|
-
seriesLabels: ['seriesLabels']
|
|
25
|
+
seriesLabels: ['seriesLabels'],
|
|
26
|
+
element: ['element'],
|
|
27
|
+
label: ['label', !skipAnimation && 'labelAnimate']
|
|
22
28
|
};
|
|
23
29
|
return (0, _composeClasses.default)(slots, getBarUtilityClass, classes);
|
|
24
30
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BarElementOwnerState } from "./barClasses.js";
|
|
2
|
+
export { type BarElementOwnerState };
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `BarClasses` from `./barClasses` instead.
|
|
5
|
+
*/
|
|
2
6
|
export interface BarElementClasses {
|
|
3
7
|
/** Styles applied to the root element. */
|
|
4
8
|
root: string;
|
|
@@ -12,15 +16,19 @@ export interface BarElementClasses {
|
|
|
12
16
|
*/
|
|
13
17
|
series: string;
|
|
14
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `BarClassKey` from `./barClasses` instead.
|
|
21
|
+
*/
|
|
15
22
|
export type BarElementClassKey = keyof BarElementClasses;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
color: string;
|
|
20
|
-
isFaded: boolean;
|
|
21
|
-
isHighlighted: boolean;
|
|
22
|
-
classes?: Partial<BarElementClasses>;
|
|
23
|
-
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use `getBarUtilityClass` from `./barClasses` instead.
|
|
25
|
+
*/
|
|
24
26
|
export declare function getBarElementUtilityClass(slot: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Use `barClasses` from `./barClasses` instead.
|
|
29
|
+
*/
|
|
25
30
|
export declare const barElementClasses: BarElementClasses;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use `useBarElementUtilityClasses` from `./barClasses` instead.
|
|
33
|
+
*/
|
|
26
34
|
export declare const useUtilityClasses: (ownerState: BarElementOwnerState) => Record<"root", string>;
|
|
@@ -10,10 +10,29 @@ exports.useUtilityClasses = void 0;
|
|
|
10
10
|
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
11
11
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
12
12
|
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `BarClasses` from `./barClasses` instead.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `BarClassKey` from `./barClasses` instead.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use `getBarUtilityClass` from `./barClasses` instead.
|
|
23
|
+
*/
|
|
13
24
|
function getBarElementUtilityClass(slot) {
|
|
14
25
|
return (0, _generateUtilityClass.default)('MuiBarElement', slot);
|
|
15
26
|
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `barClasses` from `./barClasses` instead.
|
|
30
|
+
*/
|
|
16
31
|
const barElementClasses = exports.barElementClasses = (0, _generateUtilityClasses.default)('MuiBarElement', ['root', 'highlighted', 'faded', 'series']);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `useBarElementUtilityClasses` from `./barClasses` instead.
|
|
35
|
+
*/
|
|
17
36
|
const useUtilityClasses = ownerState => {
|
|
18
37
|
const {
|
|
19
38
|
classes,
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,285 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.27.5
|
|
9
|
+
|
|
10
|
+
_Mar 11, 2026_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
The following team members contributed to this release:
|
|
17
|
+
@bernardobelchior, @JCQuintas, @MBilalShafi, @michelengelen, @mj12albert, @sai6855, @siriwatknp
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@8.27.5`
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Fix crash when `rows` and `rowModesModel` are updated simultaneously (#21684) @michelengelen
|
|
24
|
+
- [DataGrid] Forward rest props in `GridFilterInputMultipleValue` (#21444) @siriwatknp
|
|
25
|
+
- [DataGrid] Remove double rtl inversion logic for columns pinning (#21443) @siriwatknp
|
|
26
|
+
- [DataGrid] Add missing `resizablePanelHandle` classes to `gridClasses` object (#21632) @sai6855
|
|
27
|
+
- [DataGrid] Refactor `headerAlign` style calls (#21633) @sai6855
|
|
28
|
+
- [DataGrid] Fix keyboard navigation with single-row checkbox selection (#21529) @mj12albert
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@8.27.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@8.27.5`, plus:
|
|
33
|
+
|
|
34
|
+
- [DataGridPro] Add `role="presentation"` to detail panel toggle header content (#21691) @michelengelen
|
|
35
|
+
- [DataGridPro] Fix sorting not reflected in nested server-side data (#21641) @MBilalShafi
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@8.27.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@8.27.5`.
|
|
40
|
+
|
|
41
|
+
### Charts
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-charts@8.27.5`
|
|
44
|
+
|
|
45
|
+
- [charts] Refactor `BarChart` classes structure (#21601) (#21644) @JCQuintas
|
|
46
|
+
- [charts] Refactor `LineChart` classes structure (#21672) @JCQuintas
|
|
47
|
+
- [charts] Refactor `ScatterChart` classes structure (#21706) @JCQuintas
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-charts-pro@8.27.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
50
|
+
|
|
51
|
+
Same changes as in `@mui/x-charts@8.27.5`, plus:
|
|
52
|
+
|
|
53
|
+
- [charts-pro] Fix image export truncated when page is zoomed out (#21696) @bernardobelchior
|
|
54
|
+
|
|
55
|
+
#### `@mui/x-charts-premium@8.27.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
56
|
+
|
|
57
|
+
Same changes as in `@mui/x-charts-pro@8.27.5`.
|
|
58
|
+
|
|
59
|
+
### Docs
|
|
60
|
+
|
|
61
|
+
- [docs] Fix `AssistantWithDataSource` demo crashing (#21631) @sai6855
|
|
62
|
+
- [docs] Move Range Bar Chart to existing charts (#21122) @bernardobelchior
|
|
63
|
+
|
|
64
|
+
### Core
|
|
65
|
+
|
|
66
|
+
- [code-infra] Fix datagrid test flakyness (#21657) @JCQuintas
|
|
67
|
+
- [code-infra] Removed `getTeamMembers` function and usage from the release script (#21608) @michelengelen
|
|
68
|
+
|
|
69
|
+
### Miscellaneous
|
|
70
|
+
|
|
71
|
+
- [test] Add missing tests for forwarding props to filter operators in DataGrid (#21700) @siriwatknp
|
|
72
|
+
|
|
73
|
+
## 8.27.4
|
|
74
|
+
|
|
75
|
+
_Mar 5, 2026_
|
|
76
|
+
|
|
77
|
+
We'd like to extend a big thank you to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
78
|
+
|
|
79
|
+
- 🐞 Bugfixes
|
|
80
|
+
- 🌎 Improve Ukrainian (uk-UA) locale
|
|
81
|
+
|
|
82
|
+
Special thanks go out to this community member for their valuable contribution:
|
|
83
|
+
@lion1963
|
|
84
|
+
|
|
85
|
+
The following team members contributed to this release:
|
|
86
|
+
@arminmeh, @brijeshb42, @dav-is, @JCQuintas, @sai6855
|
|
87
|
+
|
|
88
|
+
### Data Grid
|
|
89
|
+
|
|
90
|
+
#### `@mui/x-data-grid@8.27.4`
|
|
91
|
+
|
|
92
|
+
- [DataGrid] Prevent unnecessary row selection checkbox rerendering (#21571) @arminmeh
|
|
93
|
+
- [DataGrid] Make `GridScrollArea` overrides resolver dynamic (#21612) @sai6855
|
|
94
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#21381) @lion1963
|
|
95
|
+
|
|
96
|
+
#### `@mui/x-data-grid-pro@8.27.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
97
|
+
|
|
98
|
+
Same changes as in `@mui/x-data-grid@8.27.4`, plus:
|
|
99
|
+
|
|
100
|
+
- [DataGridPro] Use `getRowId` prop to calculate the tree data row update (#21544) @arminmeh
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-data-grid-premium@8.27.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
103
|
+
|
|
104
|
+
Same changes as in `@mui/x-data-grid-pro@8.27.4`.
|
|
105
|
+
|
|
106
|
+
### Charts
|
|
107
|
+
|
|
108
|
+
#### `@mui/x-charts@8.27.4`
|
|
109
|
+
|
|
110
|
+
- [charts] Deprecate `ChartDataProvider` in favour of `ChartsDataProvider` (#21549) @JCQuintas
|
|
111
|
+
- [charts] Rename `ChartContainer` to `ChartsContainer` (#21186) @JCQuintas
|
|
112
|
+
- [charts] Rename `ChartZoomSlider` to `ChartsZoomSlider` (#21572) @JCQuintas
|
|
113
|
+
|
|
114
|
+
#### `@mui/x-charts-pro@8.27.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
115
|
+
|
|
116
|
+
Same changes as in `@mui/x-charts@8.27.4`.
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-charts-premium@8.27.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
119
|
+
|
|
120
|
+
Same changes as in `@mui/x-charts-pro@8.27.4`.
|
|
121
|
+
|
|
122
|
+
### Core
|
|
123
|
+
|
|
124
|
+
- [code-infra] Add eslint rule to prevent `Math.random` in docs (#21505) (#21563) @JCQuintas
|
|
125
|
+
- [code-infra] V8 Dedupe (#21561) @JCQuintas
|
|
126
|
+
- [docs-infra] Apply Cookie Banner to v8.x Branch (#21448) @dav-is
|
|
127
|
+
- [code-infra] Setup checkout to do full clone for non master branches (#21624) @brijeshb42
|
|
128
|
+
|
|
129
|
+
## 8.27.3
|
|
130
|
+
|
|
131
|
+
_Feb 25, 2026_
|
|
132
|
+
|
|
133
|
+
We'd like to extend a big thank you to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
134
|
+
|
|
135
|
+
- 🐞 Bugfixes
|
|
136
|
+
- ⚡️ Improved dynamic data support and cache invalidation in lazy loading for Data Grid Pro
|
|
137
|
+
|
|
138
|
+
The following team members contributed to this release:
|
|
139
|
+
@cherniavskii, @michelengelen, @MBilalShafi, @arminmeh
|
|
140
|
+
|
|
141
|
+
### Data Grid
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-data-grid@8.27.3`
|
|
144
|
+
|
|
145
|
+
- [DataGrid] Preserve key input during row edit when using `rowModesModel` (#21457) @michelengelen
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-data-grid-pro@8.27.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
148
|
+
|
|
149
|
+
Same changes as in `@mui/x-data-grid@8.27.3`, plus:
|
|
150
|
+
|
|
151
|
+
- [DataGridPro] Improve dynamic data support and cache invalidation in lazy loading (#21465) @MBilalShafi
|
|
152
|
+
|
|
153
|
+
#### `@mui/x-data-grid-premium@8.27.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
154
|
+
|
|
155
|
+
Same changes as in `@mui/x-data-grid-pro@8.27.3`.
|
|
156
|
+
|
|
157
|
+
### Core
|
|
158
|
+
|
|
159
|
+
- [code-infra] Do not append `x` to the last version for the compare API (#21422) @arminmeh
|
|
160
|
+
- [docs-infra] Fix current version detection logic (#21415) @cherniavskii
|
|
161
|
+
|
|
162
|
+
## 8.27.2
|
|
163
|
+
|
|
164
|
+
_Feb 20, 2026_
|
|
165
|
+
|
|
166
|
+
We'd like to extend a big thank you to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
167
|
+
|
|
168
|
+
- 🐞 Bugfixes
|
|
169
|
+
|
|
170
|
+
### Data Grid
|
|
171
|
+
|
|
172
|
+
#### `@mui/x-data-grid@8.27.2`
|
|
173
|
+
|
|
174
|
+
Internal changes.
|
|
175
|
+
|
|
176
|
+
#### `@mui/x-data-grid-pro@8.27.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
177
|
+
|
|
178
|
+
Same changes as in `@mui/x-data-grid@8.27.2`, plus:
|
|
179
|
+
|
|
180
|
+
- [DataGridPro] Fix number input visibility in header filters (#21345) @michelengelen
|
|
181
|
+
|
|
182
|
+
#### `@mui/x-data-grid-premium@8.27.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
183
|
+
|
|
184
|
+
Same changes as in `@mui/x-data-grid-pro@8.27.2`.
|
|
185
|
+
|
|
186
|
+
### Date and Time Pickers
|
|
187
|
+
|
|
188
|
+
#### `@mui/x-date-pickers@8.27.2`
|
|
189
|
+
|
|
190
|
+
- [DatePicker] Add keyboard support for selecting day, month, and year (#21399) @michelengelen
|
|
191
|
+
|
|
192
|
+
#### `@mui/x-date-pickers-pro@8.27.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
193
|
+
|
|
194
|
+
Same changes as in `@mui/x-date-pickers@8.27.2`, plus:
|
|
195
|
+
|
|
196
|
+
- [DateRangePicker] Fix timezone update issue leading to `invalidRange` error (#21382) @michelengelen
|
|
197
|
+
|
|
198
|
+
### Charts
|
|
199
|
+
|
|
200
|
+
#### `@mui/x-charts@8.27.2`
|
|
201
|
+
|
|
202
|
+
Internal changes.
|
|
203
|
+
|
|
204
|
+
#### `@mui/x-charts-pro@8.27.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
205
|
+
|
|
206
|
+
Same changes as in `@mui/x-charts@8.27.2`, plus:
|
|
207
|
+
|
|
208
|
+
- [charts-pro] Handle edge case in export image (#21206) @bernardobelchior
|
|
209
|
+
|
|
210
|
+
#### `@mui/x-charts-premium@8.27.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
211
|
+
|
|
212
|
+
Same changes as in `@mui/x-charts-pro@8.27.2`.
|
|
213
|
+
|
|
214
|
+
### Tree View
|
|
215
|
+
|
|
216
|
+
#### `@mui/x-tree-view@8.27.2`
|
|
217
|
+
|
|
218
|
+
- [tree view] Focus item sibling on unmount instead of the 1st item (#21386) @flaviendelangle
|
|
219
|
+
|
|
220
|
+
#### `@mui/x-tree-view-pro@8.27.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
221
|
+
|
|
222
|
+
Same changes as in `@mui/x-tree-view@8.27.2`.
|
|
223
|
+
|
|
224
|
+
### Codemod
|
|
225
|
+
|
|
226
|
+
#### `@mui/x-codemod@8.27.2`
|
|
227
|
+
|
|
228
|
+
Internal changes.
|
|
229
|
+
|
|
230
|
+
### Core
|
|
231
|
+
|
|
232
|
+
- [code-infra] Only ignore `renovate[bot]` in changelog generation script (#21188) @bernardobelchior
|
|
233
|
+
|
|
234
|
+
## v8.27.1
|
|
235
|
+
|
|
236
|
+
<!-- generated comparing v8.27.0..v8.x -->
|
|
237
|
+
|
|
238
|
+
_Feb 13, 2026_
|
|
239
|
+
|
|
240
|
+
We'd like to extend a big thank you to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
241
|
+
|
|
242
|
+
- 📝 CSS bundler support is no longer needed for the Data Grid
|
|
243
|
+
- 🐞 Bugfixes
|
|
244
|
+
|
|
245
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
246
|
+
@sai6855
|
|
247
|
+
|
|
248
|
+
The following team members contributed to this release:
|
|
249
|
+
@arminmeh, @cherniavskii, @flaviendelangle, @mj12albert, @MBilalShafi
|
|
250
|
+
|
|
251
|
+
### Data Grid
|
|
252
|
+
|
|
253
|
+
#### `@mui/x-data-grid@8.27.1`
|
|
254
|
+
|
|
255
|
+
- [DataGrid] Hide column menu icon when there are no items (#21303) @MBilalShafi
|
|
256
|
+
- [DataGrid] Migrate styled imports and remove `index.css` (#21176) @MBilalShafi
|
|
257
|
+
- [DataGrid] Optimize `GridRootStyles` overrides resolver (#21251) @sai6855
|
|
258
|
+
|
|
259
|
+
#### `@mui/x-data-grid-pro@8.27.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
260
|
+
|
|
261
|
+
Same changes as in `@mui/x-data-grid@8.27.1`, plus:
|
|
262
|
+
|
|
263
|
+
- [DataGridPro] Fix column pinning issue with `restoreState` (#21305) @MBilalShafi
|
|
264
|
+
- [DataGridPro] Fix lazy loading params for page with one row (#21238) @MBilalShafi
|
|
265
|
+
- [DataGridPro] Properly extract parent path (#21301) @arminmeh
|
|
266
|
+
|
|
267
|
+
#### `@mui/x-data-grid-premium@8.27.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
268
|
+
|
|
269
|
+
Same changes as in `@mui/x-data-grid-pro@8.27.1`, plus:
|
|
270
|
+
|
|
271
|
+
- [DataGridPremium] Fix aggregation display when `initialState` has both `sortModel` and `pinnedColumns` (#21152) @mj12albert
|
|
272
|
+
|
|
273
|
+
### Tree View
|
|
274
|
+
|
|
275
|
+
#### `@mui/x-tree-view@8.27.1`
|
|
276
|
+
|
|
277
|
+
- [tree view] Fix `apiRef.current.setItemExpansion()` (#21095) @flaviendelangle
|
|
278
|
+
|
|
279
|
+
#### `@mui/x-tree-view-pro@8.27.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
280
|
+
|
|
281
|
+
Same changes as in `@mui/x-tree-view@8.27.1`.
|
|
282
|
+
|
|
283
|
+
### Core
|
|
284
|
+
|
|
285
|
+
- [internal] Add CLI for translation using LLM (#21299) @cherniavskii
|
|
286
|
+
|
|
8
287
|
## v8.27.0
|
|
9
288
|
|
|
10
289
|
_Feb 2, 2026_
|
|
@@ -1,35 +1,22 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type ChartSeriesType } from "../models/seriesType/config.js";
|
|
3
|
-
import { type ChartDataProviderProps } from "../ChartDataProvider/index.js";
|
|
4
|
-
import { type ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
5
2
|
import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
6
3
|
import { type ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
|
|
7
|
-
|
|
4
|
+
import { type ChartsContainerProps, type ChartsContainerSlotProps, type ChartsContainerSlots } from "../ChartsContainer/index.js";
|
|
8
5
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* This is a combination of both the `ChartDataProvider` and `ChartsSurface` components.
|
|
12
|
-
*
|
|
13
|
-
* Demos:
|
|
14
|
-
*
|
|
15
|
-
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
16
|
-
*
|
|
17
|
-
* API:
|
|
18
|
-
*
|
|
19
|
-
* - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```jsx
|
|
23
|
-
* <ChartContainer
|
|
24
|
-
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
25
|
-
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
26
|
-
* >
|
|
27
|
-
* <BarPlot />
|
|
28
|
-
* <ChartsXAxis axisId="x-axis" />
|
|
29
|
-
* </ChartContainer>
|
|
30
|
-
* ```
|
|
6
|
+
* @deprecated Use `ChartsContainerSlots` instead. We added S to the charts prefix to align with other components.
|
|
31
7
|
*/
|
|
32
|
-
|
|
8
|
+
export type ChartContainerSlots = ChartsContainerSlots;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `ChartsContainerSlotProps` instead. We added S to the charts prefix to align with other components.
|
|
11
|
+
*/
|
|
12
|
+
export type ChartContainerSlotProps = ChartsContainerSlotProps;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `ChartsContainerProps` instead. We added S to the charts prefix to align with other components.
|
|
15
|
+
*/
|
|
16
|
+
export type ChartContainerProps<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>> = ChartsContainerProps<SeriesType, TSignatures>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `ChartsContainer` instead. We added S to the charts prefix to align with other components.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ChartContainer: <TSeries extends ChartSeriesType>(props: ChartsContainerProps<TSeries> & {
|
|
33
21
|
ref?: React.ForwardedRef<SVGSVGElement>;
|
|
34
|
-
}) => React.JSX.Element;
|
|
35
|
-
export { ChartContainer };
|
|
22
|
+
}) => React.JSX.Element;
|