2 lines
1018 B
JavaScript
Raw Normal View History

import{j as a}from"./jsx-runtime-D_zvdyIk.js";import{r as n}from"./index-JhL3uwfD.js";import{c as p}from"./cn-CDN07tui.js";import"./index-BKyvj4H5.js";const e=n.forwardRef(({className:o,type:d,error:t,...s},i)=>{const r=!!t;return a.jsx("input",{type:d,className:p("flex h-11 w-full rounded-lg border border-border bg-card text-foreground px-4 py-2.5 text-sm shadow-sm ring-offset-background","cp-input-focus","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground","hover:border-muted-foreground/50","focus-visible:outline-none focus-visible:border-primary","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-border",r&&"border-danger hover:border-danger focus-visible:border-danger cp-input-error-shake",o),"aria-invalid":r||void 0,ref:i,...s})});e.displayName="Input";e.__docgenInfo={description:"",methods:[],displayName:"Input",props:{error:{required:!1,tsType:{name:"ReactNode"},description:""}},composes:["InputHTMLAttributes"]};export{e as I};