flicker-alerts 1.0.71 → 1.0.73

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 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 default class FlickerAlerts {
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 classe para os modais
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
@@ -226,6 +226,4 @@ if (typeof document !== 'undefined') {
226
226
  });
227
227
  });
228
228
  }
229
- export { FlickerModals };
230
-
231
- export default FlickerAlerts;
229
+ export { FlickerAlerts, FlickerModals };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
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.71"
21
+ "flicker-alerts": "^1.0.73"
22
22
  }
23
23
  }
package/readme.md CHANGED
@@ -45,7 +45,7 @@ Após a instalação, importe a biblioteca no seu projeto e utilize a função `
45
45
  ### Exemplo Básico de Alerta:
46
46
 
47
47
  ```javascript
48
- import FlickerAlerts from 'flicker-alerts';
48
+ import { FlickerAlerts, FlickerModals } from 'flicker-alerts';
49
49
 
50
50
  FlickerAlerts.showAlert({
51
51
  type: 'success', // 'success', 'info', 'warning', 'danger'
@@ -64,7 +64,7 @@ FlickerAlerts.showAlert({
64
64
  1. **Importe e use:**
65
65
 
66
66
  ```typescript
67
- import FlickerAlerts, { FlickerModals } from 'flicker-alerts';
67
+ import { FlickerAlerts, FlickerModals } from 'flicker-alerts';
68
68
 
69
69
  export class AppComponent {
70
70
  showAlert() {
@@ -105,7 +105,7 @@ Se você prefere não usar o CDN, pode configurar o Angular para importar o arqu
105
105
  1. **Importe e use:**
106
106
 
107
107
  ```javascript
108
- import FlickerAlerts, { FlickerModals } from 'flicker-alerts';
108
+ import { FlickerAlerts, FlickerModals } from 'flicker-alerts';
109
109
 
110
110
 
111
111
  const App = () => {
package/style.css CHANGED
@@ -70,6 +70,7 @@ margin: 20px;
70
70
  margin-right: 15px;
71
71
  }
72
72
 
73
+
73
74
  .notification .title {
74
75
  font-weight: bold;
75
76
  font-size: 18px;