@adiba-banking-cloud/backoffice 0.0.43 → 0.0.44

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.
@@ -13063,19 +13063,38 @@ const File = _ref => {
13063
13063
  }, /*#__PURE__*/React.createElement(Icons, rightsection === null || rightsection === void 0 ? void 0 : rightsection.icon)) : undefined)));
13064
13064
  };
13065
13065
 
13066
+ var ErrorAnimation = "data:null;base64,UEsDBBQAAAAIAEC21lqNk9Q5gAAAALUAAAANAAAAbWFuaWZlc3QuanNvbo2NQQ7CIBBF7zJrqYCk2K56AU9gXIyFKoYyBkYT0/Tu4sZ1d/8n7+Ut8Pa5BErQg4Id3HzyGZly/YMjjsQc/P6/xKMMqtGNrCy++L4NTGFGrpEC/XmB4KpjtTsaPV6FVG0rjEUUne0mMaFDHKVCc/ipz4ifEzlfjUR5xgjrZf0CUEsDBBQAAAAIAEC21loISOBs8wYAAK1lAAA0AAAAYW5pbWF0aW9ucy83MmQ4NDJjYi0wMTY2LTQ3YWEtOTc5Zi1mYWRhYWMwMWE0MzAuanNvbu1cW2/iRhT+K2iebcsz4ytvvb+0UqVWfUHRik3IhoYAAnpZRfnv/c7MGMZgE5wGyrpHK8Zk7ufzOd98M2b9LP4UQ5FEWaRFIO5XYqiSQEyXYhgHYoGLkoH4Swy1wt8P7jp/Qpvbh8nt42y63qDd3d2daTBeryebtRiObgIxG3+erOj787Z4OsdVBWLzWQwxiunml4fxcjL4kSoPJM3hEW2exYKSsWn1KIYyjl8Cgcl5edrkYYZe3khmcSDTMkqD+AalKPBL4yDUiS0xg3jtYrSzn5sXaojxUbSmyVkbaM7i0woTnG6sUZiWNUVMZsiuekQm9fgsppTxNw0bZVkemBS4oMFIBpImYYy0NaSpgdTV8HNQc44sES/Rwwf5IV4i16YYtykXnWCSmZnUSKZRjLtoLyiZGCQIBViF+eYvNMIekLaCvUXfzWbT5Xoy+Hm8eRhIDPmE6Yivvv36u8Fvk9vNYjWwNzEc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067
13069
  let {
13068
13070
  context,
13069
13071
  id,
13070
13072
  innerProps
13071
13073
  } = _ref;
13072
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Text, {
13073
- size: "sm"
13074
- }, innerProps.modalBody), /*#__PURE__*/React.createElement(core.Button, {
13074
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Stack, {
13075
+ align: "center",
13076
+ py: "md"
13077
+ }, /*#__PURE__*/React.createElement(core.Center, {
13078
+ w: 170,
13079
+ h: 170
13080
+ }, /*#__PURE__*/React.createElement(dotlottieReact.DotLottieReact, {
13081
+ speed: 0.8,
13082
+ src: ErrorAnimation,
13083
+ loop: false,
13084
+ autoplay: true
13085
+ })), /*#__PURE__*/React.createElement(core.Text, {
13086
+ fw: 300,
13087
+ ta: "center"
13088
+ }, innerProps.modalBody)), /*#__PURE__*/React.createElement(core.Button, {
13089
+ radius: "xl",
13090
+ fw: 300,
13091
+ size: "md",
13075
13092
  fullWidth: true,
13076
- mt: "md",
13077
- onClick: () => context.closeModal(id)
13078
- }, "Close modal"));
13093
+ onClick: () => {
13094
+ innerProps.button.onClick();
13095
+ context.closeAll();
13096
+ }
13097
+ }, innerProps.button.label));
13079
13098
  };
13080
13099
 
13081
13100
  const InfoModal = _ref => {
@@ -13118,8 +13137,7 @@ const SuccessModal = _ref => {
13118
13137
  } = _ref;
13119
13138
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Stack, {
13120
13139
  align: "center",
13121
- p: 0,
13122
- pb: "md"
13140
+ py: "md"
13123
13141
  }, /*#__PURE__*/React.createElement(core.Center, {
13124
13142
  w: 170,
13125
13143
  h: 170
@@ -13166,8 +13184,7 @@ const ConfirmModal = _ref => {
13166
13184
  } = _ref;
13167
13185
  return /*#__PURE__*/React.createElement(core.Stack, {
13168
13186
  align: "center",
13169
- p: 0,
13170
- pb: "md"
13187
+ py: "md"
13171
13188
  }, /*#__PURE__*/React.createElement(core.Center, {
13172
13189
  w: 150,
13173
13190
  h: 150
@@ -13220,13 +13237,19 @@ const useModal = () => {
13220
13237
  labels
13221
13238
  }, rest));
13222
13239
  };
13223
- const ErrorModal = () => modals.modals.openContextModal({
13224
- modal: "ErrorModal",
13225
- title: "Error",
13226
- innerProps: {
13227
- modalBody: "This is an error modal"
13228
- }
13229
- });
13240
+ const ErrorModal = _ref2 => {
13241
+ let {
13242
+ title,
13243
+ message
13244
+ } = _ref2;
13245
+ return modals.modals.openContextModal({
13246
+ modal: "ErrorModal",
13247
+ title: title,
13248
+ innerProps: {
13249
+ modalBody: message
13250
+ }
13251
+ });
13252
+ };
13230
13253
  const InfoModal = () => modals.modals.openContextModal({
13231
13254
  modal: "InfoModal",
13232
13255
  title: "Info",
@@ -13234,11 +13257,11 @@ const useModal = () => {
13234
13257
  modalBody: "This is an info modal"
13235
13258
  }
13236
13259
  });
13237
- const SimpleModal = _ref2 => {
13260
+ const SimpleModal = _ref3 => {
13238
13261
  let {
13239
13262
  title,
13240
13263
  message
13241
- } = _ref2;
13264
+ } = _ref3;
13242
13265
  return modals.modals.openContextModal({
13243
13266
  modal: "SimpleModal",
13244
13267
  title: title,
@@ -13247,7 +13270,7 @@ const useModal = () => {
13247
13270
  }
13248
13271
  });
13249
13272
  };
13250
- const SuccessModal = _ref3 => {
13273
+ const SuccessModal = _ref4 => {
13251
13274
  let {
13252
13275
  title,
13253
13276
  message = "This operation was successful!",
@@ -13255,7 +13278,7 @@ const useModal = () => {
13255
13278
  label: "OK Thanks",
13256
13279
  onClick: e => {}
13257
13280
  }
13258
- } = _ref3;
13281
+ } = _ref4;
13259
13282
  return modals.modals.openContextModal({
13260
13283
  modal: "SuccessModal",
13261
13284
  title: title,
@@ -13042,19 +13042,38 @@ const File = _ref => {
13042
13042
  }, /*#__PURE__*/React.createElement(Icons, rightsection === null || rightsection === void 0 ? void 0 : rightsection.icon)) : undefined)));
13043
13043
  };
13044
13044
 
13045
+ var ErrorAnimation = "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qYVXNPyZhbubB+3rswJDx7qSqu+9bF2eeF6RmEd2zY5h4JB1hkEPxxnGuVkTwyQXYxgn+PUufLZBU55MMZGWCjQj4YzwiyaqibBpIqmbZurL5Zxqc9TEOQhAm1j4vgBryP+sOf7k3ZYvywL6NJizPdJpO+ppPPA53Sx/d7oz5MRc3zzEH5nnm+KMy4uAPv76kL3b+mDJ0V7+n+tDHOUFjoVx2R5l8PpwcASBo55X1ocj73Tu8krnRsoG/fRRFbqYP2RohRdw0+cL4mencP2ZW1vwOCWgj8dfxXvRVxbF4A+Tno+8ajvvM2+d3vV4nGDeMc65Z36oyFIzfnXucObxq+PfmpPZww2MTIcbRHozj6C6HG6810p2LhB2TOJgKO3TyvNgjc73wLa3+hx7N63N3i2jxx9vWZuzpIwkFid3vcI1uvuTT7dGo0HHU6Ijb7/t8vLblm0VPZSnn6iUEOddHhDoHM/uYx1U13f4qUp1Yqiw10uxINHlQivEjhR0qvCzAbPB2P/WKm/rp7Tkz5dgsOog+ZJnMjauY6Ie1twmnk0AH4/om5d/AFBLAQIUABQAAAAIAEC21lqNk9Q5gAAAALUAAAANAAAAAAAAAAAAAAAAAAAAAABtYW5pZmVzdC5qc29uUEsBAhQAFAAAAAgAQLbWWghI4GzzBgAArWUAADQAAAAAAAAAAAAAAAAAqwAAAGFuaW1hdGlvbnMvNzJkODQyY2ItMDE2Ni00N2FhLTk3OWYtZmFkYWFjMDFhNDMwLmpzb25QSwUGAAAAAAIAAgCdAAAA8AcAAAAA";
13046
+
13045
13047
  const ErrorModal = _ref => {
13046
13048
  let {
13047
13049
  context,
13048
13050
  id,
13049
13051
  innerProps
13050
13052
  } = _ref;
13051
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
13052
- size: "sm"
13053
- }, innerProps.modalBody), /*#__PURE__*/React.createElement(Button, {
13053
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
13054
+ align: "center",
13055
+ py: "md"
13056
+ }, /*#__PURE__*/React.createElement(Center, {
13057
+ w: 170,
13058
+ h: 170
13059
+ }, /*#__PURE__*/React.createElement(DotLottieReact, {
13060
+ speed: 0.8,
13061
+ src: ErrorAnimation,
13062
+ loop: false,
13063
+ autoplay: true
13064
+ })), /*#__PURE__*/React.createElement(Text, {
13065
+ fw: 300,
13066
+ ta: "center"
13067
+ }, innerProps.modalBody)), /*#__PURE__*/React.createElement(Button, {
13068
+ radius: "xl",
13069
+ fw: 300,
13070
+ size: "md",
13054
13071
  fullWidth: true,
13055
- mt: "md",
13056
- onClick: () => context.closeModal(id)
13057
- }, "Close modal"));
13072
+ onClick: () => {
13073
+ innerProps.button.onClick();
13074
+ context.closeAll();
13075
+ }
13076
+ }, innerProps.button.label));
13058
13077
  };
13059
13078
 
13060
13079
  const InfoModal = _ref => {
@@ -13097,8 +13116,7 @@ const SuccessModal = _ref => {
13097
13116
  } = _ref;
13098
13117
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
13099
13118
  align: "center",
13100
- p: 0,
13101
- pb: "md"
13119
+ py: "md"
13102
13120
  }, /*#__PURE__*/React.createElement(Center, {
13103
13121
  w: 170,
13104
13122
  h: 170
@@ -13145,8 +13163,7 @@ const ConfirmModal = _ref => {
13145
13163
  } = _ref;
13146
13164
  return /*#__PURE__*/React.createElement(Stack, {
13147
13165
  align: "center",
13148
- p: 0,
13149
- pb: "md"
13166
+ py: "md"
13150
13167
  }, /*#__PURE__*/React.createElement(Center, {
13151
13168
  w: 150,
13152
13169
  h: 150
@@ -13199,13 +13216,19 @@ const useModal = () => {
13199
13216
  labels
13200
13217
  }, rest));
13201
13218
  };
13202
- const ErrorModal = () => modals.openContextModal({
13203
- modal: "ErrorModal",
13204
- title: "Error",
13205
- innerProps: {
13206
- modalBody: "This is an error modal"
13207
- }
13208
- });
13219
+ const ErrorModal = _ref2 => {
13220
+ let {
13221
+ title,
13222
+ message
13223
+ } = _ref2;
13224
+ return modals.openContextModal({
13225
+ modal: "ErrorModal",
13226
+ title: title,
13227
+ innerProps: {
13228
+ modalBody: message
13229
+ }
13230
+ });
13231
+ };
13209
13232
  const InfoModal = () => modals.openContextModal({
13210
13233
  modal: "InfoModal",
13211
13234
  title: "Info",
@@ -13213,11 +13236,11 @@ const useModal = () => {
13213
13236
  modalBody: "This is an info modal"
13214
13237
  }
13215
13238
  });
13216
- const SimpleModal = _ref2 => {
13239
+ const SimpleModal = _ref3 => {
13217
13240
  let {
13218
13241
  title,
13219
13242
  message
13220
- } = _ref2;
13243
+ } = _ref3;
13221
13244
  return modals.openContextModal({
13222
13245
  modal: "SimpleModal",
13223
13246
  title: title,
@@ -13226,7 +13249,7 @@ const useModal = () => {
13226
13249
  }
13227
13250
  });
13228
13251
  };
13229
- const SuccessModal = _ref3 => {
13252
+ const SuccessModal = _ref4 => {
13230
13253
  let {
13231
13254
  title,
13232
13255
  message = "This operation was successful!",
@@ -13234,7 +13257,7 @@ const useModal = () => {
13234
13257
  label: "OK Thanks",
13235
13258
  onClick: e => {}
13236
13259
  }
13237
- } = _ref3;
13260
+ } = _ref4;
13238
13261
  return modals.openContextModal({
13239
13262
  modal: "SuccessModal",
13240
13263
  title: title,
@@ -1,4 +1,8 @@
1
1
  import { ContextModalProps } from "@mantine/modals";
2
2
  export declare const ErrorModal: ({ context, id, innerProps, }: ContextModalProps<{
3
3
  modalBody: string;
4
+ button: {
5
+ label: string;
6
+ onClick: () => void;
7
+ };
4
8
  }>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,10 @@
1
1
  export declare const useManagedModals: () => {
2
2
  ErrorModal: ({ context, id, innerProps, }: import("@mantine/modals").ContextModalProps<{
3
3
  modalBody: string;
4
+ button: {
5
+ label: string;
6
+ onClick: () => void;
7
+ };
4
8
  }>) => import("react/jsx-runtime").JSX.Element;
5
9
  InfoModal: ({ context, id, innerProps, }: import("@mantine/modals").ContextModalProps<{
6
10
  modalBody: string;
@@ -2,9 +2,9 @@ import { OpenConfirmModal } from "@mantine/modals/lib/context";
2
2
  import { SimpleModalProps, SuccessModalProps } from "./useModal.types";
3
3
  export declare const useModal: () => {
4
4
  ConfirmationModal: ({ title, children, onConfirm, labels, ...rest }: OpenConfirmModal) => string;
5
- ErrorModal: () => string;
5
+ ErrorModal: ({ title, message }: SimpleModalProps) => string;
6
6
  InfoModal: () => string;
7
7
  SimpleModal: ({ title, message }: SimpleModalProps) => string;
8
- SuccessModal: ({ title, message, button }: SuccessModalProps) => string;
8
+ SuccessModal: ({ title, message, button, }: SuccessModalProps) => string;
9
9
  TwoFactorVerificationModal: () => string;
10
10
  };
@@ -6,6 +6,14 @@ export type SuccessModalProps = {
6
6
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
7
  };
8
8
  };
9
+ export type ErrorModalProps = {
10
+ title?: string;
11
+ message?: string;
12
+ button: {
13
+ label?: string;
14
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
15
+ };
16
+ };
9
17
  export type SimpleModalProps = {
10
18
  title?: string;
11
19
  message?: React.ReactNode;
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.43",
4
+ "version": "0.0.44",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",