@mui/x-charts 8.1.0 → 8.2.0

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 (414) hide show
  1. package/BarChart/BarChart.js +1 -1
  2. package/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
  3. package/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
  4. package/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
  5. package/BarChart/BarLabel/index.d.ts +4 -4
  6. package/BarChart/checkScaleErrors.d.ts +3 -3
  7. package/BarChart/checkScaleErrors.js +4 -4
  8. package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  9. package/BarChart/seriesConfig/seriesProcessor.js +2 -2
  10. package/BarChart/seriesConfig/tooltip.d.ts +1 -1
  11. package/BarChart/types.d.ts +2 -2
  12. package/BarChart/useBarChartProps.d.ts +2 -2
  13. package/BarChart/useBarChartProps.js +20 -2
  14. package/CHANGELOG.md +126 -7
  15. package/ChartContainer/ChartContainer.js +1 -1
  16. package/ChartContainer/useChartContainerProps.d.ts +1 -1
  17. package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  18. package/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
  19. package/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
  20. package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
  21. package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
  22. package/ChartsLabel/ChartsLabelMark.js +8 -4
  23. package/ChartsLabel/index.d.ts +4 -4
  24. package/ChartsLabel/labelClasses.d.ts +1 -1
  25. package/ChartsLabel/labelGradientClasses.d.ts +1 -1
  26. package/ChartsLabel/labelMarkClasses.d.ts +1 -1
  27. package/ChartsLegend/ChartsLegend.d.ts +2 -2
  28. package/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
  29. package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
  30. package/ChartsLegend/chartsLegend.types.d.ts +1 -1
  31. package/ChartsLegend/chartsLegendClasses.d.ts +2 -2
  32. package/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
  33. package/ChartsLegend/index.d.ts +4 -4
  34. package/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
  35. package/ChartsLegend/useAxis.d.ts +2 -2
  36. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  37. package/ChartsLocalizationProvider/index.d.ts +1 -1
  38. package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  39. package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  40. package/ChartsOverlay/index.d.ts +1 -1
  41. package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  42. package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  43. package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  44. package/ChartsText/index.d.ts +2 -2
  45. package/ChartsTooltip/ChartsTooltipContainer.js +1 -0
  46. package/ChartsTooltip/index.d.ts +3 -3
  47. package/ChartsTooltip/useAxisTooltip.d.ts +2 -2
  48. package/LineChart/AnimatedArea.d.ts +1 -1
  49. package/LineChart/AnimatedLine.d.ts +1 -1
  50. package/LineChart/AreaPlot.js +2 -2
  51. package/LineChart/LineChart.js +1 -1
  52. package/LineChart/LineHighlightPlot.js +1 -1
  53. package/LineChart/LinePlot.js +2 -2
  54. package/LineChart/MarkPlot.js +1 -1
  55. package/LineChart/index.d.ts +1 -1
  56. package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  57. package/LineChart/seriesConfig/seriesProcessor.js +2 -2
  58. package/LineChart/seriesConfig/tooltip.d.ts +1 -1
  59. package/LineChart/useLineChartProps.d.ts +2 -2
  60. package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  61. package/PieChart/seriesConfig/tooltip.d.ts +1 -1
  62. package/RadarChart/RadarGrid/index.d.ts +1 -1
  63. package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
  64. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
  65. package/RadarChart/index.d.ts +2 -2
  66. package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  67. package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  68. package/RadarChart/useRadarChartProps.d.ts +2 -2
  69. package/ScatterChart/ScatterChart.js +1 -1
  70. package/ScatterChart/ScatterMarker.types.d.ts +1 -1
  71. package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  72. package/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
  73. package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  74. package/ScatterChart/useScatterChartProps.d.ts +3 -3
  75. package/SparkLineChart/SparkLineChart.js +1 -1
  76. package/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
  77. package/colorPalettes/categorical/blueberryTwilight.js +10 -0
  78. package/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
  79. package/colorPalettes/categorical/cheerfulFiesta.js +10 -0
  80. package/colorPalettes/categorical/mangoFusion.d.ts +4 -0
  81. package/colorPalettes/categorical/mangoFusion.js +10 -0
  82. package/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
  83. package/colorPalettes/categorical/rainbowSurge.js +10 -0
  84. package/colorPalettes/index.d.ts +14 -1
  85. package/colorPalettes/index.js +147 -4
  86. package/colorPalettes/sequential/blue.d.ts +4 -0
  87. package/colorPalettes/sequential/blue.js +12 -0
  88. package/colorPalettes/sequential/cyan.d.ts +4 -0
  89. package/colorPalettes/sequential/cyan.js +12 -0
  90. package/colorPalettes/sequential/green.d.ts +4 -0
  91. package/colorPalettes/sequential/green.js +12 -0
  92. package/colorPalettes/sequential/orange.d.ts +4 -0
  93. package/colorPalettes/sequential/orange.js +12 -0
  94. package/colorPalettes/sequential/pink.d.ts +4 -0
  95. package/colorPalettes/sequential/pink.js +12 -0
  96. package/colorPalettes/sequential/purple.d.ts +4 -0
  97. package/colorPalettes/sequential/purple.js +12 -0
  98. package/colorPalettes/sequential/red.d.ts +4 -0
  99. package/colorPalettes/sequential/red.js +12 -0
  100. package/colorPalettes/sequential/strawberrySky.d.ts +4 -0
  101. package/colorPalettes/sequential/strawberrySky.js +10 -0
  102. package/colorPalettes/sequential/yellow.d.ts +4 -0
  103. package/colorPalettes/sequential/yellow.js +12 -0
  104. package/colorPalettes/types.d.ts +4 -0
  105. package/colorPalettes/types.js +5 -0
  106. package/context/ChartProvider/ChartContext.d.ts +1 -1
  107. package/context/ChartProvider/ChartProvider.d.ts +1 -1
  108. package/context/ChartProvider/ChartProvider.types.d.ts +6 -6
  109. package/context/ChartProvider/useChartContext.js +1 -1
  110. package/context/index.d.ts +1 -1
  111. package/esm/BarChart/BarChart.js +1 -1
  112. package/esm/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
  113. package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
  114. package/esm/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
  115. package/esm/BarChart/BarLabel/index.d.ts +4 -4
  116. package/esm/BarChart/checkScaleErrors.d.ts +3 -3
  117. package/esm/BarChart/checkScaleErrors.js +4 -4
  118. package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  119. package/esm/BarChart/seriesConfig/seriesProcessor.js +2 -2
  120. package/esm/BarChart/seriesConfig/tooltip.d.ts +1 -1
  121. package/esm/BarChart/types.d.ts +2 -2
  122. package/esm/BarChart/useBarChartProps.d.ts +2 -2
  123. package/esm/BarChart/useBarChartProps.js +20 -2
  124. package/esm/ChartContainer/ChartContainer.js +1 -1
  125. package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
  126. package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  127. package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
  128. package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
  129. package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
  130. package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
  131. package/esm/ChartsLabel/ChartsLabelMark.js +8 -4
  132. package/esm/ChartsLabel/index.d.ts +4 -4
  133. package/esm/ChartsLabel/labelClasses.d.ts +1 -1
  134. package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
  135. package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
  136. package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
  137. package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
  138. package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
  139. package/esm/ChartsLegend/chartsLegend.types.d.ts +1 -1
  140. package/esm/ChartsLegend/chartsLegendClasses.d.ts +2 -2
  141. package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
  142. package/esm/ChartsLegend/index.d.ts +4 -4
  143. package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
  144. package/esm/ChartsLegend/useAxis.d.ts +2 -2
  145. package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  146. package/esm/ChartsLocalizationProvider/index.d.ts +1 -1
  147. package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  148. package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  149. package/esm/ChartsOverlay/index.d.ts +1 -1
  150. package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  151. package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  152. package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  153. package/esm/ChartsText/index.d.ts +2 -2
  154. package/esm/ChartsTooltip/ChartsTooltipContainer.js +1 -0
  155. package/esm/ChartsTooltip/index.d.ts +3 -3
  156. package/esm/ChartsTooltip/useAxisTooltip.d.ts +2 -2
  157. package/esm/LineChart/AnimatedArea.d.ts +1 -1
  158. package/esm/LineChart/AnimatedLine.d.ts +1 -1
  159. package/esm/LineChart/AreaPlot.js +2 -2
  160. package/esm/LineChart/LineChart.js +1 -1
  161. package/esm/LineChart/LineHighlightPlot.js +1 -1
  162. package/esm/LineChart/LinePlot.js +2 -2
  163. package/esm/LineChart/MarkPlot.js +1 -1
  164. package/esm/LineChart/index.d.ts +1 -1
  165. package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  166. package/esm/LineChart/seriesConfig/seriesProcessor.js +2 -2
  167. package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
  168. package/esm/LineChart/useLineChartProps.d.ts +2 -2
  169. package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  170. package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
  171. package/esm/RadarChart/RadarGrid/index.d.ts +1 -1
  172. package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
  173. package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
  174. package/esm/RadarChart/index.d.ts +2 -2
  175. package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  176. package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  177. package/esm/RadarChart/useRadarChartProps.d.ts +2 -2
  178. package/esm/ScatterChart/ScatterChart.js +1 -1
  179. package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
  180. package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  181. package/esm/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
  182. package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  183. package/esm/ScatterChart/useScatterChartProps.d.ts +3 -3
  184. package/esm/SparkLineChart/SparkLineChart.js +1 -1
  185. package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
  186. package/esm/colorPalettes/categorical/blueberryTwilight.js +3 -0
  187. package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
  188. package/esm/colorPalettes/categorical/cheerfulFiesta.js +3 -0
  189. package/esm/colorPalettes/categorical/mangoFusion.d.ts +4 -0
  190. package/esm/colorPalettes/categorical/mangoFusion.js +3 -0
  191. package/esm/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
  192. package/esm/colorPalettes/categorical/rainbowSurge.js +3 -0
  193. package/esm/colorPalettes/index.d.ts +14 -1
  194. package/esm/colorPalettes/index.js +20 -1
  195. package/esm/colorPalettes/sequential/blue.d.ts +4 -0
  196. package/esm/colorPalettes/sequential/blue.js +5 -0
  197. package/esm/colorPalettes/sequential/cyan.d.ts +4 -0
  198. package/esm/colorPalettes/sequential/cyan.js +5 -0
  199. package/esm/colorPalettes/sequential/green.d.ts +4 -0
  200. package/esm/colorPalettes/sequential/green.js +5 -0
  201. package/esm/colorPalettes/sequential/orange.d.ts +4 -0
  202. package/esm/colorPalettes/sequential/orange.js +5 -0
  203. package/esm/colorPalettes/sequential/pink.d.ts +4 -0
  204. package/esm/colorPalettes/sequential/pink.js +5 -0
  205. package/esm/colorPalettes/sequential/purple.d.ts +4 -0
  206. package/esm/colorPalettes/sequential/purple.js +5 -0
  207. package/esm/colorPalettes/sequential/red.d.ts +4 -0
  208. package/esm/colorPalettes/sequential/red.js +5 -0
  209. package/esm/colorPalettes/sequential/strawberrySky.d.ts +4 -0
  210. package/esm/colorPalettes/sequential/strawberrySky.js +3 -0
  211. package/esm/colorPalettes/sequential/yellow.d.ts +4 -0
  212. package/esm/colorPalettes/sequential/yellow.js +5 -0
  213. package/esm/colorPalettes/types.d.ts +4 -0
  214. package/esm/colorPalettes/types.js +1 -0
  215. package/esm/context/ChartProvider/ChartContext.d.ts +1 -1
  216. package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
  217. package/esm/context/ChartProvider/ChartProvider.types.d.ts +6 -6
  218. package/esm/context/ChartProvider/useChartContext.js +1 -1
  219. package/esm/context/index.d.ts +1 -1
  220. package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
  221. package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
  222. package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
  223. package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
  224. package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
  225. package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
  226. package/esm/hooks/useAxis.d.ts +6 -6
  227. package/esm/hooks/useChartsLocalization.d.ts +1 -1
  228. package/esm/hooks/useChartsLocalization.js +1 -1
  229. package/esm/hooks/useItemHighlightedGetter.d.ts +2 -2
  230. package/esm/hooks/useLegend.d.ts +1 -1
  231. package/esm/hooks/useSeries.d.ts +1 -1
  232. package/esm/hooks/useSvgRef.js +1 -1
  233. package/esm/hooks/useZAxis.d.ts +3 -3
  234. package/esm/index.js +1 -1
  235. package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
  236. package/esm/internals/createSeriesSelectorOfType.js +1 -1
  237. package/esm/internals/defaultizeMargin.d.ts +1 -1
  238. package/esm/internals/geometry.js +1 -1
  239. package/esm/internals/getPercentageValue.js +1 -1
  240. package/esm/internals/plugins/allPlugins.d.ts +1 -1
  241. package/esm/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
  242. package/esm/internals/plugins/corePlugins/index.d.ts +1 -1
  243. package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
  244. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
  245. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
  246. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
  247. package/esm/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
  248. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
  249. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  250. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
  251. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
  252. package/esm/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
  253. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
  254. package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
  255. package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
  256. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
  257. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
  258. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
  259. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
  260. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
  261. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
  262. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
  263. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
  264. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
  265. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
  266. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
  267. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  268. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
  269. package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
  270. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
  271. package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
  272. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
  273. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  274. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
  275. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
  276. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
  277. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  278. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
  279. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  280. package/esm/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
  281. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
  282. package/esm/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
  283. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
  284. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
  285. package/esm/internals/plugins/models/chart.d.ts +3 -3
  286. package/esm/internals/plugins/models/helpers.d.ts +1 -1
  287. package/esm/internals/plugins/models/plugin.d.ts +2 -2
  288. package/esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
  289. package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
  290. package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
  291. package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
  292. package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
  293. package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
  294. package/esm/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
  295. package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
  296. package/esm/internals/plugins/utils/ChartStore.d.ts +2 -2
  297. package/esm/internals/stackSeries.d.ts +1 -1
  298. package/esm/internals/store/useChartModels.js +2 -2
  299. package/esm/internals/store/useCharts.d.ts +1 -1
  300. package/esm/internals/store/useStore.js +1 -1
  301. package/esm/locales/index.d.ts +1 -1
  302. package/esm/models/axis.d.ts +15 -3
  303. package/esm/models/axis.js +8 -0
  304. package/esm/models/index.d.ts +3 -3
  305. package/esm/models/seriesType/bar.d.ts +1 -1
  306. package/esm/models/seriesType/common.d.ts +2 -2
  307. package/esm/models/seriesType/line.d.ts +1 -1
  308. package/esm/models/seriesType/pie.d.ts +1 -1
  309. package/esm/themeAugmentation/components.js +1 -0
  310. package/esm/themeAugmentation/index.d.ts +3 -3
  311. package/esm/themeAugmentation/overrides.d.ts +3 -12
  312. package/esm/themeAugmentation/overrides.js +2 -0
  313. package/esm/themeAugmentation/props.d.ts +0 -7
  314. package/esm/themeAugmentation/props.js +2 -0
  315. package/hooks/animation/useAnimateArea.d.ts +1 -1
  316. package/hooks/animation/useAnimateBar.d.ts +1 -1
  317. package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
  318. package/hooks/animation/useAnimateLine.d.ts +1 -1
  319. package/hooks/animation/useAnimatePieArc.d.ts +1 -1
  320. package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
  321. package/hooks/useAxis.d.ts +6 -6
  322. package/hooks/useChartsLocalization.d.ts +1 -1
  323. package/hooks/useChartsLocalization.js +1 -1
  324. package/hooks/useItemHighlightedGetter.d.ts +2 -2
  325. package/hooks/useLegend.d.ts +1 -1
  326. package/hooks/useSeries.d.ts +1 -1
  327. package/hooks/useSvgRef.js +1 -1
  328. package/hooks/useZAxis.d.ts +3 -3
  329. package/index.js +1 -1
  330. package/internals/createSeriesSelectorOfType.d.ts +1 -1
  331. package/internals/createSeriesSelectorOfType.js +1 -1
  332. package/internals/defaultizeMargin.d.ts +1 -1
  333. package/internals/geometry.js +1 -1
  334. package/internals/getPercentageValue.js +1 -1
  335. package/internals/plugins/allPlugins.d.ts +1 -1
  336. package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
  337. package/internals/plugins/corePlugins/index.d.ts +1 -1
  338. package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
  339. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
  340. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
  341. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
  342. package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
  343. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
  344. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  345. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
  346. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
  347. package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
  348. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
  349. package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
  350. package/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
  351. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
  352. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
  353. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
  354. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
  355. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
  356. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
  357. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
  358. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
  359. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
  360. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
  361. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
  362. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  363. package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
  364. package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
  365. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
  366. package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
  367. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
  368. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  369. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
  370. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
  371. package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
  372. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  373. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
  374. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  375. package/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
  376. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
  377. package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
  378. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
  379. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
  380. package/internals/plugins/models/chart.d.ts +3 -3
  381. package/internals/plugins/models/helpers.d.ts +1 -1
  382. package/internals/plugins/models/plugin.d.ts +2 -2
  383. package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
  384. package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
  385. package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
  386. package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
  387. package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
  388. package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
  389. package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
  390. package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
  391. package/internals/plugins/utils/ChartStore.d.ts +2 -2
  392. package/internals/stackSeries.d.ts +1 -1
  393. package/internals/store/useChartModels.js +2 -2
  394. package/internals/store/useCharts.d.ts +1 -1
  395. package/internals/store/useStore.js +1 -1
  396. package/locales/index.d.ts +1 -1
  397. package/models/axis.d.ts +15 -3
  398. package/models/axis.js +8 -0
  399. package/models/index.d.ts +3 -3
  400. package/models/seriesType/bar.d.ts +1 -1
  401. package/models/seriesType/common.d.ts +2 -2
  402. package/models/seriesType/line.d.ts +1 -1
  403. package/models/seriesType/pie.d.ts +1 -1
  404. package/package.json +2 -2
  405. package/themeAugmentation/components.js +5 -0
  406. package/themeAugmentation/index.d.ts +3 -3
  407. package/themeAugmentation/overrides.d.ts +3 -12
  408. package/themeAugmentation/overrides.js +5 -0
  409. package/themeAugmentation/props.d.ts +0 -7
  410. package/themeAugmentation/props.js +5 -0
  411. package/colorPalettes/colorPalettes.d.ts +0 -16
  412. package/colorPalettes/colorPalettes.js +0 -22
  413. package/esm/colorPalettes/colorPalettes.d.ts +0 -16
  414. package/esm/colorPalettes/colorPalettes.js +0 -12
