@prosperitainova/mirage-ui 1.1.72 → 1.1.74

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ToastProps } from "./Toast";
3
4
  declare const TesterToastStories: {
@@ -6,7 +6,8 @@ export type ToastProps = HTMLAttributes<HTMLDivElement> & {
6
6
  title: string;
7
7
  text: string;
8
8
  position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
9
- toggleToast?: (event: any) => void;
9
+ toggleToast?: (event?: any) => void;
10
+ onClick?: (event?: any) => void;
10
11
  };
11
12
  declare const Toast: (props: ToastProps) => JSX.Element;
12
13
  export default Toast;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ToastProps } from "./Toast";
3
4
  declare const ToastStories: {
package/dist/index.d.ts CHANGED
@@ -266,7 +266,8 @@ type ToastProps = HTMLAttributes<HTMLDivElement> & {
266
266
  title: string;
267
267
  text: string;
268
268
  position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
269
- toggleToast?: (event: any) => void;
269
+ toggleToast?: (event?: any) => void;
270
+ onClick?: (event?: any) => void;
270
271
  };
271
272
  declare const Toast: (props: ToastProps) => JSX.Element;
272
273
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {