@blakesteve/roster 2.0.1 → 2.2.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.
@@ -16,11 +16,30 @@ export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, VariantP
16
16
  notificationCount?: number;
17
17
  avatarSrc?: string;
18
18
  };
19
- onLogout: () => void;
20
- onInboxClick: () => void;
19
+ onLogout?: () => void;
20
+ onInboxClick?: () => void;
21
21
  onThemeToggle?: () => void;
22
22
  themeMode?: "light" | "dark";
23
23
  notificationVariant?: "primary" | "error" | "amber" | "success" | "neutral" | "orange" | "teal" | "purple";
24
+ /**
25
+ * Custom content rendered in the right-side action area. When provided it
26
+ * replaces the built-in user menu / "Log In" button on desktop and the user
27
+ * section in the mobile panel, giving you full control over auth UI.
28
+ */
29
+ actions?: React.ReactNode;
30
+ /**
31
+ * Replaces the default brand name `<span>` with arbitrary markup. Use this
32
+ * when you need mixed weights, colours, or other rich styling that a plain
33
+ * string cannot express (e.g. bold "GAME" + thin "VERDICT").
34
+ * The logo image is always rendered; this only affects the text element.
35
+ */
36
+ brandElement?: React.ReactNode;
37
+ /**
38
+ * Auth-gated navigation items appended to the built-in user avatar dropdown
39
+ * on desktop and to the nav section of the mobile slide-out panel. Only
40
+ * rendered when the `user` prop is provided. Ignored when `actions` is set.
41
+ */
42
+ userMenuItems?: NavItem[];
24
43
  }
25
- declare const Navbar: ({ logoSrc, brandName, items, activePath, routerElement, user, onLogout, onInboxClick, onThemeToggle, className, variant, position, themeMode, notificationVariant, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
44
+ declare const Navbar: ({ logoSrc, brandName, items, activePath, routerElement, user, onLogout, onInboxClick, onThemeToggle, actions, brandElement, userMenuItems, className, variant, position, themeMode, notificationVariant, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
26
45
  export { Navbar };