@mui/x-charts-pro 8.0.0-alpha.11 → 8.0.0-alpha.13

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 (323) hide show
  1. package/BarChartPro/BarChartPro.d.ts +3 -4
  2. package/BarChartPro/BarChartPro.js +245 -244
  3. package/BarChartPro/BarChartPro.plugins.d.ts +3 -9
  4. package/BarChartPro/BarChartPro.plugins.js +9 -3
  5. package/BarChartPro/index.d.ts +1 -1
  6. package/BarChartPro/index.js +16 -1
  7. package/CHANGELOG.md +460 -1
  8. package/ChartContainerPro/ChartContainerPro.d.ts +5 -5
  9. package/ChartContainerPro/ChartContainerPro.js +179 -173
  10. package/ChartContainerPro/index.d.ts +2 -1
  11. package/ChartContainerPro/index.js +17 -1
  12. package/ChartContainerPro/useChartContainerProProps.d.ts +3 -3
  13. package/ChartContainerPro/useChartContainerProProps.js +20 -11
  14. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
  15. package/ChartDataProviderPro/ChartDataProviderPro.js +37 -30
  16. package/ChartDataProviderPro/index.d.ts +2 -1
  17. package/ChartDataProviderPro/index.js +17 -1
  18. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +4 -4
  19. package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -4
  20. package/Heatmap/Heatmap.d.ts +45 -44
  21. package/Heatmap/Heatmap.js +232 -241
  22. package/Heatmap/Heatmap.plugins.d.ts +2 -7
  23. package/Heatmap/Heatmap.plugins.js +8 -2
  24. package/Heatmap/HeatmapItem.d.ts +33 -33
  25. package/Heatmap/HeatmapItem.js +39 -32
  26. package/Heatmap/HeatmapPlot.d.ts +4 -5
  27. package/Heatmap/HeatmapPlot.js +22 -16
  28. package/Heatmap/HeatmapTooltip.d.ts +3 -4
  29. package/Heatmap/HeatmapTooltip.js +97 -89
  30. package/Heatmap/heatmapClasses.d.ts +7 -7
  31. package/Heatmap/heatmapClasses.js +15 -7
  32. package/Heatmap/index.d.ts +4 -4
  33. package/Heatmap/index.js +47 -4
  34. package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
  35. package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
  36. package/Heatmap/seriesConfig/index.d.ts +2 -0
  37. package/{node/Heatmap/plugin.js → Heatmap/seriesConfig/index.js} +4 -4
  38. package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  39. package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  40. package/Heatmap/{tooltip.d.ts → seriesConfig/tooltip.d.ts} +1 -1
  41. package/LineChartPro/LineChartPro.d.ts +3 -4
  42. package/LineChartPro/LineChartPro.js +257 -256
  43. package/LineChartPro/LineChartPro.plugins.d.ts +3 -9
  44. package/LineChartPro/LineChartPro.plugins.js +9 -3
  45. package/LineChartPro/index.d.ts +1 -1
  46. package/LineChartPro/index.js +16 -1
  47. package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
  48. package/ScatterChartPro/ScatterChartPro.js +234 -235
  49. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -10
  50. package/ScatterChartPro/ScatterChartPro.plugins.js +9 -3
  51. package/ScatterChartPro/index.d.ts +1 -1
  52. package/ScatterChartPro/index.js +16 -1
  53. package/esm/BarChartPro/BarChartPro.d.ts +17 -0
  54. package/esm/BarChartPro/BarChartPro.js +450 -0
  55. package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  56. package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
  57. package/esm/BarChartPro/index.d.ts +1 -0
  58. package/esm/BarChartPro/index.js +1 -0
  59. package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  60. package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
  61. package/esm/ChartContainerPro/index.d.ts +2 -0
  62. package/esm/ChartContainerPro/index.js +2 -0
  63. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  64. package/esm/ChartContainerPro/useChartContainerProProps.js +35 -0
  65. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  66. package/{node → esm}/ChartDataProviderPro/ChartDataProviderPro.js +31 -36
  67. package/esm/ChartDataProviderPro/index.d.ts +2 -0
  68. package/esm/ChartDataProviderPro/index.js +2 -0
  69. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  70. package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
  71. package/esm/Heatmap/Heatmap.d.ts +57 -0
  72. package/esm/Heatmap/Heatmap.js +387 -0
  73. package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
  74. package/esm/Heatmap/Heatmap.plugins.js +2 -0
  75. package/esm/Heatmap/HeatmapItem.d.ts +49 -0
  76. package/esm/Heatmap/HeatmapItem.js +106 -0
  77. package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
  78. package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
  79. package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
  80. package/esm/Heatmap/HeatmapTooltip.js +276 -0
  81. package/esm/Heatmap/heatmapClasses.d.ts +11 -0
  82. package/esm/Heatmap/heatmapClasses.js +14 -0
  83. package/esm/Heatmap/index.d.ts +4 -0
  84. package/esm/Heatmap/index.js +4 -0
  85. package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
  86. package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
  87. package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
  88. package/{Heatmap/plugin.js → esm/Heatmap/seriesConfig/index.js} +3 -3
  89. package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  90. package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  91. package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  92. package/esm/LineChartPro/LineChartPro.d.ts +16 -0
  93. package/esm/LineChartPro/LineChartPro.js +501 -0
  94. package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  95. package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
  96. package/esm/LineChartPro/index.d.ts +1 -0
  97. package/esm/LineChartPro/index.js +1 -0
  98. package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  99. package/esm/ScatterChartPro/ScatterChartPro.js +395 -0
  100. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  101. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
  102. package/esm/ScatterChartPro/index.d.ts +1 -0
  103. package/esm/ScatterChartPro/index.js +1 -0
  104. package/esm/hooks/index.d.ts +2 -0
  105. package/esm/hooks/index.js +2 -0
  106. package/esm/hooks/useHeatmapSeries.d.ts +33 -0
  107. package/esm/hooks/useHeatmapSeries.js +42 -0
  108. package/esm/hooks/zoom/index.d.ts +1 -0
  109. package/esm/hooks/zoom/index.js +1 -0
  110. package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  111. package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
  112. package/esm/index.d.ts +32 -0
  113. package/esm/index.js +43 -0
  114. package/esm/internals/plugins/allPlugins.d.ts +5 -0
  115. package/esm/internals/plugins/allPlugins.js +5 -0
  116. package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
  117. package/esm/internals/plugins/useChartProZoom/index.js +3 -0
  118. package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  119. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +94 -54
  120. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
  121. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
  122. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
  123. package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  124. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
  125. package/esm/internals/utils/releaseInfo.d.ts +1 -0
  126. package/esm/internals/utils/releaseInfo.js +13 -0
  127. package/esm/models/index.d.ts +2 -0
  128. package/esm/models/index.js +2 -0
  129. package/esm/models/seriesType/heatmap.d.ts +28 -0
  130. package/esm/models/seriesType/index.d.ts +1 -0
  131. package/esm/models/seriesType/index.js +1 -0
  132. package/esm/package.json +1 -0
  133. package/esm/themeAugmentation/components.d.ts +23 -0
  134. package/esm/themeAugmentation/index.d.ts +4 -0
  135. package/esm/themeAugmentation/index.js +0 -0
  136. package/esm/themeAugmentation/overrides.d.ts +11 -0
  137. package/esm/themeAugmentation/props.d.ts +20 -0
  138. package/esm/typeOverloads/index.d.ts +1 -0
  139. package/esm/typeOverloads/index.js +1 -0
  140. package/esm/typeOverloads/modules.d.ts +22 -0
  141. package/esm/typeOverloads/modules.js +1 -0
  142. package/hooks/index.d.ts +2 -2
  143. package/hooks/index.js +27 -2
  144. package/hooks/useHeatmapSeries.d.ts +33 -0
  145. package/hooks/useHeatmapSeries.js +48 -0
  146. package/hooks/zoom/index.d.ts +1 -1
  147. package/hooks/zoom/index.js +16 -1
  148. package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
  149. package/hooks/zoom/useIsZoomInteracting.js +10 -5
  150. package/index.d.ts +8 -7
  151. package/index.js +347 -36
  152. package/internals/plugins/allPlugins.d.ts +3 -9
  153. package/internals/plugins/allPlugins.js +9 -3
  154. package/internals/plugins/useChartProZoom/index.d.ts +3 -3
  155. package/internals/plugins/useChartProZoom/index.js +38 -3
  156. package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
  157. package/internals/plugins/useChartProZoom/useChartProZoom.js +101 -47
  158. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +154 -328
  159. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
  160. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +42 -39
  161. package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
  162. package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
  163. package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
  164. package/internals/utils/releaseInfo.d.ts +1 -1
  165. package/internals/utils/releaseInfo.js +13 -5
  166. package/models/index.d.ts +1 -1
  167. package/models/index.js +16 -2
  168. package/models/seriesType/heatmap.d.ts +18 -19
  169. package/models/seriesType/heatmap.js +5 -1
  170. package/models/seriesType/index.d.ts +1 -1
  171. package/models/seriesType/index.js +16 -1
  172. package/modern/BarChartPro/BarChartPro.d.ts +17 -0
  173. package/modern/BarChartPro/BarChartPro.js +25 -30
  174. package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  175. package/modern/BarChartPro/index.d.ts +1 -0
  176. package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  177. package/modern/ChartContainerPro/ChartContainerPro.js +1 -1
  178. package/modern/ChartContainerPro/index.d.ts +2 -0
  179. package/modern/ChartContainerPro/index.js +1 -0
  180. package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  181. package/modern/ChartContainerPro/useChartContainerProProps.js +3 -1
  182. package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  183. package/modern/ChartDataProviderPro/ChartDataProviderPro.js +3 -2
  184. package/modern/ChartDataProviderPro/index.d.ts +2 -0
  185. package/modern/ChartDataProviderPro/index.js +1 -0
  186. package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  187. package/modern/Heatmap/Heatmap.d.ts +57 -0
  188. package/modern/Heatmap/Heatmap.js +39 -54
  189. package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
  190. package/modern/Heatmap/HeatmapItem.d.ts +49 -0
  191. package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
  192. package/modern/Heatmap/HeatmapPlot.js +2 -2
  193. package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
  194. package/modern/Heatmap/HeatmapTooltip.js +6 -4
  195. package/modern/Heatmap/heatmapClasses.d.ts +11 -0
  196. package/modern/Heatmap/index.d.ts +4 -0
  197. package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
  198. package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
  199. package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
  200. package/modern/Heatmap/{plugin.js → seriesConfig/index.js} +3 -3
  201. package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  202. package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
  203. package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  204. package/modern/LineChartPro/LineChartPro.d.ts +16 -0
  205. package/modern/LineChartPro/LineChartPro.js +25 -30
  206. package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  207. package/modern/LineChartPro/index.d.ts +1 -0
  208. package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  209. package/modern/ScatterChartPro/ScatterChartPro.js +26 -33
  210. package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  211. package/modern/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
  212. package/modern/ScatterChartPro/index.d.ts +1 -0
  213. package/modern/hooks/index.d.ts +2 -0
  214. package/modern/hooks/index.js +1 -1
  215. package/modern/hooks/useHeatmapSeries.d.ts +33 -0
  216. package/modern/hooks/useHeatmapSeries.js +42 -0
  217. package/modern/hooks/zoom/index.d.ts +1 -0
  218. package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  219. package/modern/index.d.ts +32 -0
  220. package/modern/index.js +2 -2
  221. package/modern/internals/plugins/allPlugins.d.ts +5 -0
  222. package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
  223. package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  224. package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +65 -18
  225. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
  226. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
  227. package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
  228. package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  229. package/modern/internals/utils/releaseInfo.d.ts +1 -0
  230. package/modern/internals/utils/releaseInfo.js +1 -1
  231. package/modern/models/index.d.ts +2 -0
  232. package/modern/models/seriesType/heatmap.d.ts +28 -0
  233. package/modern/models/seriesType/index.d.ts +1 -0
  234. package/modern/package.json +1 -0
  235. package/modern/themeAugmentation/components.d.ts +23 -0
  236. package/modern/themeAugmentation/index.d.ts +4 -0
  237. package/modern/themeAugmentation/overrides.d.ts +11 -0
  238. package/modern/themeAugmentation/props.d.ts +20 -0
  239. package/modern/typeOverloads/index.d.ts +1 -0
  240. package/modern/typeOverloads/modules.d.ts +22 -0
  241. package/package.json +41 -11
  242. package/themeAugmentation/components.d.ts +1 -3
  243. package/themeAugmentation/index.d.ts +1 -1
  244. package/themeAugmentation/index.js +1 -0
  245. package/themeAugmentation/overrides.d.ts +2 -4
  246. package/themeAugmentation/props.d.ts +5 -7
  247. package/tsconfig.build.tsbuildinfo +1 -0
  248. package/typeOverloads/index.d.ts +1 -1
  249. package/typeOverloads/index.js +6 -1
  250. package/typeOverloads/modules.d.ts +20 -23
  251. package/typeOverloads/modules.js +5 -1
  252. package/BarChartPro/package.json +0 -6
  253. package/ChartContainerPro/package.json +0 -6
  254. package/ChartDataProviderPro/package.json +0 -6
  255. package/Heatmap/formatter.d.ts +0 -3
  256. package/Heatmap/package.json +0 -6
  257. package/Heatmap/plugin.d.ts +0 -2
  258. package/LineChartPro/package.json +0 -6
  259. package/ScatterChartPro/package.json +0 -6
  260. package/hooks/package.json +0 -6
  261. package/hooks/useSeries.d.ts +0 -9
  262. package/hooks/useSeries.js +0 -16
  263. package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
  264. package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  265. package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
  266. package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  267. package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
  268. package/models/package.json +0 -6
  269. package/modern/hooks/useSeries.js +0 -16
  270. package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  271. package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  272. package/node/BarChartPro/BarChartPro.js +0 -461
  273. package/node/BarChartPro/BarChartPro.plugins.js +0 -9
  274. package/node/BarChartPro/index.js +0 -16
  275. package/node/ChartContainerPro/ChartContainerPro.js +0 -296
  276. package/node/ChartContainerPro/index.js +0 -16
  277. package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
  278. package/node/ChartDataProviderPro/index.js +0 -16
  279. package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -21
  280. package/node/Heatmap/Heatmap.js +0 -408
  281. package/node/Heatmap/Heatmap.plugins.js +0 -8
  282. package/node/Heatmap/HeatmapItem.js +0 -113
  283. package/node/Heatmap/HeatmapTooltip.js +0 -280
  284. package/node/Heatmap/heatmapClasses.js +0 -22
  285. package/node/Heatmap/index.js +0 -47
  286. package/node/LineChartPro/LineChartPro.js +0 -512
  287. package/node/LineChartPro/LineChartPro.plugins.js +0 -9
  288. package/node/LineChartPro/index.js +0 -16
  289. package/node/ScatterChartPro/ScatterChartPro.js +0 -408
  290. package/node/ScatterChartPro/ScatterChartPro.plugins.js +0 -9
  291. package/node/ScatterChartPro/index.js +0 -16
  292. package/node/hooks/index.js +0 -27
  293. package/node/hooks/useSeries.js +0 -21
  294. package/node/hooks/zoom/index.js +0 -16
  295. package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
  296. package/node/index.js +0 -354
  297. package/node/internals/plugins/allPlugins.js +0 -11
  298. package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
  299. package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
  300. package/node/internals/plugins/useChartProZoom/index.js +0 -38
  301. package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
  302. package/node/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -5
  303. package/node/internals/plugins/useChartProZoom/zoom.types.js +0 -5
  304. package/node/internals/utils/releaseInfo.js +0 -21
  305. package/node/models/index.js +0 -16
  306. package/node/models/seriesType/heatmap.js +0 -5
  307. package/node/models/seriesType/index.js +0 -16
  308. package/node/themeAugmentation/index.js +0 -1
  309. package/node/typeOverloads/index.js +0 -6
  310. package/node/typeOverloads/modules.js +0 -5
  311. package/themeAugmentation/package.json +0 -6
  312. package/typeOverloads/package.json +0 -6
  313. /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
  314. /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
  315. /package/{node/Heatmap → Heatmap/seriesConfig}/tooltip.js +0 -0
  316. /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
  317. /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
  318. /package/{Heatmap → esm/Heatmap/seriesConfig}/tooltip.js +0 -0
  319. /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/internals/plugins/useChartProZoom/useChartProZoom.types.js} +0 -0
  320. /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/models/seriesType/heatmap.js} +0 -0
  321. /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
  322. /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
  323. /package/modern/Heatmap/{tooltip.js → seriesConfig/tooltip.js} +0 -0
