@fluentui/react-table 9.74.7-experimental.cli-api.20261006-ccaa611d58.0 → 9.75.0-experimental.css-modules.20261031-810ab07afb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -16
- package/README.md +17 -0
- package/lib/components/DataGrid/DataGrid.js.map +1 -1
- package/lib/components/DataGrid/DataGrid.module.css +1 -0
- package/lib/components/DataGrid/DataGrid.types.js.map +1 -1
- package/lib/components/DataGrid/index.js.map +1 -1
- package/lib/components/DataGrid/renderDataGrid.js.map +1 -1
- package/lib/components/DataGrid/useDataGrid.js +1 -1
- package/lib/components/DataGrid/useDataGrid.js.map +1 -1
- package/lib/components/DataGrid/useDataGridContextValues.js.map +1 -1
- package/lib/components/DataGrid/useDataGridStyles.styles.css.js +13 -0
- package/lib/components/DataGrid/useDataGridStyles.styles.css.js.map +1 -0
- package/lib/components/DataGrid/useDataGridStyles.styles.raw.css.js +13 -0
- package/lib/components/DataGrid/useDataGridStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DataGrid/useDataGridStyles.styles.raw.js.map +1 -1
- package/lib/components/DataGridBody/DataGridBody.js.map +1 -1
- package/lib/components/DataGridBody/DataGridBody.module.css +1 -0
- package/lib/components/DataGridBody/DataGridBody.types.js.map +1 -1
- package/lib/components/DataGridBody/index.js.map +1 -1
- package/lib/components/DataGridBody/renderDataGridBody.js +2 -2
- package/lib/components/DataGridBody/renderDataGridBody.js.map +1 -1
- package/lib/components/DataGridBody/useDataGridBody.js.map +1 -1
- package/lib/components/DataGridBody/useDataGridBodyStyles.styles.css.js +13 -0
- package/lib/components/DataGridBody/useDataGridBodyStyles.styles.css.js.map +1 -0
- package/lib/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.js +13 -0
- package/lib/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DataGridBody/useDataGridBodyStyles.styles.raw.js.map +1 -1
- package/lib/components/DataGridCell/DataGridCell.js.map +1 -1
- package/lib/components/DataGridCell/DataGridCell.module.css +1 -0
- package/lib/components/DataGridCell/DataGridCell.types.js.map +1 -1
- package/lib/components/DataGridCell/index.js.map +1 -1
- package/lib/components/DataGridCell/renderDataGridCell.js.map +1 -1
- package/lib/components/DataGridCell/useDataGridCell.js.map +1 -1
- package/lib/components/DataGridCell/useDataGridCellStyles.styles.css.js +13 -0
- package/lib/components/DataGridCell/useDataGridCellStyles.styles.css.js.map +1 -0
- package/lib/components/DataGridCell/useDataGridCellStyles.styles.raw.css.js +13 -0
- package/lib/components/DataGridCell/useDataGridCellStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DataGridCell/useDataGridCellStyles.styles.raw.js.map +1 -1
- package/lib/components/DataGridHeader/DataGridHeader.js.map +1 -1
- package/lib/components/DataGridHeader/DataGridHeader.module.css +1 -0
- package/lib/components/DataGridHeader/DataGridHeader.types.js.map +1 -1
- package/lib/components/DataGridHeader/index.js.map +1 -1
- package/lib/components/DataGridHeader/renderDataGridHeader.js.map +1 -1
- package/lib/components/DataGridHeader/useDataGridHeader.js.map +1 -1
- package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.css.js +13 -0
- package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.css.js.map +1 -0
- package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.js +13 -0
- package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.js.map +1 -1
- package/lib/components/DataGridHeaderCell/DataGridHeaderCell.js.map +1 -1
- package/lib/components/DataGridHeaderCell/DataGridHeaderCell.module.css +1 -0
- package/lib/components/DataGridHeaderCell/DataGridHeaderCell.types.js.map +1 -1
- package/lib/components/DataGridHeaderCell/index.js.map +1 -1
- package/lib/components/DataGridHeaderCell/renderDataGridHeaderCell.js.map +1 -1
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCell.js.map +1 -1
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.js +28 -0
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.js.map +1 -0
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.js +28 -0
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.js.map +1 -1
- package/lib/components/DataGridRow/DataGridRow.js.map +1 -1
- package/lib/components/DataGridRow/DataGridRow.module.css +6 -0
- package/lib/components/DataGridRow/DataGridRow.types.js.map +1 -1
- package/lib/components/DataGridRow/index.js.map +1 -1
- package/lib/components/DataGridRow/renderDataGridRow.js +2 -2
- package/lib/components/DataGridRow/renderDataGridRow.js.map +1 -1
- package/lib/components/DataGridRow/useDataGridRow.js.map +1 -1
- package/lib/components/DataGridRow/useDataGridRowStyles.styles.css.js +20 -0
- package/lib/components/DataGridRow/useDataGridRowStyles.styles.css.js.map +1 -0
- package/lib/components/DataGridRow/useDataGridRowStyles.styles.raw.css.js +20 -0
- package/lib/components/DataGridRow/useDataGridRowStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DataGridRow/useDataGridRowStyles.styles.raw.js.map +1 -1
- package/lib/components/DataGridSelectionCell/DataGridSelectionCell.js.map +1 -1
- package/lib/components/DataGridSelectionCell/DataGridSelectionCell.module.css +1 -0
- package/lib/components/DataGridSelectionCell/DataGridSelectionCell.types.js.map +1 -1
- package/lib/components/DataGridSelectionCell/index.js.map +1 -1
- package/lib/components/DataGridSelectionCell/renderDataGridSelectionCell.js.map +1 -1
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCell.js.map +1 -1
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.js +23 -0
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.js.map +1 -0
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.js +23 -0
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.js.map +1 -1
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Table.module.css +15 -0
- package/lib/components/Table/Table.types.js.map +1 -1
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Table/renderTable.js +2 -2
- package/lib/components/Table/renderTable.js.map +1 -1
- package/lib/components/Table/useTable.js +1 -2
- package/lib/components/Table/useTable.js.map +1 -1
- package/lib/components/Table/useTableContextValues.js.map +1 -1
- package/lib/components/Table/useTableStyles.styles.css.js +10 -0
- package/lib/components/Table/useTableStyles.styles.css.js.map +1 -0
- package/lib/components/Table/useTableStyles.styles.raw.css.js +10 -0
- package/lib/components/Table/useTableStyles.styles.raw.css.js.map +1 -0
- package/lib/components/Table/useTableStyles.styles.raw.js.map +1 -1
- package/lib/components/TableBody/TableBody.js.map +1 -1
- package/lib/components/TableBody/TableBody.module.css +8 -0
- package/lib/components/TableBody/TableBody.types.js.map +1 -1
- package/lib/components/TableBody/index.js.map +1 -1
- package/lib/components/TableBody/renderTableBody.js +2 -2
- package/lib/components/TableBody/renderTableBody.js.map +1 -1
- package/lib/components/TableBody/useTableBody.js +1 -1
- package/lib/components/TableBody/useTableBody.js.map +1 -1
- package/lib/components/TableBody/useTableBodyStyles.styles.css.js +10 -0
- package/lib/components/TableBody/useTableBodyStyles.styles.css.js.map +1 -0
- package/lib/components/TableBody/useTableBodyStyles.styles.raw.css.js +10 -0
- package/lib/components/TableBody/useTableBodyStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableBody/useTableBodyStyles.styles.raw.js.map +1 -1
- package/lib/components/TableCell/TableCell.js.map +1 -1
- package/lib/components/TableCell/TableCell.module.css +31 -0
- package/lib/components/TableCell/TableCell.types.js.map +1 -1
- package/lib/components/TableCell/index.js.map +1 -1
- package/lib/components/TableCell/renderTableCell.js +2 -2
- package/lib/components/TableCell/renderTableCell.js.map +1 -1
- package/lib/components/TableCell/useTableCell.js +1 -1
- package/lib/components/TableCell/useTableCell.js.map +1 -1
- package/lib/components/TableCell/useTableCellStyles.styles.css.js +10 -0
- package/lib/components/TableCell/useTableCellStyles.styles.css.js.map +1 -0
- package/lib/components/TableCell/useTableCellStyles.styles.raw.css.js +10 -0
- package/lib/components/TableCell/useTableCellStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableCell/useTableCellStyles.styles.raw.js.map +1 -1
- package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/TableCellActions.module.css +14 -0
- package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
- package/lib/components/TableCellActions/index.js.map +1 -1
- package/lib/components/TableCellActions/renderTableCellActions.js +2 -2
- package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/useTableCellActionsStyles.styles.css.js +9 -0
- package/lib/components/TableCellActions/useTableCellActionsStyles.styles.css.js.map +1 -0
- package/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.js +9 -0
- package/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableCellActions/useTableCellActionsStyles.styles.raw.js.map +1 -1
- package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/TableCellLayout.module.css +46 -0
- package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
- package/lib/components/TableCellLayout/index.js.map +1 -1
- package/lib/components/TableCellLayout/renderTableCellLayout.js +2 -2
- package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.css.js +25 -0
- package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.css.js.map +1 -0
- package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.js +25 -0
- package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.js.map +1 -1
- package/lib/components/TableHeader/TableHeader.js.map +1 -1
- package/lib/components/TableHeader/TableHeader.module.css +8 -0
- package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
- package/lib/components/TableHeader/index.js.map +1 -1
- package/lib/components/TableHeader/renderTableHeader.js +2 -2
- package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
- package/lib/components/TableHeader/useTableHeader.js +1 -1
- package/lib/components/TableHeader/useTableHeader.js.map +1 -1
- package/lib/components/TableHeader/useTableHeaderStyles.styles.css.js +10 -0
- package/lib/components/TableHeader/useTableHeaderStyles.styles.css.js.map +1 -0
- package/lib/components/TableHeader/useTableHeaderStyles.styles.raw.css.js +10 -0
- package/lib/components/TableHeader/useTableHeaderStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableHeader/useTableHeaderStyles.styles.raw.js.map +1 -1
- package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/TableHeaderCell.module.css +59 -0
- package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
- package/lib/components/TableHeaderCell/index.js.map +1 -1
- package/lib/components/TableHeaderCell/renderTableHeaderCell.js +2 -2
- package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/useTableHeaderCell.js +1 -2
- package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.js +20 -0
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.js.map +1 -0
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.js +20 -0
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.js.map +1 -1
- package/lib/components/TableResizeHandle/TableResizeHandle.js.map +1 -1
- package/lib/components/TableResizeHandle/TableResizeHandle.module.css +32 -0
- package/lib/components/TableResizeHandle/TableResizeHandle.types.js.map +1 -1
- package/lib/components/TableResizeHandle/index.js.map +1 -1
- package/lib/components/TableResizeHandle/renderTableResizeHandle.js +2 -2
- package/lib/components/TableResizeHandle/renderTableResizeHandle.js.map +1 -1
- package/lib/components/TableResizeHandle/useTableResizeHandle.js.map +1 -1
- package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.js +9 -0
- package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.js.map +1 -0
- package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.js +9 -0
- package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.js.map +1 -1
- package/lib/components/TableRow/TableRow.js.map +1 -1
- package/lib/components/TableRow/TableRow.module.css +76 -0
- package/lib/components/TableRow/TableRow.types.js.map +1 -1
- package/lib/components/TableRow/index.js.map +1 -1
- package/lib/components/TableRow/renderTableRow.js +2 -2
- package/lib/components/TableRow/renderTableRow.js.map +1 -1
- package/lib/components/TableRow/useTableRow.js +1 -2
- package/lib/components/TableRow/useTableRow.js.map +1 -1
- package/lib/components/TableRow/useTableRowStyles.styles.css.js +10 -0
- package/lib/components/TableRow/useTableRowStyles.styles.css.js.map +1 -0
- package/lib/components/TableRow/useTableRowStyles.styles.raw.css.js +10 -0
- package/lib/components/TableRow/useTableRowStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableRow/useTableRowStyles.styles.raw.js.map +1 -1
- package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/TableSelectionCell.module.css +37 -0
- package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
- package/lib/components/TableSelectionCell/index.js.map +1 -1
- package/lib/components/TableSelectionCell/renderTableSelectionCell.js +2 -2
- package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.js +18 -0
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.js.map +1 -0
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.js +18 -0
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.js.map +1 -1
- package/lib/contexts/columnIdContext.js.map +1 -1
- package/lib/contexts/dataGridContext.js.map +1 -1
- package/lib/contexts/rowIdContext.js.map +1 -1
- package/lib/contexts/tableContext.js.map +1 -1
- package/lib/contexts/tableHeaderContext.js.map +1 -1
- package/lib/hooks/createColumn.js.map +1 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/types.js.map +1 -1
- package/lib/hooks/useKeyboardResizing.js.map +1 -1
- package/lib/hooks/useMeasureElement.js.map +1 -1
- package/lib/hooks/useTableColumnResizeMouseHandler.js.map +1 -1
- package/lib/hooks/useTableColumnResizeState.js.map +1 -1
- package/lib/hooks/useTableColumnSizing.js.map +1 -1
- package/lib/hooks/useTableCompositeNavigation.js.map +1 -1
- package/lib/hooks/useTableFeatures.js +2 -2
- package/lib/hooks/useTableFeatures.js.map +1 -1
- package/lib/hooks/useTableSelection.js +4 -4
- package/lib/hooks/useTableSelection.js.map +1 -1
- package/lib/hooks/useTableSort.js.map +1 -1
- package/lib/utils/columnResizeUtils.js +6 -6
- package/lib/utils/columnResizeUtils.js.map +1 -1
- package/lib/utils/isColumnSortable.js.map +1 -1
- package/lib-commonjs/DataGrid.cjs +7 -7
- package/lib-commonjs/DataGridBody.cjs +6 -6
- package/lib-commonjs/DataGridCell.cjs +6 -6
- package/lib-commonjs/DataGridHeader.cjs +6 -6
- package/lib-commonjs/DataGridHeaderCell.cjs +6 -6
- package/lib-commonjs/DataGridRow.cjs +6 -6
- package/lib-commonjs/DataGridSelectionCell.cjs +6 -6
- package/lib-commonjs/Table.cjs +7 -7
- package/lib-commonjs/TableBody.cjs +7 -7
- package/lib-commonjs/TableCell.cjs +7 -7
- package/lib-commonjs/TableCellActions.cjs +6 -6
- package/lib-commonjs/TableCellLayout.cjs +6 -6
- package/lib-commonjs/TableCellPrimaryLayout.cjs +6 -6
- package/lib-commonjs/TableHeader.cjs +7 -7
- package/lib-commonjs/TableHeaderCell.cjs +7 -7
- package/lib-commonjs/TableResizeHandle.cjs +6 -6
- package/lib-commonjs/TableRow.cjs +7 -7
- package/lib-commonjs/TableSelectionCell.cjs +7 -7
- package/lib-commonjs/components/DataGrid/DataGrid.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/DataGrid.module.css +1 -0
- package/lib-commonjs/components/DataGrid/DataGrid.types.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/index.cjs +7 -7
- package/lib-commonjs/components/DataGrid/index.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/renderDataGrid.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGrid.cjs +1 -1
- package/lib-commonjs/components/DataGrid/useDataGrid.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGridContextValues.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.css.cjs +31 -0
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.css.cjs +31 -0
- package/lib-commonjs/components/DataGrid/useDataGridStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridBody/DataGridBody.cjs.map +1 -1
- package/lib-commonjs/components/DataGridBody/DataGridBody.module.css +1 -0
- package/lib-commonjs/components/DataGridBody/DataGridBody.types.cjs.map +1 -1
- package/lib-commonjs/components/DataGridBody/index.cjs +6 -6
- package/lib-commonjs/components/DataGridBody/index.cjs.map +1 -1
- package/lib-commonjs/components/DataGridBody/renderDataGridBody.cjs.map +1 -1
- package/lib-commonjs/components/DataGridBody/useDataGridBody.cjs.map +1 -1
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.css.cjs +31 -0
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.cjs +31 -0
- package/lib-commonjs/components/DataGridBody/useDataGridBodyStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridCell/DataGridCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridCell/DataGridCell.module.css +1 -0
- package/lib-commonjs/components/DataGridCell/DataGridCell.types.cjs.map +1 -1
- package/lib-commonjs/components/DataGridCell/index.cjs +6 -6
- package/lib-commonjs/components/DataGridCell/index.cjs.map +1 -1
- package/lib-commonjs/components/DataGridCell/renderDataGridCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridCell/useDataGridCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.css.cjs +31 -0
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.css.cjs +31 -0
- package/lib-commonjs/components/DataGridCell/useDataGridCellStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridHeader/DataGridHeader.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeader/DataGridHeader.module.css +1 -0
- package/lib-commonjs/components/DataGridHeader/DataGridHeader.types.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeader/index.cjs +6 -6
- package/lib-commonjs/components/DataGridHeader/index.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeader/renderDataGridHeader.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeader/useDataGridHeader.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.css.cjs +31 -0
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.cjs +31 -0
- package/lib-commonjs/components/DataGridHeader/useDataGridHeaderStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.module.css +1 -0
- package/lib-commonjs/components/DataGridHeaderCell/DataGridHeaderCell.types.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/index.cjs +6 -6
- package/lib-commonjs/components/DataGridHeaderCell/index.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/renderDataGridHeaderCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.cjs +46 -0
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.cjs +46 -0
- package/lib-commonjs/components/DataGridHeaderCell/useDataGridHeaderCellStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridRow/DataGridRow.cjs.map +1 -1
- package/lib-commonjs/components/DataGridRow/DataGridRow.module.css +6 -0
- package/lib-commonjs/components/DataGridRow/DataGridRow.types.cjs.map +1 -1
- package/lib-commonjs/components/DataGridRow/index.cjs +6 -6
- package/lib-commonjs/components/DataGridRow/index.cjs.map +1 -1
- package/lib-commonjs/components/DataGridRow/renderDataGridRow.cjs.map +1 -1
- package/lib-commonjs/components/DataGridRow/useDataGridRow.cjs.map +1 -1
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.css.cjs +39 -0
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.css.cjs +39 -0
- package/lib-commonjs/components/DataGridRow/useDataGridRowStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.module.css +1 -0
- package/lib-commonjs/components/DataGridSelectionCell/DataGridSelectionCell.types.cjs.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/index.cjs +6 -6
- package/lib-commonjs/components/DataGridSelectionCell/index.cjs.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/renderDataGridSelectionCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCell.cjs.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.cjs +41 -0
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.cjs +41 -0
- package/lib-commonjs/components/DataGridSelectionCell/useDataGridSelectionCellStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/Table/Table.cjs.map +1 -1
- package/lib-commonjs/components/Table/Table.module.css +15 -0
- package/lib-commonjs/components/Table/Table.types.cjs.map +1 -1
- package/lib-commonjs/components/Table/index.cjs +7 -7
- package/lib-commonjs/components/Table/index.cjs.map +1 -1
- package/lib-commonjs/components/Table/renderTable.cjs.map +1 -1
- package/lib-commonjs/components/Table/useTable.cjs +1 -2
- package/lib-commonjs/components/Table/useTable.cjs.map +1 -1
- package/lib-commonjs/components/Table/useTableContextValues.cjs.map +1 -1
- package/lib-commonjs/components/Table/useTableStyles.styles.cjs +4 -4
- package/lib-commonjs/components/Table/useTableStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/Table/useTableStyles.styles.css.cjs +32 -0
- package/lib-commonjs/components/Table/useTableStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/Table/useTableStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/Table/useTableStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/Table/useTableStyles.styles.raw.css.cjs +32 -0
- package/lib-commonjs/components/Table/useTableStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableBody/TableBody.cjs.map +1 -1
- package/lib-commonjs/components/TableBody/TableBody.module.css +8 -0
- package/lib-commonjs/components/TableBody/TableBody.types.cjs.map +1 -1
- package/lib-commonjs/components/TableBody/index.cjs +7 -7
- package/lib-commonjs/components/TableBody/index.cjs.map +1 -1
- package/lib-commonjs/components/TableBody/renderTableBody.cjs.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBody.cjs +1 -1
- package/lib-commonjs/components/TableBody/useTableBody.cjs.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.cjs +4 -4
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.css.cjs +32 -0
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.css.cjs +32 -0
- package/lib-commonjs/components/TableBody/useTableBodyStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableCell/TableCell.cjs.map +1 -1
- package/lib-commonjs/components/TableCell/TableCell.module.css +31 -0
- package/lib-commonjs/components/TableCell/TableCell.types.cjs.map +1 -1
- package/lib-commonjs/components/TableCell/index.cjs +7 -7
- package/lib-commonjs/components/TableCell/index.cjs.map +1 -1
- package/lib-commonjs/components/TableCell/renderTableCell.cjs.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCell.cjs +1 -1
- package/lib-commonjs/components/TableCell/useTableCell.cjs.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.cjs +4 -4
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.css.cjs +32 -0
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.css.cjs +32 -0
- package/lib-commonjs/components/TableCell/useTableCellStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableCellActions/TableCellActions.cjs.map +1 -1
- package/lib-commonjs/components/TableCellActions/TableCellActions.module.css +14 -0
- package/lib-commonjs/components/TableCellActions/TableCellActions.types.cjs.map +1 -1
- package/lib-commonjs/components/TableCellActions/index.cjs +6 -6
- package/lib-commonjs/components/TableCellActions/index.cjs.map +1 -1
- package/lib-commonjs/components/TableCellActions/renderTableCellActions.cjs.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActions.cjs.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.module.css +46 -0
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.types.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/index.cjs +6 -6
- package/lib-commonjs/components/TableCellLayout/index.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayout.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.css.cjs +44 -0
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.cjs +44 -0
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableHeader/TableHeader.cjs.map +1 -1
- package/lib-commonjs/components/TableHeader/TableHeader.module.css +8 -0
- package/lib-commonjs/components/TableHeader/TableHeader.types.cjs.map +1 -1
- package/lib-commonjs/components/TableHeader/index.cjs +7 -7
- package/lib-commonjs/components/TableHeader/index.cjs.map +1 -1
- package/lib-commonjs/components/TableHeader/renderTableHeader.cjs.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeader.cjs +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeader.cjs.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.cjs +4 -4
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.css.cjs +32 -0
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.css.cjs +32 -0
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.cjs.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.module.css +59 -0
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.types.cjs.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/index.cjs +7 -7
- package/lib-commonjs/components/TableHeaderCell/index.cjs.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.cjs.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.cjs +1 -2
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.cjs.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.cjs +4 -4
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.cjs +42 -0
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.cjs +42 -0
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.cjs.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.module.css +32 -0
- package/lib-commonjs/components/TableResizeHandle/TableResizeHandle.types.cjs.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/index.cjs +6 -6
- package/lib-commonjs/components/TableResizeHandle/index.cjs.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/renderTableResizeHandle.cjs.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandle.cjs.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/TableResizeHandle/useTableResizeHandleStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableRow/TableRow.cjs.map +1 -1
- package/lib-commonjs/components/TableRow/TableRow.module.css +76 -0
- package/lib-commonjs/components/TableRow/TableRow.types.cjs.map +1 -1
- package/lib-commonjs/components/TableRow/index.cjs +7 -7
- package/lib-commonjs/components/TableRow/index.cjs.map +1 -1
- package/lib-commonjs/components/TableRow/renderTableRow.cjs.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRow.cjs +1 -2
- package/lib-commonjs/components/TableRow/useTableRow.cjs.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.cjs +4 -4
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.css.cjs +32 -0
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.css.cjs +32 -0
- package/lib-commonjs/components/TableRow/useTableRowStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.cjs.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.module.css +37 -0
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.types.cjs.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/index.cjs +7 -7
- package/lib-commonjs/components/TableSelectionCell/index.cjs.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.cjs.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.cjs.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.cjs +4 -4
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.cjs +40 -0
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.cjs +40 -0
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/contexts/columnIdContext.cjs +4 -4
- package/lib-commonjs/contexts/columnIdContext.cjs.map +1 -1
- package/lib-commonjs/contexts/dataGridContext.cjs +4 -4
- package/lib-commonjs/contexts/dataGridContext.cjs.map +1 -1
- package/lib-commonjs/contexts/rowIdContext.cjs +4 -4
- package/lib-commonjs/contexts/rowIdContext.cjs.map +1 -1
- package/lib-commonjs/contexts/tableContext.cjs +4 -4
- package/lib-commonjs/contexts/tableContext.cjs.map +1 -1
- package/lib-commonjs/contexts/tableHeaderContext.cjs +3 -3
- package/lib-commonjs/contexts/tableHeaderContext.cjs.map +1 -1
- package/lib-commonjs/hooks/createColumn.cjs.map +1 -1
- package/lib-commonjs/hooks/index.cjs +13 -13
- package/lib-commonjs/hooks/index.cjs.map +1 -1
- package/lib-commonjs/hooks/types.cjs.map +1 -1
- package/lib-commonjs/hooks/useKeyboardResizing.cjs.map +1 -1
- package/lib-commonjs/hooks/useMeasureElement.cjs +3 -3
- package/lib-commonjs/hooks/useMeasureElement.cjs.map +1 -1
- package/lib-commonjs/hooks/useTableColumnResizeMouseHandler.cjs.map +1 -1
- package/lib-commonjs/hooks/useTableColumnResizeState.cjs.map +1 -1
- package/lib-commonjs/hooks/useTableColumnSizing.cjs +3 -3
- package/lib-commonjs/hooks/useTableColumnSizing.cjs.map +1 -1
- package/lib-commonjs/hooks/useTableCompositeNavigation.cjs.map +1 -1
- package/lib-commonjs/hooks/useTableFeatures.cjs +5 -5
- package/lib-commonjs/hooks/useTableFeatures.cjs.map +1 -1
- package/lib-commonjs/hooks/useTableSelection.cjs +8 -8
- package/lib-commonjs/hooks/useTableSelection.cjs.map +1 -1
- package/lib-commonjs/hooks/useTableSort.cjs +4 -4
- package/lib-commonjs/hooks/useTableSort.cjs.map +1 -1
- package/lib-commonjs/index.cjs +110 -110
- package/lib-commonjs/index.cjs.map +1 -1
- package/lib-commonjs/utils/columnResizeUtils.cjs +15 -15
- package/lib-commonjs/utils/columnResizeUtils.cjs.map +1 -1
- package/lib-commonjs/utils/isColumnSortable.cjs.map +1 -1
- package/package.json +19 -19
- package/dist/metadata/api/api-root.json +0 -1
- package/dist/metadata/index.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableHeaderCell/useTableHeaderCellStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { TableHeaderCellSlots, TableHeaderCellState } from './TableHeaderCell.types';\n\nexport const tableHeaderCellClassName = 'fui-TableHeaderCell';\nexport const tableHeaderCellClassNames: SlotClassNames<TableHeaderCellSlots> = {\n root: 'fui-TableHeaderCell',\n button: 'fui-TableHeaderCell__button',\n sortIcon: 'fui-TableHeaderCell__sortIcon',\n aside: 'fui-TableHeaderCell__aside',\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-cell',\n verticalAlign: 'middle',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n flex: '1 1 0px',\n minWidth: '0px',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontWeight: tokens.fontWeightRegular,\n padding: `0px ${tokens.spacingHorizontalS}`,\n ...createCustomFocusIndicatorStyle(\n { outline: `2px solid ${tokens.colorStrokeFocus2}`, borderRadius: tokens.borderRadiusMedium },\n { selector: 'focus-within' },\n ),\n position: 'relative',\n },\n\n rootInteractive: {\n ':hover': {\n color: tokens.colorNeutralForeground1Hover,\n backgroundColor: tokens.colorSubtleBackgroundHover,\n },\n ':active': {\n color: tokens.colorNeutralForeground1Pressed,\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n },\n },\n\n resetButton: {\n resize: 'horizontal',\n boxSizing: 'content-box',\n backgroundColor: 'inherit',\n color: 'inherit',\n fontFamily: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n padding: '0',\n border: 'none',\n textAlign: 'unset',\n },\n\n button: {\n position: 'relative',\n width: '100%',\n display: 'flex',\n flexGrow: 1,\n height: '100%',\n alignItems: 'center',\n gap: tokens.spacingHorizontalXS,\n minHeight: '32px',\n flex: '1 1 0px',\n outlineStyle: 'none',\n },\n\n sortable: {\n cursor: 'pointer',\n },\n\n sortIcon: {\n display: 'flex',\n alignItems: 'center',\n paddingTop: tokens.spacingVerticalXXS,\n },\n\n resizeHandle: {},\n});\n\n/**\n * Apply styling to the TableHeaderCell slots based on the state\n */\nexport const useTableHeaderCellStyles_unstable = (state: TableHeaderCellState): TableHeaderCellState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n tableHeaderCellClassNames.root,\n styles.root,\n state.sortable && styles.rootInteractive,\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n state.root.className,\n );\n\n // eslint-disable-next-line react-hooks/immutability\n state.button.className = mergeClasses(\n tableHeaderCellClassNames.button,\n styles.resetButton,\n styles.button,\n state.sortable && styles.sortable,\n state.button.className,\n );\n\n if (state.sortIcon) {\n // eslint-disable-next-line react-hooks/immutability\n state.sortIcon.className = mergeClasses(\n tableHeaderCellClassNames.sortIcon,\n styles.sortIcon,\n state.sortIcon.className,\n );\n }\n\n if (state.aside) {\n // eslint-disable-next-line react-hooks/immutability\n state.aside.className = mergeClasses(tableHeaderCellClassNames.aside, styles.resizeHandle, state.aside.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","createCustomFocusIndicatorStyle","tableHeaderCellClassName","tableHeaderCellClassNames","root","button","sortIcon","aside","useTableLayoutStyles","display","verticalAlign","useFlexLayoutStyles","flex","minWidth","useStyles","fontWeight","fontWeightRegular","padding","spacingHorizontalS","outline","colorStrokeFocus2","borderRadius","borderRadiusMedium","selector","position","rootInteractive","color","colorNeutralForeground1Hover","backgroundColor","colorSubtleBackgroundHover","colorNeutralForeground1Pressed","colorSubtleBackgroundPressed","resetButton","resize","boxSizing","fontFamily","fontSize","lineHeight","overflow","border","textAlign","width","flexGrow","height","alignItems","gap","spacingHorizontalXS","minHeight","outlineStyle","sortable","cursor","paddingTop","spacingVerticalXXS","resizeHandle","useTableHeaderCellStyles_unstable","state","styles","layoutStyles","table","className","noNativeElements"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/TableResizeHandle.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTableResizeHandle_unstable } from './useTableResizeHandle';\nimport { renderTableResizeHandle_unstable } from './renderTableResizeHandle';\nimport { useTableResizeHandleStyles_unstable } from './useTableResizeHandleStyles.styles';\nimport type { TableResizeHandleProps } from './TableResizeHandle.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableResizeHandle component - TODO: add more docs\n */\nexport const TableResizeHandle: ForwardRefComponent<TableResizeHandleProps> = React.forwardRef((props, ref) => {\n const state = useTableResizeHandle_unstable(props, ref);\n\n useTableResizeHandleStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableResizeHandleStyles_unstable')(state);\n\n return renderTableResizeHandle_unstable(state);\n});\n\nTableResizeHandle.displayName = 'TableResizeHandle';\n"],"names":["React","useTableResizeHandle_unstable","renderTableResizeHandle_unstable","useTableResizeHandleStyles_unstable","useCustomStyleHook_unstable","TableResizeHandle","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,6BAA6B,QAAQ,4BAAyB;AACvE,SAASC,gCAAgC,QAAQ,+BAA4B;AAC7E,SAASC,mCAAmC,QAAQ,yCAAsC;AAG1F,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,kCAAiEL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACrG,MAAMC,QAAQR,8BAA8BM,OAAOC;IAEnDL,oCAAoCM;IAEpCL,4BAA4B,uCAAuCK;IAEnE,OAAOP,iCAAiCO;AAC1C,GAAG;AAEHJ,kBAAkBK,WAAW,GAAG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@layer fluentui {
|
|
2
|
+
.root {
|
|
3
|
+
position: absolute;
|
|
4
|
+
inset-inline-end: 0;
|
|
5
|
+
top: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
width: var(--spacingHorizontalL);
|
|
8
|
+
margin: 0 calc(-1 * var(--spacingHorizontalS));
|
|
9
|
+
cursor: col-resize;
|
|
10
|
+
opacity: 0;
|
|
11
|
+
transition-property: opacity;
|
|
12
|
+
transition-duration: var(--durationNormal);
|
|
13
|
+
z-index: 1;
|
|
14
|
+
}
|
|
15
|
+
.root:focus {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
outline-style: none;
|
|
18
|
+
}
|
|
19
|
+
.root:hover {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
.root::after {
|
|
23
|
+
content: ' ';
|
|
24
|
+
display: block;
|
|
25
|
+
width: var(--strokeWidthThin);
|
|
26
|
+
position: absolute;
|
|
27
|
+
inset-inline-start: 50%;
|
|
28
|
+
top: 0;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
background-color: var(--colorNeutralStroke1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/TableResizeHandle.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableResizeHandleSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * TableResizeHandle Props\n */\nexport type TableResizeHandleProps = ComponentProps<TableResizeHandleSlots> & {};\n\n/**\n * State used in rendering TableResizeHandle\n */\nexport type TableResizeHandleState = ComponentState<TableResizeHandleSlots>;\n"],"names":[],"mappings":"AAWA;;CAEC,GACD,WAA4E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/index.ts"],"sourcesContent":["export { TableResizeHandle } from './TableResizeHandle';\nexport type { TableResizeHandleProps, TableResizeHandleSlots, TableResizeHandleState } from './TableResizeHandle.types';\nexport { renderTableResizeHandle_unstable } from './renderTableResizeHandle';\nexport { useTableResizeHandle_unstable } from './useTableResizeHandle';\nexport { tableResizeHandleClassNames, useTableResizeHandleStyles_unstable } from './useTableResizeHandleStyles.styles';\n"],"names":["TableResizeHandle","renderTableResizeHandle_unstable","useTableResizeHandle_unstable","tableResizeHandleClassNames","useTableResizeHandleStyles_unstable"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,yBAAsB;AAExD,SAASC,gCAAgC,QAAQ,+BAA4B;AAC7E,SAASC,6BAA6B,QAAQ,4BAAyB;AACvE,SAASC,2BAA2B,EAAEC,mCAAmC,QAAQ,yCAAsC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { assertSlots } from "@fluentui/react-utilities";
|
|
1
|
+
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of TableResizeHandle
|
|
5
5
|
*/ export const renderTableResizeHandle_unstable = (state)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/renderTableResizeHandle.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TableResizeHandleState, TableResizeHandleSlots } from './TableResizeHandle.types';\n\n/**\n * Render the final JSX of TableResizeHandle\n */\nexport const renderTableResizeHandle_unstable = (state: TableResizeHandleState): JSXElement => {\n assertSlots<TableResizeHandleSlots>(state);\n return <state.root />;\n};\n"],"names":["assertSlots","renderTableResizeHandle_unstable","state","root"],"mappings":";AAAA,0BAA0B,GAC1B,iDAAiD,GACjD,SAASA,WAAW,QAAQ,4BAA4B;AAIxD;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/CF,YAAoCE;IACpC,qBAAO,KAACA,MAAMC,IAAI;AACpB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/useTableResizeHandle.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, useEventCallback, slot } from '@fluentui/react-utilities';\nimport type { TableResizeHandleProps, TableResizeHandleState } from './TableResizeHandle.types';\n\n/**\n * Create the state required to render TableResizeHandle.\n *\n * The returned state can be modified with hooks such as useTableResizeHandleStyles_unstable,\n * before being passed to renderTableResizeHandle_unstable.\n *\n * @param props - props from this instance of TableResizeHandle\n * @param ref - reference to root HTMLElement of TableResizeHandle\n */\nexport const useTableResizeHandle_unstable = (\n props: TableResizeHandleProps,\n ref: React.Ref<HTMLElement>,\n): TableResizeHandleState => {\n const onClick = useEventCallback((event: React.MouseEvent<HTMLDivElement>) => {\n props.onClick?.(event);\n event.stopPropagation();\n });\n return {\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref as React.Ref<HTMLDivElement>,\n ...props,\n onClick,\n }),\n { elementType: 'div' },\n ),\n };\n};\n"],"names":["getIntrinsicElementProps","useEventCallback","slot","useTableResizeHandle_unstable","props","ref","onClick","event","stopPropagation","components","root","always","elementType"],"mappings":"AAAA;AAGA,SAASA,wBAAwB,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,4BAA4B;AAG7F;;;;;;;;CAQC,GACD,OAAO,MAAMC,gCAAgC,CAC3CC,OACAC;IAEA,MAAMC,UAAUL,iBAAiB,CAACM;YAChCH;SAAAA,iBAAAA,MAAME,OAAO,cAAbF,qCAAAA,oBAAAA,OAAgBG;QAChBA,MAAMC,eAAe;IACvB;IACA,OAAO;QACLC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMR,KAAKS,MAAM,CACfX,yBAAyB,OAAO;YAC9B,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FK,KAAKA;YACL,GAAGD,KAAK;YACRE;QACF,IACA;YAAEM,aAAa;QAAM;IAEzB;AACF,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TableResizeHandle.module.css";
|
|
3
|
+
export const tableResizeHandleClassNames = {
|
|
4
|
+
root: 'fui-TableResizeHandle'
|
|
5
|
+
};
|
|
6
|
+
export const useTableResizeHandleStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(tableResizeHandleClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableResizeHandleSlots, TableResizeHandleState } from './TableResizeHandle.types';\nimport styles from './TableResizeHandle.module.css';\n\nexport const tableResizeHandleClassNames: SlotClassNames<TableResizeHandleSlots> = {\n root: 'fui-TableResizeHandle',\n};\n\nexport const useTableResizeHandleStyles_unstable = (state: TableResizeHandleState): TableResizeHandleState => {\n state.root.className = clsx(tableResizeHandleClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","tableResizeHandleClassNames","root","useTableResizeHandleStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,iCAAiC;AAEpD,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,sCAAsC,CAACC;IAClDA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,4BAA4BC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAC/F,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TableResizeHandle.module.css";
|
|
3
|
+
export const tableResizeHandleClassNames = {
|
|
4
|
+
root: 'fui-TableResizeHandle'
|
|
5
|
+
};
|
|
6
|
+
export const useTableResizeHandleStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(tableResizeHandleClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/useTableResizeHandleStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableResizeHandleSlots, TableResizeHandleState } from './TableResizeHandle.types';\nimport styles from './TableResizeHandle.module.css';\n\nexport const tableResizeHandleClassNames: SlotClassNames<TableResizeHandleSlots> = {\n root: 'fui-TableResizeHandle',\n};\n\nexport const useTableResizeHandleStyles_unstable = (state: TableResizeHandleState): TableResizeHandleState => {\n state.root.className = clsx(tableResizeHandleClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","tableResizeHandleClassNames","root","useTableResizeHandleStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,iCAAiC;AAEpD,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,sCAAsC,CAACC;IAClDA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,4BAA4BC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAC/F,OAAOD;AACT,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableResizeHandle/useTableResizeHandleStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { TableResizeHandleSlots, TableResizeHandleState } from './TableResizeHandle.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const tableResizeHandleClassNames: SlotClassNames<TableResizeHandleSlots> = {\n root: 'fui-TableResizeHandle',\n // TODO: add class names for all slots on TableResizeHandleSlots.\n // Should be of the form `<slotName>: 'fui-TableResizeHandle__<slotName>`\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n position: 'absolute',\n right: 0,\n top: 0,\n bottom: 0,\n width: '16px',\n margin: '0 -8px',\n cursor: 'col-resize',\n opacity: 0,\n transitionProperty: 'opacity',\n transitionDuration: '.2s',\n zIndex: 1,\n\n // If mouse users focus on the resize handle through a context menu, we want the handle\n // to be visible because the mouse might not be hovering over the handle\n ':focus': {\n opacity: 1,\n outlineStyle: 'none',\n },\n\n ':hover': {\n opacity: 1,\n },\n\n '::after': {\n content: '\" \"',\n display: 'block',\n width: '1px',\n position: 'absolute',\n left: '50%',\n top: 0,\n bottom: 0,\n backgroundColor: tokens.colorNeutralStroke1,\n },\n },\n});\n\n/**\n * Apply styling to the TableResizeHandle slots based on the state\n */\nexport const useTableResizeHandleStyles_unstable = (state: TableResizeHandleState): TableResizeHandleState => {\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(tableResizeHandleClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","tableResizeHandleClassNames","root","useStyles","position","right","top","bottom","width","margin","cursor","opacity","transitionProperty","transitionDuration","zIndex","outlineStyle","content","display","left","backgroundColor","colorNeutralStroke1","useTableResizeHandleStyles_unstable","state","styles","className"],"mappings":"AAAA;AAEA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAG1D,SAASC,MAAM,QAAQ,wBAAwB;AAE/C,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;AAGR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYL,WAAW;IAC3BI,MAAM;QACJE,UAAU;QACVC,OAAO;QACPC,KAAK;QACLC,QAAQ;QACRC,OAAO;QACPC,QAAQ;QACRC,QAAQ;QACRC,SAAS;QACTC,oBAAoB;QACpBC,oBAAoB;QACpBC,QAAQ;QAER,uFAAuF;QACvF,wEAAwE;QACxE,UAAU;YACRH,SAAS;YACTI,cAAc;QAChB;QAEA,UAAU;YACRJ,SAAS;QACX;QAEA,WAAW;YACTK,SAAS;YACTC,SAAS;YACTT,OAAO;YACPJ,UAAU;YACVc,MAAM;YACNZ,KAAK;YACLC,QAAQ;YACRY,iBAAiBnB,OAAOoB,mBAAmB;QAC7C;IACF;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,sCAAsC,CAACC;IAClD,MAAMC,SAASpB;IACf,oDAAoD;IACpDmB,MAAMpB,IAAI,CAACsB,SAAS,GAAGzB,aAAaE,4BAA4BC,IAAI,EAAEqB,OAAOrB,IAAI,EAAEoB,MAAMpB,IAAI,CAACsB,SAAS;IACvG,OAAOF;AACT,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/TableRow.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTableRow_unstable } from './useTableRow';\nimport { renderTableRow_unstable } from './renderTableRow';\nimport { useTableRowStyles_unstable } from './useTableRowStyles.styles';\nimport type { TableRowProps } from './TableRow.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableRow component\n */\nexport const TableRow: ForwardRefComponent<TableRowProps> = React.forwardRef((props, ref) => {\n const state = useTableRow_unstable(props, ref);\n\n useTableRowStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableRowStyles_unstable')(state);\n\n return renderTableRow_unstable(state);\n});\n\nTableRow.displayName = 'TableRow';\n"],"names":["React","useTableRow_unstable","renderTableRow_unstable","useTableRowStyles_unstable","useCustomStyleHook_unstable","TableRow","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,oBAAoB,QAAQ,mBAAgB;AACrD,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,0BAA0B,QAAQ,gCAA6B;AAGxE,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,yBAA+CL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACnF,MAAMC,QAAQR,qBAAqBM,OAAOC;IAE1CL,2BAA2BM;IAE3BL,4BAA4B,8BAA8BK;IAE1D,OAAOP,wBAAwBO;AACjC,GAAG;AAEHJ,SAASK,WAAW,GAAG"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@layer fluentui {
|
|
2
|
+
.root {
|
|
3
|
+
color: var(--colorNeutralForeground1);
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
.root[data-fui-focus-within]:focus-within :global(.fui-TableSelectionCell),
|
|
7
|
+
.root[data-fui-focus-within]:focus-within :global(.fui-TableCellActions) {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
.root[data-fui-focus-visible] {
|
|
11
|
+
outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
12
|
+
border-radius: var(--borderRadiusMedium);
|
|
13
|
+
}
|
|
14
|
+
.interactive:hover {
|
|
15
|
+
background-color: var(--colorSubtleBackgroundHover);
|
|
16
|
+
color: var(--colorNeutralForeground1Hover);
|
|
17
|
+
}
|
|
18
|
+
.interactive:hover :global(.fui-TableCellActions),
|
|
19
|
+
.interactive:hover :global(.fui-TableSelectionCell) {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
.interactive:active {
|
|
23
|
+
background-color: var(--colorSubtleBackgroundPressed);
|
|
24
|
+
color: var(--colorNeutralForeground1Pressed);
|
|
25
|
+
}
|
|
26
|
+
.interactive:active :global(.fui-TableCellActions),
|
|
27
|
+
.interactive:active :global(.fui-TableSelectionCell) {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
.medium,
|
|
31
|
+
.small {
|
|
32
|
+
border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
|
|
33
|
+
}
|
|
34
|
+
.extra-small {
|
|
35
|
+
font-size: var(--fontSizeBase200);
|
|
36
|
+
}
|
|
37
|
+
.table {
|
|
38
|
+
display: table-row;
|
|
39
|
+
}
|
|
40
|
+
.flex {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
}
|
|
44
|
+
.brand {
|
|
45
|
+
background-color: var(--colorBrandBackground2);
|
|
46
|
+
border-color: var(--colorTransparentStrokeInteractive);
|
|
47
|
+
}
|
|
48
|
+
.brand:active {
|
|
49
|
+
background-color: var(--colorBrandBackground2);
|
|
50
|
+
color: var(--colorNeutralForeground1);
|
|
51
|
+
}
|
|
52
|
+
.neutral {
|
|
53
|
+
background-color: var(--colorSubtleBackgroundSelected);
|
|
54
|
+
color: var(--colorNeutralForeground1Hover);
|
|
55
|
+
border-color: var(--colorNeutralStrokeOnBrand);
|
|
56
|
+
}
|
|
57
|
+
.neutral:active {
|
|
58
|
+
background-color: var(--colorSubtleBackgroundSelected);
|
|
59
|
+
}
|
|
60
|
+
@media (forced-colors: active) {
|
|
61
|
+
.interactive:hover {
|
|
62
|
+
color: Highlight;
|
|
63
|
+
border-color: Highlight;
|
|
64
|
+
}
|
|
65
|
+
.brand,
|
|
66
|
+
.neutral {
|
|
67
|
+
border: var(--strokeWidthThick) solid transparent;
|
|
68
|
+
border-radius: var(--borderRadiusMedium);
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
}
|
|
71
|
+
.brand:focus-visible,
|
|
72
|
+
.neutral:focus-visible {
|
|
73
|
+
outline-offset: calc(-2 * var(--strokeWidthThick));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/TableRow.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TableContextValue } from '../Table/Table.types';\n\nexport type TableRowSlots = {\n root: Slot<'tr', 'div'>;\n};\n\n/**\n * TableRow Props\n */\nexport type TableRowProps = ComponentProps<TableRowSlots> & {\n /**\n * A table row can have different variants. These appearances are\n * intended to be used with selection.\n * @default none\n */\n appearance?: 'brand' | 'neutral' | 'none';\n};\n\n/**\n * State used in rendering TableRow\n */\nexport type TableRowState = ComponentState<TableRowSlots> &\n Pick<TableContextValue, 'noNativeElements' | 'size'> &\n Pick<Required<TableRowProps>, 'appearance'> & {\n isHeaderRow: boolean;\n };\n"],"names":[],"mappings":"AAmBA;;CAEC,GACD,WAII"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/index.ts"],"sourcesContent":["export { TableRow } from './TableRow';\nexport type { TableRowProps, TableRowSlots, TableRowState } from './TableRow.types';\nexport { renderTableRow_unstable } from './renderTableRow';\nexport { useTableRow_unstable } from './useTableRow';\nexport { tableRowClassName, tableRowClassNames, useTableRowStyles_unstable } from './useTableRowStyles.styles';\n"],"names":["TableRow","renderTableRow_unstable","useTableRow_unstable","tableRowClassName","tableRowClassNames","useTableRowStyles_unstable"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,gBAAa;AAEtC,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,oBAAoB,QAAQ,mBAAgB;AACrD,SAASC,iBAAiB,EAAEC,kBAAkB,EAAEC,0BAA0B,QAAQ,gCAA6B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { assertSlots } from "@fluentui/react-utilities";
|
|
1
|
+
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of TableRow
|
|
5
5
|
*/ export const renderTableRow_unstable = (state)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/renderTableRow.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TableRowState, TableRowSlots } from './TableRow.types';\n\n/**\n * Render the final JSX of TableRow\n */\nexport const renderTableRow_unstable = (state: TableRowState): JSXElement => {\n assertSlots<TableRowSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderTableRow_unstable","state","root"],"mappings":";AAAA,0BAA0B,GAC1B,iDAAiD,GACjD,SAASA,WAAW,QAAQ,4BAA4B;AAIxD;;CAEC,GACD,OAAO,MAAMC,0BAA0B,CAACC;IACtCF,YAA2BE;IAE3B,qBAAO,KAACA,MAAMC,IAAI;AACpB,EAAE"}
|
|
@@ -12,13 +12,12 @@ import { useIsInTableHeader } from "../../contexts/tableHeaderContext.js";
|
|
|
12
12
|
* @param props - props from this instance of TableRow
|
|
13
13
|
* @param ref - reference to root HTMLElement of TableRow
|
|
14
14
|
*/ export const useTableRow_unstable = (props, ref)=>{
|
|
15
|
+
var _props_as, _props_appearance;
|
|
15
16
|
const { noNativeElements, size } = useTableContext();
|
|
16
|
-
var _props_as;
|
|
17
17
|
const rootComponent = ((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : noNativeElements) ? 'div' : 'tr';
|
|
18
18
|
const focusVisibleRef = useFocusVisible();
|
|
19
19
|
const focusWithinRef = useFocusWithin();
|
|
20
20
|
const isHeaderRow = useIsInTableHeader();
|
|
21
|
-
var _props_appearance;
|
|
22
21
|
return {
|
|
23
22
|
components: {
|
|
24
23
|
root: rootComponent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/useTableRow.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, useMergedRefs, slot } from '@fluentui/react-utilities';\nimport { useFocusVisible, useFocusWithin } from '@fluentui/react-tabster';\nimport type { TableRowProps, TableRowState } from './TableRow.types';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { useIsInTableHeader } from '../../contexts/tableHeaderContext';\n\n/**\n * Create the state required to render TableRow.\n *\n * The returned state can be modified with hooks such as useTableRowStyles_unstable,\n * before being passed to renderTableRow_unstable.\n *\n * @param props - props from this instance of TableRow\n * @param ref - reference to root HTMLElement of TableRow\n */\nexport const useTableRow_unstable = (props: TableRowProps, ref: React.Ref<HTMLElement>): TableRowState => {\n const { noNativeElements, size } = useTableContext();\n const rootComponent = props.as ?? noNativeElements ? 'div' : 'tr';\n const focusVisibleRef = useFocusVisible();\n const focusWithinRef = useFocusWithin();\n const isHeaderRow = useIsInTableHeader();\n\n return {\n components: {\n root: rootComponent,\n },\n root: slot.always(\n getIntrinsicElementProps(rootComponent, {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, focusVisibleRef, focusWithinRef) as React.Ref<HTMLDivElement>,\n role: rootComponent === 'div' ? 'row' : undefined,\n ...props,\n }),\n { elementType: rootComponent },\n ),\n size,\n noNativeElements,\n appearance: props.appearance ?? 'none',\n isHeaderRow,\n };\n};\n"],"names":["getIntrinsicElementProps","useMergedRefs","slot","useFocusVisible","useFocusWithin","useTableContext","useIsInTableHeader","useTableRow_unstable","props","ref","noNativeElements","size","rootComponent","as","focusVisibleRef","focusWithinRef","isHeaderRow","components","root","always","role","undefined","elementType","appearance"],"mappings":"AAAA;AAGA,SAASA,wBAAwB,EAAEC,aAAa,EAAEC,IAAI,QAAQ,4BAA4B;AAC1F,SAASC,eAAe,EAAEC,cAAc,QAAQ,0BAA0B;AAE1E,SAASC,eAAe,QAAQ,iCAA8B;AAC9D,SAASC,kBAAkB,QAAQ,uCAAoC;AAEvE;;;;;;;;CAQC,GACD,OAAO,MAAMC,uBAAuB,CAACC,OAAsBC;QAEnCD,WAsBRA;IAvBd,MAAM,EAAEE,gBAAgB,EAAEC,IAAI,EAAE,GAAGN;IACnC,MAAMO,gBAAgBJ,EAAAA,YAAAA,MAAMK,EAAE,cAARL,uBAAAA,YAAYE,oBAAmB,QAAQ;IAC7D,MAAMI,kBAAkBX;IACxB,MAAMY,iBAAiBX;IACvB,MAAMY,cAAcV;IAEpB,OAAO;QACLW,YAAY;YACVC,MAAMN;QACR;QACAM,MAAMhB,KAAKiB,MAAM,CACfnB,yBAAyBY,eAAe;YACtC,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FH,KAAKR,cAAcQ,KAAKK,iBAAiBC;YACzCK,MAAMR,kBAAkB,QAAQ,QAAQS;YACxC,GAAGb,KAAK;QACV,IACA;YAAEc,aAAaV;QAAc;QAE/BD;QACAD;QACAa,UAAU,GAAEf,oBAAAA,MAAMe,UAAU,cAAhBf,+BAAAA,oBAAoB;QAChCQ;IACF;AACF,EAAE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TableRow.module.css";
|
|
3
|
+
export const tableRowClassName = 'fui-TableRow';
|
|
4
|
+
export const tableRowClassNames = {
|
|
5
|
+
root: tableRowClassName
|
|
6
|
+
};
|
|
7
|
+
export const useTableRowStyles_unstable = (state)=>{
|
|
8
|
+
state.root.className = clsx(tableRowClassNames.root, styles.root, !state.isHeaderRow && styles.interactive, styles[state.size], styles[state.noNativeElements ? 'flex' : 'table'], styles[state.appearance], state.root.className);
|
|
9
|
+
return state;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/useTableRowStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableRowSlots, TableRowState } from './TableRow.types';\nimport styles from './TableRow.module.css';\n\nexport const tableRowClassName = 'fui-TableRow';\n\nexport const tableRowClassNames: SlotClassNames<TableRowSlots> = {\n root: tableRowClassName,\n};\n\nexport const useTableRowStyles_unstable = (state: TableRowState): TableRowState => {\n state.root.className = clsx(\n tableRowClassNames.root,\n styles.root,\n !state.isHeaderRow && styles.interactive,\n styles[state.size],\n styles[state.noNativeElements ? 'flex' : 'table'],\n styles[state.appearance],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","tableRowClassName","tableRowClassNames","root","useTableRowStyles_unstable","state","className","isHeaderRow","interactive","size","noNativeElements","appearance"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,oBAAoB,eAAe;AAEhD,OAAO,MAAMC,qBAAoD;IAC/DC,MAAMF;AACR,EAAE;AAEF,OAAO,MAAMG,6BAA6B,CAACC;IACzCA,MAAMF,IAAI,CAACG,SAAS,GAAGP,KACrBG,mBAAmBC,IAAI,EACvBH,OAAOG,IAAI,EACX,CAACE,MAAME,WAAW,IAAIP,OAAOQ,WAAW,EACxCR,MAAM,CAACK,MAAMI,IAAI,CAAC,EAClBT,MAAM,CAACK,MAAMK,gBAAgB,GAAG,SAAS,QAAQ,EACjDV,MAAM,CAACK,MAAMM,UAAU,CAAC,EACxBN,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TableRow.module.css";
|
|
3
|
+
export const tableRowClassName = 'fui-TableRow';
|
|
4
|
+
export const tableRowClassNames = {
|
|
5
|
+
root: tableRowClassName
|
|
6
|
+
};
|
|
7
|
+
export const useTableRowStyles_unstable = (state)=>{
|
|
8
|
+
state.root.className = clsx(tableRowClassNames.root, styles.root, !state.isHeaderRow && styles.interactive, styles[state.size], styles[state.noNativeElements ? 'flex' : 'table'], styles[state.appearance], state.root.className);
|
|
9
|
+
return state;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/useTableRowStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableRowSlots, TableRowState } from './TableRow.types';\nimport styles from './TableRow.module.css';\n\nexport const tableRowClassName = 'fui-TableRow';\n\nexport const tableRowClassNames: SlotClassNames<TableRowSlots> = {\n root: tableRowClassName,\n};\n\nexport const useTableRowStyles_unstable = (state: TableRowState): TableRowState => {\n state.root.className = clsx(\n tableRowClassNames.root,\n styles.root,\n !state.isHeaderRow && styles.interactive,\n styles[state.size],\n styles[state.noNativeElements ? 'flex' : 'table'],\n styles[state.appearance],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","tableRowClassName","tableRowClassNames","root","useTableRowStyles_unstable","state","className","isHeaderRow","interactive","size","noNativeElements","appearance"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,oBAAoB,eAAe;AAEhD,OAAO,MAAMC,qBAAoD;IAC/DC,MAAMF;AACR,EAAE;AAEF,OAAO,MAAMG,6BAA6B,CAACC;IACzCA,MAAMF,IAAI,CAACG,SAAS,GAAGP,KACrBG,mBAAmBC,IAAI,EACvBH,OAAOG,IAAI,EACX,CAACE,MAAME,WAAW,IAAIP,OAAOQ,WAAW,EACxCR,MAAM,CAACK,MAAMI,IAAI,CAAC,EAClBT,MAAM,CAACK,MAAMK,gBAAgB,GAAG,SAAS,QAAQ,EACjDV,MAAM,CAACK,MAAMM,UAAU,CAAC,EACxBN,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableRow/useTableRowStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TableRowSlots, TableRowState } from './TableRow.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tableCellActionsClassNames } from '../TableCellActions/useTableCellActionsStyles.styles';\nimport { tableSelectionCellClassNames } from '../TableSelectionCell/useTableSelectionCellStyles.styles';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\n\nexport const tableRowClassName = 'fui-TableRow';\nexport const tableRowClassNames: SlotClassNames<TableRowSlots> = {\n root: tableRowClassName,\n};\n\nconst useTableLayoutStyles = makeStyles({\n root: {\n display: 'table-row',\n },\n});\n\nconst useFlexLayoutStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n color: tokens.colorNeutralForeground1,\n boxSizing: 'border-box',\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n ...createCustomFocusIndicatorStyle(\n { outline: `2px solid ${tokens.colorStrokeFocus2}`, borderRadius: tokens.borderRadiusMedium },\n { selector: 'focus' },\n ),\n },\n\n rootInteractive: {\n ...createCustomFocusIndicatorStyle(\n {\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n },\n { selector: 'focus-within' },\n ),\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground1Pressed,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground1Hover,\n [`& .${tableCellActionsClassNames.root}`]: {\n opacity: 1,\n },\n [`& .${tableSelectionCellClassNames.root}`]: {\n opacity: 1,\n },\n },\n // High contrast styles\n '@media (forced-colors: active)': {\n ':hover': {\n color: 'Highlight',\n ...shorthands.borderColor('Highlight'),\n },\n },\n },\n\n medium: { borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}` },\n\n small: { borderBottom: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}` },\n\n 'extra-small': {\n fontSize: tokens.fontSizeBase200,\n },\n\n brand: {\n backgroundColor: tokens.colorBrandBackground2,\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n ':active': {\n backgroundColor: tokens.colorBrandBackground2,\n color: tokens.colorNeutralForeground1,\n },\n\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px',\n },\n },\n },\n\n neutral: {\n '@media(forced-colors: active)': {\n border: '2px solid transparent',\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n ':focus-visible': {\n outlineOffset: '-4px',\n },\n },\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n color: tokens.colorNeutralForeground1Hover,\n\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n },\n\n ...shorthands.borderColor(tokens.colorNeutralStrokeOnBrand),\n },\n\n none: {},\n});\n\n/**\n * Apply styling to the TableRow slots based on the state\n */\nexport const useTableRowStyles_unstable = (state: TableRowState): TableRowState => {\n const styles = useStyles();\n const layoutStyles = {\n table: useTableLayoutStyles(),\n flex: useFlexLayoutStyles(),\n };\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n tableRowClassNames.root,\n styles.root,\n !state.isHeaderRow && styles.rootInteractive,\n styles[state.size],\n state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root,\n styles[state.appearance],\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","shorthands","tokens","tableCellActionsClassNames","tableSelectionCellClassNames","createCustomFocusIndicatorStyle","tableRowClassName","tableRowClassNames","root","useTableLayoutStyles","display","useFlexLayoutStyles","alignItems","useStyles","color","colorNeutralForeground1","boxSizing","opacity","selector","outline","colorStrokeFocus2","borderRadius","borderRadiusMedium","rootInteractive","backgroundColor","colorSubtleBackgroundPressed","colorNeutralForeground1Pressed","colorSubtleBackgroundHover","colorNeutralForeground1Hover","borderColor","medium","borderBottom","strokeWidthThin","colorNeutralStroke2","small","fontSize","fontSizeBase200","brand","colorBrandBackground2","colorTransparentStrokeInteractive","border","outlineOffset","neutral","colorSubtleBackgroundSelected","colorNeutralStrokeOnBrand","none","useTableRowStyles_unstable","state","styles","layoutStyles","table","flex","className","isHeaderRow","size","noNativeElements","appearance"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableSelectionCell/TableSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTableSelectionCell_unstable } from './useTableSelectionCell';\nimport { renderTableSelectionCell_unstable } from './renderTableSelectionCell';\nimport { useTableSelectionCellStyles_unstable } from './useTableSelectionCellStyles.styles';\nimport type { TableSelectionCellProps } from './TableSelectionCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * TableSelectionCell component\n */\nexport const TableSelectionCell: ForwardRefComponent<TableSelectionCellProps> = React.forwardRef((props, ref) => {\n const state = useTableSelectionCell_unstable(props, ref);\n\n useTableSelectionCellStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTableSelectionCellStyles_unstable')(state);\n\n return renderTableSelectionCell_unstable(state);\n});\n\nTableSelectionCell.displayName = 'TableSelectionCell';\n"],"names":["React","useTableSelectionCell_unstable","renderTableSelectionCell_unstable","useTableSelectionCellStyles_unstable","useCustomStyleHook_unstable","TableSelectionCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,8BAA8B,QAAQ,6BAA0B;AACzE,SAASC,iCAAiC,QAAQ,gCAA6B;AAC/E,SAASC,oCAAoC,QAAQ,0CAAuC;AAG5F,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,mCAAmEL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACvG,MAAMC,QAAQR,+BAA+BM,OAAOC;IAEpDL,qCAAqCM;IAErCL,4BAA4B,wCAAwCK;IAEpE,OAAOP,kCAAkCO;AAC3C,GAAG;AAEHJ,mBAAmBK,WAAW,GAAG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@layer fluentui {
|
|
2
|
+
.root {
|
|
3
|
+
text-align: center;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
.root[data-fui-focus-visible] {
|
|
8
|
+
outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
9
|
+
border-radius: var(--borderRadiusMedium);
|
|
10
|
+
}
|
|
11
|
+
.table {
|
|
12
|
+
display: table-cell;
|
|
13
|
+
width: calc(var(--spacingHorizontalXXXL) + var(--spacingHorizontalM));
|
|
14
|
+
}
|
|
15
|
+
.flex {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 1 1 0px;
|
|
18
|
+
min-width: calc(var(--spacingHorizontalXXXL) + var(--spacingHorizontalM));
|
|
19
|
+
max-width: calc(var(--spacingHorizontalXXXL) + var(--spacingHorizontalM));
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
22
|
+
.radioIndicator {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
}
|
|
28
|
+
.subtle {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
.subtle[data-fui-focus-within]:focus-within {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
.hidden {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableSelectionCell/TableSelectionCell.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { Checkbox, CheckboxProps } from '@fluentui/react-checkbox';\nimport type { Radio } from '@fluentui/react-radio';\nimport type { TableCellSlots } from '../TableCell/TableCell.types';\nimport type { TableContextValue } from '../Table/Table.types';\n\nexport type TableSelectionCellSlots = {\n /**\n * Selection indicator if selection type is checkbox\n */\n checkboxIndicator: Slot<typeof Checkbox>;\n /**\n * Selection indicator if selection type is radio\n */\n radioIndicator: Slot<typeof Radio>;\n} & Pick<TableCellSlots, 'root'>;\n\n/**\n * TableSelectionCell Props\n */\nexport type TableSelectionCellProps = ComponentProps<Partial<TableSelectionCellSlots>> & {\n /**\n * A table can have two kinds of selection modes.\n * @default checkbox\n */\n type?: 'checkbox' | 'radio';\n\n /**\n * @default false\n */\n checked?: CheckboxProps['checked'];\n\n /**\n * Only visible when checked or the parent row is hovered/focused\n * @default false\n */\n subtle?: boolean;\n\n /**\n * Completely hides the selection cell\n * @deprecated cells should never use hidden, since doing so breaks table structure and screen reader navigation. Use `invisible` instead.\n */\n hidden?: boolean;\n\n /**\n * Hides the selection cell visually but takes up the same space\n * @default false\n */\n invisible?: boolean;\n};\n\n/**\n * State used in rendering TableSelectionCell\n */\nexport type TableSelectionCellState = ComponentState<TableSelectionCellSlots> &\n Pick<Required<TableSelectionCellProps>, 'type' | 'checked' | 'subtle'> &\n Pick<TableContextValue, 'noNativeElements'> & {\n /* Visually hides the selection cell; not deprecated on state */\n hidden: boolean;\n };\n"],"names":[],"mappings":"AAmDA;;CAEC,GACD,WAKI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableSelectionCell/index.ts"],"sourcesContent":["export { TableSelectionCell } from './TableSelectionCell';\nexport type {\n TableSelectionCellProps,\n TableSelectionCellSlots,\n TableSelectionCellState,\n} from './TableSelectionCell.types';\nexport { renderTableSelectionCell_unstable } from './renderTableSelectionCell';\nexport { useTableSelectionCell_unstable } from './useTableSelectionCell';\nexport {\n CELL_WIDTH,\n tableSelectionCellClassNames,\n useTableSelectionCellStyles_unstable,\n} from './useTableSelectionCellStyles.styles';\n"],"names":["TableSelectionCell","renderTableSelectionCell_unstable","useTableSelectionCell_unstable","CELL_WIDTH","tableSelectionCellClassNames","useTableSelectionCellStyles_unstable"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,0BAAuB;AAM1D,SAASC,iCAAiC,QAAQ,gCAA6B;AAC/E,SAASC,8BAA8B,QAAQ,6BAA0B;AACzE,SACEC,UAAU,EACVC,4BAA4B,EAC5BC,oCAAoC,QAC/B,0CAAuC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { assertSlots } from "@fluentui/react-utilities";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of TableSelectionCell
|
|
5
5
|
*/ export const renderTableSelectionCell_unstable = (state)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableSelectionCell/renderTableSelectionCell.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TableSelectionCellState, TableSelectionCellSlots } from './TableSelectionCell.types';\n\n/**\n * Render the final JSX of TableSelectionCell\n */\nexport const renderTableSelectionCell_unstable = (state: TableSelectionCellState): JSXElement => {\n assertSlots<TableSelectionCellSlots>(state);\n\n return (\n <state.root>\n {state.type === 'checkbox' && state.checkboxIndicator && <state.checkboxIndicator />}\n\n {state.type === 'radio' && state.radioIndicator && <state.radioIndicator />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTableSelectionCell_unstable","state","root","type","checkboxIndicator","radioIndicator"],"mappings":";AAAA,0BAA0B,GAC1B,iDAAiD,GACjD,SAASA,WAAW,QAAQ,4BAA4B;AAIxD;;CAEC,GACD,OAAO,MAAMC,oCAAoC,CAACC;IAChDF,YAAqCE;IAErC,qBACE,MAACA,MAAMC,IAAI;;YACRD,MAAME,IAAI,KAAK,cAAcF,MAAMG,iBAAiB,kBAAI,KAACH,MAAMG,iBAAiB;YAEhFH,MAAME,IAAI,KAAK,WAAWF,MAAMI,cAAc,kBAAI,KAACJ,MAAMI,cAAc;;;AAG9E,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableSelectionCell/useTableSelectionCell.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useId, slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { Checkbox } from '@fluentui/react-checkbox';\nimport { Radio } from '@fluentui/react-radio';\nimport type { TableSelectionCellProps, TableSelectionCellState } from './TableSelectionCell.types';\nimport { useTableCell_unstable } from '../TableCell/useTableCell';\nimport { useTableContext } from '../../contexts/tableContext';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render TableSelectionCell.\n *\n * The returned state can be modified with hooks such as useTableSelectionCellStyles_unstable,\n * before being passed to renderTableSelectionCell_unstable.\n *\n * @param props - props from this instance of TableSelectionCell\n * @param ref - reference to root HTMLElement of TableSelectionCell\n */\nexport const useTableSelectionCell_unstable = (\n props: TableSelectionCellProps,\n ref: React.Ref<HTMLElement>,\n): TableSelectionCellState => {\n const tableCellState = useTableCell_unstable(props, useMergedRefs(ref, useFocusWithin()));\n const { noNativeElements } = useTableContext();\n const {\n type = 'checkbox',\n checked = false,\n subtle = false,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n hidden = false,\n invisible = false,\n } = props;\n\n return {\n ...tableCellState,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ...tableCellState.components,\n checkboxIndicator: Checkbox,\n radioIndicator: Radio,\n },\n checkboxIndicator: slot.optional(props.checkboxIndicator, {\n renderByDefault: type === 'checkbox',\n defaultProps: { checked: props.checked },\n elementType: Checkbox,\n }),\n radioIndicator: slot.optional(props.radioIndicator, {\n renderByDefault: type === 'radio' && !invisible,\n defaultProps: { checked: !!checked, input: { name: useId('table-selection-radio') } },\n elementType: Radio,\n }),\n type,\n checked,\n noNativeElements,\n subtle,\n hidden: invisible || hidden,\n };\n};\n"],"names":["useId","slot","useMergedRefs","Checkbox","Radio","useTableCell_unstable","useTableContext","useFocusWithin","useTableSelectionCell_unstable","props","ref","tableCellState","noNativeElements","type","checked","subtle","hidden","invisible","components","checkboxIndicator","radioIndicator","optional","renderByDefault","defaultProps","elementType","input","name"],"mappings":"AAAA;AAGA,SAASA,KAAK,EAAEC,IAAI,EAAEC,aAAa,QAAQ,4BAA4B;AACvE,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,KAAK,QAAQ,wBAAwB;AAE9C,SAASC,qBAAqB,QAAQ,+BAA4B;AAClE,SAASC,eAAe,QAAQ,iCAA8B;AAC9D,SAASC,cAAc,QAAQ,0BAA0B;AAEzD;;;;;;;;CAQC,GACD,OAAO,MAAMC,iCAAiC,CAC5CC,OACAC;IAEA,MAAMC,iBAAiBN,sBAAsBI,OAAOP,cAAcQ,KAAKH;IACvE,MAAM,EAAEK,gBAAgB,EAAE,GAAGN;IAC7B,MAAM,EACJO,OAAO,UAAU,EACjBC,UAAU,KAAK,EACfC,SAAS,KAAK,EACd,4DAA4D;IAC5DC,SAAS,KAAK,EACdC,YAAY,KAAK,EAClB,GAAGR;IAEJ,OAAO;QACL,GAAGE,cAAc;QACjBO,YAAY;YACV,4DAA4D;YAC5D,GAAGP,eAAeO,UAAU;YAC5BC,mBAAmBhB;YACnBiB,gBAAgBhB;QAClB;QACAe,mBAAmBlB,KAAKoB,QAAQ,CAACZ,MAAMU,iBAAiB,EAAE;YACxDG,iBAAiBT,SAAS;YAC1BU,cAAc;gBAAET,SAASL,MAAMK,OAAO;YAAC;YACvCU,aAAarB;QACf;QACAiB,gBAAgBnB,KAAKoB,QAAQ,CAACZ,MAAMW,cAAc,EAAE;YAClDE,iBAAiBT,SAAS,WAAW,CAACI;YACtCM,cAAc;gBAAET,SAAS,CAAC,CAACA;gBAASW,OAAO;oBAAEC,MAAM1B,MAAM;gBAAyB;YAAE;YACpFwB,aAAapB;QACf;QACAS;QACAC;QACAF;QACAG;QACAC,QAAQC,aAAaD;IACvB;AACF,EAAE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TableSelectionCell.module.css";
|
|
3
|
+
export const CELL_WIDTH = 44;
|
|
4
|
+
export const tableSelectionCellClassNames = {
|
|
5
|
+
root: 'fui-TableSelectionCell',
|
|
6
|
+
checkboxIndicator: 'fui-TableSelectionCell__checkboxIndicator',
|
|
7
|
+
radioIndicator: 'fui-TableSelectionCell__radioIndicator'
|
|
8
|
+
};
|
|
9
|
+
export const useTableSelectionCellStyles_unstable = (state)=>{
|
|
10
|
+
state.root.className = clsx(tableSelectionCellClassNames.root, styles.root, styles[state.noNativeElements ? 'flex' : 'table'], state.subtle && state.checked === false && styles.subtle, state.hidden && styles.hidden, state.root.className);
|
|
11
|
+
if (state.checkboxIndicator) {
|
|
12
|
+
state.checkboxIndicator.className = clsx(tableSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);
|
|
13
|
+
}
|
|
14
|
+
if (state.radioIndicator) {
|
|
15
|
+
state.radioIndicator.className = clsx(tableSelectionCellClassNames.radioIndicator, styles.radioIndicator, state.radioIndicator.className);
|
|
16
|
+
}
|
|
17
|
+
return state;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableSelectionCell/useTableSelectionCellStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TableSelectionCellSlots, TableSelectionCellState } from './TableSelectionCell.types';\nimport styles from './TableSelectionCell.module.css';\n\nexport const CELL_WIDTH = 44;\n\nexport const tableSelectionCellClassNames: SlotClassNames<TableSelectionCellSlots> = {\n root: 'fui-TableSelectionCell',\n checkboxIndicator: 'fui-TableSelectionCell__checkboxIndicator',\n radioIndicator: 'fui-TableSelectionCell__radioIndicator',\n};\n\nexport const useTableSelectionCellStyles_unstable = (state: TableSelectionCellState): TableSelectionCellState => {\n state.root.className = clsx(\n tableSelectionCellClassNames.root,\n styles.root,\n styles[state.noNativeElements ? 'flex' : 'table'],\n state.subtle && state.checked === false && styles.subtle,\n state.hidden && styles.hidden,\n state.root.className,\n );\n if (state.checkboxIndicator) {\n state.checkboxIndicator.className = clsx(\n tableSelectionCellClassNames.checkboxIndicator,\n state.checkboxIndicator.className,\n );\n }\n if (state.radioIndicator) {\n state.radioIndicator.className = clsx(\n tableSelectionCellClassNames.radioIndicator,\n styles.radioIndicator,\n state.radioIndicator.className,\n );\n }\n return state;\n};\n"],"names":["clsx","styles","CELL_WIDTH","tableSelectionCellClassNames","root","checkboxIndicator","radioIndicator","useTableSelectionCellStyles_unstable","state","className","noNativeElements","subtle","checked","hidden"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,kCAAkC;AAErD,OAAO,MAAMC,aAAa,GAAG;AAE7B,OAAO,MAAMC,+BAAwE;IACnFC,MAAM;IACNC,mBAAmB;IACnBC,gBAAgB;AAClB,EAAE;AAEF,OAAO,MAAMC,uCAAuC,CAACC;IACnDA,MAAMJ,IAAI,CAACK,SAAS,GAAGT,KACrBG,6BAA6BC,IAAI,EACjCH,OAAOG,IAAI,EACXH,MAAM,CAACO,MAAME,gBAAgB,GAAG,SAAS,QAAQ,EACjDF,MAAMG,MAAM,IAAIH,MAAMI,OAAO,KAAK,SAASX,OAAOU,MAAM,EACxDH,MAAMK,MAAM,IAAIZ,OAAOY,MAAM,EAC7BL,MAAMJ,IAAI,CAACK,SAAS;IAEtB,IAAID,MAAMH,iBAAiB,EAAE;QAC3BG,MAAMH,iBAAiB,CAACI,SAAS,GAAGT,KAClCG,6BAA6BE,iBAAiB,EAC9CG,MAAMH,iBAAiB,CAACI,SAAS;IAErC;IACA,IAAID,MAAMF,cAAc,EAAE;QACxBE,MAAMF,cAAc,CAACG,SAAS,GAAGT,KAC/BG,6BAA6BG,cAAc,EAC3CL,OAAOK,cAAc,EACrBE,MAAMF,cAAc,CAACG,SAAS;IAElC;IACA,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TableSelectionCell.module.css";
|
|
3
|
+
export const CELL_WIDTH = 44;
|
|
4
|
+
export const tableSelectionCellClassNames = {
|
|
5
|
+
root: 'fui-TableSelectionCell',
|
|
6
|
+
checkboxIndicator: 'fui-TableSelectionCell__checkboxIndicator',
|
|
7
|
+
radioIndicator: 'fui-TableSelectionCell__radioIndicator'
|
|
8
|
+
};
|
|
9
|
+
export const useTableSelectionCellStyles_unstable = (state)=>{
|
|
10
|
+
state.root.className = clsx(tableSelectionCellClassNames.root, styles.root, styles[state.noNativeElements ? 'flex' : 'table'], state.subtle && state.checked === false && styles.subtle, state.hidden && styles.hidden, state.root.className);
|
|
11
|
+
if (state.checkboxIndicator) {
|
|
12
|
+
state.checkboxIndicator.className = clsx(tableSelectionCellClassNames.checkboxIndicator, state.checkboxIndicator.className);
|
|
13
|
+
}
|
|
14
|
+
if (state.radioIndicator) {
|
|
15
|
+
state.radioIndicator.className = clsx(tableSelectionCellClassNames.radioIndicator, styles.radioIndicator, state.radioIndicator.className);
|
|
16
|
+
}
|
|
17
|
+
return state;
|
|
18
|
+
};
|