@nswds/app 1.51.1 → 1.53.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 +39 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +39 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
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.
|
|
7744
|
+
version: "1.51.1"};
|
|
7745
7745
|
function Logo(props) {
|
|
7746
7746
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7747
7747
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "NSW Government" }),
|
|
@@ -23331,31 +23331,45 @@ function MobileHeader({
|
|
|
23331
23331
|
hide = {}
|
|
23332
23332
|
}) {
|
|
23333
23333
|
const [open, setOpen] = useState(false);
|
|
23334
|
-
const { search = true } = hide;
|
|
23334
|
+
const { search = true, menu = true } = hide;
|
|
23335
23335
|
return /* @__PURE__ */ jsxs("div", { className: "lg:hidden", children: [
|
|
23336
|
-
/* @__PURE__ */ jsxs(
|
|
23337
|
-
|
|
23338
|
-
|
|
23339
|
-
|
|
23340
|
-
|
|
23341
|
-
|
|
23342
|
-
|
|
23343
|
-
|
|
23344
|
-
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
|
|
23348
|
-
/* @__PURE__ */ jsx(
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
23354
|
-
|
|
23355
|
-
|
|
23356
|
-
|
|
23357
|
-
|
|
23358
|
-
|
|
23336
|
+
/* @__PURE__ */ jsxs(
|
|
23337
|
+
"div",
|
|
23338
|
+
{
|
|
23339
|
+
className: clsx21(
|
|
23340
|
+
"relative flex w-full items-center",
|
|
23341
|
+
menu && !search && "justify-start",
|
|
23342
|
+
search && "justify-between",
|
|
23343
|
+
!menu && !search && "justify-center"
|
|
23344
|
+
),
|
|
23345
|
+
children: [
|
|
23346
|
+
menu && /* @__PURE__ */ jsxs(Button2, { variant: "ghost", size: "icon", onClick: () => setOpen(true), className: "m-4", children: [
|
|
23347
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Main Navigation Menu" }),
|
|
23348
|
+
/* @__PURE__ */ jsx(Icons.menu, { "aria-hidden": "true" })
|
|
23349
|
+
] }),
|
|
23350
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ jsxs(
|
|
23351
|
+
Link10,
|
|
23352
|
+
{
|
|
23353
|
+
href: "/",
|
|
23354
|
+
"aria-label": "Home page",
|
|
23355
|
+
className: clsx21(
|
|
23356
|
+
"flex items-center",
|
|
23357
|
+
search && menu ? "flex-col justify-between" : "flex-row"
|
|
23358
|
+
),
|
|
23359
|
+
children: [
|
|
23360
|
+
/* @__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
|
+
] })
|
|
23365
|
+
]
|
|
23366
|
+
}
|
|
23367
|
+
) }),
|
|
23368
|
+
search && /* @__PURE__ */ jsx(MobileSearch, { navigation })
|
|
23369
|
+
]
|
|
23370
|
+
}
|
|
23371
|
+
),
|
|
23372
|
+
menu && /* @__PURE__ */ jsxs(Dialog$1, { open, onClose: setOpen, className: "relative z-50", children: [
|
|
23359
23373
|
/* @__PURE__ */ jsx("div", { className: "fixed inset-0" }),
|
|
23360
23374
|
/* @__PURE__ */ jsx("div", { className: "fixed inset-0 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "pointer-events-none fixed inset-y-0 left-0 flex max-w-full pr-10 sm:pr-16", children: /* @__PURE__ */ jsx(
|
|
23361
23375
|
DialogPanel,
|