@rhinestone/deposit-modal 0.1.54 → 0.1.56

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,11 +1,11 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-AJUR6FAP.mjs";
3
+ } from "./chunk-6KDGB2W2.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-MBURQ26S.mjs";
8
- import "./chunk-JQTV5JTB.mjs";
8
+ import "./chunk-LY3AZLPH.mjs";
9
9
  import "./chunk-CIXHTOO3.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -1,11 +1,11 @@
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 _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
3
+ var _chunk6BYN2IMRcjs = require('./chunk-6BYN2IMR.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkN2Y34LQOcjs = require('./chunk-N2Y34LQO.cjs');
8
- require('./chunk-EAEDK474.cjs');
8
+ require('./chunk-3UQQU6BE.cjs');
9
9
  require('./chunk-R6U6BHCV.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -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
- _chunkQJVXCBUIcjs.DepositModalInner,
35
+ _chunk6BYN2IMRcjs.DepositModalInner,
36
36
  {
37
37
  ...props,
38
38
  reownWallet: reownWithSolana,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkGOMHX544cjs = require('./chunk-GOMHX544.cjs');
3
+ var _chunkTVGZCNBWcjs = require('./chunk-TVGZCNBW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkN2Y34LQOcjs = require('./chunk-N2Y34LQO.cjs');
8
- require('./chunk-EAEDK474.cjs');
8
+ require('./chunk-3UQQU6BE.cjs');
9
9
  require('./chunk-R6U6BHCV.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
20
20
  reown.disconnect();
21
21
  }, [reown.disconnect]);
22
22
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunkGOMHX544cjs.WithdrawModalInner,
23
+ _chunkTVGZCNBWcjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-XXB2LVUB.mjs";
3
+ } from "./chunk-IUKSOPEY.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-MBURQ26S.mjs";
8
- import "./chunk-JQTV5JTB.mjs";
8
+ import "./chunk-LY3AZLPH.mjs";
9
9
  import "./chunk-CIXHTOO3.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -810,12 +810,12 @@ function formatUserError(raw) {
810
810
  }
811
811
 
812
812
  // src/core/theme.ts
813
- var RADIUS_VALUES = {
814
- none: "0",
815
- sm: "8px",
816
- md: "10px",
817
- lg: "14px",
818
- full: "9999px"
813
+ var RADIUS_SCALE = {
814
+ none: { sm: "0", md: "0", lg: "0" },
815
+ sm: { sm: "4px", md: "6px", lg: "8px" },
816
+ md: { sm: "8px", md: "10px", lg: "14px" },
817
+ lg: { sm: "10px", md: "14px", lg: "18px" },
818
+ full: { sm: "9999px", md: "9999px", lg: "9999px" }
819
819
  };
820
820
  function applyTheme(element, theme) {
821
821
  if (!element) return;
@@ -848,7 +848,11 @@ function applyTheme(element, theme) {
848
848
  element.style.setProperty("--rs-background", theme.backgroundColor);
849
849
  }
850
850
  if (_optionalChain([theme, 'optionalAccess', _45 => _45.radius])) {
851
- element.style.setProperty("--rs-radius", RADIUS_VALUES[theme.radius]);
851
+ const scale = RADIUS_SCALE[theme.radius];
852
+ element.style.setProperty("--rs-radius-sm", scale.sm);
853
+ element.style.setProperty("--rs-radius-md", scale.md);
854
+ element.style.setProperty("--rs-radius-lg", scale.lg);
855
+ element.style.setProperty("--rs-radius", scale.md);
852
856
  }
853
857
  }
854
858