@clidey/ux 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +284 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1251 -0
- package/dist/styles.css +120 -0
- package/dist/vite.svg +1 -0
- package/package.json +89 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1251 @@
|
|
|
1
|
+
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as _, useState as M, useEffect as P, useContext as D } from "react";
|
|
3
|
+
import { Slot as b } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as h } from "class-variance-authority";
|
|
5
|
+
import { clsx as I } from "clsx";
|
|
6
|
+
import { twMerge as S } from "tailwind-merge";
|
|
7
|
+
import * as d from "@radix-ui/react-context-menu";
|
|
8
|
+
import { CheckIcon as w, CircleIcon as y, ChevronRightIcon as v, MoreHorizontalIcon as R, ChevronLeftIcon as L, ChevronRight as j, Sun as B, Moon as G } from "lucide-react";
|
|
9
|
+
import { Drawer as l } from "vaul";
|
|
10
|
+
import * as s from "@radix-ui/react-dropdown-menu";
|
|
11
|
+
import * as H from "@radix-ui/react-label";
|
|
12
|
+
import * as p from "@radix-ui/react-popover";
|
|
13
|
+
import { useTheme as E } from "next-themes";
|
|
14
|
+
import { Toaster as V } from "sonner";
|
|
15
|
+
import * as f from "@radix-ui/react-tabs";
|
|
16
|
+
import * as m from "@radix-ui/react-tooltip";
|
|
17
|
+
function r(...e) {
|
|
18
|
+
return S(I(e));
|
|
19
|
+
}
|
|
20
|
+
const $ = h(
|
|
21
|
+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
26
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
27
|
+
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
28
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
variant: "default"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
function de({
|
|
37
|
+
className: e,
|
|
38
|
+
variant: t,
|
|
39
|
+
asChild: o = !1,
|
|
40
|
+
...n
|
|
41
|
+
}) {
|
|
42
|
+
return /* @__PURE__ */ a(
|
|
43
|
+
o ? b : "span",
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "badge",
|
|
46
|
+
className: r($({ variant: t }), e),
|
|
47
|
+
...n
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
const N = h(
|
|
52
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
53
|
+
{
|
|
54
|
+
variants: {
|
|
55
|
+
variant: {
|
|
56
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
57
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
58
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
59
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
60
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
61
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
62
|
+
},
|
|
63
|
+
size: {
|
|
64
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
65
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
66
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
67
|
+
icon: "size-9"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
variant: "default",
|
|
72
|
+
size: "default"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
function F({
|
|
77
|
+
className: e,
|
|
78
|
+
variant: t,
|
|
79
|
+
size: o,
|
|
80
|
+
asChild: n = !1,
|
|
81
|
+
...c
|
|
82
|
+
}) {
|
|
83
|
+
return /* @__PURE__ */ a(
|
|
84
|
+
n ? b : "button",
|
|
85
|
+
{
|
|
86
|
+
"data-slot": "button",
|
|
87
|
+
className: r(N({ variant: t, size: o, className: e })),
|
|
88
|
+
...c
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function se({ className: e, ...t }) {
|
|
93
|
+
return /* @__PURE__ */ a(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
"data-slot": "card",
|
|
97
|
+
className: r(
|
|
98
|
+
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
99
|
+
e
|
|
100
|
+
),
|
|
101
|
+
...t
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function le({ className: e, ...t }) {
|
|
106
|
+
return /* @__PURE__ */ a(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
"data-slot": "card-header",
|
|
110
|
+
className: r(
|
|
111
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
112
|
+
e
|
|
113
|
+
),
|
|
114
|
+
...t
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
function ce({ className: e, ...t }) {
|
|
119
|
+
return /* @__PURE__ */ a(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
"data-slot": "card-title",
|
|
123
|
+
className: r("leading-none font-semibold", e),
|
|
124
|
+
...t
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
function ue({ className: e, ...t }) {
|
|
129
|
+
return /* @__PURE__ */ a(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
"data-slot": "card-description",
|
|
133
|
+
className: r("text-muted-foreground text-sm", e),
|
|
134
|
+
...t
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
function me({ className: e, ...t }) {
|
|
139
|
+
return /* @__PURE__ */ a(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
"data-slot": "card-content",
|
|
143
|
+
className: r("px-6", e),
|
|
144
|
+
...t
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function pe({ className: e, ...t }) {
|
|
149
|
+
return /* @__PURE__ */ a(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
"data-slot": "card-footer",
|
|
153
|
+
className: r("flex items-center px-6 [.border-t]:pt-6", e),
|
|
154
|
+
...t
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
function fe({
|
|
159
|
+
...e
|
|
160
|
+
}) {
|
|
161
|
+
return /* @__PURE__ */ a(d.Root, { "data-slot": "context-menu", ...e });
|
|
162
|
+
}
|
|
163
|
+
function ge({
|
|
164
|
+
...e
|
|
165
|
+
}) {
|
|
166
|
+
return /* @__PURE__ */ a(d.Trigger, { "data-slot": "context-menu-trigger", ...e });
|
|
167
|
+
}
|
|
168
|
+
function be({
|
|
169
|
+
...e
|
|
170
|
+
}) {
|
|
171
|
+
return /* @__PURE__ */ a(d.Sub, { "data-slot": "context-menu-sub", ...e });
|
|
172
|
+
}
|
|
173
|
+
function ve({
|
|
174
|
+
...e
|
|
175
|
+
}) {
|
|
176
|
+
return /* @__PURE__ */ a(
|
|
177
|
+
d.RadioGroup,
|
|
178
|
+
{
|
|
179
|
+
"data-slot": "context-menu-radio-group",
|
|
180
|
+
...e
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
function xe({
|
|
185
|
+
className: e,
|
|
186
|
+
inset: t,
|
|
187
|
+
children: o,
|
|
188
|
+
...n
|
|
189
|
+
}) {
|
|
190
|
+
return /* @__PURE__ */ i(
|
|
191
|
+
d.SubTrigger,
|
|
192
|
+
{
|
|
193
|
+
"data-slot": "context-menu-sub-trigger",
|
|
194
|
+
"data-inset": t,
|
|
195
|
+
className: r(
|
|
196
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
197
|
+
e
|
|
198
|
+
),
|
|
199
|
+
...n,
|
|
200
|
+
children: [
|
|
201
|
+
o,
|
|
202
|
+
/* @__PURE__ */ a(v, { className: "ml-auto" })
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
function he({
|
|
208
|
+
className: e,
|
|
209
|
+
...t
|
|
210
|
+
}) {
|
|
211
|
+
return /* @__PURE__ */ a(
|
|
212
|
+
d.SubContent,
|
|
213
|
+
{
|
|
214
|
+
"data-slot": "context-menu-sub-content",
|
|
215
|
+
className: r(
|
|
216
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
217
|
+
e
|
|
218
|
+
),
|
|
219
|
+
...t
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
function we({
|
|
224
|
+
className: e,
|
|
225
|
+
...t
|
|
226
|
+
}) {
|
|
227
|
+
return /* @__PURE__ */ a(d.Portal, { children: /* @__PURE__ */ a(
|
|
228
|
+
d.Content,
|
|
229
|
+
{
|
|
230
|
+
"data-slot": "context-menu-content",
|
|
231
|
+
className: r(
|
|
232
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
233
|
+
e
|
|
234
|
+
),
|
|
235
|
+
...t
|
|
236
|
+
}
|
|
237
|
+
) });
|
|
238
|
+
}
|
|
239
|
+
function ye({
|
|
240
|
+
className: e,
|
|
241
|
+
inset: t,
|
|
242
|
+
variant: o = "default",
|
|
243
|
+
...n
|
|
244
|
+
}) {
|
|
245
|
+
return /* @__PURE__ */ a(
|
|
246
|
+
d.Item,
|
|
247
|
+
{
|
|
248
|
+
"data-slot": "context-menu-item",
|
|
249
|
+
"data-inset": t,
|
|
250
|
+
"data-variant": o,
|
|
251
|
+
className: r(
|
|
252
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
253
|
+
e
|
|
254
|
+
),
|
|
255
|
+
...n
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
function Ne({
|
|
260
|
+
className: e,
|
|
261
|
+
children: t,
|
|
262
|
+
checked: o,
|
|
263
|
+
...n
|
|
264
|
+
}) {
|
|
265
|
+
return /* @__PURE__ */ i(
|
|
266
|
+
d.CheckboxItem,
|
|
267
|
+
{
|
|
268
|
+
"data-slot": "context-menu-checkbox-item",
|
|
269
|
+
className: r(
|
|
270
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
271
|
+
e
|
|
272
|
+
),
|
|
273
|
+
checked: o,
|
|
274
|
+
...n,
|
|
275
|
+
children: [
|
|
276
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d.ItemIndicator, { children: /* @__PURE__ */ a(w, { className: "size-4" }) }) }),
|
|
277
|
+
t
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
function ke({
|
|
283
|
+
className: e,
|
|
284
|
+
children: t,
|
|
285
|
+
...o
|
|
286
|
+
}) {
|
|
287
|
+
return /* @__PURE__ */ i(
|
|
288
|
+
d.RadioItem,
|
|
289
|
+
{
|
|
290
|
+
"data-slot": "context-menu-radio-item",
|
|
291
|
+
className: r(
|
|
292
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
293
|
+
e
|
|
294
|
+
),
|
|
295
|
+
...o,
|
|
296
|
+
children: [
|
|
297
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d.ItemIndicator, { children: /* @__PURE__ */ a(y, { className: "size-2 fill-current" }) }) }),
|
|
298
|
+
t
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
function Ce({
|
|
304
|
+
className: e,
|
|
305
|
+
inset: t,
|
|
306
|
+
...o
|
|
307
|
+
}) {
|
|
308
|
+
return /* @__PURE__ */ a(
|
|
309
|
+
d.Label,
|
|
310
|
+
{
|
|
311
|
+
"data-slot": "context-menu-label",
|
|
312
|
+
"data-inset": t,
|
|
313
|
+
className: r(
|
|
314
|
+
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
315
|
+
e
|
|
316
|
+
),
|
|
317
|
+
...o
|
|
318
|
+
}
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
function ze({
|
|
322
|
+
className: e,
|
|
323
|
+
...t
|
|
324
|
+
}) {
|
|
325
|
+
return /* @__PURE__ */ a(
|
|
326
|
+
d.Separator,
|
|
327
|
+
{
|
|
328
|
+
"data-slot": "context-menu-separator",
|
|
329
|
+
className: r("bg-border -mx-1 my-1 h-px", e),
|
|
330
|
+
...t
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
function Te({
|
|
335
|
+
className: e,
|
|
336
|
+
...t
|
|
337
|
+
}) {
|
|
338
|
+
return /* @__PURE__ */ a(
|
|
339
|
+
"span",
|
|
340
|
+
{
|
|
341
|
+
"data-slot": "context-menu-shortcut",
|
|
342
|
+
className: r(
|
|
343
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
344
|
+
e
|
|
345
|
+
),
|
|
346
|
+
...t
|
|
347
|
+
}
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
function _e({
|
|
351
|
+
...e
|
|
352
|
+
}) {
|
|
353
|
+
return /* @__PURE__ */ a(l.Root, { "data-slot": "drawer", ...e });
|
|
354
|
+
}
|
|
355
|
+
function Me({
|
|
356
|
+
...e
|
|
357
|
+
}) {
|
|
358
|
+
return /* @__PURE__ */ a(l.Trigger, { "data-slot": "drawer-trigger", ...e });
|
|
359
|
+
}
|
|
360
|
+
function O({
|
|
361
|
+
...e
|
|
362
|
+
}) {
|
|
363
|
+
return /* @__PURE__ */ a(l.Portal, { "data-slot": "drawer-portal", ...e });
|
|
364
|
+
}
|
|
365
|
+
function Pe({
|
|
366
|
+
...e
|
|
367
|
+
}) {
|
|
368
|
+
return /* @__PURE__ */ a(l.Close, { "data-slot": "drawer-close", ...e });
|
|
369
|
+
}
|
|
370
|
+
function q({
|
|
371
|
+
className: e,
|
|
372
|
+
...t
|
|
373
|
+
}) {
|
|
374
|
+
return /* @__PURE__ */ a(
|
|
375
|
+
l.Overlay,
|
|
376
|
+
{
|
|
377
|
+
"data-slot": "drawer-overlay",
|
|
378
|
+
className: r(
|
|
379
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
380
|
+
e
|
|
381
|
+
),
|
|
382
|
+
...t
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
function De({
|
|
387
|
+
className: e,
|
|
388
|
+
children: t,
|
|
389
|
+
...o
|
|
390
|
+
}) {
|
|
391
|
+
return /* @__PURE__ */ i(O, { "data-slot": "drawer-portal", children: [
|
|
392
|
+
/* @__PURE__ */ a(q, {}),
|
|
393
|
+
/* @__PURE__ */ i(
|
|
394
|
+
l.Content,
|
|
395
|
+
{
|
|
396
|
+
"data-slot": "drawer-content",
|
|
397
|
+
className: r(
|
|
398
|
+
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
399
|
+
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
400
|
+
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
401
|
+
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
402
|
+
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
403
|
+
e
|
|
404
|
+
),
|
|
405
|
+
...o,
|
|
406
|
+
children: [
|
|
407
|
+
/* @__PURE__ */ a("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
408
|
+
t
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
] });
|
|
413
|
+
}
|
|
414
|
+
function Ie({ className: e, ...t }) {
|
|
415
|
+
return /* @__PURE__ */ a(
|
|
416
|
+
"div",
|
|
417
|
+
{
|
|
418
|
+
"data-slot": "drawer-header",
|
|
419
|
+
className: r(
|
|
420
|
+
"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
|
|
421
|
+
e
|
|
422
|
+
),
|
|
423
|
+
...t
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
function Se({ className: e, ...t }) {
|
|
428
|
+
return /* @__PURE__ */ a(
|
|
429
|
+
"div",
|
|
430
|
+
{
|
|
431
|
+
"data-slot": "drawer-footer",
|
|
432
|
+
className: r("mt-auto flex flex-col gap-2 p-4", e),
|
|
433
|
+
...t
|
|
434
|
+
}
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
function Re({
|
|
438
|
+
className: e,
|
|
439
|
+
...t
|
|
440
|
+
}) {
|
|
441
|
+
return /* @__PURE__ */ a(
|
|
442
|
+
l.Title,
|
|
443
|
+
{
|
|
444
|
+
"data-slot": "drawer-title",
|
|
445
|
+
className: r("text-foreground font-semibold", e),
|
|
446
|
+
...t
|
|
447
|
+
}
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
function Le({
|
|
451
|
+
className: e,
|
|
452
|
+
...t
|
|
453
|
+
}) {
|
|
454
|
+
return /* @__PURE__ */ a(
|
|
455
|
+
l.Description,
|
|
456
|
+
{
|
|
457
|
+
"data-slot": "drawer-description",
|
|
458
|
+
className: r("text-muted-foreground text-sm", e),
|
|
459
|
+
...t
|
|
460
|
+
}
|
|
461
|
+
);
|
|
462
|
+
}
|
|
463
|
+
function J({
|
|
464
|
+
...e
|
|
465
|
+
}) {
|
|
466
|
+
return /* @__PURE__ */ a(s.Root, { "data-slot": "dropdown-menu", ...e });
|
|
467
|
+
}
|
|
468
|
+
function Q({
|
|
469
|
+
...e
|
|
470
|
+
}) {
|
|
471
|
+
return /* @__PURE__ */ a(
|
|
472
|
+
s.Trigger,
|
|
473
|
+
{
|
|
474
|
+
"data-slot": "dropdown-menu-trigger",
|
|
475
|
+
...e
|
|
476
|
+
}
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
function U({
|
|
480
|
+
className: e,
|
|
481
|
+
sideOffset: t = 4,
|
|
482
|
+
...o
|
|
483
|
+
}) {
|
|
484
|
+
return /* @__PURE__ */ a(s.Portal, { children: /* @__PURE__ */ a(
|
|
485
|
+
s.Content,
|
|
486
|
+
{
|
|
487
|
+
"data-slot": "dropdown-menu-content",
|
|
488
|
+
sideOffset: t,
|
|
489
|
+
className: r(
|
|
490
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
491
|
+
e
|
|
492
|
+
),
|
|
493
|
+
...o
|
|
494
|
+
}
|
|
495
|
+
) });
|
|
496
|
+
}
|
|
497
|
+
function g({
|
|
498
|
+
className: e,
|
|
499
|
+
inset: t,
|
|
500
|
+
variant: o = "default",
|
|
501
|
+
...n
|
|
502
|
+
}) {
|
|
503
|
+
return /* @__PURE__ */ a(
|
|
504
|
+
s.Item,
|
|
505
|
+
{
|
|
506
|
+
"data-slot": "dropdown-menu-item",
|
|
507
|
+
"data-inset": t,
|
|
508
|
+
"data-variant": o,
|
|
509
|
+
className: r(
|
|
510
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
511
|
+
e
|
|
512
|
+
),
|
|
513
|
+
...n
|
|
514
|
+
}
|
|
515
|
+
);
|
|
516
|
+
}
|
|
517
|
+
function je({
|
|
518
|
+
className: e,
|
|
519
|
+
children: t,
|
|
520
|
+
checked: o,
|
|
521
|
+
...n
|
|
522
|
+
}) {
|
|
523
|
+
return /* @__PURE__ */ i(
|
|
524
|
+
s.CheckboxItem,
|
|
525
|
+
{
|
|
526
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
527
|
+
className: r(
|
|
528
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
529
|
+
e
|
|
530
|
+
),
|
|
531
|
+
checked: o,
|
|
532
|
+
...n,
|
|
533
|
+
children: [
|
|
534
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(w, { className: "size-4" }) }) }),
|
|
535
|
+
t
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
);
|
|
539
|
+
}
|
|
540
|
+
function Be({
|
|
541
|
+
...e
|
|
542
|
+
}) {
|
|
543
|
+
return /* @__PURE__ */ a(
|
|
544
|
+
s.RadioGroup,
|
|
545
|
+
{
|
|
546
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
547
|
+
...e
|
|
548
|
+
}
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
function Ge({
|
|
552
|
+
className: e,
|
|
553
|
+
children: t,
|
|
554
|
+
...o
|
|
555
|
+
}) {
|
|
556
|
+
return /* @__PURE__ */ i(
|
|
557
|
+
s.RadioItem,
|
|
558
|
+
{
|
|
559
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
560
|
+
className: r(
|
|
561
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
562
|
+
e
|
|
563
|
+
),
|
|
564
|
+
...o,
|
|
565
|
+
children: [
|
|
566
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(y, { className: "size-2 fill-current" }) }) }),
|
|
567
|
+
t
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
);
|
|
571
|
+
}
|
|
572
|
+
function He({
|
|
573
|
+
className: e,
|
|
574
|
+
inset: t,
|
|
575
|
+
...o
|
|
576
|
+
}) {
|
|
577
|
+
return /* @__PURE__ */ a(
|
|
578
|
+
s.Label,
|
|
579
|
+
{
|
|
580
|
+
"data-slot": "dropdown-menu-label",
|
|
581
|
+
"data-inset": t,
|
|
582
|
+
className: r(
|
|
583
|
+
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
584
|
+
e
|
|
585
|
+
),
|
|
586
|
+
...o
|
|
587
|
+
}
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
function Ee({
|
|
591
|
+
className: e,
|
|
592
|
+
...t
|
|
593
|
+
}) {
|
|
594
|
+
return /* @__PURE__ */ a(
|
|
595
|
+
s.Separator,
|
|
596
|
+
{
|
|
597
|
+
"data-slot": "dropdown-menu-separator",
|
|
598
|
+
className: r("bg-border -mx-1 my-1 h-px", e),
|
|
599
|
+
...t
|
|
600
|
+
}
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
function Ve({
|
|
604
|
+
className: e,
|
|
605
|
+
...t
|
|
606
|
+
}) {
|
|
607
|
+
return /* @__PURE__ */ a(
|
|
608
|
+
"span",
|
|
609
|
+
{
|
|
610
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
611
|
+
className: r(
|
|
612
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
613
|
+
e
|
|
614
|
+
),
|
|
615
|
+
...t
|
|
616
|
+
}
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
function $e({
|
|
620
|
+
...e
|
|
621
|
+
}) {
|
|
622
|
+
return /* @__PURE__ */ a(s.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
623
|
+
}
|
|
624
|
+
function Fe({
|
|
625
|
+
className: e,
|
|
626
|
+
inset: t,
|
|
627
|
+
children: o,
|
|
628
|
+
...n
|
|
629
|
+
}) {
|
|
630
|
+
return /* @__PURE__ */ i(
|
|
631
|
+
s.SubTrigger,
|
|
632
|
+
{
|
|
633
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
634
|
+
"data-inset": t,
|
|
635
|
+
className: r(
|
|
636
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
637
|
+
e
|
|
638
|
+
),
|
|
639
|
+
...n,
|
|
640
|
+
children: [
|
|
641
|
+
o,
|
|
642
|
+
/* @__PURE__ */ a(v, { className: "ml-auto size-4" })
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
function Oe({
|
|
648
|
+
className: e,
|
|
649
|
+
...t
|
|
650
|
+
}) {
|
|
651
|
+
return /* @__PURE__ */ a(
|
|
652
|
+
s.SubContent,
|
|
653
|
+
{
|
|
654
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
655
|
+
className: r(
|
|
656
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
657
|
+
e
|
|
658
|
+
),
|
|
659
|
+
...t
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
}
|
|
663
|
+
function qe({ className: e, type: t, ...o }) {
|
|
664
|
+
return /* @__PURE__ */ a(
|
|
665
|
+
"input",
|
|
666
|
+
{
|
|
667
|
+
type: t,
|
|
668
|
+
"data-slot": "input",
|
|
669
|
+
className: r(
|
|
670
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
671
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
672
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
673
|
+
e
|
|
674
|
+
),
|
|
675
|
+
...o
|
|
676
|
+
}
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
function Je({
|
|
680
|
+
className: e,
|
|
681
|
+
...t
|
|
682
|
+
}) {
|
|
683
|
+
return /* @__PURE__ */ a(
|
|
684
|
+
H.Root,
|
|
685
|
+
{
|
|
686
|
+
"data-slot": "label",
|
|
687
|
+
className: r(
|
|
688
|
+
"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",
|
|
689
|
+
e
|
|
690
|
+
),
|
|
691
|
+
...t
|
|
692
|
+
}
|
|
693
|
+
);
|
|
694
|
+
}
|
|
695
|
+
function Qe({ className: e, ...t }) {
|
|
696
|
+
return /* @__PURE__ */ a(
|
|
697
|
+
"nav",
|
|
698
|
+
{
|
|
699
|
+
role: "navigation",
|
|
700
|
+
"aria-label": "pagination",
|
|
701
|
+
"data-slot": "pagination",
|
|
702
|
+
className: r("mx-auto flex w-full justify-center", e),
|
|
703
|
+
...t
|
|
704
|
+
}
|
|
705
|
+
);
|
|
706
|
+
}
|
|
707
|
+
function Ue({
|
|
708
|
+
className: e,
|
|
709
|
+
...t
|
|
710
|
+
}) {
|
|
711
|
+
return /* @__PURE__ */ a(
|
|
712
|
+
"ul",
|
|
713
|
+
{
|
|
714
|
+
"data-slot": "pagination-content",
|
|
715
|
+
className: r("flex flex-row items-center gap-1", e),
|
|
716
|
+
...t
|
|
717
|
+
}
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
function We({ ...e }) {
|
|
721
|
+
return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
|
|
722
|
+
}
|
|
723
|
+
function k({
|
|
724
|
+
className: e,
|
|
725
|
+
isActive: t,
|
|
726
|
+
size: o = "icon",
|
|
727
|
+
...n
|
|
728
|
+
}) {
|
|
729
|
+
return /* @__PURE__ */ a(
|
|
730
|
+
"a",
|
|
731
|
+
{
|
|
732
|
+
"aria-current": t ? "page" : void 0,
|
|
733
|
+
"data-slot": "pagination-link",
|
|
734
|
+
"data-active": t,
|
|
735
|
+
className: r(
|
|
736
|
+
N({
|
|
737
|
+
variant: t ? "outline" : "ghost",
|
|
738
|
+
size: o
|
|
739
|
+
}),
|
|
740
|
+
e
|
|
741
|
+
),
|
|
742
|
+
...n
|
|
743
|
+
}
|
|
744
|
+
);
|
|
745
|
+
}
|
|
746
|
+
function Xe({
|
|
747
|
+
className: e,
|
|
748
|
+
...t
|
|
749
|
+
}) {
|
|
750
|
+
return /* @__PURE__ */ i(
|
|
751
|
+
k,
|
|
752
|
+
{
|
|
753
|
+
"aria-label": "Go to previous page",
|
|
754
|
+
size: "default",
|
|
755
|
+
className: r("gap-1 px-2.5 sm:pl-2.5", e),
|
|
756
|
+
...t,
|
|
757
|
+
children: [
|
|
758
|
+
/* @__PURE__ */ a(L, {}),
|
|
759
|
+
/* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Previous" })
|
|
760
|
+
]
|
|
761
|
+
}
|
|
762
|
+
);
|
|
763
|
+
}
|
|
764
|
+
function Ye({
|
|
765
|
+
className: e,
|
|
766
|
+
...t
|
|
767
|
+
}) {
|
|
768
|
+
return /* @__PURE__ */ i(
|
|
769
|
+
k,
|
|
770
|
+
{
|
|
771
|
+
"aria-label": "Go to next page",
|
|
772
|
+
size: "default",
|
|
773
|
+
className: r("gap-1 px-2.5 sm:pr-2.5", e),
|
|
774
|
+
...t,
|
|
775
|
+
children: [
|
|
776
|
+
/* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Next" }),
|
|
777
|
+
/* @__PURE__ */ a(v, {})
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
function Ze({
|
|
783
|
+
className: e,
|
|
784
|
+
...t
|
|
785
|
+
}) {
|
|
786
|
+
return /* @__PURE__ */ i(
|
|
787
|
+
"span",
|
|
788
|
+
{
|
|
789
|
+
"aria-hidden": !0,
|
|
790
|
+
"data-slot": "pagination-ellipsis",
|
|
791
|
+
className: r("flex size-9 items-center justify-center", e),
|
|
792
|
+
...t,
|
|
793
|
+
children: [
|
|
794
|
+
/* @__PURE__ */ a(R, { className: "size-4" }),
|
|
795
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
|
|
796
|
+
]
|
|
797
|
+
}
|
|
798
|
+
);
|
|
799
|
+
}
|
|
800
|
+
function Ae({
|
|
801
|
+
...e
|
|
802
|
+
}) {
|
|
803
|
+
return /* @__PURE__ */ a(p.Root, { "data-slot": "popover", ...e });
|
|
804
|
+
}
|
|
805
|
+
function Ke({
|
|
806
|
+
...e
|
|
807
|
+
}) {
|
|
808
|
+
return /* @__PURE__ */ a(p.Trigger, { "data-slot": "popover-trigger", ...e });
|
|
809
|
+
}
|
|
810
|
+
function et({
|
|
811
|
+
className: e,
|
|
812
|
+
align: t = "center",
|
|
813
|
+
sideOffset: o = 4,
|
|
814
|
+
...n
|
|
815
|
+
}) {
|
|
816
|
+
return /* @__PURE__ */ a(p.Portal, { children: /* @__PURE__ */ a(
|
|
817
|
+
p.Content,
|
|
818
|
+
{
|
|
819
|
+
"data-slot": "popover-content",
|
|
820
|
+
align: t,
|
|
821
|
+
sideOffset: o,
|
|
822
|
+
className: r(
|
|
823
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
824
|
+
e
|
|
825
|
+
),
|
|
826
|
+
...n
|
|
827
|
+
}
|
|
828
|
+
) });
|
|
829
|
+
}
|
|
830
|
+
function tt({ className: e, ...t }) {
|
|
831
|
+
return /* @__PURE__ */ a(
|
|
832
|
+
"div",
|
|
833
|
+
{
|
|
834
|
+
"data-slot": "skeleton",
|
|
835
|
+
className: r("bg-accent animate-pulse rounded-md", e),
|
|
836
|
+
...t
|
|
837
|
+
}
|
|
838
|
+
);
|
|
839
|
+
}
|
|
840
|
+
const at = ({ ...e }) => {
|
|
841
|
+
const { theme: t = "system" } = E();
|
|
842
|
+
return /* @__PURE__ */ a(
|
|
843
|
+
V,
|
|
844
|
+
{
|
|
845
|
+
theme: t,
|
|
846
|
+
className: "toaster group",
|
|
847
|
+
style: {
|
|
848
|
+
"--normal-bg": "var(--popover)",
|
|
849
|
+
"--normal-text": "var(--popover-foreground)",
|
|
850
|
+
"--normal-border": "var(--border)"
|
|
851
|
+
},
|
|
852
|
+
...e
|
|
853
|
+
}
|
|
854
|
+
);
|
|
855
|
+
};
|
|
856
|
+
function rt({ className: e, ...t }) {
|
|
857
|
+
return /* @__PURE__ */ a(
|
|
858
|
+
"div",
|
|
859
|
+
{
|
|
860
|
+
"data-slot": "table-container",
|
|
861
|
+
className: "relative w-full overflow-x-auto",
|
|
862
|
+
children: /* @__PURE__ */ a(
|
|
863
|
+
"table",
|
|
864
|
+
{
|
|
865
|
+
"data-slot": "table",
|
|
866
|
+
className: r("w-full caption-bottom text-sm", e),
|
|
867
|
+
...t
|
|
868
|
+
}
|
|
869
|
+
)
|
|
870
|
+
}
|
|
871
|
+
);
|
|
872
|
+
}
|
|
873
|
+
function ot({ className: e, ...t }) {
|
|
874
|
+
return /* @__PURE__ */ a(
|
|
875
|
+
"thead",
|
|
876
|
+
{
|
|
877
|
+
"data-slot": "table-header",
|
|
878
|
+
className: r("[&_tr]:border-b", e),
|
|
879
|
+
...t
|
|
880
|
+
}
|
|
881
|
+
);
|
|
882
|
+
}
|
|
883
|
+
function nt({ className: e, ...t }) {
|
|
884
|
+
return /* @__PURE__ */ a(
|
|
885
|
+
"tbody",
|
|
886
|
+
{
|
|
887
|
+
"data-slot": "table-body",
|
|
888
|
+
className: r("[&_tr:last-child]:border-0", e),
|
|
889
|
+
...t
|
|
890
|
+
}
|
|
891
|
+
);
|
|
892
|
+
}
|
|
893
|
+
function it({ className: e, ...t }) {
|
|
894
|
+
return /* @__PURE__ */ a(
|
|
895
|
+
"tr",
|
|
896
|
+
{
|
|
897
|
+
"data-slot": "table-row",
|
|
898
|
+
className: r(
|
|
899
|
+
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
900
|
+
e
|
|
901
|
+
),
|
|
902
|
+
...t
|
|
903
|
+
}
|
|
904
|
+
);
|
|
905
|
+
}
|
|
906
|
+
function dt({ className: e, ...t }) {
|
|
907
|
+
return /* @__PURE__ */ a(
|
|
908
|
+
"th",
|
|
909
|
+
{
|
|
910
|
+
"data-slot": "table-head",
|
|
911
|
+
className: r(
|
|
912
|
+
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
913
|
+
e
|
|
914
|
+
),
|
|
915
|
+
...t
|
|
916
|
+
}
|
|
917
|
+
);
|
|
918
|
+
}
|
|
919
|
+
function st({ className: e, ...t }) {
|
|
920
|
+
return /* @__PURE__ */ a(
|
|
921
|
+
"td",
|
|
922
|
+
{
|
|
923
|
+
"data-slot": "table-cell",
|
|
924
|
+
className: r(
|
|
925
|
+
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
926
|
+
e
|
|
927
|
+
),
|
|
928
|
+
...t
|
|
929
|
+
}
|
|
930
|
+
);
|
|
931
|
+
}
|
|
932
|
+
function lt({
|
|
933
|
+
className: e,
|
|
934
|
+
...t
|
|
935
|
+
}) {
|
|
936
|
+
return /* @__PURE__ */ a(
|
|
937
|
+
"caption",
|
|
938
|
+
{
|
|
939
|
+
"data-slot": "table-caption",
|
|
940
|
+
className: r("text-muted-foreground mt-4 text-sm", e),
|
|
941
|
+
...t
|
|
942
|
+
}
|
|
943
|
+
);
|
|
944
|
+
}
|
|
945
|
+
function ct({
|
|
946
|
+
className: e,
|
|
947
|
+
...t
|
|
948
|
+
}) {
|
|
949
|
+
return /* @__PURE__ */ a(
|
|
950
|
+
f.Root,
|
|
951
|
+
{
|
|
952
|
+
"data-slot": "tabs",
|
|
953
|
+
className: r("flex flex-col gap-2", e),
|
|
954
|
+
...t
|
|
955
|
+
}
|
|
956
|
+
);
|
|
957
|
+
}
|
|
958
|
+
function ut({
|
|
959
|
+
className: e,
|
|
960
|
+
...t
|
|
961
|
+
}) {
|
|
962
|
+
return /* @__PURE__ */ a(
|
|
963
|
+
f.List,
|
|
964
|
+
{
|
|
965
|
+
"data-slot": "tabs-list",
|
|
966
|
+
className: r(
|
|
967
|
+
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
968
|
+
e
|
|
969
|
+
),
|
|
970
|
+
...t
|
|
971
|
+
}
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
function mt({
|
|
975
|
+
className: e,
|
|
976
|
+
...t
|
|
977
|
+
}) {
|
|
978
|
+
return /* @__PURE__ */ a(
|
|
979
|
+
f.Trigger,
|
|
980
|
+
{
|
|
981
|
+
"data-slot": "tabs-trigger",
|
|
982
|
+
className: r(
|
|
983
|
+
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
984
|
+
e
|
|
985
|
+
),
|
|
986
|
+
...t
|
|
987
|
+
}
|
|
988
|
+
);
|
|
989
|
+
}
|
|
990
|
+
function pt({
|
|
991
|
+
className: e,
|
|
992
|
+
...t
|
|
993
|
+
}) {
|
|
994
|
+
return /* @__PURE__ */ a(
|
|
995
|
+
f.Content,
|
|
996
|
+
{
|
|
997
|
+
"data-slot": "tabs-content",
|
|
998
|
+
className: r("flex-1 outline-none", e),
|
|
999
|
+
...t
|
|
1000
|
+
}
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
function W({
|
|
1004
|
+
delayDuration: e = 0,
|
|
1005
|
+
...t
|
|
1006
|
+
}) {
|
|
1007
|
+
return /* @__PURE__ */ a(
|
|
1008
|
+
m.Provider,
|
|
1009
|
+
{
|
|
1010
|
+
"data-slot": "tooltip-provider",
|
|
1011
|
+
delayDuration: e,
|
|
1012
|
+
...t
|
|
1013
|
+
}
|
|
1014
|
+
);
|
|
1015
|
+
}
|
|
1016
|
+
function ft({
|
|
1017
|
+
...e
|
|
1018
|
+
}) {
|
|
1019
|
+
return /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(m.Root, { "data-slot": "tooltip", ...e }) });
|
|
1020
|
+
}
|
|
1021
|
+
function gt({
|
|
1022
|
+
...e
|
|
1023
|
+
}) {
|
|
1024
|
+
return /* @__PURE__ */ a(m.Trigger, { "data-slot": "tooltip-trigger", ...e });
|
|
1025
|
+
}
|
|
1026
|
+
function bt({
|
|
1027
|
+
className: e,
|
|
1028
|
+
sideOffset: t = 0,
|
|
1029
|
+
children: o,
|
|
1030
|
+
...n
|
|
1031
|
+
}) {
|
|
1032
|
+
return /* @__PURE__ */ a(m.Portal, { children: /* @__PURE__ */ i(
|
|
1033
|
+
m.Content,
|
|
1034
|
+
{
|
|
1035
|
+
"data-slot": "tooltip-content",
|
|
1036
|
+
sideOffset: t,
|
|
1037
|
+
className: r(
|
|
1038
|
+
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
1039
|
+
e
|
|
1040
|
+
),
|
|
1041
|
+
...n,
|
|
1042
|
+
children: [
|
|
1043
|
+
o,
|
|
1044
|
+
/* @__PURE__ */ a(m.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
1045
|
+
]
|
|
1046
|
+
}
|
|
1047
|
+
) });
|
|
1048
|
+
}
|
|
1049
|
+
function vt({ ...e }) {
|
|
1050
|
+
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
|
|
1051
|
+
}
|
|
1052
|
+
function xt({ className: e, ...t }) {
|
|
1053
|
+
return /* @__PURE__ */ a(
|
|
1054
|
+
"ol",
|
|
1055
|
+
{
|
|
1056
|
+
"data-slot": "breadcrumb-list",
|
|
1057
|
+
className: r(
|
|
1058
|
+
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
1059
|
+
e
|
|
1060
|
+
),
|
|
1061
|
+
...t
|
|
1062
|
+
}
|
|
1063
|
+
);
|
|
1064
|
+
}
|
|
1065
|
+
function ht({ className: e, ...t }) {
|
|
1066
|
+
return /* @__PURE__ */ a(
|
|
1067
|
+
"li",
|
|
1068
|
+
{
|
|
1069
|
+
"data-slot": "breadcrumb-item",
|
|
1070
|
+
className: r("inline-flex items-center gap-1.5", e),
|
|
1071
|
+
...t
|
|
1072
|
+
}
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1075
|
+
function wt({
|
|
1076
|
+
asChild: e,
|
|
1077
|
+
className: t,
|
|
1078
|
+
...o
|
|
1079
|
+
}) {
|
|
1080
|
+
return /* @__PURE__ */ a(
|
|
1081
|
+
e ? b : "a",
|
|
1082
|
+
{
|
|
1083
|
+
"data-slot": "breadcrumb-link",
|
|
1084
|
+
className: r("hover:text-foreground transition-colors", t),
|
|
1085
|
+
...o
|
|
1086
|
+
}
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
function yt({ className: e, ...t }) {
|
|
1090
|
+
return /* @__PURE__ */ a(
|
|
1091
|
+
"span",
|
|
1092
|
+
{
|
|
1093
|
+
"data-slot": "breadcrumb-page",
|
|
1094
|
+
role: "link",
|
|
1095
|
+
"aria-disabled": "true",
|
|
1096
|
+
"aria-current": "page",
|
|
1097
|
+
className: r("text-foreground font-normal", e),
|
|
1098
|
+
...t
|
|
1099
|
+
}
|
|
1100
|
+
);
|
|
1101
|
+
}
|
|
1102
|
+
function Nt({
|
|
1103
|
+
children: e,
|
|
1104
|
+
className: t,
|
|
1105
|
+
...o
|
|
1106
|
+
}) {
|
|
1107
|
+
return /* @__PURE__ */ a(
|
|
1108
|
+
"li",
|
|
1109
|
+
{
|
|
1110
|
+
"data-slot": "breadcrumb-separator",
|
|
1111
|
+
role: "presentation",
|
|
1112
|
+
"aria-hidden": "true",
|
|
1113
|
+
className: r("[&>svg]:size-3.5", t),
|
|
1114
|
+
...o,
|
|
1115
|
+
children: e ?? /* @__PURE__ */ a(j, {})
|
|
1116
|
+
}
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
const X = {
|
|
1120
|
+
theme: "system",
|
|
1121
|
+
setTheme: () => null
|
|
1122
|
+
}, C = _(X);
|
|
1123
|
+
function kt({
|
|
1124
|
+
children: e,
|
|
1125
|
+
defaultTheme: t = "system",
|
|
1126
|
+
storageKey: o = "vite-ui-theme",
|
|
1127
|
+
...n
|
|
1128
|
+
}) {
|
|
1129
|
+
const [c, x] = M(
|
|
1130
|
+
() => localStorage.getItem(o) || t
|
|
1131
|
+
);
|
|
1132
|
+
P(() => {
|
|
1133
|
+
const u = window.document.documentElement;
|
|
1134
|
+
if (u.classList.remove("light", "dark"), c === "system") {
|
|
1135
|
+
const T = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1136
|
+
u.classList.add(T);
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
u.classList.add(c);
|
|
1140
|
+
}, [c]);
|
|
1141
|
+
const z = {
|
|
1142
|
+
theme: c,
|
|
1143
|
+
setTheme: (u) => {
|
|
1144
|
+
localStorage.setItem(o, u), x(u);
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
return /* @__PURE__ */ a(C.Provider, { ...n, value: z, children: e });
|
|
1148
|
+
}
|
|
1149
|
+
const Y = () => {
|
|
1150
|
+
const e = D(C);
|
|
1151
|
+
if (e === void 0)
|
|
1152
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
1153
|
+
return e;
|
|
1154
|
+
};
|
|
1155
|
+
function Ct() {
|
|
1156
|
+
const { setTheme: e } = Y();
|
|
1157
|
+
return /* @__PURE__ */ i(J, { children: [
|
|
1158
|
+
/* @__PURE__ */ a(Q, { asChild: !0, children: /* @__PURE__ */ i(F, { variant: "outline", size: "icon", children: [
|
|
1159
|
+
/* @__PURE__ */ a(B, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
|
|
1160
|
+
/* @__PURE__ */ a(G, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
|
|
1161
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle theme" })
|
|
1162
|
+
] }) }),
|
|
1163
|
+
/* @__PURE__ */ i(U, { align: "end", children: [
|
|
1164
|
+
/* @__PURE__ */ a(g, { onClick: () => e("light"), children: "Light" }),
|
|
1165
|
+
/* @__PURE__ */ a(g, { onClick: () => e("dark"), children: "Dark" }),
|
|
1166
|
+
/* @__PURE__ */ a(g, { onClick: () => e("system"), children: "System" })
|
|
1167
|
+
] })
|
|
1168
|
+
] });
|
|
1169
|
+
}
|
|
1170
|
+
export {
|
|
1171
|
+
de as Badge,
|
|
1172
|
+
vt as Breadcrumb,
|
|
1173
|
+
ht as BreadcrumbItem,
|
|
1174
|
+
wt as BreadcrumbLink,
|
|
1175
|
+
xt as BreadcrumbList,
|
|
1176
|
+
yt as BreadcrumbPage,
|
|
1177
|
+
Nt as BreadcrumbSeparator,
|
|
1178
|
+
F as Button,
|
|
1179
|
+
se as Card,
|
|
1180
|
+
me as CardContent,
|
|
1181
|
+
ue as CardDescription,
|
|
1182
|
+
pe as CardFooter,
|
|
1183
|
+
le as CardHeader,
|
|
1184
|
+
ce as CardTitle,
|
|
1185
|
+
fe as ContextMenu,
|
|
1186
|
+
Ne as ContextMenuCheckboxItem,
|
|
1187
|
+
we as ContextMenuContent,
|
|
1188
|
+
ye as ContextMenuItem,
|
|
1189
|
+
Ce as ContextMenuLabel,
|
|
1190
|
+
ve as ContextMenuRadioGroup,
|
|
1191
|
+
ke as ContextMenuRadioItem,
|
|
1192
|
+
ze as ContextMenuSeparator,
|
|
1193
|
+
Te as ContextMenuShortcut,
|
|
1194
|
+
be as ContextMenuSub,
|
|
1195
|
+
he as ContextMenuSubContent,
|
|
1196
|
+
xe as ContextMenuSubTrigger,
|
|
1197
|
+
ge as ContextMenuTrigger,
|
|
1198
|
+
_e as Drawer,
|
|
1199
|
+
Pe as DrawerClose,
|
|
1200
|
+
De as DrawerContent,
|
|
1201
|
+
Le as DrawerDescription,
|
|
1202
|
+
Se as DrawerFooter,
|
|
1203
|
+
Ie as DrawerHeader,
|
|
1204
|
+
Re as DrawerTitle,
|
|
1205
|
+
Me as DrawerTrigger,
|
|
1206
|
+
J as DropdownMenu,
|
|
1207
|
+
je as DropdownMenuCheckboxItem,
|
|
1208
|
+
U as DropdownMenuContent,
|
|
1209
|
+
g as DropdownMenuItem,
|
|
1210
|
+
He as DropdownMenuLabel,
|
|
1211
|
+
Be as DropdownMenuRadioGroup,
|
|
1212
|
+
Ge as DropdownMenuRadioItem,
|
|
1213
|
+
Ee as DropdownMenuSeparator,
|
|
1214
|
+
Ve as DropdownMenuShortcut,
|
|
1215
|
+
$e as DropdownMenuSub,
|
|
1216
|
+
Oe as DropdownMenuSubContent,
|
|
1217
|
+
Fe as DropdownMenuSubTrigger,
|
|
1218
|
+
Q as DropdownMenuTrigger,
|
|
1219
|
+
qe as Input,
|
|
1220
|
+
Je as Label,
|
|
1221
|
+
Ct as ModeToggle,
|
|
1222
|
+
Qe as Pagination,
|
|
1223
|
+
Ue as PaginationContent,
|
|
1224
|
+
Ze as PaginationEllipsis,
|
|
1225
|
+
We as PaginationItem,
|
|
1226
|
+
k as PaginationLink,
|
|
1227
|
+
Ye as PaginationNext,
|
|
1228
|
+
Xe as PaginationPrevious,
|
|
1229
|
+
Ae as Popover,
|
|
1230
|
+
et as PopoverContent,
|
|
1231
|
+
Ke as PopoverTrigger,
|
|
1232
|
+
tt as Skeleton,
|
|
1233
|
+
rt as Table,
|
|
1234
|
+
nt as TableBody,
|
|
1235
|
+
lt as TableCaption,
|
|
1236
|
+
st as TableCell,
|
|
1237
|
+
dt as TableHead,
|
|
1238
|
+
ot as TableHeader,
|
|
1239
|
+
it as TableRow,
|
|
1240
|
+
ct as Tabs,
|
|
1241
|
+
pt as TabsContent,
|
|
1242
|
+
ut as TabsList,
|
|
1243
|
+
mt as TabsTrigger,
|
|
1244
|
+
kt as ThemeProvider,
|
|
1245
|
+
at as Toaster,
|
|
1246
|
+
ft as Tooltip,
|
|
1247
|
+
bt as TooltipContent,
|
|
1248
|
+
W as TooltipProvider,
|
|
1249
|
+
gt as TooltipTrigger,
|
|
1250
|
+
r as cn
|
|
1251
|
+
};
|