@versini/ui-tooltip 1.1.1 → 1.1.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/components/Tooltip/Tooltip.js +2 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +983 -118
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { TooltipTypes } from '@versini/ui-types';
|
|
|
4
4
|
declare const TOOLTIP_CLASSNAME = "av-tooltip";
|
|
5
5
|
declare const TOOLTIP_ARROW_CLASSNAME = "av-tooltip-arrow";
|
|
6
6
|
|
|
7
|
-
declare const Tooltip: ({ trigger, label, placement, mode,
|
|
7
|
+
declare const Tooltip: ({ trigger, label, placement, mode, delay, className, arrowClassName, }: TooltipTypes.Props) => react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
9
9
|
export { TOOLTIP_ARROW_CLASSNAME, TOOLTIP_CLASSNAME, Tooltip };
|
package/dist/index.js
CHANGED
|
@@ -1,150 +1,1015 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import n from "clsx";
|
|
1
|
+
import { jsxs as yt, jsx as Vt } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as lt, useState as Wt, useCallback as Ft, useEffect as $t } from "react";
|
|
3
|
+
import W from "clsx";
|
|
5
4
|
/*!
|
|
6
|
-
@versini/ui-tooltip v1.1.
|
|
5
|
+
@versini/ui-tooltip v1.1.2
|
|
7
6
|
© 2025 gizmette.com
|
|
8
7
|
*/
|
|
9
8
|
try {
|
|
10
9
|
window.__VERSINI_UI_TOOLTIP__ || (window.__VERSINI_UI_TOOLTIP__ = {
|
|
11
|
-
version: "1.1.
|
|
12
|
-
buildTime: "01/
|
|
10
|
+
version: "1.1.2",
|
|
11
|
+
buildTime: "01/20/2025 01:05 PM EST",
|
|
13
12
|
homepage: "https://github.com/aversini/ui-components",
|
|
14
13
|
license: "MIT"
|
|
15
14
|
});
|
|
16
15
|
} catch {
|
|
17
16
|
}
|
|
18
|
-
const
|
|
17
|
+
const It = "av-tooltip", Ht = "av-tooltip-arrow", G = Math.min, H = Math.max, nt = Math.round, S = (t) => ({
|
|
18
|
+
x: t,
|
|
19
|
+
y: t
|
|
20
|
+
}), jt = {
|
|
21
|
+
left: "right",
|
|
22
|
+
right: "left",
|
|
23
|
+
bottom: "top",
|
|
24
|
+
top: "bottom"
|
|
25
|
+
}, Yt = {
|
|
26
|
+
start: "end",
|
|
27
|
+
end: "start"
|
|
28
|
+
};
|
|
29
|
+
function ft(t, e, o) {
|
|
30
|
+
return H(t, G(e, o));
|
|
31
|
+
}
|
|
32
|
+
function Q(t, e) {
|
|
33
|
+
return typeof t == "function" ? t(e) : t;
|
|
34
|
+
}
|
|
35
|
+
function F(t) {
|
|
36
|
+
return t.split("-")[0];
|
|
37
|
+
}
|
|
38
|
+
function Z(t) {
|
|
39
|
+
return t.split("-")[1];
|
|
40
|
+
}
|
|
41
|
+
function Ot(t) {
|
|
42
|
+
return t === "x" ? "y" : "x";
|
|
43
|
+
}
|
|
44
|
+
function gt(t) {
|
|
45
|
+
return t === "y" ? "height" : "width";
|
|
46
|
+
}
|
|
47
|
+
function Y(t) {
|
|
48
|
+
return ["top", "bottom"].includes(F(t)) ? "y" : "x";
|
|
49
|
+
}
|
|
50
|
+
function pt(t) {
|
|
51
|
+
return Ot(Y(t));
|
|
52
|
+
}
|
|
53
|
+
function zt(t, e, o) {
|
|
54
|
+
o === void 0 && (o = !1);
|
|
55
|
+
const n = Z(t), i = pt(t), s = gt(i);
|
|
56
|
+
let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
57
|
+
return e.reference[s] > e.floating[s] && (r = ot(r)), [r, ot(r)];
|
|
58
|
+
}
|
|
59
|
+
function Xt(t) {
|
|
60
|
+
const e = ot(t);
|
|
61
|
+
return [ut(t), e, ut(e)];
|
|
62
|
+
}
|
|
63
|
+
function ut(t) {
|
|
64
|
+
return t.replace(/start|end/g, (e) => Yt[e]);
|
|
65
|
+
}
|
|
66
|
+
function Ut(t, e, o) {
|
|
67
|
+
const n = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
68
|
+
switch (t) {
|
|
69
|
+
case "top":
|
|
70
|
+
case "bottom":
|
|
71
|
+
return o ? e ? i : n : e ? n : i;
|
|
72
|
+
case "left":
|
|
73
|
+
case "right":
|
|
74
|
+
return e ? s : r;
|
|
75
|
+
default:
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function Kt(t, e, o, n) {
|
|
80
|
+
const i = Z(t);
|
|
81
|
+
let s = Ut(F(t), o === "start", n);
|
|
82
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ut)))), s;
|
|
83
|
+
}
|
|
84
|
+
function ot(t) {
|
|
85
|
+
return t.replace(/left|right|bottom|top/g, (e) => jt[e]);
|
|
86
|
+
}
|
|
87
|
+
function qt(t) {
|
|
88
|
+
return {
|
|
89
|
+
top: 0,
|
|
90
|
+
right: 0,
|
|
91
|
+
bottom: 0,
|
|
92
|
+
left: 0,
|
|
93
|
+
...t
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function Rt(t) {
|
|
97
|
+
return typeof t != "number" ? qt(t) : {
|
|
98
|
+
top: t,
|
|
99
|
+
right: t,
|
|
100
|
+
bottom: t,
|
|
101
|
+
left: t
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function it(t) {
|
|
105
|
+
const {
|
|
106
|
+
x: e,
|
|
107
|
+
y: o,
|
|
108
|
+
width: n,
|
|
109
|
+
height: i
|
|
110
|
+
} = t;
|
|
111
|
+
return {
|
|
112
|
+
width: n,
|
|
113
|
+
height: i,
|
|
114
|
+
top: o,
|
|
115
|
+
left: e,
|
|
116
|
+
right: e + n,
|
|
117
|
+
bottom: o + i,
|
|
118
|
+
x: e,
|
|
119
|
+
y: o
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function bt(t, e, o) {
|
|
123
|
+
let {
|
|
124
|
+
reference: n,
|
|
125
|
+
floating: i
|
|
126
|
+
} = t;
|
|
127
|
+
const s = Y(e), r = pt(e), c = gt(r), l = F(e), a = s === "y", d = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, m = n[c] / 2 - i[c] / 2;
|
|
128
|
+
let u;
|
|
129
|
+
switch (l) {
|
|
130
|
+
case "top":
|
|
131
|
+
u = {
|
|
132
|
+
x: d,
|
|
133
|
+
y: n.y - i.height
|
|
134
|
+
};
|
|
135
|
+
break;
|
|
136
|
+
case "bottom":
|
|
137
|
+
u = {
|
|
138
|
+
x: d,
|
|
139
|
+
y: n.y + n.height
|
|
140
|
+
};
|
|
141
|
+
break;
|
|
142
|
+
case "right":
|
|
143
|
+
u = {
|
|
144
|
+
x: n.x + n.width,
|
|
145
|
+
y: f
|
|
146
|
+
};
|
|
147
|
+
break;
|
|
148
|
+
case "left":
|
|
149
|
+
u = {
|
|
150
|
+
x: n.x - i.width,
|
|
151
|
+
y: f
|
|
152
|
+
};
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
u = {
|
|
156
|
+
x: n.x,
|
|
157
|
+
y: n.y
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
switch (Z(e)) {
|
|
161
|
+
case "start":
|
|
162
|
+
u[r] -= m * (o && a ? -1 : 1);
|
|
163
|
+
break;
|
|
164
|
+
case "end":
|
|
165
|
+
u[r] += m * (o && a ? -1 : 1);
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
return u;
|
|
169
|
+
}
|
|
170
|
+
const Gt = async (t, e, o) => {
|
|
171
|
+
const {
|
|
172
|
+
placement: n = "bottom",
|
|
173
|
+
strategy: i = "absolute",
|
|
174
|
+
middleware: s = [],
|
|
175
|
+
platform: r
|
|
176
|
+
} = o, c = s.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
177
|
+
let a = await r.getElementRects({
|
|
178
|
+
reference: t,
|
|
179
|
+
floating: e,
|
|
180
|
+
strategy: i
|
|
181
|
+
}), {
|
|
182
|
+
x: d,
|
|
183
|
+
y: f
|
|
184
|
+
} = bt(a, n, l), m = n, u = {}, g = 0;
|
|
185
|
+
for (let p = 0; p < c.length; p++) {
|
|
186
|
+
const {
|
|
187
|
+
name: h,
|
|
188
|
+
fn: w
|
|
189
|
+
} = c[p], {
|
|
190
|
+
x,
|
|
191
|
+
y,
|
|
192
|
+
data: v,
|
|
193
|
+
reset: b
|
|
194
|
+
} = await w({
|
|
195
|
+
x: d,
|
|
196
|
+
y: f,
|
|
197
|
+
initialPlacement: n,
|
|
198
|
+
placement: m,
|
|
199
|
+
strategy: i,
|
|
200
|
+
middlewareData: u,
|
|
201
|
+
rects: a,
|
|
202
|
+
platform: r,
|
|
203
|
+
elements: {
|
|
204
|
+
reference: t,
|
|
205
|
+
floating: e
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
d = x ?? d, f = y ?? f, u = {
|
|
209
|
+
...u,
|
|
210
|
+
[h]: {
|
|
211
|
+
...u[h],
|
|
212
|
+
...v
|
|
213
|
+
}
|
|
214
|
+
}, b && g <= 50 && (g++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (a = b.rects === !0 ? await r.getElementRects({
|
|
215
|
+
reference: t,
|
|
216
|
+
floating: e,
|
|
217
|
+
strategy: i
|
|
218
|
+
}) : b.rects), {
|
|
219
|
+
x: d,
|
|
220
|
+
y: f
|
|
221
|
+
} = bt(a, m, l)), p = -1);
|
|
222
|
+
}
|
|
223
|
+
return {
|
|
224
|
+
x: d,
|
|
225
|
+
y: f,
|
|
226
|
+
placement: m,
|
|
227
|
+
strategy: i,
|
|
228
|
+
middlewareData: u
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
async function St(t, e) {
|
|
232
|
+
var o;
|
|
233
|
+
e === void 0 && (e = {});
|
|
234
|
+
const {
|
|
235
|
+
x: n,
|
|
236
|
+
y: i,
|
|
237
|
+
platform: s,
|
|
238
|
+
rects: r,
|
|
239
|
+
elements: c,
|
|
240
|
+
strategy: l
|
|
241
|
+
} = t, {
|
|
242
|
+
boundary: a = "clippingAncestors",
|
|
243
|
+
rootBoundary: d = "viewport",
|
|
244
|
+
elementContext: f = "floating",
|
|
245
|
+
altBoundary: m = !1,
|
|
246
|
+
padding: u = 0
|
|
247
|
+
} = Q(e, t), g = Rt(u), h = c[m ? f === "floating" ? "reference" : "floating" : f], w = it(await s.getClippingRect({
|
|
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
|
+
boundary: a,
|
|
250
|
+
rootBoundary: d,
|
|
251
|
+
strategy: l
|
|
252
|
+
})), x = f === "floating" ? {
|
|
253
|
+
x: n,
|
|
254
|
+
y: i,
|
|
255
|
+
width: r.floating.width,
|
|
256
|
+
height: r.floating.height
|
|
257
|
+
} : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), v = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
258
|
+
x: 1,
|
|
259
|
+
y: 1
|
|
260
|
+
} : {
|
|
261
|
+
x: 1,
|
|
262
|
+
y: 1
|
|
263
|
+
}, b = it(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
264
|
+
elements: c,
|
|
265
|
+
rect: x,
|
|
266
|
+
offsetParent: y,
|
|
267
|
+
strategy: l
|
|
268
|
+
}) : x);
|
|
269
|
+
return {
|
|
270
|
+
top: (w.top - b.top + g.top) / v.y,
|
|
271
|
+
bottom: (b.bottom - w.bottom + g.bottom) / v.y,
|
|
272
|
+
left: (w.left - b.left + g.left) / v.x,
|
|
273
|
+
right: (b.right - w.right + g.right) / v.x
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
const Jt = (t) => ({
|
|
277
|
+
name: "arrow",
|
|
278
|
+
options: t,
|
|
279
|
+
async fn(e) {
|
|
280
|
+
const {
|
|
281
|
+
x: o,
|
|
282
|
+
y: n,
|
|
283
|
+
placement: i,
|
|
284
|
+
rects: s,
|
|
285
|
+
platform: r,
|
|
286
|
+
elements: c,
|
|
287
|
+
middlewareData: l
|
|
288
|
+
} = e, {
|
|
289
|
+
element: a,
|
|
290
|
+
padding: d = 0
|
|
291
|
+
} = Q(t, e) || {};
|
|
292
|
+
if (a == null)
|
|
293
|
+
return {};
|
|
294
|
+
const f = Rt(d), m = {
|
|
295
|
+
x: o,
|
|
296
|
+
y: n
|
|
297
|
+
}, u = pt(i), g = gt(u), p = await r.getDimensions(a), h = u === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", v = s.reference[g] + s.reference[u] - m[u] - s.floating[g], b = m[u] - s.reference[u], $ = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a));
|
|
298
|
+
let _ = $ ? $[y] : 0;
|
|
299
|
+
(!_ || !await (r.isElement == null ? void 0 : r.isElement($))) && (_ = c.floating[y] || s.floating[g]);
|
|
300
|
+
const U = v / 2 - b / 2, B = _ / 2 - p[g] / 2 - 1, P = G(f[w], B), K = G(f[x], B), V = P, q = _ - p[g] - K, A = _ / 2 - p[g] / 2 + U, I = ft(V, A, q), E = !l.arrow && Z(i) != null && A !== I && s.reference[g] / 2 - (A < V ? P : K) - p[g] / 2 < 0, R = E ? A < V ? A - V : A - q : 0;
|
|
301
|
+
return {
|
|
302
|
+
[u]: m[u] + R,
|
|
303
|
+
data: {
|
|
304
|
+
[u]: I,
|
|
305
|
+
centerOffset: A - I - R,
|
|
306
|
+
...E && {
|
|
307
|
+
alignmentOffset: R
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
reset: E
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
}), Qt = function(t) {
|
|
314
|
+
return t === void 0 && (t = {}), {
|
|
315
|
+
name: "flip",
|
|
316
|
+
options: t,
|
|
317
|
+
async fn(e) {
|
|
318
|
+
var o, n;
|
|
319
|
+
const {
|
|
320
|
+
placement: i,
|
|
321
|
+
middlewareData: s,
|
|
322
|
+
rects: r,
|
|
323
|
+
initialPlacement: c,
|
|
324
|
+
platform: l,
|
|
325
|
+
elements: a
|
|
326
|
+
} = e, {
|
|
327
|
+
mainAxis: d = !0,
|
|
328
|
+
crossAxis: f = !0,
|
|
329
|
+
fallbackPlacements: m,
|
|
330
|
+
fallbackStrategy: u = "bestFit",
|
|
331
|
+
fallbackAxisSideDirection: g = "none",
|
|
332
|
+
flipAlignment: p = !0,
|
|
333
|
+
...h
|
|
334
|
+
} = Q(t, e);
|
|
335
|
+
if ((o = s.arrow) != null && o.alignmentOffset)
|
|
336
|
+
return {};
|
|
337
|
+
const w = F(i), x = Y(c), y = F(c) === c, v = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), b = m || (y || !p ? [ot(c)] : Xt(c)), $ = g !== "none";
|
|
338
|
+
!m && $ && b.push(...Kt(c, p, g, v));
|
|
339
|
+
const _ = [c, ...b], U = await St(e, h), B = [];
|
|
340
|
+
let P = ((n = s.flip) == null ? void 0 : n.overflows) || [];
|
|
341
|
+
if (d && B.push(U[w]), f) {
|
|
342
|
+
const A = zt(i, r, v);
|
|
343
|
+
B.push(U[A[0]], U[A[1]]);
|
|
344
|
+
}
|
|
345
|
+
if (P = [...P, {
|
|
346
|
+
placement: i,
|
|
347
|
+
overflows: B
|
|
348
|
+
}], !B.every((A) => A <= 0)) {
|
|
349
|
+
var K, V;
|
|
350
|
+
const A = (((K = s.flip) == null ? void 0 : K.index) || 0) + 1, I = _[A];
|
|
351
|
+
if (I)
|
|
352
|
+
return {
|
|
353
|
+
data: {
|
|
354
|
+
index: A,
|
|
355
|
+
overflows: P
|
|
356
|
+
},
|
|
357
|
+
reset: {
|
|
358
|
+
placement: I
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
let E = (V = P.filter((R) => R.overflows[0] <= 0).sort((R, D) => R.overflows[1] - D.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
362
|
+
if (!E)
|
|
363
|
+
switch (u) {
|
|
364
|
+
case "bestFit": {
|
|
365
|
+
var q;
|
|
366
|
+
const R = (q = P.filter((D) => {
|
|
367
|
+
if ($) {
|
|
368
|
+
const N = Y(D.placement);
|
|
369
|
+
return N === x || // Create a bias to the `y` side axis due to horizontal
|
|
370
|
+
// reading directions favoring greater width.
|
|
371
|
+
N === "y";
|
|
372
|
+
}
|
|
373
|
+
return !0;
|
|
374
|
+
}).map((D) => [D.placement, D.overflows.filter((N) => N > 0).reduce((N, Bt) => N + Bt, 0)]).sort((D, N) => D[1] - N[1])[0]) == null ? void 0 : q[0];
|
|
375
|
+
R && (E = R);
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
case "initialPlacement":
|
|
379
|
+
E = c;
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
if (i !== E)
|
|
383
|
+
return {
|
|
384
|
+
reset: {
|
|
385
|
+
placement: E
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
return {};
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
async function Zt(t, e) {
|
|
394
|
+
const {
|
|
395
|
+
placement: o,
|
|
396
|
+
platform: n,
|
|
397
|
+
elements: i
|
|
398
|
+
} = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = F(o), c = Z(o), l = Y(o) === "y", a = ["left", "top"].includes(r) ? -1 : 1, d = s && l ? -1 : 1, f = Q(e, t);
|
|
399
|
+
let {
|
|
400
|
+
mainAxis: m,
|
|
401
|
+
crossAxis: u,
|
|
402
|
+
alignmentAxis: g
|
|
403
|
+
} = typeof f == "number" ? {
|
|
404
|
+
mainAxis: f,
|
|
405
|
+
crossAxis: 0,
|
|
406
|
+
alignmentAxis: null
|
|
407
|
+
} : {
|
|
408
|
+
mainAxis: f.mainAxis || 0,
|
|
409
|
+
crossAxis: f.crossAxis || 0,
|
|
410
|
+
alignmentAxis: f.alignmentAxis
|
|
411
|
+
};
|
|
412
|
+
return c && typeof g == "number" && (u = c === "end" ? g * -1 : g), l ? {
|
|
413
|
+
x: u * d,
|
|
414
|
+
y: m * a
|
|
415
|
+
} : {
|
|
416
|
+
x: m * a,
|
|
417
|
+
y: u * d
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
const te = function(t) {
|
|
421
|
+
return t === void 0 && (t = 0), {
|
|
422
|
+
name: "offset",
|
|
423
|
+
options: t,
|
|
424
|
+
async fn(e) {
|
|
425
|
+
var o, n;
|
|
426
|
+
const {
|
|
427
|
+
x: i,
|
|
428
|
+
y: s,
|
|
429
|
+
placement: r,
|
|
430
|
+
middlewareData: c
|
|
431
|
+
} = e, l = await Zt(e, t);
|
|
432
|
+
return r === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
|
|
433
|
+
x: i + l.x,
|
|
434
|
+
y: s + l.y,
|
|
435
|
+
data: {
|
|
436
|
+
...l,
|
|
437
|
+
placement: r
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
}, ee = function(t) {
|
|
443
|
+
return t === void 0 && (t = {}), {
|
|
444
|
+
name: "shift",
|
|
445
|
+
options: t,
|
|
446
|
+
async fn(e) {
|
|
447
|
+
const {
|
|
448
|
+
x: o,
|
|
449
|
+
y: n,
|
|
450
|
+
placement: i
|
|
451
|
+
} = e, {
|
|
452
|
+
mainAxis: s = !0,
|
|
453
|
+
crossAxis: r = !1,
|
|
454
|
+
limiter: c = {
|
|
455
|
+
fn: (h) => {
|
|
456
|
+
let {
|
|
457
|
+
x: w,
|
|
458
|
+
y: x
|
|
459
|
+
} = h;
|
|
460
|
+
return {
|
|
461
|
+
x: w,
|
|
462
|
+
y: x
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
...l
|
|
467
|
+
} = Q(t, e), a = {
|
|
468
|
+
x: o,
|
|
469
|
+
y: n
|
|
470
|
+
}, d = await St(e, l), f = Y(F(i)), m = Ot(f);
|
|
471
|
+
let u = a[m], g = a[f];
|
|
472
|
+
if (s) {
|
|
473
|
+
const h = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", x = u + d[h], y = u - d[w];
|
|
474
|
+
u = ft(x, u, y);
|
|
475
|
+
}
|
|
476
|
+
if (r) {
|
|
477
|
+
const h = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", x = g + d[h], y = g - d[w];
|
|
478
|
+
g = ft(x, g, y);
|
|
479
|
+
}
|
|
480
|
+
const p = c.fn({
|
|
481
|
+
...e,
|
|
482
|
+
[m]: u,
|
|
483
|
+
[f]: g
|
|
484
|
+
});
|
|
485
|
+
return {
|
|
486
|
+
...p,
|
|
487
|
+
data: {
|
|
488
|
+
x: p.x - o,
|
|
489
|
+
y: p.y - n,
|
|
490
|
+
enabled: {
|
|
491
|
+
[m]: s,
|
|
492
|
+
[f]: r
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
function st() {
|
|
500
|
+
return typeof window < "u";
|
|
501
|
+
}
|
|
502
|
+
function X(t) {
|
|
503
|
+
return kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
504
|
+
}
|
|
505
|
+
function T(t) {
|
|
506
|
+
var e;
|
|
507
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
508
|
+
}
|
|
509
|
+
function L(t) {
|
|
510
|
+
var e;
|
|
511
|
+
return (e = (kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
512
|
+
}
|
|
513
|
+
function kt(t) {
|
|
514
|
+
return st() ? t instanceof Node || t instanceof T(t).Node : !1;
|
|
515
|
+
}
|
|
516
|
+
function C(t) {
|
|
517
|
+
return st() ? t instanceof Element || t instanceof T(t).Element : !1;
|
|
518
|
+
}
|
|
519
|
+
function k(t) {
|
|
520
|
+
return st() ? t instanceof HTMLElement || t instanceof T(t).HTMLElement : !1;
|
|
521
|
+
}
|
|
522
|
+
function vt(t) {
|
|
523
|
+
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof T(t).ShadowRoot;
|
|
524
|
+
}
|
|
525
|
+
function tt(t) {
|
|
526
|
+
const {
|
|
527
|
+
overflow: e,
|
|
528
|
+
overflowX: o,
|
|
529
|
+
overflowY: n,
|
|
530
|
+
display: i
|
|
531
|
+
} = O(t);
|
|
532
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
|
|
533
|
+
}
|
|
534
|
+
function ne(t) {
|
|
535
|
+
return ["table", "td", "th"].includes(X(t));
|
|
536
|
+
}
|
|
537
|
+
function rt(t) {
|
|
538
|
+
return [":popover-open", ":modal"].some((e) => {
|
|
539
|
+
try {
|
|
540
|
+
return t.matches(e);
|
|
541
|
+
} catch {
|
|
542
|
+
return !1;
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
function ht(t) {
|
|
547
|
+
const e = wt(), o = C(t) ? O(t) : t;
|
|
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
|
+
}
|
|
550
|
+
function oe(t) {
|
|
551
|
+
let e = M(t);
|
|
552
|
+
for (; k(e) && !z(e); ) {
|
|
553
|
+
if (ht(e))
|
|
554
|
+
return e;
|
|
555
|
+
if (rt(e))
|
|
556
|
+
return null;
|
|
557
|
+
e = M(e);
|
|
558
|
+
}
|
|
559
|
+
return null;
|
|
560
|
+
}
|
|
561
|
+
function wt() {
|
|
562
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
563
|
+
}
|
|
564
|
+
function z(t) {
|
|
565
|
+
return ["html", "body", "#document"].includes(X(t));
|
|
566
|
+
}
|
|
567
|
+
function O(t) {
|
|
568
|
+
return T(t).getComputedStyle(t);
|
|
569
|
+
}
|
|
570
|
+
function ct(t) {
|
|
571
|
+
return C(t) ? {
|
|
572
|
+
scrollLeft: t.scrollLeft,
|
|
573
|
+
scrollTop: t.scrollTop
|
|
574
|
+
} : {
|
|
575
|
+
scrollLeft: t.scrollX,
|
|
576
|
+
scrollTop: t.scrollY
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
function M(t) {
|
|
580
|
+
if (X(t) === "html")
|
|
581
|
+
return t;
|
|
582
|
+
const e = (
|
|
583
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
584
|
+
t.assignedSlot || // DOM Element detected.
|
|
585
|
+
t.parentNode || // ShadowRoot detected.
|
|
586
|
+
vt(t) && t.host || // Fallback.
|
|
587
|
+
L(t)
|
|
588
|
+
);
|
|
589
|
+
return vt(e) ? e.host : e;
|
|
590
|
+
}
|
|
591
|
+
function Et(t) {
|
|
592
|
+
const e = M(t);
|
|
593
|
+
return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : k(e) && tt(e) ? e : Et(e);
|
|
594
|
+
}
|
|
595
|
+
function dt(t, e, o) {
|
|
596
|
+
var n;
|
|
597
|
+
e === void 0 && (e = []), o === void 0 && (o = !0);
|
|
598
|
+
const i = Et(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), r = T(i);
|
|
599
|
+
if (s) {
|
|
600
|
+
const c = mt(r);
|
|
601
|
+
return e.concat(r, r.visualViewport || [], tt(i) ? i : [], c && o ? dt(c) : []);
|
|
602
|
+
}
|
|
603
|
+
return e.concat(i, dt(i, [], o));
|
|
604
|
+
}
|
|
605
|
+
function mt(t) {
|
|
606
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
607
|
+
}
|
|
608
|
+
function Lt(t) {
|
|
609
|
+
const e = O(t);
|
|
610
|
+
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
611
|
+
const i = k(t), s = i ? t.offsetWidth : o, r = i ? t.offsetHeight : n, c = nt(o) !== s || nt(n) !== r;
|
|
612
|
+
return c && (o = s, n = r), {
|
|
613
|
+
width: o,
|
|
614
|
+
height: n,
|
|
615
|
+
$: c
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
function Pt(t) {
|
|
619
|
+
return C(t) ? t : t.contextElement;
|
|
620
|
+
}
|
|
621
|
+
function j(t) {
|
|
622
|
+
const e = Pt(t);
|
|
623
|
+
if (!k(e))
|
|
624
|
+
return S(1);
|
|
625
|
+
const o = e.getBoundingClientRect(), {
|
|
626
|
+
width: n,
|
|
627
|
+
height: i,
|
|
628
|
+
$: s
|
|
629
|
+
} = Lt(e);
|
|
630
|
+
let r = (s ? nt(o.width) : o.width) / n, c = (s ? nt(o.height) : o.height) / i;
|
|
631
|
+
return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
632
|
+
x: r,
|
|
633
|
+
y: c
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
const ie = /* @__PURE__ */ S(0);
|
|
637
|
+
function Dt(t) {
|
|
638
|
+
const e = T(t);
|
|
639
|
+
return !wt() || !e.visualViewport ? ie : {
|
|
640
|
+
x: e.visualViewport.offsetLeft,
|
|
641
|
+
y: e.visualViewport.offsetTop
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
function se(t, e, o) {
|
|
645
|
+
return e === void 0 && (e = !1), !o || e && o !== T(t) ? !1 : e;
|
|
646
|
+
}
|
|
647
|
+
function J(t, e, o, n) {
|
|
648
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
649
|
+
const i = t.getBoundingClientRect(), s = Pt(t);
|
|
650
|
+
let r = S(1);
|
|
651
|
+
e && (n ? C(n) && (r = j(n)) : r = j(t));
|
|
652
|
+
const c = se(s, o, n) ? Dt(s) : S(0);
|
|
653
|
+
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
|
+
if (s) {
|
|
655
|
+
const m = T(s), u = n && C(n) ? T(n) : n;
|
|
656
|
+
let g = m, p = mt(g);
|
|
657
|
+
for (; p && n && u !== g; ) {
|
|
658
|
+
const h = j(p), w = p.getBoundingClientRect(), x = O(p), y = w.left + (p.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (p.clientTop + parseFloat(x.paddingTop)) * h.y;
|
|
659
|
+
l *= h.x, a *= h.y, d *= h.x, f *= h.y, l += y, a += v, g = T(p), p = mt(g);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
return it({
|
|
663
|
+
width: d,
|
|
664
|
+
height: f,
|
|
665
|
+
x: l,
|
|
666
|
+
y: a
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
function xt(t, e) {
|
|
670
|
+
const o = ct(t).scrollLeft;
|
|
671
|
+
return e ? e.left + o : J(L(t)).left + o;
|
|
672
|
+
}
|
|
673
|
+
function Nt(t, e, o) {
|
|
674
|
+
o === void 0 && (o = !1);
|
|
675
|
+
const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (o ? 0 : (
|
|
676
|
+
// RTL <body> scrollbar.
|
|
677
|
+
xt(t, n)
|
|
678
|
+
)), s = n.top + e.scrollTop;
|
|
679
|
+
return {
|
|
680
|
+
x: i,
|
|
681
|
+
y: s
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
function re(t) {
|
|
685
|
+
let {
|
|
686
|
+
elements: e,
|
|
687
|
+
rect: o,
|
|
688
|
+
offsetParent: n,
|
|
689
|
+
strategy: i
|
|
690
|
+
} = t;
|
|
691
|
+
const s = i === "fixed", r = L(n), c = e ? rt(e.floating) : !1;
|
|
692
|
+
if (n === r || c && s)
|
|
693
|
+
return o;
|
|
694
|
+
let l = {
|
|
695
|
+
scrollLeft: 0,
|
|
696
|
+
scrollTop: 0
|
|
697
|
+
}, a = S(1);
|
|
698
|
+
const d = S(0), f = k(n);
|
|
699
|
+
if ((f || !f && !s) && ((X(n) !== "body" || tt(r)) && (l = ct(n)), k(n))) {
|
|
700
|
+
const u = J(n);
|
|
701
|
+
a = j(n), d.x = u.x + n.clientLeft, d.y = u.y + n.clientTop;
|
|
702
|
+
}
|
|
703
|
+
const m = r && !f && !s ? Nt(r, l, !0) : S(0);
|
|
704
|
+
return {
|
|
705
|
+
width: o.width * a.x,
|
|
706
|
+
height: o.height * a.y,
|
|
707
|
+
x: o.x * a.x - l.scrollLeft * a.x + d.x + m.x,
|
|
708
|
+
y: o.y * a.y - l.scrollTop * a.y + d.y + m.y
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
function ce(t) {
|
|
712
|
+
return Array.from(t.getClientRects());
|
|
713
|
+
}
|
|
714
|
+
function le(t) {
|
|
715
|
+
const e = L(t), o = ct(t), n = t.ownerDocument.body, i = H(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = H(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
716
|
+
let r = -o.scrollLeft + xt(t);
|
|
717
|
+
const c = -o.scrollTop;
|
|
718
|
+
return O(n).direction === "rtl" && (r += H(e.clientWidth, n.clientWidth) - i), {
|
|
719
|
+
width: i,
|
|
720
|
+
height: s,
|
|
721
|
+
x: r,
|
|
722
|
+
y: c
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function ae(t, e) {
|
|
726
|
+
const o = T(t), n = L(t), i = o.visualViewport;
|
|
727
|
+
let s = n.clientWidth, r = n.clientHeight, c = 0, l = 0;
|
|
728
|
+
if (i) {
|
|
729
|
+
s = i.width, r = i.height;
|
|
730
|
+
const a = wt();
|
|
731
|
+
(!a || a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
732
|
+
}
|
|
733
|
+
return {
|
|
734
|
+
width: s,
|
|
735
|
+
height: r,
|
|
736
|
+
x: c,
|
|
737
|
+
y: l
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
function fe(t, e) {
|
|
741
|
+
const o = J(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, s = k(t) ? j(t) : S(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, l = i * s.x, a = n * s.y;
|
|
742
|
+
return {
|
|
743
|
+
width: r,
|
|
744
|
+
height: c,
|
|
745
|
+
x: l,
|
|
746
|
+
y: a
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
function At(t, e, o) {
|
|
750
|
+
let n;
|
|
751
|
+
if (e === "viewport")
|
|
752
|
+
n = ae(t, o);
|
|
753
|
+
else if (e === "document")
|
|
754
|
+
n = le(L(t));
|
|
755
|
+
else if (C(e))
|
|
756
|
+
n = fe(e, o);
|
|
757
|
+
else {
|
|
758
|
+
const i = Dt(t);
|
|
759
|
+
n = {
|
|
760
|
+
x: e.x - i.x,
|
|
761
|
+
y: e.y - i.y,
|
|
762
|
+
width: e.width,
|
|
763
|
+
height: e.height
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
return it(n);
|
|
767
|
+
}
|
|
768
|
+
function Mt(t, e) {
|
|
769
|
+
const o = M(t);
|
|
770
|
+
return o === e || !C(o) || z(o) ? !1 : O(o).position === "fixed" || Mt(o, e);
|
|
771
|
+
}
|
|
772
|
+
function ue(t, e) {
|
|
773
|
+
const o = e.get(t);
|
|
774
|
+
if (o)
|
|
775
|
+
return o;
|
|
776
|
+
let n = dt(t, [], !1).filter((c) => C(c) && X(c) !== "body"), i = null;
|
|
777
|
+
const s = O(t).position === "fixed";
|
|
778
|
+
let r = s ? M(t) : t;
|
|
779
|
+
for (; C(r) && !z(r); ) {
|
|
780
|
+
const c = O(r), l = ht(r);
|
|
781
|
+
!l && c.position === "fixed" && (i = null), (s ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || tt(r) && !l && Mt(t, r)) ? n = n.filter((d) => d !== r) : i = c, r = M(r);
|
|
782
|
+
}
|
|
783
|
+
return e.set(t, n), n;
|
|
784
|
+
}
|
|
785
|
+
function de(t) {
|
|
786
|
+
let {
|
|
787
|
+
element: e,
|
|
788
|
+
boundary: o,
|
|
789
|
+
rootBoundary: n,
|
|
790
|
+
strategy: i
|
|
791
|
+
} = t;
|
|
792
|
+
const r = [...o === "clippingAncestors" ? rt(e) ? [] : ue(e, this._c) : [].concat(o), n], c = r[0], l = r.reduce((a, d) => {
|
|
793
|
+
const f = At(e, d, i);
|
|
794
|
+
return a.top = H(f.top, a.top), a.right = G(f.right, a.right), a.bottom = G(f.bottom, a.bottom), a.left = H(f.left, a.left), a;
|
|
795
|
+
}, At(e, c, i));
|
|
796
|
+
return {
|
|
797
|
+
width: l.right - l.left,
|
|
798
|
+
height: l.bottom - l.top,
|
|
799
|
+
x: l.left,
|
|
800
|
+
y: l.top
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
function me(t) {
|
|
804
|
+
const {
|
|
805
|
+
width: e,
|
|
806
|
+
height: o
|
|
807
|
+
} = Lt(t);
|
|
808
|
+
return {
|
|
809
|
+
width: e,
|
|
810
|
+
height: o
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
function ge(t, e, o) {
|
|
814
|
+
const n = k(e), i = L(e), s = o === "fixed", r = J(t, !0, s, e);
|
|
815
|
+
let c = {
|
|
816
|
+
scrollLeft: 0,
|
|
817
|
+
scrollTop: 0
|
|
818
|
+
};
|
|
819
|
+
const l = S(0);
|
|
820
|
+
if (n || !n && !s)
|
|
821
|
+
if ((X(e) !== "body" || tt(i)) && (c = ct(e)), n) {
|
|
822
|
+
const m = J(e, !0, s, e);
|
|
823
|
+
l.x = m.x + e.clientLeft, l.y = m.y + e.clientTop;
|
|
824
|
+
} else i && (l.x = xt(i));
|
|
825
|
+
const a = i && !n && !s ? Nt(i, c) : S(0), d = r.left + c.scrollLeft - l.x - a.x, f = r.top + c.scrollTop - l.y - a.y;
|
|
826
|
+
return {
|
|
827
|
+
x: d,
|
|
828
|
+
y: f,
|
|
829
|
+
width: r.width,
|
|
830
|
+
height: r.height
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
function at(t) {
|
|
834
|
+
return O(t).position === "static";
|
|
835
|
+
}
|
|
836
|
+
function Tt(t, e) {
|
|
837
|
+
if (!k(t) || O(t).position === "fixed")
|
|
838
|
+
return null;
|
|
839
|
+
if (e)
|
|
840
|
+
return e(t);
|
|
841
|
+
let o = t.offsetParent;
|
|
842
|
+
return L(t) === o && (o = o.ownerDocument.body), o;
|
|
843
|
+
}
|
|
844
|
+
function _t(t, e) {
|
|
845
|
+
const o = T(t);
|
|
846
|
+
if (rt(t))
|
|
847
|
+
return o;
|
|
848
|
+
if (!k(t)) {
|
|
849
|
+
let i = M(t);
|
|
850
|
+
for (; i && !z(i); ) {
|
|
851
|
+
if (C(i) && !at(i))
|
|
852
|
+
return i;
|
|
853
|
+
i = M(i);
|
|
854
|
+
}
|
|
855
|
+
return o;
|
|
856
|
+
}
|
|
857
|
+
let n = Tt(t, e);
|
|
858
|
+
for (; n && ne(n) && at(n); )
|
|
859
|
+
n = Tt(n, e);
|
|
860
|
+
return n && z(n) && at(n) && !ht(n) ? o : n || oe(t) || o;
|
|
861
|
+
}
|
|
862
|
+
const pe = async function(t) {
|
|
863
|
+
const e = this.getOffsetParent || _t, o = this.getDimensions, n = await o(t.floating);
|
|
864
|
+
return {
|
|
865
|
+
reference: ge(t.reference, await e(t.floating), t.strategy),
|
|
866
|
+
floating: {
|
|
867
|
+
x: 0,
|
|
868
|
+
y: 0,
|
|
869
|
+
width: n.width,
|
|
870
|
+
height: n.height
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
function he(t) {
|
|
875
|
+
return O(t).direction === "rtl";
|
|
876
|
+
}
|
|
877
|
+
const we = {
|
|
878
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: re,
|
|
879
|
+
getDocumentElement: L,
|
|
880
|
+
getClippingRect: de,
|
|
881
|
+
getOffsetParent: _t,
|
|
882
|
+
getElementRects: pe,
|
|
883
|
+
getClientRects: ce,
|
|
884
|
+
getDimensions: me,
|
|
885
|
+
getScale: j,
|
|
886
|
+
isElement: C,
|
|
887
|
+
isRTL: he
|
|
888
|
+
}, xe = te, ye = ee, be = Qt, ve = Jt, Ae = (t, e, o) => {
|
|
889
|
+
const n = /* @__PURE__ */ new Map(), i = {
|
|
890
|
+
platform: we,
|
|
891
|
+
...o
|
|
892
|
+
}, s = {
|
|
893
|
+
...i.platform,
|
|
894
|
+
_c: n
|
|
895
|
+
};
|
|
896
|
+
return Gt(t, e, {
|
|
897
|
+
...i,
|
|
898
|
+
platform: s
|
|
899
|
+
});
|
|
900
|
+
}, et = (t, e = "px") => typeof t > "u" ? "" : `${Math.round(t)}${e}`, Te = () => W("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Ct = ({
|
|
19
901
|
mode: t
|
|
20
|
-
}) =>
|
|
902
|
+
}) => W({
|
|
21
903
|
"bg-surface-darker": t === "dark" || t === "system",
|
|
22
904
|
"bg-surface-light": t === "light" || t === "alt-system",
|
|
23
905
|
"dark:bg-surface-light": t === "system",
|
|
24
906
|
"dark:bg-surface-darker": t === "alt-system"
|
|
25
|
-
}),
|
|
907
|
+
}), Ce = ({
|
|
26
908
|
mode: t
|
|
27
|
-
}) =>
|
|
909
|
+
}) => W({
|
|
28
910
|
"text-copy-light": t === "dark" || t === "system",
|
|
29
911
|
"text-copy-dark": t === "light" || t === "alt-system",
|
|
30
912
|
"dark:text-copy-dark": t === "system",
|
|
31
913
|
"dark:text-copy-light": t === "alt-system"
|
|
32
|
-
}),
|
|
33
|
-
mode: t
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"fill-surface-light [&>path:first-of-type]:bg-surface-light [&>path:last-of-type]:bg-surface-light": t === "light" || t === "alt-system",
|
|
37
|
-
"dark:fill-surface-light dark:[&>path:first-of-type]:bg-surface-light dark:[&>path:last-of-type]:bg-surface-light": t === "system",
|
|
38
|
-
"dark:fill-surface-darker dark:[&>path:first-of-type]:bg-surface-darker dark:[&>path:last-of-type]:bg-surface-darker": t === "alt-system"
|
|
39
|
-
}), ot = ({
|
|
40
|
-
mode: t
|
|
914
|
+
}), Oe = () => W("absolute", "size-2", "transform rotate-45"), Re = ({
|
|
915
|
+
mode: t,
|
|
916
|
+
className: e,
|
|
917
|
+
arrowClassName: o
|
|
41
918
|
}) => {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
919
|
+
const n = W("relative inline-block"), i = W(
|
|
920
|
+
It,
|
|
921
|
+
Te(),
|
|
922
|
+
Ct({ mode: t }),
|
|
923
|
+
Ce({ mode: t }),
|
|
924
|
+
e
|
|
925
|
+
), s = W(
|
|
926
|
+
Ht,
|
|
927
|
+
Oe(),
|
|
928
|
+
Ct({ mode: t }),
|
|
929
|
+
o
|
|
50
930
|
);
|
|
51
|
-
return { tooltip:
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const f = r.current;
|
|
56
|
-
f && window.clearTimeout(f);
|
|
57
|
-
}, []);
|
|
58
|
-
return _(() => {
|
|
59
|
-
if (!s.active) {
|
|
60
|
-
l(t);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
o.current && (a(), r.current = window.setTimeout(() => {
|
|
64
|
-
c.current = !1, l(t);
|
|
65
|
-
}, e));
|
|
66
|
-
}, [t, s, e, a]), _(() => (o.current = !0, a), [a]), [p];
|
|
67
|
-
}
|
|
68
|
-
const ft = ({
|
|
931
|
+
return { tooltip: i, arrow: s, wrapper: n };
|
|
932
|
+
}, Se = ({ delay: t = 300 }) => ({
|
|
933
|
+
animation: `av-tooltip-fade-in ${t}ms ease-in-out`
|
|
934
|
+
}), Pe = ({
|
|
69
935
|
trigger: t,
|
|
70
936
|
label: e,
|
|
71
|
-
placement:
|
|
72
|
-
mode:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
delay: c = 300
|
|
937
|
+
placement: o = "top",
|
|
938
|
+
mode: n = "system",
|
|
939
|
+
delay: i = 300,
|
|
940
|
+
className: s,
|
|
941
|
+
arrowClassName: r
|
|
77
942
|
}) => {
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
943
|
+
const c = lt(null), l = lt(null), a = lt(null), [d, f] = Wt(!1), m = Re({ mode: n, className: s, arrowClassName: r }), u = Se({ delay: i }), g = Ft(async () => {
|
|
944
|
+
var p, h;
|
|
945
|
+
if (c.current && l.current && a.current) {
|
|
946
|
+
const {
|
|
947
|
+
x: w,
|
|
948
|
+
y: x,
|
|
949
|
+
middlewareData: y,
|
|
950
|
+
placement: v
|
|
951
|
+
} = await Ae(c.current, l.current, {
|
|
952
|
+
placement: o,
|
|
953
|
+
middleware: [
|
|
954
|
+
xe(10),
|
|
955
|
+
be({
|
|
956
|
+
crossAxis: o.includes("-"),
|
|
957
|
+
fallbackAxisSideDirection: "start"
|
|
958
|
+
}),
|
|
959
|
+
ye({ padding: 5 }),
|
|
960
|
+
ve({ element: a.current })
|
|
961
|
+
]
|
|
962
|
+
});
|
|
963
|
+
Object.assign(l.current.style, {
|
|
964
|
+
left: et(w),
|
|
965
|
+
top: et(x),
|
|
966
|
+
...u
|
|
967
|
+
});
|
|
968
|
+
const b = {
|
|
969
|
+
top: "bottom",
|
|
970
|
+
right: "left",
|
|
971
|
+
bottom: "top",
|
|
972
|
+
left: "right"
|
|
973
|
+
}[v.split("-")[0]];
|
|
974
|
+
Object.assign(a.current.style, {
|
|
975
|
+
left: et((p = y.arrow) == null ? void 0 : p.x),
|
|
976
|
+
top: et((h = y.arrow) == null ? void 0 : h.y),
|
|
977
|
+
right: "",
|
|
978
|
+
bottom: "",
|
|
979
|
+
[b]: "-4px"
|
|
980
|
+
});
|
|
85
981
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
placement: s,
|
|
92
|
-
// Make sure the tooltip stays on the screen
|
|
93
|
-
whileElementsMounted: U,
|
|
94
|
-
middleware: [
|
|
95
|
-
V({
|
|
96
|
-
element: y
|
|
97
|
-
}),
|
|
98
|
-
D(11),
|
|
99
|
-
j({
|
|
100
|
-
crossAxis: s.includes("-"),
|
|
101
|
-
fallbackAxisSideDirection: "start"
|
|
102
|
-
}),
|
|
103
|
-
B()
|
|
104
|
-
]
|
|
105
|
-
}), { styles: S } = H(i), k = ot({ mode: p }), C = W(i, { move: !1, delay: { open: c } }), v = q(i), P = z(i, {
|
|
106
|
-
referencePress: !0
|
|
107
|
-
}), A = G(i, { role: "tooltip" }), { getReferenceProps: E, getFloatingProps: O } = J([
|
|
108
|
-
C,
|
|
109
|
-
v,
|
|
110
|
-
P,
|
|
111
|
-
A
|
|
112
|
-
]), m = t, F = m.props, L = X(
|
|
113
|
-
m,
|
|
982
|
+
}, [o, u]);
|
|
983
|
+
return $t(() => {
|
|
984
|
+
(async () => d && await g())();
|
|
985
|
+
}, [g, d]), /* @__PURE__ */ yt(
|
|
986
|
+
"div",
|
|
114
987
|
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
988
|
+
className: m.wrapper,
|
|
989
|
+
ref: c,
|
|
990
|
+
onMouseEnter: () => f(!0),
|
|
991
|
+
onMouseLeave: () => f(!1),
|
|
992
|
+
onClick: () => f(!1),
|
|
993
|
+
children: [
|
|
994
|
+
t,
|
|
995
|
+
d && /* @__PURE__ */ yt(
|
|
996
|
+
"div",
|
|
997
|
+
{
|
|
998
|
+
role: "tooltip",
|
|
999
|
+
ref: l,
|
|
1000
|
+
className: m.tooltip,
|
|
1001
|
+
children: [
|
|
1002
|
+
e,
|
|
1003
|
+
/* @__PURE__ */ Vt("div", { ref: a, className: m.arrow })
|
|
1004
|
+
]
|
|
1005
|
+
}
|
|
1006
|
+
)
|
|
1007
|
+
]
|
|
120
1008
|
}
|
|
121
1009
|
);
|
|
122
|
-
return /* @__PURE__ */ w(N, { children: [
|
|
123
|
-
L,
|
|
124
|
-
/* @__PURE__ */ b(K, { children: g && /* @__PURE__ */ w(
|
|
125
|
-
"div",
|
|
126
|
-
{
|
|
127
|
-
className: k.tooltip,
|
|
128
|
-
ref: d.setFloating,
|
|
129
|
-
style: { ...R, ...S },
|
|
130
|
-
...O(),
|
|
131
|
-
children: [
|
|
132
|
-
/* @__PURE__ */ b(
|
|
133
|
-
Q,
|
|
134
|
-
{
|
|
135
|
-
ref: y,
|
|
136
|
-
context: i,
|
|
137
|
-
className: k.arrow
|
|
138
|
-
}
|
|
139
|
-
),
|
|
140
|
-
e
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
) })
|
|
144
|
-
] });
|
|
145
1010
|
};
|
|
146
1011
|
export {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
1012
|
+
Ht as TOOLTIP_ARROW_CLASSNAME,
|
|
1013
|
+
It as TOOLTIP_CLASSNAME,
|
|
1014
|
+
Pe as Tooltip
|
|
150
1015
|
};
|
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}.relative{position:relative}.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}.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)))}.
|
|
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)))}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-tooltip",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@versini/ui-types": "4.3.
|
|
41
|
+
"@versini/ui-types": "4.3.1"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@floating-ui/
|
|
44
|
+
"@floating-ui/dom": "1.6.13",
|
|
45
45
|
"@tailwindcss/typography": "0.5.16",
|
|
46
46
|
"clsx": "2.1.1",
|
|
47
47
|
"tailwindcss": "3.4.17"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"sideEffects": [
|
|
50
50
|
"**/*.css"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "1542a19c98ab5af85458a93e788576f97549e589"
|
|
53
53
|
}
|