@deriv-web-design/ui 0.1.8 → 0.1.10

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.mjs CHANGED
@@ -1991,6 +1991,7 @@ var Header = ({
1991
1991
  leftVisual,
1992
1992
  rightVisual,
1993
1993
  search,
1994
+ underNavbar = false,
1994
1995
  className,
1995
1996
  ...props
1996
1997
  }) => {
@@ -2037,7 +2038,7 @@ var Header = ({
2037
2038
  "section",
2038
2039
  {
2039
2040
  ref: sectionRef,
2040
- className: ["header", variantClass, className].filter(Boolean).join(" "),
2041
+ className: ["header", variantClass, underNavbar && "header--under-navbar", className].filter(Boolean).join(" "),
2041
2042
  ...props,
2042
2043
  children: [
2043
2044
  /* @__PURE__ */ jsx24("div", { className: "header__grid", "aria-hidden": "true" }),
@@ -5491,22 +5492,34 @@ var TrustpilotTestimonial = ({
5491
5492
  }
5492
5493
  ) }),
5493
5494
  items.length > 1 && (canPrev || canNext) && /* @__PURE__ */ jsxs40("div", { className: "testimonial__tp-nav", children: [
5494
- canPrev && /* @__PURE__ */ jsx44(
5495
+ /* @__PURE__ */ jsx44(
5495
5496
  "button",
5496
5497
  {
5497
5498
  type: "button",
5498
- className: "testimonial__tp-nav-btn",
5499
+ className: [
5500
+ "testimonial__tp-nav-btn",
5501
+ !canPrev ? "testimonial__tp-nav-btn--hidden" : ""
5502
+ ].filter(Boolean).join(" "),
5499
5503
  "aria-label": "Show previous testimonials",
5504
+ "aria-hidden": !canPrev,
5505
+ tabIndex: canPrev ? 0 : -1,
5506
+ disabled: !canPrev,
5500
5507
  onClick: () => scrollByCard(-1),
5501
5508
  children: /* @__PURE__ */ jsx44(ArrowIcon, { direction: "prev" })
5502
5509
  }
5503
5510
  ),
5504
- canNext && /* @__PURE__ */ jsx44(
5511
+ /* @__PURE__ */ jsx44(
5505
5512
  "button",
5506
5513
  {
5507
5514
  type: "button",
5508
- className: "testimonial__tp-nav-btn",
5515
+ className: [
5516
+ "testimonial__tp-nav-btn",
5517
+ !canNext ? "testimonial__tp-nav-btn--hidden" : ""
5518
+ ].filter(Boolean).join(" "),
5509
5519
  "aria-label": "Show next testimonials",
5520
+ "aria-hidden": !canNext,
5521
+ tabIndex: canNext ? 0 : -1,
5522
+ disabled: !canNext,
5510
5523
  onClick: () => scrollByCard(1),
5511
5524
  children: /* @__PURE__ */ jsx44(ArrowIcon, { direction: "next" })
5512
5525
  }