tek-wallet 0.0.736 → 0.0.738
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.
- package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +13 -12
- package/dist/components/TekWallet/components/ui/Button/index.js +1 -1
- package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +23 -31
- package/dist/components/TekWallet/components/ui/EmptyData/index.js +1 -2
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.d.ts +8 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +149 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.d.ts +8 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +21 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.d.ts +9 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +125 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +254 -0
- package/dist/components/TekWallet/components/ui/Formatter/index.js +9 -8
- package/dist/components/TekWallet/components/ui/HistorySwap/index.js +2 -3
- package/dist/components/TekWallet/components/ui/ListItemCustom/index.d.ts +2 -1
- package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +9 -2
- package/dist/components/TekWallet/components/ui/LoadingLayout/index.d.ts +2 -0
- package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/OTP/index.d.ts +1 -0
- package/dist/components/TekWallet/components/ui/OTP/index.js +3 -1
- package/dist/components/TekWallet/components/ui/PageHeader/index.js +1 -1
- package/dist/components/TekWallet/components/ui/QRCode/index.js +1 -1
- package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +4 -1
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpButton.d.ts +2 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpButton.js +53 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +80 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.d.ts +10 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +64 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.d.ts +11 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/{sortByBalance.js → SortTool.js} +20 -19
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.d.ts +9 -1
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +198 -86
- package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +3 -4
- package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +4 -0
- package/dist/components/TekWallet/components/ui/SvgPath/index.js +7 -3
- package/dist/components/TekWallet/components/ui/TimeText/index.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/TimeText/index.js +22 -0
- package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +24 -10
- package/dist/components/TekWallet/hooks/useConvertTime.d.ts +3 -0
- package/dist/components/TekWallet/hooks/useConvertTime.js +25 -0
- package/dist/components/TekWallet/hooks/useEventHandler.js +7 -10
- package/dist/components/TekWallet/hooks/useFormatter.d.ts +2 -0
- package/dist/components/TekWallet/hooks/useFormatter.js +2 -0
- package/dist/components/TekWallet/hooks/useWarningWrongPasscode.d.ts +14 -0
- package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +153 -0
- package/dist/components/TekWallet/providers/WalletDataProviderNoImport/index.js +5 -2
- package/dist/components/TekWallet/services/axios/authentication-by-passcode-service/index.d.ts +1 -1
- package/dist/components/TekWallet/services/axios/authentication-by-passcode-service/index.js +9 -19
- package/dist/components/TekWallet/services/axios/authentication-by-passcode-service/type.d.ts +14 -0
- package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.d.ts +13 -0
- package/dist/components/TekWallet/services/axios/get-deposit-fiat-info-service/getDepositFiatInfoService.js +55 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +158 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +55 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +45 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +2 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +13 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +39 -0
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +65 -0
- package/dist/components/TekWallet/theme/mui/theme.js +6 -6
- package/dist/components/TekWallet/types/expose-type.d.ts +49 -0
- package/dist/components/TekWallet/utils/cn.d.ts +2 -0
- package/dist/components/TekWallet/utils/cn.js +12 -0
- package/dist/components/TekWallet/utils/formatDate.d.ts +9 -6
- package/dist/components/TekWallet/utils/formatDate.js +410 -91
- package/package.json +5 -2
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/sortByBalance.d.ts +0 -11
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
var userClientRequest_1 = __importDefault(require("../clients/userClientRequest"));
|
|
43
|
+
var getDepositFiatInfoService = function (payload) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
|
+
var response;
|
|
45
|
+
var _a;
|
|
46
|
+
return __generator(this, function (_b) {
|
|
47
|
+
switch (_b.label) {
|
|
48
|
+
case 0: return [4 /*yield*/, userClientRequest_1.default.post("/transaction/request-sub-payment", payload)];
|
|
49
|
+
case 1:
|
|
50
|
+
response = _b.sent();
|
|
51
|
+
return [2 /*return*/, (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.data];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}); };
|
|
55
|
+
exports.default = getDepositFiatInfoService;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.components = void 0;
|
|
15
|
+
exports.components = {
|
|
16
|
+
MuiCssBaseline: {
|
|
17
|
+
styleOverrides: {
|
|
18
|
+
"*": {
|
|
19
|
+
fontFamily: "inherit",
|
|
20
|
+
color: "inherit",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
MuiButton: {
|
|
25
|
+
styleOverrides: {
|
|
26
|
+
root: function (_a) {
|
|
27
|
+
var theme = _a.theme;
|
|
28
|
+
return (__assign(__assign({}, theme.typography.supportButton), { fontWeight: 600, textTransform: "none", padding: theme.spacing(".75rem", 2), minHeight: 0, minWidth: 0, borderRadius: ".75rem" }));
|
|
29
|
+
},
|
|
30
|
+
endIcon: function (_a) {
|
|
31
|
+
var theme = _a.theme;
|
|
32
|
+
return ({
|
|
33
|
+
marginLeft: theme.spacing(0.5),
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
defaultProps: {
|
|
38
|
+
variant: "contained",
|
|
39
|
+
color: "primary",
|
|
40
|
+
loadingPosition: "center",
|
|
41
|
+
},
|
|
42
|
+
variants: [
|
|
43
|
+
{
|
|
44
|
+
props: { variant: "icon" },
|
|
45
|
+
style: function (_a) {
|
|
46
|
+
var theme = _a.theme;
|
|
47
|
+
return (__assign(__assign({}, theme.typography.supportButton), { textTransform: "none", padding: theme.spacing(0), minWidth: "unset", width: "fit-content" }));
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
props: { variant: "text" },
|
|
52
|
+
style: function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return (__assign(__assign({}, theme.typography.supportButton), { textTransform: "none", padding: theme.spacing(0), minWidth: "2rem", width: "fit-content" }));
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
props: { size: "small" },
|
|
59
|
+
style: function (_a) {
|
|
60
|
+
var theme = _a.theme;
|
|
61
|
+
return (__assign(__assign({}, theme.typography.content01), { textTransform: "none", borderRadius: ".5rem", padding: theme.spacing(".25rem", "1rem"), width: "fit-content" }));
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
props: { disabled: true },
|
|
66
|
+
style: function (_a) {
|
|
67
|
+
var theme = _a.theme;
|
|
68
|
+
return ({
|
|
69
|
+
backgroundColor: "".concat(theme.palette.accent3.main, " !important"),
|
|
70
|
+
color: "".concat(theme.palette.accent.main, " !important"),
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
props: { loading: true, color: "primary" },
|
|
76
|
+
style: function () { return ({
|
|
77
|
+
background: "linear-gradient(0deg, rgba(30, 72, 65, 0.20) 0%, rgba(30, 72, 65, 0.20) 100%), #FFF !important",
|
|
78
|
+
color: "#1E484180 !important",
|
|
79
|
+
}); },
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
props: { loading: true, color: "secondary" },
|
|
83
|
+
style: function () { return ({
|
|
84
|
+
background: "linear-gradient(0deg, rgba(197, 233, 159, 0.20) 0%, rgba(197, 233, 159, 0.20) 100%), #FFF !important",
|
|
85
|
+
color: "#1E484180 !important",
|
|
86
|
+
}); },
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
props: { loading: true, variant: "outlined" },
|
|
90
|
+
style: function (_a) {
|
|
91
|
+
var theme = _a.theme;
|
|
92
|
+
return ({
|
|
93
|
+
background: "".concat(theme.palette.negative.main, " !important"),
|
|
94
|
+
color: "#8EA3A0 !important",
|
|
95
|
+
borderColor: "#A3AFAD !important",
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
props: { loading: true, size: "small", color: "primary" },
|
|
101
|
+
style: function () { return ({
|
|
102
|
+
color: "transparent !important",
|
|
103
|
+
"& .MuiCircularProgress-circle": {
|
|
104
|
+
stroke: "#8EA3A0",
|
|
105
|
+
},
|
|
106
|
+
}); },
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
props: { loading: true, size: "small", color: "secondary" },
|
|
110
|
+
style: function () { return ({
|
|
111
|
+
color: "transparent !important",
|
|
112
|
+
"& .MuiCircularProgress-circle": {
|
|
113
|
+
stroke: "#1E484180",
|
|
114
|
+
},
|
|
115
|
+
}); },
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
props: { loading: true, size: "small", color: "secondary" },
|
|
119
|
+
style: function () { return ({
|
|
120
|
+
color: "transparent !important",
|
|
121
|
+
"& .MuiCircularProgress-circle": {
|
|
122
|
+
stroke: "#8EA3A0",
|
|
123
|
+
},
|
|
124
|
+
}); },
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
MuiSwipeableDrawer: {
|
|
129
|
+
defaultProps: {
|
|
130
|
+
anchor: "bottom",
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
MuiDrawer: {
|
|
134
|
+
styleOverrides: {
|
|
135
|
+
root: function (_a) {
|
|
136
|
+
var theme = _a.theme;
|
|
137
|
+
return ({
|
|
138
|
+
"& .MuiDrawer-paperAnchorRight": {
|
|
139
|
+
backgroundColor: theme.palette.negative.main,
|
|
140
|
+
left: 0,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
MuiDivider: {
|
|
147
|
+
styleOverrides: {
|
|
148
|
+
root: function (_a) {
|
|
149
|
+
var theme = _a.theme;
|
|
150
|
+
return ({
|
|
151
|
+
backgroundColor: theme.palette.accent3.main,
|
|
152
|
+
color: theme.palette.accent3.main,
|
|
153
|
+
opacity: 0.5,
|
|
154
|
+
});
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { PaletteColor, PaletteOptions } from "@mui/material";
|
|
2
|
+
import "@mui/material/styles";
|
|
3
|
+
declare module "@mui/material/styles" {
|
|
4
|
+
interface Palette {
|
|
5
|
+
tertiary: Partial<PaletteColor>;
|
|
6
|
+
positive: Partial<PaletteColor>;
|
|
7
|
+
negative: Partial<PaletteColor>;
|
|
8
|
+
accent: Partial<PaletteColor>;
|
|
9
|
+
accent2: Partial<PaletteColor>;
|
|
10
|
+
accent3: Partial<PaletteColor>;
|
|
11
|
+
}
|
|
12
|
+
interface PaletteOptions {
|
|
13
|
+
tertiary?: Partial<PaletteColor>;
|
|
14
|
+
positive?: Partial<PaletteColor>;
|
|
15
|
+
negative?: Partial<PaletteColor>;
|
|
16
|
+
accent?: Partial<PaletteColor>;
|
|
17
|
+
accent2?: Partial<PaletteColor>;
|
|
18
|
+
accent3?: Partial<PaletteColor>;
|
|
19
|
+
}
|
|
20
|
+
interface TypographyPropsColorOverrides {
|
|
21
|
+
tertiary?: Partial<PaletteColor>;
|
|
22
|
+
positive?: Partial<PaletteColor>;
|
|
23
|
+
negative?: Partial<PaletteColor>;
|
|
24
|
+
accent?: Partial<PaletteColor>;
|
|
25
|
+
accent2?: Partial<PaletteColor>;
|
|
26
|
+
accent3?: Partial<PaletteColor>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
declare module "@mui/material/Button" {
|
|
30
|
+
interface ButtonPropsColorOverrides {
|
|
31
|
+
tertiary: true;
|
|
32
|
+
positive: true;
|
|
33
|
+
negative: true;
|
|
34
|
+
accent: true;
|
|
35
|
+
accent2: true;
|
|
36
|
+
accent3: true;
|
|
37
|
+
}
|
|
38
|
+
interface ButtonPropsVariantOverrides {
|
|
39
|
+
icon: true;
|
|
40
|
+
text: true;
|
|
41
|
+
outlined: true;
|
|
42
|
+
contained: true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
declare module "@mui/material/Typography" {
|
|
46
|
+
interface TypographyPropsColorOverrides {
|
|
47
|
+
tertiary: true;
|
|
48
|
+
positive: true;
|
|
49
|
+
negative: true;
|
|
50
|
+
accent: true;
|
|
51
|
+
accent2: true;
|
|
52
|
+
accent3: true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export declare const palette: PaletteOptions;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.palette = void 0;
|
|
4
|
+
require("@mui/material/styles");
|
|
5
|
+
exports.palette = {
|
|
6
|
+
primary: {
|
|
7
|
+
main: "#1E4841",
|
|
8
|
+
contrastText: "#BBF49C",
|
|
9
|
+
},
|
|
10
|
+
secondary: {
|
|
11
|
+
main: "#BBF49C",
|
|
12
|
+
contrastText: "#1E4841",
|
|
13
|
+
},
|
|
14
|
+
tertiary: {
|
|
15
|
+
main: "#ECF4E9",
|
|
16
|
+
},
|
|
17
|
+
positive: {
|
|
18
|
+
main: "#121212",
|
|
19
|
+
},
|
|
20
|
+
negative: {
|
|
21
|
+
main: "#FFFFFF",
|
|
22
|
+
contrastText: "#1E4841",
|
|
23
|
+
},
|
|
24
|
+
accent: {
|
|
25
|
+
main: "#A3A3A3",
|
|
26
|
+
},
|
|
27
|
+
accent2: {
|
|
28
|
+
main: "#6B7271",
|
|
29
|
+
},
|
|
30
|
+
accent3: {
|
|
31
|
+
main: "#E5E6E6",
|
|
32
|
+
},
|
|
33
|
+
error: {
|
|
34
|
+
main: "#FF434E",
|
|
35
|
+
},
|
|
36
|
+
success: {
|
|
37
|
+
main: "#1EA031",
|
|
38
|
+
},
|
|
39
|
+
warning: {
|
|
40
|
+
main: "#EEAF00",
|
|
41
|
+
},
|
|
42
|
+
info: {
|
|
43
|
+
main: "#29C8F0",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var styles_1 = require("@mui/material/styles");
|
|
4
|
+
var components_1 = require("./components");
|
|
5
|
+
var palette_1 = require("./palette");
|
|
6
|
+
var typography_1 = require("./typography");
|
|
7
|
+
var theme = (0, styles_1.createTheme)({
|
|
8
|
+
typography: typography_1.typography,
|
|
9
|
+
cssVariables: true,
|
|
10
|
+
palette: palette_1.palette,
|
|
11
|
+
components: components_1.components,
|
|
12
|
+
});
|
|
13
|
+
exports.default = theme;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Palette } from "@mui/material";
|
|
2
|
+
import type { PaletteColor, TypographyVariantsOptions } from "@mui/material/styles";
|
|
3
|
+
declare module "@mui/material/styles" {
|
|
4
|
+
interface TypographyVariants {
|
|
5
|
+
title01: React.CSSProperties;
|
|
6
|
+
title02: React.CSSProperties;
|
|
7
|
+
title03: React.CSSProperties;
|
|
8
|
+
content02: React.CSSProperties;
|
|
9
|
+
content01: React.CSSProperties;
|
|
10
|
+
supportLabel: React.CSSProperties;
|
|
11
|
+
supportButton: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
interface TypographyPropsColorOverrides {
|
|
14
|
+
accent2?: Partial<PaletteColor>;
|
|
15
|
+
accent3?: Partial<PaletteColor>;
|
|
16
|
+
}
|
|
17
|
+
interface TypographyVariantsOptions {
|
|
18
|
+
title01?: React.CSSProperties;
|
|
19
|
+
title02?: React.CSSProperties;
|
|
20
|
+
title03?: React.CSSProperties;
|
|
21
|
+
content02?: React.CSSProperties;
|
|
22
|
+
content01?: React.CSSProperties;
|
|
23
|
+
supportLabel?: React.CSSProperties;
|
|
24
|
+
supportButton?: React.CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
declare module "@mui/material/Typography" {
|
|
28
|
+
interface TypographyPropsVariantOverrides {
|
|
29
|
+
title01: true;
|
|
30
|
+
title02: true;
|
|
31
|
+
title03: true;
|
|
32
|
+
content02: true;
|
|
33
|
+
content01: true;
|
|
34
|
+
supportLabel: true;
|
|
35
|
+
supportButton: true;
|
|
36
|
+
h3: false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export declare const typography: TypographyVariantsOptions | ((palette: Palette) => TypographyVariantsOptions);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.typography = void 0;
|
|
4
|
+
exports.typography = {
|
|
5
|
+
fontFamily: '"Urbanist", Helvetica',
|
|
6
|
+
fontSize: 16,
|
|
7
|
+
content01: {
|
|
8
|
+
fontSize: ".75rem",
|
|
9
|
+
fontWeight: 600,
|
|
10
|
+
lineHeight: 1.4,
|
|
11
|
+
letterSpacing: "0rem",
|
|
12
|
+
fontStyle: "normal",
|
|
13
|
+
},
|
|
14
|
+
content02: {
|
|
15
|
+
fontSize: ".688rem",
|
|
16
|
+
fontWeight: 500,
|
|
17
|
+
lineHeight: "170%",
|
|
18
|
+
letterSpacing: "0.028rem",
|
|
19
|
+
fontStyle: "normal",
|
|
20
|
+
},
|
|
21
|
+
supportButton: {
|
|
22
|
+
fontSize: "0.875rem",
|
|
23
|
+
fontWeight: 600,
|
|
24
|
+
lineHeight: "120%",
|
|
25
|
+
letterSpacing: "0rem",
|
|
26
|
+
fontStyle: "normal",
|
|
27
|
+
},
|
|
28
|
+
supportLabel: {
|
|
29
|
+
fontSize: "0.625rem",
|
|
30
|
+
fontWeight: 600,
|
|
31
|
+
lineHeight: 1.2,
|
|
32
|
+
letterSpacing: "0rem",
|
|
33
|
+
fontStyle: "normal",
|
|
34
|
+
},
|
|
35
|
+
title01: {
|
|
36
|
+
fontSize: "1rem",
|
|
37
|
+
fontWeight: 700,
|
|
38
|
+
lineHeight: 1.4,
|
|
39
|
+
letterSpacing: "0rem",
|
|
40
|
+
fontStyle: "normal",
|
|
41
|
+
},
|
|
42
|
+
title02: {
|
|
43
|
+
fontSize: "0.875rem",
|
|
44
|
+
fontWeight: 700,
|
|
45
|
+
lineHeight: 1.4,
|
|
46
|
+
letterSpacing: "0.035rem",
|
|
47
|
+
fontStyle: "normal",
|
|
48
|
+
},
|
|
49
|
+
title03: {
|
|
50
|
+
fontSize: "0.813rem",
|
|
51
|
+
fontWeight: 500,
|
|
52
|
+
lineHeight: 1.4,
|
|
53
|
+
letterSpacing: "0rem",
|
|
54
|
+
fontStyle: "normal",
|
|
55
|
+
},
|
|
56
|
+
// Map the content02 typography to body2 for use in the component
|
|
57
|
+
body2: {
|
|
58
|
+
fontFamily: '"Urbanist", Helvetica',
|
|
59
|
+
fontSize: "0.688rem",
|
|
60
|
+
fontWeight: 500,
|
|
61
|
+
lineHeight: 1.4,
|
|
62
|
+
letterSpacing: "0.028rem",
|
|
63
|
+
fontStyle: "normal",
|
|
64
|
+
},
|
|
65
|
+
};
|
|
@@ -268,13 +268,13 @@ var theme = {
|
|
|
268
268
|
width: "100%",
|
|
269
269
|
},
|
|
270
270
|
headerTitle: {
|
|
271
|
-
color:
|
|
272
|
-
fontWeight: typography.
|
|
271
|
+
color: text.black,
|
|
272
|
+
fontWeight: typography.fontWeight700,
|
|
273
273
|
fontSize: typography.fontSize16,
|
|
274
274
|
textAlign: "center",
|
|
275
275
|
},
|
|
276
276
|
sessionTitle: {
|
|
277
|
-
color:
|
|
277
|
+
color: text.black,
|
|
278
278
|
fontWeight: typography.fontWeight600,
|
|
279
279
|
fontSize: typography.fontSize18,
|
|
280
280
|
textAlign: "center",
|
|
@@ -291,7 +291,7 @@ var theme = {
|
|
|
291
291
|
fontSize: typography.fontSize12,
|
|
292
292
|
},
|
|
293
293
|
fieldTitle: {
|
|
294
|
-
color:
|
|
294
|
+
color: text.black80,
|
|
295
295
|
fontWeight: typography.fontWeight500,
|
|
296
296
|
fontSize: typography.fontSize14,
|
|
297
297
|
},
|
|
@@ -347,7 +347,7 @@ var theme = {
|
|
|
347
347
|
borderRadius: customRadius.r16,
|
|
348
348
|
},
|
|
349
349
|
listTitle: {
|
|
350
|
-
color:
|
|
350
|
+
color: text.black,
|
|
351
351
|
fontWeight: typography.fontWeight500,
|
|
352
352
|
fontSize: typography.fontSize14,
|
|
353
353
|
lineHeight: typography.leading140,
|
|
@@ -407,7 +407,7 @@ var theme = {
|
|
|
407
407
|
lineHeight: typography.leading140,
|
|
408
408
|
},
|
|
409
409
|
bigValue: {
|
|
410
|
-
color:
|
|
410
|
+
color: text.black,
|
|
411
411
|
fontWeight: typography.fontWeight600,
|
|
412
412
|
fontSize: typography.fontSize18,
|
|
413
413
|
lineHeight: typography.leading140,
|
|
@@ -2,6 +2,7 @@ import { ActivitiesProviderDataType } from "../providers/ActivitiesProvider/type
|
|
|
2
2
|
import { LockTokensProviderDataType } from "../providers/LockTokenProvider/type";
|
|
3
3
|
import { RealtimeProviderDataType } from "../providers/RealtimeProvider/type";
|
|
4
4
|
import { SwapProviderDataType } from "../providers/SwapProvider/type";
|
|
5
|
+
import { PolicyInfoType } from "../services/axios/authentication-by-passcode-service/type";
|
|
5
6
|
import { TransferInternalCurrency } from "../services/axios/get-send-tokens-list-service/type";
|
|
6
7
|
import { WithdrawCurrency } from "../services/axios/get-withdraw-tokens-list-service/type";
|
|
7
8
|
import { Currency, NetworkData, Paginated } from "../services/axios/type";
|
|
@@ -55,6 +56,7 @@ export interface GetBalanceServiceResponse {
|
|
|
55
56
|
balances: Balance[];
|
|
56
57
|
blockchain_wallets: BlockchainWallet[];
|
|
57
58
|
is_initialized_passcode: boolean;
|
|
59
|
+
policy_info: PolicyInfoType;
|
|
58
60
|
}
|
|
59
61
|
export interface WalletAuthDataType {
|
|
60
62
|
isAuthenticated: boolean;
|
|
@@ -70,6 +72,7 @@ export interface WalletProviderDataType {
|
|
|
70
72
|
isTokensLoading: boolean | undefined;
|
|
71
73
|
masterWallet: string | undefined;
|
|
72
74
|
blockchainWallets: BlockchainWalletType[] | undefined;
|
|
75
|
+
policyInfo?: PolicyInfoType | undefined;
|
|
73
76
|
updateLogin: () => void;
|
|
74
77
|
updateWalletDetail: () => void;
|
|
75
78
|
disconnect: () => void;
|
|
@@ -260,3 +263,49 @@ export interface ReceiveInternalCurrency {
|
|
|
260
263
|
decimal: number;
|
|
261
264
|
link: string;
|
|
262
265
|
}
|
|
266
|
+
export interface FiatDepositData {
|
|
267
|
+
id: string;
|
|
268
|
+
orderId: string;
|
|
269
|
+
amount: number;
|
|
270
|
+
message: string;
|
|
271
|
+
provider: string;
|
|
272
|
+
status: string;
|
|
273
|
+
method: string;
|
|
274
|
+
currency: string;
|
|
275
|
+
is_cancellable: boolean;
|
|
276
|
+
details: null;
|
|
277
|
+
buyer_email: string;
|
|
278
|
+
created_at: number;
|
|
279
|
+
mode: string;
|
|
280
|
+
metadata: Metadata;
|
|
281
|
+
qr_code: string;
|
|
282
|
+
_link: Link;
|
|
283
|
+
tran: string;
|
|
284
|
+
}
|
|
285
|
+
export interface Link {
|
|
286
|
+
payment_link: PaymentLink;
|
|
287
|
+
self: Self;
|
|
288
|
+
}
|
|
289
|
+
export interface PaymentLink {
|
|
290
|
+
href: string;
|
|
291
|
+
type: string;
|
|
292
|
+
}
|
|
293
|
+
export interface Self {
|
|
294
|
+
href: string;
|
|
295
|
+
}
|
|
296
|
+
export interface Metadata {
|
|
297
|
+
app: App;
|
|
298
|
+
bank_account: BankAccount;
|
|
299
|
+
}
|
|
300
|
+
export interface App {
|
|
301
|
+
app_id: string;
|
|
302
|
+
name: string;
|
|
303
|
+
status: string;
|
|
304
|
+
}
|
|
305
|
+
export interface BankAccount {
|
|
306
|
+
account_name: string;
|
|
307
|
+
account_number: string;
|
|
308
|
+
bank_code: string;
|
|
309
|
+
bank_name: string;
|
|
310
|
+
bank_branch: string;
|
|
311
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cn = cn;
|
|
4
|
+
var clsx_1 = require("clsx");
|
|
5
|
+
var tailwind_merge_1 = require("tailwind-merge");
|
|
6
|
+
function cn() {
|
|
7
|
+
var inputs = [];
|
|
8
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9
|
+
inputs[_i] = arguments[_i];
|
|
10
|
+
}
|
|
11
|
+
return (0, tailwind_merge_1.twMerge)((0, clsx_1.clsx)(inputs));
|
|
12
|
+
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { Locale } from "date-fns/locale";
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum FormatDate {
|
|
3
3
|
DATE_BEFORE_MONTH = "dd MMM, yyyy",
|
|
4
|
-
DATE_AFTER_MONTH = "MMM dd, yyyy"
|
|
4
|
+
DATE_AFTER_MONTH = "MMM dd, yyyy"
|
|
5
|
+
}
|
|
6
|
+
export declare enum FormatDateTime {
|
|
5
7
|
DATE_AFTER_MONTH_WITH_TIME = "MMM dd, yyyy '-' HH:mm:ss",
|
|
6
8
|
DATE_BEFORE_MONTH_WITH_TIME = "dd MMM, yyyy '-' HH:mm:ss"
|
|
7
9
|
}
|
|
8
10
|
export interface DateFormatType {
|
|
9
11
|
locale: Locale;
|
|
10
|
-
|
|
12
|
+
formatDate: FormatDate;
|
|
13
|
+
formatDateTime: FormatDateTime;
|
|
11
14
|
}
|
|
12
15
|
export type BCP47LanguageTag = "af-ZA" | "ar-SA" | "az-AZ" | "be-BY" | "bg-BG" | "bn-IN" | "bs-BA" | "ca-ES" | "cs-CZ" | "cy-GB" | "da-DK" | "de-AT" | "de-CH" | "de-DE" | "el-GR" | "en-AU" | "en-CA" | "en-GB" | "en-IE" | "en-IN" | "en-NZ" | "en-US" | "en-ZA" | "es-AR" | "es-CL" | "es-CO" | "es-ES" | "es-MX" | "es-PE" | "et-EE" | "fa-IR" | "fi-FI" | "fr-BE" | "fr-CA" | "fr-CH" | "fr-FR" | "gl-ES" | "gu-IN" | "he-IL" | "hi-IN" | "hr-HR" | "hu-HU" | "id-ID" | "is-IS" | "it-CH" | "it-IT" | "ja-JP" | "km-KH" | "kn-IN" | "ko-KR" | "lt-LT" | "lv-LV" | "mr-IN" | "ms-MY" | "nb-NO" | "ne-NP" | "nl-BE" | "nl-NL" | "pa-IN" | "pl-PL" | "pt-BR" | "pt-PT" | "ro-RO" | "ru-RU" | "sk-SK" | "sl-SI" | "sq-AL" | "sr-RS" | "sv-FI" | "sv-SE" | "ta-IN" | "te-IN" | "th-TH" | "tr-TR" | "uk-UA" | "vi-VN" | "zh-CN" | "zh-HK" | "zh-TW";
|
|
13
|
-
export declare function getLocaleInLocal(): {
|
|
16
|
+
export declare function getLocaleInLocal(showTime?: boolean): {
|
|
14
17
|
bcp47locale: BCP47LanguageTag;
|
|
15
18
|
localeInDateFns: Locale;
|
|
16
|
-
formatInDateFns:
|
|
19
|
+
formatInDateFns: FormatDate | FormatDateTime;
|
|
17
20
|
};
|
|
18
|
-
export default function formatDate(date: string | number): string;
|
|
21
|
+
export default function formatDate(date: string | number, showTime?: boolean): string;
|
|
19
22
|
export declare enum DateFormat {
|
|
20
23
|
DD_MM_YYYY = "dd/mm/yyyy",
|
|
21
24
|
DD_MM_YYYY_HH_MM_SS = "dd/mm/yyyy hh:mm:ss",
|