@edgex-web/components 0.1.0-beta.20 → 0.1.0-beta.22
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/Deposit/index.d.ts +1 -1
- package/dist/components/Deposit/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/DepositManager.d.ts +2 -0
- package/dist/components/Deposit/src/DepositManager.d.ts.map +1 -1
- package/dist/components/Deposit/src/evm/WalletView.d.ts.map +1 -1
- package/dist/components/Deposit/src/evm/index.d.ts +1 -0
- package/dist/components/Deposit/src/evm/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/mpc/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/utils.d.ts.map +1 -1
- package/dist/components/Deposit/types/index.d.ts +3 -0
- package/dist/components/Deposit/types/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +19 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
- package/dist/components/LoadingSpinner/index.d.ts +4 -0
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/components/Withdraw/index.d.ts +1 -1
- package/dist/components/Withdraw/index.d.ts.map +1 -1
- package/dist/components/Withdraw/src/WithdrawManager.d.ts +2 -0
- package/dist/components/Withdraw/src/WithdrawManager.d.ts.map +1 -1
- package/dist/components/Withdraw/src/evm/WalletView.d.ts +2 -0
- package/dist/components/Withdraw/src/evm/WalletView.d.ts.map +1 -1
- package/dist/components/Withdraw/src/evm/index.d.ts +3 -0
- package/dist/components/Withdraw/src/evm/index.d.ts.map +1 -1
- package/dist/components/Withdraw/src/index.d.ts.map +1 -1
- package/dist/components/Withdraw/types/index.d.ts +7 -0
- package/dist/components/Withdraw/types/index.d.ts.map +1 -1
- package/dist/hooks/useTranslation.d.ts +4 -0
- package/dist/hooks/useTranslation.d.ts.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +4282 -4089
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +33 -33
- package/dist/index.umd.js.map +1 -1
- package/dist/locales/en-US.d.ts +2 -0
- package/dist/locales/en-US.d.ts.map +1 -1
- package/dist/locales/ja-JP.d.ts +2 -0
- package/dist/locales/ja-JP.d.ts.map +1 -1
- package/dist/locales/ru-RU.d.ts +2 -0
- package/dist/locales/ru-RU.d.ts.map +1 -1
- package/dist/locales/zh-CN.d.ts +2 -0
- package/dist/locales/zh-CN.d.ts.map +1 -1
- package/dist/locales/zh-TW.d.ts +2 -0
- package/dist/locales/zh-TW.d.ts.map +1 -1
- package/dist/style.css +1 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/locales/en-US.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const enUS: {
|
|
|
7
7
|
available: string;
|
|
8
8
|
equity: string;
|
|
9
9
|
confirmDeposit: string;
|
|
10
|
+
switchNetwork: string;
|
|
10
11
|
max: string;
|
|
11
12
|
arrivalTime: string;
|
|
12
13
|
minDeposit: string;
|
|
@@ -33,6 +34,7 @@ export declare const enUS: {
|
|
|
33
34
|
speedNoteSpeed2: string;
|
|
34
35
|
speedNoteSpeed3: string;
|
|
35
36
|
receiverAddress: string;
|
|
37
|
+
fee: string;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
export default enUS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../src/locales/en-US.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../src/locales/en-US.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ChB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/dist/locales/ja-JP.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const jaJP: {
|
|
|
7
7
|
available: string;
|
|
8
8
|
equity: string;
|
|
9
9
|
confirmDeposit: string;
|
|
10
|
+
switchNetwork: string;
|
|
10
11
|
max: string;
|
|
11
12
|
arrivalTime: string;
|
|
12
13
|
minDeposit: string;
|
|
@@ -33,6 +34,7 @@ export declare const jaJP: {
|
|
|
33
34
|
speedNoteSpeed2: string;
|
|
34
35
|
speedNoteSpeed3: string;
|
|
35
36
|
receiverAddress: string;
|
|
37
|
+
fee: string;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
export default jaJP;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja-JP.d.ts","sourceRoot":"","sources":["../../src/locales/ja-JP.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ja-JP.d.ts","sourceRoot":"","sources":["../../src/locales/ja-JP.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ChB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/dist/locales/ru-RU.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const ruRU: {
|
|
|
7
7
|
available: string;
|
|
8
8
|
equity: string;
|
|
9
9
|
confirmDeposit: string;
|
|
10
|
+
switchNetwork: string;
|
|
10
11
|
max: string;
|
|
11
12
|
arrivalTime: string;
|
|
12
13
|
minDeposit: string;
|
|
@@ -33,6 +34,7 @@ export declare const ruRU: {
|
|
|
33
34
|
speedNoteSpeed2: string;
|
|
34
35
|
speedNoteSpeed3: string;
|
|
35
36
|
receiverAddress: string;
|
|
37
|
+
fee: string;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
export default ruRU;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru-RU.d.ts","sourceRoot":"","sources":["../../src/locales/ru-RU.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ru-RU.d.ts","sourceRoot":"","sources":["../../src/locales/ru-RU.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ChB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/dist/locales/zh-CN.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const zhCN: {
|
|
|
7
7
|
available: string;
|
|
8
8
|
equity: string;
|
|
9
9
|
confirmDeposit: string;
|
|
10
|
+
switchNetwork: string;
|
|
10
11
|
max: string;
|
|
11
12
|
arrivalTime: string;
|
|
12
13
|
minDeposit: string;
|
|
@@ -33,6 +34,7 @@ export declare const zhCN: {
|
|
|
33
34
|
speedNoteSpeed2: string;
|
|
34
35
|
speedNoteSpeed3: string;
|
|
35
36
|
receiverAddress: string;
|
|
37
|
+
fee: string;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
export default zhCN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../src/locales/zh-CN.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../src/locales/zh-CN.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ChB,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,MAAM,MAAM,eAAe,GAAG,OAAO,IAAI,CAAA"}
|
package/dist/locales/zh-TW.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const zhTW: {
|
|
|
7
7
|
available: string;
|
|
8
8
|
equity: string;
|
|
9
9
|
confirmDeposit: string;
|
|
10
|
+
switchNetwork: string;
|
|
10
11
|
max: string;
|
|
11
12
|
arrivalTime: string;
|
|
12
13
|
minDeposit: string;
|
|
@@ -33,6 +34,7 @@ export declare const zhTW: {
|
|
|
33
34
|
speedNoteSpeed2: string;
|
|
34
35
|
speedNoteSpeed3: string;
|
|
35
36
|
receiverAddress: string;
|
|
37
|
+
fee: string;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
export default zhTW;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../src/locales/zh-TW.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../src/locales/zh-TW.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ChB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.loading{pointer-events:none;aspect-ratio:1;background-color:currentColor;width:1.5rem;display:inline-block;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width=%2724%27 height=%2724%27 stroke=%27black%27 viewBox=%270 0 24 24%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg transform-origin=%27center%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279.5%27 fill=%27none%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3CanimateTransform attributeName=%27transform%27 type=%27rotate%27 from=%270 12 12%27 to=%27360 12 12%27 dur=%272s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dasharray%27 values=%270,150;42,150;42,150%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dashoffset%27 values=%270;-16;-59%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width=%2724%27 height=%2724%27 stroke=%27black%27 viewBox=%270 0 24 24%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg transform-origin=%27center%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279.5%27 fill=%27none%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3CanimateTransform attributeName=%27transform%27 type=%27rotate%27 from=%270 12 12%27 to=%27360 12 12%27 dur=%272s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dasharray%27 values=%270,150;42,150;42,150%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dashoffset%27 values=%270;-16;-59%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.loading-spinner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width=%2724%27 height=%2724%27 stroke=%27black%27 viewBox=%270 0 24 24%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg transform-origin=%27center%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279.5%27 fill=%27none%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3CanimateTransform attributeName=%27transform%27 type=%27rotate%27 from=%270 12 12%27 to=%27360 12 12%27 dur=%272s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dasharray%27 values=%270,150;42,150;42,150%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dashoffset%27 values=%270;-16;-59%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width=%2724%27 height=%2724%27 stroke=%27black%27 viewBox=%270 0 24 24%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg transform-origin=%27center%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279.5%27 fill=%27none%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3CanimateTransform attributeName=%27transform%27 type=%27rotate%27 from=%270 12 12%27 to=%27360 12 12%27 dur=%272s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dasharray%27 values=%270,150;42,150;42,150%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3Canimate attributeName=%27stroke-dashoffset%27 values=%270;-16;-59%27 keyTimes=%270;0.475;1%27 dur=%271.5s%27 repeatCount=%27indefinite%27/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E")}.loading-xs{width:1rem}.loading-sm{width:1.25rem}.loading-md{width:1.5rem}.loading-lg{width:2rem}.loading[aria-label]{position:relative}.loading[aria-label]:focus{outline:2px solid currentColor;outline-offset:2px}.loading.loading-primary{color:#3b82f6}.loading.loading-secondary{color:#6b7280}.loading.loading-success{color:#10b981}.loading.loading-warning{color:#f59e0b}.loading.loading-error{color:#ef4444}.loading.loading-inline{vertical-align:middle;margin:0 .25rem}.loading{will-change:transform;transform:translateZ(0)}@media (prefers-contrast: high){.loading{border:1px solid currentColor}}@media (prefers-reduced-motion: reduce){.loading{animation-duration:3s}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 格式化数字为千分位显示
|
|
3
|
+
* @param value - 要格式化的数字或字符串
|
|
4
|
+
* @param decimals - 保留的小数位数,默认为6位
|
|
5
|
+
* @returns 格式化后的字符串
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* formatThousands(10001.123, 6) // "10,001.123000"
|
|
9
|
+
* formatThousands(10001.1234567, 6) // "10,001.123456"
|
|
10
|
+
* formatThousands("1000000", 2) // "1,000,000.00"
|
|
11
|
+
* formatThousands(0.123456789, 4) // "0.1234"
|
|
12
|
+
*/
|
|
13
|
+
export declare const formatThousands: (value: number | string, decimals?: number) => string;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,GAAG,MAAM,EACtB,WAAU,MAAU,KACnB,MA8BF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgex-web/components",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.22",
|
|
4
4
|
"description": "EdgeX Universal UI Components Library - Reusable React components for deposit, withdraw and other common UI patterns",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|