@@ -1,50 +1,53 @@
1
- import { AxisId, UseChartSeriesSignature, ChartPluginSignature, DefaultizedZoomOptions, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData } from '@mui/x-charts/internals';
1
+ import { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData } from '@mui/x-charts/internals';
2
2
  export interface UseChartProZoomParameters {
3
+ /**
4
+ * The list of zoom data related to each axis.
5
+ * Used to initialize the zoom in a specific configuration without controlling it.
6
+ */
7
+ initialZoom?: readonly ZoomData[];
8
+ /**
9
+ * Callback fired when the zoom has changed.
10
+ *
11
+ * @param {ZoomData[]} zoomData Updated zoom data.
12
+ */
13
+ onZoomChange?: (zoomData: ZoomData[]) => void;
14
+ /**
15
+ * The list of zoom data related to each axis.
16
+ */
17
+ zoomData?: readonly ZoomData[];
18
+ }
19
+ export type UseChartProZoomDefaultizedParameters = UseChartProZoomParameters & UseChartCartesianAxisDefaultizedParameters;
20
+ export interface UseChartProZoomState {
21
+ zoom: {
3
22
  /**
4
- * The list of zoom data related to each axis.
23
+ * Whether the user is currently interacting with the chart.
24
+ * This is useful to disable animations while the user is interacting.
5
25
  */
6
- initialZoom?: ZoomData[];
26
+ isInteracting: boolean;
7
27
  /**
8
- * Callback fired when the zoom has changed.
9
- *
10
- * @param {ZoomData[]} zoomData Updated zoom data.
28
+ * Mapping of axis id to the zoom data.
11
29
  */
12
- onZoomChange?: (zoomData: ZoomData[] | ((zoomData: ZoomData[]) => ZoomData[])) => void;
13
- }
14
- export type UseChartProZoomDefaultizedParameters = UseChartProZoomParameters & UseChartCartesianAxisDefaultizedParameters & {
30
+ zoomData: readonly ZoomData[];
15
31
  /**
16
- * The zoom options for each axis.
32
+ * Internal information to know if the user control the state or not.
17
33
  */
18
- optionsLookup: Record<AxisId, DefaultizedZoomOptions>;
19
- };
20
- export interface UseChartProZoomState {
21
- zoom: {
22
- /**
23
- * Whether the user is currently interacting with the chart.
24
- * This is useful to disable animations while the user is interacting.
25
- */
26
- isInteracting: boolean;
27
- /**
28
- * Mapping of axis id to the zoom data.
29
- */
30
- zoomData: ZoomData[];
31
- };
34
+ isControlled: boolean;
35
+ };
32
36
  }
33
37
  export interface UseChartProZoomPublicApi {
34
- /**
35
- * Set the zoom data state.
36
- * @param {ZoomData[] | ((prev: ZoomData[]) => ZoomData[])} value The new value. Can either be the new zoom data, or an updater function.
37
- * @returns {void}
38
- */
39
- setZoomData: (value: ZoomData[] | ((prev: ZoomData[]) => ZoomData[])) => void;
40
- }
41
- export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {
38
+ /**
39
+ * Set the zoom data state.
40
+ * @param {ZoomData[] | ((prev: ZoomData[]) => ZoomData[])} value The new value. Can either be the new zoom data, or an updater function.
41
+ * @returns {void}
42
+ */
43
+ setZoomData: (value: ZoomData[] | ((prev: ZoomData[]) => ZoomData[])) => void;
42
44
  }
45
+ export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {}
43
46
  export type UseChartProZoomSignature = ChartPluginSignature<{
44
- params: UseChartProZoomParameters;
45
- defaultizedParams: UseChartProZoomDefaultizedParameters;
46
- state: UseChartProZoomState;
47
- publicAPI: UseChartProZoomPublicApi;
48
- instance: UseChartProZoomInstance;
49
- dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
50
- }>;
47
+ params: UseChartProZoomParameters;
48
+ defaultizedParams: UseChartProZoomDefaultizedParameters;
49
+ state: UseChartProZoomState;
50
+ publicAPI: UseChartProZoomPublicApi;
51
+ instance: UseChartProZoomInstance;
52
+ dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
53
+ }>;
@@ -1 +1,5 @@
1
- export {};
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -14,32 +14,32 @@ export declare function isSpanValid(minRange: number, maxRange: number, isZoomIn
14
14
  * Get the scale ratio and if it's a zoom in or out from a wheel event.
15
15
  */
16
16
  export declare function getWheelScaleRatio(event: WheelEvent, step: number): {
17
- scaleRatio: number;
18
- isZoomIn: boolean;
17
+ scaleRatio: number;
18
+ isZoomIn: boolean;
19
19
  };
20
20
  /**
21
21
  * Get the scale ratio and if it's a zoom in or out from a pinch gesture.
22
22
  */
23
23
  export declare function getPinchScaleRatio(curDiff: number, prevDiff: number, step: number): {
24
- scaleRatio: number;
25
- isZoomIn: boolean;
24
+ scaleRatio: number;
25
+ isZoomIn: boolean;
26
26
  };
27
27
  export declare function getDiff(eventCache: PointerEvent[]): number;
28
28
  /**
29
29
  * Get the ratio of the point in the horizontal center of the area.
30
30
  */
31
31
  export declare function getHorizontalCenterRatio(point: {
32
- x: number;
33
- y: number;
32
+ x: number;
33
+ y: number;
34
34
  }, area: {
35
- left: number;
36
- width: number;
35
+ left: number;
36
+ width: number;
37
37
  }): number;
38
38
  export declare function preventDefault(event: TouchEvent): void;
39
39
  export declare function getVerticalCenterRatio(point: {
40
- x: number;
41
- y: number;
40
+ x: number;
41
+ y: number;
42
42
  }, area: {
43
- top: number;
44
- height: number;
45
- }): number;
43
+ top: number;
44
+ height: number;
45
+ }): number;
@@ -1,10 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDiff = getDiff;
7
+ exports.getHorizontalCenterRatio = getHorizontalCenterRatio;
8
+ exports.getPinchScaleRatio = getPinchScaleRatio;
9
+ exports.getVerticalCenterRatio = getVerticalCenterRatio;
10
+ exports.getWheelScaleRatio = getWheelScaleRatio;
11
+ exports.isSpanValid = isSpanValid;
12
+ exports.preventDefault = preventDefault;
13
+ exports.zoomAtPoint = void 0;
1
14
  /**
2
15
  * Helper to get the range (in percents of a reference range) corresponding to a given scale.
3
16
  * @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
4
17
  * @param scaleRatio {number} The target scale ratio.
5
18
  * @returns The range to display.
6
19
  */
