@nswds/app 1.53.0 → 1.54.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.js CHANGED
@@ -7741,7 +7741,7 @@ function Heading({
7741
7741
 
7742
7742
  // package.json
7743
7743
  var package_default = {
7744
- version: "1.51.1"};
7744
+ version: "1.53.0"};
7745
7745
  function Logo(props) {
7746
7746
  return /* @__PURE__ */ jsxs(Fragment, { children: [
7747
7747
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "NSW Government" }),
@@ -23337,7 +23337,7 @@ function MobileHeader({
23337
23337
  "div",
23338
23338
  {
23339
23339
  className: clsx21(
23340
- "relative flex w-full items-center",
23340
+ "relative flex w-full items-center py-4",
23341
23341
  menu && !search && "justify-start",
23342
23342
  search && "justify-between",
23343
23343
  !menu && !search && "justify-center"
@@ -23354,14 +23354,27 @@ function MobileHeader({
23354
23354
  "aria-label": "Home page",
23355
23355
  className: clsx21(
23356
23356
  "flex items-center",
23357
- search && menu ? "flex-col justify-between" : "flex-row"
23357
+ menu && !search && "justify-start",
23358
+ search && !menu && "flex-row justify-between",
23359
+ menu && search || !menu && !search && "flex-col justify-center"
23358
23360
  ),
23359
23361
  children: [
23360
23362
  /* @__PURE__ */ jsx(Logo, { className: "m-2 h-12 w-auto transition-colors" }),
23361
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-center text-center", children: [
23362
- /* @__PURE__ */ jsx(Heading, { level: 2, size: 6, className: "ml-6", children: sitename }),
23363
- version && /* @__PURE__ */ jsx(Badge, { variant: "soft", color: "primary", className: "ml-2", children: package_default.version })
23364
- ] })
23363
+ /* @__PURE__ */ jsxs(
23364
+ "div",
23365
+ {
23366
+ className: clsx21(
23367
+ "flex flex-wrap items-center",
23368
+ menu && !search && "justify-center text-left",
23369
+ search && !menu && "justify-center text-left",
23370
+ menu && search && "justify-center text-center"
23371
+ ),
23372
+ children: [
23373
+ /* @__PURE__ */ jsx(Text, { size: 1, className: "text-primary-800 ml-2 leading-1 font-bold lg:ml-6", children: sitename }),
23374
+ version && /* @__PURE__ */ jsx(Badge, { variant: "soft", color: "primary", className: "ml-2", children: package_default.version })
23375
+ ]
23376
+ }
23377
+ )
23365
23378
  ]
23366
23379
  }
23367
23380
  ) }),