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