Skip to content

Commit

Permalink
refactor (react-data-grid-react-window): export all types and hooks …
Browse files Browse the repository at this point in the history
…git committed these change files (#269)
  • Loading branch information
alton-browsing authored Dec 16, 2024
1 parent 9c84034 commit 0dc6c0a
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "refactor (react-data-grid-react-window): export all types and hooks",
"packageName": "@fluentui-contrib/react-data-grid-react-window",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from './DataGrid';
export * from './DataGrid.types';
export * from './renderDataGrid';
export * from './useDataGrid';
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@fluentui/react-components';
import { HeaderRefContextProvider } from '../../contexts/headerRefContext';
import { BodyRefContextProvider } from '../../contexts/bodyRefContext';
import { DataGridState } from './DataGridBody.types';
import { DataGridState } from './DataGrid.types';

/**
* Render the final JSX of DataGrid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
DataGridProps,
} from '@fluentui/react-components';
import { useFluent, useScrollbarWidth } from '@fluentui/react-components';
import { DataGridState } from './DataGridBody.types';
import { DataGridState } from './DataGrid.types';

const TABLE_SELECTION_CELL_WIDTH = 44;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from './DataGridBody';
export * from './DataGridBody.types';
export * from './renderDataGridBody';
export * from './useDataGridBody';
export * from './useDataGridBodyStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './DataGridHeader';
export * from './useDataGridHeader';
export * from './useDataGridHeaderStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './DataGridRow';
export * from './useDataGridRow';
export * from './useDataGridRow.styles';
32 changes: 27 additions & 5 deletions packages/react-data-grid-react-window/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
export { DataGridBody } from './components/DataGridBody';
export { DataGrid } from './components/DataGrid';
export { DataGridRow } from './components/DataGridRow';
export { DataGridHeader } from './components/DataGridHeader';
export {
DataGridBody,
renderDataGridBody_unstable,
useDataGridBody_unstable,
useDataGridBodyStyles_unstable,
} from './components/DataGridBody';
export {
DataGrid,
renderDataGrid_unstable,
useDataGrid_unstable,
} from './components/DataGrid';
export {
DataGridRow,
useDataGridRow_unstable,
useDataGridRowStyles_unstable,
} from './components/DataGridRow';
export {
DataGridHeader,
useDataGridHeader_unstable,
useDataGridHeaderStyles_unstable,
} from './components/DataGridHeader';

export {
DataGridCell,
Expand All @@ -18,4 +35,9 @@ export type {
DataGridProps,
} from '@fluentui/react-components';

export type { DataGridBodyProps, RowRenderer } from './components/DataGridBody';
export type {
DataGridBodyProps,
DataGridBodyState,
RowRenderer,
} from './components/DataGridBody';
export type { DataGridState } from './components/DataGrid';

0 comments on commit 0dc6c0a

Please sign in to comment.