@cfx-dev/ui-components 0.0.5 → 0.0.7
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/{Combination-AG9vHdSx.js → Combination-Dj-a6dCZ.js} +546 -562
- package/dist/components/Flyout/Flyout.js +1 -1
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +93 -109
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Select/Select.js +271 -280
- package/dist/extends-Dk_bSU3E.js +13 -0
- package/dist/inheritsLoose-A8WKSWDx.js +11 -0
- package/package.json +3 -13
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs as Ze, jsx as te } from "react/jsx-runtime";
|
|
2
|
+
import { _ as B } from "../../extends-Dk_bSU3E.js";
|
|
2
3
|
import * as C from "react";
|
|
3
|
-
import ne, { createContext as st, useMemo as Ne, createElement as S, useContext as Dt, useCallback as q, forwardRef as z, Children as Ke, isValidElement as at, cloneElement as wn, Fragment as It, useEffect as U, useRef as Y, useState as
|
|
4
|
+
import ne, { createContext as st, useMemo as Ne, createElement as S, useContext as Dt, useCallback as q, forwardRef as z, Children as Ke, isValidElement as at, cloneElement as wn, Fragment as It, useEffect as U, useRef as Y, useState as k, useLayoutEffect as $n } from "react";
|
|
4
5
|
import { r as pt, $ as oo } from "../../index-C75OpfGQ.js";
|
|
5
6
|
import { b as bn, _ as Se, c as ro } from "../../tslib.es6-Dd_EkEfR.js";
|
|
6
7
|
import { c as io, u as co } from "../../medium-Dc7QRuE0.js";
|
|
7
8
|
import { a as Ut, b as so, I as ao } from "../../Icons-B26SczGZ.js";
|
|
8
|
-
import { clsx as
|
|
9
|
-
import '../../assets/Select.css';var
|
|
9
|
+
import { clsx as xn } from "../../utils/clsx.js";
|
|
10
|
+
import '../../assets/Select.css';var yn = function(e) {
|
|
10
11
|
var t = e.sideCar, n = bn(e, ["sideCar"]);
|
|
11
12
|
if (!t)
|
|
12
13
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
@@ -15,19 +16,9 @@ import '../../assets/Select.css';var xn = function(e) {
|
|
|
15
16
|
throw new Error("Sidecar medium not found");
|
|
16
17
|
return C.createElement(o, Se({}, n));
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
yn.isSideCarExport = !0;
|
|
19
20
|
function lo(e, t) {
|
|
20
|
-
return e.useMedium(t),
|
|
21
|
-
}
|
|
22
|
-
function M() {
|
|
23
|
-
return M = Object.assign ? Object.assign.bind() : function(e) {
|
|
24
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
25
|
-
var n = arguments[t];
|
|
26
|
-
for (var o in n)
|
|
27
|
-
({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
28
|
-
}
|
|
29
|
-
return e;
|
|
30
|
-
}, M.apply(null, arguments);
|
|
21
|
+
return e.useMedium(t), yn;
|
|
31
22
|
}
|
|
32
23
|
function Kt(e, [t, n]) {
|
|
33
24
|
return Math.min(n, Math.max(t, e));
|
|
@@ -137,11 +128,11 @@ const Ye = /* @__PURE__ */ z((e, t) => {
|
|
|
137
128
|
const { children: n, ...o } = e, r = Ke.toArray(n), c = r.find(ho);
|
|
138
129
|
if (c) {
|
|
139
130
|
const s = c.props.children, i = r.map((a) => a === c ? Ke.count(s) > 1 ? Ke.only(null) : /* @__PURE__ */ at(s) ? s.props.children : null : a);
|
|
140
|
-
return /* @__PURE__ */ S(Pt,
|
|
131
|
+
return /* @__PURE__ */ S(Pt, B({}, o, {
|
|
141
132
|
ref: t
|
|
142
133
|
}), /* @__PURE__ */ at(s) ? /* @__PURE__ */ wn(s, void 0, i) : null);
|
|
143
134
|
}
|
|
144
|
-
return /* @__PURE__ */ S(Pt,
|
|
135
|
+
return /* @__PURE__ */ S(Pt, B({}, o, {
|
|
145
136
|
ref: t
|
|
146
137
|
}), n);
|
|
147
138
|
});
|
|
@@ -215,7 +206,7 @@ function vo(e) {
|
|
|
215
206
|
return [];
|
|
216
207
|
const m = Array.from(v.querySelectorAll(`[${f}]`));
|
|
217
208
|
return Array.from(h.itemMap.values()).sort(
|
|
218
|
-
(b,
|
|
209
|
+
(b, x) => m.indexOf(b.ref.current) - m.indexOf(x.ref.current)
|
|
219
210
|
);
|
|
220
211
|
}, [
|
|
221
212
|
h.collectionRef,
|
|
@@ -259,7 +250,7 @@ const $o = [
|
|
|
259
250
|
const { asChild: c, ...s } = o, i = c ? Ye : t;
|
|
260
251
|
return U(() => {
|
|
261
252
|
window[Symbol.for("radix-ui")] = !0;
|
|
262
|
-
}, []), /* @__PURE__ */ S(i,
|
|
253
|
+
}, []), /* @__PURE__ */ S(i, B({}, s, {
|
|
263
254
|
ref: r
|
|
264
255
|
}));
|
|
265
256
|
});
|
|
@@ -285,7 +276,7 @@ function he(e) {
|
|
|
285
276
|
[]
|
|
286
277
|
);
|
|
287
278
|
}
|
|
288
|
-
function
|
|
279
|
+
function xo(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
289
280
|
const n = he(e);
|
|
290
281
|
U(() => {
|
|
291
282
|
const o = (r) => {
|
|
@@ -297,7 +288,7 @@ function yo(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
297
288
|
t
|
|
298
289
|
]);
|
|
299
290
|
}
|
|
300
|
-
const Tt = "dismissableLayer.update",
|
|
291
|
+
const Tt = "dismissableLayer.update", yo = "dismissableLayer.pointerDownOutside", So = "dismissableLayer.focusOutside";
|
|
301
292
|
let Yt;
|
|
302
293
|
const Co = /* @__PURE__ */ st({
|
|
303
294
|
layers: /* @__PURE__ */ new Set(),
|
|
@@ -305,28 +296,28 @@ const Co = /* @__PURE__ */ st({
|
|
|
305
296
|
branches: /* @__PURE__ */ new Set()
|
|
306
297
|
}), Eo = /* @__PURE__ */ z((e, t) => {
|
|
307
298
|
var n;
|
|
308
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside: s, onInteractOutside: i, onDismiss: a, ...l } = e, f = Dt(Co), [u, w] =
|
|
299
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside: s, onInteractOutside: i, onDismiss: a, ...l } = e, f = Dt(Co), [u, w] = k(null), p = (n = u == null ? void 0 : u.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = k({}), d = G(
|
|
309
300
|
t,
|
|
310
|
-
(
|
|
301
|
+
(y) => w(y)
|
|
311
302
|
), v = Array.from(f.layers), [m] = [
|
|
312
303
|
...f.layersWithOutsidePointerEventsDisabled
|
|
313
|
-
].slice(-1), g = v.indexOf(m), $ = u ? v.indexOf(u) : -1, b = f.layersWithOutsidePointerEventsDisabled.size > 0,
|
|
314
|
-
const _ =
|
|
304
|
+
].slice(-1), g = v.indexOf(m), $ = u ? v.indexOf(u) : -1, b = f.layersWithOutsidePointerEventsDisabled.size > 0, x = $ >= g, T = Po((y) => {
|
|
305
|
+
const _ = y.target, V = [
|
|
315
306
|
...f.branches
|
|
316
307
|
].some(
|
|
317
308
|
(D) => D.contains(_)
|
|
318
309
|
);
|
|
319
|
-
!
|
|
320
|
-
}, p), E = To((
|
|
321
|
-
const _ =
|
|
310
|
+
!x || V || (c == null || c(y), i == null || i(y), y.defaultPrevented || a == null || a());
|
|
311
|
+
}, p), E = To((y) => {
|
|
312
|
+
const _ = y.target;
|
|
322
313
|
[
|
|
323
314
|
...f.branches
|
|
324
315
|
].some(
|
|
325
316
|
(D) => D.contains(_)
|
|
326
|
-
) || (s == null || s(
|
|
317
|
+
) || (s == null || s(y), i == null || i(y), y.defaultPrevented || a == null || a());
|
|
327
318
|
}, p);
|
|
328
|
-
return
|
|
329
|
-
$ === f.layers.size - 1 && (r == null || r(
|
|
319
|
+
return xo((y) => {
|
|
320
|
+
$ === f.layers.size - 1 && (r == null || r(y), !y.defaultPrevented && a && (y.preventDefault(), a()));
|
|
330
321
|
}, p), U(() => {
|
|
331
322
|
if (u)
|
|
332
323
|
return o && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (Yt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(u)), f.layers.add(u), Xt(), () => {
|
|
@@ -343,12 +334,12 @@ const Co = /* @__PURE__ */ st({
|
|
|
343
334
|
u,
|
|
344
335
|
f
|
|
345
336
|
]), U(() => {
|
|
346
|
-
const
|
|
347
|
-
return document.addEventListener(Tt,
|
|
348
|
-
}, []), /* @__PURE__ */ S(J.div,
|
|
337
|
+
const y = () => h({});
|
|
338
|
+
return document.addEventListener(Tt, y), () => document.removeEventListener(Tt, y);
|
|
339
|
+
}, []), /* @__PURE__ */ S(J.div, B({}, l, {
|
|
349
340
|
ref: d,
|
|
350
341
|
style: {
|
|
351
|
-
pointerEvents: b ?
|
|
342
|
+
pointerEvents: b ? x ? "auto" : "none" : void 0,
|
|
352
343
|
...e.style
|
|
353
344
|
},
|
|
354
345
|
onFocusCapture: K(e.onFocusCapture, E.onFocusCapture),
|
|
@@ -363,7 +354,7 @@ function Po(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
363
354
|
const c = (i) => {
|
|
364
355
|
if (i.target && !o.current) {
|
|
365
356
|
let l = function() {
|
|
366
|
-
Cn(
|
|
357
|
+
Cn(yo, n, a, {
|
|
367
358
|
discrete: !0
|
|
368
359
|
});
|
|
369
360
|
};
|
|
@@ -423,7 +414,7 @@ function Cn(e, t, n, { discrete: o }) {
|
|
|
423
414
|
}), o ? bo(r, c) : r.dispatchEvent(c);
|
|
424
415
|
}
|
|
425
416
|
let $t = 0;
|
|
426
|
-
function
|
|
417
|
+
function Ao() {
|
|
427
418
|
U(() => {
|
|
428
419
|
var e, t;
|
|
429
420
|
const n = document.querySelectorAll("[data-radix-focus-guard]");
|
|
@@ -438,11 +429,11 @@ function jt() {
|
|
|
438
429
|
const e = document.createElement("span");
|
|
439
430
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
440
431
|
}
|
|
441
|
-
const bt = "focusScope.autoFocusOnMount",
|
|
432
|
+
const bt = "focusScope.autoFocusOnMount", xt = "focusScope.autoFocusOnUnmount", qt = {
|
|
442
433
|
bubbles: !1,
|
|
443
434
|
cancelable: !0
|
|
444
|
-
},
|
|
445
|
-
const { loop: n = !1, trapped: o = !1, onMountAutoFocus: r, onUnmountAutoFocus: c, ...s } = e, [i, a] =
|
|
435
|
+
}, Oo = /* @__PURE__ */ z((e, t) => {
|
|
436
|
+
const { loop: n = !1, trapped: o = !1, onMountAutoFocus: r, onUnmountAutoFocus: c, ...s } = e, [i, a] = k(null), l = he(r), f = he(c), u = Y(null), w = G(
|
|
446
437
|
t,
|
|
447
438
|
(d) => a(d)
|
|
448
439
|
), p = Y({
|
|
@@ -472,8 +463,8 @@ const bt = "focusScope.autoFocusOnMount", yt = "focusScope.autoFocusOnUnmount",
|
|
|
472
463
|
}));
|
|
473
464
|
}, m = function($) {
|
|
474
465
|
const b = document.activeElement;
|
|
475
|
-
for (const
|
|
476
|
-
|
|
466
|
+
for (const x of $)
|
|
467
|
+
x.removedNodes.length > 0 && (i != null && i.contains(b) || $e(i));
|
|
477
468
|
};
|
|
478
469
|
document.addEventListener("focusin", d), document.addEventListener("focusout", v);
|
|
479
470
|
const g = new MutationObserver(m);
|
|
@@ -500,10 +491,10 @@ const bt = "focusScope.autoFocusOnMount", yt = "focusScope.autoFocusOnUnmount",
|
|
|
500
491
|
}
|
|
501
492
|
return () => {
|
|
502
493
|
i.removeEventListener(bt, l), setTimeout(() => {
|
|
503
|
-
const m = new CustomEvent(
|
|
504
|
-
i.addEventListener(
|
|
494
|
+
const m = new CustomEvent(xt, qt);
|
|
495
|
+
i.addEventListener(xt, f), i.dispatchEvent(m), m.defaultPrevented || $e(d ?? document.body, {
|
|
505
496
|
select: !0
|
|
506
|
-
}), i.removeEventListener(
|
|
497
|
+
}), i.removeEventListener(xt, f), Zt.remove(p);
|
|
507
498
|
}, 0);
|
|
508
499
|
};
|
|
509
500
|
}
|
|
@@ -530,7 +521,7 @@ const bt = "focusScope.autoFocusOnMount", yt = "focusScope.autoFocusOnUnmount",
|
|
|
530
521
|
o,
|
|
531
522
|
p.paused
|
|
532
523
|
]);
|
|
533
|
-
return /* @__PURE__ */ S(J.div,
|
|
524
|
+
return /* @__PURE__ */ S(J.div, B({
|
|
534
525
|
tabIndex: -1
|
|
535
526
|
}, s, {
|
|
536
527
|
ref: w,
|
|
@@ -644,7 +635,7 @@ const Fo = ["top", "right", "bottom", "left"], de = Math.min, oe = Math.max, lt
|
|
|
644
635
|
start: "end",
|
|
645
636
|
end: "start"
|
|
646
637
|
};
|
|
647
|
-
function
|
|
638
|
+
function At(e, t, n) {
|
|
648
639
|
return oe(e, de(t, n));
|
|
649
640
|
}
|
|
650
641
|
function me(e, t) {
|
|
@@ -676,9 +667,9 @@ function Ho(e, t, n) {
|
|
|
676
667
|
}
|
|
677
668
|
function Vo(e) {
|
|
678
669
|
const t = dt(e);
|
|
679
|
-
return [
|
|
670
|
+
return [Ot(e), t, Ot(t)];
|
|
680
671
|
}
|
|
681
|
-
function
|
|
672
|
+
function Ot(e) {
|
|
682
673
|
return e.replace(/start|end/g, (t) => Wo[t]);
|
|
683
674
|
}
|
|
684
675
|
function zo(e, t, n) {
|
|
@@ -697,7 +688,7 @@ function zo(e, t, n) {
|
|
|
697
688
|
function Uo(e, t, n, o) {
|
|
698
689
|
const r = ke(e);
|
|
699
690
|
let c = zo(ve(e), n === "start", o);
|
|
700
|
-
return r && (c = c.map((s) => s + "-" + r), t && (c = c.concat(c.map(
|
|
691
|
+
return r && (c = c.map((s) => s + "-" + r), t && (c = c.concat(c.map(Ot)))), c;
|
|
701
692
|
}
|
|
702
693
|
function dt(e) {
|
|
703
694
|
return e.replace(/left|right|bottom|top/g, (t) => Bo[t]);
|
|
@@ -808,7 +799,7 @@ const Yo = async (e, t, n) => {
|
|
|
808
799
|
x: g,
|
|
809
800
|
y: $,
|
|
810
801
|
data: b,
|
|
811
|
-
reset:
|
|
802
|
+
reset: x
|
|
812
803
|
} = await m({
|
|
813
804
|
x: f,
|
|
814
805
|
y: u,
|
|
@@ -829,11 +820,11 @@ const Yo = async (e, t, n) => {
|
|
|
829
820
|
...p[v],
|
|
830
821
|
...b
|
|
831
822
|
}
|
|
832
|
-
},
|
|
823
|
+
}, x && h <= 50 && (h++, typeof x == "object" && (x.placement && (w = x.placement), x.rects && (l = x.rects === !0 ? await s.getElementRects({
|
|
833
824
|
reference: e,
|
|
834
825
|
floating: t,
|
|
835
826
|
strategy: r
|
|
836
|
-
}) :
|
|
827
|
+
}) : x.rects), {
|
|
837
828
|
x: f,
|
|
838
829
|
y: u
|
|
839
830
|
} = Jt(l, w, a)), d = -1);
|
|
@@ -878,17 +869,17 @@ async function Xe(e, t) {
|
|
|
878
869
|
} : {
|
|
879
870
|
x: 1,
|
|
880
871
|
y: 1
|
|
881
|
-
},
|
|
872
|
+
}, x = ut(c.convertOffsetParentRelativeRectToViewportRelativeRect ? await c.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
882
873
|
elements: i,
|
|
883
874
|
rect: g,
|
|
884
875
|
offsetParent: $,
|
|
885
876
|
strategy: a
|
|
886
877
|
}) : g);
|
|
887
878
|
return {
|
|
888
|
-
top: (m.top -
|
|
889
|
-
bottom: (
|
|
890
|
-
left: (m.left -
|
|
891
|
-
right: (
|
|
879
|
+
top: (m.top - x.top + h.top) / b.y,
|
|
880
|
+
bottom: (x.bottom - m.bottom + h.bottom) / b.y,
|
|
881
|
+
left: (m.left - x.left + h.left) / b.x,
|
|
882
|
+
right: (x.right - m.right + h.right) / b.x
|
|
892
883
|
};
|
|
893
884
|
}
|
|
894
885
|
const Xo = (e) => ({
|
|
@@ -912,20 +903,20 @@ const Xo = (e) => ({
|
|
|
912
903
|
const u = Tn(f), w = {
|
|
913
904
|
x: n,
|
|
914
905
|
y: o
|
|
915
|
-
}, p = kt(r), h = Mt(p), d = await s.getDimensions(l), v = p === "y", m = v ? "top" : "left", g = v ? "bottom" : "right", $ = v ? "clientHeight" : "clientWidth", b = c.reference[h] + c.reference[p] - w[p] - c.floating[h],
|
|
906
|
+
}, p = kt(r), h = Mt(p), d = await s.getDimensions(l), v = p === "y", m = v ? "top" : "left", g = v ? "bottom" : "right", $ = v ? "clientHeight" : "clientWidth", b = c.reference[h] + c.reference[p] - w[p] - c.floating[h], x = w[p] - c.reference[p], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
916
907
|
let E = T ? T[$] : 0;
|
|
917
908
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(T))) && (E = i.floating[$] || c.floating[h]);
|
|
918
|
-
const
|
|
909
|
+
const y = b / 2 - x / 2, _ = E / 2 - d[h] / 2 - 1, V = de(u[m], _), D = de(u[g], _), R = V, W = E - d[h] - D, M = E / 2 - d[h] / 2 + y, A = At(R, M, W), F = !a.arrow && ke(r) != null && M !== A && c.reference[h] / 2 - (M < R ? V : D) - d[h] / 2 < 0, O = F ? M < R ? M - R : M - W : 0;
|
|
919
910
|
return {
|
|
920
|
-
[p]: w[p] +
|
|
911
|
+
[p]: w[p] + O,
|
|
921
912
|
data: {
|
|
922
|
-
[p]:
|
|
923
|
-
centerOffset:
|
|
924
|
-
...
|
|
925
|
-
alignmentOffset:
|
|
913
|
+
[p]: A,
|
|
914
|
+
centerOffset: M - A - O,
|
|
915
|
+
...F && {
|
|
916
|
+
alignmentOffset: O
|
|
926
917
|
}
|
|
927
918
|
},
|
|
928
|
-
reset:
|
|
919
|
+
reset: F
|
|
929
920
|
};
|
|
930
921
|
}
|
|
931
922
|
}), jo = function(e) {
|
|
@@ -954,45 +945,45 @@ const Xo = (e) => ({
|
|
|
954
945
|
return {};
|
|
955
946
|
const m = ve(r), g = ve(i) === i, $ = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), b = w || (g || !d ? [dt(i)] : Vo(i));
|
|
956
947
|
!w && h !== "none" && b.push(...Uo(i, d, h, $));
|
|
957
|
-
const
|
|
958
|
-
let
|
|
948
|
+
const x = [i, ...b], T = await Xe(t, v), E = [];
|
|
949
|
+
let y = ((o = c.flip) == null ? void 0 : o.overflows) || [];
|
|
959
950
|
if (f && E.push(T[m]), u) {
|
|
960
951
|
const R = Ho(r, s, $);
|
|
961
952
|
E.push(T[R[0]], T[R[1]]);
|
|
962
953
|
}
|
|
963
|
-
if (
|
|
954
|
+
if (y = [...y, {
|
|
964
955
|
placement: r,
|
|
965
956
|
overflows: E
|
|
966
957
|
}], !E.every((R) => R <= 0)) {
|
|
967
958
|
var _, V;
|
|
968
|
-
const R = (((_ = c.flip) == null ? void 0 : _.index) || 0) + 1, W =
|
|
959
|
+
const R = (((_ = c.flip) == null ? void 0 : _.index) || 0) + 1, W = x[R];
|
|
969
960
|
if (W)
|
|
970
961
|
return {
|
|
971
962
|
data: {
|
|
972
963
|
index: R,
|
|
973
|
-
overflows:
|
|
964
|
+
overflows: y
|
|
974
965
|
},
|
|
975
966
|
reset: {
|
|
976
967
|
placement: W
|
|
977
968
|
}
|
|
978
969
|
};
|
|
979
|
-
let
|
|
980
|
-
if (!
|
|
970
|
+
let M = (V = y.filter((A) => A.overflows[0] <= 0).sort((A, F) => A.overflows[1] - F.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
971
|
+
if (!M)
|
|
981
972
|
switch (p) {
|
|
982
973
|
case "bestFit": {
|
|
983
974
|
var D;
|
|
984
|
-
const
|
|
985
|
-
|
|
975
|
+
const A = (D = y.map((F) => [F.placement, F.overflows.filter((O) => O > 0).reduce((O, j) => O + j, 0)]).sort((F, O) => F[1] - O[1])[0]) == null ? void 0 : D[0];
|
|
976
|
+
A && (M = A);
|
|
986
977
|
break;
|
|
987
978
|
}
|
|
988
979
|
case "initialPlacement":
|
|
989
|
-
|
|
980
|
+
M = i;
|
|
990
981
|
break;
|
|
991
982
|
}
|
|
992
|
-
if (r !==
|
|
983
|
+
if (r !== M)
|
|
993
984
|
return {
|
|
994
985
|
reset: {
|
|
995
|
-
placement:
|
|
986
|
+
placement: M
|
|
996
987
|
}
|
|
997
988
|
};
|
|
998
989
|
}
|
|
@@ -1135,11 +1126,11 @@ const Zo = function(e) {
|
|
|
1135
1126
|
let p = l[w], h = l[u];
|
|
1136
1127
|
if (c) {
|
|
1137
1128
|
const v = w === "y" ? "top" : "left", m = w === "y" ? "bottom" : "right", g = p + f[v], $ = p - f[m];
|
|
1138
|
-
p =
|
|
1129
|
+
p = At(g, p, $);
|
|
1139
1130
|
}
|
|
1140
1131
|
if (s) {
|
|
1141
1132
|
const v = u === "y" ? "top" : "left", m = u === "y" ? "bottom" : "right", g = h + f[v], $ = h - f[m];
|
|
1142
|
-
h =
|
|
1133
|
+
h = At(g, h, $);
|
|
1143
1134
|
}
|
|
1144
1135
|
const d = i.fn({
|
|
1145
1136
|
...t,
|
|
@@ -1183,13 +1174,13 @@ const Zo = function(e) {
|
|
|
1183
1174
|
...d
|
|
1184
1175
|
};
|
|
1185
1176
|
if (a) {
|
|
1186
|
-
const $ = w === "y" ? "height" : "width", b = c.reference[w] - c.floating[$] + v.mainAxis,
|
|
1187
|
-
p < b ? p = b : p >
|
|
1177
|
+
const $ = w === "y" ? "height" : "width", b = c.reference[w] - c.floating[$] + v.mainAxis, x = c.reference[w] + c.reference[$] - v.mainAxis;
|
|
1178
|
+
p < b ? p = b : p > x && (p = x);
|
|
1188
1179
|
}
|
|
1189
1180
|
if (l) {
|
|
1190
1181
|
var m, g;
|
|
1191
|
-
const $ = w === "y" ? "width" : "height", b = ["top", "left"].includes(ve(r)),
|
|
1192
|
-
h <
|
|
1182
|
+
const $ = w === "y" ? "width" : "height", b = ["top", "left"].includes(ve(r)), x = c.reference[u] - c.floating[$] + (b && ((m = s.offset) == null ? void 0 : m[u]) || 0) + (b ? 0 : v.crossAxis), T = c.reference[u] + c.reference[$] + (b ? 0 : ((g = s.offset) == null ? void 0 : g[u]) || 0) - (b ? v.crossAxis : 0);
|
|
1183
|
+
h < x ? h = x : h > T && (h = T);
|
|
1193
1184
|
}
|
|
1194
1185
|
return {
|
|
1195
1186
|
[w]: p,
|
|
@@ -1218,15 +1209,15 @@ const Zo = function(e) {
|
|
|
1218
1209
|
let h, d;
|
|
1219
1210
|
l === "top" || l === "bottom" ? (h = l, d = f === (await (r.isRTL == null ? void 0 : r.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (d = l, h = f === "end" ? "top" : "bottom");
|
|
1220
1211
|
const v = p - a.top - a.bottom, m = w - a.left - a.right, g = de(p - a[h], v), $ = de(w - a[d], m), b = !t.middlewareData.shift;
|
|
1221
|
-
let
|
|
1222
|
-
if (u ? T = f || b ? de($, m) : m :
|
|
1223
|
-
const
|
|
1224
|
-
u ? T = w - 2 * (
|
|
1212
|
+
let x = g, T = $;
|
|
1213
|
+
if (u ? T = f || b ? de($, m) : m : x = f || b ? de(g, v) : v, b && !f) {
|
|
1214
|
+
const y = oe(a.left, 0), _ = oe(a.right, 0), V = oe(a.top, 0), D = oe(a.bottom, 0);
|
|
1215
|
+
u ? T = w - 2 * (y !== 0 || _ !== 0 ? y + _ : oe(a.left, a.right)) : x = p - 2 * (V !== 0 || D !== 0 ? V + D : oe(a.top, a.bottom));
|
|
1225
1216
|
}
|
|
1226
1217
|
await s({
|
|
1227
1218
|
...t,
|
|
1228
1219
|
availableWidth: T,
|
|
1229
|
-
availableHeight:
|
|
1220
|
+
availableHeight: x
|
|
1230
1221
|
});
|
|
1231
1222
|
const E = await r.getDimensions(c.floating);
|
|
1232
1223
|
return w !== E.width || p !== E.height ? {
|
|
@@ -1238,7 +1229,7 @@ const Zo = function(e) {
|
|
|
1238
1229
|
};
|
|
1239
1230
|
};
|
|
1240
1231
|
function Be(e) {
|
|
1241
|
-
return
|
|
1232
|
+
return An(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1242
1233
|
}
|
|
1243
1234
|
function re(e) {
|
|
1244
1235
|
var t;
|
|
@@ -1246,9 +1237,9 @@ function re(e) {
|
|
|
1246
1237
|
}
|
|
1247
1238
|
function ge(e) {
|
|
1248
1239
|
var t;
|
|
1249
|
-
return (t = (
|
|
1240
|
+
return (t = (An(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1250
1241
|
}
|
|
1251
|
-
function
|
|
1242
|
+
function An(e) {
|
|
1252
1243
|
return e instanceof Node || e instanceof re(e).Node;
|
|
1253
1244
|
}
|
|
1254
1245
|
function ue(e) {
|
|
@@ -1277,11 +1268,11 @@ function Ft(e) {
|
|
|
1277
1268
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
1278
1269
|
}
|
|
1279
1270
|
function nr(e) {
|
|
1280
|
-
let t =
|
|
1271
|
+
let t = xe(e);
|
|
1281
1272
|
for (; fe(t) && !Le(t); ) {
|
|
1282
1273
|
if (Ft(t))
|
|
1283
1274
|
return t;
|
|
1284
|
-
t =
|
|
1275
|
+
t = xe(t);
|
|
1285
1276
|
}
|
|
1286
1277
|
return null;
|
|
1287
1278
|
}
|
|
@@ -1303,7 +1294,7 @@ function ht(e) {
|
|
|
1303
1294
|
scrollTop: e.pageYOffset
|
|
1304
1295
|
};
|
|
1305
1296
|
}
|
|
1306
|
-
function
|
|
1297
|
+
function xe(e) {
|
|
1307
1298
|
if (Be(e) === "html")
|
|
1308
1299
|
return e;
|
|
1309
1300
|
const t = (
|
|
@@ -1315,14 +1306,14 @@ function ye(e) {
|
|
|
1315
1306
|
);
|
|
1316
1307
|
return nn(t) ? t.host : t;
|
|
1317
1308
|
}
|
|
1318
|
-
function
|
|
1319
|
-
const t =
|
|
1320
|
-
return Le(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : fe(t) && qe(t) ? t :
|
|
1309
|
+
function On(e) {
|
|
1310
|
+
const t = xe(e);
|
|
1311
|
+
return Le(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : fe(t) && qe(t) ? t : On(t);
|
|
1321
1312
|
}
|
|
1322
1313
|
function je(e, t, n) {
|
|
1323
1314
|
var o;
|
|
1324
1315
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1325
|
-
const r =
|
|
1316
|
+
const r = On(e), c = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = re(r);
|
|
1326
1317
|
return c ? t.concat(s, s.visualViewport || [], qe(r) ? r : [], s.frameElement && n ? je(s.frameElement) : []) : t.concat(r, je(r, [], n));
|
|
1327
1318
|
}
|
|
1328
1319
|
function Rn(e) {
|
|
@@ -1482,7 +1473,7 @@ function on(e, t, n) {
|
|
|
1482
1473
|
return ut(o);
|
|
1483
1474
|
}
|
|
1484
1475
|
function In(e, t) {
|
|
1485
|
-
const n =
|
|
1476
|
+
const n = xe(e);
|
|
1486
1477
|
return n === t || !ue(n) || Le(n) ? !1 : le(n).position === "fixed" || In(n, t);
|
|
1487
1478
|
}
|
|
1488
1479
|
function ur(e, t) {
|
|
@@ -1491,10 +1482,10 @@ function ur(e, t) {
|
|
|
1491
1482
|
return n;
|
|
1492
1483
|
let o = je(e, [], !1).filter((i) => ue(i) && Be(i) !== "body"), r = null;
|
|
1493
1484
|
const c = le(e).position === "fixed";
|
|
1494
|
-
let s = c ?
|
|
1485
|
+
let s = c ? xe(e) : e;
|
|
1495
1486
|
for (; ue(s) && !Le(s); ) {
|
|
1496
1487
|
const i = le(s), a = Ft(s);
|
|
1497
|
-
!a && i.position === "fixed" && (r = null), (c ? !a && !r : !a && i.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || qe(s) && !a && In(e, s)) ? o = o.filter((f) => f !== s) : r = i, s =
|
|
1488
|
+
!a && i.position === "fixed" && (r = null), (c ? !a && !r : !a && i.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || qe(s) && !a && In(e, s)) ? o = o.filter((f) => f !== s) : r = i, s = xe(s);
|
|
1498
1489
|
}
|
|
1499
1490
|
return t.set(e, o), o;
|
|
1500
1491
|
}
|
|
@@ -1547,7 +1538,7 @@ function hr(e, t, n) {
|
|
|
1547
1538
|
height: s.height
|
|
1548
1539
|
};
|
|
1549
1540
|
}
|
|
1550
|
-
function
|
|
1541
|
+
function yt(e) {
|
|
1551
1542
|
return le(e).position === "static";
|
|
1552
1543
|
}
|
|
1553
1544
|
function rn(e, t) {
|
|
@@ -1558,18 +1549,18 @@ function Nn(e, t) {
|
|
|
1558
1549
|
if (Ht(e))
|
|
1559
1550
|
return n;
|
|
1560
1551
|
if (!fe(e)) {
|
|
1561
|
-
let r =
|
|
1552
|
+
let r = xe(e);
|
|
1562
1553
|
for (; r && !Le(r); ) {
|
|
1563
|
-
if (ue(r) && !
|
|
1554
|
+
if (ue(r) && !yt(r))
|
|
1564
1555
|
return r;
|
|
1565
|
-
r =
|
|
1556
|
+
r = xe(r);
|
|
1566
1557
|
}
|
|
1567
1558
|
return n;
|
|
1568
1559
|
}
|
|
1569
1560
|
let o = rn(e, t);
|
|
1570
|
-
for (; o && tr(o) &&
|
|
1561
|
+
for (; o && tr(o) && yt(o); )
|
|
1571
1562
|
o = rn(o, t);
|
|
1572
|
-
return o && Le(o) &&
|
|
1563
|
+
return o && Le(o) && yt(o) && !Ft(o) ? n : o || nr(e) || n;
|
|
1573
1564
|
}
|
|
1574
1565
|
const mr = async function(e) {
|
|
1575
1566
|
const t = this.getOffsetParent || Nn, n = this.getDimensions, o = await n(e.floating);
|
|
@@ -1620,8 +1611,8 @@ function wr(e, t) {
|
|
|
1620
1611
|
threshold: oe(0, de(1, a)) || 1
|
|
1621
1612
|
};
|
|
1622
1613
|
let $ = !0;
|
|
1623
|
-
function b(
|
|
1624
|
-
const T =
|
|
1614
|
+
function b(x) {
|
|
1615
|
+
const T = x[0].intersectionRatio;
|
|
1625
1616
|
if (T !== a) {
|
|
1626
1617
|
if (!$)
|
|
1627
1618
|
return s();
|
|
@@ -1680,7 +1671,7 @@ function $r(e, t, n, o) {
|
|
|
1680
1671
|
}), u == null || u(), (m = p) == null || m.disconnect(), p = null, a && cancelAnimationFrame(h);
|
|
1681
1672
|
};
|
|
1682
1673
|
}
|
|
1683
|
-
const br = Zo,
|
|
1674
|
+
const br = Zo, xr = Qo, yr = jo, Sr = er, Cr = qo, cn = Xo, Er = Jo, Pr = (e, t, n) => {
|
|
1684
1675
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1685
1676
|
platform: gr,
|
|
1686
1677
|
...n
|
|
@@ -1761,31 +1752,31 @@ function Tr(e) {
|
|
|
1761
1752
|
isPositioned: !1
|
|
1762
1753
|
}), [w, p] = C.useState(o);
|
|
1763
1754
|
ft(w, o) || p(o);
|
|
1764
|
-
const [h, d] = C.useState(null), [v, m] = C.useState(null), g = C.useCallback((
|
|
1765
|
-
|
|
1766
|
-
}, []), $ = C.useCallback((
|
|
1767
|
-
|
|
1768
|
-
}, []), b = c || h,
|
|
1755
|
+
const [h, d] = C.useState(null), [v, m] = C.useState(null), g = C.useCallback((O) => {
|
|
1756
|
+
O !== T.current && (T.current = O, d(O));
|
|
1757
|
+
}, []), $ = C.useCallback((O) => {
|
|
1758
|
+
O !== E.current && (E.current = O, m(O));
|
|
1759
|
+
}, []), b = c || h, x = s || v, T = C.useRef(null), E = C.useRef(null), y = C.useRef(f), _ = a != null, V = an(a), D = an(r), R = C.useCallback(() => {
|
|
1769
1760
|
if (!T.current || !E.current)
|
|
1770
1761
|
return;
|
|
1771
|
-
const
|
|
1762
|
+
const O = {
|
|
1772
1763
|
placement: t,
|
|
1773
1764
|
strategy: n,
|
|
1774
1765
|
middleware: w
|
|
1775
1766
|
};
|
|
1776
|
-
D.current && (
|
|
1767
|
+
D.current && (O.platform = D.current), Pr(T.current, E.current, O).then((j) => {
|
|
1777
1768
|
const X = {
|
|
1778
1769
|
...j,
|
|
1779
1770
|
isPositioned: !0
|
|
1780
1771
|
};
|
|
1781
|
-
W.current && !ft(
|
|
1772
|
+
W.current && !ft(y.current, X) && (y.current = X, pt.flushSync(() => {
|
|
1782
1773
|
u(X);
|
|
1783
1774
|
}));
|
|
1784
1775
|
});
|
|
1785
1776
|
}, [w, t, n, D]);
|
|
1786
1777
|
rt(() => {
|
|
1787
|
-
l === !1 &&
|
|
1788
|
-
...
|
|
1778
|
+
l === !1 && y.current.isPositioned && (y.current.isPositioned = !1, u((O) => ({
|
|
1779
|
+
...O,
|
|
1789
1780
|
isPositioned: !1
|
|
1790
1781
|
})));
|
|
1791
1782
|
}, [l]);
|
|
@@ -1793,33 +1784,33 @@ function Tr(e) {
|
|
|
1793
1784
|
rt(() => (W.current = !0, () => {
|
|
1794
1785
|
W.current = !1;
|
|
1795
1786
|
}), []), rt(() => {
|
|
1796
|
-
if (b && (T.current = b),
|
|
1787
|
+
if (b && (T.current = b), x && (E.current = x), b && x) {
|
|
1797
1788
|
if (V.current)
|
|
1798
|
-
return V.current(b,
|
|
1789
|
+
return V.current(b, x, R);
|
|
1799
1790
|
R();
|
|
1800
1791
|
}
|
|
1801
|
-
}, [b,
|
|
1802
|
-
const
|
|
1792
|
+
}, [b, x, R, V, _]);
|
|
1793
|
+
const M = C.useMemo(() => ({
|
|
1803
1794
|
reference: T,
|
|
1804
1795
|
floating: E,
|
|
1805
1796
|
setReference: g,
|
|
1806
1797
|
setFloating: $
|
|
1807
|
-
}), [g, $]),
|
|
1798
|
+
}), [g, $]), A = C.useMemo(() => ({
|
|
1808
1799
|
reference: b,
|
|
1809
|
-
floating:
|
|
1810
|
-
}), [b,
|
|
1811
|
-
const
|
|
1800
|
+
floating: x
|
|
1801
|
+
}), [b, x]), F = C.useMemo(() => {
|
|
1802
|
+
const O = {
|
|
1812
1803
|
position: n,
|
|
1813
1804
|
left: 0,
|
|
1814
1805
|
top: 0
|
|
1815
1806
|
};
|
|
1816
|
-
if (!
|
|
1817
|
-
return
|
|
1818
|
-
const j = sn(
|
|
1807
|
+
if (!A.floating)
|
|
1808
|
+
return O;
|
|
1809
|
+
const j = sn(A.floating, f.x), X = sn(A.floating, f.y);
|
|
1819
1810
|
return i ? {
|
|
1820
|
-
...
|
|
1811
|
+
...O,
|
|
1821
1812
|
transform: "translate(" + j + "px, " + X + "px)",
|
|
1822
|
-
...Ln(
|
|
1813
|
+
...Ln(A.floating) >= 1.5 && {
|
|
1823
1814
|
willChange: "transform"
|
|
1824
1815
|
}
|
|
1825
1816
|
} : {
|
|
@@ -1827,16 +1818,16 @@ function Tr(e) {
|
|
|
1827
1818
|
left: j,
|
|
1828
1819
|
top: X
|
|
1829
1820
|
};
|
|
1830
|
-
}, [n, i,
|
|
1821
|
+
}, [n, i, A.floating, f.x, f.y]);
|
|
1831
1822
|
return C.useMemo(() => ({
|
|
1832
1823
|
...f,
|
|
1833
1824
|
update: R,
|
|
1834
|
-
refs:
|
|
1835
|
-
elements:
|
|
1836
|
-
floatingStyles:
|
|
1837
|
-
}), [f, R,
|
|
1825
|
+
refs: M,
|
|
1826
|
+
elements: A,
|
|
1827
|
+
floatingStyles: F
|
|
1828
|
+
}), [f, R, M, A, F]);
|
|
1838
1829
|
}
|
|
1839
|
-
const
|
|
1830
|
+
const Ar = (e) => {
|
|
1840
1831
|
function t(n) {
|
|
1841
1832
|
return {}.hasOwnProperty.call(n, "current");
|
|
1842
1833
|
}
|
|
@@ -1857,17 +1848,17 @@ const Or = (e) => {
|
|
|
1857
1848
|
}).fn(n) : {};
|
|
1858
1849
|
}
|
|
1859
1850
|
};
|
|
1860
|
-
},
|
|
1851
|
+
}, Or = (e, t) => ({
|
|
1861
1852
|
...br(e),
|
|
1862
1853
|
options: [e, t]
|
|
1863
1854
|
}), Rr = (e, t) => ({
|
|
1864
|
-
...
|
|
1855
|
+
...xr(e),
|
|
1865
1856
|
options: [e, t]
|
|
1866
1857
|
}), _r = (e, t) => ({
|
|
1867
1858
|
...Er(e),
|
|
1868
1859
|
options: [e, t]
|
|
1869
1860
|
}), Dr = (e, t) => ({
|
|
1870
|
-
...
|
|
1861
|
+
...yr(e),
|
|
1871
1862
|
options: [e, t]
|
|
1872
1863
|
}), Ir = (e, t) => ({
|
|
1873
1864
|
...Sr(e),
|
|
@@ -1876,11 +1867,11 @@ const Or = (e) => {
|
|
|
1876
1867
|
...Cr(e),
|
|
1877
1868
|
options: [e, t]
|
|
1878
1869
|
}), Lr = (e, t) => ({
|
|
1879
|
-
...
|
|
1870
|
+
...Ar(e),
|
|
1880
1871
|
options: [e, t]
|
|
1881
1872
|
});
|
|
1882
1873
|
function Mr(e) {
|
|
1883
|
-
const [t, n] =
|
|
1874
|
+
const [t, n] = k(void 0);
|
|
1884
1875
|
return ie(() => {
|
|
1885
1876
|
if (e) {
|
|
1886
1877
|
n({
|
|
@@ -1912,7 +1903,7 @@ function Mr(e) {
|
|
|
1912
1903
|
]), t;
|
|
1913
1904
|
}
|
|
1914
1905
|
const Mn = "Popper", [kn, Fn] = Nt(Mn), [kr, Bn] = kn(Mn), Fr = (e) => {
|
|
1915
|
-
const { __scopePopper: t, children: n } = e, [o, r] =
|
|
1906
|
+
const { __scopePopper: t, children: n } = e, [o, r] = k(null);
|
|
1916
1907
|
return /* @__PURE__ */ S(kr, {
|
|
1917
1908
|
scope: t,
|
|
1918
1909
|
anchor: o,
|
|
@@ -1922,15 +1913,15 @@ const Mn = "Popper", [kn, Fn] = Nt(Mn), [kr, Bn] = kn(Mn), Fr = (e) => {
|
|
|
1922
1913
|
const { __scopePopper: n, virtualRef: o, ...r } = e, c = Bn(Br, n), s = Y(null), i = G(t, s);
|
|
1923
1914
|
return U(() => {
|
|
1924
1915
|
c.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
1925
|
-
}), o ? null : /* @__PURE__ */ S(J.div,
|
|
1916
|
+
}), o ? null : /* @__PURE__ */ S(J.div, B({}, r, {
|
|
1926
1917
|
ref: i
|
|
1927
1918
|
}));
|
|
1928
|
-
}), Wn = "PopperContent", [Hr,
|
|
1919
|
+
}), Wn = "PopperContent", [Hr, Rc] = kn(Wn), Vr = /* @__PURE__ */ z((e, t) => {
|
|
1929
1920
|
var n, o, r, c, s, i, a, l;
|
|
1930
|
-
const { __scopePopper: f, side: u = "bottom", sideOffset: w = 0, align: p = "center", alignOffset: h = 0, arrowPadding: d = 0, collisionBoundary: v = [], collisionPadding: m = 0, sticky: g = "partial", hideWhenDetached: $ = !1, avoidCollisions: b = !0, onPlaced:
|
|
1921
|
+
const { __scopePopper: f, side: u = "bottom", sideOffset: w = 0, align: p = "center", alignOffset: h = 0, arrowPadding: d = 0, collisionBoundary: v = [], collisionPadding: m = 0, sticky: g = "partial", hideWhenDetached: $ = !1, avoidCollisions: b = !0, onPlaced: x, ...T } = e, E = Bn(Wn, f), [y, _] = k(null), V = G(
|
|
1931
1922
|
t,
|
|
1932
1923
|
(Q) => _(Q)
|
|
1933
|
-
), [D, R] =
|
|
1924
|
+
), [D, R] = k(null), W = Mr(D), M = (n = W == null ? void 0 : W.width) !== null && n !== void 0 ? n : 0, A = (o = W == null ? void 0 : W.height) !== null && o !== void 0 ? o : 0, F = u + (p !== "center" ? "-" + p : ""), O = typeof m == "number" ? m : {
|
|
1934
1925
|
top: 0,
|
|
1935
1926
|
right: 0,
|
|
1936
1927
|
bottom: 0,
|
|
@@ -1938,35 +1929,35 @@ const Mn = "Popper", [kn, Fn] = Nt(Mn), [kr, Bn] = kn(Mn), Fr = (e) => {
|
|
|
1938
1929
|
...m
|
|
1939
1930
|
}, j = Array.isArray(v) ? v : [
|
|
1940
1931
|
v
|
|
1941
|
-
], X = j.length > 0,
|
|
1942
|
-
padding:
|
|
1932
|
+
], X = j.length > 0, ye = {
|
|
1933
|
+
padding: O,
|
|
1943
1934
|
boundary: j.filter(zr),
|
|
1944
1935
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1945
1936
|
altBoundary: X
|
|
1946
|
-
}, { refs: Te, floatingStyles:
|
|
1937
|
+
}, { refs: Te, floatingStyles: Ae, placement: He, isPositioned: ce, middlewareData: se } = Tr({
|
|
1947
1938
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1948
1939
|
strategy: "fixed",
|
|
1949
|
-
placement:
|
|
1940
|
+
placement: F,
|
|
1950
1941
|
whileElementsMounted: $r,
|
|
1951
1942
|
elements: {
|
|
1952
1943
|
reference: E.anchor
|
|
1953
1944
|
},
|
|
1954
1945
|
middleware: [
|
|
1955
|
-
|
|
1956
|
-
mainAxis: w +
|
|
1946
|
+
Or({
|
|
1947
|
+
mainAxis: w + A,
|
|
1957
1948
|
alignmentAxis: h
|
|
1958
1949
|
}),
|
|
1959
1950
|
b && Rr({
|
|
1960
1951
|
mainAxis: !0,
|
|
1961
1952
|
crossAxis: !1,
|
|
1962
1953
|
limiter: g === "partial" ? _r() : void 0,
|
|
1963
|
-
...
|
|
1954
|
+
...ye
|
|
1964
1955
|
}),
|
|
1965
1956
|
b && Dr({
|
|
1966
|
-
...
|
|
1957
|
+
...ye
|
|
1967
1958
|
}),
|
|
1968
1959
|
Ir({
|
|
1969
|
-
...
|
|
1960
|
+
...ye,
|
|
1970
1961
|
apply: ({ elements: Q, rects: Ve, availableWidth: ze, availableHeight: Ue }) => {
|
|
1971
1962
|
const { width: to, height: no } = Ve.reference, Ge = Q.floating.style;
|
|
1972
1963
|
Ge.setProperty("--radix-popper-available-width", `${ze}px`), Ge.setProperty("--radix-popper-available-height", `${Ue}px`), Ge.setProperty("--radix-popper-anchor-width", `${to}px`), Ge.setProperty("--radix-popper-anchor-height", `${no}px`);
|
|
@@ -1977,31 +1968,31 @@ const Mn = "Popper", [kn, Fn] = Nt(Mn), [kr, Bn] = kn(Mn), Fr = (e) => {
|
|
|
1977
1968
|
padding: d
|
|
1978
1969
|
}),
|
|
1979
1970
|
Ur({
|
|
1980
|
-
arrowWidth:
|
|
1981
|
-
arrowHeight:
|
|
1971
|
+
arrowWidth: M,
|
|
1972
|
+
arrowHeight: A
|
|
1982
1973
|
}),
|
|
1983
1974
|
$ && Nr({
|
|
1984
1975
|
strategy: "referenceHidden"
|
|
1985
1976
|
})
|
|
1986
1977
|
]
|
|
1987
|
-
}), [we, P] = Hn(He), I = he(
|
|
1978
|
+
}), [we, P] = Hn(He), I = he(x);
|
|
1988
1979
|
ie(() => {
|
|
1989
1980
|
ce && (I == null || I());
|
|
1990
1981
|
}, [
|
|
1991
1982
|
ce,
|
|
1992
1983
|
I
|
|
1993
1984
|
]);
|
|
1994
|
-
const Z = (r = se.arrow) === null || r === void 0 ? void 0 : r.x, H = (c = se.arrow) === null || c === void 0 ? void 0 : c.y, N = ((s = se.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [L, ee] =
|
|
1985
|
+
const Z = (r = se.arrow) === null || r === void 0 ? void 0 : r.x, H = (c = se.arrow) === null || c === void 0 ? void 0 : c.y, N = ((s = se.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [L, ee] = k();
|
|
1995
1986
|
return ie(() => {
|
|
1996
|
-
|
|
1987
|
+
y && ee(window.getComputedStyle(y).zIndex);
|
|
1997
1988
|
}, [
|
|
1998
|
-
|
|
1989
|
+
y
|
|
1999
1990
|
]), /* @__PURE__ */ S("div", {
|
|
2000
1991
|
ref: Te.setFloating,
|
|
2001
1992
|
"data-radix-popper-content-wrapper": "",
|
|
2002
1993
|
style: {
|
|
2003
|
-
...
|
|
2004
|
-
transform: ce ?
|
|
1994
|
+
...Ae,
|
|
1995
|
+
transform: ce ? Ae.transform : "translate(0, -200%)",
|
|
2005
1996
|
// keep off the page when measuring
|
|
2006
1997
|
minWidth: "max-content",
|
|
2007
1998
|
zIndex: L,
|
|
@@ -2018,7 +2009,7 @@ const Mn = "Popper", [kn, Fn] = Nt(Mn), [kr, Bn] = kn(Mn), Fr = (e) => {
|
|
|
2018
2009
|
arrowX: Z,
|
|
2019
2010
|
arrowY: H,
|
|
2020
2011
|
shouldHideArrow: N
|
|
2021
|
-
}, /* @__PURE__ */ S(J.div,
|
|
2012
|
+
}, /* @__PURE__ */ S(J.div, B({
|
|
2022
2013
|
"data-side": we,
|
|
2023
2014
|
"data-align": P
|
|
2024
2015
|
}, T, {
|
|
@@ -2065,7 +2056,7 @@ function Hn(e) {
|
|
|
2065
2056
|
const Kr = Fr, Yr = Wr, Xr = Vr, jr = /* @__PURE__ */ z((e, t) => {
|
|
2066
2057
|
var n;
|
|
2067
2058
|
const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...r } = e;
|
|
2068
|
-
return o ? /* @__PURE__ */ oo.createPortal(/* @__PURE__ */ S(J.div,
|
|
2059
|
+
return o ? /* @__PURE__ */ oo.createPortal(/* @__PURE__ */ S(J.div, B({}, r, {
|
|
2069
2060
|
ref: t
|
|
2070
2061
|
})), o) : null;
|
|
2071
2062
|
});
|
|
@@ -2092,7 +2083,7 @@ function ln({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2092
2083
|
];
|
|
2093
2084
|
}
|
|
2094
2085
|
function qr({ defaultProp: e, onChange: t }) {
|
|
2095
|
-
const n =
|
|
2086
|
+
const n = k(e), [o] = n, r = Y(o), c = he(t);
|
|
2096
2087
|
return U(() => {
|
|
2097
2088
|
r.current !== o && (c(o), r.current = o);
|
|
2098
2089
|
}, [
|
|
@@ -2110,7 +2101,7 @@ function Gr(e) {
|
|
|
2110
2101
|
e
|
|
2111
2102
|
]);
|
|
2112
2103
|
}
|
|
2113
|
-
const Zr = /* @__PURE__ */ z((e, t) => /* @__PURE__ */ S(J.span,
|
|
2104
|
+
const Zr = /* @__PURE__ */ z((e, t) => /* @__PURE__ */ S(J.span, B({}, e, {
|
|
2114
2105
|
ref: t,
|
|
2115
2106
|
style: {
|
|
2116
2107
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -2132,7 +2123,7 @@ var Qr = function(e) {
|
|
|
2132
2123
|
return null;
|
|
2133
2124
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2134
2125
|
return t.ownerDocument.body;
|
|
2135
|
-
},
|
|
2126
|
+
}, Oe = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), et = {}, St = 0, Vn = function(e) {
|
|
2136
2127
|
return e && (e.host || Vn(e.parentNode));
|
|
2137
2128
|
}, Jr = function(e, t) {
|
|
2138
2129
|
return t.map(function(n) {
|
|
@@ -2156,8 +2147,8 @@ var Qr = function(e) {
|
|
|
2156
2147
|
f(w);
|
|
2157
2148
|
else
|
|
2158
2149
|
try {
|
|
2159
|
-
var p = w.getAttribute(o), h = p !== null && p !== "false", d = (
|
|
2160
|
-
|
|
2150
|
+
var p = w.getAttribute(o), h = p !== null && p !== "false", d = (Oe.get(w) || 0) + 1, v = (c.get(w) || 0) + 1;
|
|
2151
|
+
Oe.set(w, d), c.set(w, v), s.push(w), d === 1 && h && Je.set(w, !0), v === 1 && w.setAttribute(n, "true"), h || w.setAttribute(o, "true");
|
|
2161
2152
|
} catch (m) {
|
|
2162
2153
|
console.error("aria-hidden: cannot operate on ", w, m);
|
|
2163
2154
|
}
|
|
@@ -2165,9 +2156,9 @@ var Qr = function(e) {
|
|
|
2165
2156
|
};
|
|
2166
2157
|
return f(t), i.clear(), St++, function() {
|
|
2167
2158
|
s.forEach(function(u) {
|
|
2168
|
-
var w =
|
|
2169
|
-
|
|
2170
|
-
}), St--, St || (
|
|
2159
|
+
var w = Oe.get(u) - 1, p = c.get(u) - 1;
|
|
2160
|
+
Oe.set(u, w), c.set(u, p), w || (Je.has(u) || u.removeAttribute(o), Je.delete(u)), p || u.removeAttribute(n);
|
|
2161
|
+
}), St--, St || (Oe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), et = {});
|
|
2171
2162
|
};
|
|
2172
2163
|
}, ti = function(e, t, n) {
|
|
2173
2164
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -2181,12 +2172,12 @@ var Qr = function(e) {
|
|
|
2181
2172
|
onScrollCapture: Ct,
|
|
2182
2173
|
onWheelCapture: Ct,
|
|
2183
2174
|
onTouchMoveCapture: Ct
|
|
2184
|
-
}), r = o[0], c = o[1], s = e.forwardProps, i = e.children, a = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, w = e.sideCar, p = e.noIsolation, h = e.inert, d = e.allowPinchZoom, v = e.as, m = v === void 0 ? "div" : v, g = bn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), $ = w, b = co([n, t]),
|
|
2175
|
+
}), r = o[0], c = o[1], s = e.forwardProps, i = e.children, a = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, w = e.sideCar, p = e.noIsolation, h = e.inert, d = e.allowPinchZoom, v = e.as, m = v === void 0 ? "div" : v, g = bn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), $ = w, b = co([n, t]), x = Se(Se({}, g), r);
|
|
2185
2176
|
return C.createElement(
|
|
2186
2177
|
C.Fragment,
|
|
2187
2178
|
null,
|
|
2188
2179
|
f && C.createElement($, { sideCar: zn, removeScrollBar: l, shards: u, noIsolation: p, inert: h, setCallbacks: c, allowPinchZoom: !!d, lockRef: n }),
|
|
2189
|
-
s ? C.cloneElement(C.Children.only(i), Se(Se({},
|
|
2180
|
+
s ? C.cloneElement(C.Children.only(i), Se(Se({}, x), { ref: b })) : C.createElement(m, Se({}, x, { className: a, ref: b }), i)
|
|
2190
2181
|
);
|
|
2191
2182
|
});
|
|
2192
2183
|
mt.defaultProps = {
|
|
@@ -2368,7 +2359,7 @@ var Re = Rt ? { passive: !1 } : !1, gi = function(e) {
|
|
|
2368
2359
|
n,
|
|
2369
2360
|
o
|
|
2370
2361
|
];
|
|
2371
|
-
},
|
|
2362
|
+
}, xi = function(e) {
|
|
2372
2363
|
var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
|
|
2373
2364
|
return [
|
|
2374
2365
|
t,
|
|
@@ -2378,11 +2369,11 @@ var Re = Rt ? { passive: !1 } : !1, gi = function(e) {
|
|
|
2378
2369
|
}, Yn = function(e, t) {
|
|
2379
2370
|
return e === "v" ? wi(t) : $i(t);
|
|
2380
2371
|
}, Xn = function(e, t) {
|
|
2381
|
-
return e === "v" ? bi(t) :
|
|
2382
|
-
},
|
|
2372
|
+
return e === "v" ? bi(t) : xi(t);
|
|
2373
|
+
}, yi = function(e, t) {
|
|
2383
2374
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2384
2375
|
}, Si = function(e, t, n, o, r) {
|
|
2385
|
-
var c =
|
|
2376
|
+
var c = yi(e, window.getComputedStyle(t).direction), s = c * o, i = n.target, a = t.contains(i), l = !1, f = s > 0, u = 0, w = 0;
|
|
2386
2377
|
do {
|
|
2387
2378
|
var p = Xn(e, i), h = p[0], d = p[1], v = p[2], m = d - v - c * h;
|
|
2388
2379
|
(h || m) && Yn(e, i) && (u += m, w += h), i = i.parentNode;
|
|
@@ -2428,31 +2419,31 @@ function Ti(e) {
|
|
|
2428
2419
|
var i = C.useCallback(function(d, v) {
|
|
2429
2420
|
if ("touches" in d && d.touches.length === 2)
|
|
2430
2421
|
return !s.current.allowPinchZoom;
|
|
2431
|
-
var m = nt(d), g = n.current, $ = "deltaX" in d ? d.deltaX : g[0] - m[0], b = "deltaY" in d ? d.deltaY : g[1] - m[1],
|
|
2422
|
+
var m = nt(d), g = n.current, $ = "deltaX" in d ? d.deltaX : g[0] - m[0], b = "deltaY" in d ? d.deltaY : g[1] - m[1], x, T = d.target, E = Math.abs($) > Math.abs(b) ? "h" : "v";
|
|
2432
2423
|
if ("touches" in d && E === "h" && T.type === "range")
|
|
2433
2424
|
return !1;
|
|
2434
|
-
var
|
|
2435
|
-
if (!
|
|
2425
|
+
var y = un(E, T);
|
|
2426
|
+
if (!y)
|
|
2436
2427
|
return !0;
|
|
2437
|
-
if (
|
|
2428
|
+
if (y ? x = E : (x = E === "v" ? "h" : "v", y = un(E, T)), !y)
|
|
2438
2429
|
return !1;
|
|
2439
|
-
if (!o.current && "changedTouches" in d && ($ || b) && (o.current =
|
|
2430
|
+
if (!o.current && "changedTouches" in d && ($ || b) && (o.current = x), !x)
|
|
2440
2431
|
return !0;
|
|
2441
|
-
var _ = o.current ||
|
|
2432
|
+
var _ = o.current || x;
|
|
2442
2433
|
return Si(_, v, d, _ === "h" ? $ : b, !0);
|
|
2443
2434
|
}, []), a = C.useCallback(function(d) {
|
|
2444
2435
|
var v = d;
|
|
2445
2436
|
if (!(!_e.length || _e[_e.length - 1] !== c)) {
|
|
2446
|
-
var m = "deltaY" in v ? fn(v) : nt(v), g = t.current.filter(function(
|
|
2447
|
-
return
|
|
2437
|
+
var m = "deltaY" in v ? fn(v) : nt(v), g = t.current.filter(function(x) {
|
|
2438
|
+
return x.name === v.type && x.target === v.target && Ci(x.delta, m);
|
|
2448
2439
|
})[0];
|
|
2449
2440
|
if (g && g.should) {
|
|
2450
2441
|
v.cancelable && v.preventDefault();
|
|
2451
2442
|
return;
|
|
2452
2443
|
}
|
|
2453
2444
|
if (!g) {
|
|
2454
|
-
var $ = (s.current.shards || []).map(pn).filter(Boolean).filter(function(
|
|
2455
|
-
return
|
|
2445
|
+
var $ = (s.current.shards || []).map(pn).filter(Boolean).filter(function(x) {
|
|
2446
|
+
return x.contains(v.target);
|
|
2456
2447
|
}), b = $.length > 0 ? i(v, $[0]) : !s.current.noIsolation;
|
|
2457
2448
|
b && v.cancelable && v.preventDefault();
|
|
2458
2449
|
}
|
|
@@ -2490,12 +2481,12 @@ function Ti(e) {
|
|
|
2490
2481
|
p ? C.createElement(vi, { gapMode: "margin" }) : null
|
|
2491
2482
|
);
|
|
2492
2483
|
}
|
|
2493
|
-
const
|
|
2484
|
+
const Ai = lo(zn, Ti);
|
|
2494
2485
|
var jn = C.forwardRef(function(e, t) {
|
|
2495
|
-
return C.createElement(mt, Se({}, e, { ref: t, sideCar:
|
|
2486
|
+
return C.createElement(mt, Se({}, e, { ref: t, sideCar: Ai }));
|
|
2496
2487
|
});
|
|
2497
2488
|
jn.classNames = mt.classNames;
|
|
2498
|
-
const
|
|
2489
|
+
const Oi = [
|
|
2499
2490
|
" ",
|
|
2500
2491
|
"Enter",
|
|
2501
2492
|
"ArrowUp",
|
|
@@ -2503,20 +2494,20 @@ const Ai = [
|
|
|
2503
2494
|
], Ri = [
|
|
2504
2495
|
" ",
|
|
2505
2496
|
"Enter"
|
|
2506
|
-
], vt = "Select", [gt, wt, _i] = vo(vt), [We,
|
|
2497
|
+
], vt = "Select", [gt, wt, _i] = vo(vt), [We, _c] = Nt(vt, [
|
|
2507
2498
|
_i,
|
|
2508
2499
|
Fn
|
|
2509
2500
|
]), Vt = Fn(), [Di, Ee] = We(vt), [Ii, Ni] = We(vt), Li = (e) => {
|
|
2510
|
-
const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value: s, defaultValue: i, onValueChange: a, dir: l, name: f, autoComplete: u, disabled: w, required: p } = e, h = Vt(t), [d, v] =
|
|
2501
|
+
const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value: s, defaultValue: i, onValueChange: a, dir: l, name: f, autoComplete: u, disabled: w, required: p } = e, h = Vt(t), [d, v] = k(null), [m, g] = k(null), [$, b] = k(!1), x = wo(l), [T = !1, E] = ln({
|
|
2511
2502
|
prop: o,
|
|
2512
2503
|
defaultProp: r,
|
|
2513
2504
|
onChange: c
|
|
2514
|
-
}), [
|
|
2505
|
+
}), [y, _] = ln({
|
|
2515
2506
|
prop: s,
|
|
2516
2507
|
defaultProp: i,
|
|
2517
2508
|
onChange: a
|
|
2518
|
-
}), V = Y(null), D = d ? !!d.closest("form") : !0, [R, W] =
|
|
2519
|
-
(
|
|
2509
|
+
}), V = Y(null), D = d ? !!d.closest("form") : !0, [R, W] = k(/* @__PURE__ */ new Set()), M = Array.from(R).map(
|
|
2510
|
+
(A) => A.props.value
|
|
2520
2511
|
).join(";");
|
|
2521
2512
|
return /* @__PURE__ */ S(Kr, h, /* @__PURE__ */ S(Di, {
|
|
2522
2513
|
required: p,
|
|
@@ -2528,39 +2519,39 @@ const Ai = [
|
|
|
2528
2519
|
valueNodeHasChildren: $,
|
|
2529
2520
|
onValueNodeHasChildrenChange: b,
|
|
2530
2521
|
contentId: Pn(),
|
|
2531
|
-
value:
|
|
2522
|
+
value: y,
|
|
2532
2523
|
onValueChange: _,
|
|
2533
2524
|
open: T,
|
|
2534
2525
|
onOpenChange: E,
|
|
2535
|
-
dir:
|
|
2526
|
+
dir: x,
|
|
2536
2527
|
triggerPointerDownPosRef: V,
|
|
2537
2528
|
disabled: w
|
|
2538
2529
|
}, /* @__PURE__ */ S(gt.Provider, {
|
|
2539
2530
|
scope: t
|
|
2540
2531
|
}, /* @__PURE__ */ S(Ii, {
|
|
2541
2532
|
scope: e.__scopeSelect,
|
|
2542
|
-
onNativeOptionAdd: q((
|
|
2533
|
+
onNativeOptionAdd: q((A) => {
|
|
2543
2534
|
W(
|
|
2544
|
-
(
|
|
2535
|
+
(F) => new Set(F).add(A)
|
|
2545
2536
|
);
|
|
2546
2537
|
}, []),
|
|
2547
|
-
onNativeOptionRemove: q((
|
|
2548
|
-
W((
|
|
2549
|
-
const
|
|
2550
|
-
return
|
|
2538
|
+
onNativeOptionRemove: q((A) => {
|
|
2539
|
+
W((F) => {
|
|
2540
|
+
const O = new Set(F);
|
|
2541
|
+
return O.delete(A), O;
|
|
2551
2542
|
});
|
|
2552
2543
|
}, [])
|
|
2553
2544
|
}, n)), D ? /* @__PURE__ */ S(Qn, {
|
|
2554
|
-
key:
|
|
2545
|
+
key: M,
|
|
2555
2546
|
"aria-hidden": !0,
|
|
2556
2547
|
required: p,
|
|
2557
2548
|
tabIndex: -1,
|
|
2558
2549
|
name: f,
|
|
2559
2550
|
autoComplete: u,
|
|
2560
|
-
value:
|
|
2561
|
-
onChange: (
|
|
2551
|
+
value: y,
|
|
2552
|
+
onChange: (A) => _(A.target.value),
|
|
2562
2553
|
disabled: w
|
|
2563
|
-
},
|
|
2554
|
+
}, y === void 0 ? /* @__PURE__ */ S("option", {
|
|
2564
2555
|
value: ""
|
|
2565
2556
|
}) : null, Array.from(R)) : null));
|
|
2566
2557
|
}, Mi = "SelectTrigger", ki = /* @__PURE__ */ z((e, t) => {
|
|
@@ -2574,9 +2565,9 @@ const Ai = [
|
|
|
2574
2565
|
}), p = () => {
|
|
2575
2566
|
i || (s.onOpenChange(!0), w());
|
|
2576
2567
|
};
|
|
2577
|
-
return /* @__PURE__ */ S(Yr,
|
|
2568
|
+
return /* @__PURE__ */ S(Yr, B({
|
|
2578
2569
|
asChild: !0
|
|
2579
|
-
}, c), /* @__PURE__ */ S(J.button,
|
|
2570
|
+
}, c), /* @__PURE__ */ S(J.button, B({
|
|
2580
2571
|
type: "button",
|
|
2581
2572
|
role: "combobox",
|
|
2582
2573
|
"aria-controls": s.contentId,
|
|
@@ -2602,7 +2593,7 @@ const Ai = [
|
|
|
2602
2593
|
}),
|
|
2603
2594
|
onKeyDown: K(r.onKeyDown, (h) => {
|
|
2604
2595
|
const d = f.current !== "";
|
|
2605
|
-
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && u(h.key), !(d && h.key === " ") &&
|
|
2596
|
+
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && u(h.key), !(d && h.key === " ") && Oi.includes(h.key) && (p(), h.preventDefault());
|
|
2606
2597
|
})
|
|
2607
2598
|
})));
|
|
2608
2599
|
}), Fi = "SelectValue", Bi = /* @__PURE__ */ z((e, t) => {
|
|
@@ -2612,7 +2603,7 @@ const Ai = [
|
|
|
2612
2603
|
}, [
|
|
2613
2604
|
l,
|
|
2614
2605
|
f
|
|
2615
|
-
]), /* @__PURE__ */ S(J.span,
|
|
2606
|
+
]), /* @__PURE__ */ S(J.span, B({}, i, {
|
|
2616
2607
|
ref: u,
|
|
2617
2608
|
style: {
|
|
2618
2609
|
pointerEvents: "none"
|
|
@@ -2620,15 +2611,15 @@ const Ai = [
|
|
|
2620
2611
|
}), a.value === void 0 && s !== void 0 ? s : c);
|
|
2621
2612
|
}), Wi = /* @__PURE__ */ z((e, t) => {
|
|
2622
2613
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
2623
|
-
return /* @__PURE__ */ S(J.span,
|
|
2614
|
+
return /* @__PURE__ */ S(J.span, B({
|
|
2624
2615
|
"aria-hidden": !0
|
|
2625
2616
|
}, r, {
|
|
2626
2617
|
ref: t
|
|
2627
2618
|
}), o || "▼");
|
|
2628
|
-
}), Hi = (e) => /* @__PURE__ */ S(jr,
|
|
2619
|
+
}), Hi = (e) => /* @__PURE__ */ S(jr, B({
|
|
2629
2620
|
asChild: !0
|
|
2630
2621
|
}, e)), Me = "SelectContent", Vi = /* @__PURE__ */ z((e, t) => {
|
|
2631
|
-
const n = Ee(Me, e.__scopeSelect), [o, r] =
|
|
2622
|
+
const n = Ee(Me, e.__scopeSelect), [o, r] = k();
|
|
2632
2623
|
if (ie(() => {
|
|
2633
2624
|
r(new DocumentFragment());
|
|
2634
2625
|
}, []), !n.open) {
|
|
@@ -2639,7 +2630,7 @@ const Ai = [
|
|
|
2639
2630
|
scope: e.__scopeSelect
|
|
2640
2631
|
}, /* @__PURE__ */ S("div", null, e.children))), c) : null;
|
|
2641
2632
|
}
|
|
2642
|
-
return /* @__PURE__ */ S(zi,
|
|
2633
|
+
return /* @__PURE__ */ S(zi, B({}, e, {
|
|
2643
2634
|
ref: t
|
|
2644
2635
|
}));
|
|
2645
2636
|
}), pe = 10, [qn, Pe] = We(Me), zi = /* @__PURE__ */ z((e, t) => {
|
|
@@ -2661,44 +2652,44 @@ const Ai = [
|
|
|
2661
2652
|
avoidCollisions: v,
|
|
2662
2653
|
//
|
|
2663
2654
|
...m
|
|
2664
|
-
} = e, g = Ee(Me, n), [$, b] =
|
|
2655
|
+
} = e, g = Ee(Me, n), [$, b] = k(null), [x, T] = k(null), E = G(
|
|
2665
2656
|
t,
|
|
2666
2657
|
(P) => b(P)
|
|
2667
|
-
), [
|
|
2658
|
+
), [y, _] = k(null), [V, D] = k(null), R = wt(n), [W, M] = k(!1), A = Y(!1);
|
|
2668
2659
|
U(() => {
|
|
2669
2660
|
if ($)
|
|
2670
2661
|
return ti($);
|
|
2671
2662
|
}, [
|
|
2672
2663
|
$
|
|
2673
|
-
]),
|
|
2674
|
-
const
|
|
2664
|
+
]), Ao();
|
|
2665
|
+
const F = q((P) => {
|
|
2675
2666
|
const [I, ...Z] = R().map(
|
|
2676
2667
|
(L) => L.ref.current
|
|
2677
2668
|
), [H] = Z.slice(-1), N = document.activeElement;
|
|
2678
2669
|
for (const L of P)
|
|
2679
2670
|
if (L === N || (L == null || L.scrollIntoView({
|
|
2680
2671
|
block: "nearest"
|
|
2681
|
-
}), L === I &&
|
|
2672
|
+
}), L === I && x && (x.scrollTop = 0), L === H && x && (x.scrollTop = x.scrollHeight), L == null || L.focus(), document.activeElement !== N))
|
|
2682
2673
|
return;
|
|
2683
2674
|
}, [
|
|
2684
2675
|
R,
|
|
2685
|
-
|
|
2686
|
-
]),
|
|
2687
|
-
() =>
|
|
2688
|
-
|
|
2676
|
+
x
|
|
2677
|
+
]), O = q(
|
|
2678
|
+
() => F([
|
|
2679
|
+
y,
|
|
2689
2680
|
$
|
|
2690
2681
|
]),
|
|
2691
2682
|
[
|
|
2692
|
-
|
|
2693
|
-
|
|
2683
|
+
F,
|
|
2684
|
+
y,
|
|
2694
2685
|
$
|
|
2695
2686
|
]
|
|
2696
2687
|
);
|
|
2697
2688
|
U(() => {
|
|
2698
|
-
W &&
|
|
2689
|
+
W && O();
|
|
2699
2690
|
}, [
|
|
2700
2691
|
W,
|
|
2701
|
-
|
|
2692
|
+
O
|
|
2702
2693
|
]);
|
|
2703
2694
|
const { onOpenChange: j, triggerPointerDownPosRef: X } = g;
|
|
2704
2695
|
U(() => {
|
|
@@ -2737,7 +2728,7 @@ const Ai = [
|
|
|
2737
2728
|
}, [
|
|
2738
2729
|
j
|
|
2739
2730
|
]);
|
|
2740
|
-
const [
|
|
2731
|
+
const [ye, Te] = Jn((P) => {
|
|
2741
2732
|
const I = R().filter(
|
|
2742
2733
|
(N) => !N.disabled
|
|
2743
2734
|
), Z = I.find(
|
|
@@ -2746,9 +2737,9 @@ const Ai = [
|
|
|
2746
2737
|
H && setTimeout(
|
|
2747
2738
|
() => H.ref.current.focus()
|
|
2748
2739
|
);
|
|
2749
|
-
}),
|
|
2750
|
-
const H = !
|
|
2751
|
-
(g.value !== void 0 && g.value === I || H) && (_(P), H && (
|
|
2740
|
+
}), Ae = q((P, I, Z) => {
|
|
2741
|
+
const H = !A.current && !Z;
|
|
2742
|
+
(g.value !== void 0 && g.value === I || H) && (_(P), H && (A.current = !0));
|
|
2752
2743
|
}, [
|
|
2753
2744
|
g.value
|
|
2754
2745
|
]), He = q(
|
|
@@ -2757,7 +2748,7 @@ const Ai = [
|
|
|
2757
2748
|
$
|
|
2758
2749
|
]
|
|
2759
2750
|
), ce = q((P, I, Z) => {
|
|
2760
|
-
const H = !
|
|
2751
|
+
const H = !A.current && !Z;
|
|
2761
2752
|
(g.value !== void 0 && g.value === I || H) && D(P);
|
|
2762
2753
|
}, [
|
|
2763
2754
|
g.value
|
|
@@ -2776,21 +2767,21 @@ const Ai = [
|
|
|
2776
2767
|
return /* @__PURE__ */ S(qn, {
|
|
2777
2768
|
scope: n,
|
|
2778
2769
|
content: $,
|
|
2779
|
-
viewport:
|
|
2770
|
+
viewport: x,
|
|
2780
2771
|
onViewportChange: T,
|
|
2781
|
-
itemRefCallback:
|
|
2782
|
-
selectedItem:
|
|
2772
|
+
itemRefCallback: Ae,
|
|
2773
|
+
selectedItem: y,
|
|
2783
2774
|
onItemLeave: He,
|
|
2784
2775
|
itemTextRefCallback: ce,
|
|
2785
|
-
focusSelectedItem:
|
|
2776
|
+
focusSelectedItem: O,
|
|
2786
2777
|
selectedItemText: V,
|
|
2787
2778
|
position: o,
|
|
2788
2779
|
isPositioned: W,
|
|
2789
|
-
searchRef:
|
|
2780
|
+
searchRef: ye
|
|
2790
2781
|
}, /* @__PURE__ */ S(jn, {
|
|
2791
2782
|
as: Ye,
|
|
2792
2783
|
allowPinchZoom: !0
|
|
2793
|
-
}, /* @__PURE__ */ S(
|
|
2784
|
+
}, /* @__PURE__ */ S(Oo, {
|
|
2794
2785
|
asChild: !0,
|
|
2795
2786
|
trapped: g.open,
|
|
2796
2787
|
onMountAutoFocus: (P) => {
|
|
@@ -2809,14 +2800,14 @@ const Ai = [
|
|
|
2809
2800
|
onPointerDownOutside: s,
|
|
2810
2801
|
onFocusOutside: (P) => P.preventDefault(),
|
|
2811
2802
|
onDismiss: () => g.onOpenChange(!1)
|
|
2812
|
-
}, /* @__PURE__ */ S(se,
|
|
2803
|
+
}, /* @__PURE__ */ S(se, B({
|
|
2813
2804
|
role: "listbox",
|
|
2814
2805
|
id: g.contentId,
|
|
2815
2806
|
"data-state": g.open ? "open" : "closed",
|
|
2816
2807
|
dir: g.dir,
|
|
2817
2808
|
onContextMenu: (P) => P.preventDefault()
|
|
2818
2809
|
}, m, we, {
|
|
2819
|
-
onPlaced: () =>
|
|
2810
|
+
onPlaced: () => M(!0),
|
|
2820
2811
|
ref: E,
|
|
2821
2812
|
style: {
|
|
2822
2813
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -2850,44 +2841,44 @@ const Ai = [
|
|
|
2850
2841
|
H = H.slice(L + 1);
|
|
2851
2842
|
}
|
|
2852
2843
|
setTimeout(
|
|
2853
|
-
() =>
|
|
2844
|
+
() => F(H)
|
|
2854
2845
|
), P.preventDefault();
|
|
2855
2846
|
}
|
|
2856
2847
|
})
|
|
2857
2848
|
}))))));
|
|
2858
2849
|
}), Ui = /* @__PURE__ */ z((e, t) => {
|
|
2859
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, c = Ee(Me, n), s = Pe(Me, n), [i, a] =
|
|
2850
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, c = Ee(Me, n), s = Pe(Me, n), [i, a] = k(null), [l, f] = k(null), u = G(
|
|
2860
2851
|
t,
|
|
2861
2852
|
(E) => f(E)
|
|
2862
2853
|
), w = wt(n), p = Y(!1), h = Y(!0), { viewport: d, selectedItem: v, selectedItemText: m, focusSelectedItem: g } = s, $ = q(() => {
|
|
2863
2854
|
if (c.trigger && c.valueNode && i && l && d && v && m) {
|
|
2864
|
-
const E = c.trigger.getBoundingClientRect(),
|
|
2855
|
+
const E = c.trigger.getBoundingClientRect(), y = l.getBoundingClientRect(), _ = c.valueNode.getBoundingClientRect(), V = m.getBoundingClientRect();
|
|
2865
2856
|
if (c.dir !== "rtl") {
|
|
2866
|
-
const N = V.left -
|
|
2857
|
+
const N = V.left - y.left, L = _.left - N, ee = E.left - L, Q = E.width + ee, Ve = Math.max(Q, y.width), ze = window.innerWidth - pe, Ue = Kt(L, [
|
|
2867
2858
|
pe,
|
|
2868
2859
|
ze - Ve
|
|
2869
2860
|
]);
|
|
2870
2861
|
i.style.minWidth = Q + "px", i.style.left = Ue + "px";
|
|
2871
2862
|
} else {
|
|
2872
|
-
const N =
|
|
2863
|
+
const N = y.right - V.right, L = window.innerWidth - _.right - N, ee = window.innerWidth - E.right - L, Q = E.width + ee, Ve = Math.max(Q, y.width), ze = window.innerWidth - pe, Ue = Kt(L, [
|
|
2873
2864
|
pe,
|
|
2874
2865
|
ze - Ve
|
|
2875
2866
|
]);
|
|
2876
2867
|
i.style.minWidth = Q + "px", i.style.right = Ue + "px";
|
|
2877
2868
|
}
|
|
2878
|
-
const D = w(), R = window.innerHeight - pe * 2, W = d.scrollHeight,
|
|
2869
|
+
const D = w(), R = window.innerHeight - pe * 2, W = d.scrollHeight, M = window.getComputedStyle(l), A = parseInt(M.borderTopWidth, 10), F = parseInt(M.paddingTop, 10), O = parseInt(M.borderBottomWidth, 10), j = parseInt(M.paddingBottom, 10), X = A + F + W + j + O, ye = Math.min(v.offsetHeight * 5, X), Te = window.getComputedStyle(d), Ae = parseInt(Te.paddingTop, 10), He = parseInt(Te.paddingBottom, 10), ce = E.top + E.height / 2 - pe, se = R - ce, we = v.offsetHeight / 2, P = v.offsetTop + we, I = A + F + P, Z = X - I;
|
|
2879
2870
|
if (I <= ce) {
|
|
2880
2871
|
const N = v === D[D.length - 1].ref.current;
|
|
2881
2872
|
i.style.bottom = "0px";
|
|
2882
|
-
const L = l.clientHeight - d.offsetTop - d.offsetHeight, ee = Math.max(se, we + (N ? He : 0) + L +
|
|
2873
|
+
const L = l.clientHeight - d.offsetTop - d.offsetHeight, ee = Math.max(se, we + (N ? He : 0) + L + O), Q = I + ee;
|
|
2883
2874
|
i.style.height = Q + "px";
|
|
2884
2875
|
} else {
|
|
2885
2876
|
const N = v === D[0].ref.current;
|
|
2886
2877
|
i.style.top = "0px";
|
|
2887
|
-
const ee = Math.max(ce,
|
|
2878
|
+
const ee = Math.max(ce, A + d.offsetTop + (N ? Ae : 0) + we) + Z;
|
|
2888
2879
|
i.style.height = ee + "px", d.scrollTop = I - ce + d.offsetTop;
|
|
2889
2880
|
}
|
|
2890
|
-
i.style.margin = `${pe}px 0`, i.style.minHeight =
|
|
2881
|
+
i.style.margin = `${pe}px 0`, i.style.minHeight = ye + "px", i.style.maxHeight = R + "px", o == null || o(), requestAnimationFrame(
|
|
2891
2882
|
() => p.current = !0
|
|
2892
2883
|
);
|
|
2893
2884
|
}
|
|
@@ -2909,9 +2900,9 @@ const Ai = [
|
|
|
2909
2900
|
$
|
|
2910
2901
|
]
|
|
2911
2902
|
);
|
|
2912
|
-
const [b,
|
|
2903
|
+
const [b, x] = k();
|
|
2913
2904
|
ie(() => {
|
|
2914
|
-
l &&
|
|
2905
|
+
l && x(window.getComputedStyle(l).zIndex);
|
|
2915
2906
|
}, [
|
|
2916
2907
|
l
|
|
2917
2908
|
]);
|
|
@@ -2934,7 +2925,7 @@ const Ai = [
|
|
|
2934
2925
|
position: "fixed",
|
|
2935
2926
|
zIndex: b
|
|
2936
2927
|
}
|
|
2937
|
-
}, /* @__PURE__ */ S(J.div,
|
|
2928
|
+
}, /* @__PURE__ */ S(J.div, B({}, r, {
|
|
2938
2929
|
ref: u,
|
|
2939
2930
|
style: {
|
|
2940
2931
|
// When we get the height of the content, it includes borders. If we were to set
|
|
@@ -2947,7 +2938,7 @@ const Ai = [
|
|
|
2947
2938
|
}))));
|
|
2948
2939
|
}), hn = /* @__PURE__ */ z((e, t) => {
|
|
2949
2940
|
const { __scopeSelect: n, align: o = "start", collisionPadding: r = pe, ...c } = e, s = Vt(n);
|
|
2950
|
-
return /* @__PURE__ */ S(Xr,
|
|
2941
|
+
return /* @__PURE__ */ S(Xr, B({}, s, c, {
|
|
2951
2942
|
ref: t,
|
|
2952
2943
|
align: o,
|
|
2953
2944
|
collisionPadding: r,
|
|
@@ -2970,7 +2961,7 @@ const Ai = [
|
|
|
2970
2961
|
}
|
|
2971
2962
|
}), /* @__PURE__ */ S(gt.Slot, {
|
|
2972
2963
|
scope: n
|
|
2973
|
-
}, /* @__PURE__ */ S(J.div,
|
|
2964
|
+
}, /* @__PURE__ */ S(J.div, B({
|
|
2974
2965
|
"data-radix-select-viewport": "",
|
|
2975
2966
|
role: "presentation"
|
|
2976
2967
|
}, o, {
|
|
@@ -3002,7 +2993,7 @@ const Ai = [
|
|
|
3002
2993
|
}), Xi = "SelectGroup";
|
|
3003
2994
|
We(Xi);
|
|
3004
2995
|
const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
3005
|
-
const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...s } = e, i = Ee(_t, n), a = Pe(_t, n), l = i.value === o, [f, u] =
|
|
2996
|
+
const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...s } = e, i = Ee(_t, n), a = Pe(_t, n), l = i.value === o, [f, u] = k(c ?? ""), [w, p] = k(!1), h = G(t, (m) => {
|
|
3006
2997
|
var g;
|
|
3007
2998
|
return (g = a.itemRefCallback) === null || g === void 0 ? void 0 : g.call(a, m, o, r);
|
|
3008
2999
|
}), d = Pn(), v = () => {
|
|
@@ -3025,7 +3016,7 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3025
3016
|
value: o,
|
|
3026
3017
|
disabled: r,
|
|
3027
3018
|
textValue: f
|
|
3028
|
-
}, /* @__PURE__ */ S(J.div,
|
|
3019
|
+
}, /* @__PURE__ */ S(J.div, B({
|
|
3029
3020
|
role: "option",
|
|
3030
3021
|
"aria-labelledby": d,
|
|
3031
3022
|
"data-highlighted": w ? "" : void 0,
|
|
@@ -3066,7 +3057,7 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3066
3057
|
})
|
|
3067
3058
|
}))));
|
|
3068
3059
|
}), ot = "SelectItemText", Gi = /* @__PURE__ */ z((e, t) => {
|
|
3069
|
-
const { __scopeSelect: n, className: o, style: r, ...c } = e, s = Ee(ot, n), i = Pe(ot, n), a = Gn(ot, n), l = Ni(ot, n), [f, u] =
|
|
3060
|
+
const { __scopeSelect: n, className: o, style: r, ...c } = e, s = Ee(ot, n), i = Pe(ot, n), a = Gn(ot, n), l = Ni(ot, n), [f, u] = k(null), w = G(
|
|
3070
3061
|
t,
|
|
3071
3062
|
(m) => u(m),
|
|
3072
3063
|
a.onItemTextChange,
|
|
@@ -3090,20 +3081,20 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3090
3081
|
d,
|
|
3091
3082
|
v,
|
|
3092
3083
|
h
|
|
3093
|
-
]), /* @__PURE__ */ S(It, null, /* @__PURE__ */ S(J.span,
|
|
3084
|
+
]), /* @__PURE__ */ S(It, null, /* @__PURE__ */ S(J.span, B({
|
|
3094
3085
|
id: a.textId
|
|
3095
3086
|
}, c, {
|
|
3096
3087
|
ref: w
|
|
3097
3088
|
})), a.isSelected && s.valueNode && !s.valueNodeHasChildren ? /* @__PURE__ */ pt.createPortal(c.children, s.valueNode) : null);
|
|
3098
3089
|
}), Zi = "SelectItemIndicator", Qi = /* @__PURE__ */ z((e, t) => {
|
|
3099
3090
|
const { __scopeSelect: n, ...o } = e;
|
|
3100
|
-
return Gn(Zi, n).isSelected ? /* @__PURE__ */ S(J.span,
|
|
3091
|
+
return Gn(Zi, n).isSelected ? /* @__PURE__ */ S(J.span, B({
|
|
3101
3092
|
"aria-hidden": !0
|
|
3102
3093
|
}, o, {
|
|
3103
3094
|
ref: t
|
|
3104
3095
|
})) : null;
|
|
3105
3096
|
}), vn = "SelectScrollUpButton", Ji = /* @__PURE__ */ z((e, t) => {
|
|
3106
|
-
const n = Pe(vn, e.__scopeSelect), o = zt(vn, e.__scopeSelect), [r, c] =
|
|
3097
|
+
const n = Pe(vn, e.__scopeSelect), o = zt(vn, e.__scopeSelect), [r, c] = k(!1), s = G(t, o.onScrollButtonChange);
|
|
3107
3098
|
return ie(() => {
|
|
3108
3099
|
if (n.viewport && n.isPositioned) {
|
|
3109
3100
|
let a = function() {
|
|
@@ -3116,7 +3107,7 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3116
3107
|
}, [
|
|
3117
3108
|
n.viewport,
|
|
3118
3109
|
n.isPositioned
|
|
3119
|
-
]), r ? /* @__PURE__ */ S(Zn,
|
|
3110
|
+
]), r ? /* @__PURE__ */ S(Zn, B({}, e, {
|
|
3120
3111
|
ref: s,
|
|
3121
3112
|
onAutoScroll: () => {
|
|
3122
3113
|
const { viewport: i, selectedItem: a } = n;
|
|
@@ -3124,7 +3115,7 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3124
3115
|
}
|
|
3125
3116
|
})) : null;
|
|
3126
3117
|
}), gn = "SelectScrollDownButton", ec = /* @__PURE__ */ z((e, t) => {
|
|
3127
|
-
const n = Pe(gn, e.__scopeSelect), o = zt(gn, e.__scopeSelect), [r, c] =
|
|
3118
|
+
const n = Pe(gn, e.__scopeSelect), o = zt(gn, e.__scopeSelect), [r, c] = k(!1), s = G(t, o.onScrollButtonChange);
|
|
3128
3119
|
return ie(() => {
|
|
3129
3120
|
if (n.viewport && n.isPositioned) {
|
|
3130
3121
|
let a = function() {
|
|
@@ -3137,7 +3128,7 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3137
3128
|
}, [
|
|
3138
3129
|
n.viewport,
|
|
3139
3130
|
n.isPositioned
|
|
3140
|
-
]), r ? /* @__PURE__ */ S(Zn,
|
|
3131
|
+
]), r ? /* @__PURE__ */ S(Zn, B({}, e, {
|
|
3141
3132
|
ref: s,
|
|
3142
3133
|
onAutoScroll: () => {
|
|
3143
3134
|
const { viewport: i, selectedItem: a } = n;
|
|
@@ -3160,7 +3151,7 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3160
3151
|
});
|
|
3161
3152
|
}, [
|
|
3162
3153
|
i
|
|
3163
|
-
]), /* @__PURE__ */ S(J.div,
|
|
3154
|
+
]), /* @__PURE__ */ S(J.div, B({
|
|
3164
3155
|
"aria-hidden": !0
|
|
3165
3156
|
}, r, {
|
|
3166
3157
|
ref: t,
|
|
@@ -3194,7 +3185,7 @@ const _t = "SelectItem", [ji, Gn] = We(_t), qi = /* @__PURE__ */ z((e, t) => {
|
|
|
3194
3185
|
n
|
|
3195
3186
|
]), /* @__PURE__ */ S(Zr, {
|
|
3196
3187
|
asChild: !0
|
|
3197
|
-
}, /* @__PURE__ */ S("select",
|
|
3188
|
+
}, /* @__PURE__ */ S("select", B({}, o, {
|
|
3198
3189
|
ref: c,
|
|
3199
3190
|
defaultValue: n
|
|
3200
3191
|
})));
|
|
@@ -3238,7 +3229,7 @@ function tc(e, t) {
|
|
|
3238
3229
|
(n, o) => e[(t + o) % e.length]
|
|
3239
3230
|
);
|
|
3240
3231
|
}
|
|
3241
|
-
const nc = Li, oc = ki, rc = Bi, ic = Wi, cc = Hi, sc = Vi, ac = Yi, lc = qi, dc = Gi, uc = Qi, fc = Ji, pc = ec, hc = "_root_1inq5_1", mc = "_small_1inq5_26", vc = "_radTrigger_1inq5_38", gc = "_radContent_1inq5_73", wc = "_app_1inq5_1", $c = "_radArrow_1inq5_89", bc = "_radOption_1inq5_97",
|
|
3232
|
+
const nc = Li, oc = ki, rc = Bi, ic = Wi, cc = Hi, sc = Vi, ac = Yi, lc = qi, dc = Gi, uc = Qi, fc = Ji, pc = ec, hc = "_root_1inq5_1", mc = "_small_1inq5_26", vc = "_radTrigger_1inq5_38", gc = "_radContent_1inq5_73", wc = "_app_1inq5_1", $c = "_radArrow_1inq5_89", bc = "_radOption_1inq5_97", xc = "_radIcon_1inq5_111", ae = {
|
|
3242
3233
|
root: hc,
|
|
3243
3234
|
small: mc,
|
|
3244
3235
|
radTrigger: vc,
|
|
@@ -3246,8 +3237,8 @@ const nc = Li, oc = ki, rc = Bi, ic = Wi, cc = Hi, sc = Vi, ac = Yi, lc = qi, dc
|
|
|
3246
3237
|
app: wc,
|
|
3247
3238
|
radArrow: $c,
|
|
3248
3239
|
radOption: bc,
|
|
3249
|
-
radIcon:
|
|
3250
|
-
},
|
|
3240
|
+
radIcon: xc
|
|
3241
|
+
}, Dc = ne.forwardRef(function(t) {
|
|
3251
3242
|
const {
|
|
3252
3243
|
value: n,
|
|
3253
3244
|
options: o,
|
|
@@ -3255,7 +3246,7 @@ const nc = Li, oc = ki, rc = Bi, ic = Wi, cc = Hi, sc = Vi, ac = Yi, lc = qi, dc
|
|
|
3255
3246
|
size: c = "normal",
|
|
3256
3247
|
disabled: s = !1,
|
|
3257
3248
|
className: i
|
|
3258
|
-
} = t, [a, l] = ne.useState(!1), f =
|
|
3249
|
+
} = t, [a, l] = ne.useState(!1), f = xn(ae.radTrigger, ae[c], i, {
|
|
3259
3250
|
[ae.disabled]: s
|
|
3260
3251
|
});
|
|
3261
3252
|
return /* @__PURE__ */ Ze(nc, { value: n, onValueChange: r, onOpenChange: l, open: a, children: [
|
|
@@ -3272,7 +3263,7 @@ const nc = Li, oc = ki, rc = Bi, ic = Wi, cc = Hi, sc = Vi, ac = Yi, lc = qi, dc
|
|
|
3272
3263
|
/* @__PURE__ */ te(pc, { className: ae.radArrow, children: /* @__PURE__ */ te(Ut, {}) })
|
|
3273
3264
|
] }) })
|
|
3274
3265
|
] });
|
|
3275
|
-
}),
|
|
3266
|
+
}), Ic = function(t) {
|
|
3276
3267
|
const {
|
|
3277
3268
|
value: n,
|
|
3278
3269
|
options: o,
|
|
@@ -3282,12 +3273,12 @@ const nc = Li, oc = ki, rc = Bi, ic = Wi, cc = Hi, sc = Vi, ac = Yi, lc = qi, dc
|
|
|
3282
3273
|
className: i
|
|
3283
3274
|
} = t, a = ne.useCallback(({
|
|
3284
3275
|
target: f
|
|
3285
|
-
}) => r(f.value), [r]), l =
|
|
3276
|
+
}) => r(f.value), [r]), l = xn(ae.root, ae[c], i, {
|
|
3286
3277
|
[ae.disabled]: s
|
|
3287
3278
|
});
|
|
3288
3279
|
return /* @__PURE__ */ te("select", { disabled: s, className: l, value: n, onChange: a, children: o.map((f) => /* @__PURE__ */ te("option", { value: f.value, children: f.label }, f.value)) });
|
|
3289
3280
|
};
|
|
3290
3281
|
export {
|
|
3291
|
-
|
|
3292
|
-
|
|
3282
|
+
Dc as Select,
|
|
3283
|
+
Ic as Select2
|
|
3293
3284
|
};
|