signer-test-sdk-react 0.0.22 → 0.0.24
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/CHANGELOG.md +29 -0
- package/README.md +4 -0
- package/dist/src/AbstraxnProvider.d.ts +5 -13
- package/dist/src/AbstraxnProvider.js +14 -3126
- package/dist/src/AbstraxnProvider.js.map +1 -1
- package/dist/src/ConnectButton.css +1 -1
- package/dist/src/ExternalWalletButtons.css +1 -1
- package/dist/src/ExternalWalletButtons.js +2 -2
- package/dist/src/ExternalWalletButtons.js.map +1 -1
- package/dist/src/OnboardingUI.d.ts +1 -1
- package/dist/src/WalletModal.css +193 -373
- package/dist/src/WalletModal.d.ts +1 -1
- package/dist/src/WalletModal.js +108 -45
- package/dist/src/WalletModal.js.map +1 -1
- package/dist/src/chains.d.ts +4 -3
- package/dist/src/chains.js +154 -84
- package/dist/src/chains.js.map +1 -1
- package/dist/src/components/AbstraxnProvider/AbstraxnProvider.d.ts +12 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProvider.js +146 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProvider.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.d.ts +25 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.js +3086 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.d.ts +8 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.js +46 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.d.ts +8 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.js +12 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/context.d.ts +2 -0
- package/dist/src/components/AbstraxnProvider/context.js +6 -0
- package/dist/src/components/AbstraxnProvider/context.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/index.d.ts +6 -0
- package/dist/src/components/AbstraxnProvider/index.js +7 -0
- package/dist/src/components/AbstraxnProvider/index.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.d.ts +30 -0
- package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.js +49 -0
- package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.d.ts +2 -0
- package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.js +13 -0
- package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.d.ts +22 -0
- package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.js +242 -0
- package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/useWalletInitialization.d.ts +25 -0
- package/dist/src/components/AbstraxnProvider/useWalletInitialization.js +539 -0
- package/dist/src/components/AbstraxnProvider/useWalletInitialization.js.map +1 -0
- package/dist/src/components/AbstraxnProvider/utils.d.ts +41 -0
- package/dist/src/components/AbstraxnProvider/utils.js +139 -0
- package/dist/src/components/AbstraxnProvider/utils.js.map +1 -0
- package/dist/src/components/OnboardingUI/OnboardingUI.css +8 -5
- package/dist/src/components/OnboardingUI/OnboardingUIReact.d.ts +1 -1
- package/dist/src/components/OnboardingUI/OnboardingUIWeb.d.ts +1 -1
- package/dist/src/components/OnboardingUI/OnboardingUIWeb.js +7 -1
- package/dist/src/components/OnboardingUI/OnboardingUIWeb.js.map +1 -1
- package/dist/src/components/OnboardingUI/components/EmailForm.d.ts +1 -1
- package/dist/src/components/OnboardingUI/components/EmailForm.js +1 -1
- package/dist/src/components/OnboardingUI/components/EmailForm.js.map +1 -1
- package/dist/src/components/OnboardingUI/components/OtpForm.d.ts +1 -1
- package/dist/src/components/OnboardingUI/components/PasskeyButton.d.ts +1 -1
- package/dist/src/components/OnboardingUI/components/SocialButtons.d.ts +1 -1
- package/dist/src/components/OnboardingUI/hooks/useAuthMethods.d.ts +1 -1
- package/dist/src/components/OnboardingUI/hooks/useOnboarding.d.ts +1 -1
- package/dist/src/components/OnboardingUI/index.d.ts +1 -1
- package/dist/src/components/WalletModal/components/ChainSelector.css +249 -102
- package/dist/src/components/WalletModal/components/ChainSelector.d.ts +7 -6
- package/dist/src/components/WalletModal/components/ChainSelector.js +68 -27
- package/dist/src/components/WalletModal/components/ChainSelector.js.map +1 -1
- package/dist/src/components/WalletModal/components/ExportKeyModal.css +89 -88
- package/dist/src/components/WalletModal/components/ExportKeyModal.d.ts +6 -1
- package/dist/src/components/WalletModal/components/ExportKeyModal.js +6 -11
- package/dist/src/components/WalletModal/components/ExportKeyModal.js.map +1 -1
- package/dist/src/components/WalletModal/components/ExportWarningModal.css +107 -2
- package/dist/src/components/WalletModal/components/ExportWarningModal.d.ts +7 -1
- package/dist/src/components/WalletModal/components/ExportWarningModal.js +5 -3
- package/dist/src/components/WalletModal/components/ExportWarningModal.js.map +1 -1
- package/dist/src/components/WalletModal/components/ManageWalletModal.css +90 -4
- package/dist/src/components/WalletModal/components/ManageWalletModal.d.ts +3 -3
- package/dist/src/components/WalletModal/components/ManageWalletModal.js +28 -13
- package/dist/src/components/WalletModal/components/ManageWalletModal.js.map +1 -1
- package/dist/src/components/WalletModal/components/PreviewTransactionModal.css +3 -4
- package/dist/src/components/WalletModal/components/ReceiveModal.css +93 -58
- package/dist/src/components/WalletModal/components/ReceiveModal.js +1 -1
- package/dist/src/components/WalletModal/components/ReceiveModal.js.map +1 -1
- package/dist/src/components/WalletModal/components/SendModal.css +170 -127
- package/dist/src/components/WalletModal/components/SendModal.d.ts +4 -6
- package/dist/src/components/WalletModal/components/SendModal.js +131 -39
- package/dist/src/components/WalletModal/components/SendModal.js.map +1 -1
- package/dist/src/components/WalletModal/components/SuccessModal.css +7 -8
- package/dist/src/components/WalletModal/components/TokenSelectorModal.css +240 -0
- package/dist/src/components/WalletModal/components/TokenSelectorModal.d.ts +21 -0
- package/dist/src/components/WalletModal/components/TokenSelectorModal.js +44 -0
- package/dist/src/components/WalletModal/components/TokenSelectorModal.js.map +1 -0
- package/dist/src/components/WalletModal/components/UserAvatar.d.ts +1 -1
- package/dist/src/components/WalletModal/components/index.d.ts +2 -0
- package/dist/src/components/WalletModal/components/index.js +1 -0
- package/dist/src/components/WalletModal/components/index.js.map +1 -1
- package/dist/src/components/WalletModal/hooks/useSendTransaction.d.ts +1 -1
- package/dist/src/hooks.d.ts +402 -362
- package/dist/src/hooks.js +486 -244
- package/dist/src/hooks.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/types.d.ts +6 -6
- package/dist/src/wagmiConfig.d.ts +2 -2
- package/dist/src/wagmiConfig.js +34 -21
- package/dist/src/wagmiConfig.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
|
@@ -1,133 +1,134 @@
|
|
|
1
1
|
/* Export Key Modal Styles - extracted from WalletModal.css */
|
|
2
|
-
.wallet-modal-export-
|
|
2
|
+
.wallet-modal-export-key-body {
|
|
3
|
+
width: 100%;
|
|
3
4
|
display: flex;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
margin-bottom: 24px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.wallet-modal-export-title {
|
|
10
|
-
font-size: 20px;
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
margin: 0;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 16px;
|
|
13
7
|
}
|
|
14
8
|
|
|
15
|
-
.wallet-modal-
|
|
16
|
-
|
|
9
|
+
.wallet-modal-export-key-warning {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
gap: 12px;
|
|
13
|
+
padding: 12px 14px;
|
|
14
|
+
border-radius: 12px;
|
|
15
|
+
border: 1px solid;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
.wallet-modal-theme-light .wallet-modal-export-
|
|
20
|
-
|
|
18
|
+
.wallet-modal-theme-light .wallet-modal-export-key-warning {
|
|
19
|
+
background: #f3f4f6;
|
|
20
|
+
border-color: #e5e7eb;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.wallet-modal-export-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
gap: 20px;
|
|
23
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-warning {
|
|
24
|
+
background: #2a2a2a;
|
|
25
|
+
border-color: #3a3a3a;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
.wallet-modal-export-key-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
font-family: monospace;
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
word-break: break-all;
|
|
36
|
-
min-height: 100px;
|
|
37
|
-
max-height: 200px;
|
|
38
|
-
overflow-y: auto;
|
|
39
|
-
transition: all 0.3s;
|
|
28
|
+
.wallet-modal-export-key-warning-icon {
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
margin-top: 2px;
|
|
31
|
+
color: #2563eb;
|
|
40
32
|
}
|
|
41
33
|
|
|
42
|
-
.wallet-modal-theme-dark .wallet-modal-export-key-
|
|
43
|
-
|
|
44
|
-
border-color: #3a3a3a;
|
|
45
|
-
color: #ffffff;
|
|
34
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-warning-icon {
|
|
35
|
+
color: #60a5fa;
|
|
46
36
|
}
|
|
47
37
|
|
|
48
|
-
.wallet-modal-
|
|
49
|
-
|
|
50
|
-
border-color: #e5e7eb;
|
|
51
|
-
color: #111827;
|
|
38
|
+
.wallet-modal-export-key-warning-text {
|
|
39
|
+
min-width: 0;
|
|
52
40
|
}
|
|
53
41
|
|
|
54
|
-
.wallet-modal-export-key-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
.wallet-modal-export-key-warning-title {
|
|
43
|
+
font-size: 13px;
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
line-height: 1.35;
|
|
58
46
|
}
|
|
59
47
|
|
|
60
|
-
.wallet-modal-export-key-
|
|
48
|
+
.wallet-modal-export-key-warning-subtitle {
|
|
49
|
+
margin-top: 2px;
|
|
61
50
|
font-size: 12px;
|
|
62
|
-
|
|
63
|
-
opacity: 0.
|
|
64
|
-
margin: 0;
|
|
51
|
+
line-height: 1.35;
|
|
52
|
+
opacity: 0.85;
|
|
65
53
|
}
|
|
66
54
|
|
|
67
|
-
.wallet-modal-theme-
|
|
68
|
-
|
|
55
|
+
.wallet-modal-theme-light .wallet-modal-export-key-warning-title,
|
|
56
|
+
.wallet-modal-theme-light .wallet-modal-export-key-warning-subtitle {
|
|
57
|
+
color: #111827;
|
|
69
58
|
}
|
|
70
59
|
|
|
71
|
-
.wallet-modal-theme-
|
|
72
|
-
|
|
60
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-warning-title,
|
|
61
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-warning-subtitle {
|
|
62
|
+
color: #ffffff;
|
|
73
63
|
}
|
|
74
64
|
|
|
75
|
-
.wallet-modal-export-
|
|
65
|
+
.wallet-modal-export-key-field {
|
|
76
66
|
width: 100%;
|
|
77
|
-
padding: 12px 24px;
|
|
78
|
-
border-radius: 10px;
|
|
79
|
-
border: 1px solid;
|
|
80
|
-
background: transparent;
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
transition: all 0.2s;
|
|
83
67
|
display: flex;
|
|
84
68
|
align-items: center;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
.wallet-modal-theme-dark .wallet-modal-export-copy-btn {
|
|
92
|
-
border-color: #3a3a3a;
|
|
93
|
-
color: #ffffff;
|
|
69
|
+
gap: 10px;
|
|
70
|
+
padding: 12px 14px;
|
|
71
|
+
border-radius: 12px;
|
|
72
|
+
border: 1px solid;
|
|
73
|
+
box-sizing: border-box;
|
|
94
74
|
}
|
|
95
75
|
|
|
96
|
-
.wallet-modal-theme-light .wallet-modal-export-
|
|
76
|
+
.wallet-modal-theme-light .wallet-modal-export-key-field {
|
|
77
|
+
background: #ffffff;
|
|
97
78
|
border-color: #e5e7eb;
|
|
98
|
-
color: #111827;
|
|
99
79
|
}
|
|
100
80
|
|
|
101
|
-
.wallet-modal-theme-dark .wallet-modal-export-
|
|
81
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-field {
|
|
102
82
|
background: #2a2a2a;
|
|
103
|
-
border-color: #
|
|
83
|
+
border-color: #3a3a3a;
|
|
104
84
|
}
|
|
105
85
|
|
|
106
|
-
.wallet-modal-
|
|
107
|
-
|
|
108
|
-
|
|
86
|
+
.wallet-modal-export-key-value {
|
|
87
|
+
flex: 1;
|
|
88
|
+
min-width: 0;
|
|
89
|
+
font-family: 'GeistMono', 'SF Mono', monospace;
|
|
90
|
+
font-size: 13px;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
text-overflow: ellipsis;
|
|
109
94
|
}
|
|
110
95
|
|
|
111
|
-
.wallet-modal-export-
|
|
112
|
-
|
|
113
|
-
cursor: not-allowed;
|
|
96
|
+
.wallet-modal-theme-light .wallet-modal-export-key-value {
|
|
97
|
+
color: #111827;
|
|
114
98
|
}
|
|
115
99
|
|
|
116
|
-
.wallet-modal-export-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
100
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-value {
|
|
101
|
+
color: #ffffff;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.wallet-modal-export-key-inline-copy {
|
|
105
|
+
background: transparent;
|
|
120
106
|
border: none;
|
|
121
|
-
font-size: 16px;
|
|
122
|
-
font-weight: 600;
|
|
123
107
|
cursor: pointer;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
108
|
+
padding: 6px;
|
|
109
|
+
border-radius: 8px;
|
|
110
|
+
transition: background 0.15s ease;
|
|
111
|
+
color: inherit;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.wallet-modal-theme-light .wallet-modal-export-key-inline-copy {
|
|
119
|
+
color: #6b7280;
|
|
127
120
|
}
|
|
128
121
|
|
|
129
|
-
.wallet-modal-export-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-inline-copy {
|
|
123
|
+
color: #9ca3af;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.wallet-modal-theme-light .wallet-modal-export-key-inline-copy:hover {
|
|
127
|
+
background: rgba(17, 24, 39, 0.06);
|
|
128
|
+
color: #111827;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.wallet-modal-theme-dark .wallet-modal-export-key-inline-copy:hover {
|
|
132
|
+
background: rgba(255, 255, 255, 0.08);
|
|
133
|
+
color: #ffffff;
|
|
133
134
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Export Key Modal Component
|
|
3
|
+
*/
|
|
4
|
+
import { type CSSProperties } from 'react';
|
|
1
5
|
import './ExportKeyModal.css';
|
|
2
6
|
import '../../../WalletModal.css';
|
|
3
7
|
export interface ExportKeyModalProps {
|
|
@@ -5,5 +9,6 @@ export interface ExportKeyModalProps {
|
|
|
5
9
|
onClose: () => void;
|
|
6
10
|
privateKey: string;
|
|
7
11
|
theme?: 'light' | 'dark';
|
|
12
|
+
style?: CSSProperties;
|
|
8
13
|
}
|
|
9
|
-
export declare function ExportKeyModal({ isOpen, onClose, privateKey, theme, }: ExportKeyModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export declare function ExportKeyModal({ isOpen, onClose, privateKey, theme, style, }: ExportKeyModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,31 +1,26 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Export Key Modal Component
|
|
4
4
|
*/
|
|
5
5
|
import { useState, useCallback } from 'react';
|
|
6
6
|
import './ExportKeyModal.css';
|
|
7
7
|
import '../../../WalletModal.css';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import { FiInfo } from 'react-icons/fi';
|
|
9
|
+
export function ExportKeyModal({ isOpen, onClose, privateKey, theme = 'dark', style, }) {
|
|
10
10
|
const [copied, setCopied] = useState(false);
|
|
11
11
|
const handleCopy = useCallback(() => {
|
|
12
|
-
if (privateKey
|
|
12
|
+
if (privateKey) {
|
|
13
13
|
navigator.clipboard.writeText(privateKey);
|
|
14
14
|
setCopied(true);
|
|
15
15
|
setTimeout(() => setCopied(false), 2000);
|
|
16
16
|
}
|
|
17
|
-
}, [privateKey
|
|
17
|
+
}, [privateKey]);
|
|
18
18
|
const handleClose = useCallback(() => {
|
|
19
|
-
setShowPrivateKey(false);
|
|
20
19
|
setCopied(false);
|
|
21
20
|
onClose();
|
|
22
21
|
}, [onClose]);
|
|
23
22
|
if (!isOpen)
|
|
24
23
|
return null;
|
|
25
|
-
return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: handleClose, children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-export-key`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-
|
|
26
|
-
if (!showPrivateKey) {
|
|
27
|
-
setShowPrivateKey(true);
|
|
28
|
-
}
|
|
29
|
-
}, style: { cursor: showPrivateKey ? 'text' : 'pointer' }, children: privateKey }), !showPrivateKey && (_jsx("p", { className: "wallet-modal-export-key-hint", children: "Click to reveal private key" })), _jsx("button", { className: "wallet-modal-export-copy-btn", onClick: handleCopy, disabled: !showPrivateKey, children: copied ? (_jsxs(_Fragment, { children: [_jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: _jsx("path", { d: "M13.5 4L6 11.5L2.5 8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("span", { children: "Copied!" })] })) : (_jsxs(_Fragment, { children: [_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [_jsx("path", { d: "M5.5 3.5H3.5C2.67157 3.5 2 4.17157 2 5V12.5C2 13.3284 2.67157 14 3.5 14H11C11.8284 14 12.5 13.3284 12.5 12.5V10.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M5.5 3.5C5.5 2.67157 6.17157 2 7 2H12.5C13.3284 2 14 2.67157 14 3.5V9C14 9.82843 13.3284 10.5 12.5 10.5H7C6.17157 10.5 5.5 9.82843 5.5 9V3.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "Copy" })] })) }), _jsx("button", { className: `wallet-modal-export-done-btn wallet-modal-theme-${theme}`, onClick: handleClose, children: "I'm Done" })] })] }) }));
|
|
24
|
+
return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: handleClose, style: style, children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-export-key`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-receive-header", children: [_jsx("button", { className: "wallet-modal-back", onClick: handleClose, children: _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("h2", { className: "wallet-modal-receive-title", children: "Export Private Key" }), _jsx("button", { className: "wallet-modal-close", onClick: handleClose, "aria-label": "Close", children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] }), _jsxs("div", { className: "wallet-modal-export-key-body", children: [_jsxs("div", { className: "wallet-modal-export-key-warning", role: "note", children: [_jsx("div", { className: "wallet-modal-export-key-warning-icon", "aria-hidden": "true", children: _jsx(FiInfo, { size: 18 }) }), _jsxs("div", { className: "wallet-modal-export-key-warning-text", children: [_jsx("div", { className: "wallet-modal-export-key-warning-title", children: "Don't share your private key with anyone." }), _jsx("div", { className: "wallet-modal-export-key-warning-subtitle", children: "This private key grants full access to your wallet and all held assets." })] })] }), _jsxs("div", { className: "wallet-modal-export-key-field", children: [_jsx("div", { className: "wallet-modal-export-key-value", title: privateKey, children: privateKey }), _jsx("button", { className: "wallet-modal-export-key-inline-copy", onClick: handleCopy, type: "button", "aria-label": "Copy private key", children: _jsxs("svg", { width: "18", height: "18", viewBox: "0 0 16 16", fill: "none", children: [_jsx("path", { d: "M5.5 3.5H3.5C2.67157 3.5 2 4.17157 2 5V12.5C2 13.3284 2.67157 14 3.5 14H11C11.8284 14 12.5 13.3284 12.5 12.5V10.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M5.5 3.5C5.5 2.67157 6.17157 2 7 2H12.5C13.3284 2 14 2.67157 14 3.5V9C14 9.82843 13.3284 10.5 12.5 10.5H7C6.17157 10.5 5.5 9.82843 5.5 9V3.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }) })] }), _jsx("button", { className: "wallet-modal-primary-btn", onClick: handleCopy, type: "button", children: copied ? "Copied" : "Copy" })] })] }) }));
|
|
30
25
|
}
|
|
31
26
|
//# sourceMappingURL=ExportKeyModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportKeyModal.js","sourceRoot":"","sources":["../../../../../src/components/WalletModal/components/ExportKeyModal.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"ExportKeyModal.js","sourceRoot":"","sources":["../../../../../src/components/WalletModal/components/ExportKeyModal.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,107 @@
|
|
|
1
|
-
/* Export
|
|
2
|
-
|
|
1
|
+
/* Export Private Key (warning) - compact layout to match provided screenshot */
|
|
2
|
+
|
|
3
|
+
.wallet-modal-content.wallet-modal-export-warning {
|
|
4
|
+
padding: 20px;
|
|
5
|
+
gap: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.wallet-modal-export-warning-divider {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 1px;
|
|
11
|
+
background: rgba(17, 24, 39, 0.08);
|
|
12
|
+
margin: 4px 0 14px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.wallet-modal-theme-dark .wallet-modal-export-warning-divider {
|
|
16
|
+
background: rgba(255, 255, 255, 0.12);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wallet-modal-export-warning-simple {
|
|
20
|
+
width: 100%;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 14px;
|
|
25
|
+
padding: 6px 0 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wallet-modal-export-warning-key-icon {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
color: #7c3aed;
|
|
33
|
+
transform: rotate(-20deg);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.wallet-modal-export-warning-simple-text {
|
|
37
|
+
margin: 0;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
text-align: center;
|
|
41
|
+
line-height: 1.4;
|
|
42
|
+
max-width: 360px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.wallet-modal-theme-light .wallet-modal-export-warning-simple-text {
|
|
46
|
+
color: #111827;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.wallet-modal-theme-dark .wallet-modal-export-warning-simple-text {
|
|
50
|
+
color: #ffffff;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.wallet-modal-export-warning-simple-checkbox {
|
|
54
|
+
width: 100%;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: flex-start;
|
|
57
|
+
gap: 10px;
|
|
58
|
+
padding: 0;
|
|
59
|
+
margin-top: 2px;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
user-select: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.wallet-modal-export-warning-simple-checkbox-input {
|
|
65
|
+
width: 18px;
|
|
66
|
+
height: 18px;
|
|
67
|
+
margin-top: 2px;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
accent-color: #7c3aed;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wallet-modal-export-warning-simple-checkbox span {
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
line-height: 1.4;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.wallet-modal-theme-light .wallet-modal-export-warning-simple-checkbox span {
|
|
79
|
+
color: #111827;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.wallet-modal-theme-dark .wallet-modal-export-warning-simple-checkbox span {
|
|
83
|
+
color: #ffffff;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.wallet-modal-export-warning-continue {
|
|
87
|
+
width: 100%;
|
|
88
|
+
padding: 12px 18px;
|
|
89
|
+
border-radius: 10px;
|
|
90
|
+
border: none;
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
transition: all 0.2s ease;
|
|
95
|
+
background: var(--abstraxn-primary);
|
|
96
|
+
color: var(--abstraxn-primary-text);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.wallet-modal-export-warning-continue:hover:not(.disabled) {
|
|
100
|
+
background: var(--abstraxn-primary-hover);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.wallet-modal-export-warning-continue.disabled,
|
|
104
|
+
.wallet-modal-export-warning-continue:disabled {
|
|
105
|
+
opacity: 0.55;
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Export Warning Modal Component
|
|
3
|
+
*/
|
|
4
|
+
import { type CSSProperties } from 'react';
|
|
1
5
|
import type { ChainData } from '../../../chains';
|
|
2
6
|
import '../../../WalletModal.css';
|
|
7
|
+
import './ExportWarningModal.css';
|
|
3
8
|
export interface ExportWarningModalProps {
|
|
4
9
|
isOpen: boolean;
|
|
5
10
|
onClose: () => void;
|
|
@@ -7,5 +12,6 @@ export interface ExportWarningModalProps {
|
|
|
7
12
|
currentChain: ChainData | null;
|
|
8
13
|
isExporting: boolean;
|
|
9
14
|
theme?: 'light' | 'dark';
|
|
15
|
+
style?: CSSProperties;
|
|
10
16
|
}
|
|
11
|
-
export declare function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain, isExporting, theme, }: ExportWarningModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
export declare function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain: _currentChain, isExporting, theme, style, }: ExportWarningModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Export Warning Modal Component
|
|
4
4
|
*/
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import '../../../WalletModal.css';
|
|
7
|
-
|
|
7
|
+
import './ExportWarningModal.css';
|
|
8
|
+
import { IoKeyOutline } from 'react-icons/io5';
|
|
9
|
+
export function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain: _currentChain, isExporting, theme = 'dark', style, }) {
|
|
8
10
|
const [acknowledged, setAcknowledged] = useState(false);
|
|
9
11
|
const handleReveal = () => {
|
|
10
12
|
if (acknowledged && !isExporting) {
|
|
@@ -13,6 +15,6 @@ export function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChai
|
|
|
13
15
|
};
|
|
14
16
|
if (!isOpen)
|
|
15
17
|
return null;
|
|
16
|
-
return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: onClose, children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-export-warning`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-receive-header", children: [_jsx("button", { className: "wallet-modal-back", onClick: onClose, disabled: isExporting, children: _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("h2", { className: "wallet-modal-receive-title", children: "
|
|
18
|
+
return (_jsx("div", { className: `wallet-modal-overlay wallet-modal-theme-${theme}`, onClick: onClose, style: style, children: _jsxs("div", { className: `wallet-modal-content wallet-modal-theme-${theme} wallet-modal-export-warning`, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "wallet-modal-receive-header", children: [_jsx("button", { className: "wallet-modal-back", onClick: onClose, disabled: isExporting, children: _jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: _jsx("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("h2", { className: "wallet-modal-receive-title", children: "Export Private Key" }), _jsx("button", { className: "wallet-modal-close", onClick: onClose, "aria-label": "Close", disabled: isExporting, children: _jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: _jsx("path", { d: "M18 6L6 18M6 6L18 18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] }), _jsx("div", { className: "wallet-modal-export-warning-divider" }), _jsxs("div", { className: "wallet-modal-export-warning-simple", children: [_jsx("div", { className: "wallet-modal-export-warning-key-icon", "aria-hidden": "true", children: _jsx(IoKeyOutline, { size: 56 }) }), _jsx("p", { className: "wallet-modal-export-warning-simple-text", children: "Reveal your private key to manage this wallet in a different app." }), _jsxs("label", { className: "wallet-modal-export-warning-simple-checkbox", children: [_jsx("input", { type: "checkbox", checked: acknowledged, onChange: (e) => setAcknowledged(e.target.checked), className: "wallet-modal-export-warning-simple-checkbox-input" }), _jsx("span", { children: "I understand the risks of owning my private key and am fully responsible for keeping it secure." })] }), _jsx("button", { className: `wallet-modal-export-warning-continue ${!acknowledged || isExporting ? 'disabled' : ''}`, onClick: handleReveal, disabled: !acknowledged || isExporting, children: isExporting ? 'Loading...' : 'Continue' })] })] }) }));
|
|
17
19
|
}
|
|
18
20
|
//# sourceMappingURL=ExportWarningModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportWarningModal.js","sourceRoot":"","sources":["../../../../../src/components/WalletModal/components/ExportWarningModal.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ExportWarningModal.js","sourceRoot":"","sources":["../../../../../src/components/WalletModal/components/ExportWarningModal.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAC;AAErD,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAY/C,MAAM,UAAU,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,aAAa,EACb,YAAY,EAAE,aAAa,EAC3B,WAAW,EACX,KAAK,GAAG,MAAM,EACd,KAAK,GACmB;IACxB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExD,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,IAAI,YAAY,IAAI,CAAC,WAAW,EAAE,CAAC;YACjC,aAAa,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,CAAC;IAEF,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzB,OAAO,CACL,cACE,SAAS,EAAE,2CAA2C,KAAK,EAAE,EAC7D,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,YAEZ,eACE,SAAS,EAAE,2CAA2C,KAAK,8BAA8B,EACzF,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,aAEnC,eAAK,SAAS,EAAC,6BAA6B,aAC1C,iBAAQ,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,YAC3E,cAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,YACzD,eACE,CAAC,EAAC,wBAAwB,EAC1B,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,GACC,EACT,aAAI,SAAS,EAAC,4BAA4B,mCAAwB,EAClE,iBAAQ,SAAS,EAAC,oBAAoB,EAAC,OAAO,EAAE,OAAO,gBAAa,OAAO,EAAC,QAAQ,EAAE,WAAW,YAC/F,cAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,YACzD,eACE,CAAC,EAAC,sBAAsB,EACxB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,GACC,IACL,EACN,cAAK,SAAS,EAAC,qCAAqC,GAAG,EAEvD,eAAK,SAAS,EAAC,oCAAoC,aACjD,cAAK,SAAS,EAAC,sCAAsC,iBAAa,MAAM,YACtE,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,GAAI,GACtB,EAEN,YAAG,SAAS,EAAC,yCAAyC,kFAElD,EAEJ,iBAAO,SAAS,EAAC,6CAA6C,aAC5D,gBACE,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAClD,SAAS,EAAC,mDAAmD,GAC7D,EACF,6HAEO,IACD,EAER,iBACE,SAAS,EAAE,wCAAwC,CAAC,YAAY,IAAI,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,EACnG,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,YAAY,IAAI,WAAW,YAErC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,GACjC,IACL,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,95 @@
|
|
|
1
1
|
/* Manage Wallet Modal Styles - extracted from WalletModal.css */
|
|
2
|
+
.wallet-modal-manage {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
.wallet-modal-manage-content {
|
|
3
|
-
padding:
|
|
7
|
+
padding: 12px 0 20px;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wallet-modal-manage-list {
|
|
4
14
|
display: flex;
|
|
5
15
|
flex-direction: column;
|
|
6
|
-
|
|
16
|
+
padding: 0 20px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wallet-modal-manage-list-item {
|
|
20
|
+
width: 100%;
|
|
21
|
+
padding: 16px 0;
|
|
22
|
+
border: none;
|
|
23
|
+
background: transparent;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
text-align: left;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wallet-modal-theme-dark .wallet-modal-manage-list-item {
|
|
32
|
+
color: #ffffff;
|
|
33
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.wallet-modal-theme-light .wallet-modal-manage-list-item {
|
|
37
|
+
color: #111827;
|
|
38
|
+
border-bottom: 1px solid rgba(17, 24, 39, 0.08);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wallet-modal-theme-dark .wallet-modal-manage-list-item:hover {
|
|
42
|
+
background: rgba(255, 255, 255, 0.04);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.wallet-modal-theme-light .wallet-modal-manage-list-item:hover {
|
|
46
|
+
background: rgba(17, 24, 39, 0.04);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.wallet-modal-manage-list-icon {
|
|
50
|
+
width: 20px;
|
|
51
|
+
height: 20px;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
opacity: 0.85;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.wallet-modal-manage-list-label {
|
|
60
|
+
flex: 1;
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.wallet-modal-manage-list-arrow {
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.wallet-modal-manage-toast {
|
|
71
|
+
position: absolute;
|
|
72
|
+
left: 50%;
|
|
73
|
+
bottom: 18px;
|
|
74
|
+
transform: translateX(-50%);
|
|
75
|
+
padding: 10px 14px;
|
|
76
|
+
border-radius: 10px;
|
|
77
|
+
font-size: 13px;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
z-index: 2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.wallet-modal-theme-dark .wallet-modal-manage-toast {
|
|
84
|
+
background: rgba(42, 42, 42, 0.95);
|
|
85
|
+
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
86
|
+
color: #ffffff;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.wallet-modal-theme-light .wallet-modal-manage-toast {
|
|
90
|
+
background: rgba(249, 250, 251, 0.98);
|
|
91
|
+
border: 1px solid rgba(17, 24, 39, 0.12);
|
|
92
|
+
color: #111827;
|
|
7
93
|
}
|
|
8
94
|
|
|
9
95
|
.wallet-modal-manage-section {
|
|
@@ -14,7 +100,7 @@
|
|
|
14
100
|
|
|
15
101
|
.wallet-modal-manage-section-title {
|
|
16
102
|
font-size: 16px;
|
|
17
|
-
font-weight:
|
|
103
|
+
font-weight: 500;
|
|
18
104
|
margin: 0;
|
|
19
105
|
}
|
|
20
106
|
|
|
@@ -62,7 +148,7 @@
|
|
|
62
148
|
}
|
|
63
149
|
|
|
64
150
|
.wallet-modal-manage-address-text {
|
|
65
|
-
font-family: monospace;
|
|
151
|
+
font-family: 'GeistMono', 'SF Mono', monospace;
|
|
66
152
|
flex: 1;
|
|
67
153
|
min-width: 0;
|
|
68
154
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./ManageWalletModal.css";
|
|
2
2
|
export interface ManageWalletModalProps {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClose: () => void;
|
|
@@ -7,6 +7,6 @@ export interface ManageWalletModalProps {
|
|
|
7
7
|
organizationName?: string | null;
|
|
8
8
|
isExternalWalletConnected: boolean;
|
|
9
9
|
onExportPrivateKey: () => void;
|
|
10
|
-
theme?:
|
|
10
|
+
theme?: "light" | "dark";
|
|
11
11
|
}
|
|
12
|
-
export declare function ManageWalletModal({
|
|
12
|
+
export declare function ManageWalletModal({ ...props }: ManageWalletModalProps): import("react/jsx-runtime").JSX.Element | null;
|