@chaibuilder/sdk 2.0.0-beta.104 → 2.0.0-beta.106
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-DyWk02_x.js → CodeEditor-Bv7cAp6l.js} +1 -1
- package/dist/CodeEditor-ol63c03C.cjs +1 -0
- package/dist/{Topbar-BuWEmzZG.js → Topbar-DutZ_viX.js} +1 -1
- package/dist/Topbar-lIu26u9Y.cjs +1 -0
- package/dist/core.cjs +10 -5
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1180 -932
- package/dist/sdk.css +1 -6
- package/dist/tooltip-CuxBhGWF.js +763 -0
- package/dist/tooltip-DHlrjqh8.cjs +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +7 -65
- package/dist/ui.js +76 -79
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +92 -88
- package/package.json +10 -2
- package/dist/CodeEditor-BQTYQosF.cjs +0 -1
- package/dist/Topbar-BhwvnJJc.cjs +0 -1
- package/dist/context-menu-CeqJxblw.cjs +0 -1
- package/dist/context-menu-iqXuo9Yt.js +0 -907
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),Fe=require("react"),Be=require("@radix-ui/react-accordion"),f=require("@radix-ui/react-icons"),Ve=require("@radix-ui/react-alert-dialog"),Ee=require("@radix-ui/react-slot"),C=require("class-variance-authority"),m=require("cmdk"),Je=require("@radix-ui/react-dialog"),Ke=require("@radix-ui/react-context-menu"),Qe=require("@radix-ui/react-dropdown-menu"),Ue=require("@radix-ui/react-hover-card"),We=require("@radix-ui/react-label"),Xe=require("@radix-ui/react-popover"),Ye=require("@radix-ui/react-scroll-area"),Ze=require("@radix-ui/react-separator"),$e=require("next-themes"),et=require("sonner"),tt=require("@radix-ui/react-switch"),ot=require("@radix-ui/react-tabs"),at=require("@radix-ui/react-tooltip"),st=require("clsx"),rt=require("tailwind-merge");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const r=p(Fe),x=p(Be),l=p(Ve),u=p(Je),d=p(Ke),i=p(Qe),h=p(Ue),T=p(We),N=p(Xe),g=p(Ye),k=p(Ze),v=p(tt),b=p(ot),y=p(at),s=(...e)=>rt.twMerge(st.clsx(e)),nt=x.Root,M=r.forwardRef(({className:e,...t},o)=>a.jsx(x.Item,{ref:o,className:s("border-b",e),...t}));M.displayName="AccordionItem";const S=r.forwardRef(({className:e,children:t,...o},n)=>a.jsx(x.Header,{className:"flex",children:a.jsxs(x.Trigger,{ref:n,className:s("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,o.hideArrow?null:a.jsx(f.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));S.displayName=x.Trigger.displayName;const I=r.forwardRef(({className:e,children:t,...o},n)=>a.jsx(x.Content,{ref:n,className:s("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:a.jsx("div",{className:"pb-4 pt-0",children:t})}));I.displayName=x.Content.displayName;const w=C.cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),P=r.forwardRef(({className:e,variant:t,size:o,asChild:n=!1,...c},Ge)=>{const Oe=n?Ee.Slot:"button";return a.jsx(Oe,{className:s(w({variant:t,size:o,className:e})),ref:Ge,...c})});P.displayName="Button";const dt=l.Root,it=l.Trigger,_=({className:e,...t})=>a.jsx(l.Portal,{className:s(e),...t});_.displayName=l.Portal.displayName;const A=r.forwardRef(({className:e,...t},o)=>a.jsx(l.Overlay,{className:s("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",e),...t,ref:o}));A.displayName=l.Overlay.displayName;const z=r.forwardRef(({className:e,...t},o)=>a.jsxs(_,{children:[a.jsx(A,{}),a.jsx(l.Content,{ref:o,className:s("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...t})]}));z.displayName=l.Content.displayName;const q=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});q.displayName="AlertDialogHeader";const L=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});L.displayName="AlertDialogFooter";const H=r.forwardRef(({className:e,...t},o)=>a.jsx(l.Title,{ref:o,className:s("text-lg font-semibold",e),...t}));H.displayName=l.Title.displayName;const G=r.forwardRef(({className:e,...t},o)=>a.jsx(l.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));G.displayName=l.Description.displayName;const O=r.forwardRef(({className:e,...t},o)=>a.jsx(l.Action,{ref:o,className:s(w(),e),...t}));O.displayName=l.Action.displayName;const F=r.forwardRef(({className:e,...t},o)=>a.jsx(l.Cancel,{ref:o,className:s(w({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));F.displayName=l.Cancel.displayName;const B=C.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),lt=({className:e,variant:t,...o})=>a.jsx("div",{className:s(B({variant:t}),e),...o}),V=r.forwardRef(({className:e,...t},o)=>a.jsx("div",{ref:o,className:s("rounded-xl border bg-card text-card-foreground shadow",e),...t}));V.displayName="Card";const E=r.forwardRef(({className:e,...t},o)=>a.jsx("div",{ref:o,className:s("flex flex-col space-y-1.5 p-6",e),...t}));E.displayName="CardHeader";const J=r.forwardRef(({className:e,...t},o)=>a.jsx("h3",{ref:o,className:s("font-semibold leading-none tracking-tight",e),...t}));J.displayName="CardTitle";const K=r.forwardRef(({className:e,...t},o)=>a.jsx("p",{ref:o,className:s("text-sm text-muted-foreground",e),...t}));K.displayName="CardDescription";const Q=r.forwardRef(({className:e,...t},o)=>a.jsx("div",{ref:o,className:s("p-6 pt-0",e),...t}));Q.displayName="CardContent";const U=r.forwardRef(({className:e,...t},o)=>a.jsx("div",{ref:o,className:s(" flex items-center p-6 pt-0",e),...t}));U.displayName="CardFooter";const W=u.Root,ct=u.Trigger,X=({className:e,...t})=>a.jsx(u.Portal,{className:s(e),...t});X.displayName=u.Portal.displayName;const Y=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Overlay,{ref:o,className:s("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",e),...t}));Y.displayName=u.Overlay.displayName;const j=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(X,{children:[a.jsx(Y,{}),a.jsxs(u.Content,{ref:n,className:s("fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...o,children:[t,a.jsxs(u.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-accent data-[state=open]:text-muted-foreground",children:[a.jsx(f.Cross2Icon,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));j.displayName=u.Content.displayName;const Z=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Z.displayName="DialogHeader";const $=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$.displayName="DialogFooter";const ee=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Title,{ref:o,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));ee.displayName=u.Title.displayName;const te=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));te.displayName=u.Description.displayName;const D=r.forwardRef(({className:e,...t},o)=>a.jsx(m.Command,{ref:o,className:s("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));D.displayName=m.Command.displayName;const mt=({children:e,...t})=>a.jsx(W,{...t,children:a.jsx(j,{className:"overflow-hidden p-0",children:a.jsx(D,{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})})}),oe=r.forwardRef(({className:e,...t},o)=>a.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[a.jsx(f.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),a.jsx(m.Command.Input,{ref:o,className:s("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",e),...t})]}));oe.displayName=m.Command.Input.displayName;const ae=r.forwardRef(({className:e,...t},o)=>a.jsx(m.Command.List,{ref:o,className:s("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ae.displayName=m.Command.List.displayName;const se=r.forwardRef((e,t)=>a.jsx(m.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));se.displayName=m.Command.Empty.displayName;const re=r.forwardRef(({className:e,...t},o)=>a.jsx(m.Command.Group,{ref:o,className:s("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",e),...t}));re.displayName=m.Command.Group.displayName;const ne=r.forwardRef(({className:e,...t},o)=>a.jsx(m.Command.Separator,{ref:o,className:s("-mx-1 h-px bg-border",e),...t}));ne.displayName=m.Command.Separator.displayName;const de=r.forwardRef(({className:e,...t},o)=>a.jsx(m.Command.Item,{ref:o,className:s("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",e),...t}));de.displayName=m.Command.Item.displayName;const ie=({className:e,...t})=>a.jsx("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ie.displayName="CommandShortcut";const pt=d.Root,ut=d.Trigger,ft=d.Group,gt=d.Portal,xt=d.Sub,bt=d.RadioGroup,le=r.forwardRef(({className:e,inset:t,children:o,...n},c)=>a.jsxs(d.SubTrigger,{ref:c,className:s("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",t&&"pl-8",e),...n,children:[o,a.jsx(f.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));le.displayName=d.SubTrigger.displayName;const ce=r.forwardRef(({className:e,...t},o)=>a.jsx(d.SubContent,{ref:o,className:s("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",e),...t}));ce.displayName=d.SubContent.displayName;const me=r.forwardRef(({className:e,...t},o)=>a.jsx(d.Portal,{children:a.jsx(d.Content,{ref:o,className:s("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",e),...t})}));me.displayName=d.Content.displayName;const pe=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(d.Item,{ref:n,className:s("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",t&&"pl-8",e),...o}));pe.displayName=d.Item.displayName;const ue=r.forwardRef(({className:e,children:t,checked:o,...n},c)=>a.jsxs(d.CheckboxItem,{ref:c,className:s("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",e),checked:o,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(d.ItemIndicator,{children:a.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),t]}));ue.displayName=d.CheckboxItem.displayName;const fe=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(d.RadioItem,{ref:n,className:s("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",e),...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(d.ItemIndicator,{children:a.jsx(f.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));fe.displayName=d.RadioItem.displayName;const ge=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(d.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...o}));ge.displayName=d.Label.displayName;const xe=r.forwardRef(({className:e,...t},o)=>a.jsx(d.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-border",e),...t}));xe.displayName=d.Separator.displayName;const be=({className:e,...t})=>a.jsx("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});be.displayName="ContextMenuShortcut";const yt=i.Root,Nt=i.Trigger,ht=i.Group,wt=i.Portal,vt=i.Sub,Ct=i.RadioGroup,ye=r.forwardRef(({className:e,inset:t,children:o,...n},c)=>a.jsxs(i.SubTrigger,{ref:c,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,a.jsx(f.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));ye.displayName=i.SubTrigger.displayName;const Ne=r.forwardRef(({className:e,...t},o)=>a.jsx(i.SubContent,{ref:o,className:s("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",e),...t}));Ne.displayName=i.SubContent.displayName;const he=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsx(i.Portal,{children:a.jsx(i.Content,{ref:n,sideOffset:t,className:s("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",e),...o})}));he.displayName=i.Content.displayName;const we=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(i.Item,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...o}));we.displayName=i.Item.displayName;const ve=r.forwardRef(({className:e,children:t,checked:o,...n},c)=>a.jsxs(i.CheckboxItem,{ref:c,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(i.ItemIndicator,{children:a.jsx(f.CheckIcon,{className:"h-4 w-4"})})}),t]}));ve.displayName=i.CheckboxItem.displayName;const Ce=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(i.RadioItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(i.ItemIndicator,{children:a.jsx(f.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Ce.displayName=i.RadioItem.displayName;const je=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(i.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));je.displayName=i.Label.displayName;const De=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));De.displayName=i.Separator.displayName;const Re=({className:e,...t})=>a.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});Re.displayName="DropdownMenuShortcut";const jt=h.Root,Dt=h.Trigger,Te=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},c)=>a.jsx(h.Content,{ref:c,align:t,sideOffset:o,className:s("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...n}));Te.displayName=h.Content.displayName;const ke=r.forwardRef(({className:e,type:t,...o},n)=>a.jsx("input",{type:t,className:s("flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...o,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));ke.displayName="Input";const Rt=C.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Me=r.forwardRef(({className:e,...t},o)=>a.jsx(T.Root,{ref:o,className:s(Rt(),e),...t}));Me.displayName=T.Root.displayName;const Tt=N.Root,kt=N.Trigger,Se=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},c)=>a.jsx(N.Portal,{children:a.jsx(N.Content,{ref:c,align:t,sideOffset:o,className:s("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...n})}));Se.displayName=N.Content.displayName;const Ie=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(g.Root,{ref:n,className:s("relative overflow-hidden",e),...o,children:[a.jsx(g.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(R,{}),a.jsx(g.Corner,{})]}));Ie.displayName=g.Root.displayName;const R=r.forwardRef(({className:e,orientation:t="vertical",...o},n)=>a.jsx(g.ScrollAreaScrollbar,{ref:n,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...o,children:a.jsx(g.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));R.displayName=g.ScrollAreaScrollbar.displayName;const Pe=r.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...n},c)=>a.jsx(k.Root,{ref:c,decorative:o,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Pe.displayName=k.Root.displayName;const Mt=({className:e,...t})=>a.jsx("div",{className:s("animate-pulse rounded-md bg-primary/10",e),...t}),St=({...e})=>{const{theme:t="system"}=$e.useTheme();return a.jsx(et.Toaster,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},_e=r.forwardRef(({className:e,...t},o)=>a.jsx(v.Root,{className:s("peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",e),...t,ref:o,children:a.jsx(v.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950")})}));_e.displayName=v.Root.displayName;const It=b.Root,Ae=r.forwardRef(({className:e,...t},o)=>a.jsx(b.List,{ref:o,className:s("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Ae.displayName=b.List.displayName;const ze=r.forwardRef(({className:e,...t},o)=>a.jsx(b.Trigger,{ref:o,className:s("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all 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=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));ze.displayName=b.Trigger.displayName;const qe=r.forwardRef(({className:e,...t},o)=>a.jsx(b.Content,{ref:o,className:s("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));qe.displayName=b.Content.displayName;const Le=r.forwardRef(({className:e,...t},o)=>a.jsx("textarea",{className:s("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));Le.displayName="Textarea";const Pt=y.Portal,_t=y.Provider,At=y.Root,zt=y.Trigger,He=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsx(y.Content,{ref:n,sideOffset:t,className:s("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...o}));He.displayName=y.Content.displayName;exports.Accordion=nt;exports.AccordionContent=I;exports.AccordionItem=M;exports.AccordionTrigger=S;exports.AlertDialog=dt;exports.AlertDialogAction=O;exports.AlertDialogCancel=F;exports.AlertDialogContent=z;exports.AlertDialogDescription=G;exports.AlertDialogFooter=L;exports.AlertDialogHeader=q;exports.AlertDialogTitle=H;exports.AlertDialogTrigger=it;exports.Badge=lt;exports.Button=P;exports.Card=V;exports.CardContent=Q;exports.CardDescription=K;exports.CardFooter=U;exports.CardHeader=E;exports.CardTitle=J;exports.Command=D;exports.CommandDialog=mt;exports.CommandEmpty=se;exports.CommandGroup=re;exports.CommandInput=oe;exports.CommandItem=de;exports.CommandList=ae;exports.CommandSeparator=ne;exports.CommandShortcut=ie;exports.ContextMenu=pt;exports.ContextMenuCheckboxItem=ue;exports.ContextMenuContent=me;exports.ContextMenuGroup=ft;exports.ContextMenuItem=pe;exports.ContextMenuLabel=ge;exports.ContextMenuPortal=gt;exports.ContextMenuRadioGroup=bt;exports.ContextMenuRadioItem=fe;exports.ContextMenuSeparator=xe;exports.ContextMenuShortcut=be;exports.ContextMenuSub=xt;exports.ContextMenuSubContent=ce;exports.ContextMenuSubTrigger=le;exports.ContextMenuTrigger=ut;exports.Dialog=W;exports.DialogContent=j;exports.DialogDescription=te;exports.DialogFooter=$;exports.DialogHeader=Z;exports.DialogTitle=ee;exports.DialogTrigger=ct;exports.DropdownMenu=yt;exports.DropdownMenuCheckboxItem=ve;exports.DropdownMenuContent=he;exports.DropdownMenuGroup=ht;exports.DropdownMenuItem=we;exports.DropdownMenuLabel=je;exports.DropdownMenuPortal=wt;exports.DropdownMenuRadioGroup=Ct;exports.DropdownMenuRadioItem=Ce;exports.DropdownMenuSeparator=De;exports.DropdownMenuShortcut=Re;exports.DropdownMenuSub=vt;exports.DropdownMenuSubContent=Ne;exports.DropdownMenuSubTrigger=ye;exports.DropdownMenuTrigger=Nt;exports.HoverCard=jt;exports.HoverCardContent=Te;exports.HoverCardTrigger=Dt;exports.Input=ke;exports.Label=Me;exports.Popover=Tt;exports.PopoverContent=Se;exports.PopoverTrigger=kt;exports.ScrollArea=Ie;exports.ScrollBar=R;exports.Separator=Pe;exports.Skeleton=Mt;exports.Switch=_e;exports.Tabs=It;exports.TabsContent=qe;exports.TabsList=Ae;exports.TabsTrigger=ze;exports.Textarea=Le;exports.Toaster=St;exports.Tooltip=At;exports.TooltipContent=He;exports.TooltipPortal=Pt;exports.TooltipProvider=_t;exports.TooltipTrigger=zt;exports.badgeVariants=B;exports.buttonVariants=w;exports.cn=s;
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;
|
package/dist/ui.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import * as SelectPrimitive from '@radix-ui/react-select';
|
|
|
16
16
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
17
17
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
18
18
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
19
|
-
import
|
|
19
|
+
import { Toaster as Toaster_2 } from 'sonner';
|
|
20
20
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
21
21
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
22
22
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -29,29 +29,6 @@ export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<Accor
|
|
|
29
29
|
|
|
30
30
|
export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
31
31
|
|
|
32
|
-
declare type Action = {
|
|
33
|
-
toast: ToasterToast;
|
|
34
|
-
type: ActionType["ADD_TOAST"];
|
|
35
|
-
} | {
|
|
36
|
-
toast: Partial<ToasterToast>;
|
|
37
|
-
type: ActionType["UPDATE_TOAST"];
|
|
38
|
-
} | {
|
|
39
|
-
toastId?: ToasterToast["id"];
|
|
40
|
-
type: ActionType["DISMISS_TOAST"];
|
|
41
|
-
} | {
|
|
42
|
-
toastId?: ToasterToast["id"];
|
|
43
|
-
type: ActionType["REMOVE_TOAST"];
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
declare type ActionType = typeof actionTypes;
|
|
47
|
-
|
|
48
|
-
declare const actionTypes: {
|
|
49
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
50
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
51
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
52
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
53
|
-
};
|
|
54
|
-
|
|
55
32
|
export declare const Alert: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: {
|
|
56
33
|
variant?: "default" | "destructive";
|
|
57
34
|
} & ClassProp) => string> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -90,7 +67,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
90
67
|
}
|
|
91
68
|
|
|
92
69
|
export declare const badgeVariants: (props?: {
|
|
93
|
-
variant?: "default" | "
|
|
70
|
+
variant?: "default" | "destructive" | "outline" | "secondary";
|
|
94
71
|
} & ClassProp) => string;
|
|
95
72
|
|
|
96
73
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -100,7 +77,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
|
|
|
100
77
|
}
|
|
101
78
|
|
|
102
79
|
export declare const buttonVariants: (props?: {
|
|
103
|
-
variant?: "
|
|
80
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
|
|
104
81
|
size?: "default" | "sm" | "lg" | "icon";
|
|
105
82
|
} & ClassProp) => string;
|
|
106
83
|
|
|
@@ -143,14 +120,14 @@ export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
|
|
|
143
120
|
value?: string;
|
|
144
121
|
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
145
122
|
|
|
146
|
-
export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "
|
|
123
|
+
export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type"> & {
|
|
147
124
|
value?: string;
|
|
148
125
|
onValueChange?: (search: string) => void;
|
|
149
126
|
} & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
150
127
|
|
|
151
128
|
export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
|
|
152
129
|
children?: React_2.ReactNode;
|
|
153
|
-
} & Omit<React_2.HTMLAttributes<HTMLDivElement>, "
|
|
130
|
+
} & Omit<React_2.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
|
|
154
131
|
disabled?: boolean;
|
|
155
132
|
onSelect?: (value: string) => void;
|
|
156
133
|
value?: string;
|
|
@@ -286,8 +263,6 @@ export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<Popo
|
|
|
286
263
|
|
|
287
264
|
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
288
265
|
|
|
289
|
-
export declare const reducer: (state: State, action: Action) => State;
|
|
290
|
-
|
|
291
266
|
export declare const ScrollArea: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
292
267
|
|
|
293
268
|
export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -341,10 +316,6 @@ declare const sheetVariants: (props?: {
|
|
|
341
316
|
|
|
342
317
|
export declare const Skeleton: ({ className, ...props }: default_2.HTMLAttributes<HTMLDivElement>) => JSX_2.Element;
|
|
343
318
|
|
|
344
|
-
declare interface State {
|
|
345
|
-
toasts: ToasterToast[];
|
|
346
|
-
}
|
|
347
|
-
|
|
348
319
|
export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
349
320
|
|
|
350
321
|
export declare const Tabs: React_2.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -360,32 +331,9 @@ export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps &
|
|
|
360
331
|
export declare interface TextareaProps extends React_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
361
332
|
}
|
|
362
333
|
|
|
363
|
-
declare const
|
|
364
|
-
variant?: "default" | "destructive";
|
|
365
|
-
} & ClassProp) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
334
|
+
export declare const Toaster: ({ ...props }: ToasterProps) => JSX_2.Element;
|
|
366
335
|
|
|
367
|
-
|
|
368
|
-
id: string;
|
|
369
|
-
dismiss: () => void;
|
|
370
|
-
update: (props: ToasterToast) => void;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
declare type Toast_2 = Omit<ToasterToast, "id">;
|
|
374
|
-
|
|
375
|
-
declare const ToastAction: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
376
|
-
|
|
377
|
-
declare type ToastActionElement = React_2.ReactElement<typeof ToastAction>;
|
|
378
|
-
|
|
379
|
-
export declare function Toaster(): JSX_2.Element;
|
|
380
|
-
|
|
381
|
-
declare type ToasterToast = ToastProps & {
|
|
382
|
-
action?: ToastActionElement;
|
|
383
|
-
description?: React_2.ReactNode;
|
|
384
|
-
id: string;
|
|
385
|
-
title?: React_2.ReactNode;
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
336
|
+
declare type ToasterProps = React.ComponentProps<typeof Toaster_2>;
|
|
389
337
|
|
|
390
338
|
export declare const Toggle: React_2.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
391
339
|
variant?: "default" | "outline";
|
|
@@ -407,12 +355,6 @@ export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProvide
|
|
|
407
355
|
|
|
408
356
|
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
409
357
|
|
|
410
|
-
export declare function useToast(): {
|
|
411
|
-
toast: typeof toast;
|
|
412
|
-
dismiss: (toastId?: string) => void;
|
|
413
|
-
toasts: ToasterToast[];
|
|
414
|
-
};
|
|
415
|
-
|
|
416
358
|
export { }
|
|
417
359
|
|
|
418
360
|
declare global {
|
package/dist/ui.js
CHANGED
|
@@ -1,34 +1,13 @@
|
|
|
1
|
+
import { c as r } from "./tooltip-CuxBhGWF.js";
|
|
2
|
+
import { A as Q, d as U, a as W, b as X, e as Y, l as Z, m as $, g as ee, k as ae, i as te, h as oe, j as se, f as re, n as ne, B as ie, C as de, u as le, t as ce, r as me, q as pe, s as ue, v as ge, w as fe, z as be, D as xe, x as he, E as Ce, y as ve, G as ye, F as we, H as Ne, L as Se, J as De, Q as Te, K as Me, N as Ae, R as Re, W as Ie, M as ke, O as Pe, P as Ve, T as ze, U as He, V as Le, I as je, X as Ge, Z as Fe, a1 as Be, $ as Oe, _ as qe, a0 as Ee, Y as _e, a2 as Je, a6 as Ke, a4 as Qe, ab as Ue, a5 as We, a8 as Xe, ac as Ye, ag as Ze, a7 as $e, a9 as ea, aa, ad as ta, ae as oa, af as sa, a3 as ra, ah as na, aj as ia, ai as da, ak as la, al as ca, am as ma, ao as pa, an as ua, ap as ga, aq as fa, ar as ba, S as xa, at as ha, au as Ca, ax as va, av as ya, aw as wa, ay as Na, as as Sa, az as Da, aB as Ta, aD as Ma, aC as Aa, aA as Ra, o as Ia, p as ka } from "./tooltip-CuxBhGWF.js";
|
|
1
3
|
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
4
|
import * as i from "react";
|
|
3
|
-
import * as p from "@radix-ui/react-toggle";
|
|
4
5
|
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
6
|
import { CaretSortIcon as f, CheckIcon as b, Cross2Icon as x } from "@radix-ui/react-icons";
|
|
8
7
|
import * as s from "@radix-ui/react-select";
|
|
9
8
|
import * as n from "@radix-ui/react-dialog";
|
|
9
|
+
import * as p from "@radix-ui/react-toggle";
|
|
10
10
|
const h = m(
|
|
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",
|
|
12
|
-
{
|
|
13
|
-
variants: {
|
|
14
|
-
variant: {
|
|
15
|
-
default: "bg-transparent",
|
|
16
|
-
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
default: "h-10 px-3",
|
|
20
|
-
sm: "h-9 px-2.5",
|
|
21
|
-
lg: "h-11 px-5"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
variant: "default",
|
|
26
|
-
size: "default"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
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(
|
|
32
11
|
"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",
|
|
33
12
|
{
|
|
34
13
|
variants: {
|
|
@@ -41,17 +20,17 @@ const v = m(
|
|
|
41
20
|
variant: "default"
|
|
42
21
|
}
|
|
43
22
|
}
|
|
44
|
-
),
|
|
45
|
-
|
|
46
|
-
const
|
|
23
|
+
), C = i.forwardRef(({ className: e, variant: a, ...t }, d) => /* @__PURE__ */ o("div", { ref: d, role: "alert", className: r(h({ variant: a }), e), ...t }));
|
|
24
|
+
C.displayName = "Alert";
|
|
25
|
+
const v = i.forwardRef(
|
|
47
26
|
({ className: e, ...a }, t) => /* @__PURE__ */ o("h5", { ref: t, className: r("mb-1 font-medium leading-none tracking-tight", e), ...a })
|
|
48
27
|
);
|
|
49
|
-
|
|
50
|
-
const
|
|
28
|
+
v.displayName = "AlertTitle";
|
|
29
|
+
const y = i.forwardRef(
|
|
51
30
|
({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("text-sm [&_p]:leading-relaxed", e), ...a })
|
|
52
31
|
);
|
|
53
|
-
|
|
54
|
-
const F = s.Root, B = s.Group, O = s.Value,
|
|
32
|
+
y.displayName = "AlertDescription";
|
|
33
|
+
const F = s.Root, B = s.Group, O = s.Value, w = i.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ c(
|
|
55
34
|
s.Trigger,
|
|
56
35
|
{
|
|
57
36
|
ref: d,
|
|
@@ -66,8 +45,8 @@ const F = s.Root, B = s.Group, O = s.Value, S = i.forwardRef(({ className: e, ch
|
|
|
66
45
|
]
|
|
67
46
|
}
|
|
68
47
|
));
|
|
69
|
-
|
|
70
|
-
const
|
|
48
|
+
w.displayName = s.Trigger.displayName;
|
|
49
|
+
const N = i.forwardRef(({ className: e, children: a, position: t = "popper", ...d }, l) => /* @__PURE__ */ o(s.Portal, { children: /* @__PURE__ */ o(
|
|
71
50
|
s.Content,
|
|
72
51
|
{
|
|
73
52
|
ref: l,
|
|
@@ -90,10 +69,10 @@ const D = i.forwardRef(({ className: e, children: a, position: t = "popper", ...
|
|
|
90
69
|
)
|
|
91
70
|
}
|
|
92
71
|
) }));
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
const
|
|
72
|
+
N.displayName = s.Content.displayName;
|
|
73
|
+
const S = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Label, { ref: t, className: r("px-2 py-1.5 text-sm font-semibold", e), ...a }));
|
|
74
|
+
S.displayName = s.Label.displayName;
|
|
75
|
+
const D = i.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ c(
|
|
97
76
|
s.Item,
|
|
98
77
|
{
|
|
99
78
|
ref: d,
|
|
@@ -108,10 +87,10 @@ const M = i.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__
|
|
|
108
87
|
]
|
|
109
88
|
}
|
|
110
89
|
));
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
const
|
|
90
|
+
D.displayName = s.Item.displayName;
|
|
91
|
+
const T = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", e), ...a }));
|
|
92
|
+
T.displayName = s.Separator.displayName;
|
|
93
|
+
const q = n.Root, E = n.Trigger, _ = n.Close, u = ({ className: e, ...a }) => /* @__PURE__ */ o(n.Portal, { className: r(e), ...a });
|
|
115
94
|
u.displayName = n.Portal.displayName;
|
|
116
95
|
const g = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
117
96
|
n.Overlay,
|
|
@@ -125,7 +104,7 @@ const g = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
125
104
|
}
|
|
126
105
|
));
|
|
127
106
|
g.displayName = n.Overlay.displayName;
|
|
128
|
-
const
|
|
107
|
+
const M = m(
|
|
129
108
|
"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",
|
|
130
109
|
{
|
|
131
110
|
variants: {
|
|
@@ -140,10 +119,10 @@ const R = m(
|
|
|
140
119
|
side: "right"
|
|
141
120
|
}
|
|
142
121
|
}
|
|
143
|
-
),
|
|
122
|
+
), A = i.forwardRef(
|
|
144
123
|
({ side: e = "right", className: a, children: t, ...d }, l) => /* @__PURE__ */ c(u, { children: [
|
|
145
124
|
/* @__PURE__ */ o(g, {}),
|
|
146
|
-
/* @__PURE__ */ c(n.Content, { ref: l, className: r(
|
|
125
|
+
/* @__PURE__ */ c(n.Content, { ref: l, className: r(M({ side: e }), a), ...d, children: [
|
|
147
126
|
t,
|
|
148
127
|
/* @__PURE__ */ c(n.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
149
128
|
/* @__PURE__ */ o(x, { className: "h-4 w-4" }),
|
|
@@ -152,22 +131,43 @@ const R = m(
|
|
|
152
131
|
] })
|
|
153
132
|
] })
|
|
154
133
|
);
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
|
|
134
|
+
A.displayName = n.Content.displayName;
|
|
135
|
+
const R = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
|
|
136
|
+
R.displayName = "SheetHeader";
|
|
137
|
+
const I = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
|
|
138
|
+
I.displayName = "SheetFooter";
|
|
139
|
+
const k = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Title, { ref: t, className: r("text-lg font-semibold text-foreground", e), ...a }));
|
|
140
|
+
k.displayName = n.Title.displayName;
|
|
141
|
+
const P = i.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
|
|
142
|
+
P.displayName = n.Description.displayName;
|
|
143
|
+
const V = m(
|
|
144
|
+
"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
|
+
{
|
|
146
|
+
variants: {
|
|
147
|
+
variant: {
|
|
148
|
+
default: "bg-transparent",
|
|
149
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
150
|
+
},
|
|
151
|
+
size: {
|
|
152
|
+
default: "h-10 px-3",
|
|
153
|
+
sm: "h-9 px-2.5",
|
|
154
|
+
lg: "h-11 px-5"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
defaultVariants: {
|
|
158
|
+
variant: "default",
|
|
159
|
+
size: "default"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
), z = i.forwardRef(({ className: e, variant: a, size: t, ...d }, l) => /* @__PURE__ */ o(p.Root, { ref: l, className: r(V({ variant: a, size: t, className: e })), ...d }));
|
|
163
|
+
z.displayName = p.Root.displayName;
|
|
164
164
|
export {
|
|
165
165
|
Q as Accordion,
|
|
166
166
|
U as AccordionContent,
|
|
167
167
|
W as AccordionItem,
|
|
168
168
|
X as AccordionTrigger,
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
C as Alert,
|
|
170
|
+
y as AlertDescription,
|
|
171
171
|
Y as AlertDialog,
|
|
172
172
|
Z as AlertDialogAction,
|
|
173
173
|
$ as AlertDialogCancel,
|
|
@@ -177,7 +177,7 @@ export {
|
|
|
177
177
|
oe as AlertDialogHeader,
|
|
178
178
|
se as AlertDialogTitle,
|
|
179
179
|
re as AlertDialogTrigger,
|
|
180
|
-
|
|
180
|
+
v as AlertTitle,
|
|
181
181
|
ne as Badge,
|
|
182
182
|
ie as Button,
|
|
183
183
|
de as Card,
|
|
@@ -207,15 +207,15 @@ export {
|
|
|
207
207
|
Pe as ContextMenuSeparator,
|
|
208
208
|
Ve as ContextMenuShortcut,
|
|
209
209
|
ze as ContextMenuSub,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
He as ContextMenuSubContent,
|
|
211
|
+
Le as ContextMenuSubTrigger,
|
|
212
|
+
je as ContextMenuTrigger,
|
|
213
|
+
Ge as Dialog,
|
|
214
214
|
Fe as DialogContent,
|
|
215
215
|
Be as DialogDescription,
|
|
216
216
|
Oe as DialogFooter,
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
qe as DialogHeader,
|
|
218
|
+
Ee as DialogTitle,
|
|
219
219
|
_e as DialogTrigger,
|
|
220
220
|
Je as DropdownMenu,
|
|
221
221
|
Ke as DropdownMenuCheckboxItem,
|
|
@@ -243,22 +243,22 @@ export {
|
|
|
243
243
|
ga as ScrollArea,
|
|
244
244
|
fa as ScrollBar,
|
|
245
245
|
F as Select,
|
|
246
|
-
|
|
246
|
+
N as SelectContent,
|
|
247
247
|
B as SelectGroup,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
248
|
+
D as SelectItem,
|
|
249
|
+
S as SelectLabel,
|
|
250
|
+
T as SelectSeparator,
|
|
251
|
+
w as SelectTrigger,
|
|
252
252
|
O as SelectValue,
|
|
253
253
|
ba as Separator,
|
|
254
|
-
|
|
254
|
+
q as Sheet,
|
|
255
255
|
_ as SheetClose,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
256
|
+
A as SheetContent,
|
|
257
|
+
P as SheetDescription,
|
|
258
|
+
I as SheetFooter,
|
|
259
|
+
R as SheetHeader,
|
|
260
|
+
k as SheetTitle,
|
|
261
|
+
E as SheetTrigger,
|
|
262
262
|
xa as Skeleton,
|
|
263
263
|
ha as Switch,
|
|
264
264
|
Ca as Tabs,
|
|
@@ -267,7 +267,7 @@ export {
|
|
|
267
267
|
wa as TabsTrigger,
|
|
268
268
|
Na as Textarea,
|
|
269
269
|
Sa as Toaster,
|
|
270
|
-
|
|
270
|
+
z as Toggle,
|
|
271
271
|
Da as Tooltip,
|
|
272
272
|
Ta as TooltipContent,
|
|
273
273
|
Ma as TooltipPortal,
|
|
@@ -275,8 +275,5 @@ export {
|
|
|
275
275
|
Ra as TooltipTrigger,
|
|
276
276
|
Ia as badgeVariants,
|
|
277
277
|
ka as buttonVariants,
|
|
278
|
-
|
|
279
|
-
Va as toast,
|
|
280
|
-
h as toggleVariants,
|
|
281
|
-
za as useToast
|
|
278
|
+
V as toggleVariants
|
|
282
279
|
};
|