signer-test-sdk-react 0.0.22 → 0.0.23

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.
Files changed (93) hide show
  1. package/dist/src/AbstraxnProvider.d.ts +5 -13
  2. package/dist/src/AbstraxnProvider.js +14 -3126
  3. package/dist/src/AbstraxnProvider.js.map +1 -1
  4. package/dist/src/ConnectButton.css +1 -1
  5. package/dist/src/ExternalWalletButtons.css +1 -1
  6. package/dist/src/ExternalWalletButtons.js +2 -2
  7. package/dist/src/ExternalWalletButtons.js.map +1 -1
  8. package/dist/src/WalletModal.css +193 -373
  9. package/dist/src/WalletModal.d.ts +1 -1
  10. package/dist/src/WalletModal.js +108 -45
  11. package/dist/src/WalletModal.js.map +1 -1
  12. package/dist/src/chains.d.ts +4 -3
  13. package/dist/src/chains.js +154 -84
  14. package/dist/src/chains.js.map +1 -1
  15. package/dist/src/components/AbstraxnProvider/AbstraxnProvider.d.ts +12 -0
  16. package/dist/src/components/AbstraxnProvider/AbstraxnProvider.js +146 -0
  17. package/dist/src/components/AbstraxnProvider/AbstraxnProvider.js.map +1 -0
  18. package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.d.ts +25 -0
  19. package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.js +3086 -0
  20. package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.js.map +1 -0
  21. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.d.ts +8 -0
  22. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.js +46 -0
  23. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.js.map +1 -0
  24. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.d.ts +8 -0
  25. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.js +12 -0
  26. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.js.map +1 -0
  27. package/dist/src/components/AbstraxnProvider/context.d.ts +2 -0
  28. package/dist/src/components/AbstraxnProvider/context.js +6 -0
  29. package/dist/src/components/AbstraxnProvider/context.js.map +1 -0
  30. package/dist/src/components/AbstraxnProvider/index.d.ts +6 -0
  31. package/dist/src/components/AbstraxnProvider/index.js +7 -0
  32. package/dist/src/components/AbstraxnProvider/index.js.map +1 -0
  33. package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.d.ts +30 -0
  34. package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.js +49 -0
  35. package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.js.map +1 -0
  36. package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.d.ts +2 -0
  37. package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.js +13 -0
  38. package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.js.map +1 -0
  39. package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.d.ts +22 -0
  40. package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.js +242 -0
  41. package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.js.map +1 -0
  42. package/dist/src/components/AbstraxnProvider/useWalletInitialization.d.ts +25 -0
  43. package/dist/src/components/AbstraxnProvider/useWalletInitialization.js +539 -0
  44. package/dist/src/components/AbstraxnProvider/useWalletInitialization.js.map +1 -0
  45. package/dist/src/components/AbstraxnProvider/utils.d.ts +41 -0
  46. package/dist/src/components/AbstraxnProvider/utils.js +139 -0
  47. package/dist/src/components/AbstraxnProvider/utils.js.map +1 -0
  48. package/dist/src/components/OnboardingUI/OnboardingUI.css +8 -5
  49. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js +6 -0
  50. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js.map +1 -1
  51. package/dist/src/components/WalletModal/components/ChainSelector.css +249 -102
  52. package/dist/src/components/WalletModal/components/ChainSelector.d.ts +7 -6
  53. package/dist/src/components/WalletModal/components/ChainSelector.js +68 -27
  54. package/dist/src/components/WalletModal/components/ChainSelector.js.map +1 -1
  55. package/dist/src/components/WalletModal/components/ExportKeyModal.css +89 -88
  56. package/dist/src/components/WalletModal/components/ExportKeyModal.d.ts +6 -1
  57. package/dist/src/components/WalletModal/components/ExportKeyModal.js +6 -11
  58. package/dist/src/components/WalletModal/components/ExportKeyModal.js.map +1 -1
  59. package/dist/src/components/WalletModal/components/ExportWarningModal.css +107 -2
  60. package/dist/src/components/WalletModal/components/ExportWarningModal.d.ts +7 -1
  61. package/dist/src/components/WalletModal/components/ExportWarningModal.js +5 -3
  62. package/dist/src/components/WalletModal/components/ExportWarningModal.js.map +1 -1
  63. package/dist/src/components/WalletModal/components/ManageWalletModal.css +90 -4
  64. package/dist/src/components/WalletModal/components/ManageWalletModal.d.ts +3 -3
  65. package/dist/src/components/WalletModal/components/ManageWalletModal.js +28 -13
  66. package/dist/src/components/WalletModal/components/ManageWalletModal.js.map +1 -1
  67. package/dist/src/components/WalletModal/components/PreviewTransactionModal.css +3 -4
  68. package/dist/src/components/WalletModal/components/ReceiveModal.css +93 -58
  69. package/dist/src/components/WalletModal/components/ReceiveModal.js +1 -1
  70. package/dist/src/components/WalletModal/components/ReceiveModal.js.map +1 -1
  71. package/dist/src/components/WalletModal/components/SendModal.css +170 -127
  72. package/dist/src/components/WalletModal/components/SendModal.d.ts +4 -6
  73. package/dist/src/components/WalletModal/components/SendModal.js +131 -39
  74. package/dist/src/components/WalletModal/components/SendModal.js.map +1 -1
  75. package/dist/src/components/WalletModal/components/SuccessModal.css +7 -8
  76. package/dist/src/components/WalletModal/components/TokenSelectorModal.css +240 -0
  77. package/dist/src/components/WalletModal/components/TokenSelectorModal.d.ts +21 -0
  78. package/dist/src/components/WalletModal/components/TokenSelectorModal.js +44 -0
  79. package/dist/src/components/WalletModal/components/TokenSelectorModal.js.map +1 -0
  80. package/dist/src/components/WalletModal/components/index.d.ts +2 -0
  81. package/dist/src/components/WalletModal/components/index.js +1 -0
  82. package/dist/src/components/WalletModal/components/index.js.map +1 -1
  83. package/dist/src/hooks.d.ts +301 -329
  84. package/dist/src/hooks.js +152 -123
  85. package/dist/src/hooks.js.map +1 -1
  86. package/dist/src/index.d.ts +1 -1
  87. package/dist/src/index.js +1 -1
  88. package/dist/src/index.js.map +1 -1
  89. package/dist/src/wagmiConfig.d.ts +1 -1
  90. package/dist/src/wagmiConfig.js +33 -20
  91. package/dist/src/wagmiConfig.js.map +1 -1
  92. package/dist/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +1 -1
