From 88f9be4cc4fe4602a4809d43e250b162840c9545 Mon Sep 17 00:00:00 2001 From: trevor-anderson Date: Tue, 20 Feb 2024 11:12:21 -0500 Subject: [PATCH] feat: add exports of DataGrid classNames --- src/components/DataGrid/classNames.ts | 9 +++++++-- src/components/DataGrid/index.ts | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/DataGrid/classNames.ts b/src/components/DataGrid/classNames.ts index 3e43d2d2..2e1bc5b7 100644 --- a/src/components/DataGrid/classNames.ts +++ b/src/components/DataGrid/classNames.ts @@ -1,7 +1,12 @@ import { gridClasses } from "@mui/x-data-grid"; +/** + * Class names for `DataGrid` components (src/components/DataGrid/). + * + * This object includes {@link gridClasses} exported from MUI's `DataGrid` package. + */ export const dataGridClassNames = { ...gridClasses, - rowIndexEven: "data-grid-row-index-even", - rowIndexOdd: "data-grid-row-index-odd", + rowIndexEven: "data-grid-row__index-even", + rowIndexOdd: "data-grid-row__index-odd", }; diff --git a/src/components/DataGrid/index.ts b/src/components/DataGrid/index.ts index 3eb59911..43a0d496 100644 --- a/src/components/DataGrid/index.ts +++ b/src/components/DataGrid/index.ts @@ -1,2 +1,3 @@ export * from "./DataGrid"; export * from "./classNames"; +export * from "./helpers";