@deriv-web-design/ui 0.1.9 → 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.d.mts CHANGED
@@ -667,9 +667,16 @@ interface HeaderProps extends HTMLAttributes<HTMLElement> {
667
667
  * The field always renders for that variant; this prop only customises it.
668
668
  */
669
669
  search?: HeaderSearchProps;
670
+ /**
671
+ * Set to `true` when the fixed `Navbar` is rendered above this header (it is
672
+ * the first section on the page). Reserves top clearance equal to the navbar's
673
+ * footprint so the vertically-centred title never slides under the fixed pill.
674
+ * Defaults to `false` — leave it off when there is no navbar above the header.
675
+ */
676
+ underNavbar?: boolean;
670
677
  }
671
678
 
672
- declare const Header: ({ variant, subtitle, title, description, primaryButton, secondaryButton, leftVisual, rightVisual, search, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
679
+ declare const Header: ({ variant, subtitle, title, description, primaryButton, secondaryButton, leftVisual, rightVisual, search, underNavbar, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
673
680
 
674
681
  interface StatItem {
675
682
  /** Numeric or short display value, e.g. "2.5M+" */
package/dist/index.d.ts CHANGED
@@ -667,9 +667,16 @@ interface HeaderProps extends HTMLAttributes<HTMLElement> {
667
667
  * The field always renders for that variant; this prop only customises it.
668
668
  */
669
669
  search?: HeaderSearchProps;
670
+ /**
671
+ * Set to `true` when the fixed `Navbar` is rendered above this header (it is
672
+ * the first section on the page). Reserves top clearance equal to the navbar's
673
+ * footprint so the vertically-centred title never slides under the fixed pill.
674
+ * Defaults to `false` — leave it off when there is no navbar above the header.
675
+ */
676
+ underNavbar?: boolean;
670
677
  }
671
678
 
672
- declare const Header: ({ variant, subtitle, title, description, primaryButton, secondaryButton, leftVisual, rightVisual, search, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
679
+ declare const Header: ({ variant, subtitle, title, description, primaryButton, secondaryButton, leftVisual, rightVisual, search, underNavbar, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
673
680
 
674
681
  interface StatItem {
675
682
  /** Numeric or short display value, e.g. "2.5M+" */
package/dist/index.js CHANGED
@@ -2089,6 +2089,7 @@ var Header = ({
2089
2089
  leftVisual,
2090
2090
  rightVisual,
2091
2091
  search,
2092
+ underNavbar = false,
2092
2093
  className,
2093
2094
  ...props
2094
2095
  }) => {
@@ -2135,7 +2136,7 @@ var Header = ({
2135
2136
  "section",
2136
2137
  {
2137
2138
  ref: sectionRef,
2138
- className: ["header", variantClass, className].filter(Boolean).join(" "),
2139
+ className: ["header", variantClass, underNavbar && "header--under-navbar", className].filter(Boolean).join(" "),
2139
2140
  ...props,
2140
2141
  children: [
2141
2142
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "header__grid", "aria-hidden": "true" }),