@mui/x-charts-premium 9.0.0-alpha.0 → 9.0.0-alpha.2

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 (314) hide show
  1. package/{esm/BarChartPremium/BarChartPremium.d.ts → BarChartPremium/BarChartPremium.d.mts} +2 -2
  2. package/BarChartPremium/BarChartPremium.d.ts +1 -1
  3. package/BarChartPremium/BarChartPremium.js +49 -17
  4. package/{esm/BarChartPremium/BarChartPremium.js → BarChartPremium/BarChartPremium.mjs} +55 -23
  5. package/{esm/BarChartPremium/RangeBar/AnimatedRangeBarElement.js → BarChartPremium/RangeBar/AnimatedRangeBarElement.mjs} +1 -1
  6. package/{esm/BarChartPremium/RangeBar/FocusedRangeBar.js → BarChartPremium/RangeBar/FocusedRangeBar.mjs} +2 -2
  7. package/{esm/BarChartPremium/RangeBar/RangeBarPlot.d.ts → BarChartPremium/RangeBar/RangeBarPlot.d.mts} +1 -1
  8. package/{esm/BarChartPremium/RangeBar/RangeBarPlot.js → BarChartPremium/RangeBar/RangeBarPlot.mjs} +3 -3
  9. package/{esm/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.ts → BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.d.mts} +3 -3
  10. package/BarChartPremium/RangeBar/seriesConfig/index.js +3 -1
  11. package/BarChartPremium/RangeBar/seriesConfig/index.mjs +26 -0
  12. package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.js +1 -14
  13. package/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.mjs +3 -0
  14. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.js +5 -2
  15. package/{esm/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.js → BarChartPremium/RangeBar/seriesConfig/seriesProcessor.mjs} +5 -2
  16. package/{esm/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.js → BarChartPremium/RangeBar/seriesConfig/tooltipPosition.mjs} +1 -1
  17. package/{esm/BarChartPremium/RangeBar/types.d.ts → BarChartPremium/RangeBar/types.d.mts} +1 -1
  18. package/{esm/BarChartPremium/RangeBar/useRangeBarPlotData.d.ts → BarChartPremium/RangeBar/useRangeBarPlotData.d.mts} +1 -1
  19. package/{esm/BarChartPremium/RangeBar/useRangeBarPlotData.js → BarChartPremium/RangeBar/useRangeBarPlotData.mjs} +2 -2
  20. package/BarChartPremium/index.d.mts +5 -0
  21. package/BarChartPremium/index.mjs +5 -0
  22. package/{esm/BarChartPremium/useBarChartPremiumProps.d.ts → BarChartPremium/useBarChartPremiumProps.d.mts} +4 -4
  23. package/BarChartPremium/useBarChartPremiumProps.d.ts +2 -2
  24. package/CHANGELOG.md +236 -0
  25. package/{esm/ChartContainerPremium/ChartContainerPremium.d.ts → ChartContainerPremium/ChartContainerPremium.d.mts} +2 -2
  26. package/{esm/ChartContainerPremium/ChartContainerPremium.js → ChartContainerPremium/ChartContainerPremium.mjs} +1 -1
  27. package/ChartContainerPremium/index.d.mts +2 -0
  28. package/ChartContainerPremium/index.mjs +2 -0
  29. package/{esm/ChartContainerPremium/useChartContainerPremiumProps.d.ts → ChartContainerPremium/useChartContainerPremiumProps.d.mts} +1 -1
  30. package/{esm/ChartContainerPremium/useChartContainerPremiumProps.js → ChartContainerPremium/useChartContainerPremiumProps.mjs} +1 -1
  31. package/ChartDataProviderPremium/ChartDataProviderPremium.d.mts +20 -0
  32. package/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +17 -46
  33. package/ChartDataProviderPremium/ChartDataProviderPremium.js +20 -143
  34. package/ChartDataProviderPremium/ChartDataProviderPremium.mjs +21 -0
  35. package/{esm/ChartDataProviderPremium/index.d.ts → ChartDataProviderPremium/index.d.mts} +1 -1
  36. package/{esm/ChartDataProviderPremium/index.js → ChartDataProviderPremium/index.mjs} +1 -1
  37. package/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.mts +10 -0
  38. package/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +7 -7
  39. package/ChartDataProviderPremium/useChartDataProviderPremiumProps.js +5 -18
  40. package/ChartDataProviderPremium/useChartDataProviderPremiumProps.mjs +8 -0
  41. package/{esm/ChartsContainerPremium/ChartsContainerPremium.d.ts → ChartsContainerPremium/ChartsContainerPremium.d.mts} +3 -3
  42. package/ChartsContainerPremium/ChartsContainerPremium.d.ts +1 -1
  43. package/ChartsContainerPremium/ChartsContainerPremium.js +3 -2
  44. package/{esm/ChartsContainerPremium/ChartsContainerPremium.js → ChartsContainerPremium/ChartsContainerPremium.mjs} +5 -4
  45. package/ChartsContainerPremium/index.d.mts +2 -0
  46. package/ChartsContainerPremium/index.mjs +2 -0
  47. package/{esm/ChartsContainerPremium/useChartsContainerPremiumProps.d.ts → ChartsContainerPremium/useChartsContainerPremiumProps.d.mts} +4 -5
  48. package/ChartsContainerPremium/useChartsContainerPremiumProps.d.ts +1 -2
  49. package/ChartsContainerPremium/useChartsContainerPremiumProps.js +2 -2
  50. package/{esm/ChartsContainerPremium/useChartsContainerPremiumProps.js → ChartsContainerPremium/useChartsContainerPremiumProps.mjs} +3 -3
  51. package/ChartsDataProvider/index.d.mts +1 -0
  52. package/ChartsDataProvider/index.d.ts +1 -0
  53. package/ChartsDataProvider/index.js +16 -0
  54. package/ChartsDataProvider/index.mjs +2 -0
  55. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.mts +49 -0
  56. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +49 -0
  57. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +151 -0
  58. package/{esm/ChartDataProviderPremium/ChartDataProviderPremium.js → ChartsDataProviderPremium/ChartsDataProviderPremium.mjs} +16 -18
  59. package/ChartsDataProviderPremium/index.d.mts +2 -0
  60. package/ChartsDataProviderPremium/index.d.ts +2 -0
  61. package/ChartsDataProviderPremium/index.js +19 -0
  62. package/ChartsDataProviderPremium/index.mjs +2 -0
  63. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.mts +10 -0
  64. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.ts +10 -0
  65. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.js +25 -0
  66. package/{esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.js → ChartsDataProviderPremium/useChartsDataProviderPremiumProps.mjs} +3 -3
  67. package/ChartsDataProviderPro/index.d.mts +1 -0
  68. package/ChartsDataProviderPro/index.d.ts +1 -0
  69. package/ChartsDataProviderPro/index.js +16 -0
  70. package/ChartsDataProviderPro/index.mjs +2 -0
  71. package/ChartsLayerContainer/index.d.mts +1 -0
  72. package/ChartsLayerContainer/index.d.ts +1 -0
  73. package/ChartsLayerContainer/index.js +16 -0
  74. package/ChartsLayerContainer/index.mjs +2 -0
  75. package/{esm/ChartsRenderer/ChartsRenderer.js → ChartsRenderer/ChartsRenderer.mjs} +2 -2
  76. package/{esm/ChartsRenderer/components/PaletteOption.js → ChartsRenderer/components/PaletteOption.mjs} +1 -1
  77. package/{esm/ChartsRenderer/configuration.js → ChartsRenderer/configuration.mjs} +3 -3
  78. package/ChartsRenderer/index.d.mts +3 -0
  79. package/ChartsRenderer/index.mjs +3 -0
  80. package/ChartsSvgLayer/index.d.mts +1 -0
  81. package/ChartsSvgLayer/index.d.ts +1 -0
  82. package/ChartsSvgLayer/index.js +16 -0
  83. package/ChartsSvgLayer/index.mjs +2 -0
  84. package/ChartsWebGLLayer/ChartsWebGLLayer.d.mts +3 -0
  85. package/ChartsWebGLLayer/ChartsWebGLLayer.d.ts +3 -0
  86. package/ChartsWebGLLayer/ChartsWebGLLayer.js +113 -0
  87. package/ChartsWebGLLayer/ChartsWebGLLayer.mjs +105 -0
  88. package/ChartsWebGLLayer/index.d.mts +1 -0
  89. package/ChartsWebGLLayer/index.d.ts +1 -0
  90. package/ChartsWebGLLayer/index.js +12 -0
  91. package/ChartsWebGLLayer/index.mjs +1 -0
  92. package/ChartsZoomSlider/index.d.mts +1 -0
  93. package/ChartsZoomSlider/index.d.ts +1 -0
  94. package/ChartsZoomSlider/index.js +16 -0
  95. package/ChartsZoomSlider/index.mjs +2 -0
  96. package/{esm/ChartZoomSlider/internals/previews/RangeBarPreviewPlot.js → ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.mjs} +1 -1
  97. package/{esm/HeatmapPremium/HeatmapPlotPremium.js → HeatmapPremium/HeatmapPlotPremium.mjs} +1 -1
  98. package/{esm/HeatmapPremium/HeatmapPremium.d.ts → HeatmapPremium/HeatmapPremium.d.mts} +1 -1
  99. package/HeatmapPremium/HeatmapPremium.d.ts +1 -1
  100. package/HeatmapPremium/HeatmapPremium.js +49 -15
  101. package/{esm/HeatmapPremium/HeatmapPremium.js → HeatmapPremium/HeatmapPremium.mjs} +52 -18
  102. package/{esm/HeatmapPremium/HeatmapPremium.plugins.d.ts → HeatmapPremium/HeatmapPremium.plugins.d.mts} +1 -1
  103. package/HeatmapPremium/HeatmapPremium.plugins.d.ts +1 -1
  104. package/HeatmapPremium/index.d.mts +1 -0
  105. package/HeatmapPremium/index.mjs +1 -0
  106. package/{esm/HeatmapPremium/useHeatmapPremiumProps.d.ts → HeatmapPremium/useHeatmapPremiumProps.d.mts} +2 -2
  107. package/HeatmapPremium/webgl/HeatmapWebGLPlot.js +3 -3
  108. package/{esm/HeatmapPremium/webgl/HeatmapWebGLPlot.js → HeatmapPremium/webgl/HeatmapWebGLPlot.mjs} +6 -6
  109. package/HeatmapPremium/webgl/HeatmapWebGLRenderer.js +2 -1
  110. package/{esm/HeatmapPremium/webgl/HeatmapWebGLRenderer.js → HeatmapPremium/webgl/HeatmapWebGLRenderer.mjs} +4 -3
  111. package/HeatmapPremium/webgl/useHeatmapPlotData.js +6 -2
  112. package/{esm/HeatmapPremium/webgl/useHeatmapPlotData.js → HeatmapPremium/webgl/useHeatmapPlotData.mjs} +7 -3
  113. package/{esm/context/ChartPremiumApi.d.ts → context/ChartPremiumApi.d.mts} +2 -2
  114. package/context/index.d.mts +2 -0
  115. package/{esm/context/useChartPremiumApiContext.d.ts → context/useChartPremiumApiContext.d.mts} +2 -2
  116. package/context/useChartPremiumApiContext.d.ts +1 -1
  117. package/context/useChartPremiumApiContext.js +1 -1
  118. package/{esm/context/useChartPremiumApiContext.js → context/useChartPremiumApiContext.mjs} +1 -1
  119. package/hooks/animation/index.d.mts +1 -0
  120. package/hooks/animation/index.mjs +1 -0
  121. package/{esm/hooks/animation/useAnimateRangeBar.d.ts → hooks/animation/useAnimateRangeBar.d.mts} +1 -1
  122. package/hooks/index.d.mts +4 -0
  123. package/{esm/hooks/index.js → hooks/index.mjs} +3 -3
  124. package/{esm/hooks/useChartPremiumApiRef.d.ts → hooks/useChartPremiumApiRef.d.mts} +3 -3
  125. package/{esm/index.d.ts → index.d.mts} +18 -13
  126. package/index.d.ts +6 -1
  127. package/index.js +61 -1
  128. package/{esm/index.js → index.mjs} +19 -14
  129. package/{esm/internals/plugins/allPlugins.d.ts → internals/plugins/allPlugins.d.mts} +4 -4
  130. package/internals/plugins/allPlugins.d.ts +4 -4
  131. package/{esm/models/index.d.ts → models/index.d.mts} +1 -1
  132. package/{esm/models/index.js → models/index.mjs} +1 -1
  133. package/models/seriesType/index.d.mts +1 -0
  134. package/models/seriesType/index.mjs +1 -0
  135. package/{esm/moduleAugmentation/rangeBarOnClick.d.ts → moduleAugmentation/rangeBarOnClick.d.mts} +1 -1
  136. package/package.json +887 -22
  137. package/typeOverloads/index.d.mts +1 -0
  138. package/typeOverloads/index.mjs +1 -0
  139. package/{esm/typeOverloads/modules.d.ts → typeOverloads/modules.d.mts} +9 -4
  140. package/typeOverloads/modules.d.ts +6 -1
  141. package/utils/webgl/useWebGLResizeObserver.js +2 -2
  142. package/{esm/utils/webgl/useWebGLResizeObserver.js → utils/webgl/useWebGLResizeObserver.mjs} +1 -1
  143. package/esm/BarChartPremium/RangeBar/seriesConfig/index.js +0 -24
  144. package/esm/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.js +0 -16
  145. package/esm/BarChartPremium/index.d.ts +0 -5
  146. package/esm/BarChartPremium/index.js +0 -5
  147. package/esm/ChartContainerPremium/index.d.ts +0 -2
  148. package/esm/ChartContainerPremium/index.js +0 -2
  149. package/esm/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +0 -49
  150. package/esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +0 -10
  151. package/esm/ChartsContainerPremium/index.d.ts +0 -2
  152. package/esm/ChartsContainerPremium/index.js +0 -2
  153. package/esm/ChartsRenderer/index.d.ts +0 -3
  154. package/esm/ChartsRenderer/index.js +0 -3
  155. package/esm/HeatmapPremium/index.d.ts +0 -1
  156. package/esm/HeatmapPremium/index.js +0 -1
  157. package/esm/context/index.d.ts +0 -2
  158. package/esm/hooks/animation/index.d.ts +0 -1
  159. package/esm/hooks/animation/index.js +0 -1
  160. package/esm/hooks/index.d.ts +0 -4
  161. package/esm/models/seriesType/index.d.ts +0 -1
  162. package/esm/models/seriesType/index.js +0 -1
  163. package/esm/package.json +0 -1
  164. package/esm/typeOverloads/index.d.ts +0 -1
  165. package/esm/typeOverloads/index.js +0 -1
  166. /package/{esm/BarChart/index.d.ts → BarChart/index.d.mts} +0 -0
  167. /package/{esm/BarChart/index.js → BarChart/index.mjs} +0 -0
  168. /package/{esm/BarChartPremium/BarChartPremium.plugins.d.ts → BarChartPremium/BarChartPremium.plugins.d.mts} +0 -0
  169. /package/{esm/BarChartPremium/BarChartPremium.plugins.js → BarChartPremium/BarChartPremium.plugins.mjs} +0 -0
  170. /package/{esm/BarChartPremium/RangeBar/AnimatedRangeBarElement.d.ts → BarChartPremium/RangeBar/AnimatedRangeBarElement.d.mts} +0 -0
  171. /package/{esm/BarChartPremium/RangeBar/FocusedRangeBar.d.ts → BarChartPremium/RangeBar/FocusedRangeBar.d.mts} +0 -0
  172. /package/{esm/BarChartPremium/RangeBar/createGetRangeBarDimensions.d.ts → BarChartPremium/RangeBar/createGetRangeBarDimensions.d.mts} +0 -0
  173. /package/{esm/BarChartPremium/RangeBar/createGetRangeBarDimensions.js → BarChartPremium/RangeBar/createGetRangeBarDimensions.mjs} +0 -0
  174. /package/{esm/BarChartPremium/RangeBar/seriesConfig/extrema.d.ts → BarChartPremium/RangeBar/seriesConfig/extrema.d.mts} +0 -0
  175. /package/{esm/BarChartPremium/RangeBar/seriesConfig/extrema.js → BarChartPremium/RangeBar/seriesConfig/extrema.mjs} +0 -0
  176. /package/{esm/BarChartPremium/RangeBar/seriesConfig/getColor.d.ts → BarChartPremium/RangeBar/seriesConfig/getColor.d.mts} +0 -0
  177. /package/{esm/BarChartPremium/RangeBar/seriesConfig/getColor.js → BarChartPremium/RangeBar/seriesConfig/getColor.mjs} +0 -0
  178. /package/{esm/BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.js → BarChartPremium/RangeBar/seriesConfig/getSeriesWithDefaultValues.mjs} +0 -0
  179. /package/{esm/BarChartPremium/RangeBar/seriesConfig/index.d.ts → BarChartPremium/RangeBar/seriesConfig/index.d.mts} +0 -0
  180. /package/{esm/BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.ts → BarChartPremium/RangeBar/seriesConfig/keyboardFocusHandler.d.mts} +0 -0
  181. /package/{esm/BarChartPremium/RangeBar/seriesConfig/legend.d.ts → BarChartPremium/RangeBar/seriesConfig/legend.d.mts} +0 -0
  182. /package/{esm/BarChartPremium/RangeBar/seriesConfig/legend.js → BarChartPremium/RangeBar/seriesConfig/legend.mjs} +0 -0
  183. /package/{esm/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.ts → BarChartPremium/RangeBar/seriesConfig/seriesProcessor.d.mts} +0 -0
  184. /package/{esm/BarChartPremium/RangeBar/seriesConfig/tooltip.d.ts → BarChartPremium/RangeBar/seriesConfig/tooltip.d.mts} +0 -0
  185. /package/{esm/BarChartPremium/RangeBar/seriesConfig/tooltip.js → BarChartPremium/RangeBar/seriesConfig/tooltip.mjs} +0 -0
  186. /package/{esm/BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.ts → BarChartPremium/RangeBar/seriesConfig/tooltipPosition.d.mts} +0 -0
  187. /package/{esm/BarChartPremium/RangeBar/types.js → BarChartPremium/RangeBar/types.mjs} +0 -0
  188. /package/{esm/BarChartPremium/RangeBar/useUtilityClasses.d.ts → BarChartPremium/RangeBar/useUtilityClasses.d.mts} +0 -0
  189. /package/{esm/BarChartPremium/RangeBar/useUtilityClasses.js → BarChartPremium/RangeBar/useUtilityClasses.mjs} +0 -0
  190. /package/{esm/BarChartPremium/useBarChartPremiumProps.js → BarChartPremium/useBarChartPremiumProps.mjs} +0 -0
  191. /package/{esm/BarChartPro/index.d.ts → BarChartPro/index.d.mts} +0 -0
  192. /package/{esm/BarChartPro/index.js → BarChartPro/index.mjs} +0 -0
  193. /package/{esm/ChartContainer/index.d.ts → ChartContainer/index.d.mts} +0 -0
  194. /package/{esm/ChartContainer/index.js → ChartContainer/index.mjs} +0 -0
  195. /package/{esm/ChartContainerPro/index.d.ts → ChartContainerPro/index.d.mts} +0 -0
  196. /package/{esm/ChartContainerPro/index.js → ChartContainerPro/index.mjs} +0 -0
  197. /package/{esm/ChartDataProvider/index.d.ts → ChartDataProvider/index.d.mts} +0 -0
  198. /package/{esm/ChartDataProvider/index.js → ChartDataProvider/index.mjs} +0 -0
  199. /package/{esm/ChartDataProviderPro/index.d.ts → ChartDataProviderPro/index.d.mts} +0 -0
  200. /package/{esm/ChartDataProviderPro/index.js → ChartDataProviderPro/index.mjs} +0 -0
  201. /package/{esm/ChartZoomSlider/index.d.ts → ChartZoomSlider/index.d.mts} +0 -0
  202. /package/{esm/ChartZoomSlider/index.js → ChartZoomSlider/index.mjs} +0 -0
  203. /package/{esm/ChartsAxis/index.d.ts → ChartsAxis/index.d.mts} +0 -0
  204. /package/{esm/ChartsAxis/index.js → ChartsAxis/index.mjs} +0 -0
  205. /package/{esm/ChartsAxisHighlight/index.d.ts → ChartsAxisHighlight/index.d.mts} +0 -0
  206. /package/{esm/ChartsAxisHighlight/index.js → ChartsAxisHighlight/index.mjs} +0 -0
  207. /package/{esm/ChartsBrushOverlay/index.d.ts → ChartsBrushOverlay/index.d.mts} +0 -0
  208. /package/{esm/ChartsBrushOverlay/index.js → ChartsBrushOverlay/index.mjs} +0 -0
  209. /package/{esm/ChartsClipPath/index.d.ts → ChartsClipPath/index.d.mts} +0 -0
  210. /package/{esm/ChartsClipPath/index.js → ChartsClipPath/index.mjs} +0 -0
  211. /package/{esm/ChartsContainer/index.d.ts → ChartsContainer/index.d.mts} +0 -0
  212. /package/{esm/ChartsContainer/index.js → ChartsContainer/index.mjs} +0 -0
  213. /package/{esm/ChartsContainerPro/index.d.ts → ChartsContainerPro/index.d.mts} +0 -0
  214. /package/{esm/ChartsContainerPro/index.js → ChartsContainerPro/index.mjs} +0 -0
  215. /package/{esm/ChartsGrid/index.d.ts → ChartsGrid/index.d.mts} +0 -0
  216. /package/{esm/ChartsGrid/index.js → ChartsGrid/index.mjs} +0 -0
  217. /package/{esm/ChartsLabel/index.d.ts → ChartsLabel/index.d.mts} +0 -0
  218. /package/{esm/ChartsLabel/index.js → ChartsLabel/index.mjs} +0 -0
  219. /package/{esm/ChartsLegend/index.d.ts → ChartsLegend/index.d.mts} +0 -0
  220. /package/{esm/ChartsLegend/index.js → ChartsLegend/index.mjs} +0 -0
  221. /package/{esm/ChartsLocalizationProvider/index.d.ts → ChartsLocalizationProvider/index.d.mts} +0 -0
  222. /package/{esm/ChartsLocalizationProvider/index.js → ChartsLocalizationProvider/index.mjs} +0 -0
  223. /package/{esm/ChartsOverlay/index.d.ts → ChartsOverlay/index.d.mts} +0 -0
  224. /package/{esm/ChartsOverlay/index.js → ChartsOverlay/index.mjs} +0 -0
  225. /package/{esm/ChartsReferenceLine/index.d.ts → ChartsReferenceLine/index.d.mts} +0 -0
  226. /package/{esm/ChartsReferenceLine/index.js → ChartsReferenceLine/index.mjs} +0 -0
  227. /package/{esm/ChartsRenderer/ChartsRenderer.d.ts → ChartsRenderer/ChartsRenderer.d.mts} +0 -0
  228. /package/{esm/ChartsRenderer/colors.d.ts → ChartsRenderer/colors.d.mts} +0 -0
  229. /package/{esm/ChartsRenderer/colors.js → ChartsRenderer/colors.mjs} +0 -0
  230. /package/{esm/ChartsRenderer/components/PaletteOption.d.ts → ChartsRenderer/components/PaletteOption.d.mts} +0 -0
  231. /package/{esm/ChartsRenderer/configuration.d.ts → ChartsRenderer/configuration.d.mts} +0 -0
  232. /package/{esm/ChartsRenderer/icons.d.ts → ChartsRenderer/icons.d.mts} +0 -0
  233. /package/{esm/ChartsRenderer/icons.js → ChartsRenderer/icons.mjs} +0 -0
  234. /package/{esm/ChartsSurface/index.d.ts → ChartsSurface/index.d.mts} +0 -0
  235. /package/{esm/ChartsSurface/index.js → ChartsSurface/index.mjs} +0 -0
  236. /package/{esm/ChartsText/index.d.ts → ChartsText/index.d.mts} +0 -0
  237. /package/{esm/ChartsText/index.js → ChartsText/index.mjs} +0 -0
  238. /package/{esm/ChartsToolbarPro/index.d.ts → ChartsToolbarPro/index.d.mts} +0 -0
  239. /package/{esm/ChartsToolbarPro/index.js → ChartsToolbarPro/index.mjs} +0 -0
  240. /package/{esm/ChartsTooltip/index.d.ts → ChartsTooltip/index.d.mts} +0 -0
  241. /package/{esm/ChartsTooltip/index.js → ChartsTooltip/index.mjs} +0 -0
  242. /package/{esm/ChartsWrapper/index.d.ts → ChartsWrapper/index.d.mts} +0 -0
  243. /package/{esm/ChartsWrapper/index.js → ChartsWrapper/index.mjs} +0 -0
  244. /package/{esm/ChartsXAxis/index.d.ts → ChartsXAxis/index.d.mts} +0 -0
  245. /package/{esm/ChartsXAxis/index.js → ChartsXAxis/index.mjs} +0 -0
  246. /package/{esm/ChartsYAxis/index.d.ts → ChartsYAxis/index.d.mts} +0 -0
  247. /package/{esm/ChartsYAxis/index.js → ChartsYAxis/index.mjs} +0 -0
  248. /package/{ChartZoomSlider/internals/previews/RangeBarPreviewPlot.d.ts → ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.d.mts} +0 -0
  249. /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/previews/RangeBarPreviewPlot.d.ts +0 -0
  250. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/RangeBarPreviewPlot.js +0 -0
  251. /package/{esm/FunnelChart/index.d.ts → FunnelChart/index.d.mts} +0 -0
  252. /package/{esm/FunnelChart/index.js → FunnelChart/index.mjs} +0 -0
  253. /package/{esm/Gauge/index.d.ts → Gauge/index.d.mts} +0 -0
  254. /package/{esm/Gauge/index.js → Gauge/index.mjs} +0 -0
  255. /package/{esm/Heatmap/index.d.ts → Heatmap/index.d.mts} +0 -0
  256. /package/{esm/Heatmap/index.js → Heatmap/index.mjs} +0 -0
  257. /package/{esm/HeatmapPremium/HeatmapPlotPremium.d.ts → HeatmapPremium/HeatmapPlotPremium.d.mts} +0 -0
  258. /package/{esm/HeatmapPremium/HeatmapPremium.plugins.js → HeatmapPremium/HeatmapPremium.plugins.mjs} +0 -0
  259. /package/{esm/HeatmapPremium/useHeatmapPremiumProps.js → HeatmapPremium/useHeatmapPremiumProps.mjs} +0 -0
  260. /package/{esm/HeatmapPremium/webgl/HeatmapWebGLPlot.d.ts → HeatmapPremium/webgl/HeatmapWebGLPlot.d.mts} +0 -0
  261. /package/{esm/HeatmapPremium/webgl/HeatmapWebGLRenderer.d.ts → HeatmapPremium/webgl/HeatmapWebGLRenderer.d.mts} +0 -0
  262. /package/{esm/HeatmapPremium/webgl/shaders.d.ts → HeatmapPremium/webgl/shaders.d.mts} +0 -0
  263. /package/{esm/HeatmapPremium/webgl/shaders.js → HeatmapPremium/webgl/shaders.mjs} +0 -0
  264. /package/{esm/HeatmapPremium/webgl/useHeatmapPlotData.d.ts → HeatmapPremium/webgl/useHeatmapPlotData.d.mts} +0 -0
  265. /package/{esm/LineChart/index.d.ts → LineChart/index.d.mts} +0 -0
  266. /package/{esm/LineChart/index.js → LineChart/index.mjs} +0 -0
  267. /package/{esm/LineChartPro/index.d.ts → LineChartPro/index.d.mts} +0 -0
  268. /package/{esm/LineChartPro/index.js → LineChartPro/index.mjs} +0 -0
  269. /package/{esm/PieChart/index.d.ts → PieChart/index.d.mts} +0 -0
  270. /package/{esm/PieChart/index.js → PieChart/index.mjs} +0 -0
  271. /package/{esm/PieChartPro/index.d.ts → PieChartPro/index.d.mts} +0 -0
  272. /package/{esm/PieChartPro/index.js → PieChartPro/index.mjs} +0 -0
  273. /package/{esm/RadarChart/index.d.ts → RadarChart/index.d.mts} +0 -0
  274. /package/{esm/RadarChart/index.js → RadarChart/index.mjs} +0 -0
  275. /package/{esm/RadarChartPro/index.d.ts → RadarChartPro/index.d.mts} +0 -0
  276. /package/{esm/RadarChartPro/index.js → RadarChartPro/index.mjs} +0 -0
  277. /package/{esm/SankeyChart/index.d.ts → SankeyChart/index.d.mts} +0 -0
  278. /package/{esm/SankeyChart/index.js → SankeyChart/index.mjs} +0 -0
  279. /package/{esm/ScatterChart/index.d.ts → ScatterChart/index.d.mts} +0 -0
  280. /package/{esm/ScatterChart/index.js → ScatterChart/index.mjs} +0 -0
  281. /package/{esm/ScatterChartPro/index.d.ts → ScatterChartPro/index.d.mts} +0 -0
  282. /package/{esm/ScatterChartPro/index.js → ScatterChartPro/index.mjs} +0 -0
  283. /package/{esm/SparkLineChart/index.d.ts → SparkLineChart/index.d.mts} +0 -0
  284. /package/{esm/SparkLineChart/index.js → SparkLineChart/index.mjs} +0 -0
  285. /package/{esm/Toolbar/index.d.ts → Toolbar/index.d.mts} +0 -0
  286. /package/{esm/Toolbar/index.js → Toolbar/index.mjs} +0 -0
  287. /package/{esm/colorPalettes/index.d.ts → colorPalettes/index.d.mts} +0 -0
  288. /package/{esm/colorPalettes/index.js → colorPalettes/index.mjs} +0 -0
  289. /package/{esm/constants/index.d.ts → constants/index.d.mts} +0 -0
  290. /package/{esm/constants/index.js → constants/index.mjs} +0 -0
  291. /package/{esm/context/ChartPremiumApi.js → context/ChartPremiumApi.mjs} +0 -0
  292. /package/{esm/context/index.js → context/index.mjs} +0 -0
  293. /package/{esm/hooks/animation/useAnimateRangeBar.js → hooks/animation/useAnimateRangeBar.mjs} +0 -0
  294. /package/{esm/hooks/useChartPremiumApiRef.js → hooks/useChartPremiumApiRef.mjs} +0 -0
  295. /package/{esm/hooks/useRangeBarSeries.d.ts → hooks/useRangeBarSeries.d.mts} +0 -0
  296. /package/{esm/hooks/useRangeBarSeries.js → hooks/useRangeBarSeries.mjs} +0 -0
  297. /package/{esm/internals/plugins/allPlugins.js → internals/plugins/allPlugins.mjs} +0 -0
  298. /package/{esm/locales/index.d.ts → locales/index.d.mts} +0 -0
  299. /package/{esm/locales/index.js → locales/index.mjs} +0 -0
  300. /package/{esm/models/seriesType/rangeBar.d.ts → models/seriesType/rangeBar.d.mts} +0 -0
  301. /package/{esm/models/seriesType/rangeBar.js → models/seriesType/rangeBar.mjs} +0 -0
  302. /package/{esm/moduleAugmentation/rangeBarOnClick.js → moduleAugmentation/rangeBarOnClick.mjs} +0 -0
  303. /package/{esm/plugins/index.d.ts → plugins/index.d.mts} +0 -0
  304. /package/{esm/plugins/index.js → plugins/index.mjs} +0 -0
  305. /package/{esm/typeOverloads/modules.js → typeOverloads/modules.mjs} +0 -0
  306. /package/{esm/utils/index.d.ts → utils/index.d.mts} +0 -0
  307. /package/{esm/utils/index.js → utils/index.mjs} +0 -0
  308. /package/{esm/utils/webgl/parseColor.d.ts → utils/webgl/parseColor.d.mts} +0 -0
  309. /package/{esm/utils/webgl/parseColor.js → utils/webgl/parseColor.mjs} +0 -0
  310. /package/{esm/utils/webgl/useWebGLResizeObserver.d.ts → utils/webgl/useWebGLResizeObserver.d.mts} +0 -0
  311. /package/{HeatmapPremium/webgl/utils.d.ts → utils/webgl/utils.d.mts} +0 -0
  312. /package/{esm/HeatmapPremium → utils}/webgl/utils.d.ts +0 -0
  313. /package/{HeatmapPremium → utils}/webgl/utils.js +0 -0
  314. /package/{esm/HeatmapPremium/webgl/utils.js → utils/webgl/utils.mjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type BarChartProProps, type BarChartProSlotProps, type BarChartProSlots } from '@mui/x-charts-pro/BarChartPro';
