import{r as d,t as u,f as m,j as e,h as f}from"./main-few-lands-burn.js";import{T as h}from"./index-ubWv-fhI.js";import{I as y}from"./index-DAhFlZRY.js";const{Text:t}=h;function j({helperText:o,invalidMessage:r,label:n,onRender:i,status:s,wrapperClassName:p,...c}){const a=d.useId(),{token:l}=u.useToken();return d.useEffect(()=>{i?.()},[]),m("div",{className:p,children:[n&&m("label",{className:"d-b mb-1 font-medium",css:f({color:l.colorText},"",""),htmlFor:a,children:[n,c.required&&e(t,{className:"leading-none",type:"danger",children:"*"})]}),e(y,{"data-testid":"inputComponent",id:a,status:s,...c}),s==="error"&&r&&e(t,{type:"danger",children:r}),!r&&o&&e(t,{type:"secondary",children:o})]})}export{j as I};
