kaleido-ui 0.1.80 → 0.1.82
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/css/kaleido-ui.css +1 -1
- package/dist/tokens/index.cjs +2 -1
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +2 -1
- package/dist/web/index.cjs +103 -120
- package/dist/web/index.d.cts +4 -0
- package/dist/web/index.d.ts +4 -0
- package/dist/web/index.js +103 -120
- package/package.json +1 -1
package/dist/web/index.js
CHANGED
|
@@ -513,7 +513,7 @@ var SelectTrigger = React4.forwardRef(({ className, children, compact = false, .
|
|
|
513
513
|
"w-auto gap-1 rounded-2xl bg-white/[0.09] px-2 py-1.5 text-xs leading-none backdrop-blur-md",
|
|
514
514
|
"hover:bg-white/[0.13] data-[state=open]:bg-white/[0.13]"
|
|
515
515
|
] : [
|
|
516
|
-
"w-full gap-3 rounded-xl border bg-white/[0.04] px-4 py-3 text-left text-sm",
|
|
516
|
+
"w-full gap-3 rounded-xl border border-transparent bg-white/[0.04] px-4 py-3 text-left text-sm",
|
|
517
517
|
"hover:border-primary/30 hover:bg-white/[0.06] data-[state=open]:border-primary/30"
|
|
518
518
|
],
|
|
519
519
|
"focus:ring-1 focus:ring-primary/50",
|
|
@@ -542,7 +542,7 @@ var SelectContent = React4.forwardRef(({ className, children, position = "popper
|
|
|
542
542
|
{
|
|
543
543
|
ref,
|
|
544
544
|
className: cn(
|
|
545
|
-
"relative min-w-[8rem] overflow-hidden rounded-2xl
|
|
545
|
+
"relative min-w-[8rem] overflow-hidden rounded-2xl bg-popover/95 p-2 shadow-xl backdrop-blur",
|
|
546
546
|
"z-[var(--z-popover)]",
|
|
547
547
|
position === "popper" && "w-[var(--radix-select-trigger-width)]",
|
|
548
548
|
className
|
|
@@ -1546,7 +1546,7 @@ function AssetIcon({ ticker, logoUri, cdnBaseUrl, size = 40, className }) {
|
|
|
1546
1546
|
"div",
|
|
1547
1547
|
{
|
|
1548
1548
|
className: cn(
|
|
1549
|
-
"rounded-full flex items-center justify-center font-bold text-foreground shadow-inner
|
|
1549
|
+
"rounded-full flex items-center justify-center font-bold text-foreground shadow-inner",
|
|
1550
1550
|
bgColor,
|
|
1551
1551
|
className
|
|
1552
1552
|
),
|
|
@@ -2263,7 +2263,7 @@ function AccountStatusTabs({
|
|
|
2263
2263
|
"div",
|
|
2264
2264
|
{
|
|
2265
2265
|
className: cn(
|
|
2266
|
-
"pointer-events-none absolute bottom-[calc(100%+12px)] right-0 z-20 hidden w-64 rounded-2xl
|
|
2266
|
+
"pointer-events-none absolute bottom-[calc(100%+12px)] right-0 z-20 hidden w-64 rounded-2xl bg-popover/95 p-3.5 opacity-0 shadow-2xl backdrop-blur-xl transition-all duration-150 group-hover:opacity-100 md:block"
|
|
2267
2267
|
),
|
|
2268
2268
|
children: [
|
|
2269
2269
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-start gap-3", children: [
|
|
@@ -2282,7 +2282,7 @@ function AccountStatusTabs({
|
|
|
2282
2282
|
/* @__PURE__ */ jsx28("div", { className: "mt-3 flex flex-wrap gap-1.5", children: account.capabilityBullets.map((capability) => /* @__PURE__ */ jsx28(
|
|
2283
2283
|
"span",
|
|
2284
2284
|
{
|
|
2285
|
-
className: "rounded-full
|
|
2285
|
+
className: "rounded-full bg-white/8 px-2 py-1 text-xxs font-medium text-white/60",
|
|
2286
2286
|
children: capability
|
|
2287
2287
|
},
|
|
2288
2288
|
capability
|
|
@@ -2296,19 +2296,9 @@ function AccountStatusTabs({
|
|
|
2296
2296
|
{
|
|
2297
2297
|
open: selectedAccountId !== null,
|
|
2298
2298
|
onOpenChange: (open) => !open && setSelectedAccountId(null),
|
|
2299
|
-
children: selectedAccount && /* @__PURE__ */ jsx28(DialogContent, { className: "max-w-md
|
|
2299
|
+
children: selectedAccount && /* @__PURE__ */ jsx28(DialogContent, { className: "max-w-md bg-popover p-0 text-white", children: /* @__PURE__ */ jsxs15("div", { className: "p-6", children: [
|
|
2300
2300
|
/* @__PURE__ */ jsx28(DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsxs15("div", { className: "flex items-start gap-3", children: [
|
|
2301
|
-
/* @__PURE__ */ jsx28(
|
|
2302
|
-
"div",
|
|
2303
|
-
{
|
|
2304
|
-
className: cn(
|
|
2305
|
-
"rounded-2xl border p-3",
|
|
2306
|
-
selectedAccount.accentBg,
|
|
2307
|
-
selectedAccount.accentBorder
|
|
2308
|
-
),
|
|
2309
|
-
children: selectedAccount.icon
|
|
2310
|
-
}
|
|
2311
|
-
),
|
|
2301
|
+
/* @__PURE__ */ jsx28("div", { className: cn("rounded-2xl p-3", selectedAccount.accentBg), children: selectedAccount.icon }),
|
|
2312
2302
|
/* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
|
|
2313
2303
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
|
|
2314
2304
|
/* @__PURE__ */ jsx28("span", { className: "text-xxs font-black uppercase tracking-[0.18em] text-muted-foreground", children: selectedAccount.label }),
|
|
@@ -2323,7 +2313,7 @@ function AccountStatusTabs({
|
|
|
2323
2313
|
"div",
|
|
2324
2314
|
{
|
|
2325
2315
|
className: cn(
|
|
2326
|
-
"rounded-2xl
|
|
2316
|
+
"rounded-2xl px-4 py-3",
|
|
2327
2317
|
selectedAccount.networkBannerClassName
|
|
2328
2318
|
),
|
|
2329
2319
|
children: [
|
|
@@ -2332,7 +2322,7 @@ function AccountStatusTabs({
|
|
|
2332
2322
|
]
|
|
2333
2323
|
}
|
|
2334
2324
|
),
|
|
2335
|
-
/* @__PURE__ */ jsxs15("div", { className: "rounded-2xl
|
|
2325
|
+
/* @__PURE__ */ jsxs15("div", { className: "rounded-2xl bg-muted/40 px-4 py-3", children: [
|
|
2336
2326
|
/* @__PURE__ */ jsx28("div", { className: "text-icon-xxs font-black uppercase tracking-[0.18em] text-white/45", children: "Status" }),
|
|
2337
2327
|
/* @__PURE__ */ jsx28("div", { className: "mt-1 text-sm font-semibold text-white/90", children: selectedAccount.state })
|
|
2338
2328
|
] })
|
|
@@ -2343,7 +2333,7 @@ function AccountStatusTabs({
|
|
|
2343
2333
|
/* @__PURE__ */ jsx28("div", { className: "mt-3 flex flex-wrap gap-2", children: selectedAccount.capabilityBullets.map((capability) => /* @__PURE__ */ jsxs15(
|
|
2344
2334
|
"span",
|
|
2345
2335
|
{
|
|
2346
|
-
className: "inline-flex items-center gap-1.5 rounded-full
|
|
2336
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-white/8 px-2.5 py-1 text-xxs font-medium text-white/70",
|
|
2347
2337
|
children: [
|
|
2348
2338
|
/* @__PURE__ */ jsx28("span", { className: "size-1.5 rounded-full bg-primary/70" }),
|
|
2349
2339
|
capability
|
|
@@ -2436,7 +2426,7 @@ function InlineSelector({
|
|
|
2436
2426
|
{
|
|
2437
2427
|
ref: panelRef,
|
|
2438
2428
|
className: cn(
|
|
2439
|
-
"absolute left-0 top-full z-[var(--z-popover)] mt-2 w-full rounded-2xl
|
|
2429
|
+
"absolute left-0 top-full z-[var(--z-popover)] mt-2 w-full rounded-2xl bg-popover/95 p-1.5 shadow-2xl backdrop-blur-xl duration-200 animate-in fade-in slide-in-from-top-1",
|
|
2440
2430
|
panelClassName
|
|
2441
2431
|
),
|
|
2442
2432
|
children: [
|
|
@@ -2588,7 +2578,7 @@ function OptionSelector({
|
|
|
2588
2578
|
options,
|
|
2589
2579
|
onChange,
|
|
2590
2580
|
className: cn(compact ? "w-auto shrink-0" : "w-full", className),
|
|
2591
|
-
panelClassName: "right-0 left-auto min-w-[11rem] rounded-xl
|
|
2581
|
+
panelClassName: "right-0 left-auto min-w-[11rem] rounded-xl bg-card",
|
|
2592
2582
|
optionClassName: "px-3.5 py-2.5 hover:bg-white/6 data-[selected]:bg-transparent data-[selected]:shadow-none",
|
|
2593
2583
|
onOpenPanelHeightChange,
|
|
2594
2584
|
renderTrigger: ({ open }) => /* @__PURE__ */ jsxs18(
|
|
@@ -2646,7 +2636,7 @@ function SettingsTile({ icon, title, description, value, onClick }) {
|
|
|
2646
2636
|
{
|
|
2647
2637
|
type: "button",
|
|
2648
2638
|
onClick,
|
|
2649
|
-
className: "w-full rounded-2xl bg-card p-5 text-left transition-all duration-200 hover:bg-accent active:scale-[0.98]",
|
|
2639
|
+
className: "w-full rounded-2xl bg-card/70 p-5 text-left transition-all duration-200 hover:bg-accent active:scale-[0.98]",
|
|
2650
2640
|
children: /* @__PURE__ */ jsxs19("div", { className: "flex items-center justify-between gap-3", children: [
|
|
2651
2641
|
/* @__PURE__ */ jsxs19("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
2652
2642
|
/* @__PURE__ */ jsx32("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-muted", children: icon }),
|
|
@@ -2971,10 +2961,10 @@ function ExpandIcon({ expanded }) {
|
|
|
2971
2961
|
return /* @__PURE__ */ jsx33(Icon, { name: expanded ? "expand_less" : "expand_more", size: "md" });
|
|
2972
2962
|
}
|
|
2973
2963
|
var ACCOUNT_ACCENT_BG = {
|
|
2974
|
-
RGB: "bg-gradient-to-br from-primary/[0.06] via-card to-primary/[0.10]",
|
|
2975
|
-
SPARK: "bg-gradient-to-br from-info/[0.06] via-card to-info/[0.10]",
|
|
2976
|
-
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]",
|
|
2977
|
-
NOSTR: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]"
|
|
2964
|
+
RGB: "bg-gradient-to-br from-primary/[0.06] via-card/70 to-primary/[0.10]",
|
|
2965
|
+
SPARK: "bg-gradient-to-br from-info/[0.06] via-card/70 to-info/[0.10]",
|
|
2966
|
+
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card/70 to-network-arkade/[0.10]",
|
|
2967
|
+
NOSTR: "bg-gradient-to-br from-network-arkade/[0.06] via-card/70 to-network-arkade/[0.10]"
|
|
2978
2968
|
};
|
|
2979
2969
|
function AccountSettingsRow({
|
|
2980
2970
|
accountId,
|
|
@@ -3113,7 +3103,7 @@ function AssetSkeleton({ index }) {
|
|
|
3113
3103
|
}
|
|
3114
3104
|
function EmptyState({ state }) {
|
|
3115
3105
|
return /* @__PURE__ */ jsxs22("div", { className: "py-8 text-center", children: [
|
|
3116
|
-
state.icon && /* @__PURE__ */ jsx35("div", { className: "mx-auto mb-3 flex size-12 items-center justify-center rounded-card
|
|
3106
|
+
state.icon && /* @__PURE__ */ jsx35("div", { className: "mx-auto mb-3 flex size-12 items-center justify-center rounded-card bg-card", children: state.icon }),
|
|
3117
3107
|
state.title && /* @__PURE__ */ jsx35("p", { className: "mb-1 text-sm font-medium text-muted-foreground", children: state.title }),
|
|
3118
3108
|
state.description && /* @__PURE__ */ jsx35("p", { className: "text-xs text-muted-foreground/70", children: state.description })
|
|
3119
3109
|
] });
|
|
@@ -3228,11 +3218,11 @@ function BalanceBreakdown({
|
|
|
3228
3218
|
] }) : /* @__PURE__ */ jsxs23(Fragment5, { children: [
|
|
3229
3219
|
/* @__PURE__ */ jsxs23("div", { className: "flex min-w-0 max-w-full flex-wrap items-baseline gap-x-1.5 gap-y-1", children: [
|
|
3230
3220
|
/* @__PURE__ */ jsx36("span", { className: "text-display font-black leading-[1.1] tracking-tighter text-white drop-shadow-sm transition-all duration-300 group-active:scale-95 group-active:text-primary", children: balanceVisible ? numberOnly(format(totalBTC)) : "\u2022\u2022\u2022\u2022\u2022\u2022" }),
|
|
3231
|
-
unit !== "fiat" && /* @__PURE__ */ jsx36("span", { className: "inline-block rounded-md
|
|
3221
|
+
unit !== "fiat" && /* @__PURE__ */ jsx36("span", { className: "inline-block rounded-md bg-white/8 px-2 py-0.5 text-tiny font-bold uppercase tracking-widest text-white/45", children: label }),
|
|
3232
3222
|
isPartial && /* @__PURE__ */ jsx36(
|
|
3233
3223
|
"span",
|
|
3234
3224
|
{
|
|
3235
|
-
className: "inline-flex size-4 items-center justify-center rounded-full
|
|
3225
|
+
className: "inline-flex size-4 items-center justify-center rounded-full bg-white/[0.06]",
|
|
3236
3226
|
title: "Loading remaining balances",
|
|
3237
3227
|
children: /* @__PURE__ */ jsx36("span", { className: "size-2 animate-spin rounded-full border border-primary/30 border-t-primary" })
|
|
3238
3228
|
}
|
|
@@ -3284,7 +3274,7 @@ function BalanceBreakdown({
|
|
|
3284
3274
|
expanded && /* @__PURE__ */ jsxs23(
|
|
3285
3275
|
"div",
|
|
3286
3276
|
{
|
|
3287
|
-
className: `space-y-1
|
|
3277
|
+
className: `space-y-1 duration-300 animate-in fade-in slide-in-from-top-2 ${compact ? "mt-3 pt-3" : "mt-4 pt-4"}`,
|
|
3288
3278
|
children: [
|
|
3289
3279
|
/* @__PURE__ */ jsx36("p", { className: "mb-3 text-xxs font-bold uppercase tracking-widest text-white/30", children: "Bitcoin" }),
|
|
3290
3280
|
/* @__PURE__ */ jsx36(
|
|
@@ -3369,7 +3359,7 @@ function BalanceBreakdown({
|
|
|
3369
3359
|
}
|
|
3370
3360
|
),
|
|
3371
3361
|
rgbAssets.length > 0 && /* @__PURE__ */ jsx36(RgbAssetsBreakdown, { assets: rgbAssets, balanceVisible }),
|
|
3372
|
-
tokenValueSats !== void 0 && tokenValueSats > 0 && /* @__PURE__ */ jsxs23("div", { className: "mt-
|
|
3362
|
+
tokenValueSats !== void 0 && tokenValueSats > 0 && /* @__PURE__ */ jsxs23("div", { className: "mt-4 pt-1", children: [
|
|
3373
3363
|
/* @__PURE__ */ jsx36("p", { className: "mb-3 text-xxs font-bold uppercase tracking-widest text-white/30", children: "Token Holdings" }),
|
|
3374
3364
|
/* @__PURE__ */ jsxs23("div", { className: "flex items-center justify-between rounded-xl bg-white/[0.03] px-3 py-2", children: [
|
|
3375
3365
|
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-3", children: [
|
|
@@ -3386,7 +3376,7 @@ function BalanceBreakdown({
|
|
|
3386
3376
|
] })
|
|
3387
3377
|
] })
|
|
3388
3378
|
] }),
|
|
3389
|
-
accounts.RGB?.connected && nodeInfo?.pubkey && /* @__PURE__ */ jsxs23("div", { className: "mt-
|
|
3379
|
+
accounts.RGB?.connected && nodeInfo?.pubkey && /* @__PURE__ */ jsxs23("div", { className: "mt-4 pt-1", children: [
|
|
3390
3380
|
/* @__PURE__ */ jsx36("p", { className: "mb-3 text-xxs font-bold uppercase tracking-widest text-white/30", children: "RLN Details" }),
|
|
3391
3381
|
/* @__PURE__ */ jsxs23("div", { className: "grid grid-cols-3 gap-2", children: [
|
|
3392
3382
|
/* @__PURE__ */ jsx36(
|
|
@@ -3406,7 +3396,7 @@ function BalanceBreakdown({
|
|
|
3406
3396
|
/* @__PURE__ */ jsxs23(
|
|
3407
3397
|
"div",
|
|
3408
3398
|
{
|
|
3409
|
-
className: `relative z-10 flex gap-2.5
|
|
3399
|
+
className: `relative z-10 flex gap-2.5 ${compact ? "mt-2 pt-2" : "mt-3 pt-3"}`,
|
|
3410
3400
|
children: [
|
|
3411
3401
|
/* @__PURE__ */ jsx36(
|
|
3412
3402
|
ActionTile,
|
|
@@ -3446,7 +3436,7 @@ function RgbAssetsBreakdown({
|
|
|
3446
3436
|
assets,
|
|
3447
3437
|
balanceVisible
|
|
3448
3438
|
}) {
|
|
3449
|
-
return /* @__PURE__ */ jsxs23("div", { className: "mt-
|
|
3439
|
+
return /* @__PURE__ */ jsxs23("div", { className: "mt-4 pt-1", children: [
|
|
3450
3440
|
/* @__PURE__ */ jsx36("p", { className: "mb-3 text-xxs font-bold uppercase tracking-widest text-white/30", children: "RGB Assets" }),
|
|
3451
3441
|
/* @__PURE__ */ jsx36("div", { className: "space-y-2", children: assets.map((asset) => {
|
|
3452
3442
|
const bal = asset.balance ?? {};
|
|
@@ -3457,7 +3447,7 @@ function RgbAssetsBreakdown({
|
|
|
3457
3447
|
const formatRgb = (value) => (value / Math.pow(10, precision)).toFixed(precision);
|
|
3458
3448
|
return /* @__PURE__ */ jsxs23("div", { className: "flex items-start justify-between py-1", children: [
|
|
3459
3449
|
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2.5", children: [
|
|
3460
|
-
/* @__PURE__ */ jsx36("div", { className: "flex size-5 items-center justify-center overflow-hidden rounded
|
|
3450
|
+
/* @__PURE__ */ jsx36("div", { className: "flex size-5 items-center justify-center overflow-hidden rounded bg-network-rgb/10", children: /* @__PURE__ */ jsx36("img", { src: "/icons/rgb/rgb-logo.svg", alt: "RGB", className: "size-3.5 object-contain" }) }),
|
|
3461
3451
|
/* @__PURE__ */ jsxs23("div", { className: "flex flex-col", children: [
|
|
3462
3452
|
/* @__PURE__ */ jsx36("span", { className: "text-xs font-semibold text-white/90", children: asset.ticker }),
|
|
3463
3453
|
/* @__PURE__ */ jsx36("span", { className: "max-w-[90px] truncate text-xxs text-white/40", children: asset.name })
|
|
@@ -3489,7 +3479,7 @@ function RgbAssetsBreakdown({
|
|
|
3489
3479
|
] });
|
|
3490
3480
|
}
|
|
3491
3481
|
function StatusChip({ label, value }) {
|
|
3492
|
-
return /* @__PURE__ */ jsxs23("div", { className: "rounded-xl
|
|
3482
|
+
return /* @__PURE__ */ jsxs23("div", { className: "rounded-xl bg-muted/40 px-3 py-2", children: [
|
|
3493
3483
|
/* @__PURE__ */ jsx36("div", { className: "text-xxs font-bold uppercase tracking-widest text-white/30", children: label }),
|
|
3494
3484
|
/* @__PURE__ */ jsx36("div", { className: "mt-1 truncate text-xs font-semibold text-white/80", children: value })
|
|
3495
3485
|
] });
|
|
@@ -3529,7 +3519,7 @@ function NetworkRow({
|
|
|
3529
3519
|
] }),
|
|
3530
3520
|
/* @__PURE__ */ jsx36("div", { className: "flex flex-col items-end", children: isPending ? /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-1.5", children: [
|
|
3531
3521
|
/* @__PURE__ */ jsx36("div", { className: "h-3.5 w-12 animate-pulse rounded bg-white/10" }),
|
|
3532
|
-
/* @__PURE__ */ jsx36("span", { className: "inline-flex size-3 items-center justify-center rounded-full
|
|
3522
|
+
/* @__PURE__ */ jsx36("span", { className: "inline-flex size-3 items-center justify-center rounded-full bg-white/[0.06]", children: /* @__PURE__ */ jsx36("span", { className: "size-1.5 animate-spin rounded-full border border-primary/30 border-t-primary" }) })
|
|
3533
3523
|
] }) : /* @__PURE__ */ jsxs23(Fragment5, { children: [
|
|
3534
3524
|
/* @__PURE__ */ jsx36("span", { className: "tabular-nums text-xs font-bold text-white", children: visible ? format(amount) : "\u2022\u2022\u2022\u2022\u2022\u2022" }),
|
|
3535
3525
|
fiat && visible && !isEmpty && /* @__PURE__ */ jsx36("span", { className: "mt-0.5 font-mono text-xxs text-white/35", children: fiat })
|
|
@@ -3669,7 +3659,7 @@ function AssetSelector({
|
|
|
3669
3659
|
children: /* @__PURE__ */ jsxs24(
|
|
3670
3660
|
"div",
|
|
3671
3661
|
{
|
|
3672
|
-
className: "flex max-h-[85vh] w-full max-w-[26rem] flex-col overflow-hidden rounded-t-3xl bg-popover/95 shadow-popover backdrop-blur-2xl duration-300 animate-in slide-in-from-bottom-8 sm:max-h-[80vh] sm:rounded-3xl sm:
|
|
3662
|
+
className: "flex max-h-[85vh] w-full max-w-[26rem] flex-col overflow-hidden rounded-t-3xl bg-popover/95 shadow-popover backdrop-blur-2xl duration-300 animate-in slide-in-from-bottom-8 sm:max-h-[80vh] sm:rounded-3xl sm:slide-in-from-bottom-0 sm:zoom-in-95",
|
|
3673
3663
|
onClick: (event) => event.stopPropagation(),
|
|
3674
3664
|
children: [
|
|
3675
3665
|
/* @__PURE__ */ jsx37("div", { className: "flex-shrink-0 bg-white/[0.03] px-4 py-3.5", children: /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between gap-3", children: [
|
|
@@ -3768,7 +3758,7 @@ function AssetSelector({
|
|
|
3768
3758
|
},
|
|
3769
3759
|
className: cn(
|
|
3770
3760
|
"group flex w-full items-center gap-3 rounded-2xl border px-3 py-3 text-sm transition-all duration-200",
|
|
3771
|
-
optionSelected ? "border-primary/30 bg-primary/[0.12]" : optionDisabled ? "cursor-not-allowed border-
|
|
3761
|
+
optionSelected ? "border-primary/30 bg-primary/[0.12]" : optionDisabled ? "cursor-not-allowed border-transparent bg-white/[0.015] opacity-45" : "border-transparent bg-transparent hover:bg-accent"
|
|
3772
3762
|
),
|
|
3773
3763
|
children: renderAssetOption(option, optionSelected, optionDisabled)
|
|
3774
3764
|
},
|
|
@@ -3796,7 +3786,7 @@ function AssetSelector({
|
|
|
3796
3786
|
},
|
|
3797
3787
|
disabled,
|
|
3798
3788
|
className: "space-y-1.5",
|
|
3799
|
-
panelClassName: "
|
|
3789
|
+
panelClassName: "bg-popover/95 p-0 shadow-popover",
|
|
3800
3790
|
optionClassName: "mx-1.5 px-3 py-3",
|
|
3801
3791
|
onOpenPanelHeightChange,
|
|
3802
3792
|
renderTrigger: ({ open: open2 }) => /* @__PURE__ */ jsxs24("span", { className: "block", children: [
|
|
@@ -4352,7 +4342,7 @@ function ActivityFilterBar({
|
|
|
4352
4342
|
onValueChange: (value) => onStatusFilterChange(value),
|
|
4353
4343
|
children: [
|
|
4354
4344
|
/* @__PURE__ */ jsx41(SelectTrigger, { className: "h-full rounded-2xl border-0 bg-surface-card px-3 py-0 text-xs font-bold text-white shadow-inner backdrop-blur-xl hover:bg-surface-elevated focus:ring-0 data-[state=open]:bg-surface-elevated", children: /* @__PURE__ */ jsx41(SelectValue, {}) }),
|
|
4355
|
-
/* @__PURE__ */ jsx41(SelectContent, { className: "
|
|
4345
|
+
/* @__PURE__ */ jsx41(SelectContent, { className: "bg-popover/95 p-1.5 shadow-popover", children: statusOptions.map((option) => /* @__PURE__ */ jsx41(SelectItem, { value: option.value, className: "py-2 text-xs", children: option.label }, option.value)) })
|
|
4356
4346
|
]
|
|
4357
4347
|
}
|
|
4358
4348
|
) }),
|
|
@@ -4656,7 +4646,7 @@ function WithdrawAmountInput({
|
|
|
4656
4646
|
)
|
|
4657
4647
|
] }),
|
|
4658
4648
|
/* @__PURE__ */ jsxs33("div", { className: cn(
|
|
4659
|
-
"flex items-center justify-between
|
|
4649
|
+
"flex items-center justify-between bg-muted/40 px-4 py-2"
|
|
4660
4650
|
), children: [
|
|
4661
4651
|
/* @__PURE__ */ jsx46("span", { className: "text-xxs text-white/40", children: "Available" }),
|
|
4662
4652
|
/* @__PURE__ */ jsxs33("span", { className: cn(
|
|
@@ -4710,7 +4700,7 @@ function WithdrawAmountInput({
|
|
|
4710
4700
|
setFeeRateMode?.(mode);
|
|
4711
4701
|
if (mode !== "custom") setFeeRate(mode);
|
|
4712
4702
|
},
|
|
4713
|
-
className: `group relative overflow-hidden rounded-xl border px-2 py-3 shadow-sm transition-all active:scale-[0.98] ${selected ? "border-primary/40 bg-primary/10" : "border-
|
|
4703
|
+
className: `group relative overflow-hidden rounded-xl border px-2 py-3 shadow-sm transition-all active:scale-[0.98] ${selected ? "border-primary/40 bg-primary/10" : "border-transparent bg-card/70 hover:border-primary/40"}`,
|
|
4714
4704
|
children: [
|
|
4715
4705
|
/* @__PURE__ */ jsx46(
|
|
4716
4706
|
"span",
|
|
@@ -4832,7 +4822,7 @@ function WithdrawInvoiceInfo({
|
|
|
4832
4822
|
maxLightningCapacity
|
|
4833
4823
|
}) {
|
|
4834
4824
|
if (decodedLnInvoice && addressType === "lightning") {
|
|
4835
|
-
return /* @__PURE__ */ jsxs34("div", { className: "space-y-3 rounded-2xl
|
|
4825
|
+
return /* @__PURE__ */ jsxs34("div", { className: "space-y-3 rounded-2xl bg-card p-5 shadow-inner", children: [
|
|
4836
4826
|
/* @__PURE__ */ jsx47("p", { className: "text-xs font-medium uppercase tracking-wide text-primary", children: "Lightning Invoice" }),
|
|
4837
4827
|
decodedLnInvoice.amount != null && decodedLnInvoice.amount > 0 && /* @__PURE__ */ jsxs34("div", { className: "flex justify-between text-sm", children: [
|
|
4838
4828
|
/* @__PURE__ */ jsx47("span", { className: "text-muted-foreground", children: "Amount" }),
|
|
@@ -4864,7 +4854,7 @@ function WithdrawInvoiceInfo({
|
|
|
4864
4854
|
] });
|
|
4865
4855
|
}
|
|
4866
4856
|
if (decodedRgbInvoice && addressType === "rgb") {
|
|
4867
|
-
return /* @__PURE__ */ jsxs34("div", { className: "space-y-3 rounded-2xl
|
|
4857
|
+
return /* @__PURE__ */ jsxs34("div", { className: "space-y-3 rounded-2xl bg-card p-5 shadow-inner", children: [
|
|
4868
4858
|
/* @__PURE__ */ jsx47("p", { className: "text-xs font-medium uppercase tracking-wide text-primary", children: "RGB Invoice" }),
|
|
4869
4859
|
decodedRgbInvoice.asset_id && /* @__PURE__ */ jsxs34("div", { className: "flex justify-between text-sm", children: [
|
|
4870
4860
|
/* @__PURE__ */ jsx47("span", { className: "text-muted-foreground", children: "Asset" }),
|
|
@@ -4892,7 +4882,7 @@ function WithdrawInvoiceInfo({
|
|
|
4892
4882
|
] });
|
|
4893
4883
|
}
|
|
4894
4884
|
if (addressType === "bitcoin" || addressType === "arkade") {
|
|
4895
|
-
return /* @__PURE__ */ jsx47("div", { className: "rounded-2xl
|
|
4885
|
+
return /* @__PURE__ */ jsx47("div", { className: "rounded-2xl bg-card p-5 shadow-inner", children: /* @__PURE__ */ jsxs34("div", { className: "flex justify-between text-sm", children: [
|
|
4896
4886
|
/* @__PURE__ */ jsx47("span", { className: "text-muted-foreground", children: addressType === "arkade" ? "Available Arkade Balance" : "Available Balance" }),
|
|
4897
4887
|
/* @__PURE__ */ jsxs34("span", { className: "font-bold text-white", children: [
|
|
4898
4888
|
formatRawAmount(assetBalance, getAssetPrecisionForId(allAssets, selectedAssetId)),
|
|
@@ -5018,31 +5008,31 @@ function WithdrawConfirmation({
|
|
|
5018
5008
|
/* @__PURE__ */ jsx49("h1", { className: "mb-2 text-4xl font-bold", children: displayAmount.toLocaleString() }),
|
|
5019
5009
|
/* @__PURE__ */ jsx49("p", { className: "text-base text-muted-foreground", children: selectedAssetId === "BTC" ? "sats" : selectedAsset?.ticker ?? "units" })
|
|
5020
5010
|
] }),
|
|
5021
|
-
/* @__PURE__ */ jsxs36("div", { className: "overflow-hidden rounded-2xl
|
|
5022
|
-
/* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between
|
|
5011
|
+
/* @__PURE__ */ jsxs36("div", { className: "overflow-hidden rounded-2xl bg-card/90 py-1 shadow-inner backdrop-blur-2xl", children: [
|
|
5012
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
5023
5013
|
/* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "To" }),
|
|
5024
5014
|
/* @__PURE__ */ jsx49("span", { className: "max-w-[200px] truncate font-mono text-sm text-white", title: destination, children: destination.length > 24 ? `${destination.substring(0, 12)}...${destination.slice(-12)}` : destination })
|
|
5025
5015
|
] }),
|
|
5026
|
-
/* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between
|
|
5016
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
5027
5017
|
/* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "Network" }),
|
|
5028
5018
|
/* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-1.5", children: [
|
|
5029
5019
|
/* @__PURE__ */ jsx49("div", { className: "size-1.5 rounded-full bg-primary" }),
|
|
5030
5020
|
/* @__PURE__ */ jsx49("span", { className: "text-sm font-bold text-white", children: networkLabel })
|
|
5031
5021
|
] })
|
|
5032
5022
|
] }),
|
|
5033
|
-
routeAccount && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between
|
|
5023
|
+
routeAccount && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
5034
5024
|
/* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "From Account" }),
|
|
5035
5025
|
/* @__PURE__ */ jsx49("span", { className: "text-sm font-bold text-white", children: routeAccount })
|
|
5036
5026
|
] }),
|
|
5037
|
-
routeMethod && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between
|
|
5027
|
+
routeMethod && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
5038
5028
|
/* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "Route Method" }),
|
|
5039
5029
|
/* @__PURE__ */ jsx49("span", { className: "text-sm font-bold text-white", children: routeMethod })
|
|
5040
5030
|
] }),
|
|
5041
|
-
/* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between
|
|
5031
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
5042
5032
|
/* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "Asset" }),
|
|
5043
5033
|
/* @__PURE__ */ jsx49("span", { className: "text-sm font-bold text-white", children: selectedAsset?.ticker ?? selectedAssetId })
|
|
5044
5034
|
] }),
|
|
5045
|
-
estimatedFee > 0 && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between
|
|
5035
|
+
estimatedFee > 0 && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
5046
5036
|
/* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "Network Fee" }),
|
|
5047
5037
|
/* @__PURE__ */ jsxs36("div", { className: "flex flex-col items-end", children: [
|
|
5048
5038
|
/* @__PURE__ */ jsxs36("span", { className: "text-sm text-white", children: [
|
|
@@ -5053,7 +5043,7 @@ function WithdrawConfirmation({
|
|
|
5053
5043
|
/* @__PURE__ */ jsx49("span", { className: "mt-0.5 text-xxs font-bold capitalize tracking-wider text-primary", children: feeRate })
|
|
5054
5044
|
] })
|
|
5055
5045
|
] }),
|
|
5056
|
-
addressType === "rgb" && decodedRgbInvoice?.recipient_type === "Witness" && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between
|
|
5046
|
+
addressType === "rgb" && decodedRgbInvoice?.recipient_type === "Witness" && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
5057
5047
|
/* @__PURE__ */ jsx49("span", { className: "text-sm text-muted-foreground", children: "Witness Amount" }),
|
|
5058
5048
|
/* @__PURE__ */ jsxs36("span", { className: "text-sm text-white", children: [
|
|
5059
5049
|
witnessAmountSat,
|
|
@@ -5061,7 +5051,7 @@ function WithdrawConfirmation({
|
|
|
5061
5051
|
] })
|
|
5062
5052
|
] })
|
|
5063
5053
|
] }),
|
|
5064
|
-
selectedAssetId === "BTC" && estimatedFee > 0 && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between rounded-2xl
|
|
5054
|
+
selectedAssetId === "BTC" && estimatedFee > 0 && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between rounded-2xl bg-primary/10 p-5 px-2 shadow-inner", children: [
|
|
5065
5055
|
/* @__PURE__ */ jsx49("span", { className: "text-sm font-bold uppercase tracking-wider text-primary", children: "Total to deduct" }),
|
|
5066
5056
|
/* @__PURE__ */ jsxs36("span", { className: "text-xl font-bold text-white", children: [
|
|
5067
5057
|
(Math.round(parseFloat(amount) || 0) + estimatedFee).toLocaleString(),
|
|
@@ -5069,7 +5059,7 @@ function WithdrawConfirmation({
|
|
|
5069
5059
|
/* @__PURE__ */ jsx49("span", { className: "text-lg text-primary/70", children: "sats" })
|
|
5070
5060
|
] })
|
|
5071
5061
|
] }),
|
|
5072
|
-
isPollingStatus && /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-3 rounded-xl
|
|
5062
|
+
isPollingStatus && /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-3 rounded-xl bg-primary/10 p-4", children: [
|
|
5073
5063
|
/* @__PURE__ */ jsx49("span", { className: "material-symbols-outlined animate-spin text-primary", children: "progress_activity" }),
|
|
5074
5064
|
/* @__PURE__ */ jsxs36("div", { children: [
|
|
5075
5065
|
/* @__PURE__ */ jsx49("p", { className: "text-sm font-medium text-white", children: "Processing payment..." }),
|
|
@@ -5117,7 +5107,7 @@ function WithdrawSuccess({
|
|
|
5117
5107
|
/* @__PURE__ */ jsx50("h1", { className: "mb-2 text-3xl font-bold", children: "Payment Sent!" }),
|
|
5118
5108
|
/* @__PURE__ */ jsx50("p", { className: "max-w-xs text-center text-muted-foreground", children: "Your transaction has been successfully processed." }),
|
|
5119
5109
|
/* @__PURE__ */ jsxs37("div", { className: "mt-12 w-full max-w-xs space-y-4", children: [
|
|
5120
|
-
/* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between rounded-2xl
|
|
5110
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between rounded-2xl bg-card p-5 shadow-inner", children: [
|
|
5121
5111
|
/* @__PURE__ */ jsx50("span", { className: "text-sm text-muted-foreground", children: "Amount" }),
|
|
5122
5112
|
/* @__PURE__ */ jsxs37("span", { className: "text-xl font-bold", children: [
|
|
5123
5113
|
displayAmount.toLocaleString(),
|
|
@@ -5125,11 +5115,11 @@ function WithdrawSuccess({
|
|
|
5125
5115
|
selectedAssetId === "BTC" ? /* @__PURE__ */ jsx50("span", { className: "text-sm text-primary/70", children: "sats" }) : selectedAsset?.ticker ?? "units"
|
|
5126
5116
|
] })
|
|
5127
5117
|
] }),
|
|
5128
|
-
(txResult?.paymentHash || txResult?.payment_hash) && /* @__PURE__ */ jsxs37("div", { className: "rounded-2xl
|
|
5118
|
+
(txResult?.paymentHash || txResult?.payment_hash) && /* @__PURE__ */ jsxs37("div", { className: "rounded-2xl bg-card p-5 shadow-inner", children: [
|
|
5129
5119
|
/* @__PURE__ */ jsx50("p", { className: "mb-2 text-xs font-bold uppercase tracking-wider text-muted-foreground", children: "Payment Hash" }),
|
|
5130
5120
|
/* @__PURE__ */ jsx50("p", { className: "break-all font-mono text-xs leading-relaxed text-muted-foreground", children: txResult.paymentHash ?? txResult.payment_hash })
|
|
5131
5121
|
] }),
|
|
5132
|
-
txResult?.txid && /* @__PURE__ */ jsxs37("div", { className: "rounded-2xl
|
|
5122
|
+
txResult?.txid && /* @__PURE__ */ jsxs37("div", { className: "rounded-2xl bg-card p-5 shadow-inner", children: [
|
|
5133
5123
|
/* @__PURE__ */ jsx50("p", { className: "mb-2 text-xs font-bold uppercase tracking-wider text-muted-foreground", children: "Transaction ID" }),
|
|
5134
5124
|
/* @__PURE__ */ jsx50("p", { className: "break-all font-mono text-xs leading-relaxed text-muted-foreground", children: txResult.txid })
|
|
5135
5125
|
] })
|
|
@@ -5143,7 +5133,7 @@ function WithdrawSuccess({
|
|
|
5143
5133
|
handleReset();
|
|
5144
5134
|
onDone();
|
|
5145
5135
|
},
|
|
5146
|
-
className: "w-full rounded-2xl
|
|
5136
|
+
className: "w-full rounded-2xl bg-card py-4 text-lg font-bold text-white transition-all hover:bg-accent active:scale-[0.98]",
|
|
5147
5137
|
children: "Back to Dashboard"
|
|
5148
5138
|
}
|
|
5149
5139
|
) })
|
|
@@ -5287,7 +5277,7 @@ function SettingItem({
|
|
|
5287
5277
|
"div",
|
|
5288
5278
|
{
|
|
5289
5279
|
className: cn(
|
|
5290
|
-
"p-5 rounded-2xl bg-card transition-all duration-200 group",
|
|
5280
|
+
"p-5 rounded-2xl bg-card/70 transition-all duration-200 group",
|
|
5291
5281
|
isClickable && "cursor-pointer active:scale-[0.98]",
|
|
5292
5282
|
className
|
|
5293
5283
|
),
|
|
@@ -5391,32 +5381,32 @@ function AlertBanner({ variant = "info", icon, children, className }) {
|
|
|
5391
5381
|
import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5392
5382
|
var toneClass = {
|
|
5393
5383
|
default: {
|
|
5394
|
-
panel: "
|
|
5384
|
+
panel: "bg-card/70",
|
|
5395
5385
|
icon: "text-muted-foreground",
|
|
5396
5386
|
title: "text-foreground"
|
|
5397
5387
|
},
|
|
5398
5388
|
primary: {
|
|
5399
|
-
panel: "
|
|
5389
|
+
panel: "bg-primary/10",
|
|
5400
5390
|
icon: "text-primary",
|
|
5401
5391
|
title: "text-primary"
|
|
5402
5392
|
},
|
|
5403
5393
|
info: {
|
|
5404
|
-
panel: "
|
|
5394
|
+
panel: "bg-info/10",
|
|
5405
5395
|
icon: "text-info",
|
|
5406
5396
|
title: "text-info"
|
|
5407
5397
|
},
|
|
5408
5398
|
warning: {
|
|
5409
|
-
panel: "
|
|
5399
|
+
panel: "bg-warning/10",
|
|
5410
5400
|
icon: "text-warning",
|
|
5411
5401
|
title: "text-warning"
|
|
5412
5402
|
},
|
|
5413
5403
|
danger: {
|
|
5414
|
-
panel: "
|
|
5404
|
+
panel: "bg-danger/10",
|
|
5415
5405
|
icon: "text-danger",
|
|
5416
5406
|
title: "text-danger"
|
|
5417
5407
|
},
|
|
5418
5408
|
success: {
|
|
5419
|
-
panel: "
|
|
5409
|
+
panel: "bg-success/10",
|
|
5420
5410
|
icon: "text-success",
|
|
5421
5411
|
title: "text-success"
|
|
5422
5412
|
}
|
|
@@ -5430,7 +5420,7 @@ function InfoPanel({
|
|
|
5430
5420
|
}) {
|
|
5431
5421
|
const styles = toneClass[tone];
|
|
5432
5422
|
const renderedIcon = typeof icon === "string" ? /* @__PURE__ */ jsx58(Icon, { name: icon, className: cn("mt-0.5 shrink-0 text-icon-xl", styles.icon) }) : icon;
|
|
5433
|
-
return /* @__PURE__ */ jsx58("div", { className: cn("rounded-xl
|
|
5423
|
+
return /* @__PURE__ */ jsx58("div", { className: cn("rounded-xl p-4", styles.panel, className), children: /* @__PURE__ */ jsxs44("div", { className: "flex items-start gap-3", children: [
|
|
5434
5424
|
renderedIcon,
|
|
5435
5425
|
/* @__PURE__ */ jsxs44("div", { className: "min-w-0 flex-1", children: [
|
|
5436
5426
|
title && /* @__PURE__ */ jsx58("p", { className: cn("text-sm font-bold", styles.title), children: title }),
|
|
@@ -5519,7 +5509,7 @@ function RecoveryPhraseCard({
|
|
|
5519
5509
|
/* @__PURE__ */ jsx60("span", { className: "font-mono text-sm text-white", children: word })
|
|
5520
5510
|
] }, `${index}-${word}`))
|
|
5521
5511
|
}
|
|
5522
|
-
) : /* @__PURE__ */ jsx60("div", { className: "rounded-xl
|
|
5512
|
+
) : /* @__PURE__ */ jsx60("div", { className: "rounded-xl bg-warning/10 px-4 py-3 text-sm text-warning", children: emptyMessage }),
|
|
5523
5513
|
hasWords && !revealed && onRevealChange && /* @__PURE__ */ jsx60("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs46(
|
|
5524
5514
|
Button,
|
|
5525
5515
|
{
|
|
@@ -5603,7 +5593,7 @@ function BottomSheet({
|
|
|
5603
5593
|
"div",
|
|
5604
5594
|
{
|
|
5605
5595
|
className: cn(
|
|
5606
|
-
"fixed inset-0 z-50 flex items-end justify-center bg-
|
|
5596
|
+
"fixed inset-0 z-50 flex items-end justify-center bg-background/80 backdrop-blur-lg",
|
|
5607
5597
|
className
|
|
5608
5598
|
),
|
|
5609
5599
|
onClick: handleBackdropClick,
|
|
@@ -5611,7 +5601,7 @@ function BottomSheet({
|
|
|
5611
5601
|
"div",
|
|
5612
5602
|
{
|
|
5613
5603
|
className: cn(
|
|
5614
|
-
"max-h-[90vh] w-full overflow-y-auto rounded-t-2xl
|
|
5604
|
+
"max-h-[90vh] w-full overflow-y-auto rounded-t-2xl bg-card px-4 pb-6 pt-5 shadow-xl animate-in slide-in-from-bottom-4 duration-200",
|
|
5615
5605
|
contentClassName
|
|
5616
5606
|
),
|
|
5617
5607
|
children: [
|
|
@@ -5663,7 +5653,7 @@ function DisclosureCard({
|
|
|
5663
5653
|
type: "button",
|
|
5664
5654
|
onClick: () => onOpenChange(!open),
|
|
5665
5655
|
className: cn(
|
|
5666
|
-
"flex w-full items-center justify-between rounded-xl
|
|
5656
|
+
"flex w-full items-center justify-between rounded-xl bg-muted/40 px-3 py-2 text-left transition-colors hover:bg-muted/60",
|
|
5667
5657
|
triggerClassName
|
|
5668
5658
|
),
|
|
5669
5659
|
children: [
|
|
@@ -5685,7 +5675,7 @@ function DisclosureCard({
|
|
|
5685
5675
|
"div",
|
|
5686
5676
|
{
|
|
5687
5677
|
className: cn(
|
|
5688
|
-
"mt-3 rounded-xl
|
|
5678
|
+
"mt-3 rounded-xl bg-muted/40 px-3 py-3",
|
|
5689
5679
|
contentClassName
|
|
5690
5680
|
),
|
|
5691
5681
|
children
|
|
@@ -5767,13 +5757,13 @@ function StepperNumberInput({
|
|
|
5767
5757
|
// src/web/components/metric-card.tsx
|
|
5768
5758
|
import { jsx as jsx65, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
5769
5759
|
var toneClasses2 = {
|
|
5770
|
-
primary: "
|
|
5771
|
-
purple: "
|
|
5772
|
-
blue: "
|
|
5773
|
-
info: "
|
|
5774
|
-
warning: "
|
|
5775
|
-
success: "
|
|
5776
|
-
muted: "
|
|
5760
|
+
primary: "bg-primary/10 text-primary",
|
|
5761
|
+
purple: "bg-network-arkade/10 text-network-arkade",
|
|
5762
|
+
blue: "bg-info/10 text-info",
|
|
5763
|
+
info: "bg-info/10 text-info",
|
|
5764
|
+
warning: "bg-warning/10 text-warning",
|
|
5765
|
+
success: "bg-success/10 text-success",
|
|
5766
|
+
muted: "bg-white/8 text-muted-foreground"
|
|
5777
5767
|
};
|
|
5778
5768
|
function MetricCard({
|
|
5779
5769
|
label,
|
|
@@ -5783,7 +5773,7 @@ function MetricCard({
|
|
|
5783
5773
|
tone = "muted",
|
|
5784
5774
|
className
|
|
5785
5775
|
}) {
|
|
5786
|
-
return /* @__PURE__ */ jsxs51("div", { className: cn("space-y-1 rounded-xl
|
|
5776
|
+
return /* @__PURE__ */ jsxs51("div", { className: cn("space-y-1 rounded-xl bg-card/70 p-2.5", className), children: [
|
|
5787
5777
|
/* @__PURE__ */ jsxs51("div", { className: "flex items-center gap-1.5", children: [
|
|
5788
5778
|
icon && /* @__PURE__ */ jsx65("span", { className: cn("flex size-5 items-center justify-center rounded-md", toneClasses2[tone]), children: typeof icon === "string" ? /* @__PURE__ */ jsx65(Icon, { name: icon, className: "text-icon-xs" }) : icon }),
|
|
5789
5779
|
/* @__PURE__ */ jsx65("span", { className: "text-xxs font-bold uppercase tracking-widest text-white/45", children: label })
|
|
@@ -5953,7 +5943,7 @@ function SecretRevealCard({
|
|
|
5953
5943
|
{
|
|
5954
5944
|
type: "button",
|
|
5955
5945
|
onClick: () => onRevealChange(true),
|
|
5956
|
-
className: "flex items-center gap-2 rounded-xl
|
|
5946
|
+
className: "flex items-center gap-2 rounded-xl bg-card px-4 py-2 text-sm font-bold text-foreground shadow-lg transition-all hover:bg-accent",
|
|
5957
5947
|
children: [
|
|
5958
5948
|
/* @__PURE__ */ jsx69(Icon, { name: "visibility", className: "text-icon-lg" }),
|
|
5959
5949
|
revealLabel
|
|
@@ -6000,7 +5990,7 @@ function SettingsSectionCard({
|
|
|
6000
5990
|
className,
|
|
6001
5991
|
bodyClassName
|
|
6002
5992
|
}) {
|
|
6003
|
-
return /* @__PURE__ */ jsxs56("section", { className: cn("space-y-4 rounded-xl bg-card p-4", className), children: [
|
|
5993
|
+
return /* @__PURE__ */ jsxs56("section", { className: cn("space-y-4 rounded-xl bg-card/70 p-4", className), children: [
|
|
6004
5994
|
/* @__PURE__ */ jsxs56("div", { className: "flex items-start justify-between gap-4", children: [
|
|
6005
5995
|
/* @__PURE__ */ jsxs56("div", { className: "min-w-0 flex-1", children: [
|
|
6006
5996
|
/* @__PURE__ */ jsx70("h2", { className: "text-sm font-bold text-foreground", children: title }),
|
|
@@ -6071,7 +6061,7 @@ function SelectableCard({
|
|
|
6071
6061
|
] });
|
|
6072
6062
|
const cardClassName = cn(
|
|
6073
6063
|
"w-full rounded-2xl border p-4 text-left transition-all duration-200",
|
|
6074
|
-
selected ? "border-primary/40 bg-primary/10 shadow-sm" : "border-
|
|
6064
|
+
selected ? "border-primary/40 bg-primary/10 shadow-sm" : "border-transparent bg-card/70 hover:bg-card",
|
|
6075
6065
|
className
|
|
6076
6066
|
);
|
|
6077
6067
|
if (onClick) {
|
|
@@ -7223,8 +7213,8 @@ function InvoiceStatusBanner({
|
|
|
7223
7213
|
"div",
|
|
7224
7214
|
{
|
|
7225
7215
|
className: cn(
|
|
7226
|
-
"flex items-center justify-center gap-2 rounded-xl
|
|
7227
|
-
isInvoicePaid ? "
|
|
7216
|
+
"flex items-center justify-center gap-2 rounded-xl px-3 py-1.5 text-xs font-bold",
|
|
7217
|
+
isInvoicePaid ? "bg-primary/10 text-primary" : isInvoiceFailedOrExpired ? "bg-danger/10 text-danger" : "bg-warning/10 text-warning"
|
|
7228
7218
|
),
|
|
7229
7219
|
children: [
|
|
7230
7220
|
isInvoicePending && /* @__PURE__ */ jsxs60(Fragment15, { children: [
|
|
@@ -7332,7 +7322,7 @@ function NetworkInfoDisclosure({
|
|
|
7332
7322
|
}) {
|
|
7333
7323
|
const [open, setOpen] = useState14(false);
|
|
7334
7324
|
if (networks.length === 0) return null;
|
|
7335
|
-
return /* @__PURE__ */ jsxs60("div", { className: cn("overflow-hidden rounded-xl
|
|
7325
|
+
return /* @__PURE__ */ jsxs60("div", { className: cn("overflow-hidden rounded-xl bg-card/70 transition-all", className), children: [
|
|
7336
7326
|
/* @__PURE__ */ jsxs60(
|
|
7337
7327
|
"button",
|
|
7338
7328
|
{
|
|
@@ -7408,11 +7398,11 @@ function DepositSuccessScreen({
|
|
|
7408
7398
|
return /* @__PURE__ */ jsx75("div", { className: "flex h-screen flex-col overflow-hidden bg-background font-display text-foreground", children: /* @__PURE__ */ jsxs61("div", { className: "flex flex-1 flex-col items-center justify-center p-6 text-center", children: [
|
|
7409
7399
|
/* @__PURE__ */ jsxs61("div", { className: "relative mb-8", children: [
|
|
7410
7400
|
/* @__PURE__ */ jsx75("div", { className: "absolute inset-0 scale-150 animate-pulse rounded-full bg-primary/20 blur-2xl" }),
|
|
7411
|
-
/* @__PURE__ */ jsx75("div", { className: "relative flex size-20 items-center justify-center rounded-full
|
|
7401
|
+
/* @__PURE__ */ jsx75("div", { className: "relative flex size-20 items-center justify-center rounded-full bg-primary/15 shadow-sm", children: /* @__PURE__ */ jsx75("span", { className: "material-symbols-outlined text-5xl text-primary animate-in zoom-in-50 duration-500", children: "check_circle" }) })
|
|
7412
7402
|
] }),
|
|
7413
7403
|
/* @__PURE__ */ jsx75("h1", { className: "mb-2 text-2xl font-bold text-white", children: title }),
|
|
7414
7404
|
/* @__PURE__ */ jsx75("p", { className: "mb-8 max-w-[260px] text-sm leading-relaxed text-muted-foreground", children: subtitle }),
|
|
7415
|
-
/* @__PURE__ */ jsxs61("div", { className: "mb-10 flex items-center gap-3 rounded-2xl
|
|
7405
|
+
/* @__PURE__ */ jsxs61("div", { className: "mb-10 flex items-center gap-3 rounded-2xl bg-card/70 px-4 py-3", children: [
|
|
7416
7406
|
/* @__PURE__ */ jsx75(AssetIcon, { ticker: displayTicker, size: 36 }),
|
|
7417
7407
|
/* @__PURE__ */ jsxs61("div", { className: "text-left", children: [
|
|
7418
7408
|
/* @__PURE__ */ jsx75("p", { className: "text-sm font-bold text-white", children: displayTicker }),
|
|
@@ -7484,7 +7474,7 @@ function DepositNetworkDefaultModal({
|
|
|
7484
7474
|
}) {
|
|
7485
7475
|
if (!open) return null;
|
|
7486
7476
|
const options = availableAccounts.map((id) => NETWORK_OPTIONS[id]).filter(Boolean);
|
|
7487
|
-
return /* @__PURE__ */ jsx76("div", { className: "fixed inset-0 z-50 flex items-end justify-center bg-
|
|
7477
|
+
return /* @__PURE__ */ jsx76("div", { className: "fixed inset-0 z-50 flex items-end justify-center bg-background/80 backdrop-blur-lg", children: /* @__PURE__ */ jsxs62("div", { className: "w-full space-y-4 rounded-t-2xl bg-card px-4 pb-7 pt-5 animate-in slide-in-from-bottom-4 duration-200", children: [
|
|
7488
7478
|
/* @__PURE__ */ jsx76("div", { className: "-mt-1 mb-1 flex justify-center", children: /* @__PURE__ */ jsx76("div", { className: "h-1 w-10 rounded-full bg-white/15" }) }),
|
|
7489
7479
|
/* @__PURE__ */ jsxs62("div", { children: [
|
|
7490
7480
|
/* @__PURE__ */ jsx76("p", { className: "text-sm font-bold text-white", children: "Choose your default network" }),
|
|
@@ -7503,8 +7493,8 @@ function DepositNetworkDefaultModal({
|
|
|
7503
7493
|
type: "button",
|
|
7504
7494
|
onClick: () => onSelect(option.network),
|
|
7505
7495
|
className: cn(
|
|
7506
|
-
"flex w-full items-center gap-3 rounded-xl
|
|
7507
|
-
isSuggested ?
|
|
7496
|
+
"flex w-full items-center gap-3 rounded-xl p-3 text-left transition-all",
|
|
7497
|
+
isSuggested ? option.accentBg : "bg-muted/40 hover:bg-muted/60"
|
|
7508
7498
|
),
|
|
7509
7499
|
children: [
|
|
7510
7500
|
/* @__PURE__ */ jsx76(
|
|
@@ -7756,7 +7746,7 @@ function DepositGeneratedView({
|
|
|
7756
7746
|
onRegenerate
|
|
7757
7747
|
}) {
|
|
7758
7748
|
return /* @__PURE__ */ jsxs64("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
|
|
7759
|
-
(network === "lightning" || network === "arkade" && arkSubMode === "ark") && isBtc && /* @__PURE__ */ jsxs64("div", { className: "flex flex-col gap-1.5 rounded-xl
|
|
7749
|
+
(network === "lightning" || network === "arkade" && arkSubMode === "ark") && isBtc && /* @__PURE__ */ jsxs64("div", { className: "flex flex-col gap-1.5 rounded-xl bg-card/70 p-2.5", children: [
|
|
7760
7750
|
/* @__PURE__ */ jsx78("div", { className: "flex items-center justify-between px-1", children: /* @__PURE__ */ jsx78("label", { className: "text-xxs font-bold uppercase tracking-widest text-white/40", children: "Specify amount (optional)" }) }),
|
|
7761
7751
|
/* @__PURE__ */ jsx78(
|
|
7762
7752
|
"input",
|
|
@@ -7776,7 +7766,7 @@ function DepositGeneratedView({
|
|
|
7776
7766
|
"..."
|
|
7777
7767
|
] }) : network === "arkade" ? `Unified URI for ${amount} ${getUnitLabel()}` : `Invoice for ${amount} ${getUnitLabel()}` })
|
|
7778
7768
|
] }),
|
|
7779
|
-
network === "lightning" && !isBtc && /* @__PURE__ */ jsxs64("div", { className: "flex flex-col gap-1.5 rounded-xl
|
|
7769
|
+
network === "lightning" && !isBtc && /* @__PURE__ */ jsxs64("div", { className: "flex flex-col gap-1.5 rounded-xl bg-card/70 p-2.5", children: [
|
|
7780
7770
|
/* @__PURE__ */ jsx78("div", { className: "flex items-center justify-between px-1", children: /* @__PURE__ */ jsx78("label", { className: "text-xxs font-bold uppercase tracking-widest text-white/40", children: "Specify amount (optional)" }) }),
|
|
7781
7771
|
/* @__PURE__ */ jsx78(
|
|
7782
7772
|
"input",
|
|
@@ -7793,7 +7783,7 @@ function DepositGeneratedView({
|
|
|
7793
7783
|
/* @__PURE__ */ jsx78("span", { className: "material-symbols-outlined animate-spin text-icon-xxs", children: "progress_activity" }),
|
|
7794
7784
|
"Updating invoice..."
|
|
7795
7785
|
] }) : `Invoice for ${amount} ${getUnitLabel()}` }),
|
|
7796
|
-
amount && maxDepositAmount > 0 && parseAssetAmount(amount, selectedAsset) > maxDepositAmount && /* @__PURE__ */ jsxs64("p", { className: "rounded-lg
|
|
7786
|
+
amount && maxDepositAmount > 0 && parseAssetAmount(amount, selectedAsset) > maxDepositAmount && /* @__PURE__ */ jsxs64("p", { className: "rounded-lg bg-danger/10 px-2.5 py-1.5 text-xxs text-danger", children: [
|
|
7797
7787
|
"Exceeds max: ",
|
|
7798
7788
|
formatAssetAmount(maxDepositAmount, selectedAsset),
|
|
7799
7789
|
" ",
|
|
@@ -7804,10 +7794,7 @@ function DepositGeneratedView({
|
|
|
7804
7794
|
/* @__PURE__ */ jsxs64(
|
|
7805
7795
|
"div",
|
|
7806
7796
|
{
|
|
7807
|
-
className:
|
|
7808
|
-
"relative flex flex-col items-center rounded-2xl border-2 bg-white p-3.5 transition-all",
|
|
7809
|
-
net.qrBorder
|
|
7810
|
-
),
|
|
7797
|
+
className: "relative flex flex-col items-center rounded-2xl bg-white p-3.5 transition-all",
|
|
7811
7798
|
style: net.qrGlow,
|
|
7812
7799
|
children: [
|
|
7813
7800
|
showQrNetworkBadge && network !== "spark" && network !== "arkade" && /* @__PURE__ */ jsxs64(
|
|
@@ -7869,11 +7856,9 @@ function DepositGeneratedView({
|
|
|
7869
7856
|
"data-testid": "deposit-generated-address",
|
|
7870
7857
|
"data-address": address,
|
|
7871
7858
|
className: cn(
|
|
7872
|
-
"group flex cursor-pointer items-center gap-2 rounded-xl
|
|
7873
|
-
"transition-all hover:bg-
|
|
7874
|
-
net.border
|
|
7859
|
+
"group flex cursor-pointer items-center gap-2 rounded-xl bg-card/70 px-2.5 py-1.5",
|
|
7860
|
+
"transition-all hover:bg-card active:scale-[0.98]"
|
|
7875
7861
|
),
|
|
7876
|
-
style: { borderLeftWidth: 3, borderLeftColor: net.color },
|
|
7877
7862
|
onClick: () => void copyToClipboard(address),
|
|
7878
7863
|
children: [
|
|
7879
7864
|
/* @__PURE__ */ jsx78("div", { className: cn("flex size-5 flex-shrink-0 items-center justify-center rounded-md", net.bg), children: net.icon }),
|
|
@@ -7889,10 +7874,9 @@ function DepositGeneratedView({
|
|
|
7889
7874
|
"div",
|
|
7890
7875
|
{
|
|
7891
7876
|
className: cn(
|
|
7892
|
-
"group flex cursor-pointer items-center gap-2 rounded-xl
|
|
7893
|
-
"
|
|
7877
|
+
"group flex cursor-pointer items-center gap-2 rounded-xl bg-primary/10 px-2.5 py-1.5",
|
|
7878
|
+
"transition-all hover:bg-primary/15 active:scale-[0.98]"
|
|
7894
7879
|
),
|
|
7895
|
-
style: { borderLeftWidth: 3, borderLeftColor: "var(--primary)" },
|
|
7896
7880
|
onClick: () => void copyToClipboard(recipientId),
|
|
7897
7881
|
children: [
|
|
7898
7882
|
/* @__PURE__ */ jsx78("div", { className: "flex size-5 flex-shrink-0 items-center justify-center rounded-md bg-primary/15", children: /* @__PURE__ */ jsx78(Icon, { name: "person", size: "xs", className: "text-primary" }) }),
|
|
@@ -7981,7 +7965,7 @@ function DepositPreGeneration({
|
|
|
7981
7965
|
const method = METHOD_META2[currentMethod];
|
|
7982
7966
|
const isRgbOnchain = network === "onchain" && !isBtc;
|
|
7983
7967
|
return /* @__PURE__ */ jsxs65("div", { className: "space-y-3", children: [
|
|
7984
|
-
showReceiveSummary && /* @__PURE__ */ jsxs65("div", { className: "rounded-2xl
|
|
7968
|
+
showReceiveSummary && /* @__PURE__ */ jsxs65("div", { className: "rounded-2xl bg-card/70 p-3", children: [
|
|
7985
7969
|
/* @__PURE__ */ jsx79("p", { className: "text-xxs font-bold uppercase tracking-widest text-white/35", children: "Receive Summary" }),
|
|
7986
7970
|
/* @__PURE__ */ jsxs65("div", { className: "mt-2 grid grid-cols-1 gap-2 text-xs", children: [
|
|
7987
7971
|
/* @__PURE__ */ jsxs65("div", { className: "flex items-center justify-between gap-3", children: [
|
|
@@ -7999,7 +7983,7 @@ function DepositPreGeneration({
|
|
|
7999
7983
|
/* @__PURE__ */ jsx79("p", { className: "text-tiny text-white/35", children: method.summary })
|
|
8000
7984
|
] })
|
|
8001
7985
|
] }),
|
|
8002
|
-
channelsLoading && selectedAccount === "RGB" && currentMethod === "lightning" && !isBtc && /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2.5 rounded-xl
|
|
7986
|
+
channelsLoading && selectedAccount === "RGB" && currentMethod === "lightning" && !isBtc && /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2.5 rounded-xl bg-card/70 p-3", children: [
|
|
8003
7987
|
/* @__PURE__ */ jsx79("span", { className: "material-symbols-outlined animate-spin text-icon-lg text-primary", children: "progress_activity" }),
|
|
8004
7988
|
/* @__PURE__ */ jsx79("span", { className: "text-xs font-medium text-white/60", children: "Checking channel availability..." })
|
|
8005
7989
|
] }),
|
|
@@ -8016,7 +8000,7 @@ function DepositPreGeneration({
|
|
|
8016
8000
|
] })
|
|
8017
8001
|
] }),
|
|
8018
8002
|
isAutoGenerate && loading && /* @__PURE__ */ jsxs65("div", { className: "flex flex-col items-center gap-4 py-10", children: [
|
|
8019
|
-
/* @__PURE__ */ jsx79("div", { className: cn("flex size-16 items-center justify-center rounded-2xl
|
|
8003
|
+
/* @__PURE__ */ jsx79("div", { className: cn("flex size-16 items-center justify-center rounded-2xl", net.bg), children: /* @__PURE__ */ jsx79("span", { className: cn("material-symbols-outlined animate-spin text-icon-4xl", net.text), children: "progress_activity" }) }),
|
|
8020
8004
|
/* @__PURE__ */ jsxs65("div", { className: "space-y-1 text-center", children: [
|
|
8021
8005
|
/* @__PURE__ */ jsxs65("p", { className: "text-sm font-bold text-muted-foreground", children: [
|
|
8022
8006
|
"Generating ",
|
|
@@ -8045,7 +8029,7 @@ function DepositPreGeneration({
|
|
|
8045
8029
|
),
|
|
8046
8030
|
/* @__PURE__ */ jsx79("p", { className: "text-xxs text-white/35", children: "Enter a specific asset ID to receive it, or leave empty to accept any RGB asset to this invoice." })
|
|
8047
8031
|
] }),
|
|
8048
|
-
isRgbOnchain && /* @__PURE__ */ jsxs65("div", { className: "space-y-2.5 rounded-xl
|
|
8032
|
+
isRgbOnchain && /* @__PURE__ */ jsxs65("div", { className: "space-y-2.5 rounded-xl bg-card/70 p-3", children: [
|
|
8049
8033
|
/* @__PURE__ */ jsxs65("div", { className: "flex items-center justify-between gap-3", children: [
|
|
8050
8034
|
/* @__PURE__ */ jsxs65("div", { className: "min-w-0 flex-1", children: [
|
|
8051
8035
|
/* @__PURE__ */ jsx79("h4", { className: "text-xs font-bold text-white", children: usePrivacy ? "Blinded receive" : "Witness receive" }),
|
|
@@ -8057,7 +8041,7 @@ function DepositPreGeneration({
|
|
|
8057
8041
|
type: "button",
|
|
8058
8042
|
"aria-label": "Toggle blinded (private) receive",
|
|
8059
8043
|
className: cn(
|
|
8060
|
-
"relative inline-flex h-5 w-9 flex-shrink-0 items-center rounded-full
|
|
8044
|
+
"relative inline-flex h-5 w-9 flex-shrink-0 items-center rounded-full shadow-inner transition-colors",
|
|
8061
8045
|
usePrivacy ? "bg-primary" : "bg-white/10"
|
|
8062
8046
|
),
|
|
8063
8047
|
onClick: () => setUsePrivacy(!usePrivacy),
|
|
@@ -8078,8 +8062,8 @@ function DepositPreGeneration({
|
|
|
8078
8062
|
"div",
|
|
8079
8063
|
{
|
|
8080
8064
|
className: cn(
|
|
8081
|
-
"flex items-center justify-between rounded-lg
|
|
8082
|
-
colorableUtxoCount > 0 ? "
|
|
8065
|
+
"flex items-center justify-between rounded-lg px-2.5 py-1.5 text-xxs",
|
|
8066
|
+
colorableUtxoCount > 0 ? "bg-success/10 text-success/80" : "bg-warning/10 text-warning/80"
|
|
8083
8067
|
),
|
|
8084
8068
|
children: [
|
|
8085
8069
|
/* @__PURE__ */ jsx79("span", { className: "font-medium", children: "Available colorable UTXOs" }),
|
|
@@ -8308,7 +8292,7 @@ function DepositAssetSelection({
|
|
|
8308
8292
|
{
|
|
8309
8293
|
type: "button",
|
|
8310
8294
|
"data-testid": `deposit-asset-${asset.asset_id}`,
|
|
8311
|
-
className: "group flex w-full min-w-0 items-center gap-3 overflow-hidden rounded-2xl
|
|
8295
|
+
className: "group flex w-full min-w-0 items-center gap-3 overflow-hidden rounded-2xl bg-white/3 px-4 py-3 text-sm transition-all hover:bg-accent",
|
|
8312
8296
|
onClick: () => onSelectAsset(asset),
|
|
8313
8297
|
children: [
|
|
8314
8298
|
/* @__PURE__ */ jsx80(AssetIcon, { ticker: asset.ticker, size: 40, className: "flex-shrink-0" }),
|
|
@@ -8361,7 +8345,7 @@ function DepositAssetSelection({
|
|
|
8361
8345
|
type: "button",
|
|
8362
8346
|
"data-testid": "deposit-add-asset",
|
|
8363
8347
|
onClick: () => setShowAddAssetModal(true),
|
|
8364
|
-
className: "group flex w-full items-center gap-3 rounded-2xl
|
|
8348
|
+
className: "group flex w-full items-center gap-3 rounded-2xl bg-white/3 p-3 transition-all hover:bg-accent",
|
|
8365
8349
|
children: [
|
|
8366
8350
|
/* @__PURE__ */ jsx80("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-primary/15", children: /* @__PURE__ */ jsx80(Icon, { name: "add", size: "md", className: "text-primary" }) }),
|
|
8367
8351
|
/* @__PURE__ */ jsxs66("div", { className: "flex-1 text-left", children: [
|
|
@@ -8590,7 +8574,7 @@ function DepositInvoiceGeneration({
|
|
|
8590
8574
|
(() => {
|
|
8591
8575
|
const hideDestinationRail = isNewAsset && (network === "spark" || network === "arkade");
|
|
8592
8576
|
if (hideDestinationRail) return null;
|
|
8593
|
-
return /* @__PURE__ */ jsx81("div", { className: "flex-shrink-0
|
|
8577
|
+
return /* @__PURE__ */ jsx81("div", { className: "flex-shrink-0 bg-background px-4 py-2", children: /* @__PURE__ */ jsxs67("div", { className: "space-y-2", children: [
|
|
8594
8578
|
/* @__PURE__ */ jsxs67("div", { children: [
|
|
8595
8579
|
/* @__PURE__ */ jsx81("p", { className: "text-xxs font-bold uppercase tracking-widest text-white/35", children: "Destination Account" }),
|
|
8596
8580
|
/* @__PURE__ */ jsx81("div", { className: "mt-1.5 flex gap-1.5 overflow-x-auto no-scrollbar", children: availableAccounts.map((account) => /* @__PURE__ */ jsx81(
|
|
@@ -8659,9 +8643,8 @@ function DepositInvoiceGeneration({
|
|
|
8659
8643
|
"div",
|
|
8660
8644
|
{
|
|
8661
8645
|
className: cn(
|
|
8662
|
-
"flex size-16 items-center justify-center rounded-2xl
|
|
8663
|
-
NETWORK_CONFIG[btcSelectedAccount === "SPARK" ? "spark" : btcSelectedAccount === "ARKADE" ? "arkade" : "onchain"].bg
|
|
8664
|
-
NETWORK_CONFIG[btcSelectedAccount === "SPARK" ? "spark" : btcSelectedAccount === "ARKADE" ? "arkade" : "onchain"].border
|
|
8646
|
+
"flex size-16 items-center justify-center rounded-2xl",
|
|
8647
|
+
NETWORK_CONFIG[btcSelectedAccount === "SPARK" ? "spark" : btcSelectedAccount === "ARKADE" ? "arkade" : "onchain"].bg
|
|
8665
8648
|
),
|
|
8666
8649
|
children: /* @__PURE__ */ jsx81(
|
|
8667
8650
|
"span",
|