@reown/appkit-ui-react-native 0.0.0-feat-wallet-features-20240925132010 → 0.0.0-fix-email-login-20241010173711
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/lib/commonjs/components/wui-icon/index.js +0 -4
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/index.js +7 -13
- package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/styles.js +3 -3
- package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-avatar/styles.js +1 -2
- package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-button/index.js +2 -2
- package/lib/commonjs/composites/wui-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-button/styles.js +2 -2
- package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/index.js +7 -5
- package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/styles.js +1 -1
- package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/index.js +10 -10
- package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/styles.js +3 -4
- package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/index.js +10 -14
- package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/styles.js +3 -3
- package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/index.js +21 -48
- package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/styles.js +1 -3
- package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-qr-code/index.js +11 -14
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +0 -1
- package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js +1 -2
- package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/index.js +8 -22
- package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js +2 -1
- package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
- package/lib/commonjs/index.js +0 -56
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +1 -2
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/commonjs/utils/UiUtil.js +0 -15
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/module/components/wui-icon/index.js +0 -4
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/index.js +7 -13
- package/lib/module/composites/wui-account-button/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/styles.js +4 -4
- package/lib/module/composites/wui-account-button/styles.js.map +1 -1
- package/lib/module/composites/wui-avatar/styles.js +1 -2
- package/lib/module/composites/wui-avatar/styles.js.map +1 -1
- package/lib/module/composites/wui-button/index.js +2 -2
- package/lib/module/composites/wui-button/index.js.map +1 -1
- package/lib/module/composites/wui-button/styles.js +2 -2
- package/lib/module/composites/wui-button/styles.js.map +1 -1
- package/lib/module/composites/wui-chip/index.js +8 -6
- package/lib/module/composites/wui-chip/index.js.map +1 -1
- package/lib/module/composites/wui-chip/styles.js +1 -1
- package/lib/module/composites/wui-chip/styles.js.map +1 -1
- package/lib/module/composites/wui-list-item/index.js +10 -10
- package/lib/module/composites/wui-list-item/index.js.map +1 -1
- package/lib/module/composites/wui-list-item/styles.js +3 -4
- package/lib/module/composites/wui-list-item/styles.js.map +1 -1
- package/lib/module/composites/wui-network-button/index.js +11 -15
- package/lib/module/composites/wui-network-button/index.js.map +1 -1
- package/lib/module/composites/wui-network-button/styles.js +4 -4
- package/lib/module/composites/wui-network-button/styles.js.map +1 -1
- package/lib/module/composites/wui-network-image/index.js +22 -49
- package/lib/module/composites/wui-network-image/index.js.map +1 -1
- package/lib/module/composites/wui-network-image/styles.js +0 -2
- package/lib/module/composites/wui-network-image/styles.js.map +1 -1
- package/lib/module/composites/wui-qr-code/index.js +11 -14
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +0 -1
- package/lib/module/composites/wui-snackbar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/styles.js +1 -2
- package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/module/composites/wui-tabs/index.js +8 -22
- package/lib/module/composites/wui-tabs/index.js.map +1 -1
- package/lib/module/composites/wui-tabs/styles.js +2 -1
- package/lib/module/composites/wui-tabs/styles.js.map +1 -1
- package/lib/module/index.js +0 -8
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +1 -2
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/module/utils/UiUtil.js +0 -15
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
- package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-chip/index.d.ts +2 -2
- package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/index.d.ts +4 -6
- package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/styles.d.ts +0 -1
- package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/index.d.ts +4 -6
- package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
- package/lib/typescript/composites/wui-network-image/index.d.ts +2 -6
- package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-image/styles.d.ts +0 -2
- package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-qr-code/index.d.ts +1 -4
- package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/index.d.ts +2 -4
- package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/styles.d.ts +2 -1
- package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +0 -8
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/utils/ThemeUtil.d.ts +0 -1
- package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TypesUtil.d.ts +3 -4
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/lib/typescript/utils/UiUtil.d.ts +0 -1
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/src/components/wui-icon/index.tsx +0 -4
- package/src/composites/wui-account-button/index.tsx +8 -17
- package/src/composites/wui-account-button/styles.ts +4 -4
- package/src/composites/wui-avatar/styles.ts +1 -2
- package/src/composites/wui-button/index.tsx +1 -3
- package/src/composites/wui-button/styles.ts +2 -2
- package/src/composites/wui-chip/index.tsx +9 -7
- package/src/composites/wui-chip/styles.ts +1 -1
- package/src/composites/wui-list-item/index.tsx +14 -15
- package/src/composites/wui-list-item/styles.ts +3 -4
- package/src/composites/wui-network-button/index.tsx +15 -22
- package/src/composites/wui-network-button/styles.ts +4 -4
- package/src/composites/wui-network-image/index.tsx +21 -57
- package/src/composites/wui-network-image/styles.ts +0 -6
- package/src/composites/wui-qr-code/index.tsx +10 -15
- package/src/composites/wui-snackbar/index.tsx +0 -1
- package/src/composites/wui-snackbar/styles.ts +1 -2
- package/src/composites/wui-tabs/index.tsx +9 -33
- package/src/composites/wui-tabs/styles.ts +2 -1
- package/src/index.ts +0 -11
- package/src/utils/ThemeUtil.ts +1 -2
- package/src/utils/TypesUtil.ts +2 -36
- package/src/utils/UiUtil.ts +0 -18
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js +0 -21
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +0 -1
- package/lib/commonjs/assets/svg/Paperplane.js +0 -21
- package/lib/commonjs/assets/svg/Paperplane.js.map +0 -1
- package/lib/commonjs/composites/wui-account-pill/index.js +0 -73
- package/lib/commonjs/composites/wui-account-pill/index.js.map +0 -1
- package/lib/commonjs/composites/wui-account-pill/styles.js +0 -25
- package/lib/commonjs/composites/wui-account-pill/styles.js.map +0 -1
- package/lib/commonjs/composites/wui-balance/index.js +0 -27
- package/lib/commonjs/composites/wui-balance/index.js.map +0 -1
- package/lib/commonjs/composites/wui-banner/index.js +0 -36
- package/lib/commonjs/composites/wui-banner/index.js.map +0 -1
- package/lib/commonjs/composites/wui-banner/styles.js +0 -21
- package/lib/commonjs/composites/wui-banner/styles.js.map +0 -1
- package/lib/commonjs/composites/wui-compatible-network/index.js +0 -58
- package/lib/commonjs/composites/wui-compatible-network/index.js.map +0 -1
- package/lib/commonjs/composites/wui-list-token/index.js +0 -78
- package/lib/commonjs/composites/wui-list-token/index.js.map +0 -1
- package/lib/commonjs/composites/wui-list-token/styles.js +0 -30
- package/lib/commonjs/composites/wui-list-token/styles.js.map +0 -1
- package/lib/commonjs/composites/wui-list-transaction/index.js +0 -64
- package/lib/commonjs/composites/wui-list-transaction/index.js.map +0 -1
- package/lib/commonjs/composites/wui-list-transaction/styles.js +0 -16
- package/lib/commonjs/composites/wui-list-transaction/styles.js.map +0 -1
- package/lib/commonjs/composites/wui-list-transaction/utils.js +0 -88
- package/lib/commonjs/composites/wui-list-transaction/utils.js.map +0 -1
- package/lib/commonjs/composites/wui-token-button/index.js +0 -37
- package/lib/commonjs/composites/wui-token-button/index.js.map +0 -1
- package/lib/commonjs/composites/wui-token-button/styles.js +0 -24
- package/lib/commonjs/composites/wui-token-button/styles.js.map +0 -1
- package/lib/commonjs/composites/wui-transaction-visual/index.js +0 -73
- package/lib/commonjs/composites/wui-transaction-visual/index.js.map +0 -1
- package/lib/commonjs/composites/wui-transaction-visual/styles.js +0 -42
- package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +0 -1
- package/lib/commonjs/utils/TransactionUtil.js +0 -139
- package/lib/commonjs/utils/TransactionUtil.js.map +0 -1
- package/lib/module/assets/svg/ArrowBottomCircle.js +0 -13
- package/lib/module/assets/svg/ArrowBottomCircle.js.map +0 -1
- package/lib/module/assets/svg/Paperplane.js +0 -13
- package/lib/module/assets/svg/Paperplane.js.map +0 -1
- package/lib/module/composites/wui-account-pill/index.js +0 -66
- package/lib/module/composites/wui-account-pill/index.js.map +0 -1
- package/lib/module/composites/wui-account-pill/styles.js +0 -19
- package/lib/module/composites/wui-account-pill/styles.js.map +0 -1
- package/lib/module/composites/wui-balance/index.js +0 -21
- package/lib/module/composites/wui-balance/index.js.map +0 -1
- package/lib/module/composites/wui-banner/index.js +0 -29
- package/lib/module/composites/wui-banner/index.js.map +0 -1
- package/lib/module/composites/wui-banner/styles.js +0 -15
- package/lib/module/composites/wui-banner/styles.js.map +0 -1
- package/lib/module/composites/wui-compatible-network/index.js +0 -52
- package/lib/module/composites/wui-compatible-network/index.js.map +0 -1
- package/lib/module/composites/wui-list-token/index.js +0 -71
- package/lib/module/composites/wui-list-token/index.js.map +0 -1
- package/lib/module/composites/wui-list-token/styles.js +0 -24
- package/lib/module/composites/wui-list-token/styles.js.map +0 -1
- package/lib/module/composites/wui-list-transaction/index.js +0 -57
- package/lib/module/composites/wui-list-transaction/index.js.map +0 -1
- package/lib/module/composites/wui-list-transaction/styles.js +0 -10
- package/lib/module/composites/wui-list-transaction/styles.js.map +0 -1
- package/lib/module/composites/wui-list-transaction/utils.js +0 -79
- package/lib/module/composites/wui-list-transaction/utils.js.map +0 -1
- package/lib/module/composites/wui-token-button/index.js +0 -30
- package/lib/module/composites/wui-token-button/index.js.map +0 -1
- package/lib/module/composites/wui-token-button/styles.js +0 -18
- package/lib/module/composites/wui-token-button/styles.js.map +0 -1
- package/lib/module/composites/wui-transaction-visual/index.js +0 -66
- package/lib/module/composites/wui-transaction-visual/index.js.map +0 -1
- package/lib/module/composites/wui-transaction-visual/styles.js +0 -36
- package/lib/module/composites/wui-transaction-visual/styles.js.map +0 -1
- package/lib/module/utils/TransactionUtil.js +0 -134
- package/lib/module/utils/TransactionUtil.js.map +0 -1
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +0 -4
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +0 -1
- package/lib/typescript/assets/svg/Paperplane.d.ts +0 -4
- package/lib/typescript/assets/svg/Paperplane.d.ts.map +0 -1
- package/lib/typescript/composites/wui-account-pill/index.d.ts +0 -11
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +0 -18
- package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +0 -1
- package/lib/typescript/composites/wui-balance/index.d.ts +0 -6
- package/lib/typescript/composites/wui-balance/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-banner/index.d.ts +0 -7
- package/lib/typescript/composites/wui-banner/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-banner/styles.d.ts +0 -14
- package/lib/typescript/composites/wui-banner/styles.d.ts.map +0 -1
- package/lib/typescript/composites/wui-compatible-network/index.d.ts +0 -10
- package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-list-token/index.d.ts +0 -11
- package/lib/typescript/composites/wui-list-token/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-list-token/styles.d.ts +0 -23
- package/lib/typescript/composites/wui-list-token/styles.d.ts.map +0 -1
- package/lib/typescript/composites/wui-list-transaction/index.d.ts +0 -15
- package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts +0 -10
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +0 -1
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts +0 -6
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +0 -1
- package/lib/typescript/composites/wui-token-button/index.d.ts +0 -7
- package/lib/typescript/composites/wui-token-button/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-token-button/styles.d.ts +0 -17
- package/lib/typescript/composites/wui-token-button/styles.d.ts.map +0 -1
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts +0 -8
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +0 -1
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +0 -35
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +0 -1
- package/lib/typescript/utils/TransactionUtil.d.ts +0 -13
- package/lib/typescript/utils/TransactionUtil.d.ts.map +0 -1
- package/src/assets/svg/ArrowBottomCircle.tsx +0 -12
- package/src/assets/svg/Paperplane.tsx +0 -12
- package/src/composites/wui-account-pill/index.tsx +0 -72
- package/src/composites/wui-account-pill/styles.ts +0 -19
- package/src/composites/wui-balance/index.tsx +0 -25
- package/src/composites/wui-banner/index.tsx +0 -28
- package/src/composites/wui-banner/styles.ts +0 -15
- package/src/composites/wui-compatible-network/index.tsx +0 -64
- package/src/composites/wui-list-token/index.tsx +0 -83
- package/src/composites/wui-list-token/styles.ts +0 -24
- package/src/composites/wui-list-transaction/index.tsx +0 -65
- package/src/composites/wui-list-transaction/styles.ts +0 -10
- package/src/composites/wui-list-transaction/utils.ts +0 -83
- package/src/composites/wui-token-button/index.tsx +0 -29
- package/src/composites/wui-token-button/styles.ts +0 -18
- package/src/composites/wui-transaction-visual/index.tsx +0 -78
- package/src/composites/wui-transaction-visual/styles.ts +0 -36
- package/src/utils/TransactionUtil.ts +0 -173
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { DateUtil } from '@reown/appkit-common-react-native';
|
|
2
|
-
import { UiUtil } from './UiUtil';
|
|
3
|
-
|
|
4
|
-
// -- Helpers --------------------------------------------- //
|
|
5
|
-
const FLOAT_FIXED_VALUE = 2;
|
|
6
|
-
const SMALL_FLOAT_FIXED_VALUE = 4;
|
|
7
|
-
const plusTypes = ['receive', 'deposit', 'borrow', 'claim'];
|
|
8
|
-
const minusTypes = ['withdraw', 'repay', 'burn'];
|
|
9
|
-
export const TransactionUtil = {
|
|
10
|
-
getTransactionGroupTitle(year, month) {
|
|
11
|
-
const currentYear = DateUtil.getYear().toString();
|
|
12
|
-
const monthName = DateUtil.getMonth(parseInt(month));
|
|
13
|
-
const isCurrentYear = year === currentYear;
|
|
14
|
-
const groupTitle = isCurrentYear ? monthName : `${monthName} ${year}`;
|
|
15
|
-
return groupTitle;
|
|
16
|
-
},
|
|
17
|
-
getTransactionImages(transfers) {
|
|
18
|
-
const [transfer, secondTransfer] = transfers;
|
|
19
|
-
const isAllNFT = Boolean(transfer) && transfers?.every(item => Boolean(item.nft_info));
|
|
20
|
-
const haveMultipleTransfers = transfers?.length > 1;
|
|
21
|
-
const haveTwoTransfers = transfers?.length === 2;
|
|
22
|
-
if (haveTwoTransfers && !isAllNFT) {
|
|
23
|
-
return [this.getTransactionImage(transfer), this.getTransactionImage(secondTransfer)];
|
|
24
|
-
}
|
|
25
|
-
if (haveMultipleTransfers) {
|
|
26
|
-
return transfers.map(item => this.getTransactionImage(item));
|
|
27
|
-
}
|
|
28
|
-
return [this.getTransactionImage(transfer)];
|
|
29
|
-
},
|
|
30
|
-
getTransactionImage(transfer) {
|
|
31
|
-
return {
|
|
32
|
-
type: TransactionUtil.getTransactionTransferTokenType(transfer),
|
|
33
|
-
url: TransactionUtil.getTransactionImageURL(transfer)
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
getTransactionImageURL(transfer) {
|
|
37
|
-
let imageURL;
|
|
38
|
-
const isNFT = Boolean(transfer?.nft_info);
|
|
39
|
-
const isFungible = Boolean(transfer?.fungible_info);
|
|
40
|
-
if (transfer && isNFT) {
|
|
41
|
-
imageURL = transfer?.nft_info?.content?.preview?.url;
|
|
42
|
-
} else if (transfer && isFungible) {
|
|
43
|
-
imageURL = transfer?.fungible_info?.icon?.url;
|
|
44
|
-
}
|
|
45
|
-
return imageURL;
|
|
46
|
-
},
|
|
47
|
-
getTransactionTransferTokenType(transfer) {
|
|
48
|
-
if (transfer?.fungible_info) {
|
|
49
|
-
return 'FUNGIBLE';
|
|
50
|
-
} else if (transfer?.nft_info) {
|
|
51
|
-
return 'NFT';
|
|
52
|
-
}
|
|
53
|
-
return undefined;
|
|
54
|
-
},
|
|
55
|
-
getTransactionDescriptions(transaction) {
|
|
56
|
-
const type = transaction?.metadata?.operationType;
|
|
57
|
-
const transfers = transaction?.transfers;
|
|
58
|
-
const haveTransfer = transaction?.transfers?.length > 0;
|
|
59
|
-
const haveMultipleTransfers = transaction?.transfers?.length > 1;
|
|
60
|
-
const isSendOrReceive = type === 'send' || type === 'receive';
|
|
61
|
-
const isFungible = haveTransfer && transfers?.every(transfer => Boolean(transfer?.fungible_info));
|
|
62
|
-
const [firstTransfer, secondTransfer] = transfers;
|
|
63
|
-
let firstDescription = this.getTransferDescription(firstTransfer);
|
|
64
|
-
let secondDescription = this.getTransferDescription(secondTransfer);
|
|
65
|
-
if (!haveTransfer) {
|
|
66
|
-
if (isSendOrReceive && isFungible) {
|
|
67
|
-
firstDescription = UiUtil.getTruncateString({
|
|
68
|
-
string: transaction?.metadata.sentFrom,
|
|
69
|
-
charsStart: 4,
|
|
70
|
-
charsEnd: 6,
|
|
71
|
-
truncate: 'middle'
|
|
72
|
-
});
|
|
73
|
-
secondDescription = UiUtil.getTruncateString({
|
|
74
|
-
string: transaction?.metadata.sentTo,
|
|
75
|
-
charsStart: 4,
|
|
76
|
-
charsEnd: 6,
|
|
77
|
-
truncate: 'middle'
|
|
78
|
-
});
|
|
79
|
-
return [firstDescription, secondDescription];
|
|
80
|
-
}
|
|
81
|
-
return [transaction.metadata.status];
|
|
82
|
-
}
|
|
83
|
-
if (haveMultipleTransfers) {
|
|
84
|
-
return transfers.map(item => this.getTransferDescription(item));
|
|
85
|
-
}
|
|
86
|
-
let prefix = '';
|
|
87
|
-
if (plusTypes.includes(type)) {
|
|
88
|
-
prefix = '+';
|
|
89
|
-
} else if (minusTypes.includes(type)) {
|
|
90
|
-
prefix = '-';
|
|
91
|
-
}
|
|
92
|
-
firstDescription = prefix.concat(firstDescription);
|
|
93
|
-
if (isSendOrReceive) {
|
|
94
|
-
const isSend = type === 'send';
|
|
95
|
-
const address = UiUtil.getTruncateString({
|
|
96
|
-
string: isSend ? transaction.metadata.sentTo : transaction.metadata.sentFrom,
|
|
97
|
-
charsStart: 4,
|
|
98
|
-
charsEnd: 4,
|
|
99
|
-
truncate: 'middle'
|
|
100
|
-
});
|
|
101
|
-
const arrow = isSend ? '→' : '←';
|
|
102
|
-
firstDescription = firstDescription.concat(` ${arrow} ${address}`);
|
|
103
|
-
}
|
|
104
|
-
return [firstDescription];
|
|
105
|
-
},
|
|
106
|
-
getTransferDescription(transfer) {
|
|
107
|
-
let description = '';
|
|
108
|
-
if (!transfer) {
|
|
109
|
-
return description;
|
|
110
|
-
}
|
|
111
|
-
if (transfer?.nft_info) {
|
|
112
|
-
description = transfer?.nft_info?.name || '-';
|
|
113
|
-
} else if (transfer?.fungible_info) {
|
|
114
|
-
description = this.getFungibleTransferDescription(transfer) ?? '-';
|
|
115
|
-
}
|
|
116
|
-
return description;
|
|
117
|
-
},
|
|
118
|
-
getFungibleTransferDescription(transfer) {
|
|
119
|
-
if (!transfer) {
|
|
120
|
-
return null;
|
|
121
|
-
}
|
|
122
|
-
const quantity = this.getQuantityFixedValue(transfer?.quantity.numeric);
|
|
123
|
-
const description = [quantity, transfer?.fungible_info?.symbol].join(' ').trim();
|
|
124
|
-
return description;
|
|
125
|
-
},
|
|
126
|
-
getQuantityFixedValue(value) {
|
|
127
|
-
if (!value) {
|
|
128
|
-
return null;
|
|
129
|
-
}
|
|
130
|
-
const parsedValue = parseFloat(value);
|
|
131
|
-
return parsedValue.toFixed(parsedValue > 1 ? FLOAT_FIXED_VALUE : SMALL_FLOAT_FIXED_VALUE);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
//# sourceMappingURL=TransactionUtil.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DateUtil","UiUtil","FLOAT_FIXED_VALUE","SMALL_FLOAT_FIXED_VALUE","plusTypes","minusTypes","TransactionUtil","getTransactionGroupTitle","year","month","currentYear","getYear","toString","monthName","getMonth","parseInt","isCurrentYear","groupTitle","getTransactionImages","transfers","transfer","secondTransfer","isAllNFT","Boolean","every","item","nft_info","haveMultipleTransfers","length","haveTwoTransfers","getTransactionImage","map","type","getTransactionTransferTokenType","url","getTransactionImageURL","imageURL","isNFT","isFungible","fungible_info","content","preview","icon","undefined","getTransactionDescriptions","transaction","metadata","operationType","haveTransfer","isSendOrReceive","firstTransfer","firstDescription","getTransferDescription","secondDescription","getTruncateString","string","sentFrom","charsStart","charsEnd","truncate","sentTo","status","prefix","includes","concat","isSend","address","arrow","description","name","getFungibleTransferDescription","quantity","getQuantityFixedValue","numeric","symbol","join","trim","value","parsedValue","parseFloat","toFixed"],"sourceRoot":"../../../src","sources":["utils/TransactionUtil.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,mCAAmC;AAO5D,SAASC,MAAM,QAAQ,UAAU;;AAEjC;AACA,MAAMC,iBAAiB,GAAG,CAAC;AAC3B,MAAMC,uBAAuB,GAAG,CAAC;AACjC,MAAMC,SAA4B,GAAG,CAAC,SAAS,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,CAAC;IACvE,MAAML,WAAW,GAAG,CAACG,QAAQ,EAAEnD,QAAQ,EAAEmB,aAAa,EAAEmC,MAAM,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,CAAC;IAEhF,OAAOR,WAAW;EACpB,CAAC;EAEDI,qBAAqBA,CAACK,KAAyB,EAAE;IAC/C,IAAI,CAACA,KAAK,EAAE;MACV,OAAO,IAAI;IACb;IAEA,MAAMC,WAAW,GAAGC,UAAU,CAACF,KAAK,CAAC;IAErC,OAAOC,WAAW,CAACE,OAAO,CAACF,WAAW,GAAG,CAAC,GAAG5E,iBAAiB,GAAGC,uBAAuB,CAAC;EAC3F;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowBottomCircle.d.ts","sourceRoot":"","sources":["../../../../src/assets/svg/ArrowBottomCircle.tsx"],"names":[],"mappings":"AAAA,OAAY,EAAQ,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,QAAA,MAAM,oBAAoB,UAAW,QAAQ,4CAS5C,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Paperplane.d.ts","sourceRoot":"","sources":["../../../../src/assets/svg/Paperplane.tsx"],"names":[],"mappings":"AAAA,OAAY,EAAQ,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,QAAA,MAAM,aAAa,UAAW,QAAQ,4CASrC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
export interface AccountPillProps {
|
|
3
|
-
onPress: () => void;
|
|
4
|
-
onCopy: (address: string) => void;
|
|
5
|
-
address?: string;
|
|
6
|
-
profileName?: string;
|
|
7
|
-
profileImage?: string;
|
|
8
|
-
style?: StyleProp<ViewStyle>;
|
|
9
|
-
}
|
|
10
|
-
export declare function AccountPill({ onPress, onCopy, address, profileName, profileImage, style }: AccountPillProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-account-pill/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AASnF,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAID,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,MAAM,EACN,OAAO,EACP,WAAW,EACX,YAAY,EACZ,KAAK,EACN,EAAE,gBAAgB,2CA4ClB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
container: {
|
|
3
|
-
height: number;
|
|
4
|
-
minWidth: number;
|
|
5
|
-
maxWidth: number;
|
|
6
|
-
paddingLeft: number;
|
|
7
|
-
flexDirection: "row";
|
|
8
|
-
alignItems: "center";
|
|
9
|
-
justifyContent: "center";
|
|
10
|
-
borderRadius: number;
|
|
11
|
-
borderWidth: number;
|
|
12
|
-
};
|
|
13
|
-
text: {
|
|
14
|
-
marginLeft: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
18
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-account-pill/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,wBAeG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-balance/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,OAAO,CAAC,EAAE,OAAa,EAAE,OAAc,EAAE,EAAE,YAAY,2CAStE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOtD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,WAAW,2CAejD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-banner/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,wBAWG"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
export interface CompatibleNetworkProps {
|
|
3
|
-
text: string;
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
networkImages: string[];
|
|
6
|
-
imageHeaders: Record<string, string>;
|
|
7
|
-
style?: StyleProp<ViewStyle>;
|
|
8
|
-
}
|
|
9
|
-
export declare function CompatibleNetwork({ text, onPress, networkImages, imageHeaders, style }: CompatibleNetworkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-compatible-network/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAKD,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,OAAO,EACP,aAAa,EACb,YAAY,EACZ,KAAK,EACN,EAAE,sBAAsB,2CA4BxB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface ListTokenProps {
|
|
2
|
-
imageSrc: string;
|
|
3
|
-
networkSrc?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
value?: number;
|
|
6
|
-
amount?: string;
|
|
7
|
-
currency: string;
|
|
8
|
-
onPress?: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function ListToken({ imageSrc, networkSrc, name, value, amount, currency, onPress }: ListTokenProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-list-token/index.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,OAAO,EACR,EAAE,cAAc,2CAuDhB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
image: {
|
|
3
|
-
height: number;
|
|
4
|
-
width: number;
|
|
5
|
-
borderRadius: number;
|
|
6
|
-
};
|
|
7
|
-
networkImageContainer: {
|
|
8
|
-
position: "absolute";
|
|
9
|
-
bottom: number;
|
|
10
|
-
left: number;
|
|
11
|
-
borderWidth: number;
|
|
12
|
-
borderRadius: number;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
};
|
|
16
|
-
networkImage: {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
borderRadius: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
23
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-list-token/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGA,wBAoBG"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type TransactionImage, type TransactionStatus } from '@reown/appkit-common-react-native';
|
|
2
|
-
import type { TransactionType } from '../../utils/TypesUtil';
|
|
3
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
export interface ListTransactionProps {
|
|
5
|
-
date: string;
|
|
6
|
-
status?: TransactionStatus;
|
|
7
|
-
type?: TransactionType;
|
|
8
|
-
descriptions?: string[];
|
|
9
|
-
images?: TransactionImage[];
|
|
10
|
-
networkSrc?: string;
|
|
11
|
-
style?: StyleProp<ViewStyle>;
|
|
12
|
-
isAllNFT?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function ListTransaction({ date, type, descriptions, images, networkSrc, style, isAllNFT, status }: ListTransactionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-list-transaction/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAElG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAO7D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,QAAQ,EACR,MAAM,EACP,EAAE,oBAAoB,2CAiCtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-list-transaction/styles.ts"],"names":[],"mappings":";;;;;;;;AAEA,wBAOG"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TransactionStatus } from '@reown/appkit-common-react-native';
|
|
2
|
-
import type { IconType, TransactionType } from '../../utils/TypesUtil';
|
|
3
|
-
export declare const getIcon: (type: TransactionType) => IconType;
|
|
4
|
-
export declare const getIconColor: (status?: TransactionStatus) => "fg-200" | "success-100" | "error-100";
|
|
5
|
-
export declare const getTypeLabel: (type?: TransactionType) => "Unknown" | "Approved" | "Bought" | "Borrowed" | "Burnt" | "Canceled" | "Claimed" | "Deployed" | "Deposited" | "Executed" | "Minted" | "Received" | "Repaid" | "Sent" | "Staked" | "Swapped" | "Unstaked" | "Withdrawn";
|
|
6
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-list-transaction/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEvE,eAAO,MAAM,OAAO,SAAU,eAAe,KAAG,QAoB/C,CAAC;AAGF,eAAO,MAAM,YAAY,YAAa,iBAAiB,2CAWtD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,eAAe,4NA2ClD,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Balance } from '@reown/appkit-common-react-native';
|
|
2
|
-
export interface TokenButtonProps {
|
|
3
|
-
onPress?: () => void;
|
|
4
|
-
token?: Balance;
|
|
5
|
-
}
|
|
6
|
-
export declare function TokenButton({ token, onPress }: TokenButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-token-button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAMjE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,gBAAgB,2CAiB/D"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
selectButton: {
|
|
3
|
-
height: number;
|
|
4
|
-
paddingHorizontal: number;
|
|
5
|
-
};
|
|
6
|
-
container: {
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
image: {
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
borderRadius: number;
|
|
13
|
-
marginRight: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-token-button/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,wBAcG"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { TransactionImage } from '@reown/appkit-common-react-native';
|
|
2
|
-
export interface TransactionVisualProps {
|
|
3
|
-
images?: TransactionImage[];
|
|
4
|
-
networkSrc?: string;
|
|
5
|
-
isAllNFT?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function TransactionVisual({ images, networkSrc, isAllNFT }: TransactionVisualProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-transaction-visual/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAQ1E,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CA+DzF"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
image: {
|
|
3
|
-
height: number;
|
|
4
|
-
width: number;
|
|
5
|
-
borderRadius: number;
|
|
6
|
-
marginRight: number;
|
|
7
|
-
};
|
|
8
|
-
imageNft: {
|
|
9
|
-
borderRadius: number;
|
|
10
|
-
};
|
|
11
|
-
halfContainer: {
|
|
12
|
-
overflow: "hidden";
|
|
13
|
-
width: number;
|
|
14
|
-
marginRight: number;
|
|
15
|
-
};
|
|
16
|
-
halfRight: {
|
|
17
|
-
left: number;
|
|
18
|
-
};
|
|
19
|
-
networkImageContainer: {
|
|
20
|
-
position: "absolute";
|
|
21
|
-
bottom: number;
|
|
22
|
-
left: number;
|
|
23
|
-
borderWidth: number;
|
|
24
|
-
borderRadius: number;
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
};
|
|
28
|
-
networkImage: {
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
borderRadius: number;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export default _default;
|
|
35
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-transaction-visual/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAgCG"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TransactionTransfer, Transaction, TransactionImage } from '@reown/appkit-common-react-native';
|
|
2
|
-
export declare const TransactionUtil: {
|
|
3
|
-
getTransactionGroupTitle(year: string, month: string): string;
|
|
4
|
-
getTransactionImages(transfers: TransactionTransfer[]): TransactionImage[];
|
|
5
|
-
getTransactionImage(transfer?: TransactionTransfer): TransactionImage;
|
|
6
|
-
getTransactionImageURL(transfer: TransactionTransfer | undefined): string | undefined;
|
|
7
|
-
getTransactionTransferTokenType(transfer?: TransactionTransfer): 'FUNGIBLE' | 'NFT' | undefined;
|
|
8
|
-
getTransactionDescriptions(transaction: Transaction): string[];
|
|
9
|
-
getTransferDescription(transfer?: TransactionTransfer): string;
|
|
10
|
-
getFungibleTransferDescription(transfer?: TransactionTransfer): string | null;
|
|
11
|
-
getQuantityFixedValue(value: string | undefined): string | null;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=TransactionUtil.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TransactionUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAU3C,eAAO,MAAM,eAAe;mCACK,MAAM,SAAS,MAAM;oCASpB,mBAAmB,EAAE,GAAG,gBAAgB,EAAE;mCAiB3C,mBAAmB,GAAG,gBAAgB;qCAOpC,mBAAmB,GAAG,SAAS;+CAcrB,mBAAmB,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS;4CAUvD,WAAW;sCA+DjB,mBAAmB;8CAgBX,mBAAmB;iCAWhC,MAAM,GAAG,SAAS;CAShD,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Svg, { Path, type SvgProps } from 'react-native-svg';
|
|
2
|
-
const SvgArrowBottomCircle = (props: SvgProps) => (
|
|
3
|
-
<Svg fill="none" viewBox="0 0 20 20" {...props}>
|
|
4
|
-
<Path
|
|
5
|
-
fillRule="evenodd"
|
|
6
|
-
clipRule="evenodd"
|
|
7
|
-
d="M10 2.42908C5.81875 2.42908 2.42859 5.81989 2.42859 10.0034C2.42859 14.1869 5.81875 17.5777 10 17.5777C14.1813 17.5777 17.5714 14.1869 17.5714 10.0034C17.5714 5.81989 14.1813 2.42908 10 2.42908ZM0.428589 10.0034C0.428589 4.71596 4.71355 0.429077 10 0.429077C15.2865 0.429077 19.5714 4.71596 19.5714 10.0034C19.5714 15.2908 15.2865 19.5777 10 19.5777C4.71355 19.5777 0.428589 15.2908 0.428589 10.0034ZM10 5.75003C10.5523 5.75003 11 6.19774 11 6.75003L11 10.8343L12.2929 9.54137C12.6834 9.15085 13.3166 9.15085 13.7071 9.54137C14.0976 9.9319 14.0976 10.5651 13.7071 10.9556L10.7071 13.9556C10.3166 14.3461 9.68343 14.3461 9.29291 13.9556L6.29291 10.9556C5.90239 10.5651 5.90239 9.9319 6.29291 9.54137C6.68343 9.15085 7.3166 9.15085 7.70712 9.54137L9.00002 10.8343L9.00002 6.75003C9.00002 6.19774 9.44773 5.75003 10 5.75003Z"
|
|
8
|
-
fill={props.fill || '#fff'}
|
|
9
|
-
/>
|
|
10
|
-
</Svg>
|
|
11
|
-
);
|
|
12
|
-
export default SvgArrowBottomCircle;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Svg, { Path, type SvgProps } from 'react-native-svg';
|
|
2
|
-
const SvgPaperplane = (props: SvgProps) => (
|
|
3
|
-
<Svg viewBox="0 0 18 18" fill="none" {...props}>
|
|
4
|
-
<Path
|
|
5
|
-
fillRule="evenodd"
|
|
6
|
-
clipRule="evenodd"
|
|
7
|
-
d="M13.8808 2.34818C13.22 2.47804 12.3501 2.75876 11.0748 3.17302L8.50869 4.00652C6.40631 4.68941 4.90679 5.17786 3.88121 5.63184C3.37166 5.8574 3.0351 6.05097 2.82022 6.22041C2.61183 6.38473 2.57011 6.48493 2.55969 6.51823C2.48058 6.77109 2.48009 7.04201 2.55831 7.29515C2.56861 7.3285 2.60998 7.42884 2.81777 7.5939C3.03205 7.7641 3.36792 7.95887 3.87667 8.18624C4.79287 8.59572 6.08844 9.03414 7.85529 9.61644L10.3876 6.5986C10.7426 6.17553 11.3733 6.12034 11.7964 6.47534C12.2195 6.83035 12.2746 7.4611 11.9196 7.88418L9.38738 10.902C10.2676 12.5409 10.9244 13.7407 11.4867 14.5718C11.799 15.0334 12.0491 15.3303 12.2539 15.5118C12.4526 15.6878 12.5586 15.7111 12.5932 15.7154C12.8561 15.7485 13.1228 15.701 13.3581 15.5792C13.3891 15.5631 13.4805 15.5046 13.6061 15.2709C13.7357 15.0298 13.8679 14.6648 14.0015 14.1238C14.2705 13.035 14.4912 11.4734 14.7986 9.28438L15.1738 6.61255C15.3603 5.28462 15.4857 4.37923 15.4989 3.70596C15.512 3.03708 15.4047 2.80566 15.3145 2.69189C15.2044 2.55304 15.0673 2.43798 14.9114 2.35371C14.7837 2.28465 14.5372 2.21916 13.8808 2.34818ZM7.49373 11.603C5.61919 10.9864 4.1304 10.4903 3.0606 10.0122C2.48683 9.75574 1.9778 9.48086 1.57383 9.15998C1.16337 8.83395 0.813119 8.42178 0.647443 7.88557C0.449667 7.24547 0.450886 6.56041 0.65094 5.92102C0.818524 5.3854 1.17024 4.97448 1.58185 4.64992C1.98697 4.33047 2.49697 4.0574 3.07166 3.80301C4.20309 3.30217 5.80179 2.7829 7.82903 2.12443L10.5196 1.25048C11.7166 0.861654 12.7017 0.541645 13.4951 0.385722C14.3065 0.22624 15.1202 0.192948 15.8627 0.594428C16.2568 0.807527 16.6035 1.09845 16.8818 1.44956C17.4062 2.11106 17.5147 2.91821 17.4985 3.74503C17.4827 4.55338 17.3386 5.57909 17.1636 6.8254L16.7701 9.62688C16.4737 11.7377 16.2399 13.4023 15.9432 14.6035C15.7924 15.2136 15.6121 15.7633 15.3678 16.2177C15.1197 16.6794 14.7761 17.0972 14.2777 17.3552C13.6827 17.6632 13.0083 17.7834 12.3436 17.6998C11.7867 17.6297 11.32 17.3564 10.9277 17.0088C10.5415 16.6667 10.1824 16.2131 9.83023 15.6926C9.17361 14.7221 8.42648 13.342 7.49373 11.603Z"
|
|
8
|
-
fill={props.fill || '#fff'}
|
|
9
|
-
/>
|
|
10
|
-
</Svg>
|
|
11
|
-
);
|
|
12
|
-
export default SvgPaperplane;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
import { Avatar } from '../wui-avatar';
|
|
3
|
-
import { UiUtil } from '../../utils/UiUtil';
|
|
4
|
-
import { IconLink } from '../wui-icon-link';
|
|
5
|
-
import { Text } from '../../components/wui-text';
|
|
6
|
-
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
7
|
-
import { useTheme } from '../../hooks/useTheme';
|
|
8
|
-
import styles from './styles';
|
|
9
|
-
|
|
10
|
-
export interface AccountPillProps {
|
|
11
|
-
onPress: () => void;
|
|
12
|
-
onCopy: (address: string) => void;
|
|
13
|
-
address?: string;
|
|
14
|
-
profileName?: string;
|
|
15
|
-
profileImage?: string;
|
|
16
|
-
style?: StyleProp<ViewStyle>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
20
|
-
|
|
21
|
-
export function AccountPill({
|
|
22
|
-
onPress,
|
|
23
|
-
onCopy,
|
|
24
|
-
address,
|
|
25
|
-
profileName,
|
|
26
|
-
profileImage,
|
|
27
|
-
style
|
|
28
|
-
}: AccountPillProps) {
|
|
29
|
-
const Theme = useTheme();
|
|
30
|
-
|
|
31
|
-
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
32
|
-
Theme['gray-glass-005'],
|
|
33
|
-
Theme['gray-glass-010']
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
const backgroundColor = animatedValue;
|
|
37
|
-
const borderColor = Theme['gray-glass-005'];
|
|
38
|
-
|
|
39
|
-
const handleCopyAddress = () => {
|
|
40
|
-
if (address) {
|
|
41
|
-
onCopy(address);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<AnimatedPressable
|
|
47
|
-
style={[styles.container, { backgroundColor, borderColor }, style]}
|
|
48
|
-
onPressIn={setEndValue}
|
|
49
|
-
onPressOut={setStartValue}
|
|
50
|
-
onPress={onPress}
|
|
51
|
-
hitSlop={10}
|
|
52
|
-
>
|
|
53
|
-
<Avatar imageSrc={profileImage} address={address} size={28} borderWidth={0} />
|
|
54
|
-
<Text variant="large-500" color="fg-100" style={styles.text}>
|
|
55
|
-
{profileName
|
|
56
|
-
? UiUtil.getTruncateString({
|
|
57
|
-
string: profileName,
|
|
58
|
-
charsStart: 17,
|
|
59
|
-
charsEnd: 0,
|
|
60
|
-
truncate: 'end'
|
|
61
|
-
})
|
|
62
|
-
: UiUtil.getTruncateString({
|
|
63
|
-
string: address ?? '',
|
|
64
|
-
charsStart: 4,
|
|
65
|
-
charsEnd: 4,
|
|
66
|
-
truncate: 'middle'
|
|
67
|
-
})}
|
|
68
|
-
</Text>
|
|
69
|
-
<IconLink icon="copy" size="sm" iconColor="fg-200" onPress={handleCopyAddress} />
|
|
70
|
-
</AnimatedPressable>
|
|
71
|
-
);
|
|
72
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
-
|
|
4
|
-
export default StyleSheet.create({
|
|
5
|
-
container: {
|
|
6
|
-
height: 44,
|
|
7
|
-
minWidth: 160,
|
|
8
|
-
maxWidth: 260,
|
|
9
|
-
paddingLeft: Spacing.xs,
|
|
10
|
-
flexDirection: 'row',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
justifyContent: 'center',
|
|
13
|
-
borderRadius: BorderRadius.full,
|
|
14
|
-
borderWidth: 1
|
|
15
|
-
},
|
|
16
|
-
text: {
|
|
17
|
-
marginLeft: Spacing['2xs']
|
|
18
|
-
}
|
|
19
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { Text } from '../../components/wui-text';
|
|
3
|
-
|
|
4
|
-
export interface BalanceProps {
|
|
5
|
-
integer?: string;
|
|
6
|
-
decimal?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function Balance({ integer = '0', decimal = '00' }: BalanceProps) {
|
|
10
|
-
return (
|
|
11
|
-
<Text color="fg-100" style={styles.text}>
|
|
12
|
-
{`$${integer}`}
|
|
13
|
-
<Text color="fg-200" style={styles.text}>
|
|
14
|
-
{`.${decimal}`}
|
|
15
|
-
</Text>
|
|
16
|
-
</Text>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const styles = StyleSheet.create({
|
|
21
|
-
text: {
|
|
22
|
-
fontSize: 40,
|
|
23
|
-
fontWeight: '500'
|
|
24
|
-
}
|
|
25
|
-
});
|