@babylonlabs-io/core-ui 1.35.2 → 1.36.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
@@ -4565,16 +4565,14 @@ function fo({
4565
4565
  className: o,
4566
4566
  placement: a = "top",
4567
4567
  tooltipVariant: s = "primary",
4568
- offset: l = [0, 8]
4568
+ offset: l = [8, 8]
4569
4569
  }) {
4570
4570
  const f = gn(), c = Ou[r], d = {
4571
4571
  name: "customOffset",
4572
- fn: ({ x: g, y: v }) => ({
4573
- x: g + l[0],
4574
- // horizontal offset
4575
- y: v + l[1]
4576
- // vertical offset
4577
- })
4572
+ fn: ({ x: g, y: v, placement: b }) => {
4573
+ let N = g, w = v;
4574
+ return b === "top" ? w = v - l[1] : b === "bottom" ? w = v + l[1] : b === "left" ? N = g - l[0] : b === "right" && (N = g + l[0]), { x: N, y: w };
4575
+ }
4578
4576
  };
4579
4577
  if (!t)
4580
4578
  return n ? /* @__PURE__ */ u("span", { className: k("inline-flex items-center gap-1", c, o), children: e }) : /* @__PURE__ */ u("div", { className: k("inline-flex items-center gap-1", c, o), children: e });
@@ -4588,7 +4586,6 @@ function fo({
4588
4586
  "data-tooltip-content": typeof t == "string" ? t : void 0,
4589
4587
  "data-tooltip-place": a,
4590
4588
  "data-tooltip-position-strategy": "fixed",
4591
- "data-tooltip-offset": 0,
4592
4589
  "data-tooltip-wrapper": "span",
4593
4590
  children: e
4594
4591
  }
@@ -4621,7 +4618,6 @@ function fo({
4621
4618
  "data-tooltip-content": typeof t == "string" ? t : void 0,
4622
4619
  "data-tooltip-place": a,
4623
4620
  "data-tooltip-position-strategy": "fixed",
4624
- "data-tooltip-offset": 0,
4625
4621
  "data-tooltip-wrapper": "span",
4626
4622
  children: h
4627
4623
  }
@@ -7693,7 +7689,7 @@ const Eo = ({
7693
7689
  ),
7694
7690
  children: /* @__PURE__ */ C("div", { className: "p-4 space-y-6 w-full text-primary-main", children: [
7695
7691
  /* @__PURE__ */ C("div", { className: "flex flex-row gap-2 w-full md:flex-col", children: [
7696
- /* @__PURE__ */ u(
7692
+ t && /* @__PURE__ */ u(
7697
7693
  Eo,
7698
7694
  {
7699
7695
  walletType: "Bitcoin",