/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-0d43332 | Cube Dev Team */
import { extractStyles } from "../../utils/styles.js";
import { useSlotProps } from "../../utils/react/Slots.js";
import { CONTAINER_STYLES, TEXT_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
import { forwardRef } from "react";
import { jsx } from "react/jsx-runtime";

//#region src/components/content/Header.tsx
const STYLE_LIST = [...CONTAINER_STYLES, ...TEXT_STYLES];
const HeaderElement = tasty({
	qa: "Header",
	as: "header",
	styles: {
		display: "block",
		gridArea: "header",
		flow: "column",
		boxSizing: "border-box"
	}
});
const Header = forwardRef(function Header(props, ref) {
	props = useSlotProps(props, "header");
	const styles = extractStyles(props, STYLE_LIST);
	return /* @__PURE__ */ jsx(HeaderElement, {
		...filterBaseProps(props, { eventProps: true }),
		ref,
		styles
	});
});

//#endregion
export { Header };
//# sourceMappingURL=Header.js.map