@integrigo/integrigo-ui 1.5.14 → 1.5.15
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,4 +1,5 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import { FieldProps } from "formik";
|
2
3
|
import { ValidationType } from "../../../types/validation";
|
3
4
|
import { IconType } from "../../atoms/Icon";
|
4
5
|
export declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
@@ -7,6 +8,7 @@ export declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement
|
|
7
8
|
icon?: IconType;
|
8
9
|
size?: "xl" | "l" | "m" | "s";
|
9
10
|
direction?: "ltr" | "rtl";
|
11
|
+
field?: FieldProps;
|
10
12
|
onIconClick?: () => void;
|
11
13
|
};
|
12
14
|
export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
@@ -15,5 +17,6 @@ export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTML
|
|
15
17
|
icon?: "angle-down" | "bars" | "check-circle" | "close" | "envelope" | "exclamation-circle" | "exclamation-triangle" | "facebook" | "instagram" | "linkedin" | "minus" | "phone" | "plus" | "process" | "redo" | "user-circle" | undefined;
|
16
18
|
size?: "xl" | "l" | "m" | "s" | undefined;
|
17
19
|
direction?: "ltr" | "rtl" | undefined;
|
20
|
+
field?: FieldProps<any, any> | undefined;
|
18
21
|
onIconClick?: (() => void) | undefined;
|
19
22
|
} & React.RefAttributes<HTMLInputElement>>;
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"registry": "https://npm.pkg.github.com/integrigo"
|
5
5
|
},
|
6
|
-
"version": "1.5.
|
6
|
+
"version": "1.5.15",
|
7
7
|
"main": "lib/index.js",
|
8
8
|
"module": "lib/index.esm.js",
|
9
9
|
"types": "lib/index.d.ts",
|
@@ -33,7 +33,9 @@
|
|
33
33
|
"styled-components": "^5.3.3",
|
34
34
|
"typescript": "^4.5.5"
|
35
35
|
},
|
36
|
-
"dependencies": {
|
36
|
+
"dependencies": {
|
37
|
+
"formik": "^2.2.9"
|
38
|
+
},
|
37
39
|
"peerDependencies": {
|
38
40
|
"react": "^17.0.2",
|
39
41
|
"react-dom": "^17.0.2",
|