@mui/x-charts 7.11.1 → 7.12.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 (287) hide show
  1. package/BarChart/BarChart.js +0 -2
  2. package/BarChart/BarElement.d.ts +20 -20
  3. package/BarChart/BarElement.js +3 -3
  4. package/BarChart/BarLabel/BarLabel.d.ts +20 -20
  5. package/BarChart/BarLabel/BarLabelItem.js +2 -2
  6. package/BarChart/BarPlot.js +2 -2
  7. package/BarChart/extremums.d.ts +1 -1
  8. package/BarChart/formatter.d.ts +2 -2
  9. package/BarChart/formatter.js +1 -1
  10. package/BarChart/getColor.d.ts +3 -3
  11. package/BarChart/getColor.js +4 -3
  12. package/BarChart/legend.d.ts +1 -1
  13. package/BarChart/plugin.d.ts +2 -2
  14. package/CHANGELOG.md +178 -4
  15. package/ChartContainer/ChartContainer.d.ts +4 -15
  16. package/ChartContainer/ChartContainer.js +7 -9
  17. package/ChartContainer/useChartContainerProps.d.ts +56 -57
  18. package/ChartContainer/useChartContainerProps.js +16 -19
  19. package/ChartContainer/useDefaultizeAxis.d.ts +25 -26
  20. package/ChartsLegend/ChartsLegend.js +6 -6
  21. package/ChartsLegend/DefaultChartsLegend.d.ts +1 -1
  22. package/ChartsLegend/LegendPerItem.js +2 -2
  23. package/ChartsLegend/utils.d.ts +1 -1
  24. package/ChartsTooltip/ChartsAxisTooltipContent.js +4 -4
  25. package/ChartsTooltip/ChartsItemTooltipContent.js +4 -4
  26. package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
  27. package/ChartsTooltip/ChartsTooltip.js +10 -10
  28. package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
  29. package/ChartsXAxis/ChartsXAxis.js +5 -5
  30. package/ChartsYAxis/ChartsYAxis.js +6 -6
  31. package/Gauge/GaugeReferenceArc.js +1 -1
  32. package/Gauge/GaugeValueArc.js +1 -1
  33. package/LineChart/AnimatedArea.d.ts +20 -20
  34. package/LineChart/AnimatedArea.js +1 -1
  35. package/LineChart/AnimatedLine.d.ts +20 -20
  36. package/LineChart/AnimatedLine.js +1 -1
  37. package/LineChart/AreaElement.js +2 -2
  38. package/LineChart/AreaPlot.js +1 -1
  39. package/LineChart/LineChart.js +0 -2
  40. package/LineChart/LineElement.js +2 -2
  41. package/LineChart/LinePlot.js +1 -1
  42. package/LineChart/MarkElement.js +1 -1
  43. package/LineChart/extremums.d.ts +1 -1
  44. package/LineChart/formatter.d.ts +2 -2
  45. package/LineChart/formatter.js +1 -1
  46. package/LineChart/getColor.d.ts +3 -3
  47. package/LineChart/getColor.js +4 -3
  48. package/LineChart/legend.d.ts +1 -1
  49. package/LineChart/plugin.d.ts +2 -2
  50. package/PieChart/PieArc.js +1 -1
  51. package/PieChart/PieArcLabel.js +1 -1
  52. package/PieChart/PieChart.js +0 -2
  53. package/PieChart/formatter.d.ts +2 -2
  54. package/PieChart/formatter.js +1 -1
  55. package/PieChart/getColor.d.ts +3 -2
  56. package/PieChart/getColor.js +4 -3
  57. package/PieChart/legend.d.ts +1 -1
  58. package/PieChart/plugin.d.ts +2 -2
  59. package/ResponsiveChartContainer/ResponsiveChartContainer.js +0 -2
  60. package/ResponsiveChartContainer/useResponsiveChartContainerProps.d.ts +2 -3
  61. package/ScatterChart/ScatterChart.js +0 -2
  62. package/ScatterChart/extremums.d.ts +1 -1
  63. package/ScatterChart/formatter.d.ts +2 -2
  64. package/ScatterChart/getColor.d.ts +3 -4
  65. package/ScatterChart/getColor.js +4 -3
  66. package/ScatterChart/legend.d.ts +1 -1
  67. package/ScatterChart/plugin.d.ts +2 -2
  68. package/SparkLineChart/SparkLineChart.js +0 -2
  69. package/context/CartesianProvider/CartesianProvider.d.ts +0 -9
  70. package/context/CartesianProvider/CartesianProvider.js +4 -2
  71. package/context/CartesianProvider/computeValue.d.ts +3 -2
  72. package/context/CartesianProvider/computeValue.js +1 -1
  73. package/context/CartesianProvider/defaultizeAxis.d.ts +25 -26
  74. package/context/CartesianProvider/getAxisExtremum.d.ts +3 -3
  75. package/context/PluginProvider/ColorProcessor.types.d.ts +8 -0
  76. package/context/PluginProvider/ExtremumGetter.types.d.ts +14 -0
  77. package/context/PluginProvider/ExtremumGetter.types.js +5 -0
  78. package/context/PluginProvider/Plugin.types.d.ts +25 -0
  79. package/context/PluginProvider/Plugin.types.js +5 -0
  80. package/context/PluginProvider/PluginContext.d.ts +4 -0
  81. package/context/PluginProvider/PluginContext.js +21 -0
  82. package/context/PluginProvider/PluginProvider.d.ts +4 -0
  83. package/context/{ColorProvider.js → PluginProvider/PluginProvider.js} +12 -11
  84. package/context/PluginProvider/SeriesFormatter.types.d.ts +21 -0
  85. package/context/PluginProvider/SeriesFormatter.types.js +5 -0
  86. package/context/PluginProvider/index.d.ts +10 -0
  87. package/context/PluginProvider/index.js +115 -0
  88. package/context/PluginProvider/mergePlugins.d.ts +36 -0
  89. package/context/PluginProvider/mergePlugins.js +37 -0
  90. package/context/PluginProvider/useColorProcessor.d.ts +4 -0
  91. package/context/PluginProvider/useColorProcessor.js +23 -0
  92. package/context/PluginProvider/useSeriesFormatter.d.ts +4 -0
  93. package/context/PluginProvider/useSeriesFormatter.js +23 -0
  94. package/context/PluginProvider/useXExtremumGetter.d.ts +4 -0
  95. package/context/PluginProvider/useXExtremumGetter.js +23 -0
  96. package/context/PluginProvider/useYExtremumGetter.d.ts +4 -0
  97. package/context/PluginProvider/useYExtremumGetter.js +23 -0
  98. package/context/SeriesProvider/Series.types.d.ts +26 -0
  99. package/context/SeriesProvider/Series.types.js +5 -0
  100. package/context/SeriesProvider/SeriesContext.d.ts +4 -0
  101. package/{hooks/useColor.js → context/SeriesProvider/SeriesContext.js} +7 -8
  102. package/context/SeriesProvider/SeriesProvider.d.ts +5 -0
  103. package/context/SeriesProvider/SeriesProvider.js +38 -0
  104. package/context/SeriesProvider/index.d.ts +12 -0
  105. package/context/SeriesProvider/index.js +49 -0
  106. package/context/SeriesProvider/processSeries.d.ts +18 -0
  107. package/context/SeriesProvider/processSeries.js +55 -0
  108. package/esm/BarChart/BarChart.js +0 -2
  109. package/esm/BarChart/BarElement.js +2 -2
  110. package/esm/BarChart/BarLabel/BarLabelItem.js +1 -1
  111. package/esm/BarChart/BarPlot.js +1 -2
  112. package/esm/BarChart/formatter.js +1 -1
  113. package/esm/BarChart/getColor.js +3 -2
  114. package/esm/ChartContainer/ChartContainer.js +7 -9
  115. package/esm/ChartContainer/useChartContainerProps.js +14 -19
  116. package/esm/ChartsLegend/ChartsLegend.js +2 -2
  117. package/esm/ChartsLegend/LegendPerItem.js +1 -1
  118. package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +2 -2
  119. package/esm/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
  120. package/esm/ChartsTooltip/ChartsTooltip.js +3 -3
  121. package/esm/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
  122. package/esm/ChartsXAxis/ChartsXAxis.js +2 -2
  123. package/esm/ChartsYAxis/ChartsYAxis.js +2 -2
  124. package/esm/Gauge/GaugeReferenceArc.js +1 -1
  125. package/esm/Gauge/GaugeValueArc.js +1 -1
  126. package/esm/LineChart/AnimatedArea.js +1 -1
  127. package/esm/LineChart/AnimatedLine.js +1 -1
  128. package/esm/LineChart/AreaElement.js +1 -1
  129. package/esm/LineChart/AreaPlot.js +1 -1
  130. package/esm/LineChart/LineChart.js +0 -2
  131. package/esm/LineChart/LineElement.js +1 -1
  132. package/esm/LineChart/LinePlot.js +1 -1
  133. package/esm/LineChart/MarkElement.js +1 -1
  134. package/esm/LineChart/formatter.js +1 -1
  135. package/esm/LineChart/getColor.js +3 -2
  136. package/esm/PieChart/PieArc.js +1 -1
  137. package/esm/PieChart/PieArcLabel.js +1 -1
  138. package/esm/PieChart/PieChart.js +0 -2
  139. package/esm/PieChart/formatter.js +1 -1
  140. package/esm/PieChart/getColor.js +3 -2
  141. package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +0 -2
  142. package/esm/ScatterChart/ScatterChart.js +0 -2
  143. package/esm/ScatterChart/getColor.js +3 -2
  144. package/esm/SparkLineChart/SparkLineChart.js +0 -2
  145. package/esm/context/CartesianProvider/CartesianProvider.js +4 -2
  146. package/esm/context/CartesianProvider/computeValue.js +1 -1
  147. package/esm/context/PluginProvider/Plugin.types.js +1 -0
  148. package/esm/context/PluginProvider/PluginContext.js +13 -0
  149. package/esm/context/PluginProvider/PluginProvider.js +19 -0
  150. package/esm/context/PluginProvider/SeriesFormatter.types.js +1 -0
  151. package/esm/context/PluginProvider/index.js +10 -0
  152. package/esm/context/PluginProvider/mergePlugins.js +30 -0
  153. package/esm/context/PluginProvider/useColorProcessor.js +15 -0
  154. package/esm/context/PluginProvider/useSeriesFormatter.js +15 -0
  155. package/esm/context/PluginProvider/useXExtremumGetter.js +15 -0
  156. package/esm/context/PluginProvider/useYExtremumGetter.js +15 -0
  157. package/esm/context/SeriesProvider/Series.types.js +1 -0
  158. package/esm/context/SeriesProvider/SeriesContext.js +8 -0
  159. package/esm/context/SeriesProvider/SeriesProvider.js +31 -0
  160. package/esm/context/SeriesProvider/index.js +8 -0
  161. package/{modern/context/SeriesContextProvider.js → esm/context/SeriesProvider/processSeries.js} +9 -34
  162. package/esm/hooks/useReducedMotion.js +2 -2
  163. package/esm/hooks/useSeries.js +1 -1
  164. package/esm/internals/colorScale.js +1 -1
  165. package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +1 -1
  166. package/esm/internals/getCurve.js +1 -1
  167. package/esm/internals/getScale.js +1 -1
  168. package/esm/internals/index.js +2 -2
  169. package/esm/internals/stackSeries.js +1 -1
  170. package/esm/internals/useAnimatedPath.js +1 -1
  171. package/esm/models/index.js +0 -1
  172. package/hooks/useReducedMotion.js +2 -2
  173. package/hooks/useSeries.d.ts +1 -1
  174. package/hooks/useSeries.js +2 -2
  175. package/hooks/useTicks.d.ts +1 -1
  176. package/index.js +1 -1
  177. package/internals/colorScale.d.ts +3 -3
  178. package/internals/colorScale.js +1 -1
  179. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +1 -1
  180. package/internals/defaultizeColor.d.ts +1 -1
  181. package/internals/getCurve.d.ts +1 -1
  182. package/internals/getCurve.js +1 -1
  183. package/internals/getScale.js +1 -1
  184. package/internals/index.d.ts +2 -2
  185. package/internals/index.js +16 -16
  186. package/internals/isBandScale.d.ts +1 -1
  187. package/internals/stackSeries.d.ts +1 -1
  188. package/internals/stackSeries.js +1 -1
  189. package/internals/useAnimatedPath.js +1 -1
  190. package/models/axis.d.ts +2 -2
  191. package/models/index.d.ts +0 -1
  192. package/models/index.js +0 -11
  193. package/models/seriesType/config.d.ts +0 -26
  194. package/models/seriesType/pie.d.ts +1 -1
  195. package/models/z-axis.d.ts +1 -1
  196. package/modern/BarChart/BarChart.js +0 -2
  197. package/modern/BarChart/BarElement.js +2 -2
  198. package/modern/BarChart/BarLabel/BarLabelItem.js +1 -1
  199. package/modern/BarChart/BarPlot.js +1 -2
  200. package/modern/BarChart/formatter.js +1 -1
  201. package/modern/BarChart/getColor.js +3 -2
  202. package/modern/ChartContainer/ChartContainer.js +7 -9
  203. package/modern/ChartContainer/useChartContainerProps.js +14 -19
  204. package/modern/ChartsLegend/ChartsLegend.js +2 -2
  205. package/modern/ChartsLegend/LegendPerItem.js +1 -1
  206. package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +2 -2
  207. package/modern/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
  208. package/modern/ChartsTooltip/ChartsTooltip.js +3 -3
  209. package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +1 -1
  210. package/modern/ChartsXAxis/ChartsXAxis.js +2 -2
  211. package/modern/ChartsYAxis/ChartsYAxis.js +2 -2
  212. package/modern/Gauge/GaugeReferenceArc.js +1 -1
  213. package/modern/Gauge/GaugeValueArc.js +1 -1
  214. package/modern/LineChart/AnimatedArea.js +1 -1
  215. package/modern/LineChart/AnimatedLine.js +1 -1
  216. package/modern/LineChart/AreaElement.js +1 -1
  217. package/modern/LineChart/AreaPlot.js +1 -1
  218. package/modern/LineChart/LineChart.js +0 -2
  219. package/modern/LineChart/LineElement.js +1 -1
  220. package/modern/LineChart/LinePlot.js +1 -1
  221. package/modern/LineChart/MarkElement.js +1 -1
  222. package/modern/LineChart/formatter.js +1 -1
  223. package/modern/LineChart/getColor.js +3 -2
  224. package/modern/PieChart/PieArc.js +1 -1
  225. package/modern/PieChart/PieArcLabel.js +1 -1
  226. package/modern/PieChart/PieChart.js +0 -2
  227. package/modern/PieChart/formatter.js +1 -1
  228. package/modern/PieChart/getColor.js +3 -2
  229. package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +0 -2
  230. package/modern/ScatterChart/ScatterChart.js +0 -2
  231. package/modern/ScatterChart/getColor.js +3 -2
  232. package/modern/SparkLineChart/SparkLineChart.js +0 -2
  233. package/modern/context/CartesianProvider/CartesianProvider.js +4 -2
  234. package/modern/context/CartesianProvider/computeValue.js +1 -1
  235. package/modern/context/PluginProvider/ColorProcessor.types.js +1 -0
  236. package/modern/context/PluginProvider/ExtremumGetter.types.js +1 -0
  237. package/modern/context/PluginProvider/Plugin.types.js +1 -0
  238. package/modern/context/PluginProvider/PluginContext.js +13 -0
  239. package/modern/context/PluginProvider/PluginProvider.js +19 -0
  240. package/modern/context/PluginProvider/SeriesFormatter.types.js +1 -0
  241. package/modern/context/PluginProvider/index.js +10 -0
  242. package/modern/context/PluginProvider/mergePlugins.js +30 -0
  243. package/modern/context/PluginProvider/useColorProcessor.js +15 -0
  244. package/modern/context/PluginProvider/useSeriesFormatter.js +15 -0
  245. package/modern/context/PluginProvider/useXExtremumGetter.js +15 -0
  246. package/modern/context/PluginProvider/useYExtremumGetter.js +15 -0
  247. package/modern/context/SeriesProvider/Series.types.js +1 -0
  248. package/modern/context/SeriesProvider/SeriesContext.js +8 -0
  249. package/modern/context/SeriesProvider/SeriesProvider.js +31 -0
  250. package/modern/context/SeriesProvider/index.js +8 -0
  251. package/{esm/context/SeriesContextProvider.js → modern/context/SeriesProvider/processSeries.js} +9 -34
  252. package/modern/hooks/useReducedMotion.js +2 -2
  253. package/modern/hooks/useSeries.js +1 -1
  254. package/modern/index.js +1 -1
  255. package/modern/internals/colorScale.js +1 -1
  256. package/modern/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +1 -1
  257. package/modern/internals/getCurve.js +1 -1
  258. package/modern/internals/getScale.js +1 -1
  259. package/modern/internals/index.js +2 -2
  260. package/modern/internals/stackSeries.js +1 -1
  261. package/modern/internals/useAnimatedPath.js +1 -1
  262. package/modern/models/index.js +0 -1
  263. package/package.json +6 -23
  264. package/ChartContainer/defaultPlugins.d.ts +0 -2
  265. package/ChartContainer/defaultPlugins.js +0 -11
  266. package/ChartContainer/useChartContainerHooks.d.ts +0 -11
  267. package/ChartContainer/useChartContainerHooks.js +0 -34
  268. package/ChartContainer/usePluginsMerge.d.ts +0 -9
  269. package/ChartContainer/usePluginsMerge.js +0 -39
  270. package/context/ColorProvider.d.ts +0 -12
  271. package/context/SeriesContextProvider.d.ts +0 -36
  272. package/context/SeriesContextProvider.js +0 -81
  273. package/esm/ChartContainer/defaultPlugins.js +0 -5
  274. package/esm/ChartContainer/useChartContainerHooks.js +0 -24
  275. package/esm/ChartContainer/usePluginsMerge.js +0 -31
  276. package/esm/context/ColorProvider.js +0 -16
  277. package/esm/hooks/useColor.js +0 -9
  278. package/hooks/useColor.d.ts +0 -4
  279. package/models/plugin.d.ts +0 -19
  280. package/modern/ChartContainer/defaultPlugins.js +0 -5
  281. package/modern/ChartContainer/useChartContainerHooks.js +0 -24
  282. package/modern/ChartContainer/usePluginsMerge.js +0 -31
  283. package/modern/context/ColorProvider.js +0 -16
  284. package/modern/hooks/useColor.js +0 -9
  285. /package/{models/plugin.js → context/PluginProvider/ColorProcessor.types.js} +0 -0
  286. /package/esm/{models/plugin.js → context/PluginProvider/ColorProcessor.types.js} +0 -0
  287. /package/{modern/models/plugin.js → esm/context/PluginProvider/ExtremumGetter.types.js} +0 -0
