kaleido-ui 0.1.38 → 0.1.40

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.
@@ -5237,17 +5237,17 @@ function RecoveryPhraseCard({
5237
5237
  var import_react13 = require("react");
5238
5238
  var import_jsx_runtime57 = require("react/jsx-runtime");
5239
5239
  var PROTOCOLS = [
5240
- { name: "Bitcoin", network: "Bitcoin" },
5241
- { name: "Lightning", network: "LN" },
5242
- { name: "RGB", network: "RGB20" },
5243
- { name: "Spark", network: "Spark" },
5244
- { name: "Arkade", network: "Arkade" },
5245
- { name: "Liquid", network: "Liquid" },
5246
- { name: "Taproot Assets", network: "Taproot" }
5240
+ { name: "Bitcoin", network: "Bitcoin", iconSuffix: "bitcoin/bitcoin-logo.svg" },
5241
+ { name: "Lightning", network: "LN", iconSuffix: "lightning/lightning.svg" },
5242
+ { name: "RGB", network: "RGB20", iconSuffix: "rgb/rgb-logo.svg" },
5243
+ { name: "Spark", network: "Spark", iconSuffix: "spark/Asterisk/Spark Asterisk White.svg" },
5244
+ { name: "Arkade", network: "Arkade", iconSuffix: "arkade/arkade-icon.svg" },
5245
+ { name: "Liquid", network: "Liquid", iconSuffix: "liquid/logo-liquid.svg" },
5246
+ { name: "Taproot Assets", network: "Taproot", iconSuffix: "taproot-assets/tapass-logo.svg" }
5247
5247
  ];
5248
5248
  var C = 140;
5249
5249
  var ORBIT_R = 118;
5250
- var BADGE_SIZE = 32;
5250
+ var BADGE_SIZE = 40;
5251
5251
  var BADGE_HALF = BADGE_SIZE / 2;
5252
5252
  var N = PROTOCOLS.length;
5253
5253
  var PROTOCOL_COLORS = {
@@ -5457,6 +5457,7 @@ var MobileHeroAnimation = ({
5457
5457
  const angle = i / N * 2 * Math.PI;
5458
5458
  const x = C + Math.cos(angle) * ORBIT_R - BADGE_HALF;
5459
5459
  const y = C + Math.sin(angle) * ORBIT_R - BADGE_HALF;
5460
+ const color = PROTOCOL_COLORS[protocol.network] ?? "#ffffff";
5460
5461
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5461
5462
  "div",
5462
5463
  {
@@ -5464,9 +5465,29 @@ var MobileHeroAnimation = ({
5464
5465
  position: "absolute",
5465
5466
  left: x,
5466
5467
  top: y,
5468
+ width: BADGE_SIZE,
5469
+ height: BADGE_SIZE,
5467
5470
  animation: anim ? "mha-counter-spin 20s linear infinite" : "none"
5468
5471
  },
5469
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(NetworkBadge, { network: protocol.network, iconBasePath, size: "md" })
5472
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { style: {
5473
+ width: "100%",
5474
+ height: "100%",
5475
+ borderRadius: "50%",
5476
+ overflow: "hidden",
5477
+ background: "rgba(255,255,255,0.05)",
5478
+ backdropFilter: "blur(4px)",
5479
+ border: `1px solid ${color}55`,
5480
+ display: "flex",
5481
+ alignItems: "center",
5482
+ justifyContent: "center"
5483
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5484
+ "img",
5485
+ {
5486
+ src: `${iconBasePath}/${protocol.iconSuffix}`,
5487
+ alt: protocol.name,
5488
+ style: { width: 20, height: 20, objectFit: "contain" }
5489
+ }
5490
+ ) })
5470
5491
  },
5471
5492
  i
5472
5493
  );
package/dist/web/index.js CHANGED
@@ -5077,17 +5077,17 @@ function RecoveryPhraseCard({
5077
5077
  import { useRef as useRef4, useEffect as useEffect8, useState as useState12 } from "react";
5078
5078
  import { Fragment as Fragment12, jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
5079
5079
  var PROTOCOLS = [
5080
- { name: "Bitcoin", network: "Bitcoin" },
5081
- { name: "Lightning", network: "LN" },
5082
- { name: "RGB", network: "RGB20" },
5083
- { name: "Spark", network: "Spark" },
5084
- { name: "Arkade", network: "Arkade" },
5085
- { name: "Liquid", network: "Liquid" },
5086
- { name: "Taproot Assets", network: "Taproot" }
5080
+ { name: "Bitcoin", network: "Bitcoin", iconSuffix: "bitcoin/bitcoin-logo.svg" },
5081
+ { name: "Lightning", network: "LN", iconSuffix: "lightning/lightning.svg" },
5082
+ { name: "RGB", network: "RGB20", iconSuffix: "rgb/rgb-logo.svg" },
5083
+ { name: "Spark", network: "Spark", iconSuffix: "spark/Asterisk/Spark Asterisk White.svg" },
5084
+ { name: "Arkade", network: "Arkade", iconSuffix: "arkade/arkade-icon.svg" },
5085
+ { name: "Liquid", network: "Liquid", iconSuffix: "liquid/logo-liquid.svg" },
5086
+ { name: "Taproot Assets", network: "Taproot", iconSuffix: "taproot-assets/tapass-logo.svg" }
5087
5087
  ];
5088
5088
  var C = 140;
5089
5089
  var ORBIT_R = 118;
5090
- var BADGE_SIZE = 32;
5090
+ var BADGE_SIZE = 40;
5091
5091
  var BADGE_HALF = BADGE_SIZE / 2;
5092
5092
  var N = PROTOCOLS.length;
5093
5093
  var PROTOCOL_COLORS = {
@@ -5297,6 +5297,7 @@ var MobileHeroAnimation = ({
5297
5297
  const angle = i / N * 2 * Math.PI;
5298
5298
  const x = C + Math.cos(angle) * ORBIT_R - BADGE_HALF;
5299
5299
  const y = C + Math.sin(angle) * ORBIT_R - BADGE_HALF;
5300
+ const color = PROTOCOL_COLORS[protocol.network] ?? "#ffffff";
5300
5301
  return /* @__PURE__ */ jsx57(
5301
5302
  "div",
5302
5303
  {
@@ -5304,9 +5305,29 @@ var MobileHeroAnimation = ({
5304
5305
  position: "absolute",
5305
5306
  left: x,
5306
5307
  top: y,
5308
+ width: BADGE_SIZE,
5309
+ height: BADGE_SIZE,
5307
5310
  animation: anim ? "mha-counter-spin 20s linear infinite" : "none"
5308
5311
  },
5309
- children: /* @__PURE__ */ jsx57(NetworkBadge, { network: protocol.network, iconBasePath, size: "md" })
5312
+ children: /* @__PURE__ */ jsx57("div", { style: {
5313
+ width: "100%",
5314
+ height: "100%",
5315
+ borderRadius: "50%",
5316
+ overflow: "hidden",
5317
+ background: "rgba(255,255,255,0.05)",
5318
+ backdropFilter: "blur(4px)",
5319
+ border: `1px solid ${color}55`,
5320
+ display: "flex",
5321
+ alignItems: "center",
5322
+ justifyContent: "center"
5323
+ }, children: /* @__PURE__ */ jsx57(
5324
+ "img",
5325
+ {
5326
+ src: `${iconBasePath}/${protocol.iconSuffix}`,
5327
+ alt: protocol.name,
5328
+ style: { width: 20, height: 20, objectFit: "contain" }
5329
+ }
5330
+ ) })
5310
5331
  },
5311
5332
  i
5312
5333
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
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",