import * as React from 'react'; import { headerActionsHasBadge } from './header-actions-badge.js'; export { headerActionsHasBadge }; export interface HeaderActionsProps { /** * The secondary header toggles (search, dark-mode, print, settings, updates, * notifications, …). On `sm:`+ they render inline; below `sm` they collapse * into a single overflow popover so they never spill out of the cramped phone * header. */ children: React.ReactNode; /** * Aggregate badge bubbled onto the collapsed overflow trigger so a pending * notification (e.g. the "1" of a core update) is still visible when the * toggles are hidden in the popover. A numeric `0`, `false`, `null`, * `undefined` or `''` renders no badge. `'dot'` renders a small number-less * dot (for informational, non-actionable items). Hosts compute this from the same * counts that drive the individual toggles' badges. */ overflowBadge?: number | string | boolean | null | 'dot'; /** Accessible label for the overflow trigger. Defaults to "More". */ overflowLabel?: string; /** Extra classes on the inline (desktop) container. */ className?: string; /** Extra classes on the overflow popover content. */ contentClassName?: string; } export interface HeaderActionsItemProps { /** Label shown next to the toggle in the mobile overflow menu. */ label: string; /** * The interactive toggle (usually a `Button` / `PopoverTrigger` / * `SheetTrigger` / `DropdownMenuTrigger`). On phones the whole row is the * hit target so tapping the label activates the child; on `sm:`+ only the * child renders (label is `sm:hidden`). */ children: React.ReactNode; className?: string; } /** * One row inside {@link HeaderActions}. On phones the entire row (icon + label) * is clickable — hosts used to wrap icon-only toggles with a dead text label, * so "Tema" / "Imprimir" looked like menu items but only the 24px icon worked. * * Forwards a label-area click to the first button / `[role=button]` / `a` * inside `children` so nested Popover/Sheet/Dropdown triggers still fire. */ export declare function HeaderActionsItem({ label, children, className, }: HeaderActionsItemProps): React.JSX.Element; /** * Responsive wrapper for the secondary header action toggles. * * - **`sm:`+ (desktop/tablet):** renders `children` inline, exactly as before. * - **below `sm` (phone):** collapses every toggle into ONE overflow button (a * kebab) that opens a popover containing the same toggles stacked vertically, * so the header never overflows. Any pending count is bubbled onto the kebab * via `overflowBadge`. * * The overflow Popover is `modal={false}` so nested Popover / DropdownMenu / * Sheet triggers inside (print width, updates list, theme settings) can open * without the kebab stealing the first tap or trapping focus. * * Purely Tailwind-driven (`hidden sm:flex` / `flex sm:hidden`) — no resize * listeners. The toggles live in the DOM twice (inline + popover) but only the * breakpoint-visible copy is interactive. Prefer wrapping each child with * {@link HeaderActionsItem} so the mobile label is part of the hit target. * * The user avatar / profile dropdown is intentionally NOT part of this — keep it * a sibling that stays always-visible outside ``. */ export declare function HeaderActions({ children, overflowBadge, overflowLabel, className, contentClassName, }: HeaderActionsProps): React.JSX.Element; //# sourceMappingURL=header-actions.d.ts.map