@@ -17,10 +17,10 @@ export * from './getSVGPoint';
17
17
  export * from './isDefined';
18
18
  export * from '../context/CartesianProvider';
19
19
  export * from '../context/DrawingProvider';
20
- export * from '../context/ColorProvider';
21
20
  export * from '../context/InteractionProvider';
22
- export * from '../context/SeriesContextProvider';
21
+ export * from '../context/SeriesProvider';
23
22
  export * from '../context/ZAxisContextProvider';
23
+ export * from '../context/PluginProvider';
24
24
  export type * from '../context/context.types';
25
25
  export * from '../models/seriesType/config';
26
26
  export * from '../models/seriesType/common';
@@ -197,18 +197,6 @@ Object.keys(_DrawingProvider).forEach(function (key) {
197
197
  }
198
198
  });
199
199
  });
200
- var _ColorProvider = require("../context/ColorProvider");
201
- Object.keys(_ColorProvider).forEach(function (key) {
202
- if (key === "default" || key === "__esModule") return;
203
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
204
- if (key in exports && exports[key] === _ColorProvider[key]) return;
205
- Object.defineProperty(exports, key, {
206
- enumerable: true,
207
- get: function () {
208
- return _ColorProvider[key];
209
- }
210
- });
211
- });
212
200
  var _InteractionProvider = require("../context/InteractionProvider");
