@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
@@ -55,113 +55,9 @@ process.env.NODE_ENV !== "production" ? ExportPrint.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 Print export.
167
63
  * @demos
@@ -183,32 +79,11 @@ process.env.NODE_ENV !== "production" ? ExportPrint.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;
@@ -91,146 +91,21 @@ process.env.NODE_ENV !== "production" ? FilterPanelTrigger.propTypes = {
91
91
  // | These PropTypes are generated from the TypeScript type definitions |
92
92
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
93
93
  // ----------------------------------------------------------------------
94
- /**
95
- * A ref for imperative actions.
96
- * It currently only supports `focusVisible()` action.
97
- */
98
- action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
99
- current: _propTypes.default.shape({
100
- focusVisible: _propTypes.default.func.isRequired
101
- })
102
- })]),
103
- /**
104
- * If `true`, the ripples are centered.
105
- * They won't start at the cursor interaction position.
106
- * @default false
107
- */
108
- centerRipple: _propTypes.default.bool,
109
94
  /**
110
95
  * A function to customize rendering of the component.
111
96
  */
112
97
  className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
113
- /**
114
- * The color of the component.
115
- * It supports both default and custom theme colors, which can be added as shown in the
116
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
117
- * @default 'primary'
118
- */
119
- color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
120
- component: _propTypes.default.elementType,
121
- /**
122
- * If `true`, the component is disabled.
123
- */
124
98
  disabled: _propTypes.default.bool,
125
- /**
126
- * If `true`, no elevation is used.
127
- * @default false
128
- */
129
- disableElevation: _propTypes.default.bool,
130
- /**
131
- * If `true`, the keyboard focus ripple is disabled.
132
- * @default false
133
- */
134
- disableFocusRipple: _propTypes.default.bool,
135
- /**
136
- * If `true`, the ripple effect is disabled.
137
- *
138
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
139
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
140
- * @default false
141
- */
142
- disableRipple: _propTypes.default.bool,
143
- /**
144
- * If `true`, the touch ripple effect is disabled.
145
- * @default false
146
- */
147
- disableTouchRipple: _propTypes.default.bool,
148
- /**
149
- * Element placed after the children.
150
- */
151
- endIcon: _propTypes.default.node,
152
- /**
153
- * If `true`, the base button will have a keyboard focus ripple.
154
- * @default false
155
- */
156
- focusRipple: _propTypes.default.bool,
157
- /**
158
- * This prop can help identify which element has keyboard focus.
159
- * The class name will be applied when the element gains the focus through keyboard interaction.
160
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
161
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
162
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
163
- * if needed.
164
- */
165
- focusVisibleClassName: _propTypes.default.string,
166
- /**
167
- * If `true`, the button will take up the full width of its container.
168
- * @default false
169
- */
170
- fullWidth: _propTypes.default.bool,
171
- /**
172
- * The URL to link to when the button is clicked.
173
- * If defined, an `a` element will be used as the root node.
174
- */
175
- href: _propTypes.default.string,
176
- /**
177
- * The component used to render a link when the `href` prop is provided.
178
- * @default 'a'
179
- */
180
- LinkComponent: _propTypes.default.elementType,
181
- /**
182
- * If `true`, the loading indicator is visible and the button is disabled.
183
- * 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).
184
- * @default null
185
- */
186
- loading: _propTypes.default.bool,
187
- /**
188
- * Element placed before the children if the button is in loading state.
189
- * The node should contain an element with `role="progressbar"` with an accessible name.
190
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
191
- * @default <CircularProgress color="inherit" size={16} />
192
- */
193
- loadingIndicator: _propTypes.default.node,
194
- /**
195
- * The loading indicator can be positioned on the start, end, or the center of the button.
196
- * @default 'center'
197
- */
198
- loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
199
- /**
200
- * Callback fired when the component is focused with a keyboard.
201
- * We trigger a `onFocus` callback too.
202
- */
203
- onFocusVisible: _propTypes.default.func,
99
+ id: _propTypes.default.string,
204
100
  /**
205
101
  * A function to customize rendering of the component.
206
102
  */
