@aotter/mantle-admin-ui 0.1.2 → 0.1.3-alpha.2
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/README.md +9 -0
- package/dist/assets/{developer-workspace-Dbe_is2U.js → developer-workspace-CEWp7LZN.js} +1 -1
- package/dist/assets/{html-editor-COXPbDZP.js → html-editor-DmwJ6sZ3.js} +1 -1
- package/dist/assets/index-ojzo9BD_.js +71 -0
- package/dist/assets/{markdown-editor-Dr74ijGC.js → markdown-editor-CRjHAc82.js} +1 -1
- package/dist/assets/{with-selector-m9EYPidO.js → with-selector-lqZ2z8zm.js} +1 -1
- package/dist/components/sign-in-flow.d.ts +94 -0
- package/dist/components/sign-in-flow.d.ts.map +1 -0
- package/dist/index.html +1 -1
- package/dist/kit.d.ts +1 -0
- package/dist/kit.d.ts.map +1 -1
- package/dist/kit.js +637 -468
- package/dist/preview.html +1 -1
- package/dist/r/auth-page.json +1 -1
- package/dist/r/registry.json +1 -1
- package/package.json +2 -2
- package/dist/assets/index-C8ejOX2Y.js +0 -71
package/dist/kit.js
CHANGED
|
@@ -3,74 +3,74 @@ import { clsx as t } from "clsx";
|
|
|
3
3
|
import { twMerge as n } from "tailwind-merge";
|
|
4
4
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { OTPInput as o, OTPInputContext as s, REGEXP_ONLY_DIGITS as c } from "input-otp";
|
|
6
|
-
import {
|
|
7
|
-
import { cva as
|
|
8
|
-
import {
|
|
9
|
-
import { DayPicker as
|
|
10
|
-
import { Toaster as
|
|
6
|
+
import { CheckIcon as l, ChevronDownIcon as u, ChevronLeftIcon as d, ChevronRightIcon as f, ChevronUpIcon as p, CircleCheckIcon as m, InfoIcon as h, Loader2Icon as g, OctagonXIcon as _, PanelLeftIcon as v, TriangleAlertIcon as ee, XIcon as te } from "lucide-react";
|
|
7
|
+
import { cva as y } from "class-variance-authority";
|
|
8
|
+
import { AlertDialog as b, Avatar as x, Checkbox as ne, Collapsible as S, Dialog as C, DropdownMenu as w, Label as re, Popover as T, Select as E, Separator as ie, Slot as D, Tabs as O, Tooltip as k } from "radix-ui";
|
|
9
|
+
import { DayPicker as ae, getDefaultClassNames as A } from "react-day-picker";
|
|
10
|
+
import { Toaster as oe } from "sonner";
|
|
11
11
|
//#region src/lib/utils.ts
|
|
12
|
-
function
|
|
12
|
+
function j(...e) {
|
|
13
13
|
return n(t(e));
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/components/ui/card.tsx
|
|
17
|
-
function
|
|
17
|
+
function se({ className: e, size: t = "default", ...n }) {
|
|
18
18
|
return /* @__PURE__ */ i("div", {
|
|
19
19
|
"data-slot": "card",
|
|
20
20
|
"data-size": t,
|
|
21
|
-
className:
|
|
21
|
+
className: j("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", e),
|
|
22
22
|
...n
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function ce({ className: e, ...t }) {
|
|
26
26
|
return /* @__PURE__ */ i("div", {
|
|
27
27
|
"data-slot": "card-header",
|
|
28
|
-
className:
|
|
28
|
+
className: j("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", e),
|
|
29
29
|
...t
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function le({ className: e, ...t }) {
|
|
33
33
|
return /* @__PURE__ */ i("div", {
|
|
34
34
|
"data-slot": "card-title",
|
|
35
|
-
className:
|
|
35
|
+
className: j("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm", e),
|
|
36
36
|
...t
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ue({ className: e, ...t }) {
|
|
40
40
|
return /* @__PURE__ */ i("div", {
|
|
41
41
|
"data-slot": "card-description",
|
|
42
|
-
className:
|
|
42
|
+
className: j("text-sm text-muted-foreground dark:text-foreground", e),
|
|
43
43
|
...t
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function de({ className: e, ...t }) {
|
|
47
47
|
return /* @__PURE__ */ i("div", {
|
|
48
48
|
"data-slot": "card-action",
|
|
49
|
-
className:
|
|
49
|
+
className: j("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
50
50
|
...t
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function fe({ className: e, ...t }) {
|
|
54
54
|
return /* @__PURE__ */ i("div", {
|
|
55
55
|
"data-slot": "card-content",
|
|
56
|
-
className:
|
|
56
|
+
className: j("px-(--card-spacing)", e),
|
|
57
57
|
...t
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function pe({ className: e, ...t }) {
|
|
61
61
|
return /* @__PURE__ */ i("div", {
|
|
62
62
|
"data-slot": "card-footer",
|
|
63
|
-
className:
|
|
63
|
+
className: j("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)", e),
|
|
64
64
|
...t
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/components/auth-card.tsx
|
|
69
|
-
function
|
|
69
|
+
function me({ action: e, children: t, className: n, wide: r = !1 }) {
|
|
70
70
|
return /* @__PURE__ */ i("main", {
|
|
71
71
|
className: "flex min-h-svh items-center justify-center p-6",
|
|
72
|
-
children: /* @__PURE__ */ a(
|
|
73
|
-
className:
|
|
72
|
+
children: /* @__PURE__ */ a(se, {
|
|
73
|
+
className: j(r ? "w-full max-w-md" : "w-full max-w-sm", "relative", e && "[&>[data-slot=card-header]]:pe-14", n),
|
|
74
74
|
children: [e ? /* @__PURE__ */ i("div", {
|
|
75
75
|
className: "absolute top-2 end-2 z-10",
|
|
76
76
|
children: e
|
|
@@ -78,7 +78,7 @@ function ge({ action: e, children: t, className: n, wide: r = !1 }) {
|
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function he({ legal: e }) {
|
|
82
82
|
return !e?.privacy && !e?.terms ? null : /* @__PURE__ */ a("p", {
|
|
83
83
|
className: "text-xs leading-5 text-muted-foreground",
|
|
84
84
|
children: [
|
|
@@ -108,28 +108,28 @@ function _e({ legal: e }) {
|
|
|
108
108
|
}
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/components/ui/input-otp.tsx
|
|
111
|
-
function
|
|
111
|
+
function M({ className: e, containerClassName: t, ...n }) {
|
|
112
112
|
return /* @__PURE__ */ i(o, {
|
|
113
113
|
"data-slot": "input-otp",
|
|
114
|
-
containerClassName:
|
|
114
|
+
containerClassName: j("flex items-center has-disabled:opacity-50", t),
|
|
115
115
|
spellCheck: !1,
|
|
116
|
-
className:
|
|
116
|
+
className: j("disabled:cursor-not-allowed", e),
|
|
117
117
|
...n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function N({ className: e, ...t }) {
|
|
121
121
|
return /* @__PURE__ */ i("div", {
|
|
122
122
|
"data-slot": "input-otp-group",
|
|
123
|
-
className:
|
|
123
|
+
className: j("flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40", e),
|
|
124
124
|
...t
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function P({ index: t, className: n, ...r }) {
|
|
128
128
|
let { char: o, hasFakeCaret: c, isActive: l } = e.useContext(s)?.slots[t] ?? {};
|
|
129
129
|
return /* @__PURE__ */ a("div", {
|
|
130
130
|
"data-slot": "input-otp-slot",
|
|
131
131
|
"data-active": l,
|
|
132
|
-
className:
|
|
132
|
+
className: j("relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40", n),
|
|
133
133
|
...r,
|
|
134
134
|
children: [o, c ? /* @__PURE__ */ i("div", {
|
|
135
135
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
@@ -139,27 +139,27 @@ function j({ index: t, className: n, ...r }) {
|
|
|
139
139
|
}
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region src/components/one-time-code-input.tsx
|
|
142
|
-
function
|
|
143
|
-
return /* @__PURE__ */ i(
|
|
142
|
+
function ge(e) {
|
|
143
|
+
return /* @__PURE__ */ i(M, {
|
|
144
144
|
"aria-label": "One-time code",
|
|
145
145
|
containerClassName: "justify-center",
|
|
146
146
|
maxLength: 6,
|
|
147
147
|
minLength: 6,
|
|
148
148
|
pattern: c,
|
|
149
149
|
...e,
|
|
150
|
-
children: /* @__PURE__ */ a(
|
|
151
|
-
/* @__PURE__ */ i(
|
|
152
|
-
/* @__PURE__ */ i(
|
|
153
|
-
/* @__PURE__ */ i(
|
|
154
|
-
/* @__PURE__ */ i(
|
|
155
|
-
/* @__PURE__ */ i(
|
|
156
|
-
/* @__PURE__ */ i(
|
|
150
|
+
children: /* @__PURE__ */ a(N, { children: [
|
|
151
|
+
/* @__PURE__ */ i(P, { index: 0 }),
|
|
152
|
+
/* @__PURE__ */ i(P, { index: 1 }),
|
|
153
|
+
/* @__PURE__ */ i(P, { index: 2 }),
|
|
154
|
+
/* @__PURE__ */ i(P, { index: 3 }),
|
|
155
|
+
/* @__PURE__ */ i(P, { index: 4 }),
|
|
156
|
+
/* @__PURE__ */ i(P, { index: 5 })
|
|
157
157
|
] })
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region src/components/ui/button.tsx
|
|
162
|
-
var
|
|
162
|
+
var F = y("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
163
163
|
variants: {
|
|
164
164
|
variant: {
|
|
165
165
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
@@ -185,13 +185,13 @@ var M = x("group/button inline-flex shrink-0 items-center justify-center rounded
|
|
|
185
185
|
size: "default"
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
|
-
function
|
|
189
|
-
let o = r ?
|
|
188
|
+
function I({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...a }) {
|
|
189
|
+
let o = r ? D.Root : "button";
|
|
190
190
|
return /* @__PURE__ */ i(o, {
|
|
191
191
|
"data-slot": "button",
|
|
192
192
|
"data-variant": t,
|
|
193
193
|
"data-size": n,
|
|
194
|
-
className:
|
|
194
|
+
className: j(F({
|
|
195
195
|
variant: t,
|
|
196
196
|
size: n,
|
|
197
197
|
className: e
|
|
@@ -200,147 +200,326 @@ function N({ className: e, variant: t = "default", size: n = "default", asChild:
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
//#endregion
|
|
203
|
+
//#region src/components/ui/input.tsx
|
|
204
|
+
function L({ className: e, type: t, ...n }) {
|
|
205
|
+
return /* @__PURE__ */ i("input", {
|
|
206
|
+
type: t,
|
|
207
|
+
"data-slot": "input",
|
|
208
|
+
className: j("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
209
|
+
...n
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/components/sign-in-flow.tsx
|
|
214
|
+
function R(e) {
|
|
215
|
+
return !e.current && (e.current = !0, !0);
|
|
216
|
+
}
|
|
217
|
+
function z({ busy: e, children: t, disabled: n, ...r }) {
|
|
218
|
+
return /* @__PURE__ */ a(I, {
|
|
219
|
+
...r,
|
|
220
|
+
disabled: e || n,
|
|
221
|
+
"aria-busy": e || void 0,
|
|
222
|
+
children: [e ? /* @__PURE__ */ i(g, {
|
|
223
|
+
className: "animate-spin",
|
|
224
|
+
"aria-hidden": !0
|
|
225
|
+
}) : null, t]
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
var B = Object.freeze({
|
|
229
|
+
step: "email",
|
|
230
|
+
email: "",
|
|
231
|
+
otp: "",
|
|
232
|
+
busy: !1,
|
|
233
|
+
error: null
|
|
234
|
+
});
|
|
235
|
+
function V(e, t) {
|
|
236
|
+
switch (t.type) {
|
|
237
|
+
case "email": return {
|
|
238
|
+
...e,
|
|
239
|
+
email: t.value
|
|
240
|
+
};
|
|
241
|
+
case "otp": return {
|
|
242
|
+
...e,
|
|
243
|
+
otp: t.value
|
|
244
|
+
};
|
|
245
|
+
case "start": return {
|
|
246
|
+
...e,
|
|
247
|
+
busy: !0,
|
|
248
|
+
error: null
|
|
249
|
+
};
|
|
250
|
+
case "sent": return t.error ? {
|
|
251
|
+
...e,
|
|
252
|
+
busy: !1,
|
|
253
|
+
error: t.error
|
|
254
|
+
} : {
|
|
255
|
+
...e,
|
|
256
|
+
busy: !1,
|
|
257
|
+
step: "otp"
|
|
258
|
+
};
|
|
259
|
+
case "verified": return t.error ? {
|
|
260
|
+
...e,
|
|
261
|
+
busy: !1,
|
|
262
|
+
error: t.error
|
|
263
|
+
} : e;
|
|
264
|
+
case "failed": return {
|
|
265
|
+
...e,
|
|
266
|
+
busy: !1,
|
|
267
|
+
error: t.error
|
|
268
|
+
};
|
|
269
|
+
case "back": return {
|
|
270
|
+
...e,
|
|
271
|
+
step: "email",
|
|
272
|
+
otp: "",
|
|
273
|
+
error: null,
|
|
274
|
+
busy: !1
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
function _e({ labels: t, onSendCode: n, onVerifyCode: r, className: o, idPrefix: s = "signin" }) {
|
|
279
|
+
let [c, l] = e.useReducer(V, B), { step: u, email: d, otp: f, busy: p, error: m } = c, h = e.useRef(!1), g = (e, n) => {
|
|
280
|
+
!p && R(h) && (l({ type: "start" }), Promise.resolve().then(e).then((e) => {
|
|
281
|
+
l(e?.error ? {
|
|
282
|
+
type: n,
|
|
283
|
+
error: e.error
|
|
284
|
+
} : { type: n }), (n !== "verified" || e?.error) && (h.current = !1);
|
|
285
|
+
}).catch(() => {
|
|
286
|
+
l({
|
|
287
|
+
type: "failed",
|
|
288
|
+
error: t.requestFailed
|
|
289
|
+
}), h.current = !1;
|
|
290
|
+
}));
|
|
291
|
+
}, _ = (e) => {
|
|
292
|
+
e.preventDefault(), d && g(() => n(d), "sent");
|
|
293
|
+
}, v = (e) => {
|
|
294
|
+
e.length === 6 && g(() => r(d, e), "verified");
|
|
295
|
+
};
|
|
296
|
+
return /* @__PURE__ */ a("div", {
|
|
297
|
+
className: o,
|
|
298
|
+
children: [
|
|
299
|
+
/* @__PURE__ */ i("p", {
|
|
300
|
+
className: "mb-2 text-sm text-muted-foreground",
|
|
301
|
+
children: t.description
|
|
302
|
+
}),
|
|
303
|
+
u === "email" ? /* @__PURE__ */ a("form", {
|
|
304
|
+
onSubmit: _,
|
|
305
|
+
className: "space-y-2",
|
|
306
|
+
children: [
|
|
307
|
+
/* @__PURE__ */ i("label", {
|
|
308
|
+
htmlFor: `${s}-email`,
|
|
309
|
+
className: "sr-only",
|
|
310
|
+
children: t.emailLabel
|
|
311
|
+
}),
|
|
312
|
+
/* @__PURE__ */ i(L, {
|
|
313
|
+
id: `${s}-email`,
|
|
314
|
+
type: "email",
|
|
315
|
+
value: d,
|
|
316
|
+
onChange: (e) => l({
|
|
317
|
+
type: "email",
|
|
318
|
+
value: e.currentTarget.value
|
|
319
|
+
}),
|
|
320
|
+
placeholder: t.emailPlaceholder,
|
|
321
|
+
required: !0,
|
|
322
|
+
autoComplete: "email"
|
|
323
|
+
}),
|
|
324
|
+
/* @__PURE__ */ i(z, {
|
|
325
|
+
type: "submit",
|
|
326
|
+
className: "w-full",
|
|
327
|
+
busy: p,
|
|
328
|
+
disabled: !d,
|
|
329
|
+
children: t.sendButton
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
}) : /* @__PURE__ */ a("form", {
|
|
333
|
+
onSubmit: (e) => {
|
|
334
|
+
e.preventDefault(), v(f);
|
|
335
|
+
},
|
|
336
|
+
className: "space-y-2",
|
|
337
|
+
children: [
|
|
338
|
+
/* @__PURE__ */ i("p", {
|
|
339
|
+
className: "text-xs text-muted-foreground",
|
|
340
|
+
children: t.sentTo(d)
|
|
341
|
+
}),
|
|
342
|
+
/* @__PURE__ */ i(ge, {
|
|
343
|
+
id: `${s}-otp`,
|
|
344
|
+
"aria-label": t.otpLabel,
|
|
345
|
+
autoComplete: "one-time-code",
|
|
346
|
+
autoFocus: !0,
|
|
347
|
+
disabled: p,
|
|
348
|
+
value: f,
|
|
349
|
+
onChange: (e) => l({
|
|
350
|
+
type: "otp",
|
|
351
|
+
value: e
|
|
352
|
+
}),
|
|
353
|
+
onComplete: v,
|
|
354
|
+
required: !0
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ i(z, {
|
|
357
|
+
type: "submit",
|
|
358
|
+
className: "w-full",
|
|
359
|
+
busy: p,
|
|
360
|
+
disabled: f.length !== 6,
|
|
361
|
+
children: t.verifyButton
|
|
362
|
+
}),
|
|
363
|
+
/* @__PURE__ */ i("button", {
|
|
364
|
+
type: "button",
|
|
365
|
+
onClick: () => {
|
|
366
|
+
h.current = !1, l({ type: "back" });
|
|
367
|
+
},
|
|
368
|
+
className: "text-xs text-muted-foreground underline-offset-2 hover:underline",
|
|
369
|
+
children: t.useAnotherEmail
|
|
370
|
+
})
|
|
371
|
+
]
|
|
372
|
+
}),
|
|
373
|
+
m ? /* @__PURE__ */ i("p", {
|
|
374
|
+
className: "mt-2 text-xs text-destructive",
|
|
375
|
+
role: "alert",
|
|
376
|
+
children: m
|
|
377
|
+
}) : null
|
|
378
|
+
]
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
//#endregion
|
|
203
382
|
//#region src/components/ui/alert-dialog.tsx
|
|
204
|
-
function
|
|
205
|
-
return /* @__PURE__ */ i(
|
|
383
|
+
function ve({ ...e }) {
|
|
384
|
+
return /* @__PURE__ */ i(b.Root, {
|
|
206
385
|
"data-slot": "alert-dialog",
|
|
207
386
|
...e
|
|
208
387
|
});
|
|
209
388
|
}
|
|
210
|
-
function
|
|
211
|
-
return /* @__PURE__ */ i(
|
|
389
|
+
function ye({ ...e }) {
|
|
390
|
+
return /* @__PURE__ */ i(b.Trigger, {
|
|
212
391
|
"data-slot": "alert-dialog-trigger",
|
|
213
392
|
...e
|
|
214
393
|
});
|
|
215
394
|
}
|
|
216
|
-
function
|
|
217
|
-
return /* @__PURE__ */ i(
|
|
395
|
+
function H({ ...e }) {
|
|
396
|
+
return /* @__PURE__ */ i(b.Portal, {
|
|
218
397
|
"data-slot": "alert-dialog-portal",
|
|
219
398
|
...e
|
|
220
399
|
});
|
|
221
400
|
}
|
|
222
|
-
function
|
|
223
|
-
return /* @__PURE__ */ i(
|
|
401
|
+
function U({ className: e, ...t }) {
|
|
402
|
+
return /* @__PURE__ */ i(b.Overlay, {
|
|
224
403
|
"data-slot": "alert-dialog-overlay",
|
|
225
|
-
className:
|
|
404
|
+
className: j("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
226
405
|
...t
|
|
227
406
|
});
|
|
228
407
|
}
|
|
229
|
-
function
|
|
230
|
-
return /* @__PURE__ */ a(
|
|
408
|
+
function be({ className: e, size: t = "default", ...n }) {
|
|
409
|
+
return /* @__PURE__ */ a(H, { children: [/* @__PURE__ */ i(U, {}), /* @__PURE__ */ i(b.Content, {
|
|
231
410
|
"data-slot": "alert-dialog-content",
|
|
232
411
|
"data-size": t,
|
|
233
|
-
className:
|
|
412
|
+
className: j("group/alert-dialog-content fixed top-1/2 start-1/2 z-50 grid w-full -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
234
413
|
...n
|
|
235
414
|
})] });
|
|
236
415
|
}
|
|
237
|
-
function
|
|
416
|
+
function xe({ className: e, ...t }) {
|
|
238
417
|
return /* @__PURE__ */ i("div", {
|
|
239
418
|
"data-slot": "alert-dialog-header",
|
|
240
|
-
className:
|
|
419
|
+
className: j("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
|
|
241
420
|
...t
|
|
242
421
|
});
|
|
243
422
|
}
|
|
244
|
-
function
|
|
423
|
+
function Se({ className: e, ...t }) {
|
|
245
424
|
return /* @__PURE__ */ i("div", {
|
|
246
425
|
"data-slot": "alert-dialog-footer",
|
|
247
|
-
className:
|
|
426
|
+
className: j("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
248
427
|
...t
|
|
249
428
|
});
|
|
250
429
|
}
|
|
251
|
-
function
|
|
430
|
+
function Ce({ className: e, ...t }) {
|
|
252
431
|
return /* @__PURE__ */ i("div", {
|
|
253
432
|
"data-slot": "alert-dialog-media",
|
|
254
|
-
className:
|
|
433
|
+
className: j("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6", e),
|
|
255
434
|
...t
|
|
256
435
|
});
|
|
257
436
|
}
|
|
258
|
-
function
|
|
259
|
-
return /* @__PURE__ */ i(
|
|
437
|
+
function we({ className: e, ...t }) {
|
|
438
|
+
return /* @__PURE__ */ i(b.Title, {
|
|
260
439
|
"data-slot": "alert-dialog-title",
|
|
261
|
-
className:
|
|
440
|
+
className: j("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
262
441
|
...t
|
|
263
442
|
});
|
|
264
443
|
}
|
|
265
|
-
function
|
|
266
|
-
return /* @__PURE__ */ i(
|
|
444
|
+
function Te({ className: e, ...t }) {
|
|
445
|
+
return /* @__PURE__ */ i(b.Description, {
|
|
267
446
|
"data-slot": "alert-dialog-description",
|
|
268
|
-
className:
|
|
447
|
+
className: j("text-sm text-balance text-muted-foreground dark:text-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
269
448
|
...t
|
|
270
449
|
});
|
|
271
450
|
}
|
|
272
|
-
function
|
|
273
|
-
return /* @__PURE__ */ i(
|
|
451
|
+
function Ee({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
452
|
+
return /* @__PURE__ */ i(I, {
|
|
274
453
|
variant: t,
|
|
275
454
|
size: n,
|
|
276
455
|
asChild: !0,
|
|
277
|
-
children: /* @__PURE__ */ i(
|
|
456
|
+
children: /* @__PURE__ */ i(b.Action, {
|
|
278
457
|
"data-slot": "alert-dialog-action",
|
|
279
|
-
className:
|
|
458
|
+
className: j(e),
|
|
280
459
|
...r
|
|
281
460
|
})
|
|
282
461
|
});
|
|
283
462
|
}
|
|
284
|
-
function
|
|
285
|
-
return /* @__PURE__ */ i(
|
|
463
|
+
function De({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
464
|
+
return /* @__PURE__ */ i(I, {
|
|
286
465
|
variant: t,
|
|
287
466
|
size: n,
|
|
288
467
|
asChild: !0,
|
|
289
|
-
children: /* @__PURE__ */ i(
|
|
468
|
+
children: /* @__PURE__ */ i(b.Cancel, {
|
|
290
469
|
"data-slot": "alert-dialog-cancel",
|
|
291
|
-
className:
|
|
470
|
+
className: j(e),
|
|
292
471
|
...r
|
|
293
472
|
})
|
|
294
473
|
});
|
|
295
474
|
}
|
|
296
475
|
//#endregion
|
|
297
476
|
//#region src/components/ui/avatar.tsx
|
|
298
|
-
function
|
|
299
|
-
return /* @__PURE__ */ i(
|
|
477
|
+
function Oe({ className: e, size: t = "default", ...n }) {
|
|
478
|
+
return /* @__PURE__ */ i(x.Root, {
|
|
300
479
|
"data-slot": "avatar",
|
|
301
480
|
"data-size": t,
|
|
302
|
-
className:
|
|
481
|
+
className: j("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten", e),
|
|
303
482
|
...n
|
|
304
483
|
});
|
|
305
484
|
}
|
|
306
|
-
function
|
|
307
|
-
return /* @__PURE__ */ i(
|
|
485
|
+
function ke({ className: e, ...t }) {
|
|
486
|
+
return /* @__PURE__ */ i(x.Image, {
|
|
308
487
|
"data-slot": "avatar-image",
|
|
309
|
-
className:
|
|
488
|
+
className: j("aspect-square size-full rounded-full object-cover", e),
|
|
310
489
|
...t
|
|
311
490
|
});
|
|
312
491
|
}
|
|
313
|
-
function
|
|
314
|
-
return /* @__PURE__ */ i(
|
|
492
|
+
function Ae({ className: e, ...t }) {
|
|
493
|
+
return /* @__PURE__ */ i(x.Fallback, {
|
|
315
494
|
"data-slot": "avatar-fallback",
|
|
316
|
-
className:
|
|
495
|
+
className: j("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs", e),
|
|
317
496
|
...t
|
|
318
497
|
});
|
|
319
498
|
}
|
|
320
|
-
function
|
|
499
|
+
function je({ className: e, ...t }) {
|
|
321
500
|
return /* @__PURE__ */ i("span", {
|
|
322
501
|
"data-slot": "avatar-badge",
|
|
323
|
-
className:
|
|
502
|
+
className: j("absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", e),
|
|
324
503
|
...t
|
|
325
504
|
});
|
|
326
505
|
}
|
|
327
|
-
function
|
|
506
|
+
function Me({ className: e, ...t }) {
|
|
328
507
|
return /* @__PURE__ */ i("div", {
|
|
329
508
|
"data-slot": "avatar-group",
|
|
330
|
-
className:
|
|
509
|
+
className: j("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background", e),
|
|
331
510
|
...t
|
|
332
511
|
});
|
|
333
512
|
}
|
|
334
|
-
function
|
|
513
|
+
function Ne({ className: e, ...t }) {
|
|
335
514
|
return /* @__PURE__ */ i("div", {
|
|
336
515
|
"data-slot": "avatar-group-count",
|
|
337
|
-
className:
|
|
516
|
+
className: j("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", e),
|
|
338
517
|
...t
|
|
339
518
|
});
|
|
340
519
|
}
|
|
341
520
|
//#endregion
|
|
342
521
|
//#region src/components/ui/badge.tsx
|
|
343
|
-
var
|
|
522
|
+
var W = y("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
344
523
|
variants: { variant: {
|
|
345
524
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
346
525
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
@@ -351,73 +530,73 @@ var I = x("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-cente
|
|
|
351
530
|
} },
|
|
352
531
|
defaultVariants: { variant: "default" }
|
|
353
532
|
});
|
|
354
|
-
function
|
|
355
|
-
let a = n ?
|
|
533
|
+
function Pe({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
534
|
+
let a = n ? D.Root : "span";
|
|
356
535
|
return /* @__PURE__ */ i(a, {
|
|
357
536
|
"data-slot": "badge",
|
|
358
537
|
"data-variant": t,
|
|
359
|
-
className:
|
|
538
|
+
className: j(W({ variant: t }), e),
|
|
360
539
|
...r
|
|
361
540
|
});
|
|
362
541
|
}
|
|
363
542
|
//#endregion
|
|
364
543
|
//#region src/components/ui/breadcrumb.tsx
|
|
365
|
-
function
|
|
544
|
+
function Fe({ className: e, ...t }) {
|
|
366
545
|
return /* @__PURE__ */ i("nav", {
|
|
367
546
|
"data-slot": "breadcrumb",
|
|
368
|
-
className:
|
|
547
|
+
className: j(e),
|
|
369
548
|
...t
|
|
370
549
|
});
|
|
371
550
|
}
|
|
372
|
-
function
|
|
551
|
+
function Ie({ className: e, ...t }) {
|
|
373
552
|
return /* @__PURE__ */ i("ol", {
|
|
374
553
|
"data-slot": "breadcrumb-list",
|
|
375
|
-
className:
|
|
554
|
+
className: j("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground", e),
|
|
376
555
|
...t
|
|
377
556
|
});
|
|
378
557
|
}
|
|
379
|
-
function
|
|
558
|
+
function Le({ className: e, ...t }) {
|
|
380
559
|
return /* @__PURE__ */ i("li", {
|
|
381
560
|
"data-slot": "breadcrumb-item",
|
|
382
|
-
className:
|
|
561
|
+
className: j("inline-flex items-center gap-1", e),
|
|
383
562
|
...t
|
|
384
563
|
});
|
|
385
564
|
}
|
|
386
|
-
function
|
|
387
|
-
let r = e ?
|
|
565
|
+
function Re({ asChild: e, className: t, ...n }) {
|
|
566
|
+
let r = e ? D.Root : "a";
|
|
388
567
|
return /* @__PURE__ */ i(r, {
|
|
389
568
|
"data-slot": "breadcrumb-link",
|
|
390
|
-
className:
|
|
569
|
+
className: j("transition-colors hover:text-foreground", t),
|
|
391
570
|
...n
|
|
392
571
|
});
|
|
393
572
|
}
|
|
394
|
-
function
|
|
573
|
+
function ze({ className: e, ...t }) {
|
|
395
574
|
return /* @__PURE__ */ i("span", {
|
|
396
575
|
"data-slot": "breadcrumb-page",
|
|
397
576
|
role: "link",
|
|
398
577
|
"aria-disabled": "true",
|
|
399
578
|
"aria-current": "page",
|
|
400
|
-
className:
|
|
579
|
+
className: j("font-normal text-foreground", e),
|
|
401
580
|
...t
|
|
402
581
|
});
|
|
403
582
|
}
|
|
404
|
-
function
|
|
583
|
+
function Be({ children: e, className: t, ...n }) {
|
|
405
584
|
return /* @__PURE__ */ i("li", {
|
|
406
585
|
"data-slot": "breadcrumb-separator",
|
|
407
586
|
role: "presentation",
|
|
408
587
|
"aria-hidden": "true",
|
|
409
|
-
className:
|
|
588
|
+
className: j("[&>svg]:size-3.5", t),
|
|
410
589
|
...n,
|
|
411
|
-
children: e ?? /* @__PURE__ */ i(
|
|
590
|
+
children: e ?? /* @__PURE__ */ i(f, { className: "rtl:rotate-180" })
|
|
412
591
|
});
|
|
413
592
|
}
|
|
414
593
|
//#endregion
|
|
415
594
|
//#region src/components/ui/calendar.tsx
|
|
416
|
-
function
|
|
417
|
-
let
|
|
418
|
-
return /* @__PURE__ */ i(
|
|
595
|
+
function Ve({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: a = "ghost", locale: o, formatters: s, components: c, ...l }) {
|
|
596
|
+
let p = A();
|
|
597
|
+
return /* @__PURE__ */ i(ae, {
|
|
419
598
|
showOutsideDays: n,
|
|
420
|
-
className:
|
|
599
|
+
className: j("group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
421
600
|
captionLayout: r,
|
|
422
601
|
locale: o,
|
|
423
602
|
formatters: {
|
|
@@ -425,51 +604,51 @@ function Ue({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
425
604
|
...s
|
|
426
605
|
},
|
|
427
606
|
classNames: {
|
|
428
|
-
root:
|
|
429
|
-
months:
|
|
430
|
-
month:
|
|
431
|
-
nav:
|
|
432
|
-
button_previous:
|
|
433
|
-
button_next:
|
|
434
|
-
month_caption:
|
|
435
|
-
dropdowns:
|
|
436
|
-
dropdown_root:
|
|
437
|
-
dropdown:
|
|
438
|
-
caption_label:
|
|
439
|
-
month_grid:
|
|
440
|
-
weekdays:
|
|
441
|
-
weekday:
|
|
442
|
-
week:
|
|
443
|
-
week_number_header:
|
|
444
|
-
week_number:
|
|
445
|
-
day:
|
|
446
|
-
range_start:
|
|
447
|
-
range_middle:
|
|
448
|
-
range_end:
|
|
449
|
-
today:
|
|
450
|
-
outside:
|
|
451
|
-
disabled:
|
|
452
|
-
hidden:
|
|
607
|
+
root: j("w-fit", p.root),
|
|
608
|
+
months: j("relative flex flex-col gap-4 md:flex-row", p.months),
|
|
609
|
+
month: j("flex w-full flex-col gap-4", p.month),
|
|
610
|
+
nav: j("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", p.nav),
|
|
611
|
+
button_previous: j(F({ variant: a }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", p.button_previous),
|
|
612
|
+
button_next: j(F({ variant: a }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", p.button_next),
|
|
613
|
+
month_caption: j("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", p.month_caption),
|
|
614
|
+
dropdowns: j("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", p.dropdowns),
|
|
615
|
+
dropdown_root: j("relative rounded-(--cell-radius)", p.dropdown_root),
|
|
616
|
+
dropdown: j("absolute inset-0 bg-popover opacity-0", p.dropdown),
|
|
617
|
+
caption_label: j("font-medium select-none", r === "label" ? "text-sm" : "flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground", p.caption_label),
|
|
618
|
+
month_grid: j("w-full border-collapse", p.month_grid),
|
|
619
|
+
weekdays: j("flex", p.weekdays),
|
|
620
|
+
weekday: j("flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none", p.weekday),
|
|
621
|
+
week: j("mt-2 flex w-full", p.week),
|
|
622
|
+
week_number_header: j("w-(--cell-size) select-none", p.week_number_header),
|
|
623
|
+
week_number: j("text-[0.8rem] text-muted-foreground select-none", p.week_number),
|
|
624
|
+
day: j("group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)", l.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-s-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius)", p.day),
|
|
625
|
+
range_start: j("relative isolate z-0 rounded-s-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:end-0 after:w-4 after:bg-muted", p.range_start),
|
|
626
|
+
range_middle: j("rounded-none", p.range_middle),
|
|
627
|
+
range_end: j("relative isolate z-0 rounded-e-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:start-0 after:w-4 after:bg-muted", p.range_end),
|
|
628
|
+
today: j("rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none", p.today),
|
|
629
|
+
outside: j("text-muted-foreground aria-selected:text-muted-foreground", p.outside),
|
|
630
|
+
disabled: j("text-muted-foreground opacity-50", p.disabled),
|
|
631
|
+
hidden: j("invisible", p.hidden),
|
|
453
632
|
...t
|
|
454
633
|
},
|
|
455
634
|
components: {
|
|
456
635
|
Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ i("div", {
|
|
457
636
|
"data-slot": "calendar",
|
|
458
637
|
ref: t,
|
|
459
|
-
className:
|
|
638
|
+
className: j(e),
|
|
460
639
|
...n
|
|
461
640
|
}),
|
|
462
|
-
Chevron: ({ className: e, orientation: t, ...n }) => t === "left" ? /* @__PURE__ */ i(
|
|
463
|
-
className:
|
|
641
|
+
Chevron: ({ className: e, orientation: t, ...n }) => t === "left" ? /* @__PURE__ */ i(d, {
|
|
642
|
+
className: j("rtl:rotate-180 size-4", e),
|
|
464
643
|
...n
|
|
465
|
-
}) : t === "right" ? /* @__PURE__ */ i(
|
|
466
|
-
className:
|
|
644
|
+
}) : t === "right" ? /* @__PURE__ */ i(f, {
|
|
645
|
+
className: j("rtl:rotate-180 size-4", e),
|
|
467
646
|
...n
|
|
468
|
-
}) : /* @__PURE__ */ i(
|
|
469
|
-
className:
|
|
647
|
+
}) : /* @__PURE__ */ i(u, {
|
|
648
|
+
className: j("size-4", e),
|
|
470
649
|
...n
|
|
471
650
|
}),
|
|
472
|
-
DayButton: ({ ...e }) => /* @__PURE__ */ i(
|
|
651
|
+
DayButton: ({ ...e }) => /* @__PURE__ */ i(G, {
|
|
473
652
|
locale: o,
|
|
474
653
|
...e
|
|
475
654
|
}),
|
|
@@ -485,11 +664,11 @@ function Ue({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
485
664
|
...l
|
|
486
665
|
});
|
|
487
666
|
}
|
|
488
|
-
function
|
|
489
|
-
let s =
|
|
667
|
+
function G({ className: t, day: n, modifiers: r, locale: a, ...o }) {
|
|
668
|
+
let s = A(), c = e.useRef(null);
|
|
490
669
|
return e.useEffect(() => {
|
|
491
670
|
r.focused && c.current?.focus();
|
|
492
|
-
}, [r.focused]), /* @__PURE__ */ i(
|
|
671
|
+
}, [r.focused]), /* @__PURE__ */ i(I, {
|
|
493
672
|
ref: c,
|
|
494
673
|
variant: "ghost",
|
|
495
674
|
size: "icon",
|
|
@@ -498,90 +677,90 @@ function L({ className: t, day: n, modifiers: r, locale: a, ...o }) {
|
|
|
498
677
|
"data-range-start": r.range_start,
|
|
499
678
|
"data-range-end": r.range_end,
|
|
500
679
|
"data-range-middle": r.range_middle,
|
|
501
|
-
className:
|
|
680
|
+
className: j("relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70", s.day, t),
|
|
502
681
|
...o
|
|
503
682
|
});
|
|
504
683
|
}
|
|
505
684
|
//#endregion
|
|
506
685
|
//#region src/components/ui/checkbox.tsx
|
|
507
|
-
function
|
|
508
|
-
return /* @__PURE__ */ i(
|
|
686
|
+
function He({ className: e, ...t }) {
|
|
687
|
+
return /* @__PURE__ */ i(ne.Root, {
|
|
509
688
|
"data-slot": "checkbox",
|
|
510
|
-
className:
|
|
689
|
+
className: j("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
|
|
511
690
|
...t,
|
|
512
|
-
children: /* @__PURE__ */ i(
|
|
691
|
+
children: /* @__PURE__ */ i(ne.Indicator, {
|
|
513
692
|
"data-slot": "checkbox-indicator",
|
|
514
693
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
515
|
-
children: /* @__PURE__ */ i(
|
|
694
|
+
children: /* @__PURE__ */ i(l, {})
|
|
516
695
|
})
|
|
517
696
|
});
|
|
518
697
|
}
|
|
519
698
|
//#endregion
|
|
520
699
|
//#region src/components/ui/collapsible.tsx
|
|
521
|
-
function
|
|
522
|
-
return /* @__PURE__ */ i(
|
|
700
|
+
function Ue({ ...e }) {
|
|
701
|
+
return /* @__PURE__ */ i(S.Root, {
|
|
523
702
|
"data-slot": "collapsible",
|
|
524
703
|
...e
|
|
525
704
|
});
|
|
526
705
|
}
|
|
527
|
-
function
|
|
528
|
-
return /* @__PURE__ */ i(
|
|
706
|
+
function We({ ...e }) {
|
|
707
|
+
return /* @__PURE__ */ i(S.CollapsibleTrigger, {
|
|
529
708
|
"data-slot": "collapsible-trigger",
|
|
530
709
|
...e
|
|
531
710
|
});
|
|
532
711
|
}
|
|
533
|
-
function
|
|
534
|
-
return /* @__PURE__ */ i(
|
|
712
|
+
function Ge({ ...e }) {
|
|
713
|
+
return /* @__PURE__ */ i(S.CollapsibleContent, {
|
|
535
714
|
"data-slot": "collapsible-content",
|
|
536
715
|
...e
|
|
537
716
|
});
|
|
538
717
|
}
|
|
539
718
|
//#endregion
|
|
540
719
|
//#region src/components/ui/dialog.tsx
|
|
541
|
-
function
|
|
542
|
-
return /* @__PURE__ */ i(
|
|
720
|
+
function Ke({ ...e }) {
|
|
721
|
+
return /* @__PURE__ */ i(C.Root, {
|
|
543
722
|
"data-slot": "dialog",
|
|
544
723
|
...e
|
|
545
724
|
});
|
|
546
725
|
}
|
|
547
|
-
function
|
|
548
|
-
return /* @__PURE__ */ i(
|
|
726
|
+
function qe({ ...e }) {
|
|
727
|
+
return /* @__PURE__ */ i(C.Trigger, {
|
|
549
728
|
"data-slot": "dialog-trigger",
|
|
550
729
|
...e
|
|
551
730
|
});
|
|
552
731
|
}
|
|
553
|
-
function
|
|
554
|
-
return /* @__PURE__ */ i(
|
|
732
|
+
function K({ ...e }) {
|
|
733
|
+
return /* @__PURE__ */ i(C.Portal, {
|
|
555
734
|
"data-slot": "dialog-portal",
|
|
556
735
|
...e
|
|
557
736
|
});
|
|
558
737
|
}
|
|
559
|
-
function
|
|
560
|
-
return /* @__PURE__ */ i(
|
|
738
|
+
function Je({ ...e }) {
|
|
739
|
+
return /* @__PURE__ */ i(C.Close, {
|
|
561
740
|
"data-slot": "dialog-close",
|
|
562
741
|
...e
|
|
563
742
|
});
|
|
564
743
|
}
|
|
565
|
-
function
|
|
566
|
-
return /* @__PURE__ */ i(
|
|
744
|
+
function q({ className: e, ...t }) {
|
|
745
|
+
return /* @__PURE__ */ i(C.Overlay, {
|
|
567
746
|
"data-slot": "dialog-overlay",
|
|
568
|
-
className:
|
|
747
|
+
className: j("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
569
748
|
...t
|
|
570
749
|
});
|
|
571
750
|
}
|
|
572
|
-
function
|
|
573
|
-
return /* @__PURE__ */ a(
|
|
751
|
+
function Ye({ className: e, children: t, showCloseButton: n = !0, closeLabel: r, ...o }) {
|
|
752
|
+
return /* @__PURE__ */ a(K, { children: [/* @__PURE__ */ i(q, {}), /* @__PURE__ */ a(C.Content, {
|
|
574
753
|
"data-slot": "dialog-content",
|
|
575
|
-
className:
|
|
754
|
+
className: j("fixed top-1/2 start-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
576
755
|
...o,
|
|
577
|
-
children: [t, n && /* @__PURE__ */ i(
|
|
756
|
+
children: [t, n && /* @__PURE__ */ i(C.Close, {
|
|
578
757
|
"data-slot": "dialog-close",
|
|
579
758
|
asChild: !0,
|
|
580
|
-
children: /* @__PURE__ */ a(
|
|
759
|
+
children: /* @__PURE__ */ a(I, {
|
|
581
760
|
variant: "ghost",
|
|
582
761
|
className: "absolute top-2 end-2",
|
|
583
762
|
size: "icon-sm",
|
|
584
|
-
children: [/* @__PURE__ */ i(
|
|
763
|
+
children: [/* @__PURE__ */ i(te, {}), /* @__PURE__ */ i("span", {
|
|
585
764
|
className: "sr-only",
|
|
586
765
|
children: r
|
|
587
766
|
})]
|
|
@@ -589,204 +768,194 @@ function Ze({ className: e, children: t, showCloseButton: n = !0, closeLabel: r,
|
|
|
589
768
|
})]
|
|
590
769
|
})] });
|
|
591
770
|
}
|
|
592
|
-
function
|
|
771
|
+
function Xe({ className: e, ...t }) {
|
|
593
772
|
return /* @__PURE__ */ i("div", {
|
|
594
773
|
"data-slot": "dialog-header",
|
|
595
|
-
className:
|
|
774
|
+
className: j("flex flex-col gap-2", e),
|
|
596
775
|
...t
|
|
597
776
|
});
|
|
598
777
|
}
|
|
599
|
-
function
|
|
778
|
+
function Ze({ className: e, children: t, ...n }) {
|
|
600
779
|
return /* @__PURE__ */ i("div", {
|
|
601
780
|
"data-slot": "dialog-footer",
|
|
602
|
-
className:
|
|
781
|
+
className: j("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
|
|
603
782
|
...n,
|
|
604
783
|
children: t
|
|
605
784
|
});
|
|
606
785
|
}
|
|
607
|
-
function
|
|
608
|
-
return /* @__PURE__ */ i(
|
|
786
|
+
function Qe({ className: e, ...t }) {
|
|
787
|
+
return /* @__PURE__ */ i(C.Title, {
|
|
609
788
|
"data-slot": "dialog-title",
|
|
610
|
-
className:
|
|
789
|
+
className: j("font-heading text-base leading-none font-medium", e),
|
|
611
790
|
...t
|
|
612
791
|
});
|
|
613
792
|
}
|
|
614
|
-
function
|
|
615
|
-
return /* @__PURE__ */ i(
|
|
793
|
+
function $e({ className: e, ...t }) {
|
|
794
|
+
return /* @__PURE__ */ i(C.Description, {
|
|
616
795
|
"data-slot": "dialog-description",
|
|
617
|
-
className:
|
|
796
|
+
className: j("text-sm text-muted-foreground dark:text-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
618
797
|
...t
|
|
619
798
|
});
|
|
620
799
|
}
|
|
621
800
|
//#endregion
|
|
622
801
|
//#region src/components/ui/dropdown-menu.tsx
|
|
623
|
-
function
|
|
624
|
-
return /* @__PURE__ */ i(
|
|
802
|
+
function et({ ...e }) {
|
|
803
|
+
return /* @__PURE__ */ i(w.Root, {
|
|
625
804
|
"data-slot": "dropdown-menu",
|
|
626
805
|
...e
|
|
627
806
|
});
|
|
628
807
|
}
|
|
629
|
-
function
|
|
630
|
-
return /* @__PURE__ */ i(
|
|
808
|
+
function tt({ ...e }) {
|
|
809
|
+
return /* @__PURE__ */ i(w.Portal, {
|
|
631
810
|
"data-slot": "dropdown-menu-portal",
|
|
632
811
|
...e
|
|
633
812
|
});
|
|
634
813
|
}
|
|
635
|
-
function
|
|
636
|
-
return /* @__PURE__ */ i(
|
|
814
|
+
function nt({ ...e }) {
|
|
815
|
+
return /* @__PURE__ */ i(w.Trigger, {
|
|
637
816
|
"data-slot": "dropdown-menu-trigger",
|
|
638
817
|
...e
|
|
639
818
|
});
|
|
640
819
|
}
|
|
641
|
-
function
|
|
642
|
-
return /* @__PURE__ */ i(
|
|
820
|
+
function rt({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
821
|
+
return /* @__PURE__ */ i(w.Portal, { children: /* @__PURE__ */ i(w.Content, {
|
|
643
822
|
"data-slot": "dropdown-menu-content",
|
|
644
823
|
sideOffset: n,
|
|
645
824
|
align: t,
|
|
646
|
-
className:
|
|
825
|
+
className: j("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
647
826
|
...r
|
|
648
827
|
}) });
|
|
649
828
|
}
|
|
650
|
-
function
|
|
651
|
-
return /* @__PURE__ */ i(
|
|
829
|
+
function it({ ...e }) {
|
|
830
|
+
return /* @__PURE__ */ i(w.Group, {
|
|
652
831
|
"data-slot": "dropdown-menu-group",
|
|
653
832
|
...e
|
|
654
833
|
});
|
|
655
834
|
}
|
|
656
|
-
function
|
|
657
|
-
return /* @__PURE__ */ i(
|
|
835
|
+
function at({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
836
|
+
return /* @__PURE__ */ i(w.Item, {
|
|
658
837
|
"data-slot": "dropdown-menu-item",
|
|
659
838
|
"data-inset": t,
|
|
660
839
|
"data-variant": n,
|
|
661
|
-
className:
|
|
840
|
+
className: j("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", e),
|
|
662
841
|
...r
|
|
663
842
|
});
|
|
664
843
|
}
|
|
665
|
-
function
|
|
666
|
-
return /* @__PURE__ */ a(
|
|
844
|
+
function ot({ className: e, children: t, checked: n, inset: r, ...o }) {
|
|
845
|
+
return /* @__PURE__ */ a(w.CheckboxItem, {
|
|
667
846
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
668
847
|
"data-inset": r,
|
|
669
|
-
className:
|
|
848
|
+
className: j("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
670
849
|
checked: n,
|
|
671
850
|
...o,
|
|
672
851
|
children: [/* @__PURE__ */ i("span", {
|
|
673
852
|
className: "pointer-events-none absolute end-2 flex items-center justify-center",
|
|
674
853
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
675
|
-
children: /* @__PURE__ */ i(
|
|
854
|
+
children: /* @__PURE__ */ i(w.ItemIndicator, { children: /* @__PURE__ */ i(l, {}) })
|
|
676
855
|
}), t]
|
|
677
856
|
});
|
|
678
857
|
}
|
|
679
|
-
function
|
|
680
|
-
return /* @__PURE__ */ i(
|
|
858
|
+
function st({ ...e }) {
|
|
859
|
+
return /* @__PURE__ */ i(w.RadioGroup, {
|
|
681
860
|
"data-slot": "dropdown-menu-radio-group",
|
|
682
861
|
...e
|
|
683
862
|
});
|
|
684
863
|
}
|
|
685
|
-
function
|
|
686
|
-
return /* @__PURE__ */ a(
|
|
864
|
+
function ct({ className: e, children: t, inset: n, ...r }) {
|
|
865
|
+
return /* @__PURE__ */ a(w.RadioItem, {
|
|
687
866
|
"data-slot": "dropdown-menu-radio-item",
|
|
688
867
|
"data-inset": n,
|
|
689
|
-
className:
|
|
868
|
+
className: j("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
690
869
|
...r,
|
|
691
870
|
children: [/* @__PURE__ */ i("span", {
|
|
692
871
|
className: "pointer-events-none absolute end-2 flex items-center justify-center",
|
|
693
872
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
694
|
-
children: /* @__PURE__ */ i(
|
|
873
|
+
children: /* @__PURE__ */ i(w.ItemIndicator, { children: /* @__PURE__ */ i(l, {}) })
|
|
695
874
|
}), t]
|
|
696
875
|
});
|
|
697
876
|
}
|
|
698
|
-
function
|
|
699
|
-
return /* @__PURE__ */ i(
|
|
877
|
+
function lt({ className: e, inset: t, ...n }) {
|
|
878
|
+
return /* @__PURE__ */ i(w.Label, {
|
|
700
879
|
"data-slot": "dropdown-menu-label",
|
|
701
880
|
"data-inset": t,
|
|
702
|
-
className:
|
|
881
|
+
className: j("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:ps-7", e),
|
|
703
882
|
...n
|
|
704
883
|
});
|
|
705
884
|
}
|
|
706
|
-
function
|
|
707
|
-
return /* @__PURE__ */ i(
|
|
885
|
+
function ut({ className: e, ...t }) {
|
|
886
|
+
return /* @__PURE__ */ i(w.Separator, {
|
|
708
887
|
"data-slot": "dropdown-menu-separator",
|
|
709
|
-
className:
|
|
888
|
+
className: j("-mx-1 my-1 h-px bg-border", e),
|
|
710
889
|
...t
|
|
711
890
|
});
|
|
712
891
|
}
|
|
713
|
-
function
|
|
892
|
+
function dt({ className: e, ...t }) {
|
|
714
893
|
return /* @__PURE__ */ i("span", {
|
|
715
894
|
"data-slot": "dropdown-menu-shortcut",
|
|
716
|
-
className:
|
|
895
|
+
className: j("ms-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", e),
|
|
717
896
|
...t
|
|
718
897
|
});
|
|
719
898
|
}
|
|
720
|
-
function
|
|
721
|
-
return /* @__PURE__ */ i(
|
|
899
|
+
function ft({ ...e }) {
|
|
900
|
+
return /* @__PURE__ */ i(w.Sub, {
|
|
722
901
|
"data-slot": "dropdown-menu-sub",
|
|
723
902
|
...e
|
|
724
903
|
});
|
|
725
904
|
}
|
|
726
|
-
function
|
|
727
|
-
return /* @__PURE__ */ a(
|
|
905
|
+
function pt({ className: e, inset: t, children: n, ...r }) {
|
|
906
|
+
return /* @__PURE__ */ a(w.SubTrigger, {
|
|
728
907
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
729
908
|
"data-inset": t,
|
|
730
|
-
className:
|
|
909
|
+
className: j("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
731
910
|
...r,
|
|
732
|
-
children: [n, /* @__PURE__ */ i(
|
|
911
|
+
children: [n, /* @__PURE__ */ i(f, { className: "rtl:rotate-180 ms-auto" })]
|
|
733
912
|
});
|
|
734
913
|
}
|
|
735
|
-
function
|
|
736
|
-
return /* @__PURE__ */ i(
|
|
914
|
+
function mt({ className: e, ...t }) {
|
|
915
|
+
return /* @__PURE__ */ i(w.SubContent, {
|
|
737
916
|
"data-slot": "dropdown-menu-sub-content",
|
|
738
|
-
className:
|
|
917
|
+
className: j("z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
739
918
|
...t
|
|
740
919
|
});
|
|
741
920
|
}
|
|
742
921
|
//#endregion
|
|
743
|
-
//#region src/components/ui/input.tsx
|
|
744
|
-
function B({ className: e, type: t, ...n }) {
|
|
745
|
-
return /* @__PURE__ */ i("input", {
|
|
746
|
-
type: t,
|
|
747
|
-
"data-slot": "input",
|
|
748
|
-
className: O("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
749
|
-
...n
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
//#endregion
|
|
753
922
|
//#region src/components/ui/label.tsx
|
|
754
|
-
function
|
|
755
|
-
return /* @__PURE__ */ i(
|
|
923
|
+
function ht({ className: e, ...t }) {
|
|
924
|
+
return /* @__PURE__ */ i(re.Root, {
|
|
756
925
|
"data-slot": "label",
|
|
757
|
-
className:
|
|
926
|
+
className: j("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
758
927
|
...t
|
|
759
928
|
});
|
|
760
929
|
}
|
|
761
930
|
//#endregion
|
|
762
931
|
//#region src/components/ui/pagination.tsx
|
|
763
|
-
function
|
|
932
|
+
function gt({ className: e, ...t }) {
|
|
764
933
|
return /* @__PURE__ */ i("nav", {
|
|
765
934
|
role: "navigation",
|
|
766
935
|
"data-slot": "pagination",
|
|
767
|
-
className:
|
|
936
|
+
className: j("mx-auto flex w-full justify-center", e),
|
|
768
937
|
...t
|
|
769
938
|
});
|
|
770
939
|
}
|
|
771
|
-
function
|
|
940
|
+
function _t({ className: e, ...t }) {
|
|
772
941
|
return /* @__PURE__ */ i("ul", {
|
|
773
942
|
"data-slot": "pagination-content",
|
|
774
|
-
className:
|
|
943
|
+
className: j("flex items-center gap-0.5", e),
|
|
775
944
|
...t
|
|
776
945
|
});
|
|
777
946
|
}
|
|
778
|
-
function
|
|
947
|
+
function vt({ ...e }) {
|
|
779
948
|
return /* @__PURE__ */ i("li", {
|
|
780
949
|
"data-slot": "pagination-item",
|
|
781
950
|
...e
|
|
782
951
|
});
|
|
783
952
|
}
|
|
784
|
-
function
|
|
785
|
-
return /* @__PURE__ */ i(
|
|
953
|
+
function J({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
954
|
+
return /* @__PURE__ */ i(I, {
|
|
786
955
|
asChild: !0,
|
|
787
956
|
variant: t ? "outline" : "ghost",
|
|
788
957
|
size: n,
|
|
789
|
-
className:
|
|
958
|
+
className: j(e),
|
|
790
959
|
children: /* @__PURE__ */ i("a", {
|
|
791
960
|
"aria-current": t ? "page" : void 0,
|
|
792
961
|
"data-slot": "pagination-link",
|
|
@@ -795,12 +964,12 @@ function V({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
|
795
964
|
})
|
|
796
965
|
});
|
|
797
966
|
}
|
|
798
|
-
function
|
|
799
|
-
return /* @__PURE__ */ a(
|
|
967
|
+
function yt({ className: e, text: t, ...n }) {
|
|
968
|
+
return /* @__PURE__ */ a(J, {
|
|
800
969
|
size: "default",
|
|
801
|
-
className:
|
|
970
|
+
className: j("ps-1.5!", e),
|
|
802
971
|
...n,
|
|
803
|
-
children: [/* @__PURE__ */ i(
|
|
972
|
+
children: [/* @__PURE__ */ i(d, {
|
|
804
973
|
"data-icon": "inline-start",
|
|
805
974
|
className: "rtl:rotate-180"
|
|
806
975
|
}), /* @__PURE__ */ i("span", {
|
|
@@ -809,15 +978,15 @@ function xt({ className: e, text: t, ...n }) {
|
|
|
809
978
|
})]
|
|
810
979
|
});
|
|
811
980
|
}
|
|
812
|
-
function
|
|
813
|
-
return /* @__PURE__ */ a(
|
|
981
|
+
function bt({ className: e, text: t, ...n }) {
|
|
982
|
+
return /* @__PURE__ */ a(J, {
|
|
814
983
|
size: "default",
|
|
815
|
-
className:
|
|
984
|
+
className: j("pe-1.5!", e),
|
|
816
985
|
...n,
|
|
817
986
|
children: [/* @__PURE__ */ i("span", {
|
|
818
987
|
className: "hidden sm:block",
|
|
819
988
|
children: t
|
|
820
|
-
}), /* @__PURE__ */ i(
|
|
989
|
+
}), /* @__PURE__ */ i(f, {
|
|
821
990
|
"data-icon": "inline-end",
|
|
822
991
|
className: "rtl:rotate-180"
|
|
823
992
|
})]
|
|
@@ -825,205 +994,205 @@ function St({ className: e, text: t, ...n }) {
|
|
|
825
994
|
}
|
|
826
995
|
//#endregion
|
|
827
996
|
//#region src/components/ui/popover.tsx
|
|
828
|
-
function
|
|
829
|
-
return /* @__PURE__ */ i(
|
|
997
|
+
function xt({ ...e }) {
|
|
998
|
+
return /* @__PURE__ */ i(T.Root, {
|
|
830
999
|
"data-slot": "popover",
|
|
831
1000
|
...e
|
|
832
1001
|
});
|
|
833
1002
|
}
|
|
834
|
-
function
|
|
835
|
-
return /* @__PURE__ */ i(
|
|
1003
|
+
function St({ ...e }) {
|
|
1004
|
+
return /* @__PURE__ */ i(T.Trigger, {
|
|
836
1005
|
"data-slot": "popover-trigger",
|
|
837
1006
|
...e
|
|
838
1007
|
});
|
|
839
1008
|
}
|
|
840
|
-
function
|
|
841
|
-
return /* @__PURE__ */ i(
|
|
1009
|
+
function Ct({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1010
|
+
return /* @__PURE__ */ i(T.Portal, { children: /* @__PURE__ */ i(T.Content, {
|
|
842
1011
|
"data-slot": "popover-content",
|
|
843
1012
|
align: t,
|
|
844
1013
|
sideOffset: n,
|
|
845
|
-
className:
|
|
1014
|
+
className: j("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
846
1015
|
...r
|
|
847
1016
|
}) });
|
|
848
1017
|
}
|
|
849
|
-
function
|
|
850
|
-
return /* @__PURE__ */ i(
|
|
1018
|
+
function wt({ ...e }) {
|
|
1019
|
+
return /* @__PURE__ */ i(T.Anchor, {
|
|
851
1020
|
"data-slot": "popover-anchor",
|
|
852
1021
|
...e
|
|
853
1022
|
});
|
|
854
1023
|
}
|
|
855
|
-
function
|
|
1024
|
+
function Tt({ className: e, ...t }) {
|
|
856
1025
|
return /* @__PURE__ */ i("div", {
|
|
857
1026
|
"data-slot": "popover-header",
|
|
858
|
-
className:
|
|
1027
|
+
className: j("flex flex-col gap-0.5 text-sm", e),
|
|
859
1028
|
...t
|
|
860
1029
|
});
|
|
861
1030
|
}
|
|
862
|
-
function
|
|
1031
|
+
function Et({ className: e, ...t }) {
|
|
863
1032
|
return /* @__PURE__ */ i("div", {
|
|
864
1033
|
"data-slot": "popover-title",
|
|
865
|
-
className:
|
|
1034
|
+
className: j("font-medium", e),
|
|
866
1035
|
...t
|
|
867
1036
|
});
|
|
868
1037
|
}
|
|
869
|
-
function
|
|
1038
|
+
function Dt({ className: e, ...t }) {
|
|
870
1039
|
return /* @__PURE__ */ i("p", {
|
|
871
1040
|
"data-slot": "popover-description",
|
|
872
|
-
className:
|
|
1041
|
+
className: j("text-muted-foreground", e),
|
|
873
1042
|
...t
|
|
874
1043
|
});
|
|
875
1044
|
}
|
|
876
1045
|
//#endregion
|
|
877
1046
|
//#region src/components/ui/select.tsx
|
|
878
|
-
function
|
|
879
|
-
return /* @__PURE__ */ i(
|
|
1047
|
+
function Ot({ ...e }) {
|
|
1048
|
+
return /* @__PURE__ */ i(E.Root, {
|
|
880
1049
|
"data-slot": "select",
|
|
881
1050
|
...e
|
|
882
1051
|
});
|
|
883
1052
|
}
|
|
884
|
-
function
|
|
885
|
-
return /* @__PURE__ */ i(
|
|
1053
|
+
function kt({ className: e, ...t }) {
|
|
1054
|
+
return /* @__PURE__ */ i(E.Group, {
|
|
886
1055
|
"data-slot": "select-group",
|
|
887
|
-
className:
|
|
1056
|
+
className: j("scroll-my-1 p-1", e),
|
|
888
1057
|
...t
|
|
889
1058
|
});
|
|
890
1059
|
}
|
|
891
|
-
function
|
|
892
|
-
return /* @__PURE__ */ i(
|
|
1060
|
+
function At({ ...e }) {
|
|
1061
|
+
return /* @__PURE__ */ i(E.Value, {
|
|
893
1062
|
"data-slot": "select-value",
|
|
894
1063
|
...e
|
|
895
1064
|
});
|
|
896
1065
|
}
|
|
897
|
-
function
|
|
898
|
-
return /* @__PURE__ */ a(
|
|
1066
|
+
function jt({ className: e, size: t = "default", children: n, ...r }) {
|
|
1067
|
+
return /* @__PURE__ */ a(E.Trigger, {
|
|
899
1068
|
"data-slot": "select-trigger",
|
|
900
1069
|
"data-size": t,
|
|
901
|
-
className:
|
|
1070
|
+
className: j("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pe-2 ps-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground/70 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
902
1071
|
...r,
|
|
903
|
-
children: [n, /* @__PURE__ */ i(
|
|
1072
|
+
children: [n, /* @__PURE__ */ i(E.Icon, {
|
|
904
1073
|
asChild: !0,
|
|
905
|
-
children: /* @__PURE__ */ i(
|
|
1074
|
+
children: /* @__PURE__ */ i(u, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
906
1075
|
})]
|
|
907
1076
|
});
|
|
908
1077
|
}
|
|
909
|
-
function
|
|
910
|
-
return /* @__PURE__ */ i(
|
|
1078
|
+
function Mt({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...o }) {
|
|
1079
|
+
return /* @__PURE__ */ i(E.Portal, { children: /* @__PURE__ */ a(E.Content, {
|
|
911
1080
|
"data-slot": "select-content",
|
|
912
1081
|
"data-align-trigger": n === "item-aligned",
|
|
913
|
-
className:
|
|
1082
|
+
className: j("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 rtl:data-[side=left]:translate-x-1 data-[side=right]:translate-x-1 rtl:data-[side=right]:-translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
914
1083
|
position: n,
|
|
915
1084
|
align: r,
|
|
916
1085
|
...o,
|
|
917
1086
|
children: [
|
|
918
|
-
/* @__PURE__ */ i(
|
|
919
|
-
/* @__PURE__ */ i(
|
|
1087
|
+
/* @__PURE__ */ i(Y, {}),
|
|
1088
|
+
/* @__PURE__ */ i(E.Viewport, {
|
|
920
1089
|
"data-position": n,
|
|
921
|
-
className:
|
|
1090
|
+
className: j("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", n === "popper" && ""),
|
|
922
1091
|
children: t
|
|
923
1092
|
}),
|
|
924
|
-
/* @__PURE__ */ i(
|
|
1093
|
+
/* @__PURE__ */ i(X, {})
|
|
925
1094
|
]
|
|
926
1095
|
}) });
|
|
927
1096
|
}
|
|
928
|
-
function
|
|
929
|
-
return /* @__PURE__ */ i(
|
|
1097
|
+
function Nt({ className: e, ...t }) {
|
|
1098
|
+
return /* @__PURE__ */ i(E.Label, {
|
|
930
1099
|
"data-slot": "select-label",
|
|
931
|
-
className:
|
|
1100
|
+
className: j("px-1.5 py-1 text-xs text-muted-foreground", e),
|
|
932
1101
|
...t
|
|
933
1102
|
});
|
|
934
1103
|
}
|
|
935
|
-
function
|
|
936
|
-
return /* @__PURE__ */ a(
|
|
1104
|
+
function Pt({ className: e, children: t, ...n }) {
|
|
1105
|
+
return /* @__PURE__ */ a(E.Item, {
|
|
937
1106
|
"data-slot": "select-item",
|
|
938
|
-
className:
|
|
1107
|
+
className: j("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
939
1108
|
...n,
|
|
940
1109
|
children: [/* @__PURE__ */ i("span", {
|
|
941
1110
|
className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center",
|
|
942
|
-
children: /* @__PURE__ */ i(
|
|
943
|
-
}), /* @__PURE__ */ i(
|
|
1111
|
+
children: /* @__PURE__ */ i(E.ItemIndicator, { children: /* @__PURE__ */ i(l, { className: "pointer-events-none" }) })
|
|
1112
|
+
}), /* @__PURE__ */ i(E.ItemText, { children: t })]
|
|
944
1113
|
});
|
|
945
1114
|
}
|
|
946
|
-
function
|
|
947
|
-
return /* @__PURE__ */ i(
|
|
1115
|
+
function Ft({ className: e, ...t }) {
|
|
1116
|
+
return /* @__PURE__ */ i(E.Separator, {
|
|
948
1117
|
"data-slot": "select-separator",
|
|
949
|
-
className:
|
|
1118
|
+
className: j("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
950
1119
|
...t
|
|
951
1120
|
});
|
|
952
1121
|
}
|
|
953
|
-
function
|
|
954
|
-
return /* @__PURE__ */ i(
|
|
1122
|
+
function Y({ className: e, ...t }) {
|
|
1123
|
+
return /* @__PURE__ */ i(E.ScrollUpButton, {
|
|
955
1124
|
"data-slot": "select-scroll-up-button",
|
|
956
|
-
className:
|
|
1125
|
+
className: j("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
957
1126
|
...t,
|
|
958
|
-
children: /* @__PURE__ */ i(
|
|
1127
|
+
children: /* @__PURE__ */ i(p, {})
|
|
959
1128
|
});
|
|
960
1129
|
}
|
|
961
|
-
function
|
|
962
|
-
return /* @__PURE__ */ i(
|
|
1130
|
+
function X({ className: e, ...t }) {
|
|
1131
|
+
return /* @__PURE__ */ i(E.ScrollDownButton, {
|
|
963
1132
|
"data-slot": "select-scroll-down-button",
|
|
964
|
-
className:
|
|
1133
|
+
className: j("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
965
1134
|
...t,
|
|
966
|
-
children: /* @__PURE__ */ i(
|
|
1135
|
+
children: /* @__PURE__ */ i(u, {})
|
|
967
1136
|
});
|
|
968
1137
|
}
|
|
969
1138
|
//#endregion
|
|
970
1139
|
//#region src/components/ui/separator.tsx
|
|
971
|
-
function
|
|
972
|
-
return /* @__PURE__ */ i(
|
|
1140
|
+
function It({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
1141
|
+
return /* @__PURE__ */ i(ie.Root, {
|
|
973
1142
|
"data-slot": "separator",
|
|
974
1143
|
decorative: n,
|
|
975
1144
|
orientation: t,
|
|
976
|
-
className:
|
|
1145
|
+
className: j("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", e),
|
|
977
1146
|
...r
|
|
978
1147
|
});
|
|
979
1148
|
}
|
|
980
1149
|
//#endregion
|
|
981
1150
|
//#region src/components/ui/sheet.tsx
|
|
982
|
-
function
|
|
983
|
-
return /* @__PURE__ */ i(
|
|
1151
|
+
function Lt({ ...e }) {
|
|
1152
|
+
return /* @__PURE__ */ i(C.Root, {
|
|
984
1153
|
"data-slot": "sheet",
|
|
985
1154
|
...e
|
|
986
1155
|
});
|
|
987
1156
|
}
|
|
988
1157
|
function Rt({ ...e }) {
|
|
989
|
-
return /* @__PURE__ */ i(
|
|
1158
|
+
return /* @__PURE__ */ i(C.Trigger, {
|
|
990
1159
|
"data-slot": "sheet-trigger",
|
|
991
1160
|
...e
|
|
992
1161
|
});
|
|
993
1162
|
}
|
|
994
1163
|
function zt({ ...e }) {
|
|
995
|
-
return /* @__PURE__ */ i(
|
|
1164
|
+
return /* @__PURE__ */ i(C.Close, {
|
|
996
1165
|
"data-slot": "sheet-close",
|
|
997
1166
|
...e
|
|
998
1167
|
});
|
|
999
1168
|
}
|
|
1000
1169
|
function Bt({ ...e }) {
|
|
1001
|
-
return /* @__PURE__ */ i(
|
|
1170
|
+
return /* @__PURE__ */ i(C.Portal, {
|
|
1002
1171
|
"data-slot": "sheet-portal",
|
|
1003
1172
|
...e
|
|
1004
1173
|
});
|
|
1005
1174
|
}
|
|
1006
1175
|
function Vt({ className: e, ...t }) {
|
|
1007
|
-
return /* @__PURE__ */ i(
|
|
1176
|
+
return /* @__PURE__ */ i(C.Overlay, {
|
|
1008
1177
|
"data-slot": "sheet-overlay",
|
|
1009
|
-
className:
|
|
1178
|
+
className: j("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
1010
1179
|
...t
|
|
1011
1180
|
});
|
|
1012
1181
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return /* @__PURE__ */ a(Bt, { children: [/* @__PURE__ */ i(Vt, {}), /* @__PURE__ */ a(
|
|
1182
|
+
function Ht({ className: e, children: t, side: n = "right", showCloseButton: r = !0, closeLabel: o, ...s }) {
|
|
1183
|
+
return /* @__PURE__ */ a(Bt, { children: [/* @__PURE__ */ i(Vt, {}), /* @__PURE__ */ a(C.Content, {
|
|
1015
1184
|
"data-slot": "sheet-content",
|
|
1016
1185
|
"data-side": n,
|
|
1017
|
-
className:
|
|
1186
|
+
className: j("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10", e),
|
|
1018
1187
|
...s,
|
|
1019
|
-
children: [t, r && /* @__PURE__ */ i(
|
|
1188
|
+
children: [t, r && /* @__PURE__ */ i(C.Close, {
|
|
1020
1189
|
"data-slot": "sheet-close",
|
|
1021
1190
|
asChild: !0,
|
|
1022
|
-
children: /* @__PURE__ */ a(
|
|
1191
|
+
children: /* @__PURE__ */ a(I, {
|
|
1023
1192
|
variant: "ghost",
|
|
1024
1193
|
className: "absolute top-3 end-3",
|
|
1025
1194
|
size: "icon-sm",
|
|
1026
|
-
children: [/* @__PURE__ */ i(
|
|
1195
|
+
children: [/* @__PURE__ */ i(te, {}), /* @__PURE__ */ i("span", {
|
|
1027
1196
|
className: "sr-only",
|
|
1028
1197
|
children: o
|
|
1029
1198
|
})]
|
|
@@ -1031,97 +1200,97 @@ function K({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
1031
1200
|
})]
|
|
1032
1201
|
})] });
|
|
1033
1202
|
}
|
|
1034
|
-
function
|
|
1203
|
+
function Ut({ className: e, ...t }) {
|
|
1035
1204
|
return /* @__PURE__ */ i("div", {
|
|
1036
1205
|
"data-slot": "sheet-header",
|
|
1037
|
-
className:
|
|
1206
|
+
className: j("flex flex-col gap-0.5 p-4", e),
|
|
1038
1207
|
...t
|
|
1039
1208
|
});
|
|
1040
1209
|
}
|
|
1041
|
-
function
|
|
1210
|
+
function Wt({ className: e, ...t }) {
|
|
1042
1211
|
return /* @__PURE__ */ i("div", {
|
|
1043
1212
|
"data-slot": "sheet-footer",
|
|
1044
|
-
className:
|
|
1213
|
+
className: j("mt-auto flex flex-col gap-2 p-4", e),
|
|
1045
1214
|
...t
|
|
1046
1215
|
});
|
|
1047
1216
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return /* @__PURE__ */ i(
|
|
1217
|
+
function Gt({ className: e, ...t }) {
|
|
1218
|
+
return /* @__PURE__ */ i(C.Title, {
|
|
1050
1219
|
"data-slot": "sheet-title",
|
|
1051
|
-
className:
|
|
1220
|
+
className: j("font-heading text-base font-medium text-foreground", e),
|
|
1052
1221
|
...t
|
|
1053
1222
|
});
|
|
1054
1223
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return /* @__PURE__ */ i(
|
|
1224
|
+
function Kt({ className: e, ...t }) {
|
|
1225
|
+
return /* @__PURE__ */ i(C.Description, {
|
|
1057
1226
|
"data-slot": "sheet-description",
|
|
1058
|
-
className:
|
|
1227
|
+
className: j("text-sm text-muted-foreground", e),
|
|
1059
1228
|
...t
|
|
1060
1229
|
});
|
|
1061
1230
|
}
|
|
1062
1231
|
//#endregion
|
|
1063
1232
|
//#region src/hooks/use-mobile.ts
|
|
1064
|
-
var
|
|
1065
|
-
function
|
|
1233
|
+
var Z = 768;
|
|
1234
|
+
function qt() {
|
|
1066
1235
|
let [t, n] = e.useState(void 0);
|
|
1067
1236
|
return e.useEffect(() => {
|
|
1068
1237
|
let e = window.matchMedia("(max-width: 767px)"), t = () => {
|
|
1069
|
-
n(window.innerWidth <
|
|
1238
|
+
n(window.innerWidth < Z);
|
|
1070
1239
|
};
|
|
1071
|
-
return e.addEventListener("change", t), n(window.innerWidth <
|
|
1240
|
+
return e.addEventListener("change", t), n(window.innerWidth < Z), () => e.removeEventListener("change", t);
|
|
1072
1241
|
}, []), !!t;
|
|
1073
1242
|
}
|
|
1074
1243
|
//#endregion
|
|
1075
1244
|
//#region src/components/ui/skeleton.tsx
|
|
1076
|
-
function
|
|
1245
|
+
function Q({ className: e, ...t }) {
|
|
1077
1246
|
return /* @__PURE__ */ i("div", {
|
|
1078
1247
|
"data-slot": "skeleton",
|
|
1079
|
-
className:
|
|
1248
|
+
className: j("animate-pulse rounded-md bg-muted", e),
|
|
1080
1249
|
...t
|
|
1081
1250
|
});
|
|
1082
1251
|
}
|
|
1083
1252
|
//#endregion
|
|
1084
1253
|
//#region src/components/ui/tooltip.tsx
|
|
1085
|
-
function
|
|
1086
|
-
return /* @__PURE__ */ i(
|
|
1254
|
+
function Jt({ delayDuration: e = 0, ...t }) {
|
|
1255
|
+
return /* @__PURE__ */ i(k.Provider, {
|
|
1087
1256
|
"data-slot": "tooltip-provider",
|
|
1088
1257
|
delayDuration: e,
|
|
1089
1258
|
...t
|
|
1090
1259
|
});
|
|
1091
1260
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return /* @__PURE__ */ i(
|
|
1261
|
+
function Yt({ ...e }) {
|
|
1262
|
+
return /* @__PURE__ */ i(k.Root, {
|
|
1094
1263
|
"data-slot": "tooltip",
|
|
1095
1264
|
...e
|
|
1096
1265
|
});
|
|
1097
1266
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return /* @__PURE__ */ i(
|
|
1267
|
+
function Xt({ ...e }) {
|
|
1268
|
+
return /* @__PURE__ */ i(k.Trigger, {
|
|
1100
1269
|
"data-slot": "tooltip-trigger",
|
|
1101
1270
|
...e
|
|
1102
1271
|
});
|
|
1103
1272
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return /* @__PURE__ */ i(
|
|
1273
|
+
function Zt({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
1274
|
+
return /* @__PURE__ */ i(k.Portal, { children: /* @__PURE__ */ a(k.Content, {
|
|
1106
1275
|
"data-slot": "tooltip-content",
|
|
1107
1276
|
sideOffset: t,
|
|
1108
|
-
className:
|
|
1277
|
+
className: j("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
1109
1278
|
...r,
|
|
1110
|
-
children: [n, /* @__PURE__ */ i(
|
|
1279
|
+
children: [n, /* @__PURE__ */ i(k.Arrow, { className: "z-50 fill-foreground" })]
|
|
1111
1280
|
}) });
|
|
1112
1281
|
}
|
|
1113
1282
|
//#endregion
|
|
1114
1283
|
//#region src/components/ui/sidebar.tsx
|
|
1115
|
-
var
|
|
1284
|
+
var Qt = "sidebar_state", $t = 604800, en = "16rem", tn = "18rem", nn = "3rem", rn = "b", an = e.createContext(null);
|
|
1116
1285
|
function $() {
|
|
1117
|
-
let t = e.useContext(
|
|
1286
|
+
let t = e.useContext(an);
|
|
1118
1287
|
if (!t) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
1119
1288
|
return t;
|
|
1120
1289
|
}
|
|
1121
|
-
function
|
|
1122
|
-
let l =
|
|
1290
|
+
function on({ defaultOpen: t = !0, open: n, onOpenChange: r, className: a, style: o, children: s, ...c }) {
|
|
1291
|
+
let l = qt(), [u, d] = e.useState(!1), [f, p] = e.useState(t), m = n ?? f, h = e.useCallback((e) => {
|
|
1123
1292
|
let t = typeof e == "function" ? e(m) : e;
|
|
1124
|
-
r ? r(t) : p(t), document.cookie = `${
|
|
1293
|
+
r ? r(t) : p(t), document.cookie = `${Qt}=${t}; path=/; max-age=${$t}`;
|
|
1125
1294
|
}, [r, m]), g = e.useCallback(() => l ? d((e) => !e) : h((e) => !e), [
|
|
1126
1295
|
l,
|
|
1127
1296
|
h,
|
|
@@ -1129,11 +1298,11 @@ function en({ defaultOpen: t = !0, open: n, onOpenChange: r, className: a, style
|
|
|
1129
1298
|
]);
|
|
1130
1299
|
e.useEffect(() => {
|
|
1131
1300
|
let e = (e) => {
|
|
1132
|
-
e.key ===
|
|
1301
|
+
e.key === rn && (e.metaKey || e.ctrlKey) && (e.preventDefault(), g());
|
|
1133
1302
|
};
|
|
1134
1303
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1135
1304
|
}, [g]);
|
|
1136
|
-
let _ = m ? "expanded" : "collapsed",
|
|
1305
|
+
let _ = m ? "expanded" : "collapsed", v = e.useMemo(() => ({
|
|
1137
1306
|
state: _,
|
|
1138
1307
|
open: m,
|
|
1139
1308
|
setOpen: h,
|
|
@@ -1150,44 +1319,44 @@ function en({ defaultOpen: t = !0, open: n, onOpenChange: r, className: a, style
|
|
|
1150
1319
|
d,
|
|
1151
1320
|
g
|
|
1152
1321
|
]);
|
|
1153
|
-
return /* @__PURE__ */ i(
|
|
1154
|
-
value:
|
|
1322
|
+
return /* @__PURE__ */ i(an.Provider, {
|
|
1323
|
+
value: v,
|
|
1155
1324
|
children: /* @__PURE__ */ i("div", {
|
|
1156
1325
|
"data-slot": "sidebar-wrapper",
|
|
1157
1326
|
style: {
|
|
1158
|
-
"--sidebar-width":
|
|
1159
|
-
"--sidebar-width-icon":
|
|
1327
|
+
"--sidebar-width": en,
|
|
1328
|
+
"--sidebar-width-icon": nn,
|
|
1160
1329
|
...o
|
|
1161
1330
|
},
|
|
1162
|
-
className:
|
|
1331
|
+
className: j("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", a),
|
|
1163
1332
|
...c,
|
|
1164
1333
|
children: s
|
|
1165
1334
|
})
|
|
1166
1335
|
});
|
|
1167
1336
|
}
|
|
1168
|
-
function
|
|
1337
|
+
function sn({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: o, dir: s, mobileTitle: c, mobileDescription: l, closeLabel: u, ...d }) {
|
|
1169
1338
|
let { isMobile: f, state: p, openMobile: m, setOpenMobile: h } = $();
|
|
1170
1339
|
return n === "none" ? /* @__PURE__ */ i("div", {
|
|
1171
1340
|
"data-slot": "sidebar",
|
|
1172
|
-
className:
|
|
1341
|
+
className: j("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", r),
|
|
1173
1342
|
...d,
|
|
1174
1343
|
children: o
|
|
1175
|
-
}) : f ? /* @__PURE__ */ i(
|
|
1344
|
+
}) : f ? /* @__PURE__ */ i(Lt, {
|
|
1176
1345
|
open: m,
|
|
1177
1346
|
onOpenChange: h,
|
|
1178
1347
|
...d,
|
|
1179
|
-
children: /* @__PURE__ */ a(
|
|
1348
|
+
children: /* @__PURE__ */ a(Ht, {
|
|
1180
1349
|
dir: s,
|
|
1181
1350
|
"data-sidebar": "sidebar",
|
|
1182
1351
|
"data-slot": "sidebar",
|
|
1183
1352
|
"data-mobile": "true",
|
|
1184
1353
|
className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
1185
|
-
style: { "--sidebar-width":
|
|
1354
|
+
style: { "--sidebar-width": tn },
|
|
1186
1355
|
side: e,
|
|
1187
1356
|
closeLabel: u,
|
|
1188
|
-
children: [/* @__PURE__ */ a(
|
|
1357
|
+
children: [/* @__PURE__ */ a(Ut, {
|
|
1189
1358
|
className: "sr-only",
|
|
1190
|
-
children: [/* @__PURE__ */ i(
|
|
1359
|
+
children: [/* @__PURE__ */ i(Gt, { children: c }), /* @__PURE__ */ i(Kt, { children: l })]
|
|
1191
1360
|
}), /* @__PURE__ */ i("div", {
|
|
1192
1361
|
className: "flex h-full w-full flex-col",
|
|
1193
1362
|
children: o
|
|
@@ -1202,11 +1371,11 @@ function tn({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1202
1371
|
"data-slot": "sidebar",
|
|
1203
1372
|
children: [/* @__PURE__ */ i("div", {
|
|
1204
1373
|
"data-slot": "sidebar-gap",
|
|
1205
|
-
className:
|
|
1374
|
+
className: j("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
1206
1375
|
}), /* @__PURE__ */ i("div", {
|
|
1207
1376
|
"data-slot": "sidebar-container",
|
|
1208
1377
|
"data-side": e,
|
|
1209
|
-
className:
|
|
1378
|
+
className: j("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", r),
|
|
1210
1379
|
...d,
|
|
1211
1380
|
children: /* @__PURE__ */ i("div", {
|
|
1212
1381
|
"data-sidebar": "sidebar",
|
|
@@ -1217,23 +1386,23 @@ function tn({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1217
1386
|
})]
|
|
1218
1387
|
});
|
|
1219
1388
|
}
|
|
1220
|
-
function
|
|
1389
|
+
function cn({ className: e, onClick: t, "aria-label": n, ...r }) {
|
|
1221
1390
|
let { toggleSidebar: a } = $();
|
|
1222
|
-
return /* @__PURE__ */ i(
|
|
1391
|
+
return /* @__PURE__ */ i(I, {
|
|
1223
1392
|
"data-sidebar": "trigger",
|
|
1224
1393
|
"data-slot": "sidebar-trigger",
|
|
1225
1394
|
variant: "ghost",
|
|
1226
1395
|
size: "icon-sm",
|
|
1227
1396
|
"aria-label": n,
|
|
1228
|
-
className:
|
|
1397
|
+
className: j(e),
|
|
1229
1398
|
onClick: (e) => {
|
|
1230
1399
|
t?.(e), a();
|
|
1231
1400
|
},
|
|
1232
1401
|
...r,
|
|
1233
|
-
children: /* @__PURE__ */ i(
|
|
1402
|
+
children: /* @__PURE__ */ i(v, { className: "rtl:rotate-180" })
|
|
1234
1403
|
});
|
|
1235
1404
|
}
|
|
1236
|
-
function
|
|
1405
|
+
function ln({ className: e, "aria-label": t, ...n }) {
|
|
1237
1406
|
let { toggleSidebar: r } = $();
|
|
1238
1407
|
return /* @__PURE__ */ i("button", {
|
|
1239
1408
|
"data-sidebar": "rail",
|
|
@@ -1242,108 +1411,108 @@ function rn({ className: e, "aria-label": t, ...n }) {
|
|
|
1242
1411
|
tabIndex: -1,
|
|
1243
1412
|
onClick: r,
|
|
1244
1413
|
title: t,
|
|
1245
|
-
className:
|
|
1414
|
+
className: j("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize rtl:in-data-[side=left]:cursor-e-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize", "group-data-[collapsible=offcanvas]:translate-x-0 rtl:group-data-[collapsible=offcanvas]:-translate-x-0 group-data-[collapsible=offcanvas]:after:start-full hover:group-data-[collapsible=offcanvas]:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-end-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-start-2", e),
|
|
1246
1415
|
...n
|
|
1247
1416
|
});
|
|
1248
1417
|
}
|
|
1249
|
-
function
|
|
1418
|
+
function un({ className: e, ...t }) {
|
|
1250
1419
|
return /* @__PURE__ */ i("main", {
|
|
1251
1420
|
"data-slot": "sidebar-inset",
|
|
1252
|
-
className:
|
|
1421
|
+
className: j("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2", e),
|
|
1253
1422
|
...t
|
|
1254
1423
|
});
|
|
1255
1424
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return /* @__PURE__ */ i(
|
|
1425
|
+
function dn({ className: e, ...t }) {
|
|
1426
|
+
return /* @__PURE__ */ i(L, {
|
|
1258
1427
|
"data-slot": "sidebar-input",
|
|
1259
1428
|
"data-sidebar": "input",
|
|
1260
|
-
className:
|
|
1429
|
+
className: j("h-8 w-full bg-background shadow-none", e),
|
|
1261
1430
|
...t
|
|
1262
1431
|
});
|
|
1263
1432
|
}
|
|
1264
|
-
function
|
|
1433
|
+
function fn({ className: e, ...t }) {
|
|
1265
1434
|
return /* @__PURE__ */ i("div", {
|
|
1266
1435
|
"data-slot": "sidebar-header",
|
|
1267
1436
|
"data-sidebar": "header",
|
|
1268
|
-
className:
|
|
1437
|
+
className: j("flex flex-col gap-2 p-2", e),
|
|
1269
1438
|
...t
|
|
1270
1439
|
});
|
|
1271
1440
|
}
|
|
1272
|
-
function
|
|
1441
|
+
function pn({ className: e, ...t }) {
|
|
1273
1442
|
return /* @__PURE__ */ i("div", {
|
|
1274
1443
|
"data-slot": "sidebar-footer",
|
|
1275
1444
|
"data-sidebar": "footer",
|
|
1276
|
-
className:
|
|
1445
|
+
className: j("flex flex-col gap-2 p-2", e),
|
|
1277
1446
|
...t
|
|
1278
1447
|
});
|
|
1279
1448
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return /* @__PURE__ */ i(
|
|
1449
|
+
function mn({ className: e, ...t }) {
|
|
1450
|
+
return /* @__PURE__ */ i(It, {
|
|
1282
1451
|
"data-slot": "sidebar-separator",
|
|
1283
1452
|
"data-sidebar": "separator",
|
|
1284
|
-
className:
|
|
1453
|
+
className: j("mx-2 w-auto bg-sidebar-border", e),
|
|
1285
1454
|
...t
|
|
1286
1455
|
});
|
|
1287
1456
|
}
|
|
1288
|
-
function
|
|
1457
|
+
function hn({ className: e, ...t }) {
|
|
1289
1458
|
return /* @__PURE__ */ i("div", {
|
|
1290
1459
|
"data-slot": "sidebar-content",
|
|
1291
1460
|
"data-sidebar": "content",
|
|
1292
|
-
className:
|
|
1461
|
+
className: j("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
1293
1462
|
...t
|
|
1294
1463
|
});
|
|
1295
1464
|
}
|
|
1296
|
-
function
|
|
1465
|
+
function gn({ className: e, ...t }) {
|
|
1297
1466
|
return /* @__PURE__ */ i("div", {
|
|
1298
1467
|
"data-slot": "sidebar-group",
|
|
1299
1468
|
"data-sidebar": "group",
|
|
1300
|
-
className:
|
|
1469
|
+
className: j("relative flex w-full min-w-0 flex-col p-2", e),
|
|
1301
1470
|
...t
|
|
1302
1471
|
});
|
|
1303
1472
|
}
|
|
1304
|
-
function
|
|
1305
|
-
let r = t ?
|
|
1473
|
+
function _n({ className: e, asChild: t = !1, ...n }) {
|
|
1474
|
+
let r = t ? D.Root : "div";
|
|
1306
1475
|
return /* @__PURE__ */ i(r, {
|
|
1307
1476
|
"data-slot": "sidebar-group-label",
|
|
1308
1477
|
"data-sidebar": "group-label",
|
|
1309
|
-
className:
|
|
1478
|
+
className: j("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", e),
|
|
1310
1479
|
...n
|
|
1311
1480
|
});
|
|
1312
1481
|
}
|
|
1313
|
-
function
|
|
1314
|
-
let r = t ?
|
|
1482
|
+
function vn({ className: e, asChild: t = !1, ...n }) {
|
|
1483
|
+
let r = t ? D.Root : "button";
|
|
1315
1484
|
return /* @__PURE__ */ i(r, {
|
|
1316
1485
|
"data-slot": "sidebar-group-action",
|
|
1317
1486
|
"data-sidebar": "group-action",
|
|
1318
|
-
className:
|
|
1487
|
+
className: j("absolute top-3.5 end-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", e),
|
|
1319
1488
|
...n
|
|
1320
1489
|
});
|
|
1321
1490
|
}
|
|
1322
|
-
function
|
|
1491
|
+
function yn({ className: e, ...t }) {
|
|
1323
1492
|
return /* @__PURE__ */ i("div", {
|
|
1324
1493
|
"data-slot": "sidebar-group-content",
|
|
1325
1494
|
"data-sidebar": "group-content",
|
|
1326
|
-
className:
|
|
1495
|
+
className: j("w-full text-sm", e),
|
|
1327
1496
|
...t
|
|
1328
1497
|
});
|
|
1329
1498
|
}
|
|
1330
|
-
function
|
|
1499
|
+
function bn({ className: e, ...t }) {
|
|
1331
1500
|
return /* @__PURE__ */ i("ul", {
|
|
1332
1501
|
"data-slot": "sidebar-menu",
|
|
1333
1502
|
"data-sidebar": "menu",
|
|
1334
|
-
className:
|
|
1503
|
+
className: j("flex w-full min-w-0 flex-col gap-0", e),
|
|
1335
1504
|
...t
|
|
1336
1505
|
});
|
|
1337
1506
|
}
|
|
1338
|
-
function
|
|
1507
|
+
function xn({ className: e, ...t }) {
|
|
1339
1508
|
return /* @__PURE__ */ i("li", {
|
|
1340
1509
|
"data-slot": "sidebar-menu-item",
|
|
1341
1510
|
"data-sidebar": "menu-item",
|
|
1342
|
-
className:
|
|
1511
|
+
className: j("group/menu-item relative", e),
|
|
1343
1512
|
...t
|
|
1344
1513
|
});
|
|
1345
1514
|
}
|
|
1346
|
-
var
|
|
1515
|
+
var Sn = y("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
|
|
1347
1516
|
variants: {
|
|
1348
1517
|
variant: {
|
|
1349
1518
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -1360,99 +1529,99 @@ var _n = x("peer/menu-button group/menu-button flex w-full items-center gap-2 ov
|
|
|
1360
1529
|
size: "default"
|
|
1361
1530
|
}
|
|
1362
1531
|
});
|
|
1363
|
-
function
|
|
1364
|
-
let l = e ?
|
|
1532
|
+
function Cn({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: o, className: s, ...c }) {
|
|
1533
|
+
let l = e ? D.Root : "button", { isMobile: u, state: d } = $(), f = /* @__PURE__ */ i(l, {
|
|
1365
1534
|
"data-slot": "sidebar-menu-button",
|
|
1366
1535
|
"data-sidebar": "menu-button",
|
|
1367
1536
|
"data-size": r,
|
|
1368
1537
|
"data-active": t,
|
|
1369
|
-
className:
|
|
1538
|
+
className: j(Sn({
|
|
1370
1539
|
variant: n,
|
|
1371
1540
|
size: r
|
|
1372
1541
|
}), s),
|
|
1373
1542
|
...c
|
|
1374
1543
|
});
|
|
1375
|
-
return o ? (typeof o == "string" && (o = { children: o }), /* @__PURE__ */ a(
|
|
1544
|
+
return o ? (typeof o == "string" && (o = { children: o }), /* @__PURE__ */ a(Yt, { children: [/* @__PURE__ */ i(Xt, {
|
|
1376
1545
|
asChild: !0,
|
|
1377
1546
|
children: f
|
|
1378
|
-
}), /* @__PURE__ */ i(
|
|
1547
|
+
}), /* @__PURE__ */ i(Zt, {
|
|
1379
1548
|
side: "right",
|
|
1380
1549
|
align: "center",
|
|
1381
1550
|
hidden: d !== "collapsed" || u,
|
|
1382
1551
|
...o
|
|
1383
1552
|
})] })) : f;
|
|
1384
1553
|
}
|
|
1385
|
-
function
|
|
1386
|
-
let a = t ?
|
|
1554
|
+
function wn({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
1555
|
+
let a = t ? D.Root : "button";
|
|
1387
1556
|
return /* @__PURE__ */ i(a, {
|
|
1388
1557
|
"data-slot": "sidebar-menu-action",
|
|
1389
1558
|
"data-sidebar": "menu-action",
|
|
1390
|
-
className:
|
|
1559
|
+
className: j("absolute top-1.5 end-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", n && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0", e),
|
|
1391
1560
|
...r
|
|
1392
1561
|
});
|
|
1393
1562
|
}
|
|
1394
|
-
function
|
|
1563
|
+
function Tn({ className: e, ...t }) {
|
|
1395
1564
|
return /* @__PURE__ */ i("div", {
|
|
1396
1565
|
"data-slot": "sidebar-menu-badge",
|
|
1397
1566
|
"data-sidebar": "menu-badge",
|
|
1398
|
-
className:
|
|
1567
|
+
className: j("pointer-events-none absolute end-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground", e),
|
|
1399
1568
|
...t
|
|
1400
1569
|
});
|
|
1401
1570
|
}
|
|
1402
|
-
function
|
|
1571
|
+
function En({ className: t, showIcon: n = !1, ...r }) {
|
|
1403
1572
|
let [o] = e.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
1404
1573
|
return /* @__PURE__ */ a("div", {
|
|
1405
1574
|
"data-slot": "sidebar-menu-skeleton",
|
|
1406
1575
|
"data-sidebar": "menu-skeleton",
|
|
1407
|
-
className:
|
|
1576
|
+
className: j("flex h-8 items-center gap-2 rounded-md px-2", t),
|
|
1408
1577
|
...r,
|
|
1409
|
-
children: [n && /* @__PURE__ */ i(
|
|
1578
|
+
children: [n && /* @__PURE__ */ i(Q, {
|
|
1410
1579
|
className: "size-4 rounded-md",
|
|
1411
1580
|
"data-sidebar": "menu-skeleton-icon"
|
|
1412
|
-
}), /* @__PURE__ */ i(
|
|
1581
|
+
}), /* @__PURE__ */ i(Q, {
|
|
1413
1582
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
1414
1583
|
"data-sidebar": "menu-skeleton-text",
|
|
1415
1584
|
style: { "--skeleton-width": o }
|
|
1416
1585
|
})]
|
|
1417
1586
|
});
|
|
1418
1587
|
}
|
|
1419
|
-
function
|
|
1588
|
+
function Dn({ className: e, ...t }) {
|
|
1420
1589
|
return /* @__PURE__ */ i("ul", {
|
|
1421
1590
|
"data-slot": "sidebar-menu-sub",
|
|
1422
1591
|
"data-sidebar": "menu-sub",
|
|
1423
|
-
className:
|
|
1592
|
+
className: j("mx-3.5 flex min-w-0 translate-x-px rtl:-translate-x-px flex-col gap-1 border-s border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", e),
|
|
1424
1593
|
...t
|
|
1425
1594
|
});
|
|
1426
1595
|
}
|
|
1427
|
-
function
|
|
1596
|
+
function On({ className: e, ...t }) {
|
|
1428
1597
|
return /* @__PURE__ */ i("li", {
|
|
1429
1598
|
"data-slot": "sidebar-menu-sub-item",
|
|
1430
1599
|
"data-sidebar": "menu-sub-item",
|
|
1431
|
-
className:
|
|
1600
|
+
className: j("group/menu-sub-item relative", e),
|
|
1432
1601
|
...t
|
|
1433
1602
|
});
|
|
1434
1603
|
}
|
|
1435
|
-
function
|
|
1436
|
-
let o = e ?
|
|
1604
|
+
function kn({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...a }) {
|
|
1605
|
+
let o = e ? D.Root : "a";
|
|
1437
1606
|
return /* @__PURE__ */ i(o, {
|
|
1438
1607
|
"data-slot": "sidebar-menu-sub-button",
|
|
1439
1608
|
"data-sidebar": "menu-sub-button",
|
|
1440
1609
|
"data-size": t,
|
|
1441
1610
|
"data-active": n,
|
|
1442
|
-
className:
|
|
1611
|
+
className: j("flex h-7 min-w-0 -translate-x-px rtl:translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", r),
|
|
1443
1612
|
...a
|
|
1444
1613
|
});
|
|
1445
1614
|
}
|
|
1446
1615
|
//#endregion
|
|
1447
1616
|
//#region src/components/ui/sonner.tsx
|
|
1448
|
-
var
|
|
1617
|
+
var An = ({ ...e }) => /* @__PURE__ */ i(oe, {
|
|
1449
1618
|
className: "toaster group",
|
|
1450
1619
|
icons: {
|
|
1451
|
-
success: /* @__PURE__ */ i(
|
|
1452
|
-
info: /* @__PURE__ */ i(
|
|
1453
|
-
warning: /* @__PURE__ */ i(
|
|
1454
|
-
error: /* @__PURE__ */ i(
|
|
1455
|
-
loading: /* @__PURE__ */ i(
|
|
1620
|
+
success: /* @__PURE__ */ i(m, { className: "size-4" }),
|
|
1621
|
+
info: /* @__PURE__ */ i(h, { className: "size-4" }),
|
|
1622
|
+
warning: /* @__PURE__ */ i(ee, { className: "size-4" }),
|
|
1623
|
+
error: /* @__PURE__ */ i(_, { className: "size-4" }),
|
|
1624
|
+
loading: /* @__PURE__ */ i(g, { className: "size-4 animate-spin" })
|
|
1456
1625
|
},
|
|
1457
1626
|
style: {
|
|
1458
1627
|
"--normal-bg": "var(--popover)",
|
|
@@ -1465,113 +1634,113 @@ var Tn = ({ ...e }) => /* @__PURE__ */ i(le, {
|
|
|
1465
1634
|
});
|
|
1466
1635
|
//#endregion
|
|
1467
1636
|
//#region src/components/ui/table.tsx
|
|
1468
|
-
function
|
|
1637
|
+
function jn({ className: e, ...t }) {
|
|
1469
1638
|
return /* @__PURE__ */ i("div", {
|
|
1470
1639
|
"data-slot": "table-container",
|
|
1471
1640
|
className: "relative w-full overflow-x-auto",
|
|
1472
1641
|
children: /* @__PURE__ */ i("table", {
|
|
1473
1642
|
"data-slot": "table",
|
|
1474
|
-
className:
|
|
1643
|
+
className: j("w-full caption-bottom text-sm", e),
|
|
1475
1644
|
...t
|
|
1476
1645
|
})
|
|
1477
1646
|
});
|
|
1478
1647
|
}
|
|
1479
|
-
function
|
|
1648
|
+
function Mn({ className: e, ...t }) {
|
|
1480
1649
|
return /* @__PURE__ */ i("thead", {
|
|
1481
1650
|
"data-slot": "table-header",
|
|
1482
|
-
className:
|
|
1651
|
+
className: j("[&_tr]:border-b", e),
|
|
1483
1652
|
...t
|
|
1484
1653
|
});
|
|
1485
1654
|
}
|
|
1486
|
-
function
|
|
1655
|
+
function Nn({ className: e, ...t }) {
|
|
1487
1656
|
return /* @__PURE__ */ i("tbody", {
|
|
1488
1657
|
"data-slot": "table-body",
|
|
1489
|
-
className:
|
|
1658
|
+
className: j("[&_tr:last-child]:border-0", e),
|
|
1490
1659
|
...t
|
|
1491
1660
|
});
|
|
1492
1661
|
}
|
|
1493
|
-
function
|
|
1662
|
+
function Pn({ className: e, ...t }) {
|
|
1494
1663
|
return /* @__PURE__ */ i("tfoot", {
|
|
1495
1664
|
"data-slot": "table-footer",
|
|
1496
|
-
className:
|
|
1665
|
+
className: j("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1497
1666
|
...t
|
|
1498
1667
|
});
|
|
1499
1668
|
}
|
|
1500
|
-
function
|
|
1669
|
+
function Fn({ className: e, ...t }) {
|
|
1501
1670
|
return /* @__PURE__ */ i("tr", {
|
|
1502
1671
|
"data-slot": "table-row",
|
|
1503
|
-
className:
|
|
1672
|
+
className: j("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", e),
|
|
1504
1673
|
...t
|
|
1505
1674
|
});
|
|
1506
1675
|
}
|
|
1507
|
-
function
|
|
1676
|
+
function In({ className: e, ...t }) {
|
|
1508
1677
|
return /* @__PURE__ */ i("th", {
|
|
1509
1678
|
"data-slot": "table-head",
|
|
1510
|
-
className:
|
|
1679
|
+
className: j("h-10 px-2 text-start align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0", e),
|
|
1511
1680
|
...t
|
|
1512
1681
|
});
|
|
1513
1682
|
}
|
|
1514
|
-
function
|
|
1683
|
+
function Ln({ className: e, ...t }) {
|
|
1515
1684
|
return /* @__PURE__ */ i("td", {
|
|
1516
1685
|
"data-slot": "table-cell",
|
|
1517
|
-
className:
|
|
1686
|
+
className: j("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", e),
|
|
1518
1687
|
...t
|
|
1519
1688
|
});
|
|
1520
1689
|
}
|
|
1521
|
-
function
|
|
1690
|
+
function Rn({ className: e, ...t }) {
|
|
1522
1691
|
return /* @__PURE__ */ i("caption", {
|
|
1523
1692
|
"data-slot": "table-caption",
|
|
1524
|
-
className:
|
|
1693
|
+
className: j("mt-4 text-sm text-muted-foreground", e),
|
|
1525
1694
|
...t
|
|
1526
1695
|
});
|
|
1527
1696
|
}
|
|
1528
1697
|
//#endregion
|
|
1529
1698
|
//#region src/components/ui/tabs.tsx
|
|
1530
|
-
function
|
|
1531
|
-
return /* @__PURE__ */ i(
|
|
1699
|
+
function zn({ className: e, orientation: t = "horizontal", ...n }) {
|
|
1700
|
+
return /* @__PURE__ */ i(O.Root, {
|
|
1532
1701
|
"data-slot": "tabs",
|
|
1533
1702
|
"data-orientation": t,
|
|
1534
|
-
className:
|
|
1703
|
+
className: j("group/tabs flex gap-2 data-horizontal:flex-col", e),
|
|
1535
1704
|
...n
|
|
1536
1705
|
});
|
|
1537
1706
|
}
|
|
1538
|
-
var
|
|
1707
|
+
var Bn = y("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
1539
1708
|
variants: { variant: {
|
|
1540
1709
|
default: "bg-muted",
|
|
1541
1710
|
line: "gap-1 bg-transparent"
|
|
1542
1711
|
} },
|
|
1543
1712
|
defaultVariants: { variant: "default" }
|
|
1544
1713
|
});
|
|
1545
|
-
function
|
|
1546
|
-
return /* @__PURE__ */ i(
|
|
1714
|
+
function Vn({ className: e, variant: t = "default", ...n }) {
|
|
1715
|
+
return /* @__PURE__ */ i(O.List, {
|
|
1547
1716
|
"data-slot": "tabs-list",
|
|
1548
1717
|
"data-variant": t,
|
|
1549
|
-
className:
|
|
1718
|
+
className: j(Bn({ variant: t }), e),
|
|
1550
1719
|
...n
|
|
1551
1720
|
});
|
|
1552
1721
|
}
|
|
1553
|
-
function
|
|
1554
|
-
return /* @__PURE__ */ i(
|
|
1722
|
+
function Hn({ className: e, ...t }) {
|
|
1723
|
+
return /* @__PURE__ */ i(O.Trigger, {
|
|
1555
1724
|
"data-slot": "tabs-trigger",
|
|
1556
|
-
className:
|
|
1725
|
+
className: j("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium text-foreground/60 transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-active:bg-background data-active:text-foreground group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:shadow-none after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1557
1726
|
...t
|
|
1558
1727
|
});
|
|
1559
1728
|
}
|
|
1560
|
-
function
|
|
1561
|
-
return /* @__PURE__ */ i(
|
|
1729
|
+
function Un({ className: e, ...t }) {
|
|
1730
|
+
return /* @__PURE__ */ i(O.Content, {
|
|
1562
1731
|
"data-slot": "tabs-content",
|
|
1563
|
-
className:
|
|
1732
|
+
className: j("flex-1 text-sm outline-none", e),
|
|
1564
1733
|
...t
|
|
1565
1734
|
});
|
|
1566
1735
|
}
|
|
1567
1736
|
//#endregion
|
|
1568
1737
|
//#region src/components/ui/textarea.tsx
|
|
1569
|
-
function
|
|
1738
|
+
function Wn({ className: e, ...t }) {
|
|
1570
1739
|
return /* @__PURE__ */ i("textarea", {
|
|
1571
1740
|
"data-slot": "textarea",
|
|
1572
|
-
className:
|
|
1741
|
+
className: j("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
1573
1742
|
...t
|
|
1574
1743
|
});
|
|
1575
1744
|
}
|
|
1576
1745
|
//#endregion
|
|
1577
|
-
export {
|
|
1746
|
+
export { ve as AlertDialog, Ee as AlertDialogAction, De as AlertDialogCancel, be as AlertDialogContent, Te as AlertDialogDescription, Se as AlertDialogFooter, xe as AlertDialogHeader, Ce as AlertDialogMedia, U as AlertDialogOverlay, H as AlertDialogPortal, we as AlertDialogTitle, ye as AlertDialogTrigger, me as AuthCard, he as AuthLegalNotice, Oe as Avatar, je as AvatarBadge, Ae as AvatarFallback, Me as AvatarGroup, Ne as AvatarGroupCount, ke as AvatarImage, Pe as Badge, Fe as Breadcrumb, Le as BreadcrumbItem, Re as BreadcrumbLink, Ie as BreadcrumbList, ze as BreadcrumbPage, Be as BreadcrumbSeparator, I as Button, Ve as Calendar, G as CalendarDayButton, se as Card, de as CardAction, fe as CardContent, ue as CardDescription, pe as CardFooter, ce as CardHeader, le as CardTitle, He as Checkbox, Ue as Collapsible, Ge as CollapsibleContent, We as CollapsibleTrigger, Ke as Dialog, Je as DialogClose, Ye as DialogContent, $e as DialogDescription, Ze as DialogFooter, Xe as DialogHeader, q as DialogOverlay, K as DialogPortal, Qe as DialogTitle, qe as DialogTrigger, et as DropdownMenu, ot as DropdownMenuCheckboxItem, rt as DropdownMenuContent, it as DropdownMenuGroup, at as DropdownMenuItem, lt as DropdownMenuLabel, tt as DropdownMenuPortal, st as DropdownMenuRadioGroup, ct as DropdownMenuRadioItem, ut as DropdownMenuSeparator, dt as DropdownMenuShortcut, ft as DropdownMenuSub, mt as DropdownMenuSubContent, pt as DropdownMenuSubTrigger, nt as DropdownMenuTrigger, L as Input, M as InputOTP, N as InputOTPGroup, P as InputOTPSlot, ht as Label, ge as OneTimeCodeInput, gt as Pagination, _t as PaginationContent, vt as PaginationItem, J as PaginationLink, bt as PaginationNext, yt as PaginationPrevious, xt as Popover, wt as PopoverAnchor, Ct as PopoverContent, Dt as PopoverDescription, Tt as PopoverHeader, Et as PopoverTitle, St as PopoverTrigger, B as SIGN_IN_FLOW_INITIAL, Ot as Select, Mt as SelectContent, kt as SelectGroup, Pt as SelectItem, Nt as SelectLabel, X as SelectScrollDownButton, Y as SelectScrollUpButton, Ft as SelectSeparator, jt as SelectTrigger, At as SelectValue, It as Separator, Lt as Sheet, zt as SheetClose, Ht as SheetContent, Kt as SheetDescription, Wt as SheetFooter, Ut as SheetHeader, Gt as SheetTitle, Rt as SheetTrigger, sn as Sidebar, hn as SidebarContent, pn as SidebarFooter, gn as SidebarGroup, vn as SidebarGroupAction, yn as SidebarGroupContent, _n as SidebarGroupLabel, fn as SidebarHeader, dn as SidebarInput, un as SidebarInset, bn as SidebarMenu, wn as SidebarMenuAction, Tn as SidebarMenuBadge, Cn as SidebarMenuButton, xn as SidebarMenuItem, En as SidebarMenuSkeleton, Dn as SidebarMenuSub, kn as SidebarMenuSubButton, On as SidebarMenuSubItem, on as SidebarProvider, ln as SidebarRail, mn as SidebarSeparator, cn as SidebarTrigger, z as SignInButton, _e as SignInFlow, Q as Skeleton, jn as Table, Nn as TableBody, Rn as TableCaption, Ln as TableCell, Pn as TableFooter, In as TableHead, Mn as TableHeader, Fn as TableRow, zn as Tabs, Un as TabsContent, Vn as TabsList, Hn as TabsTrigger, Wn as Textarea, An as Toaster, Yt as Tooltip, Zt as TooltipContent, Jt as TooltipProvider, Xt as TooltipTrigger, W as badgeVariants, F as buttonVariants, R as claimInFlight, V as signInFlowReducer, $ as useSidebar };
|