@mui/x-charts-pro 8.21.0 → 8.22.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 (374) hide show
  1. package/BarChartPro/BarChartPro.d.ts +5 -5
  2. package/BarChartPro/BarChartPro.js +20 -0
  3. package/BarChartPro/BarChartPro.plugins.d.ts +4 -4
  4. package/BarChartPro/BarChartPro.plugins.js +1 -1
  5. package/CHANGELOG.md +238 -1
  6. package/ChartContainerPro/ChartContainerPro.d.ts +4 -4
  7. package/ChartContainerPro/useChartContainerProProps.d.ts +4 -4
  8. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
  9. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  10. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -1
  11. package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -1
  12. package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
  13. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -1
  14. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +9 -9
  15. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -1
  16. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
  17. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -1
  18. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +1 -1
  19. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
  20. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +3 -3
  21. package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  22. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +2 -2
  23. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
  24. package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
  25. package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -2
  26. package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +2 -2
  27. package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
  28. package/ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts +1 -1
  29. package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -1
  30. package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
  31. package/ChartZoomSlider/internals/zoom-utils.d.ts +2 -2
  32. package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +3 -3
  33. package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +3 -3
  34. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +3 -3
  35. package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
  36. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +2 -2
  37. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
  38. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +2 -2
  39. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
  40. package/ChartsToolbarPro/Toolbar.types.d.ts +2 -2
  41. package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  42. package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +1 -1
  43. package/FunnelChart/FunnelChart.d.ts +9 -9
  44. package/FunnelChart/FunnelChart.plugins.d.ts +4 -4
  45. package/FunnelChart/FunnelChart.plugins.js +1 -1
  46. package/FunnelChart/FunnelPlot.d.ts +2 -2
  47. package/FunnelChart/FunnelPlot.js +3 -3
  48. package/FunnelChart/FunnelSection.d.ts +2 -2
  49. package/FunnelChart/FunnelSectionLabel.d.ts +2 -2
  50. package/FunnelChart/categoryAxis.types.d.ts +2 -2
  51. package/FunnelChart/coordinateMapper.d.ts +2 -2
  52. package/FunnelChart/curves/borderRadiusPolygon.d.ts +1 -1
  53. package/FunnelChart/curves/bump.d.ts +1 -1
  54. package/FunnelChart/curves/curve.types.d.ts +1 -1
  55. package/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
  56. package/FunnelChart/curves/linear.d.ts +1 -1
  57. package/FunnelChart/curves/pyramid.d.ts +1 -1
  58. package/FunnelChart/curves/step-pyramid.d.ts +1 -1
  59. package/FunnelChart/curves/step.d.ts +1 -1
  60. package/FunnelChart/funnel.types.d.ts +5 -5
  61. package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +4 -4
  62. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +2 -2
  63. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +2 -2
  64. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
  65. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +2 -2
  66. package/FunnelChart/funnelPlotSlots.types.d.ts +2 -2
  67. package/FunnelChart/funnelSlots.types.d.ts +6 -6
  68. package/FunnelChart/labelUtils.d.ts +2 -2
  69. package/FunnelChart/seriesConfig/extremums.d.ts +1 -1
  70. package/FunnelChart/seriesConfig/getColor.d.ts +1 -1
  71. package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  72. package/FunnelChart/seriesConfig/legend.d.ts +1 -1
  73. package/FunnelChart/seriesConfig/seriesProcessor.d.ts +1 -1
  74. package/FunnelChart/seriesConfig/tooltip.d.ts +1 -1
  75. package/FunnelChart/seriesConfig/tooltipPosition.d.ts +1 -1
  76. package/FunnelChart/useFunnelChartProps.d.ts +7 -7
  77. package/Heatmap/Heatmap.d.ts +13 -13
  78. package/Heatmap/Heatmap.js +10 -0
  79. package/Heatmap/Heatmap.plugins.d.ts +3 -3
  80. package/Heatmap/Heatmap.plugins.js +1 -1
  81. package/Heatmap/HeatmapItem.d.ts +2 -2
  82. package/Heatmap/HeatmapPlot.d.ts +1 -1
  83. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +1 -1
  84. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
  85. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +1 -1
  86. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
  87. package/Heatmap/seriesConfig/extremums.d.ts +1 -1
  88. package/Heatmap/seriesConfig/getColor.d.ts +1 -1
  89. package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  90. package/Heatmap/seriesConfig/index.d.ts +1 -1
  91. package/Heatmap/seriesConfig/seriesProcessor.d.ts +1 -1
  92. package/Heatmap/seriesConfig/tooltip.d.ts +1 -1
  93. package/Heatmap/seriesConfig/tooltipPosition.d.ts +1 -1
  94. package/LineChartPro/LineChartPro.d.ts +5 -5
  95. package/LineChartPro/LineChartPro.js +20 -0
  96. package/LineChartPro/LineChartPro.plugins.d.ts +4 -4
  97. package/LineChartPro/LineChartPro.plugins.js +1 -1
  98. package/PieChartPro/PieChartPro.d.ts +5 -5
  99. package/PieChartPro/PieChartPro.plugins.d.ts +3 -3
  100. package/RadarChartPro/RadarChartPro.d.ts +4 -4
  101. package/RadarChartPro/RadarChartPro.plugins.d.ts +3 -3
  102. package/RadarChartPro/RadarChartPro.plugins.js +1 -1
  103. package/SankeyChart/SankeyChart.d.ts +1 -1
  104. package/SankeyChart/SankeyChart.plugins.d.ts +3 -3
  105. package/SankeyChart/SankeyChart.plugins.js +1 -1
  106. package/SankeyChart/SankeyLinkElement.js +2 -2
  107. package/SankeyChart/SankeyLinkLabel.d.ts +1 -1
  108. package/SankeyChart/SankeyNodeElement.d.ts +0 -4
  109. package/SankeyChart/SankeyNodeElement.js +5 -24
  110. package/SankeyChart/SankeyNodeLabel.d.ts +12 -0
  111. package/SankeyChart/SankeyNodeLabel.js +61 -0
  112. package/SankeyChart/SankeyPlot.js +10 -7
  113. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
  114. package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +1 -1
  115. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
  116. package/SankeyChart/calculateSankeyLayout.d.ts +2 -2
  117. package/SankeyChart/calculateSankeyLayout.js +12 -33
  118. package/SankeyChart/d3Sankey/align.d.ts +4 -4
  119. package/SankeyChart/d3Sankey/sankey.d.ts +3 -3
  120. package/SankeyChart/d3Sankey/sankey.js +4 -1
  121. package/SankeyChart/d3Sankey/sankey.types.d.ts +76 -39
  122. package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +2 -2
  123. package/SankeyChart/plugins/useSankeyHighlight.d.ts +1 -1
  124. package/SankeyChart/plugins/useSankeyHighlight.js +1 -1
  125. package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +2 -2
  126. package/SankeyChart/plugins/useSankeyHighlight.types.d.ts +3 -3
  127. package/SankeyChart/sankey.types.d.ts +32 -24
  128. package/SankeyChart/sankeyClasses.d.ts +3 -1
  129. package/SankeyChart/sankeyClasses.js +2 -1
  130. package/SankeyChart/sankeySlots.types.d.ts +4 -4
  131. package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +63 -14
  132. package/SankeyChart/seriesConfig/tooltipGetter.js +5 -2
  133. package/SankeyChart/utils.d.ts +1 -1
  134. package/ScatterChartPro/ScatterChartPro.d.ts +6 -6
  135. package/ScatterChartPro/ScatterChartPro.js +20 -0
  136. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -4
  137. package/ScatterChartPro/ScatterChartPro.plugins.js +1 -1
  138. package/context/ChartProApi.d.ts +10 -10
  139. package/context/useChartProApiContext.d.ts +1 -1
  140. package/esm/BarChartPro/BarChartPro.d.ts +5 -5
  141. package/esm/BarChartPro/BarChartPro.js +20 -0
  142. package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -4
  143. package/esm/BarChartPro/BarChartPro.plugins.js +2 -2
  144. package/esm/ChartContainerPro/ChartContainerPro.d.ts +4 -4
  145. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +4 -4
  146. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
  147. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  148. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -1
  149. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -1
  150. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +3 -3
  151. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -1
  152. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +10 -10
  153. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -1
  154. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +3 -3
  155. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -1
  156. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +2 -2
  157. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
  158. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +3 -3
  159. package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  160. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +2 -2
  161. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +3 -3
  162. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
  163. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +3 -3
  164. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +2 -2
  165. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +3 -3
  166. package/esm/ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts +1 -1
  167. package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -1
  168. package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +3 -3
  169. package/esm/ChartZoomSlider/internals/zoom-utils.d.ts +2 -2
  170. package/esm/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +3 -3
  171. package/esm/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +3 -3
  172. package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +3 -3
  173. package/esm/ChartsToolbarPro/ChartsToolbarPro.js +2 -2
  174. package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +2 -2
  175. package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +2 -2
  176. package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +2 -2
  177. package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +2 -2
  178. package/esm/ChartsToolbarPro/Toolbar.types.d.ts +2 -2
  179. package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  180. package/esm/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +1 -1
  181. package/esm/FunnelChart/FunnelChart.d.ts +9 -9
  182. package/esm/FunnelChart/FunnelChart.plugins.d.ts +4 -4
  183. package/esm/FunnelChart/FunnelChart.plugins.js +2 -2
  184. package/esm/FunnelChart/FunnelPlot.d.ts +2 -2
  185. package/esm/FunnelChart/FunnelPlot.js +4 -4
  186. package/esm/FunnelChart/FunnelSection.d.ts +2 -2
  187. package/esm/FunnelChart/FunnelSectionLabel.d.ts +2 -2
  188. package/esm/FunnelChart/categoryAxis.types.d.ts +2 -2
  189. package/esm/FunnelChart/coordinateMapper.d.ts +2 -2
  190. package/esm/FunnelChart/curves/borderRadiusPolygon.d.ts +1 -1
  191. package/esm/FunnelChart/curves/bump.d.ts +1 -1
  192. package/esm/FunnelChart/curves/curve.types.d.ts +1 -1
  193. package/esm/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
  194. package/esm/FunnelChart/curves/linear.d.ts +1 -1
  195. package/esm/FunnelChart/curves/pyramid.d.ts +1 -1
  196. package/esm/FunnelChart/curves/step-pyramid.d.ts +1 -1
  197. package/esm/FunnelChart/curves/step.d.ts +1 -1
  198. package/esm/FunnelChart/funnel.types.d.ts +5 -5
  199. package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +4 -4
  200. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +2 -2
  201. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +3 -3
  202. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
  203. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +2 -2
  204. package/esm/FunnelChart/funnelPlotSlots.types.d.ts +2 -2
  205. package/esm/FunnelChart/funnelSlots.types.d.ts +6 -6
  206. package/esm/FunnelChart/labelUtils.d.ts +2 -2
  207. package/esm/FunnelChart/seriesConfig/extremums.d.ts +1 -1
  208. package/esm/FunnelChart/seriesConfig/getColor.d.ts +1 -1
  209. package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  210. package/esm/FunnelChart/seriesConfig/legend.d.ts +1 -1
  211. package/esm/FunnelChart/seriesConfig/seriesProcessor.d.ts +1 -1
  212. package/esm/FunnelChart/seriesConfig/tooltip.d.ts +1 -1
  213. package/esm/FunnelChart/seriesConfig/tooltipPosition.d.ts +1 -1
  214. package/esm/FunnelChart/useFunnelChartProps.d.ts +7 -7
  215. package/esm/Heatmap/Heatmap.d.ts +13 -13
  216. package/esm/Heatmap/Heatmap.js +10 -0
  217. package/esm/Heatmap/Heatmap.plugins.d.ts +3 -3
  218. package/esm/Heatmap/Heatmap.plugins.js +2 -2
  219. package/esm/Heatmap/HeatmapItem.d.ts +2 -2
  220. package/esm/Heatmap/HeatmapPlot.d.ts +1 -1
  221. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +1 -1
  222. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
  223. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +1 -1
  224. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
  225. package/esm/Heatmap/seriesConfig/extremums.d.ts +1 -1
  226. package/esm/Heatmap/seriesConfig/getColor.d.ts +1 -1
  227. package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  228. package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
  229. package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +1 -1
  230. package/esm/Heatmap/seriesConfig/tooltip.d.ts +1 -1
  231. package/esm/Heatmap/seriesConfig/tooltipPosition.d.ts +1 -1
  232. package/esm/LineChartPro/LineChartPro.d.ts +5 -5
  233. package/esm/LineChartPro/LineChartPro.js +20 -0
  234. package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -4
  235. package/esm/LineChartPro/LineChartPro.plugins.js +2 -2
  236. package/esm/PieChartPro/PieChartPro.d.ts +5 -5
  237. package/esm/PieChartPro/PieChartPro.plugins.d.ts +3 -3
  238. package/esm/RadarChartPro/RadarChartPro.d.ts +4 -4
  239. package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +3 -3
  240. package/esm/RadarChartPro/RadarChartPro.plugins.js +2 -2
  241. package/esm/SankeyChart/SankeyChart.d.ts +1 -1
  242. package/esm/SankeyChart/SankeyChart.plugins.d.ts +3 -3
  243. package/esm/SankeyChart/SankeyChart.plugins.js +2 -2
  244. package/esm/SankeyChart/SankeyLinkElement.js +3 -3
  245. package/esm/SankeyChart/SankeyLinkLabel.d.ts +1 -1
  246. package/esm/SankeyChart/SankeyNodeElement.d.ts +0 -4
  247. package/esm/SankeyChart/SankeyNodeElement.js +7 -26
  248. package/esm/SankeyChart/SankeyNodeLabel.d.ts +12 -0
  249. package/esm/SankeyChart/SankeyNodeLabel.js +55 -0
  250. package/esm/SankeyChart/SankeyPlot.js +10 -7
  251. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
  252. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +1 -1
  253. package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
  254. package/esm/SankeyChart/calculateSankeyLayout.d.ts +2 -2
  255. package/esm/SankeyChart/calculateSankeyLayout.js +12 -33
  256. package/esm/SankeyChart/d3Sankey/align.d.ts +4 -4
  257. package/esm/SankeyChart/d3Sankey/sankey.d.ts +3 -3
  258. package/esm/SankeyChart/d3Sankey/sankey.js +4 -1
  259. package/esm/SankeyChart/d3Sankey/sankey.types.d.ts +76 -39
  260. package/esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +2 -2
  261. package/esm/SankeyChart/plugins/useSankeyHighlight.d.ts +1 -1
  262. package/esm/SankeyChart/plugins/useSankeyHighlight.js +1 -1
  263. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +2 -2
  264. package/esm/SankeyChart/plugins/useSankeyHighlight.types.d.ts +3 -3
  265. package/esm/SankeyChart/sankey.types.d.ts +32 -24
  266. package/esm/SankeyChart/sankeyClasses.d.ts +3 -1
  267. package/esm/SankeyChart/sankeyClasses.js +2 -1
  268. package/esm/SankeyChart/sankeySlots.types.d.ts +4 -4
  269. package/esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +63 -14
  270. package/esm/SankeyChart/seriesConfig/tooltipGetter.js +5 -2
  271. package/esm/SankeyChart/utils.d.ts +1 -1
  272. package/esm/ScatterChartPro/ScatterChartPro.d.ts +6 -6
  273. package/esm/ScatterChartPro/ScatterChartPro.js +20 -0
  274. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -4
  275. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
  276. package/esm/context/ChartProApi.d.ts +10 -10
  277. package/esm/context/useChartProApiContext.d.ts +1 -1
  278. package/esm/hooks/useChartProApiRef.d.ts +3 -3
  279. package/esm/hooks/useFunnelSeries.d.ts +1 -1
  280. package/esm/hooks/useHeatmapSeries.d.ts +1 -1
  281. package/esm/hooks/useSankeySeries.d.ts +2 -2
  282. package/esm/hooks/useSankeySeries.js +3 -2
  283. package/esm/hooks/zoom/useIsZoomInteracting.js +2 -2
  284. package/esm/index.js +1 -1
  285. package/esm/internals/index.d.ts +2 -0
  286. package/esm/internals/index.js +1 -0
  287. package/esm/internals/material/components/BaseMenuItem.d.ts +1 -1
  288. package/esm/internals/material/components/BasePopper.d.ts +1 -1
  289. package/esm/internals/material/index.d.ts +3 -3
  290. package/esm/internals/plugins/allPlugins.d.ts +7 -7
  291. package/esm/internals/plugins/allPlugins.js +3 -3
  292. package/esm/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
  293. package/esm/internals/plugins/useChartProExport/print.d.ts +1 -1
  294. package/esm/internals/plugins/useChartProExport/useChartProExport.d.ts +2 -2
  295. package/esm/internals/plugins/useChartProExport/useChartProExport.types.d.ts +1 -1
  296. package/esm/internals/plugins/useChartProZoom/calculateZoom.d.ts +1 -1
  297. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -2
  298. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +4 -4
  299. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -2
  300. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +4 -4
  301. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -2
  302. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +4 -4
  303. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +1 -1
  304. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -2
  305. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +4 -4
  306. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -2
  307. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +3 -3
  308. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -2
  309. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +4 -4
  310. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -2
  311. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +4 -4
  312. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -2
  313. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +4 -4
  314. package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
  315. package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +3 -3
  316. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +2 -2
  317. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
  318. package/esm/internals/slots/chartBaseSlotProps.d.ts +1 -1
  319. package/esm/internals/slots/chartsBaseSlots.d.ts +3 -3
  320. package/esm/internals/slots/chartsIconSlots.d.ts +2 -2
  321. package/esm/models/seriesType/heatmap.d.ts +2 -2
  322. package/esm/themeAugmentation/components.d.ts +1 -1
  323. package/esm/themeAugmentation/overrides.d.ts +1 -1
  324. package/esm/themeAugmentation/props.d.ts +4 -4
  325. package/esm/typeOverloads/modules.d.ts +7 -7
  326. package/hooks/useChartProApiRef.d.ts +3 -3
  327. package/hooks/useFunnelSeries.d.ts +1 -1
  328. package/hooks/useHeatmapSeries.d.ts +1 -1
  329. package/hooks/useSankeySeries.d.ts +2 -2
  330. package/hooks/useSankeySeries.js +2 -1
  331. package/hooks/zoom/useIsZoomInteracting.js +1 -1
  332. package/index.js +1 -1
  333. package/internals/index.d.ts +2 -0
  334. package/internals/index.js +12 -0
  335. package/internals/material/components/BaseMenuItem.d.ts +1 -1
  336. package/internals/material/components/BasePopper.d.ts +1 -1
  337. package/internals/material/index.d.ts +3 -3
  338. package/internals/plugins/allPlugins.d.ts +7 -7
  339. package/internals/plugins/allPlugins.js +2 -2
  340. package/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
  341. package/internals/plugins/useChartProExport/print.d.ts +1 -1
  342. package/internals/plugins/useChartProExport/useChartProExport.d.ts +2 -2
  343. package/internals/plugins/useChartProExport/useChartProExport.types.d.ts +1 -1
  344. package/internals/plugins/useChartProZoom/calculateZoom.d.ts +1 -1
  345. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -2
  346. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +3 -3
  347. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -2
  348. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +3 -3
  349. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -2
  350. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +3 -3
  351. package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +1 -1
  352. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -2
  353. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +3 -3
  354. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -2
  355. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +2 -2
  356. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -2
  357. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +3 -3
  358. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -2
  359. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +3 -3
  360. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -2
  361. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +3 -3
  362. package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
  363. package/internals/plugins/useChartProZoom/useChartProZoom.js +2 -2
  364. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +2 -2
  365. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
  366. package/internals/slots/chartBaseSlotProps.d.ts +1 -1
  367. package/internals/slots/chartsBaseSlots.d.ts +3 -3
  368. package/internals/slots/chartsIconSlots.d.ts +2 -2
  369. package/models/seriesType/heatmap.d.ts +2 -2
  370. package/package.json +5 -5
  371. package/themeAugmentation/components.d.ts +1 -1
  372. package/themeAugmentation/overrides.d.ts +1 -1
  373. package/themeAugmentation/props.d.ts +4 -4
  374. package/typeOverloads/modules.d.ts +7 -7
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["id", "color", "gradientId", "onClick"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
- import { useSelector, useStore, useAreaPlotData, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
6
+ import { useStore, useAreaPlotData, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  const AreaPlotRoot = styled('g', {
9
9
  name: 'MuiAreaPlot',
@@ -47,7 +47,7 @@ function PreviewAreaElement(_ref) {
47
47
  }
48
48
  function useAreaPreviewData(axisId) {
49
49
  const store = useStore();
50
- const xAxes = useSelector(store, selectorChartPreviewComputedXAxis, axisId);
51
- const yAxes = useSelector(store, selectorChartPreviewComputedYAxis, axisId);
50
+ const xAxes = store.use(selectorChartPreviewComputedXAxis, axisId);
51
+ const yAxes = store.use(selectorChartPreviewComputedYAxis, axisId);
52
52
  return useAreaPlotData(xAxes, yAxes);
53
53
  }
@@ -1,4 +1,4 @@
1
- import { PreviewPlotProps } from "./PreviewPlot.types.js";
1
+ import { type PreviewPlotProps } from "./PreviewPlot.types.js";
2
2
  interface BarPreviewPlotProps extends PreviewPlotProps {
3
3
  x: number;
4
4
  y: number;
@@ -1,4 +1,4 @@
1
- import { selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis, useBarPlotData, useSelector, useStore } from '@mui/x-charts/internals';
1
+ import { selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis, useBarPlotData, useStore } from '@mui/x-charts/internals';
2
2
  import { BarElement } from '@mui/x-charts/BarChart';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  export function BarPreviewPlot(props) {
@@ -48,7 +48,7 @@ export function BarPreviewPlot(props) {
48
48
  }
49
49
  function useBarPreviewData(axisId, drawingArea) {
50
50
  const store = useStore();
51
- const xAxes = useSelector(store, selectorChartPreviewComputedXAxis, axisId);
52
- const yAxes = useSelector(store, selectorChartPreviewComputedYAxis, axisId);
51
+ const xAxes = store.use(selectorChartPreviewComputedXAxis, axisId);
52
+ const yAxes = store.use(selectorChartPreviewComputedYAxis, axisId);
53
53
  return useBarPlotData(drawingArea, xAxes, yAxes);
54
54
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { SeriesId } from '@mui/x-charts/internals';
3
- import { PreviewPlotProps } from "./PreviewPlot.types.js";
2
+ import { type SeriesId } from '@mui/x-charts/internals';
3
+ import { type PreviewPlotProps } from "./PreviewPlot.types.js";
4
4
  interface LinePreviewPlotProps extends PreviewPlotProps {}
5
5
  export declare function LinePreviewPlot({
6
6
  axisId
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["id", "color", "gradientId", "onClick"];
4
4
  import * as React from 'react';
5
- import { useSelector, useStore, useLinePlotData, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
5
+ import { useStore, useLinePlotData, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  export function LinePreviewPlot({
8
8
  axisId
@@ -45,7 +45,7 @@ function PreviewLineElement(_ref) {
45
45
  }
46
46
  function useLinePreviewData(axisId) {
47
47
  const store = useStore();
48
- const xAxes = useSelector(store, selectorChartPreviewComputedXAxis, axisId);
49
- const yAxes = useSelector(store, selectorChartPreviewComputedYAxis, axisId);
48
+ const xAxes = store.use(selectorChartPreviewComputedXAxis, axisId);
49
+ const yAxes = store.use(selectorChartPreviewComputedYAxis, axisId);
50
50
  return useLinePlotData(xAxes, yAxes);
51
51
  }
@@ -1,4 +1,4 @@
1
- import { AxisId } from '@mui/x-charts/internals';
1
+ import { type AxisId } from '@mui/x-charts/internals';
2
2
  export interface PreviewPlotProps {
3
3
  axisId: AxisId;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { PreviewPlotProps } from "./PreviewPlot.types.js";
1
+ import { type PreviewPlotProps } from "./PreviewPlot.types.js";
2
2
  interface ScatterPreviewPlotProps extends PreviewPlotProps {
3
3
  x: number;
4
4
  y: number;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { useSelector, useStore, useScatterPlotData, scatterSeriesConfig, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
2
+ import { useStore, useScatterPlotData, scatterSeriesConfig, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
3
3
  import { useScatterSeriesContext, useXAxes, useYAxes, useZAxes } from '@mui/x-charts/hooks';
4
4
  import { ScatterMarker } from '@mui/x-charts/ScatterChart';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,8 +12,8 @@ export function ScatterPreviewPlot({
12
12
  }) {
13
13
  const store = useStore();
14
14
  const seriesData = useScatterSeriesContext();
15
- const xAxes = useSelector(store, selectorChartPreviewComputedXAxis, axisId);
16
- const yAxes = useSelector(store, selectorChartPreviewComputedYAxis, axisId);
15
+ const xAxes = store.use(selectorChartPreviewComputedXAxis, axisId);
16
+ const yAxes = store.use(selectorChartPreviewComputedYAxis, axisId);
17
17
  const defaultXAxisId = useXAxes().xAxisIds[0];
18
18
  const defaultYAxisId = useYAxes().yAxisIds[0];
19
19
  const {
@@ -1,5 +1,5 @@
1
- import { AxisId, ChartState, DefaultedXAxis, DefaultedYAxis, DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
2
- import { ChartDrawingArea } from '@mui/x-charts/hooks';
1
+ import { type AxisId, type ChartState, type DefaultedXAxis, type DefaultedYAxis, type DefaultizedZoomOptions, type ZoomData } from '@mui/x-charts/internals';
2
+ import { type ChartDrawingArea } from '@mui/x-charts/hooks';
3
3
  export declare function calculateZoomFromPoint(state: ChartState<any>, axisId: AxisId, point: DOMPoint): number | null;
4
4
  export declare function calculateZoomFromPointImpl(drawingArea: ChartDrawingArea, axis: Pick<DefaultedXAxis | DefaultedYAxis, 'position' | 'reverse'>, zoomOptions: Pick<DefaultizedZoomOptions, 'minStart' | 'maxEnd'>, point: Pick<DOMPoint, 'x' | 'y'>): number;
5
5
  export declare function calculateZoomStart(newStart: number, currentZoom: ZoomData, options: Pick<DefaultizedZoomOptions, 'minStart' | 'minSpan' | 'maxSpan'>): number;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
- import { ChartImageExportOptions } from "../internals/plugins/useChartProExport/index.js";
4
- import { ChartsSlotPropsPro } from "../internals/material/index.js";
2
+ import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
3
+ import { type ChartImageExportOptions } from "../internals/plugins/useChartProExport/index.js";
4
+ import { type ChartsSlotPropsPro } from "../internals/material/index.js";
5
5
  export interface ChartsToolbarImageExportOptions extends Omit<ChartImageExportOptions, 'type'>, Required<Pick<ChartImageExportOptions, 'type'>> {}
6
6
  export type ChartsToolbarImageExportTriggerProps = ChartsSlotPropsPro['baseButton'] & {
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
- import { ChartPrintExportOptions } from "../internals/plugins/useChartProExport/index.js";
4
- import { ChartsSlotPropsPro } from "../internals/material/index.js";
2
+ import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
3
+ import { type ChartPrintExportOptions } from "../internals/plugins/useChartProExport/index.js";
4
+ import { type ChartsSlotPropsPro } from "../internals/material/index.js";
5
5
  export interface ChartsToolbarPrintExportOptions extends ChartPrintExportOptions {
6
6
  /**
7
7
  * If `true`, this export option will be removed from the ChartsToolbarExport menu.
@@ -1,6 +1,6 @@
1
- import { ChartsToolbarProps } from '@mui/x-charts/Toolbar';
2
- import { ChartsToolbarPrintExportOptions } from "./ChartsToolbarPrintExportTrigger.js";
3
- import { ChartsToolbarImageExportOptions } from "./ChartsToolbarImageExportTrigger.js";
1
+ import { type ChartsToolbarProps } from '@mui/x-charts/Toolbar';
2
+ import { type ChartsToolbarPrintExportOptions } from "./ChartsToolbarPrintExportTrigger.js";
3
+ import { type ChartsToolbarImageExportOptions } from "./ChartsToolbarImageExportTrigger.js";
4
4
  export interface ChartsToolbarProProps extends ChartsToolbarProps {
5
5
  printOptions?: ChartsToolbarPrintExportOptions;
6
6
  imageExportOptions?: ChartsToolbarImageExportOptions[];
@@ -6,7 +6,7 @@ const _excluded = ["printOptions", "imageExportOptions"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { Toolbar, ToolbarButton } from '@mui/x-charts/Toolbar';
9
- import { useChartContext, useSelector, useChartsSlots } from '@mui/x-charts/internals';
9
+ import { useChartContext, useChartsSlots } from '@mui/x-charts/internals';
10
10
  import { useChartsLocalization } from '@mui/x-charts/hooks';
11
11
  import useId from '@mui/utils/useId';
12
12
  import { ChartsToolbarDivider } from "./internals/ChartsToolbarDivider.js";
@@ -44,7 +44,7 @@ function ChartsToolbarPro(_ref) {
44
44
  const exportMenuTriggerRef = React.useRef(null);
45
45
  const exportMenuId = useId();
46
46
  const exportMenuTriggerId = useId();
47
- const isZoomEnabled = useSelector(store, selectorChartZoomIsEnabled);
47
+ const isZoomEnabled = store.use(selectorChartZoomIsEnabled);
48
48
  const imageExportOptionList = rawImageExportOptions ?? DEFAULT_IMAGE_EXPORT_OPTIONS;
49
49
  const showExportMenu = !printOptions?.disableToolbarButton || imageExportOptionList.length > 0;
50
50
  const children = [];
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ChartsSlotProps } from '@mui/x-charts/internals';
3
- import { RenderProp } from '@mui/x-internals/useComponentRenderer';
2
+ import { type ChartsSlotProps } from '@mui/x-charts/internals';
3
+ import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
4
4
  interface ChartsToolbarZoomInTriggerProps {
5
5
  /**
6
6
  * A function to customize the rendering of the component.
@@ -5,7 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
5
5
  const _excluded = ["render"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { useChartContext, useSelector, useChartsSlots } from '@mui/x-charts/internals';
8
+ import { useChartContext, useChartsSlots } from '@mui/x-charts/internals';
9
9
  import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
10
10
  import { selectorChartCanZoomIn } from "../internals/plugins/useChartProZoom/index.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -26,7 +26,7 @@ const ChartsToolbarZoomInTrigger = /*#__PURE__*/React.forwardRef(function Charts
26
26
  instance,
27
27
  store
28
28
  } = useChartContext();
29
- const disabled = useSelector(store, selectorChartCanZoomIn);
29
+ const disabled = store.use(selectorChartCanZoomIn);
30
30
  const element = useComponentRenderer(slots.baseButton, render, _extends({}, slotProps.baseButton, {
31
31
  onClick: () => instance.zoomIn(),
32
32
  disabled
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ChartsSlotProps } from '@mui/x-charts/internals';
3
- import { RenderProp } from '@mui/x-internals/useComponentRenderer';
2
+ import { type ChartsSlotProps } from '@mui/x-charts/internals';
3
+ import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
4
4
  interface ChartsToolbarZoomOutTriggerProps {
5
5
  /**
6
6
  * A function to customize the rendering of the component.
@@ -5,7 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
5
5
  const _excluded = ["render"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { useChartContext, useSelector, useChartsSlots } from '@mui/x-charts/internals';
8
+ import { useChartContext, useChartsSlots } from '@mui/x-charts/internals';
9
9
  import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
10
10
  import { selectorChartCanZoomOut } from "../internals/plugins/useChartProZoom/index.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -26,7 +26,7 @@ const ChartsToolbarZoomOutTrigger = /*#__PURE__*/React.forwardRef(function Chart
26
26
  instance,
27
27
  store
28
28
  } = useChartContext();
29
- const disabled = useSelector(store, selectorChartCanZoomOut);
29
+ const disabled = store.use(selectorChartCanZoomOut);
30
30
  const element = useComponentRenderer(slots.baseButton, render, _extends({}, slotProps.baseButton, {
31
31
  onClick: () => instance.zoomOut(),
32
32
  disabled
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { ChartsToolbarProProps } from "./ChartsToolbarPro.js";
1
+ import type * as React from 'react';
2
+ import { type ChartsToolbarProProps } from "./ChartsToolbarPro.js";
3
3
  export interface ChartsToolbarProSlots {
4
4
  /**
5
5
  * Custom component for the toolbar.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ChartBasePopperProps, Placement } from "../../internals/slots/chartBaseSlotProps.js";
2
+ import { type ChartBasePopperProps, type Placement } from "../../internals/slots/chartBaseSlotProps.js";
3
3
  export interface ChartsMenuProps extends Pick<ChartBasePopperProps, 'className' | 'onExited'> {
4
4
  open: boolean;
5
5
  target: HTMLElement | null;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ChartBaseDividerProps } from "../../internals/slots/chartBaseSlotProps.js";
2
+ import { type ChartBaseDividerProps } from "../../internals/slots/chartBaseSlotProps.js";
3
3
  export interface ChartsToolbarDividerProps extends ChartBaseDividerProps {}
4
4
  declare const ChartsToolbarDivider: React.ForwardRefExoticComponent<Omit<ChartsToolbarDividerProps, "ref"> & React.RefAttributes<HTMLHRElement>>;
5
5
  export { ChartsToolbarDivider };
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
- import { ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
3
- import { MakeOptional } from '@mui/x-internals/types';
4
- import { ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
5
- import { FunnelPlotProps } from "./FunnelPlot.js";
6
- import { FunnelSeriesType } from "./funnel.types.js";
7
- import { ChartContainerProProps } from "../ChartContainerPro/index.js";
8
- import { FunnelChartSlotExtension } from "./funnelSlots.types.js";
9
- import { CategoryAxis } from "./categoryAxis.types.js";
10
- import { FunnelChartPluginSignatures } from "./FunnelChart.plugins.js";
2
+ import { type ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
3
+ import { type MakeOptional } from '@mui/x-internals/types';
4
+ import { type ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
5
+ import { type FunnelPlotProps } from "./FunnelPlot.js";
6
+ import { type FunnelSeriesType } from "./funnel.types.js";
7
+ import { type ChartContainerProProps } from "../ChartContainerPro/index.js";
8
+ import { type FunnelChartSlotExtension } from "./funnelSlots.types.js";
9
+ import { type CategoryAxis } from "./categoryAxis.types.js";
10
+ import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.js";
11
11
  export type FunnelSeries = MakeOptional<FunnelSeriesType, 'type'>;
12
12
  export interface FunnelChartProps extends Omit<ChartContainerProProps<'funnel', FunnelChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps' | 'experimentalFeatures'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
13
13
  /**
@@ -1,5 +1,5 @@
1
- import { ConvertSignaturesIntoPlugins, UseChartHighlightSignature, UseChartInteractionSignature } from '@mui/x-charts/internals';
2
- import { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
- import { UseChartFunnelAxisSignature } from "./funnelAxisPlugin/useChartFunnelAxis.types.js";
4
- export type FunnelChartPluginSignatures = [UseChartFunnelAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProExportSignature];
1
+ import { type ConvertSignaturesIntoPlugins, type UseChartHighlightSignature, type UseChartTooltipSignature, type UseChartInteractionSignature } from '@mui/x-charts/internals';
2
+ import { type UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
+ import { type UseChartFunnelAxisSignature } from "./funnelAxisPlugin/useChartFunnelAxis.types.js";
4
+ export type FunnelChartPluginSignatures = [UseChartFunnelAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProExportSignature];
5
5
  export declare const FUNNEL_CHART_PLUGINS: ConvertSignaturesIntoPlugins<FunnelChartPluginSignatures>;
@@ -1,4 +1,4 @@
1
- import { useChartHighlight, useChartInteraction } from '@mui/x-charts/internals';
1
+ import { useChartHighlight, useChartTooltip, useChartInteraction } from '@mui/x-charts/internals';
2
2
  import { useChartProExport } from "../internals/plugins/useChartProExport/index.js";
3
3
  import { useChartFunnelAxis } from "./funnelAxisPlugin/useChartFunnelAxis.js";
4
- export const FUNNEL_CHART_PLUGINS = [useChartFunnelAxis, useChartInteraction, useChartHighlight, useChartProExport];
4
+ export const FUNNEL_CHART_PLUGINS = [useChartFunnelAxis, useChartTooltip, useChartInteraction, useChartHighlight, useChartProExport];
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { FunnelItemIdentifier } from "./funnel.types.js";
3
- import { FunnelPlotSlotExtension } from "./funnelPlotSlots.types.js";
2
+ import { type FunnelItemIdentifier } from "./funnel.types.js";
3
+ import { type FunnelPlotSlotExtension } from "./funnelPlotSlots.types.js";
4
4
  export interface FunnelPlotProps extends FunnelPlotSlotExtension {
5
5
  /**
6
6
  * Callback fired when a funnel item is clicked.
@@ -4,7 +4,7 @@ const _excluded = ["onItemClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { line as d3Line } from '@mui/x-charts-vendor/d3-shape';
7
- import { cartesianSeriesTypes, useSelector, useStore } from '@mui/x-charts/internals';
7
+ import { cartesianSeriesTypes, useStore } from '@mui/x-charts/internals';
8
8
  import { FunnelSection } from "./FunnelSection.js";
9
9
  import { alignLabel, positionLabel } from "./labelUtils.js";
10
10
  import { useFunnelSeriesContext } from "../hooks/useFunnelSeries.js";
@@ -21,12 +21,12 @@ const useAggregatedData = () => {
21
21
  const {
22
22
  axis: xAxis,
23
23
  axisIds: xAxisIds
24
- } = useSelector(store, selectorChartXAxis);
24
+ } = store.use(selectorChartXAxis);
25
25
  const {
26
26
  axis: yAxis,
27
27
  axisIds: yAxisIds
28
- } = useSelector(store, selectorChartYAxis);
29
- const gap = useSelector(store, selectorFunnelGap);
28
+ } = store.use(selectorChartYAxis);
29
+ const gap = store.use(selectorFunnelGap);
30
30
  const allData = React.useMemo(() => {
31
31
  if (seriesData === undefined) {
32
32
  return [];
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { SeriesId } from '@mui/x-charts/internals';
3
- import { FunnelSectionClasses } from "./funnelSectionClasses.js";
2
+ import { type SeriesId } from '@mui/x-charts/internals';
3
+ import { type FunnelSectionClasses } from "./funnelSectionClasses.js";
4
4
  export interface FunnelSectionProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'id'> {
5
5
  seriesId: SeriesId;
6
6
  dataIndex: number;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { SeriesId } from '@mui/x-charts/internals';
3
- import { FunnelSectionClasses } from "./funnelSectionClasses.js";
2
+ import { type SeriesId } from '@mui/x-charts/internals';
3
+ import { type FunnelSectionClasses } from "./funnelSectionClasses.js";
4
4
  export interface FunnelSectionLabelConfig {
5
5
  x: number;
6
6
  y: number;
@@ -1,5 +1,5 @@
1
- import { AxisConfig, ScaleName } from '@mui/x-charts/models';
2
- import { MakeOptional } from '@mui/x-internals/types';
1
+ import { type AxisConfig, type ScaleName } from '@mui/x-charts/models';
2
+ import { type MakeOptional } from '@mui/x-internals/types';
3
3
  export type FunnelScaleName = Exclude<ScaleName, 'point'>;
4
4
  export type CategoryAxis<S extends FunnelScaleName = FunnelScaleName> = S extends FunnelScaleName ? {
5
5
  /**
@@ -1,3 +1,3 @@
1
- import { D3Scale } from '@mui/x-charts/internals';
2
- import { PositionGetter } from "./curves/curve.types.js";
1
+ import { type D3Scale } from '@mui/x-charts/internals';
2
+ import { type PositionGetter } from "./curves/curve.types.js";
3
3
  export declare const createPositionGetter: (scale: D3Scale, isCategoryDirection: boolean, gap: number) => PositionGetter;
@@ -1,4 +1,4 @@
1
- import { Point } from "./curve.types.js";
1
+ import { type Point } from "./curve.types.js";
2
2
  /**
3
3
  * Draws a polygon with rounded corners
4
4
  * @param {CanvasRenderingContext2D} ctx The canvas context
@@ -1,4 +1,4 @@
1
- import { FunnelCurveGenerator, CurveOptions, Point } from "./curve.types.js";
1
+ import { type FunnelCurveGenerator, type CurveOptions, type Point } from "./curve.types.js";
2
2
  /**
3
3
  * This is a custom "bump" curve generator.
4
4
  * It draws smooth curves for the 4 provided points,
@@ -1,4 +1,4 @@
1
- import { CurveGenerator } from '@mui/x-charts-vendor/d3-shape';
1
+ import { type CurveGenerator } from '@mui/x-charts-vendor/d3-shape';
2
2
  export type CurveOptions = {
3
3
  /**
4
4
  * The gap between each segment.
@@ -1,5 +1,5 @@
1
1
  import type { Path } from '@mui/x-charts-vendor/d3-path';
2
- import { CurveOptions, FunnelCurveType } from "./curve.types.js";
2
+ import { type CurveOptions, type FunnelCurveType } from "./curve.types.js";
3
3
  import { Step } from "./step.js";
4
4
  import { Linear } from "./linear.js";
5
5
  import { Bump } from "./bump.js";
@@ -1,4 +1,4 @@
1
- import { FunnelCurveGenerator, CurveOptions, Point } from "./curve.types.js";
1
+ import { type FunnelCurveGenerator, type CurveOptions, type Point } from "./curve.types.js";
2
2
  /**
3
3
  * This is a custom "linear" curve generator.
4
4
  * It draws straight lines for the 4 provided points,
@@ -1,4 +1,4 @@
1
- import { FunnelCurveGenerator, CurveOptions, Point } from "./curve.types.js";
1
+ import { type FunnelCurveGenerator, type CurveOptions, type Point } from "./curve.types.js";
2
2
  /**
3
3
  * This is a custom "pyramid" curve generator.
4
4
  * It draws straight lines for the 4 provided points. The slopes are calculated
@@ -1,4 +1,4 @@
1
- import { FunnelCurveGenerator, CurveOptions, Point } from "./curve.types.js";
1
+ import { type FunnelCurveGenerator, type CurveOptions, type Point } from "./curve.types.js";
2
2
  /**
3
3
  * This is a custom "step-pyramid" curve generator.
4
4
  * It creates a step pyramid, which is a step-like shape with static lengths.
@@ -1,4 +1,4 @@
1
- import { FunnelCurveGenerator, CurveOptions, Point } from "./curve.types.js";
1
+ import { type FunnelCurveGenerator, type CurveOptions, type Point } from "./curve.types.js";
2
2
  /**
3
3
  * This is a custom "step" curve generator.
4
4
  * It is used to draw "rectangles" from 4 points without having to rework the rendering logic,
@@ -1,8 +1,8 @@
1
- import { ChartsLabelMarkProps } from '@mui/x-charts/ChartsLabel';
2
- import { CommonSeriesType, CartesianSeriesType, CommonDefaultizedProps, SeriesId } from '@mui/x-charts/internals';
3
- import { Position } from '@mui/x-charts/models';
4
- import { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
5
- import { FunnelCurveType } from "./curves/index.js";
1
+ import { type ChartsLabelMarkProps } from '@mui/x-charts/ChartsLabel';
2
+ import { type CommonSeriesType, type CartesianSeriesType, type CommonDefaultizedProps, type SeriesId } from '@mui/x-charts/internals';
3
+ import { type Position } from '@mui/x-charts/models';
4
+ import { type DefaultizedProps, type MakeRequired } from '@mui/x-internals/types';
5
+ import { type FunnelCurveType } from "./curves/index.js";
6
6
  export type FunnelItemId = string | number;
7
7
  export type FunnelValueType = {
8
8
  /**
@@ -1,7 +1,7 @@
1
- import { ChartsAxisProps } from '@mui/x-charts/ChartsAxis';
2
- import { ChartDrawingArea } from '@mui/x-charts/hooks';
3
- import { ComputedAxisConfig, ChartSeriesType, ProcessedSeries, ChartSeriesConfig, DefaultedYAxis, DefaultedXAxis } from '@mui/x-charts/internals';
4
- import { ChartsXAxisProps, ChartsYAxisProps } from '@mui/x-charts/models';
1
+ import { type ChartsAxisProps } from '@mui/x-charts/ChartsAxis';
2
+ import { type ChartDrawingArea } from '@mui/x-charts/hooks';
3
+ import { type ComputedAxisConfig, type ChartSeriesType, type ProcessedSeries, type ChartSeriesConfig, type DefaultedYAxis, type DefaultedXAxis } from '@mui/x-charts/internals';
4
+ import { type ChartsXAxisProps, type ChartsYAxisProps } from '@mui/x-charts/models';
5
5
  export declare const xRangeGetter: (drawingArea: ChartDrawingArea, reverse?: boolean, removedSpace?: number) => [number, number];
6
6
  export declare const yRangeGetter: (drawingArea: ChartDrawingArea, reverse?: boolean, removedSpace?: number) => [number, number];
7
7
  export type ComputeResult<T extends ChartsAxisProps> = {
@@ -1,3 +1,3 @@
1
- import { ChartPlugin } from '@mui/x-charts/internals';
2
- import { UseChartFunnelAxisSignature } from "./useChartFunnelAxis.types.js";
1
+ import { type ChartPlugin } from '@mui/x-charts/internals';
2
+ import { type UseChartFunnelAxisSignature } from "./useChartFunnelAxis.types.js";
3
3
  export declare const useChartFunnelAxis: ChartPlugin<UseChartFunnelAxisSignature>;
@@ -3,7 +3,7 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
5
  import { warnOnce } from '@mui/x-internals/warning';
6
- import { getSVGPoint, getCartesianAxisIndex, selectorChartDrawingArea, selectorChartSeriesProcessed, selectorChartsInteractionIsInitialized, useSelector, defaultizeXAxis, defaultizeYAxis } from '@mui/x-charts/internals';
6
+ import { getSVGPoint, getCartesianAxisIndex, selectorChartDrawingArea, selectorChartSeriesProcessed, selectorChartsInteractionIsInitialized, defaultizeXAxis, defaultizeYAxis } from '@mui/x-charts/internals';
7
7
  import { selectorChartXAxis, selectorChartYAxis } from "./useChartFunnelAxisRendering.selectors.js";
8
8
  export const useChartFunnelAxis = ({
9
9
  params,
@@ -25,8 +25,8 @@ export const useChartFunnelAxis = ({
25
25
  warnOnce([`MUI X Charts: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'), 'error');
26
26
  }
27
27
  }
28
- const drawingArea = useSelector(store, selectorChartDrawingArea);
29
- const isInteractionEnabled = useSelector(store, selectorChartsInteractionIsInitialized);
28
+ const drawingArea = store.use(selectorChartDrawingArea);
29
+ const isInteractionEnabled = store.use(selectorChartsInteractionIsInitialized);
30
30
  const isFirstRender = React.useRef(true);
31
31
  React.useEffect(() => {
32
32
  if (isFirstRender.current) {
@@ -1,4 +1,4 @@
1
- import { ChartPluginSignature, UseChartCartesianAxisDefaultizedParameters, UseChartCartesianAxisParameters, UseChartCartesianAxisState, UseChartInteractionSignature, UseChartSeriesSignature, ChartsAxisData } from '@mui/x-charts/internals';
1
+ import { type ChartPluginSignature, type UseChartCartesianAxisDefaultizedParameters, type UseChartCartesianAxisParameters, type UseChartCartesianAxisState, type UseChartInteractionSignature, type UseChartSeriesSignature, type ChartsAxisData } from '@mui/x-charts/internals';
2
2
  export type UseChartFunnelAxisSignature = ChartPluginSignature<{
3
3
  params: Omit<UseChartCartesianAxisParameters, 'onAxisClick' | 'onHighlightedAxisChange' | 'highlightedAxis'> & {
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { ChartState } from '@mui/x-charts/internals';
2
- import { UseChartFunnelAxisSignature } from "./useChartFunnelAxis.types.js";
1
+ import { type ChartState } from '@mui/x-charts/internals';
2
+ import { type UseChartFunnelAxisSignature } from "./useChartFunnelAxis.types.js";
3
3
  export declare const selectorFunnel: (state: ChartState<[], [UseChartFunnelAxisSignature]>) => {
4
4
  gap: number;
5
5
  } | undefined;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { FunnelSectionProps } from "./FunnelSection.js";
3
- import { FunnelSectionLabelProps } from "./FunnelSectionLabel.js";
3
+ import { type FunnelSectionLabelProps } from "./FunnelSectionLabel.js";
4
4
  export interface FunnelPlotSlots {
5
5
  /**
6
6
  * Custom component for funnel section.
@@ -1,9 +1,9 @@
1
- import { ChartsOverlaySlotProps, ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
2
- import { ChartsTooltipProps, ChartsTooltipSlotProps, ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
3
- import { ChartsAxisSlotProps, ChartsAxisSlots, ChartsSlotProps, ChartsSlots } from '@mui/x-charts/internals';
4
- import { ChartsLegendSlotProps, ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
5
- import { ChartsToolbarSlotProps, ChartsToolbarSlots } from '@mui/x-charts/Toolbar';
6
- import { FunnelPlotSlotProps, FunnelPlotSlots } from "./funnelPlotSlots.types.js";
1
+ import { type ChartsOverlaySlotProps, type ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
2
+ import { type ChartsTooltipProps, type ChartsTooltipSlotProps, type ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
3
+ import { type ChartsAxisSlotProps, type ChartsAxisSlots, type ChartsSlotProps, type ChartsSlots } from '@mui/x-charts/internals';
4
+ import { type ChartsLegendSlotProps, type ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
5
+ import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from '@mui/x-charts/Toolbar';
6
+ import { type FunnelPlotSlotProps, type FunnelPlotSlots } from "./funnelPlotSlots.types.js";
7
7
  export interface FunnelChartSlots extends ChartsAxisSlots, FunnelPlotSlots, ChartsLegendSlots, ChartsTooltipSlots, ChartsOverlaySlots, ChartsAxisSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
8
8
  export interface FunnelChartSlotProps extends ChartsAxisSlotProps, FunnelPlotSlotProps, ChartsLegendSlotProps, Omit<ChartsTooltipSlotProps, 'tooltip'>, ChartsOverlaySlotProps, ChartsAxisSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {
9
9
  /**
@@ -1,5 +1,5 @@
1
- import { FunnelLabelOptions } from "./funnel.types.js";
2
- import { Point } from "./curves/index.js";
1
+ import { type FunnelLabelOptions } from "./funnel.types.js";
2
+ import { type Point } from "./curves/index.js";
3
3
  type AlignReturnType = {
4
4
  textAnchor: FunnelLabelOptions['textAnchor'];
5
5
  dominantBaseline: Exclude<FunnelLabelOptions['dominantBaseline'], 'baseline'>;
@@ -1,3 +1,3 @@
1
- import { CartesianExtremumGetter } from '@mui/x-charts/internals';
1
+ import { type CartesianExtremumGetter } from '@mui/x-charts/internals';
2
2
  export declare const getExtremumX: CartesianExtremumGetter<'funnel'>;
3
3
  export declare const getExtremumY: CartesianExtremumGetter<'funnel'>;
@@ -1,3 +1,3 @@
1
- import { ColorProcessor } from '@mui/x-charts/internals';
1
+ import { type ColorProcessor } from '@mui/x-charts/internals';
2
2
  declare const getColor: ColorProcessor<'funnel'>;
3
3
  export default getColor;
@@ -1,3 +1,3 @@
1
- import { GetSeriesWithDefaultValues } from '@mui/x-charts/internals';
1
+ import { type GetSeriesWithDefaultValues } from '@mui/x-charts/internals';
2
2
  declare const getSeriesWithDefaultValues: GetSeriesWithDefaultValues<'funnel'>;
3
3
  export default getSeriesWithDefaultValues;
@@ -1,3 +1,3 @@
1
- import { LegendGetter } from '@mui/x-charts/internals';
1
+ import { type LegendGetter } from '@mui/x-charts/internals';
2
2
  declare const legendGetter: LegendGetter<'funnel'>;
3
3
  export default legendGetter;
@@ -1,3 +1,3 @@
1
- import { SeriesProcessor } from '@mui/x-charts/internals';
1
+ import { type SeriesProcessor } from '@mui/x-charts/internals';
2
2
  declare const seriesProcessor: SeriesProcessor<'funnel'>;
3
3
  export default seriesProcessor;
@@ -1,3 +1,3 @@
1
- import { TooltipGetter } from '@mui/x-charts/internals';
1
+ import { type TooltipGetter } from '@mui/x-charts/internals';
2
2
  declare const tooltipGetter: TooltipGetter<'funnel'>;
3
3
  export default tooltipGetter;
@@ -1,3 +1,3 @@
1
- import { TooltipItemPositionGetter } from '@mui/x-charts/internals';
1
+ import { type TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
2
  declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'funnel'>;
3
3
  export default tooltipItemPositionGetter;