import { c as __spreadArray, _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx } from 'react/jsx-runtime';
import { useTheme } from '@mui/material/styles';
import useMediaQuery from '@mui/material/useMediaQuery';
import { Item } from './utils/gridStories.js';
import GridItem from '../components/GridItem.js';
import GridContainer from '../components/GridContainer.js';
import '@mui/material/Paper';
import '@mui/material/Grid';

var Template = function () {
    var theme = useTheme();
    var isMobile = useMediaQuery(theme.breakpoints.down("sm"));
    var mdSize = Number.isInteger(12 / 3) ? 12 / 3 : "auto";
    return (jsx(GridContainer, { children: __spreadArray([], new Array(3), true).map(function (num, index) { return (jsx(GridItem, __assign({ md: mdSize }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=" + mdSize }, void 0) }), index)); }) }, void 0));
};
var Default = Template.bind({});
var GridRepeatingItems_stories = {
    title: "Grid/Repeating items",
    component: GridContainer,
    subcomponents: { GridItem: GridItem },
    parameters: {
        docs: {
            description: {
                component: "Both `GridContainer` and `GridItem` inherit Mui's `Grid` component, but preset with attributes that align with our design system."
            },
            source: {
                type: "code"
            }
        }
    }
};

export { Default, GridRepeatingItems_stories as default };
