@mui/x-data-grid 8.4.0 → 8.5.1

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 (214) hide show
  1. package/CHANGELOG.md +215 -0
  2. package/DataGrid/DataGrid.js +4 -3
  3. package/components/GridColumnHeaders.js +1 -0
  4. package/components/GridFooter.js +1 -0
  5. package/components/GridLoadingOverlay.js +1 -0
  6. package/components/GridNoColumnsOverlay.js +1 -0
  7. package/components/GridNoResultsOverlay.js +2 -1
  8. package/components/GridNoRowsOverlay.js +1 -0
  9. package/components/GridRow.js +3 -2
  10. package/components/GridRowCount.js +1 -0
  11. package/components/GridSelectedRowCount.js +1 -0
  12. package/components/GridShadowScrollArea.js +1 -0
  13. package/components/GridSkeletonLoadingOverlay.js +3 -1
  14. package/components/cell/GridActionsCell.js +3 -3
  15. package/components/cell/GridActionsCellItem.js +1 -0
  16. package/components/cell/GridCell.js +11 -7
  17. package/components/cell/GridEditBooleanCell.js +6 -4
  18. package/components/cell/GridEditDateCell.js +4 -3
  19. package/components/cell/GridEditInputCell.js +5 -3
  20. package/components/cell/GridEditSingleSelectCell.js +2 -2
  21. package/components/cell/GridSkeletonCell.js +6 -5
  22. package/components/columnHeaders/GridBaseColumnHeaders.js +2 -1
  23. package/components/columnHeaders/GridColumnGroupHeader.js +6 -5
  24. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +5 -4
  25. package/components/columnHeaders/GridColumnHeaderItem.js +7 -6
  26. package/components/columnHeaders/GridColumnHeaderSeparator.js +4 -3
  27. package/components/columnHeaders/GridColumnHeaderTitle.js +1 -0
  28. package/components/columnHeaders/GridGenericColumnHeaderItem.js +4 -3
  29. package/components/columnHeaders/GridIconButtonContainer.js +2 -1
  30. package/components/columnSelection/GridCellCheckboxRenderer.js +5 -4
  31. package/components/columnSelection/GridHeaderCheckbox.js +1 -0
  32. package/components/columnsManagement/GridColumnsManagement.js +2 -2
  33. package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  34. package/components/columnsPanel/ColumnsPanelTrigger.js +3 -2
  35. package/components/containers/GridFooterContainer.js +1 -0
  36. package/components/containers/GridOverlay.js +1 -0
  37. package/components/containers/GridRoot.js +7 -4
  38. package/components/containers/GridRootStyles.d.ts +1 -1
  39. package/components/containers/GridRootStyles.js +7 -1
  40. package/components/containers/GridToolbarContainer.js +1 -0
  41. package/components/export/ExportCsv.d.ts +1 -1
  42. package/components/export/ExportCsv.js +3 -2
  43. package/components/export/ExportPrint.d.ts +1 -1
  44. package/components/export/ExportPrint.js +3 -2
  45. package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  46. package/components/filterPanel/FilterPanelTrigger.js +3 -2
  47. package/components/menu/GridMenu.js +6 -4
  48. package/components/menu/columnMenu/GridColumnMenu.js +2 -0
  49. package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -0
  50. package/components/panel/GridPanel.js +3 -2
  51. package/components/panel/GridPanelWrapper.js +2 -1
  52. package/components/panel/filterPanel/GridFilterForm.js +10 -7
  53. package/components/panel/filterPanel/GridFilterInputBoolean.js +5 -4
  54. package/components/panel/filterPanel/GridFilterInputDate.js +2 -2
  55. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +2 -2
  56. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -2
  57. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +3 -3
  58. package/components/panel/filterPanel/GridFilterInputValue.js +2 -2
  59. package/components/panel/filterPanel/GridFilterPanel.js +1 -0
  60. package/components/quickFilter/QuickFilter.d.ts +1 -1
  61. package/components/quickFilter/QuickFilter.js +4 -4
  62. package/components/quickFilter/QuickFilterClear.d.ts +1 -1
  63. package/components/quickFilter/QuickFilterClear.js +3 -2
  64. package/components/quickFilter/QuickFilterControl.d.ts +1 -1
  65. package/components/quickFilter/QuickFilterControl.js +5 -4
  66. package/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
  67. package/components/quickFilter/QuickFilterTrigger.js +5 -4
  68. package/components/toolbar/GridToolbar.js +3 -2
  69. package/components/toolbar/GridToolbarColumnsButton.js +1 -0
  70. package/components/toolbar/GridToolbarDensitySelector.js +6 -4
  71. package/components/toolbar/GridToolbarExport.js +1 -0
  72. package/components/toolbar/GridToolbarExportContainer.js +6 -4
  73. package/components/toolbar/GridToolbarFilterButton.js +8 -5
  74. package/components/toolbarV8/Toolbar.d.ts +1 -1
  75. package/components/toolbarV8/Toolbar.js +3 -2
  76. package/components/toolbarV8/ToolbarButton.d.ts +1 -1
  77. package/components/toolbarV8/ToolbarButton.js +5 -4
  78. package/components/virtualization/GridMainContainer.js +2 -1
  79. package/components/virtualization/GridVirtualScrollbar.js +2 -1
  80. package/components/virtualization/GridVirtualScrollerContent.js +2 -1
  81. package/components/virtualization/GridVirtualScrollerRenderZone.js +2 -1
  82. package/constants/gridClasses.d.ts +4 -0
  83. package/constants/gridClasses.js +5 -3
  84. package/esm/DataGrid/DataGrid.js +4 -3
  85. package/esm/components/GridColumnHeaders.js +1 -0
  86. package/esm/components/GridFooter.js +1 -0
  87. package/esm/components/GridLoadingOverlay.js +1 -0
  88. package/esm/components/GridNoColumnsOverlay.js +1 -0
  89. package/esm/components/GridNoResultsOverlay.js +2 -1
  90. package/esm/components/GridNoRowsOverlay.js +1 -0
  91. package/esm/components/GridRow.js +2 -1
  92. package/esm/components/GridRowCount.js +1 -0
  93. package/esm/components/GridSelectedRowCount.js +1 -0
  94. package/esm/components/GridShadowScrollArea.js +1 -0
  95. package/esm/components/GridSkeletonLoadingOverlay.js +3 -1
  96. package/esm/components/cell/GridActionsCell.js +1 -1
  97. package/esm/components/cell/GridActionsCellItem.js +1 -0
  98. package/esm/components/cell/GridCell.js +5 -1
  99. package/esm/components/cell/GridEditBooleanCell.js +3 -1
  100. package/esm/components/cell/GridEditDateCell.js +2 -1
  101. package/esm/components/cell/GridEditInputCell.js +3 -1
  102. package/esm/components/cell/GridEditSingleSelectCell.js +1 -1
  103. package/esm/components/cell/GridSkeletonCell.js +2 -1
  104. package/esm/components/columnHeaders/GridBaseColumnHeaders.js +2 -1
  105. package/esm/components/columnHeaders/GridColumnGroupHeader.js +2 -1
  106. package/esm/components/columnHeaders/GridColumnHeaderFilterIconButton.js +2 -1
  107. package/esm/components/columnHeaders/GridColumnHeaderItem.js +2 -1
  108. package/esm/components/columnHeaders/GridColumnHeaderSeparator.js +2 -1
  109. package/esm/components/columnHeaders/GridColumnHeaderTitle.js +1 -0
  110. package/esm/components/columnHeaders/GridGenericColumnHeaderItem.js +2 -1
  111. package/esm/components/columnHeaders/GridIconButtonContainer.js +2 -1
  112. package/esm/components/columnSelection/GridCellCheckboxRenderer.js +2 -1
  113. package/esm/components/columnSelection/GridHeaderCheckbox.js +1 -0
  114. package/esm/components/columnsManagement/GridColumnsManagement.js +2 -2
  115. package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  116. package/esm/components/columnsPanel/ColumnsPanelTrigger.js +3 -2
  117. package/esm/components/containers/GridFooterContainer.js +1 -0
  118. package/esm/components/containers/GridOverlay.js +1 -0
  119. package/esm/components/containers/GridRoot.js +4 -1
  120. package/esm/components/containers/GridRootStyles.d.ts +1 -1
  121. package/esm/components/containers/GridRootStyles.js +7 -1
  122. package/esm/components/containers/GridToolbarContainer.js +1 -0
  123. package/esm/components/export/ExportCsv.d.ts +1 -1
  124. package/esm/components/export/ExportCsv.js +3 -2
  125. package/esm/components/export/ExportPrint.d.ts +1 -1
  126. package/esm/components/export/ExportPrint.js +3 -2
  127. package/esm/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  128. package/esm/components/filterPanel/FilterPanelTrigger.js +3 -2
  129. package/esm/components/menu/GridMenu.js +3 -1
  130. package/esm/components/menu/columnMenu/GridColumnMenu.js +2 -0
  131. package/esm/components/menu/columnMenu/GridColumnMenuContainer.js +1 -0
  132. package/esm/components/panel/GridPanel.js +2 -1
  133. package/esm/components/panel/GridPanelWrapper.js +1 -0
  134. package/esm/components/panel/filterPanel/GridFilterForm.js +4 -1
  135. package/esm/components/panel/filterPanel/GridFilterInputBoolean.js +2 -1
  136. package/esm/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  137. package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  138. package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  139. package/esm/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  140. package/esm/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  141. package/esm/components/panel/filterPanel/GridFilterPanel.js +1 -0
  142. package/esm/components/quickFilter/QuickFilter.d.ts +1 -1
  143. package/esm/components/quickFilter/QuickFilter.js +3 -3
  144. package/esm/components/quickFilter/QuickFilterClear.d.ts +1 -1
  145. package/esm/components/quickFilter/QuickFilterClear.js +3 -2
  146. package/esm/components/quickFilter/QuickFilterControl.d.ts +1 -1
  147. package/esm/components/quickFilter/QuickFilterControl.js +4 -3
  148. package/esm/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
  149. package/esm/components/quickFilter/QuickFilterTrigger.js +4 -3
  150. package/esm/components/toolbar/GridToolbar.js +1 -0
  151. package/esm/components/toolbar/GridToolbarColumnsButton.js +1 -0
  152. package/esm/components/toolbar/GridToolbarDensitySelector.js +3 -1
  153. package/esm/components/toolbar/GridToolbarExport.js +1 -0
  154. package/esm/components/toolbar/GridToolbarExportContainer.js +3 -1
  155. package/esm/components/toolbar/GridToolbarFilterButton.js +4 -1
  156. package/esm/components/toolbarV8/Toolbar.d.ts +1 -1
  157. package/esm/components/toolbarV8/Toolbar.js +3 -2
  158. package/esm/components/toolbarV8/ToolbarButton.d.ts +1 -1
  159. package/esm/components/toolbarV8/ToolbarButton.js +4 -3
  160. package/esm/components/virtualization/GridMainContainer.js +2 -1
  161. package/esm/components/virtualization/GridVirtualScrollbar.js +1 -0
  162. package/esm/components/virtualization/GridVirtualScrollerContent.js +1 -0
  163. package/esm/components/virtualization/GridVirtualScrollerRenderZone.js +1 -0
  164. package/esm/constants/gridClasses.d.ts +4 -0
  165. package/esm/constants/gridClasses.js +3 -2
  166. package/esm/hooks/core/pipeProcessing/useGridPipeProcessing.js +3 -3
  167. package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
  168. package/esm/hooks/features/columns/gridColumnsSelector.d.ts +9 -0
  169. package/esm/hooks/features/columns/gridColumnsSelector.js +9 -2
  170. package/esm/hooks/features/dataSource/useGridDataSourceBase.js +1 -1
  171. package/esm/hooks/features/export/useGridPrintExport.js +1 -1
  172. package/esm/hooks/features/filter/useGridFilter.js +1 -1
  173. package/esm/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +9 -5
  174. package/esm/hooks/features/rows/useGridRowsMeta.js +5 -2
  175. package/esm/hooks/features/sorting/useGridSorting.d.ts +1 -1
  176. package/esm/hooks/features/sorting/useGridSorting.js +5 -5
  177. package/esm/hooks/utils/index.d.ts +1 -1
  178. package/esm/hooks/utils/useRunOnce.js +1 -1
  179. package/esm/index.js +1 -1
  180. package/esm/internals/index.d.ts +0 -1
  181. package/esm/internals/index.js +0 -1
  182. package/esm/locales/arSD.js +5 -6
  183. package/esm/locales/ptPT.js +4 -4
  184. package/esm/material/index.js +14 -0
  185. package/esm/models/props/DataGridProps.d.ts +7 -0
  186. package/esm/utils/composeGridClasses.d.ts +1 -1
  187. package/esm/utils/composeGridClasses.js +1 -1
  188. package/hooks/core/pipeProcessing/useGridPipeProcessing.js +3 -3
  189. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
  190. package/hooks/features/columns/gridColumnsSelector.d.ts +9 -0
  191. package/hooks/features/columns/gridColumnsSelector.js +10 -3
  192. package/hooks/features/dataSource/useGridDataSourceBase.js +12 -12
  193. package/hooks/features/export/useGridPrintExport.js +5 -5
  194. package/hooks/features/filter/useGridFilter.js +2 -2
  195. package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +9 -5
  196. package/hooks/features/rows/useGridRowsMeta.js +8 -5
  197. package/hooks/features/sorting/useGridSorting.d.ts +1 -1
  198. package/hooks/features/sorting/useGridSorting.js +6 -6
  199. package/hooks/utils/index.d.ts +1 -1
  200. package/hooks/utils/useRunOnce.js +3 -2
  201. package/index.js +1 -1
  202. package/internals/index.d.ts +0 -1
  203. package/internals/index.js +0 -8
  204. package/locales/arSD.js +5 -6
  205. package/locales/ptPT.js +4 -4
  206. package/material/index.js +14 -0
  207. package/models/props/DataGridProps.d.ts +7 -0
  208. package/package.json +4 -4
  209. package/utils/composeGridClasses.d.ts +1 -1
  210. package/utils/composeGridClasses.js +3 -2
  211. package/esm/hooks/utils/useGridComponentRenderer.d.ts +0 -12
  212. package/esm/hooks/utils/useGridComponentRenderer.js +0 -36
  213. package/hooks/utils/useGridComponentRenderer.d.ts +0 -12
  214. package/hooks/utils/useGridComponentRenderer.js +0 -44
@@ -4,9 +4,9 @@ const _excluded = ["render", "options", "onClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { forwardRef } from '@mui/x-internals/forwardRef';
7
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
7
8
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
8
9
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
9
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  /**
12
12
  * A button that triggers a CSV export.
@@ -33,7 +33,7 @@ const ExportCsv = forwardRef(function ExportCsv(props, ref) {
33
33
  apiRef.current.exportDataAsCsv(options);
34
34
  onClick?.(event);
35
35
  };
36
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
36
+ const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
37
37
  onClick: handleClick
38
38
  }, other, {
39
39
  ref
@@ -42,6 +42,7 @@ const ExportCsv = forwardRef(function ExportCsv(props, ref) {
42
42
  children: element
43
43
  });
44
44
  });
45
+ if (process.env.NODE_ENV !== "production") ExportCsv.displayName = "ExportCsv";
45
46
  process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
46
47
  // ----------------------------- Warning --------------------------------
47
48
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
3
  import { GridPrintExportOptions } from "../../models/gridExport.js";
4
4
  import type { GridSlotProps } from "../../models/index.js";
5
5
  export type ExportPrintProps = GridSlotProps['baseButton'] & {
@@ -4,9 +4,9 @@ const _excluded = ["render", "options", "onClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { forwardRef } from '@mui/x-internals/forwardRef';
7
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
7
8
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
8
9
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
9
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  /**
12
12
  * A button that triggers a print export.
@@ -33,7 +33,7 @@ const ExportPrint = forwardRef(function ExportPrint(props, ref) {
33
33
  apiRef.current.exportDataAsPrint(options);
34
34
  onClick?.(event);
35
35
  };
36
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
36
+ const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
37
37
  onClick: handleClick
38
38
  }, other, {
39
39
  ref
@@ -42,6 +42,7 @@ const ExportPrint = forwardRef(function ExportPrint(props, ref) {
42
42
  children: element
43
43
  });
44
44
  });
45
+ if (process.env.NODE_ENV !== "production") ExportPrint.displayName = "ExportPrint";
45
46
  process.env.NODE_ENV !== "production" ? ExportPrint.propTypes = {
46
47
  // ----------------------------- Warning --------------------------------
47
48
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
3
  import type { GridSlotProps } from "../../models/index.js";
4
4
  export interface FilterPanelState {
5
5
  /**
@@ -5,12 +5,12 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import useId from '@mui/utils/useId';
7
7
  import { forwardRef } from '@mui/x-internals/forwardRef';
8
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
8
9
  import useForkRef from '@mui/utils/useForkRef';
9
10
  import { useGridPanelContext } from "../panel/GridPanelContext.js";
10
11
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
11
12
  import { gridFilterActiveItemsSelector, gridPreferencePanelStateSelector, GridPreferencePanelsValue, useGridSelector } from "../../hooks/index.js";
12
13
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
13
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  /**
16
16
  * A button that opens and closes the filter panel.
@@ -63,7 +63,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger(props, ref) {
63
63
  }
64
64
  onPointerUp?.(event);
65
65
  };
66
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
66
+ const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
67
67
  id: buttonId,
68
68
  'aria-haspopup': 'true',
69
69
  'aria-expanded': open ? 'true' : undefined,
@@ -78,6 +78,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger(props, ref) {
78
78
  children: element
79
79
  });
80
80
  });
81
+ if (process.env.NODE_ENV !== "production") FilterPanelTrigger.displayName = "FilterPanelTrigger";
81
82
  process.env.NODE_ENV !== "production" ? FilterPanelTrigger.propTypes = {
82
83
  // ----------------------------- Warning --------------------------------
83
84
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -4,7 +4,9 @@ const _excluded = ["open", "target", "onClose", "children", "position", "classNa
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
- import { unstable_composeClasses as composeClasses, unstable_useEnhancedEffect as useEnhancedEffect, HTMLElementType } from '@mui/utils';
7
+ import composeClasses from '@mui/utils/composeClasses';
8
+ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
9
+ import HTMLElementType from '@mui/utils/HTMLElementType';
8
10
  import { styled } from '@mui/material/styles';
9
11
  import { vars } from "../../constants/cssVariables.js";
10
12
  import { useCSSVariablesClass } from "../../utils/css/context.js";
@@ -45,6 +45,7 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu(props, r
45
45
  children: orderedSlots.map(([Component, otherProps], index) => /*#__PURE__*/_jsx(Component, _extends({}, otherProps), index))
46
46
  }));
47
47
  });
48
+ if (process.env.NODE_ENV !== "production") GridGenericColumnMenu.displayName = "GridGenericColumnMenu";
48
49
  process.env.NODE_ENV !== "production" ? GridGenericColumnMenu.propTypes = {
49
50
  // ----------------------------- Warning --------------------------------
50
51
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -84,6 +85,7 @@ const GridColumnMenu = forwardRef(function GridColumnMenu(props, ref) {
84
85
  defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
85
86
  }));
86
87
  });
88
+ if (process.env.NODE_ENV !== "production") GridColumnMenu.displayName = "GridColumnMenu";
87
89
  process.env.NODE_ENV !== "production" ? GridColumnMenu.propTypes = {
88
90
  // ----------------------------- Warning --------------------------------
89
91
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -45,6 +45,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer(prop
45
45
  children: children
46
46
  }));
47
47
  });
48
+ if (process.env.NODE_ENV !== "production") GridColumnMenuContainer.displayName = "GridColumnMenuContainer";
48
49
  process.env.NODE_ENV !== "production" ? GridColumnMenuContainer.propTypes = {
49
50
  // ----------------------------- Warning --------------------------------
50
51
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { styled } from '@mui/material/styles';
8
- import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
8
+ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
9
9
  import useEventCallback from '@mui/utils/useEventCallback';
10
10
  import { forwardRef } from '@mui/x-internals/forwardRef';
11
11
  import { vars } from "../../constants/cssVariables.js";
@@ -87,6 +87,7 @@ const GridPanel = forwardRef((props, ref) => {
87
87
  })
88
88
  }));
89
89
  });
90
+ if (process.env.NODE_ENV !== "production") GridPanel.displayName = "GridPanel";
90
91
  process.env.NODE_ENV !== "production" ? GridPanel.propTypes = {
91
92
  // ----------------------------- Warning --------------------------------
92
93
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -44,4 +44,5 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper(props, ref) {
44
44
  ref: ref
45
45
  }));
46
46
  });
47
+ if (process.env.NODE_ENV !== "production") GridPanelWrapper.displayName = "GridPanelWrapper";
47
48
  export { GridPanelWrapper };
@@ -5,7 +5,9 @@ const _excluded = ["item", "hasMultipleFilters", "deleteFilter", "applyFilterCha
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import clsx from 'clsx';
8
- import { unstable_composeClasses as composeClasses, unstable_useId as useId, unstable_capitalize as capitalize } from '@mui/utils';
8
+ import composeClasses from '@mui/utils/composeClasses';
9
+ import useId from '@mui/utils/useId';
10
+ import capitalize from '@mui/utils/capitalize';
9
11
  import { styled } from '@mui/material/styles';
10
12
  import { forwardRef } from '@mui/x-internals/forwardRef';
11
13
  import { vars } from "../../../constants/cssVariables.js";
@@ -359,6 +361,7 @@ const GridFilterForm = forwardRef(function GridFilterForm(props, ref) {
359
361
  }))]
360
362
  }));
361
363
  });
364
+ if (process.env.NODE_ENV !== "production") GridFilterForm.displayName = "GridFilterForm";
362
365
  process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes = {
363
366
  // ----------------------------- Warning --------------------------------
364
367
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -3,7 +3,8 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { refType, unstable_useId as useId } from '@mui/utils';
6
+ import refType from '@mui/utils/refType';
7
+ import useId from '@mui/utils/useId';
7
8
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
8
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
10
  function GridFilterInputBoolean(props) {
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_useId as useId } from '@mui/utils';
6
+ import useId from '@mui/utils/useId';
7
7
  import { useTimeout } from "../../../hooks/utils/useTimeout.js";
8
8
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_useId as useId } from '@mui/utils';
6
+ import useId from '@mui/utils/useId';
7
7
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
8
8
  import { getValueOptions, isSingleSelectColDef } from "./filterPanelUtils.js";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { unstable_useId as useId } from '@mui/utils';
4
+ import useId from '@mui/utils/useId';
5
5
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  function GridFilterInputMultipleValue(props) {
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_useId as useId } from '@mui/utils';
6
+ import useId from '@mui/utils/useId';
7
7
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
8
8
  import { getValueFromValueOptions, getValueOptions, isSingleSelectColDef } from "./filterPanelUtils.js";
9
9
  import { createElement as _createElement } from "react";
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "disabled", "isFilterActive", "slotProps", "clearButton", "headerFilterMenu"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_useId as useId } from '@mui/utils';
6
+ import useId from '@mui/utils/useId';
7
7
  import { useTimeout } from "../../../hooks/utils/useTimeout.js";
8
8
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -184,6 +184,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel(props, ref) {
184
184
  }) : null]
185
185
  }));
186
186
  });
187
+ if (process.env.NODE_ENV !== "production") GridFilterPanel.displayName = "GridFilterPanel";
187
188
  process.env.NODE_ENV !== "production" ? GridFilterPanel.propTypes = {
188
189
  // ----------------------------- Warning --------------------------------
189
190
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
2
3
  import { QuickFilterState } from "./QuickFilterContext.js";
3
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
4
4
  import type { GridFilterModel } from "../../models/index.js";
5
5
  export type QuickFilterProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'className'> & {
6
6
  /**
@@ -3,12 +3,12 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["render", "className", "parser", "formatter", "debounceMs", "defaultExpanded", "expanded", "onExpandedChange"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_debounce as debounce } from '@mui/utils';
6
+ import debounce from '@mui/utils/debounce';
7
7
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
8
8
  import useId from '@mui/utils/useId';
9
9
  import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
10
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
10
11
  import { QuickFilterContext } from "./QuickFilterContext.js";
11
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
12
12
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
13
13
  import { useGridSelector } from "../../hooks/utils/useGridSelector.js";
14
14
  import { gridQuickFilterValuesSelector } from "../../hooks/features/filter/index.js";
@@ -129,7 +129,7 @@ function QuickFilter(props) {
129
129
  ref.current.style.setProperty('--trigger-width', `${triggerRef.current?.offsetWidth}px`);
130
130
  }
131
131
  }, []);
132
- const element = useGridComponentRenderer('div', render, _extends({
132
+ const element = useComponentRenderer('div', render, _extends({
133
133
  className: resolvedClassName
134
134
  }, other, {
135
135
  ref
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
3
  import type { GridSlotProps } from "../../models/index.js";
4
4
  import { QuickFilterState } from "./QuickFilterContext.js";
5
5
  export type QuickFilterClearProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
@@ -4,8 +4,8 @@ const _excluded = ["render", "className", "onClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { forwardRef } from '@mui/x-internals/forwardRef';
7
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
7
8
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
8
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
9
9
  import { useQuickFilterContext } from "./QuickFilterContext.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  /**
@@ -37,7 +37,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear(props, ref) {
37
37
  clearValue();
38
38
  onClick?.(event);
39
39
  };
40
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {
40
+ const element = useComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {
41
41
  className: resolvedClassName,
42
42
  tabIndex: -1
43
43
  }, other, {
@@ -48,6 +48,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear(props, ref) {
48
48
  children: element
49
49
  });
50
50
  });
51
+ if (process.env.NODE_ENV !== "production") QuickFilterClear.displayName = "QuickFilterClear";
51
52
  process.env.NODE_ENV !== "production" ? QuickFilterClear.propTypes = {
52
53
  // ----------------------------- Warning --------------------------------
53
54
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
3
  import type { GridSlotProps } from "../../models/index.js";
4
4
  import { QuickFilterState } from "./QuickFilterContext.js";
5
5
  export type QuickFilterControlProps = Omit<GridSlotProps['baseTextField'], 'className'> & {
@@ -3,10 +3,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["render", "className", "slotProps", "onKeyDown", "onChange"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_useForkRef as useForkRef } from '@mui/utils';
6
+ import useForkRef from '@mui/utils/useForkRef';
7
7
  import { forwardRef } from '@mui/x-internals/forwardRef';
8
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
8
9
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
9
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
10
10
  import { useQuickFilterContext } from "./QuickFilterContext.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
@@ -64,7 +64,7 @@ const QuickFilterControl = forwardRef(function QuickFilterControl(props, ref) {
64
64
  onValueChange(event);
65
65
  onChange?.(event);
66
66
  };
67
- const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends({}, rootProps.slotProps?.baseTextField, {
67
+ const element = useComponentRenderer(rootProps.slots.baseTextField, render, _extends({}, rootProps.slotProps?.baseTextField, {
68
68
  slotProps: _extends({
69
69
  htmlInput: _extends({
70
70
  role: 'searchbox',
@@ -85,6 +85,7 @@ const QuickFilterControl = forwardRef(function QuickFilterControl(props, ref) {
85
85
  children: element
86
86
  });
87
87
  });
88
+ if (process.env.NODE_ENV !== "production") QuickFilterControl.displayName = "QuickFilterControl";
88
89
  process.env.NODE_ENV !== "production" ? QuickFilterControl.propTypes = {
89
90
  // ----------------------------- Warning --------------------------------
90
91
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
3
  import type { GridSlotProps } from "../../models/index.js";
4
4
  import { QuickFilterState } from "./QuickFilterContext.js";
5
5
  export type QuickFilterTriggerProps = Omit<GridSlotProps['baseButton'], 'className'> & {
@@ -4,9 +4,9 @@ const _excluded = ["render", "className", "onClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { forwardRef } from '@mui/x-internals/forwardRef';
7
- import { unstable_useForkRef as useForkRef } from '@mui/utils';
7
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
8
+ import useForkRef from '@mui/utils/useForkRef';
8
9
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
9
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
10
10
  import { useQuickFilterContext } from "./QuickFilterContext.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
@@ -41,7 +41,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger(props, ref) {
41
41
  onExpandedChange(!state.expanded);
42
42
  onClick?.(event);
43
43
  };
44
- const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
44
+ const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
45
45
  className: resolvedClassName,
46
46
  'aria-controls': controlId,
47
47
  'aria-expanded': state.expanded
@@ -53,6 +53,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger(props, ref) {
53
53
  children: element
54
54
  });
55
55
  });
56
+ if (process.env.NODE_ENV !== "production") QuickFilterTrigger.displayName = "QuickFilterTrigger";
56
57
  process.env.NODE_ENV !== "production" ? QuickFilterTrigger.propTypes = {
57
58
  // ----------------------------- Warning --------------------------------
58
59
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -49,6 +49,7 @@ const GridToolbar = forwardRef(function GridToolbar(props, ref) {
49
49
  }), showQuickFilter && /*#__PURE__*/_jsx(GridToolbarQuickFilter, _extends({}, quickFilterProps))]
50
50
  }));
51
51
  });
52
+ if (process.env.NODE_ENV !== "production") GridToolbar.displayName = "GridToolbar";
52
53
  process.env.NODE_ENV !== "production" ? GridToolbar.propTypes = {
53
54
  // ----------------------------- Warning --------------------------------
54
55
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -68,6 +68,7 @@ const GridToolbarColumnsButton = forwardRef(function GridToolbarColumnsButton(pr
68
68
  }))
69
69
  }));
70
70
  });
71
+ if (process.env.NODE_ENV !== "production") GridToolbarColumnsButton.displayName = "GridToolbarColumnsButton";
71
72
  process.env.NODE_ENV !== "production" ? GridToolbarColumnsButton.propTypes = {
72
73
  // ----------------------------- Warning --------------------------------
73
74
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { unstable_useId as useId, unstable_useForkRef as useForkRef } from '@mui/utils';
4
+ import useId from '@mui/utils/useId';
5
+ import useForkRef from '@mui/utils/useForkRef';
5
6
  import { forwardRef } from '@mui/x-internals/forwardRef';
6
7
  import { gridDensitySelector } from "../../hooks/features/density/densitySelector.js";
7
8
  import { isHideMenuKey } from "../../utils/keyboardUtils.js";
@@ -115,6 +116,7 @@ const GridToolbarDensitySelector = forwardRef(function GridToolbarDensitySelecto
115
116
  })]
116
117
  });
117
118
  });
119
+ if (process.env.NODE_ENV !== "production") GridToolbarDensitySelector.displayName = "GridToolbarDensitySelector";
118
120
  process.env.NODE_ENV !== "production" ? GridToolbarDensitySelector.propTypes = {
119
121
  // ----------------------------- Warning --------------------------------
120
122
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -112,6 +112,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport(props, ref) {
112
112
  }))
113
113
  }));
114
114
  });
115
+ if (process.env.NODE_ENV !== "production") GridToolbarExport.displayName = "GridToolbarExport";
115
116
  process.env.NODE_ENV !== "production" ? GridToolbarExport.propTypes = {
116
117
  // ----------------------------- Warning --------------------------------
117
118
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { unstable_useId as useId, unstable_useForkRef as useForkRef } from '@mui/utils';
4
+ import useId from '@mui/utils/useId';
5
+ import useForkRef from '@mui/utils/useForkRef';
5
6
  import { forwardRef } from '@mui/x-internals/forwardRef';
6
7
  import { isHideMenuKey } from "../../utils/keyboardUtils.js";
7
8
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
@@ -80,6 +81,7 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
80
81
  })]
81
82
  });
82
83
  });
84
+ if (process.env.NODE_ENV !== "production") GridToolbarExportContainer.displayName = "GridToolbarExportContainer";
83
85
  process.env.NODE_ENV !== "production" ? GridToolbarExportContainer.propTypes = {
84
86
  // ----------------------------- Warning --------------------------------
85
87
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -2,7 +2,9 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { styled } from '@mui/material/styles';
5
- import { unstable_composeClasses as composeClasses, unstable_capitalize as capitalize, unstable_useId as useId } from '@mui/utils';
5
+ import composeClasses from '@mui/utils/composeClasses';
6
+ import capitalize from '@mui/utils/capitalize';
7
+ import useId from '@mui/utils/useId';
6
8
  import useForkRef from '@mui/utils/useForkRef';
7
9
  import { forwardRef } from '@mui/x-internals/forwardRef';
8
10
  import { vars } from "../../constants/cssVariables.js";
@@ -130,6 +132,7 @@ const GridToolbarFilterButton = forwardRef(function GridToolbarFilterButton(prop
130
132
  }))
131
133
  }));
132
134
  });
135
+ if (process.env.NODE_ENV !== "production") GridToolbarFilterButton.displayName = "GridToolbarFilterButton";
133
136
  process.env.NODE_ENV !== "production" ? GridToolbarFilterButton.propTypes = {
134
137
  // ----------------------------- Warning --------------------------------
135
138
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
3
  export type ToolbarProps = React.HTMLAttributes<HTMLDivElement> & {
4
4
  /**
5
5
  * A function to customize rendering of the component.
@@ -7,9 +7,9 @@ import { styled } from '@mui/system';
7
7
  import composeClasses from '@mui/utils/composeClasses';
8
8
  import clsx from 'clsx';
9
9
  import { forwardRef } from '@mui/x-internals/forwardRef';
10
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
10
11
  import { vars } from "../../constants/cssVariables.js";
11
12
  import { getDataGridUtilityClass } from "../../constants/gridClasses.js";
12
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
13
13
  import { ToolbarContext } from "./ToolbarContext.js";
14
14
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
15
15
  import { sortByDocumentPosition } from "./utils.js";
@@ -179,7 +179,7 @@ const Toolbar = forwardRef(function Toolbar(props, ref) {
179
179
  onItemFocus,
180
180
  onItemDisabled
181
181
  }), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
182
- const element = useGridComponentRenderer(ToolbarRoot, render, _extends({
182
+ const element = useComponentRenderer(ToolbarRoot, render, _extends({
183
183
  role: 'toolbar',
184
184
  'aria-orientation': 'horizontal',
185
185
  'aria-label': rootProps.label || undefined,
@@ -192,6 +192,7 @@ const Toolbar = forwardRef(function Toolbar(props, ref) {
192
192
  children: element
193
193
  });
194
194
  });
195
+ if (process.env.NODE_ENV !== "production") Toolbar.displayName = "Toolbar";
195
196
  process.env.NODE_ENV !== "production" ? Toolbar.propTypes = {
196
197
  // ----------------------------- Warning --------------------------------
197
198
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
2
+ import { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
3
  import type { GridSlotProps } from "../../models/index.js";
4
4
  export type ToolbarButtonProps = GridSlotProps['baseIconButton'] & {
5
5
  /**
@@ -3,11 +3,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["render", "onKeyDown", "onFocus", "disabled", "aria-disabled"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_useForkRef as useForkRef } from '@mui/utils';
6
+ import useForkRef from '@mui/utils/useForkRef';
7
7
  import useId from '@mui/utils/useId';
8
8
  import { forwardRef } from '@mui/x-internals/forwardRef';
9
+ import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
9
10
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
10
- import { useGridComponentRenderer } from "../../hooks/utils/useGridComponentRenderer.js";
11
11
  import { useToolbarContext } from "./ToolbarContext.js";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  /**
@@ -70,7 +70,7 @@ const ToolbarButton = forwardRef(function ToolbarButton(props, ref) {
70
70
  }
71
71
  previousAriaDisabled.current = ariaDisabled;
72
72
  }, [ariaDisabled, id, onItemDisabled]);
73
- const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {
73
+ const element = useComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {
74
74
  tabIndex: focusableItemId === id ? 0 : -1
75
75
  }, other, {
76
76
  disabled,
@@ -83,6 +83,7 @@ const ToolbarButton = forwardRef(function ToolbarButton(props, ref) {
83
83
  children: element
84
84
  });
85
85
  });
86
+ if (process.env.NODE_ENV !== "production") ToolbarButton.displayName = "ToolbarButton";
86
87
  process.env.NODE_ENV !== "production" ? ToolbarButton.propTypes = {
87
88
  // ----------------------------- Warning --------------------------------
88
89
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -48,4 +48,5 @@ export const GridMainContainer = forwardRef((props, ref) => {
48
48
  "data-id": "gridPanelAnchor"
49
49
  }), props.children]
50
50
  }));
51
- });
51
+ });
52
+ if (process.env.NODE_ENV !== "production") GridMainContainer.displayName = "GridMainContainer";
@@ -145,4 +145,5 @@ const GridVirtualScrollbar = forwardRef(function GridVirtualScrollbar(props, ref
145
145
  })
146
146
  });
147
147
  });
148
+ if (process.env.NODE_ENV !== "production") GridVirtualScrollbar.displayName = "GridVirtualScrollbar";
148
149
  export { GridVirtualScrollbar };
@@ -40,4 +40,5 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
40
40
  ref: ref
41
41
  }));
42
42
  });
43
+ if (process.env.NODE_ENV !== "production") GridVirtualScrollerContent.displayName = "GridVirtualScrollerContent";
43
44
  export { GridVirtualScrollerContent };
@@ -54,4 +54,5 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
54
54
  ref: ref
55
55
  }));
56
56
  });
57
+ if (process.env.NODE_ENV !== "production") GridVirtualScrollerRenderZone.displayName = "GridVirtualScrollerRenderZone";
57
58
  export { GridVirtualScrollerRenderZone };
@@ -619,6 +619,10 @@ export interface GridClasses {
619
619
  * Styles applied to the root element of the row reorder cell when dragging is allowed
620
620
  */
621
621
  'rowReorderCell--draggable': string;
622
+ /**
623
+ * Styles applied to the row reorder icon element.
624
+ */
625
+ rowReorderIcon: string;
622
626
  /**
623
627
  * Styles applied to the skeleton row element.
624
628
  */