@adiba-banking-cloud/backoffice 0.2.14 → 0.2.16

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DTJ-EzlZ.js');
3
+ var index = require('./index-CHvclor6.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -12169,7 +12169,7 @@ function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t
12169
12169
  }
12170
12170
 
12171
12171
  // Fallback: use dynamic import (async, but will work in Vite/Storybook)
12172
- Promise.resolve().then(function () { return require('./heatmap-ivmUasA7.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12172
+ Promise.resolve().then(function () { return require('./heatmap-DvOwQTZm.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12173
12173
  const moduleFn = typeof heatmapModule === "function" ? heatmapModule : (heatmapModule === null || heatmapModule === void 0 ? void 0 : heatmapModule.default) || heatmapModule;
12174
12174
  if (typeof moduleFn === "function") {
12175
12175
  moduleFn(Highcharts);
@@ -13972,10 +13972,9 @@ const CreditCard = _ref => {
13972
13972
  cvv = "***",
13973
13973
  brand = "mastercard",
13974
13974
  background = "linear-gradient(135deg, #1e3c72 0%, #2a5298 100%)",
13975
- onAddClick
13975
+ onAddClick,
13976
+ onClick
13976
13977
  } = _ref;
13977
- const [isFlipped, setIsFlipped] = React.useState(false);
13978
-
13979
13978
  // Add Card Variant
13980
13979
  if (variant === "add") {
13981
13980
  return /*#__PURE__*/React.createElement("div", {
@@ -13997,17 +13996,17 @@ const CreditCard = _ref => {
13997
13996
  }
13998
13997
 
13999
13998
  // Display Card Variant
14000
- const handleCardClick = () => {
14001
- setIsFlipped(!isFlipped);
14002
- };
14003
13999
  const LogoComponent = LOGO_MAP[brand] ? /*#__PURE__*/React.createElement(core.Image, {
14004
14000
  src: LOGO_MAP[brand],
14005
14001
  h: 27,
14006
14002
  fit: "contain"
14007
14003
  }) : null;
14008
14004
  return /*#__PURE__*/React.createElement("div", {
14009
- className: "credit-card-container ".concat(isFlipped ? "flipped" : ""),
14010
- onClick: handleCardClick
14005
+ className: "credit-card-container",
14006
+ onClick: onClick,
14007
+ style: {
14008
+ cursor: onClick ? "pointer" : "default"
14009
+ }
14011
14010
  }, /*#__PURE__*/React.createElement("div", {
14012
14011
  className: "credit-card-inner"
14013
14012
  }, /*#__PURE__*/React.createElement("div", {
@@ -14077,46 +14076,7 @@ const CreditCard = _ref => {
14077
14076
  style: {
14078
14077
  textShadow: "0 1px 2px rgba(0,0,0,0.6)"
14079
14078
  }
14080
- }, "Exp ", expiryDate)))), /*#__PURE__*/React.createElement("div", {
14081
- className: "credit-card-back",
14082
- style: {
14083
- background: background,
14084
- backgroundSize: "cover"
14085
- }
14086
- }, /*#__PURE__*/React.createElement("div", {
14087
- className: "magnetic-stripe"
14088
- }), /*#__PURE__*/React.createElement(core.Box, {
14089
- mt: "md",
14090
- px: "lg"
14091
- }, /*#__PURE__*/React.createElement(core.Text, {
14092
- c: "white",
14093
- size: "xs",
14094
- ta: "right",
14095
- mr: 2
14096
- }, "CVV"), /*#__PURE__*/React.createElement(core.Box, {
14097
- bg: "white",
14098
- h: 35,
14099
- w: "100%",
14100
- style: {
14101
- display: "flex",
14102
- alignItems: "center",
14103
- justifyContent: "flex-end",
14104
- paddingRight: 10
14105
- }
14106
- }, /*#__PURE__*/React.createElement(core.Text, {
14107
- c: "black",
14108
- ff: "THICCCBOI",
14109
- lts: 2
14110
- }, cvv)), /*#__PURE__*/React.createElement(core.Group, {
14111
- justify: "flex-end",
14112
- mt: "md"
14113
- }, LogoComponent), /*#__PURE__*/React.createElement(core.Text, {
14114
- c: "white",
14115
- size: "xs",
14116
- mt: "xl",
14117
- ta: "center",
14118
- opacity: 0.8
14119
- }, "Issued by Adiba Bank.", /*#__PURE__*/React.createElement("br", null), "For customer service call +123-456-7890.")))));
14079
+ }, "Exp ", expiryDate))))));
14120
14080
  };
14121
14081
 
14122
14082
  var img$7 = "data:image/svg+xml,%3csvg width='622' height='800' viewBox='0 0 622 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M189.496 700.703H230.986L210.434 640.73L189.496 700.703Z' fill='%23279800'/%3e%3cpath d='M621.346 537.931V192.8C621.346 182.234 620.077 174.414 613.76 168.083L453.249 7.58621C448.436 2.77241 441.76 0 434.932 0H34.6287C18.27 0 0.65625 12.6345 0.65625 40.3586V537.931H621.346ZM428.242 46.7724C428.242 40.4552 435.87 37.2966 440.339 41.7655L579.58 181.007C584.049 185.476 580.891 193.103 574.573 193.103H428.242V46.7724ZM235.139 206.897C235.139 201.862 237.884 197.228 242.298 194.8C246.725 192.386 252.091 192.566 256.353 195.255L408.077 291.807C412.036 294.345 414.449 298.731 414.449 303.448C414.449 308.166 412.036 312.552 408.063 315.09L256.339 411.641C254.091 413.062 251.511 413.793 248.932 413.793C246.642 413.793 244.367 413.228 242.298 412.097C237.884 409.669 235.139 405.034 235.139 400V206.897Z' fill='%23457154'/%3e%3cpath d='M0.65625 565.518V772.414C0.65625 786.331 17.4838 800 34.6287 800H587.373C604.518 800 621.346 786.331 621.346 772.414V565.518H0.65625ZM246.449 744.828L236.449 715.973H184.215L174.036 744.828H150.463L199.111 606.028H221.553L269.842 744.828H246.449ZM365.636 745.587H336.215L293.029 605.849H318.863L351.111 725.78L385.249 605.849H410.891L365.636 745.587ZM462.56 744.828H439.553V605.849H462.56V744.828Z' fill='%23279800'/%3e%3c/svg%3e";
@@ -14769,7 +14729,7 @@ const Drawer = _ref => {
14769
14729
  }, page))));
14770
14730
  };
14771
14731
 
14772
- const _excluded$2 = ["fields", "isEditable", "layout", "hasSubmit", "hasReset", "buttonSize"];
14732
+ const _excluded$2 = ["fields", "isEditable", "layout", "hasSubmit", "hasReset", "buttonSize", "submitButtonIcon", "cancelButtonIcon", "submitButtonLabel", "cancelButtonLabel"];
14773
14733
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14774
14734
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14775
14735
  const SimpleForm = _ref => {
@@ -14779,7 +14739,11 @@ const SimpleForm = _ref => {
14779
14739
  layout = [],
14780
14740
  hasSubmit,
14781
14741
  hasReset,
14782
- buttonSize = "lg"
14742
+ buttonSize = "lg",
14743
+ submitButtonIcon = false,
14744
+ cancelButtonIcon = false,
14745
+ submitButtonLabel = "Save",
14746
+ cancelButtonLabel = "Cancel"
14783
14747
  } = _ref,
14784
14748
  rest = _objectWithoutProperties(_ref, _excluded$2);
14785
14749
  const components = {
@@ -14864,7 +14828,11 @@ const SimpleForm = _ref => {
14864
14828
  }), /*#__PURE__*/React.createElement(FormButtons, {
14865
14829
  hasSubmit,
14866
14830
  hasReset,
14867
- buttonSize
14831
+ buttonSize,
14832
+ submitButtonLabel,
14833
+ cancelButtonLabel,
14834
+ submitButtonIcon,
14835
+ cancelButtonIcon
14868
14836
  })));
14869
14837
  };
