import{r as a,u as l,j as p,B as e}from"./iframe-B8FSoBNY.js";import{G as c}from"./grid-7OIKBlfh.js";const f=a.forwardRef(function(r,n){const{columns:o,minChildWidth:s,...i}=r,m=l(),u=s?d(s,m):C(o);return p.jsx(c,{ref:n,templateColumns:u,...i})});f.displayName="SimpleGrid";function x(t){return typeof t=="number"?`${t}px`:t}function d(t,r){return e(t,n=>{const o=r.tokens.getVar(`sizes.${n}`,x(n));return n===null?null:`repeat(auto-fit, minmax(${o}, 1fr))`})}function C(t){return e(t,r=>r===null?null:`repeat(${r}, minmax(0, 1fr))`)}export{f as S};
