@rhinestone/deposit-modal 0.4.0 → 0.4.2

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/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-3PVDRSJ7.mjs";
3
+ } from "./chunk-ANPDY6NJ.mjs";
4
4
  import "./chunk-FJWLC4AM.mjs";
5
5
  import {
6
6
  WithdrawModal
7
- } from "./chunk-WCIGOV34.mjs";
8
- import "./chunk-GKC22JC4.mjs";
7
+ } from "./chunk-7JVBUMFE.mjs";
8
+ import "./chunk-7EQQD7B4.mjs";
9
9
  import "./chunk-F7P4MV72.mjs";
10
10
  import {
11
11
  CHAIN_BY_ID,
package/dist/styles.css CHANGED
@@ -4595,19 +4595,39 @@
4595
4595
 
4596
4596
  /* Segmented toggle (Crypto / Cash) — Figma "toggle container". */
4597
4597
  .rs-segmented {
4598
- display: inline-flex;
4598
+ position: relative;
4599
+ display: grid;
4600
+ grid-auto-flow: column;
4601
+ grid-auto-columns: 1fr;
4599
4602
  align-items: center;
4600
- gap: 2px;
4601
- padding: 2px;
4603
+ padding: var(--rs-segmented-inset);
4602
4604
  background: var(--rs-segmented-track);
4603
4605
  border-radius: var(--rs-radius-full);
4606
+ isolation: isolate;
4607
+ }
4608
+
4609
+ .rs-segmented-thumb {
4610
+ position: absolute;
4611
+ z-index: 0;
4612
+ top: var(--rs-segmented-inset);
4613
+ bottom: var(--rs-segmented-inset);
4614
+ left: calc(var(--rs-segmented-inset) + var(--rs-segmented-thumb-offset));
4615
+ width: var(--rs-segmented-thumb-width);
4616
+ border-radius: var(--rs-radius-full);
4617
+ background: var(--rs-segmented-active-bg);
4618
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
4619
+ transition: left 180ms ease;
4620
+ pointer-events: none;
4604
4621
  }
4605
4622
 
4606
4623
  .rs-segmented-option {
4624
+ position: relative;
4625
+ z-index: 1;
4607
4626
  appearance: none;
4608
4627
  border: 0;
4609
4628
  background: transparent;
4610
4629
  padding: 5px 12px;
4630
+ min-width: 70px;
4611
4631
  border-radius: var(--rs-radius-full);
4612
4632
  font-family: inherit;
4613
4633
  font-size: 13px;
@@ -4616,9 +4636,7 @@
4616
4636
  color: var(--rs-segmented-idle-fg);
4617
4637
  cursor: pointer;
4618
4638
  transition:
4619
- background-color 0.15s,
4620
- color 0.15s,
4621
- box-shadow 0.15s;
4639
+ color 0.15s;
4622
4640
  }
4623
4641
 
4624
4642
  .rs-segmented-option:focus-visible {
@@ -4627,9 +4645,7 @@
4627
4645
  }
4628
4646
 
4629
4647
  .rs-segmented-option--active {
4630
- background: var(--rs-segmented-active-bg);
4631
4648
  color: var(--rs-segmented-active-fg);
4632
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
4633
4649
  }
4634
4650
 
4635
4651
  /* Ticker — per-digit odometer-style animation for the live timer.
@@ -4852,17 +4868,27 @@
4852
4868
  display: block;
4853
4869
  }
4854
4870
 
4855
- /* Card-network chips: wider rounded tiles rather than circles. */
4856
- .rs-list-row-meta-icons--cards > * {
4857
- width: 26px;
4871
+ .rs-list-row-meta-icons--exchanges > * {
4872
+ border-radius: 4px;
4873
+ }
4874
+
4875
+ /* Card-network chips: exported Figma tiles are all 38×24. */
4876
+ .rs-list-row-meta-icons--cards > .rs-card-network {
4877
+ width: 29px;
4858
4878
  height: 18px;
4859
- border-radius: 3px;
4860
- overflow: visible;
4879
+ border-radius: 3.25px;
4880
+ overflow: hidden;
4881
+ background: transparent;
4861
4882
  box-shadow: none;
4862
4883
  }
4863
4884
 
4864
- .rs-list-row-meta-icons--cards > * + * {
4865
- margin-left: -4px;
4885
+ .rs-list-row-meta-icons--cards > .rs-card-network + .rs-card-network {
4886
+ margin-left: -7px;
4887
+ }
4888
+
4889
+ .rs-list-row-meta-icons--cards .rs-card-network svg {
4890
+ width: 100%;
4891
+ height: 100%;
4866
4892
  }
4867
4893
 
4868
4894
  .rs-list-row-chevron {
@@ -4906,10 +4932,13 @@
4906
4932
  ============================================================================= */
4907
4933
 
4908
4934
  /* `.rs-fiat-onramp` is a marker class on the .rs-screen root so the
4909
- modal-content `:has()` rules below can size correctly. Layout (padding,
4910
- gap, flex direction) comes from .rs-screen itself, identical to
4911
- ConnectStep keeps the top of the page visually unchanged across the
4912
- payment-method picker → Swapped iframe transition. */
4935
+ modal-content `:has()` rules below can size correctly. The Swapped iframe
4936
+ phase intentionally omits the BodyHeader so the embedded widget starts
4937
+ immediately below the modal nav chrome. */
4938
+
4939
+ .rs-fiat-onramp-body {
4940
+ gap: 0;
4941
+ }
4913
4942
 
4914
4943
  .rs-fiat-onramp-banner {
4915
4944
  display: flex;
@@ -5099,9 +5128,9 @@
5099
5128
  display: inline-flex;
5100
5129
  align-items: center;
5101
5130
  justify-content: center;
5102
- width: 44px;
5103
- height: 44px;
5104
- border-radius: 10px;
5131
+ width: 32px;
5132
+ height: 32px;
5133
+ border-radius: 4px;
5105
5134
  background: var(--rs-surface);
5106
5135
  color: #71717b;
5107
5136
  overflow: hidden;
@@ -5121,9 +5150,11 @@
5121
5150
  background: transparent;
5122
5151
  }
5123
5152
 
5153
+ .rs-exchange-card-logo--brand img,
5124
5154
  .rs-exchange-card-logo--brand svg {
5125
5155
  width: 100%;
5126
5156
  height: 100%;
5157
+ object-fit: cover;
5127
5158
  }
5128
5159
 
5129
5160
  .rs-exchange-card-name {
@@ -5201,11 +5232,11 @@
5201
5232
  when the iframe→tracker phase swap fires. */
5202
5233
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"][data-step-type="setup"]),
5203
5234
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"] .rs-fiat-onramp) {
5204
- min-height: 795px;
5235
+ min-height: 699px;
5205
5236
  }
5206
5237
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"][data-step-type="setup"]),
5207
5238
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"] .rs-fiat-onramp) {
5208
- min-height: 794px;
5239
+ min-height: 698px;
5209
5240
  }
5210
5241
 
5211
5242
  /* =============================================================================
@@ -5260,15 +5291,21 @@
5260
5291
  padding: 16px 0;
5261
5292
  }
5262
5293
 
5263
- /* Dotted vertical connector between adjacent step markers. */
5294
+ /* Dashed vertical connector between adjacent step markers. */
5264
5295
  .rs-swapped-tracker-step + .rs-swapped-tracker-step::before {
5265
5296
  content: "";
5266
5297
  position: absolute;
5267
5298
  top: -14px;
5268
5299
  right: 11px;
5269
- width: 0;
5300
+ width: 2px;
5270
5301
  height: 28px;
5271
- border-left: 1.5px dotted #d4d4d8;
5302
+ background: repeating-linear-gradient(
5303
+ to bottom,
5304
+ #5f5f5f 0,
5305
+ #5f5f5f 3px,
5306
+ transparent 3px,
5307
+ transparent 7px
5308
+ );
5272
5309
  }
5273
5310
 
5274
5311
  .rs-swapped-tracker-step-label {
@@ -5292,7 +5329,8 @@
5292
5329
  }
5293
5330
 
5294
5331
  .rs-swapped-tracker-step--active .rs-swapped-tracker-step-marker {
5295
- border-color: #d4d4d8;
5332
+ border-color: transparent;
5333
+ border-width: 0;
5296
5334
  background: transparent;
5297
5335
  /* Spinner SVG uses currentColor; base marker class sets color:transparent
5298
5336
  for the (hidden) ring glyph — re-establish a visible color here so the
@@ -5301,8 +5339,10 @@
5301
5339
  }
5302
5340
 
5303
5341
  .rs-swapped-tracker-step--active .rs-swapped-tracker-step-marker .rs-spinner {
5304
- width: 14px;
5305
- height: 14px;
5342
+ display: block;
5343
+ flex: 0 0 24px;
5344
+ width: 24px;
5345
+ height: 24px;
5306
5346
  }
5307
5347
 
5308
5348
  /* Satisfying scale-pop when a step ticks complete — the color transition
@@ -5370,13 +5410,13 @@
5370
5410
  background: var(--rs-border);
5371
5411
  }
5372
5412
 
5373
- .rs-modal[data-theme="dark"] .rs-swapped-tracker-step + .rs-swapped-tracker-step::before {
5374
- border-left-color: #3f3f46;
5413
+ .rs-modal[data-theme="dark"] .rs-swapped-tracker-step--pending .rs-swapped-tracker-step-marker {
5414
+ border-color: #3f3f46;
5375
5415
  }
5376
5416
 
5377
- .rs-modal[data-theme="dark"] .rs-swapped-tracker-step--pending .rs-swapped-tracker-step-marker,
5378
5417
  .rs-modal[data-theme="dark"] .rs-swapped-tracker-step--active .rs-swapped-tracker-step-marker {
5379
- border-color: #3f3f46;
5418
+ border-color: transparent;
5419
+ color: #fafafa;
5380
5420
  }
5381
5421
 
5382
5422
  .rs-modal[data-theme="dark"] .rs-swapped-tracker-step--complete .rs-swapped-tracker-step-marker {
@@ -95,6 +95,13 @@ interface DepositModalUIConfig {
95
95
  * "Fees are sponsored" / "Fees apply" message based on `feeSponsored`.
96
96
  */
97
97
  feeTooltip?: string;
98
+ /**
99
+ * Run the liquidity check before the amount step continues. Off by default:
100
+ * the check adds an orchestrator round-trip per continue and its low/unavailable
101
+ * result isn't surfaced anyway, so skipping it makes the route faster. Enable
102
+ * to gate continue on liquidity and show the unavailable/check-failed warning.
103
+ */
104
+ checkLiquidity?: boolean;
98
105
  }
99
106
  interface ConnectedEventData {
100
107
  address: Address;
@@ -95,6 +95,13 @@ interface DepositModalUIConfig {
95
95
  * "Fees are sponsored" / "Fees apply" message based on `feeSponsored`.
96
96
  */
97
97
  feeTooltip?: string;
98
+ /**
99
+ * Run the liquidity check before the amount step continues. Off by default:
100
+ * the check adds an orchestrator round-trip per continue and its low/unavailable
101
+ * result isn't surfaced anyway, so skipping it makes the route faster. Enable
102
+ * to gate continue on liquidity and show the unavailable/check-failed warning.
103
+ */
104
+ checkLiquidity?: boolean;
98
105
  }
99
106
  interface ConnectedEventData {
100
107
  address: Address;
package/dist/withdraw.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAE5LHTPMcjs = require('./chunk-AE5LHTPM.cjs');
4
- require('./chunk-OQVLEVNR.cjs');
3
+ var _chunkPNN2YBPFcjs = require('./chunk-PNN2YBPF.cjs');
4
+ require('./chunk-EDUWRMQI.cjs');
5
5
  require('./chunk-UEKPBRBY.cjs');
6
6
  require('./chunk-ABVRVW3P.cjs');
7
7
 
8
8
 
9
- exports.WithdrawModal = _chunkAE5LHTPMcjs.WithdrawModal;
9
+ exports.WithdrawModal = _chunkPNN2YBPFcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { n as WithdrawModalProps } from './types-CFRuisqK.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-CFRuisqK.cjs';
2
+ import { n as WithdrawModalProps } from './types-CUOqIIvZ.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-CUOqIIvZ.cjs';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { n as WithdrawModalProps } from './types-CFRuisqK.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-CFRuisqK.js';
2
+ import { n as WithdrawModalProps } from './types-CUOqIIvZ.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-CUOqIIvZ.js';
4
4
  import 'viem';
5
5
 
6
6
  declare function WithdrawModal(props: WithdrawModalProps): react.JSX.Element;
package/dist/withdraw.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-WCIGOV34.mjs";
4
- import "./chunk-GKC22JC4.mjs";
3
+ } from "./chunk-7JVBUMFE.mjs";
4
+ import "./chunk-7EQQD7B4.mjs";
5
5
  import "./chunk-F7P4MV72.mjs";
6
6
  import "./chunk-WJX3TJFK.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {