"use strict";const w=require("./jsx-runtime-Dszzpdy0.cjs"),e=require("./css-HnNQMUzV.cjs"),j=require("zod"),A=require("react"),a=({el:r,children:t,...u})=>A.createElement(r,u,t),V=Object.freeze(Object.defineProperty({__proto__:null,Element:a},Symbol.toStringTag,{value:"Module"})),p=["start","center","end","stretch"],D=j.enum(p),_=["start","center","end","between","around","evenly"],F=j.enum(_),N=(r,t)=>t??(r==="right"||r==="bottom"),C=(r,t,u,S)=>{if(t===!0)return"x";if(u===!0)return"y";if(r!=null)return e.p.construct(r);if(S==!0)return"x"},L=r=>r==null||r===!1?!1:r===!0?e.CSS.M("full"):e.CSS.M("full",r),g=({style:r,align:t,className:u,grow:S,shrink:f,gap:i,color:o,justify:M,reverse:v,empty:E,pack:m,wrap:T,center:q,direction:b,rounded:c,sharp:y,borderWidth:B,borderColor:l,full:G,background:s,bordered:I,x:O,y:R,size:h,square:$=!1,...x})=>{const d=C(b,O,R,m),n=[u,e.CSS.B("flex"),d!=null&&e.CSS.M("direction",d),N(b,v)&&e.CSS.M("reverse"),L(G),m&&e.CSS.M("pack"),M!=null&&e.CSS.M("justify",M),t!=null&&e.CSS.M("align",t),T===!0&&e.CSS.M("wrap"),E===!0&&e.CSS.M("empty"),q===!0&&e.CSS.M("center"),I===!0&&e.CSS.M("bordered"),y===!0&&e.CSS.M("sharp"),h!=null&&e.CSS.M("height",h),$===!0&&e.CSS.M("square")];return r={borderWidth:B,...r},typeof o=="number"?n.push(e.CSS.M("color",o.toString())):o!=null&&o!==!1&&(r.color=e.CSS.colorVar(o)),typeof s=="number"?n.push(e.CSS.M("bg",s.toString())):s!=null&&s!==!1&&(r.backgroundColor=e.CSS.colorVar(s)),typeof l=="number"?n.push(e.CSS.M("border-color",l.toString())):l!=null&&(r.borderColor=e.CSS.colorVar(l)),c===!0?n.push(e.CSS.M("rounded")):typeof c=="number"&&(r.borderRadius=`${c}rem`),typeof i=="number"?r.gap=`${i}rem`:i!=null&&n.push(e.CSS.M("gap",i)),typeof S=="number"?r.flexGrow=S:S===!0&&n.push(e.CSS.M("grow")),typeof f=="number"?r.flexShrink=f:f===!0&&n.push(e.CSS.M("shrink")),w.jsxRuntimeExports.jsx(a,{className:e.CSS(...n),style:r,...x,el:x.el??"div"})},P=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:p,Box:g,JUSTIFICATIONS:_,alignmentZ:D,justificationZ:F,parseDirection:C,shouldReverse:N},Symbol.toStringTag,{value:"Module"}));exports.ALIGNMENTS=p;exports.Box=P;exports.Box$1=g;exports.Element=a;exports.Generic=V;exports.parseDirection=C;
