@pollar/react 0.12.1-rc.16 → 0.12.1-rc.17

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/README.md CHANGED
@@ -199,15 +199,25 @@ const {
199
199
  getSwapTokens, // () => Promise<SwapToken[]>
200
200
  getSolanaSwapConfig, // () => Promise<SolanaSwapVenue[]> (Jupiter, Titan; mainnet)
201
201
  getSolanaSwapQuote, // (params: SolanaSwapQuoteParams) => Promise<SolanaSwapQuote[]>
202
- swapSolana, // (quote: SolanaSwapQuote, opts?: { slippageBps? }) => Promise<SubmitOutcome>
202
+ swapSolana, // (quote: SolanaSwapQuote, opts?: { slippageBps?, idempotencyKey? }) => Promise<SubmitOutcome>
203
+ getSolanaSwapOptions, // () => Promise<SolanaSwapOptions> (venues and the chains a swap can deliver to, e.g. POLYGON)
204
+ getSwapStatus, // (idempotencyKey: string) => Promise<SwapStatus> (follows a cross-chain swap's delivery)
203
205
  openSwapModal, // (options?: SwapModalOptions) => void
204
206
 
207
+ // Bridge (USDC between the user's own wallets on Stellar, Solana and Polygon; the bridge calls live on getClient())
208
+ openBridgeModal, // (options?: BridgeModalOptions) => void
209
+
205
210
  // Earn (yield vaults + lending - DeFindex + Blend)
206
211
  getEarnProviders, // () => Promise<EarnProviderId[]> ([] means Earn is disabled)
207
212
  getEarnOpportunities, // (provider: EarnProviderId) => Promise<EarnOpportunity[]>
208
213
  getEarnPosition, // (params: EarnPositionParams) => Promise<EarnPosition>
209
214
  earnDeposit, // (params: EarnTxParams) => Promise<SubmitOutcome>
210
215
  earnWithdraw, // (params: EarnTxParams) => Promise<SubmitOutcome>
216
+ getSolanaEarnProviders, // () => Promise<SolanaEarnProviderId[]> ([] means no Earn on Solana)
217
+ getSolanaEarnOpportunities, // () => Promise<SolanaEarnOpportunity[]>
218
+ getSolanaEarnPosition, // (opportunity: string) => Promise<SolanaEarnPosition>
219
+ earnSolanaDeposit, // (params: SolanaEarnTxParams) => Promise<SubmitOutcome>
220
+ earnSolanaWithdraw, // (params: SolanaEarnTxParams) => Promise<SubmitOutcome>
211
221
  openEarnModal, // (options?: EarnModalOptions) => void
212
222
 
213
223
  // Cards (the card calls live on getClient(): getCardProviders, issueCard, fundCard, ...)
@@ -279,22 +289,26 @@ modal takes the same options as its `initial` prop.
279
289
  ```ts
280
290
  openSendModal({ asset: 'USDC', destination: 'G...', amount: '25', memo: 'order-1042', onSuccess: ({ hash }) => save(hash) });
281
291
  openSwapModal({ sell: 'XLM', buy: 'USDC', amount: '100' });
292
+ openSwapModal({ chain: 'SOLANA', destinationChain: 'POLYGON' });
282
293
  openEarnModal({ provider: 'blend', tab: 'withdraw' });
294
+ openEarnModal({ chain: 'SOLANA' });
295
+ openBridgeModal({ fromChain: 'STELLAR', toChain: 'SOLANA', amount: '25', onSuccess: (transfer) => track(transfer.id) });
283
296
  openReceiveModal({ chain: 'SOLANA' });
284
297
  openCardModal({ panel: 'fund', amount: '50', onFunded: (funding) => track(funding.id) });
285
298
  ```
286
299
 
287
- | Action | Options |
288
- | -------------------- | ------------------------------------------------------------------------------------------------------------------------ |
289
- | `openSendModal` | `chain`, `asset` (code), `destination`, `amount`, `memo`, `memoType` (`'text' \| 'id' \| 'hash'`), `onSuccess({ hash })` |
290
- | `openSwapModal` | `chain` (`'STELLAR' \| 'SOLANA'`), `sell` (code), `buy` (code), `amount`, `onSuccess({ hash })` |
291
- | `openEarnModal` | `provider`, `opportunityId`, `tab` (`'deposit' \| 'withdraw'`), `amount`, `onSuccess({ hash })` |
292
- | `openReceiveModal` | `chain` |
293
- | `openTxHistoryModal` | `chain` |
294
- | `openCardModal` | `panel: 'fund'` (opens the funding panel once the user's card loads), `amount`, `chain`, `onFunded(funding)` |
300
+ | Action | Options |
301
+ | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
302
+ | `openSendModal` | `chain`, `asset` (code), `destination`, `amount`, `memo`, `memoType` (`'text' \| 'id' \| 'hash'`), `onSuccess({ hash })` |
303
+ | `openSwapModal` | `chain` (`'STELLAR' \| 'SOLANA'`), `sell` (code), `buy` (code), `amount`, `destinationChain` (Solana only, e.g. `'POLYGON'`), `onSuccess({ hash })` |
304
+ | `openEarnModal` | `chain` (`'STELLAR' \| 'SOLANA'`), `provider`, `opportunityId`, `tab` (`'deposit' \| 'withdraw'`), `amount`, `onSuccess({ hash })` |
305
+ | `openBridgeModal` | `fromChain`, `toChain` (`'STELLAR' \| 'SOLANA' \| 'POLYGON'`), `amount` (USDC), `onSuccess(transfer)` |
306
+ | `openReceiveModal` | `chain` |
307
+ | `openTxHistoryModal` | `chain` |
308
+ | `openCardModal` | `panel: 'fund'` (opens the funding panel once the user's card loads), `amount`, `chain`, `onFunded(funding)` |
295
309
 
296
- `onSuccess` is called once per transaction that lands while the modal is open; `onFunded` with each funding the user
297
- sends from the card modal. A Solana or Polygon send takes `amount` in the asset's decimals, as the form shows it.
310
+ `onSuccess` is called once per transaction that lands while the modal is open (the bridge modal's once the USDC arrives
311
+ on the destination, with the completed transfer); `onFunded` with each funding the user sends from the card modal. A Solana or Polygon send takes `amount` in the asset's decimals, as the form shows it.
298
312
 
299
313
  #### Login options
300
314
 
@@ -411,29 +425,30 @@ already wired inside `<PollarProvider>` - and most are exported in case you want
411
425
  > destination, amount and asset; `<CosignModal>` when a co-signed wallet has a request for this device; and
412
426
  > `<CustodyMigrationModal>` while `custodyMigration.required` asks to move a custodial wallet to Turnkey.
413
427
 
414
- | Component | Purpose |
415
- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
416
- | `<WalletButton>` | Drop-in button. Opens login when signed out; signed in, shows the wallet address with a dropdown (Send, Receive, copy address, balance, history, ramp, KYC, distribution rules, sessions, recovery methods, sign out, plus a "Create account" action when the external wallet has no on-chain account yet). Inline arc spinner during in-progress transactions |
417
- | `<SendModal>` | Full send flow: network picker (shown when the app has more than one chain), asset picker, amount with Max (from the available balance), destination with Paste, a Stellar memo (Text, ID or Hash: 64 hex characters), inline build > sign > success/error. A Stellar destination with no account offers to create it with the XLM being sent. Sending is available on Stellar and Solana; Polygon can be browsed but not sent from |
418
- | `<SwapModal>` | On-chain asset-to-asset swap on Stellar and Solana (a Network selector when the app has venues on both): pick from/to assets and amount, quote across venues, execute (auto-trustline on the buy asset when needed); paste a custom Stellar buy token (code + issuer). On Solana it sells what the Solana wallet holds, buys SOL or a token the app enabled, shows the route's output and minimum, and links the swap to Solscan |
419
- | `<EarnModal>` | Deposit/withdraw across DeFindex vaults and Blend pools: provider + opportunity selection with live APY, wallet balance, over-spend guards, and auto-trustline on deposit |
420
- | `<ReceiveModal>` | Wallet address as QR code with copy-to-clipboard (no external QR dependency required) |
421
- | `<TxHistoryModal>` | Paginated multichain transaction history with auto-fetch on open. A `<ChainSelect>` in the header filters server-side (switching networks refetches and resets to page 1); rows link to their own chain's explorer (stellar.expert for Stellar, explorer.solana.com for Solana) and show the unified `{ amount, unit }` fee |
422
- | `<WalletBalanceModal>` | Multichain wallet balances (Stellar, Polygon, Solana). A `<ChainSelect>` picks the network and the rows are filtered to it; shows that chain's address plus a refresh button, and each row's issuer with a copy action. An unreadable chain's balance renders as a dash, never as `0`. On Solana testnet each row offers a faucet hint - a devnet SOL faucet on the native row, Circle's USDC faucet on the USDC row |
423
- | `<EnabledAssetsModal>` | The application's dashboard-enabled assets for the network picked in the header, with per-asset trustline state; establish/remove trustlines (Stellar only - other chains are informational) |
424
- | `<DistributionRulesModal>` | Manage the wallet's distribution rules |
425
- | `<SessionsModal>` | Lists every active refresh-token family for the current user with device metadata, marks the local session, per-row revoke, and a "Sign out everywhere" button |
426
- | `<KycModal>` | Identity verification: hosted (iframe or redirect) flow per option, corridor-scoped when a ramp route asks for it (`corridorId`), or started on one option (`providerId`). Shows review, expiry and retry states; without either id it walks the app's own KYC steps |
427
- | `<RampWidget>` | Buy/sell crypto: direction tabs, country, fiat and asset pickers, route comparison leg by leg, the fields a route asks for, then the order's progress with its pending action (payment QR or bank details, Authorize, co-sign approval, verification link) and what to do when a leg fails. A route refused for its amount says the minimum or maximum it takes and offers "Change amount"; an order whose price changed before anything moved offers "Get a new quote". Orders waiting on the user can be resumed |
428
- | `<RequirementFormModal>` | One `FORM` requirement step of a ramp route: renders the form the backend names (`formId`), prefilled with the user's previous answers, and stores the answers encrypted. A field with `showIf: { key, in }` is shown only while the earlier select, multiselect or checkbox it names answers one of those values, and is neither checked nor sent while hidden. `<RampWidget>` opens it itself; exported for consumers who build their own route list from `requirementsRequired` |
429
- | `<RegistryCheckModal>` | One `REGISTRY_CHECK` step (SEGIP through Stereum, `optionId`): the verified identity prefilled and read-only except the surname split and the CI complement; a check the registry did not confirm shows the review state with nothing to retry |
430
- | `<ProviderRegistrationModal>` | One `PROVIDER_REGISTRATION` step (`corridorId`): lists what the ramp provider receives and registers the user with it on consent; an already registered user is passed through |
431
- | `<CardModal>` | Opened with `openCardModal()`: the card provider's sign-up, identity verification and issuing, then the card with the app's logo and label, its balance and movements, and the number revealed on the device. Copy buttons next to the number and CVC while the details are shown, and next to the expiry date always. Funds the card from the wallet, including a co-signed one, with a network picker when the user holds a wallet on Stellar and Solana, and shows each funding's steps |
432
- | `<RecoveryModal>` | Opened with `openRecoveryModal()`: the recovery methods of a Turnkey wallet (passkeys, email, devices, recovery phrase) |
433
- | `<CosignModal>` | The approval prompt of a co-signed wallet. Enables Approve only after the request verifies against Turnkey |
434
- | `<CustodyMigrationModal>` | Moves a custodial wallet to Turnkey after login when the app keeps its wallets there (`state`, `onMoved`, `onLater` props) |
435
- | `<KycStatus>` | A KYC status badge (`status`, optional `label`) |
436
- | `<RouteDisplay>` / `<RejectedRouteDisplay>` | One ramp route, offered or refused, as the ramp widget lists it |
428
+ | Component | Purpose |
429
+ | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
430
+ | `<WalletButton>` | Drop-in button. Opens login when signed out; signed in, shows the wallet address with a dropdown (Send, Receive, copy address, balance, history, ramp, KYC, distribution rules, sessions, recovery methods, sign out, plus a "Create account" action when the external wallet has no on-chain account yet). Inline arc spinner during in-progress transactions |
431
+ | `<SendModal>` | Full send flow: network picker (shown when the app has more than one chain), asset picker, amount with Max (from the available balance), destination with Paste, a Stellar memo (Text, ID or Hash: 64 hex characters), inline build > sign > success/error. A Stellar destination with no account offers to create it with the XLM being sent. Sending is available on Stellar and Solana; Polygon can be browsed but not sent from |
432
+ | `<SwapModal>` | On-chain asset-to-asset swap on Stellar and Solana (a Network selector when the app has venues on both): pick from/to assets and amount, quote across venues, execute (auto-trustline on the buy asset when needed); paste a custom Stellar buy token (code + issuer). On Solana it sells what the Solana wallet holds, buys SOL or a token the app enabled, shows the route's output and minimum, and links the swap to Solscan. When the app offers a venue that crosses chains, a Receive on selector delivers a Solana swap to the user's Polygon wallet, shows each fee by kind, asks for a new price when the quote lapses and follows the delivery |
433
+ | `<EarnModal>` | Deposit/withdraw across DeFindex vaults and Blend pools on Stellar and the app's Solana opportunities, with a network picker when the app offers both: opportunity selection with the asset's logo and APY after fees, a position card (deposited, earned after fees, position), wallet balance, over-spend guards, auto-trustline on a Stellar deposit, and a result that names what happened, who paid the network fee and the explorer link |
434
+ | `<BridgeModal>` | Opened with `openBridgeModal()`: moves USDC between the user's own wallets on Stellar, Solana and Polygon by Circle CCTP (mainnet). Picks the direction among the ones the user holds wallets for, quotes what arrives and Pollar's fee, signs the way the source wallet signs (custodial at once, co-signed on the device, an external wallet in the connected wallet), and follows the transfer until the USDC arrives |
435
+ | `<ReceiveModal>` | Wallet address as QR code with copy-to-clipboard (no external QR dependency required) |
436
+ | `<TxHistoryModal>` | Paginated multichain transaction history with auto-fetch on open. A `<ChainSelect>` in the header filters server-side (switching networks refetches and resets to page 1); rows link to their own chain's explorer (stellar.expert for Stellar, explorer.solana.com for Solana) and show the unified `{ amount, unit }` fee. Ramp orders appear as rows with their fiat side, say when one was refunded, and link to the explorer once they have a hash |
437
+ | `<WalletBalanceModal>` | Multichain wallet balances (Stellar, Polygon, Solana). A `<ChainSelect>` picks the network and the rows are filtered to it; shows that chain's address plus a refresh button, and each row's issuer with a copy action. An unreadable chain's balance renders as a dash, never as `0`. On Solana testnet each row offers a faucet hint - a devnet SOL faucet on the native row, Circle's USDC faucet on the USDC row |
438
+ | `<EnabledAssetsModal>` | The application's dashboard-enabled assets for the network picked in the header, with per-asset trustline state; establish/remove trustlines (Stellar only - other chains are informational) |
439
+ | `<DistributionRulesModal>` | Manage the wallet's distribution rules |
440
+ | `<SessionsModal>` | Lists every active refresh-token family for the current user with device metadata, marks the local session, per-row revoke, and a "Sign out everywhere" button |
441
+ | `<KycModal>` | Identity verification: hosted (iframe or redirect) flow per option, corridor-scoped when a ramp route asks for it (`corridorId`), or started on one option (`providerId`). Shows review, expiry and retry states; without either id it walks the app's own KYC steps |
442
+ | `<RampWidget>` | Buy/sell crypto: direction tabs, country, fiat and asset pickers, route comparison leg by leg, the fields a route asks for, then the order's progress with its pending action (payment QR or bank details, Authorize, co-sign approval, verification link) and what to do when a leg fails. A route refused for its amount says the minimum or maximum it takes and offers "Change amount"; an order whose price changed before anything moved offers "Get a new quote". Orders waiting on the user can be resumed |
443
+ | `<RequirementFormModal>` | One `FORM` requirement step of a ramp route: renders the form the backend names (`formId`), prefilled with the user's previous answers, and stores the answers encrypted. A field with `showIf: { key, in }` is shown only while the earlier select, multiselect or checkbox it names answers one of those values, and is neither checked nor sent while hidden. `<RampWidget>` opens it itself; exported for consumers who build their own route list from `requirementsRequired` |
444
+ | `<RegistryCheckModal>` | One `REGISTRY_CHECK` step (SEGIP through Stereum, `optionId`): the verified identity prefilled and read-only except the surname split and the CI complement; a check the registry did not confirm shows the review state with nothing to retry |
445
+ | `<ProviderRegistrationModal>` | One `PROVIDER_REGISTRATION` step (`corridorId`): lists what the ramp provider receives and registers the user with it on consent; an already registered user is passed through |
446
+ | `<CardModal>` | Opened with `openCardModal()`: the card provider's sign-up, identity verification and issuing, then the card with the app's logo and label, its balance and movements, and the number revealed on the device. Copy buttons next to the number and CVC while the details are shown, and next to the expiry date always. Funds the card from the wallet, including a co-signed one, with a network picker when the user holds a wallet on Stellar and Solana, and shows each funding's steps. The network picker offers only the chains `getCardFundingRoutes()` lists, and says when a funding crosses chains |
447
+ | `<RecoveryModal>` | Opened with `openRecoveryModal()`: the recovery methods of a Turnkey wallet (passkeys, email, devices, recovery phrase). The provider also opens it by itself when a co-signed signature fails with `SDK_WALLET_RECOVERY_REQUIRED` (no recovery method yet) or `SDK_COSIGN_DEVICE_NOT_ENROLLED` (this browser origin is not one of the wallet's devices), from any modal or a direct app call |
448
+ | `<CosignModal>` | The approval prompt of a co-signed wallet. Enables Approve only after the request verifies against Turnkey. On a device that is not one of the wallet's devices it disables Approve and offers Link this device, which opens recovery |
449
+ | `<CustodyMigrationModal>` | Moves a custodial wallet to Turnkey after login when the app keeps its wallets there (`state`, `onMoved`, `onLater` props) |
450
+ | `<KycStatus>` | A KYC status badge (`status`, optional `label`) |
451
+ | `<RouteDisplay>` / `<RejectedRouteDisplay>` | One ramp route, offered or refused, as the ramp widget lists it |
437
452
 
438
453
  ```tsx
439
454
  import { WalletButton } from '@pollar/react';
@@ -473,6 +488,7 @@ you want to swap the chrome but keep the data wiring from `usePollar()`. (`<Earn
473
488
  | `<KycModal>` | `<KycModalTemplate>` |
474
489
  | `<RampWidget>` | `<RampWidgetTemplate>` |
475
490
  | `<SessionsModal>` | `<SessionsModalTemplate>` |
491
+ | `<BridgeModal>` | `<BridgeModalTemplate>` |
476
492
  | `<CosignModal>` | `<CosignModalTemplate>` |
477
493
  | `<RecoveryModal>` | `<RecoveryModalTemplate>` |
478
494
  | `<CustodyMigrationModal>` | `<CustodyMigrationModalTemplate>` |
package/dist/index.css CHANGED
@@ -491,6 +491,52 @@
491
491
  text-overflow: ellipsis;
492
492
  white-space: nowrap;
493
493
  }
494
+ .pollar-outcome {
495
+ display: flex;
496
+ flex-direction: column;
497
+ gap: 0.35rem;
498
+ padding: 0.7rem 0.85rem;
499
+ border-radius: var(--pollar-buttons-border-radius, 10px);
500
+ border: 1px solid color-mix(in srgb, var(--pollar-success-text, #15803d) 35%, var(--pollar-border));
501
+ background: color-mix(in srgb, var(--pollar-success-text, #15803d) 7%, var(--pollar-bg));
502
+ color: var(--pollar-success-text, #15803d);
503
+ }
504
+ .pollar-outcome-bad {
505
+ border-color: var(--pollar-error-border);
506
+ background: var(--pollar-error-bg);
507
+ color: var(--pollar-error-text);
508
+ }
509
+ .pollar-outcome-main {
510
+ display: flex;
511
+ align-items: center;
512
+ gap: 0.5rem;
513
+ margin: 0;
514
+ font-weight: 600;
515
+ }
516
+ .pollar-outcome-icon {
517
+ flex-shrink: 0;
518
+ }
519
+ .pollar-outcome-note {
520
+ display: flex;
521
+ align-items: center;
522
+ gap: 0.5rem;
523
+ margin: 0;
524
+ font-size: 0.8rem;
525
+ color: var(--pollar-muted);
526
+ }
527
+ .pollar-inline-confirm {
528
+ display: flex;
529
+ flex-direction: column;
530
+ gap: 0.75rem;
531
+ padding: 0.85rem;
532
+ border: 1px solid var(--pollar-accent);
533
+ border-radius: var(--pollar-card-border-radius, 10px);
534
+ }
535
+ .pollar-inline-confirm-title {
536
+ margin: 0;
537
+ font-weight: 600;
538
+ color: var(--pollar-text);
539
+ }
494
540
 
495
541
  /* src/components/distribution-rules-modal/DistributionRulesModal.css */
496
542
  .pollar-dist-modal {
@@ -2845,70 +2891,18 @@
2845
2891
  .pollar-tx-modal {
2846
2892
  max-width: 420px;
2847
2893
  }
2848
- @keyframes pollar-tx-spin {
2849
- to {
2850
- transform: rotate(360deg);
2851
- }
2852
- }
2853
- .pollar-tx-wallet-spinner {
2894
+ .pollar-tx-status-view {
2854
2895
  display: flex;
2855
2896
  flex-direction: column;
2856
- align-items: center;
2857
- gap: 0.875rem;
2858
- padding: 1.25rem 0 0.5rem;
2859
- }
2860
- .pollar-tx-spinner-ring {
2861
- position: relative;
2862
- width: 88px;
2863
- height: 88px;
2864
- flex-shrink: 0;
2865
- }
2866
- .pollar-tx-spinner-svg {
2867
- position: absolute;
2868
- inset: 0;
2869
- width: 88px;
2870
- height: 88px;
2871
- }
2872
- .pollar-tx-spinner-rotating {
2873
- animation: pollar-tx-spin 1.1s linear infinite;
2874
- transform-origin: center;
2875
- }
2876
- .pollar-tx-wallet-icon {
2877
- position: absolute;
2878
- inset: 14px;
2879
- border-radius: 10px;
2880
- overflow: hidden;
2881
- display: flex;
2882
- align-items: center;
2883
- justify-content: center;
2884
- }
2885
- .pollar-tx-wallet-img {
2886
- width: 40px;
2887
- height: 40px;
2888
- object-fit: contain;
2889
- border-radius: 10px;
2890
- }
2891
- .pollar-tx-spinner-label {
2892
- font-size: 0.875rem;
2893
- font-weight: 500;
2894
- color: var(--pollar-muted);
2895
- margin: 0;
2896
- text-align: center;
2897
- }
2898
- .pollar-tx-retry-btn {
2899
- width: 100%;
2897
+ gap: 0.75rem;
2900
2898
  }
2901
2899
  .pollar-tx-review {
2902
2900
  display: flex;
2903
2901
  flex-direction: column;
2904
2902
  gap: 0.75rem;
2905
- margin-bottom: 1.25rem;
2906
2903
  }
2907
- .pollar-tx-review-title {
2908
- margin: 0;
2909
- font-size: 1.05rem;
2910
- font-weight: 600;
2911
- color: var(--pollar-text);
2904
+ .pollar-tx-retry-btn {
2905
+ width: 100%;
2912
2906
  }
2913
2907
  .pollar-tx-sign-btn {
2914
2908
  width: 100%;
@@ -2929,31 +2923,6 @@
2929
2923
  .pollar-tx-status[data-kind=SUCCESS] {
2930
2924
  color: var(--pollar-success-text, #16a34a);
2931
2925
  }
2932
- .pollar-tx-error-details {
2933
- margin-bottom: 1rem;
2934
- }
2935
- .pollar-tx-error-details-label {
2936
- font-size: 0.75rem;
2937
- font-weight: 600;
2938
- color: var(--pollar-error-text);
2939
- margin: 0 0 0.375rem;
2940
- text-transform: uppercase;
2941
- letter-spacing: 0.04em;
2942
- }
2943
- .pollar-tx-error-details-content {
2944
- margin: 0;
2945
- padding: 0.75rem;
2946
- background: var(--pollar-input-bg);
2947
- border: 1px solid var(--pollar-border);
2948
- border-radius: var(--pollar-card-border-radius, 10px);
2949
- font-family: var(--pollar-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
2950
- font-size: 0.6875rem;
2951
- color: var(--pollar-error-text);
2952
- white-space: pre-wrap;
2953
- word-break: break-word;
2954
- max-height: 160px;
2955
- overflow-y: auto;
2956
- }
2957
2926
 
2958
2927
  /* src/components/swap-modal/SwapModal.css */
2959
2928
  .pollar-swap-modal {
@@ -2986,13 +2955,12 @@
2986
2955
  gap: 0.625rem;
2987
2956
  }
2988
2957
  .pollar-swap-panel {
2989
- padding: 1rem;
2958
+ padding: 0.85rem 1rem;
2990
2959
  border: 1px solid var(--pollar-border);
2991
2960
  border-radius: 1rem;
2992
2961
  background: var(--pollar-input-bg);
2993
2962
  color: var(--pollar-text);
2994
2963
  }
2995
- .pollar-swap-panel-heading,
2996
2964
  .pollar-swap-rate-row,
2997
2965
  .pollar-swap-quote-row {
2998
2966
  display: flex;
@@ -3001,6 +2969,7 @@
3001
2969
  gap: 0.75rem;
3002
2970
  }
3003
2971
  .pollar-swap-panel-label {
2972
+ display: block;
3004
2973
  color: var(--pollar-text);
3005
2974
  font-size: 0.75rem;
3006
2975
  font-weight: 700;
@@ -3008,16 +2977,25 @@
3008
2977
  .pollar-swap-balance {
3009
2978
  overflow: hidden;
3010
2979
  color: var(--pollar-muted);
3011
- font-size: 0.6875rem;
2980
+ font-size: 0.75rem;
3012
2981
  text-overflow: ellipsis;
3013
2982
  white-space: nowrap;
3014
2983
  }
3015
2984
  .pollar-swap-panel-main {
3016
2985
  display: flex;
3017
- align-items: flex-end;
2986
+ align-items: center;
3018
2987
  justify-content: space-between;
3019
- gap: 1rem;
3020
- margin-top: 1.15rem;
2988
+ gap: 0.75rem;
2989
+ margin-top: 0.4rem;
2990
+ }
2991
+ .pollar-swap-panel-foot {
2992
+ display: flex;
2993
+ align-items: center;
2994
+ gap: 0.35rem;
2995
+ min-height: 1.1rem;
2996
+ margin-top: 0.35rem;
2997
+ color: var(--pollar-muted);
2998
+ font-size: 0.75rem;
3021
2999
  }
3022
3000
  .pollar-swap-amount,
3023
3001
  .pollar-swap-output {
@@ -3053,13 +3031,6 @@
3053
3031
  .pollar-swap-output.is-loading {
3054
3032
  color: var(--pollar-muted);
3055
3033
  }
3056
- .pollar-swap-panel-selector {
3057
- display: flex;
3058
- flex: 0 0 auto;
3059
- flex-direction: column;
3060
- align-items: flex-end;
3061
- gap: 0.4rem;
3062
- }
3063
3034
  .pollar-swap-asset-pill-wrap {
3064
3035
  position: relative;
3065
3036
  display: inline-flex;
@@ -3114,7 +3085,6 @@
3114
3085
  font-weight: 800;
3115
3086
  letter-spacing: -0.03em;
3116
3087
  }
3117
- .pollar-swap-max,
3118
3088
  .pollar-swap-custom-toggle {
3119
3089
  min-height: 1.75rem;
3120
3090
  padding: 0.25rem 0.625rem;
@@ -3127,7 +3097,13 @@
3127
3097
  cursor: pointer;
3128
3098
  }
3129
3099
  .pollar-swap-max {
3130
- padding: 0.25rem 0.625rem;
3100
+ padding: 0;
3101
+ border: 0;
3102
+ background: none;
3103
+ color: var(--pollar-accent);
3104
+ font: inherit;
3105
+ font-weight: 600;
3106
+ cursor: pointer;
3131
3107
  }
3132
3108
  .pollar-swap-max:hover:not(:disabled),
3133
3109
  .pollar-swap-custom-toggle:hover:not(:disabled) {
@@ -3165,10 +3141,6 @@
3165
3141
  cursor: not-allowed;
3166
3142
  opacity: 0.45;
3167
3143
  }
3168
- .pollar-swap-panel-note {
3169
- color: var(--pollar-muted);
3170
- font-size: 0.625rem;
3171
- }
3172
3144
  .pollar-swap-custom-area {
3173
3145
  min-height: 1.25rem;
3174
3146
  padding: 0.25rem 0.25rem 0;
@@ -3199,7 +3171,7 @@
3199
3171
  }
3200
3172
  .pollar-swap-rate-row {
3201
3173
  margin-top: 0.75rem;
3202
- min-height: 2.25rem;
3174
+ min-height: 1.5rem;
3203
3175
  color: var(--pollar-muted);
3204
3176
  font-family: inherit;
3205
3177
  font-size: 0.875rem;
@@ -3378,23 +3350,14 @@
3378
3350
  font-size: 0.8125rem;
3379
3351
  color: var(--pollar-muted, #6b7280);
3380
3352
  }
3381
- .pollar-bridge-status strong {
3382
- display: block;
3383
- font-size: 1rem;
3384
- }
3385
- .pollar-bridge-status p {
3386
- margin: 0.25rem 0 0;
3387
- font-size: 0.875rem;
3388
- color: var(--pollar-muted, #6b7280);
3389
- }
3390
3353
  .pollar-bridge-steps {
3391
3354
  display: flex;
3392
3355
  flex-direction: column;
3393
- gap: 0.5rem;
3394
- margin: 0;
3356
+ gap: 0.35rem;
3357
+ margin: 0.15rem 0 0;
3395
3358
  padding: 0;
3396
3359
  list-style: none;
3397
- font-size: 0.875rem;
3360
+ font-size: 0.8rem;
3398
3361
  }
3399
3362
  .pollar-bridge-step {
3400
3363
  display: flex;
@@ -3403,27 +3366,17 @@
3403
3366
  color: var(--pollar-muted, #6b7280);
3404
3367
  }
3405
3368
  .pollar-bridge-step-done {
3406
- color: inherit;
3369
+ color: var(--pollar-text);
3407
3370
  }
3408
3371
  .pollar-bridge-step-dot {
3409
- width: 0.625rem;
3410
- height: 0.625rem;
3372
+ flex-shrink: 0;
3373
+ width: 0.75rem;
3374
+ height: 0.75rem;
3375
+ box-sizing: border-box;
3376
+ margin: 0 0.125rem;
3411
3377
  border-radius: 999px;
3412
3378
  border: 2px solid currentColor;
3413
3379
  }
3414
- .pollar-bridge-step-done .pollar-bridge-step-dot {
3415
- background-color: var(--pollar-accent, #2563eb);
3416
- border-color: var(--pollar-accent, #2563eb);
3417
- }
3418
- .pollar-bridge-links {
3419
- display: flex;
3420
- flex-wrap: wrap;
3421
- gap: 0.75rem;
3422
- font-size: 0.8125rem;
3423
- }
3424
- .pollar-bridge-links a {
3425
- color: var(--pollar-accent, #2563eb);
3426
- }
3427
3380
 
3428
3381
  /* src/components/earn-modal/EarnModal.css */
3429
3382
  .pollar-earn-live {
@@ -3959,44 +3912,10 @@
3959
3912
  padding: 1.5rem 0.25rem;
3960
3913
  text-align: center;
3961
3914
  }
3962
- .pollar-cosign-approved-icon {
3963
- display: block;
3964
- margin: 0 auto 0.75rem;
3965
- color: var(--pollar-success-text);
3966
- }
3967
- .pollar-cosign-tx-link {
3968
- color: var(--pollar-accent);
3969
- font-family: var(--pollar-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
3970
- text-decoration: none;
3971
- }
3972
- .pollar-cosign-tx-link:hover {
3973
- text-decoration: underline;
3974
- }
3975
- .pollar-cosign-copy {
3976
- margin-left: 0.15rem;
3977
- vertical-align: middle;
3978
- }
3979
- .pollar-cosign-fee {
3980
- margin: 0.5rem 0 0;
3981
- }
3982
3915
  .pollar-cosign-closing {
3983
3916
  margin-top: 0.75rem;
3984
3917
  font-size: 0.75rem;
3985
3918
  }
3986
- .pollar-cosign-next {
3987
- margin: 0.75rem 0 0;
3988
- display: flex;
3989
- align-items: center;
3990
- justify-content: center;
3991
- gap: 0.5rem;
3992
- font-size: 0.8125rem;
3993
- color: var(--pollar-text);
3994
- }
3995
- .pollar-cosign-empty-title {
3996
- margin: 0 0 0.35rem;
3997
- font-weight: 600;
3998
- color: var(--pollar-text);
3999
- }
4000
3919
  .pollar-cosign-list {
4001
3920
  list-style: none;
4002
3921
  margin: 0 0 0.75rem;
@@ -4126,6 +4045,44 @@
4126
4045
  border-color: var(--pollar-accent);
4127
4046
  color: var(--pollar-btn-primary-fg, #fff);
4128
4047
  }
4048
+ .pollar-cosign-step {
4049
+ display: flex;
4050
+ flex-direction: column;
4051
+ gap: 0.5rem;
4052
+ margin-bottom: 0.75rem;
4053
+ padding-bottom: 0.75rem;
4054
+ border-bottom: 1px solid var(--pollar-border);
4055
+ }
4056
+ .pollar-cosign-step-head {
4057
+ display: flex;
4058
+ align-items: center;
4059
+ gap: 0.5rem;
4060
+ width: 100%;
4061
+ padding: 0;
4062
+ border: none;
4063
+ background: none;
4064
+ color: var(--pollar-success-text, #15803d);
4065
+ font: inherit;
4066
+ font-size: 0.85rem;
4067
+ text-align: left;
4068
+ cursor: pointer;
4069
+ }
4070
+ .pollar-cosign-step-bad .pollar-cosign-step-head {
4071
+ color: var(--pollar-error-text);
4072
+ }
4073
+ .pollar-cosign-step-title {
4074
+ flex: 1;
4075
+ min-width: 0;
4076
+ overflow: hidden;
4077
+ text-overflow: ellipsis;
4078
+ white-space: nowrap;
4079
+ color: var(--pollar-text);
4080
+ }
4081
+ .pollar-cosign-step-status {
4082
+ flex-shrink: 0;
4083
+ font-size: 0.78rem;
4084
+ font-weight: 600;
4085
+ }
4129
4086
 
4130
4087
  /* src/components/recovery-modal/RecoveryModal.css */
4131
4088
  .pollar-recovery-modal {