@rhinestone/deposit-modal 0.14.1 → 0.16.0
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/README.md +26 -24
- package/bridge-transcript.json +14 -0
- package/dist/{DepositModalReown-GAD45GIC.cjs → DepositModalReown-IFN6YLZJ.cjs} +20 -22
- package/dist/{DepositModalReown-2EVV64OA.mjs → DepositModalReown-R7UROJPJ.mjs} +5 -7
- package/dist/WithdrawModal-SZEAI473.cjs +11 -0
- package/dist/WithdrawModal-XKSSHVEJ.mjs +11 -0
- package/dist/{caip-D8aRWdEY.d.cts → caip-BMi-9t09.d.cts} +27 -3
- package/dist/{caip-D8aRWdEY.d.ts → caip-BMi-9t09.d.ts} +27 -3
- package/dist/{chunk-A6JPBMYY.cjs → chunk-24N4KMJX.cjs} +234 -115
- package/dist/{chunk-LMG46EP2.mjs → chunk-3HCCR54R.mjs} +1 -1
- package/dist/{chunk-AQVJUXSG.cjs → chunk-5CM3ZQ5U.cjs} +1 -1
- package/dist/chunk-EA5CE2UZ.mjs +7599 -0
- package/dist/{chunk-VUATPOWJ.mjs → chunk-EAGMY3QE.mjs} +74 -17
- package/dist/{chunk-5Q5CSVKF.mjs → chunk-F6ROQ6RJ.mjs} +215 -517
- package/dist/{chunk-RN5VKWI6.mjs → chunk-FTWKAJGN.mjs} +1 -1
- package/dist/chunk-H4O22O7Y.cjs +7599 -0
- package/dist/{chunk-GZ4GQ5MC.mjs → chunk-HMB2XQGD.mjs} +172 -53
- package/dist/{chunk-DW2EQA2U.cjs → chunk-LVCD6RHF.cjs} +2 -2
- package/dist/{chunk-4KCSH4T3.cjs → chunk-OY5N3E6L.cjs} +86 -29
- package/dist/{chunk-NQMC5VKQ.cjs → chunk-V466XQSG.cjs} +551 -853
- package/dist/{constants-DBrWhJWE.d.cts → constants-BT4ctuHo.d.cts} +7 -6
- package/dist/{constants-DBrWhJWE.d.ts → constants-D21ZdNOP.d.ts} +7 -6
- package/dist/constants.cjs +3 -3
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.mjs +2 -2
- package/dist/deposit.cjs +6 -8
- package/dist/deposit.d.cts +3 -3
- package/dist/deposit.d.ts +3 -3
- package/dist/deposit.mjs +5 -7
- package/dist/embed.cjs +130 -80
- package/dist/embed.d.cts +3 -9
- package/dist/embed.d.ts +3 -9
- package/dist/embed.mjs +112 -62
- package/dist/index.cjs +8 -11
- package/dist/index.d.cts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.mjs +10 -13
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +2 -2
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/styles.css +147 -100
- package/dist/{types-DP_3KwlD.d.cts → types-B9SbZQIG.d.ts} +145 -108
- package/dist/{types-Bho4OA03.d.ts → types-SwGGf0eH.d.cts} +145 -108
- package/dist/withdraw.cjs +5 -6
- package/dist/withdraw.d.cts +33 -5
- package/dist/withdraw.d.ts +33 -5
- package/dist/withdraw.mjs +4 -5
- package/package.json +6 -37
- package/dist/ClaimModal-GDFENSLV.mjs +0 -13
- package/dist/ClaimModal-L3FUBI5U.cjs +0 -13
- package/dist/WithdrawModal-FAQH35NG.cjs +0 -12
- package/dist/WithdrawModal-IKUHF5CF.mjs +0 -12
- package/dist/chunk-4J5ADVIN.cjs +0 -1848
- package/dist/chunk-62UCV2LG.cjs +0 -81
- package/dist/chunk-7AZFT2MV.cjs +0 -163
- package/dist/chunk-HAQOFI3D.cjs +0 -3699
- package/dist/chunk-QACOOLOE.mjs +0 -1062
- package/dist/chunk-R5UQ3TN4.mjs +0 -81
- package/dist/chunk-UX35GYLM.mjs +0 -3699
- package/dist/chunk-VALXN5IO.mjs +0 -163
- package/dist/chunk-XCTRKCNM.mjs +0 -1848
- package/dist/chunk-YP7QVKQ6.cjs +0 -1062
- package/dist/claim.cjs +0 -11
- package/dist/claim.d.cts +0 -17
- package/dist/claim.d.ts +0 -17
- package/dist/claim.mjs +0 -11
- package/dist/modal-ui-state-OD1RmKkK.d.cts +0 -30
- package/dist/modal-ui-state-OD1RmKkK.d.ts +0 -30
package/dist/styles.css
CHANGED
|
@@ -647,6 +647,13 @@
|
|
|
647
647
|
height: 14px;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
+
.rs-input-hint {
|
|
651
|
+
font-size: 12px;
|
|
652
|
+
font-weight: 500;
|
|
653
|
+
color: var(--rs-muted);
|
|
654
|
+
line-height: normal;
|
|
655
|
+
}
|
|
656
|
+
|
|
650
657
|
/* =============================================================================
|
|
651
658
|
Spinner
|
|
652
659
|
============================================================================= */
|
|
@@ -2125,6 +2132,18 @@
|
|
|
2125
2132
|
height: 24px;
|
|
2126
2133
|
}
|
|
2127
2134
|
|
|
2135
|
+
/* Names the flow the panel returns to, so a mid-flow entry reads as an
|
|
2136
|
+
interruption rather than an exit. Widens the otherwise fixed 24px box. */
|
|
2137
|
+
.rs-modal-header-back--labelled {
|
|
2138
|
+
width: auto;
|
|
2139
|
+
gap: 4px;
|
|
2140
|
+
padding-right: 4px;
|
|
2141
|
+
font-family: inherit;
|
|
2142
|
+
font-size: 14px;
|
|
2143
|
+
font-weight: 500;
|
|
2144
|
+
line-height: 20px;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2128
2147
|
/* =============================================================================
|
|
2129
2148
|
Amount Step Redesign
|
|
2130
2149
|
============================================================================= */
|
|
@@ -2400,6 +2419,13 @@
|
|
|
2400
2419
|
font-feature-settings: "tnum";
|
|
2401
2420
|
}
|
|
2402
2421
|
|
|
2422
|
+
/* Lucide icons default to 24px, which dwarfs the 14px row. */
|
|
2423
|
+
.rs-review-detail-value.rs-link svg {
|
|
2424
|
+
width: 12px;
|
|
2425
|
+
height: 12px;
|
|
2426
|
+
flex-shrink: 0;
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2403
2429
|
.rs-review-detail-icon {
|
|
2404
2430
|
width: 16px;
|
|
2405
2431
|
height: 16px;
|
|
@@ -4070,6 +4096,9 @@
|
|
|
4070
4096
|
============================================================================= */
|
|
4071
4097
|
|
|
4072
4098
|
.rs-modal-header-history {
|
|
4099
|
+
/* Anchors the status dot; the glyph and the button's box are identical in
|
|
4100
|
+
every badge state, so the header never re-flows. */
|
|
4101
|
+
position: relative;
|
|
4073
4102
|
display: flex;
|
|
4074
4103
|
align-items: center;
|
|
4075
4104
|
justify-content: center;
|
|
@@ -4098,6 +4127,36 @@
|
|
|
4098
4127
|
height: 24px;
|
|
4099
4128
|
}
|
|
4100
4129
|
|
|
4130
|
+
/* Status dot on the history entry point. Colour is the only difference between
|
|
4131
|
+
states, keyed to the row badges' failed/processing hues; the button's
|
|
4132
|
+
accessible name says the state in words. */
|
|
4133
|
+
.rs-history-dot {
|
|
4134
|
+
position: absolute;
|
|
4135
|
+
top: 1px;
|
|
4136
|
+
right: 1px;
|
|
4137
|
+
width: 7px;
|
|
4138
|
+
height: 7px;
|
|
4139
|
+
border-radius: 50%;
|
|
4140
|
+
/* A ring in the surface colour separates the dot from the glyph beneath it. */
|
|
4141
|
+
box-shadow: 0 0 0 2px var(--rs-background);
|
|
4142
|
+
}
|
|
4143
|
+
|
|
4144
|
+
.rs-history-dot--needs-you {
|
|
4145
|
+
background: #9f0712;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
.rs-history-dot--progress {
|
|
4149
|
+
background: #00407f;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
.rs-modal[data-theme="dark"] .rs-history-dot--needs-you {
|
|
4153
|
+
background: #ffc9c9;
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
.rs-modal[data-theme="dark"] .rs-history-dot--progress {
|
|
4157
|
+
background: #bee3ff;
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4101
4160
|
/* =============================================================================
|
|
4102
4161
|
Deposit History Panel — matches Figma 1878:142660 / 1878:142727.
|
|
4103
4162
|
The panel overlays the deposit flow inside .rs-modal-content; its own
|
|
@@ -4211,6 +4270,32 @@
|
|
|
4211
4270
|
line-height: normal;
|
|
4212
4271
|
}
|
|
4213
4272
|
|
|
4273
|
+
/* The escape hatch under the title: a text button, not a card, so the primary
|
|
4274
|
+
action stays the expanded row's recover CTA. */
|
|
4275
|
+
.rs-history-hint {
|
|
4276
|
+
display: flex;
|
|
4277
|
+
flex-wrap: wrap;
|
|
4278
|
+
gap: 4px;
|
|
4279
|
+
align-items: baseline;
|
|
4280
|
+
padding: 0;
|
|
4281
|
+
border: none;
|
|
4282
|
+
background: transparent;
|
|
4283
|
+
color: var(--rs-muted);
|
|
4284
|
+
font-size: 13px;
|
|
4285
|
+
font-family: inherit;
|
|
4286
|
+
text-align: left;
|
|
4287
|
+
cursor: pointer;
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
.rs-history-hint strong {
|
|
4291
|
+
color: var(--rs-foreground);
|
|
4292
|
+
font-weight: 500;
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
.rs-history-hint:hover strong {
|
|
4296
|
+
text-decoration: underline;
|
|
4297
|
+
}
|
|
4298
|
+
|
|
4214
4299
|
/* List of transaction cards. */
|
|
4215
4300
|
.rs-history-list {
|
|
4216
4301
|
display: flex;
|
|
@@ -4223,28 +4308,38 @@
|
|
|
4223
4308
|
padding-right: 2px;
|
|
4224
4309
|
}
|
|
4225
4310
|
|
|
4226
|
-
/* Card
|
|
4311
|
+
/* Card. A wrapper rather than one button: the expanded panel holds its own
|
|
4312
|
+
controls (the tx link, the recover CTA), which cannot nest inside the
|
|
4313
|
+
disclosure button. The trigger is the row; the panel is its sibling. */
|
|
4227
4314
|
.rs-history-card {
|
|
4228
4315
|
width: 100%;
|
|
4229
4316
|
display: flex;
|
|
4230
4317
|
flex-direction: column;
|
|
4231
4318
|
gap: 0;
|
|
4232
|
-
padding: 12px 8px;
|
|
4233
4319
|
background: var(--rs-surface-subtle);
|
|
4234
|
-
border: none;
|
|
4235
4320
|
border-radius: 8px;
|
|
4236
|
-
cursor: pointer;
|
|
4237
4321
|
text-align: left;
|
|
4238
|
-
font-family: inherit;
|
|
4239
4322
|
color: var(--rs-foreground);
|
|
4240
4323
|
transition: background-color 0.15s;
|
|
4241
4324
|
}
|
|
4242
4325
|
|
|
4243
|
-
.rs-history-card
|
|
4326
|
+
.rs-history-card-trigger {
|
|
4327
|
+
width: 100%;
|
|
4328
|
+
padding: 12px 8px;
|
|
4329
|
+
background: transparent;
|
|
4330
|
+
border: none;
|
|
4331
|
+
border-radius: inherit;
|
|
4332
|
+
cursor: pointer;
|
|
4333
|
+
text-align: left;
|
|
4334
|
+
font-family: inherit;
|
|
4335
|
+
color: inherit;
|
|
4336
|
+
}
|
|
4337
|
+
|
|
4338
|
+
.rs-history-card:hover {
|
|
4244
4339
|
background: var(--rs-surface);
|
|
4245
4340
|
}
|
|
4246
4341
|
|
|
4247
|
-
.rs-history-card:focus-visible {
|
|
4342
|
+
.rs-history-card-trigger:focus-visible {
|
|
4248
4343
|
outline: 2px solid var(--rs-border-accent);
|
|
4249
4344
|
outline-offset: 2px;
|
|
4250
4345
|
}
|
|
@@ -4369,13 +4464,34 @@
|
|
|
4369
4464
|
visibility: visible;
|
|
4370
4465
|
}
|
|
4371
4466
|
|
|
4372
|
-
/* Expanded detail block under the row.
|
|
4467
|
+
/* Expanded detail block under the row. Its own padding, since the collapsed
|
|
4468
|
+
card's padding now belongs to the trigger. */
|
|
4373
4469
|
.rs-history-card-details {
|
|
4374
4470
|
display: flex;
|
|
4375
4471
|
flex-direction: column;
|
|
4376
4472
|
gap: 8px;
|
|
4377
4473
|
width: 100%;
|
|
4378
|
-
padding
|
|
4474
|
+
padding: 4px 8px 12px;
|
|
4475
|
+
}
|
|
4476
|
+
|
|
4477
|
+
/* The only control in the panel, and it leaves the list — hence the chevron. */
|
|
4478
|
+
.rs-history-card-recover {
|
|
4479
|
+
justify-content: center;
|
|
4480
|
+
gap: 4px;
|
|
4481
|
+
margin-top: 4px;
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
/* Button wraps its children in a single span, so the button's own gap never
|
|
4485
|
+
reaches the label and the chevron. */
|
|
4486
|
+
.rs-history-card-recover > span {
|
|
4487
|
+
display: flex;
|
|
4488
|
+
align-items: center;
|
|
4489
|
+
gap: 4px;
|
|
4490
|
+
}
|
|
4491
|
+
|
|
4492
|
+
.rs-history-card-recover svg {
|
|
4493
|
+
width: 16px;
|
|
4494
|
+
height: 16px;
|
|
4379
4495
|
}
|
|
4380
4496
|
|
|
4381
4497
|
.rs-history-card-link {
|
|
@@ -4431,6 +4547,11 @@
|
|
|
4431
4547
|
color: #82181a;
|
|
4432
4548
|
}
|
|
4433
4549
|
|
|
4550
|
+
.rs-history-badge--refunded {
|
|
4551
|
+
background: var(--rs-surface);
|
|
4552
|
+
color: var(--rs-foreground);
|
|
4553
|
+
}
|
|
4554
|
+
|
|
4434
4555
|
.rs-history-badge--spam {
|
|
4435
4556
|
background: var(--rs-surface);
|
|
4436
4557
|
color: var(--rs-muted);
|
|
@@ -4458,6 +4579,23 @@
|
|
|
4458
4579
|
color: #fde68a;
|
|
4459
4580
|
}
|
|
4460
4581
|
|
|
4582
|
+
/* Recovery started from a row, and the transaction-hash lookup: a second
|
|
4583
|
+
overlay above the still-mounted panel, so the list keeps its scroll position
|
|
4584
|
+
and the row stays expanded. */
|
|
4585
|
+
.rs-history-recovery,
|
|
4586
|
+
.rs-history-lookup {
|
|
4587
|
+
position: absolute;
|
|
4588
|
+
inset: 0;
|
|
4589
|
+
z-index: 11;
|
|
4590
|
+
display: flex;
|
|
4591
|
+
flex-direction: column;
|
|
4592
|
+
padding: 16px;
|
|
4593
|
+
gap: 16px;
|
|
4594
|
+
background: var(--rs-background);
|
|
4595
|
+
border-radius: inherit;
|
|
4596
|
+
animation: rs-history-slide-in 0.2s cubic-bezier(0.32, 0.72, 0, 1);
|
|
4597
|
+
}
|
|
4598
|
+
|
|
4461
4599
|
/* Load more button at the end of the list. */
|
|
4462
4600
|
.rs-history-load-more {
|
|
4463
4601
|
display: flex;
|
|
@@ -4486,77 +4624,6 @@
|
|
|
4486
4624
|
cursor: not-allowed;
|
|
4487
4625
|
}
|
|
4488
4626
|
|
|
4489
|
-
/* =============================================================================
|
|
4490
|
-
Shell — matches Figma "modal" frame (padded container, no fixed title bar)
|
|
4491
|
-
============================================================================= */
|
|
4492
|
-
|
|
4493
|
-
.rs-shell {
|
|
4494
|
-
display: flex;
|
|
4495
|
-
flex-direction: column;
|
|
4496
|
-
padding: 16px;
|
|
4497
|
-
gap: 16px;
|
|
4498
|
-
}
|
|
4499
|
-
|
|
4500
|
-
.rs-shell-nav {
|
|
4501
|
-
display: flex;
|
|
4502
|
-
align-items: center;
|
|
4503
|
-
justify-content: space-between;
|
|
4504
|
-
min-height: 24px;
|
|
4505
|
-
}
|
|
4506
|
-
|
|
4507
|
-
.rs-shell-nav-actions {
|
|
4508
|
-
display: flex;
|
|
4509
|
-
align-items: center;
|
|
4510
|
-
gap: 12px;
|
|
4511
|
-
}
|
|
4512
|
-
|
|
4513
|
-
.rs-shell-icon-btn {
|
|
4514
|
-
display: inline-flex;
|
|
4515
|
-
align-items: center;
|
|
4516
|
-
justify-content: center;
|
|
4517
|
-
width: 24px;
|
|
4518
|
-
height: 24px;
|
|
4519
|
-
padding: 0;
|
|
4520
|
-
background: transparent;
|
|
4521
|
-
border: none;
|
|
4522
|
-
border-radius: 4px;
|
|
4523
|
-
color: var(--rs-foreground);
|
|
4524
|
-
cursor: pointer;
|
|
4525
|
-
transition: opacity 0.15s;
|
|
4526
|
-
font-family: inherit;
|
|
4527
|
-
}
|
|
4528
|
-
|
|
4529
|
-
.rs-shell-icon-btn:hover:not(:disabled) {
|
|
4530
|
-
opacity: 0.65;
|
|
4531
|
-
}
|
|
4532
|
-
|
|
4533
|
-
.rs-shell-icon-btn:disabled {
|
|
4534
|
-
opacity: 0.3;
|
|
4535
|
-
cursor: not-allowed;
|
|
4536
|
-
}
|
|
4537
|
-
|
|
4538
|
-
.rs-shell-icon-btn:focus-visible {
|
|
4539
|
-
outline: 2px solid var(--rs-border-accent);
|
|
4540
|
-
outline-offset: 2px;
|
|
4541
|
-
}
|
|
4542
|
-
|
|
4543
|
-
.rs-shell-icon-btn svg {
|
|
4544
|
-
width: 24px;
|
|
4545
|
-
height: 24px;
|
|
4546
|
-
}
|
|
4547
|
-
|
|
4548
|
-
.rs-shell-body {
|
|
4549
|
-
display: flex;
|
|
4550
|
-
flex-direction: column;
|
|
4551
|
-
gap: 32px;
|
|
4552
|
-
}
|
|
4553
|
-
|
|
4554
|
-
.rs-shell-section {
|
|
4555
|
-
display: flex;
|
|
4556
|
-
flex-direction: column;
|
|
4557
|
-
gap: 12px;
|
|
4558
|
-
}
|
|
4559
|
-
|
|
4560
4627
|
/* Body header — icon wrapper + title + subtitle */
|
|
4561
4628
|
|
|
4562
4629
|
.rs-body-header {
|
|
@@ -5025,26 +5092,6 @@
|
|
|
5025
5092
|
height: 16px;
|
|
5026
5093
|
}
|
|
5027
5094
|
|
|
5028
|
-
/* Powered-by footer in shell */
|
|
5029
|
-
|
|
5030
|
-
.rs-shell-footer {
|
|
5031
|
-
display: flex;
|
|
5032
|
-
align-items: center;
|
|
5033
|
-
justify-content: center;
|
|
5034
|
-
gap: 4px;
|
|
5035
|
-
font-size: 11px;
|
|
5036
|
-
font-weight: 500;
|
|
5037
|
-
color: var(--rs-muted);
|
|
5038
|
-
}
|
|
5039
|
-
|
|
5040
|
-
/* When the shell is active the dialog content no longer needs a separate
|
|
5041
|
-
border or background — the shell paints everything inside the same padded
|
|
5042
|
-
container, matching Figma. */
|
|
5043
|
-
.rs-modal-content:has(.rs-shell) {
|
|
5044
|
-
border: 1px solid var(--rs-border);
|
|
5045
|
-
background-color: var(--rs-background);
|
|
5046
|
-
}
|
|
5047
|
-
|
|
5048
5095
|
/* =============================================================================
|
|
5049
5096
|
Fiat On-Ramp (Swapped iframe flow)
|
|
5050
5097
|
============================================================================= */
|