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