@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
@@ -53,121 +53,24 @@ process.env.NODE_ENV !== "production" ? QuickFilterClear.propTypes = {
53
53
  // | These PropTypes are generated from the TypeScript type definitions |
54
54
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
55
55
  // ----------------------------------------------------------------------
56
- /**
57
- * A ref for imperative actions.
58
- * It currently only supports `focusVisible()` action.
59
- */
60
- action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
61
- current: PropTypes.shape({
62
- focusVisible: PropTypes.func.isRequired
63
- })
64
- })]),
65
- /**
66
- * If `true`, the ripples are centered.
67
- * They won't start at the cursor interaction position.
68
- * @default false
69
- */
70
- centerRipple: PropTypes.bool,
71
56
  /**
72
57
  * Override or extend the styles applied to the component.
73
58
  */
74
59
  className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
75
- /**
76
- * The color of the component.
77
- * It supports both default and custom theme colors, which can be added as shown in the
78
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
79
- */
80
60
  color: PropTypes.oneOf(['default', 'inherit', 'primary']),
81
- component: PropTypes.elementType,
82
- /**
83
- * If `true`, the component is disabled.
84
- */
85
61
  disabled: PropTypes.bool,
86
- /**
87
- * If `true`, the keyboard focus ripple is disabled.
88
- * @default false
89
- */
90
- disableFocusRipple: PropTypes.bool,
91
- /**
92
- * If `true`, the ripple effect is disabled.
93
- *
94
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
95
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
96
- * @default false
97
- */
98
- disableRipple: PropTypes.bool,
99
- /**
100
- * If `true`, the touch ripple effect is disabled.
101
- * @default false
102
- */
103
- disableTouchRipple: PropTypes.bool,
104
- /**
105
- * If given, uses a negative margin to counteract the padding on one
106
- * side (this is often helpful for aligning the left or right
107
- * side of the icon with content above or below, without ruining the border
108
- * size and shape).
109
- */
110
62
  edge: PropTypes.oneOf(['end', 'start', false]),
111
- /**
112
- * If `true`, the base button will have a keyboard focus ripple.
113
- * @default false
114
- */
115
- focusRipple: PropTypes.bool,
116
- /**
117
- * This prop can help identify which element has keyboard focus.
118
- * The class name will be applied when the element gains the focus through keyboard interaction.
119
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
120
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
121
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
122
- * if needed.
123
- */
124
- focusVisibleClassName: PropTypes.string,
63
+ id: PropTypes.string,
125
64
  label: PropTypes.string,
126
- /**
127
- * The component used to render a link when the `href` prop is provided.
128
- * @default 'a'
129
- */
130
- LinkComponent: PropTypes.elementType,
131
- /**
132
- * If `true`, the loading indicator is visible and the button is disabled.
133
- * 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).
134
- * @default null
135
- */
136
- loading: PropTypes.bool,
137
- /**
138
- * Element placed before the children if the button is in loading state.
139
- * The node should contain an element with `role="progressbar"` with an accessible name.
140
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
141
- * @default <CircularProgress color="inherit" size={16} />
142
- */
143
- loadingIndicator: PropTypes.node,
144
- /**
145
- * Callback fired when the component is focused with a keyboard.
146
- * We trigger a `onFocus` callback too.
147
- */
148
- onFocusVisible: PropTypes.func,
149
65
  /**
150
66
  * A function to customize rendering of the component.
151
67
  */
152
68
  render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
153
- /**
154
- * The size of the component.
155
- * `small` is equivalent to the dense button styling.
156
- */
69
+ role: PropTypes.string,
157
70
  size: PropTypes.oneOf(['large', 'medium', 'small']),
158
71
  style: PropTypes.object,
159
- /**
160
- * The system prop that allows defining system overrides as well as additional CSS styles.
161
- */
162
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
163
72
  tabIndex: PropTypes.number,
