@rhinestone/deposit-modal 0.1.67 → 0.1.69

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.cjs CHANGED
@@ -1,10 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUDKZWFCMcjs = require('./chunk-UDKZWFCM.cjs');
3
+ var _chunk6W42ROABcjs = require('./chunk-6W42ROAB.cjs');
4
4
 
5
5
 
6
- var _chunkLTLFJPHOcjs = require('./chunk-LTLFJPHO.cjs');
7
- require('./chunk-FLVSQDP4.cjs');
6
+ var _chunk2ATEEBQZcjs = require('./chunk-2ATEEBQZ.cjs');
7
+
8
+
9
+ var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
10
+ require('./chunk-TCILEYM5.cjs');
8
11
 
9
12
 
10
13
 
@@ -66,4 +69,5 @@ var _chunkMUWVDVY4cjs = require('./chunk-MUWVDVY4.cjs');
66
69
 
67
70
 
68
71
 
69
- exports.CHAIN_BY_ID = _chunkMUWVDVY4cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMUWVDVY4cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMUWVDVY4cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkUDKZWFCMcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMUWVDVY4cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMUWVDVY4cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkLTLFJPHOcjs.WithdrawModal; exports.chainRegistry = _chunkMUWVDVY4cjs.chainRegistry; exports.findChainIdForToken = _chunkMUWVDVY4cjs.findChainIdForToken; exports.getChainBadge = _chunkMUWVDVY4cjs.getChainBadge; exports.getChainIcon = _chunkMUWVDVY4cjs.getChainIcon; exports.getChainId = _chunkMUWVDVY4cjs.getChainId; exports.getChainName = _chunkMUWVDVY4cjs.getChainName; exports.getChainObject = _chunkMUWVDVY4cjs.getChainObject; exports.getExplorerName = _chunkMUWVDVY4cjs.getExplorerName; exports.getExplorerTxUrl = _chunkMUWVDVY4cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMUWVDVY4cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMUWVDVY4cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMUWVDVY4cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMUWVDVY4cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMUWVDVY4cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMUWVDVY4cjs.getTokenAddress; exports.getTokenDecimals = _chunkMUWVDVY4cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMUWVDVY4cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMUWVDVY4cjs.getTokenIcon; exports.getTokenSymbol = _chunkMUWVDVY4cjs.getTokenSymbol; exports.getUsdcAddress = _chunkMUWVDVY4cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMUWVDVY4cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMUWVDVY4cjs.isSupportedTokenAddressForChain;
72
+
73
+ exports.CHAIN_BY_ID = _chunkMUWVDVY4cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMUWVDVY4cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMUWVDVY4cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk6W42ROABcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMUWVDVY4cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMUWVDVY4cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk2ATEEBQZcjs.WithdrawModal; exports.chainRegistry = _chunkMUWVDVY4cjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkMUWVDVY4cjs.findChainIdForToken; exports.getChainBadge = _chunkMUWVDVY4cjs.getChainBadge; exports.getChainIcon = _chunkMUWVDVY4cjs.getChainIcon; exports.getChainId = _chunkMUWVDVY4cjs.getChainId; exports.getChainName = _chunkMUWVDVY4cjs.getChainName; exports.getChainObject = _chunkMUWVDVY4cjs.getChainObject; exports.getExplorerName = _chunkMUWVDVY4cjs.getExplorerName; exports.getExplorerTxUrl = _chunkMUWVDVY4cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMUWVDVY4cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMUWVDVY4cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMUWVDVY4cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMUWVDVY4cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMUWVDVY4cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMUWVDVY4cjs.getTokenAddress; exports.getTokenDecimals = _chunkMUWVDVY4cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMUWVDVY4cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMUWVDVY4cjs.getTokenIcon; exports.getTokenSymbol = _chunkMUWVDVY4cjs.getTokenSymbol; exports.getUsdcAddress = _chunkMUWVDVY4cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMUWVDVY4cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMUWVDVY4cjs.isSupportedTokenAddressForChain;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
+ export { disconnectWallet } from './reown.cjs';
3
4
  export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-DJ1fzNC7.cjs';
4
5
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
5
6
  export { SafeTransactionRequest } from './safe.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
+ export { disconnectWallet } from './reown.js';
3
4
  export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-DGQzvl6v.js';
4
5
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
5
6
  export { SafeTransactionRequest } from './safe.js';
package/dist/index.mjs CHANGED
@@ -1,10 +1,13 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-NFE5ZLD3.mjs";
3
+ } from "./chunk-3RV2B6JM.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-5FDIQNJJ.mjs";
7
- import "./chunk-IUW3SJQT.mjs";
6
+ } from "./chunk-P3CGKXXZ.mjs";
7
+ import {
8
+ disconnectWallet
9
+ } from "./chunk-5YXAQB6A.mjs";
10
+ import "./chunk-DA3XVDNQ.mjs";
8
11
  import {
9
12
  CHAIN_BY_ID,
10
13
  DEFAULT_BACKEND_URL,
@@ -45,6 +48,7 @@ export {
45
48
  SUPPORTED_CHAINS,
46
49
  WithdrawModal,
47
50
  chainRegistry,
51
+ disconnectWallet,
48
52
  findChainIdForToken,
49
53
  getChainBadge,
50
54
  getChainIcon,
package/dist/reown.cjs CHANGED
@@ -1,12 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUDKZWFCMcjs = require('./chunk-UDKZWFCM.cjs');
3
+ var _chunk6W42ROABcjs = require('./chunk-6W42ROAB.cjs');
4
4
 
5
5
 
6
- var _chunkLTLFJPHOcjs = require('./chunk-LTLFJPHO.cjs');
7
- require('./chunk-FLVSQDP4.cjs');
6
+ var _chunk2ATEEBQZcjs = require('./chunk-2ATEEBQZ.cjs');
7
+
8
+
9
+ var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
10
+ require('./chunk-TCILEYM5.cjs');
8
11
  require('./chunk-MUWVDVY4.cjs');
9
12
 
10
13
 
11
14
 
12
- exports.DepositModal = _chunkUDKZWFCMcjs.DepositModal; exports.WithdrawModal = _chunkLTLFJPHOcjs.WithdrawModal;
15
+
16
+ exports.DepositModal = _chunk6W42ROABcjs.DepositModal; exports.WithdrawModal = _chunk2ATEEBQZcjs.WithdrawModal; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet;
package/dist/reown.d.cts CHANGED
@@ -4,3 +4,7 @@ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventDat
4
4
  export { SafeTransactionRequest } from './safe.cjs';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';
7
+
8
+ declare function disconnectWallet(): Promise<void>;
9
+
10
+ export { disconnectWallet };
package/dist/reown.d.ts CHANGED
@@ -4,3 +4,7 @@ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventDat
4
4
  export { SafeTransactionRequest } from './safe.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';
7
+
8
+ declare function disconnectWallet(): Promise<void>;
9
+
10
+ export { disconnectWallet };
package/dist/reown.mjs CHANGED
@@ -1,12 +1,16 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-NFE5ZLD3.mjs";
3
+ } from "./chunk-3RV2B6JM.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-5FDIQNJJ.mjs";
7
- import "./chunk-IUW3SJQT.mjs";
6
+ } from "./chunk-P3CGKXXZ.mjs";
7
+ import {
8
+ disconnectWallet
9
+ } from "./chunk-5YXAQB6A.mjs";
10
+ import "./chunk-DA3XVDNQ.mjs";
8
11
  import "./chunk-SDZKKUCJ.mjs";
9
12
  export {
10
13
  DepositModal,
11
- WithdrawModal
14
+ WithdrawModal,
15
+ disconnectWallet
12
16
  };
package/dist/styles.css CHANGED
@@ -2541,6 +2541,199 @@
2541
2541
  opacity: 0.65;
2542
2542
  }
2543
2543
 
2544
+ .rs-deposit-address-dropdown-label--with-min {
2545
+ display: flex;
2546
+ align-items: center;
2547
+ justify-content: space-between;
2548
+ gap: 6px;
2549
+ }
2550
+
2551
+ .rs-deposit-address-min {
2552
+ display: inline-flex;
2553
+ align-items: center;
2554
+ gap: 3px;
2555
+ }
2556
+
2557
+ .rs-deposit-address-min-icon {
2558
+ width: 12px;
2559
+ height: 12px;
2560
+ flex-shrink: 0;
2561
+ }
2562
+
2563
+ .rs-price-impact {
2564
+ width: 100%;
2565
+ margin-top: 10px;
2566
+ border-radius: var(--rs-radius-md);
2567
+ background: var(--color-gray2);
2568
+ overflow: hidden;
2569
+ }
2570
+
2571
+ .rs-price-impact-header {
2572
+ display: flex;
2573
+ align-items: center;
2574
+ gap: 8px;
2575
+ width: 100%;
2576
+ padding: 10px 14px;
2577
+ background: transparent;
2578
+ border: none;
2579
+ cursor: pointer;
2580
+ font-family: inherit;
2581
+ color: var(--rs-foreground);
2582
+ text-align: left;
2583
+ transition: background-color 0.15s;
2584
+ }
2585
+
2586
+ .rs-price-impact-header:hover {
2587
+ background: var(--rs-surface);
2588
+ }
2589
+
2590
+ .rs-price-impact-row-icon {
2591
+ display: inline-flex;
2592
+ align-items: center;
2593
+ justify-content: center;
2594
+ width: 18px;
2595
+ height: 18px;
2596
+ color: var(--rs-muted-foreground);
2597
+ flex-shrink: 0;
2598
+ }
2599
+
2600
+ .rs-price-impact-row-icon svg {
2601
+ width: 18px;
2602
+ height: 18px;
2603
+ }
2604
+
2605
+ .rs-price-impact-label {
2606
+ font-size: 13px;
2607
+ color: var(--rs-muted-foreground);
2608
+ font-weight: 500;
2609
+ }
2610
+
2611
+ .rs-price-impact-label strong {
2612
+ color: var(--rs-foreground);
2613
+ font-weight: 600;
2614
+ }
2615
+
2616
+ .rs-price-impact-info {
2617
+ color: var(--rs-muted-foreground);
2618
+ }
2619
+
2620
+ .rs-price-impact-info .rs-tooltip-trigger svg {
2621
+ width: 13px;
2622
+ height: 13px;
2623
+ display: block;
2624
+ }
2625
+
2626
+ .rs-price-impact-chevron {
2627
+ width: 14px;
2628
+ height: 14px;
2629
+ margin-left: auto;
2630
+ color: var(--rs-muted-foreground);
2631
+ flex-shrink: 0;
2632
+ transition: transform 0.2s ease;
2633
+ }
2634
+
2635
+ .rs-price-impact--open .rs-price-impact-chevron {
2636
+ transform: rotate(180deg);
2637
+ }
2638
+
2639
+ .rs-price-impact-panel {
2640
+ display: grid;
2641
+ grid-template-rows: 0fr;
2642
+ transition: grid-template-rows 0.25s ease;
2643
+ }
2644
+
2645
+ .rs-price-impact--open .rs-price-impact-panel {
2646
+ grid-template-rows: 1fr;
2647
+ }
2648
+
2649
+ .rs-price-impact-panel-inner {
2650
+ overflow: hidden;
2651
+ min-height: 0;
2652
+ }
2653
+
2654
+ .rs-price-impact-row {
2655
+ display: flex;
2656
+ align-items: center;
2657
+ gap: 8px;
2658
+ padding: 6px 14px 10px;
2659
+ font-size: 13px;
2660
+ }
2661
+
2662
+ .rs-price-impact-row:last-child {
2663
+ padding-bottom: 12px;
2664
+ }
2665
+
2666
+ /* =============================================================================
2667
+ Tooltip
2668
+ ============================================================================= */
2669
+
2670
+ .rs-tooltip {
2671
+ position: relative;
2672
+ display: inline-flex;
2673
+ align-items: center;
2674
+ justify-content: center;
2675
+ }
2676
+
2677
+ .rs-tooltip-trigger {
2678
+ display: inline-flex;
2679
+ align-items: center;
2680
+ justify-content: center;
2681
+ cursor: pointer;
2682
+ color: inherit;
2683
+ outline: none;
2684
+ border-radius: 50%;
2685
+ }
2686
+
2687
+ .rs-tooltip-trigger:focus-visible {
2688
+ box-shadow: 0 0 0 2px var(--rs-primary-tint);
2689
+ }
2690
+
2691
+ .rs-tooltip-bubble {
2692
+ position: fixed;
2693
+ z-index: 2147483000;
2694
+ transform: translate(-50%, calc(-100% - 8px));
2695
+ min-width: 120px;
2696
+ max-width: 220px;
2697
+ padding: 6px 8px;
2698
+ background: #202020;
2699
+ color: #fcfcfc;
2700
+ border-radius: 6px;
2701
+ font-size: 10.5px;
2702
+ line-height: 1.35;
2703
+ font-weight: 500;
2704
+ text-align: center;
2705
+ font-family:
2706
+ -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
2707
+ sans-serif;
2708
+ box-shadow:
2709
+ 0 4px 12px rgba(0, 0, 0, 0.18),
2710
+ 0 1px 3px rgba(0, 0, 0, 0.12);
2711
+ pointer-events: none;
2712
+ white-space: normal;
2713
+ animation: rs-tooltip-in 0.12s ease-out;
2714
+ }
2715
+
2716
+ .rs-tooltip-bubble::after {
2717
+ content: "";
2718
+ position: absolute;
2719
+ top: 100%;
2720
+ left: 50%;
2721
+ transform: translateX(-50%);
2722
+ border: 5px solid transparent;
2723
+ border-top-color: #202020;
2724
+ }
2725
+
2726
+ @keyframes rs-tooltip-in {
2727
+ from {
2728
+ opacity: 0;
2729
+ transform: translate(-50%, calc(-100% - 6px));
2730
+ }
2731
+ to {
2732
+ opacity: 1;
2733
+ transform: translate(-50%, calc(-100% - 8px));
2734
+ }
2735
+ }
2736
+
2544
2737
  .rs-deposit-address-dropdown-trigger {
2545
2738
  display: flex;
2546
2739
  align-items: center;
@@ -2668,7 +2861,7 @@
2668
2861
  text-align: left;
2669
2862
  padding: 8px 12px;
2670
2863
  background: transparent;
2671
- border: 1px solid var(--rs-border);
2864
+ border: 1px solid var(--rs-border-surface);
2672
2865
  border-radius: var(--rs-radius-sm) var(--rs-radius-sm) 0 0;
2673
2866
  border-bottom: none;
2674
2867
  width: 100%;
@@ -2681,9 +2874,9 @@
2681
2874
  gap: 6px;
2682
2875
  width: 100%;
2683
2876
  padding: 8px 16px;
2684
- border: 1px solid var(--rs-border);
2877
+ border: 1px solid var(--rs-border-surface);
2685
2878
  border-radius: 0 0 var(--rs-radius-sm) var(--rs-radius-sm);
2686
- background: var(--rs-surface);
2879
+ background: var(--color-gray2);
2687
2880
  color: var(--rs-foreground);
2688
2881
  font-size: 13px;
2689
2882
  font-weight: 500;
@@ -2693,7 +2886,7 @@
2693
2886
  }
2694
2887
 
2695
2888
  .rs-deposit-address-copy:hover {
2696
- background: var(--rs-surface-hover);
2889
+ background: var(--rs-surface);
2697
2890
  }
2698
2891
 
2699
2892
  .rs-deposit-address-balance {
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLTLFJPHOcjs = require('./chunk-LTLFJPHO.cjs');
4
- require('./chunk-FLVSQDP4.cjs');
3
+ var _chunk2ATEEBQZcjs = require('./chunk-2ATEEBQZ.cjs');
4
+ require('./chunk-TCILEYM5.cjs');
5
5
  require('./chunk-MUWVDVY4.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunkLTLFJPHOcjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunk2ATEEBQZcjs.WithdrawModal;
package/dist/withdraw.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-5FDIQNJJ.mjs";
4
- import "./chunk-IUW3SJQT.mjs";
3
+ } from "./chunk-P3CGKXXZ.mjs";
4
+ import "./chunk-DA3XVDNQ.mjs";
5
5
  import "./chunk-SDZKKUCJ.mjs";
6
6
  export {
7
7
  WithdrawModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {