@craftzbay/ui 0.6.0 → 0.7.0
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-lib/index.cjs +2 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +301 -305
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/showcase/guides/Migration.d.ts +1 -0
- package/dist-lib/showcase/layout/DocLayout.d.ts +9 -3
- package/dist-lib/showcase/layout/DocSidebar.d.ts +15 -1
- package/dist-lib/showcase/layout/ShowcaseFooter.d.ts +5 -0
- package/dist-lib/showcase/layout/sidebars.d.ts +8 -0
- package/dist-lib/showcase/routing.d.ts +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { clsx as Qr } from "clsx";
|
|
2
2
|
import { twMerge as Xr } from "tailwind-merge";
|
|
3
3
|
import { useState as w, useEffect as ve, useCallback as ee, forwardRef as m, useId as re, useMemo as xe, useContext as ge, createContext as Oe, useRef as lt, Fragment as Yr } from "react";
|
|
4
|
-
import { AlertCircle as Jr, AlertTriangle as Re, ArrowDown as _t, ArrowLeft as At, ArrowRight as ze, ArrowUp as Ft, ArrowUpDown as Lt, AtSign as Zr, BarChart3 as
|
|
4
|
+
import { AlertCircle as Jr, AlertTriangle as Re, ArrowDown as _t, ArrowLeft as At, ArrowRight as ze, ArrowUp as Ft, ArrowUpDown as Lt, AtSign as Zr, BarChart3 as Et, Bell as dt, Bookmark as jt, Calendar as $t, Check as ie, CheckCircle2 as Ne, ChevronDown as Be, ChevronLeft as Ve, ChevronRight as se, ChevronUp as Ot, ChevronsLeft as ct, ChevronsRight as ut, ChevronsUpDown as He, Circle as mt, Copy as en, CornerDownLeft as tn, CreditCard as Rt, Download as Bt, Edit2 as Vt, Ellipsis as rn, ExternalLink as Ht, Eye as Gt, EyeOff as Ut, Filter as Wt, Folder as Ge, GripVertical as nn, HelpCircle as ft, Home as Kt, Inbox as qt, Info as Ue, LayoutGrid as Qt, Link2 as an, Loader2 as We, Lock as Xt, LogOut as Yt, Mail as Jt, Menu as Zt, Minus as er, Moon as on, MoreHorizontal as tr, Package as sn, Plug as rr, Plus as gt, Search as Ke, Settings as qe, Sparkles as nr, Sun as ln, Trash2 as ht, Upload as Qe, User as pt, Users as Xe, X, XCircle as Ye, File as ar, FolderOpen as dn } from "lucide-react";
|
|
5
5
|
import { jsxs as s, jsx as e, Fragment as te } from "react/jsx-runtime";
|
|
6
6
|
import * as Te from "@radix-ui/react-accordion";
|
|
7
7
|
import { cva as Y } from "class-variance-authority";
|
|
8
|
-
import { cva as
|
|
8
|
+
import { cva as hi } from "class-variance-authority";
|
|
9
9
|
import * as ot from "@radix-ui/react-avatar";
|
|
10
10
|
import { Slot as or } from "@radix-ui/react-slot";
|
|
11
11
|
import * as Tt from "@radix-ui/react-checkbox";
|
|
@@ -33,7 +33,7 @@ function l(...a) {
|
|
|
33
33
|
return Xr(Qr(a));
|
|
34
34
|
}
|
|
35
35
|
let Dt = 0;
|
|
36
|
-
function
|
|
36
|
+
function Zo(a = "ds") {
|
|
37
37
|
return Dt += 1, `${a}-${Dt}`;
|
|
38
38
|
}
|
|
39
39
|
function bn(a) {
|
|
@@ -44,7 +44,7 @@ function bn(a) {
|
|
|
44
44
|
return r(n.matches), n.addEventListener("change", o), () => n.removeEventListener("change", o);
|
|
45
45
|
}, [a]), t;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function es() {
|
|
48
48
|
return bn("(prefers-reduced-motion: reduce)");
|
|
49
49
|
}
|
|
50
50
|
const ue = {
|
|
@@ -64,7 +64,7 @@ const ue = {
|
|
|
64
64
|
this.toasts = this.toasts.filter((t) => t.id !== a), this.emit();
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
function
|
|
67
|
+
function ts() {
|
|
68
68
|
const [a, t] = w(() => [...ue.toasts]);
|
|
69
69
|
ve(() => {
|
|
70
70
|
const i = (d) => t([...d]);
|
|
@@ -75,7 +75,7 @@ function Zo() {
|
|
|
75
75
|
const r = ee((i) => ue.push(i), []), n = ee((i) => ue.dismiss(i), []), o = ee((i) => ue.remove(i), []);
|
|
76
76
|
return { toasts: a, push: r, dismiss: n, remove: o };
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const rs = (a) => ue.push(a), ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
79
79
|
__proto__: null,
|
|
80
80
|
AlertCircle: Jr,
|
|
81
81
|
AlertTriangle: Re,
|
|
@@ -85,9 +85,9 @@ const es = (a) => ue.push(a), ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
|
85
85
|
ArrowUp: Ft,
|
|
86
86
|
ArrowUpDown: Lt,
|
|
87
87
|
AtSign: Zr,
|
|
88
|
-
BarChart3:
|
|
88
|
+
BarChart3: Et,
|
|
89
89
|
Bell: dt,
|
|
90
|
-
Bookmark:
|
|
90
|
+
Bookmark: jt,
|
|
91
91
|
Calendar: $t,
|
|
92
92
|
Check: ie,
|
|
93
93
|
CheckCircle2: Ne,
|
|
@@ -97,7 +97,7 @@ const es = (a) => ue.push(a), ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
|
97
97
|
ChevronUp: Ot,
|
|
98
98
|
ChevronsLeft: ct,
|
|
99
99
|
ChevronsRight: ut,
|
|
100
|
-
ChevronsUpDown:
|
|
100
|
+
ChevronsUpDown: He,
|
|
101
101
|
Circle: mt,
|
|
102
102
|
Copy: en,
|
|
103
103
|
CornerDownLeft: tn,
|
|
@@ -105,11 +105,11 @@ const es = (a) => ue.push(a), ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
|
105
105
|
Download: Bt,
|
|
106
106
|
Edit2: Vt,
|
|
107
107
|
Ellipsis: rn,
|
|
108
|
-
ExternalLink:
|
|
109
|
-
Eye:
|
|
108
|
+
ExternalLink: Ht,
|
|
109
|
+
Eye: Gt,
|
|
110
110
|
EyeOff: Ut,
|
|
111
111
|
Filter: Wt,
|
|
112
|
-
Folder:
|
|
112
|
+
Folder: Ge,
|
|
113
113
|
GripVertical: nn,
|
|
114
114
|
HelpCircle: ft,
|
|
115
115
|
Home: Kt,
|
|
@@ -232,7 +232,7 @@ function dr(a) {
|
|
|
232
232
|
/* @__PURE__ */ e("path", { d: "M20 20l80 80", className: "text-danger", stroke: "currentColor" })
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
236
236
|
__proto__: null,
|
|
237
237
|
ConnectionLost: dr,
|
|
238
238
|
Construction: vn,
|
|
@@ -240,7 +240,7 @@ const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
240
240
|
NoSearchResults: xn,
|
|
241
241
|
NotFound: ir,
|
|
242
242
|
ServerError: lr
|
|
243
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
243
|
+
}, Symbol.toStringTag, { value: "Module" })), os = Te.Root, Nn = m(function({ className: t, ...r }, n) {
|
|
244
244
|
return /* @__PURE__ */ e(Te.Item, { ref: n, className: l("border-b border-border", t), ...r });
|
|
245
245
|
});
|
|
246
246
|
Nn.displayName = "AccordionItem";
|
|
@@ -633,7 +633,7 @@ const Pn = Y(
|
|
|
633
633
|
return /* @__PURE__ */ e("div", { ref: i, className: l(Pn({ variant: r, padding: n }), t), ...o });
|
|
634
634
|
});
|
|
635
635
|
V.displayName = "Card";
|
|
636
|
-
const
|
|
636
|
+
const G = m(
|
|
637
637
|
function({ className: t, ...r }, n) {
|
|
638
638
|
return /* @__PURE__ */ e(
|
|
639
639
|
"div",
|
|
@@ -645,7 +645,7 @@ const H = m(
|
|
|
645
645
|
);
|
|
646
646
|
}
|
|
647
647
|
);
|
|
648
|
-
|
|
648
|
+
G.displayName = "CardHeader";
|
|
649
649
|
const Q = m(
|
|
650
650
|
function({ className: t, ...r }, n) {
|
|
651
651
|
return /* @__PURE__ */ e(
|
|
@@ -751,24 +751,24 @@ const An = m(function({
|
|
|
751
751
|
size: p = "md",
|
|
752
752
|
className: x
|
|
753
753
|
}, N) {
|
|
754
|
-
const v = re(), T = `${v}-helper`, F = `${v}-error`, [M, z] = w(!1), [y, k] = w(""), [
|
|
754
|
+
const v = re(), T = `${v}-helper`, F = `${v}-error`, [M, z] = w(!1), [y, k] = w(""), [E, K] = w([]), [q, le] = w(!1), _ = o ? E : n ?? [];
|
|
755
755
|
ve(() => {
|
|
756
756
|
if (!o || !M) return;
|
|
757
|
-
let
|
|
757
|
+
let j = !1;
|
|
758
758
|
return le(!0), o(y).then((S) => {
|
|
759
|
-
|
|
759
|
+
j || K(S);
|
|
760
760
|
}).finally(() => {
|
|
761
|
-
|
|
761
|
+
j || le(!1);
|
|
762
762
|
}), () => {
|
|
763
|
-
|
|
763
|
+
j = !0;
|
|
764
764
|
};
|
|
765
765
|
}, [y, M, o]);
|
|
766
|
-
const
|
|
767
|
-
() => _.find((
|
|
766
|
+
const H = xe(
|
|
767
|
+
() => _.find((j) => j.value === t) ?? null,
|
|
768
768
|
[_, t]
|
|
769
769
|
), ne = p === "sm" ? "h-8" : p === "lg" ? "h-10" : "h-9", C = p === "sm" ? "px-2.5" : p === "lg" ? "px-3.5" : "px-3", ae = ee(
|
|
770
|
-
(
|
|
771
|
-
|
|
770
|
+
(j) => {
|
|
771
|
+
j.stopPropagation(), r(null);
|
|
772
772
|
},
|
|
773
773
|
[r]
|
|
774
774
|
), we = !!u;
|
|
@@ -795,9 +795,9 @@ const An = m(function({
|
|
|
795
795
|
we ? "border-danger focus-visible:border-danger focus-visible:ring-danger" : "border-border focus-visible:border-accent focus-visible:ring-ring"
|
|
796
796
|
),
|
|
797
797
|
children: [
|
|
798
|
-
/* @__PURE__ */ e("span", { className: l("truncate", !
|
|
798
|
+
/* @__PURE__ */ e("span", { className: l("truncate", !H && "text-foreground-subtle"), children: H ? H.label : f }),
|
|
799
799
|
/* @__PURE__ */ s("span", { className: "ml-2 flex items-center gap-1 shrink-0", children: [
|
|
800
|
-
b &&
|
|
800
|
+
b && H && !g && /* @__PURE__ */ e(
|
|
801
801
|
"span",
|
|
802
802
|
{
|
|
803
803
|
role: "button",
|
|
@@ -808,7 +808,7 @@ const An = m(function({
|
|
|
808
808
|
children: /* @__PURE__ */ e(X, { className: "size-4", "aria-hidden": !0 })
|
|
809
809
|
}
|
|
810
810
|
),
|
|
811
|
-
/* @__PURE__ */ e(
|
|
811
|
+
/* @__PURE__ */ e(He, { className: "size-4 text-foreground-subtle", "aria-hidden": !0 })
|
|
812
812
|
] })
|
|
813
813
|
]
|
|
814
814
|
}
|
|
@@ -838,13 +838,13 @@ const An = m(function({
|
|
|
838
838
|
q && /* @__PURE__ */ e(We, { className: "size-4 animate-spin text-foreground-subtle", "aria-hidden": !0 })
|
|
839
839
|
] }),
|
|
840
840
|
/* @__PURE__ */ s($.List, { className: "max-h-64 overflow-y-auto p-1", children: [
|
|
841
|
-
_.map((
|
|
842
|
-
const S =
|
|
841
|
+
_.map((j) => {
|
|
842
|
+
const S = j.value === t;
|
|
843
843
|
return /* @__PURE__ */ s(
|
|
844
844
|
$.Item,
|
|
845
845
|
{
|
|
846
|
-
value:
|
|
847
|
-
disabled:
|
|
846
|
+
value: j.value,
|
|
847
|
+
disabled: j.disabled,
|
|
848
848
|
onSelect: (P) => {
|
|
849
849
|
r(P), z(!1);
|
|
850
850
|
},
|
|
@@ -854,12 +854,12 @@ const An = m(function({
|
|
|
854
854
|
"data-[disabled=true]:opacity-50 data-[disabled=true]:pointer-events-none"
|
|
855
855
|
),
|
|
856
856
|
children: [
|
|
857
|
-
/* @__PURE__ */ e("span", { className: "flex-1", children:
|
|
858
|
-
|
|
857
|
+
/* @__PURE__ */ e("span", { className: "flex-1", children: j.label }),
|
|
858
|
+
j.description && /* @__PURE__ */ e("span", { className: "text-xs text-foreground-subtle", children: j.description }),
|
|
859
859
|
S && /* @__PURE__ */ e(ie, { className: "size-4 text-accent", "aria-hidden": !0 })
|
|
860
860
|
]
|
|
861
861
|
},
|
|
862
|
-
|
|
862
|
+
j.value
|
|
863
863
|
);
|
|
864
864
|
}),
|
|
865
865
|
!q && _.length === 0 && /* @__PURE__ */ e($.Empty, { className: "px-2 py-6 text-center text-sm text-foreground-subtle", children: h })
|
|
@@ -904,7 +904,7 @@ const Ln = m(function({ className: t, ...r }, n) {
|
|
|
904
904
|
] });
|
|
905
905
|
});
|
|
906
906
|
Ln.displayName = "CommandInput";
|
|
907
|
-
const
|
|
907
|
+
const En = m(function({ className: t, ...r }, n) {
|
|
908
908
|
return /* @__PURE__ */ e(
|
|
909
909
|
$.List,
|
|
910
910
|
{
|
|
@@ -914,8 +914,8 @@ const jn = m(function({ className: t, ...r }, n) {
|
|
|
914
914
|
}
|
|
915
915
|
);
|
|
916
916
|
});
|
|
917
|
-
|
|
918
|
-
const
|
|
917
|
+
En.displayName = "CommandList";
|
|
918
|
+
const jn = m(function(t, r) {
|
|
919
919
|
return /* @__PURE__ */ e(
|
|
920
920
|
$.Empty,
|
|
921
921
|
{
|
|
@@ -925,7 +925,7 @@ const En = m(function(t, r) {
|
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
927
|
});
|
|
928
|
-
|
|
928
|
+
jn.displayName = "CommandEmpty";
|
|
929
929
|
const $n = m(function({ className: t, ...r }, n) {
|
|
930
930
|
return /* @__PURE__ */ e(
|
|
931
931
|
$.Group,
|
|
@@ -971,7 +971,7 @@ const Rn = m(function({ className: t, ...r }, n) {
|
|
|
971
971
|
);
|
|
972
972
|
});
|
|
973
973
|
Rn.displayName = "CommandItem";
|
|
974
|
-
function
|
|
974
|
+
function ss({ children: a, className: t }) {
|
|
975
975
|
return /* @__PURE__ */ e(
|
|
976
976
|
"span",
|
|
977
977
|
{
|
|
@@ -983,7 +983,7 @@ function as({ children: a, className: t }) {
|
|
|
983
983
|
}
|
|
984
984
|
);
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function is({ open: a, onOpenChange: t, children: r, title: n = "Command palette" }) {
|
|
987
987
|
return /* @__PURE__ */ e(D.Root, { open: a, onOpenChange: t, children: /* @__PURE__ */ s(D.Portal, { children: [
|
|
988
988
|
/* @__PURE__ */ e(
|
|
989
989
|
D.Overlay,
|
|
@@ -1014,7 +1014,7 @@ function os({ open: a, onOpenChange: t, children: r, title: n = "Command palette
|
|
|
1014
1014
|
)
|
|
1015
1015
|
] }) });
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ls(a) {
|
|
1018
1018
|
const [t, r] = w(0);
|
|
1019
1019
|
ve(() => {
|
|
1020
1020
|
const n = (o) => {
|
|
@@ -1023,7 +1023,7 @@ function ss(a) {
|
|
|
1023
1023
|
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
1024
1024
|
}, [a]);
|
|
1025
1025
|
}
|
|
1026
|
-
const
|
|
1026
|
+
const ds = R.Root, cs = R.Trigger, us = R.Group, Bn = R.Portal, ms = R.Sub, fs = R.RadioGroup, et = l(
|
|
1027
1027
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-foreground outline-none",
|
|
1028
1028
|
"data-[highlighted]:bg-background-muted data-[highlighted]:text-foreground",
|
|
1029
1029
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
@@ -1042,7 +1042,7 @@ const is = R.Root, ls = R.Trigger, ds = R.Group, Bn = R.Portal, cs = R.Sub, us =
|
|
|
1042
1042
|
);
|
|
1043
1043
|
});
|
|
1044
1044
|
Vn.displayName = "ContextMenuSubTrigger";
|
|
1045
|
-
const
|
|
1045
|
+
const Hn = m(function({ className: t, ...r }, n) {
|
|
1046
1046
|
return /* @__PURE__ */ e(
|
|
1047
1047
|
R.SubContent,
|
|
1048
1048
|
{
|
|
@@ -1055,8 +1055,8 @@ const Gn = m(function({ className: t, ...r }, n) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
1057
|
});
|
|
1058
|
-
|
|
1059
|
-
const
|
|
1058
|
+
Hn.displayName = "ContextMenuSubContent";
|
|
1059
|
+
const Gn = m(function({ className: t, ...r }, n) {
|
|
1060
1060
|
return /* @__PURE__ */ e(Bn, { children: /* @__PURE__ */ e(
|
|
1061
1061
|
R.Content,
|
|
1062
1062
|
{
|
|
@@ -1071,7 +1071,7 @@ const Hn = m(function({ className: t, ...r }, n) {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
) });
|
|
1073
1073
|
});
|
|
1074
|
-
|
|
1074
|
+
Gn.displayName = "ContextMenuContent";
|
|
1075
1075
|
const Un = m(function({ className: t, destructive: r, ...n }, o) {
|
|
1076
1076
|
return /* @__PURE__ */ e(
|
|
1077
1077
|
R.Item,
|
|
@@ -1149,7 +1149,7 @@ function Xn({ className: a, ...t }) {
|
|
|
1149
1149
|
);
|
|
1150
1150
|
}
|
|
1151
1151
|
Xn.displayName = "ContextMenuShortcut";
|
|
1152
|
-
const bt = B.Root, xt = B.Trigger,
|
|
1152
|
+
const bt = B.Root, xt = B.Trigger, gs = B.Group, Yn = B.Portal, hs = B.Sub, ps = B.RadioGroup, tt = l(
|
|
1153
1153
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-foreground outline-none",
|
|
1154
1154
|
"data-[highlighted]:bg-background-muted data-[highlighted]:text-foreground",
|
|
1155
1155
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
@@ -1383,7 +1383,7 @@ const na = Y(
|
|
|
1383
1383
|
value: N,
|
|
1384
1384
|
...v
|
|
1385
1385
|
}, T) {
|
|
1386
|
-
const F = re(), M = p ?? F, z = `${M}-helper`, y = `${M}-error`, [k,
|
|
1386
|
+
const F = re(), M = p ?? F, z = `${M}-helper`, y = `${M}-error`, [k, E] = w(!1), K = r === "password" ? k ? "text" : "password" : r, q = !!u, le = q ? "error" : o, _ = f ?? (r === "search" ? /* @__PURE__ */ e(Ke, { className: "size-4 text-foreground-subtle", "aria-hidden": !0 }) : null), H = N !== void 0 && N !== "" && N !== null;
|
|
1387
1387
|
return /* @__PURE__ */ s("div", { className: l("flex flex-col gap-1.5", t), children: [
|
|
1388
1388
|
i && /* @__PURE__ */ e(
|
|
1389
1389
|
"label",
|
|
@@ -1412,7 +1412,7 @@ const na = Y(
|
|
|
1412
1412
|
...v
|
|
1413
1413
|
}
|
|
1414
1414
|
),
|
|
1415
|
-
h &&
|
|
1415
|
+
h && H && /* @__PURE__ */ e(
|
|
1416
1416
|
"button",
|
|
1417
1417
|
{
|
|
1418
1418
|
type: "button",
|
|
@@ -1427,12 +1427,12 @@ const na = Y(
|
|
|
1427
1427
|
"button",
|
|
1428
1428
|
{
|
|
1429
1429
|
type: "button",
|
|
1430
|
-
onClick: () =>
|
|
1430
|
+
onClick: () => E((ne) => !ne),
|
|
1431
1431
|
tabIndex: -1,
|
|
1432
1432
|
"aria-label": k ? "Hide password" : "Show password",
|
|
1433
1433
|
"aria-pressed": k,
|
|
1434
1434
|
className: "flex items-center text-foreground-subtle hover:text-foreground",
|
|
1435
|
-
children: k ? /* @__PURE__ */ e(Ut, { className: "size-4", "aria-hidden": !0 }) : /* @__PURE__ */ e(
|
|
1435
|
+
children: k ? /* @__PURE__ */ e(Ut, { className: "size-4", "aria-hidden": !0 }) : /* @__PURE__ */ e(Gt, { className: "size-4", "aria-hidden": !0 })
|
|
1436
1436
|
}
|
|
1437
1437
|
),
|
|
1438
1438
|
c && /* @__PURE__ */ e("span", { className: "flex items-center text-foreground-subtle [&_svg]:size-4", children: c })
|
|
@@ -1705,7 +1705,7 @@ const pr = m(function({ className: t, classNames: r, ...n }, o) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
);
|
|
1707
1707
|
});
|
|
1708
|
-
function
|
|
1708
|
+
function Ee(a) {
|
|
1709
1709
|
return a ? a.toLocaleDateString(void 0, { year: "numeric", month: "short", day: "numeric" }) : "";
|
|
1710
1710
|
}
|
|
1711
1711
|
function br({
|
|
@@ -1755,7 +1755,7 @@ const la = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick
|
|
|
1755
1755
|
error: i,
|
|
1756
1756
|
fieldId: b,
|
|
1757
1757
|
disabled: d,
|
|
1758
|
-
children:
|
|
1758
|
+
children: Ee(t)
|
|
1759
1759
|
}
|
|
1760
1760
|
),
|
|
1761
1761
|
/* @__PURE__ */ e(A.Portal, { children: /* @__PURE__ */ e(
|
|
@@ -1793,7 +1793,7 @@ const da = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick
|
|
|
1793
1793
|
error: i,
|
|
1794
1794
|
fieldId: b,
|
|
1795
1795
|
disabled: d,
|
|
1796
|
-
children: t != null && t.from && t.to ? `${
|
|
1796
|
+
children: t != null && t.from && t.to ? `${Ee(t.from)} – ${Ee(t.to)}` : t != null && t.from ? Ee(t.from) : ""
|
|
1797
1797
|
}
|
|
1798
1798
|
),
|
|
1799
1799
|
/* @__PURE__ */ e(A.Portal, { children: /* @__PURE__ */ e(
|
|
@@ -1818,7 +1818,7 @@ const da = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick
|
|
|
1818
1818
|
] }) });
|
|
1819
1819
|
});
|
|
1820
1820
|
da.displayName = "DateRangePicker";
|
|
1821
|
-
function
|
|
1821
|
+
function bs({
|
|
1822
1822
|
tokens: a,
|
|
1823
1823
|
className: t,
|
|
1824
1824
|
children: r,
|
|
@@ -1833,7 +1833,7 @@ function hs({
|
|
|
1833
1833
|
}
|
|
1834
1834
|
return /* @__PURE__ */ e("div", { "data-brand-scope": !0, className: l("contents", t), style: i, ...o, children: r });
|
|
1835
1835
|
}
|
|
1836
|
-
const
|
|
1836
|
+
const xs = {
|
|
1837
1837
|
default: {},
|
|
1838
1838
|
/** Cool indigo accent, slightly rounder corners. */
|
|
1839
1839
|
edgelog: {
|
|
@@ -1860,7 +1860,7 @@ const ps = {
|
|
|
1860
1860
|
"color-accent-800": "oklch(0.39 0.12 155)",
|
|
1861
1861
|
"color-accent-soft": "oklch(0.95 0.04 155)"
|
|
1862
1862
|
}
|
|
1863
|
-
}, ca = D.Root,
|
|
1863
|
+
}, ca = D.Root, vs = D.Trigger, ua = D.Portal, ma = D.Close, xr = m(function({ className: t, ...r }, n) {
|
|
1864
1864
|
return /* @__PURE__ */ e(
|
|
1865
1865
|
D.Overlay,
|
|
1866
1866
|
{
|
|
@@ -2037,8 +2037,8 @@ const ga = {
|
|
|
2037
2037
|
);
|
|
2038
2038
|
});
|
|
2039
2039
|
ha.displayName = "ErrorState";
|
|
2040
|
-
const
|
|
2041
|
-
function
|
|
2040
|
+
const Ns = mn, Cr = Oe(null);
|
|
2041
|
+
function ys(a) {
|
|
2042
2042
|
return /* @__PURE__ */ e(Cr.Provider, { value: { name: a.name }, children: /* @__PURE__ */ e(fn, { ...a }) });
|
|
2043
2043
|
}
|
|
2044
2044
|
const Sr = Oe(null);
|
|
@@ -2158,7 +2158,7 @@ const ya = m(function({
|
|
|
2158
2158
|
disabled: b,
|
|
2159
2159
|
className: g
|
|
2160
2160
|
}, p) {
|
|
2161
|
-
const x = re(), N = x, v = `${x}-helper`, T = `${x}-error`, [F, M] = w(!1), [z, y] = w(""), k = lt(null),
|
|
2161
|
+
const x = re(), N = x, v = `${x}-helper`, T = `${x}-error`, [F, M] = w(!1), [z, y] = w(""), k = lt(null), E = xe(
|
|
2162
2162
|
() => t.filter((C) => r.includes(C.value)),
|
|
2163
2163
|
[t, r]
|
|
2164
2164
|
), K = ee(
|
|
@@ -2168,7 +2168,7 @@ const ya = m(function({
|
|
|
2168
2168
|
[r, n]
|
|
2169
2169
|
), q = ee(() => n([]), [n]), le = (C) => {
|
|
2170
2170
|
C.key === "Backspace" && z === "" && r.length > 0 && n(r.slice(0, -1));
|
|
2171
|
-
}, _ =
|
|
2171
|
+
}, _ = E.slice(0, c), H = E.length - _.length, ne = !!d;
|
|
2172
2172
|
return /* @__PURE__ */ s("div", { ref: p, className: l("flex flex-col gap-1.5", g), children: [
|
|
2173
2173
|
o && /* @__PURE__ */ e("label", { htmlFor: N, className: "text-sm font-medium text-foreground", children: o }),
|
|
2174
2174
|
/* @__PURE__ */ s(A.Root, { open: F, onOpenChange: M, children: [
|
|
@@ -2220,9 +2220,9 @@ const ya = m(function({
|
|
|
2220
2220
|
},
|
|
2221
2221
|
C.value
|
|
2222
2222
|
)),
|
|
2223
|
-
|
|
2223
|
+
H > 0 && /* @__PURE__ */ s("span", { className: "shrink-0 rounded-md bg-background-muted px-1.5 py-0.5 text-xs font-medium text-foreground-muted", children: [
|
|
2224
2224
|
"+",
|
|
2225
|
-
|
|
2225
|
+
H
|
|
2226
2226
|
] }),
|
|
2227
2227
|
/* @__PURE__ */ e(
|
|
2228
2228
|
"input",
|
|
@@ -2232,12 +2232,12 @@ const ya = m(function({
|
|
|
2232
2232
|
onChange: (C) => y(C.target.value),
|
|
2233
2233
|
onFocus: () => M(!0),
|
|
2234
2234
|
className: "flex-1 min-w-[8ch] bg-transparent text-sm outline-none placeholder:text-foreground-subtle",
|
|
2235
|
-
placeholder: (
|
|
2235
|
+
placeholder: (E.length === 0, ""),
|
|
2236
2236
|
disabled: b
|
|
2237
2237
|
}
|
|
2238
2238
|
),
|
|
2239
2239
|
/* @__PURE__ */ s("span", { className: "ml-auto flex items-center gap-1", children: [
|
|
2240
|
-
h &&
|
|
2240
|
+
h && E.length > 0 && /* @__PURE__ */ e(
|
|
2241
2241
|
"button",
|
|
2242
2242
|
{
|
|
2243
2243
|
type: "button",
|
|
@@ -2249,7 +2249,7 @@ const ya = m(function({
|
|
|
2249
2249
|
children: /* @__PURE__ */ e(X, { className: "size-4", "aria-hidden": !0 })
|
|
2250
2250
|
}
|
|
2251
2251
|
),
|
|
2252
|
-
/* @__PURE__ */ e(
|
|
2252
|
+
/* @__PURE__ */ e(He, { className: "size-4 text-foreground-subtle", "aria-hidden": !0 })
|
|
2253
2253
|
] })
|
|
2254
2254
|
]
|
|
2255
2255
|
}
|
|
@@ -2315,7 +2315,7 @@ const ya = m(function({
|
|
|
2315
2315
|
] });
|
|
2316
2316
|
});
|
|
2317
2317
|
ya.displayName = "MultiSelect";
|
|
2318
|
-
const Tr = O.Root,
|
|
2318
|
+
const Tr = O.Root, ws = O.Value, Ct = m(function({ className: t, placeholder: r, size: n = "md", tone: o = "default", ...i }, d) {
|
|
2319
2319
|
return /* @__PURE__ */ s(
|
|
2320
2320
|
O.Trigger,
|
|
2321
2321
|
{
|
|
@@ -2336,7 +2336,7 @@ const Tr = O.Root, Ns = O.Value, Ct = m(function({ className: t, placeholder: r,
|
|
|
2336
2336
|
...i,
|
|
2337
2337
|
children: [
|
|
2338
2338
|
/* @__PURE__ */ e(O.Value, { placeholder: r }),
|
|
2339
|
-
/* @__PURE__ */ e(O.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2339
|
+
/* @__PURE__ */ e(O.Icon, { asChild: !0, children: /* @__PURE__ */ e(He, { className: "size-4 text-foreground-subtle shrink-0", "aria-hidden": !0 }) })
|
|
2340
2340
|
]
|
|
2341
2341
|
}
|
|
2342
2342
|
);
|
|
@@ -2552,7 +2552,7 @@ const Ae = l(
|
|
|
2552
2552
|
"hover:bg-background-muted hover:text-foreground",
|
|
2553
2553
|
"disabled:opacity-50 disabled:pointer-events-none",
|
|
2554
2554
|
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
2555
|
-
),
|
|
2555
|
+
), ks = A.Root, Cs = A.Trigger, Ss = A.Anchor, zs = A.Close, Sa = m(function({ className: t, align: r = "center", sideOffset: n = 4, ...o }, i) {
|
|
2556
2556
|
return /* @__PURE__ */ e(A.Portal, { children: /* @__PURE__ */ e(
|
|
2557
2557
|
A.Content,
|
|
2558
2558
|
{
|
|
@@ -2683,7 +2683,7 @@ const Ar = m(function({ className: t, orientation: r = "vertical", ...n }, o) {
|
|
|
2683
2683
|
);
|
|
2684
2684
|
});
|
|
2685
2685
|
Ar.displayName = "RadioGroup";
|
|
2686
|
-
const
|
|
2686
|
+
const je = m(function({ className: t, label: r, description: n, hideLabel: o, id: i, disabled: d, ...u }, f) {
|
|
2687
2687
|
const c = re(), h = i ?? c, b = n ? `${h}-desc` : void 0;
|
|
2688
2688
|
return /* @__PURE__ */ s("div", { className: l("flex items-start gap-2.5", t), children: [
|
|
2689
2689
|
/* @__PURE__ */ e(
|
|
@@ -2721,7 +2721,7 @@ const Ee = m(function({ className: t, label: r, description: n, hideLabel: o, id
|
|
|
2721
2721
|
] })
|
|
2722
2722
|
] });
|
|
2723
2723
|
});
|
|
2724
|
-
|
|
2724
|
+
je.displayName = "RadioItem";
|
|
2725
2725
|
const Pa = m(function({ className: t, children: r, ...n }, o) {
|
|
2726
2726
|
return /* @__PURE__ */ s(
|
|
2727
2727
|
Se.Root,
|
|
@@ -2773,7 +2773,7 @@ const be = m(function({ className: t, orientation: r = "horizontal", decorative:
|
|
|
2773
2773
|
);
|
|
2774
2774
|
});
|
|
2775
2775
|
be.displayName = "Separator";
|
|
2776
|
-
const _a = D.Root, Aa = D.Trigger,
|
|
2776
|
+
const _a = D.Root, Aa = D.Trigger, Ts = D.Close, Fa = D.Portal, Lr = m(function({ className: t, ...r }, n) {
|
|
2777
2777
|
return /* @__PURE__ */ e(
|
|
2778
2778
|
D.Overlay,
|
|
2779
2779
|
{
|
|
@@ -2807,7 +2807,7 @@ const La = Y(
|
|
|
2807
2807
|
},
|
|
2808
2808
|
defaultVariants: { side: "right" }
|
|
2809
2809
|
}
|
|
2810
|
-
),
|
|
2810
|
+
), Er = m(function({ className: t, children: r, side: n = "right", showClose: o = !0, ...i }, d) {
|
|
2811
2811
|
return /* @__PURE__ */ s(Fa, { children: [
|
|
2812
2812
|
/* @__PURE__ */ e(Lr, {}),
|
|
2813
2813
|
/* @__PURE__ */ s(D.Content, { ref: d, className: l(La({ side: n }), t), ...i, children: [
|
|
@@ -2828,12 +2828,12 @@ const La = Y(
|
|
|
2828
2828
|
] })
|
|
2829
2829
|
] });
|
|
2830
2830
|
});
|
|
2831
|
-
|
|
2832
|
-
function
|
|
2831
|
+
Er.displayName = "SheetContent";
|
|
2832
|
+
function Ea({ className: a, ...t }) {
|
|
2833
2833
|
return /* @__PURE__ */ e("div", { className: l("flex flex-col gap-1", a), ...t });
|
|
2834
2834
|
}
|
|
2835
|
-
|
|
2836
|
-
function
|
|
2835
|
+
Ea.displayName = "SheetHeader";
|
|
2836
|
+
function ja({ className: a, ...t }) {
|
|
2837
2837
|
return /* @__PURE__ */ e(
|
|
2838
2838
|
"div",
|
|
2839
2839
|
{
|
|
@@ -2842,7 +2842,7 @@ function Ea({ className: a, ...t }) {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
);
|
|
2844
2844
|
}
|
|
2845
|
-
|
|
2845
|
+
ja.displayName = "SheetFooter";
|
|
2846
2846
|
const $a = m(function({ className: t, ...r }, n) {
|
|
2847
2847
|
return /* @__PURE__ */ e(
|
|
2848
2848
|
D.Title,
|
|
@@ -2866,10 +2866,10 @@ const Oa = m(function({ className: t, ...r }, n) {
|
|
|
2866
2866
|
});
|
|
2867
2867
|
Oa.displayName = "SheetDescription";
|
|
2868
2868
|
const De = Oe({ collapsed: !1 });
|
|
2869
|
-
function
|
|
2869
|
+
function Is() {
|
|
2870
2870
|
return ge(De);
|
|
2871
2871
|
}
|
|
2872
|
-
const
|
|
2872
|
+
const jr = m(function({
|
|
2873
2873
|
defaultCollapsed: t = !1,
|
|
2874
2874
|
collapsed: r,
|
|
2875
2875
|
onCollapsedChange: n,
|
|
@@ -2930,7 +2930,7 @@ const Er = m(function({
|
|
|
2930
2930
|
}
|
|
2931
2931
|
) });
|
|
2932
2932
|
});
|
|
2933
|
-
|
|
2933
|
+
jr.displayName = "Sidebar";
|
|
2934
2934
|
function $r({ label: a, className: t, children: r, ...n }) {
|
|
2935
2935
|
const { collapsed: o } = ge(De);
|
|
2936
2936
|
return /* @__PURE__ */ s("div", { className: l("mb-3", t), ...n, children: [
|
|
@@ -3046,11 +3046,11 @@ const Ba = m(
|
|
|
3046
3046
|
}
|
|
3047
3047
|
);
|
|
3048
3048
|
Ba.displayName = "Slider";
|
|
3049
|
-
const Va = { sm: "size-3.5", md: "size-4", lg: "size-6" },
|
|
3049
|
+
const Va = { sm: "size-3.5", md: "size-4", lg: "size-6" }, Ha = {
|
|
3050
3050
|
accent: "text-accent",
|
|
3051
3051
|
neutral: "text-foreground-subtle",
|
|
3052
3052
|
"on-accent": "text-on-accent"
|
|
3053
|
-
},
|
|
3053
|
+
}, Ga = m(function({ className: t, tone: r = "accent", size: n = "md", label: o, decorative: i, ...d }, u) {
|
|
3054
3054
|
return /* @__PURE__ */ s(
|
|
3055
3055
|
"svg",
|
|
3056
3056
|
{
|
|
@@ -3059,7 +3059,7 @@ const Va = { sm: "size-3.5", md: "size-4", lg: "size-6" }, Ga = {
|
|
|
3059
3059
|
role: i ? void 0 : "status",
|
|
3060
3060
|
"aria-label": i ? void 0 : o ?? "Loading",
|
|
3061
3061
|
"aria-hidden": i || void 0,
|
|
3062
|
-
className: l("animate-spin", Va[n],
|
|
3062
|
+
className: l("animate-spin", Va[n], Ha[r], t),
|
|
3063
3063
|
...d,
|
|
3064
3064
|
children: [
|
|
3065
3065
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2.5", strokeOpacity: 0.2, fill: "none" }),
|
|
@@ -3077,7 +3077,7 @@ const Va = { sm: "size-3.5", md: "size-4", lg: "size-6" }, Ga = {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
);
|
|
3079
3079
|
});
|
|
3080
|
-
|
|
3080
|
+
Ga.displayName = "Spinner";
|
|
3081
3081
|
const Rr = m(function({ steps: t, current: r, orientation: n = "horizontal", className: o, ...i }, d) {
|
|
3082
3082
|
return /* @__PURE__ */ e(
|
|
3083
3083
|
"ol",
|
|
@@ -3284,7 +3284,7 @@ const Vr = m(function({ className: t, ...r }, n) {
|
|
|
3284
3284
|
);
|
|
3285
3285
|
});
|
|
3286
3286
|
Vr.displayName = "TabsTrigger";
|
|
3287
|
-
const
|
|
3287
|
+
const Hr = m(function({ className: t, ...r }, n) {
|
|
3288
3288
|
return /* @__PURE__ */ e(
|
|
3289
3289
|
Je.Content,
|
|
3290
3290
|
{
|
|
@@ -3298,7 +3298,7 @@ const Gr = m(function({ className: t, ...r }, n) {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
);
|
|
3300
3300
|
});
|
|
3301
|
-
|
|
3301
|
+
Hr.displayName = "TabsContent";
|
|
3302
3302
|
const Qa = m(function({
|
|
3303
3303
|
className: t,
|
|
3304
3304
|
label: r,
|
|
@@ -3368,7 +3368,7 @@ const Qa = m(function({
|
|
|
3368
3368
|
] });
|
|
3369
3369
|
});
|
|
3370
3370
|
Qa.displayName = "Textarea";
|
|
3371
|
-
const
|
|
3371
|
+
const Ms = he.Provider, Xa = m(function({ className: t, ...r }, n) {
|
|
3372
3372
|
return /* @__PURE__ */ e(
|
|
3373
3373
|
he.Viewport,
|
|
3374
3374
|
{
|
|
@@ -3478,7 +3478,7 @@ const no = m(function({ className: t, ...r }, n) {
|
|
|
3478
3478
|
);
|
|
3479
3479
|
});
|
|
3480
3480
|
no.displayName = "ToastClose";
|
|
3481
|
-
const
|
|
3481
|
+
const Ds = ({
|
|
3482
3482
|
delayDuration: a = 500,
|
|
3483
3483
|
skipDelayDuration: t = 200,
|
|
3484
3484
|
...r
|
|
@@ -3489,7 +3489,7 @@ const Is = ({
|
|
|
3489
3489
|
skipDelayDuration: t,
|
|
3490
3490
|
...r
|
|
3491
3491
|
}
|
|
3492
|
-
), ao = Ie.Root, oo = Ie.Trigger,
|
|
3492
|
+
), ao = Ie.Root, oo = Ie.Trigger, Gr = m(function({ className: t, sideOffset: r = 4, ...n }, o) {
|
|
3493
3493
|
return /* @__PURE__ */ e(Ie.Portal, { children: /* @__PURE__ */ e(
|
|
3494
3494
|
Ie.Content,
|
|
3495
3495
|
{
|
|
@@ -3509,7 +3509,7 @@ const Is = ({
|
|
|
3509
3509
|
}
|
|
3510
3510
|
) });
|
|
3511
3511
|
});
|
|
3512
|
-
|
|
3512
|
+
Gr.displayName = "TooltipContent";
|
|
3513
3513
|
function so({
|
|
3514
3514
|
children: a,
|
|
3515
3515
|
label: t,
|
|
@@ -3520,7 +3520,7 @@ function so({
|
|
|
3520
3520
|
}) {
|
|
3521
3521
|
return o ? /* @__PURE__ */ e(te, { children: a }) : /* @__PURE__ */ s(ao, { delayDuration: i, children: [
|
|
3522
3522
|
/* @__PURE__ */ e(oo, { asChild: !0, children: a }),
|
|
3523
|
-
/* @__PURE__ */ e(
|
|
3523
|
+
/* @__PURE__ */ e(Gr, { side: r, align: n, children: t })
|
|
3524
3524
|
] });
|
|
3525
3525
|
}
|
|
3526
3526
|
so.displayName = "Tooltip";
|
|
@@ -3574,7 +3574,7 @@ function at() {
|
|
|
3574
3574
|
if (!a) throw new Error("Carousel components must be used inside <Carousel>");
|
|
3575
3575
|
return a;
|
|
3576
3576
|
}
|
|
3577
|
-
const
|
|
3577
|
+
const Ps = m(function({ opts: t, orientation: r = "horizontal", setApi: n, className: o, children: i, ...d }, u) {
|
|
3578
3578
|
const [f, c] = pn({ ...t, axis: r === "horizontal" ? "x" : "y" }), [h, b] = w(!1), [g, p] = w(!1), x = ee((N) => {
|
|
3579
3579
|
N && (b(N.canScrollPrev()), p(N.canScrollNext()));
|
|
3580
3580
|
}, []);
|
|
@@ -3598,7 +3598,7 @@ const Ms = m(function({ opts: t, orientation: r = "horizontal", setApi: n, class
|
|
|
3598
3598
|
children: /* @__PURE__ */ e("div", { ref: u, className: l("relative", o), role: "region", "aria-roledescription": "carousel", ...d, children: i })
|
|
3599
3599
|
}
|
|
3600
3600
|
);
|
|
3601
|
-
}),
|
|
3601
|
+
}), _s = m(
|
|
3602
3602
|
function({ className: t, ...r }, n) {
|
|
3603
3603
|
const { carouselRef: o, orientation: i } = at();
|
|
3604
3604
|
return /* @__PURE__ */ e("div", { ref: o, className: "overflow-hidden", children: /* @__PURE__ */ e(
|
|
@@ -3614,7 +3614,7 @@ const Ms = m(function({ opts: t, orientation: r = "horizontal", setApi: n, class
|
|
|
3614
3614
|
}
|
|
3615
3615
|
) });
|
|
3616
3616
|
}
|
|
3617
|
-
),
|
|
3617
|
+
), As = m(
|
|
3618
3618
|
function({ className: t, ...r }, n) {
|
|
3619
3619
|
const { orientation: o } = at();
|
|
3620
3620
|
return /* @__PURE__ */ e(
|
|
@@ -3633,7 +3633,7 @@ const Ms = m(function({ opts: t, orientation: r = "horizontal", setApi: n, class
|
|
|
3633
3633
|
);
|
|
3634
3634
|
}
|
|
3635
3635
|
);
|
|
3636
|
-
function
|
|
3636
|
+
function Fs({ className: a }) {
|
|
3637
3637
|
const { canPrev: t, scrollPrev: r, orientation: n } = at();
|
|
3638
3638
|
return /* @__PURE__ */ e(
|
|
3639
3639
|
Me,
|
|
@@ -3651,7 +3651,7 @@ function _s({ className: a }) {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
);
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3654
|
+
function Ls({ className: a }) {
|
|
3655
3655
|
const { canNext: t, scrollNext: r, orientation: n } = at();
|
|
3656
3656
|
return /* @__PURE__ */ e(
|
|
3657
3657
|
Me,
|
|
@@ -3673,7 +3673,7 @@ function Wr(a, t, r, n = 8) {
|
|
|
3673
3673
|
const o = a.map((g) => g.y), i = Math.min(0, ...o), d = Math.max(...o, 1), u = d - i || 1, f = t - n * 2, c = r - n * 2;
|
|
3674
3674
|
return { sx: (g) => a.length <= 1 ? n + f / 2 : n + g / (a.length - 1) * f, sy: (g) => n + c - (g - i) / u * c, min: i, max: d };
|
|
3675
3675
|
}
|
|
3676
|
-
function
|
|
3676
|
+
function co({ data: a, height: t = 80, width: r = "100%", caption: n, className: o }) {
|
|
3677
3677
|
const i = typeof r == "number" ? r : 320, { sx: d, sy: u } = Wr(a, i, t), f = a.map((c, h) => `${h === 0 ? "M" : "L"}${d(h).toFixed(1)},${u(c.y).toFixed(1)}`).join(" ");
|
|
3678
3678
|
return /* @__PURE__ */ s("figure", { className: l("flex flex-col gap-1.5", o), children: [
|
|
3679
3679
|
n && /* @__PURE__ */ e("figcaption", { className: "text-xs text-foreground-muted", children: n }),
|
|
@@ -3683,7 +3683,7 @@ function Fs({ data: a, height: t = 80, width: r = "100%", caption: n, className:
|
|
|
3683
3683
|
] })
|
|
3684
3684
|
] });
|
|
3685
3685
|
}
|
|
3686
|
-
function
|
|
3686
|
+
function Es({ data: a, height: t = 80, width: r = "100%", caption: n, className: o }) {
|
|
3687
3687
|
const i = typeof r == "number" ? r : 320, { sx: d, sy: u } = Wr(a, i, t), f = a.map((h, b) => `${b === 0 ? "M" : "L"}${d(b).toFixed(1)},${u(h.y).toFixed(1)}`).join(" "), c = `${f} L${d(a.length - 1).toFixed(1)},${t} L${d(0).toFixed(1)},${t} Z`;
|
|
3688
3688
|
return /* @__PURE__ */ s("figure", { className: l("flex flex-col gap-1.5", o), children: [
|
|
3689
3689
|
n && /* @__PURE__ */ e("figcaption", { className: "text-xs text-foreground-muted", children: n }),
|
|
@@ -3715,12 +3715,12 @@ function js({ data: a, height: t = 100, width: r = "100%", caption: n, className
|
|
|
3715
3715
|
}) })
|
|
3716
3716
|
] });
|
|
3717
3717
|
}
|
|
3718
|
-
const
|
|
3718
|
+
const uo = ({
|
|
3719
3719
|
shouldScaleBackground: a = !0,
|
|
3720
3720
|
...t
|
|
3721
3721
|
}) => /* @__PURE__ */ e(ce.Root, { shouldScaleBackground: a, ...t });
|
|
3722
|
-
|
|
3723
|
-
const
|
|
3722
|
+
uo.displayName = "Drawer";
|
|
3723
|
+
const $s = ce.Trigger, mo = ce.Portal, Os = ce.Close, fo = m(function({ className: t, ...r }, n) {
|
|
3724
3724
|
return /* @__PURE__ */ e(
|
|
3725
3725
|
ce.Overlay,
|
|
3726
3726
|
{
|
|
@@ -3729,46 +3729,46 @@ const Es = ce.Trigger, uo = ce.Portal, $s = ce.Close, mo = m(function({ classNam
|
|
|
3729
3729
|
...r
|
|
3730
3730
|
}
|
|
3731
3731
|
);
|
|
3732
|
-
}),
|
|
3732
|
+
}), go = {
|
|
3733
3733
|
bottom: "inset-x-0 bottom-0 mt-24 flex h-auto max-h-[90vh] flex-col rounded-t-xl border-t border-border",
|
|
3734
3734
|
top: "inset-x-0 top-0 mb-24 flex h-auto max-h-[90vh] flex-col rounded-b-xl border-b border-border",
|
|
3735
3735
|
left: "inset-y-0 left-0 flex h-full w-[420px] max-w-[90vw] flex-col rounded-r-xl border-r border-border",
|
|
3736
3736
|
right: "inset-y-0 right-0 flex h-full w-[420px] max-w-[90vw] flex-col rounded-l-xl border-l border-border"
|
|
3737
|
-
},
|
|
3737
|
+
}, ho = {
|
|
3738
3738
|
bottom: "mx-auto mt-3 h-1.5 w-12 rounded-full bg-border",
|
|
3739
3739
|
top: "mx-auto mb-3 h-1.5 w-12 rounded-full bg-border order-last",
|
|
3740
3740
|
left: "mx-1.5 my-auto h-12 w-1.5 rounded-full bg-border order-last self-stretch shrink-0",
|
|
3741
3741
|
right: "mx-1.5 my-auto h-12 w-1.5 rounded-full bg-border shrink-0 self-stretch"
|
|
3742
|
-
},
|
|
3742
|
+
}, Rs = m(function({ className: t, direction: r = "bottom", hideHandle: n, children: o, ...i }, d) {
|
|
3743
3743
|
const u = r === "left" || r === "right";
|
|
3744
|
-
return /* @__PURE__ */ s(
|
|
3745
|
-
/* @__PURE__ */ e(
|
|
3744
|
+
return /* @__PURE__ */ s(mo, { children: [
|
|
3745
|
+
/* @__PURE__ */ e(fo, {}),
|
|
3746
3746
|
/* @__PURE__ */ s(
|
|
3747
3747
|
ce.Content,
|
|
3748
3748
|
{
|
|
3749
3749
|
ref: d,
|
|
3750
3750
|
className: l(
|
|
3751
3751
|
"fixed z-50 bg-card",
|
|
3752
|
-
|
|
3752
|
+
go[r],
|
|
3753
3753
|
u && "flex-row",
|
|
3754
3754
|
t
|
|
3755
3755
|
),
|
|
3756
3756
|
...i,
|
|
3757
3757
|
children: [
|
|
3758
|
-
!n && /* @__PURE__ */ e("div", { "aria-hidden": !0, className:
|
|
3758
|
+
!n && /* @__PURE__ */ e("div", { "aria-hidden": !0, className: ho[r] }),
|
|
3759
3759
|
/* @__PURE__ */ e("div", { className: l("min-h-0 min-w-0 flex-1", u && "flex flex-col"), children: o })
|
|
3760
3760
|
]
|
|
3761
3761
|
}
|
|
3762
3762
|
)
|
|
3763
3763
|
] });
|
|
3764
3764
|
});
|
|
3765
|
-
function
|
|
3765
|
+
function Bs({ className: a, ...t }) {
|
|
3766
3766
|
return /* @__PURE__ */ e("div", { className: l("grid gap-1 p-4 text-center sm:text-left", a), ...t });
|
|
3767
3767
|
}
|
|
3768
|
-
function
|
|
3768
|
+
function Vs({ className: a, ...t }) {
|
|
3769
3769
|
return /* @__PURE__ */ e("div", { className: l("mt-auto flex flex-col gap-2 p-4", a), ...t });
|
|
3770
3770
|
}
|
|
3771
|
-
const
|
|
3771
|
+
const Hs = m(function({ className: t, ...r }, n) {
|
|
3772
3772
|
return /* @__PURE__ */ e(
|
|
3773
3773
|
ce.Title,
|
|
3774
3774
|
{
|
|
@@ -3787,10 +3787,10 @@ const Vs = m(function({ className: t, ...r }, n) {
|
|
|
3787
3787
|
}
|
|
3788
3788
|
);
|
|
3789
3789
|
});
|
|
3790
|
-
function
|
|
3790
|
+
function po(a) {
|
|
3791
3791
|
return a < 1024 ? `${a} B` : a < 1024 * 1024 ? `${(a / 1024).toFixed(1)} KB` : `${(a / 1024 / 1024).toFixed(1)} MB`;
|
|
3792
3792
|
}
|
|
3793
|
-
const
|
|
3793
|
+
const Us = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange: i, hint: d, disabled: u, className: f }, c) {
|
|
3794
3794
|
const h = lt(null), b = re(), [g, p] = w([]), [x, N] = w(!1), v = o ?? g, T = ee(
|
|
3795
3795
|
(y) => {
|
|
3796
3796
|
o === void 0 && p(y), i == null || i(y);
|
|
@@ -3799,12 +3799,12 @@ const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3799
3799
|
), F = ee(
|
|
3800
3800
|
(y) => {
|
|
3801
3801
|
const k = Array.from(y).filter(
|
|
3802
|
-
(
|
|
3802
|
+
(E) => !n || E.size <= n
|
|
3803
3803
|
);
|
|
3804
3804
|
T(r ? [...v, ...k] : k.slice(0, 1));
|
|
3805
3805
|
},
|
|
3806
3806
|
[v, n, r, T]
|
|
3807
|
-
), M = (y) => T(v.filter((k,
|
|
3807
|
+
), M = (y) => T(v.filter((k, E) => E !== y)), z = (y) => {
|
|
3808
3808
|
y.preventDefault(), N(!1), !u && F(y.dataTransfer.files);
|
|
3809
3809
|
};
|
|
3810
3810
|
return /* @__PURE__ */ s("div", { ref: c, className: l("flex flex-col gap-3", f), children: [
|
|
@@ -3855,7 +3855,7 @@ const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3855
3855
|
/* @__PURE__ */ e(ar, { className: "size-4 shrink-0 text-foreground-muted", "aria-hidden": !0 }),
|
|
3856
3856
|
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: [
|
|
3857
3857
|
/* @__PURE__ */ e("p", { className: "truncate text-sm", children: y.name }),
|
|
3858
|
-
/* @__PURE__ */ e("p", { className: "text-xs text-foreground-muted", children:
|
|
3858
|
+
/* @__PURE__ */ e("p", { className: "text-xs text-foreground-muted", children: po(y.size) })
|
|
3859
3859
|
] }),
|
|
3860
3860
|
/* @__PURE__ */ e(
|
|
3861
3861
|
"button",
|
|
@@ -3872,7 +3872,7 @@ const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3872
3872
|
`${y.name}-${k}`
|
|
3873
3873
|
)) })
|
|
3874
3874
|
] });
|
|
3875
|
-
}),
|
|
3875
|
+
}), bo = Y(
|
|
3876
3876
|
[
|
|
3877
3877
|
"relative pointer-events-auto w-full max-w-md",
|
|
3878
3878
|
"flex items-start gap-3 rounded-md border bg-card p-3 shadow-md",
|
|
@@ -3890,15 +3890,15 @@ const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3890
3890
|
},
|
|
3891
3891
|
defaultVariants: { variant: "default" }
|
|
3892
3892
|
}
|
|
3893
|
-
),
|
|
3893
|
+
), xo = {
|
|
3894
3894
|
default: null,
|
|
3895
3895
|
info: /* @__PURE__ */ e(Ue, { className: "size-4 shrink-0 mt-0.5 text-info-text", "aria-hidden": !0 }),
|
|
3896
3896
|
success: /* @__PURE__ */ e(Ne, { className: "size-4 shrink-0 mt-0.5 text-success-text", "aria-hidden": !0 }),
|
|
3897
3897
|
warning: /* @__PURE__ */ e(Re, { className: "size-4 shrink-0 mt-0.5 text-warning-text", "aria-hidden": !0 }),
|
|
3898
3898
|
danger: /* @__PURE__ */ e(Ye, { className: "size-4 shrink-0 mt-0.5 text-danger-text", "aria-hidden": !0 })
|
|
3899
|
-
},
|
|
3900
|
-
const h = d === !1 ? null : d ??
|
|
3901
|
-
return /* @__PURE__ */ s("div", { ref: c, role: "status", className: l(
|
|
3899
|
+
}, Ws = m(function({ className: t, variant: r = "default", title: n, action: o, onClose: i, icon: d, children: u, ...f }, c) {
|
|
3900
|
+
const h = d === !1 ? null : d ?? xo[r ?? "default"];
|
|
3901
|
+
return /* @__PURE__ */ s("div", { ref: c, role: "status", className: l(bo({ variant: r }), t), ...f, children: [
|
|
3902
3902
|
h,
|
|
3903
3903
|
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: [
|
|
3904
3904
|
n && /* @__PURE__ */ e("p", { className: "font-medium", children: n }),
|
|
@@ -3916,7 +3916,7 @@ const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3916
3916
|
}
|
|
3917
3917
|
)
|
|
3918
3918
|
] });
|
|
3919
|
-
}),
|
|
3919
|
+
}), Ks = m(function({
|
|
3920
3920
|
value: t,
|
|
3921
3921
|
defaultValue: r = [],
|
|
3922
3922
|
onChange: n,
|
|
@@ -3987,9 +3987,9 @@ const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3987
3987
|
]
|
|
3988
3988
|
}
|
|
3989
3989
|
);
|
|
3990
|
-
}),
|
|
3990
|
+
}), qs = m(function({ className: t, children: r, ...n }, o) {
|
|
3991
3991
|
return /* @__PURE__ */ e("ol", { ref: o, className: l("relative flex flex-col gap-6", t), ...n, children: r });
|
|
3992
|
-
}),
|
|
3992
|
+
}), Qs = m(function({ bullet: t, isLast: r, className: n, children: o, ...i }, d) {
|
|
3993
3993
|
return /* @__PURE__ */ s("li", { ref: d, className: l("relative flex gap-4 pb-1", n), ...i, children: [
|
|
3994
3994
|
/* @__PURE__ */ s("div", { className: "relative flex shrink-0 flex-col items-center", children: [
|
|
3995
3995
|
/* @__PURE__ */ e("div", { className: "flex size-6 items-center justify-center rounded-full border border-border bg-card text-foreground-muted", children: t ?? /* @__PURE__ */ e("span", { className: "size-2 rounded-full bg-accent", "aria-hidden": !0 }) }),
|
|
@@ -3998,28 +3998,28 @@ const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3998
3998
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1 pb-4", children: o })
|
|
3999
3999
|
] });
|
|
4000
4000
|
});
|
|
4001
|
-
function
|
|
4001
|
+
function Xs({ className: a, children: t }) {
|
|
4002
4002
|
return /* @__PURE__ */ e("p", { className: l("text-xs text-foreground-subtle", a), children: t });
|
|
4003
4003
|
}
|
|
4004
|
-
function
|
|
4004
|
+
function Ys({
|
|
4005
4005
|
className: a,
|
|
4006
4006
|
children: t
|
|
4007
4007
|
}) {
|
|
4008
4008
|
return /* @__PURE__ */ e("p", { className: l("text-sm font-medium", a), children: t });
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4010
|
+
function Js({
|
|
4011
4011
|
className: a,
|
|
4012
4012
|
children: t
|
|
4013
4013
|
}) {
|
|
4014
4014
|
return /* @__PURE__ */ e("p", { className: l("mt-0.5 text-sm text-foreground-muted", a), children: t });
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4016
|
+
function Zs({ data: a, defaultExpanded: t = [], selectedId: r, onSelect: n, className: o }) {
|
|
4017
4017
|
const [i, d] = w(new Set(t)), u = (c) => d((h) => {
|
|
4018
4018
|
const b = new Set(h);
|
|
4019
4019
|
return b.has(c) ? b.delete(c) : b.add(c), b;
|
|
4020
4020
|
});
|
|
4021
4021
|
function f(c, h) {
|
|
4022
|
-
const b = !!c.children, g = i.has(c.id), p = r === c.id, x = b ? g ? dn :
|
|
4022
|
+
const b = !!c.children, g = i.has(c.id), p = r === c.id, x = b ? g ? dn : Ge : ar;
|
|
4023
4023
|
return /* @__PURE__ */ s("li", { role: "treeitem", "aria-expanded": b ? g : void 0, children: [
|
|
4024
4024
|
/* @__PURE__ */ s(
|
|
4025
4025
|
"button",
|
|
@@ -4056,7 +4056,7 @@ function Js({ data: a, defaultExpanded: t = [], selectedId: r, onSelect: n, clas
|
|
|
4056
4056
|
}
|
|
4057
4057
|
return /* @__PURE__ */ e("ul", { role: "tree", className: l("flex flex-col gap-0.5", o), children: a.map((c) => f(c, 0)) });
|
|
4058
4058
|
}
|
|
4059
|
-
function
|
|
4059
|
+
function ei({ brand: a, title: t, subtitle: r, children: n, footer: o }) {
|
|
4060
4060
|
return /* @__PURE__ */ e("main", { className: "grid min-h-screen place-items-center bg-background-subtle px-4 py-12", children: /* @__PURE__ */ s("div", { className: "w-full max-w-[400px] space-y-6", children: [
|
|
4061
4061
|
a && /* @__PURE__ */ e("div", { className: "flex justify-center", children: a }),
|
|
4062
4062
|
/* @__PURE__ */ s("div", { className: "space-y-2 text-center", children: [
|
|
@@ -4067,7 +4067,7 @@ function Zs({ brand: a, title: t, subtitle: r, children: n, footer: o }) {
|
|
|
4067
4067
|
o && /* @__PURE__ */ e("p", { className: "text-center text-sm text-foreground-muted", children: o })
|
|
4068
4068
|
] }) });
|
|
4069
4069
|
}
|
|
4070
|
-
function
|
|
4070
|
+
function ti({ onSubmit: a, loading: t, error: r, forgotHref: n = "/forgot" }) {
|
|
4071
4071
|
const [o, i] = w(""), [d, u] = w("");
|
|
4072
4072
|
return /* @__PURE__ */ s("form", { onSubmit: (c) => {
|
|
4073
4073
|
c.preventDefault(), a({ email: o, password: d });
|
|
@@ -4106,7 +4106,7 @@ function ei({ onSubmit: a, loading: t, error: r, forgotHref: n = "/forgot" }) {
|
|
|
4106
4106
|
/* @__PURE__ */ e(I, { type: "submit", loading: t, className: "w-full", trailingIcon: /* @__PURE__ */ e(ze, {}), children: "Sign in" })
|
|
4107
4107
|
] });
|
|
4108
4108
|
}
|
|
4109
|
-
function
|
|
4109
|
+
function ri({ onSubmit: a, loading: t, error: r }) {
|
|
4110
4110
|
const [n, o] = w(""), [i, d] = w(""), [u, f] = w("");
|
|
4111
4111
|
return /* @__PURE__ */ s(
|
|
4112
4112
|
"form",
|
|
@@ -4147,7 +4147,7 @@ function ti({ onSubmit: a, loading: t, error: r }) {
|
|
|
4147
4147
|
}
|
|
4148
4148
|
);
|
|
4149
4149
|
}
|
|
4150
|
-
function
|
|
4150
|
+
function ni({ onSubmit: a, loading: t, error: r }) {
|
|
4151
4151
|
const [n, o] = w("");
|
|
4152
4152
|
return /* @__PURE__ */ s(
|
|
4153
4153
|
"form",
|
|
@@ -4175,7 +4175,7 @@ function ri({ onSubmit: a, loading: t, error: r }) {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
);
|
|
4177
4177
|
}
|
|
4178
|
-
function
|
|
4178
|
+
function ai({ email: a, onResend: t }) {
|
|
4179
4179
|
return /* @__PURE__ */ s("div", { className: "space-y-4 text-center", children: [
|
|
4180
4180
|
/* @__PURE__ */ e("div", { className: "mx-auto inline-flex size-12 items-center justify-center rounded-full bg-success-soft text-success-text", children: /* @__PURE__ */ e(Ne, { className: "size-6", "aria-hidden": !0 }) }),
|
|
4181
4181
|
/* @__PURE__ */ s("p", { className: "text-sm text-foreground-muted", children: [
|
|
@@ -4203,21 +4203,21 @@ function ni({ email: a, onResend: t }) {
|
|
|
4203
4203
|
function ke(a) {
|
|
4204
4204
|
typeof window > "u" || (window.location.hash = a);
|
|
4205
4205
|
}
|
|
4206
|
-
const
|
|
4206
|
+
const vo = [
|
|
4207
4207
|
{
|
|
4208
4208
|
label: "Workspace",
|
|
4209
4209
|
items: [
|
|
4210
4210
|
{ key: "home", label: "Home", icon: /* @__PURE__ */ e(Kt, {}), href: "#dashboard" },
|
|
4211
|
-
{ key: "projects", label: "Projects", icon: /* @__PURE__ */ e(
|
|
4211
|
+
{ key: "projects", label: "Projects", icon: /* @__PURE__ */ e(Ge, {}), href: "#data-table", trailing: /* @__PURE__ */ e(W, { tone: "neutral", children: "12" }) },
|
|
4212
4212
|
{ key: "inbox", label: "Inbox", icon: /* @__PURE__ */ e(qt, {}), href: "#first-run", trailing: /* @__PURE__ */ e(W, { tone: "accent", children: "5" }) },
|
|
4213
4213
|
{ key: "members", label: "Members", icon: /* @__PURE__ */ e(Xe, {}), href: "#record", trailing: /* @__PURE__ */ e(W, { tone: "neutral", children: "3" }) },
|
|
4214
|
-
{ key: "insights", label: "Insights", icon: /* @__PURE__ */ e(
|
|
4214
|
+
{ key: "insights", label: "Insights", icon: /* @__PURE__ */ e(Et, {}), href: "#dashboard" }
|
|
4215
4215
|
]
|
|
4216
4216
|
},
|
|
4217
4217
|
{
|
|
4218
4218
|
label: "Personal",
|
|
4219
4219
|
items: [
|
|
4220
|
-
{ key: "bookmarks", label: "Bookmarks", icon: /* @__PURE__ */ e(
|
|
4220
|
+
{ key: "bookmarks", label: "Bookmarks", icon: /* @__PURE__ */ e(jt, {}), href: "#pricing" },
|
|
4221
4221
|
{ key: "apps", label: "Apps", icon: /* @__PURE__ */ e(Qt, {}), href: "#onboarding" }
|
|
4222
4222
|
]
|
|
4223
4223
|
},
|
|
@@ -4229,18 +4229,18 @@ const xo = [
|
|
|
4229
4229
|
{ key: "help", label: "Help & docs", icon: /* @__PURE__ */ e(ft, {}), href: "#" }
|
|
4230
4230
|
]
|
|
4231
4231
|
}
|
|
4232
|
-
],
|
|
4232
|
+
], No = {
|
|
4233
4233
|
name: "Bay Otgonbayar",
|
|
4234
4234
|
email: "bay@craftzbay.com",
|
|
4235
4235
|
initials: "BO",
|
|
4236
4236
|
status: "online"
|
|
4237
|
-
},
|
|
4237
|
+
}, yo = [
|
|
4238
4238
|
{ id: "n1", who: { name: "Anu B.", initials: "AB" }, action: "mentioned you in", target: "Q2 OKRs", when: "2m", unread: !0 },
|
|
4239
4239
|
{ id: "n2", who: { name: "Bat E.", initials: "BE" }, action: "requested review on", target: "fix/login-flow", when: "18m", unread: !0 },
|
|
4240
4240
|
{ id: "n3", who: { name: "Tuya G.", initials: "TG" }, action: "commented on", target: "feat/segments", when: "1h", unread: !0 },
|
|
4241
4241
|
{ id: "n4", who: { name: "Khulan O.", initials: "KO" }, action: "archived", target: "old-billing-spike", when: "3h" },
|
|
4242
4242
|
{ id: "n5", who: { name: "Sara M.", initials: "SM" }, action: "invited you to", target: "Atlas workspace", when: "Yesterday" }
|
|
4243
|
-
],
|
|
4243
|
+
], wo = [
|
|
4244
4244
|
{ label: "Profile", icon: /* @__PURE__ */ e(pt, { className: "size-4" }), onSelect: () => ke("record") },
|
|
4245
4245
|
{ label: "Account settings", icon: /* @__PURE__ */ e(qe, { className: "size-4" }), onSelect: () => ke("settings") },
|
|
4246
4246
|
{
|
|
@@ -4252,25 +4252,25 @@ const xo = [
|
|
|
4252
4252
|
{ label: "Help & support", icon: /* @__PURE__ */ e(ft, { className: "size-4" }), onSelect: () => ke("first-run"), separatorAbove: !0 },
|
|
4253
4253
|
{ label: "Sign out", icon: /* @__PURE__ */ e(Yt, { className: "size-4" }), onSelect: () => ke("auth-signin"), separatorAbove: !0 }
|
|
4254
4254
|
];
|
|
4255
|
-
function
|
|
4255
|
+
function oi({
|
|
4256
4256
|
children: a,
|
|
4257
4257
|
brand: t,
|
|
4258
4258
|
active: r = "home",
|
|
4259
|
-
navSections: n =
|
|
4259
|
+
navSections: n = vo,
|
|
4260
4260
|
sidebar: o,
|
|
4261
4261
|
topbarActions: i,
|
|
4262
4262
|
search: d,
|
|
4263
|
-
user: u =
|
|
4264
|
-
profileMenu: f =
|
|
4265
|
-
notifications: c =
|
|
4263
|
+
user: u = No,
|
|
4264
|
+
profileMenu: f = wo,
|
|
4265
|
+
notifications: c = yo,
|
|
4266
4266
|
onMarkAllNotificationsRead: h,
|
|
4267
4267
|
onViewAllNotifications: b
|
|
4268
4268
|
}) {
|
|
4269
4269
|
return /* @__PURE__ */ s("div", { className: "flex min-h-screen w-full bg-background", children: [
|
|
4270
|
-
/* @__PURE__ */ e(
|
|
4270
|
+
/* @__PURE__ */ e(jr, { defaultCollapsed: !1, header: t, footer: /* @__PURE__ */ e(qr, { user: u }), children: o ?? /* @__PURE__ */ e(Kr, { sections: n, active: r }) }),
|
|
4271
4271
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4272
4272
|
/* @__PURE__ */ e(
|
|
4273
|
-
|
|
4273
|
+
ko,
|
|
4274
4274
|
{
|
|
4275
4275
|
brand: t,
|
|
4276
4276
|
active: r,
|
|
@@ -4306,7 +4306,7 @@ function Kr({
|
|
|
4306
4306
|
o.key
|
|
4307
4307
|
)) }, n)) });
|
|
4308
4308
|
}
|
|
4309
|
-
function
|
|
4309
|
+
function ko({
|
|
4310
4310
|
brand: a,
|
|
4311
4311
|
active: t,
|
|
4312
4312
|
navSections: r,
|
|
@@ -4334,7 +4334,7 @@ function wo({
|
|
|
4334
4334
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 md:hidden", children: [
|
|
4335
4335
|
/* @__PURE__ */ s(_a, { open: b, onOpenChange: g, children: [
|
|
4336
4336
|
/* @__PURE__ */ e(Aa, { asChild: !0, children: /* @__PURE__ */ e(Me, { "aria-label": "Open menu", icon: /* @__PURE__ */ e(Zt, {}), variant: "ghost", size: "sm" }) }),
|
|
4337
|
-
/* @__PURE__ */ s(
|
|
4337
|
+
/* @__PURE__ */ s(Er, { side: "left", className: "w-64 p-0", children: [
|
|
4338
4338
|
/* @__PURE__ */ e("div", { className: "flex h-14 shrink-0 items-center border-b border-border px-3", children: a }),
|
|
4339
4339
|
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto py-3", onClick: () => g(!1), children: n ?? /* @__PURE__ */ e(Kr, { sections: r, active: t }) }),
|
|
4340
4340
|
/* @__PURE__ */ e("div", { className: "border-t border-border p-2", children: /* @__PURE__ */ e(qr, { user: o }) })
|
|
@@ -4346,18 +4346,18 @@ function wo({
|
|
|
4346
4346
|
/* @__PURE__ */ s("div", { className: "ml-auto flex items-center gap-1", children: [
|
|
4347
4347
|
d,
|
|
4348
4348
|
u.length > 0 && /* @__PURE__ */ e(
|
|
4349
|
-
|
|
4349
|
+
Co,
|
|
4350
4350
|
{
|
|
4351
4351
|
notifications: u,
|
|
4352
4352
|
onMarkAllRead: c,
|
|
4353
4353
|
onViewAll: h
|
|
4354
4354
|
}
|
|
4355
4355
|
),
|
|
4356
|
-
/* @__PURE__ */ e(
|
|
4356
|
+
/* @__PURE__ */ e(So, { user: o, items: f })
|
|
4357
4357
|
] })
|
|
4358
4358
|
] });
|
|
4359
4359
|
}
|
|
4360
|
-
function
|
|
4360
|
+
function Co({
|
|
4361
4361
|
notifications: a,
|
|
4362
4362
|
onMarkAllRead: t,
|
|
4363
4363
|
onViewAll: r
|
|
@@ -4443,7 +4443,7 @@ function ko({
|
|
|
4443
4443
|
] })
|
|
4444
4444
|
] });
|
|
4445
4445
|
}
|
|
4446
|
-
function
|
|
4446
|
+
function So({
|
|
4447
4447
|
user: a,
|
|
4448
4448
|
items: t
|
|
4449
4449
|
}) {
|
|
@@ -4483,26 +4483,29 @@ function qr({ user: a }) {
|
|
|
4483
4483
|
] })
|
|
4484
4484
|
] });
|
|
4485
4485
|
}
|
|
4486
|
-
const
|
|
4486
|
+
const zo = Array.from({ length: 30 }, (a, t) => {
|
|
4487
|
+
const r = 2200 + t * 22, n = Math.sin(t / 3.5) * 180, o = (Math.sin(t * 7.3) + Math.cos(t * 3.1)) * 60;
|
|
4488
|
+
return { x: t, y: Math.round(r + n + o) };
|
|
4489
|
+
}), To = [
|
|
4487
4490
|
{ label: "Active users", value: "2,840", delta: { value: "+12%", positive: !0 } },
|
|
4488
4491
|
{ label: "Sessions today", value: "8,402", delta: { value: "+4%", positive: !0 } },
|
|
4489
4492
|
{ label: "Open issues", value: "14", delta: { value: "−6%", positive: !0 } },
|
|
4490
4493
|
{ label: "Error rate", value: "0.32%", delta: { value: "+0.05%", positive: !1 } }
|
|
4491
|
-
],
|
|
4494
|
+
], Io = [
|
|
4492
4495
|
{ id: "1", who: { name: "Anu B.", initials: "AB" }, action: "merged", target: "feat/segments", when: "12m ago" },
|
|
4493
4496
|
{ id: "2", who: { name: "Bat E.", initials: "BE" }, action: "opened", target: "fix/login-flow", when: "34m ago" },
|
|
4494
4497
|
{ id: "3", who: { name: "Tuya G.", initials: "TG" }, action: "commented on", target: "Q2 OKRs", when: "1h ago" },
|
|
4495
4498
|
{ id: "4", who: { name: "Khulan O.", initials: "KO" }, action: "archived", target: "old-billing-spike", when: "3h ago" }
|
|
4496
4499
|
];
|
|
4497
|
-
function
|
|
4500
|
+
function si({
|
|
4498
4501
|
title: a = "Overview",
|
|
4499
4502
|
subtitle: t = "What's happening across your workspace today.",
|
|
4500
4503
|
headerActions: r = /* @__PURE__ */ e(W, { tone: "neutral", variant: "outline", children: "Last 7 days" }),
|
|
4501
|
-
stats: n =
|
|
4504
|
+
stats: n = To,
|
|
4502
4505
|
chart: o,
|
|
4503
4506
|
chartTitle: i = "Active users",
|
|
4504
4507
|
chartDescription: d = "Distinct sessions per day, last 30 days.",
|
|
4505
|
-
activity: u =
|
|
4508
|
+
activity: u = Io,
|
|
4506
4509
|
activityTitle: f = "Recent activity"
|
|
4507
4510
|
} = {}) {
|
|
4508
4511
|
return /* @__PURE__ */ s("div", { className: "space-y-8", children: [
|
|
@@ -4514,7 +4517,7 @@ function oi({
|
|
|
4514
4517
|
r && /* @__PURE__ */ e("div", { className: "hidden items-center gap-2 md:flex", children: r })
|
|
4515
4518
|
] }),
|
|
4516
4519
|
n.length > 0 && /* @__PURE__ */ e("section", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4", children: n.map((c, h) => /* @__PURE__ */ s(V, { children: [
|
|
4517
|
-
/* @__PURE__ */ e(
|
|
4520
|
+
/* @__PURE__ */ e(G, { className: "pb-2", children: /* @__PURE__ */ e(oe, { children: c.label }) }),
|
|
4518
4521
|
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ s("div", { className: "flex items-baseline gap-2", children: [
|
|
4519
4522
|
/* @__PURE__ */ e("span", { className: "tabular text-2xl font-semibold text-foreground", children: c.value }),
|
|
4520
4523
|
c.delta && /* @__PURE__ */ e(
|
|
@@ -4527,21 +4530,14 @@ function oi({
|
|
|
4527
4530
|
] }) })
|
|
4528
4531
|
] }, h)) }),
|
|
4529
4532
|
(o !== void 0 || i) && /* @__PURE__ */ s(V, { children: [
|
|
4530
|
-
/* @__PURE__ */ s(
|
|
4533
|
+
/* @__PURE__ */ s(G, { children: [
|
|
4531
4534
|
i && /* @__PURE__ */ e(Q, { children: i }),
|
|
4532
4535
|
d && /* @__PURE__ */ e(oe, { children: d })
|
|
4533
4536
|
] }),
|
|
4534
|
-
/* @__PURE__ */ e(U, { children: o ?? /* @__PURE__ */ e(
|
|
4535
|
-
"div",
|
|
4536
|
-
{
|
|
4537
|
-
role: "img",
|
|
4538
|
-
"aria-label": "Chart placeholder",
|
|
4539
|
-
className: "h-48 w-full rounded-md border border-dashed border-border bg-background-subtle"
|
|
4540
|
-
}
|
|
4541
|
-
) })
|
|
4537
|
+
/* @__PURE__ */ e(U, { children: o ?? /* @__PURE__ */ e(co, { data: zo, height: 160, className: "w-full" }) })
|
|
4542
4538
|
] }),
|
|
4543
4539
|
u.length > 0 && /* @__PURE__ */ s(V, { padding: "none", children: [
|
|
4544
|
-
/* @__PURE__ */ e(
|
|
4540
|
+
/* @__PURE__ */ e(G, { className: "px-5 pt-5", children: /* @__PURE__ */ e(Q, { children: f }) }),
|
|
4545
4541
|
/* @__PURE__ */ s(Nt, { children: [
|
|
4546
4542
|
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ s(me, { children: [
|
|
4547
4543
|
/* @__PURE__ */ e(fe, { children: "Who" }),
|
|
@@ -4562,13 +4558,13 @@ function oi({
|
|
|
4562
4558
|
] })
|
|
4563
4559
|
] });
|
|
4564
4560
|
}
|
|
4565
|
-
const
|
|
4561
|
+
const Mo = [
|
|
4566
4562
|
{
|
|
4567
4563
|
id: "profile",
|
|
4568
4564
|
label: "Profile",
|
|
4569
4565
|
icon: /* @__PURE__ */ e(pt, {}),
|
|
4570
4566
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4571
|
-
/* @__PURE__ */ s(
|
|
4567
|
+
/* @__PURE__ */ s(G, { children: [
|
|
4572
4568
|
/* @__PURE__ */ e(Q, { children: "Profile" }),
|
|
4573
4569
|
/* @__PURE__ */ e(oe, { children: "Visible to your teammates." })
|
|
4574
4570
|
] }),
|
|
@@ -4595,7 +4591,7 @@ const To = [
|
|
|
4595
4591
|
label: "Security",
|
|
4596
4592
|
icon: /* @__PURE__ */ e(Xt, {}),
|
|
4597
4593
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4598
|
-
/* @__PURE__ */ s(
|
|
4594
|
+
/* @__PURE__ */ s(G, { children: [
|
|
4599
4595
|
/* @__PURE__ */ e(Q, { children: "Security" }),
|
|
4600
4596
|
/* @__PURE__ */ e(oe, { children: "How you sign in and protect your account." })
|
|
4601
4597
|
] }),
|
|
@@ -4619,7 +4615,7 @@ const To = [
|
|
|
4619
4615
|
label: "Notifications",
|
|
4620
4616
|
icon: /* @__PURE__ */ e(dt, {}),
|
|
4621
4617
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4622
|
-
/* @__PURE__ */ s(
|
|
4618
|
+
/* @__PURE__ */ s(G, { children: [
|
|
4623
4619
|
/* @__PURE__ */ e(Q, { children: "Notifications" }),
|
|
4624
4620
|
/* @__PURE__ */ e(oe, { children: "Choose what we email and ping you about." })
|
|
4625
4621
|
] }),
|
|
@@ -4637,7 +4633,7 @@ const To = [
|
|
|
4637
4633
|
label: "Billing",
|
|
4638
4634
|
icon: /* @__PURE__ */ e(Rt, {}),
|
|
4639
4635
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4640
|
-
/* @__PURE__ */ s(
|
|
4636
|
+
/* @__PURE__ */ s(G, { children: [
|
|
4641
4637
|
/* @__PURE__ */ e(Q, { children: "Billing" }),
|
|
4642
4638
|
/* @__PURE__ */ e(oe, { children: "Your plan, invoices, and payment method." })
|
|
4643
4639
|
] }),
|
|
@@ -4658,7 +4654,7 @@ const To = [
|
|
|
4658
4654
|
label: "Team",
|
|
4659
4655
|
icon: /* @__PURE__ */ e(Xe, {}),
|
|
4660
4656
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4661
|
-
/* @__PURE__ */ s(
|
|
4657
|
+
/* @__PURE__ */ s(G, { children: [
|
|
4662
4658
|
/* @__PURE__ */ e(Q, { children: "Team" }),
|
|
4663
4659
|
/* @__PURE__ */ e(oe, { children: "Invite teammates and manage roles." })
|
|
4664
4660
|
] }),
|
|
@@ -4681,10 +4677,10 @@ const To = [
|
|
|
4681
4677
|
] })
|
|
4682
4678
|
}
|
|
4683
4679
|
];
|
|
4684
|
-
function
|
|
4680
|
+
function ii({
|
|
4685
4681
|
title: a = "Settings",
|
|
4686
4682
|
subtitle: t = "Manage your account, preferences, and billing.",
|
|
4687
|
-
sections: r =
|
|
4683
|
+
sections: r = Mo,
|
|
4688
4684
|
defaultSection: n,
|
|
4689
4685
|
activeSection: o,
|
|
4690
4686
|
onActiveSectionChange: i,
|
|
@@ -4723,7 +4719,7 @@ function si({
|
|
|
4723
4719
|
] })
|
|
4724
4720
|
] });
|
|
4725
4721
|
}
|
|
4726
|
-
const
|
|
4722
|
+
const Do = [
|
|
4727
4723
|
{ id: "p1", name: "Pulse onboarding", status: "active", owner: "Anu B.", updatedAt: "2 hours ago" },
|
|
4728
4724
|
{ id: "p2", name: "Q2 OKRs rollout", status: "active", owner: "Bat E.", updatedAt: "Yesterday" },
|
|
4729
4725
|
{ id: "p3", name: "Legacy export", status: "paused", owner: "Tuya G.", updatedAt: "3 days ago" },
|
|
@@ -4733,7 +4729,7 @@ const Io = [
|
|
|
4733
4729
|
active: { tone: "success", label: "Active" },
|
|
4734
4730
|
paused: { tone: "warning", label: "Paused" },
|
|
4735
4731
|
archived: { tone: "neutral", label: "Archived" }
|
|
4736
|
-
},
|
|
4732
|
+
}, Po = [
|
|
4737
4733
|
{
|
|
4738
4734
|
key: "name",
|
|
4739
4735
|
header: "Name",
|
|
@@ -4747,7 +4743,7 @@ const Io = [
|
|
|
4747
4743
|
},
|
|
4748
4744
|
{ key: "owner", header: "Owner" },
|
|
4749
4745
|
{ key: "updatedAt", header: "Updated", align: "right" }
|
|
4750
|
-
],
|
|
4746
|
+
], _o = [
|
|
4751
4747
|
{
|
|
4752
4748
|
key: "status",
|
|
4753
4749
|
label: "Status",
|
|
@@ -4758,19 +4754,19 @@ const Io = [
|
|
|
4758
4754
|
{ value: "archived", label: "Archived" }
|
|
4759
4755
|
]
|
|
4760
4756
|
}
|
|
4761
|
-
],
|
|
4757
|
+
], Ao = /* @__PURE__ */ s(te, { children: [
|
|
4762
4758
|
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(Qe, {}), children: "Import" }),
|
|
4763
4759
|
/* @__PURE__ */ e(I, { leadingIcon: /* @__PURE__ */ e(gt, {}), children: "New project" })
|
|
4764
|
-
] }),
|
|
4760
|
+
] }), Fo = [
|
|
4765
4761
|
{ label: "Export", icon: /* @__PURE__ */ e(Bt, {}), variant: "ghost", onAction: () => {
|
|
4766
4762
|
} },
|
|
4767
4763
|
{ label: "Delete", icon: /* @__PURE__ */ e(ht, {}), variant: "ghost", onAction: () => {
|
|
4768
4764
|
} }
|
|
4769
4765
|
];
|
|
4770
|
-
function
|
|
4766
|
+
function li({
|
|
4771
4767
|
title: a = "Projects",
|
|
4772
4768
|
subtitle: t,
|
|
4773
|
-
headerActions: r =
|
|
4769
|
+
headerActions: r = Ao,
|
|
4774
4770
|
rows: n,
|
|
4775
4771
|
columns: o,
|
|
4776
4772
|
filters: i,
|
|
@@ -4782,12 +4778,12 @@ function ii({
|
|
|
4782
4778
|
emptyState: b,
|
|
4783
4779
|
className: g
|
|
4784
4780
|
} = {}) {
|
|
4785
|
-
const p = n ??
|
|
4781
|
+
const p = n ?? Do, x = o ?? Po, N = i ?? _o, v = h ?? Fo, [T, F] = w(""), [M, z] = w(() => {
|
|
4786
4782
|
var P;
|
|
4787
4783
|
const S = {};
|
|
4788
4784
|
for (const J of N) S[J.key] = J.defaultValue ?? ((P = J.options[0]) == null ? void 0 : P.value) ?? "";
|
|
4789
4785
|
return S;
|
|
4790
|
-
}), [y, k] = w([]), [
|
|
4786
|
+
}), [y, k] = w([]), [E, K] = w(1), [q, le] = w(c), _ = xe(() => {
|
|
4791
4787
|
const S = (P) => {
|
|
4792
4788
|
const J = T.toLowerCase();
|
|
4793
4789
|
if (J && !Object.values(P).some(
|
|
@@ -4802,16 +4798,16 @@ function ii({
|
|
|
4802
4798
|
return p.filter(
|
|
4803
4799
|
(P) => d ? d(P, M, T) : S(P)
|
|
4804
4800
|
);
|
|
4805
|
-
}, [p, T, M, d]),
|
|
4801
|
+
}, [p, T, M, d]), H = _.length > 0 && _.every((S) => y.includes(S.id)), ne = y.length > 0 && !H, C = xe(
|
|
4806
4802
|
() => p.filter((S) => y.includes(S.id)),
|
|
4807
4803
|
[p, y]
|
|
4808
|
-
), ae = Math.max(1, Math.ceil(_.length / q)), we = _.slice((
|
|
4804
|
+
), ae = Math.max(1, Math.ceil(_.length / q)), we = _.slice((E - 1) * q, E * q), j = [
|
|
4809
4805
|
{
|
|
4810
4806
|
key: "__select",
|
|
4811
4807
|
header: /* @__PURE__ */ e(
|
|
4812
4808
|
Le,
|
|
4813
4809
|
{
|
|
4814
|
-
checked:
|
|
4810
|
+
checked: H ? !0 : ne ? "indeterminate" : !1,
|
|
4815
4811
|
onCheckedChange: (S) => k(S ? _.map((P) => P.id) : []),
|
|
4816
4812
|
"aria-label": "Select all rows"
|
|
4817
4813
|
}
|
|
@@ -4858,7 +4854,7 @@ function ii({
|
|
|
4858
4854
|
/* @__PURE__ */ e(
|
|
4859
4855
|
Le,
|
|
4860
4856
|
{
|
|
4861
|
-
checked:
|
|
4857
|
+
checked: H ? !0 : ne ? "indeterminate" : !1,
|
|
4862
4858
|
onCheckedChange: (S) => k(S ? _.map((P) => P.id) : []),
|
|
4863
4859
|
"aria-label": "Select all"
|
|
4864
4860
|
}
|
|
@@ -4893,13 +4889,13 @@ function ii({
|
|
|
4893
4889
|
className: "border-0 bg-transparent"
|
|
4894
4890
|
}
|
|
4895
4891
|
),
|
|
4896
|
-
columns:
|
|
4892
|
+
columns: j
|
|
4897
4893
|
}
|
|
4898
4894
|
),
|
|
4899
4895
|
/* @__PURE__ */ e(
|
|
4900
4896
|
_r,
|
|
4901
4897
|
{
|
|
4902
|
-
page:
|
|
4898
|
+
page: E,
|
|
4903
4899
|
pageCount: ae,
|
|
4904
4900
|
onPageChange: K,
|
|
4905
4901
|
totalItems: _.length,
|
|
@@ -4912,22 +4908,22 @@ function ii({
|
|
|
4912
4908
|
)
|
|
4913
4909
|
] });
|
|
4914
4910
|
}
|
|
4915
|
-
const
|
|
4911
|
+
const Lo = {
|
|
4916
4912
|
title: "Pulse onboarding",
|
|
4917
4913
|
subtitle: "Self-serve onboarding flow for new admins. Owns the first 5 minutes of every workspace.",
|
|
4918
4914
|
status: /* @__PURE__ */ e(W, { tone: "success", dot: !0, children: "Active" }),
|
|
4919
4915
|
actions: /* @__PURE__ */ s(te, { children: [
|
|
4920
4916
|
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(Vt, {}), children: "Edit" }),
|
|
4921
4917
|
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(ht, {}), children: "Archive" }),
|
|
4922
|
-
/* @__PURE__ */ e(I, { trailingIcon: /* @__PURE__ */ e(
|
|
4918
|
+
/* @__PURE__ */ e(I, { trailingIcon: /* @__PURE__ */ e(Ht, {}), children: "Open in app" })
|
|
4923
4919
|
] }),
|
|
4924
4920
|
breadcrumbs: [{ label: "Projects", href: "/projects" }, { label: "Pulse onboarding" }]
|
|
4925
|
-
},
|
|
4921
|
+
}, Eo = [
|
|
4926
4922
|
{
|
|
4927
4923
|
id: "overview",
|
|
4928
4924
|
label: "Overview",
|
|
4929
4925
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4930
|
-
/* @__PURE__ */ e(
|
|
4926
|
+
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(Q, { children: "Summary" }) }),
|
|
4931
4927
|
/* @__PURE__ */ s(U, { className: "space-y-2 leading-relaxed text-foreground-muted", children: [
|
|
4932
4928
|
/* @__PURE__ */ e("p", { children: "The Pulse onboarding flow walks new admins through workspace creation, teammate invites, and first-data import in under five minutes." }),
|
|
4933
4929
|
/* @__PURE__ */ e("p", { children: "Completion rate sits at 71% (week-over-week +4 pts) and median time to finish is 4 m 22 s." })
|
|
@@ -4937,9 +4933,9 @@ const Ao = {
|
|
|
4937
4933
|
{ id: "activity", label: "Activity", render: () => /* @__PURE__ */ e(st, { children: "Activity feed appears here." }) },
|
|
4938
4934
|
{ id: "files", label: "Files", render: () => /* @__PURE__ */ e(st, { children: "Linked documents appear here." }) },
|
|
4939
4935
|
{ id: "settings", label: "Settings", render: () => /* @__PURE__ */ e(st, { children: "Project settings appear here." }) }
|
|
4940
|
-
],
|
|
4936
|
+
], jo = /* @__PURE__ */ s(te, { children: [
|
|
4941
4937
|
/* @__PURE__ */ s(V, { children: [
|
|
4942
|
-
/* @__PURE__ */ e(
|
|
4938
|
+
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(Q, { children: "Details" }) }),
|
|
4943
4939
|
/* @__PURE__ */ s(U, { className: "space-y-3 text-sm", children: [
|
|
4944
4940
|
/* @__PURE__ */ e(Fe, { label: "Owner", value: /* @__PURE__ */ s(te, { children: [
|
|
4945
4941
|
/* @__PURE__ */ e(Z, { size: "xs", fallback: "AB" }),
|
|
@@ -4961,7 +4957,7 @@ const Ao = {
|
|
|
4961
4957
|
] })
|
|
4962
4958
|
] }),
|
|
4963
4959
|
/* @__PURE__ */ s(V, { children: [
|
|
4964
|
-
/* @__PURE__ */ e(
|
|
4960
|
+
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(Q, { children: "Watchers" }) }),
|
|
4965
4961
|
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ s("div", { className: "flex -space-x-2", children: [
|
|
4966
4962
|
/* @__PURE__ */ e(Z, { fallback: "AB" }),
|
|
4967
4963
|
/* @__PURE__ */ e(Z, { fallback: "BE" }),
|
|
@@ -4970,11 +4966,11 @@ const Ao = {
|
|
|
4970
4966
|
] }) })
|
|
4971
4967
|
] })
|
|
4972
4968
|
] });
|
|
4973
|
-
function
|
|
4974
|
-
header: a =
|
|
4975
|
-
tabs: t =
|
|
4969
|
+
function di({
|
|
4970
|
+
header: a = Lo,
|
|
4971
|
+
tabs: t = Eo,
|
|
4976
4972
|
defaultTab: r,
|
|
4977
|
-
sidePanel: n =
|
|
4973
|
+
sidePanel: n = jo,
|
|
4978
4974
|
className: o
|
|
4979
4975
|
} = {}) {
|
|
4980
4976
|
var d;
|
|
@@ -4998,7 +4994,7 @@ function li({
|
|
|
4998
4994
|
children: [
|
|
4999
4995
|
/* @__PURE__ */ e("div", { className: "min-w-0", children: /* @__PURE__ */ s(Ka, { defaultValue: i, children: [
|
|
5000
4996
|
/* @__PURE__ */ e(Br, { children: t.map((u) => /* @__PURE__ */ e(Vr, { value: u.id, children: u.label }, u.id)) }),
|
|
5001
|
-
t.map((u) => /* @__PURE__ */ e(
|
|
4997
|
+
t.map((u) => /* @__PURE__ */ e(Hr, { value: u.id, className: "space-y-4", children: u.render() }, u.id))
|
|
5002
4998
|
] }) }),
|
|
5003
4999
|
n && /* @__PURE__ */ e("aside", { className: "space-y-4", children: n })
|
|
5004
5000
|
]
|
|
@@ -5015,7 +5011,7 @@ function Fe({ label: a, value: t }) {
|
|
|
5015
5011
|
function st({ children: a }) {
|
|
5016
5012
|
return /* @__PURE__ */ e("p", { className: "text-sm text-foreground-muted", children: a });
|
|
5017
5013
|
}
|
|
5018
|
-
const
|
|
5014
|
+
const $o = [
|
|
5019
5015
|
{
|
|
5020
5016
|
id: "workspace",
|
|
5021
5017
|
title: "Workspace",
|
|
@@ -5066,9 +5062,9 @@ const jo = [
|
|
|
5066
5062
|
value: a.role ?? "member",
|
|
5067
5063
|
onValueChange: (r) => t({ role: r }),
|
|
5068
5064
|
children: [
|
|
5069
|
-
/* @__PURE__ */ e(
|
|
5070
|
-
/* @__PURE__ */ e(
|
|
5071
|
-
/* @__PURE__ */ e(
|
|
5065
|
+
/* @__PURE__ */ e(je, { value: "admin", label: "Admin", description: "Can manage workspace and billing." }),
|
|
5066
|
+
/* @__PURE__ */ e(je, { value: "member", label: "Member", description: "Can create and edit projects." }),
|
|
5067
|
+
/* @__PURE__ */ e(je, { value: "viewer", label: "Viewer", description: "Read-only access." })
|
|
5072
5068
|
]
|
|
5073
5069
|
}
|
|
5074
5070
|
)
|
|
@@ -5113,8 +5109,8 @@ const jo = [
|
|
|
5113
5109
|
] })
|
|
5114
5110
|
}
|
|
5115
5111
|
];
|
|
5116
|
-
function
|
|
5117
|
-
steps: a =
|
|
5112
|
+
function ci({
|
|
5113
|
+
steps: a = $o,
|
|
5118
5114
|
initialData: t = {},
|
|
5119
5115
|
onComplete: r,
|
|
5120
5116
|
className: n
|
|
@@ -5125,7 +5121,7 @@ function di({
|
|
|
5125
5121
|
return /* @__PURE__ */ s("div", { className: `mx-auto max-w-2xl space-y-8 py-12 ${n ?? ""}`, children: [
|
|
5126
5122
|
/* @__PURE__ */ e(Rr, { steps: a.map((v) => ({ title: v.title, description: v.description })), current: o }),
|
|
5127
5123
|
/* @__PURE__ */ s(V, { children: [
|
|
5128
|
-
/* @__PURE__ */ s(
|
|
5124
|
+
/* @__PURE__ */ s(G, { children: [
|
|
5129
5125
|
/* @__PURE__ */ e(Q, { children: x.heading }),
|
|
5130
5126
|
x.subheading && /* @__PURE__ */ e(oe, { children: x.subheading })
|
|
5131
5127
|
] }),
|
|
@@ -5153,7 +5149,7 @@ function di({
|
|
|
5153
5149
|
] })
|
|
5154
5150
|
] });
|
|
5155
5151
|
}
|
|
5156
|
-
const
|
|
5152
|
+
const Oo = [
|
|
5157
5153
|
{
|
|
5158
5154
|
name: "Starter",
|
|
5159
5155
|
price: "$0",
|
|
@@ -5191,10 +5187,10 @@ const Eo = [
|
|
|
5191
5187
|
cta: "Talk to sales"
|
|
5192
5188
|
}
|
|
5193
5189
|
];
|
|
5194
|
-
function
|
|
5190
|
+
function ui({
|
|
5195
5191
|
title: a = "Plans that scale with your team",
|
|
5196
5192
|
subtitle: t = "Start free, upgrade when you need more. All paid plans include a 14-day trial — no credit card required.",
|
|
5197
|
-
tiers: r =
|
|
5193
|
+
tiers: r = Oo,
|
|
5198
5194
|
highlightedLabel: n = "Most popular",
|
|
5199
5195
|
className: o
|
|
5200
5196
|
} = {}) {
|
|
@@ -5254,7 +5250,7 @@ function ci({
|
|
|
5254
5250
|
)
|
|
5255
5251
|
] });
|
|
5256
5252
|
}
|
|
5257
|
-
const
|
|
5253
|
+
const Ro = [
|
|
5258
5254
|
{
|
|
5259
5255
|
icon: /* @__PURE__ */ e(gt, {}),
|
|
5260
5256
|
title: "Create a project",
|
|
@@ -5274,12 +5270,12 @@ const $o = [
|
|
|
5274
5270
|
cta: "Invite people"
|
|
5275
5271
|
}
|
|
5276
5272
|
];
|
|
5277
|
-
function
|
|
5278
|
-
heroIcon: a = /* @__PURE__ */ e(
|
|
5273
|
+
function mi({
|
|
5274
|
+
heroIcon: a = /* @__PURE__ */ e(Ge, { className: "size-6" }),
|
|
5279
5275
|
title: t = "Your workspace is ready",
|
|
5280
5276
|
description: r = "Start with one of the steps below — you can always come back to the others.",
|
|
5281
5277
|
primaryAction: n = /* @__PURE__ */ e(I, { trailingIcon: /* @__PURE__ */ e(ze, {}), children: "Open tutorial" }),
|
|
5282
|
-
steps: o =
|
|
5278
|
+
steps: o = Ro,
|
|
5283
5279
|
className: i
|
|
5284
5280
|
} = {}) {
|
|
5285
5281
|
return /* @__PURE__ */ s("div", { className: `mx-auto max-w-3xl space-y-8 py-12 ${i ?? ""}`, children: [
|
|
@@ -5304,14 +5300,14 @@ function ui({
|
|
|
5304
5300
|
] });
|
|
5305
5301
|
}
|
|
5306
5302
|
export {
|
|
5307
|
-
|
|
5303
|
+
os as Accordion,
|
|
5308
5304
|
wn as AccordionContent,
|
|
5309
5305
|
Nn as AccordionItem,
|
|
5310
5306
|
yn as AccordionTrigger,
|
|
5311
5307
|
Ze as Alert,
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5308
|
+
oi as AppShell,
|
|
5309
|
+
Es as AreaChart,
|
|
5310
|
+
ei as AuthLayout,
|
|
5315
5311
|
Z as Avatar,
|
|
5316
5312
|
Tn as AvatarGroup,
|
|
5317
5313
|
W as Badge,
|
|
@@ -5323,46 +5319,46 @@ export {
|
|
|
5323
5319
|
U as CardContent,
|
|
5324
5320
|
oe as CardDescription,
|
|
5325
5321
|
_n as CardFooter,
|
|
5326
|
-
|
|
5322
|
+
G as CardHeader,
|
|
5327
5323
|
Q as CardTitle,
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5324
|
+
Ps as Carousel,
|
|
5325
|
+
_s as CarouselContent,
|
|
5326
|
+
As as CarouselItem,
|
|
5327
|
+
Ls as CarouselNext,
|
|
5328
|
+
Fs as CarouselPrevious,
|
|
5333
5329
|
Le as Checkbox,
|
|
5334
5330
|
An as Combobox,
|
|
5335
5331
|
Fn as Command,
|
|
5336
|
-
|
|
5337
|
-
|
|
5332
|
+
is as CommandDialog,
|
|
5333
|
+
jn as CommandEmpty,
|
|
5338
5334
|
$n as CommandGroup,
|
|
5339
5335
|
Ln as CommandInput,
|
|
5340
5336
|
Rn as CommandItem,
|
|
5341
|
-
|
|
5337
|
+
En as CommandList,
|
|
5342
5338
|
On as CommandSeparator,
|
|
5343
|
-
|
|
5339
|
+
ss as CommandShortcut,
|
|
5344
5340
|
fa as ConfirmationDialog,
|
|
5345
|
-
|
|
5341
|
+
ds as ContextMenu,
|
|
5346
5342
|
Wn as ContextMenuCheckboxItem,
|
|
5347
|
-
|
|
5348
|
-
|
|
5343
|
+
Gn as ContextMenuContent,
|
|
5344
|
+
us as ContextMenuGroup,
|
|
5349
5345
|
Un as ContextMenuItem,
|
|
5350
5346
|
qn as ContextMenuLabel,
|
|
5351
5347
|
Bn as ContextMenuPortal,
|
|
5352
|
-
|
|
5348
|
+
fs as ContextMenuRadioGroup,
|
|
5353
5349
|
Kn as ContextMenuRadioItem,
|
|
5354
5350
|
Qn as ContextMenuSeparator,
|
|
5355
5351
|
Xn as ContextMenuShortcut,
|
|
5356
|
-
|
|
5357
|
-
|
|
5352
|
+
ms as ContextMenuSub,
|
|
5353
|
+
Hn as ContextMenuSubContent,
|
|
5358
5354
|
Vn as ContextMenuSubTrigger,
|
|
5359
|
-
|
|
5360
|
-
|
|
5355
|
+
cs as ContextMenuTrigger,
|
|
5356
|
+
si as Dashboard,
|
|
5361
5357
|
ia as DataGrid,
|
|
5362
|
-
|
|
5358
|
+
li as DataTablePage,
|
|
5363
5359
|
la as DatePicker,
|
|
5364
5360
|
da as DateRangePicker,
|
|
5365
|
-
|
|
5361
|
+
bs as DesignSystemProvider,
|
|
5366
5362
|
ca as Dialog,
|
|
5367
5363
|
ma as DialogClose,
|
|
5368
5364
|
vr as DialogContent,
|
|
@@ -5372,65 +5368,65 @@ export {
|
|
|
5372
5368
|
xr as DialogOverlay,
|
|
5373
5369
|
ua as DialogPortal,
|
|
5374
5370
|
wr as DialogTitle,
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5371
|
+
vs as DialogTrigger,
|
|
5372
|
+
uo as Drawer,
|
|
5373
|
+
Os as DrawerClose,
|
|
5374
|
+
Rs as DrawerContent,
|
|
5379
5375
|
Gs as DrawerDescription,
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5376
|
+
Vs as DrawerFooter,
|
|
5377
|
+
Bs as DrawerHeader,
|
|
5378
|
+
fo as DrawerOverlay,
|
|
5379
|
+
mo as DrawerPortal,
|
|
5380
|
+
Hs as DrawerTitle,
|
|
5381
|
+
$s as DrawerTrigger,
|
|
5386
5382
|
bt as DropdownMenu,
|
|
5387
5383
|
fr as DropdownMenuCheckboxItem,
|
|
5388
5384
|
rt as DropdownMenuContent,
|
|
5389
|
-
|
|
5385
|
+
gs as DropdownMenuGroup,
|
|
5390
5386
|
mr as DropdownMenuItem,
|
|
5391
5387
|
vt as DropdownMenuLabel,
|
|
5392
5388
|
Yn as DropdownMenuPortal,
|
|
5393
|
-
|
|
5389
|
+
ps as DropdownMenuRadioGroup,
|
|
5394
5390
|
ea as DropdownMenuRadioItem,
|
|
5395
5391
|
$e as DropdownMenuSeparator,
|
|
5396
5392
|
ta as DropdownMenuShortcut,
|
|
5397
|
-
|
|
5393
|
+
hs as DropdownMenuSub,
|
|
5398
5394
|
Zn as DropdownMenuSubContent,
|
|
5399
5395
|
Jn as DropdownMenuSubTrigger,
|
|
5400
5396
|
xt as DropdownMenuTrigger,
|
|
5401
5397
|
kt as EmptyState,
|
|
5402
5398
|
ha as ErrorState,
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5399
|
+
Us as FileUpload,
|
|
5400
|
+
mi as FirstRunEmpty,
|
|
5401
|
+
ni as ForgotPasswordForm,
|
|
5402
|
+
Ns as Form,
|
|
5407
5403
|
xa as FormControl,
|
|
5408
5404
|
va as FormDescription,
|
|
5409
5405
|
Na as FormError,
|
|
5410
|
-
|
|
5406
|
+
ys as FormField,
|
|
5411
5407
|
pa as FormItem,
|
|
5412
5408
|
ba as FormLabel,
|
|
5413
5409
|
Me as IconButton,
|
|
5414
|
-
|
|
5415
|
-
|
|
5410
|
+
ns as Icons,
|
|
5411
|
+
as as Illustrations,
|
|
5416
5412
|
L as Input,
|
|
5417
5413
|
zr as Kbd,
|
|
5418
|
-
|
|
5419
|
-
|
|
5414
|
+
co as LineChart,
|
|
5415
|
+
ai as MagicLinkSent,
|
|
5420
5416
|
ya as MultiSelect,
|
|
5421
|
-
|
|
5417
|
+
ci as Onboarding,
|
|
5422
5418
|
_r as Pagination,
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5419
|
+
ks as Popover,
|
|
5420
|
+
Ss as PopoverAnchor,
|
|
5421
|
+
zs as PopoverClose,
|
|
5426
5422
|
Sa as PopoverContent,
|
|
5427
|
-
|
|
5428
|
-
|
|
5423
|
+
Cs as PopoverTrigger,
|
|
5424
|
+
ui as Pricing,
|
|
5429
5425
|
Ia as Progress,
|
|
5430
5426
|
Da as ProgressCircle,
|
|
5431
5427
|
Ar as RadioGroup,
|
|
5432
|
-
|
|
5433
|
-
|
|
5428
|
+
je as RadioItem,
|
|
5429
|
+
di as RecordDetail,
|
|
5434
5430
|
Pa as ScrollArea,
|
|
5435
5431
|
Fr as ScrollBar,
|
|
5436
5432
|
Tr as Select,
|
|
@@ -5442,28 +5438,28 @@ export {
|
|
|
5442
5438
|
Mr as SelectScrollUpButton,
|
|
5443
5439
|
wa as SelectSeparator,
|
|
5444
5440
|
Ct as SelectTrigger,
|
|
5445
|
-
|
|
5441
|
+
ws as SelectValue,
|
|
5446
5442
|
be as Separator,
|
|
5447
|
-
|
|
5443
|
+
ii as SettingsPage,
|
|
5448
5444
|
_a as Sheet,
|
|
5449
|
-
|
|
5450
|
-
|
|
5445
|
+
Ts as SheetClose,
|
|
5446
|
+
Er as SheetContent,
|
|
5451
5447
|
Oa as SheetDescription,
|
|
5452
|
-
|
|
5453
|
-
|
|
5448
|
+
ja as SheetFooter,
|
|
5449
|
+
Ea as SheetHeader,
|
|
5454
5450
|
Fa as SheetPortal,
|
|
5455
5451
|
$a as SheetTitle,
|
|
5456
5452
|
Aa as SheetTrigger,
|
|
5457
|
-
|
|
5453
|
+
jr as Sidebar,
|
|
5458
5454
|
Ra as SidebarGroup,
|
|
5459
5455
|
Or as SidebarItem,
|
|
5460
5456
|
$r as SidebarSection,
|
|
5461
|
-
|
|
5462
|
-
|
|
5457
|
+
ti as SignInForm,
|
|
5458
|
+
ri as SignUpForm,
|
|
5463
5459
|
hr as Skeleton,
|
|
5464
5460
|
Ba as Slider,
|
|
5465
|
-
|
|
5466
|
-
|
|
5461
|
+
Ws as Snackbar,
|
|
5462
|
+
Ga as Spinner,
|
|
5467
5463
|
Rr as Stepper,
|
|
5468
5464
|
Ce as Switch,
|
|
5469
5465
|
Nt as Table,
|
|
@@ -5476,41 +5472,41 @@ export {
|
|
|
5476
5472
|
me as TableRow,
|
|
5477
5473
|
gr as TableSortHeader,
|
|
5478
5474
|
Ka as Tabs,
|
|
5479
|
-
|
|
5475
|
+
Hr as TabsContent,
|
|
5480
5476
|
Br as TabsList,
|
|
5481
5477
|
Vr as TabsTrigger,
|
|
5482
|
-
|
|
5478
|
+
Ks as TagInput,
|
|
5483
5479
|
Qa as Textarea,
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5480
|
+
qs as Timeline,
|
|
5481
|
+
Js as TimelineDescription,
|
|
5482
|
+
Qs as TimelineItem,
|
|
5483
|
+
Xs as TimelineTime,
|
|
5484
|
+
Ys as TimelineTitle,
|
|
5489
5485
|
Za as Toast,
|
|
5490
5486
|
ro as ToastAction,
|
|
5491
5487
|
no as ToastClose,
|
|
5492
5488
|
to as ToastDescription,
|
|
5493
|
-
|
|
5489
|
+
Ms as ToastProvider,
|
|
5494
5490
|
eo as ToastTitle,
|
|
5495
5491
|
Xa as ToastViewport,
|
|
5496
5492
|
so as Tooltip,
|
|
5497
|
-
|
|
5498
|
-
|
|
5493
|
+
Gr as TooltipContent,
|
|
5494
|
+
Ds as TooltipProvider,
|
|
5499
5495
|
ao as TooltipRoot,
|
|
5500
5496
|
oo as TooltipTrigger,
|
|
5501
5497
|
io as TopNav,
|
|
5502
5498
|
lo as TopNavLink,
|
|
5503
|
-
|
|
5504
|
-
|
|
5499
|
+
Zs as Tree,
|
|
5500
|
+
xs as brandPresets,
|
|
5505
5501
|
l as cn,
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5502
|
+
hi as cva,
|
|
5503
|
+
rs as toast,
|
|
5504
|
+
Zo as uid,
|
|
5505
|
+
ls as useCommandPaletteShortcut,
|
|
5510
5506
|
nt as useFormField,
|
|
5511
5507
|
bn as useMediaQuery,
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5508
|
+
es as usePrefersReducedMotion,
|
|
5509
|
+
Is as useSidebar,
|
|
5510
|
+
ts as useToast
|
|
5515
5511
|
};
|
|
5516
5512
|
//# sourceMappingURL=index.js.map
|