@abgov/react-components 6.7.1-alpha.2 → 6.7.1-alpha.4

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.mjs CHANGED
@@ -676,6 +676,9 @@ function stringify(value) {
676
676
  if (typeof value === "string") {
677
677
  return value;
678
678
  }
679
+ if (typeof value === "number") {
680
+ return "" + value;
681
+ }
679
682
  return JSON.stringify(value);
680
683
  }
681
684
  function GoabDropdown(props) {
@@ -3799,18 +3802,22 @@ function GoabThreeColumnLayout(props) {
3799
3802
  );
3800
3803
  }
3801
3804
  function GoabTooltip(props) {
3802
- return /* @__PURE__ */ jsx(
3805
+ const isStringContent = typeof props.content === "string";
3806
+ return /* @__PURE__ */ jsxs(
3803
3807
  "goa-tooltip",
3804
3808
  {
3805
3809
  position: props.position,
3806
- content: props.content,
3810
+ content: isStringContent ? props.content : void 0,
3807
3811
  halign: props.hAlign,
3808
3812
  testid: props.testId,
3809
3813
  mt: props.mt,
3810
3814
  mr: props.mr,
3811
3815
  mb: props.mb,
3812
3816
  ml: props.ml,
3813
- children: props.children
3817
+ children: [
3818
+ !isStringContent && props.content && /* @__PURE__ */ jsx("div", { slot: "content", children: props.content }),
3819
+ props.children
3820
+ ]
3814
3821
  }
3815
3822
  );
3816
3823
  }