flicker-alerts 1.0.71 → 1.0.72
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/index.d.ts +4 -4
- package/index.js +1 -3
- package/package.json +2 -2
- package/style.css +1 -0
package/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare module 'flicker-alerts' {
|
2
2
|
// Definição das opções para os alertas
|
3
3
|
interface AlertOptions {
|
4
|
-
type: 'success' | 'info' | 'warning' | 'danger';
|
4
|
+
type: 'success' | 'info' | 'warning' | 'danger'; // Tipos de alerta possíveis
|
5
5
|
title: string;
|
6
6
|
message: string;
|
7
7
|
duration?: number; // Duração opcional do alerta
|
@@ -10,7 +10,7 @@ declare module 'flicker-alerts' {
|
|
10
10
|
|
11
11
|
// Definição das opções para os modais
|
12
12
|
interface ModalOptions {
|
13
|
-
type: 'warning' | 'delete'// Tipos de modais disponíveis
|
13
|
+
type: 'warning' | 'delete'; // Tipos de modais disponíveis
|
14
14
|
title: string;
|
15
15
|
message: string;
|
16
16
|
onConfirm?: () => void; // Função executada no botão de confirmação
|
@@ -18,12 +18,12 @@ declare module 'flicker-alerts' {
|
|
18
18
|
}
|
19
19
|
|
20
20
|
// Definição da classe para os alertas
|
21
|
-
export
|
21
|
+
export class FlickerAlerts {
|
22
22
|
// Método estático para mostrar um alerta
|
23
23
|
static showAlert(options: AlertOptions): void;
|
24
24
|
}
|
25
25
|
|
26
|
-
// Definição da
|
26
|
+
// Definição da exportação para os modais
|
27
27
|
export const FlickerModals: {
|
28
28
|
showModal(options: ModalOptions): void;
|
29
29
|
};
|
package/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "flicker-alerts",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.72",
|
4
4
|
"repository": "https://www.linkedin.com/in/bruno-carneiro-9a53aa190/",
|
5
5
|
"homepage": "https://flickeralerts.netlify.app/",
|
6
6
|
"description": "Biblioteca para alertas animados",
|
@@ -18,6 +18,6 @@
|
|
18
18
|
"author": "https://www.linkedin.com/in/bruno-carneiro-9a53aa190/",
|
19
19
|
"license": "MIT",
|
20
20
|
"dependencies": {
|
21
|
-
"flicker-alerts": "^1.0.
|
21
|
+
"flicker-alerts": "^1.0.72"
|
22
22
|
}
|
23
23
|
}
|