@mui/x-charts-pro 8.16.0 → 8.17.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 (144) hide show
  1. package/BarChartPro/BarChartPro.js +1 -0
  2. package/CHANGELOG.md +108 -1
  3. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
  4. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -3
  5. package/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
  6. package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
  7. package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
  8. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
  9. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
  10. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
  11. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
  12. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
  13. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
  14. package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  15. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  16. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
  17. package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
  18. package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -4
  19. package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  20. package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
  21. package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
  22. package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
  23. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
  24. package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  25. package/FunnelChart/FunnelChart.js +1 -1
  26. package/FunnelChart/FunnelPlot.d.ts +1 -1
  27. package/FunnelChart/funnel.types.d.ts +1 -1
  28. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
  29. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
  30. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
  31. package/FunnelChart/seriesConfig/index.d.ts +1 -1
  32. package/FunnelChart/seriesConfig/index.js +2 -2
  33. package/Heatmap/Heatmap.js +1 -1
  34. package/Heatmap/HeatmapItem.d.ts +1 -1
  35. package/Heatmap/HeatmapPlot.d.ts +1 -2
  36. package/Heatmap/HeatmapPlot.js +0 -2
  37. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
  38. package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -2
  39. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
  40. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -2
  41. package/Heatmap/seriesConfig/index.d.ts +1 -1
  42. package/Heatmap/seriesConfig/index.js +2 -2
  43. package/SankeyChart/SankeyChart.js +1 -1
  44. package/SankeyChart/SankeyLinkElement.js +2 -2
  45. package/SankeyChart/SankeyNodeElement.js +2 -2
  46. package/SankeyChart/SankeyPlot.d.ts +1 -1
  47. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
  48. package/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -2
  49. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
  50. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -2
  51. package/SankeyChart/plugins/useSankeyHighlight.js +8 -12
  52. package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
  53. package/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
  54. package/SankeyChart/seriesConfig/index.d.ts +1 -1
  55. package/SankeyChart/seriesConfig/index.js +2 -2
  56. package/esm/BarChartPro/BarChartPro.js +1 -0
  57. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
  58. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -2
  59. package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
  60. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
  61. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
  62. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
  63. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
  64. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
  65. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
  66. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
  67. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
  68. package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  69. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  70. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
  71. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
  72. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -3
  73. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  74. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
  75. package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
  76. package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
  77. package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
  78. package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  79. package/esm/FunnelChart/FunnelChart.js +1 -1
  80. package/esm/FunnelChart/FunnelPlot.d.ts +1 -1
  81. package/esm/FunnelChart/funnel.types.d.ts +1 -1
  82. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
  83. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
  84. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
  85. package/esm/FunnelChart/seriesConfig/index.d.ts +1 -1
  86. package/esm/FunnelChart/seriesConfig/index.js +1 -1
  87. package/esm/Heatmap/Heatmap.js +1 -1
  88. package/esm/Heatmap/HeatmapItem.d.ts +1 -1
  89. package/esm/Heatmap/HeatmapPlot.d.ts +1 -2
  90. package/esm/Heatmap/HeatmapPlot.js +0 -1
  91. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
  92. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -1
  93. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
  94. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -1
  95. package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
  96. package/esm/Heatmap/seriesConfig/index.js +1 -1
  97. package/esm/SankeyChart/SankeyChart.js +1 -1
  98. package/esm/SankeyChart/SankeyLinkElement.js +2 -2
  99. package/esm/SankeyChart/SankeyNodeElement.js +2 -2
  100. package/esm/SankeyChart/SankeyPlot.d.ts +1 -1
  101. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
  102. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -1
  103. package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
  104. package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -1
  105. package/esm/SankeyChart/plugins/useSankeyHighlight.js +8 -12
  106. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
  107. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
  108. package/esm/SankeyChart/seriesConfig/index.d.ts +1 -1
  109. package/esm/SankeyChart/seriesConfig/index.js +1 -1
  110. package/esm/index.js +1 -1
  111. package/esm/internals/material/components/BaseMenuItem.d.ts +1 -2
  112. package/esm/internals/material/components/BaseMenuItem.js +0 -1
  113. package/esm/internals/material/components/BasePopper.d.ts +1 -2
  114. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
  115. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
  116. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
  117. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
  118. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
  119. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
  120. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
  121. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
  122. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
  123. package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
  124. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
  125. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
  126. package/esm/models/seriesType/heatmap.d.ts +1 -1
  127. package/index.js +1 -1
  128. package/internals/material/components/BaseMenuItem.d.ts +1 -2
  129. package/internals/material/components/BaseMenuItem.js +0 -2
  130. package/internals/material/components/BasePopper.d.ts +1 -2
  131. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
  132. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
  133. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
  134. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
  135. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
  136. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
  137. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
  138. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
  139. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
  140. package/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
  141. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
  142. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
  143. package/models/seriesType/heatmap.d.ts +1 -1
  144. package/package.json +5 -5
@@ -115,6 +115,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
115
115
  y: _propTypes.default.oneOf(['band', 'line', 'none'])
116
116
  }),
117
117
  /**
118
+ * @deprecated Use `barLabel` in the chart series instead.
118
119
  * If provided, the function will be used to format the label of the bar.
119
120
  * It can be set to 'value' to display the current value.
120
121
  * @param {BarItem} item The item to format.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,113 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.17.0
9
+
10
+ _Nov 5, 2025_
11
+
12
+ We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - Add `colorGetter` prop to cartesian charts series
15
+
16
+ <img width="400" alt="Image" src="https://github.com/user-attachments/assets/d8b1263f-794e-4939-b17e-87350fdd1746" />
17
+
18
+ - 🌎 Add Catalan (ca-ES) locale on the Data Grid
19
+ - 🌎 Add Norwegian Bokmål (nb-NO) locale on the Charts
20
+ - 🐞 Bugfixes
21
+ - 📚 Documentation improvements
22
+
23
+ Special thanks go out to these community members for their valuable contributions:
24
+ @frncesc, @Methuselah96, @samuelwalk, @htollefsen
25
+
26
+ The following team members contributed to this release:
27
+ @alexfauquette, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @mnajdova, @rita-codes, @arminmeh, @brijeshb42
28
+
29
+ ### Data Grid
30
+
31
+ #### `@mui/x-data-grid@8.17.0`
32
+
33
+ - [DataGrid] Stop event propagation on data grid action buttons (GridActionsCellItem) (#19513) @Copilot
34
+ - [DataGrid] Update cell editable state if `editable` prop is updated in the column definition (#20147) @arminmeh
35
+ - [DataGrid] Wait for external model updates before resetting pagination after sort/filter (#20162) @arminmeh
36
+ - [l10n] Add Catalan (ca-ES) locale (#20154) @frncesc
37
+ - [l10n] Improve Arabic (ar-SD) locale (#20185) @samuelwalk
38
+
39
+ #### `@mui/x-data-grid-pro@8.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
40
+
41
+ Same changes as in `@mui/x-data-grid@8.17.0`.
42
+
43
+ #### `@mui/x-data-grid-premium@8.17.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
44
+
45
+ Same changes as in `@mui/x-data-grid-pro@8.17.0`.
46
+
47
+ ### Date and Time Pickers
48
+
49
+ #### `@mui/x-date-pickers@8.17.0`
50
+
51
+ Internal changes.
52
+
53
+ #### `@mui/x-date-pickers-pro@8.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
54
+
55
+ Same changes as in `@mui/x-date-pickers@8.17.0`.
56
+
57
+ ### Charts
58
+
59
+ #### `@mui/x-charts@8.17.0`
60
+
61
+ - [charts] Add `barLabel` to bar series. Deprecate `barLabel` in `BarPlot`. (#20184) @bernardobelchior
62
+ - [charts] Add series color callback (#20084) @bernardobelchior
63
+ - [charts] Expose `ChartsSurface` classes (#20180) @bernardobelchior
64
+ - [charts] Fix chart cut off when inside `overflow: scroll` container (#20182) @bernardobelchior
65
+ - [charts] Fix tick label overflow on multiple axes and series demo (#20152) @bernardobelchior
66
+ - [charts] Organize series config (#20155) @bernardobelchior
67
+ - [charts] Use selectors from `@mui/x-internals` (#20052) @alexfauquette
68
+ - [charts] Use store from `@mui/x-internals` (#20121) @alexfauquette
69
+ - [charts] Add `useDataset` hook (#20205) @JCQuintas
70
+ - [l10n] Add Norwegian Bokmål (nb-NO) locale (#20197) @htollefsen
71
+
72
+ #### `@mui/x-charts-pro@8.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
73
+
74
+ Same changes as in `@mui/x-charts@8.17.0`, plus:
75
+
76
+ - [charts-pro] Fix zoom pan issue when controlled (#20163) @JCQuintas
77
+
78
+ #### `@mui/x-charts-premium@8.17.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
79
+
80
+ Same changes as in `@mui/x-charts-pro@8.17.0`.
81
+
82
+ ### Tree View
83
+
84
+ #### `@mui/x-tree-view@8.17.0`
85
+
86
+ - [tree view] Accept read only arrays in `expandedItems` prop (#20181) @Methuselah96
87
+ - [tree view] Use `aria-checked` instead of `aria-selected` on items (#19851) @flaviendelangle
88
+
89
+ #### `@mui/x-tree-view-pro@8.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
90
+
91
+ Same changes as in `@mui/x-tree-view@8.17.0`.
92
+
93
+ ### Codemod
94
+
95
+ #### `@mui/x-codemod@8.17.0`
96
+
97
+ Internal changes.
98
+
99
+ ### Docs
100
+
101
+ - [docs] Fix focus issues in the action column demo (#20178) @arminmeh
102
+ - [docs] Remove hidden Tree View headless page (#20119) @flaviendelangle
103
+ - [docs] Fix some external redirects (#20211) @Janpot
104
+
105
+ ### Core
106
+
107
+ - [code-infra] Fix cci job timeout due to buffered test output (#20193) @Janpot
108
+ - [code-infra] Fix publish workflow (#20140) @bernardobelchior
109
+ - [code-infra] Increase JSDOM test parallelism (#20179) @Janpot
110
+ - [code-infra] Remove React import requirement for jsx (#20144) @brijeshb42
111
+ - [code-infra] Replace `getInitialProps` with `getStaticProps` (#20192) @Janpot
112
+ - [code-infra] git-ignore next-env.d.ts (#20177) @Janpot
113
+ - [code-infra] Stabilize screenshot testing (#19868) @Janpot
114
+
8
115
  ## 8.16.0
9
116
 
10
117
  _Oct 29, 2025_
@@ -39,7 +146,7 @@ Same changes as in `@mui/x-data-grid@8.16.0`, plus:
39
146
  Same changes as in `@mui/x-data-grid-pro@8.16.0`, plus:
40
147
 
41
148
  - [DataGridPremium] Export and restore chart integration state (#20079) @arminmeh
42
- - [DataGridPremium] Fix grouping column `valueFormatter()` crash (#20070) @sai6855
149
+ - [DataGridPremium] Fix grouping column `valueFormatter()` crash (#20070) @sai6855
43
150
  - [DataGridPremium] Refetch aggregation data after row update with server-side aggregation (#20039) @arminmeh
44
151
 
45
152
  ### Date and Time Pickers
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { ChartSeriesType, ChartAnyPluginSignature, ChartProviderProps } from '@mui/x-charts/internals';
3
2
  import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
4
3
  import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
@@ -40,7 +39,7 @@ export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSer
40
39
  * </ChartDataProviderPro>
41
40
  * ```
42
41
  */
43
- declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>): React.JSX.Element;
42
+ declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
44
43
  declare namespace ChartDataProviderPro {
45
44
  var propTypes: any;
46
45
  }
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  'use client';
3
3
 
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
5
  Object.defineProperty(exports, "__esModule", {
7
6
  value: true
8
7
  });
9
8
  exports.ChartDataProviderPro = ChartDataProviderPro;
10
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
- var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _Watermark = require("@mui/x-license/Watermark");
14
12
  var _internals = require("@mui/x-charts/internals");
@@ -18,7 +16,7 @@ var _material = require("../internals/material");
18
16
  var _allPlugins = require("../internals/plugins/allPlugins");
19
17
  var _useChartDataProviderProProps = require("./useChartDataProviderProProps");
20
18
  var _jsxRuntime = require("react/jsx-runtime");
21
- const releaseInfo = "MTc2MTY5NjAwMDAwMA==";
19
+ const releaseInfo = "MTc2MjMwMDgwMDAwMA==";
22
20
  const packageIdentifier = 'x-charts-pro';
23
21
  /**
24
22
  * Orchestrates the data providers for the chart components and hooks.
@@ -1,5 +1,4 @@
1
- import * as React from 'react';
2
1
  /**
3
2
  * Renders the zoom slider for all x and y axes that have it enabled.
4
3
  */
