@typeolymp/ui-components 1.16.2 → 1.16.4
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.
|
@@ -10,14 +10,14 @@ import { PropsType as CheckboxesPropsType } from "../../molecules/Checkboxes";
|
|
|
10
10
|
import { PropsType as SelectFieldPropsType } from "../../molecules/SelectField";
|
|
11
11
|
import { PropsType as ToggleFieldPropsType } from "../../molecules/ToggleField";
|
|
12
12
|
import { PropsType as RangeFieldPropsType } from "../../molecules/RangeField";
|
|
13
|
-
declare type ValueType = string |
|
|
13
|
+
declare type ValueType = string | string[] | number | boolean;
|
|
14
14
|
export declare type FeedbackType = {
|
|
15
15
|
message: string;
|
|
16
16
|
status: "error" | "success" | "";
|
|
17
17
|
};
|
|
18
18
|
declare type ValidationType = {
|
|
19
19
|
validateTrigger?: Array<"onBlur" | "onChange">;
|
|
20
|
-
validator
|
|
20
|
+
validator?: (value: ValueType) => FeedbackType;
|
|
21
21
|
feedback?: FeedbackType;
|
|
22
22
|
};
|
|
23
23
|
declare type InputFieldType = {
|