@blakesteve/roster 2.4.0 → 2.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.
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { ctaVariants } from './call-to-action-variants';
4
- export interface CallToActionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof ctaVariants> {
5
- title: string;
4
+ export interface CallToActionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof ctaVariants> {
5
+ title: React.ReactNode;
6
6
  description?: React.ReactNode;
7
7
  action?: React.ReactNode;
8
8
  icon?: React.ReactNode;
@@ -36,6 +36,14 @@ export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, VariantP
36
36
  * The logo image is always rendered; this only affects the text element.
37
37
  */
38
38
  brandElement?: React.ReactNode;
39
+ /**
40
+ * Extra content rendered between the nav link list and the user menu / Log In
41
+ * button on desktop, and above the nav links in the mobile slide-out panel.
42
+ * Use this for persistent nav-level controls like a search toggle that should
43
+ * coexist with the built-in user menu. Does not replace the user menu —
44
+ * see `actions` for full replacement.
45
+ */
46
+ navActions?: React.ReactNode;
39
47
  /**
40
48
  * Auth-gated navigation items appended to the built-in user avatar dropdown
41
49
  * on desktop and to the nav section of the mobile slide-out panel. Only
@@ -43,5 +51,5 @@ export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, VariantP
43
51
  */
44
52
  userMenuItems?: NavItem[];
45
53
  }
46
- declare const Navbar: ({ logoSrc, brandName, items, activePath, routerElement, user, onLogin, onLogout, onInboxClick, onThemeToggle, actions, brandElement, userMenuItems, className, variant, position, themeMode, notificationVariant, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
54
+ declare const Navbar: ({ logoSrc, brandName, items, activePath, routerElement, user, onLogin, onLogout, onInboxClick, onThemeToggle, actions, brandElement, navActions, userMenuItems, className, variant, position, themeMode, notificationVariant, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
47
55
  export { Navbar };