@jinaan/uikit 0.1.20 → 0.1.21
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/dropdown-menu.d.ts +1 -0
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/index.js +159 -146
- package/dist/index.js.map +1 -1
- package/dist/select.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/dropdown-menu.tsx +17 -1
- package/src/select.tsx +3 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as Be } from "react/jsx-runtime";
|
|
2
|
-
import { CircleNotch as wt, Robot as Ct, Terminal as St, Check as
|
|
3
|
-
import { forwardRef as b, useState as T, Children as $e, isValidElement as qe, useRef as te, useEffect as
|
|
2
|
+
import { CircleNotch as wt, Robot as Ct, Terminal as St, Check as J, Copy as Fe, XCircle as kt, Warning as zt, CheckCircle as Dt, Info as Tt, Minus as Mt, X as le, CaretDown as V, CaretRight as Pt, MagnifyingGlass as It, Columns as jt, Lock as Et, FunnelSimple as Ie, WarningCircle as _t, CaretUp as Lt, CaretUpDown as Rt } from "@phosphor-icons/react";
|
|
3
|
+
import { forwardRef as b, useState as T, Children as $e, isValidElement as qe, useRef as te, useEffect as U, useContext as ie, useCallback as At, createContext as se, useId as de, useMemo as je } from "react";
|
|
4
4
|
import { Slot as Bt } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva as ye } from "class-variance-authority";
|
|
6
6
|
import { clsx as Ft } from "clsx";
|
|
@@ -12,7 +12,7 @@ import * as C from "@radix-ui/react-dropdown-menu";
|
|
|
12
12
|
import * as D from "@radix-ui/react-select";
|
|
13
13
|
import * as qt from "@radix-ui/react-label";
|
|
14
14
|
import * as Gt from "@radix-ui/react-separator";
|
|
15
|
-
import * as
|
|
15
|
+
import * as X from "@radix-ui/react-tooltip";
|
|
16
16
|
function i(...t) {
|
|
17
17
|
return $t(Ft(t));
|
|
18
18
|
}
|
|
@@ -59,7 +59,7 @@ const Vt = ye(
|
|
|
59
59
|
lg: "[&_svg]:size-[var(--control-icon-lg)]",
|
|
60
60
|
xl: "[&_svg]:size-[var(--control-icon-xl)]",
|
|
61
61
|
icon: "[&_svg]:size-[var(--control-icon-md)]"
|
|
62
|
-
},
|
|
62
|
+
}, k = b(
|
|
63
63
|
({
|
|
64
64
|
className: t,
|
|
65
65
|
variant: a,
|
|
@@ -73,12 +73,12 @@ const Vt = ye(
|
|
|
73
73
|
disabled: g,
|
|
74
74
|
children: p,
|
|
75
75
|
...N
|
|
76
|
-
},
|
|
76
|
+
}, z) => {
|
|
77
77
|
const S = l ? Bt : "button", w = Ut[r ?? "md"];
|
|
78
78
|
return /* @__PURE__ */ e(
|
|
79
79
|
S,
|
|
80
80
|
{
|
|
81
|
-
ref:
|
|
81
|
+
ref: z,
|
|
82
82
|
"aria-busy": u || void 0,
|
|
83
83
|
disabled: l ? void 0 : g || u,
|
|
84
84
|
className: i(
|
|
@@ -122,8 +122,8 @@ const Vt = ye(
|
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
|
-
|
|
126
|
-
function
|
|
125
|
+
k.displayName = "Button";
|
|
126
|
+
function Ga({
|
|
127
127
|
command: t,
|
|
128
128
|
tag: a = "Build with agents",
|
|
129
129
|
icon: r,
|
|
@@ -144,7 +144,7 @@ function qa({
|
|
|
144
144
|
/* @__PURE__ */ e(St, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
|
|
145
145
|
/* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
|
|
146
146
|
/* @__PURE__ */ e(
|
|
147
|
-
|
|
147
|
+
k,
|
|
148
148
|
{
|
|
149
149
|
variant: "ghost",
|
|
150
150
|
size: "sm",
|
|
@@ -152,7 +152,7 @@ function qa({
|
|
|
152
152
|
"aria-label": "Copy prompt",
|
|
153
153
|
className: "ml-auto",
|
|
154
154
|
onClick: c,
|
|
155
|
-
children: o ? /* @__PURE__ */ e(
|
|
155
|
+
children: o ? /* @__PURE__ */ e(J, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Fe, {})
|
|
156
156
|
}
|
|
157
157
|
)
|
|
158
158
|
] })
|
|
@@ -239,17 +239,17 @@ const Qt = {
|
|
|
239
239
|
iconClassName: "text-success"
|
|
240
240
|
},
|
|
241
241
|
warning: {
|
|
242
|
-
Icon:
|
|
242
|
+
Icon: zt,
|
|
243
243
|
className: "border-warning/30 bg-warning/10",
|
|
244
244
|
iconClassName: "text-warning"
|
|
245
245
|
},
|
|
246
246
|
error: {
|
|
247
|
-
Icon:
|
|
247
|
+
Icon: kt,
|
|
248
248
|
className: "border-error/30 bg-error/10",
|
|
249
249
|
iconClassName: "text-error"
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
function
|
|
252
|
+
function Ha({
|
|
253
253
|
variant: t = "info",
|
|
254
254
|
title: a,
|
|
255
255
|
children: r,
|
|
@@ -307,7 +307,7 @@ function Zt({
|
|
|
307
307
|
}
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Va({ className: t, ...a }) {
|
|
311
311
|
return /* @__PURE__ */ e(
|
|
312
312
|
"table",
|
|
313
313
|
{
|
|
@@ -316,7 +316,7 @@ function Ha({ className: t, ...a }) {
|
|
|
316
316
|
}
|
|
317
317
|
);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Ua({ className: t, ...a }) {
|
|
320
320
|
return /* @__PURE__ */ e("thead", { className: t, ...a });
|
|
321
321
|
}
|
|
322
322
|
function Ot({ className: t, ...a }) {
|
|
@@ -334,7 +334,7 @@ function Kt({ className: t, ...a }) {
|
|
|
334
334
|
}
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Wa({ className: t, ...a }) {
|
|
338
338
|
return /* @__PURE__ */ e(
|
|
339
339
|
"th",
|
|
340
340
|
{
|
|
@@ -383,7 +383,7 @@ function ce({
|
|
|
383
383
|
minHeight: g
|
|
384
384
|
}) {
|
|
385
385
|
const p = !!(t || a), N = aa(o) ? /* @__PURE__ */ e(
|
|
386
|
-
|
|
386
|
+
k,
|
|
387
387
|
{
|
|
388
388
|
variant: o.variant ?? "primary",
|
|
389
389
|
size: "xs",
|
|
@@ -507,7 +507,7 @@ const xe = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
507
507
|
t
|
|
508
508
|
),
|
|
509
509
|
...a,
|
|
510
|
-
children: /* @__PURE__ */ e(Ee.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(Mt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(
|
|
510
|
+
children: /* @__PURE__ */ e(Ee.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(Mt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(J, { className: "size-3", weight: "bold" }) })
|
|
511
511
|
}
|
|
512
512
|
));
|
|
513
513
|
xe.displayName = "Checkbox";
|
|
@@ -576,12 +576,12 @@ function pa({
|
|
|
576
576
|
}) {
|
|
577
577
|
const [d, c] = T(
|
|
578
578
|
a ?? !1
|
|
579
|
-
), [u, h] = T(!1), g = te(!1), p = te(null), N = t ?? d,
|
|
580
|
-
|
|
579
|
+
), [u, h] = T(!1), g = te(!1), p = te(null), N = t ?? d, z = te(N);
|
|
580
|
+
z.current = N;
|
|
581
581
|
const S = t !== void 0;
|
|
582
|
-
|
|
582
|
+
U(() => ca(), []), U(() => {
|
|
583
583
|
t && (p.current && clearTimeout(p.current), g.current = !1, h(!1));
|
|
584
|
-
}, [t]),
|
|
584
|
+
}, [t]), U(
|
|
585
585
|
() => () => {
|
|
586
586
|
p.current && clearTimeout(p.current);
|
|
587
587
|
},
|
|
@@ -599,7 +599,7 @@ function pa({
|
|
|
599
599
|
}
|
|
600
600
|
g.current = !0, h(!0), p.current = setTimeout(() => {
|
|
601
601
|
S || c(!1), r == null || r(!1), requestAnimationFrame(() => {
|
|
602
|
-
|
|
602
|
+
z.current && (g.current = !1, h(!1));
|
|
603
603
|
});
|
|
604
604
|
}, ma);
|
|
605
605
|
};
|
|
@@ -624,8 +624,8 @@ const Qe = b(({ onClick: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
624
624
|
}
|
|
625
625
|
));
|
|
626
626
|
Qe.displayName = "DialogTrigger";
|
|
627
|
-
const
|
|
628
|
-
({ variant: t = "secondary", children: a = "Cancel", ...r }, l) => /* @__PURE__ */ e(M.Close, { asChild: !0, children: /* @__PURE__ */ e(
|
|
627
|
+
const Xa = M.Close, Ye = b(
|
|
628
|
+
({ variant: t = "secondary", children: a = "Cancel", ...r }, l) => /* @__PURE__ */ e(M.Close, { asChild: !0, children: /* @__PURE__ */ e(k, { ref: l, type: "button", variant: t, ...r, children: a }) })
|
|
629
629
|
);
|
|
630
630
|
Ye.displayName = "DialogCancel";
|
|
631
631
|
function Ze(t, a = !0) {
|
|
@@ -860,7 +860,7 @@ function Na({
|
|
|
860
860
|
}
|
|
861
861
|
);
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function Ja({
|
|
864
864
|
open: t,
|
|
865
865
|
onOpenChange: a,
|
|
866
866
|
trigger: r,
|
|
@@ -874,7 +874,7 @@ function Xa({
|
|
|
874
874
|
onConfirm: p
|
|
875
875
|
}) {
|
|
876
876
|
var I;
|
|
877
|
-
const [N,
|
|
877
|
+
const [N, z] = T(d ?? ((I = o[0]) == null ? void 0 : I.value) ?? ""), S = c ?? N;
|
|
878
878
|
return /* @__PURE__ */ s(pa, { open: t, onOpenChange: a, children: [
|
|
879
879
|
r ? /* @__PURE__ */ e(Qe, { asChild: !0, children: r }) : null,
|
|
880
880
|
/* @__PURE__ */ s(
|
|
@@ -886,7 +886,7 @@ function Xa({
|
|
|
886
886
|
/* @__PURE__ */ s(ba, { children: [
|
|
887
887
|
/* @__PURE__ */ e(ha, { children: /* @__PURE__ */ e(Ke, { className: "text-xl", children: l }) }),
|
|
888
888
|
/* @__PURE__ */ e(fa, { children: /* @__PURE__ */ e(va, { label: l, value: S, onChange: (y) => {
|
|
889
|
-
c === void 0 &&
|
|
889
|
+
c === void 0 && z(y), u == null || u(y);
|
|
890
890
|
}, children: o.map((y) => /* @__PURE__ */ e(
|
|
891
891
|
Na,
|
|
892
892
|
{
|
|
@@ -900,14 +900,14 @@ function Xa({
|
|
|
900
900
|
] }),
|
|
901
901
|
/* @__PURE__ */ s(ga, { className: "gap-3 pt-2.5", children: [
|
|
902
902
|
/* @__PURE__ */ e(Ye, { className: "flex-1", children: h }),
|
|
903
|
-
/* @__PURE__ */ e(
|
|
903
|
+
/* @__PURE__ */ e(k, { className: "flex-1", onClick: () => p == null ? void 0 : p(S), children: g })
|
|
904
904
|
] })
|
|
905
905
|
]
|
|
906
906
|
}
|
|
907
907
|
)
|
|
908
908
|
] });
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Qa({ code: t, label: a, className: r }) {
|
|
911
911
|
const [l, o] = T(!1);
|
|
912
912
|
return /* @__PURE__ */ e(
|
|
913
913
|
ce,
|
|
@@ -916,7 +916,7 @@ function Ja({ code: t, label: a, className: r }) {
|
|
|
916
916
|
header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
|
|
917
917
|
action: {
|
|
918
918
|
label: l ? "Copied" : "Copy",
|
|
919
|
-
icon: l ? /* @__PURE__ */ e(
|
|
919
|
+
icon: l ? /* @__PURE__ */ e(J, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Fe, {}),
|
|
920
920
|
variant: "ghost",
|
|
921
921
|
onClick: async () => {
|
|
922
922
|
try {
|
|
@@ -969,16 +969,16 @@ const ya = {
|
|
|
969
969
|
error: g = !1,
|
|
970
970
|
helperText: p,
|
|
971
971
|
id: N,
|
|
972
|
-
"aria-describedby":
|
|
972
|
+
"aria-describedby": z,
|
|
973
973
|
disabled: S,
|
|
974
974
|
readOnly: w,
|
|
975
975
|
...I
|
|
976
976
|
}, y) => {
|
|
977
|
-
const B = de(),
|
|
977
|
+
const B = de(), Q = N ?? B, F = !!p, _ = !!(c && (u !== void 0 ? String(u).length > 0 : h !== void 0 && String(h).length > 0)), Y = F ? `${Q}-description` : void 0, ue = [z, Y].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */ e(
|
|
978
978
|
"input",
|
|
979
979
|
{
|
|
980
980
|
ref: y,
|
|
981
|
-
id:
|
|
981
|
+
id: Q,
|
|
982
982
|
type: r,
|
|
983
983
|
disabled: S,
|
|
984
984
|
readOnly: w,
|
|
@@ -1007,7 +1007,7 @@ const ya = {
|
|
|
1007
1007
|
...I
|
|
1008
1008
|
}
|
|
1009
1009
|
);
|
|
1010
|
-
return !o && !d && !_ && !F ?
|
|
1010
|
+
return !o && !d && !_ && !F ? Z : /* @__PURE__ */ s("div", { className: i("w-full", a), children: [
|
|
1011
1011
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
1012
1012
|
o ? /* @__PURE__ */ e(
|
|
1013
1013
|
"span",
|
|
@@ -1020,7 +1020,7 @@ const ya = {
|
|
|
1020
1020
|
children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", he[l]), children: o })
|
|
1021
1021
|
}
|
|
1022
1022
|
) : null,
|
|
1023
|
-
|
|
1023
|
+
Z,
|
|
1024
1024
|
_ ? /* @__PURE__ */ e(
|
|
1025
1025
|
"button",
|
|
1026
1026
|
{
|
|
@@ -1048,7 +1048,7 @@ const ya = {
|
|
|
1048
1048
|
F ? /* @__PURE__ */ e(
|
|
1049
1049
|
"p",
|
|
1050
1050
|
{
|
|
1051
|
-
id:
|
|
1051
|
+
id: Y,
|
|
1052
1052
|
className: i("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
|
|
1053
1053
|
children: p
|
|
1054
1054
|
}
|
|
@@ -1076,7 +1076,7 @@ function ge({
|
|
|
1076
1076
|
}) {
|
|
1077
1077
|
const r = Se(t, [
|
|
1078
1078
|
oe,
|
|
1079
|
-
|
|
1079
|
+
W,
|
|
1080
1080
|
rt
|
|
1081
1081
|
]) === 0;
|
|
1082
1082
|
return /* @__PURE__ */ e(at.Provider, { value: r, children: /* @__PURE__ */ e(C.Root, { ...a, children: t }) });
|
|
@@ -1093,7 +1093,20 @@ const ae = b(({ disabled: t, ...a }, r) => {
|
|
|
1093
1093
|
);
|
|
1094
1094
|
});
|
|
1095
1095
|
ae.displayName = "DropdownMenuTrigger";
|
|
1096
|
-
const
|
|
1096
|
+
const Sa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1097
|
+
V,
|
|
1098
|
+
{
|
|
1099
|
+
ref: r,
|
|
1100
|
+
"aria-hidden": !0,
|
|
1101
|
+
className: i(
|
|
1102
|
+
"ml-auto size-3.5 shrink-0 text-subtle transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
1103
|
+
t
|
|
1104
|
+
),
|
|
1105
|
+
...a
|
|
1106
|
+
}
|
|
1107
|
+
));
|
|
1108
|
+
Sa.displayName = "DropdownMenuChevron";
|
|
1109
|
+
const Ya = C.Group, Za = C.Portal, re = b(({ className: t, sideOffset: a = 8, ...r }, l) => /* @__PURE__ */ e(C.Portal, { children: /* @__PURE__ */ e(
|
|
1097
1110
|
C.Content,
|
|
1098
1111
|
{
|
|
1099
1112
|
ref: l,
|
|
@@ -1127,7 +1140,7 @@ const oe = b(({ className: t, inset: a, ...r }, l) => /* @__PURE__ */ e(
|
|
|
1127
1140
|
}
|
|
1128
1141
|
));
|
|
1129
1142
|
oe.displayName = "DropdownMenuItem";
|
|
1130
|
-
const
|
|
1143
|
+
const W = b(({ className: t, children: a, checked: r, ...l }, o) => /* @__PURE__ */ s(
|
|
1131
1144
|
C.CheckboxItem,
|
|
1132
1145
|
{
|
|
1133
1146
|
ref: o,
|
|
@@ -1138,12 +1151,12 @@ const U = b(({ className: t, children: a, checked: r, ...l }, o) => /* @__PURE__
|
|
|
1138
1151
|
checked: r,
|
|
1139
1152
|
...l,
|
|
1140
1153
|
children: [
|
|
1141
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(C.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(
|
|
1154
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(C.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(J, { className: "size-3", weight: "bold" }) }) }),
|
|
1142
1155
|
a
|
|
1143
1156
|
]
|
|
1144
1157
|
}
|
|
1145
1158
|
));
|
|
1146
|
-
|
|
1159
|
+
W.displayName = "DropdownMenuCheckboxItem";
|
|
1147
1160
|
const ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1148
1161
|
C.Label,
|
|
1149
1162
|
{
|
|
@@ -1153,7 +1166,7 @@ const ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1153
1166
|
}
|
|
1154
1167
|
));
|
|
1155
1168
|
ne.displayName = "DropdownMenuLabel";
|
|
1156
|
-
const
|
|
1169
|
+
const Oa = C.Sub, rt = b(({ className: t, inset: a, children: r, ...l }, o) => /* @__PURE__ */ s(
|
|
1157
1170
|
C.SubTrigger,
|
|
1158
1171
|
{
|
|
1159
1172
|
ref: o,
|
|
@@ -1172,7 +1185,7 @@ const Za = C.Sub, rt = b(({ className: t, inset: a, children: r, ...l }, o) => /
|
|
|
1172
1185
|
}
|
|
1173
1186
|
));
|
|
1174
1187
|
rt.displayName = "DropdownMenuSubTrigger";
|
|
1175
|
-
const
|
|
1188
|
+
const ka = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1176
1189
|
C.SubContent,
|
|
1177
1190
|
{
|
|
1178
1191
|
ref: r,
|
|
@@ -1190,7 +1203,7 @@ const Sa = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1190
1203
|
...a
|
|
1191
1204
|
}
|
|
1192
1205
|
));
|
|
1193
|
-
|
|
1206
|
+
ka.displayName = "DropdownMenuSubContent";
|
|
1194
1207
|
const Ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1195
1208
|
C.Separator,
|
|
1196
1209
|
{
|
|
@@ -1200,13 +1213,13 @@ const Ne = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1200
1213
|
}
|
|
1201
1214
|
));
|
|
1202
1215
|
Ne.displayName = "DropdownMenuSeparator";
|
|
1203
|
-
const
|
|
1204
|
-
function
|
|
1216
|
+
const Ka = D.Group, za = D.Value;
|
|
1217
|
+
function Da({
|
|
1205
1218
|
children: t,
|
|
1206
1219
|
disabled: a,
|
|
1207
1220
|
...r
|
|
1208
1221
|
}) {
|
|
1209
|
-
const l = Se(t, [
|
|
1222
|
+
const l = Se(t, [ke]) === 0;
|
|
1210
1223
|
return /* @__PURE__ */ e(D.Root, { disabled: a || l, ...r, children: t });
|
|
1211
1224
|
}
|
|
1212
1225
|
const nt = b(({ className: t, children: a, variant: r = "field", ...l }, o) => /* @__PURE__ */ s(
|
|
@@ -1214,18 +1227,17 @@ const nt = b(({ className: t, children: a, variant: r = "field", ...l }, o) => /
|
|
|
1214
1227
|
{
|
|
1215
1228
|
ref: o,
|
|
1216
1229
|
className: i(
|
|
1217
|
-
"flex items-center justify-between gap-2 text-sm text-fg",
|
|
1230
|
+
"group flex items-center justify-between gap-2 text-sm text-fg",
|
|
1218
1231
|
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1219
1232
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
1220
|
-
"[&>span]:truncate",
|
|
1221
1233
|
r === "field" && "h-(--control-h-md) w-full rounded-md border border-line bg-surface px-3 focus:border-primary focus:ring-2 focus:ring-focus/30",
|
|
1222
1234
|
r === "inline" && "btn-fill btn-inner-border btn-interactive h-(--control-h-md) w-auto rounded-(--control-radius) border-0 bg-(--button-secondary-bg) px-(--control-pad-x-sm) font-medium text-fg hover:bg-(--button-surface-hover) active:bg-(--button-surface-active) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong",
|
|
1223
1235
|
t
|
|
1224
1236
|
),
|
|
1225
1237
|
...l,
|
|
1226
1238
|
children: [
|
|
1227
|
-
a,
|
|
1228
|
-
/* @__PURE__ */ e(D.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1239
|
+
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
|
|
1240
|
+
/* @__PURE__ */ e(D.Icon, { asChild: !0, children: /* @__PURE__ */ e(V, { className: "ml-auto size-3.5 shrink-0 text-subtle transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) })
|
|
1229
1241
|
]
|
|
1230
1242
|
}
|
|
1231
1243
|
));
|
|
@@ -1253,7 +1265,7 @@ const lt = b(
|
|
|
1253
1265
|
) })
|
|
1254
1266
|
);
|
|
1255
1267
|
lt.displayName = "SelectContent";
|
|
1256
|
-
const
|
|
1268
|
+
const ke = b(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
|
|
1257
1269
|
D.Item,
|
|
1258
1270
|
{
|
|
1259
1271
|
ref: l,
|
|
@@ -1263,13 +1275,13 @@ const ze = b(({ className: t, children: a, ...r }, l) => /* @__PURE__ */ s(
|
|
|
1263
1275
|
),
|
|
1264
1276
|
...r,
|
|
1265
1277
|
children: [
|
|
1266
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(D.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
1278
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(D.ItemIndicator, { children: /* @__PURE__ */ e(J, { className: "size-3.5" }) }) }),
|
|
1267
1279
|
/* @__PURE__ */ e(D.ItemText, { children: a })
|
|
1268
1280
|
]
|
|
1269
1281
|
}
|
|
1270
1282
|
));
|
|
1271
|
-
|
|
1272
|
-
const
|
|
1283
|
+
ke.displayName = "SelectItem";
|
|
1284
|
+
const Ta = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1273
1285
|
D.Label,
|
|
1274
1286
|
{
|
|
1275
1287
|
ref: r,
|
|
@@ -1277,8 +1289,8 @@ const Da = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1277
1289
|
...a
|
|
1278
1290
|
}
|
|
1279
1291
|
));
|
|
1280
|
-
|
|
1281
|
-
function
|
|
1292
|
+
Ta.displayName = "SelectLabel";
|
|
1293
|
+
function Ma({
|
|
1282
1294
|
icon: t,
|
|
1283
1295
|
title: a,
|
|
1284
1296
|
description: r,
|
|
@@ -1303,14 +1315,14 @@ function Ta({
|
|
|
1303
1315
|
}
|
|
1304
1316
|
);
|
|
1305
1317
|
}
|
|
1306
|
-
const
|
|
1307
|
-
function
|
|
1318
|
+
const Pa = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
|
|
1319
|
+
function Ia(t) {
|
|
1308
1320
|
return t.split(/\s+/).slice(0, 2).map((a) => {
|
|
1309
1321
|
var r;
|
|
1310
1322
|
return ((r = a[0]) == null ? void 0 : r.toUpperCase()) ?? "";
|
|
1311
1323
|
}).join("");
|
|
1312
1324
|
}
|
|
1313
|
-
function
|
|
1325
|
+
function er({
|
|
1314
1326
|
name: t,
|
|
1315
1327
|
secondary: a,
|
|
1316
1328
|
image: r
|
|
@@ -1318,7 +1330,7 @@ function Ka({
|
|
|
1318
1330
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
1319
1331
|
/* @__PURE__ */ s(Ge, { className: "size-8", children: [
|
|
1320
1332
|
r ? /* @__PURE__ */ e(He, { src: r, alt: "" }) : null,
|
|
1321
|
-
/* @__PURE__ */ e(Ve, { children:
|
|
1333
|
+
/* @__PURE__ */ e(Ve, { children: Ia(t) })
|
|
1322
1334
|
] }),
|
|
1323
1335
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1324
1336
|
/* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
|
|
@@ -1326,7 +1338,7 @@ function Ka({
|
|
|
1326
1338
|
] })
|
|
1327
1339
|
] });
|
|
1328
1340
|
}
|
|
1329
|
-
function
|
|
1341
|
+
function tr({
|
|
1330
1342
|
rows: t,
|
|
1331
1343
|
columns: a,
|
|
1332
1344
|
getRowId: r,
|
|
@@ -1339,28 +1351,28 @@ function er({
|
|
|
1339
1351
|
toolbarEnd: g,
|
|
1340
1352
|
tabs: p,
|
|
1341
1353
|
activeTab: N,
|
|
1342
|
-
onTabChange:
|
|
1354
|
+
onTabChange: z,
|
|
1343
1355
|
infoBanner: S,
|
|
1344
1356
|
selectable: w = !1,
|
|
1345
1357
|
bulkActions: I,
|
|
1346
1358
|
rowActions: y,
|
|
1347
1359
|
onRowClick: B,
|
|
1348
|
-
defaultSort:
|
|
1360
|
+
defaultSort: Q,
|
|
1349
1361
|
pageSize: F = 25,
|
|
1350
1362
|
pageSizeOptions: _ = [10, 25, 50, 100],
|
|
1351
|
-
tone:
|
|
1363
|
+
tone: Y,
|
|
1352
1364
|
headerAction: ue,
|
|
1353
|
-
headerClassName:
|
|
1365
|
+
headerClassName: Z,
|
|
1354
1366
|
panelClassName: it,
|
|
1355
1367
|
className: ot
|
|
1356
1368
|
}) {
|
|
1357
|
-
const [
|
|
1369
|
+
const [ze, De] = T(
|
|
1358
1370
|
() => Object.fromEntries(
|
|
1359
1371
|
a.filter((n) => n.defaultHidden && !n.required).map((n) => [n.id, !0])
|
|
1360
1372
|
)
|
|
1361
1373
|
), [x, st] = T(
|
|
1362
|
-
|
|
1363
|
-
), [$,
|
|
1374
|
+
Q ?? null
|
|
1375
|
+
), [$, O] = T(0), [L, dt] = T(F), [R, me] = T(/* @__PURE__ */ new Set()), [ct, pe] = T([]), j = a.filter((n) => !ze[n.id]), Te = a.filter((n) => ze[n.id] && !n.required), be = (u ?? []).filter((n) => ct.includes(n.id)), ut = (u ?? []).map((n) => `${n.id}:${n.value.join(",")}`).join("|"), K = je(() => {
|
|
1364
1376
|
let n = t;
|
|
1365
1377
|
for (const f of u ?? [])
|
|
1366
1378
|
f.value.length > 0 && (n = n.filter((v) => f.match(v, f.value)));
|
|
@@ -1368,21 +1380,21 @@ function er({
|
|
|
1368
1380
|
const m = c.value.trim().toLowerCase();
|
|
1369
1381
|
return n.filter((f) => c.keys(f).toLowerCase().includes(m));
|
|
1370
1382
|
}, [t, c, u]), q = je(() => {
|
|
1371
|
-
if (!x) return
|
|
1383
|
+
if (!x) return K;
|
|
1372
1384
|
const n = a.find((f) => f.id === x.id);
|
|
1373
|
-
if (!(n != null && n.sortValue)) return
|
|
1385
|
+
if (!(n != null && n.sortValue)) return K;
|
|
1374
1386
|
const m = x.dir === "asc" ? 1 : -1;
|
|
1375
|
-
return [...
|
|
1387
|
+
return [...K].sort((f, v) => {
|
|
1376
1388
|
const P = n.sortValue(f), H = n.sortValue(v);
|
|
1377
1389
|
return P == null && H == null ? 0 : P == null ? 1 : H == null ? -1 : typeof P == "number" && typeof H == "number" ? (P - H) * m : String(P).localeCompare(String(H)) * m;
|
|
1378
1390
|
});
|
|
1379
|
-
}, [
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}, [c == null ? void 0 : c.value, L, x == null ? void 0 : x.id, x == null ? void 0 : x.dir, N, ut]),
|
|
1383
|
-
$ > G - 1 &&
|
|
1391
|
+
}, [K, x, a]), G = Math.max(1, Math.ceil(q.length / L));
|
|
1392
|
+
U(() => {
|
|
1393
|
+
O(0);
|
|
1394
|
+
}, [c == null ? void 0 : c.value, L, x == null ? void 0 : x.id, x == null ? void 0 : x.dir, N, ut]), U(() => {
|
|
1395
|
+
$ > G - 1 && O(G - 1);
|
|
1384
1396
|
}, [$, G]);
|
|
1385
|
-
const
|
|
1397
|
+
const ee = $ * L, E = q.slice(ee, ee + L), mt = (n) => {
|
|
1386
1398
|
n.sortable && st(
|
|
1387
1399
|
(m) => (m == null ? void 0 : m.id) === n.id ? m.dir === "asc" ? { id: n.id, dir: "desc" } : null : { id: n.id, dir: "asc" }
|
|
1388
1400
|
);
|
|
@@ -1410,7 +1422,7 @@ function er({
|
|
|
1410
1422
|
type: "button",
|
|
1411
1423
|
role: "tab",
|
|
1412
1424
|
"aria-selected": m,
|
|
1413
|
-
onClick: () =>
|
|
1425
|
+
onClick: () => z == null ? void 0 : z(n.id),
|
|
1414
1426
|
className: i(
|
|
1415
1427
|
"-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
|
|
1416
1428
|
m ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
|
|
@@ -1438,19 +1450,19 @@ function er({
|
|
|
1438
1450
|
h,
|
|
1439
1451
|
/* @__PURE__ */ s(ge, { children: [
|
|
1440
1452
|
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1441
|
-
|
|
1453
|
+
k,
|
|
1442
1454
|
{
|
|
1443
1455
|
variant: "secondary",
|
|
1444
1456
|
size: "md",
|
|
1445
1457
|
leadingIcon: /* @__PURE__ */ e(jt, {}),
|
|
1446
|
-
trailingIcon: /* @__PURE__ */ e(
|
|
1458
|
+
trailingIcon: /* @__PURE__ */ e(V, {}),
|
|
1447
1459
|
children: "Columns"
|
|
1448
1460
|
}
|
|
1449
1461
|
) }),
|
|
1450
1462
|
/* @__PURE__ */ s(re, { align: "end", className: "w-54", children: [
|
|
1451
1463
|
/* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Active columns" }),
|
|
1452
1464
|
j.map((n) => /* @__PURE__ */ s(
|
|
1453
|
-
|
|
1465
|
+
W,
|
|
1454
1466
|
{
|
|
1455
1467
|
checked: !0,
|
|
1456
1468
|
disabled: n.required,
|
|
@@ -1468,7 +1480,7 @@ function er({
|
|
|
1468
1480
|
/* @__PURE__ */ e(Ne, {}),
|
|
1469
1481
|
/* @__PURE__ */ e(ne, { className: "text-[13px]", children: "Available columns" }),
|
|
1470
1482
|
Te.map((n) => /* @__PURE__ */ e(
|
|
1471
|
-
|
|
1483
|
+
W,
|
|
1472
1484
|
{
|
|
1473
1485
|
checked: !1,
|
|
1474
1486
|
onCheckedChange: () => De((m) => ({ ...m, [n.id]: !1 })),
|
|
@@ -1482,7 +1494,7 @@ function er({
|
|
|
1482
1494
|
] }),
|
|
1483
1495
|
u && u.length > 0 ? /* @__PURE__ */ s(ge, { children: [
|
|
1484
1496
|
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1485
|
-
|
|
1497
|
+
k,
|
|
1486
1498
|
{
|
|
1487
1499
|
variant: "secondary",
|
|
1488
1500
|
size: "md",
|
|
@@ -1511,7 +1523,7 @@ function er({
|
|
|
1511
1523
|
};
|
|
1512
1524
|
return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
|
|
1513
1525
|
/* @__PURE__ */ e(
|
|
1514
|
-
|
|
1526
|
+
k,
|
|
1515
1527
|
{
|
|
1516
1528
|
variant: "secondary",
|
|
1517
1529
|
size: "md",
|
|
@@ -1523,12 +1535,12 @@ function er({
|
|
|
1523
1535
|
}
|
|
1524
1536
|
),
|
|
1525
1537
|
/* @__PURE__ */ s(ge, { children: [
|
|
1526
|
-
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ s(
|
|
1538
|
+
/* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ s(k, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
|
|
1527
1539
|
/* @__PURE__ */ e(Ie, {}),
|
|
1528
1540
|
/* @__PURE__ */ e("span", { className: "font-medium", children: n.label }),
|
|
1529
1541
|
/* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
|
|
1530
1542
|
/* @__PURE__ */ e("span", { className: "text-muted", children: n.value.length > 0 ? `${n.value.length} selected` : "Enter value" }),
|
|
1531
|
-
/* @__PURE__ */ e(
|
|
1543
|
+
/* @__PURE__ */ e(V, { className: "text-muted" })
|
|
1532
1544
|
] }) }),
|
|
1533
1545
|
/* @__PURE__ */ s(re, { align: "start", className: "w-56", children: [
|
|
1534
1546
|
/* @__PURE__ */ s(ne, { className: "text-[13px]", children: [
|
|
@@ -1538,7 +1550,7 @@ function er({
|
|
|
1538
1550
|
n.options.map((f) => {
|
|
1539
1551
|
const v = n.value.includes(f.value);
|
|
1540
1552
|
return /* @__PURE__ */ e(
|
|
1541
|
-
|
|
1553
|
+
W,
|
|
1542
1554
|
{
|
|
1543
1555
|
checked: v,
|
|
1544
1556
|
onCheckedChange: () => n.onChange(
|
|
@@ -1576,7 +1588,7 @@ function er({
|
|
|
1576
1588
|
" selected"
|
|
1577
1589
|
] }),
|
|
1578
1590
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (I ?? []).map((n) => /* @__PURE__ */ s(
|
|
1579
|
-
|
|
1591
|
+
k,
|
|
1580
1592
|
{
|
|
1581
1593
|
size: "md",
|
|
1582
1594
|
variant: n.variant ?? "outline",
|
|
@@ -1606,8 +1618,8 @@ function er({
|
|
|
1606
1618
|
ce,
|
|
1607
1619
|
{
|
|
1608
1620
|
action: ue,
|
|
1609
|
-
tone:
|
|
1610
|
-
headerClassName:
|
|
1621
|
+
tone: Y,
|
|
1622
|
+
headerClassName: Z,
|
|
1611
1623
|
panelClassName: it,
|
|
1612
1624
|
header: (
|
|
1613
1625
|
// Visible header: presentational so its controls stay focusable while
|
|
@@ -1626,9 +1638,9 @@ function er({
|
|
|
1626
1638
|
j.map((n) => /* @__PURE__ */ e(
|
|
1627
1639
|
"th",
|
|
1628
1640
|
{
|
|
1629
|
-
className: i(
|
|
1641
|
+
className: i(Pa, n.align === "right" && "text-right", n.className),
|
|
1630
1642
|
children: n.sortable ? /* @__PURE__ */ s(
|
|
1631
|
-
|
|
1643
|
+
k,
|
|
1632
1644
|
{
|
|
1633
1645
|
type: "button",
|
|
1634
1646
|
variant: "ghost",
|
|
@@ -1643,7 +1655,7 @@ function er({
|
|
|
1643
1655
|
),
|
|
1644
1656
|
children: [
|
|
1645
1657
|
n.header,
|
|
1646
|
-
(x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? /* @__PURE__ */ e(Lt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(
|
|
1658
|
+
(x == null ? void 0 : x.id) === n.id ? x.dir === "asc" ? /* @__PURE__ */ e(Lt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(V, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Rt, { className: "size-3.5 opacity-50" })
|
|
1647
1659
|
]
|
|
1648
1660
|
}
|
|
1649
1661
|
) : n.header
|
|
@@ -1662,7 +1674,7 @@ function er({
|
|
|
1662
1674
|
] }),
|
|
1663
1675
|
o.action
|
|
1664
1676
|
] }) : E.length === 0 ? /* @__PURE__ */ e(
|
|
1665
|
-
|
|
1677
|
+
Ma,
|
|
1666
1678
|
{
|
|
1667
1679
|
icon: d == null ? void 0 : d.icon,
|
|
1668
1680
|
title: (d == null ? void 0 : d.title) ?? "No results",
|
|
@@ -1713,37 +1725,37 @@ function er({
|
|
|
1713
1725
|
),
|
|
1714
1726
|
!l && !o && q.length > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
|
|
1715
1727
|
/* @__PURE__ */ s("span", { className: "text-muted", children: [
|
|
1716
|
-
|
|
1728
|
+
ee + 1,
|
|
1717
1729
|
"–",
|
|
1718
|
-
Math.min(
|
|
1730
|
+
Math.min(ee + L, q.length),
|
|
1719
1731
|
" of ",
|
|
1720
1732
|
q.length
|
|
1721
1733
|
] }),
|
|
1722
1734
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1723
|
-
/* @__PURE__ */ s(
|
|
1735
|
+
/* @__PURE__ */ s(Da, { value: String(L), onValueChange: (n) => dt(Number(n)), children: [
|
|
1724
1736
|
/* @__PURE__ */ e(nt, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ e(za, {}) }),
|
|
1725
|
-
/* @__PURE__ */ e(lt, { children: _.map((n) => /* @__PURE__ */ s(
|
|
1737
|
+
/* @__PURE__ */ e(lt, { children: _.map((n) => /* @__PURE__ */ s(ke, { value: String(n), children: [
|
|
1726
1738
|
n,
|
|
1727
1739
|
" / page"
|
|
1728
1740
|
] }, n)) })
|
|
1729
1741
|
] }),
|
|
1730
1742
|
/* @__PURE__ */ e(
|
|
1731
|
-
|
|
1743
|
+
k,
|
|
1732
1744
|
{
|
|
1733
1745
|
variant: "outline",
|
|
1734
1746
|
size: "md",
|
|
1735
1747
|
disabled: $ <= 0,
|
|
1736
|
-
onClick: () =>
|
|
1748
|
+
onClick: () => O((n) => Math.max(0, n - 1)),
|
|
1737
1749
|
children: "Previous"
|
|
1738
1750
|
}
|
|
1739
1751
|
),
|
|
1740
1752
|
/* @__PURE__ */ e(
|
|
1741
|
-
|
|
1753
|
+
k,
|
|
1742
1754
|
{
|
|
1743
1755
|
variant: "outline",
|
|
1744
1756
|
size: "md",
|
|
1745
1757
|
disabled: $ >= G - 1,
|
|
1746
|
-
onClick: () =>
|
|
1758
|
+
onClick: () => O((n) => Math.min(G - 1, n + 1)),
|
|
1747
1759
|
children: "Next"
|
|
1748
1760
|
}
|
|
1749
1761
|
)
|
|
@@ -1751,7 +1763,7 @@ function er({
|
|
|
1751
1763
|
] })
|
|
1752
1764
|
] });
|
|
1753
1765
|
}
|
|
1754
|
-
function
|
|
1766
|
+
function ar({ icon: t, title: a, description: r, action: l, className: o }) {
|
|
1755
1767
|
return /* @__PURE__ */ e(ce, { className: o, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
|
|
1756
1768
|
t ? /* @__PURE__ */ e("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: t }) : null,
|
|
1757
1769
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
@@ -1761,7 +1773,7 @@ function tr({ icon: t, title: a, description: r, action: l, className: o }) {
|
|
|
1761
1773
|
l
|
|
1762
1774
|
] }) });
|
|
1763
1775
|
}
|
|
1764
|
-
function
|
|
1776
|
+
function rr({ className: t, ...a }) {
|
|
1765
1777
|
return /* @__PURE__ */ e(
|
|
1766
1778
|
"kbd",
|
|
1767
1779
|
{
|
|
@@ -1773,7 +1785,7 @@ function ar({ className: t, ...a }) {
|
|
|
1773
1785
|
}
|
|
1774
1786
|
);
|
|
1775
1787
|
}
|
|
1776
|
-
const
|
|
1788
|
+
const ja = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
1777
1789
|
qt.Root,
|
|
1778
1790
|
{
|
|
1779
1791
|
ref: r,
|
|
@@ -1784,8 +1796,8 @@ const Ia = b(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
1784
1796
|
...a
|
|
1785
1797
|
}
|
|
1786
1798
|
));
|
|
1787
|
-
|
|
1788
|
-
function
|
|
1799
|
+
ja.displayName = "Label";
|
|
1800
|
+
function nr({
|
|
1789
1801
|
value: t,
|
|
1790
1802
|
onValueChange: a,
|
|
1791
1803
|
options: r,
|
|
@@ -1837,7 +1849,7 @@ function rr({
|
|
|
1837
1849
|
}
|
|
1838
1850
|
);
|
|
1839
1851
|
}
|
|
1840
|
-
const
|
|
1852
|
+
const Ea = b(({ className: t, orientation: a = "horizontal", decorative: r = !0, ...l }, o) => /* @__PURE__ */ e(
|
|
1841
1853
|
Gt.Root,
|
|
1842
1854
|
{
|
|
1843
1855
|
ref: o,
|
|
@@ -1851,8 +1863,8 @@ const ja = b(({ className: t, orientation: a = "horizontal", decorative: r = !0,
|
|
|
1851
1863
|
...l
|
|
1852
1864
|
}
|
|
1853
1865
|
));
|
|
1854
|
-
|
|
1855
|
-
function
|
|
1866
|
+
Ea.displayName = "Separator";
|
|
1867
|
+
function lr({ className: t, ...a }) {
|
|
1856
1868
|
return /* @__PURE__ */ e(
|
|
1857
1869
|
"div",
|
|
1858
1870
|
{
|
|
@@ -1861,8 +1873,8 @@ function nr({ className: t, ...a }) {
|
|
|
1861
1873
|
}
|
|
1862
1874
|
);
|
|
1863
1875
|
}
|
|
1864
|
-
const
|
|
1865
|
-
|
|
1876
|
+
const ir = X.Provider, or = X.Root, sr = X.Trigger, _a = b(({ className: t, sideOffset: a = 6, ...r }, l) => /* @__PURE__ */ e(X.Portal, { children: /* @__PURE__ */ e(
|
|
1877
|
+
X.Content,
|
|
1866
1878
|
{
|
|
1867
1879
|
ref: l,
|
|
1868
1880
|
sideOffset: a,
|
|
@@ -1879,15 +1891,15 @@ const lr = W.Provider, ir = W.Root, or = W.Trigger, Ea = b(({ className: t, side
|
|
|
1879
1891
|
...r
|
|
1880
1892
|
}
|
|
1881
1893
|
) }));
|
|
1882
|
-
|
|
1894
|
+
_a.displayName = "TooltipContent";
|
|
1883
1895
|
export {
|
|
1884
|
-
|
|
1896
|
+
Ga as AgentPrompt,
|
|
1885
1897
|
Ge as Avatar,
|
|
1886
1898
|
Ve as AvatarFallback,
|
|
1887
1899
|
He as AvatarImage,
|
|
1888
1900
|
Jt as Badge,
|
|
1889
|
-
|
|
1890
|
-
|
|
1901
|
+
k as Button,
|
|
1902
|
+
Ha as Callout,
|
|
1891
1903
|
na as Card,
|
|
1892
1904
|
oa as CardContent,
|
|
1893
1905
|
ia as CardDescription,
|
|
@@ -1895,14 +1907,14 @@ export {
|
|
|
1895
1907
|
Ue as CardHeader,
|
|
1896
1908
|
la as CardTitle,
|
|
1897
1909
|
xe as Checkbox,
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1910
|
+
Ja as ChoiceDialog,
|
|
1911
|
+
Qa as CodeBlock,
|
|
1912
|
+
tr as DataTable,
|
|
1913
|
+
er as DataTableIdentity,
|
|
1902
1914
|
pa as Dialog,
|
|
1903
1915
|
fa as DialogBody,
|
|
1904
1916
|
Ye as DialogCancel,
|
|
1905
|
-
|
|
1917
|
+
Xa as DialogClose,
|
|
1906
1918
|
Oe as DialogContent,
|
|
1907
1919
|
xa as DialogDescription,
|
|
1908
1920
|
ga as DialogFooter,
|
|
@@ -1911,48 +1923,49 @@ export {
|
|
|
1911
1923
|
Ke as DialogTitle,
|
|
1912
1924
|
Qe as DialogTrigger,
|
|
1913
1925
|
ge as DropdownMenu,
|
|
1914
|
-
|
|
1926
|
+
W as DropdownMenuCheckboxItem,
|
|
1927
|
+
Sa as DropdownMenuChevron,
|
|
1915
1928
|
re as DropdownMenuContent,
|
|
1916
|
-
|
|
1929
|
+
Ya as DropdownMenuGroup,
|
|
1917
1930
|
oe as DropdownMenuItem,
|
|
1918
1931
|
ne as DropdownMenuLabel,
|
|
1919
|
-
|
|
1932
|
+
Za as DropdownMenuPortal,
|
|
1920
1933
|
Ne as DropdownMenuSeparator,
|
|
1921
|
-
|
|
1922
|
-
|
|
1934
|
+
Oa as DropdownMenuSub,
|
|
1935
|
+
ka as DropdownMenuSubContent,
|
|
1923
1936
|
rt as DropdownMenuSubTrigger,
|
|
1924
1937
|
ae as DropdownMenuTrigger,
|
|
1925
|
-
|
|
1938
|
+
ar as EmptyState,
|
|
1926
1939
|
tt as Input,
|
|
1927
|
-
|
|
1928
|
-
|
|
1940
|
+
rr as Kbd,
|
|
1941
|
+
ja as Label,
|
|
1929
1942
|
Na as RadioCard,
|
|
1930
1943
|
va as RadioGroup,
|
|
1931
|
-
|
|
1932
|
-
|
|
1944
|
+
nr as Segmented,
|
|
1945
|
+
Da as Select,
|
|
1933
1946
|
lt as SelectContent,
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1947
|
+
Ka as SelectGroup,
|
|
1948
|
+
ke as SelectItem,
|
|
1949
|
+
Ta as SelectLabel,
|
|
1937
1950
|
nt as SelectTrigger,
|
|
1938
1951
|
za as SelectValue,
|
|
1939
|
-
|
|
1940
|
-
|
|
1952
|
+
Ea as Separator,
|
|
1953
|
+
lr as Skeleton,
|
|
1941
1954
|
Ht as Spinner,
|
|
1942
|
-
|
|
1955
|
+
Va as Table,
|
|
1943
1956
|
Ot as TableBody,
|
|
1944
1957
|
fe as TableCell,
|
|
1945
1958
|
Yt as TableContainer,
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1959
|
+
Ma as TableEmptyState,
|
|
1960
|
+
Wa as TableHead,
|
|
1961
|
+
Ua as TableHeader,
|
|
1949
1962
|
Zt as TablePanel,
|
|
1950
1963
|
Kt as TableRow,
|
|
1951
1964
|
ce as TableSurface,
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1965
|
+
or as Tooltip,
|
|
1966
|
+
_a as TooltipContent,
|
|
1967
|
+
ir as TooltipProvider,
|
|
1968
|
+
sr as TooltipTrigger,
|
|
1956
1969
|
Wt as badgeVariants,
|
|
1957
1970
|
Vt as buttonVariants
|
|
1958
1971
|
};
|