@nswds/app 1.110.2 → 1.111.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/globals.css +457 -33
- package/dist/index.cjs +118 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -27
- package/dist/index.d.ts +24 -27
- package/dist/index.js +118 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +461 -33
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18399,31 +18399,131 @@ function ErrorMessage({
|
|
|
18399
18399
|
}
|
|
18400
18400
|
);
|
|
18401
18401
|
}
|
|
18402
|
+
var footerVariants = classVarianceAuthority.cva(
|
|
18403
|
+
"bg-(--footer-bg) text-(--footer-text) [--footer-social-hover:var(--footer-social)]",
|
|
18404
|
+
{
|
|
18405
|
+
variants: {
|
|
18406
|
+
color: {
|
|
18407
|
+
"primary/grey": [
|
|
18408
|
+
"[--footer-bg:var(--color-primary-800)] [--footer-text:var(--color-white)] [--footer-muted:var(--color-primary-100)]",
|
|
18409
|
+
"dark:[--footer-bg:var(--color-grey-800)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-grey-100)]",
|
|
18410
|
+
"[--footer-border:var(--color-white)]/15",
|
|
18411
|
+
"[--footer-link:var(--color-white)] [--footer-link-hover-bg:var(--color-white)]/10 [--footer-link-hover-text:var(--color-white)]",
|
|
18412
|
+
"[--footer-social:var(--color-white)] [--footer-social-hover-bg:var(--color-white)]/10"
|
|
18413
|
+
],
|
|
18414
|
+
light: [
|
|
18415
|
+
"[--footer-bg:var(--color-grey-200)] [--footer-text:var(--color-grey-800)] [--footer-muted:var(--color-grey-700)]",
|
|
18416
|
+
"dark:[--footer-bg:var(--color-grey-800)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-grey-100)]",
|
|
18417
|
+
"[--footer-border:var(--color-grey-300)] dark:[--footer-border:var(--color-white)]/15",
|
|
18418
|
+
"[--footer-link:var(--color-grey-700)] [--footer-link-hover-bg:var(--color-grey-800)]/10 [--footer-link-hover-text:var(--color-grey-900)]",
|
|
18419
|
+
"dark:[--footer-link:var(--color-white)] dark:[--footer-link-hover-bg:var(--color-white)]/10 dark:[--footer-link-hover-text:var(--color-white)]",
|
|
18420
|
+
"[--footer-social:var(--color-grey-800)] [--footer-social-hover:var(--color-grey-900)] [--footer-social-hover-bg:var(--color-grey-800)]/10",
|
|
18421
|
+
"dark:[--footer-social:var(--color-white)] dark:[--footer-social-hover:var(--color-white)] dark:[--footer-social-hover-bg:var(--color-white)]/10"
|
|
18422
|
+
],
|
|
18423
|
+
"primary/white": [
|
|
18424
|
+
"[--footer-bg:var(--color-primary-800)] [--footer-text:var(--color-white)] [--footer-muted:var(--color-primary-100)]",
|
|
18425
|
+
"dark:[--footer-bg:var(--color-primary-800)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-primary-100)]",
|
|
18426
|
+
"[--footer-border:var(--color-white)]/15",
|
|
18427
|
+
"[--footer-link:var(--color-white)] [--footer-link-hover-bg:var(--color-white)]/10 [--footer-link-hover-text:var(--color-white)]",
|
|
18428
|
+
"[--footer-social:var(--color-white)] [--footer-social-hover-bg:var(--color-white)]/10"
|
|
18429
|
+
],
|
|
18430
|
+
white: [
|
|
18431
|
+
"[--footer-bg:var(--color-white)] [--footer-text:var(--color-grey-800)] [--footer-muted:var(--color-grey-600)]",
|
|
18432
|
+
"dark:[--footer-bg:var(--color-grey-800)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-grey-100)]",
|
|
18433
|
+
"[--footer-border:var(--color-grey-200)] dark:[--footer-border:var(--color-white)]/15",
|
|
18434
|
+
"[--footer-link:var(--color-grey-600)] [--footer-link-hover-bg:var(--color-primary-800)]/10 [--footer-link-hover-text:var(--color-grey-800)]",
|
|
18435
|
+
"dark:[--footer-link:var(--color-white)] dark:[--footer-link-hover-bg:var(--color-white)]/10 dark:[--footer-link-hover-text:var(--color-white)]",
|
|
18436
|
+
"[--footer-social:var(--color-grey-700)] [--footer-social-hover:var(--color-grey-900)] [--footer-social-hover-bg:var(--color-primary-800)]/10",
|
|
18437
|
+
"dark:[--footer-social:var(--color-white)] dark:[--footer-social-hover:var(--color-white)] dark:[--footer-social-hover-bg:var(--color-white)]/10"
|
|
18438
|
+
],
|
|
18439
|
+
"grey-600": [
|
|
18440
|
+
"[--footer-bg:var(--color-grey-600)] [--footer-text:var(--color-white)] [--footer-muted:var(--color-grey-100)]",
|
|
18441
|
+
"[--footer-border:var(--color-white)]/15",
|
|
18442
|
+
"[--footer-link:var(--color-white)] [--footer-link-hover-bg:var(--color-white)]/10 [--footer-link-hover-text:var(--color-white)]",
|
|
18443
|
+
"[--footer-social:var(--color-white)] [--footer-social-hover-bg:var(--color-white)]/10"
|
|
18444
|
+
],
|
|
18445
|
+
"grey-800": [
|
|
18446
|
+
"[--footer-bg:var(--color-grey-800)] [--footer-text:var(--color-white)] [--footer-muted:var(--color-grey-100)]",
|
|
18447
|
+
"[--footer-border:var(--color-white)]/15",
|
|
18448
|
+
"[--footer-link:var(--color-white)] [--footer-link-hover-bg:var(--color-white)]/10 [--footer-link-hover-text:var(--color-white)]",
|
|
18449
|
+
"[--footer-social:var(--color-white)] [--footer-social-hover-bg:var(--color-white)]/10"
|
|
18450
|
+
],
|
|
18451
|
+
"accent-200": [
|
|
18452
|
+
"[--footer-bg:var(--color-accent-200)] [--footer-text:var(--color-accent-800)] [--footer-muted:var(--color-accent-700)]",
|
|
18453
|
+
"dark:[--footer-bg:var(--color-accent-800)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-accent-100)]",
|
|
18454
|
+
"[--footer-border:var(--color-accent-800)]/15 dark:[--footer-border:var(--color-white)]/15",
|
|
18455
|
+
"[--footer-link:var(--color-accent-800)] [--footer-link-hover-bg:var(--color-accent-800)]/10 [--footer-link-hover-text:var(--color-accent-800)]",
|
|
18456
|
+
"dark:[--footer-link:var(--color-white)] dark:[--footer-link-hover-bg:var(--color-white)]/10 dark:[--footer-link-hover-text:var(--color-white)]",
|
|
18457
|
+
"[--footer-social:var(--color-accent-800)] [--footer-social-hover-bg:var(--color-accent-800)]/10",
|
|
18458
|
+
"dark:[--footer-social:var(--color-white)] dark:[--footer-social-hover-bg:var(--color-white)]/10"
|
|
18459
|
+
],
|
|
18460
|
+
primary: [
|
|
18461
|
+
"[--footer-bg:var(--color-primary-800)] [--footer-text:var(--color-white)] [--footer-muted:var(--color-primary-100)]",
|
|
18462
|
+
"dark:[--footer-bg:var(--color-primary-800)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-primary-100)]",
|
|
18463
|
+
"[--footer-border:var(--color-white)]/15",
|
|
18464
|
+
"[--footer-link:var(--color-white)] [--footer-link-hover-bg:var(--color-white)]/10 [--footer-link-hover-text:var(--color-white)]",
|
|
18465
|
+
"[--footer-social:var(--color-white)] [--footer-social-hover-bg:var(--color-white)]/10"
|
|
18466
|
+
],
|
|
18467
|
+
secondary: [
|
|
18468
|
+
"[--footer-bg:var(--color-primary-200)] [--footer-text:var(--color-primary-800)] [--footer-muted:var(--color-primary-700)]",
|
|
18469
|
+
"dark:[--footer-bg:var(--color-primary-900)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-primary-100)]",
|
|
18470
|
+
"[--footer-border:var(--color-primary-800)]/15 dark:[--footer-border:var(--color-white)]/15",
|
|
18471
|
+
"[--footer-link:var(--color-primary-800)] [--footer-link-hover-bg:var(--color-primary-800)]/10 [--footer-link-hover-text:var(--color-primary-800)]",
|
|
18472
|
+
"dark:[--footer-link:var(--color-white)] dark:[--footer-link-hover-bg:var(--color-white)]/10 dark:[--footer-link-hover-text:var(--color-white)]",
|
|
18473
|
+
"[--footer-social:var(--color-primary-800)] [--footer-social-hover-bg:var(--color-primary-800)]/10",
|
|
18474
|
+
"dark:[--footer-social:var(--color-white)] dark:[--footer-social-hover-bg:var(--color-white)]/10"
|
|
18475
|
+
],
|
|
18476
|
+
accent: [
|
|
18477
|
+
"[--footer-bg:var(--color-accent-800)] [--footer-text:var(--color-white)] [--footer-muted:var(--color-accent-100)]",
|
|
18478
|
+
"dark:[--footer-bg:var(--color-accent-800)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-accent-100)]",
|
|
18479
|
+
"[--footer-border:var(--color-white)]/15",
|
|
18480
|
+
"[--footer-link:var(--color-white)] [--footer-link-hover-bg:var(--color-white)]/10 [--footer-link-hover-text:var(--color-white)]",
|
|
18481
|
+
"[--footer-social:var(--color-white)] [--footer-social-hover-bg:var(--color-white)]/10"
|
|
18482
|
+
],
|
|
18483
|
+
danger: [
|
|
18484
|
+
"[--footer-bg:var(--color-danger-600)] [--footer-text:var(--color-white)] [--footer-muted:var(--color-danger-100)]",
|
|
18485
|
+
"dark:[--footer-bg:var(--color-danger-600)] dark:[--footer-text:var(--color-white)] dark:[--footer-muted:var(--color-danger-100)]",
|
|
18486
|
+
"[--footer-border:var(--color-white)]/15",
|
|
18487
|
+
"[--footer-link:var(--color-white)] [--footer-link-hover-bg:var(--color-white)]/10 [--footer-link-hover-text:var(--color-white)]",
|
|
18488
|
+
"[--footer-social:var(--color-white)] [--footer-social-hover-bg:var(--color-white)]/10"
|
|
18489
|
+
]
|
|
18490
|
+
}
|
|
18491
|
+
},
|
|
18492
|
+
defaultVariants: {
|
|
18493
|
+
color: "white"
|
|
18494
|
+
}
|
|
18495
|
+
}
|
|
18496
|
+
);
|
|
18497
|
+
var footerSocialLinkClassName = [
|
|
18498
|
+
"group",
|
|
18499
|
+
"[--btn-bg:var(--footer-social)]",
|
|
18500
|
+
"[--btn-hover-overlay:var(--footer-social-hover-bg)]",
|
|
18501
|
+
"[--btn-icon:var(--footer-social)]",
|
|
18502
|
+
"[--btn-transparent:transparent]",
|
|
18503
|
+
"data-hover:[--btn-bg:var(--footer-social-hover)]",
|
|
18504
|
+
"data-hover:[--btn-icon:var(--footer-social-hover)]",
|
|
18505
|
+
"data-active:[--btn-bg:var(--footer-social-hover)]",
|
|
18506
|
+
"data-active:[--btn-icon:var(--footer-social-hover)]"
|
|
18507
|
+
].join(" ");
|
|
18402
18508
|
function FooterSocialLink({
|
|
18403
18509
|
href,
|
|
18404
18510
|
icon: Icon2,
|
|
18405
18511
|
children
|
|
18406
18512
|
}) {
|
|
18407
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Button2, { href, variant: "ghost", size: "icon", className:
|
|
18513
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Button2, { href, variant: "ghost", size: "icon", className: footerSocialLinkClassName, children: [
|
|
18408
18514
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children }),
|
|
18409
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18410
|
-
Icon2,
|
|
18411
|
-
{
|
|
18412
|
-
"data-slot": "icon",
|
|
18413
|
-
className: "fill-grey-700 transition group-hover:fill-grey-900 dark:fill-grey-200 dark:group-hover:fill-white"
|
|
18414
|
-
}
|
|
18415
|
-
)
|
|
18515
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "fill-current", "data-slot": "icon" })
|
|
18416
18516
|
] });
|
|
18417
18517
|
}
|
|
18418
18518
|
function FooterAcknowledgement() {
|
|
18419
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-row items-center gap-5 py-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-base text-pretty text-
|
|
18519
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-row items-center gap-5 py-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-base text-pretty text-(--footer-text) lg:text-left", children: "We acknowledge the Traditional Custodians of the land on which we work and live, and pay our respects to Elders past, present and emerging." }) });
|
|
18420
18520
|
}
|
|
18421
18521
|
function FooterSmallPrint({
|
|
18422
18522
|
socialLinks,
|
|
18423
18523
|
department
|
|
18424
18524
|
}) {
|
|
18425
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-between gap-5 pt-4 sm:flex-row
|
|
18426
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-center text-sm text-
|
|
18525
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-between gap-5 pt-4 sm:flex-row", children: [
|
|
18526
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-center text-sm text-(--footer-text) lg:text-left", children: [
|
|
18427
18527
|
"\xA9 Copyright ",
|
|
18428
18528
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
18429
18529
|
department && " ",
|
|
@@ -18446,7 +18546,7 @@ function FooterLegalLinks({ legalLinks }) {
|
|
|
18446
18546
|
Link13__default.default,
|
|
18447
18547
|
{
|
|
18448
18548
|
href: item.href,
|
|
18449
|
-
className: "-m-1 rounded p-1 text-
|
|
18549
|
+
className: "-m-1 rounded p-1 text-(--footer-link) underline underline-offset-4 hover:bg-(--footer-link-hover-bg) hover:text-(--footer-link-hover-text) hover:decoration-2",
|
|
18450
18550
|
children: item.name
|
|
18451
18551
|
},
|
|
18452
18552
|
item.name
|
|
@@ -18459,6 +18559,7 @@ function Footer({
|
|
|
18459
18559
|
department,
|
|
18460
18560
|
socialLinks,
|
|
18461
18561
|
className,
|
|
18562
|
+
color: color2 = "white",
|
|
18462
18563
|
hide = {
|
|
18463
18564
|
paddingTop: true,
|
|
18464
18565
|
topBorder: true,
|
|
@@ -18472,16 +18573,18 @@ function Footer({
|
|
|
18472
18573
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18473
18574
|
"footer",
|
|
18474
18575
|
{
|
|
18576
|
+
"data-color": color2,
|
|
18475
18577
|
className: cn(
|
|
18476
18578
|
"mx-auto w-full pb-16",
|
|
18477
18579
|
hide.paddingTop ? "pt-0" : "pt-16",
|
|
18478
18580
|
hide.fullWidth ? "px-6 lg:px-12" : "px-4 lg:pr-0 lg:pl-8",
|
|
18581
|
+
footerVariants({ color: color2 }),
|
|
18479
18582
|
className
|
|
18480
18583
|
),
|
|
18481
18584
|
children: [
|
|
18482
|
-
hide.topBorder && /* @__PURE__ */ jsxRuntime.jsx(Separator4, { className: "mb-4 bg-
|
|
18585
|
+
hide.topBorder && /* @__PURE__ */ jsxRuntime.jsx(Separator4, { className: "mb-4 bg-(--footer-border)" }),
|
|
18483
18586
|
hide.acknowledgement && /* @__PURE__ */ jsxRuntime.jsx(FooterAcknowledgement, {}),
|
|
18484
|
-
hide.separator && /* @__PURE__ */ jsxRuntime.jsx(Separator4, { className: "my-4 bg-
|
|
18587
|
+
hide.separator && /* @__PURE__ */ jsxRuntime.jsx(Separator4, { className: "my-4 bg-(--footer-border)" }),
|
|
18485
18588
|
hide.legallinks && /* @__PURE__ */ jsxRuntime.jsx(FooterLegalLinks, { legalLinks }),
|
|
18486
18589
|
hide.smallprint && /* @__PURE__ */ jsxRuntime.jsx(FooterSmallPrint, { department, socialLinks })
|
|
18487
18590
|
]
|
|
@@ -18719,7 +18822,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
18719
18822
|
|
|
18720
18823
|
// package.json
|
|
18721
18824
|
var package_default = {
|
|
18722
|
-
version: "1.
|
|
18825
|
+
version: "1.110.2"};
|
|
18723
18826
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
18724
18827
|
function flattenText(nodes) {
|
|
18725
18828
|
if (nodes == null || typeof nodes === "boolean") return "";
|