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