@abgov/react-components 6.7.1-alpha.3 → 6.7.1-alpha.5

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) {
@@ -3299,12 +3302,13 @@ function GoabModal({
3299
3302
  ref: el,
3300
3303
  open: open ? "true" : void 0,
3301
3304
  closable: onClose ? "true" : "false",
3305
+ heading: typeof heading === "string" ? heading : void 0,
3302
3306
  maxwidth: maxWidth,
3303
3307
  transition,
3304
3308
  calloutvariant: calloutVariant,
3305
3309
  testid: testId,
3306
3310
  children: [
3307
- heading && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "heading", children: heading }),
3311
+ heading && typeof heading !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "heading", children: heading }),
3308
3312
  actions && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children: actions }),
3309
3313
  children
3310
3314
  ]