@nswds/app 1.64.0 → 1.65.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 CHANGED
@@ -1055,6 +1055,9 @@
1055
1055
  .mt-8 {
1056
1056
  margin-top: calc(var(--spacing) * 8);
1057
1057
  }
1058
+ .mt-10 {
1059
+ margin-top: calc(var(--spacing) * 10);
1060
+ }
1058
1061
  .mt-12 {
1059
1062
  margin-top: calc(var(--spacing) * 12);
1060
1063
  }
package/dist/index.cjs CHANGED
@@ -13675,7 +13675,7 @@ function FormatToggle({ format, setFormat }) {
13675
13675
 
13676
13676
  // package.json
13677
13677
  var package_default = {
13678
- version: "1.63.0"};
13678
+ version: "1.64.0"};
13679
13679
  function Heading({
13680
13680
  className,
13681
13681
  trim = "normal",
@@ -13912,7 +13912,7 @@ var heroBannerVariants = classVarianceAuthority.cva("relative", {
13912
13912
  variants: {
13913
13913
  variant: {
13914
13914
  "primary-800": "bg-primary-800 text-white",
13915
- "grey-200": "bg-grey-200 text-grey-900",
13915
+ "grey-150": "bg-grey-150 text-grey-800",
13916
13916
  "accent-800": "bg-accent-800 text-white",
13917
13917
  "primary-200": "bg-primary-200 text-primary-800",
13918
13918
  white: "bg-white text-grey-800"
@@ -13928,12 +13928,50 @@ function HeroBannerSupportingImage({
13928
13928
  imgSrc,
13929
13929
  imgBgcolor,
13930
13930
  heading,
13931
- subtitle
13931
+ subtitle,
13932
+ primaryButton,
13933
+ secondaryButton
13932
13934
  }) {
13933
13935
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: heroBannerVariants({ variant }), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-7xl lg:grid lg:grid-cols-12 lg:gap-x-8 lg:px-8", children: [
13934
13936
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-6 pt-10 pb-24 sm:pb-32 lg:col-span-8 lg:px-0 lg:pt-24 lg:pb-28 xl:col-span-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-2xl lg:mx-0", children: [
13935
13937
  heading && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "mt-24 text-4xl font-bold tracking-tight sm:mt-10 sm:text-6xl", children: heading }),
13936
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-6 text-lg leading-8", children: subtitle })
13938
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-6 text-lg leading-8", children: subtitle }),
13939
+ (primaryButton || secondaryButton) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-10 flex items-center gap-x-6", children: [
13940
+ primaryButton && (primaryButton.href ? /* @__PURE__ */ jsxRuntime.jsx(
13941
+ Button2,
13942
+ {
13943
+ href: primaryButton.href,
13944
+ variant: primaryButton.variant,
13945
+ color: primaryButton.color ?? void 0,
13946
+ children: primaryButton.text
13947
+ }
13948
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
13949
+ Button2,
13950
+ {
13951
+ onClick: primaryButton.onClick,
13952
+ variant: primaryButton.variant,
13953
+ color: primaryButton.color ?? void 0,
13954
+ children: primaryButton.text
13955
+ }
13956
+ )),
13957
+ secondaryButton && (secondaryButton.href ? /* @__PURE__ */ jsxRuntime.jsx(
13958
+ Button2,
13959
+ {
13960
+ href: secondaryButton.href,
13961
+ variant: secondaryButton.variant,
13962
+ color: secondaryButton.color ?? void 0,
13963
+ children: secondaryButton.text
13964
+ }
13965
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
13966
+ Button2,
13967
+ {
13968
+ onClick: secondaryButton.onClick,
13969
+ variant: secondaryButton.variant,
13970
+ color: secondaryButton.color ?? void 0,
13971
+ children: secondaryButton.text
13972
+ }
13973
+ ))
13974
+ ] })
13937
13975
  ] }) }),
13938
13976
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative lg:col-span-4 lg:-mr-8 xl:absolute xl:inset-0 xl:left-2/3 xl:mr-0", children: /* @__PURE__ */ jsxRuntime.jsx(
13939
13977
  Image2__default.default,
@@ -23705,7 +23743,7 @@ function PageHeading({
23705
23743
  children
23706
23744
  ] }) });
23707
23745
  }
23708
- var buttonVariants3 = classVarianceAuthority.cva(
23746
+ var buttonVariants4 = classVarianceAuthority.cva(
23709
23747
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
23710
23748
  {
23711
23749
  variants: {
@@ -23756,7 +23794,7 @@ function PaginationLink({ className, isActive, size = "icon", ...props }) {
23756
23794
  "data-slot": "pagination-link",
23757
23795
  "data-active": isActive,
23758
23796
  className: cn(
23759
- buttonVariants3({
23797
+ buttonVariants4({
23760
23798
  variant: isActive ? "outline" : "ghost",
23761
23799
  size
23762
23800
  }),