UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

71 lines 1.49 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 FieldGroupItem = /*#__PURE__*/forwardRef((t0, ref) => { const $ = _c(15); let children; let className; let props; let t1; if ($[0] !== t0) { ({ children, className, small: t1, ...props } = t0); $[0] = t0; $[1] = children; $[2] = className; $[3] = props; $[4] = t1; } else { children = $[1]; className = $[2]; props = $[3]; t1 = $[4]; } const small = t1 === undefined ? false : t1; let t2; if ($[5] !== className || $[6] !== small) { t2 = classNames(className, "bf-fieldgroup-item", { "bf-input-small": small }); $[5] = className; $[6] = small; $[7] = t2; } else { t2 = $[7]; } let t3; if ($[8] !== children) { t3 = /*#__PURE__*/_jsx("div", { className: "bf-input", children: children }); $[8] = children; $[9] = t3; } else { t3 = $[9]; } let t4; if ($[10] !== props || $[11] !== ref || $[12] !== t2 || $[13] !== t3) { t4 = /*#__PURE__*/_jsx("div", { className: t2, ref: ref, ...props, children: t3 }); $[10] = props; $[11] = ref; $[12] = t2; $[13] = t3; $[14] = t4; } else { t4 = $[14]; } return t4; }); FieldGroupItem.displayName = "FieldGroup.Item"; export default FieldGroupItem;