"use strict";const C=require("./jsx-runtime-Cek9Ww4S.cjs"),S=require("react"),e=require("./css-Cc1vb61S.cjs"),k=({el:t,children:r,...n},s)=>S.createElement(t,{...n,ref:s},r),i=S.forwardRef(k),y=Object.freeze(Object.defineProperty({__proto__:null,Element:i},Symbol.toStringTag,{value:"Module"})),M=["start","center","end","stretch"],v=["start","center","end","spaceBetween","spaceAround","spaceEvenly"],N=(t,r)=>r??(t==="right"||t==="bottom"),j=({style:t,align:r,className:n,grow:s,shrink:c,empty:p=!1,size:a="medium",justify:u="start",reverse:o,direction:l="y",wrap:f=!1,bordered:E=!1,rounded:R=!1,el:B="div",background:x,...I},h)=>{const b=e.g.construct(l);o=N(l,o);let d;return p?[a,d]=[0,0]:typeof a=="number"&&(d=`${a}rem`),t={gap:d,flexDirection:T(b,o),justifyContent:g[u],alignItems:r,flexWrap:f?"wrap":"nowrap",...t},s!=null&&(t.flexGrow=Number(s)),c!=null&&(t.flexShrink=Number(c)),x!=null&&(t.backgroundColor=e.CSS.shadeVar(x)),C.jsxRuntimeExports.jsx(i,{el:B,ref:h,className:e.CSS(e.CSS.B("space"),e.CSS.dir(b),e.CSS.bordered(E),e.CSS.rounded(R),typeof a=="string"&&e.CSS.BM("space",a),n),style:t,...I})};j.displayName="Space";const m=S.forwardRef(j),T=(t,r)=>{const n=t==="x"?"row":"column";return r?n+"-reverse":n},g={start:"flex-start",center:"center",end:"flex-end",spaceBetween:"space-between",spaceAround:"space-around",spaceEvenly:"space-evenly"},w=({className:t,justify:r="center",align:n="center",...s},c)=>C.jsxRuntimeExports.jsx(m,{ref:c,justify:r,align:n,className:e.CSS(e.CSS.BM("space","centered"),t),...s}),A=S.forwardRef(w),G=({className:t,size:r="medium",reverse:n=!1,direction:s="x",bordered:c=!0,borderShade:p=3,rounded:a=!0,shadow:u=!1,style:o,...l},f)=>C.jsxRuntimeExports.jsx(m,{ref:f,direction:s,reverse:n,className:e.CSS(e.CSS.B("pack"),u&&e.CSS.BM("pack","shadow"),e.CSS.dir(s),typeof r!="number"&&e.CSS.BM("pack",r),n&&e.CSS.BM("pack","reverse"),t),style:{...o,[e.CSS.var("pack-border-shade")]:e.CSS.shadeVar(p)},bordered:c,rounded:a,...l,empty:!0}),O=S.forwardRef(G);exports.ALIGNMENTS=M;exports.Center=A;exports.CoreCenter=w;exports.Element=i;exports.Generic=y;exports.JUSTIFICATIONS=v;exports.Pack=O;exports.Space=m;exports.shouldReverse=N;