3
3
  import { type BarSeries } from '@mui/x-charts/BarChart';
4
- import { type BarItemIdentifier, type RangeBarItemIdentifier, type RangeBarSeriesType } from "../models/index.js";
4
+ import { type BarItemIdentifier, type RangeBarItemIdentifier, type RangeBarSeriesType } from "../models/index.mjs";
5
5
  export type RangeBarSeries = RangeBarSeriesType;
6
6
  export interface BarChartPremiumSlots extends BarChartProSlots {}
7
7
  export interface BarChartPremiumSlotProps extends BarChartProSlotProps {}
@@ -39,5 +39,5 @@ export interface BarChartPremiumProps extends Omit<BarChartProProps, 'series' |
39
39
  *
40
40
  * - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
41
41
  */
42
- declare const BarChartPremium: React.ForwardRefExoticComponent<BarChartPremiumProps & React.RefAttributes<SVGSVGElement>>;
42
+ declare const BarChartPremium: React.ForwardRefExoticComponent<BarChartPremiumProps & React.RefAttributes<HTMLDivElement>>;
43
43
  export { BarChartPremium };
@@ -39,5 +39,5 @@ export interface BarChartPremiumProps extends Omit<BarChartProProps, 'series' |
39
39
  *
40
40
  * - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
41
41
  */