5
- export declare function ChartZoomSlider(): React.JSX.Element;
4
+ export declare function ChartZoomSlider(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { AxisId } from '@mui/x-charts/internals';
3
2
  interface ChartZoomSliderProps {
4
3
  /**
@@ -17,5 +16,5 @@ interface ChartZoomSliderProps {
17
16
  export declare function ChartAxisZoomSlider({
18
17
  axisDirection,
19
18
  axisId
20
- }: ChartZoomSliderProps): React.JSX.Element | null;
19
+ }: ChartZoomSliderProps): import("react/jsx-runtime").JSX.Element | null;
21
20
  export {};
@@ -25,8 +25,8 @@ function ChartAxisZoomSlider({
25
25
  }) {
26
26
  const store = (0, _internals.useStore)();
27
27
  const drawingArea = (0, _internals.useDrawingArea)();
28
- const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, [axisId]);
29
- const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, [axisId]);
28
+ const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, axisId);
29
+ const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, axisId);
30
30
  const [showTooltip, setShowTooltip] = React.useState(false);
31
31
  const {
32
32
  xAxis
@@ -1,5 +1,4 @@
1
1
  import { AxisId, ZoomData } from '@mui/x-charts/internals';
2
- import * as React from 'react';
3
2
  export interface ChartAxisZoomSliderActiveTrackProps {
4
3
  axisId: AxisId;
5
4
  axisDirection: 'x' | 'y';
@@ -23,4 +22,4 @@ export declare function ChartAxisZoomSliderActiveTrack({
23
22
  showTooltip,
24
23
  onPointerEnter,
25
24
  onPointerLeave
26
- }: ChartAxisZoomSliderActiveTrackProps): React.JSX.Element;
25
+ }: ChartAxisZoomSliderActiveTrackProps): import("react/jsx-runtime").JSX.Element;
@@ -56,7 +56,7 @@ function ChartAxisZoomSliderActiveTrack({
56
56
  svgRef
57
57
  } = (0, _internals.useChartContext)();
58
58
  const store = (0, _internals.useStore)();
59
- const axis = (0, _internals.useSelector)(store, _internals.selectorChartAxis, [axisId]);
59
+ const axis = (0, _internals.useSelector)(store, _internals.selectorChartAxis, axisId);
60
60
  const drawingArea = (0, _internals.useDrawingArea)();
61
61
  const activePreviewRectRef = React.useRef(null);
62
62
  const [startThumbEl, setStartThumbEl] = React.useState(null);
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { AxisId } from '@mui/x-charts/internals';
3
2
  interface ChartAxisZoomSliderPreviewProps {
4
3
  axisId: AxisId;
@@ -14,5 +13,5 @@ export declare function ChartAxisZoomSliderPreview({
14
13
  axisDirection,
15
14
  reverse,
16
15
  ...props
17
- }: ChartAxisZoomSliderPreviewProps): React.JSX.Element;
16
+ }: ChartAxisZoomSliderPreviewProps): import("react/jsx-runtime").JSX.Element;
18
17
  export {};
@@ -50,8 +50,8 @@ function PreviewRectangles(props) {
50
50
  axisDirection
51
51
  } = props;
52
52
  const store = (0, _internals.useStore)();
53
- const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, [axisId]);
54
- const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, [axisId]);
53
+ const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, axisId);
54
+ const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, axisId);
55
55
  const id = (0, _useId.default)();
56
56
  if (!zoomData) {
57
57
  return null;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { AxisId } from '@mui/x-charts/internals';
3
2
  interface ChartAxisZoomSliderPreviewContentProps {
4
3
  axisId: AxisId;
@@ -7,5 +6,5 @@ interface ChartAxisZoomSliderPreviewContentProps {
7
6
  height: number;
8
7
  width: number;
9
8
  }
10
- export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps): React.JSX.Element;
9
+ export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps): import("react/jsx-runtime").JSX.Element;
11
10
  export {};
@@ -14,5 +14,5 @@ export declare function ChartAxisZoomSliderTrack({
14
14
  onSelectStart,
15
15
  onSelectEnd,
16
16
  ...other
17
- }: ChartAxisZoomSliderTrackProps): React.JSX.Element;
17
+ }: ChartAxisZoomSliderTrackProps): import("react/jsx-runtime").JSX.Element;
18
18
  export {};
@@ -7,5 +7,5 @@ export declare function ChartsTooltipZoomSliderValue({
7
7
  placement,
8
8
  modifiers,
9
9
  children
10
- }: ChartsTooltipZoomSliderValueProps): React.JSX.Element;
10
+ }: ChartsTooltipZoomSliderValueProps): import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
4
4
  interface AreaPreviewPlotProps extends PreviewPlotProps {}
5
5
  export declare function AreaPreviewPlot({
6
6
  axisId
7
- }: AreaPreviewPlotProps): React.JSX.Element;
7
+ }: AreaPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
8
8
  export interface PreviewAreaElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
9
9
  id: SeriesId;
10
10
  gradientId?: string;
@@ -55,7 +55,7 @@ function PreviewAreaElement(_ref) {
55
55
  }
56
56
  function useAreaPreviewData(axisId) {
57
57
  const store = (0, _internals.useStore)();
58
- const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, [axisId]);
59
- const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, [axisId]);
58
+ const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
59
+ const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
60
60
  return (0, _internals.useAreaPlotData)(xAxes, yAxes);
61
61
  }
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { PreviewPlotProps } from "./PreviewPlot.types.js";
3
2
  interface BarPreviewPlotProps extends PreviewPlotProps {
4
3
  x: number;
@@ -6,5 +5,5 @@ interface BarPreviewPlotProps extends PreviewPlotProps {
6
5
  height: number;
7
6
  width: number;
8
7
  }
9
- export declare function BarPreviewPlot(props: BarPreviewPlotProps): React.JSX.Element;
8
+ export declare function BarPreviewPlot(props: BarPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.BarPreviewPlot = BarPreviewPlot;
8
- var React = _interopRequireWildcard(require("react"));
9
7
  var _internals = require("@mui/x-charts/internals");
10
8
  var _BarChart = require("@mui/x-charts/BarChart");
11
9
  var _jsxRuntime = require("react/jsx-runtime");
@@ -56,7 +54,7 @@ function BarPreviewPlot(props) {
56
54
  }
57
55
  function useBarPreviewData(axisId, drawingArea) {
58
56
  const store = (0, _internals.useStore)();
59
- const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, [axisId]);
60
- const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, [axisId]);
57
+ const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
58
+ const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
61
59
  return (0, _internals.useBarPlotData)(drawingArea, xAxes, yAxes);
62
60
  }
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
4
4
  interface LinePreviewPlotProps extends PreviewPlotProps {}
5
5
  export declare function LinePreviewPlot({
6
6
  axisId
7
- }: LinePreviewPlotProps): React.JSX.Element;
7
+ }: LinePreviewPlotProps): import("react/jsx-runtime").JSX.Element;
8
8
  export interface PreviewLineElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
9
9
  id: SeriesId;
10
10
  gradientId?: string;
@@ -53,7 +53,7 @@ function PreviewLineElement(_ref) {
53
53
  }
54
54
  function useLinePreviewData(axisId) {
55
55
  const store = (0, _internals.useStore)();
56
- const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, [axisId]);
57
- const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, [axisId]);
56
+ const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
57
+ const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
58
58
  return (0, _internals.useLinePlotData)(xAxes, yAxes);
59
59
  }
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { PreviewPlotProps } from "./PreviewPlot.types.js";
3
2
  interface ScatterPreviewPlotProps extends PreviewPlotProps {
4
3
  x: number;
@@ -12,5 +11,5 @@ export declare function ScatterPreviewPlot({
12
11
  y,
13
12
  height,
14
13
  width
15
- }: ScatterPreviewPlotProps): React.JSX.Element | null;
14
+ }: ScatterPreviewPlotProps): import("react/jsx-runtime").JSX.Element | null;
16
15
  export {};
@@ -19,8 +19,8 @@ function ScatterPreviewPlot({
19
19
  }) {
20
20
  const store = (0, _internals.useStore)();
21
21
  const seriesData = (0, _hooks.useScatterSeriesContext)();
22
- const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, [axisId]);
23
- const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, [axisId]);
22
+ const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
23
+ const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
24
24
  const defaultXAxisId = (0, _hooks.useXAxes)().xAxisIds[0];
25
25
  const defaultYAxisId = (0, _hooks.useYAxes)().yAxisIds[0];
26
26
  const {
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { ChartsToolbarProps } from '@mui/x-charts/Toolbar';
3
2
  import { ChartsToolbarPrintExportOptions } from "./ChartsToolbarPrintExportTrigger.js";
4
3
  import { ChartsToolbarImageExportOptions } from "./ChartsToolbarImageExportTrigger.js";
@@ -13,7 +12,7 @@ declare function ChartsToolbarPro({
13
12
  printOptions,
14
13
  imageExportOptions: rawImageExportOptions,
15
14
  ...other
16
- }: ChartsToolbarProProps): React.JSX.Element | null;
15
+ }: ChartsToolbarProProps): import("react/jsx-runtime").JSX.Element | null;
17
16
  declare namespace ChartsToolbarPro {
18
17
  var propTypes: any;
19
18
  }
@@ -7,7 +7,7 @@ export interface ChartsMenuProps extends Pick<ChartBasePopperProps, 'className'
7
7
  position?: Placement;
8
8
  children: React.ReactNode;
9
9
  }
10
- declare function ChartsMenu(props: ChartsMenuProps): React.JSX.Element;
10
+ declare function ChartsMenu(props: ChartsMenuProps): import("react/jsx-runtime").JSX.Element;
11
11
  declare namespace ChartsMenu {
12
12
  var propTypes: any;
13
13
  }
@@ -26,7 +26,7 @@ var _ChartDataProviderPro = require("../ChartDataProviderPro");
26
26
  var _FunnelChart2 = require("./FunnelChart.plugins");
27
27
  var _jsxRuntime = require("react/jsx-runtime");
28
28
  const seriesConfig = {
29
- funnel: _seriesConfig.seriesConfig
29
+ funnel: _seriesConfig.funnelSeriesConfig
30
30
  };
31
31
  const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, ref) {
32
32
  const themedProps = (0, _styles.useThemeProps)({
@@ -9,7 +9,7 @@ export interface FunnelPlotProps extends FunnelPlotSlotExtension {
9
9
  */
10
10
  onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, funnelItemIdentifier: FunnelItemIdentifier) => void;
11
11
  }
