UNPKG

@trycourier/courier-ui-inbox

Version:

Inbox components for the Courier web UI

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