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

//#region src/components/layout/Grid.tsx
const GridElement = tasty({ styles: {
	display: "grid",
	flow: "row"
} });
const PROP_MAP = {
	template: "gridTemplate",
	columns: "gridColumns",
	rows: "gridRows",
	areas: "gridAreas"
};
const Grid = forwardRef(function Grid(props, ref) {
	const styles = extractStyles(props, CONTAINER_STYLES, void 0, PROP_MAP);
	return /* @__PURE__ */ jsx(GridElement, {
		...filterBaseProps(props, { eventProps: true }),
		ref,
		styles
	});
});

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