@mui/x-charts-pro 8.0.0-alpha.9 → 8.0.0-beta.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 (452) hide show
  1. package/BarChartPro/BarChartPro.d.ts +4 -4
  2. package/BarChartPro/BarChartPro.js +240 -284
  3. package/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  4. package/BarChartPro/BarChartPro.plugins.js +9 -0
  5. package/BarChartPro/index.d.ts +1 -1
  6. package/BarChartPro/index.js +16 -1
  7. package/CHANGELOG.md +1523 -0
  8. package/ChartContainerPro/ChartContainerPro.d.ts +8 -9
  9. package/ChartContainerPro/ChartContainerPro.js +181 -174
  10. package/ChartContainerPro/index.d.ts +2 -1
  11. package/ChartContainerPro/index.js +17 -1
  12. package/ChartContainerPro/useChartContainerProProps.d.ts +5 -5
  13. package/ChartContainerPro/useChartContainerProProps.js +28 -19
  14. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +7 -7
  15. package/ChartDataProviderPro/ChartDataProviderPro.js +40 -220
  16. package/ChartDataProviderPro/index.d.ts +2 -1
  17. package/ChartDataProviderPro/index.js +17 -1
  18. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +7 -7
  19. package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -6
  20. package/FunnelChart/FunnelChart.d.ts +37 -0
  21. package/FunnelChart/FunnelChart.js +218 -0
  22. package/FunnelChart/FunnelPlot.d.ts +16 -0
  23. package/FunnelChart/FunnelPlot.js +191 -0
  24. package/FunnelChart/FunnelSection.d.ts +15 -0
  25. package/FunnelChart/FunnelSection.js +62 -0
  26. package/FunnelChart/categoryAxis.types.d.ts +24 -0
  27. package/FunnelChart/funnel.types.d.ts +124 -0
  28. package/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
  29. package/FunnelChart/funnelSectionClasses.d.ts +13 -0
  30. package/FunnelChart/funnelSectionClasses.js +28 -0
  31. package/FunnelChart/funnelSlots.types.d.ts +19 -0
  32. package/FunnelChart/funnelStepCurve.d.ts +4 -0
  33. package/FunnelChart/funnelStepCurve.js +74 -0
  34. package/FunnelChart/index.d.ts +7 -0
  35. package/FunnelChart/index.js +59 -0
  36. package/FunnelChart/labelUtils.d.ts +42 -0
  37. package/FunnelChart/labelUtils.js +174 -0
  38. package/FunnelChart/seriesConfig/extremums.d.ts +3 -0
  39. package/FunnelChart/seriesConfig/extremums.js +50 -0
  40. package/FunnelChart/seriesConfig/getColor.d.ts +3 -0
  41. package/FunnelChart/seriesConfig/getColor.js +10 -0
  42. package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  43. package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +18 -0
  44. package/FunnelChart/seriesConfig/index.d.ts +2 -0
  45. package/FunnelChart/seriesConfig/index.js +22 -0
  46. package/FunnelChart/seriesConfig/legend.d.ts +3 -0
  47. package/FunnelChart/seriesConfig/legend.js +31 -0
  48. package/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
  49. package/FunnelChart/seriesConfig/seriesProcessor.js +96 -0
  50. package/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
  51. package/FunnelChart/seriesConfig/tooltip.js +36 -0
  52. package/FunnelChart/useFunnelChartProps.d.ts +30 -0
  53. package/FunnelChart/useFunnelChartProps.js +168 -0
  54. package/Heatmap/Heatmap.d.ts +45 -45
  55. package/Heatmap/Heatmap.js +236 -244
  56. package/Heatmap/Heatmap.plugins.d.ts +3 -0
  57. package/Heatmap/Heatmap.plugins.js +8 -0
  58. package/Heatmap/HeatmapItem.d.ts +33 -33
  59. package/Heatmap/HeatmapItem.js +43 -36
  60. package/Heatmap/HeatmapPlot.d.ts +4 -5
  61. package/Heatmap/HeatmapPlot.js +22 -16
  62. package/Heatmap/HeatmapTooltip.d.ts +9 -2
  63. package/Heatmap/HeatmapTooltip.js +110 -90
  64. package/Heatmap/heatmapClasses.d.ts +7 -7
  65. package/Heatmap/heatmapClasses.js +15 -7
  66. package/Heatmap/index.d.ts +4 -4
  67. package/Heatmap/index.js +47 -4
  68. package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
  69. package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
  70. package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  71. package/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +15 -0
  72. package/Heatmap/seriesConfig/index.d.ts +2 -0
  73. package/Heatmap/seriesConfig/index.js +21 -0
  74. package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  75. package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  76. package/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  77. package/Heatmap/seriesConfig/tooltip.js +31 -0
  78. package/LineChartPro/LineChartPro.d.ts +4 -4
  79. package/LineChartPro/LineChartPro.js +242 -340
  80. package/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  81. package/LineChartPro/LineChartPro.plugins.js +9 -0
  82. package/LineChartPro/index.d.ts +1 -1
  83. package/LineChartPro/index.js +16 -1
  84. package/README.md +1 -1
  85. package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
  86. package/ScatterChartPro/ScatterChartPro.js +244 -235
  87. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  88. package/ScatterChartPro/ScatterChartPro.plugins.js +9 -0
  89. package/ScatterChartPro/index.d.ts +1 -1
  90. package/ScatterChartPro/index.js +16 -1
  91. package/esm/BarChartPro/BarChartPro.d.ts +18 -0
  92. package/esm/BarChartPro/BarChartPro.js +404 -0
  93. package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  94. package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
  95. package/esm/BarChartPro/index.d.ts +1 -0
  96. package/esm/BarChartPro/index.js +1 -0
  97. package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  98. package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
  99. package/esm/ChartContainerPro/index.d.ts +2 -0
  100. package/esm/ChartContainerPro/index.js +2 -0
  101. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  102. package/esm/ChartContainerPro/useChartContainerProProps.js +35 -0
  103. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  104. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +106 -0
  105. package/esm/ChartDataProviderPro/index.d.ts +2 -0
  106. package/esm/ChartDataProviderPro/index.js +2 -0
  107. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  108. package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
  109. package/esm/FunnelChart/FunnelChart.d.ts +37 -0
  110. package/esm/FunnelChart/FunnelChart.js +212 -0
  111. package/esm/FunnelChart/FunnelPlot.d.ts +16 -0
  112. package/esm/FunnelChart/FunnelPlot.js +184 -0
  113. package/esm/FunnelChart/FunnelSection.d.ts +15 -0
  114. package/esm/FunnelChart/FunnelSection.js +56 -0
  115. package/esm/FunnelChart/categoryAxis.types.d.ts +24 -0
  116. package/esm/FunnelChart/funnel.types.d.ts +124 -0
  117. package/esm/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
  118. package/esm/FunnelChart/funnelPlotSlots.types.js +1 -0
  119. package/esm/FunnelChart/funnelSectionClasses.d.ts +13 -0
  120. package/esm/FunnelChart/funnelSectionClasses.js +20 -0
  121. package/esm/FunnelChart/funnelSlots.types.d.ts +19 -0
  122. package/esm/FunnelChart/funnelSlots.types.js +1 -0
  123. package/esm/FunnelChart/funnelStepCurve.d.ts +4 -0
  124. package/esm/FunnelChart/funnelStepCurve.js +67 -0
  125. package/esm/FunnelChart/index.d.ts +7 -0
  126. package/esm/FunnelChart/index.js +5 -0
  127. package/esm/FunnelChart/labelUtils.d.ts +42 -0
  128. package/esm/FunnelChart/labelUtils.js +166 -0
  129. package/esm/FunnelChart/seriesConfig/extremums.d.ts +3 -0
  130. package/esm/FunnelChart/seriesConfig/extremums.js +42 -0
  131. package/esm/FunnelChart/seriesConfig/getColor.d.ts +3 -0
  132. package/esm/FunnelChart/seriesConfig/getColor.js +4 -0
  133. package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  134. package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
  135. package/esm/FunnelChart/seriesConfig/index.d.ts +2 -0
  136. package/esm/FunnelChart/seriesConfig/index.js +15 -0
  137. package/esm/FunnelChart/seriesConfig/legend.d.ts +3 -0
  138. package/esm/FunnelChart/seriesConfig/legend.js +25 -0
  139. package/esm/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
  140. package/esm/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
  141. package/esm/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
  142. package/esm/FunnelChart/seriesConfig/tooltip.js +29 -0
  143. package/esm/FunnelChart/useFunnelChartProps.d.ts +30 -0
  144. package/esm/FunnelChart/useFunnelChartProps.js +161 -0
  145. package/esm/Heatmap/Heatmap.d.ts +57 -0
  146. package/esm/Heatmap/Heatmap.js +387 -0
  147. package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
  148. package/esm/Heatmap/Heatmap.plugins.js +2 -0
  149. package/esm/Heatmap/HeatmapItem.d.ts +49 -0
  150. package/esm/Heatmap/HeatmapItem.js +106 -0
  151. package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
  152. package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
  153. package/esm/Heatmap/HeatmapTooltip.d.ts +16 -0
  154. package/esm/Heatmap/HeatmapTooltip.js +288 -0
  155. package/esm/Heatmap/heatmapClasses.d.ts +11 -0
  156. package/esm/Heatmap/heatmapClasses.js +14 -0
  157. package/esm/Heatmap/index.d.ts +4 -0
  158. package/esm/Heatmap/index.js +4 -0
  159. package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
  160. package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
  161. package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  162. package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
  163. package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
  164. package/esm/Heatmap/seriesConfig/index.js +14 -0
  165. package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  166. package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  167. package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  168. package/esm/Heatmap/seriesConfig/tooltip.js +25 -0
  169. package/esm/LineChartPro/LineChartPro.d.ts +17 -0
  170. package/esm/LineChartPro/LineChartPro.js +401 -0
  171. package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  172. package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
  173. package/esm/LineChartPro/index.d.ts +1 -0
  174. package/esm/LineChartPro/index.js +1 -0
  175. package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  176. package/esm/ScatterChartPro/ScatterChartPro.js +395 -0
  177. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  178. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
  179. package/esm/ScatterChartPro/index.d.ts +1 -0
  180. package/esm/ScatterChartPro/index.js +1 -0
  181. package/esm/hooks/index.d.ts +2 -0
  182. package/esm/hooks/index.js +2 -0
  183. package/esm/hooks/useFunnelSeries.d.ts +33 -0
  184. package/esm/hooks/useFunnelSeries.js +42 -0
  185. package/esm/hooks/useHeatmapSeries.d.ts +33 -0
  186. package/esm/hooks/useHeatmapSeries.js +42 -0
  187. package/esm/hooks/zoom/index.d.ts +1 -0
  188. package/esm/hooks/zoom/index.js +1 -0
  189. package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  190. package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
  191. package/esm/index.d.ts +34 -0
  192. package/esm/index.js +45 -0
  193. package/esm/internals/plugins/allPlugins.d.ts +8 -0
  194. package/esm/internals/plugins/allPlugins.js +6 -0
  195. package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
  196. package/esm/internals/plugins/useChartProZoom/index.js +3 -0
  197. package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  198. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +94 -54
  199. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
  200. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
  201. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
  202. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.js +1 -0
  203. package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  204. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
  205. package/esm/internals/utils/releaseInfo.d.ts +1 -0
  206. package/esm/internals/utils/releaseInfo.js +13 -0
  207. package/esm/models/index.d.ts +2 -0
  208. package/esm/models/index.js +2 -0
  209. package/esm/models/seriesType/heatmap.d.ts +28 -0
  210. package/esm/models/seriesType/heatmap.js +1 -0
  211. package/esm/models/seriesType/index.d.ts +1 -0
  212. package/esm/models/seriesType/index.js +1 -0
  213. package/esm/package.json +1 -0
  214. package/esm/themeAugmentation/components.d.ts +23 -0
  215. package/esm/themeAugmentation/index.d.ts +4 -0
  216. package/esm/themeAugmentation/index.js +0 -0
  217. package/esm/themeAugmentation/overrides.d.ts +11 -0
  218. package/esm/themeAugmentation/props.d.ts +20 -0
  219. package/esm/typeOverloads/index.d.ts +1 -0
  220. package/esm/typeOverloads/index.js +1 -0
  221. package/esm/typeOverloads/modules.d.ts +33 -0
  222. package/esm/typeOverloads/modules.js +1 -0
  223. package/hooks/index.d.ts +2 -2
  224. package/hooks/index.js +27 -2
  225. package/hooks/useFunnelSeries.d.ts +33 -0
  226. package/hooks/useFunnelSeries.js +48 -0
  227. package/hooks/useHeatmapSeries.d.ts +33 -0
  228. package/hooks/useHeatmapSeries.js +48 -0
  229. package/hooks/zoom/index.d.ts +1 -1
  230. package/hooks/zoom/index.js +16 -1
  231. package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
  232. package/hooks/zoom/useIsZoomInteracting.js +10 -5
  233. package/index.d.ts +10 -8
  234. package/index.js +369 -37
  235. package/internals/plugins/allPlugins.d.ts +7 -9
  236. package/internals/plugins/allPlugins.js +10 -3
  237. package/internals/plugins/useChartProZoom/index.d.ts +3 -3
  238. package/internals/plugins/useChartProZoom/index.js +38 -3
  239. package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
  240. package/internals/plugins/useChartProZoom/useChartProZoom.js +101 -47
  241. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +154 -328
  242. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
  243. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +42 -39
  244. package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
  245. package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
  246. package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
  247. package/internals/utils/releaseInfo.d.ts +1 -1
  248. package/internals/utils/releaseInfo.js +13 -5
  249. package/models/index.d.ts +1 -1
  250. package/models/index.js +16 -2
  251. package/models/seriesType/heatmap.d.ts +18 -19
  252. package/models/seriesType/heatmap.js +5 -1
  253. package/models/seriesType/index.d.ts +1 -1
  254. package/models/seriesType/index.js +16 -1
  255. package/modern/BarChartPro/BarChartPro.d.ts +18 -0
  256. package/modern/BarChartPro/BarChartPro.js +35 -85
  257. package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  258. package/modern/BarChartPro/BarChartPro.plugins.js +3 -0
  259. package/modern/BarChartPro/index.d.ts +1 -0
  260. package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  261. package/modern/ChartContainerPro/ChartContainerPro.js +4 -3
  262. package/modern/ChartContainerPro/index.d.ts +2 -0
  263. package/modern/ChartContainerPro/index.js +1 -0
  264. package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  265. package/modern/ChartContainerPro/useChartContainerProProps.js +15 -13
  266. package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  267. package/modern/ChartDataProviderPro/ChartDataProviderPro.js +18 -204
  268. package/modern/ChartDataProviderPro/index.d.ts +2 -0
  269. package/modern/ChartDataProviderPro/index.js +1 -0
  270. package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  271. package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +0 -2
  272. package/modern/FunnelChart/FunnelChart.d.ts +37 -0
  273. package/modern/FunnelChart/FunnelChart.js +212 -0
  274. package/modern/FunnelChart/FunnelPlot.d.ts +16 -0
  275. package/modern/FunnelChart/FunnelPlot.js +184 -0
  276. package/modern/FunnelChart/FunnelSection.d.ts +15 -0
  277. package/modern/FunnelChart/FunnelSection.js +56 -0
  278. package/modern/FunnelChart/categoryAxis.types.d.ts +24 -0
  279. package/modern/FunnelChart/categoryAxis.types.js +1 -0
  280. package/modern/FunnelChart/funnel.types.d.ts +124 -0
  281. package/modern/FunnelChart/funnel.types.js +1 -0
  282. package/modern/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
  283. package/modern/FunnelChart/funnelPlotSlots.types.js +1 -0
  284. package/modern/FunnelChart/funnelSectionClasses.d.ts +13 -0
  285. package/modern/FunnelChart/funnelSectionClasses.js +20 -0
  286. package/modern/FunnelChart/funnelSlots.types.d.ts +19 -0
  287. package/modern/FunnelChart/funnelSlots.types.js +1 -0
  288. package/modern/FunnelChart/funnelStepCurve.d.ts +4 -0
  289. package/modern/FunnelChart/funnelStepCurve.js +67 -0
  290. package/modern/FunnelChart/index.d.ts +7 -0
  291. package/modern/FunnelChart/index.js +5 -0
  292. package/modern/FunnelChart/labelUtils.d.ts +42 -0
  293. package/modern/FunnelChart/labelUtils.js +166 -0
  294. package/modern/FunnelChart/seriesConfig/extremums.d.ts +3 -0
  295. package/modern/FunnelChart/seriesConfig/extremums.js +42 -0
  296. package/modern/FunnelChart/seriesConfig/getColor.d.ts +3 -0
  297. package/modern/FunnelChart/seriesConfig/getColor.js +4 -0
  298. package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  299. package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
  300. package/modern/FunnelChart/seriesConfig/index.d.ts +2 -0
  301. package/modern/FunnelChart/seriesConfig/index.js +15 -0
  302. package/modern/FunnelChart/seriesConfig/legend.d.ts +3 -0
  303. package/modern/FunnelChart/seriesConfig/legend.js +25 -0
  304. package/modern/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
  305. package/modern/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
  306. package/modern/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
  307. package/modern/FunnelChart/seriesConfig/tooltip.js +29 -0
  308. package/modern/FunnelChart/useFunnelChartProps.d.ts +30 -0
  309. package/modern/FunnelChart/useFunnelChartProps.js +161 -0
  310. package/modern/Heatmap/Heatmap.d.ts +57 -0
  311. package/modern/Heatmap/Heatmap.js +47 -61
  312. package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
  313. package/modern/Heatmap/Heatmap.plugins.js +2 -0
  314. package/modern/Heatmap/HeatmapItem.d.ts +49 -0
  315. package/modern/Heatmap/HeatmapItem.js +7 -7
  316. package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
  317. package/modern/Heatmap/HeatmapPlot.js +2 -2
  318. package/modern/Heatmap/HeatmapTooltip.d.ts +16 -0
  319. package/modern/Heatmap/HeatmapTooltip.js +21 -7
  320. package/modern/Heatmap/heatmapClasses.d.ts +11 -0
  321. package/modern/Heatmap/index.d.ts +4 -0
  322. package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
  323. package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
  324. package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  325. package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
  326. package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
  327. package/modern/Heatmap/seriesConfig/index.js +14 -0
  328. package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  329. package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
  330. package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  331. package/modern/Heatmap/seriesConfig/tooltip.js +25 -0
  332. package/modern/LineChartPro/LineChartPro.d.ts +17 -0
  333. package/modern/LineChartPro/LineChartPro.js +36 -140
  334. package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  335. package/modern/LineChartPro/LineChartPro.plugins.js +3 -0
  336. package/modern/LineChartPro/index.d.ts +1 -0
  337. package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  338. package/modern/ScatterChartPro/ScatterChartPro.js +40 -37
  339. package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  340. package/modern/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
  341. package/modern/ScatterChartPro/index.d.ts +1 -0
  342. package/modern/hooks/index.d.ts +2 -0
  343. package/modern/hooks/index.js +1 -1
  344. package/modern/hooks/useFunnelSeries.d.ts +33 -0
  345. package/modern/hooks/useFunnelSeries.js +42 -0
  346. package/modern/hooks/useHeatmapSeries.d.ts +33 -0
  347. package/modern/hooks/useHeatmapSeries.js +42 -0
  348. package/modern/hooks/zoom/index.d.ts +1 -0
  349. package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  350. package/modern/index.d.ts +34 -0
  351. package/modern/index.js +5 -4
  352. package/modern/internals/plugins/allPlugins.d.ts +8 -0
  353. package/modern/internals/plugins/allPlugins.js +3 -2
  354. package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
  355. package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  356. package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +65 -18
  357. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
  358. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
  359. package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
  360. package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  361. package/modern/internals/utils/releaseInfo.d.ts +1 -0
  362. package/modern/internals/utils/releaseInfo.js +1 -1
  363. package/modern/models/index.d.ts +2 -0
  364. package/modern/models/seriesType/heatmap.d.ts +28 -0
  365. package/modern/models/seriesType/index.d.ts +1 -0
  366. package/modern/package.json +1 -0
  367. package/modern/themeAugmentation/components.d.ts +23 -0
  368. package/modern/themeAugmentation/index.d.ts +4 -0
  369. package/modern/themeAugmentation/overrides.d.ts +11 -0
  370. package/modern/themeAugmentation/props.d.ts +20 -0
  371. package/modern/typeOverloads/index.d.ts +1 -0
  372. package/modern/typeOverloads/modules.d.ts +33 -0
  373. package/package.json +44 -11
  374. package/themeAugmentation/components.d.ts +1 -3
  375. package/themeAugmentation/index.d.ts +1 -1
  376. package/themeAugmentation/index.js +1 -0
  377. package/themeAugmentation/overrides.d.ts +2 -4
  378. package/themeAugmentation/props.d.ts +5 -7
  379. package/tsconfig.build.tsbuildinfo +1 -0
  380. package/typeOverloads/index.d.ts +1 -1
  381. package/typeOverloads/index.js +6 -1
  382. package/typeOverloads/modules.d.ts +32 -24
  383. package/typeOverloads/modules.js +5 -1
  384. package/BarChartPro/package.json +0 -6
  385. package/ChartContainerPro/package.json +0 -6
  386. package/ChartDataProviderPro/package.json +0 -6
  387. package/Heatmap/formatter.d.ts +0 -3
  388. package/Heatmap/package.json +0 -6
  389. package/Heatmap/plugin.d.ts +0 -2
  390. package/Heatmap/plugin.js +0 -10
  391. package/LineChartPro/package.json +0 -6
  392. package/ScatterChartPro/package.json +0 -6
  393. package/hooks/package.json +0 -6
  394. package/hooks/useSeries.d.ts +0 -11
  395. package/hooks/useSeries.js +0 -16
  396. package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
  397. package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  398. package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
  399. package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  400. package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
  401. package/models/package.json +0 -6
  402. package/modern/Heatmap/plugin.js +0 -10
  403. package/modern/hooks/useSeries.js +0 -16
  404. package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  405. package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  406. package/node/BarChartPro/BarChartPro.js +0 -460
  407. package/node/BarChartPro/index.js +0 -16
  408. package/node/ChartContainerPro/ChartContainerPro.js +0 -295
  409. package/node/ChartContainerPro/index.js +0 -16
  410. package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
  411. package/node/ChartDataProviderPro/ChartDataProviderPro.js +0 -298
  412. package/node/ChartDataProviderPro/index.js +0 -16
  413. package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -23
  414. package/node/Heatmap/Heatmap.js +0 -407
  415. package/node/Heatmap/HeatmapItem.js +0 -113
  416. package/node/Heatmap/HeatmapTooltip.js +0 -280
  417. package/node/Heatmap/heatmapClasses.js +0 -22
  418. package/node/Heatmap/index.js +0 -47
  419. package/node/Heatmap/plugin.js +0 -17
  420. package/node/LineChartPro/LineChartPro.js +0 -511
  421. package/node/LineChartPro/index.js +0 -16
  422. package/node/ScatterChartPro/ScatterChartPro.js +0 -398
  423. package/node/ScatterChartPro/index.js +0 -16
  424. package/node/hooks/index.js +0 -27
  425. package/node/hooks/useSeries.js +0 -21
  426. package/node/hooks/zoom/index.js +0 -16
  427. package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
  428. package/node/index.js +0 -365
  429. package/node/internals/plugins/allPlugins.js +0 -11
  430. package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
  431. package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
  432. package/node/internals/plugins/useChartProZoom/index.js +0 -38
  433. package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
  434. package/node/internals/utils/releaseInfo.js +0 -21
  435. package/node/models/index.js +0 -16
  436. package/node/models/seriesType/index.js +0 -16
  437. package/node/themeAugmentation/index.js +0 -1
  438. package/node/typeOverloads/index.js +0 -6
  439. package/themeAugmentation/package.json +0 -6
  440. package/typeOverloads/package.json +0 -6
  441. /package/{node/internals/plugins/useChartProZoom/useChartProZoom.types.js → FunnelChart/categoryAxis.types.js} +0 -0
  442. /package/{node/internals/plugins/useChartProZoom/zoom.types.js → FunnelChart/funnel.types.js} +0 -0
  443. /package/{node/models/seriesType/heatmap.js → FunnelChart/funnelPlotSlots.types.js} +0 -0
  444. /package/{node/typeOverloads/modules.js → FunnelChart/funnelSlots.types.js} +0 -0
  445. /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
  446. /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
  447. /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/categoryAxis.types.js} +0 -0
  448. /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/funnel.types.js} +0 -0
  449. /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
  450. /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
  451. /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
  452. /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
