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