@rhinestone/deposit-modal 0.3.0-alpha.5 → 0.3.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DepositModalReown-3VZ5AKV2.mjs → DepositModalReown-42D5V5II.mjs} +8 -5
- package/dist/{DepositModalReown-PPX34UAK.cjs → DepositModalReown-ABLVMYFL.cjs} +9 -6
- package/dist/{WithdrawModalReown-BB3MZAIO.mjs → WithdrawModalReown-EVHN5NOF.mjs} +3 -3
- package/dist/{WithdrawModalReown-4B6IMTBB.cjs → WithdrawModalReown-FJP3XTQ5.cjs} +4 -4
- package/dist/{chunk-QI6Q7V6O.mjs → chunk-3FHYC3K7.mjs} +26 -34
- package/dist/{chunk-ZUWAIMMH.mjs → chunk-44IFH7DZ.mjs} +1247 -917
- package/dist/{chunk-CTYKQ4B4.mjs → chunk-7VKAUBZ7.mjs} +201 -81
- package/dist/{chunk-BB6UVRAV.cjs → chunk-CPXERFGC.cjs} +110 -118
- package/dist/{chunk-DX2D2TRZ.cjs → chunk-ENMIKNXS.cjs} +241 -121
- package/dist/{chunk-TTD2FEA2.cjs → chunk-LEVCOJD6.cjs} +1193 -863
- package/dist/chunk-MHKHSCIA.cjs +554 -0
- package/dist/chunk-UCZXBHLH.mjs +554 -0
- package/dist/constants-DqVn968d.d.cts +52 -0
- package/dist/constants-DqVn968d.d.ts +52 -0
- package/dist/constants.cjs +8 -2
- package/dist/constants.d.cts +17 -48
- package/dist/constants.d.ts +17 -48
- package/dist/constants.mjs +7 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/styles.css +185 -37
- package/dist/{types-xSHZSlrT.d.cts → types-D8Q4TMk7.d.cts} +17 -5
- package/dist/{types-xSHZSlrT.d.ts → types-D8Q4TMk7.d.ts} +17 -5
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-IVTXEYB2.cjs +0 -507
- package/dist/chunk-VA3ANS7D.mjs +0 -507
package/dist/styles.css
CHANGED
|
@@ -61,6 +61,9 @@
|
|
|
61
61
|
--rs-surface-subtle: #fcfbfb;
|
|
62
62
|
--rs-surface: var(--color-gray3);
|
|
63
63
|
--rs-surface-hover: var(--color-gray4);
|
|
64
|
+
/* Figma coin-select/selected — zinc-100 fill + zinc-300 border. */
|
|
65
|
+
--rs-asset-selected-bg: #f4f4f5;
|
|
66
|
+
--rs-asset-selected-border: #d4d4d8;
|
|
64
67
|
/* Figma: icon-wrapper tokens. Same as surface in light, but dark mode
|
|
65
68
|
diverges so we keep them separate. */
|
|
66
69
|
--rs-icon-wrapper-bg: #f4f4f5;
|
|
@@ -89,11 +92,23 @@
|
|
|
89
92
|
|
|
90
93
|
--rs-success: var(--color-green9);
|
|
91
94
|
--rs-success-tint: var(--color-green3);
|
|
95
|
+
/* Figma alert palette — alert/red (error) + alert/amber (warning). Amber
|
|
96
|
+
has no distinct border token in the design, so its border matches its bg. */
|
|
92
97
|
--rs-error: #fb2c36;
|
|
93
|
-
--rs-error-tint:
|
|
94
|
-
--rs-
|
|
95
|
-
--rs-warning
|
|
96
|
-
--rs-warning-
|
|
98
|
+
--rs-error-tint: #fef2f2;
|
|
99
|
+
--rs-error-border: #ffc9c9;
|
|
100
|
+
--rs-warning: #7b3306;
|
|
101
|
+
--rs-warning-tint: #fee685;
|
|
102
|
+
--rs-warning-border: #fee685;
|
|
103
|
+
/* Callout (generic error/warning notice) — lighter translucent "glass"
|
|
104
|
+
tints so the modal surface shows through. Kept separate from the solid
|
|
105
|
+
alert palette above, which input-error states and badges still use. */
|
|
106
|
+
--rs-callout-error-bg: rgba(251, 44, 54, 0.07);
|
|
107
|
+
--rs-callout-error-border: rgba(251, 44, 54, 0.18);
|
|
108
|
+
--rs-callout-error-text: #e7000b;
|
|
109
|
+
--rs-callout-warning-bg: rgba(245, 158, 11, 0.12);
|
|
110
|
+
--rs-callout-warning-border: rgba(245, 158, 11, 0.24);
|
|
111
|
+
--rs-callout-warning-text: #b45309;
|
|
97
112
|
|
|
98
113
|
--rs-foreground: var(--color-gray12);
|
|
99
114
|
--rs-muted: var(--color-gray10);
|
|
@@ -107,13 +122,14 @@
|
|
|
107
122
|
--rs-secondary: var(--color-gray3);
|
|
108
123
|
--rs-secondary-hover: var(--color-gray4);
|
|
109
124
|
|
|
110
|
-
|
|
111
|
-
|
|
125
|
+
/* Figma: dropdown/select menu uses a tight 0/2/4 shadow at 0.25 so it
|
|
126
|
+
reads on every edge (including the side that sits against the modal). */
|
|
127
|
+
--rs-shadow-dropdown: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
112
128
|
|
|
113
129
|
/* Sizing */
|
|
114
130
|
--rs-height-button: 42px;
|
|
115
131
|
--rs-height-titlebar: 36px;
|
|
116
|
-
--rs-width-dialog:
|
|
132
|
+
--rs-width-dialog: 380px;
|
|
117
133
|
|
|
118
134
|
/* Radius */
|
|
119
135
|
--rs-radius-none: 0;
|
|
@@ -203,6 +219,9 @@
|
|
|
203
219
|
--rs-button-ghost-bg-hover: #3f3f46;
|
|
204
220
|
--rs-button-ghost-text: #e4e4e7;
|
|
205
221
|
--rs-surface-hover: #3f3f46;
|
|
222
|
+
/* Figma coin-select/selected (dark) — zinc-900 fill + zinc-700 border. */
|
|
223
|
+
--rs-asset-selected-bg: #18181b;
|
|
224
|
+
--rs-asset-selected-border: #3f3f46;
|
|
206
225
|
/* Figma button-dark in dark mode: zinc-200 disc, near-black label. */
|
|
207
226
|
--rs-primary: #e4e4e7;
|
|
208
227
|
--rs-primary-hover: #d4d4d8;
|
|
@@ -215,7 +234,20 @@
|
|
|
215
234
|
--rs-shadow-dropdown:
|
|
216
235
|
0 4px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
|
|
217
236
|
|
|
218
|
-
|
|
237
|
+
/* Figma alert palette (dark) — alert/red red-950 bg / red-800 border,
|
|
238
|
+
alert/amber amber-600 bg / amber-50 text (border matches bg). */
|
|
239
|
+
--rs-error-tint: #460809;
|
|
240
|
+
--rs-error-border: #9f0712;
|
|
241
|
+
--rs-warning: #fffbeb;
|
|
242
|
+
--rs-warning-tint: #e17100;
|
|
243
|
+
--rs-warning-border: #e17100;
|
|
244
|
+
/* Callout glass tints (dark) — translucent over the near-black surface. */
|
|
245
|
+
--rs-callout-error-bg: rgba(251, 44, 54, 0.13);
|
|
246
|
+
--rs-callout-error-border: rgba(251, 44, 54, 0.3);
|
|
247
|
+
--rs-callout-error-text: #ff6467;
|
|
248
|
+
--rs-callout-warning-bg: rgba(245, 158, 11, 0.13);
|
|
249
|
+
--rs-callout-warning-border: rgba(245, 158, 11, 0.28);
|
|
250
|
+
--rs-callout-warning-text: #fcd34d;
|
|
219
251
|
|
|
220
252
|
color-scheme: dark;
|
|
221
253
|
}
|
|
@@ -248,7 +280,7 @@
|
|
|
248
280
|
|
|
249
281
|
position: relative;
|
|
250
282
|
width: 100%;
|
|
251
|
-
max-width: var(--rs-width-dialog,
|
|
283
|
+
max-width: var(--rs-width-dialog, 380px);
|
|
252
284
|
/* Cap the modal at 600px (or viewport-40 on tiny screens) so long lists
|
|
253
285
|
scroll inside instead of growing the modal. */
|
|
254
286
|
max-height: min(600px, calc(100vh - 40px));
|
|
@@ -334,6 +366,13 @@
|
|
|
334
366
|
min-height: 280px;
|
|
335
367
|
overflow-y: auto;
|
|
336
368
|
overscroll-behavior: none;
|
|
369
|
+
/* overflow-y:auto forces overflow-x to clip too, which would cut the left/
|
|
370
|
+
right shadow of absolutely-positioned popups (e.g. the chain/token select
|
|
371
|
+
menus) that sit flush against this scroll container's edge. Pull the box
|
|
372
|
+
out to the modal's padding edge and pad it back so content stays put but
|
|
373
|
+
the clip region gains room for the popup shadow to render. */
|
|
374
|
+
margin-inline: -16px;
|
|
375
|
+
padding-inline: 16px;
|
|
337
376
|
}
|
|
338
377
|
|
|
339
378
|
.rs-modal-body::-webkit-scrollbar {
|
|
@@ -678,8 +717,10 @@
|
|
|
678
717
|
|
|
679
718
|
.rs-info-panel-value {
|
|
680
719
|
font-family:
|
|
681
|
-
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
|
|
720
|
+
"Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
|
|
721
|
+
Consolas, monospace;
|
|
682
722
|
font-size: 12px;
|
|
723
|
+
font-weight: 500;
|
|
683
724
|
color: var(--rs-foreground);
|
|
684
725
|
}
|
|
685
726
|
|
|
@@ -731,8 +772,10 @@
|
|
|
731
772
|
|
|
732
773
|
.rs-card-value--mono {
|
|
733
774
|
font-family:
|
|
734
|
-
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
|
|
775
|
+
"Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
|
|
776
|
+
Consolas, monospace;
|
|
735
777
|
font-size: 12px;
|
|
778
|
+
font-weight: 500;
|
|
736
779
|
}
|
|
737
780
|
|
|
738
781
|
.rs-card-value--accent {
|
|
@@ -933,9 +976,14 @@
|
|
|
933
976
|
outline-offset: 2px;
|
|
934
977
|
}
|
|
935
978
|
|
|
979
|
+
/* Figma coin-select/selected: zinc-100 fill + 1px zinc-300 border (dark:
|
|
980
|
+
zinc-900 fill + zinc-700 border). The inset box-shadow draws the border
|
|
981
|
+
without shifting layout. Listed with :hover so the selected fill persists
|
|
982
|
+
when the row is hovered (a bare :hover out-specifies a single class). */
|
|
936
983
|
.rs-asset-row--selected,
|
|
937
984
|
.rs-asset-row--selected:hover:not(:disabled) {
|
|
938
|
-
background-color: var(--rs-
|
|
985
|
+
background-color: var(--rs-asset-selected-bg);
|
|
986
|
+
box-shadow: inset 0 0 0 1px var(--rs-asset-selected-border);
|
|
939
987
|
}
|
|
940
988
|
|
|
941
989
|
.rs-asset-info {
|
|
@@ -1013,14 +1061,14 @@
|
|
|
1013
1061
|
}
|
|
1014
1062
|
|
|
1015
1063
|
.rs-asset-name {
|
|
1016
|
-
font-size:
|
|
1064
|
+
font-size: 14px;
|
|
1017
1065
|
font-weight: 700;
|
|
1018
1066
|
color: var(--rs-foreground);
|
|
1019
1067
|
line-height: normal;
|
|
1020
1068
|
}
|
|
1021
1069
|
|
|
1022
1070
|
.rs-asset-chain {
|
|
1023
|
-
font-size:
|
|
1071
|
+
font-size: 12px;
|
|
1024
1072
|
font-weight: 500;
|
|
1025
1073
|
color: var(--rs-muted);
|
|
1026
1074
|
line-height: normal;
|
|
@@ -1182,7 +1230,8 @@
|
|
|
1182
1230
|
|
|
1183
1231
|
.rs-font-mono {
|
|
1184
1232
|
font-family:
|
|
1185
|
-
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
|
|
1233
|
+
"Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
|
|
1234
|
+
Consolas, monospace;
|
|
1186
1235
|
}
|
|
1187
1236
|
|
|
1188
1237
|
.rs-mt-2 {
|
|
@@ -1663,13 +1712,15 @@
|
|
|
1663
1712
|
}
|
|
1664
1713
|
|
|
1665
1714
|
/* Inline "Disconnect" pill that sits inside a connected-wallet ListRow's
|
|
1666
|
-
meta slot.
|
|
1667
|
-
|
|
1715
|
+
meta slot. 14/Medium text, transparent background so the row's surface
|
|
1716
|
+
shows through. Vertical padding stays under the 36px title+subtitle block
|
|
1717
|
+
so the pill never inflates the row past the 60px the other method cards
|
|
1718
|
+
use — keeps Transfer crypto / External wallet / Polymarket rows uniform. */
|
|
1668
1719
|
.rs-list-row-action {
|
|
1669
1720
|
appearance: none;
|
|
1670
1721
|
border: none;
|
|
1671
1722
|
background: transparent;
|
|
1672
|
-
padding: 12px
|
|
1723
|
+
padding: 8px 12px;
|
|
1673
1724
|
border-radius: 8px;
|
|
1674
1725
|
font-family: inherit;
|
|
1675
1726
|
font-size: 14px;
|
|
@@ -2005,30 +2056,67 @@
|
|
|
2005
2056
|
font-feature-settings: "tnum";
|
|
2006
2057
|
}
|
|
2007
2058
|
|
|
2008
|
-
.rs-amount-
|
|
2059
|
+
.rs-amount-prefix {
|
|
2060
|
+
flex: none;
|
|
2061
|
+
user-select: none;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/* The number wrapper layers the real <input> transparently over a visual
|
|
2065
|
+
glyph layer so the caret/editing stays native while the visible digits
|
|
2066
|
+
are the ones we animate. Sized by the visual layer; the input fills it. */
|
|
2067
|
+
.rs-amount-number-wrap {
|
|
2068
|
+
position: relative;
|
|
2009
2069
|
flex: 1;
|
|
2010
2070
|
min-width: 0;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
.rs-amount-number-wrap > input {
|
|
2074
|
+
position: absolute;
|
|
2075
|
+
inset: 0;
|
|
2011
2076
|
width: 100%;
|
|
2077
|
+
height: 100%;
|
|
2012
2078
|
background: transparent;
|
|
2013
2079
|
border: none;
|
|
2014
2080
|
outline: none;
|
|
2015
2081
|
font: inherit;
|
|
2016
|
-
color:
|
|
2082
|
+
color: transparent;
|
|
2017
2083
|
font-feature-settings: "tnum";
|
|
2018
2084
|
padding: 0;
|
|
2019
2085
|
caret-color: var(--rs-foreground);
|
|
2020
2086
|
}
|
|
2021
2087
|
|
|
2022
|
-
.rs-amount-
|
|
2023
|
-
color:
|
|
2088
|
+
.rs-amount-number-wrap > input::placeholder {
|
|
2089
|
+
color: transparent;
|
|
2024
2090
|
}
|
|
2025
2091
|
|
|
2026
|
-
.rs-amount-
|
|
2027
|
-
.rs-amount-
|
|
2092
|
+
.rs-amount-number-wrap > input::-webkit-outer-spin-button,
|
|
2093
|
+
.rs-amount-number-wrap > input::-webkit-inner-spin-button {
|
|
2028
2094
|
-webkit-appearance: none;
|
|
2029
2095
|
margin: 0;
|
|
2030
2096
|
}
|
|
2031
2097
|
|
|
2098
|
+
.rs-amount-visual {
|
|
2099
|
+
pointer-events: none;
|
|
2100
|
+
display: flex;
|
|
2101
|
+
align-items: center;
|
|
2102
|
+
font-feature-settings: "tnum";
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
.rs-amount-char-slot {
|
|
2106
|
+
display: inline-block;
|
|
2107
|
+
overflow: hidden;
|
|
2108
|
+
height: 1em;
|
|
2109
|
+
line-height: 1;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.rs-amount-char-inner {
|
|
2113
|
+
display: block;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
.rs-amount-visual--placeholder {
|
|
2117
|
+
color: var(--rs-muted);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2032
2120
|
.rs-amount-meta {
|
|
2033
2121
|
display: flex;
|
|
2034
2122
|
align-items: center;
|
|
@@ -2267,6 +2355,54 @@
|
|
|
2267
2355
|
border: 1px solid var(--rs-warning-border);
|
|
2268
2356
|
}
|
|
2269
2357
|
|
|
2358
|
+
/* Generic inline error / warning notice (Callout). Two-line truncation keeps
|
|
2359
|
+
long messages from blowing out the modal height. */
|
|
2360
|
+
.rs-callout {
|
|
2361
|
+
display: flex;
|
|
2362
|
+
align-items: flex-start;
|
|
2363
|
+
gap: 8px;
|
|
2364
|
+
padding: 10px 12px;
|
|
2365
|
+
border-radius: var(--rs-radius-sm);
|
|
2366
|
+
border: 1px solid transparent;
|
|
2367
|
+
font-size: 13px;
|
|
2368
|
+
font-weight: 500;
|
|
2369
|
+
line-height: 16px;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
.rs-callout-icon {
|
|
2373
|
+
flex-shrink: 0;
|
|
2374
|
+
width: 16px;
|
|
2375
|
+
height: 16px;
|
|
2376
|
+
display: inline-flex;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
.rs-callout-icon svg {
|
|
2380
|
+
width: 16px;
|
|
2381
|
+
height: 16px;
|
|
2382
|
+
display: block;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
.rs-callout-text {
|
|
2386
|
+
min-width: 0;
|
|
2387
|
+
display: -webkit-box;
|
|
2388
|
+
-webkit-box-orient: vertical;
|
|
2389
|
+
-webkit-line-clamp: 2;
|
|
2390
|
+
line-clamp: 2;
|
|
2391
|
+
overflow: hidden;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
.rs-callout--error {
|
|
2395
|
+
background: var(--rs-callout-error-bg);
|
|
2396
|
+
border-color: var(--rs-callout-error-border);
|
|
2397
|
+
color: var(--rs-callout-error-text);
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
.rs-callout--warning {
|
|
2401
|
+
background: var(--rs-callout-warning-bg);
|
|
2402
|
+
border-color: var(--rs-callout-warning-border);
|
|
2403
|
+
color: var(--rs-callout-warning-text);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2270
2406
|
/* =============================================================================
|
|
2271
2407
|
Confirm Step Redesign (Polymarket Style)
|
|
2272
2408
|
============================================================================= */
|
|
@@ -2385,17 +2521,6 @@
|
|
|
2385
2521
|
Withdraw Form Step
|
|
2386
2522
|
============================================================================= */
|
|
2387
2523
|
|
|
2388
|
-
.rs-withdraw-form {
|
|
2389
|
-
padding: 16px;
|
|
2390
|
-
display: flex;
|
|
2391
|
-
flex-direction: column;
|
|
2392
|
-
gap: 16px;
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
.rs-step-body.rs-withdraw-loading {
|
|
2396
|
-
padding: 0 12px;
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
2524
|
.rs-withdraw-loading {
|
|
2400
2525
|
min-height: 240px;
|
|
2401
2526
|
display: grid;
|
|
@@ -3100,7 +3225,7 @@
|
|
|
3100
3225
|
background: var(--rs-surface-subtle);
|
|
3101
3226
|
border: 1px solid var(--rs-surface-subtle);
|
|
3102
3227
|
border-radius: var(--rs-radius-sm);
|
|
3103
|
-
box-shadow:
|
|
3228
|
+
box-shadow: var(--rs-shadow-dropdown);
|
|
3104
3229
|
padding: 12px;
|
|
3105
3230
|
display: flex;
|
|
3106
3231
|
flex-direction: column;
|
|
@@ -3149,6 +3274,27 @@
|
|
|
3149
3274
|
border-radius: 8px;
|
|
3150
3275
|
}
|
|
3151
3276
|
|
|
3277
|
+
/* Mid-refetch: dim the address/QR and block interaction so a stale
|
|
3278
|
+
registration can't be copied or scanned until setup is ready again. */
|
|
3279
|
+
.rs-deposit-address-well--updating {
|
|
3280
|
+
opacity: 0.4;
|
|
3281
|
+
pointer-events: none;
|
|
3282
|
+
filter: grayscale(0.3);
|
|
3283
|
+
transition: opacity 0.15s;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
.rs-deposit-address-updating {
|
|
3287
|
+
display: flex;
|
|
3288
|
+
align-items: center;
|
|
3289
|
+
justify-content: center;
|
|
3290
|
+
gap: 8px;
|
|
3291
|
+
width: 100%;
|
|
3292
|
+
padding: 10px 12px;
|
|
3293
|
+
font-size: 14px;
|
|
3294
|
+
font-weight: 500;
|
|
3295
|
+
color: var(--rs-muted);
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3152
3298
|
.rs-deposit-address-qr {
|
|
3153
3299
|
display: flex;
|
|
3154
3300
|
align-items: center;
|
|
@@ -3710,6 +3856,8 @@
|
|
|
3710
3856
|
z-index: 10;
|
|
3711
3857
|
display: flex;
|
|
3712
3858
|
flex-direction: column;
|
|
3859
|
+
padding: 16px;
|
|
3860
|
+
gap: 16px;
|
|
3713
3861
|
background: var(--rs-background);
|
|
3714
3862
|
border-radius: inherit;
|
|
3715
3863
|
animation: rs-history-slide-in 0.2s cubic-bezier(0.32, 0.72, 0, 1);
|
|
@@ -3734,7 +3882,7 @@
|
|
|
3734
3882
|
display: flex;
|
|
3735
3883
|
flex-direction: column;
|
|
3736
3884
|
flex-grow: 1;
|
|
3737
|
-
padding:
|
|
3885
|
+
padding: 0;
|
|
3738
3886
|
gap: 16px;
|
|
3739
3887
|
min-height: 0;
|
|
3740
3888
|
}
|
|
@@ -111,7 +111,7 @@ interface DepositCompleteEventData {
|
|
|
111
111
|
amount: string;
|
|
112
112
|
sourceChain: ChainId | "unknown";
|
|
113
113
|
sourceToken?: string;
|
|
114
|
-
targetChain: number;
|
|
114
|
+
targetChain: number | "solana";
|
|
115
115
|
targetToken: string;
|
|
116
116
|
}
|
|
117
117
|
interface DepositFailedEventData {
|
|
@@ -157,16 +157,28 @@ interface DepositModalProps {
|
|
|
157
157
|
dappWalletClient?: WalletClient | null;
|
|
158
158
|
dappPublicClient?: PublicClient | null;
|
|
159
159
|
dappAddress?: Address | null;
|
|
160
|
-
targetChain: Chain | number;
|
|
161
|
-
targetToken: Address;
|
|
160
|
+
targetChain: Chain | number | "solana";
|
|
161
|
+
targetToken: Address | string;
|
|
162
162
|
isOpen: boolean;
|
|
163
163
|
onClose: () => void;
|
|
164
164
|
inline?: boolean;
|
|
165
165
|
closeOnOverlayClick?: boolean;
|
|
166
166
|
sourceChain?: Chain | number;
|
|
167
167
|
sourceToken?: Address;
|
|
168
|
+
/**
|
|
169
|
+
* Pre-fills the deposit amount. Either a USD-denominated number string
|
|
170
|
+
* (e.g. "25") or the case-insensitive sentinel `"max"`, which fills the
|
|
171
|
+
* full available balance once it loads (same as the Max preset).
|
|
172
|
+
*/
|
|
168
173
|
defaultAmount?: string;
|
|
169
|
-
recipient: Address;
|
|
174
|
+
recipient: Address | string;
|
|
175
|
+
/**
|
|
176
|
+
* The user's current in-app balance, in USD, as the consuming app displays
|
|
177
|
+
* it. When provided, the amount screen shows a "Balance after deposit" row
|
|
178
|
+
* (`appBalanceUsd + amount`) so the user sees their post-deposit app
|
|
179
|
+
* balance. The row is hidden when this is omitted.
|
|
180
|
+
*/
|
|
181
|
+
appBalanceUsd?: number;
|
|
170
182
|
postBridgeActions?: PostBridgeAction[];
|
|
171
183
|
outputTokenRules?: OutputTokenRule[];
|
|
172
184
|
rejectUnmapped?: boolean;
|
|
@@ -272,7 +284,7 @@ type DepositLifecycleEvent = {
|
|
|
272
284
|
amount: string;
|
|
273
285
|
sourceChain: ChainId | "unknown";
|
|
274
286
|
sourceToken?: string;
|
|
275
|
-
targetChain: number;
|
|
287
|
+
targetChain: number | "solana";
|
|
276
288
|
targetToken: string;
|
|
277
289
|
} | {
|
|
278
290
|
type: "failed";
|
|
@@ -111,7 +111,7 @@ interface DepositCompleteEventData {
|
|
|
111
111
|
amount: string;
|
|
112
112
|
sourceChain: ChainId | "unknown";
|
|
113
113
|
sourceToken?: string;
|
|
114
|
-
targetChain: number;
|
|
114
|
+
targetChain: number | "solana";
|
|
115
115
|
targetToken: string;
|
|
116
116
|
}
|
|
117
117
|
interface DepositFailedEventData {
|
|
@@ -157,16 +157,28 @@ interface DepositModalProps {
|
|
|
157
157
|
dappWalletClient?: WalletClient | null;
|
|
158
158
|
dappPublicClient?: PublicClient | null;
|
|
159
159
|
dappAddress?: Address | null;
|
|
160
|
-
targetChain: Chain | number;
|
|
161
|
-
targetToken: Address;
|
|
160
|
+
targetChain: Chain | number | "solana";
|
|
161
|
+
targetToken: Address | string;
|
|
162
162
|
isOpen: boolean;
|
|
163
163
|
onClose: () => void;
|
|
164
164
|
inline?: boolean;
|
|
165
165
|
closeOnOverlayClick?: boolean;
|
|
166
166
|
sourceChain?: Chain | number;
|
|
167
167
|
sourceToken?: Address;
|
|
168
|
+
/**
|
|
169
|
+
* Pre-fills the deposit amount. Either a USD-denominated number string
|
|
170
|
+
* (e.g. "25") or the case-insensitive sentinel `"max"`, which fills the
|
|
171
|
+
* full available balance once it loads (same as the Max preset).
|
|
172
|
+
*/
|
|
168
173
|
defaultAmount?: string;
|
|
169
|
-
recipient: Address;
|
|
174
|
+
recipient: Address | string;
|
|
175
|
+
/**
|
|
176
|
+
* The user's current in-app balance, in USD, as the consuming app displays
|
|
177
|
+
* it. When provided, the amount screen shows a "Balance after deposit" row
|
|
178
|
+
* (`appBalanceUsd + amount`) so the user sees their post-deposit app
|
|
179
|
+
* balance. The row is hidden when this is omitted.
|
|
180
|
+
*/
|
|
181
|
+
appBalanceUsd?: number;
|
|
170
182
|
postBridgeActions?: PostBridgeAction[];
|
|
171
183
|
outputTokenRules?: OutputTokenRule[];
|
|
172
184
|
rejectUnmapped?: boolean;
|
|
@@ -272,7 +284,7 @@ type DepositLifecycleEvent = {
|
|
|
272
284
|
amount: string;
|
|
273
285
|
sourceChain: ChainId | "unknown";
|
|
274
286
|
sourceToken?: string;
|
|
275
|
-
targetChain: number;
|
|
287
|
+
targetChain: number | "solana";
|
|
276
288
|
targetToken: string;
|
|
277
289
|
} | {
|
|
278
290
|
type: "failed";
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkCPXERFGCcjs = require('./chunk-CPXERFGC.cjs');
|
|
4
|
+
require('./chunk-ENMIKNXS.cjs');
|
|
5
|
+
require('./chunk-MHKHSCIA.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.WithdrawModal =
|
|
8
|
+
exports.WithdrawModal = _chunkCPXERFGCcjs.WithdrawModal;
|
package/dist/withdraw.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { n as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-
|
|
2
|
+
import { n as WithdrawModalProps } from './types-D8Q4TMk7.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-D8Q4TMk7.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
|
package/dist/withdraw.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { n as WithdrawModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-
|
|
2
|
+
import { n as WithdrawModalProps } from './types-D8Q4TMk7.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, S as SafeTransactionRequest, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, o as WithdrawSubmittedEventData } from './types-D8Q4TMk7.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
6
|
declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
|
package/dist/withdraw.mjs
CHANGED