UNPKG

@trycourier/courier-ui-inbox

Version:

Inbox components for the Courier web UI

31 lines (30 loc) 1.23 kB
import { CourierInboxFeedType } from '../types/feed-type'; import { CourierElement } from '@trycourier/courier-ui-core'; import { CourierInboxHeaderFactoryProps } from '../types/factories'; import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager'; export type CourierInboxHeaderMenuItemId = CourierInboxFeedType | 'markAllRead' | 'archiveAll' | 'archiveRead'; export declare class CourierInboxHeader extends CourierElement { private _themeSubscription; private _feedType; private _unreadCount; private getFilterOptions; private getActionOptions; private _titleSection?; private _filterMenu?; private _actionMenu?; private _style?; private _onFeedTypeChange; constructor(props: { themeManager: CourierInboxThemeManager; onFeedTypeChange: (feedType: CourierInboxFeedType) => void; }); static get observedAttributes(): string[]; private refreshTheme; private handleOptionMenuItemClick; render(props: CourierInboxHeaderFactoryProps): void; private refreshTitleSection; build(newElement: HTMLElement | undefined | null): void; defaultElement(): HTMLElement; private getStyles; disconnectedCallback(): void; }