@kosdev-code/base-ui-components 0.1.0-dev.5195 → 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/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 d = A(null), [u, f] = _(n);
5355
+ const u = A(null), [f, p] = _(n);
5355
5356
  V(() => {
5356
- n !== void 0 && f(n);
5357
+ n !== void 0 && p(n);
5357
5358
  }, [n]);
5358
- const { refs: p, floatingStyles: g, context: b } = ho({
5359
- open: u,
5360
- onOpenChange: n === void 0 ? f : 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: d })
5369
+ Fs({ element: u })
5369
5370
  ]
5370
- }), m = Ws(b, { move: !1, restMs: r }), v = _s(b), x = go(b), k = tn(b, { role: "tooltip" }), { getReferenceProps: y, getFloatingProps: C } = mo([
5371
- m,
5372
- v,
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: p.setReference,
5382
- ...y(),
5379
+ ref: g.setReference,
5380
+ ...C(),
5383
5381
  children: t
5384
5382
  }
5385
5383
  ),
5386
- /* @__PURE__ */ c(Zt, { children: u && /* @__PURE__ */ $(
5384
+ /* @__PURE__ */ c(Zt, { children: f && /* @__PURE__ */ $(
5387
5385
  mu,
5388
5386
  {
5389
- ref: p.setFloating,
5390
- style: g,
5391
- ...C(),
5387
+ ref: g.setFloating,
5388
+ style: b,
5389
+ ...S(),
5392
5390
  children: [
5393
- /* @__PURE__ */ c(As, { ...e, ref: d, context: b }),
5391
+ /* @__PURE__ */ c(As, { ...e, ref: u, context: m }),
5394
5392
  o
5395
5393
  ]
5396
5394
  }