"use strict";const A=require("./jsx-runtime-nZSsnGb7.cjs"),e=require("./css-D3NdC2sx.cjs"),j=require("zod"),V=require("react"),a=({el:r,children:t,...u})=>V.createElement(r,u,t),w=Object.freeze(Object.defineProperty({__proto__:null,Element:a},Symbol.toStringTag,{value:"Module"})),C=["start","center","end","stretch"],D=j.enum(C),_=["start","center","end","between","around","evenly"],F=j.enum(_),v=(r,t)=>t??(r==="right"||r==="bottom"),p=(r,t,u,S)=>{if(t===!0)return"x";if(u===!0)return"y";if(r!=null)return e.vu.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),N=({style:r,align:t,className:u,grow:S,shrink:f,gap:i,color:o,justify:M,reverse:g,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=p(b,O,R,m),n=[u,e.CSS.B("flex"),d!=null&&e.CSS.M("direction",d),v(b,g)&&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")),A.jsxRuntimeExports.jsx(a,{className:e.CSS(...n),style:r,...x,el:x.el??"div"})},P=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:C,Box:N,JUSTIFICATIONS:_,alignmentZ:D,justificationZ:F,parseDirection:p,shouldReverse:v},Symbol.toStringTag,{value:"Module"}));exports.ALIGNMENTS=C;exports.Box=P;exports.Box$1=N;exports.Element=a;exports.Generic=w;exports.parseDirection=p;
