import{a as n}from"./attach-properties-to-component-CxYBDbn1.js";import{w as a,m}from"./index-B_OQWaA6.js";import{b as o}from"./index-CqA6gR2S.js";import{t as s}from"./to-css-length-qRJH4nmz.js";const i="adm-grid",c=r=>{const t={"--columns":r.columns.toString()},{gap:e}=r;return e!==void 0&&(Array.isArray(e)?(t["--gap-horizontal"]=s(e[0]),t["--gap-vertical"]=s(e[1])):t["--gap"]=s(e)),a(r,o.createElement("div",{className:i,style:t},r.children))},l=r=>{const t=m({span:1},r),e={"--item-span":t.span};return a(t,o.createElement("div",{className:`${i}-item`,style:e,onClick:t.onClick},t.children))},h=n(c,{Item:l});export{h as G};
