tek-wallet 0.0.634 → 0.0.636

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.
@@ -193,6 +193,7 @@ var ConfirmByPasscode = (0, react_1.forwardRef)(function (props, ref) {
193
193
  return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onOpen: handleOnOpen, onClose: handleOnClose, sx: {
194
194
  width: "100%",
195
195
  maxWidth: "calc(100dvw - 2rem)",
196
+ display: "flex",
196
197
  }, children: (0, jsx_runtime_1.jsx)(LoadingLayout_1.default, { initLoading: false, ref: loadingRef, sx: {
197
198
  backgroundColor: "transparent",
198
199
  width: "100%",
@@ -10,6 +10,7 @@ export interface SendExternalTokenWithdrawnProps extends Omit<ConfirmLayoutProps
10
10
  onStart?: () => void;
11
11
  children: React.ReactNode;
12
12
  trigger: React.ReactNode;
13
+ btnConfirm?: React.ReactNode;
13
14
  }
14
- declare const SendExternalTokenWithdrawn: ({ sendExternalData, onSuccess, onStart, children, trigger, }: SendExternalTokenWithdrawnProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const SendExternalTokenWithdrawn: ({ sendExternalData, onSuccess, onStart, children, trigger, btnConfirm, }: SendExternalTokenWithdrawnProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export default SendExternalTokenWithdrawn;
@@ -94,7 +94,7 @@ var send_external_service_1 = __importDefault(require("../../../services/axios/s
94
94
  var type_1 = require("../../../services/axios/get-activities-service/type");
95
95
  var transactionSlug = type_1.TransactionSlug.Withdrawn;
96
96
  var SendExternalTokenWithdrawn = function (_a) {
97
- var sendExternalData = _a.sendExternalData, onSuccess = _a.onSuccess, onStart = _a.onStart, children = _a.children, trigger = _a.trigger;
97
+ var sendExternalData = _a.sendExternalData, onSuccess = _a.onSuccess, onStart = _a.onStart, children = _a.children, trigger = _a.trigger, btnConfirm = _a.btnConfirm;
98
98
  var _b = (0, react_1.useState)(Button_1.BUTTON_STATUS.ENABLED), buttonStatus = _b[0], setButtonStatus = _b[1];
99
99
  var network = sendExternalData.network;
100
100
  var handleSendExternalTokenWithdrawn = function (passcode) { return __awaiter(void 0, void 0, void 0, function () {
@@ -128,6 +128,6 @@ var SendExternalTokenWithdrawn = function (_a) {
128
128
  }
129
129
  });
130
130
  }); };
131
- return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { trigger: trigger, action: transactionSlug, confirmAction: (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: transactionSlug, onConfirmSuccess: handleSendExternalTokenWithdrawn, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: buttonStatus, children: "Confirm" }) }), children: children }) }));
131
+ return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { trigger: trigger, action: transactionSlug, confirmAction: (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: transactionSlug, onConfirmSuccess: handleSendExternalTokenWithdrawn, children: btnConfirm !== null && btnConfirm !== void 0 ? btnConfirm : ((0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: buttonStatus, children: "Confirm" })) }), children: children }) }));
132
132
  };
133
133
  exports.default = SendExternalTokenWithdrawn;
@@ -30,7 +30,7 @@ var ChildPageLayout = (0, react_1.forwardRef)(function (props, ref) {
30
30
  showSuccess: function () { return setStatus(StatusDisplay_1.StatusDisplayType.Success); },
31
31
  showError: function () { return setStatus(StatusDisplay_1.StatusDisplayType.Error); },
32
32
  }); });
33
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { ref: ref, sx: __assign({ height: "100dvh", width: "100vw", display: "grid", gridTemplateRows: "auto 1fr auto", backgroundColor: theme.palette.background.white }, sx), children: [header && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ width: "100%" }, sxHeader), children: header })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ height: "100%", width: "100%", overflowX: "hidden", overflowY: "auto" }, sxContent), children: children }), footer && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", padding: theme.mixins.customPadding.p24 }, sxFooter), children: footer })), status !== StatusDisplay_1.StatusDisplayType.Normal && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
33
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { ref: ref, sx: __assign({ height: "100dvh", width: "100vw", display: "grid", gridTemplateRows: "auto 1fr auto", backgroundColor: theme.palette.background.white }, sx), children: [header && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ width: "100%" }, sxHeader), children: header })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ height: "100%", width: "100%", overflowX: "hidden", overflowY: "auto" }, sxContent), children: children }), footer && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", paddingLeft: theme.mixins.customPadding.p16, paddingRight: theme.mixins.customPadding.p16, paddingBottom: theme.mixins.customPadding.p24 }, sxFooter), children: footer })), status !== StatusDisplay_1.StatusDisplayType.Normal && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
34
34
  position: "absolute",
35
35
  inset: 0,
36
36
  display: "flex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.634",
3
+ "version": "0.0.636",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",