{"version":3,"file":"index.cjs","sources":["../src/components/Input.tsx"],"sourcesContent":["import React from 'react';\r\n\r\ntype InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';\r\n\r\nexport interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {\r\n\ttype?: InputType;\r\n\tlabel?: string;\r\n\terror?: string;\r\n\tcontainerClassName?: string;\r\n}\r\n\r\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(({ type = 'text', label, error, className = '', containerClassName = '', ...props }, ref) => {\r\n\treturn (\r\n\t\t<div className={`mb-4 ${containerClassName}`}>\r\n\t\t\t{label && <label className=\"block text-sm font-medium text-gray-700 mb-1\">{label}</label>}\r\n\t\t\t<input\r\n\t\t\t\tref={ref}\r\n\t\t\t\ttype={type}\r\n\t\t\t\tclassName={`w-full px-3 py-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 transition-colors ${error ? 'border-red-500' : 'border-gray-300'} ${\r\n\t\t\t\t\tprops.disabled ? 'bg-gray-100 cursor-not-allowed' : ''\r\n\t\t\t\t} ${className}`}\r\n\t\t\t\t{...props}\r\n\t\t\t/>\r\n\t\t\t{error && <p className=\"mt-1 text-sm text-red-600\">{error}</p>}\r\n\t\t</div>\r\n\t);\r\n});\r\n\r\nInput.displayName = 'Input';\r\n\r\nexport default Input;\r\n"],"names":["Input","forwardRef","_ref","ref","_ref$type","type","label","error","_ref$className","className","_ref$containerClassNa","containerClassName","props","_objectWithoutPropertiesLoose","_excluded","_jsxs","children","_jsx","_extends","disabled","jsx","displayName"],"mappings":"sZAWMA,oBAAa,QAACC,WAAyC,SAAAC,EAAqFC,OAAOC,EAAAF,EAAzFG,KAAAA,OAAO,IAAHD,EAAG,OAAMA,EAAEE,EAAKJ,EAALI,MAAOC,EAAKL,EAALK,MAAKC,EAAAN,EAAEO,UAAAA,WAASD,EAAG,GAAEA,EAAAE,EAAAR,EAAES,mBAAAA,OAAkB,IAAAD,EAAG,GAAEA,EAAKE,6IAAKC,CAAAX,EAAAY,GAC7I,OACCC,OAAA,MAAA,CAAKN,UAAmBE,QAAAA,EACtBK,SAAA,CAAAV,GAASW,MAAA,QAAA,CAAOR,UAAU,+CAAgDO,SAAAV,IAC3EW,EAAAA,IACC,QAAAC,EAAA,CAAAf,IAAKA,EACLE,KAAMA,EACNI,UAAiIF,uHAAAA,EAAQ,iBAAmB,mBAAiB,KAC5KK,EAAMO,SAAW,iCAAmC,IACjDV,IAAAA,GACAG,IAEJL,GAASU,EAAAG,IAAA,IAAA,CAAGX,UAAU,4BAA6BO,SAAAT,MAGvD,GAEAP,EAAMqB,YAAc"}