import t from"@babel/runtime/helpers/defineProperty";import{jsx as r}from"react/jsx-runtime";import{useMemo as s}from"react";import e from"classnames";import{Cell as o}from"./Cell.js";import{ColumnCountCssVar as m}from"./constants.js";import i from"../../styles/common.scss.js";import a from"./Grid.scss.js";var n=function(o){var n=o.gap,c=void 0===n?2:n,l=o.cols,p=void 0===l?12:l,f=o.className,d=o.testId,u=o.children,v=o.alignItems,j=void 0===v?"stretch":v,g=o.justifyItems,h=void 0===g?"stretch":g,y=s((function(){return t({gap:"".concat(c*Number(i.spacing),"px"),gridTemplateColumns:"repeat(".concat(p,", minmax(0, 1fr))"),alignItems:j,justifyItems:h},m,p)}),[c,p,j,h]);return r("div",{className:e(a.root,f),style:y,"data-testid":d,children:u})};n.Cell=o;var c=n;export{c as Grid};
//# sourceMappingURL=Grid.js.map