14870
14838
  const santize = field => {
@@ -14887,7 +14855,11 @@ const FormButtons = _ref3 => {
14887
14855
  let {
14888
14856
  hasSubmit = false,
14889
14857
  hasReset = false,
14890
- buttonSize
14858
+ buttonSize,
14859
+ submitButtonLabel = "Save",
14860
+ cancelButtonLabel = "Cancel",
14861
+ submitButtonIcon = false,
14862
+ cancelButtonIcon = false
14891
14863
  } = _ref3;
14892
14864
  return /*#__PURE__*/React.createElement(core.Group, {
14893
14865
  mt: "lg",
@@ -14896,11 +14868,12 @@ const FormButtons = _ref3 => {
14896
14868
  gap: 10,
14897
14869
  w: "100%",
14898
14870
  display: hasSubmit || hasReset ? "flex" : "none"
14899
- }, /*#__PURE__*/React.createElement(core.Button, {
14871
+ }, /*#__PURE__*/React.createElement(core.Button, _extends({}, cancelButtonIcon && {
14900
14872
  leftSection: /*#__PURE__*/React.createElement(Icons, {
14901
14873
  name: "CloseCircle",
14902
14874
  size: 16
14903
- }),
14875
+ })
14876
+ }, {
14904
14877
  variant: "filled",
14905
14878
  color: "red",
14906
14879
  size: buttonSize,
@@ -14911,15 +14884,16 @@ const FormButtons = _ref3 => {
14911
14884
  display: hasReset ? "block" : "none"
14912
14885
  },
14913
14886
  flex: 1
14914
- }, /*#__PURE__*/React.createElement(core.Text, {
14887
+ }), /*#__PURE__*/React.createElement(core.Text, {
14915
14888
  fw: 400,
14916
14889
  fz: "sm",
14917
14890
  c: "white"
14918
- }, "Cancel")), /*#__PURE__*/React.createElement(core.Button, {
14891
+ }, cancelButtonLabel)), /*#__PURE__*/React.createElement(core.Button, _extends({}, submitButtonIcon && {
14919
14892
  leftSection: /*#__PURE__*/React.createElement(Icons, {
14920
14893
  name: "TickCircle",
14921
14894
  size: 16
14922
- }),
14895
+ })
14896
+ }, {
14923
14897
  variant: "filled",
14924
14898
  color: "adiba.5",
14925
14899
  size: buttonSize,
@@ -14930,11 +14904,11 @@ const FormButtons = _ref3 => {
14930
14904
  display: hasSubmit ? "block" : "none"
14931
14905
  },
14932
14906
  flex: 1
14933
- }, /*#__PURE__*/React.createElement(core.Text, {
14907
+ }), /*#__PURE__*/React.createElement(core.Text, {
14934
14908
  fw: 300,
14935
14909
  fz: "sm",
14936
14910
  c: "white"
14937
- }, "Save")));
14911
+ }, submitButtonLabel)));
14938
14912
  };
14939
14913
 
14940
14914
  const MaskedTilePanel = _ref => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DTJ-EzlZ.js');
3
+ var index = require('./index-CHvclor6.js');
4
4
  require('@babel/runtime/helpers/objectWithoutProperties');
5
5
  require('@babel/runtime/helpers/defineProperty');
6
6
  require('@mantine/modals');
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './index-Ddct1CtR.js';
1
+ import { g as getDefaultExportFromCjs } from './index-Cj7RGh_q.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -12148,7 +12148,7 @@ function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t
12148
12148
  }
12149
12149
 
12150
12150
  // Fallback: use dynamic import (async, but will work in Vite/Storybook)
