Skip to content

Commit

Permalink
export GridColumnHeadersProps
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed May 23, 2024
1 parent 32da394 commit 9c16d4e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/x-data-grid-premium/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export * from './models';
export * from './components';

export { GridColumnHeaders } from '@mui/x-data-grid-pro';
export type { GridColumnHeadersProps } from '@mui/x-data-grid-pro';

export type {
DataGridPremiumProps,
Expand Down
4 changes: 2 additions & 2 deletions packages/x-data-grid-pro/src/components/GridColumnHeaders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const Filler = styled('div')({
backgroundColor: 'var(--DataGrid-containerBackground)',
});

interface DataGridProColumnHeadersProps
export interface GridColumnHeadersProps
extends React.HTMLAttributes<HTMLDivElement>,
UseGridColumnHeadersProps {}

const GridColumnHeaders = React.forwardRef<HTMLDivElement, DataGridProColumnHeadersProps>(
const GridColumnHeaders = React.forwardRef<HTMLDivElement, GridColumnHeadersProps>(
function GridColumnHeaders(props, ref) {
const {
style,
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid-pro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ export {
} from './components/reexports';

export { GridColumnHeaders } from './components/GridColumnHeaders';
export type { GridColumnHeadersProps } from './components/GridColumnHeaders';
1 change: 1 addition & 0 deletions packages/x-data-grid/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type { GridToolbarExportProps } from './components/toolbar/GridToolbarExp
export type { GridExportFormat, GridExportExtension } from './models/gridExport';

export { GridColumnHeaders } from './components/GridColumnHeaders';
export type { GridColumnHeadersProps } from './components/GridColumnHeaders';

/**
* Reexportable components.
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid-premium.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
{ "name": "GridColumnHeaderSeparatorSides", "kind": "Enum" },
{ "name": "GridColumnHeaderSortIcon", "kind": "Variable" },
{ "name": "GridColumnHeaderSortIconProps", "kind": "Interface" },
{ "name": "GridColumnHeadersProps", "kind": "Interface" },
{ "name": "GridColumnHeaderTitle", "kind": "Function" },
{ "name": "GridColumnHeaderTitleProps", "kind": "Interface" },
{ "name": "GridColumnIcon", "kind": "Variable" },
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid-pro.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
{ "name": "GridColumnHeaderSeparatorSides", "kind": "Enum" },
{ "name": "GridColumnHeaderSortIcon", "kind": "Variable" },
{ "name": "GridColumnHeaderSortIconProps", "kind": "Interface" },
{ "name": "GridColumnHeadersProps", "kind": "Interface" },
{ "name": "GridColumnHeaderTitle", "kind": "Function" },
{ "name": "GridColumnHeaderTitleProps", "kind": "Interface" },
{ "name": "GridColumnIcon", "kind": "Variable" },
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{ "name": "GridColumnHeaderSeparatorSides", "kind": "Enum" },
{ "name": "GridColumnHeaderSortIcon", "kind": "Variable" },
{ "name": "GridColumnHeaderSortIconProps", "kind": "Interface" },
{ "name": "GridColumnHeadersProps", "kind": "Interface" },
{ "name": "GridColumnHeaderTitle", "kind": "Function" },
{ "name": "GridColumnHeaderTitleProps", "kind": "Interface" },
{ "name": "GridColumnIcon", "kind": "Variable" },
Expand Down

0 comments on commit 9c16d4e

Please sign in to comment.