@abgov/react-components 6.10.0-dev.14 → 6.10.0-dev.16

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
@@ -3472,11 +3472,19 @@ function GoabTabs({
3472
3472
  }, [onChange]);
3473
3473
  return /* @__PURE__ */ jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, variant, children });
3474
3474
  }
3475
- function GoabTab({ heading, disabled, children }) {
3476
- return /* @__PURE__ */ jsxs("goa-tab", { disabled: disabled ? "true" : void 0, children: [
3477
- heading && /* @__PURE__ */ jsx("span", { slot: "heading", children: heading }),
3478
- children
3479
- ] });
3475
+ function GoabTab({ heading, disabled, slug, children }) {
3476
+ return /* @__PURE__ */ jsxs(
3477
+ "goa-tab",
3478
+ {
3479
+ slug,
3480
+ disabled: disabled ? "true" : void 0,
3481
+ heading: typeof heading === "string" ? heading : void 0,
3482
+ children: [
3483
+ typeof heading !== "string" && /* @__PURE__ */ jsx("span", { slot: "heading", children: heading }),
3484
+ children
3485
+ ]
3486
+ }
3487
+ );
3480
3488
  }
3481
3489
  const GoabTemporaryNotificationCtrl = ({
3482
3490
  verticalPosition = "bottom",