@nswds/app 1.81.2 → 1.82.0

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/dist/index.cjs CHANGED
@@ -17731,10 +17731,11 @@ function Header2({
17731
17731
  sitename,
17732
17732
  navigation,
17733
17733
  version = false,
17734
- hide = {}
17734
+ hide = {},
17735
+ altLogo
17735
17736
  }) {
17736
17737
  const [isScrolled, setIsScrolled] = React5.useState(false);
17737
- const { search = true, themeSwitcher = true, github = true, shadow = true } = hide;
17738
+ const { logo = true, search = true, themeSwitcher = true, github = true, shadow = true } = hide;
17738
17739
  React5.useEffect(() => {
17739
17740
  function onScroll() {
17740
17741
  setIsScrolled(window.scrollY > 0);
@@ -17761,7 +17762,7 @@ function Header2({
17761
17762
  children: [
17762
17763
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex grow basis-0 items-center", children: [
17763
17764
  /* @__PURE__ */ jsxRuntime.jsxs(Link12__default.default, { href: "/", "aria-label": "Home page", className: "flex items-center justify-between", children: [
17764
- /* @__PURE__ */ jsxRuntime.jsx(Logo, { className: "h-12 w-auto lg:h-14" }),
17765
+ logo ? /* @__PURE__ */ jsxRuntime.jsx(Logo, { className: "h-12 w-auto lg:h-14" }) : altLogo,
17765
17766
  /* @__PURE__ */ jsxRuntime.jsx(Heading, { level: 2, size: 6, className: "ml-6", children: sitename })
17766
17767
  ] }),
17767
17768
  version && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "soft", color: "primary", className: "ml-2", children: package_default.version })