"use strict";const e=require("react/jsx-runtime"),b=require("./number-input-CR1hdy-B.cjs.js"),r=require("./form-field-FdRNl2bZ.cjs.js"),f=require("./field-errors-aqrV93vp.cjs.js"),u=({id:l,label:t,description:i,info:n,errors:s,renderError:F,touched:m=!1,isRequired:c=!1,isDisabled:a=!1,isReadOnly:j=!1,isInvalid:x=!1,size:o="md",...I})=>{const d=m&&s&&Object.values(s).some(Boolean);return e.jsxs(r.FormField.Root,{id:l,size:o,isInvalid:d||x,isRequired:c,isDisabled:a,isReadOnly:j,children:[e.jsx(r.FormField.Label,{children:t}),e.jsx(r.FormField.Input,{children:e.jsx(b.NumberInput,{size:o,...I})}),i&&e.jsx(r.FormField.Description,{children:i}),n&&e.jsx(r.FormField.InfoBox,{children:n}),d&&e.jsx(r.FormField.Error,{children:e.jsx(f.FieldErrors,{id:`${l}-errors`,errors:s,renderError:F})})]})};u.displayName="NumberInputField";exports.NumberInputField=u;
//# sourceMappingURL=number-input-field-BDNpAP6t.cjs.js.map