@@ -0,0 +1,106 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["seriesId", "dataIndex", "color", "value", "slotProps", "slots"];
4
+ import * as React from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import { styled } from '@mui/material/styles';
7
+ import useSlotProps from '@mui/utils/useSlotProps';
8
+ import composeClasses from '@mui/utils/composeClasses';
9
+ import { useItemHighlighted } from '@mui/x-charts/hooks';
10
+ import { useInteractionItemProps } from '@mui/x-charts/internals';
11
+ import { getHeatmapUtilityClass } from "./heatmapClasses.js";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ const HeatmapCell = styled('rect', {
14
+ name: 'MuiHeatmap',
15
+ slot: 'Cell',
16
+ overridesResolver: (_, styles) => styles.arc
17
+ })(({
18
+ ownerState
19
+ }) => ({
20
+ filter: ownerState.isHighlighted && 'saturate(120%)' || ownerState.isFaded && 'saturate(80%)' || undefined,
21
+ fill: ownerState.color,
22
+ shapeRendering: 'crispEdges'
23
+ }));
24
+ const useUtilityClasses = ownerState => {
25
+ const {
26
+ classes,
27
+ seriesId,
28
+ isFaded,
29
+ isHighlighted
30
+ } = ownerState;
31
+ const slots = {
32
+ cell: ['cell', `series-${seriesId}`, isFaded && 'faded', isHighlighted && 'highlighted']
33
+ };
34
+ return composeClasses(slots, getHeatmapUtilityClass, classes);
35
+ };
36
+
37
+ /**
38
+ * @ignore - internal component.
39
+ */
40
+ function HeatmapItem(props) {
41
+ const {
42
+ seriesId,
43
+ dataIndex,
44
+ color,
45
+ value,
46
+ slotProps = {},
47
+ slots = {}
48
+ } = props,
49
+ other = _objectWithoutPropertiesLoose(props, _excluded);
50
+ const interactionProps = useInteractionItemProps({
51
+ type: 'heatmap',
52
+ seriesId,
53
+ dataIndex
54
+ });
55
+ const {
56
+ isFaded,
57
+ isHighlighted
58
+ } = useItemHighlighted({
59
+ seriesId,
60
+ dataIndex
61
+ });
62
+ const ownerState = {
63
+ seriesId,
64
+ dataIndex,
65
+ color,
66
+ value,
67
+ isFaded,
68
+ isHighlighted
69
+ };
70
+ const classes = useUtilityClasses(ownerState);
71
+ const Cell = slots?.cell ?? HeatmapCell;
72
+ const cellProps = useSlotProps({
73
+ elementType: Cell,
74
+ additionalProps: interactionProps,
75
+ externalForwardedProps: _extends({}, other),
76
+ externalSlotProps: slotProps.cell,
77
+ ownerState,
78
+ className: classes.cell
79
+ });
80
+ return /*#__PURE__*/_jsx(Cell, _extends({}, cellProps));
81
+ }
82
+ process.env.NODE_ENV !== "production" ? HeatmapItem.propTypes = {
83
+ // ----------------------------- Warning --------------------------------
84
+ // | These PropTypes are generated from the TypeScript type definitions |
85
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
86
+ // ----------------------------------------------------------------------
87
+ color: PropTypes.string.isRequired,
88
+ dataIndex: PropTypes.number.isRequired,
89
+ height: PropTypes.number.isRequired,
90
+ seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
91
+ /**
92
+ * The props used for each component slot.
93
+ * @default {}
94
+ */
95
+ slotProps: PropTypes.object,
96
+ /**
97
+ * Overridable component slots.
98
+ * @default {}
99
+ */
100
+ slots: PropTypes.object,
101
+ value: PropTypes.number.isRequired,
102
+ width: PropTypes.number.isRequired,
103
+ x: PropTypes.number.isRequired,
104
+ y: PropTypes.number.isRequired
105
+ } : void 0;
106
+ export { HeatmapItem };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { HeatmapItemProps } from "./HeatmapItem.js";
3
+ export interface HeatmapPlotProps extends Pick<HeatmapItemProps, 'slots' | 'slotProps'> {}
4
+ declare function HeatmapPlot(props: HeatmapPlotProps): React.JSX.Element | null;
5
+ declare namespace HeatmapPlot {
6
+ var propTypes: any;
7
+ }
8
+ export { HeatmapPlot };
@@ -1,30 +1,23 @@
1
- "use strict";
2
1
  'use client';
