@edinelsonslima/toast-notification 0.0.27 → 0.0.29
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/README.md
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">Toast Notifications</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<div align="center">
|
|
4
|
+
<image src="https://github.com/edinelsonslima/lp-toast-notification/blob/main/lp.gif"/>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
## 👀 Links
|
|
8
|
+
- 🔗 [Apresentação do toast notification](https://edinelsonslima.github.io/lp-toast-notification/)
|
|
9
|
+
- 🔗 [NPM](https://www.npmjs.com/package/@edinelsonslima/toast-notification)
|
|
4
10
|
|
|
11
|
+
## ⤵️ Instalando
|
|
5
12
|
Adicionar com **yarn**
|
|
6
13
|
```
|
|
7
14
|
yarn add @edinelsonslima/toast-notification
|
|
@@ -3,11 +3,10 @@ import { IToast } from "../../helpers/toast.helper";
|
|
|
3
3
|
export interface IToastData extends IToast {
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
6
|
-
interface IToastContainerProps {
|
|
6
|
+
export interface IToastContainerProps {
|
|
7
7
|
classNames?: {
|
|
8
8
|
[type in IToast["type"]]?: HTMLButtonElement["className"] | CSSProperties;
|
|
9
9
|
};
|
|
10
10
|
position?: "right-top" | "right-center" | "right-bottom" | "center-top" | "center-center" | "center-bottom" | "left-top" | "left-center" | "left-bottom";
|
|
11
11
|
}
|
|
12
12
|
export declare function ToastContainer({ classNames, position, }: IToastContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { toast } from "./helpers/toast.helper";
|
|
2
|
-
export { ToastContainer } from "./components/Toast/toast-container.component";
|
|
2
|
+
export { ToastContainer, type IToastContainerProps, } from "./components/Toast/toast-container.component";
|