@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
|
@@ -5,7 +5,7 @@ import { Image } from '../../components/wui-image';
|
|
|
5
5
|
import { LoadingSpinner } from '../../components/wui-loading-spinner';
|
|
6
6
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
7
7
|
import { useTheme } from '../../hooks/useTheme';
|
|
8
|
-
import type {
|
|
8
|
+
import type { IconType } from '../../utils/TypesUtil';
|
|
9
9
|
import { IconBox } from '../wui-icon-box';
|
|
10
10
|
import styles from './styles';
|
|
11
11
|
|
|
@@ -13,9 +13,8 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
13
13
|
|
|
14
14
|
export interface ListItemProps {
|
|
15
15
|
icon?: IconType;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
iconBorderColor?: ColorType;
|
|
16
|
+
iconVariant?: 'blue' | 'overlay';
|
|
17
|
+
variant?: 'image' | 'icon';
|
|
19
18
|
imageSrc?: string;
|
|
20
19
|
imageHeaders?: Record<string, string>;
|
|
21
20
|
chevron?: boolean;
|
|
@@ -24,24 +23,21 @@ export interface ListItemProps {
|
|
|
24
23
|
onPress?: () => void;
|
|
25
24
|
children?: ReactNode;
|
|
26
25
|
style?: StyleProp<ViewStyle>;
|
|
27
|
-
contentStyle?: StyleProp<ViewStyle>;
|
|
28
26
|
testID?: string;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
export function ListItem({
|
|
32
30
|
children,
|
|
33
31
|
icon,
|
|
32
|
+
variant,
|
|
34
33
|
imageSrc,
|
|
35
34
|
imageHeaders,
|
|
36
|
-
|
|
37
|
-
iconBackgroundColor,
|
|
38
|
-
iconBorderColor = 'gray-glass-005',
|
|
35
|
+
iconVariant = 'blue',
|
|
39
36
|
chevron,
|
|
40
37
|
loading,
|
|
41
38
|
disabled,
|
|
42
39
|
onPress,
|
|
43
40
|
style,
|
|
44
|
-
contentStyle,
|
|
45
41
|
testID
|
|
46
42
|
}: ListItemProps) {
|
|
47
43
|
const Theme = useTheme();
|
|
@@ -51,7 +47,7 @@ export function ListItem({
|
|
|
51
47
|
);
|
|
52
48
|
|
|
53
49
|
function visualTemplate() {
|
|
54
|
-
if (imageSrc) {
|
|
50
|
+
if (variant === 'image' && imageSrc) {
|
|
55
51
|
return (
|
|
56
52
|
<View style={[styles.imageContainer, { borderColor: Theme['gray-glass-005'] }]}>
|
|
57
53
|
<Image
|
|
@@ -61,15 +57,18 @@ export function ListItem({
|
|
|
61
57
|
/>
|
|
62
58
|
</View>
|
|
63
59
|
);
|
|
64
|
-
} else if (icon) {
|
|
60
|
+
} else if (variant === 'icon' && icon) {
|
|
61
|
+
const iconColor = iconVariant === 'blue' ? 'accent-100' : 'fg-200';
|
|
62
|
+
const borderColor = iconVariant === 'blue' ? 'accent-glass-005' : 'gray-glass-005';
|
|
63
|
+
|
|
65
64
|
return (
|
|
66
|
-
<View style={[styles.imageContainer, { borderColor: Theme[
|
|
65
|
+
<View style={[styles.imageContainer, { borderColor: Theme[borderColor] }]}>
|
|
67
66
|
<IconBox
|
|
68
67
|
icon={icon}
|
|
69
68
|
iconColor={iconColor}
|
|
70
69
|
size="md"
|
|
71
70
|
background
|
|
72
|
-
backgroundColor=
|
|
71
|
+
backgroundColor="gray-glass-010"
|
|
73
72
|
/>
|
|
74
73
|
</View>
|
|
75
74
|
);
|
|
@@ -82,7 +81,7 @@ export function ListItem({
|
|
|
82
81
|
if (loading) {
|
|
83
82
|
return <LoadingSpinner color="fg-200" size="lg" style={styles.rightIcon} />;
|
|
84
83
|
} else if (chevron) {
|
|
85
|
-
return <Icon name="chevronRight" size="md" color="fg-
|
|
84
|
+
return <Icon name="chevronRight" size="md" color="fg-150" style={styles.rightIcon} />;
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
return null;
|
|
@@ -102,7 +101,7 @@ export function ListItem({
|
|
|
102
101
|
testID={testID}
|
|
103
102
|
>
|
|
104
103
|
{visualTemplate()}
|
|
105
|
-
<View style={
|
|
104
|
+
<View style={styles.content}>{children}</View>
|
|
106
105
|
{rightTemplate()}
|
|
107
106
|
</AnimatedPressable>
|
|
108
107
|
);
|
|
@@ -13,13 +13,12 @@ export default StyleSheet.create({
|
|
|
13
13
|
content: {
|
|
14
14
|
flexDirection: 'row',
|
|
15
15
|
flexGrow: 1,
|
|
16
|
-
paddingHorizontal: Spacing.s
|
|
17
|
-
alignItems: 'center'
|
|
16
|
+
paddingHorizontal: Spacing.s
|
|
18
17
|
},
|
|
19
18
|
imageContainer: {
|
|
20
19
|
width: 36,
|
|
21
20
|
height: 36,
|
|
22
|
-
borderRadius:
|
|
21
|
+
borderRadius: 100,
|
|
23
22
|
borderWidth: 2,
|
|
24
23
|
alignItems: 'center',
|
|
25
24
|
justifyContent: 'center'
|
|
@@ -27,7 +26,7 @@ export default StyleSheet.create({
|
|
|
27
26
|
image: {
|
|
28
27
|
width: 32,
|
|
29
28
|
height: 32,
|
|
30
|
-
borderRadius:
|
|
29
|
+
borderRadius: 100
|
|
31
30
|
},
|
|
32
31
|
disabledImage: {
|
|
33
32
|
opacity: 0.4
|
|
@@ -1,50 +1,47 @@
|
|
|
1
|
-
import { Animated, Pressable,
|
|
1
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import { Image } from '../../components/wui-image';
|
|
3
3
|
import { Text } from '../../components/wui-text';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
5
5
|
import { IconBox } from '../wui-icon-box';
|
|
6
|
-
import { LoadingSpinner } from '../../components/wui-loading-spinner';
|
|
7
|
-
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
8
6
|
|
|
9
7
|
import styles from './styles';
|
|
8
|
+
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
9
|
+
import { LoadingSpinner } from '../../components/wui-loading-spinner';
|
|
10
10
|
|
|
11
11
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
12
12
|
|
|
13
13
|
export interface NetworkButtonProps {
|
|
14
|
-
children: string
|
|
14
|
+
children: string;
|
|
15
15
|
onPress: () => void;
|
|
16
|
-
background?: boolean;
|
|
17
|
-
disabled?: boolean;
|
|
18
16
|
imageSrc?: string;
|
|
19
17
|
imageHeaders?: Record<string, string>;
|
|
20
|
-
|
|
18
|
+
disabled?: boolean;
|
|
21
19
|
style?: StyleProp<ViewStyle>;
|
|
20
|
+
loading?: boolean;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export function NetworkButton({
|
|
25
|
-
children,
|
|
26
|
-
onPress,
|
|
27
|
-
background = true,
|
|
28
|
-
disabled,
|
|
29
24
|
imageSrc,
|
|
30
25
|
imageHeaders,
|
|
26
|
+
disabled,
|
|
27
|
+
onPress,
|
|
28
|
+
style,
|
|
31
29
|
loading,
|
|
32
|
-
|
|
30
|
+
children
|
|
33
31
|
}: NetworkButtonProps) {
|
|
34
32
|
const Theme = useTheme();
|
|
35
33
|
const textColor = disabled ? 'fg-300' : 'fg-100';
|
|
36
34
|
|
|
37
35
|
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
38
|
-
|
|
36
|
+
Theme['gray-glass-005'],
|
|
39
37
|
Theme['gray-glass-010']
|
|
40
38
|
);
|
|
41
39
|
|
|
42
40
|
const backgroundColor = disabled ? Theme['gray-glass-015'] : animatedValue;
|
|
43
|
-
const borderColor = background ? Theme['gray-glass-005'] : 'transparent';
|
|
44
41
|
|
|
45
42
|
return (
|
|
46
43
|
<AnimatedPressable
|
|
47
|
-
style={[styles.container, { backgroundColor, borderColor }, style]}
|
|
44
|
+
style={[styles.container, { backgroundColor, borderColor: Theme['gray-glass-005'] }, style]}
|
|
48
45
|
onPress={onPress}
|
|
49
46
|
onPressIn={setEndValue}
|
|
50
47
|
onPressOut={setStartValue}
|
|
@@ -58,13 +55,9 @@ export function NetworkButton({
|
|
|
58
55
|
imageHeaders={imageHeaders}
|
|
59
56
|
borderColor={Theme['gray-glass-005']}
|
|
60
57
|
/>
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</Text>
|
|
65
|
-
) : (
|
|
66
|
-
<View style={styles.children}>{children}</View>
|
|
67
|
-
)}
|
|
58
|
+
<Text style={styles.text} variant="paragraph-600" color={textColor}>
|
|
59
|
+
{children}
|
|
60
|
+
</Text>
|
|
68
61
|
</AnimatedPressable>
|
|
69
62
|
);
|
|
70
63
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { Spacing } from '../../utils/ThemeUtil';
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
container: {
|
|
@@ -8,10 +8,10 @@ export default StyleSheet.create({
|
|
|
8
8
|
alignItems: 'center',
|
|
9
9
|
justifyContent: 'center',
|
|
10
10
|
borderWidth: 1,
|
|
11
|
-
borderRadius:
|
|
11
|
+
borderRadius: 100,
|
|
12
12
|
paddingHorizontal: Spacing['2xs']
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
text: {
|
|
15
15
|
paddingHorizontal: Spacing['2xs']
|
|
16
16
|
},
|
|
17
17
|
loader: {
|
|
@@ -20,7 +20,7 @@ export default StyleSheet.create({
|
|
|
20
20
|
image: {
|
|
21
21
|
height: 24,
|
|
22
22
|
width: 24,
|
|
23
|
-
borderRadius:
|
|
23
|
+
borderRadius: 100,
|
|
24
24
|
borderWidth: 2,
|
|
25
25
|
paddingLeft: Spacing['4xs']
|
|
26
26
|
},
|
|
@@ -1,85 +1,49 @@
|
|
|
1
1
|
import { Path, Svg, Image, Defs, Pattern } from 'react-native-svg';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
2
|
import { useTheme } from '../../hooks/useTheme';
|
|
4
3
|
import type { SizeType } from '../../utils/TypesUtil';
|
|
5
|
-
import {
|
|
6
|
-
import { FlexView } from '../../layout/wui-flex';
|
|
7
|
-
import { PathLg, PathNormal, PathSmall, PathXS } from './styles';
|
|
4
|
+
import { PathLg, PathNormal } from './styles';
|
|
8
5
|
|
|
9
6
|
export interface NetworkImageProps {
|
|
10
7
|
imageSrc?: string;
|
|
11
8
|
imageHeaders?: Record<string, string>;
|
|
12
9
|
selected?: boolean;
|
|
13
|
-
size?: Exclude<SizeType, 'xl' | 'xxs'>;
|
|
10
|
+
size?: Exclude<SizeType, 'xl' | 'sm' | 'xs' | 'xxs'>;
|
|
14
11
|
disabled?: boolean;
|
|
15
|
-
style?: StyleProp<ViewStyle>;
|
|
16
|
-
borderColor?: string;
|
|
17
|
-
borderWidth?: number;
|
|
18
12
|
}
|
|
19
13
|
|
|
20
|
-
const sizeToPath = {
|
|
21
|
-
lg: PathLg,
|
|
22
|
-
md: PathNormal,
|
|
23
|
-
sm: PathSmall,
|
|
24
|
-
xs: PathXS
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const sizeToHeight = {
|
|
28
|
-
lg: 96,
|
|
29
|
-
md: 56,
|
|
30
|
-
sm: 40,
|
|
31
|
-
xs: 20
|
|
32
|
-
};
|
|
33
|
-
|
|
34
14
|
export function NetworkImage({
|
|
35
15
|
imageSrc,
|
|
36
16
|
imageHeaders,
|
|
37
17
|
disabled,
|
|
38
18
|
selected,
|
|
39
|
-
size = 'md'
|
|
40
|
-
style,
|
|
41
|
-
borderColor,
|
|
42
|
-
borderWidth = 1
|
|
19
|
+
size = 'md'
|
|
43
20
|
}: NetworkImageProps) {
|
|
44
21
|
const Theme = useTheme();
|
|
22
|
+
const isLg = size === 'lg';
|
|
23
|
+
const svgWidth = isLg ? 96 : 56;
|
|
24
|
+
const svgHeight = isLg ? 96 : 56;
|
|
45
25
|
const svgStroke = selected ? Theme['accent-100'] : Theme['gray-glass-010'];
|
|
46
26
|
const opacity = disabled ? 0.5 : 1;
|
|
47
27
|
|
|
48
28
|
return (
|
|
49
|
-
<Svg
|
|
50
|
-
width={sizeToHeight[size]}
|
|
51
|
-
height={sizeToHeight[size]}
|
|
52
|
-
stroke={borderColor ?? svgStroke}
|
|
53
|
-
strokeWidth={borderWidth}
|
|
54
|
-
style={style}
|
|
55
|
-
>
|
|
29
|
+
<Svg width={svgWidth} height={svgHeight} stroke={svgStroke} strokeWidth={1}>
|
|
56
30
|
<Defs>
|
|
57
|
-
<Pattern id="image-pattern">
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<FlexView
|
|
67
|
-
alignItems="center"
|
|
68
|
-
justifyContent="center"
|
|
69
|
-
// eslint-disable-next-line react-native/no-inline-styles
|
|
70
|
-
style={{
|
|
71
|
-
height: sizeToHeight[size],
|
|
72
|
-
width: sizeToHeight[size],
|
|
73
|
-
backgroundColor: 'transparent'
|
|
74
|
-
}}
|
|
75
|
-
>
|
|
76
|
-
<Icon name="networkPlaceholder" size={size} color="fg-200" />
|
|
77
|
-
</FlexView>
|
|
78
|
-
)}
|
|
31
|
+
<Pattern id="image-pattern" x="0" y="0" width="1" height="1">
|
|
32
|
+
<Image
|
|
33
|
+
height={svgHeight}
|
|
34
|
+
width={svgWidth}
|
|
35
|
+
x="0"
|
|
36
|
+
y="0"
|
|
37
|
+
opacity={opacity}
|
|
38
|
+
href={{ uri: imageSrc, headers: imageHeaders }}
|
|
39
|
+
/>
|
|
79
40
|
</Pattern>
|
|
80
41
|
</Defs>
|
|
81
|
-
|
|
82
|
-
|
|
42
|
+
<Path
|
|
43
|
+
d={`${isLg ? PathLg : PathNormal}`}
|
|
44
|
+
opacity={opacity}
|
|
45
|
+
fill={imageSrc ? 'url(#image-pattern)' : Theme['gray-glass-005']}
|
|
46
|
+
/>
|
|
83
47
|
</Svg>
|
|
84
48
|
);
|
|
85
49
|
}
|
|
@@ -3,9 +3,3 @@ export const PathLg =
|
|
|
3
3
|
|
|
4
4
|
export const PathNormal =
|
|
5
5
|
'M24.0002 2.34328C26.4754 0.914219 29.525 0.914219 32.0002 2.34328L48.2489 11.7245C50.7241 13.1535 52.2489 15.7946 52.2489 18.6527V37.4151C52.2489 40.2732 50.7241 42.9142 48.2489 44.3433L32.0002 53.7245C29.525 55.1535 26.4754 55.1535 24.0002 53.7245L7.75146 44.3433C5.27625 42.9142 3.75146 40.2732 3.75146 37.4151V18.6527C3.75146 15.7946 5.27626 13.1535 7.75146 11.7245L24.0002 2.34328Z';
|
|
6
|
-
|
|
7
|
-
export const PathSmall =
|
|
8
|
-
'M17.1428 1.67377C18.9108 0.653013 21.0891 0.653014 22.8571 1.67377L34.4633 8.37463C36.2313 9.39539 37.3205 11.2818 37.3205 13.3233V26.7251C37.3205 28.7666 36.2313 30.653 34.4633 31.6738L22.8571 38.3746C21.0891 39.3954 18.9108 39.3954 17.1428 38.3746L5.53659 31.6738C3.76858 30.653 2.67944 28.7666 2.67944 26.7251V13.3233C2.67944 11.2818 3.76858 9.39539 5.53659 8.37463L17.1428 1.67377Z';
|
|
9
|
-
|
|
10
|
-
export const PathXS =
|
|
11
|
-
'M8.57153 0.836886C9.45553 0.326507 10.5447 0.326507 11.4287 0.836886L17.2318 4.18731C18.1158 4.69769 18.6604 5.64091 18.6604 6.66167V13.3625C18.6604 14.3833 18.1158 15.3265 17.2318 15.8369L11.4287 19.1873C10.5447 19.6977 9.45553 19.6977 8.57153 19.1873L2.76841 15.8369C1.88441 15.3265 1.33984 14.3833 1.33984 13.3625V6.66167C1.33984 5.64091 1.88441 4.69769 2.76841 4.18731L8.57153 0.836886Z';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { View
|
|
2
|
+
import { View } from 'react-native';
|
|
3
3
|
import Svg from 'react-native-svg';
|
|
4
4
|
import { Icon } from '../../components/wui-icon';
|
|
5
5
|
import { Image } from '../../components/wui-image';
|
|
@@ -15,26 +15,22 @@ export interface QrCodeProps {
|
|
|
15
15
|
uri?: string;
|
|
16
16
|
imageSrc?: string;
|
|
17
17
|
testID?: string;
|
|
18
|
-
arenaClear?: boolean;
|
|
19
|
-
style?: StyleProp<ViewStyle>;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
export function QrCode({ size, uri, imageSrc, testID
|
|
20
|
+
export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
23
21
|
const Theme = LightTheme;
|
|
24
22
|
const containerPadding = Spacing.l;
|
|
25
23
|
const qrSize = size - containerPadding * 2;
|
|
26
|
-
const logoSize = arenaClear ? 0 : qrSize / 4;
|
|
27
|
-
|
|
28
24
|
const dots = useMemo(
|
|
29
|
-
() => (uri ? QRCodeUtil.generate(uri, qrSize,
|
|
30
|
-
[uri, qrSize
|
|
25
|
+
() => (uri ? QRCodeUtil.generate(uri, qrSize, qrSize / 4) : []),
|
|
26
|
+
[uri, qrSize]
|
|
31
27
|
);
|
|
32
28
|
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
29
|
+
const shimmerTemplate = () => {
|
|
30
|
+
return <Shimmer width={size} height={size} borderRadius={BorderRadius.l} />;
|
|
31
|
+
};
|
|
37
32
|
|
|
33
|
+
const logoTemplate = () => {
|
|
38
34
|
if (imageSrc) {
|
|
39
35
|
return (
|
|
40
36
|
<Image
|
|
@@ -62,8 +58,7 @@ export function QrCode({ size, uri, imageSrc, testID, arenaClear, style }: QrCod
|
|
|
62
58
|
<View
|
|
63
59
|
style={[
|
|
64
60
|
styles.container,
|
|
65
|
-
{ width: size, backgroundColor: Theme['bg-100'], padding: containerPadding }
|
|
66
|
-
style
|
|
61
|
+
{ width: size, backgroundColor: Theme['bg-100'], padding: containerPadding }
|
|
67
62
|
]}
|
|
68
63
|
testID={testID}
|
|
69
64
|
>
|
|
@@ -81,6 +76,6 @@ export function QrCode({ size, uri, imageSrc, testID, arenaClear, style }: QrCod
|
|
|
81
76
|
</Text>
|
|
82
77
|
</View>
|
|
83
78
|
) : (
|
|
84
|
-
|
|
79
|
+
shimmerTemplate()
|
|
85
80
|
);
|
|
86
81
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { BorderRadius } from '../../utils/ThemeUtil';
|
|
3
2
|
|
|
4
3
|
export default StyleSheet.create({
|
|
5
4
|
container: {
|
|
6
5
|
height: 40,
|
|
7
6
|
flexDirection: 'row',
|
|
8
7
|
paddingHorizontal: 8,
|
|
9
|
-
borderRadius:
|
|
8
|
+
borderRadius: 100,
|
|
10
9
|
borderWidth: 1,
|
|
11
10
|
alignItems: 'center'
|
|
12
11
|
},
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Animated,
|
|
4
|
-
Pressable,
|
|
5
|
-
View,
|
|
6
|
-
type LayoutChangeEvent,
|
|
7
|
-
type StyleProp,
|
|
8
|
-
type ViewStyle
|
|
9
|
-
} from 'react-native';
|
|
2
|
+
import { Animated, Pressable, View } from 'react-native';
|
|
10
3
|
import { Icon } from '../../components/wui-icon';
|
|
11
4
|
import { Text } from '../../components/wui-text';
|
|
12
5
|
import { useTheme } from '../../hooks/useTheme';
|
|
@@ -15,16 +8,13 @@ import styles from './styles';
|
|
|
15
8
|
|
|
16
9
|
export interface TabsProps {
|
|
17
10
|
onTabChange: (index: number) => void;
|
|
18
|
-
tabs: TabOptionType[]
|
|
19
|
-
style?: StyleProp<ViewStyle>;
|
|
11
|
+
tabs: TabOptionType[];
|
|
20
12
|
}
|
|
21
13
|
|
|
22
|
-
export function Tabs({ tabs, onTabChange
|
|
14
|
+
export function Tabs({ tabs, onTabChange }: TabsProps) {
|
|
23
15
|
const Theme = useTheme();
|
|
24
16
|
const [activeTab, setActiveTab] = useState(0);
|
|
25
17
|
const animatedPosition = useRef(new Animated.Value(0));
|
|
26
|
-
const [viewWidth, setViewWidth] = useState(1);
|
|
27
|
-
const tabWidth = Math.trunc(viewWidth / tabs.length) - 2;
|
|
28
18
|
|
|
29
19
|
const onTabPress = (index: number) => {
|
|
30
20
|
setActiveTab(index);
|
|
@@ -38,41 +28,27 @@ export function Tabs({ tabs, onTabChange, style }: TabsProps) {
|
|
|
38
28
|
|
|
39
29
|
const markPosition = animatedPosition.current.interpolate({
|
|
40
30
|
inputRange: [0, tabs.length - 1],
|
|
41
|
-
outputRange: [0,
|
|
31
|
+
outputRange: [0, 100 * (tabs.length - 1)]
|
|
42
32
|
});
|
|
43
33
|
|
|
44
|
-
const onLayout = (event: LayoutChangeEvent) => {
|
|
45
|
-
const { width } = event.nativeEvent.layout;
|
|
46
|
-
setViewWidth(width);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
34
|
return (
|
|
50
|
-
<View
|
|
51
|
-
style={[styles.container, { backgroundColor: Theme['gray-glass-002'] }, style]}
|
|
52
|
-
onLayout={onLayout}
|
|
53
|
-
>
|
|
35
|
+
<View style={[styles.container, { backgroundColor: Theme['gray-glass-002'] }]}>
|
|
54
36
|
<Animated.View
|
|
55
37
|
style={[
|
|
56
38
|
styles.activeMark,
|
|
57
39
|
{
|
|
58
40
|
backgroundColor: Theme['gray-glass-005'],
|
|
59
41
|
borderColor: Theme['gray-glass-005'],
|
|
60
|
-
left: markPosition
|
|
61
|
-
width: tabWidth
|
|
42
|
+
left: markPosition
|
|
62
43
|
}
|
|
63
44
|
]}
|
|
64
45
|
/>
|
|
65
46
|
{tabs.map((option, index) => {
|
|
66
47
|
const isActive = index === activeTab;
|
|
67
|
-
const isString = typeof option === 'string';
|
|
68
48
|
|
|
69
49
|
return (
|
|
70
|
-
<Pressable
|
|
71
|
-
|
|
72
|
-
key={isString ? option : option.label}
|
|
73
|
-
style={[styles.tabItem, { width: tabWidth }]}
|
|
74
|
-
>
|
|
75
|
-
{!isString && option.icon && (
|
|
50
|
+
<Pressable onPress={() => onTabPress(index)} key={option.label} style={styles.tabItem}>
|
|
51
|
+
{option.icon && (
|
|
76
52
|
<Icon
|
|
77
53
|
name={option.icon}
|
|
78
54
|
size="xs"
|
|
@@ -81,7 +57,7 @@ export function Tabs({ tabs, onTabChange, style }: TabsProps) {
|
|
|
81
57
|
/>
|
|
82
58
|
)}
|
|
83
59
|
<Text variant="small-600" color={isActive ? 'fg-100' : 'fg-200'}>
|
|
84
|
-
{
|
|
60
|
+
{option.label}
|
|
85
61
|
</Text>
|
|
86
62
|
</Pressable>
|
|
87
63
|
);
|
|
@@ -4,7 +4,6 @@ import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
container: {
|
|
6
6
|
height: 34,
|
|
7
|
-
width: '100%',
|
|
8
7
|
flexDirection: 'row',
|
|
9
8
|
alignItems: 'center',
|
|
10
9
|
paddingHorizontal: Spacing['3xs'],
|
|
@@ -14,6 +13,7 @@ export default StyleSheet.create({
|
|
|
14
13
|
flexDirection: 'row',
|
|
15
14
|
justifyContent: 'center',
|
|
16
15
|
alignItems: 'center',
|
|
16
|
+
width: 100,
|
|
17
17
|
paddingVertical: Spacing['2xs']
|
|
18
18
|
},
|
|
19
19
|
tabIcon: {
|
|
@@ -22,6 +22,7 @@ export default StyleSheet.create({
|
|
|
22
22
|
activeMark: {
|
|
23
23
|
position: 'absolute',
|
|
24
24
|
height: 28,
|
|
25
|
+
width: 100,
|
|
25
26
|
borderWidth: 1,
|
|
26
27
|
borderRadius: BorderRadius['3xl'],
|
|
27
28
|
margin: Spacing['3xs']
|
package/src/index.ts
CHANGED
|
@@ -9,11 +9,8 @@ export { Visual, type VisualProps } from './components/wui-visual';
|
|
|
9
9
|
export { Shimmer, type ShimmerProps } from './components/wui-shimmer';
|
|
10
10
|
|
|
11
11
|
export { AccountButton, type AccountButtonProps } from './composites/wui-account-button';
|
|
12
|
-
export { AccountPill, type AccountPillProps } from './composites/wui-account-pill';
|
|
13
12
|
export { ActionEntry, type ActionEntryProps } from './composites/wui-action-entry';
|
|
14
13
|
export { Avatar, type AvatarProps } from './composites/wui-avatar';
|
|
15
|
-
export { Balance, type BalanceProps } from './composites/wui-balance';
|
|
16
|
-
export { Banner, type BannerProps } from './composites/wui-banner';
|
|
17
14
|
export { Button, type ButtonProps } from './composites/wui-button';
|
|
18
15
|
export {
|
|
19
16
|
CardSelectLoader,
|
|
@@ -27,10 +24,6 @@ export {
|
|
|
27
24
|
type CardSelectProps
|
|
28
25
|
} from './composites/wui-card-select';
|
|
29
26
|
export { Chip, type ChipProps } from './composites/wui-chip';
|
|
30
|
-
export {
|
|
31
|
-
CompatibleNetwork,
|
|
32
|
-
type CompatibleNetworkProps
|
|
33
|
-
} from './composites/wui-compatible-network';
|
|
34
27
|
export { ConnectButton, type ConnectButtonProps } from './composites/wui-connect-button';
|
|
35
28
|
export { EmailInput, type EmailInputProps } from './composites/wui-email-input';
|
|
36
29
|
export { IconBox, type IconBoxProps } from './composites/wui-icon-box';
|
|
@@ -40,8 +33,6 @@ export { InputNumeric, type InputNumericProps } from './composites/wui-input-num
|
|
|
40
33
|
export { InputText, type InputTextProps } from './composites/wui-input-text';
|
|
41
34
|
export { Link, type LinkProps } from './composites/wui-link';
|
|
42
35
|
export { ListItem, type ListItemProps } from './composites/wui-list-item';
|
|
43
|
-
export { ListToken, type ListTokenProps } from './composites/wui-list-token';
|
|
44
|
-
export { ListTransaction, type ListTransactionProps } from './composites/wui-list-transaction';
|
|
45
36
|
export { ListWallet, type ListWalletProps } from './composites/wui-list-wallet';
|
|
46
37
|
export { Logo, type LogoProps } from './composites/wui-logo';
|
|
47
38
|
export { LogoSelect, type LogoSelectProps } from './composites/wui-logo-select';
|
|
@@ -53,7 +44,6 @@ export { SearchBar, type SearchBarProps } from './composites/wui-search-bar';
|
|
|
53
44
|
export { Snackbar, type SnackbarProps } from './composites/wui-snackbar';
|
|
54
45
|
export { Tabs, type TabsProps } from './composites/wui-tabs';
|
|
55
46
|
export { Tag, type TagProps } from './composites/wui-tag';
|
|
56
|
-
export { TokenButton, type TokenButtonProps } from './composites/wui-token-button';
|
|
57
47
|
export { Tooltip, type TooltipProps } from './composites/wui-tooltip';
|
|
58
48
|
export { WalletImage, type WalletImageProps } from './composites/wui-wallet-image';
|
|
59
49
|
|
|
@@ -76,7 +66,6 @@ export type {
|
|
|
76
66
|
VisualType
|
|
77
67
|
} from './utils/TypesUtil';
|
|
78
68
|
export { UiUtil } from './utils/UiUtil';
|
|
79
|
-
export { TransactionUtil } from './utils/TransactionUtil';
|
|
80
69
|
export { Spacing, BorderRadius } from './utils/ThemeUtil';
|
|
81
70
|
|
|
82
71
|
export { useTheme } from './hooks/useTheme';
|
package/src/utils/ThemeUtil.ts
CHANGED
package/src/utils/TypesUtil.ts
CHANGED
|
@@ -91,27 +91,14 @@ export type ColorType =
|
|
|
91
91
|
| 'error-100'
|
|
92
92
|
| 'fg-100'
|
|
93
93
|
| 'fg-150'
|
|
94
|
-
| 'fg-175'
|
|
95
94
|
| 'fg-200'
|
|
96
95
|
| 'fg-250'
|
|
97
96
|
| 'fg-275'
|
|
98
97
|
| 'fg-300'
|
|
99
|
-
| 'accent-glass-020'
|
|
100
|
-
| 'accent-glass-015'
|
|
101
|
-
| 'accent-glass-010'
|
|
102
|
-
| 'accent-glass-005'
|
|
103
98
|
| 'gray-glass-020'
|
|
104
|
-
| 'gray-glass-010'
|
|
105
|
-
| 'gray-glass-005'
|
|
106
99
|
| 'inverse-000'
|
|
107
100
|
| 'inverse-100'
|
|
108
|
-
| 'success-100'
|
|
109
|
-
| 'teal-100'
|
|
110
|
-
| 'magenta-100'
|
|
111
|
-
| 'indigo-100'
|
|
112
|
-
| 'orange-100'
|
|
113
|
-
| 'purple-100'
|
|
114
|
-
| 'yellow-100';
|
|
101
|
+
| 'success-100';
|
|
115
102
|
|
|
116
103
|
export type SizeType = 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
|
|
117
104
|
|
|
@@ -125,7 +112,6 @@ export type IconType =
|
|
|
125
112
|
| 'allWallets'
|
|
126
113
|
| 'apple'
|
|
127
114
|
| 'arrowBottom'
|
|
128
|
-
| 'arrowBottomCircle'
|
|
129
115
|
| 'arrowLeft'
|
|
130
116
|
| 'arrowRight'
|
|
131
117
|
| 'arrowTop'
|
|
@@ -160,7 +146,6 @@ export type IconType =
|
|
|
160
146
|
| 'networkPlaceholder'
|
|
161
147
|
| 'nftPlaceholder'
|
|
162
148
|
| 'off'
|
|
163
|
-
| 'paperplane'
|
|
164
149
|
| 'qrCode'
|
|
165
150
|
| 'refresh'
|
|
166
151
|
| 'search'
|
|
@@ -208,7 +193,7 @@ export type CardSelectType = 'wallet' | 'network';
|
|
|
208
193
|
|
|
209
194
|
export type TabOptionType = {
|
|
210
195
|
icon: IconType;
|
|
211
|
-
label
|
|
196
|
+
label: string;
|
|
212
197
|
};
|
|
213
198
|
|
|
214
199
|
export type SpacingType =
|
|
@@ -253,22 +238,3 @@ export type TruncateOptions = {
|
|
|
253
238
|
charsEnd: number;
|
|
254
239
|
truncate: TruncateType;
|
|
255
240
|
};
|
|
256
|
-
|
|
257
|
-
export type TransactionType =
|
|
258
|
-
| 'approve'
|
|
259
|
-
| 'bought'
|
|
260
|
-
| 'borrow'
|
|
261
|
-
| 'burn'
|
|
262
|
-
| 'cancel'
|
|
263
|
-
| 'claim'
|
|
264
|
-
| 'deploy'
|
|
265
|
-
| 'deposit'
|
|
266
|
-
| 'execute'
|
|
267
|
-
| 'mint'
|
|
268
|
-
| 'receive'
|
|
269
|
-
| 'repay'
|
|
270
|
-
| 'send'
|
|
271
|
-
| 'stake'
|
|
272
|
-
| 'trade'
|
|
273
|
-
| 'unstake'
|
|
274
|
-
| 'withdraw';
|