@plyaz/ui 0.9.1 → 0.10.1
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/{Textarea-DIEPzlTz.cjs → Textarea-BvWlVUbA.cjs} +2 -2
- package/dist/{Textarea-BfrJwucE.js → Textarea-CzufjM38.js} +50 -46
- package/dist/client/calendar.cjs.js +1 -1
- package/dist/client/calendar.es.js +1 -1
- package/dist/client/carousel.cjs.js +1 -1
- package/dist/client/carousel.es.js +1 -1
- package/dist/client/combobox.cjs.js +1 -1
- package/dist/client/combobox.es.js +1 -1
- package/dist/client/reveal-text.cjs.js +1 -1
- package/dist/client/reveal-text.es.js +1504 -1408
- package/dist/client.cjs.js +1 -1
- package/dist/client.es.js +524 -484
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/types/components/Badge/Badge.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/Badge/Badge.stories.d.ts +20 -0
- package/dist/types/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/styles/main.css +1 -0
package/dist/client.es.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
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 { CommandDialog as To, CommandSeparator as
|
|
22
|
-
import { Dialog as
|
|
23
|
-
import { Drawer as
|
|
24
|
-
import { Sheet as Se, SheetContent as
|
|
25
|
-
import { SheetClose as
|
|
26
|
-
import { Toaster as
|
|
27
|
-
import { Toggle as
|
|
28
|
-
import { Label as
|
|
29
|
-
import { Menubar as
|
|
30
|
-
import { Popover as
|
|
31
|
-
import { PopoverAnchor as
|
|
32
|
-
import { jsx as n, jsxs as N, Fragment as
|
|
33
|
-
import * as
|
|
34
|
-
import
|
|
35
|
-
import { Slot as
|
|
36
|
-
import { cva as
|
|
37
|
-
import { PanelLeftIcon as
|
|
38
|
-
import { c } from "./utils-B6yFEsav.js";
|
|
39
|
-
import { I as
|
|
40
|
-
import { B as
|
|
1
|
+
import { TextReveal as $r } from "./client/reveal-text.es.js";
|
|
2
|
+
import { AlertDialog as Qr, AlertDialogAction as Zr, AlertDialogCancel as jr, AlertDialogContent as qr, AlertDialogDescription as Xr, AlertDialogFooter as Yr, AlertDialogHeader as ea, AlertDialogOverlay as ta, AlertDialogPortal as ra, AlertDialogTitle as aa, AlertDialogTrigger as oa } from "./client/alert-dialog.es.js";
|
|
3
|
+
import { Calendar as ia, CalendarDayButton as sa } from "./client/calendar.es.js";
|
|
4
|
+
import { Carousel as la, CarouselContent as ua, CarouselItem as ca, CarouselNext as ma, CarouselPrevious as fa } from "./client/carousel.es.js";
|
|
5
|
+
import { Combobox as ba } from "./client/combobox.es.js";
|
|
6
|
+
import { InputOTP as ha, InputOTPGroup as xa, InputOTPSeparator as va, InputOTPSlot as Aa } from "./client/input-otp.es.js";
|
|
7
|
+
import { Slider as ya } from "./client/slider.es.js";
|
|
8
|
+
import { Progress as Sa } from "./client/progress.es.js";
|
|
9
|
+
import { Accordion as Ia, AccordionContent as Na, AccordionItem as Da, AccordionTrigger as _a } from "./client/accordion.es.js";
|
|
10
|
+
import { Avatar as ka, AvatarFallback as Fa, AvatarImage as Ta } from "./client/avatar.es.js";
|
|
11
|
+
import { Checkbox as Ra } from "./client/checkbox.es.js";
|
|
12
|
+
import { ContextMenu as Va, ContextMenuCheckboxItem as Ba, ContextMenuContent as La, ContextMenuGroup as Ga, ContextMenuItem as Ha, ContextMenuLabel as za, ContextMenuPortal as Ua, ContextMenuRadioGroup as Ka, ContextMenuRadioItem as Wa, ContextMenuSeparator as $a, ContextMenuShortcut as Ja, ContextMenuSub as Qa, ContextMenuSubContent as Za, ContextMenuSubTrigger as ja, ContextMenuTrigger as qa } from "./client/context-menu.es.js";
|
|
13
|
+
import { DropdownMenu as Ya, DropdownMenuCheckboxItem as eo, DropdownMenuContent as to, DropdownMenuGroup as ro, DropdownMenuItem as ao, DropdownMenuLabel as oo, DropdownMenuPortal as no, DropdownMenuRadioGroup as io, DropdownMenuRadioItem as so, DropdownMenuSeparator as lo, DropdownMenuShortcut as uo, DropdownMenuSub as co, DropdownMenuSubContent as mo, DropdownMenuSubTrigger as fo, DropdownMenuTrigger as po } from "./client/dropdown-menu.es.js";
|
|
14
|
+
import { HoverCard as go, HoverCardContent as ho, HoverCardTrigger as xo } from "./client/hover-card.es.js";
|
|
15
|
+
import { RadioGroup as Ao, RadioGroupItem as wo } from "./client/radio-group.es.js";
|
|
16
|
+
import { ScrollArea as Co, ScrollBar as So } from "./client/scroll-area.es.js";
|
|
17
|
+
import { Switch as Io } from "./client/switch.es.js";
|
|
18
|
+
import { Tabs as Do, TabsContent as _o, TabsList as Eo, TabsTrigger as ko } from "./client/tabs.es.js";
|
|
19
|
+
import { Tooltip as ge, TooltipTrigger as he, TooltipContent as xe, TooltipProvider as ve } from "./client/tooltip.es.js";
|
|
20
|
+
import { Command as Q, CommandList as Z, CommandInput as Ae, CommandEmpty as we, CommandGroup as ye, CommandItem as Ce } from "./client/command.es.js";
|
|
21
|
+
import { CommandDialog as To, CommandSeparator as Po, CommandShortcut as Ro } from "./client/command.es.js";
|
|
22
|
+
import { Dialog as Vo, DialogClose as Bo, DialogContent as Lo, DialogDescription as Go, DialogFooter as Ho, DialogHeader as zo, DialogOverlay as Uo, DialogPortal as Ko, DialogTitle as Wo, DialogTrigger as $o } from "./client/dialog.es.js";
|
|
23
|
+
import { Drawer as Qo, DrawerClose as Zo, DrawerContent as jo, DrawerDescription as qo, DrawerFooter as Xo, DrawerHeader as Yo, DrawerOverlay as en, DrawerPortal as tn, DrawerTitle as rn, DrawerTrigger as an } from "./client/drawer.es.js";
|
|
24
|
+
import { Sheet as Se, SheetContent as Me, SheetHeader as Ie, SheetTitle as Ne, SheetDescription as De } from "./client/sheet.es.js";
|
|
25
|
+
import { SheetClose as nn, SheetFooter as sn, SheetTrigger as dn } from "./client/sheet.es.js";
|
|
26
|
+
import { Toaster as un } from "./client/toaster.es.js";
|
|
27
|
+
import { Toggle as mn } from "./client/toggle.es.js";
|
|
28
|
+
import { Label as _e } from "./client/label.es.js";
|
|
29
|
+
import { Menubar as pn, MenubarCheckboxItem as bn, MenubarContent as gn, MenubarGroup as hn, MenubarItem as xn, MenubarLabel as vn, MenubarMenu as An, MenubarPortal as wn, MenubarRadioGroup as yn, MenubarRadioItem as Cn, MenubarSeparator as Sn, MenubarShortcut as Mn, MenubarSub as In, MenubarSubContent as Nn, MenubarSubTrigger as Dn, MenubarTrigger as _n } from "./client/menu-bar.es.js";
|
|
30
|
+
import { Popover as Ee, PopoverContent as ke, PopoverTrigger as Fe } from "./client/popover.es.js";
|
|
31
|
+
import { PopoverAnchor as kn } from "./client/popover.es.js";
|
|
32
|
+
import { jsx as n, jsxs as N, Fragment as Te } from "react/jsx-runtime";
|
|
33
|
+
import * as w from "react";
|
|
34
|
+
import u, { createContext as Pe, useState as R, useCallback as H, useEffect as Re, useRef as j, useContext as Oe } from "react";
|
|
35
|
+
import { Slot as k } from "@radix-ui/react-slot";
|
|
36
|
+
import { cva as Ve } from "class-variance-authority";
|
|
37
|
+
import { PanelLeftIcon as Be, CheckIcon as Le, ChevronsUpDownIcon as Ge, XIcon as He } from "lucide-react";
|
|
38
|
+
import { c as f } from "./utils-B6yFEsav.js";
|
|
39
|
+
import { I as ze, B as q } from "./Textarea-CzufjM38.js";
|
|
40
|
+
import { B as oe } from "./Button-B7sEajdG.js";
|
|
41
41
|
import "@radix-ui/react-select";
|
|
42
42
|
import "next-intl";
|
|
43
|
-
import { a as
|
|
43
|
+
import { a as X, S as Ue } from "./Skeleton-Cj9Od_Nd.js";
|
|
44
44
|
import "@radix-ui/react-alert-dialog";
|
|
45
45
|
import "react-day-picker";
|
|
46
46
|
import "cmdk";
|
|
@@ -66,28 +66,28 @@ import "@radix-ui/react-label";
|
|
|
66
66
|
import "@radix-ui/react-menubar";
|
|
67
67
|
import "@radix-ui/react-separator";
|
|
68
68
|
import "@radix-ui/react-tooltip";
|
|
69
|
-
var i = { 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" },
|
|
70
|
-
Array.from(new Set(Object.values(
|
|
71
|
-
Array.from({ length: Ue }, (e, r) => r);
|
|
69
|
+
var i = { 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" }, Ke = 7, We = 6, $e = { WEEK: 6048e5 }, Je = { [i.US]: ["America/New_York", "America/Chicago", "America/Denver", "America/Los_Angeles", "America/Anchorage", "Pacific/Honolulu"], [i.CA]: ["America/Toronto", "America/Vancouver", "America/Edmonton", "America/Halifax", "America/St_Johns"], [i.MX]: ["America/Mexico_City", "America/Monterrey", "America/Tijuana"], [i.BR]: ["America/Sao_Paulo", "America/Manaus", "America/Fortaleza"], [i.AR]: ["America/Argentina/Buenos_Aires"], [i.CL]: ["America/Santiago"], [i.CO]: ["America/Bogota"], [i.PE]: ["America/Lima"], [i.VE]: ["America/Caracas"], [i.GB]: ["Europe/London"], [i.FR]: ["Europe/Paris"], [i.DE]: ["Europe/Berlin"], [i.IT]: ["Europe/Rome"], [i.ES]: ["Europe/Madrid"], [i.PT]: ["Europe/Lisbon"], [i.NL]: ["Europe/Amsterdam"], [i.SE]: ["Europe/Stockholm"], [i.PL]: ["Europe/Warsaw"], [i.FI]: ["Europe/Helsinki"], [i.NO]: ["Europe/Oslo"], [i.CH]: ["Europe/Zurich"], [i.RU]: ["Europe/Moscow", "Asia/Yekaterinburg", "Asia/Irkutsk", "Asia/Vladivostok"], [i.UA]: ["Europe/Kyiv"], [i.GR]: ["Europe/Athens"], [i.TR]: ["Europe/Istanbul"], [i.CN]: ["Asia/Shanghai", "Asia/Urumqi"], [i.JP]: ["Asia/Tokyo"], [i.KR]: ["Asia/Seoul"], [i.IN]: ["Asia/Kolkata"], [i.PK]: ["Asia/Karachi"], [i.BD]: ["Asia/Dhaka"], [i.TH]: ["Asia/Bangkok"], [i.VN]: ["Asia/Ho_Chi_Minh"], [i.MY]: ["Asia/Kuala_Lumpur"], [i.SG]: ["Asia/Singapore"], [i.ID]: ["Asia/Jakarta", "Asia/Makassar", "Asia/Jayapura"], [i.PH]: ["Asia/Manila"], [i.AE]: ["Asia/Dubai"], [i.SA]: ["Asia/Riyadh"], [i.IR]: ["Asia/Tehran"], [i.IQ]: ["Asia/Baghdad"], [i.IL]: ["Asia/Jerusalem"], [i.QA]: ["Asia/Qatar"], [i.KW]: ["Asia/Kuwait"], [i.EG]: ["Africa/Cairo"], [i.NG]: ["Africa/Lagos"], [i.ZA]: ["Africa/Johannesburg"], [i.KE]: ["Africa/Nairobi"], [i.MA]: ["Africa/Casablanca"], [i.GH]: ["Africa/Accra"], [i.ET]: ["Africa/Addis_Ababa"], [i.TZ]: ["Africa/Dar_es_Salaam"], [i.SN]: ["Africa/Dakar"], [i.AU]: ["Australia/Sydney", "Australia/Melbourne", "Australia/Perth", "Australia/Brisbane"], [i.NZ]: ["Pacific/Auckland"], [i.FJ]: ["Pacific/Fiji"], [i.PG]: ["Pacific/Port_Moresby"], [i.AQ]: ["Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Casey"] };
|
|
70
|
+
Array.from(new Set(Object.values(Je).flat()));
|
|
72
71
|
Array.from({ length: Ke }, (e, r) => r);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
Array.from({ length: We }, (e, r) => r);
|
|
73
|
+
const L = 768;
|
|
74
|
+
function Qe() {
|
|
75
|
+
const [e, r] = w.useState(void 0);
|
|
76
|
+
return w.useEffect(() => {
|
|
77
|
+
const t = window.matchMedia(`(max-width: ${L - 1}px)`), a = () => {
|
|
78
|
+
r(window.innerWidth < L);
|
|
79
79
|
};
|
|
80
|
-
return t.addEventListener("change", a), r(window.innerWidth <
|
|
80
|
+
return t.addEventListener("change", a), r(window.innerWidth < L), () => t.removeEventListener("change", a);
|
|
81
81
|
}, []), !!e;
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
function
|
|
85
|
-
const e =
|
|
83
|
+
const Ze = "sidebar_state", je = $e.WEEK, qe = "16rem", Xe = "18rem", Ye = "3rem", ne = w.createContext(null);
|
|
84
|
+
function ie() {
|
|
85
|
+
const e = w.useContext(ne);
|
|
86
86
|
if (!e)
|
|
87
87
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
88
88
|
return e;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function fr({
|
|
91
91
|
defaultOpen: e = !0,
|
|
92
92
|
open: r,
|
|
93
93
|
onOpenChange: t,
|
|
@@ -96,35 +96,35 @@ function cr({
|
|
|
96
96
|
children: s,
|
|
97
97
|
...d
|
|
98
98
|
}) {
|
|
99
|
-
const l =
|
|
99
|
+
const l = Qe(), [c, p] = w.useState(!1), [C, g] = w.useState(e), x = r ?? C, A = w.useCallback(
|
|
100
100
|
(h) => {
|
|
101
101
|
const S = typeof h == "function" ? h(x) : h;
|
|
102
|
-
t ? t(S) : g(S), document.cookie = `${
|
|
102
|
+
t ? t(S) : g(S), document.cookie = `${Ze}=${S}; path=/; max-age=${je}`;
|
|
103
103
|
},
|
|
104
104
|
[t, x]
|
|
105
|
-
),
|
|
106
|
-
}, []), y = x ? "expanded" : "collapsed", b =
|
|
105
|
+
), v = w.useCallback(() => {
|
|
106
|
+
}, []), y = x ? "expanded" : "collapsed", b = w.useMemo(
|
|
107
107
|
() => ({
|
|
108
108
|
state: y,
|
|
109
109
|
open: x,
|
|
110
|
-
setOpen:
|
|
110
|
+
setOpen: A,
|
|
111
111
|
isMobile: l,
|
|
112
|
-
openMobile:
|
|
112
|
+
openMobile: c,
|
|
113
113
|
setOpenMobile: p,
|
|
114
|
-
toggleSidebar:
|
|
114
|
+
toggleSidebar: v
|
|
115
115
|
}),
|
|
116
|
-
[y, x,
|
|
116
|
+
[y, x, A, l, c, p, v]
|
|
117
117
|
);
|
|
118
|
-
return /* @__PURE__ */ n(
|
|
118
|
+
return /* @__PURE__ */ n(ne.Provider, { value: b, children: /* @__PURE__ */ n(ve, { delayDuration: 0, children: /* @__PURE__ */ n(
|
|
119
119
|
"div",
|
|
120
120
|
{
|
|
121
121
|
"data-slot": "sidebar-wrapper",
|
|
122
122
|
style: {
|
|
123
|
-
"--sidebar-width":
|
|
124
|
-
"--sidebar-width-icon":
|
|
123
|
+
"--sidebar-width": qe,
|
|
124
|
+
"--sidebar-width-icon": Ye,
|
|
125
125
|
...o
|
|
126
126
|
},
|
|
127
|
-
className:
|
|
127
|
+
className: f(
|
|
128
128
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
129
129
|
a
|
|
130
130
|
),
|
|
@@ -133,7 +133,7 @@ function cr({
|
|
|
133
133
|
}
|
|
134
134
|
) }) });
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function et({
|
|
137
137
|
side: e,
|
|
138
138
|
openMobile: r,
|
|
139
139
|
setOpenMobile: t,
|
|
@@ -141,27 +141,27 @@ function Ye({
|
|
|
141
141
|
...o
|
|
142
142
|
}) {
|
|
143
143
|
return /* @__PURE__ */ n(Se, { open: r, onOpenChange: t, ...o, children: /* @__PURE__ */ N(
|
|
144
|
-
|
|
144
|
+
Me,
|
|
145
145
|
{
|
|
146
146
|
"data-sidebar": "sidebar",
|
|
147
147
|
"data-slot": "sidebar",
|
|
148
148
|
"data-mobile": "true",
|
|
149
149
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
150
150
|
style: {
|
|
151
|
-
"--sidebar-width":
|
|
151
|
+
"--sidebar-width": Xe
|
|
152
152
|
},
|
|
153
153
|
side: e,
|
|
154
154
|
children: [
|
|
155
|
-
/* @__PURE__ */ N(
|
|
156
|
-
/* @__PURE__ */ n(
|
|
157
|
-
/* @__PURE__ */ n(
|
|
155
|
+
/* @__PURE__ */ N(Ie, { className: "sr-only", children: [
|
|
156
|
+
/* @__PURE__ */ n(Ne, { children: "Sidebar" }),
|
|
157
|
+
/* @__PURE__ */ n(De, { children: "Displays the mobile sidebar." })
|
|
158
158
|
] }),
|
|
159
159
|
/* @__PURE__ */ n("div", { className: "flex h-full w-full flex-col", children: a })
|
|
160
160
|
]
|
|
161
161
|
}
|
|
162
162
|
) });
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function tt({
|
|
165
165
|
side: e,
|
|
166
166
|
variant: r,
|
|
167
167
|
collapsible: t,
|
|
@@ -184,7 +184,7 @@ function et({
|
|
|
184
184
|
"div",
|
|
185
185
|
{
|
|
186
186
|
"data-slot": "sidebar-gap",
|
|
187
|
-
className:
|
|
187
|
+
className: f(
|
|
188
188
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
189
189
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
190
190
|
"group-data-[side=right]:rotate-180",
|
|
@@ -196,7 +196,7 @@ function et({
|
|
|
196
196
|
"div",
|
|
197
197
|
{
|
|
198
198
|
"data-slot": "sidebar-container",
|
|
199
|
-
className:
|
|
199
|
+
className: f(
|
|
200
200
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
201
201
|
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)]",
|
|
202
202
|
// Adjust the padding for floating and inset variants.
|
|
@@ -219,7 +219,7 @@ function et({
|
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function pr({
|
|
223
223
|
side: e = "left",
|
|
224
224
|
variant: r = "sidebar",
|
|
225
225
|
collapsible: t = "offcanvas",
|
|
@@ -227,20 +227,20 @@ function mr({
|
|
|
227
227
|
children: o,
|
|
228
228
|
...s
|
|
229
229
|
}) {
|
|
230
|
-
const { isMobile: d, state: l, openMobile:
|
|
230
|
+
const { isMobile: d, state: l, openMobile: c, setOpenMobile: p } = ie();
|
|
231
231
|
return t === "none" ? /* @__PURE__ */ n(
|
|
232
232
|
"div",
|
|
233
233
|
{
|
|
234
234
|
"data-slot": "sidebar",
|
|
235
|
-
className:
|
|
235
|
+
className: f(
|
|
236
236
|
"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
237
237
|
a
|
|
238
238
|
),
|
|
239
239
|
...s,
|
|
240
240
|
children: o
|
|
241
241
|
}
|
|
242
|
-
) : d ? /* @__PURE__ */ n(
|
|
243
|
-
|
|
242
|
+
) : d ? /* @__PURE__ */ n(et, { side: e, openMobile: c, setOpenMobile: p, ...s, children: o }) : /* @__PURE__ */ n(
|
|
243
|
+
tt,
|
|
244
244
|
{
|
|
245
245
|
side: e,
|
|
246
246
|
variant: r,
|
|
@@ -252,28 +252,28 @@ function mr({
|
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function br({ className: e, onClick: r, ...t }) {
|
|
256
256
|
return /* @__PURE__ */ N(
|
|
257
|
-
|
|
257
|
+
oe,
|
|
258
258
|
{
|
|
259
259
|
"data-sidebar": "trigger",
|
|
260
260
|
"data-slot": "sidebar-trigger",
|
|
261
261
|
variant: "ghost",
|
|
262
262
|
size: "icon",
|
|
263
|
-
className:
|
|
263
|
+
className: f("size-7", e),
|
|
264
264
|
onClick: (a) => {
|
|
265
265
|
r == null || r(a);
|
|
266
266
|
},
|
|
267
267
|
disabled: !0,
|
|
268
268
|
...t,
|
|
269
269
|
children: [
|
|
270
|
-
/* @__PURE__ */ n(
|
|
270
|
+
/* @__PURE__ */ n(Be, {}),
|
|
271
271
|
/* @__PURE__ */ n("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
272
272
|
]
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function gr({ className: e, ...r }) {
|
|
277
277
|
return /* @__PURE__ */ n(
|
|
278
278
|
"button",
|
|
279
279
|
{
|
|
@@ -285,7 +285,7 @@ function pr({ className: e, ...r }) {
|
|
|
285
285
|
},
|
|
286
286
|
title: "Toggle Sidebar",
|
|
287
287
|
disabled: !0,
|
|
288
|
-
className:
|
|
288
|
+
className: f(
|
|
289
289
|
"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",
|
|
290
290
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
291
291
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -298,12 +298,12 @@ function pr({ className: e, ...r }) {
|
|
|
298
298
|
}
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function hr({ className: e, ...r }) {
|
|
302
302
|
return /* @__PURE__ */ n(
|
|
303
303
|
"main",
|
|
304
304
|
{
|
|
305
305
|
"data-slot": "sidebar-inset",
|
|
306
|
-
className:
|
|
306
|
+
className: f(
|
|
307
307
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
308
308
|
"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",
|
|
309
309
|
e
|
|
@@ -312,57 +312,57 @@ function br({ className: e, ...r }) {
|
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function xr({ className: e, ...r }) {
|
|
316
316
|
return /* @__PURE__ */ n(
|
|
317
|
-
|
|
317
|
+
ze,
|
|
318
318
|
{
|
|
319
319
|
"data-slot": "sidebar-input",
|
|
320
320
|
"data-sidebar": "input",
|
|
321
|
-
className:
|
|
321
|
+
className: f("bg-background h-10 w-full shadow-none", e),
|
|
322
322
|
...r
|
|
323
323
|
}
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function vr({ className: e, ...r }) {
|
|
327
327
|
return /* @__PURE__ */ n(
|
|
328
328
|
"div",
|
|
329
329
|
{
|
|
330
330
|
"data-slot": "sidebar-header",
|
|
331
331
|
"data-sidebar": "header",
|
|
332
|
-
className:
|
|
332
|
+
className: f("flex flex-col gap-3 p-2", e),
|
|
333
333
|
...r
|
|
334
334
|
}
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Ar({ className: e, ...r }) {
|
|
338
338
|
return /* @__PURE__ */ n(
|
|
339
339
|
"div",
|
|
340
340
|
{
|
|
341
341
|
"data-slot": "sidebar-footer",
|
|
342
342
|
"data-sidebar": "footer",
|
|
343
|
-
className:
|
|
343
|
+
className: f("flex flex-col gap-3 p-2", e),
|
|
344
344
|
...r
|
|
345
345
|
}
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function wr({ className: e, ...r }) {
|
|
349
349
|
return /* @__PURE__ */ n(
|
|
350
|
-
|
|
350
|
+
Ue,
|
|
351
351
|
{
|
|
352
352
|
"data-slot": "sidebar-separator",
|
|
353
353
|
"data-sidebar": "separator",
|
|
354
|
-
className:
|
|
354
|
+
className: f("bg-sidebar-border mx-2 w-auto", e),
|
|
355
355
|
...r
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function yr({ className: e, ...r }) {
|
|
360
360
|
return /* @__PURE__ */ n(
|
|
361
361
|
"div",
|
|
362
362
|
{
|
|
363
363
|
"data-slot": "sidebar-content",
|
|
364
364
|
"data-sidebar": "content",
|
|
365
|
-
className:
|
|
365
|
+
className: f(
|
|
366
366
|
"flex min-h-0 flex-1 flex-col gap-3 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
367
367
|
e
|
|
368
368
|
),
|
|
@@ -370,28 +370,28 @@ function Ar({ className: e, ...r }) {
|
|
|
370
370
|
}
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Cr({ className: e, ...r }) {
|
|
374
374
|
return /* @__PURE__ */ n(
|
|
375
375
|
"div",
|
|
376
376
|
{
|
|
377
377
|
"data-slot": "sidebar-group",
|
|
378
378
|
"data-sidebar": "group",
|
|
379
|
-
className:
|
|
379
|
+
className: f("relative flex w-full min-w-0 flex-col p-2", e),
|
|
380
380
|
...r
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Sr({
|
|
385
385
|
className: e,
|
|
386
386
|
asChild: r = !1,
|
|
387
387
|
...t
|
|
388
388
|
}) {
|
|
389
389
|
return /* @__PURE__ */ n(
|
|
390
|
-
r ?
|
|
390
|
+
r ? k : "div",
|
|
391
391
|
{
|
|
392
392
|
"data-slot": "sidebar-group-label",
|
|
393
393
|
"data-sidebar": "group-label",
|
|
394
|
-
className:
|
|
394
|
+
className: f(
|
|
395
395
|
"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",
|
|
396
396
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
397
397
|
e
|
|
@@ -400,17 +400,17 @@ function yr({
|
|
|
400
400
|
}
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Mr({
|
|
404
404
|
className: e,
|
|
405
405
|
asChild: r = !1,
|
|
406
406
|
...t
|
|
407
407
|
}) {
|
|
408
408
|
return /* @__PURE__ */ n(
|
|
409
|
-
r ?
|
|
409
|
+
r ? k : "button",
|
|
410
410
|
{
|
|
411
411
|
"data-slot": "sidebar-group-action",
|
|
412
412
|
"data-sidebar": "group-action",
|
|
413
|
-
className:
|
|
413
|
+
className: f(
|
|
414
414
|
"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",
|
|
415
415
|
// Increases the hit area of the button on mobile.
|
|
416
416
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -421,40 +421,40 @@ function Sr({
|
|
|
421
421
|
}
|
|
422
422
|
);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Ir({ className: e, ...r }) {
|
|
425
425
|
return /* @__PURE__ */ n(
|
|
426
426
|
"div",
|
|
427
427
|
{
|
|
428
428
|
"data-slot": "sidebar-group-content",
|
|
429
429
|
"data-sidebar": "group-content",
|
|
430
|
-
className:
|
|
430
|
+
className: f("w-full text-sm", e),
|
|
431
431
|
...r
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Nr({ className: e, ...r }) {
|
|
436
436
|
return /* @__PURE__ */ n(
|
|
437
437
|
"ul",
|
|
438
438
|
{
|
|
439
439
|
"data-slot": "sidebar-menu",
|
|
440
440
|
"data-sidebar": "menu",
|
|
441
|
-
className:
|
|
441
|
+
className: f("flex w-full min-w-0 flex-col gap-1", e),
|
|
442
442
|
...r
|
|
443
443
|
}
|
|
444
444
|
);
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Dr({ className: e, ...r }) {
|
|
447
447
|
return /* @__PURE__ */ n(
|
|
448
448
|
"li",
|
|
449
449
|
{
|
|
450
450
|
"data-slot": "sidebar-menu-item",
|
|
451
451
|
"data-sidebar": "menu-item",
|
|
452
|
-
className:
|
|
452
|
+
className: f("group/menu-item relative", e),
|
|
453
453
|
...r
|
|
454
454
|
}
|
|
455
455
|
);
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const rt = Ve(
|
|
458
458
|
"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",
|
|
459
459
|
{
|
|
460
460
|
variants: {
|
|
@@ -474,7 +474,7 @@ const tt = Oe(
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
|
-
function
|
|
477
|
+
function _r({
|
|
478
478
|
asChild: e = !1,
|
|
479
479
|
isActive: r = !1,
|
|
480
480
|
variant: t = "default",
|
|
@@ -483,44 +483,44 @@ function Nr({
|
|
|
483
483
|
className: s,
|
|
484
484
|
...d
|
|
485
485
|
}) {
|
|
486
|
-
const l = e ?
|
|
486
|
+
const l = e ? k : "button", { isMobile: c, state: p } = ie(), C = /* @__PURE__ */ n(
|
|
487
487
|
l,
|
|
488
488
|
{
|
|
489
489
|
"data-slot": "sidebar-menu-button",
|
|
490
490
|
"data-sidebar": "menu-button",
|
|
491
491
|
"data-size": a,
|
|
492
492
|
"data-active": r,
|
|
493
|
-
className:
|
|
493
|
+
className: f(rt({ variant: t, size: a }), s),
|
|
494
494
|
...d
|
|
495
495
|
}
|
|
496
496
|
);
|
|
497
497
|
return o ? (typeof o == "string" && (o = {
|
|
498
498
|
children: o
|
|
499
|
-
}), /* @__PURE__ */ N(
|
|
500
|
-
/* @__PURE__ */ n(
|
|
499
|
+
}), /* @__PURE__ */ N(ge, { children: [
|
|
500
|
+
/* @__PURE__ */ n(he, { asChild: !0, children: C }),
|
|
501
501
|
/* @__PURE__ */ n(
|
|
502
|
-
|
|
502
|
+
xe,
|
|
503
503
|
{
|
|
504
504
|
side: "right",
|
|
505
505
|
align: "center",
|
|
506
|
-
hidden: p !== "collapsed" ||
|
|
506
|
+
hidden: p !== "collapsed" || c,
|
|
507
507
|
...o
|
|
508
508
|
}
|
|
509
509
|
)
|
|
510
|
-
] })) :
|
|
510
|
+
] })) : C;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Er({
|
|
513
513
|
className: e,
|
|
514
514
|
asChild: r = !1,
|
|
515
515
|
showOnHover: t = !1,
|
|
516
516
|
...a
|
|
517
517
|
}) {
|
|
518
518
|
return /* @__PURE__ */ n(
|
|
519
|
-
r ?
|
|
519
|
+
r ? k : "button",
|
|
520
520
|
{
|
|
521
521
|
"data-slot": "sidebar-menu-action",
|
|
522
522
|
"data-sidebar": "menu-action",
|
|
523
|
-
className:
|
|
523
|
+
className: f(
|
|
524
524
|
"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",
|
|
525
525
|
// Increases the hit area of the button on mobile.
|
|
526
526
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -535,13 +535,13 @@ function Dr({
|
|
|
535
535
|
}
|
|
536
536
|
);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function kr({ className: e, ...r }) {
|
|
539
539
|
return /* @__PURE__ */ n(
|
|
540
540
|
"div",
|
|
541
541
|
{
|
|
542
542
|
"data-slot": "sidebar-menu-badge",
|
|
543
543
|
"data-sidebar": "menu-badge",
|
|
544
|
-
className:
|
|
544
|
+
className: f(
|
|
545
545
|
"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",
|
|
546
546
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
547
547
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -554,24 +554,24 @@ function _r({ className: e, ...r }) {
|
|
|
554
554
|
}
|
|
555
555
|
);
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
function
|
|
557
|
+
const at = 50, ot = 40;
|
|
558
|
+
function Fr({
|
|
559
559
|
className: e,
|
|
560
560
|
showIcon: r = !1,
|
|
561
561
|
...t
|
|
562
562
|
}) {
|
|
563
|
-
const a =
|
|
563
|
+
const a = w.useMemo(() => `${Math.floor(Math.random() * ot) + at}%`, []);
|
|
564
564
|
return /* @__PURE__ */ N(
|
|
565
565
|
"div",
|
|
566
566
|
{
|
|
567
567
|
"data-slot": "sidebar-menu-skeleton",
|
|
568
568
|
"data-sidebar": "menu-skeleton",
|
|
569
|
-
className:
|
|
569
|
+
className: f("flex h-10 items-center gap-3 rounded-md px-2", e),
|
|
570
570
|
...t,
|
|
571
571
|
children: [
|
|
572
|
-
r && /* @__PURE__ */ n(
|
|
572
|
+
r && /* @__PURE__ */ n(X, { className: "size-6 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
573
573
|
/* @__PURE__ */ n(
|
|
574
|
-
|
|
574
|
+
X,
|
|
575
575
|
{
|
|
576
576
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
577
577
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -590,7 +590,7 @@ function Tr({ className: e, ...r }) {
|
|
|
590
590
|
{
|
|
591
591
|
"data-slot": "sidebar-menu-sub",
|
|
592
592
|
"data-sidebar": "menu-sub",
|
|
593
|
-
className:
|
|
593
|
+
className: f(
|
|
594
594
|
"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",
|
|
595
595
|
"group-data-[collapsible=icon]:hidden",
|
|
596
596
|
e
|
|
@@ -599,18 +599,18 @@ function Tr({ className: e, ...r }) {
|
|
|
599
599
|
}
|
|
600
600
|
);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Pr({ className: e, ...r }) {
|
|
603
603
|
return /* @__PURE__ */ n(
|
|
604
604
|
"li",
|
|
605
605
|
{
|
|
606
606
|
"data-slot": "sidebar-menu-sub-item",
|
|
607
607
|
"data-sidebar": "menu-sub-item",
|
|
608
|
-
className:
|
|
608
|
+
className: f("group/menu-sub-item relative", e),
|
|
609
609
|
...r
|
|
610
610
|
}
|
|
611
611
|
);
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Rr({
|
|
614
614
|
asChild: e = !1,
|
|
615
615
|
size: r = "md",
|
|
616
616
|
isActive: t = !1,
|
|
@@ -618,13 +618,13 @@ function Fr({
|
|
|
618
618
|
...o
|
|
619
619
|
}) {
|
|
620
620
|
return /* @__PURE__ */ n(
|
|
621
|
-
e ?
|
|
621
|
+
e ? k : "a",
|
|
622
622
|
{
|
|
623
623
|
"data-slot": "sidebar-menu-sub-button",
|
|
624
624
|
"data-sidebar": "menu-sub-button",
|
|
625
625
|
"data-size": r,
|
|
626
626
|
"data-active": t,
|
|
627
|
-
className:
|
|
627
|
+
className: f(
|
|
628
628
|
"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",
|
|
629
629
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
630
630
|
r === "sm" && "text-xs",
|
|
@@ -636,57 +636,54 @@ function Fr({
|
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
638
|
}
|
|
639
|
-
var
|
|
640
|
-
const
|
|
641
|
-
var E = (e) => !
|
|
639
|
+
var nt = (e) => e.type === "checkbox", F = (e) => e instanceof Date, U = (e) => e == null;
|
|
640
|
+
const se = (e) => typeof e == "object";
|
|
641
|
+
var E = (e) => !U(e) && !Array.isArray(e) && se(e) && !F(e), it = (e) => E(e) && e.target ? nt(e.target) ? e.target.checked : e.target.value : e, st = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, dt = (e, r) => e.has(st(r)), lt = (e) => {
|
|
642
642
|
const r = e.constructor && e.constructor.prototype;
|
|
643
643
|
return E(r) && r.hasOwnProperty("isPrototypeOf");
|
|
644
|
-
},
|
|
645
|
-
function
|
|
644
|
+
}, ut = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
645
|
+
function de(e) {
|
|
646
646
|
if (e instanceof Date)
|
|
647
647
|
return new Date(e);
|
|
648
648
|
const r = typeof FileList < "u" && e instanceof FileList;
|
|
649
|
-
if (
|
|
649
|
+
if (ut && (e instanceof Blob || r))
|
|
650
650
|
return e;
|
|
651
651
|
const t = Array.isArray(e);
|
|
652
|
-
if (!t && !(E(e) &&
|
|
652
|
+
if (!t && !(E(e) && lt(e)))
|
|
653
653
|
return e;
|
|
654
654
|
const a = t ? [] : Object.create(Object.getPrototypeOf(e));
|
|
655
655
|
for (const o in e)
|
|
656
|
-
Object.prototype.hasOwnProperty.call(e, o) && (a[o] =
|
|
656
|
+
Object.prototype.hasOwnProperty.call(e, o) && (a[o] = de(e[o]));
|
|
657
657
|
return a;
|
|
658
658
|
}
|
|
659
|
-
var
|
|
659
|
+
var le = (e) => /^\w*$/.test(e), z = (e) => e === void 0, ct = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ue = (e) => ct(e.replace(/["|']|\]/g, "").split(/\.|\[/)), I = (e, r, t) => {
|
|
660
660
|
if (!r || !E(e))
|
|
661
661
|
return t;
|
|
662
|
-
const a = (
|
|
663
|
-
return
|
|
664
|
-
},
|
|
662
|
+
const a = (le(r) ? [r] : ue(r)).reduce((o, s) => U(o) ? o : o[s], e);
|
|
663
|
+
return z(a) || a === e ? z(e[r]) ? t : e[r] : a;
|
|
664
|
+
}, G = (e) => typeof e == "boolean", P = (e) => typeof e == "function", Y = (e, r, t) => {
|
|
665
665
|
let a = -1;
|
|
666
|
-
const o =
|
|
666
|
+
const o = le(r) ? [r] : ue(r), s = o.length, d = s - 1;
|
|
667
667
|
for (; ++a < s; ) {
|
|
668
668
|
const l = o[a];
|
|
669
|
-
let
|
|
669
|
+
let c = t;
|
|
670
670
|
if (a !== d) {
|
|
671
671
|
const p = e[l];
|
|
672
|
-
|
|
672
|
+
c = E(p) || Array.isArray(p) ? p : isNaN(+o[a + 1]) ? {} : [];
|
|
673
673
|
}
|
|
674
674
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
675
675
|
return;
|
|
676
|
-
e[l] =
|
|
676
|
+
e[l] = c, e = e[l];
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
const
|
|
679
|
+
const ee = {
|
|
680
680
|
BLUR: "blur",
|
|
681
681
|
CHANGE: "change"
|
|
682
|
-
},
|
|
682
|
+
}, te = {
|
|
683
683
|
all: "all"
|
|
684
|
-
},
|
|
685
|
-
|
|
686
|
-
const
|
|
687
|
-
const { children: r, ...t } = e;
|
|
688
|
-
return m.createElement(W.Provider, { value: t }, r);
|
|
689
|
-
};
|
|
684
|
+
}, K = u.createContext(null);
|
|
685
|
+
K.displayName = "HookFormControlContext";
|
|
686
|
+
const W = () => u.useContext(K);
|
|
690
687
|
var mt = (e, r, t, a = !0) => {
|
|
691
688
|
const o = {
|
|
692
689
|
defaultValues: r._defaultValues
|
|
@@ -695,14 +692,14 @@ var mt = (e, r, t, a = !0) => {
|
|
|
695
692
|
Object.defineProperty(o, s, {
|
|
696
693
|
get: () => {
|
|
697
694
|
const d = s;
|
|
698
|
-
return r._proxyFormState[d] !==
|
|
695
|
+
return r._proxyFormState[d] !== te.all && (r._proxyFormState[d] = !a || te.all), t && (t[d] = !0), e[d];
|
|
699
696
|
}
|
|
700
697
|
});
|
|
701
698
|
return o;
|
|
702
699
|
};
|
|
703
|
-
const
|
|
700
|
+
const ce = typeof window < "u" ? u.useLayoutEffect : u.useEffect;
|
|
704
701
|
function ft(e) {
|
|
705
|
-
const r =
|
|
702
|
+
const r = W(), { control: t = r, disabled: a, name: o, exact: s } = e || {}, [d, l] = u.useState(t._formState), c = u.useRef({
|
|
706
703
|
isDirty: !1,
|
|
707
704
|
isLoading: !1,
|
|
708
705
|
dirtyFields: !1,
|
|
@@ -712,9 +709,9 @@ function ft(e) {
|
|
|
712
709
|
isValid: !1,
|
|
713
710
|
errors: !1
|
|
714
711
|
});
|
|
715
|
-
return
|
|
712
|
+
return ce(() => t._subscribe({
|
|
716
713
|
name: o,
|
|
717
|
-
formState:
|
|
714
|
+
formState: c.current,
|
|
718
715
|
exact: s,
|
|
719
716
|
callback: (p) => {
|
|
720
717
|
!a && l({
|
|
@@ -722,16 +719,16 @@ function ft(e) {
|
|
|
722
719
|
...p
|
|
723
720
|
});
|
|
724
721
|
}
|
|
725
|
-
}), [o, a, s]),
|
|
726
|
-
|
|
727
|
-
}, [t]),
|
|
722
|
+
}), [o, a, s]), u.useEffect(() => {
|
|
723
|
+
c.current.isValid && t._setValid(!0);
|
|
724
|
+
}, [t]), u.useMemo(() => mt(d, t, c.current, !1), [d, t]);
|
|
728
725
|
}
|
|
729
|
-
var pt = (e) => typeof e == "string",
|
|
726
|
+
var pt = (e) => typeof e == "string", re = (e, r, t, a, o) => pt(e) ? I(t, e, o) : Array.isArray(e) ? e.map((s) => I(t, s)) : t, ae = (e) => U(e) || !se(e);
|
|
730
727
|
function O(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
731
|
-
if (
|
|
728
|
+
if (ae(e) || ae(r))
|
|
732
729
|
return Object.is(e, r);
|
|
733
|
-
if (
|
|
734
|
-
return e.getTime()
|
|
730
|
+
if (F(e) && F(r))
|
|
731
|
+
return Object.is(e.getTime(), r.getTime());
|
|
735
732
|
const a = Object.keys(e), o = Object.keys(r);
|
|
736
733
|
if (a.length !== o.length)
|
|
737
734
|
return !1;
|
|
@@ -744,51 +741,51 @@ function O(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
744
741
|
return !1;
|
|
745
742
|
if (s !== "ref") {
|
|
746
743
|
const l = r[s];
|
|
747
|
-
if (
|
|
744
|
+
if (F(d) && F(l) || E(d) && E(l) || Array.isArray(d) && Array.isArray(l) ? !O(d, l, t) : !Object.is(d, l))
|
|
748
745
|
return !1;
|
|
749
746
|
}
|
|
750
747
|
}
|
|
751
748
|
return !0;
|
|
752
749
|
}
|
|
753
750
|
function bt(e) {
|
|
754
|
-
const r =
|
|
751
|
+
const r = W(), { control: t = r, name: a, defaultValue: o, disabled: s, exact: d, compute: l } = e || {}, c = u.useRef(o), p = u.useRef(l), C = u.useRef(void 0), g = u.useRef(t), x = u.useRef(a);
|
|
755
752
|
p.current = l;
|
|
756
|
-
const [
|
|
757
|
-
const
|
|
758
|
-
return p.current ? p.current(
|
|
759
|
-
}), y =
|
|
760
|
-
const
|
|
761
|
-
return p.current ? p.current(
|
|
762
|
-
}, [t._formValues, t._names, a]), b =
|
|
753
|
+
const [A, v] = u.useState(() => {
|
|
754
|
+
const m = t._getWatch(a, c.current);
|
|
755
|
+
return p.current ? p.current(m) : m;
|
|
756
|
+
}), y = u.useCallback((m) => {
|
|
757
|
+
const M = re(a, t._names, m || t._formValues, !1, c.current);
|
|
758
|
+
return p.current ? p.current(M) : M;
|
|
759
|
+
}, [t._formValues, t._names, a]), b = u.useCallback((m) => {
|
|
763
760
|
if (!s) {
|
|
764
|
-
const
|
|
761
|
+
const M = re(a, t._names, m || t._formValues, !1, c.current);
|
|
765
762
|
if (p.current) {
|
|
766
|
-
const _ = p.current(
|
|
767
|
-
O(_,
|
|
763
|
+
const _ = p.current(M);
|
|
764
|
+
O(_, C.current) || (v(_), C.current = _);
|
|
768
765
|
} else
|
|
769
|
-
|
|
766
|
+
v(M);
|
|
770
767
|
}
|
|
771
768
|
}, [t._formValues, t._names, s, a]);
|
|
772
|
-
|
|
769
|
+
ce(() => ((g.current !== t || !O(x.current, a)) && (g.current = t, x.current = a, b()), t._subscribe({
|
|
773
770
|
name: a,
|
|
774
771
|
formState: {
|
|
775
772
|
values: !0
|
|
776
773
|
},
|
|
777
774
|
exact: d,
|
|
778
|
-
callback: (
|
|
779
|
-
b(
|
|
775
|
+
callback: (m) => {
|
|
776
|
+
b(m.values);
|
|
780
777
|
}
|
|
781
|
-
})), [t, d, a, b]),
|
|
782
|
-
const h = g.current !== t, S = x.current, D =
|
|
778
|
+
})), [t, d, a, b]), u.useEffect(() => t._removeUnmounted());
|
|
779
|
+
const h = g.current !== t, S = x.current, D = u.useMemo(() => {
|
|
783
780
|
if (s)
|
|
784
781
|
return null;
|
|
785
|
-
const
|
|
786
|
-
return h ||
|
|
782
|
+
const m = !h && !O(S, a);
|
|
783
|
+
return h || m ? y() : null;
|
|
787
784
|
}, [s, h, a, S, y]);
|
|
788
|
-
return D !== null ? D :
|
|
785
|
+
return D !== null ? D : A;
|
|
789
786
|
}
|
|
790
787
|
function gt(e) {
|
|
791
|
-
const r =
|
|
788
|
+
const r = W(), { name: t, disabled: a, control: o = r, shouldUnregister: s, defaultValue: d, exact: l = !0 } = e, c = dt(o._names.array, t), p = u.useMemo(() => I(o._formValues, t, I(o._defaultValues, t, d)), [o, t, d]), C = bt({
|
|
792
789
|
control: o,
|
|
793
790
|
name: t,
|
|
794
791
|
defaultValue: p,
|
|
@@ -797,13 +794,13 @@ function gt(e) {
|
|
|
797
794
|
control: o,
|
|
798
795
|
name: t,
|
|
799
796
|
exact: l
|
|
800
|
-
}), x =
|
|
797
|
+
}), x = u.useRef(e), A = u.useRef(void 0), v = u.useRef(o.register(t, {
|
|
801
798
|
...e.rules,
|
|
802
|
-
value:
|
|
803
|
-
...
|
|
799
|
+
value: C,
|
|
800
|
+
...G(e.disabled) ? { disabled: e.disabled } : {}
|
|
804
801
|
}));
|
|
805
802
|
x.current = e;
|
|
806
|
-
const y =
|
|
803
|
+
const y = u.useMemo(() => Object.defineProperties({}, {
|
|
807
804
|
invalid: {
|
|
808
805
|
enumerable: !0,
|
|
809
806
|
get: () => !!I(g.errors, t)
|
|
@@ -824,66 +821,109 @@ function gt(e) {
|
|
|
824
821
|
enumerable: !0,
|
|
825
822
|
get: () => I(g.errors, t)
|
|
826
823
|
}
|
|
827
|
-
}), [g, t]), b =
|
|
824
|
+
}), [g, t]), b = u.useCallback((m) => v.current.onChange({
|
|
828
825
|
target: {
|
|
829
|
-
value:
|
|
826
|
+
value: it(m),
|
|
830
827
|
name: t
|
|
831
828
|
},
|
|
832
|
-
type:
|
|
833
|
-
}), [t]), h =
|
|
829
|
+
type: ee.CHANGE
|
|
830
|
+
}), [t]), h = u.useCallback(() => v.current.onBlur({
|
|
834
831
|
target: {
|
|
835
832
|
value: I(o._formValues, t),
|
|
836
833
|
name: t
|
|
837
834
|
},
|
|
838
|
-
type:
|
|
839
|
-
}), [t, o._formValues]), S =
|
|
840
|
-
const
|
|
841
|
-
|
|
842
|
-
focus: () =>
|
|
843
|
-
select: () =>
|
|
844
|
-
setCustomValidity: (_) =>
|
|
845
|
-
reportValidity: () =>
|
|
835
|
+
type: ee.BLUR
|
|
836
|
+
}), [t, o._formValues]), S = u.useCallback((m) => {
|
|
837
|
+
const M = I(o._fields, t);
|
|
838
|
+
M && M._f && m && (M._f.ref = {
|
|
839
|
+
focus: () => P(m.focus) && m.focus(),
|
|
840
|
+
select: () => P(m.select) && m.select(),
|
|
841
|
+
setCustomValidity: (_) => P(m.setCustomValidity) && m.setCustomValidity(_),
|
|
842
|
+
reportValidity: () => P(m.reportValidity) && m.reportValidity()
|
|
846
843
|
});
|
|
847
|
-
}, [o._fields, t]), D =
|
|
844
|
+
}, [o._fields, t]), D = u.useMemo(() => ({
|
|
848
845
|
name: t,
|
|
849
|
-
value:
|
|
850
|
-
...
|
|
846
|
+
value: C,
|
|
847
|
+
...G(a) || g.disabled ? { disabled: g.disabled || a } : {},
|
|
851
848
|
onChange: b,
|
|
852
849
|
onBlur: h,
|
|
853
850
|
ref: S
|
|
854
|
-
}), [t, a, g.disabled, b, h, S,
|
|
855
|
-
return
|
|
856
|
-
const
|
|
857
|
-
|
|
851
|
+
}), [t, a, g.disabled, b, h, S, C]);
|
|
852
|
+
return u.useEffect(() => {
|
|
853
|
+
const m = o._options.shouldUnregister || s, M = A.current;
|
|
854
|
+
M && M !== t && !c && o.unregister(M), o.register(t, {
|
|
858
855
|
...x.current.rules,
|
|
859
|
-
...
|
|
856
|
+
...G(x.current.disabled) ? { disabled: x.current.disabled } : {}
|
|
860
857
|
});
|
|
861
|
-
const _ = (
|
|
862
|
-
const
|
|
863
|
-
|
|
858
|
+
const _ = (T, be) => {
|
|
859
|
+
const B = I(o._fields, T);
|
|
860
|
+
B && B._f && (B._f.mount = be);
|
|
864
861
|
};
|
|
865
|
-
if (_(t, !0),
|
|
866
|
-
const
|
|
867
|
-
|
|
862
|
+
if (_(t, !0), m) {
|
|
863
|
+
const T = de(I(o._options.defaultValues, t, x.current.defaultValue));
|
|
864
|
+
Y(o._defaultValues, t, T), z(I(o._formValues, t)) && Y(o._formValues, t, T);
|
|
868
865
|
}
|
|
869
|
-
return !
|
|
870
|
-
(
|
|
866
|
+
return !c && o.register(t), A.current = t, () => {
|
|
867
|
+
(c ? m && !o._state.action : m) ? o.unregister(t) : _(t, !1);
|
|
871
868
|
};
|
|
872
|
-
}, [t, o,
|
|
869
|
+
}, [t, o, c, s]), u.useEffect(() => {
|
|
873
870
|
o._setDisabledField({
|
|
874
871
|
disabled: a,
|
|
875
872
|
name: t
|
|
876
873
|
});
|
|
877
|
-
}, [a, t, o]),
|
|
874
|
+
}, [a, t, o]), u.useMemo(() => ({
|
|
878
875
|
field: D,
|
|
879
876
|
formState: g,
|
|
880
877
|
fieldState: y
|
|
881
878
|
}), [D, g, y]);
|
|
882
879
|
}
|
|
883
|
-
const ht = (e) => e.render(gt(e)),
|
|
880
|
+
const ht = (e) => e.render(gt(e)), $ = u.createContext(null);
|
|
881
|
+
$.displayName = "HookFormContext";
|
|
882
|
+
const xt = () => u.useContext($), vt = (e) => {
|
|
883
|
+
const { children: r, watch: t, getValues: a, getFieldState: o, setError: s, clearErrors: d, setValue: l, trigger: c, formState: p, resetField: C, reset: g, handleSubmit: x, unregister: A, control: v, register: y, setFocus: b, subscribe: h } = e;
|
|
884
|
+
return u.createElement(
|
|
885
|
+
$.Provider,
|
|
886
|
+
{ value: u.useMemo(() => ({
|
|
887
|
+
watch: t,
|
|
888
|
+
getValues: a,
|
|
889
|
+
getFieldState: o,
|
|
890
|
+
setError: s,
|
|
891
|
+
clearErrors: d,
|
|
892
|
+
setValue: l,
|
|
893
|
+
trigger: c,
|
|
894
|
+
formState: p,
|
|
895
|
+
resetField: C,
|
|
896
|
+
reset: g,
|
|
897
|
+
handleSubmit: x,
|
|
898
|
+
unregister: A,
|
|
899
|
+
control: v,
|
|
900
|
+
register: y,
|
|
901
|
+
setFocus: b,
|
|
902
|
+
subscribe: h
|
|
903
|
+
}), [
|
|
904
|
+
d,
|
|
905
|
+
v,
|
|
906
|
+
p,
|
|
907
|
+
o,
|
|
908
|
+
a,
|
|
909
|
+
x,
|
|
910
|
+
y,
|
|
911
|
+
g,
|
|
912
|
+
C,
|
|
913
|
+
s,
|
|
914
|
+
b,
|
|
915
|
+
l,
|
|
916
|
+
h,
|
|
917
|
+
c,
|
|
918
|
+
A,
|
|
919
|
+
t
|
|
920
|
+
]) },
|
|
921
|
+
u.createElement(K.Provider, { value: v }, r)
|
|
922
|
+
);
|
|
923
|
+
}, Or = vt, me = w.createContext(null), Vr = ({
|
|
884
924
|
...e
|
|
885
|
-
}) => /* @__PURE__ */ n(
|
|
886
|
-
const e =
|
|
925
|
+
}) => /* @__PURE__ */ n(me.Provider, { value: { name: e.name }, children: /* @__PURE__ */ n(ht, { ...e }) }), V = () => {
|
|
926
|
+
const e = w.useContext(me), r = w.useContext(fe), { getFieldState: t, formState: a } = xt();
|
|
887
927
|
if (!e)
|
|
888
928
|
throw new Error("useFormField should be used within <FormField>");
|
|
889
929
|
if (!r)
|
|
@@ -897,30 +937,30 @@ const ht = (e) => e.render(gt(e)), Rr = ct, ce = v.createContext(null), Pr = ({
|
|
|
897
937
|
formMessageId: `${s}-form-item-message`,
|
|
898
938
|
...o
|
|
899
939
|
};
|
|
900
|
-
},
|
|
940
|
+
}, fe = w.createContext(null), At = w.forwardRef(
|
|
901
941
|
({ className: e, ...r }, t) => {
|
|
902
|
-
const a =
|
|
903
|
-
return /* @__PURE__ */ n(
|
|
942
|
+
const a = w.useId();
|
|
943
|
+
return /* @__PURE__ */ n(fe.Provider, { value: { id: a }, children: /* @__PURE__ */ n("div", { ref: t, className: f("space-y-2", e), ...r }) });
|
|
904
944
|
}
|
|
905
945
|
);
|
|
906
|
-
|
|
907
|
-
const
|
|
908
|
-
const { error: a, formItemId: o } =
|
|
946
|
+
At.displayName = "FormItem";
|
|
947
|
+
const wt = w.forwardRef(({ className: e, ...r }, t) => {
|
|
948
|
+
const { error: a, formItemId: o } = V();
|
|
909
949
|
return /* @__PURE__ */ n(
|
|
910
|
-
|
|
950
|
+
_e,
|
|
911
951
|
{
|
|
912
952
|
ref: t,
|
|
913
|
-
className:
|
|
953
|
+
className: f(a && "text-destructive", e),
|
|
914
954
|
htmlFor: o,
|
|
915
955
|
...r
|
|
916
956
|
}
|
|
917
957
|
);
|
|
918
958
|
});
|
|
919
|
-
|
|
920
|
-
const
|
|
921
|
-
const { error: t, formItemId: a, formDescriptionId: o, formMessageId: s } =
|
|
959
|
+
wt.displayName = "FormLabel";
|
|
960
|
+
const yt = w.forwardRef(({ ...e }, r) => {
|
|
961
|
+
const { error: t, formItemId: a, formDescriptionId: o, formMessageId: s } = V();
|
|
922
962
|
return /* @__PURE__ */ n(
|
|
923
|
-
|
|
963
|
+
k,
|
|
924
964
|
{
|
|
925
965
|
ref: r,
|
|
926
966
|
id: a,
|
|
@@ -930,120 +970,120 @@ const At = v.forwardRef(({ ...e }, r) => {
|
|
|
930
970
|
}
|
|
931
971
|
);
|
|
932
972
|
});
|
|
933
|
-
|
|
934
|
-
const
|
|
935
|
-
const { formDescriptionId: a } =
|
|
973
|
+
yt.displayName = "FormControl";
|
|
974
|
+
const Ct = w.forwardRef(({ className: e, ...r }, t) => {
|
|
975
|
+
const { formDescriptionId: a } = V();
|
|
936
976
|
return /* @__PURE__ */ n(
|
|
937
977
|
"p",
|
|
938
978
|
{
|
|
939
979
|
ref: t,
|
|
940
980
|
id: a,
|
|
941
|
-
className:
|
|
981
|
+
className: f("text-[0.8rem] text-muted-foreground", e),
|
|
942
982
|
...r
|
|
943
983
|
}
|
|
944
984
|
);
|
|
945
985
|
});
|
|
946
|
-
|
|
947
|
-
const
|
|
948
|
-
const { error: o, formMessageId: s } =
|
|
986
|
+
Ct.displayName = "FormDescription";
|
|
987
|
+
const St = w.forwardRef(({ className: e, children: r, ...t }, a) => {
|
|
988
|
+
const { error: o, formMessageId: s } = V(), d = o ? String((o == null ? void 0 : o.message) ?? "") : r;
|
|
949
989
|
return d ? /* @__PURE__ */ n(
|
|
950
990
|
"p",
|
|
951
991
|
{
|
|
952
992
|
ref: a,
|
|
953
993
|
id: s,
|
|
954
|
-
className:
|
|
994
|
+
className: f("font-medium text-[0.8rem] text-destructive", e),
|
|
955
995
|
...t,
|
|
956
996
|
children: d
|
|
957
997
|
}
|
|
958
998
|
) : null;
|
|
959
999
|
});
|
|
960
|
-
|
|
961
|
-
function
|
|
1000
|
+
St.displayName = "FormMessage";
|
|
1001
|
+
function Mt(e, r) {
|
|
962
1002
|
let t = null;
|
|
963
1003
|
return function(...a) {
|
|
964
1004
|
t && clearTimeout(t), t = setTimeout(() => e.apply(this, a), r);
|
|
965
1005
|
};
|
|
966
1006
|
}
|
|
967
|
-
const
|
|
968
|
-
function
|
|
1007
|
+
const pe = Pe(null);
|
|
1008
|
+
function Br({
|
|
969
1009
|
children: e,
|
|
970
1010
|
values: r,
|
|
971
1011
|
defaultValues: t,
|
|
972
1012
|
onValuesChange: a
|
|
973
1013
|
}) {
|
|
974
|
-
const [o, s] =
|
|
975
|
-
function g(
|
|
976
|
-
const
|
|
1014
|
+
const [o, s] = R(!1), [d, l] = R(new Set(r ?? t)), c = r ? new Set(r) : d, [p, C] = R(/* @__PURE__ */ new Map());
|
|
1015
|
+
function g(A) {
|
|
1016
|
+
const v = (y) => {
|
|
977
1017
|
const b = new Set(y);
|
|
978
|
-
return b.has(
|
|
1018
|
+
return b.has(A) ? b.delete(A) : b.add(A), b;
|
|
979
1019
|
};
|
|
980
|
-
l(
|
|
1020
|
+
l(v), a == null || a([...v(c)]);
|
|
981
1021
|
}
|
|
982
|
-
const x =
|
|
983
|
-
|
|
1022
|
+
const x = H((A, v) => {
|
|
1023
|
+
C((y) => y.get(A) === v ? y : new Map(y).set(A, v));
|
|
984
1024
|
}, []);
|
|
985
1025
|
return /* @__PURE__ */ n(
|
|
986
|
-
|
|
1026
|
+
pe,
|
|
987
1027
|
{
|
|
988
1028
|
value: {
|
|
989
1029
|
open: o,
|
|
990
1030
|
setOpen: s,
|
|
991
|
-
selectedValues:
|
|
1031
|
+
selectedValues: c,
|
|
992
1032
|
toggleValue: g,
|
|
993
1033
|
items: p,
|
|
994
1034
|
onItemAdded: x
|
|
995
1035
|
},
|
|
996
|
-
children: /* @__PURE__ */ n(
|
|
1036
|
+
children: /* @__PURE__ */ n(Ee, { open: o, onOpenChange: s, modal: !0, children: e })
|
|
997
1037
|
}
|
|
998
1038
|
);
|
|
999
1039
|
}
|
|
1000
|
-
function
|
|
1040
|
+
function Lr({
|
|
1001
1041
|
className: e,
|
|
1002
1042
|
children: r,
|
|
1003
1043
|
...t
|
|
1004
1044
|
}) {
|
|
1005
|
-
const { open: a } =
|
|
1006
|
-
return /* @__PURE__ */ n(
|
|
1007
|
-
|
|
1045
|
+
const { open: a } = J();
|
|
1046
|
+
return /* @__PURE__ */ n(Fe, { asChild: !0, children: /* @__PURE__ */ N(
|
|
1047
|
+
oe,
|
|
1008
1048
|
{
|
|
1009
1049
|
...t,
|
|
1010
1050
|
variant: t.variant ?? "outline",
|
|
1011
1051
|
role: t.role ?? "combobox",
|
|
1012
1052
|
"aria-expanded": t["aria-expanded"] ?? a,
|
|
1013
|
-
className:
|
|
1053
|
+
className: f(
|
|
1014
1054
|
"flex text-secondary cursor-pointer h-auto min-h-9 w-fit items-center justify-between gap-2 overflow-hidden rounded-md border border-input bg-transparent px-3 py-1.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
1015
1055
|
e
|
|
1016
1056
|
),
|
|
1017
1057
|
children: [
|
|
1018
1058
|
r,
|
|
1019
|
-
/* @__PURE__ */ n(
|
|
1059
|
+
/* @__PURE__ */ n(Ge, { className: "opacity-50 size-4 shrink-0" })
|
|
1020
1060
|
]
|
|
1021
1061
|
}
|
|
1022
1062
|
) });
|
|
1023
1063
|
}
|
|
1024
|
-
function
|
|
1064
|
+
function Gr({
|
|
1025
1065
|
placeholder: e,
|
|
1026
1066
|
clickToRemove: r = !0,
|
|
1027
1067
|
className: t,
|
|
1028
1068
|
overflowBehavior: a = "wrap-when-open",
|
|
1029
1069
|
...o
|
|
1030
1070
|
}) {
|
|
1031
|
-
const { selectedValues: s, toggleValue: d, items: l, open:
|
|
1071
|
+
const { selectedValues: s, toggleValue: d, items: l, open: c } = J(), [p, C] = R(0), g = j(null), x = j(null), A = a === "wrap" || a === "wrap-when-open" && c, v = H(() => {
|
|
1032
1072
|
if (g.current == null) return;
|
|
1033
1073
|
const b = g.current, h = x.current, S = b.querySelectorAll("[data-selected-item]");
|
|
1034
|
-
h != null && (h.style.display = "none"), S.forEach((
|
|
1074
|
+
h != null && (h.style.display = "none"), S.forEach((m) => m.style.removeProperty("display"));
|
|
1035
1075
|
let D = 0;
|
|
1036
|
-
for (let
|
|
1037
|
-
const
|
|
1076
|
+
for (let m = S.length - 1; m >= 0; m--) {
|
|
1077
|
+
const M = S[m];
|
|
1038
1078
|
if (b.scrollWidth <= b.clientWidth)
|
|
1039
1079
|
break;
|
|
1040
|
-
D = S.length -
|
|
1080
|
+
D = S.length - m, M.style.display = "none", h == null || h.style.removeProperty("display");
|
|
1041
1081
|
}
|
|
1042
|
-
|
|
1043
|
-
}, []), y =
|
|
1082
|
+
C(D);
|
|
1083
|
+
}, []), y = H(
|
|
1044
1084
|
(b) => {
|
|
1045
1085
|
g.current = b;
|
|
1046
|
-
const h = new MutationObserver(
|
|
1086
|
+
const h = new MutationObserver(v), S = 100, D = new ResizeObserver(Mt(v, S));
|
|
1047
1087
|
return h.observe(b, {
|
|
1048
1088
|
childList: !0,
|
|
1049
1089
|
attributes: !0,
|
|
@@ -1052,21 +1092,21 @@ function Br({
|
|
|
1052
1092
|
D.disconnect(), h.disconnect(), g.current = null;
|
|
1053
1093
|
};
|
|
1054
1094
|
},
|
|
1055
|
-
[
|
|
1095
|
+
[v]
|
|
1056
1096
|
);
|
|
1057
1097
|
return s.size === 0 && e ? /* @__PURE__ */ n("span", { className: "min-w-0 overflow-hidden font-normal text-muted-foreground", children: e }) : /* @__PURE__ */ N(
|
|
1058
1098
|
"div",
|
|
1059
1099
|
{
|
|
1060
1100
|
...o,
|
|
1061
1101
|
ref: y,
|
|
1062
|
-
className:
|
|
1102
|
+
className: f(
|
|
1063
1103
|
"flex gap-1.5 w-full overflow-hidden",
|
|
1064
|
-
|
|
1104
|
+
A && "h-full flex-wrap",
|
|
1065
1105
|
t
|
|
1066
1106
|
),
|
|
1067
1107
|
children: [
|
|
1068
1108
|
[...s].filter((b) => l.has(b)).map((b) => /* @__PURE__ */ N(
|
|
1069
|
-
|
|
1109
|
+
q,
|
|
1070
1110
|
{
|
|
1071
1111
|
variant: "outline",
|
|
1072
1112
|
"data-selected-item": !0,
|
|
@@ -1076,17 +1116,17 @@ function Br({
|
|
|
1076
1116
|
} : void 0,
|
|
1077
1117
|
children: [
|
|
1078
1118
|
l.get(b),
|
|
1079
|
-
r && /* @__PURE__ */ n(
|
|
1119
|
+
r && /* @__PURE__ */ n(He, { className: "size-2 text-muted-foreground group-hover:text-destructive hover:cursor-pointer group-hover:cursor-pointer" })
|
|
1080
1120
|
]
|
|
1081
1121
|
},
|
|
1082
1122
|
b
|
|
1083
1123
|
)),
|
|
1084
1124
|
/* @__PURE__ */ N(
|
|
1085
|
-
|
|
1125
|
+
q,
|
|
1086
1126
|
{
|
|
1087
1127
|
className: "text-secondary cursor-pointer",
|
|
1088
1128
|
style: {
|
|
1089
|
-
display: p > 0 && !
|
|
1129
|
+
display: p > 0 && !A ? "block" : "none"
|
|
1090
1130
|
},
|
|
1091
1131
|
variant: "outline",
|
|
1092
1132
|
ref: x,
|
|
@@ -1100,29 +1140,29 @@ function Br({
|
|
|
1100
1140
|
}
|
|
1101
1141
|
);
|
|
1102
1142
|
}
|
|
1103
|
-
function
|
|
1143
|
+
function Hr({
|
|
1104
1144
|
search: e = !0,
|
|
1105
1145
|
children: r,
|
|
1106
1146
|
...t
|
|
1107
1147
|
}) {
|
|
1108
1148
|
const a = typeof e == "object" ? !0 : e;
|
|
1109
|
-
return /* @__PURE__ */ N(
|
|
1110
|
-
/* @__PURE__ */ n("div", { style: { display: "none" }, children: /* @__PURE__ */ n(
|
|
1111
|
-
/* @__PURE__ */ n(
|
|
1149
|
+
return /* @__PURE__ */ N(Te, { children: [
|
|
1150
|
+
/* @__PURE__ */ n("div", { style: { display: "none" }, children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(Z, { children: r }) }) }),
|
|
1151
|
+
/* @__PURE__ */ n(ke, { className: "p-0 min-w-[var(--radix-popover-trigger-width)]", children: /* @__PURE__ */ N(Q, { ...t, children: [
|
|
1112
1152
|
a ? /* @__PURE__ */ n(
|
|
1113
|
-
|
|
1153
|
+
Ae,
|
|
1114
1154
|
{
|
|
1115
1155
|
placeholder: typeof e == "object" ? e.placeholder : void 0
|
|
1116
1156
|
}
|
|
1117
1157
|
) : /* @__PURE__ */ n("button", { className: "sr-only" }),
|
|
1118
|
-
/* @__PURE__ */ N(
|
|
1119
|
-
a && /* @__PURE__ */ n(
|
|
1158
|
+
/* @__PURE__ */ N(Z, { children: [
|
|
1159
|
+
a && /* @__PURE__ */ n(we, { children: typeof e == "object" ? e.emptyMessage : void 0 }),
|
|
1120
1160
|
r
|
|
1121
1161
|
] })
|
|
1122
1162
|
] }) })
|
|
1123
1163
|
] });
|
|
1124
1164
|
}
|
|
1125
|
-
function
|
|
1165
|
+
function zr({
|
|
1126
1166
|
value: e,
|
|
1127
1167
|
children: r,
|
|
1128
1168
|
badgeLabel: t,
|
|
@@ -1130,210 +1170,210 @@ function Gr({
|
|
|
1130
1170
|
className: o,
|
|
1131
1171
|
...s
|
|
1132
1172
|
}) {
|
|
1133
|
-
const { toggleValue: d, selectedValues: l, onItemAdded:
|
|
1173
|
+
const { toggleValue: d, selectedValues: l, onItemAdded: c } = J(), p = l.has(e);
|
|
1134
1174
|
return Re(() => {
|
|
1135
|
-
|
|
1136
|
-
}, [e, r,
|
|
1137
|
-
|
|
1175
|
+
c(e, t ?? r);
|
|
1176
|
+
}, [e, r, c, t]), /* @__PURE__ */ N(
|
|
1177
|
+
Ce,
|
|
1138
1178
|
{
|
|
1139
1179
|
...s,
|
|
1140
1180
|
onSelect: () => {
|
|
1141
1181
|
d(e), a == null || a(e);
|
|
1142
1182
|
},
|
|
1143
|
-
className:
|
|
1183
|
+
className: f("text-secondary data-[selected=true]:text-secondary cursor-pointer", o),
|
|
1144
1184
|
children: [
|
|
1145
|
-
/* @__PURE__ */ n(
|
|
1185
|
+
/* @__PURE__ */ n(Le, { className: f("mr-2 size-4", p ? "opacity-100" : "opacity-0") }),
|
|
1146
1186
|
r
|
|
1147
1187
|
]
|
|
1148
1188
|
}
|
|
1149
1189
|
);
|
|
1150
1190
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return /* @__PURE__ */ n(
|
|
1191
|
+
function Ur(e) {
|
|
1192
|
+
return /* @__PURE__ */ n(ye, { ...e });
|
|
1153
1193
|
}
|
|
1154
|
-
function
|
|
1155
|
-
const e =
|
|
1194
|
+
function J() {
|
|
1195
|
+
const e = Oe(pe);
|
|
1156
1196
|
if (e == null)
|
|
1157
1197
|
throw new Error("useMultiSelectContext must be used within a MultiSelectContext");
|
|
1158
1198
|
return e;
|
|
1159
1199
|
}
|
|
1160
1200
|
export {
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1201
|
+
Ia as Accordion,
|
|
1202
|
+
Na as AccordionContent,
|
|
1203
|
+
Da as AccordionItem,
|
|
1204
|
+
_a as AccordionTrigger,
|
|
1205
|
+
Qr as AlertDialog,
|
|
1206
|
+
Zr as AlertDialogAction,
|
|
1207
|
+
jr as AlertDialogCancel,
|
|
1208
|
+
qr as AlertDialogContent,
|
|
1209
|
+
Xr as AlertDialogDescription,
|
|
1210
|
+
Yr as AlertDialogFooter,
|
|
1211
|
+
ea as AlertDialogHeader,
|
|
1212
|
+
ta as AlertDialogOverlay,
|
|
1213
|
+
ra as AlertDialogPortal,
|
|
1214
|
+
aa as AlertDialogTitle,
|
|
1215
|
+
oa as AlertDialogTrigger,
|
|
1216
|
+
ka as Avatar,
|
|
1217
|
+
Fa as AvatarFallback,
|
|
1178
1218
|
Ta as AvatarImage,
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1219
|
+
ia as Calendar,
|
|
1220
|
+
sa as CalendarDayButton,
|
|
1221
|
+
la as Carousel,
|
|
1222
|
+
ua as CarouselContent,
|
|
1223
|
+
ca as CarouselItem,
|
|
1224
|
+
ma as CarouselNext,
|
|
1225
|
+
fa as CarouselPrevious,
|
|
1226
|
+
Ra as Checkbox,
|
|
1227
|
+
ba as Combobox,
|
|
1228
|
+
Q as Command,
|
|
1189
1229
|
To as CommandDialog,
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1230
|
+
we as CommandEmpty,
|
|
1231
|
+
ye as CommandGroup,
|
|
1232
|
+
Ae as CommandInput,
|
|
1233
|
+
Ce as CommandItem,
|
|
1234
|
+
Z as CommandList,
|
|
1235
|
+
Po as CommandSeparator,
|
|
1236
|
+
Ro as CommandShortcut,
|
|
1237
|
+
Va as ContextMenu,
|
|
1238
|
+
Ba as ContextMenuCheckboxItem,
|
|
1239
|
+
La as ContextMenuContent,
|
|
1240
|
+
Ga as ContextMenuGroup,
|
|
1241
|
+
Ha as ContextMenuItem,
|
|
1242
|
+
za as ContextMenuLabel,
|
|
1243
|
+
Ua as ContextMenuPortal,
|
|
1244
|
+
Ka as ContextMenuRadioGroup,
|
|
1245
|
+
Wa as ContextMenuRadioItem,
|
|
1246
|
+
$a as ContextMenuSeparator,
|
|
1247
|
+
Ja as ContextMenuShortcut,
|
|
1248
|
+
Qa as ContextMenuSub,
|
|
1249
|
+
Za as ContextMenuSubContent,
|
|
1250
|
+
ja as ContextMenuSubTrigger,
|
|
1251
|
+
qa as ContextMenuTrigger,
|
|
1252
|
+
Vo as Dialog,
|
|
1253
|
+
Bo as DialogClose,
|
|
1254
|
+
Lo as DialogContent,
|
|
1255
|
+
Go as DialogDescription,
|
|
1256
|
+
Ho as DialogFooter,
|
|
1257
|
+
zo as DialogHeader,
|
|
1258
|
+
Uo as DialogOverlay,
|
|
1259
|
+
Ko as DialogPortal,
|
|
1260
|
+
Wo as DialogTitle,
|
|
1261
|
+
$o as DialogTrigger,
|
|
1262
|
+
Qo as Drawer,
|
|
1263
|
+
Zo as DrawerClose,
|
|
1264
|
+
jo as DrawerContent,
|
|
1265
|
+
qo as DrawerDescription,
|
|
1266
|
+
Xo as DrawerFooter,
|
|
1267
|
+
Yo as DrawerHeader,
|
|
1268
|
+
en as DrawerOverlay,
|
|
1269
|
+
tn as DrawerPortal,
|
|
1270
|
+
rn as DrawerTitle,
|
|
1271
|
+
an as DrawerTrigger,
|
|
1272
|
+
Ya as DropdownMenu,
|
|
1273
|
+
eo as DropdownMenuCheckboxItem,
|
|
1274
|
+
to as DropdownMenuContent,
|
|
1275
|
+
ro as DropdownMenuGroup,
|
|
1276
|
+
ao as DropdownMenuItem,
|
|
1277
|
+
oo as DropdownMenuLabel,
|
|
1278
|
+
no as DropdownMenuPortal,
|
|
1279
|
+
io as DropdownMenuRadioGroup,
|
|
1280
|
+
so as DropdownMenuRadioItem,
|
|
1281
|
+
lo as DropdownMenuSeparator,
|
|
1282
|
+
uo as DropdownMenuShortcut,
|
|
1283
|
+
co as DropdownMenuSub,
|
|
1284
|
+
mo as DropdownMenuSubContent,
|
|
1285
|
+
fo as DropdownMenuSubTrigger,
|
|
1286
|
+
po as DropdownMenuTrigger,
|
|
1287
|
+
Or as Form,
|
|
1288
|
+
yt as FormControl,
|
|
1289
|
+
Ct as FormDescription,
|
|
1290
|
+
Vr as FormField,
|
|
1291
|
+
At as FormItem,
|
|
1292
|
+
wt as FormLabel,
|
|
1293
|
+
St as FormMessage,
|
|
1294
|
+
go as HoverCard,
|
|
1295
|
+
ho as HoverCardContent,
|
|
1296
|
+
xo as HoverCardTrigger,
|
|
1297
|
+
ha as InputOTP,
|
|
1298
|
+
xa as InputOTPGroup,
|
|
1299
|
+
va as InputOTPSeparator,
|
|
1300
|
+
Aa as InputOTPSlot,
|
|
1301
|
+
_e as Label,
|
|
1302
|
+
pn as Menubar,
|
|
1303
|
+
bn as MenubarCheckboxItem,
|
|
1304
|
+
gn as MenubarContent,
|
|
1305
|
+
hn as MenubarGroup,
|
|
1306
|
+
xn as MenubarItem,
|
|
1307
|
+
vn as MenubarLabel,
|
|
1308
|
+
An as MenubarMenu,
|
|
1309
|
+
wn as MenubarPortal,
|
|
1310
|
+
yn as MenubarRadioGroup,
|
|
1311
|
+
Cn as MenubarRadioItem,
|
|
1312
|
+
Sn as MenubarSeparator,
|
|
1313
|
+
Mn as MenubarShortcut,
|
|
1314
|
+
In as MenubarSub,
|
|
1315
|
+
Nn as MenubarSubContent,
|
|
1316
|
+
Dn as MenubarSubTrigger,
|
|
1317
|
+
_n as MenubarTrigger,
|
|
1318
|
+
Br as MultiSelect,
|
|
1319
|
+
Hr as MultiSelectContent,
|
|
1320
|
+
Ur as MultiSelectGroup,
|
|
1321
|
+
zr as MultiSelectItem,
|
|
1322
|
+
Lr as MultiSelectTrigger,
|
|
1323
|
+
Gr as MultiSelectValue,
|
|
1324
|
+
Ee as Popover,
|
|
1325
|
+
kn as PopoverAnchor,
|
|
1326
|
+
ke as PopoverContent,
|
|
1327
|
+
Fe as PopoverTrigger,
|
|
1328
|
+
Sa as Progress,
|
|
1329
|
+
Ao as RadioGroup,
|
|
1330
|
+
wo as RadioGroupItem,
|
|
1331
|
+
Co as ScrollArea,
|
|
1332
|
+
So as ScrollBar,
|
|
1293
1333
|
Se as Sheet,
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1334
|
+
nn as SheetClose,
|
|
1335
|
+
Me as SheetContent,
|
|
1336
|
+
De as SheetDescription,
|
|
1337
|
+
sn as SheetFooter,
|
|
1338
|
+
Ie as SheetHeader,
|
|
1339
|
+
Ne as SheetTitle,
|
|
1340
|
+
dn as SheetTrigger,
|
|
1341
|
+
pr as Sidebar,
|
|
1342
|
+
yr as SidebarContent,
|
|
1343
|
+
Ar as SidebarFooter,
|
|
1344
|
+
Cr as SidebarGroup,
|
|
1345
|
+
Mr as SidebarGroupAction,
|
|
1346
|
+
Ir as SidebarGroupContent,
|
|
1347
|
+
Sr as SidebarGroupLabel,
|
|
1348
|
+
vr as SidebarHeader,
|
|
1349
|
+
xr as SidebarInput,
|
|
1350
|
+
hr as SidebarInset,
|
|
1351
|
+
Nr as SidebarMenu,
|
|
1352
|
+
Er as SidebarMenuAction,
|
|
1353
|
+
kr as SidebarMenuBadge,
|
|
1354
|
+
_r as SidebarMenuButton,
|
|
1355
|
+
Dr as SidebarMenuItem,
|
|
1356
|
+
Fr as SidebarMenuSkeleton,
|
|
1317
1357
|
Tr as SidebarMenuSub,
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1358
|
+
Rr as SidebarMenuSubButton,
|
|
1359
|
+
Pr as SidebarMenuSubItem,
|
|
1360
|
+
fr as SidebarProvider,
|
|
1361
|
+
gr as SidebarRail,
|
|
1362
|
+
wr as SidebarSeparator,
|
|
1363
|
+
br as SidebarTrigger,
|
|
1364
|
+
ya as Slider,
|
|
1365
|
+
Io as Switch,
|
|
1366
|
+
Do as Tabs,
|
|
1367
|
+
_o as TabsContent,
|
|
1368
|
+
Eo as TabsList,
|
|
1369
|
+
ko as TabsTrigger,
|
|
1370
|
+
$r as TextReveal,
|
|
1371
|
+
un as Toaster,
|
|
1372
|
+
mn as Toggle,
|
|
1373
|
+
ge as Tooltip,
|
|
1374
|
+
xe as TooltipContent,
|
|
1375
|
+
ve as TooltipProvider,
|
|
1376
|
+
he as TooltipTrigger,
|
|
1377
|
+
V as useFormField,
|
|
1378
|
+
ie as useSidebar
|
|
1339
1379
|
};
|