import{j as o,r as s}from"./app-C796L9fe.js";function f({message:r,className:e="",...t}){return r?o.jsx("p",{...t,className:"text-sm text-red-600 dark:text-red-400 "+e,children:r}):null}function l({value:r,className:e="",children:t,...a}){return o.jsx("label",{...a,className:"block text-sm font-medium text-gray-700 dark:text-gray-300 "+e,children:r||t})}const x=s.forwardRef(function({type:e="text",className:t="",isFocused:a=!1,...u},d){const n=s.useRef(null);return s.useImperativeHandle(d,()=>({focus:()=>n.current?.focus()})),s.useEffect(()=>{a&&n.current?.focus()},[a]),o.jsx("input",{...u,type:e,className:"rounded-md border-gray-350 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:focus:border-emerald-600 dark:focus:ring-emerald-600 "+t,ref:n})});export{l as I,x as T,f as a};