7
- export const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
20
+ const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
8
21
  const MIN_RANGE = options.minStart;
9
22
  const MAX_RANGE = options.maxEnd;
10
23
  const MIN_ALLOWED_SPAN = options.minSpan;
@@ -36,7 +49,8 @@ export const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) =
36
49
  /**
37
50
  * Checks if the new span is valid.
38
51
  */
39
- export function isSpanValid(minRange, maxRange, isZoomIn, option) {
52
+ exports.zoomAtPoint = zoomAtPoint;
53
+ function isSpanValid(minRange, maxRange, isZoomIn, option) {
40
54
  const newSpanPercent = maxRange - minRange;
41
55
  if (isZoomIn && newSpanPercent < option.minSpan || !isZoomIn && newSpanPercent > option.maxSpan) {
42
56
  return false;
@@ -63,7 +77,7 @@ function getMultiplier(event) {
63
77
  /**
64
78
  * Get the scale ratio and if it's a zoom in or out from a wheel event.
65
79
  */
66
- export function getWheelScaleRatio(event, step) {
80
+ function getWheelScaleRatio(event, step) {
67
81
  const deltaY = -event.deltaY;
68
82
  const multiplier = getMultiplier(event);
69
83
  const scaledStep = step * multiplier * deltaY / 1000;
@@ -79,7 +93,7 @@ export function getWheelScaleRatio(event, step) {
79
93
  /**
80
94
  * Get the scale ratio and if it's a zoom in or out from a pinch gesture.
81
95
  */
82
- export function getPinchScaleRatio(curDiff, prevDiff, step) {
96
+ function getPinchScaleRatio(curDiff, prevDiff, step) {
83
97
  const scaledStep = step / 1000;
84
98
  let scaleRatio = 0;
85
99
  let isZoomIn = false;
@@ -99,7 +113,7 @@ export function getPinchScaleRatio(curDiff, prevDiff, step) {
99
113
  isZoomIn
100
114
  };
101
115
  }
102
- export function getDiff(eventCache) {
116
+ function getDiff(eventCache) {
103
117
  const [firstEvent, secondEvent] = eventCache;
104
118
  return Math.hypot(firstEvent.pageX - secondEvent.pageX, firstEvent.pageY - secondEvent.pageY);
105
119
  }
@@ -107,17 +121,17 @@ export function getDiff(eventCache) {
107
121
  /**
108
122
  * Get the ratio of the point in the horizontal center of the area.
109
123
  */
110
- export function getHorizontalCenterRatio(point, area) {
124
+ function getHorizontalCenterRatio(point, area) {
111
125
  const {
112
126
  left,
113
127
  width
114
128
  } = area;
115
129
  return (point.x - left) / width;
116
130
  }
117
- export function preventDefault(event) {
131
+ function preventDefault(event) {
118
132
  event.preventDefault();
119
133
  }
120
- export function getVerticalCenterRatio(point, area) {
134
+ function getVerticalCenterRatio(point, area) {
121
135
  const {
122
136
  top,
123
137
  height
@@ -1 +1 @@
1
- export declare const getReleaseInfo: () => any;
1
+ export declare const getReleaseInfo: () => any;
@@ -1,13 +1,21 @@
1
- import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
2
- export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczODg4MjgwMDAwMA==";
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.getReleaseInfo = void 0;
8
+ var _ponyfillGlobal = _interopRequireDefault(require("@mui/utils/ponyfillGlobal"));
9
+ const getReleaseInfo = () => {
10
+ const releaseInfo = "MTc0MDY5NzIwMDAwMA==";
4
11
  if (process.env.NODE_ENV !== 'production') {
5
12
  // A simple hack to set the value in the test environment (has no build step).
6
13
  // eslint-disable-next-line no-useless-concat
7
14
  if (releaseInfo === '__RELEASE' + '_INFO__') {
8
15
  // eslint-disable-next-line no-underscore-dangle
9
- return ponyfillGlobal.__MUI_RELEASE_INFO__;
16
+ return _ponyfillGlobal.default.__MUI_RELEASE_INFO__;
10
17
  }
11
18
  }
12
19
  return releaseInfo;
13
- };
20
+ };
21
+ exports.getReleaseInfo = getReleaseInfo;
package/models/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export type { ZoomData } from '@mui/x-charts/internals';
2
- export * from './seriesType';
2
+ export * from "./seriesType/index.js";
package/models/index.js CHANGED
@@ -1,2 +1,16 @@
1
- export * from "./seriesType/index.js";
2
- export {};
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _seriesType = require("./seriesType");
7
+ Object.keys(_seriesType).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _seriesType[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _seriesType[key];
14
+ }
15
+ });
16
+ });
@@ -1,29 +1,28 @@
1
1
  import { DefaultizedProps } from '@mui/x-internals/types';
2
2
  import { CommonDefaultizedProps, CommonSeriesType, CartesianSeriesType } from '@mui/x-charts/internals';
3
- export type HeatmapValueType = [number, number, number];
3
+ export type HeatmapValueType = readonly [number, number, number];
4
4
  export interface HeatmapSeriesType extends Omit<CommonSeriesType<HeatmapValueType>, 'color'>, CartesianSeriesType {
5
- type: 'heatmap';
6
- /**
7
- * Data associated to each bar.
8
- */
9
- data?: HeatmapValueType[];
10
- /**
11
- * The key used to retrieve data from the dataset.
12
- */
13
- dataKey?: string;
14
- /**
15
- * The label to display on the tooltip or the legend. It can be a string or a function.
16
- */
17
- label?: string | ((location: 'tooltip' | 'legend') => string);
5
+ type: 'heatmap';
6
+ /**
7
+ * Data associated to each bar.
8
+ */
9
+ data?: readonly HeatmapValueType[];
10
+ /**
11
+ * The key used to retrieve data from the dataset.
12
+ */
13
+ dataKey?: string;
14
+ /**
15
+ * The label to display on the tooltip or the legend. It can be a string or a function.
16
+ */
17
+ label?: string | ((location: 'tooltip' | 'legend') => string);
18
18
  }
19
19
  /**
20
20
  * An object that allows to identify a single bar.
21
21
  * Used for item interaction
22
22
  */
23
23
  export type HeatmapItemIdentifier = {
24
- type: 'heatmap';
25
- seriesId: DefaultizedHeatmapSeriesType['id'];
26
- dataIndex: number;
24
+ type: 'heatmap';
25
+ seriesId: DefaultizedHeatmapSeriesType['id'];
26
+ dataIndex: number;
27
27
  };
28
- export interface DefaultizedHeatmapSeriesType extends DefaultizedProps<HeatmapSeriesType, CommonDefaultizedProps> {
29
- }
28
+ export interface DefaultizedHeatmapSeriesType extends DefaultizedProps<HeatmapSeriesType, CommonDefaultizedProps> {}
@@ -1 +1,5 @@
1
- export {};
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1 +1 @@
1
- export * from './heatmap';
1
+ export * from "./heatmap.js";
@@ -1 +1,16 @@
1
- export * from "./heatmap.js";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _heatmap = require("./heatmap");
7
+ Object.keys(_heatmap).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _heatmap[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _heatmap[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { BarChartProps } from '@mui/x-charts/BarChart';
3
+ import { ChartContainerProProps } from "../ChartContainerPro/index.js";
4
+ export interface BarChartProProps extends Omit<BarChartProps, 'apiRef'>, Omit<ChartContainerProProps<'bar'>, 'series' | 'plugins' | 'seriesConfig'> {}
5
+ /**
6
+ * Demos:
7
+ *
8
+ * - [Bars](https://mui.com/x/react-charts/bars/)
9
+ * - [Bar demonstration](https://mui.com/x/react-charts/bar-demo/)
10
+ * - [Stacking](https://mui.com/x/react-charts/stacking/)
11
+ *
12
+ * API:
13
+ *
14
+ * - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
15
+ */
16
+ declare const BarChartPro: React.ForwardRefExoticComponent<BarChartProProps & React.RefAttributes<SVGSVGElement>>;
17
+ export { BarChartPro };
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["initialZoom", "onZoomChange", "apiRef"];
5
+ const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { useThemeProps } from '@mui/material/styles';
@@ -84,6 +84,7 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
84
84
  });
85
85
  const {
86
86
  initialZoom,
87
+ zoomData,
87
88
  onZoomChange,
88
89
  apiRef
89
90
  } = props,
@@ -106,6 +107,7 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
106
107
  chartsSurfaceProps
107
108
  } = useChartContainerProProps(_extends({}, chartContainerProps, {
108
109
  initialZoom,
110
+ zoomData,
109
111
  onZoomChange,
110
112
  apiRef,
111
113
  plugins: BAR_CHART_PRO_PLUGINS
@@ -153,12 +155,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
153
155
  * Defines the border radius of the bar element.
154
156
  */
155
157
  borderRadius: PropTypes.number,
156
- /**
157
- * Indicate which axis to display the bottom of the charts.
158
- * Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
159
- * @default xAxisIds[0] The id of the first provided axis
160
- */
161
- bottomAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
162
158
  children: PropTypes.node,
163
159
  className: PropTypes.string,
164
160
  /**
@@ -207,6 +203,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
207
203
  id: PropTypes.string,
208
204
  /**
209
205
  * The list of zoom data related to each axis.
206
+ * Used to initialize the zoom in a specific configuration without controlling it.
210
207
  */
211
208
  initialZoom: PropTypes.arrayOf(PropTypes.shape({
212
209
  axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
@@ -218,12 +215,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
218
215
  * @default 'vertical'
219
216
  */
220
217
  layout: PropTypes.oneOf(['horizontal', 'vertical']),
221
- /**
222
- * Indicate which axis to display the left of the charts.
223
- * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
224
- * @default yAxisIds[0] The id of the first provided axis
225
- */
226
- leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
227
218
  /**
228
219
  * If `true`, a loading overlay is displayed.
229
220
  * @default false
@@ -232,14 +223,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
232
223
  /**
233
224
  * The margin between the SVG and the drawing area.
234
225
  * It's used for leaving some space for extra information such as the x- and y-axis or legend.
235
- * Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
226
+ *
227
+ * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
236
228
  */
237
- margin: PropTypes.shape({
229
+ margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
238
230
  bottom: PropTypes.number,
239
231
  left: PropTypes.number,
240
232
  right: PropTypes.number,
241
233
  top: PropTypes.number
242
- }),
234
+ })]),
243
235
  /**
244
236
  * The function called for onClick events.
245
237
  * The second argument contains information about all line/bar elements at the current mouse position.
@@ -265,12 +257,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
265
257
  * @param {ZoomData[]} zoomData Updated zoom data.
266
258
  */
267
259
  onZoomChange: PropTypes.func,
268
- /**
269
- * Indicate which axis to display the right of the charts.
270
- * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
271
- * @default null
272
- */
273
- rightAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
274
260
  /**
275
261
  * The series to display in the bar chart.
276
262
  * An array of [[BarSeriesType]] objects.
@@ -294,12 +280,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
294
280
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
295
281
  theme: PropTypes.oneOf(['dark', 'light']),
296
282
  title: PropTypes.string,
297
- /**
298
- * Indicate which axis to display the top of the charts.
299
- * Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
300
- * @default null
301
- */
302
- topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
303
283
  /**
304
284
  * The width of the chart in px. If not defined, it takes the width of the parent element.
305
285
  */
@@ -310,6 +290,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
310
290
  * An array of [[AxisConfig]] objects.
311
291
  */
312
292
  xAxis: PropTypes.arrayOf(PropTypes.shape({
293
+ axis: PropTypes.oneOf(['x']),
313
294
  classes: PropTypes.object,
314
295
  colorMap: PropTypes.oneOfType([PropTypes.shape({
315
296
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -332,13 +313,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
332
313
  disableTicks: PropTypes.bool,
333
314
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
334
315
  fill: PropTypes.string,
316
+ height: PropTypes.number,
335
317
  hideTooltip: PropTypes.bool,
336
318
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
337
319
  label: PropTypes.string,
338
320
  labelStyle: PropTypes.object,
339
321
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
340
322
  min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
341
- position: PropTypes.oneOf(['bottom', 'top']),
323
+ offset: PropTypes.number,
324
+ position: PropTypes.oneOf(['bottom', 'none', 'top']),
342
325
  reverse: PropTypes.bool,
343
326
  scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
344
327
  slotProps: PropTypes.object,
@@ -347,6 +330,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
347
330
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
348
331
  tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
349
332
  tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
333
+ tickLabelMinGap: PropTypes.number,
350
334
  tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
351
335
  tickLabelStyle: PropTypes.object,
352
336
  tickMaxStep: PropTypes.number,
@@ -371,6 +355,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
371
355
  * An array of [[AxisConfig]] objects.
372
356
  */
373
357
  yAxis: PropTypes.arrayOf(PropTypes.shape({
358
+ axis: PropTypes.oneOf(['y']),
374
359
  classes: PropTypes.object,
375
360
  colorMap: PropTypes.oneOfType([PropTypes.shape({
376
361
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -399,7 +384,8 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
399
384
  labelStyle: PropTypes.object,
400
385
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
401
386
  min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
402
- position: PropTypes.oneOf(['left', 'right']),
387
+ offset: PropTypes.number,
388
+ position: PropTypes.oneOf(['left', 'none', 'right']),
403
389
  reverse: PropTypes.bool,
404
390
  scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
405
391
  slotProps: PropTypes.object,
@@ -416,6 +402,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
416
402
  tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
417
403
  tickSize: PropTypes.number,
418
404
  valueFormatter: PropTypes.func,
405
+ width: PropTypes.number,
419
406
  zoom: PropTypes.oneOfType([PropTypes.shape({
420
407
  filterMode: PropTypes.oneOf(['discard', 'keep']),
421
408
  maxEnd: PropTypes.number,
@@ -450,6 +437,14 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
450
437
  id: PropTypes.string,
451
438
  max: PropTypes.number,
452
439
  min: PropTypes.number
440
+ })),
441
+ /**
442
+ * The list of zoom data related to each axis.
443
+ */
444
+ zoomData: PropTypes.arrayOf(PropTypes.shape({
445
+ axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
446
+ end: PropTypes.number.isRequired,
447
+ start: PropTypes.number.isRequired
453
448
  }))
454
449
  } : void 0;
455
450
  export { BarChartPro };
@@ -0,0 +1,4 @@
1
+ import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
+ import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
3
+ export type BarChartProPluginsSignatures = [UseChartZAxisSignature, UseChartCartesianAxisSignature<'bar'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature];
4
+ export declare const BAR_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<BarChartProPluginsSignatures>;
@@ -0,0 +1 @@
1
+ export * from "./BarChartPro.js";
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ import { ChartsSurfaceProps } from '@mui/x-charts/ChartsSurface';
3
+ import { ChartAnyPluginSignature, ChartSeriesType } from '@mui/x-charts/internals';
4
+ import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
+ import { ChartDataProviderProProps } from "../ChartDataProviderPro/index.js";
6
+ export type ChartContainerProProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProProps<TSeries, TSignatures> & ChartsSurfaceProps;
7
+ type ChartContainerProComponent = <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures> & {
8
+ ref?: React.ForwardedRef<SVGSVGElement>;
9
+ }) => React.JSX.Element;
10
+ /**
11
+ * It sets up the data providers as well as the `<svg>` for the chart.
12
+ *
13
+ * This is a combination of both the `ChartDataProviderPro` and `ChartsSurface` components.
14
+ *
15
+ * Demos:
16
+ *
17
+ * - [Composition](https://mui.com/x/api/charts/composition/)
18
+ *
19
+ * API:
20
+ *
21
+ * - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
22
+ *
23
+ * @example
24
+ * ```jsx
25
+ * <ChartContainerPro
26
+ * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
27
+ * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
28
+ * >
29
+ * <BarPlot />
30
+ * <ChartsXAxis axisId="x-axis" />
31
+ * </ChartContainerPro>
32
+ * ```
33
+ */
34
+ declare const ChartContainerPro: ChartContainerProComponent;
35
+ export { ChartContainerPro };
@@ -27,7 +27,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
27
27
  * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
28
28
  * >
29
29
  * <BarPlot />
30
- * <ChartsXAxis position="bottom" axisId="x-axis" />
30
+ * <ChartsXAxis axisId="x-axis" />
31
31
  * </ChartContainerPro>
32
32
  * ```
33
33
  */
@@ -0,0 +1,2 @@
1
+ import "../typeOverloads/index.js";
2
+ export * from "./ChartContainerPro.js";
@@ -1 +1,2 @@
1
+ import "../typeOverloads/index.js";
1
2
  export * from "./ChartContainerPro.js";
@@ -0,0 +1,9 @@
1
+ import { ChartAnyPluginSignature, ChartSeriesType, UseChartContainerPropsReturnValue } from '@mui/x-charts/internals';
2
+ import * as React from 'react';
3
+ import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
4
+ import type { ChartContainerProProps } from './ChartContainerPro';
5
+ import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
6
+ export type UseChartContainerProPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartContainerPropsReturnValue<TSeries, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
7
+ chartDataProviderProProps: ChartDataProviderProps<TSeries, TSignatures>;
8
+ };
9
+ export declare const useChartContainerProProps: <TSeries extends ChartSeriesType = keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures>, ref: React.Ref<SVGSVGElement>) => UseChartContainerProPropsReturnValue<TSeries, TSignatures>;
@@ -2,13 +2,14 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["initialZoom", "onZoomChange", "plugins", "apiRef"];
5
+ const _excluded = ["initialZoom", "zoomData", "onZoomChange", "plugins", "apiRef"];
6
6
  import { useChartContainerProps } from '@mui/x-charts/internals';
7
7
  import { ALL_PLUGINS } from "../internals/plugins/allPlugins.js";
8
8
  export const useChartContainerProProps = (props, ref) => {
9
9
  const _ref = props,
10
10
  {
11
11
  initialZoom,
12
+ zoomData,
12
13
  onZoomChange,
13
14
  plugins,
14
15
  apiRef
@@ -21,6 +22,7 @@ export const useChartContainerProProps = (props, ref) => {
21
22
  } = useChartContainerProps(baseProps, ref);
22
23
  const chartDataProviderProProps = _extends({}, chartDataProviderProps, {
23
24
  initialZoom,
25
+ zoomData,
24
26
  onZoomChange,
25
27
  apiRef,
26
28
  plugins: plugins ?? ALL_PLUGINS