flicker-alerts 1.0.74 → 1.0.75

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/readme.md +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
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.73"
21
+ "flicker-alerts": "^1.0.75"
22
22
  }
23
23
  }
package/readme.md CHANGED
@@ -52,6 +52,7 @@ FlickerAlerts.showAlert({
52
52
  title: 'Sucesso!',
53
53
  message: 'Operação realizada com sucesso.',
54
54
  position: 'top-right' // 'top-right', 'top-left', 'bottom-right', 'bottom-left', 'center'
55
+ duration: 5000
55
56
  });
56
57
  ```
57
58
 
@@ -73,6 +74,7 @@ export class AppComponent {
73
74
  title: 'Atenção!',
74
75
  message: 'Algo deu errado.',
75
76
  position: 'top-center'
77
+ duration: 5000
76
78
  });
77
79
  }
78
80
 
@@ -115,6 +117,7 @@ const App = () => {
115
117
  title: 'Informação',
116
118
  message: 'Este é um alerta informativo.',
117
119
  position: 'bottom-left'
120
+ duration: 5000
118
121
  });
119
122
  };
120
123
 
@@ -154,6 +157,7 @@ Essa abordagem é recomendada para garantir que o estilo seja incluído no build
154
157
  | `title` | `string` | Título do alerta. |
155
158
  | `message` | `string` | Mensagem do alerta. |
156
159
  | `position` | `string` | Posição: `top-right`, `top-left`, `bottom-right`, etc. |
160
+ | `duration` | `number` | Duração do alerta em milissegundos. |
157
161
 
158
162
  ---
159
163