@thecb/components 8.0.6-beta.5 → 8.0.6-beta.6
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/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
4
4
|
|
|
5
5
|
interface ButtonWithActionProps {
|
|
6
|
-
action?: React.
|
|
6
|
+
action?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
variant?: string;
|
|
8
8
|
text?: string;
|
|
9
9
|
textWrap?: boolean;
|
|
@@ -60,26 +60,18 @@ declare const Card: React.FC<Expand<CardProps> &
|
|
|
60
60
|
React.HTMLAttributes<HTMLElement>>;
|
|
61
61
|
|
|
62
62
|
interface ErrorMessage {
|
|
63
|
-
|
|
64
|
-
}
|
|
63
|
+
[fieldName: string]: string;
|
|
64
|
+
}
|
|
65
65
|
|
|
66
66
|
interface FormInputProps {
|
|
67
|
-
|
|
68
|
-
labelTextWhenNoError?: string;
|
|
67
|
+
disabled?: boolean;
|
|
69
68
|
errorMessages?: ErrorMessage[];
|
|
70
|
-
isNum?: boolean;
|
|
71
|
-
isEmail?: boolean;
|
|
72
69
|
helperModal?: boolean;
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
isEmail?: boolean;
|
|
71
|
+
isNum?: boolean;
|
|
72
|
+
labelTextWhenNoError?: string;
|
|
75
73
|
showErrors?: boolean;
|
|
76
|
-
|
|
77
|
-
decorator?: any;
|
|
78
|
-
background?: any;
|
|
79
|
-
customHeight?: any;
|
|
80
|
-
autocomplete?: any;
|
|
81
|
-
extraStyles?: any;
|
|
82
|
-
removeFromValue?: any;
|
|
74
|
+
type?: string;
|
|
83
75
|
}
|
|
84
76
|
|
|
85
77
|
declare const FormInput: React.FC<Expand<FormInputProps> &
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import Expand from "../../../util/expand";
|
|
3
3
|
|
|
4
4
|
export interface ButtonWithActionProps {
|
|
5
|
-
action?: React.
|
|
5
|
+
action?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
6
|
variant?: string;
|
|
7
7
|
text?: string;
|
|
8
8
|
textWrap?: boolean;
|
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Expand from "../../../util/expand";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
interface ErrorMessage {
|
|
6
|
-
[fieldName: string]: string;
|
|
7
|
-
}
|
|
3
|
+
import ErrorMessage from "../../../types/common/ErrorMessage";
|
|
8
4
|
|
|
9
5
|
export interface FormInputProps {
|
|
10
|
-
|
|
11
|
-
labelTextWhenNoError?: string;
|
|
6
|
+
disabled?: boolean;
|
|
12
7
|
errorMessages?: ErrorMessage[];
|
|
13
|
-
isNum?: boolean;
|
|
14
|
-
isEmail?: boolean;
|
|
15
8
|
helperModal?: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
isEmail?: boolean;
|
|
10
|
+
isNum?: boolean;
|
|
11
|
+
labelTextWhenNoError?: string;
|
|
18
12
|
showErrors?: boolean;
|
|
19
|
-
|
|
20
|
-
decorator?: any;
|
|
21
|
-
background?: any;
|
|
22
|
-
customHeight?: any;
|
|
23
|
-
autocomplete?: any;
|
|
24
|
-
extraStyles?: any;
|
|
25
|
-
removeFromValue?: any;
|
|
13
|
+
type?: string;
|
|
26
14
|
}
|
|
27
15
|
|
|
28
16
|
export const FormInput: React.FC<Expand<FormInputProps> &
|