tek-wallet 0.0.339 → 0.0.341

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.
@@ -46,7 +46,7 @@ Button.Primary.displayName = "Button.Primary";
46
46
  Button.Secondary = function (props) {
47
47
  var sx = props.sx, rest = __rest(props, ["sx"]);
48
48
  var theme = (0, material_1.useTheme)();
49
- return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "outlined", color: "secondary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full }, sx) })));
49
+ return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "outlined", color: "secondary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full, borderColor: "currentColor" }, sx) })));
50
50
  };
51
51
  Button.Secondary.displayName = "Button.Secondary";
52
52
  Button.Text = function (props) {
@@ -31,8 +31,12 @@ var Text_1 = __importDefault(require("../Text"));
31
31
  function DialogContentLayout(props) {
32
32
  var content = props.content, actions = props.actions, sx = props.sx, rest = __rest(props, ["content", "actions", "sx"]);
33
33
  var theme = (0, material_1.useTheme)();
34
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { borderRadius: theme.mixins.theBorderRadius.r12, backgroundColor: theme.palette.background.black, boxShadow: theme.shadows[1] }), theme.mixins.dialogContent), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
34
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { borderRadius: theme.mixins.theBorderRadius.r12, backgroundColor: theme.palette.background.black, boxShadow: theme.shadows[1], minWidth: "60%" }), theme.mixins.dialogContent), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
35
35
  padding: theme.mixins.customPadding.p12,
36
- }, children: content }), !!actions && (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { px: theme.mixins.customPadding.p12 }, children: actions })] })));
36
+ }, children: content }), !!actions && (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
37
+ px: theme.mixins.customPadding.p12,
38
+ width: "100%",
39
+ height: "fit-content",
40
+ }, children: actions })] })));
37
41
  }
38
42
  exports.default = DialogContentLayout;
@@ -186,6 +186,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
186
186
  setAmountError(undefined);
187
187
  setAmountErrorMessage(undefined);
188
188
  setHiddenError(true);
189
+ setRecipientAddressError(undefined);
189
190
  };
190
191
  var gotoStep = function (step) {
191
192
  var _a;
@@ -394,10 +395,8 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
394
395
  console.warn("external");
395
396
  }
396
397
  else {
397
- console.warn("invalid");
398
- setRecipientAddress(tonTransferParam === null || tonTransferParam === void 0 ? void 0 : tonTransferParam.address);
398
+ setInfoDialogContent("Unsupported QR");
399
399
  setRecipientAddressError("Invalid wallet address");
400
- gotoStep(WithdrawStep.SELECT_TOKEN);
401
400
  }
402
401
  _f.label = 2;
403
402
  case 2: return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.339",
3
+ "version": "0.0.341",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",