@babylonlabs-io/core-ui 1.35.3 → 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
- if (r)
6131
- return /* @__PURE__ */ u(Mr, { url: r, alt: t, variant: "rounded", size: "tiny", className: "mr-1" });
6132
- const p = (t == null ? void 0 : t.charAt(0).toUpperCase()) || "?";
6133
- return /* @__PURE__ */ u(Mr, { variant: "rounded", size: "tiny", className: "mr-1", children: /* @__PURE__ */ u(
6134
- J,
6135
- {
6136
- as: "span",
6137
- className: "inline-flex h-full w-full items-center justify-center bg-secondary-main text-xs text-accent-contrast",
6138
- children: p
6139
- }
6140
- ) });
6141
- }, l = (p) => !p || p.length <= 12 ? p : `${p.slice(0, 6)}...${p.slice(-6)}`, f = () => a ? n ? /* @__PURE__ */ C("div", { className: "flex items-center gap-1 text-xs text-accent-secondary", children: [
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__ */ C("div", { className: "flex items-center text-xs text-accent-secondary", children: [
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
- Ju,
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
- logoUrl: i.logo_url,
6154
- rank: i.rank,
6155
- moniker: (c = i.description) == null ? void 0 : c.moniker,
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
- /* @__PURE__ */ u(J, { as: "div", className: "text-base font-medium text-accent-primary", children: (d = i.description) == null ? void 0 : d.moniker })
6159
+ c()
6162
6160
  ] })
6163
6161
  ] }),
6164
6162
  o ? /* @__PURE__ */ u(
@@ -7689,7 +7687,7 @@ const Eo = ({
7689
7687
  ),
7690
7688
  children: /* @__PURE__ */ C("div", { className: "p-4 space-y-6 w-full text-primary-main", children: [
7691
7689
  /* @__PURE__ */ C("div", { className: "flex flex-row gap-2 w-full md:flex-col", children: [
7692
- /* @__PURE__ */ u(
7690
+ t && /* @__PURE__ */ u(
7693
7691
  Eo,
7694
7692
  {
7695
7693
  walletType: "Bitcoin",