@salla.sa/twilight-components
Version:
Salla Web Component
36 lines (35 loc) • 822 B
TypeScript
export declare class SallaCookiesBar {
host: HTMLElement;
/**
* Whether the cookies bar is visible.
*/
isVisible: boolean;
/**
* Whether the viewport is mobile width (updates on resize).
*/
isMobile: boolean;
private mobileQuery;
private mobileBreakpoint;
private mobileQueryHandler;
/**
* The label for component
*/
messageLabel: string;
linkLabel: string;
acceptLabel: string;
rejectLabel: string;
componentWillLoad(): Promise<void>;
private loadTranslations;
componentDidLoad(): void;
disconnectedCallback(): void;
/**
* Accept cookies consent.
*/
accept(): Promise<HTMLElement>;
/**
* Reject cookies consent.
*/
reject(): Promise<HTMLElement>;
private isRtl;
render(): any;
}