kaleido-ui 0.1.94 → 0.1.96
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 +44 -47
- package/dist/web/index.js +44 -47
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -2808,7 +2808,7 @@ function OptionSelector({
|
|
|
2808
2808
|
!compact && "w-full"
|
|
2809
2809
|
),
|
|
2810
2810
|
children: [
|
|
2811
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "truncate", children: selected?.label }),
|
|
2811
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "truncate leading-normal", children: selected?.label }),
|
|
2812
2812
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2813
2813
|
Icon,
|
|
2814
2814
|
{
|
|
@@ -6482,52 +6482,49 @@ var MobileHeroAnimation = ({
|
|
|
6482
6482
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "opacity", values: "0.4;0;0.4", dur: "2.5s", repeatCount: "indefinite" })
|
|
6483
6483
|
] }) }),
|
|
6484
6484
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("circle", { cx: C, cy: C, r: 80, fill: "none", stroke: "rgba(255,255,255,0.1)", strokeWidth: "1", strokeDasharray: "4 4" }),
|
|
6485
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
{
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
] }, `line-${i}`);
|
|
6529
|
-
})
|
|
6530
|
-
] }),
|
|
6485
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6486
|
+
"g",
|
|
6487
|
+
{
|
|
6488
|
+
style: {
|
|
6489
|
+
animation: anim ? "mha-orbit-spin 20s linear infinite" : void 0,
|
|
6490
|
+
transformOrigin: "50% 50%",
|
|
6491
|
+
transformBox: "view-box"
|
|
6492
|
+
},
|
|
6493
|
+
children: PROTOCOLS.map((protocol, i) => {
|
|
6494
|
+
const angle = i / N * 2 * Math.PI;
|
|
6495
|
+
const dx = Math.cos(angle);
|
|
6496
|
+
const dy = Math.sin(angle);
|
|
6497
|
+
const x1 = C + dx * 28;
|
|
6498
|
+
const y1 = C + dy * 28;
|
|
6499
|
+
const x2 = C + dx * (ORBIT_R - BADGE_HALF);
|
|
6500
|
+
const y2 = C + dy * (ORBIT_R - BADGE_HALF);
|
|
6501
|
+
const color = PROTOCOL_COLORS[protocol.network] ?? "#ffffff";
|
|
6502
|
+
const dur = `${2 + i * 0.3}s`;
|
|
6503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("g", { children: [
|
|
6504
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6505
|
+
"line",
|
|
6506
|
+
{
|
|
6507
|
+
x1,
|
|
6508
|
+
y1,
|
|
6509
|
+
x2,
|
|
6510
|
+
y2,
|
|
6511
|
+
stroke: color,
|
|
6512
|
+
strokeWidth: "0.8",
|
|
6513
|
+
strokeDasharray: "2 4",
|
|
6514
|
+
opacity: "0.25",
|
|
6515
|
+
children: anim && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "stroke-dashoffset", from: "0", to: "-12", dur: `${1.5 + i * 0.2}s`, repeatCount: "indefinite" })
|
|
6516
|
+
}
|
|
6517
|
+
),
|
|
6518
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("circle", { r: "2", fill: color, opacity: "0", children: anim && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
6519
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "cx", values: `${x1};${x2}`, dur, repeatCount: "indefinite" }),
|
|
6520
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "cy", values: `${y1};${y2}`, dur, repeatCount: "indefinite" }),
|
|
6521
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "opacity", values: "0;0.85;0", dur, repeatCount: "indefinite" }),
|
|
6522
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "r", values: "1.5;2.5;1.5", dur, repeatCount: "indefinite" })
|
|
6523
|
+
] }) })
|
|
6524
|
+
] }, `line-${i}`);
|
|
6525
|
+
})
|
|
6526
|
+
}
|
|
6527
|
+
),
|
|
6531
6528
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("circle", { cx: C, cy: C, r: "42", fill: "url(#mh-center-glow)", children: anim && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "r", values: "38;46;38", dur: "4s", repeatCount: "indefinite" }) }),
|
|
6532
6529
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("circle", { cx: C, cy: C, r: "29", fill: "none", stroke: "url(#mh-bp)", strokeWidth: "1", opacity: "0", children: anim && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
6533
6530
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("animate", { attributeName: "r", values: "27;38", dur: "3s", repeatCount: "indefinite" }),
|
package/dist/web/index.js
CHANGED
|
@@ -2626,7 +2626,7 @@ function OptionSelector({
|
|
|
2626
2626
|
!compact && "w-full"
|
|
2627
2627
|
),
|
|
2628
2628
|
children: [
|
|
2629
|
-
/* @__PURE__ */ jsx32("span", { className: "truncate", children: selected?.label }),
|
|
2629
|
+
/* @__PURE__ */ jsx32("span", { className: "truncate leading-normal", children: selected?.label }),
|
|
2630
2630
|
/* @__PURE__ */ jsx32(
|
|
2631
2631
|
Icon,
|
|
2632
2632
|
{
|
|
@@ -6300,52 +6300,49 @@ var MobileHeroAnimation = ({
|
|
|
6300
6300
|
/* @__PURE__ */ jsx73("animate", { attributeName: "opacity", values: "0.4;0;0.4", dur: "2.5s", repeatCount: "indefinite" })
|
|
6301
6301
|
] }) }),
|
|
6302
6302
|
/* @__PURE__ */ jsx73("circle", { cx: C, cy: C, r: 80, fill: "none", stroke: "rgba(255,255,255,0.1)", strokeWidth: "1", strokeDasharray: "4 4" }),
|
|
6303
|
-
/* @__PURE__ */
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
{
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
] }, `line-${i}`);
|
|
6347
|
-
})
|
|
6348
|
-
] }),
|
|
6303
|
+
/* @__PURE__ */ jsx73(
|
|
6304
|
+
"g",
|
|
6305
|
+
{
|
|
6306
|
+
style: {
|
|
6307
|
+
animation: anim ? "mha-orbit-spin 20s linear infinite" : void 0,
|
|
6308
|
+
transformOrigin: "50% 50%",
|
|
6309
|
+
transformBox: "view-box"
|
|
6310
|
+
},
|
|
6311
|
+
children: PROTOCOLS.map((protocol, i) => {
|
|
6312
|
+
const angle = i / N * 2 * Math.PI;
|
|
6313
|
+
const dx = Math.cos(angle);
|
|
6314
|
+
const dy = Math.sin(angle);
|
|
6315
|
+
const x1 = C + dx * 28;
|
|
6316
|
+
const y1 = C + dy * 28;
|
|
6317
|
+
const x2 = C + dx * (ORBIT_R - BADGE_HALF);
|
|
6318
|
+
const y2 = C + dy * (ORBIT_R - BADGE_HALF);
|
|
6319
|
+
const color = PROTOCOL_COLORS[protocol.network] ?? "#ffffff";
|
|
6320
|
+
const dur = `${2 + i * 0.3}s`;
|
|
6321
|
+
return /* @__PURE__ */ jsxs59("g", { children: [
|
|
6322
|
+
/* @__PURE__ */ jsx73(
|
|
6323
|
+
"line",
|
|
6324
|
+
{
|
|
6325
|
+
x1,
|
|
6326
|
+
y1,
|
|
6327
|
+
x2,
|
|
6328
|
+
y2,
|
|
6329
|
+
stroke: color,
|
|
6330
|
+
strokeWidth: "0.8",
|
|
6331
|
+
strokeDasharray: "2 4",
|
|
6332
|
+
opacity: "0.25",
|
|
6333
|
+
children: anim && /* @__PURE__ */ jsx73("animate", { attributeName: "stroke-dashoffset", from: "0", to: "-12", dur: `${1.5 + i * 0.2}s`, repeatCount: "indefinite" })
|
|
6334
|
+
}
|
|
6335
|
+
),
|
|
6336
|
+
/* @__PURE__ */ jsx73("circle", { r: "2", fill: color, opacity: "0", children: anim && /* @__PURE__ */ jsxs59(Fragment13, { children: [
|
|
6337
|
+
/* @__PURE__ */ jsx73("animate", { attributeName: "cx", values: `${x1};${x2}`, dur, repeatCount: "indefinite" }),
|
|
6338
|
+
/* @__PURE__ */ jsx73("animate", { attributeName: "cy", values: `${y1};${y2}`, dur, repeatCount: "indefinite" }),
|
|
6339
|
+
/* @__PURE__ */ jsx73("animate", { attributeName: "opacity", values: "0;0.85;0", dur, repeatCount: "indefinite" }),
|
|
6340
|
+
/* @__PURE__ */ jsx73("animate", { attributeName: "r", values: "1.5;2.5;1.5", dur, repeatCount: "indefinite" })
|
|
6341
|
+
] }) })
|
|
6342
|
+
] }, `line-${i}`);
|
|
6343
|
+
})
|
|
6344
|
+
}
|
|
6345
|
+
),
|
|
6349
6346
|
/* @__PURE__ */ jsx73("circle", { cx: C, cy: C, r: "42", fill: "url(#mh-center-glow)", children: anim && /* @__PURE__ */ jsx73("animate", { attributeName: "r", values: "38;46;38", dur: "4s", repeatCount: "indefinite" }) }),
|
|
6350
6347
|
/* @__PURE__ */ jsx73("circle", { cx: C, cy: C, r: "29", fill: "none", stroke: "url(#mh-bp)", strokeWidth: "1", opacity: "0", children: anim && /* @__PURE__ */ jsxs59(Fragment13, { children: [
|
|
6351
6348
|
/* @__PURE__ */ jsx73("animate", { attributeName: "r", values: "27;38", dur: "3s", repeatCount: "indefinite" }),
|
package/package.json
CHANGED