import { c as __spreadArray, _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsxs, 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"));
    return (jsxs(GridContainer, { children: [__spreadArray([], new Array(12), true).map(function (num, index) { return (jsx(GridItem, __assign({ md: 1 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=1" }, void 0) }), index)); }), jsx(GridItem, __assign({ md: 4 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=4" }, void 0) }), void 0), jsx(GridItem, __assign({ md: 8 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=8" }, void 0) }), void 0), jsx(GridItem, __assign({ md: 6 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=6" }, void 0) }), void 0), jsx(GridItem, __assign({ md: 6 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=6" }, void 0) }), void 0), jsx(GridItem, __assign({ md: 4 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=4" }, void 0) }), void 0), jsx(GridItem, __assign({ md: 4 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=4" }, void 0) }), void 0), jsx(GridItem, __assign({ md: 4 }, { children: jsx(Item, { children: isMobile ? "xs=12" : "md=4" }, void 0) }), void 0)] }, void 0));
};
var Default = Template.bind({});
var GridStaticItems_stories = {
    title: "Grid/Proportional 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, GridStaticItems_stories as default };
