@plyaz/ui 0.7.18 → 0.7.20
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/client/calendar.cjs.js +1 -1
- package/dist/client/calendar.es.js +34 -35
- package/dist/client/slider.cjs.js +1 -1
- package/dist/client/slider.es.js +2 -2
- package/dist/client.cjs.js +1 -1
- package/dist/client.es.js +776 -439
- package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/types/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/types/components/Form/Form.d.ts +24 -0
- package/dist/types/components/Form/Form.d.ts.map +1 -0
- package/dist/types/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/types/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts +1 -0
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/dist/types/components/client.d.ts +1 -0
- package/dist/types/components/client.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +7 -3
- package/styles/utilities.css +4 -0
package/dist/client.es.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { TextReveal as
|
|
2
|
-
import { AlertDialog as
|
|
3
|
-
import { Calendar as
|
|
4
|
-
import { Carousel as
|
|
5
|
-
import { Combobox as
|
|
6
|
-
import { InputOTP as
|
|
7
|
-
import { Slider as
|
|
8
|
-
import { Progress as
|
|
9
|
-
import { Accordion as
|
|
10
|
-
import { Avatar as
|
|
11
|
-
import { Checkbox as
|
|
12
|
-
import { ContextMenu as
|
|
13
|
-
import { DropdownMenu as
|
|
14
|
-
import { HoverCard as
|
|
15
|
-
import { RadioGroup as
|
|
16
|
-
import { ScrollArea as
|
|
17
|
-
import { Switch as
|
|
18
|
-
import { Tabs as
|
|
19
|
-
import { Tooltip as
|
|
20
|
-
import { Command as
|
|
21
|
-
import { Dialog as
|
|
22
|
-
import { Drawer as
|
|
23
|
-
import { Sheet as
|
|
24
|
-
import { SheetClose as
|
|
25
|
-
import { Toaster as
|
|
26
|
-
import { Toggle as
|
|
27
|
-
import { Label as
|
|
28
|
-
import { Menubar as
|
|
29
|
-
import { Popover as
|
|
30
|
-
import { jsx as
|
|
31
|
-
import * as
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
1
|
+
import { TextReveal as cr } from "./client/reveal-text.es.js";
|
|
2
|
+
import { AlertDialog as fr, AlertDialogAction as br, AlertDialogCancel as pr, AlertDialogContent as gr, AlertDialogDescription as hr, AlertDialogFooter as xr, AlertDialogHeader as vr, AlertDialogOverlay as Ar, AlertDialogPortal as Cr, AlertDialogTitle as Sr, AlertDialogTrigger as wr } from "./client/alert-dialog.es.js";
|
|
3
|
+
import { Calendar as Mr, CalendarDayButton as Ir } from "./client/calendar.es.js";
|
|
4
|
+
import { Carousel as _r, CarouselContent as Nr, CarouselItem as Er, CarouselNext as Tr, CarouselPrevious as Fr } from "./client/carousel.es.js";
|
|
5
|
+
import { Combobox as Rr } from "./client/combobox.es.js";
|
|
6
|
+
import { InputOTP as Or, InputOTPGroup as Vr, InputOTPSeparator as Lr, InputOTPSlot as Br } from "./client/input-otp.es.js";
|
|
7
|
+
import { Slider as Hr } from "./client/slider.es.js";
|
|
8
|
+
import { Progress as Kr } from "./client/progress.es.js";
|
|
9
|
+
import { Accordion as Wr, AccordionContent as $r, AccordionItem as Jr, AccordionTrigger as Qr } from "./client/accordion.es.js";
|
|
10
|
+
import { Avatar as qr, AvatarFallback as Xr, AvatarImage as Yr } from "./client/avatar.es.js";
|
|
11
|
+
import { Checkbox as ea } from "./client/checkbox.es.js";
|
|
12
|
+
import { ContextMenu as ra, ContextMenuCheckboxItem as aa, ContextMenuContent as oa, ContextMenuGroup as na, ContextMenuItem as ia, ContextMenuLabel as sa, ContextMenuPortal as da, ContextMenuRadioGroup as la, ContextMenuRadioItem as ua, ContextMenuSeparator as ca, ContextMenuShortcut as ma, ContextMenuSub as fa, ContextMenuSubContent as ba, ContextMenuSubTrigger as pa, ContextMenuTrigger as ga } from "./client/context-menu.es.js";
|
|
13
|
+
import { DropdownMenu as xa, DropdownMenuCheckboxItem as va, DropdownMenuContent as Aa, DropdownMenuGroup as Ca, DropdownMenuItem as Sa, DropdownMenuLabel as wa, DropdownMenuPortal as ya, DropdownMenuRadioGroup as Ma, DropdownMenuRadioItem as Ia, DropdownMenuSeparator as Da, DropdownMenuShortcut as _a, DropdownMenuSub as Na, DropdownMenuSubContent as Ea, DropdownMenuSubTrigger as Ta, DropdownMenuTrigger as Fa } from "./client/dropdown-menu.es.js";
|
|
14
|
+
import { HoverCard as Ra, HoverCardContent as ka, HoverCardTrigger as Oa } from "./client/hover-card.es.js";
|
|
15
|
+
import { RadioGroup as La, RadioGroupItem as Ba } from "./client/radio-group.es.js";
|
|
16
|
+
import { ScrollArea as Ha, ScrollBar as za } from "./client/scroll-area.es.js";
|
|
17
|
+
import { Switch as Ua } from "./client/switch.es.js";
|
|
18
|
+
import { Tabs as $a, TabsContent as Ja, TabsList as Qa, TabsTrigger as Za } from "./client/tabs.es.js";
|
|
19
|
+
import { Tooltip as oe, TooltipTrigger as ne, TooltipContent as ie, TooltipProvider as se } from "./client/tooltip.es.js";
|
|
20
|
+
import { Command as Xa, CommandDialog as Ya, CommandEmpty as ja, CommandGroup as eo, CommandInput as to, CommandItem as ro, CommandList as ao, CommandSeparator as oo, CommandShortcut as no } from "./client/command.es.js";
|
|
21
|
+
import { Dialog as so, DialogClose as lo, DialogContent as uo, DialogDescription as co, DialogFooter as mo, DialogHeader as fo, DialogOverlay as bo, DialogPortal as po, DialogTitle as go, DialogTrigger as ho } from "./client/dialog.es.js";
|
|
22
|
+
import { Drawer as vo, DrawerClose as Ao, DrawerContent as Co, DrawerDescription as So, DrawerFooter as wo, DrawerHeader as yo, DrawerOverlay as Mo, DrawerPortal as Io, DrawerTitle as Do, DrawerTrigger as _o } from "./client/drawer.es.js";
|
|
23
|
+
import { Sheet as de, SheetContent as le, SheetHeader as ue, SheetTitle as ce, SheetDescription as me } from "./client/sheet.es.js";
|
|
24
|
+
import { SheetClose as Eo, SheetFooter as To, SheetTrigger as Fo } from "./client/sheet.es.js";
|
|
25
|
+
import { Toaster as Ro } from "./client/toaster.es.js";
|
|
26
|
+
import { Toggle as Oo } from "./client/toggle.es.js";
|
|
27
|
+
import { Label as fe } from "./client/label.es.js";
|
|
28
|
+
import { Menubar as Lo, MenubarCheckboxItem as Bo, MenubarContent as Go, MenubarGroup as Ho, MenubarItem as zo, MenubarLabel as Ko, MenubarMenu as Uo, MenubarPortal as Wo, MenubarRadioGroup as $o, MenubarRadioItem as Jo, MenubarSeparator as Qo, MenubarShortcut as Zo, MenubarSub as qo, MenubarSubContent as Xo, MenubarSubTrigger as Yo, MenubarTrigger as jo } from "./client/menu-bar.es.js";
|
|
29
|
+
import { Popover as tn, PopoverAnchor as rn, PopoverContent as an, PopoverTrigger as on } from "./client/popover.es.js";
|
|
30
|
+
import { jsx as i, jsxs as E } from "react/jsx-runtime";
|
|
31
|
+
import * as f from "react";
|
|
32
|
+
import l from "react";
|
|
33
|
+
import { Slot as T } from "@radix-ui/react-slot";
|
|
34
|
+
import { cva as be } from "class-variance-authority";
|
|
35
|
+
import { PanelLeftIcon as pe } from "lucide-react";
|
|
36
|
+
import { c } from "./utils-B6yFEsav.js";
|
|
37
|
+
import { I as ge } from "./Textarea-BTbJSVLU.js";
|
|
38
|
+
import { B as he } from "./Button-B7sEajdG.js";
|
|
38
39
|
import "@radix-ui/react-select";
|
|
39
40
|
import "next-intl";
|
|
40
|
-
import { a as
|
|
41
|
+
import { a as z, S as xe } from "./Skeleton-Cj9Od_Nd.js";
|
|
41
42
|
import "@radix-ui/react-alert-dialog";
|
|
42
43
|
import "react-day-picker";
|
|
43
44
|
import "cmdk";
|
|
@@ -61,148 +62,153 @@ import "next-themes";
|
|
|
61
62
|
import "sonner";
|
|
62
63
|
import "@radix-ui/react-label";
|
|
63
64
|
import "@radix-ui/react-menubar";
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
import "@radix-ui/react-separator";
|
|
66
|
+
import "@radix-ui/react-tooltip";
|
|
67
|
+
var n = { US: "US", CA: "CA", MX: "MX", BR: "BR", AR: "AR", CL: "CL", CO: "CO", PE: "PE", VE: "VE", GB: "GB", FR: "FR", DE: "DE", IT: "IT", ES: "ES", PT: "PT", NL: "NL", CH: "CH", SE: "SE", NO: "NO", FI: "FI", PL: "PL", GR: "GR", UA: "UA", RU: "RU", CN: "CN", JP: "JP", KR: "KR", IN: "IN", PK: "PK", BD: "BD", TH: "TH", VN: "VN", MY: "MY", SG: "SG", ID: "ID", PH: "PH", SA: "SA", AE: "AE", QA: "QA", KW: "KW", IQ: "IQ", IR: "IR", IL: "IL", TR: "TR", EG: "EG", MA: "MA", ET: "ET", KE: "KE", TZ: "TZ", ZA: "ZA", NG: "NG", GH: "GH", SN: "SN", AU: "AU", NZ: "NZ", PG: "PG", FJ: "FJ", AQ: "AQ" }, ve = 7, Ae = 6, Ce = { WEEK: 6048e5 }, Se = { [n.US]: ["America/New_York", "America/Chicago", "America/Denver", "America/Los_Angeles", "America/Anchorage", "Pacific/Honolulu"], [n.CA]: ["America/Toronto", "America/Vancouver", "America/Edmonton", "America/Halifax", "America/St_Johns"], [n.MX]: ["America/Mexico_City", "America/Monterrey", "America/Tijuana"], [n.BR]: ["America/Sao_Paulo", "America/Manaus", "America/Fortaleza"], [n.AR]: ["America/Argentina/Buenos_Aires"], [n.CL]: ["America/Santiago"], [n.CO]: ["America/Bogota"], [n.PE]: ["America/Lima"], [n.VE]: ["America/Caracas"], [n.GB]: ["Europe/London"], [n.FR]: ["Europe/Paris"], [n.DE]: ["Europe/Berlin"], [n.IT]: ["Europe/Rome"], [n.ES]: ["Europe/Madrid"], [n.PT]: ["Europe/Lisbon"], [n.NL]: ["Europe/Amsterdam"], [n.SE]: ["Europe/Stockholm"], [n.PL]: ["Europe/Warsaw"], [n.FI]: ["Europe/Helsinki"], [n.NO]: ["Europe/Oslo"], [n.CH]: ["Europe/Zurich"], [n.RU]: ["Europe/Moscow", "Asia/Yekaterinburg", "Asia/Irkutsk", "Asia/Vladivostok"], [n.UA]: ["Europe/Kyiv"], [n.GR]: ["Europe/Athens"], [n.TR]: ["Europe/Istanbul"], [n.CN]: ["Asia/Shanghai", "Asia/Urumqi"], [n.JP]: ["Asia/Tokyo"], [n.KR]: ["Asia/Seoul"], [n.IN]: ["Asia/Kolkata"], [n.PK]: ["Asia/Karachi"], [n.BD]: ["Asia/Dhaka"], [n.TH]: ["Asia/Bangkok"], [n.VN]: ["Asia/Ho_Chi_Minh"], [n.MY]: ["Asia/Kuala_Lumpur"], [n.SG]: ["Asia/Singapore"], [n.ID]: ["Asia/Jakarta", "Asia/Makassar", "Asia/Jayapura"], [n.PH]: ["Asia/Manila"], [n.AE]: ["Asia/Dubai"], [n.SA]: ["Asia/Riyadh"], [n.IR]: ["Asia/Tehran"], [n.IQ]: ["Asia/Baghdad"], [n.IL]: ["Asia/Jerusalem"], [n.QA]: ["Asia/Qatar"], [n.KW]: ["Asia/Kuwait"], [n.EG]: ["Africa/Cairo"], [n.NG]: ["Africa/Lagos"], [n.ZA]: ["Africa/Johannesburg"], [n.KE]: ["Africa/Nairobi"], [n.MA]: ["Africa/Casablanca"], [n.GH]: ["Africa/Accra"], [n.ET]: ["Africa/Addis_Ababa"], [n.TZ]: ["Africa/Dar_es_Salaam"], [n.SN]: ["Africa/Dakar"], [n.AU]: ["Australia/Sydney", "Australia/Melbourne", "Australia/Perth", "Australia/Brisbane"], [n.NZ]: ["Pacific/Auckland"], [n.FJ]: ["Pacific/Fiji"], [n.PG]: ["Pacific/Port_Moresby"], [n.AQ]: ["Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Casey"] };
|
|
68
|
+
Array.from(new Set(Object.values(Se).flat()));
|
|
69
|
+
Array.from({ length: ve }, (e, r) => r);
|
|
70
|
+
Array.from({ length: Ae }, (e, r) => r);
|
|
71
|
+
const V = 768;
|
|
72
|
+
function we() {
|
|
73
|
+
const [e, r] = f.useState(void 0);
|
|
74
|
+
return f.useEffect(() => {
|
|
75
|
+
const t = window.matchMedia(`(max-width: ${V - 1}px)`), o = () => {
|
|
76
|
+
r(window.innerWidth < V);
|
|
71
77
|
};
|
|
72
|
-
return
|
|
73
|
-
}, []), !!
|
|
78
|
+
return t.addEventListener("change", o), r(window.innerWidth < V), () => t.removeEventListener("change", o);
|
|
79
|
+
}, []), !!e;
|
|
74
80
|
}
|
|
75
|
-
const
|
|
76
|
-
function
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
81
|
+
const ye = "sidebar_state", Me = Ce.WEEK, Ie = "16rem", De = "18rem", _e = "3rem", Q = f.createContext(null);
|
|
82
|
+
function Z() {
|
|
83
|
+
const e = f.useContext(Q);
|
|
84
|
+
if (!e)
|
|
79
85
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
80
|
-
return
|
|
86
|
+
return e;
|
|
81
87
|
}
|
|
82
|
-
function
|
|
83
|
-
defaultOpen:
|
|
84
|
-
open:
|
|
85
|
-
onOpenChange:
|
|
88
|
+
function Lt({
|
|
89
|
+
defaultOpen: e = !0,
|
|
90
|
+
open: r,
|
|
91
|
+
onOpenChange: t,
|
|
86
92
|
className: o,
|
|
87
|
-
style:
|
|
88
|
-
children:
|
|
89
|
-
...
|
|
93
|
+
style: a,
|
|
94
|
+
children: s,
|
|
95
|
+
...d
|
|
90
96
|
}) {
|
|
91
|
-
const u =
|
|
92
|
-
(
|
|
93
|
-
const
|
|
94
|
-
|
|
97
|
+
const u = we(), [b, m] = f.useState(!1), [p, A] = f.useState(e), v = r ?? p, _ = f.useCallback(
|
|
98
|
+
(S) => {
|
|
99
|
+
const w = typeof S == "function" ? S(v) : S;
|
|
100
|
+
t ? t(w) : A(w), document.cookie = `${ye}=${w}; path=/; max-age=${Me}`;
|
|
95
101
|
},
|
|
96
|
-
[
|
|
97
|
-
),
|
|
98
|
-
}, []), M =
|
|
102
|
+
[t, v]
|
|
103
|
+
), y = f.useCallback(() => {
|
|
104
|
+
}, []), M = v ? "expanded" : "collapsed", I = f.useMemo(
|
|
99
105
|
() => ({
|
|
100
106
|
state: M,
|
|
101
|
-
open:
|
|
102
|
-
setOpen:
|
|
107
|
+
open: v,
|
|
108
|
+
setOpen: _,
|
|
103
109
|
isMobile: u,
|
|
104
|
-
openMobile:
|
|
105
|
-
setOpenMobile:
|
|
106
|
-
toggleSidebar:
|
|
110
|
+
openMobile: b,
|
|
111
|
+
setOpenMobile: m,
|
|
112
|
+
toggleSidebar: y
|
|
107
113
|
}),
|
|
108
|
-
[M,
|
|
114
|
+
[M, v, _, u, b, m, y]
|
|
109
115
|
);
|
|
110
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ i(Q.Provider, { value: I, children: /* @__PURE__ */ i(se, { delayDuration: 0, children: /* @__PURE__ */ i(
|
|
111
117
|
"div",
|
|
112
118
|
{
|
|
113
119
|
"data-slot": "sidebar-wrapper",
|
|
114
120
|
style: {
|
|
115
|
-
"--sidebar-width":
|
|
116
|
-
"--sidebar-width-icon":
|
|
117
|
-
...
|
|
121
|
+
"--sidebar-width": Ie,
|
|
122
|
+
"--sidebar-width-icon": _e,
|
|
123
|
+
...a
|
|
118
124
|
},
|
|
119
|
-
className:
|
|
125
|
+
className: c(
|
|
120
126
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
121
127
|
o
|
|
122
128
|
),
|
|
123
|
-
...
|
|
124
|
-
children:
|
|
129
|
+
...d,
|
|
130
|
+
children: s
|
|
125
131
|
}
|
|
126
132
|
) }) });
|
|
127
133
|
}
|
|
128
|
-
function
|
|
129
|
-
side:
|
|
130
|
-
openMobile:
|
|
131
|
-
setOpenMobile:
|
|
134
|
+
function Ne({
|
|
135
|
+
side: e,
|
|
136
|
+
openMobile: r,
|
|
137
|
+
setOpenMobile: t,
|
|
132
138
|
children: o,
|
|
133
|
-
...
|
|
139
|
+
...a
|
|
134
140
|
}) {
|
|
135
|
-
return /* @__PURE__ */
|
|
136
|
-
|
|
141
|
+
return /* @__PURE__ */ i(de, { open: r, onOpenChange: t, ...a, children: /* @__PURE__ */ E(
|
|
142
|
+
le,
|
|
137
143
|
{
|
|
138
144
|
"data-sidebar": "sidebar",
|
|
139
145
|
"data-slot": "sidebar",
|
|
140
146
|
"data-mobile": "true",
|
|
141
147
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
142
148
|
style: {
|
|
143
|
-
"--sidebar-width":
|
|
149
|
+
"--sidebar-width": De
|
|
144
150
|
},
|
|
145
|
-
side:
|
|
151
|
+
side: e,
|
|
146
152
|
children: [
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ E(ue, { className: "sr-only", children: [
|
|
154
|
+
/* @__PURE__ */ i(ce, { children: "Sidebar" }),
|
|
155
|
+
/* @__PURE__ */ i(me, { children: "Displays the mobile sidebar." })
|
|
150
156
|
] }),
|
|
151
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ i("div", { className: "flex h-full w-full flex-col", children: o })
|
|
152
158
|
]
|
|
153
159
|
}
|
|
154
160
|
) });
|
|
155
161
|
}
|
|
156
|
-
function
|
|
157
|
-
side:
|
|
158
|
-
variant:
|
|
159
|
-
collapsible:
|
|
162
|
+
function Ee({
|
|
163
|
+
side: e,
|
|
164
|
+
variant: r,
|
|
165
|
+
collapsible: t,
|
|
160
166
|
state: o,
|
|
161
|
-
className:
|
|
162
|
-
children:
|
|
163
|
-
...
|
|
167
|
+
className: a,
|
|
168
|
+
children: s,
|
|
169
|
+
...d
|
|
164
170
|
}) {
|
|
165
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ E(
|
|
166
172
|
"div",
|
|
167
173
|
{
|
|
168
174
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
169
175
|
"data-state": o,
|
|
170
|
-
"data-collapsible": o === "collapsed" ?
|
|
171
|
-
"data-variant":
|
|
172
|
-
"data-side":
|
|
176
|
+
"data-collapsible": o === "collapsed" ? t : "",
|
|
177
|
+
"data-variant": r,
|
|
178
|
+
"data-side": e,
|
|
173
179
|
"data-slot": "sidebar",
|
|
174
180
|
children: [
|
|
175
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ i(
|
|
176
182
|
"div",
|
|
177
183
|
{
|
|
178
184
|
"data-slot": "sidebar-gap",
|
|
179
|
-
className:
|
|
185
|
+
className: c(
|
|
180
186
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
181
187
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
182
188
|
"group-data-[side=right]:rotate-180",
|
|
183
|
-
|
|
189
|
+
r === "floating" || r === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
184
190
|
)
|
|
185
191
|
}
|
|
186
192
|
),
|
|
187
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ i(
|
|
188
194
|
"div",
|
|
189
195
|
{
|
|
190
196
|
"data-slot": "sidebar-container",
|
|
191
|
-
className:
|
|
197
|
+
className: c(
|
|
192
198
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
193
|
-
|
|
199
|
+
e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
194
200
|
// Adjust the padding for floating and inset variants.
|
|
195
|
-
|
|
196
|
-
|
|
201
|
+
r === "floating" || r === "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-r group-data-[side=right]:border-l",
|
|
202
|
+
a
|
|
197
203
|
),
|
|
198
|
-
...
|
|
199
|
-
children: /* @__PURE__ */
|
|
204
|
+
...d,
|
|
205
|
+
children: /* @__PURE__ */ i(
|
|
200
206
|
"div",
|
|
201
207
|
{
|
|
202
208
|
"data-sidebar": "sidebar",
|
|
203
209
|
"data-slot": "sidebar-inner",
|
|
204
210
|
className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
|
|
205
|
-
children:
|
|
211
|
+
children: s
|
|
206
212
|
}
|
|
207
213
|
)
|
|
208
214
|
}
|
|
@@ -211,62 +217,62 @@ function J({
|
|
|
211
217
|
}
|
|
212
218
|
);
|
|
213
219
|
}
|
|
214
|
-
function
|
|
215
|
-
side:
|
|
216
|
-
variant:
|
|
217
|
-
collapsible:
|
|
220
|
+
function Bt({
|
|
221
|
+
side: e = "left",
|
|
222
|
+
variant: r = "sidebar",
|
|
223
|
+
collapsible: t = "offcanvas",
|
|
218
224
|
className: o,
|
|
219
|
-
children:
|
|
220
|
-
...
|
|
225
|
+
children: a,
|
|
226
|
+
...s
|
|
221
227
|
}) {
|
|
222
|
-
const { isMobile:
|
|
223
|
-
return
|
|
228
|
+
const { isMobile: d, state: u, openMobile: b, setOpenMobile: m } = Z();
|
|
229
|
+
return t === "none" ? /* @__PURE__ */ i(
|
|
224
230
|
"div",
|
|
225
231
|
{
|
|
226
232
|
"data-slot": "sidebar",
|
|
227
|
-
className:
|
|
233
|
+
className: c(
|
|
228
234
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
229
235
|
o
|
|
230
236
|
),
|
|
231
|
-
...
|
|
232
|
-
children:
|
|
237
|
+
...s,
|
|
238
|
+
children: a
|
|
233
239
|
}
|
|
234
|
-
) :
|
|
235
|
-
|
|
240
|
+
) : d ? /* @__PURE__ */ i(Ne, { side: e, openMobile: b, setOpenMobile: m, ...s, children: a }) : /* @__PURE__ */ i(
|
|
241
|
+
Ee,
|
|
236
242
|
{
|
|
237
|
-
side:
|
|
238
|
-
variant:
|
|
239
|
-
collapsible:
|
|
243
|
+
side: e,
|
|
244
|
+
variant: r,
|
|
245
|
+
collapsible: t,
|
|
240
246
|
state: u,
|
|
241
247
|
className: o,
|
|
242
|
-
...
|
|
243
|
-
children:
|
|
248
|
+
...s,
|
|
249
|
+
children: a
|
|
244
250
|
}
|
|
245
251
|
);
|
|
246
252
|
}
|
|
247
|
-
function
|
|
248
|
-
return /* @__PURE__ */
|
|
249
|
-
|
|
253
|
+
function Gt({ className: e, onClick: r, ...t }) {
|
|
254
|
+
return /* @__PURE__ */ E(
|
|
255
|
+
he,
|
|
250
256
|
{
|
|
251
257
|
"data-sidebar": "trigger",
|
|
252
258
|
"data-slot": "sidebar-trigger",
|
|
253
259
|
variant: "ghost",
|
|
254
260
|
size: "icon",
|
|
255
|
-
className:
|
|
261
|
+
className: c("size-7", e),
|
|
256
262
|
onClick: (o) => {
|
|
257
|
-
|
|
263
|
+
r == null || r(o);
|
|
258
264
|
},
|
|
259
265
|
disabled: !0,
|
|
260
|
-
...
|
|
266
|
+
...t,
|
|
261
267
|
children: [
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ i(pe, {}),
|
|
269
|
+
/* @__PURE__ */ i("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
264
270
|
]
|
|
265
271
|
}
|
|
266
272
|
);
|
|
267
273
|
}
|
|
268
|
-
function
|
|
269
|
-
return /* @__PURE__ */
|
|
274
|
+
function Ht({ className: e, ...r }) {
|
|
275
|
+
return /* @__PURE__ */ i(
|
|
270
276
|
"button",
|
|
271
277
|
{
|
|
272
278
|
"data-sidebar": "rail",
|
|
@@ -277,176 +283,176 @@ function Ge({ className: t, ...e }) {
|
|
|
277
283
|
},
|
|
278
284
|
title: "Toggle Sidebar",
|
|
279
285
|
disabled: !0,
|
|
280
|
-
className:
|
|
286
|
+
className: c(
|
|
281
287
|
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
282
288
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
283
289
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
284
290
|
"hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
|
|
285
291
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
286
292
|
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
287
|
-
|
|
293
|
+
e
|
|
288
294
|
),
|
|
289
|
-
...
|
|
295
|
+
...r
|
|
290
296
|
}
|
|
291
297
|
);
|
|
292
298
|
}
|
|
293
|
-
function
|
|
294
|
-
return /* @__PURE__ */
|
|
299
|
+
function zt({ className: e, ...r }) {
|
|
300
|
+
return /* @__PURE__ */ i(
|
|
295
301
|
"main",
|
|
296
302
|
{
|
|
297
303
|
"data-slot": "sidebar-inset",
|
|
298
|
-
className:
|
|
304
|
+
className: c(
|
|
299
305
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
300
306
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
301
|
-
|
|
307
|
+
e
|
|
302
308
|
),
|
|
303
|
-
...
|
|
309
|
+
...r
|
|
304
310
|
}
|
|
305
311
|
);
|
|
306
312
|
}
|
|
307
|
-
function
|
|
308
|
-
return /* @__PURE__ */
|
|
309
|
-
|
|
313
|
+
function Kt({ className: e, ...r }) {
|
|
314
|
+
return /* @__PURE__ */ i(
|
|
315
|
+
ge,
|
|
310
316
|
{
|
|
311
317
|
"data-slot": "sidebar-input",
|
|
312
318
|
"data-sidebar": "input",
|
|
313
|
-
className:
|
|
314
|
-
...
|
|
319
|
+
className: c("bg-background h-10 w-full shadow-none", e),
|
|
320
|
+
...r
|
|
315
321
|
}
|
|
316
322
|
);
|
|
317
323
|
}
|
|
318
|
-
function
|
|
319
|
-
return /* @__PURE__ */
|
|
324
|
+
function Ut({ className: e, ...r }) {
|
|
325
|
+
return /* @__PURE__ */ i(
|
|
320
326
|
"div",
|
|
321
327
|
{
|
|
322
328
|
"data-slot": "sidebar-header",
|
|
323
329
|
"data-sidebar": "header",
|
|
324
|
-
className:
|
|
325
|
-
...
|
|
330
|
+
className: c("flex flex-col gap-3 p-2", e),
|
|
331
|
+
...r
|
|
326
332
|
}
|
|
327
333
|
);
|
|
328
334
|
}
|
|
329
|
-
function
|
|
330
|
-
return /* @__PURE__ */
|
|
335
|
+
function Wt({ className: e, ...r }) {
|
|
336
|
+
return /* @__PURE__ */ i(
|
|
331
337
|
"div",
|
|
332
338
|
{
|
|
333
339
|
"data-slot": "sidebar-footer",
|
|
334
340
|
"data-sidebar": "footer",
|
|
335
|
-
className:
|
|
336
|
-
...
|
|
341
|
+
className: c("flex flex-col gap-3 p-2", e),
|
|
342
|
+
...r
|
|
337
343
|
}
|
|
338
344
|
);
|
|
339
345
|
}
|
|
340
|
-
function
|
|
341
|
-
return /* @__PURE__ */
|
|
342
|
-
|
|
346
|
+
function $t({ className: e, ...r }) {
|
|
347
|
+
return /* @__PURE__ */ i(
|
|
348
|
+
xe,
|
|
343
349
|
{
|
|
344
350
|
"data-slot": "sidebar-separator",
|
|
345
351
|
"data-sidebar": "separator",
|
|
346
|
-
className:
|
|
347
|
-
...
|
|
352
|
+
className: c("bg-sidebar-border mx-2 w-auto", e),
|
|
353
|
+
...r
|
|
348
354
|
}
|
|
349
355
|
);
|
|
350
356
|
}
|
|
351
|
-
function
|
|
352
|
-
return /* @__PURE__ */
|
|
357
|
+
function Jt({ className: e, ...r }) {
|
|
358
|
+
return /* @__PURE__ */ i(
|
|
353
359
|
"div",
|
|
354
360
|
{
|
|
355
361
|
"data-slot": "sidebar-content",
|
|
356
362
|
"data-sidebar": "content",
|
|
357
|
-
className:
|
|
363
|
+
className: c(
|
|
358
364
|
"flex min-h-0 flex-1 flex-col gap-3 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
359
|
-
|
|
365
|
+
e
|
|
360
366
|
),
|
|
361
|
-
...
|
|
367
|
+
...r
|
|
362
368
|
}
|
|
363
369
|
);
|
|
364
370
|
}
|
|
365
|
-
function
|
|
366
|
-
return /* @__PURE__ */
|
|
371
|
+
function Qt({ className: e, ...r }) {
|
|
372
|
+
return /* @__PURE__ */ i(
|
|
367
373
|
"div",
|
|
368
374
|
{
|
|
369
375
|
"data-slot": "sidebar-group",
|
|
370
376
|
"data-sidebar": "group",
|
|
371
|
-
className:
|
|
372
|
-
...
|
|
377
|
+
className: c("relative flex w-full min-w-0 flex-col p-2", e),
|
|
378
|
+
...r
|
|
373
379
|
}
|
|
374
380
|
);
|
|
375
381
|
}
|
|
376
|
-
function
|
|
377
|
-
className:
|
|
378
|
-
asChild:
|
|
379
|
-
...
|
|
382
|
+
function Zt({
|
|
383
|
+
className: e,
|
|
384
|
+
asChild: r = !1,
|
|
385
|
+
...t
|
|
380
386
|
}) {
|
|
381
|
-
return /* @__PURE__ */
|
|
382
|
-
|
|
387
|
+
return /* @__PURE__ */ i(
|
|
388
|
+
r ? T : "div",
|
|
383
389
|
{
|
|
384
390
|
"data-slot": "sidebar-group-label",
|
|
385
391
|
"data-sidebar": "group-label",
|
|
386
|
-
className:
|
|
392
|
+
className: c(
|
|
387
393
|
"text-sidebar-foreground/70 ring-sidebar-ring flex h-10 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground",
|
|
388
394
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
389
|
-
|
|
395
|
+
e
|
|
390
396
|
),
|
|
391
|
-
...
|
|
397
|
+
...t
|
|
392
398
|
}
|
|
393
399
|
);
|
|
394
400
|
}
|
|
395
|
-
function
|
|
396
|
-
className:
|
|
397
|
-
asChild:
|
|
398
|
-
...
|
|
401
|
+
function qt({
|
|
402
|
+
className: e,
|
|
403
|
+
asChild: r = !1,
|
|
404
|
+
...t
|
|
399
405
|
}) {
|
|
400
|
-
return /* @__PURE__ */
|
|
401
|
-
|
|
406
|
+
return /* @__PURE__ */ i(
|
|
407
|
+
r ? T : "button",
|
|
402
408
|
{
|
|
403
409
|
"data-slot": "sidebar-group-action",
|
|
404
410
|
"data-sidebar": "group-action",
|
|
405
|
-
className:
|
|
411
|
+
className: c(
|
|
406
412
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground",
|
|
407
413
|
// Increases the hit area of the button on mobile.
|
|
408
414
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
409
415
|
"group-data-[collapsible=icon]:hidden",
|
|
410
|
-
|
|
416
|
+
e
|
|
411
417
|
),
|
|
412
|
-
...
|
|
418
|
+
...t
|
|
413
419
|
}
|
|
414
420
|
);
|
|
415
421
|
}
|
|
416
|
-
function
|
|
417
|
-
return /* @__PURE__ */
|
|
422
|
+
function Xt({ className: e, ...r }) {
|
|
423
|
+
return /* @__PURE__ */ i(
|
|
418
424
|
"div",
|
|
419
425
|
{
|
|
420
426
|
"data-slot": "sidebar-group-content",
|
|
421
427
|
"data-sidebar": "group-content",
|
|
422
|
-
className:
|
|
423
|
-
...
|
|
428
|
+
className: c("w-full text-sm", e),
|
|
429
|
+
...r
|
|
424
430
|
}
|
|
425
431
|
);
|
|
426
432
|
}
|
|
427
|
-
function
|
|
428
|
-
return /* @__PURE__ */
|
|
433
|
+
function Yt({ className: e, ...r }) {
|
|
434
|
+
return /* @__PURE__ */ i(
|
|
429
435
|
"ul",
|
|
430
436
|
{
|
|
431
437
|
"data-slot": "sidebar-menu",
|
|
432
438
|
"data-sidebar": "menu",
|
|
433
|
-
className:
|
|
434
|
-
...
|
|
439
|
+
className: c("flex w-full min-w-0 flex-col gap-1", e),
|
|
440
|
+
...r
|
|
435
441
|
}
|
|
436
442
|
);
|
|
437
443
|
}
|
|
438
|
-
function
|
|
439
|
-
return /* @__PURE__ */
|
|
444
|
+
function jt({ className: e, ...r }) {
|
|
445
|
+
return /* @__PURE__ */ i(
|
|
440
446
|
"li",
|
|
441
447
|
{
|
|
442
448
|
"data-slot": "sidebar-menu-item",
|
|
443
449
|
"data-sidebar": "menu-item",
|
|
444
|
-
className:
|
|
445
|
-
...
|
|
450
|
+
className: c("group/menu-item relative", e),
|
|
451
|
+
...r
|
|
446
452
|
}
|
|
447
453
|
);
|
|
448
454
|
}
|
|
449
|
-
const
|
|
455
|
+
const Te = be(
|
|
450
456
|
"peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md p-2 text-left text-sm font-medium outline-hidden ring-sidebar-ring transition-[width,height,padding] 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground",
|
|
451
457
|
{
|
|
452
458
|
variants: {
|
|
@@ -466,53 +472,53 @@ const Q = B(
|
|
|
466
472
|
}
|
|
467
473
|
}
|
|
468
474
|
);
|
|
469
|
-
function
|
|
470
|
-
asChild:
|
|
471
|
-
isActive:
|
|
472
|
-
variant:
|
|
475
|
+
function er({
|
|
476
|
+
asChild: e = !1,
|
|
477
|
+
isActive: r = !1,
|
|
478
|
+
variant: t = "default",
|
|
473
479
|
size: o = "default",
|
|
474
|
-
tooltip:
|
|
475
|
-
className:
|
|
476
|
-
...
|
|
480
|
+
tooltip: a,
|
|
481
|
+
className: s,
|
|
482
|
+
...d
|
|
477
483
|
}) {
|
|
478
|
-
const u =
|
|
484
|
+
const u = e ? T : "button", { isMobile: b, state: m } = Z(), p = /* @__PURE__ */ i(
|
|
479
485
|
u,
|
|
480
486
|
{
|
|
481
487
|
"data-slot": "sidebar-menu-button",
|
|
482
488
|
"data-sidebar": "menu-button",
|
|
483
489
|
"data-size": o,
|
|
484
|
-
"data-active":
|
|
485
|
-
className:
|
|
486
|
-
...
|
|
490
|
+
"data-active": r,
|
|
491
|
+
className: c(Te({ variant: t, size: o }), s),
|
|
492
|
+
...d
|
|
487
493
|
}
|
|
488
494
|
);
|
|
489
|
-
return
|
|
490
|
-
children:
|
|
491
|
-
}), /* @__PURE__ */
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
/* @__PURE__ */
|
|
494
|
-
|
|
495
|
+
return a ? (typeof a == "string" && (a = {
|
|
496
|
+
children: a
|
|
497
|
+
}), /* @__PURE__ */ E(oe, { children: [
|
|
498
|
+
/* @__PURE__ */ i(ne, { asChild: !0, children: p }),
|
|
499
|
+
/* @__PURE__ */ i(
|
|
500
|
+
ie,
|
|
495
501
|
{
|
|
496
502
|
side: "right",
|
|
497
503
|
align: "center",
|
|
498
|
-
hidden:
|
|
499
|
-
...
|
|
504
|
+
hidden: m !== "collapsed" || b,
|
|
505
|
+
...a
|
|
500
506
|
}
|
|
501
507
|
)
|
|
502
|
-
] })) :
|
|
508
|
+
] })) : p;
|
|
503
509
|
}
|
|
504
|
-
function
|
|
505
|
-
className:
|
|
506
|
-
asChild:
|
|
507
|
-
showOnHover:
|
|
510
|
+
function tr({
|
|
511
|
+
className: e,
|
|
512
|
+
asChild: r = !1,
|
|
513
|
+
showOnHover: t = !1,
|
|
508
514
|
...o
|
|
509
515
|
}) {
|
|
510
|
-
return /* @__PURE__ */
|
|
511
|
-
|
|
516
|
+
return /* @__PURE__ */ i(
|
|
517
|
+
r ? T : "button",
|
|
512
518
|
{
|
|
513
519
|
"data-slot": "sidebar-menu-action",
|
|
514
520
|
"data-sidebar": "menu-action",
|
|
515
|
-
className:
|
|
521
|
+
className: c(
|
|
516
522
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-6 [&>svg]:shrink-0 [&>svg]:text-tertiary-foreground",
|
|
517
523
|
// Increases the hit area of the button on mobile.
|
|
518
524
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -520,50 +526,50 @@ function Ye({
|
|
|
520
526
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
521
527
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
522
528
|
"group-data-[collapsible=icon]:hidden",
|
|
523
|
-
|
|
524
|
-
|
|
529
|
+
t && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
|
|
530
|
+
e
|
|
525
531
|
),
|
|
526
532
|
...o
|
|
527
533
|
}
|
|
528
534
|
);
|
|
529
535
|
}
|
|
530
|
-
function
|
|
531
|
-
return /* @__PURE__ */
|
|
536
|
+
function rr({ className: e, ...r }) {
|
|
537
|
+
return /* @__PURE__ */ i(
|
|
532
538
|
"div",
|
|
533
539
|
{
|
|
534
540
|
"data-slot": "sidebar-menu-badge",
|
|
535
541
|
"data-sidebar": "menu-badge",
|
|
536
|
-
className:
|
|
542
|
+
className: c(
|
|
537
543
|
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
|
|
538
544
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
539
545
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
540
546
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
541
547
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
542
548
|
"group-data-[collapsible=icon]:hidden",
|
|
543
|
-
|
|
549
|
+
e
|
|
544
550
|
),
|
|
545
|
-
...
|
|
551
|
+
...r
|
|
546
552
|
}
|
|
547
553
|
);
|
|
548
554
|
}
|
|
549
|
-
const
|
|
550
|
-
function
|
|
551
|
-
className:
|
|
552
|
-
showIcon:
|
|
553
|
-
...
|
|
555
|
+
const Fe = 50, Pe = 40;
|
|
556
|
+
function ar({
|
|
557
|
+
className: e,
|
|
558
|
+
showIcon: r = !1,
|
|
559
|
+
...t
|
|
554
560
|
}) {
|
|
555
|
-
const o =
|
|
556
|
-
return /* @__PURE__ */
|
|
561
|
+
const o = f.useMemo(() => `${Math.floor(Math.random() * Pe) + Fe}%`, []);
|
|
562
|
+
return /* @__PURE__ */ E(
|
|
557
563
|
"div",
|
|
558
564
|
{
|
|
559
565
|
"data-slot": "sidebar-menu-skeleton",
|
|
560
566
|
"data-sidebar": "menu-skeleton",
|
|
561
|
-
className:
|
|
562
|
-
...
|
|
567
|
+
className: c("flex h-10 items-center gap-3 rounded-md px-2", e),
|
|
568
|
+
...t,
|
|
563
569
|
children: [
|
|
564
|
-
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
|
|
570
|
+
r && /* @__PURE__ */ i(z, { className: "size-6 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
571
|
+
/* @__PURE__ */ i(
|
|
572
|
+
z,
|
|
567
573
|
{
|
|
568
574
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
569
575
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -576,221 +582,552 @@ function et({
|
|
|
576
582
|
}
|
|
577
583
|
);
|
|
578
584
|
}
|
|
579
|
-
function
|
|
580
|
-
return /* @__PURE__ */
|
|
585
|
+
function or({ className: e, ...r }) {
|
|
586
|
+
return /* @__PURE__ */ i(
|
|
581
587
|
"ul",
|
|
582
588
|
{
|
|
583
589
|
"data-slot": "sidebar-menu-sub",
|
|
584
590
|
"data-sidebar": "menu-sub",
|
|
585
|
-
className:
|
|
591
|
+
className: c(
|
|
586
592
|
"border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
|
|
587
593
|
"group-data-[collapsible=icon]:hidden",
|
|
588
|
-
|
|
594
|
+
e
|
|
589
595
|
),
|
|
590
|
-
...
|
|
596
|
+
...r
|
|
591
597
|
}
|
|
592
598
|
);
|
|
593
599
|
}
|
|
594
|
-
function
|
|
595
|
-
return /* @__PURE__ */
|
|
600
|
+
function nr({ className: e, ...r }) {
|
|
601
|
+
return /* @__PURE__ */ i(
|
|
596
602
|
"li",
|
|
597
603
|
{
|
|
598
604
|
"data-slot": "sidebar-menu-sub-item",
|
|
599
605
|
"data-sidebar": "menu-sub-item",
|
|
600
|
-
className:
|
|
601
|
-
...
|
|
606
|
+
className: c("group/menu-sub-item relative", e),
|
|
607
|
+
...r
|
|
602
608
|
}
|
|
603
609
|
);
|
|
604
610
|
}
|
|
605
|
-
function
|
|
606
|
-
asChild:
|
|
607
|
-
size:
|
|
608
|
-
isActive:
|
|
611
|
+
function ir({
|
|
612
|
+
asChild: e = !1,
|
|
613
|
+
size: r = "md",
|
|
614
|
+
isActive: t = !1,
|
|
609
615
|
className: o,
|
|
610
|
-
...
|
|
616
|
+
...a
|
|
611
617
|
}) {
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
-
|
|
618
|
+
return /* @__PURE__ */ i(
|
|
619
|
+
e ? T : "a",
|
|
614
620
|
{
|
|
615
621
|
"data-slot": "sidebar-menu-sub-button",
|
|
616
622
|
"data-sidebar": "menu-sub-button",
|
|
617
|
-
"data-size":
|
|
618
|
-
"data-active":
|
|
619
|
-
className:
|
|
623
|
+
"data-size": r,
|
|
624
|
+
"data-active": t,
|
|
625
|
+
className: c(
|
|
620
626
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-tertiary-foreground flex h-7 min-w-0 -translate-x-px items-center gap-3 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-6 [&>svg]:shrink-0",
|
|
621
627
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
622
|
-
|
|
623
|
-
|
|
628
|
+
r === "sm" && "text-xs",
|
|
629
|
+
r === "md" && "text-sm",
|
|
624
630
|
"group-data-[collapsible=icon]:hidden",
|
|
625
631
|
o
|
|
626
632
|
),
|
|
627
|
-
...
|
|
633
|
+
...a
|
|
628
634
|
}
|
|
629
635
|
);
|
|
630
636
|
}
|
|
637
|
+
var Re = (e) => e.type === "checkbox", F = (e) => e instanceof Date, G = (e) => e == null;
|
|
638
|
+
const q = (e) => typeof e == "object";
|
|
639
|
+
var N = (e) => !G(e) && !Array.isArray(e) && q(e) && !F(e), ke = (e) => N(e) && e.target ? Re(e.target) ? e.target.checked : e.target.value : e, Oe = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ve = (e, r) => e.has(Oe(r)), Le = (e) => {
|
|
640
|
+
const r = e.constructor && e.constructor.prototype;
|
|
641
|
+
return N(r) && r.hasOwnProperty("isPrototypeOf");
|
|
642
|
+
}, Be = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
643
|
+
function X(e) {
|
|
644
|
+
let r;
|
|
645
|
+
const t = Array.isArray(e), o = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
646
|
+
if (e instanceof Date)
|
|
647
|
+
r = new Date(e);
|
|
648
|
+
else if (!(Be && (e instanceof Blob || o)) && (t || N(e)))
|
|
649
|
+
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Le(e))
|
|
650
|
+
r = e;
|
|
651
|
+
else
|
|
652
|
+
for (const a in e)
|
|
653
|
+
e.hasOwnProperty(a) && (r[a] = X(e[a]));
|
|
654
|
+
else
|
|
655
|
+
return e;
|
|
656
|
+
return r;
|
|
657
|
+
}
|
|
658
|
+
var Y = (e) => /^\w*$/.test(e), B = (e) => e === void 0, Ge = (e) => Array.isArray(e) ? e.filter(Boolean) : [], j = (e) => Ge(e.replace(/["|']|\]/g, "").split(/\.|\[/)), x = (e, r, t) => {
|
|
659
|
+
if (!r || !N(e))
|
|
660
|
+
return t;
|
|
661
|
+
const o = (Y(r) ? [r] : j(r)).reduce((a, s) => G(a) ? a : a[s], e);
|
|
662
|
+
return B(o) || o === e ? B(e[r]) ? t : e[r] : o;
|
|
663
|
+
}, L = (e) => typeof e == "boolean", K = (e, r, t) => {
|
|
664
|
+
let o = -1;
|
|
665
|
+
const a = Y(r) ? [r] : j(r), s = a.length, d = s - 1;
|
|
666
|
+
for (; ++o < s; ) {
|
|
667
|
+
const u = a[o];
|
|
668
|
+
let b = t;
|
|
669
|
+
if (o !== d) {
|
|
670
|
+
const m = e[u];
|
|
671
|
+
b = N(m) || Array.isArray(m) ? m : isNaN(+a[o + 1]) ? {} : [];
|
|
672
|
+
}
|
|
673
|
+
if (u === "__proto__" || u === "constructor" || u === "prototype")
|
|
674
|
+
return;
|
|
675
|
+
e[u] = b, e = e[u];
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
const U = {
|
|
679
|
+
BLUR: "blur",
|
|
680
|
+
CHANGE: "change"
|
|
681
|
+
}, W = {
|
|
682
|
+
all: "all"
|
|
683
|
+
}, H = l.createContext(null);
|
|
684
|
+
H.displayName = "HookFormContext";
|
|
685
|
+
const R = () => l.useContext(H), He = (e) => {
|
|
686
|
+
const { children: r, ...t } = e;
|
|
687
|
+
return l.createElement(H.Provider, { value: t }, r);
|
|
688
|
+
};
|
|
689
|
+
var ze = (e, r, t, o = !0) => {
|
|
690
|
+
const a = {
|
|
691
|
+
defaultValues: r._defaultValues
|
|
692
|
+
};
|
|
693
|
+
for (const s in e)
|
|
694
|
+
Object.defineProperty(a, s, {
|
|
695
|
+
get: () => {
|
|
696
|
+
const d = s;
|
|
697
|
+
return r._proxyFormState[d] !== W.all && (r._proxyFormState[d] = !o || W.all), t && (t[d] = !0), e[d];
|
|
698
|
+
}
|
|
699
|
+
});
|
|
700
|
+
return a;
|
|
701
|
+
};
|
|
702
|
+
const ee = typeof window < "u" ? l.useLayoutEffect : l.useEffect;
|
|
703
|
+
function Ke(e) {
|
|
704
|
+
const r = R(), { control: t = r.control, disabled: o, name: a, exact: s } = e || {}, [d, u] = l.useState(t._formState), b = l.useRef({
|
|
705
|
+
isDirty: !1,
|
|
706
|
+
isLoading: !1,
|
|
707
|
+
dirtyFields: !1,
|
|
708
|
+
touchedFields: !1,
|
|
709
|
+
validatingFields: !1,
|
|
710
|
+
isValidating: !1,
|
|
711
|
+
isValid: !1,
|
|
712
|
+
errors: !1
|
|
713
|
+
});
|
|
714
|
+
return ee(() => t._subscribe({
|
|
715
|
+
name: a,
|
|
716
|
+
formState: b.current,
|
|
717
|
+
exact: s,
|
|
718
|
+
callback: (m) => {
|
|
719
|
+
!o && u({
|
|
720
|
+
...t._formState,
|
|
721
|
+
...m
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
}), [a, o, s]), l.useEffect(() => {
|
|
725
|
+
b.current.isValid && t._setValid(!0);
|
|
726
|
+
}, [t]), l.useMemo(() => ze(d, t, b.current, !1), [d, t]);
|
|
727
|
+
}
|
|
728
|
+
var Ue = (e) => typeof e == "string", $ = (e, r, t, o, a) => Ue(e) ? x(t, e, a) : Array.isArray(e) ? e.map((s) => x(t, s)) : t, J = (e) => G(e) || !q(e);
|
|
729
|
+
function P(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
730
|
+
if (J(e) || J(r))
|
|
731
|
+
return e === r;
|
|
732
|
+
if (F(e) && F(r))
|
|
733
|
+
return e.getTime() === r.getTime();
|
|
734
|
+
const o = Object.keys(e), a = Object.keys(r);
|
|
735
|
+
if (o.length !== a.length)
|
|
736
|
+
return !1;
|
|
737
|
+
if (t.has(e) || t.has(r))
|
|
738
|
+
return !0;
|
|
739
|
+
t.add(e), t.add(r);
|
|
740
|
+
for (const s of o) {
|
|
741
|
+
const d = e[s];
|
|
742
|
+
if (!a.includes(s))
|
|
743
|
+
return !1;
|
|
744
|
+
if (s !== "ref") {
|
|
745
|
+
const u = r[s];
|
|
746
|
+
if (F(d) && F(u) || N(d) && N(u) || Array.isArray(d) && Array.isArray(u) ? !P(d, u, t) : d !== u)
|
|
747
|
+
return !1;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
return !0;
|
|
751
|
+
}
|
|
752
|
+
function We(e) {
|
|
753
|
+
const r = R(), { control: t = r.control, name: o, defaultValue: a, disabled: s, exact: d, compute: u } = e || {}, b = l.useRef(a), m = l.useRef(u), p = l.useRef(void 0), A = l.useRef(t), v = l.useRef(o);
|
|
754
|
+
m.current = u;
|
|
755
|
+
const [_, y] = l.useState(() => {
|
|
756
|
+
const g = t._getWatch(o, b.current);
|
|
757
|
+
return m.current ? m.current(g) : g;
|
|
758
|
+
}), M = l.useCallback((g) => {
|
|
759
|
+
const C = $(o, t._names, g || t._formValues, !1, b.current);
|
|
760
|
+
return m.current ? m.current(C) : C;
|
|
761
|
+
}, [t._formValues, t._names, o]), I = l.useCallback((g) => {
|
|
762
|
+
if (!s) {
|
|
763
|
+
const C = $(o, t._names, g || t._formValues, !1, b.current);
|
|
764
|
+
if (m.current) {
|
|
765
|
+
const D = m.current(C);
|
|
766
|
+
P(D, p.current) || (y(D), p.current = D);
|
|
767
|
+
} else
|
|
768
|
+
y(C);
|
|
769
|
+
}
|
|
770
|
+
}, [t._formValues, t._names, s, o]);
|
|
771
|
+
ee(() => ((A.current !== t || !P(v.current, o)) && (A.current = t, v.current = o, I()), t._subscribe({
|
|
772
|
+
name: o,
|
|
773
|
+
formState: {
|
|
774
|
+
values: !0
|
|
775
|
+
},
|
|
776
|
+
exact: d,
|
|
777
|
+
callback: (g) => {
|
|
778
|
+
I(g.values);
|
|
779
|
+
}
|
|
780
|
+
})), [t, d, o, I]), l.useEffect(() => t._removeUnmounted());
|
|
781
|
+
const S = A.current !== t, w = v.current, h = l.useMemo(() => {
|
|
782
|
+
if (s)
|
|
783
|
+
return null;
|
|
784
|
+
const g = !S && !P(w, o);
|
|
785
|
+
return S || g ? M() : null;
|
|
786
|
+
}, [s, S, o, w, M]);
|
|
787
|
+
return h !== null ? h : _;
|
|
788
|
+
}
|
|
789
|
+
function $e(e) {
|
|
790
|
+
const r = R(), { name: t, disabled: o, control: a = r.control, shouldUnregister: s, defaultValue: d } = e, u = Ve(a._names.array, t), b = l.useMemo(() => x(a._formValues, t, x(a._defaultValues, t, d)), [a, t, d]), m = We({
|
|
791
|
+
control: a,
|
|
792
|
+
name: t,
|
|
793
|
+
defaultValue: b,
|
|
794
|
+
exact: !0
|
|
795
|
+
}), p = Ke({
|
|
796
|
+
control: a,
|
|
797
|
+
name: t,
|
|
798
|
+
exact: !0
|
|
799
|
+
}), A = l.useRef(e), v = l.useRef(void 0), _ = l.useRef(a.register(t, {
|
|
800
|
+
...e.rules,
|
|
801
|
+
value: m,
|
|
802
|
+
...L(e.disabled) ? { disabled: e.disabled } : {}
|
|
803
|
+
}));
|
|
804
|
+
A.current = e;
|
|
805
|
+
const y = l.useMemo(() => Object.defineProperties({}, {
|
|
806
|
+
invalid: {
|
|
807
|
+
enumerable: !0,
|
|
808
|
+
get: () => !!x(p.errors, t)
|
|
809
|
+
},
|
|
810
|
+
isDirty: {
|
|
811
|
+
enumerable: !0,
|
|
812
|
+
get: () => !!x(p.dirtyFields, t)
|
|
813
|
+
},
|
|
814
|
+
isTouched: {
|
|
815
|
+
enumerable: !0,
|
|
816
|
+
get: () => !!x(p.touchedFields, t)
|
|
817
|
+
},
|
|
818
|
+
isValidating: {
|
|
819
|
+
enumerable: !0,
|
|
820
|
+
get: () => !!x(p.validatingFields, t)
|
|
821
|
+
},
|
|
822
|
+
error: {
|
|
823
|
+
enumerable: !0,
|
|
824
|
+
get: () => x(p.errors, t)
|
|
825
|
+
}
|
|
826
|
+
}), [p, t]), M = l.useCallback((h) => _.current.onChange({
|
|
827
|
+
target: {
|
|
828
|
+
value: ke(h),
|
|
829
|
+
name: t
|
|
830
|
+
},
|
|
831
|
+
type: U.CHANGE
|
|
832
|
+
}), [t]), I = l.useCallback(() => _.current.onBlur({
|
|
833
|
+
target: {
|
|
834
|
+
value: x(a._formValues, t),
|
|
835
|
+
name: t
|
|
836
|
+
},
|
|
837
|
+
type: U.BLUR
|
|
838
|
+
}), [t, a._formValues]), S = l.useCallback((h) => {
|
|
839
|
+
const g = x(a._fields, t);
|
|
840
|
+
g && h && (g._f.ref = {
|
|
841
|
+
focus: () => h.focus && h.focus(),
|
|
842
|
+
select: () => h.select && h.select(),
|
|
843
|
+
setCustomValidity: (C) => h.setCustomValidity(C),
|
|
844
|
+
reportValidity: () => h.reportValidity()
|
|
845
|
+
});
|
|
846
|
+
}, [a._fields, t]), w = l.useMemo(() => ({
|
|
847
|
+
name: t,
|
|
848
|
+
value: m,
|
|
849
|
+
...L(o) || p.disabled ? { disabled: p.disabled || o } : {},
|
|
850
|
+
onChange: M,
|
|
851
|
+
onBlur: I,
|
|
852
|
+
ref: S
|
|
853
|
+
}), [t, o, p.disabled, M, I, S, m]);
|
|
854
|
+
return l.useEffect(() => {
|
|
855
|
+
const h = a._options.shouldUnregister || s, g = v.current;
|
|
856
|
+
g && g !== t && !u && a.unregister(g), a.register(t, {
|
|
857
|
+
...A.current.rules,
|
|
858
|
+
...L(A.current.disabled) ? { disabled: A.current.disabled } : {}
|
|
859
|
+
});
|
|
860
|
+
const C = (D, ae) => {
|
|
861
|
+
const O = x(a._fields, D);
|
|
862
|
+
O && O._f && (O._f.mount = ae);
|
|
863
|
+
};
|
|
864
|
+
if (C(t, !0), h) {
|
|
865
|
+
const D = X(x(a._options.defaultValues, t, A.current.defaultValue));
|
|
866
|
+
K(a._defaultValues, t, D), B(x(a._formValues, t)) && K(a._formValues, t, D);
|
|
867
|
+
}
|
|
868
|
+
return !u && a.register(t), v.current = t, () => {
|
|
869
|
+
(u ? h && !a._state.action : h) ? a.unregister(t) : C(t, !1);
|
|
870
|
+
};
|
|
871
|
+
}, [t, a, u, s]), l.useEffect(() => {
|
|
872
|
+
a._setDisabledField({
|
|
873
|
+
disabled: o,
|
|
874
|
+
name: t
|
|
875
|
+
});
|
|
876
|
+
}, [o, t, a]), l.useMemo(() => ({
|
|
877
|
+
field: w,
|
|
878
|
+
formState: p,
|
|
879
|
+
fieldState: y
|
|
880
|
+
}), [w, p, y]);
|
|
881
|
+
}
|
|
882
|
+
const Je = (e) => e.render($e(e)), sr = He, te = f.createContext(null), dr = ({
|
|
883
|
+
...e
|
|
884
|
+
}) => /* @__PURE__ */ i(te.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i(Je, { ...e }) }), k = () => {
|
|
885
|
+
const e = f.useContext(te), r = f.useContext(re), { getFieldState: t, formState: o } = R();
|
|
886
|
+
if (!e)
|
|
887
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
888
|
+
if (!r)
|
|
889
|
+
throw new Error("useFormField should be used within <FormItem>");
|
|
890
|
+
const a = t(e.name, o), { id: s } = r;
|
|
891
|
+
return {
|
|
892
|
+
id: s,
|
|
893
|
+
name: e.name,
|
|
894
|
+
formItemId: `${s}-form-item`,
|
|
895
|
+
formDescriptionId: `${s}-form-item-description`,
|
|
896
|
+
formMessageId: `${s}-form-item-message`,
|
|
897
|
+
...a
|
|
898
|
+
};
|
|
899
|
+
}, re = f.createContext(null), Qe = f.forwardRef(
|
|
900
|
+
({ className: e, ...r }, t) => {
|
|
901
|
+
const o = f.useId();
|
|
902
|
+
return /* @__PURE__ */ i(re.Provider, { value: { id: o }, children: /* @__PURE__ */ i("div", { ref: t, className: c("space-y-2", e), ...r }) });
|
|
903
|
+
}
|
|
904
|
+
);
|
|
905
|
+
Qe.displayName = "FormItem";
|
|
906
|
+
const Ze = f.forwardRef(({ className: e, ...r }, t) => {
|
|
907
|
+
const { error: o, formItemId: a } = k();
|
|
908
|
+
return /* @__PURE__ */ i(
|
|
909
|
+
fe,
|
|
910
|
+
{
|
|
911
|
+
ref: t,
|
|
912
|
+
className: c(o && "text-destructive", e),
|
|
913
|
+
htmlFor: a,
|
|
914
|
+
...r
|
|
915
|
+
}
|
|
916
|
+
);
|
|
917
|
+
});
|
|
918
|
+
Ze.displayName = "FormLabel";
|
|
919
|
+
const qe = f.forwardRef(({ ...e }, r) => {
|
|
920
|
+
const { error: t, formItemId: o, formDescriptionId: a, formMessageId: s } = k();
|
|
921
|
+
return /* @__PURE__ */ i(
|
|
922
|
+
T,
|
|
923
|
+
{
|
|
924
|
+
ref: r,
|
|
925
|
+
id: o,
|
|
926
|
+
"aria-describedby": t ? `${a} ${s}` : `${a}`,
|
|
927
|
+
"aria-invalid": !!t,
|
|
928
|
+
...e
|
|
929
|
+
}
|
|
930
|
+
);
|
|
931
|
+
});
|
|
932
|
+
qe.displayName = "FormControl";
|
|
933
|
+
const Xe = f.forwardRef(({ className: e, ...r }, t) => {
|
|
934
|
+
const { formDescriptionId: o } = k();
|
|
935
|
+
return /* @__PURE__ */ i(
|
|
936
|
+
"p",
|
|
937
|
+
{
|
|
938
|
+
ref: t,
|
|
939
|
+
id: o,
|
|
940
|
+
className: c("text-[0.8rem] text-muted-foreground", e),
|
|
941
|
+
...r
|
|
942
|
+
}
|
|
943
|
+
);
|
|
944
|
+
});
|
|
945
|
+
Xe.displayName = "FormDescription";
|
|
946
|
+
const Ye = f.forwardRef(({ className: e, children: r, ...t }, o) => {
|
|
947
|
+
const { error: a, formMessageId: s } = k(), d = a ? String((a == null ? void 0 : a.message) ?? "") : r;
|
|
948
|
+
return d ? /* @__PURE__ */ i(
|
|
949
|
+
"p",
|
|
950
|
+
{
|
|
951
|
+
ref: o,
|
|
952
|
+
id: s,
|
|
953
|
+
className: c("font-medium text-[0.8rem] text-destructive", e),
|
|
954
|
+
...t,
|
|
955
|
+
children: d
|
|
956
|
+
}
|
|
957
|
+
) : null;
|
|
958
|
+
});
|
|
959
|
+
Ye.displayName = "FormMessage";
|
|
631
960
|
export {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
961
|
+
Wr as Accordion,
|
|
962
|
+
$r as AccordionContent,
|
|
963
|
+
Jr as AccordionItem,
|
|
964
|
+
Qr as AccordionTrigger,
|
|
965
|
+
fr as AlertDialog,
|
|
966
|
+
br as AlertDialogAction,
|
|
967
|
+
pr as AlertDialogCancel,
|
|
968
|
+
gr as AlertDialogContent,
|
|
969
|
+
hr as AlertDialogDescription,
|
|
970
|
+
xr as AlertDialogFooter,
|
|
971
|
+
vr as AlertDialogHeader,
|
|
972
|
+
Ar as AlertDialogOverlay,
|
|
973
|
+
Cr as AlertDialogPortal,
|
|
974
|
+
Sr as AlertDialogTitle,
|
|
975
|
+
wr as AlertDialogTrigger,
|
|
976
|
+
qr as Avatar,
|
|
977
|
+
Xr as AvatarFallback,
|
|
978
|
+
Yr as AvatarImage,
|
|
979
|
+
Mr as Calendar,
|
|
980
|
+
Ir as CalendarDayButton,
|
|
981
|
+
_r as Carousel,
|
|
982
|
+
Nr as CarouselContent,
|
|
983
|
+
Er as CarouselItem,
|
|
984
|
+
Tr as CarouselNext,
|
|
985
|
+
Fr as CarouselPrevious,
|
|
986
|
+
ea as Checkbox,
|
|
987
|
+
Rr as Combobox,
|
|
988
|
+
Xa as Command,
|
|
989
|
+
Ya as CommandDialog,
|
|
990
|
+
ja as CommandEmpty,
|
|
991
|
+
eo as CommandGroup,
|
|
992
|
+
to as CommandInput,
|
|
993
|
+
ro as CommandItem,
|
|
994
|
+
ao as CommandList,
|
|
995
|
+
oo as CommandSeparator,
|
|
996
|
+
no as CommandShortcut,
|
|
997
|
+
ra as ContextMenu,
|
|
998
|
+
aa as ContextMenuCheckboxItem,
|
|
999
|
+
oa as ContextMenuContent,
|
|
1000
|
+
na as ContextMenuGroup,
|
|
1001
|
+
ia as ContextMenuItem,
|
|
1002
|
+
sa as ContextMenuLabel,
|
|
1003
|
+
da as ContextMenuPortal,
|
|
1004
|
+
la as ContextMenuRadioGroup,
|
|
1005
|
+
ua as ContextMenuRadioItem,
|
|
1006
|
+
ca as ContextMenuSeparator,
|
|
1007
|
+
ma as ContextMenuShortcut,
|
|
1008
|
+
fa as ContextMenuSub,
|
|
1009
|
+
ba as ContextMenuSubContent,
|
|
1010
|
+
pa as ContextMenuSubTrigger,
|
|
1011
|
+
ga as ContextMenuTrigger,
|
|
1012
|
+
so as Dialog,
|
|
1013
|
+
lo as DialogClose,
|
|
1014
|
+
uo as DialogContent,
|
|
1015
|
+
co as DialogDescription,
|
|
1016
|
+
mo as DialogFooter,
|
|
1017
|
+
fo as DialogHeader,
|
|
1018
|
+
bo as DialogOverlay,
|
|
1019
|
+
po as DialogPortal,
|
|
1020
|
+
go as DialogTitle,
|
|
1021
|
+
ho as DialogTrigger,
|
|
1022
|
+
vo as Drawer,
|
|
1023
|
+
Ao as DrawerClose,
|
|
1024
|
+
Co as DrawerContent,
|
|
1025
|
+
So as DrawerDescription,
|
|
1026
|
+
wo as DrawerFooter,
|
|
1027
|
+
yo as DrawerHeader,
|
|
1028
|
+
Mo as DrawerOverlay,
|
|
1029
|
+
Io as DrawerPortal,
|
|
1030
|
+
Do as DrawerTitle,
|
|
1031
|
+
_o as DrawerTrigger,
|
|
1032
|
+
xa as DropdownMenu,
|
|
1033
|
+
va as DropdownMenuCheckboxItem,
|
|
1034
|
+
Aa as DropdownMenuContent,
|
|
1035
|
+
Ca as DropdownMenuGroup,
|
|
1036
|
+
Sa as DropdownMenuItem,
|
|
1037
|
+
wa as DropdownMenuLabel,
|
|
1038
|
+
ya as DropdownMenuPortal,
|
|
1039
|
+
Ma as DropdownMenuRadioGroup,
|
|
1040
|
+
Ia as DropdownMenuRadioItem,
|
|
1041
|
+
Da as DropdownMenuSeparator,
|
|
1042
|
+
_a as DropdownMenuShortcut,
|
|
1043
|
+
Na as DropdownMenuSub,
|
|
1044
|
+
Ea as DropdownMenuSubContent,
|
|
716
1045
|
Ta as DropdownMenuSubTrigger,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
1046
|
+
Fa as DropdownMenuTrigger,
|
|
1047
|
+
sr as Form,
|
|
1048
|
+
qe as FormControl,
|
|
1049
|
+
Xe as FormDescription,
|
|
1050
|
+
dr as FormField,
|
|
1051
|
+
Qe as FormItem,
|
|
1052
|
+
Ze as FormLabel,
|
|
1053
|
+
Ye as FormMessage,
|
|
1054
|
+
Ra as HoverCard,
|
|
1055
|
+
ka as HoverCardContent,
|
|
1056
|
+
Oa as HoverCardTrigger,
|
|
1057
|
+
Or as InputOTP,
|
|
1058
|
+
Vr as InputOTPGroup,
|
|
1059
|
+
Lr as InputOTPSeparator,
|
|
1060
|
+
Br as InputOTPSlot,
|
|
1061
|
+
fe as Label,
|
|
1062
|
+
Lo as Menubar,
|
|
1063
|
+
Bo as MenubarCheckboxItem,
|
|
1064
|
+
Go as MenubarContent,
|
|
1065
|
+
Ho as MenubarGroup,
|
|
1066
|
+
zo as MenubarItem,
|
|
1067
|
+
Ko as MenubarLabel,
|
|
1068
|
+
Uo as MenubarMenu,
|
|
1069
|
+
Wo as MenubarPortal,
|
|
1070
|
+
$o as MenubarRadioGroup,
|
|
1071
|
+
Jo as MenubarRadioItem,
|
|
1072
|
+
Qo as MenubarSeparator,
|
|
1073
|
+
Zo as MenubarShortcut,
|
|
1074
|
+
qo as MenubarSub,
|
|
1075
|
+
Xo as MenubarSubContent,
|
|
1076
|
+
Yo as MenubarSubTrigger,
|
|
1077
|
+
jo as MenubarTrigger,
|
|
1078
|
+
tn as Popover,
|
|
1079
|
+
rn as PopoverAnchor,
|
|
1080
|
+
an as PopoverContent,
|
|
1081
|
+
on as PopoverTrigger,
|
|
1082
|
+
Kr as Progress,
|
|
1083
|
+
La as RadioGroup,
|
|
1084
|
+
Ba as RadioGroupItem,
|
|
1085
|
+
Ha as ScrollArea,
|
|
1086
|
+
za as ScrollBar,
|
|
1087
|
+
de as Sheet,
|
|
1088
|
+
Eo as SheetClose,
|
|
1089
|
+
le as SheetContent,
|
|
1090
|
+
me as SheetDescription,
|
|
1091
|
+
To as SheetFooter,
|
|
1092
|
+
ue as SheetHeader,
|
|
1093
|
+
ce as SheetTitle,
|
|
1094
|
+
Fo as SheetTrigger,
|
|
1095
|
+
Bt as Sidebar,
|
|
1096
|
+
Jt as SidebarContent,
|
|
1097
|
+
Wt as SidebarFooter,
|
|
1098
|
+
Qt as SidebarGroup,
|
|
1099
|
+
qt as SidebarGroupAction,
|
|
1100
|
+
Xt as SidebarGroupContent,
|
|
1101
|
+
Zt as SidebarGroupLabel,
|
|
1102
|
+
Ut as SidebarHeader,
|
|
1103
|
+
Kt as SidebarInput,
|
|
1104
|
+
zt as SidebarInset,
|
|
1105
|
+
Yt as SidebarMenu,
|
|
1106
|
+
tr as SidebarMenuAction,
|
|
1107
|
+
rr as SidebarMenuBadge,
|
|
1108
|
+
er as SidebarMenuButton,
|
|
1109
|
+
jt as SidebarMenuItem,
|
|
1110
|
+
ar as SidebarMenuSkeleton,
|
|
1111
|
+
or as SidebarMenuSub,
|
|
1112
|
+
ir as SidebarMenuSubButton,
|
|
1113
|
+
nr as SidebarMenuSubItem,
|
|
1114
|
+
Lt as SidebarProvider,
|
|
1115
|
+
Ht as SidebarRail,
|
|
1116
|
+
$t as SidebarSeparator,
|
|
1117
|
+
Gt as SidebarTrigger,
|
|
1118
|
+
Hr as Slider,
|
|
1119
|
+
Ua as Switch,
|
|
1120
|
+
$a as Tabs,
|
|
1121
|
+
Ja as TabsContent,
|
|
1122
|
+
Qa as TabsList,
|
|
1123
|
+
Za as TabsTrigger,
|
|
1124
|
+
cr as TextReveal,
|
|
1125
|
+
Ro as Toaster,
|
|
1126
|
+
Oo as Toggle,
|
|
1127
|
+
oe as Tooltip,
|
|
1128
|
+
ie as TooltipContent,
|
|
1129
|
+
se as TooltipProvider,
|
|
1130
|
+
ne as TooltipTrigger,
|
|
1131
|
+
k as useFormField,
|
|
1132
|
+
Z as useSidebar
|
|
796
1133
|
};
|