@prosperitainova/mirage-ui 1.0.12 → 1.0.13

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.
@@ -5,6 +5,8 @@ export type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAtt
5
5
  success?: boolean;
6
6
  helper?: string;
7
7
  label?: string;
8
+ newPassword?: boolean;
9
+ newPasswordLevel?: "easy" | "medium" | "hard";
8
10
  };
9
11
  declare const Input: (props: InputProps) => JSX.Element;
10
12
  export default Input;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from "./Input";
3
2
  import { Story } from "@storybook/react";
4
3
  declare const InputStories: {
@@ -0,0 +1,2 @@
1
+ declare const TesterToast: () => JSX.Element;
2
+ export default TesterToast;
@@ -0,0 +1,8 @@
1
+ import { Story } from "@storybook/react";
2
+ import { ToastProps } from "./Toast";
3
+ declare const TesterToastStories: {
4
+ title: string;
5
+ component: () => JSX.Element;
6
+ };
7
+ export default TesterToastStories;
8
+ export declare const Success: Story<ToastProps>;
@@ -6,7 +6,7 @@ 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
- onClick?: (props: string) => void;
9
+ toggleToast?: (event: any) => void;
10
10
  };
11
11
  declare const Toast: (props: ToastProps) => JSX.Element;
12
12
  export default Toast;
package/dist/index.d.ts CHANGED
@@ -68,6 +68,8 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes
68
68
  success?: boolean;
69
69
  helper?: string;
70
70
  label?: string;
71
+ newPassword?: boolean;
72
+ newPasswordLevel?: "easy" | "medium" | "hard";
71
73
  };
72
74
  declare const Input: (props: InputProps) => JSX.Element;
73
75
 
@@ -198,7 +200,7 @@ type ToastProps = HTMLAttributes<HTMLDivElement> & {
198
200
  title: string;
199
201
  text: string;
200
202
  position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
201
- onClick?: (props: string) => void;
203
+ toggleToast?: (event: any) => void;
202
204
  };
203
205
  declare const Toast: (props: ToastProps) => JSX.Element;
204
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {