@craftzbay/ui 0.5.0 → 0.6.1
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/patterns/AppShell.d.ts +142 -4
- package/dist-lib/components/ui/EmptyState.d.ts +22 -7
- package/dist-lib/components/ui/ErrorState.d.ts +15 -4
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +1075 -985
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/showcase/guides/DarkMode.d.ts +1 -0
- package/dist-lib/showcase/guides/Forms.d.ts +1 -0
- package/dist-lib/showcase/guides/Responsive.d.ts +1 -0
- package/dist-lib/showcase/guides/Theming.d.ts +1 -0
- package/dist-lib/showcase/layout/DocLayout.d.ts +7 -1
- package/dist-lib/showcase/layout/DocSidebar.d.ts +7 -1
- 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,53 +1,53 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { useState as w, useEffect as
|
|
4
|
-
import { AlertCircle as
|
|
5
|
-
import { jsxs as s, jsx as e, Fragment as
|
|
6
|
-
import * as
|
|
1
|
+
import { clsx as Qr } from "clsx";
|
|
2
|
+
import { twMerge as Xr } from "tailwind-merge";
|
|
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 jt, Bell as dt, Bookmark as Et, 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 Ge, Circle as mt, Copy as en, CornerDownLeft as tn, CreditCard as Rt, Download as Bt, Edit2 as Vt, Ellipsis as rn, ExternalLink as Gt, Eye as Ht, EyeOff as Ut, Filter as Wt, Folder as He, 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
|
+
import { jsxs as s, jsx as e, Fragment as te } from "react/jsx-runtime";
|
|
6
|
+
import * as Te from "@radix-ui/react-accordion";
|
|
7
7
|
import { cva as Y } from "class-variance-authority";
|
|
8
|
-
import { cva as
|
|
9
|
-
import * as
|
|
10
|
-
import { Slot as
|
|
11
|
-
import * as
|
|
8
|
+
import { cva as gi } from "class-variance-authority";
|
|
9
|
+
import * as ot from "@radix-ui/react-avatar";
|
|
10
|
+
import { Slot as or } from "@radix-ui/react-slot";
|
|
11
|
+
import * as Tt from "@radix-ui/react-checkbox";
|
|
12
12
|
import * as A from "@radix-ui/react-popover";
|
|
13
13
|
import { Command as $ } from "cmdk";
|
|
14
14
|
import * as D from "@radix-ui/react-dialog";
|
|
15
15
|
import * as R from "@radix-ui/react-context-menu";
|
|
16
|
-
import * as
|
|
17
|
-
import { DayPicker as
|
|
18
|
-
import * as
|
|
19
|
-
import { FormProvider as
|
|
16
|
+
import * as B from "@radix-ui/react-dropdown-menu";
|
|
17
|
+
import { DayPicker as cn } from "react-day-picker";
|
|
18
|
+
import * as un from "@radix-ui/react-label";
|
|
19
|
+
import { FormProvider as mn, Controller as fn, useFormContext as gn } from "react-hook-form";
|
|
20
20
|
import * as O from "@radix-ui/react-select";
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import
|
|
31
|
-
import { Drawer as
|
|
21
|
+
import * as It from "@radix-ui/react-progress";
|
|
22
|
+
import * as it from "@radix-ui/react-radio-group";
|
|
23
|
+
import * as Se from "@radix-ui/react-scroll-area";
|
|
24
|
+
import * as hn from "@radix-ui/react-separator";
|
|
25
|
+
import * as _e from "@radix-ui/react-slider";
|
|
26
|
+
import * as Mt from "@radix-ui/react-switch";
|
|
27
|
+
import * as Je from "@radix-ui/react-tabs";
|
|
28
|
+
import * as he from "@radix-ui/react-toast";
|
|
29
|
+
import * as Ie from "@radix-ui/react-tooltip";
|
|
30
|
+
import pn from "embla-carousel-react";
|
|
31
|
+
import { Drawer as ce } from "vaul";
|
|
32
32
|
function l(...a) {
|
|
33
|
-
return
|
|
33
|
+
return Xr(Qr(a));
|
|
34
34
|
}
|
|
35
|
-
let
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
let Dt = 0;
|
|
36
|
+
function Yo(a = "ds") {
|
|
37
|
+
return Dt += 1, `${a}-${Dt}`;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function bn(a) {
|
|
40
40
|
const [t, r] = w(() => typeof window > "u" ? !1 : window.matchMedia(a).matches);
|
|
41
|
-
return
|
|
41
|
+
return ve(() => {
|
|
42
42
|
if (typeof window > "u") return;
|
|
43
43
|
const n = window.matchMedia(a), o = (i) => r(i.matches);
|
|
44
44
|
return r(n.matches), n.addEventListener("change", o), () => n.removeEventListener("change", o);
|
|
45
45
|
}, [a]), t;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function Jo() {
|
|
48
|
+
return bn("(prefers-reduced-motion: reduce)");
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const ue = {
|
|
51
51
|
toasts: [],
|
|
52
52
|
listeners: /* @__PURE__ */ new Set(),
|
|
53
53
|
emit() {
|
|
@@ -64,82 +64,82 @@ const me = {
|
|
|
64
64
|
this.toasts = this.toasts.filter((t) => t.id !== a), this.emit();
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
function
|
|
68
|
-
const [a, t] = w(() => [...
|
|
69
|
-
|
|
67
|
+
function Zo() {
|
|
68
|
+
const [a, t] = w(() => [...ue.toasts]);
|
|
69
|
+
ve(() => {
|
|
70
70
|
const i = (d) => t([...d]);
|
|
71
|
-
return
|
|
72
|
-
|
|
71
|
+
return ue.listeners.add(i), () => {
|
|
72
|
+
ue.listeners.delete(i);
|
|
73
73
|
};
|
|
74
74
|
}, []);
|
|
75
|
-
const r =
|
|
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 es = (a) => ue.push(a), ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
79
79
|
__proto__: null,
|
|
80
|
-
AlertCircle:
|
|
81
|
-
AlertTriangle:
|
|
82
|
-
ArrowDown:
|
|
83
|
-
ArrowLeft:
|
|
84
|
-
ArrowRight:
|
|
85
|
-
ArrowUp:
|
|
86
|
-
ArrowUpDown:
|
|
87
|
-
AtSign:
|
|
88
|
-
BarChart3:
|
|
89
|
-
Bell:
|
|
80
|
+
AlertCircle: Jr,
|
|
81
|
+
AlertTriangle: Re,
|
|
82
|
+
ArrowDown: _t,
|
|
83
|
+
ArrowLeft: At,
|
|
84
|
+
ArrowRight: ze,
|
|
85
|
+
ArrowUp: Ft,
|
|
86
|
+
ArrowUpDown: Lt,
|
|
87
|
+
AtSign: Zr,
|
|
88
|
+
BarChart3: jt,
|
|
89
|
+
Bell: dt,
|
|
90
90
|
Bookmark: Et,
|
|
91
|
-
Calendar:
|
|
92
|
-
Check:
|
|
93
|
-
CheckCircle2:
|
|
94
|
-
ChevronDown:
|
|
95
|
-
ChevronLeft:
|
|
96
|
-
ChevronRight:
|
|
97
|
-
ChevronUp:
|
|
98
|
-
ChevronsLeft:
|
|
99
|
-
ChevronsRight:
|
|
100
|
-
ChevronsUpDown:
|
|
101
|
-
Circle:
|
|
102
|
-
Copy:
|
|
103
|
-
CornerDownLeft:
|
|
104
|
-
CreditCard:
|
|
105
|
-
Download:
|
|
106
|
-
Edit2:
|
|
107
|
-
Ellipsis:
|
|
108
|
-
ExternalLink:
|
|
109
|
-
Eye:
|
|
110
|
-
EyeOff:
|
|
111
|
-
Filter:
|
|
112
|
-
Folder:
|
|
113
|
-
GripVertical:
|
|
114
|
-
HelpCircle:
|
|
115
|
-
Home:
|
|
116
|
-
Inbox:
|
|
117
|
-
Info:
|
|
118
|
-
LayoutGrid:
|
|
119
|
-
Link2:
|
|
120
|
-
Loader2:
|
|
121
|
-
Lock:
|
|
122
|
-
LogOut:
|
|
123
|
-
Mail:
|
|
124
|
-
Menu:
|
|
125
|
-
Minus:
|
|
126
|
-
Moon:
|
|
127
|
-
MoreHorizontal:
|
|
128
|
-
Package:
|
|
129
|
-
Plug:
|
|
130
|
-
Plus:
|
|
131
|
-
Search:
|
|
132
|
-
Settings:
|
|
133
|
-
Sparkles:
|
|
134
|
-
Sun:
|
|
135
|
-
Trash2:
|
|
136
|
-
Upload:
|
|
137
|
-
User:
|
|
138
|
-
Users:
|
|
91
|
+
Calendar: $t,
|
|
92
|
+
Check: ie,
|
|
93
|
+
CheckCircle2: Ne,
|
|
94
|
+
ChevronDown: Be,
|
|
95
|
+
ChevronLeft: Ve,
|
|
96
|
+
ChevronRight: se,
|
|
97
|
+
ChevronUp: Ot,
|
|
98
|
+
ChevronsLeft: ct,
|
|
99
|
+
ChevronsRight: ut,
|
|
100
|
+
ChevronsUpDown: Ge,
|
|
101
|
+
Circle: mt,
|
|
102
|
+
Copy: en,
|
|
103
|
+
CornerDownLeft: tn,
|
|
104
|
+
CreditCard: Rt,
|
|
105
|
+
Download: Bt,
|
|
106
|
+
Edit2: Vt,
|
|
107
|
+
Ellipsis: rn,
|
|
108
|
+
ExternalLink: Gt,
|
|
109
|
+
Eye: Ht,
|
|
110
|
+
EyeOff: Ut,
|
|
111
|
+
Filter: Wt,
|
|
112
|
+
Folder: He,
|
|
113
|
+
GripVertical: nn,
|
|
114
|
+
HelpCircle: ft,
|
|
115
|
+
Home: Kt,
|
|
116
|
+
Inbox: qt,
|
|
117
|
+
Info: Ue,
|
|
118
|
+
LayoutGrid: Qt,
|
|
119
|
+
Link2: an,
|
|
120
|
+
Loader2: We,
|
|
121
|
+
Lock: Xt,
|
|
122
|
+
LogOut: Yt,
|
|
123
|
+
Mail: Jt,
|
|
124
|
+
Menu: Zt,
|
|
125
|
+
Minus: er,
|
|
126
|
+
Moon: on,
|
|
127
|
+
MoreHorizontal: tr,
|
|
128
|
+
Package: sn,
|
|
129
|
+
Plug: rr,
|
|
130
|
+
Plus: gt,
|
|
131
|
+
Search: Ke,
|
|
132
|
+
Settings: qe,
|
|
133
|
+
Sparkles: nr,
|
|
134
|
+
Sun: ln,
|
|
135
|
+
Trash2: ht,
|
|
136
|
+
Upload: Qe,
|
|
137
|
+
User: pt,
|
|
138
|
+
Users: Xe,
|
|
139
139
|
X,
|
|
140
|
-
XCircle:
|
|
140
|
+
XCircle: Ye
|
|
141
141
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
142
|
-
function
|
|
142
|
+
function ye({ className: a, children: t, ...r }) {
|
|
143
143
|
return /* @__PURE__ */ e(
|
|
144
144
|
"svg",
|
|
145
145
|
{
|
|
@@ -159,8 +159,8 @@ function Se({ className: a, children: t, ...r }) {
|
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
return /* @__PURE__ */ s(
|
|
162
|
+
function sr(a) {
|
|
163
|
+
return /* @__PURE__ */ s(ye, { ...a, children: [
|
|
164
164
|
/* @__PURE__ */ e("path", { d: "M22 56l10-28a6 6 0 0 1 6-4h44a6 6 0 0 1 6 4l10 28" }),
|
|
165
165
|
/* @__PURE__ */ e("path", { d: "M22 56v32a6 6 0 0 0 6 6h64a6 6 0 0 0 6-6V56" }),
|
|
166
166
|
/* @__PURE__ */ e("path", { d: "M22 56h22l4 10h24l4-10h22" }),
|
|
@@ -168,8 +168,8 @@ function gn(a) {
|
|
|
168
168
|
/* @__PURE__ */ e("path", { d: "M52 28l8 8M68 28l-8 8", opacity: "0.4" })
|
|
169
169
|
] });
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return /* @__PURE__ */ s(
|
|
171
|
+
function xn(a) {
|
|
172
|
+
return /* @__PURE__ */ s(ye, { ...a, children: [
|
|
173
173
|
/* @__PURE__ */ e("circle", { cx: "52", cy: "52", r: "26" }),
|
|
174
174
|
/* @__PURE__ */ e("path", { d: "M72 72l20 20" }),
|
|
175
175
|
/* @__PURE__ */ e("path", { d: "M42 52h20", opacity: "0.5" }),
|
|
@@ -177,8 +177,8 @@ function hn(a) {
|
|
|
177
177
|
/* @__PURE__ */ e("circle", { cx: "20", cy: "92", r: "1.5", className: "text-accent", stroke: "currentColor" })
|
|
178
178
|
] });
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
return /* @__PURE__ */ s(
|
|
180
|
+
function ir(a) {
|
|
181
|
+
return /* @__PURE__ */ s(ye, { ...a, children: [
|
|
182
182
|
/* @__PURE__ */ e("path", { d: "M22 32h76v56a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V32z" }),
|
|
183
183
|
/* @__PURE__ */ e("path", { d: "M22 44h76" }),
|
|
184
184
|
/* @__PURE__ */ e("circle", { cx: "32", cy: "38", r: "1.5" }),
|
|
@@ -201,8 +201,8 @@ function pn(a) {
|
|
|
201
201
|
)
|
|
202
202
|
] });
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
return /* @__PURE__ */ s(
|
|
204
|
+
function lr(a) {
|
|
205
|
+
return /* @__PURE__ */ s(ye, { ...a, children: [
|
|
206
206
|
/* @__PURE__ */ e("rect", { x: "22", y: "28", width: "76", height: "20", rx: "3" }),
|
|
207
207
|
/* @__PURE__ */ e("rect", { x: "22", y: "54", width: "76", height: "20", rx: "3" }),
|
|
208
208
|
/* @__PURE__ */ e("rect", { x: "22", y: "80", width: "76", height: "20", rx: "3" }),
|
|
@@ -213,8 +213,8 @@ function bn(a) {
|
|
|
213
213
|
/* @__PURE__ */ e("path", { d: "M82 84l16 16M82 100l16-16", className: "text-danger", stroke: "currentColor" })
|
|
214
214
|
] });
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
return /* @__PURE__ */ s(
|
|
216
|
+
function vn(a) {
|
|
217
|
+
return /* @__PURE__ */ s(ye, { ...a, children: [
|
|
218
218
|
/* @__PURE__ */ e("path", { d: "M22 86h76" }),
|
|
219
219
|
/* @__PURE__ */ e("path", { d: "M30 86V52l30-22 30 22v34" }),
|
|
220
220
|
/* @__PURE__ */ e("rect", { x: "40", y: "64", width: "14", height: "14", rx: "1" }),
|
|
@@ -223,8 +223,8 @@ function xn(a) {
|
|
|
223
223
|
/* @__PURE__ */ e("path", { d: "M40 40v6M50 36v10M70 36v10M80 40v6", className: "text-accent", stroke: "currentColor" })
|
|
224
224
|
] });
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
return /* @__PURE__ */ s(
|
|
226
|
+
function dr(a) {
|
|
227
|
+
return /* @__PURE__ */ s(ye, { ...a, children: [
|
|
228
228
|
/* @__PURE__ */ e("path", { d: "M22 60a40 40 0 0 1 76 0", opacity: "0.4" }),
|
|
229
229
|
/* @__PURE__ */ e("path", { d: "M34 70a28 28 0 0 1 52 0", opacity: "0.6" }),
|
|
230
230
|
/* @__PURE__ */ e("path", { d: "M46 80a16 16 0 0 1 28 0" }),
|
|
@@ -232,21 +232,21 @@ function vn(a) {
|
|
|
232
232
|
/* @__PURE__ */ e("path", { d: "M20 20l80 80", className: "text-danger", stroke: "currentColor" })
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
236
236
|
__proto__: null,
|
|
237
|
-
ConnectionLost:
|
|
238
|
-
Construction:
|
|
239
|
-
InboxEmpty:
|
|
240
|
-
NoSearchResults:
|
|
241
|
-
NotFound:
|
|
242
|
-
ServerError:
|
|
243
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
244
|
-
return /* @__PURE__ */ e(
|
|
237
|
+
ConnectionLost: dr,
|
|
238
|
+
Construction: vn,
|
|
239
|
+
InboxEmpty: sr,
|
|
240
|
+
NoSearchResults: xn,
|
|
241
|
+
NotFound: ir,
|
|
242
|
+
ServerError: lr
|
|
243
|
+
}, Symbol.toStringTag, { value: "Module" })), ns = Te.Root, Nn = m(function({ className: t, ...r }, n) {
|
|
244
|
+
return /* @__PURE__ */ e(Te.Item, { ref: n, className: l("border-b border-border", t), ...r });
|
|
245
245
|
});
|
|
246
246
|
Nn.displayName = "AccordionItem";
|
|
247
247
|
const yn = m(function({ className: t, children: r, ...n }, o) {
|
|
248
|
-
return /* @__PURE__ */ e(
|
|
249
|
-
|
|
248
|
+
return /* @__PURE__ */ e(Te.Header, { className: "flex", children: /* @__PURE__ */ s(
|
|
249
|
+
Te.Trigger,
|
|
250
250
|
{
|
|
251
251
|
ref: o,
|
|
252
252
|
className: l(
|
|
@@ -261,7 +261,7 @@ const yn = m(function({ className: t, children: r, ...n }, o) {
|
|
|
261
261
|
children: [
|
|
262
262
|
r,
|
|
263
263
|
/* @__PURE__ */ e(
|
|
264
|
-
|
|
264
|
+
Be,
|
|
265
265
|
{
|
|
266
266
|
className: "size-4 shrink-0 text-foreground-subtle transition-transform duration-[var(--duration-base)]",
|
|
267
267
|
"aria-hidden": !0
|
|
@@ -274,7 +274,7 @@ const yn = m(function({ className: t, children: r, ...n }, o) {
|
|
|
274
274
|
yn.displayName = "AccordionTrigger";
|
|
275
275
|
const wn = m(function({ className: t, children: r, ...n }, o) {
|
|
276
276
|
return /* @__PURE__ */ e(
|
|
277
|
-
|
|
277
|
+
Te.Content,
|
|
278
278
|
{
|
|
279
279
|
ref: o,
|
|
280
280
|
className: l(
|
|
@@ -303,11 +303,11 @@ const kn = Y(
|
|
|
303
303
|
}
|
|
304
304
|
), Cn = {
|
|
305
305
|
default: null,
|
|
306
|
-
info: /* @__PURE__ */ e(
|
|
307
|
-
success: /* @__PURE__ */ e(
|
|
308
|
-
warning: /* @__PURE__ */ e(
|
|
309
|
-
danger: /* @__PURE__ */ e(
|
|
310
|
-
},
|
|
306
|
+
info: /* @__PURE__ */ e(Ue, { className: "size-4 shrink-0 mt-0.5", "aria-hidden": !0 }),
|
|
307
|
+
success: /* @__PURE__ */ e(Ne, { className: "size-4 shrink-0 mt-0.5", "aria-hidden": !0 }),
|
|
308
|
+
warning: /* @__PURE__ */ e(Re, { className: "size-4 shrink-0 mt-0.5", "aria-hidden": !0 }),
|
|
309
|
+
danger: /* @__PURE__ */ e(Ye, { className: "size-4 shrink-0 mt-0.5", "aria-hidden": !0 })
|
|
310
|
+
}, Ze = m(function({ className: t, variant: r = "default", title: n, dismissible: o, onDismiss: i, icon: d, children: u, ...f }, c) {
|
|
311
311
|
const [h, b] = w(!0);
|
|
312
312
|
if (!h) return null;
|
|
313
313
|
const g = () => {
|
|
@@ -335,7 +335,7 @@ const kn = Y(
|
|
|
335
335
|
)
|
|
336
336
|
] });
|
|
337
337
|
});
|
|
338
|
-
|
|
338
|
+
Ze.displayName = "Alert";
|
|
339
339
|
const cr = {
|
|
340
340
|
xs: "size-5 text-[10px]",
|
|
341
341
|
sm: "size-6 text-xs",
|
|
@@ -350,11 +350,11 @@ const cr = {
|
|
|
350
350
|
busy: "bg-danger",
|
|
351
351
|
away: "bg-warning",
|
|
352
352
|
offline: "bg-foreground-subtle"
|
|
353
|
-
},
|
|
353
|
+
}, Z = m(
|
|
354
354
|
function({ className: t, size: r, src: n, alt: o, fallback: i, status: d, ...u }, f) {
|
|
355
355
|
return /* @__PURE__ */ s("span", { className: Sn({ size: r }), children: [
|
|
356
356
|
/* @__PURE__ */ s(
|
|
357
|
-
|
|
357
|
+
ot.Root,
|
|
358
358
|
{
|
|
359
359
|
ref: f,
|
|
360
360
|
className: l(
|
|
@@ -364,7 +364,7 @@ const cr = {
|
|
|
364
364
|
...u,
|
|
365
365
|
children: [
|
|
366
366
|
n && /* @__PURE__ */ e(
|
|
367
|
-
|
|
367
|
+
ot.Image,
|
|
368
368
|
{
|
|
369
369
|
src: n,
|
|
370
370
|
alt: o ?? "",
|
|
@@ -372,7 +372,7 @@ const cr = {
|
|
|
372
372
|
}
|
|
373
373
|
),
|
|
374
374
|
/* @__PURE__ */ e(
|
|
375
|
-
|
|
375
|
+
ot.Fallback,
|
|
376
376
|
{
|
|
377
377
|
delayMs: n ? 200 : 0,
|
|
378
378
|
className: "flex size-full items-center justify-center bg-background-muted font-medium uppercase",
|
|
@@ -395,7 +395,7 @@ const cr = {
|
|
|
395
395
|
] });
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
|
-
|
|
398
|
+
Z.displayName = "Avatar";
|
|
399
399
|
const Tn = m(function({ max: t = 4, size: r = "md", className: n, children: o, ...i }, d) {
|
|
400
400
|
const u = Array.isArray(o) ? o : [o], f = u.slice(0, t), c = u.length - f.length;
|
|
401
401
|
return /* @__PURE__ */ s("div", { ref: d, className: l("flex items-center -space-x-2", n), ...i, children: [
|
|
@@ -463,7 +463,7 @@ const In = Y(
|
|
|
463
463
|
warning: "bg-warning",
|
|
464
464
|
danger: "bg-danger",
|
|
465
465
|
info: "bg-info"
|
|
466
|
-
},
|
|
466
|
+
}, W = m(function({ className: t, variant: r, tone: n = "neutral", dot: o, children: i, ...d }, u) {
|
|
467
467
|
return /* @__PURE__ */ s("span", { ref: u, className: l(In({ variant: r, tone: n }), t), ...d, children: [
|
|
468
468
|
o && /* @__PURE__ */ e(
|
|
469
469
|
"span",
|
|
@@ -475,15 +475,15 @@ const In = Y(
|
|
|
475
475
|
i
|
|
476
476
|
] });
|
|
477
477
|
});
|
|
478
|
-
|
|
478
|
+
W.displayName = "Badge";
|
|
479
479
|
const ur = m(function({ items: t, maxItems: r = 4, renderLink: n, className: o, ...i }, d) {
|
|
480
480
|
const f = t.length > r ? [t[0], { collapsed: !0 }, ...t.slice(-2)] : t;
|
|
481
481
|
return /* @__PURE__ */ e("nav", { ref: d, "aria-label": "Breadcrumb", className: l("text-sm", o), ...i, children: /* @__PURE__ */ e("ol", { className: "flex flex-wrap items-center gap-1.5 text-foreground-subtle", children: f.map((c, h) => {
|
|
482
482
|
const b = h === f.length - 1;
|
|
483
483
|
if ("collapsed" in c)
|
|
484
484
|
return /* @__PURE__ */ s("li", { className: "flex items-center gap-1.5", children: [
|
|
485
|
-
/* @__PURE__ */ e(
|
|
486
|
-
/* @__PURE__ */ e(
|
|
485
|
+
/* @__PURE__ */ e(tr, { className: "size-4", "aria-hidden": !0 }),
|
|
486
|
+
/* @__PURE__ */ e(se, { className: "size-3.5", "aria-hidden": !0 })
|
|
487
487
|
] }, `ellipsis-${h}`);
|
|
488
488
|
const g = c, p = b ? /* @__PURE__ */ e("span", { "aria-current": "page", className: "font-medium text-foreground", children: g.label }) : g.href ? n ? n(g.href, g.label) : /* @__PURE__ */ e(
|
|
489
489
|
"a",
|
|
@@ -495,7 +495,7 @@ const ur = m(function({ items: t, maxItems: r = 4, renderLink: n, className: o,
|
|
|
495
495
|
) : /* @__PURE__ */ e("span", { children: g.label });
|
|
496
496
|
return /* @__PURE__ */ s("li", { className: "flex items-center gap-1.5", children: [
|
|
497
497
|
p,
|
|
498
|
-
!b && /* @__PURE__ */ e(
|
|
498
|
+
!b && /* @__PURE__ */ e(se, { className: "size-3.5", "aria-hidden": !0 })
|
|
499
499
|
] }, h);
|
|
500
500
|
}) }) });
|
|
501
501
|
});
|
|
@@ -578,7 +578,7 @@ const Dn = Y(
|
|
|
578
578
|
}, g) {
|
|
579
579
|
const p = f || i, x = l(Dn({ variant: r, size: n }), t);
|
|
580
580
|
return o ? /* @__PURE__ */ e(
|
|
581
|
-
|
|
581
|
+
or,
|
|
582
582
|
{
|
|
583
583
|
ref: g,
|
|
584
584
|
"aria-busy": i || void 0,
|
|
@@ -598,7 +598,7 @@ const Dn = Y(
|
|
|
598
598
|
className: x,
|
|
599
599
|
...b,
|
|
600
600
|
children: [
|
|
601
|
-
i ? /* @__PURE__ */ e(
|
|
601
|
+
i ? /* @__PURE__ */ e(We, { className: "animate-spin", "aria-hidden": "true" }) : d,
|
|
602
602
|
c,
|
|
603
603
|
!i && u
|
|
604
604
|
]
|
|
@@ -659,7 +659,7 @@ const Q = m(
|
|
|
659
659
|
}
|
|
660
660
|
);
|
|
661
661
|
Q.displayName = "CardTitle";
|
|
662
|
-
const
|
|
662
|
+
const oe = m(function({ className: t, ...r }, n) {
|
|
663
663
|
return /* @__PURE__ */ e(
|
|
664
664
|
"p",
|
|
665
665
|
{
|
|
@@ -669,13 +669,13 @@ const se = m(function({ className: t, ...r }, n) {
|
|
|
669
669
|
}
|
|
670
670
|
);
|
|
671
671
|
});
|
|
672
|
-
|
|
673
|
-
const
|
|
672
|
+
oe.displayName = "CardDescription";
|
|
673
|
+
const U = m(
|
|
674
674
|
function({ className: t, ...r }, n) {
|
|
675
675
|
return /* @__PURE__ */ e("div", { ref: n, className: l("text-sm text-foreground", t), ...r });
|
|
676
676
|
}
|
|
677
677
|
);
|
|
678
|
-
|
|
678
|
+
U.displayName = "CardContent";
|
|
679
679
|
const _n = m(
|
|
680
680
|
function({ className: t, ...r }, n) {
|
|
681
681
|
return /* @__PURE__ */ e(
|
|
@@ -689,13 +689,13 @@ const _n = m(
|
|
|
689
689
|
}
|
|
690
690
|
);
|
|
691
691
|
_n.displayName = "CardFooter";
|
|
692
|
-
const
|
|
692
|
+
const Le = m(
|
|
693
693
|
function({ className: t, label: r, description: n, error: o, hideLabel: i, id: d, disabled: u, ...f }, c) {
|
|
694
|
-
const h =
|
|
694
|
+
const h = re(), b = d ?? h, g = n ? `${b}-desc` : void 0, p = o ? `${b}-error` : void 0;
|
|
695
695
|
return /* @__PURE__ */ s("div", { className: l("flex flex-col gap-1", t), children: [
|
|
696
696
|
/* @__PURE__ */ s("div", { className: "flex items-start gap-2.5", children: [
|
|
697
697
|
/* @__PURE__ */ e(
|
|
698
|
-
|
|
698
|
+
Tt.Root,
|
|
699
699
|
{
|
|
700
700
|
ref: c,
|
|
701
701
|
id: b,
|
|
@@ -712,7 +712,7 @@ const Re = m(
|
|
|
712
712
|
o ? "border-danger" : "border-border-strong"
|
|
713
713
|
),
|
|
714
714
|
...f,
|
|
715
|
-
children: /* @__PURE__ */ e(
|
|
715
|
+
children: /* @__PURE__ */ e(Tt.Indicator, { className: "flex items-center justify-center", children: f.checked === "indeterminate" ? /* @__PURE__ */ e(er, { className: "size-3", "aria-hidden": !0, strokeWidth: 3 }) : /* @__PURE__ */ e(ie, { className: "size-3", "aria-hidden": !0, strokeWidth: 3 }) })
|
|
716
716
|
}
|
|
717
717
|
),
|
|
718
718
|
r && /* @__PURE__ */ s("div", { className: l("flex flex-col gap-0.5", i && "sr-only"), children: [
|
|
@@ -734,7 +734,7 @@ const Re = m(
|
|
|
734
734
|
] });
|
|
735
735
|
}
|
|
736
736
|
);
|
|
737
|
-
|
|
737
|
+
Le.displayName = "Checkbox";
|
|
738
738
|
const An = m(function({
|
|
739
739
|
value: t,
|
|
740
740
|
onChange: r,
|
|
@@ -751,27 +751,27 @@ const An = m(function({
|
|
|
751
751
|
size: p = "md",
|
|
752
752
|
className: x
|
|
753
753
|
}, N) {
|
|
754
|
-
const v =
|
|
755
|
-
|
|
754
|
+
const v = re(), T = `${v}-helper`, F = `${v}-error`, [M, z] = w(!1), [y, k] = w(""), [j, K] = w([]), [q, le] = w(!1), _ = o ? j : n ?? [];
|
|
755
|
+
ve(() => {
|
|
756
756
|
if (!o || !M) return;
|
|
757
|
-
let
|
|
758
|
-
return
|
|
759
|
-
|
|
757
|
+
let E = !1;
|
|
758
|
+
return le(!0), o(y).then((S) => {
|
|
759
|
+
E || K(S);
|
|
760
760
|
}).finally(() => {
|
|
761
|
-
|
|
761
|
+
E || le(!1);
|
|
762
762
|
}), () => {
|
|
763
|
-
|
|
763
|
+
E = !0;
|
|
764
764
|
};
|
|
765
765
|
}, [y, M, o]);
|
|
766
|
-
const G =
|
|
767
|
-
() => _.find((
|
|
766
|
+
const G = xe(
|
|
767
|
+
() => _.find((E) => E.value === t) ?? null,
|
|
768
768
|
[_, t]
|
|
769
|
-
),
|
|
770
|
-
(
|
|
771
|
-
|
|
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
|
+
(E) => {
|
|
771
|
+
E.stopPropagation(), r(null);
|
|
772
772
|
},
|
|
773
773
|
[r]
|
|
774
|
-
),
|
|
774
|
+
), we = !!u;
|
|
775
775
|
return /* @__PURE__ */ s("div", { ref: N, className: l("flex flex-col gap-1.5", x), children: [
|
|
776
776
|
i && /* @__PURE__ */ e("label", { htmlFor: v, className: "text-sm font-medium text-foreground", children: i }),
|
|
777
777
|
/* @__PURE__ */ s(A.Root, { open: M, onOpenChange: z, children: [
|
|
@@ -782,17 +782,17 @@ const An = m(function({
|
|
|
782
782
|
type: "button",
|
|
783
783
|
role: "combobox",
|
|
784
784
|
"aria-expanded": M,
|
|
785
|
-
"aria-invalid":
|
|
786
|
-
"aria-describedby":
|
|
785
|
+
"aria-invalid": we || void 0,
|
|
786
|
+
"aria-describedby": we ? F : d ? T : void 0,
|
|
787
787
|
disabled: g,
|
|
788
788
|
className: l(
|
|
789
789
|
"inline-flex w-full items-center justify-between gap-2 rounded-md border bg-card text-sm text-foreground",
|
|
790
790
|
"transition-colors duration-[var(--duration-fast)] ease-[var(--ease-out)]",
|
|
791
791
|
"outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
792
792
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
793
|
-
|
|
793
|
+
ne,
|
|
794
794
|
C,
|
|
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
798
|
/* @__PURE__ */ e("span", { className: l("truncate", !G && "text-foreground-subtle"), children: G ? G.label : f }),
|
|
@@ -802,13 +802,13 @@ const An = m(function({
|
|
|
802
802
|
{
|
|
803
803
|
role: "button",
|
|
804
804
|
tabIndex: -1,
|
|
805
|
-
onClick:
|
|
805
|
+
onClick: ae,
|
|
806
806
|
"aria-label": "Clear selection",
|
|
807
807
|
className: "text-foreground-subtle hover:text-foreground",
|
|
808
808
|
children: /* @__PURE__ */ e(X, { className: "size-4", "aria-hidden": !0 })
|
|
809
809
|
}
|
|
810
810
|
),
|
|
811
|
-
/* @__PURE__ */ e(
|
|
811
|
+
/* @__PURE__ */ e(Ge, { className: "size-4 text-foreground-subtle", "aria-hidden": !0 })
|
|
812
812
|
] })
|
|
813
813
|
]
|
|
814
814
|
}
|
|
@@ -835,16 +835,16 @@ const An = m(function({
|
|
|
835
835
|
className: "flex h-9 w-full bg-transparent py-2 text-sm outline-none placeholder:text-foreground-subtle"
|
|
836
836
|
}
|
|
837
837
|
),
|
|
838
|
-
q && /* @__PURE__ */ e(
|
|
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((E) => {
|
|
842
|
+
const S = E.value === t;
|
|
843
843
|
return /* @__PURE__ */ s(
|
|
844
844
|
$.Item,
|
|
845
845
|
{
|
|
846
|
-
value:
|
|
847
|
-
disabled:
|
|
846
|
+
value: E.value,
|
|
847
|
+
disabled: E.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
|
-
|
|
859
|
-
S && /* @__PURE__ */ e(
|
|
857
|
+
/* @__PURE__ */ e("span", { className: "flex-1", children: E.label }),
|
|
858
|
+
E.description && /* @__PURE__ */ e("span", { className: "text-xs text-foreground-subtle", children: E.description }),
|
|
859
|
+
S && /* @__PURE__ */ e(ie, { className: "size-4 text-accent", "aria-hidden": !0 })
|
|
860
860
|
]
|
|
861
861
|
},
|
|
862
|
-
|
|
862
|
+
E.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 })
|
|
@@ -886,9 +886,9 @@ const Fn = m(function({ className: t, ...r }, n) {
|
|
|
886
886
|
);
|
|
887
887
|
});
|
|
888
888
|
Fn.displayName = "Command";
|
|
889
|
-
const
|
|
889
|
+
const Ln = m(function({ className: t, ...r }, n) {
|
|
890
890
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-2 border-b border-border px-3", "cmdk-input-wrapper": "", children: [
|
|
891
|
-
/* @__PURE__ */ e(
|
|
891
|
+
/* @__PURE__ */ e(Ke, { className: "size-4 shrink-0 text-foreground-subtle", "aria-hidden": !0 }),
|
|
892
892
|
/* @__PURE__ */ e(
|
|
893
893
|
$.Input,
|
|
894
894
|
{
|
|
@@ -903,8 +903,8 @@ const jn = m(function({ className: t, ...r }, n) {
|
|
|
903
903
|
)
|
|
904
904
|
] });
|
|
905
905
|
});
|
|
906
|
-
|
|
907
|
-
const
|
|
906
|
+
Ln.displayName = "CommandInput";
|
|
907
|
+
const jn = m(function({ className: t, ...r }, n) {
|
|
908
908
|
return /* @__PURE__ */ e(
|
|
909
909
|
$.List,
|
|
910
910
|
{
|
|
@@ -914,8 +914,8 @@ const Bn = m(function({ className: t, ...r }, n) {
|
|
|
914
914
|
}
|
|
915
915
|
);
|
|
916
916
|
});
|
|
917
|
-
|
|
918
|
-
const
|
|
917
|
+
jn.displayName = "CommandList";
|
|
918
|
+
const En = m(function(t, r) {
|
|
919
919
|
return /* @__PURE__ */ e(
|
|
920
920
|
$.Empty,
|
|
921
921
|
{
|
|
@@ -925,7 +925,7 @@ const Ln = m(function(t, r) {
|
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
927
|
});
|
|
928
|
-
|
|
928
|
+
En.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 as({ children: a, className: t }) {
|
|
975
975
|
return /* @__PURE__ */ e(
|
|
976
976
|
"span",
|
|
977
977
|
{
|
|
@@ -983,7 +983,7 @@ function es({ children: a, className: t }) {
|
|
|
983
983
|
}
|
|
984
984
|
);
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function os({ 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,16 +1014,16 @@ function ts({ open: a, onOpenChange: t, children: r, title: n = "Command palette
|
|
|
1014
1014
|
)
|
|
1015
1015
|
] }) });
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ss(a) {
|
|
1018
1018
|
const [t, r] = w(0);
|
|
1019
|
-
|
|
1019
|
+
ve(() => {
|
|
1020
1020
|
const n = (o) => {
|
|
1021
1021
|
o.key === "k" && (o.metaKey || o.ctrlKey) && (o.preventDefault(), a(!0), r((i) => i + 1));
|
|
1022
1022
|
};
|
|
1023
1023
|
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
1024
1024
|
}, [a]);
|
|
1025
1025
|
}
|
|
1026
|
-
const
|
|
1026
|
+
const is = R.Root, ls = R.Trigger, ds = R.Group, Bn = R.Portal, cs = R.Sub, us = 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"
|
|
@@ -1032,11 +1032,11 @@ const ns = R.Root, as = R.Trigger, os = R.Group, En = R.Portal, ss = R.Sub, is =
|
|
|
1032
1032
|
R.SubTrigger,
|
|
1033
1033
|
{
|
|
1034
1034
|
ref: o,
|
|
1035
|
-
className: l(
|
|
1035
|
+
className: l(et, "data-[state=open]:bg-background-muted", t),
|
|
1036
1036
|
...n,
|
|
1037
1037
|
children: [
|
|
1038
1038
|
r,
|
|
1039
|
-
/* @__PURE__ */ e(
|
|
1039
|
+
/* @__PURE__ */ e(se, { className: "ml-auto size-4 text-foreground-subtle", "aria-hidden": !0 })
|
|
1040
1040
|
]
|
|
1041
1041
|
}
|
|
1042
1042
|
);
|
|
@@ -1057,7 +1057,7 @@ const Gn = m(function({ className: t, ...r }, n) {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
Gn.displayName = "ContextMenuSubContent";
|
|
1059
1059
|
const Hn = m(function({ className: t, ...r }, n) {
|
|
1060
|
-
return /* @__PURE__ */ e(
|
|
1060
|
+
return /* @__PURE__ */ e(Bn, { children: /* @__PURE__ */ e(
|
|
1061
1061
|
R.Content,
|
|
1062
1062
|
{
|
|
1063
1063
|
ref: n,
|
|
@@ -1072,13 +1072,13 @@ const Hn = m(function({ className: t, ...r }, n) {
|
|
|
1072
1072
|
) });
|
|
1073
1073
|
});
|
|
1074
1074
|
Hn.displayName = "ContextMenuContent";
|
|
1075
|
-
const
|
|
1075
|
+
const Un = m(function({ className: t, destructive: r, ...n }, o) {
|
|
1076
1076
|
return /* @__PURE__ */ e(
|
|
1077
1077
|
R.Item,
|
|
1078
1078
|
{
|
|
1079
1079
|
ref: o,
|
|
1080
1080
|
className: l(
|
|
1081
|
-
|
|
1081
|
+
et,
|
|
1082
1082
|
r && "text-danger-text data-[highlighted]:bg-danger-soft data-[highlighted]:text-danger-text",
|
|
1083
1083
|
t
|
|
1084
1084
|
),
|
|
@@ -1086,31 +1086,31 @@ const Wn = m(function({ className: t, destructive: r, ...n }, o) {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
);
|
|
1088
1088
|
});
|
|
1089
|
-
|
|
1090
|
-
const
|
|
1089
|
+
Un.displayName = "ContextMenuItem";
|
|
1090
|
+
const Wn = m(function({ className: t, children: r, ...n }, o) {
|
|
1091
1091
|
return /* @__PURE__ */ s(
|
|
1092
1092
|
R.CheckboxItem,
|
|
1093
1093
|
{
|
|
1094
1094
|
ref: o,
|
|
1095
|
-
className: l(
|
|
1095
|
+
className: l(et, "pl-8", t),
|
|
1096
1096
|
...n,
|
|
1097
1097
|
children: [
|
|
1098
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(R.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
1098
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(R.ItemIndicator, { children: /* @__PURE__ */ e(ie, { className: "size-4 text-accent", "aria-hidden": !0 }) }) }),
|
|
1099
1099
|
r
|
|
1100
1100
|
]
|
|
1101
1101
|
}
|
|
1102
1102
|
);
|
|
1103
1103
|
});
|
|
1104
|
-
|
|
1104
|
+
Wn.displayName = "ContextMenuCheckboxItem";
|
|
1105
1105
|
const Kn = m(function({ className: t, children: r, ...n }, o) {
|
|
1106
1106
|
return /* @__PURE__ */ s(
|
|
1107
1107
|
R.RadioItem,
|
|
1108
1108
|
{
|
|
1109
1109
|
ref: o,
|
|
1110
|
-
className: l(
|
|
1110
|
+
className: l(et, "pl-8", t),
|
|
1111
1111
|
...n,
|
|
1112
1112
|
children: [
|
|
1113
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(R.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
1113
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(R.ItemIndicator, { children: /* @__PURE__ */ e(mt, { className: "size-2 fill-accent text-accent", "aria-hidden": !0 }) }) }),
|
|
1114
1114
|
r
|
|
1115
1115
|
]
|
|
1116
1116
|
}
|
|
@@ -1149,21 +1149,21 @@ function Xn({ className: a, ...t }) {
|
|
|
1149
1149
|
);
|
|
1150
1150
|
}
|
|
1151
1151
|
Xn.displayName = "ContextMenuShortcut";
|
|
1152
|
-
const
|
|
1152
|
+
const bt = B.Root, xt = B.Trigger, ms = B.Group, Yn = B.Portal, fs = B.Sub, gs = 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",
|
|
1156
1156
|
"transition-colors duration-[var(--duration-fast)]"
|
|
1157
1157
|
), Jn = m(function({ className: t, inset: r, children: n, ...o }, i) {
|
|
1158
1158
|
return /* @__PURE__ */ s(
|
|
1159
|
-
|
|
1159
|
+
B.SubTrigger,
|
|
1160
1160
|
{
|
|
1161
1161
|
ref: i,
|
|
1162
|
-
className: l(
|
|
1162
|
+
className: l(tt, "data-[state=open]:bg-background-muted", r && "pl-8", t),
|
|
1163
1163
|
...o,
|
|
1164
1164
|
children: [
|
|
1165
1165
|
n,
|
|
1166
|
-
/* @__PURE__ */ e(
|
|
1166
|
+
/* @__PURE__ */ e(se, { className: "ml-auto size-4 text-foreground-subtle", "aria-hidden": !0 })
|
|
1167
1167
|
]
|
|
1168
1168
|
}
|
|
1169
1169
|
);
|
|
@@ -1171,7 +1171,7 @@ const Nt = E.Root, yt = E.Trigger, ls = E.Group, Yn = E.Portal, ds = E.Sub, cs =
|
|
|
1171
1171
|
Jn.displayName = "DropdownMenuSubTrigger";
|
|
1172
1172
|
const Zn = m(function({ className: t, ...r }, n) {
|
|
1173
1173
|
return /* @__PURE__ */ e(
|
|
1174
|
-
|
|
1174
|
+
B.SubContent,
|
|
1175
1175
|
{
|
|
1176
1176
|
ref: n,
|
|
1177
1177
|
className: l(
|
|
@@ -1186,9 +1186,9 @@ const Zn = m(function({ className: t, ...r }, n) {
|
|
|
1186
1186
|
);
|
|
1187
1187
|
});
|
|
1188
1188
|
Zn.displayName = "DropdownMenuSubContent";
|
|
1189
|
-
const
|
|
1189
|
+
const rt = m(function({ className: t, sideOffset: r = 4, align: n = "end", ...o }, i) {
|
|
1190
1190
|
return /* @__PURE__ */ e(Yn, { children: /* @__PURE__ */ e(
|
|
1191
|
-
|
|
1191
|
+
B.Content,
|
|
1192
1192
|
{
|
|
1193
1193
|
ref: i,
|
|
1194
1194
|
sideOffset: r,
|
|
@@ -1205,14 +1205,14 @@ const ot = m(function({ className: t, sideOffset: r = 4, align: n = "end", ...o
|
|
|
1205
1205
|
}
|
|
1206
1206
|
) });
|
|
1207
1207
|
});
|
|
1208
|
-
|
|
1209
|
-
const
|
|
1208
|
+
rt.displayName = "DropdownMenuContent";
|
|
1209
|
+
const mr = m(function({ className: t, inset: r, destructive: n, ...o }, i) {
|
|
1210
1210
|
return /* @__PURE__ */ e(
|
|
1211
|
-
|
|
1211
|
+
B.Item,
|
|
1212
1212
|
{
|
|
1213
1213
|
ref: i,
|
|
1214
1214
|
className: l(
|
|
1215
|
-
|
|
1215
|
+
tt,
|
|
1216
1216
|
r && "pl-8",
|
|
1217
1217
|
n && "text-danger-text data-[highlighted]:bg-danger-soft data-[highlighted]:text-danger-text",
|
|
1218
1218
|
t
|
|
@@ -1221,41 +1221,41 @@ const ve = m(function({ className: t, inset: r, destructive: n, ...o }, i) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
);
|
|
1223
1223
|
});
|
|
1224
|
-
|
|
1225
|
-
const
|
|
1224
|
+
mr.displayName = "DropdownMenuItem";
|
|
1225
|
+
const fr = m(function({ className: t, children: r, checked: n, ...o }, i) {
|
|
1226
1226
|
return /* @__PURE__ */ s(
|
|
1227
|
-
|
|
1227
|
+
B.CheckboxItem,
|
|
1228
1228
|
{
|
|
1229
1229
|
ref: i,
|
|
1230
1230
|
checked: n,
|
|
1231
|
-
className: l(
|
|
1231
|
+
className: l(tt, "pl-8", t),
|
|
1232
1232
|
...o,
|
|
1233
1233
|
children: [
|
|
1234
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1234
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(B.ItemIndicator, { children: /* @__PURE__ */ e(ie, { className: "size-4 text-accent", "aria-hidden": !0 }) }) }),
|
|
1235
1235
|
r
|
|
1236
1236
|
]
|
|
1237
1237
|
}
|
|
1238
1238
|
);
|
|
1239
1239
|
});
|
|
1240
|
-
|
|
1240
|
+
fr.displayName = "DropdownMenuCheckboxItem";
|
|
1241
1241
|
const ea = m(function({ className: t, children: r, ...n }, o) {
|
|
1242
1242
|
return /* @__PURE__ */ s(
|
|
1243
|
-
|
|
1243
|
+
B.RadioItem,
|
|
1244
1244
|
{
|
|
1245
1245
|
ref: o,
|
|
1246
|
-
className: l(
|
|
1246
|
+
className: l(tt, "pl-8", t),
|
|
1247
1247
|
...n,
|
|
1248
1248
|
children: [
|
|
1249
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
1249
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(B.ItemIndicator, { children: /* @__PURE__ */ e(mt, { className: "size-2 fill-accent text-accent", "aria-hidden": !0 }) }) }),
|
|
1250
1250
|
r
|
|
1251
1251
|
]
|
|
1252
1252
|
}
|
|
1253
1253
|
);
|
|
1254
1254
|
});
|
|
1255
1255
|
ea.displayName = "DropdownMenuRadioItem";
|
|
1256
|
-
const
|
|
1256
|
+
const vt = m(function({ className: t, inset: r, ...n }, o) {
|
|
1257
1257
|
return /* @__PURE__ */ e(
|
|
1258
|
-
|
|
1258
|
+
B.Label,
|
|
1259
1259
|
{
|
|
1260
1260
|
ref: o,
|
|
1261
1261
|
className: l(
|
|
@@ -1267,10 +1267,10 @@ const wt = m(function({ className: t, inset: r, ...n }, o) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
);
|
|
1269
1269
|
});
|
|
1270
|
-
|
|
1271
|
-
const
|
|
1270
|
+
vt.displayName = "DropdownMenuLabel";
|
|
1271
|
+
const $e = m(function({ className: t, ...r }, n) {
|
|
1272
1272
|
return /* @__PURE__ */ e(
|
|
1273
|
-
|
|
1273
|
+
B.Separator,
|
|
1274
1274
|
{
|
|
1275
1275
|
ref: n,
|
|
1276
1276
|
className: l("-mx-1 my-1 h-px bg-border", t),
|
|
@@ -1278,7 +1278,7 @@ const Me = m(function({ className: t, ...r }, n) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
);
|
|
1280
1280
|
});
|
|
1281
|
-
|
|
1281
|
+
$e.displayName = "DropdownMenuSeparator";
|
|
1282
1282
|
function ta({ className: a, ...t }) {
|
|
1283
1283
|
return /* @__PURE__ */ e(
|
|
1284
1284
|
"span",
|
|
@@ -1320,7 +1320,7 @@ const ra = Y(
|
|
|
1320
1320
|
size: "md"
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
),
|
|
1323
|
+
), Me = m(function({ className: t, variant: r, size: n, icon: o, loading: i, disabled: d, type: u = "button", ...f }, c) {
|
|
1324
1324
|
return /* @__PURE__ */ e(
|
|
1325
1325
|
"button",
|
|
1326
1326
|
{
|
|
@@ -1330,11 +1330,11 @@ const ra = Y(
|
|
|
1330
1330
|
disabled: d || i,
|
|
1331
1331
|
className: l(ra({ variant: r, size: n }), t),
|
|
1332
1332
|
...f,
|
|
1333
|
-
children: i ? /* @__PURE__ */ e(
|
|
1333
|
+
children: i ? /* @__PURE__ */ e(We, { className: "animate-spin", "aria-hidden": "true" }) : o
|
|
1334
1334
|
}
|
|
1335
1335
|
);
|
|
1336
1336
|
});
|
|
1337
|
-
|
|
1337
|
+
Me.displayName = "IconButton";
|
|
1338
1338
|
const na = Y(
|
|
1339
1339
|
[
|
|
1340
1340
|
"group inline-flex items-center w-full",
|
|
@@ -1365,7 +1365,7 @@ const na = Y(
|
|
|
1365
1365
|
"placeholder:text-foreground-subtle",
|
|
1366
1366
|
"text-foreground",
|
|
1367
1367
|
"disabled:cursor-not-allowed"
|
|
1368
|
-
]),
|
|
1368
|
+
]), L = m(function({
|
|
1369
1369
|
className: t,
|
|
1370
1370
|
type: r = "text",
|
|
1371
1371
|
size: n,
|
|
@@ -1383,7 +1383,7 @@ const na = Y(
|
|
|
1383
1383
|
value: N,
|
|
1384
1384
|
...v
|
|
1385
1385
|
}, T) {
|
|
1386
|
-
const F =
|
|
1386
|
+
const F = re(), M = p ?? F, z = `${M}-helper`, y = `${M}-error`, [k, j] = 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), G = 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",
|
|
@@ -1396,7 +1396,7 @@ const na = Y(
|
|
|
1396
1396
|
children: i
|
|
1397
1397
|
}
|
|
1398
1398
|
),
|
|
1399
|
-
/* @__PURE__ */ s("div", { className: l(na({ size: n, tone:
|
|
1399
|
+
/* @__PURE__ */ s("div", { className: l(na({ size: n, tone: le })), children: [
|
|
1400
1400
|
_ && /* @__PURE__ */ e("span", { className: "flex items-center text-foreground-subtle [&_svg]:size-4", children: _ }),
|
|
1401
1401
|
/* @__PURE__ */ e(
|
|
1402
1402
|
"input",
|
|
@@ -1427,12 +1427,12 @@ const na = Y(
|
|
|
1427
1427
|
"button",
|
|
1428
1428
|
{
|
|
1429
1429
|
type: "button",
|
|
1430
|
-
onClick: () =>
|
|
1430
|
+
onClick: () => j((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(
|
|
1435
|
+
children: k ? /* @__PURE__ */ e(Ut, { className: "size-4", "aria-hidden": !0 }) : /* @__PURE__ */ e(Ht, { 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 })
|
|
@@ -1440,8 +1440,8 @@ const na = Y(
|
|
|
1440
1440
|
u ? /* @__PURE__ */ e("p", { id: y, role: "alert", className: "text-xs text-danger-text", children: u }) : d ? /* @__PURE__ */ e("p", { id: z, className: "text-xs text-foreground-subtle", children: d }) : null
|
|
1441
1441
|
] });
|
|
1442
1442
|
});
|
|
1443
|
-
|
|
1444
|
-
const
|
|
1443
|
+
L.displayName = "Input";
|
|
1444
|
+
const Nt = m(
|
|
1445
1445
|
function({ className: t, ...r }, n) {
|
|
1446
1446
|
return /* @__PURE__ */ e("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ e(
|
|
1447
1447
|
"table",
|
|
@@ -1453,8 +1453,8 @@ const kt = m(
|
|
|
1453
1453
|
) });
|
|
1454
1454
|
}
|
|
1455
1455
|
);
|
|
1456
|
-
|
|
1457
|
-
const
|
|
1456
|
+
Nt.displayName = "Table";
|
|
1457
|
+
const yt = m(
|
|
1458
1458
|
function({ className: t, ...r }, n) {
|
|
1459
1459
|
return /* @__PURE__ */ e(
|
|
1460
1460
|
"thead",
|
|
@@ -1470,8 +1470,8 @@ const Ct = m(
|
|
|
1470
1470
|
);
|
|
1471
1471
|
}
|
|
1472
1472
|
);
|
|
1473
|
-
|
|
1474
|
-
const
|
|
1473
|
+
yt.displayName = "TableHeader";
|
|
1474
|
+
const wt = m(
|
|
1475
1475
|
function({ className: t, ...r }, n) {
|
|
1476
1476
|
return /* @__PURE__ */ e(
|
|
1477
1477
|
"tbody",
|
|
@@ -1483,7 +1483,7 @@ const St = m(
|
|
|
1483
1483
|
);
|
|
1484
1484
|
}
|
|
1485
1485
|
);
|
|
1486
|
-
|
|
1486
|
+
wt.displayName = "TableBody";
|
|
1487
1487
|
const oa = m(
|
|
1488
1488
|
function({ className: t, ...r }, n) {
|
|
1489
1489
|
return /* @__PURE__ */ e(
|
|
@@ -1497,7 +1497,7 @@ const oa = m(
|
|
|
1497
1497
|
}
|
|
1498
1498
|
);
|
|
1499
1499
|
oa.displayName = "TableFooter";
|
|
1500
|
-
const
|
|
1500
|
+
const me = m(function({ className: t, selected: r, ...n }, o) {
|
|
1501
1501
|
return /* @__PURE__ */ e(
|
|
1502
1502
|
"tr",
|
|
1503
1503
|
{
|
|
@@ -1513,8 +1513,8 @@ const ge = m(function({ className: t, selected: r, ...n }, o) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
);
|
|
1515
1515
|
});
|
|
1516
|
-
|
|
1517
|
-
const
|
|
1516
|
+
me.displayName = "TableRow";
|
|
1517
|
+
const fe = m(function({ className: t, ...r }, n) {
|
|
1518
1518
|
return /* @__PURE__ */ e(
|
|
1519
1519
|
"th",
|
|
1520
1520
|
{
|
|
@@ -1528,8 +1528,8 @@ const he = m(function({ className: t, ...r }, n) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
);
|
|
1530
1530
|
});
|
|
1531
|
-
|
|
1532
|
-
const
|
|
1531
|
+
fe.displayName = "TableHead";
|
|
1532
|
+
const de = m(function({ className: t, ...r }, n) {
|
|
1533
1533
|
return /* @__PURE__ */ e(
|
|
1534
1534
|
"td",
|
|
1535
1535
|
{
|
|
@@ -1539,7 +1539,7 @@ const ce = m(function({ className: t, ...r }, n) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
);
|
|
1541
1541
|
});
|
|
1542
|
-
|
|
1542
|
+
de.displayName = "TableCell";
|
|
1543
1543
|
const sa = m(
|
|
1544
1544
|
function({ className: t, ...r }, n) {
|
|
1545
1545
|
return /* @__PURE__ */ e(
|
|
@@ -1553,12 +1553,12 @@ const sa = m(
|
|
|
1553
1553
|
}
|
|
1554
1554
|
);
|
|
1555
1555
|
sa.displayName = "TableCaption";
|
|
1556
|
-
const
|
|
1556
|
+
const gr = m(
|
|
1557
1557
|
function({ sortKey: t, currentSort: r, onSortChange: n, children: o, className: i, ...d }, u) {
|
|
1558
1558
|
const f = (r == null ? void 0 : r.key) === t, c = f ? r == null ? void 0 : r.direction : void 0, h = () => {
|
|
1559
1559
|
n(t, f && c === "asc" ? "desc" : "asc");
|
|
1560
1560
|
};
|
|
1561
|
-
return /* @__PURE__ */ e(
|
|
1561
|
+
return /* @__PURE__ */ e(fe, { ref: u, className: l("p-0", i), "aria-sort": f ? c === "asc" ? "ascending" : "descending" : "none", ...d, children: /* @__PURE__ */ s(
|
|
1562
1562
|
"button",
|
|
1563
1563
|
{
|
|
1564
1564
|
type: "button",
|
|
@@ -1572,14 +1572,14 @@ const fr = m(
|
|
|
1572
1572
|
),
|
|
1573
1573
|
children: [
|
|
1574
1574
|
o,
|
|
1575
|
-
c === "asc" ? /* @__PURE__ */ e(
|
|
1575
|
+
c === "asc" ? /* @__PURE__ */ e(Ft, { className: "size-3.5", "aria-hidden": !0 }) : c === "desc" ? /* @__PURE__ */ e(_t, { className: "size-3.5", "aria-hidden": !0 }) : /* @__PURE__ */ e(Lt, { className: "size-3.5 opacity-40", "aria-hidden": !0 })
|
|
1576
1576
|
]
|
|
1577
1577
|
}
|
|
1578
1578
|
) });
|
|
1579
1579
|
}
|
|
1580
1580
|
);
|
|
1581
|
-
|
|
1582
|
-
const
|
|
1581
|
+
gr.displayName = "TableSortHeader";
|
|
1582
|
+
const hr = m(function({ className: t, variant: r, ...n }, o) {
|
|
1583
1583
|
return /* @__PURE__ */ e(
|
|
1584
1584
|
"div",
|
|
1585
1585
|
{
|
|
@@ -1598,7 +1598,7 @@ const gr = m(function({ className: t, variant: r, ...n }, o) {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
);
|
|
1600
1600
|
});
|
|
1601
|
-
|
|
1601
|
+
hr.displayName = "Skeleton";
|
|
1602
1602
|
function ia({
|
|
1603
1603
|
columns: a,
|
|
1604
1604
|
rows: t,
|
|
@@ -1609,8 +1609,8 @@ function ia({
|
|
|
1609
1609
|
emptyState: d,
|
|
1610
1610
|
className: u
|
|
1611
1611
|
}) {
|
|
1612
|
-
const [f, c] = w({}), h =
|
|
1613
|
-
|
|
1612
|
+
const [f, c] = w({}), h = xe(() => a.filter((g) => !f[g.key]), [a, f]), b = () => r ? Array.from({ length: 5 }).map((g, p) => /* @__PURE__ */ e(me, { children: h.map((x) => /* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(hr, { variant: "text", className: "w-3/4" }) }, x.key)) }, `skel-${p}`)) : t.length === 0 ? /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e(de, { colSpan: h.length, className: "h-32 text-center", children: d ?? /* @__PURE__ */ e("span", { className: "text-foreground-subtle", children: "No results." }) }) }) : t.map((g) => /* @__PURE__ */ e(me, { children: h.map((p) => /* @__PURE__ */ e(
|
|
1613
|
+
de,
|
|
1614
1614
|
{
|
|
1615
1615
|
className: l(p.align === "right" && "text-right tabular"),
|
|
1616
1616
|
children: p.cell ? p.cell(g) : g[p.key]
|
|
@@ -1620,7 +1620,7 @@ function ia({
|
|
|
1620
1620
|
return /* @__PURE__ */ s("div", { className: l("flex flex-col gap-3", u), children: [
|
|
1621
1621
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1622
1622
|
i ? /* @__PURE__ */ e(
|
|
1623
|
-
|
|
1623
|
+
L,
|
|
1624
1624
|
{
|
|
1625
1625
|
type: "search",
|
|
1626
1626
|
placeholder: i.placeholder ?? "Filter…",
|
|
@@ -1633,13 +1633,13 @@ function ia({
|
|
|
1633
1633
|
label: "Filter rows"
|
|
1634
1634
|
}
|
|
1635
1635
|
) : /* @__PURE__ */ e("div", {}),
|
|
1636
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ s(
|
|
1637
|
-
/* @__PURE__ */ e(
|
|
1638
|
-
/* @__PURE__ */ s(
|
|
1639
|
-
/* @__PURE__ */ e(
|
|
1640
|
-
/* @__PURE__ */ e(
|
|
1636
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ s(bt, { children: [
|
|
1637
|
+
/* @__PURE__ */ e(xt, { asChild: !0, children: /* @__PURE__ */ e(Me, { "aria-label": "Column visibility", icon: /* @__PURE__ */ e(qe, {}), variant: "outline" }) }),
|
|
1638
|
+
/* @__PURE__ */ s(rt, { children: [
|
|
1639
|
+
/* @__PURE__ */ e(vt, { children: "Columns" }),
|
|
1640
|
+
/* @__PURE__ */ e($e, {}),
|
|
1641
1641
|
a.map((g) => /* @__PURE__ */ e(
|
|
1642
|
-
|
|
1642
|
+
fr,
|
|
1643
1643
|
{
|
|
1644
1644
|
checked: !f[g.key],
|
|
1645
1645
|
onCheckedChange: (p) => c((x) => ({ ...x, [g.key]: !p })),
|
|
@@ -1650,11 +1650,11 @@ function ia({
|
|
|
1650
1650
|
] })
|
|
1651
1651
|
] }) })
|
|
1652
1652
|
] }),
|
|
1653
|
-
/* @__PURE__ */ e("div", { className: "rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ s(
|
|
1653
|
+
/* @__PURE__ */ e("div", { className: "rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ s(Nt, { children: [
|
|
1654
1654
|
/* @__PURE__ */ e("colgroup", { children: h.map((g) => /* @__PURE__ */ e("col", { style: g.width ? { width: g.width } : void 0 }, g.key)) }),
|
|
1655
|
-
/* @__PURE__ */ e(
|
|
1655
|
+
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ e(me, { children: h.map(
|
|
1656
1656
|
(g) => g.sortable && o ? /* @__PURE__ */ e(
|
|
1657
|
-
|
|
1657
|
+
gr,
|
|
1658
1658
|
{
|
|
1659
1659
|
sortKey: g.key,
|
|
1660
1660
|
currentSort: n ?? null,
|
|
@@ -1662,15 +1662,15 @@ function ia({
|
|
|
1662
1662
|
children: g.header
|
|
1663
1663
|
},
|
|
1664
1664
|
g.key
|
|
1665
|
-
) : /* @__PURE__ */ e(
|
|
1665
|
+
) : /* @__PURE__ */ e(fe, { className: l(g.align === "right" && "text-right"), children: g.header }, g.key)
|
|
1666
1666
|
) }) }),
|
|
1667
|
-
/* @__PURE__ */ e(
|
|
1667
|
+
/* @__PURE__ */ e(wt, { children: b() })
|
|
1668
1668
|
] }) })
|
|
1669
1669
|
] });
|
|
1670
1670
|
}
|
|
1671
|
-
const
|
|
1671
|
+
const pr = m(function({ className: t, classNames: r, ...n }, o) {
|
|
1672
1672
|
return /* @__PURE__ */ e(
|
|
1673
|
-
|
|
1673
|
+
cn,
|
|
1674
1674
|
{
|
|
1675
1675
|
showOutsideDays: !0,
|
|
1676
1676
|
className: l("p-3", t),
|
|
@@ -1699,16 +1699,16 @@ const hr = m(function({ className: t, classNames: r, ...n }, o) {
|
|
|
1699
1699
|
...r
|
|
1700
1700
|
},
|
|
1701
1701
|
components: {
|
|
1702
|
-
Chevron: ({ orientation: i }) => i === "left" ? /* @__PURE__ */ e(
|
|
1702
|
+
Chevron: ({ orientation: i }) => i === "left" ? /* @__PURE__ */ e(Ve, { className: "size-4" }) : /* @__PURE__ */ e(se, { className: "size-4" })
|
|
1703
1703
|
},
|
|
1704
1704
|
...n
|
|
1705
1705
|
}
|
|
1706
1706
|
);
|
|
1707
1707
|
});
|
|
1708
|
-
function
|
|
1708
|
+
function je(a) {
|
|
1709
1709
|
return a ? a.toLocaleDateString(void 0, { year: "numeric", month: "short", day: "numeric" }) : "";
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function br({
|
|
1712
1712
|
label: a,
|
|
1713
1713
|
placeholder: t,
|
|
1714
1714
|
hasValue: r,
|
|
@@ -1735,7 +1735,7 @@ function pr({
|
|
|
1735
1735
|
!r && "text-foreground-subtle"
|
|
1736
1736
|
),
|
|
1737
1737
|
children: [
|
|
1738
|
-
/* @__PURE__ */ e(
|
|
1738
|
+
/* @__PURE__ */ e($t, { className: "size-4 text-foreground-subtle", "aria-hidden": !0 }),
|
|
1739
1739
|
/* @__PURE__ */ e("span", { className: "truncate", children: r ? n : t })
|
|
1740
1740
|
]
|
|
1741
1741
|
}
|
|
@@ -1744,10 +1744,10 @@ function pr({
|
|
|
1744
1744
|
] });
|
|
1745
1745
|
}
|
|
1746
1746
|
const la = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick a date", error: i, disabled: d, fromDate: u, toDate: f, className: c }, h) {
|
|
1747
|
-
const b =
|
|
1747
|
+
const b = re(), [g, p] = w(!1);
|
|
1748
1748
|
return /* @__PURE__ */ e("div", { ref: h, className: l(c), children: /* @__PURE__ */ s(A.Root, { open: g, onOpenChange: p, children: [
|
|
1749
1749
|
/* @__PURE__ */ e(
|
|
1750
|
-
|
|
1750
|
+
br,
|
|
1751
1751
|
{
|
|
1752
1752
|
label: n,
|
|
1753
1753
|
placeholder: o,
|
|
@@ -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: je(t)
|
|
1759
1759
|
}
|
|
1760
1760
|
),
|
|
1761
1761
|
/* @__PURE__ */ e(A.Portal, { children: /* @__PURE__ */ e(
|
|
@@ -1765,7 +1765,7 @@ const la = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick
|
|
|
1765
1765
|
sideOffset: 4,
|
|
1766
1766
|
className: "z-[var(--z-popover)] rounded-lg border border-border bg-popover text-popover-foreground shadow-md",
|
|
1767
1767
|
children: /* @__PURE__ */ e(
|
|
1768
|
-
|
|
1768
|
+
pr,
|
|
1769
1769
|
{
|
|
1770
1770
|
mode: "single",
|
|
1771
1771
|
selected: t,
|
|
@@ -1782,10 +1782,10 @@ const la = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick
|
|
|
1782
1782
|
});
|
|
1783
1783
|
la.displayName = "DatePicker";
|
|
1784
1784
|
const da = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick a range", error: i, disabled: d, fromDate: u, toDate: f, className: c }, h) {
|
|
1785
|
-
const b =
|
|
1785
|
+
const b = re(), [g, p] = w(!1), x = !!(t != null && t.from);
|
|
1786
1786
|
return /* @__PURE__ */ e("div", { ref: h, className: l(c), children: /* @__PURE__ */ s(A.Root, { open: g, onOpenChange: p, children: [
|
|
1787
1787
|
/* @__PURE__ */ e(
|
|
1788
|
-
|
|
1788
|
+
br,
|
|
1789
1789
|
{
|
|
1790
1790
|
label: n,
|
|
1791
1791
|
placeholder: o,
|
|
@@ -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 ? `${je(t.from)} – ${je(t.to)}` : t != null && t.from ? je(t.from) : ""
|
|
1797
1797
|
}
|
|
1798
1798
|
),
|
|
1799
1799
|
/* @__PURE__ */ e(A.Portal, { children: /* @__PURE__ */ e(
|
|
@@ -1803,7 +1803,7 @@ const da = m(function({ value: t, onChange: r, label: n, placeholder: o = "Pick
|
|
|
1803
1803
|
sideOffset: 4,
|
|
1804
1804
|
className: "z-[var(--z-popover)] rounded-lg border border-border bg-popover text-popover-foreground shadow-md",
|
|
1805
1805
|
children: /* @__PURE__ */ e(
|
|
1806
|
-
|
|
1806
|
+
pr,
|
|
1807
1807
|
{
|
|
1808
1808
|
mode: "range",
|
|
1809
1809
|
selected: t,
|
|
@@ -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 hs({
|
|
1822
1822
|
tokens: a,
|
|
1823
1823
|
className: t,
|
|
1824
1824
|
children: r,
|
|
@@ -1833,7 +1833,7 @@ function us({
|
|
|
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 ps = {
|
|
1837
1837
|
default: {},
|
|
1838
1838
|
/** Cool indigo accent, slightly rounder corners. */
|
|
1839
1839
|
edgelog: {
|
|
@@ -1860,7 +1860,7 @@ const ms = {
|
|
|
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, bs = 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
|
{
|
|
@@ -1875,10 +1875,10 @@ const ms = {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
);
|
|
1877
1877
|
});
|
|
1878
|
-
|
|
1879
|
-
const
|
|
1878
|
+
xr.displayName = "DialogOverlay";
|
|
1879
|
+
const vr = m(function({ className: t, children: r, showClose: n = !0, size: o = "md", ...i }, d) {
|
|
1880
1880
|
return /* @__PURE__ */ s(ua, { children: [
|
|
1881
|
-
/* @__PURE__ */ e(
|
|
1881
|
+
/* @__PURE__ */ e(xr, {}),
|
|
1882
1882
|
/* @__PURE__ */ s(
|
|
1883
1883
|
D.Content,
|
|
1884
1884
|
{
|
|
@@ -1916,12 +1916,12 @@ const xr = m(function({ className: t, children: r, showClose: n = !0, size: o =
|
|
|
1916
1916
|
)
|
|
1917
1917
|
] });
|
|
1918
1918
|
});
|
|
1919
|
-
|
|
1920
|
-
function
|
|
1919
|
+
vr.displayName = "DialogContent";
|
|
1920
|
+
function Nr({ className: a, ...t }) {
|
|
1921
1921
|
return /* @__PURE__ */ e("div", { className: l("flex flex-col gap-1 pb-4", a), ...t });
|
|
1922
1922
|
}
|
|
1923
|
-
|
|
1924
|
-
function
|
|
1923
|
+
Nr.displayName = "DialogHeader";
|
|
1924
|
+
function yr({ className: a, ...t }) {
|
|
1925
1925
|
return /* @__PURE__ */ e(
|
|
1926
1926
|
"div",
|
|
1927
1927
|
{
|
|
@@ -1930,8 +1930,8 @@ function Nr({ className: a, ...t }) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
);
|
|
1932
1932
|
}
|
|
1933
|
-
|
|
1934
|
-
const
|
|
1933
|
+
yr.displayName = "DialogFooter";
|
|
1934
|
+
const wr = m(function({ className: t, ...r }, n) {
|
|
1935
1935
|
return /* @__PURE__ */ e(
|
|
1936
1936
|
D.Title,
|
|
1937
1937
|
{
|
|
@@ -1941,8 +1941,8 @@ const yr = m(function({ className: t, ...r }, n) {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
);
|
|
1943
1943
|
});
|
|
1944
|
-
|
|
1945
|
-
const
|
|
1944
|
+
wr.displayName = "DialogTitle";
|
|
1945
|
+
const kr = m(function({ className: t, ...r }, n) {
|
|
1946
1946
|
return /* @__PURE__ */ e(
|
|
1947
1947
|
D.Description,
|
|
1948
1948
|
{
|
|
@@ -1952,7 +1952,7 @@ const wr = m(function({ className: t, ...r }, n) {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
);
|
|
1954
1954
|
});
|
|
1955
|
-
|
|
1955
|
+
kr.displayName = "DialogDescription";
|
|
1956
1956
|
function fa({
|
|
1957
1957
|
open: a,
|
|
1958
1958
|
onOpenChange: t,
|
|
@@ -1964,86 +1964,86 @@ function fa({
|
|
|
1964
1964
|
onConfirm: u,
|
|
1965
1965
|
loading: f
|
|
1966
1966
|
}) {
|
|
1967
|
-
return /* @__PURE__ */ e(ca, { open: a, onOpenChange: t, children: /* @__PURE__ */ s(
|
|
1968
|
-
/* @__PURE__ */ s(vr, { children: [
|
|
1969
|
-
/* @__PURE__ */ e(yr, { children: r }),
|
|
1970
|
-
n && /* @__PURE__ */ e(wr, { children: n })
|
|
1971
|
-
] }),
|
|
1967
|
+
return /* @__PURE__ */ e(ca, { open: a, onOpenChange: t, children: /* @__PURE__ */ s(vr, { size: "sm", children: [
|
|
1972
1968
|
/* @__PURE__ */ s(Nr, { children: [
|
|
1969
|
+
/* @__PURE__ */ e(wr, { children: r }),
|
|
1970
|
+
n && /* @__PURE__ */ e(kr, { children: n })
|
|
1971
|
+
] }),
|
|
1972
|
+
/* @__PURE__ */ s(yr, { children: [
|
|
1973
1973
|
/* @__PURE__ */ e(ma, { asChild: !0, children: /* @__PURE__ */ e(I, { variant: "outline", children: i }) }),
|
|
1974
1974
|
/* @__PURE__ */ e(I, { variant: d, loading: f, onClick: u, children: o })
|
|
1975
1975
|
] })
|
|
1976
1976
|
] }) });
|
|
1977
1977
|
}
|
|
1978
1978
|
fa.displayName = "ConfirmationDialog";
|
|
1979
|
-
const
|
|
1979
|
+
const kt = m(function({ icon: t, illustration: r, title: n, description: o, action: i, secondaryAction: d, className: u, ...f }, c) {
|
|
1980
1980
|
return /* @__PURE__ */ s(
|
|
1981
1981
|
"div",
|
|
1982
1982
|
{
|
|
1983
|
-
ref:
|
|
1983
|
+
ref: c,
|
|
1984
1984
|
className: l(
|
|
1985
1985
|
"flex flex-col items-center justify-center gap-3 rounded-lg border border-dashed border-border bg-background-subtle p-10 text-center",
|
|
1986
|
-
|
|
1986
|
+
u
|
|
1987
1987
|
),
|
|
1988
|
-
...
|
|
1988
|
+
...f,
|
|
1989
1989
|
children: [
|
|
1990
|
-
t
|
|
1991
|
-
/* @__PURE__ */ e("h3", { className: "text-base font-semibold text-foreground leading-tight", children:
|
|
1992
|
-
|
|
1993
|
-
(
|
|
1994
|
-
|
|
1995
|
-
|
|
1990
|
+
r || (t ? /* @__PURE__ */ e("div", { className: "inline-flex size-12 items-center justify-center rounded-full bg-background-muted text-foreground-muted [&_svg]:size-6", children: t }) : /* @__PURE__ */ e(sr, { className: "size-24" })),
|
|
1991
|
+
/* @__PURE__ */ e("h3", { className: "text-base font-semibold text-foreground leading-tight", children: n }),
|
|
1992
|
+
o && /* @__PURE__ */ e("p", { className: "max-w-md text-sm text-foreground-muted leading-relaxed", children: o }),
|
|
1993
|
+
(i || d) && /* @__PURE__ */ s("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
1994
|
+
i,
|
|
1995
|
+
d
|
|
1996
1996
|
] })
|
|
1997
1997
|
]
|
|
1998
1998
|
}
|
|
1999
1999
|
);
|
|
2000
2000
|
});
|
|
2001
|
-
|
|
2001
|
+
kt.displayName = "EmptyState";
|
|
2002
2002
|
const ga = {
|
|
2003
2003
|
404: {
|
|
2004
|
-
|
|
2004
|
+
illustration: /* @__PURE__ */ e(ir, { className: "size-32" }),
|
|
2005
2005
|
title: "Page not found",
|
|
2006
2006
|
description: "We couldn't find what you were looking for."
|
|
2007
2007
|
},
|
|
2008
2008
|
500: {
|
|
2009
|
-
|
|
2009
|
+
illustration: /* @__PURE__ */ e(lr, { className: "size-32" }),
|
|
2010
2010
|
title: "Something went wrong",
|
|
2011
2011
|
description: "We're looking into it. Please try again in a moment."
|
|
2012
2012
|
},
|
|
2013
2013
|
generic: {
|
|
2014
|
-
|
|
2014
|
+
illustration: /* @__PURE__ */ e(dr, { className: "size-32" }),
|
|
2015
2015
|
title: "Unexpected error",
|
|
2016
2016
|
description: "Something interrupted this action."
|
|
2017
2017
|
}
|
|
2018
|
-
}, ha = m(function({ variant: t = "generic", title: r, description: n,
|
|
2019
|
-
const
|
|
2018
|
+
}, ha = m(function({ variant: t = "generic", title: r, description: n, illustration: o, action: i, onRetry: d, className: u, ...f }, c) {
|
|
2019
|
+
const h = ga[t];
|
|
2020
2020
|
return /* @__PURE__ */ s(
|
|
2021
2021
|
"div",
|
|
2022
2022
|
{
|
|
2023
|
-
ref:
|
|
2023
|
+
ref: c,
|
|
2024
2024
|
role: "alert",
|
|
2025
2025
|
className: l(
|
|
2026
2026
|
"flex flex-col items-center justify-center gap-3 rounded-lg border border-border bg-background-subtle p-10 text-center",
|
|
2027
|
-
|
|
2027
|
+
u
|
|
2028
2028
|
),
|
|
2029
|
-
...
|
|
2029
|
+
...f,
|
|
2030
2030
|
children: [
|
|
2031
|
-
|
|
2032
|
-
/* @__PURE__ */ e("h3", { className: "text-base font-semibold text-foreground leading-tight", children: r ??
|
|
2033
|
-
/* @__PURE__ */ e("p", { className: "max-w-md text-sm text-foreground-muted leading-relaxed", children: n ??
|
|
2034
|
-
(
|
|
2031
|
+
o ?? h.illustration,
|
|
2032
|
+
/* @__PURE__ */ e("h3", { className: "text-base font-semibold text-foreground leading-tight", children: r ?? h.title }),
|
|
2033
|
+
/* @__PURE__ */ e("p", { className: "max-w-md text-sm text-foreground-muted leading-relaxed", children: n ?? h.description }),
|
|
2034
|
+
(i || d) && /* @__PURE__ */ e("div", { className: "mt-2 flex items-center gap-2", children: i ?? /* @__PURE__ */ e(I, { onClick: d, variant: "outline", children: "Try again" }) })
|
|
2035
2035
|
]
|
|
2036
2036
|
}
|
|
2037
2037
|
);
|
|
2038
2038
|
});
|
|
2039
2039
|
ha.displayName = "ErrorState";
|
|
2040
|
-
const
|
|
2041
|
-
function
|
|
2042
|
-
return /* @__PURE__ */ e(
|
|
2040
|
+
const xs = mn, Cr = Oe(null);
|
|
2041
|
+
function vs(a) {
|
|
2042
|
+
return /* @__PURE__ */ e(Cr.Provider, { value: { name: a.name }, children: /* @__PURE__ */ e(fn, { ...a }) });
|
|
2043
2043
|
}
|
|
2044
|
-
const
|
|
2045
|
-
function
|
|
2046
|
-
const a =
|
|
2044
|
+
const Sr = Oe(null);
|
|
2045
|
+
function nt() {
|
|
2046
|
+
const a = ge(Cr), t = ge(Sr), { getFieldState: r, formState: n } = gn();
|
|
2047
2047
|
if (!a)
|
|
2048
2048
|
throw new Error("useFormField must be used inside <FormField>");
|
|
2049
2049
|
const o = r(a.name, n), i = (t == null ? void 0 : t.id) ?? "";
|
|
@@ -2058,15 +2058,15 @@ function st() {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
const pa = m(
|
|
2060
2060
|
function({ className: t, ...r }, n) {
|
|
2061
|
-
const o =
|
|
2062
|
-
return /* @__PURE__ */ e(
|
|
2061
|
+
const o = re();
|
|
2062
|
+
return /* @__PURE__ */ e(Sr.Provider, { value: { id: o }, children: /* @__PURE__ */ e("div", { ref: n, className: l("flex flex-col gap-1.5", t), ...r }) });
|
|
2063
2063
|
}
|
|
2064
2064
|
);
|
|
2065
2065
|
pa.displayName = "FormItem";
|
|
2066
2066
|
const ba = m(function({ className: t, ...r }, n) {
|
|
2067
|
-
const { formItemId: o, error: i } =
|
|
2067
|
+
const { formItemId: o, error: i } = nt();
|
|
2068
2068
|
return /* @__PURE__ */ e(
|
|
2069
|
-
|
|
2069
|
+
un.Root,
|
|
2070
2070
|
{
|
|
2071
2071
|
ref: n,
|
|
2072
2072
|
htmlFor: o,
|
|
@@ -2082,9 +2082,9 @@ const ba = m(function({ className: t, ...r }, n) {
|
|
|
2082
2082
|
ba.displayName = "FormLabel";
|
|
2083
2083
|
const xa = m(
|
|
2084
2084
|
function(t, r) {
|
|
2085
|
-
const { error: n, formItemId: o, formDescriptionId: i, formMessageId: d } =
|
|
2085
|
+
const { error: n, formItemId: o, formDescriptionId: i, formMessageId: d } = nt();
|
|
2086
2086
|
return /* @__PURE__ */ e(
|
|
2087
|
-
|
|
2087
|
+
or,
|
|
2088
2088
|
{
|
|
2089
2089
|
ref: r,
|
|
2090
2090
|
id: o,
|
|
@@ -2098,7 +2098,7 @@ const xa = m(
|
|
|
2098
2098
|
xa.displayName = "FormControl";
|
|
2099
2099
|
const va = m(
|
|
2100
2100
|
function({ className: t, ...r }, n) {
|
|
2101
|
-
const { formDescriptionId: o } =
|
|
2101
|
+
const { formDescriptionId: o } = nt();
|
|
2102
2102
|
return /* @__PURE__ */ e(
|
|
2103
2103
|
"p",
|
|
2104
2104
|
{
|
|
@@ -2113,7 +2113,7 @@ const va = m(
|
|
|
2113
2113
|
va.displayName = "FormDescription";
|
|
2114
2114
|
const Na = m(
|
|
2115
2115
|
function({ className: t, children: r, ...n }, o) {
|
|
2116
|
-
const { error: i, formMessageId: d } =
|
|
2116
|
+
const { error: i, formMessageId: d } = nt(), u = i ? String((i == null ? void 0 : i.message) ?? "") : r;
|
|
2117
2117
|
return u ? /* @__PURE__ */ e(
|
|
2118
2118
|
"p",
|
|
2119
2119
|
{
|
|
@@ -2128,7 +2128,7 @@ const Na = m(
|
|
|
2128
2128
|
}
|
|
2129
2129
|
);
|
|
2130
2130
|
Na.displayName = "FormError";
|
|
2131
|
-
const
|
|
2131
|
+
const zr = m(function({ size: t = "sm", className: r, ...n }, o) {
|
|
2132
2132
|
return /* @__PURE__ */ e(
|
|
2133
2133
|
"kbd",
|
|
2134
2134
|
{
|
|
@@ -2143,7 +2143,7 @@ const Sr = m(function({ size: t = "sm", className: r, ...n }, o) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
);
|
|
2145
2145
|
});
|
|
2146
|
-
|
|
2146
|
+
zr.displayName = "Kbd";
|
|
2147
2147
|
const ya = m(function({
|
|
2148
2148
|
options: t,
|
|
2149
2149
|
value: r,
|
|
@@ -2158,17 +2158,17 @@ const ya = m(function({
|
|
|
2158
2158
|
disabled: b,
|
|
2159
2159
|
className: g
|
|
2160
2160
|
}, p) {
|
|
2161
|
-
const x =
|
|
2161
|
+
const x = re(), N = x, v = `${x}-helper`, T = `${x}-error`, [F, M] = w(!1), [z, y] = w(""), k = lt(null), j = xe(
|
|
2162
2162
|
() => t.filter((C) => r.includes(C.value)),
|
|
2163
2163
|
[t, r]
|
|
2164
|
-
), K =
|
|
2164
|
+
), K = ee(
|
|
2165
2165
|
(C) => {
|
|
2166
|
-
r.includes(C) ? n(r.filter((
|
|
2166
|
+
r.includes(C) ? n(r.filter((ae) => ae !== C)) : n([...r, C]);
|
|
2167
2167
|
},
|
|
2168
2168
|
[r, n]
|
|
2169
|
-
), q =
|
|
2169
|
+
), q = ee(() => n([]), [n]), le = (C) => {
|
|
2170
2170
|
C.key === "Backspace" && z === "" && r.length > 0 && n(r.slice(0, -1));
|
|
2171
|
-
}, _ =
|
|
2171
|
+
}, _ = j.slice(0, c), G = j.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: [
|
|
@@ -2181,15 +2181,15 @@ const ya = m(function({
|
|
|
2181
2181
|
"aria-haspopup": "listbox",
|
|
2182
2182
|
id: N,
|
|
2183
2183
|
tabIndex: b ? -1 : 0,
|
|
2184
|
-
onKeyDown:
|
|
2184
|
+
onKeyDown: le,
|
|
2185
2185
|
"aria-disabled": b || void 0,
|
|
2186
|
-
"aria-invalid":
|
|
2187
|
-
"aria-describedby":
|
|
2186
|
+
"aria-invalid": ne || void 0,
|
|
2187
|
+
"aria-describedby": ne ? T : i ? v : void 0,
|
|
2188
2188
|
className: l(
|
|
2189
2189
|
"flex h-9 w-full cursor-text items-center gap-1.5 overflow-hidden rounded-md border bg-card px-2 py-1 text-sm",
|
|
2190
2190
|
"transition-colors duration-[var(--duration-fast)] ease-[var(--ease-out)]",
|
|
2191
2191
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
2192
|
-
|
|
2192
|
+
ne ? "border-danger focus-visible:border-danger focus-visible:ring-danger" : "border-border focus-visible:border-accent focus-visible:ring-ring",
|
|
2193
2193
|
b && "opacity-50 pointer-events-none"
|
|
2194
2194
|
),
|
|
2195
2195
|
onClick: () => {
|
|
@@ -2210,8 +2210,8 @@ const ya = m(function({
|
|
|
2210
2210
|
type: "button",
|
|
2211
2211
|
"aria-label": `Remove ${C.label}`,
|
|
2212
2212
|
className: "inline-flex items-center text-on-accent-soft hover:text-foreground",
|
|
2213
|
-
onClick: (
|
|
2214
|
-
|
|
2213
|
+
onClick: (ae) => {
|
|
2214
|
+
ae.stopPropagation(), K(C.value);
|
|
2215
2215
|
},
|
|
2216
2216
|
children: /* @__PURE__ */ e(X, { className: "size-3", "aria-hidden": !0 })
|
|
2217
2217
|
}
|
|
@@ -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: (j.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 && j.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(Ge, { className: "size-4 text-foreground-subtle", "aria-hidden": !0 })
|
|
2253
2253
|
] })
|
|
2254
2254
|
]
|
|
2255
2255
|
}
|
|
@@ -2273,7 +2273,7 @@ const ya = m(function({
|
|
|
2273
2273
|
className: "max-h-64 overflow-y-auto p-1",
|
|
2274
2274
|
children: [
|
|
2275
2275
|
t.filter((C) => C.label.toLowerCase().includes(z.toLowerCase())).map((C) => {
|
|
2276
|
-
const
|
|
2276
|
+
const ae = r.includes(C.value);
|
|
2277
2277
|
return /* @__PURE__ */ s(
|
|
2278
2278
|
$.Item,
|
|
2279
2279
|
{
|
|
@@ -2292,9 +2292,9 @@ const ya = m(function({
|
|
|
2292
2292
|
"aria-hidden": !0,
|
|
2293
2293
|
className: l(
|
|
2294
2294
|
"flex size-4 items-center justify-center rounded-sm border",
|
|
2295
|
-
|
|
2295
|
+
ae ? "border-accent bg-accent text-on-accent" : "border-border"
|
|
2296
2296
|
),
|
|
2297
|
-
children:
|
|
2297
|
+
children: ae && /* @__PURE__ */ e(ie, { className: "size-3", "aria-hidden": !0 })
|
|
2298
2298
|
}
|
|
2299
2299
|
),
|
|
2300
2300
|
/* @__PURE__ */ e("span", { className: "flex-1", children: C.label }),
|
|
@@ -2315,7 +2315,7 @@ const ya = m(function({
|
|
|
2315
2315
|
] });
|
|
2316
2316
|
});
|
|
2317
2317
|
ya.displayName = "MultiSelect";
|
|
2318
|
-
const
|
|
2318
|
+
const Tr = O.Root, Ns = 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,21 +2336,21 @@ const zr = O.Root, ps = O.Value, Tt = 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(Ge, { className: "size-4 text-foreground-subtle shrink-0", "aria-hidden": !0 }) })
|
|
2340
2340
|
]
|
|
2341
2341
|
}
|
|
2342
2342
|
);
|
|
2343
2343
|
});
|
|
2344
|
-
|
|
2345
|
-
const
|
|
2346
|
-
return /* @__PURE__ */ e(O.ScrollUpButton, { ref: n, className: l(
|
|
2344
|
+
Ct.displayName = "SelectTrigger";
|
|
2345
|
+
const Ir = "flex h-6 cursor-default items-center justify-center text-foreground-subtle", Mr = m(function({ className: t, ...r }, n) {
|
|
2346
|
+
return /* @__PURE__ */ e(O.ScrollUpButton, { ref: n, className: l(Ir, t), ...r, children: /* @__PURE__ */ e(Ot, { className: "size-4", "aria-hidden": !0 }) });
|
|
2347
2347
|
});
|
|
2348
|
-
|
|
2349
|
-
const
|
|
2350
|
-
return /* @__PURE__ */ e(O.ScrollDownButton, { ref: n, className: l(
|
|
2348
|
+
Mr.displayName = "SelectScrollUpButton";
|
|
2349
|
+
const Dr = m(function({ className: t, ...r }, n) {
|
|
2350
|
+
return /* @__PURE__ */ e(O.ScrollDownButton, { ref: n, className: l(Ir, t), ...r, children: /* @__PURE__ */ e(Be, { className: "size-4", "aria-hidden": !0 }) });
|
|
2351
2351
|
});
|
|
2352
|
-
|
|
2353
|
-
const
|
|
2352
|
+
Dr.displayName = "SelectScrollDownButton";
|
|
2353
|
+
const St = m(function({ className: t, children: r, position: n = "popper", ...o }, i) {
|
|
2354
2354
|
return /* @__PURE__ */ e(O.Portal, { children: /* @__PURE__ */ s(
|
|
2355
2355
|
O.Content,
|
|
2356
2356
|
{
|
|
@@ -2368,15 +2368,15 @@ const It = m(function({ className: t, children: r, position: n = "popper", ...o
|
|
|
2368
2368
|
),
|
|
2369
2369
|
...o,
|
|
2370
2370
|
children: [
|
|
2371
|
-
/* @__PURE__ */ e(
|
|
2371
|
+
/* @__PURE__ */ e(Mr, {}),
|
|
2372
2372
|
/* @__PURE__ */ e(O.Viewport, { className: "p-1", children: r }),
|
|
2373
|
-
/* @__PURE__ */ e(
|
|
2373
|
+
/* @__PURE__ */ e(Dr, {})
|
|
2374
2374
|
]
|
|
2375
2375
|
}
|
|
2376
2376
|
) });
|
|
2377
2377
|
});
|
|
2378
|
-
|
|
2379
|
-
const
|
|
2378
|
+
St.displayName = "SelectContent";
|
|
2379
|
+
const Pr = m(function({ className: t, ...r }, n) {
|
|
2380
2380
|
return /* @__PURE__ */ e(
|
|
2381
2381
|
O.Label,
|
|
2382
2382
|
{
|
|
@@ -2386,8 +2386,8 @@ const Dr = m(function({ className: t, ...r }, n) {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
);
|
|
2388
2388
|
});
|
|
2389
|
-
|
|
2390
|
-
const
|
|
2389
|
+
Pr.displayName = "SelectLabel";
|
|
2390
|
+
const zt = m(function({ className: t, children: r, leadingIcon: n, ...o }, i) {
|
|
2391
2391
|
return /* @__PURE__ */ s(
|
|
2392
2392
|
O.Item,
|
|
2393
2393
|
{
|
|
@@ -2403,12 +2403,12 @@ const Mt = m(function({ className: t, children: r, leadingIcon: n, ...o }, i) {
|
|
|
2403
2403
|
children: [
|
|
2404
2404
|
n && /* @__PURE__ */ e("span", { className: "flex items-center text-foreground-subtle [&_svg]:size-4", children: n }),
|
|
2405
2405
|
/* @__PURE__ */ e(O.ItemText, { children: r }),
|
|
2406
|
-
/* @__PURE__ */ e("span", { className: "absolute right-2 flex items-center justify-center", children: /* @__PURE__ */ e(O.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
2406
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex items-center justify-center", children: /* @__PURE__ */ e(O.ItemIndicator, { children: /* @__PURE__ */ e(ie, { className: "size-4 text-accent", "aria-hidden": !0 }) }) })
|
|
2407
2407
|
]
|
|
2408
2408
|
}
|
|
2409
2409
|
);
|
|
2410
2410
|
});
|
|
2411
|
-
|
|
2411
|
+
zt.displayName = "SelectItem";
|
|
2412
2412
|
const wa = m(function({ className: t, ...r }, n) {
|
|
2413
2413
|
return /* @__PURE__ */ e(
|
|
2414
2414
|
O.Separator,
|
|
@@ -2422,7 +2422,7 @@ const wa = m(function({ className: t, ...r }, n) {
|
|
|
2422
2422
|
wa.displayName = "SelectSeparator";
|
|
2423
2423
|
const ka = m(function({ label: t, children: r, ...n }, o) {
|
|
2424
2424
|
return /* @__PURE__ */ s(O.Group, { ref: o, ...n, children: [
|
|
2425
|
-
t && /* @__PURE__ */ e(
|
|
2425
|
+
t && /* @__PURE__ */ e(Pr, { children: t }),
|
|
2426
2426
|
r
|
|
2427
2427
|
] });
|
|
2428
2428
|
});
|
|
@@ -2434,7 +2434,7 @@ function Ca(a, t, r = 7) {
|
|
|
2434
2434
|
for (let u = i; u <= d; u++) o.push(u);
|
|
2435
2435
|
return d < t - 1 && o.push("gap"), o.push(t), o;
|
|
2436
2436
|
}
|
|
2437
|
-
const
|
|
2437
|
+
const _r = m(function({
|
|
2438
2438
|
page: t,
|
|
2439
2439
|
pageCount: r,
|
|
2440
2440
|
onPageChange: n,
|
|
@@ -2446,7 +2446,7 @@ const Pr = m(function({
|
|
|
2446
2446
|
className: c,
|
|
2447
2447
|
...h
|
|
2448
2448
|
}, b) {
|
|
2449
|
-
const g =
|
|
2449
|
+
const g = xe(() => Ca(t, r), [t, r]), p = i ? (t - 1) * i + 1 : void 0, x = i && o ? Math.min(t * i, o) : void 0, N = (v) => {
|
|
2450
2450
|
v < 1 || v > r || v === t || n(v);
|
|
2451
2451
|
};
|
|
2452
2452
|
return /* @__PURE__ */ s(
|
|
@@ -2468,9 +2468,9 @@ const Pr = m(function({
|
|
|
2468
2468
|
] }),
|
|
2469
2469
|
d && u && i !== void 0 && /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
2470
2470
|
/* @__PURE__ */ e("label", { htmlFor: "page-size", className: "sr-only", children: "Rows per page" }),
|
|
2471
|
-
/* @__PURE__ */ s(
|
|
2472
|
-
/* @__PURE__ */ e(
|
|
2473
|
-
/* @__PURE__ */ e(
|
|
2471
|
+
/* @__PURE__ */ s(Tr, { value: String(i), onValueChange: (v) => u(Number(v)), children: [
|
|
2472
|
+
/* @__PURE__ */ e(Ct, { size: "sm", className: "w-[7.5rem] whitespace-nowrap" }),
|
|
2473
|
+
/* @__PURE__ */ e(St, { children: d.map((v) => /* @__PURE__ */ s(zt, { value: String(v), children: [
|
|
2474
2474
|
v,
|
|
2475
2475
|
" / page"
|
|
2476
2476
|
] }, v)) })
|
|
@@ -2485,8 +2485,8 @@ const Pr = m(function({
|
|
|
2485
2485
|
"aria-label": "Go to first page",
|
|
2486
2486
|
disabled: t === 1,
|
|
2487
2487
|
onClick: () => N(1),
|
|
2488
|
-
className:
|
|
2489
|
-
children: /* @__PURE__ */ e(
|
|
2488
|
+
className: Ae,
|
|
2489
|
+
children: /* @__PURE__ */ e(ct, { className: "size-4", "aria-hidden": !0 })
|
|
2490
2490
|
}
|
|
2491
2491
|
) }),
|
|
2492
2492
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
@@ -2496,8 +2496,8 @@ const Pr = m(function({
|
|
|
2496
2496
|
"aria-label": "Previous page",
|
|
2497
2497
|
disabled: t === 1,
|
|
2498
2498
|
onClick: () => N(t - 1),
|
|
2499
|
-
className:
|
|
2500
|
-
children: /* @__PURE__ */ e(
|
|
2499
|
+
className: Ae,
|
|
2500
|
+
children: /* @__PURE__ */ e(Ve, { className: "size-4", "aria-hidden": !0 })
|
|
2501
2501
|
}
|
|
2502
2502
|
) }),
|
|
2503
2503
|
g.map(
|
|
@@ -2525,8 +2525,8 @@ const Pr = m(function({
|
|
|
2525
2525
|
"aria-label": "Next page",
|
|
2526
2526
|
disabled: t === r,
|
|
2527
2527
|
onClick: () => N(t + 1),
|
|
2528
|
-
className:
|
|
2529
|
-
children: /* @__PURE__ */ e(
|
|
2528
|
+
className: Ae,
|
|
2529
|
+
children: /* @__PURE__ */ e(se, { className: "size-4", "aria-hidden": !0 })
|
|
2530
2530
|
}
|
|
2531
2531
|
) }),
|
|
2532
2532
|
f && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
@@ -2536,8 +2536,8 @@ const Pr = m(function({
|
|
|
2536
2536
|
"aria-label": "Go to last page",
|
|
2537
2537
|
disabled: t === r,
|
|
2538
2538
|
onClick: () => N(r),
|
|
2539
|
-
className:
|
|
2540
|
-
children: /* @__PURE__ */ e(
|
|
2539
|
+
className: Ae,
|
|
2540
|
+
children: /* @__PURE__ */ e(ut, { className: "size-4", "aria-hidden": !0 })
|
|
2541
2541
|
}
|
|
2542
2542
|
) })
|
|
2543
2543
|
] })
|
|
@@ -2545,14 +2545,14 @@ const Pr = m(function({
|
|
|
2545
2545
|
}
|
|
2546
2546
|
);
|
|
2547
2547
|
});
|
|
2548
|
-
|
|
2549
|
-
const
|
|
2548
|
+
_r.displayName = "Pagination";
|
|
2549
|
+
const Ae = l(
|
|
2550
2550
|
"inline-flex size-8 items-center justify-center rounded-md text-foreground-muted",
|
|
2551
2551
|
"transition-colors duration-[var(--duration-fast)]",
|
|
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
|
+
), ys = A.Root, ws = A.Trigger, ks = A.Anchor, Cs = 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
|
{
|
|
@@ -2583,7 +2583,7 @@ const za = { sm: "h-1", md: "h-1.5", lg: "h-2" }, Ta = {
|
|
|
2583
2583
|
function({ className: t, value: r, size: n = "md", tone: o = "accent", ...i }, d) {
|
|
2584
2584
|
const u = r == null;
|
|
2585
2585
|
return /* @__PURE__ */ s(
|
|
2586
|
-
|
|
2586
|
+
It.Root,
|
|
2587
2587
|
{
|
|
2588
2588
|
ref: d,
|
|
2589
2589
|
value: u ? void 0 : r,
|
|
@@ -2595,7 +2595,7 @@ const za = { sm: "h-1", md: "h-1.5", lg: "h-2" }, Ta = {
|
|
|
2595
2595
|
...i,
|
|
2596
2596
|
children: [
|
|
2597
2597
|
/* @__PURE__ */ e(
|
|
2598
|
-
|
|
2598
|
+
It.Indicator,
|
|
2599
2599
|
{
|
|
2600
2600
|
className: l(
|
|
2601
2601
|
"h-full w-full flex-1 transition-transform",
|
|
@@ -2668,9 +2668,9 @@ const Ma = {
|
|
|
2668
2668
|
);
|
|
2669
2669
|
});
|
|
2670
2670
|
Da.displayName = "ProgressCircle";
|
|
2671
|
-
const
|
|
2671
|
+
const Ar = m(function({ className: t, orientation: r = "vertical", ...n }, o) {
|
|
2672
2672
|
return /* @__PURE__ */ e(
|
|
2673
|
-
|
|
2673
|
+
it.Root,
|
|
2674
2674
|
{
|
|
2675
2675
|
ref: o,
|
|
2676
2676
|
className: l(
|
|
@@ -2682,12 +2682,12 @@ const _r = m(function({ className: t, orientation: r = "vertical", ...n }, o) {
|
|
|
2682
2682
|
}
|
|
2683
2683
|
);
|
|
2684
2684
|
});
|
|
2685
|
-
|
|
2686
|
-
const
|
|
2687
|
-
const c =
|
|
2685
|
+
Ar.displayName = "RadioGroup";
|
|
2686
|
+
const Ee = m(function({ className: t, label: r, description: n, hideLabel: o, id: i, disabled: d, ...u }, f) {
|
|
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(
|
|
2690
|
-
|
|
2690
|
+
it.Item,
|
|
2691
2691
|
{
|
|
2692
2692
|
ref: f,
|
|
2693
2693
|
id: h,
|
|
@@ -2702,7 +2702,7 @@ const Ve = m(function({ className: t, label: r, description: n, hideLabel: o, id
|
|
|
2702
2702
|
"border-border-strong"
|
|
2703
2703
|
),
|
|
2704
2704
|
...u,
|
|
2705
|
-
children: /* @__PURE__ */ e(
|
|
2705
|
+
children: /* @__PURE__ */ e(it.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e("span", { className: "size-2 rounded-full bg-accent", "aria-hidden": !0 }) })
|
|
2706
2706
|
}
|
|
2707
2707
|
),
|
|
2708
2708
|
r && /* @__PURE__ */ s("div", { className: l("flex flex-col gap-0.5", o && "sr-only"), children: [
|
|
@@ -2721,26 +2721,26 @@ const Ve = m(function({ className: t, label: r, description: n, hideLabel: o, id
|
|
|
2721
2721
|
] })
|
|
2722
2722
|
] });
|
|
2723
2723
|
});
|
|
2724
|
-
|
|
2724
|
+
Ee.displayName = "RadioItem";
|
|
2725
2725
|
const Pa = m(function({ className: t, children: r, ...n }, o) {
|
|
2726
2726
|
return /* @__PURE__ */ s(
|
|
2727
|
-
|
|
2727
|
+
Se.Root,
|
|
2728
2728
|
{
|
|
2729
2729
|
ref: o,
|
|
2730
2730
|
className: l("relative overflow-hidden", t),
|
|
2731
2731
|
...n,
|
|
2732
2732
|
children: [
|
|
2733
|
-
/* @__PURE__ */ e(
|
|
2734
|
-
/* @__PURE__ */ e(
|
|
2735
|
-
/* @__PURE__ */ e(
|
|
2733
|
+
/* @__PURE__ */ e(Se.Viewport, { className: "h-full w-full rounded-[inherit]", children: r }),
|
|
2734
|
+
/* @__PURE__ */ e(Fr, {}),
|
|
2735
|
+
/* @__PURE__ */ e(Se.Corner, {})
|
|
2736
2736
|
]
|
|
2737
2737
|
}
|
|
2738
2738
|
);
|
|
2739
2739
|
});
|
|
2740
2740
|
Pa.displayName = "ScrollArea";
|
|
2741
|
-
const
|
|
2741
|
+
const Fr = m(function({ className: t, orientation: r = "vertical", ...n }, o) {
|
|
2742
2742
|
return /* @__PURE__ */ e(
|
|
2743
|
-
|
|
2743
|
+
Se.ScrollAreaScrollbar,
|
|
2744
2744
|
{
|
|
2745
2745
|
ref: o,
|
|
2746
2746
|
orientation: r,
|
|
@@ -2751,14 +2751,14 @@ const Ar = m(function({ className: t, orientation: r = "vertical", ...n }, o) {
|
|
|
2751
2751
|
t
|
|
2752
2752
|
),
|
|
2753
2753
|
...n,
|
|
2754
|
-
children: /* @__PURE__ */ e(
|
|
2754
|
+
children: /* @__PURE__ */ e(Se.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border-strong" })
|
|
2755
2755
|
}
|
|
2756
2756
|
);
|
|
2757
2757
|
});
|
|
2758
|
-
|
|
2759
|
-
const
|
|
2758
|
+
Fr.displayName = "ScrollBar";
|
|
2759
|
+
const be = m(function({ className: t, orientation: r = "horizontal", decorative: n = !0, ...o }, i) {
|
|
2760
2760
|
return /* @__PURE__ */ e(
|
|
2761
|
-
|
|
2761
|
+
hn.Root,
|
|
2762
2762
|
{
|
|
2763
2763
|
ref: i,
|
|
2764
2764
|
orientation: r,
|
|
@@ -2772,8 +2772,8 @@ const Ne = m(function({ className: t, orientation: r = "horizontal", decorative:
|
|
|
2772
2772
|
}
|
|
2773
2773
|
);
|
|
2774
2774
|
});
|
|
2775
|
-
|
|
2776
|
-
const _a = D.Root, Aa = D.Trigger,
|
|
2775
|
+
be.displayName = "Separator";
|
|
2776
|
+
const _a = D.Root, Aa = D.Trigger, Ss = D.Close, Fa = D.Portal, Lr = m(function({ className: t, ...r }, n) {
|
|
2777
2777
|
return /* @__PURE__ */ e(
|
|
2778
2778
|
D.Overlay,
|
|
2779
2779
|
{
|
|
@@ -2788,8 +2788,8 @@ const _a = D.Root, Aa = D.Trigger, ys = D.Close, Fa = D.Portal, Fr = m(function(
|
|
|
2788
2788
|
}
|
|
2789
2789
|
);
|
|
2790
2790
|
});
|
|
2791
|
-
|
|
2792
|
-
const
|
|
2791
|
+
Lr.displayName = "SheetOverlay";
|
|
2792
|
+
const La = Y(
|
|
2793
2793
|
[
|
|
2794
2794
|
"fixed z-[var(--z-modal)] bg-card text-card-foreground shadow-lg",
|
|
2795
2795
|
"flex flex-col gap-4 p-6",
|
|
@@ -2809,8 +2809,8 @@ const ja = Y(
|
|
|
2809
2809
|
}
|
|
2810
2810
|
), jr = m(function({ className: t, children: r, side: n = "right", showClose: o = !0, ...i }, d) {
|
|
2811
2811
|
return /* @__PURE__ */ s(Fa, { children: [
|
|
2812
|
-
/* @__PURE__ */ e(
|
|
2813
|
-
/* @__PURE__ */ s(D.Content, { ref: d, className: l(
|
|
2812
|
+
/* @__PURE__ */ e(Lr, {}),
|
|
2813
|
+
/* @__PURE__ */ s(D.Content, { ref: d, className: l(La({ side: n }), t), ...i, children: [
|
|
2814
2814
|
r,
|
|
2815
2815
|
o && /* @__PURE__ */ e(
|
|
2816
2816
|
D.Close,
|
|
@@ -2829,11 +2829,11 @@ const ja = Y(
|
|
|
2829
2829
|
] });
|
|
2830
2830
|
});
|
|
2831
2831
|
jr.displayName = "SheetContent";
|
|
2832
|
-
function
|
|
2832
|
+
function ja({ className: a, ...t }) {
|
|
2833
2833
|
return /* @__PURE__ */ e("div", { className: l("flex flex-col gap-1", a), ...t });
|
|
2834
2834
|
}
|
|
2835
|
-
|
|
2836
|
-
function
|
|
2835
|
+
ja.displayName = "SheetHeader";
|
|
2836
|
+
function Ea({ className: a, ...t }) {
|
|
2837
2837
|
return /* @__PURE__ */ e(
|
|
2838
2838
|
"div",
|
|
2839
2839
|
{
|
|
@@ -2842,7 +2842,7 @@ function La({ className: a, ...t }) {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
);
|
|
2844
2844
|
}
|
|
2845
|
-
|
|
2845
|
+
Ea.displayName = "SheetFooter";
|
|
2846
2846
|
const $a = m(function({ className: t, ...r }, n) {
|
|
2847
2847
|
return /* @__PURE__ */ e(
|
|
2848
2848
|
D.Title,
|
|
@@ -2865,11 +2865,11 @@ const Oa = m(function({ className: t, ...r }, n) {
|
|
|
2865
2865
|
);
|
|
2866
2866
|
});
|
|
2867
2867
|
Oa.displayName = "SheetDescription";
|
|
2868
|
-
const
|
|
2869
|
-
function
|
|
2870
|
-
return
|
|
2868
|
+
const De = Oe({ collapsed: !1 });
|
|
2869
|
+
function zs() {
|
|
2870
|
+
return ge(De);
|
|
2871
2871
|
}
|
|
2872
|
-
const
|
|
2872
|
+
const Er = m(function({
|
|
2873
2873
|
defaultCollapsed: t = !1,
|
|
2874
2874
|
collapsed: r,
|
|
2875
2875
|
onCollapsedChange: n,
|
|
@@ -2882,7 +2882,7 @@ const Br = m(function({
|
|
|
2882
2882
|
const [h, b] = w(t), g = r ?? h, p = (x) => {
|
|
2883
2883
|
r === void 0 && b(x), n == null || n(x);
|
|
2884
2884
|
};
|
|
2885
|
-
return /* @__PURE__ */ e(
|
|
2885
|
+
return /* @__PURE__ */ e(De.Provider, { value: { collapsed: g }, children: /* @__PURE__ */ s(
|
|
2886
2886
|
"aside",
|
|
2887
2887
|
{
|
|
2888
2888
|
ref: c,
|
|
@@ -2921,7 +2921,7 @@ const Br = m(function({
|
|
|
2921
2921
|
"transition-colors duration-[var(--duration-fast)]"
|
|
2922
2922
|
),
|
|
2923
2923
|
children: [
|
|
2924
|
-
g ? /* @__PURE__ */ e(
|
|
2924
|
+
g ? /* @__PURE__ */ e(ut, { className: "size-4", "aria-hidden": !0 }) : /* @__PURE__ */ e(ct, { className: "size-4", "aria-hidden": !0 }),
|
|
2925
2925
|
!g && /* @__PURE__ */ e("span", { className: "text-xs font-medium", children: "Collapse" })
|
|
2926
2926
|
]
|
|
2927
2927
|
}
|
|
@@ -2930,16 +2930,16 @@ const Br = m(function({
|
|
|
2930
2930
|
}
|
|
2931
2931
|
) });
|
|
2932
2932
|
});
|
|
2933
|
-
|
|
2934
|
-
function
|
|
2935
|
-
const { collapsed: o } =
|
|
2933
|
+
Er.displayName = "Sidebar";
|
|
2934
|
+
function $r({ label: a, className: t, children: r, ...n }) {
|
|
2935
|
+
const { collapsed: o } = ge(De);
|
|
2936
2936
|
return /* @__PURE__ */ s("div", { className: l("mb-3", t), ...n, children: [
|
|
2937
2937
|
a && !o && /* @__PURE__ */ e("div", { className: "px-4 pb-1 pt-2 text-xs font-medium text-foreground-subtle uppercase tracking-wide", children: a }),
|
|
2938
2938
|
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: r })
|
|
2939
2939
|
] });
|
|
2940
2940
|
}
|
|
2941
|
-
|
|
2942
|
-
function
|
|
2941
|
+
$r.displayName = "SidebarSection";
|
|
2942
|
+
function Or({
|
|
2943
2943
|
icon: a,
|
|
2944
2944
|
active: t,
|
|
2945
2945
|
href: r,
|
|
@@ -2949,7 +2949,7 @@ function Z({
|
|
|
2949
2949
|
children: d,
|
|
2950
2950
|
...u
|
|
2951
2951
|
}) {
|
|
2952
|
-
const { collapsed: f } =
|
|
2952
|
+
const { collapsed: f } = ge(De);
|
|
2953
2953
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ s(
|
|
2954
2954
|
r ? "a" : "button",
|
|
2955
2955
|
{
|
|
@@ -2973,10 +2973,10 @@ function Z({
|
|
|
2973
2973
|
}
|
|
2974
2974
|
) });
|
|
2975
2975
|
}
|
|
2976
|
-
|
|
2976
|
+
Or.displayName = "SidebarItem";
|
|
2977
2977
|
function Ra({ icon: a, label: t, defaultOpen: r = !0, children: n }) {
|
|
2978
|
-
const { collapsed: o } =
|
|
2979
|
-
return o ? /* @__PURE__ */ e(
|
|
2978
|
+
const { collapsed: o } = ge(De), [i, d] = w(r);
|
|
2979
|
+
return o ? /* @__PURE__ */ e(te, { children: n }) : /* @__PURE__ */ s("li", { children: [
|
|
2980
2980
|
/* @__PURE__ */ s(
|
|
2981
2981
|
"button",
|
|
2982
2982
|
{
|
|
@@ -2992,7 +2992,7 @@ function Ra({ icon: a, label: t, defaultOpen: r = !0, children: n }) {
|
|
|
2992
2992
|
children: [
|
|
2993
2993
|
a && /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center [&_svg]:size-4", children: a }),
|
|
2994
2994
|
/* @__PURE__ */ e("span", { className: "flex-1 text-left", children: t }),
|
|
2995
|
-
/* @__PURE__ */ e(
|
|
2995
|
+
/* @__PURE__ */ e(Be, { className: l("size-3.5 transition-transform", i && "rotate-180"), "aria-hidden": !0 })
|
|
2996
2996
|
]
|
|
2997
2997
|
}
|
|
2998
2998
|
),
|
|
@@ -3000,7 +3000,7 @@ function Ra({ icon: a, label: t, defaultOpen: r = !0, children: n }) {
|
|
|
3000
3000
|
] });
|
|
3001
3001
|
}
|
|
3002
3002
|
Ra.displayName = "SidebarGroup";
|
|
3003
|
-
const
|
|
3003
|
+
const Ba = m(
|
|
3004
3004
|
function({
|
|
3005
3005
|
className: t,
|
|
3006
3006
|
label: r,
|
|
@@ -3017,7 +3017,7 @@ const Ea = m(
|
|
|
3017
3017
|
n && /* @__PURE__ */ e("span", { className: "text-xs tabular text-foreground-muted font-mono", children: h ? `${o(c[0])} – ${o(c[1])}` : o(c[0]) })
|
|
3018
3018
|
] }),
|
|
3019
3019
|
/* @__PURE__ */ s(
|
|
3020
|
-
|
|
3020
|
+
_e.Root,
|
|
3021
3021
|
{
|
|
3022
3022
|
ref: f,
|
|
3023
3023
|
value: i,
|
|
@@ -3025,9 +3025,9 @@ const Ea = m(
|
|
|
3025
3025
|
className: "relative flex w-full touch-none select-none items-center",
|
|
3026
3026
|
...u,
|
|
3027
3027
|
children: [
|
|
3028
|
-
/* @__PURE__ */ e(
|
|
3028
|
+
/* @__PURE__ */ e(_e.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-full bg-background-muted", children: /* @__PURE__ */ e(_e.Range, { className: "absolute h-full bg-accent" }) }),
|
|
3029
3029
|
c.map((b, g) => /* @__PURE__ */ e(
|
|
3030
|
-
|
|
3030
|
+
_e.Thumb,
|
|
3031
3031
|
{
|
|
3032
3032
|
className: l(
|
|
3033
3033
|
"block size-4 rounded-full border-2 border-accent bg-card shadow-sm",
|
|
@@ -3045,7 +3045,7 @@ const Ea = m(
|
|
|
3045
3045
|
] });
|
|
3046
3046
|
}
|
|
3047
3047
|
);
|
|
3048
|
-
|
|
3048
|
+
Ba.displayName = "Slider";
|
|
3049
3049
|
const Va = { sm: "size-3.5", md: "size-4", lg: "size-6" }, Ga = {
|
|
3050
3050
|
accent: "text-accent",
|
|
3051
3051
|
neutral: "text-foreground-subtle",
|
|
@@ -3078,7 +3078,7 @@ const Va = { sm: "size-3.5", md: "size-4", lg: "size-6" }, Ga = {
|
|
|
3078
3078
|
);
|
|
3079
3079
|
});
|
|
3080
3080
|
Ha.displayName = "Spinner";
|
|
3081
|
-
const
|
|
3081
|
+
const Rr = m(function({ steps: t, current: r, orientation: n = "horizontal", className: o, ...i }, d) {
|
|
3082
3082
|
return /* @__PURE__ */ e(
|
|
3083
3083
|
"ol",
|
|
3084
3084
|
{
|
|
@@ -3110,7 +3110,7 @@ const Lr = m(function({ steps: t, current: r, orientation: n = "horizontal", cla
|
|
|
3110
3110
|
c === "current" && "bg-card border-2 border-accent text-accent",
|
|
3111
3111
|
c === "upcoming" && "bg-background-muted text-foreground-subtle border border-border"
|
|
3112
3112
|
),
|
|
3113
|
-
children: c === "complete" ? /* @__PURE__ */ e(
|
|
3113
|
+
children: c === "complete" ? /* @__PURE__ */ e(ie, { className: "size-4" }) : f + 1
|
|
3114
3114
|
}
|
|
3115
3115
|
),
|
|
3116
3116
|
n === "vertical" && !h && /* @__PURE__ */ e(
|
|
@@ -3154,14 +3154,14 @@ const Lr = m(function({ steps: t, current: r, orientation: n = "horizontal", cla
|
|
|
3154
3154
|
}
|
|
3155
3155
|
);
|
|
3156
3156
|
});
|
|
3157
|
-
|
|
3158
|
-
const
|
|
3157
|
+
Rr.displayName = "Stepper";
|
|
3158
|
+
const Ua = {
|
|
3159
3159
|
sm: "h-4 w-7",
|
|
3160
3160
|
md: "h-5 w-9"
|
|
3161
|
-
},
|
|
3161
|
+
}, Wa = {
|
|
3162
3162
|
sm: "size-3 data-[state=checked]:translate-x-3",
|
|
3163
3163
|
md: "size-4 data-[state=checked]:translate-x-4"
|
|
3164
|
-
},
|
|
3164
|
+
}, Ce = m(
|
|
3165
3165
|
function({
|
|
3166
3166
|
className: t,
|
|
3167
3167
|
label: r,
|
|
@@ -3173,8 +3173,8 @@ const Wa = {
|
|
|
3173
3173
|
disabled: f,
|
|
3174
3174
|
...c
|
|
3175
3175
|
}, h) {
|
|
3176
|
-
const b =
|
|
3177
|
-
|
|
3176
|
+
const b = re(), g = u ?? b, p = n ? `${g}-desc` : void 0, x = /* @__PURE__ */ e(
|
|
3177
|
+
Mt.Root,
|
|
3178
3178
|
{
|
|
3179
3179
|
ref: h,
|
|
3180
3180
|
id: g,
|
|
@@ -3186,17 +3186,17 @@ const Wa = {
|
|
|
3186
3186
|
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
3187
3187
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
3188
3188
|
"data-[state=checked]:bg-accent data-[state=unchecked]:bg-neutral-300 dark:data-[state=unchecked]:bg-neutral-700",
|
|
3189
|
-
|
|
3189
|
+
Ua[i]
|
|
3190
3190
|
),
|
|
3191
3191
|
...c,
|
|
3192
3192
|
children: /* @__PURE__ */ e(
|
|
3193
|
-
|
|
3193
|
+
Mt.Thumb,
|
|
3194
3194
|
{
|
|
3195
3195
|
className: l(
|
|
3196
3196
|
"pointer-events-none block rounded-full bg-white shadow-sm",
|
|
3197
3197
|
"transition-transform duration-[var(--duration-base)] ease-[var(--ease-out)]",
|
|
3198
3198
|
"translate-x-0",
|
|
3199
|
-
|
|
3199
|
+
Wa[i]
|
|
3200
3200
|
)
|
|
3201
3201
|
}
|
|
3202
3202
|
)
|
|
@@ -3222,8 +3222,8 @@ const Wa = {
|
|
|
3222
3222
|
] });
|
|
3223
3223
|
}
|
|
3224
3224
|
);
|
|
3225
|
-
|
|
3226
|
-
const Ka =
|
|
3225
|
+
Ce.displayName = "Switch";
|
|
3226
|
+
const Ka = Je.Root, qa = Y("inline-flex items-center", {
|
|
3227
3227
|
variants: {
|
|
3228
3228
|
variant: {
|
|
3229
3229
|
underline: "gap-4 border-b border-border w-full",
|
|
@@ -3236,10 +3236,10 @@ const Ka = tt.Root, qa = Y("inline-flex items-center", {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
},
|
|
3238
3238
|
defaultVariants: { variant: "underline", size: "md" }
|
|
3239
|
-
}),
|
|
3239
|
+
}), Br = m(
|
|
3240
3240
|
function({ className: t, variant: r = "underline", size: n, ...o }, i) {
|
|
3241
3241
|
return /* @__PURE__ */ e(
|
|
3242
|
-
|
|
3242
|
+
Je.List,
|
|
3243
3243
|
{
|
|
3244
3244
|
ref: i,
|
|
3245
3245
|
"data-variant": r,
|
|
@@ -3249,10 +3249,10 @@ const Ka = tt.Root, qa = Y("inline-flex items-center", {
|
|
|
3249
3249
|
);
|
|
3250
3250
|
}
|
|
3251
3251
|
);
|
|
3252
|
-
|
|
3253
|
-
const
|
|
3252
|
+
Br.displayName = "TabsList";
|
|
3253
|
+
const Vr = m(function({ className: t, ...r }, n) {
|
|
3254
3254
|
return /* @__PURE__ */ e(
|
|
3255
|
-
|
|
3255
|
+
Je.Trigger,
|
|
3256
3256
|
{
|
|
3257
3257
|
ref: n,
|
|
3258
3258
|
className: l(
|
|
@@ -3283,10 +3283,10 @@ const Or = m(function({ className: t, ...r }, n) {
|
|
|
3283
3283
|
}
|
|
3284
3284
|
);
|
|
3285
3285
|
});
|
|
3286
|
-
|
|
3287
|
-
const
|
|
3286
|
+
Vr.displayName = "TabsTrigger";
|
|
3287
|
+
const Gr = m(function({ className: t, ...r }, n) {
|
|
3288
3288
|
return /* @__PURE__ */ e(
|
|
3289
|
-
|
|
3289
|
+
Je.Content,
|
|
3290
3290
|
{
|
|
3291
3291
|
ref: n,
|
|
3292
3292
|
className: l(
|
|
@@ -3298,7 +3298,7 @@ const Rr = m(function({ className: t, ...r }, n) {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
);
|
|
3300
3300
|
});
|
|
3301
|
-
|
|
3301
|
+
Gr.displayName = "TabsContent";
|
|
3302
3302
|
const Qa = m(function({
|
|
3303
3303
|
className: t,
|
|
3304
3304
|
label: r,
|
|
@@ -3314,16 +3314,16 @@ const Qa = m(function({
|
|
|
3314
3314
|
defaultValue: g,
|
|
3315
3315
|
...p
|
|
3316
3316
|
}, x) {
|
|
3317
|
-
const N =
|
|
3317
|
+
const N = re(), v = c ?? N, T = `${v}-helper`, F = `${v}-error`, M = lt(null), z = (k) => {
|
|
3318
3318
|
M.current = k, typeof x == "function" ? x(k) : x && (x.current = k);
|
|
3319
|
-
}, y =
|
|
3319
|
+
}, y = ee(() => {
|
|
3320
3320
|
const k = M.current;
|
|
3321
3321
|
if (!k || !i) return;
|
|
3322
3322
|
k.style.height = "auto";
|
|
3323
3323
|
const K = (parseFloat(getComputedStyle(k).lineHeight) || 20) * u;
|
|
3324
3324
|
k.style.height = `${Math.min(k.scrollHeight, K)}px`, k.style.overflowY = k.scrollHeight > K ? "auto" : "hidden";
|
|
3325
3325
|
}, [i, u]);
|
|
3326
|
-
return
|
|
3326
|
+
return ve(() => {
|
|
3327
3327
|
i && y();
|
|
3328
3328
|
}, [i, y, b, g]), /* @__PURE__ */ s("div", { className: l("flex flex-col gap-1.5", t), children: [
|
|
3329
3329
|
r && /* @__PURE__ */ e(
|
|
@@ -3368,9 +3368,9 @@ const Qa = m(function({
|
|
|
3368
3368
|
] });
|
|
3369
3369
|
});
|
|
3370
3370
|
Qa.displayName = "Textarea";
|
|
3371
|
-
const
|
|
3371
|
+
const Ts = he.Provider, Xa = m(function({ className: t, ...r }, n) {
|
|
3372
3372
|
return /* @__PURE__ */ e(
|
|
3373
|
-
|
|
3373
|
+
he.Viewport,
|
|
3374
3374
|
{
|
|
3375
3375
|
ref: n,
|
|
3376
3376
|
className: l(
|
|
@@ -3408,13 +3408,13 @@ const Ya = Y(
|
|
|
3408
3408
|
}
|
|
3409
3409
|
), Ja = {
|
|
3410
3410
|
default: null,
|
|
3411
|
-
success: /* @__PURE__ */ e(
|
|
3412
|
-
warning: /* @__PURE__ */ e(
|
|
3413
|
-
danger: /* @__PURE__ */ e(
|
|
3414
|
-
info: /* @__PURE__ */ e(
|
|
3411
|
+
success: /* @__PURE__ */ e(Ne, { className: "size-5 text-success-text shrink-0 mt-0.5", "aria-hidden": !0 }),
|
|
3412
|
+
warning: /* @__PURE__ */ e(Re, { className: "size-5 text-warning-text shrink-0 mt-0.5", "aria-hidden": !0 }),
|
|
3413
|
+
danger: /* @__PURE__ */ e(Ye, { className: "size-5 text-danger-text shrink-0 mt-0.5", "aria-hidden": !0 }),
|
|
3414
|
+
info: /* @__PURE__ */ e(Ue, { className: "size-5 text-info-text shrink-0 mt-0.5", "aria-hidden": !0 })
|
|
3415
3415
|
}, Za = m(
|
|
3416
3416
|
function({ className: t, variant: r = "default", children: n, ...o }, i) {
|
|
3417
|
-
return /* @__PURE__ */ s(
|
|
3417
|
+
return /* @__PURE__ */ s(he.Root, { ref: i, className: l(Ya({ variant: r }), t), ...o, children: [
|
|
3418
3418
|
Ja[r ?? "default"],
|
|
3419
3419
|
/* @__PURE__ */ e("div", { className: "flex-1 space-y-1", children: n })
|
|
3420
3420
|
] });
|
|
@@ -3423,7 +3423,7 @@ const Ya = Y(
|
|
|
3423
3423
|
Za.displayName = "Toast";
|
|
3424
3424
|
const eo = m(function({ className: t, ...r }, n) {
|
|
3425
3425
|
return /* @__PURE__ */ e(
|
|
3426
|
-
|
|
3426
|
+
he.Title,
|
|
3427
3427
|
{
|
|
3428
3428
|
ref: n,
|
|
3429
3429
|
className: l("text-sm font-medium", t),
|
|
@@ -3434,7 +3434,7 @@ const eo = m(function({ className: t, ...r }, n) {
|
|
|
3434
3434
|
eo.displayName = "ToastTitle";
|
|
3435
3435
|
const to = m(function({ className: t, ...r }, n) {
|
|
3436
3436
|
return /* @__PURE__ */ e(
|
|
3437
|
-
|
|
3437
|
+
he.Description,
|
|
3438
3438
|
{
|
|
3439
3439
|
ref: n,
|
|
3440
3440
|
className: l("text-sm opacity-90", t),
|
|
@@ -3445,7 +3445,7 @@ const to = m(function({ className: t, ...r }, n) {
|
|
|
3445
3445
|
to.displayName = "ToastDescription";
|
|
3446
3446
|
const ro = m(function({ className: t, ...r }, n) {
|
|
3447
3447
|
return /* @__PURE__ */ e(
|
|
3448
|
-
|
|
3448
|
+
he.Action,
|
|
3449
3449
|
{
|
|
3450
3450
|
ref: n,
|
|
3451
3451
|
className: l(
|
|
@@ -3461,7 +3461,7 @@ const ro = m(function({ className: t, ...r }, n) {
|
|
|
3461
3461
|
ro.displayName = "ToastAction";
|
|
3462
3462
|
const no = m(function({ className: t, ...r }, n) {
|
|
3463
3463
|
return /* @__PURE__ */ e(
|
|
3464
|
-
|
|
3464
|
+
he.Close,
|
|
3465
3465
|
{
|
|
3466
3466
|
ref: n,
|
|
3467
3467
|
"aria-label": "Close",
|
|
@@ -3478,20 +3478,20 @@ const no = m(function({ className: t, ...r }, n) {
|
|
|
3478
3478
|
);
|
|
3479
3479
|
});
|
|
3480
3480
|
no.displayName = "ToastClose";
|
|
3481
|
-
const
|
|
3481
|
+
const Is = ({
|
|
3482
3482
|
delayDuration: a = 500,
|
|
3483
3483
|
skipDelayDuration: t = 200,
|
|
3484
3484
|
...r
|
|
3485
3485
|
}) => /* @__PURE__ */ e(
|
|
3486
|
-
|
|
3486
|
+
Ie.Provider,
|
|
3487
3487
|
{
|
|
3488
3488
|
delayDuration: a,
|
|
3489
3489
|
skipDelayDuration: t,
|
|
3490
3490
|
...r
|
|
3491
3491
|
}
|
|
3492
|
-
), ao =
|
|
3493
|
-
return /* @__PURE__ */ e(
|
|
3494
|
-
|
|
3492
|
+
), ao = Ie.Root, oo = Ie.Trigger, Hr = m(function({ className: t, sideOffset: r = 4, ...n }, o) {
|
|
3493
|
+
return /* @__PURE__ */ e(Ie.Portal, { children: /* @__PURE__ */ e(
|
|
3494
|
+
Ie.Content,
|
|
3495
3495
|
{
|
|
3496
3496
|
ref: o,
|
|
3497
3497
|
sideOffset: r,
|
|
@@ -3509,7 +3509,7 @@ const Cs = ({
|
|
|
3509
3509
|
}
|
|
3510
3510
|
) });
|
|
3511
3511
|
});
|
|
3512
|
-
|
|
3512
|
+
Hr.displayName = "TooltipContent";
|
|
3513
3513
|
function so({
|
|
3514
3514
|
children: a,
|
|
3515
3515
|
label: t,
|
|
@@ -3518,9 +3518,9 @@ function so({
|
|
|
3518
3518
|
disabled: o,
|
|
3519
3519
|
delayDuration: i
|
|
3520
3520
|
}) {
|
|
3521
|
-
return o ? /* @__PURE__ */ e(
|
|
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(Hr, { side: r, align: n, children: t })
|
|
3524
3524
|
] });
|
|
3525
3525
|
}
|
|
3526
3526
|
so.displayName = "Tooltip";
|
|
@@ -3568,23 +3568,23 @@ const lo = m(function({ href: t, active: r, className: n, children: o, ...i }, d
|
|
|
3568
3568
|
);
|
|
3569
3569
|
});
|
|
3570
3570
|
lo.displayName = "TopNavLink";
|
|
3571
|
-
const
|
|
3572
|
-
function
|
|
3573
|
-
const a =
|
|
3571
|
+
const Ur = Oe(null);
|
|
3572
|
+
function at() {
|
|
3573
|
+
const a = ge(Ur);
|
|
3574
3574
|
if (!a) throw new Error("Carousel components must be used inside <Carousel>");
|
|
3575
3575
|
return a;
|
|
3576
3576
|
}
|
|
3577
|
-
const
|
|
3578
|
-
const [f, c] =
|
|
3577
|
+
const Ms = m(function({ opts: t, orientation: r = "horizontal", setApi: n, className: o, children: i, ...d }, u) {
|
|
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
|
}, []);
|
|
3581
|
-
return
|
|
3581
|
+
return ve(() => {
|
|
3582
3582
|
if (c)
|
|
3583
3583
|
return n == null || n(c), x(c), c.on("reInit", x).on("select", x), () => {
|
|
3584
3584
|
c.off("reInit", x).off("select", x);
|
|
3585
3585
|
};
|
|
3586
3586
|
}, [c, x, n]), /* @__PURE__ */ e(
|
|
3587
|
-
|
|
3587
|
+
Ur.Provider,
|
|
3588
3588
|
{
|
|
3589
3589
|
value: {
|
|
3590
3590
|
carouselRef: f,
|
|
@@ -3598,9 +3598,9 @@ const Ss = 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
|
+
}), Ds = m(
|
|
3602
3602
|
function({ className: t, ...r }, n) {
|
|
3603
|
-
const { carouselRef: o, orientation: i } =
|
|
3603
|
+
const { carouselRef: o, orientation: i } = at();
|
|
3604
3604
|
return /* @__PURE__ */ e("div", { ref: o, className: "overflow-hidden", children: /* @__PURE__ */ e(
|
|
3605
3605
|
"div",
|
|
3606
3606
|
{
|
|
@@ -3614,9 +3614,9 @@ const Ss = m(function({ opts: t, orientation: r = "horizontal", setApi: n, class
|
|
|
3614
3614
|
}
|
|
3615
3615
|
) });
|
|
3616
3616
|
}
|
|
3617
|
-
),
|
|
3617
|
+
), Ps = m(
|
|
3618
3618
|
function({ className: t, ...r }, n) {
|
|
3619
|
-
const { orientation: o } =
|
|
3619
|
+
const { orientation: o } = at();
|
|
3620
3620
|
return /* @__PURE__ */ e(
|
|
3621
3621
|
"div",
|
|
3622
3622
|
{
|
|
@@ -3633,16 +3633,16 @@ const Ss = m(function({ opts: t, orientation: r = "horizontal", setApi: n, class
|
|
|
3633
3633
|
);
|
|
3634
3634
|
}
|
|
3635
3635
|
);
|
|
3636
|
-
function
|
|
3637
|
-
const { canPrev: t, scrollPrev: r, orientation: n } =
|
|
3636
|
+
function _s({ className: a }) {
|
|
3637
|
+
const { canPrev: t, scrollPrev: r, orientation: n } = at();
|
|
3638
3638
|
return /* @__PURE__ */ e(
|
|
3639
|
-
|
|
3639
|
+
Me,
|
|
3640
3640
|
{
|
|
3641
3641
|
"aria-label": "Previous",
|
|
3642
3642
|
variant: "outline",
|
|
3643
3643
|
disabled: !t,
|
|
3644
3644
|
onClick: r,
|
|
3645
|
-
icon: /* @__PURE__ */ e(
|
|
3645
|
+
icon: /* @__PURE__ */ e(Ve, {}),
|
|
3646
3646
|
className: l(
|
|
3647
3647
|
"absolute z-10",
|
|
3648
3648
|
n === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
@@ -3651,16 +3651,16 @@ function Is({ className: a }) {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
);
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3655
|
-
const { canNext: t, scrollNext: r, orientation: n } =
|
|
3654
|
+
function As({ className: a }) {
|
|
3655
|
+
const { canNext: t, scrollNext: r, orientation: n } = at();
|
|
3656
3656
|
return /* @__PURE__ */ e(
|
|
3657
|
-
|
|
3657
|
+
Me,
|
|
3658
3658
|
{
|
|
3659
3659
|
"aria-label": "Next",
|
|
3660
3660
|
variant: "outline",
|
|
3661
3661
|
disabled: !t,
|
|
3662
3662
|
onClick: r,
|
|
3663
|
-
icon: /* @__PURE__ */ e(
|
|
3663
|
+
icon: /* @__PURE__ */ e(se, {}),
|
|
3664
3664
|
className: l(
|
|
3665
3665
|
"absolute z-10",
|
|
3666
3666
|
n === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
@@ -3669,12 +3669,12 @@ function Ms({ className: a }) {
|
|
|
3669
3669
|
}
|
|
3670
3670
|
);
|
|
3671
3671
|
}
|
|
3672
|
-
function
|
|
3672
|
+
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
|
|
3677
|
-
const i = typeof r == "number" ? r : 320, { sx: d, sy: u } =
|
|
3676
|
+
function Fs({ data: a, height: t = 80, width: r = "100%", caption: n, className: o }) {
|
|
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 }),
|
|
3680
3680
|
/* @__PURE__ */ s("svg", { viewBox: `0 0 ${i} ${t}`, width: r, height: t, role: "img", children: [
|
|
@@ -3683,8 +3683,8 @@ function Ds({ data: a, height: t = 80, width: r = "100%", caption: n, className:
|
|
|
3683
3683
|
] })
|
|
3684
3684
|
] });
|
|
3685
3685
|
}
|
|
3686
|
-
function
|
|
3687
|
-
const i = typeof r == "number" ? r : 320, { sx: d, sy: u } =
|
|
3686
|
+
function Ls({ data: a, height: t = 80, width: r = "100%", caption: n, className: o }) {
|
|
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 }),
|
|
3690
3690
|
/* @__PURE__ */ s("svg", { viewBox: `0 0 ${i} ${t}`, width: r, height: t, role: "img", children: [
|
|
@@ -3693,7 +3693,7 @@ function Ps({ data: a, height: t = 80, width: r = "100%", caption: n, className:
|
|
|
3693
3693
|
] })
|
|
3694
3694
|
] });
|
|
3695
3695
|
}
|
|
3696
|
-
function
|
|
3696
|
+
function js({ data: a, height: t = 100, width: r = "100%", caption: n, className: o }) {
|
|
3697
3697
|
const i = typeof r == "number" ? r : 320, d = 8, u = 2, f = i - d * 2, c = Math.max(2, f / a.length - u), h = a.map((g) => g.y), b = Math.max(...h, 1);
|
|
3698
3698
|
return /* @__PURE__ */ s("figure", { className: l("flex flex-col gap-1.5", o), children: [
|
|
3699
3699
|
n && /* @__PURE__ */ e("figcaption", { className: "text-xs text-foreground-muted", children: n }),
|
|
@@ -3718,11 +3718,11 @@ function _s({ data: a, height: t = 100, width: r = "100%", caption: n, className
|
|
|
3718
3718
|
const co = ({
|
|
3719
3719
|
shouldScaleBackground: a = !0,
|
|
3720
3720
|
...t
|
|
3721
|
-
}) => /* @__PURE__ */ e(
|
|
3721
|
+
}) => /* @__PURE__ */ e(ce.Root, { shouldScaleBackground: a, ...t });
|
|
3722
3722
|
co.displayName = "Drawer";
|
|
3723
|
-
const
|
|
3723
|
+
const Es = ce.Trigger, uo = ce.Portal, $s = ce.Close, mo = m(function({ className: t, ...r }, n) {
|
|
3724
3724
|
return /* @__PURE__ */ e(
|
|
3725
|
-
|
|
3725
|
+
ce.Overlay,
|
|
3726
3726
|
{
|
|
3727
3727
|
ref: n,
|
|
3728
3728
|
className: l("fixed inset-0 z-50 bg-black/40", t),
|
|
@@ -3739,12 +3739,12 @@ const As = ue.Trigger, uo = ue.Portal, Fs = ue.Close, mo = m(function({ classNam
|
|
|
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
|
+
}, Os = m(function({ className: t, direction: r = "bottom", hideHandle: n, children: o, ...i }, d) {
|
|
3743
3743
|
const u = r === "left" || r === "right";
|
|
3744
3744
|
return /* @__PURE__ */ s(uo, { children: [
|
|
3745
3745
|
/* @__PURE__ */ e(mo, {}),
|
|
3746
3746
|
/* @__PURE__ */ s(
|
|
3747
|
-
|
|
3747
|
+
ce.Content,
|
|
3748
3748
|
{
|
|
3749
3749
|
ref: d,
|
|
3750
3750
|
className: l(
|
|
@@ -3762,24 +3762,24 @@ const As = ue.Trigger, uo = ue.Portal, Fs = ue.Close, mo = m(function({ classNam
|
|
|
3762
3762
|
)
|
|
3763
3763
|
] });
|
|
3764
3764
|
});
|
|
3765
|
-
function
|
|
3765
|
+
function Rs({ 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 Bs({ 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 Vs = m(function({ className: t, ...r }, n) {
|
|
3772
3772
|
return /* @__PURE__ */ e(
|
|
3773
|
-
|
|
3773
|
+
ce.Title,
|
|
3774
3774
|
{
|
|
3775
3775
|
ref: n,
|
|
3776
3776
|
className: l("text-lg font-semibold", t),
|
|
3777
3777
|
...r
|
|
3778
3778
|
}
|
|
3779
3779
|
);
|
|
3780
|
-
}),
|
|
3780
|
+
}), Gs = m(function({ className: t, ...r }, n) {
|
|
3781
3781
|
return /* @__PURE__ */ e(
|
|
3782
|
-
|
|
3782
|
+
ce.Description,
|
|
3783
3783
|
{
|
|
3784
3784
|
ref: n,
|
|
3785
3785
|
className: l("text-sm text-foreground-muted", t),
|
|
@@ -3790,21 +3790,21 @@ const $s = m(function({ className: t, ...r }, n) {
|
|
|
3790
3790
|
function ho(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
|
|
3794
|
-
const h =
|
|
3793
|
+
const Hs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange: i, hint: d, disabled: u, className: f }, c) {
|
|
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);
|
|
3797
3797
|
},
|
|
3798
3798
|
[i, o]
|
|
3799
|
-
), F =
|
|
3799
|
+
), F = ee(
|
|
3800
3800
|
(y) => {
|
|
3801
3801
|
const k = Array.from(y).filter(
|
|
3802
|
-
(
|
|
3802
|
+
(j) => !n || j.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, j) => j !== 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: [
|
|
@@ -3826,7 +3826,7 @@ const Rs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3826
3826
|
u && "pointer-events-none opacity-50"
|
|
3827
3827
|
),
|
|
3828
3828
|
children: [
|
|
3829
|
-
/* @__PURE__ */ e(
|
|
3829
|
+
/* @__PURE__ */ e(Qe, { className: "size-5 text-foreground-muted", "aria-hidden": !0 }),
|
|
3830
3830
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
3831
3831
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "Drop files here, or click to browse" }),
|
|
3832
3832
|
d && /* @__PURE__ */ e("p", { className: "text-xs text-foreground-muted", children: d })
|
|
@@ -3852,7 +3852,7 @@ const Rs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3852
3852
|
{
|
|
3853
3853
|
className: "flex items-center gap-3 rounded-md border border-border bg-card px-3 py-2",
|
|
3854
3854
|
children: [
|
|
3855
|
-
/* @__PURE__ */ e(
|
|
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
3858
|
/* @__PURE__ */ e("p", { className: "text-xs text-foreground-muted", children: ho(y.size) })
|
|
@@ -3892,11 +3892,11 @@ const Rs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3892
3892
|
}
|
|
3893
3893
|
), bo = {
|
|
3894
3894
|
default: null,
|
|
3895
|
-
info: /* @__PURE__ */ e(
|
|
3896
|
-
success: /* @__PURE__ */ e(
|
|
3897
|
-
warning: /* @__PURE__ */ e(
|
|
3898
|
-
danger: /* @__PURE__ */ e(
|
|
3899
|
-
},
|
|
3895
|
+
info: /* @__PURE__ */ e(Ue, { className: "size-4 shrink-0 mt-0.5 text-info-text", "aria-hidden": !0 }),
|
|
3896
|
+
success: /* @__PURE__ */ e(Ne, { className: "size-4 shrink-0 mt-0.5 text-success-text", "aria-hidden": !0 }),
|
|
3897
|
+
warning: /* @__PURE__ */ e(Re, { className: "size-4 shrink-0 mt-0.5 text-warning-text", "aria-hidden": !0 }),
|
|
3898
|
+
danger: /* @__PURE__ */ e(Ye, { className: "size-4 shrink-0 mt-0.5 text-danger-text", "aria-hidden": !0 })
|
|
3899
|
+
}, Us = m(function({ className: t, variant: r = "default", title: n, action: o, onClose: i, icon: d, children: u, ...f }, c) {
|
|
3900
3900
|
const h = d === !1 ? null : d ?? bo[r ?? "default"];
|
|
3901
3901
|
return /* @__PURE__ */ s("div", { ref: c, role: "status", className: l(po({ variant: r }), t), ...f, children: [
|
|
3902
3902
|
h,
|
|
@@ -3916,7 +3916,7 @@ const Rs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3916
3916
|
}
|
|
3917
3917
|
)
|
|
3918
3918
|
] });
|
|
3919
|
-
}),
|
|
3919
|
+
}), Ws = m(function({
|
|
3920
3920
|
value: t,
|
|
3921
3921
|
defaultValue: r = [],
|
|
3922
3922
|
onChange: n,
|
|
@@ -3927,7 +3927,7 @@ const Rs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3927
3927
|
separators: f = ["Enter", ","],
|
|
3928
3928
|
className: c
|
|
3929
3929
|
}, h) {
|
|
3930
|
-
const [b, g] = w(r), [p, x] = w(""), N = t ?? b, v =
|
|
3930
|
+
const [b, g] = w(r), [p, x] = w(""), N = t ?? b, v = ee(
|
|
3931
3931
|
(z) => {
|
|
3932
3932
|
t === void 0 && g(z), n == null || n(z);
|
|
3933
3933
|
},
|
|
@@ -3987,9 +3987,9 @@ const Rs = m(function({ accept: t, multiple: r, maxSize: n, value: o, onChange:
|
|
|
3987
3987
|
]
|
|
3988
3988
|
}
|
|
3989
3989
|
);
|
|
3990
|
-
}),
|
|
3990
|
+
}), Ks = 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 Rs = 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 Qs({ 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 Xs({
|
|
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 Ys({
|
|
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 Js({ 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 ?
|
|
4022
|
+
const b = !!c.children, g = i.has(c.id), p = r === c.id, x = b ? g ? dn : He : ar;
|
|
4023
4023
|
return /* @__PURE__ */ s("li", { role: "treeitem", "aria-expanded": b ? g : void 0, children: [
|
|
4024
4024
|
/* @__PURE__ */ s(
|
|
4025
4025
|
"button",
|
|
@@ -4040,7 +4040,7 @@ function qs({ data: a, defaultExpanded: t = [], selectedId: r, onSelect: n, clas
|
|
|
4040
4040
|
),
|
|
4041
4041
|
children: [
|
|
4042
4042
|
b ? /* @__PURE__ */ e(
|
|
4043
|
-
|
|
4043
|
+
se,
|
|
4044
4044
|
{
|
|
4045
4045
|
className: l("size-3.5 shrink-0 text-foreground-subtle transition-transform", g && "rotate-90"),
|
|
4046
4046
|
"aria-hidden": !0
|
|
@@ -4056,7 +4056,7 @@ function qs({ 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 Zs({ 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,14 +4067,14 @@ function Qs({ 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 ei({ 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 });
|
|
4074
4074
|
}, className: "space-y-4", children: [
|
|
4075
|
-
r && /* @__PURE__ */ e(
|
|
4075
|
+
r && /* @__PURE__ */ e(Ze, { variant: "danger", children: r }),
|
|
4076
4076
|
/* @__PURE__ */ e(
|
|
4077
|
-
|
|
4077
|
+
L,
|
|
4078
4078
|
{
|
|
4079
4079
|
type: "email",
|
|
4080
4080
|
label: "Email",
|
|
@@ -4085,7 +4085,7 @@ function Xs({ onSubmit: a, loading: t, error: r, forgotHref: n = "/forgot" }) {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
),
|
|
4087
4087
|
/* @__PURE__ */ e(
|
|
4088
|
-
|
|
4088
|
+
L,
|
|
4089
4089
|
{
|
|
4090
4090
|
type: "password",
|
|
4091
4091
|
label: "Password",
|
|
@@ -4103,10 +4103,10 @@ function Xs({ onSubmit: a, loading: t, error: r, forgotHref: n = "/forgot" }) {
|
|
|
4103
4103
|
children: "Forgot password?"
|
|
4104
4104
|
}
|
|
4105
4105
|
) }),
|
|
4106
|
-
/* @__PURE__ */ e(I, { type: "submit", loading: t, className: "w-full", trailingIcon: /* @__PURE__ */ e(
|
|
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 ti({ 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",
|
|
@@ -4116,10 +4116,10 @@ function Ys({ onSubmit: a, loading: t, error: r }) {
|
|
|
4116
4116
|
},
|
|
4117
4117
|
className: "space-y-4",
|
|
4118
4118
|
children: [
|
|
4119
|
-
r && /* @__PURE__ */ e(
|
|
4120
|
-
/* @__PURE__ */ e(
|
|
4119
|
+
r && /* @__PURE__ */ e(Ze, { variant: "danger", children: r }),
|
|
4120
|
+
/* @__PURE__ */ e(L, { label: "Full name", value: n, onChange: (c) => o(c.target.value), required: !0 }),
|
|
4121
4121
|
/* @__PURE__ */ e(
|
|
4122
|
-
|
|
4122
|
+
L,
|
|
4123
4123
|
{
|
|
4124
4124
|
type: "email",
|
|
4125
4125
|
label: "Work email",
|
|
@@ -4130,7 +4130,7 @@ function Ys({ onSubmit: a, loading: t, error: r }) {
|
|
|
4130
4130
|
}
|
|
4131
4131
|
),
|
|
4132
4132
|
/* @__PURE__ */ e(
|
|
4133
|
-
|
|
4133
|
+
L,
|
|
4134
4134
|
{
|
|
4135
4135
|
type: "password",
|
|
4136
4136
|
label: "Password",
|
|
@@ -4147,7 +4147,7 @@ function Ys({ onSubmit: a, loading: t, error: r }) {
|
|
|
4147
4147
|
}
|
|
4148
4148
|
);
|
|
4149
4149
|
}
|
|
4150
|
-
function
|
|
4150
|
+
function ri({ onSubmit: a, loading: t, error: r }) {
|
|
4151
4151
|
const [n, o] = w("");
|
|
4152
4152
|
return /* @__PURE__ */ s(
|
|
4153
4153
|
"form",
|
|
@@ -4157,9 +4157,9 @@ function Js({ onSubmit: a, loading: t, error: r }) {
|
|
|
4157
4157
|
},
|
|
4158
4158
|
className: "space-y-4",
|
|
4159
4159
|
children: [
|
|
4160
|
-
r && /* @__PURE__ */ e(
|
|
4160
|
+
r && /* @__PURE__ */ e(Ze, { variant: "danger", children: r }),
|
|
4161
4161
|
/* @__PURE__ */ e(
|
|
4162
|
-
|
|
4162
|
+
L,
|
|
4163
4163
|
{
|
|
4164
4164
|
type: "email",
|
|
4165
4165
|
label: "Email",
|
|
@@ -4170,21 +4170,21 @@ function Js({ onSubmit: a, loading: t, error: r }) {
|
|
|
4170
4170
|
required: !0
|
|
4171
4171
|
}
|
|
4172
4172
|
),
|
|
4173
|
-
/* @__PURE__ */ e(I, { type: "submit", loading: t, className: "w-full", leadingIcon: /* @__PURE__ */ e(
|
|
4173
|
+
/* @__PURE__ */ e(I, { type: "submit", loading: t, className: "w-full", leadingIcon: /* @__PURE__ */ e(Jt, {}), children: "Send reset link" })
|
|
4174
4174
|
]
|
|
4175
4175
|
}
|
|
4176
4176
|
);
|
|
4177
4177
|
}
|
|
4178
|
-
function
|
|
4178
|
+
function ni({ email: a, onResend: t }) {
|
|
4179
4179
|
return /* @__PURE__ */ s("div", { className: "space-y-4 text-center", children: [
|
|
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(
|
|
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: [
|
|
4182
4182
|
"We sent a sign-in link to",
|
|
4183
4183
|
" ",
|
|
4184
4184
|
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: a }),
|
|
4185
4185
|
". Open it on this device to continue."
|
|
4186
4186
|
] }),
|
|
4187
|
-
/* @__PURE__ */ e(
|
|
4187
|
+
/* @__PURE__ */ e(be, {}),
|
|
4188
4188
|
/* @__PURE__ */ s("p", { className: "text-xs text-foreground-subtle", children: [
|
|
4189
4189
|
"Didn't get it?",
|
|
4190
4190
|
" ",
|
|
@@ -4200,88 +4200,179 @@ function Zs({ email: a, onResend: t }) {
|
|
|
4200
4200
|
] })
|
|
4201
4201
|
] });
|
|
4202
4202
|
}
|
|
4203
|
-
function
|
|
4203
|
+
function ke(a) {
|
|
4204
4204
|
typeof window > "u" || (window.location.hash = a);
|
|
4205
4205
|
}
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
/* @__PURE__ */ e(
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4206
|
+
const xo = [
|
|
4207
|
+
{
|
|
4208
|
+
label: "Workspace",
|
|
4209
|
+
items: [
|
|
4210
|
+
{ key: "home", label: "Home", icon: /* @__PURE__ */ e(Kt, {}), href: "#dashboard" },
|
|
4211
|
+
{ key: "projects", label: "Projects", icon: /* @__PURE__ */ e(He, {}), href: "#data-table", trailing: /* @__PURE__ */ e(W, { tone: "neutral", children: "12" }) },
|
|
4212
|
+
{ key: "inbox", label: "Inbox", icon: /* @__PURE__ */ e(qt, {}), href: "#first-run", trailing: /* @__PURE__ */ e(W, { tone: "accent", children: "5" }) },
|
|
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(jt, {}), href: "#dashboard" }
|
|
4215
|
+
]
|
|
4216
|
+
},
|
|
4217
|
+
{
|
|
4218
|
+
label: "Personal",
|
|
4219
|
+
items: [
|
|
4220
|
+
{ key: "bookmarks", label: "Bookmarks", icon: /* @__PURE__ */ e(Et, {}), href: "#pricing" },
|
|
4221
|
+
{ key: "apps", label: "Apps", icon: /* @__PURE__ */ e(Qt, {}), href: "#onboarding" }
|
|
4222
|
+
]
|
|
4223
|
+
},
|
|
4224
|
+
{
|
|
4225
|
+
label: "Account",
|
|
4226
|
+
items: [
|
|
4227
|
+
{ key: "settings", label: "Settings", icon: /* @__PURE__ */ e(qe, {}), href: "#settings" },
|
|
4228
|
+
{ key: "integrations", label: "Integrations", icon: /* @__PURE__ */ e(rr, {}), href: "#settings" },
|
|
4229
|
+
{ key: "help", label: "Help & docs", icon: /* @__PURE__ */ e(ft, {}), href: "#" }
|
|
4230
|
+
]
|
|
4231
|
+
}
|
|
4232
|
+
], vo = {
|
|
4233
|
+
name: "Bay Otgonbayar",
|
|
4234
|
+
email: "bay@craftzbay.com",
|
|
4235
|
+
initials: "BO",
|
|
4236
|
+
status: "online"
|
|
4237
|
+
}, No = [
|
|
4238
|
+
{ id: "n1", who: { name: "Anu B.", initials: "AB" }, action: "mentioned you in", target: "Q2 OKRs", when: "2m", unread: !0 },
|
|
4239
|
+
{ id: "n2", who: { name: "Bat E.", initials: "BE" }, action: "requested review on", target: "fix/login-flow", when: "18m", unread: !0 },
|
|
4240
|
+
{ id: "n3", who: { name: "Tuya G.", initials: "TG" }, action: "commented on", target: "feat/segments", when: "1h", unread: !0 },
|
|
4241
|
+
{ id: "n4", who: { name: "Khulan O.", initials: "KO" }, action: "archived", target: "old-billing-spike", when: "3h" },
|
|
4242
|
+
{ id: "n5", who: { name: "Sara M.", initials: "SM" }, action: "invited you to", target: "Atlas workspace", when: "Yesterday" }
|
|
4243
|
+
], yo = [
|
|
4244
|
+
{ label: "Profile", icon: /* @__PURE__ */ e(pt, { className: "size-4" }), onSelect: () => ke("record") },
|
|
4245
|
+
{ label: "Account settings", icon: /* @__PURE__ */ e(qe, { className: "size-4" }), onSelect: () => ke("settings") },
|
|
4246
|
+
{
|
|
4247
|
+
label: "Upgrade plan",
|
|
4248
|
+
icon: /* @__PURE__ */ e(nr, { className: "size-4" }),
|
|
4249
|
+
trailing: /* @__PURE__ */ e(W, { tone: "accent", className: "ml-auto", children: "Pro" }),
|
|
4250
|
+
onSelect: () => ke("pricing")
|
|
4251
|
+
},
|
|
4252
|
+
{ label: "Help & support", icon: /* @__PURE__ */ e(ft, { className: "size-4" }), onSelect: () => ke("first-run"), separatorAbove: !0 },
|
|
4253
|
+
{ label: "Sign out", icon: /* @__PURE__ */ e(Yt, { className: "size-4" }), onSelect: () => ke("auth-signin"), separatorAbove: !0 }
|
|
4254
|
+
];
|
|
4255
|
+
function ai({
|
|
4256
|
+
children: a,
|
|
4257
|
+
brand: t,
|
|
4258
|
+
active: r = "home",
|
|
4259
|
+
navSections: n = xo,
|
|
4260
|
+
sidebar: o,
|
|
4261
|
+
topbarActions: i,
|
|
4262
|
+
search: d,
|
|
4263
|
+
user: u = vo,
|
|
4264
|
+
profileMenu: f = yo,
|
|
4265
|
+
notifications: c = No,
|
|
4266
|
+
onMarkAllNotificationsRead: h,
|
|
4267
|
+
onViewAllNotifications: b
|
|
4268
|
+
}) {
|
|
4227
4269
|
return /* @__PURE__ */ s("div", { className: "flex min-h-screen w-full bg-background", children: [
|
|
4228
|
-
/* @__PURE__ */ e(
|
|
4270
|
+
/* @__PURE__ */ e(Er, { defaultCollapsed: !1, header: t, footer: /* @__PURE__ */ e(qr, { user: u }), children: o ?? /* @__PURE__ */ e(Kr, { sections: n, active: r }) }),
|
|
4229
4271
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4230
|
-
/* @__PURE__ */ e(
|
|
4272
|
+
/* @__PURE__ */ e(
|
|
4273
|
+
wo,
|
|
4274
|
+
{
|
|
4275
|
+
brand: t,
|
|
4276
|
+
active: r,
|
|
4277
|
+
navSections: n,
|
|
4278
|
+
sidebar: o,
|
|
4279
|
+
user: u,
|
|
4280
|
+
search: d,
|
|
4281
|
+
topbarActions: i,
|
|
4282
|
+
notifications: c,
|
|
4283
|
+
profileMenu: f,
|
|
4284
|
+
onMarkAllNotificationsRead: h,
|
|
4285
|
+
onViewAllNotifications: b
|
|
4286
|
+
}
|
|
4287
|
+
),
|
|
4231
4288
|
/* @__PURE__ */ e("main", { className: "flex-1 overflow-y-auto p-4 md:p-8", children: a })
|
|
4232
4289
|
] })
|
|
4233
4290
|
] });
|
|
4234
4291
|
}
|
|
4235
|
-
function
|
|
4236
|
-
|
|
4292
|
+
function Kr({
|
|
4293
|
+
sections: a,
|
|
4294
|
+
active: t
|
|
4295
|
+
}) {
|
|
4296
|
+
return /* @__PURE__ */ e(te, { children: a.map((r, n) => /* @__PURE__ */ e($r, { label: r.label, children: r.items.map((o) => /* @__PURE__ */ e(
|
|
4297
|
+
Or,
|
|
4298
|
+
{
|
|
4299
|
+
href: o.href,
|
|
4300
|
+
icon: o.icon,
|
|
4301
|
+
active: o.key === t,
|
|
4302
|
+
trailing: o.trailing,
|
|
4303
|
+
onClick: o.onClick,
|
|
4304
|
+
children: o.label
|
|
4305
|
+
},
|
|
4306
|
+
o.key
|
|
4307
|
+
)) }, n)) });
|
|
4308
|
+
}
|
|
4309
|
+
function wo({
|
|
4310
|
+
brand: a,
|
|
4311
|
+
active: t,
|
|
4312
|
+
navSections: r,
|
|
4313
|
+
sidebar: n,
|
|
4314
|
+
user: o,
|
|
4315
|
+
search: i,
|
|
4316
|
+
topbarActions: d,
|
|
4317
|
+
notifications: u,
|
|
4318
|
+
profileMenu: f,
|
|
4319
|
+
onMarkAllNotificationsRead: c,
|
|
4320
|
+
onViewAllNotifications: h
|
|
4321
|
+
}) {
|
|
4322
|
+
const [b, g] = w(!1), p = i === !1 ? null : i ?? /* @__PURE__ */ e(
|
|
4323
|
+
L,
|
|
4324
|
+
{
|
|
4325
|
+
type: "search",
|
|
4326
|
+
placeholder: "Search projects, members, files…",
|
|
4327
|
+
hideLabel: !0,
|
|
4328
|
+
label: "Search",
|
|
4329
|
+
prefix: /* @__PURE__ */ e(Ke, {}),
|
|
4330
|
+
suffix: /* @__PURE__ */ e(zr, { children: "⌘K" })
|
|
4331
|
+
}
|
|
4332
|
+
);
|
|
4237
4333
|
return /* @__PURE__ */ s("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: [
|
|
4238
4334
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 md:hidden", children: [
|
|
4239
|
-
/* @__PURE__ */ s(_a, { open:
|
|
4240
|
-
/* @__PURE__ */ e(Aa, { asChild: !0, children: /* @__PURE__ */ e(
|
|
4335
|
+
/* @__PURE__ */ s(_a, { open: b, onOpenChange: g, children: [
|
|
4336
|
+
/* @__PURE__ */ e(Aa, { asChild: !0, children: /* @__PURE__ */ e(Me, { "aria-label": "Open menu", icon: /* @__PURE__ */ e(Zt, {}), variant: "ghost", size: "sm" }) }),
|
|
4241
4337
|
/* @__PURE__ */ s(jr, { side: "left", className: "w-64 p-0", children: [
|
|
4242
4338
|
/* @__PURE__ */ e("div", { className: "flex h-14 shrink-0 items-center border-b border-border px-3", children: a }),
|
|
4243
|
-
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto py-3", onClick: () =>
|
|
4244
|
-
/* @__PURE__ */ e("div", { className: "border-t border-border p-2", children: /* @__PURE__ */ e(
|
|
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
|
+
/* @__PURE__ */ e("div", { className: "border-t border-border p-2", children: /* @__PURE__ */ e(qr, { user: o }) })
|
|
4245
4341
|
] })
|
|
4246
4342
|
] }),
|
|
4247
4343
|
/* @__PURE__ */ e("div", { className: "text-sm", children: a })
|
|
4248
4344
|
] }),
|
|
4249
|
-
/* @__PURE__ */ e("div", { className: "relative hidden
|
|
4250
|
-
j,
|
|
4251
|
-
{
|
|
4252
|
-
type: "search",
|
|
4253
|
-
placeholder: "Search projects, members, files…",
|
|
4254
|
-
hideLabel: !0,
|
|
4255
|
-
label: "Search",
|
|
4256
|
-
prefix: /* @__PURE__ */ e(Ye, {}),
|
|
4257
|
-
suffix: /* @__PURE__ */ e(Sr, { children: "⌘K" })
|
|
4258
|
-
}
|
|
4259
|
-
) }),
|
|
4345
|
+
p && /* @__PURE__ */ e("div", { className: "relative hidden max-w-xl flex-1 sm:block", children: p }),
|
|
4260
4346
|
/* @__PURE__ */ s("div", { className: "ml-auto flex items-center gap-1", children: [
|
|
4261
|
-
|
|
4262
|
-
/* @__PURE__ */ e(
|
|
4347
|
+
d,
|
|
4348
|
+
u.length > 0 && /* @__PURE__ */ e(
|
|
4349
|
+
ko,
|
|
4350
|
+
{
|
|
4351
|
+
notifications: u,
|
|
4352
|
+
onMarkAllRead: c,
|
|
4353
|
+
onViewAll: h
|
|
4354
|
+
}
|
|
4355
|
+
),
|
|
4356
|
+
/* @__PURE__ */ e(Co, { user: o, items: f })
|
|
4263
4357
|
] })
|
|
4264
4358
|
] });
|
|
4265
4359
|
}
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
const a = Ft.filter((t) => t.unread).length;
|
|
4275
|
-
return /* @__PURE__ */ s(Nt, { children: [
|
|
4276
|
-
/* @__PURE__ */ e(yt, { asChild: !0, children: /* @__PURE__ */ s(
|
|
4360
|
+
function ko({
|
|
4361
|
+
notifications: a,
|
|
4362
|
+
onMarkAllRead: t,
|
|
4363
|
+
onViewAll: r
|
|
4364
|
+
}) {
|
|
4365
|
+
const n = a.filter((o) => o.unread).length;
|
|
4366
|
+
return /* @__PURE__ */ s(bt, { children: [
|
|
4367
|
+
/* @__PURE__ */ e(xt, { asChild: !0, children: /* @__PURE__ */ s(
|
|
4277
4368
|
"button",
|
|
4278
4369
|
{
|
|
4279
4370
|
type: "button",
|
|
4280
|
-
"aria-label": `Notifications${
|
|
4371
|
+
"aria-label": `Notifications${n ? `, ${n} unread` : ""}`,
|
|
4281
4372
|
className: "relative inline-flex size-9 items-center justify-center rounded-md text-foreground-muted outline-none transition-colors hover:bg-background-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
4282
4373
|
children: [
|
|
4283
|
-
/* @__PURE__ */ e(
|
|
4284
|
-
|
|
4374
|
+
/* @__PURE__ */ e(dt, { className: "size-4" }),
|
|
4375
|
+
n > 0 && /* @__PURE__ */ e(
|
|
4285
4376
|
"span",
|
|
4286
4377
|
{
|
|
4287
4378
|
"aria-hidden": !0,
|
|
@@ -4291,34 +4382,35 @@ function vo() {
|
|
|
4291
4382
|
]
|
|
4292
4383
|
}
|
|
4293
4384
|
) }),
|
|
4294
|
-
/* @__PURE__ */ s(
|
|
4385
|
+
/* @__PURE__ */ s(rt, { align: "end", className: "w-80 p-0", children: [
|
|
4295
4386
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between border-b border-border px-3 py-2.5", children: [
|
|
4296
4387
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
4297
4388
|
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Notifications" }),
|
|
4298
|
-
|
|
4299
|
-
|
|
4389
|
+
n > 0 && /* @__PURE__ */ s(W, { tone: "accent", children: [
|
|
4390
|
+
n,
|
|
4300
4391
|
" new"
|
|
4301
4392
|
] })
|
|
4302
4393
|
] }),
|
|
4303
|
-
/* @__PURE__ */ e(
|
|
4394
|
+
t && /* @__PURE__ */ e(
|
|
4304
4395
|
"button",
|
|
4305
4396
|
{
|
|
4306
4397
|
type: "button",
|
|
4398
|
+
onClick: t,
|
|
4307
4399
|
className: "text-xs text-foreground-muted hover:text-foreground",
|
|
4308
4400
|
children: "Mark all read"
|
|
4309
4401
|
}
|
|
4310
4402
|
)
|
|
4311
4403
|
] }),
|
|
4312
|
-
/* @__PURE__ */ e("ul", { className: "max-h-80 overflow-y-auto py-1", children:
|
|
4404
|
+
/* @__PURE__ */ e("ul", { className: "max-h-80 overflow-y-auto py-1", children: a.map((o) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ s(
|
|
4313
4405
|
"button",
|
|
4314
4406
|
{
|
|
4315
4407
|
type: "button",
|
|
4316
|
-
onClick:
|
|
4408
|
+
onClick: o.onClick,
|
|
4317
4409
|
className: "flex w-full items-start gap-3 px-3 py-2.5 text-left outline-none hover:bg-background-muted focus-visible:bg-background-muted",
|
|
4318
4410
|
children: [
|
|
4319
4411
|
/* @__PURE__ */ s("div", { className: "relative mt-0.5", children: [
|
|
4320
|
-
/* @__PURE__ */ e(
|
|
4321
|
-
|
|
4412
|
+
/* @__PURE__ */ e(Z, { size: "sm", fallback: o.who.initials }),
|
|
4413
|
+
o.unread && /* @__PURE__ */ e(
|
|
4322
4414
|
"span",
|
|
4323
4415
|
{
|
|
4324
4416
|
"aria-hidden": !0,
|
|
@@ -4328,22 +4420,22 @@ function vo() {
|
|
|
4328
4420
|
] }),
|
|
4329
4421
|
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: [
|
|
4330
4422
|
/* @__PURE__ */ s("p", { className: "text-sm leading-snug", children: [
|
|
4331
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children:
|
|
4423
|
+
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: o.who.name }),
|
|
4332
4424
|
" ",
|
|
4333
|
-
/* @__PURE__ */ e("span", { className: "text-foreground-muted", children:
|
|
4425
|
+
/* @__PURE__ */ e("span", { className: "text-foreground-muted", children: o.action }),
|
|
4334
4426
|
" ",
|
|
4335
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children:
|
|
4427
|
+
/* @__PURE__ */ e("span", { className: "font-medium text-foreground", children: o.target })
|
|
4336
4428
|
] }),
|
|
4337
|
-
/* @__PURE__ */ e("p", { className: "mt-0.5 text-xs text-foreground-subtle", children:
|
|
4429
|
+
/* @__PURE__ */ e("p", { className: "mt-0.5 text-xs text-foreground-subtle", children: o.when })
|
|
4338
4430
|
] })
|
|
4339
4431
|
]
|
|
4340
4432
|
}
|
|
4341
|
-
) },
|
|
4342
|
-
/* @__PURE__ */ e("div", { className: "border-t border-border px-3 py-2 text-center", children: /* @__PURE__ */ e(
|
|
4433
|
+
) }, o.id)) }),
|
|
4434
|
+
r && /* @__PURE__ */ e("div", { className: "border-t border-border px-3 py-2 text-center", children: /* @__PURE__ */ e(
|
|
4343
4435
|
"button",
|
|
4344
4436
|
{
|
|
4345
4437
|
type: "button",
|
|
4346
|
-
onClick:
|
|
4438
|
+
onClick: r,
|
|
4347
4439
|
className: "text-xs font-medium text-accent hover:underline",
|
|
4348
4440
|
children: "View all notifications"
|
|
4349
4441
|
}
|
|
@@ -4351,151 +4443,149 @@ function vo() {
|
|
|
4351
4443
|
] })
|
|
4352
4444
|
] });
|
|
4353
4445
|
}
|
|
4354
|
-
function
|
|
4355
|
-
|
|
4356
|
-
|
|
4446
|
+
function Co({
|
|
4447
|
+
user: a,
|
|
4448
|
+
items: t
|
|
4449
|
+
}) {
|
|
4450
|
+
return /* @__PURE__ */ s(bt, { children: [
|
|
4451
|
+
/* @__PURE__ */ e(xt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
4357
4452
|
"button",
|
|
4358
4453
|
{
|
|
4359
4454
|
type: "button",
|
|
4360
4455
|
"aria-label": "Open profile menu",
|
|
4361
|
-
className: "flex items-center gap-2 rounded-full p-0.5 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background
|
|
4362
|
-
children: /* @__PURE__ */ e(
|
|
4456
|
+
className: "flex items-center gap-2 rounded-full p-0.5 outline-none hover:bg-background-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
4457
|
+
children: /* @__PURE__ */ e(Z, { size: "sm", fallback: a.initials, status: a.status })
|
|
4363
4458
|
}
|
|
4364
4459
|
) }),
|
|
4365
|
-
/* @__PURE__ */ s(
|
|
4366
|
-
/* @__PURE__ */ e(
|
|
4367
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground", children:
|
|
4368
|
-
/* @__PURE__ */ e("span", { className: "text-xs text-foreground-subtle", children:
|
|
4460
|
+
/* @__PURE__ */ s(rt, { align: "end", className: "w-60", children: [
|
|
4461
|
+
/* @__PURE__ */ e(vt, { children: /* @__PURE__ */ s("div", { className: "flex flex-col gap-0.5", children: [
|
|
4462
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground", children: a.name }),
|
|
4463
|
+
a.email && /* @__PURE__ */ e("span", { className: "text-xs text-foreground-subtle", children: a.email })
|
|
4369
4464
|
] }) }),
|
|
4370
|
-
/* @__PURE__ */ e(
|
|
4371
|
-
/* @__PURE__ */ s(
|
|
4372
|
-
/* @__PURE__ */ e(
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
] })
|
|
4379
|
-
/* @__PURE__ */ s(ve, { onSelect: () => fe("pricing"), children: [
|
|
4380
|
-
/* @__PURE__ */ e(ir, { className: "size-4" }),
|
|
4381
|
-
"Upgrade plan",
|
|
4382
|
-
/* @__PURE__ */ e(U, { tone: "accent", className: "ml-auto", children: "Pro" })
|
|
4383
|
-
] }),
|
|
4384
|
-
/* @__PURE__ */ e(Me, {}),
|
|
4385
|
-
/* @__PURE__ */ s(ve, { onSelect: () => fe("first-run"), children: [
|
|
4386
|
-
/* @__PURE__ */ e(pt, { className: "size-4" }),
|
|
4387
|
-
"Help & support"
|
|
4388
|
-
] }),
|
|
4389
|
-
/* @__PURE__ */ e(Me, {}),
|
|
4390
|
-
/* @__PURE__ */ s(ve, { onSelect: () => fe("auth-signin"), children: [
|
|
4391
|
-
/* @__PURE__ */ e(tr, { className: "size-4" }),
|
|
4392
|
-
"Sign out"
|
|
4393
|
-
] })
|
|
4465
|
+
/* @__PURE__ */ e($e, {}),
|
|
4466
|
+
t.map((r, n) => /* @__PURE__ */ s(Yr, { children: [
|
|
4467
|
+
r.separatorAbove && /* @__PURE__ */ e($e, {}),
|
|
4468
|
+
/* @__PURE__ */ s(mr, { onSelect: r.onSelect, children: [
|
|
4469
|
+
r.icon,
|
|
4470
|
+
r.label,
|
|
4471
|
+
r.trailing
|
|
4472
|
+
] })
|
|
4473
|
+
] }, n))
|
|
4394
4474
|
] })
|
|
4395
4475
|
] });
|
|
4396
4476
|
}
|
|
4397
|
-
function
|
|
4477
|
+
function qr({ user: a }) {
|
|
4398
4478
|
return /* @__PURE__ */ s("div", { className: "flex items-center gap-2.5 rounded-md px-2 py-1.5", children: [
|
|
4399
|
-
/* @__PURE__ */ e(
|
|
4479
|
+
/* @__PURE__ */ e(Z, { fallback: a.initials, size: "sm", status: a.status }),
|
|
4400
4480
|
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: [
|
|
4401
|
-
/* @__PURE__ */ e("p", { className: "truncate text-sm font-medium text-foreground", children:
|
|
4402
|
-
/* @__PURE__ */ e("p", { className: "truncate text-xs text-foreground-subtle", children:
|
|
4481
|
+
/* @__PURE__ */ e("p", { className: "truncate text-sm font-medium text-foreground", children: a.name }),
|
|
4482
|
+
a.email && /* @__PURE__ */ e("p", { className: "truncate text-xs text-foreground-subtle", children: a.email })
|
|
4403
4483
|
] })
|
|
4404
4484
|
] });
|
|
4405
4485
|
}
|
|
4406
|
-
const
|
|
4486
|
+
const So = [
|
|
4407
4487
|
{ label: "Active users", value: "2,840", delta: { value: "+12%", positive: !0 } },
|
|
4408
4488
|
{ label: "Sessions today", value: "8,402", delta: { value: "+4%", positive: !0 } },
|
|
4409
4489
|
{ label: "Open issues", value: "14", delta: { value: "−6%", positive: !0 } },
|
|
4410
4490
|
{ label: "Error rate", value: "0.32%", delta: { value: "+0.05%", positive: !1 } }
|
|
4411
|
-
],
|
|
4491
|
+
], zo = [
|
|
4412
4492
|
{ id: "1", who: { name: "Anu B.", initials: "AB" }, action: "merged", target: "feat/segments", when: "12m ago" },
|
|
4413
4493
|
{ id: "2", who: { name: "Bat E.", initials: "BE" }, action: "opened", target: "fix/login-flow", when: "34m ago" },
|
|
4414
4494
|
{ id: "3", who: { name: "Tuya G.", initials: "TG" }, action: "commented on", target: "Q2 OKRs", when: "1h ago" },
|
|
4415
4495
|
{ id: "4", who: { name: "Khulan O.", initials: "KO" }, action: "archived", target: "old-billing-spike", when: "3h ago" }
|
|
4416
4496
|
];
|
|
4417
|
-
function
|
|
4497
|
+
function oi({
|
|
4498
|
+
title: a = "Overview",
|
|
4499
|
+
subtitle: t = "What's happening across your workspace today.",
|
|
4500
|
+
headerActions: r = /* @__PURE__ */ e(W, { tone: "neutral", variant: "outline", children: "Last 7 days" }),
|
|
4501
|
+
stats: n = So,
|
|
4502
|
+
chart: o,
|
|
4503
|
+
chartTitle: i = "Active users",
|
|
4504
|
+
chartDescription: d = "Distinct sessions per day, last 30 days.",
|
|
4505
|
+
activity: u = zo,
|
|
4506
|
+
activityTitle: f = "Recent activity"
|
|
4507
|
+
} = {}) {
|
|
4418
4508
|
return /* @__PURE__ */ s("div", { className: "space-y-8", children: [
|
|
4419
4509
|
/* @__PURE__ */ s("header", { className: "flex items-end justify-between gap-4", children: [
|
|
4420
4510
|
/* @__PURE__ */ s("div", { children: [
|
|
4421
|
-
/* @__PURE__ */ e("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children:
|
|
4422
|
-
/* @__PURE__ */ e("p", { className: "text-sm text-foreground-muted
|
|
4511
|
+
/* @__PURE__ */ e("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children: a }),
|
|
4512
|
+
t && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-foreground-muted", children: t })
|
|
4423
4513
|
] }),
|
|
4424
|
-
/* @__PURE__ */ e("div", { className: "hidden
|
|
4514
|
+
r && /* @__PURE__ */ e("div", { className: "hidden items-center gap-2 md:flex", children: r })
|
|
4425
4515
|
] }),
|
|
4426
|
-
/* @__PURE__ */ e("section", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4", children:
|
|
4427
|
-
/* @__PURE__ */ e(H, { className: "pb-2", children: /* @__PURE__ */ e(
|
|
4428
|
-
/* @__PURE__ */ e(
|
|
4429
|
-
/* @__PURE__ */ e("span", { className: "text-2xl font-semibold
|
|
4430
|
-
|
|
4516
|
+
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(H, { className: "pb-2", children: /* @__PURE__ */ e(oe, { children: c.label }) }),
|
|
4518
|
+
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ s("div", { className: "flex items-baseline gap-2", children: [
|
|
4519
|
+
/* @__PURE__ */ e("span", { className: "tabular text-2xl font-semibold text-foreground", children: c.value }),
|
|
4520
|
+
c.delta && /* @__PURE__ */ e(
|
|
4431
4521
|
"span",
|
|
4432
4522
|
{
|
|
4433
|
-
className:
|
|
4434
|
-
children:
|
|
4523
|
+
className: c.delta.positive ? "tabular text-xs font-medium text-success-text" : "tabular text-xs font-medium text-danger-text",
|
|
4524
|
+
children: c.delta.value
|
|
4435
4525
|
}
|
|
4436
4526
|
)
|
|
4437
4527
|
] }) })
|
|
4438
|
-
] },
|
|
4439
|
-
/* @__PURE__ */ s(V, { children: [
|
|
4528
|
+
] }, h)) }),
|
|
4529
|
+
(o !== void 0 || i) && /* @__PURE__ */ s(V, { children: [
|
|
4440
4530
|
/* @__PURE__ */ s(H, { children: [
|
|
4441
|
-
/* @__PURE__ */ e(Q, { children:
|
|
4442
|
-
/* @__PURE__ */ e(
|
|
4531
|
+
i && /* @__PURE__ */ e(Q, { children: i }),
|
|
4532
|
+
d && /* @__PURE__ */ e(oe, { children: d })
|
|
4443
4533
|
] }),
|
|
4444
|
-
/* @__PURE__ */ e(
|
|
4534
|
+
/* @__PURE__ */ e(U, { children: o ?? /* @__PURE__ */ e(
|
|
4445
4535
|
"div",
|
|
4446
4536
|
{
|
|
4447
4537
|
role: "img",
|
|
4448
|
-
"aria-label": "
|
|
4538
|
+
"aria-label": "Chart placeholder",
|
|
4449
4539
|
className: "h-48 w-full rounded-md border border-dashed border-border bg-background-subtle"
|
|
4450
4540
|
}
|
|
4451
4541
|
) })
|
|
4452
4542
|
] }),
|
|
4453
|
-
/* @__PURE__ */ s(V, { padding: "none", children: [
|
|
4454
|
-
/* @__PURE__ */ e(H, { className: "px-5 pt-5", children: /* @__PURE__ */ e(Q, { children:
|
|
4455
|
-
/* @__PURE__ */ s(
|
|
4456
|
-
/* @__PURE__ */ e(
|
|
4457
|
-
/* @__PURE__ */ e(
|
|
4458
|
-
/* @__PURE__ */ e(
|
|
4459
|
-
/* @__PURE__ */ e(
|
|
4460
|
-
/* @__PURE__ */ e(
|
|
4543
|
+
u.length > 0 && /* @__PURE__ */ s(V, { padding: "none", children: [
|
|
4544
|
+
/* @__PURE__ */ e(H, { className: "px-5 pt-5", children: /* @__PURE__ */ e(Q, { children: f }) }),
|
|
4545
|
+
/* @__PURE__ */ s(Nt, { children: [
|
|
4546
|
+
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ s(me, { children: [
|
|
4547
|
+
/* @__PURE__ */ e(fe, { children: "Who" }),
|
|
4548
|
+
/* @__PURE__ */ e(fe, { children: "Action" }),
|
|
4549
|
+
/* @__PURE__ */ e(fe, { children: "Target" }),
|
|
4550
|
+
/* @__PURE__ */ e(fe, { className: "text-right", children: "When" })
|
|
4461
4551
|
] }) }),
|
|
4462
|
-
/* @__PURE__ */ e(
|
|
4463
|
-
/* @__PURE__ */ e(
|
|
4464
|
-
/* @__PURE__ */ e(
|
|
4465
|
-
/* @__PURE__ */ e("span", { className: "text-foreground", children:
|
|
4552
|
+
/* @__PURE__ */ e(wt, { children: u.map((c) => /* @__PURE__ */ s(me, { children: [
|
|
4553
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
4554
|
+
/* @__PURE__ */ e(Z, { size: "xs", fallback: c.who.initials }),
|
|
4555
|
+
/* @__PURE__ */ e("span", { className: "text-foreground", children: c.who.name })
|
|
4466
4556
|
] }) }),
|
|
4467
|
-
/* @__PURE__ */ e(
|
|
4468
|
-
/* @__PURE__ */ e(
|
|
4469
|
-
/* @__PURE__ */ e(
|
|
4470
|
-
] },
|
|
4557
|
+
/* @__PURE__ */ e(de, { className: "text-foreground-muted", children: c.action }),
|
|
4558
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(W, { tone: "neutral", variant: "outline", children: c.target }) }),
|
|
4559
|
+
/* @__PURE__ */ e(de, { className: "tabular text-right text-foreground-subtle", children: c.when })
|
|
4560
|
+
] }, c.id)) })
|
|
4471
4561
|
] })
|
|
4472
4562
|
] })
|
|
4473
4563
|
] });
|
|
4474
4564
|
}
|
|
4475
|
-
const
|
|
4565
|
+
const To = [
|
|
4476
4566
|
{
|
|
4477
4567
|
id: "profile",
|
|
4478
4568
|
label: "Profile",
|
|
4479
|
-
icon: /* @__PURE__ */ e(
|
|
4569
|
+
icon: /* @__PURE__ */ e(pt, {}),
|
|
4480
4570
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4481
4571
|
/* @__PURE__ */ s(H, { children: [
|
|
4482
4572
|
/* @__PURE__ */ e(Q, { children: "Profile" }),
|
|
4483
|
-
/* @__PURE__ */ e(
|
|
4573
|
+
/* @__PURE__ */ e(oe, { children: "Visible to your teammates." })
|
|
4484
4574
|
] }),
|
|
4485
|
-
/* @__PURE__ */ s(
|
|
4575
|
+
/* @__PURE__ */ s(U, { className: "space-y-4", children: [
|
|
4486
4576
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-4", children: [
|
|
4487
|
-
/* @__PURE__ */ e(
|
|
4577
|
+
/* @__PURE__ */ e(Z, { size: "xl", fallback: "BO" }),
|
|
4488
4578
|
/* @__PURE__ */ s("div", { children: [
|
|
4489
4579
|
/* @__PURE__ */ e(I, { variant: "outline", size: "sm", children: "Change photo" }),
|
|
4490
4580
|
/* @__PURE__ */ e("p", { className: "mt-2 text-xs text-foreground-subtle", children: "JPG or PNG, max 2 MB." })
|
|
4491
4581
|
] })
|
|
4492
4582
|
] }),
|
|
4493
|
-
/* @__PURE__ */ e(
|
|
4583
|
+
/* @__PURE__ */ e(be, {}),
|
|
4494
4584
|
/* @__PURE__ */ s("div", { className: "grid gap-4 sm:grid-cols-2", children: [
|
|
4495
|
-
/* @__PURE__ */ e(
|
|
4496
|
-
/* @__PURE__ */ e(
|
|
4585
|
+
/* @__PURE__ */ e(L, { label: "First name", defaultValue: "Bay" }),
|
|
4586
|
+
/* @__PURE__ */ e(L, { label: "Last name", defaultValue: "Otgonbayar" })
|
|
4497
4587
|
] }),
|
|
4498
|
-
/* @__PURE__ */ e(
|
|
4588
|
+
/* @__PURE__ */ e(L, { label: "Display email", type: "email", defaultValue: "bay@company.com" }),
|
|
4499
4589
|
/* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ e(I, { children: "Save changes" }) })
|
|
4500
4590
|
] })
|
|
4501
4591
|
] })
|
|
@@ -4503,22 +4593,22 @@ const ko = [
|
|
|
4503
4593
|
{
|
|
4504
4594
|
id: "security",
|
|
4505
4595
|
label: "Security",
|
|
4506
|
-
icon: /* @__PURE__ */ e(
|
|
4596
|
+
icon: /* @__PURE__ */ e(Xt, {}),
|
|
4507
4597
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4508
4598
|
/* @__PURE__ */ s(H, { children: [
|
|
4509
4599
|
/* @__PURE__ */ e(Q, { children: "Security" }),
|
|
4510
|
-
/* @__PURE__ */ e(
|
|
4600
|
+
/* @__PURE__ */ e(oe, { children: "How you sign in and protect your account." })
|
|
4511
4601
|
] }),
|
|
4512
|
-
/* @__PURE__ */ s(
|
|
4513
|
-
/* @__PURE__ */ e(
|
|
4514
|
-
/* @__PURE__ */ e(
|
|
4515
|
-
/* @__PURE__ */ e(
|
|
4602
|
+
/* @__PURE__ */ s(U, { className: "space-y-4", children: [
|
|
4603
|
+
/* @__PURE__ */ e(L, { label: "Current password", type: "password" }),
|
|
4604
|
+
/* @__PURE__ */ e(L, { label: "New password", type: "password", helperText: "At least 8 characters." }),
|
|
4605
|
+
/* @__PURE__ */ e(be, {}),
|
|
4516
4606
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
4517
4607
|
/* @__PURE__ */ s("div", { children: [
|
|
4518
4608
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-foreground", children: "Two-factor authentication" }),
|
|
4519
4609
|
/* @__PURE__ */ e("p", { className: "text-xs text-foreground-subtle", children: "Required for admin accounts on production." })
|
|
4520
4610
|
] }),
|
|
4521
|
-
/* @__PURE__ */ e(
|
|
4611
|
+
/* @__PURE__ */ e(Ce, { defaultChecked: !0 })
|
|
4522
4612
|
] }),
|
|
4523
4613
|
/* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ e(I, { children: "Update password" }) })
|
|
4524
4614
|
] })
|
|
@@ -4527,31 +4617,31 @@ const ko = [
|
|
|
4527
4617
|
{
|
|
4528
4618
|
id: "notifications",
|
|
4529
4619
|
label: "Notifications",
|
|
4530
|
-
icon: /* @__PURE__ */ e(
|
|
4620
|
+
icon: /* @__PURE__ */ e(dt, {}),
|
|
4531
4621
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4532
4622
|
/* @__PURE__ */ s(H, { children: [
|
|
4533
4623
|
/* @__PURE__ */ e(Q, { children: "Notifications" }),
|
|
4534
|
-
/* @__PURE__ */ e(
|
|
4624
|
+
/* @__PURE__ */ e(oe, { children: "Choose what we email and ping you about." })
|
|
4535
4625
|
] }),
|
|
4536
|
-
/* @__PURE__ */ s(
|
|
4537
|
-
/* @__PURE__ */ e(
|
|
4538
|
-
/* @__PURE__ */ e(
|
|
4539
|
-
/* @__PURE__ */ e(
|
|
4540
|
-
/* @__PURE__ */ e(
|
|
4541
|
-
/* @__PURE__ */ e(
|
|
4626
|
+
/* @__PURE__ */ s(U, { className: "space-y-4", children: [
|
|
4627
|
+
/* @__PURE__ */ e(Ce, { label: "Product updates", description: "A short note when we ship something.", defaultChecked: !0 }),
|
|
4628
|
+
/* @__PURE__ */ e(be, {}),
|
|
4629
|
+
/* @__PURE__ */ e(Ce, { label: "Mentions", description: "When a teammate @ mentions you in a comment.", defaultChecked: !0 }),
|
|
4630
|
+
/* @__PURE__ */ e(be, {}),
|
|
4631
|
+
/* @__PURE__ */ e(Ce, { label: "Weekly digest", description: "A Monday-morning summary of last week's activity." })
|
|
4542
4632
|
] })
|
|
4543
4633
|
] })
|
|
4544
4634
|
},
|
|
4545
4635
|
{
|
|
4546
4636
|
id: "billing",
|
|
4547
4637
|
label: "Billing",
|
|
4548
|
-
icon: /* @__PURE__ */ e(
|
|
4638
|
+
icon: /* @__PURE__ */ e(Rt, {}),
|
|
4549
4639
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4550
4640
|
/* @__PURE__ */ s(H, { children: [
|
|
4551
4641
|
/* @__PURE__ */ e(Q, { children: "Billing" }),
|
|
4552
|
-
/* @__PURE__ */ e(
|
|
4642
|
+
/* @__PURE__ */ e(oe, { children: "Your plan, invoices, and payment method." })
|
|
4553
4643
|
] }),
|
|
4554
|
-
/* @__PURE__ */ s(
|
|
4644
|
+
/* @__PURE__ */ s(U, { className: "space-y-4", children: [
|
|
4555
4645
|
/* @__PURE__ */ s("div", { className: "rounded-md border border-border bg-background-subtle p-4", children: [
|
|
4556
4646
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-foreground", children: "Team — $20/user/month" }),
|
|
4557
4647
|
/* @__PURE__ */ e("p", { className: "mt-1 text-xs text-foreground-subtle", children: "Renews on 1 June 2026 · 12 seats" })
|
|
@@ -4566,16 +4656,16 @@ const ko = [
|
|
|
4566
4656
|
{
|
|
4567
4657
|
id: "team",
|
|
4568
4658
|
label: "Team",
|
|
4569
|
-
icon: /* @__PURE__ */ e(
|
|
4659
|
+
icon: /* @__PURE__ */ e(Xe, {}),
|
|
4570
4660
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4571
4661
|
/* @__PURE__ */ s(H, { children: [
|
|
4572
4662
|
/* @__PURE__ */ e(Q, { children: "Team" }),
|
|
4573
|
-
/* @__PURE__ */ e(
|
|
4663
|
+
/* @__PURE__ */ e(oe, { children: "Invite teammates and manage roles." })
|
|
4574
4664
|
] }),
|
|
4575
|
-
/* @__PURE__ */ s(
|
|
4665
|
+
/* @__PURE__ */ s(U, { className: "space-y-4", children: [
|
|
4576
4666
|
/* @__PURE__ */ s("div", { className: "flex gap-2", children: [
|
|
4577
4667
|
/* @__PURE__ */ e(
|
|
4578
|
-
|
|
4668
|
+
L,
|
|
4579
4669
|
{
|
|
4580
4670
|
type: "email",
|
|
4581
4671
|
placeholder: "teammate@company.com",
|
|
@@ -4591,10 +4681,10 @@ const ko = [
|
|
|
4591
4681
|
] })
|
|
4592
4682
|
}
|
|
4593
4683
|
];
|
|
4594
|
-
function
|
|
4684
|
+
function si({
|
|
4595
4685
|
title: a = "Settings",
|
|
4596
4686
|
subtitle: t = "Manage your account, preferences, and billing.",
|
|
4597
|
-
sections: r =
|
|
4687
|
+
sections: r = To,
|
|
4598
4688
|
defaultSection: n,
|
|
4599
4689
|
activeSection: o,
|
|
4600
4690
|
onActiveSectionChange: i,
|
|
@@ -4633,17 +4723,17 @@ function ri({
|
|
|
4633
4723
|
] })
|
|
4634
4724
|
] });
|
|
4635
4725
|
}
|
|
4636
|
-
const
|
|
4726
|
+
const Io = [
|
|
4637
4727
|
{ id: "p1", name: "Pulse onboarding", status: "active", owner: "Anu B.", updatedAt: "2 hours ago" },
|
|
4638
4728
|
{ id: "p2", name: "Q2 OKRs rollout", status: "active", owner: "Bat E.", updatedAt: "Yesterday" },
|
|
4639
4729
|
{ id: "p3", name: "Legacy export", status: "paused", owner: "Tuya G.", updatedAt: "3 days ago" },
|
|
4640
4730
|
{ id: "p4", name: "Billing spike", status: "archived", owner: "Khulan O.", updatedAt: "Last week" },
|
|
4641
4731
|
{ id: "p5", name: "Marketing refresh", status: "active", owner: "Anu B.", updatedAt: "Last week" }
|
|
4642
|
-
],
|
|
4732
|
+
], Pt = {
|
|
4643
4733
|
active: { tone: "success", label: "Active" },
|
|
4644
4734
|
paused: { tone: "warning", label: "Paused" },
|
|
4645
4735
|
archived: { tone: "neutral", label: "Archived" }
|
|
4646
|
-
},
|
|
4736
|
+
}, Mo = [
|
|
4647
4737
|
{
|
|
4648
4738
|
key: "name",
|
|
4649
4739
|
header: "Name",
|
|
@@ -4653,11 +4743,11 @@ const Co = [
|
|
|
4653
4743
|
{
|
|
4654
4744
|
key: "status",
|
|
4655
4745
|
header: "Status",
|
|
4656
|
-
cell: (a) => /* @__PURE__ */ e(
|
|
4746
|
+
cell: (a) => /* @__PURE__ */ e(W, { tone: Pt[a.status].tone, dot: !0, children: Pt[a.status].label })
|
|
4657
4747
|
},
|
|
4658
4748
|
{ key: "owner", header: "Owner" },
|
|
4659
4749
|
{ key: "updatedAt", header: "Updated", align: "right" }
|
|
4660
|
-
],
|
|
4750
|
+
], Do = [
|
|
4661
4751
|
{
|
|
4662
4752
|
key: "status",
|
|
4663
4753
|
label: "Status",
|
|
@@ -4668,19 +4758,19 @@ const Co = [
|
|
|
4668
4758
|
{ value: "archived", label: "Archived" }
|
|
4669
4759
|
]
|
|
4670
4760
|
}
|
|
4671
|
-
],
|
|
4672
|
-
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(
|
|
4673
|
-
/* @__PURE__ */ e(I, { leadingIcon: /* @__PURE__ */ e(
|
|
4674
|
-
] }),
|
|
4675
|
-
{ label: "Export", icon: /* @__PURE__ */ e(
|
|
4761
|
+
], Po = /* @__PURE__ */ s(te, { children: [
|
|
4762
|
+
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(Qe, {}), children: "Import" }),
|
|
4763
|
+
/* @__PURE__ */ e(I, { leadingIcon: /* @__PURE__ */ e(gt, {}), children: "New project" })
|
|
4764
|
+
] }), _o = [
|
|
4765
|
+
{ label: "Export", icon: /* @__PURE__ */ e(Bt, {}), variant: "ghost", onAction: () => {
|
|
4676
4766
|
} },
|
|
4677
|
-
{ label: "Delete", icon: /* @__PURE__ */ e(
|
|
4767
|
+
{ label: "Delete", icon: /* @__PURE__ */ e(ht, {}), variant: "ghost", onAction: () => {
|
|
4678
4768
|
} }
|
|
4679
4769
|
];
|
|
4680
|
-
function
|
|
4770
|
+
function ii({
|
|
4681
4771
|
title: a = "Projects",
|
|
4682
4772
|
subtitle: t,
|
|
4683
|
-
headerActions: r =
|
|
4773
|
+
headerActions: r = Po,
|
|
4684
4774
|
rows: n,
|
|
4685
4775
|
columns: o,
|
|
4686
4776
|
filters: i,
|
|
@@ -4692,47 +4782,47 @@ function ni({
|
|
|
4692
4782
|
emptyState: b,
|
|
4693
4783
|
className: g
|
|
4694
4784
|
} = {}) {
|
|
4695
|
-
const p = n ??
|
|
4785
|
+
const p = n ?? Io, x = o ?? Mo, N = i ?? Do, v = h ?? _o, [T, F] = w(""), [M, z] = w(() => {
|
|
4696
4786
|
var P;
|
|
4697
4787
|
const S = {};
|
|
4698
4788
|
for (const J of N) S[J.key] = J.defaultValue ?? ((P = J.options[0]) == null ? void 0 : P.value) ?? "";
|
|
4699
4789
|
return S;
|
|
4700
|
-
}), [y, k] = w([]), [
|
|
4790
|
+
}), [y, k] = w([]), [j, K] = w(1), [q, le] = w(c), _ = xe(() => {
|
|
4701
4791
|
const S = (P) => {
|
|
4702
4792
|
const J = T.toLowerCase();
|
|
4703
4793
|
if (J && !Object.values(P).some(
|
|
4704
|
-
(
|
|
4794
|
+
(pe) => typeof pe == "string" && pe.toLowerCase().includes(J)
|
|
4705
4795
|
))
|
|
4706
4796
|
return !1;
|
|
4707
|
-
for (const [
|
|
4708
|
-
if (!(!
|
|
4797
|
+
for (const [Pe, pe] of Object.entries(M))
|
|
4798
|
+
if (!(!pe || pe === "all") && P[Pe] !== pe)
|
|
4709
4799
|
return !1;
|
|
4710
4800
|
return !0;
|
|
4711
4801
|
};
|
|
4712
4802
|
return p.filter(
|
|
4713
4803
|
(P) => d ? d(P, M, T) : S(P)
|
|
4714
4804
|
);
|
|
4715
|
-
}, [p, T, M, d]), G = _.length > 0 && _.every((S) => y.includes(S.id)),
|
|
4805
|
+
}, [p, T, M, d]), G = _.length > 0 && _.every((S) => y.includes(S.id)), ne = y.length > 0 && !G, C = xe(
|
|
4716
4806
|
() => p.filter((S) => y.includes(S.id)),
|
|
4717
4807
|
[p, y]
|
|
4718
|
-
),
|
|
4808
|
+
), ae = Math.max(1, Math.ceil(_.length / q)), we = _.slice((j - 1) * q, j * q), E = [
|
|
4719
4809
|
{
|
|
4720
4810
|
key: "__select",
|
|
4721
4811
|
header: /* @__PURE__ */ e(
|
|
4722
|
-
|
|
4812
|
+
Le,
|
|
4723
4813
|
{
|
|
4724
|
-
checked: G ? !0 :
|
|
4814
|
+
checked: G ? !0 : ne ? "indeterminate" : !1,
|
|
4725
4815
|
onCheckedChange: (S) => k(S ? _.map((P) => P.id) : []),
|
|
4726
4816
|
"aria-label": "Select all rows"
|
|
4727
4817
|
}
|
|
4728
4818
|
),
|
|
4729
4819
|
width: "32px",
|
|
4730
4820
|
cell: (S) => /* @__PURE__ */ e(
|
|
4731
|
-
|
|
4821
|
+
Le,
|
|
4732
4822
|
{
|
|
4733
4823
|
checked: y.includes(S.id),
|
|
4734
4824
|
onCheckedChange: (P) => k(
|
|
4735
|
-
(J) => P ? [...J, S.id] : J.filter((
|
|
4825
|
+
(J) => P ? [...J, S.id] : J.filter((Pe) => Pe !== S.id)
|
|
4736
4826
|
),
|
|
4737
4827
|
"aria-label": "Select row"
|
|
4738
4828
|
}
|
|
@@ -4750,25 +4840,25 @@ function ni({
|
|
|
4750
4840
|
] }),
|
|
4751
4841
|
(N.length > 0 || v.length > 0) && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
4752
4842
|
N.map((S) => /* @__PURE__ */ s(
|
|
4753
|
-
|
|
4843
|
+
Tr,
|
|
4754
4844
|
{
|
|
4755
4845
|
value: M[S.key],
|
|
4756
4846
|
onValueChange: (P) => z((J) => ({ ...J, [S.key]: P })),
|
|
4757
4847
|
children: [
|
|
4758
|
-
/* @__PURE__ */ e(
|
|
4759
|
-
/* @__PURE__ */ e(
|
|
4848
|
+
/* @__PURE__ */ e(Ct, { className: "w-40", placeholder: S.label }),
|
|
4849
|
+
/* @__PURE__ */ e(St, { children: S.options.map((P) => /* @__PURE__ */ e(zt, { value: P.value, children: P.label }, P.value)) })
|
|
4760
4850
|
]
|
|
4761
4851
|
},
|
|
4762
4852
|
S.key
|
|
4763
4853
|
)),
|
|
4764
|
-
/* @__PURE__ */ e(I, { variant: "outline", size: "sm", leadingIcon: /* @__PURE__ */ e(
|
|
4854
|
+
/* @__PURE__ */ e(I, { variant: "outline", size: "sm", leadingIcon: /* @__PURE__ */ e(Wt, {}), children: "More filters" })
|
|
4765
4855
|
] }),
|
|
4766
4856
|
y.length > 0 && v.length > 0 && /* @__PURE__ */ s("div", { className: "flex items-center justify-between rounded-md border border-border bg-background-subtle px-4 py-2", children: [
|
|
4767
4857
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
4768
4858
|
/* @__PURE__ */ e(
|
|
4769
|
-
|
|
4859
|
+
Le,
|
|
4770
4860
|
{
|
|
4771
|
-
checked: G ? !0 :
|
|
4861
|
+
checked: G ? !0 : ne ? "indeterminate" : !1,
|
|
4772
4862
|
onCheckedChange: (S) => k(S ? _.map((P) => P.id) : []),
|
|
4773
4863
|
"aria-label": "Select all"
|
|
4774
4864
|
}
|
|
@@ -4793,78 +4883,78 @@ function ni({
|
|
|
4793
4883
|
/* @__PURE__ */ e(
|
|
4794
4884
|
ia,
|
|
4795
4885
|
{
|
|
4796
|
-
rows:
|
|
4886
|
+
rows: we,
|
|
4797
4887
|
filter: { value: T, onChange: F, placeholder: u },
|
|
4798
4888
|
emptyState: b ?? /* @__PURE__ */ e(
|
|
4799
|
-
|
|
4889
|
+
kt,
|
|
4800
4890
|
{
|
|
4801
4891
|
title: "No results",
|
|
4802
4892
|
description: "Try adjusting filters or your search.",
|
|
4803
4893
|
className: "border-0 bg-transparent"
|
|
4804
4894
|
}
|
|
4805
4895
|
),
|
|
4806
|
-
columns:
|
|
4896
|
+
columns: E
|
|
4807
4897
|
}
|
|
4808
4898
|
),
|
|
4809
4899
|
/* @__PURE__ */ e(
|
|
4810
|
-
|
|
4900
|
+
_r,
|
|
4811
4901
|
{
|
|
4812
|
-
page:
|
|
4813
|
-
pageCount:
|
|
4902
|
+
page: j,
|
|
4903
|
+
pageCount: ae,
|
|
4814
4904
|
onPageChange: K,
|
|
4815
4905
|
totalItems: _.length,
|
|
4816
4906
|
pageSize: q,
|
|
4817
4907
|
pageSizeOptions: f,
|
|
4818
4908
|
onPageSizeChange: (S) => {
|
|
4819
|
-
|
|
4909
|
+
le(S), K(1);
|
|
4820
4910
|
}
|
|
4821
4911
|
}
|
|
4822
4912
|
)
|
|
4823
4913
|
] });
|
|
4824
4914
|
}
|
|
4825
|
-
const
|
|
4915
|
+
const Ao = {
|
|
4826
4916
|
title: "Pulse onboarding",
|
|
4827
4917
|
subtitle: "Self-serve onboarding flow for new admins. Owns the first 5 minutes of every workspace.",
|
|
4828
|
-
status: /* @__PURE__ */ e(
|
|
4829
|
-
actions: /* @__PURE__ */ s(
|
|
4830
|
-
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(
|
|
4831
|
-
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(
|
|
4832
|
-
/* @__PURE__ */ e(I, { trailingIcon: /* @__PURE__ */ e(
|
|
4918
|
+
status: /* @__PURE__ */ e(W, { tone: "success", dot: !0, children: "Active" }),
|
|
4919
|
+
actions: /* @__PURE__ */ s(te, { children: [
|
|
4920
|
+
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(Vt, {}), children: "Edit" }),
|
|
4921
|
+
/* @__PURE__ */ e(I, { variant: "outline", leadingIcon: /* @__PURE__ */ e(ht, {}), children: "Archive" }),
|
|
4922
|
+
/* @__PURE__ */ e(I, { trailingIcon: /* @__PURE__ */ e(Gt, {}), children: "Open in app" })
|
|
4833
4923
|
] }),
|
|
4834
4924
|
breadcrumbs: [{ label: "Projects", href: "/projects" }, { label: "Pulse onboarding" }]
|
|
4835
|
-
},
|
|
4925
|
+
}, Fo = [
|
|
4836
4926
|
{
|
|
4837
4927
|
id: "overview",
|
|
4838
4928
|
label: "Overview",
|
|
4839
4929
|
render: () => /* @__PURE__ */ s(V, { children: [
|
|
4840
4930
|
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(Q, { children: "Summary" }) }),
|
|
4841
|
-
/* @__PURE__ */ s(
|
|
4931
|
+
/* @__PURE__ */ s(U, { className: "space-y-2 leading-relaxed text-foreground-muted", children: [
|
|
4842
4932
|
/* @__PURE__ */ e("p", { children: "The Pulse onboarding flow walks new admins through workspace creation, teammate invites, and first-data import in under five minutes." }),
|
|
4843
4933
|
/* @__PURE__ */ e("p", { children: "Completion rate sits at 71% (week-over-week +4 pts) and median time to finish is 4 m 22 s." })
|
|
4844
4934
|
] })
|
|
4845
4935
|
] })
|
|
4846
4936
|
},
|
|
4847
|
-
{ id: "activity", label: "Activity", render: () => /* @__PURE__ */ e(
|
|
4848
|
-
{ id: "files", label: "Files", render: () => /* @__PURE__ */ e(
|
|
4849
|
-
{ id: "settings", label: "Settings", render: () => /* @__PURE__ */ e(
|
|
4850
|
-
],
|
|
4937
|
+
{ id: "activity", label: "Activity", render: () => /* @__PURE__ */ e(st, { children: "Activity feed appears here." }) },
|
|
4938
|
+
{ id: "files", label: "Files", render: () => /* @__PURE__ */ e(st, { children: "Linked documents appear here." }) },
|
|
4939
|
+
{ id: "settings", label: "Settings", render: () => /* @__PURE__ */ e(st, { children: "Project settings appear here." }) }
|
|
4940
|
+
], Lo = /* @__PURE__ */ s(te, { children: [
|
|
4851
4941
|
/* @__PURE__ */ s(V, { children: [
|
|
4852
4942
|
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(Q, { children: "Details" }) }),
|
|
4853
|
-
/* @__PURE__ */ s(
|
|
4854
|
-
/* @__PURE__ */ e(
|
|
4855
|
-
/* @__PURE__ */ e(
|
|
4943
|
+
/* @__PURE__ */ s(U, { className: "space-y-3 text-sm", children: [
|
|
4944
|
+
/* @__PURE__ */ e(Fe, { label: "Owner", value: /* @__PURE__ */ s(te, { children: [
|
|
4945
|
+
/* @__PURE__ */ e(Z, { size: "xs", fallback: "AB" }),
|
|
4856
4946
|
" Anu B."
|
|
4857
4947
|
] }) }),
|
|
4858
|
-
/* @__PURE__ */ e(
|
|
4859
|
-
/* @__PURE__ */ e(
|
|
4948
|
+
/* @__PURE__ */ e(Fe, { label: "Created", value: "12 Feb 2026" }),
|
|
4949
|
+
/* @__PURE__ */ e(Fe, { label: "Updated", value: "2 hours ago" }),
|
|
4860
4950
|
/* @__PURE__ */ e(
|
|
4861
|
-
|
|
4951
|
+
Fe,
|
|
4862
4952
|
{
|
|
4863
4953
|
label: "Tags",
|
|
4864
|
-
value: /* @__PURE__ */ s(
|
|
4865
|
-
/* @__PURE__ */ e(
|
|
4954
|
+
value: /* @__PURE__ */ s(te, { children: [
|
|
4955
|
+
/* @__PURE__ */ e(W, { tone: "accent", children: "growth" }),
|
|
4866
4956
|
" ",
|
|
4867
|
-
/* @__PURE__ */ e(
|
|
4957
|
+
/* @__PURE__ */ e(W, { tone: "neutral", variant: "outline", children: "v2" })
|
|
4868
4958
|
] })
|
|
4869
4959
|
}
|
|
4870
4960
|
)
|
|
@@ -4872,19 +4962,19 @@ const Mo = {
|
|
|
4872
4962
|
] }),
|
|
4873
4963
|
/* @__PURE__ */ s(V, { children: [
|
|
4874
4964
|
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(Q, { children: "Watchers" }) }),
|
|
4875
|
-
/* @__PURE__ */ e(
|
|
4876
|
-
/* @__PURE__ */ e(
|
|
4877
|
-
/* @__PURE__ */ e(
|
|
4878
|
-
/* @__PURE__ */ e(
|
|
4879
|
-
/* @__PURE__ */ e(
|
|
4965
|
+
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ s("div", { className: "flex -space-x-2", children: [
|
|
4966
|
+
/* @__PURE__ */ e(Z, { fallback: "AB" }),
|
|
4967
|
+
/* @__PURE__ */ e(Z, { fallback: "BE" }),
|
|
4968
|
+
/* @__PURE__ */ e(Z, { fallback: "TG" }),
|
|
4969
|
+
/* @__PURE__ */ e(Z, { fallback: "+2" })
|
|
4880
4970
|
] }) })
|
|
4881
4971
|
] })
|
|
4882
4972
|
] });
|
|
4883
|
-
function
|
|
4884
|
-
header: a =
|
|
4885
|
-
tabs: t =
|
|
4973
|
+
function li({
|
|
4974
|
+
header: a = Ao,
|
|
4975
|
+
tabs: t = Fo,
|
|
4886
4976
|
defaultTab: r,
|
|
4887
|
-
sidePanel: n =
|
|
4977
|
+
sidePanel: n = Lo,
|
|
4888
4978
|
className: o
|
|
4889
4979
|
} = {}) {
|
|
4890
4980
|
var d;
|
|
@@ -4907,8 +4997,8 @@ function ai({
|
|
|
4907
4997
|
className: n ? "grid gap-6 lg:grid-cols-[1fr_320px]" : "min-w-0",
|
|
4908
4998
|
children: [
|
|
4909
4999
|
/* @__PURE__ */ e("div", { className: "min-w-0", children: /* @__PURE__ */ s(Ka, { defaultValue: i, children: [
|
|
4910
|
-
/* @__PURE__ */ e(
|
|
4911
|
-
t.map((u) => /* @__PURE__ */ e(
|
|
5000
|
+
/* @__PURE__ */ e(Br, { children: t.map((u) => /* @__PURE__ */ e(Vr, { value: u.id, children: u.label }, u.id)) }),
|
|
5001
|
+
t.map((u) => /* @__PURE__ */ e(Gr, { value: u.id, className: "space-y-4", children: u.render() }, u.id))
|
|
4912
5002
|
] }) }),
|
|
4913
5003
|
n && /* @__PURE__ */ e("aside", { className: "space-y-4", children: n })
|
|
4914
5004
|
]
|
|
@@ -4916,24 +5006,24 @@ function ai({
|
|
|
4916
5006
|
)
|
|
4917
5007
|
] });
|
|
4918
5008
|
}
|
|
4919
|
-
function
|
|
5009
|
+
function Fe({ label: a, value: t }) {
|
|
4920
5010
|
return /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-3", children: [
|
|
4921
5011
|
/* @__PURE__ */ e("span", { className: "text-foreground-subtle", children: a }),
|
|
4922
5012
|
/* @__PURE__ */ e("span", { className: "flex items-center gap-1.5 text-foreground", children: t })
|
|
4923
5013
|
] });
|
|
4924
5014
|
}
|
|
4925
|
-
function
|
|
5015
|
+
function st({ children: a }) {
|
|
4926
5016
|
return /* @__PURE__ */ e("p", { className: "text-sm text-foreground-muted", children: a });
|
|
4927
5017
|
}
|
|
4928
|
-
const
|
|
5018
|
+
const jo = [
|
|
4929
5019
|
{
|
|
4930
5020
|
id: "workspace",
|
|
4931
5021
|
title: "Workspace",
|
|
4932
5022
|
heading: "Create your workspace",
|
|
4933
5023
|
subheading: "A workspace is where your team and projects live.",
|
|
4934
|
-
render: ({ data: a, setData: t }) => /* @__PURE__ */ s(
|
|
5024
|
+
render: ({ data: a, setData: t }) => /* @__PURE__ */ s(te, { children: [
|
|
4935
5025
|
/* @__PURE__ */ e(
|
|
4936
|
-
|
|
5026
|
+
L,
|
|
4937
5027
|
{
|
|
4938
5028
|
label: "Workspace name",
|
|
4939
5029
|
placeholder: "Acme Inc.",
|
|
@@ -4942,7 +5032,7 @@ const _o = [
|
|
|
4942
5032
|
}
|
|
4943
5033
|
),
|
|
4944
5034
|
/* @__PURE__ */ e(
|
|
4945
|
-
|
|
5035
|
+
L,
|
|
4946
5036
|
{
|
|
4947
5037
|
label: "URL slug",
|
|
4948
5038
|
prefix: /* @__PURE__ */ e("span", { children: "acme.app/" }),
|
|
@@ -4958,9 +5048,9 @@ const _o = [
|
|
|
4958
5048
|
title: "Invite team",
|
|
4959
5049
|
heading: "Invite your team",
|
|
4960
5050
|
subheading: "You can always invite more people later.",
|
|
4961
|
-
render: ({ data: a, setData: t }) => /* @__PURE__ */ s(
|
|
5051
|
+
render: ({ data: a, setData: t }) => /* @__PURE__ */ s(te, { children: [
|
|
4962
5052
|
/* @__PURE__ */ e(
|
|
4963
|
-
|
|
5053
|
+
L,
|
|
4964
5054
|
{
|
|
4965
5055
|
type: "email",
|
|
4966
5056
|
label: "Invite by email",
|
|
@@ -4971,14 +5061,14 @@ const _o = [
|
|
|
4971
5061
|
}
|
|
4972
5062
|
),
|
|
4973
5063
|
/* @__PURE__ */ s(
|
|
4974
|
-
|
|
5064
|
+
Ar,
|
|
4975
5065
|
{
|
|
4976
5066
|
value: a.role ?? "member",
|
|
4977
5067
|
onValueChange: (r) => t({ role: r }),
|
|
4978
5068
|
children: [
|
|
4979
|
-
/* @__PURE__ */ e(
|
|
4980
|
-
/* @__PURE__ */ e(
|
|
4981
|
-
/* @__PURE__ */ e(
|
|
5069
|
+
/* @__PURE__ */ e(Ee, { value: "admin", label: "Admin", description: "Can manage workspace and billing." }),
|
|
5070
|
+
/* @__PURE__ */ e(Ee, { value: "member", label: "Member", description: "Can create and edit projects." }),
|
|
5071
|
+
/* @__PURE__ */ e(Ee, { value: "viewer", label: "Viewer", description: "Read-only access." })
|
|
4982
5072
|
]
|
|
4983
5073
|
}
|
|
4984
5074
|
)
|
|
@@ -4989,7 +5079,7 @@ const _o = [
|
|
|
4989
5079
|
title: "Connect data",
|
|
4990
5080
|
heading: "Connect a data source",
|
|
4991
5081
|
subheading: "Pick one — others can be added in settings.",
|
|
4992
|
-
render: ({ data: a, setData: t }) => /* @__PURE__ */ s(
|
|
5082
|
+
render: ({ data: a, setData: t }) => /* @__PURE__ */ s(te, { children: [
|
|
4993
5083
|
/* @__PURE__ */ e("p", { className: "text-sm text-foreground-muted", children: "Connect your data source so we can populate your first dashboard." }),
|
|
4994
5084
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-2 gap-2", children: ["Postgres", "BigQuery", "Snowflake", "CSV upload"].map((r) => {
|
|
4995
5085
|
const n = a.source === r;
|
|
@@ -5017,14 +5107,14 @@ const _o = [
|
|
|
5017
5107
|
subheading: "We've set up your starting dashboard.",
|
|
5018
5108
|
ctaLabel: "Open workspace",
|
|
5019
5109
|
render: () => /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-3 py-6 text-center", children: [
|
|
5020
|
-
/* @__PURE__ */ e(
|
|
5110
|
+
/* @__PURE__ */ e(Ne, { className: "size-10 text-success-text", "aria-hidden": !0 }),
|
|
5021
5111
|
/* @__PURE__ */ e("p", { className: "text-base font-medium text-foreground", children: "You're all set." }),
|
|
5022
5112
|
/* @__PURE__ */ e("p", { className: "max-w-sm text-sm text-foreground-muted", children: "Your workspace is ready. We've sent invites and your first dashboard is loading." })
|
|
5023
5113
|
] })
|
|
5024
5114
|
}
|
|
5025
5115
|
];
|
|
5026
|
-
function
|
|
5027
|
-
steps: a =
|
|
5116
|
+
function di({
|
|
5117
|
+
steps: a = jo,
|
|
5028
5118
|
initialData: t = {},
|
|
5029
5119
|
onComplete: r,
|
|
5030
5120
|
className: n
|
|
@@ -5033,20 +5123,20 @@ function oi({
|
|
|
5033
5123
|
r && await r(d);
|
|
5034
5124
|
}, p = { next: h, prev: b, goTo: c, finish: g, data: d, setData: f }, x = a[o], N = o === a.length - 1;
|
|
5035
5125
|
return /* @__PURE__ */ s("div", { className: `mx-auto max-w-2xl space-y-8 py-12 ${n ?? ""}`, children: [
|
|
5036
|
-
/* @__PURE__ */ e(
|
|
5126
|
+
/* @__PURE__ */ e(Rr, { steps: a.map((v) => ({ title: v.title, description: v.description })), current: o }),
|
|
5037
5127
|
/* @__PURE__ */ s(V, { children: [
|
|
5038
5128
|
/* @__PURE__ */ s(H, { children: [
|
|
5039
5129
|
/* @__PURE__ */ e(Q, { children: x.heading }),
|
|
5040
|
-
x.subheading && /* @__PURE__ */ e(
|
|
5130
|
+
x.subheading && /* @__PURE__ */ e(oe, { children: x.subheading })
|
|
5041
5131
|
] }),
|
|
5042
|
-
/* @__PURE__ */ e(
|
|
5132
|
+
/* @__PURE__ */ e(U, { className: "space-y-4", children: x.render(p) })
|
|
5043
5133
|
] }),
|
|
5044
5134
|
!x.hideNavigation && /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
5045
5135
|
/* @__PURE__ */ e(
|
|
5046
5136
|
I,
|
|
5047
5137
|
{
|
|
5048
5138
|
variant: "ghost",
|
|
5049
|
-
leadingIcon: /* @__PURE__ */ e(
|
|
5139
|
+
leadingIcon: /* @__PURE__ */ e(At, {}),
|
|
5050
5140
|
onClick: b,
|
|
5051
5141
|
disabled: o === 0,
|
|
5052
5142
|
children: "Back"
|
|
@@ -5055,7 +5145,7 @@ function oi({
|
|
|
5055
5145
|
/* @__PURE__ */ e(
|
|
5056
5146
|
I,
|
|
5057
5147
|
{
|
|
5058
|
-
trailingIcon: N ? void 0 : /* @__PURE__ */ e(
|
|
5148
|
+
trailingIcon: N ? void 0 : /* @__PURE__ */ e(ze, {}),
|
|
5059
5149
|
onClick: N ? g : h,
|
|
5060
5150
|
children: x.ctaLabel ?? (N ? "Finish" : "Continue")
|
|
5061
5151
|
}
|
|
@@ -5063,7 +5153,7 @@ function oi({
|
|
|
5063
5153
|
] })
|
|
5064
5154
|
] });
|
|
5065
5155
|
}
|
|
5066
|
-
const
|
|
5156
|
+
const Eo = [
|
|
5067
5157
|
{
|
|
5068
5158
|
name: "Starter",
|
|
5069
5159
|
price: "$0",
|
|
@@ -5101,10 +5191,10 @@ const Ao = [
|
|
|
5101
5191
|
cta: "Talk to sales"
|
|
5102
5192
|
}
|
|
5103
5193
|
];
|
|
5104
|
-
function
|
|
5194
|
+
function ci({
|
|
5105
5195
|
title: a = "Plans that scale with your team",
|
|
5106
5196
|
subtitle: t = "Start free, upgrade when you need more. All paid plans include a 14-day trial — no credit card required.",
|
|
5107
|
-
tiers: r =
|
|
5197
|
+
tiers: r = Eo,
|
|
5108
5198
|
highlightedLabel: n = "Most popular",
|
|
5109
5199
|
className: o
|
|
5110
5200
|
} = {}) {
|
|
@@ -5135,7 +5225,7 @@ function si({
|
|
|
5135
5225
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
5136
5226
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
5137
5227
|
/* @__PURE__ */ e("h2", { className: "text-base font-semibold text-foreground", children: d.name }),
|
|
5138
|
-
d.highlighted && /* @__PURE__ */ e(
|
|
5228
|
+
d.highlighted && /* @__PURE__ */ e(W, { tone: "accent", children: n })
|
|
5139
5229
|
] }),
|
|
5140
5230
|
d.description && /* @__PURE__ */ e("p", { className: "text-sm text-foreground-muted", children: d.description })
|
|
5141
5231
|
] }),
|
|
@@ -5144,7 +5234,7 @@ function si({
|
|
|
5144
5234
|
d.cadence && /* @__PURE__ */ e("span", { className: "text-sm text-foreground-subtle", children: d.cadence })
|
|
5145
5235
|
] }),
|
|
5146
5236
|
/* @__PURE__ */ e("ul", { className: "space-y-2 text-sm", children: d.features.map((u) => /* @__PURE__ */ s("li", { className: "flex items-start gap-2 text-foreground", children: [
|
|
5147
|
-
/* @__PURE__ */ e(
|
|
5237
|
+
/* @__PURE__ */ e(ie, { className: "mt-0.5 size-4 shrink-0 text-accent", "aria-hidden": !0 }),
|
|
5148
5238
|
u
|
|
5149
5239
|
] }, u)) }),
|
|
5150
5240
|
/* @__PURE__ */ e(
|
|
@@ -5164,37 +5254,37 @@ function si({
|
|
|
5164
5254
|
)
|
|
5165
5255
|
] });
|
|
5166
5256
|
}
|
|
5167
|
-
const
|
|
5257
|
+
const $o = [
|
|
5168
5258
|
{
|
|
5169
|
-
icon: /* @__PURE__ */ e(
|
|
5259
|
+
icon: /* @__PURE__ */ e(gt, {}),
|
|
5170
5260
|
title: "Create a project",
|
|
5171
5261
|
description: "Track a real piece of work end-to-end.",
|
|
5172
5262
|
cta: "New project"
|
|
5173
5263
|
},
|
|
5174
5264
|
{
|
|
5175
|
-
icon: /* @__PURE__ */ e(
|
|
5265
|
+
icon: /* @__PURE__ */ e(Qe, {}),
|
|
5176
5266
|
title: "Import existing data",
|
|
5177
5267
|
description: "CSV, Postgres, BigQuery, or Snowflake — connect in a minute.",
|
|
5178
5268
|
cta: "Connect source"
|
|
5179
5269
|
},
|
|
5180
5270
|
{
|
|
5181
|
-
icon: /* @__PURE__ */ e(
|
|
5271
|
+
icon: /* @__PURE__ */ e(Xe, {}),
|
|
5182
5272
|
title: "Invite your team",
|
|
5183
5273
|
description: "Workspaces are better with teammates. We'll send the invites.",
|
|
5184
5274
|
cta: "Invite people"
|
|
5185
5275
|
}
|
|
5186
5276
|
];
|
|
5187
|
-
function
|
|
5188
|
-
heroIcon: a = /* @__PURE__ */ e(
|
|
5277
|
+
function ui({
|
|
5278
|
+
heroIcon: a = /* @__PURE__ */ e(He, { className: "size-6" }),
|
|
5189
5279
|
title: t = "Your workspace is ready",
|
|
5190
5280
|
description: r = "Start with one of the steps below — you can always come back to the others.",
|
|
5191
|
-
primaryAction: n = /* @__PURE__ */ e(I, { trailingIcon: /* @__PURE__ */ e(
|
|
5192
|
-
steps: o =
|
|
5281
|
+
primaryAction: n = /* @__PURE__ */ e(I, { trailingIcon: /* @__PURE__ */ e(ze, {}), children: "Open tutorial" }),
|
|
5282
|
+
steps: o = $o,
|
|
5193
5283
|
className: i
|
|
5194
5284
|
} = {}) {
|
|
5195
5285
|
return /* @__PURE__ */ s("div", { className: `mx-auto max-w-3xl space-y-8 py-12 ${i ?? ""}`, children: [
|
|
5196
|
-
/* @__PURE__ */ e(
|
|
5197
|
-
o.length > 0 && /* @__PURE__ */ e("div", { className: "grid gap-3 md:grid-cols-3", children: o.map((d) => /* @__PURE__ */ e(V, { variant: "interactive", children: /* @__PURE__ */ s(
|
|
5286
|
+
/* @__PURE__ */ e(kt, { icon: a, title: t, description: r, action: n }),
|
|
5287
|
+
o.length > 0 && /* @__PURE__ */ e("div", { className: "grid gap-3 md:grid-cols-3", children: o.map((d) => /* @__PURE__ */ e(V, { variant: "interactive", children: /* @__PURE__ */ s(U, { className: "space-y-3", children: [
|
|
5198
5288
|
d.icon && /* @__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: d.icon }),
|
|
5199
5289
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
5200
5290
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-foreground", children: d.title }),
|
|
@@ -5205,7 +5295,7 @@ function ii({
|
|
|
5205
5295
|
{
|
|
5206
5296
|
variant: "ghost",
|
|
5207
5297
|
size: "sm",
|
|
5208
|
-
trailingIcon: /* @__PURE__ */ e(
|
|
5298
|
+
trailingIcon: /* @__PURE__ */ e(ze, {}),
|
|
5209
5299
|
onClick: d.onSelect,
|
|
5210
5300
|
children: d.cta
|
|
5211
5301
|
}
|
|
@@ -5214,213 +5304,213 @@ function ii({
|
|
|
5214
5304
|
] });
|
|
5215
5305
|
}
|
|
5216
5306
|
export {
|
|
5217
|
-
|
|
5307
|
+
ns as Accordion,
|
|
5218
5308
|
wn as AccordionContent,
|
|
5219
5309
|
Nn as AccordionItem,
|
|
5220
5310
|
yn as AccordionTrigger,
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5311
|
+
Ze as Alert,
|
|
5312
|
+
ai as AppShell,
|
|
5313
|
+
Ls as AreaChart,
|
|
5314
|
+
Zs as AuthLayout,
|
|
5315
|
+
Z as Avatar,
|
|
5226
5316
|
Tn as AvatarGroup,
|
|
5227
|
-
|
|
5228
|
-
|
|
5317
|
+
W as Badge,
|
|
5318
|
+
js as BarChart,
|
|
5229
5319
|
ur as Breadcrumbs,
|
|
5230
5320
|
I as Button,
|
|
5231
|
-
|
|
5321
|
+
pr as Calendar,
|
|
5232
5322
|
V as Card,
|
|
5233
|
-
|
|
5234
|
-
|
|
5323
|
+
U as CardContent,
|
|
5324
|
+
oe as CardDescription,
|
|
5235
5325
|
_n as CardFooter,
|
|
5236
5326
|
H as CardHeader,
|
|
5237
5327
|
Q as CardTitle,
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5328
|
+
Ms as Carousel,
|
|
5329
|
+
Ds as CarouselContent,
|
|
5330
|
+
Ps as CarouselItem,
|
|
5331
|
+
As as CarouselNext,
|
|
5332
|
+
_s as CarouselPrevious,
|
|
5333
|
+
Le as Checkbox,
|
|
5244
5334
|
An as Combobox,
|
|
5245
5335
|
Fn as Command,
|
|
5246
|
-
|
|
5247
|
-
|
|
5336
|
+
os as CommandDialog,
|
|
5337
|
+
En as CommandEmpty,
|
|
5248
5338
|
$n as CommandGroup,
|
|
5249
|
-
|
|
5339
|
+
Ln as CommandInput,
|
|
5250
5340
|
Rn as CommandItem,
|
|
5251
|
-
|
|
5341
|
+
jn as CommandList,
|
|
5252
5342
|
On as CommandSeparator,
|
|
5253
|
-
|
|
5343
|
+
as as CommandShortcut,
|
|
5254
5344
|
fa as ConfirmationDialog,
|
|
5255
|
-
|
|
5256
|
-
|
|
5345
|
+
is as ContextMenu,
|
|
5346
|
+
Wn as ContextMenuCheckboxItem,
|
|
5257
5347
|
Hn as ContextMenuContent,
|
|
5258
|
-
|
|
5259
|
-
|
|
5348
|
+
ds as ContextMenuGroup,
|
|
5349
|
+
Un as ContextMenuItem,
|
|
5260
5350
|
qn as ContextMenuLabel,
|
|
5261
|
-
|
|
5262
|
-
|
|
5351
|
+
Bn as ContextMenuPortal,
|
|
5352
|
+
us as ContextMenuRadioGroup,
|
|
5263
5353
|
Kn as ContextMenuRadioItem,
|
|
5264
5354
|
Qn as ContextMenuSeparator,
|
|
5265
5355
|
Xn as ContextMenuShortcut,
|
|
5266
|
-
|
|
5356
|
+
cs as ContextMenuSub,
|
|
5267
5357
|
Gn as ContextMenuSubContent,
|
|
5268
5358
|
Vn as ContextMenuSubTrigger,
|
|
5269
|
-
|
|
5270
|
-
|
|
5359
|
+
ls as ContextMenuTrigger,
|
|
5360
|
+
oi as Dashboard,
|
|
5271
5361
|
ia as DataGrid,
|
|
5272
|
-
|
|
5362
|
+
ii as DataTablePage,
|
|
5273
5363
|
la as DatePicker,
|
|
5274
5364
|
da as DateRangePicker,
|
|
5275
|
-
|
|
5365
|
+
hs as DesignSystemProvider,
|
|
5276
5366
|
ca as Dialog,
|
|
5277
5367
|
ma as DialogClose,
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5368
|
+
vr as DialogContent,
|
|
5369
|
+
kr as DialogDescription,
|
|
5370
|
+
yr as DialogFooter,
|
|
5371
|
+
Nr as DialogHeader,
|
|
5372
|
+
xr as DialogOverlay,
|
|
5283
5373
|
ua as DialogPortal,
|
|
5284
|
-
|
|
5285
|
-
|
|
5374
|
+
wr as DialogTitle,
|
|
5375
|
+
bs as DialogTrigger,
|
|
5286
5376
|
co as Drawer,
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5377
|
+
$s as DrawerClose,
|
|
5378
|
+
Os as DrawerContent,
|
|
5379
|
+
Gs as DrawerDescription,
|
|
5380
|
+
Bs as DrawerFooter,
|
|
5381
|
+
Rs as DrawerHeader,
|
|
5292
5382
|
mo as DrawerOverlay,
|
|
5293
5383
|
uo as DrawerPortal,
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5384
|
+
Vs as DrawerTitle,
|
|
5385
|
+
Es as DrawerTrigger,
|
|
5386
|
+
bt as DropdownMenu,
|
|
5387
|
+
fr as DropdownMenuCheckboxItem,
|
|
5388
|
+
rt as DropdownMenuContent,
|
|
5389
|
+
ms as DropdownMenuGroup,
|
|
5390
|
+
mr as DropdownMenuItem,
|
|
5391
|
+
vt as DropdownMenuLabel,
|
|
5302
5392
|
Yn as DropdownMenuPortal,
|
|
5303
|
-
|
|
5393
|
+
gs as DropdownMenuRadioGroup,
|
|
5304
5394
|
ea as DropdownMenuRadioItem,
|
|
5305
|
-
|
|
5395
|
+
$e as DropdownMenuSeparator,
|
|
5306
5396
|
ta as DropdownMenuShortcut,
|
|
5307
|
-
|
|
5397
|
+
fs as DropdownMenuSub,
|
|
5308
5398
|
Zn as DropdownMenuSubContent,
|
|
5309
5399
|
Jn as DropdownMenuSubTrigger,
|
|
5310
|
-
|
|
5311
|
-
|
|
5400
|
+
xt as DropdownMenuTrigger,
|
|
5401
|
+
kt as EmptyState,
|
|
5312
5402
|
ha as ErrorState,
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5403
|
+
Hs as FileUpload,
|
|
5404
|
+
ui as FirstRunEmpty,
|
|
5405
|
+
ri as ForgotPasswordForm,
|
|
5406
|
+
xs as Form,
|
|
5317
5407
|
xa as FormControl,
|
|
5318
5408
|
va as FormDescription,
|
|
5319
5409
|
Na as FormError,
|
|
5320
|
-
|
|
5410
|
+
vs as FormField,
|
|
5321
5411
|
pa as FormItem,
|
|
5322
5412
|
ba as FormLabel,
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5413
|
+
Me as IconButton,
|
|
5414
|
+
ts as Icons,
|
|
5415
|
+
rs as Illustrations,
|
|
5416
|
+
L as Input,
|
|
5417
|
+
zr as Kbd,
|
|
5418
|
+
Fs as LineChart,
|
|
5419
|
+
ni as MagicLinkSent,
|
|
5330
5420
|
ya as MultiSelect,
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5421
|
+
di as Onboarding,
|
|
5422
|
+
_r as Pagination,
|
|
5423
|
+
ys as Popover,
|
|
5424
|
+
ks as PopoverAnchor,
|
|
5425
|
+
Cs as PopoverClose,
|
|
5336
5426
|
Sa as PopoverContent,
|
|
5337
|
-
|
|
5338
|
-
|
|
5427
|
+
ws as PopoverTrigger,
|
|
5428
|
+
ci as Pricing,
|
|
5339
5429
|
Ia as Progress,
|
|
5340
5430
|
Da as ProgressCircle,
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5431
|
+
Ar as RadioGroup,
|
|
5432
|
+
Ee as RadioItem,
|
|
5433
|
+
li as RecordDetail,
|
|
5344
5434
|
Pa as ScrollArea,
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5435
|
+
Fr as ScrollBar,
|
|
5436
|
+
Tr as Select,
|
|
5437
|
+
St as SelectContent,
|
|
5348
5438
|
ka as SelectGroup,
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5439
|
+
zt as SelectItem,
|
|
5440
|
+
Pr as SelectLabel,
|
|
5441
|
+
Dr as SelectScrollDownButton,
|
|
5442
|
+
Mr as SelectScrollUpButton,
|
|
5353
5443
|
wa as SelectSeparator,
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5444
|
+
Ct as SelectTrigger,
|
|
5445
|
+
Ns as SelectValue,
|
|
5446
|
+
be as Separator,
|
|
5447
|
+
si as SettingsPage,
|
|
5358
5448
|
_a as Sheet,
|
|
5359
|
-
|
|
5449
|
+
Ss as SheetClose,
|
|
5360
5450
|
jr as SheetContent,
|
|
5361
5451
|
Oa as SheetDescription,
|
|
5362
|
-
|
|
5363
|
-
|
|
5452
|
+
Ea as SheetFooter,
|
|
5453
|
+
ja as SheetHeader,
|
|
5364
5454
|
Fa as SheetPortal,
|
|
5365
5455
|
$a as SheetTitle,
|
|
5366
5456
|
Aa as SheetTrigger,
|
|
5367
|
-
|
|
5457
|
+
Er as Sidebar,
|
|
5368
5458
|
Ra as SidebarGroup,
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5459
|
+
Or as SidebarItem,
|
|
5460
|
+
$r as SidebarSection,
|
|
5461
|
+
ei as SignInForm,
|
|
5462
|
+
ti as SignUpForm,
|
|
5463
|
+
hr as Skeleton,
|
|
5464
|
+
Ba as Slider,
|
|
5465
|
+
Us as Snackbar,
|
|
5376
5466
|
Ha as Spinner,
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5467
|
+
Rr as Stepper,
|
|
5468
|
+
Ce as Switch,
|
|
5469
|
+
Nt as Table,
|
|
5470
|
+
wt as TableBody,
|
|
5381
5471
|
sa as TableCaption,
|
|
5382
|
-
|
|
5472
|
+
de as TableCell,
|
|
5383
5473
|
oa as TableFooter,
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5474
|
+
fe as TableHead,
|
|
5475
|
+
yt as TableHeader,
|
|
5476
|
+
me as TableRow,
|
|
5477
|
+
gr as TableSortHeader,
|
|
5388
5478
|
Ka as Tabs,
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5479
|
+
Gr as TabsContent,
|
|
5480
|
+
Br as TabsList,
|
|
5481
|
+
Vr as TabsTrigger,
|
|
5482
|
+
Ws as TagInput,
|
|
5393
5483
|
Qa as Textarea,
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5484
|
+
Ks as Timeline,
|
|
5485
|
+
Ys as TimelineDescription,
|
|
5486
|
+
qs as TimelineItem,
|
|
5487
|
+
Qs as TimelineTime,
|
|
5488
|
+
Xs as TimelineTitle,
|
|
5399
5489
|
Za as Toast,
|
|
5400
5490
|
ro as ToastAction,
|
|
5401
5491
|
no as ToastClose,
|
|
5402
5492
|
to as ToastDescription,
|
|
5403
|
-
|
|
5493
|
+
Ts as ToastProvider,
|
|
5404
5494
|
eo as ToastTitle,
|
|
5405
5495
|
Xa as ToastViewport,
|
|
5406
5496
|
so as Tooltip,
|
|
5407
|
-
|
|
5408
|
-
|
|
5497
|
+
Hr as TooltipContent,
|
|
5498
|
+
Is as TooltipProvider,
|
|
5409
5499
|
ao as TooltipRoot,
|
|
5410
5500
|
oo as TooltipTrigger,
|
|
5411
5501
|
io as TopNav,
|
|
5412
5502
|
lo as TopNavLink,
|
|
5413
|
-
|
|
5414
|
-
|
|
5503
|
+
Js as Tree,
|
|
5504
|
+
ps as brandPresets,
|
|
5415
5505
|
l as cn,
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5506
|
+
gi as cva,
|
|
5507
|
+
es as toast,
|
|
5508
|
+
Yo as uid,
|
|
5509
|
+
ss as useCommandPaletteShortcut,
|
|
5510
|
+
nt as useFormField,
|
|
5511
|
+
bn as useMediaQuery,
|
|
5512
|
+
Jo as usePrefersReducedMotion,
|
|
5513
|
+
zs as useSidebar,
|
|
5514
|
+
Zo as useToast
|
|
5425
5515
|
};
|
|
5426
5516
|
//# sourceMappingURL=index.js.map
|