material-react-table 2.5.1 → 2.6.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/dist/index.d.ts +16 -10
- package/dist/index.esm.js +119 -62
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +119 -61
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/body/MRT_TableBody.tsx +25 -9
- package/src/body/MRT_TableBodyCell.tsx +10 -6
- package/src/body/MRT_TableBodyRow.tsx +13 -10
- package/src/body/MRT_TableDetailPanel.tsx +25 -10
- package/src/buttons/MRT_ExpandButton.tsx +16 -4
- package/src/footer/MRT_TableFooterCell.tsx +10 -2
- package/src/head/MRT_TableHeadCell.tsx +9 -3
- package/src/head/MRT_TableHeadRow.tsx +1 -1
- package/src/hooks/useMRT_DisplayColumns.tsx +10 -0
- package/src/hooks/useMRT_RowVirtualizer.ts +14 -4
- package/src/hooks/useMRT_TableOptions.ts +1 -1
- package/src/inputs/MRT_FilterTextField.tsx +2 -1
- package/src/inputs/MRT_SelectCheckbox.tsx +4 -3
- package/src/style.utils.ts +6 -1
- package/src/table/MRT_Table.tsx +1 -3
- package/src/toolbar/MRT_BottomToolbar.tsx +1 -1
- package/src/toolbar/MRT_TablePagination.tsx +8 -4
package/dist/index.d.ts
CHANGED
@@ -1054,13 +1054,13 @@ interface Props$S<TData extends MRT_RowData> extends TableCellProps {
|
|
1054
1054
|
cell: MRT_Cell<TData>;
|
1055
1055
|
measureElement?: (element: HTMLTableCellElement) => void;
|
1056
1056
|
numRows?: number;
|
1057
|
-
rowIndex: number;
|
1058
1057
|
rowRef: RefObject<HTMLTableRowElement>;
|
1058
|
+
staticRowIndex: number;
|
1059
1059
|
table: MRT_TableInstance<TData>;
|
1060
1060
|
virtualColumnIndex?: number;
|
1061
1061
|
}
|
1062
|
-
declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows,
|
1063
|
-
declare const Memo_MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows,
|
1062
|
+
declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows, rowRef, staticRowIndex, table, virtualColumnIndex, ...rest }: Props$S<TData>) => react_jsx_runtime.JSX.Element;
|
1063
|
+
declare const Memo_MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows, rowRef, staticRowIndex, table, virtualColumnIndex, ...rest }: Props$S<TData>) => react_jsx_runtime.JSX.Element;
|
1064
1064
|
|
1065
1065
|
interface Props$R<TData extends MRT_RowData> {
|
1066
1066
|
cell: MRT_Cell<TData>;
|
@@ -1072,16 +1072,16 @@ declare const MRT_TableBodyCellValue: <TData extends MRT_RowData>({ cell, rowRef
|
|
1072
1072
|
|
1073
1073
|
interface Props$Q<TData extends MRT_RowData> {
|
1074
1074
|
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1075
|
-
measureElement?: (element: HTMLTableRowElement) => void;
|
1076
1075
|
numRows?: number;
|
1077
1076
|
pinnedRowIds?: string[];
|
1078
1077
|
row: MRT_Row<TData>;
|
1079
|
-
|
1078
|
+
rowVirtualizer?: MRT_RowVirtualizer;
|
1079
|
+
staticRowIndex: number;
|
1080
1080
|
table: MRT_TableInstance<TData>;
|
1081
1081
|
virtualRow?: VirtualItem;
|
1082
1082
|
}
|
1083
|
-
declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer,
|
1084
|
-
declare const Memo_MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer,
|
1083
|
+
declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, numRows, pinnedRowIds, row, rowVirtualizer, staticRowIndex, table, virtualRow, }: Props$Q<TData>) => react_jsx_runtime.JSX.Element;
|
1084
|
+
declare const Memo_MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, numRows, pinnedRowIds, row, rowVirtualizer, staticRowIndex, table, virtualRow, }: Props$Q<TData>) => react_jsx_runtime.JSX.Element;
|
1085
1085
|
|
1086
1086
|
interface Props$P<TData extends MRT_RowData> extends IconButtonProps {
|
1087
1087
|
row: MRT_Row<TData>;
|
@@ -1099,11 +1099,12 @@ declare const MRT_TableBodyRowPinButton: <TData extends MRT_RowData>({ row, tabl
|
|
1099
1099
|
interface Props$N<TData extends MRT_RowData> extends TableCellProps {
|
1100
1100
|
parentRowRef: RefObject<HTMLTableRowElement>;
|
1101
1101
|
row: MRT_Row<TData>;
|
1102
|
-
|
1102
|
+
rowVirtualizer?: MRT_RowVirtualizer;
|
1103
|
+
staticRowIndex: number;
|
1103
1104
|
table: MRT_TableInstance<TData>;
|
1104
1105
|
virtualRow?: VirtualItem;
|
1105
1106
|
}
|
1106
|
-
declare const MRT_TableDetailPanel: <TData extends MRT_RowData>({ parentRowRef, row,
|
1107
|
+
declare const MRT_TableDetailPanel: <TData extends MRT_RowData>({ parentRowRef, row, rowVirtualizer, staticRowIndex, table, virtualRow, ...rest }: Props$N<TData>) => react_jsx_runtime.JSX.Element;
|
1107
1108
|
|
1108
1109
|
interface Props$M<TData extends MRT_RowData> extends BoxProps {
|
1109
1110
|
column: MRT_Column<TData>;
|
@@ -1553,6 +1554,11 @@ declare const getCommonToolbarStyles: <TData extends MRT_RowData>({ table, theme
|
|
1553
1554
|
transition: string;
|
1554
1555
|
zIndex: number;
|
1555
1556
|
};
|
1557
|
+
declare const flipIconStyles: (theme: Theme) => {
|
1558
|
+
style: {
|
1559
|
+
transform: string;
|
1560
|
+
};
|
1561
|
+
} | undefined;
|
1556
1562
|
|
1557
1563
|
interface Props$a<TData extends MRT_RowData> extends TableProps {
|
1558
1564
|
table: MRT_TableInstance<TData>;
|
@@ -1622,4 +1628,4 @@ declare const MRT_TopToolbar: <TData extends MRT_RowData>({ table, }: Props<TDat
|
|
1622
1628
|
|
1623
1629
|
declare const useMaterialReactTable: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_TableInstance<TData>;
|
1624
1630
|
|
1625
|
-
export { type LiteralUnion, type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_Cell, type MRT_Column, MRT_ColumnActionMenu, type MRT_ColumnDef, type MRT_ColumnFilterFnsState, type MRT_ColumnFiltersState, type MRT_ColumnHelper, type MRT_ColumnOrderState, MRT_ColumnPinningButtons, type MRT_ColumnPinningState, type MRT_ColumnSizingInfoState, type MRT_ColumnSizingState, type MRT_ColumnVirtualizer, MRT_CopyButton, MRT_DefaultColumn, MRT_DefaultDisplayColumn, type MRT_DefinedColumnDef, type MRT_DefinedTableOptions, type MRT_DensityState, type MRT_DisplayColumnDef, type MRT_DisplayColumnIds, MRT_EditActionButtons, MRT_EditCellTextField, MRT_EditRowModal, MRT_ExpandAllButton, MRT_ExpandButton, type MRT_ExpandedState, MRT_FilterCheckbox, type MRT_FilterFn, MRT_FilterFns, type MRT_FilterOption, MRT_FilterOptionMenu, MRT_FilterRangeFields, MRT_FilterRangeSlider, MRT_FilterTextField, MRT_GlobalFilterTextField, MRT_GrabHandleButton, type MRT_GroupColumnDef, type MRT_GroupingState, type MRT_Header, type MRT_HeaderGroup, type MRT_Icons, type MRT_InternalFilterOption, MRT_LinearProgressBar, type MRT_Localization, type MRT_PaginationState, type MRT_Row, MRT_RowActionMenu, type MRT_RowData, type MRT_RowModel, MRT_RowPinButton, type MRT_RowSelectionState, type MRT_RowVirtualizer, MRT_SelectCheckbox, MRT_ShowHideColumnsButton, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, type MRT_SortingFn, MRT_SortingFns, type MRT_SortingOption, type MRT_SortingState, MRT_Table, MRT_TableBody, MRT_TableBodyCell, MRT_TableBodyCellValue, MRT_TableBodyRow, MRT_TableBodyRowGrabHandle, MRT_TableBodyRowPinButton, MRT_TableContainer, MRT_TableDetailPanel, MRT_TableFooter, MRT_TableFooterCell, MRT_TableFooterRow, MRT_TableHead, MRT_TableHeadCell, MRT_TableHeadCellColumnActionsButton, MRT_TableHeadCellFilterContainer, MRT_TableHeadCellFilterLabel, MRT_TableHeadCellGrabHandle, MRT_TableHeadCellResizeHandle, MRT_TableHeadCellSortLabel, MRT_TableHeadRow, type MRT_TableInstance, MRT_TableLoadingOverlay, type MRT_TableOptions, MRT_TablePagination, MRT_TablePaper, type MRT_TableState, type MRT_Theme, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleFullScreenButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, type MRT_Updater, type MRT_VirtualItem, type MRT_Virtualizer, type MRT_VirtualizerOptions, type MRT_VisibilityState, MaterialReactTable, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, type Prettify, type Xor, commonListItemStyles, commonMenuItemStyles, createMRTColumnHelper, createRow, extraIndexRangeExtractor, flexRender, getAllLeafColumnDefs, getCanRankRows, getColumnId, getCommonMRTCellStyles, getCommonToolbarStyles, getDefaultColumnFilterFn, getDefaultColumnOrderIds, getIsFirstColumn, getIsFirstRightPinnedColumn, getIsLastColumn, getIsLastLeftPinnedColumn, getLeadingDisplayColumnIds, getMRTTheme, getTotalRight, getTrailingDisplayColumnIds, getValueAndLabel, mrtFilterOptions, parseCSSVarId, parseFromValuesOrFunc, prepareColumns, rankGlobalFuzzy, reorderColumn, showExpandColumn, useMRT_ColumnVirtualizer, useMRT_DisplayColumns, useMRT_Effects, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMaterialReactTable };
|
1631
|
+
export { type LiteralUnion, type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_Cell, type MRT_Column, MRT_ColumnActionMenu, type MRT_ColumnDef, type MRT_ColumnFilterFnsState, type MRT_ColumnFiltersState, type MRT_ColumnHelper, type MRT_ColumnOrderState, MRT_ColumnPinningButtons, type MRT_ColumnPinningState, type MRT_ColumnSizingInfoState, type MRT_ColumnSizingState, type MRT_ColumnVirtualizer, MRT_CopyButton, MRT_DefaultColumn, MRT_DefaultDisplayColumn, type MRT_DefinedColumnDef, type MRT_DefinedTableOptions, type MRT_DensityState, type MRT_DisplayColumnDef, type MRT_DisplayColumnIds, MRT_EditActionButtons, MRT_EditCellTextField, MRT_EditRowModal, MRT_ExpandAllButton, MRT_ExpandButton, type MRT_ExpandedState, MRT_FilterCheckbox, type MRT_FilterFn, MRT_FilterFns, type MRT_FilterOption, MRT_FilterOptionMenu, MRT_FilterRangeFields, MRT_FilterRangeSlider, MRT_FilterTextField, MRT_GlobalFilterTextField, MRT_GrabHandleButton, type MRT_GroupColumnDef, type MRT_GroupingState, type MRT_Header, type MRT_HeaderGroup, type MRT_Icons, type MRT_InternalFilterOption, MRT_LinearProgressBar, type MRT_Localization, type MRT_PaginationState, type MRT_Row, MRT_RowActionMenu, type MRT_RowData, type MRT_RowModel, MRT_RowPinButton, type MRT_RowSelectionState, type MRT_RowVirtualizer, MRT_SelectCheckbox, MRT_ShowHideColumnsButton, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, type MRT_SortingFn, MRT_SortingFns, type MRT_SortingOption, type MRT_SortingState, MRT_Table, MRT_TableBody, MRT_TableBodyCell, MRT_TableBodyCellValue, MRT_TableBodyRow, MRT_TableBodyRowGrabHandle, MRT_TableBodyRowPinButton, MRT_TableContainer, MRT_TableDetailPanel, MRT_TableFooter, MRT_TableFooterCell, MRT_TableFooterRow, MRT_TableHead, MRT_TableHeadCell, MRT_TableHeadCellColumnActionsButton, MRT_TableHeadCellFilterContainer, MRT_TableHeadCellFilterLabel, MRT_TableHeadCellGrabHandle, MRT_TableHeadCellResizeHandle, MRT_TableHeadCellSortLabel, MRT_TableHeadRow, type MRT_TableInstance, MRT_TableLoadingOverlay, type MRT_TableOptions, MRT_TablePagination, MRT_TablePaper, type MRT_TableState, type MRT_Theme, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleFullScreenButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, type MRT_Updater, type MRT_VirtualItem, type MRT_Virtualizer, type MRT_VirtualizerOptions, type MRT_VisibilityState, MaterialReactTable, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, type Prettify, type Xor, commonListItemStyles, commonMenuItemStyles, createMRTColumnHelper, createRow, extraIndexRangeExtractor, flexRender, flipIconStyles, getAllLeafColumnDefs, getCanRankRows, getColumnId, getCommonMRTCellStyles, getCommonToolbarStyles, getDefaultColumnFilterFn, getDefaultColumnOrderIds, getIsFirstColumn, getIsFirstRightPinnedColumn, getIsLastColumn, getIsLastLeftPinnedColumn, getLeadingDisplayColumnIds, getMRTTheme, getTotalRight, getTrailingDisplayColumnIds, getValueAndLabel, mrtFilterOptions, parseCSSVarId, parseFromValuesOrFunc, prepareColumns, rankGlobalFuzzy, reorderColumn, showExpandColumn, useMRT_ColumnVirtualizer, useMRT_DisplayColumns, useMRT_Effects, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMaterialReactTable };
|