@versini/ui-tooltip 1.3.0 → 1.3.2

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.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsxs as At, jsx as $t } from "react/jsx-runtime";
2
- import { useRef as G, useEffect as ht, useState as ft, useCallback as ut } from "react";
1
+ import { jsxs as bt, jsx as $t } from "react/jsx-runtime";
2
+ import { useRef as G, useEffect as pt, useState as ft, useCallback as ut } from "react";
3
3
  import H from "clsx";
4
4
  /*!
5
- @versini/ui-tooltip v1.3.0
5
+ @versini/ui-tooltip v1.3.2
6
6
  © 2025 gizmette.com
7
7
  */
8
8
  try {
9
9
  window.__VERSINI_UI_TOOLTIP__ || (window.__VERSINI_UI_TOOLTIP__ = {
10
- version: "1.3.0",
11
- buildTime: "01/20/2025 10:08 PM EST",
10
+ version: "1.3.2",
11
+ buildTime: "01/25/2025 09:52 AM EST",
12
12
  homepage: "https://github.com/aversini/ui-components",
13
13
  license: "MIT"
14
14
  });
@@ -38,21 +38,21 @@ function j(t) {
38
38
  function tt(t) {
39
39
  return t.split("-")[1];
40
40
  }
41
- function St(t) {
41
+ function Lt(t) {
42
42
  return t === "x" ? "y" : "x";
43
43
  }
44
- function wt(t) {
44
+ function gt(t) {
45
45
  return t === "y" ? "height" : "width";
46
46
  }
47
47
  function X(t) {
48
48
  return ["top", "bottom"].includes(j(t)) ? "y" : "x";
49
49
  }
50
- function xt(t) {
51
- return St(X(t));
50
+ function ht(t) {
51
+ return Lt(X(t));
52
52
  }
53
53
  function Ut(t, e, o) {
54
54
  o === void 0 && (o = !1);
55
- const n = tt(t), i = xt(t), s = wt(i);
55
+ const n = tt(t), i = ht(t), s = gt(i);
56
56
  let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
57
57
  return e.reference[s] > e.floating[s] && (r = it(r)), [r, it(r)];
58
58
  }
@@ -93,7 +93,7 @@ function Gt(t) {
93
93
  ...t
94
94
  };
95
95
  }
96
- function kt(t) {
96
+ function St(t) {
97
97
  return typeof t != "number" ? Gt(t) : {
98
98
  top: t,
99
99
  right: t,
@@ -119,12 +119,12 @@ function st(t) {
119
119
  y: o
120
120
  };
121
121
  }
122
- function Tt(t, e, o) {
122
+ function At(t, e, o) {
123
123
  let {
124
124
  reference: n,
125
125
  floating: i
126
126
  } = t;
127
- const s = X(e), r = xt(e), c = wt(r), l = j(e), a = s === "y", d = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, p = n[c] / 2 - i[c] / 2;
127
+ const s = X(e), r = ht(e), c = gt(r), l = j(e), a = s === "y", d = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, p = n[c] / 2 - i[c] / 2;
128
128
  let u;
129
129
  switch (l) {
130
130
  case "top":
@@ -181,7 +181,7 @@ const Jt = async (t, e, o) => {
181
181
  }), {
182
182
  x: d,
183
183
  y: f
184
- } = Tt(a, n, l), p = n, u = {}, m = 0;
184
+ } = At(a, n, l), p = n, u = {}, m = 0;
185
185
  for (let g = 0; g < c.length; g++) {
186
186
  const {
187
187
  name: h,
@@ -189,7 +189,7 @@ const Jt = async (t, e, o) => {
189
189
  } = c[g], {
190
190
  x,
191
191
  y,
192
- data: A,
192
+ data: T,
193
193
  reset: b
194
194
  } = await w({
195
195
  x: d,
@@ -209,7 +209,7 @@ const Jt = async (t, e, o) => {
209
209
  ...u,
210
210
  [h]: {
211
211
  ...u[h],
212
- ...A
212
+ ...T
213
213
  }
214
214
  }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (p = b.placement), b.rects && (a = b.rects === !0 ? await r.getElementRects({
215
215
  reference: t,
@@ -218,7 +218,7 @@ const Jt = async (t, e, o) => {
218
218
  }) : b.rects), {
219
219
  x: d,
220
220
  y: f
221
- } = Tt(a, p, l)), g = -1);
221
+ } = At(a, p, l)), g = -1);
222
222
  }
223
223
  return {
224
224
  x: d,
@@ -228,7 +228,7 @@ const Jt = async (t, e, o) => {
228
228
  middlewareData: u
229
229
  };
230
230
  };
231
- async function Pt(t, e) {
231
+ async function kt(t, e) {
232
232
  var o;
233
233
  e === void 0 && (e = {});
234
234
  const {
@@ -244,7 +244,7 @@ async function Pt(t, e) {
244
244
  elementContext: f = "floating",
245
245
  altBoundary: p = !1,
246
246
  padding: u = 0
247
- } = Z(e, t), m = kt(u), h = c[p ? f === "floating" ? "reference" : "floating" : f], w = st(await s.getClippingRect({
247
+ } = Z(e, t), m = St(u), h = c[p ? f === "floating" ? "reference" : "floating" : f], w = st(await s.getClippingRect({
248
248
  element: (o = await (s.isElement == null ? void 0 : s.isElement(h))) == null || o ? h : h.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
249
249
  boundary: a,
250
250
  rootBoundary: d,
@@ -254,7 +254,7 @@ async function Pt(t, e) {
254
254
  y: i,
255
255
  width: r.floating.width,
256
256
  height: r.floating.height
257
- } : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), A = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
257
+ } : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), T = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
258
258
  x: 1,
259
259
  y: 1
260
260
  } : {
@@ -267,10 +267,10 @@ async function Pt(t, e) {
267
267
  strategy: l
268
268
  }) : x);
269
269
  return {
270
- top: (w.top - b.top + m.top) / A.y,
271
- bottom: (b.bottom - w.bottom + m.bottom) / A.y,
272
- left: (w.left - b.left + m.left) / A.x,
273
- right: (b.right - w.right + m.right) / A.x
270
+ top: (w.top - b.top + m.top) / T.y,
271
+ bottom: (b.bottom - w.bottom + m.bottom) / T.y,
272
+ left: (w.left - b.left + m.left) / T.x,
273
+ right: (b.right - w.right + m.right) / T.x
274
274
  };
275
275
  }
276
276
  const Qt = (t) => ({
@@ -291,18 +291,18 @@ const Qt = (t) => ({
291
291
  } = Z(t, e) || {};
292
292
  if (a == null)
293
293
  return {};
294
- const f = kt(d), p = {
294
+ const f = St(d), p = {
295
295
  x: o,
296
296
  y: n
297
- }, u = xt(i), m = wt(u), g = await r.getDimensions(a), h = u === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", A = s.reference[m] + s.reference[u] - p[u] - s.floating[m], b = p[u] - s.reference[u], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a));
297
+ }, u = ht(i), m = gt(u), g = await r.getDimensions(a), h = u === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", T = s.reference[m] + s.reference[u] - p[u] - s.floating[m], b = p[u] - s.reference[u], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a));
298
298
  let E = N ? N[y] : 0;
299
299
  (!E || !await (r.isElement == null ? void 0 : r.isElement(N))) && (E = c.floating[y] || s.floating[m]);
300
- const V = A / 2 - b / 2, R = E / 2 - g[m] / 2 - 1, L = J(f[w], R), I = J(f[x], R), S = L, $ = E - g[m] - I, v = E / 2 - g[m] / 2 + V, Y = dt(S, v, $), M = !l.arrow && tt(i) != null && v !== Y && s.reference[m] / 2 - (v < S ? L : I) - g[m] / 2 < 0, k = M ? v < S ? v - S : v - $ : 0;
300
+ const I = T / 2 - b / 2, R = E / 2 - g[m] / 2 - 1, L = J(f[w], R), W = J(f[x], R), S = L, $ = E - g[m] - W, A = E / 2 - g[m] / 2 + I, Y = dt(S, A, $), M = !l.arrow && tt(i) != null && A !== Y && s.reference[m] / 2 - (A < S ? L : W) - g[m] / 2 < 0, k = M ? A < S ? A - S : A - $ : 0;
301
301
  return {
302
302
  [u]: p[u] + k,
303
303
  data: {
304
304
  [u]: Y,
305
- centerOffset: v - Y - k,
305
+ centerOffset: A - Y - k,
306
306
  ...M && {
307
307
  alignmentOffset: k
308
308
  }
@@ -334,44 +334,44 @@ const Qt = (t) => ({
334
334
  } = Z(t, e);
335
335
  if ((o = s.arrow) != null && o.alignmentOffset)
336
336
  return {};
337
- const w = j(i), x = X(c), y = j(c) === c, A = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), b = p || (y || !g ? [it(c)] : Xt(c)), N = m !== "none";
338
- !p && N && b.push(...qt(c, g, m, A));
339
- const E = [c, ...b], V = await Pt(e, h), R = [];
337
+ const w = j(i), x = X(c), y = j(c) === c, T = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), b = p || (y || !g ? [it(c)] : Xt(c)), N = m !== "none";
338
+ !p && N && b.push(...qt(c, g, m, T));
339
+ const E = [c, ...b], I = await kt(e, h), R = [];
340
340
  let L = ((n = s.flip) == null ? void 0 : n.overflows) || [];
341
- if (d && R.push(V[w]), f) {
342
- const v = Ut(i, r, A);
343
- R.push(V[v[0]], V[v[1]]);
341
+ if (d && R.push(I[w]), f) {
342
+ const A = Ut(i, r, T);
343
+ R.push(I[A[0]], I[A[1]]);
344
344
  }
345
345
  if (L = [...L, {
346
346
  placement: i,
347
347
  overflows: R
348
- }], !R.every((v) => v <= 0)) {
349
- var I, S;
350
- const v = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, Y = E[v];
348
+ }], !R.every((A) => A <= 0)) {
349
+ var W, S;
350
+ const A = (((W = s.flip) == null ? void 0 : W.index) || 0) + 1, Y = E[A];
351
351
  if (Y)
352
352
  return {
353
353
  data: {
354
- index: v,
354
+ index: A,
355
355
  overflows: L
356
356
  },
357
357
  reset: {
358
358
  placement: Y
359
359
  }
360
360
  };
361
- let M = (S = L.filter((k) => k.overflows[0] <= 0).sort((k, B) => k.overflows[1] - B.overflows[1])[0]) == null ? void 0 : S.placement;
361
+ let M = (S = L.filter((k) => k.overflows[0] <= 0).sort((k, V) => k.overflows[1] - V.overflows[1])[0]) == null ? void 0 : S.placement;
362
362
  if (!M)
363
363
  switch (u) {
364
364
  case "bestFit": {
365
365
  var $;
366
- const k = ($ = L.filter((B) => {
366
+ const k = ($ = L.filter((V) => {
367
367
  if (N) {
368
- const F = X(B.placement);
369
- return F === x || // Create a bias to the `y` side axis due to horizontal
368
+ const B = X(V.placement);
369
+ return B === x || // Create a bias to the `y` side axis due to horizontal
370
370
  // reading directions favoring greater width.
371
- F === "y";
371
+ B === "y";
372
372
  }
373
373
  return !0;
374
- }).map((B) => [B.placement, B.overflows.filter((F) => F > 0).reduce((F, It) => F + It, 0)]).sort((B, F) => B[1] - F[1])[0]) == null ? void 0 : $[0];
374
+ }).map((V) => [V.placement, V.overflows.filter((B) => B > 0).reduce((B, Wt) => B + Wt, 0)]).sort((V, B) => V[1] - B[1])[0]) == null ? void 0 : $[0];
375
375
  k && (M = k);
376
376
  break;
377
377
  }
@@ -467,7 +467,7 @@ const ee = function(t) {
467
467
  } = Z(t, e), a = {
468
468
  x: o,
469
469
  y: n
470
- }, d = await Pt(e, l), f = X(j(i)), p = St(f);
470
+ }, d = await kt(e, l), f = X(j(i)), p = Lt(f);
471
471
  let u = a[p], m = a[f];
472
472
  if (s) {
473
473
  const h = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", x = u + d[h], y = u - d[w];
@@ -500,27 +500,27 @@ function rt() {
500
500
  return typeof window < "u";
501
501
  }
502
502
  function q(t) {
503
- return Dt(t) ? (t.nodeName || "").toLowerCase() : "#document";
503
+ return Pt(t) ? (t.nodeName || "").toLowerCase() : "#document";
504
504
  }
505
- function T(t) {
505
+ function v(t) {
506
506
  var e;
507
507
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
508
508
  }
509
509
  function _(t) {
510
510
  var e;
511
- return (e = (Dt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
511
+ return (e = (Pt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
512
512
  }
513
- function Dt(t) {
514
- return rt() ? t instanceof Node || t instanceof T(t).Node : !1;
513
+ function Pt(t) {
514
+ return rt() ? t instanceof Node || t instanceof v(t).Node : !1;
515
515
  }
516
516
  function C(t) {
517
- return rt() ? t instanceof Element || t instanceof T(t).Element : !1;
517
+ return rt() ? t instanceof Element || t instanceof v(t).Element : !1;
518
518
  }
519
519
  function D(t) {
520
- return rt() ? t instanceof HTMLElement || t instanceof T(t).HTMLElement : !1;
520
+ return rt() ? t instanceof HTMLElement || t instanceof v(t).HTMLElement : !1;
521
521
  }
522
- function Ct(t) {
523
- return !rt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof T(t).ShadowRoot;
522
+ function Tt(t) {
523
+ return !rt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof v(t).ShadowRoot;
524
524
  }
525
525
  function et(t) {
526
526
  const {
@@ -543,29 +543,29 @@ function ct(t) {
543
543
  }
544
544
  });
545
545
  }
546
- function yt(t) {
547
- const e = bt(), o = C(t) ? O(t) : t;
546
+ function wt(t) {
547
+ const e = xt(), o = C(t) ? O(t) : t;
548
548
  return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
549
549
  }
550
550
  function ie(t) {
551
- let e = W(t);
551
+ let e = F(t);
552
552
  for (; D(e) && !K(e); ) {
553
- if (yt(e))
553
+ if (wt(e))
554
554
  return e;
555
555
  if (ct(e))
556
556
  return null;
557
- e = W(e);
557
+ e = F(e);
558
558
  }
559
559
  return null;
560
560
  }
561
- function bt() {
561
+ function xt() {
562
562
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
563
563
  }
564
564
  function K(t) {
565
565
  return ["html", "body", "#document"].includes(q(t));
566
566
  }
567
567
  function O(t) {
568
- return T(t).getComputedStyle(t);
568
+ return v(t).getComputedStyle(t);
569
569
  }
570
570
  function lt(t) {
571
571
  return C(t) ? {
@@ -576,33 +576,29 @@ function lt(t) {
576
576
  scrollTop: t.scrollY
577
577
  };
578
578
  }
579
- function W(t) {
579
+ function F(t) {
580
580
  if (q(t) === "html")
581
581
  return t;
582
582
  const e = (
583
583
  // Step into the shadow DOM of the parent of a slotted node.
584
584
  t.assignedSlot || // DOM Element detected.
585
585
  t.parentNode || // ShadowRoot detected.
586
- Ct(t) && t.host || // Fallback.
586
+ Tt(t) && t.host || // Fallback.
587
587
  _(t)
588
588
  );
589
- return Ct(e) ? e.host : e;
589
+ return Tt(e) ? e.host : e;
590
590
  }
591
- function Nt(t) {
592
- const e = W(t);
593
- return K(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : D(e) && et(e) ? e : Nt(e);
591
+ function Dt(t) {
592
+ const e = F(t);
593
+ return K(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : D(e) && et(e) ? e : Dt(e);
594
594
  }
595
- function pt(t, e, o) {
595
+ function Nt(t, e, o) {
596
596
  var n;
597
- e === void 0 && (e = []), o === void 0 && (o = !0);
598
- const i = Nt(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), r = T(i);
599
- if (s) {
600
- const c = gt(r);
601
- return e.concat(r, r.visualViewport || [], et(i) ? i : [], c && o ? pt(c) : []);
602
- }
603
- return e.concat(i, pt(i, [], o));
597
+ e === void 0 && (e = []);
598
+ const i = Dt(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), r = v(i);
599
+ return s ? e.concat(r, r.visualViewport || [], et(i) ? i : [], []) : e.concat(i, Nt(i, []));
604
600
  }
605
- function gt(t) {
601
+ function vt(t) {
606
602
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
607
603
  }
608
604
  function Mt(t) {
@@ -634,29 +630,29 @@ function U(t) {
634
630
  };
635
631
  }
636
632
  const se = /* @__PURE__ */ P(0);
637
- function Vt(t) {
638
- const e = T(t);
639
- return !bt() || !e.visualViewport ? se : {
633
+ function It(t) {
634
+ const e = v(t);
635
+ return !xt() || !e.visualViewport ? se : {
640
636
  x: e.visualViewport.offsetLeft,
641
637
  y: e.visualViewport.offsetTop
642
638
  };
643
639
  }
644
640
  function re(t, e, o) {
645
- return e === void 0 && (e = !1), !o || e && o !== T(t) ? !1 : e;
641
+ return e === void 0 && (e = !1), !o || e && o !== v(t) ? !1 : e;
646
642
  }
647
643
  function Q(t, e, o, n) {
648
644
  e === void 0 && (e = !1), o === void 0 && (o = !1);
649
645
  const i = t.getBoundingClientRect(), s = _t(t);
650
646
  let r = P(1);
651
647
  e && (n ? C(n) && (r = U(n)) : r = U(t));
652
- const c = re(s, o, n) ? Vt(s) : P(0);
648
+ const c = re(s, o, n) ? It(s) : P(0);
653
649
  let l = (i.left + c.x) / r.x, a = (i.top + c.y) / r.y, d = i.width / r.x, f = i.height / r.y;
654
650
  if (s) {
655
- const p = T(s), u = n && C(n) ? T(n) : n;
656
- let m = p, g = gt(m);
651
+ const p = v(s), u = n && C(n) ? v(n) : n;
652
+ let m = p, g = vt(m);
657
653
  for (; g && n && u !== m; ) {
658
- const h = U(g), w = g.getBoundingClientRect(), x = O(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, A = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
659
- l *= h.x, a *= h.y, d *= h.x, f *= h.y, l += y, a += A, m = T(g), g = gt(m);
654
+ const h = U(g), w = g.getBoundingClientRect(), x = O(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, T = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
655
+ l *= h.x, a *= h.y, d *= h.x, f *= h.y, l += y, a += T, m = v(g), g = vt(m);
660
656
  }
661
657
  }
662
658
  return st({
@@ -666,15 +662,15 @@ function Q(t, e, o, n) {
666
662
  y: a
667
663
  });
668
664
  }
669
- function vt(t, e) {
665
+ function yt(t, e) {
670
666
  const o = lt(t).scrollLeft;
671
667
  return e ? e.left + o : Q(_(t)).left + o;
672
668
  }
673
- function Bt(t, e, o) {
669
+ function Vt(t, e, o) {
674
670
  o === void 0 && (o = !1);
675
671
  const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (o ? 0 : (
676
672
  // RTL <body> scrollbar.
677
- vt(t, n)
673
+ yt(t, n)
678
674
  )), s = n.top + e.scrollTop;
679
675
  return {
680
676
  x: i,
@@ -700,7 +696,7 @@ function ce(t) {
700
696
  const u = Q(n);
701
697
  a = U(n), d.x = u.x + n.clientLeft, d.y = u.y + n.clientTop;
702
698
  }
703
- const p = r && !f && !s ? Bt(r, l, !0) : P(0);
699
+ const p = r && !f && !s ? Vt(r, l, !0) : P(0);
704
700
  return {
705
701
  width: o.width * a.x,
706
702
  height: o.height * a.y,
@@ -713,7 +709,7 @@ function le(t) {
713
709
  }
714
710
  function ae(t) {
715
711
  const e = _(t), o = lt(t), n = t.ownerDocument.body, i = z(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = z(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
716
- let r = -o.scrollLeft + vt(t);
712
+ let r = -o.scrollLeft + yt(t);
717
713
  const c = -o.scrollTop;
718
714
  return O(n).direction === "rtl" && (r += z(e.clientWidth, n.clientWidth) - i), {
719
715
  width: i,
@@ -723,11 +719,11 @@ function ae(t) {
723
719
  };
724
720
  }
725
721
  function fe(t, e) {
726
- const o = T(t), n = _(t), i = o.visualViewport;
722
+ const o = v(t), n = _(t), i = o.visualViewport;
727
723
  let s = n.clientWidth, r = n.clientHeight, c = 0, l = 0;
728
724
  if (i) {
729
725
  s = i.width, r = i.height;
730
- const a = bt();
726
+ const a = xt();
731
727
  (!a || a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
732
728
  }
733
729
  return {
@@ -746,7 +742,7 @@ function ue(t, e) {
746
742
  y: a
747
743
  };
748
744
  }
749
- function Ot(t, e, o) {
745
+ function Ct(t, e, o) {
750
746
  let n;
751
747
  if (e === "viewport")
752
748
  n = fe(t, o);
@@ -755,7 +751,7 @@ function Ot(t, e, o) {
755
751
  else if (C(e))
756
752
  n = ue(e, o);
757
753
  else {
758
- const i = Vt(t);
754
+ const i = It(t);
759
755
  n = {
760
756
  x: e.x - i.x,
761
757
  y: e.y - i.y,
@@ -765,20 +761,20 @@ function Ot(t, e, o) {
765
761
  }
766
762
  return st(n);
767
763
  }
768
- function Ft(t, e) {
769
- const o = W(t);
770
- return o === e || !C(o) || K(o) ? !1 : O(o).position === "fixed" || Ft(o, e);
764
+ function Bt(t, e) {
765
+ const o = F(t);
766
+ return o === e || !C(o) || K(o) ? !1 : O(o).position === "fixed" || Bt(o, e);
771
767
  }
772
768
  function de(t, e) {
773
769
  const o = e.get(t);
774
770
  if (o)
775
771
  return o;
776
- let n = pt(t, [], !1).filter((c) => C(c) && q(c) !== "body"), i = null;
772
+ let n = Nt(t, []).filter((c) => C(c) && q(c) !== "body"), i = null;
777
773
  const s = O(t).position === "fixed";
778
- let r = s ? W(t) : t;
774
+ let r = s ? F(t) : t;
779
775
  for (; C(r) && !K(r); ) {
780
- const c = O(r), l = yt(r);
781
- !l && c.position === "fixed" && (i = null), (s ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(r) && !l && Ft(t, r)) ? n = n.filter((d) => d !== r) : i = c, r = W(r);
776
+ const c = O(r), l = wt(r);
777
+ !l && c.position === "fixed" && (i = null), (s ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(r) && !l && Bt(t, r)) ? n = n.filter((d) => d !== r) : i = c, r = F(r);
782
778
  }
783
779
  return e.set(t, n), n;
784
780
  }
@@ -790,9 +786,9 @@ function me(t) {
790
786
  strategy: i
791
787
  } = t;
792
788
  const r = [...o === "clippingAncestors" ? ct(e) ? [] : de(e, this._c) : [].concat(o), n], c = r[0], l = r.reduce((a, d) => {
793
- const f = Ot(e, d, i);
789
+ const f = Ct(e, d, i);
794
790
  return a.top = z(f.top, a.top), a.right = J(f.right, a.right), a.bottom = J(f.bottom, a.bottom), a.left = z(f.left, a.left), a;
795
- }, Ot(e, c, i));
791
+ }, Ct(e, c, i));
796
792
  return {
797
793
  width: l.right - l.left,
798
794
  height: l.bottom - l.top,
@@ -821,8 +817,8 @@ function ge(t, e, o) {
821
817
  if ((q(e) !== "body" || et(i)) && (c = lt(e)), n) {
822
818
  const p = Q(e, !0, s, e);
823
819
  l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
824
- } else i && (l.x = vt(i));
825
- const a = i && !n && !s ? Bt(i, c) : P(0), d = r.left + c.scrollLeft - l.x - a.x, f = r.top + c.scrollTop - l.y - a.y;
820
+ } else i && (l.x = yt(i));
821
+ const a = i && !n && !s ? Vt(i, c) : P(0), d = r.left + c.scrollLeft - l.x - a.x, f = r.top + c.scrollTop - l.y - a.y;
826
822
  return {
827
823
  x: d,
828
824
  y: f,
@@ -833,7 +829,7 @@ function ge(t, e, o) {
833
829
  function at(t) {
834
830
  return O(t).position === "static";
835
831
  }
836
- function Et(t, e) {
832
+ function Ot(t, e) {
837
833
  if (!D(t) || O(t).position === "fixed")
838
834
  return null;
839
835
  if (e)
@@ -841,26 +837,26 @@ function Et(t, e) {
841
837
  let o = t.offsetParent;
842
838
  return _(t) === o && (o = o.ownerDocument.body), o;
843
839
  }
844
- function Wt(t, e) {
845
- const o = T(t);
840
+ function Ft(t, e) {
841
+ const o = v(t);
846
842
  if (ct(t))
847
843
  return o;
848
844
  if (!D(t)) {
849
- let i = W(t);
845
+ let i = F(t);
850
846
  for (; i && !K(i); ) {
851
847
  if (C(i) && !at(i))
852
848
  return i;
853
- i = W(i);
849
+ i = F(i);
854
850
  }
855
851
  return o;
856
852
  }
857
- let n = Et(t, e);
853
+ let n = Ot(t, e);
858
854
  for (; n && oe(n) && at(n); )
859
- n = Et(n, e);
860
- return n && K(n) && at(n) && !yt(n) ? o : n || ie(t) || o;
855
+ n = Ot(n, e);
856
+ return n && K(n) && at(n) && !wt(n) ? o : n || ie(t) || o;
861
857
  }
862
858
  const he = async function(t) {
863
- const e = this.getOffsetParent || Wt, o = this.getDimensions, n = await o(t.floating);
859
+ const e = this.getOffsetParent || Ft, o = this.getDimensions, n = await o(t.floating);
864
860
  return {
865
861
  reference: ge(t.reference, await e(t.floating), t.strategy),
866
862
  floating: {
@@ -878,14 +874,14 @@ const xe = {
878
874
  convertOffsetParentRelativeRectToViewportRelativeRect: ce,
879
875
  getDocumentElement: _,
880
876
  getClippingRect: me,
881
- getOffsetParent: Wt,
877
+ getOffsetParent: Ft,
882
878
  getElementRects: he,
883
879
  getClientRects: le,
884
880
  getDimensions: pe,
885
881
  getScale: U,
886
882
  isElement: C,
887
883
  isRTL: we
888
- }, ye = ee, be = ne, ve = Zt, Ae = Qt, Te = (t, e, o) => {
884
+ }, ye = ee, be = ne, Ae = Zt, Te = Qt, ve = (t, e, o) => {
889
885
  const n = /* @__PURE__ */ new Map(), i = {
890
886
  platform: xe,
891
887
  ...o
@@ -897,10 +893,10 @@ const xe = {
897
893
  ...i,
898
894
  platform: s
899
895
  });
900
- }, Rt = ["mousedown", "touchstart"];
896
+ }, Et = ["mousedown", "touchstart"];
901
897
  function Ce(t, e, o) {
902
898
  const n = G(null);
903
- return ht(() => {
899
+ return pt(() => {
904
900
  const i = (s) => {
905
901
  const r = s ? s.target : void 0;
906
902
  if (Array.isArray(o)) {
@@ -910,10 +906,10 @@ function Ce(t, e, o) {
910
906
  ) && !c && t();
911
907
  } else n.current && !n.current.contains(r) && t();
912
908
  };
913
- return Rt.forEach(
909
+ return Et.forEach(
914
910
  (s) => document.addEventListener(s, i)
915
911
  ), () => {
916
- Rt.forEach(
912
+ Et.forEach(
917
913
  (s) => document.removeEventListener(s, i)
918
914
  );
919
915
  };
@@ -925,9 +921,9 @@ function Oe(t, e) {
925
921
  }, [e]), c = ut(() => {
926
922
  n(!1), window.clearInterval(i.current || -1), i.current = -1;
927
923
  }, []);
928
- return ht(() => (s.current = t, o && r(), c), [t, o, r, c]), { start: r, stop: c, active: o };
924
+ return pt(() => (s.current = t, o && r(), c), [t, o, r, c]), { start: r, stop: c, active: o };
929
925
  }
930
- const nt = (t, e = "px") => typeof t > "u" ? "" : `${Math.round(t)}${e}`, Ee = () => H("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Lt = ({
926
+ const nt = (t, e = "px") => typeof t > "u" ? "" : `${Math.round(t)}${e}`, Ee = () => H("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Rt = ({
931
927
  mode: t
932
928
  }) => H({
933
929
  "bg-surface-darker": t === "dark" || t === "system",
@@ -950,13 +946,13 @@ const nt = (t, e = "px") => typeof t > "u" ? "" : `${Math.round(t)}${e}`, Ee = (
950
946
  const i = H("relative inline-block", e), s = H(
951
947
  Ht,
952
948
  Ee(),
953
- Lt({ mode: t }),
949
+ Rt({ mode: t }),
954
950
  Re({ mode: t }),
955
951
  o
956
952
  ), r = H(
957
953
  jt,
958
954
  Le(),
959
- Lt({ mode: t }),
955
+ Rt({ mode: t }),
960
956
  n
961
957
  );
962
958
  return { tooltip: s, arrow: r, wrapper: i };
@@ -982,66 +978,66 @@ const nt = (t, e = "px") => typeof t > "u" ? "" : `${Math.round(t)}${e}`, Ee = (
982
978
  tooltipClassName: r,
983
979
  arrowClassName: c
984
980
  }), w = ke({ delay: i }), x = ut(async () => {
985
- var N, E, V, R;
981
+ var N, E, I, R;
986
982
  if (l.current && a.current && d.current) {
987
983
  const {
988
984
  x: L,
989
- y: I,
985
+ y: W,
990
986
  middlewareData: S,
991
987
  placement: $
992
- } = await Te(l.current, a.current, {
988
+ } = await ve(l.current, a.current, {
993
989
  placement: o,
994
990
  middleware: [
995
991
  ye(10),
996
- ve({
992
+ Ae({
997
993
  crossAxis: o.includes("-"),
998
994
  fallbackAxisSideDirection: "start"
999
995
  }),
1000
996
  be({ padding: 5 }),
1001
- Ae({ element: d.current })
997
+ Te({ element: d.current })
1002
998
  ]
1003
999
  });
1004
1000
  (N = a == null ? void 0 : a.current) != null && N.style && Object.assign(a.current.style, {
1005
1001
  left: nt(L),
1006
- top: nt(I),
1002
+ top: nt(W),
1007
1003
  ...w
1008
1004
  });
1009
- const v = {
1005
+ const A = {
1010
1006
  top: "bottom",
1011
1007
  right: "left",
1012
1008
  bottom: "top",
1013
1009
  left: "right"
1014
1010
  }[$.split("-")[0]];
1015
1011
  (E = d == null ? void 0 : d.current) != null && E.style && Object.assign(d.current.style, {
1016
- left: nt((V = S.arrow) == null ? void 0 : V.x),
1012
+ left: nt((I = S.arrow) == null ? void 0 : I.x),
1017
1013
  top: nt((R = S.arrow) == null ? void 0 : R.y),
1018
1014
  right: "",
1019
1015
  bottom: "",
1020
- [v]: "-4px"
1016
+ [A]: "-4px"
1021
1017
  });
1022
1018
  }
1023
1019
  }, [o, w, l]);
1024
- ht(() => {
1020
+ pt(() => {
1025
1021
  (async () => f && await x())();
1026
1022
  }, [x, f]);
1027
1023
  const y = () => {
1028
1024
  p(!1), m(!0), g.start();
1029
- }, A = () => {
1025
+ }, T = () => {
1030
1026
  u || p(!0);
1031
1027
  }, b = () => {
1032
1028
  u || p(!1);
1033
1029
  };
1034
- return /* @__PURE__ */ At(
1030
+ return /* @__PURE__ */ bt(
1035
1031
  "div",
1036
1032
  {
1037
1033
  className: h.wrapper,
1038
1034
  ref: l,
1039
- onMouseEnter: A,
1035
+ onMouseEnter: T,
1040
1036
  onMouseLeave: b,
1041
1037
  onClick: y,
1042
1038
  children: [
1043
1039
  t,
1044
- f && /* @__PURE__ */ At(
1040
+ f && /* @__PURE__ */ bt(
1045
1041
  "div",
1046
1042
  {
1047
1043
  role: "tooltip",
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@keyframes blink{50%{fill:transparent}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-50{z-index:50}.inline-block{display:inline-block}.size-2{width:.5rem;height:.5rem}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.w-max{width:-webkit-max-content;width:-moz-max-content;width:max-content}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.border{border-width:1px}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity, 1)))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes av-tooltip-fade-in{0%{opacity:0}to{opacity:100}}@media (min-width: 640px){.sm\:size-6{width:1.5rem;height:1.5rem}}@media (min-width: 768px){.md\:size-px{width:1px;height:1px}}@media (prefers-color-scheme: dark){.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.dark\:bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.dark\:text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity, 1)))}}
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@keyframes blink{50%{fill:transparent}}@keyframes av-tooltip-fade-in{0%{opacity:0}to{opacity:100}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-50{z-index:50}.inline-block{display:inline-block}.size-2{width:.5rem;height:.5rem}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.w-max{width:-webkit-max-content;width:-moz-max-content;width:max-content}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.border{border-width:1px}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity, 1)))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 640px){.sm\:size-6{width:1.5rem;height:1.5rem}}@media (min-width: 768px){.md\:size-px{width:1px;height:1px}}@media (prefers-color-scheme: dark){.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.dark\:bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity, 1)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.dark\:text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity, 1)))}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-tooltip",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -43,12 +43,12 @@
43
43
  "dependencies": {
44
44
  "@floating-ui/dom": "1.6.13",
45
45
  "@tailwindcss/typography": "0.5.16",
46
- "@versini/ui-hooks": "4.5.0",
46
+ "@versini/ui-hooks": "4.6.0",
47
47
  "clsx": "2.1.1",
48
48
  "tailwindcss": "3.4.17"
49
49
  },
50
50
  "sideEffects": [
51
51
  "**/*.css"
52
52
  ],
53
- "gitHead": "9fe85d906eb117bb22c3b576f104b6f0203429d7"
53
+ "gitHead": "1199c5a06253a95c103981005f5a1131c841bb00"
54
54
  }