@mui/x-data-grid 8.0.0-beta.2 → 8.0.0-beta.3

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 (321) hide show
  1. package/CHANGELOG.md +141 -0
  2. package/DataGrid/DataGrid.js +8 -2
  3. package/DataGrid/useDataGridProps.js +1 -1
  4. package/components/GridScrollArea.js +4 -4
  5. package/components/GridSkeletonLoadingOverlay.js +1 -1
  6. package/components/cell/GridActionsCellItem.d.ts +24 -13
  7. package/components/cell/GridActionsCellItem.js +5 -2
  8. package/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
  9. package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
  10. package/components/columnsManagement/GridColumnsManagement.js +1 -24
  11. package/components/columnsPanel/ColumnsPanelTrigger.js +4 -129
  12. package/components/export/ExportCsv.js +4 -129
  13. package/components/export/ExportPrint.js +4 -129
  14. package/components/filterPanel/FilterPanelTrigger.js +4 -129
  15. package/components/panel/GridPanel.d.ts +2 -2
  16. package/components/panel/GridPanel.js +1 -1
  17. package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
  18. package/components/quickFilter/QuickFilterClear.js +3 -100
  19. package/components/quickFilter/QuickFilterControl.js +0 -2
  20. package/components/quickFilter/QuickFilterTrigger.js +4 -129
  21. package/components/toolbar/GridToolbar.js +4 -1
  22. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  23. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  24. package/components/toolbar/GridToolbarQuickFilter.js +1 -2
  25. package/components/toolbarV8/GridToolbar.d.ts +6 -1
  26. package/components/toolbarV8/GridToolbar.js +64 -9
  27. package/components/toolbarV8/Toolbar.js +2 -0
  28. package/components/toolbarV8/ToolbarButton.js +3 -100
  29. package/components/virtualization/GridVirtualScrollbar.js +1 -1
  30. package/components/virtualization/GridVirtualScroller.js +2 -2
  31. package/constants/cssVariables.d.ts +3 -0
  32. package/constants/cssVariables.js +2 -1
  33. package/constants/gridClasses.d.ts +8 -0
  34. package/constants/gridClasses.js +1 -1
  35. package/esm/DataGrid/DataGrid.js +8 -2
  36. package/esm/DataGrid/useDataGridProps.js +1 -1
  37. package/esm/components/GridScrollArea.js +4 -4
  38. package/esm/components/GridSkeletonLoadingOverlay.js +2 -2
  39. package/esm/components/cell/GridActionsCellItem.d.ts +24 -13
  40. package/esm/components/cell/GridActionsCellItem.js +4 -3
  41. package/esm/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
  42. package/esm/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
  43. package/esm/components/columnsManagement/GridColumnsManagement.js +1 -24
  44. package/esm/components/columnsPanel/ColumnsPanelTrigger.js +4 -129
  45. package/esm/components/export/ExportCsv.js +4 -129
  46. package/esm/components/export/ExportPrint.js +4 -129
  47. package/esm/components/filterPanel/FilterPanelTrigger.js +4 -129
  48. package/esm/components/panel/GridPanel.d.ts +2 -2
  49. package/esm/components/panel/GridPanel.js +1 -1
  50. package/esm/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
  51. package/esm/components/quickFilter/QuickFilterClear.js +3 -100
  52. package/esm/components/quickFilter/QuickFilterControl.js +0 -2
  53. package/esm/components/quickFilter/QuickFilterTrigger.js +4 -129
  54. package/esm/components/toolbar/GridToolbar.js +4 -1
  55. package/esm/components/toolbar/GridToolbarDensitySelector.js +1 -1
  56. package/esm/components/toolbar/GridToolbarExportContainer.js +1 -1
  57. package/esm/components/toolbar/GridToolbarQuickFilter.js +1 -2
  58. package/esm/components/toolbarV8/GridToolbar.d.ts +6 -1
  59. package/esm/components/toolbarV8/GridToolbar.js +62 -9
  60. package/esm/components/toolbarV8/Toolbar.js +2 -0
  61. package/esm/components/toolbarV8/ToolbarButton.js +3 -100
  62. package/esm/components/virtualization/GridVirtualScrollbar.js +1 -1
  63. package/esm/components/virtualization/GridVirtualScroller.js +2 -2
  64. package/esm/constants/cssVariables.d.ts +3 -0
  65. package/esm/constants/cssVariables.js +2 -1
  66. package/esm/constants/gridClasses.d.ts +8 -0
  67. package/esm/constants/gridClasses.js +1 -1
  68. package/esm/hooks/core/gridCoreSelector.d.ts +1 -1
  69. package/esm/hooks/core/gridPropsSelectors.d.ts +1 -1
  70. package/esm/hooks/features/clipboard/useGridClipboard.js +2 -2
  71. package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +5 -5
  72. package/esm/hooks/features/columnGrouping/useGridColumnGrouping.js +4 -4
  73. package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -5
  74. package/esm/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
  75. package/esm/hooks/features/columnMenu/useGridColumnMenu.js +4 -4
  76. package/esm/hooks/features/columnResize/columnResizeSelector.d.ts +2 -2
  77. package/esm/hooks/features/columnResize/useGridColumnResize.js +7 -7
  78. package/esm/hooks/features/columns/gridColumnsSelector.d.ts +14 -14
  79. package/esm/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  80. package/esm/hooks/features/columns/gridColumnsUtils.js +1 -1
  81. package/esm/hooks/features/columns/useGridColumnSpanning.js +2 -2
  82. package/esm/hooks/features/columns/useGridColumns.js +2 -2
  83. package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -4
  84. package/esm/hooks/features/dataSource/useGridDataSource.js +1 -1
  85. package/esm/hooks/features/density/densitySelector.d.ts +2 -2
  86. package/esm/hooks/features/dimensions/gridDimensionsSelectors.d.ts +13 -13
  87. package/esm/hooks/features/dimensions/useGridDimensions.js +4 -4
  88. package/esm/hooks/features/editing/gridEditingSelectors.d.ts +4 -4
  89. package/esm/hooks/features/editing/useGridCellEditing.js +8 -8
  90. package/esm/hooks/features/editing/useGridRowEditing.js +9 -9
  91. package/esm/hooks/features/events/useGridEvents.js +18 -18
  92. package/esm/hooks/features/filter/gridFilterSelector.d.ts +18 -18
  93. package/esm/hooks/features/filter/useGridFilter.js +6 -6
  94. package/esm/hooks/features/focus/gridFocusStateSelector.d.ts +10 -10
  95. package/esm/hooks/features/focus/useGridFocus.js +10 -10
  96. package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
  97. package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
  98. package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +6 -6
  99. package/esm/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
  100. package/esm/hooks/features/listView/useGridListView.d.ts +4 -4
  101. package/esm/hooks/features/listView/useGridListView.js +9 -9
  102. package/esm/hooks/features/pagination/gridPaginationSelector.d.ts +14 -14
  103. package/esm/hooks/features/pagination/useGridPaginationModel.js +6 -6
  104. package/esm/hooks/features/pagination/useGridRowCount.js +2 -2
  105. package/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +2 -2
  106. package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +4 -4
  107. package/esm/hooks/features/rowSelection/useGridRowSelection.js +8 -8
  108. package/esm/hooks/features/rowSelection/utils.d.ts +1 -1
  109. package/esm/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
  110. package/esm/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
  111. package/esm/hooks/features/rows/gridRowsSelector.d.ts +21 -20
  112. package/esm/hooks/features/rows/gridRowsSelector.js +7 -0
  113. package/esm/hooks/features/rows/useGridParamsApi.js +2 -2
  114. package/esm/hooks/features/rows/useGridRowSpanning.js +6 -6
  115. package/esm/hooks/features/rows/useGridRows.js +5 -5
  116. package/esm/hooks/features/scroll/useGridScroll.d.ts +1 -1
  117. package/esm/hooks/features/scroll/useGridScroll.js +2 -2
  118. package/esm/hooks/features/sorting/gridSortingSelector.d.ts +5 -5
  119. package/esm/hooks/features/sorting/useGridSorting.js +6 -6
  120. package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +2 -2
  121. package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +6 -6
  122. package/esm/hooks/features/virtualization/useGridVirtualScroller.js +7 -7
  123. package/esm/hooks/utils/index.d.ts +1 -1
  124. package/esm/hooks/utils/index.js +1 -1
  125. package/esm/hooks/utils/useGridAriaAttributes.js +6 -0
  126. package/esm/hooks/utils/{useGridApiEventHandler.d.ts → useGridEvent.d.ts} +2 -2
  127. package/{modern/hooks/utils/useGridApiEventHandler.js → esm/hooks/utils/useGridEvent.js} +3 -3
  128. package/esm/hooks/utils/useGridNativeEventListener.js +2 -2
  129. package/esm/hooks/utils/useGridVisibleRows.d.ts +4 -4
  130. package/esm/index.js +1 -1
  131. package/esm/material/augmentation.d.ts +74 -0
  132. package/esm/material/augmentation.js +1 -0
  133. package/esm/material/index.d.ts +1 -0
  134. package/esm/material/index.js +262 -141
  135. package/esm/material/variables.js +2 -0
  136. package/esm/models/colDef/gridColDef.d.ts +1 -1
  137. package/esm/models/colDef/index.d.ts +1 -1
  138. package/esm/models/gridBaseSlots.d.ts +25 -36
  139. package/esm/models/gridSlotsComponentsProps.d.ts +1 -19
  140. package/esm/models/props/DataGridProps.d.ts +14 -8
  141. package/hooks/core/gridCoreSelector.d.ts +1 -1
  142. package/hooks/core/gridPropsSelectors.d.ts +1 -1
  143. package/hooks/features/clipboard/useGridClipboard.js +1 -1
  144. package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +5 -5
  145. package/hooks/features/columnGrouping/useGridColumnGrouping.js +4 -4
  146. package/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -5
  147. package/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
  148. package/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
  149. package/hooks/features/columnResize/columnResizeSelector.d.ts +2 -2
  150. package/hooks/features/columnResize/useGridColumnResize.js +6 -6
  151. package/hooks/features/columns/gridColumnsSelector.d.ts +14 -14
  152. package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  153. package/hooks/features/columns/gridColumnsUtils.js +1 -1
  154. package/hooks/features/columns/useGridColumnSpanning.js +2 -2
  155. package/hooks/features/columns/useGridColumns.js +2 -2
  156. package/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -4
  157. package/hooks/features/dataSource/useGridDataSource.js +2 -2
  158. package/hooks/features/density/densitySelector.d.ts +2 -2
  159. package/hooks/features/dimensions/gridDimensionsSelectors.d.ts +13 -13
  160. package/hooks/features/dimensions/useGridDimensions.js +4 -4
  161. package/hooks/features/editing/gridEditingSelectors.d.ts +4 -4
  162. package/hooks/features/editing/useGridCellEditing.js +8 -8
  163. package/hooks/features/editing/useGridRowEditing.js +9 -9
  164. package/hooks/features/events/useGridEvents.js +18 -18
  165. package/hooks/features/filter/gridFilterSelector.d.ts +18 -18
  166. package/hooks/features/filter/useGridFilter.js +6 -6
  167. package/hooks/features/focus/gridFocusStateSelector.d.ts +10 -10
  168. package/hooks/features/focus/useGridFocus.js +10 -10
  169. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
  170. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
  171. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +6 -6
  172. package/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
  173. package/hooks/features/listView/useGridListView.d.ts +4 -4
  174. package/hooks/features/listView/useGridListView.js +9 -9
  175. package/hooks/features/pagination/gridPaginationSelector.d.ts +14 -14
  176. package/hooks/features/pagination/useGridPaginationModel.js +5 -5
  177. package/hooks/features/pagination/useGridRowCount.js +1 -1
  178. package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +2 -2
  179. package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +4 -4
  180. package/hooks/features/rowSelection/useGridRowSelection.js +8 -8
  181. package/hooks/features/rowSelection/utils.d.ts +1 -1
  182. package/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
  183. package/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
  184. package/hooks/features/rows/gridRowsSelector.d.ts +21 -20
  185. package/hooks/features/rows/gridRowsSelector.js +8 -1
  186. package/hooks/features/rows/useGridParamsApi.js +2 -2
  187. package/hooks/features/rows/useGridRowSpanning.js +6 -6
  188. package/hooks/features/rows/useGridRows.js +4 -4
  189. package/hooks/features/scroll/useGridScroll.d.ts +1 -1
  190. package/hooks/features/scroll/useGridScroll.js +2 -2
  191. package/hooks/features/sorting/gridSortingSelector.d.ts +5 -5
  192. package/hooks/features/sorting/useGridSorting.js +6 -6
  193. package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +2 -2
  194. package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +6 -6
  195. package/hooks/features/virtualization/useGridVirtualScroller.js +6 -6
  196. package/hooks/utils/index.d.ts +1 -1
  197. package/hooks/utils/index.js +8 -8
  198. package/hooks/utils/useGridAriaAttributes.js +6 -0
  199. package/{modern/hooks/utils/useGridApiEventHandler.d.ts → hooks/utils/useGridEvent.d.ts} +2 -2
  200. package/hooks/utils/{useGridApiEventHandler.js → useGridEvent.js} +5 -5
  201. package/hooks/utils/useGridNativeEventListener.js +2 -2
  202. package/hooks/utils/useGridVisibleRows.d.ts +4 -4
  203. package/index.js +1 -1
  204. package/material/augmentation.d.ts +74 -0
  205. package/material/augmentation.js +5 -0
  206. package/material/index.d.ts +1 -0
  207. package/material/index.js +261 -141
  208. package/material/variables.js +2 -0
  209. package/models/colDef/gridColDef.d.ts +1 -1
  210. package/models/colDef/index.d.ts +1 -1
  211. package/models/gridBaseSlots.d.ts +25 -36
  212. package/models/gridSlotsComponentsProps.d.ts +1 -19
  213. package/models/props/DataGridProps.d.ts +14 -8
  214. package/modern/DataGrid/DataGrid.js +8 -2
  215. package/modern/DataGrid/useDataGridProps.js +1 -1
  216. package/modern/components/GridScrollArea.js +4 -4
  217. package/modern/components/GridSkeletonLoadingOverlay.js +2 -2
  218. package/modern/components/cell/GridActionsCellItem.d.ts +24 -13
  219. package/modern/components/cell/GridActionsCellItem.js +4 -3
  220. package/modern/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
  221. package/modern/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
  222. package/modern/components/columnsManagement/GridColumnsManagement.js +1 -24
  223. package/modern/components/columnsPanel/ColumnsPanelTrigger.js +4 -129
  224. package/modern/components/export/ExportCsv.js +4 -129
  225. package/modern/components/export/ExportPrint.js +4 -129
  226. package/modern/components/filterPanel/FilterPanelTrigger.js +4 -129
  227. package/modern/components/panel/GridPanel.d.ts +2 -2
  228. package/modern/components/panel/GridPanel.js +1 -1
  229. package/modern/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
  230. package/modern/components/quickFilter/QuickFilterClear.js +3 -100
  231. package/modern/components/quickFilter/QuickFilterControl.js +0 -2
  232. package/modern/components/quickFilter/QuickFilterTrigger.js +4 -129
  233. package/modern/components/toolbar/GridToolbar.js +4 -1
  234. package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
  235. package/modern/components/toolbar/GridToolbarExportContainer.js +1 -1
  236. package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -2
  237. package/modern/components/toolbarV8/GridToolbar.d.ts +6 -1
  238. package/modern/components/toolbarV8/GridToolbar.js +62 -9
  239. package/modern/components/toolbarV8/Toolbar.js +2 -0
  240. package/modern/components/toolbarV8/ToolbarButton.js +3 -100
  241. package/modern/components/virtualization/GridVirtualScrollbar.js +1 -1
  242. package/modern/components/virtualization/GridVirtualScroller.js +2 -2
  243. package/modern/constants/cssVariables.d.ts +3 -0
  244. package/modern/constants/cssVariables.js +2 -1
  245. package/modern/constants/gridClasses.d.ts +8 -0
  246. package/modern/constants/gridClasses.js +1 -1
  247. package/modern/hooks/core/gridCoreSelector.d.ts +1 -1
  248. package/modern/hooks/core/gridPropsSelectors.d.ts +1 -1
  249. package/modern/hooks/features/clipboard/useGridClipboard.js +2 -2
  250. package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +5 -5
  251. package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +4 -4
  252. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -5
  253. package/modern/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
  254. package/modern/hooks/features/columnMenu/useGridColumnMenu.js +4 -4
  255. package/modern/hooks/features/columnResize/columnResizeSelector.d.ts +2 -2
  256. package/modern/hooks/features/columnResize/useGridColumnResize.js +7 -7
  257. package/modern/hooks/features/columns/gridColumnsSelector.d.ts +14 -14
  258. package/modern/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  259. package/modern/hooks/features/columns/gridColumnsUtils.js +1 -1
  260. package/modern/hooks/features/columns/useGridColumnSpanning.js +2 -2
  261. package/modern/hooks/features/columns/useGridColumns.js +2 -2
  262. package/modern/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -4
  263. package/modern/hooks/features/dataSource/useGridDataSource.js +1 -1
  264. package/modern/hooks/features/density/densitySelector.d.ts +2 -2
  265. package/modern/hooks/features/dimensions/gridDimensionsSelectors.d.ts +13 -13
  266. package/modern/hooks/features/dimensions/useGridDimensions.js +4 -4
  267. package/modern/hooks/features/editing/gridEditingSelectors.d.ts +4 -4
  268. package/modern/hooks/features/editing/useGridCellEditing.js +8 -8
  269. package/modern/hooks/features/editing/useGridRowEditing.js +9 -9
  270. package/modern/hooks/features/events/useGridEvents.js +18 -18
  271. package/modern/hooks/features/filter/gridFilterSelector.d.ts +18 -18
  272. package/modern/hooks/features/filter/useGridFilter.js +6 -6
  273. package/modern/hooks/features/focus/gridFocusStateSelector.d.ts +10 -10
  274. package/modern/hooks/features/focus/useGridFocus.js +10 -10
  275. package/modern/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
  276. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
  277. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +6 -6
  278. package/modern/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
  279. package/modern/hooks/features/listView/useGridListView.d.ts +4 -4
  280. package/modern/hooks/features/listView/useGridListView.js +9 -9
  281. package/modern/hooks/features/pagination/gridPaginationSelector.d.ts +14 -14
  282. package/modern/hooks/features/pagination/useGridPaginationModel.js +6 -6
  283. package/modern/hooks/features/pagination/useGridRowCount.js +2 -2
  284. package/modern/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +2 -2
  285. package/modern/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +4 -4
  286. package/modern/hooks/features/rowSelection/useGridRowSelection.js +8 -8
  287. package/modern/hooks/features/rowSelection/utils.d.ts +1 -1
  288. package/modern/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
  289. package/modern/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
  290. package/modern/hooks/features/rows/gridRowsSelector.d.ts +21 -20
  291. package/modern/hooks/features/rows/gridRowsSelector.js +7 -0
  292. package/modern/hooks/features/rows/useGridParamsApi.js +2 -2
  293. package/modern/hooks/features/rows/useGridRowSpanning.js +6 -6
  294. package/modern/hooks/features/rows/useGridRows.js +5 -5
  295. package/modern/hooks/features/scroll/useGridScroll.d.ts +1 -1
  296. package/modern/hooks/features/scroll/useGridScroll.js +2 -2
  297. package/modern/hooks/features/sorting/gridSortingSelector.d.ts +5 -5
  298. package/modern/hooks/features/sorting/useGridSorting.js +6 -6
  299. package/modern/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +2 -2
  300. package/modern/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +6 -6
  301. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +7 -7
  302. package/modern/hooks/utils/index.d.ts +1 -1
  303. package/modern/hooks/utils/index.js +1 -1
  304. package/modern/hooks/utils/useGridAriaAttributes.js +6 -0
  305. package/{hooks/utils/useGridApiEventHandler.d.ts → modern/hooks/utils/useGridEvent.d.ts} +2 -2
  306. package/{esm/hooks/utils/useGridApiEventHandler.js → modern/hooks/utils/useGridEvent.js} +3 -3
  307. package/modern/hooks/utils/useGridNativeEventListener.js +2 -2
  308. package/modern/hooks/utils/useGridVisibleRows.d.ts +4 -4
  309. package/modern/index.js +1 -1
  310. package/modern/material/augmentation.d.ts +74 -0
  311. package/modern/material/augmentation.js +1 -0
  312. package/modern/material/index.d.ts +1 -0
  313. package/modern/material/index.js +262 -141
  314. package/modern/material/variables.js +2 -0
  315. package/modern/models/colDef/gridColDef.d.ts +1 -1
  316. package/modern/models/colDef/index.d.ts +1 -1
  317. package/modern/models/gridBaseSlots.d.ts +25 -36
  318. package/modern/models/gridSlotsComponentsProps.d.ts +1 -19
  319. package/modern/models/props/DataGridProps.d.ts +14 -8
  320. package/package.json +6 -6
  321. package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,147 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.0.0-beta.3
