import { _ as __assign } from '../tslib.es6-20a2a300.js';
import { jsxs, jsx } from 'react/jsx-runtime';
import { Item } from './utils/gridStories.js';
import GridItem from '../components/GridItem.js';
import GridContainer from '../components/GridContainer.js';
import { m as makeStyles } from '../makeStyles-c9a99c7a.js';
import { a as createStyles } from '../createStyles-16423e9e.js';
import { u as useTheme } from '../useTheme-27496d89.js';
import { u as useMediaQuery } from '../useMediaQuery-d0d673c2.js';
import '../styled-339d0187.js';
import '../defaultTheme-49a26576.js';
import 'react';
import '../clsx.m-6243b874.js';
import '../hoist-non-react-statics.cjs-b718ab87.js';
import '../Paper-cfd8f963.js';
import '../withStyles-99aeb25b.js';
import '../Grid-7099154b.js';
import '../deprecatedPropType-0232df1e.js';

var useStyles = makeStyles(function (theme) {
    return createStyles({
        nestedContainer: {
            background: theme.palette.gray[300]
        }
    });
});
var Template = function () {
    var theme = useTheme();
    var classes = useStyles();
    var isMobile = useMediaQuery(theme.breakpoints.down("sm"));
    return (jsxs(GridContainer, { children: [jsxs(GridContainer, __assign({ item: true, md: 8, spacing: 2, className: classes.nestedContainer }, { children: [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)] }), 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 GridNestedItems_stories = {
    title: "Grid/Nested 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, GridNestedItems_stories as default };
