umwd-components 0.1.719 → 0.1.721

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.
@@ -2,7 +2,7 @@
2
2
  * INFO Fetch all IROs
3
3
  * used by the IROs table in the admin panel
4
4
  */
5
- declare function getAllIros(currentPage: number, rowsPerPage: number, order: "asc" | "desc", orderBy: string, is_archive?: boolean[], // default to only non-archived OPOs
5
+ declare function getAllIros(currentPage: number, rowsPerPage: number, order: "asc" | "desc", orderBy?: string, is_archive?: boolean[], // default to only non-archived OPOs
6
6
  filters?: {
7
7
  [key: string]: string;
8
8
  }): Promise<any>;
@@ -25,7 +25,7 @@ export type func = {
25
25
  export type selectFunc = {
26
26
  icon: JSX.Element;
27
27
  label: string;
28
- onClick: (event: React.MouseEvent<unknown>, selected: number[]) => void;
28
+ onClick: (event: React.MouseEvent<unknown>, selected: string[]) => void;
29
29
  };
30
30
  export interface EnhancedTableProps {
31
31
  data: Data;
@@ -56,8 +56,8 @@ export interface EnhancedTableHeadProps {
56
56
  withSubRows?: boolean;
57
57
  }
58
58
  export interface EnhancedTableToolbarProps {
59
- selected: number[];
60
- setSelected?: React.Dispatch<React.SetStateAction<number[]>>;
59
+ selected: string[];
60
+ setSelected?: React.Dispatch<React.SetStateAction<string[]>>;
61
61
  title?: string;
62
62
  functions?: func[];
63
63
  selectFunctions?: selectFunc[];
@@ -71,7 +71,7 @@ export interface EnhancedTableRowProps {
71
71
  subHeadCells?: HeadCell[];
72
72
  withSelection?: boolean;
73
73
  isSelected?: boolean;
74
- handleSelectClick?: (event: React.MouseEvent<unknown>, id: number) => void;
74
+ handleSelectClick?: (event: React.MouseEvent<unknown>, id: string) => void;
75
75
  subTitle?: string;
76
76
  }
77
77
  export type Order = "asc" | "desc";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.719",
3
+ "version": "0.1.721",
4
4
  "description": "UMWD Component library",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",