@kenlo/kdls-design-system 2.28.0 → 2.28.1

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.
@@ -81,7 +81,8 @@ export interface HeaderProps {
81
81
  };
82
82
  /** Slot for context selector (unit/site) */
83
83
  contextSelector?: React.ReactNode;
84
- /** Free slot on the right, before the avatar — e.g. a version badge */
84
+ /** Free slot on the right, before the avatar (and before the navigation button, when
85
+ * showNavButton draws one) — e.g. a version badge */
85
86
  rightSlot?: React.ReactNode;
86
87
  /** Items shown in the profile menu (desktop dropdown + mobile menu), below the user info. Customizable per product — empty by default, nothing decorative is assumed. */
87
88
  profileMenuItems?: HeaderProfileMenuItem[];
@@ -94,6 +95,20 @@ export interface HeaderProps {
94
95
  showFAQs?: boolean;
95
96
  /** Hides the notifications bell — use when the product has no notifications concept */
96
97
  showNotifications?: boolean;
98
+ /**
99
+ * Draws a navigation button (the hamburger) in the collapsed mobile bar, between the right
100
+ * slot and the avatar: logo, right slot, navigation, avatar. The navItems then open from it
101
+ * and leave the avatar's menu, which keeps the account (profile, profileMenuItems, FAQs,
102
+ * logout). `false` by default: the navigation stays inside the avatar's menu. Drawn only
103
+ * when there are navItems.
104
+ */
105
+ showNavButton?: boolean;
106
+ /**
107
+ * Draws the 1px line under the bar. `false` by default.
108
+ * Use `true` only when nothing sits right under the Header (no sub-header) and the page
109
+ * behind it has the Header's own background — the line is what tells the two apart.
110
+ */
111
+ bordered?: boolean;
97
112
  className?: string;
98
113
  }
99
114
  export declare const Header: React.FC<HeaderProps>;