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

import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from 'react';
import { CONTAINER_STYLES, extractStyles, filterBaseProps, tasty, TEXT_STYLES, } from '../../tasty/index.js';
import { useSlotProps } from '../../utils/react/index.js';
const STYLE_LIST = [...CONTAINER_STYLES, ...TEXT_STYLES];
const HeaderElement = tasty({
    qa: 'Header',
    as: 'header',
    styles: {
        display: 'block',
        gridArea: 'header',
        flow: 'column',
        boxSizing: 'border-box',
    },
});
export const Header = forwardRef(function Header(props, ref) {
    props = useSlotProps(props, 'header');
    const styles = extractStyles(props, STYLE_LIST);
    return (_jsx(HeaderElement, { ...filterBaseProps(props, { eventProps: true }), ref: ref, styles: styles }));
});

        