213
201
  Object.keys(_InteractionProvider).forEach(function (key) {
214
202
  if (key === "default" || key === "__esModule") return;
@@ -221,15 +209,15 @@ Object.keys(_InteractionProvider).forEach(function (key) {
221
209
  }
222
210
  });
223
211
  });
224
- var _SeriesContextProvider = require("../context/SeriesContextProvider");
225
- Object.keys(_SeriesContextProvider).forEach(function (key) {
212
+ var _SeriesProvider = require("../context/SeriesProvider");
213
+ Object.keys(_SeriesProvider).forEach(function (key) {
226
214
  if (key === "default" || key === "__esModule") return;
227
215
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
228
- if (key in exports && exports[key] === _SeriesContextProvider[key]) return;
216
+ if (key in exports && exports[key] === _SeriesProvider[key]) return;
229
217
  Object.defineProperty(exports, key, {
230
218
  enumerable: true,
231
219
  get: function () {
232
- return _SeriesContextProvider[key];
220
+ return _SeriesProvider[key];
233
221
  }
234
222
  });
235
223
  });
@@ -245,6 +233,18 @@ Object.keys(_ZAxisContextProvider).forEach(function (key) {
245
233
  }
246
234
  });
247
235
  });
236
+ var _PluginProvider = require("../context/PluginProvider");
237
+ Object.keys(_PluginProvider).forEach(function (key) {
238
+ if (key === "default" || key === "__esModule") return;
239
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
240
+ if (key in exports && exports[key] === _PluginProvider[key]) return;
241
+ Object.defineProperty(exports, key, {
242
+ enumerable: true,
243
+ get: function () {
244
+ return _PluginProvider[key];
245
+ }
246
+ });
247
+ });
248
248
  var _config = require("../models/seriesType/config");
