UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

70 lines 1.4 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 SkeletonText = /*#__PURE__*/forwardRef((t0, ref) => { const $ = _c(16); let className; let height; let props; let width; if ($[0] !== t0) { ({ width, height, className, ...props } = t0); $[0] = t0; $[1] = className; $[2] = height; $[3] = props; $[4] = width; } else { className = $[1]; height = $[2]; props = $[3]; width = $[4]; } let t1; if ($[5] !== height || $[6] !== props.style || $[7] !== width) { t1 = { width, height, ...props.style }; $[5] = height; $[6] = props.style; $[7] = width; $[8] = t1; } else { t1 = $[8]; } let t2; if ($[9] !== className) { t2 = classnames("bf-skeleton-text", className); $[9] = className; $[10] = t2; } else { t2 = $[10]; } let t3; if ($[11] !== props || $[12] !== ref || $[13] !== t1 || $[14] !== t2) { t3 = /*#__PURE__*/_jsx("span", { ...props, style: t1, className: t2, ref: ref }); $[11] = props; $[12] = ref; $[13] = t1; $[14] = t2; $[15] = t3; } else { t3 = $[15]; } return t3; }); SkeletonText.displayName = "Skeleton.Text"; export default SkeletonText;