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