"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("react/jsx-runtime"),t=require("react"),s=require("classnames"),i=require("./Cell.js"),a=require("./constants.js"),u=require("../../styles/common.scss.js"),n=require("./Grid.scss.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),c=l(s),d=function(e){var s=e.gap,i=void 0===s?2:s,l=e.cols,d=void 0===l?12:l,m=e.className,f=e.testId,p=e.children,j=e.alignItems,v=void 0===j?"stretch":j,q=e.justifyItems,y=void 0===q?"stretch":q,C=t.useMemo((function(){return o.default({gap:"".concat(i*Number(u.spacing),"px"),gridTemplateColumns:"repeat(".concat(d,", minmax(0, 1fr))"),alignItems:v,justifyItems:y},a.ColumnCountCssVar,d)}),[i,d,v,y]);return r.jsx("div",{className:c.default(n.root,m),style:C,"data-testid":f,children:p})};d.Cell=i.Cell;var m=d;exports.Grid=m;
//# sourceMappingURL=Grid.js.map
