@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.
Files changed (185) hide show
  1. package/BarChart/BarChart.js +13 -3
  2. package/BarChart/BarElement.js +1 -1
  3. package/BarChart/BarLabel/BarLabel.d.ts +1342 -0
  4. package/BarChart/BarLabel/BarLabel.js +60 -0
  5. package/BarChart/BarLabel/BarLabel.types.d.ts +39 -0
  6. package/BarChart/BarLabel/BarLabel.types.js +5 -0
  7. package/BarChart/BarLabel/BarLabelItem.d.ts +53 -0
  8. package/BarChart/BarLabel/BarLabelItem.js +138 -0
  9. package/BarChart/BarLabel/BarLabelPlot.d.ts +16 -0
  10. package/BarChart/BarLabel/BarLabelPlot.js +110 -0
  11. package/BarChart/BarLabel/barLabelClasses.d.ts +13 -0
  12. package/BarChart/BarLabel/barLabelClasses.js +29 -0
  13. package/BarChart/BarLabel/getBarLabel.d.ts +10 -0
  14. package/BarChart/BarLabel/getBarLabel.js +31 -0
  15. package/BarChart/BarLabel/index.d.ts +6 -0
  16. package/BarChart/BarLabel/index.js +25 -0
  17. package/BarChart/BarPlot.d.ts +15 -4
  18. package/BarChart/BarPlot.js +18 -4
  19. package/BarChart/index.d.ts +1 -0
  20. package/BarChart/index.js +11 -0
  21. package/CHANGELOG.md +61 -5417
  22. package/ChartContainer/ChartContainer.js +1 -1
  23. package/ChartsAxis/ChartsAxis.js +1 -1
  24. package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
  25. package/ChartsClipPath/ChartsClipPath.js +1 -1
  26. package/ChartsGrid/ChartsGrid.js +1 -1
  27. package/ChartsLegend/ChartsLegend.js +1 -1
  28. package/ChartsLegend/DefaultChartsLegend.js +1 -1
  29. package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
  30. package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
  31. package/ChartsSurface.js +1 -1
  32. package/ChartsText/ChartsText.js +1 -1
  33. package/ChartsTooltip/ChartsAxisTooltipContent.js +1 -1
  34. package/ChartsTooltip/ChartsItemTooltipContent.js +1 -1
  35. package/ChartsTooltip/ChartsTooltip.js +1 -1
  36. package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +1 -1
  37. package/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
  38. package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
  39. package/ChartsXAxis/ChartsXAxis.js +1 -1
  40. package/ChartsYAxis/ChartsYAxis.js +1 -1
  41. package/Gauge/Gauge.js +1 -1
  42. package/Gauge/GaugeContainer.js +1 -1
  43. package/Gauge/GaugeValueText.js +1 -1
  44. package/LineChart/AnimatedArea.js +1 -1
  45. package/LineChart/AnimatedLine.js +1 -1
  46. package/LineChart/AreaElement.js +1 -1
  47. package/LineChart/AreaPlot.js +1 -1
  48. package/LineChart/LineChart.js +1 -1
  49. package/LineChart/LineElement.js +1 -1
  50. package/LineChart/LineHighlightElement.js +1 -1
  51. package/LineChart/LineHighlightPlot.js +1 -1
  52. package/LineChart/LinePlot.js +1 -1
  53. package/LineChart/MarkElement.js +1 -16
  54. package/LineChart/MarkPlot.js +1 -1
  55. package/PieChart/PieArc.js +1 -1
  56. package/PieChart/PieArcLabel.js +1 -1
  57. package/PieChart/PieArcLabelPlot.js +1 -1
  58. package/PieChart/PieArcPlot.js +1 -1
  59. package/PieChart/PieChart.js +1 -1
  60. package/PieChart/PiePlot.js +1 -1
  61. package/ResponsiveChartContainer/ResponsiveChartContainer.js +1 -1
  62. package/ScatterChart/Scatter.js +1 -1
  63. package/ScatterChart/ScatterChart.js +1 -1
  64. package/ScatterChart/ScatterPlot.js +1 -1
  65. package/SparkLineChart/SparkLineChart.d.ts +1 -1
  66. package/SparkLineChart/SparkLineChart.js +1 -1
  67. package/context/ZAxisContextProvider.js +1 -1
  68. package/esm/BarChart/BarChart.js +13 -3
  69. package/esm/BarChart/BarElement.js +1 -1
  70. package/esm/BarChart/BarLabel/BarLabel.js +51 -0
  71. package/esm/BarChart/BarLabel/BarLabel.types.js +1 -0
  72. package/esm/BarChart/BarLabel/BarLabelItem.js +130 -0
  73. package/esm/BarChart/BarLabel/BarLabelPlot.js +102 -0
  74. package/esm/BarChart/BarLabel/barLabelClasses.js +19 -0
  75. package/esm/BarChart/BarLabel/getBarLabel.js +24 -0
  76. package/esm/BarChart/BarLabel/index.js +2 -0
  77. package/esm/BarChart/BarPlot.js +18 -4
  78. package/esm/BarChart/index.js +2 -1
  79. package/esm/ChartContainer/ChartContainer.js +1 -1
  80. package/esm/ChartsAxis/ChartsAxis.js +1 -1
  81. package/esm/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
  82. package/esm/ChartsClipPath/ChartsClipPath.js +1 -1
  83. package/esm/ChartsGrid/ChartsGrid.js +1 -1
  84. package/esm/ChartsLegend/ChartsLegend.js +1 -1
  85. package/esm/ChartsLegend/DefaultChartsLegend.js +1 -1
  86. package/esm/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
  87. package/esm/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
  88. package/esm/ChartsSurface.js +1 -1
  89. package/esm/ChartsText/ChartsText.js +1 -1
  90. package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +1 -1
  91. package/esm/ChartsTooltip/ChartsItemTooltipContent.js +1 -1
  92. package/esm/ChartsTooltip/ChartsTooltip.js +1 -1
  93. package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +1 -1
  94. package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
  95. package/esm/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
  96. package/esm/ChartsXAxis/ChartsXAxis.js +1 -1
  97. package/esm/ChartsYAxis/ChartsYAxis.js +1 -1
  98. package/esm/Gauge/Gauge.js +1 -1
  99. package/esm/Gauge/GaugeContainer.js +1 -1
  100. package/esm/Gauge/GaugeValueText.js +1 -1
  101. package/esm/LineChart/AnimatedArea.js +1 -1
  102. package/esm/LineChart/AnimatedLine.js +1 -1
  103. package/esm/LineChart/AreaElement.js +1 -1
  104. package/esm/LineChart/AreaPlot.js +1 -1
  105. package/esm/LineChart/LineChart.js +1 -1
  106. package/esm/LineChart/LineElement.js +1 -1
  107. package/esm/LineChart/LineHighlightElement.js +1 -1
  108. package/esm/LineChart/LineHighlightPlot.js +1 -1
  109. package/esm/LineChart/LinePlot.js +1 -1
  110. package/esm/LineChart/MarkElement.js +1 -16
  111. package/esm/LineChart/MarkPlot.js +1 -1
  112. package/esm/PieChart/PieArc.js +1 -1
  113. package/esm/PieChart/PieArcLabel.js +1 -1
  114. package/esm/PieChart/PieArcLabelPlot.js +1 -1
  115. package/esm/PieChart/PieArcPlot.js +1 -1
  116. package/esm/PieChart/PieChart.js +1 -1
  117. package/esm/PieChart/PiePlot.js +1 -1
  118. package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +1 -1
  119. package/esm/ScatterChart/Scatter.js +1 -1
  120. package/esm/ScatterChart/ScatterChart.js +1 -1
  121. package/esm/ScatterChart/ScatterPlot.js +1 -1
  122. package/esm/SparkLineChart/SparkLineChart.js +1 -1
  123. package/esm/context/ZAxisContextProvider.js +1 -1
  124. package/index.js +1 -1
  125. package/modern/BarChart/BarChart.js +13 -3
  126. package/modern/BarChart/BarElement.js +1 -1
  127. package/modern/BarChart/BarLabel/BarLabel.js +51 -0
  128. package/modern/BarChart/BarLabel/BarLabel.types.js +1 -0
  129. package/modern/BarChart/BarLabel/BarLabelItem.js +130 -0
  130. package/modern/BarChart/BarLabel/BarLabelPlot.js +102 -0
  131. package/modern/BarChart/BarLabel/barLabelClasses.js +19 -0
  132. package/modern/BarChart/BarLabel/getBarLabel.js +24 -0
  133. package/modern/BarChart/BarLabel/index.js +2 -0
  134. package/modern/BarChart/BarPlot.js +18 -4
  135. package/modern/BarChart/index.js +2 -1
  136. package/modern/ChartContainer/ChartContainer.js +1 -1
  137. package/modern/ChartsAxis/ChartsAxis.js +1 -1
  138. package/modern/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
  139. package/modern/ChartsClipPath/ChartsClipPath.js +1 -1
  140. package/modern/ChartsGrid/ChartsGrid.js +1 -1
  141. package/modern/ChartsLegend/ChartsLegend.js +1 -1
  142. package/modern/ChartsLegend/DefaultChartsLegend.js +1 -1
  143. package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
  144. package/modern/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
  145. package/modern/ChartsSurface.js +1 -1
  146. package/modern/ChartsText/ChartsText.js +1 -1
  147. package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +1 -1
  148. package/modern/ChartsTooltip/ChartsItemTooltipContent.js +1 -1
  149. package/modern/ChartsTooltip/ChartsTooltip.js +1 -1
  150. package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +1 -1
  151. package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
  152. package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
  153. package/modern/ChartsXAxis/ChartsXAxis.js +1 -1
  154. package/modern/ChartsYAxis/ChartsYAxis.js +1 -1
  155. package/modern/Gauge/Gauge.js +1 -1
  156. package/modern/Gauge/GaugeContainer.js +1 -1
  157. package/modern/Gauge/GaugeValueText.js +1 -1
  158. package/modern/LineChart/AnimatedArea.js +1 -1
  159. package/modern/LineChart/AnimatedLine.js +1 -1
  160. package/modern/LineChart/AreaElement.js +1 -1
  161. package/modern/LineChart/AreaPlot.js +1 -1
  162. package/modern/LineChart/LineChart.js +1 -1
  163. package/modern/LineChart/LineElement.js +1 -1
  164. package/modern/LineChart/LineHighlightElement.js +1 -1
  165. package/modern/LineChart/LineHighlightPlot.js +1 -1
  166. package/modern/LineChart/LinePlot.js +1 -1
  167. package/modern/LineChart/MarkElement.js +1 -16
  168. package/modern/LineChart/MarkPlot.js +1 -1
  169. package/modern/PieChart/PieArc.js +1 -1
  170. package/modern/PieChart/PieArcLabel.js +1 -1
  171. package/modern/PieChart/PieArcLabelPlot.js +1 -1
  172. package/modern/PieChart/PieArcPlot.js +1 -1
  173. package/modern/PieChart/PieChart.js +1 -1
  174. package/modern/PieChart/PiePlot.js +1 -1
  175. package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +1 -1
  176. package/modern/ScatterChart/Scatter.js +1 -1
  177. package/modern/ScatterChart/ScatterChart.js +1 -1
  178. package/modern/ScatterChart/ScatterPlot.js +1 -1
  179. package/modern/SparkLineChart/SparkLineChart.js +1 -1
  180. package/modern/context/ZAxisContextProvider.js +1 -1
  181. package/modern/index.js +1 -1
  182. package/package.json +1 -1
  183. package/themeAugmentation/components.d.ts +4 -0
  184. package/themeAugmentation/overrides.d.ts +3 -0
  185. package/themeAugmentation/props.d.ts +2 -0
