@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
52 lines • 1.1 kB
JavaScript
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 ButtonGroup = /*#__PURE__*/forwardRef((t0, ref) => {
const $ = _c(11);
let children;
let className;
let props;
if ($[0] !== t0) {
({
children,
className,
...props
} = t0);
$[0] = t0;
$[1] = children;
$[2] = className;
$[3] = props;
} else {
children = $[1];
className = $[2];
props = $[3];
}
let t1;
if ($[4] !== className) {
t1 = classNames(className, "bf-button-group");
$[4] = className;
$[5] = t1;
} else {
t1 = $[5];
}
let t2;
if ($[6] !== children || $[7] !== props || $[8] !== ref || $[9] !== t1) {
t2 = /*#__PURE__*/_jsx("div", {
...props,
className: t1,
ref: ref,
children: children
});
$[6] = children;
$[7] = props;
$[8] = ref;
$[9] = t1;
$[10] = t2;
} else {
t2 = $[10];
}
return t2;
});
ButtonGroup.displayName = "Button.Group";
export default ButtonGroup;