From d40924fc48bbefa26d60760a91d5afc8eecca0c3 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 29 Sep 2024 21:07:25 +0200 Subject: [PATCH] [core] Fix class name composition order --- .../src/components/cell/GridCell.tsx | 2 +- .../columnHeaders/GridBaseColumnHeaders.tsx | 2 +- .../src/components/containers/GridRoot.tsx | 2 +- .../containers/GridToolbarContainer.tsx | 2 +- .../src/components/menu/GridMenu.tsx | 2 +- .../src/components/panel/GridPanel.tsx | 2 +- .../src/components/panel/GridPanelContent.tsx | 2 +- .../src/components/panel/GridPanelFooter.tsx | 2 +- .../src/components/panel/GridPanelHeader.tsx | 2 +- .../src/components/panel/GridPanelWrapper.tsx | 2 +- .../toolbar/GridToolbarQuickFilter.tsx | 2 +- .../DateRangeCalendar/DateRangeCalendar.tsx | 2 +- .../DateRangePickerToolbar.tsx | 2 +- .../DateTimeRangePickerToolbar.tsx | 2 +- .../src/DateTimePicker/DateTimePickerTabs.tsx | 2 +- .../DesktopDateTimePickerLayout.tsx | 2 +- .../PickersCalendarHeader.tsx | 2 +- .../src/PickersLayout/PickersLayout.tsx | 2 +- .../x-date-pickers/src/TimeClock/Clock.tsx | 2 +- .../src/TimeClock/ClockNumber.tsx | 2 +- .../src/TimeClock/ClockPointer.tsx | 2 +- .../components/PickersToolbarButton.tsx | 2 +- .../components/PickersToolbarText.tsx | 2 +- .../src/TreeItem/TreeItemContent.tsx | 20 +++++++++++-------- 24 files changed, 35 insertions(+), 31 deletions(-) diff --git a/packages/x-data-grid/src/components/cell/GridCell.tsx b/packages/x-data-grid/src/components/cell/GridCell.tsx index c742def4102e5..f47282bae2e4e 100644 --- a/packages/x-data-grid/src/components/cell/GridCell.tsx +++ b/packages/x-data-grid/src/components/cell/GridCell.tsx @@ -481,7 +481,7 @@ const GridCell = React.forwardRef(function GridCe return (
(function GridRo return ( diff --git a/packages/x-data-grid/src/components/containers/GridToolbarContainer.tsx b/packages/x-data-grid/src/components/containers/GridToolbarContainer.tsx index e53f8d7809d1e..e797f56e7b5df 100644 --- a/packages/x-data-grid/src/components/containers/GridToolbarContainer.tsx +++ b/packages/x-data-grid/src/components/containers/GridToolbarContainer.tsx @@ -47,7 +47,7 @@ const GridToolbarContainer = React.forwardRef diff --git a/packages/x-data-grid/src/components/menu/GridMenu.tsx b/packages/x-data-grid/src/components/menu/GridMenu.tsx index 5c338398ba4d7..34440811f93e8 100644 --- a/packages/x-data-grid/src/components/menu/GridMenu.tsx +++ b/packages/x-data-grid/src/components/menu/GridMenu.tsx @@ -111,7 +111,7 @@ function GridMenu(props: GridMenuProps) { return ( ((props, ref) & { sx?: S return ( diff --git a/packages/x-data-grid/src/components/panel/GridPanelFooter.tsx b/packages/x-data-grid/src/components/panel/GridPanelFooter.tsx index 7744ad239b7d3..358fe2d4cf6c6 100644 --- a/packages/x-data-grid/src/components/panel/GridPanelFooter.tsx +++ b/packages/x-data-grid/src/components/panel/GridPanelFooter.tsx @@ -36,7 +36,7 @@ function GridPanelFooter(props: React.HTMLAttributes & { sx?: Sx return ( diff --git a/packages/x-data-grid/src/components/panel/GridPanelHeader.tsx b/packages/x-data-grid/src/components/panel/GridPanelHeader.tsx index 64cf34faf3736..39471e04a49e5 100644 --- a/packages/x-data-grid/src/components/panel/GridPanelHeader.tsx +++ b/packages/x-data-grid/src/components/panel/GridPanelHeader.tsx @@ -34,7 +34,7 @@ function GridPanelHeader(props: React.HTMLAttributes & { sx?: Sx return ( diff --git a/packages/x-data-grid/src/components/panel/GridPanelWrapper.tsx b/packages/x-data-grid/src/components/panel/GridPanelWrapper.tsx index d1afe7d8f2920..6bac76afe9d59 100644 --- a/packages/x-data-grid/src/components/panel/GridPanelWrapper.tsx +++ b/packages/x-data-grid/src/components/panel/GridPanelWrapper.tsx @@ -55,7 +55,7 @@ const GridPanelWrapper = React.forwardRef diff --git a/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx b/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx index 4921f12486ed7..a323c08b20eb8 100644 --- a/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx +++ b/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx @@ -146,7 +146,7 @@ function GridToolbarQuickFilter(props: GridToolbarQuickFilterProps) { variant="standard" value={searchValue} onChange={handleSearchValueChange} - className={clsx(className, classes.root)} + className={clsx(classes.root, className)} placeholder={apiRef.current.getLocaleText('toolbarQuickFilterPlaceholder')} aria-label={apiRef.current.getLocaleText('toolbarQuickFilterLabel')} type="search" diff --git a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx index d46019e3c753b..2dbfe92240659 100644 --- a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx +++ b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.tsx @@ -543,7 +543,7 @@ const DateRangeCalendar = React.forwardRef(function DateRangeCalendar< return ( diff --git a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx index bd0064bc58e57..ca7361d378d4c 100644 --- a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx +++ b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx @@ -105,7 +105,7 @@ const DateRangePickerToolbar = React.forwardRef(function DateRangePickerToolbar< {...other} toolbarTitle={translations.dateRangePickerToolbarTitle} isLandscape={false} - className={clsx(className, classes.root)} + className={clsx(classes.root, className)} ownerState={ownerState} ref={ref} > diff --git a/packages/x-date-pickers-pro/src/DateTimeRangePicker/DateTimeRangePickerToolbar.tsx b/packages/x-date-pickers-pro/src/DateTimeRangePicker/DateTimeRangePickerToolbar.tsx index 9a16f3cba0691..4247ad3b5b02a 100644 --- a/packages/x-date-pickers-pro/src/DateTimeRangePicker/DateTimeRangePickerToolbar.tsx +++ b/packages/x-date-pickers-pro/src/DateTimeRangePicker/DateTimeRangePickerToolbar.tsx @@ -204,7 +204,7 @@ const DateTimeRangePickerToolbar = React.forwardRef(function DateTimeRangePicker return ( {isLandscape ? shortcuts : toolbar} diff --git a/packages/x-date-pickers/src/TimeClock/Clock.tsx b/packages/x-date-pickers/src/TimeClock/Clock.tsx index d7fc0a8b2e608..8b3d64f2f579e 100644 --- a/packages/x-date-pickers/src/TimeClock/Clock.tsx +++ b/packages/x-date-pickers/src/TimeClock/Clock.tsx @@ -343,7 +343,7 @@ export function Clock(inProps: ClockProps) }; return ( - + diff --git a/packages/x-date-pickers/src/internals/components/PickersToolbarButton.tsx b/packages/x-date-pickers/src/internals/components/PickersToolbarButton.tsx index e79c5cec63460..d5f20b9cc52a1 100644 --- a/packages/x-date-pickers/src/internals/components/PickersToolbarButton.tsx +++ b/packages/x-date-pickers/src/internals/components/PickersToolbarButton.tsx @@ -53,7 +53,7 @@ export const PickersToolbarButton = React.forwardRef(function PickersToolbarButt data-mui-test="toolbar-button" variant="text" ref={ref} - className={clsx(className, classes.root)} + className={clsx(classes.root, className)} {...(width ? { sx: { width } } : {})} {...other} > diff --git a/packages/x-date-pickers/src/internals/components/PickersToolbarText.tsx b/packages/x-date-pickers/src/internals/components/PickersToolbarText.tsx index a3b0c533e77eb..969f0ae05f07f 100644 --- a/packages/x-date-pickers/src/internals/components/PickersToolbarText.tsx +++ b/packages/x-date-pickers/src/internals/components/PickersToolbarText.tsx @@ -56,7 +56,7 @@ export const PickersToolbarText = React.forwardRef diff --git a/packages/x-tree-view/src/TreeItem/TreeItemContent.tsx b/packages/x-tree-view/src/TreeItem/TreeItemContent.tsx index 247c593f687da..61f3bacc9203a 100644 --- a/packages/x-tree-view/src/TreeItem/TreeItemContent.tsx +++ b/packages/x-tree-view/src/TreeItem/TreeItemContent.tsx @@ -147,14 +147,18 @@ const TreeItemContent = React.forwardRef(function TreeItemContent( /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */