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

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 (318) hide show
  1. package/BarChartPro/BarChartPro.d.ts +3 -4
  2. package/BarChartPro/BarChartPro.js +227 -221
  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 +161 -1
  8. package/ChartContainerPro/ChartContainerPro.d.ts +4 -4
  9. package/ChartContainerPro/ChartContainerPro.js +178 -172
  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 +17 -10
  14. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +3 -3
  15. package/ChartDataProviderPro/ChartDataProviderPro.js +34 -28
  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 +43 -43
  21. package/Heatmap/Heatmap.js +210 -204
  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 +239 -233
  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 +216 -212
  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 +455 -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 +33 -0
  65. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  66. package/{node → esm}/ChartDataProviderPro/ChartDataProviderPro.js +28 -34
  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 +56 -0
  72. package/esm/Heatmap/Heatmap.js +402 -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 +506 -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 +400 -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 +33 -44
  120. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
  121. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
  122. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -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 +40 -37
  158. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +149 -325
  159. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
  160. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +35 -41
  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 +17 -18
  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.plugins.d.ts +4 -0
  174. package/modern/BarChartPro/index.d.ts +1 -0
  175. package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  176. package/modern/ChartContainerPro/index.d.ts +2 -0
  177. package/modern/ChartContainerPro/index.js +1 -0
  178. package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  179. package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  180. package/modern/ChartDataProviderPro/index.d.ts +2 -0
  181. package/modern/ChartDataProviderPro/index.js +1 -0
  182. package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  183. package/modern/Heatmap/Heatmap.d.ts +56 -0
  184. package/modern/Heatmap/Heatmap.js +2 -2
  185. package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
  186. package/modern/Heatmap/HeatmapItem.d.ts +49 -0
  187. package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
  188. package/modern/Heatmap/HeatmapPlot.js +2 -2
  189. package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
  190. package/modern/Heatmap/HeatmapTooltip.js +6 -4
  191. package/modern/Heatmap/heatmapClasses.d.ts +11 -0
  192. package/modern/Heatmap/index.d.ts +4 -0
  193. package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
  194. package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
  195. package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
  196. package/modern/Heatmap/{plugin.js → seriesConfig/index.js} +3 -3
  197. package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  198. package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
  199. package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  200. package/modern/LineChartPro/LineChartPro.d.ts +16 -0
  201. package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  202. package/modern/LineChartPro/index.d.ts +1 -0
  203. package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  204. package/modern/ScatterChartPro/ScatterChartPro.js +1 -3
  205. package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  206. package/modern/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
  207. package/modern/ScatterChartPro/index.d.ts +1 -0
  208. package/modern/hooks/index.d.ts +2 -0
  209. package/modern/hooks/index.js +1 -1
  210. package/modern/hooks/useHeatmapSeries.d.ts +33 -0
  211. package/modern/hooks/useHeatmapSeries.js +42 -0
  212. package/modern/hooks/zoom/index.d.ts +1 -0
  213. package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  214. package/modern/index.d.ts +32 -0
  215. package/modern/index.js +2 -2
  216. package/modern/internals/plugins/allPlugins.d.ts +5 -0
  217. package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
  218. package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  219. package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +4 -8
  220. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
  221. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
  222. package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -0
  223. package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  224. package/modern/internals/utils/releaseInfo.d.ts +1 -0
  225. package/modern/internals/utils/releaseInfo.js +1 -1
  226. package/modern/models/index.d.ts +2 -0
  227. package/modern/models/seriesType/heatmap.d.ts +28 -0
  228. package/modern/models/seriesType/index.d.ts +1 -0
  229. package/modern/package.json +1 -0
  230. package/modern/themeAugmentation/components.d.ts +23 -0
  231. package/modern/themeAugmentation/index.d.ts +4 -0
  232. package/modern/themeAugmentation/overrides.d.ts +11 -0
  233. package/modern/themeAugmentation/props.d.ts +20 -0
  234. package/modern/typeOverloads/index.d.ts +1 -0
  235. package/modern/typeOverloads/modules.d.ts +22 -0
  236. package/package.json +41 -11
  237. package/themeAugmentation/components.d.ts +1 -3
  238. package/themeAugmentation/index.d.ts +1 -1
  239. package/themeAugmentation/index.js +1 -0
  240. package/themeAugmentation/overrides.d.ts +2 -4
  241. package/themeAugmentation/props.d.ts +5 -7
  242. package/tsconfig.build.tsbuildinfo +1 -0
  243. package/typeOverloads/index.d.ts +1 -1
  244. package/typeOverloads/index.js +6 -1
  245. package/typeOverloads/modules.d.ts +20 -23
  246. package/typeOverloads/modules.js +5 -1
  247. package/BarChartPro/package.json +0 -6
  248. package/ChartContainerPro/package.json +0 -6
  249. package/ChartDataProviderPro/package.json +0 -6
  250. package/Heatmap/formatter.d.ts +0 -3
  251. package/Heatmap/package.json +0 -6
  252. package/Heatmap/plugin.d.ts +0 -2
  253. package/LineChartPro/package.json +0 -6
  254. package/ScatterChartPro/package.json +0 -6
  255. package/hooks/package.json +0 -6
  256. package/hooks/useSeries.d.ts +0 -9
  257. package/hooks/useSeries.js +0 -16
  258. package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
  259. package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  260. package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
  261. package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  262. package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
  263. package/models/package.json +0 -6
  264. package/modern/hooks/useSeries.js +0 -16
  265. package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  266. package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  267. package/node/BarChartPro/BarChartPro.js +0 -461
  268. package/node/BarChartPro/BarChartPro.plugins.js +0 -9
  269. package/node/BarChartPro/index.js +0 -16
  270. package/node/ChartContainerPro/ChartContainerPro.js +0 -296
  271. package/node/ChartContainerPro/index.js +0 -16
  272. package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
  273. package/node/ChartDataProviderPro/index.js +0 -16
  274. package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -21
  275. package/node/Heatmap/Heatmap.js +0 -408
  276. package/node/Heatmap/Heatmap.plugins.js +0 -8
  277. package/node/Heatmap/HeatmapItem.js +0 -113
  278. package/node/Heatmap/HeatmapTooltip.js +0 -280
  279. package/node/Heatmap/heatmapClasses.js +0 -22
  280. package/node/Heatmap/index.js +0 -47
  281. package/node/LineChartPro/LineChartPro.js +0 -512
  282. package/node/LineChartPro/LineChartPro.plugins.js +0 -9
  283. package/node/LineChartPro/index.js +0 -16
  284. package/node/ScatterChartPro/ScatterChartPro.js +0 -408
  285. package/node/ScatterChartPro/ScatterChartPro.plugins.js +0 -9
  286. package/node/ScatterChartPro/index.js +0 -16
  287. package/node/hooks/index.js +0 -27
  288. package/node/hooks/useSeries.js +0 -21
  289. package/node/hooks/zoom/index.js +0 -16
  290. package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
  291. package/node/index.js +0 -354
  292. package/node/internals/plugins/allPlugins.js +0 -11
  293. package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
  294. package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
  295. package/node/internals/plugins/useChartProZoom/index.js +0 -38
  296. package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
  297. package/node/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -5
  298. package/node/internals/plugins/useChartProZoom/zoom.types.js +0 -5
  299. package/node/internals/utils/releaseInfo.js +0 -21
  300. package/node/models/index.js +0 -16
  301. package/node/models/seriesType/heatmap.js +0 -5
  302. package/node/models/seriesType/index.js +0 -16
  303. package/node/themeAugmentation/index.js +0 -1
  304. package/node/typeOverloads/index.js +0 -6
  305. package/node/typeOverloads/modules.js +0 -5
  306. package/themeAugmentation/package.json +0 -6
  307. package/typeOverloads/package.json +0 -6
  308. /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
  309. /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
  310. /package/{node/Heatmap → Heatmap/seriesConfig}/tooltip.js +0 -0
  311. /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
  312. /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
  313. /package/{Heatmap → esm/Heatmap/seriesConfig}/tooltip.js +0 -0
  314. /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/internals/plugins/useChartProZoom/useChartProZoom.types.js} +0 -0
  315. /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/models/seriesType/heatmap.js} +0 -0
  316. /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
  317. /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
  318. /package/modern/Heatmap/{tooltip.js → seriesConfig/tooltip.js} +0 -0
