@chaibuilder/sdk 2.0.0-beta.110 → 2.0.0-beta.113

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/ui.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./tooltip-DHlrjqh8.cjs"),r=require("react/jsx-runtime"),R=require("react"),u=require("class-variance-authority"),p=require("@radix-ui/react-icons"),P=require("@radix-ui/react-select"),k=require("@radix-ui/react-dialog"),V=require("@radix-ui/react-toggle");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,i.get?i:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const l=c(R),n=c(P),s=c(k),m=c(V),H=u.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),g=l.forwardRef(({className:t,variant:o,...a},i)=>r.jsx("div",{ref:i,role:"alert",className:e.cn(H({variant:o}),t),...a}));g.displayName="Alert";const f=l.forwardRef(({className:t,...o},a)=>r.jsx("h5",{ref:a,className:e.cn("mb-1 font-medium leading-none tracking-tight",t),...o}));f.displayName="AlertTitle";const x=l.forwardRef(({className:t,...o},a)=>r.jsx("div",{ref:a,className:e.cn("text-sm [&_p]:leading-relaxed",t),...o}));x.displayName="AlertDescription";const L=n.Root,G=n.Group,_=n.Value,C=l.forwardRef(({className:t,children:o,...a},i)=>r.jsxs(n.Trigger,{ref:i,className:e.cn("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:[o,r.jsx(n.Icon,{asChild:!0,children:r.jsx(p.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}));C.displayName=n.Trigger.displayName;const b=l.forwardRef(({className:t,children:o,position:a="popper",...i},d)=>r.jsx(n.Portal,{children:r.jsx(n.Content,{ref:d,className:e.cn("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...i,children:r.jsx(n.Viewport,{className:e.cn("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o})})}));b.displayName=n.Content.displayName;const h=l.forwardRef(({className:t,...o},a)=>r.jsx(n.Label,{ref:a,className:e.cn("px-2 py-1.5 text-sm font-semibold",t),...o}));h.displayName=n.Label.displayName;const S=l.forwardRef(({className:t,children:o,...a},i)=>r.jsxs(n.Item,{ref:i,className:e.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[r.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(n.ItemIndicator,{children:r.jsx(p.CheckIcon,{className:"h-4 w-4"})})}),r.jsx(n.ItemText,{children:o})]}));S.displayName=n.Item.displayName;const D=l.forwardRef(({className:t,...o},a)=>r.jsx(n.Separator,{ref:a,className:e.cn("-mx-1 my-1 h-px bg-muted",t),...o}));D.displayName=n.Separator.displayName;const F=s.Root,O=s.Trigger,q=s.Close,v=({className:t,...o})=>r.jsx(s.Portal,{className:e.cn(t),...o});v.displayName=s.Portal.displayName;const T=l.forwardRef(({className:t,...o},a)=>r.jsx(s.Overlay,{className:e.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:a}));T.displayName=s.Overlay.displayName;const z=u.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),w=l.forwardRef(({side:t="right",className:o,children:a,...i},d)=>r.jsxs(v,{children:[r.jsx(T,{}),r.jsxs(s.Content,{ref:d,className:e.cn(z({side:t}),o),...i,children:[a,r.jsxs(s.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[r.jsx(p.Cross2Icon,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));w.displayName=s.Content.displayName;const y=({className:t,...o})=>r.jsx("div",{className:e.cn("flex flex-col space-y-2 text-center sm:text-left",t),...o});y.displayName="SheetHeader";const M=({className:t,...o})=>r.jsx("div",{className:e.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o});M.displayName="SheetFooter";const N=l.forwardRef(({className:t,...o},a)=>r.jsx(s.Title,{ref:a,className:e.cn("text-lg font-semibold text-foreground",t),...o}));N.displayName=s.Title.displayName;const A=l.forwardRef(({className:t,...o},a)=>r.jsx(s.Description,{ref:a,className:e.cn("text-sm text-muted-foreground",t),...o}));A.displayName=s.Description.displayName;const j=u.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),I=l.forwardRef(({className:t,variant:o,size:a,...i},d)=>r.jsx(m.Root,{ref:d,className:e.cn(j({variant:o,size:a,className:t})),...i}));I.displayName=m.Root.displayName;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.Badge=e.Badge;exports.Button=e.Button;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.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.ContextMenu=e.ContextMenu;exports.ContextMenuCheckboxItem=e.ContextMenuCheckboxItem;exports.ContextMenuContent=e.ContextMenuContent;exports.ContextMenuGroup=e.ContextMenuGroup;exports.ContextMenuItem=e.ContextMenuItem;exports.ContextMenuLabel=e.ContextMenuLabel;exports.ContextMenuPortal=e.ContextMenuPortal;exports.ContextMenuRadioGroup=e.ContextMenuRadioGroup;exports.ContextMenuRadioItem=e.ContextMenuRadioItem;exports.ContextMenuSeparator=e.ContextMenuSeparator;exports.ContextMenuShortcut=e.ContextMenuShortcut;exports.ContextMenuSub=e.ContextMenuSub;exports.ContextMenuSubContent=e.ContextMenuSubContent;exports.ContextMenuSubTrigger=e.ContextMenuSubTrigger;exports.ContextMenuTrigger=e.ContextMenuTrigger;exports.Dialog=e.Dialog;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.Input=e.Input;exports.Label=e.Label;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Separator=e.Separator;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toaster=e.Toaster;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipPortal=e.TooltipPortal;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.Alert=g;exports.AlertDescription=x;exports.AlertTitle=f;exports.Select=L;exports.SelectContent=b;exports.SelectGroup=G;exports.SelectItem=S;exports.SelectLabel=h;exports.SelectSeparator=D;exports.SelectTrigger=C;exports.SelectValue=_;exports.Sheet=F;exports.SheetClose=q;exports.SheetContent=w;exports.SheetDescription=A;exports.SheetFooter=M;exports.SheetHeader=y;exports.SheetTitle=N;exports.SheetTrigger=O;exports.Toggle=I;exports.toggleVariants=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./tooltip-1Uu2avkZ.cjs"),n=require("react/jsx-runtime"),q=require("react"),p=require("class-variance-authority"),O=require("@radix-ui/react-context-menu"),m=require("@radix-ui/react-icons"),B=require("@radix-ui/react-select"),E=require("@radix-ui/react-dialog"),J=require("@radix-ui/react-toggle");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const i=u(q),r=u(O),d=u(B),l=u(E),g=u(J),K=p.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),f=i.forwardRef(({className:t,variant:o,...a},s)=>n.jsx("div",{ref:s,role:"alert",className:e.cn(K({variant:o}),t),...a}));f.displayName="Alert";const x=i.forwardRef(({className:t,...o},a)=>n.jsx("h5",{ref:a,className:e.cn("mb-1 font-medium leading-none tracking-tight",t),...o}));x.displayName="AlertTitle";const b=i.forwardRef(({className:t,...o},a)=>n.jsx("div",{ref:a,className:e.cn("text-sm [&_p]:leading-relaxed",t),...o}));b.displayName="AlertDescription";const Q=r.Root,U=r.Trigger,W=r.Group,X=r.Portal,Y=r.Sub,Z=r.RadioGroup,C=i.forwardRef(({className:t,inset:o,children:a,...s},c)=>n.jsxs(r.SubTrigger,{ref:c,className:e.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",o&&"pl-8",t),...s,children:[a,n.jsx(m.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));C.displayName=r.SubTrigger.displayName;const h=i.forwardRef(({className:t,...o},a)=>n.jsx(r.SubContent,{ref:a,className:e.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",t),...o}));h.displayName=r.SubContent.displayName;const S=i.forwardRef(({className:t,...o},a)=>n.jsx(r.Portal,{children:n.jsx(r.Content,{ref:a,className:e.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",t),...o})}));S.displayName=r.Content.displayName;const y=i.forwardRef(({className:t,inset:o,...a},s)=>n.jsx(r.Item,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",t),...a}));y.displayName=r.Item.displayName;const w=i.forwardRef(({className:t,children:o,checked:a,...s},c)=>n.jsxs(r.CheckboxItem,{ref:c,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:a,...s,children:[n.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(r.ItemIndicator,{children:n.jsx(m.CheckIcon,{className:"h-4 w-4"})})}),o]}));w.displayName=r.CheckboxItem.displayName;const v=i.forwardRef(({className:t,children:o,...a},s)=>n.jsxs(r.RadioItem,{ref:s,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[n.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(r.ItemIndicator,{children:n.jsx(m.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),o]}));v.displayName=r.RadioItem.displayName;const N=i.forwardRef(({className:t,inset:o,...a},s)=>n.jsx(r.Label,{ref:s,className:e.cn("px-2 py-1.5 text-sm font-semibold text-foreground",o&&"pl-8",t),...a}));N.displayName=r.Label.displayName;const D=i.forwardRef(({className:t,...o},a)=>n.jsx(r.Separator,{ref:a,className:e.cn("-mx-1 my-1 h-px bg-border",t),...o}));D.displayName=r.Separator.displayName;const T=({className:t,...o})=>n.jsx("span",{className:e.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...o});T.displayName="ContextMenuShortcut";const $=d.Root,ee=d.Group,te=d.Value,M=i.forwardRef(({className:t,children:o,...a},s)=>n.jsxs(d.Trigger,{ref:s,className:e.cn("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:[o,n.jsx(d.Icon,{asChild:!0,children:n.jsx(m.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}));M.displayName=d.Trigger.displayName;const j=i.forwardRef(({className:t,children:o,position:a="popper",...s},c)=>n.jsx(d.Portal,{children:n.jsx(d.Content,{ref:c,className:e.cn("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...s,children:n.jsx(d.Viewport,{className:e.cn("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o})})}));j.displayName=d.Content.displayName;const I=i.forwardRef(({className:t,...o},a)=>n.jsx(d.Label,{ref:a,className:e.cn("px-2 py-1.5 text-sm font-semibold",t),...o}));I.displayName=d.Label.displayName;const R=i.forwardRef(({className:t,children:o,...a},s)=>n.jsxs(d.Item,{ref:s,className:e.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[n.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(d.ItemIndicator,{children:n.jsx(m.CheckIcon,{className:"h-4 w-4"})})}),n.jsx(d.ItemText,{children:o})]}));R.displayName=d.Item.displayName;const A=i.forwardRef(({className:t,...o},a)=>n.jsx(d.Separator,{ref:a,className:e.cn("-mx-1 my-1 h-px bg-muted",t),...o}));A.displayName=d.Separator.displayName;const oe=l.Root,ae=l.Trigger,ne=l.Close,P=({className:t,...o})=>n.jsx(l.Portal,{className:e.cn(t),...o});P.displayName=l.Portal.displayName;const k=i.forwardRef(({className:t,...o},a)=>n.jsx(l.Overlay,{className:e.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o,ref:a}));k.displayName=l.Overlay.displayName;const re=p.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),L=i.forwardRef(({side:t="right",className:o,children:a,...s},c)=>n.jsxs(P,{children:[n.jsx(k,{}),n.jsxs(l.Content,{ref:c,className:e.cn(re({side:t}),o),...s,children:[a,n.jsxs(l.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[n.jsx(m.Cross2Icon,{className:"h-4 w-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));L.displayName=l.Content.displayName;const V=({className:t,...o})=>n.jsx("div",{className:e.cn("flex flex-col space-y-2 text-center sm:text-left",t),...o});V.displayName="SheetHeader";const G=({className:t,...o})=>n.jsx("div",{className:e.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o});G.displayName="SheetFooter";const H=i.forwardRef(({className:t,...o},a)=>n.jsx(l.Title,{ref:a,className:e.cn("text-lg font-semibold text-foreground",t),...o}));H.displayName=l.Title.displayName;const z=i.forwardRef(({className:t,...o},a)=>n.jsx(l.Description,{ref:a,className:e.cn("text-sm text-muted-foreground",t),...o}));z.displayName=l.Description.displayName;const _=p.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),F=i.forwardRef(({className:t,variant:o,size:a,...s},c)=>n.jsx(g.Root,{ref:c,className:e.cn(_({variant:o,size:a,className:t})),...s}));F.displayName=g.Root.displayName;exports.Accordion=e.Accordion;exports.AccordionContent=e.AccordionContent;exports.AccordionItem=e.AccordionItem;exports.AccordionTrigger=e.AccordionTrigger;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.Badge=e.Badge;exports.Button=e.Button;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.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandGroup=e.CommandGroup;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandSeparator=e.CommandSeparator;exports.CommandShortcut=e.CommandShortcut;exports.Dialog=e.Dialog;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.HoverCard=e.HoverCard;exports.HoverCardContent=e.HoverCardContent;exports.HoverCardTrigger=e.HoverCardTrigger;exports.Input=e.Input;exports.Label=e.Label;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.Separator=e.Separator;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.Toaster=e.Toaster;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipPortal=e.TooltipPortal;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.badgeVariants=e.badgeVariants;exports.buttonVariants=e.buttonVariants;exports.Alert=f;exports.AlertDescription=b;exports.AlertTitle=x;exports.ContextMenu=Q;exports.ContextMenuCheckboxItem=w;exports.ContextMenuContent=S;exports.ContextMenuGroup=W;exports.ContextMenuItem=y;exports.ContextMenuLabel=N;exports.ContextMenuPortal=X;exports.ContextMenuRadioGroup=Z;exports.ContextMenuRadioItem=v;exports.ContextMenuSeparator=D;exports.ContextMenuShortcut=T;exports.ContextMenuSub=Y;exports.ContextMenuSubContent=h;exports.ContextMenuSubTrigger=C;exports.ContextMenuTrigger=U;exports.Select=$;exports.SelectContent=j;exports.SelectGroup=ee;exports.SelectItem=R;exports.SelectLabel=I;exports.SelectSeparator=A;exports.SelectTrigger=M;exports.SelectValue=te;exports.Sheet=oe;exports.SheetClose=ne;exports.SheetContent=L;exports.SheetDescription=z;exports.SheetFooter=G;exports.SheetHeader=V;exports.SheetTitle=H;exports.SheetTrigger=ae;exports.Toggle=F;exports.toggleVariants=_;
package/dist/ui.js CHANGED
@@ -1,13 +1,14 @@
1
- import { c as r } from "./tooltip-CuxBhGWF.js";
2
- import { A as Q, d as U, a as W, b as X, e as Y, l as Z, m as $, g as ee, k as ae, i as te, h as oe, j as se, f as re, n as ne, B as ie, C as de, u as le, t as ce, r as me, q as pe, s as ue, v as ge, w as fe, z as be, D as xe, x as he, E as Ce, y as ve, G as ye, F as we, H as Ne, L as Se, J as De, Q as Te, K as Me, N as Ae, R as Re, W as Ie, M as ke, O as Pe, P as Ve, T as ze, U as He, V as Le, I as je, X as Ge, Z as Fe, a1 as Be, $ as Oe, _ as qe, a0 as Ee, Y as _e, a2 as Je, a6 as Ke, a4 as Qe, ab as Ue, a5 as We, a8 as Xe, ac as Ye, ag as Ze, a7 as $e, a9 as ea, aa, ad as ta, ae as oa, af as sa, a3 as ra, ah as na, aj as ia, ai as da, ak as la, al as ca, am as ma, ao as pa, an as ua, ap as ga, aq as fa, ar as ba, S as xa, at as ha, au as Ca, ax as va, av as ya, aw as wa, ay as Na, as as Sa, az as Da, aB as Ta, aD as Ma, aC as Aa, aA as Ra, o as Ia, p as ka } from "./tooltip-CuxBhGWF.js";
3
- import { jsx as o, jsxs as c } from "react/jsx-runtime";
4
- import * as i from "react";
5
- import { cva as m } from "class-variance-authority";
6
- import { CaretSortIcon as f, CheckIcon as b, Cross2Icon as x } from "@radix-ui/react-icons";
7
- import * as s from "@radix-ui/react-select";
8
- import * as n from "@radix-ui/react-dialog";
9
- import * as p from "@radix-ui/react-toggle";
10
- const h = m(
1
+ import { c as s } from "./tooltip-PKiP886L.js";
2
+ import { A as me, d as pe, a as ue, b as fe, e as ge, l as be, m as xe, g as he, k as ye, i as Ne, h as ve, j as we, f as Ce, n as Se, B as De, C as Te, u as Re, t as Ie, r as Me, q as Ae, s as ke, v as Pe, w as ze, z as Ve, D as Le, x as je, E as Ge, y as He, G as Fe, F as Be, H as Oe, J as Ee, N as _e, L as qe, K as Je, M as Ke, I as Qe, O as Ue, T as We, Q as Xe, Y as Ye, R as Ze, V as $e, Z as et, a1 as tt, U as at, W as ot, X as st, _ as rt, $ as nt, a0 as dt, P as it, a2 as lt, a4 as ct, a3 as mt, a5 as pt, a6 as ut, a7 as ft, a9 as gt, a8 as bt, aa as xt, ab as ht, ac as yt, S as Nt, ae as vt, af as wt, ai as Ct, ag as St, ah as Dt, aj as Tt, ad as Rt, ak as It, am as Mt, ao as At, an as kt, al as Pt, o as zt, p as Vt } from "./tooltip-PKiP886L.js";
3
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
4
+ import * as d from "react";
5
+ import { cva as p } from "class-variance-authority";
6
+ import * as r from "@radix-ui/react-context-menu";
7
+ import { ChevronRightIcon as x, CheckIcon as u, DotFilledIcon as h, CaretSortIcon as y, Cross2Icon as N } from "@radix-ui/react-icons";
8
+ import * as i from "@radix-ui/react-select";
9
+ import * as l from "@radix-ui/react-dialog";
10
+ import * as f from "@radix-ui/react-toggle";
11
+ const v = p(
11
12
  "relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
12
13
  {
13
14
  variants: {
@@ -20,91 +21,191 @@ const h = m(
20
21
  variant: "default"
21
22
  }
22
23
  }
23
- ), C = i.forwardRef(({ className: e, variant: a, ...t }, d) => /* @__PURE__ */ o("div", { ref: d, role: "alert", className: r(h({ variant: a }), e), ...t }));
24
- C.displayName = "Alert";
25
- const v = i.forwardRef(
26
- ({ className: e, ...a }, t) => /* @__PURE__ */ o("h5", { ref: t, className: r("mb-1 font-medium leading-none tracking-tight", e), ...a })
24
+ ), w = d.forwardRef(({ className: e, variant: t, ...a }, n) => /* @__PURE__ */ o("div", { ref: n, role: "alert", className: s(v({ variant: t }), e), ...a }));
25
+ w.displayName = "Alert";
26
+ const C = d.forwardRef(
27
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o("h5", { ref: a, className: s("mb-1 font-medium leading-none tracking-tight", e), ...t })
27
28
  );
28
- v.displayName = "AlertTitle";
29
- const y = i.forwardRef(
30
- ({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("text-sm [&_p]:leading-relaxed", e), ...a })
29
+ C.displayName = "AlertTitle";
30
+ const S = d.forwardRef(
31
+ ({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("text-sm [&_p]:leading-relaxed", e), ...t })
31
32
  );
32
- y.displayName = "AlertDescription";
33
- const F = s.Root, B = s.Group, O = s.Value, w = i.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ c(
34
- s.Trigger,
33
+ S.displayName = "AlertDescription";
34
+ const Y = r.Root, Z = r.Trigger, $ = r.Group, ee = r.Portal, te = r.Sub, ae = r.RadioGroup, D = d.forwardRef(({ className: e, inset: t, children: a, ...n }, c) => /* @__PURE__ */ m(
35
+ r.SubTrigger,
35
36
  {
36
- ref: d,
37
- className: r(
38
- "flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
37
+ ref: c,
38
+ className: s(
39
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
40
+ t && "pl-8",
39
41
  e
40
42
  ),
41
- ...t,
43
+ ...n,
42
44
  children: [
43
45
  a,
44
- /* @__PURE__ */ o(s.Icon, { asChild: !0, children: /* @__PURE__ */ o(f, { className: "h-4 w-4 opacity-50" }) })
46
+ /* @__PURE__ */ o(x, { className: "ml-auto h-4 w-4" })
47
+ ]
48
+ }
49
+ ));
50
+ D.displayName = r.SubTrigger.displayName;
51
+ const T = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
52
+ r.SubContent,
53
+ {
54
+ ref: a,
55
+ className: s(
56
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
57
+ e
58
+ ),
59
+ ...t
60
+ }
61
+ ));
62
+ T.displayName = r.SubContent.displayName;
63
+ const R = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(r.Portal, { children: /* @__PURE__ */ o(
64
+ r.Content,
65
+ {
66
+ ref: a,
67
+ className: s(
68
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",
69
+ e
70
+ ),
71
+ ...t
72
+ }
73
+ ) }));
74
+ R.displayName = r.Content.displayName;
75
+ const I = d.forwardRef(({ className: e, inset: t, ...a }, n) => /* @__PURE__ */ o(
76
+ r.Item,
77
+ {
78
+ ref: n,
79
+ className: s(
80
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
81
+ t && "pl-8",
82
+ e
83
+ ),
84
+ ...a
85
+ }
86
+ ));
87
+ I.displayName = r.Item.displayName;
88
+ const M = d.forwardRef(({ className: e, children: t, checked: a, ...n }, c) => /* @__PURE__ */ m(
89
+ r.CheckboxItem,
90
+ {
91
+ ref: c,
92
+ className: s(
93
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
94
+ e
95
+ ),
96
+ checked: a,
97
+ ...n,
98
+ children: [
99
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(u, { className: "h-4 w-4" }) }) }),
100
+ t
45
101
  ]
46
102
  }
47
103
  ));
48
- w.displayName = s.Trigger.displayName;
49
- const N = i.forwardRef(({ className: e, children: a, position: t = "popper", ...d }, l) => /* @__PURE__ */ o(s.Portal, { children: /* @__PURE__ */ o(
50
- s.Content,
104
+ M.displayName = r.CheckboxItem.displayName;
105
+ const A = d.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ m(
106
+ r.RadioItem,
51
107
  {
52
- ref: l,
53
- className: r(
108
+ ref: n,
109
+ className: s(
110
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
111
+ e
112
+ ),
113
+ ...a,
114
+ children: [
115
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(h, { className: "h-4 w-4 fill-current" }) }) }),
116
+ t
117
+ ]
118
+ }
119
+ ));
120
+ A.displayName = r.RadioItem.displayName;
121
+ const k = d.forwardRef(({ className: e, inset: t, ...a }, n) => /* @__PURE__ */ o(
122
+ r.Label,
123
+ {
124
+ ref: n,
125
+ className: s("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
126
+ ...a
127
+ }
128
+ ));
129
+ k.displayName = r.Label.displayName;
130
+ const P = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(r.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-border", e), ...t }));
131
+ P.displayName = r.Separator.displayName;
132
+ const z = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
133
+ z.displayName = "ContextMenuShortcut";
134
+ const oe = i.Root, se = i.Group, re = i.Value, V = d.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ m(
135
+ i.Trigger,
136
+ {
137
+ ref: n,
138
+ className: s(
139
+ "flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
140
+ e
141
+ ),
142
+ ...a,
143
+ children: [
144
+ t,
145
+ /* @__PURE__ */ o(i.Icon, { asChild: !0, children: /* @__PURE__ */ o(y, { className: "h-4 w-4 opacity-50" }) })
146
+ ]
147
+ }
148
+ ));
149
+ V.displayName = i.Trigger.displayName;
150
+ const L = d.forwardRef(({ className: e, children: t, position: a = "popper", ...n }, c) => /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
151
+ i.Content,
152
+ {
153
+ ref: c,
154
+ className: s(
54
155
  "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
55
- t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
156
+ a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
56
157
  e
57
158
  ),
58
- position: t,
59
- ...d,
159
+ position: a,
160
+ ...n,
60
161
  children: /* @__PURE__ */ o(
61
- s.Viewport,
162
+ i.Viewport,
62
163
  {
63
- className: r(
164
+ className: s(
64
165
  "p-1",
65
- t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
166
+ a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
66
167
  ),
67
- children: a
168
+ children: t
68
169
  }
69
170
  )
70
171
  }
71
172
  ) }));
72
- N.displayName = s.Content.displayName;
73
- const S = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Label, { ref: t, className: r("px-2 py-1.5 text-sm font-semibold", e), ...a }));
74
- S.displayName = s.Label.displayName;
75
- const D = i.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ c(
76
- s.Item,
173
+ L.displayName = i.Content.displayName;
174
+ const j = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Label, { ref: a, className: s("px-2 py-1.5 text-sm font-semibold", e), ...t }));
175
+ j.displayName = i.Label.displayName;
176
+ const G = d.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ m(
177
+ i.Item,
77
178
  {
78
- ref: d,
79
- className: r(
179
+ ref: n,
180
+ className: s(
80
181
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
81
182
  e
82
183
  ),
83
- ...t,
184
+ ...a,
84
185
  children: [
85
- /* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(s.ItemIndicator, { children: /* @__PURE__ */ o(b, { className: "h-4 w-4" }) }) }),
86
- /* @__PURE__ */ o(s.ItemText, { children: a })
186
+ /* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(u, { className: "h-4 w-4" }) }) }),
187
+ /* @__PURE__ */ o(i.ItemText, { children: t })
87
188
  ]
88
189
  }
89
190
  ));
90
- D.displayName = s.Item.displayName;
91
- const T = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", e), ...a }));
92
- T.displayName = s.Separator.displayName;
93
- const q = n.Root, E = n.Trigger, _ = n.Close, u = ({ className: e, ...a }) => /* @__PURE__ */ o(n.Portal, { className: r(e), ...a });
94
- u.displayName = n.Portal.displayName;
95
- const g = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
96
- n.Overlay,
191
+ G.displayName = i.Item.displayName;
192
+ const H = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", e), ...t }));
193
+ H.displayName = i.Separator.displayName;
194
+ const ne = l.Root, de = l.Trigger, ie = l.Close, g = ({ className: e, ...t }) => /* @__PURE__ */ o(l.Portal, { className: s(e), ...t });
195
+ g.displayName = l.Portal.displayName;
196
+ const b = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
197
+ l.Overlay,
97
198
  {
98
- className: r(
199
+ className: s(
99
200
  "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
100
201
  e
101
202
  ),
102
- ...a,
103
- ref: t
203
+ ...t,
204
+ ref: a
104
205
  }
105
206
  ));
106
- g.displayName = n.Overlay.displayName;
107
- const M = m(
207
+ b.displayName = l.Overlay.displayName;
208
+ const F = p(
108
209
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
109
210
  {
110
211
  variants: {
@@ -119,28 +220,28 @@ const M = m(
119
220
  side: "right"
120
221
  }
121
222
  }
122
- ), A = i.forwardRef(
123
- ({ side: e = "right", className: a, children: t, ...d }, l) => /* @__PURE__ */ c(u, { children: [
124
- /* @__PURE__ */ o(g, {}),
125
- /* @__PURE__ */ c(n.Content, { ref: l, className: r(M({ side: e }), a), ...d, children: [
126
- t,
127
- /* @__PURE__ */ c(n.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
128
- /* @__PURE__ */ o(x, { className: "h-4 w-4" }),
223
+ ), B = d.forwardRef(
224
+ ({ side: e = "right", className: t, children: a, ...n }, c) => /* @__PURE__ */ m(g, { children: [
225
+ /* @__PURE__ */ o(b, {}),
226
+ /* @__PURE__ */ m(l.Content, { ref: c, className: s(F({ side: e }), t), ...n, children: [
227
+ a,
228
+ /* @__PURE__ */ m(l.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
229
+ /* @__PURE__ */ o(N, { className: "h-4 w-4" }),
129
230
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
130
231
  ] })
131
232
  ] })
132
233
  ] })
133
234
  );
134
- A.displayName = n.Content.displayName;
135
- const R = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
136
- R.displayName = "SheetHeader";
137
- const I = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
138
- I.displayName = "SheetFooter";
139
- const k = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Title, { ref: t, className: r("text-lg font-semibold text-foreground", e), ...a }));
140
- k.displayName = n.Title.displayName;
141
- const P = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
142
- P.displayName = n.Description.displayName;
143
- const V = m(
235
+ B.displayName = l.Content.displayName;
236
+ const O = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
237
+ O.displayName = "SheetHeader";
238
+ const E = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
239
+ E.displayName = "SheetFooter";
240
+ const _ = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(l.Title, { ref: a, className: s("text-lg font-semibold text-foreground", e), ...t }));
241
+ _.displayName = l.Title.displayName;
242
+ const q = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(l.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
243
+ q.displayName = l.Description.displayName;
244
+ const J = p(
144
245
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
145
246
  {
146
247
  variants: {
@@ -159,121 +260,121 @@ const V = m(
159
260
  size: "default"
160
261
  }
161
262
  }
162
- ), z = i.forwardRef(({ className: e, variant: a, size: t, ...d }, l) => /* @__PURE__ */ o(p.Root, { ref: l, className: r(V({ variant: a, size: t, className: e })), ...d }));
163
- z.displayName = p.Root.displayName;
263
+ ), K = d.forwardRef(({ className: e, variant: t, size: a, ...n }, c) => /* @__PURE__ */ o(f.Root, { ref: c, className: s(J({ variant: t, size: a, className: e })), ...n }));
264
+ K.displayName = f.Root.displayName;
164
265
  export {
165
- Q as Accordion,
166
- U as AccordionContent,
167
- W as AccordionItem,
168
- X as AccordionTrigger,
169
- C as Alert,
170
- y as AlertDescription,
171
- Y as AlertDialog,
172
- Z as AlertDialogAction,
173
- $ as AlertDialogCancel,
174
- ee as AlertDialogContent,
175
- ae as AlertDialogDescription,
176
- te as AlertDialogFooter,
177
- oe as AlertDialogHeader,
178
- se as AlertDialogTitle,
179
- re as AlertDialogTrigger,
180
- v as AlertTitle,
181
- ne as Badge,
182
- ie as Button,
183
- de as Card,
184
- le as CardContent,
185
- ce as CardDescription,
186
- me as CardFooter,
187
- pe as CardHeader,
188
- ue as CardTitle,
189
- ge as Command,
190
- fe as CommandDialog,
191
- be as CommandEmpty,
192
- xe as CommandGroup,
193
- he as CommandInput,
194
- Ce as CommandItem,
195
- ve as CommandList,
196
- ye as CommandSeparator,
197
- we as CommandShortcut,
198
- Ne as ContextMenu,
199
- Se as ContextMenuCheckboxItem,
200
- De as ContextMenuContent,
201
- Te as ContextMenuGroup,
202
- Me as ContextMenuItem,
203
- Ae as ContextMenuLabel,
204
- Re as ContextMenuPortal,
205
- Ie as ContextMenuRadioGroup,
206
- ke as ContextMenuRadioItem,
207
- Pe as ContextMenuSeparator,
208
- Ve as ContextMenuShortcut,
209
- ze as ContextMenuSub,
210
- He as ContextMenuSubContent,
211
- Le as ContextMenuSubTrigger,
212
- je as ContextMenuTrigger,
213
- Ge as Dialog,
214
- Fe as DialogContent,
215
- Be as DialogDescription,
216
- Oe as DialogFooter,
217
- qe as DialogHeader,
218
- Ee as DialogTitle,
219
- _e as DialogTrigger,
220
- Je as DropdownMenu,
221
- Ke as DropdownMenuCheckboxItem,
222
- Qe as DropdownMenuContent,
223
- Ue as DropdownMenuGroup,
224
- We as DropdownMenuItem,
225
- Xe as DropdownMenuLabel,
226
- Ye as DropdownMenuPortal,
227
- Ze as DropdownMenuRadioGroup,
228
- $e as DropdownMenuRadioItem,
229
- ea as DropdownMenuSeparator,
230
- aa as DropdownMenuShortcut,
231
- ta as DropdownMenuSub,
232
- oa as DropdownMenuSubContent,
233
- sa as DropdownMenuSubTrigger,
234
- ra as DropdownMenuTrigger,
235
- na as HoverCard,
236
- ia as HoverCardContent,
237
- da as HoverCardTrigger,
238
- la as Input,
239
- ca as Label,
240
- ma as Popover,
241
- pa as PopoverContent,
242
- ua as PopoverTrigger,
243
- ga as ScrollArea,
244
- fa as ScrollBar,
245
- F as Select,
246
- N as SelectContent,
247
- B as SelectGroup,
248
- D as SelectItem,
249
- S as SelectLabel,
250
- T as SelectSeparator,
251
- w as SelectTrigger,
252
- O as SelectValue,
253
- ba as Separator,
254
- q as Sheet,
255
- _ as SheetClose,
256
- A as SheetContent,
257
- P as SheetDescription,
258
- I as SheetFooter,
259
- R as SheetHeader,
260
- k as SheetTitle,
261
- E as SheetTrigger,
262
- xa as Skeleton,
263
- ha as Switch,
264
- Ca as Tabs,
265
- va as TabsContent,
266
- ya as TabsList,
267
- wa as TabsTrigger,
268
- Na as Textarea,
269
- Sa as Toaster,
270
- z as Toggle,
271
- Da as Tooltip,
272
- Ta as TooltipContent,
273
- Ma as TooltipPortal,
274
- Aa as TooltipProvider,
275
- Ra as TooltipTrigger,
276
- Ia as badgeVariants,
277
- ka as buttonVariants,
278
- V as toggleVariants
266
+ me as Accordion,
267
+ pe as AccordionContent,
268
+ ue as AccordionItem,
269
+ fe as AccordionTrigger,
270
+ w as Alert,
271
+ S as AlertDescription,
272
+ ge as AlertDialog,
273
+ be as AlertDialogAction,
274
+ xe as AlertDialogCancel,
275
+ he as AlertDialogContent,
276
+ ye as AlertDialogDescription,
277
+ Ne as AlertDialogFooter,
278
+ ve as AlertDialogHeader,
279
+ we as AlertDialogTitle,
280
+ Ce as AlertDialogTrigger,
281
+ C as AlertTitle,
282
+ Se as Badge,
283
+ De as Button,
284
+ Te as Card,
285
+ Re as CardContent,
286
+ Ie as CardDescription,
287
+ Me as CardFooter,
288
+ Ae as CardHeader,
289
+ ke as CardTitle,
290
+ Pe as Command,
291
+ ze as CommandDialog,
292
+ Ve as CommandEmpty,
293
+ Le as CommandGroup,
294
+ je as CommandInput,
295
+ Ge as CommandItem,
296
+ He as CommandList,
297
+ Fe as CommandSeparator,
298
+ Be as CommandShortcut,
299
+ Y as ContextMenu,
300
+ M as ContextMenuCheckboxItem,
301
+ R as ContextMenuContent,
302
+ $ as ContextMenuGroup,
303
+ I as ContextMenuItem,
304
+ k as ContextMenuLabel,
305
+ ee as ContextMenuPortal,
306
+ ae as ContextMenuRadioGroup,
307
+ A as ContextMenuRadioItem,
308
+ P as ContextMenuSeparator,
309
+ z as ContextMenuShortcut,
310
+ te as ContextMenuSub,
311
+ T as ContextMenuSubContent,
312
+ D as ContextMenuSubTrigger,
313
+ Z as ContextMenuTrigger,
314
+ Oe as Dialog,
315
+ Ee as DialogContent,
316
+ _e as DialogDescription,
317
+ qe as DialogFooter,
318
+ Je as DialogHeader,
319
+ Ke as DialogTitle,
320
+ Qe as DialogTrigger,
321
+ Ue as DropdownMenu,
322
+ We as DropdownMenuCheckboxItem,
323
+ Xe as DropdownMenuContent,
324
+ Ye as DropdownMenuGroup,
325
+ Ze as DropdownMenuItem,
326
+ $e as DropdownMenuLabel,
327
+ et as DropdownMenuPortal,
328
+ tt as DropdownMenuRadioGroup,
329
+ at as DropdownMenuRadioItem,
330
+ ot as DropdownMenuSeparator,
331
+ st as DropdownMenuShortcut,
332
+ rt as DropdownMenuSub,
333
+ nt as DropdownMenuSubContent,
334
+ dt as DropdownMenuSubTrigger,
335
+ it as DropdownMenuTrigger,
336
+ lt as HoverCard,
337
+ ct as HoverCardContent,
338
+ mt as HoverCardTrigger,
339
+ pt as Input,
340
+ ut as Label,
341
+ ft as Popover,
342
+ gt as PopoverContent,
343
+ bt as PopoverTrigger,
344
+ xt as ScrollArea,
345
+ ht as ScrollBar,
346
+ oe as Select,
347
+ L as SelectContent,
348
+ se as SelectGroup,
349
+ G as SelectItem,
350
+ j as SelectLabel,
351
+ H as SelectSeparator,
352
+ V as SelectTrigger,
353
+ re as SelectValue,
354
+ yt as Separator,
355
+ ne as Sheet,
356
+ ie as SheetClose,
357
+ B as SheetContent,
358
+ q as SheetDescription,
359
+ E as SheetFooter,
360
+ O as SheetHeader,
361
+ _ as SheetTitle,
362
+ de as SheetTrigger,
363
+ Nt as Skeleton,
364
+ vt as Switch,
365
+ wt as Tabs,
366
+ Ct as TabsContent,
367
+ St as TabsList,
368
+ Dt as TabsTrigger,
369
+ Tt as Textarea,
370
+ Rt as Toaster,
371
+ K as Toggle,
372
+ It as Tooltip,
373
+ Mt as TooltipContent,
374
+ At as TooltipPortal,
375
+ kt as TooltipProvider,
376
+ Pt as TooltipTrigger,
377
+ zt as badgeVariants,
378
+ Vt as buttonVariants,
379
+ J as toggleVariants
279
380
  };