import{r as e,j as r}from"./vendor-react-wBh_31cN.js";import{d as c}from"./index-dNe6i2rS.js";import{I as i,a as u,b as m,c as x}from"./input-group-gxy3DSmS.js";import{$ as h,Y as d}from"./vendor-icons-BUUmD6ht.js";const j=e.forwardRef(({className:t,value:s,onClear:a,...o},n)=>{const p=a&&s&&String(s).length>0;return r.jsxs(i,{className:c(t),children:[r.jsx(u,{children:r.jsx(h,{})}),r.jsx(m,{ref:n,value:s,...o}),p&&r.jsx(x,{variant:"ghost",size:"icon-xs",onClick:a,"aria-label":"Clear search",children:r.jsx(d,{})})]})});j.displayName="SearchInput";export{j as S};