12151
- import('./heatmap-DMuUoNe8.js').then(function (n) { return n.h; }).then(heatmapModule => {
12151
+ import('./heatmap-BTmJaRuJ.js').then(function (n) { return n.h; }).then(heatmapModule => {
12152
12152
  const moduleFn = typeof heatmapModule === "function" ? heatmapModule : (heatmapModule === null || heatmapModule === void 0 ? void 0 : heatmapModule.default) || heatmapModule;
12153
12153
  if (typeof moduleFn === "function") {
12154
12154
  moduleFn(Highcharts);
@@ -13951,10 +13951,9 @@ const CreditCard = _ref => {
13951
13951
  cvv = "***",
13952
13952
  brand = "mastercard",
13953
13953
  background = "linear-gradient(135deg, #1e3c72 0%, #2a5298 100%)",
13954
- onAddClick
13954
+ onAddClick,
13955
+ onClick
13955
13956
  } = _ref;
13956
- const [isFlipped, setIsFlipped] = useState(false);
13957
-
13958
13957
  // Add Card Variant
13959
13958
  if (variant === "add") {
13960
13959
  return /*#__PURE__*/React__default.createElement("div", {
@@ -13976,17 +13975,17 @@ const CreditCard = _ref => {
13976
13975
  }
13977
13976
 
13978
13977
  // Display Card Variant
13979
- const handleCardClick = () => {
13980
- setIsFlipped(!isFlipped);
13981
- };
13982
13978
  const LogoComponent = LOGO_MAP[brand] ? /*#__PURE__*/React__default.createElement(Image, {
13983
13979
  src: LOGO_MAP[brand],
13984
13980
  h: 27,
13985
13981
  fit: "contain"
13986
13982
  }) : null;
13987
13983
  return /*#__PURE__*/React__default.createElement("div", {
13988
- className: "credit-card-container ".concat(isFlipped ? "flipped" : ""),
13989
- onClick: handleCardClick
13984
+ className: "credit-card-container",
13985
+ onClick: onClick,
13986
+ style: {
13987
+ cursor: onClick ? "pointer" : "default"
13988
+ }
13990
13989
  }, /*#__PURE__*/React__default.createElement("div", {
13991
13990
  className: "credit-card-inner"
13992
13991
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -14056,46 +14055,7 @@ const CreditCard = _ref => {
14056
14055
  style: {
14057
14056
  textShadow: "0 1px 2px rgba(0,0,0,0.6)"
14058
14057
  }
14059
- }, "Exp ", expiryDate)))), /*#__PURE__*/React__default.createElement("div", {
14060
- className: "credit-card-back",
14061
- style: {
14062
- background: background,
14063
- backgroundSize: "cover"
14064
- }
14065
- }, /*#__PURE__*/React__default.createElement("div", {
14066
- className: "magnetic-stripe"
14067
- }), /*#__PURE__*/React__default.createElement(Box, {
14068
- mt: "md",
14069
- px: "lg"
14070
- }, /*#__PURE__*/React__default.createElement(Text, {
14071
- c: "white",
14072
- size: "xs",
14073
- ta: "right",
14074
- mr: 2
14075
- }, "CVV"), /*#__PURE__*/React__default.createElement(Box, {
14076
- bg: "white",
14077
- h: 35,
14078
- w: "100%",
14079
- style: {
14080
- display: "flex",
14081
- alignItems: "center",
14082
- justifyContent: "flex-end",
14083
- paddingRight: 10
14084
- }
14085
- }, /*#__PURE__*/React__default.createElement(Text, {
14086
- c: "black",
14087
- ff: "THICCCBOI",
14088
- lts: 2
14089
- }, cvv)), /*#__PURE__*/React__default.createElement(Group, {
14090
- justify: "flex-end",
14091
- mt: "md"
14092
- }, LogoComponent), /*#__PURE__*/React__default.createElement(Text, {
14093
- c: "white",
14094
- size: "xs",
14095
- mt: "xl",
14096
- ta: "center",
14097
- opacity: 0.8
14098
- }, "Issued by Adiba Bank.", /*#__PURE__*/React__default.createElement("br", null), "For customer service call +123-456-7890.")))));
14058
+ }, "Exp ", expiryDate))))));
14099
14059
  };
14100
14060
 
14101
14061
  var img$7 = "data:image/svg+xml,%3csvg width='622' height='800' viewBox='0 0 622 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M189.496 700.703H230.986L210.434 640.73L189.496 700.703Z' fill='%23279800'/%3e%3cpath d='M621.346 537.931V192.8C621.346 182.234 620.077 174.414 613.76 168.083L453.249 7.58621C448.436 2.77241 441.76 0 434.932 0H34.6287C18.27 0 0.65625 12.6345 0.65625 40.3586V537.931H621.346ZM428.242 46.7724C428.242 40.4552 435.87 37.2966 440.339 41.7655L579.58 181.007C584.049 185.476 580.891 193.103 574.573 193.103H428.242V46.7724ZM235.139 206.897C235.139 201.862 237.884 197.228 242.298 194.8C246.725 192.386 252.091 192.566 256.353 195.255L408.077 291.807C412.036 294.345 414.449 298.731 414.449 303.448C414.449 308.166 412.036 312.552 408.063 315.09L256.339 411.641C254.091 413.062 251.511 413.793 248.932 413.793C246.642 413.793 244.367 413.228 242.298 412.097C237.884 409.669 235.139 405.034 235.139 400V206.897Z' fill='%23457154'/%3e%3cpath d='M0.65625 565.518V772.414C0.65625 786.331 17.4838 800 34.6287 800H587.373C604.518 800 621.346 786.331 621.346 772.414V565.518H0.65625ZM246.449 744.828L236.449 715.973H184.215L174.036 744.828H150.463L199.111 606.028H221.553L269.842 744.828H246.449ZM365.636 745.587H336.215L293.029 605.849H318.863L351.111 725.78L385.249 605.849H410.891L365.636 745.587ZM462.56 744.828H439.553V605.849H462.56V744.828Z' fill='%23279800'/%3e%3c/svg%3e";
