@luscii-healthtech/web-ui 0.2.1 → 0.2.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.1",
2
+ "version": "0.2.2",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -9,6 +9,7 @@ import { RestPropped } from "../../types/general.types";
9
9
  import {
10
10
  Localization,
11
11
  OnPaginationChange,
12
+ PageSize,
12
13
  } from "../PaginationMenu/PaginationMenu.types";
13
14
 
14
15
  import ListTableRow from "./ListTableRow";
@@ -22,12 +23,14 @@ export interface ListTableProps<ItemType extends ListTableItem, CellType>
22
23
  configuration: ListTablePropsConfiguration<ItemType, CellType>;
23
24
  pageCount?: number;
24
25
  currentPage?: number;
25
- onRowClick?: (arg: ItemType) => void;
26
26
  onPaginationChange?: OnPaginationChange;
27
+ pageSize?: PageSize;
28
+ localization?: Localization;
29
+ resultCount?: number;
30
+ onRowClick?: (arg: ItemType) => void;
27
31
  isLoading?: boolean;
28
32
  showHeader?: boolean;
29
33
  className?: string;
30
- localization: Localization;
31
34
  }
32
35
 
33
36
  export interface ListTablePropsConfiguration<
@@ -63,11 +66,13 @@ export function ListTable<ItemType extends ListTableItem, CellType>({
63
66
  pageCount = 0,
64
67
  currentPage = 1,
65
68
  onPaginationChange,
69
+ pageSize,
70
+ localization,
71
+ resultCount,
66
72
  onRowClick,
67
73
  isLoading = false,
68
74
  showHeader = true,
69
75
  className,
70
- localization,
71
76
  ...restProps
72
77
  }: ListTableProps<ItemType, CellType>): JSX.Element {
73
78
  // For not displaying empty view at creation
@@ -162,10 +167,12 @@ export function ListTable<ItemType extends ListTableItem, CellType>({
162
167
  )}
163
168
  >
164
169
  <PaginationMenu
165
- onChange={onPaginationChange}
166
170
  pageCount={pageCount}
167
171
  currentPageNumber={currentPage}
172
+ onChange={onPaginationChange}
173
+ pageSize={pageSize}
168
174
  localization={localization}
175
+ resultCount={resultCount}
169
176
  />
170
177
  </div>
171
178
  </td>