"use strict";var e=require("tslib"),r=require("react"),s=require("tailwind-merge"),l=require("./styles.cjs"),t=require("../../../lib/utils.cjs");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=i(r);const n=t.makeClassName("Grid"),o=u.default.forwardRef(((r,t)=>{const{numCols:i=1,numColsSm:o,numColsMd:a,numColsLg:d,children:m,className:c}=r,g=e.__rest(r,["numCols","numColsSm","numColsMd","numColsLg","children","className"]),C=(e,r)=>e&&Object.keys(r).includes(String(e))?r[e]:"";return u.default.createElement("div",Object.assign({ref:t,className:s.twMerge(n("root"),"grid",(()=>{const e=C(i,l.gridCols),r=C(o,l.gridColsSm),t=C(a,l.gridColsMd),u=C(d,l.gridColsLg);return s.twMerge(e,r,t,u)})(),c)},g),m)}));o.displayName="Grid",module.exports=o;
