@prosperitainova/mirage-ui 1.0.60 → 1.0.62

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,10 +1,10 @@
1
1
  import { ButtonHTMLAttributes } from "react";
2
2
  import "../../../src/theme/fonts/ProximaNova.css";
3
3
  export type DropdownOptions = {
4
- value: string;
5
- label: string;
4
+ value?: string;
5
+ label?: string;
6
6
  color?: string;
7
- onClick?: (value: string) => void;
7
+ onClick?: () => void;
8
8
  };
9
9
  export type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
10
10
  mode: "main" | "border";
@@ -4,7 +4,7 @@ export type UsersProps = {
4
4
  img?: string;
5
5
  text: string;
6
6
  label: string;
7
- changeUser?: (index: number) => void;
7
+ changeUser?: (index?: number) => void;
8
8
  };
9
9
  export type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
10
10
  open?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuDropdownProps } from "./MenuDropdown";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const MenuDropdownStories: {
package/dist/index.d.ts CHANGED
@@ -36,10 +36,10 @@ type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
36
36
  declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
37
37
 
38
38
  type DropdownOptions$1 = {
39
- value: string;
40
- label: string;
39
+ value?: string;
40
+ label?: string;
41
41
  color?: string;
42
- onClick?: (value: string) => void;
42
+ onClick?: () => void;
43
43
  };
44
44
  type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
45
45
  mode: "main" | "border";
@@ -108,7 +108,7 @@ type UsersProps = {
108
108
  img?: string;
109
109
  text: string;
110
110
  label: string;
111
- changeUser?: (index: number) => void;
111
+ changeUser?: (index?: number) => void;
112
112
  };
113
113
  type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
114
114
  open?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {