@prosperitainova/mirage-ui 1.0.11 → 1.0.12

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.
@@ -6,7 +6,7 @@ export type ModalProps = HTMLAttributes<HTMLDivElement> & {
6
6
  title?: string;
7
7
  children?: JSX.Element;
8
8
  size: "md" | "lg";
9
- onClickOutside?: () => void;
9
+ toggleModal: (event: any) => void;
10
10
  };
11
- declare const InteractiveModal: ({ onClickOutside, ...props }: ModalProps) => JSX.Element;
11
+ declare const InteractiveModal: (props: ModalProps) => JSX.Element;
12
12
  export default InteractiveModal;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { Story } from "@storybook/react";
3
2
  import { ModalProps } from "./InteractiveModal";
4
3
  declare const InteractiveModalStories: {
5
4
  title: string;
6
- component: ({ onClickOutside, ...props }: ModalProps) => JSX.Element;
5
+ component: (props: ModalProps) => JSX.Element;
7
6
  };
8
7
  export default InteractiveModalStories;
9
8
  export declare const Interactive: Story<ModalProps>;
@@ -0,0 +1,2 @@
1
+ declare const TesterInteractiveModal: () => JSX.Element;
2
+ export default TesterInteractiveModal;
@@ -0,0 +1,8 @@
1
+ import { Story } from "@storybook/react";
2
+ import { ModalProps } from "./InteractiveModal";
3
+ declare const TesterInteractiveModalStories: {
4
+ title: string;
5
+ component: () => JSX.Element;
6
+ };
7
+ export default TesterInteractiveModalStories;
8
+ export declare const Interactive: Story<ModalProps>;
@@ -5,6 +5,7 @@ export type ModalProps = HTMLAttributes<HTMLDivElement> & {
5
5
  header?: boolean;
6
6
  title?: string;
7
7
  children?: JSX.Element;
8
+ toggleModal: () => void;
8
9
  };
9
10
  declare const lateralModal: (props: ModalProps) => JSX.Element;
10
11
  export default lateralModal;
@@ -0,0 +1,2 @@
1
+ declare const TesterLateralModal: () => JSX.Element;
2
+ export default TesterLateralModal;
@@ -0,0 +1,8 @@
1
+ import { Story } from "@storybook/react";
2
+ import { ModalProps } from "./LateralModal";
3
+ declare const TesterLateralModalStories: {
4
+ title: string;
5
+ component: () => JSX.Element;
6
+ };
7
+ export default TesterLateralModalStories;
8
+ export declare const Lateral: Story<ModalProps>;
package/dist/index.d.ts CHANGED
@@ -77,15 +77,16 @@ type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
77
77
  title?: string;
78
78
  children?: JSX.Element;
79
79
  size: "md" | "lg";
80
- onClickOutside?: () => void;
80
+ toggleModal: (event: any) => void;
81
81
  };
82
- declare const InteractiveModal: ({ onClickOutside, ...props }: ModalProps$1) => JSX.Element;
82
+ declare const InteractiveModal: (props: ModalProps$1) => JSX.Element;
83
83
 
84
84
  type ModalProps = HTMLAttributes<HTMLDivElement> & {
85
85
  open?: boolean;
86
86
  header?: boolean;
87
87
  title?: string;
88
88
  children?: JSX.Element;
89
+ toggleModal: () => void;
89
90
  };
90
91
  declare const lateralModal: (props: ModalProps) => JSX.Element;
91
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {