-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(react-headless-components-preview): add headless Table and DataGrid component families #36052
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
Draft
dmytrokirpa
wants to merge
3
commits into
microsoft:master
Choose a base branch
from
dmytrokirpa:feat/headless-table-datagrid
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
ad8e7e3
test(react-table): add unit tests for useTable_unstable and useDataGr…
dmytrokirpa 4768e11
feat(react-table): export useTableContextValues_unstable and useTable…
dmytrokirpa 2bbacfb
feat(react-headless-components-preview): add headless Table and DataG…
dmytrokirpa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-table-1149f49d-d982-463f-aff2-2379768240a3.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "patch", | ||
| "comment": "feat: export useTableContextValues_unstable and useTableCellLayoutContextValues_unstable", | ||
| "packageName": "@fluentui/react-table", | ||
| "email": "dmytrokirpa@microsoft.com", | ||
| "dependentChangeType": "patch" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/react-components/react-headless-components-preview/library/src/DataGrid.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| export { DataGrid, renderDataGrid, useDataGrid, useDataGridContextValues } from './components/DataGrid'; | ||
| export type { | ||
| DataGridSlots, | ||
| DataGridProps, | ||
| DataGridState, | ||
| DataGridContextValues, | ||
| DataGridFocusMode, | ||
| } from './components/DataGrid'; | ||
|
|
||
| export { DataGridBody, renderDataGridBody, useDataGridBody } from './components/DataGrid'; | ||
| export type { DataGridBodySlots, DataGridBodyProps, DataGridBodyState, RowRenderFunction } from './components/DataGrid'; | ||
|
|
||
| export { DataGridHeader, renderDataGridHeader, useDataGridHeader } from './components/DataGrid'; | ||
| export type { DataGridHeaderSlots, DataGridHeaderProps, DataGridHeaderState } from './components/DataGrid'; | ||
|
|
||
| export { DataGridHeaderCell, renderDataGridHeaderCell, useDataGridHeaderCell } from './components/DataGrid'; | ||
| export type { DataGridHeaderCellSlots, DataGridHeaderCellProps, DataGridHeaderCellState } from './components/DataGrid'; | ||
|
|
||
| export { DataGridRow, renderDataGridRow, useDataGridRow } from './components/DataGrid'; | ||
| export type { DataGridRowSlots, DataGridRowProps, DataGridRowState, CellRenderFunction } from './components/DataGrid'; | ||
|
|
||
| export { DataGridCell, renderDataGridCell, useDataGridCell } from './components/DataGrid'; | ||
| export type { | ||
| DataGridCellSlots, | ||
| DataGridCellProps, | ||
| DataGridCellState, | ||
| DataGridCellFocusMode, | ||
| } from './components/DataGrid'; | ||
|
|
||
| export { DataGridSelectionCell, renderDataGridSelectionCell, useDataGridSelectionCell } from './components/DataGrid'; | ||
| export type { | ||
| DataGridSelectionCellSlots, | ||
| DataGridSelectionCellProps, | ||
| DataGridSelectionCellState, | ||
| } from './components/DataGrid'; |
39 changes: 39 additions & 0 deletions
39
packages/react-components/react-headless-components-preview/library/src/Table.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| export { Table, renderTable, useTable, useTableContextValues } from './components/Table'; | ||
| export type { TableSlots, TableProps, TableState, TableContextValues, SortDirection } from './components/Table'; | ||
|
|
||
| export { TableBody, renderTableBody, useTableBody } from './components/Table'; | ||
| export type { TableBodySlots, TableBodyProps, TableBodyState } from './components/Table'; | ||
|
|
||
| export { TableHeader, renderTableHeader, useTableHeader } from './components/Table'; | ||
| export type { TableHeaderSlots, TableHeaderProps, TableHeaderState } from './components/Table'; | ||
|
|
||
| export { TableHeaderCell, renderTableHeaderCell, useTableHeaderCell } from './components/Table'; | ||
| export type { TableHeaderCellSlots, TableHeaderCellProps, TableHeaderCellState } from './components/Table'; | ||
|
|
||
| export { TableRow, renderTableRow, useTableRow } from './components/Table'; | ||
| export type { TableRowSlots, TableRowProps, TableRowState } from './components/Table'; | ||
|
|
||
| export { TableCell, renderTableCell, useTableCell } from './components/Table'; | ||
| export type { TableCellSlots, TableCellProps, TableCellState } from './components/Table'; | ||
|
|
||
| export { TableSelectionCell, renderTableSelectionCell, useTableSelectionCell } from './components/Table'; | ||
| export type { TableSelectionCellSlots, TableSelectionCellProps, TableSelectionCellState } from './components/Table'; | ||
|
|
||
| export { TableCellActions, renderTableCellActions, useTableCellActions } from './components/Table'; | ||
| export type { TableCellActionsSlots, TableCellActionsProps, TableCellActionsState } from './components/Table'; | ||
|
|
||
| export { | ||
| TableCellLayout, | ||
| renderTableCellLayout, | ||
| useTableCellLayout, | ||
| useTableCellLayoutContextValues, | ||
| } from './components/Table'; | ||
| export type { | ||
| TableCellLayoutSlots, | ||
| TableCellLayoutProps, | ||
| TableCellLayoutState, | ||
| TableCellLayoutContextValues, | ||
| } from './components/Table'; | ||
|
|
||
| export { TableResizeHandle, renderTableResizeHandle, useTableResizeHandle } from './components/Table'; | ||
| export type { TableResizeHandleSlots, TableResizeHandleProps, TableResizeHandleState } from './components/Table'; |
21 changes: 21 additions & 0 deletions
21
...nents/react-headless-components-preview/library/src/components/DataGrid/DataGrid.test.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import * as React from 'react'; | ||
| import { render } from '@testing-library/react'; | ||
| import { isConformant } from '../../testing/isConformant'; | ||
| import { DataGrid } from './DataGrid'; | ||
| import { createTableColumn } from '@fluentui/react-table'; | ||
|
|
||
| const columns = [createTableColumn({ columnId: 'name' })]; | ||
| const items = [{ name: 'Alice' }]; | ||
|
|
||
| describe('DataGrid', () => { | ||
| isConformant({ | ||
| Component: DataGrid, | ||
| displayName: 'DataGrid', | ||
| requiredProps: { columns, items }, | ||
| }); | ||
|
|
||
| it('renders with role="grid" by default', () => { | ||
| const { getByRole } = render(<DataGrid columns={columns} items={items} />); | ||
| expect(getByRole('grid')).toBeInTheDocument(); | ||
| }); | ||
| }); |
13 changes: 13 additions & 0 deletions
13
...components/react-headless-components-preview/library/src/components/DataGrid/DataGrid.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| 'use client'; | ||
| import * as React from 'react'; | ||
| import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
| import type { DataGridProps } from './DataGrid.types'; | ||
| import { useDataGrid, useDataGridContextValues } from './useDataGrid'; | ||
| import { renderDataGrid } from './renderDataGrid'; | ||
|
|
||
| export const DataGrid: ForwardRefComponent<DataGridProps> = React.forwardRef((props, ref) => { | ||
| const state = useDataGrid(props, ref); | ||
| const contextValues = useDataGridContextValues(state); | ||
| return renderDataGrid(state, contextValues); | ||
| }); | ||
| DataGrid.displayName = 'DataGrid'; |
13 changes: 13 additions & 0 deletions
13
...nents/react-headless-components-preview/library/src/components/DataGrid/DataGrid.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import type { | ||
| DataGridSlots as DataGridBaseSlots, | ||
| DataGridProps as DataGridBaseProps, | ||
| DataGridState as DataGridBaseState, | ||
| DataGridContextValues as DataGridBaseContextValues, | ||
| DataGridFocusMode, | ||
| } from '@fluentui/react-table'; | ||
|
|
||
| export type DataGridSlots = DataGridBaseSlots; | ||
| export type DataGridProps = DataGridBaseProps; | ||
| export type DataGridState = DataGridBaseState; | ||
| export type DataGridContextValues = DataGridBaseContextValues; | ||
| export type { DataGridFocusMode }; |
11 changes: 11 additions & 0 deletions
11
...headless-components-preview/library/src/components/DataGrid/DataGridBody/DataGridBody.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 'use client'; | ||
| import * as React from 'react'; | ||
| import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
| import type { DataGridBodyProps } from './DataGridBody.types'; | ||
| import { useDataGridBody } from './useDataGridBody'; | ||
| import { renderDataGridBody } from './renderDataGridBody'; | ||
|
|
||
| export const DataGridBody: ForwardRefComponent<DataGridBodyProps> = React.forwardRef((props, ref) => { | ||
| return renderDataGridBody(useDataGridBody(props, ref)); | ||
| }); | ||
| DataGridBody.displayName = 'DataGridBody'; |
11 changes: 11 additions & 0 deletions
11
...ess-components-preview/library/src/components/DataGrid/DataGridBody/DataGridBody.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import type { | ||
| DataGridBodySlots as DataGridBodyBaseSlots, | ||
| DataGridBodyProps as DataGridBodyBaseProps, | ||
| DataGridBodyState as DataGridBodyBaseState, | ||
| RowRenderFunction, | ||
| } from '@fluentui/react-table'; | ||
|
|
||
| export type DataGridBodySlots = DataGridBodyBaseSlots; | ||
| export type DataGridBodyProps = DataGridBodyBaseProps; | ||
| export type DataGridBodyState = DataGridBodyBaseState; | ||
| export type { RowRenderFunction }; |
4 changes: 4 additions & 0 deletions
4
...s/react-headless-components-preview/library/src/components/DataGrid/DataGridBody/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export { DataGridBody } from './DataGridBody'; | ||
| export { useDataGridBody } from './useDataGridBody'; | ||
| export { renderDataGridBody } from './renderDataGridBody'; | ||
| export type { DataGridBodySlots, DataGridBodyProps, DataGridBodyState, RowRenderFunction } from './DataGridBody.types'; |
2 changes: 2 additions & 0 deletions
2
...ess-components-preview/library/src/components/DataGrid/DataGridBody/renderDataGridBody.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { renderDataGridBody_unstable } from '@fluentui/react-table'; | ||
| export const renderDataGridBody = renderDataGridBody_unstable; |
3 changes: 3 additions & 0 deletions
3
...adless-components-preview/library/src/components/DataGrid/DataGridBody/useDataGridBody.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| 'use client'; | ||
| import { useDataGridBody_unstable } from '@fluentui/react-table'; | ||
| export const useDataGridBody = useDataGridBody_unstable; |
11 changes: 11 additions & 0 deletions
11
...headless-components-preview/library/src/components/DataGrid/DataGridCell/DataGridCell.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 'use client'; | ||
| import * as React from 'react'; | ||
| import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
| import type { DataGridCellProps } from './DataGridCell.types'; | ||
| import { useDataGridCell } from './useDataGridCell'; | ||
| import { renderDataGridCell } from './renderDataGridCell'; | ||
|
|
||
| export const DataGridCell: ForwardRefComponent<DataGridCellProps> = React.forwardRef((props, ref) => { | ||
| return renderDataGridCell(useDataGridCell(props, ref)); | ||
| }); | ||
| DataGridCell.displayName = 'DataGridCell'; |
11 changes: 11 additions & 0 deletions
11
...ess-components-preview/library/src/components/DataGrid/DataGridCell/DataGridCell.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import type { | ||
| DataGridCellSlots as DataGridCellBaseSlots, | ||
| DataGridCellProps as DataGridCellBaseProps, | ||
| DataGridCellState as DataGridCellBaseState, | ||
| DataGridCellFocusMode, | ||
| } from '@fluentui/react-table'; | ||
|
|
||
| export type DataGridCellSlots = DataGridCellBaseSlots; | ||
| export type DataGridCellProps = DataGridCellBaseProps; | ||
| export type DataGridCellState = DataGridCellBaseState; | ||
| export type { DataGridCellFocusMode }; |
9 changes: 9 additions & 0 deletions
9
...s/react-headless-components-preview/library/src/components/DataGrid/DataGridCell/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| export { DataGridCell } from './DataGridCell'; | ||
| export { useDataGridCell } from './useDataGridCell'; | ||
| export { renderDataGridCell } from './renderDataGridCell'; | ||
| export type { | ||
| DataGridCellSlots, | ||
| DataGridCellProps, | ||
| DataGridCellState, | ||
| DataGridCellFocusMode, | ||
| } from './DataGridCell.types'; |
2 changes: 2 additions & 0 deletions
2
...ess-components-preview/library/src/components/DataGrid/DataGridCell/renderDataGridCell.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { renderDataGridCell_unstable } from '@fluentui/react-table'; | ||
| export const renderDataGridCell = renderDataGridCell_unstable; |
3 changes: 3 additions & 0 deletions
3
...adless-components-preview/library/src/components/DataGrid/DataGridCell/useDataGridCell.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| 'use client'; | ||
| import { useDataGridCell_unstable } from '@fluentui/react-table'; | ||
| export const useDataGridCell = useDataGridCell_unstable; |
11 changes: 11 additions & 0 deletions
11
...less-components-preview/library/src/components/DataGrid/DataGridHeader/DataGridHeader.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 'use client'; | ||
| import * as React from 'react'; | ||
| import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
| import type { DataGridHeaderProps } from './DataGridHeader.types'; | ||
| import { useDataGridHeader } from './useDataGridHeader'; | ||
| import { renderDataGridHeader } from './renderDataGridHeader'; | ||
|
|
||
| export const DataGridHeader: ForwardRefComponent<DataGridHeaderProps> = React.forwardRef((props, ref) => { | ||
| return renderDataGridHeader(useDataGridHeader(props, ref)); | ||
| }); | ||
| DataGridHeader.displayName = 'DataGridHeader'; |
9 changes: 9 additions & 0 deletions
9
...components-preview/library/src/components/DataGrid/DataGridHeader/DataGridHeader.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import type { | ||
| DataGridHeaderSlots as DataGridHeaderBaseSlots, | ||
| DataGridHeaderProps as DataGridHeaderBaseProps, | ||
| DataGridHeaderState as DataGridHeaderBaseState, | ||
| } from '@fluentui/react-table'; | ||
|
|
||
| export type DataGridHeaderSlots = DataGridHeaderBaseSlots; | ||
| export type DataGridHeaderProps = DataGridHeaderBaseProps; | ||
| export type DataGridHeaderState = DataGridHeaderBaseState; |
4 changes: 4 additions & 0 deletions
4
...react-headless-components-preview/library/src/components/DataGrid/DataGridHeader/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export { DataGridHeader } from './DataGridHeader'; | ||
| export { useDataGridHeader } from './useDataGridHeader'; | ||
| export { renderDataGridHeader } from './renderDataGridHeader'; | ||
| export type { DataGridHeaderSlots, DataGridHeaderProps, DataGridHeaderState } from './DataGridHeader.types'; |
2 changes: 2 additions & 0 deletions
2
...components-preview/library/src/components/DataGrid/DataGridHeader/renderDataGridHeader.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { renderDataGridHeader_unstable } from '@fluentui/react-table'; | ||
| export const renderDataGridHeader = renderDataGridHeader_unstable; |
3 changes: 3 additions & 0 deletions
3
...ss-components-preview/library/src/components/DataGrid/DataGridHeader/useDataGridHeader.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| 'use client'; | ||
| import { useDataGridHeader_unstable } from '@fluentui/react-table'; | ||
| export const useDataGridHeader = useDataGridHeader_unstable; |
11 changes: 11 additions & 0 deletions
11
...ponents-preview/library/src/components/DataGrid/DataGridHeaderCell/DataGridHeaderCell.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 'use client'; | ||
| import * as React from 'react'; | ||
| import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
| import type { DataGridHeaderCellProps } from './DataGridHeaderCell.types'; | ||
| import { useDataGridHeaderCell } from './useDataGridHeaderCell'; | ||
| import { renderDataGridHeaderCell } from './renderDataGridHeaderCell'; | ||
|
|
||
| export const DataGridHeaderCell: ForwardRefComponent<DataGridHeaderCellProps> = React.forwardRef((props, ref) => { | ||
| return renderDataGridHeaderCell(useDataGridHeaderCell(props, ref)); | ||
| }); | ||
| DataGridHeaderCell.displayName = 'DataGridHeaderCell'; |
9 changes: 9 additions & 0 deletions
9
...ts-preview/library/src/components/DataGrid/DataGridHeaderCell/DataGridHeaderCell.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import type { | ||
| DataGridHeaderCellSlots as DataGridHeaderCellBaseSlots, | ||
| DataGridHeaderCellProps as DataGridHeaderCellBaseProps, | ||
| DataGridHeaderCellState as DataGridHeaderCellBaseState, | ||
| } from '@fluentui/react-table'; | ||
|
|
||
| export type DataGridHeaderCellSlots = DataGridHeaderCellBaseSlots; | ||
| export type DataGridHeaderCellProps = DataGridHeaderCellBaseProps; | ||
| export type DataGridHeaderCellState = DataGridHeaderCellBaseState; |
8 changes: 8 additions & 0 deletions
8
...t-headless-components-preview/library/src/components/DataGrid/DataGridHeaderCell/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| export { DataGridHeaderCell } from './DataGridHeaderCell'; | ||
| export { useDataGridHeaderCell } from './useDataGridHeaderCell'; | ||
| export { renderDataGridHeaderCell } from './renderDataGridHeaderCell'; | ||
| export type { | ||
| DataGridHeaderCellSlots, | ||
| DataGridHeaderCellProps, | ||
| DataGridHeaderCellState, | ||
| } from './DataGridHeaderCell.types'; |
2 changes: 2 additions & 0 deletions
2
...ts-preview/library/src/components/DataGrid/DataGridHeaderCell/renderDataGridHeaderCell.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { renderDataGridHeaderCell_unstable } from '@fluentui/react-table'; | ||
| export const renderDataGridHeaderCell = renderDataGridHeaderCell_unstable; |
3 changes: 3 additions & 0 deletions
3
...nents-preview/library/src/components/DataGrid/DataGridHeaderCell/useDataGridHeaderCell.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| 'use client'; | ||
| import { useDataGridHeaderCell_unstable } from '@fluentui/react-table'; | ||
| export const useDataGridHeaderCell = useDataGridHeaderCell_unstable; |
11 changes: 11 additions & 0 deletions
11
...t-headless-components-preview/library/src/components/DataGrid/DataGridRow/DataGridRow.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 'use client'; | ||
| import * as React from 'react'; | ||
| import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
| import type { DataGridRowProps } from './DataGridRow.types'; | ||
| import { useDataGridRow } from './useDataGridRow'; | ||
| import { renderDataGridRow } from './renderDataGridRow'; | ||
|
|
||
| export const DataGridRow: ForwardRefComponent<DataGridRowProps> = React.forwardRef((props, ref) => { | ||
| return renderDataGridRow(useDataGridRow(props, ref)); | ||
| }); | ||
| DataGridRow.displayName = 'DataGridRow'; |
11 changes: 11 additions & 0 deletions
11
...dless-components-preview/library/src/components/DataGrid/DataGridRow/DataGridRow.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import type { | ||
| DataGridRowSlots as DataGridRowBaseSlots, | ||
| DataGridRowProps as DataGridRowBaseProps, | ||
| DataGridRowState as DataGridRowBaseState, | ||
| CellRenderFunction, | ||
| } from '@fluentui/react-table'; | ||
|
|
||
| export type DataGridRowSlots = DataGridRowBaseSlots; | ||
| export type DataGridRowProps = DataGridRowBaseProps; | ||
| export type DataGridRowState = DataGridRowBaseState; | ||
| export type { CellRenderFunction }; |
4 changes: 4 additions & 0 deletions
4
...ts/react-headless-components-preview/library/src/components/DataGrid/DataGridRow/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export { DataGridRow } from './DataGridRow'; | ||
| export { useDataGridRow } from './useDataGridRow'; | ||
| export { renderDataGridRow } from './renderDataGridRow'; | ||
| export type { DataGridRowSlots, DataGridRowProps, DataGridRowState, CellRenderFunction } from './DataGridRow.types'; |
2 changes: 2 additions & 0 deletions
2
...dless-components-preview/library/src/components/DataGrid/DataGridRow/renderDataGridRow.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { renderDataGridRow_unstable } from '@fluentui/react-table'; | ||
| export const renderDataGridRow = renderDataGridRow_unstable; |
3 changes: 3 additions & 0 deletions
3
...headless-components-preview/library/src/components/DataGrid/DataGridRow/useDataGridRow.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| 'use client'; | ||
| import { useDataGridRow_unstable } from '@fluentui/react-table'; | ||
| export const useDataGridRow = useDataGridRow_unstable; |
11 changes: 11 additions & 0 deletions
11
...s-preview/library/src/components/DataGrid/DataGridSelectionCell/DataGridSelectionCell.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 'use client'; | ||
| import * as React from 'react'; | ||
| import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
| import type { DataGridSelectionCellProps } from './DataGridSelectionCell.types'; | ||
| import { useDataGridSelectionCell } from './useDataGridSelectionCell'; | ||
| import { renderDataGridSelectionCell } from './renderDataGridSelectionCell'; | ||
|
|
||
| export const DataGridSelectionCell: ForwardRefComponent<DataGridSelectionCellProps> = React.forwardRef((props, ref) => { | ||
| return renderDataGridSelectionCell(useDataGridSelectionCell(props, ref)); | ||
| }); | ||
| DataGridSelectionCell.displayName = 'DataGridSelectionCell'; |
9 changes: 9 additions & 0 deletions
9
...view/library/src/components/DataGrid/DataGridSelectionCell/DataGridSelectionCell.types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import type { | ||
| DataGridSelectionCellSlots as DataGridSelectionCellBaseSlots, | ||
| DataGridSelectionCellProps as DataGridSelectionCellBaseProps, | ||
| DataGridSelectionCellState as DataGridSelectionCellBaseState, | ||
| } from '@fluentui/react-table'; | ||
|
|
||
| export type DataGridSelectionCellSlots = DataGridSelectionCellBaseSlots; | ||
| export type DataGridSelectionCellProps = DataGridSelectionCellBaseProps; | ||
| export type DataGridSelectionCellState = DataGridSelectionCellBaseState; |
8 changes: 8 additions & 0 deletions
8
...eadless-components-preview/library/src/components/DataGrid/DataGridSelectionCell/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| export { DataGridSelectionCell } from './DataGridSelectionCell'; | ||
| export { useDataGridSelectionCell } from './useDataGridSelectionCell'; | ||
| export { renderDataGridSelectionCell } from './renderDataGridSelectionCell'; | ||
| export type { | ||
| DataGridSelectionCellSlots, | ||
| DataGridSelectionCellProps, | ||
| DataGridSelectionCellState, | ||
| } from './DataGridSelectionCell.types'; |
2 changes: 2 additions & 0 deletions
2
...view/library/src/components/DataGrid/DataGridSelectionCell/renderDataGridSelectionCell.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { renderDataGridSelectionCell_unstable } from '@fluentui/react-table'; | ||
| export const renderDataGridSelectionCell = renderDataGridSelectionCell_unstable; |
3 changes: 3 additions & 0 deletions
3
...preview/library/src/components/DataGrid/DataGridSelectionCell/useDataGridSelectionCell.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| 'use client'; | ||
| import { useDataGridSelectionCell_unstable } from '@fluentui/react-table'; | ||
| export const useDataGridSelectionCell = useDataGridSelectionCell_unstable; |
32 changes: 32 additions & 0 deletions
32
...act-components/react-headless-components-preview/library/src/components/DataGrid/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| export { DataGrid } from './DataGrid'; | ||
| export { renderDataGrid } from './renderDataGrid'; | ||
| export { useDataGrid, useDataGridContextValues } from './useDataGrid'; | ||
| export type { | ||
| DataGridSlots, | ||
| DataGridProps, | ||
| DataGridState, | ||
| DataGridContextValues, | ||
| DataGridFocusMode, | ||
| } from './DataGrid.types'; | ||
|
|
||
| export { DataGridBody, renderDataGridBody, useDataGridBody } from './DataGridBody'; | ||
| export type { DataGridBodySlots, DataGridBodyProps, DataGridBodyState, RowRenderFunction } from './DataGridBody'; | ||
|
|
||
| export { DataGridHeader, renderDataGridHeader, useDataGridHeader } from './DataGridHeader'; | ||
| export type { DataGridHeaderSlots, DataGridHeaderProps, DataGridHeaderState } from './DataGridHeader'; | ||
|
|
||
| export { DataGridHeaderCell, renderDataGridHeaderCell, useDataGridHeaderCell } from './DataGridHeaderCell'; | ||
| export type { DataGridHeaderCellSlots, DataGridHeaderCellProps, DataGridHeaderCellState } from './DataGridHeaderCell'; | ||
|
|
||
| export { DataGridRow, renderDataGridRow, useDataGridRow } from './DataGridRow'; | ||
| export type { DataGridRowSlots, DataGridRowProps, DataGridRowState, CellRenderFunction } from './DataGridRow'; | ||
|
|
||
| export { DataGridCell, renderDataGridCell, useDataGridCell } from './DataGridCell'; | ||
| export type { DataGridCellSlots, DataGridCellProps, DataGridCellState, DataGridCellFocusMode } from './DataGridCell'; | ||
|
|
||
| export { DataGridSelectionCell, renderDataGridSelectionCell, useDataGridSelectionCell } from './DataGridSelectionCell'; | ||
| export type { | ||
| DataGridSelectionCellSlots, | ||
| DataGridSelectionCellProps, | ||
| DataGridSelectionCellState, | ||
| } from './DataGridSelectionCell'; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/Avatar Converged 1 screenshots
vr-tests-react-components/CalendarCompat 4 screenshots
vr-tests-react-components/Charts-DonutChart 2 screenshots
vr-tests-react-components/Menu Converged - submenuIndicator slotted content 1 screenshots
vr-tests-react-components/Positioning 2 screenshots
vr-tests-react-components/ProgressBar converged 1 screenshots
vr-tests-react-components/TagPicker 2 screenshots
There were 3 duplicate changes discarded. Check the build logs for more information.