import { cs } from "../utils/styles.js";
import "../utils/index.js";
import { useStyleConfig } from "../core/theme.js";
import { vui } from "../core/vui.js";
import box_default from "../box/box.js";
import "../box/index.js";
import "../core/index.js";
import { useFooterContext } from "./context.js";
import footerSection_default from "./footerSection.js";
import { jsx } from "react/jsx-runtime";

//#region src/footer/footerColumn.tsx
/** Organizes sections with links into a single column. Different width per breakpoint. */
const FooterColumn = vui((props, ref) => {
	const { children, className, sections, flex, ...rest } = props;
	const styles = useStyleConfig("Footer", useFooterContext());
	return /* @__PURE__ */ jsx(box_default, {
		className: cs("vui-footerColumn", className),
		column: true,
		flex: flex ?? {
			xs: "0 0 50%",
			sm: "0 0 50%",
			md: "0 0 25%"
		},
		minW: 164,
		p: {
			xs: 1,
			sm: 1,
			md: 1.25,
			lg: 1.5
		},
		ref,
		spaceY: 4,
		...styles.column,
		...rest,
		children: children ?? sections?.map((section, index) => /* @__PURE__ */ jsx(footerSection_default, { ...section }, index))
	});
});
FooterColumn.displayName = "FooterColumn";
var footerColumn_default = FooterColumn;

//#endregion
export { footerColumn_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=footerColumn.js.map