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

//#region src/components/layout/Flex.tsx
const FlexElement = tasty({ styles: {
	display: "flex",
	flow: "row"
} });
const Flex = forwardRef(function Flex(props, ref) {
	const styles = extractStyles(props, CONTAINER_STYLES);
	return /* @__PURE__ */ jsx(FlexElement, {
		...filterBaseProps(props, { eventProps: true }),
		ref,
		styles
	});
});

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