tek-wallet 0.0.341 → 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.
@@ -31,7 +31,7 @@ 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], minWidth: "60%" }), 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
36
  }, children: content }), !!actions && (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
37
37
  px: theme.mixins.customPadding.p12,
@@ -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;
@@ -462,7 +462,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
462
462
  onChange: handleChangeMemo,
463
463
  } })] })), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, status: amountError
464
464
  ? Button_1.BUTTON_STATUS.DISABLED
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%" }), 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: {
466
466
  display: "grid",
467
467
  gridTemplateColumns: "1fr auto 1fr",
468
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.341",
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",