@altimateai/ui-components 0.0.18 → 0.0.19
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/CoachForm.js +1 -1
- package/dist/assets/icons/index.d.ts +5 -1
- package/dist/assets/icons/index.js +15 -13
- package/dist/index2.js +72 -70
- package/dist/shadcn/index.d.ts +1 -1
- package/dist/shadcn/index.js +668 -648
- package/dist/storybook/Alert.stories.tsx +42 -2
- package/package.json +1 -1
package/dist/shadcn/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as je, u as Ke, R as Vt, I as Ht, a as Bt, b as es, C as ts, d as as, e as rs, f as ns, g as os, h as ss, S as ls, i as is, j as Gt, k as cs, A as ds, l as us, G as fs, L as ps, m as ms, n as bs, o as gs, p as vs, q as hs, r as xs, s as ws, t as ys, v as Ss, w as Cs, P as Rs, x as Ps } from "../NativeSelect.js";
|
|
2
|
-
import { ah as
|
|
3
|
-
import { a as
|
|
4
|
-
import { W as
|
|
2
|
+
import { ah as uf, ak as ff, ai as pf, aj as mf, an as bf, aw as gf, ax as vf, ar as hf, av as xf, at as wf, as as yf, ap as Sf, ao as Cf, au as Rf, aq as Pf, af as Nf, a2 as Ef, a4 as Tf, a3 as _f, a5 as Af, a8 as Mf, aa as If, ae as jf, ac as Df, ab as zf, a7 as kf, a6 as Lf, ad as $f, a9 as Of, K as Ff, Q as Vf, N as Hf, Y as Bf, O as Gf, V as Kf, Z as Uf, a1 as Wf, U as Xf, W as Yf, X as qf, _ as Jf, $ as Zf, a0 as Qf, M as ep, ay as tp, az as ap, aD as rp, aA as np, aF as op, aE as sp, aI as lp, aH as ip, aG as cp, aC as dp, aB as up, D as fp, J as pp, F as mp, E as bp, z as gp, y as vp, H as hp, B as xp, T as wp, ag as yp, al as Sp, am as Cp } from "../NativeSelect.js";
|
|
3
|
+
import { a as w, e as ce, u as q, P as O, f as E, g as ge, v as Kt, w as Ut, k as ve, n as ne, s as st, B as Ns, V as Oa, x as Es, m as Ts, q as _s, b as lt, y as As, z as Ms, E as He, G as Is, T as js, H as Ds, I as zs, J as ks, K as Ls, L as $s, S as Ce, l as Je, t as Os, o as Fa, A as Fs, D as Vs, C as Hs, p as Bs, r as Gs, M as Ks, N as Us } from "../Tooltip.js";
|
|
4
|
+
import { W as Pp, Q as Np, O as Ep, U as Tp, X as _p } from "../Tooltip.js";
|
|
5
5
|
import { j as s, S as Va, C as Ha, d as Ws, f as Xs, a as Wt, M as Ba, b as Ys, g as qs, h as Js, i as Zs, F as Qs } from "../index2.js";
|
|
6
6
|
import * as c from "react";
|
|
7
7
|
import Y, { forwardRef as De, useState as Ze, useRef as el, useCallback as Xe } from "react";
|
|
@@ -12,7 +12,7 @@ import '../index.css';const Ga = c.forwardRef(
|
|
|
12
12
|
"input",
|
|
13
13
|
{
|
|
14
14
|
type: a,
|
|
15
|
-
className:
|
|
15
|
+
className: w(
|
|
16
16
|
"al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-base al-ring-offset-background file:al-border-0 file:al-bg-transparent file:al-text-sm file:al-font-medium file:al-text-foreground placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
|
|
17
17
|
e
|
|
18
18
|
),
|
|
@@ -117,7 +117,7 @@ var sl = (e) => {
|
|
|
117
117
|
function Ya(e) {
|
|
118
118
|
return e ? "checked" : "unchecked";
|
|
119
119
|
}
|
|
120
|
-
var ll = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup", [il,
|
|
120
|
+
var ll = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Yt = "RadioGroup", [il, Du] = ce(Yt, [
|
|
121
121
|
je,
|
|
122
122
|
Ka
|
|
123
123
|
]), qa = je(), Ja = Ka(), [cl, dl] = il(Yt), Za = c.forwardRef(
|
|
@@ -225,13 +225,13 @@ var ul = "RadioGroupIndicator", tr = c.forwardRef(
|
|
|
225
225
|
);
|
|
226
226
|
tr.displayName = ul;
|
|
227
227
|
var ar = Za, rr = er, fl = tr;
|
|
228
|
-
const pl = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(ar, { className:
|
|
228
|
+
const pl = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(ar, { className: w("al-grid al-gap-2", e), ...a, ref: t }));
|
|
229
229
|
pl.displayName = ar.displayName;
|
|
230
230
|
const ml = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
231
231
|
rr,
|
|
232
232
|
{
|
|
233
233
|
ref: t,
|
|
234
|
-
className:
|
|
234
|
+
className: w(
|
|
235
235
|
"al-aspect-square al-h-4 al-w-4 al-rounded-full al-border al-border-primary al-text-primary al-ring-offset-background focus:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50",
|
|
236
236
|
e
|
|
237
237
|
),
|
|
@@ -240,7 +240,7 @@ const ml = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
240
240
|
}
|
|
241
241
|
));
|
|
242
242
|
ml.displayName = rr.displayName;
|
|
243
|
-
var qt = "Avatar", [bl,
|
|
243
|
+
var qt = "Avatar", [bl, zu] = ce(qt), [gl, nr] = bl(qt), or = c.forwardRef(
|
|
244
244
|
(e, a) => {
|
|
245
245
|
const { __scopeAvatar: t, ...r } = e, [n, o] = c.useState("idle");
|
|
246
246
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -300,7 +300,7 @@ const hl = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
300
300
|
dr,
|
|
301
301
|
{
|
|
302
302
|
ref: t,
|
|
303
|
-
className:
|
|
303
|
+
className: w(
|
|
304
304
|
"al-relative al-flex al-h-10 al-w-10 al-shrink-0 al-overflow-hidden al-rounded-full",
|
|
305
305
|
e
|
|
306
306
|
),
|
|
@@ -312,7 +312,7 @@ const xl = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
312
312
|
ur,
|
|
313
313
|
{
|
|
314
314
|
ref: t,
|
|
315
|
-
className:
|
|
315
|
+
className: w("al-aspect-square al-h-full al-w-full", e),
|
|
316
316
|
...a
|
|
317
317
|
}
|
|
318
318
|
));
|
|
@@ -321,7 +321,7 @@ const wl = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
321
321
|
fr,
|
|
322
322
|
{
|
|
323
323
|
ref: t,
|
|
324
|
-
className:
|
|
324
|
+
className: w(
|
|
325
325
|
"al-flex al-h-full al-w-full al-items-center al-justify-center al-rounded-full al-bg-muted",
|
|
326
326
|
e
|
|
327
327
|
),
|
|
@@ -329,7 +329,7 @@ const wl = De(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
329
329
|
}
|
|
330
330
|
));
|
|
331
331
|
wl.displayName = fr.displayName;
|
|
332
|
-
var Jt = "ToastProvider", [Zt, yl, Sl] = Bt("Toast"), [pr,
|
|
332
|
+
var Jt = "ToastProvider", [Zt, yl, Sl] = Bt("Toast"), [pr, ku] = ce("Toast", [Sl]), [Cl, it] = pr(Jt), mr = (e) => {
|
|
333
333
|
const {
|
|
334
334
|
__scopeToast: a,
|
|
335
335
|
label: t = "Notification",
|
|
@@ -377,7 +377,7 @@ var br = "ToastViewport", Rl = ["F8"], _t = "toast.viewportPause", At = "toast.v
|
|
|
377
377
|
}, [r]), c.useEffect(() => {
|
|
378
378
|
const g = d.current, x = f.current;
|
|
379
379
|
if (b && g && x) {
|
|
380
|
-
const
|
|
380
|
+
const y = () => {
|
|
381
381
|
if (!l.isClosePausedRef.current) {
|
|
382
382
|
const T = new CustomEvent(_t);
|
|
383
383
|
x.dispatchEvent(T), l.isClosePausedRef.current = !0;
|
|
@@ -392,35 +392,35 @@ var br = "ToastViewport", Rl = ["F8"], _t = "toast.viewportPause", At = "toast.v
|
|
|
392
392
|
}, M = () => {
|
|
393
393
|
g.contains(document.activeElement) || S();
|
|
394
394
|
};
|
|
395
|
-
return g.addEventListener("focusin",
|
|
396
|
-
g.removeEventListener("focusin",
|
|
395
|
+
return g.addEventListener("focusin", y), g.addEventListener("focusout", R), g.addEventListener("pointermove", y), g.addEventListener("pointerleave", M), window.addEventListener("blur", y), window.addEventListener("focus", S), () => {
|
|
396
|
+
g.removeEventListener("focusin", y), g.removeEventListener("focusout", R), g.removeEventListener("pointermove", y), g.removeEventListener("pointerleave", M), window.removeEventListener("blur", y), window.removeEventListener("focus", S);
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
}, [b, l.isClosePausedRef]);
|
|
400
400
|
const h = c.useCallback(
|
|
401
401
|
({ tabbingDirection: g }) => {
|
|
402
|
-
const
|
|
402
|
+
const y = i().map((S) => {
|
|
403
403
|
const R = S.ref.current, M = [R, ...Ll(R)];
|
|
404
404
|
return g === "forwards" ? M : M.reverse();
|
|
405
405
|
});
|
|
406
|
-
return (g === "forwards" ?
|
|
406
|
+
return (g === "forwards" ? y.reverse() : y).flat();
|
|
407
407
|
},
|
|
408
408
|
[i]
|
|
409
409
|
);
|
|
410
410
|
return c.useEffect(() => {
|
|
411
411
|
const g = f.current;
|
|
412
412
|
if (g) {
|
|
413
|
-
const x = (
|
|
413
|
+
const x = (y) => {
|
|
414
414
|
var M, T, P;
|
|
415
|
-
const S =
|
|
416
|
-
if (
|
|
417
|
-
const B = document.activeElement, j =
|
|
418
|
-
if (
|
|
415
|
+
const S = y.altKey || y.ctrlKey || y.metaKey;
|
|
416
|
+
if (y.key === "Tab" && !S) {
|
|
417
|
+
const B = document.activeElement, j = y.shiftKey;
|
|
418
|
+
if (y.target === g && j) {
|
|
419
419
|
(M = u.current) == null || M.focus();
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
422
|
const k = h({ tabbingDirection: j ? "backwards" : "forwards" }), W = k.findIndex((N) => N === B);
|
|
423
|
-
Ct(k.slice(W + 1)) ?
|
|
423
|
+
Ct(k.slice(W + 1)) ? y.preventDefault() : j ? (T = u.current) == null || T.focus() : (P = m.current) == null || P.focus();
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
426
|
return g.addEventListener("keydown", x), () => g.removeEventListener("keydown", x);
|
|
@@ -540,7 +540,7 @@ var [_l, Al] = pr(ct, {
|
|
|
540
540
|
onSwipeCancel: p,
|
|
541
541
|
onSwipeEnd: v,
|
|
542
542
|
...b
|
|
543
|
-
} = e, h = it(ct, t), [g, x] = c.useState(null),
|
|
543
|
+
} = e, h = it(ct, t), [g, x] = c.useState(null), y = q(a, (N) => x(N)), S = c.useRef(null), R = c.useRef(null), M = n || h.duration, T = c.useRef(0), P = c.useRef(M), B = c.useRef(0), { onToastAdd: j, onToastRemove: H } = h, I = ne(() => {
|
|
544
544
|
var $;
|
|
545
545
|
(g == null ? void 0 : g.contains(document.activeElement)) && (($ = h.viewport) == null || $.focus()), l();
|
|
546
546
|
}), k = c.useCallback(
|
|
@@ -595,7 +595,7 @@ var [_l, Al] = pr(ct, {
|
|
|
595
595
|
"data-state": o ? "open" : "closed",
|
|
596
596
|
"data-swipe-direction": h.swipeDirection,
|
|
597
597
|
...b,
|
|
598
|
-
ref:
|
|
598
|
+
ref: y,
|
|
599
599
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
600
600
|
onKeyDown: E(e.onKeyDown, (N) => {
|
|
601
601
|
N.key === "Escape" && (i == null || i(N.nativeEvent), N.nativeEvent.defaultPrevented || (h.isFocusedToastEscapeKeyDownRef.current = !0, I()));
|
|
@@ -752,7 +752,7 @@ const Ol = $l, Ir = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */
|
|
|
752
752
|
Nr,
|
|
753
753
|
{
|
|
754
754
|
ref: t,
|
|
755
|
-
className:
|
|
755
|
+
className: w(
|
|
756
756
|
"al-fixed al-top-0 al-z-[1000] al-flex al-max-h-screen al-w-full al-flex-col-reverse al-p-4 sm:al-bottom-0 sm:al-right-0 sm:al-top-auto sm:al-flex-col md:al-max-w-[420px]",
|
|
757
757
|
e
|
|
758
758
|
),
|
|
@@ -779,7 +779,7 @@ const Fl = lt(
|
|
|
779
779
|
Er,
|
|
780
780
|
{
|
|
781
781
|
ref: r,
|
|
782
|
-
className:
|
|
782
|
+
className: w(Fl({ variant: a }), e),
|
|
783
783
|
role: "alert",
|
|
784
784
|
"aria-label": a === "destructive" ? "error-notification" : "notification",
|
|
785
785
|
...t
|
|
@@ -790,7 +790,7 @@ const Vl = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
790
790
|
Ar,
|
|
791
791
|
{
|
|
792
792
|
ref: t,
|
|
793
|
-
className:
|
|
793
|
+
className: w(
|
|
794
794
|
"al-inline-flex al-h-8 al-shrink-0 al-items-center al-justify-center al-rounded-md al-border al-bg-transparent al-px-3 al-text-sm al-font-medium al-ring-offset-background al-transition-colors hover:al-bg-secondary focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50 group-[.destructive]:al-border-muted/40 group-[.destructive]:hover:al-border-destructive/30 group-[.destructive]:hover:al-bg-destructive group-[.destructive]:hover:al-text-destructive-foreground group-[.destructive]:focus:al-ring-destructive",
|
|
795
795
|
e
|
|
796
796
|
),
|
|
@@ -803,7 +803,7 @@ const Dr = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
803
803
|
Mr,
|
|
804
804
|
{
|
|
805
805
|
ref: t,
|
|
806
|
-
className:
|
|
806
|
+
className: w(
|
|
807
807
|
"al-absolute al-right-2 al-top-2 al-rounded-md al-p-1 al-text-foreground/50 al-opacity-0 al-transition-opacity hover:al-text-foreground focus:al-opacity-100 focus:al-outline-none focus:al-ring-2 group-hover:al-opacity-100 group-[.destructive]:al-text-red-300 group-[.destructive]:hover:al-text-red-50 group-[.destructive]:focus:al-ring-red-400 group-[.destructive]:focus:al-ring-offset-red-600",
|
|
808
808
|
e
|
|
809
809
|
),
|
|
@@ -819,7 +819,7 @@ const zr = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
819
819
|
Tr,
|
|
820
820
|
{
|
|
821
821
|
ref: t,
|
|
822
|
-
className:
|
|
822
|
+
className: w("al-text-sm al-font-semibold", e),
|
|
823
823
|
role: "heading",
|
|
824
824
|
"aria-level": 2,
|
|
825
825
|
...a
|
|
@@ -830,13 +830,13 @@ const kr = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
|
830
830
|
_r,
|
|
831
831
|
{
|
|
832
832
|
ref: t,
|
|
833
|
-
className:
|
|
833
|
+
className: w("al-text-sm al-opacity-90", e),
|
|
834
834
|
role: "status",
|
|
835
835
|
...a
|
|
836
836
|
}
|
|
837
837
|
));
|
|
838
838
|
kr.displayName = _r.displayName;
|
|
839
|
-
function
|
|
839
|
+
function Lu() {
|
|
840
840
|
const { toasts: e } = es();
|
|
841
841
|
return /* @__PURE__ */ s.jsxs(Ol, { children: [
|
|
842
842
|
e.map(function({ id: a, title: t, description: r, action: n, ...o }) {
|
|
@@ -853,66 +853,86 @@ function ku() {
|
|
|
853
853
|
] });
|
|
854
854
|
}
|
|
855
855
|
const Hl = lt(
|
|
856
|
-
|
|
856
|
+
w(
|
|
857
|
+
"al-relative al-w-full al-rounded-lg al-border al-p-4",
|
|
858
|
+
"[&>svg~*]:al-pl-7 [&>svg+div]:al-translate-y-[-3px] [&>svg]:al-absolute [&>svg]:al-left-4 [&>svg]:al-top-4 [&>svg]:al-text-foreground",
|
|
859
|
+
"[&>i~*]:al-pl-7 [&>i+div]:al-translate-y-[-3px] [&>i]:al-absolute [&>i]:al-left-4 [&>i]:al-top-4 [&>i]:al-text-foreground"
|
|
860
|
+
),
|
|
857
861
|
{
|
|
858
862
|
variants: {
|
|
859
863
|
variant: {
|
|
860
864
|
default: "al-bg-background al-text-foreground",
|
|
861
|
-
destructive: "al-border-destructive/50 al-text-destructive dark:al-border-destructive [&>svg]:al-text-destructive"
|
|
865
|
+
destructive: "al-border-destructive/50 al-text-destructive dark:al-border-destructive [&>svg]:al-text-destructive [&>i]:al-text-destructive",
|
|
866
|
+
warning: "al-border-yellow-500/50 al-text-yellow-800 al-bg-yellow-50 [&>svg]:al-text-yellow-600 [&>i]:al-text-yellow-600",
|
|
867
|
+
success: "al-border-green-500/50 al-text-green-800 al-bg-green-50 [&>svg]:al-text-green-600 [&>i]:al-text-green-600",
|
|
868
|
+
info: "al-border-blue-500/50 al-text-blue-800 al-bg-blue-50 [&>svg]:al-text-blue-600 [&>i]:al-text-blue-600"
|
|
862
869
|
}
|
|
863
870
|
},
|
|
864
871
|
defaultVariants: {
|
|
865
872
|
variant: "default"
|
|
866
873
|
}
|
|
867
874
|
}
|
|
868
|
-
), Bl =
|
|
875
|
+
), Bl = (e) => {
|
|
876
|
+
switch (e) {
|
|
877
|
+
case "destructive":
|
|
878
|
+
return "error-alert";
|
|
879
|
+
case "warning":
|
|
880
|
+
return "warning-alert";
|
|
881
|
+
case "success":
|
|
882
|
+
return "success-alert";
|
|
883
|
+
case "info":
|
|
884
|
+
return "info-alert";
|
|
885
|
+
default:
|
|
886
|
+
return "status-alert";
|
|
887
|
+
}
|
|
888
|
+
}, Gl = c.forwardRef(({ className: e, variant: a, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
869
889
|
"div",
|
|
870
890
|
{
|
|
871
891
|
ref: r,
|
|
872
892
|
role: "alert",
|
|
873
|
-
"aria-label": a
|
|
874
|
-
className:
|
|
893
|
+
"aria-label": Bl(a),
|
|
894
|
+
className: w(Hl({ variant: a }), e),
|
|
875
895
|
...t
|
|
876
896
|
}
|
|
877
897
|
));
|
|
878
|
-
|
|
879
|
-
const
|
|
898
|
+
Gl.displayName = "Alert";
|
|
899
|
+
const Kl = c.forwardRef(
|
|
880
900
|
({ className: e, children: a, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
881
901
|
"h5",
|
|
882
902
|
{
|
|
883
903
|
ref: r,
|
|
884
|
-
className:
|
|
904
|
+
className: w("al-mb-1 al-font-medium al-leading-none al-tracking-tight", e),
|
|
885
905
|
...t,
|
|
886
906
|
children: a
|
|
887
907
|
}
|
|
888
908
|
)
|
|
889
909
|
);
|
|
890
|
-
|
|
891
|
-
const
|
|
910
|
+
Kl.displayName = "AlertTitle";
|
|
911
|
+
const Ul = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
892
912
|
"div",
|
|
893
913
|
{
|
|
894
914
|
ref: t,
|
|
895
|
-
className:
|
|
915
|
+
className: w("al-text-sm [&_p]:al-leading-relaxed", e),
|
|
896
916
|
role: "alert",
|
|
897
917
|
"aria-label": "alert-description",
|
|
898
918
|
...a
|
|
899
919
|
}
|
|
900
920
|
));
|
|
901
|
-
|
|
902
|
-
var ea = "Progress", ta = 100, [
|
|
921
|
+
Ul.displayName = "AlertDescription";
|
|
922
|
+
var ea = "Progress", ta = 100, [Wl, $u] = ce(ea), [Xl, Yl] = Wl(ea), Lr = c.forwardRef(
|
|
903
923
|
(e, a) => {
|
|
904
924
|
const {
|
|
905
925
|
__scopeProgress: t,
|
|
906
926
|
value: r = null,
|
|
907
927
|
max: n,
|
|
908
|
-
getValueLabel: o =
|
|
928
|
+
getValueLabel: o = ql,
|
|
909
929
|
...l
|
|
910
930
|
} = e;
|
|
911
|
-
(n || n === 0) && !Sa(n) && console.error(
|
|
931
|
+
(n || n === 0) && !Sa(n) && console.error(Jl(`${n}`, "Progress"));
|
|
912
932
|
const i = Sa(n) ? n : ta;
|
|
913
|
-
r !== null && !Ca(r, i) && console.error(
|
|
933
|
+
r !== null && !Ca(r, i) && console.error(Zl(`${r}`, "Progress"));
|
|
914
934
|
const d = Ca(r, i) ? r : null, u = Qe(d) ? o(d, i) : void 0;
|
|
915
|
-
return /* @__PURE__ */ s.jsx(
|
|
935
|
+
return /* @__PURE__ */ s.jsx(Xl, { scope: t, value: d, max: i, children: /* @__PURE__ */ s.jsx(
|
|
916
936
|
O.div,
|
|
917
937
|
{
|
|
918
938
|
"aria-valuemax": i,
|
|
@@ -932,7 +952,7 @@ var ea = "Progress", ta = 100, [Ul, Lu] = ce(ea), [Wl, Xl] = Ul(ea), Lr = c.forw
|
|
|
932
952
|
Lr.displayName = ea;
|
|
933
953
|
var $r = "ProgressIndicator", Or = c.forwardRef(
|
|
934
954
|
(e, a) => {
|
|
935
|
-
const { __scopeProgress: t, ...r } = e, n =
|
|
955
|
+
const { __scopeProgress: t, ...r } = e, n = Yl($r, t);
|
|
936
956
|
return /* @__PURE__ */ s.jsx(
|
|
937
957
|
O.div,
|
|
938
958
|
{
|
|
@@ -946,7 +966,7 @@ var $r = "ProgressIndicator", Or = c.forwardRef(
|
|
|
946
966
|
}
|
|
947
967
|
);
|
|
948
968
|
Or.displayName = $r;
|
|
949
|
-
function
|
|
969
|
+
function ql(e, a) {
|
|
950
970
|
return `${Math.round(e / a * 100)}%`;
|
|
951
971
|
}
|
|
952
972
|
function Fr(e, a) {
|
|
@@ -961,10 +981,10 @@ function Sa(e) {
|
|
|
961
981
|
function Ca(e, a) {
|
|
962
982
|
return Qe(e) && !isNaN(e) && e <= a && e >= 0;
|
|
963
983
|
}
|
|
964
|
-
function
|
|
984
|
+
function Jl(e, a) {
|
|
965
985
|
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ta}\`.`;
|
|
966
986
|
}
|
|
967
|
-
function
|
|
987
|
+
function Zl(e, a) {
|
|
968
988
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${a}\`. The \`value\` prop must be:
|
|
969
989
|
- a positive number
|
|
970
990
|
- less than the value passed to \`max\` (or ${ta} if no \`max\` prop is set)
|
|
@@ -972,21 +992,21 @@ function Jl(e, a) {
|
|
|
972
992
|
|
|
973
993
|
Defaulting to \`null\`.`;
|
|
974
994
|
}
|
|
975
|
-
var Vr = Lr,
|
|
976
|
-
const
|
|
995
|
+
var Vr = Lr, Ql = Or;
|
|
996
|
+
const ei = c.forwardRef(({ className: e, value: a, ...t }, r) => {
|
|
977
997
|
const n = a ?? 0, o = 100 - n;
|
|
978
998
|
return /* @__PURE__ */ s.jsx(
|
|
979
999
|
Vr,
|
|
980
1000
|
{
|
|
981
1001
|
ref: r,
|
|
982
|
-
className:
|
|
1002
|
+
className: w(
|
|
983
1003
|
"al-relative al-h-4 al-w-full al-overflow-hidden al-rounded-full al-bg-secondary",
|
|
984
1004
|
e
|
|
985
1005
|
),
|
|
986
1006
|
value: n,
|
|
987
1007
|
...t,
|
|
988
1008
|
children: /* @__PURE__ */ s.jsx(
|
|
989
|
-
|
|
1009
|
+
Ql,
|
|
990
1010
|
{
|
|
991
1011
|
role: "presentation",
|
|
992
1012
|
"aria-label": "Progress indicator",
|
|
@@ -999,8 +1019,8 @@ const Ql = c.forwardRef(({ className: e, value: a, ...t }, r) => {
|
|
|
999
1019
|
}
|
|
1000
1020
|
);
|
|
1001
1021
|
});
|
|
1002
|
-
|
|
1003
|
-
const
|
|
1022
|
+
ei.displayName = Vr.displayName;
|
|
1023
|
+
const Ou = ({
|
|
1004
1024
|
options: e,
|
|
1005
1025
|
value: a,
|
|
1006
1026
|
onChange: t,
|
|
@@ -1072,7 +1092,7 @@ const $u = ({
|
|
|
1072
1092
|
] }) })
|
|
1073
1093
|
] });
|
|
1074
1094
|
}, Rt = 768;
|
|
1075
|
-
function
|
|
1095
|
+
function ti() {
|
|
1076
1096
|
const [e, a] = c.useState(void 0);
|
|
1077
1097
|
return c.useEffect(() => {
|
|
1078
1098
|
const t = window.matchMedia(`(max-width: ${Rt - 1}px)`), r = () => {
|
|
@@ -1081,8 +1101,8 @@ function ei() {
|
|
|
1081
1101
|
return t.addEventListener("change", r), a(window.innerWidth < Rt), () => t.removeEventListener("change", r);
|
|
1082
1102
|
}, []), !!e;
|
|
1083
1103
|
}
|
|
1084
|
-
var
|
|
1085
|
-
const { decorative: t, orientation: r = Ra, ...n } = e, o =
|
|
1104
|
+
var ai = "Separator", Ra = "horizontal", ri = ["horizontal", "vertical"], Hr = c.forwardRef((e, a) => {
|
|
1105
|
+
const { decorative: t, orientation: r = Ra, ...n } = e, o = ni(r) ? r : Ra, i = t ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
|
|
1086
1106
|
return /* @__PURE__ */ s.jsx(
|
|
1087
1107
|
O.div,
|
|
1088
1108
|
{
|
|
@@ -1093,9 +1113,9 @@ var ti = "Separator", Ra = "horizontal", ai = ["horizontal", "vertical"], Hr = c
|
|
|
1093
1113
|
}
|
|
1094
1114
|
);
|
|
1095
1115
|
});
|
|
1096
|
-
Hr.displayName =
|
|
1097
|
-
function
|
|
1098
|
-
return
|
|
1116
|
+
Hr.displayName = ai;
|
|
1117
|
+
function ni(e) {
|
|
1118
|
+
return ri.includes(e);
|
|
1099
1119
|
}
|
|
1100
1120
|
var Br = Hr;
|
|
1101
1121
|
const Gr = c.forwardRef(({ className: e, orientation: a = "horizontal", decorative: t = !0, ...r }, n) => /* @__PURE__ */ s.jsx(
|
|
@@ -1104,7 +1124,7 @@ const Gr = c.forwardRef(({ className: e, orientation: a = "horizontal", decorati
|
|
|
1104
1124
|
ref: n,
|
|
1105
1125
|
decorative: t,
|
|
1106
1126
|
orientation: a,
|
|
1107
|
-
className:
|
|
1127
|
+
className: w(
|
|
1108
1128
|
"al-shrink-0 al-bg-border",
|
|
1109
1129
|
a === "horizontal" ? "al-h-[1px] al-w-full" : "al-h-full al-w-[1px]",
|
|
1110
1130
|
e
|
|
@@ -1114,16 +1134,16 @@ const Gr = c.forwardRef(({ className: e, orientation: a = "horizontal", decorati
|
|
|
1114
1134
|
));
|
|
1115
1135
|
Gr.displayName = Br.displayName;
|
|
1116
1136
|
function Pa({ className: e, ...a }) {
|
|
1117
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
1137
|
+
return /* @__PURE__ */ s.jsx("div", { className: w("al-animate-pulse al-rounded-md al-bg-muted", e), ...a });
|
|
1118
1138
|
}
|
|
1119
|
-
const
|
|
1139
|
+
const oi = "sidebar:state", si = 60 * 60 * 24 * 7, li = "16rem", ii = "18rem", ci = "3rem", di = "b", Kr = c.createContext(null);
|
|
1120
1140
|
function dt() {
|
|
1121
1141
|
const e = c.useContext(Kr);
|
|
1122
1142
|
if (!e)
|
|
1123
1143
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
1124
1144
|
return e;
|
|
1125
1145
|
}
|
|
1126
|
-
const
|
|
1146
|
+
const ui = c.forwardRef(
|
|
1127
1147
|
({
|
|
1128
1148
|
defaultOpen: e = !0,
|
|
1129
1149
|
open: a,
|
|
@@ -1133,18 +1153,18 @@ const di = c.forwardRef(
|
|
|
1133
1153
|
children: o,
|
|
1134
1154
|
...l
|
|
1135
1155
|
}, i) => {
|
|
1136
|
-
const d =
|
|
1137
|
-
(
|
|
1138
|
-
const S = typeof
|
|
1139
|
-
t ? t(S) : p(S), document.cookie = `${
|
|
1156
|
+
const d = ti(), [u, m] = c.useState(!1), [f, p] = c.useState(e), v = a ?? f, b = c.useCallback(
|
|
1157
|
+
(y) => {
|
|
1158
|
+
const S = typeof y == "function" ? y(v) : y;
|
|
1159
|
+
t ? t(S) : p(S), document.cookie = `${oi}=${S}; path=/; max-age=${si}`;
|
|
1140
1160
|
},
|
|
1141
1161
|
[t, v]
|
|
1142
|
-
), h = c.useCallback(() => d ? m((
|
|
1162
|
+
), h = c.useCallback(() => d ? m((y) => !y) : b((y) => !y), [d, b, m]);
|
|
1143
1163
|
c.useEffect(() => {
|
|
1144
|
-
const
|
|
1145
|
-
S.key ===
|
|
1164
|
+
const y = (S) => {
|
|
1165
|
+
S.key === di && (S.metaKey || S.ctrlKey) && (S.preventDefault(), h());
|
|
1146
1166
|
};
|
|
1147
|
-
return window.addEventListener("keydown",
|
|
1167
|
+
return window.addEventListener("keydown", y), () => window.removeEventListener("keydown", y);
|
|
1148
1168
|
}, [h]);
|
|
1149
1169
|
const g = v ? "expanded" : "collapsed", x = c.useMemo(
|
|
1150
1170
|
() => ({
|
|
@@ -1162,11 +1182,11 @@ const di = c.forwardRef(
|
|
|
1162
1182
|
"div",
|
|
1163
1183
|
{
|
|
1164
1184
|
style: {
|
|
1165
|
-
"--sidebar-width":
|
|
1166
|
-
"--sidebar-width-icon":
|
|
1185
|
+
"--sidebar-width": li,
|
|
1186
|
+
"--sidebar-width-icon": ci,
|
|
1167
1187
|
...n
|
|
1168
1188
|
},
|
|
1169
|
-
className:
|
|
1189
|
+
className: w(
|
|
1170
1190
|
"al-group/sidebar-wrapper al-flex al-min-h-svh al-w-full has-[[data-variant=inset]]:al-bg-sidebar",
|
|
1171
1191
|
r
|
|
1172
1192
|
),
|
|
@@ -1177,8 +1197,8 @@ const di = c.forwardRef(
|
|
|
1177
1197
|
) }) });
|
|
1178
1198
|
}
|
|
1179
1199
|
);
|
|
1180
|
-
|
|
1181
|
-
const
|
|
1200
|
+
ui.displayName = "SidebarProvider";
|
|
1201
|
+
const fi = c.forwardRef(
|
|
1182
1202
|
({
|
|
1183
1203
|
side: e = "left",
|
|
1184
1204
|
variant: a = "sidebar",
|
|
@@ -1191,7 +1211,7 @@ const ui = c.forwardRef(
|
|
|
1191
1211
|
return t === "none" ? /* @__PURE__ */ s.jsx(
|
|
1192
1212
|
"div",
|
|
1193
1213
|
{
|
|
1194
|
-
className:
|
|
1214
|
+
className: w(
|
|
1195
1215
|
"al-flex al-h-full al-w-[--sidebar-width] al-flex-col al-bg-sidebar al-text-sidebar-foreground",
|
|
1196
1216
|
r
|
|
1197
1217
|
),
|
|
@@ -1206,7 +1226,7 @@ const ui = c.forwardRef(
|
|
|
1206
1226
|
"data-mobile": "true",
|
|
1207
1227
|
className: "al-w-[--sidebar-width] al-bg-sidebar al-p-0 al-text-sidebar-foreground [&>button]:al-hidden",
|
|
1208
1228
|
style: {
|
|
1209
|
-
"--sidebar-width":
|
|
1229
|
+
"--sidebar-width": ii
|
|
1210
1230
|
},
|
|
1211
1231
|
side: e,
|
|
1212
1232
|
children: /* @__PURE__ */ s.jsx("div", { className: "al-flex al-h-full al-w-full al-flex-col", children: n })
|
|
@@ -1224,7 +1244,7 @@ const ui = c.forwardRef(
|
|
|
1224
1244
|
/* @__PURE__ */ s.jsx(
|
|
1225
1245
|
"div",
|
|
1226
1246
|
{
|
|
1227
|
-
className:
|
|
1247
|
+
className: w(
|
|
1228
1248
|
"al-duration-200 al-relative al-h-svh al-w-[--sidebar-width] al-bg-transparent al-transition-[width] al-ease-linear",
|
|
1229
1249
|
"group-data-[collapsible=offcanvas]:al-w-0",
|
|
1230
1250
|
"group-data-[side=right]:al-rotate-180",
|
|
@@ -1235,7 +1255,7 @@ const ui = c.forwardRef(
|
|
|
1235
1255
|
/* @__PURE__ */ s.jsx(
|
|
1236
1256
|
"div",
|
|
1237
1257
|
{
|
|
1238
|
-
className:
|
|
1258
|
+
className: w(
|
|
1239
1259
|
"al-duration-200 al-fixed al-inset-y-0 al-z-10 al-hidden al-h-svh al-w-[--sidebar-width] al-transition-[left,right,width] al-ease-linear md:al-flex",
|
|
1240
1260
|
e === "left" ? "al-left-0 group-data-[collapsible=offcanvas]:al-left-[calc(var(--sidebar-width)*-1)]" : "al-right-0 group-data-[collapsible=offcanvas]:al-right-[calc(var(--sidebar-width)*-1)]",
|
|
1241
1261
|
// Adjust the padding for floating and inset variants.
|
|
@@ -1258,8 +1278,8 @@ const ui = c.forwardRef(
|
|
|
1258
1278
|
);
|
|
1259
1279
|
}
|
|
1260
1280
|
);
|
|
1261
|
-
|
|
1262
|
-
const
|
|
1281
|
+
fi.displayName = "Sidebar";
|
|
1282
|
+
const pi = c.forwardRef(({ className: e, onClick: a, ...t }, r) => {
|
|
1263
1283
|
const { toggleSidebar: n } = dt();
|
|
1264
1284
|
return /* @__PURE__ */ s.jsxs(
|
|
1265
1285
|
He,
|
|
@@ -1268,7 +1288,7 @@ const fi = c.forwardRef(({ className: e, onClick: a, ...t }, r) => {
|
|
|
1268
1288
|
"data-sidebar": "trigger",
|
|
1269
1289
|
variant: "ghost",
|
|
1270
1290
|
size: "icon",
|
|
1271
|
-
className:
|
|
1291
|
+
className: w("al-h-7 al-w-7", e),
|
|
1272
1292
|
onClick: (o) => {
|
|
1273
1293
|
a == null || a(o), n();
|
|
1274
1294
|
},
|
|
@@ -1280,8 +1300,8 @@ const fi = c.forwardRef(({ className: e, onClick: a, ...t }, r) => {
|
|
|
1280
1300
|
}
|
|
1281
1301
|
);
|
|
1282
1302
|
});
|
|
1283
|
-
|
|
1284
|
-
const
|
|
1303
|
+
pi.displayName = "SidebarTrigger";
|
|
1304
|
+
const mi = c.forwardRef(
|
|
1285
1305
|
({ className: e, ...a }, t) => {
|
|
1286
1306
|
const { toggleSidebar: r } = dt();
|
|
1287
1307
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -1293,7 +1313,7 @@ const pi = c.forwardRef(
|
|
|
1293
1313
|
tabIndex: -1,
|
|
1294
1314
|
onClick: r,
|
|
1295
1315
|
title: "Toggle Sidebar",
|
|
1296
|
-
className:
|
|
1316
|
+
className: w(
|
|
1297
1317
|
"al-absolute al-inset-y-0 al-z-20 al-hidden al-w-4 al--translate-x-1/2 al-transition-all al-ease-linear after:al-absolute after:al-inset-y-0 after:al-left-1/2 after:al-w-[2px] hover:after:al-bg-sidebar-border group-data-[side=left]:al--right-4 group-data-[side=right]:al-left-0 sm:al-flex",
|
|
1298
1318
|
"[[data-side=left]_&]:al-cursor-w-resize [[data-side=right]_&]:al-cursor-e-resize",
|
|
1299
1319
|
"[[data-side=left][data-state=collapsed]_&]:al-cursor-e-resize [[data-side=right][data-state=collapsed]_&]:al-cursor-w-resize",
|
|
@@ -1307,13 +1327,13 @@ const pi = c.forwardRef(
|
|
|
1307
1327
|
);
|
|
1308
1328
|
}
|
|
1309
1329
|
);
|
|
1310
|
-
|
|
1311
|
-
const
|
|
1330
|
+
mi.displayName = "SidebarRail";
|
|
1331
|
+
const bi = c.forwardRef(
|
|
1312
1332
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1313
1333
|
"main",
|
|
1314
1334
|
{
|
|
1315
1335
|
ref: t,
|
|
1316
|
-
className:
|
|
1336
|
+
className: w(
|
|
1317
1337
|
"al-relative al-flex al-min-h-svh al-flex-1 al-flex-col al-bg-background",
|
|
1318
1338
|
"peer-data-[variant=inset]:al-min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:al-m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:al-ml-2 md:peer-data-[variant=inset]:al-ml-0 md:peer-data-[variant=inset]:al-rounded-xl md:peer-data-[variant=inset]:al-shadow",
|
|
1319
1339
|
e
|
|
@@ -1322,61 +1342,61 @@ const mi = c.forwardRef(
|
|
|
1322
1342
|
}
|
|
1323
1343
|
)
|
|
1324
1344
|
);
|
|
1325
|
-
|
|
1326
|
-
const
|
|
1345
|
+
bi.displayName = "SidebarInset";
|
|
1346
|
+
const gi = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1327
1347
|
Ga,
|
|
1328
1348
|
{
|
|
1329
1349
|
ref: t,
|
|
1330
1350
|
"data-sidebar": "input",
|
|
1331
|
-
className:
|
|
1351
|
+
className: w(
|
|
1332
1352
|
"al-h-8 al-w-full al-bg-background al-shadow-none focus-visible:al-ring-2 focus-visible:al-ring-sidebar-ring",
|
|
1333
1353
|
e
|
|
1334
1354
|
),
|
|
1335
1355
|
...a
|
|
1336
1356
|
}
|
|
1337
1357
|
));
|
|
1338
|
-
|
|
1339
|
-
const
|
|
1358
|
+
gi.displayName = "SidebarInput";
|
|
1359
|
+
const vi = c.forwardRef(
|
|
1340
1360
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1341
1361
|
"div",
|
|
1342
1362
|
{
|
|
1343
1363
|
ref: t,
|
|
1344
1364
|
"data-sidebar": "header",
|
|
1345
|
-
className:
|
|
1365
|
+
className: w("al-flex al-flex-col al-gap-2 al-p-2", e),
|
|
1346
1366
|
...a
|
|
1347
1367
|
}
|
|
1348
1368
|
)
|
|
1349
1369
|
);
|
|
1350
|
-
|
|
1351
|
-
const
|
|
1370
|
+
vi.displayName = "SidebarHeader";
|
|
1371
|
+
const hi = c.forwardRef(
|
|
1352
1372
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1353
1373
|
"div",
|
|
1354
1374
|
{
|
|
1355
1375
|
ref: t,
|
|
1356
1376
|
"data-sidebar": "footer",
|
|
1357
|
-
className:
|
|
1377
|
+
className: w("al-flex al-flex-col al-gap-2 al-p-2", e),
|
|
1358
1378
|
...a
|
|
1359
1379
|
}
|
|
1360
1380
|
)
|
|
1361
1381
|
);
|
|
1362
|
-
|
|
1363
|
-
const
|
|
1382
|
+
hi.displayName = "SidebarFooter";
|
|
1383
|
+
const xi = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1364
1384
|
Gr,
|
|
1365
1385
|
{
|
|
1366
1386
|
ref: t,
|
|
1367
1387
|
"data-sidebar": "separator",
|
|
1368
|
-
className:
|
|
1388
|
+
className: w("al-mx-2 al-w-auto al-bg-sidebar-border", e),
|
|
1369
1389
|
...a
|
|
1370
1390
|
}
|
|
1371
1391
|
));
|
|
1372
|
-
|
|
1373
|
-
const
|
|
1392
|
+
xi.displayName = "SidebarSeparator";
|
|
1393
|
+
const wi = c.forwardRef(
|
|
1374
1394
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1375
1395
|
"div",
|
|
1376
1396
|
{
|
|
1377
1397
|
ref: t,
|
|
1378
1398
|
"data-sidebar": "content",
|
|
1379
|
-
className:
|
|
1399
|
+
className: w(
|
|
1380
1400
|
"al-flex al-min-h-0 al-flex-1 al-flex-col al-gap-2 al-overflow-auto group-data-[collapsible=icon]:al-overflow-hidden",
|
|
1381
1401
|
e
|
|
1382
1402
|
),
|
|
@@ -1384,27 +1404,27 @@ const xi = c.forwardRef(
|
|
|
1384
1404
|
}
|
|
1385
1405
|
)
|
|
1386
1406
|
);
|
|
1387
|
-
|
|
1388
|
-
const
|
|
1407
|
+
wi.displayName = "SidebarContent";
|
|
1408
|
+
const yi = c.forwardRef(
|
|
1389
1409
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1390
1410
|
"div",
|
|
1391
1411
|
{
|
|
1392
1412
|
ref: t,
|
|
1393
1413
|
"data-sidebar": "group",
|
|
1394
|
-
className:
|
|
1414
|
+
className: w("al-relative al-flex al-w-full al-min-w-0 al-flex-col al-p-2", e),
|
|
1395
1415
|
...a
|
|
1396
1416
|
}
|
|
1397
1417
|
)
|
|
1398
1418
|
);
|
|
1399
|
-
|
|
1400
|
-
const
|
|
1419
|
+
yi.displayName = "SidebarGroup";
|
|
1420
|
+
const Si = c.forwardRef(({ className: e, asChild: a = !1, ...t }, r) => {
|
|
1401
1421
|
const n = a ? Ce : "div";
|
|
1402
1422
|
return /* @__PURE__ */ s.jsx(
|
|
1403
1423
|
n,
|
|
1404
1424
|
{
|
|
1405
1425
|
ref: r,
|
|
1406
1426
|
"data-sidebar": "group-label",
|
|
1407
|
-
className:
|
|
1427
|
+
className: w(
|
|
1408
1428
|
"al-duration-200 al-flex al-h-8 al-shrink-0 al-items-center al-rounded-md al-px-2 al-text-xs al-font-medium al-text-sidebar-foreground/70 al-outline-none al-ring-sidebar-ring al-transition-[margin,opa] al-ease-linear focus-visible:al-ring-2 [&>svg]:al-size-4 [&>svg]:al-shrink-0",
|
|
1409
1429
|
"group-data-[collapsible=icon]:al--mt-8 group-data-[collapsible=icon]:al-opacity-0",
|
|
1410
1430
|
e
|
|
@@ -1413,15 +1433,15 @@ const yi = c.forwardRef(({ className: e, asChild: a = !1, ...t }, r) => {
|
|
|
1413
1433
|
}
|
|
1414
1434
|
);
|
|
1415
1435
|
});
|
|
1416
|
-
|
|
1417
|
-
const
|
|
1436
|
+
Si.displayName = "SidebarGroupLabel";
|
|
1437
|
+
const Ci = c.forwardRef(({ className: e, asChild: a = !1, ...t }, r) => {
|
|
1418
1438
|
const n = a ? Ce : "button";
|
|
1419
1439
|
return /* @__PURE__ */ s.jsx(
|
|
1420
1440
|
n,
|
|
1421
1441
|
{
|
|
1422
1442
|
ref: r,
|
|
1423
1443
|
"data-sidebar": "group-action",
|
|
1424
|
-
className:
|
|
1444
|
+
className: w(
|
|
1425
1445
|
"al-absolute al-right-3 al-top-3.5 al-flex al-aspect-square al-w-5 al-items-center al-justify-center al-rounded-md al-p-0 al-text-sidebar-foreground al-outline-none al-ring-sidebar-ring al-transition-transform hover:al-bg-sidebar-accent hover:al-text-sidebar-accent-foreground focus-visible:al-ring-2 [&>svg]:al-size-4 [&>svg]:al-shrink-0",
|
|
1426
1446
|
// Increases the hit area of the button on mobile.
|
|
1427
1447
|
"after:al-absolute after:al--inset-2 after:md:al-hidden",
|
|
@@ -1432,44 +1452,44 @@ const Si = c.forwardRef(({ className: e, asChild: a = !1, ...t }, r) => {
|
|
|
1432
1452
|
}
|
|
1433
1453
|
);
|
|
1434
1454
|
});
|
|
1435
|
-
|
|
1436
|
-
const
|
|
1455
|
+
Ci.displayName = "SidebarGroupAction";
|
|
1456
|
+
const Ri = c.forwardRef(
|
|
1437
1457
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1438
1458
|
"div",
|
|
1439
1459
|
{
|
|
1440
1460
|
ref: t,
|
|
1441
1461
|
"data-sidebar": "group-content",
|
|
1442
|
-
className:
|
|
1462
|
+
className: w("al-w-full al-text-sm", e),
|
|
1443
1463
|
...a
|
|
1444
1464
|
}
|
|
1445
1465
|
)
|
|
1446
1466
|
);
|
|
1447
|
-
|
|
1448
|
-
const
|
|
1467
|
+
Ri.displayName = "SidebarGroupContent";
|
|
1468
|
+
const Pi = c.forwardRef(
|
|
1449
1469
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1450
1470
|
"ul",
|
|
1451
1471
|
{
|
|
1452
1472
|
ref: t,
|
|
1453
1473
|
"data-sidebar": "menu",
|
|
1454
|
-
className:
|
|
1474
|
+
className: w("al-flex al-w-full al-min-w-0 al-flex-col al-gap-1", e),
|
|
1455
1475
|
...a
|
|
1456
1476
|
}
|
|
1457
1477
|
)
|
|
1458
1478
|
);
|
|
1459
|
-
|
|
1460
|
-
const
|
|
1479
|
+
Pi.displayName = "SidebarMenu";
|
|
1480
|
+
const Ni = c.forwardRef(
|
|
1461
1481
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1462
1482
|
"li",
|
|
1463
1483
|
{
|
|
1464
1484
|
ref: t,
|
|
1465
1485
|
"data-sidebar": "menu-item",
|
|
1466
|
-
className:
|
|
1486
|
+
className: w("al-group/menu-item al-relative", e),
|
|
1467
1487
|
...a
|
|
1468
1488
|
}
|
|
1469
1489
|
)
|
|
1470
1490
|
);
|
|
1471
|
-
|
|
1472
|
-
const
|
|
1491
|
+
Ni.displayName = "SidebarMenuItem";
|
|
1492
|
+
const Ei = lt(
|
|
1473
1493
|
"al-peer/menu-button al-flex al-w-full al-items-center al-gap-2 al-overflow-hidden al-rounded-md al-p-2 al-text-left al-text-sm al-outline-none al-ring-sidebar-ring al-transition-[width,height,padding] hover:al-bg-sidebar-accent hover:al-text-sidebar-accent-foreground focus-visible:al-ring-2 active:al-bg-sidebar-accent active:al-text-sidebar-accent-foreground disabled:al-pointer-events-none disabled:al-opacity-50 al-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:al-pointer-events-none aria-disabled:al-opacity-50 data-[active=true]:al-bg-sidebar-accent data-[active=true]:al-font-medium data-[active=true]:al-text-sidebar-accent-foreground data-[state=open]:hover:al-bg-sidebar-accent data-[state=open]:hover:al-text-sidebar-accent-foreground group-data-[collapsible=icon]:al-!size-8 group-data-[collapsible=icon]:al-!p-2 [&>span:last-child]:al-truncate [&>svg]:al-size-4 [&>svg]:al-shrink-0",
|
|
1474
1494
|
{
|
|
1475
1495
|
variants: {
|
|
@@ -1488,7 +1508,7 @@ const Ni = lt(
|
|
|
1488
1508
|
size: "default"
|
|
1489
1509
|
}
|
|
1490
1510
|
}
|
|
1491
|
-
),
|
|
1511
|
+
), Ti = c.forwardRef(
|
|
1492
1512
|
({
|
|
1493
1513
|
asChild: e = !1,
|
|
1494
1514
|
isActive: a = !1,
|
|
@@ -1505,7 +1525,7 @@ const Ni = lt(
|
|
|
1505
1525
|
"data-sidebar": "menu-button",
|
|
1506
1526
|
"data-size": r,
|
|
1507
1527
|
"data-active": a,
|
|
1508
|
-
className:
|
|
1528
|
+
className: w(Ei({ variant: t, size: r }), o),
|
|
1509
1529
|
...l
|
|
1510
1530
|
}
|
|
1511
1531
|
);
|
|
@@ -1525,15 +1545,15 @@ const Ni = lt(
|
|
|
1525
1545
|
] })) : f;
|
|
1526
1546
|
}
|
|
1527
1547
|
);
|
|
1528
|
-
|
|
1529
|
-
const
|
|
1548
|
+
Ti.displayName = "SidebarMenuButton";
|
|
1549
|
+
const _i = c.forwardRef(({ className: e, asChild: a = !1, showOnHover: t = !1, ...r }, n) => {
|
|
1530
1550
|
const o = a ? Ce : "button";
|
|
1531
1551
|
return /* @__PURE__ */ s.jsx(
|
|
1532
1552
|
o,
|
|
1533
1553
|
{
|
|
1534
1554
|
ref: n,
|
|
1535
1555
|
"data-sidebar": "menu-action",
|
|
1536
|
-
className:
|
|
1556
|
+
className: w(
|
|
1537
1557
|
"al-absolute al-right-1 al-top-1.5 al-flex al-aspect-square al-w-5 al-items-center al-justify-center al-rounded-md al-p-0 al-text-sidebar-foreground al-outline-none al-ring-sidebar-ring al-transition-transform hover:al-bg-sidebar-accent hover:al-text-sidebar-accent-foreground focus-visible:al-ring-2 al-peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:al-size-4 [&>svg]:al-shrink-0",
|
|
1538
1558
|
// Increases the hit area of the button on mobile.
|
|
1539
1559
|
"after:al-absolute after:al--inset-2 after:md:al-hidden",
|
|
@@ -1548,14 +1568,14 @@ const Ti = c.forwardRef(({ className: e, asChild: a = !1, showOnHover: t = !1, .
|
|
|
1548
1568
|
}
|
|
1549
1569
|
);
|
|
1550
1570
|
});
|
|
1551
|
-
|
|
1552
|
-
const
|
|
1571
|
+
_i.displayName = "SidebarMenuAction";
|
|
1572
|
+
const Ai = c.forwardRef(
|
|
1553
1573
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1554
1574
|
"div",
|
|
1555
1575
|
{
|
|
1556
1576
|
ref: t,
|
|
1557
1577
|
"data-sidebar": "menu-badge",
|
|
1558
|
-
className:
|
|
1578
|
+
className: w(
|
|
1559
1579
|
"al-absolute al-right-1 al-flex al-h-5 al-min-w-5 al-items-center al-justify-center al-rounded-md al-px-1 al-text-xs al-font-medium al-tabular-nums al-text-sidebar-foreground al-select-none al-pointer-events-none",
|
|
1560
1580
|
"al-peer-hover/menu-button:text-sidebar-accent-foreground al-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
1561
1581
|
"al-peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -1568,15 +1588,15 @@ const _i = c.forwardRef(
|
|
|
1568
1588
|
}
|
|
1569
1589
|
)
|
|
1570
1590
|
);
|
|
1571
|
-
|
|
1572
|
-
const
|
|
1591
|
+
Ai.displayName = "SidebarMenuBadge";
|
|
1592
|
+
const Mi = c.forwardRef(({ className: e, showIcon: a = !1, ...t }, r) => {
|
|
1573
1593
|
const n = c.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
1574
1594
|
return /* @__PURE__ */ s.jsxs(
|
|
1575
1595
|
"div",
|
|
1576
1596
|
{
|
|
1577
1597
|
ref: r,
|
|
1578
1598
|
"data-sidebar": "menu-skeleton",
|
|
1579
|
-
className:
|
|
1599
|
+
className: w("al-rounded-md al-h-8 al-flex al-gap-2 al-px-2 al-items-center", e),
|
|
1580
1600
|
...t,
|
|
1581
1601
|
children: [
|
|
1582
1602
|
a && /* @__PURE__ */ s.jsx(Pa, { className: "al-size-4 al-rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
@@ -1594,14 +1614,14 @@ const Ai = c.forwardRef(({ className: e, showIcon: a = !1, ...t }, r) => {
|
|
|
1594
1614
|
}
|
|
1595
1615
|
);
|
|
1596
1616
|
});
|
|
1597
|
-
|
|
1598
|
-
const
|
|
1617
|
+
Mi.displayName = "SidebarMenuSkeleton";
|
|
1618
|
+
const Ii = c.forwardRef(
|
|
1599
1619
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1600
1620
|
"ul",
|
|
1601
1621
|
{
|
|
1602
1622
|
ref: t,
|
|
1603
1623
|
"data-sidebar": "menu-sub",
|
|
1604
|
-
className:
|
|
1624
|
+
className: w(
|
|
1605
1625
|
"al-mx-3.5 al-flex al-min-w-0 al-translate-x-px al-flex-col al-gap-1 al-border-l al-border-sidebar-border al-px-2.5 al-py-0.5",
|
|
1606
1626
|
"group-data-[collapsible=icon]:al-hidden",
|
|
1607
1627
|
e
|
|
@@ -1610,12 +1630,12 @@ const Mi = c.forwardRef(
|
|
|
1610
1630
|
}
|
|
1611
1631
|
)
|
|
1612
1632
|
);
|
|
1613
|
-
|
|
1614
|
-
const
|
|
1633
|
+
Ii.displayName = "SidebarMenuSub";
|
|
1634
|
+
const ji = c.forwardRef(
|
|
1615
1635
|
({ ...e }, a) => /* @__PURE__ */ s.jsx("li", { ref: a, ...e })
|
|
1616
1636
|
);
|
|
1617
|
-
|
|
1618
|
-
const
|
|
1637
|
+
ji.displayName = "SidebarMenuSubItem";
|
|
1638
|
+
const Di = c.forwardRef(({ asChild: e = !1, size: a = "md", isActive: t, className: r, ...n }, o) => {
|
|
1619
1639
|
const l = e ? Ce : "a";
|
|
1620
1640
|
return /* @__PURE__ */ s.jsx(
|
|
1621
1641
|
l,
|
|
@@ -1624,7 +1644,7 @@ const ji = c.forwardRef(({ asChild: e = !1, size: a = "md", isActive: t, classNa
|
|
|
1624
1644
|
"data-sidebar": "menu-sub-button",
|
|
1625
1645
|
"data-size": a,
|
|
1626
1646
|
"data-active": t,
|
|
1627
|
-
className:
|
|
1647
|
+
className: w(
|
|
1628
1648
|
"al-flex al-h-7 al-min-w-0 al--translate-x-px al-items-center al-gap-2 al-overflow-hidden al-rounded-md al-px-2 al-text-sidebar-foreground al-outline-none al-ring-sidebar-ring hover:al-bg-sidebar-accent hover:al-text-sidebar-accent-foreground focus-visible:al-ring-2 active:al-bg-sidebar-accent active:al-text-sidebar-accent-foreground disabled:al-pointer-events-none disabled:al-opacity-50 aria-disabled:al-pointer-events-none aria-disabled:al-opacity-50 [&>span:last-child]:al-truncate [&>svg]:al-size-4 [&>svg]:al-shrink-0 [&>svg]:al-text-sidebar-accent-foreground",
|
|
1629
1649
|
"data-[active=true]:al-bg-sidebar-accent data-[active=true]:al-text-sidebar-accent-foreground",
|
|
1630
1650
|
a === "sm" && "al-text-xs",
|
|
@@ -1636,8 +1656,8 @@ const ji = c.forwardRef(({ asChild: e = !1, size: a = "md", isActive: t, classNa
|
|
|
1636
1656
|
}
|
|
1637
1657
|
);
|
|
1638
1658
|
});
|
|
1639
|
-
|
|
1640
|
-
var aa = "Switch", [
|
|
1659
|
+
Di.displayName = "SidebarMenuSubButton";
|
|
1660
|
+
var aa = "Switch", [zi, Fu] = ce(aa), [ki, Li] = zi(aa), Ur = c.forwardRef(
|
|
1641
1661
|
(e, a) => {
|
|
1642
1662
|
const {
|
|
1643
1663
|
__scopeSwitch: t,
|
|
@@ -1650,12 +1670,12 @@ var aa = "Switch", [Di, Ou] = ce(aa), [zi, ki] = Di(aa), Ur = c.forwardRef(
|
|
|
1650
1670
|
onCheckedChange: u,
|
|
1651
1671
|
form: m,
|
|
1652
1672
|
...f
|
|
1653
|
-
} = e, [p, v] = c.useState(null), b = q(a, (S) => v(S)), h = c.useRef(!1), g = p ? m || !!p.closest("form") : !0, [x = !1,
|
|
1673
|
+
} = e, [p, v] = c.useState(null), b = q(a, (S) => v(S)), h = c.useRef(!1), g = p ? m || !!p.closest("form") : !0, [x = !1, y] = ve({
|
|
1654
1674
|
prop: n,
|
|
1655
1675
|
defaultProp: o,
|
|
1656
1676
|
onChange: u
|
|
1657
1677
|
});
|
|
1658
|
-
return /* @__PURE__ */ s.jsxs(
|
|
1678
|
+
return /* @__PURE__ */ s.jsxs(ki, { scope: t, checked: x, disabled: i, children: [
|
|
1659
1679
|
/* @__PURE__ */ s.jsx(
|
|
1660
1680
|
O.button,
|
|
1661
1681
|
{
|
|
@@ -1670,12 +1690,12 @@ var aa = "Switch", [Di, Ou] = ce(aa), [zi, ki] = Di(aa), Ur = c.forwardRef(
|
|
|
1670
1690
|
...f,
|
|
1671
1691
|
ref: b,
|
|
1672
1692
|
onClick: E(e.onClick, (S) => {
|
|
1673
|
-
|
|
1693
|
+
y((R) => !R), g && (h.current = S.isPropagationStopped(), h.current || S.stopPropagation());
|
|
1674
1694
|
})
|
|
1675
1695
|
}
|
|
1676
1696
|
),
|
|
1677
1697
|
g && /* @__PURE__ */ s.jsx(
|
|
1678
|
-
|
|
1698
|
+
$i,
|
|
1679
1699
|
{
|
|
1680
1700
|
control: p,
|
|
1681
1701
|
bubbles: !h.current,
|
|
@@ -1694,7 +1714,7 @@ var aa = "Switch", [Di, Ou] = ce(aa), [zi, ki] = Di(aa), Ur = c.forwardRef(
|
|
|
1694
1714
|
Ur.displayName = aa;
|
|
1695
1715
|
var Wr = "SwitchThumb", Xr = c.forwardRef(
|
|
1696
1716
|
(e, a) => {
|
|
1697
|
-
const { __scopeSwitch: t, ...r } = e, n =
|
|
1717
|
+
const { __scopeSwitch: t, ...r } = e, n = Li(Wr, t);
|
|
1698
1718
|
return /* @__PURE__ */ s.jsx(
|
|
1699
1719
|
O.span,
|
|
1700
1720
|
{
|
|
@@ -1707,7 +1727,7 @@ var Wr = "SwitchThumb", Xr = c.forwardRef(
|
|
|
1707
1727
|
}
|
|
1708
1728
|
);
|
|
1709
1729
|
Xr.displayName = Wr;
|
|
1710
|
-
var
|
|
1730
|
+
var $i = (e) => {
|
|
1711
1731
|
const { control: a, checked: t, bubbles: r = !0, ...n } = e, o = c.useRef(null), l = Kt(t), i = Ut(a);
|
|
1712
1732
|
return c.useEffect(() => {
|
|
1713
1733
|
const d = o.current, u = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(u, "checked").set;
|
|
@@ -1738,30 +1758,30 @@ var Li = (e) => {
|
|
|
1738
1758
|
function Yr(e) {
|
|
1739
1759
|
return e ? "checked" : "unchecked";
|
|
1740
1760
|
}
|
|
1741
|
-
var qr = Ur,
|
|
1742
|
-
const
|
|
1761
|
+
var qr = Ur, Oi = Xr;
|
|
1762
|
+
const Fi = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1743
1763
|
qr,
|
|
1744
1764
|
{
|
|
1745
|
-
className:
|
|
1765
|
+
className: w(
|
|
1746
1766
|
"al-peer al-inline-flex al-h-6 al-w-11 al-shrink-0 al-cursor-pointer al-items-center al-rounded-full al-border-2 al-border-transparent al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 focus-visible:al-ring-offset-background disabled:al-cursor-not-allowed disabled:al-opacity-50 data-[state=checked]:al-bg-primary data-[state=unchecked]:al-bg-input",
|
|
1747
1767
|
e
|
|
1748
1768
|
),
|
|
1749
1769
|
...a,
|
|
1750
1770
|
ref: t,
|
|
1751
1771
|
children: /* @__PURE__ */ s.jsx(
|
|
1752
|
-
|
|
1772
|
+
Oi,
|
|
1753
1773
|
{
|
|
1754
|
-
className:
|
|
1774
|
+
className: w(
|
|
1755
1775
|
"al-pointer-events-none al-block al-h-5 al-w-5 al-rounded-full al-bg-background al-shadow-lg al-ring-0 al-transition-transform data-[state=checked]:al-translate-x-5 data-[state=unchecked]:al-translate-x-0"
|
|
1756
1776
|
)
|
|
1757
1777
|
}
|
|
1758
1778
|
)
|
|
1759
1779
|
}
|
|
1760
1780
|
));
|
|
1761
|
-
|
|
1762
|
-
var ra = "Tabs", [
|
|
1781
|
+
Fi.displayName = qr.displayName;
|
|
1782
|
+
var ra = "Tabs", [Vi, Vu] = ce(ra, [
|
|
1763
1783
|
je
|
|
1764
|
-
]), Jr = je(), [
|
|
1784
|
+
]), Jr = je(), [Hi, na] = Vi(ra), Zr = c.forwardRef(
|
|
1765
1785
|
(e, a) => {
|
|
1766
1786
|
const {
|
|
1767
1787
|
__scopeTabs: t,
|
|
@@ -1778,7 +1798,7 @@ var ra = "Tabs", [Fi, Fu] = ce(ra, [
|
|
|
1778
1798
|
defaultProp: o
|
|
1779
1799
|
});
|
|
1780
1800
|
return /* @__PURE__ */ s.jsx(
|
|
1781
|
-
|
|
1801
|
+
Hi,
|
|
1782
1802
|
{
|
|
1783
1803
|
scope: t,
|
|
1784
1804
|
baseId: Je(),
|
|
@@ -1900,51 +1920,51 @@ function on(e, a) {
|
|
|
1900
1920
|
function sn(e, a) {
|
|
1901
1921
|
return `${e}-content-${a}`;
|
|
1902
1922
|
}
|
|
1903
|
-
var
|
|
1904
|
-
const
|
|
1923
|
+
var Bi = Zr, ln = en, cn = an, dn = nn;
|
|
1924
|
+
const Hu = Bi, Gi = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1905
1925
|
ln,
|
|
1906
1926
|
{
|
|
1907
1927
|
ref: t,
|
|
1908
|
-
className:
|
|
1928
|
+
className: w(
|
|
1909
1929
|
"al-inline-flex al-h-10 al-items-center al-justify-center al-rounded-md al-bg-muted al-p-1 al-text-muted-foreground",
|
|
1910
1930
|
e
|
|
1911
1931
|
),
|
|
1912
1932
|
...a
|
|
1913
1933
|
}
|
|
1914
1934
|
));
|
|
1915
|
-
|
|
1916
|
-
const
|
|
1935
|
+
Gi.displayName = ln.displayName;
|
|
1936
|
+
const Ki = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1917
1937
|
cn,
|
|
1918
1938
|
{
|
|
1919
1939
|
ref: t,
|
|
1920
|
-
className:
|
|
1940
|
+
className: w(
|
|
1921
1941
|
"al-inline-flex al-items-center al-justify-center al-whitespace-nowrap al-rounded-sm al-px-3 al-py-1.5 al-text-sm al-font-medium al-ring-offset-background al-transition-all focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50 data-[state=active]:al-bg-background data-[state=active]:al-text-foreground data-[state=active]:al-shadow-sm",
|
|
1922
1942
|
e
|
|
1923
1943
|
),
|
|
1924
1944
|
...a
|
|
1925
1945
|
}
|
|
1926
1946
|
));
|
|
1927
|
-
|
|
1928
|
-
const
|
|
1947
|
+
Ki.displayName = cn.displayName;
|
|
1948
|
+
const Ui = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1929
1949
|
dn,
|
|
1930
1950
|
{
|
|
1931
1951
|
ref: t,
|
|
1932
|
-
className:
|
|
1952
|
+
className: w(
|
|
1933
1953
|
"al-mt-2 al-ring-offset-background focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2",
|
|
1934
1954
|
e
|
|
1935
1955
|
),
|
|
1936
1956
|
...a
|
|
1937
1957
|
}
|
|
1938
1958
|
));
|
|
1939
|
-
|
|
1940
|
-
const
|
|
1941
|
-
|
|
1942
|
-
const
|
|
1959
|
+
Ui.displayName = dn.displayName;
|
|
1960
|
+
const Wi = c.forwardRef(({ ...e }, a) => /* @__PURE__ */ s.jsx("nav", { ref: a, "aria-label": "breadcrumb", ...e }));
|
|
1961
|
+
Wi.displayName = "Breadcrumb";
|
|
1962
|
+
const Xi = c.forwardRef(
|
|
1943
1963
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1944
1964
|
"ol",
|
|
1945
1965
|
{
|
|
1946
1966
|
ref: t,
|
|
1947
|
-
className:
|
|
1967
|
+
className: w(
|
|
1948
1968
|
"al-flex al-flex-wrap al-items-center al-gap-1.5 al-break-words al-text-sm al-text-muted-foreground sm:al-gap-2.5",
|
|
1949
1969
|
e
|
|
1950
1970
|
),
|
|
@@ -1952,31 +1972,31 @@ const Wi = c.forwardRef(
|
|
|
1952
1972
|
}
|
|
1953
1973
|
)
|
|
1954
1974
|
);
|
|
1955
|
-
|
|
1956
|
-
const
|
|
1975
|
+
Xi.displayName = "BreadcrumbList";
|
|
1976
|
+
const Yi = c.forwardRef(
|
|
1957
1977
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1958
1978
|
"li",
|
|
1959
1979
|
{
|
|
1960
1980
|
ref: t,
|
|
1961
|
-
className:
|
|
1981
|
+
className: w("al-inline-flex al-items-center al-gap-1.5", e),
|
|
1962
1982
|
...a
|
|
1963
1983
|
}
|
|
1964
1984
|
)
|
|
1965
1985
|
);
|
|
1966
|
-
|
|
1967
|
-
const
|
|
1986
|
+
Yi.displayName = "BreadcrumbItem";
|
|
1987
|
+
const qi = c.forwardRef(({ asChild: e, className: a, ...t }, r) => {
|
|
1968
1988
|
const n = e ? Ce : "a";
|
|
1969
1989
|
return /* @__PURE__ */ s.jsx(
|
|
1970
1990
|
n,
|
|
1971
1991
|
{
|
|
1972
1992
|
ref: r,
|
|
1973
|
-
className:
|
|
1993
|
+
className: w("al-transition-colors hover:al-text-foreground", a),
|
|
1974
1994
|
...t
|
|
1975
1995
|
}
|
|
1976
1996
|
);
|
|
1977
1997
|
});
|
|
1978
|
-
|
|
1979
|
-
const
|
|
1998
|
+
qi.displayName = "BreadcrumbLink";
|
|
1999
|
+
const Ji = c.forwardRef(
|
|
1980
2000
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
1981
2001
|
"span",
|
|
1982
2002
|
{
|
|
@@ -1984,29 +2004,29 @@ const qi = c.forwardRef(
|
|
|
1984
2004
|
role: "link",
|
|
1985
2005
|
"aria-disabled": "true",
|
|
1986
2006
|
"aria-current": "page",
|
|
1987
|
-
className:
|
|
2007
|
+
className: w("al-font-normal al-text-foreground", e),
|
|
1988
2008
|
...a
|
|
1989
2009
|
}
|
|
1990
2010
|
)
|
|
1991
2011
|
);
|
|
1992
|
-
|
|
1993
|
-
const
|
|
2012
|
+
Ji.displayName = "BreadcrumbPage";
|
|
2013
|
+
const Zi = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
|
|
1994
2014
|
"li",
|
|
1995
2015
|
{
|
|
1996
2016
|
role: "presentation",
|
|
1997
2017
|
"aria-hidden": "true",
|
|
1998
|
-
className:
|
|
2018
|
+
className: w("[&>svg]:al-w-3.5 [&>svg]:al-h-3.5", a),
|
|
1999
2019
|
...t,
|
|
2000
2020
|
children: e ?? /* @__PURE__ */ s.jsx(Wt, {})
|
|
2001
2021
|
}
|
|
2002
2022
|
);
|
|
2003
|
-
|
|
2004
|
-
const
|
|
2023
|
+
Zi.displayName = "BreadcrumbSeparator";
|
|
2024
|
+
const Qi = ({ className: e, ...a }) => /* @__PURE__ */ s.jsxs(
|
|
2005
2025
|
"span",
|
|
2006
2026
|
{
|
|
2007
2027
|
role: "presentation",
|
|
2008
2028
|
"aria-hidden": "true",
|
|
2009
|
-
className:
|
|
2029
|
+
className: w("al-flex al-h-9 al-w-9 al-items-center al-justify-center", e),
|
|
2010
2030
|
...a,
|
|
2011
2031
|
children: [
|
|
2012
2032
|
/* @__PURE__ */ s.jsx(Ba, { className: "al-h-4 al-w-4" }),
|
|
@@ -2014,15 +2034,15 @@ const Zi = ({ className: e, ...a }) => /* @__PURE__ */ s.jsxs(
|
|
|
2014
2034
|
]
|
|
2015
2035
|
}
|
|
2016
2036
|
);
|
|
2017
|
-
|
|
2037
|
+
Qi.displayName = "BreadcrumbElipssis";
|
|
2018
2038
|
var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], pn = {
|
|
2019
2039
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
2020
2040
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
2021
2041
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
2022
2042
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
2023
|
-
}, ze = "Slider", [It,
|
|
2024
|
-
|
|
2025
|
-
]), [
|
|
2043
|
+
}, ze = "Slider", [It, ec, tc] = Bt(ze), [mn, Bu] = ce(ze, [
|
|
2044
|
+
tc
|
|
2045
|
+
]), [ac, ut] = mn(ze), bn = c.forwardRef(
|
|
2026
2046
|
(e, a) => {
|
|
2027
2047
|
const {
|
|
2028
2048
|
name: t,
|
|
@@ -2041,7 +2061,7 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2041
2061
|
inverted: v = !1,
|
|
2042
2062
|
form: b,
|
|
2043
2063
|
...h
|
|
2044
|
-
} = e, g = c.useRef(/* @__PURE__ */ new Set()), x = c.useRef(0), S = l === "horizontal" ?
|
|
2064
|
+
} = e, g = c.useRef(/* @__PURE__ */ new Set()), x = c.useRef(0), S = l === "horizontal" ? rc : nc, [R = [], M] = ve({
|
|
2045
2065
|
prop: m,
|
|
2046
2066
|
defaultProp: u,
|
|
2047
2067
|
onChange: (I) => {
|
|
@@ -2050,7 +2070,7 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2050
2070
|
}
|
|
2051
2071
|
}), T = c.useRef(R);
|
|
2052
2072
|
function P(I) {
|
|
2053
|
-
const k =
|
|
2073
|
+
const k = cc(R, I);
|
|
2054
2074
|
H(I, k);
|
|
2055
2075
|
}
|
|
2056
2076
|
function B(I) {
|
|
@@ -2061,10 +2081,10 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2061
2081
|
R[x.current] !== I && p(R);
|
|
2062
2082
|
}
|
|
2063
2083
|
function H(I, k, { commit: W } = { commit: !1 }) {
|
|
2064
|
-
const N =
|
|
2084
|
+
const N = pc(o), $ = mc(Math.round((I - r) / o) * o + r, N), V = Gt($, [r, n]);
|
|
2065
2085
|
M((J = []) => {
|
|
2066
|
-
const U =
|
|
2067
|
-
if (
|
|
2086
|
+
const U = lc(J, V, k);
|
|
2087
|
+
if (fc(U, d * o)) {
|
|
2068
2088
|
x.current = U.indexOf(V);
|
|
2069
2089
|
const se = String(U) !== String(J);
|
|
2070
2090
|
return se && W && p(U), se ? U : J;
|
|
@@ -2073,7 +2093,7 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2073
2093
|
});
|
|
2074
2094
|
}
|
|
2075
2095
|
return /* @__PURE__ */ s.jsx(
|
|
2076
|
-
|
|
2096
|
+
ac,
|
|
2077
2097
|
{
|
|
2078
2098
|
scope: e.__scopeSlider,
|
|
2079
2099
|
name: t,
|
|
@@ -2121,7 +2141,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2121
2141
|
endEdge: "right",
|
|
2122
2142
|
size: "width",
|
|
2123
2143
|
direction: 1
|
|
2124
|
-
}),
|
|
2144
|
+
}), rc = c.forwardRef(
|
|
2125
2145
|
(e, a) => {
|
|
2126
2146
|
const {
|
|
2127
2147
|
min: t,
|
|
@@ -2134,7 +2154,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2134
2154
|
onStepKeyDown: u,
|
|
2135
2155
|
...m
|
|
2136
2156
|
} = e, [f, p] = c.useState(null), v = q(a, (S) => p(S)), b = c.useRef(void 0), h = Ke(n), g = h === "ltr", x = g && !o || !g && o;
|
|
2137
|
-
function
|
|
2157
|
+
function y(S) {
|
|
2138
2158
|
const R = b.current || f.getBoundingClientRect(), M = [0, R.width], P = oa(M, x ? [t, r] : [r, t]);
|
|
2139
2159
|
return b.current = R, P(S - R.left);
|
|
2140
2160
|
}
|
|
@@ -2158,11 +2178,11 @@ var [gn, vn] = mn(ze, {
|
|
|
2158
2178
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
2159
2179
|
},
|
|
2160
2180
|
onSlideStart: (S) => {
|
|
2161
|
-
const R =
|
|
2181
|
+
const R = y(S.clientX);
|
|
2162
2182
|
l == null || l(R);
|
|
2163
2183
|
},
|
|
2164
2184
|
onSlideMove: (S) => {
|
|
2165
|
-
const R =
|
|
2185
|
+
const R = y(S.clientX);
|
|
2166
2186
|
i == null || i(R);
|
|
2167
2187
|
},
|
|
2168
2188
|
onSlideEnd: () => {
|
|
@@ -2177,7 +2197,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2177
2197
|
}
|
|
2178
2198
|
);
|
|
2179
2199
|
}
|
|
2180
|
-
),
|
|
2200
|
+
), nc = c.forwardRef(
|
|
2181
2201
|
(e, a) => {
|
|
2182
2202
|
const {
|
|
2183
2203
|
min: t,
|
|
@@ -2304,15 +2324,15 @@ var jt = "SliderRange", yn = c.forwardRef(
|
|
|
2304
2324
|
yn.displayName = jt;
|
|
2305
2325
|
var Dt = "SliderThumb", Sn = c.forwardRef(
|
|
2306
2326
|
(e, a) => {
|
|
2307
|
-
const t =
|
|
2327
|
+
const t = ec(e.__scopeSlider), [r, n] = c.useState(null), o = q(a, (i) => n(i)), l = c.useMemo(
|
|
2308
2328
|
() => r ? t().findIndex((i) => i.ref.current === r) : -1,
|
|
2309
2329
|
[t, r]
|
|
2310
2330
|
);
|
|
2311
|
-
return /* @__PURE__ */ s.jsx(
|
|
2331
|
+
return /* @__PURE__ */ s.jsx(oc, { ...e, ref: o, index: l });
|
|
2312
2332
|
}
|
|
2313
|
-
),
|
|
2333
|
+
), oc = c.forwardRef(
|
|
2314
2334
|
(e, a) => {
|
|
2315
|
-
const { __scopeSlider: t, index: r, name: n, ...o } = e, l = ut(Dt, t), i = vn(Dt, t), [d, u] = c.useState(null), m = q(a, (
|
|
2335
|
+
const { __scopeSlider: t, index: r, name: n, ...o } = e, l = ut(Dt, t), i = vn(Dt, t), [d, u] = c.useState(null), m = q(a, (y) => u(y)), f = d ? l.form || !!d.closest("form") : !0, p = Ut(d), v = l.values[r], b = v === void 0 ? 0 : Cn(v, l.min, l.max), h = ic(r, l.values.length), g = p == null ? void 0 : p[i.size], x = g ? dc(g, b, i.direction) : 0;
|
|
2316
2336
|
return c.useEffect(() => {
|
|
2317
2337
|
if (d)
|
|
2318
2338
|
return l.thumbs.add(d), () => {
|
|
@@ -2348,7 +2368,7 @@ var Dt = "SliderThumb", Sn = c.forwardRef(
|
|
|
2348
2368
|
}
|
|
2349
2369
|
) }),
|
|
2350
2370
|
f && /* @__PURE__ */ s.jsx(
|
|
2351
|
-
|
|
2371
|
+
sc,
|
|
2352
2372
|
{
|
|
2353
2373
|
name: n ?? (l.name ? l.name + (l.values.length > 1 ? "[]" : "") : void 0),
|
|
2354
2374
|
form: l.form,
|
|
@@ -2362,7 +2382,7 @@ var Dt = "SliderThumb", Sn = c.forwardRef(
|
|
|
2362
2382
|
}
|
|
2363
2383
|
);
|
|
2364
2384
|
Sn.displayName = Dt;
|
|
2365
|
-
var
|
|
2385
|
+
var sc = (e) => {
|
|
2366
2386
|
const { value: a, ...t } = e, r = c.useRef(null), n = Kt(a);
|
|
2367
2387
|
return c.useEffect(() => {
|
|
2368
2388
|
const o = r.current, l = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
@@ -2372,7 +2392,7 @@ var oc = (e) => {
|
|
|
2372
2392
|
}
|
|
2373
2393
|
}, [n, a]), /* @__PURE__ */ s.jsx("input", { style: { display: "none" }, ...t, ref: r, defaultValue: a });
|
|
2374
2394
|
};
|
|
2375
|
-
function
|
|
2395
|
+
function lc(e = [], a, t) {
|
|
2376
2396
|
const r = [...e];
|
|
2377
2397
|
return r[t] = a, r.sort((n, o) => n - o);
|
|
2378
2398
|
}
|
|
@@ -2380,24 +2400,24 @@ function Cn(e, a, t) {
|
|
|
2380
2400
|
const o = 100 / (t - a) * (e - a);
|
|
2381
2401
|
return Gt(o, [0, 100]);
|
|
2382
2402
|
}
|
|
2383
|
-
function
|
|
2403
|
+
function ic(e, a) {
|
|
2384
2404
|
return a > 2 ? `Value ${e + 1} of ${a}` : a === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
2385
2405
|
}
|
|
2386
|
-
function
|
|
2406
|
+
function cc(e, a) {
|
|
2387
2407
|
if (e.length === 1) return 0;
|
|
2388
2408
|
const t = e.map((n) => Math.abs(n - a)), r = Math.min(...t);
|
|
2389
2409
|
return t.indexOf(r);
|
|
2390
2410
|
}
|
|
2391
|
-
function
|
|
2411
|
+
function dc(e, a, t) {
|
|
2392
2412
|
const r = e / 2, o = oa([0, 50], [0, r]);
|
|
2393
2413
|
return (r - o(a) * t) * t;
|
|
2394
2414
|
}
|
|
2395
|
-
function
|
|
2415
|
+
function uc(e) {
|
|
2396
2416
|
return e.slice(0, -1).map((a, t) => e[t + 1] - a);
|
|
2397
2417
|
}
|
|
2398
|
-
function
|
|
2418
|
+
function fc(e, a) {
|
|
2399
2419
|
if (a > 0) {
|
|
2400
|
-
const t =
|
|
2420
|
+
const t = uc(e);
|
|
2401
2421
|
return Math.min(...t) >= a;
|
|
2402
2422
|
}
|
|
2403
2423
|
return !0;
|
|
@@ -2409,46 +2429,46 @@ function oa(e, a) {
|
|
|
2409
2429
|
return a[0] + r * (t - e[0]);
|
|
2410
2430
|
};
|
|
2411
2431
|
}
|
|
2412
|
-
function
|
|
2432
|
+
function pc(e) {
|
|
2413
2433
|
return (String(e).split(".")[1] || "").length;
|
|
2414
2434
|
}
|
|
2415
|
-
function
|
|
2435
|
+
function mc(e, a) {
|
|
2416
2436
|
const t = Math.pow(10, a);
|
|
2417
2437
|
return Math.round(e * t) / t;
|
|
2418
2438
|
}
|
|
2419
|
-
var Rn = bn,
|
|
2420
|
-
const
|
|
2439
|
+
var Rn = bn, bc = wn, gc = yn, vc = Sn;
|
|
2440
|
+
const hc = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsxs(
|
|
2421
2441
|
Rn,
|
|
2422
2442
|
{
|
|
2423
2443
|
ref: t,
|
|
2424
2444
|
role: "group",
|
|
2425
2445
|
"aria-label": "Slider",
|
|
2426
|
-
className:
|
|
2446
|
+
className: w(
|
|
2427
2447
|
"al-relative al-flex al-w-full al-touch-none al-select-none al-items-center",
|
|
2428
2448
|
e
|
|
2429
2449
|
),
|
|
2430
2450
|
...a,
|
|
2431
2451
|
children: [
|
|
2432
2452
|
/* @__PURE__ */ s.jsx(
|
|
2433
|
-
|
|
2453
|
+
bc,
|
|
2434
2454
|
{
|
|
2435
2455
|
role: "presentation",
|
|
2436
2456
|
"aria-label": "Slider track",
|
|
2437
2457
|
className: "al-relative al-h-2 al-w-full al-grow al-overflow-hidden al-rounded-full al-bg-secondary",
|
|
2438
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2458
|
+
children: /* @__PURE__ */ s.jsx(gc, { className: "al-absolute al-h-full al-bg-primary" })
|
|
2439
2459
|
}
|
|
2440
2460
|
),
|
|
2441
|
-
/* @__PURE__ */ s.jsx(
|
|
2461
|
+
/* @__PURE__ */ s.jsx(vc, { className: "al-block al-h-5 al-w-5 al-rounded-full al-border-2 al-border-primary al-bg-background al-ring-offset-background al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50" })
|
|
2442
2462
|
]
|
|
2443
2463
|
}
|
|
2444
2464
|
));
|
|
2445
|
-
|
|
2446
|
-
var
|
|
2447
|
-
const
|
|
2448
|
-
var Ue = (e) => !Pn(e) && !Array.isArray(e) &&
|
|
2465
|
+
hc.displayName = Rn.displayName;
|
|
2466
|
+
var xc = (e) => e.type === "checkbox", wc = (e) => e instanceof Date, Pn = (e) => e == null;
|
|
2467
|
+
const yc = (e) => typeof e == "object";
|
|
2468
|
+
var Ue = (e) => !Pn(e) && !Array.isArray(e) && yc(e) && !wc(e), Sc = (e) => Ue(e) && e.target ? xc(e.target) ? e.target.checked : e.target.value : e, Cc = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Rc = (e, a) => e.has(Cc(a)), Pc = (e) => {
|
|
2449
2469
|
const a = e.constructor && e.constructor.prototype;
|
|
2450
2470
|
return Ue(a) && a.hasOwnProperty("isPrototypeOf");
|
|
2451
|
-
},
|
|
2471
|
+
}, Nc = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
2452
2472
|
function Nn(e) {
|
|
2453
2473
|
let a;
|
|
2454
2474
|
const t = Array.isArray(e), r = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
@@ -2456,8 +2476,8 @@ function Nn(e) {
|
|
|
2456
2476
|
a = new Date(e);
|
|
2457
2477
|
else if (e instanceof Set)
|
|
2458
2478
|
a = new Set(e);
|
|
2459
|
-
else if (!(
|
|
2460
|
-
if (a = t ? [] : {}, !t && !
|
|
2479
|
+
else if (!(Nc && (e instanceof Blob || r)) && (t || Ue(e)))
|
|
2480
|
+
if (a = t ? [] : {}, !t && !Pc(e))
|
|
2461
2481
|
a = e;
|
|
2462
2482
|
else
|
|
2463
2483
|
for (const n in e)
|
|
@@ -2471,9 +2491,9 @@ var En = (e) => Array.isArray(e) ? e.filter(Boolean) : [], zt = (e) => e === voi
|
|
|
2471
2491
|
return t;
|
|
2472
2492
|
const r = En(a.split(/[,[\].]+?/)).reduce((n, o) => Pn(n) ? n : n[o], e);
|
|
2473
2493
|
return zt(r) || r === e ? zt(e[a]) ? t : e[a] : r;
|
|
2474
|
-
}, Pt = (e) => typeof e == "boolean",
|
|
2494
|
+
}, Pt = (e) => typeof e == "boolean", Ec = (e) => /^\w*$/.test(e), Tc = (e) => En(e.replace(/["|']|\]/g, "").split(/\.|\[/)), Na = (e, a, t) => {
|
|
2475
2495
|
let r = -1;
|
|
2476
|
-
const n =
|
|
2496
|
+
const n = Ec(a) ? [a] : Tc(a), o = n.length, l = o - 1;
|
|
2477
2497
|
for (; ++r < o; ) {
|
|
2478
2498
|
const i = n[r];
|
|
2479
2499
|
let d = t;
|
|
@@ -2496,11 +2516,11 @@ const Ea = {
|
|
|
2496
2516
|
onSubmit: "onSubmit",
|
|
2497
2517
|
onTouched: "onTouched",
|
|
2498
2518
|
all: "all"
|
|
2499
|
-
}, Tn = Y.createContext(null), ft = () => Y.useContext(Tn),
|
|
2519
|
+
}, Tn = Y.createContext(null), ft = () => Y.useContext(Tn), _c = (e) => {
|
|
2500
2520
|
const { children: a, ...t } = e;
|
|
2501
2521
|
return Y.createElement(Tn.Provider, { value: t }, a);
|
|
2502
2522
|
};
|
|
2503
|
-
var
|
|
2523
|
+
var Ac = (e, a, t, r = !0) => {
|
|
2504
2524
|
const n = {
|
|
2505
2525
|
defaultValues: a._defaultValues
|
|
2506
2526
|
};
|
|
@@ -2514,7 +2534,7 @@ var _c = (e, a, t, r = !0) => {
|
|
|
2514
2534
|
return n;
|
|
2515
2535
|
};
|
|
2516
2536
|
const _n = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
|
|
2517
|
-
function
|
|
2537
|
+
function Mc(e) {
|
|
2518
2538
|
const a = ft(), { control: t = a.control, disabled: r, name: n, exact: o } = e || {}, [l, i] = Y.useState(t._formState), d = Y.useRef({
|
|
2519
2539
|
isDirty: !1,
|
|
2520
2540
|
isLoading: !1,
|
|
@@ -2537,10 +2557,10 @@ function Ac(e) {
|
|
|
2537
2557
|
}
|
|
2538
2558
|
}), [n, r, o]), Y.useEffect(() => {
|
|
2539
2559
|
d.current.isValid && t._setValid(!0);
|
|
2540
|
-
}, [t]), Y.useMemo(() =>
|
|
2560
|
+
}, [t]), Y.useMemo(() => Ac(l, t, d.current, !1), [l, t]);
|
|
2541
2561
|
}
|
|
2542
|
-
var
|
|
2543
|
-
function
|
|
2562
|
+
var Ic = (e) => typeof e == "string", jc = (e, a, t, r, n) => Ic(e) ? te(t, e, n) : Array.isArray(e) ? e.map((o) => te(t, o)) : t;
|
|
2563
|
+
function Dc(e) {
|
|
2544
2564
|
const a = ft(), { control: t = a.control, name: r, defaultValue: n, disabled: o, exact: l } = e || {}, i = Y.useRef(n), [d, u] = Y.useState(t._getWatch(r, i.current));
|
|
2545
2565
|
return _n(() => t._subscribe({
|
|
2546
2566
|
name: r,
|
|
@@ -2548,16 +2568,16 @@ function jc(e) {
|
|
|
2548
2568
|
values: !0
|
|
2549
2569
|
},
|
|
2550
2570
|
exact: l,
|
|
2551
|
-
callback: (m) => !o && u(
|
|
2571
|
+
callback: (m) => !o && u(jc(r, t._names, m.values || t._formValues, !1, i.current))
|
|
2552
2572
|
}), [r, t, o, l]), Y.useEffect(() => t._removeUnmounted()), d;
|
|
2553
2573
|
}
|
|
2554
|
-
function
|
|
2555
|
-
const a = ft(), { name: t, disabled: r, control: n = a.control, shouldUnregister: o } = e, l =
|
|
2574
|
+
function zc(e) {
|
|
2575
|
+
const a = ft(), { name: t, disabled: r, control: n = a.control, shouldUnregister: o } = e, l = Rc(n._names.array, t), i = Dc({
|
|
2556
2576
|
control: n,
|
|
2557
2577
|
name: t,
|
|
2558
2578
|
defaultValue: te(n._formValues, t, te(n._defaultValues, t, e.defaultValue)),
|
|
2559
2579
|
exact: !0
|
|
2560
|
-
}), d =
|
|
2580
|
+
}), d = Mc({
|
|
2561
2581
|
control: n,
|
|
2562
2582
|
name: t,
|
|
2563
2583
|
exact: !0
|
|
@@ -2588,7 +2608,7 @@ function Dc(e) {
|
|
|
2588
2608
|
}
|
|
2589
2609
|
}), [d, t]), p = Y.useCallback((g) => m.current.onChange({
|
|
2590
2610
|
target: {
|
|
2591
|
-
value:
|
|
2611
|
+
value: Sc(g),
|
|
2592
2612
|
name: t
|
|
2593
2613
|
},
|
|
2594
2614
|
type: Ea.CHANGE
|
|
@@ -2603,7 +2623,7 @@ function Dc(e) {
|
|
|
2603
2623
|
x && g && (x._f.ref = {
|
|
2604
2624
|
focus: () => g.focus(),
|
|
2605
2625
|
select: () => g.select(),
|
|
2606
|
-
setCustomValidity: (
|
|
2626
|
+
setCustomValidity: (y) => g.setCustomValidity(y),
|
|
2607
2627
|
reportValidity: () => g.reportValidity()
|
|
2608
2628
|
});
|
|
2609
2629
|
}, [n._fields, t]), h = Y.useMemo(() => ({
|
|
@@ -2620,13 +2640,13 @@ function Dc(e) {
|
|
|
2620
2640
|
...u.current.rules,
|
|
2621
2641
|
...Pt(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
2622
2642
|
});
|
|
2623
|
-
const x = (
|
|
2624
|
-
const R = te(n._fields,
|
|
2643
|
+
const x = (y, S) => {
|
|
2644
|
+
const R = te(n._fields, y);
|
|
2625
2645
|
R && R._f && (R._f.mount = S);
|
|
2626
2646
|
};
|
|
2627
2647
|
if (x(t, !0), g) {
|
|
2628
|
-
const
|
|
2629
|
-
Na(n._defaultValues, t,
|
|
2648
|
+
const y = Nn(te(n._options.defaultValues, t));
|
|
2649
|
+
Na(n._defaultValues, t, y), zt(te(n._formValues, t)) && Na(n._formValues, t, y);
|
|
2630
2650
|
}
|
|
2631
2651
|
return !l && n.register(t), () => {
|
|
2632
2652
|
(l ? g && !n._state.action : g) ? n.unregister(t) : x(t, !1);
|
|
@@ -2642,9 +2662,9 @@ function Dc(e) {
|
|
|
2642
2662
|
fieldState: f
|
|
2643
2663
|
}), [h, d, f]);
|
|
2644
2664
|
}
|
|
2645
|
-
const
|
|
2665
|
+
const kc = (e) => e.render(zc(e)), Gu = _c, An = c.createContext({}), Ku = ({
|
|
2646
2666
|
...e
|
|
2647
|
-
}) => /* @__PURE__ */ s.jsx(An.Provider, { value: { name: e.name }, children: /* @__PURE__ */ s.jsx(
|
|
2667
|
+
}) => /* @__PURE__ */ s.jsx(An.Provider, { value: { name: e.name }, children: /* @__PURE__ */ s.jsx(kc, { ...e }) }), pt = () => {
|
|
2648
2668
|
const e = c.useContext(An), a = c.useContext(Mn), { getFieldState: t, formState: r } = ft(), n = t(e.name, r);
|
|
2649
2669
|
if (!e)
|
|
2650
2670
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -2657,27 +2677,27 @@ const zc = (e) => e.render(Dc(e)), Bu = Tc, An = c.createContext({}), Gu = ({
|
|
|
2657
2677
|
formMessageId: `${o}-form-item-message`,
|
|
2658
2678
|
...n
|
|
2659
2679
|
};
|
|
2660
|
-
}, Mn = c.createContext({}),
|
|
2680
|
+
}, Mn = c.createContext({}), Lc = c.forwardRef(
|
|
2661
2681
|
({ className: e, ...a }, t) => {
|
|
2662
2682
|
const r = c.useId();
|
|
2663
|
-
return /* @__PURE__ */ s.jsx(Mn.Provider, { value: { id: r }, children: /* @__PURE__ */ s.jsx("div", { ref: t, className:
|
|
2683
|
+
return /* @__PURE__ */ s.jsx(Mn.Provider, { value: { id: r }, children: /* @__PURE__ */ s.jsx("div", { ref: t, className: w("al-space-y-2", e), ...a }) });
|
|
2664
2684
|
}
|
|
2665
2685
|
);
|
|
2666
|
-
|
|
2667
|
-
const
|
|
2686
|
+
Lc.displayName = "FormItem";
|
|
2687
|
+
const $c = c.forwardRef(({ className: e, ...a }, t) => {
|
|
2668
2688
|
const { error: r, formItemId: n } = pt();
|
|
2669
2689
|
return /* @__PURE__ */ s.jsx(
|
|
2670
2690
|
tl,
|
|
2671
2691
|
{
|
|
2672
2692
|
ref: t,
|
|
2673
|
-
className:
|
|
2693
|
+
className: w(r && "al-text-destructive", e),
|
|
2674
2694
|
htmlFor: n,
|
|
2675
2695
|
...a
|
|
2676
2696
|
}
|
|
2677
2697
|
);
|
|
2678
2698
|
});
|
|
2679
|
-
|
|
2680
|
-
const
|
|
2699
|
+
$c.displayName = "FormLabel";
|
|
2700
|
+
const Oc = c.forwardRef(({ ...e }, a) => {
|
|
2681
2701
|
const { error: t, formItemId: r, formDescriptionId: n, formMessageId: o } = pt();
|
|
2682
2702
|
return /* @__PURE__ */ s.jsx(
|
|
2683
2703
|
Ce,
|
|
@@ -2690,38 +2710,38 @@ const $c = c.forwardRef(({ ...e }, a) => {
|
|
|
2690
2710
|
}
|
|
2691
2711
|
);
|
|
2692
2712
|
});
|
|
2693
|
-
|
|
2694
|
-
const
|
|
2713
|
+
Oc.displayName = "FormControl";
|
|
2714
|
+
const Fc = c.forwardRef(({ className: e, ...a }, t) => {
|
|
2695
2715
|
const { formDescriptionId: r } = pt();
|
|
2696
2716
|
return /* @__PURE__ */ s.jsx(
|
|
2697
2717
|
"p",
|
|
2698
2718
|
{
|
|
2699
2719
|
ref: t,
|
|
2700
2720
|
id: r,
|
|
2701
|
-
className:
|
|
2721
|
+
className: w("al-text-sm al-text-muted-foreground", e),
|
|
2702
2722
|
...a
|
|
2703
2723
|
}
|
|
2704
2724
|
);
|
|
2705
2725
|
});
|
|
2706
|
-
|
|
2707
|
-
const
|
|
2726
|
+
Fc.displayName = "FormDescription";
|
|
2727
|
+
const Vc = c.forwardRef(({ className: e, children: a, ...t }, r) => {
|
|
2708
2728
|
const { error: n, formMessageId: o } = pt(), l = n ? String((n == null ? void 0 : n.message) ?? "") : a;
|
|
2709
2729
|
return l ? /* @__PURE__ */ s.jsx(
|
|
2710
2730
|
"p",
|
|
2711
2731
|
{
|
|
2712
2732
|
ref: r,
|
|
2713
2733
|
id: o,
|
|
2714
|
-
className:
|
|
2734
|
+
className: w("al-text-sm al-font-medium al-text-destructive", e),
|
|
2715
2735
|
...t,
|
|
2716
2736
|
children: l
|
|
2717
2737
|
}
|
|
2718
2738
|
) : null;
|
|
2719
2739
|
});
|
|
2720
|
-
|
|
2721
|
-
var mt = "Menubar", [kt,
|
|
2722
|
-
|
|
2740
|
+
Vc.displayName = "FormMessage";
|
|
2741
|
+
var mt = "Menubar", [kt, Hc, Bc] = Bt(mt), [In, Uu] = ce(mt, [
|
|
2742
|
+
Bc,
|
|
2723
2743
|
je
|
|
2724
|
-
]), Z = cs(), jn = je(), [
|
|
2744
|
+
]), Z = cs(), jn = je(), [Gc, sa] = In(mt), Dn = c.forwardRef(
|
|
2725
2745
|
(e, a) => {
|
|
2726
2746
|
const {
|
|
2727
2747
|
__scopeMenubar: t,
|
|
@@ -2737,7 +2757,7 @@ var mt = "Menubar", [kt, Vc, Hc] = Bt(mt), [In, Ku] = ce(mt, [
|
|
|
2737
2757
|
defaultProp: o
|
|
2738
2758
|
}), [v, b] = c.useState(null);
|
|
2739
2759
|
return /* @__PURE__ */ s.jsx(
|
|
2740
|
-
|
|
2760
|
+
Gc,
|
|
2741
2761
|
{
|
|
2742
2762
|
scope: t,
|
|
2743
2763
|
value: f,
|
|
@@ -2774,12 +2794,12 @@ var mt = "Menubar", [kt, Vc, Hc] = Bt(mt), [In, Ku] = ce(mt, [
|
|
|
2774
2794
|
}
|
|
2775
2795
|
);
|
|
2776
2796
|
Dn.displayName = mt;
|
|
2777
|
-
var la = "MenubarMenu", [
|
|
2797
|
+
var la = "MenubarMenu", [Kc, zn] = In(la), kn = (e) => {
|
|
2778
2798
|
const { __scopeMenubar: a, value: t, ...r } = e, n = Je(), o = t || n || "LEGACY_REACT_AUTO_VALUE", l = sa(la, a), i = Z(a), d = c.useRef(null), u = c.useRef(!1), m = l.value === o;
|
|
2779
2799
|
return c.useEffect(() => {
|
|
2780
2800
|
m || (u.current = !1);
|
|
2781
2801
|
}, [m]), /* @__PURE__ */ s.jsx(
|
|
2782
|
-
|
|
2802
|
+
Kc,
|
|
2783
2803
|
{
|
|
2784
2804
|
scope: a,
|
|
2785
2805
|
value: o,
|
|
@@ -2848,14 +2868,14 @@ var Lt = "MenubarTrigger", Ln = c.forwardRef(
|
|
|
2848
2868
|
}
|
|
2849
2869
|
);
|
|
2850
2870
|
Ln.displayName = Lt;
|
|
2851
|
-
var
|
|
2871
|
+
var Uc = "MenubarPortal", $n = (e) => {
|
|
2852
2872
|
const { __scopeMenubar: a, ...t } = e, r = Z(a);
|
|
2853
2873
|
return /* @__PURE__ */ s.jsx(Rs, { ...r, ...t });
|
|
2854
2874
|
};
|
|
2855
|
-
$n.displayName =
|
|
2875
|
+
$n.displayName = Uc;
|
|
2856
2876
|
var $t = "MenubarContent", On = c.forwardRef(
|
|
2857
2877
|
(e, a) => {
|
|
2858
|
-
const { __scopeMenubar: t, align: r = "start", ...n } = e, o = Z(t), l = sa($t, t), i = zn($t, t), d =
|
|
2878
|
+
const { __scopeMenubar: t, align: r = "start", ...n } = e, o = Z(t), l = sa($t, t), i = zn($t, t), d = Hc(t), u = c.useRef(!1);
|
|
2859
2879
|
return /* @__PURE__ */ s.jsx(
|
|
2860
2880
|
us,
|
|
2861
2881
|
{
|
|
@@ -2889,11 +2909,11 @@ var $t = "MenubarContent", On = c.forwardRef(
|
|
|
2889
2909
|
if (["ArrowRight", "ArrowLeft"].includes(m.key)) {
|
|
2890
2910
|
const f = m.target, p = f.hasAttribute("data-radix-menubar-subtrigger"), v = f.closest("[data-radix-menubar-content]") !== m.currentTarget, h = (l.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === m.key;
|
|
2891
2911
|
if (!h && p || v && h) return;
|
|
2892
|
-
let
|
|
2893
|
-
h &&
|
|
2894
|
-
const S =
|
|
2895
|
-
|
|
2896
|
-
const [R] =
|
|
2912
|
+
let y = d().filter((M) => !M.disabled).map((M) => M.value);
|
|
2913
|
+
h && y.reverse();
|
|
2914
|
+
const S = y.indexOf(i.value);
|
|
2915
|
+
y = l.loop ? sd(y, S + 1) : y.slice(S + 1);
|
|
2916
|
+
const [R] = y;
|
|
2897
2917
|
R && l.onMenuOpen(R);
|
|
2898
2918
|
}
|
|
2899
2919
|
},
|
|
@@ -2912,68 +2932,68 @@ var $t = "MenubarContent", On = c.forwardRef(
|
|
|
2912
2932
|
}
|
|
2913
2933
|
);
|
|
2914
2934
|
On.displayName = $t;
|
|
2915
|
-
var
|
|
2935
|
+
var Wc = "MenubarGroup", Fn = c.forwardRef(
|
|
2916
2936
|
(e, a) => {
|
|
2917
2937
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2918
2938
|
return /* @__PURE__ */ s.jsx(fs, { ...n, ...r, ref: a });
|
|
2919
2939
|
}
|
|
2920
2940
|
);
|
|
2921
|
-
Fn.displayName =
|
|
2922
|
-
var
|
|
2941
|
+
Fn.displayName = Wc;
|
|
2942
|
+
var Xc = "MenubarLabel", Vn = c.forwardRef(
|
|
2923
2943
|
(e, a) => {
|
|
2924
2944
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2925
2945
|
return /* @__PURE__ */ s.jsx(ps, { ...n, ...r, ref: a });
|
|
2926
2946
|
}
|
|
2927
2947
|
);
|
|
2928
|
-
Vn.displayName =
|
|
2929
|
-
var
|
|
2948
|
+
Vn.displayName = Xc;
|
|
2949
|
+
var Yc = "MenubarItem", Hn = c.forwardRef(
|
|
2930
2950
|
(e, a) => {
|
|
2931
2951
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2932
2952
|
return /* @__PURE__ */ s.jsx(ms, { ...n, ...r, ref: a });
|
|
2933
2953
|
}
|
|
2934
2954
|
);
|
|
2935
|
-
Hn.displayName =
|
|
2936
|
-
var
|
|
2955
|
+
Hn.displayName = Yc;
|
|
2956
|
+
var qc = "MenubarCheckboxItem", Bn = c.forwardRef(
|
|
2937
2957
|
(e, a) => {
|
|
2938
2958
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2939
2959
|
return /* @__PURE__ */ s.jsx(bs, { ...n, ...r, ref: a });
|
|
2940
2960
|
}
|
|
2941
2961
|
);
|
|
2942
|
-
Bn.displayName =
|
|
2943
|
-
var
|
|
2962
|
+
Bn.displayName = qc;
|
|
2963
|
+
var Jc = "MenubarRadioGroup", Gn = c.forwardRef(
|
|
2944
2964
|
(e, a) => {
|
|
2945
2965
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2946
2966
|
return /* @__PURE__ */ s.jsx(gs, { ...n, ...r, ref: a });
|
|
2947
2967
|
}
|
|
2948
2968
|
);
|
|
2949
|
-
Gn.displayName =
|
|
2950
|
-
var
|
|
2969
|
+
Gn.displayName = Jc;
|
|
2970
|
+
var Zc = "MenubarRadioItem", Kn = c.forwardRef(
|
|
2951
2971
|
(e, a) => {
|
|
2952
2972
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2953
2973
|
return /* @__PURE__ */ s.jsx(vs, { ...n, ...r, ref: a });
|
|
2954
2974
|
}
|
|
2955
2975
|
);
|
|
2956
|
-
Kn.displayName =
|
|
2957
|
-
var
|
|
2976
|
+
Kn.displayName = Zc;
|
|
2977
|
+
var Qc = "MenubarItemIndicator", Un = c.forwardRef((e, a) => {
|
|
2958
2978
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2959
2979
|
return /* @__PURE__ */ s.jsx(hs, { ...n, ...r, ref: a });
|
|
2960
2980
|
});
|
|
2961
|
-
Un.displayName =
|
|
2962
|
-
var
|
|
2981
|
+
Un.displayName = Qc;
|
|
2982
|
+
var ed = "MenubarSeparator", Wn = c.forwardRef(
|
|
2963
2983
|
(e, a) => {
|
|
2964
2984
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2965
2985
|
return /* @__PURE__ */ s.jsx(xs, { ...n, ...r, ref: a });
|
|
2966
2986
|
}
|
|
2967
2987
|
);
|
|
2968
|
-
Wn.displayName =
|
|
2969
|
-
var
|
|
2988
|
+
Wn.displayName = ed;
|
|
2989
|
+
var td = "MenubarArrow", ad = c.forwardRef(
|
|
2970
2990
|
(e, a) => {
|
|
2971
2991
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2972
2992
|
return /* @__PURE__ */ s.jsx(ws, { ...n, ...r, ref: a });
|
|
2973
2993
|
}
|
|
2974
2994
|
);
|
|
2975
|
-
|
|
2976
|
-
var
|
|
2995
|
+
ad.displayName = td;
|
|
2996
|
+
var rd = "MenubarSub", Xn = (e) => {
|
|
2977
2997
|
const { __scopeMenubar: a, children: t, open: r, onOpenChange: n, defaultOpen: o } = e, l = Z(a), [i = !1, d] = ve({
|
|
2978
2998
|
prop: r,
|
|
2979
2999
|
defaultProp: o,
|
|
@@ -2981,8 +3001,8 @@ var ad = "MenubarSub", Xn = (e) => {
|
|
|
2981
3001
|
});
|
|
2982
3002
|
return /* @__PURE__ */ s.jsx(Ps, { ...l, open: i, onOpenChange: d, children: t });
|
|
2983
3003
|
};
|
|
2984
|
-
Xn.displayName =
|
|
2985
|
-
var
|
|
3004
|
+
Xn.displayName = rd;
|
|
3005
|
+
var nd = "MenubarSubTrigger", Yn = c.forwardRef(
|
|
2986
3006
|
(e, a) => {
|
|
2987
3007
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
2988
3008
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -2996,8 +3016,8 @@ var rd = "MenubarSubTrigger", Yn = c.forwardRef(
|
|
|
2996
3016
|
);
|
|
2997
3017
|
}
|
|
2998
3018
|
);
|
|
2999
|
-
Yn.displayName =
|
|
3000
|
-
var
|
|
3019
|
+
Yn.displayName = nd;
|
|
3020
|
+
var od = "MenubarSubContent", qn = c.forwardRef(
|
|
3001
3021
|
(e, a) => {
|
|
3002
3022
|
const { __scopeMenubar: t, ...r } = e, n = Z(t);
|
|
3003
3023
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -3019,12 +3039,12 @@ var nd = "MenubarSubContent", qn = c.forwardRef(
|
|
|
3019
3039
|
);
|
|
3020
3040
|
}
|
|
3021
3041
|
);
|
|
3022
|
-
qn.displayName =
|
|
3023
|
-
function
|
|
3042
|
+
qn.displayName = od;
|
|
3043
|
+
function sd(e, a) {
|
|
3024
3044
|
return e.map((t, r) => e[(a + r) % e.length]);
|
|
3025
3045
|
}
|
|
3026
|
-
var Jn = Dn,
|
|
3027
|
-
const
|
|
3046
|
+
var Jn = Dn, ld = kn, Zn = Ln, Qn = $n, eo = On, id = Fn, to = Vn, ao = Hn, ro = Bn, cd = Gn, no = Kn, oo = Un, so = Wn, dd = Xn, lo = Yn, io = qn;
|
|
3047
|
+
const Wu = ld, Xu = id, Yu = Qn, qu = dd, Ju = cd, ud = lt(
|
|
3028
3048
|
[
|
|
3029
3049
|
"al-flex al-items-center al-justify-between al-rounded-md",
|
|
3030
3050
|
"al-text-sm al-font-normal",
|
|
@@ -3080,29 +3100,29 @@ const Uu = sd, Wu = ld, Xu = Qn, Yu = cd, qu = id, dd = lt(
|
|
|
3080
3100
|
size: "default"
|
|
3081
3101
|
}
|
|
3082
3102
|
}
|
|
3083
|
-
),
|
|
3103
|
+
), fd = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
3084
3104
|
Jn,
|
|
3085
3105
|
{
|
|
3086
3106
|
ref: t,
|
|
3087
|
-
className:
|
|
3107
|
+
className: w("al-flex al-h-10 al-items-center al-space-x-1 al-rounded-md al-p-1", e),
|
|
3088
3108
|
...a
|
|
3089
3109
|
}
|
|
3090
3110
|
));
|
|
3091
|
-
|
|
3092
|
-
const
|
|
3111
|
+
fd.displayName = Jn.displayName;
|
|
3112
|
+
const pd = c.forwardRef(({ className: e, variant: a, size: t, ...r }, n) => /* @__PURE__ */ s.jsx(
|
|
3093
3113
|
Zn,
|
|
3094
3114
|
{
|
|
3095
3115
|
ref: n,
|
|
3096
|
-
className:
|
|
3116
|
+
className: w(ud({ variant: a, size: t, className: e })),
|
|
3097
3117
|
...r
|
|
3098
3118
|
}
|
|
3099
3119
|
));
|
|
3100
|
-
|
|
3101
|
-
const
|
|
3120
|
+
pd.displayName = Zn.displayName;
|
|
3121
|
+
const md = c.forwardRef(({ className: e, inset: a, children: t, ...r }, n) => /* @__PURE__ */ s.jsxs(
|
|
3102
3122
|
lo,
|
|
3103
3123
|
{
|
|
3104
3124
|
ref: n,
|
|
3105
|
-
className:
|
|
3125
|
+
className: w(
|
|
3106
3126
|
"al-flex al-cursor-default al-select-none al-items-center al-rounded-sm al-px-2 al-py-1.5 al-text-sm al-outline-none focus:al-bg-accent focus:al-text-accent-foreground data-[state=open]:al-bg-accent data-[state=open]:al-text-accent-foreground",
|
|
3107
3127
|
a && "al-pl-8",
|
|
3108
3128
|
e
|
|
@@ -3114,39 +3134,39 @@ const pd = c.forwardRef(({ className: e, inset: a, children: t, ...r }, n) => /*
|
|
|
3114
3134
|
]
|
|
3115
3135
|
}
|
|
3116
3136
|
));
|
|
3117
|
-
|
|
3118
|
-
const
|
|
3137
|
+
md.displayName = lo.displayName;
|
|
3138
|
+
const bd = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
3119
3139
|
io,
|
|
3120
3140
|
{
|
|
3121
3141
|
ref: t,
|
|
3122
|
-
className:
|
|
3142
|
+
className: w(
|
|
3123
3143
|
"al-z-50 al-min-w-[8rem] al-overflow-hidden al-rounded-md al-border al-bg-popover al-p-1 al-text-popover-foreground data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
|
|
3124
3144
|
e
|
|
3125
3145
|
),
|
|
3126
3146
|
...a
|
|
3127
3147
|
}
|
|
3128
3148
|
));
|
|
3129
|
-
|
|
3130
|
-
const
|
|
3149
|
+
bd.displayName = io.displayName;
|
|
3150
|
+
const gd = c.forwardRef(({ className: e, align: a = "start", alignOffset: t = -4, sideOffset: r = 8, ...n }, o) => /* @__PURE__ */ s.jsx(Qn, { children: /* @__PURE__ */ s.jsx(
|
|
3131
3151
|
eo,
|
|
3132
3152
|
{
|
|
3133
3153
|
ref: o,
|
|
3134
3154
|
align: a,
|
|
3135
3155
|
alignOffset: t,
|
|
3136
3156
|
sideOffset: r,
|
|
3137
|
-
className:
|
|
3157
|
+
className: w(
|
|
3138
3158
|
"al-z-50 al-min-w-[12rem] al-overflow-hidden al-rounded-md al-border al-bg-popover al-p-1 al-text-popover-foreground al-shadow-md data-[state=open]:al-animate-in data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
|
|
3139
3159
|
e
|
|
3140
3160
|
),
|
|
3141
3161
|
...n
|
|
3142
3162
|
}
|
|
3143
3163
|
) }));
|
|
3144
|
-
|
|
3145
|
-
const
|
|
3164
|
+
gd.displayName = eo.displayName;
|
|
3165
|
+
const vd = c.forwardRef(({ className: e, inset: a, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3146
3166
|
ao,
|
|
3147
3167
|
{
|
|
3148
3168
|
ref: r,
|
|
3149
|
-
className:
|
|
3169
|
+
className: w(
|
|
3150
3170
|
"al-relative al-flex al-cursor-default al-select-none al-items-center al-rounded-sm al-px-2 al-py-1.5 al-text-sm al-outline-none focus:al-bg-accent focus:al-text-accent-foreground data-[disabled]:al-pointer-events-none data-[disabled]:al-opacity-50",
|
|
3151
3171
|
a && "al-pl-8",
|
|
3152
3172
|
e
|
|
@@ -3154,12 +3174,12 @@ const gd = c.forwardRef(({ className: e, inset: a, ...t }, r) => /* @__PURE__ */
|
|
|
3154
3174
|
...t
|
|
3155
3175
|
}
|
|
3156
3176
|
));
|
|
3157
|
-
|
|
3158
|
-
const
|
|
3177
|
+
vd.displayName = ao.displayName;
|
|
3178
|
+
const hd = c.forwardRef(({ className: e, children: a, checked: t, ...r }, n) => /* @__PURE__ */ s.jsxs(
|
|
3159
3179
|
ro,
|
|
3160
3180
|
{
|
|
3161
3181
|
ref: n,
|
|
3162
|
-
className:
|
|
3182
|
+
className: w(
|
|
3163
3183
|
"al-relative al-flex al-cursor-default al-select-none al-items-center al-rounded-sm al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-outline-none focus:al-bg-accent focus:al-text-accent-foreground data-[disabled]:al-pointer-events-none data-[disabled]:al-opacity-50",
|
|
3164
3184
|
e
|
|
3165
3185
|
),
|
|
@@ -3171,12 +3191,12 @@ const vd = c.forwardRef(({ className: e, children: a, checked: t, ...r }, n) =>
|
|
|
3171
3191
|
]
|
|
3172
3192
|
}
|
|
3173
3193
|
));
|
|
3174
|
-
|
|
3175
|
-
const
|
|
3194
|
+
hd.displayName = ro.displayName;
|
|
3195
|
+
const xd = c.forwardRef(({ className: e, children: a, ...t }, r) => /* @__PURE__ */ s.jsxs(
|
|
3176
3196
|
no,
|
|
3177
3197
|
{
|
|
3178
3198
|
ref: r,
|
|
3179
|
-
className:
|
|
3199
|
+
className: w(
|
|
3180
3200
|
"al-relative al-flex al-cursor-default al-select-none al-items-center al-rounded-sm al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-outline-none focus:al-bg-accent focus:al-text-accent-foreground data-[disabled]:al-pointer-events-none data-[disabled]:al-opacity-50",
|
|
3181
3201
|
e
|
|
3182
3202
|
),
|
|
@@ -3187,58 +3207,58 @@ const hd = c.forwardRef(({ className: e, children: a, ...t }, r) => /* @__PURE__
|
|
|
3187
3207
|
]
|
|
3188
3208
|
}
|
|
3189
3209
|
));
|
|
3190
|
-
|
|
3191
|
-
const
|
|
3210
|
+
xd.displayName = no.displayName;
|
|
3211
|
+
const wd = c.forwardRef(({ className: e, inset: a, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3192
3212
|
to,
|
|
3193
3213
|
{
|
|
3194
3214
|
ref: r,
|
|
3195
|
-
className:
|
|
3215
|
+
className: w("al-px-2 al-py-1.5 al-text-sm al-font-semibold", a && "al-pl-8", e),
|
|
3196
3216
|
...t
|
|
3197
3217
|
}
|
|
3198
3218
|
));
|
|
3199
|
-
|
|
3200
|
-
const
|
|
3219
|
+
wd.displayName = to.displayName;
|
|
3220
|
+
const yd = c.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
3201
3221
|
so,
|
|
3202
3222
|
{
|
|
3203
3223
|
ref: t,
|
|
3204
|
-
className:
|
|
3224
|
+
className: w("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
|
|
3205
3225
|
...a
|
|
3206
3226
|
}
|
|
3207
3227
|
));
|
|
3208
|
-
|
|
3209
|
-
const
|
|
3228
|
+
yd.displayName = so.displayName;
|
|
3229
|
+
const Sd = ({ className: e, ...a }) => /* @__PURE__ */ s.jsx(
|
|
3210
3230
|
"span",
|
|
3211
3231
|
{
|
|
3212
|
-
className:
|
|
3232
|
+
className: w("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
|
|
3213
3233
|
...a
|
|
3214
3234
|
}
|
|
3215
3235
|
);
|
|
3216
|
-
|
|
3217
|
-
const
|
|
3236
|
+
Sd.displayname = "MenubarShortcut";
|
|
3237
|
+
const Cd = ({ className: e, ...a }) => /* @__PURE__ */ s.jsx(
|
|
3218
3238
|
"nav",
|
|
3219
3239
|
{
|
|
3220
3240
|
role: "navigation",
|
|
3221
3241
|
"aria-label": "pagination",
|
|
3222
|
-
className:
|
|
3242
|
+
className: w("al-mx-auto al-flex al-w-full al-justify-center", e),
|
|
3223
3243
|
...a
|
|
3224
3244
|
}
|
|
3225
3245
|
);
|
|
3226
|
-
|
|
3227
|
-
const
|
|
3246
|
+
Cd.displayName = "Pagination";
|
|
3247
|
+
const Rd = c.forwardRef(
|
|
3228
3248
|
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
3229
3249
|
"ul",
|
|
3230
3250
|
{
|
|
3231
3251
|
ref: t,
|
|
3232
|
-
className:
|
|
3252
|
+
className: w("al-flex al-flex-row al-items-center al-gap-1", e),
|
|
3233
3253
|
...a
|
|
3234
3254
|
}
|
|
3235
3255
|
)
|
|
3236
3256
|
);
|
|
3237
|
-
|
|
3238
|
-
const
|
|
3239
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx("li", { ref: t, className:
|
|
3257
|
+
Rd.displayName = "PaginationContent";
|
|
3258
|
+
const Pd = c.forwardRef(
|
|
3259
|
+
({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx("li", { ref: t, className: w("al-", e), ...a })
|
|
3240
3260
|
);
|
|
3241
|
-
|
|
3261
|
+
Pd.displayName = "PaginationItem";
|
|
3242
3262
|
const ia = ({
|
|
3243
3263
|
className: e,
|
|
3244
3264
|
isActive: a,
|
|
@@ -3251,7 +3271,7 @@ const ia = ({
|
|
|
3251
3271
|
{
|
|
3252
3272
|
"aria-current": a ? "page" : void 0,
|
|
3253
3273
|
"aria-label": n || (typeof r == "string" ? r : "Page"),
|
|
3254
|
-
className:
|
|
3274
|
+
className: w(
|
|
3255
3275
|
Os({
|
|
3256
3276
|
variant: a ? "outline" : "ghost",
|
|
3257
3277
|
size: t
|
|
@@ -3263,7 +3283,7 @@ const ia = ({
|
|
|
3263
3283
|
}
|
|
3264
3284
|
);
|
|
3265
3285
|
ia.displayName = "PaginationLink";
|
|
3266
|
-
const
|
|
3286
|
+
const Nd = ({
|
|
3267
3287
|
className: e,
|
|
3268
3288
|
...a
|
|
3269
3289
|
}) => /* @__PURE__ */ s.jsxs(
|
|
@@ -3271,7 +3291,7 @@ const Pd = ({
|
|
|
3271
3291
|
{
|
|
3272
3292
|
"aria-label": "Go to previous page",
|
|
3273
3293
|
size: "default",
|
|
3274
|
-
className:
|
|
3294
|
+
className: w("al-gap-1 al-pl-2.5", e),
|
|
3275
3295
|
...a,
|
|
3276
3296
|
children: [
|
|
3277
3297
|
/* @__PURE__ */ s.jsx(qs, { className: "al-h-4 al-w-4" }),
|
|
@@ -3279,13 +3299,13 @@ const Pd = ({
|
|
|
3279
3299
|
]
|
|
3280
3300
|
}
|
|
3281
3301
|
);
|
|
3282
|
-
|
|
3283
|
-
const
|
|
3302
|
+
Nd.displayName = "PaginationPrevious";
|
|
3303
|
+
const Ed = ({ className: e, ...a }) => /* @__PURE__ */ s.jsxs(
|
|
3284
3304
|
ia,
|
|
3285
3305
|
{
|
|
3286
3306
|
"aria-label": "Go to next page",
|
|
3287
3307
|
size: "default",
|
|
3288
|
-
className:
|
|
3308
|
+
className: w("al-gap-1 al-pr-2.5", e),
|
|
3289
3309
|
...a,
|
|
3290
3310
|
children: [
|
|
3291
3311
|
/* @__PURE__ */ s.jsx("span", { children: "Next" }),
|
|
@@ -3293,12 +3313,12 @@ const Nd = ({ className: e, ...a }) => /* @__PURE__ */ s.jsxs(
|
|
|
3293
3313
|
]
|
|
3294
3314
|
}
|
|
3295
3315
|
);
|
|
3296
|
-
|
|
3297
|
-
const
|
|
3316
|
+
Ed.displayName = "PaginationNext";
|
|
3317
|
+
const Td = ({ className: e, ...a }) => /* @__PURE__ */ s.jsxs(
|
|
3298
3318
|
"span",
|
|
3299
3319
|
{
|
|
3300
3320
|
"aria-hidden": !0,
|
|
3301
|
-
className:
|
|
3321
|
+
className: w("al-flex al-h-9 al-w-9 al-items-center al-justify-center", e),
|
|
3302
3322
|
...a,
|
|
3303
3323
|
children: [
|
|
3304
3324
|
/* @__PURE__ */ s.jsx(Ba, { className: "al-h-4 al-w-4" }),
|
|
@@ -3306,27 +3326,27 @@ const Ed = ({ className: e, ...a }) => /* @__PURE__ */ s.jsxs(
|
|
|
3306
3326
|
]
|
|
3307
3327
|
}
|
|
3308
3328
|
);
|
|
3309
|
-
|
|
3329
|
+
Td.displayName = "PaginationEllipsis";
|
|
3310
3330
|
const {
|
|
3311
3331
|
createElement: Me,
|
|
3312
|
-
createContext:
|
|
3313
|
-
createRef:
|
|
3332
|
+
createContext: _d,
|
|
3333
|
+
createRef: Zu,
|
|
3314
3334
|
forwardRef: co,
|
|
3315
3335
|
useCallback: ee,
|
|
3316
3336
|
useContext: uo,
|
|
3317
3337
|
useEffect: we,
|
|
3318
3338
|
useImperativeHandle: fo,
|
|
3319
|
-
useLayoutEffect:
|
|
3320
|
-
useMemo:
|
|
3339
|
+
useLayoutEffect: Ad,
|
|
3340
|
+
useMemo: Md,
|
|
3321
3341
|
useRef: ae,
|
|
3322
3342
|
useState: _e
|
|
3323
|
-
} = c, _a = c[`useId${Math.random()}`.slice(0, 5)],
|
|
3343
|
+
} = c, _a = c[`useId${Math.random()}`.slice(0, 5)], Id = Ad, bt = _d(null);
|
|
3324
3344
|
bt.displayName = "PanelGroupContext";
|
|
3325
|
-
const ye =
|
|
3326
|
-
let
|
|
3345
|
+
const ye = Id, jd = typeof _a == "function" ? _a : () => null;
|
|
3346
|
+
let Dd = 0;
|
|
3327
3347
|
function ca(e = null) {
|
|
3328
|
-
const a =
|
|
3329
|
-
return t.current === null && (t.current = "" +
|
|
3348
|
+
const a = jd(), t = ae(e || a || null);
|
|
3349
|
+
return t.current === null && (t.current = "" + Dd++), e ?? t.current;
|
|
3330
3350
|
}
|
|
3331
3351
|
function po({
|
|
3332
3352
|
children: e,
|
|
@@ -3351,7 +3371,7 @@ function po({
|
|
|
3351
3371
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
3352
3372
|
const {
|
|
3353
3373
|
collapsePanel: x,
|
|
3354
|
-
expandPanel:
|
|
3374
|
+
expandPanel: y,
|
|
3355
3375
|
getPanelSize: S,
|
|
3356
3376
|
getPanelStyle: R,
|
|
3357
3377
|
groupId: M,
|
|
@@ -3397,7 +3417,7 @@ function po({
|
|
|
3397
3417
|
x(k.current);
|
|
3398
3418
|
},
|
|
3399
3419
|
expand: (N) => {
|
|
3400
|
-
|
|
3420
|
+
y(k.current, N);
|
|
3401
3421
|
},
|
|
3402
3422
|
getId() {
|
|
3403
3423
|
return I;
|
|
@@ -3414,7 +3434,7 @@ function po({
|
|
|
3414
3434
|
resize: (N) => {
|
|
3415
3435
|
j(k.current, N);
|
|
3416
3436
|
}
|
|
3417
|
-
}), [x,
|
|
3437
|
+
}), [x, y, S, T, I, j]);
|
|
3418
3438
|
const W = R(k.current, n);
|
|
3419
3439
|
return Me(b, {
|
|
3420
3440
|
...h,
|
|
@@ -3440,7 +3460,7 @@ const mo = co((e, a) => Me(po, {
|
|
|
3440
3460
|
po.displayName = "Panel";
|
|
3441
3461
|
mo.displayName = "forwardRef(Panel)";
|
|
3442
3462
|
let Ot = null, xe = null;
|
|
3443
|
-
function
|
|
3463
|
+
function zd(e, a) {
|
|
3444
3464
|
if (a) {
|
|
3445
3465
|
const t = (a & xo) !== 0, r = (a & wo) !== 0, n = (a & yo) !== 0, o = (a & So) !== 0;
|
|
3446
3466
|
if (t)
|
|
@@ -3461,11 +3481,11 @@ function Dd(e, a) {
|
|
|
3461
3481
|
return "ns-resize";
|
|
3462
3482
|
}
|
|
3463
3483
|
}
|
|
3464
|
-
function
|
|
3484
|
+
function kd() {
|
|
3465
3485
|
xe !== null && (document.head.removeChild(xe), Ot = null, xe = null);
|
|
3466
3486
|
}
|
|
3467
3487
|
function Nt(e, a) {
|
|
3468
|
-
const t =
|
|
3488
|
+
const t = zd(e, a);
|
|
3469
3489
|
Ot !== t && (Ot = t, xe === null && (xe = document.createElement("style"), document.head.appendChild(xe)), xe.innerHTML = `*{cursor: ${t}!important;}`);
|
|
3470
3490
|
}
|
|
3471
3491
|
function bo(e) {
|
|
@@ -3494,14 +3514,14 @@ function gt(e) {
|
|
|
3494
3514
|
y: 1 / 0
|
|
3495
3515
|
};
|
|
3496
3516
|
}
|
|
3497
|
-
function
|
|
3517
|
+
function Ld() {
|
|
3498
3518
|
if (typeof matchMedia == "function")
|
|
3499
3519
|
return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
3500
3520
|
}
|
|
3501
|
-
function
|
|
3521
|
+
function $d(e, a, t) {
|
|
3502
3522
|
return e.x < a.x + a.width && e.x + e.width > a.x && e.y < a.y + a.height && e.y + e.height > a.y;
|
|
3503
3523
|
}
|
|
3504
|
-
function
|
|
3524
|
+
function Od(e, a) {
|
|
3505
3525
|
if (e === a) throw new Error("Cannot compare node with itself");
|
|
3506
3526
|
const t = {
|
|
3507
3527
|
a: Ia(e),
|
|
@@ -3529,21 +3549,21 @@ function $d(e, a) {
|
|
|
3529
3549
|
}
|
|
3530
3550
|
return Math.sign(n.a - n.b);
|
|
3531
3551
|
}
|
|
3532
|
-
const
|
|
3533
|
-
function
|
|
3552
|
+
const Fd = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
3553
|
+
function Vd(e) {
|
|
3534
3554
|
var a;
|
|
3535
3555
|
const t = getComputedStyle((a = ho(e)) !== null && a !== void 0 ? a : e).display;
|
|
3536
3556
|
return t === "flex" || t === "inline-flex";
|
|
3537
3557
|
}
|
|
3538
|
-
function
|
|
3558
|
+
function Hd(e) {
|
|
3539
3559
|
const a = getComputedStyle(e);
|
|
3540
|
-
return !!(a.position === "fixed" || a.zIndex !== "auto" && (a.position !== "static" ||
|
|
3560
|
+
return !!(a.position === "fixed" || a.zIndex !== "auto" && (a.position !== "static" || Vd(e)) || +a.opacity < 1 || "transform" in a && a.transform !== "none" || "webkitTransform" in a && a.webkitTransform !== "none" || "mixBlendMode" in a && a.mixBlendMode !== "normal" || "filter" in a && a.filter !== "none" || "webkitFilter" in a && a.webkitFilter !== "none" || "isolation" in a && a.isolation === "isolate" || Fd.test(a.willChange) || a.webkitOverflowScrolling === "touch");
|
|
3541
3561
|
}
|
|
3542
3562
|
function Aa(e) {
|
|
3543
3563
|
let a = e.length;
|
|
3544
3564
|
for (; a--; ) {
|
|
3545
3565
|
const t = e[a];
|
|
3546
|
-
if (D(t, "Missing node"),
|
|
3566
|
+
if (D(t, "Missing node"), Hd(t)) return t;
|
|
3547
3567
|
}
|
|
3548
3568
|
return null;
|
|
3549
3569
|
}
|
|
@@ -3562,10 +3582,10 @@ function ho(e) {
|
|
|
3562
3582
|
} = e;
|
|
3563
3583
|
return a && a instanceof ShadowRoot ? a.host : a;
|
|
3564
3584
|
}
|
|
3565
|
-
const xo = 1, wo = 2, yo = 4, So = 8,
|
|
3585
|
+
const xo = 1, wo = 2, yo = 4, So = 8, Bd = Ld() === "coarse";
|
|
3566
3586
|
let ie = [], Ae = !1, be = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new Map();
|
|
3567
3587
|
const Be = /* @__PURE__ */ new Set();
|
|
3568
|
-
function
|
|
3588
|
+
function Gd(e, a, t, r, n) {
|
|
3569
3589
|
var o;
|
|
3570
3590
|
const {
|
|
3571
3591
|
ownerDocument: l
|
|
@@ -3644,15 +3664,15 @@ function da({
|
|
|
3644
3664
|
left: u,
|
|
3645
3665
|
right: m,
|
|
3646
3666
|
top: f
|
|
3647
|
-
} = i, p =
|
|
3667
|
+
} = i, p = Bd ? l.coarse : l.fine;
|
|
3648
3668
|
if (a >= u - p && a <= m + p && t >= f - p && t <= d + p) {
|
|
3649
3669
|
if (r !== null && document.contains(r) && o !== r && !o.contains(r) && !r.contains(o) && // Calculating stacking order has a cost, so we should avoid it if possible
|
|
3650
3670
|
// That is why we only check potentially intersecting handles,
|
|
3651
3671
|
// and why we skip if the event target is within the handle's DOM
|
|
3652
|
-
|
|
3672
|
+
Od(r, o) > 0) {
|
|
3653
3673
|
let b = r, h = !1;
|
|
3654
3674
|
for (; b && !b.contains(o); ) {
|
|
3655
|
-
if (
|
|
3675
|
+
if ($d(b.getBoundingClientRect(), i)) {
|
|
3656
3676
|
h = !0;
|
|
3657
3677
|
break;
|
|
3658
3678
|
}
|
|
@@ -3679,7 +3699,7 @@ function ua() {
|
|
|
3679
3699
|
let t = 0;
|
|
3680
3700
|
vt.forEach((r) => {
|
|
3681
3701
|
t |= r;
|
|
3682
|
-
}), e && a ? Nt("intersection", t) : e ? Nt("horizontal", t) : a ? Nt("vertical", t) :
|
|
3702
|
+
}), e && a ? Nt("intersection", t) : e ? Nt("horizontal", t) : a ? Nt("vertical", t) : kd();
|
|
3683
3703
|
}
|
|
3684
3704
|
function et() {
|
|
3685
3705
|
be.forEach((e, a) => {
|
|
@@ -3709,7 +3729,7 @@ function tt(e, a) {
|
|
|
3709
3729
|
r(e, n, a);
|
|
3710
3730
|
});
|
|
3711
3731
|
}
|
|
3712
|
-
function
|
|
3732
|
+
function Kd() {
|
|
3713
3733
|
const [e, a] = _e(0);
|
|
3714
3734
|
return ee(() => a((t) => t + 1), []);
|
|
3715
3735
|
}
|
|
@@ -3727,7 +3747,7 @@ function me(e, a, t = fa) {
|
|
|
3727
3747
|
function re(e, a, t) {
|
|
3728
3748
|
return Se(e, a, t) === 0;
|
|
3729
3749
|
}
|
|
3730
|
-
function
|
|
3750
|
+
function Ud(e, a, t) {
|
|
3731
3751
|
if (e.length !== a.length)
|
|
3732
3752
|
return !1;
|
|
3733
3753
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -3839,7 +3859,7 @@ function Fe({
|
|
|
3839
3859
|
e < 0 ? p-- : p++;
|
|
3840
3860
|
}
|
|
3841
3861
|
}
|
|
3842
|
-
if (
|
|
3862
|
+
if (Ud(n, l))
|
|
3843
3863
|
return n;
|
|
3844
3864
|
{
|
|
3845
3865
|
const f = e < 0 ? d : i, p = a[f];
|
|
@@ -3852,14 +3872,14 @@ function Fe({
|
|
|
3852
3872
|
if (l[f] = b, !re(b, v)) {
|
|
3853
3873
|
let h = v - b, x = e < 0 ? d : i;
|
|
3854
3874
|
for (; x >= 0 && x < t.length; ) {
|
|
3855
|
-
const
|
|
3856
|
-
D(
|
|
3857
|
-
const S =
|
|
3875
|
+
const y = l[x];
|
|
3876
|
+
D(y != null, `Previous layout not found for panel index ${x}`);
|
|
3877
|
+
const S = y + h, R = Te({
|
|
3858
3878
|
panelConstraints: t,
|
|
3859
3879
|
panelIndex: x,
|
|
3860
3880
|
size: S
|
|
3861
3881
|
});
|
|
3862
|
-
if (re(
|
|
3882
|
+
if (re(y, R) || (h -= R - y, l[x] = R), re(h, 0))
|
|
3863
3883
|
break;
|
|
3864
3884
|
e > 0 ? x-- : x++;
|
|
3865
3885
|
}
|
|
@@ -3868,7 +3888,7 @@ function Fe({
|
|
|
3868
3888
|
const m = l.reduce((f, p) => p + f, 0);
|
|
3869
3889
|
return re(m, 100) ? l : n;
|
|
3870
3890
|
}
|
|
3871
|
-
function
|
|
3891
|
+
function Wd({
|
|
3872
3892
|
layout: e,
|
|
3873
3893
|
panelsArray: a,
|
|
3874
3894
|
pivotIndices: t
|
|
@@ -3913,12 +3933,12 @@ function ht(e, a = document) {
|
|
|
3913
3933
|
const t = a.querySelector(`[data-panel-resize-handle-id="${e}"]`);
|
|
3914
3934
|
return t || null;
|
|
3915
3935
|
}
|
|
3916
|
-
function
|
|
3936
|
+
function Xd(e, a, t, r = document) {
|
|
3917
3937
|
var n, o, l, i;
|
|
3918
3938
|
const d = ht(a, r), u = Ge(e, r), m = d ? u.indexOf(d) : -1, f = (n = (o = t[m]) === null || o === void 0 ? void 0 : o.id) !== null && n !== void 0 ? n : null, p = (l = (i = t[m + 1]) === null || i === void 0 ? void 0 : i.id) !== null && l !== void 0 ? l : null;
|
|
3919
3939
|
return [f, p];
|
|
3920
3940
|
}
|
|
3921
|
-
function
|
|
3941
|
+
function Yd({
|
|
3922
3942
|
committedValuesRef: e,
|
|
3923
3943
|
eagerValuesRef: a,
|
|
3924
3944
|
groupId: t,
|
|
@@ -3938,7 +3958,7 @@ function Xd({
|
|
|
3938
3958
|
valueMax: u,
|
|
3939
3959
|
valueMin: m,
|
|
3940
3960
|
valueNow: f
|
|
3941
|
-
} =
|
|
3961
|
+
} = Wd({
|
|
3942
3962
|
layout: r,
|
|
3943
3963
|
panelsArray: n,
|
|
3944
3964
|
pivotIndices: [d, d + 1]
|
|
@@ -3967,7 +3987,7 @@ function Xd({
|
|
|
3967
3987
|
const f = m.map((p) => {
|
|
3968
3988
|
const v = p.getAttribute("data-panel-resize-handle-id");
|
|
3969
3989
|
D(v, "Resize handle element has no handle id attribute");
|
|
3970
|
-
const [b, h] =
|
|
3990
|
+
const [b, h] = Xd(t, v, d, o);
|
|
3971
3991
|
if (b == null || h == null)
|
|
3972
3992
|
return () => {
|
|
3973
3993
|
};
|
|
@@ -3976,11 +3996,11 @@ function Xd({
|
|
|
3976
3996
|
switch (x.key) {
|
|
3977
3997
|
case "Enter": {
|
|
3978
3998
|
x.preventDefault();
|
|
3979
|
-
const
|
|
3980
|
-
if (
|
|
3981
|
-
const S = d[
|
|
3982
|
-
D(S, `No panel data found for index ${
|
|
3983
|
-
const R = r[
|
|
3999
|
+
const y = d.findIndex((S) => S.id === b);
|
|
4000
|
+
if (y >= 0) {
|
|
4001
|
+
const S = d[y];
|
|
4002
|
+
D(S, `No panel data found for index ${y}`);
|
|
4003
|
+
const R = r[y], {
|
|
3984
4004
|
collapsedSize: M = 0,
|
|
3985
4005
|
collapsible: T,
|
|
3986
4006
|
minSize: P = 0
|
|
@@ -4025,7 +4045,7 @@ function No(e, a) {
|
|
|
4025
4045
|
} = gt(a);
|
|
4026
4046
|
return t ? r : n;
|
|
4027
4047
|
}
|
|
4028
|
-
function
|
|
4048
|
+
function qd(e, a, t, r, n) {
|
|
4029
4049
|
const o = t === "horizontal", l = ht(a, n);
|
|
4030
4050
|
D(l, `No resize handle element found for id "${a}"`);
|
|
4031
4051
|
const i = l.getAttribute("data-panel-group-id");
|
|
@@ -4038,7 +4058,7 @@ function Yd(e, a, t, r, n) {
|
|
|
4038
4058
|
const f = m.getBoundingClientRect(), p = o ? f.width : f.height;
|
|
4039
4059
|
return (u - d) / p * 100;
|
|
4040
4060
|
}
|
|
4041
|
-
function
|
|
4061
|
+
function Jd(e, a, t, r, n, o) {
|
|
4042
4062
|
if (bo(e)) {
|
|
4043
4063
|
const l = t === "horizontal";
|
|
4044
4064
|
let i = 0;
|
|
@@ -4066,9 +4086,9 @@ function qd(e, a, t, r, n, o) {
|
|
|
4066
4086
|
}
|
|
4067
4087
|
return d;
|
|
4068
4088
|
} else
|
|
4069
|
-
return r == null ? 0 :
|
|
4089
|
+
return r == null ? 0 : qd(e, a, t, r, o);
|
|
4070
4090
|
}
|
|
4071
|
-
function
|
|
4091
|
+
function Zd({
|
|
4072
4092
|
panelDataArray: e
|
|
4073
4093
|
}) {
|
|
4074
4094
|
const a = Array(e.length), t = e.map((o) => o.constraints);
|
|
@@ -4125,7 +4145,7 @@ function qe(e, a) {
|
|
|
4125
4145
|
return !1;
|
|
4126
4146
|
return !0;
|
|
4127
4147
|
}
|
|
4128
|
-
function
|
|
4148
|
+
function Qd({
|
|
4129
4149
|
defaultSize: e,
|
|
4130
4150
|
dragState: a,
|
|
4131
4151
|
layout: t,
|
|
@@ -4146,7 +4166,7 @@ function Zd({
|
|
|
4146
4166
|
pointerEvents: a !== null ? "none" : void 0
|
|
4147
4167
|
};
|
|
4148
4168
|
}
|
|
4149
|
-
function
|
|
4169
|
+
function eu(e, a = 10) {
|
|
4150
4170
|
let t = null;
|
|
4151
4171
|
return (...n) => {
|
|
4152
4172
|
t !== null && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -4193,12 +4213,12 @@ function _o(e, a) {
|
|
|
4193
4213
|
}
|
|
4194
4214
|
return null;
|
|
4195
4215
|
}
|
|
4196
|
-
function
|
|
4216
|
+
function tu(e, a, t) {
|
|
4197
4217
|
var r, n;
|
|
4198
4218
|
const o = (r = _o(e, t)) !== null && r !== void 0 ? r : {}, l = To(a);
|
|
4199
4219
|
return (n = o[l]) !== null && n !== void 0 ? n : null;
|
|
4200
4220
|
}
|
|
4201
|
-
function
|
|
4221
|
+
function au(e, a, t, r, n) {
|
|
4202
4222
|
var o;
|
|
4203
4223
|
const l = Eo(e), i = To(a), d = (o = _o(e, n)) !== null && o !== void 0 ? o : {};
|
|
4204
4224
|
d[i] = {
|
|
@@ -4250,7 +4270,7 @@ function ka({
|
|
|
4250
4270
|
}
|
|
4251
4271
|
return t;
|
|
4252
4272
|
}
|
|
4253
|
-
const
|
|
4273
|
+
const ru = 100, Ve = {
|
|
4254
4274
|
getItem: (e) => (za(Ve), Ve.getItem(e)),
|
|
4255
4275
|
setItem: (e, a) => {
|
|
4256
4276
|
za(Ve), Ve.setItem(e, a);
|
|
@@ -4270,7 +4290,7 @@ function Ao({
|
|
|
4270
4290
|
tagName: m = "div",
|
|
4271
4291
|
...f
|
|
4272
4292
|
}) {
|
|
4273
|
-
const p = ca(o), v = ae(null), [b, h] = _e(null), [g, x] = _e([]),
|
|
4293
|
+
const p = ca(o), v = ae(null), [b, h] = _e(null), [g, x] = _e([]), y = Kd(), S = ae({}), R = ae(/* @__PURE__ */ new Map()), M = ae(0), T = ae({
|
|
4274
4294
|
autoSaveId: e,
|
|
4275
4295
|
direction: r,
|
|
4276
4296
|
dragState: b,
|
|
@@ -4309,7 +4329,7 @@ function Ao({
|
|
|
4309
4329
|
}
|
|
4310
4330
|
}), []), ye(() => {
|
|
4311
4331
|
T.current.autoSaveId = e, T.current.direction = r, T.current.dragState = b, T.current.id = p, T.current.onLayout = l, T.current.storage = d;
|
|
4312
|
-
}),
|
|
4332
|
+
}), Yd({
|
|
4313
4333
|
committedValuesRef: T,
|
|
4314
4334
|
eagerValuesRef: P,
|
|
4315
4335
|
groupId: p,
|
|
@@ -4325,7 +4345,7 @@ function Ao({
|
|
|
4325
4345
|
if (g.length === 0 || g.length !== C.length)
|
|
4326
4346
|
return;
|
|
4327
4347
|
let _ = La[e];
|
|
4328
|
-
_ == null && (_ =
|
|
4348
|
+
_ == null && (_ = eu(au, ru), La[e] = _);
|
|
4329
4349
|
const L = [...C], z = new Map(R.current);
|
|
4330
4350
|
_(e, L, z, g, d);
|
|
4331
4351
|
}
|
|
@@ -4395,7 +4415,7 @@ function Ao({
|
|
|
4395
4415
|
const {
|
|
4396
4416
|
panelDataArray: L
|
|
4397
4417
|
} = P.current, z = Ee(L, C);
|
|
4398
|
-
return
|
|
4418
|
+
return Qd({
|
|
4399
4419
|
defaultSize: _,
|
|
4400
4420
|
dragState: b,
|
|
4401
4421
|
layout: g,
|
|
@@ -4429,8 +4449,8 @@ function Ao({
|
|
|
4429
4449
|
_.push(C), _.sort((L, z) => {
|
|
4430
4450
|
const A = L.order, F = z.order;
|
|
4431
4451
|
return A == null && F == null ? 0 : A == null ? -1 : F == null ? 1 : A - F;
|
|
4432
|
-
}), P.current.panelDataArrayChanged = !0,
|
|
4433
|
-
}, [
|
|
4452
|
+
}), P.current.panelDataArrayChanged = !0, y();
|
|
4453
|
+
}, [y]);
|
|
4434
4454
|
ye(() => {
|
|
4435
4455
|
if (P.current.panelDataArrayChanged) {
|
|
4436
4456
|
P.current.panelDataArrayChanged = !1;
|
|
@@ -4444,10 +4464,10 @@ function Ao({
|
|
|
4444
4464
|
} = P.current;
|
|
4445
4465
|
let F = null;
|
|
4446
4466
|
if (C) {
|
|
4447
|
-
const X =
|
|
4467
|
+
const X = tu(C, A, L);
|
|
4448
4468
|
X && (R.current = new Map(Object.entries(X.expandToSizes)), F = X.layout);
|
|
4449
4469
|
}
|
|
4450
|
-
F == null && (F =
|
|
4470
|
+
F == null && (F = Zd({
|
|
4451
4471
|
panelDataArray: A
|
|
4452
4472
|
}));
|
|
4453
4473
|
const G = ka({
|
|
@@ -4482,7 +4502,7 @@ function Ao({
|
|
|
4482
4502
|
} = P.current, {
|
|
4483
4503
|
initialLayout: We
|
|
4484
4504
|
} = X ?? {}, St = Ro(ue, C, F);
|
|
4485
|
-
let Q =
|
|
4505
|
+
let Q = Jd(A, C, G, X, fe, F);
|
|
4486
4506
|
const xa = G === "horizontal";
|
|
4487
4507
|
xa && _ && (Q = -Q);
|
|
4488
4508
|
const Zo = Le.map((Qo) => Qo.constraints), $e = Fe({
|
|
@@ -4554,8 +4574,8 @@ function Ao({
|
|
|
4554
4574
|
const {
|
|
4555
4575
|
panelDataArray: _
|
|
4556
4576
|
} = P.current, L = Ee(_, C);
|
|
4557
|
-
L >= 0 && (_.splice(L, 1), delete S.current[C.id], P.current.panelDataArrayChanged = !0,
|
|
4558
|
-
}, [
|
|
4577
|
+
L >= 0 && (_.splice(L, 1), delete S.current[C.id], P.current.panelDataArrayChanged = !0, y());
|
|
4578
|
+
}, [y]), ke = Md(() => ({
|
|
4559
4579
|
collapsePanel: B,
|
|
4560
4580
|
direction: r,
|
|
4561
4581
|
dragState: b,
|
|
@@ -4615,7 +4635,7 @@ function he(e, a, t) {
|
|
|
4615
4635
|
pivotIndices: o
|
|
4616
4636
|
};
|
|
4617
4637
|
}
|
|
4618
|
-
function
|
|
4638
|
+
function nu({
|
|
4619
4639
|
disabled: e,
|
|
4620
4640
|
handleId: a,
|
|
4621
4641
|
resizeHandler: t,
|
|
@@ -4682,7 +4702,7 @@ function Io({
|
|
|
4682
4702
|
throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
4683
4703
|
const {
|
|
4684
4704
|
direction: x,
|
|
4685
|
-
groupId:
|
|
4705
|
+
groupId: y,
|
|
4686
4706
|
registerResizeHandle: S,
|
|
4687
4707
|
startDragging: R,
|
|
4688
4708
|
stopDragging: M,
|
|
@@ -4705,7 +4725,7 @@ function Io({
|
|
|
4705
4725
|
if (t || k == null)
|
|
4706
4726
|
return;
|
|
4707
4727
|
const U = b.current;
|
|
4708
|
-
return D(U, "Element ref not attached"),
|
|
4728
|
+
return D(U, "Element ref not attached"), Gd(P, U, x, {
|
|
4709
4729
|
coarse: $,
|
|
4710
4730
|
fine: V
|
|
4711
4731
|
}, (Re, ke, de) => {
|
|
@@ -4738,7 +4758,7 @@ function Io({
|
|
|
4738
4758
|
else
|
|
4739
4759
|
j("inactive");
|
|
4740
4760
|
});
|
|
4741
|
-
}, [$, x, t, V, S, P, k, R, M]),
|
|
4761
|
+
}, [$, x, t, V, S, P, k, R, M]), nu({
|
|
4742
4762
|
disabled: t,
|
|
4743
4763
|
handleId: P,
|
|
4744
4764
|
resizeHandler: k,
|
|
@@ -4766,7 +4786,7 @@ function Io({
|
|
|
4766
4786
|
tabIndex: u,
|
|
4767
4787
|
// CSS selectors
|
|
4768
4788
|
"data-panel-group-direction": x,
|
|
4769
|
-
"data-panel-group-id":
|
|
4789
|
+
"data-panel-group-id": y,
|
|
4770
4790
|
"data-resize-handle": "",
|
|
4771
4791
|
"data-resize-handle-active": B === "drag" ? "pointer" : H ? "keyboard" : void 0,
|
|
4772
4792
|
"data-resize-handle-state": B,
|
|
@@ -4775,13 +4795,13 @@ function Io({
|
|
|
4775
4795
|
});
|
|
4776
4796
|
}
|
|
4777
4797
|
Io.displayName = "PanelResizeHandle";
|
|
4778
|
-
const
|
|
4798
|
+
const Qu = ({
|
|
4779
4799
|
className: e,
|
|
4780
4800
|
...a
|
|
4781
4801
|
}) => /* @__PURE__ */ s.jsx(
|
|
4782
4802
|
Mo,
|
|
4783
4803
|
{
|
|
4784
|
-
className:
|
|
4804
|
+
className: w(
|
|
4785
4805
|
"al-flex al-h-full al-w-full data-[panel-group-direction=vertical]:al-flex-col",
|
|
4786
4806
|
e
|
|
4787
4807
|
),
|
|
@@ -4789,7 +4809,7 @@ const Zu = ({
|
|
|
4789
4809
|
"aria-label": "resizable-panel-group",
|
|
4790
4810
|
...a
|
|
4791
4811
|
}
|
|
4792
|
-
),
|
|
4812
|
+
), ef = ({
|
|
4793
4813
|
className: e,
|
|
4794
4814
|
minSize: a,
|
|
4795
4815
|
maxSize: t,
|
|
@@ -4797,14 +4817,14 @@ const Zu = ({
|
|
|
4797
4817
|
}) => /* @__PURE__ */ s.jsx(
|
|
4798
4818
|
mo,
|
|
4799
4819
|
{
|
|
4800
|
-
className:
|
|
4820
|
+
className: w("al-group al-relative", e),
|
|
4801
4821
|
role: "region",
|
|
4802
4822
|
"aria-label": "resizable-panel",
|
|
4803
4823
|
...r,
|
|
4804
4824
|
"data-panel-min-size": a,
|
|
4805
4825
|
"data-panel-max-size": t
|
|
4806
4826
|
}
|
|
4807
|
-
),
|
|
4827
|
+
), tf = ({
|
|
4808
4828
|
withHandle: e,
|
|
4809
4829
|
className: a,
|
|
4810
4830
|
...t
|
|
@@ -4813,7 +4833,7 @@ const Zu = ({
|
|
|
4813
4833
|
return /* @__PURE__ */ s.jsx(
|
|
4814
4834
|
Io,
|
|
4815
4835
|
{
|
|
4816
|
-
className:
|
|
4836
|
+
className: w(
|
|
4817
4837
|
"al-relative al-flex al-w-px al-items-center al-justify-center al-bg-border after:al-absolute after:al-inset-y-0 after:al-left-1/2 after:al-w-1 after:al--translate-x-1/2 focus-visible:al-outline-none focus-visible:al-ring-1 focus-visible:al-ring-ring focus-visible:al-ring-offset-1 data-[panel-group-direction=vertical]:al-h-px data-[panel-group-direction=vertical]:al-w-full data-[panel-group-direction=vertical]:after:al-left-0 data-[panel-group-direction=vertical]:after:al-h-1 data-[panel-group-direction=vertical]:after:al-w-full data-[panel-group-direction=vertical]:after:al-translate-y-1/2 data-[panel-group-direction=vertical]:after:al-translate-x-0 [&[data-panel-group-direction=vertical]>div]:al-rotate-90",
|
|
4818
4838
|
a
|
|
4819
4839
|
),
|
|
@@ -4833,10 +4853,10 @@ const Zu = ({
|
|
|
4833
4853
|
}
|
|
4834
4854
|
);
|
|
4835
4855
|
};
|
|
4836
|
-
function
|
|
4856
|
+
function ou(e, a) {
|
|
4837
4857
|
return c.useReducer((t, r) => a[t][r] ?? t, e);
|
|
4838
4858
|
}
|
|
4839
|
-
var pa = "ScrollArea", [jo,
|
|
4859
|
+
var pa = "ScrollArea", [jo, af] = ce(pa), [su, oe] = jo(pa), Do = c.forwardRef(
|
|
4840
4860
|
(e, a) => {
|
|
4841
4861
|
const {
|
|
4842
4862
|
__scopeScrollArea: t,
|
|
@@ -4844,9 +4864,9 @@ var pa = "ScrollArea", [jo, tf] = ce(pa), [ou, oe] = jo(pa), Do = c.forwardRef(
|
|
|
4844
4864
|
dir: n,
|
|
4845
4865
|
scrollHideDelay: o = 600,
|
|
4846
4866
|
...l
|
|
4847
|
-
} = e, [i, d] = c.useState(null), [u, m] = c.useState(null), [f, p] = c.useState(null), [v, b] = c.useState(null), [h, g] = c.useState(null), [x,
|
|
4867
|
+
} = e, [i, d] = c.useState(null), [u, m] = c.useState(null), [f, p] = c.useState(null), [v, b] = c.useState(null), [h, g] = c.useState(null), [x, y] = c.useState(0), [S, R] = c.useState(0), [M, T] = c.useState(!1), [P, B] = c.useState(!1), j = q(a, (I) => d(I)), H = Ke(n);
|
|
4848
4868
|
return /* @__PURE__ */ s.jsx(
|
|
4849
|
-
|
|
4869
|
+
su,
|
|
4850
4870
|
{
|
|
4851
4871
|
scope: t,
|
|
4852
4872
|
type: r,
|
|
@@ -4865,7 +4885,7 @@ var pa = "ScrollArea", [jo, tf] = ce(pa), [ou, oe] = jo(pa), Do = c.forwardRef(
|
|
|
4865
4885
|
onScrollbarYChange: g,
|
|
4866
4886
|
scrollbarYEnabled: P,
|
|
4867
4887
|
onScrollbarYEnabledChange: B,
|
|
4868
|
-
onCornerWidthChange:
|
|
4888
|
+
onCornerWidthChange: y,
|
|
4869
4889
|
onCornerHeightChange: R,
|
|
4870
4890
|
children: /* @__PURE__ */ s.jsx(
|
|
4871
4891
|
O.div,
|
|
@@ -4934,11 +4954,11 @@ var pe = "ScrollAreaScrollbar", ma = c.forwardRef(
|
|
|
4934
4954
|
const { forceMount: t, ...r } = e, n = oe(pe, e.__scopeScrollArea), { onScrollbarXEnabledChange: o, onScrollbarYEnabledChange: l } = n, i = e.orientation === "horizontal";
|
|
4935
4955
|
return c.useEffect(() => (i ? o(!0) : l(!0), () => {
|
|
4936
4956
|
i ? o(!1) : l(!1);
|
|
4937
|
-
}), [i, o, l]), n.type === "hover" ? /* @__PURE__ */ s.jsx(
|
|
4957
|
+
}), [i, o, l]), n.type === "hover" ? /* @__PURE__ */ s.jsx(lu, { ...r, ref: a, forceMount: t }) : n.type === "scroll" ? /* @__PURE__ */ s.jsx(iu, { ...r, ref: a, forceMount: t }) : n.type === "auto" ? /* @__PURE__ */ s.jsx(Lo, { ...r, ref: a, forceMount: t }) : n.type === "always" ? /* @__PURE__ */ s.jsx(ba, { ...r, ref: a }) : null;
|
|
4938
4958
|
}
|
|
4939
4959
|
);
|
|
4940
4960
|
ma.displayName = pe;
|
|
4941
|
-
var
|
|
4961
|
+
var lu = c.forwardRef((e, a) => {
|
|
4942
4962
|
const { forceMount: t, ...r } = e, n = oe(pe, e.__scopeScrollArea), [o, l] = c.useState(!1);
|
|
4943
4963
|
return c.useEffect(() => {
|
|
4944
4964
|
const i = n.scrollArea;
|
|
@@ -4961,8 +4981,8 @@ var su = c.forwardRef((e, a) => {
|
|
|
4961
4981
|
ref: a
|
|
4962
4982
|
}
|
|
4963
4983
|
) });
|
|
4964
|
-
}),
|
|
4965
|
-
const { forceMount: t, ...r } = e, n = oe(pe, e.__scopeScrollArea), o = e.orientation === "horizontal", l = wt(() => d("SCROLL_END"), 100), [i, d] =
|
|
4984
|
+
}), iu = c.forwardRef((e, a) => {
|
|
4985
|
+
const { forceMount: t, ...r } = e, n = oe(pe, e.__scopeScrollArea), o = e.orientation === "horizontal", l = wt(() => d("SCROLL_END"), 100), [i, d] = ou("hidden", {
|
|
4966
4986
|
hidden: {
|
|
4967
4987
|
SCROLL: "scrolling"
|
|
4968
4988
|
},
|
|
@@ -5035,10 +5055,10 @@ var su = c.forwardRef((e, a) => {
|
|
|
5035
5055
|
onThumbPointerDown: (p) => l.current = p
|
|
5036
5056
|
};
|
|
5037
5057
|
function f(p, v) {
|
|
5038
|
-
return
|
|
5058
|
+
return mu(p, l.current, i, v);
|
|
5039
5059
|
}
|
|
5040
5060
|
return t === "horizontal" ? /* @__PURE__ */ s.jsx(
|
|
5041
|
-
|
|
5061
|
+
cu,
|
|
5042
5062
|
{
|
|
5043
5063
|
...m,
|
|
5044
5064
|
ref: a,
|
|
@@ -5056,7 +5076,7 @@ var su = c.forwardRef((e, a) => {
|
|
|
5056
5076
|
}
|
|
5057
5077
|
}
|
|
5058
5078
|
) : t === "vertical" ? /* @__PURE__ */ s.jsx(
|
|
5059
|
-
|
|
5079
|
+
du,
|
|
5060
5080
|
{
|
|
5061
5081
|
...m,
|
|
5062
5082
|
ref: a,
|
|
@@ -5074,7 +5094,7 @@ var su = c.forwardRef((e, a) => {
|
|
|
5074
5094
|
}
|
|
5075
5095
|
}
|
|
5076
5096
|
) : null;
|
|
5077
|
-
}),
|
|
5097
|
+
}), cu = c.forwardRef((e, a) => {
|
|
5078
5098
|
const { sizes: t, onSizesChange: r, ...n } = e, o = oe(pe, e.__scopeScrollArea), [l, i] = c.useState(), d = c.useRef(null), u = q(a, d, o.onScrollbarXChange);
|
|
5079
5099
|
return c.useEffect(() => {
|
|
5080
5100
|
d.current && i(getComputedStyle(d.current));
|
|
@@ -5113,7 +5133,7 @@ var su = c.forwardRef((e, a) => {
|
|
|
5113
5133
|
}
|
|
5114
5134
|
}
|
|
5115
5135
|
);
|
|
5116
|
-
}),
|
|
5136
|
+
}), du = c.forwardRef((e, a) => {
|
|
5117
5137
|
const { sizes: t, onSizesChange: r, ...n } = e, o = oe(pe, e.__scopeScrollArea), [l, i] = c.useState(), d = c.useRef(null), u = q(a, d, o.onScrollbarYChange);
|
|
5118
5138
|
return c.useEffect(() => {
|
|
5119
5139
|
d.current && i(getComputedStyle(d.current));
|
|
@@ -5153,7 +5173,7 @@ var su = c.forwardRef((e, a) => {
|
|
|
5153
5173
|
}
|
|
5154
5174
|
}
|
|
5155
5175
|
);
|
|
5156
|
-
}), [
|
|
5176
|
+
}), [uu, $o] = jo(pe), Oo = c.forwardRef((e, a) => {
|
|
5157
5177
|
const {
|
|
5158
5178
|
__scopeScrollArea: t,
|
|
5159
5179
|
sizes: r,
|
|
@@ -5166,7 +5186,7 @@ var su = c.forwardRef((e, a) => {
|
|
|
5166
5186
|
onWheelScroll: m,
|
|
5167
5187
|
onResize: f,
|
|
5168
5188
|
...p
|
|
5169
|
-
} = e, v = oe(pe, t), [b, h] = c.useState(null), g = q(a, (j) => h(j)), x = c.useRef(null),
|
|
5189
|
+
} = e, v = oe(pe, t), [b, h] = c.useState(null), g = q(a, (j) => h(j)), x = c.useRef(null), y = c.useRef(""), S = v.viewport, R = r.content - r.viewport, M = ne(m), T = ne(d), P = wt(f, 10);
|
|
5170
5190
|
function B(j) {
|
|
5171
5191
|
if (x.current) {
|
|
5172
5192
|
const H = j.clientX - x.current.left, I = j.clientY - x.current.top;
|
|
@@ -5180,7 +5200,7 @@ var su = c.forwardRef((e, a) => {
|
|
|
5180
5200
|
};
|
|
5181
5201
|
return document.addEventListener("wheel", j, { passive: !1 }), () => document.removeEventListener("wheel", j, { passive: !1 });
|
|
5182
5202
|
}, [S, b, R, M]), c.useEffect(T, [r, T]), Ie(b, P), Ie(v.content, P), /* @__PURE__ */ s.jsx(
|
|
5183
|
-
|
|
5203
|
+
uu,
|
|
5184
5204
|
{
|
|
5185
5205
|
scope: t,
|
|
5186
5206
|
scrollbar: b,
|
|
@@ -5196,12 +5216,12 @@ var su = c.forwardRef((e, a) => {
|
|
|
5196
5216
|
ref: g,
|
|
5197
5217
|
style: { position: "absolute", ...p.style },
|
|
5198
5218
|
onPointerDown: E(e.onPointerDown, (j) => {
|
|
5199
|
-
j.button === 0 && (j.target.setPointerCapture(j.pointerId), x.current = b.getBoundingClientRect(),
|
|
5219
|
+
j.button === 0 && (j.target.setPointerCapture(j.pointerId), x.current = b.getBoundingClientRect(), y.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", v.viewport && (v.viewport.style.scrollBehavior = "auto"), B(j));
|
|
5200
5220
|
}),
|
|
5201
5221
|
onPointerMove: E(e.onPointerMove, B),
|
|
5202
5222
|
onPointerUp: E(e.onPointerUp, (j) => {
|
|
5203
5223
|
const H = j.target;
|
|
5204
|
-
H.hasPointerCapture(j.pointerId) && H.releasePointerCapture(j.pointerId), document.body.style.webkitUserSelect =
|
|
5224
|
+
H.hasPointerCapture(j.pointerId) && H.releasePointerCapture(j.pointerId), document.body.style.webkitUserSelect = y.current, v.viewport && (v.viewport.style.scrollBehavior = ""), x.current = null;
|
|
5205
5225
|
})
|
|
5206
5226
|
}
|
|
5207
5227
|
)
|
|
@@ -5210,9 +5230,9 @@ var su = c.forwardRef((e, a) => {
|
|
|
5210
5230
|
}), at = "ScrollAreaThumb", Fo = c.forwardRef(
|
|
5211
5231
|
(e, a) => {
|
|
5212
5232
|
const { forceMount: t, ...r } = e, n = $o(at, e.__scopeScrollArea);
|
|
5213
|
-
return /* @__PURE__ */ s.jsx(ge, { present: t || n.hasThumb, children: /* @__PURE__ */ s.jsx(
|
|
5233
|
+
return /* @__PURE__ */ s.jsx(ge, { present: t || n.hasThumb, children: /* @__PURE__ */ s.jsx(fu, { ref: a, ...r }) });
|
|
5214
5234
|
}
|
|
5215
|
-
),
|
|
5235
|
+
), fu = c.forwardRef(
|
|
5216
5236
|
(e, a) => {
|
|
5217
5237
|
const { __scopeScrollArea: t, style: r, ...n } = e, o = oe(at, t), l = $o(at, t), { onThumbPositionChange: i } = l, d = q(
|
|
5218
5238
|
a,
|
|
@@ -5225,7 +5245,7 @@ var su = c.forwardRef((e, a) => {
|
|
|
5225
5245
|
if (f) {
|
|
5226
5246
|
const p = () => {
|
|
5227
5247
|
if (m(), !u.current) {
|
|
5228
|
-
const v =
|
|
5248
|
+
const v = bu(f, i);
|
|
5229
5249
|
u.current = v, i();
|
|
5230
5250
|
}
|
|
5231
5251
|
};
|
|
@@ -5255,11 +5275,11 @@ Fo.displayName = at;
|
|
|
5255
5275
|
var ga = "ScrollAreaCorner", Vo = c.forwardRef(
|
|
5256
5276
|
(e, a) => {
|
|
5257
5277
|
const t = oe(ga, e.__scopeScrollArea), r = !!(t.scrollbarX && t.scrollbarY);
|
|
5258
|
-
return t.type !== "scroll" && r ? /* @__PURE__ */ s.jsx(
|
|
5278
|
+
return t.type !== "scroll" && r ? /* @__PURE__ */ s.jsx(pu, { ...e, ref: a }) : null;
|
|
5259
5279
|
}
|
|
5260
5280
|
);
|
|
5261
5281
|
Vo.displayName = ga;
|
|
5262
|
-
var
|
|
5282
|
+
var pu = c.forwardRef((e, a) => {
|
|
5263
5283
|
const { __scopeScrollArea: t, ...r } = e, n = oe(ga, t), [o, l] = c.useState(0), [i, d] = c.useState(0), u = !!(o && i);
|
|
5264
5284
|
return Ie(n.scrollbarX, () => {
|
|
5265
5285
|
var f;
|
|
@@ -5297,7 +5317,7 @@ function xt(e) {
|
|
|
5297
5317
|
const a = Ho(e.viewport, e.content), t = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - t) * a;
|
|
5298
5318
|
return Math.max(r, 18);
|
|
5299
5319
|
}
|
|
5300
|
-
function
|
|
5320
|
+
function mu(e, a, t, r = "ltr") {
|
|
5301
5321
|
const n = xt(t), o = n / 2, l = a || o, i = n - l, d = t.scrollbar.paddingStart + l, u = t.scrollbar.size - t.scrollbar.paddingEnd - i, m = t.content - t.viewport, f = r === "ltr" ? [0, m] : [m * -1, 0];
|
|
5302
5322
|
return Bo([d, u], f)(e);
|
|
5303
5323
|
}
|
|
@@ -5315,7 +5335,7 @@ function Bo(e, a) {
|
|
|
5315
5335
|
function Go(e, a) {
|
|
5316
5336
|
return e > 0 && e < a;
|
|
5317
5337
|
}
|
|
5318
|
-
var
|
|
5338
|
+
var bu = (e, a = () => {
|
|
5319
5339
|
}) => {
|
|
5320
5340
|
let t = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
5321
5341
|
return function n() {
|
|
@@ -5343,18 +5363,18 @@ function Ie(e, a) {
|
|
|
5343
5363
|
}
|
|
5344
5364
|
}, [e, t]);
|
|
5345
5365
|
}
|
|
5346
|
-
var Ko = Do,
|
|
5347
|
-
const
|
|
5366
|
+
var Ko = Do, gu = ko, vu = Vo;
|
|
5367
|
+
const hu = c.forwardRef(({ className: e, children: a, ...t }, r) => /* @__PURE__ */ s.jsxs(
|
|
5348
5368
|
Ko,
|
|
5349
5369
|
{
|
|
5350
5370
|
ref: r,
|
|
5351
|
-
className:
|
|
5371
|
+
className: w("al-relative al-overflow-hidden", e),
|
|
5352
5372
|
role: "region",
|
|
5353
5373
|
"aria-label": "scroll-area",
|
|
5354
5374
|
...t,
|
|
5355
5375
|
children: [
|
|
5356
5376
|
/* @__PURE__ */ s.jsx(
|
|
5357
|
-
|
|
5377
|
+
gu,
|
|
5358
5378
|
{
|
|
5359
5379
|
className: "al-h-full al-w-full al-rounded-[inherit]",
|
|
5360
5380
|
role: "region",
|
|
@@ -5364,17 +5384,17 @@ const vu = c.forwardRef(({ className: e, children: a, ...t }, r) => /* @__PURE__
|
|
|
5364
5384
|
),
|
|
5365
5385
|
/* @__PURE__ */ s.jsx(Ft, {}),
|
|
5366
5386
|
/* @__PURE__ */ s.jsx(Ft, { orientation: "horizontal" }),
|
|
5367
|
-
/* @__PURE__ */ s.jsx(
|
|
5387
|
+
/* @__PURE__ */ s.jsx(vu, {})
|
|
5368
5388
|
]
|
|
5369
5389
|
}
|
|
5370
5390
|
));
|
|
5371
|
-
|
|
5391
|
+
hu.displayName = Ko.displayName;
|
|
5372
5392
|
const Ft = c.forwardRef(({ className: e, orientation: a = "vertical", ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
5373
5393
|
ma,
|
|
5374
5394
|
{
|
|
5375
5395
|
ref: r,
|
|
5376
5396
|
orientation: a,
|
|
5377
|
-
className:
|
|
5397
|
+
className: w(
|
|
5378
5398
|
"al-flex al-touch-none al-select-none al-transition-colors",
|
|
5379
5399
|
a === "vertical" && "al-h-full al-w-2.5 al-border-l al-border-l-transparent al-p-[1px]",
|
|
5380
5400
|
a === "horizontal" && "al-h-2.5 al-flex-col al-border-t al-border-t-transparent al-p-[1px]",
|
|
@@ -5385,9 +5405,9 @@ const Ft = c.forwardRef(({ className: e, orientation: a = "vertical", ...t }, r)
|
|
|
5385
5405
|
}
|
|
5386
5406
|
));
|
|
5387
5407
|
Ft.displayName = ma.displayName;
|
|
5388
|
-
var Tt, va = "HoverCard", [Uo,
|
|
5408
|
+
var Tt, va = "HoverCard", [Uo, rf] = ce(va, [
|
|
5389
5409
|
Fa
|
|
5390
|
-
]), yt = Fa(), [
|
|
5410
|
+
]), yt = Fa(), [xu, ha] = Uo(va), Wo = (e) => {
|
|
5391
5411
|
const {
|
|
5392
5412
|
__scopeHoverCard: a,
|
|
5393
5413
|
children: t,
|
|
@@ -5408,7 +5428,7 @@ var Tt, va = "HoverCard", [Uo, af] = ce(va, [
|
|
|
5408
5428
|
return c.useEffect(() => () => {
|
|
5409
5429
|
clearTimeout(u.current), clearTimeout(m.current);
|
|
5410
5430
|
}, []), /* @__PURE__ */ s.jsx(
|
|
5411
|
-
|
|
5431
|
+
xu,
|
|
5412
5432
|
{
|
|
5413
5433
|
scope: a,
|
|
5414
5434
|
open: v,
|
|
@@ -5442,13 +5462,13 @@ var Xo = "HoverCardTrigger", Yo = c.forwardRef(
|
|
|
5442
5462
|
}
|
|
5443
5463
|
);
|
|
5444
5464
|
Yo.displayName = Xo;
|
|
5445
|
-
var
|
|
5465
|
+
var wu = "HoverCardPortal", [nf, yu] = Uo(wu, {
|
|
5446
5466
|
forceMount: void 0
|
|
5447
5467
|
}), nt = "HoverCardContent", qo = c.forwardRef(
|
|
5448
5468
|
(e, a) => {
|
|
5449
|
-
const t =
|
|
5469
|
+
const t = yu(nt, e.__scopeHoverCard), { forceMount: r = t.forceMount, ...n } = e, o = ha(nt, e.__scopeHoverCard);
|
|
5450
5470
|
return /* @__PURE__ */ s.jsx(ge, { present: r || o.open, children: /* @__PURE__ */ s.jsx(
|
|
5451
|
-
|
|
5471
|
+
Su,
|
|
5452
5472
|
{
|
|
5453
5473
|
"data-state": o.open ? "open" : "closed",
|
|
5454
5474
|
...n,
|
|
@@ -5460,7 +5480,7 @@ var xu = "HoverCardPortal", [rf, wu] = Uo(xu, {
|
|
|
5460
5480
|
}
|
|
5461
5481
|
);
|
|
5462
5482
|
qo.displayName = nt;
|
|
5463
|
-
var
|
|
5483
|
+
var Su = c.forwardRef((e, a) => {
|
|
5464
5484
|
const {
|
|
5465
5485
|
__scopeHoverCard: t,
|
|
5466
5486
|
onEscapeKeyDown: r,
|
|
@@ -5489,7 +5509,7 @@ var yu = c.forwardRef((e, a) => {
|
|
|
5489
5509
|
};
|
|
5490
5510
|
}
|
|
5491
5511
|
}, [d.isPointerDownOnContentRef, d.hasSelectionRef]), c.useEffect(() => {
|
|
5492
|
-
m.current &&
|
|
5512
|
+
m.current && Pu(m.current).forEach((h) => h.setAttribute("tabindex", "-1"));
|
|
5493
5513
|
}), /* @__PURE__ */ s.jsx(
|
|
5494
5514
|
Vs,
|
|
5495
5515
|
{
|
|
@@ -5526,39 +5546,39 @@ var yu = c.forwardRef((e, a) => {
|
|
|
5526
5546
|
)
|
|
5527
5547
|
}
|
|
5528
5548
|
);
|
|
5529
|
-
}),
|
|
5549
|
+
}), Cu = "HoverCardArrow", Ru = c.forwardRef(
|
|
5530
5550
|
(e, a) => {
|
|
5531
5551
|
const { __scopeHoverCard: t, ...r } = e, n = yt(t);
|
|
5532
5552
|
return /* @__PURE__ */ s.jsx(Bs, { ...n, ...r, ref: a });
|
|
5533
5553
|
}
|
|
5534
5554
|
);
|
|
5535
|
-
|
|
5555
|
+
Ru.displayName = Cu;
|
|
5536
5556
|
function ot(e) {
|
|
5537
5557
|
return (a) => a.pointerType === "touch" ? void 0 : e();
|
|
5538
5558
|
}
|
|
5539
|
-
function
|
|
5559
|
+
function Pu(e) {
|
|
5540
5560
|
const a = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
5541
5561
|
acceptNode: (r) => r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
|
|
5542
5562
|
});
|
|
5543
5563
|
for (; t.nextNode(); ) a.push(t.currentNode);
|
|
5544
5564
|
return a;
|
|
5545
5565
|
}
|
|
5546
|
-
var
|
|
5547
|
-
const
|
|
5566
|
+
var Nu = Wo, Eu = Yo, Jo = qo;
|
|
5567
|
+
const of = Nu, sf = Eu, Tu = De(({ className: e, align: a = "center", sideOffset: t = 4, ...r }, n) => /* @__PURE__ */ s.jsx(
|
|
5548
5568
|
Jo,
|
|
5549
5569
|
{
|
|
5550
5570
|
ref: n,
|
|
5551
5571
|
align: a,
|
|
5552
5572
|
sideOffset: t,
|
|
5553
|
-
className:
|
|
5573
|
+
className: w(
|
|
5554
5574
|
"al-z-50 al-w-64 al-rounded-md al-border al-bg-popover al-p-4 al-text-popover-foreground al-shadow-md al-outline-none data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
|
|
5555
5575
|
e
|
|
5556
5576
|
),
|
|
5557
5577
|
...r
|
|
5558
5578
|
}
|
|
5559
5579
|
));
|
|
5560
|
-
|
|
5561
|
-
function
|
|
5580
|
+
Tu.displayName = Jo.displayName;
|
|
5581
|
+
function lf({
|
|
5562
5582
|
onFilesSelected: e,
|
|
5563
5583
|
acceptedFileTypes: a = [],
|
|
5564
5584
|
maxFiles: t = 1,
|
|
@@ -5567,11 +5587,11 @@ function sf({
|
|
|
5567
5587
|
const [n, o] = Ze([]), [l, i] = Ze(!1), d = a.join(","), u = el(null), m = Xe(
|
|
5568
5588
|
(g) => {
|
|
5569
5589
|
if (!g) return;
|
|
5570
|
-
const x = Array.from(g),
|
|
5590
|
+
const x = Array.from(g), y = a.length ? x.filter(
|
|
5571
5591
|
(R) => a.some(
|
|
5572
5592
|
(M) => R.type.includes(M.replace("*", "")) || R.name.endsWith(M.replace("*", ""))
|
|
5573
5593
|
)
|
|
5574
|
-
) : x, S = t > 1 ? [...n, ...
|
|
5594
|
+
) : x, S = t > 1 ? [...n, ...y].slice(0, t) : y.slice(0, t);
|
|
5575
5595
|
o(S), e(S), u.current && (u.current.value = "");
|
|
5576
5596
|
},
|
|
5577
5597
|
[n, t, a, e]
|
|
@@ -5590,10 +5610,10 @@ function sf({
|
|
|
5590
5610
|
const x = [...n];
|
|
5591
5611
|
x.splice(g, 1), o(x), e(x);
|
|
5592
5612
|
};
|
|
5593
|
-
return /* @__PURE__ */ s.jsx(Ks, { className:
|
|
5613
|
+
return /* @__PURE__ */ s.jsx(Ks, { className: w("al-w-full", r), children: /* @__PURE__ */ s.jsx(Us, { className: "!al-p-6", children: /* @__PURE__ */ s.jsxs(
|
|
5594
5614
|
"div",
|
|
5595
5615
|
{
|
|
5596
|
-
className:
|
|
5616
|
+
className: w(
|
|
5597
5617
|
"al-relative al-border-2 al-border-dashed al-rounded-lg al-p-6 al-transition-colors",
|
|
5598
5618
|
l ? "al-border-primary al-bg-primary/5" : "al-border-muted-foreground/25 hover:al-border-primary/50",
|
|
5599
5619
|
n.length > 0 ? "al-pb-2" : ""
|
|
@@ -5658,8 +5678,8 @@ function sf({
|
|
|
5658
5678
|
variant: "ghost",
|
|
5659
5679
|
size: "icon",
|
|
5660
5680
|
className: "al-h-6 al-w-6",
|
|
5661
|
-
onClick: (
|
|
5662
|
-
|
|
5681
|
+
onClick: (y) => {
|
|
5682
|
+
y.stopPropagation(), h(x);
|
|
5663
5683
|
},
|
|
5664
5684
|
children: /* @__PURE__ */ s.jsx(Ha, { className: "al-h-4 al-w-4" })
|
|
5665
5685
|
}
|
|
@@ -5673,178 +5693,178 @@ function sf({
|
|
|
5673
5693
|
) }) });
|
|
5674
5694
|
}
|
|
5675
5695
|
export {
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5696
|
+
uf as Accordion,
|
|
5697
|
+
ff as AccordionContent,
|
|
5698
|
+
pf as AccordionItem,
|
|
5699
|
+
mf as AccordionTrigger,
|
|
5700
|
+
Gl as Alert,
|
|
5701
|
+
Ul as AlertDescription,
|
|
5702
|
+
bf as AlertDialog,
|
|
5703
|
+
gf as AlertDialogAction,
|
|
5704
|
+
vf as AlertDialogCancel,
|
|
5705
|
+
hf as AlertDialogContent,
|
|
5706
|
+
xf as AlertDialogDescription,
|
|
5707
|
+
wf as AlertDialogFooter,
|
|
5708
|
+
yf as AlertDialogHeader,
|
|
5709
|
+
Sf as AlertDialogOverlay,
|
|
5710
|
+
Cf as AlertDialogPortal,
|
|
5711
|
+
Rf as AlertDialogTitle,
|
|
5712
|
+
Pf as AlertDialogTrigger,
|
|
5713
|
+
Kl as AlertTitle,
|
|
5694
5714
|
hl as Avatar,
|
|
5695
5715
|
wl as AvatarFallback,
|
|
5696
5716
|
xl as AvatarImage,
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5717
|
+
Nf as Badge,
|
|
5718
|
+
Wi as Breadcrumb,
|
|
5719
|
+
Qi as BreadcrumbEllipsis,
|
|
5720
|
+
Yi as BreadcrumbItem,
|
|
5721
|
+
qi as BreadcrumbLink,
|
|
5722
|
+
Xi as BreadcrumbList,
|
|
5723
|
+
Ji as BreadcrumbPage,
|
|
5724
|
+
Zi as BreadcrumbSeparator,
|
|
5705
5725
|
He as Button,
|
|
5706
5726
|
Ks as Card,
|
|
5707
5727
|
Us as CardContent,
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5728
|
+
Pp as CardDescription,
|
|
5729
|
+
Np as CardFooter,
|
|
5730
|
+
Ep as CardHeader,
|
|
5731
|
+
Tp as CardTitle,
|
|
5712
5732
|
Ds as Checkbox,
|
|
5713
|
-
|
|
5733
|
+
Ou as Combobox,
|
|
5714
5734
|
ts as Command,
|
|
5715
|
-
|
|
5735
|
+
Ef as CommandDialog,
|
|
5716
5736
|
ns as CommandEmpty,
|
|
5717
5737
|
os as CommandGroup,
|
|
5718
5738
|
as as CommandInput,
|
|
5719
5739
|
ss as CommandItem,
|
|
5720
5740
|
rs as CommandList,
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5741
|
+
Tf as CommandSeparator,
|
|
5742
|
+
_f as CommandShortcut,
|
|
5743
|
+
Af as Dialog,
|
|
5744
|
+
Mf as DialogClose,
|
|
5745
|
+
If as DialogContent,
|
|
5746
|
+
jf as DialogDescription,
|
|
5747
|
+
Df as DialogFooter,
|
|
5748
|
+
zf as DialogHeader,
|
|
5749
|
+
kf as DialogOverlay,
|
|
5750
|
+
Lf as DialogPortal,
|
|
5751
|
+
$f as DialogTitle,
|
|
5752
|
+
Of as DialogTrigger,
|
|
5753
|
+
lf as DragAndDropFileUpload,
|
|
5754
|
+
Ff as DropdownMenu,
|
|
5755
|
+
Vf as DropdownMenuCheckboxItem,
|
|
5756
|
+
Hf as DropdownMenuContent,
|
|
5757
|
+
Bf as DropdownMenuGroup,
|
|
5758
|
+
Gf as DropdownMenuItem,
|
|
5759
|
+
Kf as DropdownMenuLabel,
|
|
5760
|
+
Uf as DropdownMenuPortal,
|
|
5761
|
+
Wf as DropdownMenuRadioGroup,
|
|
5762
|
+
Xf as DropdownMenuRadioItem,
|
|
5763
|
+
Yf as DropdownMenuSeparator,
|
|
5764
|
+
qf as DropdownMenuShortcut,
|
|
5765
|
+
Jf as DropdownMenuSub,
|
|
5766
|
+
Zf as DropdownMenuSubContent,
|
|
5767
|
+
Qf as DropdownMenuSubTrigger,
|
|
5768
|
+
ep as DropdownMenuTrigger,
|
|
5769
|
+
Gu as Form,
|
|
5770
|
+
Oc as FormControl,
|
|
5771
|
+
Fc as FormDescription,
|
|
5772
|
+
Ku as FormField,
|
|
5773
|
+
Lc as FormItem,
|
|
5774
|
+
$c as FormLabel,
|
|
5775
|
+
Vc as FormMessage,
|
|
5776
|
+
of as HoverCard,
|
|
5777
|
+
Tu as HoverCardContent,
|
|
5778
|
+
sf as HoverCardTrigger,
|
|
5759
5779
|
Ga as Input,
|
|
5760
5780
|
tl as Label,
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5781
|
+
fd as Menubar,
|
|
5782
|
+
hd as MenubarCheckboxItem,
|
|
5783
|
+
gd as MenubarContent,
|
|
5784
|
+
Xu as MenubarGroup,
|
|
5785
|
+
vd as MenubarItem,
|
|
5786
|
+
wd as MenubarLabel,
|
|
5787
|
+
Wu as MenubarMenu,
|
|
5788
|
+
Yu as MenubarPortal,
|
|
5789
|
+
Ju as MenubarRadioGroup,
|
|
5790
|
+
xd as MenubarRadioItem,
|
|
5791
|
+
yd as MenubarSeparator,
|
|
5792
|
+
Sd as MenubarShortcut,
|
|
5793
|
+
qu as MenubarSub,
|
|
5794
|
+
bd as MenubarSubContent,
|
|
5795
|
+
md as MenubarSubTrigger,
|
|
5796
|
+
pd as MenubarTrigger,
|
|
5797
|
+
tp as NativeSelect,
|
|
5798
|
+
Cd as Pagination,
|
|
5799
|
+
Rd as PaginationContent,
|
|
5800
|
+
Td as PaginationEllipsis,
|
|
5801
|
+
Pd as PaginationItem,
|
|
5782
5802
|
ia as PaginationLink,
|
|
5783
|
-
|
|
5784
|
-
|
|
5803
|
+
Ed as PaginationNext,
|
|
5804
|
+
Nd as PaginationPrevious,
|
|
5785
5805
|
As as Popover,
|
|
5786
5806
|
Is as PopoverContent,
|
|
5787
5807
|
Ms as PopoverTrigger,
|
|
5788
|
-
|
|
5808
|
+
ei as Progress,
|
|
5789
5809
|
pl as RadioGroup,
|
|
5790
5810
|
ml as RadioGroupItem,
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5811
|
+
tf as ResizableHandle,
|
|
5812
|
+
ef as ResizablePanel,
|
|
5813
|
+
Qu as ResizablePanelGroup,
|
|
5814
|
+
hu as ScrollArea,
|
|
5795
5815
|
Ft as ScrollBar,
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5816
|
+
ap as Select,
|
|
5817
|
+
rp as SelectContent,
|
|
5818
|
+
np as SelectGroup,
|
|
5819
|
+
op as SelectItem,
|
|
5820
|
+
sp as SelectLabel,
|
|
5821
|
+
lp as SelectScrollDownButton,
|
|
5822
|
+
ip as SelectScrollUpButton,
|
|
5823
|
+
cp as SelectSeparator,
|
|
5824
|
+
dp as SelectTrigger,
|
|
5825
|
+
up as SelectValue,
|
|
5806
5826
|
Gr as Separator,
|
|
5807
5827
|
ls as Sheet,
|
|
5808
|
-
|
|
5828
|
+
fp as SheetClose,
|
|
5809
5829
|
is as SheetContent,
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5830
|
+
pp as SheetDescription,
|
|
5831
|
+
mp as SheetFooter,
|
|
5832
|
+
bp as SheetHeader,
|
|
5833
|
+
gp as SheetOverlay,
|
|
5834
|
+
vp as SheetPortal,
|
|
5835
|
+
hp as SheetTitle,
|
|
5836
|
+
xp as SheetTrigger,
|
|
5837
|
+
fi as Sidebar,
|
|
5838
|
+
wi as SidebarContent,
|
|
5839
|
+
hi as SidebarFooter,
|
|
5840
|
+
yi as SidebarGroup,
|
|
5841
|
+
Ci as SidebarGroupAction,
|
|
5842
|
+
Ri as SidebarGroupContent,
|
|
5843
|
+
Si as SidebarGroupLabel,
|
|
5844
|
+
vi as SidebarHeader,
|
|
5845
|
+
gi as SidebarInput,
|
|
5846
|
+
bi as SidebarInset,
|
|
5847
|
+
Pi as SidebarMenu,
|
|
5848
|
+
_i as SidebarMenuAction,
|
|
5849
|
+
Ai as SidebarMenuBadge,
|
|
5850
|
+
Ti as SidebarMenuButton,
|
|
5851
|
+
Ni as SidebarMenuItem,
|
|
5852
|
+
Mi as SidebarMenuSkeleton,
|
|
5853
|
+
Ii as SidebarMenuSub,
|
|
5854
|
+
Di as SidebarMenuSubButton,
|
|
5855
|
+
ji as SidebarMenuSubItem,
|
|
5856
|
+
ui as SidebarProvider,
|
|
5857
|
+
mi as SidebarRail,
|
|
5858
|
+
xi as SidebarSeparator,
|
|
5859
|
+
pi as SidebarTrigger,
|
|
5840
5860
|
Pa as Skeleton,
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5861
|
+
hc as Slider,
|
|
5862
|
+
Fi as Switch,
|
|
5863
|
+
Hu as Tabs,
|
|
5864
|
+
Ui as TabsContent,
|
|
5865
|
+
Gi as TabsList,
|
|
5866
|
+
Ki as TabsTrigger,
|
|
5867
|
+
wp as Textarea,
|
|
5848
5868
|
jr as Toast,
|
|
5849
5869
|
Vl as ToastAction,
|
|
5850
5870
|
Dr as ToastClose,
|
|
@@ -5852,17 +5872,17 @@ export {
|
|
|
5852
5872
|
Ol as ToastProvider,
|
|
5853
5873
|
zr as ToastTitle,
|
|
5854
5874
|
Ir as ToastViewport,
|
|
5855
|
-
|
|
5856
|
-
|
|
5875
|
+
Lu as Toaster,
|
|
5876
|
+
_p as Tooltip,
|
|
5857
5877
|
$s as TooltipContent,
|
|
5858
5878
|
ks as TooltipCore,
|
|
5859
5879
|
zs as TooltipProvider,
|
|
5860
5880
|
Ls as TooltipTrigger,
|
|
5861
5881
|
js as Typography,
|
|
5862
|
-
|
|
5882
|
+
yp as badgeVariants,
|
|
5863
5883
|
Os as buttonVariants,
|
|
5864
|
-
|
|
5865
|
-
|
|
5884
|
+
Sp as reducer,
|
|
5885
|
+
Cp as toast,
|
|
5866
5886
|
pt as useFormField,
|
|
5867
5887
|
dt as useSidebar,
|
|
5868
5888
|
es as useToast
|