react-shadcn-kit 0.2.3 → 0.2.5
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/assets/global.css +1 -1
- package/dist/components/composites/ComponentSearch.d.ts +43 -0
- package/dist/components/composites/action-button.d.ts +16 -0
- package/dist/components/composites/index.d.ts +9 -0
- package/dist/components/composites/index.js +13 -0
- package/dist/components/composites/index.js.map +1 -0
- package/dist/components/composites/sidebar-wrapper.d.ts +27 -0
- package/dist/components/composites/theme-toggle.d.ts +9 -0
- package/dist/components/composites/user-menu.d.ts +18 -0
- package/dist/components/data-table/data-table-column-header.d.ts +7 -0
- package/dist/components/data-table/data-table-faceted-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-pagination.d.ts +6 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +20 -0
- package/dist/components/data-table/data-table-view-options.d.ts +6 -0
- package/dist/components/data-table/data-table.d.ts +30 -0
- package/dist/components/data-table/index.d.ts +6 -0
- package/dist/components/data-table/index.js +15 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/kanban/KanbanBoard.d.ts +2 -0
- package/dist/components/kanban/KanbanCard.d.ts +9 -0
- package/dist/components/kanban/KanbanColumn.d.ts +10 -0
- package/dist/components/kanban/KanbanDialog.d.ts +12 -0
- package/dist/components/kanban/index.d.ts +1 -0
- package/dist/components/kanban/index.js +12 -0
- package/dist/components/kanban/index.js.map +1 -0
- package/dist/components/kanban/kanban-types.d.ts +17 -0
- package/dist/components/kanban/kanban.d.ts +45 -0
- package/dist/components/marketing/hero.d.ts +12 -0
- package/dist/components/marketing/index.d.ts +6 -0
- package/dist/components/marketing/index.js +9 -0
- package/dist/components/marketing/index.js.map +1 -0
- package/dist/components/marketing/social-proof.d.ts +10 -0
- package/dist/components/marketing/value-props.d.ts +14 -0
- package/dist/components/primitives/accordion.d.ts +7 -0
- package/dist/components/primitives/action-button.d.ts +10 -0
- package/dist/components/primitives/alert-dialog.d.ts +14 -0
- package/dist/components/primitives/alert.d.ts +9 -0
- package/dist/components/primitives/aspect-ratio.d.ts +3 -0
- package/dist/components/primitives/avatar.d.ts +6 -0
- package/dist/components/primitives/badge-variants.d.ts +3 -0
- package/dist/components/primitives/badge.d.ts +9 -0
- package/dist/components/primitives/breadcrumb.d.ts +11 -0
- package/dist/components/primitives/button-group-variants.d.ts +3 -0
- package/dist/components/primitives/button-group.d.ts +13 -0
- package/dist/components/primitives/button-variants.d.ts +4 -0
- package/dist/components/primitives/button.d.ts +9 -0
- package/dist/components/primitives/calendar.d.ts +8 -0
- package/dist/components/primitives/card.d.ts +9 -0
- package/dist/components/primitives/carousel.d.ts +19 -0
- package/dist/components/primitives/chart.d.ts +54 -0
- package/dist/components/primitives/chart.js +39 -37
- package/dist/components/primitives/chart.js.map +1 -1
- package/dist/components/primitives/checkbox.d.ts +4 -0
- package/dist/components/primitives/collapsible.d.ts +5 -0
- package/dist/components/primitives/command.d.ts +18 -0
- package/dist/components/primitives/context-menu.d.ts +25 -0
- package/dist/components/primitives/context-menu.js +7 -7
- package/dist/components/primitives/context-menu.js.map +1 -1
- package/dist/components/primitives/custom-button-variants.d.ts +5 -0
- package/dist/components/primitives/custom-button.d.ts +22 -0
- package/dist/components/primitives/dialog.d.ts +15 -0
- package/dist/components/primitives/drawer.d.ts +13 -0
- package/dist/components/primitives/dropdown-menu.d.ts +25 -0
- package/dist/components/primitives/dropdown-menu.js +7 -7
- package/dist/components/primitives/dropdown-menu.js.map +1 -1
- package/dist/components/primitives/empty.d.ts +11 -0
- package/dist/components/primitives/field.d.ts +24 -0
- package/dist/components/primitives/field.js +3 -3
- package/dist/components/primitives/field.js.map +1 -1
- package/dist/components/primitives/form-context.d.ts +23 -0
- package/dist/components/primitives/form.d.ts +11 -0
- package/dist/components/primitives/hover-card.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +116 -0
- package/dist/components/primitives/index.js +345 -0
- package/dist/components/primitives/index.js.map +1 -0
- package/dist/components/primitives/input-group.d.ts +16 -0
- package/dist/components/primitives/input-otp.d.ts +11 -0
- package/dist/components/primitives/input.d.ts +3 -0
- package/dist/components/primitives/item.d.ts +23 -0
- package/dist/components/primitives/kbd.d.ts +3 -0
- package/dist/components/primitives/label.d.ts +4 -0
- package/dist/components/primitives/loading-swap.d.ts +8 -0
- package/dist/components/primitives/menubar.d.ts +26 -0
- package/dist/components/primitives/menubar.js +7 -7
- package/dist/components/primitives/menubar.js.map +1 -1
- package/dist/components/primitives/navigation-menu-variants.d.ts +1 -0
- package/dist/components/primitives/navigation-menu.d.ts +13 -0
- package/dist/components/primitives/pagination.d.ts +13 -0
- package/dist/components/primitives/popover.d.ts +7 -0
- package/dist/components/primitives/progress.d.ts +4 -0
- package/dist/components/primitives/radio-group.d.ts +5 -0
- package/dist/components/primitives/resizable.d.ts +8 -0
- package/dist/components/primitives/resizable.js +6 -6
- package/dist/components/primitives/resizable.js.map +1 -1
- package/dist/components/primitives/scroll-area.d.ts +5 -0
- package/dist/components/primitives/select.d.ts +15 -0
- package/dist/components/primitives/select.js +31 -31
- package/dist/components/primitives/select.js.map +1 -1
- package/dist/components/primitives/separator.d.ts +4 -0
- package/dist/components/primitives/sheet.d.ts +13 -0
- package/dist/components/primitives/sidebar-context.d.ts +12 -0
- package/dist/components/primitives/sidebar-variants.d.ts +4 -0
- package/dist/components/primitives/sidebar.d.ts +56 -0
- package/dist/components/primitives/skeleton.d.ts +2 -0
- package/dist/components/primitives/slider.d.ts +4 -0
- package/dist/components/primitives/slider.js +1 -1
- package/dist/components/primitives/slider.js.map +1 -1
- package/dist/components/primitives/sonner.d.ts +3 -0
- package/dist/components/primitives/spinner.d.ts +2 -0
- package/dist/components/primitives/switch.d.ts +4 -0
- package/dist/components/primitives/table.d.ts +10 -0
- package/dist/components/primitives/tabs.d.ts +7 -0
- package/dist/components/primitives/textarea.d.ts +3 -0
- package/dist/components/primitives/theme-provider.d.ts +3 -0
- package/dist/components/primitives/theme-toggle.d.ts +3 -0
- package/dist/components/primitives/toggle-group.d.ts +9 -0
- package/dist/components/primitives/toggle-variants.d.ts +4 -0
- package/dist/components/primitives/toggle.d.ts +9 -0
- package/dist/components/primitives/tooltip.d.ts +7 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-aria-live.d.ts +22 -0
- package/dist/hooks/use-browser-cache-image.d.ts +4 -0
- package/dist/hooks/use-focus-visible.d.ts +15 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-screen-reader-only.d.ts +14 -0
- package/dist/hooks/use-theme.d.ts +7 -0
- package/dist/index.d.ts +14 -1267
- package/dist/index.js +352 -352
- package/dist/lib/browser-image-cache.d.ts +1 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/index.js +11 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/utils-enhanced.d.ts +27 -0
- package/dist/lib/utils-enhanced.test.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/package.json +45 -34
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { Accordion as o, AccordionContent as t, AccordionItem as a, AccordionTrigger as n } from "./accordion.js";
|
|
2
|
+
import { Alert as p, AlertDescription as u, AlertTitle as l } from "./alert.js";
|
|
3
|
+
import { AlertDialog as d, AlertDialogAction as b, AlertDialogCancel as g, AlertDialogContent as C, AlertDialogDescription as x, AlertDialogFooter as S, AlertDialogHeader as M, AlertDialogOverlay as c, AlertDialogPortal as f, AlertDialogTitle as D, AlertDialogTrigger as T } from "./alert-dialog.js";
|
|
4
|
+
import { AspectRatio as I } from "./aspect-ratio.js";
|
|
5
|
+
import { Avatar as A, AvatarFallback as G, AvatarImage as P } from "./avatar.js";
|
|
6
|
+
import { Badge as v } from "./badge.js";
|
|
7
|
+
import { Breadcrumb as B, BreadcrumbEllipsis as L, BreadcrumbItem as H, BreadcrumbLink as R, BreadcrumbList as y, BreadcrumbPage as k, BreadcrumbSeparator as E } from "./breadcrumb.js";
|
|
8
|
+
import { Button as O } from "./button.js";
|
|
9
|
+
import { ButtonGroup as V, ButtonGroupSeparator as K, ButtonGroupText as U } from "./button-group.js";
|
|
10
|
+
import { Calendar as q, CalendarDayButton as J } from "./calendar.js";
|
|
11
|
+
import { Card as W, CardAction as X, CardContent as Y, CardDescription as Z, CardFooter as _, CardHeader as $, CardTitle as ee } from "./card.js";
|
|
12
|
+
import { Carousel as oe, CarouselContent as te, CarouselItem as ae, CarouselNext as ne, CarouselPrevious as ie } from "./carousel.js";
|
|
13
|
+
import { ChartContainer as ue, ChartLegend as le, ChartLegendContent as me, ChartStyle as de, ChartTooltip as be, ChartTooltipContent as ge } from "./chart.js";
|
|
14
|
+
import { Checkbox as xe } from "./checkbox.js";
|
|
15
|
+
import { Collapsible as Me, CollapsibleContent as ce, CollapsibleTrigger as fe } from "./collapsible.js";
|
|
16
|
+
import { Command as Te, CommandDialog as se, CommandEmpty as Ie, CommandGroup as we, CommandInput as Ae, CommandItem as Ge, CommandList as Pe, CommandSeparator as Fe, CommandShortcut as ve } from "./command.js";
|
|
17
|
+
import { ContextMenu as Be, ContextMenuCheckboxItem as Le, ContextMenuContent as He, ContextMenuGroup as Re, ContextMenuItem as ye, ContextMenuLabel as ke, ContextMenuPortal as Ee, ContextMenuRadioGroup as Ne, ContextMenuRadioItem as Oe, ContextMenuSeparator as ze, ContextMenuShortcut as Ve, ContextMenuSub as Ke, ContextMenuSubContent as Ue, ContextMenuSubTrigger as je, ContextMenuTrigger as qe } from "./context-menu.js";
|
|
18
|
+
import { CustomButton as Qe } from "./custom-button.js";
|
|
19
|
+
import { Dialog as Xe, DialogClose as Ye, DialogContent as Ze, DialogDescription as _e, DialogFooter as $e, DialogHeader as er, DialogOverlay as rr, DialogPortal as or, DialogTitle as tr, DialogTrigger as ar } from "./dialog.js";
|
|
20
|
+
import { Drawer as ir, DrawerClose as pr, DrawerContent as ur, DrawerDescription as lr, DrawerFooter as mr, DrawerHeader as dr, DrawerOverlay as br, DrawerPortal as gr, DrawerTitle as Cr, DrawerTrigger as xr } from "./drawer.js";
|
|
21
|
+
import { DropdownMenu as Mr, DropdownMenuCheckboxItem as cr, DropdownMenuContent as fr, DropdownMenuGroup as Dr, DropdownMenuItem as Tr, DropdownMenuLabel as sr, DropdownMenuPortal as Ir, DropdownMenuRadioGroup as wr, DropdownMenuRadioItem as Ar, DropdownMenuSeparator as Gr, DropdownMenuShortcut as Pr, DropdownMenuSub as Fr, DropdownMenuSubContent as vr, DropdownMenuSubTrigger as hr, DropdownMenuTrigger as Br } from "./dropdown-menu.js";
|
|
22
|
+
import { Empty as Hr, EmptyContent as Rr, EmptyDescription as yr, EmptyHeader as kr, EmptyMedia as Er, EmptyTitle as Nr } from "./empty.js";
|
|
23
|
+
import { Field as zr, FieldContent as Vr, FieldDescription as Kr, FieldError as Ur, FieldGroup as jr, FieldLabel as qr, FieldLegend as Jr, FieldSeparator as Qr, FieldSet as Wr, FieldTitle as Xr } from "./field.js";
|
|
24
|
+
import { Form as Zr, FormControl as _r, FormDescription as $r, FormField as eo, FormItem as ro, FormLabel as oo, FormMessage as to } from "./form.js";
|
|
25
|
+
import { HoverCard as no, HoverCardContent as io, HoverCardTrigger as po } from "./hover-card.js";
|
|
26
|
+
import { Input as lo } from "./input.js";
|
|
27
|
+
import { InputGroup as bo, InputGroupAddon as go, InputGroupButton as Co, InputGroupInput as xo, InputGroupText as So, InputGroupTextarea as Mo } from "./input-group.js";
|
|
28
|
+
import { InputOTP as fo, InputOTPGroup as Do, InputOTPSeparator as To, InputOTPSlot as so } from "./input-otp.js";
|
|
29
|
+
import { Item as wo, ItemActions as Ao, ItemContent as Go, ItemDescription as Po, ItemFooter as Fo, ItemGroup as vo, ItemHeader as ho, ItemMedia as Bo, ItemSeparator as Lo, ItemTitle as Ho } from "./item.js";
|
|
30
|
+
import { Kbd as yo, KbdGroup as ko } from "./kbd.js";
|
|
31
|
+
import { Label as No } from "./label.js";
|
|
32
|
+
import { LoadingSwap as zo } from "./loading-swap.js";
|
|
33
|
+
import { Menubar as Ko, MenubarCheckboxItem as Uo, MenubarContent as jo, MenubarGroup as qo, MenubarItem as Jo, MenubarLabel as Qo, MenubarMenu as Wo, MenubarPortal as Xo, MenubarRadioGroup as Yo, MenubarRadioItem as Zo, MenubarSeparator as _o, MenubarShortcut as $o, MenubarSub as et, MenubarSubContent as rt, MenubarSubTrigger as ot, MenubarTrigger as tt } from "./menubar.js";
|
|
34
|
+
import { NavigationMenu as nt, NavigationMenuContent as it, NavigationMenuIndicator as pt, NavigationMenuItem as ut, NavigationMenuLink as lt, NavigationMenuList as mt, NavigationMenuTrigger as dt, NavigationMenuViewport as bt } from "./navigation-menu.js";
|
|
35
|
+
import { Pagination as Ct, PaginationContent as xt, PaginationEllipsis as St, PaginationItem as Mt, PaginationLink as ct, PaginationNext as ft, PaginationPrevious as Dt } from "./pagination.js";
|
|
36
|
+
import { Popover as st, PopoverAnchor as It, PopoverContent as wt, PopoverTrigger as At } from "./popover.js";
|
|
37
|
+
import { Progress as Pt } from "./progress.js";
|
|
38
|
+
import { RadioGroup as vt, RadioGroupItem as ht } from "./radio-group.js";
|
|
39
|
+
import { ResizableHandle as Lt, ResizablePanel as Ht, ResizablePanelGroup as Rt } from "./resizable.js";
|
|
40
|
+
import { ScrollArea as kt, ScrollBar as Et } from "./scroll-area.js";
|
|
41
|
+
import { Select as Ot, SelectContent as zt, SelectGroup as Vt, SelectItem as Kt, SelectLabel as Ut, SelectScrollDownButton as jt, SelectScrollUpButton as qt, SelectSeparator as Jt, SelectTrigger as Qt, SelectValue as Wt } from "./select.js";
|
|
42
|
+
import { Separator as Yt } from "./separator.js";
|
|
43
|
+
import { Sheet as _t, SheetClose as $t, SheetContent as ea, SheetDescription as ra, SheetFooter as oa, SheetHeader as ta, SheetTitle as aa, SheetTrigger as na } from "./sheet.js";
|
|
44
|
+
import { Sidebar as pa, SidebarContent as ua, SidebarFooter as la, SidebarGroup as ma, SidebarGroupAction as da, SidebarGroupContent as ba, SidebarGroupLabel as ga, SidebarHeader as Ca, SidebarInput as xa, SidebarInset as Sa, SidebarMenu as Ma, SidebarMenuAction as ca, SidebarMenuBadge as fa, SidebarMenuButton as Da, SidebarMenuItem as Ta, SidebarMenuSkeleton as sa, SidebarMenuSub as Ia, SidebarMenuSubButton as wa, SidebarMenuSubItem as Aa, SidebarProvider as Ga, SidebarRail as Pa, SidebarSeparator as Fa, SidebarTrigger as va } from "./sidebar.js";
|
|
45
|
+
import { Skeleton as Ba } from "./skeleton.js";
|
|
46
|
+
import { Slider as Ha } from "./slider.js";
|
|
47
|
+
import { Toaster as ya } from "./sonner.js";
|
|
48
|
+
import { Spinner as Ea } from "./spinner.js";
|
|
49
|
+
import { Switch as Oa } from "./switch.js";
|
|
50
|
+
import { Table as Va, TableBody as Ka, TableCaption as Ua, TableCell as ja, TableFooter as qa, TableHead as Ja, TableHeader as Qa, TableRow as Wa } from "./table.js";
|
|
51
|
+
import { Tabs as Ya, TabsContent as Za, TabsList as _a, TabsTrigger as $a } from "./tabs.js";
|
|
52
|
+
import { Textarea as rn } from "./textarea.js";
|
|
53
|
+
import { ThemeProvider as tn } from "./theme-provider.js";
|
|
54
|
+
import { Toggle as nn } from "./toggle.js";
|
|
55
|
+
import { ToggleGroup as un, ToggleGroupItem as ln } from "./toggle-group.js";
|
|
56
|
+
import { Tooltip as dn, TooltipContent as bn, TooltipProvider as gn, TooltipTrigger as Cn } from "./tooltip.js";
|
|
57
|
+
import { customButtonVariants as Sn } from "./custom-button-variants.js";
|
|
58
|
+
import { useFormField as cn } from "./form-context.js";
|
|
59
|
+
import { useSidebar as Dn } from "./sidebar-context.js";
|
|
60
|
+
export {
|
|
61
|
+
o as Accordion,
|
|
62
|
+
t as AccordionContent,
|
|
63
|
+
a as AccordionItem,
|
|
64
|
+
n as AccordionTrigger,
|
|
65
|
+
p as Alert,
|
|
66
|
+
u as AlertDescription,
|
|
67
|
+
d as AlertDialog,
|
|
68
|
+
b as AlertDialogAction,
|
|
69
|
+
g as AlertDialogCancel,
|
|
70
|
+
C as AlertDialogContent,
|
|
71
|
+
x as AlertDialogDescription,
|
|
72
|
+
S as AlertDialogFooter,
|
|
73
|
+
M as AlertDialogHeader,
|
|
74
|
+
c as AlertDialogOverlay,
|
|
75
|
+
f as AlertDialogPortal,
|
|
76
|
+
D as AlertDialogTitle,
|
|
77
|
+
T as AlertDialogTrigger,
|
|
78
|
+
l as AlertTitle,
|
|
79
|
+
I as AspectRatio,
|
|
80
|
+
A as Avatar,
|
|
81
|
+
G as AvatarFallback,
|
|
82
|
+
P as AvatarImage,
|
|
83
|
+
v as Badge,
|
|
84
|
+
B as Breadcrumb,
|
|
85
|
+
L as BreadcrumbEllipsis,
|
|
86
|
+
H as BreadcrumbItem,
|
|
87
|
+
R as BreadcrumbLink,
|
|
88
|
+
y as BreadcrumbList,
|
|
89
|
+
k as BreadcrumbPage,
|
|
90
|
+
E as BreadcrumbSeparator,
|
|
91
|
+
O as Button,
|
|
92
|
+
V as ButtonGroup,
|
|
93
|
+
K as ButtonGroupSeparator,
|
|
94
|
+
U as ButtonGroupText,
|
|
95
|
+
q as Calendar,
|
|
96
|
+
J as CalendarDayButton,
|
|
97
|
+
W as Card,
|
|
98
|
+
X as CardAction,
|
|
99
|
+
Y as CardContent,
|
|
100
|
+
Z as CardDescription,
|
|
101
|
+
_ as CardFooter,
|
|
102
|
+
$ as CardHeader,
|
|
103
|
+
ee as CardTitle,
|
|
104
|
+
oe as Carousel,
|
|
105
|
+
te as CarouselContent,
|
|
106
|
+
ae as CarouselItem,
|
|
107
|
+
ne as CarouselNext,
|
|
108
|
+
ie as CarouselPrevious,
|
|
109
|
+
ue as ChartContainer,
|
|
110
|
+
le as ChartLegend,
|
|
111
|
+
me as ChartLegendContent,
|
|
112
|
+
de as ChartStyle,
|
|
113
|
+
be as ChartTooltip,
|
|
114
|
+
ge as ChartTooltipContent,
|
|
115
|
+
xe as Checkbox,
|
|
116
|
+
Me as Collapsible,
|
|
117
|
+
ce as CollapsibleContent,
|
|
118
|
+
fe as CollapsibleTrigger,
|
|
119
|
+
Te as Command,
|
|
120
|
+
se as CommandDialog,
|
|
121
|
+
Ie as CommandEmpty,
|
|
122
|
+
we as CommandGroup,
|
|
123
|
+
Ae as CommandInput,
|
|
124
|
+
Ge as CommandItem,
|
|
125
|
+
Pe as CommandList,
|
|
126
|
+
Fe as CommandSeparator,
|
|
127
|
+
ve as CommandShortcut,
|
|
128
|
+
Be as ContextMenu,
|
|
129
|
+
Le as ContextMenuCheckboxItem,
|
|
130
|
+
He as ContextMenuContent,
|
|
131
|
+
Re as ContextMenuGroup,
|
|
132
|
+
ye as ContextMenuItem,
|
|
133
|
+
ke as ContextMenuLabel,
|
|
134
|
+
Ee as ContextMenuPortal,
|
|
135
|
+
Ne as ContextMenuRadioGroup,
|
|
136
|
+
Oe as ContextMenuRadioItem,
|
|
137
|
+
ze as ContextMenuSeparator,
|
|
138
|
+
Ve as ContextMenuShortcut,
|
|
139
|
+
Ke as ContextMenuSub,
|
|
140
|
+
Ue as ContextMenuSubContent,
|
|
141
|
+
je as ContextMenuSubTrigger,
|
|
142
|
+
qe as ContextMenuTrigger,
|
|
143
|
+
Qe as CustomButton,
|
|
144
|
+
Xe as Dialog,
|
|
145
|
+
Ye as DialogClose,
|
|
146
|
+
Ze as DialogContent,
|
|
147
|
+
_e as DialogDescription,
|
|
148
|
+
$e as DialogFooter,
|
|
149
|
+
er as DialogHeader,
|
|
150
|
+
rr as DialogOverlay,
|
|
151
|
+
or as DialogPortal,
|
|
152
|
+
tr as DialogTitle,
|
|
153
|
+
ar as DialogTrigger,
|
|
154
|
+
ir as Drawer,
|
|
155
|
+
pr as DrawerClose,
|
|
156
|
+
ur as DrawerContent,
|
|
157
|
+
lr as DrawerDescription,
|
|
158
|
+
mr as DrawerFooter,
|
|
159
|
+
dr as DrawerHeader,
|
|
160
|
+
br as DrawerOverlay,
|
|
161
|
+
gr as DrawerPortal,
|
|
162
|
+
Cr as DrawerTitle,
|
|
163
|
+
xr as DrawerTrigger,
|
|
164
|
+
Mr as DropdownMenu,
|
|
165
|
+
cr as DropdownMenuCheckboxItem,
|
|
166
|
+
fr as DropdownMenuContent,
|
|
167
|
+
Dr as DropdownMenuGroup,
|
|
168
|
+
Tr as DropdownMenuItem,
|
|
169
|
+
sr as DropdownMenuLabel,
|
|
170
|
+
Ir as DropdownMenuPortal,
|
|
171
|
+
wr as DropdownMenuRadioGroup,
|
|
172
|
+
Ar as DropdownMenuRadioItem,
|
|
173
|
+
Gr as DropdownMenuSeparator,
|
|
174
|
+
Pr as DropdownMenuShortcut,
|
|
175
|
+
Fr as DropdownMenuSub,
|
|
176
|
+
vr as DropdownMenuSubContent,
|
|
177
|
+
hr as DropdownMenuSubTrigger,
|
|
178
|
+
Br as DropdownMenuTrigger,
|
|
179
|
+
Hr as Empty,
|
|
180
|
+
Rr as EmptyContent,
|
|
181
|
+
yr as EmptyDescription,
|
|
182
|
+
kr as EmptyHeader,
|
|
183
|
+
Er as EmptyMedia,
|
|
184
|
+
Nr as EmptyTitle,
|
|
185
|
+
zr as Field,
|
|
186
|
+
Vr as FieldContent,
|
|
187
|
+
Kr as FieldDescription,
|
|
188
|
+
Ur as FieldError,
|
|
189
|
+
jr as FieldGroup,
|
|
190
|
+
qr as FieldLabel,
|
|
191
|
+
Jr as FieldLegend,
|
|
192
|
+
Qr as FieldSeparator,
|
|
193
|
+
Wr as FieldSet,
|
|
194
|
+
Xr as FieldTitle,
|
|
195
|
+
Zr as Form,
|
|
196
|
+
_r as FormControl,
|
|
197
|
+
$r as FormDescription,
|
|
198
|
+
eo as FormField,
|
|
199
|
+
ro as FormItem,
|
|
200
|
+
oo as FormLabel,
|
|
201
|
+
to as FormMessage,
|
|
202
|
+
no as HoverCard,
|
|
203
|
+
io as HoverCardContent,
|
|
204
|
+
po as HoverCardTrigger,
|
|
205
|
+
lo as Input,
|
|
206
|
+
bo as InputGroup,
|
|
207
|
+
go as InputGroupAddon,
|
|
208
|
+
Co as InputGroupButton,
|
|
209
|
+
xo as InputGroupInput,
|
|
210
|
+
So as InputGroupText,
|
|
211
|
+
Mo as InputGroupTextarea,
|
|
212
|
+
fo as InputOTP,
|
|
213
|
+
Do as InputOTPGroup,
|
|
214
|
+
To as InputOTPSeparator,
|
|
215
|
+
so as InputOTPSlot,
|
|
216
|
+
wo as Item,
|
|
217
|
+
Ao as ItemActions,
|
|
218
|
+
Go as ItemContent,
|
|
219
|
+
Po as ItemDescription,
|
|
220
|
+
Fo as ItemFooter,
|
|
221
|
+
vo as ItemGroup,
|
|
222
|
+
ho as ItemHeader,
|
|
223
|
+
Bo as ItemMedia,
|
|
224
|
+
Lo as ItemSeparator,
|
|
225
|
+
Ho as ItemTitle,
|
|
226
|
+
yo as Kbd,
|
|
227
|
+
ko as KbdGroup,
|
|
228
|
+
No as Label,
|
|
229
|
+
zo as LoadingSwap,
|
|
230
|
+
Ko as Menubar,
|
|
231
|
+
Uo as MenubarCheckboxItem,
|
|
232
|
+
jo as MenubarContent,
|
|
233
|
+
qo as MenubarGroup,
|
|
234
|
+
Jo as MenubarItem,
|
|
235
|
+
Qo as MenubarLabel,
|
|
236
|
+
Wo as MenubarMenu,
|
|
237
|
+
Xo as MenubarPortal,
|
|
238
|
+
Yo as MenubarRadioGroup,
|
|
239
|
+
Zo as MenubarRadioItem,
|
|
240
|
+
_o as MenubarSeparator,
|
|
241
|
+
$o as MenubarShortcut,
|
|
242
|
+
et as MenubarSub,
|
|
243
|
+
rt as MenubarSubContent,
|
|
244
|
+
ot as MenubarSubTrigger,
|
|
245
|
+
tt as MenubarTrigger,
|
|
246
|
+
nt as NavigationMenu,
|
|
247
|
+
it as NavigationMenuContent,
|
|
248
|
+
pt as NavigationMenuIndicator,
|
|
249
|
+
ut as NavigationMenuItem,
|
|
250
|
+
lt as NavigationMenuLink,
|
|
251
|
+
mt as NavigationMenuList,
|
|
252
|
+
dt as NavigationMenuTrigger,
|
|
253
|
+
bt as NavigationMenuViewport,
|
|
254
|
+
Ct as Pagination,
|
|
255
|
+
xt as PaginationContent,
|
|
256
|
+
St as PaginationEllipsis,
|
|
257
|
+
Mt as PaginationItem,
|
|
258
|
+
ct as PaginationLink,
|
|
259
|
+
ft as PaginationNext,
|
|
260
|
+
Dt as PaginationPrevious,
|
|
261
|
+
st as Popover,
|
|
262
|
+
It as PopoverAnchor,
|
|
263
|
+
wt as PopoverContent,
|
|
264
|
+
At as PopoverTrigger,
|
|
265
|
+
Pt as Progress,
|
|
266
|
+
vt as RadioGroup,
|
|
267
|
+
ht as RadioGroupItem,
|
|
268
|
+
Lt as ResizableHandle,
|
|
269
|
+
Ht as ResizablePanel,
|
|
270
|
+
Rt as ResizablePanelGroup,
|
|
271
|
+
kt as ScrollArea,
|
|
272
|
+
Et as ScrollBar,
|
|
273
|
+
Ot as Select,
|
|
274
|
+
zt as SelectContent,
|
|
275
|
+
Vt as SelectGroup,
|
|
276
|
+
Kt as SelectItem,
|
|
277
|
+
Ut as SelectLabel,
|
|
278
|
+
jt as SelectScrollDownButton,
|
|
279
|
+
qt as SelectScrollUpButton,
|
|
280
|
+
Jt as SelectSeparator,
|
|
281
|
+
Qt as SelectTrigger,
|
|
282
|
+
Wt as SelectValue,
|
|
283
|
+
Yt as Separator,
|
|
284
|
+
_t as Sheet,
|
|
285
|
+
$t as SheetClose,
|
|
286
|
+
ea as SheetContent,
|
|
287
|
+
ra as SheetDescription,
|
|
288
|
+
oa as SheetFooter,
|
|
289
|
+
ta as SheetHeader,
|
|
290
|
+
aa as SheetTitle,
|
|
291
|
+
na as SheetTrigger,
|
|
292
|
+
pa as Sidebar,
|
|
293
|
+
ua as SidebarContent,
|
|
294
|
+
la as SidebarFooter,
|
|
295
|
+
ma as SidebarGroup,
|
|
296
|
+
da as SidebarGroupAction,
|
|
297
|
+
ba as SidebarGroupContent,
|
|
298
|
+
ga as SidebarGroupLabel,
|
|
299
|
+
Ca as SidebarHeader,
|
|
300
|
+
xa as SidebarInput,
|
|
301
|
+
Sa as SidebarInset,
|
|
302
|
+
Ma as SidebarMenu,
|
|
303
|
+
ca as SidebarMenuAction,
|
|
304
|
+
fa as SidebarMenuBadge,
|
|
305
|
+
Da as SidebarMenuButton,
|
|
306
|
+
Ta as SidebarMenuItem,
|
|
307
|
+
sa as SidebarMenuSkeleton,
|
|
308
|
+
Ia as SidebarMenuSub,
|
|
309
|
+
wa as SidebarMenuSubButton,
|
|
310
|
+
Aa as SidebarMenuSubItem,
|
|
311
|
+
Ga as SidebarProvider,
|
|
312
|
+
Pa as SidebarRail,
|
|
313
|
+
Fa as SidebarSeparator,
|
|
314
|
+
va as SidebarTrigger,
|
|
315
|
+
Ba as Skeleton,
|
|
316
|
+
Ha as Slider,
|
|
317
|
+
Ea as Spinner,
|
|
318
|
+
Oa as Switch,
|
|
319
|
+
Va as Table,
|
|
320
|
+
Ka as TableBody,
|
|
321
|
+
Ua as TableCaption,
|
|
322
|
+
ja as TableCell,
|
|
323
|
+
qa as TableFooter,
|
|
324
|
+
Ja as TableHead,
|
|
325
|
+
Qa as TableHeader,
|
|
326
|
+
Wa as TableRow,
|
|
327
|
+
Ya as Tabs,
|
|
328
|
+
Za as TabsContent,
|
|
329
|
+
_a as TabsList,
|
|
330
|
+
$a as TabsTrigger,
|
|
331
|
+
rn as Textarea,
|
|
332
|
+
tn as ThemeProvider,
|
|
333
|
+
ya as Toaster,
|
|
334
|
+
nn as Toggle,
|
|
335
|
+
un as ToggleGroup,
|
|
336
|
+
ln as ToggleGroupItem,
|
|
337
|
+
dn as Tooltip,
|
|
338
|
+
bn as TooltipContent,
|
|
339
|
+
gn as TooltipProvider,
|
|
340
|
+
Cn as TooltipTrigger,
|
|
341
|
+
Sn as customButtonVariants,
|
|
342
|
+
cn as useFormField,
|
|
343
|
+
Dn as useSidebar
|
|
344
|
+
};
|
|
345
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Button } from '../primitives/button';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
+
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
10
|
+
size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OTPInput } from 'input-otp';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
|
|
4
|
+
containerClassName?: string;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
8
|
+
index: number;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Separator } from '../primitives/separator';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function ItemGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const itemVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
8
|
+
size?: "default" | "sm" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
declare function Item({ className, variant, size, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const itemMediaVariants: (props?: ({
|
|
14
|
+
variant?: "image" | "default" | "icon" | null | undefined;
|
|
15
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
16
|
+
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ItemTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function ItemDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function ItemActions({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function ItemHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function ItemFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface LoadingSwapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
loadingNode?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const LoadingSwap: React.ForwardRefExoticComponent<LoadingSwapProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { LoadingSwap };
|
|
8
|
+
export type { LoadingSwapProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
3
|
+
declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
variant?: "default" | "destructive";
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
|
|
17
|
+
inset?: boolean;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
23
|
+
inset?: boolean;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, };
|
|
@@ -58,7 +58,7 @@ function z({
|
|
|
58
58
|
alignOffset: r,
|
|
59
59
|
sideOffset: s,
|
|
60
60
|
className: o(
|
|
61
|
-
"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-
|
|
61
|
+
"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-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
62
62
|
e
|
|
63
63
|
),
|
|
64
64
|
...i
|
|
@@ -78,7 +78,7 @@ function N({
|
|
|
78
78
|
"data-inset": t,
|
|
79
79
|
"data-variant": r,
|
|
80
80
|
className: o(
|
|
81
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]
|
|
81
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
82
82
|
e
|
|
83
83
|
),
|
|
84
84
|
...s
|
|
@@ -96,7 +96,7 @@ function I({
|
|
|
96
96
|
{
|
|
97
97
|
"data-slot": "menubar-checkbox-item",
|
|
98
98
|
className: o(
|
|
99
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-
|
|
99
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
100
100
|
e
|
|
101
101
|
),
|
|
102
102
|
checked: r,
|
|
@@ -118,7 +118,7 @@ function y({
|
|
|
118
118
|
{
|
|
119
119
|
"data-slot": "menubar-radio-item",
|
|
120
120
|
className: o(
|
|
121
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-
|
|
121
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
122
122
|
e
|
|
123
123
|
),
|
|
124
124
|
...r,
|
|
@@ -139,7 +139,7 @@ function k({
|
|
|
139
139
|
{
|
|
140
140
|
"data-slot": "menubar-label",
|
|
141
141
|
"data-inset": t,
|
|
142
|
-
className: o("px-2 py-1.5 text-sm font-medium data-
|
|
142
|
+
className: o("px-2 py-1.5 text-sm font-medium data-inset:pl-8", e),
|
|
143
143
|
...r
|
|
144
144
|
}
|
|
145
145
|
);
|
|
@@ -182,7 +182,7 @@ function S({
|
|
|
182
182
|
"data-slot": "menubar-sub-trigger",
|
|
183
183
|
"data-inset": t,
|
|
184
184
|
className: o(
|
|
185
|
-
"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 data-
|
|
185
|
+
"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 data-inset:pl-8",
|
|
186
186
|
e
|
|
187
187
|
),
|
|
188
188
|
...s,
|
|
@@ -202,7 +202,7 @@ function R({
|
|
|
202
202
|
{
|
|
203
203
|
"data-slot": "menubar-sub-content",
|
|
204
204
|
className: o(
|
|
205
|
-
"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-
|
|
205
|
+
"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-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
206
206
|
e
|
|
207
207
|
),
|
|
208
208
|
...t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.js","sources":["../../../src/components/primitives/menubar.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>) {\n return (\n <MenubarPrimitive.Root\n data-slot=\"menubar\"\n className={cn(\n \"bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>) {\n return <MenubarPrimitive.Menu data-slot=\"menubar-menu\" {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group data-slot=\"menubar-group\" {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal data-slot=\"menubar-portal\" {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup data-slot=\"menubar-radio-group\" {...props} />;\n}\n\nfunction MenubarTrigger({\n className,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Trigger>) {\n return (\n <MenubarPrimitive.Trigger\n data-slot=\"menubar-trigger\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarContent({\n className,\n align = \"start\",\n alignOffset = -4,\n sideOffset = 8,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Content>) {\n return (\n <MenubarPortal>\n <MenubarPrimitive.Content\n data-slot=\"menubar-content\"\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n \"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\",\n className,\n )}\n {...props}\n />\n </MenubarPortal>\n );\n}\n\nfunction MenubarItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Item> & {\n inset?: boolean;\n variant?: \"default\" | \"destructive\";\n}) {\n return (\n <MenubarPrimitive.Item\n data-slot=\"menubar-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>) {\n return (\n <MenubarPrimitive.CheckboxItem\n data-slot=\"menubar-checkbox-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\nfunction MenubarRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.RadioItem>) {\n return (\n <MenubarPrimitive.RadioItem\n data-slot=\"menubar-radio-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <MenubarPrimitive.Label\n data-slot=\"menubar-label\"\n data-inset={inset}\n className={cn(\"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8\", className)}\n {...props}\n />\n );\n}\n\nfunction MenubarSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Separator>) {\n return (\n <MenubarPrimitive.Separator\n data-slot=\"menubar-separator\"\n className={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction MenubarShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"menubar-shortcut\"\n className={cn(\"text-muted-foreground ml-auto text-xs tracking-widest\", className)}\n {...props}\n />\n );\n}\n\nfunction MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nfunction MenubarSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <MenubarPrimitive.SubTrigger\n data-slot=\"menubar-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"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 data-[inset]:pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n );\n}\n\nfunction MenubarSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.SubContent>) {\n return (\n <MenubarPrimitive.SubContent\n data-slot=\"menubar-sub-content\"\n className={cn(\n \"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\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Menubar,\n MenubarPortal,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarGroup,\n MenubarSeparator,\n MenubarLabel,\n MenubarItem,\n MenubarShortcut,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSub,\n MenubarSubTrigger,\n MenubarSubContent,\n};\n"],"names":["Menubar","className","props","jsx","MenubarPrimitive","cn","MenubarMenu","MenubarGroup","MenubarPortal","MenubarRadioGroup","MenubarTrigger","MenubarContent","align","alignOffset","sideOffset","MenubarItem","inset","variant","MenubarCheckboxItem","children","checked","jsxs","CheckIcon","MenubarRadioItem","CircleIcon","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarSub","MenubarSubTrigger","ChevronRightIcon","MenubarSubContent"],"mappings":";;;;AAMA,SAASA,EAAQ,EAAE,WAAAC,GAAW,GAAGC,KAA6D;AAC5F,SACE,gBAAAC;AAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASI,EAAY,EAAE,GAAGJ,KAA6D;AACrF,2BAAQE,EAAiB,MAAjB,EAAsB,aAAU,gBAAgB,GAAGF,GAAO;AACpE;AAEA,SAASK,EAAa,EAAE,GAAGL,KAA8D;AACvF,2BAAQE,EAAiB,OAAjB,EAAuB,aAAU,iBAAiB,GAAGF,GAAO;AACtE;AAEA,SAASM,EAAc,EAAE,GAAGN,KAA+D;AACzF,2BAAQE,EAAiB,QAAjB,EAAwB,aAAU,kBAAkB,GAAGF,GAAO;AACxE;AAEA,SAASO,EAAkB,EAAE,GAAGP,KAAmE;AACjG,2BAAQE,EAAiB,YAAjB,EAA4B,aAAU,uBAAuB,GAAGF,GAAO;AACjF;AAEA,SAASQ,EAAe;AAAA,EACtB,WAAAT;AAAA,EACA,GAAGC;AACL,GAA0D;AACxD,SACE,gBAAAC;AAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASS,EAAe;AAAA,EAC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GAAO;AAClE;AAEA,SAAS2B,EAAkB;AAAA,EACzB,WAAA5B;AAAA,EACA,OAAAe;AAAA,EACA,UAAAG;AAAA,EACA,GAAGjB;AACL,GAEG;AACD,SACE,gBAAAmB;AAAA,IAACjB,EAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV,cAAYY;AAAA,MACZ,WAAWX;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEH,UAAA;AAAA,QAAAiB;AAAA,QACD,gBAAAhB,EAAC2B,GAAA,EAAiB,WAAU,kBAAA,CAAkB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGpD;AAEA,SAASC,EAAkB;AAAA,EACzB,WAAA9B;AAAA,EACA,GAAGC;AACL,GAA6D;AAC3D,SACE,gBAAAC;AAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
1
|
+
{"version":3,"file":"menubar.js","sources":["../../../src/components/primitives/menubar.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>) {\n return (\n <MenubarPrimitive.Root\n data-slot=\"menubar\"\n className={cn(\n \"bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>) {\n return <MenubarPrimitive.Menu data-slot=\"menubar-menu\" {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group data-slot=\"menubar-group\" {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal data-slot=\"menubar-portal\" {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup data-slot=\"menubar-radio-group\" {...props} />;\n}\n\nfunction MenubarTrigger({\n className,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Trigger>) {\n return (\n <MenubarPrimitive.Trigger\n data-slot=\"menubar-trigger\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarContent({\n className,\n align = \"start\",\n alignOffset = -4,\n sideOffset = 8,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Content>) {\n return (\n <MenubarPortal>\n <MenubarPrimitive.Content\n data-slot=\"menubar-content\"\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n \"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-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md\",\n className,\n )}\n {...props}\n />\n </MenubarPortal>\n );\n}\n\nfunction MenubarItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Item> & {\n inset?: boolean;\n variant?: \"default\" | \"destructive\";\n}) {\n return (\n <MenubarPrimitive.Item\n data-slot=\"menubar-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction MenubarCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>) {\n return (\n <MenubarPrimitive.CheckboxItem\n data-slot=\"menubar-checkbox-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\nfunction MenubarRadioItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.RadioItem>) {\n return (\n <MenubarPrimitive.RadioItem\n data-slot=\"menubar-radio-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <MenubarPrimitive.Label\n data-slot=\"menubar-label\"\n data-inset={inset}\n className={cn(\"px-2 py-1.5 text-sm font-medium data-inset:pl-8\", className)}\n {...props}\n />\n );\n}\n\nfunction MenubarSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Separator>) {\n return (\n <MenubarPrimitive.Separator\n data-slot=\"menubar-separator\"\n className={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction MenubarShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"menubar-shortcut\"\n className={cn(\"text-muted-foreground ml-auto text-xs tracking-widest\", className)}\n {...props}\n />\n );\n}\n\nfunction MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nfunction MenubarSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <MenubarPrimitive.SubTrigger\n data-slot=\"menubar-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"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 data-inset:pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n );\n}\n\nfunction MenubarSubContent({\n className,\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.SubContent>) {\n return (\n <MenubarPrimitive.SubContent\n data-slot=\"menubar-sub-content\"\n className={cn(\n \"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-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Menubar,\n MenubarPortal,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarGroup,\n MenubarSeparator,\n MenubarLabel,\n MenubarItem,\n MenubarShortcut,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSub,\n MenubarSubTrigger,\n MenubarSubContent,\n};\n"],"names":["Menubar","className","props","jsx","MenubarPrimitive","cn","MenubarMenu","MenubarGroup","MenubarPortal","MenubarRadioGroup","MenubarTrigger","MenubarContent","align","alignOffset","sideOffset","MenubarItem","inset","variant","MenubarCheckboxItem","children","checked","jsxs","CheckIcon","MenubarRadioItem","CircleIcon","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarSub","MenubarSubTrigger","ChevronRightIcon","MenubarSubContent"],"mappings":";;;;AAMA,SAASA,EAAQ,EAAE,WAAAC,GAAW,GAAGC,KAA6D;AAC5F,SACE,gBAAAC;AAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASI,EAAY,EAAE,GAAGJ,KAA6D;AACrF,2BAAQE,EAAiB,MAAjB,EAAsB,aAAU,gBAAgB,GAAGF,GAAO;AACpE;A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;AAAA,EAAA;AAGV;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const navigationMenuTriggerStyle: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
3
|
+
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
4
|
+
viewport?: boolean;
|
|
5
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
7
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
8
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
|
+
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Button } from '../primitives/button';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
type PaginationLinkProps = {
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
|
9
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3
|
+
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Progress };
|