@yusufalperendumlu/component-library 0.0.7 → 0.0.8

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/dist/index.d.ts CHANGED
@@ -71,4 +71,14 @@ interface TableProps<T> {
71
71
 
72
72
  declare function Table<T extends Record<string, any>>({ columns, data, onRowClick, className, }: TableProps<T>): react_jsx_runtime.JSX.Element;
73
73
 
74
- export { Autocomplete, Button, Dialog, Input, Table };
74
+ type ToastProps = {
75
+ title: string;
76
+ description: string;
77
+ duration?: number;
78
+ type: 'success' | 'error';
79
+ position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
80
+ };
81
+
82
+ declare const Toast: React$1.FC<ToastProps>;
83
+
84
+ export { Autocomplete, Button, Dialog, Input, Table, Toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yusufalperendumlu/component-library",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,3 @@
1
+ import Toast from "./Toast";
2
+
3
+ export default Toast;
@@ -3,3 +3,4 @@ export { default as Button } from './Button';
3
3
  export { default as Dialog } from './Dialog';
4
4
  export { default as Input } from './Input';
5
5
  export { default as Table } from './Table';
6
+ export { default as Toast } from './Toast';