@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/{CodeEditor-B2x4yruH.cjs → CodeEditor-BQTYQosF.cjs} +1 -1
- package/dist/{CodeEditor-VcQsGvTM.js → CodeEditor-DyWk02_x.js} +1 -1
- package/dist/{Topbar-DEw_kBMz.cjs → Topbar-BhwvnJJc.cjs} +1 -1
- package/dist/{Topbar-BQsjWb-A.js → Topbar-BuWEmzZG.js} +1 -1
- package/dist/context-menu-CeqJxblw.cjs +1 -0
- package/dist/{context-menu-D5ViOi6K.js → context-menu-iqXuo9Yt.js} +414 -338
- package/dist/core.cjs +4 -4
- package/dist/core.d.ts +10 -5
- package/dist/core.js +1593 -1370
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +183 -250
- package/package.json +1 -1
- package/dist/context-menu-C4lLV8gP.cjs +0 -1
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
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { c as
|
|
6
|
-
import { A as
|
|
7
|
-
import { CaretSortIcon as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
|
|
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
|
-
),
|
|
31
|
-
|
|
32
|
-
const
|
|
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
|
-
),
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o("h5", { ref: t, className:
|
|
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
|
-
|
|
51
|
-
const
|
|
52
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className:
|
|
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
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
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:
|
|
59
|
-
className:
|
|
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(
|
|
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
|
-
|
|
71
|
-
const
|
|
72
|
-
|
|
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:
|
|
75
|
-
className:
|
|
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
|
-
...
|
|
80
|
+
...d,
|
|
82
81
|
children: /* @__PURE__ */ o(
|
|
83
|
-
|
|
82
|
+
s.Viewport,
|
|
84
83
|
{
|
|
85
|
-
className:
|
|
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
|
-
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
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:
|
|
101
|
-
className:
|
|
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(
|
|
108
|
-
/* @__PURE__ */ o(
|
|
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
|
-
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
|
|
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:
|
|
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
|
-
|
|
129
|
-
const
|
|
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
|
-
),
|
|
145
|
-
({ side: e = "right", className: a, children: t, ...
|
|
146
|
-
/* @__PURE__ */ o(
|
|
147
|
-
/* @__PURE__ */
|
|
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__ */
|
|
150
|
-
/* @__PURE__ */ o(
|
|
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
|
-
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
const z =
|
|
164
|
-
z.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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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
|
};
|