@prosperitainova/mirage-ui 1.0.56 → 1.0.58

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,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Props as ReactSelectProps } from "react-select";
3
2
  import "../../../src/theme/fonts/ProximaNova.css";
4
3
  export type SelectProps = Omit<ReactSelectProps, "onChange"> & {
5
- onChange?: (e: any) => void;
4
+ onChange?: (event: any) => void;
6
5
  error?: string | boolean;
7
6
  success?: boolean;
8
7
  helper?: string;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
1
  import "../../../src/theme/fonts/ProximaNova.css";
3
2
  export type MenusProps = {
4
3
  label: string;
5
4
  value: string;
6
5
  disabled?: boolean;
6
+ onClick?: (index: number) => void;
7
7
  };
8
8
  export type TabMenuProps = {
9
9
  menus: MenusProps[];
package/dist/index.d.ts CHANGED
@@ -173,7 +173,7 @@ type SearchProps = InputHTMLAttributes<HTMLInputElement> & {
173
173
  declare const Search: (props: SearchProps) => JSX.Element;
174
174
 
175
175
  type SelectProps = Omit<Props, "onChange"> & {
176
- onChange?: (e: any) => void;
176
+ onChange?: (event: any) => void;
177
177
  error?: string | boolean;
178
178
  success?: boolean;
179
179
  helper?: string;
@@ -207,6 +207,7 @@ type MenusProps = {
207
207
  label: string;
208
208
  value: string;
209
209
  disabled?: boolean;
210
+ onClick?: (index: number) => void;
210
211
  };
211
212
  type TabMenuProps = {
212
213
  menus: MenusProps[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {