@adiba-banking-cloud/backoffice 0.0.78 → 0.0.80
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.
|
@@ -12943,10 +12943,10 @@ const SimpleBody = _ref => {
|
|
|
12943
12943
|
fw: 300,
|
|
12944
12944
|
fz: "sm",
|
|
12945
12945
|
h: 50
|
|
12946
|
-
}, columns.map((column,
|
|
12946
|
+
}, columns.map((column, idx) => {
|
|
12947
12947
|
const columnIndex = column.id;
|
|
12948
12948
|
return /*#__PURE__*/React.createElement(core.Table.Td, {
|
|
12949
|
-
key:
|
|
12949
|
+
key: idx
|
|
12950
12950
|
}, typeof row[columnIndex] === 'function' ? row[columnIndex]("".concat(index)) : row[columnIndex] || "");
|
|
12951
12951
|
}));
|
|
12952
12952
|
};
|
|
@@ -12922,10 +12922,10 @@ const SimpleBody = _ref => {
|
|
|
12922
12922
|
fw: 300,
|
|
12923
12923
|
fz: "sm",
|
|
12924
12924
|
h: 50
|
|
12925
|
-
}, columns.map((column,
|
|
12925
|
+
}, columns.map((column, idx) => {
|
|
12926
12926
|
const columnIndex = column.id;
|
|
12927
12927
|
return /*#__PURE__*/React.createElement(Table.Td, {
|
|
12928
|
-
key:
|
|
12928
|
+
key: idx
|
|
12929
12929
|
}, typeof row[columnIndex] === 'function' ? row[columnIndex]("".concat(index)) : row[columnIndex] || "");
|
|
12930
12930
|
}));
|
|
12931
12931
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { AlertProps, DrawerProps, ModalProps, NotificationProps, ButtonProps } from "@mantine/core";
|
|
2
|
+
import { PageTitleProps } from '../../components/general/title/Title.types';
|
|
3
|
+
export interface DrawerActionProps {
|
|
4
|
+
title: string;
|
|
5
|
+
page: React.ReactNode;
|
|
6
|
+
drawerProps?: DrawerProps;
|
|
7
|
+
}
|
|
8
|
+
export interface ModalActionProps {
|
|
9
|
+
title: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
confirm?: {
|
|
12
|
+
label?: string;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
};
|
|
15
|
+
cancel?: {
|
|
16
|
+
label?: string;
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
};
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
modalProps?: ModalProps;
|
|
21
|
+
}
|
|
22
|
+
export interface ToastActionProps {
|
|
23
|
+
title: string;
|
|
24
|
+
type: "success" | "error" | "warning" | "info" | "loading";
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
toastProps?: NotificationProps;
|
|
27
|
+
}
|
|
28
|
+
export interface UserActionProps {
|
|
29
|
+
id: string;
|
|
30
|
+
app: string;
|
|
31
|
+
name: string;
|
|
32
|
+
email: string;
|
|
33
|
+
role?: "admin" | "user" | "manager";
|
|
34
|
+
permissions?: string[];
|
|
35
|
+
preferences?: {
|
|
36
|
+
theme: "light" | "dark";
|
|
37
|
+
language: string;
|
|
38
|
+
notifications: boolean | number;
|
|
39
|
+
};
|
|
40
|
+
portal?: PortalStateProps;
|
|
41
|
+
}
|
|
42
|
+
export interface NotificationActionProps {
|
|
43
|
+
title: string;
|
|
44
|
+
type: "success" | "error" | "warning" | "info" | "loading";
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
actionButtons?: {
|
|
47
|
+
label?: string;
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
buttonProps?: ButtonProps;
|
|
50
|
+
}[];
|
|
51
|
+
notificationProps?: AlertProps;
|
|
52
|
+
}
|
|
53
|
+
export interface PageTitleActionProps {
|
|
54
|
+
title: string;
|
|
55
|
+
pageTitleProps?: PageTitleProps;
|
|
56
|
+
}
|
|
57
|
+
interface PortalStateProps {
|
|
58
|
+
sidebarCollapsed: boolean;
|
|
59
|
+
breadcrumbs: Array<{
|
|
60
|
+
label: string;
|
|
61
|
+
path: string;
|
|
62
|
+
}>;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.80",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|