@@ -73,7 +73,7 @@ const ChartContainer = exports.ChartContainer = /*#__PURE__*/React.forwardRef(fu
73
73
  process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
74
74
  // ----------------------------- Warning --------------------------------
75
75
  // | These PropTypes are generated from the TypeScript type definitions |
76
- // | To update them edit the TypeScript types and run "yarn proptypes" |
76
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
77
77
  // ----------------------------------------------------------------------
78
78
  children: _propTypes.default.node,
79
79
  className: _propTypes.default.string,
@@ -100,7 +100,7 @@ function ChartsAxis(props) {
100
100
  process.env.NODE_ENV !== "production" ? ChartsAxis.propTypes = {
101
101
  // ----------------------------- Warning --------------------------------
102
102
  // | These PropTypes are generated from the TypeScript type definitions |
103
- // | To update them edit the TypeScript types and run "yarn proptypes" |
103
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
104
104
  // ----------------------------------------------------------------------
105
105
  /**
106
106
  * Indicate which axis to display the bottom of the charts.
@@ -108,7 +108,7 @@ function ChartsAxisHighlight(props) {
108
108
  process.env.NODE_ENV !== "production" ? ChartsAxisHighlight.propTypes = {
109
109
  // ----------------------------- Warning --------------------------------
110
110
  // | These PropTypes are generated from the TypeScript type definitions |
111
- // | To update them edit the TypeScript types and run "yarn proptypes" |
111
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
112
112
  // ----------------------------------------------------------------------
113
113
  x: _propTypes.default.oneOf(['band', 'line', 'none']),
114
114
  y: _propTypes.default.oneOf(['band', 'line', 'none'])
@@ -47,7 +47,7 @@ function ChartsClipPath(props) {
47
47
  process.env.NODE_ENV !== "production" ? ChartsClipPath.propTypes = {
48
48
  // ----------------------------- Warning --------------------------------
49
49
  // | These PropTypes are generated from the TypeScript type definitions |
50
- // | To update them edit the TypeScript types and run "yarn proptypes" |
50
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
51
51
  // ----------------------------------------------------------------------
52
52
  id: _propTypes.default.string.isRequired,
53
53
  offset: _propTypes.default.shape({
@@ -122,7 +122,7 @@ function ChartsGrid(props) {
122
122
  process.env.NODE_ENV !== "production" ? ChartsGrid.propTypes = {
123
123
  // ----------------------------- Warning --------------------------------
124
124
  // | These PropTypes are generated from the TypeScript type definitions |
125
- // | To update them edit the TypeScript types and run "yarn proptypes" |
125
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
126
126
  // ----------------------------------------------------------------------
127
127
  /**
128
128
  * Override or extend the styles applied to the component.
@@ -78,7 +78,7 @@ function ChartsLegend(inProps) {
78
78
  process.env.NODE_ENV !== "production" ? ChartsLegend.propTypes = {
79
79
  // ----------------------------- Warning --------------------------------
80
80
  // | These PropTypes are generated from the TypeScript type definitions |
81
- // | To update them edit the TypeScript types and run "yarn proptypes" |
81
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
82
82
  // ----------------------------------------------------------------------
83
83
  /**
84
84
  * Override or extend the styles applied to the component.
@@ -214,7 +214,7 @@ function DefaultChartsLegend(props) {
214
214
  process.env.NODE_ENV !== "production" ? DefaultChartsLegend.propTypes = {
215
215
  // ----------------------------- Warning --------------------------------
216
216
  // | These PropTypes are generated from the TypeScript type definitions |
217
- // | To update them edit the TypeScript types and run "yarn proptypes" |
217
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
218
218
  // ----------------------------------------------------------------------
219
219
  /**
220
220
  * Override or extend the styles applied to the component.
@@ -71,7 +71,7 @@ function ChartsOnAxisClickHandler(props) {
71
71
  process.env.NODE_ENV !== "production" ? ChartsOnAxisClickHandler.propTypes = {
72
72
  // ----------------------------- Warning --------------------------------
73
73
  // | These PropTypes are generated from the TypeScript type definitions |
74
- // | To update them edit the TypeScript types and run "yarn proptypes" |
74
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
75
75
  // ----------------------------------------------------------------------
76
76
  /**
77
77
  * The function called for onClick events.
@@ -32,7 +32,7 @@ function ChartsReferenceLine(props) {
32
32
  process.env.NODE_ENV !== "production" ? ChartsReferenceLine.propTypes = {
33
33
  // ----------------------------- Warning --------------------------------
34
34
  // | These PropTypes are generated from the TypeScript type definitions |
35
- // | To update them edit the TypeScript types and run "yarn proptypes" |
35
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
36
36
  // ----------------------------------------------------------------------
37
37
  /**
38
38
  * The id of the axis used for the reference value.
package/ChartsSurface.js CHANGED
@@ -53,7 +53,7 @@ const ChartsSurface = exports.ChartsSurface = /*#__PURE__*/React.forwardRef(func
53
53
  process.env.NODE_ENV !== "production" ? ChartsSurface.propTypes = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
- // | To update them edit the TypeScript types and run "yarn proptypes" |
56
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
57
57
  // ----------------------------------------------------------------------
58
58
  children: _propTypes.default.node,
59
59
  className: _propTypes.default.string,
@@ -79,7 +79,7 @@ function ChartsText(props) {
79
79
  process.env.NODE_ENV !== "production" ? ChartsText.propTypes = {
80
80
  // ----------------------------- Warning --------------------------------
81
81
  // | These PropTypes are generated from the TypeScript type definitions |
82
- // | To update them edit the TypeScript types and run "yarn proptypes" |
82
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
83
83
  // ----------------------------------------------------------------------
84
84
  /**
85
85
  * Height of a text line (in `em`).
@@ -89,7 +89,7 @@ function ChartsAxisTooltipContent(props) {
89
89
  process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.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 "yarn proptypes" |
92
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
93
93
  // ----------------------------------------------------------------------
94
94
  axisData: _propTypes.default.shape({
95
95
  x: _propTypes.default.shape({
@@ -69,7 +69,7 @@ function ChartsItemTooltipContent(props) {
69
69
  process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.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 "yarn proptypes" |
72
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
73
73
  // ----------------------------------------------------------------------
74
74
  classes: _propTypes.default.object.isRequired,
75
75
  content: _propTypes.default.elementType,
@@ -119,7 +119,7 @@ function ChartsTooltip(props) {
119
119
  process.env.NODE_ENV !== "production" ? ChartsTooltip.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 "yarn proptypes" |
122
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
123
123
  // ----------------------------------------------------------------------
124
124
  /**
125
125
  * Component to override the tooltip content when trigger is set to 'axis'.
@@ -89,7 +89,7 @@ function DefaultChartsAxisTooltipContent(props) {
89
89
  process.env.NODE_ENV !== "production" ? DefaultChartsAxisTooltipContent.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 "yarn proptypes" |
92
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
93
93
  // ----------------------------------------------------------------------
94
94
  /**
95
95
  * The properties of the triggered axis.
@@ -70,7 +70,7 @@ function DefaultChartsItemTooltipContent(props) {
70
70
  process.env.NODE_ENV !== "production" ? DefaultChartsItemTooltipContent.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 "yarn proptypes" |
73
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
74
74
  // ----------------------------------------------------------------------
75
75
  /**
76
76
  * Override or extend the styles applied to the component.
@@ -204,7 +204,7 @@ function ChartsVoronoiHandler(props) {
204
204
  process.env.NODE_ENV !== "production" ? ChartsVoronoiHandler.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 "yarn proptypes" |
207
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
208
208
  // ----------------------------------------------------------------------
209
209
  /**
210
210
  * Callback fired when clicking on a scatter item.
@@ -257,7 +257,7 @@ function ChartsXAxis(inProps) {
257
257
  process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
258
258
  // ----------------------------- Warning --------------------------------
259
259
  // | These PropTypes are generated from the TypeScript type definitions |
260
- // | To update them edit the TypeScript types and run "yarn proptypes" |
260
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
261
261
  // ----------------------------------------------------------------------
262
262
  /**
263
263
  * The id of the axis to render.
@@ -193,7 +193,7 @@ function ChartsYAxis(inProps) {
193
193
  process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
194
194
  // ----------------------------- Warning --------------------------------
195
195
  // | These PropTypes are generated from the TypeScript type definitions |
196
- // | To update them edit the TypeScript types and run "yarn proptypes" |
196
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
197
197
  // ----------------------------------------------------------------------
198
198
  /**
199
199
  * The id of the axis to render.
package/Gauge/Gauge.js CHANGED
@@ -53,7 +53,7 @@ function Gauge(props) {
53
53
  process.env.NODE_ENV !== "production" ? Gauge.propTypes = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
- // | To update them edit the TypeScript types and run "yarn proptypes" |
56
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
57
57
  // ----------------------------------------------------------------------
58
58
  children: _propTypes.default.node,
59
59
  classes: _propTypes.default.object,
@@ -115,7 +115,7 @@ const GaugeContainer = exports.GaugeContainer = /*#__PURE__*/React.forwardRef(fu
115
115
  process.env.NODE_ENV !== "production" ? GaugeContainer.propTypes = {
116
116
  // ----------------------------- Warning --------------------------------
117
117
  // | These PropTypes are generated from the TypeScript type definitions |
118
- // | To update them edit the TypeScript types and run "yarn proptypes" |
118
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
119
119
  // ----------------------------------------------------------------------
120
120
  children: _propTypes.default.node,
121
121
  className: _propTypes.default.string,
@@ -57,7 +57,7 @@ function GaugeValueText(props) {
57
57
  process.env.NODE_ENV !== "production" ? GaugeValueText.propTypes = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
- // | To update them edit the TypeScript types and run "yarn proptypes" |
60
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
61
61
  // ----------------------------------------------------------------------
62
62
  /**
63
63
  * Height of a text line (in `em`).
@@ -93,7 +93,7 @@ function AnimatedArea(props) {
93
93
  process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
94
94
  // ----------------------------- Warning --------------------------------
95
95
  // | These PropTypes are generated from the TypeScript type definitions |
96
- // | To update them edit the TypeScript types and run "yarn proptypes" |
96
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
97
97
  // ----------------------------------------------------------------------
98
98
  d: _propTypes.default.string.isRequired,
99
99
  ownerState: _propTypes.default.shape({
@@ -96,7 +96,7 @@ function AnimatedLine(props) {
96
96
  process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes = {
97
97
  // ----------------------------- Warning --------------------------------
98
98
  // | These PropTypes are generated from the TypeScript type definitions |
99
- // | To update them edit the TypeScript types and run "yarn proptypes" |
99
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
100
100
  // ----------------------------------------------------------------------
101
101
  d: _propTypes.default.string.isRequired,
102
102
  ownerState: _propTypes.default.shape({
@@ -100,7 +100,7 @@ function AreaElement(props) {
100
100
  process.env.NODE_ENV !== "production" ? AreaElement.propTypes = {
101
101
  // ----------------------------- Warning --------------------------------
102
102
  // | These PropTypes are generated from the TypeScript type definitions |
103
- // | To update them edit the TypeScript types and run "yarn proptypes" |
103
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
104
104
  // ----------------------------------------------------------------------
105
105
  classes: _propTypes.default.object,
106
106
  color: _propTypes.default.string.isRequired,
@@ -128,7 +128,7 @@ function AreaPlot(props) {
128
128
  process.env.NODE_ENV !== "production" ? AreaPlot.propTypes = {
129
129
  // ----------------------------- Warning --------------------------------
130
130
  // | These PropTypes are generated from the TypeScript type definitions |
131
- // | To update them edit the TypeScript types and run "yarn proptypes" |
131
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
132
132
  // ----------------------------------------------------------------------
133
133
  /**
134
134
  * Callback fired when a line area item is clicked.
@@ -142,7 +142,7 @@ const LineChart = exports.LineChart = /*#__PURE__*/React.forwardRef(function Lin
142
142
  process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
143
143
  // ----------------------------- Warning --------------------------------
144
144
  // | These PropTypes are generated from the TypeScript type definitions |
145
- // | To update them edit the TypeScript types and run "yarn proptypes" |
145
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
146
146
  // ----------------------------------------------------------------------
147
147
  /**
148
148
  * The configuration of axes highlight.
@@ -100,7 +100,7 @@ function LineElement(props) {
100
100
  process.env.NODE_ENV !== "production" ? LineElement.propTypes = {
101
101
  // ----------------------------- Warning --------------------------------
102
102
  // | These PropTypes are generated from the TypeScript type definitions |
103
- // | To update them edit the TypeScript types and run "yarn proptypes" |
103
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
104
104
  // ----------------------------------------------------------------------
105
105
  classes: _propTypes.default.object,
106
106
  color: _propTypes.default.string.isRequired,
@@ -83,7 +83,7 @@ function LineHighlightElement(props) {
83
83
  process.env.NODE_ENV !== "production" ? LineHighlightElement.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 "yarn proptypes" |
86
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
87
87
  // ----------------------------------------------------------------------
88
88
  classes: _propTypes.default.object,
89
89
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired
@@ -99,7 +99,7 @@ function LineHighlightPlot(props) {
99
99
  process.env.NODE_ENV !== "production" ? LineHighlightPlot.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 "yarn proptypes" |
102
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
103
103
  // ----------------------------------------------------------------------
104
104
  /**
105
105
  * The props used for each component slot.
@@ -126,7 +126,7 @@ function LinePlot(props) {
126
126
  process.env.NODE_ENV !== "production" ? LinePlot.propTypes = {
127
127
  // ----------------------------- Warning --------------------------------
128
128
  // | These PropTypes are generated from the TypeScript type definitions |
129
- // | To update them edit the TypeScript types and run "yarn proptypes" |
129
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
130
130
  // ----------------------------------------------------------------------
131
131
  /**
132
132
  * Callback fired when a line item is clicked.
@@ -52,21 +52,6 @@ const MarkElementPath = (0, _styles.styled)(_web.animated.path, {
52
52
  stroke: ownerState.color,
53
53
  strokeWidth: 2
54
54
  }));
55
- MarkElementPath.propTypes = {
56
- // ----------------------------- Warning --------------------------------
57
- // | These PropTypes are generated from the TypeScript type definitions |
58
- // | To update them edit the TypeScript types and run "yarn proptypes" |
59
- // ----------------------------------------------------------------------
60
- as: _propTypes.default.elementType,
61
- ownerState: _propTypes.default.shape({
62
- classes: _propTypes.default.object,
63
- color: _propTypes.default.string.isRequired,
64
- id: _propTypes.default.string.isRequired,
65
- isFaded: _propTypes.default.bool.isRequired,
66
- isHighlighted: _propTypes.default.bool.isRequired
67
- }).isRequired,
68
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
69
- };
70
55
  /**
71
56
  * Demos:
72
57
  *
@@ -136,7 +121,7 @@ function MarkElement(props) {
136
121
  process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
137
122
  // ----------------------------- Warning --------------------------------
138
123
  // | These PropTypes are generated from the TypeScript type definitions |
139
- // | To update them edit the TypeScript types and run "yarn proptypes" |
124
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
140
125
  // ----------------------------------------------------------------------
141
126
  classes: _propTypes.default.object,
142
127
  /**
@@ -165,7 +165,7 @@ function MarkPlot(props) {
165
165
  process.env.NODE_ENV !== "production" ? MarkPlot.propTypes = {
166
166
  // ----------------------------- Warning --------------------------------
167
167
  // | These PropTypes are generated from the TypeScript type definitions |
168
- // | To update them edit the TypeScript types and run "yarn proptypes" |
168
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
169
169
  // ----------------------------------------------------------------------
170
170
  /**
171
171
  * Callback fired when a line mark item is clicked.
@@ -98,7 +98,7 @@ function PieArc(props) {
98
98
  process.env.NODE_ENV !== "production" ? PieArc.propTypes = {
99
99
  // ----------------------------- Warning --------------------------------
100
100
  // | These PropTypes are generated from the TypeScript type definitions |
101
- // | To update them edit the TypeScript types and run "yarn proptypes" |
101
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
102
102
  // ----------------------------------------------------------------------
103
103
  classes: _propTypes.default.object,
104
104
  dataIndex: _propTypes.default.number.isRequired,
@@ -106,7 +106,7 @@ function PieArcLabel(props) {
106
106
  process.env.NODE_ENV !== "production" ? PieArcLabel.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 "yarn proptypes" |
109
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
110
110
  // ----------------------------------------------------------------------
111
111
  classes: _propTypes.default.object,
112
112
  color: _propTypes.default.string.isRequired,
@@ -114,7 +114,7 @@ function PieArcLabelPlot(props) {
114
114
  process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
115
115
  // ----------------------------- Warning --------------------------------
116
116
  // | These PropTypes are generated from the TypeScript type definitions |
117
- // | To update them edit the TypeScript types and run "yarn proptypes" |
117
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
118
118
  // ----------------------------------------------------------------------
119
119
  /**
120
120
  * The label displayed into the arc.
@@ -94,7 +94,7 @@ function PieArcPlot(props) {
94
94
  process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
95
95
  // ----------------------------- Warning --------------------------------
96
96
  // | These PropTypes are generated from the TypeScript type definitions |
97
- // | To update them edit the TypeScript types and run "yarn proptypes" |
97
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
98
98
  // ----------------------------------------------------------------------
99
99
  /**
100
100
  * The radius between circle center and the arc label in px.
@@ -125,7 +125,7 @@ function PieChart(props) {
125
125
  process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
126
126
  // ----------------------------- Warning --------------------------------
127
127
  // | These PropTypes are generated from the TypeScript type definitions |
128
- // | To update them edit the TypeScript types and run "yarn proptypes" |
128
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
129
129
  // ----------------------------------------------------------------------
130
130
  /**
131
131
  * The configuration of axes highlight.
@@ -144,7 +144,7 @@ function PiePlot(props) {
144
144
  process.env.NODE_ENV !== "production" ? PiePlot.propTypes = {
145
145
  // ----------------------------- Warning --------------------------------
146
146
  // | These PropTypes are generated from the TypeScript type definitions |
147
- // | To update them edit the TypeScript types and run "yarn proptypes" |
147
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
148
148
  // ----------------------------------------------------------------------
149
149
  /**
150
150
  * Callback fired when a pie item is clicked.
@@ -59,7 +59,7 @@ const ResponsiveChartContainer = exports.ResponsiveChartContainer = /*#__PURE__*
59
59
  process.env.NODE_ENV !== "production" ? ResponsiveChartContainer.propTypes = {
60
60
  // ----------------------------- Warning --------------------------------
61
61
  // | These PropTypes are generated from the TypeScript type definitions |
62
- // | To update them edit the TypeScript types and run "yarn proptypes" |
62
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
63
63
  // ----------------------------------------------------------------------
64
64
  children: _propTypes.default.node,
65
65
  className: _propTypes.default.string,
@@ -100,7 +100,7 @@ function Scatter(props) {
100
100
  process.env.NODE_ENV !== "production" ? Scatter.propTypes = {
101
101
  // ----------------------------- Warning --------------------------------
102
102
  // | These PropTypes are generated from the TypeScript type definitions |
103
- // | To update them edit the TypeScript types and run "yarn proptypes" |
103
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
104
104
  // ----------------------------------------------------------------------
105
105
  color: _propTypes.default.string.isRequired,
106
106
  colorGetter: _propTypes.default.func,
@@ -108,7 +108,7 @@ const ScatterChart = exports.ScatterChart = /*#__PURE__*/React.forwardRef(functi
108
108
  process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
109
109
  // ----------------------------- Warning --------------------------------
110
110
  // | These PropTypes are generated from the TypeScript type definitions |
111
- // | To update them edit the TypeScript types and run "yarn proptypes" |
111
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
112
112
  // ----------------------------------------------------------------------
113
113
  /**
114
114
  * The configuration of axes highlight.
@@ -83,7 +83,7 @@ function ScatterPlot(props) {
83
83
  process.env.NODE_ENV !== "production" ? ScatterPlot.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 "yarn proptypes" |
86
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
87
87
  // ----------------------------------------------------------------------
88
88
  /**
89
89
  * Callback fired when clicking on a scatter item.
@@ -11,7 +11,7 @@ import { LinePlotSlots, LinePlotSlotProps } from '../LineChart/LinePlot';
11
11
  import { MarkPlotSlots, MarkPlotSlotProps } from '../LineChart/MarkPlot';
12
12
  import { LineHighlightPlotSlots, LineHighlightPlotSlotProps } from '../LineChart/LineHighlightPlot';
13
13
  import { BarPlotSlots, BarPlotSlotProps } from '../BarChart/BarPlot';
14
- export interface SparkLineChartSlots extends AreaPlotSlots, LinePlotSlots, MarkPlotSlots, LineHighlightPlotSlots, BarPlotSlots, ChartsTooltipSlots {
14
+ export interface SparkLineChartSlots extends AreaPlotSlots, LinePlotSlots, MarkPlotSlots, LineHighlightPlotSlots, Omit<BarPlotSlots, 'barLabel'>, ChartsTooltipSlots {
15
15
  }
16
16
  export interface SparkLineChartSlotProps extends AreaPlotSlotProps, LinePlotSlotProps, MarkPlotSlotProps, LineHighlightPlotSlotProps, BarPlotSlotProps, ChartsTooltipSlotProps {
17
17
  }
@@ -114,7 +114,7 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
114
114
  process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
115
115
  // ----------------------------- Warning --------------------------------
116
116
  // | These PropTypes are generated from the TypeScript type definitions |
117
- // | To update them edit the TypeScript types and run "yarn proptypes" |
117
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
118
118
  // ----------------------------------------------------------------------
119
119
  /**
120
120
  * Set to `true` to fill spark line area.
@@ -65,7 +65,7 @@ function ZAxisContextProvider(props) {
65
65
  process.env.NODE_ENV !== "production" ? ZAxisContextProvider.propTypes = {
66
66
  // ----------------------------- Warning --------------------------------
67
67
  // | These PropTypes are generated from the TypeScript type definitions |
68
- // | To update them edit the TypeScript types and run "yarn proptypes" |
68
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
69
69
  // ----------------------------------------------------------------------
70
70
  children: _propTypes.default.node,
71
71
  /**
@@ -52,7 +52,8 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(props, ref) {
52
52
  children,
53
53
  slots,
54
54
  slotProps,
55
- loading
55
+ loading,
56
+ barLabel
56
57
  } = props;
57
58
  const id = useId();
58
59
  const clipPathId = `${id}-clip-path`;
@@ -100,7 +101,8 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(props, ref) {
100
101
  slotProps: slotProps,
101
102
  skipAnimation: skipAnimation,
102
103
  onItemClick: onItemClick,
103
- borderRadius: borderRadius
104
+ borderRadius: borderRadius,
105
+ barLabel: barLabel
104
106
  }), /*#__PURE__*/_jsx(ChartsOverlay, {
105
107
  loading: loading,
106
108
  slots: slots,
@@ -127,7 +129,7 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(props, ref) {
127
129
  process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
128
130
  // ----------------------------- Warning --------------------------------
129
131
  // | These PropTypes are generated from the TypeScript type definitions |
130
- // | To update them edit the TypeScript types and run "yarn proptypes" |
132
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
131
133
  // ----------------------------------------------------------------------
132
134
  /**
133
135
  * The configuration of axes highlight.
@@ -139,6 +141,14 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
139
141
  x: PropTypes.oneOf(['band', 'line', 'none']),
140
142
  y: PropTypes.oneOf(['band', 'line', 'none'])
141
143
  }),
144
+ /**
145
+ * If provided, the function will be used to format the label of the bar.
146
+ * It can be set to 'value' to display the current value.
147
+ * @param {BarItem} item The item to format.
148
+ * @param {BarLabelContext} context data about the bar.
149
+ * @returns {string} The formatted label.
150
+ */
151
+ barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
142
152
  /**
143
153
  * Defines the border radius of the bar element.
144
154
  */
@@ -97,7 +97,7 @@ function BarElement(props) {
97
97
  process.env.NODE_ENV !== "production" ? BarElement.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 "yarn proptypes" |
100
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
101
101
  // ----------------------------------------------------------------------
102
102
  classes: PropTypes.object,
103
103
  dataIndex: PropTypes.number.isRequired,
@@ -0,0 +1,51 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ const _excluded = ["seriesId", "dataIndex", "color", "isFaded", "isHighlighted", "classes"];
4
+ import * as React from 'react';
5
+ import { styled, useThemeProps } from '@mui/material/styles';
6
+ import { animated } from '@react-spring/web';
7
+ import PropTypes from 'prop-types';
8
+ import { barLabelClasses } from './barLabelClasses';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ export const BarLabelComponent = styled(animated.text, {
11
+ name: 'MuiBarLabel',
12
+ slot: 'Root',
13
+ overridesResolver: (_, styles) => [{
14
+ [`&.${barLabelClasses.faded}`]: styles.faded
15
+ }, {
16
+ [`&.${barLabelClasses.highlighted}`]: styles.highlighted
17
+ }, styles.root]
18
+ })(({
19
+ theme
20
+ }) => _extends({}, theme?.typography?.body2, {
21
+ stroke: 'none',
22
+ fill: (theme.vars || theme)?.palette?.text?.primary,
23
+ transition: 'opacity 0.2s ease-in, fill 0.2s ease-in',
24
+ textAnchor: 'middle',
25
+ dominantBaseline: 'central',
26
+ pointerEvents: 'none',
27
+ opacity: 1,
28
+ [`&.${barLabelClasses.faded}`]: {
29
+ opacity: 0.3
30
+ }
31
+ }));
32
+ function BarLabel(props) {
33
+ const themeProps = useThemeProps({
34
+ props,
35
+ name: 'MuiBarLabel'
36
+ });
37
+ const otherProps = _objectWithoutPropertiesLoose(themeProps, _excluded);
38
+ return /*#__PURE__*/_jsx(BarLabelComponent, _extends({}, otherProps));
39
+ }
40
+ process.env.NODE_ENV !== "production" ? BarLabel.propTypes = {
41
+ // ----------------------------- Warning --------------------------------
42
+ // | These PropTypes are generated from the TypeScript type definitions |
43
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
44
+ // ----------------------------------------------------------------------
45
+ classes: PropTypes.object,
46
+ dataIndex: PropTypes.number.isRequired,
47
+ isFaded: PropTypes.bool.isRequired,
48
+ isHighlighted: PropTypes.bool.isRequired,
49
+ seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
50
+ } : void 0;
51
+ export { BarLabel };
@@ -0,0 +1 @@
1
+ export {};