signer-test-sdk-react 0.0.20 → 0.0.22

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 (56) hide show
  1. package/dist/src/AbstraxnProvider.d.ts +2 -2
  2. package/dist/src/AbstraxnProvider.js +627 -602
  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/WalletModal.css +373 -193
  7. package/dist/src/WalletModal.d.ts +1 -1
  8. package/dist/src/WalletModal.js +45 -108
  9. package/dist/src/WalletModal.js.map +1 -1
  10. package/dist/src/chains.d.ts +3 -4
  11. package/dist/src/chains.js +84 -154
  12. package/dist/src/chains.js.map +1 -1
  13. package/dist/src/components/OnboardingUI/OnboardingUI.css +5 -6
  14. package/dist/src/components/OnboardingUI/OnboardingUIReact.js +9 -3
  15. package/dist/src/components/OnboardingUI/OnboardingUIReact.js.map +1 -1
  16. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js +0 -6
  17. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js.map +1 -1
  18. package/dist/src/components/OnboardingUI/hooks/useAuthMethods.js +57 -0
  19. package/dist/src/components/OnboardingUI/hooks/useAuthMethods.js.map +1 -1
  20. package/dist/src/components/WalletModal/components/ChainSelector.css +102 -249
  21. package/dist/src/components/WalletModal/components/ChainSelector.d.ts +6 -7
  22. package/dist/src/components/WalletModal/components/ChainSelector.js +27 -68
  23. package/dist/src/components/WalletModal/components/ChainSelector.js.map +1 -1
  24. package/dist/src/components/WalletModal/components/ExportKeyModal.css +88 -89
  25. package/dist/src/components/WalletModal/components/ExportKeyModal.d.ts +1 -6
  26. package/dist/src/components/WalletModal/components/ExportKeyModal.js +11 -6
  27. package/dist/src/components/WalletModal/components/ExportKeyModal.js.map +1 -1
  28. package/dist/src/components/WalletModal/components/ExportWarningModal.css +2 -107
  29. package/dist/src/components/WalletModal/components/ExportWarningModal.d.ts +1 -7
  30. package/dist/src/components/WalletModal/components/ExportWarningModal.js +3 -5
  31. package/dist/src/components/WalletModal/components/ExportWarningModal.js.map +1 -1
  32. package/dist/src/components/WalletModal/components/ManageWalletModal.css +4 -90
  33. package/dist/src/components/WalletModal/components/ManageWalletModal.d.ts +3 -3
  34. package/dist/src/components/WalletModal/components/ManageWalletModal.js +13 -28
  35. package/dist/src/components/WalletModal/components/ManageWalletModal.js.map +1 -1
  36. package/dist/src/components/WalletModal/components/PreviewTransactionModal.css +4 -3
  37. package/dist/src/components/WalletModal/components/ReceiveModal.css +58 -93
  38. package/dist/src/components/WalletModal/components/ReceiveModal.js +1 -1
  39. package/dist/src/components/WalletModal/components/ReceiveModal.js.map +1 -1
  40. package/dist/src/components/WalletModal/components/SendModal.css +127 -170
  41. package/dist/src/components/WalletModal/components/SendModal.d.ts +6 -4
  42. package/dist/src/components/WalletModal/components/SendModal.js +39 -131
  43. package/dist/src/components/WalletModal/components/SendModal.js.map +1 -1
  44. package/dist/src/components/WalletModal/components/SuccessModal.css +8 -7
  45. package/dist/src/components/WalletModal/components/index.d.ts +0 -2
  46. package/dist/src/components/WalletModal/components/index.js +0 -1
  47. package/dist/src/components/WalletModal/components/index.js.map +1 -1
  48. package/dist/src/hooks.d.ts +4399 -448
  49. package/dist/src/hooks.js +53 -47
  50. package/dist/src/hooks.js.map +1 -1
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +1 -1
  53. package/dist/src/components/WalletModal/components/TokenSelectorModal.css +0 -240
  54. package/dist/src/components/WalletModal/components/TokenSelectorModal.d.ts +0 -21
  55. package/dist/src/components/WalletModal/components/TokenSelectorModal.js +0 -44
  56. package/dist/src/components/WalletModal/components/TokenSelectorModal.js.map +0 -1
@@ -1,134 +1,133 @@
1
1
  /* Export Key Modal Styles - extracted from WalletModal.css */
2
- .wallet-modal-export-key-body {
3
- width: 100%;
2
+ .wallet-modal-export-header {
4
3
  display: flex;
5
- flex-direction: column;
6
- gap: 16px;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ margin-bottom: 24px;
7
7
  }
8
8
 
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;
9
+ .wallet-modal-export-title {
10
+ font-size: 20px;
11
+ font-weight: 600;
12
+ margin: 0;
16
13
  }
17
14
 
18
- .wallet-modal-theme-light .wallet-modal-export-key-warning {
19
- background: #f3f4f6;
20
- border-color: #e5e7eb;
15
+ .wallet-modal-theme-dark .wallet-modal-export-title {
16
+ color: #ffffff;
21
17
  }
22
18
 
23
- .wallet-modal-theme-dark .wallet-modal-export-key-warning {
24
- background: #2a2a2a;
25
- border-color: #3a3a3a;
19
+ .wallet-modal-theme-light .wallet-modal-export-title {
20
+ color: #111827;
21
+ }
22
+
23
+ .wallet-modal-export-content {
24
+ display: flex;
25
+ flex-direction: column;
26
+ gap: 20px;
26
27
  }
27
28
 
28
- .wallet-modal-export-key-warning-icon {
29
- flex-shrink: 0;
30
- margin-top: 2px;
31
- color: #2563eb;
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;
32
40
  }
33
41
 
34
- .wallet-modal-theme-dark .wallet-modal-export-key-warning-icon {
35
- color: #60a5fa;
42
+ .wallet-modal-theme-dark .wallet-modal-export-key-display {
43
+ background: #2a2a2a;
44
+ border-color: #3a3a3a;
45
+ color: #ffffff;
36
46
  }
37
47
 
38
- .wallet-modal-export-key-warning-text {
39
- min-width: 0;
48
+ .wallet-modal-theme-light .wallet-modal-export-key-display {
49
+ background: #f9fafb;
50
+ border-color: #e5e7eb;
51
+ color: #111827;
40
52
  }
41
53
 
42
- .wallet-modal-export-key-warning-title {
43
- font-size: 13px;
44
- font-weight: 700;
45
- line-height: 1.35;
54
+ .wallet-modal-export-key-display.blurred {
55
+ filter: blur(8px);
56
+ user-select: none;
57
+ cursor: pointer;
46
58
  }
47
59
 
48
- .wallet-modal-export-key-warning-subtitle {
49
- margin-top: 2px;
60
+ .wallet-modal-export-key-hint {
50
61
  font-size: 12px;
51
- line-height: 1.35;
52
- opacity: 0.85;
62
+ text-align: center;
63
+ opacity: 0.7;
64
+ margin: 0;
53
65
  }
54
66
 
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;
67
+ .wallet-modal-theme-dark .wallet-modal-export-key-hint {
68
+ color: #9ca3af;
58
69
  }
59
70
 
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;
71
+ .wallet-modal-theme-light .wallet-modal-export-key-hint {
72
+ color: #6b7280;
63
73
  }
64
74
 
65
- .wallet-modal-export-key-field {
75
+ .wallet-modal-export-copy-btn {
66
76
  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;
67
83
  display: flex;
68
84
  align-items: center;
69
- gap: 10px;
70
- padding: 12px 14px;
71
- border-radius: 12px;
72
- border: 1px solid;
73
- box-sizing: border-box;
74
- }
75
-
76
- .wallet-modal-theme-light .wallet-modal-export-key-field {
77
- background: #ffffff;
78
- border-color: #e5e7eb;
85
+ justify-content: center;
86
+ gap: 8px;
87
+ font-size: 14px;
88
+ font-weight: 500;
79
89
  }
80
90
 
81
- .wallet-modal-theme-dark .wallet-modal-export-key-field {
82
- background: #2a2a2a;
91
+ .wallet-modal-theme-dark .wallet-modal-export-copy-btn {
83
92
  border-color: #3a3a3a;
93
+ color: #ffffff;
84
94
  }
85
95
 
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;
94
- }
95
-
96
- .wallet-modal-theme-light .wallet-modal-export-key-value {
96
+ .wallet-modal-theme-light .wallet-modal-export-copy-btn {
97
+ border-color: #e5e7eb;
97
98
  color: #111827;
98
99
  }
99
100
 
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;
106
- border: none;
107
- cursor: pointer;
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;
101
+ .wallet-modal-theme-dark .wallet-modal-export-copy-btn:hover:not(:disabled) {
102
+ background: #2a2a2a;
103
+ border-color: #4a4a4a;
116
104
  }
117
105
 
118
- .wallet-modal-theme-light .wallet-modal-export-key-inline-copy {
119
- color: #6b7280;
106
+ .wallet-modal-theme-light .wallet-modal-export-copy-btn:hover:not(:disabled) {
107
+ background: #f3f4f6;
108
+ border-color: #d1d5db;
120
109
  }
121
110
 
122
- .wallet-modal-theme-dark .wallet-modal-export-key-inline-copy {
123
- color: #9ca3af;
111
+ .wallet-modal-export-copy-btn:disabled {
112
+ opacity: 0.5;
113
+ cursor: not-allowed;
124
114
  }
125
115
 
126
- .wallet-modal-theme-light .wallet-modal-export-key-inline-copy:hover {
127
- background: rgba(17, 24, 39, 0.06);
128
- color: #111827;
116
+ .wallet-modal-export-done-btn {
117
+ width: 100%;
118
+ padding: 14px 24px;
119
+ border-radius: 12px;
120
+ border: none;
121
+ font-size: 16px;
122
+ font-weight: 600;
123
+ cursor: pointer;
124
+ transition: all 0.2s;
125
+ background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
126
+ color: #ffffff;
129
127
  }
130
128
 
131
- .wallet-modal-theme-dark .wallet-modal-export-key-inline-copy:hover {
132
- background: rgba(255, 255, 255, 0.08);
133
- color: #ffffff;
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);
134
133
  }
@@ -1,7 +1,3 @@
1
- /**
2
- * Export Key Modal Component
3
- */
4
- import { type CSSProperties } from 'react';
5
1
  import './ExportKeyModal.css';
6
2
  import '../../../WalletModal.css';
7
3
  export interface ExportKeyModalProps {
@@ -9,6 +5,5 @@ export interface ExportKeyModalProps {
9
5
  onClose: () => void;
10
6
  privateKey: string;
11
7
  theme?: 'light' | 'dark';
12
- style?: CSSProperties;
13
8
  }
14
- export declare function ExportKeyModal({ isOpen, onClose, privateKey, theme, style, }: ExportKeyModalProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export declare function ExportKeyModal({ isOpen, onClose, privateKey, theme, }: ExportKeyModalProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,26 +1,31 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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
- import { FiInfo } from 'react-icons/fi';
9
- export function ExportKeyModal({ isOpen, onClose, privateKey, theme = 'dark', style, }) {
8
+ export function ExportKeyModal({ isOpen, onClose, privateKey, theme = 'dark', }) {
9
+ const [showPrivateKey, setShowPrivateKey] = useState(false);
10
10
  const [copied, setCopied] = useState(false);
11
11
  const handleCopy = useCallback(() => {
12
- if (privateKey) {
12
+ if (privateKey && showPrivateKey) {
13
13
  navigator.clipboard.writeText(privateKey);
14
14
  setCopied(true);
15
15
  setTimeout(() => setCopied(false), 2000);
16
16
  }
17
- }, [privateKey]);
17
+ }, [privateKey, showPrivateKey]);
18
18
  const handleClose = useCallback(() => {
19
+ setShowPrivateKey(false);
19
20
  setCopied(false);
20
21
  onClose();
21
22
  }, [onClose]);
22
23
  if (!isOpen)
23
24
  return null;
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" })] })] }) }));
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" })] })] }) }));
25
30
  }
26
31
  //# 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,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,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AAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,GACpB,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,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AASlC,MAAM,UAAU,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,UAAU,EACV,KAAK,GAAG,MAAM,GACM;IACpB,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;QAClC,IAAI,UAAU,IAAI,cAAc,EAAE,CAAC;YACjC,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,EAAE,IAAI,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;IAEjC,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACzB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzB,OAAO,CACL,cACE,SAAS,EAAE,2CAA2C,KAAK,EAAE,EAC7D,OAAO,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xB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,EACN,qCAAoB,IACnB,CACJ,CAAC,CAAC,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,107 +1,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
+ /* Export Warning Modal Styles - extracted from WalletModal.css */
2
+ /* Styles are already in main WalletModal.css, this file is for organization */
@@ -1,10 +1,5 @@
1
- /**
2
- * Export Warning Modal Component
3
- */
4
- import { type CSSProperties } from 'react';
5
1
  import type { ChainData } from '../../../chains';
6
2
  import '../../../WalletModal.css';
7
- import './ExportWarningModal.css';
8
3
  export interface ExportWarningModalProps {
9
4
  isOpen: boolean;
10
5
  onClose: () => void;
@@ -12,6 +7,5 @@ export interface ExportWarningModalProps {
12
7
  currentChain: ChainData | null;
13
8
  isExporting: boolean;
14
9
  theme?: 'light' | 'dark';
15
- style?: CSSProperties;
16
10
  }
17
- export declare function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain: _currentChain, isExporting, theme, style, }: ExportWarningModalProps): import("react/jsx-runtime").JSX.Element | null;
11
+ export declare function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain, isExporting, theme, }: ExportWarningModalProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,12 +1,10 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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
- import './ExportWarningModal.css';
8
- import { IoKeyOutline } from 'react-icons/io5';
9
- export function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain: _currentChain, isExporting, theme = 'dark', style, }) {
7
+ export function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChain, isExporting, theme = 'dark', }) {
10
8
  const [acknowledged, setAcknowledged] = useState(false);
11
9
  const handleReveal = () => {
12
10
  if (acknowledged && !isExporting) {
@@ -15,6 +13,6 @@ export function ExportWarningModal({ isOpen, onClose, onAcknowledge, currentChai
15
13
  };
16
14
  if (!isOpen)
17
15
  return null;
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' })] })] }) }));
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') })] })] }) }));
19
17
  }
20
18
  //# 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,QAA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E,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
+ {"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,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AE,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,95 +1,9 @@
1
1
  /* Manage Wallet Modal Styles - extracted from WalletModal.css */
2
- .wallet-modal-manage {
3
- position: relative;
4
- }
5
-
6
2
  .wallet-modal-manage-content {
7
- padding: 12px 0 20px;
8
- display: flex;
9
- flex-direction: column;
10
- gap: 16px;
11
- }
12
-
13
- .wallet-modal-manage-list {
3
+ padding: 20px 0;
14
4
  display: flex;
15
5
  flex-direction: column;
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;
6
+ gap: 24px;
93
7
  }
94
8
 
95
9
  .wallet-modal-manage-section {
@@ -100,7 +14,7 @@
100
14
 
101
15
  .wallet-modal-manage-section-title {
102
16
  font-size: 16px;
103
- font-weight: 500;
17
+ font-weight: 600;
104
18
  margin: 0;
105
19
  }
106
20
 
@@ -148,7 +62,7 @@
148
62
  }
149
63
 
150
64
  .wallet-modal-manage-address-text {
151
- font-family: 'GeistMono', 'SF Mono', monospace;
65
+ font-family: monospace;
152
66
  flex: 1;
153
67
  min-width: 0;
154
68
  }
@@ -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({ ...props }: ManageWalletModalProps): import("react/jsx-runtime").JSX.Element | null;
12
+ export declare function ManageWalletModal({ isOpen, onClose, displayAddress, userEmail, organizationName, isExternalWalletConnected, onExportPrivateKey, theme, }: ManageWalletModalProps): import("react/jsx-runtime").JSX.Element | null;