@lifi/widget 1.30.0 → 1.31.0
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/README.md +1 -1
- package/cjs/components/Header/WalletHeader.js +4 -2
- package/cjs/components/Header/WalletMenu.d.ts +1 -0
- package/cjs/components/{Menu.js → Header/WalletMenu.js} +8 -4
- package/cjs/config/theme.js +1 -1
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/i18n/en.json +2 -1
- package/cjs/i18n/it.json +88 -81
- package/cjs/i18n/uk.json +3 -1
- package/cjs/i18n/zh.json +83 -76
- package/cjs/utils/format.js +5 -4
- package/components/Header/WalletHeader.js +6 -4
- package/components/Header/WalletMenu.d.ts +1 -0
- package/components/{Menu.js → Header/WalletMenu.js} +7 -3
- package/config/theme.js +1 -1
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/i18n/en.json +2 -1
- package/i18n/it.json +88 -81
- package/i18n/uk.json +3 -1
- package/i18n/zh.json +83 -76
- package/package.json +7 -7
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/utils/format.js +5 -4
- package/cjs/components/Menu.d.ts +0 -1
- package/components/Menu.d.ts +0 -1
package/cjs/i18n/zh.json
CHANGED
|
@@ -6,38 +6,41 @@
|
|
|
6
6
|
"contactSupport": "联系我们",
|
|
7
7
|
"continue": "继续",
|
|
8
8
|
"copyAddress": "复制地址",
|
|
9
|
+
"viewOnExplorer": "在区块链浏览器上查看",
|
|
9
10
|
"dark": "深色模式",
|
|
10
11
|
"delete": "删除",
|
|
11
|
-
"
|
|
12
|
+
"disconnect": "断开连接",
|
|
12
13
|
"done": "已完成",
|
|
13
|
-
"getGas": "
|
|
14
|
+
"getGas": "开始兑换燃气费",
|
|
14
15
|
"hide": "隐藏",
|
|
15
|
-
"lifiSwap": "LI.FI
|
|
16
|
-
"light": "
|
|
16
|
+
"lifiSwap": "LI.FI兑换",
|
|
17
|
+
"light": "浅色主题",
|
|
17
18
|
"max": "最大",
|
|
18
19
|
"ok": "确认",
|
|
19
20
|
"okay": "确认",
|
|
20
21
|
"removeSwap": "删除该兑换",
|
|
21
22
|
"restartSwap": "重新兑换",
|
|
23
|
+
"reviewGasSwap": "查看燃气费兑换",
|
|
22
24
|
"reviewSwap": "查看该兑换",
|
|
23
25
|
"seeDetails": "查看详情",
|
|
24
26
|
"showAll": "显示所有",
|
|
25
|
-
"startGasSwap": "
|
|
27
|
+
"startGasSwap": "开始兑换燃气费",
|
|
26
28
|
"startSwap": "开始兑换",
|
|
27
29
|
"swap": "兑换",
|
|
28
|
-
"tryAgain": "
|
|
30
|
+
"tryAgain": "重试"
|
|
29
31
|
},
|
|
30
32
|
"format": {
|
|
31
33
|
"currency": "{{value, currency(currency: USD)}}",
|
|
32
|
-
"number": "{{value, number(maximumFractionDigits:
|
|
34
|
+
"number": "{{value, number(maximumFractionDigits: 9)}}"
|
|
33
35
|
},
|
|
34
36
|
"header": {
|
|
35
37
|
"activeSwaps": "正在进行的兑换",
|
|
38
|
+
"checkout": "支付",
|
|
36
39
|
"from": "兑换自",
|
|
37
|
-
"gas": "
|
|
38
|
-
"gasSwap": "
|
|
40
|
+
"gas": "燃气费",
|
|
41
|
+
"gasSwap": "燃气费兑换",
|
|
39
42
|
"routes": "你会得到",
|
|
40
|
-
"selectChain": "
|
|
43
|
+
"selectChain": "选择网络",
|
|
41
44
|
"selectWallet": "选择你的钱包",
|
|
42
45
|
"settings": "设置",
|
|
43
46
|
"swap": "兑换",
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
"fast": "快速",
|
|
59
62
|
"normal": "正常",
|
|
60
63
|
"slow": "缓慢",
|
|
61
|
-
"title": "
|
|
64
|
+
"title": "燃气费"
|
|
62
65
|
},
|
|
63
66
|
"resetToDefault": "重置为默认值",
|
|
64
67
|
"routePriority": "路由优先级",
|
|
@@ -69,28 +72,29 @@
|
|
|
69
72
|
},
|
|
70
73
|
"swap": {
|
|
71
74
|
"crossStepDetails": "通过{{tool}}把资产从{{from}}链跨到{{to}}链上",
|
|
72
|
-
"currentAmount": "
|
|
75
|
+
"currentAmount": "当前余额",
|
|
73
76
|
"error": {
|
|
74
77
|
"message": {
|
|
75
|
-
"slippageThreshold": "
|
|
78
|
+
"slippageThreshold": "滑点大于预设值,请选择其他路由并获取新的价格。",
|
|
76
79
|
"transactionFailed": "请查看区块浏览器以了解更多信息。",
|
|
77
|
-
"transactionNotSent": "
|
|
78
|
-
"transactionRejected": "
|
|
79
|
-
"unknown": "
|
|
80
|
+
"transactionNotSent": "交易未发送,不用担心,{{chainName}} 链上{{amount, number(maximumFractionDigits: 9)}} 个{{tokenSymbol}} 仍在您的钱包里。",
|
|
81
|
+
"transactionRejected": "需要您签名来完成此次交易,资金是安全的,{{chainName}} 链上{{amount, number(maximumFractionDigits: 9)}} 个{{tokenSymbol}} 仍在您的钱包里。",
|
|
82
|
+
"unknown": "请再试一次或者联系支持。"
|
|
80
83
|
},
|
|
81
84
|
"title": {
|
|
82
|
-
"balanceIsTooLow": "
|
|
83
|
-
"chainSwitch": "
|
|
84
|
-
"failed": "
|
|
85
|
-
"gasLimitIsTooLow": "
|
|
86
|
-
"slippageNotMet": "
|
|
87
|
-
"transactionCanceled": "
|
|
88
|
-
"transactionFailed": "
|
|
89
|
-
"transactionRejected": "
|
|
90
|
-
"transactionUnderpriced": "
|
|
91
|
-
"transactionUnprepared": "
|
|
92
|
-
"unknown": "
|
|
85
|
+
"balanceIsTooLow": "余额太低",
|
|
86
|
+
"chainSwitch": "请切换当前网络",
|
|
87
|
+
"failed": "兑换失败",
|
|
88
|
+
"gasLimitIsTooLow": "燃气费设置过低",
|
|
89
|
+
"slippageNotMet": "滑点未满足",
|
|
90
|
+
"transactionCanceled": "交易取消",
|
|
91
|
+
"transactionFailed": "交易失败",
|
|
92
|
+
"transactionRejected": "交易需要签名",
|
|
93
|
+
"transactionUnderpriced": "交易定价过低",
|
|
94
|
+
"transactionUnprepared": "无法开始该交易",
|
|
95
|
+
"unknown": "未知错误",
|
|
93
96
|
"walletAddressInvalid": "钱包地址无效。",
|
|
97
|
+
"walletAddressRequired": "请输入钱包地址。",
|
|
94
98
|
"walletEnsAddressInvalid": "钱包地址无效或者当前网络不支持ENS。"
|
|
95
99
|
}
|
|
96
100
|
},
|
|
@@ -98,82 +102,85 @@
|
|
|
98
102
|
"featuredTokens": "精选代币",
|
|
99
103
|
"from": "从",
|
|
100
104
|
"fromAmount": "需要支付",
|
|
101
|
-
"gasCost": "
|
|
102
|
-
"gasFeeEstimated": "
|
|
103
|
-
"gasFeePaid": "
|
|
105
|
+
"gasCost": "燃气费消耗",
|
|
106
|
+
"gasFeeEstimated": "预估燃气费",
|
|
107
|
+
"gasFeePaid": "已支付燃气费",
|
|
104
108
|
"inProgress": "进行中",
|
|
105
109
|
"info": {
|
|
106
110
|
"message": {
|
|
107
|
-
"emptyActiveSwaps": "
|
|
108
|
-
"emptySwapHistory": "
|
|
109
|
-
"emptyTokenList": "我们无法在{{chainName}}链上找到这些代币,或者你的钱包内没有这些代币。请再次搜索或者选择其他链再试一次。",
|
|
110
|
-
"routeNotFound": "
|
|
111
|
+
"emptyActiveSwaps": "正在进行的兑换将在这里显示。一旦完成,你可在兑换记录中找到它们。",
|
|
112
|
+
"emptySwapHistory": "兑换记录只存储在本地,如果你清除浏览器数据,他们将被删除。",
|
|
113
|
+
"emptyTokenList": "我们无法在 {{chainName}} 链上找到这些代币,或者你的钱包内没有这些代币。请再次搜索或者选择其他链再试一次。",
|
|
114
|
+
"routeNotFound": "试试另一个代币组合。"
|
|
111
115
|
},
|
|
112
116
|
"title": {
|
|
113
117
|
"emptyActiveSwaps": "没有正在进行的兑换",
|
|
114
|
-
"emptySwapHistory": "
|
|
118
|
+
"emptySwapHistory": "没有兑换记录",
|
|
115
119
|
"routeNotFound": "没有可用的路由"
|
|
116
120
|
}
|
|
117
121
|
},
|
|
118
|
-
"
|
|
122
|
+
"nftStepDetails": "通过 {{tool}} 购买 NFT",
|
|
123
|
+
"onChain": "在{{chainName}} 上",
|
|
119
124
|
"otherTokens": "其他代币",
|
|
125
|
+
"ownedBy": "属于",
|
|
126
|
+
"payWith": "付款方式为",
|
|
120
127
|
"process": {
|
|
121
128
|
"crossChain": {
|
|
122
|
-
"actionRequired": "
|
|
123
|
-
"done": "
|
|
124
|
-
"pending": "
|
|
125
|
-
"started": "
|
|
129
|
+
"actionRequired": "请签署此交易",
|
|
130
|
+
"done": "跨链交易已确认",
|
|
131
|
+
"pending": "跨链交易进行中",
|
|
132
|
+
"started": "准备执行跨链交易"
|
|
126
133
|
},
|
|
127
134
|
"receivingChain": {
|
|
128
|
-
"done": "
|
|
129
|
-
"partial": "
|
|
130
|
-
"pending": "
|
|
131
|
-
"refunded": "
|
|
135
|
+
"done": "跨链完成",
|
|
136
|
+
"partial": "跨链部分完成",
|
|
137
|
+
"pending": "等待接收链回应",
|
|
138
|
+
"refunded": "跨链交易资产已退还"
|
|
132
139
|
},
|
|
133
140
|
"swap": {
|
|
134
|
-
"actionRequired": "
|
|
135
|
-
"done": "
|
|
136
|
-
"pending": "
|
|
137
|
-
"started": "
|
|
141
|
+
"actionRequired": "请签署此交易",
|
|
142
|
+
"done": "兑换完成",
|
|
143
|
+
"pending": "代币兑换中",
|
|
144
|
+
"started": "准备兑换"
|
|
138
145
|
},
|
|
139
146
|
"switchChain": {
|
|
140
|
-
"actionRequired": "
|
|
141
|
-
"done": "
|
|
147
|
+
"actionRequired": "请切换当前网络",
|
|
148
|
+
"done": "网络切换成功"
|
|
142
149
|
},
|
|
143
150
|
"tokenAllowance": {
|
|
144
|
-
"done": "
|
|
145
|
-
"pending": "
|
|
146
|
-
"started": "
|
|
151
|
+
"done": "已批准代币限额",
|
|
152
|
+
"pending": "代币限额批准进行中",
|
|
153
|
+
"started": "设置代币限额"
|
|
147
154
|
}
|
|
148
155
|
},
|
|
149
|
-
"quotedAmount": "
|
|
150
|
-
"rateChange": "
|
|
156
|
+
"quotedAmount": "报价金额",
|
|
157
|
+
"rateChange": "波动率",
|
|
151
158
|
"receiving": "接收",
|
|
152
|
-
"routes": "
|
|
153
|
-
"selectChain": "
|
|
159
|
+
"routes": "你会收到",
|
|
160
|
+
"selectChain": "网络",
|
|
154
161
|
"selectChainAndToken": "选择链和代币",
|
|
155
162
|
"selectToken": "代币",
|
|
156
|
-
"sendToAddress": "
|
|
163
|
+
"sendToAddress": "发送到{{address}}",
|
|
157
164
|
"sendToWallet": "发送到另外的钱包",
|
|
158
|
-
"sentToAddress": "
|
|
165
|
+
"sentToAddress": "发送到{{address}}",
|
|
159
166
|
"stepBridge": "跨链",
|
|
160
167
|
"stepSwap": "兑换",
|
|
161
168
|
"stepSwapAndBridge": "兑换和跨链",
|
|
162
169
|
"success": {
|
|
163
170
|
"message": {
|
|
164
|
-
"swapPartiallySuccessful": "
|
|
165
|
-
"swapSuccessful": "现在有 {{amount, number(maximumFractionDigits:
|
|
171
|
+
"swapPartiallySuccessful": "我们试图完成兑换,但 {{tool}} 的 {{tokenSymbol}} 代币流动性不足。",
|
|
172
|
+
"swapSuccessful": "现在有 {{amount, number(maximumFractionDigits: 9)}} 个{{tokenSymbol}} 在{{chainName}} 链上的{{walletAddress}} 钱包里。"
|
|
166
173
|
},
|
|
167
174
|
"title": {
|
|
168
|
-
"gasSwapSuccessful": "
|
|
169
|
-
"refundIssued": "
|
|
170
|
-
"swapPartiallySuccessful": "
|
|
175
|
+
"gasSwapSuccessful": "燃气费兑换成功",
|
|
176
|
+
"refundIssued": "退款已受理",
|
|
177
|
+
"swapPartiallySuccessful": "兑换部分完成",
|
|
171
178
|
"swapSuccessful": "兑换成功"
|
|
172
179
|
}
|
|
173
180
|
},
|
|
174
181
|
"supportId": "支持ID",
|
|
175
182
|
"swapStepDetails": "通过{{tool}}在{{chain}}链上兑换代币",
|
|
176
|
-
"swapping": "
|
|
183
|
+
"swapping": "兑换中",
|
|
177
184
|
"tags": {
|
|
178
185
|
"ALTERNATIVE": "可用",
|
|
179
186
|
"CHEAPEST": "便宜",
|
|
@@ -183,26 +190,26 @@
|
|
|
183
190
|
},
|
|
184
191
|
"to": "到",
|
|
185
192
|
"tokenOnChain": "{{chainName}}链上的{{tokenSymbol}}",
|
|
186
|
-
"tokenOnChainAmount": "{{chainName}}链上{{amount, number(maximumFractionDigits:
|
|
193
|
+
"tokenOnChainAmount": "{{chainName}} 链上{{amount, number(maximumFractionDigits: 9)}} 个{{tokenSymbol}}",
|
|
187
194
|
"tokenSearch": "搜索代币",
|
|
188
195
|
"valueLoss": "资金损失",
|
|
189
196
|
"walletAddressOrEns": "钱包地址或ENS名称",
|
|
190
197
|
"warning": {
|
|
191
198
|
"message": {
|
|
192
199
|
"deleteActiveSwaps": "正在进行的兑换记录只存储在本地,如果删除它们,我们将无法恢复这些记录。",
|
|
193
|
-
"deleteSwapHistory": "
|
|
194
|
-
"highValueLoss": "
|
|
195
|
-
"insufficientFunds": "
|
|
200
|
+
"deleteSwapHistory": "兑换记录只存储在本地,如果你删除它,我们将无法恢复这些记录。",
|
|
201
|
+
"highValueLoss": "收到的代币的价值明显低于要被兑换的代币和交易成本。",
|
|
202
|
+
"insufficientFunds": "你没有足够的资金来执行这笔兑换。",
|
|
196
203
|
"insufficientGas": "你至少需要:",
|
|
197
|
-
"rateChanged": "
|
|
204
|
+
"rateChanged": "兑换比例已经改变,如果继续兑换,您将接受新的兑换比例。"
|
|
198
205
|
},
|
|
199
206
|
"title": {
|
|
200
207
|
"deleteActiveSwaps": "确定要清空正在进行的兑换记录?",
|
|
201
208
|
"deleteSwap": "确定要删除这个兑换记录?",
|
|
202
|
-
"deleteSwapHistory": "
|
|
209
|
+
"deleteSwapHistory": "确定要清空兑换记录?",
|
|
203
210
|
"highValueLoss": "大额资金损失",
|
|
204
|
-
"insufficientGas": "
|
|
205
|
-
"rateChanged": "
|
|
211
|
+
"insufficientGas": "燃料费不足",
|
|
212
|
+
"rateChanged": "兑换比例变动"
|
|
206
213
|
}
|
|
207
214
|
}
|
|
208
215
|
},
|
|
@@ -213,11 +220,11 @@
|
|
|
213
220
|
"text": "我们找不到这个页面。",
|
|
214
221
|
"title": "404"
|
|
215
222
|
},
|
|
216
|
-
"numberOfSteps": "
|
|
217
|
-
"progressToNextUpdate": "数据将在{{value}}
|
|
223
|
+
"numberOfSteps": "一系列的兑换步骤,每个步骤可能包含1-2个需要签名的交易。",
|
|
224
|
+
"progressToNextUpdate": "数据将在{{value}} 秒后自动刷新,点击这里可以手动更新。",
|
|
218
225
|
"settingsModified": "设置(已修改)"
|
|
219
226
|
},
|
|
220
227
|
"wallet": {
|
|
221
|
-
"extensionNotFound": "在选择钱包之前,请确保只有{{name}}浏览器的扩展应用处于激活状态。"
|
|
228
|
+
"extensionNotFound": "在选择钱包之前,请确保只有{{name}} 浏览器的扩展应用处于激活状态。"
|
|
222
229
|
}
|
|
223
230
|
}
|
package/cjs/utils/format.js
CHANGED
|
@@ -54,8 +54,9 @@ const formatAmount = (amount = '', returnInitial = false) => {
|
|
|
54
54
|
if (!amount) {
|
|
55
55
|
return amount;
|
|
56
56
|
}
|
|
57
|
-
const
|
|
58
|
-
|
|
57
|
+
const formattedAmount = amount.replaceAll(',', '.');
|
|
58
|
+
const parsedAmount = parseFloat(formattedAmount);
|
|
59
|
+
if (isNaN(Number(formattedAmount)) && !isNaN(parsedAmount)) {
|
|
59
60
|
return parsedAmount.toString();
|
|
60
61
|
}
|
|
61
62
|
if (isNaN(parsedAmount)) {
|
|
@@ -65,8 +66,8 @@ const formatAmount = (amount = '', returnInitial = false) => {
|
|
|
65
66
|
return Math.abs(parsedAmount).toString();
|
|
66
67
|
}
|
|
67
68
|
try {
|
|
68
|
-
if (returnInitial && (0, big_js_1.default)(
|
|
69
|
-
return
|
|
69
|
+
if (returnInitial && (0, big_js_1.default)(formattedAmount)) {
|
|
70
|
+
return formattedAmount;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
catch (_a) {
|
|
@@ -8,16 +8,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
-
import { ContentCopy as ContentCopyIcon, ExpandMore as ExpandMoreIcon, PowerSettingsNewRounded as PowerSettingsIcon, WalletOutlined as WalletOutlinedIcon, } from '@mui/icons-material';
|
|
12
|
-
import { Avatar, MenuItem } from '@mui/material';
|
|
11
|
+
import { ContentCopy as ContentCopyIcon, ExpandMore as ExpandMoreIcon, OpenInNewOutlined as OpenInNewOutlinedIcon, PowerSettingsNewRounded as PowerSettingsIcon, WalletOutlined as WalletOutlinedIcon, } from '@mui/icons-material';
|
|
12
|
+
import { Avatar, Button, MenuItem } from '@mui/material';
|
|
13
13
|
import { useState } from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { useLocation, useNavigate } from 'react-router-dom';
|
|
16
16
|
import { useChain } from '../../hooks';
|
|
17
17
|
import { useWallet, useWidgetConfig } from '../../providers';
|
|
18
18
|
import { navigationRoutes, shortenWalletAddress } from '../../utils';
|
|
19
|
-
import { Menu } from '../Menu';
|
|
20
19
|
import { HeaderAppBar, WalletButton } from './Header.style';
|
|
20
|
+
import { WalletMenu } from './WalletMenu';
|
|
21
21
|
export const WalletHeader = () => {
|
|
22
22
|
const { account } = useWallet();
|
|
23
23
|
return (_jsx(HeaderAppBar, Object.assign({ elevation: 0, sx: { justifyContent: 'flex-end' } }, { children: account.isActive ? _jsx(ConnectedButton, {}) : _jsx(ConnectButton, {}) })));
|
|
@@ -62,5 +62,7 @@ const ConnectedButton = () => {
|
|
|
62
62
|
});
|
|
63
63
|
return (_jsxs(_Fragment, { children: [_jsx(WalletButton, Object.assign({ endIcon: _jsx(ExpandMoreIcon, {}), startIcon: _jsx(Avatar, Object.assign({ src: chain === null || chain === void 0 ? void 0 : chain.logoURI, alt: chain === null || chain === void 0 ? void 0 : chain.key, sx: { width: 24, height: 24 } }, { children: chain === null || chain === void 0 ? void 0 : chain.name[0] })), sx: {
|
|
64
64
|
marginRight: -1.25,
|
|
65
|
-
}, onClick: handleClick }, { children: walletAddress })), _jsxs(
|
|
65
|
+
}, onClick: handleClick }, { children: walletAddress })), _jsxs(WalletMenu, Object.assign({ anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose }, { children: [_jsxs(MenuItem, Object.assign({ onClick: handleCopyAddress, disableRipple: true }, { children: [_jsx(ContentCopyIcon, {}), t(`button.copyAddress`)] })), _jsxs(MenuItem, Object.assign({ component: "a", onClick: handleClose, href: `${chain === null || chain === void 0 ? void 0 : chain.metamask.blockExplorerUrls[0]}address/${account.address}`, target: "_blank", disableRipple: true }, { children: [_jsx(OpenInNewOutlinedIcon, {}), t(`button.viewOnExplorer`)] })), _jsx(Button, Object.assign({ onClick: handleDisconnect, fullWidth: true, startIcon: _jsx(PowerSettingsIcon, {}), sx: {
|
|
66
|
+
marginTop: 1,
|
|
67
|
+
} }, { children: t(`button.disconnect`) }))] }))] }));
|
|
66
68
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WalletMenu: import("@emotion/styled").StyledComponent<import("@mui/material").MenuProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -3,16 +3,20 @@ import { menuClasses } from '@mui/material/Menu';
|
|
|
3
3
|
import { menuItemClasses } from '@mui/material/MenuItem';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
5
|
import { svgIconClasses } from '@mui/material/SvgIcon';
|
|
6
|
-
export const
|
|
6
|
+
export const WalletMenu = styled(MuiMenu)(({ theme }) => ({
|
|
7
7
|
[`& .${menuClasses.paper}`]: {
|
|
8
8
|
borderRadius: theme.shape.borderRadius,
|
|
9
9
|
color: theme.palette.text.primary,
|
|
10
|
+
boxShadow: '0px 2px 4px rgb(0 0 0 / 8%), 0px 8px 16px rgb(0 0 0 / 8%)',
|
|
11
|
+
padding: theme.spacing(2),
|
|
10
12
|
[`& .${menuClasses.list}`]: {
|
|
11
|
-
padding:
|
|
13
|
+
padding: 0,
|
|
12
14
|
},
|
|
13
15
|
[`& .${menuItemClasses.root}`]: {
|
|
16
|
+
borderRadius: theme.shape.borderRadiusSecondary,
|
|
17
|
+
padding: theme.spacing(1, 2, 1, 1),
|
|
14
18
|
[`& .${svgIconClasses.root}`]: {
|
|
15
|
-
fontSize:
|
|
19
|
+
fontSize: 20,
|
|
16
20
|
color: theme.palette.text.primary,
|
|
17
21
|
marginRight: theme.spacing(1.5),
|
|
18
22
|
},
|
package/config/theme.js
CHANGED
|
@@ -39,7 +39,7 @@ const paletteDark = {
|
|
|
39
39
|
};
|
|
40
40
|
const shape = {
|
|
41
41
|
borderRadius: 12,
|
|
42
|
-
borderRadiusSecondary:
|
|
42
|
+
borderRadiusSecondary: 8,
|
|
43
43
|
};
|
|
44
44
|
export const createTheme = (mode, theme = {}) => {
|
|
45
45
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
package/config/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/widget";
|
|
2
|
-
export declare const version = "1.
|
|
2
|
+
export declare const version = "1.31.0";
|
package/config/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/widget';
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.31.0';
|
package/i18n/en.json
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
"contactSupport": "Contact support",
|
|
7
7
|
"continue": "Continue",
|
|
8
8
|
"copyAddress": "Copy address",
|
|
9
|
+
"viewOnExplorer": "View on explorer",
|
|
9
10
|
"dark": "Dark",
|
|
10
11
|
"delete": "Delete",
|
|
11
|
-
"
|
|
12
|
+
"disconnect": "Disconnect",
|
|
12
13
|
"done": "Done",
|
|
13
14
|
"getGas": "Get gas",
|
|
14
15
|
"hide": "Hide",
|