tek-wallet 0.0.737 → 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/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
|
@@ -1,100 +1,419 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DateFormat = exports.
|
|
3
|
+
exports.DateFormat = exports.FormatDateTime = exports.FormatDate = void 0;
|
|
4
4
|
exports.getLocaleInLocal = getLocaleInLocal;
|
|
5
5
|
exports.default = formatDate;
|
|
6
6
|
exports.customFormatDate = customFormatDate;
|
|
7
7
|
var date_fns_1 = require("date-fns");
|
|
8
8
|
var locale_1 = require("date-fns/locale");
|
|
9
|
-
var
|
|
10
|
-
(function (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
var FormatDate;
|
|
10
|
+
(function (FormatDate) {
|
|
11
|
+
FormatDate["DATE_BEFORE_MONTH"] = "dd MMM, yyyy";
|
|
12
|
+
FormatDate["DATE_AFTER_MONTH"] = "MMM dd, yyyy";
|
|
13
|
+
})(FormatDate || (exports.FormatDate = FormatDate = {}));
|
|
14
|
+
var FormatDateTime;
|
|
15
|
+
(function (FormatDateTime) {
|
|
16
|
+
FormatDateTime["DATE_AFTER_MONTH_WITH_TIME"] = "MMM dd, yyyy '-' HH:mm:ss";
|
|
17
|
+
FormatDateTime["DATE_BEFORE_MONTH_WITH_TIME"] = "dd MMM, yyyy '-' HH:mm:ss";
|
|
18
|
+
})(FormatDateTime || (exports.FormatDateTime = FormatDateTime = {}));
|
|
16
19
|
var supportedLocales = {
|
|
17
|
-
"af-ZA": {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
20
|
+
"af-ZA": {
|
|
21
|
+
locale: locale_1.af,
|
|
22
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
23
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
24
|
+
},
|
|
25
|
+
"ar-SA": {
|
|
26
|
+
locale: locale_1.arSA,
|
|
27
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
28
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
29
|
+
},
|
|
30
|
+
"az-AZ": {
|
|
31
|
+
locale: locale_1.az,
|
|
32
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
33
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
34
|
+
},
|
|
35
|
+
"be-BY": {
|
|
36
|
+
locale: locale_1.be,
|
|
37
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
38
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
39
|
+
},
|
|
40
|
+
"bg-BG": {
|
|
41
|
+
locale: locale_1.bg,
|
|
42
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
43
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
44
|
+
},
|
|
45
|
+
"bn-IN": {
|
|
46
|
+
locale: locale_1.bn,
|
|
47
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
48
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
49
|
+
},
|
|
50
|
+
"bs-BA": {
|
|
51
|
+
locale: locale_1.bs,
|
|
52
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
53
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
54
|
+
},
|
|
55
|
+
"ca-ES": {
|
|
56
|
+
locale: locale_1.ca,
|
|
57
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
58
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
59
|
+
},
|
|
60
|
+
"cs-CZ": {
|
|
61
|
+
locale: locale_1.cs,
|
|
62
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
63
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
64
|
+
},
|
|
65
|
+
"cy-GB": {
|
|
66
|
+
locale: locale_1.cy,
|
|
67
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
68
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
69
|
+
},
|
|
70
|
+
"da-DK": {
|
|
71
|
+
locale: locale_1.da,
|
|
72
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
73
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
74
|
+
},
|
|
75
|
+
"de-AT": {
|
|
76
|
+
locale: locale_1.deAT,
|
|
77
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
78
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
79
|
+
},
|
|
80
|
+
"de-CH": {
|
|
81
|
+
locale: locale_1.de,
|
|
82
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
83
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
84
|
+
},
|
|
85
|
+
"de-DE": {
|
|
86
|
+
locale: locale_1.de,
|
|
87
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
88
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
89
|
+
},
|
|
90
|
+
"el-GR": {
|
|
91
|
+
locale: locale_1.el,
|
|
92
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
93
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
94
|
+
},
|
|
95
|
+
"en-AU": {
|
|
96
|
+
locale: locale_1.enAU,
|
|
97
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
98
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
99
|
+
},
|
|
100
|
+
"en-CA": {
|
|
101
|
+
locale: locale_1.enCA,
|
|
102
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
103
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
104
|
+
},
|
|
105
|
+
"en-GB": {
|
|
106
|
+
locale: locale_1.enGB,
|
|
107
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
108
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
109
|
+
},
|
|
110
|
+
"en-IE": {
|
|
111
|
+
locale: locale_1.enIE,
|
|
112
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
113
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
114
|
+
},
|
|
115
|
+
"en-IN": {
|
|
116
|
+
locale: locale_1.enIN,
|
|
117
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
118
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
119
|
+
},
|
|
120
|
+
"en-NZ": {
|
|
121
|
+
locale: locale_1.enNZ,
|
|
122
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
123
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
124
|
+
},
|
|
125
|
+
"en-US": {
|
|
126
|
+
locale: locale_1.enUS,
|
|
127
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
128
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
129
|
+
},
|
|
130
|
+
"en-ZA": {
|
|
131
|
+
locale: locale_1.enZA,
|
|
132
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
133
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
134
|
+
},
|
|
135
|
+
"es-AR": {
|
|
136
|
+
locale: locale_1.es,
|
|
137
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
138
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
139
|
+
},
|
|
140
|
+
"es-CL": {
|
|
141
|
+
locale: locale_1.es,
|
|
142
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
143
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
144
|
+
},
|
|
145
|
+
"es-CO": {
|
|
146
|
+
locale: locale_1.es,
|
|
147
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
148
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
149
|
+
},
|
|
150
|
+
"es-ES": {
|
|
151
|
+
locale: locale_1.es,
|
|
152
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
153
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
154
|
+
},
|
|
155
|
+
"es-MX": {
|
|
156
|
+
locale: locale_1.es,
|
|
157
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
158
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
159
|
+
},
|
|
160
|
+
"es-PE": {
|
|
161
|
+
locale: locale_1.es,
|
|
162
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
163
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
164
|
+
},
|
|
165
|
+
"et-EE": {
|
|
166
|
+
locale: locale_1.et,
|
|
167
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
168
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
169
|
+
},
|
|
170
|
+
"fa-IR": {
|
|
171
|
+
locale: locale_1.faIR,
|
|
172
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
173
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
174
|
+
},
|
|
175
|
+
"fi-FI": {
|
|
176
|
+
locale: locale_1.fi,
|
|
177
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
178
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
179
|
+
},
|
|
180
|
+
"fr-BE": {
|
|
181
|
+
locale: locale_1.fr,
|
|
182
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
183
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
184
|
+
},
|
|
185
|
+
"fr-CA": {
|
|
186
|
+
locale: locale_1.frCA,
|
|
187
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
188
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
189
|
+
},
|
|
190
|
+
"fr-CH": {
|
|
191
|
+
locale: locale_1.frCH,
|
|
192
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
193
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
194
|
+
},
|
|
195
|
+
"fr-FR": {
|
|
196
|
+
locale: locale_1.fr,
|
|
197
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
198
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
199
|
+
},
|
|
200
|
+
"gl-ES": {
|
|
201
|
+
locale: locale_1.gl,
|
|
202
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
203
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
204
|
+
},
|
|
205
|
+
"gu-IN": {
|
|
206
|
+
locale: locale_1.gu,
|
|
207
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
208
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
209
|
+
},
|
|
210
|
+
"he-IL": {
|
|
211
|
+
locale: locale_1.he,
|
|
212
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
213
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
214
|
+
},
|
|
215
|
+
"hi-IN": {
|
|
216
|
+
locale: locale_1.hi,
|
|
217
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
218
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
219
|
+
},
|
|
220
|
+
"hr-HR": {
|
|
221
|
+
locale: locale_1.hr,
|
|
222
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
223
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
224
|
+
},
|
|
225
|
+
"hu-HU": {
|
|
226
|
+
locale: locale_1.hu,
|
|
227
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
228
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
229
|
+
},
|
|
230
|
+
"id-ID": {
|
|
231
|
+
locale: locale_1.id,
|
|
232
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
233
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
234
|
+
},
|
|
235
|
+
"is-IS": {
|
|
236
|
+
locale: locale_1.is,
|
|
237
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
238
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
239
|
+
},
|
|
240
|
+
"it-CH": {
|
|
241
|
+
locale: locale_1.itCH,
|
|
242
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
243
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
244
|
+
},
|
|
245
|
+
"it-IT": {
|
|
246
|
+
locale: locale_1.it,
|
|
247
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
248
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
249
|
+
},
|
|
250
|
+
"ja-JP": {
|
|
251
|
+
locale: locale_1.ja,
|
|
252
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
253
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
254
|
+
},
|
|
255
|
+
"km-KH": {
|
|
256
|
+
locale: locale_1.km,
|
|
257
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
258
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
259
|
+
},
|
|
260
|
+
"kn-IN": {
|
|
261
|
+
locale: locale_1.kn,
|
|
262
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
263
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
264
|
+
},
|
|
265
|
+
"ko-KR": {
|
|
266
|
+
locale: locale_1.ko,
|
|
267
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
268
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
269
|
+
},
|
|
270
|
+
"lt-LT": {
|
|
271
|
+
locale: locale_1.lt,
|
|
272
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
273
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
274
|
+
},
|
|
275
|
+
"lv-LV": {
|
|
276
|
+
locale: locale_1.lv,
|
|
277
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
278
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
279
|
+
},
|
|
280
|
+
"mr-IN": {
|
|
281
|
+
locale: locale_1.vi,
|
|
282
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
283
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
284
|
+
},
|
|
285
|
+
"ms-MY": {
|
|
286
|
+
locale: locale_1.ms,
|
|
287
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
288
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
289
|
+
},
|
|
290
|
+
"nb-NO": {
|
|
291
|
+
locale: locale_1.nb,
|
|
292
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
293
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
294
|
+
},
|
|
295
|
+
"ne-NP": {
|
|
296
|
+
locale: locale_1.vi,
|
|
297
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
298
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
299
|
+
},
|
|
300
|
+
"nl-BE": {
|
|
301
|
+
locale: locale_1.nlBE,
|
|
302
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
303
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
304
|
+
},
|
|
305
|
+
"nl-NL": {
|
|
306
|
+
locale: locale_1.nl,
|
|
307
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
308
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
309
|
+
},
|
|
310
|
+
"pa-IN": {
|
|
311
|
+
locale: locale_1.vi,
|
|
312
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
313
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
314
|
+
},
|
|
315
|
+
"pl-PL": {
|
|
316
|
+
locale: locale_1.pl,
|
|
317
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
318
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
319
|
+
},
|
|
320
|
+
"pt-BR": {
|
|
321
|
+
locale: locale_1.ptBR,
|
|
322
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
323
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
324
|
+
},
|
|
325
|
+
"pt-PT": {
|
|
326
|
+
locale: locale_1.pt,
|
|
327
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
328
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
329
|
+
},
|
|
330
|
+
"ro-RO": {
|
|
331
|
+
locale: locale_1.ro,
|
|
332
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
333
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
334
|
+
},
|
|
335
|
+
"ru-RU": {
|
|
336
|
+
locale: locale_1.ru,
|
|
337
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
338
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
339
|
+
},
|
|
340
|
+
"sk-SK": {
|
|
341
|
+
locale: locale_1.sk,
|
|
342
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
343
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
344
|
+
},
|
|
345
|
+
"sl-SI": {
|
|
346
|
+
locale: locale_1.sl,
|
|
347
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
348
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
349
|
+
},
|
|
350
|
+
"sq-AL": {
|
|
351
|
+
locale: locale_1.sq,
|
|
352
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
353
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
354
|
+
},
|
|
355
|
+
"sr-RS": {
|
|
356
|
+
locale: locale_1.sr,
|
|
357
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
358
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
359
|
+
},
|
|
360
|
+
"sv-FI": {
|
|
361
|
+
locale: locale_1.sv,
|
|
362
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
363
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
364
|
+
},
|
|
365
|
+
"sv-SE": {
|
|
366
|
+
locale: locale_1.sv,
|
|
367
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
368
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
369
|
+
},
|
|
370
|
+
"ta-IN": {
|
|
371
|
+
locale: locale_1.ta,
|
|
372
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
373
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
374
|
+
},
|
|
375
|
+
"te-IN": {
|
|
376
|
+
locale: locale_1.te,
|
|
377
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
378
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
379
|
+
},
|
|
380
|
+
"th-TH": {
|
|
381
|
+
locale: locale_1.th,
|
|
382
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
383
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
384
|
+
},
|
|
385
|
+
"tr-TR": {
|
|
386
|
+
locale: locale_1.tr,
|
|
387
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
388
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
389
|
+
},
|
|
390
|
+
"uk-UA": {
|
|
391
|
+
locale: locale_1.uk,
|
|
392
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
393
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
394
|
+
},
|
|
395
|
+
"vi-VN": {
|
|
396
|
+
locale: locale_1.vi,
|
|
397
|
+
formatDate: FormatDate.DATE_BEFORE_MONTH,
|
|
398
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
399
|
+
},
|
|
400
|
+
"zh-CN": {
|
|
401
|
+
locale: locale_1.zhCN,
|
|
402
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
403
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
404
|
+
},
|
|
405
|
+
"zh-HK": {
|
|
406
|
+
locale: locale_1.zhHK,
|
|
407
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
408
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
409
|
+
},
|
|
410
|
+
"zh-TW": {
|
|
411
|
+
locale: locale_1.zhTW,
|
|
412
|
+
formatDate: FormatDate.DATE_AFTER_MONTH,
|
|
413
|
+
formatDateTime: FormatDateTime.DATE_AFTER_MONTH_WITH_TIME,
|
|
414
|
+
},
|
|
96
415
|
};
|
|
97
|
-
function getLocaleInLocal() {
|
|
416
|
+
function getLocaleInLocal(showTime) {
|
|
98
417
|
var _a, _b, _c;
|
|
99
418
|
var localeFromLocal = localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem("locale");
|
|
100
419
|
var bcp47locale = ((_a = Object.keys(supportedLocales)) === null || _a === void 0 ? void 0 : _a.includes(localeFromLocal))
|
|
@@ -103,12 +422,12 @@ function getLocaleInLocal() {
|
|
|
103
422
|
return {
|
|
104
423
|
bcp47locale: bcp47locale,
|
|
105
424
|
localeInDateFns: (_b = supportedLocales[bcp47locale]) === null || _b === void 0 ? void 0 : _b.locale,
|
|
106
|
-
formatInDateFns: (_c = supportedLocales[bcp47locale]) === null || _c === void 0 ? void 0 : _c
|
|
425
|
+
formatInDateFns: (_c = supportedLocales[bcp47locale]) === null || _c === void 0 ? void 0 : _c[showTime ? "formatDateTime" : "formatDate"],
|
|
107
426
|
};
|
|
108
427
|
}
|
|
109
|
-
function formatDate(date) {
|
|
428
|
+
function formatDate(date, showTime) {
|
|
110
429
|
try {
|
|
111
|
-
var _a = getLocaleInLocal(), localeInDateFns = _a.localeInDateFns, formatInDateFns = _a.formatInDateFns;
|
|
430
|
+
var _a = getLocaleInLocal(showTime), localeInDateFns = _a.localeInDateFns, formatInDateFns = _a.formatInDateFns;
|
|
112
431
|
var dateObj = new Date(date);
|
|
113
432
|
var dateString = (0, date_fns_1.format)(dateObj, formatInDateFns, {
|
|
114
433
|
locale: localeInDateFns,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tek-wallet",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.738",
|
|
4
4
|
"description": "A custom React provider with TypeScript support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"version:patch": "npm version patch",
|
|
12
12
|
"version:minor": "npm version minor",
|
|
13
13
|
"version:major": "npm version major",
|
|
14
|
-
"prepublish": "npm run clean && npm run build",
|
|
15
14
|
"publish:patch": "npm run version:patch && npm publish",
|
|
16
15
|
"publish:minor": "npm run version:minor && npm publish",
|
|
17
16
|
"publish:major": "npm run version:major && npm publish",
|
|
@@ -47,6 +46,7 @@
|
|
|
47
46
|
"highcharts-react-official": "^3.2.1",
|
|
48
47
|
"html-to-image": "^1.11.13",
|
|
49
48
|
"jsonwebtoken": "^9.0.2",
|
|
49
|
+
"lodash": "^4.17.21",
|
|
50
50
|
"next": "^15.2.4",
|
|
51
51
|
"notistack": "^3.0.2",
|
|
52
52
|
"qrcode.react": "^4.2.0",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@eslint/eslintrc": "^3",
|
|
74
74
|
"@types/jsonwebtoken": "^9.0.9",
|
|
75
|
+
"@types/lodash": "^4.17.20",
|
|
75
76
|
"@types/node": "^22.14.0",
|
|
76
77
|
"@types/react": "^18.2.0",
|
|
77
78
|
"@types/react-dom": "^18.2.0",
|
|
@@ -80,6 +81,8 @@
|
|
|
80
81
|
"autoprefixer": "^10.4.21",
|
|
81
82
|
"eslint": "^9",
|
|
82
83
|
"eslint-config-next": "15.1.7",
|
|
84
|
+
"i": "^0.3.7",
|
|
85
|
+
"npm": "^11.4.2",
|
|
83
86
|
"postcss": "^8.5.3",
|
|
84
87
|
"prettier": "^3.5.3",
|
|
85
88
|
"tailwindcss": "^4.1.3",
|
package/dist/components/TekWallet/components/ui/ReceiveFunction/components/sortByBalance.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare enum SortBalance {
|
|
2
|
-
ASC = "asc",
|
|
3
|
-
DESC = "desc"
|
|
4
|
-
}
|
|
5
|
-
interface SortByBalanceProps {
|
|
6
|
-
sortBalance?: SortBalance;
|
|
7
|
-
setSortBalance?: (sortBalance: SortBalance) => void;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export default function SortByBalance(props: SortByBalanceProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export type { SortByBalanceProps };
|