UNPKG

@trycourier/courier-ui-inbox

Version:

Inbox components for the Courier web UI

29 lines (28 loc) 1.06 kB
import { CourierBaseElement } from '@trycourier/courier-ui-core'; import { CourierInboxTheme } from '../types/courier-inbox-theme'; import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager'; export type CourierUnreadCountBadgeLocation = "feed" | "tab"; export declare class CourierUnreadCountBadge extends CourierBaseElement { static get id(): string; private _themeSubscription; private _location; private _count; private _style?; private _shadowRoot?; private _container?; get theme(): CourierInboxTheme; constructor(props: { themeBus: CourierInboxThemeManager; location: CourierUnreadCountBadgeLocation; }); onComponentMounted(): void; private attachElements; onComponentUnmounted(): void; private static getThemePath; static getStyles(theme: CourierInboxTheme, location?: CourierUnreadCountBadgeLocation): string; private getStyles; setCount(count: number): void; setActive(active: boolean): void; refreshTheme(): void; private updateBadge; }