249
249
  Object.keys(_config).forEach(function (key) {
250
250
  if (key === "default" || key === "__esModule") return;
@@ -1,4 +1,4 @@
1
- import type { ScaleBand, ScalePoint } from 'd3-scale';
1
+ import type { ScaleBand, ScalePoint } from '@mui/x-charts-vendor/d3-scale';
2
2
  import { D3Scale } from '../models/axis';
3
3
  export declare function isBandScale<T extends {
4
4
  toString(): string;
@@ -1,4 +1,4 @@
1
- import { Series } from 'd3-shape';
1
+ import { Series } from '@mui/x-charts-vendor/d3-shape';
2
2
  import type { BarSeriesType, LineSeriesType } from '../models/seriesType';
3
3
  import type { StackOffsetType, StackOrderType } from '../models/stacking';
4
4
  import { SeriesId } from '../models/seriesType/common';
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getStackingGroups = exports.StackOrder = exports.StackOffset = void 0;
7
- var _d3Shape = require("d3-shape");
7
+ var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
8
8
  const StackOrder = exports.StackOrder = {
9
9
  /**
10
10
  * Series order such that the earliest series (according to the maximum value) is at the bottom.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useAnimatedPath = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _d3Interpolate = require("d3-interpolate");
8
+ var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
9
9
  var _web = require("@react-spring/web");
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
package/models/axis.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ScaleBand, ScaleLogarithmic, ScalePower, ScaleTime, ScaleLinear, ScalePoint, ScaleOrdinal, ScaleSequential, ScaleThreshold } from 'd3-scale';
1
+ import type { ScaleBand, ScaleLogarithmic, ScalePower, ScaleTime, ScaleLinear, ScalePoint, ScaleOrdinal, ScaleSequential, ScaleThreshold } from '@mui/x-charts-vendor/d3-scale';
2
2
  import { ChartsAxisClasses } from '../ChartsAxis/axisClasses';
3
3
  import type { TickParams } from '../hooks/useTicks';
4
4
  import { ChartsTextProps } from '../ChartsText';
@@ -254,7 +254,7 @@ export type AxisConfig<S extends ScaleName = ScaleName, V = any, AxisProps = Cha
254
254
  * If `true`, Reverse the axis scaleBand.
255
255
  */
256
256
  reverse?: boolean;
257
- } & Partial<AxisProps> & Partial<Omit<AxisScaleConfig[S], 'scale'>> & TickParams & AxisConfigExtension;
257
+ } & Omit<Partial<AxisProps>, 'axisId'> & Partial<Omit<AxisScaleConfig[S], 'scale'>> & TickParams & AxisConfigExtension;
258
258
  export interface AxisConfigExtension {
259
259
  }
260
260
  export type AxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisProps = ChartsXAxisProps | ChartsYAxisProps> = Omit<AxisConfig<S, V, AxisProps>, 'scaleType'> & AxisScaleConfig[S] & AxisScaleComputedConfig[S] & {
package/models/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './seriesType';
2
2
  export * from './layout';
3
3
  export * from './stacking';
4
- export * from './plugin';
5
4
  export type { AxisConfig, ChartsYAxisProps, ChartsXAxisProps, ScaleName, ContinuousScaleName, } from './axis';
package/models/index.js CHANGED
@@ -35,15 +35,4 @@ Object.keys(_stacking).forEach(function (key) {
35
35
  return _stacking[key];
36
36
  }
37
37
  });
38
- });
39
- var _plugin = require("./plugin");
40
- Object.keys(_plugin).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _plugin[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _plugin[key];
47
- }
48
- });
49
38
  });
