@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
|
@@ -9,7 +9,7 @@ var _ChartProvider = require("../../context/ChartProvider");
|
|
|
9
9
|
function useStore() {
|
|
10
10
|
const context = (0, _ChartProvider.useChartContext)();
|
|
11
11
|
if (!context) {
|
|
12
|
-
throw new Error(
|
|
12
|
+
throw new Error('MUI X Charts: Could not find the Charts context. ' + 'This happens when the component is rendered outside of a ChartsContainer parent component. ' + 'Wrap your component in a ChartsContainer or ChartsDataProvider.');
|
|
13
13
|
}
|
|
14
14
|
return context.store;
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "8.27.
|
|
3
|
+
"version": "8.27.5",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of MUI X Charts components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"reselect": "^5.1.1",
|
|
36
36
|
"use-sync-external-store": "^1.6.0",
|
|
37
|
+
"@mui/x-internals": "8.26.0",
|
|
37
38
|
"@mui/x-charts-vendor": "8.26.0",
|
|
38
|
-
"@mui/x-internal-gestures": "0.4.0"
|
|
39
|
-
"@mui/x-internals": "8.26.0"
|
|
39
|
+
"@mui/x-internal-gestures": "0.4.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@emotion/react": "^11.9.0",
|
|
@@ -33,15 +33,22 @@ export interface ChartsComponents<Theme = unknown> {
|
|
|
33
33
|
defaultProps?: ComponentsProps['MuiChartsSurface'];
|
|
34
34
|
styleOverrides?: ComponentsOverrides<Theme>['MuiChartsSurface'];
|
|
35
35
|
};
|
|
36
|
+
MuiChartsDataProvider?: {
|
|
37
|
+
defaultProps?: ComponentsProps['MuiChartsDataProvider'];
|
|
38
|
+
};
|
|
39
|
+
/** @deprecated Use `MuiChartsDataProvider` instead. */
|
|
36
40
|
MuiChartDataProvider?: {
|
|
37
41
|
defaultProps?: ComponentsProps['MuiChartDataProvider'];
|
|
38
42
|
};
|
|
39
43
|
MuiBarChart?: {
|
|
40
44
|
defaultProps?: ComponentsProps['MuiBarChart'];
|
|
45
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiBarChart'];
|
|
41
46
|
};
|
|
47
|
+
/** @deprecated Use `MuiBarChart` instead. */
|
|
42
48
|
MuiBarElement?: {
|
|
43
49
|
styleOverrides?: ComponentsOverrides<Theme>['MuiBarElement'];
|
|
44
50
|
};
|
|
51
|
+
/** @deprecated Use `MuiBarChart` instead. */
|
|
45
52
|
MuiBarLabel?: {
|
|
46
53
|
defaultProps?: ComponentsProps['MuiBarLabel'];
|
|
47
54
|
styleOverrides?: ComponentsOverrides<Theme>['MuiBarLabel'];
|
|
@@ -49,19 +56,35 @@ export interface ChartsComponents<Theme = unknown> {
|
|
|
49
56
|
MuiLineChart?: {
|
|
50
57
|
defaultProps?: ComponentsProps['MuiLineChart'];
|
|
51
58
|
};
|
|
59
|
+
MuiAreaPlot?: {
|
|
60
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiAreaPlot'];
|
|
61
|
+
};
|
|
62
|
+
MuiLinePlot?: {
|
|
63
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiLinePlot'];
|
|
64
|
+
};
|
|
65
|
+
MuiMarkPlot?: {
|
|
66
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiMarkPlot'];
|
|
67
|
+
};
|
|
68
|
+
/** @deprecated Use `MuiAreaPlot` instead. */
|
|
52
69
|
MuiAreaElement?: {
|
|
53
70
|
styleOverrides?: ComponentsOverrides<Theme>['MuiAreaElement'];
|
|
54
71
|
};
|
|
72
|
+
/** @deprecated Use `MuiLinePlot` instead. */
|
|
55
73
|
MuiLineElement?: {
|
|
56
74
|
styleOverrides?: ComponentsOverrides<Theme>['MuiLineElement'];
|
|
57
75
|
};
|
|
76
|
+
/** @deprecated Use `MuiMarkPlot` instead. */
|
|
58
77
|
MuiMarkElement?: {
|
|
59
78
|
styleOverrides?: ComponentsOverrides<Theme>['MuiMarkElement'];
|
|
60
79
|
};
|
|
61
80
|
MuiScatterChart?: {
|
|
62
81
|
defaultProps?: ComponentsProps['MuiScatterChart'];
|
|
82
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiScatterChart'];
|
|
83
|
+
};
|
|
84
|
+
/** @deprecated Use `MuiScatterChart` instead. */
|
|
85
|
+
MuiScatter?: {
|
|
86
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiScatterChart'];
|
|
63
87
|
};
|
|
64
|
-
MuiScatter?: {};
|
|
65
88
|
MuiGauge?: {
|
|
66
89
|
styleOverrides?: ComponentsOverrides<Theme>['MuiGauge'];
|
|
67
90
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type GaugeClassKey } from "../Gauge/index.js";
|
|
2
|
+
import { type BarClassKey } from "../BarChart/barClasses.js";
|
|
2
3
|
import { type BarLabelClassKey } from "../BarChart/index.js";
|
|
3
4
|
import { type BarElementClassKey } from "../BarChart/barElementClasses.js";
|
|
5
|
+
import { type ScatterClassKey } from "../ScatterChart/scatterClasses.js";
|
|
4
6
|
import { type ChartsAxisHighlightClassKey } from "../ChartsAxisHighlight/index.js";
|
|
5
7
|
import { type ChartsGridClassKey } from "../ChartsGrid/index.js";
|
|
6
8
|
import { type ChartsTooltipClassKey } from "../ChartsTooltip/index.js";
|
|
7
|
-
import {
|
|
9
|
+
import type { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from "../LineChart/index.js";
|
|
8
10
|
export interface ChartsComponentNameToClassKey {
|
|
9
11
|
MuiChartsAxis: 'root';
|
|
10
12
|
MuiChartsXAxis: 'root';
|
|
@@ -14,11 +16,21 @@ export interface ChartsComponentNameToClassKey {
|
|
|
14
16
|
MuiChartsGrid: ChartsGridClassKey;
|
|
15
17
|
MuiChartsTooltip: ChartsTooltipClassKey;
|
|
16
18
|
MuiChartsSurface: 'root';
|
|
19
|
+
MuiBarChart: BarClassKey;
|
|
20
|
+
/** @deprecated Use `MuiBarChart` instead. */
|
|
17
21
|
MuiBarElement: BarElementClassKey;
|
|
22
|
+
/** @deprecated Use `MuiBarChart` instead. */
|
|
18
23
|
MuiBarLabel: BarLabelClassKey;
|
|
24
|
+
MuiAreaPlot: 'root';
|
|
25
|
+
MuiLinePlot: 'root';
|
|
26
|
+
MuiMarkPlot: 'root';
|
|
27
|
+
/** @deprecated Use `MuiLineChart` instead. */
|
|
19
28
|
MuiAreaElement: AreaElementClassKey;
|
|
29
|
+
/** @deprecated Use `MuiLineChart` instead. */
|
|
20
30
|
MuiLineElement: LineElementClassKey;
|
|
31
|
+
/** @deprecated Use `MuiLineChart` instead. */
|
|
21
32
|
MuiMarkElement: MarkElementClassKey;
|
|
33
|
+
MuiScatterChart: ScatterClassKey;
|
|
22
34
|
MuiGauge: GaugeClassKey;
|
|
23
35
|
}
|
|
24
36
|
declare module '@mui/material/styles' {
|
|
@@ -9,7 +9,7 @@ import { type ScatterChartProps } from "../ScatterChart/ScatterChart.js";
|
|
|
9
9
|
import { type PieChartProps } from "../PieChart/PieChart.js";
|
|
10
10
|
import { type ChartsXAxisProps, type ChartsYAxisProps } from "../models/axis.js";
|
|
11
11
|
import { type ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
|
|
12
|
-
import { type
|
|
12
|
+
import { type ChartsDataProviderProps } from "../ChartsDataProvider/index.js";
|
|
13
13
|
export interface ChartsComponentsPropsList {
|
|
14
14
|
MuiChartsXAxis: ChartsXAxisProps;
|
|
15
15
|
MuiChartsYAxis: ChartsYAxisProps;
|
|
@@ -18,7 +18,9 @@ export interface ChartsComponentsPropsList {
|
|
|
18
18
|
MuiChartsLocalizationProvider: ChartsLocalizationProviderProps;
|
|
19
19
|
MuiChartsTooltip: ChartsTooltipProps;
|
|
20
20
|
MuiChartsSurface: ChartsSurfaceProps;
|
|
21
|
-
|
|
21
|
+
MuiChartsDataProvider: ChartsDataProviderProps;
|
|
22
|
+
/** @deprecated Use `MuiChartsDataProvider` instead. */
|
|
23
|
+
MuiChartDataProvider: ChartsDataProviderProps;
|
|
22
24
|
MuiBarChart: BarChartProps;
|
|
23
25
|
MuiBarLabel: BarLabelProps;
|
|
24
26
|
MuiLineChart: LineChartProps;
|