@@ -1,10 +1,4 @@
1
- import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
- import { UseChartProZoomSignature } from '../internals/plugins/useChartProZoom';
3
- export type ScatterChartProPluginsSignatures = [
4
- UseChartZAxisSignature,
5
- UseChartCartesianAxisSignature<'scatter'>,
6
- UseChartInteractionSignature,
7
- UseChartHighlightSignature,
8
- UseChartProZoomSignature
9
- ];
10
- export declare const SCATTER_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartProPluginsSignatures>;
1
+ import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVoronoiSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
+ import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
3
+ export type ScatterChartProPluginsSignatures = [UseChartZAxisSignature, UseChartCartesianAxisSignature<'scatter'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVoronoiSignature, UseChartProZoomSignature];
4
+ export declare const SCATTER_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartProPluginsSignatures>;
@@ -1,3 +1,9 @@
1
- import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight } from '@mui/x-charts/internals';
2
- import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
3
- export const SCATTER_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom];
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SCATTER_CHART_PRO_PLUGINS = void 0;
7
+ var _internals = require("@mui/x-charts/internals");
8
+ var _useChartProZoom = require("../internals/plugins/useChartProZoom");
9
+ const SCATTER_CHART_PRO_PLUGINS = exports.SCATTER_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartCartesianAxis, _internals.useChartInteraction, _internals.useChartHighlight, _internals.useChartVoronoi, _useChartProZoom.useChartProZoom];
@@ -1 +1 @@
1
- export * from './ScatterChartPro';
1
+ export * from "./ScatterChartPro.js";
@@ -1 +1,16 @@
1
- export * from "./ScatterChartPro.js";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ScatterChartPro = require("./ScatterChartPro");
7
+ Object.keys(_ScatterChartPro).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ScatterChartPro[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ScatterChartPro[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 };
@@ -0,0 +1,455 @@
1
+ 'use client';
2
+
3
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
+ import _extends from "@babel/runtime/helpers/esm/extends";
5
+ const _excluded = ["initialZoom", "onZoomChange", "apiRef"];
6
+ import * as React from 'react';
7
+ import PropTypes from 'prop-types';
8
+ import { useThemeProps } from '@mui/material/styles';
9
+ import { BarPlot } from '@mui/x-charts/BarChart';
10
+ import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
11
+ import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
12
+ import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
13
+ import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
14
+ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
15
+ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
16
+ import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
17
+ import { useBarChartProps, ChartsWrapper } from '@mui/x-charts/internals';
18
+ import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
19
+ import { useIsZoomInteracting } from "../hooks/zoom/index.js";
20
+ import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
21
+ import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
22
+ import { BAR_CHART_PRO_PLUGINS } from "./BarChartPro.plugins.js";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ function BarChartPlotZoom(props) {
25
+ const isInteracting = useIsZoomInteracting();
26
+ return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
27
+ skipAnimation: isInteracting || props.skipAnimation
28
+ }));
29
+ }
30
+ process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
31
+ // ----------------------------- Warning --------------------------------
32
+ // | These PropTypes are generated from the TypeScript type definitions |
33
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
34
+ // ----------------------------------------------------------------------
35
+ /**
36
+ * If provided, the function will be used to format the label of the bar.
37
+ * It can be set to 'value' to display the current value.
38
+ * @param {BarItem} item The item to format.
39
+ * @param {BarLabelContext} context data about the bar.
40
+ * @returns {string} The formatted label.
41
+ */
42
+ barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
43
+ /**
44
+ * Defines the border radius of the bar element.
45
+ */
46
+ borderRadius: PropTypes.number,
47
+ /**
48
+ * Callback fired when a bar item is clicked.
49
+ * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
50
+ * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
51
+ */
52
+ onItemClick: PropTypes.func,
53
+ /**
54
+ * If `true`, animations are skipped.
55
+ * @default undefined
56
+ */
57
+ skipAnimation: PropTypes.bool,
58
+ /**
59
+ * The props used for each component slot.
60
+ * @default {}
61
+ */
62
+ slotProps: PropTypes.object,
63
+ /**
64
+ * Overridable component slots.
65
+ * @default {}
66
+ */
67
+ slots: PropTypes.object
68
+ } : void 0;
69
+ /**
70
+ * Demos:
71
+ *
72
+ * - [Bars](https://mui.com/x/react-charts/bars/)
73
+ * - [Bar demonstration](https://mui.com/x/react-charts/bar-demo/)
74
+ * - [Stacking](https://mui.com/x/react-charts/stacking/)
75
+ *
76
+ * API:
77
+ *
78
+ * - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
79
+ */
80
+ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps, ref) {
81
+ const props = useThemeProps({
82
+ props: inProps,
83
+ name: 'MuiBarChartPro'
84
+ });
85
+ const {
86
+ initialZoom,
87
+ onZoomChange,
88
+ apiRef
89
+ } = props,
90
+ other = _objectWithoutPropertiesLoose(props, _excluded);
91
+ const {
92
+ chartsWrapperProps,
93
+ chartContainerProps,
94
+ barPlotProps,
95
+ gridProps,
96
+ clipPathProps,
97
+ clipPathGroupProps,
98
+ overlayProps,
99
+ chartsAxisProps,
100
+ axisHighlightProps,
101
+ legendProps,
102
+ children
103
+ } = useBarChartProps(other);
104
+ const {
105
+ chartDataProviderProProps,
106
+ chartsSurfaceProps
107
+ } = useChartContainerProProps(_extends({}, chartContainerProps, {
108
+ initialZoom,
109
+ onZoomChange,
110
+ apiRef,
111
+ plugins: BAR_CHART_PRO_PLUGINS
112
+ }), ref);
113
+ const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
114
+ return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
115
+ children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
116
+ children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
117
+ children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
118
+ children: [/*#__PURE__*/_jsx(BarChartPlotZoom, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
119
+ })), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
120
+ }))]
121
+ }))
122
+ }));
123
+ });
124
+ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
125
+ // ----------------------------- Warning --------------------------------
126
+ // | These PropTypes are generated from the TypeScript type definitions |
127
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
128
+ // ----------------------------------------------------------------------
129
+ apiRef: PropTypes.shape({
130
+ current: PropTypes.shape({
131
+ setZoomData: PropTypes.func.isRequired
132
+ })
133
+ }),
134
+ /**
135
+ * The configuration of axes highlight.
136
+ * Default is set to 'band' in the bar direction.
137
+ * Depends on `layout` prop.
138
+ * @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
139
+ */
140
+ axisHighlight: PropTypes.shape({
141
+ x: PropTypes.oneOf(['band', 'line', 'none']),
142
+ y: PropTypes.oneOf(['band', 'line', 'none'])
143
+ }),
144
+ /**
145
+ * If provided, the function will be used to format the label of the bar.
146
+ * It can be set to 'value' to display the current value.
147
+ * @param {BarItem} item The item to format.
148
+ * @param {BarLabelContext} context data about the bar.
149
+ * @returns {string} The formatted label.
150
+ */
151
+ barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
152
+ /**
153
+ * Defines the border radius of the bar element.
154
+ */
155
+ 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
+ children: PropTypes.node,
163
+ className: PropTypes.string,
164
+ /**
165
+ * Color palette used to colorize multiple series.
166
+ * @default rainbowSurgePalette
167
+ */
168
+ colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
169
+ /**
170
+ * An array of objects that can be used to populate series and axes data using their `dataKey` property.
171
+ */
172
+ dataset: PropTypes.arrayOf(PropTypes.object),
173
+ desc: PropTypes.string,
174
+ /**
175
+ * If `true`, the charts will not listen to the mouse move event.
176
+ * It might break interactive features, but will improve performance.
177
+ * @default false
178
+ */
179
+ disableAxisListener: PropTypes.bool,
180
+ /**
181
+ * Option to display a cartesian grid in the background.
182
+ */
183
+ grid: PropTypes.shape({
184
+ horizontal: PropTypes.bool,
185
+ vertical: PropTypes.bool
186
+ }),
187
+ /**
188
+ * The height of the chart in px. If not defined, it takes the height of the parent element.
189
+ */
190
+ height: PropTypes.number,
191
+ /**
192
+ * If `true`, the legend is not rendered.
193
+ */
194
+ hideLegend: PropTypes.bool,
195
+ /**
196
+ * The highlighted item.
197
+ * Used when the highlight is controlled.
198
+ */
199
+ highlightedItem: PropTypes.shape({
200
+ dataIndex: PropTypes.number,
201
+ seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
202
+ }),
203
+ /**
204
+ * This prop is used to help implement the accessibility logic.
205
+ * If you don't provide this prop. It falls back to a randomly generated id.
206
+ */
207
+ id: PropTypes.string,
208
+ /**
209
+ * The list of zoom data related to each axis.
210
+ */
211
+ initialZoom: PropTypes.arrayOf(PropTypes.shape({
212
+ axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
213
+ end: PropTypes.number.isRequired,
214
+ start: PropTypes.number.isRequired
215
+ })),
216
+ /**
217
+ * The direction of the bar elements.
218
+ * @default 'vertical'
219
+ */
220
+ 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
+ /**
228
+ * If `true`, a loading overlay is displayed.
229
+ * @default false
230
+ */
231
+ loading: PropTypes.bool,
232
+ /**
233
+ * The margin between the SVG and the drawing area.
234
+ * 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`.
236
+ */
237
+ margin: PropTypes.shape({
238
+ bottom: PropTypes.number,
239
+ left: PropTypes.number,
240
+ right: PropTypes.number,
241
+ top: PropTypes.number
242
+ }),
243
+ /**
244
+ * The function called for onClick events.
245
+ * The second argument contains information about all line/bar elements at the current mouse position.
246
+ * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
247
+ * @param {null | AxisData} data The data about the clicked axis and items associated with it.
248
+ */
249
+ onAxisClick: PropTypes.func,
250
+ /**
251
+ * The callback fired when the highlighted item changes.
252
+ *
253
+ * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
254
+ */
255
+ onHighlightChange: PropTypes.func,
256
+ /**
257
+ * Callback fired when a bar item is clicked.
258
+ * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
259
+ * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
260
+ */
261
+ onItemClick: PropTypes.func,
262
+ /**
263
+ * Callback fired when the zoom has changed.
264
+ *
265
+ * @param {ZoomData[]} zoomData Updated zoom data.
266
+ */
267
+ 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
+ /**
275
+ * The series to display in the bar chart.
276
+ * An array of [[BarSeriesType]] objects.
277
+ */
278
+ series: PropTypes.arrayOf(PropTypes.object).isRequired,
279
+ /**
280
+ * If `true`, animations are skipped.
281
+ * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
282
+ */
283
+ skipAnimation: PropTypes.bool,
284
+ /**
285
+ * The props used for each component slot.
286
+ * @default {}
287
+ */
288
+ slotProps: PropTypes.object,
289
+ /**
290
+ * Overridable component slots.
291
+ * @default {}
292
+ */
293
+ slots: PropTypes.object,
294
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
295
+ theme: PropTypes.oneOf(['dark', 'light']),
296
+ 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
+ /**
304
+ * The width of the chart in px. If not defined, it takes the width of the parent element.
305
+ */
306
+ width: PropTypes.number,
307
+ /**
308
+ * The configuration of the x-axes.
309
+ * If not provided, a default axis config is used.
310
+ * An array of [[AxisConfig]] objects.
311
+ */
312
+ xAxis: PropTypes.arrayOf(PropTypes.shape({
313
+ classes: PropTypes.object,
314
+ colorMap: PropTypes.oneOfType([PropTypes.shape({
315
+ colors: PropTypes.arrayOf(PropTypes.string).isRequired,
316
+ type: PropTypes.oneOf(['ordinal']).isRequired,
317
+ unknownColor: PropTypes.string,
318
+ values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
319
+ }), PropTypes.shape({
320
+ color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
321
+ max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
322
+ min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
323
+ type: PropTypes.oneOf(['continuous']).isRequired
324
+ }), PropTypes.shape({
325
+ colors: PropTypes.arrayOf(PropTypes.string).isRequired,
326
+ thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
327
+ type: PropTypes.oneOf(['piecewise']).isRequired
328
+ })]),
329
+ data: PropTypes.array,
330
+ dataKey: PropTypes.string,
331
+ disableLine: PropTypes.bool,
332
+ disableTicks: PropTypes.bool,
333
+ domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
334
+ fill: PropTypes.string,
335
+ hideTooltip: PropTypes.bool,
336
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
337
+ label: PropTypes.string,
338
+ labelStyle: PropTypes.object,
339
+ max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
340
+ min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
341
+ position: PropTypes.oneOf(['bottom', 'top']),
342
+ reverse: PropTypes.bool,
343
+ scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
344
+ slotProps: PropTypes.object,
345
+ slots: PropTypes.object,
346
+ stroke: PropTypes.string,
347
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
348
+ tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
349
+ tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
350
+ tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
351
+ tickLabelStyle: PropTypes.object,
352
+ tickMaxStep: PropTypes.number,
353
+ tickMinStep: PropTypes.number,
354
+ tickNumber: PropTypes.number,
355
+ tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
356
+ tickSize: PropTypes.number,
357
+ valueFormatter: PropTypes.func,
358
+ zoom: PropTypes.oneOfType([PropTypes.shape({
359
+ filterMode: PropTypes.oneOf(['discard', 'keep']),
360
+ maxEnd: PropTypes.number,
361
+ maxSpan: PropTypes.number,
362
+ minSpan: PropTypes.number,
363
+ minStart: PropTypes.number,
364
+ panning: PropTypes.bool,
365
+ step: PropTypes.number
366
+ }), PropTypes.bool])
367
+ })),
368
+ /**
369
+ * The configuration of the y-axes.
370
+ * If not provided, a default axis config is used.
371
+ * An array of [[AxisConfig]] objects.
372
+ */
373
+ yAxis: PropTypes.arrayOf(PropTypes.shape({
374
+ classes: PropTypes.object,
375
+ colorMap: PropTypes.oneOfType([PropTypes.shape({
376
+ colors: PropTypes.arrayOf(PropTypes.string).isRequired,
377
+ type: PropTypes.oneOf(['ordinal']).isRequired,
378
+ unknownColor: PropTypes.string,
379
+ values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
380
+ }), PropTypes.shape({
381
+ color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
382
+ max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
383
+ min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
384
+ type: PropTypes.oneOf(['continuous']).isRequired
385
+ }), PropTypes.shape({
386
+ colors: PropTypes.arrayOf(PropTypes.string).isRequired,
387
+ thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
388
+ type: PropTypes.oneOf(['piecewise']).isRequired
389
+ })]),
390
+ data: PropTypes.array,
391
+ dataKey: PropTypes.string,
392
+ disableLine: PropTypes.bool,
393
+ disableTicks: PropTypes.bool,
394
+ domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
395
+ fill: PropTypes.string,
396
+ hideTooltip: PropTypes.bool,
397
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
398
+ label: PropTypes.string,
399
+ labelStyle: PropTypes.object,
400
+ max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
401
+ min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
402
+ position: PropTypes.oneOf(['left', 'right']),
403
+ reverse: PropTypes.bool,
404
+ scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
405
+ slotProps: PropTypes.object,
406
+ slots: PropTypes.object,
407
+ stroke: PropTypes.string,
408
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
409
+ tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
410
+ tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
411
+ tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
412
+ tickLabelStyle: PropTypes.object,
413
+ tickMaxStep: PropTypes.number,
414
+ tickMinStep: PropTypes.number,
415
+ tickNumber: PropTypes.number,
416
+ tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
417
+ tickSize: PropTypes.number,
418
+ valueFormatter: PropTypes.func,
419
+ zoom: PropTypes.oneOfType([PropTypes.shape({
420
+ filterMode: PropTypes.oneOf(['discard', 'keep']),
421
+ maxEnd: PropTypes.number,
422
+ maxSpan: PropTypes.number,
423
+ minSpan: PropTypes.number,
424
+ minStart: PropTypes.number,
425
+ panning: PropTypes.bool,
426
+ step: PropTypes.number
427
+ }), PropTypes.bool])
428
+ })),
429
+ /**
430
+ * The configuration of the z-axes.
431
+ */
432
+ zAxis: PropTypes.arrayOf(PropTypes.shape({
433
+ colorMap: PropTypes.oneOfType([PropTypes.shape({
434
+ colors: PropTypes.arrayOf(PropTypes.string).isRequired,
435
+ type: PropTypes.oneOf(['ordinal']).isRequired,
436
+ unknownColor: PropTypes.string,
437
+ values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
438
+ }), PropTypes.shape({
439
+ color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
440
+ max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
441
+ min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
442
+ type: PropTypes.oneOf(['continuous']).isRequired
443
+ }), PropTypes.shape({
444
+ colors: PropTypes.arrayOf(PropTypes.string).isRequired,
445
+ thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
446
+ type: PropTypes.oneOf(['piecewise']).isRequired
447
+ })]),
448
+ data: PropTypes.array,
449
+ dataKey: PropTypes.string,
450
+ id: PropTypes.string,
451
+ max: PropTypes.number,
452
+ min: PropTypes.number
453
+ }))
454
+ } : void 0;
455
+ 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,3 @@
1
+ import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight } from '@mui/x-charts/internals';
2
+ import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
3
+ export const BAR_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom];
@@ -0,0 +1 @@
1
+ export * from "./BarChartPro.js";
@@ -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 position="bottom" axisId="x-axis" />
31
+ * </ChartContainerPro>
32
+ * ```
33
+ */
34
+ declare const ChartContainerPro: ChartContainerProComponent;
35
+ export { ChartContainerPro };