164
- /**
165
- * Props applied to the `TouchRipple` element.
166
- */
167
- TouchRippleProps: PropTypes.object,
168
- /**
169
- * A ref that points to the `TouchRipple` element.
170
- */
73
+ title: PropTypes.string,
171
74
  touchRippleRef: PropTypes.any
172
75
  } : void 0;
173
76
  export { QuickFilterClear };
@@ -105,8 +105,6 @@ process.env.NODE_ENV !== "production" ? QuickFilterControl.propTypes = {
105
105
  current: PropTypes.object
106
106
  })]),
107
107
  label: PropTypes.node,
108
- onChange: PropTypes.func,
109
- onKeyDown: PropTypes.func,
110
108
  placeholder: PropTypes.string,
111
109
  /**
112
110
  * A function to customize rendering of the component.
@@ -58,147 +58,22 @@ process.env.NODE_ENV !== "production" ? QuickFilterTrigger.propTypes = {
58
58
  // | These PropTypes are generated from the TypeScript type definitions |
59
59
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
60
60
  // ----------------------------------------------------------------------
61
- /**
62
- * A ref for imperative actions.
63
- * It currently only supports `focusVisible()` action.
64
- */
65
- action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
66
- current: PropTypes.shape({
67
- focusVisible: PropTypes.func.isRequired
68
- })
69
- })]),
70
- /**
71
- * If `true`, the ripples are centered.
72
- * They won't start at the cursor interaction position.
73
- * @default false
74
- */
75
- centerRipple: PropTypes.bool,
76
61
  /**
77
62
  * Override or extend the styles applied to the component.
78
63
  */
79
64
  className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
80
- /**
81
- * The color of the component.
82
- * It supports both default and custom theme colors, which can be added as shown in the
83
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
84
- * @default 'primary'
85
- */
86
- color: PropTypes.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
87
- component: PropTypes.elementType,
88
- /**
89
- * If `true`, the component is disabled.
90
- */
91
65
  disabled: PropTypes.bool,
92
- /**
93
- * If `true`, no elevation is used.
94
- * @default false
95
- */
96
- disableElevation: PropTypes.bool,
97
- /**
98
- * If `true`, the keyboard focus ripple is disabled.
99
- * @default false
100
- */
101
- disableFocusRipple: PropTypes.bool,
102
- /**
103
- * If `true`, the ripple effect is disabled.
104
- *
105
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
106
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
107
- * @default false
108
- */
109
- disableRipple: PropTypes.bool,
110
- /**
111
- * If `true`, the touch ripple effect is disabled.
112
- * @default false
113
- */
114
- disableTouchRipple: PropTypes.bool,
115
- /**
116
- * Element placed after the children.
117
- */
118
- endIcon: PropTypes.node,
119
- /**
120
- * If `true`, the base button will have a keyboard focus ripple.
121
- * @default false
122
- */
123
- focusRipple: PropTypes.bool,
124
- /**
125
- * This prop can help identify which element has keyboard focus.
126
- * The class name will be applied when the element gains the focus through keyboard interaction.
127
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
128
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
129
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
130
- * if needed.
131
- */
132
- focusVisibleClassName: PropTypes.string,
133
- /**
134
- * If `true`, the button will take up the full width of its container.
135
- * @default false
136
- */
137
- fullWidth: PropTypes.bool,
138
- /**
139
- * The URL to link to when the button is clicked.
140
- * If defined, an `a` element will be used as the root node.
141
- */
142
- href: PropTypes.string,
143
- /**
144
- * The component used to render a link when the `href` prop is provided.
145
- * @default 'a'
146
- */
147
- LinkComponent: PropTypes.elementType,
148
- /**
149
- * If `true`, the loading indicator is visible and the button is disabled.
150
- * 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).
151
- * @default null
152
- */
153
- loading: PropTypes.bool,
154
- /**
155
- * Element placed before the children if the button is in loading state.
156
- * The node should contain an element with `role="progressbar"` with an accessible name.
157
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
158
- * @default <CircularProgress color="inherit" size={16} />
159
- */
160
- loadingIndicator: PropTypes.node,
161
- /**
162
- * The loading indicator can be positioned on the start, end, or the center of the button.
163
- * @default 'center'
164
- */
165
- loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),
166
- /**
167
- * Callback fired when the component is focused with a keyboard.
168
- * We trigger a `onFocus` callback too.
169
- */
170
- onFocusVisible: PropTypes.func,
66
+ id: PropTypes.string,
171
67
  /**
172
68
  * A function to customize rendering of the component.
173
69
  */
174
70
  render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
175
- /**
176
- * The size of the component.
177
- * `small` is equivalent to the dense button styling.
178
- */
71
+ role: PropTypes.string,
179
72
  size: PropTypes.oneOf(['large', 'medium', 'small']),
180
- /**
181
- * Element placed before the children.
182
- */
183
73
  startIcon: PropTypes.node,
184
74
  style: PropTypes.object,
185
- /**
186
- * The system prop that allows defining system overrides as well as additional CSS styles.
187
- */
188
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
189
75
  tabIndex: PropTypes.number,
190
- /**
191
- * Props applied to the `TouchRipple` element.
192
- */
193
- TouchRippleProps: PropTypes.object,
194
- /**
195
- * A ref that points to the `TouchRipple` element.
196
- */
197
- touchRippleRef: PropTypes.any,
198
- /**
199
- * The variant to use.
200
- * @default 'text'
201
- */
202
- variant: PropTypes.oneOf(['contained', 'outlined', 'text'])
76
+ title: PropTypes.string,
77
+ touchRippleRef: PropTypes.any
203
78
  } : void 0;
204
79
  export { QuickFilterTrigger };
@@ -11,6 +11,7 @@ import { GridToolbarFilterButton } from "./GridToolbarFilterButton.js";
11
11
  import { GridToolbarExport } from "./GridToolbarExport.js";
12
12
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
13
13
  import { GridToolbarQuickFilter } from "./GridToolbarQuickFilter.js";
14
+ import { GridToolbarLabel } from "../toolbarV8/GridToolbar.js";
14
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
16
  const GridToolbar = forwardRef(function GridToolbar(props, ref) {
16
17
  // TODO v7: think about where export option should be passed.
@@ -30,7 +31,9 @@ const GridToolbar = forwardRef(function GridToolbar(props, ref) {
30
31
  }
31
32
  return /*#__PURE__*/_jsxs(GridToolbarContainer, _extends({}, other, {
32
33
  ref: ref,
33
- children: [/*#__PURE__*/_jsx(GridToolbarColumnsButton, {}), /*#__PURE__*/_jsx(GridToolbarFilterButton, {}), /*#__PURE__*/_jsx(GridToolbarDensitySelector, {}), /*#__PURE__*/_jsx(GridToolbarExport, {
34
+ children: [rootProps.label && /*#__PURE__*/_jsx(GridToolbarLabel, {
35
+ children: rootProps.label
36
+ }), /*#__PURE__*/_jsx(GridToolbarColumnsButton, {}), /*#__PURE__*/_jsx(GridToolbarFilterButton, {}), /*#__PURE__*/_jsx(GridToolbarDensitySelector, {}), /*#__PURE__*/_jsx(GridToolbarExport, {
34
37
  csvOptions: csvOptions,
35
38
  printOptions: printOptions
36
39
  // @ts-ignore
@@ -100,7 +100,7 @@ const GridToolbarDensitySelector = forwardRef(function GridToolbarDensitySelecto
100
100
  open: open,
101
101
  target: buttonRef.current,
102
102
  onClose: handleDensitySelectorClose,
103
- position: "bottom-start",
103
+ position: "bottom-end",
104
104
  children: /*#__PURE__*/_jsx(rootProps.slots.baseMenuList, {
105
105
  id: densityMenuId,
106
106
  className: gridClasses.menuList,
@@ -61,7 +61,7 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
61
61
  open: open,
62
62
  target: buttonRef.current,
63
63
  onClose: handleMenuClose,
64
- position: "bottom-start",
64
+ position: "bottom-end",
65
65
  children: /*#__PURE__*/_jsx(rootProps.slots.baseMenuList, {
66
66
  id: exportMenuId,
67
67
  className: gridClasses.menuList,
@@ -30,8 +30,7 @@ const GridQuickFilterRoot = styled('div', {
30
30
  slot: 'ToolbarQuickFilter'
31
31
  })({
32
32
  display: 'grid',
33
- alignItems: 'center',
34
- marginLeft: 'auto'
33
+ alignItems: 'center'
35
34
  });
36
35
  const GridQuickFilterTrigger = styled(ToolbarButton, {
37
36
  name: 'MuiDataGrid',
@@ -4,8 +4,13 @@ interface GridToolbarInternalProps {
4
4
  additionalExportMenuItems?: (onMenuItemClick: () => void) => React.ReactNode;
5
5
  }
6
6
  export type GridToolbarProps = GridSlotProps['toolbar'] & GridToolbarInternalProps;
7
+ declare function GridToolbarDivider(props: GridSlotProps['baseDivider']): React.JSX.Element;
8
+ declare namespace GridToolbarDivider {
9
+ var propTypes: any;
10
+ }
11
+ declare function GridToolbarLabel(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
7
12
  declare function GridToolbar(props: GridToolbarProps): React.JSX.Element;
8
13
  declare namespace GridToolbar {
9
14
  var propTypes: any;
10
15
  }
11
- export { GridToolbar };
16
+ export { GridToolbar, GridToolbarDivider, GridToolbarLabel };
@@ -1,8 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["className"],
4
+ _excluded2 = ["className"];
2
5
  import * as React from 'react';
3
6
  import PropTypes from 'prop-types';
4
7
  import useId from '@mui/utils/useId';
5
8
  import { styled } from '@mui/system';
9
+ import composeClasses from '@mui/utils/composeClasses';
6
10
  import { GridMenu } from "../menu/GridMenu.js";
7
11
  import { Toolbar } from "./Toolbar.js";
8
12
  import { ToolbarButton } from "./ToolbarButton.js";
@@ -14,7 +18,18 @@ import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
14
18
  import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
15
19
  import { NotRendered } from "../../utils/assert.js";
16
20
  import { vars } from "../../constants/cssVariables.js";
21
+ import { getDataGridUtilityClass } from "../../constants/gridClasses.js";
17
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
+ const useUtilityClasses = ownerState => {
24
+ const {
25
+ classes
26
+ } = ownerState;
27
+ const slots = {
28
+ divider: ['toolbarDivider'],
29
+ label: ['toolbarLabel']
30
+ };
31
+ return composeClasses(slots, getDataGridUtilityClass, classes);
32
+ };
18
33
  const Divider = styled(NotRendered, {
19
34
  name: 'MuiDataGrid',
20
35
  slot: 'ToolbarDivider'
@@ -22,6 +37,44 @@ const Divider = styled(NotRendered, {
22
37
  height: '50%',
23
38
  margin: vars.spacing(0, 0.5)
24
39
  });
40
+ const Label = styled('span', {
41
+ name: 'MuiDataGrid',
42
+ slot: 'ToolbarLabel'
43
+ })({
44
+ flex: 1,
45
+ font: vars.typography.font.large,
46
+ fontWeight: vars.typography.fontWeight.medium,
47
+ margin: vars.spacing(0, 0.5),
48
+ textOverflow: 'ellipsis',
49
+ overflow: 'hidden',
50
+ whiteSpace: 'nowrap'
51
+ });
52
+ function GridToolbarDivider(props) {
53
+ const other = _objectWithoutPropertiesLoose(props, _excluded);
54
+ const rootProps = useGridRootProps();
55
+ const classes = useUtilityClasses(rootProps);
56
+ return /*#__PURE__*/_jsx(Divider, _extends({
57
+ as: rootProps.slots.baseDivider,
58
+ orientation: "vertical",
59
+ className: classes.divider
60
+ }, other));
61
+ }
62
+ process.env.NODE_ENV !== "production" ? GridToolbarDivider.propTypes = {
63
+ // ----------------------------- Warning --------------------------------
64
+ // | These PropTypes are generated from the TypeScript type definitions |
65
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
66
+ // ----------------------------------------------------------------------
67
+ className: PropTypes.string,
68
+ orientation: PropTypes.oneOf(['horizontal', 'vertical'])
69
+ } : void 0;
70
+ function GridToolbarLabel(props) {
71
+ const other = _objectWithoutPropertiesLoose(props, _excluded2);
72
+ const rootProps = useGridRootProps();
73
+ const classes = useUtilityClasses(rootProps);
74
+ return /*#__PURE__*/_jsx(Label, _extends({
75
+ className: classes.label
76
+ }, other));
77
+ }
25
78
  function GridToolbar(props) {
26
79
  const {
27
80
  showQuickFilter = true,
@@ -39,7 +92,9 @@ function GridToolbar(props) {
39
92
  const showExportMenu = !csvOptions?.disableToolbarButton || !printOptions?.disableToolbarButton || additionalExportMenuItems;
40
93
  const closeExportMenu = () => setExportMenuOpen(false);
41
94
  return /*#__PURE__*/_jsxs(Toolbar, {
42
- children: [!rootProps.disableColumnSelector && /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, {
95
+ children: [rootProps.label && /*#__PURE__*/_jsx(GridToolbarLabel, {
96
+ children: rootProps.label
97
+ }), !rootProps.disableColumnSelector && /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, {
43
98
  title: apiRef.current.getLocaleText('toolbarColumns'),
44
99
  children: /*#__PURE__*/_jsx(ColumnsPanelTrigger, {
45
100
  render: /*#__PURE__*/_jsx(ToolbarButton, {}),
@@ -51,7 +106,6 @@ function GridToolbar(props) {
51
106
  title: apiRef.current.getLocaleText('toolbarFilters'),
52
107
  children: /*#__PURE__*/_jsx(FilterPanelTrigger, {
53
108
  render: (triggerProps, state) => /*#__PURE__*/_jsx(ToolbarButton, _extends({}, triggerProps, {
54
- color: "default",
55
109
  children: /*#__PURE__*/_jsx(rootProps.slots.baseBadge, {
56
110
  badgeContent: state.filterCount,
57
111
  color: "primary",
@@ -62,10 +116,7 @@ function GridToolbar(props) {
62
116
  })
63
117
  }))
64
118
  })
65
- }), showExportMenu && (!rootProps.disableColumnFilter || !rootProps.disableColumnSelector) && /*#__PURE__*/_jsx(Divider, {
66
- as: rootProps.slots.baseDivider,
67
- orientation: "vertical"
68
- }), showExportMenu && /*#__PURE__*/_jsxs(React.Fragment, {
119
+ }), showExportMenu && (!rootProps.disableColumnFilter || !rootProps.disableColumnSelector) && /*#__PURE__*/_jsx(GridToolbarDivider, {}), showExportMenu && /*#__PURE__*/_jsxs(React.Fragment, {
69
120
  children: [/*#__PURE__*/_jsx(rootProps.slots.baseTooltip, {
70
121
  title: apiRef.current.getLocaleText('toolbarExport'),
71
122
  children: /*#__PURE__*/_jsx(ToolbarButton, {
@@ -83,7 +134,7 @@ function GridToolbar(props) {
83
134
  target: exportMenuTriggerRef.current,
84
135
  open: exportMenuOpen,
85
136
  onClose: closeExportMenu,
86
- position: "bottom-start",
137
+ position: "bottom-end",
87
138
  children: /*#__PURE__*/_jsxs(rootProps.slots.baseMenuList, _extends({
88
139
  id: exportMenuId,
89
140
  "aria-labelledby": exportMenuTriggerId,
@@ -102,7 +153,9 @@ function GridToolbar(props) {
102
153
  }), additionalExportMenuItems?.(closeExportMenu)]
103
154
  }))
104
155
  })]
105
- }), showQuickFilter && /*#__PURE__*/_jsx(GridToolbarQuickFilter, _extends({}, quickFilterProps))]
156
+ }), showQuickFilter && /*#__PURE__*/_jsxs(React.Fragment, {
157
+ children: [/*#__PURE__*/_jsx(GridToolbarDivider, {}), /*#__PURE__*/_jsx(GridToolbarQuickFilter, _extends({}, quickFilterProps))]
158
+ })]
106
159
  });
107
160
  }
108
161
  process.env.NODE_ENV !== "production" ? GridToolbar.propTypes = {
@@ -135,4 +188,4 @@ process.env.NODE_ENV !== "production" ? GridToolbar.propTypes = {
135
188
  slotProps: PropTypes.object,
136
189
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
137
190
  } : void 0;
138
- export { GridToolbar };
191
+ export { GridToolbar, GridToolbarDivider, GridToolbarLabel };
@@ -29,6 +29,7 @@ const ToolbarRoot = styled('div', {
29
29
  flex: 0,
30
30
  display: 'flex',
31
31
  alignItems: 'center',
32
+ justifyContent: 'end',
32
33
  gap: vars.spacing(0.25),
33
34
  padding: vars.spacing(0.75),
34
35
  minHeight: 52,
@@ -150,6 +151,7 @@ const Toolbar = forwardRef(function Toolbar(props, ref) {
150
151
  const element = useGridComponentRenderer(ToolbarRoot, render, _extends({
151
152
  role: 'toolbar',
152
153
  'aria-orientation': 'horizontal',
154
+ 'aria-label': rootProps.label || undefined,
153
155
  className: clsx(classes.root, className),
154
156
  ownerState: rootProps
155
157
  }, other, {
@@ -88,118 +88,21 @@ process.env.NODE_ENV !== "production" ? ToolbarButton.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.oneOfType([PropTypes.func, PropTypes.shape({
96
- current: PropTypes.shape({
97
- focusVisible: PropTypes.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.bool,
106
91
  className: PropTypes.string,
107
- /**
108
- * The color of the component.
109
- * It supports both default and custom theme colors, which can be added as shown in the
110
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
111
- */
112
92
  color: PropTypes.oneOf(['default', 'inherit', 'primary']),
113
- component: PropTypes.elementType,
114
- /**
115
- * If `true`, the component is disabled.
116
- */
117
93
  disabled: PropTypes.bool,
118
- /**
119
- * If `true`, the keyboard focus ripple is disabled.
120
- * @default false
121
- */
122
- disableFocusRipple: PropTypes.bool,
123
- /**
124
- * If `true`, the ripple effect is disabled.
125
- *
126
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
127
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
128
- * @default false
129
- */
130
- disableRipple: PropTypes.bool,
131
- /**
132
- * If `true`, the touch ripple effect is disabled.
133
- * @default false
134
- */
135
- disableTouchRipple: PropTypes.bool,
136
- /**
137
- * If given, uses a negative margin to counteract the padding on one
138
- * side (this is often helpful for aligning the left or right
139
- * side of the icon with content above or below, without ruining the border
140
- * size and shape).
141
- */
142
94
  edge: PropTypes.oneOf(['end', 'start', false]),
143
- /**
144
- * If `true`, the base button will have a keyboard focus ripple.
145
- * @default false
146
- */
147
- focusRipple: PropTypes.bool,
148
- /**
149
- * This prop can help identify which element has keyboard focus.
150
- * The class name will be applied when the element gains the focus through keyboard interaction.
151
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
152
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
153
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
154
- * if needed.
155
- */
156
- focusVisibleClassName: PropTypes.string,
95
+ id: PropTypes.string,
157
96
  label: PropTypes.string,
158
- /**
159
- * The component used to render a link when the `href` prop is provided.
160
- * @default 'a'
161
- */
162
- LinkComponent: PropTypes.elementType,
163
- /**
164
- * If `true`, the loading indicator is visible and the button is disabled.
165
- * 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).
166
- * @default null
167
- */
168
- loading: PropTypes.bool,
169
- /**
170
- * Element placed before the children if the button is in loading state.
171
- * The node should contain an element with `role="progressbar"` with an accessible name.
172
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
173
- * @default <CircularProgress color="inherit" size={16} />
174
- */
175
- loadingIndicator: PropTypes.node,
176
- /**
177
- * Callback fired when the component is focused with a keyboard.
178
- * We trigger a `onFocus` callback too.
179
- */
180
- onFocusVisible: PropTypes.func,
181
97
  /**
182
98
  * A function to customize rendering of the component.
183
99
  */
184
100
  render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
185
- /**
186
- * The size of the component.
187
- * `small` is equivalent to the dense button styling.
188
- */
101
+ role: PropTypes.string,
189
102
  size: PropTypes.oneOf(['large', 'medium', 'small']),
190
103
  style: PropTypes.object,
191
- /**
192
- * The system prop that allows defining system overrides as well as additional CSS styles.
193
- */
194
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
195
104
  tabIndex: PropTypes.number,
196
- /**
197
- * Props applied to the `TouchRipple` element.
198
- */
199
- TouchRippleProps: PropTypes.object,
200
- /**
201
- * A ref that points to the `TouchRipple` element.
202
- */
105
+ title: PropTypes.string,
203
106
  touchRippleRef: PropTypes.any
204
107
  } : void 0;
205
108
  export { ToolbarButton };
@@ -127,7 +127,7 @@ const GridVirtualScrollbar = forwardRef(function GridVirtualScrollbar(props, ref
127
127
  return /*#__PURE__*/_jsx(Container, {
128
128
  ref: useForkRef(ref, scrollbarRef),
129
129
  className: classes.root,
130
- style: props.position === 'vertical' && rootProps.unstable_listView ? {
130
+ style: props.position === 'vertical' && rootProps.listView ? {
131
131
  height: '100%',
132
132
  top: 0
133
133
  } : undefined,
@@ -102,7 +102,7 @@ function GridVirtualScroller(props) {
102
102
  }, getScrollerProps(), {
103
103
  ownerState: ownerState,
104
104
  children: [/*#__PURE__*/_jsxs(TopContainer, {
105
- children: [!rootProps.unstable_listView && /*#__PURE__*/_jsx(GridHeaders, {}), /*#__PURE__*/_jsx(rootProps.slots.pinnedRows, {
105
+ children: [!rootProps.listView && /*#__PURE__*/_jsx(GridHeaders, {}), /*#__PURE__*/_jsx(rootProps.slots.pinnedRows, {
106
106
  position: "top",
107
107
  virtualScroller: virtualScroller
108
108
  })]
@@ -120,7 +120,7 @@ function GridVirtualScroller(props) {
120
120
  virtualScroller: virtualScroller
121
121
  })
122
122
  })]
123
- })), hasScrollX && !rootProps.unstable_listView && /*#__PURE__*/_jsx(Scrollbar, _extends({
123
+ })), hasScrollX && !rootProps.listView && /*#__PURE__*/_jsx(Scrollbar, _extends({
124
124
  position: "horizontal"
125
125
  }, getScrollbarHorizontalProps())), hasScrollY && /*#__PURE__*/_jsx(Scrollbar, _extends({
126
126
  position: "vertical"