@kosdev-code/base-ui-components 0.1.0-dev.5197 → 0.1.0-dev.5198
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/components/atoms/tooltip/base-tooltip.d.ts +2 -1
- package/components/atoms/tooltip/base-tooltip.d.ts.map +1 -1
- package/index.cjs +1 -1
- package/index.cjs.map +1 -1
- package/index.js +18 -20
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -5349,15 +5349,16 @@ const [uu, Te, Ce] = N([
|
|
|
5349
5349
|
openDelay: r = 250,
|
|
5350
5350
|
className: i,
|
|
5351
5351
|
placement: a,
|
|
5352
|
-
offset: s
|
|
5352
|
+
offset: s,
|
|
5353
|
+
disabled: d
|
|
5353
5354
|
}) => {
|
|
5354
|
-
const
|
|
5355
|
+
const u = A(null), [f, p] = _(n);
|
|
5355
5356
|
V(() => {
|
|
5356
|
-
n !== void 0 &&
|
|
5357
|
+
n !== void 0 && p(n);
|
|
5357
5358
|
}, [n]);
|
|
5358
|
-
const { refs:
|
|
5359
|
-
open:
|
|
5360
|
-
onOpenChange: n === void 0 ?
|
|
5359
|
+
const { refs: g, floatingStyles: b, context: m } = ho({
|
|
5360
|
+
open: f,
|
|
5361
|
+
onOpenChange: n === void 0 ? p : void 0,
|
|
5361
5362
|
placement: a ?? "top",
|
|
5362
5363
|
whileElementsMounted: en,
|
|
5363
5364
|
// Make sure the tooltip stays on the screen
|
|
@@ -5365,32 +5366,29 @@ const [uu, Te, Ce] = N([
|
|
|
5365
5366
|
Ns(s ?? 12),
|
|
5366
5367
|
Qo({ fallbackAxisSideDirection: "start" }),
|
|
5367
5368
|
Rs(),
|
|
5368
|
-
Fs({ element:
|
|
5369
|
+
Fs({ element: u })
|
|
5369
5370
|
]
|
|
5370
|
-
}),
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
x,
|
|
5374
|
-
k
|
|
5375
|
-
]);
|
|
5371
|
+
}), v = Ws(m, { move: !1, restMs: r }), x = _s(m), k = go(m), y = tn(m, { role: "tooltip" }), { getReferenceProps: C, getFloatingProps: S } = mo(
|
|
5372
|
+
d ? [] : [v, x, k, y]
|
|
5373
|
+
);
|
|
5376
5374
|
return /* @__PURE__ */ $(ce, { children: [
|
|
5377
5375
|
/* @__PURE__ */ c(
|
|
5378
5376
|
gu,
|
|
5379
5377
|
{
|
|
5380
5378
|
className: i,
|
|
5381
|
-
ref:
|
|
5382
|
-
...
|
|
5379
|
+
ref: g.setReference,
|
|
5380
|
+
...C(),
|
|
5383
5381
|
children: t
|
|
5384
5382
|
}
|
|
5385
5383
|
),
|
|
5386
|
-
/* @__PURE__ */ c(Zt, { children:
|
|
5384
|
+
/* @__PURE__ */ c(Zt, { children: f && /* @__PURE__ */ $(
|
|
5387
5385
|
mu,
|
|
5388
5386
|
{
|
|
5389
|
-
ref:
|
|
5390
|
-
style:
|
|
5391
|
-
...
|
|
5387
|
+
ref: g.setFloating,
|
|
5388
|
+
style: b,
|
|
5389
|
+
...S(),
|
|
5392
5390
|
children: [
|
|
5393
|
-
/* @__PURE__ */ c(As, { ...e, ref:
|
|
5391
|
+
/* @__PURE__ */ c(As, { ...e, ref: u, context: m }),
|
|
5394
5392
|
o
|
|
5395
5393
|
]
|
|
5396
5394
|
}
|