@babylonlabs-io/core-ui 1.36.0 → 1.37.0
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/index.es.js
CHANGED
|
@@ -6124,41 +6124,39 @@ const Gu = {
|
|
|
6124
6124
|
) });
|
|
6125
6125
|
};
|
|
6126
6126
|
function Ds({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRemove: o, showChain: a = !0 }) {
|
|
6127
|
-
var c, d;
|
|
6128
6127
|
if (!i) return null;
|
|
6129
|
-
const s = () => {
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6128
|
+
const s = (t == null ? void 0 : t.charAt(0).toUpperCase()) || "?", l = (d) => !d || d.length <= 12 ? d : `${d.slice(0, 6)}...${d.slice(-6)}`, f = () => {
|
|
6129
|
+
var d, p;
|
|
6130
|
+
return /* @__PURE__ */ C("div", { className: "flex items-center text-xs text-accent-secondary", children: [
|
|
6131
|
+
/* @__PURE__ */ u(
|
|
6132
|
+
Ju,
|
|
6133
|
+
{
|
|
6134
|
+
logoUrl: i.logo_url,
|
|
6135
|
+
rank: i.rank,
|
|
6136
|
+
moniker: (d = i.description) == null ? void 0 : d.moniker,
|
|
6137
|
+
size: "sm",
|
|
6138
|
+
className: "mr-1"
|
|
6139
|
+
}
|
|
6140
|
+
),
|
|
6141
|
+
(p = i.description) == null ? void 0 : p.moniker
|
|
6142
|
+
] });
|
|
6143
|
+
}, c = () => a ? n ? /* @__PURE__ */ C(J, { as: "div", className: "flex items-center gap-1 text-base font-medium text-accent-primary", children: [
|
|
6142
6144
|
l(n),
|
|
6143
6145
|
/* @__PURE__ */ u(xc, { value: n, className: "cursor-pointer", copiedText: "✓", children: /* @__PURE__ */ u(ui, { size: 12 }) })
|
|
6144
|
-
] }) : /* @__PURE__ */
|
|
6145
|
-
s(),
|
|
6146
|
-
t
|
|
6147
|
-
] }) : null;
|
|
6146
|
+
] }) : /* @__PURE__ */ u(J, { as: "div", className: "text-base font-medium text-accent-primary", children: t }) : null;
|
|
6148
6147
|
return /* @__PURE__ */ C("div", { className: "flex flex-row items-center justify-between", children: [
|
|
6149
6148
|
/* @__PURE__ */ C("div", { className: "flex h-10 flex-row gap-2", children: [
|
|
6150
|
-
/* @__PURE__ */ u("div", { className: "shrink-0", children: /* @__PURE__ */ u(
|
|
6151
|
-
|
|
6149
|
+
/* @__PURE__ */ u("div", { className: "shrink-0", children: r ? /* @__PURE__ */ u(Mr, { url: r, alt: t, variant: "rounded", size: "large" }) : /* @__PURE__ */ u(Mr, { variant: "rounded", size: "large", children: /* @__PURE__ */ u(
|
|
6150
|
+
J,
|
|
6152
6151
|
{
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
size: "lg"
|
|
6152
|
+
as: "span",
|
|
6153
|
+
className: "inline-flex h-full w-full items-center justify-center bg-secondary-main text-xs text-accent-contrast",
|
|
6154
|
+
children: s
|
|
6157
6155
|
}
|
|
6158
|
-
) }),
|
|
6156
|
+
) }) }),
|
|
6159
6157
|
/* @__PURE__ */ C("div", { className: "flex flex-col justify-center text-accent-primary", children: [
|
|
6160
6158
|
f(),
|
|
6161
|
-
|
|
6159
|
+
c()
|
|
6162
6160
|
] })
|
|
6163
6161
|
] }),
|
|
6164
6162
|
o ? /* @__PURE__ */ u(
|