207
103
  render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
208
- /**
209
- * The size of the component.
210
- * `small` is equivalent to the dense button styling.
211
- */
104
+ role: _propTypes.default.string,
212
105
  size: _propTypes.default.oneOf(['large', 'medium', 'small']),
213
- /**
214
- * Element placed before the children.
215
- */
216
106
  startIcon: _propTypes.default.node,
217
107
  style: _propTypes.default.object,
218
- /**
219
- * The system prop that allows defining system overrides as well as additional CSS styles.
220
- */
221
- 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]),
222
108
  tabIndex: _propTypes.default.number,
223
- /**
224
- * Props applied to the `TouchRipple` element.
225
- */
226
- TouchRippleProps: _propTypes.default.object,
227
- /**
228
- * A ref that points to the `TouchRipple` element.
229
- */
230
- touchRippleRef: _propTypes.default.any,
231
- /**
232
- * The variant to use.
233
- * @default 'text'
234
- */
235
- variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
109
+ title: _propTypes.default.string,
110
+ touchRippleRef: _propTypes.default.any
236
111
  } : void 0;
@@ -7,7 +7,7 @@ export interface GridPanelClasses {
7
7
  paper: string;
8
8
  }
9
9
  export interface GridPanelProps extends Pick<GridSlotProps['basePopper'], 'id' | 'className' | 'target' | 'flip'> {
10
- ref?: React.Ref<HTMLElement>;
10
+ ref?: React.Ref<HTMLDivElement>;
11
11
  children?: React.ReactNode;
12
12
  /**
13
13
  * Override or extend the styles applied to the component.
@@ -16,5 +16,5 @@ export interface GridPanelProps extends Pick<GridSlotProps['basePopper'], 'id' |
16
16
  open: boolean;
17
17
  }
18
18
  export declare const gridPanelClasses: Record<keyof GridPanelClasses, string>;
19
- declare const GridPanel: React.ForwardRefExoticComponent<GridPanelProps> | React.ForwardRefExoticComponent<Omit<GridPanelProps, "ref"> & React.RefAttributes<HTMLElement>>;
19
+ declare const GridPanel: React.ForwardRefExoticComponent<GridPanelProps> | React.ForwardRefExoticComponent<Omit<GridPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
20
  export { GridPanel };
@@ -76,7 +76,7 @@ const GridPanel = exports.GridPanel = (0, _forwardRef.forwardRef)((props, ref) =
76
76
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridPanelRoot, (0, _extends2.default)({
77
77
  as: rootProps.slots.basePopper,
78
78
  ownerState: rootProps,
79
- placement: "bottom-start",
79
+ placement: "bottom-end",
80
80
  className: (0, _clsx.default)(classes.panel, className, variablesClass),
81
81
  flip: true,
82
82
  onDidShow: onDidShow,
@@ -1,5 +1,5 @@
1
1
  import type { GridColDef, GridSingleSelectColDef } from '../../../models/colDef/gridColDef';
2
2
  import type { GridValueOptionsParams } from '../../../models/params/gridValueOptionsParams';
3
3
  export declare function isSingleSelectColDef(colDef: GridColDef | null): colDef is GridSingleSelectColDef;
4
- export declare function getValueOptions(column: GridSingleSelectColDef, additionalParams?: Omit<GridValueOptionsParams, 'field'>): import("../../..").ValueOptions[] | undefined;
4
+ export declare function getValueOptions(column: GridSingleSelectColDef, additionalParams?: Omit<GridValueOptionsParams, 'field'>): import("@mui/x-data-grid").ValueOptions[] | undefined;
5
5
  export declare function getValueFromValueOptions(value: string, valueOptions: any[] | undefined, getOptionValue: NonNullable<GridSingleSelectColDef['getOptionValue']>): any;
@@ -61,120 +61,23 @@ process.env.NODE_ENV !== "production" ? QuickFilterClear.propTypes = {
61
61
  // | These PropTypes are generated from the TypeScript type definitions |
62
62
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
63
63
  // ----------------------------------------------------------------------
64
- /**
65
- * A ref for imperative actions.
66
- * It currently only supports `focusVisible()` action.
67
- */
68
- action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
69
- current: _propTypes.default.shape({
70
- focusVisible: _propTypes.default.func.isRequired
71
- })
72
- })]),
73
- /**
74
- * If `true`, the ripples are centered.
75
- * They won't start at the cursor interaction position.
76
- * @default false
77
- */
78
- centerRipple: _propTypes.default.bool,
79
64
  /**
80
65
  * Override or extend the styles applied to the component.
81
66
  */
82
67
  className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
83
- /**
84
- * The color of the component.
85
- * It supports both default and custom theme colors, which can be added as shown in the
86
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
87
- */
88
68
  color: _propTypes.default.oneOf(['default', 'inherit', 'primary']),
89
- component: _propTypes.default.elementType,
90
- /**
91
- * If `true`, the component is disabled.
92
- */
93
69
  disabled: _propTypes.default.bool,
94
- /**
95
- * If `true`, the keyboard focus ripple is disabled.
96
- * @default false
97
- */
98
- disableFocusRipple: _propTypes.default.bool,
99
- /**
100
- * If `true`, the ripple effect is disabled.
101
- *
102
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
103
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
104
- * @default false
105
- */
106
- disableRipple: _propTypes.default.bool,
107
- /**
108
- * If `true`, the touch ripple effect is disabled.
109
- * @default false
110
- */
111
- disableTouchRipple: _propTypes.default.bool,
112
- /**
113
- * If given, uses a negative margin to counteract the padding on one
114
- * side (this is often helpful for aligning the left or right
115
- * side of the icon with content above or below, without ruining the border
116
- * size and shape).
117
- */
118
70
  edge: _propTypes.default.oneOf(['end', 'start', false]),
119
- /**
120
- * If `true`, the base button will have a keyboard focus ripple.
121
- * @default false
122
- */
123
- focusRipple: _propTypes.default.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.default.string,
71
+ id: _propTypes.default.string,
133
72
  label: _propTypes.default.string,
134
- /**
135
- * The component used to render a link when the `href` prop is provided.
136
- * @default 'a'
137
- */
138
- LinkComponent: _propTypes.default.elementType,
139
- /**
140
- * If `true`, the loading indicator is visible and the button is disabled.
141
- * 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).
142
- * @default null
143
- */
144
- loading: _propTypes.default.bool,
145
- /**
146
- * Element placed before the children if the button is in loading state.
147
- * The node should contain an element with `role="progressbar"` with an accessible name.
148
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
149
- * @default <CircularProgress color="inherit" size={16} />
150
- */
151
- loadingIndicator: _propTypes.default.node,
152
- /**
153
- * Callback fired when the component is focused with a keyboard.
154
- * We trigger a `onFocus` callback too.
155
- */
156
- onFocusVisible: _propTypes.default.func,
157
73
  /**
158
74
  * A function to customize rendering of the component.
159
75
  */
160
76
  render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
161
- /**
162
- * The size of the component.
163
- * `small` is equivalent to the dense button styling.
164
- */
77
+ role: _propTypes.default.string,
165
78
  size: _propTypes.default.oneOf(['large', 'medium', 'small']),
166
79
  style: _propTypes.default.object,
167
- /**
168
- * The system prop that allows defining system overrides as well as additional CSS styles.
169
- */
170
- 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]),
171
80
  tabIndex: _propTypes.default.number,
172
- /**
173
- * Props applied to the `TouchRipple` element.
174
- */
175
- TouchRippleProps: _propTypes.default.object,
176
- /**
177
- * A ref that points to the `TouchRipple` element.
178
- */
81
+ title: _propTypes.default.string,
179
82
  touchRippleRef: _propTypes.default.any
180
83
  } : void 0;
@@ -113,8 +113,6 @@ process.env.NODE_ENV !== "production" ? QuickFilterControl.propTypes = {
113
113
  current: _propTypes.default.object
114
114
  })]),
115
115
  label: _propTypes.default.node,
116
- onChange: _propTypes.default.func,
117
- onKeyDown: _propTypes.default.func,
118
116
  placeholder: _propTypes.default.string,
119
117
  /**
120
118
  * A function to customize rendering of the component.
@@ -66,146 +66,21 @@ process.env.NODE_ENV !== "production" ? QuickFilterTrigger.propTypes = {
66
66
  // | These PropTypes are generated from the TypeScript type definitions |
67
67
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
68
68
  // ----------------------------------------------------------------------
69
- /**
70
- * A ref for imperative actions.
71
- * It currently only supports `focusVisible()` action.
72
- */
73
- action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
74
- current: _propTypes.default.shape({
75
- focusVisible: _propTypes.default.func.isRequired
76
- })
77
- })]),
78
- /**
79
- * If `true`, the ripples are centered.
80
- * They won't start at the cursor interaction position.
81
- * @default false
82
- */
83
- centerRipple: _propTypes.default.bool,
84
69
  /**
85
70
  * Override or extend the styles applied to the component.
86
71
  */
87
72
  className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
88
- /**
89
- * The color of the component.
90
- * It supports both default and custom theme colors, which can be added as shown in the
91
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
92
- * @default 'primary'
93
- */
94
- color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
95
- component: _propTypes.default.elementType,
96
- /**
97
- * If `true`, the component is disabled.
98
- */
99
73
  disabled: _propTypes.default.bool,
100
- /**
101
- * If `true`, no elevation is used.
102
- * @default false
103
- */
104
- disableElevation: _propTypes.default.bool,
105
- /**
106
- * If `true`, the keyboard focus ripple is disabled.
107
- * @default false
108
- */
109
- disableFocusRipple: _propTypes.default.bool,
110
- /**
111
- * If `true`, the ripple effect is disabled.
112
- *
113
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
114
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
115
- * @default false
116
- */
117
- disableRipple: _propTypes.default.bool,
118
- /**
119
- * If `true`, the touch ripple effect is disabled.
120
- * @default false
121
- */
122
- disableTouchRipple: _propTypes.default.bool,
123
- /**
124
- * Element placed after the children.
125
- */
126
- endIcon: _propTypes.default.node,
127
- /**
128
- * If `true`, the base button will have a keyboard focus ripple.
129
- * @default false
130
- */
131
- focusRipple: _propTypes.default.bool,
132
- /**
133
- * This prop can help identify which element has keyboard focus.
134
- * The class name will be applied when the element gains the focus through keyboard interaction.
135
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
136
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
137
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
138
- * if needed.
139
- */
140
- focusVisibleClassName: _propTypes.default.string,
141
- /**
142
- * If `true`, the button will take up the full width of its container.
143
- * @default false
144
- */
145
- fullWidth: _propTypes.default.bool,
146
- /**
147
- * The URL to link to when the button is clicked.
148
- * If defined, an `a` element will be used as the root node.
149
- */
150
- href: _propTypes.default.string,
151
- /**
152
- * The component used to render a link when the `href` prop is provided.
153
- * @default 'a'
154
- */
155
- LinkComponent: _propTypes.default.elementType,
156
- /**
157
- * If `true`, the loading indicator is visible and the button is disabled.
158
- * 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).
159
- * @default null
160
- */
161
- loading: _propTypes.default.bool,
162
- /**
163
- * Element placed before the children if the button is in loading state.
164
- * The node should contain an element with `role="progressbar"` with an accessible name.
165
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
166
- * @default <CircularProgress color="inherit" size={16} />
167
- */
168
- loadingIndicator: _propTypes.default.node,
169
- /**
170
- * The loading indicator can be positioned on the start, end, or the center of the button.
171
- * @default 'center'
172
- */
173
- loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
174
- /**
175
- * Callback fired when the component is focused with a keyboard.
176
- * We trigger a `onFocus` callback too.
177
- */
178
- onFocusVisible: _propTypes.default.func,
74
+ id: _propTypes.default.string,
179
75
  /**
180
76
  * A function to customize rendering of the component.
181
77
  */
182
78
  render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
183
- /**
184
- * The size of the component.
185
- * `small` is equivalent to the dense button styling.
186
- */
79
+ role: _propTypes.default.string,
187
80
  size: _propTypes.default.oneOf(['large', 'medium', 'small']),
188
- /**
189
- * Element placed before the children.
190
- */
191
81
  startIcon: _propTypes.default.node,
192
82
  style: _propTypes.default.object,
193
- /**
194
- * The system prop that allows defining system overrides as well as additional CSS styles.
195
- */
196
- 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]),
197
83
  tabIndex: _propTypes.default.number,
198
- /**
199
- * Props applied to the `TouchRipple` element.
200
- */
201
- TouchRippleProps: _propTypes.default.object,
202
- /**
203
- * A ref that points to the `TouchRipple` element.
204
- */
205
- touchRippleRef: _propTypes.default.any,
206
- /**
207
- * The variant to use.
208
- * @default 'text'
209
- */
210
- variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
84
+ title: _propTypes.default.string,
85
+ touchRippleRef: _propTypes.default.any
211
86
  } : void 0;
@@ -18,6 +18,7 @@ var _GridToolbarFilterButton = require("./GridToolbarFilterButton");
18
18
  var _GridToolbarExport = require("./GridToolbarExport");
19
19
  var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
20
20
  var _GridToolbarQuickFilter = require("./GridToolbarQuickFilter");
21
+ var _GridToolbar = require("../toolbarV8/GridToolbar");
21
22
  var _jsxRuntime = require("react/jsx-runtime");
22
23
  const _excluded = ["className", "csvOptions", "printOptions", "excelOptions", "showQuickFilter", "quickFilterProps"];
23
24
  const GridToolbar = exports.GridToolbar = (0, _forwardRef.forwardRef)(function GridToolbar(props, ref) {
@@ -38,7 +39,9 @@ const GridToolbar = exports.GridToolbar = (0, _forwardRef.forwardRef)(function G
38
39
  }
39
40
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridToolbarContainer.GridToolbarContainer, (0, _extends2.default)({}, other, {
40
41
  ref: ref,
41
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarColumnsButton.GridToolbarColumnsButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarFilterButton.GridToolbarFilterButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarDensitySelector.GridToolbarDensitySelector, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarExport.GridToolbarExport, {
42
+ children: [rootProps.label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbar.GridToolbarLabel, {
43
+ children: rootProps.label
44
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarColumnsButton.GridToolbarColumnsButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarFilterButton.GridToolbarFilterButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarDensitySelector.GridToolbarDensitySelector, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarExport.GridToolbarExport, {
42
45
  csvOptions: csvOptions,
43
46
  printOptions: printOptions
44
47
  // @ts-ignore
@@ -108,7 +108,7 @@ const GridToolbarDensitySelector = exports.GridToolbarDensitySelector = (0, _for
108
108
  open: open,
109
109
  target: buttonRef.current,
110
110
  onClose: handleDensitySelectorClose,
111
- position: "bottom-start",
111
+ position: "bottom-end",
112
112
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuList, {
113
113
  id: densityMenuId,
114
114
  className: _gridClasses.gridClasses.menuList,
@@ -69,7 +69,7 @@ const GridToolbarExportContainer = exports.GridToolbarExportContainer = (0, _for
69
69
  open: open,
70
70
  target: buttonRef.current,
71
71
  onClose: handleMenuClose,
72
- position: "bottom-start",
72
+ position: "bottom-end",
73
73
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuList, {
74
74
  id: exportMenuId,
75
75
  className: _gridClasses.gridClasses.menuList,
@@ -38,8 +38,7 @@ const GridQuickFilterRoot = (0, _system.styled)('div', {
38
38
  slot: 'ToolbarQuickFilter'
39
39
  })({
40
40
  display: 'grid',
41
- alignItems: 'center',
42
- marginLeft: 'auto'
41
+ alignItems: 'center'
43
42
  });
44
43
  const GridQuickFilterTrigger = (0, _system.styled)(_toolbarV.ToolbarButton, {
45
44
  name: 'MuiDataGrid',