/** @license MIT | @cube-dev/ui-kit v0.127.0 | 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/Content.tsx
const STYLE_LIST = [...CONTAINER_STYLES, ...TEXT_STYLES];
const ContentElement = tasty({
	qa: "Content",
	as: "section",
	styles: {
		gridArea: "content",
		preset: "p3",
		color: "#dark-02",
		display: "block",
		flow: "column",
		gap: "2x",
		overflow: "auto",
		scrollbar: "styled"
	}
});
const Content = forwardRef(function Content(props, ref) {
	props = useSlotProps(props, "content");
	const styles = extractStyles(props, STYLE_LIST);
	return /* @__PURE__ */ jsx(ContentElement, {
		...filterBaseProps(props, { eventProps: true }),
		ref,
		styles
	});
});

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