@rhinestone/deposit-modal 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DepositModalReown-J3KYAOD3.cjs → DepositModalReown-CHVDFNEX.cjs} +9 -9
- package/dist/{DepositModalReown-YD7TLEAA.mjs → DepositModalReown-T4RRW5FM.mjs} +6 -6
- package/dist/{WithdrawModalReown-ZPDMX47Z.mjs → WithdrawModalReown-Q6MUMZTX.mjs} +5 -5
- package/dist/{WithdrawModalReown-QSQUV6HX.cjs → WithdrawModalReown-YZMZTN6E.cjs} +8 -8
- package/dist/{chunk-FJWLC4AM.mjs → chunk-4JLYWRQA.mjs} +1 -1
- package/dist/{chunk-YYIE5U5K.cjs → chunk-6P3WNDED.cjs} +10 -8
- package/dist/{chunk-3JVGI7FC.mjs → chunk-CLUR2J72.mjs} +4 -4
- package/dist/{chunk-WJX3TJFK.mjs → chunk-CPMHRMPH.mjs} +36 -7
- package/dist/{chunk-ABVRVW3P.cjs → chunk-HH46H6ZI.cjs} +37 -8
- package/dist/{chunk-DXGM6YET.mjs → chunk-J52W34Y7.mjs} +6 -4
- package/dist/{chunk-F7P4MV72.mjs → chunk-K6J3RDDK.mjs} +1 -1
- package/dist/{chunk-DASS33PJ.cjs → chunk-KUURQOTT.cjs} +100 -100
- package/dist/{chunk-GQDVHMOT.mjs → chunk-OYPFPEIT.mjs} +333 -54
- package/dist/{chunk-7LVI3VAL.cjs → chunk-QSMPJQTX.cjs} +698 -529
- package/dist/{chunk-UEKPBRBY.cjs → chunk-RLMXWLF4.cjs} +3 -3
- package/dist/{chunk-ZDYV536Q.cjs → chunk-UN6MEOOA.cjs} +382 -103
- package/dist/{chunk-NSAODZSS.mjs → chunk-UZENNYHS.mjs} +242 -73
- package/dist/{chunk-NRNJAQUA.cjs → chunk-XOBLFIGV.cjs} +4 -4
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +6 -6
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +3 -3
- package/dist/styles.css +103 -31
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRLMXWLF4cjs = require('./chunk-RLMXWLF4.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/dapp-imports/polymarket/constants.ts
|
|
6
6
|
var POLYMARKET_POLYGON_CHAIN_ID = 137;
|
|
@@ -100,7 +100,7 @@ async function executePolymarketSafeTransfer(params) {
|
|
|
100
100
|
}
|
|
101
101
|
const isOwner = await publicClient.readContract({
|
|
102
102
|
address: safeAddress,
|
|
103
|
-
abi:
|
|
103
|
+
abi: _chunkRLMXWLF4cjs.SAFE_ABI,
|
|
104
104
|
functionName: "isOwner",
|
|
105
105
|
args: [account.address]
|
|
106
106
|
});
|
|
@@ -117,7 +117,7 @@ async function executePolymarketSafeTransfer(params) {
|
|
|
117
117
|
account,
|
|
118
118
|
chain,
|
|
119
119
|
address: safeAddress,
|
|
120
|
-
abi:
|
|
120
|
+
abi: _chunkRLMXWLF4cjs.SAFE_ABI,
|
|
121
121
|
functionName: "execTransaction",
|
|
122
122
|
args: [
|
|
123
123
|
safeTx.to,
|
|
@@ -136,7 +136,7 @@ async function executePolymarketSafeTransfer(params) {
|
|
|
136
136
|
hash: txHash
|
|
137
137
|
});
|
|
138
138
|
const parsed = _viem.parseEventLogs.call(void 0, {
|
|
139
|
-
abi:
|
|
139
|
+
abi: _chunkRLMXWLF4cjs.SAFE_ABI,
|
|
140
140
|
logs: receipt.logs.filter(
|
|
141
141
|
(log) => log.address.toLowerCase() === safeAddress.toLowerCase()
|
|
142
142
|
),
|
package/dist/constants.cjs
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -67,4 +67,4 @@ var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
exports.CHAIN_BY_ID =
|
|
70
|
+
exports.CHAIN_BY_ID = _chunkHH46H6ZIcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkHH46H6ZIcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS; exports.HYPERCORE_CHAIN_ID = _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkHH46H6ZIcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkHH46H6ZIcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkHH46H6ZIcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkHH46H6ZIcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkHH46H6ZIcjs.chainRegistry; exports.findChainIdForToken = _chunkHH46H6ZIcjs.findChainIdForToken; exports.getChainBadge = _chunkHH46H6ZIcjs.getChainBadge; exports.getChainIcon = _chunkHH46H6ZIcjs.getChainIcon; exports.getChainId = _chunkHH46H6ZIcjs.getChainId; exports.getChainName = _chunkHH46H6ZIcjs.getChainName; exports.getChainObject = _chunkHH46H6ZIcjs.getChainObject; exports.getExplorerName = _chunkHH46H6ZIcjs.getExplorerName; exports.getExplorerTxUrl = _chunkHH46H6ZIcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkHH46H6ZIcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkHH46H6ZIcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkHH46H6ZIcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkHH46H6ZIcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkHH46H6ZIcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkHH46H6ZIcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkHH46H6ZIcjs.getTokenAddress; exports.getTokenDecimals = _chunkHH46H6ZIcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkHH46H6ZIcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon; exports.getTokenSymbol = _chunkHH46H6ZIcjs.getTokenSymbol; exports.getUsdcAddress = _chunkHH46H6ZIcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkHH46H6ZIcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkHH46H6ZIcjs.isSupportedTokenAddressForChain;
|
package/dist/constants.mjs
CHANGED
package/dist/deposit.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunkQSMPJQTXcjs = require('./chunk-QSMPJQTX.cjs');
|
|
4
|
+
require('./chunk-XOBLFIGV.cjs');
|
|
5
|
+
require('./chunk-UN6MEOOA.cjs');
|
|
6
|
+
require('./chunk-RLMXWLF4.cjs');
|
|
7
|
+
require('./chunk-HH46H6ZI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.DepositModal =
|
|
10
|
+
exports.DepositModal = _chunkQSMPJQTXcjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UZENNYHS.mjs";
|
|
4
|
+
import "./chunk-4JLYWRQA.mjs";
|
|
5
|
+
import "./chunk-OYPFPEIT.mjs";
|
|
6
|
+
import "./chunk-K6J3RDDK.mjs";
|
|
7
|
+
import "./chunk-CPMHRMPH.mjs";
|
|
8
8
|
export {
|
|
9
9
|
DepositModal
|
|
10
10
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkQSMPJQTXcjs = require('./chunk-QSMPJQTX.cjs');
|
|
4
|
+
require('./chunk-XOBLFIGV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkKUURQOTTcjs = require('./chunk-KUURQOTT.cjs');
|
|
8
|
+
require('./chunk-UN6MEOOA.cjs');
|
|
9
|
+
require('./chunk-RLMXWLF4.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -38,7 +38,7 @@ require('./chunk-UEKPBRBY.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.cjs');
|
|
42
42
|
|
|
43
43
|
// src/core/reown-disconnect.ts
|
|
44
44
|
var _react = require('@reown/appkit/react');
|
|
@@ -85,4 +85,4 @@ async function disconnectWallet() {
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
exports.CHAIN_BY_ID =
|
|
88
|
+
exports.CHAIN_BY_ID = _chunkHH46H6ZIcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkHH46H6ZIcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkQSMPJQTXcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkHH46H6ZIcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkHH46H6ZIcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkHH46H6ZIcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkKUURQOTTcjs.WithdrawModal; exports.chainRegistry = _chunkHH46H6ZIcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkHH46H6ZIcjs.findChainIdForToken; exports.getChainBadge = _chunkHH46H6ZIcjs.getChainBadge; exports.getChainIcon = _chunkHH46H6ZIcjs.getChainIcon; exports.getChainId = _chunkHH46H6ZIcjs.getChainId; exports.getChainName = _chunkHH46H6ZIcjs.getChainName; exports.getChainObject = _chunkHH46H6ZIcjs.getChainObject; exports.getExplorerName = _chunkHH46H6ZIcjs.getExplorerName; exports.getExplorerTxUrl = _chunkHH46H6ZIcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkHH46H6ZIcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkHH46H6ZIcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkHH46H6ZIcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkHH46H6ZIcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkHH46H6ZIcjs.getTokenAddress; exports.getTokenDecimals = _chunkHH46H6ZIcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkHH46H6ZIcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon; exports.getTokenSymbol = _chunkHH46H6ZIcjs.getTokenSymbol; exports.getUsdcAddress = _chunkHH46H6ZIcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkHH46H6ZIcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkHH46H6ZIcjs.isSupportedTokenAddressForChain;
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UZENNYHS.mjs";
|
|
4
|
+
import "./chunk-4JLYWRQA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
WithdrawModal
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-CLUR2J72.mjs";
|
|
8
|
+
import "./chunk-OYPFPEIT.mjs";
|
|
9
|
+
import "./chunk-K6J3RDDK.mjs";
|
|
10
10
|
import {
|
|
11
11
|
CHAIN_BY_ID,
|
|
12
12
|
DEFAULT_BACKEND_URL,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
getUsdcAddress,
|
|
39
39
|
getUsdcDecimals,
|
|
40
40
|
isSupportedTokenAddressForChain
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-CPMHRMPH.mjs";
|
|
42
42
|
|
|
43
43
|
// src/core/reown-disconnect.ts
|
|
44
44
|
import { modal } from "@reown/appkit/react";
|
package/dist/polymarket.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var _chunkXOBLFIGVcjs = require('./chunk-XOBLFIGV.cjs');
|
|
6
|
+
require('./chunk-RLMXWLF4.cjs');
|
|
7
|
+
require('./chunk-HH46H6ZI.cjs');
|
|
8
8
|
|
|
9
9
|
// src/core/dapp-imports/polymarket/account.ts
|
|
10
10
|
|
|
@@ -23,12 +23,12 @@ async function getPolymarketAccount(params) {
|
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
const eoa = _viem.getAddress.call(void 0, params.eoa);
|
|
26
|
-
const proxyWallet = await
|
|
26
|
+
const proxyWallet = await _chunkXOBLFIGVcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
|
|
27
27
|
if (!proxyWallet) return null;
|
|
28
28
|
throwIfAborted(signal);
|
|
29
29
|
let balances = { pusd: 0n, usdce: 0n };
|
|
30
30
|
try {
|
|
31
|
-
balances = await
|
|
31
|
+
balances = await _chunkXOBLFIGVcjs.readPolymarketBalances.call(void 0, {
|
|
32
32
|
publicClient: polygonClient(rpcUrl),
|
|
33
33
|
proxyWallet
|
|
34
34
|
});
|
|
@@ -40,7 +40,7 @@ async function getPolymarketAccount(params) {
|
|
|
40
40
|
return {
|
|
41
41
|
eoa,
|
|
42
42
|
proxyWallet,
|
|
43
|
-
chainId:
|
|
43
|
+
chainId: _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID,
|
|
44
44
|
pusd,
|
|
45
45
|
usdce,
|
|
46
46
|
totalUsd: pusd.usd + usdce.usd
|
package/dist/polymarket.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
POLYMARKET_POLYGON_CHAIN_ID,
|
|
3
3
|
fetchPolymarketProxyWallet,
|
|
4
4
|
readPolymarketBalances
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-4JLYWRQA.mjs";
|
|
6
|
+
import "./chunk-K6J3RDDK.mjs";
|
|
7
|
+
import "./chunk-CPMHRMPH.mjs";
|
|
8
8
|
|
|
9
9
|
// src/core/dapp-imports/polymarket/account.ts
|
|
10
10
|
import {
|
package/dist/styles.css
CHANGED
|
@@ -169,6 +169,15 @@
|
|
|
169
169
|
gap: 16px;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
.rs-modal--swapped-iframe {
|
|
173
|
+
/* Full-bleed embedded iframe: no header chrome, no footer, so it fills the
|
|
174
|
+
modal top-to-bottom. Only the vertical padding is dropped — the horizontal
|
|
175
|
+
inset is already cancelled by the body's negative margin for full width. */
|
|
176
|
+
padding-top: 0;
|
|
177
|
+
padding-bottom: 0;
|
|
178
|
+
gap: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
172
181
|
/* =============================================================================
|
|
173
182
|
Dark Mode
|
|
174
183
|
============================================================================= */
|
|
@@ -2252,6 +2261,22 @@
|
|
|
2252
2261
|
justify-content: space-between;
|
|
2253
2262
|
gap: 12px;
|
|
2254
2263
|
width: 100%;
|
|
2264
|
+
font-size: 14px;
|
|
2265
|
+
font-weight: 500;
|
|
2266
|
+
line-height: normal;
|
|
2267
|
+
color: var(--rs-muted);
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
.rs-fees-accordion-label {
|
|
2271
|
+
display: inline-flex;
|
|
2272
|
+
align-items: center;
|
|
2273
|
+
gap: 4px;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
.rs-fees-accordion-toggle {
|
|
2277
|
+
display: inline-flex;
|
|
2278
|
+
align-items: center;
|
|
2279
|
+
gap: 4px;
|
|
2255
2280
|
padding: 0;
|
|
2256
2281
|
background: none;
|
|
2257
2282
|
border: 0;
|
|
@@ -2261,13 +2286,14 @@
|
|
|
2261
2286
|
line-height: normal;
|
|
2262
2287
|
color: var(--rs-muted);
|
|
2263
2288
|
cursor: pointer;
|
|
2289
|
+
font-feature-settings: "tnum";
|
|
2264
2290
|
}
|
|
2265
2291
|
|
|
2266
|
-
.rs-fees-accordion-
|
|
2292
|
+
.rs-fees-accordion-toggle:disabled {
|
|
2267
2293
|
cursor: default;
|
|
2268
2294
|
}
|
|
2269
2295
|
|
|
2270
|
-
.rs-fees-accordion-
|
|
2296
|
+
.rs-fees-accordion-toggle:focus-visible {
|
|
2271
2297
|
outline: 2px solid var(--rs-border-accent);
|
|
2272
2298
|
outline-offset: 2px;
|
|
2273
2299
|
border-radius: 4px;
|
|
@@ -3303,6 +3329,9 @@
|
|
|
3303
3329
|
line-height: normal;
|
|
3304
3330
|
color: var(--rs-foreground);
|
|
3305
3331
|
font-family: inherit;
|
|
3332
|
+
/* Never wrap the chain/token label to a 2nd line (it would resize the
|
|
3333
|
+
modal). Labels are abbreviated; this is the belt-and-suspenders. */
|
|
3334
|
+
white-space: nowrap;
|
|
3306
3335
|
}
|
|
3307
3336
|
|
|
3308
3337
|
.rs-deposit-address-dropdown-trigger:hover {
|
|
@@ -3326,6 +3355,21 @@
|
|
|
3326
3355
|
flex-shrink: 0;
|
|
3327
3356
|
}
|
|
3328
3357
|
|
|
3358
|
+
/* Text-badge fallback when a token has no bundled icon (mirrors the wallet
|
|
3359
|
+
asset list), so dropdown rows never render a blank icon slot. */
|
|
3360
|
+
.rs-deposit-address-dropdown-icon--fallback {
|
|
3361
|
+
display: flex;
|
|
3362
|
+
align-items: center;
|
|
3363
|
+
justify-content: center;
|
|
3364
|
+
background-color: var(--rs-surface);
|
|
3365
|
+
color: inherit;
|
|
3366
|
+
font-size: 9px;
|
|
3367
|
+
font-weight: 600;
|
|
3368
|
+
text-transform: uppercase;
|
|
3369
|
+
letter-spacing: -0.2px;
|
|
3370
|
+
overflow: hidden;
|
|
3371
|
+
}
|
|
3372
|
+
|
|
3329
3373
|
.rs-deposit-address-dropdown-chevron {
|
|
3330
3374
|
width: 24px;
|
|
3331
3375
|
height: 24px;
|
|
@@ -4878,14 +4922,24 @@
|
|
|
4878
4922
|
|
|
4879
4923
|
/* Card-network chips: exported Figma tiles are all 38×24. */
|
|
4880
4924
|
.rs-list-row-meta-icons--cards > .rs-card-network {
|
|
4925
|
+
position: relative;
|
|
4881
4926
|
width: 29px;
|
|
4882
4927
|
height: 18px;
|
|
4883
4928
|
border-radius: 3.25px;
|
|
4884
4929
|
overflow: hidden;
|
|
4885
|
-
background:
|
|
4930
|
+
background: #fff;
|
|
4886
4931
|
box-shadow: none;
|
|
4887
4932
|
}
|
|
4888
4933
|
|
|
4934
|
+
.rs-list-row-meta-icons--cards > .rs-card-network::after {
|
|
4935
|
+
content: "";
|
|
4936
|
+
position: absolute;
|
|
4937
|
+
inset: 0;
|
|
4938
|
+
border: 1px solid var(--rs-surface-subtle);
|
|
4939
|
+
border-radius: inherit;
|
|
4940
|
+
pointer-events: none;
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4889
4943
|
.rs-list-row-meta-icons--cards > .rs-card-network + .rs-card-network {
|
|
4890
4944
|
margin-left: -7px;
|
|
4891
4945
|
}
|
|
@@ -4893,6 +4947,7 @@
|
|
|
4893
4947
|
.rs-list-row-meta-icons--cards .rs-card-network svg {
|
|
4894
4948
|
width: 100%;
|
|
4895
4949
|
height: 100%;
|
|
4950
|
+
display: block;
|
|
4896
4951
|
}
|
|
4897
4952
|
|
|
4898
4953
|
.rs-list-row-chevron {
|
|
@@ -4937,8 +4992,8 @@
|
|
|
4937
4992
|
|
|
4938
4993
|
/* `.rs-fiat-onramp` is a marker class on the .rs-screen root so the
|
|
4939
4994
|
modal-content `:has()` rules below can size correctly. The Swapped iframe
|
|
4940
|
-
phase intentionally omits
|
|
4941
|
-
|
|
4995
|
+
phase intentionally omits our header chrome so the embedded widget owns the
|
|
4996
|
+
top of the modal. */
|
|
4942
4997
|
|
|
4943
4998
|
.rs-fiat-onramp-body {
|
|
4944
4999
|
gap: 0;
|
|
@@ -4980,21 +5035,35 @@
|
|
|
4980
5035
|
color: var(--rs-muted);
|
|
4981
5036
|
}
|
|
4982
5037
|
|
|
4983
|
-
/*
|
|
4984
|
-
|
|
4985
|
-
|
|
5038
|
+
/* The iframe phase owns the whole modal width. Normal screens keep the
|
|
5039
|
+
16px body inset, but Swapped now provides its own in-iframe back chrome so
|
|
5040
|
+
the embedded sheet should not look like a padded card inside our modal. */
|
|
5041
|
+
.rs-modal-body[data-flow-mode="fiat-onramp"]:has(.rs-fiat-onramp),
|
|
5042
|
+
.rs-modal-body[data-flow-mode="exchange-connect"]:has(.rs-fiat-onramp) {
|
|
5043
|
+
padding-inline: 0;
|
|
5044
|
+
}
|
|
5045
|
+
|
|
5046
|
+
/* Connect keeps our back/close chrome above the embedded widget. In the iframe
|
|
5047
|
+
phase, drop only the bottom shell padding so the iframe lands flush with the
|
|
5048
|
+
modal bottom edge; the side inset still lets the body negative margin expand
|
|
5049
|
+
iframe phases cleanly to the modal edges. */
|
|
5050
|
+
.rs-modal:has(.rs-modal-body[data-flow-mode="exchange-connect"] .rs-fiat-onramp) {
|
|
5051
|
+
padding: 16px 16px 0;
|
|
5052
|
+
}
|
|
5053
|
+
|
|
5054
|
+
/* Iframe wrap sized to Swapped's documented heights. Width deliberately spans
|
|
5055
|
+
the full modal body in the iframe phase; the modal itself controls the
|
|
5056
|
+
product-specific width below. */
|
|
4986
5057
|
.rs-fiat-onramp-iframe-wrap {
|
|
4987
5058
|
position: relative;
|
|
4988
5059
|
width: 100%;
|
|
4989
|
-
max-width: 400px;
|
|
4990
5060
|
min-height: 586px;
|
|
4991
|
-
margin: 0
|
|
4992
|
-
border-radius:
|
|
5061
|
+
margin: 0;
|
|
5062
|
+
border-radius: 0;
|
|
4993
5063
|
overflow: hidden;
|
|
4994
5064
|
}
|
|
4995
5065
|
|
|
4996
5066
|
.rs-fiat-onramp[data-variant="connect"] .rs-fiat-onramp-iframe-wrap {
|
|
4997
|
-
max-width: 445px;
|
|
4998
5067
|
min-height: 585px;
|
|
4999
5068
|
}
|
|
5000
5069
|
|
|
@@ -5211,22 +5280,14 @@
|
|
|
5211
5280
|
/* =============================================================================
|
|
5212
5281
|
Modal sizing for the Swapped iframe step
|
|
5213
5282
|
=============================================================================
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
laptops get a scrollable modal-body
|
|
5219
|
-
|
|
5220
|
-
/* Connect's iframe is 445×585 (vs fiat's 400×586). To preserve the same
|
|
5221
|
-
12px horizontal padding as ConnectStep while still giving Swapped's
|
|
5222
|
-
Connect iframe its documented width, widen the modal by 24px (12 each
|
|
5223
|
-
side) → 469px. Applied from the moment the user enters exchange-connect
|
|
5224
|
-
mode (`data-flow-mode` on rs-modal-body) — not just the iframe step —
|
|
5225
|
-
so the modal width is stable across SetupStep → SwappedIframeStep.
|
|
5226
|
-
Fiat keeps the default 400px modal; its iframe renders at 376px
|
|
5227
|
-
content-width, matching the visual width of ConnectStep's list rows. */
|
|
5283
|
+
Fiat keeps the default modal width. Connect uses Swapped's wider documented
|
|
5284
|
+
iframe width and applies it from the moment the user enters exchange-connect
|
|
5285
|
+
mode (`data-flow-mode` on rs-modal-body), so the modal width is stable
|
|
5286
|
+
across SetupStep → SwappedIframeStep. Height grows to the active screen's
|
|
5287
|
+
chrome; cap to viewport so smaller laptops get a scrollable modal-body
|
|
5288
|
+
instead of overflowing the screen. */
|
|
5228
5289
|
.rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"]) {
|
|
5229
|
-
max-width:
|
|
5290
|
+
max-width: 445px;
|
|
5230
5291
|
}
|
|
5231
5292
|
|
|
5232
5293
|
.rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"]),
|
|
@@ -5251,15 +5312,26 @@
|
|
|
5251
5312
|
a tall empty area below the tracker. Applied on modal-content (not
|
|
5252
5313
|
modal-body) so the transition on its min-height animates smoothly
|
|
5253
5314
|
when the iframe→tracker phase swap fires. */
|
|
5254
|
-
.rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"][data-step-type="setup"])
|
|
5255
|
-
.rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"] .rs-fiat-onramp) {
|
|
5315
|
+
.rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"][data-step-type="setup"]) {
|
|
5256
5316
|
min-height: 699px;
|
|
5257
5317
|
}
|
|
5258
|
-
|
|
5259
|
-
.rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"]
|
|
5318
|
+
|
|
5319
|
+
.rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"][data-step-type="setup"]) {
|
|
5260
5320
|
min-height: 698px;
|
|
5261
5321
|
}
|
|
5262
5322
|
|
|
5323
|
+
/* Iframe phase: with no header/footer chrome the modal is sized to the
|
|
5324
|
+
embedded iframe exactly (586 fiat / 585 connect) so it fills the modal with
|
|
5325
|
+
no whitespace below. The taller setup values above pre-reserve the space
|
|
5326
|
+
before SwappedIframeStep mounts. */
|
|
5327
|
+
.rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"] .rs-fiat-onramp) {
|
|
5328
|
+
min-height: 586px;
|
|
5329
|
+
}
|
|
5330
|
+
|
|
5331
|
+
.rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"] .rs-fiat-onramp) {
|
|
5332
|
+
min-height: 585px;
|
|
5333
|
+
}
|
|
5334
|
+
|
|
5263
5335
|
/* =============================================================================
|
|
5264
5336
|
Custom order tracker
|
|
5265
5337
|
=============================================================================
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var _chunkKUURQOTTcjs = require('./chunk-KUURQOTT.cjs');
|
|
4
|
+
require('./chunk-UN6MEOOA.cjs');
|
|
5
|
+
require('./chunk-RLMXWLF4.cjs');
|
|
6
|
+
require('./chunk-HH46H6ZI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.WithdrawModal =
|
|
9
|
+
exports.WithdrawModal = _chunkKUURQOTTcjs.WithdrawModal;
|
package/dist/withdraw.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-CLUR2J72.mjs";
|
|
4
|
+
import "./chunk-OYPFPEIT.mjs";
|
|
5
|
+
import "./chunk-K6J3RDDK.mjs";
|
|
6
|
+
import "./chunk-CPMHRMPH.mjs";
|
|
7
7
|
export {
|
|
8
8
|
WithdrawModal
|
|
9
9
|
};
|