@nysds/nys-alert 1.0.0
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.
- package/dist/index.d.ts +1 -0
- package/dist/nys-alert.d.ts +39 -0
- package/dist/nys-alert.js +3299 -0
- package/dist/nys-alert.js.map +1 -0
- package/dist/nys-alert.styles.d.ts +2 -0
- package/package.json +43 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./nys-alert";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "@nysds/nys-icon";
|
|
3
|
+
import "@nysds/nys-button";
|
|
4
|
+
export declare class NysAlert extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
/********************** Properties **********************/
|
|
7
|
+
id: string;
|
|
8
|
+
heading: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
dismissible: boolean;
|
|
11
|
+
duration: number;
|
|
12
|
+
text: string;
|
|
13
|
+
primaryAction: string;
|
|
14
|
+
secondaryAction: string;
|
|
15
|
+
primaryLabel: string;
|
|
16
|
+
secondaryLabel: string;
|
|
17
|
+
private _alertClosed;
|
|
18
|
+
private _slotHasContent;
|
|
19
|
+
private static readonly VALID_TYPES;
|
|
20
|
+
private _type;
|
|
21
|
+
get type(): string;
|
|
22
|
+
set type(value: string);
|
|
23
|
+
get ariaAttributes(): {
|
|
24
|
+
role: string;
|
|
25
|
+
ariaLabel: string;
|
|
26
|
+
};
|
|
27
|
+
/**************** Lifecycle Methods ****************/
|
|
28
|
+
private _timeoutId;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
disconnectedCallback(): void;
|
|
31
|
+
firstUpdated(): void;
|
|
32
|
+
/******************** Functions ********************/
|
|
33
|
+
private _generateUniqueId;
|
|
34
|
+
private _getIconName;
|
|
35
|
+
private _checkAltNaming;
|
|
36
|
+
private _closeAlert;
|
|
37
|
+
private _checkSlotContent;
|
|
38
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
39
|
+
}
|