@jinaan/uikit 0.1.38 → 0.1.39
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/data-table.d.ts.map +1 -1
- package/dist/index.js +144 -152
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data-table.tsx +3 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as rt } from "react/jsx-runtime";
|
|
2
2
|
import { CircleNotch as Ot, Robot as Ut, Terminal as Xt, Check as Z, Copy as nt, XCircle as Jt, Warning as Qt, CheckCircle as Yt, Info as Zt, Minus as Kt, X as ce, CaretDown as ue, CaretRight as lt, MagnifyingGlass as ea, Columns as ta, Lock as aa, DotsSixVertical as ra, FunnelSimple as Qe, WarningCircle as na, CaretUp as la, CaretUpDown as ia, CaretLeft as oa } from "@phosphor-icons/react";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as f, useState as z, Children as it, isValidElement as ot, useRef as $, useEffect as J, useContext as q, useCallback as sa, createContext as K, useId as pe, useMemo as Ye, useLayoutEffect as da } from "react";
|
|
4
4
|
import { Slot as ca } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva as De } from "class-variance-authority";
|
|
6
6
|
import { clsx as ua } from "clsx";
|
|
@@ -65,7 +65,7 @@ const ga = De(
|
|
|
65
65
|
lg: "[&_svg]:size-[var(--control-icon-lg)]",
|
|
66
66
|
xl: "[&_svg]:size-[var(--control-icon-xl)]",
|
|
67
67
|
icon: "[&_svg]:size-[var(--control-icon-md)]"
|
|
68
|
-
}, T =
|
|
68
|
+
}, T = f(
|
|
69
69
|
({
|
|
70
70
|
className: t,
|
|
71
71
|
variant: a,
|
|
@@ -76,9 +76,9 @@ const ga = De(
|
|
|
76
76
|
iconOnly: m = !1,
|
|
77
77
|
loading: c = !1,
|
|
78
78
|
fullWidth: x = !1,
|
|
79
|
-
disabled:
|
|
80
|
-
children:
|
|
81
|
-
...
|
|
79
|
+
disabled: b,
|
|
80
|
+
children: h,
|
|
81
|
+
...N
|
|
82
82
|
}, k) => {
|
|
83
83
|
const S = l ? ca : "button", w = xa[n ?? "md"];
|
|
84
84
|
return /* @__PURE__ */ e(
|
|
@@ -86,7 +86,7 @@ const ga = De(
|
|
|
86
86
|
{
|
|
87
87
|
ref: k,
|
|
88
88
|
"aria-busy": c || void 0,
|
|
89
|
-
disabled: l ? void 0 :
|
|
89
|
+
disabled: l ? void 0 : b || c,
|
|
90
90
|
className: o(
|
|
91
91
|
ga({ variant: a, size: n }),
|
|
92
92
|
m && "aspect-square px-0",
|
|
@@ -94,8 +94,8 @@ const ga = De(
|
|
|
94
94
|
c && "disabled:opacity-100",
|
|
95
95
|
t
|
|
96
96
|
),
|
|
97
|
-
...
|
|
98
|
-
children: l ?
|
|
97
|
+
...N,
|
|
98
|
+
children: l ? h : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
|
|
99
99
|
/* @__PURE__ */ s(
|
|
100
100
|
"span",
|
|
101
101
|
{
|
|
@@ -106,7 +106,7 @@ const ga = De(
|
|
|
106
106
|
"aria-hidden": c || void 0,
|
|
107
107
|
children: [
|
|
108
108
|
!c && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
|
|
109
|
-
|
|
109
|
+
h,
|
|
110
110
|
!c && u ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: u }) : null
|
|
111
111
|
]
|
|
112
112
|
}
|
|
@@ -164,7 +164,7 @@ function br({
|
|
|
164
164
|
] })
|
|
165
165
|
] });
|
|
166
166
|
}
|
|
167
|
-
const st =
|
|
167
|
+
const st = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
168
168
|
Te.Root,
|
|
169
169
|
{
|
|
170
170
|
ref: n,
|
|
@@ -176,7 +176,7 @@ const st = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
176
176
|
}
|
|
177
177
|
));
|
|
178
178
|
st.displayName = "Avatar";
|
|
179
|
-
const dt =
|
|
179
|
+
const dt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
180
180
|
Te.Image,
|
|
181
181
|
{
|
|
182
182
|
ref: n,
|
|
@@ -185,7 +185,7 @@ const dt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
185
185
|
}
|
|
186
186
|
));
|
|
187
187
|
dt.displayName = "AvatarImage";
|
|
188
|
-
const ct =
|
|
188
|
+
const ct = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
189
189
|
Te.Fallback,
|
|
190
190
|
{
|
|
191
191
|
ref: n,
|
|
@@ -213,7 +213,7 @@ const va = De(
|
|
|
213
213
|
},
|
|
214
214
|
defaultVariants: { variant: "neutral" }
|
|
215
215
|
}
|
|
216
|
-
),
|
|
216
|
+
), Na = De("size-1.5 shrink-0 rounded-full", {
|
|
217
217
|
variants: {
|
|
218
218
|
variant: {
|
|
219
219
|
neutral: "bg-subtle",
|
|
@@ -227,9 +227,9 @@ const va = De(
|
|
|
227
227
|
},
|
|
228
228
|
defaultVariants: { variant: "neutral" }
|
|
229
229
|
});
|
|
230
|
-
function
|
|
230
|
+
function ya({ className: t, variant: a, dot: n = !1, children: l, ...i }) {
|
|
231
231
|
return /* @__PURE__ */ s("span", { className: o(va({ variant: a }), t), ...i, children: [
|
|
232
|
-
n ? /* @__PURE__ */ e("span", { className: o(
|
|
232
|
+
n ? /* @__PURE__ */ e("span", { className: o(Na({ variant: a })), "aria-hidden": !0 }) : null,
|
|
233
233
|
l
|
|
234
234
|
] });
|
|
235
235
|
}
|
|
@@ -352,7 +352,7 @@ function vr({ className: t, ...a }) {
|
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function ye({ className: t, ...a }) {
|
|
356
356
|
return /* @__PURE__ */ e(
|
|
357
357
|
"td",
|
|
358
358
|
{
|
|
@@ -386,9 +386,9 @@ function fe({
|
|
|
386
386
|
className: m,
|
|
387
387
|
headerClassName: c,
|
|
388
388
|
panelClassName: x,
|
|
389
|
-
minHeight:
|
|
389
|
+
minHeight: b
|
|
390
390
|
}) {
|
|
391
|
-
const
|
|
391
|
+
const h = !!(t || a), N = Ma(i) ? /* @__PURE__ */ e(
|
|
392
392
|
T,
|
|
393
393
|
{
|
|
394
394
|
variant: i.variant ?? "primary",
|
|
@@ -405,15 +405,15 @@ function fe({
|
|
|
405
405
|
) : i;
|
|
406
406
|
return /* @__PURE__ */ s(Ca, { className: o("relative", Da[u], m), children: [
|
|
407
407
|
/* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
|
|
408
|
-
n ||
|
|
408
|
+
n || h ? (
|
|
409
409
|
// Header rows must not inherit the body row hover surface.
|
|
410
410
|
/* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent] text-table-header", c), children: [
|
|
411
|
-
|
|
411
|
+
h ? /* @__PURE__ */ s(
|
|
412
412
|
"div",
|
|
413
413
|
{
|
|
414
414
|
className: o(
|
|
415
415
|
"px-(--table-pad-x) pb-3 pt-4",
|
|
416
|
-
|
|
416
|
+
N && "pr-28"
|
|
417
417
|
),
|
|
418
418
|
children: [
|
|
419
419
|
t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
|
|
@@ -428,12 +428,12 @@ function fe({
|
|
|
428
428
|
Sa,
|
|
429
429
|
{
|
|
430
430
|
className: o(Ta[u], x),
|
|
431
|
-
style:
|
|
431
|
+
style: b ? { minHeight: b } : void 0,
|
|
432
432
|
children: l
|
|
433
433
|
}
|
|
434
434
|
)
|
|
435
435
|
] }),
|
|
436
|
-
|
|
436
|
+
N ? /* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: N }) }) : null
|
|
437
437
|
] });
|
|
438
438
|
}
|
|
439
439
|
function Pa(t) {
|
|
@@ -445,14 +445,14 @@ function Pa(t) {
|
|
|
445
445
|
body: a.filter((l) => !n.includes(l))
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
const Ia =
|
|
448
|
+
const Ia = f(
|
|
449
449
|
({ className: t, children: a, ...n }, l) => {
|
|
450
450
|
const { header: i, body: u } = Pa(a);
|
|
451
451
|
return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(fe, { className: o("shadow-xs", t), header: i, children: u }) });
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
454
|
Ia.displayName = "Card";
|
|
455
|
-
const ut =
|
|
455
|
+
const ut = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
456
456
|
"div",
|
|
457
457
|
{
|
|
458
458
|
ref: n,
|
|
@@ -464,7 +464,7 @@ const ut = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
464
464
|
}
|
|
465
465
|
));
|
|
466
466
|
ut.displayName = "CardHeader";
|
|
467
|
-
const ja =
|
|
467
|
+
const ja = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
468
468
|
"h2",
|
|
469
469
|
{
|
|
470
470
|
ref: n,
|
|
@@ -473,7 +473,7 @@ const ja = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
473
473
|
}
|
|
474
474
|
));
|
|
475
475
|
ja.displayName = "CardTitle";
|
|
476
|
-
const Ea =
|
|
476
|
+
const Ea = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
477
477
|
"p",
|
|
478
478
|
{
|
|
479
479
|
ref: n,
|
|
@@ -486,9 +486,9 @@ const Ea = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
486
486
|
}
|
|
487
487
|
));
|
|
488
488
|
Ea.displayName = "CardDescription";
|
|
489
|
-
const _a =
|
|
489
|
+
const _a = f(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...a }));
|
|
490
490
|
_a.displayName = "CardContent";
|
|
491
|
-
const La =
|
|
491
|
+
const La = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
492
492
|
"div",
|
|
493
493
|
{
|
|
494
494
|
ref: n,
|
|
@@ -500,7 +500,7 @@ const La = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
500
500
|
}
|
|
501
501
|
));
|
|
502
502
|
La.displayName = "CardFooter";
|
|
503
|
-
const Se =
|
|
503
|
+
const Se = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
504
504
|
Ze.Root,
|
|
505
505
|
{
|
|
506
506
|
ref: n,
|
|
@@ -582,44 +582,44 @@ function $a({
|
|
|
582
582
|
}) {
|
|
583
583
|
const [u, m] = z(
|
|
584
584
|
a ?? !1
|
|
585
|
-
), [c, x] = z(!1),
|
|
586
|
-
k.current =
|
|
585
|
+
), [c, x] = z(!1), b = $(!1), h = $(null), N = t ?? u, k = $(N);
|
|
586
|
+
k.current = N;
|
|
587
587
|
const S = t !== void 0;
|
|
588
588
|
J(() => Aa(), []), J(() => {
|
|
589
|
-
t && (
|
|
589
|
+
t && (h.current && clearTimeout(h.current), b.current = !1, x(!1));
|
|
590
590
|
}, [t]), J(
|
|
591
591
|
() => () => {
|
|
592
|
-
|
|
592
|
+
h.current && clearTimeout(h.current);
|
|
593
593
|
},
|
|
594
594
|
[]
|
|
595
595
|
);
|
|
596
596
|
const w = (P) => {
|
|
597
597
|
if (P) {
|
|
598
|
-
|
|
598
|
+
h.current && clearTimeout(h.current), b.current = !1, x(!1), S || m(!0), n == null || n(!0);
|
|
599
599
|
return;
|
|
600
600
|
}
|
|
601
|
-
if (!
|
|
601
|
+
if (!N || b.current) return;
|
|
602
602
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
603
603
|
S || m(!1), n == null || n(!1);
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
|
|
606
|
+
b.current = !0, x(!0), h.current = setTimeout(() => {
|
|
607
607
|
S || m(!1), n == null || n(!1), requestAnimationFrame(() => {
|
|
608
|
-
k.current && (
|
|
608
|
+
k.current && (b.current = !1, x(!1));
|
|
609
609
|
});
|
|
610
610
|
}, Fa);
|
|
611
611
|
};
|
|
612
612
|
return /* @__PURE__ */ e(ft.Provider, { value: () => w(!1), children: /* @__PURE__ */ e(pt.Provider, { value: c, children: /* @__PURE__ */ e(Pe.Provider, { value: !0, children: /* @__PURE__ */ e(
|
|
613
613
|
I.Root,
|
|
614
614
|
{
|
|
615
|
-
open:
|
|
615
|
+
open: N,
|
|
616
616
|
onOpenChange: w,
|
|
617
617
|
...i,
|
|
618
618
|
children: l
|
|
619
619
|
}
|
|
620
620
|
) }) }) });
|
|
621
621
|
}
|
|
622
|
-
const bt =
|
|
622
|
+
const bt = f(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
|
|
623
623
|
I.Trigger,
|
|
624
624
|
{
|
|
625
625
|
ref: n,
|
|
@@ -630,7 +630,7 @@ const bt = b(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
630
630
|
}
|
|
631
631
|
));
|
|
632
632
|
bt.displayName = "DialogTrigger";
|
|
633
|
-
const
|
|
633
|
+
const Nr = I.Close, ht = f(
|
|
634
634
|
({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e(I.Close, { asChild: !0, children: /* @__PURE__ */ e(T, { ref: l, type: "button", variant: t, ...n, children: a }) })
|
|
635
635
|
);
|
|
636
636
|
ht.displayName = "DialogCancel";
|
|
@@ -655,7 +655,7 @@ function gt(t, a = !0) {
|
|
|
655
655
|
function qa(t) {
|
|
656
656
|
return t.replace(/dvh\b/g, "vh");
|
|
657
657
|
}
|
|
658
|
-
const xt =
|
|
658
|
+
const xt = f(
|
|
659
659
|
({
|
|
660
660
|
className: t,
|
|
661
661
|
children: a,
|
|
@@ -666,19 +666,19 @@ const xt = b(
|
|
|
666
666
|
onEscapeKeyDown: m,
|
|
667
667
|
onPointerDownOutside: c,
|
|
668
668
|
...x
|
|
669
|
-
},
|
|
670
|
-
const
|
|
669
|
+
}, b) => {
|
|
670
|
+
const h = q(pt), N = n === "top", k = N ? {
|
|
671
671
|
"--dialog-top-offset": l,
|
|
672
672
|
"--dialog-top-offset-fallback": qa(l)
|
|
673
673
|
} : void 0, S = q(ft), w = $(null), P = sa(
|
|
674
|
-
(
|
|
675
|
-
if (w.current =
|
|
676
|
-
|
|
674
|
+
(g) => {
|
|
675
|
+
if (w.current = g, g && i === "auto" && gt(g), typeof b == "function") {
|
|
676
|
+
b(g);
|
|
677
677
|
return;
|
|
678
678
|
}
|
|
679
|
-
|
|
679
|
+
b && (b.current = g);
|
|
680
680
|
},
|
|
681
|
-
[i,
|
|
681
|
+
[i, b]
|
|
682
682
|
);
|
|
683
683
|
return /* @__PURE__ */ s(I.Portal, { children: [
|
|
684
684
|
/* @__PURE__ */ e(
|
|
@@ -686,8 +686,8 @@ const xt = b(
|
|
|
686
686
|
{
|
|
687
687
|
className: o(
|
|
688
688
|
"fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
689
|
-
!
|
|
690
|
-
|
|
689
|
+
!h && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
690
|
+
h && "opacity-0 transition-opacity duration-200"
|
|
691
691
|
),
|
|
692
692
|
children: /* @__PURE__ */ e(
|
|
693
693
|
"span",
|
|
@@ -703,7 +703,7 @@ const xt = b(
|
|
|
703
703
|
{
|
|
704
704
|
className: o(
|
|
705
705
|
"pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
|
|
706
|
-
|
|
706
|
+
N ? "items-start" : "items-center"
|
|
707
707
|
),
|
|
708
708
|
children: /* @__PURE__ */ s(
|
|
709
709
|
I.Content,
|
|
@@ -713,17 +713,17 @@ const xt = b(
|
|
|
713
713
|
className: o(
|
|
714
714
|
"dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
|
|
715
715
|
"rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
|
|
716
|
-
|
|
716
|
+
N && "dialog-anchor-top",
|
|
717
717
|
i === "command" && "dialog-command-motion",
|
|
718
|
-
|
|
718
|
+
h && "dialog-closing",
|
|
719
719
|
"focus:outline-none",
|
|
720
720
|
t
|
|
721
721
|
),
|
|
722
|
-
onEscapeKeyDown: (
|
|
723
|
-
m == null || m(
|
|
722
|
+
onEscapeKeyDown: (g) => {
|
|
723
|
+
m == null || m(g), !g.defaultPrevented && (g.preventDefault(), S());
|
|
724
724
|
},
|
|
725
|
-
onPointerDownOutside: (
|
|
726
|
-
c == null || c(
|
|
725
|
+
onPointerDownOutside: (g) => {
|
|
726
|
+
c == null || c(g), !g.defaultPrevented && (g.preventDefault(), S());
|
|
727
727
|
},
|
|
728
728
|
...x,
|
|
729
729
|
children: [
|
|
@@ -802,7 +802,7 @@ function Wa({
|
|
|
802
802
|
}
|
|
803
803
|
);
|
|
804
804
|
}
|
|
805
|
-
const vt =
|
|
805
|
+
const vt = f(({ className: t, ...a }, n) => {
|
|
806
806
|
const l = q(Pe) ? I.Title : "h2";
|
|
807
807
|
return /* @__PURE__ */ e(
|
|
808
808
|
l,
|
|
@@ -814,7 +814,7 @@ const vt = b(({ className: t, ...a }, n) => {
|
|
|
814
814
|
);
|
|
815
815
|
});
|
|
816
816
|
vt.displayName = "DialogTitle";
|
|
817
|
-
const Oa =
|
|
817
|
+
const Oa = f(({ className: t, ...a }, n) => {
|
|
818
818
|
const l = q(Pe) ? I.Description : "p";
|
|
819
819
|
return /* @__PURE__ */ e(
|
|
820
820
|
l,
|
|
@@ -826,7 +826,7 @@ const Oa = b(({ className: t, ...a }, n) => {
|
|
|
826
826
|
);
|
|
827
827
|
});
|
|
828
828
|
Oa.displayName = "DialogDescription";
|
|
829
|
-
const
|
|
829
|
+
const Nt = K(null);
|
|
830
830
|
function Ua({
|
|
831
831
|
label: t,
|
|
832
832
|
value: a,
|
|
@@ -837,8 +837,8 @@ function Ua({
|
|
|
837
837
|
children: m,
|
|
838
838
|
...c
|
|
839
839
|
}) {
|
|
840
|
-
const x = pe(),
|
|
841
|
-
return /* @__PURE__ */ e(
|
|
840
|
+
const x = pe(), b = i ?? x;
|
|
841
|
+
return /* @__PURE__ */ e(Nt.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", u), ...c, children: [
|
|
842
842
|
/* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
|
|
843
843
|
m
|
|
844
844
|
] }) });
|
|
@@ -851,10 +851,10 @@ function Xa({
|
|
|
851
851
|
disabled: i = !1,
|
|
852
852
|
className: u
|
|
853
853
|
}) {
|
|
854
|
-
const m = q(
|
|
854
|
+
const m = q(Nt), c = pe();
|
|
855
855
|
if (!m)
|
|
856
856
|
throw new Error("RadioCard must be rendered inside a RadioGroup");
|
|
857
|
-
const x = i || m.disabled,
|
|
857
|
+
const x = i || m.disabled, b = m.value === t;
|
|
858
858
|
return /* @__PURE__ */ s(
|
|
859
859
|
"label",
|
|
860
860
|
{
|
|
@@ -870,11 +870,11 @@ function Xa({
|
|
|
870
870
|
type: "radio",
|
|
871
871
|
name: m.name,
|
|
872
872
|
value: t,
|
|
873
|
-
checked:
|
|
873
|
+
checked: b,
|
|
874
874
|
disabled: x,
|
|
875
875
|
onChange: () => {
|
|
876
|
-
var
|
|
877
|
-
return (
|
|
876
|
+
var h;
|
|
877
|
+
return (h = m.onChange) == null ? void 0 : h.call(m, t);
|
|
878
878
|
},
|
|
879
879
|
"aria-describedby": n ? c : void 0,
|
|
880
880
|
className: "peer sr-only"
|
|
@@ -894,7 +894,7 @@ function Xa({
|
|
|
894
894
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
895
895
|
/* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
|
|
896
896
|
/* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
|
|
897
|
-
l ? /* @__PURE__ */ e(
|
|
897
|
+
l ? /* @__PURE__ */ e(ya, { variant: "primary", children: l }) : null
|
|
898
898
|
] }),
|
|
899
899
|
n ? /* @__PURE__ */ e("span", { id: c, className: "mt-1 block text-sm text-muted", children: n }) : null
|
|
900
900
|
] })
|
|
@@ -902,7 +902,7 @@ function Xa({
|
|
|
902
902
|
}
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function yr({
|
|
906
906
|
open: t,
|
|
907
907
|
onOpenChange: a,
|
|
908
908
|
trigger: n,
|
|
@@ -912,11 +912,11 @@ function Nr({
|
|
|
912
912
|
value: m,
|
|
913
913
|
onValueChange: c,
|
|
914
914
|
cancelLabel: x = "Cancel",
|
|
915
|
-
confirmLabel:
|
|
916
|
-
onConfirm:
|
|
915
|
+
confirmLabel: b = "Continue",
|
|
916
|
+
onConfirm: h
|
|
917
917
|
}) {
|
|
918
918
|
var P;
|
|
919
|
-
const [
|
|
919
|
+
const [N, k] = z(u ?? ((P = i[0]) == null ? void 0 : P.value) ?? ""), S = m ?? N;
|
|
920
920
|
return /* @__PURE__ */ s($a, { open: t, onOpenChange: a, children: [
|
|
921
921
|
n ? /* @__PURE__ */ e(bt, { asChild: !0, children: n }) : null,
|
|
922
922
|
/* @__PURE__ */ s(
|
|
@@ -927,22 +927,22 @@ function Nr({
|
|
|
927
927
|
children: [
|
|
928
928
|
/* @__PURE__ */ s(Ga, { children: [
|
|
929
929
|
/* @__PURE__ */ e(Va, { children: /* @__PURE__ */ e(vt, { className: "text-xl", children: l }) }),
|
|
930
|
-
/* @__PURE__ */ e(Ha, { children: /* @__PURE__ */ e(Ua, { label: l, value: S, onChange: (
|
|
931
|
-
m === void 0 && k(
|
|
932
|
-
}, children: i.map((
|
|
930
|
+
/* @__PURE__ */ e(Ha, { children: /* @__PURE__ */ e(Ua, { label: l, value: S, onChange: (g) => {
|
|
931
|
+
m === void 0 && k(g), c == null || c(g);
|
|
932
|
+
}, children: i.map((g) => /* @__PURE__ */ e(
|
|
933
933
|
Xa,
|
|
934
934
|
{
|
|
935
|
-
value:
|
|
936
|
-
title:
|
|
937
|
-
description:
|
|
938
|
-
badge:
|
|
935
|
+
value: g.value,
|
|
936
|
+
title: g.title,
|
|
937
|
+
description: g.description,
|
|
938
|
+
badge: g.badge
|
|
939
939
|
},
|
|
940
|
-
|
|
940
|
+
g.value
|
|
941
941
|
)) }) })
|
|
942
942
|
] }),
|
|
943
943
|
/* @__PURE__ */ s(Wa, { className: "gap-3 pt-2.5", children: [
|
|
944
944
|
/* @__PURE__ */ e(ht, { className: "flex-1", children: x }),
|
|
945
|
-
/* @__PURE__ */ e(T, { className: "flex-1", onClick: () =>
|
|
945
|
+
/* @__PURE__ */ e(T, { className: "flex-1", onClick: () => h == null ? void 0 : h(S), children: b })
|
|
946
946
|
] })
|
|
947
947
|
]
|
|
948
948
|
}
|
|
@@ -997,7 +997,7 @@ const Ja = {
|
|
|
997
997
|
md: "size-[var(--control-icon-md)]",
|
|
998
998
|
lg: "size-[var(--control-icon-lg)]",
|
|
999
999
|
xl: "size-[var(--control-icon-xl)]"
|
|
1000
|
-
},
|
|
1000
|
+
}, yt = f(
|
|
1001
1001
|
({
|
|
1002
1002
|
className: t,
|
|
1003
1003
|
containerClassName: a,
|
|
@@ -1008,23 +1008,23 @@ const Ja = {
|
|
|
1008
1008
|
onClear: m,
|
|
1009
1009
|
value: c,
|
|
1010
1010
|
defaultValue: x,
|
|
1011
|
-
error:
|
|
1012
|
-
helperText:
|
|
1013
|
-
id:
|
|
1011
|
+
error: b = !1,
|
|
1012
|
+
helperText: h,
|
|
1013
|
+
id: N,
|
|
1014
1014
|
"aria-describedby": k,
|
|
1015
1015
|
disabled: S,
|
|
1016
1016
|
readOnly: w,
|
|
1017
1017
|
...P
|
|
1018
|
-
},
|
|
1019
|
-
const G = pe(), ee =
|
|
1018
|
+
}, g) => {
|
|
1019
|
+
const G = pe(), ee = N ?? G, H = !!h, R = !!(m && (c !== void 0 ? String(c).length > 0 : x !== void 0 && String(x).length > 0)), te = H ? `${ee}-description` : void 0, be = [k, te].filter(Boolean).join(" ") || void 0, ae = /* @__PURE__ */ e(
|
|
1020
1020
|
"input",
|
|
1021
1021
|
{
|
|
1022
|
-
ref:
|
|
1022
|
+
ref: g,
|
|
1023
1023
|
id: ee,
|
|
1024
1024
|
type: n,
|
|
1025
1025
|
disabled: S,
|
|
1026
1026
|
readOnly: w,
|
|
1027
|
-
"aria-invalid":
|
|
1027
|
+
"aria-invalid": b || void 0,
|
|
1028
1028
|
"aria-describedby": be,
|
|
1029
1029
|
style: i || u || R ? {
|
|
1030
1030
|
paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
|
|
@@ -1037,8 +1037,8 @@ const Ja = {
|
|
|
1037
1037
|
"placeholder:text-(--input-placeholder)",
|
|
1038
1038
|
"hover:border-(--input-border-hover)",
|
|
1039
1039
|
"focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
|
|
1040
|
-
|
|
1041
|
-
!
|
|
1040
|
+
b && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
|
|
1041
|
+
!b && "border-(--input-border)",
|
|
1042
1042
|
n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
|
|
1043
1043
|
S && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
|
|
1044
1044
|
w && "cursor-default focus-visible:ring-0",
|
|
@@ -1091,14 +1091,14 @@ const Ja = {
|
|
|
1091
1091
|
"p",
|
|
1092
1092
|
{
|
|
1093
1093
|
id: te,
|
|
1094
|
-
className: o("mt-1.5 text-xs",
|
|
1095
|
-
children:
|
|
1094
|
+
className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
|
|
1095
|
+
children: h
|
|
1096
1096
|
}
|
|
1097
1097
|
) : null
|
|
1098
1098
|
] });
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
1101
|
-
|
|
1101
|
+
yt.displayName = "Input";
|
|
1102
1102
|
function Ie(t, a) {
|
|
1103
1103
|
let n = 0;
|
|
1104
1104
|
return it.forEach(t, (l) => {
|
|
@@ -1123,7 +1123,7 @@ function Ce({
|
|
|
1123
1123
|
]) === 0;
|
|
1124
1124
|
return /* @__PURE__ */ e(wt.Provider, { value: n, children: /* @__PURE__ */ e(D.Root, { ...a, children: t }) });
|
|
1125
1125
|
}
|
|
1126
|
-
const oe =
|
|
1126
|
+
const oe = f(({ className: t, disabled: a, ...n }, l) => {
|
|
1127
1127
|
const i = q(wt);
|
|
1128
1128
|
return /* @__PURE__ */ e(
|
|
1129
1129
|
D.Trigger,
|
|
@@ -1136,7 +1136,7 @@ const oe = b(({ className: t, disabled: a, ...n }, l) => {
|
|
|
1136
1136
|
);
|
|
1137
1137
|
});
|
|
1138
1138
|
oe.displayName = "DropdownMenuTrigger";
|
|
1139
|
-
const Ct =
|
|
1139
|
+
const Ct = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1140
1140
|
ue,
|
|
1141
1141
|
{
|
|
1142
1142
|
ref: n,
|
|
@@ -1149,7 +1149,7 @@ const Ct = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
1149
1149
|
}
|
|
1150
1150
|
));
|
|
1151
1151
|
Ct.displayName = "DropdownMenuChevron";
|
|
1152
|
-
const Cr = D.Group, Sr = D.Portal, se =
|
|
1152
|
+
const Cr = D.Group, Sr = D.Portal, se = f(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(D.Portal, { children: /* @__PURE__ */ e(
|
|
1153
1153
|
D.Content,
|
|
1154
1154
|
{
|
|
1155
1155
|
ref: l,
|
|
@@ -1168,7 +1168,7 @@ const Cr = D.Group, Sr = D.Portal, se = b(({ className: t, sideOffset: a = 8, ..
|
|
|
1168
1168
|
}
|
|
1169
1169
|
) }));
|
|
1170
1170
|
se.displayName = "DropdownMenuContent";
|
|
1171
|
-
const me =
|
|
1171
|
+
const me = f(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
|
|
1172
1172
|
D.Item,
|
|
1173
1173
|
{
|
|
1174
1174
|
ref: l,
|
|
@@ -1183,7 +1183,7 @@ const me = b(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
|
|
|
1183
1183
|
}
|
|
1184
1184
|
));
|
|
1185
1185
|
me.displayName = "DropdownMenuItem";
|
|
1186
|
-
const Q =
|
|
1186
|
+
const Q = f(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1187
1187
|
D.CheckboxItem,
|
|
1188
1188
|
{
|
|
1189
1189
|
ref: i,
|
|
@@ -1200,7 +1200,7 @@ const Q = b(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__
|
|
|
1200
1200
|
}
|
|
1201
1201
|
));
|
|
1202
1202
|
Q.displayName = "DropdownMenuCheckboxItem";
|
|
1203
|
-
const de =
|
|
1203
|
+
const de = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1204
1204
|
D.Label,
|
|
1205
1205
|
{
|
|
1206
1206
|
ref: n,
|
|
@@ -1209,7 +1209,7 @@ const de = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
1209
1209
|
}
|
|
1210
1210
|
));
|
|
1211
1211
|
de.displayName = "DropdownMenuLabel";
|
|
1212
|
-
const kr = D.Sub, St =
|
|
1212
|
+
const kr = D.Sub, St = f(({ className: t, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
|
|
1213
1213
|
D.SubTrigger,
|
|
1214
1214
|
{
|
|
1215
1215
|
ref: i,
|
|
@@ -1228,7 +1228,7 @@ const kr = D.Sub, St = b(({ className: t, inset: a, children: n, ...l }, i) => /
|
|
|
1228
1228
|
}
|
|
1229
1229
|
));
|
|
1230
1230
|
St.displayName = "DropdownMenuSubTrigger";
|
|
1231
|
-
const Za =
|
|
1231
|
+
const Za = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1232
1232
|
D.SubContent,
|
|
1233
1233
|
{
|
|
1234
1234
|
ref: n,
|
|
@@ -1247,7 +1247,7 @@ const Za = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
|
1247
1247
|
}
|
|
1248
1248
|
));
|
|
1249
1249
|
Za.displayName = "DropdownMenuSubContent";
|
|
1250
|
-
const ze =
|
|
1250
|
+
const ze = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1251
1251
|
D.Separator,
|
|
1252
1252
|
{
|
|
1253
1253
|
ref: n,
|
|
@@ -1265,7 +1265,7 @@ function er({
|
|
|
1265
1265
|
const l = Ie(t, [je]) === 0;
|
|
1266
1266
|
return /* @__PURE__ */ e(M.Root, { disabled: a || l, ...n, children: t });
|
|
1267
1267
|
}
|
|
1268
|
-
const kt =
|
|
1268
|
+
const kt = f(({ className: t, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
|
|
1269
1269
|
M.Trigger,
|
|
1270
1270
|
{
|
|
1271
1271
|
ref: i,
|
|
@@ -1285,7 +1285,7 @@ const kt = b(({ className: t, children: a, variant: n = "field", ...l }, i) => /
|
|
|
1285
1285
|
}
|
|
1286
1286
|
));
|
|
1287
1287
|
kt.displayName = "SelectTrigger";
|
|
1288
|
-
const zt =
|
|
1288
|
+
const zt = f(
|
|
1289
1289
|
({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...i }, u) => /* @__PURE__ */ e(M.Portal, { children: /* @__PURE__ */ e(
|
|
1290
1290
|
M.Content,
|
|
1291
1291
|
{
|
|
@@ -1308,7 +1308,7 @@ const zt = b(
|
|
|
1308
1308
|
) })
|
|
1309
1309
|
);
|
|
1310
1310
|
zt.displayName = "SelectContent";
|
|
1311
|
-
const je =
|
|
1311
|
+
const je = f(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
1312
1312
|
M.Item,
|
|
1313
1313
|
{
|
|
1314
1314
|
ref: l,
|
|
@@ -1324,7 +1324,7 @@ const je = b(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
|
|
|
1324
1324
|
}
|
|
1325
1325
|
));
|
|
1326
1326
|
je.displayName = "SelectItem";
|
|
1327
|
-
const tr =
|
|
1327
|
+
const tr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1328
1328
|
M.Label,
|
|
1329
1329
|
{
|
|
1330
1330
|
ref: n,
|
|
@@ -1391,14 +1391,14 @@ function Tr({
|
|
|
1391
1391
|
search: m,
|
|
1392
1392
|
filters: c,
|
|
1393
1393
|
toolbarStart: x,
|
|
1394
|
-
toolbarEnd:
|
|
1395
|
-
tabs:
|
|
1396
|
-
activeTab:
|
|
1394
|
+
toolbarEnd: b,
|
|
1395
|
+
tabs: h,
|
|
1396
|
+
activeTab: N,
|
|
1397
1397
|
onTabChange: k,
|
|
1398
1398
|
infoBanner: S,
|
|
1399
1399
|
selectable: w = !1,
|
|
1400
1400
|
bulkActions: P,
|
|
1401
|
-
rowActions:
|
|
1401
|
+
rowActions: g,
|
|
1402
1402
|
onRowClick: G,
|
|
1403
1403
|
defaultSort: ee,
|
|
1404
1404
|
pageSize: H = 25,
|
|
@@ -1414,7 +1414,7 @@ function Tr({
|
|
|
1414
1414
|
() => Object.fromEntries(
|
|
1415
1415
|
a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
|
|
1416
1416
|
)
|
|
1417
|
-
), [Le, Re] = z(null), [he, Ae] = z(null), [
|
|
1417
|
+
), [Le, Re] = z(null), [he, Ae] = z(null), [y, Pt] = z(
|
|
1418
1418
|
ee ?? null
|
|
1419
1419
|
), [V, re] = z(0), [_, It] = z(H), [A, ge] = z(/* @__PURE__ */ new Set()), [jt, xe] = z([]), Be = a.map((r) => r.id), Fe = new Map(a.map((r) => [r.id, r])), $e = Le ? Le.map((r) => Fe.get(r)).filter((r) => !!r) : a, W = $e.filter((r) => !Ee[r.id]), qe = $e.filter((r) => Ee[r.id] && !r.required), Ge = (r) => !!r.required, Et = (r) => Fe.get(r), _t = (r, d) => {
|
|
1420
1420
|
const p = d ? Et(d) : void 0;
|
|
@@ -1432,18 +1432,18 @@ function Tr({
|
|
|
1432
1432
|
const d = m.value.trim().toLowerCase();
|
|
1433
1433
|
return r.filter((p) => m.keys(p).toLowerCase().includes(d));
|
|
1434
1434
|
}, [t, m, c]), B = Ye(() => {
|
|
1435
|
-
if (!
|
|
1436
|
-
const r = a.find((p) => p.id ===
|
|
1435
|
+
if (!y) return ne;
|
|
1436
|
+
const r = a.find((p) => p.id === y.id);
|
|
1437
1437
|
if (!(r != null && r.sortValue)) return ne;
|
|
1438
|
-
const d =
|
|
1438
|
+
const d = y.dir === "asc" ? 1 : -1;
|
|
1439
1439
|
return [...ne].sort((p, v) => {
|
|
1440
1440
|
const C = r.sortValue(p), j = r.sortValue(v);
|
|
1441
1441
|
return C == null && j == null ? 0 : C == null ? 1 : j == null ? -1 : typeof C == "number" && typeof j == "number" ? (C - j) * d : String(C).localeCompare(String(j)) * d;
|
|
1442
1442
|
});
|
|
1443
|
-
}, [ne,
|
|
1443
|
+
}, [ne, y, a]), O = Math.max(1, Math.ceil(B.length / _)), At = !l && !i && B.length > 0 && (te === "always" || B.length > _);
|
|
1444
1444
|
J(() => {
|
|
1445
1445
|
re(0);
|
|
1446
|
-
}, [m == null ? void 0 : m.value, _,
|
|
1446
|
+
}, [m == null ? void 0 : m.value, _, y == null ? void 0 : y.id, y == null ? void 0 : y.dir, N, Rt]), J(() => {
|
|
1447
1447
|
V > O - 1 && re(O - 1);
|
|
1448
1448
|
}, [V, O]);
|
|
1449
1449
|
const le = V * _, L = B.slice(le, le + _), Bt = (r) => {
|
|
@@ -1460,7 +1460,7 @@ function Tr({
|
|
|
1460
1460
|
const p = new Set(d);
|
|
1461
1461
|
return p.has(r) ? p.delete(r) : p.add(r), p;
|
|
1462
1462
|
});
|
|
1463
|
-
}, Ht = !!(m || c != null && c.length || x ||
|
|
1463
|
+
}, Ht = !!(m || c != null && c.length || x || b), Vt = (r) => (y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? "ascending" : "descending" : void 0, Ve = $(null), We = $(null), [U, Oe] = z([]), Wt = W.map((r) => r.id).join("\0");
|
|
1464
1464
|
da(() => {
|
|
1465
1465
|
const r = Ve.current;
|
|
1466
1466
|
if (!r) return;
|
|
@@ -1473,26 +1473,26 @@ function Tr({
|
|
|
1473
1473
|
}
|
|
1474
1474
|
const j = Array.from(
|
|
1475
1475
|
v,
|
|
1476
|
-
(E,
|
|
1476
|
+
(E, Ne) => {
|
|
1477
1477
|
var ie;
|
|
1478
1478
|
return Math.max(
|
|
1479
1479
|
Math.round(E.getBoundingClientRect().width),
|
|
1480
|
-
Math.round(((ie = C == null ? void 0 : C.item(
|
|
1480
|
+
Math.round(((ie = C == null ? void 0 : C.item(Ne)) == null ? void 0 : ie.scrollWidth) ?? 0)
|
|
1481
1481
|
);
|
|
1482
1482
|
}
|
|
1483
1483
|
);
|
|
1484
1484
|
Oe(
|
|
1485
|
-
(E) => E.length === j.length && E.every((
|
|
1485
|
+
(E) => E.length === j.length && E.every((Ne, ie) => Ne === j[ie]) ? E : j
|
|
1486
1486
|
);
|
|
1487
1487
|
};
|
|
1488
1488
|
if (d(), typeof ResizeObserver > "u") return;
|
|
1489
1489
|
const p = new ResizeObserver(d);
|
|
1490
1490
|
return p.observe(r), () => p.disconnect();
|
|
1491
|
-
}, [Wt, w,
|
|
1491
|
+
}, [Wt, w, g, l, i]);
|
|
1492
1492
|
const X = U.reduce((r, d) => r + d, 0);
|
|
1493
1493
|
return /* @__PURE__ */ s("div", { className: o("space-y-4", Mt), children: [
|
|
1494
|
-
|
|
1495
|
-
const d = r.id ===
|
|
1494
|
+
h && h.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: h.map((r) => {
|
|
1495
|
+
const d = r.id === N;
|
|
1496
1496
|
return /* @__PURE__ */ e(
|
|
1497
1497
|
"button",
|
|
1498
1498
|
{
|
|
@@ -1511,7 +1511,7 @@ function Tr({
|
|
|
1511
1511
|
}) }),
|
|
1512
1512
|
Ht && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1513
1513
|
m && /* @__PURE__ */ e(
|
|
1514
|
-
|
|
1514
|
+
yt,
|
|
1515
1515
|
{
|
|
1516
1516
|
type: "search",
|
|
1517
1517
|
"aria-label": m.placeholder ?? "Search",
|
|
@@ -1617,7 +1617,7 @@ function Tr({
|
|
|
1617
1617
|
r.id
|
|
1618
1618
|
)) })
|
|
1619
1619
|
] }) : null,
|
|
1620
|
-
|
|
1620
|
+
b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
|
|
1621
1621
|
] }),
|
|
1622
1622
|
ve.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1623
1623
|
ve.map((r) => {
|
|
@@ -1739,11 +1739,7 @@ function Tr({
|
|
|
1739
1739
|
visibility: X > 0 ? void 0 : "hidden"
|
|
1740
1740
|
},
|
|
1741
1741
|
children: [
|
|
1742
|
-
/* @__PURE__ */
|
|
1743
|
-
w && /* @__PURE__ */ e("col", { style: { width: "2.75rem" } }, "selectable"),
|
|
1744
|
-
U.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)),
|
|
1745
|
-
f && /* @__PURE__ */ e("col", { style: { width: "11rem" } }, "actions")
|
|
1746
|
-
] }),
|
|
1742
|
+
/* @__PURE__ */ e("colgroup", { children: U.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
|
|
1747
1743
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
1748
1744
|
w && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ e(
|
|
1749
1745
|
Se,
|
|
@@ -1769,18 +1765,18 @@ function Tr({
|
|
|
1769
1765
|
"h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
|
|
1770
1766
|
"hover:bg-transparent hover:text-table-header-active hover:shadow-none",
|
|
1771
1767
|
"active:scale-100 active:bg-transparent active:shadow-none",
|
|
1772
|
-
(
|
|
1768
|
+
(y == null ? void 0 : y.id) === r.id && "text-table-header-active"
|
|
1773
1769
|
),
|
|
1774
1770
|
children: [
|
|
1775
1771
|
r.header,
|
|
1776
|
-
(
|
|
1772
|
+
(y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? /* @__PURE__ */ e(la, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(ue, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(ia, { className: "size-3.5 opacity-50" })
|
|
1777
1773
|
]
|
|
1778
1774
|
}
|
|
1779
1775
|
) : r.header
|
|
1780
1776
|
},
|
|
1781
1777
|
r.id
|
|
1782
1778
|
)),
|
|
1783
|
-
|
|
1779
|
+
g && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
1784
1780
|
] }) })
|
|
1785
1781
|
]
|
|
1786
1782
|
}
|
|
@@ -1814,15 +1810,11 @@ function Tr({
|
|
|
1814
1810
|
),
|
|
1815
1811
|
style: { width: X > 0 ? X : void 0 },
|
|
1816
1812
|
children: [
|
|
1817
|
-
U.length > 0 && /* @__PURE__ */
|
|
1818
|
-
w && /* @__PURE__ */ e("col", { style: { width: "2.75rem" } }, "selectable"),
|
|
1819
|
-
U.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)),
|
|
1820
|
-
f && /* @__PURE__ */ e("col", { style: { width: "11rem" } }, "actions")
|
|
1821
|
-
] }),
|
|
1813
|
+
U.length > 0 && /* @__PURE__ */ e("colgroup", { children: U.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
|
|
1822
1814
|
/* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
|
|
1823
1815
|
w && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
|
|
1824
1816
|
W.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": Vt(r), children: r.header }, r.id)),
|
|
1825
|
-
|
|
1817
|
+
g && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
|
|
1826
1818
|
] }) }),
|
|
1827
1819
|
/* @__PURE__ */ e(ka, { children: L.map((r) => {
|
|
1828
1820
|
const d = n(r), p = A.has(d);
|
|
@@ -1833,7 +1825,7 @@ function Tr({
|
|
|
1833
1825
|
onClick: G ? () => G(r) : void 0,
|
|
1834
1826
|
className: G ? "cursor-pointer" : void 0,
|
|
1835
1827
|
children: [
|
|
1836
|
-
w && /* @__PURE__ */ e(
|
|
1828
|
+
w && /* @__PURE__ */ e(ye, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1837
1829
|
Se,
|
|
1838
1830
|
{
|
|
1839
1831
|
"aria-label": "Select row",
|
|
@@ -1842,7 +1834,7 @@ function Tr({
|
|
|
1842
1834
|
}
|
|
1843
1835
|
) }),
|
|
1844
1836
|
W.map((v) => /* @__PURE__ */ e(
|
|
1845
|
-
|
|
1837
|
+
ye,
|
|
1846
1838
|
{
|
|
1847
1839
|
"data-numeric": v.numeric ? "" : void 0,
|
|
1848
1840
|
className: o(v.align === "right" && "text-right", v.className),
|
|
@@ -1850,7 +1842,7 @@ function Tr({
|
|
|
1850
1842
|
},
|
|
1851
1843
|
v.id
|
|
1852
1844
|
)),
|
|
1853
|
-
|
|
1845
|
+
g && /* @__PURE__ */ e(ye, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: g(r) })
|
|
1854
1846
|
]
|
|
1855
1847
|
},
|
|
1856
1848
|
d
|
|
@@ -1924,7 +1916,7 @@ function Pr({ className: t, ...a }) {
|
|
|
1924
1916
|
}
|
|
1925
1917
|
);
|
|
1926
1918
|
}
|
|
1927
|
-
const lr =
|
|
1919
|
+
const lr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
1928
1920
|
pa.Root,
|
|
1929
1921
|
{
|
|
1930
1922
|
ref: n,
|
|
@@ -1988,7 +1980,7 @@ function Ir({
|
|
|
1988
1980
|
}
|
|
1989
1981
|
);
|
|
1990
1982
|
}
|
|
1991
|
-
const ir =
|
|
1983
|
+
const ir = f(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
|
|
1992
1984
|
fa.Root,
|
|
1993
1985
|
{
|
|
1994
1986
|
ref: i,
|
|
@@ -2012,7 +2004,7 @@ function jr({ className: t, ...a }) {
|
|
|
2012
2004
|
}
|
|
2013
2005
|
);
|
|
2014
2006
|
}
|
|
2015
|
-
const Er = Y.Provider, _r = Y.Root, Lr = Y.Trigger, or =
|
|
2007
|
+
const Er = Y.Provider, _r = Y.Root, Lr = Y.Trigger, or = f(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(Y.Portal, { children: /* @__PURE__ */ e(
|
|
2016
2008
|
Y.Content,
|
|
2017
2009
|
{
|
|
2018
2010
|
ref: l,
|
|
@@ -2036,7 +2028,7 @@ export {
|
|
|
2036
2028
|
st as Avatar,
|
|
2037
2029
|
ct as AvatarFallback,
|
|
2038
2030
|
dt as AvatarImage,
|
|
2039
|
-
|
|
2031
|
+
ya as Badge,
|
|
2040
2032
|
T as Button,
|
|
2041
2033
|
hr as Callout,
|
|
2042
2034
|
Ia as Card,
|
|
@@ -2046,14 +2038,14 @@ export {
|
|
|
2046
2038
|
ut as CardHeader,
|
|
2047
2039
|
ja as CardTitle,
|
|
2048
2040
|
Se as Checkbox,
|
|
2049
|
-
|
|
2041
|
+
yr as ChoiceDialog,
|
|
2050
2042
|
wr as CodeBlock,
|
|
2051
2043
|
Tr as DataTable,
|
|
2052
2044
|
Dr as DataTableIdentity,
|
|
2053
2045
|
$a as Dialog,
|
|
2054
2046
|
Ha as DialogBody,
|
|
2055
2047
|
ht as DialogCancel,
|
|
2056
|
-
|
|
2048
|
+
Nr as DialogClose,
|
|
2057
2049
|
xt as DialogContent,
|
|
2058
2050
|
Oa as DialogDescription,
|
|
2059
2051
|
Wa as DialogFooter,
|
|
@@ -2075,7 +2067,7 @@ export {
|
|
|
2075
2067
|
St as DropdownMenuSubTrigger,
|
|
2076
2068
|
oe as DropdownMenuTrigger,
|
|
2077
2069
|
Mr as EmptyState,
|
|
2078
|
-
|
|
2070
|
+
yt as Input,
|
|
2079
2071
|
Pr as Kbd,
|
|
2080
2072
|
lr as Label,
|
|
2081
2073
|
Xa as RadioCard,
|
|
@@ -2093,7 +2085,7 @@ export {
|
|
|
2093
2085
|
ha as Spinner,
|
|
2094
2086
|
gr as Table,
|
|
2095
2087
|
ka as TableBody,
|
|
2096
|
-
|
|
2088
|
+
ye as TableCell,
|
|
2097
2089
|
Ca as TableContainer,
|
|
2098
2090
|
ar as TableEmptyState,
|
|
2099
2091
|
vr as TableHead,
|