"use strict";const e=require("react/jsx-runtime"),E=require("./text-input-BlxK2Naj.cjs.js"),r=require("./form-field-FdRNl2bZ.cjs.js"),T=require("./field-errors-aqrV93vp.cjs.js"),o=({id:d,label:F,description:s,info:t,errors:l,onChange:x,renderError:c,touched:u=!1,isRequired:a=!1,isDisabled:m=!1,isReadOnly:j=!1,isInvalid:I=!1,size:i="md",value:f,placeholder:h,type:p="text",...q})=>{const n=u&&l&&Object.values(l).some(Boolean);return e.jsxs(r.FormField.Root,{id:d,size:i,isRequired:a,isDisabled:m,isReadOnly:j,isInvalid:n||I,children:[e.jsx(r.FormField.Label,{children:F}),e.jsx(r.FormField.Input,{children:e.jsx(E.TextInput,{...q,size:i,type:p,placeholder:h,onChange:x,value:f})}),s&&e.jsx(r.FormField.Description,{children:s}),n&&e.jsx(r.FormField.Error,{children:e.jsx(T.FieldErrors,{errors:l,renderError:c})}),t&&e.jsx(r.FormField.InfoBox,{children:t})]})};o.displayName="TextInputField";exports.TextInputField=o;
//# sourceMappingURL=text-input-field-Cmht3hDK.cjs.js.map