42
- declare const BarChartPremium: React.ForwardRefExoticComponent<BarChartPremiumProps & React.RefAttributes<SVGSVGElement>>;
42
+ declare const BarChartPremium: React.ForwardRefExoticComponent<BarChartPremiumProps & React.RefAttributes<HTMLDivElement>>;
43
43
  export { BarChartPremium };
@@ -22,7 +22,7 @@ var _BarChart = require("@mui/x-charts/BarChart");
22
22
  var _ChartsOverlay = require("@mui/x-charts/ChartsOverlay");
23
23
  var _ChartsAxisHighlight = require("@mui/x-charts/ChartsAxisHighlight");
24
24
  var _ChartsAxis = require("@mui/x-charts/ChartsAxis");
25
- var _ChartZoomSlider = require("@mui/x-charts-pro/ChartZoomSlider");
25
+ var _ChartsZoomSlider = require("@mui/x-charts-pro/ChartsZoomSlider");
26
26
  var _ChartsBrushOverlay = require("@mui/x-charts/ChartsBrushOverlay");
27
27
  var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
28
28
  var _internals = require("@mui/x-charts-pro/internals");
@@ -31,7 +31,7 @@ var _BarChartPremium2 = require("./BarChartPremium.plugins");
31
31
  var _ChartDataProviderPremium = require("../ChartDataProviderPremium");