@@ -2,11 +2,7 @@ import { ScatterSeriesType, DefaultizedScatterSeriesType, ScatterItemIdentifier
2
2
  import { LineSeriesType, DefaultizedLineSeriesType, LineItemIdentifier } from './line';
3
3
  import { BarItemIdentifier, BarSeriesType, DefaultizedBarSeriesType } from './bar';
4
4
  import { PieSeriesType, DefaultizedPieSeriesType, PieItemIdentifier, PieValueType } from './pie';
5
- import { AxisConfig } from '../axis';
6
5
  import { DefaultizedProps, MakeOptional } from '../helpers';
7
- import { StackingGroupsType } from '../../internals/stackSeries';
8
- import { SeriesId } from './common';
9
- import { LegendItemParams } from '../../ChartsLegend/chartsLegend.types';
10
6
  export interface ChartsSeriesConfig {
11
7
  bar: {
12
8
  /**
@@ -79,29 +75,7 @@ export type ChartSeriesDefaultized<T extends ChartSeriesType> = ChartsSeriesConf
79
75
  stackedData: [number, number][];
80
76
  } : ChartsSeriesConfig[T]['series'];
81
77
  export type ChartItemIdentifier<T extends ChartSeriesType> = ChartsSeriesConfig[T]['itemIdentifier'];
82
- type ExtremumGetterParams<T extends ChartSeriesType> = {
83
- series: Record<SeriesId, ChartSeries<T>>;
84
- axis: AxisConfig;
85
- isDefaultAxis: boolean;
86
- };
87
- export type ExtremumGetterResult = [number, number] | [null, null];
88
- export type ExtremumGetter<T extends ChartSeriesType> = (params: ExtremumGetterParams<T>) => ExtremumGetterResult;
89
- export type FormatterParams<T extends ChartSeriesType> = {
90
- series: Record<SeriesId, ChartsSeriesConfig[T]['seriesInput']>;
91
- seriesOrder: SeriesId[];
92
- };
93
- export type FormatterResult<T extends ChartSeriesType> = {
94
- series: Record<SeriesId, ChartSeriesDefaultized<T>>;
95
- seriesOrder: SeriesId[];
96
- } & (ChartsSeriesConfig[T] extends {
97
- canBeStacked: true;
98
- } ? {
99
- stackingGroups: StackingGroupsType;
100
- } : {});
101
78
  export type DatasetElementType<T> = {
102
79
  [key: string]: T;
103
80
  };
104
81
  export type DatasetType<T = number | string | Date | null | undefined> = DatasetElementType<T>[];
105
- export type Formatter<T extends ChartSeriesType> = (params: FormatterParams<T>, dataset?: DatasetType) => FormatterResult<T>;
106
- export type LegendGetter<T extends ChartSeriesType> = (series: FormatterResult<T>) => LegendItemParams[];
107
- export {};
@@ -1,4 +1,4 @@
1
- import { PieArcDatum as D3PieArcDatum } from 'd3-shape';
1
+ import { PieArcDatum as D3PieArcDatum } from '@mui/x-charts-vendor/d3-shape';
2
2
  import { DefaultizedProps } from '../helpers';
3
3
  import { CommonDefaultizedProps, CommonSeriesType, SeriesId } from './common';
4
4
  export type PieItemId = string | number;
@@ -1,4 +1,4 @@
1
- import type { ScaleOrdinal, ScaleSequential, ScaleThreshold } from 'd3-scale';
1
+ import type { ScaleOrdinal, ScaleSequential, ScaleThreshold } from '@mui/x-charts-vendor/d3-scale';
2
2
  import { ContinuousColorConfig, OrdinalColorConfig, PiecewiseColorConfig } from './colorMapping';
3
3
  export interface ZAxisConfig<V = any> {
4
4
  id: string;
@@ -239,7 +239,6 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
239
239
  * An array of [[AxisConfig]] objects.
240
240
  */
241
241
  xAxis: PropTypes.arrayOf(PropTypes.shape({
242
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
243
242
  classes: PropTypes.object,
244
243
  colorMap: PropTypes.oneOfType([PropTypes.shape({
245
244
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -292,7 +291,6 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
292
291
  * An array of [[AxisConfig]] objects.
293
292
  */
294
293
  yAxis: PropTypes.arrayOf(PropTypes.shape({
295
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
296
294
  classes: PropTypes.object,
297
295
  colorMap: PropTypes.oneOfType([PropTypes.shape({
298
296
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -4,11 +4,11 @@ const _excluded = ["id", "dataIndex", "classes", "color", "slots", "slotProps",
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import composeClasses from '@mui/utils/composeClasses';
7
- import { useSlotProps } from '@mui/base/utils';
7
+ import useSlotProps from '@mui/utils/useSlotProps';
8
8
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
9
9
  import { styled } from '@mui/material/styles';
10
- import { color as d3Color } from 'd3-color';
11
10
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
11
+ import { color as d3Color } from '@mui/x-charts-vendor/d3-color';
12
12
  import { animated } from '@react-spring/web';
13
13
  import { useInteractionItemProps } from '../hooks/useInteractionItemProps';
14
14
  import { useItemHighlighted } from '../context';
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["seriesId", "classes", "color", "style", "dataIndex", "barLabel", "slots", "slotProps", "height", "width", "value"],
4
4
  _excluded2 = ["ownerState"];
5
5
  import * as React from 'react';
6
- import { useSlotProps } from '@mui/base/utils';
6
+ import useSlotProps from '@mui/utils/useSlotProps';
7
7
  import PropTypes from 'prop-types';
8
8
  import { useUtilityClasses } from './barLabelClasses';
9
9
  import { getBarLabel } from './getBarLabel';
@@ -12,7 +12,7 @@ import { BarClipPath } from './BarClipPath';
12
12
  import { BarLabelPlot } from './BarLabel/BarLabelPlot';
13
13
  import { checkScaleErrors } from './checkScaleErrors';
14
14
  import { useBarSeries } from '../hooks/useSeries';
15
-
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  /**
17
17
  * Solution of the equations
18
18
  * W = barWidth * N + offset * (N-1)
@@ -22,7 +22,6 @@ import { useBarSeries } from '../hooks/useSeries';
22
22
  * @param gapRatio The ratio of the gap between bars over the bar width.
23
23
  * @returns The bar width and the offset between bars.
24
24
  */
25
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  function getBandSize({
27
26
  bandWidth: W,
28
27
  numberOfGroups: N,
@@ -1,5 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { stack as d3Stack } from 'd3-shape';
2
+ import { stack as d3Stack } from '@mui/x-charts-vendor/d3-shape';
3
3
  import { getStackingGroups } from '../internals/stackSeries';
4
4
  import { defaultizeValueFormatter } from '../internals/defaultizeValueFormatter';
5
5
  let warnOnce = false;
@@ -1,4 +1,4 @@
1
- export default function getColor(series, xAxis, yAxis) {
1
+ const getColor = (series, xAxis, yAxis) => {
2
2
  const verticalLayout = series.layout === 'vertical';
3
3
  const bandColorScale = verticalLayout ? xAxis?.colorScale : yAxis?.colorScale;
4
4
  const valueColorScale = verticalLayout ? yAxis?.colorScale : xAxis?.colorScale;
@@ -24,4 +24,5 @@ export default function getColor(series, xAxis, yAxis) {
24
24
  };
25
25
  }
26
26
  return () => series.color;
27
- }
27
+ };
28
+ export default getColor;
@@ -2,29 +2,29 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { DrawingProvider } from '../context/DrawingProvider';
5
- import { SeriesContextProvider } from '../context/SeriesContextProvider';
5
+ import { SeriesProvider } from '../context/SeriesProvider';
6
6
  import { InteractionProvider } from '../context/InteractionProvider';
7
- import { ColorProvider } from '../context/ColorProvider';
8
7
  import { ChartsSurface } from '../ChartsSurface';
9
8
  import { CartesianContextProvider } from '../context/CartesianProvider';
10
9
  import { ChartsAxesGradients } from '../internals/components/ChartsAxesGradients';
11
10
  import { HighlightedProvider, ZAxisContextProvider } from '../context';
11
+ import { PluginProvider } from '../context/PluginProvider';
12
12
  import { useChartContainerProps } from './useChartContainerProps';
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const ChartContainer = /*#__PURE__*/React.forwardRef(function ChartContainer(props, ref) {
15
15
  const {
16
16
  children,
17
17
  drawingProviderProps,
18
- colorProviderProps,
19
- seriesContextProps,
18
+ seriesProviderProps,
20
19
  cartesianContextProps,
21
20
  zAxisContextProps,
22
21
  highlightedProviderProps,
23
- chartsSurfaceProps
22
+ chartsSurfaceProps,
23
+ pluginProviderProps
24
24
  } = useChartContainerProps(props, ref);
25
25
  return /*#__PURE__*/_jsx(DrawingProvider, _extends({}, drawingProviderProps, {
26
- children: /*#__PURE__*/_jsx(ColorProvider, _extends({}, colorProviderProps, {
27
- children: /*#__PURE__*/_jsx(SeriesContextProvider, _extends({}, seriesContextProps, {
26
+ children: /*#__PURE__*/_jsx(PluginProvider, _extends({}, pluginProviderProps, {
27
+ children: /*#__PURE__*/_jsx(SeriesProvider, _extends({}, seriesProviderProps, {
28
28
  children: /*#__PURE__*/_jsx(CartesianContextProvider, _extends({}, cartesianContextProps, {
29
29
  children: /*#__PURE__*/_jsx(ZAxisContextProvider, _extends({}, zAxisContextProps, {
30
30
  children: /*#__PURE__*/_jsx(InteractionProvider, {
@@ -121,7 +121,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
121
121
  * An array of [[AxisConfig]] objects.
122
122
  */
123
123
  xAxis: PropTypes.arrayOf(PropTypes.shape({
124
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
125
124
  classes: PropTypes.object,
126
125
  colorMap: PropTypes.oneOfType([PropTypes.shape({
127
126
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -174,7 +173,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
174
173
  * An array of [[AxisConfig]] objects.
175
174
  */
176
175
  yAxis: PropTypes.arrayOf(PropTypes.shape({
177
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
178
176
  classes: PropTypes.object,
179
177
  colorMap: PropTypes.oneOfType([PropTypes.shape({
180
178
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -1,8 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["width", "height", "series", "margin", "xAxis", "yAxis", "zAxis", "colors", "dataset", "sx", "title", "desc", "disableAxisListener", "highlightedItem", "onHighlightChange", "plugins", "children"];
4
- import { useChartContainerHooks } from './useChartContainerHooks';
4
+ import * as React from 'react';
5
+ import useForkRef from '@mui/utils/useForkRef';
5
6
  import { useDefaultizeAxis } from './useDefaultizeAxis';
7
+ import { useReducedMotion } from '../hooks/useReducedMotion';
6
8
  export const useChartContainerProps = (props, ref) => {
7
9
  const {
8
10
  width,
@@ -24,14 +26,10 @@ export const useChartContainerProps = (props, ref) => {
24
26
  children
25
27
  } = props,
26
28
  other = _objectWithoutPropertiesLoose(props, _excluded);
27
- const {
28
- svgRef,
29
- chartSurfaceRef,
30
- xExtremumGetters,
31
- yExtremumGetters,
32
- seriesFormatters,
33
- colorProcessors
34
- } = useChartContainerHooks(ref, plugins);
29
+ const svgRef = React.useRef(null);
30
+ const chartSurfaceRef = useForkRef(ref, svgRef);
31
+ useReducedMotion(); // a11y reduce motion (see: https://react-spring.dev/docs/utilities/use-reduced-motion)
32
+
35
33
  const [defaultizedXAxis, defaultizedYAxis] = useDefaultizeAxis(xAxis, yAxis);
36
34
  const drawingProviderProps = {
37
35
  width,
@@ -39,21 +37,18 @@ export const useChartContainerProps = (props, ref) => {
39
37
  margin,
40
38
  svgRef
41
39
  };
42
- const colorProviderProps = {
43
- colorProcessors
40
+ const pluginProviderProps = {
41
+ plugins
44
42
  };
45
- const seriesContextProps = {
43
+ const seriesProviderProps = {
46
44
  series,
47
45
  colors,
48
- dataset,
49
- seriesFormatters
46
+ dataset
50
47
  };
51
48
  const cartesianContextProps = {
52
49
  xAxis: defaultizedXAxis,
53
50
  yAxis: defaultizedYAxis,
54
- dataset,
55
- xExtremumGetters,
56
- yExtremumGetters
51
+ dataset
57
52
  };
58
53
  const zAxisContextProps = {
59
54
  zAxis,
@@ -75,12 +70,12 @@ export const useChartContainerProps = (props, ref) => {
75
70
  return {
76
71
  children,
77
72
  drawingProviderProps,
78
- colorProviderProps,
79
- seriesContextProps,
73
+ seriesProviderProps,
80
74
  cartesianContextProps,
81
75
  zAxisContextProps,
82
76
  highlightedProviderProps,
83
77
  chartsSurfaceProps,
78
+ pluginProviderProps,
84
79
  xAxis: defaultizedXAxis,
85
80
  yAxis: defaultizedYAxis
86
81
  };
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { useSlotProps } from '@mui/base/utils';
5
- import { unstable_composeClasses as composeClasses } from '@mui/utils';
4
+ import useSlotProps from '@mui/utils/useSlotProps';
5
+ import composeClasses from '@mui/utils/composeClasses';
6
6
  import { useThemeProps, useTheme } from '@mui/material/styles';
7
7
  import { getSeriesToDisplay } from './utils';
8
8
  import { getLegendUtilityClass } from './chartsLegendClasses';
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["rotate", "dominantBaseline"];
4
4
  import * as React from 'react';
5
- import { NoSsr } from '@mui/base/NoSsr';
5
+ import NoSsr from '@mui/material/NoSsr';
6
6
  import { useTheme, styled } from '@mui/material/styles';
7
7
  import { ChartsText } from '../ChartsText';
8
8
  import { getWordsByLines } from '../internals/getWordsByLines';
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { useSlotProps } from '@mui/base/utils';
3
+ import useSlotProps from '@mui/utils/useSlotProps';
4
4
  import { useCartesianContext } from '../context/CartesianProvider';
5
5
  import { DefaultChartsAxisTooltipContent } from './DefaultChartsAxisTooltipContent';
6
6
  import { ZAxisContext } from '../context/ZAxisContextProvider';
7
- import { useColorProcessor } from '../hooks/useColor';
7
+ import { useColorProcessor } from '../context/PluginProvider/useColorProcessor';
8
8
  import { isCartesianSeriesType } from '../internals/isCartesian';
9
9
  import { useSeries } from '../hooks/useSeries';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { useSlotProps } from '@mui/base/utils';
3
+ import useSlotProps from '@mui/utils/useSlotProps';
4
4
  import { DefaultChartsItemTooltipContent } from './DefaultChartsItemTooltipContent';
5
5
  import { useCartesianContext } from '../context/CartesianProvider';
6
6
  import { ZAxisContext } from '../context/ZAxisContextProvider';
7
- import { useColorProcessor } from '../hooks/useColor';
7
+ import { useColorProcessor } from '../context/PluginProvider/useColorProcessor';
8
8
  import { useSeries } from '../hooks/useSeries';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  /**
@@ -3,9 +3,9 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import composeClasses from '@mui/utils/composeClasses';
5
5
  import { styled, useThemeProps } from '@mui/material/styles';
6
- import { Popper } from '@mui/base/Popper';
7
- import { NoSsr } from '@mui/base/NoSsr';
8
- import { useSlotProps } from '@mui/base/utils';
6
+ import Popper from '@mui/material/Popper';
7
+ import NoSsr from '@mui/material/NoSsr';
8
+ import useSlotProps from '@mui/utils/useSlotProps';
9
9
  import { InteractionContext } from '../context/InteractionProvider';
10
10
  import { generateVirtualElement, useMouseTracker, getTooltipHasData } from './utils';
11
11
  import { ChartsItemTooltipContent } from './ChartsItemTooltipContent';
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Delaunay } from 'd3-delaunay';
3
+ import { Delaunay } from '@mui/x-charts-vendor/d3-delaunay';
4
4
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
5
5
  import { InteractionContext } from '../context/InteractionProvider';
6
6
  import { useCartesianContext } from '../context/CartesianProvider';
@@ -3,8 +3,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["scale", "tickNumber", "reverse"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { useSlotProps } from '@mui/base/utils';
7
- import { unstable_composeClasses as composeClasses } from '@mui/utils';
6
+ import useSlotProps from '@mui/utils/useSlotProps';
7
+ import composeClasses from '@mui/utils/composeClasses';
8
8
  import { useThemeProps, useTheme } from '@mui/material/styles';
9
9
  import { useCartesianContext } from '../context/CartesianProvider';
10
10
  import { useTicks } from '../hooks/useTicks';
@@ -3,8 +3,8 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["scale", "tickNumber"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { useSlotProps } from '@mui/base/utils';
7
- import { unstable_composeClasses as composeClasses } from '@mui/utils';
6
+ import useSlotProps from '@mui/utils/useSlotProps';
7
+ import composeClasses from '@mui/utils/composeClasses';
8
8
  import { useThemeProps, useTheme } from '@mui/material/styles';
9
9
  import { useCartesianContext } from '../context/CartesianProvider';
10
10
  import { useTicks } from '../hooks/useTicks';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { arc as d3Arc } from 'd3-shape';
3
+ import { arc as d3Arc } from '@mui/x-charts-vendor/d3-shape';
4
4
  import { styled } from '@mui/material/styles';
5
5
  import { useGaugeState } from './GaugeProvider';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { arc as d3Arc } from 'd3-shape';
3
+ import { arc as d3Arc } from '@mui/x-charts-vendor/d3-shape';
4
4
  import { styled } from '@mui/material/styles';
5
5
  import { useGaugeState } from './GaugeProvider';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -4,8 +4,8 @@ const _excluded = ["d", "skipAnimation", "ownerState"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { styled } from '@mui/material/styles';
7
- import { color as d3Color } from 'd3-color';
8
7
  import { animated, useSpring } from '@react-spring/web';
8
+ import { color as d3Color } from '@mui/x-charts-vendor/d3-color';
9
9
  import { useAnimatedPath } from '../internals/useAnimatedPath';
10
10
  import { cleanId } from '../internals/cleanId';
11
11
  import { useChartId, useDrawingArea } from '../hooks';
@@ -4,7 +4,7 @@ const _excluded = ["d", "skipAnimation", "ownerState"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { animated, useSpring } from '@react-spring/web';
7
- import { color as d3Color } from 'd3-color';
7
+ import { color as d3Color } from '@mui/x-charts-vendor/d3-color';
8
8
  import { styled } from '@mui/material/styles';
9
9
  import { useAnimatedPath } from '../internals/useAnimatedPath';
10
10
  import { cleanId } from '../internals/cleanId';
@@ -4,7 +4,7 @@ const _excluded = ["id", "classes", "color", "gradientId", "slots", "slotProps",
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import composeClasses from '@mui/utils/composeClasses';
7
- import { useSlotProps } from '@mui/base/utils';
7
+ import useSlotProps from '@mui/utils/useSlotProps';
8
8
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
9
9
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
10
10
  import { useInteractionItemProps } from '../hooks/useInteractionItemProps';
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["slots", "slotProps", "onItemClick", "skipAnimation"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { area as d3Area } from 'd3-shape';
6
+ import { area as d3Area } from '@mui/x-charts-vendor/d3-shape';
7
7
  import { useCartesianContext } from '../context/CartesianProvider';
8
8
  import { AreaElement } from './AreaElement';
9
9
  import { getValueToPositionMapper } from '../hooks/useScale';
@@ -240,7 +240,6 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
240
240
  * An array of [[AxisConfig]] objects.
241
241
  */
242
242
  xAxis: PropTypes.arrayOf(PropTypes.shape({
243
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
244
243
  classes: PropTypes.object,
245
244
  colorMap: PropTypes.oneOfType([PropTypes.shape({
246
245
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -293,7 +292,6 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
293
292
  * An array of [[AxisConfig]] objects.
294
293
  */
295
294
  yAxis: PropTypes.arrayOf(PropTypes.shape({
296
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
297
295
  classes: PropTypes.object,
298
296
  colorMap: PropTypes.oneOfType([PropTypes.shape({
299
297
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -4,7 +4,7 @@ const _excluded = ["id", "classes", "color", "gradientId", "slots", "slotProps",
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import composeClasses from '@mui/utils/composeClasses';
7
- import { useSlotProps } from '@mui/base/utils';
7
+ import useSlotProps from '@mui/utils/useSlotProps';
8
8
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
9
9
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
10
10
  import { useInteractionItemProps } from '../hooks/useInteractionItemProps';
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { line as d3Line } from 'd3-shape';
6
+ import { line as d3Line } from '@mui/x-charts-vendor/d3-shape';
7
7
  import { useCartesianContext } from '../context/CartesianProvider';
8
8
  import { LineElement } from './LineElement';
9
9
  import { getValueToPositionMapper } from '../hooks/useScale';
@@ -7,7 +7,7 @@ import composeClasses from '@mui/utils/composeClasses';
7
7
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
8
8
  import { styled } from '@mui/material/styles';
9
9
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
10
- import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from 'd3-shape';
10
+ import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
11
11
  import { animated, to, useSpring } from '@react-spring/web';
12
12
  import { getSymbol } from '../internals/getSymbol';
13
13
  import { InteractionContext } from '../context/InteractionProvider';