import{r as l,j as r,O as d,w as c,G as m}from"./index-C-gKvEDq.js";var p="Label",o=l.forwardRef((e,t)=>r.jsx(d.label,{...e,ref:t,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));o.displayName=p;var i=o;const f=m("text-sm leading-[21px] font-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=l.forwardRef(({className:e,required:t,children:a,...s},n)=>r.jsxs(i,{ref:n,className:c(f(),e),...s,children:[a,t&&r.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}));u.displayName=i.displayName;export{u as L};