32
32
  var _RangeBarPlot = require("./RangeBar/RangeBarPlot");
33
33
  var _FocusedRangeBar = require("./RangeBar/FocusedRangeBar");
34
- var _RangeBarPreviewPlot = require("../ChartZoomSlider/internals/previews/RangeBarPreviewPlot");
34
+ var _RangeBarPreviewPlot = require("../ChartsZoomSlider/internals/previews/RangeBarPreviewPlot");
35
35
  var _jsxRuntime = require("react/jsx-runtime");
36
36
  const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar"];
37
37
  _internals.seriesPreviewPlotMap.set('rangeBar', _RangeBarPreviewPlot.RangeBarPreviewPlot);
@@ -76,21 +76,22 @@ const BarChartPremium = exports.BarChartPremium = /*#__PURE__*/React.forwardRef(
76
76
  const {
77
77
  chartDataProviderProProps,
78
78
  chartsSurfaceProps
79
- } = (0, _internals.useChartContainerProProps)((0, _extends2.default)({}, chartContainerProps, {
79
+ } = (0, _internals.useChartsContainerProProps)((0, _extends2.default)({}, chartContainerProps, {
80
80
  initialZoom,
81
81
  zoomData,
82
82
  onZoomChange,
83
83
  apiRef,
84
84
  plugins: _BarChartPremium2.BAR_CHART_PREMIUM_PLUGINS
85
- }), ref);
85
+ }));
86
86
  const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
