@rhinestone/deposit-modal 0.3.0-alpha.5 → 0.3.0-alpha.6

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-ZUWAIMMH.mjs";
3
+ } from "./chunk-EJH36TH2.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkTTD2FEA2cjs = require('./chunk-TTD2FEA2.cjs');
3
+ var _chunkUVIIWUWPcjs = require('./chunk-UVIIWUWP.cjs');
4
4
 
5
5
 
6
6
 
@@ -32,7 +32,7 @@ function DepositModalWithReown(props) {
32
32
  reown.disconnect();
33
33
  }, [reown.disconnect]);
34
34
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35
- _chunkTTD2FEA2cjs.DepositModalInner,
35
+ _chunkUVIIWUWPcjs.DepositModalInner,
36
36
  {
37
37
  ...props,
38
38
  reownWallet: reownWithSolana,
@@ -5573,7 +5573,6 @@ function DepositHistoryPanel({
5573
5573
  children: /* @__PURE__ */ jsx11(ChevronLeftIcon, {})
5574
5574
  }
5575
5575
  ) }),
5576
- /* @__PURE__ */ jsx11("div", { className: "rs-modal-header-nav-center" }),
5577
5576
  /* @__PURE__ */ jsx11("div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ jsx11(
5578
5577
  "button",
5579
5578
  {
@@ -5712,7 +5711,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
5712
5711
  // src/DepositModal.tsx
5713
5712
  import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
5714
5713
  var ReownDepositInner = lazy2(
5715
- () => import("./DepositModalReown-3VZ5AKV2.mjs").then((m) => ({ default: m.DepositModalReown }))
5714
+ () => import("./DepositModalReown-3N7YYGB4.mjs").then((m) => ({ default: m.DepositModalReown }))
5716
5715
  );
5717
5716
  function sortByCreatedAtDesc(items) {
5718
5717
  return [...items].sort((a, b) => {
@@ -5573,7 +5573,6 @@ function DepositHistoryPanel({
5573
5573
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronLeftIcon, {})
5574
5574
  }
5575
5575
  ) }),
5576
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-center" }),
5577
5576
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5578
5577
  "button",
5579
5578
  {
@@ -5712,7 +5711,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
5712
5711
  // src/DepositModal.tsx
5713
5712
 
5714
5713
  var ReownDepositInner = _react.lazy.call(void 0,
5715
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-PPX34UAK.cjs"))).then((m) => ({ default: m.DepositModalReown }))
5714
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-SBSP5ZW2.cjs"))).then((m) => ({ default: m.DepositModalReown }))
5716
5715
  );
5717
5716
  function sortByCreatedAtDesc(items) {
5718
5717
  return [...items].sort((a, b) => {
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTTD2FEA2cjs = require('./chunk-TTD2FEA2.cjs');
3
+ var _chunkUVIIWUWPcjs = require('./chunk-UVIIWUWP.cjs');
4
4
  require('./chunk-DX2D2TRZ.cjs');
5
5
  require('./chunk-IVTXEYB2.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkTTD2FEA2cjs.DepositModal;
8
+ exports.DepositModal = _chunkUVIIWUWPcjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-ZUWAIMMH.mjs";
3
+ } from "./chunk-EJH36TH2.mjs";
4
4
  import "./chunk-CTYKQ4B4.mjs";
5
5
  import "./chunk-VA3ANS7D.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 _chunkTTD2FEA2cjs = require('./chunk-TTD2FEA2.cjs');
3
+ var _chunkUVIIWUWPcjs = require('./chunk-UVIIWUWP.cjs');
4
4
 
5
5
 
6
6
  var _chunkBB6UVRAVcjs = require('./chunk-BB6UVRAV.cjs');
@@ -70,4 +70,4 @@ var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
70
70
 
71
71
 
72
72
 
73
- exports.CHAIN_BY_ID = _chunkIVTXEYB2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkIVTXEYB2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkTTD2FEA2cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkIVTXEYB2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkIVTXEYB2cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkBB6UVRAVcjs.WithdrawModal; exports.chainRegistry = _chunkIVTXEYB2cjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkIVTXEYB2cjs.findChainIdForToken; exports.getChainBadge = _chunkIVTXEYB2cjs.getChainBadge; exports.getChainIcon = _chunkIVTXEYB2cjs.getChainIcon; exports.getChainId = _chunkIVTXEYB2cjs.getChainId; exports.getChainName = _chunkIVTXEYB2cjs.getChainName; exports.getChainObject = _chunkIVTXEYB2cjs.getChainObject; exports.getExplorerName = _chunkIVTXEYB2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkIVTXEYB2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkIVTXEYB2cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkIVTXEYB2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkIVTXEYB2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkIVTXEYB2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkIVTXEYB2cjs.getTokenAddress; exports.getTokenDecimals = _chunkIVTXEYB2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkIVTXEYB2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon; exports.getTokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkIVTXEYB2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkIVTXEYB2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkIVTXEYB2cjs.isSupportedTokenAddressForChain;
73
+ exports.CHAIN_BY_ID = _chunkIVTXEYB2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkIVTXEYB2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkUVIIWUWPcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkIVTXEYB2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkIVTXEYB2cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkBB6UVRAVcjs.WithdrawModal; exports.chainRegistry = _chunkIVTXEYB2cjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkIVTXEYB2cjs.findChainIdForToken; exports.getChainBadge = _chunkIVTXEYB2cjs.getChainBadge; exports.getChainIcon = _chunkIVTXEYB2cjs.getChainIcon; exports.getChainId = _chunkIVTXEYB2cjs.getChainId; exports.getChainName = _chunkIVTXEYB2cjs.getChainName; exports.getChainObject = _chunkIVTXEYB2cjs.getChainObject; exports.getExplorerName = _chunkIVTXEYB2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkIVTXEYB2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkIVTXEYB2cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkIVTXEYB2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkIVTXEYB2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkIVTXEYB2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkIVTXEYB2cjs.getTokenAddress; exports.getTokenDecimals = _chunkIVTXEYB2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkIVTXEYB2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon; exports.getTokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkIVTXEYB2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkIVTXEYB2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkIVTXEYB2cjs.isSupportedTokenAddressForChain;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-ZUWAIMMH.mjs";
3
+ } from "./chunk-EJH36TH2.mjs";
4
4
  import {
5
5
  WithdrawModal
6
6
  } from "./chunk-QI6Q7V6O.mjs";
package/dist/styles.css CHANGED
@@ -113,7 +113,7 @@
113
113
  /* Sizing */
114
114
  --rs-height-button: 42px;
115
115
  --rs-height-titlebar: 36px;
116
- --rs-width-dialog: 400px;
116
+ --rs-width-dialog: 380px;
117
117
 
118
118
  /* Radius */
119
119
  --rs-radius-none: 0;
@@ -248,7 +248,7 @@
248
248
 
249
249
  position: relative;
250
250
  width: 100%;
251
- max-width: var(--rs-width-dialog, 400px);
251
+ max-width: var(--rs-width-dialog, 380px);
252
252
  /* Cap the modal at 600px (or viewport-40 on tiny screens) so long lists
253
253
  scroll inside instead of growing the modal. */
254
254
  max-height: min(600px, calc(100vh - 40px));
@@ -3710,6 +3710,8 @@
3710
3710
  z-index: 10;
3711
3711
  display: flex;
3712
3712
  flex-direction: column;
3713
+ padding: 16px;
3714
+ gap: 16px;
3713
3715
  background: var(--rs-background);
3714
3716
  border-radius: inherit;
3715
3717
  animation: rs-history-slide-in 0.2s cubic-bezier(0.32, 0.72, 0, 1);
@@ -3734,7 +3736,7 @@
3734
3736
  display: flex;
3735
3737
  flex-direction: column;
3736
3738
  flex-grow: 1;
3737
- padding: 12px;
3739
+ padding: 0;
3738
3740
  gap: 16px;
3739
3741
  min-height: 0;
3740
3742
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.3.0-alpha.5",
3
+ "version": "0.3.0-alpha.6",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {