@reown/appkit-ui-react-native 0.0.0-fix-email-login-20241010173711 → 0.0.0-fix-token-balance-20241017200828
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/assets/svg/ArrowBottomCircle.js +21 -0
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/commonjs/assets/svg/Paperplane.js +21 -0
- package/lib/commonjs/assets/svg/Paperplane.js.map +1 -0
- package/lib/commonjs/components/wui-icon/index.js +4 -0
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/index.js +13 -7
- 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-account-pill/index.js +73 -0
- package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js +25 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
- package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-balance/index.js +27 -0
- package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/index.js +36 -0
- package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/styles.js +21 -0
- package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-button/index.js +3 -3
- 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 +5 -7
- 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-compatible-network/index.js +58 -0
- package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
- 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 +4 -3
- package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-token/index.js +78 -0
- package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
- package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/commonjs/composites/wui-network-button/index.js +14 -10
- 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 +48 -21
- package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
- package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-qr-code/index.js +14 -11
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +1 -0
- package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js +2 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/index.js +22 -8
- package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js +1 -2
- package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-token-button/index.js +37 -0
- package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
- package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
- package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/commonjs/index.js +56 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +2 -1
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/commonjs/utils/TransactionUtil.js +139 -0
- package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
- package/lib/commonjs/utils/UiUtil.js +15 -0
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
- package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/module/assets/svg/Paperplane.js +13 -0
- package/lib/module/assets/svg/Paperplane.js.map +1 -0
- package/lib/module/components/wui-icon/index.js +4 -0
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/index.js +13 -7
- 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-account-pill/index.js +66 -0
- package/lib/module/composites/wui-account-pill/index.js.map +1 -0
- package/lib/module/composites/wui-account-pill/styles.js +19 -0
- package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/module/composites/wui-avatar/styles.js +2 -1
- package/lib/module/composites/wui-avatar/styles.js.map +1 -1
- package/lib/module/composites/wui-balance/index.js +21 -0
- package/lib/module/composites/wui-balance/index.js.map +1 -0
- package/lib/module/composites/wui-banner/index.js +29 -0
- package/lib/module/composites/wui-banner/index.js.map +1 -0
- package/lib/module/composites/wui-banner/styles.js +15 -0
- package/lib/module/composites/wui-banner/styles.js.map +1 -0
- package/lib/module/composites/wui-button/index.js +3 -3
- 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 +6 -8
- 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-compatible-network/index.js +52 -0
- package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
- 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 +4 -3
- package/lib/module/composites/wui-list-item/styles.js.map +1 -1
- package/lib/module/composites/wui-list-token/index.js +71 -0
- package/lib/module/composites/wui-list-token/index.js.map +1 -0
- package/lib/module/composites/wui-list-token/styles.js +24 -0
- package/lib/module/composites/wui-list-token/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/index.js +57 -0
- package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/styles.js +10 -0
- package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/utils.js +79 -0
- package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/module/composites/wui-network-button/index.js +15 -11
- 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 +49 -22
- package/lib/module/composites/wui-network-image/index.js.map +1 -1
- package/lib/module/composites/wui-network-image/styles.js +2 -0
- package/lib/module/composites/wui-network-image/styles.js.map +1 -1
- package/lib/module/composites/wui-qr-code/index.js +14 -11
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +1 -0
- package/lib/module/composites/wui-snackbar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/styles.js +2 -1
- package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/module/composites/wui-tabs/index.js +22 -8
- package/lib/module/composites/wui-tabs/index.js.map +1 -1
- package/lib/module/composites/wui-tabs/styles.js +1 -2
- package/lib/module/composites/wui-tabs/styles.js.map +1 -1
- package/lib/module/composites/wui-token-button/index.js +30 -0
- package/lib/module/composites/wui-token-button/index.js.map +1 -0
- package/lib/module/composites/wui-token-button/styles.js +18 -0
- package/lib/module/composites/wui-token-button/styles.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/index.js +66 -0
- package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
- package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/module/index.js +8 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +2 -1
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/module/utils/TransactionUtil.js +134 -0
- package/lib/module/utils/TransactionUtil.js.map +1 -0
- package/lib/module/utils/UiUtil.js +15 -0
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
- 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-account-pill/index.d.ts +11 -0
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +18 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
- package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
- package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
- 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-compatible-network/index.d.ts +10 -0
- package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
- package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
- package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
- package/lib/typescript/composites/wui-network-button/index.d.ts +6 -4
- 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 +6 -2
- package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
- package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-qr-code/index.d.ts +4 -1
- 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 +4 -2
- package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
- package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
- package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +8 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/utils/ThemeUtil.d.ts +1 -0
- package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
- package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
- package/lib/typescript/utils/TypesUtil.d.ts +4 -3
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/lib/typescript/utils/UiUtil.d.ts +1 -0
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
- package/src/assets/svg/Paperplane.tsx +12 -0
- package/src/components/wui-icon/index.tsx +4 -0
- package/src/composites/wui-account-button/index.tsx +17 -8
- package/src/composites/wui-account-button/styles.ts +4 -4
- package/src/composites/wui-account-pill/index.tsx +72 -0
- package/src/composites/wui-account-pill/styles.ts +19 -0
- package/src/composites/wui-avatar/styles.ts +2 -1
- package/src/composites/wui-balance/index.tsx +25 -0
- package/src/composites/wui-banner/index.tsx +28 -0
- package/src/composites/wui-banner/styles.ts +15 -0
- package/src/composites/wui-button/index.tsx +12 -10
- package/src/composites/wui-button/styles.ts +2 -2
- package/src/composites/wui-chip/index.tsx +7 -9
- package/src/composites/wui-chip/styles.ts +1 -1
- package/src/composites/wui-compatible-network/index.tsx +64 -0
- package/src/composites/wui-list-item/index.tsx +15 -14
- package/src/composites/wui-list-item/styles.ts +4 -3
- package/src/composites/wui-list-token/index.tsx +83 -0
- package/src/composites/wui-list-token/styles.ts +24 -0
- package/src/composites/wui-list-transaction/index.tsx +65 -0
- package/src/composites/wui-list-transaction/styles.ts +10 -0
- package/src/composites/wui-list-transaction/utils.ts +83 -0
- package/src/composites/wui-network-button/index.tsx +22 -15
- package/src/composites/wui-network-button/styles.ts +4 -4
- package/src/composites/wui-network-image/index.tsx +57 -21
- package/src/composites/wui-network-image/styles.ts +6 -0
- package/src/composites/wui-qr-code/index.tsx +15 -10
- package/src/composites/wui-snackbar/index.tsx +1 -0
- package/src/composites/wui-snackbar/styles.ts +2 -1
- package/src/composites/wui-tabs/index.tsx +33 -9
- package/src/composites/wui-tabs/styles.ts +1 -2
- package/src/composites/wui-token-button/index.tsx +29 -0
- package/src/composites/wui-token-button/styles.ts +18 -0
- package/src/composites/wui-transaction-visual/index.tsx +78 -0
- package/src/composites/wui-transaction-visual/styles.ts +36 -0
- package/src/index.ts +11 -0
- package/src/utils/ThemeUtil.ts +2 -1
- package/src/utils/TransactionUtil.ts +173 -0
- package/src/utils/TypesUtil.ts +36 -2
- package/src/utils/UiUtil.ts +18 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ThemeUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D,eAAO,MAAM,SAAS,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEpD,CAAC;AAEF,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"ThemeUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ThemeUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D,eAAO,MAAM,SAAS,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEpD,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;CAWxB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;CAMpB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,WAAW,GAAG,MAAM;CAajD,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;CAM3B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,18 +1,18 @@
|
|
|
1
1
|
export type ThemeKeys = 'accent-100' | 'accent-090' | 'accent-080' | 'accent-020' | 'accent-glass-090' | 'accent-glass-080' | 'accent-glass-020' | 'accent-glass-015' | 'accent-glass-010' | 'accent-glass-005' | 'accent-glass-002' | 'fg-100' | 'fg-125' | 'fg-150' | 'fg-175' | 'fg-200' | 'fg-225' | 'fg-250' | 'fg-275' | 'fg-300' | 'bg-100' | 'bg-125' | 'bg-150' | 'bg-175' | 'bg-200' | 'bg-225' | 'bg-250' | 'bg-275' | 'bg-300' | 'inverse-100' | 'inverse-000' | 'success-100' | 'success-glass-020' | 'success-glass-015' | 'success-glass-010' | 'success-glass-005' | 'error-100' | 'error-glass-020' | 'error-glass-015' | 'error-glass-010' | 'error-glass-005' | 'teal-100' | 'magenta-100' | 'indigo-100' | 'orange-100' | 'purple-100' | 'yellow-100' | 'gray-glass-001' | 'gray-glass-002' | 'gray-glass-005' | 'gray-glass-010' | 'gray-glass-015' | 'gray-glass-020' | 'gray-glass-025' | 'gray-glass-030' | 'gray-glass-060' | 'gray-glass-070' | 'gray-glass-080' | 'gray-glass-090' | 'icon-box-bg-error-100' | 'icon-box-bg-success-100';
|
|
2
2
|
export type TextType = 'medium-title-400' | 'medium-title-500' | 'medium-title-600' | 'small-title-400' | 'small-title-500' | 'small-title-600' | 'large-400' | 'large-500' | 'large-600' | 'medium-400' | 'medium-500' | 'medium-600' | 'paragraph-400' | 'paragraph-500' | 'paragraph-600' | 'small-400' | 'small-500' | 'small-600' | 'tiny-400' | 'tiny-500' | 'tiny-600' | 'micro-600' | 'micro-700';
|
|
3
|
-
export type ColorType = 'accent-100' | 'error-100' | 'fg-100' | 'fg-150' | 'fg-200' | 'fg-250' | 'fg-275' | 'fg-300' | 'gray-glass-020' | 'inverse-000' | 'inverse-100' | 'success-100';
|
|
3
|
+
export type ColorType = 'accent-100' | 'error-100' | 'fg-100' | 'fg-150' | 'fg-175' | 'fg-200' | 'fg-250' | 'fg-275' | 'fg-300' | 'accent-glass-020' | 'accent-glass-015' | 'accent-glass-010' | 'accent-glass-005' | 'gray-glass-020' | 'gray-glass-010' | 'gray-glass-005' | 'inverse-000' | 'inverse-100' | 'success-100' | 'teal-100' | 'magenta-100' | 'indigo-100' | 'orange-100' | 'purple-100' | 'yellow-100';
|
|
4
4
|
export type SizeType = 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
|
|
5
5
|
export type PlacementType = 'bottom' | 'left' | 'right' | 'top';
|
|
6
6
|
export type ButtonType = 'accent' | 'fill' | 'shade';
|
|
7
7
|
export type ChipType = 'fill' | 'shade' | 'transparent';
|
|
8
|
-
export type IconType = 'allWallets' | 'apple' | 'arrowBottom' | 'arrowLeft' | 'arrowRight' | 'arrowTop' | 'browser' | 'checkmark' | 'chevronBottom' | 'chevronLeft' | 'chevronRight' | 'chevronRightSmall' | 'chevronTop' | 'clock' | 'close' | 'coinPlaceholder' | 'compass' | 'copy' | 'copySmall' | 'cursor' | 'desktop' | 'disconnect' | 'discord' | 'etherscan' | 'extension' | 'externalLink' | 'facebook' | 'filters' | 'github' | 'google' | 'helpCircle' | 'infoCircle' | 'mail' | 'mobile' | 'networkPlaceholder' | 'nftPlaceholder' | 'off' | 'qrCode' | 'refresh' | 'search' | 'swapHorizontal' | 'swapVertical' | 'telegram' | 'twitch' | 'twitter' | 'twitterIcon' | 'verify' | 'wallet' | 'walletSmall' | 'walletConnect' | 'walletPlaceholder' | 'warningCircle';
|
|
8
|
+
export type IconType = 'allWallets' | 'apple' | 'arrowBottom' | 'arrowBottomCircle' | 'arrowLeft' | 'arrowRight' | 'arrowTop' | 'browser' | 'checkmark' | 'chevronBottom' | 'chevronLeft' | 'chevronRight' | 'chevronRightSmall' | 'chevronTop' | 'clock' | 'close' | 'coinPlaceholder' | 'compass' | 'copy' | 'copySmall' | 'cursor' | 'desktop' | 'disconnect' | 'discord' | 'etherscan' | 'extension' | 'externalLink' | 'facebook' | 'filters' | 'github' | 'google' | 'helpCircle' | 'infoCircle' | 'mail' | 'mobile' | 'networkPlaceholder' | 'nftPlaceholder' | 'off' | 'paperplane' | 'qrCode' | 'refresh' | 'search' | 'swapHorizontal' | 'swapVertical' | 'telegram' | 'twitch' | 'twitter' | 'twitterIcon' | 'verify' | 'wallet' | 'walletSmall' | 'walletConnect' | 'walletPlaceholder' | 'warningCircle';
|
|
9
9
|
export type VisualType = 'browser' | 'dao' | 'defi' | 'defiAlt' | 'eth' | 'layers' | 'lock' | 'login' | 'network' | 'nft' | 'noun' | 'profile' | 'system';
|
|
10
10
|
export type LogoType = 'apple' | 'discord' | 'facebook' | 'github' | 'google' | 'telegram' | 'twitch' | 'twitter';
|
|
11
11
|
export type TagType = 'main' | 'shade' | 'error' | 'success';
|
|
12
12
|
export type CardSelectType = 'wallet' | 'network';
|
|
13
13
|
export type TabOptionType = {
|
|
14
14
|
icon: IconType;
|
|
15
|
-
label
|
|
15
|
+
label?: string;
|
|
16
16
|
};
|
|
17
17
|
export type SpacingType = '0' | '4xs' | '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
18
18
|
export type BorderRadiusType = Exclude<SpacingType, 'xl' | 'xxl'>;
|
|
@@ -29,4 +29,5 @@ export type TruncateOptions = {
|
|
|
29
29
|
charsEnd: number;
|
|
30
30
|
truncate: TruncateType;
|
|
31
31
|
};
|
|
32
|
+
export type TransactionType = 'approve' | 'bought' | 'borrow' | 'burn' | 'cancel' | 'claim' | 'deploy' | 'deposit' | 'execute' | 'mint' | 'receive' | 'repay' | 'send' | 'stake' | 'trade' | 'unstake' | 'withdraw';
|
|
32
33
|
//# sourceMappingURL=TypesUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypesUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TypesUtil.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,UAAU,GACV,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,uBAAuB,GACvB,yBAAyB,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,eAAe,GACf,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"TypesUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TypesUtil.ts"],"names":[],"mappings":"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"}
|
|
@@ -6,5 +6,6 @@ export declare const UiUtil: {
|
|
|
6
6
|
tintColor(rgb: [number, number, number], tint: number): [number, number, number];
|
|
7
7
|
getTruncateString({ string, charsStart, charsEnd, truncate }: TruncateOptions): string;
|
|
8
8
|
getWalletName(name: string, short?: boolean): string | undefined;
|
|
9
|
+
formatNumberToLocalString(value: string | number | undefined, decimals?: number): string;
|
|
9
10
|
};
|
|
10
11
|
//# sourceMappingURL=UiUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/UiUtil.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE,eAAO,MAAM,MAAM;8BACS,WAAW,GAAG,WAAW,EAAE,SAAS,MAAM;mCAUrC,MAAM;kBAiBvB,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;mBAUhC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;kEASlB,eAAe;wBAgBzD,MAAM;
|
|
1
|
+
{"version":3,"file":"UiUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/UiUtil.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE,eAAO,MAAM,MAAM;8BACS,WAAW,GAAG,WAAW,EAAE,SAAS,MAAM;mCAUrC,MAAM;kBAiBvB,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;mBAUhC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;kEASlB,eAAe;wBAgBzD,MAAM;qCAIO,MAAM,GAAG,MAAM,GAAG,SAAS;CAiB7D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-ui-react-native",
|
|
3
|
-
"version": "0.0.0-fix-
|
|
3
|
+
"version": "0.0.0-fix-token-balance-20241017200828",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"types": "lib/typescript/index.d.ts",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"walletconnect",
|
|
27
27
|
"react-native"
|
|
28
28
|
],
|
|
29
|
-
"repository": "https://github.com/
|
|
29
|
+
"repository": "https://github.com/reown-com/appkit-react-native",
|
|
30
30
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://reown.com/appkit",
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"bugs": {
|
|
34
|
-
"url": "https://github.com/
|
|
34
|
+
"url": "https://github.com/reown-com/appkit-react-native/issues"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"registry": "https://registry.npmjs.org/",
|
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#### 📚 [Documentation](https://docs.reown.com/appkit/react-native/core/installation)
|
|
2
2
|
|
|
3
|
-
#### 🔎 [Examples](https://github.com/
|
|
3
|
+
#### 🔎 [Examples](https://github.com/reown-com/react-native-examples)
|
|
4
4
|
|
|
5
5
|
#### 🔗 [Website](https://reown.com/appkit)
|
|
6
6
|
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -5,6 +5,7 @@ import type { ColorType, IconType, SizeType, ThemeKeys } from '../../utils/Types
|
|
|
5
5
|
import AllWalletsSvg from '../../assets/svg/AllWallets';
|
|
6
6
|
import AppleSvg from '../../assets/svg/Apple';
|
|
7
7
|
import ArrowBottomSvg from '../../assets/svg/ArrowBottom';
|
|
8
|
+
import ArrowBottomCircleSvg from '../../assets/svg/ArrowBottomCircle';
|
|
8
9
|
import ArrowLeftSvg from '../../assets/svg/ArrowLeft';
|
|
9
10
|
import ArrowRightSvg from '../../assets/svg/ArrowRight';
|
|
10
11
|
import ArrowTopSvg from '../../assets/svg/ArrowTop';
|
|
@@ -39,6 +40,7 @@ import MobileSvg from '../../assets/svg/Mobile';
|
|
|
39
40
|
import NetworkPlaceholderSvg from '../../assets/svg/NetworkPlaceholder';
|
|
40
41
|
import NftPlaceholderSvg from '../../assets/svg/NftPlaceholder';
|
|
41
42
|
import OffSvg from '../../assets/svg/Off';
|
|
43
|
+
import PaperplaneSvg from '../../assets/svg/Paperplane';
|
|
42
44
|
import QrCodeSvg from '../../assets/svg/QrCode';
|
|
43
45
|
import RefreshSvg from '../../assets/svg/Refresh';
|
|
44
46
|
import SearchSvg from '../../assets/svg/Search';
|
|
@@ -61,6 +63,7 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
61
63
|
allWallets: AllWalletsSvg,
|
|
62
64
|
apple: AppleSvg,
|
|
63
65
|
arrowBottom: ArrowBottomSvg,
|
|
66
|
+
arrowBottomCircle: ArrowBottomCircleSvg,
|
|
64
67
|
arrowLeft: ArrowLeftSvg,
|
|
65
68
|
arrowRight: ArrowRightSvg,
|
|
66
69
|
arrowTop: ArrowTopSvg,
|
|
@@ -95,6 +98,7 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
95
98
|
networkPlaceholder: NetworkPlaceholderSvg,
|
|
96
99
|
nftPlaceholder: NftPlaceholderSvg,
|
|
97
100
|
off: OffSvg,
|
|
101
|
+
paperplane: PaperplaneSvg,
|
|
98
102
|
qrCode: QrCodeSvg,
|
|
99
103
|
refresh: RefreshSvg,
|
|
100
104
|
search: SearchSvg,
|
|
@@ -15,7 +15,7 @@ export interface AccountButtonProps {
|
|
|
15
15
|
imageHeaders?: Record<string, string>;
|
|
16
16
|
avatarSrc?: string;
|
|
17
17
|
address?: string;
|
|
18
|
-
|
|
18
|
+
profileName?: string;
|
|
19
19
|
balance?: string;
|
|
20
20
|
onPress?: () => void;
|
|
21
21
|
disabled?: boolean;
|
|
@@ -28,7 +28,7 @@ export function AccountButton({
|
|
|
28
28
|
imageHeaders,
|
|
29
29
|
avatarSrc,
|
|
30
30
|
address,
|
|
31
|
-
|
|
31
|
+
profileName,
|
|
32
32
|
balance,
|
|
33
33
|
onPress,
|
|
34
34
|
disabled,
|
|
@@ -73,6 +73,20 @@ export function AccountButton({
|
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
const formattedAddress = profileName
|
|
77
|
+
? UiUtil.getTruncateString({
|
|
78
|
+
string: profileName,
|
|
79
|
+
charsStart: 18,
|
|
80
|
+
charsEnd: 0,
|
|
81
|
+
truncate: 'end'
|
|
82
|
+
})
|
|
83
|
+
: UiUtil.getTruncateString({
|
|
84
|
+
string: address || '',
|
|
85
|
+
charsStart: 4,
|
|
86
|
+
charsEnd: 6,
|
|
87
|
+
truncate: 'middle'
|
|
88
|
+
});
|
|
89
|
+
|
|
76
90
|
return (
|
|
77
91
|
<AnimatedPressable
|
|
78
92
|
onPress={onPress}
|
|
@@ -102,12 +116,7 @@ export function AccountButton({
|
|
|
102
116
|
/>
|
|
103
117
|
{address && (
|
|
104
118
|
<Text variant="paragraph-500" color="fg-200" style={styles.address}>
|
|
105
|
-
{
|
|
106
|
-
string: address,
|
|
107
|
-
charsStart: isProfileName ? 18 : 4,
|
|
108
|
-
charsEnd: isProfileName ? 0 : 6,
|
|
109
|
-
truncate: isProfileName ? 'end' : 'middle'
|
|
110
|
-
})}
|
|
119
|
+
{formattedAddress}
|
|
111
120
|
</Text>
|
|
112
121
|
)}
|
|
113
122
|
</View>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { Spacing } from '../../utils/ThemeUtil';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
container: {
|
|
6
6
|
flexDirection: 'row',
|
|
7
7
|
height: 40,
|
|
8
|
-
borderRadius:
|
|
8
|
+
borderRadius: BorderRadius.full,
|
|
9
9
|
borderWidth: 1,
|
|
10
10
|
justifyContent: 'center',
|
|
11
11
|
alignItems: 'center',
|
|
@@ -14,7 +14,7 @@ export default StyleSheet.create({
|
|
|
14
14
|
image: {
|
|
15
15
|
height: 24,
|
|
16
16
|
width: 24,
|
|
17
|
-
borderRadius:
|
|
17
|
+
borderRadius: BorderRadius.full,
|
|
18
18
|
borderWidth: 2
|
|
19
19
|
},
|
|
20
20
|
avatarPlaceholder: {
|
|
@@ -35,7 +35,7 @@ export default StyleSheet.create({
|
|
|
35
35
|
alignItems: 'center',
|
|
36
36
|
paddingLeft: Spacing['3xs'],
|
|
37
37
|
paddingRight: Spacing.xs,
|
|
38
|
-
borderRadius:
|
|
38
|
+
borderRadius: BorderRadius.full,
|
|
39
39
|
borderWidth: 1
|
|
40
40
|
},
|
|
41
41
|
address: {
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IconType } from '../../utils/TypesUtil';
|
|
2
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
3
|
+
import { IconBox } from '../wui-icon-box';
|
|
4
|
+
import { Text } from '../../components/wui-text';
|
|
5
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
6
|
+
import styles from './styles';
|
|
7
|
+
|
|
8
|
+
export interface BannerProps {
|
|
9
|
+
icon: IconType;
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function Banner({ icon, text }: BannerProps) {
|
|
14
|
+
const Theme = useTheme();
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<FlexView
|
|
18
|
+
flexDirection="row"
|
|
19
|
+
alignItems="center"
|
|
20
|
+
style={[styles.container, { backgroundColor: Theme['accent-glass-010'] }]}
|
|
21
|
+
>
|
|
22
|
+
<IconBox icon={icon} size="sm" iconColor="fg-200" background style={styles.icon} />
|
|
23
|
+
<Text variant="small-400" color="fg-200" style={styles.text}>
|
|
24
|
+
{text}
|
|
25
|
+
</Text>
|
|
26
|
+
</FlexView>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
padding: Spacing.s,
|
|
7
|
+
borderRadius: BorderRadius.s
|
|
8
|
+
},
|
|
9
|
+
icon: {
|
|
10
|
+
marginRight: Spacing.xs
|
|
11
|
+
},
|
|
12
|
+
text: {
|
|
13
|
+
flex: 1
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -95,16 +95,18 @@ export function Button({
|
|
|
95
95
|
style={[styles.iconLeft, iconStyle]}
|
|
96
96
|
/>
|
|
97
97
|
)}
|
|
98
|
-
{loading
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
{loading && <LoadingSpinner color={iconColor} />}
|
|
99
|
+
{!loading &&
|
|
100
|
+
(typeof children === 'string' ? (
|
|
101
|
+
<Text
|
|
102
|
+
variant={size === 'md' ? 'paragraph-600' : 'small-600'}
|
|
103
|
+
style={[styles.text, themedTextStyle]}
|
|
104
|
+
>
|
|
105
|
+
{children}
|
|
106
|
+
</Text>
|
|
107
|
+
) : (
|
|
108
|
+
children
|
|
109
|
+
))}
|
|
108
110
|
{iconRight && (
|
|
109
111
|
<Icon
|
|
110
112
|
color={iconColor}
|
|
@@ -14,7 +14,7 @@ export const getThemedButtonStyle = (
|
|
|
14
14
|
|
|
15
15
|
if (disabled) {
|
|
16
16
|
return {
|
|
17
|
-
backgroundColor: variant === 'fill' ? theme['gray-glass-
|
|
17
|
+
backgroundColor: variant === 'fill' ? theme['gray-glass-005'] : theme['gray-glass-010'],
|
|
18
18
|
borderColor: theme['gray-glass-002']
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -28,7 +28,7 @@ export const getThemedButtonStyle = (
|
|
|
28
28
|
|
|
29
29
|
return {
|
|
30
30
|
...buttonBaseStyle,
|
|
31
|
-
backgroundColor: variant === 'fill' ? theme['accent-100'] : '
|
|
31
|
+
backgroundColor: variant === 'fill' ? theme['accent-100'] : theme['gray-glass-002']
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
|
-
import { Animated,
|
|
2
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import type { ChipType, ColorType, IconType, SizeType } from '../../utils/TypesUtil';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
5
5
|
import { Text } from '../../components/wui-text';
|
|
@@ -10,7 +10,6 @@ import styles, { getThemedChipStyle, getThemedTextColor } from './styles';
|
|
|
10
10
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
11
11
|
|
|
12
12
|
export interface ChipProps {
|
|
13
|
-
link: string;
|
|
14
13
|
label?: string;
|
|
15
14
|
imageSrc?: string;
|
|
16
15
|
icon?: IconType;
|
|
@@ -18,10 +17,11 @@ export interface ChipProps {
|
|
|
18
17
|
size?: Exclude<SizeType, 'xl' | 'lg' | 'xs' | 'xxs'>;
|
|
19
18
|
disabled?: boolean;
|
|
20
19
|
style?: StyleProp<ViewStyle>;
|
|
20
|
+
onPress?: () => void;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export function Chip({
|
|
24
|
-
|
|
24
|
+
onPress,
|
|
25
25
|
imageSrc,
|
|
26
26
|
icon,
|
|
27
27
|
variant = 'fill',
|
|
@@ -38,10 +38,8 @@ export function Chip({
|
|
|
38
38
|
const themedTextColor = getThemedTextColor(variant, disabled, pressed);
|
|
39
39
|
const iconSize = size === 'md' ? 'sm' : 'xs';
|
|
40
40
|
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
if (supported) Linking.openURL(link);
|
|
44
|
-
});
|
|
41
|
+
const handlePress = () => {
|
|
42
|
+
onPress?.();
|
|
45
43
|
};
|
|
46
44
|
|
|
47
45
|
const onPressIn = () => {
|
|
@@ -78,7 +76,7 @@ export function Chip({
|
|
|
78
76
|
style={[styles.container, styles[`${size}Chip`], { borderColor, backgroundColor }, style]}
|
|
79
77
|
onPressIn={onPressIn}
|
|
80
78
|
onPressOut={onPressOut}
|
|
81
|
-
onPress={
|
|
79
|
+
onPress={handlePress}
|
|
82
80
|
>
|
|
83
81
|
{imageSrc && (
|
|
84
82
|
<Image
|
|
@@ -95,7 +93,7 @@ export function Chip({
|
|
|
95
93
|
variant={size === 'md' ? 'paragraph-600' : 'small-600'}
|
|
96
94
|
style={[styles.link, { color: Theme[themedTextColor] }]}
|
|
97
95
|
>
|
|
98
|
-
{label
|
|
96
|
+
{label}
|
|
99
97
|
</Text>
|
|
100
98
|
{icon && (
|
|
101
99
|
<Icon
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Text } from '../../components/wui-text';
|
|
2
|
+
import { NetworkImage } from '../wui-network-image';
|
|
3
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
4
|
+
import { ListItem } from '../wui-list-item';
|
|
5
|
+
import { StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
6
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
+
|
|
8
|
+
export interface CompatibleNetworkProps {
|
|
9
|
+
text: string;
|
|
10
|
+
onPress: () => void;
|
|
11
|
+
networkImages: string[];
|
|
12
|
+
imageHeaders: Record<string, string>;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const offset = [20, 15, 10, 5, 0];
|
|
17
|
+
const zIndex = [5, 4, 3, 2, 1];
|
|
18
|
+
|
|
19
|
+
export function CompatibleNetwork({
|
|
20
|
+
text,
|
|
21
|
+
onPress,
|
|
22
|
+
networkImages,
|
|
23
|
+
imageHeaders,
|
|
24
|
+
style
|
|
25
|
+
}: CompatibleNetworkProps) {
|
|
26
|
+
const Theme = useTheme();
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<ListItem
|
|
30
|
+
onPress={onPress}
|
|
31
|
+
style={[styles.container, style]}
|
|
32
|
+
contentStyle={styles.contentContainer}
|
|
33
|
+
chevron
|
|
34
|
+
>
|
|
35
|
+
<Text color="fg-200" variant="small-400">
|
|
36
|
+
{text}
|
|
37
|
+
</Text>
|
|
38
|
+
<FlexView flexDirection="row" justifyContent="center" alignItems="center">
|
|
39
|
+
{networkImages?.map((image, index) => (
|
|
40
|
+
<NetworkImage
|
|
41
|
+
size="xs"
|
|
42
|
+
key={image}
|
|
43
|
+
imageSrc={image}
|
|
44
|
+
imageHeaders={imageHeaders}
|
|
45
|
+
borderColor={Theme['bg-200']}
|
|
46
|
+
borderWidth={2}
|
|
47
|
+
style={{ left: offset[index], zIndex: zIndex[index] }}
|
|
48
|
+
/>
|
|
49
|
+
))}
|
|
50
|
+
</FlexView>
|
|
51
|
+
</ListItem>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const styles = StyleSheet.create({
|
|
56
|
+
container: {
|
|
57
|
+
height: 48
|
|
58
|
+
},
|
|
59
|
+
contentContainer: {
|
|
60
|
+
flexDirection: 'row',
|
|
61
|
+
justifyContent: 'space-between',
|
|
62
|
+
paddingRight: 0
|
|
63
|
+
}
|
|
64
|
+
});
|