@rhinestone/deposit-modal 0.1.67 → 0.1.68

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/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUDKZWFCMcjs = require('./chunk-UDKZWFCM.cjs');
3
+ var _chunkJ7ILKS5Ncjs = require('./chunk-J7ILKS5N.cjs');
4
4
  require('./chunk-FLVSQDP4.cjs');
5
5
  require('./chunk-MUWVDVY4.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkUDKZWFCMcjs.DepositModal;
8
+ exports.DepositModal = _chunkJ7ILKS5Ncjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-NFE5ZLD3.mjs";
3
+ } from "./chunk-OEB25YZ4.mjs";
4
4
  import "./chunk-IUW3SJQT.mjs";
5
5
  import "./chunk-SDZKKUCJ.mjs";
6
6
  export {
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUDKZWFCMcjs = require('./chunk-UDKZWFCM.cjs');
3
+ var _chunkJ7ILKS5Ncjs = require('./chunk-J7ILKS5N.cjs');
4
4
 
5
5
 
6
6
  var _chunkLTLFJPHOcjs = require('./chunk-LTLFJPHO.cjs');
@@ -66,4 +66,4 @@ var _chunkMUWVDVY4cjs = require('./chunk-MUWVDVY4.cjs');
66
66
 
67
67
 
68
68
 
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;
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 = _chunkJ7ILKS5Ncjs.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;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-NFE5ZLD3.mjs";
3
+ } from "./chunk-OEB25YZ4.mjs";
4
4
  import {
5
5
  WithdrawModal
6
6
  } from "./chunk-5FDIQNJJ.mjs";
package/dist/reown.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUDKZWFCMcjs = require('./chunk-UDKZWFCM.cjs');
3
+ var _chunkJ7ILKS5Ncjs = require('./chunk-J7ILKS5N.cjs');
4
4
 
5
5
 
6
6
  var _chunkLTLFJPHOcjs = require('./chunk-LTLFJPHO.cjs');
@@ -9,4 +9,4 @@ require('./chunk-MUWVDVY4.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.DepositModal = _chunkUDKZWFCMcjs.DepositModal; exports.WithdrawModal = _chunkLTLFJPHOcjs.WithdrawModal;
12
+ exports.DepositModal = _chunkJ7ILKS5Ncjs.DepositModal; exports.WithdrawModal = _chunkLTLFJPHOcjs.WithdrawModal;
package/dist/reown.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-NFE5ZLD3.mjs";
3
+ } from "./chunk-OEB25YZ4.mjs";
4
4
  import {
5
5
  WithdrawModal
6
6
  } from "./chunk-5FDIQNJJ.mjs";
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {