"use strict";const n=require("./jsx-runtime-Dszzpdy0.cjs"),e=require("./main-BnSpWlaf.cjs"),r=require("./css-B0VZnJIa.cjs");require("./provider-Fw6FIHoE.cjs");require("react");require("react-dom");const f=t=>n.jsxRuntimeExports.jsx(e.Boolean,{...t,inputType:"checkbox"}),c=({className:t,variant:i,...s})=>n.jsxRuntimeExports.jsx(e.Text,{className:r.CSS(r.CSS.B("input-help-text"),t),color:8,status:r.Xr.removeVariants(i,"success"),level:"small",...s}),S=({className:t,required:i=!1,children:s,...u})=>n.jsxRuntimeExports.jsxs("label",{className:r.CSS(r.CSS.B("input-label"),t),...u,children:[s," ",i&&n.jsxRuntimeExports.jsx("span",{className:r.CSS.B("required-indicator"),children:"*"})]}),C=(t,i="y")=>t??(r.p.construct(i)==="y"?"stretch":"center"),d=({label:t,showLabel:i=!0,helpText:s,direction:u,x:g,y:E,className:R,children:a,required:D,align:h,gap:b="small",padHelpText:m=!1,status:x,showHelpText:j=!0,...y})=>{const l=e.parseDirection(u,g,E,!1);let o;const B=j&&s!=null&&s.length>0,p=i&&t!=null&&t.length>0;return!B&&!p?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:a}):(l==="x"?o=n.jsxRuntimeExports.jsxs(e.Box,{y:!0,gap:"small",children:[a,j&&(m||s!=null&&s.length>0)&&n.jsxRuntimeExports.jsx(c,{variant:x,children:s})]}):o=n.jsxRuntimeExports.jsxs(e.Box,{y:!0,gap:1/3,align:"stretch",children:[a,(m||s!=null&&s.length>0)&&n.jsxRuntimeExports.jsx(c,{variant:x,children:s})]}),n.jsxRuntimeExports.jsxs(e.Box,{className:r.CSS(r.CSS.BE("input","item"),R),direction:l,gap:b,align:C(h,l),...y,children:[p&&n.jsxRuntimeExports.jsx(S,{required:D,children:t}),o]}))},q=Object.freeze(Object.defineProperty({__proto__:null,Checkbox:f,Date:e.Date,DateTime:e.DateTime,DragButton:e.DragButton,HelpText:c,Item:d,Label:S,Numeric:e.Numeric,Switch:e.Switch$1,Text:e.Text$2,Time:e.Time,combineDateAndTimeValue:e.combineDateAndTimeValue,useDate:e.useDate,useTime:e.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=d;exports.external=q;
