@prosperitainova/mirage-ui 1.0.16 → 1.0.17

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
- import { ChangeEvent } from "react";
2
1
  import { Props as ReactSelectProps } from "react-select";
3
2
  import "../../../src/theme/fonts/ProximaNova.css";
4
- export type SelectProps = ReactSelectProps & {
5
- onChange: ChangeEvent<HTMLSelectElement>;
3
+ export type SelectProps = Omit<ReactSelectProps, "onChange"> & {
4
+ onChange?: (e: any) => void;
6
5
  error?: string;
7
6
  success?: boolean;
8
7
  helper?: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ChangeEvent } from 'react';
2
+ import { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes } from 'react';
3
3
  import { Props } from 'react-select';
4
4
 
5
5
  type ItemsProps = {
@@ -154,8 +154,8 @@ type SearchProps = InputHTMLAttributes<HTMLInputElement> & {
154
154
  };
155
155
  declare const Search: (props: SearchProps) => JSX.Element;
156
156
 
157
- type SelectProps = Props & {
158
- onChange: ChangeEvent<HTMLSelectElement>;
157
+ type SelectProps = Omit<Props, "onChange"> & {
158
+ onChange?: (e: any) => void;
159
159
  error?: string;
160
160
  success?: boolean;
161
161
  helper?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {