@danske/sapphire-react-lab 0.87.2 → 0.87.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/cjs/index.js
CHANGED
|
@@ -2657,13 +2657,12 @@ const Heading = React.forwardRef(function Heading2(props, ref) {
|
|
|
2657
2657
|
const domProps = utils$1.filterDOMProps(props);
|
|
2658
2658
|
const _a = props, { children, level, elementType } = _a, otherProps = __objRest$b(_a, ["children", "level", "elementType"]);
|
|
2659
2659
|
const { styleProps } = sapphireReact.useTextStyleProps(otherProps);
|
|
2660
|
-
const domRef = utils.useDOMRef(ref);
|
|
2661
2660
|
const HeadingTag = elementType ? elementType : `h${level}`;
|
|
2662
2661
|
return /* @__PURE__ */ React__default["default"].createElement(HeadingTag, __spreadProps$b(__spreadValues$d(__spreadValues$d({}, domProps), styleProps), {
|
|
2663
2662
|
className: clsx__default["default"](styles__default$9["default"]["sapphire-text"], styles__default$9["default"][`sapphire-text--heading-${level}`], styleProps.className, {
|
|
2664
2663
|
[styles__default$9["default"]["sapphire-text--heading-alternative"]]: props.fontVariant === "alternative"
|
|
2665
2664
|
}),
|
|
2666
|
-
ref
|
|
2665
|
+
ref
|
|
2667
2666
|
}), children);
|
|
2668
2667
|
});
|
|
2669
2668
|
|