@@ -14748,7 +14708,7 @@ const Drawer = _ref => {
14748
14708
  }, page))));
14749
14709
  };
14750
14710
 
14751
- const _excluded$2 = ["fields", "isEditable", "layout", "hasSubmit", "hasReset", "buttonSize"];
14711
+ const _excluded$2 = ["fields", "isEditable", "layout", "hasSubmit", "hasReset", "buttonSize", "submitButtonIcon", "cancelButtonIcon", "submitButtonLabel", "cancelButtonLabel"];
14752
14712
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14753
14713
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14754
14714
  const SimpleForm = _ref => {
@@ -14758,7 +14718,11 @@ const SimpleForm = _ref => {
14758
14718
  layout = [],
14759
14719
  hasSubmit,
14760
14720
  hasReset,
14761
- buttonSize = "lg"
14721
+ buttonSize = "lg",
14722
+ submitButtonIcon = false,
14723
+ cancelButtonIcon = false,
14724
+ submitButtonLabel = "Save",
14725
+ cancelButtonLabel = "Cancel"
14762
14726
  } = _ref,
14763
14727
  rest = _objectWithoutProperties(_ref, _excluded$2);
14764
14728
  const components = {
@@ -14843,7 +14807,11 @@ const SimpleForm = _ref => {
14843
14807
  }), /*#__PURE__*/React__default.createElement(FormButtons, {
14844
14808
  hasSubmit,
14845
14809
  hasReset,
14846
- buttonSize
14810
+ buttonSize,
14811
+ submitButtonLabel,
14812
+ cancelButtonLabel,
14813
+ submitButtonIcon,
14814
+ cancelButtonIcon
14847
14815
  })));
14848
14816
  };
14849
14817
  const santize = field => {
@@ -14866,7 +14834,11 @@ const FormButtons = _ref3 => {
14866
14834
  let {
14867
14835
  hasSubmit = false,
14868
14836
  hasReset = false,
14869
- buttonSize
14837
+ buttonSize,
14838
+ submitButtonLabel = "Save",
14839
+ cancelButtonLabel = "Cancel",
14840
+ submitButtonIcon = false,
14841
+ cancelButtonIcon = false
14870
14842
  } = _ref3;
14871
14843
  return /*#__PURE__*/React__default.createElement(Group, {
14872
14844
  mt: "lg",
@@ -14875,11 +14847,12 @@ const FormButtons = _ref3 => {
14875
14847
  gap: 10,
14876
14848
  w: "100%",
14877
14849
  display: hasSubmit || hasReset ? "flex" : "none"
14878
- }, /*#__PURE__*/React__default.createElement(Button, {
14850
+ }, /*#__PURE__*/React__default.createElement(Button, _extends({}, cancelButtonIcon && {
14879
14851
  leftSection: /*#__PURE__*/React__default.createElement(Icons, {
14880
14852
  name: "CloseCircle",
14881
14853
  size: 16
14882
- }),
14854
+ })
14855
+ }, {
14883
14856
  variant: "filled",
14884
14857
  color: "red",
14885
14858
  size: buttonSize,
@@ -14890,15 +14863,16 @@ const FormButtons = _ref3 => {
14890
14863
  display: hasReset ? "block" : "none"
14891
14864
  },
14892
14865
  flex: 1
14893
- }, /*#__PURE__*/React__default.createElement(Text, {
14866
+ }), /*#__PURE__*/React__default.createElement(Text, {
14894
14867
  fw: 400,
14895
14868
  fz: "sm",
14896
14869
  c: "white"
14897
- }, "Cancel")), /*#__PURE__*/React__default.createElement(Button, {
14870
+ }, cancelButtonLabel)), /*#__PURE__*/React__default.createElement(Button, _extends({}, submitButtonIcon && {
14898
14871
  leftSection: /*#__PURE__*/React__default.createElement(Icons, {
14899
14872
  name: "TickCircle",
14900
14873
  size: 16
14901
- }),
14874
+ })
14875
+ }, {
14902
14876
  variant: "filled",
14903
14877
  color: "adiba.5",
14904
14878
  size: buttonSize,
@@ -14909,11 +14883,11 @@ const FormButtons = _ref3 => {
14909
14883
  display: hasSubmit ? "block" : "none"
14910
14884
  },
14911
14885
  flex: 1
14912
- }, /*#__PURE__*/React__default.createElement(Text, {
14886
+ }), /*#__PURE__*/React__default.createElement(Text, {
14913
14887
  fw: 300,
14914
14888
  fz: "sm",
14915
14889
  c: "white"
14916
- }, "Save")));
14890
+ }, submitButtonLabel)));
14917
14891
  };
