@adiba-banking-cloud/backoffice 0.0.50 → 0.0.51

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.
@@ -13122,9 +13122,13 @@ const SimpleModal = _ref => {
13122
13122
  } = _ref;
13123
13123
  _objectWithoutProperties(_ref, _excluded$1);
13124
13124
  return /*#__PURE__*/React.createElement(core.Stack, {
13125
- gap: innerProps.gap
13126
- }, /*#__PURE__*/React.createElement(core.Text, {
13127
- size: "sm"
13125
+ align: "center",
13126
+ py: 40,
13127
+ gap: "lg"
13128
+ }, /*#__PURE__*/React.createElement(core.Title, {
13129
+ order: 3,
13130
+ fw: 500,
13131
+ h: 40
13128
13132
  }, innerProps.title), /*#__PURE__*/React.createElement(React.Fragment, null, innerProps.modalBody), /*#__PURE__*/React.createElement(core.Group, _extends({
13129
13133
  justify: "flex-end",
13130
13134
  gap: "md"
@@ -13184,7 +13188,7 @@ const TwoFactorModal = _ref => {
13184
13188
  return /*#__PURE__*/React.createElement(core.Stack, {
13185
13189
  align: "center",
13186
13190
  py: 40,
13187
- gap: "xl"
13191
+ gap: "lg"
13188
13192
  }, /*#__PURE__*/React.createElement(core.Title, {
13189
13193
  order: 3,
13190
13194
  fw: 500,
@@ -13298,7 +13302,10 @@ const useModal = () => {
13298
13302
  title,
13299
13303
  message,
13300
13304
  size = "md",
13301
- buttonProps
13305
+ buttonProps = {
13306
+ confirmProps,
13307
+ cancelProps
13308
+ }
13302
13309
  } = _ref3;
13303
13310
  return modals.modals.openContextModal({
13304
13311
  modal: "SimpleModal",
@@ -13365,8 +13372,7 @@ const useManagedModals = () => {
13365
13372
  ErrorModal: ErrorModal,
13366
13373
  InfoModal: InfoModal,
13367
13374
  SimpleModal: SimpleModal,
13368
- SuccessModal: SuccessModal,
13369
- TwoFactorModal: TwoFactorModal
13375
+ SuccessModal: SuccessModal
13370
13376
  };
13371
13377
  };
13372
13378
 
@@ -13101,9 +13101,13 @@ const SimpleModal = _ref => {
13101
13101
  } = _ref;
13102
13102
  _objectWithoutProperties(_ref, _excluded$1);
13103
13103
  return /*#__PURE__*/React.createElement(Stack, {
13104
- gap: innerProps.gap
13105
- }, /*#__PURE__*/React.createElement(Text, {
13106
- size: "sm"
13104
+ align: "center",
13105
+ py: 40,
13106
+ gap: "lg"
13107
+ }, /*#__PURE__*/React.createElement(Title, {
13108
+ order: 3,
13109
+ fw: 500,
13110
+ h: 40
13107
13111
  }, innerProps.title), /*#__PURE__*/React.createElement(React.Fragment, null, innerProps.modalBody), /*#__PURE__*/React.createElement(Group, _extends({
13108
13112
  justify: "flex-end",
13109
13113
  gap: "md"
@@ -13163,7 +13167,7 @@ const TwoFactorModal = _ref => {
13163
13167
  return /*#__PURE__*/React.createElement(Stack, {
13164
13168
  align: "center",
13165
13169
  py: 40,
13166
- gap: "xl"
13170
+ gap: "lg"
13167
13171
  }, /*#__PURE__*/React.createElement(Title, {
13168
13172
  order: 3,
13169
13173
  fw: 500,
@@ -13277,7 +13281,10 @@ const useModal = () => {
13277
13281
  title,
13278
13282
  message,
13279
13283
  size = "md",
13280
- buttonProps
13284
+ buttonProps = {
13285
+ confirmProps,
13286
+ cancelProps
13287
+ }
13281
13288
  } = _ref3;
13282
13289
  return modals.openContextModal({
13283
13290
  modal: "SimpleModal",
@@ -13344,8 +13351,7 @@ const useManagedModals = () => {
13344
13351
  ErrorModal: ErrorModal,
13345
13352
  InfoModal: InfoModal,
13346
13353
  SimpleModal: SimpleModal,
13347
- SuccessModal: SuccessModal,
13348
- TwoFactorModal: TwoFactorModal
13354
+ SuccessModal: SuccessModal
13349
13355
  };
13350
13356
  };
13351
13357
 
@@ -17,5 +17,4 @@ export declare const useManagedModals: () => {
17
17
  onClick: () => void;
18
18
  };
19
19
  }>) => import("react/jsx-runtime").JSX.Element;
20
- TwoFactorModal: ({ children, title, pinLength, }: import("../../../components/modals/twofactor/Twofactor.types").TwoFactorModalProps) => import("react/jsx-runtime").JSX.Element;
21
20
  };
@@ -1,3 +1,4 @@
1
+ import { ButtonProps } from "@mantine/core";
1
2
  import { OpenConfirmModal } from "@mantine/modals/lib/context";
2
3
  export type SuccessModalProps = {
3
4
  title?: string;
@@ -20,16 +21,8 @@ export type SimpleModalProps = {
20
21
  message?: React.ReactNode;
21
22
  size?: "xs" | "sm" | "md" | "lg" | "xl" | number;
22
23
  buttonProps?: {
23
- confirmProps?: {
24
- label?: string;
25
- onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
26
- size?: "xs" | "sm" | "md" | "lg" | "xl" | number;
27
- };
28
- cancelProps?: {
29
- label?: string;
30
- onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
31
- size?: "xs" | "sm" | "md" | "lg" | "xl" | number;
32
- };
24
+ confirmProps?: SimpleModalButtonProps;
25
+ cancelProps?: SimpleModalButtonProps;
33
26
  };
34
27
  };
35
28
  export interface TwoFactorVerificationModalProps extends OpenConfirmModal {
@@ -38,3 +31,7 @@ export interface TwoFactorVerificationModalProps extends OpenConfirmModal {
38
31
  onConfirm?: () => void;
39
32
  pinLength?: number;
40
33
  }
34
+ interface SimpleModalButtonProps extends ButtonProps {
35
+ label?: string;
36
+ }
37
+ 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.50",
4
+ "version": "0.0.51",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",