3
2
 
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
- Object.defineProperty(exports, "__esModule", {
7
- value: true
8
- });
9
- exports.HeatmapPlot = HeatmapPlot;
10
- var React = _interopRequireWildcard(require("react"));
11
- var _propTypes = _interopRequireDefault(require("prop-types"));
12
- var _hooks = require("@mui/x-charts/hooks");
13
- var _useSeries = require("../hooks/useSeries");
14
- var _HeatmapItem = require("./HeatmapItem");
15
- var _jsxRuntime = require("react/jsx-runtime");
3
+ import * as React from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import { useXScale, useYScale, useZColorScale } from '@mui/x-charts/hooks';
6
+ import { useHeatmapSeriesContext } from "../hooks/useHeatmapSeries.js";
7
+ import { HeatmapItem } from "./HeatmapItem.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
16
9
  function HeatmapPlot(props) {
17
- const xScale = (0, _hooks.useXScale)();
18
- const yScale = (0, _hooks.useYScale)();
19
- const colorScale = (0, _hooks.useZColorScale)();
20
- const series = (0, _useSeries.useHeatmapSeries)();
10
+ const xScale = useXScale();
11
+ const yScale = useYScale();
12
+ const colorScale = useZColorScale();
13
+ const series = useHeatmapSeriesContext();
21
14
  const xDomain = xScale.domain();
22
15
  const yDomain = yScale.domain();
23
16
  if (!series || series.seriesOrder.length === 0) {
24
17
  return null;
25
18
  }
26
19
  const seriesToDisplay = series.series[series.seriesOrder[0]];
27
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
20
+ return /*#__PURE__*/_jsx("g", {
28
21
  children: seriesToDisplay.data.map(([xIndex, yIndex, value], dataIndex) => {
29
22
  const x = xScale(xDomain[xIndex]);
30
23
  const y = yScale(yDomain[yIndex]);
@@ -32,7 +25,7 @@ function HeatmapPlot(props) {
32
25
  if (x === undefined || y === undefined || !color) {
33
26
  return null;
34
27
  }
35
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HeatmapItem.HeatmapItem, {
28
+ return /*#__PURE__*/_jsx(HeatmapItem, {
36
29
  width: xScale.bandwidth(),
37
30
  height: yScale.bandwidth(),
38
31
  x: x,
@@ -56,10 +49,11 @@ process.env.NODE_ENV !== "production" ? HeatmapPlot.propTypes = {
56
49
  * The props used for each component slot.
57
50
  * @default {}
58
51
  */
59
- slotProps: _propTypes.default.object,
52
+ slotProps: PropTypes.object,
60
53
  /**
61
54
  * Overridable component slots.
62
55
  * @default {}
63
56
  */
64
- slots: _propTypes.default.object
65
- } : void 0;
57
+ slots: PropTypes.object
58
+ } : void 0;
59
+ export { HeatmapPlot };
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { ChartsTooltipContainerProps } from '@mui/x-charts/ChartsTooltip';
3
+ export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
4
+ /**
5
+ * Select the kind of tooltip to display
6
+ * - 'item': Shows data about the item below the mouse.
7
+ * - 'none': Does not display tooltip
8
+ * @default 'item'
9
+ */
10
+ trigger?: 'item' | 'none';
11
+ }
12
+ declare function HeatmapTooltip(props: HeatmapTooltipProps): React.JSX.Element;
13
+ declare namespace HeatmapTooltip {
14
+ var propTypes: any;
15
+ }
16
+ export { HeatmapTooltip };
@@ -0,0 +1,288 @@
1
+ 'use client';
2
+
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import * as React from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import clsx from 'clsx';
7
+ import HTMLElementType from '@mui/utils/HTMLElementType';
8
+ import composeClasses from '@mui/utils/composeClasses';
9
+ import { ChartsTooltipPaper, ChartsTooltipTable, ChartsTooltipRow, ChartsTooltipCell, useItemTooltip, getChartsTooltipUtilityClass, ChartsTooltipContainer } from '@mui/x-charts/ChartsTooltip';
10
+ import { useXAxis, useYAxis } from '@mui/x-charts/hooks';
11
+ import { getLabel, ChartsLabelMark } from '@mui/x-charts/internals';
12
+ import { useHeatmapSeriesContext } from "../hooks/useHeatmapSeries.js";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ const useUtilityClasses = ownerState => {
15
+ const {
16
+ classes
17
+ } = ownerState;
18
+ const slots = {
19
+ root: ['root'],
20
+ paper: ['paper'],
21
+ table: ['table'],
22
+ row: ['row'],
23
+ cell: ['cell'],
24
+ mark: ['mark'],
25
+ markCell: ['markCell'],
26
+ labelCell: ['labelCell'],
27
+ valueCell: ['valueCell']
28
+ };
29
+ return composeClasses(slots, getChartsTooltipUtilityClass, classes);
30
+ };
31
+ function DefaultHeatmapTooltipContent(props) {
32
+ const {
33
+ classes
34
+ } = props;
35
+ const xAxis = useXAxis();
36
+ const yAxis = useYAxis();
37
+ const heatmapSeries = useHeatmapSeriesContext();
38
+ const tooltipData = useItemTooltip();
39
+ if (!tooltipData || !heatmapSeries || heatmapSeries.seriesOrder.length === 0) {
40
+ return null;
41
+ }
42
+ const {
43
+ series,
44
+ seriesOrder
45
+ } = heatmapSeries;
46
+ const seriesId = seriesOrder[0];
47
+ const {
48
+ color,
49
+ value,
50
+ identifier,
51
+ markType
52
+ } = tooltipData;
53
+ const [xIndex, yIndex] = value;
54
+ const formattedX = xAxis.valueFormatter?.(xAxis.data[xIndex], {
55
+ location: 'tooltip',
56
+ scale: xAxis.scale
57
+ }) ?? xAxis.data[xIndex].toLocaleString();
58
+ const formattedY = yAxis.valueFormatter?.(yAxis.data[yIndex], {
59
+ location: 'tooltip',
60
+ scale: yAxis.scale
61
+ }) ?? yAxis.data[yIndex].toLocaleString();
62
+ const formattedValue = series[seriesId].valueFormatter(value, {
63
+ dataIndex: identifier.dataIndex
64
+ });
65
+ const seriesLabel = getLabel(series[seriesId].label, 'tooltip');
66
+ return /*#__PURE__*/_jsx(ChartsTooltipPaper, {
67
+ className: classes?.paper,
68
+ children: /*#__PURE__*/_jsxs(ChartsTooltipTable, {
69
+ className: classes?.table,
70
+ children: [/*#__PURE__*/_jsx("thead", {
71
+ children: /*#__PURE__*/_jsxs(ChartsTooltipRow, {
72
+ className: classes?.row,
73
+ children: [/*#__PURE__*/_jsx(ChartsTooltipCell, {
74
+ className: classes?.cell,
75
+ children: formattedX
76
+ }), formattedX && formattedY && /*#__PURE__*/_jsx(ChartsTooltipCell, {}), /*#__PURE__*/_jsx(ChartsTooltipCell, {
77
+ className: classes?.cell,
78
+ children: formattedY
79
+ })]
80
+ })
81
+ }), /*#__PURE__*/_jsx("tbody", {
82
+ children: /*#__PURE__*/_jsxs(ChartsTooltipRow, {
83
+ className: classes?.row,
84
+ children: [/*#__PURE__*/_jsx(ChartsTooltipCell, {
85
+ className: clsx(classes?.markCell, classes?.cell),
86
+ children: /*#__PURE__*/_jsx(ChartsLabelMark, {
87
+ type: markType,
88
+ color: color,
89
+ className: classes?.mark
90
+ })
91
+ }), /*#__PURE__*/_jsx(ChartsTooltipCell, {
92
+ className: clsx(classes?.labelCell, classes?.cell),
93
+ children: seriesLabel
94
+ }), /*#__PURE__*/_jsx(ChartsTooltipCell, {
95
+ className: clsx(classes?.valueCell, classes?.cell),
96
+ children: formattedValue
97
+ })]
98
+ })
99
+ })]
100
+ })
101
+ });
102
+ }
103
+ process.env.NODE_ENV !== "production" ? DefaultHeatmapTooltipContent.propTypes = {
104
+ // ----------------------------- Warning --------------------------------
105
+ // | These PropTypes are generated from the TypeScript type definitions |
106
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
107
+ // ----------------------------------------------------------------------
108
+ /**
109
+ * Override or extend the styles applied to the component.
110
+ */
111
+ classes: PropTypes.object
112
+ } : void 0;
113
+ function HeatmapTooltip(props) {
114
+ const classes = useUtilityClasses({
115
+ classes: props.classes
116
+ });
117
+ return /*#__PURE__*/_jsx(ChartsTooltipContainer, _extends({
118
+ trigger: "item"
119
+ }, props, {
120
+ classes: classes,
121
+ children: /*#__PURE__*/_jsx(DefaultHeatmapTooltipContent, {
122
+ classes: classes
123
+ })
124
+ }));
125
+ }
126
+ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
127
+ // ----------------------------- Warning --------------------------------
128
+ // | These PropTypes are generated from the TypeScript type definitions |
129
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
130
+ // ----------------------------------------------------------------------
131
+ /**
132
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
133
+ * or a function that returns either.
134
+ * It's used to set the position of the popper.
135
+ * The return value will passed as the reference object of the Popper instance.
136
+ */
137
+ anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),
138
+ /**
139
+ * Override or extend the styles applied to the component.
140
+ */
141
+ classes: PropTypes.object,
142
+ /**
143
+ * The component used for the root node.
144
+ * Either a string to use a HTML element or a component.
145
+ */
146
+ component: PropTypes.elementType,
147
+ /**
148
+ * The components used for each slot inside the Popper.
149
+ * Either a string to use a HTML element or a component.
150
+ *
151
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
152
+ * @default {}
153
+ */
154
+ components: PropTypes.shape({
155
+ Root: PropTypes.elementType
156
+ }),
157
+ /**
158
+ * The props used for each slot inside the Popper.
159
+ *
160
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
161
+ * @default {}
162
+ */
163
+ componentsProps: PropTypes.shape({
164
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
165
+ }),
166
+ /**
167
+ * An HTML element or function that returns one.
168
+ * The `container` will have the portal children appended to it.
169
+ *
170
+ * You can also provide a callback, which is called in a React layout effect.
171
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
172
+ *
173
+ * By default, it uses the body of the top-level document object,
174
+ * so it's simply `document.body` most of the time.
175
+ */
176
+ container: PropTypes.oneOfType([(props, propName) => {
177
+ if (props[propName] == null) {
178
+ return new Error(`Prop '${propName}' is required but wasn't specified`);
179
+ }
180
+ if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
181
+ return new Error(`Expected prop '${propName}' to be of type Element`);
182
+ }
183
+ return null;
184
+ }, PropTypes.func]),
185
+ /**
186
+ * The `children` will be under the DOM hierarchy of the parent component.
187
+ * @default false
188
+ */
189
+ disablePortal: PropTypes.bool,
190
+ /**
191
+ * Always keep the children in the DOM.
192
+ * This prop can be useful in SEO situation or
193
+ * when you want to maximize the responsiveness of the Popper.
194
+ * @default false
195
+ */
196
+ keepMounted: PropTypes.bool,
197
+ /**
198
+ * Popper.js is based on a "plugin-like" architecture,
199
+ * most of its features are fully encapsulated "modifiers".
200
+ *
201
+ * A modifier is a function that is called each time Popper.js needs to
202
+ * compute the position of the popper.
203
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
204
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
205
+ */
206
+ modifiers: PropTypes.arrayOf(PropTypes.shape({
207
+ data: PropTypes.object,
208
+ effect: PropTypes.func,
209
+ enabled: PropTypes.bool,
210
+ fn: PropTypes.func,
211
+ name: PropTypes.any,
212
+ options: PropTypes.object,
213
+ phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
214
+ requires: PropTypes.arrayOf(PropTypes.string),
215
+ requiresIfExists: PropTypes.arrayOf(PropTypes.string)
216
+ })),
217
+ /**
218
+ * If `true`, the component is shown.
219
+ */
220
+ open: PropTypes.bool,
221
+ /**
222
+ * Popper placement.
223
+ * @default 'bottom'
224
+ */
225
+ placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
226
+ /**
227
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
228
+ * @default {}
229
+ */
230
+ popperOptions: PropTypes.shape({
231
+ modifiers: PropTypes.array,
232
+ onFirstUpdate: PropTypes.func,
233
+ placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
234
+ strategy: PropTypes.oneOf(['absolute', 'fixed'])
235
+ }),
236
+ /**
237
+ * A ref that points to the used popper instance.
238
+ */
239
+ popperRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
240
+ current: PropTypes.shape({
241
+ destroy: PropTypes.func.isRequired,
242
+ forceUpdate: PropTypes.func.isRequired,
243
+ setOptions: PropTypes.func.isRequired,
244
+ state: PropTypes.shape({
245
+ attributes: PropTypes.object.isRequired,
246
+ elements: PropTypes.object.isRequired,
247
+ modifiersData: PropTypes.object.isRequired,
248
+ options: PropTypes.object.isRequired,
249
+ orderedModifiers: PropTypes.arrayOf(PropTypes.object).isRequired,
250
+ placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']).isRequired,
251
+ rects: PropTypes.object.isRequired,
252
+ reset: PropTypes.bool.isRequired,
253
+ scrollParents: PropTypes.object.isRequired,
254
+ strategy: PropTypes.oneOf(['absolute', 'fixed']).isRequired,
255
+ styles: PropTypes.object.isRequired
256
+ }).isRequired,
257
+ update: PropTypes.func.isRequired
258
+ })
259
+ })]),
260
+ /**
261
+ * The props used for each slot inside the Popper.
262
+ * @default {}
263
+ */
264
+ slotProps: PropTypes.object,
265
+ /**
266
+ * The components used for each slot inside the Popper.
267
+ * Either a string to use a HTML element or a component.
268
+ * @default {}
269
+ */
270
+ slots: PropTypes.object,
271
+ /**
272
+ * The system prop that allows defining system overrides as well as additional CSS styles.
273
+ */
274
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
275
+ /**
276
+ * Help supporting a react-transition-group/Transition component.
277
+ * @default false
278
+ */
279
+ transition: PropTypes.bool,
280
+ /**
281
+ * Select the kind of tooltip to display
282
+ * - 'item': Shows data about the item below the mouse.
283
+ * - 'none': Does not display tooltip
284
+ * @default 'item'
285
+ */
286
+ trigger: PropTypes.oneOf(['item', 'none'])
287
+ } : void 0;
288
+ export { HeatmapTooltip };
@@ -0,0 +1,11 @@
1
+ export interface HeatmapClasses {
2
+ /** Styles applied to the heatmap cells. */
3
+ cell: string;
4
+ /** Styles applied to the cell element if highlighted. */
5
+ highlighted: string;
6
+ /** Styles applied to the cell element if faded. */
7
+ faded: string;
8
+ }
9
+ export type HeatmapClassKey = keyof HeatmapClasses;
10
+ export declare function getHeatmapUtilityClass(slot: string): string;
11
+ export declare const heatmapClasses: HeatmapClasses;
@@ -0,0 +1,14 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
+ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
4
+ export function getHeatmapUtilityClass(slot) {
5
+ // Those should be common to all charts
6
+ if (['highlighted', 'faded'].includes(slot)) {
7
+ return generateUtilityClass('Charts', slot);
8
+ }
9
+ return generateUtilityClass('MuiHeatmap', slot);
10
+ }
11
+ export const heatmapClasses = _extends({}, generateUtilityClasses('MuiHeatmap', ['cell']), {
12
+ highlighted: 'Charts-highlighted',
13
+ faded: 'Charts-faded'
14
+ });
@@ -0,0 +1,4 @@
1
+ export { Heatmap } from "./Heatmap.js";
2
+ export { HeatmapPlot } from "./HeatmapPlot.js";
3
+ export * from "./HeatmapTooltip.js";
4
+ export * from "./heatmapClasses.js";
@@ -0,0 +1,4 @@
1
+ export { Heatmap } from "./Heatmap.js";
2
+ export { HeatmapPlot } from "./HeatmapPlot.js";
3
+ export * from "./HeatmapTooltip.js";
4
+ export * from "./heatmapClasses.js";
@@ -0,0 +1,2 @@
1
+ import { CartesianExtremumGetter } from '@mui/x-charts/internals';
2
+ export declare const getBaseExtremum: CartesianExtremumGetter<'heatmap'>;
@@ -0,0 +1,3 @@
1
+ import { ColorProcessor } from '@mui/x-charts/internals';
2
+ declare const getColor: ColorProcessor<'heatmap'>;
3
+ export default getColor;
@@ -0,0 +1,3 @@
1
+ import { GetSeriesWithDefaultValues } from '@mui/x-charts/internals';
2
+ declare const getSeriesWithDefaultValues: GetSeriesWithDefaultValues<'heatmap'>;
3
+ export default getSeriesWithDefaultValues;
@@ -0,0 +1,8 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
3
+ return _extends({
4
+ id: seriesData.id ?? `auto-generated-id-${seriesIndex}`,
5
+ color: colors[seriesIndex % colors.length]
6
+ }, seriesData);
7
+ };
8
+ export default getSeriesWithDefaultValues;
@@ -0,0 +1,2 @@
1
+ import { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
2
+ export declare const seriesConfig: ChartSeriesTypeConfig<'heatmap'>;
@@ -0,0 +1,14 @@
1
+ import { getBaseExtremum } from "./extremums.js";
2
+ import seriesProcessor from "./seriesProcessor.js";
3
+ import getColor from "./getColor.js";
4
+ import tooltipGetter from "./tooltip.js";
5
+ import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.js";
6
+ export const seriesConfig = {
7
+ seriesProcessor,
8
+ colorProcessor: getColor,
9
+ legendGetter: () => [],
10
+ tooltipGetter,
11
+ xExtremumGetter: getBaseExtremum,
12
+ yExtremumGetter: getBaseExtremum,
13
+ getSeriesWithDefaultValues
14
+ };
@@ -0,0 +1,3 @@
1
+ import { SeriesProcessor } from '@mui/x-charts/internals';
2
+ declare const seriesProcessor: SeriesProcessor<'heatmap'>;
3
+ export default seriesProcessor;
@@ -1,5 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- const formatter = params => {
2
+ const seriesProcessor = params => {
3
3
  const {
4
4
  series,
5
5
  seriesOrder
@@ -18,4 +18,4 @@ const formatter = params => {
18
18
  seriesOrder
19
19
  };
20
20
  };
21
- export default formatter;
21
+ export default seriesProcessor;
@@ -0,0 +1,3 @@
1
+ import { TooltipGetter } from '@mui/x-charts/internals';
2
+ declare const tooltipGetter: TooltipGetter<'heatmap'>;
3
+ export default tooltipGetter;
@@ -0,0 +1,25 @@
1
+ import { getLabel } from '@mui/x-charts/internals';
2
+ const tooltipGetter = params => {
3
+ const {
4
+ series,
5
+ getColor,
6
+ identifier
7
+ } = params;
8
+ if (!identifier || identifier.dataIndex === undefined) {
9
+ return null;
10
+ }
11
+ const label = getLabel(series.label, 'tooltip');
12
+ const value = series.data[identifier.dataIndex];
13
+ const formattedValue = series.valueFormatter(value, {
14
+ dataIndex: identifier.dataIndex
15
+ });
16
+ return {
17
+ identifier,
18
+ color: getColor(identifier.dataIndex),
19
+ label,
20
+ value,
21
+ formattedValue,
22
+ markType: series.labelMarkType
23
+ };
24
+ };
25
+ export default tooltipGetter;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { LineChartProps } from '@mui/x-charts/LineChart';
3
+ import { ChartContainerProProps } from "../ChartContainerPro/index.js";
4
+ import { LineChartProPluginsSignatures } from "./LineChartPro.plugins.js";
5
+ export interface LineChartProProps extends Omit<LineChartProps, 'apiRef'>, Omit<ChartContainerProProps<'line', LineChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig'> {}
6
+ /**
7
+ * Demos:
8
+ *
9
+ * - [Lines](https://mui.com/x/react-charts/lines/)
10
+ * - [Line demonstration](https://mui.com/x/react-charts/line-demo/)
11
+ *
12
+ * API:
13
+ *
14
+ * - [LineChart API](https://mui.com/x/api/charts/line-chart/)
15
+ */
16
+ declare const LineChartPro: React.ForwardRefExoticComponent<LineChartProProps & React.RefAttributes<SVGSVGElement>>;
17
+ export { LineChartPro };