@mui/x-charts 7.5.0 → 7.5.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/BarChart.js +13 -3
- package/BarChart/BarElement.js +1 -1
- package/BarChart/BarLabel/BarLabel.d.ts +1342 -0
- package/BarChart/BarLabel/BarLabel.js +60 -0
- package/BarChart/BarLabel/BarLabel.types.d.ts +39 -0
- package/BarChart/BarLabel/BarLabel.types.js +5 -0
- package/BarChart/BarLabel/BarLabelItem.d.ts +53 -0
- package/BarChart/BarLabel/BarLabelItem.js +138 -0
- package/BarChart/BarLabel/BarLabelPlot.d.ts +16 -0
- package/BarChart/BarLabel/BarLabelPlot.js +110 -0
- package/BarChart/BarLabel/barLabelClasses.d.ts +13 -0
- package/BarChart/BarLabel/barLabelClasses.js +29 -0
- package/BarChart/BarLabel/getBarLabel.d.ts +10 -0
- package/BarChart/BarLabel/getBarLabel.js +31 -0
- package/BarChart/BarLabel/index.d.ts +6 -0
- package/BarChart/BarLabel/index.js +25 -0
- package/BarChart/BarPlot.d.ts +15 -4
- package/BarChart/BarPlot.js +18 -4
- package/BarChart/index.d.ts +1 -0
- package/BarChart/index.js +11 -0
- package/CHANGELOG.md +61 -5417
- package/ChartContainer/ChartContainer.js +1 -1
- package/ChartsAxis/ChartsAxis.js +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/ChartsClipPath/ChartsClipPath.js +1 -1
- package/ChartsGrid/ChartsGrid.js +1 -1
- package/ChartsLegend/ChartsLegend.js +1 -1
- package/ChartsLegend/DefaultChartsLegend.js +1 -1
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/ChartsSurface.js +1 -1
- package/ChartsText/ChartsText.js +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.js +1 -1
- package/ChartsTooltip/ChartsTooltip.js +1 -1
- package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +1 -1
- package/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
- package/ChartsXAxis/ChartsXAxis.js +1 -1
- package/ChartsYAxis/ChartsYAxis.js +1 -1
- package/Gauge/Gauge.js +1 -1
- package/Gauge/GaugeContainer.js +1 -1
- package/Gauge/GaugeValueText.js +1 -1
- package/LineChart/AnimatedArea.js +1 -1
- package/LineChart/AnimatedLine.js +1 -1
- package/LineChart/AreaElement.js +1 -1
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineElement.js +1 -1
- package/LineChart/LineHighlightElement.js +1 -1
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +1 -1
- package/LineChart/MarkElement.js +1 -16
- package/LineChart/MarkPlot.js +1 -1
- package/PieChart/PieArc.js +1 -1
- package/PieChart/PieArcLabel.js +1 -1
- package/PieChart/PieArcLabelPlot.js +1 -1
- package/PieChart/PieArcPlot.js +1 -1
- package/PieChart/PieChart.js +1 -1
- package/PieChart/PiePlot.js +1 -1
- package/ResponsiveChartContainer/ResponsiveChartContainer.js +1 -1
- package/ScatterChart/Scatter.js +1 -1
- package/ScatterChart/ScatterChart.js +1 -1
- package/ScatterChart/ScatterPlot.js +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.js +1 -1
- package/context/ZAxisContextProvider.js +1 -1
- package/esm/BarChart/BarChart.js +13 -3
- package/esm/BarChart/BarElement.js +1 -1
- package/esm/BarChart/BarLabel/BarLabel.js +51 -0
- package/esm/BarChart/BarLabel/BarLabel.types.js +1 -0
- package/esm/BarChart/BarLabel/BarLabelItem.js +130 -0
- package/esm/BarChart/BarLabel/BarLabelPlot.js +102 -0
- package/esm/BarChart/BarLabel/barLabelClasses.js +19 -0
- package/esm/BarChart/BarLabel/getBarLabel.js +24 -0
- package/esm/BarChart/BarLabel/index.js +2 -0
- package/esm/BarChart/BarPlot.js +18 -4
- package/esm/BarChart/index.js +2 -1
- package/esm/ChartContainer/ChartContainer.js +1 -1
- package/esm/ChartsAxis/ChartsAxis.js +1 -1
- package/esm/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/esm/ChartsClipPath/ChartsClipPath.js +1 -1
- package/esm/ChartsGrid/ChartsGrid.js +1 -1
- package/esm/ChartsLegend/ChartsLegend.js +1 -1
- package/esm/ChartsLegend/DefaultChartsLegend.js +1 -1
- package/esm/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/esm/ChartsSurface.js +1 -1
- package/esm/ChartsText/ChartsText.js +1 -1
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +1 -1
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +1 -1
- package/esm/ChartsTooltip/ChartsTooltip.js +1 -1
- package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +1 -1
- package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
- package/esm/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
- package/esm/ChartsXAxis/ChartsXAxis.js +1 -1
- package/esm/ChartsYAxis/ChartsYAxis.js +1 -1
- package/esm/Gauge/Gauge.js +1 -1
- package/esm/Gauge/GaugeContainer.js +1 -1
- package/esm/Gauge/GaugeValueText.js +1 -1
- package/esm/LineChart/AnimatedArea.js +1 -1
- package/esm/LineChart/AnimatedLine.js +1 -1
- package/esm/LineChart/AreaElement.js +1 -1
- package/esm/LineChart/AreaPlot.js +1 -1
- package/esm/LineChart/LineChart.js +1 -1
- package/esm/LineChart/LineElement.js +1 -1
- package/esm/LineChart/LineHighlightElement.js +1 -1
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +1 -1
- package/esm/LineChart/MarkElement.js +1 -16
- package/esm/LineChart/MarkPlot.js +1 -1
- package/esm/PieChart/PieArc.js +1 -1
- package/esm/PieChart/PieArcLabel.js +1 -1
- package/esm/PieChart/PieArcLabelPlot.js +1 -1
- package/esm/PieChart/PieArcPlot.js +1 -1
- package/esm/PieChart/PieChart.js +1 -1
- package/esm/PieChart/PiePlot.js +1 -1
- package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +1 -1
- package/esm/ScatterChart/Scatter.js +1 -1
- package/esm/ScatterChart/ScatterChart.js +1 -1
- package/esm/ScatterChart/ScatterPlot.js +1 -1
- package/esm/SparkLineChart/SparkLineChart.js +1 -1
- package/esm/context/ZAxisContextProvider.js +1 -1
- package/index.js +1 -1
- package/modern/BarChart/BarChart.js +13 -3
- package/modern/BarChart/BarElement.js +1 -1
- package/modern/BarChart/BarLabel/BarLabel.js +51 -0
- package/modern/BarChart/BarLabel/BarLabel.types.js +1 -0
- package/modern/BarChart/BarLabel/BarLabelItem.js +130 -0
- package/modern/BarChart/BarLabel/BarLabelPlot.js +102 -0
- package/modern/BarChart/BarLabel/barLabelClasses.js +19 -0
- package/modern/BarChart/BarLabel/getBarLabel.js +24 -0
- package/modern/BarChart/BarLabel/index.js +2 -0
- package/modern/BarChart/BarPlot.js +18 -4
- package/modern/BarChart/index.js +2 -1
- package/modern/ChartContainer/ChartContainer.js +1 -1
- package/modern/ChartsAxis/ChartsAxis.js +1 -1
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/modern/ChartsClipPath/ChartsClipPath.js +1 -1
- package/modern/ChartsGrid/ChartsGrid.js +1 -1
- package/modern/ChartsLegend/ChartsLegend.js +1 -1
- package/modern/ChartsLegend/DefaultChartsLegend.js +1 -1
- package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/modern/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/modern/ChartsSurface.js +1 -1
- package/modern/ChartsText/ChartsText.js +1 -1
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +1 -1
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +1 -1
- package/modern/ChartsTooltip/ChartsTooltip.js +1 -1
- package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +1 -1
- package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
- package/modern/ChartsXAxis/ChartsXAxis.js +1 -1
- package/modern/ChartsYAxis/ChartsYAxis.js +1 -1
- package/modern/Gauge/Gauge.js +1 -1
- package/modern/Gauge/GaugeContainer.js +1 -1
- package/modern/Gauge/GaugeValueText.js +1 -1
- package/modern/LineChart/AnimatedArea.js +1 -1
- package/modern/LineChart/AnimatedLine.js +1 -1
- package/modern/LineChart/AreaElement.js +1 -1
- package/modern/LineChart/AreaPlot.js +1 -1
- package/modern/LineChart/LineChart.js +1 -1
- package/modern/LineChart/LineElement.js +1 -1
- package/modern/LineChart/LineHighlightElement.js +1 -1
- package/modern/LineChart/LineHighlightPlot.js +1 -1
- package/modern/LineChart/LinePlot.js +1 -1
- package/modern/LineChart/MarkElement.js +1 -16
- package/modern/LineChart/MarkPlot.js +1 -1
- package/modern/PieChart/PieArc.js +1 -1
- package/modern/PieChart/PieArcLabel.js +1 -1
- package/modern/PieChart/PieArcLabelPlot.js +1 -1
- package/modern/PieChart/PieArcPlot.js +1 -1
- package/modern/PieChart/PieChart.js +1 -1
- package/modern/PieChart/PiePlot.js +1 -1
- package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +1 -1
- package/modern/ScatterChart/Scatter.js +1 -1
- package/modern/ScatterChart/ScatterChart.js +1 -1
- package/modern/ScatterChart/ScatterPlot.js +1 -1
- package/modern/SparkLineChart/SparkLineChart.js +1 -1
- package/modern/context/ZAxisContextProvider.js +1 -1
- package/modern/index.js +1 -1
- package/package.json +1 -1
- package/themeAugmentation/components.d.ts +4 -0
- package/themeAugmentation/overrides.d.ts +3 -0
- package/themeAugmentation/props.d.ts +2 -0
|
@@ -91,7 +91,7 @@ function ChartsAxis(props) {
|
|
|
91
91
|
process.env.NODE_ENV !== "production" ? ChartsAxis.propTypes = {
|
|
92
92
|
// ----------------------------- Warning --------------------------------
|
|
93
93
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
94
|
-
// | To update them edit the TypeScript types and run "
|
|
94
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
95
95
|
// ----------------------------------------------------------------------
|
|
96
96
|
/**
|
|
97
97
|
* Indicate which axis to display the bottom of the charts.
|
|
@@ -97,7 +97,7 @@ function ChartsAxisHighlight(props) {
|
|
|
97
97
|
process.env.NODE_ENV !== "production" ? ChartsAxisHighlight.propTypes = {
|
|
98
98
|
// ----------------------------- Warning --------------------------------
|
|
99
99
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
100
|
-
// | To update them edit the TypeScript types and run "
|
|
100
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
101
101
|
// ----------------------------------------------------------------------
|
|
102
102
|
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
103
103
|
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
@@ -38,7 +38,7 @@ function ChartsClipPath(props) {
|
|
|
38
38
|
process.env.NODE_ENV !== "production" ? ChartsClipPath.propTypes = {
|
|
39
39
|
// ----------------------------- Warning --------------------------------
|
|
40
40
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41
|
-
// | To update them edit the TypeScript types and run "
|
|
41
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
42
42
|
// ----------------------------------------------------------------------
|
|
43
43
|
id: PropTypes.string.isRequired,
|
|
44
44
|
offset: PropTypes.shape({
|
|
@@ -113,7 +113,7 @@ function ChartsGrid(props) {
|
|
|
113
113
|
process.env.NODE_ENV !== "production" ? ChartsGrid.propTypes = {
|
|
114
114
|
// ----------------------------- Warning --------------------------------
|
|
115
115
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
116
|
-
// | To update them edit the TypeScript types and run "
|
|
116
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
117
117
|
// ----------------------------------------------------------------------
|
|
118
118
|
/**
|
|
119
119
|
* Override or extend the styles applied to the component.
|
|
@@ -69,7 +69,7 @@ function ChartsLegend(inProps) {
|
|
|
69
69
|
process.env.NODE_ENV !== "production" ? ChartsLegend.propTypes = {
|
|
70
70
|
// ----------------------------- Warning --------------------------------
|
|
71
71
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
72
|
-
// | To update them edit the TypeScript types and run "
|
|
72
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
73
73
|
// ----------------------------------------------------------------------
|
|
74
74
|
/**
|
|
75
75
|
* Override or extend the styles applied to the component.
|
|
@@ -204,7 +204,7 @@ function DefaultChartsLegend(props) {
|
|
|
204
204
|
process.env.NODE_ENV !== "production" ? DefaultChartsLegend.propTypes = {
|
|
205
205
|
// ----------------------------- Warning --------------------------------
|
|
206
206
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
207
|
-
// | To update them edit the TypeScript types and run "
|
|
207
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
208
208
|
// ----------------------------------------------------------------------
|
|
209
209
|
/**
|
|
210
210
|
* Override or extend the styles applied to the component.
|
|
@@ -62,7 +62,7 @@ function ChartsOnAxisClickHandler(props) {
|
|
|
62
62
|
process.env.NODE_ENV !== "production" ? ChartsOnAxisClickHandler.propTypes = {
|
|
63
63
|
// ----------------------------- Warning --------------------------------
|
|
64
64
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
65
|
-
// | To update them edit the TypeScript types and run "
|
|
65
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
66
66
|
// ----------------------------------------------------------------------
|
|
67
67
|
/**
|
|
68
68
|
* The function called for onClick events.
|
|
@@ -23,7 +23,7 @@ function ChartsReferenceLine(props) {
|
|
|
23
23
|
process.env.NODE_ENV !== "production" ? ChartsReferenceLine.propTypes = {
|
|
24
24
|
// ----------------------------- Warning --------------------------------
|
|
25
25
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
26
|
-
// | To update them edit the TypeScript types and run "
|
|
26
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
27
27
|
// ----------------------------------------------------------------------
|
|
28
28
|
/**
|
|
29
29
|
* The id of the axis used for the reference value.
|
package/modern/ChartsSurface.js
CHANGED
|
@@ -44,7 +44,7 @@ const ChartsSurface = /*#__PURE__*/React.forwardRef(function ChartsSurface(props
|
|
|
44
44
|
process.env.NODE_ENV !== "production" ? ChartsSurface.propTypes = {
|
|
45
45
|
// ----------------------------- Warning --------------------------------
|
|
46
46
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
47
|
-
// | To update them edit the TypeScript types and run "
|
|
47
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
48
48
|
// ----------------------------------------------------------------------
|
|
49
49
|
children: PropTypes.node,
|
|
50
50
|
className: PropTypes.string,
|
|
@@ -70,7 +70,7 @@ function ChartsText(props) {
|
|
|
70
70
|
process.env.NODE_ENV !== "production" ? ChartsText.propTypes = {
|
|
71
71
|
// ----------------------------- Warning --------------------------------
|
|
72
72
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
73
|
-
// | To update them edit the TypeScript types and run "
|
|
73
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
74
74
|
// ----------------------------------------------------------------------
|
|
75
75
|
/**
|
|
76
76
|
* Height of a text line (in `em`).
|
|
@@ -80,7 +80,7 @@ function ChartsAxisTooltipContent(props) {
|
|
|
80
80
|
process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes = {
|
|
81
81
|
// ----------------------------- Warning --------------------------------
|
|
82
82
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
83
|
-
// | To update them edit the TypeScript types and run "
|
|
83
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
84
84
|
// ----------------------------------------------------------------------
|
|
85
85
|
axisData: PropTypes.shape({
|
|
86
86
|
x: PropTypes.shape({
|
|
@@ -60,7 +60,7 @@ function ChartsItemTooltipContent(props) {
|
|
|
60
60
|
process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.propTypes = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
-
// | To update them edit the TypeScript types and run "
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
64
|
// ----------------------------------------------------------------------
|
|
65
65
|
classes: PropTypes.object.isRequired,
|
|
66
66
|
content: PropTypes.elementType,
|
|
@@ -110,7 +110,7 @@ function ChartsTooltip(props) {
|
|
|
110
110
|
process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
111
111
|
// ----------------------------- Warning --------------------------------
|
|
112
112
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
113
|
-
// | To update them edit the TypeScript types and run "
|
|
113
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
114
114
|
// ----------------------------------------------------------------------
|
|
115
115
|
/**
|
|
116
116
|
* Component to override the tooltip content when trigger is set to 'axis'.
|
|
@@ -80,7 +80,7 @@ function DefaultChartsAxisTooltipContent(props) {
|
|
|
80
80
|
process.env.NODE_ENV !== "production" ? DefaultChartsAxisTooltipContent.propTypes = {
|
|
81
81
|
// ----------------------------- Warning --------------------------------
|
|
82
82
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
83
|
-
// | To update them edit the TypeScript types and run "
|
|
83
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
84
84
|
// ----------------------------------------------------------------------
|
|
85
85
|
/**
|
|
86
86
|
* The properties of the triggered axis.
|
|
@@ -61,7 +61,7 @@ function DefaultChartsItemTooltipContent(props) {
|
|
|
61
61
|
process.env.NODE_ENV !== "production" ? DefaultChartsItemTooltipContent.propTypes = {
|
|
62
62
|
// ----------------------------- Warning --------------------------------
|
|
63
63
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
64
|
-
// | To update them edit the TypeScript types and run "
|
|
64
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
65
65
|
// ----------------------------------------------------------------------
|
|
66
66
|
/**
|
|
67
67
|
* Override or extend the styles applied to the component.
|
|
@@ -195,7 +195,7 @@ function ChartsVoronoiHandler(props) {
|
|
|
195
195
|
process.env.NODE_ENV !== "production" ? ChartsVoronoiHandler.propTypes = {
|
|
196
196
|
// ----------------------------- Warning --------------------------------
|
|
197
197
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
198
|
-
// | To update them edit the TypeScript types and run "
|
|
198
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
199
199
|
// ----------------------------------------------------------------------
|
|
200
200
|
/**
|
|
201
201
|
* Callback fired when clicking on a scatter item.
|
|
@@ -248,7 +248,7 @@ function ChartsXAxis(inProps) {
|
|
|
248
248
|
process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
|
|
249
249
|
// ----------------------------- Warning --------------------------------
|
|
250
250
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
251
|
-
// | To update them edit the TypeScript types and run "
|
|
251
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
252
252
|
// ----------------------------------------------------------------------
|
|
253
253
|
/**
|
|
254
254
|
* The id of the axis to render.
|
|
@@ -184,7 +184,7 @@ function ChartsYAxis(inProps) {
|
|
|
184
184
|
process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
|
|
185
185
|
// ----------------------------- Warning --------------------------------
|
|
186
186
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
187
|
-
// | To update them edit the TypeScript types and run "
|
|
187
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
188
188
|
// ----------------------------------------------------------------------
|
|
189
189
|
/**
|
|
190
190
|
* The id of the axis to render.
|
package/modern/Gauge/Gauge.js
CHANGED
|
@@ -44,7 +44,7 @@ function Gauge(props) {
|
|
|
44
44
|
process.env.NODE_ENV !== "production" ? Gauge.propTypes = {
|
|
45
45
|
// ----------------------------- Warning --------------------------------
|
|
46
46
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
47
|
-
// | To update them edit the TypeScript types and run "
|
|
47
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
48
48
|
// ----------------------------------------------------------------------
|
|
49
49
|
children: PropTypes.node,
|
|
50
50
|
classes: PropTypes.object,
|
|
@@ -106,7 +106,7 @@ const GaugeContainer = /*#__PURE__*/React.forwardRef(function GaugeContainer(pro
|
|
|
106
106
|
process.env.NODE_ENV !== "production" ? GaugeContainer.propTypes = {
|
|
107
107
|
// ----------------------------- Warning --------------------------------
|
|
108
108
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
109
|
-
// | To update them edit the TypeScript types and run "
|
|
109
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
110
110
|
// ----------------------------------------------------------------------
|
|
111
111
|
children: PropTypes.node,
|
|
112
112
|
className: PropTypes.string,
|
|
@@ -48,7 +48,7 @@ function GaugeValueText(props) {
|
|
|
48
48
|
process.env.NODE_ENV !== "production" ? GaugeValueText.propTypes = {
|
|
49
49
|
// ----------------------------- Warning --------------------------------
|
|
50
50
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
51
|
-
// | To update them edit the TypeScript types and run "
|
|
51
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
52
52
|
// ----------------------------------------------------------------------
|
|
53
53
|
/**
|
|
54
54
|
* Height of a text line (in `em`).
|
|
@@ -83,7 +83,7 @@ function AnimatedArea(props) {
|
|
|
83
83
|
process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
|
|
84
84
|
// ----------------------------- Warning --------------------------------
|
|
85
85
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
|
-
// | To update them edit the TypeScript types and run "
|
|
86
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
87
87
|
// ----------------------------------------------------------------------
|
|
88
88
|
d: PropTypes.string.isRequired,
|
|
89
89
|
ownerState: PropTypes.shape({
|
|
@@ -86,7 +86,7 @@ function AnimatedLine(props) {
|
|
|
86
86
|
process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes = {
|
|
87
87
|
// ----------------------------- Warning --------------------------------
|
|
88
88
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
89
|
-
// | To update them edit the TypeScript types and run "
|
|
89
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
90
90
|
// ----------------------------------------------------------------------
|
|
91
91
|
d: PropTypes.string.isRequired,
|
|
92
92
|
ownerState: PropTypes.shape({
|
|
@@ -89,7 +89,7 @@ function AreaElement(props) {
|
|
|
89
89
|
process.env.NODE_ENV !== "production" ? AreaElement.propTypes = {
|
|
90
90
|
// ----------------------------- Warning --------------------------------
|
|
91
91
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
92
|
-
// | To update them edit the TypeScript types and run "
|
|
92
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
93
93
|
// ----------------------------------------------------------------------
|
|
94
94
|
classes: PropTypes.object,
|
|
95
95
|
color: PropTypes.string.isRequired,
|
|
@@ -119,7 +119,7 @@ function AreaPlot(props) {
|
|
|
119
119
|
process.env.NODE_ENV !== "production" ? AreaPlot.propTypes = {
|
|
120
120
|
// ----------------------------- Warning --------------------------------
|
|
121
121
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
122
|
-
// | To update them edit the TypeScript types and run "
|
|
122
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
123
123
|
// ----------------------------------------------------------------------
|
|
124
124
|
/**
|
|
125
125
|
* Callback fired when a line area item is clicked.
|
|
@@ -133,7 +133,7 @@ const LineChart = /*#__PURE__*/React.forwardRef(function LineChart(props, ref) {
|
|
|
133
133
|
process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
134
134
|
// ----------------------------- Warning --------------------------------
|
|
135
135
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
136
|
-
// | To update them edit the TypeScript types and run "
|
|
136
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
137
137
|
// ----------------------------------------------------------------------
|
|
138
138
|
/**
|
|
139
139
|
* The configuration of axes highlight.
|
|
@@ -89,7 +89,7 @@ function LineElement(props) {
|
|
|
89
89
|
process.env.NODE_ENV !== "production" ? LineElement.propTypes = {
|
|
90
90
|
// ----------------------------- Warning --------------------------------
|
|
91
91
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
92
|
-
// | To update them edit the TypeScript types and run "
|
|
92
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
93
93
|
// ----------------------------------------------------------------------
|
|
94
94
|
classes: PropTypes.object,
|
|
95
95
|
color: PropTypes.string.isRequired,
|
|
@@ -72,7 +72,7 @@ function LineHighlightElement(props) {
|
|
|
72
72
|
process.env.NODE_ENV !== "production" ? LineHighlightElement.propTypes = {
|
|
73
73
|
// ----------------------------- Warning --------------------------------
|
|
74
74
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
75
|
-
// | To update them edit the TypeScript types and run "
|
|
75
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
76
76
|
// ----------------------------------------------------------------------
|
|
77
77
|
classes: PropTypes.object,
|
|
78
78
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
@@ -90,7 +90,7 @@ function LineHighlightPlot(props) {
|
|
|
90
90
|
process.env.NODE_ENV !== "production" ? LineHighlightPlot.propTypes = {
|
|
91
91
|
// ----------------------------- Warning --------------------------------
|
|
92
92
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
93
|
-
// | To update them edit the TypeScript types and run "
|
|
93
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
94
94
|
// ----------------------------------------------------------------------
|
|
95
95
|
/**
|
|
96
96
|
* The props used for each component slot.
|
|
@@ -117,7 +117,7 @@ function LinePlot(props) {
|
|
|
117
117
|
process.env.NODE_ENV !== "production" ? LinePlot.propTypes = {
|
|
118
118
|
// ----------------------------- Warning --------------------------------
|
|
119
119
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
120
|
-
// | To update them edit the TypeScript types and run "
|
|
120
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
121
121
|
// ----------------------------------------------------------------------
|
|
122
122
|
/**
|
|
123
123
|
* Callback fired when a line item is clicked.
|
|
@@ -41,21 +41,6 @@ const MarkElementPath = styled(animated.path, {
|
|
|
41
41
|
stroke: ownerState.color,
|
|
42
42
|
strokeWidth: 2
|
|
43
43
|
}));
|
|
44
|
-
MarkElementPath.propTypes = {
|
|
45
|
-
// ----------------------------- Warning --------------------------------
|
|
46
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
47
|
-
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
48
|
-
// ----------------------------------------------------------------------
|
|
49
|
-
as: PropTypes.elementType,
|
|
50
|
-
ownerState: PropTypes.shape({
|
|
51
|
-
classes: PropTypes.object,
|
|
52
|
-
color: PropTypes.string.isRequired,
|
|
53
|
-
id: PropTypes.string.isRequired,
|
|
54
|
-
isFaded: PropTypes.bool.isRequired,
|
|
55
|
-
isHighlighted: PropTypes.bool.isRequired
|
|
56
|
-
}).isRequired,
|
|
57
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
58
|
-
};
|
|
59
44
|
/**
|
|
60
45
|
* Demos:
|
|
61
46
|
*
|
|
@@ -125,7 +110,7 @@ function MarkElement(props) {
|
|
|
125
110
|
process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
126
111
|
// ----------------------------- Warning --------------------------------
|
|
127
112
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
128
|
-
// | To update them edit the TypeScript types and run "
|
|
113
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
129
114
|
// ----------------------------------------------------------------------
|
|
130
115
|
classes: PropTypes.object,
|
|
131
116
|
/**
|
|
@@ -156,7 +156,7 @@ function MarkPlot(props) {
|
|
|
156
156
|
process.env.NODE_ENV !== "production" ? MarkPlot.propTypes = {
|
|
157
157
|
// ----------------------------- Warning --------------------------------
|
|
158
158
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
159
|
-
// | To update them edit the TypeScript types and run "
|
|
159
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
160
160
|
// ----------------------------------------------------------------------
|
|
161
161
|
/**
|
|
162
162
|
* Callback fired when a line mark item is clicked.
|
|
@@ -87,7 +87,7 @@ function PieArc(props) {
|
|
|
87
87
|
process.env.NODE_ENV !== "production" ? PieArc.propTypes = {
|
|
88
88
|
// ----------------------------- Warning --------------------------------
|
|
89
89
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
90
|
-
// | To update them edit the TypeScript types and run "
|
|
90
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
91
91
|
// ----------------------------------------------------------------------
|
|
92
92
|
classes: PropTypes.object,
|
|
93
93
|
dataIndex: PropTypes.number.isRequired,
|
|
@@ -95,7 +95,7 @@ function PieArcLabel(props) {
|
|
|
95
95
|
process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
96
96
|
// ----------------------------- Warning --------------------------------
|
|
97
97
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
98
|
-
// | To update them edit the TypeScript types and run "
|
|
98
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
99
99
|
// ----------------------------------------------------------------------
|
|
100
100
|
classes: PropTypes.object,
|
|
101
101
|
color: PropTypes.string.isRequired,
|
|
@@ -105,7 +105,7 @@ function PieArcLabelPlot(props) {
|
|
|
105
105
|
process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
106
106
|
// ----------------------------- Warning --------------------------------
|
|
107
107
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
|
-
// | To update them edit the TypeScript types and run "
|
|
108
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
109
109
|
// ----------------------------------------------------------------------
|
|
110
110
|
/**
|
|
111
111
|
* The label displayed into the arc.
|
|
@@ -85,7 +85,7 @@ function PieArcPlot(props) {
|
|
|
85
85
|
process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
86
86
|
// ----------------------------- Warning --------------------------------
|
|
87
87
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
88
|
-
// | To update them edit the TypeScript types and run "
|
|
88
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
89
89
|
// ----------------------------------------------------------------------
|
|
90
90
|
/**
|
|
91
91
|
* The radius between circle center and the arc label in px.
|
|
@@ -116,7 +116,7 @@ function PieChart(props) {
|
|
|
116
116
|
process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
117
117
|
// ----------------------------- Warning --------------------------------
|
|
118
118
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
119
|
-
// | To update them edit the TypeScript types and run "
|
|
119
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
120
120
|
// ----------------------------------------------------------------------
|
|
121
121
|
/**
|
|
122
122
|
* The configuration of axes highlight.
|
|
@@ -135,7 +135,7 @@ function PiePlot(props) {
|
|
|
135
135
|
process.env.NODE_ENV !== "production" ? PiePlot.propTypes = {
|
|
136
136
|
// ----------------------------- Warning --------------------------------
|
|
137
137
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
138
|
-
// | To update them edit the TypeScript types and run "
|
|
138
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
139
139
|
// ----------------------------------------------------------------------
|
|
140
140
|
/**
|
|
141
141
|
* Callback fired when a pie item is clicked.
|
|
@@ -50,7 +50,7 @@ const ResponsiveChartContainer = /*#__PURE__*/React.forwardRef(function Responsi
|
|
|
50
50
|
process.env.NODE_ENV !== "production" ? ResponsiveChartContainer.propTypes = {
|
|
51
51
|
// ----------------------------- Warning --------------------------------
|
|
52
52
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
53
|
-
// | To update them edit the TypeScript types and run "
|
|
53
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
54
54
|
// ----------------------------------------------------------------------
|
|
55
55
|
children: PropTypes.node,
|
|
56
56
|
className: PropTypes.string,
|
|
@@ -91,7 +91,7 @@ function Scatter(props) {
|
|
|
91
91
|
process.env.NODE_ENV !== "production" ? Scatter.propTypes = {
|
|
92
92
|
// ----------------------------- Warning --------------------------------
|
|
93
93
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
94
|
-
// | To update them edit the TypeScript types and run "
|
|
94
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
95
95
|
// ----------------------------------------------------------------------
|
|
96
96
|
color: PropTypes.string.isRequired,
|
|
97
97
|
colorGetter: PropTypes.func,
|
|
@@ -99,7 +99,7 @@ const ScatterChart = /*#__PURE__*/React.forwardRef(function ScatterChart(props,
|
|
|
99
99
|
process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
100
100
|
// ----------------------------- Warning --------------------------------
|
|
101
101
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
102
|
-
// | To update them edit the TypeScript types and run "
|
|
102
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
103
103
|
// ----------------------------------------------------------------------
|
|
104
104
|
/**
|
|
105
105
|
* The configuration of axes highlight.
|
|
@@ -74,7 +74,7 @@ function ScatterPlot(props) {
|
|
|
74
74
|
process.env.NODE_ENV !== "production" ? ScatterPlot.propTypes = {
|
|
75
75
|
// ----------------------------- Warning --------------------------------
|
|
76
76
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
|
-
// | To update them edit the TypeScript types and run "
|
|
77
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
78
78
|
// ----------------------------------------------------------------------
|
|
79
79
|
/**
|
|
80
80
|
* Callback fired when clicking on a scatter item.
|
|
@@ -105,7 +105,7 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
|
|
|
105
105
|
process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
106
106
|
// ----------------------------- Warning --------------------------------
|
|
107
107
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
|
-
// | To update them edit the TypeScript types and run "
|
|
108
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
109
109
|
// ----------------------------------------------------------------------
|
|
110
110
|
/**
|
|
111
111
|
* Set to `true` to fill spark line area.
|
|
@@ -55,7 +55,7 @@ function ZAxisContextProvider(props) {
|
|
|
55
55
|
process.env.NODE_ENV !== "production" ? ZAxisContextProvider.propTypes = {
|
|
56
56
|
// ----------------------------- Warning --------------------------------
|
|
57
57
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
58
|
-
// | To update them edit the TypeScript types and run "
|
|
58
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
59
59
|
// ----------------------------------------------------------------------
|
|
60
60
|
children: PropTypes.node,
|
|
61
61
|
/**
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -40,6 +40,10 @@ export interface ChartsComponents {
|
|
|
40
40
|
defaultProps?: ComponentsProps['MuiBarElement'];
|
|
41
41
|
styleOverrides?: ComponentsOverrides['MuiBarElement'];
|
|
42
42
|
};
|
|
43
|
+
MuiBarLabel?: {
|
|
44
|
+
defaultProps?: ComponentsProps['MuiBarLabel'];
|
|
45
|
+
styleOverrides?: ComponentsOverrides['MuiBarLabel'];
|
|
46
|
+
};
|
|
43
47
|
MuiLineChart?: {
|
|
44
48
|
defaultProps?: ComponentsProps['MuiLineChart'];
|
|
45
49
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BarLabelClassKey } from '../BarChart';
|
|
1
2
|
import { BarElementClassKey } from '../BarChart/BarElement';
|
|
2
3
|
import { ChartsAxisClassKey } from '../ChartsAxis';
|
|
3
4
|
import { ChartsAxisHighlightClassKey } from '../ChartsAxisHighlight';
|
|
@@ -16,6 +17,8 @@ export interface PickersComponentNameToClassKey {
|
|
|
16
17
|
|
|
17
18
|
// BarChart components
|
|
18
19
|
MuiBarElement: BarElementClassKey;
|
|
20
|
+
MuiBarLabel: BarLabelClassKey;
|
|
21
|
+
|
|
19
22
|
// LineChart components
|
|
20
23
|
|
|
21
24
|
MuiAreaElement: AreaElementClassKey;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BarLabelProps } from '../BarChart/BarLabel';
|
|
1
2
|
import { BarChartProps } from '../BarChart/BarChart';
|
|
2
3
|
import { BarElementProps } from '../BarChart/BarElement';
|
|
3
4
|
import { ChartsAxisProps } from '../ChartsAxis';
|
|
@@ -27,6 +28,7 @@ export interface ChartsComponentsPropsList {
|
|
|
27
28
|
// BarChart components
|
|
28
29
|
MuiBarChart: BarChartProps;
|
|
29
30
|
MuiBarElement: BarElementProps;
|
|
31
|
+
MuiBarLabel: BarLabelProps;
|
|
30
32
|
// LineChart components
|
|
31
33
|
MuiLineChart: LineChartProps;
|
|
32
34
|
MuiAreaElement: AreaElementProps;
|