'use strict';

var chunk5XB54L7P_cjs = require('./chunk-5XB54L7P.cjs');
var css = require('@onbeam/styled-system/css');
var recipes = require('@onbeam/styled-system/recipes');
var jsxRuntime = require('react/jsx-runtime');

var m=chunk5XB54L7P_cjs.a(({as:d="input",size:u="md",label:l,hasError:c=!1,errorMessage:o,leftAddon:s,rightAddon:n,className:I,...f},v)=>{let p=!!o||c,r=recipes.input({size:u});return jsxRuntime.jsxs("label",{className:css.cx(r.root,I),children:[l,jsxRuntime.jsx("div",{className:css.cx(recipes.gridBackground(),r.inputWrapper),"data-error":p,children:jsxRuntime.jsxs("div",{className:r.inputContainer,"data-error":p,children:[s&&jsxRuntime.jsx("div",{className:css.cx(r.addon,r.leftAddon),children:s}),jsxRuntime.jsx(d,{ref:v,className:r.input,rows:1,"data-error":p,...f}),n&&jsxRuntime.jsx("div",{className:r.addon,children:n})]})}),o]})});m.displayName="Input";

exports.a = m;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-YF5YSZHI.cjs.map