flicker-alerts 1.0.82 → 1.0.83
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/package.json +2 -2
- package/readme.md +42 -18
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "flicker-alerts",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.83",
|
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.83"
|
22
22
|
}
|
23
23
|
}
|
package/readme.md
CHANGED
@@ -80,15 +80,27 @@ export class AppComponent {
|
|
80
80
|
});
|
81
81
|
}
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
83
|
+
const showModal = () => {
|
84
|
+
FlickerModals.showModal({
|
85
|
+
type: 'delete',
|
86
|
+
title: 'Confirmação de Exclusão',
|
87
|
+
message: 'Deseja realmente excluir este item?',
|
88
|
+
onConfirm: () => {
|
89
|
+
console.log('Item deletado!');
|
90
|
+
// Exibir o alerta de sucesso após a exclusão
|
91
|
+
FlickerAlerts.showAlert({
|
92
|
+
type: 'success',
|
93
|
+
title: 'Sucesso!',
|
94
|
+
message: 'Item deletado com sucesso!',
|
95
|
+
duration: 3000 // duração do alerta
|
96
|
+
});
|
97
|
+
},
|
98
|
+
onCancel: () => {
|
99
|
+
console.log('Ação cancelada.');
|
100
|
+
}
|
101
|
+
});
|
102
|
+
};
|
103
|
+
|
92
104
|
}
|
93
105
|
```
|
94
106
|
|
@@ -123,15 +135,27 @@ const App = () => {
|
|
123
135
|
});
|
124
136
|
};
|
125
137
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
138
|
+
const showModal = () => {
|
139
|
+
FlickerModals.showModal({
|
140
|
+
type: 'delete',
|
141
|
+
title: 'Confirmação de Exclusão',
|
142
|
+
message: 'Deseja realmente excluir este item?',
|
143
|
+
onConfirm: () => {
|
144
|
+
console.log('Item deletado!');
|
145
|
+
// Exibir o alerta de sucesso após a exclusão
|
146
|
+
FlickerAlerts.showAlert({
|
147
|
+
type: 'success',
|
148
|
+
title: 'Sucesso!',
|
149
|
+
message: 'Item deletado com sucesso!',
|
150
|
+
duration: 3000 // duração do alerta
|
151
|
+
});
|
152
|
+
},
|
153
|
+
onCancel: () => {
|
154
|
+
console.log('Ação cancelada.');
|
155
|
+
}
|
156
|
+
});
|
157
|
+
};
|
158
|
+
|
135
159
|
|
136
160
|
|
137
161
|
};
|