UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

48 lines (46 loc) 1.3 kB
import { cs } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { Box } from "../box/box.js"; import { useFooterContext } from "./context.js"; import { FooterSection } 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, maxW, ...rest } = props; const styles = useStyleConfig("Footer", useFooterContext()); return /* @__PURE__ */ jsx(Box, { className: cs("vui-footerColumn", className), column: true, ...styles.column, flex: flex ?? { xs: "0 0 50%", sm: "0 0 50%", md: "0 0 25%" }, minW: { xs: "auto", sm: "165px" }, maxW: maxW ?? { xs: "calc(50% - 8px)", sm: "auto" }, p: { xs: 0, sm: 1, md: 1.25, lg: 1.5 }, ref, spaceY: 4, ...rest, children: children ?? sections?.map((section, index) => /* @__PURE__ */ jsx(FooterSection, { ...section }, index)) }); }); FooterColumn.displayName = "FooterColumn"; //#endregion export { FooterColumn as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=footerColumn.js.map