87
87
  const Toolbar = props.slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
88
88
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPremium.ChartDataProviderPremium, (0, _extends2.default)({}, chartDataProviderProProps, {
89
89
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
90
+ ref: ref,
90
91
  children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
91
92
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
92
93
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, (0, _extends2.default)({}, barPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RangeBarPlot.RangeBarPlot, (0, _extends2.default)({}, rangeBarPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.FocusedBar, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FocusedRangeBar.FocusedRangeBar, {})]
93
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartZoomSlider.ChartZoomSlider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsBrushOverlay.ChartsBrushOverlay, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
94
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsZoomSlider.ChartsZoomSlider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsBrushOverlay.ChartsBrushOverlay, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
94
95
  })), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, props.slotProps?.tooltip))]
95
96
  }))
96
97
  }));
@@ -195,11 +196,15 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
195
196
  * ]
196
197
  * ```
197
198
  */
198
- hiddenItems: _propTypes.default.arrayOf(_propTypes.default.shape({
199
+ hiddenItems: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
199
200
  dataIndex: _propTypes.default.number,
200
- seriesId: _propTypes.default.string,
201
+ seriesId: _propTypes.default.string.isRequired,
202
+ type: _propTypes.default.oneOf(['bar'])
203
+ }), _propTypes.default.shape({
204
+ dataIndex: _propTypes.default.number,
205
+ seriesId: _propTypes.default.string.isRequired,
201
206
  type: _propTypes.default.oneOf(['bar']).isRequired
202
- })),
207
+ })]).isRequired),
203
208
  /**
204
209
  * If `true`, the legend is not rendered.
205
210
  */
@@ -216,10 +221,14 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
216
221
  * The highlighted item.
217
222
  * Used when the highlight is controlled.
218
223
  */
219
- highlightedItem: _propTypes.default.shape({
224
+ highlightedItem: _propTypes.default.oneOfType([_propTypes.default.shape({
225
+ dataIndex: _propTypes.default.number,
226
+ seriesId: _propTypes.default.string.isRequired,
227
+ type: _propTypes.default.oneOf(['bar']).isRequired
228
+ }), _propTypes.default.shape({
220
229
  dataIndex: _propTypes.default.number,
221
230
  seriesId: _propTypes.default.string.isRequired
222
- }),
231
+ })]),
223
232
  /**
224
233
  * This prop is used to help implement the accessibility logic.
225
234
  * If you don't provide this prop. It falls back to a randomly generated id.
@@ -246,11 +255,15 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
246
255
  * ]
247
256
  * ```
248
257
  */
249
- initialHiddenItems: _propTypes.default.arrayOf(_propTypes.default.shape({
258
+ initialHiddenItems: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
250
259
  dataIndex: _propTypes.default.number,
251
- seriesId: _propTypes.default.string,
260
+ seriesId: _propTypes.default.string.isRequired,
261
+ type: _propTypes.default.oneOf(['bar'])
262
+ }), _propTypes.default.shape({
263
+ dataIndex: _propTypes.default.number,
264
+ seriesId: _propTypes.default.string.isRequired,
252
265
  type: _propTypes.default.oneOf(['bar']).isRequired
253
- })),
266
+ })]).isRequired),
254
267
  /**
255
268
  * The list of zoom data related to each axis.
256
269
  * Used to initialize the zoom in a specific configuration without controlling it.
@@ -295,13 +308,13 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
295
308
  onAxisClick: _propTypes.default.func,
296
309
  /**
297
310
  * Callback fired when any hidden identifiers change.
298
- * @param {VisibilityIdentifier[]} hiddenItems The new list of hidden identifiers.
311
+ * @param {VisibilityIdentifierWithType[]} hiddenItems The new list of hidden identifiers.
299
312
  */
300
313
  onHiddenItemsChange: _propTypes.default.func,
301
314
  /**
302
315
  * The callback fired when the highlighted item changes.
303
316
  *
304
- * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
317
+ * @param {HighlightItemIdentifierWithType<SeriesType> | null} highlightedItem The newly highlighted item.
305
318
  */
306
319
  onHighlightChange: _propTypes.default.func,
307
320
  /**
@@ -318,6 +331,14 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
318
331
  * @param {BarItemIdentifier | RangeBarItemIdentifier} itemIdentifier The item identifier.
319
332
  */
320
333
  onItemClick: _propTypes.default.func,
334
+ /**
335
+ * The function called when the pointer position corresponds to a new axis data item.
336
+ * This update can either be caused by a pointer movement, or an axis update.
337
+ * In case of multiple axes, the function is called if at least one axis is updated.
338
+ * The argument contains the identifier for all axes with a `data` property.
339
+ * @param {AxisItemIdentifier[]} axisItems The array of axes item identifiers.
340
+ */
341
+ onTooltipAxisChange: _propTypes.default.func,
321
342
  /**
322
343
  * The callback fired when the tooltip item changes.
323
344
  *
@@ -367,15 +388,26 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
367
388
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
368
389
  theme: _propTypes.default.oneOf(['dark', 'light']),
369
390
  title: _propTypes.default.string,
391
+ /**
392
+ * The controlled axis tooltip.
393
+ * Identified by the axis id, and data index.
394
+ */
395
+ tooltipAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
396
+ axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
397
+ dataIndex: _propTypes.default.number.isRequired
398
+ })),
370
399
  /**
371
400
  * The tooltip item.
372
401
  * Used when the tooltip is controlled.
373
402
  */
374
- tooltipItem: _propTypes.default.shape({
403
+ tooltipItem: _propTypes.default.oneOfType([_propTypes.default.shape({
375
404
  dataIndex: _propTypes.default.number.isRequired,
376
405
  seriesId: _propTypes.default.string.isRequired,
377
406
  type: _propTypes.default.oneOf(['bar']).isRequired
378
- }),
407
+ }), _propTypes.default.shape({
408
+ dataIndex: _propTypes.default.number.isRequired,
409
+ seriesId: _propTypes.default.string.isRequired
410
+ })]),
379
411
  /**
380
412
  * The width of the chart in px. If not defined, it takes the width of the parent element.
381
413
  */
