"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index.cjs38.js"),v=require("react"),u=require("./index.cjs40.js"),b=require("./index.cjs3.js"),c=require("./index.cjs61.js"),s=v.forwardRef(({columns:e=12,gap:g=4,minColumnWidth:i,as:l="div",children:f,className:x,testId:d,...a},o)=>{const n=b.getSpacingVar(g),S=(()=>{const r={gap:n};if(i)return r.gridTemplateColumns=`repeat(auto-fit, minmax(${i}, 1fr))`,r;if(typeof e=="number")return r.gridTemplateColumns=`repeat(${e}, 1fr)`,r;if(typeof e=="object"){const t={};e.xs!==void 0&&(t["--grid-cols-xs"]=String(e.xs)),e.sm!==void 0&&(t["--grid-cols-sm"]=String(e.sm)),e.md!==void 0&&(t["--grid-cols-md"]=String(e.md)),e.lg!==void 0&&(t["--grid-cols-lg"]=String(e.lg)),e.xl!==void 0&&(t["--grid-cols-xl"]=String(e.xl)),e["2xl"]!==void 0&&(t["--grid-cols-2xl"]=String(e["2xl"]));const p=e.xs||e.sm||e.md||e.lg||e.xl||e["2xl"]||1;return r.gridTemplateColumns=`repeat(${p}, 1fr)`,{...r,...t}}return r})();return y.jsxRuntimeExports.jsx(l,{ref:o,"data-atme-ui":!0,className:u(c.default.grid,x),style:{...S,...a.style},...d&&{"data-testid":d},...a,children:f})});s.displayName="Grid";exports.Grid=s;
//# sourceMappingURL=index.cjs28.js.map
