Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor (react-data-grid-react-window): export all types and hooks git committed these change files #269

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
28 changes: 23 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,5 @@ 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';
Loading