@craftzbay/ui 0.2.4 → 0.2.6
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/components/ui/Drawer.d.ts +9 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +174 -162
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { AlertCircle as Wa, AlertTriangle as pt, ArrowDown as kr, ArrowLeft as C
|
|
|
6
6
|
import { jsx as e, jsxs as u, Fragment as st } from "react/jsx-runtime";
|
|
7
7
|
import * as At from "@radix-ui/react-accordion";
|
|
8
8
|
import { cva as Me } from "class-variance-authority";
|
|
9
|
-
import { cva as
|
|
9
|
+
import { cva as Xc } from "class-variance-authority";
|
|
10
10
|
import * as Mn from "@radix-ui/react-avatar";
|
|
11
11
|
import { Slot as Xr } from "@radix-ui/react-slot";
|
|
12
12
|
import * as cr from "@radix-ui/react-checkbox";
|
|
@@ -32,7 +32,7 @@ function m(...n) {
|
|
|
32
32
|
return Va(Ha(n));
|
|
33
33
|
}
|
|
34
34
|
let fr = 0;
|
|
35
|
-
function
|
|
35
|
+
function Rl(n = "ds") {
|
|
36
36
|
return fr += 1, `${n}-${fr}`;
|
|
37
37
|
}
|
|
38
38
|
function lo(n) {
|
|
@@ -43,7 +43,7 @@ function lo(n) {
|
|
|
43
43
|
return r(a.matches), a.addEventListener("change", o), () => a.removeEventListener("change", o);
|
|
44
44
|
}, [n]), t;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ol() {
|
|
47
47
|
return lo("(prefers-reduced-motion: reduce)");
|
|
48
48
|
}
|
|
49
49
|
const rt = {
|
|
@@ -63,7 +63,7 @@ const rt = {
|
|
|
63
63
|
this.toasts = this.toasts.filter((t) => t.id !== n), this.emit();
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
function
|
|
66
|
+
function Ll() {
|
|
67
67
|
const [n, t] = B(() => [...rt.toasts]);
|
|
68
68
|
Be(() => {
|
|
69
69
|
const i = (s) => t([...s]);
|
|
@@ -74,7 +74,7 @@ function Rl() {
|
|
|
74
74
|
const r = Ie((i) => rt.push(i), []), a = Ie((i) => rt.dismiss(i), []), o = Ie((i) => rt.remove(i), []);
|
|
75
75
|
return { toasts: n, push: r, dismiss: a, remove: o };
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const $l = (n) => rt.push(n), Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
78
78
|
__proto__: null,
|
|
79
79
|
AlertCircle: Wa,
|
|
80
80
|
AlertTriangle: pt,
|
|
@@ -135,7 +135,7 @@ const Ol = (n) => rt.push(n), Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
|
135
135
|
Users: gn,
|
|
136
136
|
X: ze,
|
|
137
137
|
XCircle: Ft
|
|
138
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
138
|
+
}, Symbol.toStringTag, { value: "Module" })), Bl = At.Root, co = y(function({ className: t, ...r }, a) {
|
|
139
139
|
return /* @__PURE__ */ e(At.Item, { ref: a, className: m("border-b border-border", t), ...r });
|
|
140
140
|
});
|
|
141
141
|
co.displayName = "AccordionItem";
|
|
@@ -866,7 +866,7 @@ const Mo = y(function({ className: t, ...r }, a) {
|
|
|
866
866
|
);
|
|
867
867
|
});
|
|
868
868
|
Mo.displayName = "CommandItem";
|
|
869
|
-
function
|
|
869
|
+
function _l({ children: n, className: t }) {
|
|
870
870
|
return /* @__PURE__ */ e(
|
|
871
871
|
"span",
|
|
872
872
|
{
|
|
@@ -878,7 +878,7 @@ function Fl({ children: n, className: t }) {
|
|
|
878
878
|
}
|
|
879
879
|
);
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function jl({ open: n, onOpenChange: t, children: r, title: a = "Command palette" }) {
|
|
882
882
|
return /* @__PURE__ */ e(U.Root, { open: n, onOpenChange: t, children: /* @__PURE__ */ u(U.Portal, { children: [
|
|
883
883
|
/* @__PURE__ */ e(
|
|
884
884
|
U.Overlay,
|
|
@@ -909,7 +909,7 @@ function Bl({ open: n, onOpenChange: t, children: r, title: a = "Command palette
|
|
|
909
909
|
)
|
|
910
910
|
] }) });
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function Hl(n) {
|
|
913
913
|
const [t, r] = B(0);
|
|
914
914
|
Be(() => {
|
|
915
915
|
const a = (o) => {
|
|
@@ -918,7 +918,7 @@ function _l(n) {
|
|
|
918
918
|
return window.addEventListener("keydown", a), () => window.removeEventListener("keydown", a);
|
|
919
919
|
}, [n]);
|
|
920
920
|
}
|
|
921
|
-
const
|
|
921
|
+
const Vl = me.Root, Ul = me.Trigger, Gl = me.Group, Po = me.Portal, Wl = me.Sub, ql = me.RadioGroup, bn = m(
|
|
922
922
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-foreground outline-none",
|
|
923
923
|
"data-[highlighted]:bg-background-muted data-[highlighted]:text-foreground",
|
|
924
924
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
@@ -1044,7 +1044,7 @@ function _o({ className: n, ...t }) {
|
|
|
1044
1044
|
);
|
|
1045
1045
|
}
|
|
1046
1046
|
_o.displayName = "ContextMenuShortcut";
|
|
1047
|
-
const qn = ge.Root, Kn = ge.Trigger,
|
|
1047
|
+
const qn = ge.Root, Kn = ge.Trigger, Kl = ge.Group, jo = ge.Portal, Yl = ge.Sub, Xl = ge.RadioGroup, xn = m(
|
|
1048
1048
|
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-foreground outline-none",
|
|
1049
1049
|
"data-[highlighted]:bg-background-muted data-[highlighted]:text-foreground",
|
|
1050
1050
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
@@ -1713,7 +1713,7 @@ const Zo = y(function({ value: t, onChange: r, label: a, placeholder: o = "Pick
|
|
|
1713
1713
|
] }) });
|
|
1714
1714
|
});
|
|
1715
1715
|
Zo.displayName = "DateRangePicker";
|
|
1716
|
-
const ei = U.Root,
|
|
1716
|
+
const ei = U.Root, Ql = U.Trigger, ti = U.Portal, ni = U.Close, aa = y(function({ className: t, ...r }, a) {
|
|
1717
1717
|
return /* @__PURE__ */ e(
|
|
1718
1718
|
U.Overlay,
|
|
1719
1719
|
{
|
|
@@ -1890,8 +1890,8 @@ const ai = {
|
|
|
1890
1890
|
);
|
|
1891
1891
|
});
|
|
1892
1892
|
oi.displayName = "ErrorState";
|
|
1893
|
-
const
|
|
1894
|
-
function
|
|
1893
|
+
const Jl = ao, da = rn(null);
|
|
1894
|
+
function Zl(n) {
|
|
1895
1895
|
return /* @__PURE__ */ e(da.Provider, { value: { name: n.name }, children: /* @__PURE__ */ e(oo, { ...n }) });
|
|
1896
1896
|
}
|
|
1897
1897
|
const ua = rn(null);
|
|
@@ -2168,7 +2168,7 @@ const ui = y(function({
|
|
|
2168
2168
|
] });
|
|
2169
2169
|
});
|
|
2170
2170
|
ui.displayName = "MultiSelect";
|
|
2171
|
-
const ma = fe.Root,
|
|
2171
|
+
const ma = fe.Root, ec = fe.Value, er = y(function({ className: t, placeholder: r, size: a = "md", tone: o = "default", ...i }, s) {
|
|
2172
2172
|
return /* @__PURE__ */ u(
|
|
2173
2173
|
fe.Trigger,
|
|
2174
2174
|
{
|
|
@@ -2405,7 +2405,7 @@ const Wt = m(
|
|
|
2405
2405
|
"hover:bg-background-muted hover:text-foreground",
|
|
2406
2406
|
"disabled:opacity-50 disabled:pointer-events-none",
|
|
2407
2407
|
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
2408
|
-
),
|
|
2408
|
+
), tc = te.Root, nc = te.Trigger, rc = te.Anchor, ac = te.Close, pi = y(function({ className: t, align: r = "center", sideOffset: a = 4, ...o }, i) {
|
|
2409
2409
|
return /* @__PURE__ */ e(te.Portal, { children: /* @__PURE__ */ e(
|
|
2410
2410
|
te.Content,
|
|
2411
2411
|
{
|
|
@@ -2626,7 +2626,7 @@ const gt = y(function({ className: t, orientation: r = "horizontal", decorative:
|
|
|
2626
2626
|
);
|
|
2627
2627
|
});
|
|
2628
2628
|
gt.displayName = "Separator";
|
|
2629
|
-
const
|
|
2629
|
+
const oc = U.Root, ic = U.Trigger, sc = U.Close, Ni = U.Portal, ya = y(function({ className: t, ...r }, a) {
|
|
2630
2630
|
return /* @__PURE__ */ e(
|
|
2631
2631
|
U.Overlay,
|
|
2632
2632
|
{
|
|
@@ -2719,7 +2719,7 @@ const Ii = y(function({ className: t, ...r }, a) {
|
|
|
2719
2719
|
});
|
|
2720
2720
|
Ii.displayName = "SheetDescription";
|
|
2721
2721
|
const Bt = rn({ collapsed: !1 });
|
|
2722
|
-
function
|
|
2722
|
+
function lc() {
|
|
2723
2723
|
return lt(Bt);
|
|
2724
2724
|
}
|
|
2725
2725
|
const Na = y(function({
|
|
@@ -3221,7 +3221,7 @@ const Fi = y(function({
|
|
|
3221
3221
|
] });
|
|
3222
3222
|
});
|
|
3223
3223
|
Fi.displayName = "Textarea";
|
|
3224
|
-
const
|
|
3224
|
+
const cc = dt.Provider, Bi = y(function({ className: t, ...r }, a) {
|
|
3225
3225
|
return /* @__PURE__ */ e(
|
|
3226
3226
|
dt.Viewport,
|
|
3227
3227
|
{
|
|
@@ -3331,7 +3331,7 @@ const Wi = y(function({ className: t, ...r }, a) {
|
|
|
3331
3331
|
);
|
|
3332
3332
|
});
|
|
3333
3333
|
Wi.displayName = "ToastClose";
|
|
3334
|
-
const
|
|
3334
|
+
const dc = ({
|
|
3335
3335
|
delayDuration: n = 500,
|
|
3336
3336
|
skipDelayDuration: t = 200,
|
|
3337
3337
|
...r
|
|
@@ -4675,7 +4675,7 @@ function Sn() {
|
|
|
4675
4675
|
if (!n) throw new Error("Carousel components must be used inside <Carousel>");
|
|
4676
4676
|
return n;
|
|
4677
4677
|
}
|
|
4678
|
-
const
|
|
4678
|
+
const uc = y(function({ opts: t, orientation: r = "horizontal", setApi: a, className: o, children: i, ...s }, c) {
|
|
4679
4679
|
const [d, l] = ir({ ...t, axis: r === "horizontal" ? "x" : "y" }), [p, g] = B(!1), [f, b] = B(!1), h = Ie((x) => {
|
|
4680
4680
|
x && (g(x.canScrollPrev()), b(x.canScrollNext()));
|
|
4681
4681
|
}, []);
|
|
@@ -4699,7 +4699,7 @@ const cc = y(function({ opts: t, orientation: r = "horizontal", setApi: a, class
|
|
|
4699
4699
|
children: /* @__PURE__ */ e("div", { ref: c, className: m("relative", o), role: "region", "aria-roledescription": "carousel", ...s, children: i })
|
|
4700
4700
|
}
|
|
4701
4701
|
);
|
|
4702
|
-
}),
|
|
4702
|
+
}), fc = y(
|
|
4703
4703
|
function({ className: t, ...r }, a) {
|
|
4704
4704
|
const { carouselRef: o, orientation: i } = Sn();
|
|
4705
4705
|
return /* @__PURE__ */ e("div", { ref: o, className: "overflow-hidden", children: /* @__PURE__ */ e(
|
|
@@ -4715,7 +4715,7 @@ const cc = y(function({ opts: t, orientation: r = "horizontal", setApi: a, class
|
|
|
4715
4715
|
}
|
|
4716
4716
|
) });
|
|
4717
4717
|
}
|
|
4718
|
-
),
|
|
4718
|
+
), mc = y(
|
|
4719
4719
|
function({ className: t, ...r }, a) {
|
|
4720
4720
|
const { orientation: o } = Sn();
|
|
4721
4721
|
return /* @__PURE__ */ e(
|
|
@@ -4734,7 +4734,7 @@ const cc = y(function({ opts: t, orientation: r = "horizontal", setApi: a, class
|
|
|
4734
4734
|
);
|
|
4735
4735
|
}
|
|
4736
4736
|
);
|
|
4737
|
-
function
|
|
4737
|
+
function gc({ className: n }) {
|
|
4738
4738
|
const { canPrev: t, scrollPrev: r, orientation: a } = Sn();
|
|
4739
4739
|
return /* @__PURE__ */ e(
|
|
4740
4740
|
wn,
|
|
@@ -4752,7 +4752,7 @@ function fc({ className: n }) {
|
|
|
4752
4752
|
}
|
|
4753
4753
|
);
|
|
4754
4754
|
}
|
|
4755
|
-
function
|
|
4755
|
+
function pc({ className: n }) {
|
|
4756
4756
|
const { canNext: t, scrollNext: r, orientation: a } = Sn();
|
|
4757
4757
|
return /* @__PURE__ */ e(
|
|
4758
4758
|
wn,
|
|
@@ -4774,7 +4774,7 @@ function Ma(n, t, r, a = 8) {
|
|
|
4774
4774
|
const o = n.map((f) => f.y), i = Math.min(0, ...o), s = Math.max(...o, 1), c = s - i || 1, d = t - a * 2, l = r - a * 2;
|
|
4775
4775
|
return { sx: (f) => n.length <= 1 ? a + d / 2 : a + f / (n.length - 1) * d, sy: (f) => a + l - (f - i) / c * l, min: i, max: s };
|
|
4776
4776
|
}
|
|
4777
|
-
function
|
|
4777
|
+
function hc({ data: n, height: t = 80, width: r = "100%", caption: a, className: o }) {
|
|
4778
4778
|
const i = typeof r == "number" ? r : 320, { sx: s, sy: c } = Ma(n, i, t), d = n.map((l, p) => `${p === 0 ? "M" : "L"}${s(p).toFixed(1)},${c(l.y).toFixed(1)}`).join(" ");
|
|
4779
4779
|
return /* @__PURE__ */ u("figure", { className: m("flex flex-col gap-1.5", o), children: [
|
|
4780
4780
|
a && /* @__PURE__ */ e("figcaption", { className: "text-xs text-foreground-muted", children: a }),
|
|
@@ -4784,7 +4784,7 @@ function gc({ data: n, height: t = 80, width: r = "100%", caption: a, className:
|
|
|
4784
4784
|
] })
|
|
4785
4785
|
] });
|
|
4786
4786
|
}
|
|
4787
|
-
function
|
|
4787
|
+
function bc({ data: n, height: t = 80, width: r = "100%", caption: a, className: o }) {
|
|
4788
4788
|
const i = typeof r == "number" ? r : 320, { sx: s, sy: c } = Ma(n, i, t), d = n.map((p, g) => `${g === 0 ? "M" : "L"}${s(g).toFixed(1)},${c(p.y).toFixed(1)}`).join(" "), l = `${d} L${s(n.length - 1).toFixed(1)},${t} L${s(0).toFixed(1)},${t} Z`;
|
|
4789
4789
|
return /* @__PURE__ */ u("figure", { className: m("flex flex-col gap-1.5", o), children: [
|
|
4790
4790
|
a && /* @__PURE__ */ e("figcaption", { className: "text-xs text-foreground-muted", children: a }),
|
|
@@ -4794,7 +4794,7 @@ function pc({ data: n, height: t = 80, width: r = "100%", caption: a, className:
|
|
|
4794
4794
|
] })
|
|
4795
4795
|
] });
|
|
4796
4796
|
}
|
|
4797
|
-
function
|
|
4797
|
+
function xc({ data: n, height: t = 100, width: r = "100%", caption: a, className: o }) {
|
|
4798
4798
|
const i = typeof r == "number" ? r : 320, s = 8, c = 2, d = i - s * 2, l = Math.max(2, d / n.length - c), p = n.map((f) => f.y), g = Math.max(...p, 1);
|
|
4799
4799
|
return /* @__PURE__ */ u("figure", { className: m("flex flex-col gap-1.5", o), children: [
|
|
4800
4800
|
a && /* @__PURE__ */ e("figcaption", { className: "text-xs text-foreground-muted", children: a }),
|
|
@@ -5851,7 +5851,7 @@ const Ze = {
|
|
|
5851
5851
|
...t
|
|
5852
5852
|
}) => /* @__PURE__ */ e(Ze.Root, { shouldScaleBackground: n, ...t });
|
|
5853
5853
|
il.displayName = "Drawer";
|
|
5854
|
-
const
|
|
5854
|
+
const vc = Ze.Trigger, sl = Ze.Portal, wc = Ze.Close, ll = y(function({ className: t, ...r }, a) {
|
|
5855
5855
|
return /* @__PURE__ */ e(
|
|
5856
5856
|
Ze.Overlay,
|
|
5857
5857
|
{
|
|
@@ -5860,34 +5860,46 @@ const bc = Ze.Trigger, sl = Ze.Portal, xc = Ze.Close, ll = y(function({ classNam
|
|
|
5860
5860
|
...r
|
|
5861
5861
|
}
|
|
5862
5862
|
);
|
|
5863
|
-
}),
|
|
5863
|
+
}), cl = {
|
|
5864
|
+
bottom: "inset-x-0 bottom-0 mt-24 flex h-auto max-h-[90vh] flex-col rounded-t-xl border-t border-border",
|
|
5865
|
+
top: "inset-x-0 top-0 mb-24 flex h-auto max-h-[90vh] flex-col rounded-b-xl border-b border-border",
|
|
5866
|
+
left: "inset-y-0 left-0 flex h-full w-[420px] max-w-[90vw] flex-col rounded-r-xl border-r border-border",
|
|
5867
|
+
right: "inset-y-0 right-0 flex h-full w-[420px] max-w-[90vw] flex-col rounded-l-xl border-l border-border"
|
|
5868
|
+
}, dl = {
|
|
5869
|
+
bottom: "mx-auto mt-3 h-1.5 w-12 rounded-full bg-border",
|
|
5870
|
+
top: "mx-auto mb-3 h-1.5 w-12 rounded-full bg-border order-last",
|
|
5871
|
+
left: "mx-1.5 my-auto h-12 w-1.5 rounded-full bg-border order-last self-stretch shrink-0",
|
|
5872
|
+
right: "mx-1.5 my-auto h-12 w-1.5 rounded-full bg-border shrink-0 self-stretch"
|
|
5873
|
+
}, yc = y(function({ className: t, direction: r = "bottom", hideHandle: a, children: o, ...i }, s) {
|
|
5874
|
+
const c = r === "left" || r === "right";
|
|
5864
5875
|
return /* @__PURE__ */ u(sl, { children: [
|
|
5865
5876
|
/* @__PURE__ */ e(ll, {}),
|
|
5866
5877
|
/* @__PURE__ */ u(
|
|
5867
5878
|
Ze.Content,
|
|
5868
5879
|
{
|
|
5869
|
-
ref:
|
|
5880
|
+
ref: s,
|
|
5870
5881
|
className: m(
|
|
5871
|
-
"fixed
|
|
5872
|
-
|
|
5882
|
+
"fixed z-50 bg-card",
|
|
5883
|
+
cl[r],
|
|
5884
|
+
c && "flex-row",
|
|
5873
5885
|
t
|
|
5874
5886
|
),
|
|
5875
|
-
...
|
|
5887
|
+
...i,
|
|
5876
5888
|
children: [
|
|
5877
|
-
/* @__PURE__ */ e("div", {
|
|
5878
|
-
|
|
5889
|
+
!a && /* @__PURE__ */ e("div", { "aria-hidden": !0, className: dl[r] }),
|
|
5890
|
+
/* @__PURE__ */ e("div", { className: m("min-h-0 min-w-0 flex-1", c && "flex flex-col"), children: o })
|
|
5879
5891
|
]
|
|
5880
5892
|
}
|
|
5881
5893
|
)
|
|
5882
5894
|
] });
|
|
5883
5895
|
});
|
|
5884
|
-
function
|
|
5896
|
+
function Nc({ className: n, ...t }) {
|
|
5885
5897
|
return /* @__PURE__ */ e("div", { className: m("grid gap-1 p-4 text-center sm:text-left", n), ...t });
|
|
5886
5898
|
}
|
|
5887
|
-
function
|
|
5899
|
+
function Sc({ className: n, ...t }) {
|
|
5888
5900
|
return /* @__PURE__ */ e("div", { className: m("mt-auto flex flex-col gap-2 p-4", n), ...t });
|
|
5889
5901
|
}
|
|
5890
|
-
const
|
|
5902
|
+
const kc = y(function({ className: t, ...r }, a) {
|
|
5891
5903
|
return /* @__PURE__ */ e(
|
|
5892
5904
|
Ze.Title,
|
|
5893
5905
|
{
|
|
@@ -5896,7 +5908,7 @@ const Nc = y(function({ className: t, ...r }, a) {
|
|
|
5896
5908
|
...r
|
|
5897
5909
|
}
|
|
5898
5910
|
);
|
|
5899
|
-
}),
|
|
5911
|
+
}), Cc = y(function({ className: t, ...r }, a) {
|
|
5900
5912
|
return /* @__PURE__ */ e(
|
|
5901
5913
|
Ze.Description,
|
|
5902
5914
|
{
|
|
@@ -5906,10 +5918,10 @@ const Nc = y(function({ className: t, ...r }, a) {
|
|
|
5906
5918
|
}
|
|
5907
5919
|
);
|
|
5908
5920
|
});
|
|
5909
|
-
function
|
|
5921
|
+
function ul(n) {
|
|
5910
5922
|
return n < 1024 ? `${n} B` : n < 1024 * 1024 ? `${(n / 1024).toFixed(1)} KB` : `${(n / 1024 / 1024).toFixed(1)} MB`;
|
|
5911
5923
|
}
|
|
5912
|
-
const
|
|
5924
|
+
const Tc = y(function({ accept: t, multiple: r, maxSize: a, value: o, onChange: i, hint: s, disabled: c, className: d }, l) {
|
|
5913
5925
|
const p = Pt(null), g = Le(), [f, b] = B([]), [h, x] = B(!1), w = o ?? f, v = Ie(
|
|
5914
5926
|
(T) => {
|
|
5915
5927
|
o === void 0 && b(T), i == null || i(T);
|
|
@@ -5974,7 +5986,7 @@ const kc = y(function({ accept: t, multiple: r, maxSize: a, value: o, onChange:
|
|
|
5974
5986
|
/* @__PURE__ */ e(Yr, { className: "size-4 shrink-0 text-foreground-muted", "aria-hidden": !0 }),
|
|
5975
5987
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
5976
5988
|
/* @__PURE__ */ e("p", { className: "truncate text-sm", children: T.name }),
|
|
5977
|
-
/* @__PURE__ */ e("p", { className: "text-xs text-foreground-muted", children:
|
|
5989
|
+
/* @__PURE__ */ e("p", { className: "text-xs text-foreground-muted", children: ul(T.size) })
|
|
5978
5990
|
] }),
|
|
5979
5991
|
/* @__PURE__ */ e(
|
|
5980
5992
|
"button",
|
|
@@ -5991,7 +6003,7 @@ const kc = y(function({ accept: t, multiple: r, maxSize: a, value: o, onChange:
|
|
|
5991
6003
|
`${T.name}-${I}`
|
|
5992
6004
|
)) })
|
|
5993
6005
|
] });
|
|
5994
|
-
}),
|
|
6006
|
+
}), fl = Me(
|
|
5995
6007
|
[
|
|
5996
6008
|
"relative pointer-events-auto w-full max-w-md",
|
|
5997
6009
|
"flex items-start gap-3 rounded-md border bg-card p-3 shadow-md",
|
|
@@ -6009,15 +6021,15 @@ const kc = y(function({ accept: t, multiple: r, maxSize: a, value: o, onChange:
|
|
|
6009
6021
|
},
|
|
6010
6022
|
defaultVariants: { variant: "default" }
|
|
6011
6023
|
}
|
|
6012
|
-
),
|
|
6024
|
+
), ml = {
|
|
6013
6025
|
default: null,
|
|
6014
6026
|
info: /* @__PURE__ */ e(cn, { className: "size-4 shrink-0 mt-0.5 text-info-text", "aria-hidden": !0 }),
|
|
6015
6027
|
success: /* @__PURE__ */ e(bt, { className: "size-4 shrink-0 mt-0.5 text-success-text", "aria-hidden": !0 }),
|
|
6016
6028
|
warning: /* @__PURE__ */ e(pt, { className: "size-4 shrink-0 mt-0.5 text-warning-text", "aria-hidden": !0 }),
|
|
6017
6029
|
danger: /* @__PURE__ */ e(Ft, { className: "size-4 shrink-0 mt-0.5 text-danger-text", "aria-hidden": !0 })
|
|
6018
|
-
},
|
|
6019
|
-
const p = s === !1 ? null : s ??
|
|
6020
|
-
return /* @__PURE__ */ u("div", { ref: l, role: "status", className: m(
|
|
6030
|
+
}, Dc = y(function({ className: t, variant: r = "default", title: a, action: o, onClose: i, icon: s, children: c, ...d }, l) {
|
|
6031
|
+
const p = s === !1 ? null : s ?? ml[r ?? "default"];
|
|
6032
|
+
return /* @__PURE__ */ u("div", { ref: l, role: "status", className: m(fl({ variant: r }), t), ...d, children: [
|
|
6021
6033
|
p,
|
|
6022
6034
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
6023
6035
|
a && /* @__PURE__ */ e("p", { className: "font-medium", children: a }),
|
|
@@ -6035,7 +6047,7 @@ const kc = y(function({ accept: t, multiple: r, maxSize: a, value: o, onChange:
|
|
|
6035
6047
|
}
|
|
6036
6048
|
)
|
|
6037
6049
|
] });
|
|
6038
|
-
}),
|
|
6050
|
+
}), Ic = y(function({
|
|
6039
6051
|
value: t,
|
|
6040
6052
|
defaultValue: r = [],
|
|
6041
6053
|
onChange: a,
|
|
@@ -6106,9 +6118,9 @@ const kc = y(function({ accept: t, multiple: r, maxSize: a, value: o, onChange:
|
|
|
6106
6118
|
]
|
|
6107
6119
|
}
|
|
6108
6120
|
);
|
|
6109
|
-
}),
|
|
6121
|
+
}), zc = y(function({ className: t, children: r, ...a }, o) {
|
|
6110
6122
|
return /* @__PURE__ */ e("ol", { ref: o, className: m("relative flex flex-col gap-6", t), ...a, children: r });
|
|
6111
|
-
}),
|
|
6123
|
+
}), Mc = y(function({ bullet: t, isLast: r, className: a, children: o, ...i }, s) {
|
|
6112
6124
|
return /* @__PURE__ */ u("li", { ref: s, className: m("relative flex gap-4 pb-1", a), ...i, children: [
|
|
6113
6125
|
/* @__PURE__ */ u("div", { className: "relative flex shrink-0 flex-col items-center", children: [
|
|
6114
6126
|
/* @__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 }) }),
|
|
@@ -6117,22 +6129,22 @@ const kc = y(function({ accept: t, multiple: r, maxSize: a, value: o, onChange:
|
|
|
6117
6129
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1 pb-4", children: o })
|
|
6118
6130
|
] });
|
|
6119
6131
|
});
|
|
6120
|
-
function
|
|
6132
|
+
function Pc({ className: n, children: t }) {
|
|
6121
6133
|
return /* @__PURE__ */ e("p", { className: m("text-xs text-foreground-subtle", n), children: t });
|
|
6122
6134
|
}
|
|
6123
|
-
function
|
|
6135
|
+
function Ec({
|
|
6124
6136
|
className: n,
|
|
6125
6137
|
children: t
|
|
6126
6138
|
}) {
|
|
6127
6139
|
return /* @__PURE__ */ e("p", { className: m("text-sm font-medium", n), children: t });
|
|
6128
6140
|
}
|
|
6129
|
-
function
|
|
6141
|
+
function Ac({
|
|
6130
6142
|
className: n,
|
|
6131
6143
|
children: t
|
|
6132
6144
|
}) {
|
|
6133
6145
|
return /* @__PURE__ */ e("p", { className: m("mt-0.5 text-sm text-foreground-muted", n), children: t });
|
|
6134
6146
|
}
|
|
6135
|
-
function
|
|
6147
|
+
function Rc({ data: n, defaultExpanded: t = [], selectedId: r, onSelect: a, className: o }) {
|
|
6136
6148
|
const [i, s] = B(new Set(t)), c = (l) => s((p) => {
|
|
6137
6149
|
const g = new Set(p);
|
|
6138
6150
|
return g.has(l) ? g.delete(l) : g.add(l), g;
|
|
@@ -6175,7 +6187,7 @@ function Ec({ data: n, defaultExpanded: t = [], selectedId: r, onSelect: a, clas
|
|
|
6175
6187
|
}
|
|
6176
6188
|
return /* @__PURE__ */ e("ul", { role: "tree", className: m("flex flex-col gap-0.5", o), children: n.map((l) => d(l, 0)) });
|
|
6177
6189
|
}
|
|
6178
|
-
function
|
|
6190
|
+
function Oc({ brand: n, title: t, subtitle: r, children: a, footer: o }) {
|
|
6179
6191
|
return /* @__PURE__ */ e("main", { className: "grid min-h-screen place-items-center bg-background-subtle px-4 py-12", children: /* @__PURE__ */ u("div", { className: "w-full max-w-[400px] space-y-6", children: [
|
|
6180
6192
|
n && /* @__PURE__ */ e("div", { className: "flex justify-center", children: n }),
|
|
6181
6193
|
/* @__PURE__ */ u("div", { className: "space-y-2 text-center", children: [
|
|
@@ -6186,7 +6198,7 @@ function Ac({ brand: n, title: t, subtitle: r, children: a, footer: o }) {
|
|
|
6186
6198
|
o && /* @__PURE__ */ e("p", { className: "text-center text-sm text-foreground-muted", children: o })
|
|
6187
6199
|
] }) });
|
|
6188
6200
|
}
|
|
6189
|
-
function
|
|
6201
|
+
function Lc({ onSubmit: n, loading: t, error: r, forgotHref: a = "/forgot" }) {
|
|
6190
6202
|
const [o, i] = B(""), [s, c] = B("");
|
|
6191
6203
|
return /* @__PURE__ */ u("form", { onSubmit: (l) => {
|
|
6192
6204
|
l.preventDefault(), n({ email: o, password: s });
|
|
@@ -6225,7 +6237,7 @@ function Rc({ onSubmit: n, loading: t, error: r, forgotHref: a = "/forgot" }) {
|
|
|
6225
6237
|
/* @__PURE__ */ e(K, { type: "submit", loading: t, className: "w-full", trailingIcon: /* @__PURE__ */ e(Et, {}), children: "Sign in" })
|
|
6226
6238
|
] });
|
|
6227
6239
|
}
|
|
6228
|
-
function
|
|
6240
|
+
function $c({ onSubmit: n, loading: t, error: r }) {
|
|
6229
6241
|
const [a, o] = B(""), [i, s] = B(""), [c, d] = B("");
|
|
6230
6242
|
return /* @__PURE__ */ u(
|
|
6231
6243
|
"form",
|
|
@@ -6266,7 +6278,7 @@ function Oc({ onSubmit: n, loading: t, error: r }) {
|
|
|
6266
6278
|
}
|
|
6267
6279
|
);
|
|
6268
6280
|
}
|
|
6269
|
-
function
|
|
6281
|
+
function Fc({ onSubmit: n, loading: t, error: r }) {
|
|
6270
6282
|
const [a, o] = B("");
|
|
6271
6283
|
return /* @__PURE__ */ u(
|
|
6272
6284
|
"form",
|
|
@@ -6294,7 +6306,7 @@ function Lc({ onSubmit: n, loading: t, error: r }) {
|
|
|
6294
6306
|
}
|
|
6295
6307
|
);
|
|
6296
6308
|
}
|
|
6297
|
-
function
|
|
6309
|
+
function Bc({ email: n, onResend: t }) {
|
|
6298
6310
|
return /* @__PURE__ */ u("div", { className: "space-y-4 text-center", children: [
|
|
6299
6311
|
/* @__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(bt, { className: "size-6", "aria-hidden": !0 }) }),
|
|
6300
6312
|
/* @__PURE__ */ u("p", { className: "text-sm text-foreground-muted", children: [
|
|
@@ -6322,14 +6334,14 @@ function $c({ email: n, onResend: t }) {
|
|
|
6322
6334
|
function at(n) {
|
|
6323
6335
|
typeof window > "u" || (window.location.hash = n);
|
|
6324
6336
|
}
|
|
6325
|
-
function
|
|
6337
|
+
function _c({ children: n, brand: t, active: r = "home" }) {
|
|
6326
6338
|
return /* @__PURE__ */ u("div", { className: "flex min-h-screen w-full bg-background", children: [
|
|
6327
6339
|
/* @__PURE__ */ u(
|
|
6328
6340
|
Na,
|
|
6329
6341
|
{
|
|
6330
6342
|
defaultCollapsed: !1,
|
|
6331
6343
|
header: t,
|
|
6332
|
-
footer: /* @__PURE__ */ e(
|
|
6344
|
+
footer: /* @__PURE__ */ e(bl, {}),
|
|
6333
6345
|
children: [
|
|
6334
6346
|
/* @__PURE__ */ u(en, { label: "Workspace", children: [
|
|
6335
6347
|
/* @__PURE__ */ e(Ae, { href: "#dashboard", icon: /* @__PURE__ */ e(Br, {}), active: r === "home", children: "Home" }),
|
|
@@ -6351,12 +6363,12 @@ function Fc({ children: n, brand: t, active: r = "home" }) {
|
|
|
6351
6363
|
}
|
|
6352
6364
|
),
|
|
6353
6365
|
/* @__PURE__ */ u("div", { className: "flex flex-1 flex-col min-w-0", children: [
|
|
6354
|
-
/* @__PURE__ */ e(
|
|
6366
|
+
/* @__PURE__ */ e(gl, {}),
|
|
6355
6367
|
/* @__PURE__ */ e("main", { className: "flex-1 overflow-y-auto p-6 md:p-8", children: n })
|
|
6356
6368
|
] })
|
|
6357
6369
|
] });
|
|
6358
6370
|
}
|
|
6359
|
-
function
|
|
6371
|
+
function gl() {
|
|
6360
6372
|
return /* @__PURE__ */ u("header", { className: "sticky top-0 z-30 flex h-14 items-center gap-3 border-b border-border bg-background/80 px-4 backdrop-blur md:px-6", children: [
|
|
6361
6373
|
/* @__PURE__ */ e("div", { className: "relative flex-1 max-w-xl", children: /* @__PURE__ */ e(
|
|
6362
6374
|
le,
|
|
@@ -6370,8 +6382,8 @@ function fl() {
|
|
|
6370
6382
|
}
|
|
6371
6383
|
) }),
|
|
6372
6384
|
/* @__PURE__ */ u("div", { className: "ml-auto flex items-center gap-1", children: [
|
|
6373
|
-
/* @__PURE__ */ e(
|
|
6374
|
-
/* @__PURE__ */ e(
|
|
6385
|
+
/* @__PURE__ */ e(pl, {}),
|
|
6386
|
+
/* @__PURE__ */ e(hl, {})
|
|
6375
6387
|
] })
|
|
6376
6388
|
] });
|
|
6377
6389
|
}
|
|
@@ -6382,7 +6394,7 @@ const yr = [
|
|
|
6382
6394
|
{ id: "n4", who: { name: "Khulan O.", initials: "KO" }, action: "archived", target: "old-billing-spike", when: "3h" },
|
|
6383
6395
|
{ id: "n5", who: { name: "Sara M.", initials: "SM" }, action: "invited you to", target: "Atlas workspace", when: "Yesterday" }
|
|
6384
6396
|
];
|
|
6385
|
-
function
|
|
6397
|
+
function pl() {
|
|
6386
6398
|
const n = yr.filter((t) => t.unread).length;
|
|
6387
6399
|
return /* @__PURE__ */ u(qn, { children: [
|
|
6388
6400
|
/* @__PURE__ */ e(Kn, { asChild: !0, children: /* @__PURE__ */ u(
|
|
@@ -6463,7 +6475,7 @@ function ml() {
|
|
|
6463
6475
|
] })
|
|
6464
6476
|
] });
|
|
6465
6477
|
}
|
|
6466
|
-
function
|
|
6478
|
+
function hl() {
|
|
6467
6479
|
return /* @__PURE__ */ u(qn, { children: [
|
|
6468
6480
|
/* @__PURE__ */ e(Kn, { asChild: !0, children: /* @__PURE__ */ e(
|
|
6469
6481
|
"button",
|
|
@@ -6506,7 +6518,7 @@ function gl() {
|
|
|
6506
6518
|
] })
|
|
6507
6519
|
] });
|
|
6508
6520
|
}
|
|
6509
|
-
function
|
|
6521
|
+
function bl() {
|
|
6510
6522
|
return /* @__PURE__ */ u("div", { className: "flex items-center gap-2.5 rounded-md px-2 py-1.5", children: [
|
|
6511
6523
|
/* @__PURE__ */ e(Re, { fallback: "BO", size: "sm", status: "online" }),
|
|
6512
6524
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -6515,18 +6527,18 @@ function pl() {
|
|
|
6515
6527
|
] })
|
|
6516
6528
|
] });
|
|
6517
6529
|
}
|
|
6518
|
-
const
|
|
6530
|
+
const xl = [
|
|
6519
6531
|
{ label: "Active users", value: "2,840", delta: { value: "+12%", positive: !0 } },
|
|
6520
6532
|
{ label: "Sessions today", value: "8,402", delta: { value: "+4%", positive: !0 } },
|
|
6521
6533
|
{ label: "Open issues", value: "14", delta: { value: "−6%", positive: !0 } },
|
|
6522
6534
|
{ label: "Error rate", value: "0.32%", delta: { value: "+0.05%", positive: !1 } }
|
|
6523
|
-
],
|
|
6535
|
+
], vl = [
|
|
6524
6536
|
{ id: "1", who: { name: "Anu B.", initials: "AB" }, action: "merged", target: "feat/segments", when: "12m ago" },
|
|
6525
6537
|
{ id: "2", who: { name: "Bat E.", initials: "BE" }, action: "opened", target: "fix/login-flow", when: "34m ago" },
|
|
6526
6538
|
{ id: "3", who: { name: "Tuya G.", initials: "TG" }, action: "commented on", target: "Q2 OKRs", when: "1h ago" },
|
|
6527
6539
|
{ id: "4", who: { name: "Khulan O.", initials: "KO" }, action: "archived", target: "old-billing-spike", when: "3h ago" }
|
|
6528
6540
|
];
|
|
6529
|
-
function
|
|
6541
|
+
function jc() {
|
|
6530
6542
|
return /* @__PURE__ */ u("div", { className: "space-y-8", children: [
|
|
6531
6543
|
/* @__PURE__ */ u("header", { className: "flex items-end justify-between gap-4", children: [
|
|
6532
6544
|
/* @__PURE__ */ u("div", { children: [
|
|
@@ -6535,7 +6547,7 @@ function Bc() {
|
|
|
6535
6547
|
] }),
|
|
6536
6548
|
/* @__PURE__ */ e("div", { className: "hidden md:flex items-center gap-2", children: /* @__PURE__ */ e(Ce, { tone: "neutral", variant: "outline", children: "Last 7 days" }) })
|
|
6537
6549
|
] }),
|
|
6538
|
-
/* @__PURE__ */ e("section", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4", children:
|
|
6550
|
+
/* @__PURE__ */ e("section", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4", children: xl.map((n) => /* @__PURE__ */ u(be, { children: [
|
|
6539
6551
|
/* @__PURE__ */ e(Se, { className: "pb-2", children: /* @__PURE__ */ e(qe, { children: n.label }) }),
|
|
6540
6552
|
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ u("div", { className: "flex items-baseline gap-2", children: [
|
|
6541
6553
|
/* @__PURE__ */ e("span", { className: "text-2xl font-semibold tabular text-foreground", children: n.value }),
|
|
@@ -6571,7 +6583,7 @@ function Bc() {
|
|
|
6571
6583
|
/* @__PURE__ */ e(it, { children: "Target" }),
|
|
6572
6584
|
/* @__PURE__ */ e(it, { className: "text-right", children: "When" })
|
|
6573
6585
|
] }) }),
|
|
6574
|
-
/* @__PURE__ */ e(Jn, { children:
|
|
6586
|
+
/* @__PURE__ */ e(Jn, { children: vl.map((n) => /* @__PURE__ */ u(ot, { children: [
|
|
6575
6587
|
/* @__PURE__ */ e(Je, { children: /* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
6576
6588
|
/* @__PURE__ */ e(Re, { size: "xs", fallback: n.who.initials }),
|
|
6577
6589
|
/* @__PURE__ */ e("span", { className: "text-foreground", children: n.who.name })
|
|
@@ -6584,14 +6596,14 @@ function Bc() {
|
|
|
6584
6596
|
] })
|
|
6585
6597
|
] });
|
|
6586
6598
|
}
|
|
6587
|
-
const
|
|
6599
|
+
const wl = [
|
|
6588
6600
|
{ id: "profile", label: "Profile", icon: /* @__PURE__ */ e(Wn, {}) },
|
|
6589
6601
|
{ id: "security", label: "Security", icon: /* @__PURE__ */ e(Hr, {}) },
|
|
6590
6602
|
{ id: "notifications", label: "Notifications", icon: /* @__PURE__ */ e(_n, {}) },
|
|
6591
6603
|
{ id: "billing", label: "Billing", icon: /* @__PURE__ */ e(Er, {}) },
|
|
6592
6604
|
{ id: "team", label: "Team", icon: /* @__PURE__ */ e(gn, {}) }
|
|
6593
6605
|
];
|
|
6594
|
-
function
|
|
6606
|
+
function Hc() {
|
|
6595
6607
|
const [n, t] = B("profile");
|
|
6596
6608
|
return /* @__PURE__ */ u("div", { className: "mx-auto max-w-5xl space-y-8", children: [
|
|
6597
6609
|
/* @__PURE__ */ u("header", { children: [
|
|
@@ -6599,7 +6611,7 @@ function _c() {
|
|
|
6599
6611
|
/* @__PURE__ */ e("p", { className: "text-sm text-foreground-muted mt-1", children: "Manage your account, preferences, and billing." })
|
|
6600
6612
|
] }),
|
|
6601
6613
|
/* @__PURE__ */ u("div", { className: "grid gap-8 md:grid-cols-[200px_1fr]", children: [
|
|
6602
|
-
/* @__PURE__ */ e("nav", { "aria-label": "Settings sections", className: "md:sticky md:top-20 md:self-start", children: /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children:
|
|
6614
|
+
/* @__PURE__ */ e("nav", { "aria-label": "Settings sections", className: "md:sticky md:top-20 md:self-start", children: /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: wl.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ u(
|
|
6603
6615
|
"button",
|
|
6604
6616
|
{
|
|
6605
6617
|
type: "button",
|
|
@@ -6618,7 +6630,7 @@ function _c() {
|
|
|
6618
6630
|
}
|
|
6619
6631
|
) }, r.id)) }) }),
|
|
6620
6632
|
/* @__PURE__ */ u("div", { className: "space-y-8", children: [
|
|
6621
|
-
/* @__PURE__ */ e("section", { id: "profile", children: /* @__PURE__ */ u(be, { children: [
|
|
6633
|
+
/* @__PURE__ */ e("section", { id: "profile", hidden: n !== "profile", children: /* @__PURE__ */ u(be, { children: [
|
|
6622
6634
|
/* @__PURE__ */ u(Se, { children: [
|
|
6623
6635
|
/* @__PURE__ */ e(De, { children: "Profile" }),
|
|
6624
6636
|
/* @__PURE__ */ e(qe, { children: "Visible to your teammates." })
|
|
@@ -6640,7 +6652,7 @@ function _c() {
|
|
|
6640
6652
|
/* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ e(K, { children: "Save changes" }) })
|
|
6641
6653
|
] })
|
|
6642
6654
|
] }) }),
|
|
6643
|
-
/* @__PURE__ */ e("section", { id: "security", children: /* @__PURE__ */ u(be, { children: [
|
|
6655
|
+
/* @__PURE__ */ e("section", { id: "security", hidden: n !== "security", children: /* @__PURE__ */ u(be, { children: [
|
|
6644
6656
|
/* @__PURE__ */ u(Se, { children: [
|
|
6645
6657
|
/* @__PURE__ */ e(De, { children: "Security" }),
|
|
6646
6658
|
/* @__PURE__ */ e(qe, { children: "How you sign in and protect your account." })
|
|
@@ -6659,7 +6671,7 @@ function _c() {
|
|
|
6659
6671
|
/* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ e(K, { children: "Update password" }) })
|
|
6660
6672
|
] })
|
|
6661
6673
|
] }) }),
|
|
6662
|
-
/* @__PURE__ */ e("section", { id: "notifications", children: /* @__PURE__ */ u(be, { children: [
|
|
6674
|
+
/* @__PURE__ */ e("section", { id: "notifications", hidden: n !== "notifications", children: /* @__PURE__ */ u(be, { children: [
|
|
6663
6675
|
/* @__PURE__ */ u(Se, { children: [
|
|
6664
6676
|
/* @__PURE__ */ e(De, { children: "Notifications" }),
|
|
6665
6677
|
/* @__PURE__ */ e(qe, { children: "Choose what we email and ping you about." })
|
|
@@ -6672,7 +6684,7 @@ function _c() {
|
|
|
6672
6684
|
/* @__PURE__ */ e(kt, { label: "Weekly digest", description: "A Monday-morning summary of last week's activity." })
|
|
6673
6685
|
] })
|
|
6674
6686
|
] }) }),
|
|
6675
|
-
/* @__PURE__ */ e("section", { id: "billing", children: /* @__PURE__ */ u(be, { children: [
|
|
6687
|
+
/* @__PURE__ */ e("section", { id: "billing", hidden: n !== "billing", children: /* @__PURE__ */ u(be, { children: [
|
|
6676
6688
|
/* @__PURE__ */ u(Se, { children: [
|
|
6677
6689
|
/* @__PURE__ */ e(De, { children: "Billing" }),
|
|
6678
6690
|
/* @__PURE__ */ e(qe, { children: "Your plan, invoices, and payment method." })
|
|
@@ -6688,7 +6700,7 @@ function _c() {
|
|
|
6688
6700
|
] })
|
|
6689
6701
|
] })
|
|
6690
6702
|
] }) }),
|
|
6691
|
-
/* @__PURE__ */ e("section", { id: "team", children: /* @__PURE__ */ u(be, { children: [
|
|
6703
|
+
/* @__PURE__ */ e("section", { id: "team", hidden: n !== "team", children: /* @__PURE__ */ u(be, { children: [
|
|
6692
6704
|
/* @__PURE__ */ u(Se, { children: [
|
|
6693
6705
|
/* @__PURE__ */ e(De, { children: "Team" }),
|
|
6694
6706
|
/* @__PURE__ */ e(qe, { children: "Invite teammates and manage roles." })
|
|
@@ -6714,7 +6726,7 @@ function _c() {
|
|
|
6714
6726
|
] })
|
|
6715
6727
|
] });
|
|
6716
6728
|
}
|
|
6717
|
-
const
|
|
6729
|
+
const yl = [
|
|
6718
6730
|
{ id: "p1", name: "Pulse onboarding", status: "active", owner: "Anu B.", updatedAt: "2 hours ago" },
|
|
6719
6731
|
{ id: "p2", name: "Q2 OKRs rollout", status: "active", owner: "Bat E.", updatedAt: "Yesterday" },
|
|
6720
6732
|
{ id: "p3", name: "Legacy export", status: "paused", owner: "Tuya G.", updatedAt: "3 days ago" },
|
|
@@ -6725,8 +6737,8 @@ const vl = [
|
|
|
6725
6737
|
paused: { tone: "warning", label: "Paused" },
|
|
6726
6738
|
archived: { tone: "neutral", label: "Archived" }
|
|
6727
6739
|
};
|
|
6728
|
-
function
|
|
6729
|
-
const [n, t] = B(""), [r, a] = B("all"), [o, i] = B([]), [s, c] = B(1), [d, l] = B(10), p = ht(() =>
|
|
6740
|
+
function Vc() {
|
|
6741
|
+
const [n, t] = B(""), [r, a] = B("all"), [o, i] = B([]), [s, c] = B(1), [d, l] = B(10), p = ht(() => yl.filter((b) => {
|
|
6730
6742
|
const h = b.name.toLowerCase().includes(n.toLowerCase()), x = r === "all" || b.status === r;
|
|
6731
6743
|
return h && x;
|
|
6732
6744
|
}), [n, r]), g = p.length > 0 && o.length === p.length, f = o.length > 0 && !g;
|
|
@@ -6840,7 +6852,7 @@ function jc() {
|
|
|
6840
6852
|
)
|
|
6841
6853
|
] });
|
|
6842
6854
|
}
|
|
6843
|
-
function
|
|
6855
|
+
function Uc() {
|
|
6844
6856
|
return /* @__PURE__ */ u("div", { className: "space-y-6", children: [
|
|
6845
6857
|
/* @__PURE__ */ e(
|
|
6846
6858
|
Jr,
|
|
@@ -6926,7 +6938,7 @@ const Xt = [
|
|
|
6926
6938
|
{ title: "Connect data" },
|
|
6927
6939
|
{ title: "Done" }
|
|
6928
6940
|
];
|
|
6929
|
-
function
|
|
6941
|
+
function Gc() {
|
|
6930
6942
|
const [n, t] = B(0), r = () => t((o) => Math.min(o + 1, Xt.length - 1)), a = () => t((o) => Math.max(o - 1, 0));
|
|
6931
6943
|
return /* @__PURE__ */ u("div", { className: "mx-auto max-w-2xl space-y-8 py-12", children: [
|
|
6932
6944
|
/* @__PURE__ */ e(Sa, { steps: Xt, current: n }),
|
|
@@ -6989,7 +7001,7 @@ const Sr = [
|
|
|
6989
7001
|
{ title: "Invite your team", description: "You can always invite more people later." },
|
|
6990
7002
|
{ title: "Connect a data source", description: "Pick one — others can be added in settings." },
|
|
6991
7003
|
{ title: "Welcome aboard", description: "We've set up your starting dashboard." }
|
|
6992
|
-
],
|
|
7004
|
+
], Nl = [
|
|
6993
7005
|
{
|
|
6994
7006
|
name: "Starter",
|
|
6995
7007
|
price: "$0",
|
|
@@ -7027,13 +7039,13 @@ const Sr = [
|
|
|
7027
7039
|
cta: "Talk to sales"
|
|
7028
7040
|
}
|
|
7029
7041
|
];
|
|
7030
|
-
function
|
|
7042
|
+
function Wc() {
|
|
7031
7043
|
return /* @__PURE__ */ u("div", { className: "mx-auto max-w-5xl space-y-8 py-16", children: [
|
|
7032
7044
|
/* @__PURE__ */ u("header", { className: "text-center space-y-3", children: [
|
|
7033
7045
|
/* @__PURE__ */ e("h1", { className: "text-3xl font-semibold tracking-tight text-foreground", children: "Plans that scale with your team" }),
|
|
7034
7046
|
/* @__PURE__ */ e("p", { className: "text-sm text-foreground-muted max-w-xl mx-auto", children: "Start free, upgrade when you need more. All paid plans include a 14-day trial — no credit card required." })
|
|
7035
7047
|
] }),
|
|
7036
|
-
/* @__PURE__ */ e("div", { className: "grid gap-4 md:grid-cols-3", children:
|
|
7048
|
+
/* @__PURE__ */ e("div", { className: "grid gap-4 md:grid-cols-3", children: Nl.map((n) => /* @__PURE__ */ u(
|
|
7037
7049
|
"div",
|
|
7038
7050
|
{
|
|
7039
7051
|
className: m(
|
|
@@ -7070,7 +7082,7 @@ function Uc() {
|
|
|
7070
7082
|
)) })
|
|
7071
7083
|
] });
|
|
7072
7084
|
}
|
|
7073
|
-
const
|
|
7085
|
+
const Sl = [
|
|
7074
7086
|
{
|
|
7075
7087
|
icon: /* @__PURE__ */ e(tn, {}),
|
|
7076
7088
|
title: "Create a project",
|
|
@@ -7090,7 +7102,7 @@ const yl = [
|
|
|
7090
7102
|
cta: "Invite people"
|
|
7091
7103
|
}
|
|
7092
7104
|
];
|
|
7093
|
-
function
|
|
7105
|
+
function qc() {
|
|
7094
7106
|
return /* @__PURE__ */ u("div", { className: "mx-auto max-w-3xl space-y-8 py-12", children: [
|
|
7095
7107
|
/* @__PURE__ */ e(
|
|
7096
7108
|
Zn,
|
|
@@ -7101,7 +7113,7 @@ function Gc() {
|
|
|
7101
7113
|
action: /* @__PURE__ */ e(K, { trailingIcon: /* @__PURE__ */ e(Et, {}), children: "Open tutorial" })
|
|
7102
7114
|
}
|
|
7103
7115
|
),
|
|
7104
|
-
/* @__PURE__ */ e("div", { className: "grid gap-3 md:grid-cols-3", children:
|
|
7116
|
+
/* @__PURE__ */ e("div", { className: "grid gap-3 md:grid-cols-3", children: Sl.map((n) => /* @__PURE__ */ e(be, { variant: "interactive", children: /* @__PURE__ */ u(ke, { className: "space-y-3", children: [
|
|
7105
7117
|
/* @__PURE__ */ e("div", { className: "inline-flex size-9 items-center justify-center rounded-md bg-accent-soft text-on-accent-soft [&_svg]:size-4", children: n.icon }),
|
|
7106
7118
|
/* @__PURE__ */ u("div", { className: "space-y-1", children: [
|
|
7107
7119
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-foreground", children: n.title }),
|
|
@@ -7112,18 +7124,18 @@ function Gc() {
|
|
|
7112
7124
|
] });
|
|
7113
7125
|
}
|
|
7114
7126
|
export {
|
|
7115
|
-
|
|
7127
|
+
Bl as Accordion,
|
|
7116
7128
|
fo as AccordionContent,
|
|
7117
7129
|
co as AccordionItem,
|
|
7118
7130
|
uo as AccordionTrigger,
|
|
7119
7131
|
hn as Alert,
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7132
|
+
_c as AppShell,
|
|
7133
|
+
bc as AreaChart,
|
|
7134
|
+
Oc as AuthLayout,
|
|
7123
7135
|
Re as Avatar,
|
|
7124
7136
|
bo as AvatarGroup,
|
|
7125
7137
|
Ce as Badge,
|
|
7126
|
-
|
|
7138
|
+
xc as BarChart,
|
|
7127
7139
|
Jr as Breadcrumbs,
|
|
7128
7140
|
K as Button,
|
|
7129
7141
|
na as Calendar,
|
|
@@ -7133,41 +7145,41 @@ export {
|
|
|
7133
7145
|
No as CardFooter,
|
|
7134
7146
|
Se as CardHeader,
|
|
7135
7147
|
De as CardTitle,
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7148
|
+
uc as Carousel,
|
|
7149
|
+
fc as CarouselContent,
|
|
7150
|
+
mc as CarouselItem,
|
|
7151
|
+
pc as CarouselNext,
|
|
7152
|
+
gc as CarouselPrevious,
|
|
7141
7153
|
Qt as Checkbox,
|
|
7142
7154
|
So as Combobox,
|
|
7143
7155
|
ko as Command,
|
|
7144
|
-
|
|
7156
|
+
jl as CommandDialog,
|
|
7145
7157
|
Do as CommandEmpty,
|
|
7146
7158
|
Io as CommandGroup,
|
|
7147
7159
|
Co as CommandInput,
|
|
7148
7160
|
Mo as CommandItem,
|
|
7149
7161
|
To as CommandList,
|
|
7150
7162
|
zo as CommandSeparator,
|
|
7151
|
-
|
|
7163
|
+
_l as CommandShortcut,
|
|
7152
7164
|
ri as ConfirmationDialog,
|
|
7153
|
-
|
|
7165
|
+
Vl as ContextMenu,
|
|
7154
7166
|
Lo as ContextMenuCheckboxItem,
|
|
7155
7167
|
Ro as ContextMenuContent,
|
|
7156
|
-
|
|
7168
|
+
Gl as ContextMenuGroup,
|
|
7157
7169
|
Oo as ContextMenuItem,
|
|
7158
7170
|
Fo as ContextMenuLabel,
|
|
7159
7171
|
Po as ContextMenuPortal,
|
|
7160
|
-
|
|
7172
|
+
ql as ContextMenuRadioGroup,
|
|
7161
7173
|
$o as ContextMenuRadioItem,
|
|
7162
7174
|
Bo as ContextMenuSeparator,
|
|
7163
7175
|
_o as ContextMenuShortcut,
|
|
7164
|
-
|
|
7176
|
+
Wl as ContextMenuSub,
|
|
7165
7177
|
Ao as ContextMenuSubContent,
|
|
7166
7178
|
Eo as ContextMenuSubTrigger,
|
|
7167
|
-
|
|
7168
|
-
|
|
7179
|
+
Ul as ContextMenuTrigger,
|
|
7180
|
+
jc as Dashboard,
|
|
7169
7181
|
Qo as DataGrid,
|
|
7170
|
-
|
|
7182
|
+
Vc as DataTablePage,
|
|
7171
7183
|
Jo as DatePicker,
|
|
7172
7184
|
Zo as DateRangePicker,
|
|
7173
7185
|
ei as Dialog,
|
|
@@ -7179,64 +7191,64 @@ export {
|
|
|
7179
7191
|
aa as DialogOverlay,
|
|
7180
7192
|
ti as DialogPortal,
|
|
7181
7193
|
la as DialogTitle,
|
|
7182
|
-
|
|
7194
|
+
Ql as DialogTrigger,
|
|
7183
7195
|
il as Drawer,
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7196
|
+
wc as DrawerClose,
|
|
7197
|
+
yc as DrawerContent,
|
|
7198
|
+
Cc as DrawerDescription,
|
|
7199
|
+
Sc as DrawerFooter,
|
|
7200
|
+
Nc as DrawerHeader,
|
|
7189
7201
|
ll as DrawerOverlay,
|
|
7190
7202
|
sl as DrawerPortal,
|
|
7191
|
-
|
|
7192
|
-
|
|
7203
|
+
kc as DrawerTitle,
|
|
7204
|
+
vc as DrawerTrigger,
|
|
7193
7205
|
qn as DropdownMenu,
|
|
7194
7206
|
Zr as DropdownMenuCheckboxItem,
|
|
7195
7207
|
vn as DropdownMenuContent,
|
|
7196
|
-
|
|
7208
|
+
Kl as DropdownMenuGroup,
|
|
7197
7209
|
ft as DropdownMenuItem,
|
|
7198
7210
|
Yn as DropdownMenuLabel,
|
|
7199
7211
|
jo as DropdownMenuPortal,
|
|
7200
|
-
|
|
7212
|
+
Xl as DropdownMenuRadioGroup,
|
|
7201
7213
|
Uo as DropdownMenuRadioItem,
|
|
7202
7214
|
zt as DropdownMenuSeparator,
|
|
7203
7215
|
Go as DropdownMenuShortcut,
|
|
7204
|
-
|
|
7216
|
+
Yl as DropdownMenuSub,
|
|
7205
7217
|
Vo as DropdownMenuSubContent,
|
|
7206
7218
|
Ho as DropdownMenuSubTrigger,
|
|
7207
7219
|
Kn as DropdownMenuTrigger,
|
|
7208
7220
|
Zn as EmptyState,
|
|
7209
7221
|
oi as ErrorState,
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7222
|
+
Tc as FileUpload,
|
|
7223
|
+
qc as FirstRunEmpty,
|
|
7224
|
+
Fc as ForgotPasswordForm,
|
|
7225
|
+
Jl as Form,
|
|
7214
7226
|
li as FormControl,
|
|
7215
7227
|
ci as FormDescription,
|
|
7216
7228
|
di as FormError,
|
|
7217
|
-
|
|
7229
|
+
Zl as FormField,
|
|
7218
7230
|
ii as FormItem,
|
|
7219
7231
|
si as FormLabel,
|
|
7220
7232
|
wn as IconButton,
|
|
7221
|
-
|
|
7233
|
+
Fl as Icons,
|
|
7222
7234
|
le as Input,
|
|
7223
7235
|
fa as Kbd,
|
|
7224
|
-
|
|
7225
|
-
|
|
7236
|
+
hc as LineChart,
|
|
7237
|
+
Bc as MagicLinkSent,
|
|
7226
7238
|
ui as MultiSelect,
|
|
7227
|
-
|
|
7239
|
+
Gc as Onboarding,
|
|
7228
7240
|
xa as Pagination,
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7241
|
+
tc as Popover,
|
|
7242
|
+
rc as PopoverAnchor,
|
|
7243
|
+
ac as PopoverClose,
|
|
7232
7244
|
pi as PopoverContent,
|
|
7233
|
-
|
|
7234
|
-
|
|
7245
|
+
nc as PopoverTrigger,
|
|
7246
|
+
Wc as Pricing,
|
|
7235
7247
|
xi as Progress,
|
|
7236
7248
|
wi as ProgressCircle,
|
|
7237
7249
|
va as RadioGroup,
|
|
7238
7250
|
Zt as RadioItem,
|
|
7239
|
-
|
|
7251
|
+
Uc as RecordDetail,
|
|
7240
7252
|
yi as ScrollArea,
|
|
7241
7253
|
wa as ScrollBar,
|
|
7242
7254
|
ma as Select,
|
|
@@ -7248,27 +7260,27 @@ export {
|
|
|
7248
7260
|
pa as SelectScrollUpButton,
|
|
7249
7261
|
fi as SelectSeparator,
|
|
7250
7262
|
er as SelectTrigger,
|
|
7251
|
-
|
|
7263
|
+
ec as SelectValue,
|
|
7252
7264
|
gt as Separator,
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7265
|
+
Hc as SettingsPage,
|
|
7266
|
+
oc as Sheet,
|
|
7267
|
+
sc as SheetClose,
|
|
7256
7268
|
ki as SheetContent,
|
|
7257
7269
|
Ii as SheetDescription,
|
|
7258
7270
|
Ti as SheetFooter,
|
|
7259
7271
|
Ci as SheetHeader,
|
|
7260
7272
|
Ni as SheetPortal,
|
|
7261
7273
|
Di as SheetTitle,
|
|
7262
|
-
|
|
7274
|
+
ic as SheetTrigger,
|
|
7263
7275
|
Na as Sidebar,
|
|
7264
7276
|
zi as SidebarGroup,
|
|
7265
7277
|
Ae as SidebarItem,
|
|
7266
7278
|
en as SidebarSection,
|
|
7267
|
-
|
|
7268
|
-
|
|
7279
|
+
Lc as SignInForm,
|
|
7280
|
+
$c as SignUpForm,
|
|
7269
7281
|
ta as Skeleton,
|
|
7270
7282
|
Mi as Slider,
|
|
7271
|
-
|
|
7283
|
+
Dc as Snackbar,
|
|
7272
7284
|
Ai as Spinner,
|
|
7273
7285
|
Sa as Stepper,
|
|
7274
7286
|
kt as Switch,
|
|
@@ -7285,37 +7297,37 @@ export {
|
|
|
7285
7297
|
Tt as TabsContent,
|
|
7286
7298
|
ka as TabsList,
|
|
7287
7299
|
Ct as TabsTrigger,
|
|
7288
|
-
|
|
7300
|
+
Ic as TagInput,
|
|
7289
7301
|
Fi as Textarea,
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7302
|
+
zc as Timeline,
|
|
7303
|
+
Ac as TimelineDescription,
|
|
7304
|
+
Mc as TimelineItem,
|
|
7305
|
+
Pc as TimelineTime,
|
|
7306
|
+
Ec as TimelineTitle,
|
|
7295
7307
|
Hi as Toast,
|
|
7296
7308
|
Gi as ToastAction,
|
|
7297
7309
|
Wi as ToastClose,
|
|
7298
7310
|
Ui as ToastDescription,
|
|
7299
|
-
|
|
7311
|
+
cc as ToastProvider,
|
|
7300
7312
|
Vi as ToastTitle,
|
|
7301
7313
|
Bi as ToastViewport,
|
|
7302
7314
|
Yi as Tooltip,
|
|
7303
7315
|
Ca as TooltipContent,
|
|
7304
|
-
|
|
7316
|
+
dc as TooltipProvider,
|
|
7305
7317
|
qi as TooltipRoot,
|
|
7306
7318
|
Ki as TooltipTrigger,
|
|
7307
7319
|
Xi as TopNav,
|
|
7308
7320
|
Qi as TopNavLink,
|
|
7309
|
-
|
|
7321
|
+
Rc as Tree,
|
|
7310
7322
|
m as cn,
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7323
|
+
Xc as cva,
|
|
7324
|
+
$l as toast,
|
|
7325
|
+
Rl as uid,
|
|
7326
|
+
Hl as useCommandPaletteShortcut,
|
|
7315
7327
|
yn as useFormField,
|
|
7316
7328
|
lo as useMediaQuery,
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7329
|
+
Ol as usePrefersReducedMotion,
|
|
7330
|
+
lc as useSidebar,
|
|
7331
|
+
Ll as useToast
|
|
7320
7332
|
};
|
|
7321
7333
|
//# sourceMappingURL=index.js.map
|