UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

69 lines 1.41 kB
import { c as _c } from "react-compiler-runtime"; import { forwardRef } from "react"; import classNames from "classnames"; import { jsx as _jsx } from "react/jsx-runtime"; const Container = /*#__PURE__*/forwardRef((t0, ref) => { const $ = _c(14); let className; let props; let t1; if ($[0] !== t0) { ({ className, width: t1, ...props } = t0); $[0] = t0; $[1] = className; $[2] = props; $[3] = t1; } else { className = $[1]; props = $[2]; t1 = $[3]; } let width = t1 === undefined ? "none" : t1; if (typeof width === "number") { width = width + "px"; } let t2; if ($[4] !== className) { t2 = classNames(className, "bf-container"); $[4] = className; $[5] = t2; } else { t2 = $[5]; } const t3 = "auto " + width; let t4; if ($[6] !== props.style || $[7] !== t3) { t4 = { containIntrinsicWidth: t3, ...props.style }; $[6] = props.style; $[7] = t3; $[8] = t4; } else { t4 = $[8]; } let t5; if ($[9] !== props || $[10] !== ref || $[11] !== t2 || $[12] !== t4) { t5 = /*#__PURE__*/_jsx("div", { className: t2, style: t4, ref: ref, ...props }); $[9] = props; $[10] = ref; $[11] = t2; $[12] = t4; $[13] = t5; } else { t5 = $[13]; } return t5; }); Container.displayName = "Container"; export default Container;