@multiplatform.one/web3 7.34.4 → 7.36.0
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/dist/cjs/components/NetworkSwitcher.cjs +2 -4
- package/dist/cjs/components/NetworkSwitcher.native.js +2 -7
- package/dist/cjs/components/NetworkSwitcher.native.js.map +1 -1
- package/dist/cjs/components/TransactionStatus.cjs +3 -4
- package/dist/cjs/components/TransactionStatus.native.js +3 -4
- package/dist/cjs/components/TransactionStatus.native.js.map +1 -1
- package/dist/cjs/connectkit/components/BalanceButton/index.cjs +3 -2
- package/dist/cjs/connectkit/components/BalanceButton/index.native.js +3 -2
- package/dist/cjs/connectkit/components/BalanceButton/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/Chain/index.cjs +3 -2
- package/dist/cjs/connectkit/components/Common/Chain/index.native.js +3 -2
- package/dist/cjs/connectkit/components/Common/Chain/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelectDropdown/index.cjs +3 -2
- package/dist/cjs/connectkit/components/Common/ChainSelectDropdown/index.native.js +3 -2
- package/dist/cjs/connectkit/components/Common/ChainSelectDropdown/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelectList/index.cjs +8 -7
- package/dist/cjs/connectkit/components/Common/ChainSelectList/index.native.js +8 -7
- package/dist/cjs/connectkit/components/Common/ChainSelectList/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectButton/index.cjs +9 -8
- package/dist/cjs/connectkit/components/ConnectButton/index.native.js +9 -8
- package/dist/cjs/connectkit/components/ConnectButton/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.cjs +4 -3
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.native.js +4 -3
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.cjs +3 -2
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.native.js +3 -2
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/index.cjs +4 -3
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js +4 -3
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/NetworkButton/index.cjs +2 -1
- package/dist/cjs/connectkit/components/NetworkButton/index.native.js +2 -1
- package/dist/cjs/connectkit/components/NetworkButton/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/About/graphics.cjs +2 -1
- package/dist/cjs/connectkit/components/Pages/About/graphics.native.js +2 -1
- package/dist/cjs/connectkit/components/Pages/About/graphics.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/About/index.cjs +3 -2
- package/dist/cjs/connectkit/components/Pages/About/index.native.js +3 -2
- package/dist/cjs/connectkit/components/Pages/About/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/Profile/index.cjs +3 -2
- package/dist/cjs/connectkit/components/Pages/Profile/index.native.js +3 -2
- package/dist/cjs/connectkit/components/Pages/Profile/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/SignInWithEthereum/index.cjs +4 -3
- package/dist/cjs/connectkit/components/Pages/SignInWithEthereum/index.native.js +4 -3
- package/dist/cjs/connectkit/components/Pages/SignInWithEthereum/index.native.js.map +1 -1
- package/dist/cjs/connectkit/profileHeaderAction.cjs +4 -3
- package/dist/cjs/connectkit/profileHeaderAction.native.js +4 -3
- package/dist/cjs/connectkit/profileHeaderAction.native.js.map +1 -1
- package/dist/cjs/examples/LockContract.cjs +9 -11
- package/dist/cjs/examples/LockContract.native.js +9 -11
- package/dist/cjs/examples/LockContract.native.js.map +1 -1
- package/dist/esm/components/NetworkSwitcher.mjs +3 -5
- package/dist/esm/components/NetworkSwitcher.mjs.map +1 -1
- package/dist/esm/components/NetworkSwitcher.native.js +3 -8
- package/dist/esm/components/NetworkSwitcher.native.js.map +1 -1
- package/dist/esm/components/TransactionStatus.mjs +4 -5
- package/dist/esm/components/TransactionStatus.mjs.map +1 -1
- package/dist/esm/components/TransactionStatus.native.js +4 -5
- package/dist/esm/components/TransactionStatus.native.js.map +1 -1
- package/dist/esm/connectkit/components/BalanceButton/index.mjs +3 -2
- package/dist/esm/connectkit/components/BalanceButton/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/BalanceButton/index.native.js +3 -2
- package/dist/esm/connectkit/components/BalanceButton/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/Common/Chain/index.mjs +3 -2
- package/dist/esm/connectkit/components/Common/Chain/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/Common/Chain/index.native.js +3 -2
- package/dist/esm/connectkit/components/Common/Chain/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/Common/ChainSelectDropdown/index.mjs +3 -2
- package/dist/esm/connectkit/components/Common/ChainSelectDropdown/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/Common/ChainSelectDropdown/index.native.js +3 -2
- package/dist/esm/connectkit/components/Common/ChainSelectDropdown/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/Common/ChainSelectList/index.mjs +8 -7
- package/dist/esm/connectkit/components/Common/ChainSelectList/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/Common/ChainSelectList/index.native.js +8 -7
- package/dist/esm/connectkit/components/Common/ChainSelectList/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/ConnectButton/index.mjs +9 -8
- package/dist/esm/connectkit/components/ConnectButton/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/ConnectButton/index.native.js +9 -8
- package/dist/esm/connectkit/components/ConnectButton/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.mjs +4 -3
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.native.js +4 -3
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.mjs +3 -2
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.native.js +3 -2
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs +4 -3
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js +4 -3
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/NetworkButton/index.mjs +2 -1
- package/dist/esm/connectkit/components/NetworkButton/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/NetworkButton/index.native.js +2 -1
- package/dist/esm/connectkit/components/NetworkButton/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/Pages/About/graphics.mjs +2 -1
- package/dist/esm/connectkit/components/Pages/About/graphics.mjs.map +1 -1
- package/dist/esm/connectkit/components/Pages/About/graphics.native.js +2 -1
- package/dist/esm/connectkit/components/Pages/About/graphics.native.js.map +1 -1
- package/dist/esm/connectkit/components/Pages/About/index.mjs +3 -2
- package/dist/esm/connectkit/components/Pages/About/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/Pages/About/index.native.js +3 -2
- package/dist/esm/connectkit/components/Pages/About/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/Pages/Profile/index.mjs +3 -2
- package/dist/esm/connectkit/components/Pages/Profile/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/Pages/Profile/index.native.js +3 -2
- package/dist/esm/connectkit/components/Pages/Profile/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/Pages/SignInWithEthereum/index.mjs +4 -3
- package/dist/esm/connectkit/components/Pages/SignInWithEthereum/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/Pages/SignInWithEthereum/index.native.js +4 -3
- package/dist/esm/connectkit/components/Pages/SignInWithEthereum/index.native.js.map +1 -1
- package/dist/esm/connectkit/profileHeaderAction.mjs +4 -3
- package/dist/esm/connectkit/profileHeaderAction.mjs.map +1 -1
- package/dist/esm/connectkit/profileHeaderAction.native.js +4 -3
- package/dist/esm/connectkit/profileHeaderAction.native.js.map +1 -1
- package/dist/esm/examples/LockContract.mjs +10 -12
- package/dist/esm/examples/LockContract.mjs.map +1 -1
- package/dist/esm/examples/LockContract.native.js +10 -12
- package/dist/esm/examples/LockContract.native.js.map +1 -1
- package/dist/jsx/components/NetworkSwitcher.mjs +3 -5
- package/dist/jsx/components/NetworkSwitcher.mjs.map +1 -1
- package/dist/jsx/components/NetworkSwitcher.native.js +2 -7
- package/dist/jsx/components/NetworkSwitcher.native.js.map +1 -1
- package/dist/jsx/components/TransactionStatus.mjs +4 -5
- package/dist/jsx/components/TransactionStatus.mjs.map +1 -1
- package/dist/jsx/components/TransactionStatus.native.js +3 -4
- package/dist/jsx/components/TransactionStatus.native.js.map +1 -1
- package/dist/jsx/connectkit/components/BalanceButton/index.mjs +3 -2
- package/dist/jsx/connectkit/components/BalanceButton/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/BalanceButton/index.native.js +3 -2
- package/dist/jsx/connectkit/components/BalanceButton/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/Common/Chain/index.mjs +3 -2
- package/dist/jsx/connectkit/components/Common/Chain/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Common/Chain/index.native.js +3 -2
- package/dist/jsx/connectkit/components/Common/Chain/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/Common/ChainSelectDropdown/index.mjs +3 -2
- package/dist/jsx/connectkit/components/Common/ChainSelectDropdown/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Common/ChainSelectDropdown/index.native.js +3 -2
- package/dist/jsx/connectkit/components/Common/ChainSelectDropdown/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/Common/ChainSelectList/index.mjs +8 -7
- package/dist/jsx/connectkit/components/Common/ChainSelectList/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Common/ChainSelectList/index.native.js +8 -7
- package/dist/jsx/connectkit/components/Common/ChainSelectList/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/ConnectButton/index.mjs +9 -8
- package/dist/jsx/connectkit/components/ConnectButton/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/ConnectButton/index.native.js +9 -8
- package/dist/jsx/connectkit/components/ConnectButton/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.mjs +4 -3
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.native.js +4 -3
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.mjs +3 -2
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.native.js +3 -2
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs +4 -3
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js +4 -3
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/NetworkButton/index.mjs +2 -1
- package/dist/jsx/connectkit/components/NetworkButton/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/NetworkButton/index.native.js +2 -1
- package/dist/jsx/connectkit/components/NetworkButton/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/Pages/About/graphics.mjs +2 -1
- package/dist/jsx/connectkit/components/Pages/About/graphics.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Pages/About/graphics.native.js +2 -1
- package/dist/jsx/connectkit/components/Pages/About/graphics.native.js.map +1 -1
- package/dist/jsx/connectkit/components/Pages/About/index.mjs +3 -2
- package/dist/jsx/connectkit/components/Pages/About/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Pages/About/index.native.js +3 -2
- package/dist/jsx/connectkit/components/Pages/About/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/Pages/Profile/index.mjs +3 -2
- package/dist/jsx/connectkit/components/Pages/Profile/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Pages/Profile/index.native.js +3 -2
- package/dist/jsx/connectkit/components/Pages/Profile/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/Pages/SignInWithEthereum/index.mjs +4 -3
- package/dist/jsx/connectkit/components/Pages/SignInWithEthereum/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Pages/SignInWithEthereum/index.native.js +4 -3
- package/dist/jsx/connectkit/components/Pages/SignInWithEthereum/index.native.js.map +1 -1
- package/dist/jsx/connectkit/profileHeaderAction.mjs +4 -3
- package/dist/jsx/connectkit/profileHeaderAction.mjs.map +1 -1
- package/dist/jsx/connectkit/profileHeaderAction.native.js +4 -3
- package/dist/jsx/connectkit/profileHeaderAction.native.js.map +1 -1
- package/dist/jsx/examples/LockContract.mjs +10 -12
- package/dist/jsx/examples/LockContract.mjs.map +1 -1
- package/dist/jsx/examples/LockContract.native.js +9 -11
- package/dist/jsx/examples/LockContract.native.js.map +1 -1
- package/dist/keycloak/login.iife.js +410 -410
- package/package.json +6 -6
- package/src/components/NetworkSwitcher.tsx +4 -9
- package/src/components/TransactionStatus.tsx +4 -4
- package/src/connectkit/components/BalanceButton/index.tsx +4 -3
- package/src/connectkit/components/Common/Chain/index.tsx +3 -2
- package/src/connectkit/components/Common/ChainSelectDropdown/index.tsx +3 -2
- package/src/connectkit/components/Common/ChainSelectList/index.tsx +8 -7
- package/src/connectkit/components/ConnectButton/index.tsx +9 -8
- package/src/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.tsx +6 -3
- package/src/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.tsx +5 -2
- package/src/connectkit/components/ConnectModal/ConnectWithInjector/index.tsx +4 -3
- package/src/connectkit/components/NetworkButton/index.tsx +2 -1
- package/src/connectkit/components/Pages/About/graphics.tsx +2 -1
- package/src/connectkit/components/Pages/About/index.tsx +3 -2
- package/src/connectkit/components/Pages/Profile/index.tsx +3 -2
- package/src/connectkit/components/Pages/SignInWithEthereum/index.tsx +4 -3
- package/src/connectkit/profileHeaderAction.tsx +10 -3
- package/src/examples/LockContract.tsx +9 -9
- package/types/components/NetworkSwitcher.d.ts.map +1 -1
- package/types/connectkit/components/BalanceButton/index.d.ts.map +1 -1
- package/types/connectkit/components/Common/Chain/index.d.ts.map +1 -1
- package/types/connectkit/components/Common/ChainSelectDropdown/index.d.ts.map +1 -1
- package/types/connectkit/components/Common/ChainSelectList/index.d.ts.map +1 -1
- package/types/connectkit/components/ConnectButton/index.d.ts.map +1 -1
- package/types/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.d.ts.map +1 -1
- package/types/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.d.ts.map +1 -1
- package/types/connectkit/components/ConnectModal/ConnectWithInjector/index.d.ts.map +1 -1
- package/types/connectkit/components/NetworkButton/index.d.ts.map +1 -1
- package/types/connectkit/components/Pages/About/graphics.d.ts.map +1 -1
- package/types/connectkit/components/Pages/About/index.d.ts.map +1 -1
- package/types/connectkit/components/Pages/Profile/index.d.ts.map +1 -1
- package/types/connectkit/components/Pages/SignInWithEthereum/index.d.ts.map +1 -1
- package/types/connectkit/profileHeaderAction.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/web3",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.36.0",
|
|
4
4
|
"description": "Web3 wallet integration for multiplatform.one ecosystem with ConnectKit and wagmi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connectkit",
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
"@aave/account": "^0.2.1",
|
|
121
121
|
"@coinbase/wallet-sdk": "^4.4.0",
|
|
122
122
|
"@metamask/connect-evm": "^2.1.1",
|
|
123
|
-
"@multiplatform.one/connectkit": "^7.
|
|
124
|
-
"@multiplatform.one/gpg": "^7.
|
|
125
|
-
"@multiplatform.one/platform": "^7.
|
|
126
|
-
"@multiplatform.one/theme": "^7.
|
|
123
|
+
"@multiplatform.one/connectkit": "^7.36.0",
|
|
124
|
+
"@multiplatform.one/gpg": "^7.36.0",
|
|
125
|
+
"@multiplatform.one/platform": "^7.36.0",
|
|
126
|
+
"@multiplatform.one/theme": "^7.36.0",
|
|
127
127
|
"@noble/ciphers": "^1.3.0",
|
|
128
128
|
"@noble/curves": "^1.9.7",
|
|
129
129
|
"@solana/kit": "^8.5.0",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"wagmi": "^3.7.1"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
|
-
"@multiplatform.one/config": "7.
|
|
149
|
+
"@multiplatform.one/config": "7.36.0",
|
|
150
150
|
"@tamagui/build": "2.7.6",
|
|
151
151
|
"@tanstack/react-query": "^5.104.3",
|
|
152
152
|
"@testing-library/jest-dom": "^7.0.1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
1
|
+
import { transitionProps, PopoverContent, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
2
2
|
import { Button, Popover, Text, XStack, YStack, type ButtonProps } from "tamagui";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { useAccount, useChains, useSwitchChain } from "wagmi";
|
|
@@ -31,15 +31,10 @@ export function NetworkSwitcher({ showTestnets = false, ...buttonProps }: Networ
|
|
|
31
31
|
</Button>
|
|
32
32
|
</Popover.Trigger>
|
|
33
33
|
|
|
34
|
-
<
|
|
35
|
-
{...knobProps.
|
|
36
|
-
// LC-24: enter/exit styles are dead code without a resolved token.
|
|
37
|
-
// web3 does not depend on @multiplatform.one/components, so the knob
|
|
38
|
-
// token is threaded here rather than adopting the PopoverContent wrapper.
|
|
39
|
-
transition={knobProps.transition}
|
|
34
|
+
<PopoverContent
|
|
35
|
+
{...transitionProps(knobProps.motion.overlay)}
|
|
40
36
|
enterStyle={{ y: -10, opacity: 0 }}
|
|
41
37
|
exitStyle={{ y: -10, opacity: 0 }}
|
|
42
|
-
elevation="$4"
|
|
43
38
|
>
|
|
44
39
|
<YStack gap="$2" padding="$2" minWidth={200}>
|
|
45
40
|
<Text fontWeight="bold" fontSize="$3" paddingBottom="$2">
|
|
@@ -63,7 +58,7 @@ export function NetworkSwitcher({ showTestnets = false, ...buttonProps }: Networ
|
|
|
63
58
|
))}
|
|
64
59
|
</YStack>
|
|
65
60
|
<Popover.Arrow borderWidth={1} borderColor="$borderColor" />
|
|
66
|
-
</
|
|
61
|
+
</PopoverContent>
|
|
67
62
|
</Popover>
|
|
68
63
|
);
|
|
69
64
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hash, TransactionReceipt } from "viem";
|
|
2
|
-
import { XStack, YStack, Text, Spinner, Button } from "tamagui";
|
|
2
|
+
import { XStack, YStack, SizableText, Text, Spinner, Button } from "tamagui";
|
|
3
3
|
import { openUrl } from "@multiplatform.one/platform";
|
|
4
4
|
import type { TransactionStatus as TxStatusType } from "../hooks/useContractWrite";
|
|
5
5
|
|
|
@@ -69,9 +69,9 @@ export function TransactionStatus({
|
|
|
69
69
|
</Text>
|
|
70
70
|
)}
|
|
71
71
|
<YStack flex={1}>
|
|
72
|
-
<
|
|
72
|
+
<SizableText fontFamily="$heading" size="$4" color={statusConfig.color}>
|
|
73
73
|
{statusConfig.title}
|
|
74
|
-
</
|
|
74
|
+
</SizableText>
|
|
75
75
|
<Text fontSize="$2" color="$gray10">
|
|
76
76
|
{statusConfig.description}
|
|
77
77
|
</Text>
|
|
@@ -140,7 +140,7 @@ export function TransactionStatus({
|
|
|
140
140
|
{/* Error Details */}
|
|
141
141
|
{error && (
|
|
142
142
|
<YStack gap="$1" paddingTop="$2" borderTopWidth={1} borderTopColor="$red5">
|
|
143
|
-
<Text fontSize="$2" color="$red11"
|
|
143
|
+
<Text fontSize="$2" color="$red11">
|
|
144
144
|
Error Details
|
|
145
145
|
</Text>
|
|
146
146
|
<Text fontSize="$2" color="$red10" numberOfLines={3}>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useEffect, useState } from "react";
|
|
2
3
|
import { All, styled, useIsMounted, ThemedButton, nFormatter } from "@multiplatform.one/connectkit";
|
|
3
4
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -97,7 +98,7 @@ export const Balance: React.FC<BalanceProps> = ({ hideIcon, hideSymbol }) => {
|
|
|
97
98
|
bottom: 0,
|
|
98
99
|
}}
|
|
99
100
|
transition={{
|
|
100
|
-
duration:
|
|
101
|
+
duration: motionSeconds("400ms"),
|
|
101
102
|
ease: [0.25, 1, 0.5, 1],
|
|
102
103
|
delay: 0.4,
|
|
103
104
|
}}
|
|
@@ -142,7 +143,7 @@ export const Balance: React.FC<BalanceProps> = ({ hideIcon, hideSymbol }) => {
|
|
|
142
143
|
opacity: balance?.formatted !== undefined ? 1 : 0,
|
|
143
144
|
}}
|
|
144
145
|
transition={{
|
|
145
|
-
duration: balance && isInitial ?
|
|
146
|
+
duration: balance && isInitial ? motionSeconds("0ms") : motionSeconds("400ms"),
|
|
146
147
|
ease: [0.25, 1, 0.5, 1],
|
|
147
148
|
}}
|
|
148
149
|
>
|
|
@@ -163,7 +164,7 @@ const BalanceButton: React.FC<All & BalanceProps> = ({
|
|
|
163
164
|
}) => {
|
|
164
165
|
return (
|
|
165
166
|
<ThemedButton
|
|
166
|
-
duration={
|
|
167
|
+
duration={motionSeconds("400ms")}
|
|
167
168
|
variant={"secondary"}
|
|
168
169
|
theme={theme}
|
|
169
170
|
mode={mode}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React from "react";
|
|
2
3
|
|
|
3
4
|
import { ChainContainer, LoadingContainer, LogoContainer, Unsupported } from "./styles";
|
|
@@ -95,7 +96,7 @@ const Chain: React.FC<{
|
|
|
95
96
|
initial={{ opacity: 0 }}
|
|
96
97
|
animate={{ opacity: 1 }}
|
|
97
98
|
exit={{ opacity: 0 }}
|
|
98
|
-
transition={{ duration:
|
|
99
|
+
transition={{ duration: motionSeconds("300ms") }}
|
|
99
100
|
>
|
|
100
101
|
{chain?.logo ?? <Chains.UnknownChain />}
|
|
101
102
|
</LogoContainer>
|
|
@@ -105,7 +106,7 @@ const Chain: React.FC<{
|
|
|
105
106
|
initial={{ opacity: 0 }}
|
|
106
107
|
animate={{ opacity: 1 }}
|
|
107
108
|
exit={{ opacity: 0 }}
|
|
108
|
-
transition={{ duration:
|
|
109
|
+
transition={{ duration: motionSeconds("300ms") }}
|
|
109
110
|
>
|
|
110
111
|
{Spinner}
|
|
111
112
|
</LoadingContainer>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
2
3
|
import {
|
|
3
4
|
useContext,
|
|
@@ -180,7 +181,7 @@ const ChainSelectDropdown: React.FC<{
|
|
|
180
181
|
y: -4,
|
|
181
182
|
x: 0,
|
|
182
183
|
transition: {
|
|
183
|
-
duration:
|
|
184
|
+
duration: motionSeconds("100ms"),
|
|
184
185
|
},
|
|
185
186
|
},
|
|
186
187
|
open: {
|
|
@@ -193,7 +194,7 @@ const ChainSelectDropdown: React.FC<{
|
|
|
193
194
|
x: 0,
|
|
194
195
|
transition: {
|
|
195
196
|
ease: [0.76, 0, 0.24, 1],
|
|
196
|
-
duration:
|
|
197
|
+
duration: motionSeconds("quick"),
|
|
197
198
|
},
|
|
198
199
|
},
|
|
199
200
|
}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import { useState } from "react";
|
|
2
3
|
import { useAccount, useSwitchChain } from "wagmi";
|
|
3
4
|
import { chainConfigs } from "../../../constants/chainConfigs";
|
|
@@ -113,7 +114,7 @@ const ChainSelectList = ({ variant }: { variant?: "primary" | "secondary" }) =>
|
|
|
113
114
|
}}
|
|
114
115
|
transition={{
|
|
115
116
|
ease: [0.76, 0, 0.24, 1],
|
|
116
|
-
duration:
|
|
117
|
+
duration: motionSeconds("quick"),
|
|
117
118
|
delay: 0.1,
|
|
118
119
|
}}
|
|
119
120
|
>
|
|
@@ -156,11 +157,11 @@ const ChainSelectList = ({ variant }: { variant?: "primary" | "secondary" }) =>
|
|
|
156
157
|
exit={{
|
|
157
158
|
opacity: 0,
|
|
158
159
|
x: 4,
|
|
159
|
-
transition: { duration:
|
|
160
|
+
transition: { duration: motionSeconds("100ms"), delay: 0 },
|
|
160
161
|
}}
|
|
161
162
|
transition={{
|
|
162
163
|
ease: [0.76, 0, 0.24, 1],
|
|
163
|
-
duration:
|
|
164
|
+
duration: motionSeconds("300ms"),
|
|
164
165
|
delay: 0.2,
|
|
165
166
|
}}
|
|
166
167
|
>
|
|
@@ -183,7 +184,7 @@ const ChainSelectList = ({ variant }: { variant?: "primary" | "secondary" }) =>
|
|
|
183
184
|
exit={{ opacity: 0, x: 4 }}
|
|
184
185
|
transition={{
|
|
185
186
|
ease: [0.76, 0, 0.24, 1],
|
|
186
|
-
duration:
|
|
187
|
+
duration: motionSeconds("300ms"),
|
|
187
188
|
delay: 0.1,
|
|
188
189
|
}}
|
|
189
190
|
>
|
|
@@ -211,7 +212,7 @@ const ChainSelectList = ({ variant }: { variant?: "primary" | "secondary" }) =>
|
|
|
211
212
|
opacity: ch.id === chain?.id ? 1 : 0,
|
|
212
213
|
}}
|
|
213
214
|
transition={{
|
|
214
|
-
duration:
|
|
215
|
+
duration: motionSeconds("300ms"),
|
|
215
216
|
ease: "easeOut",
|
|
216
217
|
}}
|
|
217
218
|
/>
|
|
@@ -222,7 +223,7 @@ const ChainSelectList = ({ variant }: { variant?: "primary" | "secondary" }) =>
|
|
|
222
223
|
layoutId="activeChain"
|
|
223
224
|
layout="position"
|
|
224
225
|
transition={{
|
|
225
|
-
duration:
|
|
226
|
+
duration: motionSeconds("300ms"),
|
|
226
227
|
ease: "easeOut",
|
|
227
228
|
}}
|
|
228
229
|
/>
|
|
@@ -241,7 +242,7 @@ const ChainSelectList = ({ variant }: { variant?: "primary" | "secondary" }) =>
|
|
|
241
242
|
exit={{ opacity: 0 }}
|
|
242
243
|
transition={{
|
|
243
244
|
ease: [0.76, 0, 0.24, 1],
|
|
244
|
-
duration:
|
|
245
|
+
duration: motionSeconds("300ms"),
|
|
245
246
|
}}
|
|
246
247
|
onAnimationStart={triggerResize}
|
|
247
248
|
onAnimationComplete={triggerResize}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { useAccount, useEnsName } from "wagmi";
|
|
3
4
|
import {
|
|
@@ -37,7 +38,7 @@ const contentVariants: Variants = {
|
|
|
37
38
|
opacity: 1,
|
|
38
39
|
x: 0.1,
|
|
39
40
|
transition: {
|
|
40
|
-
duration:
|
|
41
|
+
duration: motionSeconds("400ms"),
|
|
41
42
|
ease: [0.25, 1, 0.5, 1],
|
|
42
43
|
},
|
|
43
44
|
},
|
|
@@ -48,7 +49,7 @@ const contentVariants: Variants = {
|
|
|
48
49
|
pointerEvents: "none",
|
|
49
50
|
position: "absolute",
|
|
50
51
|
transition: {
|
|
51
|
-
duration:
|
|
52
|
+
duration: motionSeconds("400ms"),
|
|
52
53
|
ease: [0.25, 1, 0.5, 1],
|
|
53
54
|
},
|
|
54
55
|
},
|
|
@@ -64,7 +65,7 @@ const addressVariants: Variants = {
|
|
|
64
65
|
x: 0.2,
|
|
65
66
|
opacity: 1,
|
|
66
67
|
transition: {
|
|
67
|
-
duration:
|
|
68
|
+
duration: motionSeconds("400ms"),
|
|
68
69
|
ease: [0.25, 1, 0.5, 1],
|
|
69
70
|
},
|
|
70
71
|
},
|
|
@@ -75,7 +76,7 @@ const addressVariants: Variants = {
|
|
|
75
76
|
pointerEvents: "none",
|
|
76
77
|
position: "absolute",
|
|
77
78
|
transition: {
|
|
78
|
-
duration:
|
|
79
|
+
duration: motionSeconds("400ms"),
|
|
79
80
|
ease: [0.25, 1, 0.5, 1],
|
|
80
81
|
},
|
|
81
82
|
},
|
|
@@ -88,7 +89,7 @@ const textVariants: Variants = {
|
|
|
88
89
|
animate: {
|
|
89
90
|
opacity: 1,
|
|
90
91
|
transition: {
|
|
91
|
-
duration:
|
|
92
|
+
duration: motionSeconds("300ms"),
|
|
92
93
|
ease: [0.25, 1, 0.5, 1],
|
|
93
94
|
},
|
|
94
95
|
},
|
|
@@ -96,7 +97,7 @@ const textVariants: Variants = {
|
|
|
96
97
|
position: "absolute",
|
|
97
98
|
opacity: 0,
|
|
98
99
|
transition: {
|
|
99
|
-
duration:
|
|
100
|
+
duration: motionSeconds("300ms"),
|
|
100
101
|
ease: [0.25, 1, 0.5, 1],
|
|
101
102
|
},
|
|
102
103
|
},
|
|
@@ -391,7 +392,7 @@ export function ConnectKitButton({
|
|
|
391
392
|
width: "auto",
|
|
392
393
|
marginRight: -24,
|
|
393
394
|
transition: {
|
|
394
|
-
duration:
|
|
395
|
+
duration: motionSeconds("400ms"),
|
|
395
396
|
ease: [0.25, 1, 0.5, 1],
|
|
396
397
|
},
|
|
397
398
|
}}
|
|
@@ -401,7 +402,7 @@ export function ConnectKitButton({
|
|
|
401
402
|
width: 0,
|
|
402
403
|
marginRight: 0,
|
|
403
404
|
transition: {
|
|
404
|
-
duration:
|
|
405
|
+
duration: motionSeconds("400ms"),
|
|
405
406
|
ease: [0.25, 1, 0.5, 1],
|
|
406
407
|
},
|
|
407
408
|
}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import { LogoContainer, Logo, Spinner, SpinnerContainer, ExpiringSpinner } from "./styles";
|
|
2
3
|
|
|
3
4
|
import { AnimatePresence } from "framer-motion";
|
|
@@ -17,7 +18,9 @@ const CircleSpinner = ({
|
|
|
17
18
|
countdown?: boolean;
|
|
18
19
|
}) => {
|
|
19
20
|
return (
|
|
20
|
-
<LogoContainer
|
|
21
|
+
<LogoContainer
|
|
22
|
+
transition={{ duration: motionSeconds("500ms"), ease: [0.175, 0.885, 0.32, 0.98] }}
|
|
23
|
+
>
|
|
21
24
|
<Logo
|
|
22
25
|
$small={!unavailable && smallLogo}
|
|
23
26
|
style={unavailable ? { borderRadius: 0 } : undefined}
|
|
@@ -34,7 +37,7 @@ const CircleSpinner = ({
|
|
|
34
37
|
exit={{
|
|
35
38
|
opacity: 0,
|
|
36
39
|
transition: {
|
|
37
|
-
duration: countdown ? 1 :
|
|
40
|
+
duration: countdown ? 1 : motionSeconds("0ms"),
|
|
38
41
|
},
|
|
39
42
|
}}
|
|
40
43
|
>
|
|
@@ -75,7 +78,7 @@ const CircleSpinner = ({
|
|
|
75
78
|
initial={{ opacity: 0 }}
|
|
76
79
|
animate={{ opacity: 1 }}
|
|
77
80
|
exit={{ opacity: 0 }}
|
|
78
|
-
transition={{ duration:
|
|
81
|
+
transition={{ duration: motionSeconds("250ms") }}
|
|
79
82
|
>
|
|
80
83
|
<div />
|
|
81
84
|
<div />
|
package/src/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import { LogoContainer, Logo, Spinner, SpinnerContainer } from "./styles";
|
|
2
3
|
import { AnimatePresence } from "framer-motion";
|
|
3
4
|
|
|
@@ -9,7 +10,9 @@ const SquircleSpinner = ({
|
|
|
9
10
|
connecting?: boolean;
|
|
10
11
|
}) => {
|
|
11
12
|
return (
|
|
12
|
-
<LogoContainer
|
|
13
|
+
<LogoContainer
|
|
14
|
+
transition={{ duration: motionSeconds("500ms"), ease: [0.175, 0.885, 0.32, 0.98] }}
|
|
15
|
+
>
|
|
13
16
|
<Logo>{logo}</Logo>
|
|
14
17
|
<SpinnerContainer>
|
|
15
18
|
<AnimatePresence>
|
|
@@ -21,7 +24,7 @@ const SquircleSpinner = ({
|
|
|
21
24
|
exit={{
|
|
22
25
|
opacity: 0,
|
|
23
26
|
transition: {
|
|
24
|
-
duration:
|
|
27
|
+
duration: motionSeconds("0ms"),
|
|
25
28
|
},
|
|
26
29
|
}}
|
|
27
30
|
/>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useEffect, useState } from "react";
|
|
2
3
|
import { AnimatePresence, Variants } from "framer-motion";
|
|
3
4
|
import {
|
|
@@ -63,7 +64,7 @@ const contentVariants: Variants = {
|
|
|
63
64
|
scale: 1,
|
|
64
65
|
transition: {
|
|
65
66
|
ease: [0.16, 1, 0.3, 1],
|
|
66
|
-
duration:
|
|
67
|
+
duration: motionSeconds("400ms"),
|
|
67
68
|
delay: 0.05,
|
|
68
69
|
position: { delay: 0 },
|
|
69
70
|
},
|
|
@@ -74,7 +75,7 @@ const contentVariants: Variants = {
|
|
|
74
75
|
scale: 0.95,
|
|
75
76
|
transition: {
|
|
76
77
|
ease: [0.16, 1, 0.3, 1],
|
|
77
|
-
duration:
|
|
78
|
+
duration: motionSeconds("300ms"),
|
|
78
79
|
},
|
|
79
80
|
},
|
|
80
81
|
};
|
|
@@ -287,7 +288,7 @@ const ConnectWithInjector: React.FC<{
|
|
|
287
288
|
animate={{ opacity: 1, scale: 1 }}
|
|
288
289
|
exit={{ opacity: 0, scale: 0.8 }}
|
|
289
290
|
whileTap={{ scale: 0.9 }}
|
|
290
|
-
transition={{ duration:
|
|
291
|
+
transition={{ duration: motionSeconds("100ms") }}
|
|
291
292
|
onClick={runConnect}
|
|
292
293
|
>
|
|
293
294
|
<RetryIconContainer>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useState } from "react";
|
|
2
3
|
import {
|
|
3
4
|
All,
|
|
@@ -66,7 +67,7 @@ const NetworkButton: React.FC<NetworkButtonProps & All> = ({
|
|
|
66
67
|
initial={{ opacity: 0 }}
|
|
67
68
|
animate={{ opacity: 1 }}
|
|
68
69
|
exit={{ opacity: 0 }}
|
|
69
|
-
transition={{ duration:
|
|
70
|
+
transition={{ duration: motionSeconds("200ms"), ease: "linear" }}
|
|
70
71
|
>
|
|
71
72
|
<ChainSelectDropdown open={open} onClose={() => setOpen(false)}>
|
|
72
73
|
<ThemedButton
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import { motion, EasingFunction } from "framer-motion";
|
|
2
3
|
import { styled } from "@multiplatform.one/connectkit";
|
|
3
4
|
import { keyframes } from "styled-components";
|
|
@@ -664,7 +665,7 @@ export const SlideThree = ({ layoutId }: Slide) => {
|
|
|
664
665
|
animate={{ rotate: 0 }}
|
|
665
666
|
exit={{
|
|
666
667
|
rotate: -180,
|
|
667
|
-
transition: { duration:
|
|
668
|
+
transition: { duration: motionSeconds("0ms") }, // needed to avoid AnimatePresence taking too long to unmount the animation which causes issues on page close
|
|
668
669
|
}}
|
|
669
670
|
transition={{
|
|
670
671
|
type: "spring",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionDurationMs, motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useEffect, useRef, useState } from "react";
|
|
2
3
|
import {
|
|
3
4
|
ImageContainer,
|
|
@@ -39,7 +40,7 @@ const About: React.FC = () => {
|
|
|
39
40
|
const scrollPos = useRef(0);
|
|
40
41
|
|
|
41
42
|
const animationEase: Easing = [0.16, 1, 0.3, 1];
|
|
42
|
-
const animationDuration =
|
|
43
|
+
const animationDuration = motionDurationMs("superLazy");
|
|
43
44
|
const autoplayDelay = 5100;
|
|
44
45
|
|
|
45
46
|
let interval: ReturnType<typeof setTimeout>;
|
|
@@ -207,7 +208,7 @@ const About: React.FC = () => {
|
|
|
207
208
|
<MobileImageContainer>
|
|
208
209
|
<MotionConfig
|
|
209
210
|
transition={{
|
|
210
|
-
duration:
|
|
211
|
+
duration: motionSeconds("0ms"),
|
|
211
212
|
}}
|
|
212
213
|
>
|
|
213
214
|
<ImageContainerInner>{mobileGraphics[i]}</ImageContainerInner>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useEffect, useState } from "react";
|
|
2
3
|
import {
|
|
3
4
|
useContext,
|
|
@@ -122,7 +123,7 @@ const Profile: React.FC<{ closeModal?: () => void }> = ({ closeModal }) => {
|
|
|
122
123
|
initial={{ opacity: 0 }}
|
|
123
124
|
animate={{ opacity: 1 }}
|
|
124
125
|
exit={{ opacity: 0 }}
|
|
125
|
-
transition={{ duration:
|
|
126
|
+
transition={{ duration: motionSeconds("200ms") }}
|
|
126
127
|
>
|
|
127
128
|
{nFormatter(Number(balance?.formatted))}
|
|
128
129
|
{` `}
|
|
@@ -134,7 +135,7 @@ const Profile: React.FC<{ closeModal?: () => void }> = ({ closeModal }) => {
|
|
|
134
135
|
initial={{ opacity: 0 }}
|
|
135
136
|
animate={{ opacity: 1 }}
|
|
136
137
|
exit={{ opacity: 0 }}
|
|
137
|
-
transition={{ duration:
|
|
138
|
+
transition={{ duration: motionSeconds("200ms") }}
|
|
138
139
|
>
|
|
139
140
|
|
|
140
141
|
</LoadingBalance>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useEffect, useState } from "react";
|
|
2
3
|
|
|
3
4
|
import {
|
|
@@ -30,8 +31,8 @@ import { getAppIcon } from "../../../defaultConfig";
|
|
|
30
31
|
|
|
31
32
|
import { AnimatePresence, motion } from "framer-motion";
|
|
32
33
|
|
|
33
|
-
const transition = { duration:
|
|
34
|
-
const copyTransition = { duration:
|
|
34
|
+
const transition = { duration: motionSeconds("200ms"), ease: [0.26, 0.08, 0.25, 1] };
|
|
35
|
+
const copyTransition = { duration: motionSeconds("quick"), ease: [0.26, 0.08, 0.25, 1] };
|
|
35
36
|
|
|
36
37
|
const SignInWithEthereum: React.FC = () => {
|
|
37
38
|
const context = useContext();
|
|
@@ -131,7 +132,7 @@ const SignInWithEthereum: React.FC = () => {
|
|
|
131
132
|
strokeDashoffset: [0, -6],
|
|
132
133
|
}}
|
|
133
134
|
transition={{
|
|
134
|
-
duration:
|
|
135
|
+
duration: motionSeconds("400ms"),
|
|
135
136
|
ease: "linear",
|
|
136
137
|
repeat: Infinity,
|
|
137
138
|
}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { motionSeconds } from "@multiplatform.one/theme/motion";
|
|
1
2
|
import React, { useContext as useReactContext } from "react";
|
|
2
3
|
import { motion } from "framer-motion";
|
|
3
4
|
|
|
@@ -74,12 +75,15 @@ export const ProfileSiweHeaderAction: React.FC<HeaderActionProps> = ({ mobile, i
|
|
|
74
75
|
animate={{
|
|
75
76
|
opacity: 1,
|
|
76
77
|
scale: 1,
|
|
77
|
-
transition: { delay: 0.5, duration:
|
|
78
|
+
transition: { delay: 0.5, duration: motionSeconds("200ms") },
|
|
78
79
|
}}
|
|
79
80
|
exit={{
|
|
80
81
|
opacity: 0,
|
|
81
82
|
scale: 0.6,
|
|
82
|
-
transition: {
|
|
83
|
+
transition: {
|
|
84
|
+
delay: 0,
|
|
85
|
+
duration: mobile ? motionSeconds("0ms") : motionSeconds("100ms"),
|
|
86
|
+
},
|
|
83
87
|
}}
|
|
84
88
|
>
|
|
85
89
|
<SignInTooltip>{locales.signInWithEthereumScreen_tooltip}</SignInTooltip>
|
|
@@ -96,7 +100,10 @@ export const ProfileSiweHeaderAction: React.FC<HeaderActionProps> = ({ mobile, i
|
|
|
96
100
|
initial={{ opacity: 0 }}
|
|
97
101
|
animate={{ opacity: 1 }}
|
|
98
102
|
exit={{ opacity: 0 }}
|
|
99
|
-
transition={{
|
|
103
|
+
transition={{
|
|
104
|
+
duration: mobile ? motionSeconds("0ms") : motionSeconds("100ms"),
|
|
105
|
+
delay: mobile ? 0.01 : 0,
|
|
106
|
+
}}
|
|
100
107
|
>
|
|
101
108
|
<ProfileIcon isSignedIn={isSignedIn} />
|
|
102
109
|
</SiweButton>
|
|
@@ -2,7 +2,7 @@ import { useMemo } from "react";
|
|
|
2
2
|
import type { Address } from "viem";
|
|
3
3
|
import { formatEther } from "viem";
|
|
4
4
|
import { formatAbsoluteDateTime } from "@multiplatform.one/theme";
|
|
5
|
-
import { YStack, XStack, Text, Button, Separator, Card } from "tamagui";
|
|
5
|
+
import { YStack, XStack, SizableText, Text, Button, Separator, Card } from "tamagui";
|
|
6
6
|
import { useContractRead } from "../hooks/useContractRead";
|
|
7
7
|
import { useContractWrite } from "../hooks/useContractWrite";
|
|
8
8
|
import { TransactionStatus } from "../components/TransactionStatus";
|
|
@@ -178,9 +178,9 @@ export function LockContract({ address, chainId, explorerUrl }: LockContractProp
|
|
|
178
178
|
|
|
179
179
|
{/* Contract State */}
|
|
180
180
|
<YStack gap="$3">
|
|
181
|
-
<
|
|
181
|
+
<SizableText fontFamily="$heading" size="$4">
|
|
182
182
|
Contract State
|
|
183
|
-
</
|
|
183
|
+
</SizableText>
|
|
184
184
|
|
|
185
185
|
{isLoading ? (
|
|
186
186
|
<Text color="$gray10">Loading contract data...</Text>
|
|
@@ -196,16 +196,16 @@ export function LockContract({ address, chainId, explorerUrl }: LockContractProp
|
|
|
196
196
|
{/* Balance */}
|
|
197
197
|
<XStack justifyContent="space-between" alignItems="center">
|
|
198
198
|
<Text color="$gray11">Locked Balance</Text>
|
|
199
|
-
<
|
|
199
|
+
<SizableText fontFamily="$heading" size="$4">
|
|
200
200
|
{balanceData ? formatEther(balanceData.value) : "0"} ETH
|
|
201
|
-
</
|
|
201
|
+
</SizableText>
|
|
202
202
|
</XStack>
|
|
203
203
|
|
|
204
204
|
{/* Unlock Time */}
|
|
205
205
|
<XStack justifyContent="space-between" alignItems="center">
|
|
206
206
|
<Text color="$gray11">Unlock Time</Text>
|
|
207
207
|
<YStack alignItems="flex-end">
|
|
208
|
-
<Text
|
|
208
|
+
<Text>{formattedUnlockTime}</Text>
|
|
209
209
|
{timeRemaining && (
|
|
210
210
|
<Text fontSize="$2" color="$orange10">
|
|
211
211
|
{timeRemaining} remaining
|
|
@@ -234,9 +234,9 @@ export function LockContract({ address, chainId, explorerUrl }: LockContractProp
|
|
|
234
234
|
|
|
235
235
|
{/* Withdraw Action */}
|
|
236
236
|
<YStack gap="$3">
|
|
237
|
-
<
|
|
237
|
+
<SizableText fontFamily="$heading" size="$4">
|
|
238
238
|
Actions
|
|
239
|
-
</
|
|
239
|
+
</SizableText>
|
|
240
240
|
|
|
241
241
|
<Button
|
|
242
242
|
size="$4"
|
|
@@ -245,7 +245,7 @@ export function LockContract({ address, chainId, explorerUrl }: LockContractProp
|
|
|
245
245
|
onPress={handleWithdraw}
|
|
246
246
|
opacity={canWithdraw ? 1 : 0.5}
|
|
247
247
|
>
|
|
248
|
-
<Text
|
|
248
|
+
<Text>{isWithdrawing ? "Processing..." : "Withdraw Funds"}</Text>
|
|
249
249
|
</Button>
|
|
250
250
|
|
|
251
251
|
{!canWithdraw && unlockTime && (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkSwitcher.d.ts","sourceRoot":"","sources":["../../src/components/NetworkSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAIlF,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACzE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAAE,YAAoB,EAAE,GAAG,WAAW,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"NetworkSwitcher.d.ts","sourceRoot":"","sources":["../../src/components/NetworkSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAIlF,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACzE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAAE,YAAoB,EAAE,GAAG,WAAW,EAAE,EAAE,oBAAoB,kDAsD7F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/connectkit/components/BalanceButton/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/connectkit/components/BalanceButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAkD,MAAM,+BAA+B,CAAC;AAuCpG,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA6G1C,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,GAAG,YAAY,CAkB/C,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/connectkit/components/Common/Chain/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/connectkit/components/Common/Chain/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6C1B,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAiEA,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/connectkit/components/Common/ChainSelectDropdown/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/connectkit/components/Common/ChainSelectDropdown/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAmBzF,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CA0LA,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/connectkit/components/Common/ChainSelectList/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/connectkit/components/Common/ChainSelectList/index.tsx"],"names":[],"mappings":"AA2DA,QAAA,MAAM,eAAe,GAAI,aAAa;IAAE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAAE,4CAyM1E,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/connectkit/components/ConnectButton/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/connectkit/components/ConnectButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAOL,WAAW,EACX,IAAI,EACJ,KAAK,EAMN,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAgF7B,KAAK,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;AAE1B,KAAK,0BAA0B,GAAG;IAChC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE;QACvB,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;QAClB,KAAK,CAAC,EAAE,KAAK,GAAG;YACd,WAAW,CAAC,EAAE,OAAO,CAAC;SACvB,CAAC;QACF,WAAW,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;QACtB,OAAO,CAAC,EAAE,IAAI,CAAC;QACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,KAAK,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC;AA6LF,KAAK,qBAAqB,GAAG;IAE3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,WAAW,CAAC;IAG1B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAE/B,KAAK,EACL,WAAmB,EACnB,UAAiB,EAGjB,KAAK,EACL,IAAI,EACJ,WAAW,EAGX,OAAO,GACR,EAAE,qBAAqB,kDA+GvB;yBA5He,gBAAgB"}
|
package/types/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,aAAa,GAAI,0DAMpB;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,4CAwEA,CAAC;AAEF,eAAe,aAAa,CAAC"}
|