@annatarhe/lake-ui 0.0.18 → 0.0.20
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/form/select-field.js +7 -6
- package/dist/src/form/select-field.d.ts +4 -1
- package/dist/tooltip/index.js +200 -200
- package/package.json +1 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
function
|
|
3
|
-
const { label: a, options: t } = r;
|
|
4
|
-
return /* @__PURE__ */ n("div", { children: [
|
|
2
|
+
function i(r) {
|
|
3
|
+
const { label: a, options: s, disabled: t, hasError: d, classNames: c, ...o } = r;
|
|
4
|
+
return /* @__PURE__ */ n("div", { className: c, children: [
|
|
5
5
|
/* @__PURE__ */ l("label", { className: "block text-sm font-medium text-gray-300 mb-1", children: a }),
|
|
6
6
|
/* @__PURE__ */ l(
|
|
7
7
|
"select",
|
|
8
8
|
{
|
|
9
9
|
className: "w-full bg-gray-900/50 border border-gray-700 rounded-lg px-4 py-2 text-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
disabled: t,
|
|
11
|
+
...o,
|
|
12
|
+
children: s.map((e) => /* @__PURE__ */ l("option", { value: e.value, children: e.label }, e.value))
|
|
12
13
|
}
|
|
13
14
|
)
|
|
14
15
|
] });
|
|
15
16
|
}
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
i as default
|
|
18
19
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface SelectFieldProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
|
-
label: string;
|
|
3
|
+
label: string | React.ReactNode;
|
|
4
4
|
options: Array<{
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
7
7
|
}>;
|
|
8
8
|
ref: React.Ref<HTMLSelectElement>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hasError?: string;
|
|
11
|
+
classNames?: string;
|
|
9
12
|
}
|
|
10
13
|
declare function SelectField(props: SelectFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export default SelectField;
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as ge, jsx as H } from "react/jsx-runtime";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import _e, { useLayoutEffect as ft, useEffect as dt, useRef as jt
|
|
4
|
+
import _e, { useLayoutEffect as ft, useEffect as dt, useRef as jt } from "react";
|
|
5
5
|
import { r as mt } from "../index-B7Vxkz5-.js";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as Ht } from "../utils/cn.js";
|
|
7
7
|
function Re() {
|
|
8
8
|
return typeof window < "u";
|
|
9
9
|
}
|
|
@@ -39,7 +39,7 @@ function le(e) {
|
|
|
39
39
|
} = z(e);
|
|
40
40
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Yt(e) {
|
|
43
43
|
return ["table", "td", "th"].includes(oe(e));
|
|
44
44
|
}
|
|
45
45
|
function Ee(e) {
|
|
@@ -55,7 +55,7 @@ function We(e) {
|
|
|
55
55
|
const t = $e(), n = N(e) ? z(e) : e;
|
|
56
56
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function zt(e) {
|
|
59
59
|
let t = G(e);
|
|
60
60
|
for (; Y(t) && !te(t); ) {
|
|
61
61
|
if (We(t))
|
|
@@ -151,8 +151,8 @@ function vt() {
|
|
|
151
151
|
return n + "/" + r;
|
|
152
152
|
}).join(" ") : navigator.userAgent;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
154
|
+
function qt(e) {
|
|
155
|
+
return Xt() ? !1 : !Ge() && e.width === 0 && e.height === 0 || Ge() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
156
156
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
157
157
|
}
|
|
158
158
|
function bt() {
|
|
@@ -162,10 +162,10 @@ function Ge() {
|
|
|
162
162
|
const e = /android/i;
|
|
163
163
|
return e.test(pt()) || e.test(vt());
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ut() {
|
|
166
166
|
return pt().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Xt() {
|
|
169
169
|
return vt().includes("jsdom/");
|
|
170
170
|
}
|
|
171
171
|
function Ne(e, t) {
|
|
@@ -175,22 +175,22 @@ function Ne(e, t) {
|
|
|
175
175
|
function Q(e) {
|
|
176
176
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function _t(e) {
|
|
179
179
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
180
180
|
}
|
|
181
|
-
const
|
|
182
|
-
function
|
|
183
|
-
return Y(e) && e.matches(
|
|
181
|
+
const Gt = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
182
|
+
function Zt(e) {
|
|
183
|
+
return Y(e) && e.matches(Gt);
|
|
184
184
|
}
|
|
185
185
|
const ne = Math.min, Z = Math.max, pe = Math.round, fe = Math.floor, X = (e) => ({
|
|
186
186
|
x: e,
|
|
187
187
|
y: e
|
|
188
|
-
}),
|
|
188
|
+
}), Kt = {
|
|
189
189
|
left: "right",
|
|
190
190
|
right: "left",
|
|
191
191
|
bottom: "top",
|
|
192
192
|
top: "bottom"
|
|
193
|
-
},
|
|
193
|
+
}, Jt = {
|
|
194
194
|
start: "end",
|
|
195
195
|
end: "start"
|
|
196
196
|
};
|
|
@@ -218,20 +218,20 @@ function re(e) {
|
|
|
218
218
|
function He(e) {
|
|
219
219
|
return yt(re(e));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Qt(e, t, n) {
|
|
222
222
|
n === void 0 && (n = !1);
|
|
223
223
|
const r = ue(e), o = He(e), s = je(o);
|
|
224
224
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
225
225
|
return t.reference[s] > t.floating[s] && (i = ve(i)), [i, ve(i)];
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function en(e) {
|
|
228
228
|
const t = ve(e);
|
|
229
229
|
return [Be(e), t, Be(t)];
|
|
230
230
|
}
|
|
231
231
|
function Be(e) {
|
|
232
|
-
return e.replace(/start|end/g, (t) =>
|
|
232
|
+
return e.replace(/start|end/g, (t) => Jt[t]);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function tn(e, t, n) {
|
|
235
235
|
const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
|
|
236
236
|
switch (e) {
|
|
237
237
|
case "top":
|
|
@@ -244,15 +244,15 @@ function nn(e, t, n) {
|
|
|
244
244
|
return [];
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function nn(e, t, n, r) {
|
|
248
248
|
const o = ue(e);
|
|
249
|
-
let s =
|
|
249
|
+
let s = tn(K(e), n === "start", r);
|
|
250
250
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Be)))), s;
|
|
251
251
|
}
|
|
252
252
|
function ve(e) {
|
|
253
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
253
|
+
return e.replace(/left|right|bottom|top/g, (t) => Kt[t]);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function rn(e) {
|
|
256
256
|
return {
|
|
257
257
|
top: 0,
|
|
258
258
|
right: 0,
|
|
@@ -262,7 +262,7 @@ function on(e) {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
function wt(e) {
|
|
265
|
-
return typeof e != "number" ?
|
|
265
|
+
return typeof e != "number" ? rn(e) : {
|
|
266
266
|
top: e,
|
|
267
267
|
right: e,
|
|
268
268
|
bottom: e,
|
|
@@ -291,7 +291,7 @@ function be(e) {
|
|
|
291
291
|
* tabbable 6.2.0
|
|
292
292
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
293
293
|
*/
|
|
294
|
-
var
|
|
294
|
+
var on = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ve = /* @__PURE__ */ on.join(","), xt = typeof Element > "u", se = xt ? function() {
|
|
295
295
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, ye = !xt && Element.prototype.getRootNode ? function(e) {
|
|
296
296
|
var t;
|
|
297
297
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -302,15 +302,15 @@ var sn = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
302
302
|
n === void 0 && (n = !0);
|
|
303
303
|
var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), s = o === "" || o === "true", i = s || n && t && e(t.parentNode);
|
|
304
304
|
return i;
|
|
305
|
-
},
|
|
305
|
+
}, sn = function(t) {
|
|
306
306
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
307
307
|
return r === "" || r === "true";
|
|
308
|
-
},
|
|
308
|
+
}, cn = function(t, n, r) {
|
|
309
309
|
if (we(t))
|
|
310
310
|
return [];
|
|
311
311
|
var o = Array.prototype.slice.apply(t.querySelectorAll(Ve));
|
|
312
312
|
return n && se.call(t, Ve) && o.unshift(t), o = o.filter(r), o;
|
|
313
|
-
},
|
|
313
|
+
}, ln = function e(t, n, r) {
|
|
314
314
|
for (var o = [], s = Array.from(t); s.length; ) {
|
|
315
315
|
var i = s.shift();
|
|
316
316
|
if (!we(i, !1))
|
|
@@ -341,26 +341,26 @@ var sn = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
341
341
|
}, Et = function(t) {
|
|
342
342
|
if (!t)
|
|
343
343
|
throw new Error("No node provided");
|
|
344
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
345
|
-
},
|
|
344
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || sn(t)) && !Rt(t) ? 0 : t.tabIndex;
|
|
345
|
+
}, an = function(t, n) {
|
|
346
346
|
var r = Et(t);
|
|
347
347
|
return r < 0 && n && !Rt(t) ? 0 : r;
|
|
348
|
-
},
|
|
348
|
+
}, un = function(t, n) {
|
|
349
349
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
350
350
|
}, Ct = function(t) {
|
|
351
351
|
return t.tagName === "INPUT";
|
|
352
|
-
},
|
|
352
|
+
}, fn = function(t) {
|
|
353
353
|
return Ct(t) && t.type === "hidden";
|
|
354
|
-
},
|
|
354
|
+
}, dn = function(t) {
|
|
355
355
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
356
356
|
return r.tagName === "SUMMARY";
|
|
357
357
|
});
|
|
358
358
|
return n;
|
|
359
|
-
},
|
|
359
|
+
}, mn = function(t, n) {
|
|
360
360
|
for (var r = 0; r < t.length; r++)
|
|
361
361
|
if (t[r].checked && t[r].form === n)
|
|
362
362
|
return t[r];
|
|
363
|
-
},
|
|
363
|
+
}, gn = function(t) {
|
|
364
364
|
if (!t.name)
|
|
365
365
|
return !0;
|
|
366
366
|
var n = t.form || ye(t), r = function(c) {
|
|
@@ -374,13 +374,13 @@ var sn = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
374
374
|
} catch (i) {
|
|
375
375
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", i.message), !1;
|
|
376
376
|
}
|
|
377
|
-
var s =
|
|
377
|
+
var s = mn(o, t.form);
|
|
378
378
|
return !s || s === t;
|
|
379
|
-
},
|
|
379
|
+
}, hn = function(t) {
|
|
380
380
|
return Ct(t) && t.type === "radio";
|
|
381
|
+
}, pn = function(t) {
|
|
382
|
+
return hn(t) && !gn(t);
|
|
381
383
|
}, vn = function(t) {
|
|
382
|
-
return pn(t) && !hn(t);
|
|
383
|
-
}, bn = function(t) {
|
|
384
384
|
var n, r = t && ye(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, s = !1;
|
|
385
385
|
if (r && r !== t) {
|
|
386
386
|
var i, c, l;
|
|
@@ -393,7 +393,7 @@ var sn = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
393
393
|
}, Ze = function(t) {
|
|
394
394
|
var n = t.getBoundingClientRect(), r = n.width, o = n.height;
|
|
395
395
|
return r === 0 && o === 0;
|
|
396
|
-
},
|
|
396
|
+
}, bn = function(t, n) {
|
|
397
397
|
var r = n.displayCheck, o = n.getShadowRoot;
|
|
398
398
|
if (getComputedStyle(t).visibility === "hidden")
|
|
399
399
|
return !0;
|
|
@@ -410,14 +410,14 @@ var sn = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
410
410
|
}
|
|
411
411
|
t = c;
|
|
412
412
|
}
|
|
413
|
-
if (
|
|
413
|
+
if (vn(t))
|
|
414
414
|
return !t.getClientRects().length;
|
|
415
415
|
if (r !== "legacy-full")
|
|
416
416
|
return !0;
|
|
417
417
|
} else if (r === "non-zero-area")
|
|
418
418
|
return Ze(t);
|
|
419
419
|
return !1;
|
|
420
|
-
},
|
|
420
|
+
}, yn = function(t) {
|
|
421
421
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
422
422
|
for (var n = t.parentElement; n; ) {
|
|
423
423
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -431,21 +431,21 @@ var sn = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
431
431
|
n = n.parentElement;
|
|
432
432
|
}
|
|
433
433
|
return !1;
|
|
434
|
-
},
|
|
434
|
+
}, wn = function(t, n) {
|
|
435
435
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
436
436
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
437
437
|
// note related to `candidateSelectors`)
|
|
438
|
-
we(n) ||
|
|
439
|
-
|
|
438
|
+
we(n) || fn(n) || bn(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
439
|
+
dn(n) || yn(n));
|
|
440
440
|
}, Ke = function(t, n) {
|
|
441
|
-
return !(
|
|
442
|
-
},
|
|
441
|
+
return !(pn(n) || Et(n) < 0 || !wn(t, n));
|
|
442
|
+
}, xn = function(t) {
|
|
443
443
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
444
444
|
return !!(isNaN(n) || n >= 0);
|
|
445
|
-
},
|
|
445
|
+
}, Rn = function e(t) {
|
|
446
446
|
var n = [], r = [];
|
|
447
447
|
return t.forEach(function(o, s) {
|
|
448
|
-
var i = !!o.scopeParent, c = i ? o.scopeParent : o, l =
|
|
448
|
+
var i = !!o.scopeParent, c = i ? o.scopeParent : o, l = an(c, i), a = i ? e(o.candidates) : c;
|
|
449
449
|
l === 0 ? i ? n.push.apply(n, a) : n.push(c) : r.push({
|
|
450
450
|
documentOrder: s,
|
|
451
451
|
tabIndex: l,
|
|
@@ -453,18 +453,18 @@ var sn = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
453
453
|
isScope: i,
|
|
454
454
|
content: a
|
|
455
455
|
});
|
|
456
|
-
}), r.sort(
|
|
456
|
+
}), r.sort(un).reduce(function(o, s) {
|
|
457
457
|
return s.isScope ? o.push.apply(o, s.content) : o.push(s.content), o;
|
|
458
458
|
}, []).concat(n);
|
|
459
459
|
}, St = function(t, n) {
|
|
460
460
|
n = n || {};
|
|
461
461
|
var r;
|
|
462
|
-
return n.getShadowRoot ? r =
|
|
462
|
+
return n.getShadowRoot ? r = ln([t], n.includeContainer, {
|
|
463
463
|
filter: Ke.bind(null, n),
|
|
464
464
|
flatten: !1,
|
|
465
465
|
getShadowRoot: n.getShadowRoot,
|
|
466
|
-
shadowRootFilter:
|
|
467
|
-
}) : r =
|
|
466
|
+
shadowRootFilter: xn
|
|
467
|
+
}) : r = cn(t, n.includeContainer, Ke.bind(null, n)), Rn(r);
|
|
468
468
|
};
|
|
469
469
|
function Je(e, t, n) {
|
|
470
470
|
let {
|
|
@@ -514,7 +514,7 @@ function Je(e, t, n) {
|
|
|
514
514
|
}
|
|
515
515
|
return u;
|
|
516
516
|
}
|
|
517
|
-
const
|
|
517
|
+
const En = async (e, t, n) => {
|
|
518
518
|
const {
|
|
519
519
|
placement: r = "bottom",
|
|
520
520
|
strategy: o = "absolute",
|
|
@@ -620,7 +620,7 @@ async function Tt(e, t) {
|
|
|
620
620
|
right: (C.right - b.right + g.right) / E.x
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
|
-
const
|
|
623
|
+
const Cn = (e) => ({
|
|
624
624
|
name: "arrow",
|
|
625
625
|
options: e,
|
|
626
626
|
async fn(t) {
|
|
@@ -641,10 +641,10 @@ const Sn = (e) => ({
|
|
|
641
641
|
const f = wt(d), p = {
|
|
642
642
|
x: n,
|
|
643
643
|
y: r
|
|
644
|
-
}, u = He(o), g = je(u), h = await i.getDimensions(a), v = u === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", E = s.reference[g] + s.reference[u] - p[u] - s.floating[g], C = p[u] - s.reference[u],
|
|
645
|
-
let T =
|
|
646
|
-
(!T || !await (i.isElement == null ? void 0 : i.isElement(
|
|
647
|
-
const
|
|
644
|
+
}, u = He(o), g = je(u), h = await i.getDimensions(a), v = u === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", E = s.reference[g] + s.reference[u] - p[u] - s.floating[g], C = p[u] - s.reference[u], L = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a));
|
|
645
|
+
let T = L ? L[y] : 0;
|
|
646
|
+
(!T || !await (i.isElement == null ? void 0 : i.isElement(L))) && (T = c.floating[y] || s.floating[g]);
|
|
647
|
+
const M = E / 2 - C / 2, V = T / 2 - h[g] / 2 - 1, k = ne(f[b], V), B = ne(f[x], V), O = k, I = T - h[g] - B, A = T / 2 - h[g] / 2 + M, W = ke(O, A, I), D = !l.arrow && ue(o) != null && A !== W && s.reference[g] / 2 - (A < O ? k : B) - h[g] / 2 < 0, R = D ? A < O ? A - O : A - I : 0;
|
|
648
648
|
return {
|
|
649
649
|
[u]: p[u] + R,
|
|
650
650
|
data: {
|
|
@@ -657,7 +657,7 @@ const Sn = (e) => ({
|
|
|
657
657
|
reset: D
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), Sn = function(e) {
|
|
661
661
|
return e === void 0 && (e = {}), {
|
|
662
662
|
name: "flip",
|
|
663
663
|
options: e,
|
|
@@ -681,13 +681,13 @@ const Sn = (e) => ({
|
|
|
681
681
|
} = ae(e, t);
|
|
682
682
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
683
683
|
return {};
|
|
684
|
-
const b = K(o), x = re(c), y = K(c) === c, E = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), C = p || (y || !h ? [ve(c)] :
|
|
685
|
-
!p &&
|
|
686
|
-
const T = [c, ...C],
|
|
684
|
+
const b = K(o), x = re(c), y = K(c) === c, E = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), C = p || (y || !h ? [ve(c)] : en(c)), L = g !== "none";
|
|
685
|
+
!p && L && C.push(...nn(c, h, g, E));
|
|
686
|
+
const T = [c, ...C], M = await Tt(t, v), V = [];
|
|
687
687
|
let k = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
688
|
-
if (d && V.push(
|
|
689
|
-
const A =
|
|
690
|
-
V.push(
|
|
688
|
+
if (d && V.push(M[b]), f) {
|
|
689
|
+
const A = Qt(o, i, E);
|
|
690
|
+
V.push(M[A[0]], M[A[1]]);
|
|
691
691
|
}
|
|
692
692
|
if (k = [...k, {
|
|
693
693
|
placement: o,
|
|
@@ -711,7 +711,7 @@ const Sn = (e) => ({
|
|
|
711
711
|
case "bestFit": {
|
|
712
712
|
var I;
|
|
713
713
|
const R = (I = k.filter((w) => {
|
|
714
|
-
if (
|
|
714
|
+
if (L) {
|
|
715
715
|
const S = re(w.placement);
|
|
716
716
|
return S === x || // Create a bias to the `y` side axis due to horizontal
|
|
717
717
|
// reading directions favoring greater width.
|
|
@@ -737,7 +737,7 @@ const Sn = (e) => ({
|
|
|
737
737
|
}
|
|
738
738
|
};
|
|
739
739
|
};
|
|
740
|
-
async function
|
|
740
|
+
async function Tn(e, t) {
|
|
741
741
|
const {
|
|
742
742
|
placement: n,
|
|
743
743
|
platform: r,
|
|
@@ -764,7 +764,7 @@ async function An(e, t) {
|
|
|
764
764
|
y: u * d
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
|
-
const
|
|
767
|
+
const An = function(e) {
|
|
768
768
|
return e === void 0 && (e = 0), {
|
|
769
769
|
name: "offset",
|
|
770
770
|
options: e,
|
|
@@ -775,7 +775,7 @@ const On = function(e) {
|
|
|
775
775
|
y: s,
|
|
776
776
|
placement: i,
|
|
777
777
|
middlewareData: c
|
|
778
|
-
} = t, l = await
|
|
778
|
+
} = t, l = await Tn(t, e);
|
|
779
779
|
return i === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
780
780
|
x: o + l.x,
|
|
781
781
|
y: s + l.y,
|
|
@@ -786,7 +786,7 @@ const On = function(e) {
|
|
|
786
786
|
};
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
|
-
},
|
|
789
|
+
}, On = function(e) {
|
|
790
790
|
return e === void 0 && (e = {}), {
|
|
791
791
|
name: "shift",
|
|
792
792
|
options: e,
|
|
@@ -871,10 +871,10 @@ function ee(e) {
|
|
|
871
871
|
y: c
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
|
-
const
|
|
874
|
+
const Pn = /* @__PURE__ */ X(0);
|
|
875
875
|
function Ot(e) {
|
|
876
876
|
const t = $(e);
|
|
877
|
-
return !$e() || !t.visualViewport ?
|
|
877
|
+
return !$e() || !t.visualViewport ? Pn : {
|
|
878
878
|
x: t.visualViewport.offsetLeft,
|
|
879
879
|
y: t.visualViewport.offsetTop
|
|
880
880
|
};
|
|
@@ -919,7 +919,7 @@ function Pt(e, t, n) {
|
|
|
919
919
|
y: s
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Mn(e) {
|
|
923
923
|
let {
|
|
924
924
|
elements: t,
|
|
925
925
|
rect: n,
|
|
@@ -946,10 +946,10 @@ function Dn(e) {
|
|
|
946
946
|
y: n.y * a.y - l.scrollTop * a.y + d.y + p.y
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function Dn(e) {
|
|
950
950
|
return Array.from(e.getClientRects());
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function In(e) {
|
|
953
953
|
const t = _(e), n = Ce(e), r = e.ownerDocument.body, o = Z(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Z(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
954
954
|
let i = -n.scrollLeft + ze(e);
|
|
955
955
|
const c = -n.scrollTop;
|
|
@@ -960,7 +960,7 @@ function Fn(e) {
|
|
|
960
960
|
y: c
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Fn(e, t) {
|
|
964
964
|
const n = $(e), r = _(e), o = n.visualViewport;
|
|
965
965
|
let s = r.clientWidth, i = r.clientHeight, c = 0, l = 0;
|
|
966
966
|
if (o) {
|
|
@@ -975,7 +975,7 @@ function Nn(e, t) {
|
|
|
975
975
|
y: l
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Nn(e, t) {
|
|
979
979
|
const n = J(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Y(e) ? ee(e) : X(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, l = o * s.x, a = r * s.y;
|
|
980
980
|
return {
|
|
981
981
|
width: i,
|
|
@@ -987,11 +987,11 @@ function kn(e, t) {
|
|
|
987
987
|
function Qe(e, t, n) {
|
|
988
988
|
let r;
|
|
989
989
|
if (t === "viewport")
|
|
990
|
-
r =
|
|
990
|
+
r = Fn(e, n);
|
|
991
991
|
else if (t === "document")
|
|
992
|
-
r =
|
|
992
|
+
r = In(_(e));
|
|
993
993
|
else if (N(t))
|
|
994
|
-
r =
|
|
994
|
+
r = Nn(t, n);
|
|
995
995
|
else {
|
|
996
996
|
const o = Ot(e);
|
|
997
997
|
r = {
|
|
@@ -1003,11 +1003,11 @@ function Qe(e, t, n) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
return be(r);
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function Lt(e, t) {
|
|
1007
1007
|
const n = G(e);
|
|
1008
|
-
return n === t || !N(n) || te(n) ? !1 : z(n).position === "fixed" ||
|
|
1008
|
+
return n === t || !N(n) || te(n) ? !1 : z(n).position === "fixed" || Lt(n, t);
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function kn(e, t) {
|
|
1011
1011
|
const n = t.get(e);
|
|
1012
1012
|
if (n)
|
|
1013
1013
|
return n;
|
|
@@ -1016,18 +1016,18 @@ function Bn(e, t) {
|
|
|
1016
1016
|
let i = s ? G(e) : e;
|
|
1017
1017
|
for (; N(i) && !te(i); ) {
|
|
1018
1018
|
const c = z(i), l = We(i);
|
|
1019
|
-
!l && c.position === "fixed" && (o = null), (s ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || le(i) && !l &&
|
|
1019
|
+
!l && c.position === "fixed" && (o = null), (s ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || le(i) && !l && Lt(e, i)) ? r = r.filter((d) => d !== i) : o = c, i = G(i);
|
|
1020
1020
|
}
|
|
1021
1021
|
return t.set(e, r), r;
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function Bn(e) {
|
|
1024
1024
|
let {
|
|
1025
1025
|
element: t,
|
|
1026
1026
|
boundary: n,
|
|
1027
1027
|
rootBoundary: r,
|
|
1028
1028
|
strategy: o
|
|
1029
1029
|
} = e;
|
|
1030
|
-
const i = [...n === "clippingAncestors" ? Ee(t) ? [] :
|
|
1030
|
+
const i = [...n === "clippingAncestors" ? Ee(t) ? [] : kn(t, this._c) : [].concat(n), r], c = i[0], l = i.reduce((a, d) => {
|
|
1031
1031
|
const f = Qe(t, d, o);
|
|
1032
1032
|
return a.top = Z(f.top, a.top), a.right = ne(f.right, a.right), a.bottom = ne(f.bottom, a.bottom), a.left = Z(f.left, a.left), a;
|
|
1033
1033
|
}, Qe(t, c, o));
|
|
@@ -1038,7 +1038,7 @@ function Vn(e) {
|
|
|
1038
1038
|
y: l.top
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Vn(e) {
|
|
1042
1042
|
const {
|
|
1043
1043
|
width: t,
|
|
1044
1044
|
height: n
|
|
@@ -1048,7 +1048,7 @@ function Wn(e) {
|
|
|
1048
1048
|
height: n
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function Wn(e, t, n) {
|
|
1052
1052
|
const r = Y(t), o = _(t), s = n === "fixed", i = J(e, !0, s, t);
|
|
1053
1053
|
let c = {
|
|
1054
1054
|
scrollLeft: 0,
|
|
@@ -1079,7 +1079,7 @@ function et(e, t) {
|
|
|
1079
1079
|
let n = e.offsetParent;
|
|
1080
1080
|
return _(e) === n && (n = n.ownerDocument.body), n;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Mt(e, t) {
|
|
1083
1083
|
const n = $(e);
|
|
1084
1084
|
if (Ee(e))
|
|
1085
1085
|
return n;
|
|
@@ -1093,14 +1093,14 @@ function Lt(e, t) {
|
|
|
1093
1093
|
return n;
|
|
1094
1094
|
}
|
|
1095
1095
|
let r = et(e, t);
|
|
1096
|
-
for (; r &&
|
|
1096
|
+
for (; r && Yt(r) && Te(r); )
|
|
1097
1097
|
r = et(r, t);
|
|
1098
|
-
return r && te(r) && Te(r) && !We(r) ? n : r ||
|
|
1098
|
+
return r && te(r) && Te(r) && !We(r) ? n : r || zt(e) || n;
|
|
1099
1099
|
}
|
|
1100
|
-
const
|
|
1101
|
-
const t = this.getOffsetParent ||
|
|
1100
|
+
const $n = async function(e) {
|
|
1101
|
+
const t = this.getOffsetParent || Mt, n = this.getDimensions, r = await n(e.floating);
|
|
1102
1102
|
return {
|
|
1103
|
-
reference:
|
|
1103
|
+
reference: Wn(e.reference, await t(e.floating), e.strategy),
|
|
1104
1104
|
floating: {
|
|
1105
1105
|
x: 0,
|
|
1106
1106
|
y: 0,
|
|
@@ -1109,25 +1109,25 @@ const jn = async function(e) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1112
|
+
function jn(e) {
|
|
1113
1113
|
return z(e).direction === "rtl";
|
|
1114
1114
|
}
|
|
1115
|
-
const
|
|
1116
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1115
|
+
const Hn = {
|
|
1116
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Mn,
|
|
1117
1117
|
getDocumentElement: _,
|
|
1118
|
-
getClippingRect:
|
|
1119
|
-
getOffsetParent:
|
|
1120
|
-
getElementRects:
|
|
1121
|
-
getClientRects:
|
|
1122
|
-
getDimensions:
|
|
1118
|
+
getClippingRect: Bn,
|
|
1119
|
+
getOffsetParent: Mt,
|
|
1120
|
+
getElementRects: $n,
|
|
1121
|
+
getClientRects: Dn,
|
|
1122
|
+
getDimensions: Vn,
|
|
1123
1123
|
getScale: ee,
|
|
1124
1124
|
isElement: N,
|
|
1125
|
-
isRTL:
|
|
1125
|
+
isRTL: jn
|
|
1126
1126
|
};
|
|
1127
1127
|
function Dt(e, t) {
|
|
1128
1128
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function Yn(e, t) {
|
|
1131
1131
|
let n = null, r;
|
|
1132
1132
|
const o = _(e);
|
|
1133
1133
|
function s() {
|
|
@@ -1149,8 +1149,8 @@ function zn(e, t) {
|
|
|
1149
1149
|
threshold: Z(0, ne(1, l)) || 1
|
|
1150
1150
|
};
|
|
1151
1151
|
let E = !0;
|
|
1152
|
-
function C(
|
|
1153
|
-
const T =
|
|
1152
|
+
function C(L) {
|
|
1153
|
+
const T = L[0].intersectionRatio;
|
|
1154
1154
|
if (T !== l) {
|
|
1155
1155
|
if (!E)
|
|
1156
1156
|
return i();
|
|
@@ -1173,7 +1173,7 @@ function zn(e, t) {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
return i(!0), s;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function zn(e, t, n, r) {
|
|
1177
1177
|
r === void 0 && (r = {});
|
|
1178
1178
|
const {
|
|
1179
1179
|
ancestorScroll: o = !0,
|
|
@@ -1187,7 +1187,7 @@ function qn(e, t, n, r) {
|
|
|
1187
1187
|
passive: !0
|
|
1188
1188
|
}), s && b.addEventListener("resize", n);
|
|
1189
1189
|
});
|
|
1190
|
-
const f = a && c ?
|
|
1190
|
+
const f = a && c ? Yn(a, n) : null;
|
|
1191
1191
|
let p = -1, u = null;
|
|
1192
1192
|
i && (u = new ResizeObserver((b) => {
|
|
1193
1193
|
let [x] = b;
|
|
@@ -1209,15 +1209,15 @@ function qn(e, t, n, r) {
|
|
|
1209
1209
|
}), f == null || f(), (b = u) == null || b.disconnect(), u = null, l && cancelAnimationFrame(g);
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
|
-
const
|
|
1212
|
+
const qn = An, Un = On, Xn = Sn, tt = Cn, _n = (e, t, n) => {
|
|
1213
1213
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
1214
|
-
platform:
|
|
1214
|
+
platform: Hn,
|
|
1215
1215
|
...n
|
|
1216
1216
|
}, s = {
|
|
1217
1217
|
...o.platform,
|
|
1218
1218
|
_c: r
|
|
1219
1219
|
};
|
|
1220
|
-
return
|
|
1220
|
+
return En(e, t, {
|
|
1221
1221
|
...o,
|
|
1222
1222
|
platform: s
|
|
1223
1223
|
});
|
|
@@ -1266,7 +1266,7 @@ function Ae(e) {
|
|
|
1266
1266
|
t.current = e;
|
|
1267
1267
|
}), t;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function Gn(e) {
|
|
1270
1270
|
e === void 0 && (e = {});
|
|
1271
1271
|
const {
|
|
1272
1272
|
placement: t = "bottom",
|
|
@@ -1290,18 +1290,18 @@ function Zn(e) {
|
|
|
1290
1290
|
}), [p, u] = m.useState(r);
|
|
1291
1291
|
xe(p, r) || u(r);
|
|
1292
1292
|
const [g, h] = m.useState(null), [v, b] = m.useState(null), x = m.useCallback((w) => {
|
|
1293
|
-
w !==
|
|
1293
|
+
w !== L.current && (L.current = w, h(w));
|
|
1294
1294
|
}, []), y = m.useCallback((w) => {
|
|
1295
1295
|
w !== T.current && (T.current = w, b(w));
|
|
1296
|
-
}, []), E = s || g, C = i || v,
|
|
1297
|
-
if (!
|
|
1296
|
+
}, []), E = s || g, C = i || v, L = m.useRef(null), T = m.useRef(null), M = m.useRef(d), V = l != null, k = Ae(l), B = Ae(o), O = Ae(a), I = m.useCallback(() => {
|
|
1297
|
+
if (!L.current || !T.current)
|
|
1298
1298
|
return;
|
|
1299
1299
|
const w = {
|
|
1300
1300
|
placement: t,
|
|
1301
1301
|
strategy: n,
|
|
1302
1302
|
middleware: p
|
|
1303
1303
|
};
|
|
1304
|
-
B.current && (w.platform = B.current),
|
|
1304
|
+
B.current && (w.platform = B.current), _n(L.current, T.current, w).then((S) => {
|
|
1305
1305
|
const F = {
|
|
1306
1306
|
...S,
|
|
1307
1307
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -1310,13 +1310,13 @@ function Zn(e) {
|
|
|
1310
1310
|
// setting it to `true` when `open === false` (must be specified).
|
|
1311
1311
|
isPositioned: O.current !== !1
|
|
1312
1312
|
};
|
|
1313
|
-
A.current && !xe(
|
|
1313
|
+
A.current && !xe(M.current, F) && (M.current = F, mt.flushSync(() => {
|
|
1314
1314
|
f(F);
|
|
1315
1315
|
}));
|
|
1316
1316
|
});
|
|
1317
1317
|
}, [p, t, n, B, O]);
|
|
1318
1318
|
de(() => {
|
|
1319
|
-
a === !1 &&
|
|
1319
|
+
a === !1 && M.current.isPositioned && (M.current.isPositioned = !1, f((w) => ({
|
|
1320
1320
|
...w,
|
|
1321
1321
|
isPositioned: !1
|
|
1322
1322
|
})));
|
|
@@ -1325,14 +1325,14 @@ function Zn(e) {
|
|
|
1325
1325
|
de(() => (A.current = !0, () => {
|
|
1326
1326
|
A.current = !1;
|
|
1327
1327
|
}), []), de(() => {
|
|
1328
|
-
if (E && (
|
|
1328
|
+
if (E && (L.current = E), C && (T.current = C), E && C) {
|
|
1329
1329
|
if (k.current)
|
|
1330
1330
|
return k.current(E, C, I);
|
|
1331
1331
|
I();
|
|
1332
1332
|
}
|
|
1333
1333
|
}, [E, C, I, k, V]);
|
|
1334
1334
|
const W = m.useMemo(() => ({
|
|
1335
|
-
reference:
|
|
1335
|
+
reference: L,
|
|
1336
1336
|
floating: T,
|
|
1337
1337
|
setReference: x,
|
|
1338
1338
|
setFloating: y
|
|
@@ -1368,7 +1368,7 @@ function Zn(e) {
|
|
|
1368
1368
|
floatingStyles: R
|
|
1369
1369
|
}), [d, I, W, D, R]);
|
|
1370
1370
|
}
|
|
1371
|
-
const
|
|
1371
|
+
const Zn = (e) => {
|
|
1372
1372
|
function t(n) {
|
|
1373
1373
|
return {}.hasOwnProperty.call(n, "current");
|
|
1374
1374
|
}
|
|
@@ -1389,27 +1389,27 @@ const Kn = (e) => {
|
|
|
1389
1389
|
}).fn(n) : {};
|
|
1390
1390
|
}
|
|
1391
1391
|
};
|
|
1392
|
-
},
|
|
1392
|
+
}, Kn = (e, t) => ({
|
|
1393
|
+
...qn(e),
|
|
1394
|
+
options: [e, t]
|
|
1395
|
+
}), Jn = (e, t) => ({
|
|
1393
1396
|
...Un(e),
|
|
1394
1397
|
options: [e, t]
|
|
1395
1398
|
}), Qn = (e, t) => ({
|
|
1396
1399
|
...Xn(e),
|
|
1397
1400
|
options: [e, t]
|
|
1398
1401
|
}), er = (e, t) => ({
|
|
1399
|
-
...
|
|
1400
|
-
options: [e, t]
|
|
1401
|
-
}), tr = (e, t) => ({
|
|
1402
|
-
...Kn(e),
|
|
1402
|
+
...Zn(e),
|
|
1403
1403
|
options: [e, t]
|
|
1404
1404
|
}), Ft = {
|
|
1405
1405
|
...m
|
|
1406
|
-
},
|
|
1406
|
+
}, tr = Ft.useInsertionEffect, nr = tr || ((e) => e());
|
|
1407
1407
|
function me(e) {
|
|
1408
1408
|
const t = m.useRef(() => {
|
|
1409
1409
|
if (process.env.NODE_ENV !== "production")
|
|
1410
1410
|
throw new Error("Cannot call an event handler while rendering.");
|
|
1411
1411
|
});
|
|
1412
|
-
return
|
|
1412
|
+
return nr(() => {
|
|
1413
1413
|
t.current = e;
|
|
1414
1414
|
}), m.useCallback(function() {
|
|
1415
1415
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
@@ -1418,13 +1418,13 @@ function me(e) {
|
|
|
1418
1418
|
}, []);
|
|
1419
1419
|
}
|
|
1420
1420
|
var U = typeof document < "u" ? ft : dt;
|
|
1421
|
-
let rt = !1,
|
|
1421
|
+
let rt = !1, rr = 0;
|
|
1422
1422
|
const ot = () => (
|
|
1423
1423
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
1424
1424
|
// on <React 18
|
|
1425
|
-
"floating-ui-" + Math.random().toString(36).slice(2, 6) +
|
|
1425
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + rr++
|
|
1426
1426
|
);
|
|
1427
|
-
function
|
|
1427
|
+
function or() {
|
|
1428
1428
|
const [e, t] = m.useState(() => rt ? ot() : void 0);
|
|
1429
1429
|
return U(() => {
|
|
1430
1430
|
e == null && t(ot());
|
|
@@ -1432,10 +1432,10 @@ function ir() {
|
|
|
1432
1432
|
rt = !0;
|
|
1433
1433
|
}, []), e;
|
|
1434
1434
|
}
|
|
1435
|
-
const
|
|
1435
|
+
const ir = Ft.useId, qe = ir || or;
|
|
1436
1436
|
let ce;
|
|
1437
1437
|
process.env.NODE_ENV !== "production" && (ce = /* @__PURE__ */ new Set());
|
|
1438
|
-
function
|
|
1438
|
+
function sr() {
|
|
1439
1439
|
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
1440
1440
|
n[r] = arguments[r];
|
|
1441
1441
|
const o = "Floating UI: " + n.join(" ");
|
|
@@ -1444,7 +1444,7 @@ function cr() {
|
|
|
1444
1444
|
(s = ce) == null || s.add(o), console.warn(o);
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function cr() {
|
|
1448
1448
|
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
1449
1449
|
n[r] = arguments[r];
|
|
1450
1450
|
const o = "Floating UI: " + n.join(" ");
|
|
@@ -1453,7 +1453,7 @@ function lr() {
|
|
|
1453
1453
|
(s = ce) == null || s.add(o), console.error(o);
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
const
|
|
1456
|
+
const lr = /* @__PURE__ */ m.forwardRef(function(t, n) {
|
|
1457
1457
|
const {
|
|
1458
1458
|
context: {
|
|
1459
1459
|
placement: r,
|
|
@@ -1478,17 +1478,17 @@ const ar = /* @__PURE__ */ m.forwardRef(function(t, n) {
|
|
|
1478
1478
|
} = {},
|
|
1479
1479
|
...v
|
|
1480
1480
|
} = t;
|
|
1481
|
-
process.env.NODE_ENV !== "production" && (n ||
|
|
1481
|
+
process.env.NODE_ENV !== "production" && (n || sr("The `ref` prop is required for `FloatingArrow`."));
|
|
1482
1482
|
const b = qe(), [x, y] = m.useState(!1);
|
|
1483
1483
|
if (U(() => {
|
|
1484
1484
|
if (!o) return;
|
|
1485
1485
|
z(o).direction === "rtl" && y(!0);
|
|
1486
1486
|
}, [o]), !o)
|
|
1487
1487
|
return null;
|
|
1488
|
-
const [E, C] = r.split("-"),
|
|
1488
|
+
const [E, C] = r.split("-"), L = E === "top" || E === "bottom";
|
|
1489
1489
|
let T = f;
|
|
1490
|
-
(
|
|
1491
|
-
const
|
|
1490
|
+
(L && i != null && i.x || !L && i != null && i.y) && (T = null);
|
|
1491
|
+
const M = d * 2, V = M / 2, k = c / 2 * (a / -8 + 1), B = l / 2 * a / 4, O = !!u, I = T && C === "end" ? "bottom" : "top";
|
|
1492
1492
|
let A = T && C === "end" ? "right" : "left";
|
|
1493
1493
|
T && x && (A = C === "end" ? "left" : "right");
|
|
1494
1494
|
const W = (s == null ? void 0 : s.x) != null ? T || s.x : "", D = (s == null ? void 0 : s.y) != null ? T || s.y : "", R = u || "M0,0" + (" H" + c) + (" L" + (c - k) + "," + (l - B)) + (" Q" + c / 2 + "," + l + " " + k + "," + (l - B)) + " Z", w = {
|
|
@@ -1501,7 +1501,7 @@ const ar = /* @__PURE__ */ m.forwardRef(function(t, n) {
|
|
|
1501
1501
|
...v,
|
|
1502
1502
|
"aria-hidden": !0,
|
|
1503
1503
|
ref: n,
|
|
1504
|
-
width: O ? c : c +
|
|
1504
|
+
width: O ? c : c + M,
|
|
1505
1505
|
height: c,
|
|
1506
1506
|
viewBox: "0 0 " + c + " " + (l > c ? l : c),
|
|
1507
1507
|
style: {
|
|
@@ -1509,31 +1509,31 @@ const ar = /* @__PURE__ */ m.forwardRef(function(t, n) {
|
|
|
1509
1509
|
pointerEvents: "none",
|
|
1510
1510
|
[A]: W,
|
|
1511
1511
|
[I]: D,
|
|
1512
|
-
[E]:
|
|
1512
|
+
[E]: L || O ? "100%" : "calc(100% - " + M / 2 + "px)",
|
|
1513
1513
|
transform: [w, g].filter((S) => !!S).join(" "),
|
|
1514
1514
|
...h
|
|
1515
1515
|
},
|
|
1516
|
-
children: [
|
|
1516
|
+
children: [M > 0 && /* @__PURE__ */ H("path", {
|
|
1517
1517
|
clipPath: "url(#" + b + ")",
|
|
1518
1518
|
fill: "none",
|
|
1519
1519
|
stroke: p,
|
|
1520
|
-
strokeWidth:
|
|
1520
|
+
strokeWidth: M + (u ? 0 : 1),
|
|
1521
1521
|
d: R
|
|
1522
1522
|
}), /* @__PURE__ */ H("path", {
|
|
1523
|
-
stroke:
|
|
1523
|
+
stroke: M && !u ? v.fill : "none",
|
|
1524
1524
|
d: R
|
|
1525
1525
|
}), /* @__PURE__ */ H("clipPath", {
|
|
1526
1526
|
id: b,
|
|
1527
1527
|
children: /* @__PURE__ */ H("rect", {
|
|
1528
1528
|
x: -V,
|
|
1529
1529
|
y: V * (O ? -1 : 1),
|
|
1530
|
-
width: c +
|
|
1530
|
+
width: c + M,
|
|
1531
1531
|
height: c
|
|
1532
1532
|
})
|
|
1533
1533
|
})]
|
|
1534
1534
|
});
|
|
1535
1535
|
});
|
|
1536
|
-
function
|
|
1536
|
+
function ar() {
|
|
1537
1537
|
const e = /* @__PURE__ */ new Map();
|
|
1538
1538
|
return {
|
|
1539
1539
|
emit(t, n) {
|
|
@@ -1549,10 +1549,10 @@ function ur() {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
|
-
const
|
|
1552
|
+
const ur = /* @__PURE__ */ m.createContext(null), fr = /* @__PURE__ */ m.createContext(null), Nt = () => {
|
|
1553
1553
|
var e;
|
|
1554
|
-
return ((e = m.useContext(
|
|
1555
|
-
}, kt = () => m.useContext(
|
|
1554
|
+
return ((e = m.useContext(ur)) == null ? void 0 : e.id) || null;
|
|
1555
|
+
}, kt = () => m.useContext(fr);
|
|
1556
1556
|
function Se(e) {
|
|
1557
1557
|
return "data-floating-ui-" + e;
|
|
1558
1558
|
}
|
|
@@ -1569,7 +1569,7 @@ const it = /* @__PURE__ */ Se("safe-polygon");
|
|
|
1569
1569
|
function Pe(e, t, n) {
|
|
1570
1570
|
return n && !Ne(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function dr(e, t) {
|
|
1573
1573
|
t === void 0 && (t = {});
|
|
1574
1574
|
const {
|
|
1575
1575
|
open: n,
|
|
@@ -1584,7 +1584,7 @@ function mr(e, t) {
|
|
|
1584
1584
|
mouseOnly: d = !1,
|
|
1585
1585
|
restMs: f = 0,
|
|
1586
1586
|
move: p = !0
|
|
1587
|
-
} = t, u = kt(), g = Nt(), h = Oe(a), v = Oe(l), b = Oe(n), x = m.useRef(), y = m.useRef(-1), E = m.useRef(), C = m.useRef(-1),
|
|
1587
|
+
} = t, u = kt(), g = Nt(), h = Oe(a), v = Oe(l), b = Oe(n), x = m.useRef(), y = m.useRef(-1), E = m.useRef(), C = m.useRef(-1), L = m.useRef(!0), T = m.useRef(!1), M = m.useRef(() => {
|
|
1588
1588
|
}), V = m.useRef(!1), k = m.useCallback(() => {
|
|
1589
1589
|
var R;
|
|
1590
1590
|
const w = (R = o.current.openEvent) == null ? void 0 : R.type;
|
|
@@ -1596,7 +1596,7 @@ function mr(e, t) {
|
|
|
1596
1596
|
let {
|
|
1597
1597
|
open: S
|
|
1598
1598
|
} = w;
|
|
1599
|
-
S || (j(y), j(C),
|
|
1599
|
+
S || (j(y), j(C), L.current = !0, V.current = !1);
|
|
1600
1600
|
}
|
|
1601
1601
|
return s.on("openchange", R), () => {
|
|
1602
1602
|
s.off("openchange", R);
|
|
@@ -1616,7 +1616,7 @@ function mr(e, t) {
|
|
|
1616
1616
|
const F = Pe(v.current, "close", x.current);
|
|
1617
1617
|
F && !E.current ? (j(y), y.current = window.setTimeout(() => r(!1, R, S), F)) : w && (j(y), r(!1, R, S));
|
|
1618
1618
|
}, [v, r]), O = me(() => {
|
|
1619
|
-
|
|
1619
|
+
M.current(), E.current = void 0;
|
|
1620
1620
|
}), I = me(() => {
|
|
1621
1621
|
if (T.current) {
|
|
1622
1622
|
const R = Q(i.floating).body;
|
|
@@ -1626,7 +1626,7 @@ function mr(e, t) {
|
|
|
1626
1626
|
m.useEffect(() => {
|
|
1627
1627
|
if (!c) return;
|
|
1628
1628
|
function R(P) {
|
|
1629
|
-
if (j(y),
|
|
1629
|
+
if (j(y), L.current = !1, d && !Ne(x.current) || f > 0 && !Pe(v.current, "open"))
|
|
1630
1630
|
return;
|
|
1631
1631
|
const q = Pe(v.current, "open", x.current);
|
|
1632
1632
|
q ? y.current = window.setTimeout(() => {
|
|
@@ -1635,7 +1635,7 @@ function mr(e, t) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
function w(P) {
|
|
1637
1637
|
if (A()) return;
|
|
1638
|
-
|
|
1638
|
+
M.current();
|
|
1639
1639
|
const q = Q(i.floating);
|
|
1640
1640
|
if (j(C), V.current = !1, h.current && o.current.floatingContext) {
|
|
1641
1641
|
n || j(y), E.current = h.current({
|
|
@@ -1648,7 +1648,7 @@ function mr(e, t) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
});
|
|
1650
1650
|
const Xe = E.current;
|
|
1651
|
-
q.addEventListener("mousemove", Xe),
|
|
1651
|
+
q.addEventListener("mousemove", Xe), M.current = () => {
|
|
1652
1652
|
q.removeEventListener("mousemove", Xe);
|
|
1653
1653
|
};
|
|
1654
1654
|
return;
|
|
@@ -1708,7 +1708,7 @@ function mr(e, t) {
|
|
|
1708
1708
|
nativeEvent: S
|
|
1709
1709
|
} = w;
|
|
1710
1710
|
function F() {
|
|
1711
|
-
!
|
|
1711
|
+
!L.current && !b.current && r(!0, S, "hover");
|
|
1712
1712
|
}
|
|
1713
1713
|
d && !Ne(x.current) || n || f === 0 || V.current && w.movementX ** 2 + w.movementY ** 2 < 2 || (j(C), x.current === "touch" ? F() : (V.current = !0, C.current = window.setTimeout(F, f)));
|
|
1714
1714
|
}
|
|
@@ -1741,17 +1741,17 @@ function Vt(e, t) {
|
|
|
1741
1741
|
const r = n.indexOf(Fe(Q(e)));
|
|
1742
1742
|
return n.slice(r + 1)[0];
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1744
|
+
function mr() {
|
|
1745
1745
|
return Vt(document.body, "next");
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function gr() {
|
|
1748
1748
|
return Vt(document.body, "prev");
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function Le(e, t) {
|
|
1751
1751
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
1752
1752
|
return !r || !he(n, r);
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function hr(e) {
|
|
1755
1755
|
St(e, Bt()).forEach((n) => {
|
|
1756
1756
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
1757
1757
|
});
|
|
@@ -1793,12 +1793,12 @@ const Wt = {
|
|
|
1793
1793
|
...s
|
|
1794
1794
|
});
|
|
1795
1795
|
}), $t = /* @__PURE__ */ m.createContext(null), lt = /* @__PURE__ */ Se("portal");
|
|
1796
|
-
function
|
|
1796
|
+
function pr(e) {
|
|
1797
1797
|
e === void 0 && (e = {});
|
|
1798
1798
|
const {
|
|
1799
1799
|
id: t,
|
|
1800
1800
|
root: n
|
|
1801
|
-
} = e, r = qe(), o =
|
|
1801
|
+
} = e, r = qe(), o = br(), [s, i] = m.useState(null), c = m.useRef(null);
|
|
1802
1802
|
return U(() => () => {
|
|
1803
1803
|
s == null || s.remove(), queueMicrotask(() => {
|
|
1804
1804
|
c.current = null;
|
|
@@ -1819,13 +1819,13 @@ function vr(e) {
|
|
|
1819
1819
|
d.id = r, d.setAttribute(lt, ""), l = a || l, l.appendChild(d), c.current = d, i(d);
|
|
1820
1820
|
}, [t, n, r, o]), s;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function vr(e) {
|
|
1823
1823
|
const {
|
|
1824
1824
|
children: t,
|
|
1825
1825
|
id: n,
|
|
1826
1826
|
root: r,
|
|
1827
1827
|
preserveTabOrder: o = !0
|
|
1828
|
-
} = e, s =
|
|
1828
|
+
} = e, s = pr({
|
|
1829
1829
|
id: n,
|
|
1830
1830
|
root: r
|
|
1831
1831
|
}), [i, c] = m.useState(null), l = m.useRef(null), a = m.useRef(null), d = m.useRef(null), f = m.useRef(null), p = i == null ? void 0 : i.modal, u = i == null ? void 0 : i.open, g = (
|
|
@@ -1839,7 +1839,7 @@ function br(e) {
|
|
|
1839
1839
|
if (!s || !o || p)
|
|
1840
1840
|
return;
|
|
1841
1841
|
function h(v) {
|
|
1842
|
-
s &&
|
|
1842
|
+
s && Le(v) && (v.type === "focusin" ? st : hr)(s);
|
|
1843
1843
|
}
|
|
1844
1844
|
return s.addEventListener("focusin", h, !0), s.addEventListener("focusout", h, !0), () => {
|
|
1845
1845
|
s.removeEventListener("focusin", h, !0), s.removeEventListener("focusout", h, !0);
|
|
@@ -1860,11 +1860,11 @@ function br(e) {
|
|
|
1860
1860
|
"data-type": "outside",
|
|
1861
1861
|
ref: l,
|
|
1862
1862
|
onFocus: (h) => {
|
|
1863
|
-
if (
|
|
1863
|
+
if (Le(h, s)) {
|
|
1864
1864
|
var v;
|
|
1865
1865
|
(v = d.current) == null || v.focus();
|
|
1866
1866
|
} else {
|
|
1867
|
-
const b =
|
|
1867
|
+
const b = gr() || (i == null ? void 0 : i.domReference);
|
|
1868
1868
|
b == null || b.focus();
|
|
1869
1869
|
}
|
|
1870
1870
|
}
|
|
@@ -1875,27 +1875,27 @@ function br(e) {
|
|
|
1875
1875
|
"data-type": "outside",
|
|
1876
1876
|
ref: a,
|
|
1877
1877
|
onFocus: (h) => {
|
|
1878
|
-
if (
|
|
1878
|
+
if (Le(h, s)) {
|
|
1879
1879
|
var v;
|
|
1880
1880
|
(v = f.current) == null || v.focus();
|
|
1881
1881
|
} else {
|
|
1882
|
-
const b =
|
|
1882
|
+
const b = mr() || (i == null ? void 0 : i.domReference);
|
|
1883
1883
|
b == null || b.focus(), i != null && i.closeOnFocusOut && (i == null || i.onOpenChange(!1, h.nativeEvent, "focus-out"));
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
})]
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
|
-
const
|
|
1890
|
-
function
|
|
1889
|
+
const br = () => m.useContext($t), yr = "data-floating-ui-focusable";
|
|
1890
|
+
function wr(e) {
|
|
1891
1891
|
const {
|
|
1892
1892
|
open: t = !1,
|
|
1893
1893
|
onOpenChange: n,
|
|
1894
1894
|
elements: r
|
|
1895
|
-
} = e, o = qe(), s = m.useRef({}), [i] = m.useState(() =>
|
|
1895
|
+
} = e, o = qe(), s = m.useRef({}), [i] = m.useState(() => ar()), c = Nt() != null;
|
|
1896
1896
|
if (process.env.NODE_ENV !== "production") {
|
|
1897
1897
|
const u = r.reference;
|
|
1898
|
-
u && !N(u) &&
|
|
1898
|
+
u && !N(u) && cr("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
1899
1899
|
}
|
|
1900
1900
|
const [l, a] = m.useState(r.reference), d = me((u, g, h) => {
|
|
1901
1901
|
s.current.openEvent = u ? g : void 0, i.emit("openchange", {
|
|
@@ -1921,11 +1921,11 @@ function xr(e) {
|
|
|
1921
1921
|
refs: f
|
|
1922
1922
|
}), [t, d, p, i, o, f]);
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function xr(e) {
|
|
1925
1925
|
e === void 0 && (e = {});
|
|
1926
1926
|
const {
|
|
1927
1927
|
nodeId: t
|
|
1928
|
-
} = e, n =
|
|
1928
|
+
} = e, n = wr({
|
|
1929
1929
|
...e,
|
|
1930
1930
|
elements: {
|
|
1931
1931
|
reference: null,
|
|
@@ -1936,7 +1936,7 @@ function Rr(e) {
|
|
|
1936
1936
|
U(() => {
|
|
1937
1937
|
d && (f.current = d);
|
|
1938
1938
|
}, [d]);
|
|
1939
|
-
const u =
|
|
1939
|
+
const u = Gn({
|
|
1940
1940
|
...e,
|
|
1941
1941
|
elements: {
|
|
1942
1942
|
...o,
|
|
@@ -1981,7 +1981,7 @@ function Rr(e) {
|
|
|
1981
1981
|
elements: b
|
|
1982
1982
|
}), [u, v, b, x]);
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function Rr(e, t) {
|
|
1985
1985
|
t === void 0 && (t = {});
|
|
1986
1986
|
const {
|
|
1987
1987
|
open: n,
|
|
@@ -2021,20 +2021,20 @@ function Er(e, t) {
|
|
|
2021
2021
|
}, []);
|
|
2022
2022
|
const p = m.useMemo(() => ({
|
|
2023
2023
|
onPointerDown(u) {
|
|
2024
|
-
|
|
2024
|
+
qt(u.nativeEvent) || (f.current = !1);
|
|
2025
2025
|
},
|
|
2026
2026
|
onMouseLeave() {
|
|
2027
2027
|
a.current = !1;
|
|
2028
2028
|
},
|
|
2029
2029
|
onFocus(u) {
|
|
2030
2030
|
if (a.current) return;
|
|
2031
|
-
const g =
|
|
2031
|
+
const g = _t(u.nativeEvent);
|
|
2032
2032
|
if (l && N(g))
|
|
2033
2033
|
try {
|
|
2034
|
-
if (bt() &&
|
|
2034
|
+
if (bt() && Ut()) throw Error();
|
|
2035
2035
|
if (!g.matches(":focus-visible")) return;
|
|
2036
2036
|
} catch {
|
|
2037
|
-
if (!f.current && !
|
|
2037
|
+
if (!f.current && !Zt(g))
|
|
2038
2038
|
return;
|
|
2039
2039
|
}
|
|
2040
2040
|
r(!0, u.nativeEvent, "focus");
|
|
@@ -2054,7 +2054,7 @@ function Er(e, t) {
|
|
|
2054
2054
|
} : {}, [c, p]);
|
|
2055
2055
|
}
|
|
2056
2056
|
const at = "active", ut = "selected";
|
|
2057
|
-
function
|
|
2057
|
+
function Me(e, t, n) {
|
|
2058
2058
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
2059
2059
|
let s = e;
|
|
2060
2060
|
if (o && e) {
|
|
@@ -2068,7 +2068,7 @@ function Le(e, t, n) {
|
|
|
2068
2068
|
return {
|
|
2069
2069
|
...n === "floating" && {
|
|
2070
2070
|
tabIndex: -1,
|
|
2071
|
-
[
|
|
2071
|
+
[yr]: ""
|
|
2072
2072
|
},
|
|
2073
2073
|
...s,
|
|
2074
2074
|
...t.map((i) => {
|
|
@@ -2091,18 +2091,18 @@ function Le(e, t, n) {
|
|
|
2091
2091
|
}), i), {})
|
|
2092
2092
|
};
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function Er(e) {
|
|
2095
2095
|
e === void 0 && (e = []);
|
|
2096
2096
|
const t = e.map((c) => c == null ? void 0 : c.reference), n = e.map((c) => c == null ? void 0 : c.floating), r = e.map((c) => c == null ? void 0 : c.item), o = m.useCallback(
|
|
2097
|
-
(c) =>
|
|
2097
|
+
(c) => Me(c, e, "reference"),
|
|
2098
2098
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2099
2099
|
t
|
|
2100
2100
|
), s = m.useCallback(
|
|
2101
|
-
(c) =>
|
|
2101
|
+
(c) => Me(c, e, "floating"),
|
|
2102
2102
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2103
2103
|
n
|
|
2104
2104
|
), i = m.useCallback(
|
|
2105
|
-
(c) =>
|
|
2105
|
+
(c) => Me(c, e, "item"),
|
|
2106
2106
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2107
2107
|
r
|
|
2108
2108
|
);
|
|
@@ -2112,24 +2112,24 @@ function Cr(e) {
|
|
|
2112
2112
|
getItemProps: i
|
|
2113
2113
|
}), [o, s, i]);
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2116
|
-
const { content: t, disabled: n, children: r, noWrap: o, className: s } = e, [i, c] = _e.useState(!1), l = _e.useRef(null), { refs: a, floatingStyles: d, context: f } =
|
|
2115
|
+
function Or(e) {
|
|
2116
|
+
const { content: t, disabled: n, children: r, noWrap: o, className: s } = e, [i, c] = _e.useState(!1), l = _e.useRef(null), { refs: a, floatingStyles: d, context: f } = xr({
|
|
2117
2117
|
open: i && !n,
|
|
2118
2118
|
onOpenChange: c,
|
|
2119
2119
|
transform: !0,
|
|
2120
|
-
whileElementsMounted:
|
|
2120
|
+
whileElementsMounted: zn,
|
|
2121
2121
|
middleware: [
|
|
2122
|
-
er(),
|
|
2123
2122
|
Qn(),
|
|
2124
|
-
|
|
2123
|
+
Jn(),
|
|
2124
|
+
er({
|
|
2125
2125
|
element: l
|
|
2126
2126
|
}),
|
|
2127
|
-
|
|
2127
|
+
Kn({
|
|
2128
2128
|
mainAxis: 8
|
|
2129
2129
|
})
|
|
2130
2130
|
]
|
|
2131
|
-
}), p =
|
|
2132
|
-
return
|
|
2131
|
+
}), p = typeof window > "u" ? null : document.querySelector("[data-st-role=tooltip]"), u = dr(f), g = Rr(f);
|
|
2132
|
+
return Er([u, g]), /* @__PURE__ */ ge("div", { className: "relative inline-block", ref: a.setReference, children: [
|
|
2133
2133
|
/* @__PURE__ */ H(
|
|
2134
2134
|
"div",
|
|
2135
2135
|
{
|
|
@@ -2140,10 +2140,10 @@ function Pr(e) {
|
|
|
2140
2140
|
children: r
|
|
2141
2141
|
}
|
|
2142
2142
|
),
|
|
2143
|
-
i && !n && /* @__PURE__ */ H(
|
|
2143
|
+
i && !n && /* @__PURE__ */ H(vr, { root: p, children: /* @__PURE__ */ H("div", { ref: a.setFloating, style: d, className: "z-50", children: /* @__PURE__ */ ge(
|
|
2144
2144
|
"div",
|
|
2145
2145
|
{
|
|
2146
|
-
className:
|
|
2146
|
+
className: Ht(
|
|
2147
2147
|
"bg-opacity-90 px-3 py-1.5 text-sm backdrop:blur-lg",
|
|
2148
2148
|
"rounded-lg bg-gray-900 text-gray-200 shadow-lg",
|
|
2149
2149
|
"duration-200",
|
|
@@ -2153,7 +2153,7 @@ function Pr(e) {
|
|
|
2153
2153
|
),
|
|
2154
2154
|
children: [
|
|
2155
2155
|
/* @__PURE__ */ H(
|
|
2156
|
-
|
|
2156
|
+
lr,
|
|
2157
2157
|
{
|
|
2158
2158
|
ref: l,
|
|
2159
2159
|
context: f,
|
|
@@ -2167,5 +2167,5 @@ function Pr(e) {
|
|
|
2167
2167
|
] });
|
|
2168
2168
|
}
|
|
2169
2169
|
export {
|
|
2170
|
-
|
|
2170
|
+
Or as default
|
|
2171
2171
|
};
|