@babylonlabs-io/core-ui 1.35.2 → 1.35.3
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 = [
|
|
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
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
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
|
}
|