14918
14892
 
14919
14893
  const MaskedTilePanel = _ref => {
@@ -1,4 +1,4 @@
1
- export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, o as ConnectionPanel, u as CreditCard, a2 as DEFAULT_API_TIMEOUT, a0 as DEFAULT_PAGE_SIZE, v as DetailCard, D as DonutChart, Q as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, G as ErrorModal, F as File, d as Icons, r as InfoGrid, H as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, O as LoadingModal, a1 as MAX_PAGE_SIZE, V as MaskedTilePanel, X as MerchantCard, a5 as ModalContentWrapper, M as MultiAxisArea, m as PageTitle, w as PaymentMethod, x as PaymentMethodAdd, P as PieChart, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, R as SimpleForm, J as SimpleModal, i as SimplePanel, y as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, t as StatusAlert, q as SubscriptionPlans, K as SuccessModal, Y as TableStateView, W as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, a4 as apiClient, a3 as createApiClient, a7 as extractBetweenBraces, a8 as extractOutsideBraces, z as theme, _ as useManagedModals, Z as useModal, $ as useUrlFilters, a6 as withProviders } from './index-Ddct1CtR.js';
1
+ export { A as ApplicationMenu, p as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, o as ConnectionPanel, u as CreditCard, a2 as DEFAULT_API_TIMEOUT, a0 as DEFAULT_PAGE_SIZE, v as DetailCard, D as DonutChart, Q as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, G as ErrorModal, F as File, d as Icons, r as InfoGrid, H as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, O as LoadingModal, a1 as MAX_PAGE_SIZE, V as MaskedTilePanel, X as MerchantCard, a5 as ModalContentWrapper, M as MultiAxisArea, m as PageTitle, w as PaymentMethod, x as PaymentMethodAdd, P as PieChart, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, R as SimpleForm, J as SimpleModal, i as SimplePanel, y as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, t as StatusAlert, q as SubscriptionPlans, K as SuccessModal, Y as TableStateView, W as TilePanel, n as TitleWithIndex, T as TitledPanel, N as TwoFactorModal, U as UserMenu, s as UserProfileCard, a4 as apiClient, a3 as createApiClient, a7 as extractBetweenBraces, a8 as extractOutsideBraces, z as theme, _ as useManagedModals, Z as useModal, $ as useUrlFilters, a6 as withProviders } from './index-Cj7RGh_q.js';
2
2
  import '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import '@babel/runtime/helpers/defineProperty';
4
4
  import '@mantine/modals';
@@ -8,6 +8,10 @@ export interface SimpleFormProps {
8
8
  fields: FormInput[];
9
9
  layout?: number[];
10
10
  buttonSize?: "sm" | "md" | "lg";
11
+ submitButtonLabel?: string;
12
+ cancelButtonLabel?: string;
13
+ submitButtonIcon?: boolean;
14
+ cancelButtonIcon?: boolean;
11
15
  onSubmit?: (values: any) => void;
12
16
  onCancel?: () => void;
13
17
  hasReset?: boolean;
@@ -36,4 +36,8 @@ export interface CreditCardProps {
36
36
  * Click handler for "Add" variant
37
37
  */
38
38
  onAddClick?: () => void;
39
+ /**
40
+ * Click handler for the card (when not in "Add" mode)
41
+ */
42
+ onClick?: () => void;
39
43
  }
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.2.14",
4
+ "version": "0.2.16",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",