/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-d1bbdd3
 * Released under the MIT license.
 */

import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef, } from 'react';
import { tasty } from '../../../tasty/index.js';
import { Layout } from './Layout.js';
import { LayoutBlock } from './LayoutBlock.js';
import { LayoutContent } from './LayoutContent.js';
import { LayoutFlex } from './LayoutFlex.js';
import { LayoutFooter } from './LayoutFooter.js';
import { LayoutGrid } from './LayoutGrid.js';
import { LayoutHeader } from './LayoutHeader.js';
import { LayoutPane } from './LayoutPane.js';
import { LayoutPanel } from './LayoutPanel.js';
import { LayoutPanelHeader } from './LayoutPanelHeader.js';
import { LayoutToolbar } from './LayoutToolbar.js';
const GridLayoutElement = tasty(Layout, {
    qa: 'GridLayout',
    styles: {
        Inner: {
            display: 'grid',
        },
    },
});
function GridLayoutBase(props, ref) {
    const { columns, rows, template, ...otherProps } = props;
    return (_jsx(GridLayoutElement, { ref: ref, isGrid: true, gridColumns: columns, gridRows: rows, gridTemplate: template, ...otherProps }));
}
const _GridLayout = forwardRef(GridLayoutBase);
_GridLayout.displayName = 'GridLayout';
const GridLayout = Object.assign(_GridLayout, {
    Toolbar: LayoutToolbar,
    Header: LayoutHeader,
    Footer: LayoutFooter,
    Content: LayoutContent,
    Block: LayoutBlock,
    Flex: LayoutFlex,
    Grid: LayoutGrid,
    Pane: LayoutPane,
    Panel: LayoutPanel,
    PanelHeader: LayoutPanelHeader,
});
export { GridLayout };

        