@@ -1,133 +1,134 @@
1
1
  /* Export Key Modal Styles - extracted from WalletModal.css */
2
- .wallet-modal-export-header {
2
+ .wallet-modal-export-key-body {
3
+ width: 100%;
3
4
  display: flex;
4
- align-items: center;
5
- justify-content: space-between;
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-theme-dark .wallet-modal-export-title {
16
- color: #ffffff;
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-title {
20
- color: #111827;
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-content {
24
- display: flex;
25
- flex-direction: column;
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-display {
30
- padding: 16px;
31
- border-radius: 12px;
32
- border: 1px solid;
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-display {
43
- background: #2a2a2a;
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-theme-light .wallet-modal-export-key-display {
49
- background: #f9fafb;
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-display.blurred {
55
- filter: blur(8px);
56
- user-select: none;
57
- cursor: pointer;
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-hint {
48
+ .wallet-modal-export-key-warning-subtitle {
49
+ margin-top: 2px;
61
50
  font-size: 12px;
62
- text-align: center;
63
- opacity: 0.7;
64
- margin: 0;
51
+ line-height: 1.35;
52
+ opacity: 0.85;
65
53
  }
66
54
 
67
- .wallet-modal-theme-dark .wallet-modal-export-key-hint {
68
- color: #9ca3af;
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-light .wallet-modal-export-key-hint {
72
- color: #6b7280;
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-copy-btn {
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
- justify-content: center;
86
- gap: 8px;
87
- font-size: 14px;
88
- font-weight: 500;
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-copy-btn {
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-copy-btn:hover:not(:disabled) {
81
+ .wallet-modal-theme-dark .wallet-modal-export-key-field {
102
82
  background: #2a2a2a;
103
- border-color: #4a4a4a;
83
+ border-color: #3a3a3a;
104
84
  }
105
85
 
106
- .wallet-modal-theme-light .wallet-modal-export-copy-btn:hover:not(:disabled) {
107
- background: #f3f4f6;
108
- border-color: #d1d5db;
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-copy-btn:disabled {
112
- opacity: 0.5;
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-done-btn {
117
- width: 100%;
118
- padding: 14px 24px;
119
- border-radius: 12px;
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
- transition: all 0.2s;
125
- background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
126
- color: #ffffff;
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-done-btn:hover {
130
- background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
131
- transform: translateY(-1px);
132
- box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
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, Fragment as _Fragment } from "react/jsx-runtime";
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
- export function ExportKeyModal({ isOpen, onClose, privateKey, theme = 'dark', }) {
9
- const [showPrivateKey, setShowPrivateKey] = useState(false);
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 && showPrivateKey) {
12
+ if (privateKey) {
13
13
  navigator.clipboard.writeText(privateKey);
14
14
  setCopied(true);
15
15
  setTimeout(() => setCopied(false), 2000);
16
16
  }
17
- }, [privateKey, showPrivateKey]);
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-export-header", children: [_jsx("h2", { className: "wallet-modal-export-title", children: "Export 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-content", children: [_jsx("div", { className: `wallet-modal-export-key-display ${!showPrivateKey ? 'blurred' : ''}`, onClick: () => {
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":"","s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AAC,CAAC,CACF,8BACE,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,aACzD,eACE,CAAC,EAAC,mHAAmH,EACrH,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,EACF,eACE,CAAC,EAAC,+IAA+I,EACjJ,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,EACN,kCAAiB,IAChB,CACJ,GACM,EACT,iBACE,SAAS,EAAE,mDAAmD,KAAK,EAAE,EACrE,OAAO,EAAE,WAAW,yBAGb,IACL,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ExportKeyModal.js","sourceRoot":"","sources":["../../../../../src/components/WalletModal/components/ExportKeyModal.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAsB,MAAM,OAAO,CAAC;AAClE,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAUxC,MAAM,UAAU,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,UAAU,EACV,KAAK,GAAG,MAAM,EACd,KAAK,GACe;IACpB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;QAClC,IAAI,UAAU,EAAE,CAAC;YACf,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YAC1C,SAAS,CAAC,IAAI,CAAC,CAAC;YAChB,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EA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AAC,8BAA8B,aAC3C,eAAK,SAAS,EAAC,iCAAiC,EAAC,IAAI,EAAC,MAAM,aAC1D,cAAK,SAAS,EAAC,sCAAsC,iBAAa,MAAM,YACtE,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,GAAI,GAChB,EACN,eAAK,SAAS,EAAC,sCAAsC,aACnD,cAAK,SAAS,EAAC,uCAAuC,0DAEhD,EACN,cAAK,SAAS,EAAC,0CAA0C,wFAEnD,IACF,IACF,EAEN,eAAK,SAAS,EAAC,+BAA+B,aAC5C,cAAK,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,UAAU,YAC7D,UAAU,GACP,EACN,iBACE,SAAS,EAAC,qCAAqC,EAC/C,OAAO,EAAE,UAAU,EACnB,IAAI,EAAC,QAAQ,gBACF,kBAAkB,YAE7B,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,aACzD,eACE,CAAC,EAAC,mHAAmH,EACrH,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,EACF,eACE,CAAC,EAAC,+IAA+I,EACjJ,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,GACC,IACL,EAEN,iBAAQ,SAAS,EAAC,0BAA0B,EAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,QAAQ,YAC5E,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,GACpB,IACL,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,2 +1,107 @@
1
- /* Export Warning Modal Styles - extracted from WalletModal.css */
2
- /* Styles are already in main WalletModal.css, this file is for organization */
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, Fragment as _Fragment } from "react/jsx-runtime";
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
- export function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain, isExporting, theme = 'dark', }) {
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: "Agree to continue" }), _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" }) }) })] }), _jsxs("div", { className: "wallet-modal-export-warning-content", children: [_jsx("div", { className: "wallet-modal-export-warning-illustration", children: _jsx("div", { className: "wallet-modal-export-warning-icon-bg", children: _jsxs("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", children: [_jsx("path", { d: "M24 12L12 18L24 24L36 18L24 12Z", fill: "currentColor" }), _jsx("path", { d: "M12 30L24 36L36 30M12 24L24 30L36 24", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }) }), _jsx("div", { className: "wallet-modal-export-warning-badge", children: "Sensitive information" }), _jsxs("h3", { className: "wallet-modal-export-warning-heading", children: ["Your ", currentChain?.type === 'solana' ? 'Solana' : 'EVM', " wallet is ready. Back up your key to protect your assets."] }), _jsxs("div", { className: "wallet-modal-export-warning-info-cards", children: [_jsxs("div", { className: "wallet-modal-export-warning-info-card", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M3 6C3 4.89543 3.89543 4 5 4H15C16.1046 4 17 4.89543 17 6V16C17 17.1046 16.1046 18 15 18H5C3.89543 18 3 17.1046 3 16V6Z", stroke: "currentColor", strokeWidth: "2" }), _jsx("path", { d: "M7 8H13M7 12H13", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })] }), _jsx("span", { children: "Non-custodial wallet: You're always in control" })] }), _jsxs("div", { className: "wallet-modal-export-warning-info-card", children: [_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [_jsx("path", { d: "M10 2L2 6L10 10L18 6L10 2Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M2 14L10 18L18 14M2 10L10 14L18 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M10 10V18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("span", { children: "Keep your key private. It controls your account and assets." })] })] }), _jsxs("label", { className: "wallet-modal-export-warning-checkbox", children: [_jsx("input", { type: "checkbox", checked: acknowledged, onChange: (e) => setAcknowledged(e.target.checked), className: "wallet-modal-export-warning-checkbox-input" }), _jsx("span", { children: "I am responsible for safeguarding and using my wallet key information." })] }), _jsx("button", { className: `wallet-modal-export-warning-reveal ${!acknowledged || isExporting ? 'disabled' : ''}`, onClick: handleReveal, disabled: !acknowledged || isExporting, children: isExporting ? (_jsxs(_Fragment, { children: [_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "wallet-modal-loading-spinner", children: [_jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "37.7", strokeDashoffset: "37.7", fill: "none", opacity: "0.3" }), _jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "37.7", fill: "none", children: _jsx("animate", { attributeName: "stroke-dashoffset", from: "37.7", to: "0", dur: "1s", repeatCount: "indefinite" }) })] }), _jsx("span", { children: "Loading..." })] })) : ('Reveal') })] })] }) }));
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,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,0BAA0B,CAAC;AAWlC,MAAM,UAAU,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,KAAK,GAAG,MAAM,GACU;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,YAEhB,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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sCAAsC,CAAC,YAAY,IAAI,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,EACjG,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,YAAY,IAAI,WAAW,YAErC,WAAW,CAAC,CAAC,CAAC,CACb,8BACE,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,8BAA8B,aAExC,iBACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,GAAG,EACL,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,eAAe,EAAC,MAAM,EACtB,gBAAgB,EAAC,MAAM,EACvB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,KAAK,GACb,EACF,iBACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,GAAG,EACL,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,eAAe,EAAC,MAAM,EACtB,IAAI,EAAC,MAAM,YAEX,kBACE,aAAa,EAAC,mBAAmB,EACjC,IAAI,EAAC,MAAM,EACX,EAAE,EAAC,GAAG,EACN,GAAG,EAAC,IAAI,EACR,WAAW,EAAC,YAAY,GACxB,GACK,IACL,EACN,wCAAuB,IACtB,CACJ,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,GACM,IACL,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
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,YAA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AAC,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: 20px 0;
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
- gap: 24px;
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: 600;
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 './ManageWalletModal.css';
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?: 'light' | 'dark';
10
+ theme?: "light" | "dark";
11
11
  }
12
- export declare function ManageWalletModal({ isOpen, onClose, displayAddress, userEmail, organizationName, isExternalWalletConnected, onExportPrivateKey, theme, }: ManageWalletModalProps): import("react/jsx-runtime").JSX.Element | null;
12
+ export declare function ManageWalletModal({ ...props }: ManageWalletModalProps): import("react/jsx-runtime").JSX.Element | null;