9
+
10
+ _Apr 3, 2025_
11
+
12
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🚫 Removed `react-spring` as a dependency of `@mui/x-charts`
15
+ - 📦 Data Grid list view feature is now stable
16
+ - 💫 Support title in Data Grid
17
+ - 📚 Documentation improvements
18
+ - 🐞 Bugfixes
19
+
20
+ Team members who have contributed to this release:
21
+ @bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @noraleonte, @romgrk, @alexfauquette.
22
+
23
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
24
+
25
+ ### Data Grid
26
+
27
+ #### Breaking changes
28
+
29
+ - The list view feature and its related props are now stable.
30
+
31
+ The `unstable_listColumn` prop has been renamed to `listViewColumn`.
32
+
33
+ The `GridListColDef` type has been renamed to `GridListViewColDef`.
34
+
35
+ ```diff
36
+ -const listViewColDef: GridListColDef = {
37
+ +const listViewColDef: GridListViewColDef = {
38
+ field: 'listColumn',
39
+ renderCell: ListViewCell,
40
+ };
41
+
42
+ <DataGridPro
43
+ - unstable_listView
44
+ - unstable_listColumn={listViewColDef}
45
+ + listView
46
+ + listViewColumn={listViewColDef}
47
+ />
48
+ ```
49
+
50
+ - The `useGridApiEventHandler()` hook has been renamed to `useGridEvent()`.
51
+ - The `useGridApiOptionHandler()` hook has been renamed to `useGridEventPriority()`.
52
+
53
+ #### `@mui/x-data-grid@8.0.0-beta.3`
54
+
55
+ - [DataGrid] Fix "is any of" autocomplete rendering (#17226) @KenanYusuf
56
+ - [DataGrid] Rename `useGridApiEventHandler()` to `useGridEvent()` (#17159) @romgrk
57
+ - [DataGrid] Support adding a label to the grid (#17147) @KenanYusuf
58
+ - [DataGrid] Refactor: remove material typings (#17119) @romgrk
59
+
60
+ #### `@mui/x-data-grid-pro@8.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
61
+
62
+ Same changes as in `@mui/x-data-grid@8.0.0-beta.3`, plus:
63
+
64
+ - [DataGridPro] Make list view feature stable (#17217) @KenanYusuf
65
+ - [DataGridPro] Always refetch lazy-loading rows (#16827) @MBilalShafi
66
+
67
+ #### `@mui/x-data-grid-premium@8.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
68
+
69
+ Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.3`.
70
+
71
+ ### Date and Time Pickers
72
+
73
+ #### `@mui/x-date-pickers@8.0.0-beta.3`
74
+
75
+ - [pickers] Add new `nextOrAccept` action bar action (#17037) @flaviendelangle
76
+ - [pickers] Improve the Multi Section Digital Clock scrollbar thickness (#16774) @oliviertassinari
77
+ - [TimePicker] Align the Digital Clock scrollbar thickness (#17203) @LukasTy
78
+
79
+ #### `@mui/x-date-pickers-pro@8.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
80
+
81
+ Same changes as in `@mui/x-date-pickers@8.0.0-beta.3`.
82
+
83
+ ### Charts
84
+
85
+ #### Breaking changes
86
+
87
+ - Removed `react-spring` as a dependency of `@mui/x-charts`.
88
+ A consequence of this change is that the props of some slots have been changed because the `SpringValue` wrapper has been removed. The affected slots and props are:
89
+
90
+ - the type of the `x`, `y`, `width` and `height` props of the `bar` slot are now `number`;
91
+ - the type of `startAngle`, `endAngle`, `innerRadius`, `outerRadius`, `arcLabelRadius`, `cornerRadius` and `paddingAngle` props of `pieArc` and `pieArcLabel` slot are now `number`.
92
+
93
+ Additionally, the `pieArc` slot now receives a `skipAnimation` prop to configure whether animations should be enabled or disabled.
94
+
95
+ - Tick labels in the y-axis of cartesian charts will now have an ellipsis applied to prevent overflow.
96
+ If your tick labels are being clipped sooner than you would like, you can increase the y-axis size by increasing its width property.
97
+
98
+ - The tooltip DOM structure is modified to improve accessibility. If you relied on it to apply some style or run tests, you might be impacted by this modification.
99
+ - The axis tooltip displays a table per axis with the axis value in a caption.
100
+ - Cells containing the series label and the color mark got merged in a th cell.
101
+
102
+ #### `@mui/x-charts@8.0.0-beta.3`
103
+
104
+ - [charts] Adjust color palettes (#17209) @noraleonte
105
+ - [charts] Allow multiple axes in the tooltip (#17058) @alexfauquette
106
+ - [charts] Improve custom legend docs (#17231) @JCQuintas
107
+ - [charts] Fix crash when item shown in tooltip is unmounted (#17169) @bernardobelchior
108
+ - [charts] Migrate some animations from `react-spring` (#16961) @bernardobelchior
109
+ - [charts] Remove `react-spring` (#17123) @bernardobelchior
110
+ - [charts] Fix y-axis tick label overflow (#16846) @bernardobelchior
111
+
112
+ #### `@mui/x-charts-pro@8.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
113
+
114
+ Same changes as in `@mui/x-charts@8.0.0-beta.3`.
115
+
116
+ ### Tree View
117
+
118
+ #### `@mui/x-tree-view@8.0.0-beta.3`
119
+
120
+ Internal changes.
121
+
122
+ #### `@mui/x-tree-view-pro@8.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
123
+
124
+ Same changes as in `@mui/x-tree-view@8.0.0-beta.3`.
125
+
126
+ ### `@mui/x-codemod@8.0.0-beta.3`
127
+
128
+ - [codemod] Add `listView` prop rename codemod (#17220) @MBilalShafi
129
+
130
+ ### Docs
131
+
132
+ - [docs] Add "Usage with Material UI v5/v6" guide (#17164) @cherniavskii
133
+ - [docs] Fix 301 link @oliviertassinari
134
+ - [docs] Fix redirection getting-started (#17200) @oliviertassinari
135
+ - [docs] Sync Stack Overflow docs with reality (#17198) @oliviertassinari
136
+ - [docs] Update Localization Provider JSDoc link (#17207) @LukasTy
137
+
138
+ ### Core
139
+
140
+ - [core] Cleanup `@mui` dependency versions (#17160) @LukasTy
141
+ - [core] Sync scorecards.yml across codebase @oliviertassinari
142
+ - [core] Revert upgrade to React 19.1 (#17206) @bernardobelchior
143
+ - [code-infra] Fix `test:unit` warning (#17224) @JCQuintas
144
+ - [code-infra] Fix pickers failing test after clock=fake removal (#17202) @JCQuintas
145
+ - [code-infra] Remove clock=fake from `describeValidation` (#17150) @JCQuintas
146
+ - [code-infra] Remove clock=fake from `describeValue` (#17199) @JCQuintas
147
+ - [infra] Add write permission for actions in issue status label handler (#17161) @michelengelen
148
+
8
149
  ## 8.0.0-beta.2
9
150
 
10
151
  _Mar 27, 2025_
@@ -66,11 +66,11 @@ DataGridRaw.propTypes = {
66
66
  current: _propTypes.default.object
67
67
  }),
68
68
  /**
69
- * The label of the Data Grid.
69
+ * The `aria-label` of the Data Grid.
70
70
  */
71
71
  'aria-label': _propTypes.default.string,
72
72
  /**
73
- * The id of the element containing a label for the Data Grid.
73
+ * The `id` of the element containing a label for the Data Grid.
74
74
  */
75
75
  'aria-labelledby': _propTypes.default.string,
76
76
  /**
@@ -367,6 +367,12 @@ DataGridRaw.propTypes = {
367
367
  * @default false
368
368
  */
369
369
  keepNonExistentRowsSelected: _propTypes.default.bool,
370
+ /**
371
+ * The label of the Data Grid.
372
+ * If the `showToolbar` prop is `true`, the label will be displayed in the toolbar and applied to the `aria-label` attribute of the grid.
373
+ * If the `showToolbar` prop is `false`, the label will not be visible but will be applied to the `aria-label` attribute of the grid.
374
+ */
375
+ label: _propTypes.default.string,
370
376
  /**
371
377
  * If `true`, a loading overlay is displayed.
372
378
  * @default false
@@ -23,7 +23,7 @@ const DATA_GRID_FORCED_PROPS = {
23
23
  disableColumnReorder: true,
24
24
  keepColumnPositionIfDraggedOutside: false,
25
25
  signature: 'DataGrid',
26
- unstable_listView: false
26
+ listView: false
27
27
  };
28
28
  const getDataGridForcedProps = themedProps => (0, _extends2.default)({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
29
29
  filterMode: 'server',
@@ -17,7 +17,7 @@ var _fastMemo = require("@mui/x-internals/fastMemo");
17
17
  var _useGridRootProps = require("../hooks/utils/useGridRootProps");
18
18
  var _constants = require("../constants");
19
19
  var _useGridApiContext = require("../hooks/utils/useGridApiContext");
20
- var _useGridApiEventHandler = require("../hooks/utils/useGridApiEventHandler");
20
+ var _useGridEvent = require("../hooks/utils/useGridEvent");
21
21
  var _useGridSelector = require("../hooks/utils/useGridSelector");
22
22
  var _gridDimensionsSelectors = require("../hooks/features/dimensions/gridDimensionsSelectors");
23
23
  var _densitySelector = require("../hooks/features/density/densitySelector");
@@ -70,8 +70,8 @@ const offsetSelector = (0, _createSelector.createSelector)(_gridDimensionsSelect
70
70
  function GridScrollAreaWrapper(props) {
71
71
  const apiRef = (0, _useGridApiContext.useGridApiContext)();
72
72
  const [dragging, setDragging] = React.useState(false);
73
- (0, _useGridApiEventHandler.useGridApiEventHandler)(apiRef, 'columnHeaderDragStart', () => setDragging(true));
74
- (0, _useGridApiEventHandler.useGridApiEventHandler)(apiRef, 'columnHeaderDragEnd', () => setDragging(false));
73
+ (0, _useGridEvent.useGridEvent)(apiRef, 'columnHeaderDragStart', () => setDragging(true));
74
+ (0, _useGridEvent.useGridEvent)(apiRef, 'columnHeaderDragEnd', () => setDragging(false));
75
75
  if (!dragging) {
76
76
  return null;
77
77
  }
@@ -143,7 +143,7 @@ function GridScrollAreaContent(props) {
143
143
  });
144
144
  });
145
145
  });
146
- (0, _useGridApiEventHandler.useGridApiEventHandler)(apiRef, 'scrollPositionChange', handleScrolling);
146
+ (0, _useGridEvent.useGridEvent)(apiRef, 'scrollPositionChange', handleScrolling);
147
147
  if (!canScrollMore) {
148
148
  return null;
149
149
  }
@@ -187,7 +187,7 @@ const GridSkeletonLoadingOverlayInner = exports.GridSkeletonLoadingOverlayInner
187
187
  });
188
188
  }
189
189
  };
190
- (0, _hooks.useGridApiEventHandler)(apiRef, 'columnResize', handleColumnResize);
190
+ (0, _hooks.useGridEvent)(apiRef, 'columnResize', handleColumnResize);
191
191
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(SkeletonOverlay, (0, _extends2.default)({
192
192
  className: classes.root
193
193
  }, rest, {
@@ -18,16 +18,7 @@ export type GridActionsCellItemProps = GridActionsCellItemCommonProps & (({
18
18
  closeMenuOnClick?: boolean;
19
19
  closeMenu?: () => void;
20
20
  } & Omit<GridSlotProps['baseMenuItem'], 'component'>));
21
- declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCellItemProps> | React.ForwardRefExoticComponent<(Omit<GridActionsCellItemCommonProps & {
22
- showInMenu?: false;
23
- icon: React.ReactElement<any>;
24
- } & Omit<Omit<import("../../models/gridBaseSlots").ButtonProps, "startIcon"> & {
25
- label?: string;
26
- color?: "default" | "inherit" | "primary";
27
- edge?: "start" | "end" | false;
28
- } & import("../..").BaseIconButtonPropsOverrides & import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "size" | "style" | "disabled" | "action" | "className" | "tabIndex" | "children" | "loading" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
29
- component?: React.ElementType;
30
- }, "component">, "ref"> | Omit<GridActionsCellItemCommonProps & {
21
+ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCellItemProps> | React.ForwardRefExoticComponent<((GridActionsCellItemCommonProps & {
31
22
  showInMenu: true;
32
23
  /**
33
24
  * If false, the menu will not close when this item is clicked.
@@ -35,7 +26,27 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
35
26
  */
36
27
  closeMenuOnClick?: boolean;
37
28
  closeMenu?: () => void;
38
- } & Omit<import("../../models/gridBaseSlots").MenuItemProps & import("../..").BaseMenuItemPropsOverrides & import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style" | "dense" | "disabled" | "action" | "selected" | "autoFocus" | "className" | "tabIndex" | "children" | "sx" | "classes" | "disableGutters" | "divider" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
39
- component?: React.ElementType;
40
- }, "component">, "ref">) & React.RefAttributes<HTMLElement>>;
29
+ } & Omit<React.DOMAttributes<HTMLElement> & {
30
+ [k: `aria-${string}`]: any;
31
+ [k: `data-${string}`]: any;
32
+ className?: string;
33
+ style?: React.CSSProperties;
34
+ } & {
35
+ autoFocus?: boolean;
36
+ children?: React.ReactNode;
37
+ inert?: boolean;
38
+ disabled?: boolean;
39
+ iconStart?: React.ReactNode;
40
+ iconEnd?: React.ReactNode;
41
+ selected?: boolean;
42
+ value?: number | string | readonly string[];
43
+ style?: React.CSSProperties;
44
+ } & import("@mui/x-data-grid").BaseMenuItemPropsOverrides, "component">) | Omit<GridActionsCellItemCommonProps & {
45
+ showInMenu?: false;
46
+ icon: React.ReactElement<any>;
47
+ } & Omit<Omit<import("../../models/gridBaseSlots").ButtonProps, "startIcon"> & {
48
+ label?: string;
49
+ color?: "default" | "inherit" | "primary";
50
+ edge?: "start" | "end" | false;
51
+ } & import("@mui/x-data-grid").BaseIconButtonPropsOverrides, "component">, "ref">) & React.RefAttributes<HTMLElement>>;
41
52
  export { GridActionsCellItem };
@@ -14,7 +14,7 @@ var _forwardRef = require("@mui/x-internals/forwardRef");
14
14
  var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  const _excluded = ["label", "icon", "showInMenu", "onClick"],
17
- _excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"]; // FIXME(v8:romgrk): Make parametric
17
+ _excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
18
18
  const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwardRef)((props, ref) => {
19
19
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
20
20
  if (!props.showInMenu) {
@@ -67,11 +67,14 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes = {
67
67
  // | These PropTypes are generated from the TypeScript type definitions |
68
68
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
69
69
  // ----------------------------------------------------------------------
70
+ className: _propTypes.default.string,
70
71
  /**
71
72
  * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
72
73
  */
73
74
  component: _propTypes.default.elementType,
75
+ disabled: _propTypes.default.bool,
74
76
  icon: _propTypes.default.element,
75
77
  label: _propTypes.default.string.isRequired,
76
- showInMenu: _propTypes.default.bool
78
+ showInMenu: _propTypes.default.bool,
79
+ style: _propTypes.default.object
77
80
  } : void 0;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { GridRenderCellParams } from '../../models/params/gridCellParams';
3
- declare const GridCellCheckboxForwardRef: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("../..").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("../..").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
3
+ declare const GridCellCheckboxForwardRef: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
4
4
  export { GridCellCheckboxForwardRef };
5
- export declare const GridCellCheckboxRenderer: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("../..").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("../..").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
5
+ export declare const GridCellCheckboxRenderer: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
2
  import type { GridColumnHeaderParams } from '../../models/params/gridColumnHeaderParams';
3
- declare const GridHeaderCheckbox: React.ForwardRefExoticComponent<GridColumnHeaderParams<import("../..").GridValidRowModel, any, any>> | React.ForwardRefExoticComponent<GridColumnHeaderParams<import("../..").GridValidRowModel, any, any> & React.RefAttributes<HTMLButtonElement>>;
3
+ declare const GridHeaderCheckbox: React.ForwardRefExoticComponent<GridColumnHeaderParams<import("@mui/x-data-grid").GridValidRowModel, any, any>> | React.ForwardRefExoticComponent<GridColumnHeaderParams<import("@mui/x-data-grid").GridValidRowModel, any, any> & React.RefAttributes<HTMLButtonElement>>;
4
4
  export { GridHeaderCheckbox };
@@ -239,30 +239,7 @@ process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes = {
239
239
  * @returns {GridColDef['field'][]} The list of togglable columns' field names.
240
240
  */
241
241
  getTogglableColumns: _propTypes.default.func,
242
- searchInputProps: _propTypes.default.shape({
243
- autoComplete: _propTypes.default.string,
244
- className: _propTypes.default.string,
245
- color: _propTypes.default.oneOf(['error', 'primary']),
246
- disabled: _propTypes.default.bool,
247
- error: _propTypes.default.bool,
248
- fullWidth: _propTypes.default.bool,
249
- helperText: _propTypes.default.string,
250
- id: _propTypes.default.string,
251
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
252
- current: _propTypes.default.object
253
- })]),
254
- label: _propTypes.default.node,
255
- onChange: _propTypes.default.func,
256
- onKeyDown: _propTypes.default.func,
257
- placeholder: _propTypes.default.string,
258
- role: _propTypes.default.string,
259
- size: _propTypes.default.oneOf(['medium', 'small']),
260
- slotProps: _propTypes.default.object,
261
- style: _propTypes.default.object,
262
- tabIndex: _propTypes.default.number,
263
- type: _propTypes.default.oneOfType([_propTypes.default.oneOf(['button', 'checkbox', 'color', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week']), _propTypes.default.object]),
264
- value: _propTypes.default.string
265
- }),
242
+ searchInputProps: _propTypes.default.object,
266
243
  searchPredicate: _propTypes.default.func,
267
244
  sort: _propTypes.default.oneOf(['asc', 'desc']),
268
245
  /**
@@ -88,146 +88,21 @@ process.env.NODE_ENV !== "production" ? ColumnsPanelTrigger.propTypes = {
88
88
  // | These PropTypes are generated from the TypeScript type definitions |
89
89
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
90
90
  // ----------------------------------------------------------------------
91
- /**
92
- * A ref for imperative actions.
93
- * It currently only supports `focusVisible()` action.
94
- */
95
- action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
96
- current: _propTypes.default.shape({
97
- focusVisible: _propTypes.default.func.isRequired
98
- })
99
- })]),
100
- /**
101
- * If `true`, the ripples are centered.
102
- * They won't start at the cursor interaction position.
103
- * @default false
104
- */
105
- centerRipple: _propTypes.default.bool,
106
91
  /**
107
92
  * Override or extend the styles applied to the component.
108
93
  */
109
94
  className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
110
- /**
111
- * The color of the component.
112
- * It supports both default and custom theme colors, which can be added as shown in the
113
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
114
- * @default 'primary'
115
- */
116
- color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
117
- component: _propTypes.default.elementType,
118
- /**
119
- * If `true`, the component is disabled.
120
- */
121
95
  disabled: _propTypes.default.bool,
122
- /**
123
- * If `true`, no elevation is used.
124
- * @default false
125
- */
126
- disableElevation: _propTypes.default.bool,
127
- /**
128
- * If `true`, the keyboard focus ripple is disabled.
129
- * @default false
130
- */
131
- disableFocusRipple: _propTypes.default.bool,
132
- /**
133
- * If `true`, the ripple effect is disabled.
134
- *
135
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
136
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
137
- * @default false
138
- */
139
- disableRipple: _propTypes.default.bool,
140
- /**
141
- * If `true`, the touch ripple effect is disabled.
142
- * @default false
143
- */
144
- disableTouchRipple: _propTypes.default.bool,
145
- /**
146
- * Element placed after the children.
147
- */
148
- endIcon: _propTypes.default.node,
149
- /**
150
- * If `true`, the base button will have a keyboard focus ripple.
151
- * @default false
152
- */
153
- focusRipple: _propTypes.default.bool,
154
- /**
155
- * This prop can help identify which element has keyboard focus.
156
- * The class name will be applied when the element gains the focus through keyboard interaction.
157
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
158
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
159
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
160
- * if needed.
161
- */
162
- focusVisibleClassName: _propTypes.default.string,
163
- /**
164
- * If `true`, the button will take up the full width of its container.
165
- * @default false
166
- */
167
- fullWidth: _propTypes.default.bool,
168
- /**
169
- * The URL to link to when the button is clicked.
170
- * If defined, an `a` element will be used as the root node.
171
- */
172
- href: _propTypes.default.string,
173
- /**
174
- * The component used to render a link when the `href` prop is provided.
175
- * @default 'a'
176
- */
177
- LinkComponent: _propTypes.default.elementType,
178
- /**
179
- * If `true`, the loading indicator is visible and the button is disabled.
180
- * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
181
- * @default null
182
- */
183
- loading: _propTypes.default.bool,
184
- /**
185
- * Element placed before the children if the button is in loading state.
186
- * The node should contain an element with `role="progressbar"` with an accessible name.
187
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
188
- * @default <CircularProgress color="inherit" size={16} />
189
- */
190
- loadingIndicator: _propTypes.default.node,
191
- /**
192
- * The loading indicator can be positioned on the start, end, or the center of the button.
193
- * @default 'center'
194
- */
195
- loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
196
- /**
197
- * Callback fired when the component is focused with a keyboard.
198
- * We trigger a `onFocus` callback too.
199
- */
200
- onFocusVisible: _propTypes.default.func,
96
+ id: _propTypes.default.string,
201
97
  /**
202
98
  * A function to customize rendering of the component.
203
99
  */
204
100
  render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
205
- /**
206
- * The size of the component.
207
- * `small` is equivalent to the dense button styling.
208
- */
101
+ role: _propTypes.default.string,
209
102
  size: _propTypes.default.oneOf(['large', 'medium', 'small']),
210
- /**
211
- * Element placed before the children.
212
- */
213
103
  startIcon: _propTypes.default.node,
214
104
  style: _propTypes.default.object,
215
- /**
216
- * The system prop that allows defining system overrides as well as additional CSS styles.
217
- */
218
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
219
105
  tabIndex: _propTypes.default.number,
220
- /**
221
- * Props applied to the `TouchRipple` element.
222
- */
223
- TouchRippleProps: _propTypes.default.object,
224
- /**
225
- * A ref that points to the `TouchRipple` element.
226
- */
227
- touchRippleRef: _propTypes.default.any,
228
- /**
229
- * The variant to use.
230
- * @default 'text'
231
- */
232
- variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
106
+ title: _propTypes.default.string,
107
+ touchRippleRef: _propTypes.default.any
233
108
  } : void 0;
@@ -55,113 +55,9 @@ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
56
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
57
57
  // ----------------------------------------------------------------------
58
- /**
59
- * A ref for imperative actions.
60
- * It currently only supports `focusVisible()` action.
61
- */
62
- action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
63
- current: _propTypes.default.shape({
64
- focusVisible: _propTypes.default.func.isRequired
65
- })
66
- })]),
67
- /**
68
- * If `true`, the ripples are centered.
69
- * They won't start at the cursor interaction position.
70
- * @default false
71
- */
72
- centerRipple: _propTypes.default.bool,
73
58
  className: _propTypes.default.string,
74
- /**
75
- * The color of the component.
76
- * It supports both default and custom theme colors, which can be added as shown in the
77
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
78
- * @default 'primary'
79
- */
80
- color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
81
- component: _propTypes.default.elementType,
82
- /**
83
- * If `true`, the component is disabled.
84
- */
85
59
  disabled: _propTypes.default.bool,
86
- /**
87
- * If `true`, no elevation is used.
88
- * @default false
89
- */
90
- disableElevation: _propTypes.default.bool,
91
- /**
92
- * If `true`, the keyboard focus ripple is disabled.
93
- * @default false
94
- */
95
- disableFocusRipple: _propTypes.default.bool,
96
- /**
97
- * If `true`, the ripple effect is disabled.
98
- *
99
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
100
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
101
- * @default false
102
- */
103
- disableRipple: _propTypes.default.bool,
104
- /**
105
- * If `true`, the touch ripple effect is disabled.
106
- * @default false
107
- */
108
- disableTouchRipple: _propTypes.default.bool,
109
- /**
110
- * Element placed after the children.
111
- */
112
- endIcon: _propTypes.default.node,
113
- /**
114
- * If `true`, the base button will have a keyboard focus ripple.
115
- * @default false
116
- */
117
- focusRipple: _propTypes.default.bool,
118
- /**
119
- * This prop can help identify which element has keyboard focus.
120
- * The class name will be applied when the element gains the focus through keyboard interaction.
121
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
122
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
123
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
124
- * if needed.
125
- */
126
- focusVisibleClassName: _propTypes.default.string,
127
- /**
128
- * If `true`, the button will take up the full width of its container.
129
- * @default false
130
- */
131
- fullWidth: _propTypes.default.bool,
132
- /**
133
- * The URL to link to when the button is clicked.
134
- * If defined, an `a` element will be used as the root node.
135
- */
136
- href: _propTypes.default.string,
137
- /**
138
- * The component used to render a link when the `href` prop is provided.
139
- * @default 'a'
140
- */
141
- LinkComponent: _propTypes.default.elementType,
142
- /**
143
- * If `true`, the loading indicator is visible and the button is disabled.
144
- * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
145
- * @default null
146
- */
147
- loading: _propTypes.default.bool,
148
- /**
149
- * Element placed before the children if the button is in loading state.
150
- * The node should contain an element with `role="progressbar"` with an accessible name.
151
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
152
- * @default <CircularProgress color="inherit" size={16} />
153
- */
154
- loadingIndicator: _propTypes.default.node,
155
- /**
156
- * The loading indicator can be positioned on the start, end, or the center of the button.
157
- * @default 'center'
158
- */
159
- loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
160
- /**
161
- * Callback fired when the component is focused with a keyboard.
162
- * We trigger a `onFocus` callback too.
163
- */
164
- onFocusVisible: _propTypes.default.func,
60
+ id: _propTypes.default.string,
165
61
  /**
166
62
  * The options to apply on the CSV export.
167
63
  * @demos
@@ -183,32 +79,11 @@ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
183
79
  * A function to customize rendering of the component.
184
80
  */
185
81
  render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
186
- /**
187
- * The size of the component.
188
- * `small` is equivalent to the dense button styling.
189
- */
82
+ role: _propTypes.default.string,
190
83
  size: _propTypes.default.oneOf(['large', 'medium', 'small']),
191
- /**
192
- * Element placed before the children.
193
- */
194
84
  startIcon: _propTypes.default.node,
195
85
  style: _propTypes.default.object,
196
- /**
197
- * The system prop that allows defining system overrides as well as additional CSS styles.
198
- */
199
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
200
86
  tabIndex: _propTypes.default.number,
201
- /**
202
- * Props applied to the `TouchRipple` element.
203
- */
204
- TouchRippleProps: _propTypes.default.object,
205
- /**
206
- * A ref that points to the `TouchRipple` element.
207
- */
208
- touchRippleRef: _propTypes.default.any,
209
- /**
210
- * The variant to use.
211
- * @default 'text'
212
- */
213
- variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
87
+ title: _propTypes.default.string,
88
+ touchRippleRef: _propTypes.default.any
214
89
  } : void 0;