@cfx-dev/ui-components 3.0.2 → 3.0.4
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/Rail-DcVowhML.js +81 -0
- package/dist/assets/css/Accordion.css +1 -1
- package/dist/assets/css/Avatar.css +1 -1
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/css/Box.css +1 -1
- package/dist/assets/css/Button.css +1 -1
- package/dist/assets/css/ButtonBar.css +1 -1
- package/dist/assets/css/Center.css +1 -1
- package/dist/assets/css/Checkbox.css +1 -1
- package/dist/assets/css/ClipboardButton.css +1 -1
- package/dist/assets/css/ControlBox.css +1 -1
- package/dist/assets/css/CountryFlag.css +1 -1
- package/dist/assets/css/Decorate.css +1 -1
- package/dist/assets/css/Dot.css +1 -1
- package/dist/assets/css/Flex.css +1 -1
- package/dist/assets/css/FlexRestricter.css +1 -1
- package/dist/assets/css/FlexShowcase.css +1 -1
- package/dist/assets/css/Flyout.css +1 -1
- package/dist/assets/css/Icon.css +1 -1
- package/dist/assets/css/IconBig.css +1 -1
- package/dist/assets/css/IconButton.css +1 -1
- package/dist/assets/css/Indicator.css +1 -1
- package/dist/assets/css/InfoPanel.css +1 -1
- package/dist/assets/css/Input.css +1 -1
- package/dist/assets/css/InputDropzone.css +1 -1
- package/dist/assets/css/Interactive.css +1 -1
- package/dist/assets/css/Island.css +1 -1
- package/dist/assets/css/ItemPreview.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/css/Loaf.css +1 -1
- package/dist/assets/css/Modal.css +1 -1
- package/dist/assets/css/NavList.css +1 -1
- package/dist/assets/css/Overlay.css +1 -1
- package/dist/assets/css/Pad.css +1 -1
- package/dist/assets/css/Page.css +1 -1
- package/dist/assets/css/Popover.css +1 -1
- package/dist/assets/css/PopoverShowcase.css +1 -1
- package/dist/assets/css/PremiumBadge.css +1 -1
- package/dist/assets/css/Prose.css +1 -1
- package/dist/assets/css/Radio.css +1 -1
- package/dist/assets/css/Rail.css +1 -1
- package/dist/assets/css/RichInput.css +1 -1
- package/dist/assets/css/Select.css +1 -1
- package/dist/assets/css/Separator.css +1 -1
- package/dist/assets/css/Shroud.css +1 -1
- package/dist/assets/css/Skeleton.css +1 -1
- package/dist/assets/css/Spacer.css +1 -1
- package/dist/assets/css/Switch.css +1 -1
- package/dist/assets/css/Table.css +1 -1
- package/dist/assets/css/Tabular.css +1 -1
- package/dist/assets/css/Text.css +1 -1
- package/dist/assets/css/TextShowcase.css +1 -1
- package/dist/assets/css/Textarea.css +1 -1
- package/dist/assets/css/Title.css +1 -1
- package/dist/assets/css/ToggleGroup.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/cfxIcons-BNd1WgpX.js +96 -0
- package/dist/components/Accordion/Accordion.js +69 -69
- package/dist/components/Avatar/Avatar.js +18 -18
- package/dist/components/Badge/Badge.js +23 -23
- package/dist/components/Button/Button.js +76 -76
- package/dist/components/Button/ButtonBar.js +6 -6
- package/dist/components/Checkbox/Checkbox.js +90 -85
- package/dist/components/ClipboardButton/ClipboardButton.js +17 -17
- package/dist/components/ControlBox/ControlBox.js +11 -11
- package/dist/components/CountryFlag/CountryFlag.js +9 -9
- package/dist/components/Decorate/Decorate.js +12 -12
- package/dist/components/Dot/Dot.js +17 -17
- package/dist/components/Flyout/Flyout.js +44 -44
- package/dist/components/Icon/Icon.js +14 -14
- package/dist/components/IconBig/IconBig.js +23 -18
- package/dist/components/IconButton/IconButton.js +25 -25
- package/dist/components/Icons/IconsShowcase.js +1 -1
- package/dist/components/Icons/cfx-icons/Cart.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Cart.js +42 -0
- package/dist/components/Icons/cfx-icons/UpvotesBurst.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpvotesBurst.js +26 -0
- package/dist/components/Icons/cfx-icons/UpvotesRecurring.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpvotesRecurring.js +27 -0
- package/dist/components/Icons/cfx-icons/User.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/User.js +31 -0
- package/dist/components/Icons/cfx-icons/Verified.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Verified.js +23 -0
- package/dist/components/Icons/cfxIcons.d.ts +5 -0
- package/dist/components/Icons/cfxIcons.js +52 -42
- package/dist/components/Icons/index.js +1 -1
- package/dist/components/Indicator/Indicator.js +11 -11
- package/dist/components/InfoPanel/InfoPanel.js +37 -37
- package/dist/components/Input/Input.js +59 -59
- package/dist/components/Input/RichInput.js +39 -39
- package/dist/components/InputDropzone/InputDropzone.js +87 -87
- package/dist/components/InputDropzone/ItemPreview.js +17 -17
- package/dist/components/Interactive/Interactive.js +6 -6
- package/dist/components/Island/Island.js +20 -20
- package/dist/components/Layout/Box/Box.js +81 -81
- package/dist/components/Layout/Center/Center.js +14 -14
- package/dist/components/Layout/Flex/Flex.js +67 -67
- package/dist/components/Layout/Flex/FlexRestricter.js +14 -14
- package/dist/components/Layout/Flex/FlexShowcase.js +4 -4
- package/dist/components/Layout/Pad/Pad.js +34 -34
- package/dist/components/Layout/Page/Page.js +11 -11
- package/dist/components/Layout/Scrollable/Rail.js +1 -1
- package/dist/components/Layout/Scrollable/Scrollable.js +1 -1
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +1 -1
- package/dist/components/Layout/Scrollable/index.js +1 -1
- package/dist/components/Link/ButtonLink.js +7 -6
- package/dist/components/Link/Link.js +36 -27
- package/dist/components/Loaf/Loaf.js +20 -20
- package/dist/components/Modal/Modal.js +51 -51
- package/dist/components/NavList/NavList.js +23 -23
- package/dist/components/Overlay/Overlay.js +17 -17
- package/dist/components/Popover/Popover.js +29 -29
- package/dist/components/Popover/PopoverShowcase.js +9 -9
- package/dist/components/PremiumBadge/PremiumBadge.js +8 -8
- package/dist/components/Prose/Prose.js +6 -6
- package/dist/components/Radio/Radio.js +32 -32
- package/dist/components/Select/Select.js +157 -157
- package/dist/components/Separator/Separator.js +31 -31
- package/dist/components/Shroud/Shroud.js +14 -14
- package/dist/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/Spacer/Spacer.js +25 -25
- package/dist/components/Switch/Switch.js +43 -43
- package/dist/components/Table/Table.js +82 -82
- package/dist/components/Tabular/Tabular.js +60 -60
- package/dist/components/Text/Text.js +26 -26
- package/dist/components/Text/TextShowcase.js +19 -19
- package/dist/components/Textarea/Textarea.js +36 -36
- package/dist/components/Title/Title.js +57 -57
- package/dist/components/ToggleGroup/ToggleGroup.js +40 -40
- package/dist/main.js +2 -2
- package/dist/styles-scss/_ui.scss +22 -0
- package/dist/styles-scss/global.scss +5 -0
- package/dist/styles-scss/tokens.scss +5 -25
- package/package.json +2 -2
- package/dist/Rail-XT5PwAlx.js +0 -81
- package/dist/cfxIcons-BlbKR-zU.js +0 -86
|
@@ -2,9 +2,9 @@ import { jsx as C, Fragment as At, jsxs as de } from "react/jsx-runtime";
|
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import j, { useLayoutEffect as Po, useEffect as Ro } from "react";
|
|
4
4
|
import { r as Tt, R as Ao } from "../../index-2hJuj4UN.js";
|
|
5
|
-
import { c as Ot, u as K, S as gt, g as Se, P as U, b as z, h as To, f as Z, e as Oo, d as
|
|
6
|
-
import { f as fn, _ as xe, c as
|
|
7
|
-
import { a as
|
|
5
|
+
import { c as Ot, u as K, S as gt, g as Se, P as U, b as z, h as To, f as Z, e as Oo, d as _o, a as Ht } from "../../index-CjWRnNpt.js";
|
|
6
|
+
import { f as fn, _ as xe, c as No } from "../../tslib.es6-CBKHJX9H.js";
|
|
7
|
+
import { a as Io, u as Mo } from "../../medium-JVtzoF2c.js";
|
|
8
8
|
import { Icon as Lo } from "../Icon/Icon.js";
|
|
9
9
|
import { clsx as Vt } from "../../utils/clsx.js";
|
|
10
10
|
var pn = function(e) {
|
|
@@ -92,11 +92,11 @@ var Ho = "DismissableLayer", wt = "dismissableLayer.update", Vo = "dismissableLa
|
|
|
92
92
|
onDismiss: s,
|
|
93
93
|
...a
|
|
94
94
|
} = e, l = u.useContext(mn), [p, f] = u.useState(null), w = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), v = K(t, (E) => f(E)), d = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), h = d.indexOf(g), y = p ? d.indexOf(p) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= h, b = Ko((E) => {
|
|
95
|
-
const T = E.target,
|
|
96
|
-
!S ||
|
|
95
|
+
const T = E.target, N = [...l.branches].some((I) => I.contains(T));
|
|
96
|
+
!S || N || (r == null || r(E), c == null || c(E), E.defaultPrevented || s == null || s());
|
|
97
97
|
}, w), P = Yo((E) => {
|
|
98
98
|
const T = E.target;
|
|
99
|
-
[...l.branches].some((
|
|
99
|
+
[...l.branches].some((I) => I.contains(T)) || (i == null || i(E), c == null || c(E), E.defaultPrevented || s == null || s());
|
|
100
100
|
}, w);
|
|
101
101
|
return Wo((E) => {
|
|
102
102
|
y === l.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
|
|
@@ -249,7 +249,7 @@ var dt = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", Yt
|
|
|
249
249
|
const d = document.activeElement;
|
|
250
250
|
if (!s.contains(d)) {
|
|
251
251
|
const h = new CustomEvent(dt, Yt);
|
|
252
|
-
s.addEventListener(dt, l), s.dispatchEvent(h), h.defaultPrevented || (
|
|
252
|
+
s.addEventListener(dt, l), s.dispatchEvent(h), h.defaultPrevented || (Go(er(wn(s)), { select: !0 }), document.activeElement === d && ue(s));
|
|
253
253
|
}
|
|
254
254
|
return () => {
|
|
255
255
|
s.removeEventListener(dt, l), setTimeout(() => {
|
|
@@ -264,7 +264,7 @@ var dt = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", Yt
|
|
|
264
264
|
if (!n && !o || m.paused) return;
|
|
265
265
|
const g = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, h = document.activeElement;
|
|
266
266
|
if (g && h) {
|
|
267
|
-
const y = d.currentTarget, [x, S] =
|
|
267
|
+
const y = d.currentTarget, [x, S] = qo(y);
|
|
268
268
|
x && S ? !d.shiftKey && h === S ? (d.preventDefault(), n && ue(x, { select: !0 })) : d.shiftKey && h === x && (d.preventDefault(), n && ue(S, { select: !0 })) : h === y && d.preventDefault();
|
|
269
269
|
}
|
|
270
270
|
},
|
|
@@ -273,12 +273,12 @@ var dt = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", Yt
|
|
|
273
273
|
return /* @__PURE__ */ C(U.div, { tabIndex: -1, ...c, ref: w, onKeyDown: v });
|
|
274
274
|
});
|
|
275
275
|
gn.displayName = Xo;
|
|
276
|
-
function
|
|
276
|
+
function Go(e, { select: t = !1 } = {}) {
|
|
277
277
|
const n = document.activeElement;
|
|
278
278
|
for (const o of e)
|
|
279
279
|
if (ue(o, { select: t }), document.activeElement !== n) return;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function qo(e) {
|
|
282
282
|
const t = wn(e), n = jt(t, e), o = jt(t.reverse(), e);
|
|
283
283
|
return [n, o];
|
|
284
284
|
}
|
|
@@ -320,15 +320,15 @@ function Jo() {
|
|
|
320
320
|
return {
|
|
321
321
|
add(t) {
|
|
322
322
|
const n = e[0];
|
|
323
|
-
t !== n && (n == null || n.pause()), e =
|
|
323
|
+
t !== n && (n == null || n.pause()), e = Gt(e, t), e.unshift(t);
|
|
324
324
|
},
|
|
325
325
|
remove(t) {
|
|
326
326
|
var n;
|
|
327
|
-
e =
|
|
327
|
+
e = Gt(e, t), (n = e[0]) == null || n.resume();
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Gt(e, t) {
|
|
332
332
|
const n = [...e], o = n.indexOf(t);
|
|
333
333
|
return o !== -1 && n.splice(o, 1), n;
|
|
334
334
|
}
|
|
@@ -337,13 +337,13 @@ function er(e) {
|
|
|
337
337
|
}
|
|
338
338
|
var tr = u.useId || (() => {
|
|
339
339
|
}), nr = 0;
|
|
340
|
-
function
|
|
340
|
+
function _t(e) {
|
|
341
341
|
const [t, n] = u.useState(tr());
|
|
342
342
|
return Z(() => {
|
|
343
343
|
n((o) => o ?? String(nr++));
|
|
344
344
|
}, [e]), t ? `radix-${t}` : "";
|
|
345
345
|
}
|
|
346
|
-
const or = ["top", "right", "bottom", "left"], te = Math.min,
|
|
346
|
+
const or = ["top", "right", "bottom", "left"], te = Math.min, G = Math.max, Je = Math.round, Ke = Math.floor, pe = (e) => ({
|
|
347
347
|
x: e,
|
|
348
348
|
y: e
|
|
349
349
|
}), rr = {
|
|
@@ -356,7 +356,7 @@ const or = ["top", "right", "bottom", "left"], te = Math.min, q = Math.max, Je =
|
|
|
356
356
|
end: "start"
|
|
357
357
|
};
|
|
358
358
|
function yt(e, t, n) {
|
|
359
|
-
return
|
|
359
|
+
return G(e, te(t, n));
|
|
360
360
|
}
|
|
361
361
|
function se(e, t) {
|
|
362
362
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -364,24 +364,24 @@ function se(e, t) {
|
|
|
364
364
|
function ce(e) {
|
|
365
365
|
return e.split("-")[0];
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Ne(e) {
|
|
368
368
|
return e.split("-")[1];
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Nt(e) {
|
|
371
371
|
return e === "x" ? "y" : "x";
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function It(e) {
|
|
374
374
|
return e === "y" ? "height" : "width";
|
|
375
375
|
}
|
|
376
376
|
function me(e) {
|
|
377
377
|
return ["top", "bottom"].includes(ce(e)) ? "y" : "x";
|
|
378
378
|
}
|
|
379
379
|
function Mt(e) {
|
|
380
|
-
return
|
|
380
|
+
return Nt(me(e));
|
|
381
381
|
}
|
|
382
382
|
function sr(e, t, n) {
|
|
383
383
|
n === void 0 && (n = !1);
|
|
384
|
-
const o =
|
|
384
|
+
const o = Ne(e), r = Mt(e), i = It(r);
|
|
385
385
|
let c = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
386
386
|
return t.reference[i] > t.floating[i] && (c = et(c)), [c, et(c)];
|
|
387
387
|
}
|
|
@@ -406,7 +406,7 @@ function ar(e, t, n) {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
function lr(e, t, n, o) {
|
|
409
|
-
const r =
|
|
409
|
+
const r = Ne(e);
|
|
410
410
|
let i = ar(ce(e), n === "start", o);
|
|
411
411
|
return r && (i = i.map((c) => c + "-" + r), t && (i = i.concat(i.map(xt)))), i;
|
|
412
412
|
}
|
|
@@ -448,12 +448,12 @@ function tt(e) {
|
|
|
448
448
|
y: n
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function qt(e, t, n) {
|
|
452
452
|
let {
|
|
453
453
|
reference: o,
|
|
454
454
|
floating: r
|
|
455
455
|
} = e;
|
|
456
|
-
const i = me(t), c = Mt(t), s =
|
|
456
|
+
const i = me(t), c = Mt(t), s = It(c), a = ce(t), l = i === "y", p = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, w = o[s] / 2 - r[s] / 2;
|
|
457
457
|
let m;
|
|
458
458
|
switch (a) {
|
|
459
459
|
case "top":
|
|
@@ -486,7 +486,7 @@ function Gt(e, t, n) {
|
|
|
486
486
|
y: o.y
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
switch (
|
|
489
|
+
switch (Ne(t)) {
|
|
490
490
|
case "start":
|
|
491
491
|
m[c] -= w * (n && l ? -1 : 1);
|
|
492
492
|
break;
|
|
@@ -510,7 +510,7 @@ const dr = async (e, t, n) => {
|
|
|
510
510
|
}), {
|
|
511
511
|
x: p,
|
|
512
512
|
y: f
|
|
513
|
-
} =
|
|
513
|
+
} = qt(l, o, a), w = o, m = {}, v = 0;
|
|
514
514
|
for (let d = 0; d < s.length; d++) {
|
|
515
515
|
const {
|
|
516
516
|
name: g,
|
|
@@ -547,7 +547,7 @@ const dr = async (e, t, n) => {
|
|
|
547
547
|
}) : b.rects), {
|
|
548
548
|
x: p,
|
|
549
549
|
y: f
|
|
550
|
-
} =
|
|
550
|
+
} = qt(l, w, a)), d = -1);
|
|
551
551
|
}
|
|
552
552
|
return {
|
|
553
553
|
x: p,
|
|
@@ -623,15 +623,15 @@ const fr = (e) => ({
|
|
|
623
623
|
const f = yn(p), w = {
|
|
624
624
|
x: n,
|
|
625
625
|
y: o
|
|
626
|
-
}, m = Mt(r), v =
|
|
626
|
+
}, m = Mt(r), v = It(m), d = await c.getDimensions(l), g = m === "y", h = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", S = i.reference[v] + i.reference[m] - w[m] - i.floating[v], b = w[m] - i.reference[m], P = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l));
|
|
627
627
|
let E = P ? P[x] : 0;
|
|
628
628
|
(!E || !await (c.isElement == null ? void 0 : c.isElement(P))) && (E = s.floating[x] || i.floating[v]);
|
|
629
|
-
const T = S / 2 - b / 2,
|
|
629
|
+
const T = S / 2 - b / 2, N = E / 2 - d[v] / 2 - 1, I = te(f[h], N), V = te(f[y], N), B = I, $ = E - d[v] - V, _ = E / 2 - d[v] / 2 + T, O = yt(B, _, $), W = !a.arrow && Ne(r) != null && _ !== O && i.reference[v] / 2 - (_ < B ? I : V) - d[v] / 2 < 0, A = W ? _ < B ? _ - B : _ - $ : 0;
|
|
630
630
|
return {
|
|
631
631
|
[m]: w[m] + A,
|
|
632
632
|
data: {
|
|
633
633
|
[m]: O,
|
|
634
|
-
centerOffset:
|
|
634
|
+
centerOffset: _ - O - A,
|
|
635
635
|
...W && {
|
|
636
636
|
alignmentOffset: A
|
|
637
637
|
}
|
|
@@ -665,34 +665,34 @@ const fr = (e) => ({
|
|
|
665
665
|
return {};
|
|
666
666
|
const h = ce(r), y = me(s), x = ce(s) === s, S = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), b = w || (x || !d ? [et(s)] : cr(s)), P = v !== "none";
|
|
667
667
|
!w && P && b.push(...lr(s, d, v, S));
|
|
668
|
-
const E = [s, ...b], T = await He(t, g),
|
|
669
|
-
let
|
|
670
|
-
if (p &&
|
|
671
|
-
const
|
|
672
|
-
|
|
668
|
+
const E = [s, ...b], T = await He(t, g), N = [];
|
|
669
|
+
let I = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
670
|
+
if (p && N.push(T[h]), f) {
|
|
671
|
+
const _ = sr(r, c, S);
|
|
672
|
+
N.push(T[_[0]], T[_[1]]);
|
|
673
673
|
}
|
|
674
|
-
if (
|
|
674
|
+
if (I = [...I, {
|
|
675
675
|
placement: r,
|
|
676
|
-
overflows:
|
|
677
|
-
}], !
|
|
676
|
+
overflows: N
|
|
677
|
+
}], !N.every((_) => _ <= 0)) {
|
|
678
678
|
var V, B;
|
|
679
|
-
const
|
|
679
|
+
const _ = (((V = i.flip) == null ? void 0 : V.index) || 0) + 1, O = E[_];
|
|
680
680
|
if (O)
|
|
681
681
|
return {
|
|
682
682
|
data: {
|
|
683
|
-
index:
|
|
684
|
-
overflows:
|
|
683
|
+
index: _,
|
|
684
|
+
overflows: I
|
|
685
685
|
},
|
|
686
686
|
reset: {
|
|
687
687
|
placement: O
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
|
-
let W = (B =
|
|
690
|
+
let W = (B = I.filter((A) => A.overflows[0] <= 0).sort((A, D) => A.overflows[1] - D.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
691
691
|
if (!W)
|
|
692
692
|
switch (m) {
|
|
693
693
|
case "bestFit": {
|
|
694
694
|
var $;
|
|
695
|
-
const A = ($ =
|
|
695
|
+
const A = ($ = I.filter((D) => {
|
|
696
696
|
if (P) {
|
|
697
697
|
const k = me(D.placement);
|
|
698
698
|
return k === y || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -777,7 +777,7 @@ async function hr(e, t) {
|
|
|
777
777
|
placement: n,
|
|
778
778
|
platform: o,
|
|
779
779
|
elements: r
|
|
780
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), c = ce(n), s =
|
|
780
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), c = ce(n), s = Ne(n), a = me(n) === "y", l = ["left", "top"].includes(c) ? -1 : 1, p = i && a ? -1 : 1, f = se(t, e);
|
|
781
781
|
let {
|
|
782
782
|
mainAxis: w,
|
|
783
783
|
crossAxis: m,
|
|
@@ -850,7 +850,7 @@ const vr = function(e) {
|
|
|
850
850
|
} = se(e, t), l = {
|
|
851
851
|
x: n,
|
|
852
852
|
y: o
|
|
853
|
-
}, p = await He(t, a), f = me(ce(r)), w =
|
|
853
|
+
}, p = await He(t, a), f = me(ce(r)), w = Nt(f);
|
|
854
854
|
let m = l[w], v = l[f];
|
|
855
855
|
if (i) {
|
|
856
856
|
const g = w === "y" ? "top" : "left", h = w === "y" ? "bottom" : "right", y = m + p[g], x = m - p[h];
|
|
@@ -891,7 +891,7 @@ const vr = function(e) {
|
|
|
891
891
|
} = se(e, t), p = {
|
|
892
892
|
x: n,
|
|
893
893
|
y: o
|
|
894
|
-
}, f = me(r), w =
|
|
894
|
+
}, f = me(r), w = Nt(f);
|
|
895
895
|
let m = p[w], v = p[f];
|
|
896
896
|
const d = se(s, t), g = typeof d == "number" ? {
|
|
897
897
|
mainAxis: d,
|
|
@@ -930,7 +930,7 @@ const vr = function(e) {
|
|
|
930
930
|
apply: c = () => {
|
|
931
931
|
},
|
|
932
932
|
...s
|
|
933
|
-
} = se(e, t), a = await He(t, s), l = ce(n), p =
|
|
933
|
+
} = se(e, t), a = await He(t, s), l = ce(n), p = Ne(n), f = me(n) === "y", {
|
|
934
934
|
width: w,
|
|
935
935
|
height: m
|
|
936
936
|
} = o.floating;
|
|
@@ -939,8 +939,8 @@ const vr = function(e) {
|
|
|
939
939
|
const g = m - a.top - a.bottom, h = w - a.left - a.right, y = te(m - a[v], g), x = te(w - a[d], h), S = !t.middlewareData.shift;
|
|
940
940
|
let b = y, P = x;
|
|
941
941
|
if (f ? P = p || S ? te(x, h) : h : b = p || S ? te(y, g) : g, S && !p) {
|
|
942
|
-
const T =
|
|
943
|
-
f ? P = w - 2 * (T !== 0 ||
|
|
942
|
+
const T = G(a.left, 0), N = G(a.right, 0), I = G(a.top, 0), V = G(a.bottom, 0);
|
|
943
|
+
f ? P = w - 2 * (T !== 0 || N !== 0 ? T + N : G(a.left, a.right)) : b = m - 2 * (I !== 0 || V !== 0 ? I + V : G(a.top, a.bottom));
|
|
944
944
|
}
|
|
945
945
|
await c({
|
|
946
946
|
...t,
|
|
@@ -956,10 +956,10 @@ const vr = function(e) {
|
|
|
956
956
|
}
|
|
957
957
|
};
|
|
958
958
|
};
|
|
959
|
-
function
|
|
959
|
+
function Ie(e) {
|
|
960
960
|
return xn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function q(e) {
|
|
963
963
|
var t;
|
|
964
964
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
965
965
|
}
|
|
@@ -968,16 +968,16 @@ function ae(e) {
|
|
|
968
968
|
return (t = (xn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
969
969
|
}
|
|
970
970
|
function xn(e) {
|
|
971
|
-
return e instanceof Node || e instanceof
|
|
971
|
+
return e instanceof Node || e instanceof q(e).Node;
|
|
972
972
|
}
|
|
973
973
|
function ne(e) {
|
|
974
|
-
return e instanceof Element || e instanceof
|
|
974
|
+
return e instanceof Element || e instanceof q(e).Element;
|
|
975
975
|
}
|
|
976
976
|
function oe(e) {
|
|
977
|
-
return e instanceof HTMLElement || e instanceof
|
|
977
|
+
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
978
978
|
}
|
|
979
979
|
function Jt(e) {
|
|
980
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
980
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
981
981
|
}
|
|
982
982
|
function $e(e) {
|
|
983
983
|
const {
|
|
@@ -989,7 +989,7 @@ function $e(e) {
|
|
|
989
989
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
990
990
|
}
|
|
991
991
|
function xr(e) {
|
|
992
|
-
return ["table", "td", "th"].includes(
|
|
992
|
+
return ["table", "td", "th"].includes(Ie(e));
|
|
993
993
|
}
|
|
994
994
|
function rt(e) {
|
|
995
995
|
return [":popover-open", ":modal"].some((t) => {
|
|
@@ -1006,7 +1006,7 @@ function Lt(e) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
function Sr(e) {
|
|
1008
1008
|
let t = he(e);
|
|
1009
|
-
for (; oe(t) && !
|
|
1009
|
+
for (; oe(t) && !_e(t); ) {
|
|
1010
1010
|
if (rt(t))
|
|
1011
1011
|
return null;
|
|
1012
1012
|
if (Lt(t))
|
|
@@ -1018,11 +1018,11 @@ function Sr(e) {
|
|
|
1018
1018
|
function Dt() {
|
|
1019
1019
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return ["html", "body", "#document"].includes(
|
|
1021
|
+
function _e(e) {
|
|
1022
|
+
return ["html", "body", "#document"].includes(Ie(e));
|
|
1023
1023
|
}
|
|
1024
1024
|
function J(e) {
|
|
1025
|
-
return
|
|
1025
|
+
return q(e).getComputedStyle(e);
|
|
1026
1026
|
}
|
|
1027
1027
|
function it(e) {
|
|
1028
1028
|
return ne(e) ? {
|
|
@@ -1034,7 +1034,7 @@ function it(e) {
|
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
1036
|
function he(e) {
|
|
1037
|
-
if (
|
|
1037
|
+
if (Ie(e) === "html")
|
|
1038
1038
|
return e;
|
|
1039
1039
|
const t = (
|
|
1040
1040
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -1047,12 +1047,12 @@ function he(e) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
function Sn(e) {
|
|
1049
1049
|
const t = he(e);
|
|
1050
|
-
return
|
|
1050
|
+
return _e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && $e(t) ? t : Sn(t);
|
|
1051
1051
|
}
|
|
1052
1052
|
function Ve(e, t, n) {
|
|
1053
1053
|
var o;
|
|
1054
1054
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1055
|
-
const r = Sn(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), c =
|
|
1055
|
+
const r = Sn(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), c = q(r);
|
|
1056
1056
|
return i ? t.concat(c, c.visualViewport || [], $e(r) ? r : [], c.frameElement && n ? Ve(c.frameElement) : []) : t.concat(r, Ve(r, [], n));
|
|
1057
1057
|
}
|
|
1058
1058
|
function bn(e) {
|
|
@@ -1085,14 +1085,14 @@ function Te(e) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
const br = /* @__PURE__ */ pe(0);
|
|
1087
1087
|
function Cn(e) {
|
|
1088
|
-
const t =
|
|
1088
|
+
const t = q(e);
|
|
1089
1089
|
return !Dt() || !t.visualViewport ? br : {
|
|
1090
1090
|
x: t.visualViewport.offsetLeft,
|
|
1091
1091
|
y: t.visualViewport.offsetTop
|
|
1092
1092
|
};
|
|
1093
1093
|
}
|
|
1094
1094
|
function Cr(e, t, n) {
|
|
1095
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1095
|
+
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1096
1096
|
}
|
|
1097
1097
|
function be(e, t, n, o) {
|
|
1098
1098
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -1102,11 +1102,11 @@ function be(e, t, n, o) {
|
|
|
1102
1102
|
const s = Cr(i, n, o) ? Cn(i) : pe(0);
|
|
1103
1103
|
let a = (r.left + s.x) / c.x, l = (r.top + s.y) / c.y, p = r.width / c.x, f = r.height / c.y;
|
|
1104
1104
|
if (i) {
|
|
1105
|
-
const w =
|
|
1105
|
+
const w = q(i), m = o && ne(o) ? q(o) : o;
|
|
1106
1106
|
let v = w, d = v.frameElement;
|
|
1107
1107
|
for (; d && o && m !== v; ) {
|
|
1108
1108
|
const g = Te(d), h = d.getBoundingClientRect(), y = J(d), x = h.left + (d.clientLeft + parseFloat(y.paddingLeft)) * g.x, S = h.top + (d.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
1109
|
-
a *= g.x, l *= g.y, p *= g.x, f *= g.y, a += x, l += S, v =
|
|
1109
|
+
a *= g.x, l *= g.y, p *= g.x, f *= g.y, a += x, l += S, v = q(d), d = v.frameElement;
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
return tt({
|
|
@@ -1131,7 +1131,7 @@ function Er(e) {
|
|
|
1131
1131
|
scrollTop: 0
|
|
1132
1132
|
}, l = pe(1);
|
|
1133
1133
|
const p = pe(0), f = oe(o);
|
|
1134
|
-
if ((f || !f && !i) && ((
|
|
1134
|
+
if ((f || !f && !i) && ((Ie(o) !== "body" || $e(c)) && (a = it(o)), oe(o))) {
|
|
1135
1135
|
const w = be(o);
|
|
1136
1136
|
l = Te(o), p.x = w.x + o.clientLeft, p.y = w.y + o.clientTop;
|
|
1137
1137
|
}
|
|
@@ -1149,10 +1149,10 @@ function En(e) {
|
|
|
1149
1149
|
return be(ae(e)).left + it(e).scrollLeft;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Rr(e) {
|
|
1152
|
-
const t = ae(e), n = it(e), o = e.ownerDocument.body, r =
|
|
1152
|
+
const t = ae(e), n = it(e), o = e.ownerDocument.body, r = G(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = G(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1153
1153
|
let c = -n.scrollLeft + En(e);
|
|
1154
1154
|
const s = -n.scrollTop;
|
|
1155
|
-
return J(o).direction === "rtl" && (c +=
|
|
1155
|
+
return J(o).direction === "rtl" && (c += G(t.clientWidth, o.clientWidth) - r), {
|
|
1156
1156
|
width: r,
|
|
1157
1157
|
height: i,
|
|
1158
1158
|
x: c,
|
|
@@ -1160,7 +1160,7 @@ function Rr(e) {
|
|
|
1160
1160
|
};
|
|
1161
1161
|
}
|
|
1162
1162
|
function Ar(e, t) {
|
|
1163
|
-
const n =
|
|
1163
|
+
const n = q(e), o = ae(e), r = n.visualViewport;
|
|
1164
1164
|
let i = o.clientWidth, c = o.clientHeight, s = 0, a = 0;
|
|
1165
1165
|
if (r) {
|
|
1166
1166
|
i = r.width, c = r.height;
|
|
@@ -1203,22 +1203,22 @@ function en(e, t, n) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
function Pn(e, t) {
|
|
1205
1205
|
const n = he(e);
|
|
1206
|
-
return n === t || !ne(n) ||
|
|
1206
|
+
return n === t || !ne(n) || _e(n) ? !1 : J(n).position === "fixed" || Pn(n, t);
|
|
1207
1207
|
}
|
|
1208
1208
|
function Or(e, t) {
|
|
1209
1209
|
const n = t.get(e);
|
|
1210
1210
|
if (n)
|
|
1211
1211
|
return n;
|
|
1212
|
-
let o = Ve(e, [], !1).filter((s) => ne(s) &&
|
|
1212
|
+
let o = Ve(e, [], !1).filter((s) => ne(s) && Ie(s) !== "body"), r = null;
|
|
1213
1213
|
const i = J(e).position === "fixed";
|
|
1214
1214
|
let c = i ? he(e) : e;
|
|
1215
|
-
for (; ne(c) && !
|
|
1215
|
+
for (; ne(c) && !_e(c); ) {
|
|
1216
1216
|
const s = J(c), a = Lt(c);
|
|
1217
1217
|
!a && s.position === "fixed" && (r = null), (i ? !a && !r : !a && s.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || $e(c) && !a && Pn(e, c)) ? o = o.filter((p) => p !== c) : r = s, c = he(c);
|
|
1218
1218
|
}
|
|
1219
1219
|
return t.set(e, o), o;
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function _r(e) {
|
|
1222
1222
|
let {
|
|
1223
1223
|
element: t,
|
|
1224
1224
|
boundary: n,
|
|
@@ -1227,7 +1227,7 @@ function Nr(e) {
|
|
|
1227
1227
|
} = e;
|
|
1228
1228
|
const c = [...n === "clippingAncestors" ? rt(t) ? [] : Or(t, this._c) : [].concat(n), o], s = c[0], a = c.reduce((l, p) => {
|
|
1229
1229
|
const f = en(t, p, r);
|
|
1230
|
-
return l.top =
|
|
1230
|
+
return l.top = G(f.top, l.top), l.right = te(f.right, l.right), l.bottom = te(f.bottom, l.bottom), l.left = G(f.left, l.left), l;
|
|
1231
1231
|
}, en(t, s, r));
|
|
1232
1232
|
return {
|
|
1233
1233
|
width: a.right - a.left,
|
|
@@ -1236,7 +1236,7 @@ function Nr(e) {
|
|
|
1236
1236
|
y: a.top
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Nr(e) {
|
|
1240
1240
|
const {
|
|
1241
1241
|
width: t,
|
|
1242
1242
|
height: n
|
|
@@ -1246,7 +1246,7 @@ function Ir(e) {
|
|
|
1246
1246
|
height: n
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function Ir(e, t, n) {
|
|
1250
1250
|
const o = oe(t), r = ae(t), i = n === "fixed", c = be(e, !0, i, t);
|
|
1251
1251
|
let s = {
|
|
1252
1252
|
scrollLeft: 0,
|
|
@@ -1254,7 +1254,7 @@ function _r(e, t, n) {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
const a = pe(0);
|
|
1256
1256
|
if (o || !o && !i)
|
|
1257
|
-
if ((
|
|
1257
|
+
if ((Ie(t) !== "body" || $e(r)) && (s = it(t)), o) {
|
|
1258
1258
|
const f = be(t, !0, i, t);
|
|
1259
1259
|
a.x = f.x + t.clientLeft, a.y = f.y + t.clientTop;
|
|
1260
1260
|
} else r && (a.x = En(r));
|
|
@@ -1273,12 +1273,12 @@ function tn(e, t) {
|
|
|
1273
1273
|
return !oe(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1274
1274
|
}
|
|
1275
1275
|
function Rn(e, t) {
|
|
1276
|
-
const n =
|
|
1276
|
+
const n = q(e);
|
|
1277
1277
|
if (rt(e))
|
|
1278
1278
|
return n;
|
|
1279
1279
|
if (!oe(e)) {
|
|
1280
1280
|
let r = he(e);
|
|
1281
|
-
for (; r && !
|
|
1281
|
+
for (; r && !_e(r); ) {
|
|
1282
1282
|
if (ne(r) && !pt(r))
|
|
1283
1283
|
return r;
|
|
1284
1284
|
r = he(r);
|
|
@@ -1288,12 +1288,12 @@ function Rn(e, t) {
|
|
|
1288
1288
|
let o = tn(e, t);
|
|
1289
1289
|
for (; o && xr(o) && pt(o); )
|
|
1290
1290
|
o = tn(o, t);
|
|
1291
|
-
return o &&
|
|
1291
|
+
return o && _e(o) && pt(o) && !Lt(o) ? n : o || Sr(e) || n;
|
|
1292
1292
|
}
|
|
1293
1293
|
const Mr = async function(e) {
|
|
1294
1294
|
const t = this.getOffsetParent || Rn, n = this.getDimensions, o = await n(e.floating);
|
|
1295
1295
|
return {
|
|
1296
|
-
reference:
|
|
1296
|
+
reference: Ir(e.reference, await t(e.floating), e.strategy),
|
|
1297
1297
|
floating: {
|
|
1298
1298
|
x: 0,
|
|
1299
1299
|
y: 0,
|
|
@@ -1308,11 +1308,11 @@ function Lr(e) {
|
|
|
1308
1308
|
const Dr = {
|
|
1309
1309
|
convertOffsetParentRelativeRectToViewportRelativeRect: Er,
|
|
1310
1310
|
getDocumentElement: ae,
|
|
1311
|
-
getClippingRect:
|
|
1311
|
+
getClippingRect: _r,
|
|
1312
1312
|
getOffsetParent: Rn,
|
|
1313
1313
|
getElementRects: Mr,
|
|
1314
1314
|
getClientRects: Pr,
|
|
1315
|
-
getDimensions:
|
|
1315
|
+
getDimensions: Nr,
|
|
1316
1316
|
getScale: Te,
|
|
1317
1317
|
isElement: ne,
|
|
1318
1318
|
isRTL: Lr
|
|
@@ -1336,7 +1336,7 @@ function kr(e, t) {
|
|
|
1336
1336
|
return;
|
|
1337
1337
|
const m = Ke(p), v = Ke(r.clientWidth - (l + f)), d = Ke(r.clientHeight - (p + w)), g = Ke(l), y = {
|
|
1338
1338
|
rootMargin: -m + "px " + -v + "px " + -d + "px " + -g + "px",
|
|
1339
|
-
threshold:
|
|
1339
|
+
threshold: G(0, te(1, a)) || 1
|
|
1340
1340
|
};
|
|
1341
1341
|
let x = !0;
|
|
1342
1342
|
function S(b) {
|
|
@@ -1412,7 +1412,7 @@ const Fr = vr, Wr = gr, Hr = pr, Vr = yr, $r = mr, nn = fr, Ur = wr, zr = (e, t,
|
|
|
1412
1412
|
platform: i
|
|
1413
1413
|
});
|
|
1414
1414
|
};
|
|
1415
|
-
var
|
|
1415
|
+
var qe = typeof document < "u" ? Po : Ro;
|
|
1416
1416
|
function nt(e, t) {
|
|
1417
1417
|
if (e === t)
|
|
1418
1418
|
return !0;
|
|
@@ -1452,7 +1452,7 @@ function on(e, t) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
function rn(e) {
|
|
1454
1454
|
const t = u.useRef(e);
|
|
1455
|
-
return
|
|
1455
|
+
return qe(() => {
|
|
1456
1456
|
t.current = e;
|
|
1457
1457
|
}), t;
|
|
1458
1458
|
}
|
|
@@ -1483,7 +1483,7 @@ function Kr(e) {
|
|
|
1483
1483
|
A !== P.current && (P.current = A, d(A));
|
|
1484
1484
|
}, []), x = u.useCallback((A) => {
|
|
1485
1485
|
A !== E.current && (E.current = A, h(A));
|
|
1486
|
-
}, []), S = i || v, b = c || g, P = u.useRef(null), E = u.useRef(null), T = u.useRef(p),
|
|
1486
|
+
}, []), S = i || v, b = c || g, P = u.useRef(null), E = u.useRef(null), T = u.useRef(p), N = a != null, I = rn(a), V = rn(r), B = u.useCallback(() => {
|
|
1487
1487
|
if (!P.current || !E.current)
|
|
1488
1488
|
return;
|
|
1489
1489
|
const A = {
|
|
@@ -1501,23 +1501,23 @@ function Kr(e) {
|
|
|
1501
1501
|
}));
|
|
1502
1502
|
});
|
|
1503
1503
|
}, [w, t, n, V]);
|
|
1504
|
-
|
|
1504
|
+
qe(() => {
|
|
1505
1505
|
l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, f((A) => ({
|
|
1506
1506
|
...A,
|
|
1507
1507
|
isPositioned: !1
|
|
1508
1508
|
})));
|
|
1509
1509
|
}, [l]);
|
|
1510
1510
|
const $ = u.useRef(!1);
|
|
1511
|
-
|
|
1511
|
+
qe(() => ($.current = !0, () => {
|
|
1512
1512
|
$.current = !1;
|
|
1513
|
-
}), []),
|
|
1513
|
+
}), []), qe(() => {
|
|
1514
1514
|
if (S && (P.current = S), b && (E.current = b), S && b) {
|
|
1515
|
-
if (
|
|
1516
|
-
return
|
|
1515
|
+
if (I.current)
|
|
1516
|
+
return I.current(S, b, B);
|
|
1517
1517
|
B();
|
|
1518
1518
|
}
|
|
1519
|
-
}, [S, b, B,
|
|
1520
|
-
const
|
|
1519
|
+
}, [S, b, B, I, N]);
|
|
1520
|
+
const _ = u.useMemo(() => ({
|
|
1521
1521
|
reference: P,
|
|
1522
1522
|
floating: E,
|
|
1523
1523
|
setReference: y,
|
|
@@ -1549,10 +1549,10 @@ function Kr(e) {
|
|
|
1549
1549
|
return u.useMemo(() => ({
|
|
1550
1550
|
...p,
|
|
1551
1551
|
update: B,
|
|
1552
|
-
refs:
|
|
1552
|
+
refs: _,
|
|
1553
1553
|
elements: O,
|
|
1554
1554
|
floatingStyles: W
|
|
1555
|
-
}), [p, B,
|
|
1555
|
+
}), [p, B, _, O, W]);
|
|
1556
1556
|
}
|
|
1557
1557
|
const Yr = (e) => {
|
|
1558
1558
|
function t(n) {
|
|
@@ -1581,10 +1581,10 @@ const Yr = (e) => {
|
|
|
1581
1581
|
}), Xr = (e, t) => ({
|
|
1582
1582
|
...Wr(e),
|
|
1583
1583
|
options: [e, t]
|
|
1584
|
-
}),
|
|
1584
|
+
}), Gr = (e, t) => ({
|
|
1585
1585
|
...Ur(e),
|
|
1586
1586
|
options: [e, t]
|
|
1587
|
-
}),
|
|
1587
|
+
}), qr = (e, t) => ({
|
|
1588
1588
|
...Hr(e),
|
|
1589
1589
|
options: [e, t]
|
|
1590
1590
|
}), Zr = (e, t) => ({
|
|
@@ -1613,14 +1613,14 @@ var ei = "Arrow", Tn = u.forwardRef((e, t) => {
|
|
|
1613
1613
|
);
|
|
1614
1614
|
});
|
|
1615
1615
|
Tn.displayName = ei;
|
|
1616
|
-
var ti = Tn, Bt = "Popper", [On,
|
|
1616
|
+
var ti = Tn, Bt = "Popper", [On, _n] = Ot(Bt), [ni, Nn] = On(Bt), In = (e) => {
|
|
1617
1617
|
const { __scopePopper: t, children: n } = e, [o, r] = u.useState(null);
|
|
1618
1618
|
return /* @__PURE__ */ C(ni, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
1619
1619
|
};
|
|
1620
|
-
|
|
1620
|
+
In.displayName = Bt;
|
|
1621
1621
|
var Mn = "PopperAnchor", Ln = u.forwardRef(
|
|
1622
1622
|
(e, t) => {
|
|
1623
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, i =
|
|
1623
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, i = Nn(Mn, n), c = u.useRef(null), s = K(t, c);
|
|
1624
1624
|
return u.useEffect(() => {
|
|
1625
1625
|
i.onAnchorChange((o == null ? void 0 : o.current) || c.current);
|
|
1626
1626
|
}), o ? null : /* @__PURE__ */ C(U.div, { ...r, ref: s });
|
|
@@ -1645,15 +1645,15 @@ var Ft = "PopperContent", [oi, ri] = On(Ft), Dn = u.forwardRef(
|
|
|
1645
1645
|
updatePositionStrategy: m = "optimized",
|
|
1646
1646
|
onPlaced: v,
|
|
1647
1647
|
...d
|
|
1648
|
-
} = e, g =
|
|
1649
|
-
padding:
|
|
1648
|
+
} = e, g = Nn(Ft, n), [h, y] = u.useState(null), x = K(t, (X) => y(X)), [S, b] = u.useState(null), P = Oo(S), E = (P == null ? void 0 : P.width) ?? 0, T = (P == null ? void 0 : P.height) ?? 0, N = o + (i !== "center" ? "-" + i : ""), I = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, V = Array.isArray(l) ? l : [l], B = V.length > 0, $ = {
|
|
1649
|
+
padding: I,
|
|
1650
1650
|
boundary: V.filter(si),
|
|
1651
1651
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1652
1652
|
altBoundary: B
|
|
1653
|
-
}, { refs:
|
|
1653
|
+
}, { refs: _, floatingStyles: O, placement: W, isPositioned: A, middlewareData: D } = Kr({
|
|
1654
1654
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1655
1655
|
strategy: "fixed",
|
|
1656
|
-
placement:
|
|
1656
|
+
placement: N,
|
|
1657
1657
|
whileElementsMounted: (...X) => Br(...X, {
|
|
1658
1658
|
animationFrame: m === "always"
|
|
1659
1659
|
}),
|
|
@@ -1665,10 +1665,10 @@ var Ft = "PopperContent", [oi, ri] = On(Ft), Dn = u.forwardRef(
|
|
|
1665
1665
|
a && Xr({
|
|
1666
1666
|
mainAxis: !0,
|
|
1667
1667
|
crossAxis: !1,
|
|
1668
|
-
limiter: f === "partial" ?
|
|
1668
|
+
limiter: f === "partial" ? Gr() : void 0,
|
|
1669
1669
|
...$
|
|
1670
1670
|
}),
|
|
1671
|
-
a &&
|
|
1671
|
+
a && qr({ ...$ }),
|
|
1672
1672
|
Zr({
|
|
1673
1673
|
...$,
|
|
1674
1674
|
apply: ({ elements: X, rects: ee, availableWidth: ke, availableHeight: Be }) => {
|
|
@@ -1690,7 +1690,7 @@ var Ft = "PopperContent", [oi, ri] = On(Ft), Dn = u.forwardRef(
|
|
|
1690
1690
|
}, [h]), /* @__PURE__ */ C(
|
|
1691
1691
|
"div",
|
|
1692
1692
|
{
|
|
1693
|
-
ref:
|
|
1693
|
+
ref: _.setFloating,
|
|
1694
1694
|
"data-radix-popper-content-wrapper": "",
|
|
1695
1695
|
style: {
|
|
1696
1696
|
...O,
|
|
@@ -1810,7 +1810,7 @@ function Fn(e) {
|
|
|
1810
1810
|
const [t, n = "center"] = e.split("-");
|
|
1811
1811
|
return [t, n];
|
|
1812
1812
|
}
|
|
1813
|
-
var ai =
|
|
1813
|
+
var ai = In, li = Ln, ui = Dn, di = Bn, fi = "Portal", Wn = u.forwardRef((e, t) => {
|
|
1814
1814
|
var s;
|
|
1815
1815
|
const { container: n, ...o } = e, [r, i] = u.useState(!1);
|
|
1816
1816
|
Z(() => i(!0), []);
|
|
@@ -1890,7 +1890,7 @@ var mi = function(e) {
|
|
|
1890
1890
|
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), vi(o, r, n, "aria-hidden")) : function() {
|
|
1891
1891
|
return null;
|
|
1892
1892
|
};
|
|
1893
|
-
}, Ze = "right-scroll-bar-position", Qe = "width-before-scroll-bar", wi = "with-scroll-bars-hidden", yi = "--removed-body-scroll-bar-size", $n =
|
|
1893
|
+
}, Ze = "right-scroll-bar-position", Qe = "width-before-scroll-bar", wi = "with-scroll-bars-hidden", yi = "--removed-body-scroll-bar-size", $n = Io(), ht = function() {
|
|
1894
1894
|
}, st = u.forwardRef(function(e, t) {
|
|
1895
1895
|
var n = u.useRef(null), o = u.useState({
|
|
1896
1896
|
onScrollCapture: ht,
|
|
@@ -1977,7 +1977,7 @@ var Ei = function() {
|
|
|
1977
1977
|
right: t[2],
|
|
1978
1978
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
1979
1979
|
};
|
|
1980
|
-
}, Oi = Un(), Oe = "data-scroll-locked",
|
|
1980
|
+
}, Oi = Un(), Oe = "data-scroll-locked", _i = function(e, t, n, o) {
|
|
1981
1981
|
var r = e.left, i = e.top, c = e.right, s = e.gap;
|
|
1982
1982
|
return n === void 0 && (n = "margin"), `
|
|
1983
1983
|
.`.concat(wi, ` {
|
|
@@ -2024,20 +2024,20 @@ var Ei = function() {
|
|
|
2024
2024
|
}, sn = function() {
|
|
2025
2025
|
var e = parseInt(document.body.getAttribute(Oe) || "0", 10);
|
|
2026
2026
|
return isFinite(e) ? e : 0;
|
|
2027
|
-
},
|
|
2027
|
+
}, Ni = function() {
|
|
2028
2028
|
u.useEffect(function() {
|
|
2029
2029
|
return document.body.setAttribute(Oe, (sn() + 1).toString()), function() {
|
|
2030
2030
|
var e = sn() - 1;
|
|
2031
2031
|
e <= 0 ? document.body.removeAttribute(Oe) : document.body.setAttribute(Oe, e.toString());
|
|
2032
2032
|
};
|
|
2033
2033
|
}, []);
|
|
2034
|
-
},
|
|
2034
|
+
}, Ii = function(e) {
|
|
2035
2035
|
var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
|
|
2036
|
-
|
|
2036
|
+
Ni();
|
|
2037
2037
|
var i = u.useMemo(function() {
|
|
2038
2038
|
return Ti(r);
|
|
2039
2039
|
}, [r]);
|
|
2040
|
-
return u.createElement(Oi, { styles:
|
|
2040
|
+
return u.createElement(Oi, { styles: _i(i, !t, r, n ? "" : "!important") });
|
|
2041
2041
|
}, St = !1;
|
|
2042
2042
|
if (typeof window < "u")
|
|
2043
2043
|
try {
|
|
@@ -2107,7 +2107,7 @@ var Re = St ? { passive: !1 } : !1, Mi = function(e) {
|
|
|
2107
2107
|
a && (t.contains(s) || t === s)
|
|
2108
2108
|
);
|
|
2109
2109
|
return (p && (Math.abs(f) < 1 || !r) || !p && (Math.abs(w) < 1 || !r)) && (l = !0), l;
|
|
2110
|
-
},
|
|
2110
|
+
}, Ge = function(e) {
|
|
2111
2111
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2112
2112
|
}, an = function(e) {
|
|
2113
2113
|
return [e.deltaX, e.deltaY];
|
|
@@ -2128,7 +2128,7 @@ function Ui(e) {
|
|
|
2128
2128
|
}, [e]), u.useEffect(function() {
|
|
2129
2129
|
if (e.inert) {
|
|
2130
2130
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
2131
|
-
var d =
|
|
2131
|
+
var d = No([e.lockRef.current], (e.shards || []).map(ln), !0).filter(Boolean);
|
|
2132
2132
|
return d.forEach(function(g) {
|
|
2133
2133
|
return g.classList.add("allow-interactivity-".concat(r));
|
|
2134
2134
|
}), function() {
|
|
@@ -2141,7 +2141,7 @@ function Ui(e) {
|
|
|
2141
2141
|
var s = u.useCallback(function(d, g) {
|
|
2142
2142
|
if ("touches" in d && d.touches.length === 2)
|
|
2143
2143
|
return !c.current.allowPinchZoom;
|
|
2144
|
-
var h =
|
|
2144
|
+
var h = Ge(d), y = n.current, x = "deltaX" in d ? d.deltaX : y[0] - h[0], S = "deltaY" in d ? d.deltaY : y[1] - h[1], b, P = d.target, E = Math.abs(x) > Math.abs(S) ? "h" : "v";
|
|
2145
2145
|
if ("touches" in d && E === "h" && P.type === "range")
|
|
2146
2146
|
return !1;
|
|
2147
2147
|
var T = cn(E, P);
|
|
@@ -2151,12 +2151,12 @@ function Ui(e) {
|
|
|
2151
2151
|
return !1;
|
|
2152
2152
|
if (!o.current && "changedTouches" in d && (x || S) && (o.current = b), !b)
|
|
2153
2153
|
return !0;
|
|
2154
|
-
var
|
|
2155
|
-
return Wi(
|
|
2154
|
+
var N = o.current || b;
|
|
2155
|
+
return Wi(N, g, d, N === "h" ? x : S, !0);
|
|
2156
2156
|
}, []), a = u.useCallback(function(d) {
|
|
2157
2157
|
var g = d;
|
|
2158
2158
|
if (!(!Ae.length || Ae[Ae.length - 1] !== i)) {
|
|
2159
|
-
var h = "deltaY" in g ? an(g) :
|
|
2159
|
+
var h = "deltaY" in g ? an(g) : Ge(g), y = t.current.filter(function(b) {
|
|
2160
2160
|
return b.name === g.type && (b.target === g.target || g.target === b.shadowParent) && Hi(b.delta, h);
|
|
2161
2161
|
})[0];
|
|
2162
2162
|
if (y && y.should) {
|
|
@@ -2178,11 +2178,11 @@ function Ui(e) {
|
|
|
2178
2178
|
});
|
|
2179
2179
|
}, 1);
|
|
2180
2180
|
}, []), p = u.useCallback(function(d) {
|
|
2181
|
-
n.current =
|
|
2181
|
+
n.current = Ge(d), o.current = void 0;
|
|
2182
2182
|
}, []), f = u.useCallback(function(d) {
|
|
2183
2183
|
l(d.type, an(d), d.target, s(d, e.lockRef.current));
|
|
2184
2184
|
}, []), w = u.useCallback(function(d) {
|
|
2185
|
-
l(d.type,
|
|
2185
|
+
l(d.type, Ge(d), d.target, s(d, e.lockRef.current));
|
|
2186
2186
|
}, []);
|
|
2187
2187
|
u.useEffect(function() {
|
|
2188
2188
|
return Ae.push(i), e.setCallbacks({
|
|
@@ -2200,7 +2200,7 @@ function Ui(e) {
|
|
|
2200
2200
|
u.Fragment,
|
|
2201
2201
|
null,
|
|
2202
2202
|
v ? u.createElement(i, { styles: Vi(r) }) : null,
|
|
2203
|
-
m ? u.createElement(
|
|
2203
|
+
m ? u.createElement(Ii, { gapMode: e.gapMode }) : null
|
|
2204
2204
|
);
|
|
2205
2205
|
}
|
|
2206
2206
|
function zi(e) {
|
|
@@ -2215,8 +2215,8 @@ var jn = u.forwardRef(function(e, t) {
|
|
|
2215
2215
|
jn.classNames = st.classNames;
|
|
2216
2216
|
var Yi = [" ", "Enter", "ArrowUp", "ArrowDown"], ji = [" ", "Enter"], Ue = "Select", [ct, at, Xi] = ko(Ue), [Me, Ys] = Ot(Ue, [
|
|
2217
2217
|
Xi,
|
|
2218
|
-
|
|
2219
|
-
]), lt =
|
|
2218
|
+
_n
|
|
2219
|
+
]), lt = _n(), [Gi, ve] = Me(Ue), [qi, Zi] = Me(Ue), Xn = (e) => {
|
|
2220
2220
|
const {
|
|
2221
2221
|
__scopeSelect: t,
|
|
2222
2222
|
children: n,
|
|
@@ -2235,13 +2235,13 @@ var Yi = [" ", "Enter", "ArrowUp", "ArrowDown"], ji = [" ", "Enter"], Ue = "Sele
|
|
|
2235
2235
|
prop: o,
|
|
2236
2236
|
defaultProp: r,
|
|
2237
2237
|
onChange: i
|
|
2238
|
-
}), [T,
|
|
2238
|
+
}), [T, N] = Ht({
|
|
2239
2239
|
prop: c,
|
|
2240
2240
|
defaultProp: s,
|
|
2241
2241
|
onChange: a
|
|
2242
|
-
}),
|
|
2242
|
+
}), I = u.useRef(null), V = d ? !!d.closest("form") : !0, [B, $] = u.useState(/* @__PURE__ */ new Set()), _ = Array.from(B).map((O) => O.props.value).join(";");
|
|
2243
2243
|
return /* @__PURE__ */ C(ai, { ...v, children: /* @__PURE__ */ de(
|
|
2244
|
-
|
|
2244
|
+
Gi,
|
|
2245
2245
|
{
|
|
2246
2246
|
required: m,
|
|
2247
2247
|
scope: t,
|
|
@@ -2251,17 +2251,17 @@ var Yi = [" ", "Enter", "ArrowUp", "ArrowDown"], ji = [" ", "Enter"], Ue = "Sele
|
|
|
2251
2251
|
onValueNodeChange: y,
|
|
2252
2252
|
valueNodeHasChildren: x,
|
|
2253
2253
|
onValueNodeHasChildrenChange: S,
|
|
2254
|
-
contentId:
|
|
2254
|
+
contentId: _t(),
|
|
2255
2255
|
value: T,
|
|
2256
|
-
onValueChange:
|
|
2256
|
+
onValueChange: N,
|
|
2257
2257
|
open: P,
|
|
2258
2258
|
onOpenChange: E,
|
|
2259
2259
|
dir: b,
|
|
2260
|
-
triggerPointerDownPosRef:
|
|
2260
|
+
triggerPointerDownPosRef: I,
|
|
2261
2261
|
disabled: w,
|
|
2262
2262
|
children: [
|
|
2263
2263
|
/* @__PURE__ */ C(ct.Provider, { scope: t, children: /* @__PURE__ */ C(
|
|
2264
|
-
|
|
2264
|
+
qi,
|
|
2265
2265
|
{
|
|
2266
2266
|
scope: e.__scopeSelect,
|
|
2267
2267
|
onNativeOptionAdd: u.useCallback((O) => {
|
|
@@ -2285,23 +2285,23 @@ var Yi = [" ", "Enter", "ArrowUp", "ArrowDown"], ji = [" ", "Enter"], Ue = "Sele
|
|
|
2285
2285
|
name: p,
|
|
2286
2286
|
autoComplete: f,
|
|
2287
2287
|
value: T,
|
|
2288
|
-
onChange: (O) =>
|
|
2288
|
+
onChange: (O) => N(O.target.value),
|
|
2289
2289
|
disabled: w,
|
|
2290
2290
|
children: [
|
|
2291
2291
|
T === void 0 ? /* @__PURE__ */ C("option", { value: "" }) : null,
|
|
2292
2292
|
Array.from(B)
|
|
2293
2293
|
]
|
|
2294
2294
|
},
|
|
2295
|
-
|
|
2295
|
+
_
|
|
2296
2296
|
) : null
|
|
2297
2297
|
]
|
|
2298
2298
|
}
|
|
2299
2299
|
) });
|
|
2300
2300
|
};
|
|
2301
2301
|
Xn.displayName = Ue;
|
|
2302
|
-
var
|
|
2302
|
+
var Gn = "SelectTrigger", qn = u.forwardRef(
|
|
2303
2303
|
(e, t) => {
|
|
2304
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = lt(n), c = ve(
|
|
2304
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = lt(n), c = ve(Gn, n), s = c.disabled || o, a = K(t, c.onTriggerChange), l = at(n), [p, f, w] = yo((v) => {
|
|
2305
2305
|
const d = l().filter((y) => !y.disabled), g = d.find((y) => y.value === c.value), h = xo(d, v, g);
|
|
2306
2306
|
h !== void 0 && c.onValueChange(h.value);
|
|
2307
2307
|
}), m = () => {
|
|
@@ -2341,7 +2341,7 @@ var qn = "SelectTrigger", Gn = u.forwardRef(
|
|
|
2341
2341
|
) });
|
|
2342
2342
|
}
|
|
2343
2343
|
);
|
|
2344
|
-
|
|
2344
|
+
qn.displayName = Gn;
|
|
2345
2345
|
var Zn = "SelectValue", Qn = u.forwardRef(
|
|
2346
2346
|
(e, t) => {
|
|
2347
2347
|
const { __scopeSelect: n, className: o, style: r, children: i, placeholder: c = "", ...s } = e, a = ve(Zn, n), { onValueNodeHasChildrenChange: l } = a, p = i !== void 0, f = K(t, a.onValueNodeChange);
|
|
@@ -2406,9 +2406,9 @@ var ie = 10, [no, ge] = Me(Ce), es = "SelectContentImpl", oo = u.forwardRef(
|
|
|
2406
2406
|
avoidCollisions: g,
|
|
2407
2407
|
//
|
|
2408
2408
|
...h
|
|
2409
|
-
} = e, y = ve(Ce, n), [x, S] = u.useState(null), [b, P] = u.useState(null), E = K(t, (R) => S(R)), [T,
|
|
2409
|
+
} = e, y = ve(Ce, n), [x, S] = u.useState(null), [b, P] = u.useState(null), E = K(t, (R) => S(R)), [T, N] = u.useState(null), [I, V] = u.useState(
|
|
2410
2410
|
null
|
|
2411
|
-
), B = at(n), [$,
|
|
2411
|
+
), B = at(n), [$, _] = u.useState(!1), O = u.useRef(!1);
|
|
2412
2412
|
u.useEffect(() => {
|
|
2413
2413
|
if (x) return gi(x);
|
|
2414
2414
|
}, [x]), jo();
|
|
@@ -2455,7 +2455,7 @@ var ie = 10, [no, ge] = Me(Ce), es = "SelectContentImpl", oo = u.forwardRef(
|
|
|
2455
2455
|
}), Le = u.useCallback(
|
|
2456
2456
|
(R, H, Y) => {
|
|
2457
2457
|
const F = !O.current && !Y;
|
|
2458
|
-
(y.value !== void 0 && y.value === H || F) && (
|
|
2458
|
+
(y.value !== void 0 && y.value === H || F) && (N(R), F && (O.current = !0));
|
|
2459
2459
|
},
|
|
2460
2460
|
[y.value]
|
|
2461
2461
|
), De = u.useCallback(() => x == null ? void 0 : x.focus(), [x]), le = u.useCallback(
|
|
@@ -2488,7 +2488,7 @@ var ie = 10, [no, ge] = Me(Ce), es = "SelectContentImpl", oo = u.forwardRef(
|
|
|
2488
2488
|
onItemLeave: De,
|
|
2489
2489
|
itemTextRefCallback: le,
|
|
2490
2490
|
focusSelectedItem: A,
|
|
2491
|
-
selectedItemText:
|
|
2491
|
+
selectedItemText: I,
|
|
2492
2492
|
position: o,
|
|
2493
2493
|
isPositioned: $,
|
|
2494
2494
|
searchRef: we,
|
|
@@ -2523,7 +2523,7 @@ var ie = 10, [no, ge] = Me(Ce), es = "SelectContentImpl", oo = u.forwardRef(
|
|
|
2523
2523
|
onContextMenu: (R) => R.preventDefault(),
|
|
2524
2524
|
...h,
|
|
2525
2525
|
...ye,
|
|
2526
|
-
onPlaced: () =>
|
|
2526
|
+
onPlaced: () => _(!0),
|
|
2527
2527
|
ref: E,
|
|
2528
2528
|
style: {
|
|
2529
2529
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -2558,15 +2558,15 @@ oo.displayName = es;
|
|
|
2558
2558
|
var ts = "SelectItemAlignedPosition", ro = u.forwardRef((e, t) => {
|
|
2559
2559
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, i = ve(Ce, n), c = ge(Ce, n), [s, a] = u.useState(null), [l, p] = u.useState(null), f = K(t, (E) => p(E)), w = at(n), m = u.useRef(!1), v = u.useRef(!0), { viewport: d, selectedItem: g, selectedItemText: h, focusSelectedItem: y } = c, x = u.useCallback(() => {
|
|
2560
2560
|
if (i.trigger && i.valueNode && s && l && d && g && h) {
|
|
2561
|
-
const E = i.trigger.getBoundingClientRect(), T = l.getBoundingClientRect(),
|
|
2561
|
+
const E = i.trigger.getBoundingClientRect(), T = l.getBoundingClientRect(), N = i.valueNode.getBoundingClientRect(), I = h.getBoundingClientRect();
|
|
2562
2562
|
if (i.dir !== "rtl") {
|
|
2563
|
-
const M =
|
|
2563
|
+
const M = I.left - T.left, L = N.left - M, X = E.left - L, ee = E.width + X, ke = Math.max(ee, T.width), Be = window.innerWidth - ie, Fe = $t(L, [ie, Be - ke]);
|
|
2564
2564
|
s.style.minWidth = ee + "px", s.style.left = Fe + "px";
|
|
2565
2565
|
} else {
|
|
2566
|
-
const M = T.right -
|
|
2566
|
+
const M = T.right - I.right, L = window.innerWidth - N.right - M, X = window.innerWidth - E.right - L, ee = E.width + X, ke = Math.max(ee, T.width), Be = window.innerWidth - ie, Fe = $t(L, [ie, Be - ke]);
|
|
2567
2567
|
s.style.minWidth = ee + "px", s.style.right = Fe + "px";
|
|
2568
2568
|
}
|
|
2569
|
-
const V = w(), B = window.innerHeight - ie * 2, $ = d.scrollHeight,
|
|
2569
|
+
const V = w(), B = window.innerHeight - ie * 2, $ = d.scrollHeight, _ = window.getComputedStyle(l), O = parseInt(_.borderTopWidth, 10), W = parseInt(_.paddingTop, 10), A = parseInt(_.borderBottomWidth, 10), D = parseInt(_.paddingBottom, 10), k = O + W + $ + D + A, we = Math.min(g.offsetHeight * 5, k), re = window.getComputedStyle(d), Le = parseInt(re.paddingTop, 10), De = parseInt(re.paddingBottom, 10), le = E.top + E.height / 2 - ie, Ee = B - le, ye = g.offsetHeight / 2, R = g.offsetTop + ye, H = O + W + R, Y = k - H;
|
|
2570
2570
|
if (H <= le) {
|
|
2571
2571
|
const M = g === V[V.length - 1].ref.current;
|
|
2572
2572
|
s.style.bottom = "0px";
|
|
@@ -2729,7 +2729,7 @@ var [os, Wt] = Me(Ce, {}), Ct = "SelectViewport", io = u.forwardRef(
|
|
|
2729
2729
|
io.displayName = Ct;
|
|
2730
2730
|
var so = "SelectGroup", [rs, is] = Me(so), ss = u.forwardRef(
|
|
2731
2731
|
(e, t) => {
|
|
2732
|
-
const { __scopeSelect: n, ...o } = e, r =
|
|
2732
|
+
const { __scopeSelect: n, ...o } = e, r = _t();
|
|
2733
2733
|
return /* @__PURE__ */ C(rs, { scope: n, id: r, children: /* @__PURE__ */ C(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
2734
2734
|
}
|
|
2735
2735
|
);
|
|
@@ -2755,7 +2755,7 @@ var ot = "SelectItem", [as, ao] = Me(ot), lo = u.forwardRef(
|
|
|
2755
2755
|
var y;
|
|
2756
2756
|
return (y = a.itemRefCallback) == null ? void 0 : y.call(a, h, o, r);
|
|
2757
2757
|
}
|
|
2758
|
-
), d =
|
|
2758
|
+
), d = _t(), g = () => {
|
|
2759
2759
|
r || (s.onValueChange(o), s.onOpenChange(!1));
|
|
2760
2760
|
};
|
|
2761
2761
|
if (o === "")
|
|
@@ -2939,7 +2939,7 @@ function go(e) {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
var wo = u.forwardRef(
|
|
2941
2941
|
(e, t) => {
|
|
2942
|
-
const { value: n, ...o } = e, r = u.useRef(null), i = K(t, r), c =
|
|
2942
|
+
const { value: n, ...o } = e, r = u.useRef(null), i = K(t, r), c = _o(n);
|
|
2943
2943
|
return u.useEffect(() => {
|
|
2944
2944
|
const s = r.current, a = window.HTMLSelectElement.prototype, p = Object.getOwnPropertyDescriptor(
|
|
2945
2945
|
a,
|
|
@@ -2979,7 +2979,7 @@ function xo(e, t, n) {
|
|
|
2979
2979
|
function fs(e, t) {
|
|
2980
2980
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
2981
2981
|
}
|
|
2982
|
-
var ps = Xn, ms =
|
|
2982
|
+
var ps = Xn, ms = qn, hs = Qn, vs = Jn, gs = eo, ws = to, ys = io, xs = lo, Ss = uo, bs = po, Cs = mo, Es = ho, So = {
|
|
2983
2983
|
color: void 0,
|
|
2984
2984
|
size: void 0,
|
|
2985
2985
|
className: void 0,
|
|
@@ -3041,12 +3041,12 @@ function dn(e) {
|
|
|
3041
3041
|
function As(e) {
|
|
3042
3042
|
return Co({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z" } }] })(e);
|
|
3043
3043
|
}
|
|
3044
|
-
const Ts = "
|
|
3044
|
+
const Ts = "cfxui__Select__content__067da", Os = "cfxui__Select__option__2de5d", _s = "cfxui__Select__trigger__232e4", Ns = "cfxui__Select__small__87505", Is = "cfxui__Select__large__22ee9", Ms = "cfxui__Select__fullWidth__739d7", Ls = "cfxui__Select__icon__36b6c", Ds = "cfxui__Select__app__e0114", ks = "cfxui__Select__arrow__8e7eb", Q = {
|
|
3045
3045
|
content: Ts,
|
|
3046
3046
|
option: Os,
|
|
3047
|
-
trigger:
|
|
3048
|
-
small:
|
|
3049
|
-
large:
|
|
3047
|
+
trigger: _s,
|
|
3048
|
+
small: Ns,
|
|
3049
|
+
large: Is,
|
|
3050
3050
|
fullWidth: Ms,
|
|
3051
3051
|
icon: Ls,
|
|
3052
3052
|
app: Ds,
|