kaleido-ui 0.1.91 → 0.1.93
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/web/index.cjs +31 -32
- package/dist/web/index.js +31 -32
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -336,7 +336,7 @@ var Input = React3.forwardRef(
|
|
|
336
336
|
{
|
|
337
337
|
type,
|
|
338
338
|
className: cn(
|
|
339
|
-
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 text-base transition-all border border-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:border-primary/
|
|
339
|
+
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 text-base transition-all border border-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:border-primary/25 focus-visible:outline-none focus-visible:border-primary/25 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-white/6",
|
|
340
340
|
className
|
|
341
341
|
),
|
|
342
342
|
ref,
|
|
@@ -848,7 +848,7 @@ var NumberInput = React6.forwardRef(
|
|
|
848
848
|
step,
|
|
849
849
|
disabled,
|
|
850
850
|
className: cn(
|
|
851
|
-
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 pr-10 text-base transition-all border border-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary/
|
|
851
|
+
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 pr-10 text-base transition-all border border-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary/25 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-white/4",
|
|
852
852
|
"[&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none [-moz-appearance:textfield]",
|
|
853
853
|
className
|
|
854
854
|
),
|
|
@@ -1352,47 +1352,41 @@ function StatusBadge({ status, className }) {
|
|
|
1352
1352
|
success: {
|
|
1353
1353
|
color: "text-primary",
|
|
1354
1354
|
bg: "bg-primary/10",
|
|
1355
|
-
border: "border-primary/20",
|
|
1356
1355
|
icon: "check_circle",
|
|
1357
1356
|
label: "Success"
|
|
1358
1357
|
},
|
|
1359
1358
|
completed: {
|
|
1360
1359
|
color: "text-primary",
|
|
1361
1360
|
bg: "bg-primary/10",
|
|
1362
|
-
border: "border-primary/20",
|
|
1363
1361
|
icon: "check_circle",
|
|
1364
1362
|
label: "Completed"
|
|
1365
1363
|
},
|
|
1366
1364
|
pending: {
|
|
1367
1365
|
color: "text-warning",
|
|
1368
1366
|
bg: "bg-warning/10",
|
|
1369
|
-
border: "border-warning/20",
|
|
1370
1367
|
icon: "schedule",
|
|
1371
1368
|
label: "Pending"
|
|
1372
1369
|
},
|
|
1373
1370
|
failed: {
|
|
1374
1371
|
color: "text-danger",
|
|
1375
1372
|
bg: "bg-danger/10",
|
|
1376
|
-
border: "border-danger/20",
|
|
1377
1373
|
icon: "error",
|
|
1378
1374
|
label: "Failed"
|
|
1379
1375
|
},
|
|
1380
1376
|
error: {
|
|
1381
1377
|
color: "text-danger",
|
|
1382
1378
|
bg: "bg-danger/10",
|
|
1383
|
-
border: "border-danger/20",
|
|
1384
1379
|
icon: "error",
|
|
1385
1380
|
label: "Error"
|
|
1386
1381
|
}
|
|
1387
1382
|
};
|
|
1388
|
-
const { color, bg,
|
|
1383
|
+
const { color, bg, icon, label } = config[status];
|
|
1389
1384
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1390
1385
|
"div",
|
|
1391
1386
|
{
|
|
1392
1387
|
className: cn(
|
|
1393
|
-
"inline-flex items-center gap-1.5 pl-1 pr-2.5 py-1 rounded-full
|
|
1388
|
+
"inline-flex items-center gap-1.5 pl-1 pr-2.5 py-1 rounded-full font-medium text-xs",
|
|
1394
1389
|
bg,
|
|
1395
|
-
border,
|
|
1396
1390
|
color,
|
|
1397
1391
|
className
|
|
1398
1392
|
),
|
|
@@ -1707,8 +1701,14 @@ var ASSET_COLORS = {
|
|
|
1707
1701
|
var LOCAL_ICONS = {
|
|
1708
1702
|
BTC: "/icons/bitcoin/bitcoin-logo.svg",
|
|
1709
1703
|
ARKADE: "/icons/arkade/arkade-icon.svg",
|
|
1710
|
-
|
|
1711
|
-
|
|
1704
|
+
// Bundled data-URIs (protocolIcons) — host apps don't serve /icons/rgb or
|
|
1705
|
+
// /icons/liquid, and a missing host asset renders as a permanently broken
|
|
1706
|
+
// image (onError bails early for local icons). protocolIcons is a Partial
|
|
1707
|
+
// for type reasons but these keys are always defined.
|
|
1708
|
+
RGB: protocolIcons.RGB20,
|
|
1709
|
+
SPARK: "/icons/spark/Asterisk/Spark Asterisk White.svg",
|
|
1710
|
+
LIQUID: protocolIcons.Liquid,
|
|
1711
|
+
"L-BTC": protocolIcons.Liquid
|
|
1712
1712
|
};
|
|
1713
1713
|
function AssetIcon({ ticker, logoUri, cdnBaseUrl, size = 40, className }) {
|
|
1714
1714
|
const normTicker = ticker.toUpperCase();
|
|
@@ -1884,7 +1884,7 @@ function TransactionCard({
|
|
|
1884
1884
|
className
|
|
1885
1885
|
}) {
|
|
1886
1886
|
const isInbound = direction === "inbound";
|
|
1887
|
-
const formatDate = (ts) => new Date(ts * 1e3).
|
|
1887
|
+
const formatDate = (ts) => new Date(ts * 1e3).toLocaleString([], { dateStyle: "short", timeStyle: "short" });
|
|
1888
1888
|
const statusStyle = {
|
|
1889
1889
|
success: { base: "bg-primary/10", hover: "hover:bg-primary/15" },
|
|
1890
1890
|
completed: { base: "bg-primary/10", hover: "hover:bg-primary/15" },
|
|
@@ -2648,7 +2648,7 @@ function InlineSelector({
|
|
|
2648
2648
|
),
|
|
2649
2649
|
children: [
|
|
2650
2650
|
renderPanelHeader?.(renderArgs),
|
|
2651
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "space-y-1", children: options.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col items-center gap-2 px-4 py-8 text-center text-sm text-white/30", children: [
|
|
2651
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ScrollArea, { className: "max-h-72", viewportClassName: "max-h-72", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "space-y-1", children: options.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col items-center gap-2 px-4 py-8 text-center text-sm text-white/30", children: [
|
|
2652
2652
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon, { name: "search", size: "md", className: "opacity-40" }),
|
|
2653
2653
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "No results" })
|
|
2654
2654
|
] }) : options.map((option) => {
|
|
@@ -2678,7 +2678,7 @@ function InlineSelector({
|
|
|
2678
2678
|
},
|
|
2679
2679
|
option.id
|
|
2680
2680
|
);
|
|
2681
|
-
}) })
|
|
2681
|
+
}) }) })
|
|
2682
2682
|
]
|
|
2683
2683
|
}
|
|
2684
2684
|
)
|
|
@@ -3058,15 +3058,13 @@ function AccountSettingsShell({
|
|
|
3058
3058
|
onBack
|
|
3059
3059
|
}) {
|
|
3060
3060
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex h-screen flex-col overflow-hidden bg-background font-display text-foreground", children: [
|
|
3061
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("header", { className: "flex h-14 shrink-0 items-center gap-2 px-2", children: [
|
|
3062
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { type: "button", variant: "ghost", size: "icon-xl", onClick: onBack, "aria-label": "Go back", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { name: "arrow_back", size: "xl" }) }),
|
|
3063
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AccountHeaderIcons, { accountId }),
|
|
3064
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h1", { className: "text-lg font-bold text-foreground", children: title })
|
|
3065
|
+
] }),
|
|
3062
3066
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("main", { className: "flex-1 space-y-6 overflow-y-auto px-5 pb-28 pt-2", children: [
|
|
3063
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.
|
|
3064
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AccountHeaderIcons, { accountId }),
|
|
3065
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
3066
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h1", { className: "text-xl font-bold text-foreground", children: title }),
|
|
3067
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "mt-1 text-sm text-muted-foreground", children: subtitle })
|
|
3068
|
-
] })
|
|
3069
|
-
] }),
|
|
3067
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm text-muted-foreground", children: subtitle }),
|
|
3070
3068
|
children
|
|
3071
3069
|
] })
|
|
3072
3070
|
] });
|
|
@@ -3862,7 +3860,7 @@ function AssetSelector({
|
|
|
3862
3860
|
}
|
|
3863
3861
|
) }),
|
|
3864
3862
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: "flex shrink-0 flex-col items-end gap-0.5", children: [
|
|
3865
|
-
optionSelected ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "rounded-full
|
|
3863
|
+
optionSelected ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "rounded-full bg-primary/[0.14] px-2 py-0.5 text-xxs font-bold uppercase tracking-wide text-primary", children: "Current" }) : option.networkTag ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3866
3864
|
"span",
|
|
3867
3865
|
{
|
|
3868
3866
|
className: cn(
|
|
@@ -3977,7 +3975,7 @@ function AssetSelector({
|
|
|
3977
3975
|
value: search,
|
|
3978
3976
|
onChange: (event) => setSearch(event.target.value),
|
|
3979
3977
|
placeholder: "Search...",
|
|
3980
|
-
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/
|
|
3978
|
+
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/25 focus:outline-none"
|
|
3981
3979
|
}
|
|
3982
3980
|
)
|
|
3983
3981
|
] }),
|
|
@@ -4037,7 +4035,7 @@ function AssetSelector({
|
|
|
4037
4035
|
},
|
|
4038
4036
|
className: cn(
|
|
4039
4037
|
"group flex w-full items-center gap-3 rounded-2xl border px-3 py-3 text-sm transition-all duration-200",
|
|
4040
|
-
optionSelected ? "border-
|
|
4038
|
+
optionSelected ? "border-transparent bg-primary/[0.14]" : optionDisabled ? "cursor-not-allowed border-transparent bg-white/[0.015] opacity-45" : "border-transparent bg-transparent hover:bg-accent"
|
|
4041
4039
|
),
|
|
4042
4040
|
children: renderAssetOption(option, optionSelected, optionDisabled)
|
|
4043
4041
|
},
|
|
@@ -4128,7 +4126,7 @@ function AssetSelector({
|
|
|
4128
4126
|
value: search,
|
|
4129
4127
|
onChange: (event) => setSearch(event.target.value),
|
|
4130
4128
|
placeholder: "Search...",
|
|
4131
|
-
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/
|
|
4129
|
+
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/25 focus:outline-none"
|
|
4132
4130
|
}
|
|
4133
4131
|
)
|
|
4134
4132
|
] }),
|
|
@@ -4789,8 +4787,9 @@ function ActivityDetailRow({
|
|
|
4789
4787
|
onCopy,
|
|
4790
4788
|
isCopied
|
|
4791
4789
|
}) {
|
|
4792
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center
|
|
4793
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "text-xxs font-bold uppercase tracking-wider text-muted-foreground", children: label }),
|
|
4790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-3 py-1 last:pb-0", children: [
|
|
4791
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "shrink-0 text-xxs font-bold uppercase tracking-wider text-muted-foreground", children: label }),
|
|
4792
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { "aria-hidden": true, className: "min-w-4 flex-1 self-center border-b border-dotted border-white/15" }),
|
|
4794
4793
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex max-w-[65%] items-center gap-2", children: [
|
|
4795
4794
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "truncate font-mono text-xs font-medium text-white/90", children: value }),
|
|
4796
4795
|
onCopy && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
@@ -4996,7 +4995,7 @@ function WithdrawAmountInput({
|
|
|
4996
4995
|
setFeeRateMode?.(mode);
|
|
4997
4996
|
if (mode !== "custom") setFeeRate(mode);
|
|
4998
4997
|
},
|
|
4999
|
-
className: `group relative overflow-hidden rounded-xl border px-2 py-3 shadow-sm transition-all active:scale-[0.98] ${selected ? "border-
|
|
4998
|
+
className: `group relative overflow-hidden rounded-xl border px-2 py-3 shadow-sm transition-all active:scale-[0.98] ${selected ? "border-transparent bg-primary/[0.14]" : "border-transparent bg-card/70 hover:bg-card"}`,
|
|
5000
4999
|
children: [
|
|
5001
5000
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5002
5001
|
"span",
|
|
@@ -6360,7 +6359,7 @@ function SelectableCard({
|
|
|
6360
6359
|
] });
|
|
6361
6360
|
const cardClassName = cn(
|
|
6362
6361
|
"w-full rounded-2xl border p-4 text-left transition-all duration-200",
|
|
6363
|
-
selected ? "border-
|
|
6362
|
+
selected ? "border-transparent bg-primary/[0.14] shadow-sm" : "border-transparent bg-card/70 hover:bg-card",
|
|
6364
6363
|
className
|
|
6365
6364
|
);
|
|
6366
6365
|
if (onClick) {
|
|
@@ -8598,7 +8597,7 @@ function DepositAssetSelection({
|
|
|
8598
8597
|
{
|
|
8599
8598
|
autoFocus: true,
|
|
8600
8599
|
"data-testid": "deposit-asset-search",
|
|
8601
|
-
className: "w-full rounded-xl border border-transparent bg-white/5 py-2.5 pl-10 pr-4 text-sm text-white outline-none transition-all placeholder:text-white/25 focus:border-primary/
|
|
8600
|
+
className: "w-full rounded-xl border border-transparent bg-white/5 py-2.5 pl-10 pr-4 text-sm text-white outline-none transition-all placeholder:text-white/25 focus:border-primary/25 focus:bg-white/8",
|
|
8602
8601
|
onChange: (event) => setSearchQuery(event.target.value),
|
|
8603
8602
|
placeholder: "Search assets...",
|
|
8604
8603
|
type: "text",
|
package/dist/web/index.js
CHANGED
|
@@ -148,7 +148,7 @@ var Input = React3.forwardRef(
|
|
|
148
148
|
{
|
|
149
149
|
type,
|
|
150
150
|
className: cn(
|
|
151
|
-
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 text-base transition-all border border-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:border-primary/
|
|
151
|
+
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 text-base transition-all border border-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:border-primary/25 focus-visible:outline-none focus-visible:border-primary/25 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-white/6",
|
|
152
152
|
className
|
|
153
153
|
),
|
|
154
154
|
ref,
|
|
@@ -660,7 +660,7 @@ var NumberInput = React6.forwardRef(
|
|
|
660
660
|
step,
|
|
661
661
|
disabled,
|
|
662
662
|
className: cn(
|
|
663
|
-
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 pr-10 text-base transition-all border border-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary/
|
|
663
|
+
"flex h-12 w-full rounded-xl bg-white/8 px-4 py-3 pr-10 text-base transition-all border border-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary/25 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-white/4",
|
|
664
664
|
"[&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none [-moz-appearance:textfield]",
|
|
665
665
|
className
|
|
666
666
|
),
|
|
@@ -1164,47 +1164,41 @@ function StatusBadge({ status, className }) {
|
|
|
1164
1164
|
success: {
|
|
1165
1165
|
color: "text-primary",
|
|
1166
1166
|
bg: "bg-primary/10",
|
|
1167
|
-
border: "border-primary/20",
|
|
1168
1167
|
icon: "check_circle",
|
|
1169
1168
|
label: "Success"
|
|
1170
1169
|
},
|
|
1171
1170
|
completed: {
|
|
1172
1171
|
color: "text-primary",
|
|
1173
1172
|
bg: "bg-primary/10",
|
|
1174
|
-
border: "border-primary/20",
|
|
1175
1173
|
icon: "check_circle",
|
|
1176
1174
|
label: "Completed"
|
|
1177
1175
|
},
|
|
1178
1176
|
pending: {
|
|
1179
1177
|
color: "text-warning",
|
|
1180
1178
|
bg: "bg-warning/10",
|
|
1181
|
-
border: "border-warning/20",
|
|
1182
1179
|
icon: "schedule",
|
|
1183
1180
|
label: "Pending"
|
|
1184
1181
|
},
|
|
1185
1182
|
failed: {
|
|
1186
1183
|
color: "text-danger",
|
|
1187
1184
|
bg: "bg-danger/10",
|
|
1188
|
-
border: "border-danger/20",
|
|
1189
1185
|
icon: "error",
|
|
1190
1186
|
label: "Failed"
|
|
1191
1187
|
},
|
|
1192
1188
|
error: {
|
|
1193
1189
|
color: "text-danger",
|
|
1194
1190
|
bg: "bg-danger/10",
|
|
1195
|
-
border: "border-danger/20",
|
|
1196
1191
|
icon: "error",
|
|
1197
1192
|
label: "Error"
|
|
1198
1193
|
}
|
|
1199
1194
|
};
|
|
1200
|
-
const { color, bg,
|
|
1195
|
+
const { color, bg, icon, label } = config[status];
|
|
1201
1196
|
return /* @__PURE__ */ jsxs6(
|
|
1202
1197
|
"div",
|
|
1203
1198
|
{
|
|
1204
1199
|
className: cn(
|
|
1205
|
-
"inline-flex items-center gap-1.5 pl-1 pr-2.5 py-1 rounded-full
|
|
1200
|
+
"inline-flex items-center gap-1.5 pl-1 pr-2.5 py-1 rounded-full font-medium text-xs",
|
|
1206
1201
|
bg,
|
|
1207
|
-
border,
|
|
1208
1202
|
color,
|
|
1209
1203
|
className
|
|
1210
1204
|
),
|
|
@@ -1519,8 +1513,14 @@ var ASSET_COLORS = {
|
|
|
1519
1513
|
var LOCAL_ICONS = {
|
|
1520
1514
|
BTC: "/icons/bitcoin/bitcoin-logo.svg",
|
|
1521
1515
|
ARKADE: "/icons/arkade/arkade-icon.svg",
|
|
1522
|
-
|
|
1523
|
-
|
|
1516
|
+
// Bundled data-URIs (protocolIcons) — host apps don't serve /icons/rgb or
|
|
1517
|
+
// /icons/liquid, and a missing host asset renders as a permanently broken
|
|
1518
|
+
// image (onError bails early for local icons). protocolIcons is a Partial
|
|
1519
|
+
// for type reasons but these keys are always defined.
|
|
1520
|
+
RGB: protocolIcons.RGB20,
|
|
1521
|
+
SPARK: "/icons/spark/Asterisk/Spark Asterisk White.svg",
|
|
1522
|
+
LIQUID: protocolIcons.Liquid,
|
|
1523
|
+
"L-BTC": protocolIcons.Liquid
|
|
1524
1524
|
};
|
|
1525
1525
|
function AssetIcon({ ticker, logoUri, cdnBaseUrl, size = 40, className }) {
|
|
1526
1526
|
const normTicker = ticker.toUpperCase();
|
|
@@ -1696,7 +1696,7 @@ function TransactionCard({
|
|
|
1696
1696
|
className
|
|
1697
1697
|
}) {
|
|
1698
1698
|
const isInbound = direction === "inbound";
|
|
1699
|
-
const formatDate = (ts) => new Date(ts * 1e3).
|
|
1699
|
+
const formatDate = (ts) => new Date(ts * 1e3).toLocaleString([], { dateStyle: "short", timeStyle: "short" });
|
|
1700
1700
|
const statusStyle = {
|
|
1701
1701
|
success: { base: "bg-primary/10", hover: "hover:bg-primary/15" },
|
|
1702
1702
|
completed: { base: "bg-primary/10", hover: "hover:bg-primary/15" },
|
|
@@ -2466,7 +2466,7 @@ function InlineSelector({
|
|
|
2466
2466
|
),
|
|
2467
2467
|
children: [
|
|
2468
2468
|
renderPanelHeader?.(renderArgs),
|
|
2469
|
-
/* @__PURE__ */ jsx30("div", { className: "space-y-1", children: options.length === 0 ? /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center gap-2 px-4 py-8 text-center text-sm text-white/30", children: [
|
|
2469
|
+
/* @__PURE__ */ jsx30(ScrollArea, { className: "max-h-72", viewportClassName: "max-h-72", children: /* @__PURE__ */ jsx30("div", { className: "space-y-1", children: options.length === 0 ? /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center gap-2 px-4 py-8 text-center text-sm text-white/30", children: [
|
|
2470
2470
|
/* @__PURE__ */ jsx30(Icon, { name: "search", size: "md", className: "opacity-40" }),
|
|
2471
2471
|
/* @__PURE__ */ jsx30("span", { children: "No results" })
|
|
2472
2472
|
] }) : options.map((option) => {
|
|
@@ -2496,7 +2496,7 @@ function InlineSelector({
|
|
|
2496
2496
|
},
|
|
2497
2497
|
option.id
|
|
2498
2498
|
);
|
|
2499
|
-
}) })
|
|
2499
|
+
}) }) })
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
2502
|
)
|
|
@@ -2876,15 +2876,13 @@ function AccountSettingsShell({
|
|
|
2876
2876
|
onBack
|
|
2877
2877
|
}) {
|
|
2878
2878
|
return /* @__PURE__ */ jsxs21("div", { className: "flex h-screen flex-col overflow-hidden bg-background font-display text-foreground", children: [
|
|
2879
|
-
/* @__PURE__ */
|
|
2879
|
+
/* @__PURE__ */ jsxs21("header", { className: "flex h-14 shrink-0 items-center gap-2 px-2", children: [
|
|
2880
|
+
onBack && /* @__PURE__ */ jsx34(Button, { type: "button", variant: "ghost", size: "icon-xl", onClick: onBack, "aria-label": "Go back", children: /* @__PURE__ */ jsx34(Icon, { name: "arrow_back", size: "xl" }) }),
|
|
2881
|
+
/* @__PURE__ */ jsx34(AccountHeaderIcons, { accountId }),
|
|
2882
|
+
/* @__PURE__ */ jsx34("h1", { className: "text-lg font-bold text-foreground", children: title })
|
|
2883
|
+
] }),
|
|
2880
2884
|
/* @__PURE__ */ jsxs21("main", { className: "flex-1 space-y-6 overflow-y-auto px-5 pb-28 pt-2", children: [
|
|
2881
|
-
/* @__PURE__ */
|
|
2882
|
-
/* @__PURE__ */ jsx34(AccountHeaderIcons, { accountId }),
|
|
2883
|
-
/* @__PURE__ */ jsxs21("div", { children: [
|
|
2884
|
-
/* @__PURE__ */ jsx34("h1", { className: "text-xl font-bold text-foreground", children: title }),
|
|
2885
|
-
/* @__PURE__ */ jsx34("p", { className: "mt-1 text-sm text-muted-foreground", children: subtitle })
|
|
2886
|
-
] })
|
|
2887
|
-
] }),
|
|
2885
|
+
subtitle && /* @__PURE__ */ jsx34("p", { className: "text-sm text-muted-foreground", children: subtitle }),
|
|
2888
2886
|
children
|
|
2889
2887
|
] })
|
|
2890
2888
|
] });
|
|
@@ -3680,7 +3678,7 @@ function AssetSelector({
|
|
|
3680
3678
|
}
|
|
3681
3679
|
) }),
|
|
3682
3680
|
/* @__PURE__ */ jsxs25("span", { className: "flex shrink-0 flex-col items-end gap-0.5", children: [
|
|
3683
|
-
optionSelected ? /* @__PURE__ */ jsx38("span", { className: "rounded-full
|
|
3681
|
+
optionSelected ? /* @__PURE__ */ jsx38("span", { className: "rounded-full bg-primary/[0.14] px-2 py-0.5 text-xxs font-bold uppercase tracking-wide text-primary", children: "Current" }) : option.networkTag ? /* @__PURE__ */ jsx38(
|
|
3684
3682
|
"span",
|
|
3685
3683
|
{
|
|
3686
3684
|
className: cn(
|
|
@@ -3795,7 +3793,7 @@ function AssetSelector({
|
|
|
3795
3793
|
value: search,
|
|
3796
3794
|
onChange: (event) => setSearch(event.target.value),
|
|
3797
3795
|
placeholder: "Search...",
|
|
3798
|
-
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/
|
|
3796
|
+
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/25 focus:outline-none"
|
|
3799
3797
|
}
|
|
3800
3798
|
)
|
|
3801
3799
|
] }),
|
|
@@ -3855,7 +3853,7 @@ function AssetSelector({
|
|
|
3855
3853
|
},
|
|
3856
3854
|
className: cn(
|
|
3857
3855
|
"group flex w-full items-center gap-3 rounded-2xl border px-3 py-3 text-sm transition-all duration-200",
|
|
3858
|
-
optionSelected ? "border-
|
|
3856
|
+
optionSelected ? "border-transparent bg-primary/[0.14]" : optionDisabled ? "cursor-not-allowed border-transparent bg-white/[0.015] opacity-45" : "border-transparent bg-transparent hover:bg-accent"
|
|
3859
3857
|
),
|
|
3860
3858
|
children: renderAssetOption(option, optionSelected, optionDisabled)
|
|
3861
3859
|
},
|
|
@@ -3946,7 +3944,7 @@ function AssetSelector({
|
|
|
3946
3944
|
value: search,
|
|
3947
3945
|
onChange: (event) => setSearch(event.target.value),
|
|
3948
3946
|
placeholder: "Search...",
|
|
3949
|
-
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/
|
|
3947
|
+
className: "h-11 w-full rounded-2xl border border-transparent bg-black/20 pl-10 pr-3 text-sm text-white placeholder:text-white/25 focus:border-primary/25 focus:outline-none"
|
|
3950
3948
|
}
|
|
3951
3949
|
)
|
|
3952
3950
|
] }),
|
|
@@ -4607,8 +4605,9 @@ function ActivityDetailRow({
|
|
|
4607
4605
|
onCopy,
|
|
4608
4606
|
isCopied
|
|
4609
4607
|
}) {
|
|
4610
|
-
return /* @__PURE__ */ jsxs32("div", { className: "flex items-center
|
|
4611
|
-
/* @__PURE__ */ jsx45("span", { className: "text-xxs font-bold uppercase tracking-wider text-muted-foreground", children: label }),
|
|
4608
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-3 py-1 last:pb-0", children: [
|
|
4609
|
+
/* @__PURE__ */ jsx45("span", { className: "shrink-0 text-xxs font-bold uppercase tracking-wider text-muted-foreground", children: label }),
|
|
4610
|
+
/* @__PURE__ */ jsx45("span", { "aria-hidden": true, className: "min-w-4 flex-1 self-center border-b border-dotted border-white/15" }),
|
|
4612
4611
|
/* @__PURE__ */ jsxs32("div", { className: "flex max-w-[65%] items-center gap-2", children: [
|
|
4613
4612
|
/* @__PURE__ */ jsx45("span", { className: "truncate font-mono text-xs font-medium text-white/90", children: value }),
|
|
4614
4613
|
onCopy && /* @__PURE__ */ jsx45(
|
|
@@ -4814,7 +4813,7 @@ function WithdrawAmountInput({
|
|
|
4814
4813
|
setFeeRateMode?.(mode);
|
|
4815
4814
|
if (mode !== "custom") setFeeRate(mode);
|
|
4816
4815
|
},
|
|
4817
|
-
className: `group relative overflow-hidden rounded-xl border px-2 py-3 shadow-sm transition-all active:scale-[0.98] ${selected ? "border-
|
|
4816
|
+
className: `group relative overflow-hidden rounded-xl border px-2 py-3 shadow-sm transition-all active:scale-[0.98] ${selected ? "border-transparent bg-primary/[0.14]" : "border-transparent bg-card/70 hover:bg-card"}`,
|
|
4818
4817
|
children: [
|
|
4819
4818
|
/* @__PURE__ */ jsx47(
|
|
4820
4819
|
"span",
|
|
@@ -6178,7 +6177,7 @@ function SelectableCard({
|
|
|
6178
6177
|
] });
|
|
6179
6178
|
const cardClassName = cn(
|
|
6180
6179
|
"w-full rounded-2xl border p-4 text-left transition-all duration-200",
|
|
6181
|
-
selected ? "border-
|
|
6180
|
+
selected ? "border-transparent bg-primary/[0.14] shadow-sm" : "border-transparent bg-card/70 hover:bg-card",
|
|
6182
6181
|
className
|
|
6183
6182
|
);
|
|
6184
6183
|
if (onClick) {
|
|
@@ -8416,7 +8415,7 @@ function DepositAssetSelection({
|
|
|
8416
8415
|
{
|
|
8417
8416
|
autoFocus: true,
|
|
8418
8417
|
"data-testid": "deposit-asset-search",
|
|
8419
|
-
className: "w-full rounded-xl border border-transparent bg-white/5 py-2.5 pl-10 pr-4 text-sm text-white outline-none transition-all placeholder:text-white/25 focus:border-primary/
|
|
8418
|
+
className: "w-full rounded-xl border border-transparent bg-white/5 py-2.5 pl-10 pr-4 text-sm text-white outline-none transition-all placeholder:text-white/25 focus:border-primary/25 focus:bg-white/8",
|
|
8420
8419
|
onChange: (event) => setSearchQuery(event.target.value),
|
|
8421
8420
|
placeholder: "Search assets...",
|
|
8422
8421
|
type: "text",
|
package/package.json
CHANGED