@mui/x-data-grid 9.13.0 → 9.15.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 (292) hide show
  1. package/CHANGELOG.md +325 -0
  2. package/DataGrid/DataGrid.js +8 -0
  3. package/DataGrid/DataGrid.mjs +9 -1
  4. package/DataGrid/useDataGridComponent.js +2 -2
  5. package/DataGrid/useDataGridComponent.mjs +2 -2
  6. package/DataGrid/useDataGridProps.mjs +1 -1
  7. package/colDef/gridActionsColDef.mjs +1 -1
  8. package/colDef/gridBooleanColDef.mjs +1 -1
  9. package/colDef/gridCheckboxSelectionColDef.mjs +1 -1
  10. package/colDef/gridDateColDef.mjs +1 -1
  11. package/colDef/gridDefaultColumnTypes.mjs +1 -1
  12. package/colDef/gridLongTextColDef.mjs +1 -1
  13. package/colDef/gridNumericColDef.mjs +1 -1
  14. package/colDef/gridSingleSelectColDef.mjs +1 -1
  15. package/components/GridColumnHeaders.mjs +2 -2
  16. package/components/GridColumnSortButton.mjs +2 -2
  17. package/components/GridColumnUnsortedIcon.mjs +2 -2
  18. package/components/GridFooter.mjs +1 -1
  19. package/components/GridHeader.mjs +1 -1
  20. package/components/GridHeaders.mjs +1 -1
  21. package/components/GridLoadingOverlay.mjs +2 -2
  22. package/components/GridNoColumnsOverlay.mjs +1 -1
  23. package/components/GridNoResultsOverlay.mjs +1 -1
  24. package/components/GridNoRowsOverlay.mjs +1 -1
  25. package/components/GridPagination.js +9 -1
  26. package/components/GridPagination.mjs +10 -2
  27. package/components/GridRow.mjs +2 -2
  28. package/components/GridRowCount.mjs +2 -2
  29. package/components/GridRowDragAndDropOverlay.mjs +1 -1
  30. package/components/GridScrollArea.js +20 -7
  31. package/components/GridScrollArea.mjs +22 -9
  32. package/components/GridSelectedRowCount.mjs +2 -2
  33. package/components/GridShadowScrollArea.mjs +2 -2
  34. package/components/GridSkeletonLoadingOverlay.mjs +2 -2
  35. package/components/base/GridFooterPlaceholder.mjs +1 -1
  36. package/components/base/GridOverlays.js +6 -5
  37. package/components/base/GridOverlays.mjs +7 -6
  38. package/components/cell/GridActionsCell.js +55 -52
  39. package/components/cell/GridActionsCell.mjs +58 -55
  40. package/components/cell/GridActionsCellItem.d.mts +20 -6
  41. package/components/cell/GridActionsCellItem.d.ts +20 -6
  42. package/components/cell/GridActionsCellItem.js +30 -8
  43. package/components/cell/GridActionsCellItem.mjs +32 -10
  44. package/components/cell/GridBooleanCell.mjs +2 -2
  45. package/components/cell/GridCell.js +9 -1
  46. package/components/cell/GridCell.mjs +11 -3
  47. package/components/cell/GridEditBooleanCell.mjs +2 -2
  48. package/components/cell/GridEditDateCell.mjs +2 -2
  49. package/components/cell/GridEditInputCell.mjs +2 -2
  50. package/components/cell/GridEditLongTextCell.mjs +1 -1
  51. package/components/cell/GridEditSingleSelectCell.mjs +2 -2
  52. package/components/cell/GridFooterCell.mjs +2 -2
  53. package/components/cell/GridLongTextCell.mjs +1 -1
  54. package/components/cell/GridSkeletonCell.mjs +2 -2
  55. package/components/columnHeaders/ColumnHeaderMenuIcon.mjs +1 -1
  56. package/components/columnHeaders/GridBaseColumnHeaders.mjs +2 -2
  57. package/components/columnHeaders/GridColumnGroupHeader.mjs +1 -1
  58. package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +1 -1
  59. package/components/columnHeaders/GridColumnHeaderItem.mjs +1 -1
  60. package/components/columnHeaders/GridColumnHeaderSeparator.d.mts +1 -1
  61. package/components/columnHeaders/GridColumnHeaderSeparator.d.ts +1 -1
  62. package/components/columnHeaders/GridColumnHeaderSeparator.mjs +2 -2
  63. package/components/columnHeaders/GridColumnHeaderSortIcon.js +17 -0
  64. package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +18 -1
  65. package/components/columnHeaders/GridColumnHeaderTitle.mjs +2 -2
  66. package/components/columnHeaders/GridGenericColumnHeaderItem.mjs +2 -2
  67. package/components/columnHeaders/GridIconButtonContainer.mjs +2 -2
  68. package/components/columnSelection/GridCellCheckboxRenderer.mjs +2 -2
  69. package/components/columnSelection/GridHeaderCheckbox.mjs +2 -2
  70. package/components/columnSelection/GridRowCheckbox.js +1 -3
  71. package/components/columnSelection/GridRowCheckbox.mjs +3 -5
  72. package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
  73. package/components/columnsPanel/ColumnsPanelTrigger.mjs +2 -2
  74. package/components/containers/GridFooterContainer.mjs +2 -2
  75. package/components/containers/GridOverlay.mjs +2 -2
  76. package/components/containers/GridRoot.mjs +2 -2
  77. package/components/containers/GridRootStyles.js +22 -10
  78. package/components/containers/GridRootStyles.mjs +22 -10
  79. package/components/containers/GridToolbarContainer.mjs +2 -2
  80. package/components/export/ExportCsv.mjs +2 -2
  81. package/components/export/ExportPrint.js +4 -1
  82. package/components/export/ExportPrint.mjs +6 -3
  83. package/components/filterPanel/FilterPanelTrigger.mjs +2 -2
  84. package/components/menu/GridMenu.mjs +2 -2
  85. package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
  86. package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
  87. package/components/menu/columnMenu/GridColumnMenuContainer.mjs +2 -2
  88. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
  89. package/components/panel/GridColumnsPanel.mjs +1 -1
  90. package/components/panel/GridPanel.mjs +2 -2
  91. package/components/panel/GridPanelContent.mjs +2 -2
  92. package/components/panel/GridPanelContext.mjs +1 -1
  93. package/components/panel/GridPanelFooter.mjs +2 -2
  94. package/components/panel/GridPanelHeader.mjs +2 -2
  95. package/components/panel/GridPanelWrapper.mjs +2 -2
  96. package/components/panel/GridPreferencesPanel.mjs +1 -1
  97. package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
  98. package/components/panel/filterPanel/GridFilterFormBase.mjs +2 -2
  99. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -12
  100. package/components/panel/filterPanel/GridFilterInputBoolean.mjs +3 -14
  101. package/components/panel/filterPanel/GridFilterInputDate.mjs +2 -2
  102. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +2 -2
  103. package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +2 -2
  104. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -12
  105. package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +3 -14
  106. package/components/panel/filterPanel/GridFilterInputValue.mjs +2 -2
  107. package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
  108. package/components/panel/filterPanel/GridFilterPanelBase.mjs +2 -2
  109. package/components/panel/filterPanel/filterPanelUtils.mjs +1 -1
  110. package/components/quickFilter/QuickFilter.js +7 -2
  111. package/components/quickFilter/QuickFilter.mjs +9 -4
  112. package/components/quickFilter/QuickFilterClear.js +17 -0
  113. package/components/quickFilter/QuickFilterClear.mjs +19 -2
  114. package/components/quickFilter/QuickFilterControl.mjs +2 -2
  115. package/components/quickFilter/QuickFilterTrigger.mjs +2 -2
  116. package/components/toolbar/GridToolbar.mjs +2 -2
  117. package/components/toolbar/GridToolbarColumnsButton.mjs +1 -1
  118. package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
  119. package/components/toolbar/GridToolbarExport.js +4 -1
  120. package/components/toolbar/GridToolbarExport.mjs +6 -3
  121. package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
  122. package/components/toolbar/GridToolbarFilterButton.mjs +1 -1
  123. package/components/toolbar/GridToolbarQuickFilter.mjs +2 -2
  124. package/components/toolbarV8/GridToolbar.mjs +2 -2
  125. package/components/toolbarV8/Toolbar.mjs +2 -2
  126. package/components/toolbarV8/ToolbarButton.js +17 -0
  127. package/components/toolbarV8/ToolbarButton.mjs +19 -2
  128. package/components/virtualization/GridBottomContainer.mjs +1 -1
  129. package/components/virtualization/GridMainContainer.mjs +1 -1
  130. package/components/virtualization/GridTopContainer.mjs +1 -1
  131. package/components/virtualization/GridVirtualScrollbar.js +2 -2
  132. package/components/virtualization/GridVirtualScrollbar.mjs +2 -2
  133. package/components/virtualization/GridVirtualScroller.js +5 -2
  134. package/components/virtualization/GridVirtualScroller.mjs +6 -3
  135. package/components/virtualization/GridVirtualScrollerContent.mjs +1 -1
  136. package/components/virtualization/GridVirtualScrollerRenderZone.mjs +1 -1
  137. package/constants/cssVariables.mjs +1 -1
  138. package/constants/defaultGridSlotsComponents.mjs +1 -1
  139. package/constants/signature.d.mts +1 -1
  140. package/constants/signature.d.ts +1 -1
  141. package/hooks/core/pipeProcessing/useGridPipeProcessing.mjs +2 -2
  142. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +2 -2
  143. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.mjs +2 -2
  144. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +2 -2
  145. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.mjs +2 -2
  146. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.mts +1 -1
  147. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +1 -1
  148. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +2 -2
  149. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +2 -2
  150. package/hooks/core/strategyProcessing/useGridStrategyProcessing.mjs +2 -2
  151. package/hooks/core/useGridApiInitialization.js +1 -1
  152. package/hooks/core/useGridApiInitialization.mjs +1 -1
  153. package/hooks/core/useGridIsRtl.mjs +1 -1
  154. package/hooks/core/useGridProps.mjs +1 -1
  155. package/hooks/core/useGridStateInitialization.mjs +1 -1
  156. package/hooks/core/useGridVirtualizer.d.mts +2 -2
  157. package/hooks/core/useGridVirtualizer.d.ts +2 -2
  158. package/hooks/core/useGridVirtualizer.js +6 -6
  159. package/hooks/core/useGridVirtualizer.mjs +4 -4
  160. package/hooks/features/columnGrouping/gridColumnGroupsUtils.mjs +2 -2
  161. package/hooks/features/columnGrouping/useGridColumnGrouping.mjs +1 -1
  162. package/hooks/features/columnHeaders/useGridColumnHeaders.mjs +1 -1
  163. package/hooks/features/columnMenu/getColumnMenuItemKeys.mjs +1 -1
  164. package/hooks/features/columnMenu/useGridColumnMenu.mjs +1 -1
  165. package/hooks/features/columnMenu/useGridColumnMenuSlots.mjs +2 -2
  166. package/hooks/features/columnResize/useGridColumnResize.js +4 -1
  167. package/hooks/features/columnResize/useGridColumnResize.mjs +5 -2
  168. package/hooks/features/columns/gridColumnsInterfaces.d.mts +1 -1
  169. package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
  170. package/hooks/features/columns/gridColumnsUtils.d.mts +1 -1
  171. package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  172. package/hooks/features/columns/gridColumnsUtils.mjs +1 -1
  173. package/hooks/features/columns/useGridColumns.js +1 -1
  174. package/hooks/features/columns/useGridColumns.mjs +2 -2
  175. package/hooks/features/dataSource/cache.js +1 -1
  176. package/hooks/features/dataSource/cache.mjs +1 -1
  177. package/hooks/features/dataSource/useGridDataSourceBase.js +14 -29
  178. package/hooks/features/dataSource/useGridDataSourceBase.mjs +17 -32
  179. package/hooks/features/dataSource/useGridDataSourcePolling.d.mts +29 -0
  180. package/hooks/features/dataSource/useGridDataSourcePolling.d.ts +29 -0
  181. package/hooks/features/dataSource/useGridDataSourcePolling.js +62 -0
  182. package/hooks/features/dataSource/useGridDataSourcePolling.mjs +54 -0
  183. package/hooks/features/dataSource/utils.d.mts +1 -1
  184. package/hooks/features/dataSource/utils.d.ts +1 -1
  185. package/hooks/features/dataSource/utils.mjs +1 -1
  186. package/hooks/features/density/useGridDensity.mjs +1 -1
  187. package/hooks/features/dimensions/useGridDimensions.d.mts +1 -1
  188. package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
  189. package/hooks/features/dimensions/useGridDimensions.js +3 -3
  190. package/hooks/features/dimensions/useGridDimensions.mjs +3 -3
  191. package/hooks/features/editing/useGridCellEditing.js +1 -1
  192. package/hooks/features/editing/useGridCellEditing.mjs +5 -5
  193. package/hooks/features/editing/useGridEditing.mjs +1 -1
  194. package/hooks/features/editing/useGridRowEditing.js +1 -1
  195. package/hooks/features/editing/useGridRowEditing.mjs +5 -5
  196. package/hooks/features/export/serializers/csvSerializer.js +5 -5
  197. package/hooks/features/export/serializers/csvSerializer.mjs +5 -5
  198. package/hooks/features/export/useGridPrintExport.js +44 -20
  199. package/hooks/features/export/useGridPrintExport.mjs +45 -21
  200. package/hooks/features/filter/gridFilterUtils.js +3 -3
  201. package/hooks/features/filter/gridFilterUtils.mjs +5 -5
  202. package/hooks/features/filter/useGridFilter.js +2 -2
  203. package/hooks/features/filter/useGridFilter.mjs +3 -3
  204. package/hooks/features/focus/useGridFocus.mjs +1 -1
  205. package/hooks/features/headerFiltering/useGridHeaderFiltering.mjs +1 -1
  206. package/hooks/features/listView/useGridListView.d.mts +2 -2
  207. package/hooks/features/listView/useGridListView.d.ts +2 -2
  208. package/hooks/features/listView/useGridListView.js +1 -1
  209. package/hooks/features/listView/useGridListView.mjs +2 -2
  210. package/hooks/features/pagination/useGridPagination.mjs +1 -1
  211. package/hooks/features/pagination/useGridPaginationMeta.mjs +1 -1
  212. package/hooks/features/pagination/useGridPaginationModel.mjs +1 -1
  213. package/hooks/features/pagination/useGridRowCount.js +2 -2
  214. package/hooks/features/pagination/useGridRowCount.mjs +2 -2
  215. package/hooks/features/preferencesPanel/gridPreferencePanelsValue.d.mts +1 -1
  216. package/hooks/features/preferencesPanel/gridPreferencePanelsValue.d.ts +1 -1
  217. package/hooks/features/preferencesPanel/useGridPreferencesPanel.mjs +1 -1
  218. package/hooks/features/rowSelection/useGridRowSelection.d.mts +1 -1
  219. package/hooks/features/rowSelection/useGridRowSelection.d.ts +1 -1
  220. package/hooks/features/rowSelection/useGridRowSelection.js +50 -9
  221. package/hooks/features/rowSelection/useGridRowSelection.mjs +52 -11
  222. package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.mjs +1 -1
  223. package/hooks/features/rowSelection/utils.js +5 -0
  224. package/hooks/features/rowSelection/utils.mjs +5 -0
  225. package/hooks/features/rows/gridRowsUtils.js +2 -2
  226. package/hooks/features/rows/gridRowsUtils.mjs +3 -3
  227. package/hooks/features/rows/useGridRowSpanning.mjs +1 -1
  228. package/hooks/features/rows/useGridRows.mjs +1 -1
  229. package/hooks/features/rows/useGridRowsMeta.mjs +1 -1
  230. package/hooks/features/rows/useGridRowsOverridableMethods.mjs +1 -1
  231. package/hooks/features/rows/useGridRowsPreProcessors.mjs +1 -1
  232. package/hooks/features/sorting/gridSortingUtils.js +1 -1
  233. package/hooks/features/sorting/gridSortingUtils.mjs +3 -3
  234. package/hooks/features/sorting/useGridSorting.js +2 -2
  235. package/hooks/features/sorting/useGridSorting.mjs +3 -3
  236. package/hooks/features/virtualization/gridFocusedVirtualCellSelector.mjs +1 -1
  237. package/hooks/features/virtualization/useGridVirtualization.mjs +1 -1
  238. package/hooks/utils/index.d.mts +1 -1
  239. package/hooks/utils/index.d.ts +1 -1
  240. package/hooks/utils/index.js +8 -12
  241. package/hooks/utils/index.mjs +2 -1
  242. package/hooks/utils/useGridSelector.js +2 -2
  243. package/hooks/utils/useGridSelector.mjs +2 -2
  244. package/index.js +1 -1
  245. package/index.mjs +1 -1
  246. package/internals/constants.d.mts +1 -1
  247. package/internals/constants.d.ts +1 -1
  248. package/internals/index.d.mts +1 -0
  249. package/internals/index.d.ts +1 -0
  250. package/internals/index.js +8 -0
  251. package/internals/index.mjs +1 -0
  252. package/internals/utils/cache.d.mts +0 -1
  253. package/internals/utils/cache.d.ts +0 -1
  254. package/internals/utils/cache.js +1 -3
  255. package/internals/utils/cache.mjs +1 -3
  256. package/internals/utils/computeSlots.mjs +1 -1
  257. package/internals/utils/propValidation.js +2 -2
  258. package/internals/utils/propValidation.mjs +3 -3
  259. package/material/index.mjs +2 -2
  260. package/models/api/gridCoreApi.d.mts +1 -1
  261. package/models/api/gridCoreApi.d.ts +1 -1
  262. package/models/api/gridEditingApi.d.mts +6 -6
  263. package/models/api/gridEditingApi.d.ts +6 -6
  264. package/models/api/gridPrintExportApi.d.mts +2 -1
  265. package/models/api/gridPrintExportApi.d.ts +2 -1
  266. package/models/events/gridEventLookup.d.mts +5 -5
  267. package/models/events/gridEventLookup.d.ts +5 -5
  268. package/models/gridBaseSlots.d.mts +18 -1
  269. package/models/gridBaseSlots.d.ts +18 -1
  270. package/models/gridEditRowModel.d.mts +3 -3
  271. package/models/gridEditRowModel.d.ts +3 -3
  272. package/models/gridExport.d.mts +13 -0
  273. package/models/gridExport.d.ts +13 -0
  274. package/models/gridFilterItem.d.mts +2 -2
  275. package/models/gridFilterItem.d.ts +2 -2
  276. package/models/index.d.mts +2 -1
  277. package/models/index.d.ts +2 -1
  278. package/models/params/gridEditCellParams.d.mts +2 -2
  279. package/models/params/gridEditCellParams.d.ts +2 -2
  280. package/models/params/gridRowParams.d.mts +2 -2
  281. package/models/params/gridRowParams.d.ts +2 -2
  282. package/models/props/DataGridProps.d.mts +8 -0
  283. package/models/props/DataGridProps.d.ts +8 -0
  284. package/package.json +6 -6
  285. package/utils/createSelector.d.mts +1 -1
  286. package/utils/createSelector.d.ts +1 -1
  287. package/utils/createSelector.js +1 -1
  288. package/utils/createSelector.mjs +1 -1
  289. package/hooks/utils/useFirstRender.d.mts +0 -1
  290. package/hooks/utils/useFirstRender.d.ts +0 -1
  291. package/hooks/utils/useFirstRender.js +0 -16
  292. package/hooks/utils/useFirstRender.mjs +0 -1
@@ -14,15 +14,17 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _forwardRef = require("@mui/x-internals/forwardRef");
15
15
  var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
- const _excluded = ["label", "icon", "showInMenu", "onClick"],
18
- _excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
17
+ const _excluded = ["label", "icon", "showInMenu", "onClick", "component", "href"],
18
+ _excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu", "component", "href"];
19
19
  const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwardRef)((props, ref) => {
20
20
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
21
21
  if (!props.showInMenu) {
22
22
  const {
23
23
  label,
24
24
  icon,
25
- onClick
25
+ onClick,
26
+ component,
27
+ href
26
28
  } = props,
27
29
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
28
30
  const handleClick = event => {
@@ -30,8 +32,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
30
32
  };
31
33
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseIconButton, (0, _extends2.default)({
32
34
  size: "small",
33
- role: "menuitem",
34
- "aria-label": label
35
+ "aria-label": label,
36
+ component: component,
37
+ href: href
35
38
  }, other, {
36
39
  onClick: handleClick
37
40
  }, rootProps.slotProps?.baseIconButton, {
@@ -46,7 +49,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
46
49
  icon,
47
50
  onClick,
48
51
  closeMenuOnClick = true,
49
- closeMenu
52
+ closeMenu,
53
+ component,
54
+ href
50
55
  } = props,
51
56
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
52
57
  const handleClick = event => {
@@ -56,7 +61,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
56
61
  }
57
62
  };
58
63
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, (0, _extends2.default)({
59
- ref: ref
64
+ ref: ref,
65
+ component: component ?? (href ? 'a' : undefined),
66
+ href: href
60
67
  }, other, {
61
68
  onClick: handleClick,
62
69
  iconStart: icon,
@@ -71,12 +78,27 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-
71
78
  // ----------------------------------------------------------------------
72
79
  className: _propTypes.default.string,
73
80
  /**
81
+ * The component used for the root node.
82
+ * If not set, and `href` is set, the item renders as an anchor tag.
74
83
  * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
75
84
  */
76
85
  component: _propTypes.default.elementType,
77
86
  disabled: _propTypes.default.bool,
87
+ /**
88
+ * The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
89
+ */
90
+ href: _propTypes.default.string,
78
91
  icon: _propTypes.default /* @typescript-to-proptypes-ignore */.element,
79
92
  label: _propTypes.default.node,
93
+ /**
94
+ * The relationship of the linked URL.
95
+ * Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
96
+ */
97
+ rel: _propTypes.default.string,
80
98
  showInMenu: _propTypes.default.bool,
81
- style: _propTypes.default.object
99
+ style: _propTypes.default.object,
100
+ /**
101
+ * Where to display the linked URL, as the name for a browsing context.
102
+ */
103
+ target: _propTypes.default.string
82
104
  } : void 0;
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["label", "icon", "showInMenu", "onClick"],
6
- _excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
+ const _excluded = ["label", "icon", "showInMenu", "onClick", "component", "href"],
6
+ _excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu", "component", "href"];
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import { forwardRef } from '@mui/x-internals/forwardRef';
@@ -15,7 +15,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
15
15
  const {
16
16
  label,
17
17
  icon,
18
- onClick
18
+ onClick,
19
+ component,
20
+ href
19
21
  } = props,
20
22
  other = _objectWithoutPropertiesLoose(props, _excluded);
21
23
  const handleClick = event => {
@@ -23,8 +25,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
23
25
  };
24
26
  return /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
25
27
  size: "small",
26
- role: "menuitem",
27
- "aria-label": label
28
+ "aria-label": label,
29
+ component: component,
30
+ href: href
28
31
  }, other, {
29
32
  onClick: handleClick
30
33
  }, rootProps.slotProps?.baseIconButton, {
@@ -39,7 +42,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
39
42
  icon,
40
43
  onClick,
41
44
  closeMenuOnClick = true,
42
- closeMenu
45
+ closeMenu,
46
+ component,
47
+ href
43
48
  } = props,
44
49
  other = _objectWithoutPropertiesLoose(props, _excluded2);
45
50
  const handleClick = event => {
@@ -49,7 +54,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
49
54
  }
50
55
  };
51
56
  return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({
52
- ref: ref
57
+ ref: ref,
58
+ component: component ?? (href ? 'a' : undefined),
59
+ href: href
53
60
  }, other, {
54
61
  onClick: handleClick,
55
62
  iconStart: icon,
@@ -64,13 +71,28 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-
64
71
  // ----------------------------------------------------------------------
65
72
  className: PropTypes.string,
66
73
  /**
74
+ * The component used for the root node.
75
+ * If not set, and `href` is set, the item renders as an anchor tag.
67
76
  * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
68
77
  */
69
78
  component: PropTypes.elementType,
70
79
  disabled: PropTypes.bool,
80
+ /**
81
+ * The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
82
+ */
83
+ href: PropTypes.string,
71
84
  icon: PropTypes /* @typescript-to-proptypes-ignore */.element,
72
85
  label: PropTypes.node,
86
+ /**
87
+ * The relationship of the linked URL.
88
+ * Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
89
+ */
90
+ rel: PropTypes.string,
73
91
  showInMenu: PropTypes.bool,
74
- style: PropTypes.object
92
+ style: PropTypes.object,
93
+ /**
94
+ * Where to display the linked URL, as the name for a browsing context.
95
+ */
96
+ target: PropTypes.string
75
97
  } : void 0;
76
98
  export { GridActionsCellItem };
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "hasFocus", "tabIndex", "hideDescendantCount"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -19,7 +19,7 @@ var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
19
19
  var _fastMemo = require("@mui/x-internals/fastMemo");
20
20
  var _RtlProvider = require("@mui/system/RtlProvider");
21
21
  var _forwardRef = require("@mui/x-internals/forwardRef");
22
- var _store = require("@mui/x-internals/store");
22
+ var _store = require("@base-ui/utils/store");
23
23
  var _xVirtualizer = require("@mui/x-virtualizer");
24
24
  var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
25
25
  var _focusElement = require("../../utils/focusElement");
@@ -177,6 +177,10 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
177
177
  };
178
178
  const classes = useUtilityClasses(ownerState);
179
179
  const publishMouseUp = React.useCallback(eventName => event => {
180
+ // The row might have been deleted during the click
181
+ if (!apiRef.current.getRow(rowId)) {
182
+ return;
183
+ }
180
184
  const params = apiRef.current.getCellParams(rowId, field || '');
181
185
  apiRef.current.publishEvent(eventName, params, event);
182
186
  if (onMouseUp) {
@@ -184,6 +188,10 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
184
188
  }
185
189
  }, [apiRef, field, onMouseUp, rowId]);
186
190
  const publishMouseDown = React.useCallback(eventName => event => {
191
+ // The row might have been deleted during the click
192
+ if (!apiRef.current.getRow(rowId)) {
193
+ return;
194
+ }
187
195
  const params = apiRef.current.getCellParams(rowId, field || '');
188
196
  apiRef.current.publishEvent(eventName, params, event);
189
197
  if (onMouseDown) {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["column", "row", "rowId", "rowNode", "align", "children", "colIndex", "width", "className", "style", "colSpan", "disableDragEvents", "isNotVisible", "pinnedOffset", "pinnedPosition", "showRightBorder", "showLeftBorder", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
6
6
  _excluded2 = ["changeReason", "unstable_updateValueOnRender"];
7
7
  import * as React from 'react';
@@ -14,7 +14,7 @@ import capitalize from '@mui/utils/capitalize';
14
14
  import { fastMemo } from '@mui/x-internals/fastMemo';
15
15
  import { useRtl } from '@mui/system/RtlProvider';
16
16
  import { forwardRef } from '@mui/x-internals/forwardRef';
17
- import { useStore } from '@mui/x-internals/store';
17
+ import { useStore } from '@base-ui/utils/store';
18
18
  import { Rowspan } from '@mui/x-virtualizer';
19
19
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
20
20
  import { focusElement } from "../../utils/focusElement.mjs";
@@ -170,6 +170,10 @@ const GridCell = forwardRef(function GridCell(props, ref) {
170
170
  };
171
171
  const classes = useUtilityClasses(ownerState);
172
172
  const publishMouseUp = React.useCallback(eventName => event => {
173
+ // The row might have been deleted during the click
174
+ if (!apiRef.current.getRow(rowId)) {
175
+ return;
176
+ }
173
177
  const params = apiRef.current.getCellParams(rowId, field || '');
174
178
  apiRef.current.publishEvent(eventName, params, event);
175
179
  if (onMouseUp) {
@@ -177,6 +181,10 @@ const GridCell = forwardRef(function GridCell(props, ref) {
177
181
  }
178
182
  }, [apiRef, field, onMouseUp, rowId]);
179
183
  const publishMouseDown = React.useCallback(eventName => event => {
184
+ // The row might have been deleted during the click
185
+ if (!apiRef.current.getRow(rowId)) {
186
+ return;
187
+ }
180
188
  const params = apiRef.current.getCellParams(rowId, field || '');
181
189
  apiRef.current.publishEvent(eventName, params, event);
182
190
  if (onMouseDown) {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "inputProps", "isValidating", "isProcessingProps", "onValueChange", "slotProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "isValidating", "debounceMs", "isProcessingProps", "onValueChange", "slotProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange", "initialOpen", "slotProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["formattedValue", "colDef", "cellMode", "row", "api", "id", "value", "rowNode", "field", "hasFocus", "tabIndex", "isEditable"];
6
6
  import * as React from 'react';
7
7
  import composeClasses from '@mui/utils/composeClasses';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["field", "type", "align", "width", "height", "empty", "style", "className", "skeletonProps"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import composeClasses from '@mui/utils/composeClasses';
6
6
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.mjs";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import useId from '@mui/utils/useId';
6
6
  import composeClasses from '@mui/utils/composeClasses';
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import composeClasses from '@mui/utils/composeClasses';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare enum GridColumnHeaderSeparatorSides {
3
3
  Left = "left",
4
- Right = "right",
4
+ Right = "right"
5
5
  }
6
6
  export interface GridColumnHeaderSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  resizable: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare enum GridColumnHeaderSeparatorSides {
3
3
  Left = "left",
4
- Right = "right",
4
+ Right = "right"
5
5
  }
6
6
  export interface GridColumnHeaderSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  resizable: boolean;
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["resizable", "resizing", "height", "side"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -28,18 +28,35 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes /*
28
28
  // ----------------------------------------------------------------------
29
29
  className: _propTypes.default.string,
30
30
  color: _propTypes.default.oneOf(['default', 'inherit', 'primary']),
31
+ /**
32
+ * The component used for the root node. Either a string to use an HTML element or a component.
33
+ */
34
+ component: _propTypes.default.elementType,
31
35
  direction: _propTypes.default.oneOf(['asc', 'desc']),
32
36
  disabled: _propTypes.default.bool,
33
37
  edge: _propTypes.default.oneOf(['end', 'start', false]),
34
38
  field: _propTypes.default.string.isRequired,
39
+ /**
40
+ * The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
41
+ */
42
+ href: _propTypes.default.string,
35
43
  id: _propTypes.default.string,
36
44
  index: _propTypes.default.number,
37
45
  label: _propTypes.default.string,
46
+ /**
47
+ * The relationship of the linked URL.
48
+ * Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
49
+ */
50
+ rel: _propTypes.default.string,
38
51
  role: _propTypes.default.string,
39
52
  size: _propTypes.default.oneOf(['large', 'medium', 'small']),
40
53
  sortingOrder: _propTypes.default.arrayOf(_propTypes.default.oneOf(['asc', 'desc'])).isRequired,
41
54
  style: _propTypes.default.object,
42
55
  tabIndex: _propTypes.default.number,
56
+ /**
57
+ * Where to display the linked URL, as the name for a browsing context.
58
+ */
59
+ target: _propTypes.default.string,
43
60
  title: _propTypes.default.string,
44
61
  touchRippleRef: _propTypes.default.any
45
62
  } : void 0;
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { GridIconButtonContainer } from "./GridIconButtonContainer.mjs";
@@ -20,18 +20,35 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes /*
20
20
  // ----------------------------------------------------------------------
21
21
  className: PropTypes.string,
22
22
  color: PropTypes.oneOf(['default', 'inherit', 'primary']),
23
+ /**
24
+ * The component used for the root node. Either a string to use an HTML element or a component.
25
+ */
26
+ component: PropTypes.elementType,
23
27
  direction: PropTypes.oneOf(['asc', 'desc']),
24
28
  disabled: PropTypes.bool,
25
29
  edge: PropTypes.oneOf(['end', 'start', false]),
26
30
  field: PropTypes.string.isRequired,
31
+ /**
32
+ * The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
33
+ */
34
+ href: PropTypes.string,
27
35
  id: PropTypes.string,
28
36
  index: PropTypes.number,
29
37
  label: PropTypes.string,
38
+ /**
39
+ * The relationship of the linked URL.
40
+ * Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
41
+ */
42
+ rel: PropTypes.string,
30
43
  role: PropTypes.string,
31
44
  size: PropTypes.oneOf(['large', 'medium', 'small']),
32
45
  sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])).isRequired,
33
46
  style: PropTypes.object,
34
47
  tabIndex: PropTypes.number,
48
+ /**
49
+ * Where to display the linked URL, as the name for a browsing context.
50
+ */
51
+ target: PropTypes.string,
35
52
  title: PropTypes.string,
36
53
  touchRippleRef: PropTypes.any
37
54
  } : void 0;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className", "aria-label"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["classes", "columnMenuOpen", "colIndex", "height", "isResizing", "sortDirection", "hasFocus", "tabIndex", "separatorSide", "isDraggable", "headerComponent", "description", "elementId", "width", "columnMenuIconButton", "columnMenu", "columnTitleIconButtons", "adornment", "headerClassName", "label", "resizable", "draggableContainerProps", "columnHeaderSeparatorProps", "style"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["field", "id", "formattedValue", "row", "rowNode", "colDef", "isEditable", "cellMode", "hasFocus", "tabIndex", "api"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["field", "colDef"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -22,9 +22,7 @@ const GridRowCheckbox = exports.GridRowCheckbox = (0, _forwardRef.forwardRef)(fu
22
22
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
23
23
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
24
24
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseCheckbox, (0, _extends2.default)({}, rootProps.slotProps?.baseCheckbox, other, {
25
- material: (0, _extends2.default)({
26
- disableRipple: props.disabled
27
- }, material),
25
+ material: material,
28
26
  ref: ref
29
27
  }));
30
28
  });
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["rowId", "material"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -15,9 +15,7 @@ const GridRowCheckbox = forwardRef(function GridRowCheckbox(props, ref) {
15
15
  other = _objectWithoutPropertiesLoose(props, _excluded);
16
16
  const rootProps = useGridRootProps();
17
17
  return /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({}, rootProps.slotProps?.baseCheckbox, other, {
18
- material: _extends({
19
- disableRipple: props.disabled
20
- }, material),
18
+ material: material,
21
19
  ref: ref
22
20
  }));
23
21
  });
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-use-before-define */
2
2
  'use client';
3
3
 
4
- import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _extends from "@babel/runtime/helpers/extends";
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import composeClasses from '@mui/utils/composeClasses';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["render", "className", "onClick", "onPointerUp"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';