@gv-tech/ui-web 2.27.2 → 2.28.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/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +42 -42
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +35 -27
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/support-fab.tsx +24 -3
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const ee=require("./utils-ChMUqofy.js"),e=require("./accordion-DdSOiVyo.js"),t=require("./alert-dialog-B7zX3gJX.js"),te=require("./aspect-ratio-QD1ZXP2B.js"),n=require("./avatar-ki_M47qG.js"),r=require("./checkbox-BLgY82mB.js"),i=require("./context-menu-DQ7XuuG5.js"),a=require("./dropdown-menu-BoJvZ3Fj.js"),o=require("./label-BXMSoyyu.js"),s=require("./hover-card-CK5SjVLL.js"),c=require("./menubar-DPxokWFI.js"),l=require("./navigation-menu-2yE2MUu-.js"),u=require("./popover-D1AO-E8p.js"),ne=require("./progress-ShXZwOfj.js"),d=require("./radio-group-DAEi5vW_.js"),f=require("./scroll-area-Cqqinhxf.js"),p=require("./select-DdUveoSA.js"),m=require("./separator-DBjErwHf.js"),re=require("./slider-w05gD_Ix.js"),h=require("./switch-X2WBJsUu.js"),g=require("./tabs-DzvgrVzk.js"),_=require("./toast-1keyrzem.js"),v=require("./toggle-BGkq5XDM.js"),y=require("./toggle-group-D7hR4BT2.js"),b=require("./tooltip-CAIbshMk.js"),x=require("./alert.cjs"),S=require("./button.cjs"),C=require("./badge.cjs"),w=require("./breadcrumb.cjs"),T=require("./calendar-D9sapvfY.js"),E=require("./card.cjs"),D=require("./carousel-6oFHLN7R.js"),O=require("./chart.cjs"),k=require("./collapsible.cjs"),A=require("./command-DCrPL1iW.js"),j=require("./dialog.cjs"),ie=require("./input.cjs"),ae=require("./textarea.cjs"),M=require("./input-group.cjs"),N=require("./drawer.cjs"),P=require("./form.cjs"),F=require("./pagination.cjs"),I=require("./resizable-Cv-mKMKP.js"),L=require("./scroll-to-top.cjs"),oe=require("./support-fab.cjs"),R=require("./search.cjs"),z=require("./sheet.cjs"),se=require("./skeleton.cjs"),ce=require("./sonner.cjs"),B=require("./table.cjs"),V=require("./text.cjs"),le=require("./theme-provider.cjs"),H=require("./theme-toggle-C2Y4bIM3.js"),U=require("./toaster-DfDb2-aI.js"),ue=require("./table-of-contents.cjs"),W=require("./button-group.cjs"),G=require("./direction.cjs"),K=require("./empty.cjs"),de=require("./spinner.cjs"),q=require("./field.cjs"),J=require("./native-select.cjs"),Y=require("./kbd.cjs"),X=require("./item.cjs"),Z=require("./combobox-6qNx9Wbb.js"),Q=require("./input-otp-BibboKMt.js"),$=require("./sidebar-DIW-1cin.js");exports.Accordion=e.t,exports.AccordionContent=e.n,exports.AccordionItem=e.r,exports.AccordionTrigger=e.i,exports.Alert=x.Alert,exports.AlertDescription=x.AlertDescription,exports.AlertDialog=t.t,exports.AlertDialogAction=t.n,exports.AlertDialogCancel=t.r,exports.AlertDialogContent=t.i,exports.AlertDialogDescription=t.a,exports.AlertDialogFooter=t.o,exports.AlertDialogHeader=t.s,exports.AlertDialogOverlay=t.l,exports.AlertDialogPortal=t.u,exports.AlertDialogTitle=t.d,exports.AlertDialogTrigger=t.f,exports.AlertTitle=x.AlertTitle,exports.AspectRatio=te.t,exports.Avatar=n.t,exports.AvatarFallback=n.r,exports.AvatarImage=n.o,exports.Badge=C.Badge,exports.Breadcrumb=w.Breadcrumb,exports.BreadcrumbEllipsis=w.BreadcrumbEllipsis,exports.BreadcrumbItem=w.BreadcrumbItem,exports.BreadcrumbLink=w.BreadcrumbLink,exports.BreadcrumbList=w.BreadcrumbList,exports.BreadcrumbPage=w.BreadcrumbPage,exports.BreadcrumbSeparator=w.BreadcrumbSeparator,exports.Button=S.Button,exports.ButtonGroup=W.ButtonGroup,exports.ButtonGroupSeparator=W.ButtonGroupSeparator,exports.ButtonGroupText=W.ButtonGroupText,exports.Calendar=T.t,exports.CalendarDayButton=T.n,exports.Card=E.Card,exports.CardContent=E.CardContent,exports.CardDescription=E.CardDescription,exports.CardFooter=E.CardFooter,exports.CardHeader=E.CardHeader,exports.CardTitle=E.CardTitle,exports.Carousel=D.t,exports.CarouselContent=D.n,exports.CarouselItem=D.r,exports.CarouselNext=D.i,exports.CarouselPrevious=D.a,exports.ChartContainer=O.ChartContainer,exports.ChartLegend=O.ChartLegend,exports.ChartLegendContent=O.ChartLegendContent,exports.ChartStyle=O.ChartStyle,exports.ChartTooltip=O.ChartTooltip,exports.ChartTooltipContent=O.ChartTooltipContent,exports.Checkbox=r.t,exports.Collapsible=k.Collapsible,exports.CollapsibleContent=k.CollapsibleContent,exports.CollapsibleTrigger=k.CollapsibleTrigger,exports.Combobox=Z.t,exports.ComboboxChip=Z.n,exports.ComboboxChips=Z.r,exports.ComboboxChipsInput=Z.i,exports.ComboboxCollection=Z.a,exports.ComboboxContent=Z.o,exports.ComboboxEmpty=Z.s,exports.ComboboxGroup=Z.c,exports.ComboboxInput=Z.l,exports.ComboboxItem=Z.u,exports.ComboboxLabel=Z.d,exports.ComboboxList=Z.f,exports.ComboboxSeparator=Z.p,exports.ComboboxTrigger=Z.m,exports.ComboboxValue=Z.h,exports.Command=A.t,exports.CommandDialog=A.n,exports.CommandEmpty=A.r,exports.CommandGroup=A.i,exports.CommandInput=A.a,exports.CommandItem=A.o,exports.CommandList=A.s,exports.CommandSeparator=A.c,exports.CommandShortcut=A.l,exports.ContextMenu=i.t,exports.ContextMenuCheckboxItem=i.n,exports.ContextMenuContent=i.r,exports.ContextMenuGroup=i.i,exports.ContextMenuItem=i.a,exports.ContextMenuLabel=i.o,exports.ContextMenuPortal=i.s,exports.ContextMenuRadioGroup=i.c,exports.ContextMenuRadioItem=i.l,exports.ContextMenuSeparator=i.u,exports.ContextMenuShortcut=i.d,exports.ContextMenuSub=i.f,exports.ContextMenuSubContent=i.p,exports.ContextMenuSubTrigger=i.m,exports.ContextMenuTrigger=i.h,exports.Dialog=j.Dialog,exports.DialogClose=j.DialogClose,exports.DialogContent=j.DialogContent,exports.DialogDescription=j.DialogDescription,exports.DialogFooter=j.DialogFooter,exports.DialogHeader=j.DialogHeader,exports.DialogOverlay=j.DialogOverlay,exports.DialogPortal=j.DialogPortal,exports.DialogTitle=j.DialogTitle,exports.DialogTrigger=j.DialogTrigger,exports.DirectionProvider=G.DirectionProvider,exports.Drawer=N.Drawer,exports.DrawerClose=N.DrawerClose,exports.DrawerContent=N.DrawerContent,exports.DrawerDescription=N.DrawerDescription,exports.DrawerFooter=N.DrawerFooter,exports.DrawerHeader=N.DrawerHeader,exports.DrawerOverlay=N.DrawerOverlay,exports.DrawerPortal=N.DrawerPortal,exports.DrawerTitle=N.DrawerTitle,exports.DrawerTrigger=N.DrawerTrigger,exports.DropdownMenu=a.t,exports.DropdownMenuCheckboxItem=a.n,exports.DropdownMenuContent=a.r,exports.DropdownMenuGroup=a.i,exports.DropdownMenuItem=a.a,exports.DropdownMenuLabel=a.o,exports.DropdownMenuPortal=a.s,exports.DropdownMenuRadioGroup=a.c,exports.DropdownMenuRadioItem=a.l,exports.DropdownMenuSeparator=a.u,exports.DropdownMenuShortcut=a.d,exports.DropdownMenuSub=a.f,exports.DropdownMenuSubContent=a.p,exports.DropdownMenuSubTrigger=a.m,exports.DropdownMenuTrigger=a.h,exports.Empty=K.Empty,exports.EmptyContent=K.EmptyContent,exports.EmptyDescription=K.EmptyDescription,exports.EmptyHeader=K.EmptyHeader,exports.EmptyMedia=K.EmptyMedia,exports.EmptyTitle=K.EmptyTitle,exports.Field=q.Field,exports.FieldContent=q.FieldContent,exports.FieldDescription=q.FieldDescription,exports.FieldError=q.FieldError,exports.FieldGroup=q.FieldGroup,exports.FieldLabel=q.FieldLabel,exports.FieldLegend=q.FieldLegend,exports.FieldSeparator=q.FieldSeparator,exports.FieldSet=q.FieldSet,exports.FieldTitle=q.FieldTitle,exports.Form=P.Form,exports.FormControl=P.FormControl,exports.FormDescription=P.FormDescription,exports.FormField=P.FormField,exports.FormItem=P.FormItem,exports.FormLabel=P.FormLabel,exports.FormMessage=P.FormMessage,exports.HoverCard=s.t,exports.HoverCardContent=s.n,exports.HoverCardTrigger=s.r,exports.Input=ie.Input,exports.InputGroup=M.InputGroup,exports.InputGroupAddon=M.InputGroupAddon,exports.InputGroupButton=M.InputGroupButton,exports.InputGroupInput=M.InputGroupInput,exports.InputGroupText=M.InputGroupText,exports.InputGroupTextarea=M.InputGroupTextarea,exports.InputOTP=Q.t,exports.InputOTPGroup=Q.n,exports.InputOTPSeparator=Q.r,exports.InputOTPSlot=Q.i,exports.Item=X.Item,exports.ItemActions=X.ItemActions,exports.ItemContent=X.ItemContent,exports.ItemDescription=X.ItemDescription,exports.ItemFooter=X.ItemFooter,exports.ItemGroup=X.ItemGroup,exports.ItemHeader=X.ItemHeader,exports.ItemMedia=X.ItemMedia,exports.ItemSeparator=X.ItemSeparator,exports.ItemTitle=X.ItemTitle,exports.Kbd=Y.Kbd,exports.KbdGroup=Y.KbdGroup,exports.Label=o.t,exports.Menubar=c.t,exports.MenubarCheckboxItem=c.n,exports.MenubarContent=c.r,exports.MenubarGroup=c.i,exports.MenubarItem=c.a,exports.MenubarLabel=c.o,exports.MenubarMenu=c.s,exports.MenubarPortal=c.c,exports.MenubarRadioGroup=c.l,exports.MenubarRadioItem=c.u,exports.MenubarSeparator=c.d,exports.MenubarShortcut=c.f,exports.MenubarSub=c.p,exports.MenubarSubContent=c.m,exports.MenubarSubTrigger=c.h,exports.MenubarTrigger=c.g,exports.NativeSelect=J.NativeSelect,exports.NativeSelectOptGroup=J.NativeSelectOptGroup,exports.NativeSelectOption=J.NativeSelectOption,exports.NavigationMenu=l.t,exports.NavigationMenuContent=l.n,exports.NavigationMenuIndicator=l.r,exports.NavigationMenuItem=l.i,exports.NavigationMenuLink=l.a,exports.NavigationMenuList=l.o,exports.NavigationMenuTrigger=l.s,exports.NavigationMenuViewport=l.c,exports.Pagination=F.Pagination,exports.PaginationContent=F.PaginationContent,exports.PaginationEllipsis=F.PaginationEllipsis,exports.PaginationItem=F.PaginationItem,exports.PaginationLink=F.PaginationLink,exports.PaginationNext=F.PaginationNext,exports.PaginationPrevious=F.PaginationPrevious,exports.Popover=u.t,exports.PopoverAnchor=u.n,exports.PopoverContent=u.r,exports.PopoverTrigger=u.s,exports.Progress=ne.t,exports.RadioGroup=d.t,exports.RadioGroupItem=d.n,exports.ResizableHandle=I.t,exports.ResizablePanel=I.n,exports.ResizablePanelGroup=I.r,exports.ScrollArea=f.t,exports.ScrollBar=f.n,exports.ScrollToTop=L.ScrollToTop,exports.Search=R.Search,exports.SearchTrigger=R.SearchTrigger,exports.Select=p.t,exports.SelectContent=p.n,exports.SelectGroup=p.r,exports.SelectItem=p.i,exports.SelectLabel=p.a,exports.SelectScrollDownButton=p.o,exports.SelectScrollUpButton=p.s,exports.SelectSeparator=p.c,exports.SelectTrigger=p.l,exports.SelectValue=p.u,exports.Separator=m.t,exports.Sheet=z.Sheet,exports.SheetClose=z.SheetClose,exports.SheetContent=z.SheetContent,exports.SheetDescription=z.SheetDescription,exports.SheetFooter=z.SheetFooter,exports.SheetHeader=z.SheetHeader,exports.SheetTitle=z.SheetTitle,exports.SheetTrigger=z.SheetTrigger,exports.Sidebar=$.t,exports.SidebarContent=$.n,exports.SidebarFooter=$.r,exports.SidebarGroup=$.i,exports.SidebarGroupAction=$.a,exports.SidebarGroupContent=$.o,exports.SidebarGroupLabel=$.s,exports.SidebarHeader=$.c,exports.SidebarInput=$.l,exports.SidebarInset=$.u,exports.SidebarMenu=$.d,exports.SidebarMenuAction=$.f,exports.SidebarMenuBadge=$.p,exports.SidebarMenuButton=$.m,exports.SidebarMenuItem=$.h,exports.SidebarMenuSkeleton=$.g,exports.SidebarMenuSub=$._,exports.SidebarMenuSubButton=$.v,exports.SidebarMenuSubItem=$.y,exports.SidebarProvider=$.b,exports.SidebarRail=$.x,exports.SidebarSeparator=$.S,exports.SidebarTrigger=$.C,exports.Skeleton=se.Skeleton,exports.Slider=re.t,exports.SonnerToaster=ce.Toaster,exports.Spinner=de.Spinner,exports.SupportFab=oe.SupportFab,exports.Switch=h.t,exports.Table=B.Table,exports.TableBody=B.TableBody,exports.TableCaption=B.TableCaption,exports.TableCell=B.TableCell,exports.TableFooter=B.TableFooter,exports.TableHead=B.TableHead,exports.TableHeader=B.TableHeader,exports.TableOfContents=ue.TableOfContents,exports.TableRow=B.TableRow,exports.Tabs=g.t,exports.TabsContent=g.n,exports.TabsList=g.r,exports.TabsTrigger=g.i,exports.Text=V.Text,exports.Textarea=ae.Textarea,exports.ThemeProvider=le.ThemeProvider,exports.ThemeToggle=H.t,exports.Toast=_.t,exports.ToastAction=_.n,exports.ToastClose=_.r,exports.ToastDescription=_.i,exports.ToastProvider=_.a,exports.ToastTitle=_.o,exports.ToastViewport=_.s,exports.Toaster=U.t,exports.Toggle=v.t,exports.ToggleGroup=y.t,exports.ToggleGroupItem=y.n,exports.Tooltip=b.t,exports.TooltipContent=b.n,exports.TooltipProvider=b.r,exports.TooltipTrigger=b.i,exports.badgeVariants=C.badgeVariants,exports.buttonGroupVariants=W.buttonGroupVariants,exports.buttonVariants=S.buttonVariants,exports.cn=ee.t,exports.navigationMenuTriggerStyle=l.l,exports.textVariants=V.textVariants,exports.toast=U.n,exports.toggleVariants=v.n,exports.useComboboxAnchor=Z.g,exports.useDirection=G.useDirection,exports.useFormField=P.useFormField,exports.useSidebar=$.w,exports.useTheme=H.n,exports.useToast=U.r;
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const ee=require("./utils-ChMUqofy.js"),e=require("./accordion-DdSOiVyo.js"),t=require("./alert-dialog-B7zX3gJX.js"),te=require("./aspect-ratio-QD1ZXP2B.js"),n=require("./avatar-ki_M47qG.js"),r=require("./checkbox-BLgY82mB.js"),i=require("./context-menu-DQ7XuuG5.js"),a=require("./dropdown-menu-BoJvZ3Fj.js"),ne=require("./label-BXMSoyyu.js"),o=require("./hover-card-CK5SjVLL.js"),s=require("./menubar-DPxokWFI.js"),c=require("./navigation-menu-2yE2MUu-.js"),l=require("./popover-D1AO-E8p.js"),re=require("./progress-ShXZwOfj.js"),u=require("./radio-group-DAEi5vW_.js"),d=require("./scroll-area-Cqqinhxf.js"),f=require("./select-DdUveoSA.js"),p=require("./separator-DBjErwHf.js"),m=require("./slider-w05gD_Ix.js"),ie=require("./switch-X2WBJsUu.js"),h=require("./tabs-DzvgrVzk.js"),g=require("./toast-1keyrzem.js"),_=require("./toggle-BGkq5XDM.js"),v=require("./toggle-group-D7hR4BT2.js"),y=require("./tooltip-CAIbshMk.js"),b=require("./alert.cjs"),x=require("./button.cjs"),S=require("./badge.cjs"),C=require("./breadcrumb.cjs"),w=require("./calendar-D9sapvfY.js"),T=require("./card.cjs"),E=require("./carousel-6oFHLN7R.js"),D=require("./chart.cjs"),O=require("./collapsible.cjs"),k=require("./command-DCrPL1iW.js"),A=require("./dialog.cjs"),ae=require("./input.cjs"),oe=require("./textarea.cjs"),j=require("./input-group.cjs"),M=require("./drawer.cjs"),N=require("./form.cjs"),P=require("./pagination.cjs"),F=require("./resizable-Cv-mKMKP.js"),se=require("./scroll-to-top.cjs"),ce=require("./support-fab.cjs"),I=require("./search.cjs"),L=require("./sheet.cjs"),le=require("./skeleton.cjs"),R=require("./sonner.cjs"),z=require("./table.cjs"),B=require("./text.cjs"),V=require("./theme-provider.cjs"),H=require("./theme-toggle-C2Y4bIM3.js"),U=require("./toaster-DfDb2-aI.js"),ue=require("./table-of-contents.cjs"),W=require("./button-group.cjs"),G=require("./direction.cjs"),K=require("./empty.cjs"),de=require("./spinner.cjs"),q=require("./field.cjs"),J=require("./native-select.cjs"),Y=require("./kbd.cjs"),X=require("./item.cjs"),Z=require("./combobox-6qNx9Wbb.js"),Q=require("./input-otp-BibboKMt.js"),$=require("./sidebar-DIW-1cin.js");exports.Accordion=e.t,exports.AccordionContent=e.n,exports.AccordionItem=e.r,exports.AccordionTrigger=e.i,exports.Alert=b.Alert,exports.AlertAction=b.AlertAction,exports.AlertDescription=b.AlertDescription,exports.AlertDialog=t.t,exports.AlertDialogAction=t.n,exports.AlertDialogCancel=t.r,exports.AlertDialogContent=t.i,exports.AlertDialogDescription=t.a,exports.AlertDialogFooter=t.o,exports.AlertDialogHeader=t.s,exports.AlertDialogOverlay=t.l,exports.AlertDialogPortal=t.u,exports.AlertDialogTitle=t.d,exports.AlertDialogTrigger=t.f,exports.AlertTitle=b.AlertTitle,exports.AspectRatio=te.t,exports.Avatar=n.t,exports.AvatarFallback=n.r,exports.AvatarImage=n.o,exports.Badge=S.Badge,exports.Breadcrumb=C.Breadcrumb,exports.BreadcrumbEllipsis=C.BreadcrumbEllipsis,exports.BreadcrumbItem=C.BreadcrumbItem,exports.BreadcrumbLink=C.BreadcrumbLink,exports.BreadcrumbList=C.BreadcrumbList,exports.BreadcrumbPage=C.BreadcrumbPage,exports.BreadcrumbSeparator=C.BreadcrumbSeparator,exports.Button=x.Button,exports.ButtonGroup=W.ButtonGroup,exports.ButtonGroupSeparator=W.ButtonGroupSeparator,exports.ButtonGroupText=W.ButtonGroupText,exports.Calendar=w.t,exports.CalendarDayButton=w.n,exports.Card=T.Card,exports.CardContent=T.CardContent,exports.CardDescription=T.CardDescription,exports.CardFooter=T.CardFooter,exports.CardHeader=T.CardHeader,exports.CardTitle=T.CardTitle,exports.Carousel=E.t,exports.CarouselContent=E.n,exports.CarouselItem=E.r,exports.CarouselNext=E.i,exports.CarouselPrevious=E.a,exports.ChartContainer=D.ChartContainer,exports.ChartLegend=D.ChartLegend,exports.ChartLegendContent=D.ChartLegendContent,exports.ChartStyle=D.ChartStyle,exports.ChartTooltip=D.ChartTooltip,exports.ChartTooltipContent=D.ChartTooltipContent,exports.Checkbox=r.t,exports.Collapsible=O.Collapsible,exports.CollapsibleContent=O.CollapsibleContent,exports.CollapsibleTrigger=O.CollapsibleTrigger,exports.Combobox=Z.t,exports.ComboboxChip=Z.n,exports.ComboboxChips=Z.r,exports.ComboboxChipsInput=Z.i,exports.ComboboxCollection=Z.a,exports.ComboboxContent=Z.o,exports.ComboboxEmpty=Z.s,exports.ComboboxGroup=Z.c,exports.ComboboxInput=Z.l,exports.ComboboxItem=Z.u,exports.ComboboxLabel=Z.d,exports.ComboboxList=Z.f,exports.ComboboxSeparator=Z.p,exports.ComboboxTrigger=Z.m,exports.ComboboxValue=Z.h,exports.Command=k.t,exports.CommandDialog=k.n,exports.CommandEmpty=k.r,exports.CommandGroup=k.i,exports.CommandInput=k.a,exports.CommandItem=k.o,exports.CommandList=k.s,exports.CommandSeparator=k.c,exports.CommandShortcut=k.l,exports.ContextMenu=i.t,exports.ContextMenuCheckboxItem=i.n,exports.ContextMenuContent=i.r,exports.ContextMenuGroup=i.i,exports.ContextMenuItem=i.a,exports.ContextMenuLabel=i.o,exports.ContextMenuPortal=i.s,exports.ContextMenuRadioGroup=i.c,exports.ContextMenuRadioItem=i.l,exports.ContextMenuSeparator=i.u,exports.ContextMenuShortcut=i.d,exports.ContextMenuSub=i.f,exports.ContextMenuSubContent=i.p,exports.ContextMenuSubTrigger=i.m,exports.ContextMenuTrigger=i.h,exports.Dialog=A.Dialog,exports.DialogClose=A.DialogClose,exports.DialogContent=A.DialogContent,exports.DialogDescription=A.DialogDescription,exports.DialogFooter=A.DialogFooter,exports.DialogHeader=A.DialogHeader,exports.DialogOverlay=A.DialogOverlay,exports.DialogPortal=A.DialogPortal,exports.DialogTitle=A.DialogTitle,exports.DialogTrigger=A.DialogTrigger,exports.DirectionProvider=G.DirectionProvider,exports.Drawer=M.Drawer,exports.DrawerClose=M.DrawerClose,exports.DrawerContent=M.DrawerContent,exports.DrawerDescription=M.DrawerDescription,exports.DrawerFooter=M.DrawerFooter,exports.DrawerHeader=M.DrawerHeader,exports.DrawerOverlay=M.DrawerOverlay,exports.DrawerPortal=M.DrawerPortal,exports.DrawerTitle=M.DrawerTitle,exports.DrawerTrigger=M.DrawerTrigger,exports.DropdownMenu=a.t,exports.DropdownMenuCheckboxItem=a.n,exports.DropdownMenuContent=a.r,exports.DropdownMenuGroup=a.i,exports.DropdownMenuItem=a.a,exports.DropdownMenuLabel=a.o,exports.DropdownMenuPortal=a.s,exports.DropdownMenuRadioGroup=a.c,exports.DropdownMenuRadioItem=a.l,exports.DropdownMenuSeparator=a.u,exports.DropdownMenuShortcut=a.d,exports.DropdownMenuSub=a.f,exports.DropdownMenuSubContent=a.p,exports.DropdownMenuSubTrigger=a.m,exports.DropdownMenuTrigger=a.h,exports.Empty=K.Empty,exports.EmptyContent=K.EmptyContent,exports.EmptyDescription=K.EmptyDescription,exports.EmptyHeader=K.EmptyHeader,exports.EmptyMedia=K.EmptyMedia,exports.EmptyTitle=K.EmptyTitle,exports.Field=q.Field,exports.FieldContent=q.FieldContent,exports.FieldDescription=q.FieldDescription,exports.FieldError=q.FieldError,exports.FieldGroup=q.FieldGroup,exports.FieldLabel=q.FieldLabel,exports.FieldLegend=q.FieldLegend,exports.FieldSeparator=q.FieldSeparator,exports.FieldSet=q.FieldSet,exports.FieldTitle=q.FieldTitle,exports.Form=N.Form,exports.FormControl=N.FormControl,exports.FormDescription=N.FormDescription,exports.FormField=N.FormField,exports.FormItem=N.FormItem,exports.FormLabel=N.FormLabel,exports.FormMessage=N.FormMessage,exports.HoverCard=o.t,exports.HoverCardContent=o.n,exports.HoverCardTrigger=o.r,exports.Input=ae.Input,exports.InputGroup=j.InputGroup,exports.InputGroupAddon=j.InputGroupAddon,exports.InputGroupButton=j.InputGroupButton,exports.InputGroupInput=j.InputGroupInput,exports.InputGroupText=j.InputGroupText,exports.InputGroupTextarea=j.InputGroupTextarea,exports.InputOTP=Q.t,exports.InputOTPGroup=Q.n,exports.InputOTPSeparator=Q.r,exports.InputOTPSlot=Q.i,exports.Item=X.Item,exports.ItemActions=X.ItemActions,exports.ItemContent=X.ItemContent,exports.ItemDescription=X.ItemDescription,exports.ItemFooter=X.ItemFooter,exports.ItemGroup=X.ItemGroup,exports.ItemHeader=X.ItemHeader,exports.ItemMedia=X.ItemMedia,exports.ItemSeparator=X.ItemSeparator,exports.ItemTitle=X.ItemTitle,exports.Kbd=Y.Kbd,exports.KbdGroup=Y.KbdGroup,exports.Label=ne.t,exports.Menubar=s.t,exports.MenubarCheckboxItem=s.n,exports.MenubarContent=s.r,exports.MenubarGroup=s.i,exports.MenubarItem=s.a,exports.MenubarLabel=s.o,exports.MenubarMenu=s.s,exports.MenubarPortal=s.c,exports.MenubarRadioGroup=s.l,exports.MenubarRadioItem=s.u,exports.MenubarSeparator=s.d,exports.MenubarShortcut=s.f,exports.MenubarSub=s.p,exports.MenubarSubContent=s.m,exports.MenubarSubTrigger=s.h,exports.MenubarTrigger=s.g,exports.NativeSelect=J.NativeSelect,exports.NativeSelectOptGroup=J.NativeSelectOptGroup,exports.NativeSelectOption=J.NativeSelectOption,exports.NavigationMenu=c.t,exports.NavigationMenuContent=c.n,exports.NavigationMenuIndicator=c.r,exports.NavigationMenuItem=c.i,exports.NavigationMenuLink=c.a,exports.NavigationMenuList=c.o,exports.NavigationMenuTrigger=c.s,exports.NavigationMenuViewport=c.c,exports.Pagination=P.Pagination,exports.PaginationContent=P.PaginationContent,exports.PaginationEllipsis=P.PaginationEllipsis,exports.PaginationItem=P.PaginationItem,exports.PaginationLink=P.PaginationLink,exports.PaginationNext=P.PaginationNext,exports.PaginationPrevious=P.PaginationPrevious,exports.Popover=l.t,exports.PopoverAnchor=l.n,exports.PopoverContent=l.r,exports.PopoverTrigger=l.s,exports.Progress=re.t,exports.RadioGroup=u.t,exports.RadioGroupItem=u.n,exports.ResizableHandle=F.t,exports.ResizablePanel=F.n,exports.ResizablePanelGroup=F.r,exports.ScrollArea=d.t,exports.ScrollBar=d.n,exports.ScrollToTop=se.ScrollToTop,exports.Search=I.Search,exports.SearchTrigger=I.SearchTrigger,exports.Select=f.t,exports.SelectContent=f.n,exports.SelectGroup=f.r,exports.SelectItem=f.i,exports.SelectLabel=f.a,exports.SelectScrollDownButton=f.o,exports.SelectScrollUpButton=f.s,exports.SelectSeparator=f.c,exports.SelectTrigger=f.l,exports.SelectValue=f.u,exports.Separator=p.t,exports.Sheet=L.Sheet,exports.SheetClose=L.SheetClose,exports.SheetContent=L.SheetContent,exports.SheetDescription=L.SheetDescription,exports.SheetFooter=L.SheetFooter,exports.SheetHeader=L.SheetHeader,exports.SheetTitle=L.SheetTitle,exports.SheetTrigger=L.SheetTrigger,exports.Sidebar=$.t,exports.SidebarContent=$.n,exports.SidebarFooter=$.r,exports.SidebarGroup=$.i,exports.SidebarGroupAction=$.a,exports.SidebarGroupContent=$.o,exports.SidebarGroupLabel=$.s,exports.SidebarHeader=$.c,exports.SidebarInput=$.l,exports.SidebarInset=$.u,exports.SidebarMenu=$.d,exports.SidebarMenuAction=$.f,exports.SidebarMenuBadge=$.p,exports.SidebarMenuButton=$.m,exports.SidebarMenuItem=$.h,exports.SidebarMenuSkeleton=$.g,exports.SidebarMenuSub=$._,exports.SidebarMenuSubButton=$.v,exports.SidebarMenuSubItem=$.y,exports.SidebarProvider=$.b,exports.SidebarRail=$.x,exports.SidebarSeparator=$.S,exports.SidebarTrigger=$.C,exports.Skeleton=le.Skeleton,exports.Slider=m.t,exports.SonnerToaster=R.Toaster,exports.Spinner=de.Spinner,exports.SupportFab=ce.SupportFab,exports.Switch=ie.t,exports.Table=z.Table,exports.TableBody=z.TableBody,exports.TableCaption=z.TableCaption,exports.TableCell=z.TableCell,exports.TableFooter=z.TableFooter,exports.TableHead=z.TableHead,exports.TableHeader=z.TableHeader,exports.TableOfContents=ue.TableOfContents,exports.TableRow=z.TableRow,exports.Tabs=h.t,exports.TabsContent=h.n,exports.TabsList=h.r,exports.TabsTrigger=h.i,exports.Text=B.Text,exports.Textarea=oe.Textarea,exports.ThemeProvider=V.ThemeProvider,exports.ThemeToggle=H.t,exports.Toast=g.t,exports.ToastAction=g.n,exports.ToastClose=g.r,exports.ToastDescription=g.i,exports.ToastProvider=g.a,exports.ToastTitle=g.o,exports.ToastViewport=g.s,exports.Toaster=U.t,exports.Toggle=_.t,exports.ToggleGroup=v.t,exports.ToggleGroupItem=v.n,exports.Tooltip=y.t,exports.TooltipContent=y.n,exports.TooltipProvider=y.r,exports.TooltipTrigger=y.i,exports.badgeVariants=S.badgeVariants,exports.buttonGroupVariants=W.buttonGroupVariants,exports.buttonVariants=x.buttonVariants,exports.cn=ee.t,exports.navigationMenuTriggerStyle=c.l,exports.textVariants=B.textVariants,exports.toast=U.n,exports.toggleVariants=_.n,exports.useComboboxAnchor=Z.g,exports.useDirection=G.useDirection,exports.useFormField=N.useFormField,exports.useSidebar=$.w,exports.useTheme=H.n,exports.useToast=U.r;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { cn } from './lib/utils';
|
|
2
2
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './accordion';
|
|
3
|
-
export { Alert, AlertDescription, AlertTitle } from './alert';
|
|
3
|
+
export { Alert, AlertAction, AlertDescription, AlertTitle } from './alert';
|
|
4
4
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, } from './alert-dialog';
|
|
5
5
|
export { AspectRatio } from './aspect-ratio';
|
|
6
6
|
export { Avatar, AvatarFallback, AvatarImage } from './avatar';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM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25,45 @@ import { a as Qe, i as $e, n as et, o as tt, r as nt, s as rt, t as it } from ".
|
|
|
25
25
|
import { n as at, t as ot } from "./toggle-BfIIdlA6.mjs";
|
|
26
26
|
import { n as st, t as ct } from "./toggle-group-CbqgoPFU.mjs";
|
|
27
27
|
import { i as lt, n as ut, r as dt, t as ft } from "./tooltip-D_o8Z-Ya.mjs";
|
|
28
|
-
import { Alert as pt,
|
|
29
|
-
import { Button as
|
|
30
|
-
import { Badge as
|
|
31
|
-
import { Breadcrumb as
|
|
32
|
-
import { n as
|
|
33
|
-
import { Card as
|
|
34
|
-
import { a as
|
|
35
|
-
import { ChartContainer as
|
|
36
|
-
import { Collapsible as
|
|
37
|
-
import { a as
|
|
38
|
-
import { Dialog as
|
|
39
|
-
import { Input as
|
|
40
|
-
import { Textarea as
|
|
41
|
-
import { InputGroup as
|
|
42
|
-
import { Drawer as
|
|
43
|
-
import { Form as
|
|
44
|
-
import { Pagination as
|
|
45
|
-
import { n as
|
|
46
|
-
import { ScrollToTop as
|
|
47
|
-
import { SupportFab as
|
|
48
|
-
import { Search as
|
|
49
|
-
import { Sheet as
|
|
50
|
-
import { Skeleton as
|
|
51
|
-
import { Toaster as
|
|
52
|
-
import { Table as
|
|
53
|
-
import { Text as
|
|
54
|
-
import { ThemeProvider as
|
|
55
|
-
import { n as
|
|
56
|
-
import { n as
|
|
57
|
-
import { TableOfContents as
|
|
58
|
-
import { ButtonGroup as
|
|
59
|
-
import { DirectionProvider as
|
|
60
|
-
import { Empty as
|
|
61
|
-
import { Spinner as
|
|
62
|
-
import { Field as
|
|
63
|
-
import { NativeSelect as
|
|
64
|
-
import { Kbd as
|
|
65
|
-
import { Item as
|
|
66
|
-
import { a as
|
|
67
|
-
import { i as
|
|
68
|
-
import { C as
|
|
69
|
-
export { i as Accordion, n as AccordionContent, r as AccordionItem, t as AccordionTrigger, pt as Alert, mt as AlertDescription, m as AlertDialog, u as AlertDialogAction, f as AlertDialogCancel, c as AlertDialogContent, a as AlertDialogDescription, d as AlertDialogFooter, p as AlertDialogHeader, l as AlertDialogOverlay, h as AlertDialogPortal, o as AlertDialogTitle, s as AlertDialogTrigger,
|
|
28
|
+
import { Alert as pt, AlertAction as mt, AlertDescription as ht, AlertTitle as gt } from "./alert.mjs";
|
|
29
|
+
import { Button as _t, buttonVariants as vt } from "./button.mjs";
|
|
30
|
+
import { Badge as yt, badgeVariants as bt } from "./badge.mjs";
|
|
31
|
+
import { Breadcrumb as xt, BreadcrumbEllipsis as St, BreadcrumbItem as Ct, BreadcrumbLink as wt, BreadcrumbList as Tt, BreadcrumbPage as Et, BreadcrumbSeparator as Dt } from "./breadcrumb.mjs";
|
|
32
|
+
import { n as Ot, t as kt } from "./calendar-Dg6VGycy.mjs";
|
|
33
|
+
import { Card as At, CardContent as jt, CardDescription as Mt, CardFooter as Nt, CardHeader as Pt, CardTitle as Ft } from "./card.mjs";
|
|
34
|
+
import { a as It, i as Lt, n as Rt, r as zt, t as Bt } from "./carousel-DbDoNdqJ.mjs";
|
|
35
|
+
import { ChartContainer as Vt, ChartLegend as Ht, ChartLegendContent as Ut, ChartStyle as Wt, ChartTooltip as Gt, ChartTooltipContent as Kt } from "./chart.mjs";
|
|
36
|
+
import { Collapsible as qt, CollapsibleContent as Jt, CollapsibleTrigger as Yt } from "./collapsible.mjs";
|
|
37
|
+
import { a as Xt, c as Zt, i as Qt, l as $t, n as en, o as tn, r as nn, s as rn, t as an } from "./command-C6wJ5giF.mjs";
|
|
38
|
+
import { Dialog as on, DialogClose as sn, DialogContent as cn, DialogDescription as ln, DialogFooter as un, DialogHeader as dn, DialogOverlay as fn, DialogPortal as pn, DialogTitle as mn, DialogTrigger as hn } from "./dialog.mjs";
|
|
39
|
+
import { Input as gn } from "./input.mjs";
|
|
40
|
+
import { Textarea as _n } from "./textarea.mjs";
|
|
41
|
+
import { InputGroup as vn, InputGroupAddon as yn, InputGroupButton as bn, InputGroupInput as xn, InputGroupText as Sn, InputGroupTextarea as Cn } from "./input-group.mjs";
|
|
42
|
+
import { Drawer as wn, DrawerClose as Tn, DrawerContent as En, DrawerDescription as Dn, DrawerFooter as On, DrawerHeader as kn, DrawerOverlay as An, DrawerPortal as jn, DrawerTitle as Mn, DrawerTrigger as Nn } from "./drawer.mjs";
|
|
43
|
+
import { Form as Pn, FormControl as Fn, FormDescription as In, FormField as Ln, FormItem as Rn, FormLabel as zn, FormMessage as Bn, useFormField as Vn } from "./form.mjs";
|
|
44
|
+
import { Pagination as Hn, PaginationContent as Un, PaginationEllipsis as Wn, PaginationItem as Gn, PaginationLink as Kn, PaginationNext as qn, PaginationPrevious as Jn } from "./pagination.mjs";
|
|
45
|
+
import { n as Yn, r as Xn, t as Zn } from "./resizable-DJSE3e5L.mjs";
|
|
46
|
+
import { ScrollToTop as Qn } from "./scroll-to-top.mjs";
|
|
47
|
+
import { SupportFab as $n } from "./support-fab.mjs";
|
|
48
|
+
import { Search as er, SearchTrigger as tr } from "./search.mjs";
|
|
49
|
+
import { Sheet as nr, SheetClose as rr, SheetContent as ir, SheetDescription as ar, SheetFooter as or, SheetHeader as sr, SheetTitle as cr, SheetTrigger as lr } from "./sheet.mjs";
|
|
50
|
+
import { Skeleton as ur } from "./skeleton.mjs";
|
|
51
|
+
import { Toaster as dr } from "./sonner.mjs";
|
|
52
|
+
import { Table as fr, TableBody as pr, TableCaption as mr, TableCell as hr, TableFooter as gr, TableHead as _r, TableHeader as vr, TableRow as yr } from "./table.mjs";
|
|
53
|
+
import { Text as br, textVariants as xr } from "./text.mjs";
|
|
54
|
+
import { ThemeProvider as Sr } from "./theme-provider.mjs";
|
|
55
|
+
import { n as Cr, t as wr } from "./theme-toggle-clE-HpSS.mjs";
|
|
56
|
+
import { n as Tr, r as Er, t as Dr } from "./toaster-Czhz-ktg.mjs";
|
|
57
|
+
import { TableOfContents as Or } from "./table-of-contents.mjs";
|
|
58
|
+
import { ButtonGroup as kr, ButtonGroupSeparator as Ar, ButtonGroupText as jr, buttonGroupVariants as Mr } from "./button-group.mjs";
|
|
59
|
+
import { DirectionProvider as Nr, useDirection as Pr } from "./direction.mjs";
|
|
60
|
+
import { Empty as Fr, EmptyContent as Ir, EmptyDescription as Lr, EmptyHeader as Rr, EmptyMedia as zr, EmptyTitle as Br } from "./empty.mjs";
|
|
61
|
+
import { Spinner as Vr } from "./spinner.mjs";
|
|
62
|
+
import { Field as Hr, FieldContent as Ur, FieldDescription as Wr, FieldError as Gr, FieldGroup as Kr, FieldLabel as qr, FieldLegend as Jr, FieldSeparator as Yr, FieldSet as Xr, FieldTitle as Zr } from "./field.mjs";
|
|
63
|
+
import { NativeSelect as Qr, NativeSelectOptGroup as $r, NativeSelectOption as ei } from "./native-select.mjs";
|
|
64
|
+
import { Kbd as ti, KbdGroup as ni } from "./kbd.mjs";
|
|
65
|
+
import { Item as ri, ItemActions as ii, ItemContent as ai, ItemDescription as oi, ItemFooter as si, ItemGroup as ci, ItemHeader as li, ItemMedia as ui, ItemSeparator as di, ItemTitle as fi } from "./item.mjs";
|
|
66
|
+
import { a as pi, c as mi, d as hi, f as gi, g as _i, h as vi, i as yi, l as bi, m as xi, n as Si, o as Ci, p as wi, r as Ti, s as Ei, t as Di, u as Oi } from "./combobox-yDMqxM_J.mjs";
|
|
67
|
+
import { i as ki, n as Ai, r as ji, t as Mi } from "./input-otp-BH_9dVhh.mjs";
|
|
68
|
+
import { C as Ni, S as Pi, _ as Fi, a as Ii, b as Li, c as Ri, d as zi, f as Bi, g as Vi, h as Hi, i as Ui, l as Wi, m as Gi, n as Ki, o as qi, p as Ji, r as Yi, s as Xi, t as Zi, u as Qi, v as $i, w as ea, x as ta, y as na } from "./sidebar-B-sWccYh.mjs";
|
|
69
|
+
export { i as Accordion, n as AccordionContent, r as AccordionItem, t as AccordionTrigger, pt as Alert, mt as AlertAction, ht as AlertDescription, m as AlertDialog, u as AlertDialogAction, f as AlertDialogCancel, c as AlertDialogContent, a as AlertDialogDescription, d as AlertDialogFooter, p as AlertDialogHeader, l as AlertDialogOverlay, h as AlertDialogPortal, o as AlertDialogTitle, s as AlertDialogTrigger, gt as AlertTitle, g as AspectRatio, y as Avatar, v as AvatarFallback, _ as AvatarImage, yt as Badge, xt as Breadcrumb, St as BreadcrumbEllipsis, Ct as BreadcrumbItem, wt as BreadcrumbLink, Tt as BreadcrumbList, Et as BreadcrumbPage, Dt as BreadcrumbSeparator, _t as Button, kr as ButtonGroup, Ar as ButtonGroupSeparator, jr as ButtonGroupText, kt as Calendar, Ot as CalendarDayButton, At as Card, jt as CardContent, Mt as CardDescription, Nt as CardFooter, Pt as CardHeader, Ft as CardTitle, Bt as Carousel, Rt as CarouselContent, zt as CarouselItem, Lt as CarouselNext, It as CarouselPrevious, Vt as ChartContainer, Ht as ChartLegend, Ut as ChartLegendContent, Wt as ChartStyle, Gt as ChartTooltip, Kt as ChartTooltipContent, b as Checkbox, qt as Collapsible, Jt as CollapsibleContent, Yt as CollapsibleTrigger, Di as Combobox, Si as ComboboxChip, Ti as ComboboxChips, yi as ComboboxChipsInput, pi as ComboboxCollection, Ci as ComboboxContent, Ei as ComboboxEmpty, mi as ComboboxGroup, bi as ComboboxInput, Oi as ComboboxItem, hi as ComboboxLabel, gi as ComboboxList, wi as ComboboxSeparator, xi as ComboboxTrigger, vi as ComboboxValue, an as Command, en as CommandDialog, nn as CommandEmpty, Qt as CommandGroup, Xt as CommandInput, tn as CommandItem, rn as CommandList, Zt as CommandSeparator, $t as CommandShortcut, P as ContextMenu, k as ContextMenuCheckboxItem, M as ContextMenuContent, E as ContextMenuGroup, x as ContextMenuItem, A as ContextMenuLabel, N as ContextMenuPortal, S as ContextMenuRadioGroup, D as ContextMenuRadioItem, F as ContextMenuSeparator, C as ContextMenuShortcut, w as ContextMenuSub, j as ContextMenuSubContent, O as ContextMenuSubTrigger, T as ContextMenuTrigger, on as Dialog, sn as DialogClose, cn as DialogContent, ln as DialogDescription, un as DialogFooter, dn as DialogHeader, fn as DialogOverlay, pn as DialogPortal, mn as DialogTitle, hn as DialogTrigger, Nr as DirectionProvider, wn as Drawer, Tn as DrawerClose, En as DrawerContent, Dn as DrawerDescription, On as DrawerFooter, kn as DrawerHeader, An as DrawerOverlay, jn as DrawerPortal, Mn as DrawerTitle, Nn as DrawerTrigger, Y as DropdownMenu, W as DropdownMenuCheckboxItem, q as DropdownMenuContent, V as DropdownMenuGroup, I as DropdownMenuItem, G as DropdownMenuLabel, J as DropdownMenuPortal, L as DropdownMenuRadioGroup, H as DropdownMenuRadioItem, X as DropdownMenuSeparator, R as DropdownMenuShortcut, z as DropdownMenuSub, K as DropdownMenuSubContent, U as DropdownMenuSubTrigger, B as DropdownMenuTrigger, Fr as Empty, Ir as EmptyContent, Lr as EmptyDescription, Rr as EmptyHeader, zr as EmptyMedia, Br as EmptyTitle, Hr as Field, Ur as FieldContent, Wr as FieldDescription, Gr as FieldError, Kr as FieldGroup, qr as FieldLabel, Jr as FieldLegend, Yr as FieldSeparator, Xr as FieldSet, Zr as FieldTitle, Pn as Form, Fn as FormControl, In as FormDescription, Ln as FormField, Rn as FormItem, zn as FormLabel, Bn as FormMessage, ee as HoverCard, Q as HoverCardContent, $ as HoverCardTrigger, gn as Input, vn as InputGroup, yn as InputGroupAddon, bn as InputGroupButton, xn as InputGroupInput, Sn as InputGroupText, Cn as InputGroupTextarea, Mi as InputOTP, Ai as InputOTPGroup, ji as InputOTPSeparator, ki as InputOTPSlot, ri as Item, ii as ItemActions, ai as ItemContent, oi as ItemDescription, si as ItemFooter, ci as ItemGroup, li as ItemHeader, ui as ItemMedia, di as ItemSeparator, fi as ItemTitle, ti as Kbd, ni as KbdGroup, Z as Label, he as Menubar, ue as MenubarCheckboxItem, pe as MenubarContent, se as MenubarGroup, te as MenubarItem, de as MenubarLabel, me as MenubarMenu, ne as MenubarPortal, ce as MenubarRadioGroup, ge as MenubarRadioItem, re as MenubarSeparator, ie as MenubarShortcut, fe as MenubarSub, le as MenubarSubContent, oe as MenubarSubTrigger, ae as MenubarTrigger, Qr as NativeSelect, $r as NativeSelectOptGroup, ei as NativeSelectOption, Te as NavigationMenu, xe as NavigationMenuContent, Ce as NavigationMenuIndicator, ye as NavigationMenuItem, _e as NavigationMenuLink, Se as NavigationMenuList, we as NavigationMenuTrigger, ve as NavigationMenuViewport, Hn as Pagination, Un as PaginationContent, Wn as PaginationEllipsis, Gn as PaginationItem, Kn as PaginationLink, qn as PaginationNext, Jn as PaginationPrevious, ke as Popover, Ee as PopoverAnchor, De as PopoverContent, Oe as PopoverTrigger, Ae as Progress, Me as RadioGroup, je as RadioGroupItem, Zn as ResizableHandle, Yn as ResizablePanel, Xn as ResizablePanelGroup, Pe as ScrollArea, Ne as ScrollBar, Qn as ScrollToTop, er as Search, tr as SearchTrigger, Ue as Select, ze as SelectContent, Ve as SelectGroup, Le as SelectItem, Fe as SelectLabel, Be as SelectScrollDownButton, He as SelectScrollUpButton, Ie as SelectSeparator, Re as SelectTrigger, We as SelectValue, Ge as Separator, nr as Sheet, rr as SheetClose, ir as SheetContent, ar as SheetDescription, or as SheetFooter, sr as SheetHeader, cr as SheetTitle, lr as SheetTrigger, Zi as Sidebar, Ki as SidebarContent, Yi as SidebarFooter, Ui as SidebarGroup, Ii as SidebarGroupAction, qi as SidebarGroupContent, Xi as SidebarGroupLabel, Ri as SidebarHeader, Wi as SidebarInput, Qi as SidebarInset, zi as SidebarMenu, Bi as SidebarMenuAction, Ji as SidebarMenuBadge, Gi as SidebarMenuButton, Hi as SidebarMenuItem, Vi as SidebarMenuSkeleton, Fi as SidebarMenuSub, $i as SidebarMenuSubButton, na as SidebarMenuSubItem, Li as SidebarProvider, ta as SidebarRail, Pi as SidebarSeparator, Ni as SidebarTrigger, ur as Skeleton, Ke as Slider, dr as SonnerToaster, Vr as Spinner, $n as SupportFab, qe as Switch, fr as Table, pr as TableBody, mr as TableCaption, hr as TableCell, gr as TableFooter, _r as TableHead, vr as TableHeader, Or as TableOfContents, yr as TableRow, Ze as Tabs, Ye as TabsContent, Xe as TabsList, Je as TabsTrigger, br as Text, _n as Textarea, Sr as ThemeProvider, wr as ThemeToggle, it as Toast, et as ToastAction, nt as ToastClose, $e as ToastDescription, Qe as ToastProvider, tt as ToastTitle, rt as ToastViewport, Dr as Toaster, ot as Toggle, ct as ToggleGroup, st as ToggleGroupItem, ft as Tooltip, ut as TooltipContent, dt as TooltipProvider, lt as TooltipTrigger, bt as badgeVariants, Mr as buttonGroupVariants, vt as buttonVariants, e as cn, be as navigationMenuTriggerStyle, xr as textVariants, Tr as toast, at as toggleVariants, _i as useComboboxAnchor, Pr as useDirection, Vn as useFormField, ea as useSidebar, Cr as useTheme, Er as useToast };
|
package/dist/support-fab.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./button.cjs"),r=require("./dialog.cjs"),i=require("./drawer.cjs");let a=require("react");a=e.r(a);let o=require("react/jsx-runtime"),s=require("lucide-react");var c=`(max-width: 767px)`,l=e=>{let t=e.trim();return t.endsWith(`/`)?t.slice(0,-1):t},
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./button.cjs"),r=require("./dialog.cjs"),i=require("./drawer.cjs");let a=require("react");a=e.r(a);let o=require("react/jsx-runtime"),s=require("lucide-react");var c=`(max-width: 767px)`,l=`https://www.buymeacoffee.com`,u=new Set([`buymeacoffee.com`,`www.buymeacoffee.com`]),d=e=>{let t=e.trim();try{let n=new URL(t),r=n.hostname.toLowerCase();return n.protocol!==`https:`||!u.has(r)?(console.warn(`Invalid supportUrl: ${e}. Falling back to default.`),l):t}catch{return console.warn(`Invalid supportUrl: ${e}. Falling back to default.`),l}},f=e=>{let t=d(e);return t.endsWith(`/`)?t.slice(0,-1):t},p=e=>e.trim().replace(/^@+/,``),m=(e,t)=>`${f(e)}/${encodeURIComponent(p(t))}`,h=(e,t)=>`${f(e)}/widget/page/${encodeURIComponent(p(t))}`,g=()=>{let[e,t]=a.useState(()=>typeof window>`u`||typeof window.matchMedia!=`function`?!1:window.matchMedia(c).matches);return a.useEffect(()=>{if(typeof window>`u`||typeof window.matchMedia!=`function`)return;let e=window.matchMedia(c),n=e=>t(e.matches);return t(e.matches),e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}},[]),e};function _({supportUrl:e=l,creatorId:c,title:u=`Buy me a coffee`,description:d=`Support the project directly from this panel.`,iframeTitle:f=`Buy Me a Coffee support form`,open:p,defaultOpen:_=!1,onOpenChange:v,positionClassName:y,buttonClassName:b,panelClassName:x,className:S,type:C,onClick:w,...T}){let E=g(),D=p!==void 0,[O,k]=a.useState(_),A=D?p:O,j=a.useCallback(e=>{D||k(e),v?.(e)},[D,v]),M=a.useMemo(()=>m(e,c),[c,e]),N=(0,o.jsxs)(`div`,{className:`flex max-h-[75vh] flex-col gap-3`,children:[(0,o.jsx)(`div`,{className:`overflow-hidden rounded-md border`,children:(0,o.jsx)(`iframe`,{title:f,src:a.useMemo(()=>h(e,c),[c,e]),className:`h-[560px] w-full border-0`,loading:`lazy`,referrerPolicy:`strict-origin-when-cross-origin`})}),(0,o.jsxs)(`div`,{className:`text-muted-foreground flex items-center justify-between gap-2 text-xs`,children:[(0,o.jsx)(`span`,{children:`If the embedded checkout is unavailable, open the support page directly.`}),(0,o.jsxs)(`a`,{href:M,target:`_blank`,rel:`noopener noreferrer`,className:`text-foreground inline-flex items-center gap-1 font-medium underline underline-offset-2`,children:[`Open Buy Me a Coffee`,(0,o.jsx)(s.ExternalLink,{className:`h-3.5 w-3.5`})]})]})]}),P=(0,o.jsx)(`div`,{className:t.t(`fixed right-6 bottom-6 z-50`,y),children:(0,o.jsxs)(n.Button,{"aria-label":`Support this project`,type:C??`button`,className:t.t(`inline-flex h-14 w-14 items-center justify-center rounded-full border border-black/15 bg-[#ffdd00] text-black shadow-[0_16px_36px_-18px_rgba(0,0,0,0.8)] transition hover:-translate-y-0.5 hover:scale-105 hover:bg-[#ffe347] focus-visible:ring-2 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95`,b,S),onClick:e=>{w?.(e),e.defaultPrevented||j(!0)},...T,children:[(0,o.jsx)(s.Coffee,{className:`h-6 w-6`}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Support this project`})]})});return E?(0,o.jsxs)(o.Fragment,{children:[P,(0,o.jsx)(i.Drawer,{open:A,onOpenChange:j,children:(0,o.jsxs)(i.DrawerContent,{className:t.t(`mx-auto w-full max-w-xl`,x),children:[(0,o.jsxs)(i.DrawerHeader,{children:[(0,o.jsx)(i.DrawerTitle,{children:u}),(0,o.jsx)(i.DrawerDescription,{children:d})]}),(0,o.jsx)(`div`,{className:`px-4 pb-4`,children:N})]})})]}):(0,o.jsxs)(o.Fragment,{children:[P,(0,o.jsx)(r.Dialog,{open:A,onOpenChange:j,children:(0,o.jsxs)(r.DialogContent,{className:t.t(`max-w-xl p-5`,x),children:[(0,o.jsxs)(r.DialogHeader,{children:[(0,o.jsx)(r.DialogTitle,{children:u}),(0,o.jsx)(r.DialogDescription,{children:d})]}),N]})})]})}exports.SupportFab=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-fab.d.ts","sourceRoot":"","sources":["../src/support-fab.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"support-fab.d.ts","sourceRoot":"","sources":["../src/support-fab.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6E/B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IACtG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,UAAU,CAAC,EACzB,UAAgC,EAChC,SAAS,EACT,KAAyB,EACzB,WAA6D,EAC7D,WAA4C,EAC5C,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,SAAS,EACT,IAAI,EACJ,OAAO,EACP,GAAG,WAAW,EACf,EAAE,eAAe,2CAoGjB"}
|
package/dist/support-fab.mjs
CHANGED
|
@@ -8,10 +8,18 @@ import * as f from "react";
|
|
|
8
8
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
9
|
import { Coffee as g, ExternalLink as _ } from "lucide-react";
|
|
10
10
|
//#region src/support-fab.tsx
|
|
11
|
-
var v = "(max-width: 767px)", y = (e) => {
|
|
11
|
+
var v = "(max-width: 767px)", y = "https://www.buymeacoffee.com", b = new Set(["buymeacoffee.com", "www.buymeacoffee.com"]), x = (e) => {
|
|
12
12
|
let t = e.trim();
|
|
13
|
+
try {
|
|
14
|
+
let n = new URL(t), r = n.hostname.toLowerCase();
|
|
15
|
+
return n.protocol !== "https:" || !b.has(r) ? (console.warn(`Invalid supportUrl: ${e}. Falling back to default.`), y) : t;
|
|
16
|
+
} catch {
|
|
17
|
+
return console.warn(`Invalid supportUrl: ${e}. Falling back to default.`), y;
|
|
18
|
+
}
|
|
19
|
+
}, S = (e) => {
|
|
20
|
+
let t = x(e);
|
|
13
21
|
return t.endsWith("/") ? t.slice(0, -1) : t;
|
|
14
|
-
},
|
|
22
|
+
}, C = (e) => e.trim().replace(/^@+/, ""), w = (e, t) => `${S(e)}/${encodeURIComponent(C(t))}`, T = (e, t) => `${S(e)}/widget/page/${encodeURIComponent(C(t))}`, E = () => {
|
|
15
23
|
let [e, t] = f.useState(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(v).matches);
|
|
16
24
|
return f.useEffect(() => {
|
|
17
25
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
@@ -21,16 +29,16 @@ var v = "(max-width: 767px)", y = (e) => {
|
|
|
21
29
|
};
|
|
22
30
|
}, []), e;
|
|
23
31
|
};
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
}, [
|
|
32
|
+
function D({ supportUrl: v = y, creatorId: b, title: x = "Buy me a coffee", description: S = "Support the project directly from this panel.", iframeTitle: C = "Buy Me a Coffee support form", open: D, defaultOpen: O = !1, onOpenChange: k, positionClassName: A, buttonClassName: j, panelClassName: M, className: N, type: P, onClick: F, ...I }) {
|
|
33
|
+
let L = E(), R = D !== void 0, [z, B] = f.useState(O), V = R ? D : z, H = f.useCallback((e) => {
|
|
34
|
+
R || B(e), k?.(e);
|
|
35
|
+
}, [R, k]), U = f.useMemo(() => w(v, b), [b, v]), W = /* @__PURE__ */ h("div", {
|
|
28
36
|
className: "flex max-h-[75vh] flex-col gap-3",
|
|
29
37
|
children: [/* @__PURE__ */ m("div", {
|
|
30
38
|
className: "overflow-hidden rounded-md border",
|
|
31
39
|
children: /* @__PURE__ */ m("iframe", {
|
|
32
|
-
title:
|
|
33
|
-
src: f.useMemo(() =>
|
|
40
|
+
title: C,
|
|
41
|
+
src: f.useMemo(() => T(v, b), [b, v]),
|
|
34
42
|
className: "h-[560px] w-full border-0",
|
|
35
43
|
loading: "lazy",
|
|
36
44
|
referrerPolicy: "strict-origin-when-cross-origin"
|
|
@@ -38,47 +46,47 @@ function w({ supportUrl: v = "https://www.buymeacoffee.com", creatorId: y, title
|
|
|
38
46
|
}), /* @__PURE__ */ h("div", {
|
|
39
47
|
className: "text-muted-foreground flex items-center justify-between gap-2 text-xs",
|
|
40
48
|
children: [/* @__PURE__ */ m("span", { children: "If the embedded checkout is unavailable, open the support page directly." }), /* @__PURE__ */ h("a", {
|
|
41
|
-
href:
|
|
49
|
+
href: U,
|
|
42
50
|
target: "_blank",
|
|
43
51
|
rel: "noopener noreferrer",
|
|
44
52
|
className: "text-foreground inline-flex items-center gap-1 font-medium underline underline-offset-2",
|
|
45
53
|
children: ["Open Buy Me a Coffee", /* @__PURE__ */ m(_, { className: "h-3.5 w-3.5" })]
|
|
46
54
|
})]
|
|
47
55
|
})]
|
|
48
|
-
}),
|
|
49
|
-
className: e("fixed right-6 bottom-6 z-50",
|
|
56
|
+
}), G = /* @__PURE__ */ m("div", {
|
|
57
|
+
className: e("fixed right-6 bottom-6 z-50", A),
|
|
50
58
|
children: /* @__PURE__ */ h(t, {
|
|
51
59
|
"aria-label": "Support this project",
|
|
52
|
-
type:
|
|
53
|
-
className: e("inline-flex h-14 w-14 items-center justify-center rounded-full border border-black/15 bg-[#ffdd00] text-black shadow-[0_16px_36px_-18px_rgba(0,0,0,0.8)] transition hover:-translate-y-0.5 hover:scale-105 hover:bg-[#ffe347] focus-visible:ring-2 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95",
|
|
60
|
+
type: P ?? "button",
|
|
61
|
+
className: e("inline-flex h-14 w-14 items-center justify-center rounded-full border border-black/15 bg-[#ffdd00] text-black shadow-[0_16px_36px_-18px_rgba(0,0,0,0.8)] transition hover:-translate-y-0.5 hover:scale-105 hover:bg-[#ffe347] focus-visible:ring-2 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95", j, N),
|
|
54
62
|
onClick: (e) => {
|
|
55
|
-
|
|
63
|
+
F?.(e), e.defaultPrevented || H(!0);
|
|
56
64
|
},
|
|
57
|
-
...
|
|
65
|
+
...I,
|
|
58
66
|
children: [/* @__PURE__ */ m(g, { className: "h-6 w-6" }), /* @__PURE__ */ m("span", {
|
|
59
67
|
className: "sr-only",
|
|
60
68
|
children: "Support this project"
|
|
61
69
|
})]
|
|
62
70
|
})
|
|
63
71
|
});
|
|
64
|
-
return
|
|
65
|
-
open:
|
|
66
|
-
onOpenChange:
|
|
72
|
+
return L ? /* @__PURE__ */ h(p, { children: [G, /* @__PURE__ */ m(s, {
|
|
73
|
+
open: V,
|
|
74
|
+
onOpenChange: H,
|
|
67
75
|
children: /* @__PURE__ */ h(c, {
|
|
68
|
-
className: e("mx-auto w-full max-w-xl",
|
|
69
|
-
children: [/* @__PURE__ */ h(u, { children: [/* @__PURE__ */ m(d, { children:
|
|
76
|
+
className: e("mx-auto w-full max-w-xl", M),
|
|
77
|
+
children: [/* @__PURE__ */ h(u, { children: [/* @__PURE__ */ m(d, { children: x }), /* @__PURE__ */ m(l, { children: S })] }), /* @__PURE__ */ m("div", {
|
|
70
78
|
className: "px-4 pb-4",
|
|
71
|
-
children:
|
|
79
|
+
children: W
|
|
72
80
|
})]
|
|
73
81
|
})
|
|
74
|
-
})] }) : /* @__PURE__ */ h(p, { children: [
|
|
75
|
-
open:
|
|
76
|
-
onOpenChange:
|
|
82
|
+
})] }) : /* @__PURE__ */ h(p, { children: [G, /* @__PURE__ */ m(n, {
|
|
83
|
+
open: V,
|
|
84
|
+
onOpenChange: H,
|
|
77
85
|
children: /* @__PURE__ */ h(r, {
|
|
78
|
-
className: e("max-w-xl p-5",
|
|
79
|
-
children: [/* @__PURE__ */ h(a, { children: [/* @__PURE__ */ m(o, { children:
|
|
86
|
+
className: e("max-w-xl p-5", M),
|
|
87
|
+
children: [/* @__PURE__ */ h(a, { children: [/* @__PURE__ */ m(o, { children: x }), /* @__PURE__ */ m(i, { children: S })] }), W]
|
|
80
88
|
})
|
|
81
89
|
})] });
|
|
82
90
|
}
|
|
83
91
|
//#endregion
|
|
84
|
-
export {
|
|
92
|
+
export { D as SupportFab };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { cn } from './lib/utils';
|
|
|
11
11
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './accordion';
|
|
12
12
|
|
|
13
13
|
// Alert
|
|
14
|
-
export { Alert, AlertDescription, AlertTitle } from './alert';
|
|
14
|
+
export { Alert, AlertAction, AlertDescription, AlertTitle } from './alert';
|
|
15
15
|
|
|
16
16
|
// Alert Dialog
|
|
17
17
|
export {
|
package/src/support-fab.tsx
CHANGED
|
@@ -8,10 +8,31 @@ import { Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle } f
|
|
|
8
8
|
import { cn } from './lib/utils';
|
|
9
9
|
|
|
10
10
|
const MOBILE_QUERY = '(max-width: 767px)';
|
|
11
|
+
const DEFAULT_SUPPORT_URL = 'https://www.buymeacoffee.com';
|
|
12
|
+
const ALLOWED_SUPPORT_DOMAINS = new Set(['buymeacoffee.com', 'www.buymeacoffee.com']);
|
|
11
13
|
|
|
12
|
-
const
|
|
14
|
+
const validateSupportUrl = (url: string) => {
|
|
13
15
|
const trimmed = url.trim();
|
|
14
|
-
|
|
16
|
+
|
|
17
|
+
try {
|
|
18
|
+
const parsed = new URL(trimmed);
|
|
19
|
+
const hostname = parsed.hostname.toLowerCase();
|
|
20
|
+
|
|
21
|
+
if (parsed.protocol !== 'https:' || !ALLOWED_SUPPORT_DOMAINS.has(hostname)) {
|
|
22
|
+
console.warn(`Invalid supportUrl: ${url}. Falling back to default.`);
|
|
23
|
+
return DEFAULT_SUPPORT_URL;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return trimmed;
|
|
27
|
+
} catch {
|
|
28
|
+
console.warn(`Invalid supportUrl: ${url}. Falling back to default.`);
|
|
29
|
+
return DEFAULT_SUPPORT_URL;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const normalizeBaseUrl = (url: string) => {
|
|
34
|
+
const validated = validateSupportUrl(url);
|
|
35
|
+
return validated.endsWith('/') ? validated.slice(0, -1) : validated;
|
|
15
36
|
};
|
|
16
37
|
|
|
17
38
|
const sanitizeCreator = (creatorId: string) => creatorId.trim().replace(/^@+/, '');
|
|
@@ -72,7 +93,7 @@ export interface SupportFabProps extends Omit<React.ButtonHTMLAttributes<HTMLBut
|
|
|
72
93
|
}
|
|
73
94
|
|
|
74
95
|
export function SupportFab({
|
|
75
|
-
supportUrl =
|
|
96
|
+
supportUrl = DEFAULT_SUPPORT_URL,
|
|
76
97
|
creatorId,
|
|
77
98
|
title = 'Buy me a coffee',
|
|
78
99
|
description = 'Support the project directly from this panel.',
|