kaleido-ui 0.1.38 → 0.1.39
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 +29 -9
- package/dist/web/index.js +29 -9
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -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 =
|
|
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,28 @@ 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)(
|
|
5472
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { style: {
|
|
5473
|
+
width: "100%",
|
|
5474
|
+
height: "100%",
|
|
5475
|
+
borderRadius: "50%",
|
|
5476
|
+
background: "rgba(255,255,255,0.05)",
|
|
5477
|
+
backdropFilter: "blur(4px)",
|
|
5478
|
+
border: `1px solid ${color}55`,
|
|
5479
|
+
display: "flex",
|
|
5480
|
+
alignItems: "center",
|
|
5481
|
+
justifyContent: "center"
|
|
5482
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5483
|
+
"img",
|
|
5484
|
+
{
|
|
5485
|
+
src: `${iconBasePath}/${protocol.iconSuffix}`,
|
|
5486
|
+
alt: protocol.name,
|
|
5487
|
+
style: { width: 20, height: 20, objectFit: "contain" }
|
|
5488
|
+
}
|
|
5489
|
+
) })
|
|
5470
5490
|
},
|
|
5471
5491
|
i
|
|
5472
5492
|
);
|
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 =
|
|
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,28 @@ 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(
|
|
5312
|
+
children: /* @__PURE__ */ jsx57("div", { style: {
|
|
5313
|
+
width: "100%",
|
|
5314
|
+
height: "100%",
|
|
5315
|
+
borderRadius: "50%",
|
|
5316
|
+
background: "rgba(255,255,255,0.05)",
|
|
5317
|
+
backdropFilter: "blur(4px)",
|
|
5318
|
+
border: `1px solid ${color}55`,
|
|
5319
|
+
display: "flex",
|
|
5320
|
+
alignItems: "center",
|
|
5321
|
+
justifyContent: "center"
|
|
5322
|
+
}, children: /* @__PURE__ */ jsx57(
|
|
5323
|
+
"img",
|
|
5324
|
+
{
|
|
5325
|
+
src: `${iconBasePath}/${protocol.iconSuffix}`,
|
|
5326
|
+
alt: protocol.name,
|
|
5327
|
+
style: { width: 20, height: 20, objectFit: "contain" }
|
|
5328
|
+
}
|
|
5329
|
+
) })
|
|
5310
5330
|
},
|
|
5311
5331
|
i
|
|
5312
5332
|
);
|
package/package.json
CHANGED