@reown/appkit-ui-react-native 0.0.0-fix-token-balance-20241017200828 → 0.0.0-fix-fetch-error-improvements-20241114124235
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/Farcaster.js +28 -0
- package/lib/commonjs/assets/svg/Farcaster.js.map +1 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js +28 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/commonjs/assets/svg/{TwitterIcon.js → More.js} +16 -5
- package/lib/commonjs/assets/svg/More.js.map +1 -0
- package/lib/commonjs/assets/svg/WalletConnect.js +19 -1
- package/lib/commonjs/assets/svg/WalletConnect.js.map +1 -1
- package/lib/commonjs/assets/svg/{Twitter.js → X.js} +18 -28
- package/lib/commonjs/assets/svg/X.js.map +1 -0
- package/lib/commonjs/assets/visual/Google.js +59 -0
- package/lib/commonjs/assets/visual/Google.js.map +1 -0
- package/lib/commonjs/assets/visual/Lightbulb.js +58 -0
- package/lib/commonjs/assets/visual/Lightbulb.js.map +1 -0
- package/lib/commonjs/assets/visual/Pencil.js +81 -0
- package/lib/commonjs/assets/visual/Pencil.js.map +1 -0
- package/lib/commonjs/components/wui-card/index.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js.map +1 -1
- package/lib/commonjs/components/wui-icon/index.js +14 -7
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/components/wui-lean-text/index.js +15 -0
- package/lib/commonjs/components/wui-lean-text/index.js.map +1 -0
- package/lib/commonjs/components/wui-lean-view/index.js +15 -0
- package/lib/commonjs/components/wui-lean-view/index.js.map +1 -0
- package/lib/commonjs/components/wui-text/index.js +2 -2
- package/lib/commonjs/components/wui-text/index.js.map +1 -1
- package/lib/commonjs/components/wui-visual/index.js +6 -0
- package/lib/commonjs/components/wui-visual/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/styles.js +2 -2
- package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-account-pill/index.js +5 -11
- package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-pill/styles.js +5 -1
- package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-button/styles.js +1 -1
- package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/index.js +7 -3
- package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/styles.js +2 -2
- package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-compatible-network/index.js +6 -6
- package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -1
- package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
- package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-icon-box/index.js +17 -1
- package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-social/index.js +54 -0
- package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
- package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-wallet/index.js +4 -3
- package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo/index.js +4 -2
- package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
- package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
- package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/styles.js +1 -1
- package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-otp/index.js +1 -2
- package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
- package/lib/commonjs/composites/wui-promo/index.js +48 -0
- package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
- package/lib/commonjs/composites/wui-qr-code/index.js +2 -1
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
- package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layout/wui-flex/index.js +2 -2
- package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
- package/lib/commonjs/layout/wui-separator/index.js +4 -4
- package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +2 -1
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/module/assets/svg/Farcaster.js +20 -0
- package/lib/module/assets/svg/Farcaster.js.map +1 -0
- package/lib/module/assets/svg/FarcasterSquare.js +20 -0
- package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/module/assets/svg/More.js +22 -0
- package/lib/module/assets/svg/More.js.map +1 -0
- package/lib/module/assets/svg/WalletConnect.js +18 -1
- package/lib/module/assets/svg/WalletConnect.js.map +1 -1
- package/lib/module/assets/svg/X.js +27 -0
- package/lib/module/assets/svg/X.js.map +1 -0
- package/lib/module/assets/visual/Google.js +51 -0
- package/lib/module/assets/visual/Google.js.map +1 -0
- package/lib/module/assets/visual/Lightbulb.js +50 -0
- package/lib/module/assets/visual/Lightbulb.js.map +1 -0
- package/lib/module/assets/visual/Pencil.js +73 -0
- package/lib/module/assets/visual/Pencil.js.map +1 -0
- package/lib/module/components/wui-card/index.js +1 -1
- package/lib/module/components/wui-card/styles.js +1 -1
- package/lib/module/components/wui-card/styles.js.map +1 -1
- package/lib/module/components/wui-icon/index.js +12 -7
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/components/wui-lean-text/index.js +10 -0
- package/lib/module/components/wui-lean-text/index.js.map +1 -0
- package/lib/module/components/wui-lean-view/index.js +10 -0
- package/lib/module/components/wui-lean-view/index.js.map +1 -0
- package/lib/module/components/wui-text/index.js +2 -2
- package/lib/module/components/wui-text/index.js.map +1 -1
- package/lib/module/components/wui-visual/index.js +6 -0
- package/lib/module/components/wui-visual/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/styles.js +2 -2
- package/lib/module/composites/wui-account-button/styles.js.map +1 -1
- package/lib/module/composites/wui-account-pill/index.js +5 -11
- package/lib/module/composites/wui-account-pill/index.js.map +1 -1
- package/lib/module/composites/wui-account-pill/styles.js +5 -1
- package/lib/module/composites/wui-account-pill/styles.js.map +1 -1
- package/lib/module/composites/wui-button/styles.js +1 -1
- package/lib/module/composites/wui-button/styles.js.map +1 -1
- package/lib/module/composites/wui-chip/index.js +7 -3
- package/lib/module/composites/wui-chip/index.js.map +1 -1
- package/lib/module/composites/wui-chip/styles.js +2 -2
- package/lib/module/composites/wui-chip/styles.js.map +1 -1
- package/lib/module/composites/wui-compatible-network/index.js +6 -6
- package/lib/module/composites/wui-compatible-network/index.js.map +1 -1
- package/lib/module/composites/wui-connect-button/styles.js +1 -1
- package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/module/composites/wui-icon-box/index.js +17 -1
- package/lib/module/composites/wui-icon-box/index.js.map +1 -1
- package/lib/module/composites/wui-input-text/styles.js +1 -1
- package/lib/module/composites/wui-input-text/styles.js.map +1 -1
- package/lib/module/composites/wui-list-social/index.js +47 -0
- package/lib/module/composites/wui-list-social/index.js.map +1 -0
- package/lib/module/composites/wui-list-social/styles.js +28 -0
- package/lib/module/composites/wui-list-social/styles.js.map +1 -0
- package/lib/module/composites/wui-list-wallet/index.js +5 -4
- package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/module/composites/wui-logo/index.js +4 -2
- package/lib/module/composites/wui-logo/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/index.js +6 -3
- package/lib/module/composites/wui-logo-select/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/styles.js +3 -3
- package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/module/composites/wui-network-button/styles.js +1 -1
- package/lib/module/composites/wui-network-button/styles.js.map +1 -1
- package/lib/module/composites/wui-otp/index.js +2 -3
- package/lib/module/composites/wui-otp/index.js.map +1 -1
- package/lib/module/composites/wui-promo/index.js +42 -0
- package/lib/module/composites/wui-promo/index.js.map +1 -0
- package/lib/module/composites/wui-qr-code/index.js +2 -1
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/styles.js +1 -1
- package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/module/composites/wui-tabs/styles.js +1 -1
- package/lib/module/composites/wui-tabs/styles.js.map +1 -1
- package/lib/module/composites/wui-wallet-image/styles.js +1 -1
- package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/layout/wui-flex/index.js +2 -2
- package/lib/module/layout/wui-flex/index.js.map +1 -1
- package/lib/module/layout/wui-separator/index.js +4 -4
- package/lib/module/layout/wui-separator/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +2 -1
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
- package/lib/typescript/assets/svg/More.d.ts +4 -0
- package/lib/typescript/assets/svg/More.d.ts.map +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
- package/lib/typescript/assets/svg/X.d.ts +4 -0
- package/lib/typescript/assets/svg/X.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Google.d.ts +4 -0
- package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
- package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
- package/lib/typescript/components/wui-icon/index.d.ts +1 -1
- package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-lean-text/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-text/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-pill/index.d.ts +1 -2
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +4 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-chip/index.d.ts +3 -2
- package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-icon-box/index.d.ts +1 -1
- package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
- package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
- package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-qr-code/index.d.ts +3 -1
- package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-separator/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/TypesUtil.d.ts +4 -4
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/svg/Farcaster.tsx +15 -0
- package/src/assets/svg/FarcasterSquare.tsx +15 -0
- package/src/assets/svg/More.tsx +16 -0
- package/src/assets/svg/WalletConnect.tsx +24 -1
- package/src/assets/svg/X.tsx +26 -0
- package/src/assets/visual/Google.tsx +43 -0
- package/src/assets/visual/Lightbulb.tsx +54 -0
- package/src/assets/visual/Pencil.tsx +80 -0
- package/src/components/wui-card/index.tsx +1 -1
- package/src/components/wui-card/styles.ts +1 -1
- package/src/components/wui-icon/index.tsx +13 -8
- package/src/components/wui-lean-text/index.tsx +10 -0
- package/src/components/wui-lean-view/index.tsx +10 -0
- package/src/components/wui-text/index.tsx +4 -3
- package/src/components/wui-visual/index.tsx +6 -0
- package/src/composites/wui-account-button/styles.ts +2 -2
- package/src/composites/wui-account-pill/index.tsx +2 -10
- package/src/composites/wui-account-pill/styles.ts +5 -1
- package/src/composites/wui-button/styles.ts +1 -1
- package/src/composites/wui-chip/index.tsx +7 -4
- package/src/composites/wui-chip/styles.ts +2 -2
- package/src/composites/wui-compatible-network/index.tsx +4 -4
- package/src/composites/wui-connect-button/styles.ts +1 -1
- package/src/composites/wui-icon-box/index.tsx +18 -2
- package/src/composites/wui-input-text/styles.ts +1 -1
- package/src/composites/wui-list-social/index.tsx +65 -0
- package/src/composites/wui-list-social/styles.ts +28 -0
- package/src/composites/wui-list-wallet/index.tsx +7 -6
- package/src/composites/wui-logo/index.tsx +4 -2
- package/src/composites/wui-logo-select/index.tsx +7 -4
- package/src/composites/wui-logo-select/styles.ts +3 -3
- package/src/composites/wui-network-button/styles.ts +1 -1
- package/src/composites/wui-otp/index.tsx +2 -4
- package/src/composites/wui-promo/index.tsx +42 -0
- package/src/composites/wui-qr-code/index.tsx +4 -2
- package/src/composites/wui-snackbar/styles.ts +1 -1
- package/src/composites/wui-tabs/styles.ts +1 -1
- package/src/composites/wui-wallet-image/styles.ts +1 -1
- package/src/index.ts +2 -0
- package/src/layout/wui-flex/index.tsx +3 -3
- package/src/layout/wui-separator/index.tsx +7 -4
- package/src/utils/ThemeUtil.ts +2 -1
- package/src/utils/TypesUtil.ts +22 -4
- package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
- package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/module/assets/svg/Twitter.js +0 -37
- package/lib/module/assets/svg/Twitter.js.map +0 -1
- package/lib/module/assets/svg/TwitterIcon.js +0 -11
- package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
- package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
- package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
- package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
- package/src/assets/svg/Twitter.tsx +0 -27
- package/src/assets/svg/TwitterIcon.tsx +0 -10
|
@@ -30,6 +30,8 @@ import EtherscanSvg from '../../assets/svg/Etherscan';
|
|
|
30
30
|
import ExtensionSvg from '../../assets/svg/Extension';
|
|
31
31
|
import ExternalLinkSvg from '../../assets/svg/ExternalLink';
|
|
32
32
|
import FacebookSvg from '../../assets/svg/Facebook';
|
|
33
|
+
import FarcasterSvg from '../../assets/svg/Farcaster';
|
|
34
|
+
import FarcasterSquareSvg from '../../assets/svg/FarcasterSquare';
|
|
33
35
|
import FiltersSvg from '../../assets/svg/Filters';
|
|
34
36
|
import GithubSvg from '../../assets/svg/Github';
|
|
35
37
|
import GoogleSvg from '../../assets/svg/Google';
|
|
@@ -37,6 +39,7 @@ import HelpCircleSvg from '../../assets/svg/HelpCircle';
|
|
|
37
39
|
import InfoCircleSvg from '../../assets/svg/InfoCircle';
|
|
38
40
|
import MailSvg from '../../assets/svg/Mail';
|
|
39
41
|
import MobileSvg from '../../assets/svg/Mobile';
|
|
42
|
+
import MoreSvg from '../../assets/svg/More';
|
|
40
43
|
import NetworkPlaceholderSvg from '../../assets/svg/NetworkPlaceholder';
|
|
41
44
|
import NftPlaceholderSvg from '../../assets/svg/NftPlaceholder';
|
|
42
45
|
import OffSvg from '../../assets/svg/Off';
|
|
@@ -47,15 +50,14 @@ import SearchSvg from '../../assets/svg/Search';
|
|
|
47
50
|
import SwapHorizontalSvg from '../../assets/svg/SwapHorizontal';
|
|
48
51
|
import SwapVerticalSvg from '../../assets/svg/SwapVertical';
|
|
49
52
|
import TelegramSvg from '../../assets/svg/Telegram';
|
|
50
|
-
import
|
|
53
|
+
import TwitchSvg from '../../assets/svg/Twitch';
|
|
51
54
|
import VerifySvg from '../../assets/svg/Verify';
|
|
52
|
-
import WalletConnectSvg from '../../assets/svg/WalletConnect';
|
|
55
|
+
import WalletConnectSvg, { WalletConnectLightBrownSvg } from '../../assets/svg/WalletConnect';
|
|
53
56
|
import WalletSvg from '../../assets/svg/Wallet';
|
|
54
57
|
import WalletSmallSvg from '../../assets/svg/WalletSmall';
|
|
55
58
|
import WarningCircleSvg from '../../assets/svg/WarningCircle';
|
|
56
|
-
import TwitchSvg from '../../assets/svg/Twitch';
|
|
57
|
-
import TwitterIconSvg from '../../assets/svg/TwitterIcon';
|
|
58
59
|
import WalletPlaceholderSvg from '../../assets/svg/WalletPlaceholder';
|
|
60
|
+
import XSvg from '../../assets/svg/X';
|
|
59
61
|
import { useTheme } from '../../hooks/useTheme';
|
|
60
62
|
import { IconSize } from '../../utils/ThemeUtil';
|
|
61
63
|
|
|
@@ -88,6 +90,8 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
88
90
|
extension: ExtensionSvg,
|
|
89
91
|
externalLink: ExternalLinkSvg,
|
|
90
92
|
facebook: FacebookSvg,
|
|
93
|
+
farcaster: FarcasterSvg,
|
|
94
|
+
farcasterSquare: FarcasterSquareSvg,
|
|
91
95
|
filters: FiltersSvg,
|
|
92
96
|
github: GithubSvg,
|
|
93
97
|
google: GoogleSvg,
|
|
@@ -95,6 +99,7 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
95
99
|
infoCircle: InfoCircleSvg,
|
|
96
100
|
mail: MailSvg,
|
|
97
101
|
mobile: MobileSvg,
|
|
102
|
+
more: MoreSvg,
|
|
98
103
|
networkPlaceholder: NetworkPlaceholderSvg,
|
|
99
104
|
nftPlaceholder: NftPlaceholderSvg,
|
|
100
105
|
off: OffSvg,
|
|
@@ -106,19 +111,19 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
106
111
|
swapVertical: SwapVerticalSvg,
|
|
107
112
|
telegram: TelegramSvg,
|
|
108
113
|
twitch: TwitchSvg,
|
|
109
|
-
twitter: TwitterSvg,
|
|
110
|
-
twitterIcon: TwitterIconSvg,
|
|
111
114
|
verify: VerifySvg,
|
|
112
115
|
wallet: WalletSvg,
|
|
113
116
|
walletSmall: WalletSmallSvg,
|
|
114
117
|
warningCircle: WarningCircleSvg,
|
|
115
118
|
walletConnect: WalletConnectSvg,
|
|
116
|
-
|
|
119
|
+
walletConnectLightBrown: WalletConnectLightBrownSvg,
|
|
120
|
+
walletPlaceholder: WalletPlaceholderSvg,
|
|
121
|
+
x: XSvg
|
|
117
122
|
};
|
|
118
123
|
|
|
119
124
|
export type IconProps = SvgProps & {
|
|
120
125
|
name: IconType;
|
|
121
|
-
size?:
|
|
126
|
+
size?: SizeType;
|
|
122
127
|
color?: ColorType;
|
|
123
128
|
style?: SvgProps['style'];
|
|
124
129
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComponentType, createElement, forwardRef } from 'react';
|
|
2
|
+
import type { TextProps } from 'react-native';
|
|
3
|
+
|
|
4
|
+
const LeanText = forwardRef((props, ref) => {
|
|
5
|
+
return createElement('RCTText', { ...props, ref });
|
|
6
|
+
}) as ComponentType<TextProps>;
|
|
7
|
+
|
|
8
|
+
LeanText.displayName = 'RCTText';
|
|
9
|
+
|
|
10
|
+
export { LeanText };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComponentType, createElement, forwardRef } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
|
|
4
|
+
const LeanView = forwardRef((props, ref) => {
|
|
5
|
+
return createElement('RCTView', { ...props, ref });
|
|
6
|
+
}) as ComponentType<ViewProps>;
|
|
7
|
+
|
|
8
|
+
LeanView.displayName = 'RCTView';
|
|
9
|
+
|
|
10
|
+
export { LeanView };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type TextProps as NativeProps } from 'react-native';
|
|
2
2
|
import { useTheme } from '../../hooks/useTheme';
|
|
3
|
+
import { LeanText } from '../wui-lean-text';
|
|
3
4
|
import type { ColorType, TextType } from '../../utils/TypesUtil';
|
|
4
5
|
import styles from './styles';
|
|
5
6
|
|
|
@@ -20,7 +21,7 @@ export function Text({
|
|
|
20
21
|
const Theme = useTheme();
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
|
-
<
|
|
24
|
+
<LeanText
|
|
24
25
|
style={[
|
|
25
26
|
styles.base,
|
|
26
27
|
styles[variant],
|
|
@@ -31,6 +32,6 @@ export function Text({
|
|
|
31
32
|
{...rest}
|
|
32
33
|
>
|
|
33
34
|
{children}
|
|
34
|
-
</
|
|
35
|
+
</LeanText>
|
|
35
36
|
);
|
|
36
37
|
}
|
|
@@ -14,6 +14,9 @@ import NounSvg from '../../assets/visual/Noun';
|
|
|
14
14
|
import ProfileSvg from '../../assets/visual/Profile';
|
|
15
15
|
import SystemSvg from '../../assets/visual/System';
|
|
16
16
|
import type { VisualType } from '../../utils/TypesUtil';
|
|
17
|
+
import GoogleSvg from '../../assets/visual/Google';
|
|
18
|
+
import LightbulbSvg from '../../assets/visual/Lightbulb';
|
|
19
|
+
import PencilSvg from '../../assets/visual/Pencil';
|
|
17
20
|
|
|
18
21
|
const svgOptions: Record<VisualType, (props: SvgProps) => JSX.Element> = {
|
|
19
22
|
browser: BrowserSvg,
|
|
@@ -21,12 +24,15 @@ const svgOptions: Record<VisualType, (props: SvgProps) => JSX.Element> = {
|
|
|
21
24
|
defi: DefiSvg,
|
|
22
25
|
defiAlt: DefiAltSvg,
|
|
23
26
|
eth: EthSvg,
|
|
27
|
+
google: GoogleSvg,
|
|
24
28
|
layers: LayersSvg,
|
|
29
|
+
lightbulb: LightbulbSvg,
|
|
25
30
|
lock: LockSvg,
|
|
26
31
|
login: LoginSvg,
|
|
27
32
|
network: NetworkSvg,
|
|
28
33
|
nft: NftSvg,
|
|
29
34
|
noun: NounSvg,
|
|
35
|
+
pencil: PencilSvg,
|
|
30
36
|
profile: ProfileSvg,
|
|
31
37
|
system: SystemSvg
|
|
32
38
|
};
|
|
@@ -6,7 +6,7 @@ export default StyleSheet.create({
|
|
|
6
6
|
flexDirection: 'row',
|
|
7
7
|
height: 40,
|
|
8
8
|
borderRadius: BorderRadius.full,
|
|
9
|
-
borderWidth:
|
|
9
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
10
10
|
justifyContent: 'center',
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
paddingHorizontal: Spacing['3xs']
|
|
@@ -36,7 +36,7 @@ export default StyleSheet.create({
|
|
|
36
36
|
paddingLeft: Spacing['3xs'],
|
|
37
37
|
paddingRight: Spacing.xs,
|
|
38
38
|
borderRadius: BorderRadius.full,
|
|
39
|
-
borderWidth:
|
|
39
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
40
40
|
},
|
|
41
41
|
address: {
|
|
42
42
|
marginLeft: Spacing['3xs']
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import { Avatar } from '../wui-avatar';
|
|
3
3
|
import { UiUtil } from '../../utils/UiUtil';
|
|
4
|
-
import { IconLink } from '../wui-icon-link';
|
|
5
4
|
import { Text } from '../../components/wui-text';
|
|
6
5
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
7
6
|
import { useTheme } from '../../hooks/useTheme';
|
|
8
7
|
import styles from './styles';
|
|
8
|
+
import { Icon } from '../../components/wui-icon';
|
|
9
9
|
|
|
10
10
|
export interface AccountPillProps {
|
|
11
11
|
onPress: () => void;
|
|
12
|
-
onCopy: (address: string) => void;
|
|
13
12
|
address?: string;
|
|
14
13
|
profileName?: string;
|
|
15
14
|
profileImage?: string;
|
|
@@ -20,7 +19,6 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
20
19
|
|
|
21
20
|
export function AccountPill({
|
|
22
21
|
onPress,
|
|
23
|
-
onCopy,
|
|
24
22
|
address,
|
|
25
23
|
profileName,
|
|
26
24
|
profileImage,
|
|
@@ -36,12 +34,6 @@ export function AccountPill({
|
|
|
36
34
|
const backgroundColor = animatedValue;
|
|
37
35
|
const borderColor = Theme['gray-glass-005'];
|
|
38
36
|
|
|
39
|
-
const handleCopyAddress = () => {
|
|
40
|
-
if (address) {
|
|
41
|
-
onCopy(address);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
37
|
return (
|
|
46
38
|
<AnimatedPressable
|
|
47
39
|
style={[styles.container, { backgroundColor, borderColor }, style]}
|
|
@@ -66,7 +58,7 @@ export function AccountPill({
|
|
|
66
58
|
truncate: 'middle'
|
|
67
59
|
})}
|
|
68
60
|
</Text>
|
|
69
|
-
<
|
|
61
|
+
<Icon name="chevronBottom" size="sm" color="fg-200" style={styles.copyButton} />
|
|
70
62
|
</AnimatedPressable>
|
|
71
63
|
);
|
|
72
64
|
}
|
|
@@ -11,9 +11,13 @@ export default StyleSheet.create({
|
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
justifyContent: 'center',
|
|
13
13
|
borderRadius: BorderRadius.full,
|
|
14
|
-
borderWidth:
|
|
14
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
15
15
|
},
|
|
16
16
|
text: {
|
|
17
17
|
marginLeft: Spacing['2xs']
|
|
18
|
+
},
|
|
19
|
+
copyButton: {
|
|
20
|
+
marginLeft: Spacing.xs,
|
|
21
|
+
marginRight: Spacing.s
|
|
18
22
|
}
|
|
19
23
|
});
|
|
@@ -12,7 +12,8 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
12
12
|
export interface ChipProps {
|
|
13
13
|
label?: string;
|
|
14
14
|
imageSrc?: string;
|
|
15
|
-
|
|
15
|
+
leftIcon?: IconType;
|
|
16
|
+
rightIcon?: IconType;
|
|
16
17
|
variant?: ChipType;
|
|
17
18
|
size?: Exclude<SizeType, 'xl' | 'lg' | 'xs' | 'xxs'>;
|
|
18
19
|
disabled?: boolean;
|
|
@@ -23,7 +24,8 @@ export interface ChipProps {
|
|
|
23
24
|
export function Chip({
|
|
24
25
|
onPress,
|
|
25
26
|
imageSrc,
|
|
26
|
-
|
|
27
|
+
leftIcon,
|
|
28
|
+
rightIcon,
|
|
27
29
|
variant = 'fill',
|
|
28
30
|
size = 'md',
|
|
29
31
|
disabled,
|
|
@@ -89,15 +91,16 @@ export function Chip({
|
|
|
89
91
|
source={imageSrc}
|
|
90
92
|
/>
|
|
91
93
|
)}
|
|
94
|
+
{leftIcon && <Icon name={leftIcon} color={themedTextColor as ColorType} />}
|
|
92
95
|
<Text
|
|
93
96
|
variant={size === 'md' ? 'paragraph-600' : 'small-600'}
|
|
94
97
|
style={[styles.link, { color: Theme[themedTextColor] }]}
|
|
95
98
|
>
|
|
96
99
|
{label}
|
|
97
100
|
</Text>
|
|
98
|
-
{
|
|
101
|
+
{rightIcon && (
|
|
99
102
|
<Icon
|
|
100
|
-
name={
|
|
103
|
+
name={rightIcon}
|
|
101
104
|
size={iconSize}
|
|
102
105
|
color={themedTextColor as ColorType}
|
|
103
106
|
style={styles.icon}
|
|
@@ -65,11 +65,11 @@ export default StyleSheet.create({
|
|
|
65
65
|
paddingHorizontal: Spacing.xs,
|
|
66
66
|
alignItems: 'center',
|
|
67
67
|
borderRadius: BorderRadius.s,
|
|
68
|
-
borderWidth:
|
|
68
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
69
69
|
},
|
|
70
70
|
image: {
|
|
71
71
|
borderRadius: BorderRadius.full,
|
|
72
|
-
borderWidth:
|
|
72
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
73
73
|
},
|
|
74
74
|
smImage: {
|
|
75
75
|
width: 16,
|
|
@@ -13,9 +13,6 @@ export interface CompatibleNetworkProps {
|
|
|
13
13
|
style?: StyleProp<ViewStyle>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const offset = [20, 15, 10, 5, 0];
|
|
17
|
-
const zIndex = [5, 4, 3, 2, 1];
|
|
18
|
-
|
|
19
16
|
export function CompatibleNetwork({
|
|
20
17
|
text,
|
|
21
18
|
onPress,
|
|
@@ -44,7 +41,7 @@ export function CompatibleNetwork({
|
|
|
44
41
|
imageHeaders={imageHeaders}
|
|
45
42
|
borderColor={Theme['bg-200']}
|
|
46
43
|
borderWidth={2}
|
|
47
|
-
style={
|
|
44
|
+
style={[styles.item, { zIndex: networkImages.length - index }]}
|
|
48
45
|
/>
|
|
49
46
|
))}
|
|
50
47
|
</FlexView>
|
|
@@ -60,5 +57,8 @@ const styles = StyleSheet.create({
|
|
|
60
57
|
flexDirection: 'row',
|
|
61
58
|
justifyContent: 'space-between',
|
|
62
59
|
paddingRight: 0
|
|
60
|
+
},
|
|
61
|
+
item: {
|
|
62
|
+
marginLeft: -5
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -7,7 +7,7 @@ import styles from './styles';
|
|
|
7
7
|
|
|
8
8
|
export interface IconBoxProps {
|
|
9
9
|
icon: IconType;
|
|
10
|
-
size?: Exclude<SizeType, '
|
|
10
|
+
size?: Exclude<SizeType, 'xs' | 'xxs'>;
|
|
11
11
|
iconColor?: ColorType;
|
|
12
12
|
iconSize?: Exclude<SizeType, 'xl'>;
|
|
13
13
|
background?: boolean;
|
|
@@ -33,6 +33,9 @@ export function IconBox({
|
|
|
33
33
|
const Theme = useTheme();
|
|
34
34
|
let _iconSize: SizeType;
|
|
35
35
|
switch (size) {
|
|
36
|
+
case 'xl':
|
|
37
|
+
_iconSize = 'xl';
|
|
38
|
+
break;
|
|
36
39
|
case 'lg':
|
|
37
40
|
_iconSize = 'lg';
|
|
38
41
|
break;
|
|
@@ -48,6 +51,9 @@ export function IconBox({
|
|
|
48
51
|
|
|
49
52
|
let boxSize: number;
|
|
50
53
|
switch (size) {
|
|
54
|
+
case 'xl':
|
|
55
|
+
boxSize = 56;
|
|
56
|
+
break;
|
|
51
57
|
case 'lg':
|
|
52
58
|
boxSize = 40;
|
|
53
59
|
break;
|
|
@@ -58,7 +64,17 @@ export function IconBox({
|
|
|
58
64
|
boxSize = 24;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
|
-
|
|
67
|
+
let borderRadius: keyof typeof BorderRadius;
|
|
68
|
+
switch (size) {
|
|
69
|
+
case 'xl':
|
|
70
|
+
borderRadius = 's';
|
|
71
|
+
break;
|
|
72
|
+
case 'lg':
|
|
73
|
+
borderRadius = 'xxs';
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
borderRadius = '3xl';
|
|
77
|
+
}
|
|
62
78
|
|
|
63
79
|
const backgroundStyle = {
|
|
64
80
|
backgroundColor:
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { View, Pressable, Animated, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
3
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
4
|
+
import type { LogoType } from '../../utils/TypesUtil';
|
|
5
|
+
|
|
6
|
+
import styles from './styles';
|
|
7
|
+
import { Logo } from '../wui-logo';
|
|
8
|
+
import type { ReactNode } from 'react';
|
|
9
|
+
|
|
10
|
+
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
11
|
+
|
|
12
|
+
export interface ListSocialProps {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
logo: LogoType;
|
|
16
|
+
onPress?: () => void;
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
18
|
+
testID?: string;
|
|
19
|
+
logoWidth?: number;
|
|
20
|
+
logoHeight?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function ListSocial({
|
|
24
|
+
logo,
|
|
25
|
+
children,
|
|
26
|
+
disabled,
|
|
27
|
+
onPress,
|
|
28
|
+
style,
|
|
29
|
+
testID,
|
|
30
|
+
logoHeight = 40,
|
|
31
|
+
logoWidth = 40
|
|
32
|
+
}: ListSocialProps) {
|
|
33
|
+
const Theme = useTheme();
|
|
34
|
+
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
35
|
+
Theme['gray-glass-002'],
|
|
36
|
+
Theme['gray-glass-010']
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<AnimatedPressable
|
|
41
|
+
disabled={disabled}
|
|
42
|
+
style={[styles.container, { backgroundColor: animatedValue }, style]}
|
|
43
|
+
onPress={onPress}
|
|
44
|
+
onPressIn={setEndValue}
|
|
45
|
+
onPressOut={setStartValue}
|
|
46
|
+
testID={testID}
|
|
47
|
+
>
|
|
48
|
+
<View
|
|
49
|
+
style={[
|
|
50
|
+
styles.border,
|
|
51
|
+
{ height: logoHeight + 1, width: logoWidth + 1, borderColor: Theme['gray-glass-005'] }
|
|
52
|
+
]}
|
|
53
|
+
>
|
|
54
|
+
<Logo
|
|
55
|
+
logo={logo}
|
|
56
|
+
style={disabled && styles.disabledLogo}
|
|
57
|
+
width={logoWidth}
|
|
58
|
+
height={logoHeight}
|
|
59
|
+
/>
|
|
60
|
+
</View>
|
|
61
|
+
{children}
|
|
62
|
+
<View style={styles.rightPlaceholder} />
|
|
63
|
+
</AnimatedPressable>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
flexDirection: 'row',
|
|
7
|
+
height: 56,
|
|
8
|
+
width: '100%',
|
|
9
|
+
padding: Spacing.s,
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
justifyContent: 'space-between',
|
|
12
|
+
borderRadius: BorderRadius.s
|
|
13
|
+
},
|
|
14
|
+
rightPlaceholder: {
|
|
15
|
+
width: 40,
|
|
16
|
+
height: 40,
|
|
17
|
+
borderRadius: 100
|
|
18
|
+
},
|
|
19
|
+
disabledLogo: {
|
|
20
|
+
opacity: 0.4
|
|
21
|
+
},
|
|
22
|
+
border: {
|
|
23
|
+
borderRadius: BorderRadius.full,
|
|
24
|
+
borderWidth: 2,
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
justifyContent: 'center'
|
|
27
|
+
}
|
|
28
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animated, Pressable,
|
|
1
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import { Text } from '../../components/wui-text';
|
|
3
3
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
@@ -6,9 +6,10 @@ import type { IconType, TagType } from '../../utils/TypesUtil';
|
|
|
6
6
|
import { Tag } from '../wui-tag';
|
|
7
7
|
import { WalletImage } from '../wui-wallet-image';
|
|
8
8
|
import { Icon } from '../../components/wui-icon';
|
|
9
|
+
import { LeanView } from '../../components/wui-lean-view';
|
|
10
|
+
import { IconBox } from '../wui-icon-box';
|
|
9
11
|
|
|
10
12
|
import styles from './styles';
|
|
11
|
-
import { IconBox } from '../wui-icon-box';
|
|
12
13
|
|
|
13
14
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
14
15
|
|
|
@@ -67,7 +68,7 @@ export function ListWallet({
|
|
|
67
68
|
|
|
68
69
|
function imageTemplate() {
|
|
69
70
|
return (
|
|
70
|
-
<
|
|
71
|
+
<LeanView>
|
|
71
72
|
<WalletImage
|
|
72
73
|
style={[styles.image, disabled && styles.imageDisabled]}
|
|
73
74
|
imageSrc={imageSrc}
|
|
@@ -76,7 +77,7 @@ export function ListWallet({
|
|
|
76
77
|
size="sm"
|
|
77
78
|
/>
|
|
78
79
|
{templateInstalled()}
|
|
79
|
-
</
|
|
80
|
+
</LeanView>
|
|
80
81
|
);
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -116,12 +117,12 @@ export function ListWallet({
|
|
|
116
117
|
onPressOut={setStartValue}
|
|
117
118
|
testID={testID}
|
|
118
119
|
>
|
|
119
|
-
<
|
|
120
|
+
<LeanView style={styles.leftSide}>
|
|
120
121
|
{imageTemplate()}
|
|
121
122
|
<Text variant="paragraph-500" style={styles.name} color={disabled ? 'fg-300' : 'fg-100'}>
|
|
122
123
|
{name}
|
|
123
124
|
</Text>
|
|
124
|
-
</
|
|
125
|
+
</LeanView>
|
|
125
126
|
{iconTemplate()}
|
|
126
127
|
</AnimatedPressable>
|
|
127
128
|
);
|
|
@@ -6,9 +6,11 @@ import type { LogoType } from '../../utils/TypesUtil';
|
|
|
6
6
|
export interface LogoProps {
|
|
7
7
|
logo: LogoType;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
height?: number;
|
|
10
|
+
width?: number;
|
|
9
11
|
style?: SvgProps['style'];
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
export function Logo({ logo, style }: LogoProps) {
|
|
13
|
-
return <Icon width={
|
|
14
|
+
export function Logo({ width = 40, height = 40, logo, style }: LogoProps) {
|
|
15
|
+
return <Icon width={width} height={height} name={logo} style={style} />;
|
|
14
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animated, Pressable } from 'react-native';
|
|
1
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
3
3
|
import { useTheme } from '../../hooks/useTheme';
|
|
4
4
|
import type { LogoType } from '../../utils/TypesUtil';
|
|
@@ -10,20 +10,23 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
10
10
|
export interface LogoSelectProps {
|
|
11
11
|
logo: LogoType;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
onPress?: () => void;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
export function LogoSelect({ logo, disabled }: LogoSelectProps) {
|
|
17
|
+
export function LogoSelect({ logo, disabled, style, onPress }: LogoSelectProps) {
|
|
16
18
|
const Theme = useTheme();
|
|
17
19
|
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
18
|
-
Theme['gray-glass-
|
|
20
|
+
Theme['gray-glass-002'],
|
|
19
21
|
Theme['gray-glass-010']
|
|
20
22
|
);
|
|
21
23
|
|
|
22
24
|
return (
|
|
23
25
|
<AnimatedPressable
|
|
26
|
+
onPress={onPress}
|
|
24
27
|
onPressIn={setEndValue}
|
|
25
28
|
onPressOut={setStartValue}
|
|
26
|
-
style={[styles.box, { backgroundColor: animatedValue }]}
|
|
29
|
+
style={[styles.box, { backgroundColor: animatedValue }, style]}
|
|
27
30
|
disabled={disabled}
|
|
28
31
|
>
|
|
29
32
|
<Logo logo={logo} style={disabled && styles.disabled} />
|
|
@@ -3,9 +3,9 @@ import { BorderRadius } from '../../utils/ThemeUtil';
|
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
box: {
|
|
6
|
-
height:
|
|
7
|
-
width:
|
|
8
|
-
borderRadius: BorderRadius.
|
|
6
|
+
height: 56,
|
|
7
|
+
width: 56,
|
|
8
|
+
borderRadius: BorderRadius.s,
|
|
9
9
|
alignItems: 'center',
|
|
10
10
|
justifyContent: 'center'
|
|
11
11
|
},
|
|
@@ -3,8 +3,7 @@ import {
|
|
|
3
3
|
type NativeSyntheticEvent,
|
|
4
4
|
TextInput,
|
|
5
5
|
type TextInputKeyPressEventData,
|
|
6
|
-
View
|
|
7
|
-
Platform
|
|
6
|
+
View
|
|
8
7
|
} from 'react-native';
|
|
9
8
|
import { InputNumeric, type InputNumericProps } from '../wui-input-numeric';
|
|
10
9
|
import styles from './styles';
|
|
@@ -90,8 +89,7 @@ export function Otp({ length, style, onChangeText, autoFocus }: OtpProps) {
|
|
|
90
89
|
inputRef={refArray[index]}
|
|
91
90
|
onChangeText={text => _onChangeText(text, index)}
|
|
92
91
|
onKeyPress={(e: any) => onKeyPress(e, index)}
|
|
93
|
-
|
|
94
|
-
autoComplete={Platform.OS === 'android' ? 'sms-otp' : 'one-time-code'}
|
|
92
|
+
autoComplete="off"
|
|
95
93
|
/>
|
|
96
94
|
))}
|
|
97
95
|
</View>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Pressable, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { Icon } from '../../components/wui-icon';
|
|
3
|
+
import { Text } from '../../components/wui-text';
|
|
4
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
5
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
6
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
7
|
+
|
|
8
|
+
export interface PromoProps {
|
|
9
|
+
text: string;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
onPress?: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function Promo({ text, style, onPress }: PromoProps) {
|
|
15
|
+
const Theme = useTheme();
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<Pressable style={style} onPress={onPress}>
|
|
19
|
+
<FlexView
|
|
20
|
+
alignItems="center"
|
|
21
|
+
justifyContent="center"
|
|
22
|
+
flexDirection="row"
|
|
23
|
+
padding={['xs', 'xs', 'xs', 'm']}
|
|
24
|
+
style={[styles.container, { backgroundColor: Theme['gray-glass-090'] }]}
|
|
25
|
+
>
|
|
26
|
+
<Text variant="small-600" color="bg-100">
|
|
27
|
+
{text}
|
|
28
|
+
</Text>
|
|
29
|
+
<Icon style={styles.icon} name="arrowRight" color="bg-100" size="xs" />
|
|
30
|
+
</FlexView>
|
|
31
|
+
</Pressable>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
borderRadius: BorderRadius.full
|
|
38
|
+
},
|
|
39
|
+
icon: {
|
|
40
|
+
marginLeft: Spacing['2xs']
|
|
41
|
+
}
|
|
42
|
+
});
|