globalThis.process??={},globalThis.process.env??={};import{i as e,t}from"./react.DbQyqGaC.js";import{t as n}from"./jsx-runtime.Cwe9agoV.js";import{r,t as i}from"./cva.v6DJ-q0A.js";import{r as a}from"./Input.Dmk1pnOs.js";var o=e(t(),1),s=n(),c=r(`w-full border border-border bg-surface text-fg rounded-md focus-visible:outline focus-visible:outline-accent disabled:opacity-50 disabled:cursor-not-allowed px-3 py-2 text-base`,{variants:{invalid:{true:`border-danger`,false:``}},defaultVariants:{invalid:!1}}),l=o.forwardRef(({className:e,invalid:t,id:n,"aria-invalid":r,"aria-describedby":o,...l},u)=>{let d=a(),f=t??d?.invalid??!1;return(0,s.jsx)(`textarea`,{ref:u,id:n??d?.id,"aria-invalid":r??(f?!0:void 0),"aria-describedby":o??d?.describedBy,"aria-required":l.required??d?.required,className:i(c({invalid:f}),e),...l})});l.displayName=`Textarea`;export{l as t};