kaleido-ui 0.1.26 → 0.1.28

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.
@@ -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,31 +2502,52 @@ 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,
2519
+ beta = false
2511
2520
  }) {
2512
2521
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2513
2522
  "button",
2514
2523
  {
2515
2524
  type: "button",
2516
2525
  onClick,
2517
- className: "w-full rounded-3xl bg-white/[0.03] p-4 text-left shadow-inner transition-colors hover:bg-white/[0.05]",
2526
+ className: cn(
2527
+ "w-full rounded-3xl p-4 text-left shadow-inner transition-colors hover:brightness-110",
2528
+ accent ? ACCOUNT_ACCENT_BG[accountId] : "bg-white/[0.03] hover:bg-white/[0.05]"
2529
+ ),
2518
2530
  children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-start gap-3", children: [
2519
2531
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(AccountHeaderIcons, { accountId }),
2520
2532
  /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "min-w-0 flex-1", children: [
2521
2533
  /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
2522
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
2523
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-bold text-white", children: title }),
2534
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "min-w-0", children: [
2535
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2", children: [
2536
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-bold text-white", children: title }),
2537
+ beta && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "rounded-full bg-warning/15 px-1.5 py-0.5 text-tiny font-bold uppercase tracking-wider text-warning", children: "Beta" })
2538
+ ] }),
2524
2539
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
2525
2540
  ] }),
2526
2541
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { name: "chevron_right", size: "sm", className: "text-white/40" })
2527
2542
  ] }),
2528
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mt-3", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(AccountStatusPills, { status, network }) })
2543
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mt-3", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2544
+ AccountStatusPills,
2545
+ {
2546
+ status,
2547
+ network,
2548
+ hideNetworkChip
2549
+ }
2550
+ ) })
2529
2551
  ] })
2530
2552
  ] })
2531
2553
  }
@@ -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,22 @@ 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, beta, }: {
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;
492
+ /** Show a small BETA chip next to the title — used for accounts that
493
+ haven't graduated to mainnet yet (e.g. RGB on testchains only). */
494
+ beta?: boolean;
480
495
  }): react_jsx_runtime.JSX.Element;
481
496
 
482
497
  interface AccountCapabilitiesCardProps {
@@ -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,22 @@ 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, beta, }: {
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;
492
+ /** Show a small BETA chip next to the title — used for accounts that
493
+ haven't graduated to mainnet yet (e.g. RGB on testchains only). */
494
+ beta?: boolean;
480
495
  }): react_jsx_runtime.JSX.Element;
481
496
 
482
497
  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,31 +2347,52 @@ 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,
2364
+ beta = false
2356
2365
  }) {
2357
2366
  return /* @__PURE__ */ jsx30(
2358
2367
  "button",
2359
2368
  {
2360
2369
  type: "button",
2361
2370
  onClick,
2362
- className: "w-full rounded-3xl bg-white/[0.03] p-4 text-left shadow-inner transition-colors hover:bg-white/[0.05]",
2371
+ className: cn(
2372
+ "w-full rounded-3xl p-4 text-left shadow-inner transition-colors hover:brightness-110",
2373
+ accent ? ACCOUNT_ACCENT_BG[accountId] : "bg-white/[0.03] hover:bg-white/[0.05]"
2374
+ ),
2363
2375
  children: /* @__PURE__ */ jsxs18("div", { className: "flex items-start gap-3", children: [
2364
2376
  /* @__PURE__ */ jsx30(AccountHeaderIcons, { accountId }),
2365
2377
  /* @__PURE__ */ jsxs18("div", { className: "min-w-0 flex-1", children: [
2366
2378
  /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between gap-3", children: [
2367
- /* @__PURE__ */ jsxs18("div", { children: [
2368
- /* @__PURE__ */ jsx30("p", { className: "text-sm font-bold text-white", children: title }),
2379
+ /* @__PURE__ */ jsxs18("div", { className: "min-w-0", children: [
2380
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
2381
+ /* @__PURE__ */ jsx30("p", { className: "text-sm font-bold text-white", children: title }),
2382
+ beta && /* @__PURE__ */ jsx30("span", { className: "rounded-full bg-warning/15 px-1.5 py-0.5 text-tiny font-bold uppercase tracking-wider text-warning", children: "Beta" })
2383
+ ] }),
2369
2384
  /* @__PURE__ */ jsx30("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
2370
2385
  ] }),
2371
2386
  /* @__PURE__ */ jsx30(Icon2, { name: "chevron_right", size: "sm", className: "text-white/40" })
2372
2387
  ] }),
2373
- /* @__PURE__ */ jsx30("div", { className: "mt-3", children: /* @__PURE__ */ jsx30(AccountStatusPills, { status, network }) })
2388
+ /* @__PURE__ */ jsx30("div", { className: "mt-3", children: /* @__PURE__ */ jsx30(
2389
+ AccountStatusPills,
2390
+ {
2391
+ status,
2392
+ network,
2393
+ hideNetworkChip
2394
+ }
2395
+ ) })
2374
2396
  ] })
2375
2397
  ] })
2376
2398
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "KaleidoSwap shared UI library — design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit",
5
5
  "license": "MIT",
6
6
  "type": "module",