@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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/CustomSelect/CustomSelect.d.ts +2 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/CustomSelect/CustomSelect.d.ts +2 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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:
|
|
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
|
|
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:
|
|
157
|
+
type SelectProps = Omit<Props, "onChange"> & {
|
|
158
|
+
onChange?: (e: any) => void;
|
|
159
159
|
error?: string;
|
|
160
160
|
success?: boolean;
|
|
161
161
|
helper?: string;
|