kaleido-ui 0.1.26 → 0.1.27
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 +23 -5
- package/dist/web/index.d.cts +14 -2
- package/dist/web/index.d.ts +14 -2
- package/dist/web/index.js +23 -5
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -2425,7 +2425,8 @@ function AccountNetworkNotice({
|
|
|
2425
2425
|
}
|
|
2426
2426
|
function AccountStatusPills({
|
|
2427
2427
|
status,
|
|
2428
|
-
network
|
|
2428
|
+
network,
|
|
2429
|
+
hideNetworkChip = false
|
|
2429
2430
|
}) {
|
|
2430
2431
|
const statusUi = getAccountStatusUi(status);
|
|
2431
2432
|
const networkUi = getAccountNetworkUi(network);
|
|
@@ -2440,7 +2441,7 @@ function AccountStatusPills({
|
|
|
2440
2441
|
children: statusUi.label === "Ready" ? "Connected" : statusUi.label
|
|
2441
2442
|
}
|
|
2442
2443
|
),
|
|
2443
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2444
|
+
!hideNetworkChip && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2444
2445
|
"span",
|
|
2445
2446
|
{
|
|
2446
2447
|
className: cn(
|
|
@@ -2501,20 +2502,30 @@ function TransferRouteCard({
|
|
|
2501
2502
|
function ExpandIcon({ expanded }) {
|
|
2502
2503
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { name: expanded ? "expand_less" : "expand_more", size: "md" });
|
|
2503
2504
|
}
|
|
2505
|
+
var ACCOUNT_ACCENT_BG = {
|
|
2506
|
+
RGB: "bg-gradient-to-br from-primary/[0.06] via-card to-primary/[0.10]",
|
|
2507
|
+
SPARK: "bg-gradient-to-br from-info/[0.06] via-card to-info/[0.10]",
|
|
2508
|
+
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]"
|
|
2509
|
+
};
|
|
2504
2510
|
function AccountSettingsRow({
|
|
2505
2511
|
accountId,
|
|
2506
2512
|
title,
|
|
2507
2513
|
status,
|
|
2508
2514
|
network,
|
|
2509
2515
|
description,
|
|
2510
|
-
onClick
|
|
2516
|
+
onClick,
|
|
2517
|
+
hideNetworkChip = false,
|
|
2518
|
+
accent = false
|
|
2511
2519
|
}) {
|
|
2512
2520
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2513
2521
|
"button",
|
|
2514
2522
|
{
|
|
2515
2523
|
type: "button",
|
|
2516
2524
|
onClick,
|
|
2517
|
-
className:
|
|
2525
|
+
className: cn(
|
|
2526
|
+
"w-full rounded-3xl p-4 text-left shadow-inner transition-colors hover:brightness-110",
|
|
2527
|
+
accent ? ACCOUNT_ACCENT_BG[accountId] : "bg-white/[0.03] hover:bg-white/[0.05]"
|
|
2528
|
+
),
|
|
2518
2529
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
2519
2530
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(AccountHeaderIcons, { accountId }),
|
|
2520
2531
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -2525,7 +2536,14 @@ function AccountSettingsRow({
|
|
|
2525
2536
|
] }),
|
|
2526
2537
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { name: "chevron_right", size: "sm", className: "text-white/40" })
|
|
2527
2538
|
] }),
|
|
2528
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mt-3", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2539
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mt-3", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2540
|
+
AccountStatusPills,
|
|
2541
|
+
{
|
|
2542
|
+
status,
|
|
2543
|
+
network,
|
|
2544
|
+
hideNetworkChip
|
|
2545
|
+
}
|
|
2546
|
+
) })
|
|
2529
2547
|
] })
|
|
2530
2548
|
] })
|
|
2531
2549
|
}
|
package/dist/web/index.d.cts
CHANGED
|
@@ -448,9 +448,15 @@ declare function AccountNetworkNotice({ network, children, }: {
|
|
|
448
448
|
network: AccountSettingsNetwork;
|
|
449
449
|
children: ReactNode;
|
|
450
450
|
}): react_jsx_runtime.JSX.Element;
|
|
451
|
-
declare function AccountStatusPills({ status, network, }: {
|
|
451
|
+
declare function AccountStatusPills({ status, network, hideNetworkChip, }: {
|
|
452
452
|
status: 'ready' | 'offline' | 'optional' | string;
|
|
453
453
|
network: AccountSettingsNetwork;
|
|
454
|
+
/**
|
|
455
|
+
* Drop the network (MAINNET / Regtest / …) chip. Used on the Settings
|
|
456
|
+
* main page where the network is implicit context and the chip is
|
|
457
|
+
* design noise next to the connected/offline status.
|
|
458
|
+
*/
|
|
459
|
+
hideNetworkChip?: boolean;
|
|
454
460
|
}): react_jsx_runtime.JSX.Element;
|
|
455
461
|
declare function SectionTitle({ children }: {
|
|
456
462
|
children: ReactNode;
|
|
@@ -470,13 +476,19 @@ declare function TransferRouteCard({ label, summary, eta, feeHint, }: {
|
|
|
470
476
|
declare function ExpandIcon({ expanded }: {
|
|
471
477
|
expanded: boolean;
|
|
472
478
|
}): react_jsx_runtime.JSX.Element;
|
|
473
|
-
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, }: {
|
|
479
|
+
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, hideNetworkChip, accent, }: {
|
|
474
480
|
accountId: AccountSettingsProtocol;
|
|
475
481
|
title: string;
|
|
476
482
|
status: 'ready' | 'offline' | 'optional' | string;
|
|
477
483
|
network: AccountSettingsNetwork;
|
|
478
484
|
description: string;
|
|
479
485
|
onClick: () => void;
|
|
486
|
+
/** Drop the MAINNET / Regtest pill — useful in Settings where the row
|
|
487
|
+
is one of many and the network chip is redundant noise. */
|
|
488
|
+
hideNetworkChip?: boolean;
|
|
489
|
+
/** Render the row with the per-account accent gradient (used on the
|
|
490
|
+
Settings main page so account rows mirror dashboard asset cards). */
|
|
491
|
+
accent?: boolean;
|
|
480
492
|
}): react_jsx_runtime.JSX.Element;
|
|
481
493
|
|
|
482
494
|
interface AccountCapabilitiesCardProps {
|
package/dist/web/index.d.ts
CHANGED
|
@@ -448,9 +448,15 @@ declare function AccountNetworkNotice({ network, children, }: {
|
|
|
448
448
|
network: AccountSettingsNetwork;
|
|
449
449
|
children: ReactNode;
|
|
450
450
|
}): react_jsx_runtime.JSX.Element;
|
|
451
|
-
declare function AccountStatusPills({ status, network, }: {
|
|
451
|
+
declare function AccountStatusPills({ status, network, hideNetworkChip, }: {
|
|
452
452
|
status: 'ready' | 'offline' | 'optional' | string;
|
|
453
453
|
network: AccountSettingsNetwork;
|
|
454
|
+
/**
|
|
455
|
+
* Drop the network (MAINNET / Regtest / …) chip. Used on the Settings
|
|
456
|
+
* main page where the network is implicit context and the chip is
|
|
457
|
+
* design noise next to the connected/offline status.
|
|
458
|
+
*/
|
|
459
|
+
hideNetworkChip?: boolean;
|
|
454
460
|
}): react_jsx_runtime.JSX.Element;
|
|
455
461
|
declare function SectionTitle({ children }: {
|
|
456
462
|
children: ReactNode;
|
|
@@ -470,13 +476,19 @@ declare function TransferRouteCard({ label, summary, eta, feeHint, }: {
|
|
|
470
476
|
declare function ExpandIcon({ expanded }: {
|
|
471
477
|
expanded: boolean;
|
|
472
478
|
}): react_jsx_runtime.JSX.Element;
|
|
473
|
-
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, }: {
|
|
479
|
+
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, hideNetworkChip, accent, }: {
|
|
474
480
|
accountId: AccountSettingsProtocol;
|
|
475
481
|
title: string;
|
|
476
482
|
status: 'ready' | 'offline' | 'optional' | string;
|
|
477
483
|
network: AccountSettingsNetwork;
|
|
478
484
|
description: string;
|
|
479
485
|
onClick: () => void;
|
|
486
|
+
/** Drop the MAINNET / Regtest pill — useful in Settings where the row
|
|
487
|
+
is one of many and the network chip is redundant noise. */
|
|
488
|
+
hideNetworkChip?: boolean;
|
|
489
|
+
/** Render the row with the per-account accent gradient (used on the
|
|
490
|
+
Settings main page so account rows mirror dashboard asset cards). */
|
|
491
|
+
accent?: boolean;
|
|
480
492
|
}): react_jsx_runtime.JSX.Element;
|
|
481
493
|
|
|
482
494
|
interface AccountCapabilitiesCardProps {
|
package/dist/web/index.js
CHANGED
|
@@ -2270,7 +2270,8 @@ function AccountNetworkNotice({
|
|
|
2270
2270
|
}
|
|
2271
2271
|
function AccountStatusPills({
|
|
2272
2272
|
status,
|
|
2273
|
-
network
|
|
2273
|
+
network,
|
|
2274
|
+
hideNetworkChip = false
|
|
2274
2275
|
}) {
|
|
2275
2276
|
const statusUi = getAccountStatusUi(status);
|
|
2276
2277
|
const networkUi = getAccountNetworkUi(network);
|
|
@@ -2285,7 +2286,7 @@ function AccountStatusPills({
|
|
|
2285
2286
|
children: statusUi.label === "Ready" ? "Connected" : statusUi.label
|
|
2286
2287
|
}
|
|
2287
2288
|
),
|
|
2288
|
-
/* @__PURE__ */ jsx30(
|
|
2289
|
+
!hideNetworkChip && /* @__PURE__ */ jsx30(
|
|
2289
2290
|
"span",
|
|
2290
2291
|
{
|
|
2291
2292
|
className: cn(
|
|
@@ -2346,20 +2347,30 @@ function TransferRouteCard({
|
|
|
2346
2347
|
function ExpandIcon({ expanded }) {
|
|
2347
2348
|
return /* @__PURE__ */ jsx30(Icon2, { name: expanded ? "expand_less" : "expand_more", size: "md" });
|
|
2348
2349
|
}
|
|
2350
|
+
var ACCOUNT_ACCENT_BG = {
|
|
2351
|
+
RGB: "bg-gradient-to-br from-primary/[0.06] via-card to-primary/[0.10]",
|
|
2352
|
+
SPARK: "bg-gradient-to-br from-info/[0.06] via-card to-info/[0.10]",
|
|
2353
|
+
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]"
|
|
2354
|
+
};
|
|
2349
2355
|
function AccountSettingsRow({
|
|
2350
2356
|
accountId,
|
|
2351
2357
|
title,
|
|
2352
2358
|
status,
|
|
2353
2359
|
network,
|
|
2354
2360
|
description,
|
|
2355
|
-
onClick
|
|
2361
|
+
onClick,
|
|
2362
|
+
hideNetworkChip = false,
|
|
2363
|
+
accent = false
|
|
2356
2364
|
}) {
|
|
2357
2365
|
return /* @__PURE__ */ jsx30(
|
|
2358
2366
|
"button",
|
|
2359
2367
|
{
|
|
2360
2368
|
type: "button",
|
|
2361
2369
|
onClick,
|
|
2362
|
-
className:
|
|
2370
|
+
className: cn(
|
|
2371
|
+
"w-full rounded-3xl p-4 text-left shadow-inner transition-colors hover:brightness-110",
|
|
2372
|
+
accent ? ACCOUNT_ACCENT_BG[accountId] : "bg-white/[0.03] hover:bg-white/[0.05]"
|
|
2373
|
+
),
|
|
2363
2374
|
children: /* @__PURE__ */ jsxs18("div", { className: "flex items-start gap-3", children: [
|
|
2364
2375
|
/* @__PURE__ */ jsx30(AccountHeaderIcons, { accountId }),
|
|
2365
2376
|
/* @__PURE__ */ jsxs18("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -2370,7 +2381,14 @@ function AccountSettingsRow({
|
|
|
2370
2381
|
] }),
|
|
2371
2382
|
/* @__PURE__ */ jsx30(Icon2, { name: "chevron_right", size: "sm", className: "text-white/40" })
|
|
2372
2383
|
] }),
|
|
2373
|
-
/* @__PURE__ */ jsx30("div", { className: "mt-3", children: /* @__PURE__ */ jsx30(
|
|
2384
|
+
/* @__PURE__ */ jsx30("div", { className: "mt-3", children: /* @__PURE__ */ jsx30(
|
|
2385
|
+
AccountStatusPills,
|
|
2386
|
+
{
|
|
2387
|
+
status,
|
|
2388
|
+
network,
|
|
2389
|
+
hideNetworkChip
|
|
2390
|
+
}
|
|
2391
|
+
) })
|
|
2374
2392
|
] })
|
|
2375
2393
|
] })
|
|
2376
2394
|
}
|
package/package.json
CHANGED