"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs38.js"),y=require("react"),u=require("./index.cjs40.js"),e=require("./index.cjs44.js"),l=y.forwardRef(({size:i="md",startIcon:t,endIcon:s,fullWidth:n=!1,error:r=!1,errorMessageId:p,disabled:d,placeholder:c,type:o="text","aria-label":f,"aria-invalid":x,"aria-required":m,"aria-describedby":j,className:b,id:R,...h},q)=>{const w=[j,r&&p].filter(Boolean).join(" ")||void 0;return a.jsxRuntimeExports.jsxs("div",{"data-atme-ui":!0,className:u(e.default.wrapper,e.default[`wrapper--${i}`],n&&e.default["wrapper--fullWidth"],r&&e.default["wrapper--error"],d&&e.default["wrapper--disabled"]),children:[t&&a.jsxRuntimeExports.jsx("span",{className:e.default.iconStart,"aria-hidden":"true",children:t}),a.jsxRuntimeExports.jsx("input",{ref:q,id:R,type:o,className:u(e.default.input,b),placeholder:c,disabled:d,"aria-label":f,"aria-invalid":x??r,"aria-required":m,"aria-describedby":w,"data-size":i,...h}),s&&a.jsxRuntimeExports.jsx("span",{className:e.default.iconEnd,"aria-hidden":"true",children:s})]})});l.displayName="Input";exports.Input=l;
//# sourceMappingURL=index.cjs14.js.map
