import{j as e}from"./index-BVAJPyoi.js";const y=({type:d="text",id:c,name:u,placeholder:l,value:x,onChange:n,className:b="",min:g,max:f,step:i,disabled:s=!1,success:a=!1,error:t=!1,required:p=!1,hint:o})=>{let r=` h-11 w-full rounded-lg border appearance-none px-4 py-2.5 text-sm shadow-theme-xs placeholder:text-gray-400 focus:outline-hidden focus:ring-3  dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 ${b}`;return s?r+=" text-gray-500 border-gray-300 opacity-40 bg-gray-100 cursor-not-allowed dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 opacity-40":t?r+="  border-error-500 focus:border-error-300 focus:ring-error-500/20 dark:text-error-400 dark:border-error-500 dark:focus:border-error-800":a?r+="  border-success-500 focus:border-success-300 focus:ring-success-500/20 dark:text-success-400 dark:border-success-500 dark:focus:border-success-800":r+=" bg-transparent text-gray-800 border-gray-300 focus:border-brand-300 focus:ring-brand-500/20 dark:border-gray-700 dark:text-white/90  dark:focus:border-brand-800",e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:d,id:c,name:u,placeholder:l,value:x,onChange:n,min:g,max:f,step:i,disabled:s,required:p,className:r}),o&&e.jsx("p",{className:`mt-1.5 text-xs ${t?"text-error-500":a?"text-success-500":"text-gray-500"}`,children:o})]})};export{y as I};
