@abgov/react-components 6.7.1-alpha.2 → 6.7.1-alpha.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/index.js +7 -3
- package/index.js.map +1 -1
- package/index.mjs +7 -3
- package/index.mjs.map +1 -1
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3799,18 +3799,22 @@ function GoabThreeColumnLayout(props) {
|
|
|
3799
3799
|
);
|
|
3800
3800
|
}
|
|
3801
3801
|
function GoabTooltip(props) {
|
|
3802
|
-
|
|
3802
|
+
const isStringContent = typeof props.content === "string";
|
|
3803
|
+
return /* @__PURE__ */ jsxs(
|
|
3803
3804
|
"goa-tooltip",
|
|
3804
3805
|
{
|
|
3805
3806
|
position: props.position,
|
|
3806
|
-
content: props.content,
|
|
3807
|
+
content: isStringContent ? props.content : void 0,
|
|
3807
3808
|
halign: props.hAlign,
|
|
3808
3809
|
testid: props.testId,
|
|
3809
3810
|
mt: props.mt,
|
|
3810
3811
|
mr: props.mr,
|
|
3811
3812
|
mb: props.mb,
|
|
3812
3813
|
ml: props.ml,
|
|
3813
|
-
children:
|
|
3814
|
+
children: [
|
|
3815
|
+
!isStringContent && props.content && /* @__PURE__ */ jsx("div", { slot: "content", children: props.content }),
|
|
3816
|
+
props.children
|
|
3817
|
+
]
|
|
3814
3818
|
}
|
|
3815
3819
|
);
|
|
3816
3820
|
}
|