@plyaz/ui 0.7.19 → 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 +523 -520
- 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/Sidebar/Sidebar.stories.d.ts +1 -0
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/styles/utilities.css +4 -0
package/dist/client.es.js
CHANGED
|
@@ -1,44 +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
|
|
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
27
|
import { Label as fe } from "./client/label.es.js";
|
|
28
|
-
import { Menubar as
|
|
29
|
-
import { Popover as
|
|
30
|
-
import { jsx as
|
|
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
31
|
import * as f from "react";
|
|
32
|
-
import
|
|
33
|
-
import { Slot as
|
|
34
|
-
import { cva as
|
|
35
|
-
import { PanelLeftIcon as
|
|
36
|
-
import { c
|
|
37
|
-
import { I as
|
|
38
|
-
import { B as
|
|
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";
|
|
39
39
|
import "@radix-ui/react-select";
|
|
40
40
|
import "next-intl";
|
|
41
|
-
import { a as
|
|
41
|
+
import { a as z, S as xe } from "./Skeleton-Cj9Od_Nd.js";
|
|
42
42
|
import "@radix-ui/react-alert-dialog";
|
|
43
43
|
import "react-day-picker";
|
|
44
44
|
import "cmdk";
|
|
@@ -64,9 +64,12 @@ import "@radix-ui/react-label";
|
|
|
64
64
|
import "@radix-ui/react-menubar";
|
|
65
65
|
import "@radix-ui/react-separator";
|
|
66
66
|
import "@radix-ui/react-tooltip";
|
|
67
|
-
var
|
|
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);
|
|
68
71
|
const V = 768;
|
|
69
|
-
function
|
|
72
|
+
function we() {
|
|
70
73
|
const [e, r] = f.useState(void 0);
|
|
71
74
|
return f.useEffect(() => {
|
|
72
75
|
const t = window.matchMedia(`(max-width: ${V - 1}px)`), o = () => {
|
|
@@ -75,97 +78,97 @@ function ve() {
|
|
|
75
78
|
return t.addEventListener("change", o), r(window.innerWidth < V), () => t.removeEventListener("change", o);
|
|
76
79
|
}, []), !!e;
|
|
77
80
|
}
|
|
78
|
-
const
|
|
79
|
-
function
|
|
80
|
-
const e = f.useContext(
|
|
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);
|
|
81
84
|
if (!e)
|
|
82
85
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
83
86
|
return e;
|
|
84
87
|
}
|
|
85
|
-
function
|
|
88
|
+
function Lt({
|
|
86
89
|
defaultOpen: e = !0,
|
|
87
90
|
open: r,
|
|
88
91
|
onOpenChange: t,
|
|
89
92
|
className: o,
|
|
90
93
|
style: a,
|
|
91
|
-
children:
|
|
92
|
-
...
|
|
94
|
+
children: s,
|
|
95
|
+
...d
|
|
93
96
|
}) {
|
|
94
|
-
const
|
|
95
|
-
(
|
|
96
|
-
const
|
|
97
|
-
t ? t(
|
|
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}`;
|
|
98
101
|
},
|
|
99
|
-
[t,
|
|
100
|
-
),
|
|
101
|
-
}, []), M =
|
|
102
|
+
[t, v]
|
|
103
|
+
), y = f.useCallback(() => {
|
|
104
|
+
}, []), M = v ? "expanded" : "collapsed", I = f.useMemo(
|
|
102
105
|
() => ({
|
|
103
106
|
state: M,
|
|
104
|
-
open:
|
|
105
|
-
setOpen:
|
|
106
|
-
isMobile:
|
|
107
|
-
openMobile:
|
|
108
|
-
setOpenMobile:
|
|
109
|
-
toggleSidebar:
|
|
107
|
+
open: v,
|
|
108
|
+
setOpen: _,
|
|
109
|
+
isMobile: u,
|
|
110
|
+
openMobile: b,
|
|
111
|
+
setOpenMobile: m,
|
|
112
|
+
toggleSidebar: y
|
|
110
113
|
}),
|
|
111
|
-
[M,
|
|
114
|
+
[M, v, _, u, b, m, y]
|
|
112
115
|
);
|
|
113
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ i(Q.Provider, { value: I, children: /* @__PURE__ */ i(se, { delayDuration: 0, children: /* @__PURE__ */ i(
|
|
114
117
|
"div",
|
|
115
118
|
{
|
|
116
119
|
"data-slot": "sidebar-wrapper",
|
|
117
120
|
style: {
|
|
118
|
-
"--sidebar-width":
|
|
119
|
-
"--sidebar-width-icon":
|
|
121
|
+
"--sidebar-width": Ie,
|
|
122
|
+
"--sidebar-width-icon": _e,
|
|
120
123
|
...a
|
|
121
124
|
},
|
|
122
|
-
className:
|
|
125
|
+
className: c(
|
|
123
126
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
124
127
|
o
|
|
125
128
|
),
|
|
126
|
-
...
|
|
127
|
-
children:
|
|
129
|
+
...d,
|
|
130
|
+
children: s
|
|
128
131
|
}
|
|
129
132
|
) }) });
|
|
130
133
|
}
|
|
131
|
-
function
|
|
134
|
+
function Ne({
|
|
132
135
|
side: e,
|
|
133
136
|
openMobile: r,
|
|
134
137
|
setOpenMobile: t,
|
|
135
138
|
children: o,
|
|
136
139
|
...a
|
|
137
140
|
}) {
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
|
|
141
|
+
return /* @__PURE__ */ i(de, { open: r, onOpenChange: t, ...a, children: /* @__PURE__ */ E(
|
|
142
|
+
le,
|
|
140
143
|
{
|
|
141
144
|
"data-sidebar": "sidebar",
|
|
142
145
|
"data-slot": "sidebar",
|
|
143
146
|
"data-mobile": "true",
|
|
144
147
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
145
148
|
style: {
|
|
146
|
-
"--sidebar-width":
|
|
149
|
+
"--sidebar-width": De
|
|
147
150
|
},
|
|
148
151
|
side: e,
|
|
149
152
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ E(ue, { className: "sr-only", children: [
|
|
154
|
+
/* @__PURE__ */ i(ce, { children: "Sidebar" }),
|
|
155
|
+
/* @__PURE__ */ i(me, { children: "Displays the mobile sidebar." })
|
|
153
156
|
] }),
|
|
154
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ i("div", { className: "flex h-full w-full flex-col", children: o })
|
|
155
158
|
]
|
|
156
159
|
}
|
|
157
160
|
) });
|
|
158
161
|
}
|
|
159
|
-
function
|
|
162
|
+
function Ee({
|
|
160
163
|
side: e,
|
|
161
164
|
variant: r,
|
|
162
165
|
collapsible: t,
|
|
163
166
|
state: o,
|
|
164
167
|
className: a,
|
|
165
|
-
children:
|
|
166
|
-
...
|
|
168
|
+
children: s,
|
|
169
|
+
...d
|
|
167
170
|
}) {
|
|
168
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ E(
|
|
169
172
|
"div",
|
|
170
173
|
{
|
|
171
174
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
@@ -175,11 +178,11 @@ function _e({
|
|
|
175
178
|
"data-side": e,
|
|
176
179
|
"data-slot": "sidebar",
|
|
177
180
|
children: [
|
|
178
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ i(
|
|
179
182
|
"div",
|
|
180
183
|
{
|
|
181
184
|
"data-slot": "sidebar-gap",
|
|
182
|
-
className:
|
|
185
|
+
className: c(
|
|
183
186
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
184
187
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
185
188
|
"group-data-[side=right]:rotate-180",
|
|
@@ -187,25 +190,25 @@ function _e({
|
|
|
187
190
|
)
|
|
188
191
|
}
|
|
189
192
|
),
|
|
190
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ i(
|
|
191
194
|
"div",
|
|
192
195
|
{
|
|
193
196
|
"data-slot": "sidebar-container",
|
|
194
|
-
className:
|
|
197
|
+
className: c(
|
|
195
198
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
196
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)]",
|
|
197
200
|
// Adjust the padding for floating and inset variants.
|
|
198
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",
|
|
199
202
|
a
|
|
200
203
|
),
|
|
201
|
-
...
|
|
202
|
-
children: /* @__PURE__ */
|
|
204
|
+
...d,
|
|
205
|
+
children: /* @__PURE__ */ i(
|
|
203
206
|
"div",
|
|
204
207
|
{
|
|
205
208
|
"data-sidebar": "sidebar",
|
|
206
209
|
"data-slot": "sidebar-inner",
|
|
207
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",
|
|
208
|
-
children:
|
|
211
|
+
children: s
|
|
209
212
|
}
|
|
210
213
|
)
|
|
211
214
|
}
|
|
@@ -214,62 +217,62 @@ function _e({
|
|
|
214
217
|
}
|
|
215
218
|
);
|
|
216
219
|
}
|
|
217
|
-
function
|
|
220
|
+
function Bt({
|
|
218
221
|
side: e = "left",
|
|
219
222
|
variant: r = "sidebar",
|
|
220
223
|
collapsible: t = "offcanvas",
|
|
221
224
|
className: o,
|
|
222
225
|
children: a,
|
|
223
|
-
...
|
|
226
|
+
...s
|
|
224
227
|
}) {
|
|
225
|
-
const { isMobile:
|
|
226
|
-
return t === "none" ? /* @__PURE__ */
|
|
228
|
+
const { isMobile: d, state: u, openMobile: b, setOpenMobile: m } = Z();
|
|
229
|
+
return t === "none" ? /* @__PURE__ */ i(
|
|
227
230
|
"div",
|
|
228
231
|
{
|
|
229
232
|
"data-slot": "sidebar",
|
|
230
|
-
className:
|
|
233
|
+
className: c(
|
|
231
234
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
232
235
|
o
|
|
233
236
|
),
|
|
234
|
-
...
|
|
237
|
+
...s,
|
|
235
238
|
children: a
|
|
236
239
|
}
|
|
237
|
-
) :
|
|
238
|
-
|
|
240
|
+
) : d ? /* @__PURE__ */ i(Ne, { side: e, openMobile: b, setOpenMobile: m, ...s, children: a }) : /* @__PURE__ */ i(
|
|
241
|
+
Ee,
|
|
239
242
|
{
|
|
240
243
|
side: e,
|
|
241
244
|
variant: r,
|
|
242
245
|
collapsible: t,
|
|
243
|
-
state:
|
|
246
|
+
state: u,
|
|
244
247
|
className: o,
|
|
245
|
-
...
|
|
248
|
+
...s,
|
|
246
249
|
children: a
|
|
247
250
|
}
|
|
248
251
|
);
|
|
249
252
|
}
|
|
250
|
-
function
|
|
251
|
-
return /* @__PURE__ */
|
|
252
|
-
|
|
253
|
+
function Gt({ className: e, onClick: r, ...t }) {
|
|
254
|
+
return /* @__PURE__ */ E(
|
|
255
|
+
he,
|
|
253
256
|
{
|
|
254
257
|
"data-sidebar": "trigger",
|
|
255
258
|
"data-slot": "sidebar-trigger",
|
|
256
259
|
variant: "ghost",
|
|
257
260
|
size: "icon",
|
|
258
|
-
className:
|
|
261
|
+
className: c("size-7", e),
|
|
259
262
|
onClick: (o) => {
|
|
260
263
|
r == null || r(o);
|
|
261
264
|
},
|
|
262
265
|
disabled: !0,
|
|
263
266
|
...t,
|
|
264
267
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ i(pe, {}),
|
|
269
|
+
/* @__PURE__ */ i("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
267
270
|
]
|
|
268
271
|
}
|
|
269
272
|
);
|
|
270
273
|
}
|
|
271
|
-
function
|
|
272
|
-
return /* @__PURE__ */
|
|
274
|
+
function Ht({ className: e, ...r }) {
|
|
275
|
+
return /* @__PURE__ */ i(
|
|
273
276
|
"button",
|
|
274
277
|
{
|
|
275
278
|
"data-sidebar": "rail",
|
|
@@ -280,7 +283,7 @@ function Pt({ className: e, ...r }) {
|
|
|
280
283
|
},
|
|
281
284
|
title: "Toggle Sidebar",
|
|
282
285
|
disabled: !0,
|
|
283
|
-
className:
|
|
286
|
+
className: c(
|
|
284
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",
|
|
285
288
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
286
289
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -293,12 +296,12 @@ function Pt({ className: e, ...r }) {
|
|
|
293
296
|
}
|
|
294
297
|
);
|
|
295
298
|
}
|
|
296
|
-
function
|
|
297
|
-
return /* @__PURE__ */
|
|
299
|
+
function zt({ className: e, ...r }) {
|
|
300
|
+
return /* @__PURE__ */ i(
|
|
298
301
|
"main",
|
|
299
302
|
{
|
|
300
303
|
"data-slot": "sidebar-inset",
|
|
301
|
-
className:
|
|
304
|
+
className: c(
|
|
302
305
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
303
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",
|
|
304
307
|
e
|
|
@@ -307,57 +310,57 @@ function Bt({ className: e, ...r }) {
|
|
|
307
310
|
}
|
|
308
311
|
);
|
|
309
312
|
}
|
|
310
|
-
function
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
-
|
|
313
|
+
function Kt({ className: e, ...r }) {
|
|
314
|
+
return /* @__PURE__ */ i(
|
|
315
|
+
ge,
|
|
313
316
|
{
|
|
314
317
|
"data-slot": "sidebar-input",
|
|
315
318
|
"data-sidebar": "input",
|
|
316
|
-
className:
|
|
319
|
+
className: c("bg-background h-10 w-full shadow-none", e),
|
|
317
320
|
...r
|
|
318
321
|
}
|
|
319
322
|
);
|
|
320
323
|
}
|
|
321
|
-
function
|
|
322
|
-
return /* @__PURE__ */
|
|
324
|
+
function Ut({ className: e, ...r }) {
|
|
325
|
+
return /* @__PURE__ */ i(
|
|
323
326
|
"div",
|
|
324
327
|
{
|
|
325
328
|
"data-slot": "sidebar-header",
|
|
326
329
|
"data-sidebar": "header",
|
|
327
|
-
className:
|
|
330
|
+
className: c("flex flex-col gap-3 p-2", e),
|
|
328
331
|
...r
|
|
329
332
|
}
|
|
330
333
|
);
|
|
331
334
|
}
|
|
332
|
-
function
|
|
333
|
-
return /* @__PURE__ */
|
|
335
|
+
function Wt({ className: e, ...r }) {
|
|
336
|
+
return /* @__PURE__ */ i(
|
|
334
337
|
"div",
|
|
335
338
|
{
|
|
336
339
|
"data-slot": "sidebar-footer",
|
|
337
340
|
"data-sidebar": "footer",
|
|
338
|
-
className:
|
|
341
|
+
className: c("flex flex-col gap-3 p-2", e),
|
|
339
342
|
...r
|
|
340
343
|
}
|
|
341
344
|
);
|
|
342
345
|
}
|
|
343
|
-
function
|
|
344
|
-
return /* @__PURE__ */
|
|
345
|
-
|
|
346
|
+
function $t({ className: e, ...r }) {
|
|
347
|
+
return /* @__PURE__ */ i(
|
|
348
|
+
xe,
|
|
346
349
|
{
|
|
347
350
|
"data-slot": "sidebar-separator",
|
|
348
351
|
"data-sidebar": "separator",
|
|
349
|
-
className:
|
|
352
|
+
className: c("bg-sidebar-border mx-2 w-auto", e),
|
|
350
353
|
...r
|
|
351
354
|
}
|
|
352
355
|
);
|
|
353
356
|
}
|
|
354
|
-
function
|
|
355
|
-
return /* @__PURE__ */
|
|
357
|
+
function Jt({ className: e, ...r }) {
|
|
358
|
+
return /* @__PURE__ */ i(
|
|
356
359
|
"div",
|
|
357
360
|
{
|
|
358
361
|
"data-slot": "sidebar-content",
|
|
359
362
|
"data-sidebar": "content",
|
|
360
|
-
className:
|
|
363
|
+
className: c(
|
|
361
364
|
"flex min-h-0 flex-1 flex-col gap-3 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
362
365
|
e
|
|
363
366
|
),
|
|
@@ -365,28 +368,28 @@ function Wt({ className: e, ...r }) {
|
|
|
365
368
|
}
|
|
366
369
|
);
|
|
367
370
|
}
|
|
368
|
-
function
|
|
369
|
-
return /* @__PURE__ */
|
|
371
|
+
function Qt({ className: e, ...r }) {
|
|
372
|
+
return /* @__PURE__ */ i(
|
|
370
373
|
"div",
|
|
371
374
|
{
|
|
372
375
|
"data-slot": "sidebar-group",
|
|
373
376
|
"data-sidebar": "group",
|
|
374
|
-
className:
|
|
377
|
+
className: c("relative flex w-full min-w-0 flex-col p-2", e),
|
|
375
378
|
...r
|
|
376
379
|
}
|
|
377
380
|
);
|
|
378
381
|
}
|
|
379
|
-
function
|
|
382
|
+
function Zt({
|
|
380
383
|
className: e,
|
|
381
384
|
asChild: r = !1,
|
|
382
385
|
...t
|
|
383
386
|
}) {
|
|
384
|
-
return /* @__PURE__ */
|
|
385
|
-
r ?
|
|
387
|
+
return /* @__PURE__ */ i(
|
|
388
|
+
r ? T : "div",
|
|
386
389
|
{
|
|
387
390
|
"data-slot": "sidebar-group-label",
|
|
388
391
|
"data-sidebar": "group-label",
|
|
389
|
-
className:
|
|
392
|
+
className: c(
|
|
390
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",
|
|
391
394
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
392
395
|
e
|
|
@@ -395,17 +398,17 @@ function Ut({
|
|
|
395
398
|
}
|
|
396
399
|
);
|
|
397
400
|
}
|
|
398
|
-
function
|
|
401
|
+
function qt({
|
|
399
402
|
className: e,
|
|
400
403
|
asChild: r = !1,
|
|
401
404
|
...t
|
|
402
405
|
}) {
|
|
403
|
-
return /* @__PURE__ */
|
|
404
|
-
r ?
|
|
406
|
+
return /* @__PURE__ */ i(
|
|
407
|
+
r ? T : "button",
|
|
405
408
|
{
|
|
406
409
|
"data-slot": "sidebar-group-action",
|
|
407
410
|
"data-sidebar": "group-action",
|
|
408
|
-
className:
|
|
411
|
+
className: c(
|
|
409
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",
|
|
410
413
|
// Increases the hit area of the button on mobile.
|
|
411
414
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -416,40 +419,40 @@ function Kt({
|
|
|
416
419
|
}
|
|
417
420
|
);
|
|
418
421
|
}
|
|
419
|
-
function
|
|
420
|
-
return /* @__PURE__ */
|
|
422
|
+
function Xt({ className: e, ...r }) {
|
|
423
|
+
return /* @__PURE__ */ i(
|
|
421
424
|
"div",
|
|
422
425
|
{
|
|
423
426
|
"data-slot": "sidebar-group-content",
|
|
424
427
|
"data-sidebar": "group-content",
|
|
425
|
-
className:
|
|
428
|
+
className: c("w-full text-sm", e),
|
|
426
429
|
...r
|
|
427
430
|
}
|
|
428
431
|
);
|
|
429
432
|
}
|
|
430
|
-
function
|
|
431
|
-
return /* @__PURE__ */
|
|
433
|
+
function Yt({ className: e, ...r }) {
|
|
434
|
+
return /* @__PURE__ */ i(
|
|
432
435
|
"ul",
|
|
433
436
|
{
|
|
434
437
|
"data-slot": "sidebar-menu",
|
|
435
438
|
"data-sidebar": "menu",
|
|
436
|
-
className:
|
|
439
|
+
className: c("flex w-full min-w-0 flex-col gap-1", e),
|
|
437
440
|
...r
|
|
438
441
|
}
|
|
439
442
|
);
|
|
440
443
|
}
|
|
441
|
-
function
|
|
442
|
-
return /* @__PURE__ */
|
|
444
|
+
function jt({ className: e, ...r }) {
|
|
445
|
+
return /* @__PURE__ */ i(
|
|
443
446
|
"li",
|
|
444
447
|
{
|
|
445
448
|
"data-slot": "sidebar-menu-item",
|
|
446
449
|
"data-sidebar": "menu-item",
|
|
447
|
-
className:
|
|
450
|
+
className: c("group/menu-item relative", e),
|
|
448
451
|
...r
|
|
449
452
|
}
|
|
450
453
|
);
|
|
451
454
|
}
|
|
452
|
-
const
|
|
455
|
+
const Te = be(
|
|
453
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",
|
|
454
457
|
{
|
|
455
458
|
variants: {
|
|
@@ -469,53 +472,53 @@ const Ie = me(
|
|
|
469
472
|
}
|
|
470
473
|
}
|
|
471
474
|
);
|
|
472
|
-
function
|
|
475
|
+
function er({
|
|
473
476
|
asChild: e = !1,
|
|
474
477
|
isActive: r = !1,
|
|
475
478
|
variant: t = "default",
|
|
476
479
|
size: o = "default",
|
|
477
480
|
tooltip: a,
|
|
478
|
-
className:
|
|
479
|
-
...
|
|
481
|
+
className: s,
|
|
482
|
+
...d
|
|
480
483
|
}) {
|
|
481
|
-
const
|
|
482
|
-
|
|
484
|
+
const u = e ? T : "button", { isMobile: b, state: m } = Z(), p = /* @__PURE__ */ i(
|
|
485
|
+
u,
|
|
483
486
|
{
|
|
484
487
|
"data-slot": "sidebar-menu-button",
|
|
485
488
|
"data-sidebar": "menu-button",
|
|
486
489
|
"data-size": o,
|
|
487
490
|
"data-active": r,
|
|
488
|
-
className:
|
|
489
|
-
...
|
|
491
|
+
className: c(Te({ variant: t, size: o }), s),
|
|
492
|
+
...d
|
|
490
493
|
}
|
|
491
494
|
);
|
|
492
495
|
return a ? (typeof a == "string" && (a = {
|
|
493
496
|
children: a
|
|
494
|
-
}), /* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
|
|
497
|
+
}), /* @__PURE__ */ E(oe, { children: [
|
|
498
|
+
/* @__PURE__ */ i(ne, { asChild: !0, children: p }),
|
|
499
|
+
/* @__PURE__ */ i(
|
|
500
|
+
ie,
|
|
498
501
|
{
|
|
499
502
|
side: "right",
|
|
500
503
|
align: "center",
|
|
501
|
-
hidden:
|
|
504
|
+
hidden: m !== "collapsed" || b,
|
|
502
505
|
...a
|
|
503
506
|
}
|
|
504
507
|
)
|
|
505
|
-
] })) :
|
|
508
|
+
] })) : p;
|
|
506
509
|
}
|
|
507
|
-
function
|
|
510
|
+
function tr({
|
|
508
511
|
className: e,
|
|
509
512
|
asChild: r = !1,
|
|
510
513
|
showOnHover: t = !1,
|
|
511
514
|
...o
|
|
512
515
|
}) {
|
|
513
|
-
return /* @__PURE__ */
|
|
514
|
-
r ?
|
|
516
|
+
return /* @__PURE__ */ i(
|
|
517
|
+
r ? T : "button",
|
|
515
518
|
{
|
|
516
519
|
"data-slot": "sidebar-menu-action",
|
|
517
520
|
"data-sidebar": "menu-action",
|
|
518
|
-
className:
|
|
521
|
+
className: c(
|
|
519
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",
|
|
520
523
|
// Increases the hit area of the button on mobile.
|
|
521
524
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -530,13 +533,13 @@ function Yt({
|
|
|
530
533
|
}
|
|
531
534
|
);
|
|
532
535
|
}
|
|
533
|
-
function
|
|
534
|
-
return /* @__PURE__ */
|
|
536
|
+
function rr({ className: e, ...r }) {
|
|
537
|
+
return /* @__PURE__ */ i(
|
|
535
538
|
"div",
|
|
536
539
|
{
|
|
537
540
|
"data-slot": "sidebar-menu-badge",
|
|
538
541
|
"data-sidebar": "menu-badge",
|
|
539
|
-
className:
|
|
542
|
+
className: c(
|
|
540
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",
|
|
541
544
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
542
545
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -549,24 +552,24 @@ function Zt({ className: e, ...r }) {
|
|
|
549
552
|
}
|
|
550
553
|
);
|
|
551
554
|
}
|
|
552
|
-
const
|
|
553
|
-
function
|
|
555
|
+
const Fe = 50, Pe = 40;
|
|
556
|
+
function ar({
|
|
554
557
|
className: e,
|
|
555
558
|
showIcon: r = !1,
|
|
556
559
|
...t
|
|
557
560
|
}) {
|
|
558
|
-
const o = f.useMemo(() => `${Math.floor(Math.random() *
|
|
559
|
-
return /* @__PURE__ */
|
|
561
|
+
const o = f.useMemo(() => `${Math.floor(Math.random() * Pe) + Fe}%`, []);
|
|
562
|
+
return /* @__PURE__ */ E(
|
|
560
563
|
"div",
|
|
561
564
|
{
|
|
562
565
|
"data-slot": "sidebar-menu-skeleton",
|
|
563
566
|
"data-sidebar": "menu-skeleton",
|
|
564
|
-
className:
|
|
567
|
+
className: c("flex h-10 items-center gap-3 rounded-md px-2", e),
|
|
565
568
|
...t,
|
|
566
569
|
children: [
|
|
567
|
-
r && /* @__PURE__ */
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
|
|
570
|
+
r && /* @__PURE__ */ i(z, { className: "size-6 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
571
|
+
/* @__PURE__ */ i(
|
|
572
|
+
z,
|
|
570
573
|
{
|
|
571
574
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
572
575
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -579,13 +582,13 @@ function jt({
|
|
|
579
582
|
}
|
|
580
583
|
);
|
|
581
584
|
}
|
|
582
|
-
function
|
|
583
|
-
return /* @__PURE__ */
|
|
585
|
+
function or({ className: e, ...r }) {
|
|
586
|
+
return /* @__PURE__ */ i(
|
|
584
587
|
"ul",
|
|
585
588
|
{
|
|
586
589
|
"data-slot": "sidebar-menu-sub",
|
|
587
590
|
"data-sidebar": "menu-sub",
|
|
588
|
-
className:
|
|
591
|
+
className: c(
|
|
589
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",
|
|
590
593
|
"group-data-[collapsible=icon]:hidden",
|
|
591
594
|
e
|
|
@@ -594,32 +597,32 @@ function er({ className: e, ...r }) {
|
|
|
594
597
|
}
|
|
595
598
|
);
|
|
596
599
|
}
|
|
597
|
-
function
|
|
598
|
-
return /* @__PURE__ */
|
|
600
|
+
function nr({ className: e, ...r }) {
|
|
601
|
+
return /* @__PURE__ */ i(
|
|
599
602
|
"li",
|
|
600
603
|
{
|
|
601
604
|
"data-slot": "sidebar-menu-sub-item",
|
|
602
605
|
"data-sidebar": "menu-sub-item",
|
|
603
|
-
className:
|
|
606
|
+
className: c("group/menu-sub-item relative", e),
|
|
604
607
|
...r
|
|
605
608
|
}
|
|
606
609
|
);
|
|
607
610
|
}
|
|
608
|
-
function
|
|
611
|
+
function ir({
|
|
609
612
|
asChild: e = !1,
|
|
610
613
|
size: r = "md",
|
|
611
614
|
isActive: t = !1,
|
|
612
615
|
className: o,
|
|
613
616
|
...a
|
|
614
617
|
}) {
|
|
615
|
-
return /* @__PURE__ */
|
|
616
|
-
e ?
|
|
618
|
+
return /* @__PURE__ */ i(
|
|
619
|
+
e ? T : "a",
|
|
617
620
|
{
|
|
618
621
|
"data-slot": "sidebar-menu-sub-button",
|
|
619
622
|
"data-sidebar": "menu-sub-button",
|
|
620
623
|
"data-size": r,
|
|
621
624
|
"data-active": t,
|
|
622
|
-
className:
|
|
625
|
+
className: c(
|
|
623
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",
|
|
624
627
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
625
628
|
r === "sm" && "text-xs",
|
|
@@ -631,74 +634,74 @@ function rr({
|
|
|
631
634
|
}
|
|
632
635
|
);
|
|
633
636
|
}
|
|
634
|
-
var
|
|
635
|
-
const
|
|
636
|
-
var N = (e) => !
|
|
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) => {
|
|
637
640
|
const r = e.constructor && e.constructor.prototype;
|
|
638
641
|
return N(r) && r.hasOwnProperty("isPrototypeOf");
|
|
639
|
-
},
|
|
640
|
-
function
|
|
642
|
+
}, Be = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
643
|
+
function X(e) {
|
|
641
644
|
let r;
|
|
642
645
|
const t = Array.isArray(e), o = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
643
646
|
if (e instanceof Date)
|
|
644
647
|
r = new Date(e);
|
|
645
|
-
else if (!(
|
|
646
|
-
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !
|
|
648
|
+
else if (!(Be && (e instanceof Blob || o)) && (t || N(e)))
|
|
649
|
+
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Le(e))
|
|
647
650
|
r = e;
|
|
648
651
|
else
|
|
649
652
|
for (const a in e)
|
|
650
|
-
e.hasOwnProperty(a) && (r[a] =
|
|
653
|
+
e.hasOwnProperty(a) && (r[a] = X(e[a]));
|
|
651
654
|
else
|
|
652
655
|
return e;
|
|
653
656
|
return r;
|
|
654
657
|
}
|
|
655
|
-
var Y = (e) => /^\w*$/.test(e), B = (e) => e === void 0,
|
|
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) => {
|
|
656
659
|
if (!r || !N(e))
|
|
657
660
|
return t;
|
|
658
|
-
const o = (Y(r) ? [r] :
|
|
661
|
+
const o = (Y(r) ? [r] : j(r)).reduce((a, s) => G(a) ? a : a[s], e);
|
|
659
662
|
return B(o) || o === e ? B(e[r]) ? t : e[r] : o;
|
|
660
|
-
},
|
|
663
|
+
}, L = (e) => typeof e == "boolean", K = (e, r, t) => {
|
|
661
664
|
let o = -1;
|
|
662
|
-
const a = Y(r) ? [r] :
|
|
663
|
-
for (; ++o <
|
|
664
|
-
const
|
|
665
|
-
let
|
|
666
|
-
if (o !==
|
|
667
|
-
const
|
|
668
|
-
|
|
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]) ? {} : [];
|
|
669
672
|
}
|
|
670
|
-
if (
|
|
673
|
+
if (u === "__proto__" || u === "constructor" || u === "prototype")
|
|
671
674
|
return;
|
|
672
|
-
e[
|
|
675
|
+
e[u] = b, e = e[u];
|
|
673
676
|
}
|
|
674
677
|
};
|
|
675
|
-
const
|
|
678
|
+
const U = {
|
|
676
679
|
BLUR: "blur",
|
|
677
680
|
CHANGE: "change"
|
|
678
|
-
},
|
|
681
|
+
}, W = {
|
|
679
682
|
all: "all"
|
|
680
|
-
},
|
|
681
|
-
|
|
682
|
-
const
|
|
683
|
+
}, H = l.createContext(null);
|
|
684
|
+
H.displayName = "HookFormContext";
|
|
685
|
+
const R = () => l.useContext(H), He = (e) => {
|
|
683
686
|
const { children: r, ...t } = e;
|
|
684
|
-
return
|
|
687
|
+
return l.createElement(H.Provider, { value: t }, r);
|
|
685
688
|
};
|
|
686
|
-
var
|
|
689
|
+
var ze = (e, r, t, o = !0) => {
|
|
687
690
|
const a = {
|
|
688
691
|
defaultValues: r._defaultValues
|
|
689
692
|
};
|
|
690
|
-
for (const
|
|
691
|
-
Object.defineProperty(a,
|
|
693
|
+
for (const s in e)
|
|
694
|
+
Object.defineProperty(a, s, {
|
|
692
695
|
get: () => {
|
|
693
|
-
const
|
|
694
|
-
return r._proxyFormState[
|
|
696
|
+
const d = s;
|
|
697
|
+
return r._proxyFormState[d] !== W.all && (r._proxyFormState[d] = !o || W.all), t && (t[d] = !0), e[d];
|
|
695
698
|
}
|
|
696
699
|
});
|
|
697
700
|
return a;
|
|
698
701
|
};
|
|
699
|
-
const
|
|
700
|
-
function
|
|
701
|
-
const r =
|
|
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({
|
|
702
705
|
isDirty: !1,
|
|
703
706
|
isLoading: !1,
|
|
704
707
|
dirtyFields: !1,
|
|
@@ -708,25 +711,25 @@ function Le(e) {
|
|
|
708
711
|
isValid: !1,
|
|
709
712
|
errors: !1
|
|
710
713
|
});
|
|
711
|
-
return
|
|
714
|
+
return ee(() => t._subscribe({
|
|
712
715
|
name: a,
|
|
713
|
-
formState:
|
|
714
|
-
exact:
|
|
715
|
-
callback: (
|
|
716
|
-
!o &&
|
|
716
|
+
formState: b.current,
|
|
717
|
+
exact: s,
|
|
718
|
+
callback: (m) => {
|
|
719
|
+
!o && u({
|
|
717
720
|
...t._formState,
|
|
718
|
-
...
|
|
721
|
+
...m
|
|
719
722
|
});
|
|
720
723
|
}
|
|
721
|
-
}), [a, o,
|
|
722
|
-
|
|
723
|
-
}, [t]),
|
|
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]);
|
|
724
727
|
}
|
|
725
|
-
var
|
|
726
|
-
function
|
|
727
|
-
if (
|
|
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))
|
|
728
731
|
return e === r;
|
|
729
|
-
if (
|
|
732
|
+
if (F(e) && F(r))
|
|
730
733
|
return e.getTime() === r.getTime();
|
|
731
734
|
const o = Object.keys(e), a = Object.keys(r);
|
|
732
735
|
if (o.length !== a.length)
|
|
@@ -734,397 +737,397 @@ function k(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
734
737
|
if (t.has(e) || t.has(r))
|
|
735
738
|
return !0;
|
|
736
739
|
t.add(e), t.add(r);
|
|
737
|
-
for (const
|
|
738
|
-
const
|
|
739
|
-
if (!a.includes(
|
|
740
|
+
for (const s of o) {
|
|
741
|
+
const d = e[s];
|
|
742
|
+
if (!a.includes(s))
|
|
740
743
|
return !1;
|
|
741
|
-
if (
|
|
742
|
-
const
|
|
743
|
-
if (
|
|
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)
|
|
744
747
|
return !1;
|
|
745
748
|
}
|
|
746
749
|
}
|
|
747
750
|
return !0;
|
|
748
751
|
}
|
|
749
|
-
function
|
|
750
|
-
const r =
|
|
751
|
-
|
|
752
|
-
const [
|
|
753
|
-
const
|
|
754
|
-
return
|
|
755
|
-
}), M =
|
|
756
|
-
const
|
|
757
|
-
return
|
|
758
|
-
}, [t._formValues, t._names, o]),
|
|
759
|
-
if (!
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
762
|
-
const
|
|
763
|
-
|
|
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);
|
|
764
767
|
} else
|
|
765
|
-
|
|
768
|
+
y(C);
|
|
766
769
|
}
|
|
767
|
-
}, [t._formValues, t._names,
|
|
768
|
-
|
|
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({
|
|
769
772
|
name: o,
|
|
770
773
|
formState: {
|
|
771
774
|
values: !0
|
|
772
775
|
},
|
|
773
|
-
exact:
|
|
774
|
-
callback: (
|
|
775
|
-
|
|
776
|
+
exact: d,
|
|
777
|
+
callback: (g) => {
|
|
778
|
+
I(g.values);
|
|
776
779
|
}
|
|
777
|
-
})), [t,
|
|
778
|
-
const
|
|
779
|
-
if (
|
|
780
|
+
})), [t, d, o, I]), l.useEffect(() => t._removeUnmounted());
|
|
781
|
+
const S = A.current !== t, w = v.current, h = l.useMemo(() => {
|
|
782
|
+
if (s)
|
|
780
783
|
return null;
|
|
781
|
-
const
|
|
782
|
-
return
|
|
783
|
-
}, [
|
|
784
|
-
return
|
|
784
|
+
const g = !S && !P(w, o);
|
|
785
|
+
return S || g ? M() : null;
|
|
786
|
+
}, [s, S, o, w, M]);
|
|
787
|
+
return h !== null ? h : _;
|
|
785
788
|
}
|
|
786
|
-
function
|
|
787
|
-
const r =
|
|
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({
|
|
788
791
|
control: a,
|
|
789
792
|
name: t,
|
|
790
|
-
defaultValue:
|
|
793
|
+
defaultValue: b,
|
|
791
794
|
exact: !0
|
|
792
|
-
}),
|
|
795
|
+
}), p = Ke({
|
|
793
796
|
control: a,
|
|
794
797
|
name: t,
|
|
795
798
|
exact: !0
|
|
796
|
-
}),
|
|
799
|
+
}), A = l.useRef(e), v = l.useRef(void 0), _ = l.useRef(a.register(t, {
|
|
797
800
|
...e.rules,
|
|
798
|
-
value:
|
|
799
|
-
...
|
|
801
|
+
value: m,
|
|
802
|
+
...L(e.disabled) ? { disabled: e.disabled } : {}
|
|
800
803
|
}));
|
|
801
|
-
|
|
802
|
-
const
|
|
804
|
+
A.current = e;
|
|
805
|
+
const y = l.useMemo(() => Object.defineProperties({}, {
|
|
803
806
|
invalid: {
|
|
804
807
|
enumerable: !0,
|
|
805
|
-
get: () => !!
|
|
808
|
+
get: () => !!x(p.errors, t)
|
|
806
809
|
},
|
|
807
810
|
isDirty: {
|
|
808
811
|
enumerable: !0,
|
|
809
|
-
get: () => !!
|
|
812
|
+
get: () => !!x(p.dirtyFields, t)
|
|
810
813
|
},
|
|
811
814
|
isTouched: {
|
|
812
815
|
enumerable: !0,
|
|
813
|
-
get: () => !!
|
|
816
|
+
get: () => !!x(p.touchedFields, t)
|
|
814
817
|
},
|
|
815
818
|
isValidating: {
|
|
816
819
|
enumerable: !0,
|
|
817
|
-
get: () => !!
|
|
820
|
+
get: () => !!x(p.validatingFields, t)
|
|
818
821
|
},
|
|
819
822
|
error: {
|
|
820
823
|
enumerable: !0,
|
|
821
|
-
get: () =>
|
|
824
|
+
get: () => x(p.errors, t)
|
|
822
825
|
}
|
|
823
|
-
}), [
|
|
826
|
+
}), [p, t]), M = l.useCallback((h) => _.current.onChange({
|
|
824
827
|
target: {
|
|
825
|
-
value:
|
|
828
|
+
value: ke(h),
|
|
826
829
|
name: t
|
|
827
830
|
},
|
|
828
|
-
type:
|
|
829
|
-
}), [t]),
|
|
831
|
+
type: U.CHANGE
|
|
832
|
+
}), [t]), I = l.useCallback(() => _.current.onBlur({
|
|
830
833
|
target: {
|
|
831
|
-
value:
|
|
834
|
+
value: x(a._formValues, t),
|
|
832
835
|
name: t
|
|
833
836
|
},
|
|
834
|
-
type:
|
|
835
|
-
}), [t, a._formValues]),
|
|
836
|
-
const
|
|
837
|
-
|
|
838
|
-
focus: () =>
|
|
839
|
-
select: () =>
|
|
840
|
-
setCustomValidity: (
|
|
841
|
-
reportValidity: () =>
|
|
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()
|
|
842
845
|
});
|
|
843
|
-
}, [a._fields, t]),
|
|
846
|
+
}, [a._fields, t]), w = l.useMemo(() => ({
|
|
844
847
|
name: t,
|
|
845
|
-
value:
|
|
846
|
-
...
|
|
848
|
+
value: m,
|
|
849
|
+
...L(o) || p.disabled ? { disabled: p.disabled || o } : {},
|
|
847
850
|
onChange: M,
|
|
848
|
-
onBlur:
|
|
849
|
-
ref:
|
|
850
|
-
}), [t, o,
|
|
851
|
-
return
|
|
852
|
-
const
|
|
853
|
-
|
|
854
|
-
...
|
|
855
|
-
...
|
|
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 } : {}
|
|
856
859
|
});
|
|
857
|
-
const
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
+
const C = (D, ae) => {
|
|
861
|
+
const O = x(a._fields, D);
|
|
862
|
+
O && O._f && (O._f.mount = ae);
|
|
860
863
|
};
|
|
861
|
-
if (
|
|
862
|
-
const
|
|
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);
|
|
864
867
|
}
|
|
865
|
-
return !
|
|
866
|
-
(
|
|
868
|
+
return !u && a.register(t), v.current = t, () => {
|
|
869
|
+
(u ? h && !a._state.action : h) ? a.unregister(t) : C(t, !1);
|
|
867
870
|
};
|
|
868
|
-
}, [t, a,
|
|
871
|
+
}, [t, a, u, s]), l.useEffect(() => {
|
|
869
872
|
a._setDisabledField({
|
|
870
873
|
disabled: o,
|
|
871
874
|
name: t
|
|
872
875
|
});
|
|
873
|
-
}, [o, t, a]),
|
|
874
|
-
field:
|
|
875
|
-
formState:
|
|
876
|
-
fieldState:
|
|
877
|
-
}), [
|
|
876
|
+
}, [o, t, a]), l.useMemo(() => ({
|
|
877
|
+
field: w,
|
|
878
|
+
formState: p,
|
|
879
|
+
fieldState: y
|
|
880
|
+
}), [w, p, y]);
|
|
878
881
|
}
|
|
879
|
-
const
|
|
882
|
+
const Je = (e) => e.render($e(e)), sr = He, te = f.createContext(null), dr = ({
|
|
880
883
|
...e
|
|
881
|
-
}) => /* @__PURE__ */
|
|
882
|
-
const e = f.useContext(
|
|
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();
|
|
883
886
|
if (!e)
|
|
884
887
|
throw new Error("useFormField should be used within <FormField>");
|
|
885
888
|
if (!r)
|
|
886
889
|
throw new Error("useFormField should be used within <FormItem>");
|
|
887
|
-
const a = t(e.name, o), { id:
|
|
890
|
+
const a = t(e.name, o), { id: s } = r;
|
|
888
891
|
return {
|
|
889
|
-
id:
|
|
892
|
+
id: s,
|
|
890
893
|
name: e.name,
|
|
891
|
-
formItemId: `${
|
|
892
|
-
formDescriptionId: `${
|
|
893
|
-
formMessageId: `${
|
|
894
|
+
formItemId: `${s}-form-item`,
|
|
895
|
+
formDescriptionId: `${s}-form-item-description`,
|
|
896
|
+
formMessageId: `${s}-form-item-message`,
|
|
894
897
|
...a
|
|
895
898
|
};
|
|
896
|
-
},
|
|
899
|
+
}, re = f.createContext(null), Qe = f.forwardRef(
|
|
897
900
|
({ className: e, ...r }, t) => {
|
|
898
901
|
const o = f.useId();
|
|
899
|
-
return /* @__PURE__ */
|
|
902
|
+
return /* @__PURE__ */ i(re.Provider, { value: { id: o }, children: /* @__PURE__ */ i("div", { ref: t, className: c("space-y-2", e), ...r }) });
|
|
900
903
|
}
|
|
901
904
|
);
|
|
902
|
-
|
|
903
|
-
const
|
|
904
|
-
const { error: o, formItemId: a } =
|
|
905
|
-
return /* @__PURE__ */
|
|
905
|
+
Qe.displayName = "FormItem";
|
|
906
|
+
const Ze = f.forwardRef(({ className: e, ...r }, t) => {
|
|
907
|
+
const { error: o, formItemId: a } = k();
|
|
908
|
+
return /* @__PURE__ */ i(
|
|
906
909
|
fe,
|
|
907
910
|
{
|
|
908
911
|
ref: t,
|
|
909
|
-
className:
|
|
912
|
+
className: c(o && "text-destructive", e),
|
|
910
913
|
htmlFor: a,
|
|
911
914
|
...r
|
|
912
915
|
}
|
|
913
916
|
);
|
|
914
917
|
});
|
|
915
|
-
|
|
916
|
-
const
|
|
917
|
-
const { error: t, formItemId: o, formDescriptionId: a, formMessageId:
|
|
918
|
-
return /* @__PURE__ */
|
|
919
|
-
|
|
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,
|
|
920
923
|
{
|
|
921
924
|
ref: r,
|
|
922
925
|
id: o,
|
|
923
|
-
"aria-describedby": t ? `${a} ${
|
|
926
|
+
"aria-describedby": t ? `${a} ${s}` : `${a}`,
|
|
924
927
|
"aria-invalid": !!t,
|
|
925
928
|
...e
|
|
926
929
|
}
|
|
927
930
|
);
|
|
928
931
|
});
|
|
929
|
-
|
|
930
|
-
const
|
|
931
|
-
const { formDescriptionId: o } =
|
|
932
|
-
return /* @__PURE__ */
|
|
932
|
+
qe.displayName = "FormControl";
|
|
933
|
+
const Xe = f.forwardRef(({ className: e, ...r }, t) => {
|
|
934
|
+
const { formDescriptionId: o } = k();
|
|
935
|
+
return /* @__PURE__ */ i(
|
|
933
936
|
"p",
|
|
934
937
|
{
|
|
935
938
|
ref: t,
|
|
936
939
|
id: o,
|
|
937
|
-
className:
|
|
940
|
+
className: c("text-[0.8rem] text-muted-foreground", e),
|
|
938
941
|
...r
|
|
939
942
|
}
|
|
940
943
|
);
|
|
941
944
|
});
|
|
942
|
-
|
|
943
|
-
const
|
|
944
|
-
const { error: a, formMessageId:
|
|
945
|
-
return
|
|
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(
|
|
946
949
|
"p",
|
|
947
950
|
{
|
|
948
951
|
ref: o,
|
|
949
|
-
id:
|
|
950
|
-
className:
|
|
952
|
+
id: s,
|
|
953
|
+
className: c("font-medium text-[0.8rem] text-destructive", e),
|
|
951
954
|
...t,
|
|
952
|
-
children:
|
|
955
|
+
children: d
|
|
953
956
|
}
|
|
954
957
|
) : null;
|
|
955
958
|
});
|
|
956
|
-
|
|
959
|
+
Ye.displayName = "FormMessage";
|
|
957
960
|
export {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
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,
|
|
1045
|
+
Ta as DropdownMenuSubTrigger,
|
|
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,
|
|
1058
1061
|
fe as Label,
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
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
|
|
1130
1133
|
};
|