@rhinestone/deposit-modal 0.3.0-alpha.10 → 0.3.0-alpha.12

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 _chunkHUPEN2T5cjs = require('./chunk-HUPEN2T5.cjs');
3
+ var _chunkI5G5ULRPcjs = require('./chunk-I5G5ULRP.cjs');
4
4
  require('./chunk-2TWQGPPB.cjs');
5
5
  require('./chunk-7JIDIX27.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkHUPEN2T5cjs.DepositModal;
8
+ exports.DepositModal = _chunkI5G5ULRPcjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-N5NOJ4ZV.mjs";
3
+ } from "./chunk-HR6BABPX.mjs";
4
4
  import "./chunk-WVE3JN3C.mjs";
5
5
  import "./chunk-SZIYS42B.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 _chunkHUPEN2T5cjs = require('./chunk-HUPEN2T5.cjs');
3
+ var _chunkI5G5ULRPcjs = require('./chunk-I5G5ULRP.cjs');
4
4
 
5
5
 
6
6
  var _chunkYI63OMXNcjs = require('./chunk-YI63OMXN.cjs');
@@ -79,4 +79,4 @@ async function disconnectWallet() {
79
79
 
80
80
 
81
81
 
82
- exports.CHAIN_BY_ID = _chunk7JIDIX27cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkHUPEN2T5cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunk7JIDIX27cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunk7JIDIX27cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkYI63OMXNcjs.WithdrawModal; exports.chainRegistry = _chunk7JIDIX27cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunk7JIDIX27cjs.findChainIdForToken; exports.getChainBadge = _chunk7JIDIX27cjs.getChainBadge; exports.getChainIcon = _chunk7JIDIX27cjs.getChainIcon; exports.getChainId = _chunk7JIDIX27cjs.getChainId; exports.getChainName = _chunk7JIDIX27cjs.getChainName; exports.getChainObject = _chunk7JIDIX27cjs.getChainObject; exports.getExplorerName = _chunk7JIDIX27cjs.getExplorerName; exports.getExplorerTxUrl = _chunk7JIDIX27cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk7JIDIX27cjs.getExplorerUrl; exports.getSupportedChainIds = _chunk7JIDIX27cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk7JIDIX27cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk7JIDIX27cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk7JIDIX27cjs.getTokenAddress; exports.getTokenDecimals = _chunk7JIDIX27cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk7JIDIX27cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk7JIDIX27cjs.getTokenIcon; exports.getTokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol; exports.getUsdcAddress = _chunk7JIDIX27cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk7JIDIX27cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk7JIDIX27cjs.isSupportedTokenAddressForChain;
82
+ exports.CHAIN_BY_ID = _chunk7JIDIX27cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkI5G5ULRPcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunk7JIDIX27cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunk7JIDIX27cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkYI63OMXNcjs.WithdrawModal; exports.chainRegistry = _chunk7JIDIX27cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunk7JIDIX27cjs.findChainIdForToken; exports.getChainBadge = _chunk7JIDIX27cjs.getChainBadge; exports.getChainIcon = _chunk7JIDIX27cjs.getChainIcon; exports.getChainId = _chunk7JIDIX27cjs.getChainId; exports.getChainName = _chunk7JIDIX27cjs.getChainName; exports.getChainObject = _chunk7JIDIX27cjs.getChainObject; exports.getExplorerName = _chunk7JIDIX27cjs.getExplorerName; exports.getExplorerTxUrl = _chunk7JIDIX27cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk7JIDIX27cjs.getExplorerUrl; exports.getSupportedChainIds = _chunk7JIDIX27cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk7JIDIX27cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk7JIDIX27cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk7JIDIX27cjs.getTokenAddress; exports.getTokenDecimals = _chunk7JIDIX27cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk7JIDIX27cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk7JIDIX27cjs.getTokenIcon; exports.getTokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol; exports.getUsdcAddress = _chunk7JIDIX27cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk7JIDIX27cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk7JIDIX27cjs.isSupportedTokenAddressForChain;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-N5NOJ4ZV.mjs";
3
+ } from "./chunk-HR6BABPX.mjs";
4
4
  import {
5
5
  WithdrawModal
6
6
  } from "./chunk-7MZNQ4C2.mjs";
package/dist/styles.css CHANGED
@@ -2782,7 +2782,7 @@
2782
2782
  .rs-withdraw-dropdown-arrow {
2783
2783
  width: 24px;
2784
2784
  height: 24px;
2785
- color: var(--rs-icon-secondary);
2785
+ color: #9f9fa9;
2786
2786
  transition: transform 0.15s;
2787
2787
  }
2788
2788
 
@@ -3085,7 +3085,7 @@
3085
3085
  display: flex;
3086
3086
  align-items: center;
3087
3087
  gap: 8px;
3088
- padding-top: 12px;
3088
+ padding-top: 8px;
3089
3089
  font-size: 12px;
3090
3090
  color: var(--rs-muted);
3091
3091
  }
@@ -3205,7 +3205,7 @@
3205
3205
  .rs-deposit-address-dropdown-chevron {
3206
3206
  width: 24px;
3207
3207
  height: 24px;
3208
- color: var(--rs-icon-secondary);
3208
+ color: #9f9fa9;
3209
3209
  margin-left: auto;
3210
3210
  flex-shrink: 0;
3211
3211
  transition: transform 0.15s ease;
@@ -3226,10 +3226,10 @@
3226
3226
  border: 1px solid var(--rs-surface-subtle);
3227
3227
  border-radius: var(--rs-radius-sm);
3228
3228
  box-shadow: var(--rs-shadow-dropdown);
3229
- padding: 12px;
3229
+ padding: 8px;
3230
3230
  display: flex;
3231
3231
  flex-direction: column;
3232
- gap: 16px;
3232
+ gap: 0;
3233
3233
  max-height: 240px;
3234
3234
  overflow-y: auto;
3235
3235
  overscroll-behavior: none;
@@ -3241,8 +3241,8 @@
3241
3241
  align-items: center;
3242
3242
  gap: 6px;
3243
3243
  width: 100%;
3244
- padding: 0;
3245
- border-radius: calc(var(--rs-radius-sm) - 2px);
3244
+ padding: 8px 4px;
3245
+ border-radius: 4px;
3246
3246
  border: none;
3247
3247
  background: transparent;
3248
3248
  color: var(--rs-foreground);
@@ -3251,12 +3251,12 @@
3251
3251
  line-height: normal;
3252
3252
  cursor: pointer;
3253
3253
  text-align: left;
3254
- transition: opacity 0.1s;
3254
+ transition: background-color 0.1s;
3255
3255
  font-family: inherit;
3256
3256
  }
3257
3257
 
3258
3258
  .rs-deposit-address-dropdown-item:hover {
3259
- opacity: 0.7;
3259
+ background: var(--rs-surface);
3260
3260
  }
3261
3261
 
3262
3262
  .rs-deposit-address-dropdown-item--active {
@@ -3323,6 +3323,51 @@
3323
3323
  word-break: break-all;
3324
3324
  }
3325
3325
 
3326
+ /* Visually hidden but exposed to assistive tech — used by the skeleton's
3327
+ "Preparing…" status, whose visual placeholders are all aria-hidden. */
3328
+ .rs-sr-only {
3329
+ position: absolute;
3330
+ width: 1px;
3331
+ height: 1px;
3332
+ padding: 0;
3333
+ margin: -1px;
3334
+ overflow: hidden;
3335
+ clip: rect(0, 0, 0, 0);
3336
+ white-space: nowrap;
3337
+ border: 0;
3338
+ }
3339
+
3340
+ /* Loading placeholders for DepositAddressSkeleton — grey blocks that pulse
3341
+ while the smart account / deposit address are being prepared. Uses
3342
+ --color-gray4 (zinc-200 light / zinc-800 dark) so it reads on the well in
3343
+ both themes. */
3344
+ .rs-skeleton {
3345
+ background: var(--color-gray4);
3346
+ border-radius: 8px;
3347
+ animation: rs-skeleton-pulse 1.6s ease-in-out infinite;
3348
+ }
3349
+
3350
+ .rs-skeleton-qr {
3351
+ width: 200px;
3352
+ height: 200px;
3353
+ }
3354
+
3355
+ .rs-skeleton-address {
3356
+ height: 12px;
3357
+ margin: 0 16px 12px;
3358
+ border-radius: 8px;
3359
+ }
3360
+
3361
+ @keyframes rs-skeleton-pulse {
3362
+ 0%,
3363
+ 100% {
3364
+ opacity: 1;
3365
+ }
3366
+ 50% {
3367
+ opacity: 0.5;
3368
+ }
3369
+ }
3370
+
3326
3371
  .rs-deposit-address-copy {
3327
3372
  display: flex;
3328
3373
  align-items: center;
@@ -3990,8 +4035,8 @@
3990
4035
  width: 100%;
3991
4036
  display: flex;
3992
4037
  flex-direction: column;
3993
- gap: 16px;
3994
- padding: 16px 12px;
4038
+ gap: 0;
4039
+ padding: 12px 8px;
3995
4040
  background: var(--rs-surface-subtle);
3996
4041
  border: none;
3997
4042
  border-radius: 8px;
@@ -4106,12 +4151,38 @@
4106
4151
  white-space: nowrap;
4107
4152
  }
4108
4153
 
4154
+ /* Collapsing wrapper that animates the detail block between closed/open. */
4155
+ .rs-history-card-panel {
4156
+ display: grid;
4157
+ grid-template-rows: 0fr;
4158
+ transition: grid-template-rows 0.25s ease;
4159
+ }
4160
+
4161
+ .rs-history-card--expanded .rs-history-card-panel {
4162
+ grid-template-rows: 1fr;
4163
+ }
4164
+
4165
+ .rs-history-card-panel-inner {
4166
+ overflow: hidden;
4167
+ min-height: 0;
4168
+ /* Keep the collapsed panel (and its tx link) out of the tab order.
4169
+ visibility stays "visible" through the collapse so the content is
4170
+ present during the height animation, then flips hidden at the end. */
4171
+ visibility: hidden;
4172
+ transition: visibility 0.25s;
4173
+ }
4174
+
4175
+ .rs-history-card--expanded .rs-history-card-panel-inner {
4176
+ visibility: visible;
4177
+ }
4178
+
4109
4179
  /* Expanded detail block under the row. */
4110
4180
  .rs-history-card-details {
4111
4181
  display: flex;
4112
4182
  flex-direction: column;
4113
4183
  gap: 8px;
4114
4184
  width: 100%;
4185
+ padding-top: 16px;
4115
4186
  }
4116
4187
 
4117
4188
  .rs-history-card-link {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.3.0-alpha.10",
3
+ "version": "0.3.0-alpha.12",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {