@gv-tech/ui-web 2.15.2 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +3 -3
- package/dist/alert-dialog.cjs +2 -2
- package/dist/alert-dialog.mjs +16 -16
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +34 -34
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +2 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +114 -114
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +68 -68
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +21 -21
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +16 -16
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +43 -43
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +52 -0
- package/dist/index.mjs +101 -95
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +2 -2
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +77 -77
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +57 -57
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +1 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +62 -62
- package/dist/progress.cjs +2 -2
- package/dist/progress.mjs +2 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +36 -36
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +88 -88
- package/dist/scroll-to-top.cjs +1 -0
- package/dist/scroll-to-top.d.ts +12 -0
- package/dist/scroll-to-top.mjs +86 -0
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +74 -74
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +9 -9
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +12 -12
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +2 -2
- package/dist/support-fab.cjs +1 -0
- package/dist/support-fab.d.ts +20 -0
- package/dist/support-fab.mjs +120 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +12 -12
- package/dist/table-of-contents.cjs +1 -0
- package/dist/table-of-contents.d.ts +35 -0
- package/dist/table-of-contents.mjs +160 -0
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +41 -41
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-B4VZTDpe.js → theme-toggle-DXQGNfCe.js} +1 -1
- package/dist/{theme-toggle-WtPW9UZi.mjs → theme-toggle-tHXIbr8W.mjs} +1 -1
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +35 -35
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +15 -15
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +4 -4
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +3 -3
- package/dist/utils-DY6fhrgS.mjs +12 -0
- package/dist/utils-cdbZV8DZ.js +1 -0
- package/package.json +1 -1
- package/src/accordion.tsx +2 -2
- package/src/alert-dialog.tsx +6 -6
- package/src/avatar.tsx +3 -3
- package/src/checkbox.tsx +1 -1
- package/src/command.tsx +7 -7
- package/src/context-menu.tsx +8 -8
- package/src/dialog.tsx +4 -4
- package/src/drawer.tsx +3 -3
- package/src/dropdown-menu.tsx +8 -8
- package/src/hover-card.tsx +1 -1
- package/src/index.ts +12 -1
- package/src/label.tsx +1 -1
- package/src/lib/utils.ts +10 -0
- package/src/menubar.tsx +10 -10
- package/src/navigation-menu.tsx +6 -6
- package/src/popover.tsx +1 -1
- package/src/progress.tsx +1 -1
- package/src/radio-group.tsx +2 -2
- package/src/scroll-area.tsx +2 -2
- package/src/scroll-to-top.tsx +134 -0
- package/src/select.tsx +7 -7
- package/src/separator.tsx +1 -1
- package/src/setupTests.ts +1 -1
- package/src/sheet.tsx +4 -4
- package/src/slider.tsx +1 -1
- package/src/support-fab.tsx +190 -0
- package/src/switch.tsx +1 -1
- package/src/table-of-contents.tsx +285 -0
- package/src/tabs.tsx +3 -3
- package/src/toast.tsx +6 -6
- package/src/toggle-group.tsx +2 -2
- package/src/toggle.tsx +1 -1
- package/src/tooltip.tsx +2 -2
- package/dist/utils-B6yFEsav.mjs +0 -8
- package/dist/utils-IjLH3w2e.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as r } from "./utils-
|
|
2
|
+
import { c as r } from "./utils-DY6fhrgS.mjs";
|
|
3
3
|
import { Accordion as a, AccordionContent as n, AccordionItem as i, AccordionTrigger as l } from "./accordion.mjs";
|
|
4
|
-
import { Alert as
|
|
4
|
+
import { Alert as m, AlertDescription as u, AlertTitle as g } from "./alert.mjs";
|
|
5
5
|
import { AlertDialog as x, AlertDialogAction as d, AlertDialogCancel as s, AlertDialogContent as T, AlertDialogDescription as b, AlertDialogFooter as c, AlertDialogHeader as D, AlertDialogOverlay as M, AlertDialogPortal as f, AlertDialogTitle as S, AlertDialogTrigger as h } from "./alert-dialog.mjs";
|
|
6
6
|
import { AspectRatio as v } from "./aspect-ratio.mjs";
|
|
7
7
|
import { Avatar as A, AvatarFallback as I, AvatarImage as F } from "./avatar.mjs";
|
|
@@ -11,19 +11,19 @@ import { Button as U, buttonVariants as j } from "./button.mjs";
|
|
|
11
11
|
import { Calendar as J, CalendarDayButton as K } from "./calendar.mjs";
|
|
12
12
|
import { Card as W, CardContent as X, CardDescription as Y, CardFooter as Z, CardHeader as _, CardTitle as $ } from "./card.mjs";
|
|
13
13
|
import { Carousel as oe, CarouselContent as re, CarouselItem as te, CarouselNext as ae, CarouselPrevious as ne } from "./carousel.mjs";
|
|
14
|
-
import { ChartContainer as le, ChartLegend as pe, ChartLegendContent as
|
|
14
|
+
import { ChartContainer as le, ChartLegend as pe, ChartLegendContent as me, ChartStyle as ue, ChartTooltip as ge, ChartTooltipContent as Ce } from "./chart.mjs";
|
|
15
15
|
import { Checkbox as de } from "./checkbox.mjs";
|
|
16
16
|
import { Collapsible as Te, CollapsibleContent as be, CollapsibleTrigger as ce } from "./collapsible.mjs";
|
|
17
17
|
import { Command as Me, CommandDialog as fe, CommandEmpty as Se, CommandGroup as he, CommandInput as we, CommandItem as ve, CommandList as Pe, CommandSeparator as Ae, CommandShortcut as Ie } from "./command.mjs";
|
|
18
18
|
import { ContextMenu as Le, ContextMenuCheckboxItem as Be, ContextMenuContent as Ge, ContextMenuGroup as Re, ContextMenuItem as He, ContextMenuLabel as Ne, ContextMenuPortal as ke, ContextMenuRadioGroup as ye, ContextMenuRadioItem as Ve, ContextMenuSeparator as Oe, ContextMenuShortcut as ze, ContextMenuSub as Ee, ContextMenuSubContent as Ue, ContextMenuSubTrigger as je, ContextMenuTrigger as qe } from "./context-menu.mjs";
|
|
19
19
|
import { Dialog as Ke, DialogClose as Qe, DialogContent as We, DialogDescription as Xe, DialogFooter as Ye, DialogHeader as Ze, DialogOverlay as _e, DialogPortal as $e, DialogTitle as eo, DialogTrigger as oo } from "./dialog.mjs";
|
|
20
|
-
import { Drawer as to, DrawerClose as ao, DrawerContent as no, DrawerDescription as io, DrawerFooter as lo, DrawerHeader as po, DrawerOverlay as
|
|
20
|
+
import { Drawer as to, DrawerClose as ao, DrawerContent as no, DrawerDescription as io, DrawerFooter as lo, DrawerHeader as po, DrawerOverlay as mo, DrawerPortal as uo, DrawerTitle as go, DrawerTrigger as Co } from "./drawer.mjs";
|
|
21
21
|
import { DropdownMenu as so, DropdownMenuCheckboxItem as To, DropdownMenuContent as bo, DropdownMenuGroup as co, DropdownMenuItem as Do, DropdownMenuLabel as Mo, DropdownMenuPortal as fo, DropdownMenuRadioGroup as So, DropdownMenuRadioItem as ho, DropdownMenuSeparator as wo, DropdownMenuShortcut as vo, DropdownMenuSub as Po, DropdownMenuSubContent as Ao, DropdownMenuSubTrigger as Io, DropdownMenuTrigger as Fo } from "./dropdown-menu.mjs";
|
|
22
22
|
import { Form as Bo, FormControl as Go, FormDescription as Ro, FormField as Ho, FormItem as No, FormLabel as ko, FormMessage as yo, useFormField as Vo } from "./form.mjs";
|
|
23
23
|
import { HoverCard as zo, HoverCardContent as Eo, HoverCardTrigger as Uo } from "./hover-card.mjs";
|
|
24
24
|
import { Input as qo } from "./input.mjs";
|
|
25
25
|
import { Label as Ko } from "./label.mjs";
|
|
26
|
-
import { Menubar as Wo, MenubarCheckboxItem as Xo, MenubarContent as Yo, MenubarGroup as Zo, MenubarItem as _o, MenubarLabel as $o, MenubarMenu as er, MenubarPortal as or, MenubarRadioGroup as rr, MenubarRadioItem as tr, MenubarSeparator as ar, MenubarShortcut as nr, MenubarSub as ir, MenubarSubContent as lr, MenubarSubTrigger as pr, MenubarTrigger as
|
|
26
|
+
import { Menubar as Wo, MenubarCheckboxItem as Xo, MenubarContent as Yo, MenubarGroup as Zo, MenubarItem as _o, MenubarLabel as $o, MenubarMenu as er, MenubarPortal as or, MenubarRadioGroup as rr, MenubarRadioItem as tr, MenubarSeparator as ar, MenubarShortcut as nr, MenubarSub as ir, MenubarSubContent as lr, MenubarSubTrigger as pr, MenubarTrigger as mr } from "./menubar.mjs";
|
|
27
27
|
import { NavigationMenu as gr, NavigationMenuContent as Cr, NavigationMenuIndicator as xr, NavigationMenuItem as dr, NavigationMenuLink as sr, NavigationMenuList as Tr, NavigationMenuTrigger as br, NavigationMenuViewport as cr, navigationMenuTriggerStyle as Dr } from "./navigation-menu.mjs";
|
|
28
28
|
import { Pagination as fr, PaginationContent as Sr, PaginationEllipsis as hr, PaginationItem as wr, PaginationLink as vr, PaginationNext as Pr, PaginationPrevious as Ar } from "./pagination.mjs";
|
|
29
29
|
import { Popover as Fr, PopoverAnchor as Lr, PopoverContent as Br, PopoverTrigger as Gr } from "./popover.mjs";
|
|
@@ -31,33 +31,36 @@ import { Progress as Hr } from "./progress.mjs";
|
|
|
31
31
|
import { RadioGroup as kr, RadioGroupItem as yr } from "./radio-group.mjs";
|
|
32
32
|
import { ResizableHandle as Or, ResizablePanel as zr, ResizablePanelGroup as Er } from "./resizable.mjs";
|
|
33
33
|
import { ScrollArea as jr, ScrollBar as qr } from "./scroll-area.mjs";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
34
|
+
import { ScrollToTop as Kr } from "./scroll-to-top.mjs";
|
|
35
|
+
import { SupportFab as Wr } from "./support-fab.mjs";
|
|
36
|
+
import { Search as Yr, SearchTrigger as Zr } from "./search.mjs";
|
|
37
|
+
import { Select as $r, SelectContent as et, SelectGroup as ot, SelectItem as rt, SelectLabel as tt, SelectScrollDownButton as at, SelectScrollUpButton as nt, SelectSeparator as it, SelectTrigger as lt, SelectValue as pt } from "./select.mjs";
|
|
38
|
+
import { Separator as ut } from "./separator.mjs";
|
|
39
|
+
import { Sheet as Ct, SheetClose as xt, SheetContent as dt, SheetDescription as st, SheetFooter as Tt, SheetHeader as bt, SheetOverlay as ct, SheetPortal as Dt, SheetTitle as Mt, SheetTrigger as ft } from "./sheet.mjs";
|
|
40
|
+
import { Skeleton as ht } from "./skeleton.mjs";
|
|
41
|
+
import { Slider as vt } from "./slider.mjs";
|
|
42
|
+
import { Toaster as At } from "./sonner.mjs";
|
|
43
|
+
import { Switch as Ft } from "./switch.mjs";
|
|
44
|
+
import { Table as Bt, TableBody as Gt, TableCaption as Rt, TableCell as Ht, TableFooter as Nt, TableHead as kt, TableHeader as yt, TableRow as Vt } from "./table.mjs";
|
|
45
|
+
import { Tabs as zt, TabsContent as Et, TabsList as Ut, TabsTrigger as jt } from "./tabs.mjs";
|
|
46
|
+
import { Text as Jt, textVariants as Kt } from "./text.mjs";
|
|
47
|
+
import { Textarea as Wt } from "./textarea.mjs";
|
|
48
|
+
import { Toggle as Yt } from "./toggle.mjs";
|
|
49
|
+
import { ToggleGroup as _t, ToggleGroupItem as $t } from "./toggle-group.mjs";
|
|
50
|
+
import { Tooltip as oa, TooltipContent as ra, TooltipProvider as ta, TooltipTrigger as aa } from "./tooltip.mjs";
|
|
51
|
+
import { Toast as ia, ToastAction as la, ToastClose as pa, ToastDescription as ma, ToastProvider as ua, ToastTitle as ga, ToastViewport as Ca } from "./toast.mjs";
|
|
52
|
+
import { ThemeProvider as da } from "./theme-provider.mjs";
|
|
53
|
+
import { T as Ta, u as ba } from "./theme-toggle-tHXIbr8W.mjs";
|
|
54
|
+
import { T as Da, t as Ma, u as fa } from "./toaster-k5DnQSsh.mjs";
|
|
55
|
+
import { TableOfContents as ha } from "./table-of-contents.mjs";
|
|
56
|
+
import { toggleVariants as va } from "@gv-tech/ui-core";
|
|
54
57
|
export {
|
|
55
58
|
a as Accordion,
|
|
56
59
|
n as AccordionContent,
|
|
57
60
|
i as AccordionItem,
|
|
58
61
|
l as AccordionTrigger,
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
m as Alert,
|
|
63
|
+
u as AlertDescription,
|
|
61
64
|
x as AlertDialog,
|
|
62
65
|
d as AlertDialogAction,
|
|
63
66
|
s as AlertDialogCancel,
|
|
@@ -98,8 +101,8 @@ export {
|
|
|
98
101
|
ne as CarouselPrevious,
|
|
99
102
|
le as ChartContainer,
|
|
100
103
|
pe as ChartLegend,
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
me as ChartLegendContent,
|
|
105
|
+
ue as ChartStyle,
|
|
103
106
|
ge as ChartTooltip,
|
|
104
107
|
Ce as ChartTooltipContent,
|
|
105
108
|
de as Checkbox,
|
|
@@ -146,8 +149,8 @@ export {
|
|
|
146
149
|
io as DrawerDescription,
|
|
147
150
|
lo as DrawerFooter,
|
|
148
151
|
po as DrawerHeader,
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
mo as DrawerOverlay,
|
|
153
|
+
uo as DrawerPortal,
|
|
151
154
|
go as DrawerTitle,
|
|
152
155
|
Co as DrawerTrigger,
|
|
153
156
|
so as DropdownMenu,
|
|
@@ -192,7 +195,7 @@ export {
|
|
|
192
195
|
ir as MenubarSub,
|
|
193
196
|
lr as MenubarSubContent,
|
|
194
197
|
pr as MenubarSubTrigger,
|
|
195
|
-
|
|
198
|
+
mr as MenubarTrigger,
|
|
196
199
|
gr as NavigationMenu,
|
|
197
200
|
Cr as NavigationMenuContent,
|
|
198
201
|
xr as NavigationMenuIndicator,
|
|
@@ -220,72 +223,75 @@ export {
|
|
|
220
223
|
Er as ResizablePanelGroup,
|
|
221
224
|
jr as ScrollArea,
|
|
222
225
|
qr as ScrollBar,
|
|
223
|
-
Kr as
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
Vt as
|
|
261
|
-
|
|
262
|
-
Et as
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
_t as
|
|
279
|
-
$t as
|
|
280
|
-
|
|
226
|
+
Kr as ScrollToTop,
|
|
227
|
+
Yr as Search,
|
|
228
|
+
Zr as SearchTrigger,
|
|
229
|
+
$r as Select,
|
|
230
|
+
et as SelectContent,
|
|
231
|
+
ot as SelectGroup,
|
|
232
|
+
rt as SelectItem,
|
|
233
|
+
tt as SelectLabel,
|
|
234
|
+
at as SelectScrollDownButton,
|
|
235
|
+
nt as SelectScrollUpButton,
|
|
236
|
+
it as SelectSeparator,
|
|
237
|
+
lt as SelectTrigger,
|
|
238
|
+
pt as SelectValue,
|
|
239
|
+
ut as Separator,
|
|
240
|
+
Ct as Sheet,
|
|
241
|
+
xt as SheetClose,
|
|
242
|
+
dt as SheetContent,
|
|
243
|
+
st as SheetDescription,
|
|
244
|
+
Tt as SheetFooter,
|
|
245
|
+
bt as SheetHeader,
|
|
246
|
+
ct as SheetOverlay,
|
|
247
|
+
Dt as SheetPortal,
|
|
248
|
+
Mt as SheetTitle,
|
|
249
|
+
ft as SheetTrigger,
|
|
250
|
+
ht as Skeleton,
|
|
251
|
+
vt as Slider,
|
|
252
|
+
At as SonnerToaster,
|
|
253
|
+
Wr as SupportFab,
|
|
254
|
+
Ft as Switch,
|
|
255
|
+
Bt as Table,
|
|
256
|
+
Gt as TableBody,
|
|
257
|
+
Rt as TableCaption,
|
|
258
|
+
Ht as TableCell,
|
|
259
|
+
Nt as TableFooter,
|
|
260
|
+
kt as TableHead,
|
|
261
|
+
yt as TableHeader,
|
|
262
|
+
ha as TableOfContents,
|
|
263
|
+
Vt as TableRow,
|
|
264
|
+
zt as Tabs,
|
|
265
|
+
Et as TabsContent,
|
|
266
|
+
Ut as TabsList,
|
|
267
|
+
jt as TabsTrigger,
|
|
268
|
+
Jt as Text,
|
|
269
|
+
Wt as Textarea,
|
|
270
|
+
da as ThemeProvider,
|
|
271
|
+
Ta as ThemeToggle,
|
|
272
|
+
ia as Toast,
|
|
273
|
+
la as ToastAction,
|
|
274
|
+
pa as ToastClose,
|
|
275
|
+
ma as ToastDescription,
|
|
276
|
+
ua as ToastProvider,
|
|
277
|
+
ga as ToastTitle,
|
|
278
|
+
Ca as ToastViewport,
|
|
279
|
+
Da as Toaster,
|
|
280
|
+
Yt as Toggle,
|
|
281
|
+
_t as ToggleGroup,
|
|
282
|
+
$t as ToggleGroupItem,
|
|
283
|
+
oa as Tooltip,
|
|
284
|
+
ra as TooltipContent,
|
|
285
|
+
ta as TooltipProvider,
|
|
286
|
+
aa as TooltipTrigger,
|
|
281
287
|
G as badgeVariants,
|
|
282
288
|
j as buttonVariants,
|
|
283
289
|
r as cn,
|
|
284
290
|
Dr as navigationMenuTriggerStyle,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
291
|
+
Kt as textVariants,
|
|
292
|
+
Ma as toast,
|
|
293
|
+
va as toggleVariants,
|
|
288
294
|
Vo as useFormField,
|
|
289
|
-
|
|
290
|
-
|
|
295
|
+
ba as useTheme,
|
|
296
|
+
fa as useToast
|
|
291
297
|
};
|
package/dist/input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-nZSsnGb7.js"),s=require("react"),u=require("./utils-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-nZSsnGb7.js"),s=require("react"),u=require("./utils-cdbZV8DZ.js");function l(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=l(s),o=a.forwardRef(({className:e,type:r,...t},n)=>i.jsxRuntimeExports.jsx("input",{type:r,className:u.cn("border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));o.displayName="Input";exports.Input=o;
|
package/dist/input.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as i } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { c as n } from "./utils-
|
|
4
|
+
import { c as n } from "./utils-DY6fhrgS.mjs";
|
|
5
5
|
const l = s.forwardRef(({ className: e, type: r, ...t }, o) => /* @__PURE__ */ i.jsx(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
package/dist/label.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-nZSsnGb7.js"),c=require("react"),u=require("./index-B39Lzq0v.js"),d=require("class-variance-authority"),f=require("./utils-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-nZSsnGb7.js"),c=require("react"),u=require("./index-B39Lzq0v.js"),d=require("class-variance-authority"),f=require("./utils-cdbZV8DZ.js");function b(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=b(c);var m="Label",s=o.forwardRef((t,r)=>n.jsxRuntimeExports.jsx(u.Primitive.label,{...t,ref:r,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));s.displayName=m;var i=s;const p=d.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=o.forwardRef(({className:t,...r},e)=>n.jsxRuntimeExports.jsx(i,{ref:e,className:f.cn(p(),t),...r}));l.displayName=i?.displayName||"Label";exports.Label=l;
|
package/dist/label.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { j as r } from "./jsx-runtime-tc70JA_2.mjs";
|
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { P as l } from "./index-DaILh3TV.mjs";
|
|
5
5
|
import { cva as m } from "class-variance-authority";
|
|
6
|
-
import { c as n } from "./utils-
|
|
6
|
+
import { c as n } from "./utils-DY6fhrgS.mjs";
|
|
7
7
|
var d = "Label", s = o.forwardRef((a, t) => /* @__PURE__ */ r.jsx(
|
|
8
8
|
l.label,
|
|
9
9
|
{
|
|
@@ -17,7 +17,7 @@ var d = "Label", s = o.forwardRef((a, t) => /* @__PURE__ */ r.jsx(
|
|
|
17
17
|
s.displayName = d;
|
|
18
18
|
var i = s;
|
|
19
19
|
const f = m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), c = o.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ r.jsx(i, { ref: e, className: n(f(), a), ...t }));
|
|
20
|
-
c.displayName = i
|
|
20
|
+
c.displayName = i?.displayName || "Label";
|
|
21
21
|
export {
|
|
22
22
|
c as Label
|
|
23
23
|
};
|
package/dist/menubar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-nZSsnGb7.js"),Se=require("react"),we=require("./index-BGIK9FQF.js"),_e=require("./index-Dko2XdTk.js"),v=require("./index-BtZvtDmp.js"),Ce=require("./index-_XxjJPRD.js"),Ie=require("./index-D2HnlO3y.js"),S=require("./index-CefEQe_4.js"),d=require("./index-B7n6fy75.js"),y=require("./index-DIsg7zU7.js"),$=require("./index-Ce5TOFAK.js"),I=require("lucide-react"),R=require("./utils-IjLH3w2e.js");function Pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=Pe(Se);var E="Menubar",[w,Ae,Oe]=we.createCollection(E),[D]=Ie.createContextScope(E,[Oe,y.createRovingFocusGroupScope]),l=d.createMenuScope(),k=y.createRovingFocusGroupScope(),[Te,P]=D(E),F=s.forwardRef((e,t)=>{const{__scopeMenubar:r,value:n,onValueChange:o,defaultValue:x,loop:p=!0,dir:c,...u}=e,b=_e.useDirection(c),i=k(r),[g,f]=$.useControllableState({prop:n,onChange:o,defaultProp:x??"",caller:E}),[M,m]=s.useState(null);return a.jsxRuntimeExports.jsx(Te,{scope:r,value:g,onMenuOpen:s.useCallback(j=>{f(j),m(j)},[f]),onMenuClose:s.useCallback(()=>f(""),[f]),onMenuToggle:s.useCallback(j=>{f(O=>O?"":j),m(j)},[f]),dir:b,loop:p,children:a.jsxRuntimeExports.jsx(w.Provider,{scope:r,children:a.jsxRuntimeExports.jsx(w.Slot,{scope:r,children:a.jsxRuntimeExports.jsx(y.Root,{asChild:!0,...i,orientation:"horizontal",loop:p,dir:b,currentTabStopId:M,onCurrentTabStopIdChange:m,children:a.jsxRuntimeExports.jsx(v.Primitive.div,{role:"menubar",...u,ref:t})})})})})});F.displayName=E;var A="MenubarMenu",[Ge,K]=D(A),q=e=>{const{__scopeMenubar:t,value:r,...n}=e,o=S.useId(),x=r||o||"LEGACY_REACT_AUTO_VALUE",p=P(A,t),c=l(t),u=s.useRef(null),b=s.useRef(!1),i=p.value===x;return s.useEffect(()=>{i||(b.current=!1)},[i]),a.jsxRuntimeExports.jsx(Ge,{scope:t,value:x,triggerId:S.useId(),triggerRef:u,contentId:S.useId(),wasKeyboardTriggerOpenRef:b,children:a.jsxRuntimeExports.jsx(d.Root3,{...c,open:i,onOpenChange:g=>{g||p.onMenuClose()},modal:!1,dir:p.dir,...n})})};q.displayName=A;var _="MenubarTrigger",L=s.forwardRef((e,t)=>{const{__scopeMenubar:r,disabled:n=!1,...o}=e,x=k(r),p=l(r),c=P(_,r),u=K(_,r),b=s.useRef(null),i=Ce.useComposedRefs(t,b,u.triggerRef),[g,f]=s.useState(!1),M=c.value===u.value;return a.jsxRuntimeExports.jsx(w.ItemSlot,{scope:r,value:u.value,disabled:n,children:a.jsxRuntimeExports.jsx(y.Item,{asChild:!0,...x,focusable:!n,tabStopId:u.value,children:a.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...p,children:a.jsxRuntimeExports.jsx(v.Primitive.button,{type:"button",role:"menuitem",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":M,"aria-controls":M?u.contentId:void 0,"data-highlighted":g?"":void 0,"data-state":M?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:i,onPointerDown:v.composeEventHandlers(e.onPointerDown,m=>{!n&&m.button===0&&m.ctrlKey===!1&&(c.onMenuOpen(u.value),M||m.preventDefault())}),onPointerEnter:v.composeEventHandlers(e.onPointerEnter,()=>{c.value&&!M&&(c.onMenuOpen(u.value),b.current?.focus())}),onKeyDown:v.composeEventHandlers(e.onKeyDown,m=>{n||(["Enter"," "].includes(m.key)&&c.onMenuToggle(u.value),m.key==="ArrowDown"&&c.onMenuOpen(u.value),["Enter"," ","ArrowDown"].includes(m.key)&&(u.wasKeyboardTriggerOpenRef.current=!0,m.preventDefault()))}),onFocus:v.composeEventHandlers(e.onFocus,()=>f(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>f(!1))})})})})});L.displayName=_;var $e="MenubarPortal",B=e=>{const{__scopeMenubar:t,...r}=e,n=l(t);return a.jsxRuntimeExports.jsx(d.Portal,{...n,...r})};B.displayName=$e;var C="MenubarContent",H=s.forwardRef((e,t)=>{const{__scopeMenubar:r,align:n="start",...o}=e,x=l(r),p=P(C,r),c=K(C,r),u=Ae(r),b=s.useRef(!1);return a.jsxRuntimeExports.jsx(d.Content2,{id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":"",...x,...o,ref:t,align:n,onCloseAutoFocus:v.composeEventHandlers(e.onCloseAutoFocus,i=>{!p.value&&!b.current&&c.triggerRef.current?.focus(),b.current=!1,i.preventDefault()}),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,i=>{const g=i.target;u().some(M=>M.ref.current?.contains(g))&&i.preventDefault()}),onInteractOutside:v.composeEventHandlers(e.onInteractOutside,()=>{b.current=!0}),onEntryFocus:i=>{c.wasKeyboardTriggerOpenRef.current||i.preventDefault()},onKeyDown:v.composeEventHandlers(e.onKeyDown,i=>{if(["ArrowRight","ArrowLeft"].includes(i.key)){const g=i.target,f=g.hasAttribute("data-radix-menubar-subtrigger"),M=g.closest("[data-radix-menubar-content]")!==i.currentTarget,j=(p.dir==="rtl"?"ArrowRight":"ArrowLeft")===i.key;if(!j&&f||M&&j)return;let h=u().filter(N=>!N.disabled).map(N=>N.value);j&&h.reverse();const T=h.indexOf(c.value);h=p.loop?Xe(h,T+1):h.slice(T+1);const[G]=h;G&&p.onMenuOpen(G)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});H.displayName=C;var De="MenubarGroup",U=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Group,{...o,...n,ref:t})});U.displayName=De;var ke="MenubarLabel",z=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Label,{...o,...n,ref:t})});z.displayName=ke;var Fe="MenubarItem",V=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Item2,{...o,...n,ref:t})});V.displayName=Fe;var Ke="MenubarCheckboxItem",W=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.CheckboxItem,{...o,...n,ref:t})});W.displayName=Ke;var qe="MenubarRadioGroup",X=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.RadioGroup,{...o,...n,ref:t})});X.displayName=qe;var Le="MenubarRadioItem",Y=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.RadioItem,{...o,...n,ref:t})});Y.displayName=Le;var Be="MenubarItemIndicator",J=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.ItemIndicator,{...o,...n,ref:t})});J.displayName=Be;var He="MenubarSeparator",Q=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Separator,{...o,...n,ref:t})});Q.displayName=He;var Ue="MenubarArrow",ze=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Arrow2,{...o,...n,ref:t})});ze.displayName=Ue;var Z="MenubarSub",ee=e=>{const{__scopeMenubar:t,children:r,open:n,onOpenChange:o,defaultOpen:x}=e,p=l(t),[c,u]=$.useControllableState({prop:n,defaultProp:x??!1,onChange:o,caller:Z});return a.jsxRuntimeExports.jsx(d.Sub,{...p,open:c,onOpenChange:u,children:r})};ee.displayName=Z;var Ve="MenubarSubTrigger",re=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.SubTrigger,{"data-radix-menubar-subtrigger":"",...o,...n,ref:t})});re.displayName=Ve;var We="MenubarSubContent",te=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.SubContent,{...o,"data-radix-menubar-content":"",...n,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});te.displayName=We;function Xe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ne=F,Ye=q,ae=L,oe=B,se=H,Je=U,ue=z,ie=V,ce=W,Qe=X,de=Y,le=J,pe=Q,Ze=ee,me=re,xe=te;function er({...e}){return a.jsxRuntimeExports.jsx(Ye,{...e})}function rr({...e}){return a.jsxRuntimeExports.jsx(Je,{...e})}function tr({...e}){return a.jsxRuntimeExports.jsx(oe,{...e})}function nr({...e}){return a.jsxRuntimeExports.jsx(Qe,{...e})}function ar({...e}){return a.jsxRuntimeExports.jsx(Ze,{"data-slot":"menubar-sub",...e})}const be=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(ne,{ref:r,className:R.cn("bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm",e),...t}));be.displayName=ne.displayName;const fe=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(ae,{ref:r,className:R.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none",e),...t}));fe.displayName=ae.displayName;const ge=s.forwardRef(({className:e,inset:t,children:r,...n},o)=>a.jsxRuntimeExports.jsxs(me,{ref:o,className:R.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",t&&"pl-8",e),...n,children:[r,a.jsxRuntimeExports.jsx(I.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ge.displayName=me.displayName;const Me=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(xe,{ref:r,className:R.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",e),...t}));Me.displayName=xe.displayName;const ve=s.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:n=8,...o},x)=>a.jsxRuntimeExports.jsx(oe,{children:a.jsxRuntimeExports.jsx(se,{ref:x,align:t,alignOffset:r,sideOffset:n,className:R.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md",e),...o})}));ve.displayName=se.displayName;const Re=s.forwardRef(({className:e,inset:t,...r},n)=>a.jsxRuntimeExports.jsx(ie,{ref:n,className:R.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Re.displayName=ie.displayName;const je=s.forwardRef(({className:e,children:t,checked:r,...n},o)=>a.jsxRuntimeExports.jsxs(ce,{ref:o,className:R.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(le,{children:a.jsxRuntimeExports.jsx(I.Check,{className:"h-4 w-4"})})}),t]}));je.displayName=ce.displayName;const he=s.forwardRef(({className:e,children:t,...r},n)=>a.jsxRuntimeExports.jsxs(de,{ref:n,className:R.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(le,{children:a.jsxRuntimeExports.jsx(I.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));he.displayName=de.displayName;const Ee=s.forwardRef(({className:e,inset:t,...r},n)=>a.jsxRuntimeExports.jsx(ue,{ref:n,className:R.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Ee.displayName=ue.displayName;const ye=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(pe,{ref:r,className:R.cn("bg-muted -mx-1 my-1 h-px",e),...t}));ye.displayName=pe.displayName;const Ne=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:R.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t});Ne.displayname="MenubarShortcut";exports.Menubar=be;exports.MenubarCheckboxItem=je;exports.MenubarContent=ve;exports.MenubarGroup=rr;exports.MenubarItem=Re;exports.MenubarLabel=Ee;exports.MenubarMenu=er;exports.MenubarPortal=tr;exports.MenubarRadioGroup=nr;exports.MenubarRadioItem=he;exports.MenubarSeparator=ye;exports.MenubarShortcut=Ne;exports.MenubarSub=ar;exports.MenubarSubContent=Me;exports.MenubarSubTrigger=ge;exports.MenubarTrigger=fe;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-nZSsnGb7.js"),Se=require("react"),we=require("./index-BGIK9FQF.js"),Ce=require("./index-Dko2XdTk.js"),v=require("./index-BtZvtDmp.js"),Ie=require("./index-_XxjJPRD.js"),_e=require("./index-D2HnlO3y.js"),S=require("./index-CefEQe_4.js"),d=require("./index-B7n6fy75.js"),y=require("./index-DIsg7zU7.js"),$=require("./index-Ce5TOFAK.js"),_=require("lucide-react"),R=require("./utils-cdbZV8DZ.js");function Pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=Pe(Se);var E="Menubar",[w,Ae,Te]=we.createCollection(E),[k]=_e.createContextScope(E,[Te,y.createRovingFocusGroupScope]),l=d.createMenuScope(),D=y.createRovingFocusGroupScope(),[Oe,P]=k(E),F=s.forwardRef((e,t)=>{const{__scopeMenubar:r,value:n,onValueChange:o,defaultValue:x,loop:p=!0,dir:c,...u}=e,b=Ce.useDirection(c),i=D(r),[g,f]=$.useControllableState({prop:n,onChange:o,defaultProp:x??"",caller:E}),[M,m]=s.useState(null);return a.jsxRuntimeExports.jsx(Oe,{scope:r,value:g,onMenuOpen:s.useCallback(j=>{f(j),m(j)},[f]),onMenuClose:s.useCallback(()=>f(""),[f]),onMenuToggle:s.useCallback(j=>{f(T=>T?"":j),m(j)},[f]),dir:b,loop:p,children:a.jsxRuntimeExports.jsx(w.Provider,{scope:r,children:a.jsxRuntimeExports.jsx(w.Slot,{scope:r,children:a.jsxRuntimeExports.jsx(y.Root,{asChild:!0,...i,orientation:"horizontal",loop:p,dir:b,currentTabStopId:M,onCurrentTabStopIdChange:m,children:a.jsxRuntimeExports.jsx(v.Primitive.div,{role:"menubar",...u,ref:t})})})})})});F.displayName=E;var A="MenubarMenu",[Ge,K]=k(A),L=e=>{const{__scopeMenubar:t,value:r,...n}=e,o=S.useId(),x=r||o||"LEGACY_REACT_AUTO_VALUE",p=P(A,t),c=l(t),u=s.useRef(null),b=s.useRef(!1),i=p.value===x;return s.useEffect(()=>{i||(b.current=!1)},[i]),a.jsxRuntimeExports.jsx(Ge,{scope:t,value:x,triggerId:S.useId(),triggerRef:u,contentId:S.useId(),wasKeyboardTriggerOpenRef:b,children:a.jsxRuntimeExports.jsx(d.Root3,{...c,open:i,onOpenChange:g=>{g||p.onMenuClose()},modal:!1,dir:p.dir,...n})})};L.displayName=A;var C="MenubarTrigger",q=s.forwardRef((e,t)=>{const{__scopeMenubar:r,disabled:n=!1,...o}=e,x=D(r),p=l(r),c=P(C,r),u=K(C,r),b=s.useRef(null),i=Ie.useComposedRefs(t,b,u.triggerRef),[g,f]=s.useState(!1),M=c.value===u.value;return a.jsxRuntimeExports.jsx(w.ItemSlot,{scope:r,value:u.value,disabled:n,children:a.jsxRuntimeExports.jsx(y.Item,{asChild:!0,...x,focusable:!n,tabStopId:u.value,children:a.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...p,children:a.jsxRuntimeExports.jsx(v.Primitive.button,{type:"button",role:"menuitem",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":M,"aria-controls":M?u.contentId:void 0,"data-highlighted":g?"":void 0,"data-state":M?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:i,onPointerDown:v.composeEventHandlers(e.onPointerDown,m=>{!n&&m.button===0&&m.ctrlKey===!1&&(c.onMenuOpen(u.value),M||m.preventDefault())}),onPointerEnter:v.composeEventHandlers(e.onPointerEnter,()=>{c.value&&!M&&(c.onMenuOpen(u.value),b.current?.focus())}),onKeyDown:v.composeEventHandlers(e.onKeyDown,m=>{n||(["Enter"," "].includes(m.key)&&c.onMenuToggle(u.value),m.key==="ArrowDown"&&c.onMenuOpen(u.value),["Enter"," ","ArrowDown"].includes(m.key)&&(u.wasKeyboardTriggerOpenRef.current=!0,m.preventDefault()))}),onFocus:v.composeEventHandlers(e.onFocus,()=>f(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>f(!1))})})})})});q.displayName=C;var $e="MenubarPortal",B=e=>{const{__scopeMenubar:t,...r}=e,n=l(t);return a.jsxRuntimeExports.jsx(d.Portal,{...n,...r})};B.displayName=$e;var I="MenubarContent",H=s.forwardRef((e,t)=>{const{__scopeMenubar:r,align:n="start",...o}=e,x=l(r),p=P(I,r),c=K(I,r),u=Ae(r),b=s.useRef(!1);return a.jsxRuntimeExports.jsx(d.Content2,{id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":"",...x,...o,ref:t,align:n,onCloseAutoFocus:v.composeEventHandlers(e.onCloseAutoFocus,i=>{!p.value&&!b.current&&c.triggerRef.current?.focus(),b.current=!1,i.preventDefault()}),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,i=>{const g=i.target;u().some(M=>M.ref.current?.contains(g))&&i.preventDefault()}),onInteractOutside:v.composeEventHandlers(e.onInteractOutside,()=>{b.current=!0}),onEntryFocus:i=>{c.wasKeyboardTriggerOpenRef.current||i.preventDefault()},onKeyDown:v.composeEventHandlers(e.onKeyDown,i=>{if(["ArrowRight","ArrowLeft"].includes(i.key)){const g=i.target,f=g.hasAttribute("data-radix-menubar-subtrigger"),M=g.closest("[data-radix-menubar-content]")!==i.currentTarget,j=(p.dir==="rtl"?"ArrowRight":"ArrowLeft")===i.key;if(!j&&f||M&&j)return;let h=u().filter(N=>!N.disabled).map(N=>N.value);j&&h.reverse();const O=h.indexOf(c.value);h=p.loop?Xe(h,O+1):h.slice(O+1);const[G]=h;G&&p.onMenuOpen(G)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});H.displayName=I;var ke="MenubarGroup",U=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Group,{...o,...n,ref:t})});U.displayName=ke;var De="MenubarLabel",z=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Label,{...o,...n,ref:t})});z.displayName=De;var Fe="MenubarItem",V=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Item2,{...o,...n,ref:t})});V.displayName=Fe;var Ke="MenubarCheckboxItem",W=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.CheckboxItem,{...o,...n,ref:t})});W.displayName=Ke;var Le="MenubarRadioGroup",X=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.RadioGroup,{...o,...n,ref:t})});X.displayName=Le;var qe="MenubarRadioItem",Y=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.RadioItem,{...o,...n,ref:t})});Y.displayName=qe;var Be="MenubarItemIndicator",J=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.ItemIndicator,{...o,...n,ref:t})});J.displayName=Be;var He="MenubarSeparator",Q=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Separator,{...o,...n,ref:t})});Q.displayName=He;var Ue="MenubarArrow",ze=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.Arrow2,{...o,...n,ref:t})});ze.displayName=Ue;var Z="MenubarSub",ee=e=>{const{__scopeMenubar:t,children:r,open:n,onOpenChange:o,defaultOpen:x}=e,p=l(t),[c,u]=$.useControllableState({prop:n,defaultProp:x??!1,onChange:o,caller:Z});return a.jsxRuntimeExports.jsx(d.Sub,{...p,open:c,onOpenChange:u,children:r})};ee.displayName=Z;var Ve="MenubarSubTrigger",re=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.SubTrigger,{"data-radix-menubar-subtrigger":"",...o,...n,ref:t})});re.displayName=Ve;var We="MenubarSubContent",te=s.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=l(r);return a.jsxRuntimeExports.jsx(d.SubContent,{...o,"data-radix-menubar-content":"",...n,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});te.displayName=We;function Xe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ne=F,Ye=L,ae=q,oe=B,se=H,Je=U,ue=z,ie=V,ce=W,Qe=X,de=Y,le=J,pe=Q,Ze=ee,me=re,xe=te;function er({...e}){return a.jsxRuntimeExports.jsx(Ye,{...e})}function rr({...e}){return a.jsxRuntimeExports.jsx(Je,{...e})}function tr({...e}){return a.jsxRuntimeExports.jsx(oe,{...e})}function nr({...e}){return a.jsxRuntimeExports.jsx(Qe,{...e})}function ar({...e}){return a.jsxRuntimeExports.jsx(Ze,{"data-slot":"menubar-sub",...e})}const be=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(ne,{ref:r,className:R.cn("bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm",e),...t}));be.displayName=ne?.displayName||"Menubar";const fe=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(ae,{ref:r,className:R.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none",e),...t}));fe.displayName=ae?.displayName||"MenubarTrigger";const ge=s.forwardRef(({className:e,inset:t,children:r,...n},o)=>a.jsxRuntimeExports.jsxs(me,{ref:o,className:R.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",t&&"pl-8",e),...n,children:[r,a.jsxRuntimeExports.jsx(_.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ge.displayName=me?.displayName||"MenubarSubTrigger";const Me=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(xe,{ref:r,className:R.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",e),...t}));Me.displayName=xe?.displayName||"MenubarSubContent";const ve=s.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:n=8,...o},x)=>a.jsxRuntimeExports.jsx(oe,{children:a.jsxRuntimeExports.jsx(se,{ref:x,align:t,alignOffset:r,sideOffset:n,className:R.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md",e),...o})}));ve.displayName=se?.displayName||"MenubarContent";const Re=s.forwardRef(({className:e,inset:t,...r},n)=>a.jsxRuntimeExports.jsx(ie,{ref:n,className:R.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Re.displayName=ie?.displayName||"MenubarItem";const je=s.forwardRef(({className:e,children:t,checked:r,...n},o)=>a.jsxRuntimeExports.jsxs(ce,{ref:o,className:R.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(le,{children:a.jsxRuntimeExports.jsx(_.Check,{className:"h-4 w-4"})})}),t]}));je.displayName=ce?.displayName||"MenubarCheckboxItem";const he=s.forwardRef(({className:e,children:t,...r},n)=>a.jsxRuntimeExports.jsxs(de,{ref:n,className:R.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(le,{children:a.jsxRuntimeExports.jsx(_.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));he.displayName=de?.displayName||"MenubarRadioItem";const Ee=s.forwardRef(({className:e,inset:t,...r},n)=>a.jsxRuntimeExports.jsx(ue,{ref:n,className:R.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Ee.displayName=ue?.displayName||"MenubarLabel";const ye=s.forwardRef(({className:e,...t},r)=>a.jsxRuntimeExports.jsx(pe,{ref:r,className:R.cn("bg-muted -mx-1 my-1 h-px",e),...t}));ye.displayName=pe?.displayName||"MenubarSeparator";const Ne=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:R.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t});Ne.displayname="MenubarShortcut";exports.Menubar=be;exports.MenubarCheckboxItem=je;exports.MenubarContent=ve;exports.MenubarGroup=rr;exports.MenubarItem=Re;exports.MenubarLabel=Ee;exports.MenubarMenu=er;exports.MenubarPortal=tr;exports.MenubarRadioGroup=nr;exports.MenubarRadioItem=he;exports.MenubarSeparator=ye;exports.MenubarShortcut=Ne;exports.MenubarSub=ar;exports.MenubarSubContent=Me;exports.MenubarSubTrigger=ge;exports.MenubarTrigger=fe;
|