@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,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Pressable } from 'react-native';
|
|
2
|
-
import { Icon } from '../../components/wui-icon';
|
|
3
|
-
import { Image } from '../../components/wui-image';
|
|
4
|
-
import { Text } from '../../components/wui-text';
|
|
5
|
-
import { useTheme } from '../../hooks/useTheme';
|
|
6
|
-
import { FlexView } from '../../layout/wui-flex';
|
|
7
|
-
import { UiUtil } from '../../utils/UiUtil';
|
|
8
|
-
import styles from './styles';
|
|
9
|
-
|
|
10
|
-
export interface ListTokenProps {
|
|
11
|
-
imageSrc: string;
|
|
12
|
-
networkSrc?: string;
|
|
13
|
-
name: string;
|
|
14
|
-
value?: number;
|
|
15
|
-
amount?: string;
|
|
16
|
-
currency: string;
|
|
17
|
-
onPress?: () => void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function ListToken({
|
|
21
|
-
imageSrc,
|
|
22
|
-
networkSrc,
|
|
23
|
-
name,
|
|
24
|
-
value,
|
|
25
|
-
amount,
|
|
26
|
-
currency,
|
|
27
|
-
onPress
|
|
28
|
-
}: ListTokenProps) {
|
|
29
|
-
const Theme = useTheme();
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<Pressable onPress={onPress}>
|
|
33
|
-
<FlexView
|
|
34
|
-
flexDirection="row"
|
|
35
|
-
justifyContent="space-between"
|
|
36
|
-
alignItems="center"
|
|
37
|
-
padding={['2xs', 'm', '2xs', 'xs']}
|
|
38
|
-
>
|
|
39
|
-
<FlexView flexDirection="row" alignItems="center">
|
|
40
|
-
{imageSrc ? (
|
|
41
|
-
<Image
|
|
42
|
-
source={imageSrc}
|
|
43
|
-
style={[styles.image, { backgroundColor: Theme['gray-glass-005'] }]}
|
|
44
|
-
/>
|
|
45
|
-
) : (
|
|
46
|
-
<FlexView
|
|
47
|
-
style={[styles.image, { backgroundColor: Theme['gray-glass-005'] }]}
|
|
48
|
-
alignItems="center"
|
|
49
|
-
justifyContent="center"
|
|
50
|
-
>
|
|
51
|
-
<Icon name="coinPlaceholder" size="lg" color="fg-200" />
|
|
52
|
-
</FlexView>
|
|
53
|
-
)}
|
|
54
|
-
<FlexView
|
|
55
|
-
alignItems="center"
|
|
56
|
-
justifyContent="center"
|
|
57
|
-
style={[
|
|
58
|
-
styles.networkImageContainer,
|
|
59
|
-
{ borderColor: Theme['bg-100'], backgroundColor: Theme['bg-200'] }
|
|
60
|
-
]}
|
|
61
|
-
>
|
|
62
|
-
{networkSrc ? (
|
|
63
|
-
<Image source={networkSrc} style={styles.networkImage} />
|
|
64
|
-
) : (
|
|
65
|
-
<Icon name="networkPlaceholder" size="xxs" color="fg-200" />
|
|
66
|
-
)}
|
|
67
|
-
</FlexView>
|
|
68
|
-
<FlexView padding={['0', 's', '0', 's']}>
|
|
69
|
-
<Text color="fg-100" variant="paragraph-500">
|
|
70
|
-
{name}
|
|
71
|
-
</Text>
|
|
72
|
-
<Text variant="small-400" color="fg-200">
|
|
73
|
-
{UiUtil.formatNumberToLocalString(amount, 4)} {currency}
|
|
74
|
-
</Text>
|
|
75
|
-
</FlexView>
|
|
76
|
-
</FlexView>
|
|
77
|
-
<Text color="fg-100" variant="paragraph-500">
|
|
78
|
-
${value?.toFixed(2) ?? '0.00'}
|
|
79
|
-
</Text>
|
|
80
|
-
</FlexView>
|
|
81
|
-
</Pressable>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { BorderRadius, WalletImageSize } from '../../utils/ThemeUtil';
|
|
3
|
-
|
|
4
|
-
export default StyleSheet.create({
|
|
5
|
-
image: {
|
|
6
|
-
height: WalletImageSize.sm,
|
|
7
|
-
width: WalletImageSize.sm,
|
|
8
|
-
borderRadius: BorderRadius.full
|
|
9
|
-
},
|
|
10
|
-
networkImageContainer: {
|
|
11
|
-
position: 'absolute',
|
|
12
|
-
bottom: -2,
|
|
13
|
-
left: 24,
|
|
14
|
-
borderWidth: 2,
|
|
15
|
-
borderRadius: BorderRadius.full,
|
|
16
|
-
width: 18,
|
|
17
|
-
height: 18
|
|
18
|
-
},
|
|
19
|
-
networkImage: {
|
|
20
|
-
width: 14,
|
|
21
|
-
height: 14,
|
|
22
|
-
borderRadius: BorderRadius.full
|
|
23
|
-
}
|
|
24
|
-
});
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { type TransactionImage, type TransactionStatus } from '@reown/appkit-common-react-native';
|
|
2
|
-
|
|
3
|
-
import type { TransactionType } from '../../utils/TypesUtil';
|
|
4
|
-
import { Text } from '../../components/wui-text';
|
|
5
|
-
import { FlexView } from '../../layout/wui-flex';
|
|
6
|
-
import { IconBox } from '../wui-icon-box';
|
|
7
|
-
import { TransactionVisual } from '../wui-transaction-visual';
|
|
8
|
-
import { getIcon, getTypeLabel, getIconColor } from './utils';
|
|
9
|
-
import styles from './styles';
|
|
10
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
11
|
-
|
|
12
|
-
export interface ListTransactionProps {
|
|
13
|
-
date: string;
|
|
14
|
-
status?: TransactionStatus;
|
|
15
|
-
type?: TransactionType;
|
|
16
|
-
descriptions?: string[];
|
|
17
|
-
images?: TransactionImage[];
|
|
18
|
-
networkSrc?: string;
|
|
19
|
-
style?: StyleProp<ViewStyle>;
|
|
20
|
-
isAllNFT?: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function ListTransaction({
|
|
24
|
-
date,
|
|
25
|
-
type,
|
|
26
|
-
descriptions,
|
|
27
|
-
images,
|
|
28
|
-
networkSrc,
|
|
29
|
-
style,
|
|
30
|
-
isAllNFT,
|
|
31
|
-
status
|
|
32
|
-
}: ListTransactionProps) {
|
|
33
|
-
const joinSymbol = type === 'trade' ? ' → ' : ' - ';
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<FlexView flexDirection="row" alignItems="center" style={style}>
|
|
37
|
-
<TransactionVisual images={images} networkSrc={networkSrc} isAllNFT={isAllNFT} />
|
|
38
|
-
<FlexView flexDirection="row" alignItems="center" style={styles.middleContainer}>
|
|
39
|
-
<FlexView justifyContent="center" alignItems="flex-start">
|
|
40
|
-
<FlexView flexDirection="row" alignItems="center">
|
|
41
|
-
{type && (
|
|
42
|
-
<IconBox
|
|
43
|
-
icon={getIcon(type)}
|
|
44
|
-
size="sm"
|
|
45
|
-
iconColor={getIconColor(status)}
|
|
46
|
-
background
|
|
47
|
-
border
|
|
48
|
-
borderColor="bg-100"
|
|
49
|
-
/>
|
|
50
|
-
)}
|
|
51
|
-
<Text variant="paragraph-500" color="fg-100">
|
|
52
|
-
{getTypeLabel(type)}
|
|
53
|
-
</Text>
|
|
54
|
-
</FlexView>
|
|
55
|
-
<Text variant="small-400" color="fg-200" numberOfLines={1} ellipsizeMode="tail">
|
|
56
|
-
{descriptions?.join(joinSymbol)}
|
|
57
|
-
</Text>
|
|
58
|
-
</FlexView>
|
|
59
|
-
</FlexView>
|
|
60
|
-
<Text variant="micro-700" color="fg-300" style={styles.date}>
|
|
61
|
-
{date}
|
|
62
|
-
</Text>
|
|
63
|
-
</FlexView>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { TransactionStatus } from '@reown/appkit-common-react-native';
|
|
2
|
-
import type { IconType, TransactionType } from '../../utils/TypesUtil';
|
|
3
|
-
|
|
4
|
-
export const getIcon = (type: TransactionType): IconType => {
|
|
5
|
-
switch (type) {
|
|
6
|
-
case 'approve':
|
|
7
|
-
case 'execute':
|
|
8
|
-
return 'checkmark';
|
|
9
|
-
case 'repay':
|
|
10
|
-
case 'send':
|
|
11
|
-
case 'stake':
|
|
12
|
-
case 'withdraw':
|
|
13
|
-
return 'arrowTop';
|
|
14
|
-
case 'burn':
|
|
15
|
-
case 'cancel':
|
|
16
|
-
return 'close';
|
|
17
|
-
case 'trade':
|
|
18
|
-
return 'swapHorizontal';
|
|
19
|
-
case 'deploy':
|
|
20
|
-
return 'arrowRight';
|
|
21
|
-
default:
|
|
22
|
-
return 'arrowBottom';
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//Utils
|
|
27
|
-
export const getIconColor = (status?: TransactionStatus) => {
|
|
28
|
-
switch (status) {
|
|
29
|
-
case 'confirmed':
|
|
30
|
-
return 'success-100';
|
|
31
|
-
case 'failed':
|
|
32
|
-
return 'error-100';
|
|
33
|
-
case 'pending':
|
|
34
|
-
return 'fg-200';
|
|
35
|
-
default:
|
|
36
|
-
return 'fg-200';
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const getTypeLabel = (type?: TransactionType) => {
|
|
41
|
-
if (!type) {
|
|
42
|
-
return 'Unknown';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
switch (type) {
|
|
46
|
-
case 'approve':
|
|
47
|
-
return 'Approved';
|
|
48
|
-
case 'bought':
|
|
49
|
-
return 'Bought';
|
|
50
|
-
case 'borrow':
|
|
51
|
-
return 'Borrowed';
|
|
52
|
-
case 'burn':
|
|
53
|
-
return 'Burnt';
|
|
54
|
-
case 'cancel':
|
|
55
|
-
return 'Canceled';
|
|
56
|
-
case 'claim':
|
|
57
|
-
return 'Claimed';
|
|
58
|
-
case 'deploy':
|
|
59
|
-
return 'Deployed';
|
|
60
|
-
case 'deposit':
|
|
61
|
-
return 'Deposited';
|
|
62
|
-
case 'execute':
|
|
63
|
-
return 'Executed';
|
|
64
|
-
case 'mint':
|
|
65
|
-
return 'Minted';
|
|
66
|
-
case 'receive':
|
|
67
|
-
return 'Received';
|
|
68
|
-
case 'repay':
|
|
69
|
-
return 'Repaid';
|
|
70
|
-
case 'send':
|
|
71
|
-
return 'Sent';
|
|
72
|
-
case 'stake':
|
|
73
|
-
return 'Staked';
|
|
74
|
-
case 'trade':
|
|
75
|
-
return 'Swapped';
|
|
76
|
-
case 'unstake':
|
|
77
|
-
return 'Unstaked';
|
|
78
|
-
case 'withdraw':
|
|
79
|
-
return 'Withdrawn';
|
|
80
|
-
default:
|
|
81
|
-
return 'Unknown';
|
|
82
|
-
}
|
|
83
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Balance } from '@reown/appkit-common-react-native';
|
|
2
|
-
import { Image } from '../../components/wui-image';
|
|
3
|
-
import { Text } from '../../components/wui-text';
|
|
4
|
-
import { Button } from '../wui-button';
|
|
5
|
-
import styles from './styles';
|
|
6
|
-
|
|
7
|
-
export interface TokenButtonProps {
|
|
8
|
-
onPress?: () => void;
|
|
9
|
-
token?: Balance;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function TokenButton({ token, onPress }: TokenButtonProps) {
|
|
13
|
-
if (!token) {
|
|
14
|
-
return (
|
|
15
|
-
<Button variant="accent" style={styles.selectButton} size="sm" onPress={onPress}>
|
|
16
|
-
<Text variant="small-600" color="accent-100">
|
|
17
|
-
Select token
|
|
18
|
-
</Text>
|
|
19
|
-
</Button>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<Button variant="shade" style={styles.container} size="sm" onPress={onPress}>
|
|
25
|
-
{token?.iconUrl && <Image source={token?.iconUrl} style={styles.image} />}
|
|
26
|
-
{token?.symbol && <Text>{token.symbol}</Text>}
|
|
27
|
-
</Button>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
-
|
|
4
|
-
export default StyleSheet.create({
|
|
5
|
-
selectButton: {
|
|
6
|
-
height: 40,
|
|
7
|
-
paddingHorizontal: Spacing.m
|
|
8
|
-
},
|
|
9
|
-
container: {
|
|
10
|
-
height: 40
|
|
11
|
-
},
|
|
12
|
-
image: {
|
|
13
|
-
width: 24,
|
|
14
|
-
height: 24,
|
|
15
|
-
borderRadius: BorderRadius.full,
|
|
16
|
-
marginRight: Spacing['2xs']
|
|
17
|
-
}
|
|
18
|
-
});
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { TransactionImage } from '@reown/appkit-common-react-native';
|
|
2
|
-
|
|
3
|
-
import { FlexView } from '../../layout/wui-flex';
|
|
4
|
-
import { Icon } from '../../components/wui-icon';
|
|
5
|
-
import { Image } from '../../components/wui-image';
|
|
6
|
-
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
-
import styles from './styles';
|
|
8
|
-
|
|
9
|
-
export interface TransactionVisualProps {
|
|
10
|
-
images?: TransactionImage[];
|
|
11
|
-
networkSrc?: string;
|
|
12
|
-
isAllNFT?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function TransactionVisual({ images, networkSrc, isAllNFT }: TransactionVisualProps) {
|
|
16
|
-
const Theme = useTheme();
|
|
17
|
-
const backgroundColor = Theme['bg-200'];
|
|
18
|
-
const isFirstNFT = Boolean(images?.[0]?.type === 'NFT');
|
|
19
|
-
const filteredImages = images?.filter(image => image.url);
|
|
20
|
-
const [firstImage, secondImage] = filteredImages ?? [];
|
|
21
|
-
const hasOneImage = filteredImages?.length === 1;
|
|
22
|
-
const hasTwoImages = filteredImages && filteredImages?.length > 1;
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<FlexView>
|
|
26
|
-
{!filteredImages?.length && (
|
|
27
|
-
<FlexView
|
|
28
|
-
alignItems="center"
|
|
29
|
-
justifyContent="center"
|
|
30
|
-
style={[styles.image, { backgroundColor }]}
|
|
31
|
-
>
|
|
32
|
-
<Icon name={isFirstNFT ? 'nftPlaceholder' : 'coinPlaceholder'} size="sm" color="fg-200" />
|
|
33
|
-
</FlexView>
|
|
34
|
-
)}
|
|
35
|
-
{hasOneImage && firstImage?.url && (
|
|
36
|
-
<Image
|
|
37
|
-
source={firstImage.url}
|
|
38
|
-
style={[styles.image, firstImage?.type === 'NFT' && styles.imageNft, { backgroundColor }]}
|
|
39
|
-
/>
|
|
40
|
-
)}
|
|
41
|
-
{hasTwoImages && firstImage?.url && secondImage?.url && (
|
|
42
|
-
<FlexView flexDirection="row" padding={['0', 's', '0', '0']}>
|
|
43
|
-
<FlexView style={styles.halfContainer}>
|
|
44
|
-
<Image
|
|
45
|
-
source={firstImage.url}
|
|
46
|
-
style={[styles.image, isAllNFT && styles.imageNft, { backgroundColor }]}
|
|
47
|
-
/>
|
|
48
|
-
</FlexView>
|
|
49
|
-
<FlexView style={styles.halfContainer}>
|
|
50
|
-
<Image
|
|
51
|
-
source={secondImage.url}
|
|
52
|
-
style={[
|
|
53
|
-
styles.image,
|
|
54
|
-
styles.halfRight,
|
|
55
|
-
isAllNFT && styles.imageNft,
|
|
56
|
-
{ backgroundColor }
|
|
57
|
-
]}
|
|
58
|
-
/>
|
|
59
|
-
</FlexView>
|
|
60
|
-
</FlexView>
|
|
61
|
-
)}
|
|
62
|
-
<FlexView
|
|
63
|
-
alignItems="center"
|
|
64
|
-
justifyContent="center"
|
|
65
|
-
style={[
|
|
66
|
-
styles.networkImageContainer,
|
|
67
|
-
{ borderColor: Theme['bg-100'], backgroundColor: Theme['bg-200'] }
|
|
68
|
-
]}
|
|
69
|
-
>
|
|
70
|
-
{networkSrc ? (
|
|
71
|
-
<Image source={networkSrc} style={styles.networkImage} />
|
|
72
|
-
) : (
|
|
73
|
-
<Icon name="networkPlaceholder" size="xxs" color="fg-200" />
|
|
74
|
-
)}
|
|
75
|
-
</FlexView>
|
|
76
|
-
</FlexView>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
-
|
|
4
|
-
export default StyleSheet.create({
|
|
5
|
-
image: {
|
|
6
|
-
height: 40,
|
|
7
|
-
width: 40,
|
|
8
|
-
borderRadius: BorderRadius.full,
|
|
9
|
-
marginRight: Spacing.s
|
|
10
|
-
},
|
|
11
|
-
imageNft: {
|
|
12
|
-
borderRadius: BorderRadius.xxs
|
|
13
|
-
},
|
|
14
|
-
halfContainer: {
|
|
15
|
-
overflow: 'hidden',
|
|
16
|
-
width: 20,
|
|
17
|
-
marginRight: 2
|
|
18
|
-
},
|
|
19
|
-
halfRight: {
|
|
20
|
-
left: -20
|
|
21
|
-
},
|
|
22
|
-
networkImageContainer: {
|
|
23
|
-
position: 'absolute',
|
|
24
|
-
bottom: -2,
|
|
25
|
-
left: 24,
|
|
26
|
-
borderWidth: 2,
|
|
27
|
-
borderRadius: BorderRadius.full,
|
|
28
|
-
width: 18,
|
|
29
|
-
height: 18
|
|
30
|
-
},
|
|
31
|
-
networkImage: {
|
|
32
|
-
width: 14,
|
|
33
|
-
height: 14,
|
|
34
|
-
borderRadius: BorderRadius.full
|
|
35
|
-
}
|
|
36
|
-
});
|