88}  from  'react' ; 
99import  type  {  Key ,  KeyboardEvent  }  from  'react' ; 
1010import  {  flushSync  }  from  'react-dom' ; 
11- import  clsx  from  'clsx' ; 
1211
1312import  { 
1413  HeaderRowSelectionChangeContext , 
@@ -26,6 +25,7 @@ import {
2625  abs , 
2726  assertIsValidKeyGetter , 
2827  canExitGrid , 
28+   classnames , 
2929  createCellEvent , 
3030  getCellStyle , 
3131  getColSpan , 
@@ -991,7 +991,10 @@ export function DataGrid<R, SR = unknown, K extends Key = Key>(props: DataGridPr
991991    return  ( 
992992      < div 
993993        style = { dragHandleStyle } 
994-         className = { clsx ( cellDragHandleClassname ,  column . frozen  &&  cellDragHandleFrozenClassname ) } 
994+         className = { classnames ( 
995+           cellDragHandleClassname , 
996+           column . frozen  &&  cellDragHandleFrozenClassname 
997+         ) } 
995998        onPointerDown = { handleDragHandlePointerDown } 
996999        onPointerMove = { isDragging  ? handleDragHandlePointerMove  : undefined } 
9971000        onLostPointerCapture = { isDragging  ? handleDragHandleLostPointerCapture  : undefined } 
@@ -1185,7 +1188,7 @@ export function DataGrid<R, SR = unknown, K extends Key = Key>(props: DataGridPr
11851188      // Scrollable containers without tabIndex are keyboard focusable in Chrome only if there is no focusable element inside 
11861189      // whereas they are always focusable in Firefox. We need to set tabIndex to have a consistent behavior across browsers. 
11871190      tabIndex = { - 1 } 
1188-       className = { clsx ( 
1191+       className = { classnames ( 
11891192        rootClassname , 
11901193        { 
11911194          [ viewportDraggingClassname ] : isDragging 
@@ -1329,7 +1332,7 @@ export function DataGrid<R, SR = unknown, K extends Key = Key>(props: DataGridPr
13291332        < div 
13301333          ref = { focusSinkRef } 
13311334          tabIndex = { isGroupRowFocused  ? 0  : - 1 } 
1332-           className = { clsx ( focusSinkClassname ,  { 
1335+           className = { classnames ( focusSinkClassname ,  { 
13331336            [ focusSinkHeaderAndSummaryClassname ] : ! isRowIdxWithinViewportBounds ( 
13341337              selectedPosition . rowIdx 
13351338            ) , 
0 commit comments