@chaibuilder/sdk 2.0.0-beta.100 → 2.0.0-beta.103

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