@usace/groundwork 3.4.0 → 3.6.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.
@@ -8531,19 +8531,19 @@ function V0({ accessKey: e, affiliate: t, placeholder: r, ...n }) {
8531
8531
  }
8532
8532
  );
8533
8533
  }
8534
- function X0({ title: e, subtitle: t, image: r, alt: n, children: o, duration_ms: l = 12e3, imgHeight: i, imgWidth: a }) {
8535
- const s = Array.isArray(r), u = Array.isArray(n), [c, p] = Q(s ? r[0] : r), [f, g] = Q(u ? n[0] : n);
8536
- function w(h) {
8537
- return Math.floor(Math.random() * h);
8534
+ function X0({ title: e, subtitle: t, image: r, alt: n, children: o, duration_ms: l = 12e3, imgHeight: i, imgWidth: a, opacity: s = 0.5 }) {
8535
+ const u = Array.isArray(r), c = Array.isArray(n), [p, f] = Q(u ? r[0] : r), [g, w] = Q(c ? n[0] : n);
8536
+ function h(b) {
8537
+ return Math.floor(Math.random() * b);
8538
8538
  }
8539
8539
  if (ae(() => {
8540
- if (!s) return;
8541
- const h = setInterval(() => {
8542
- const b = w(r.length);
8543
- p(r[b]), n && g(n[b]);
8540
+ if (!u) return;
8541
+ const b = setInterval(() => {
8542
+ const v = h(r.length);
8543
+ f(r[v]), n && w(n[v]);
8544
8544
  }, l);
8545
- return () => clearInterval(h);
8546
- }, [r, n, l, s]), s && u && r.length !== n.length)
8545
+ return () => clearInterval(b);
8546
+ }, [r, n, l, u]), u && c && r.length !== n.length)
8547
8547
  throw new Error(
8548
8548
  "Error rendering hero image. Your image and alt text arrays must be the same length."
8549
8549
  );
@@ -8551,14 +8551,14 @@ function X0({ title: e, subtitle: t, image: r, alt: n, children: o, duration_ms:
8551
8551
  /* @__PURE__ */ d.jsx("div", { className: "gw-h-56 gw-w-full gw-overflow-clip gw-bg-zinc-950 md:gw-h-1/5 md:gw-max-h-[500px]", children: /* @__PURE__ */ d.jsx(
8552
8552
  "img",
8553
8553
  {
8554
- src: c,
8555
- alt: f,
8554
+ src: p,
8555
+ alt: g,
8556
8556
  "aria-label": n,
8557
8557
  className: "gw-object-cover gw-object-center gw-w-full gw-h-full",
8558
8558
  style: { height: i, width: a }
8559
8559
  }
8560
8560
  ) }),
8561
- /* @__PURE__ */ d.jsx("div", { className: "gw-absolute gw-inset-0 gw-bg-zinc-950/50" }),
8561
+ /* @__PURE__ */ d.jsx("div", { style: { opacity: s }, className: "gw-absolute gw-inset-0 gw-bg-zinc-950" }),
8562
8562
  o && /* @__PURE__ */ d.jsx("div", { className: "gw-absolute gw-inset-0 gw-flex gw-items-center gw-justify-center", children: o }),
8563
8563
  e && /* @__PURE__ */ d.jsx(xl, { className: "gw-relative", children: /* @__PURE__ */ d.jsx("div", { className: "gw-absolute gw-bottom-0 gw-left-0 gw-max-w-7xl gw-mx-auto gw-px-4", children: /* @__PURE__ */ d.jsxs("div", { className: "gw-pb-8", children: [
8564
8564
  /* @__PURE__ */ d.jsx("h1", { className: "gw-text-4xl gw-font-extrabold gw-tracking-tight gw-text-white sm:gw-text-5xl lg:gw-text-6xl", children: e }),
@@ -8687,7 +8687,7 @@ function q0({
8687
8687
  /* @__PURE__ */ d.jsx(
8688
8688
  hn.Panel,
8689
8689
  {
8690
- className: "gw-shadow gw-px-3",
8690
+ className: "gw-shadow",
8691
8691
  unmount: r,
8692
8692
  children: n
8693
8693
  }