import{j as t,a as s}from"./jsx-runtime-5BUNAZ9W.js";import{c as r}from"./cn-466VSCev.js";import{$ as m,a as f,b,c as T,d as h,e as u,f as _,g as k}from"./index-qX7SgqCB.js";import{c as H}from"./index-polp_dyw.js";import{r as i}from"./index-4g5l5LRQ.js";import{X as C}from"./x-ibAhgmcn.js";import"./index-VfKohXEB.js";import"./extends-dGVwEr9R.js";import"./index-zaNpaTzt.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-dNGI4_9C.js";import"./index-pbeB-vsG.js";import"./index-tktZLsKA.js";import"./index-gUvWXRra.js";import"./index-gxNcLOY3.js";import"./index-nyvS1vus.js";import"./index-TrPPXL0M.js";import"./index-VGGqXfCL.js";import"./index-rFlDZKmw.js";import"./index-r79zT-RW.js";import"./createLucideIcon-SOGh5HrW.js";const g=_,O=k,y=({className:e,...a})=>t(m,{className:r(e),...a});y.displayName=m.displayName;const x=i.forwardRef(({className:e,...a},o)=>t(f,{className:r("fixed inset-0 z-50 bg-background-overlay 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),...a,ref:o}));x.displayName=f.displayName;const R=H("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b border-b-border data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t border-t-border 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 border-r-border 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 border-l-border data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),S=i.forwardRef(({side:e="right",className:a,children:o,...w},v)=>s(y,{children:[t(x,{}),s(b,{ref:v,className:r(R({side:e}),a),...w,children:[o,s(T,{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-border-info focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-background-strong",children:[t(C,{className:"h-4 w-4"}),t("span",{className:"sr-only",children:"Close"})]})]})]}));S.displayName=b.displayName;const n=({className:e,...a})=>t("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...a});n.displayName="SheetHeader";const $=i.forwardRef(({className:e,...a},o)=>t(h,{ref:o,className:r("text-lg font-semibold text-text",e),...a}));$.displayName=h.displayName;const N=i.forwardRef(({className:e,...a},o)=>t(u,{ref:o,className:r("text-sm text-text-weak",e),...a}));N.displayName=u.displayName;try{n.displayName="SheetHeader",n.__docgenInfo={description:"",displayName:"SheetHeader",props:{}}}catch{}const Z={title:"ui/Sheet",component:g,tags:["autodocs"],argTypes:{}},d={render:e=>s(g,{children:[t(O,{children:"Open"}),t(S,{children:s(n,{children:[t($,{children:"Are you sure absolutely sure?"}),t(N,{children:"This action cannot be undone. This will permanently delete your account and remove your data from our servers."})]})})]}),args:{}};var c,l,p;d.parameters={...d.parameters,docs:{...(c=d.parameters)==null?void 0:c.docs,source:{originalSource:`{
  render: args => <Sheet>
      <SheetTrigger>Open</SheetTrigger>
      <SheetContent>
        <SheetHeader>
          <SheetTitle>Are you sure absolutely sure?</SheetTitle>
          <SheetDescription>
            This action cannot be undone. This will permanently delete your
            account and remove your data from our servers.
          </SheetDescription>
        </SheetHeader>
      </SheetContent>
    </Sheet>,
  args: {}
}`,...(p=(l=d.parameters)==null?void 0:l.docs)==null?void 0:p.source}}};const ee=["Base"];export{d as Base,ee as __namedExportsOrder,Z as default};
