@mui/x-charts 9.5.0 → 9.6.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 (200) hide show
  1. package/BarChart/BarChart.js +1 -1
  2. package/BarChart/BarChart.mjs +1 -1
  3. package/BarChart/BarElement.js +2 -1
  4. package/BarChart/BarElement.mjs +2 -1
  5. package/BarChart/BarLabel/BarLabel.js +1 -1
  6. package/BarChart/BarLabel/BarLabel.mjs +1 -1
  7. package/BarChart/BarPlot.js +1 -1
  8. package/BarChart/BarPlot.mjs +1 -1
  9. package/CHANGELOG.md +151 -0
  10. package/ChartsAxis/ChartsAxis.js +1 -1
  11. package/ChartsAxis/ChartsAxis.mjs +1 -1
  12. package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
  13. package/ChartsAxisHighlight/ChartsAxisHighlight.mjs +1 -1
  14. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +2 -2
  15. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +2 -2
  16. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +5 -1
  17. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +5 -1
  18. package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -1
  19. package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +14 -2
  20. package/ChartsClipPath/ChartsClipPath.js +1 -1
  21. package/ChartsClipPath/ChartsClipPath.mjs +1 -1
  22. package/ChartsContainer/ChartsContainer.js +5 -3
  23. package/ChartsContainer/ChartsContainer.mjs +5 -3
  24. package/ChartsDataProvider/ChartsDataProvider.js +5 -1
  25. package/ChartsDataProvider/ChartsDataProvider.mjs +5 -1
  26. package/ChartsGrid/ChartsGrid.js +5 -1
  27. package/ChartsGrid/ChartsGrid.mjs +5 -1
  28. package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
  29. package/ChartsLayerContainer/ChartsLayerContainer.mjs +1 -1
  30. package/ChartsLocalizationProvider/ChartsLocalizationProvider.js +1 -1
  31. package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +1 -1
  32. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +2 -2
  33. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +2 -2
  34. package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +9 -1
  35. package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +9 -1
  36. package/ChartsRadialGrid/ChartsRadialGrid.js +5 -1
  37. package/ChartsRadialGrid/ChartsRadialGrid.mjs +5 -1
  38. package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +8 -2
  39. package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +8 -2
  40. package/ChartsRadiusAxis/ChartsRadiusAxis.js +143 -3
  41. package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +144 -5
  42. package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
  43. package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
  44. package/ChartsRotationAxis/ChartsRotationAxis.d.mts +8 -2
  45. package/ChartsRotationAxis/ChartsRotationAxis.d.ts +8 -2
  46. package/ChartsRotationAxis/ChartsRotationAxis.js +140 -3
  47. package/ChartsRotationAxis/ChartsRotationAxis.mjs +141 -5
  48. package/ChartsRotationAxis/index.d.mts +1 -1
  49. package/ChartsRotationAxis/index.d.ts +1 -1
  50. package/ChartsSurface/ChartsSurface.js +1 -1
  51. package/ChartsSurface/ChartsSurface.mjs +1 -1
  52. package/ChartsSvgLayer/ChartsSvgLayer.js +1 -1
  53. package/ChartsSvgLayer/ChartsSvgLayer.mjs +1 -1
  54. package/ChartsText/ChartsText.js +2 -2
  55. package/ChartsText/ChartsText.mjs +2 -2
  56. package/ChartsTooltip/ChartsAxisTooltipContent.js +22 -3
  57. package/ChartsTooltip/ChartsAxisTooltipContent.mjs +22 -3
  58. package/ChartsTooltip/ChartsItemTooltipContent.js +52 -1
  59. package/ChartsTooltip/ChartsItemTooltipContent.mjs +52 -1
  60. package/ChartsTooltip/ChartsTooltip.js +13 -33
  61. package/ChartsTooltip/ChartsTooltip.mjs +13 -33
  62. package/ChartsTooltip/ChartsTooltipContainer.js +6 -26
  63. package/ChartsTooltip/ChartsTooltipContainer.mjs +6 -26
  64. package/ChartsWrapper/ChartsWrapper.js +1 -1
  65. package/ChartsWrapper/ChartsWrapper.mjs +1 -1
  66. package/ChartsXAxis/ChartsSingleXAxisTicks.js +1 -1
  67. package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
  68. package/ChartsXAxis/ChartsXAxis.js +11 -2
  69. package/ChartsXAxis/ChartsXAxis.mjs +11 -2
  70. package/ChartsYAxis/ChartsSingleYAxisTicks.js +1 -1
  71. package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
  72. package/ChartsYAxis/ChartsYAxis.js +11 -2
  73. package/ChartsYAxis/ChartsYAxis.mjs +11 -2
  74. package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
  75. package/ChartsYAxis/ChartsYAxisImpl.mjs +1 -1
  76. package/Gauge/Gauge.js +1 -1
  77. package/Gauge/Gauge.mjs +1 -1
  78. package/Gauge/GaugeContainer.js +1 -1
  79. package/Gauge/GaugeContainer.mjs +1 -1
  80. package/Gauge/GaugeValueArc.js +2 -2
  81. package/Gauge/GaugeValueArc.mjs +2 -2
  82. package/Gauge/GaugeValueText.js +1 -1
  83. package/Gauge/GaugeValueText.mjs +1 -1
  84. package/LineChart/AnimatedArea.js +3 -3
  85. package/LineChart/AnimatedArea.mjs +3 -3
  86. package/LineChart/AnimatedLine.js +1 -1
  87. package/LineChart/AnimatedLine.mjs +1 -1
  88. package/LineChart/AreaElement.js +1 -1
  89. package/LineChart/AreaElement.mjs +1 -1
  90. package/LineChart/AreaPlot.js +1 -1
  91. package/LineChart/AreaPlot.mjs +1 -1
  92. package/LineChart/LineChart.js +1 -1
  93. package/LineChart/LineChart.mjs +1 -1
  94. package/LineChart/LineElement.js +4 -2
  95. package/LineChart/LineElement.mjs +4 -2
  96. package/LineChart/LineHighlightElement.js +1 -2
  97. package/LineChart/LineHighlightElement.mjs +1 -2
  98. package/LineChart/LineHighlightPlot.js +1 -1
  99. package/LineChart/LineHighlightPlot.mjs +1 -1
  100. package/LineChart/LinePlot.js +1 -1
  101. package/LineChart/LinePlot.mjs +1 -1
  102. package/LineChart/MarkElement.js +3 -2
  103. package/LineChart/MarkElement.mjs +3 -2
  104. package/LineChart/MarkPlot.js +2 -1
  105. package/LineChart/MarkPlot.mjs +2 -1
  106. package/PieChart/FocusedPieArc.d.mts +5 -1
  107. package/PieChart/FocusedPieArc.d.ts +5 -1
  108. package/PieChart/FocusedPieArc.js +22 -1
  109. package/PieChart/FocusedPieArc.mjs +24 -2
  110. package/PieChart/PieArc.js +1 -1
  111. package/PieChart/PieArc.mjs +1 -1
  112. package/PieChart/PieArcLabel.js +1 -1
  113. package/PieChart/PieArcLabel.mjs +1 -1
  114. package/PieChart/PieArcLabelPlot.js +7 -6
  115. package/PieChart/PieArcLabelPlot.mjs +7 -6
  116. package/PieChart/PieArcPlot.js +7 -6
  117. package/PieChart/PieArcPlot.mjs +7 -6
  118. package/PieChart/PieChart.js +1 -1
  119. package/PieChart/PieChart.mjs +1 -1
  120. package/PieChart/PiePlot.js +2 -1
  121. package/PieChart/PiePlot.mjs +2 -1
  122. package/RadarChart/RadarAxis/RadarAxis.js +5 -1
  123. package/RadarChart/RadarAxis/RadarAxis.mjs +5 -1
  124. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +6 -2
  125. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +6 -2
  126. package/RadarChart/RadarChart.js +1 -1
  127. package/RadarChart/RadarChart.mjs +1 -1
  128. package/RadarChart/RadarGrid/RadarGrid.js +1 -5
  129. package/RadarChart/RadarGrid/RadarGrid.mjs +1 -5
  130. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +5 -1
  131. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +5 -1
  132. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +5 -1
  133. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +5 -1
  134. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -1
  135. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +5 -1
  136. package/ScatterChart/Scatter.js +1 -1
  137. package/ScatterChart/Scatter.mjs +1 -1
  138. package/ScatterChart/ScatterChart.js +5 -3
  139. package/ScatterChart/ScatterChart.mjs +5 -3
  140. package/ScatterChart/ScatterMarker.js +2 -2
  141. package/ScatterChart/ScatterMarker.mjs +2 -2
  142. package/ScatterChart/ScatterPlot.d.mts +8 -1
  143. package/ScatterChart/ScatterPlot.d.ts +8 -1
  144. package/ScatterChart/ScatterPlot.js +5 -2
  145. package/ScatterChart/ScatterPlot.mjs +5 -2
  146. package/ScatterChart/seriesConfig/getColor.js +6 -15
  147. package/ScatterChart/seriesConfig/getColor.mjs +6 -15
  148. package/SparkLineChart/SparkLineChart.js +1 -1
  149. package/SparkLineChart/SparkLineChart.mjs +1 -1
  150. package/Toolbar/Toolbar.js +1 -1
  151. package/Toolbar/Toolbar.mjs +1 -1
  152. package/Toolbar/ToolbarButton.js +1 -1
  153. package/Toolbar/ToolbarButton.mjs +1 -1
  154. package/index.d.mts +1 -1
  155. package/index.d.ts +1 -1
  156. package/index.js +1 -1
  157. package/index.mjs +1 -1
  158. package/internals/colorScale.d.mts +2 -2
  159. package/internals/colorScale.d.ts +2 -2
  160. package/internals/colorScale.js +2 -2
  161. package/internals/colorScale.mjs +2 -2
  162. package/internals/index.d.mts +2 -0
  163. package/internals/index.d.ts +2 -0
  164. package/internals/index.js +8 -0
  165. package/internals/index.mjs +2 -0
  166. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -30
  167. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +17 -31
  168. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.mts +8 -1
  169. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +8 -1
  170. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
  171. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
  172. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +7 -0
  173. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +7 -0
  174. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +0 -8
  175. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +0 -8
  176. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +1 -2
  177. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +2 -2
  178. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +6 -1
  179. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +6 -1
  180. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +6 -2
  181. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +6 -2
  182. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +49 -0
  183. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +49 -0
  184. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +124 -0
  185. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -0
  186. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +64 -0
  187. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +64 -0
  188. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.js +5 -0
  189. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
  190. package/internals/resolveColorProcessor.js +4 -7
  191. package/internals/resolveColorProcessor.mjs +4 -7
  192. package/models/axis.d.mts +20 -4
  193. package/models/axis.d.ts +20 -4
  194. package/models/colorMapping.d.mts +8 -0
  195. package/models/colorMapping.d.ts +8 -0
  196. package/package.json +7 -4
  197. package/hooks/useIsHydrated.d.mts +0 -4
  198. package/hooks/useIsHydrated.d.ts +0 -4
  199. package/hooks/useIsHydrated.js +0 -19
  200. package/hooks/useIsHydrated.mjs +0 -14
@@ -19,11 +19,8 @@ function resolveColorProcessor(params) {
19
19
  return series.color;
20
20
  }
21
21
  const value = series.data[dataIndex];
22
- const color = value === null ? getSeriesColor({
23
- value,
24
- dataIndex
25
- }) : valueColorScale(value);
26
- if (color === null) {
22
+ const color = valueColorScale(value);
23
+ if (typeof color !== 'string') {
27
24
  return getSeriesColor({
28
25
  value,
29
26
  dataIndex
@@ -42,8 +39,8 @@ function resolveColorProcessor(params) {
42
39
  value: series.data[dataIndex],
43
40
  dataIndex
44
41
  };
45
- const color = value === null ? getSeriesColor(fallbackValue) : categoryColorScale(value);
46
- if (color === null) {
42
+ const color = categoryColorScale(value);
43
+ if (typeof color !== 'string') {
47
44
  return getSeriesColor(fallbackValue);
48
45
  }
49
46
  return color;
@@ -13,11 +13,8 @@ export function resolveColorProcessor(params) {
13
13
  return series.color;
14
14
  }
15
15
  const value = series.data[dataIndex];
16
- const color = value === null ? getSeriesColor({
17
- value,
18
- dataIndex
19
- }) : valueColorScale(value);
20
- if (color === null) {
16
+ const color = valueColorScale(value);
17
+ if (typeof color !== 'string') {
21
18
  return getSeriesColor({
22
19
  value,
23
20
  dataIndex
@@ -36,8 +33,8 @@ export function resolveColorProcessor(params) {
36
33
  value: series.data[dataIndex],
37
34
  dataIndex
38
35
  };
39
- const color = value === null ? getSeriesColor(fallbackValue) : categoryColorScale(value);
40
- if (color === null) {
36
+ const color = categoryColorScale(value);
37
+ if (typeof color !== 'string') {
41
38
  return getSeriesColor(fallbackValue);
42
39
  }
43
40
  return color;
package/models/axis.d.mts CHANGED
@@ -167,8 +167,13 @@ type AxisSideConfig<AxisProps extends ChartsCartesianAxisProps> = {
167
167
  */
168
168
  width?: AxisProps extends ChartsYAxisProps ? number | 'auto' : never;
169
169
  };
170
- export interface ChartsRotationAxisProps extends ChartsAxisProps {
170
+ export interface ChartsRotationAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
171
171
  axis?: 'rotation';
172
+ /**
173
+ * If true, the tick labels are not rendered.
174
+ * @default false
175
+ */
176
+ disableTickLabel?: boolean;
172
177
  /**
173
178
  * The start angle (in deg).
174
179
  */
@@ -204,16 +209,27 @@ export interface ChartsRotationAxisProps extends ChartsAxisProps {
204
209
  */
205
210
  classes?: Partial<ChartsRadialAxisClasses>;
206
211
  }
207
- export interface ChartsRadiusAxisProps extends ChartsAxisProps {
212
+ export interface ChartsRadiusAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
208
213
  axis?: 'radius';
214
+ /**
215
+ * If true, the tick labels are not rendered.
216
+ * @default false
217
+ */
218
+ disableTickLabel?: boolean;
209
219
  /**
210
220
  * The minimal radius.
221
+ * Can be a number (in pixels), a pixel string (for example `'20px'`), or a percentage string
222
+ * (for example `'20%'`) relative to the available radius (half the smallest side of the drawing area).
223
+ * @default 0
211
224
  */
212
- minRadius?: number;
225
+ minRadius?: number | string;
213
226
  /**
214
227
  * The maximal radius.
228
+ * Can be a number (in pixels), a pixel string (for example `'80px'`), or a percentage string
229
+ * (for example `'80%'`) relative to the available radius (half the smallest side of the drawing area).
230
+ * @default '100%'
215
231
  */
216
- maxRadius?: number;
232
+ maxRadius?: number | string;
217
233
  /**
218
234
  * The position of the axis in polar coordinates.
219
235
  * It can be 'start', 'end', or a specific angle in degrees.
package/models/axis.d.ts CHANGED
@@ -167,8 +167,13 @@ type AxisSideConfig<AxisProps extends ChartsCartesianAxisProps> = {
167
167
  */
168
168
  width?: AxisProps extends ChartsYAxisProps ? number | 'auto' : never;
169
169
  };
170
- export interface ChartsRotationAxisProps extends ChartsAxisProps {
170
+ export interface ChartsRotationAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
171
171
  axis?: 'rotation';
172
+ /**
173
+ * If true, the tick labels are not rendered.
174
+ * @default false
175
+ */
176
+ disableTickLabel?: boolean;
172
177
  /**
173
178
  * The start angle (in deg).
174
179
  */
@@ -204,16 +209,27 @@ export interface ChartsRotationAxisProps extends ChartsAxisProps {
204
209
  */
205
210
  classes?: Partial<ChartsRadialAxisClasses>;
206
211
  }
207
- export interface ChartsRadiusAxisProps extends ChartsAxisProps {
212
+ export interface ChartsRadiusAxisProps extends Omit<ChartsAxisProps, 'slots' | 'slotProps'> {
208
213
  axis?: 'radius';
214
+ /**
215
+ * If true, the tick labels are not rendered.
216
+ * @default false
217
+ */
218
+ disableTickLabel?: boolean;
209
219
  /**
210
220
  * The minimal radius.
221
+ * Can be a number (in pixels), a pixel string (for example `'20px'`), or a percentage string
222
+ * (for example `'20%'`) relative to the available radius (half the smallest side of the drawing area).
223
+ * @default 0
211
224
  */
212
- minRadius?: number;
225
+ minRadius?: number | string;
213
226
  /**
214
227
  * The maximal radius.
228
+ * Can be a number (in pixels), a pixel string (for example `'80px'`), or a percentage string
229
+ * (for example `'80%'`) relative to the available radius (half the smallest side of the drawing area).
230
+ * @default '100%'
215
231
  */
216
- maxRadius?: number;
232
+ maxRadius?: number | string;
217
233
  /**
218
234
  * The position of the axis in polar coordinates.
219
235
  * It can be 'start', 'end', or a specific angle in degrees.
@@ -14,6 +14,10 @@ export interface ContinuousColorConfig<Value = number | Date> {
14
14
  * The colors to render. It can be an array with the extremum colors, or an interpolation function.
15
15
  */
16
16
  color: readonly [string, string] | ((t: number) => string);
17
+ /**
18
+ * The color to use when an element is not part of the values.
19
+ */
20
+ unknownColor?: string;
17
21
  }
18
22
  export interface PiecewiseColorConfig<Value = number | Date> {
19
23
  type: 'piecewise';
@@ -26,6 +30,10 @@ export interface PiecewiseColorConfig<Value = number | Date> {
26
30
  * Should contain N+1 colors, where N is the number of thresholds.
27
31
  */
28
32
  colors: string[];
33
+ /**
34
+ * The color to use when an element is not part of the values.
35
+ */
36
+ unknownColor?: string;
29
37
  }
30
38
  export interface OrdinalColorConfig<Value = number | Date | string> {
31
39
  type: 'ordinal';
@@ -14,6 +14,10 @@ export interface ContinuousColorConfig<Value = number | Date> {
14
14
  * The colors to render. It can be an array with the extremum colors, or an interpolation function.
15
15
  */
16
16
  color: readonly [string, string] | ((t: number) => string);
17
+ /**
18
+ * The color to use when an element is not part of the values.
19
+ */
20
+ unknownColor?: string;
17
21
  }
18
22
  export interface PiecewiseColorConfig<Value = number | Date> {
19
23
  type: 'piecewise';
@@ -26,6 +30,10 @@ export interface PiecewiseColorConfig<Value = number | Date> {
26
30
  * Should contain N+1 colors, where N is the number of thresholds.
27
31
  */
28
32
  colors: string[];
33
+ /**
34
+ * The color to use when an element is not part of the values.
35
+ */
36
+ unknownColor?: string;
29
37
  }
30
38
  export interface OrdinalColorConfig<Value = number | Date | string> {
31
39
  type: 'ordinal';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts",
3
- "version": "9.5.0",
3
+ "version": "9.6.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The community edition of MUI X Charts components.",
6
6
  "license": "MIT",
@@ -28,15 +28,15 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.29.7",
31
- "@mui/utils": "9.0.1",
31
+ "@mui/utils": "^9.0.1",
32
32
  "bezier-easing": "^3.0.0",
33
33
  "clsx": "^2.1.1",
34
34
  "prop-types": "^15.8.1",
35
35
  "reselect": "^5.2.0",
36
36
  "use-sync-external-store": "^1.6.0",
37
37
  "@mui/x-charts-vendor": "^9.4.0",
38
- "@mui/x-internal-gestures": "^9.3.0",
39
- "@mui/x-internals": "^9.1.0"
38
+ "@mui/x-internals": "^9.6.0",
39
+ "@mui/x-internal-gestures": "^9.6.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@emotion/react": "^11.9.0",
@@ -705,6 +705,9 @@
705
705
  }
706
706
  }
707
707
  },
708
+ "imports": {
709
+ "#formatErrorMessage": "@mui/x-internals/formatErrorMessage"
710
+ },
708
711
  "main": "./index.js",
709
712
  "types": "./index.d.ts"
710
713
  }
@@ -1,4 +0,0 @@
1
- /** Returns true after hydration is done on the client.
2
- *
3
- * Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
4
- export declare function useIsHydrated(): boolean;
@@ -1,4 +0,0 @@
1
- /** Returns true after hydration is done on the client.
2
- *
3
- * Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
4
- export declare function useIsHydrated(): boolean;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- 'use client';
3
-
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.useIsHydrated = useIsHydrated;
9
- var React = _interopRequireWildcard(require("react"));
10
- /** Returns true after hydration is done on the client.
11
- *
12
- * Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
13
- function useIsHydrated() {
14
- const [isHydrated, setIsHydrated] = React.useState(false);
15
- React.useEffect(() => {
16
- setIsHydrated(true);
17
- }, []);
18
- return isHydrated;
19
- }
@@ -1,14 +0,0 @@
1
- 'use client';
2
-
3
- import * as React from 'react';
4
-
5
- /** Returns true after hydration is done on the client.
6
- *
7
- * Basically a implementation of Option 2 of this gist: https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85#option-2-lazily-show-component-with-uselayouteffect. */
8
- export function useIsHydrated() {
9
- const [isHydrated, setIsHydrated] = React.useState(false);
10
- React.useEffect(() => {
11
- setIsHydrated(true);
12
- }, []);
13
- return isHydrated;
14
- }