@duyluonganduin/acl-web-components 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -216,6 +216,7 @@ export declare class AnduinPopover extends LitElement {
216
216
  open: boolean;
217
217
  placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
218
218
  private _visible;
219
+ private _closing;
219
220
  private _triggerEl;
220
221
  private _panelEl;
221
222
  private _closeTransitionEndHandler;
@@ -340,6 +341,31 @@ export declare class AnduinTextarea extends LitElement {
340
341
  render(): TemplateResult<1>;
341
342
  }
342
343
 
344
+ export declare class AnduinToast extends LitElement {
345
+ static styles: CSSResult;
346
+ variant: ToastVariant;
347
+ heading: string;
348
+ description: string;
349
+ private _dismissing;
350
+ private _toastEl;
351
+ dismiss(): void;
352
+ private _onClose;
353
+ render(): TemplateResult<1>;
354
+ }
355
+
356
+ export declare class AnduinToaster extends LitElement {
357
+ static styles: CSSResult;
358
+ position: ToastPosition;
359
+ private _toasts;
360
+ private _nextId;
361
+ show(opts: ToastOptions): number;
362
+ dismiss(id: number): void;
363
+ private _dismissById;
364
+ private _removeById;
365
+ private _onDismiss;
366
+ render(): TemplateResult<1>;
367
+ }
368
+
343
369
  export declare class AnduinTooltip extends LitElement {
344
370
  static styles: CSSResult;
345
371
  disabled: boolean;
@@ -451,6 +477,27 @@ export declare type TagVariant = 'gray' | 'primary' | 'success' | 'warning' | 'd
451
477
 
452
478
  export declare const TEXTAREA_CHANGE = "anduin-textarea:change";
453
479
 
480
+ export declare const toast: {
481
+ show(opts: ToastOptions): number;
482
+ success(heading: string, description?: string, opts?: Omit<ToastOptions, "variant" | "heading" | "description">): number;
483
+ danger(heading: string, description?: string, opts?: Omit<ToastOptions, "variant" | "heading" | "description">): number;
484
+ warning(heading: string, description?: string, opts?: Omit<ToastOptions, "variant" | "heading" | "description">): number;
485
+ primary(heading: string, description?: string, opts?: Omit<ToastOptions, "variant" | "heading" | "description">): number;
486
+ gray(heading: string, description?: string, opts?: Omit<ToastOptions, "variant" | "heading" | "description">): number;
487
+ };
488
+
489
+ export declare interface ToastOptions {
490
+ variant?: ToastVariant;
491
+ heading?: string;
492
+ description?: string;
493
+ duration?: number;
494
+ position?: ToastPosition;
495
+ }
496
+
497
+ export declare type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
498
+
499
+ export declare type ToastVariant = "gray" | "primary" | "success" | "warning" | "danger";
500
+
454
501
  export declare const TOOLTIP_CONTENT_POPUP_MOUNTED = "anduin-tooltip:content-popup-mounted";
455
502
 
456
503
  export declare const TOOLTIP_CONTENT_POPUP_UNMOUNTED = "anduin-tooltip:content-popup-unmounted";