import{z as r,j as s,F as a}from"./vendor-CT-JknSv.chunk.js";import{l as n,i as o,bx as c,j as i}from"./index-DDZqnj79.js";function x({htmlFor:e,...t}){return s("label",{css:b,htmlFor:e,...t})}const b=r({display:"block",fontSize:"15px",lineHeight:"20px",fontWeight:n.weight.medium,color:o.label});function m({errorMessage:e,suffix:t,...p}){return a("div",{children:[a("div",{css:l.wrapper,children:[s("input",{[d.error]:!!e,css:l.input,...p}),t&&s("div",{css:l.suffix,children:t})]}),e&&s("p",{css:l.errorMessage,children:e})]})}const d={error:"data-error"},u=c(d),l={wrapper:r({position:"relative"}),input:r({background:o.pageColor,border:"1px solid",borderRadius:"8px",color:o.label,fontSize:"15px",fontWeight:n.weight.book,lineHeight:"20px",outline:"none",padding:"17px 20px",width:"100%",borderColor:o.label100,[u.error]:{borderColor:i.nebulaRed500},"&:focus":{borderColor:i.blue400},"&:disabled":{color:o.label300,backgroundColor:o.systemBackground,borderColor:o.label100},'&[type="date"]':{WebkitAppearance:"none",MozAppearance:"none","::-webkit-date-and-time-value":{textAlign:"start"}}}),suffix:r({position:"absolute",height:"56px",bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center"}),errorMessage:r({color:i.nebulaRed500,marginTop:8})};export{x as F,m as a};