12
- declare function FunnelPlot(props: FunnelPlotProps): React.JSX.Element;
12
+ declare function FunnelPlot(props: FunnelPlotProps): import("react/jsx-runtime").JSX.Element;
13
13
  declare namespace FunnelPlot {
14
14
  var propTypes: any;
15
15
  }
@@ -27,7 +27,7 @@ export type FunnelValueType = {
27
27
  */
28
28
  labelMarkType?: ChartsLabelMarkProps['type'];
29
29
  };
30
- export interface FunnelSeriesType extends Omit<CommonSeriesType<FunnelValueType>, 'color'>, CartesianSeriesType {
30
+ export interface FunnelSeriesType extends Omit<CommonSeriesType<FunnelValueType>, 'color' | 'colorGetter'>, CartesianSeriesType {
31
31
  type: 'funnel';
32
32
  /**
33
33
  * Data associated to the funnel section.
@@ -40,15 +40,15 @@ const useChartFunnelAxis = ({
40
40
  isFirstRender.current = false;
41
41
  return;
42
42
  }
43
- store.update(prev => (0, _extends2.default)({}, prev, {
43
+ store.update({
44
44
  funnel: {
45
45
  gap: gap ?? 0
46
46
  },
47
- cartesianAxis: (0, _extends2.default)({}, prev.cartesianAxis, {
47
+ cartesianAxis: {
48
48
  x: (0, _internals.defaultizeXAxis)(xAxis, dataset),
49
49
  y: (0, _internals.defaultizeYAxis)(yAxis, dataset)
50
- })
51
- }));
50
+ }
51
+ });
52
52
  }, [seriesConfig, drawingArea, xAxis, yAxis, dataset, store, gap]);
53
53
  React.useEffect(() => {
54
54
  const element = svgRef.current;
@@ -109,12 +109,12 @@ const useChartFunnelAxis = ({
109
109
  const {
110
110
  axis: xAxisWithScale,
111
111
  axisIds: xAxisIds
112
- } = (0, _useChartFunnelAxisRendering.selectorChartXAxis)(store.value);
112
+ } = (0, _useChartFunnelAxisRendering.selectorChartXAxis)(store.state);
113
113
  const {
114
114
  axis: yAxisWithScale,
115
115
  axisIds: yAxisIds
116
- } = (0, _useChartFunnelAxisRendering.selectorChartYAxis)(store.value);
117
- const processedSeries = (0, _internals.selectorChartSeriesProcessed)(store.value);
116
+ } = (0, _useChartFunnelAxisRendering.selectorChartYAxis)(store.state);
117
+ const processedSeries = (0, _internals.selectorChartSeriesProcessed)(store.state);
118
118
  const usedXAxis = xAxisIds[0];
119
119
  const usedYAxis = yAxisIds[0];
120
120
  let dataIndex = null;
@@ -3,54 +3,16 @@ import { UseChartFunnelAxisSignature } from "./useChartFunnelAxis.types.js";
3
3
  export declare const selectorFunnel: (state: ChartState<[], [UseChartFunnelAxisSignature]>) => {
4
4
  gap: number;
5
5
  } | undefined;
6
- export declare const selectorFunnelGap: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
6
+ export declare const selectorFunnelGap: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
7
7
  funnel: {
8
8
  gap: number;
9
9
  };
10
10
  }> & {
11
11
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
12
- } & {
12
+ }) => number;
13
+ export declare const selectorChartXAxis: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
13
14
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
14
- }, number, []>;
15
- export declare const selectorChartXAxis: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
15
+ }) => import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsXAxisProps>;
16
+ export declare const selectorChartYAxis: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
16
17
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
17
- } & Partial<{}> & {
18
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
19
- } & {
20
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
21
- } & {
22
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
23
- } & {
24
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
25
- } & {
26
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
27
- } & {
28
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
29
- } & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
30
- funnel: {
31
- gap: number;
32
- };
33
- }> & {
34
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
35
- }, import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsXAxisProps>, []>;
36
- export declare const selectorChartYAxis: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
37
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
38
- } & Partial<{}> & {
39
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
40
- } & {
41
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
42
- } & {
43
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
44
- } & {
45
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
46
- } & {
47
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
48
- } & {
49
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
50
- } & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
51
- funnel: {
52
- gap: number;
53
- };
54
- }> & {
55
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
56
- }, import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsYAxisProps>, []>;
18
+ }) => import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsYAxisProps>;
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorFunnelGap = exports.selectorFunnel = exports.selectorChartYAxis = exports.selectorChartXAxis = void 0;
7
+ var _store = require("@mui/x-internals/store");
7
8
  var _internals = require("@mui/x-charts/internals");
8
9
  var _computeAxisValue = require("./computeAxisValue");
9
10
  const selectorFunnel = state => state.funnel;
10
11
  exports.selectorFunnel = selectorFunnel;
11
12
  const selectorFunnelGap = exports.selectorFunnelGap = (0, _internals.createSelector)([selectorFunnel], funnel => funnel?.gap ?? 0);
12
- const selectorChartXAxis = exports.selectorChartXAxis = (0, _internals.createSelector)([_internals.selectorChartRawXAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap], (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
13
+ const selectorChartXAxis = exports.selectorChartXAxis = (0, _store.createSelectorMemoized)(_internals.selectorChartRawXAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap, (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
13
14
  drawingArea,
14
15
  formattedSeries,
15
16
  axis,
@@ -17,7 +18,7 @@ const selectorChartXAxis = exports.selectorChartXAxis = (0, _internals.createSel
17
18
  axisDirection: 'x',
18
19
  gap
19
20
  }));
20
- const selectorChartYAxis = exports.selectorChartYAxis = (0, _internals.createSelector)([_internals.selectorChartRawYAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap], (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
21
+ const selectorChartYAxis = exports.selectorChartYAxis = (0, _store.createSelectorMemoized)(_internals.selectorChartRawYAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap, (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
21
22
  drawingArea,
22
23
  formattedSeries,
23
24
  axis,
@@ -1,2 +1,2 @@
1
1
  import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
2
- export declare const seriesConfig: ChartSeriesTypeConfig<'funnel'>;
2
+ export declare const funnelSeriesConfig: ChartSeriesTypeConfig<'funnel'>;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.seriesConfig = void 0;
7
+ exports.funnelSeriesConfig = void 0;
8
8
  var _extremums = require("./extremums");
9
9
  var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
10
10
  var _getColor = _interopRequireDefault(require("./getColor"));
@@ -12,7 +12,7 @@ var _legend = _interopRequireDefault(require("./legend"));
12
12
  var _tooltip = _interopRequireDefault(require("./tooltip"));
13
13
  var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
14
14
  var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
15
- const seriesConfig = exports.seriesConfig = {
15
+ const funnelSeriesConfig = exports.funnelSeriesConfig = {
16
16
  seriesProcessor: _seriesProcessor.default,
17
17
  colorProcessor: _getColor.default,
18
18
  legendGetter: _legend.default,
@@ -30,7 +30,7 @@ var _jsxRuntime = require("react/jsx-runtime");
30
30
  // The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
31
31
  const defaultColorMap = (0, _d3Interpolate.interpolateRgbBasis)(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
32
32
  const seriesConfig = {
33
- heatmap: _seriesConfig.seriesConfig
33
+ heatmap: _seriesConfig.heatmapSeriesConfig
34
34
  };
35
35
  function getDefaultDataForAxis(series, dimension) {
36
36
  if (series?.[0]?.data === undefined || series[0].data.length === 0) {
@@ -42,7 +42,7 @@ export interface HeatmapItemOwnerState {
42
42
  /**
43
43
  * @ignore - internal component.
44
44
  */
45
- declare function HeatmapItem(props: HeatmapItemProps): React.JSX.Element;
45
+ declare function HeatmapItem(props: HeatmapItemProps): import("react/jsx-runtime").JSX.Element;
46
46
  declare namespace HeatmapItem {
47
47
  var propTypes: any;
48
48
  }
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
1
  import { HeatmapItemProps } from "./HeatmapItem.js";
3
2
  export interface HeatmapPlotProps extends Pick<HeatmapItemProps, 'slots' | 'slotProps'> {}
4
- declare function HeatmapPlot(props: HeatmapPlotProps): React.JSX.Element | null;
3
+ declare function HeatmapPlot(props: HeatmapPlotProps): import("react/jsx-runtime").JSX.Element | null;
5
4
  declare namespace HeatmapPlot {
6
5
  var propTypes: any;
7
6
  }