@@ -1,3 +1,3 @@
1
1
  export { useChartVoronoi } from "./useChartVoronoi.js";
2
2
  export * from "./useChartVoronoi.selectors.js";
3
- export type { UseChartVoronoiSignature } from './useChartVoronoi.types';
3
+ export type { UseChartVoronoiSignature } from "./useChartVoronoi.types.js";
@@ -1,7 +1,7 @@
1
1
  import { ChartRootSelector } from "../../utils/selectors.js";
2
2
  import { UseChartVoronoiSignature } from "./useChartVoronoi.types.js";
3
- export declare const selectorChartsVoronoiIsVoronoiEnabled: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("./useChartVoronoi.types").UseChartVoronoiState & Partial<{}> & {
4
- cacheKey: import("../../models").ChartStateCacheKey;
3
+ export declare const selectorChartsVoronoiIsVoronoiEnabled: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("./useChartVoronoi.types.js").UseChartVoronoiState & Partial<{}> & {
4
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
5
5
  }) => boolean | undefined) & {
6
6
  clearCache: () => void;
7
7
  resultsCount: () => number;
@@ -1,3 +1,3 @@
1
1
  export { useChartZAxis } from "./useChartZAxis.js";
2
- export type * from './useChartZAxis.types';
2
+ export type * from "./useChartZAxis.types.js";
3
3
  export * from "./useChartZAxis.selectors.js";
@@ -49,7 +49,7 @@ function getZAxisState(zAxis, dataset) {
49
49
  return;
50
50
  }
51
51
  if (dataset === undefined) {
52
- throw new Error('MUI X: z-axis uses `dataKey` but no `dataset` is provided.');
52
+ throw new Error('MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.');
53
53
  }
54
54
  zAxisLookup[defaultizedId] = processColorMap(addDefaultId((0, _extends2.default)({}, axisConfig, {
55
55
  data: dataset.map(d => d[dataKey])
@@ -1,12 +1,12 @@
1
1
  import { ChartState } from "../../models/chart.js";
2
2
  import { UseChartZAxisSignature } from "./useChartZAxis.types.js";
3
- export declare const selectorChartZAxis: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("./useChartZAxis.types").UseChartZAxisState & Partial<{}> & {
4
- cacheKey: import("../../models").ChartStateCacheKey;
3
+ export declare const selectorChartZAxis: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("./useChartZAxis.types.js").UseChartZAxisState & Partial<{}> & {
4
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
5
5
  }) => {
6
6
  axis: {
7
- [axisId: string]: import("../../..").ZAxisDefaultized;
7
+ [axisId: string]: import("../../../index.js").ZAxisDefaultized;
8
8
  };
9
- axisIds: import("../../..").AxisId[];
9
+ axisIds: import("../../../index.js").AxisId[];
10
10
  }) & {
11
11
  clearCache: () => void;
12
12
  resultsCount: () => number;
@@ -14,15 +14,15 @@ export declare const selectorChartZAxis: ((state: import("../../corePlugins/useC
14
14
  } & {
15
15
  resultFunc: (resultFuncArgs_0: ChartState<[UseChartZAxisSignature]>) => {
16
16
  axis: {
17
- [axisId: string]: import("../../..").ZAxisDefaultized;
17
+ [axisId: string]: import("../../../index.js").ZAxisDefaultized;
18
18
  };
19
- axisIds: import("../../..").AxisId[];
19
+ axisIds: import("../../../index.js").AxisId[];
20
20
  };
21
21
  memoizedResultFunc: ((resultFuncArgs_0: ChartState<[UseChartZAxisSignature]>) => {
22
22
  axis: {
23
- [axisId: string]: import("../../..").ZAxisDefaultized;
23
+ [axisId: string]: import("../../../index.js").ZAxisDefaultized;
24
24
  };
25
- axisIds: import("../../..").AxisId[];
25
+ axisIds: import("../../../index.js").AxisId[];
26
26
  }) & {
27
27
  clearCache: () => void;
28
28
  resultsCount: () => number;
@@ -30,9 +30,9 @@ export declare const selectorChartZAxis: ((state: import("../../corePlugins/useC
30
30
  };
31
31
  lastResult: () => {
32
32
  axis: {
33
- [axisId: string]: import("../../..").ZAxisDefaultized;
33
+ [axisId: string]: import("../../../index.js").ZAxisDefaultized;
34
34
  };
35
- axisIds: import("../../..").AxisId[];
35
+ axisIds: import("../../../index.js").AxisId[];
36
36
  };
37
37
  dependencies: [(state: ChartState<[UseChartZAxisSignature]>) => ChartState<[UseChartZAxisSignature]>];
38
38
  recomputations: () => number;
@@ -1,6 +1,6 @@
1
- import type { ChartAnyPluginSignature } from './plugin';
2
- import type { MergeSignaturesProperty } from './helpers';
3
- import type { ChartCorePluginSignatures } from '../corePlugins';
1
+ import type { ChartAnyPluginSignature } from "./plugin.js";
2
+ import type { MergeSignaturesProperty } from "./helpers.js";
3
+ import type { ChartCorePluginSignatures } from "../corePlugins/index.js";
4
4
  export type ChartInstance<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = MergeSignaturesProperty<[...ChartCorePluginSignatures, ...TSignatures], 'instance'> & Partial<MergeSignaturesProperty<TOptionalSignatures, 'instance'>>;
5
5
  export type ChartPublicAPI<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = MergeSignaturesProperty<[...ChartCorePluginSignatures, ...TSignatures], 'publicAPI'> & Partial<MergeSignaturesProperty<TOptionalSignatures, 'instance'>>;
6
6
  export type ChartStateCacheKey = {
@@ -1,4 +1,4 @@
1
- import type { ChartAnyPluginSignature, ChartPlugin } from './plugin';
1
+ import type { ChartAnyPluginSignature, ChartPlugin } from "./plugin.js";
2
2
  type IsAny<T> = 0 extends 1 & T ? true : false;
3
3
  export type OptionalIfEmpty<A extends string, B> = keyof B extends never ? Partial<Record<A, B>> : IsAny<B> extends true ? Partial<Record<A, B>> : Record<A, B>;
4
4
  export type MergeSignaturesProperty<TSignatures extends readonly any[], TProperty extends keyof ChartAnyPluginSignature> = TSignatures extends readonly [plugin: infer P, ...otherPlugin: infer R] ? P extends ChartAnyPluginSignature ? P[TProperty] & MergeSignaturesProperty<R, TProperty> : {} : {};
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { MergeSignaturesProperty, OptionalIfEmpty } from './helpers';
3
- import type { ChartCorePluginSignatures } from '../corePlugins';
2
+ import type { MergeSignaturesProperty, OptionalIfEmpty } from "./helpers.js";
3
+ import type { ChartCorePluginSignatures } from "../corePlugins/index.js";
4
4
  import { ChartStore } from "../utils/ChartStore.js";
5
5
  import { ChartSeriesConfig } from "./seriesConfig/index.js";
6
6
  export interface ChartPluginOptions<TSignature extends ChartAnyPluginSignature> {
@@ -1,6 +1,6 @@
1
- import type { CartesianChartSeriesType, ChartSeriesDefaultized } from '../../../../models/seriesType/config';
2
- import type { AxisConfig, AxisId } from '../../../../models/axis';
3
- import type { SeriesId } from '../../../../models/seriesType/common';
1
+ import type { CartesianChartSeriesType, ChartSeriesDefaultized } from "../../../../models/seriesType/config.js";
2
+ import type { AxisConfig, AxisId } from "../../../../models/axis.js";
3
+ import type { SeriesId } from "../../../../models/seriesType/common.js";
4
4
  type CartesianExtremumGetterParams<TSeriesType extends CartesianChartSeriesType> = {
5
5
  series: Record<SeriesId, ChartSeriesDefaultized<TSeriesType>>;
6
6
  axis: AxisConfig;
@@ -1,7 +1,7 @@
1
- import type { AxisDefaultized } from '../../../../models/axis';
2
- import type { DefaultizedSeriesType } from '../../../../models/seriesType';
3
- import type { ZAxisDefaultized } from '../../../../models/z-axis';
4
- import type { ChartSeriesType } from '../../../../models/seriesType/config';
1
+ import type { ComputedXAxis, ComputedYAxis } from "../../../../models/axis.js";
2
+ import type { DefaultizedSeriesType } from "../../../../models/seriesType/index.js";
3
+ import type { ZAxisDefaultized } from "../../../../models/z-axis.js";
4
+ import type { ChartSeriesType } from "../../../../models/seriesType/config.js";
5
5
  /**
6
6
  * Map data index to a color.
7
7
  * If dataIndex is not defined, it falls back to the series color when defined.
@@ -11,4 +11,4 @@ export type ColorGetter<TSeriesType extends ChartSeriesType> = TSeriesType exten
11
11
  * Transforms charts config to a color getter.
12
12
  * If dataIndex is not defined, it falls back to the series color.
13
13
  */
14
- export type ColorProcessor<TSeriesType extends ChartSeriesType> = (series: DefaultizedSeriesType<TSeriesType>, xAxis?: AxisDefaultized, yAxis?: AxisDefaultized, zAxis?: ZAxisDefaultized) => ColorGetter<TSeriesType>;
14
+ export type ColorProcessor<TSeriesType extends ChartSeriesType> = (series: DefaultizedSeriesType<TSeriesType>, xAxis?: ComputedXAxis, yAxis?: ComputedYAxis, zAxis?: ZAxisDefaultized) => ColorGetter<TSeriesType>;
@@ -1,3 +1,3 @@
1
- import type { ChartSeries, ChartSeriesType } from '../../../../models/seriesType/config';
2
- import type { AllSeriesType } from '../../../../models/seriesType';
1
+ import type { ChartSeries, ChartSeriesType } from "../../../../models/seriesType/config.js";
2
+ import type { AllSeriesType } from "../../../../models/seriesType/index.js";
3
3
  export type GetSeriesWithDefaultValues<T extends ChartSeriesType> = (series: AllSeriesType<T>, seriesIndex: number, colors: string[]) => ChartSeries<T>;
@@ -1,4 +1,4 @@
1
- import type { LegendItemParams } from '../../../../ChartsLegend';
2
- import type { ChartSeriesType } from '../../../../models/seriesType/config';
3
- import type { SeriesProcessorResult } from './seriesProcessor.types';
1
+ import type { LegendItemParams } from "../../../../ChartsLegend/index.js";
2
+ import type { ChartSeriesType } from "../../../../models/seriesType/config.js";
3
+ import type { SeriesProcessorResult } from "./seriesProcessor.types.js";
4
4
  export type LegendGetter<T extends ChartSeriesType> = (series: SeriesProcessorResult<T>) => LegendItemParams[];
@@ -1,6 +1,6 @@
1
- import type { PolarChartSeriesType, ChartSeriesDefaultized } from '../../../../models/seriesType/config';
2
- import type { AxisConfig } from '../../../../models/axis';
3
- import type { SeriesId } from '../../../../models/seriesType/common';
1
+ import type { PolarChartSeriesType, ChartSeriesDefaultized } from "../../../../models/seriesType/config.js";
2
+ import type { AxisConfig } from "../../../../models/axis.js";
3
+ import type { SeriesId } from "../../../../models/seriesType/common.js";
4
4
  type PolarExtremumGetterParams<TSeriesType extends PolarChartSeriesType> = {
5
5
  series: Record<SeriesId, ChartSeriesDefaultized<TSeriesType>>;
6
6
  axis: AxisConfig;
@@ -1,9 +1,9 @@
1
- import type { SeriesProcessor } from './seriesProcessor.types';
2
- import type { CartesianChartSeriesType, ChartSeriesType, PolarChartSeriesType } from '../../../../models/seriesType/config';
3
- import type { ColorProcessor } from './colorProcessor.types';
4
- import type { CartesianExtremumGetter } from './cartesianExtremumGetter.types';
5
- import type { LegendGetter } from './legendGetter.types';
6
- import type { AxisTooltipGetter, TooltipGetter } from './tooltipGetter.types';
1
+ import type { SeriesProcessor } from "./seriesProcessor.types.js";
2
+ import type { CartesianChartSeriesType, ChartSeriesType, PolarChartSeriesType } from "../../../../models/seriesType/config.js";
3
+ import type { ColorProcessor } from "./colorProcessor.types.js";
4
+ import type { CartesianExtremumGetter } from "./cartesianExtremumGetter.types.js";
5
+ import type { LegendGetter } from "./legendGetter.types.js";
6
+ import type { AxisTooltipGetter, TooltipGetter } from "./tooltipGetter.types.js";
7
7
  import { PolarExtremumGetter } from "./polarExtremumGetter.types.js";
8
8
  import { GetSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.types.js";
9
9
  export type ChartSeriesTypeConfig<TSeriesType extends ChartSeriesType> = {
@@ -1,6 +1,6 @@
1
- import type { ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig, DatasetType } from '../../../../models/seriesType/config';
2
- import type { SeriesId } from '../../../../models/seriesType/common';
3
- import type { StackingGroupsType } from '../../../stackSeries';
1
+ import type { ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig, DatasetType } from "../../../../models/seriesType/config.js";
2
+ import type { SeriesId } from "../../../../models/seriesType/common.js";
3
+ import type { StackingGroupsType } from "../../../stackSeries.js";
4
4
  export type SeriesProcessorParams<TSeriesType extends ChartSeriesType> = {
5
5
  series: Record<SeriesId, ChartsSeriesConfig[TSeriesType]['seriesInput']>;
6
6
  seriesOrder: SeriesId[];
@@ -1,6 +1,6 @@
1
- import type { ChartItemIdentifier, ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig } from '../../../../models/seriesType/config';
1
+ import type { ChartItemIdentifier, ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig } from "../../../../models/seriesType/config.js";
2
2
  import { SeriesId } from "../../../../models/seriesType/common.js";
3
- import { AxisDefaultized, AxisId, ChartsXAxisProps, ChartsYAxisProps, ChartsRotationAxisProps, ChartsRadiusAxisProps, PolarAxisDefaultized } from "../../../../models/axis.js";
3
+ import { AxisId, ChartsRotationAxisProps, ChartsRadiusAxisProps, PolarAxisDefaultized, ComputedXAxis, ComputedYAxis } from "../../../../models/axis.js";
4
4
  import { ChartsLabelMarkProps } from "../../../../ChartsLabel/ChartsLabelMark.js";
5
5
  import { ColorGetter } from "./colorProcessor.types.js";
6
6
  export interface ItemTooltip<T extends ChartSeriesType> {
@@ -50,8 +50,8 @@ export type ItemTooltipWithMultipleValues<T extends 'radar' = 'radar'> = Pick<It
50
50
  }[];
51
51
  };
52
52
  export interface TooltipGetterAxesConfig {
53
- x?: AxisDefaultized<any, any, ChartsXAxisProps>;
54
- y?: AxisDefaultized<any, any, ChartsYAxisProps>;
53
+ x?: ComputedXAxis;
54
+ y?: ComputedYAxis;
55
55
  rotation?: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
56
56
  radius?: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
57
57
  }
@@ -1,5 +1,5 @@
1
- import type { ChartState } from '../models/chart';
2
- import type { ChartAnyPluginSignature } from '../models/plugin';
1
+ import type { ChartState } from "../models/chart.js";
2
+ import type { ChartAnyPluginSignature } from "../models/plugin.js";
3
3
  type Listener<T> = (value: T) => void;
4
4
  export type StoreUpdater<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = (prevState: ChartState<TSignatures, TOptionalSignatures>) => ChartState<TSignatures, TOptionalSignatures>;
5
5
  export declare class ChartStore<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> {
@@ -1,5 +1,5 @@
1
1
  import { Series } from '@mui/x-charts-vendor/d3-shape';
2
- import type { StackOffsetType, StackOrderType } from '../models/stacking';
2
+ import type { StackOffsetType, StackOrderType } from "../models/stacking.js";
3
3
  import { SeriesId, StackableSeriesType } from "../models/seriesType/common.js";
4
4
  type FormatterParams<T> = {
5
5
  series: Record<SeriesId, T>;
@@ -53,7 +53,7 @@ const useChartModels = (plugins, props) => {
53
53
  /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps, react-compiler/react-compiler */
54
54
  React.useEffect(() => {
55
55
  if (model.isControlled !== (controlled !== undefined)) {
56
- console.error([`MUI X: A component is changing the ${model.isControlled ? '' : 'un'}controlled ${modelName} state of Chart to be ${model.isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${modelName} ` + 'element for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
56
+ console.error([`MUI X Charts: A component is changing the ${model.isControlled ? '' : 'un'}controlled ${modelName} state of Chart to be ${model.isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${modelName} ` + 'element for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
57
57
  }
58
58
  }, [controlled]);
59
59
  const {
@@ -61,7 +61,7 @@ const useChartModels = (plugins, props) => {
61
61
  } = React.useRef(newDefaultValue);
62
62
  React.useEffect(() => {
63
63
  if (!model.isControlled && defaultValue !== newDefaultValue) {
64
- console.error([`MUI X: A component is changing the default ${modelName} state of an uncontrolled Chart after being initialized. ` + `To suppress this warning opt to use a controlled Chart.`].join('\n'));
64
+ console.error([`MUI X Charts: A component is changing the default ${modelName} state of an uncontrolled Chart after being initialized. ` + `To suppress this warning opt to use a controlled Chart.`].join('\n'));
65
65
  }
66
66
  }, [JSON.stringify(newDefaultValue)]);
67
67
  });
@@ -16,7 +16,7 @@ import { ChartSeriesConfig } from "../plugins/models/seriesConfig/index.js";
16
16
  */
17
17
  export declare function useCharts<TSeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]>(inPlugins: ConvertSignaturesIntoPlugins<TSignatures>, props: Partial<UseChartBaseProps<TSignatures>>, seriesConfig: ChartSeriesConfig<TSeriesType>): {
18
18
  contextValue: {
19
- store: ChartStore<readonly [import("..").UseChartIdSignature, import("..").UseChartDimensionsSignature, import("..").UseChartSeriesSignature, import("../plugins/corePlugins/useChartAnimation").UseChartAnimationSignature, ...TSignatures]> & UseChartInteractionState;
19
+ store: ChartStore<readonly [import("../index.js").UseChartIdSignature, import("../index.js").UseChartDimensionsSignature, import("../index.js").UseChartSeriesSignature, import("../plugins/corePlugins/useChartAnimation/index.js").UseChartAnimationSignature, ...TSignatures]> & UseChartInteractionState;
20
20
  publicAPI: ChartPublicAPI<TSignatures>;
21
21
  instance: ChartInstance<TSignatures>;
22
22
  svgRef: React.RefObject<SVGSVGElement | null>;
@@ -9,7 +9,7 @@ var _ChartProvider = require("../../context/ChartProvider");
9
9
  function useStore() {
10
10
  const context = (0, _ChartProvider.useChartContext)();
11
11
  if (!context) {
12
- throw new Error(['MUI X: Could not find the charts context.', 'It looks like you rendered your component outside of a ChartContainer parent component.'].join('\n'));
12
+ throw new Error(['MUI X Charts: Could not find the charts context.', 'It looks like you rendered your component outside of a ChartContainer parent component.'].join('\n'));
13
13
  }
14
14
  return context.store;
15
15
  }
@@ -1,3 +1,3 @@
1
- export type { ChartsLocaleText } from './utils/chartsLocaleTextApi';
1
+ export type { ChartsLocaleText } from "./utils/chartsLocaleTextApi.js";
2
2
  export * from "./enUS.js";
3
3
  export * from "./frFR.js";
package/models/axis.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { ScaleBand, ScaleLinear, ScaleLogarithmic, ScaleOrdinal, ScalePoint
2
2
  import { SxProps } from '@mui/system/styleFunctionSx';
3
3
  import { type MakeOptional, MakeRequired } from '@mui/x-internals/types';
4
4
  import { ChartsAxisClasses } from "../ChartsAxis/axisClasses.js";
5
- import type { TickParams } from '../hooks/useTicks';
5
+ import type { TickParams } from "../hooks/useTicks.js";
6
6
  import { ChartsTextProps } from "../ChartsText/index.js";
7
7
  import { ContinuousColorConfig, OrdinalColorConfig, PiecewiseColorConfig } from "./colorMapping.js";
8
8
  export type AxisId = string | number;
@@ -289,7 +289,9 @@ export type AxisValueFormatterContext<S extends ScaleName = ScaleName> = {
289
289
  */
290
290
  type CommonAxisConfig<S extends ScaleName = ScaleName, V = any> = {
291
291
  /**
292
- * Id used to identify the axis.
292
+ * ID used to identify the axis.
293
+ *
294
+ * The ID must be unique across all axes in this chart.
293
295
  */
294
296
  id: AxisId;
295
297
  /**
@@ -368,7 +370,7 @@ export type PolarAxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisP
368
370
  */
369
371
  triggerTooltip?: boolean;
370
372
  };
371
- export type AxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisProps extends ChartsAxisProps = ChartsXAxisProps | ChartsYAxisProps> = MakeRequired<Omit<AxisConfig<S, V, AxisProps>, 'scaleType'>, 'offset'> & AxisScaleConfig[S] & AxisScaleComputedConfig[S] & {
373
+ export type ComputedAxis<S extends ScaleName = ScaleName, V = any, AxisProps extends ChartsAxisProps = ChartsXAxisProps | ChartsYAxisProps> = MakeRequired<Omit<AxisConfig<S, V, AxisProps>, 'scaleType'>, 'offset'> & AxisScaleConfig[S] & AxisScaleComputedConfig[S] & {
372
374
  /**
373
375
  * An indication of the expected number of ticks.
374
376
  */
@@ -378,6 +380,8 @@ export type AxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisProps
378
380
  */
379
381
  triggerTooltip?: boolean;
380
382
  } & (AxisProps extends ChartsXAxisProps ? MakeRequired<AxisSideConfig<AxisProps>, 'height'> : AxisProps extends ChartsYAxisProps ? MakeRequired<AxisSideConfig<AxisProps>, 'width'> : AxisSideConfig<AxisProps>);
383
+ export type ComputedXAxis<S extends ScaleName = ScaleName, V = any> = ComputedAxis<S, V, ChartsXAxisProps>;
384
+ export type ComputedYAxis<S extends ScaleName = ScaleName, V = any> = ComputedAxis<S, V, ChartsYAxisProps>;
381
385
  export declare function isBandScaleConfig(scaleConfig: AxisConfig<ScaleName>): scaleConfig is AxisConfig<'band'> & {
382
386
  scaleType: 'band';
383
387
  };
@@ -405,4 +409,12 @@ export type XAxis<S extends ScaleName = ScaleName, V = any> = S extends ScaleNam
405
409
  export type YAxis<S extends ScaleName = ScaleName, V = any> = S extends ScaleName ? MakeOptional<AxisConfig<S, V, ChartsYAxisProps>, 'id'> : never;
406
410
  export type RotationAxis<S extends ScaleName = ScaleName, V = any> = S extends ScaleName ? AxisConfig<S, V, ChartsRotationAxisProps> : never;
407
411
  export type RadiusAxis<S extends 'linear' = 'linear', V = any> = S extends 'linear' ? AxisConfig<S, V, ChartsRadiusAxisProps> : never;
412
+ /**
413
+ * The x-axis configuration with missing values filled with default values.
414
+ */
415
+ export type DefaultedXAxis<S extends ScaleName = ScaleName, V = any> = AxisConfig<S, V, ChartsXAxisProps>;
416
+ /**
417
+ * The y-axis configuration with missing values filled with default values.
418
+ */
419
+ export type DefaultedYAxis<S extends ScaleName = ScaleName, V = any> = AxisConfig<S, V, ChartsYAxisProps>;
408
420
  export {};
package/models/axis.js CHANGED
@@ -27,4 +27,12 @@ function isPointScaleConfig(scaleConfig) {
27
27
 
28
28
  /**
29
29
  * The data format returned by onAxisClick.
30
+ */
31
+
32
+ /**
33
+ * The x-axis configuration with missing values filled with default values.
34
+ */
35
+
36
+ /**
37
+ * The y-axis configuration with missing values filled with default values.
30
38
  */
package/models/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./seriesType/index.js";
2
2
  export * from "./stacking.js";
3
- export type { AxisConfig, ChartsYAxisProps, ChartsXAxisProps, ScaleName, ContinuousScaleName, ChartsAxisData, XAxis, YAxis, RadiusAxis, RotationAxis } from './axis';
3
+ export type { AxisConfig, ChartsYAxisProps, ChartsXAxisProps, ScaleName, ContinuousScaleName, ChartsAxisData, XAxis, YAxis, RadiusAxis, RotationAxis } from "./axis.js";
4
4
  export type { PropsFromSlot } from '@mui/x-internals/slots';
5
- export type { Position } from './position';
6
- export type { CurveType } from './curve';
5
+ export type { Position } from "./position.js";
6
+ export type { CurveType } from "./curve.js";
@@ -1,5 +1,5 @@
1
1
  import { DefaultizedProps } from '@mui/x-internals/types';
2
- import type { StackOffsetType } from '../stacking';
2
+ import type { StackOffsetType } from "../stacking.js";
3
3
  import { CartesianSeriesType, CommonSeriesType, CommonDefaultizedProps, StackableSeriesType } from "./common.js";
4
4
  export interface BarSeriesType extends CommonSeriesType<number | null>, CartesianSeriesType, StackableSeriesType {
5
5
  type: 'bar';
@@ -1,6 +1,6 @@
1
- import type { ChartsLabelMarkProps } from '../../ChartsLabel';
1
+ import type { ChartsLabelMarkProps } from "../../ChartsLabel/index.js";
2
2
  import { HighlightScope } from "../../internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.js";
3
- import type { StackOffsetType, StackOrderType } from '../stacking';
3
+ import type { StackOffsetType, StackOrderType } from "../stacking.js";
4
4
  export type SeriesId = number | string;
5
5
  export type SeriesValueFormatterContext = {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { DefaultizedProps } from '@mui/x-internals/types';
2
- import type { StackOffsetType } from '../stacking';
2
+ import type { StackOffsetType } from "../stacking.js";
3
3
  import { CartesianSeriesType, CommonDefaultizedProps, CommonSeriesType, SeriesId, StackableSeriesType } from "./common.js";
4
4
  import { CurveType } from "../curve.js";
5
5
  export interface ShowMarkParams<AxisValue = number | Date> {
@@ -1,7 +1,7 @@
1
1
  import { PieArcDatum as D3PieArcDatum } from '@mui/x-charts-vendor/d3-shape';
2
2
  import { DefaultizedProps } from '@mui/x-internals/types';
3
3
  import { CommonDefaultizedProps, CommonSeriesType, SeriesId } from "./common.js";
4
- import type { ChartsLabelMarkProps } from '../../ChartsLabel';
4
+ import type { ChartsLabelMarkProps } from "../../ChartsLabel/index.js";
5
5
  export type PieItemId = string | number;
6
6
  export type PieValueType = {
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "description": "The community edition of the Charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -37,7 +37,7 @@
37
37
  "reselect": "^5.1.1",
38
38
  "use-sync-external-store": "^1.5.0",
39
39
  "@mui/x-charts-vendor": "8.0.0",
40
- "@mui/x-internals": "8.0.0"
40
+ "@mui/x-internals": "8.2.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@emotion/react": "^11.9.0",
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,3 +1,3 @@
1
- export type * from './overrides';
2
- export type * from './props';
3
- export type * from './components';
1
+ export type * from "./overrides.js";
2
+ export type * from "./props.js";
3
+ export type * from "./components.js";
@@ -5,30 +5,21 @@ import { ChartsGridClassKey } from "../ChartsGrid/index.js";
5
5
  import { ChartsTooltipClassKey } from "../ChartsTooltip/index.js";
6
6
  import { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from "../LineChart/index.js";
7
7
  export interface ChartsComponentNameToClassKey {
8
- MuiChartsAxis: 'root'; // Only the root component of axes is styled. We should probably remove this one in v8
9
- MuiChartsXAxis: 'root'; // Only the root component of axes is styled
10
- MuiChartsYAxis: 'root'; // Only the root component of axes is styled
11
-
8
+ MuiChartsAxis: 'root';
9
+ MuiChartsXAxis: 'root';
10
+ MuiChartsYAxis: 'root';
12
11
  MuiChartsAxisHighlight: ChartsAxisHighlightClassKey;
13
12
  MuiChartsLegend: 'root';
14
13
  MuiChartsGrid: ChartsGridClassKey;
15
14
  MuiChartsTooltip: ChartsTooltipClassKey;
16
15
  MuiChartsSurface: 'root';
17
-
18
- // BarChart components
19
16
  MuiBarElement: BarElementClassKey;
20
17
  MuiBarLabel: BarLabelClassKey;
21
-
22
- // LineChart components
23
18
  MuiAreaElement: AreaElementClassKey;
24
19
  MuiLineElement: LineElementClassKey;
25
20
  MuiMarkElement: MarkElementClassKey;
26
-
27
- // ScatterChart components
28
21
  }
29
22
  declare module '@mui/material/styles' {
30
23
  interface ComponentNameToClassKey extends ChartsComponentNameToClassKey {}
31
24
  }
32
-
33
- // disable automatic export
34
25
  export {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -17,20 +17,13 @@ export interface ChartsComponentsPropsList {
17
17
  MuiChartsLocalizationProvider: ChartsLocalizationProviderProps;
18
18
  MuiChartsTooltip: ChartsTooltipProps;
19
19
  MuiChartsSurface: ChartsSurfaceProps;
20
-
21
- // BarChart components
22
20
  MuiBarChart: BarChartProps;
23
21
  MuiBarLabel: BarLabelProps;
24
- // LineChart components
25
22
  MuiLineChart: LineChartProps;
26
- // ScatterChart components
27
23
  MuiScatterChart: ScatterChartProps;
28
- // PieChart components
29
24
  MuiPieChart: PieChartProps;
30
25
  }
31
26
  declare module '@mui/material/styles' {
32
27
  interface ComponentsPropsList extends ChartsComponentsPropsList {}
33
28
  }
34
-
35
- // disable automatic export
36
29
  export {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,16 +0,0 @@
1
- export type ChartsColorPaletteCallback = (mode: 'light' | 'dark') => string[];
2
- export type ChartsColorPalette = string[] | ChartsColorPaletteCallback;
3
- export type ChartsColorCallback = (mode: 'light' | 'dark') => string;
4
- export type ChartsColor = string | ChartsColorCallback;
5
- export declare const rainbowSurgePaletteLight: string[];
6
- export declare const rainbowSurgePaletteDark: string[];
7
- export declare const rainbowSurgePalette: ChartsColorPaletteCallback;
8
- export declare const blueberryTwilightPaletteLight: string[];
9
- export declare const blueberryTwilightPaletteDark: string[];
10
- export declare const blueberryTwilightPalette: ChartsColorPaletteCallback;
11
- export declare const mangoFusionPaletteLight: string[];
12
- export declare const mangoFusionPaletteDark: string[];
13
- export declare const mangoFusionPalette: ChartsColorPaletteCallback;
14
- export declare const cheerfulFiestaPaletteDark: string[];
15
- export declare const cheerfulFiestaPaletteLight: string[];
16
- export declare const cheerfulFiestaPalette: ChartsColorPaletteCallback;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.rainbowSurgePaletteLight = exports.rainbowSurgePaletteDark = exports.rainbowSurgePalette = exports.mangoFusionPaletteLight = exports.mangoFusionPaletteDark = exports.mangoFusionPalette = exports.cheerfulFiestaPaletteLight = exports.cheerfulFiestaPaletteDark = exports.cheerfulFiestaPalette = exports.blueberryTwilightPaletteLight = exports.blueberryTwilightPaletteDark = exports.blueberryTwilightPalette = void 0;
7
- const rainbowSurgePaletteLight = exports.rainbowSurgePaletteLight = ['#4254FB', '#FFB422', '#FA4F58', '#0DBEFF', '#22BF75', '#FA83B4', '#FF7511'];
8
- const rainbowSurgePaletteDark = exports.rainbowSurgePaletteDark = ['#495AFB', '#FFC758', '#F35865', '#30C8FF', '#44CE8D', '#F286B3', '#FF8C39'];
9
- const rainbowSurgePalette = mode => mode === 'dark' ? rainbowSurgePaletteDark : rainbowSurgePaletteLight;
10
- exports.rainbowSurgePalette = rainbowSurgePalette;
11
- const blueberryTwilightPaletteLight = exports.blueberryTwilightPaletteLight = ['#02B2AF', '#2E96FF', '#B800D8', '#60009B', '#2731C8', '#03008D'];
12
- const blueberryTwilightPaletteDark = exports.blueberryTwilightPaletteDark = ['#02B2AF', '#72CCFF', '#DA00FF', '#9001CB', '#2E96FF', '#3B48E0'];
13
- const blueberryTwilightPalette = mode => mode === 'dark' ? blueberryTwilightPaletteDark : blueberryTwilightPaletteLight;
14
- exports.blueberryTwilightPalette = blueberryTwilightPalette;
15
- const mangoFusionPaletteLight = exports.mangoFusionPaletteLight = ['#173A5E', '#00A3A0', '#C91B63', '#EF5350', '#FFA726', '#B800D8', '#60009B', '#2E96FF', '#2731C8', '#03008D'];
16
- const mangoFusionPaletteDark = exports.mangoFusionPaletteDark = ['#41698F', '#19D0CD', '#DE196B', '#FC5F5C', '#FFD771', '#DA00FF', '#9001CB', '#72CCFF', '#2E96FF', '#3B48E0'];
17
- const mangoFusionPalette = mode => mode === 'dark' ? mangoFusionPaletteDark : mangoFusionPaletteLight;
18
- exports.mangoFusionPalette = mangoFusionPalette;
19
- const cheerfulFiestaPaletteDark = exports.cheerfulFiestaPaletteDark = ['#0059B2', '#2E96FF', '#FFC24C', '#FF9F0E', '#F38200', '#2ABFDE', '#1F94AD', '#BD2C38', '#FF3143', '#FF8282'];
20
- const cheerfulFiestaPaletteLight = exports.cheerfulFiestaPaletteLight = ['#003A75', '#007FFF', '#FFC24C', '#FF9D09', '#CA6C00', '#127D94', '#1F94AD', '#C82634', '#FF3143', '#FF7E7E'];
21
- const cheerfulFiestaPalette = mode => mode === 'dark' ? cheerfulFiestaPaletteDark : cheerfulFiestaPaletteLight;
22
- exports.cheerfulFiestaPalette = cheerfulFiestaPalette;
@@ -1,16 +0,0 @@
1
- export type ChartsColorPaletteCallback = (mode: 'light' | 'dark') => string[];
2
- export type ChartsColorPalette = string[] | ChartsColorPaletteCallback;
3
- export type ChartsColorCallback = (mode: 'light' | 'dark') => string;
4
- export type ChartsColor = string | ChartsColorCallback;
5
- export declare const rainbowSurgePaletteLight: string[];
6
- export declare const rainbowSurgePaletteDark: string[];
7
- export declare const rainbowSurgePalette: ChartsColorPaletteCallback;
8
- export declare const blueberryTwilightPaletteLight: string[];
9
- export declare const blueberryTwilightPaletteDark: string[];
10
- export declare const blueberryTwilightPalette: ChartsColorPaletteCallback;
11
- export declare const mangoFusionPaletteLight: string[];
12
- export declare const mangoFusionPaletteDark: string[];
13
- export declare const mangoFusionPalette: ChartsColorPaletteCallback;
14
- export declare const cheerfulFiestaPaletteDark: string[];
15
- export declare const cheerfulFiestaPaletteLight: string[];
16
- export declare const cheerfulFiestaPalette: ChartsColorPaletteCallback;
@@ -1,12 +0,0 @@
1
- export const rainbowSurgePaletteLight = ['#4254FB', '#FFB422', '#FA4F58', '#0DBEFF', '#22BF75', '#FA83B4', '#FF7511'];
2
- export const rainbowSurgePaletteDark = ['#495AFB', '#FFC758', '#F35865', '#30C8FF', '#44CE8D', '#F286B3', '#FF8C39'];
3
- export const rainbowSurgePalette = mode => mode === 'dark' ? rainbowSurgePaletteDark : rainbowSurgePaletteLight;
4
- export const blueberryTwilightPaletteLight = ['#02B2AF', '#2E96FF', '#B800D8', '#60009B', '#2731C8', '#03008D'];
5
- export const blueberryTwilightPaletteDark = ['#02B2AF', '#72CCFF', '#DA00FF', '#9001CB', '#2E96FF', '#3B48E0'];
6
- export const blueberryTwilightPalette = mode => mode === 'dark' ? blueberryTwilightPaletteDark : blueberryTwilightPaletteLight;
7
- export const mangoFusionPaletteLight = ['#173A5E', '#00A3A0', '#C91B63', '#EF5350', '#FFA726', '#B800D8', '#60009B', '#2E96FF', '#2731C8', '#03008D'];
8
- export const mangoFusionPaletteDark = ['#41698F', '#19D0CD', '#DE196B', '#FC5F5C', '#FFD771', '#DA00FF', '#9001CB', '#72CCFF', '#2E96FF', '#3B48E0'];
9
- export const mangoFusionPalette = mode => mode === 'dark' ? mangoFusionPaletteDark : mangoFusionPaletteLight;
10
- export const cheerfulFiestaPaletteDark = ['#0059B2', '#2E96FF', '#FFC24C', '#FF9F0E', '#F38200', '#2ABFDE', '#1F94AD', '#BD2C38', '#FF3143', '#FF8282'];
11
- export const cheerfulFiestaPaletteLight = ['#003A75', '#007FFF', '#FFC24C', '#FF9D09', '#CA6C00', '#127D94', '#1F94AD', '#C82634', '#FF3143', '#FF7E7E'];
12
- export const cheerfulFiestaPalette = mode => mode === 'dark' ? cheerfulFiestaPaletteDark : cheerfulFiestaPaletteLight;