@@ -16,16 +16,16 @@ import { BarPlot, FocusedBar } from '@mui/x-charts/BarChart';
16
16
  import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
17
17
  import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
18
18
  import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
19
- import { ChartZoomSlider } from '@mui/x-charts-pro/ChartZoomSlider';
19
+ import { ChartsZoomSlider } from '@mui/x-charts-pro/ChartsZoomSlider';
20
20
  import { ChartsBrushOverlay } from '@mui/x-charts/ChartsBrushOverlay';
21
21
  import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
22
- import { seriesPreviewPlotMap, useChartContainerProProps } from '@mui/x-charts-pro/internals';
23
- import { useBarChartPremiumProps } from "./useBarChartPremiumProps.js";
24
- import { BAR_CHART_PREMIUM_PLUGINS } from "./BarChartPremium.plugins.js";
25
- import { ChartDataProviderPremium } from "../ChartDataProviderPremium/index.js";
26
- import { RangeBarPlot } from "./RangeBar/RangeBarPlot.js";
27
- import { FocusedRangeBar } from "./RangeBar/FocusedRangeBar.js";
28
- import { RangeBarPreviewPlot } from "../ChartZoomSlider/internals/previews/RangeBarPreviewPlot.js";
22
+ import { seriesPreviewPlotMap, useChartsContainerProProps } from '@mui/x-charts-pro/internals';
23
+ import { useBarChartPremiumProps } from "./useBarChartPremiumProps.mjs";
24
+ import { BAR_CHART_PREMIUM_PLUGINS } from "./BarChartPremium.plugins.mjs";
25
+ import { ChartDataProviderPremium } from "../ChartDataProviderPremium/index.mjs";
26
+ import { RangeBarPlot } from "./RangeBar/RangeBarPlot.mjs";
27
+ import { FocusedRangeBar } from "./RangeBar/FocusedRangeBar.mjs";
28
+ import { RangeBarPreviewPlot } from "../ChartsZoomSlider/internals/previews/RangeBarPreviewPlot.mjs";
29
29
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
30
  seriesPreviewPlotMap.set('rangeBar', RangeBarPreviewPlot);
31
31
  /**
@@ -69,21 +69,22 @@ const BarChartPremium = /*#__PURE__*/React.forwardRef(function BarChartPremium(i
69
69
  const {
70
70
  chartDataProviderProProps,
71
71
  chartsSurfaceProps
72
- } = useChartContainerProProps(_extends({}, chartContainerProps, {
72
+ } = useChartsContainerProProps(_extends({}, chartContainerProps, {
73
73
  initialZoom,
74
74
  zoomData,
75
75
  onZoomChange,
76
76
  apiRef,
77
77
  plugins: BAR_CHART_PREMIUM_PLUGINS
78
- }), ref);
78
+ }));
79
79
  const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
80
80
  const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
81
81
  return /*#__PURE__*/_jsx(ChartDataProviderPremium, _extends({}, chartDataProviderProProps, {
82
82
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
83
+ ref: ref,
83
84
  children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
84
85
  children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
85
86
  children: [/*#__PURE__*/_jsx(BarPlot, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(RangeBarPlot, _extends({}, rangeBarPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), /*#__PURE__*/_jsx(FocusedBar, {}), /*#__PURE__*/_jsx(FocusedRangeBar, {})]
86
- })), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartZoomSlider, {}), /*#__PURE__*/_jsx(ChartsBrushOverlay, {}), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
87
+ })), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsZoomSlider, {}), /*#__PURE__*/_jsx(ChartsBrushOverlay, {}), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
87
88
  })), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip))]
88
89
  }))
89
90
  }));
@@ -188,11 +189,15 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
188
189
  * ]
189
190
  * ```
190
191
  */
191
- hiddenItems: PropTypes.arrayOf(PropTypes.shape({
192
+ hiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
192
193
  dataIndex: PropTypes.number,
193
- seriesId: PropTypes.string,
194
+ seriesId: PropTypes.string.isRequired,
195
+ type: PropTypes.oneOf(['bar'])
196
+ }), PropTypes.shape({
197
+ dataIndex: PropTypes.number,
198
+ seriesId: PropTypes.string.isRequired,
194
199
  type: PropTypes.oneOf(['bar']).isRequired
195
- })),
200
+ })]).isRequired),
196
201
  /**
197
202
  * If `true`, the legend is not rendered.
198
203
  */
@@ -209,10 +214,14 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
209
214
  * The highlighted item.
210
215
  * Used when the highlight is controlled.
211
216
  */
212
- highlightedItem: PropTypes.shape({
217
+ highlightedItem: PropTypes.oneOfType([PropTypes.shape({
218
+ dataIndex: PropTypes.number,
219
+ seriesId: PropTypes.string.isRequired,
220
+ type: PropTypes.oneOf(['bar']).isRequired
221
+ }), PropTypes.shape({
213
222
  dataIndex: PropTypes.number,
214
223
  seriesId: PropTypes.string.isRequired
215
- }),
224
+ })]),
216
225
  /**
217
226
  * This prop is used to help implement the accessibility logic.
218
227
  * If you don't provide this prop. It falls back to a randomly generated id.
@@ -239,11 +248,15 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
239
248
  * ]
240
249
  * ```
241
250
  */
242
- initialHiddenItems: PropTypes.arrayOf(PropTypes.shape({
251
+ initialHiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
243
252
  dataIndex: PropTypes.number,
244
- seriesId: PropTypes.string,
253
+ seriesId: PropTypes.string.isRequired,
254
+ type: PropTypes.oneOf(['bar'])
255
+ }), PropTypes.shape({
256
+ dataIndex: PropTypes.number,
257
+ seriesId: PropTypes.string.isRequired,
245
258
  type: PropTypes.oneOf(['bar']).isRequired
246
- })),
259
+ })]).isRequired),
247
260
  /**
248
261
  * The list of zoom data related to each axis.
249
262
  * Used to initialize the zoom in a specific configuration without controlling it.
@@ -288,13 +301,13 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
288
301
  onAxisClick: PropTypes.func,
289
302
  /**
290
303
  * Callback fired when any hidden identifiers change.
291
- * @param {VisibilityIdentifier[]} hiddenItems The new list of hidden identifiers.
304
+ * @param {VisibilityIdentifierWithType[]} hiddenItems The new list of hidden identifiers.
292
305
  */
293
306
  onHiddenItemsChange: PropTypes.func,
294
307
  /**
295
308
  * The callback fired when the highlighted item changes.
296
309
  *
297
- * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
310
+ * @param {HighlightItemIdentifierWithType<SeriesType> | null} highlightedItem The newly highlighted item.
298
311
  */
299
312
  onHighlightChange: PropTypes.func,
300
313
  /**
@@ -311,6 +324,14 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
311
324
  * @param {BarItemIdentifier | RangeBarItemIdentifier} itemIdentifier The item identifier.
312
325
  */
313
326
  onItemClick: PropTypes.func,
327
+ /**
328
+ * The function called when the pointer position corresponds to a new axis data item.
329
+ * This update can either be caused by a pointer movement, or an axis update.
330
+ * In case of multiple axes, the function is called if at least one axis is updated.
331
+ * The argument contains the identifier for all axes with a `data` property.
332
+ * @param {AxisItemIdentifier[]} axisItems The array of axes item identifiers.
333
+ */
334
+ onTooltipAxisChange: PropTypes.func,
314
335
  /**
315
336
  * The callback fired when the tooltip item changes.
316
337
  *
@@ -360,15 +381,26 @@ process.env.NODE_ENV !== "production" ? BarChartPremium.propTypes = {
360
381
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
361
382
  theme: PropTypes.oneOf(['dark', 'light']),
362
383
  title: PropTypes.string,
384
+ /**
385
+ * The controlled axis tooltip.
386
+ * Identified by the axis id, and data index.
387
+ */
388
+ tooltipAxis: PropTypes.arrayOf(PropTypes.shape({
389
+ axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
390
+ dataIndex: PropTypes.number.isRequired
391
+ })),
363
392
  /**
364
393
  * The tooltip item.
365
394
  * Used when the tooltip is controlled.
366
395
  */
367
- tooltipItem: PropTypes.shape({
396
+ tooltipItem: PropTypes.oneOfType([PropTypes.shape({
368
397
  dataIndex: PropTypes.number.isRequired,
369
398
  seriesId: PropTypes.string.isRequired,
370
399
  type: PropTypes.oneOf(['bar']).isRequired
371
- }),
400
+ }), PropTypes.shape({
401
+ dataIndex: PropTypes.number.isRequired,
402
+ seriesId: PropTypes.string.isRequired
403
+ })]),
372
404
  /**
373
405
  * The width of the chart in px. If not defined, it takes the width of the parent element.
374
406
  */
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["ownerState", "skipAnimation", "seriesId", "dataIndex", "xOrigin", "yOrigin", "hidden"];
6
6
  import * as React from 'react';
7
- import { useAnimateRangeBar } from "../../hooks/animation/useAnimateRangeBar.js";
7
+ import { useAnimateRangeBar } from "../../hooks/animation/useAnimateRangeBar.mjs";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  export function AnimatedRangeBarElement(props) {
10
10
  const {
@@ -4,8 +4,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
5
  import { useTheme } from '@mui/material/styles';
6
6
  import { useFocusedItem, useXAxes, useYAxes } from '@mui/x-charts/hooks';
7
- import { createGetRangeBarDimensions } from "./createGetRangeBarDimensions.js";
8
- import { useRangeBarSeriesContext } from "../../hooks/useRangeBarSeries.js";
7
+ import { createGetRangeBarDimensions } from "./createGetRangeBarDimensions.mjs";
8
+ import { useRangeBarSeriesContext } from "../../hooks/useRangeBarSeries.mjs";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  export function FocusedRangeBar(props) {
11
11
  const theme = useTheme();
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { type BarElementSlotProps, type BarElementSlots, type BarLabelSlots, type BarLabelSlotProps } from '@mui/x-charts/BarChart';
3
- import { type RangeBarItemIdentifier } from "../../models/index.js";
3
+ import { type RangeBarItemIdentifier } from "../../models/index.mjs";
4
4
  export interface RangeBarPlotSlots extends BarElementSlots, BarLabelSlots {}
5
5
  export interface RangeBarPlotSlotProps extends BarElementSlotProps, BarLabelSlotProps {}
6
6
  export interface RangeBarPlotProps {
@@ -10,9 +10,9 @@ import { useSkipAnimation } from '@mui/x-charts/internals';
10
10
  import { BarElement, barElementClasses } from '@mui/x-charts/BarChart';
11
11
  import { useDrawingArea, useXAxes, useYAxes } from '@mui/x-charts/hooks';
12
12
  import { useIsZoomInteracting } from '@mui/x-charts-pro/hooks';
13
- import { useUtilityClasses } from "./useUtilityClasses.js";
14
- import { useRangeBarPlotData } from "./useRangeBarPlotData.js";
15
- import { AnimatedRangeBarElement } from "./AnimatedRangeBarElement.js";
13
+ import { useUtilityClasses } from "./useUtilityClasses.mjs";
14
+ import { useRangeBarPlotData } from "./useRangeBarPlotData.mjs";
15
+ import { AnimatedRangeBarElement } from "./AnimatedRangeBarElement.mjs";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  const RangeBarPlotRoot = styled('g', {
18
18
  name: 'MuiRangeBarPlot',
@@ -3,17 +3,17 @@ export declare function getSeriesWithDefaultValues(seriesData: AllSeriesType<'ra
3
3
  id: string;
4
4
  color: string;
5
5
  type: "rangeBar";
6
- data?: ReadonlyArray<import("../../../index.js").RangeBarValueType | null>;
6
+ data?: ReadonlyArray<import("../../../index.mjs").RangeBarValueType | null>;
7
7
  datasetKeys?: {
8
8
  start: string;
9
9
  end: string;
10
10
  };
11
11
  label?: string | ((location: "tooltip" | "legend") => string);
12
12
  layout?: "horizontal" | "vertical";
13
- valueFormatter?: import("@mui/x-charts/internals").SeriesValueFormatter<import("../../../index.js").RangeBarValueType | null> | undefined;
13
+ valueFormatter?: import("@mui/x-charts/internals").SeriesValueFormatter<import("../../../index.mjs").RangeBarValueType | null> | undefined;
14
14
  highlightScope?: import("@mui/x-charts/internals").CommonHighlightScope | undefined;
15
15
  labelMarkType?: import("@mui/x-charts/internals").ChartsLabelMarkType;
16
- colorGetter?: ((data: import("@mui/x-charts/internals").ColorCallbackValue<import("../../../index.js").RangeBarValueType | null>) => string) | undefined;
16
+ colorGetter?: ((data: import("@mui/x-charts/internals").ColorCallbackValue<import("../../../index.mjs").RangeBarValueType | null>) => string) | undefined;
17
17
  xAxisId?: import("@mui/x-charts/internals").AxisId;
18
18
  yAxisId?: import("@mui/x-charts/internals").AxisId;
19
19
  };
@@ -27,6 +27,8 @@ const rangeBarSeriesConfig = exports.rangeBarSeriesConfig = {
27
27
  getSeriesWithDefaultValues: _getSeriesWithDefaultValues.getSeriesWithDefaultValues,
28
28
  keyboardFocusHandler: _keyboardFocusHandler.default,
29
29
  identifierSerializer: _internals.identifierSerializerSeriesIdDataIndex,
30
- identifierCleaner: _internals.identifierCleanerSeriesIdDataIndex
30
+ identifierCleaner: _internals.identifierCleanerSeriesIdDataIndex,
31
+ isHighlightedCreator: _internals.createIsHighlighted,
32
+ isFadedCreator: _internals.createIsFaded
31
33
  };
32
34
  _internals.cartesianSeriesTypes.addType('rangeBar');
@@ -0,0 +1,26 @@
1
+ import { cartesianSeriesTypes, identifierSerializerSeriesIdDataIndex, identifierCleanerSeriesIdDataIndex, createIsHighlighted, createIsFaded } from '@mui/x-charts/internals';
2
+ import { getExtremumX, getExtremumY } from "./extrema.mjs";
3
+ import tooltipGetter, { axisTooltipGetter } from "./tooltip.mjs";
4
+ import seriesProcessor from "./seriesProcessor.mjs";
5
+ import getColor from "./getColor.mjs";
6
+ import legendGetter from "./legend.mjs";
7
+ import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
8
+ import tooltipItemPositionGetter from "./tooltipPosition.mjs";
9
+ import { getSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.mjs";
10
+ export const rangeBarSeriesConfig = {
11
+ seriesProcessor,
12
+ colorProcessor: getColor,
13
+ legendGetter,
14
+ tooltipGetter,
15
+ tooltipItemPositionGetter,
16
+ axisTooltipGetter,
17
+ xExtremumGetter: getExtremumX,
18
+ yExtremumGetter: getExtremumY,
19
+ getSeriesWithDefaultValues,
20
+ keyboardFocusHandler,
21
+ identifierSerializer: identifierSerializerSeriesIdDataIndex,
22
+ identifierCleaner: identifierCleanerSeriesIdDataIndex,
23
+ isHighlightedCreator: createIsHighlighted,
24
+ isFadedCreator: createIsFaded
25
+ };
26
+ cartesianSeriesTypes.addType('rangeBar');
@@ -5,18 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _internals = require("@mui/x-charts/internals");
8
- const keyboardFocusHandler = event => {
9
- switch (event.key) {
10
- case 'ArrowRight':
11
- return (0, _internals.createGetNextIndexFocusedItem)(_internals.composableCartesianSeriesTypes);
12
- case 'ArrowLeft':
13
- return (0, _internals.createGetPreviousIndexFocusedItem)(_internals.composableCartesianSeriesTypes);
14
- case 'ArrowDown':
15
- return (0, _internals.createGetPreviousSeriesFocusedItem)(_internals.composableCartesianSeriesTypes);
16
- case 'ArrowUp':
17
- return (0, _internals.createGetNextSeriesFocusedItem)(_internals.composableCartesianSeriesTypes);
18
- default:
19
- return null;
20
- }
21
- };
8
+ const keyboardFocusHandler = (0, _internals.createCommonKeyboardFocusHandler)(_internals.composableCartesianSeriesTypes);
22
9
  var _default = exports.default = keyboardFocusHandler;
@@ -0,0 +1,3 @@
1
+ import { composableCartesianSeriesTypes, createCommonKeyboardFocusHandler } from '@mui/x-charts/internals';
2
+ const keyboardFocusHandler = createCommonKeyboardFocusHandler(composableCartesianSeriesTypes);
3
+ export default keyboardFocusHandler;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
9
10
  var _warning = require("@mui/x-internals/warning");
10
11
  const rangeBarValueFormatter = v => v == null ? '' : `[${v[0]}, ${v[1]}]`;
11
12
  const seriesProcessor = (params, dataset, isItemVisible) => {
@@ -18,11 +19,13 @@ const seriesProcessor = (params, dataset, isItemVisible) => {
18
19
  const seriesData = series[id];
19
20
  const datasetKeys = seriesData?.datasetKeys;
20
21
  if (seriesData.data === undefined && dataset === undefined && process.env.NODE_ENV !== 'production') {
21
- throw new Error([`MUI X Charts: range bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
22
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: range bar series with id='${id}' has no data.
23
+ Either provide a data property to the series or use the dataset prop.` : (0, _formatErrorMessage2.default)(44, id));
22
24
  }
23
25
  const missingKeys = ['start', 'end'].filter(key => typeof datasetKeys?.[key] !== 'string');
24
26
  if (datasetKeys && missingKeys.length > 0) {
25
- throw new Error([`MUI X Charts: range bar series with id='${id}' has incomplete datasetKeys.`, `Properties ${missingKeys.map(key => `"${key}"`).join(', ')} are missing.`].join('\n'));
27
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: range bar series with id='${id}' has incomplete datasetKeys.
28
+ Properties ${missingKeys.map(key => `"${key}"`).join(', ')} are missing.` : (0, _formatErrorMessage2.default)(45, id, missingKeys.map(key => `"${key}"`).join(', ')));
26
29
  }
27
30
  completedSeries[id] = (0, _extends2.default)({
28
31
  layout: 'vertical'
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
2
3
  import { warnOnce } from '@mui/x-internals/warning';
3
4
  const rangeBarValueFormatter = v => v == null ? '' : `[${v[0]}, ${v[1]}]`;
4
5
  const seriesProcessor = (params, dataset, isItemVisible) => {
@@ -11,11 +12,13 @@ const seriesProcessor = (params, dataset, isItemVisible) => {
11
12
  const seriesData = series[id];
12
13
  const datasetKeys = seriesData?.datasetKeys;
13
14
  if (seriesData.data === undefined && dataset === undefined && process.env.NODE_ENV !== 'production') {
14
- throw new Error([`MUI X Charts: range bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
15
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: range bar series with id='${id}' has no data.
16
+ Either provide a data property to the series or use the dataset prop.` : _formatErrorMessage(44, id));
15
17
  }
16
18
  const missingKeys = ['start', 'end'].filter(key => typeof datasetKeys?.[key] !== 'string');
17
19
  if (datasetKeys && missingKeys.length > 0) {
18
- throw new Error([`MUI X Charts: range bar series with id='${id}' has incomplete datasetKeys.`, `Properties ${missingKeys.map(key => `"${key}"`).join(', ')} are missing.`].join('\n'));
20
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: range bar series with id='${id}' has incomplete datasetKeys.
21
+ Properties ${missingKeys.map(key => `"${key}"`).join(', ')} are missing.` : _formatErrorMessage(45, id, missingKeys.map(key => `"${key}"`).join(', ')));
19
22
  }
20
23
  completedSeries[id] = _extends({
21
24
  layout: 'vertical'
@@ -1,4 +1,4 @@
1
- import { createGetRangeBarDimensions } from "../createGetRangeBarDimensions.js";
1
+ import { createGetRangeBarDimensions } from "../createGetRangeBarDimensions.mjs";
2
2
  const tooltipItemPositionGetter = params => {
3
3
  const {
4
4
  series,
@@ -1,6 +1,6 @@
1
1
  import type { SeriesId } from '@mui/x-charts/models';
2
2
  import type { BarSeriesType } from '@mui/x-charts-pro/models';
3
- import type { RangeBarValueType } from "../../models/index.js";
3
+ import type { RangeBarValueType } from "../../models/index.mjs";
4
4
  export interface LayoutData {
5
5
  x: number;
6
6
  y: number;
@@ -1,5 +1,5 @@
1
1
  import { type ChartDrawingArea } from '@mui/x-charts/hooks';
2
2
  import { type ComputedAxisConfig } from '@mui/x-charts/internals';
3
3
  import { type ChartsXAxisProps, type ChartsYAxisProps } from '@mui/x-charts/models';
4
- import { type ProcessedRangeBarSeriesData } from "./types.js";
4
+ import { type ProcessedRangeBarSeriesData } from "./types.mjs";
5
5
  export declare function useRangeBarPlotData(drawingArea: ChartDrawingArea, xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>): ProcessedRangeBarSeriesData[];
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { useXAxes, useYAxes } from '@mui/x-charts/hooks';
3
3
  import { checkBarChartScaleErrors, useStore } from '@mui/x-charts/internals';
4
- import { useRangeBarSeriesContext } from "../../hooks/useRangeBarSeries.js";
5
- import { createGetRangeBarDimensions } from "./createGetRangeBarDimensions.js";
4
+ import { useRangeBarSeriesContext } from "../../hooks/useRangeBarSeries.mjs";
5
+ import { createGetRangeBarDimensions } from "./createGetRangeBarDimensions.mjs";
6
6
  export function useRangeBarPlotData(drawingArea, xAxes, yAxes) {
7
7
  const store = useStore();
8
8
  const seriesData = useRangeBarSeriesContext() ?? {
@@ -0,0 +1,5 @@
1
+ export * from "./BarChartPremium.mjs";
2
+ export * from "./BarChartPremium.plugins.mjs";
3
+ export * from "./RangeBar/RangeBarPlot.mjs";
4
+ export * from "./RangeBar/FocusedRangeBar.mjs";
5
+ export { rangeBarClasses, type RangeBarClasses, type RangeBarClassKey } from "./RangeBar/useUtilityClasses.mjs";
@@ -0,0 +1,5 @@
1
+ export * from "./BarChartPremium.mjs";
2
+ export * from "./BarChartPremium.plugins.mjs";
3
+ export * from "./RangeBar/RangeBarPlot.mjs";
4
+ export * from "./RangeBar/FocusedRangeBar.mjs";
5
+ export { rangeBarClasses } from "./RangeBar/useUtilityClasses.mjs";
@@ -1,7 +1,7 @@
1
1
  import { type BarChartPluginSignatures } from '@mui/x-charts/BarChart';
2
- import { type ChartContainerProps } from '@mui/x-charts/ChartContainer';
3
- import { type BarChartPremiumProps } from "./BarChartPremium.js";
4
- import { type RangeBarPlotProps } from "./RangeBar/RangeBarPlot.js";
2
+ import { type ChartsContainerProps } from '@mui/x-charts/ChartsContainer';
3
+ import { type BarChartPremiumProps } from "./BarChartPremium.mjs";
4
+ import { type RangeBarPlotProps } from "./RangeBar/RangeBarPlot.mjs";
5
5
  /**
6
6
  * A helper function that extracts BarChartPremiumProps from the input props
7
7
  * and returns an object with props for the children components of BarChartPremium.
@@ -10,7 +10,7 @@ import { type RangeBarPlotProps } from "./RangeBar/RangeBarPlot.js";
10
10
  * @returns An object with props for the children components of BarChartPremium
11
11
  */
12
12
  export declare function useBarChartPremiumProps(props: BarChartPremiumProps): {
13
- chartContainerProps: ChartContainerProps<"bar" | "rangeBar", BarChartPluginSignatures>;
13
+ chartContainerProps: ChartsContainerProps<"bar" | "rangeBar", BarChartPluginSignatures>;
14
14
  rangeBarPlotProps: RangeBarPlotProps;
15
15
  chartsWrapperProps: Omit<import("@mui/x-charts").ChartsWrapperProps, "children">;
16
16
  barPlotProps: import("@mui/x-charts").BarPlotProps;
@@ -1,5 +1,5 @@
1
1
  import { type BarChartPluginSignatures } from '@mui/x-charts/BarChart';
2
- import { type ChartContainerProps } from '@mui/x-charts/ChartContainer';
2
+ import { type ChartsContainerProps } from '@mui/x-charts/ChartsContainer';
3
3
  import { type BarChartPremiumProps } from "./BarChartPremium.js";
4
4
  import { type RangeBarPlotProps } from "./RangeBar/RangeBarPlot.js";
5
5
  /**
@@ -10,7 +10,7 @@ import { type RangeBarPlotProps } from "./RangeBar/RangeBarPlot.js";
10
10
  * @returns An object with props for the children components of BarChartPremium
11
11
  */
12
12
  export declare function useBarChartPremiumProps(props: BarChartPremiumProps): {
13
- chartContainerProps: ChartContainerProps<"bar" | "rangeBar", BarChartPluginSignatures>;
13
+ chartContainerProps: ChartsContainerProps<"bar" | "rangeBar", BarChartPluginSignatures>;
14
14
  rangeBarPlotProps: RangeBarPlotProps;
15
15
  chartsWrapperProps: Omit<import("@mui/x-charts").ChartsWrapperProps, "children">;
16
16
  barPlotProps: import("@mui/x-charts").BarPlotProps;