tek-wallet 0.0.340 → 0.0.343

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: "12rem" }), 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;
@@ -1,8 +1,5 @@
1
- import { GeneralProps } from "../../../types/ui";
2
- import { ElementType } from "react";
3
- interface TextProps extends Omit<GeneralProps, "onClick">, React.HTMLAttributes<HTMLElement> {
4
- tag?: ElementType;
5
- onClick?: GeneralProps["onClick"] | React.HTMLAttributes<HTMLElement>["onClick"];
1
+ import { BoxProps } from "@mui/material";
2
+ interface TextProps extends BoxProps {
6
3
  }
7
- declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLElement>>;
4
+ declare const Text: import("react").ForwardRefExoticComponent<Omit<TextProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
8
5
  export default Text;
@@ -26,8 +26,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
26
26
  var react_1 = require("react");
27
27
  var material_1 = require("@mui/material");
28
28
  var Text = (0, react_1.forwardRef)(function (_a, ref) {
29
- var children = _a.children, sx = _a.sx, tag = _a.tag, rest = __rest(_a, ["children", "sx", "tag"]);
30
- return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ component: tag !== null && tag !== void 0 ? tag : "span", ref: ref, sx: sx }, rest, { children: children })));
29
+ var children = _a.children, sx = _a.sx, component = _a.component, rest = __rest(_a, ["children", "sx", "component"]);
30
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ component: component !== null && component !== void 0 ? component : "span", ref: ref, sx: sx }, rest, { children: children })));
31
31
  });
32
32
  Text.displayName = "Text";
33
33
  exports.default = Text;
@@ -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;
@@ -461,7 +462,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
461
462
  onChange: handleChangeMemo,
462
463
  } })] })), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: amountError
463
464
  ? Button_1.BUTTON_STATUS.DISABLED
464
- : Button_1.BUTTON_STATUS.ENABLED, children: "Confirm" })] }) }, WithdrawStep.CONFIRM)] }, withdrawTokens === null || withdrawTokens === void 0 ? void 0 : withdrawTokens.length), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAllQrCodeRef, onResult: handleScanAllQrCode }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(AppBackDrop_1.default, { ref: backDropRef }), (0, jsx_runtime_1.jsx)(AppDialog_1.default, { overrideOpen: !!infoDialogContent, children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: infoDialogContent, actions: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.dialogActionsOk), { width: "100%" }), onClick: handleClearInfoDialogContent, children: "Ok" }) }) }), (0, jsx_runtime_1.jsx)(AppDialog_1.default, { ref: suggestUseTransferInternalDialogRef, children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: "This wallet is supported send internally, use it for faster transaction?", actions: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
465
+ : Button_1.BUTTON_STATUS.ENABLED, children: "Confirm" })] }) }, WithdrawStep.CONFIRM)] }, withdrawTokens === null || withdrawTokens === void 0 ? void 0 : withdrawTokens.length), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAllQrCodeRef, onResult: handleScanAllQrCode }), (0, jsx_runtime_1.jsx)(QrCodeReader_1.default, { ref: scannerAddressQrCodeRef, onResult: handleScanAddressQrCode }), (0, jsx_runtime_1.jsx)(AppBackDrop_1.default, { ref: backDropRef }), (0, jsx_runtime_1.jsx)(AppDialog_1.default, { overrideOpen: !!infoDialogContent, children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: infoDialogContent, actions: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.dialogActionsOk), { width: "100%", display: "inline-block" }), onClick: handleClearInfoDialogContent, children: "Ok" }) }) }), (0, jsx_runtime_1.jsx)(AppDialog_1.default, { ref: suggestUseTransferInternalDialogRef, children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: "This wallet is supported send internally, use it for faster transaction?", actions: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
465
466
  display: "grid",
466
467
  gridTemplateColumns: "1fr auto 1fr",
467
468
  gap: theme.mixins.gaps.g8,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.340",
3
+ "version": "0.0.343",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",