simple-table-core 1.5.4 → 1.5.5

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.
@@ -13,6 +13,7 @@ import RowSelectionChangeProps from "../../types/RowSelectionChangeProps";
13
13
  import CellClickProps from "../../types/CellClickProps";
14
14
  import { RowButton } from "../../types/RowButton";
15
15
  import { HeaderDropdown } from "../../types/HeaderDropdownProps";
16
+ import FooterRendererProps from "../../types/FooterRendererProps";
16
17
  interface SimpleTableProps {
17
18
  allowAnimations?: boolean;
18
19
  cellUpdateFlash?: boolean;
@@ -31,6 +32,7 @@ interface SimpleTableProps {
31
32
  expandIcon?: ReactNode;
32
33
  externalFilterHandling?: boolean;
33
34
  externalSortHandling?: boolean;
35
+ footerRenderer?: (props: FooterRendererProps) => ReactNode;
34
36
  headerCollapseIcon?: ReactNode;
35
37
  headerExpandIcon?: ReactNode;
36
38
  headerDropdown?: HeaderDropdown;
@@ -1,15 +1,19 @@
1
1
  import { ReactNode } from "react";
2
2
  import OnNextPage from "../../types/OnNextPage";
3
+ import FooterRendererProps from "../../types/FooterRendererProps";
3
4
  interface TableFooterProps {
4
5
  currentPage: number;
6
+ footerRenderer?: (props: FooterRendererProps) => ReactNode;
5
7
  hideFooter?: boolean;
6
8
  nextIcon?: ReactNode;
7
9
  onPageChange: (page: number) => void;
8
10
  onNextPage?: OnNextPage;
9
11
  onPreviousPage?: OnNextPage;
10
12
  prevIcon?: ReactNode;
13
+ rowsPerPage: number;
11
14
  shouldPaginate?: boolean;
12
15
  totalPages: number;
16
+ totalRows: number;
13
17
  }
14
- declare const TableFooter: ({ currentPage, hideFooter, onPageChange, onNextPage, shouldPaginate, totalPages, }: TableFooterProps) => import("react/jsx-runtime").JSX.Element | null;
18
+ declare const TableFooter: ({ currentPage, footerRenderer, hideFooter, onPageChange, onNextPage, rowsPerPage, shouldPaginate, totalPages, totalRows, }: TableFooterProps) => import("react/jsx-runtime").JSX.Element | null;
15
19
  export default TableFooter;
package/dist/index.d.ts CHANGED
@@ -25,5 +25,6 @@ import CellRendererProps, { CellRenderer } from "./types/CellRendererProps";
25
25
  import HeaderRendererProps, { HeaderRenderer } from "./types/HeaderRendererProps";
26
26
  import HeaderDropdownProps, { HeaderDropdown } from "./types/HeaderDropdownProps";
27
27
  import { RowButtonProps } from "./types/RowButton";
28
+ import FooterRendererProps from "./types/FooterRendererProps";
28
29
  export { SimpleTable };
29
- export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ColumnEditorPosition, ColumnType, DragHandlerProps, EnumOption, ExportToCSVProps, FilterCondition, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, OnSortProps, Row, RowButtonProps, RowSelectionChangeProps, SetHeaderRenameProps, SharedTableProps, ShowWhen, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, };
30
+ export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ColumnEditorPosition, ColumnType, DragHandlerProps, EnumOption, ExportToCSVProps, FilterCondition, FooterRendererProps, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, OnSortProps, Row, RowButtonProps, RowSelectionChangeProps, SetHeaderRenameProps, SharedTableProps, ShowWhen, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, };