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