@itcase/forms 1.1.63 → 1.1.69
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/css/form/Field/Checkbox/FormFieldCheckbox.css +6 -2
- package/dist/css/form/Field/Code/FormFieldCode.css +7 -5
- package/dist/css/form/Field/Input/FormFieldInput.css +2 -0
- package/dist/css/form/Field/Segmented/FormFieldSegmented.css +0 -14
- package/dist/css/form/Form/Form.css +1 -1
- package/dist/css/form/Form/css/form-notification/form-notification.css +1 -1
- package/dist/css/form/FormField/FormField.css +25 -12
- package/dist/form/Field/Checkbox/stories/FormFieldCheckbox.stories.d.ts +58 -2
- package/dist/form/Field/Chips/stories/__mock__/index.d.ts +1 -1
- package/dist/form/Field/Choice/stories/FormFieldChoice.stories.d.ts +58 -2
- package/dist/form/Field/Code/stories/FormFieldCode.stories.d.ts +58 -2
- package/dist/form/Field/Dadata/stories/FormFieldDadataInput.stories.d.ts +58 -2
- package/dist/form/Field/DatePicker/stories/FormFieldDatePicker.stories.d.ts +58 -2
- package/dist/form/Field/FileInput/stories/FormFieldFileInput.stories.d.ts +1 -1
- package/dist/form/Field/Input/stories/FormFieldInputClassic.stories.d.ts +174 -6
- package/dist/form/Field/Input/stories/FormFieldInputFloat.stories.d.ts +174 -6
- package/dist/form/Field/Input/stories/FormFieldInputIFTA.stories.d.ts +174 -6
- package/dist/form/Field/MaskedInput/stories/FormFieldMaskedInputClassic.stories.d.ts +58 -2
- package/dist/form/Field/MaskedInput/stories/FormFieldMaskedInputFTA.stories.d.ts +58 -2
- package/dist/form/Field/MaskedInput/stories/FormFieldMaskedInputFloating.stories.d.ts +58 -2
- package/dist/form/Field/Password/stories/FormFieldPasswordClassic.stories.d.ts +58 -2
- package/dist/form/Field/Password/stories/FormFieldPasswordFTA.stories.d.ts +58 -2
- package/dist/form/Field/Password/stories/FormFieldPasswordFloating.stories.d.ts +58 -2
- package/dist/form/Field/RadioGroup/stories/FormFieldRadioGroup.stories.d.ts +60 -3
- package/dist/form/Field/Segmented/FormFieldSegmented.interface.d.ts +2 -2
- package/dist/form/Field/Segmented/stories/FormFieldSegmented.stories.d.ts +59 -3
- package/dist/form/Field/Select/stories/FormFieldSelect.stories.d.ts +58 -2
- package/dist/form/Field/Switch/stories/FormFieldSwitch.stories.d.ts +58 -2
- package/dist/form/Field/Switch/stories/FormFieldSwitchLeft.stories.d.ts +58 -2
- package/dist/form/Field/Switch/stories/FormFieldSwitchRight.stories.d.ts +58 -2
- package/dist/form/Field/Textarea/stories/FormFieldTextareaClassic.stories.d.ts +58 -2
- package/dist/form/Field/Textarea/stories/FormFieldTextareaFloating.stories.d.ts +58 -2
- package/dist/form/Field/Textarea/stories/FormFieldTextareaIFTA.stories.d.ts +58 -2
- package/dist/form/utils.d.ts +1 -1
- package/dist/hooks/form/form.d.ts +1 -1
- package/dist/itcase-forms.cjs.js +2 -2
- package/dist/itcase-forms.esm.js +2 -2
- package/package.json +31 -22
|
@@ -24,9 +24,65 @@ declare namespace meta {
|
|
|
24
24
|
export namespace args {
|
|
25
25
|
namespace config {
|
|
26
26
|
export namespace FormFieldSelect_1 {
|
|
27
|
-
let type:
|
|
27
|
+
let type: "select";
|
|
28
28
|
let name: string;
|
|
29
|
-
let fieldProps:
|
|
29
|
+
let fieldProps: {
|
|
30
|
+
label: string;
|
|
31
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
32
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
33
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
34
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
35
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
36
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
37
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
38
|
+
showMessage?: boolean;
|
|
39
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
40
|
+
id?: string;
|
|
41
|
+
after?: React.ReactNode;
|
|
42
|
+
afterItem?: React.ReactNode;
|
|
43
|
+
before?: React.ReactNode;
|
|
44
|
+
beforeItem?: React.ReactNode;
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
className?: string;
|
|
47
|
+
dataTestId?: string;
|
|
48
|
+
dataTour?: string;
|
|
49
|
+
desc?: string;
|
|
50
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
51
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
52
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
53
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
54
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
55
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
56
|
+
errorKey?: "error" | "required";
|
|
57
|
+
errorMessage?: string;
|
|
58
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
59
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
60
|
+
fieldClassName?: string;
|
|
61
|
+
helpText?: string;
|
|
62
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
63
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
64
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
65
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
66
|
+
inputName?: string;
|
|
67
|
+
inputValue?: boolean | object | string;
|
|
68
|
+
isDisabled?: boolean;
|
|
69
|
+
isErrorState?: boolean;
|
|
70
|
+
isHidden?: boolean;
|
|
71
|
+
isRequired?: boolean;
|
|
72
|
+
isValidState?: boolean;
|
|
73
|
+
labelHidden?: string;
|
|
74
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
75
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
76
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
77
|
+
metaActive?: boolean;
|
|
78
|
+
metaError?: boolean;
|
|
79
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
80
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
81
|
+
showDivider?: boolean;
|
|
82
|
+
tag?: "div" | "label";
|
|
83
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
84
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
85
|
+
};
|
|
30
86
|
let options: {
|
|
31
87
|
label: string;
|
|
32
88
|
value: string;
|
|
@@ -12,8 +12,64 @@ declare namespace meta {
|
|
|
12
12
|
export namespace args {
|
|
13
13
|
namespace config {
|
|
14
14
|
export namespace FormFieldSwitch_1 {
|
|
15
|
-
let type:
|
|
16
|
-
let fieldProps:
|
|
15
|
+
let type: "switch";
|
|
16
|
+
let fieldProps: {
|
|
17
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
18
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
19
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
20
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
21
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
22
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
23
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
24
|
+
showMessage?: boolean;
|
|
25
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
26
|
+
id?: string;
|
|
27
|
+
after?: React.ReactNode;
|
|
28
|
+
afterItem?: React.ReactNode;
|
|
29
|
+
before?: React.ReactNode;
|
|
30
|
+
beforeItem?: React.ReactNode;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
dataTestId?: string;
|
|
34
|
+
dataTour?: string;
|
|
35
|
+
desc?: string;
|
|
36
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
37
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
38
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
39
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
40
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
41
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
42
|
+
errorKey?: "error" | "required";
|
|
43
|
+
errorMessage?: string;
|
|
44
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
45
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
46
|
+
fieldClassName?: string;
|
|
47
|
+
helpText?: string;
|
|
48
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
49
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
50
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
51
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
52
|
+
inputName?: string;
|
|
53
|
+
inputValue?: boolean | object | string;
|
|
54
|
+
isDisabled?: boolean;
|
|
55
|
+
isErrorState?: boolean;
|
|
56
|
+
isHidden?: boolean;
|
|
57
|
+
isRequired?: boolean;
|
|
58
|
+
isValidState?: boolean;
|
|
59
|
+
label?: string;
|
|
60
|
+
labelHidden?: string;
|
|
61
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
62
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
63
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
64
|
+
metaActive?: boolean;
|
|
65
|
+
metaError?: boolean;
|
|
66
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
67
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
68
|
+
showDivider?: boolean;
|
|
69
|
+
tag?: "div" | "label";
|
|
70
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
71
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
72
|
+
};
|
|
17
73
|
let inputProps: {
|
|
18
74
|
title: string;
|
|
19
75
|
desc: string;
|
|
@@ -24,8 +24,64 @@ declare namespace meta {
|
|
|
24
24
|
export namespace args {
|
|
25
25
|
namespace config {
|
|
26
26
|
export namespace FormFieldSwitch_1 {
|
|
27
|
-
let type:
|
|
28
|
-
let fieldProps:
|
|
27
|
+
let type: "switch";
|
|
28
|
+
let fieldProps: {
|
|
29
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
30
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
31
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
32
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
33
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
34
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
35
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
36
|
+
showMessage?: boolean;
|
|
37
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
38
|
+
id?: string;
|
|
39
|
+
after?: React.ReactNode;
|
|
40
|
+
afterItem?: React.ReactNode;
|
|
41
|
+
before?: React.ReactNode;
|
|
42
|
+
beforeItem?: React.ReactNode;
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
dataTestId?: string;
|
|
46
|
+
dataTour?: string;
|
|
47
|
+
desc?: string;
|
|
48
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
49
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
50
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
51
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
52
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
53
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
54
|
+
errorKey?: "error" | "required";
|
|
55
|
+
errorMessage?: string;
|
|
56
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
57
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
58
|
+
fieldClassName?: string;
|
|
59
|
+
helpText?: string;
|
|
60
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
61
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
62
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
63
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
64
|
+
inputName?: string;
|
|
65
|
+
inputValue?: boolean | object | string;
|
|
66
|
+
isDisabled?: boolean;
|
|
67
|
+
isErrorState?: boolean;
|
|
68
|
+
isHidden?: boolean;
|
|
69
|
+
isRequired?: boolean;
|
|
70
|
+
isValidState?: boolean;
|
|
71
|
+
label?: string;
|
|
72
|
+
labelHidden?: string;
|
|
73
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
74
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
75
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
76
|
+
metaActive?: boolean;
|
|
77
|
+
metaError?: boolean;
|
|
78
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
79
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
80
|
+
showDivider?: boolean;
|
|
81
|
+
tag?: "div" | "label";
|
|
82
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
83
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
84
|
+
};
|
|
29
85
|
let inputProps: {
|
|
30
86
|
appearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
31
87
|
errorAppearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
@@ -24,8 +24,64 @@ declare namespace meta {
|
|
|
24
24
|
export namespace args {
|
|
25
25
|
namespace config {
|
|
26
26
|
export namespace FormFieldSwitch_1 {
|
|
27
|
-
let type:
|
|
28
|
-
let fieldProps:
|
|
27
|
+
let type: "switch";
|
|
28
|
+
let fieldProps: {
|
|
29
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
30
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
31
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
32
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
33
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
34
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
35
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
36
|
+
showMessage?: boolean;
|
|
37
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
38
|
+
id?: string;
|
|
39
|
+
after?: React.ReactNode;
|
|
40
|
+
afterItem?: React.ReactNode;
|
|
41
|
+
before?: React.ReactNode;
|
|
42
|
+
beforeItem?: React.ReactNode;
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
dataTestId?: string;
|
|
46
|
+
dataTour?: string;
|
|
47
|
+
desc?: string;
|
|
48
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
49
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
50
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
51
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
52
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
53
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
54
|
+
errorKey?: "error" | "required";
|
|
55
|
+
errorMessage?: string;
|
|
56
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
57
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
58
|
+
fieldClassName?: string;
|
|
59
|
+
helpText?: string;
|
|
60
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
61
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
62
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
63
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
64
|
+
inputName?: string;
|
|
65
|
+
inputValue?: boolean | object | string;
|
|
66
|
+
isDisabled?: boolean;
|
|
67
|
+
isErrorState?: boolean;
|
|
68
|
+
isHidden?: boolean;
|
|
69
|
+
isRequired?: boolean;
|
|
70
|
+
isValidState?: boolean;
|
|
71
|
+
label?: string;
|
|
72
|
+
labelHidden?: string;
|
|
73
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
74
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
75
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
76
|
+
metaActive?: boolean;
|
|
77
|
+
metaError?: boolean;
|
|
78
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
79
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
80
|
+
showDivider?: boolean;
|
|
81
|
+
tag?: "div" | "label";
|
|
82
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
83
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
84
|
+
};
|
|
29
85
|
let inputProps: {
|
|
30
86
|
appearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
31
87
|
errorAppearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
@@ -24,9 +24,65 @@ declare namespace meta {
|
|
|
24
24
|
export namespace args {
|
|
25
25
|
namespace config {
|
|
26
26
|
namespace field {
|
|
27
|
-
let type:
|
|
27
|
+
let type: "textarea";
|
|
28
28
|
let name: string;
|
|
29
|
-
let fieldProps:
|
|
29
|
+
let fieldProps: {
|
|
30
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
31
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
32
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
33
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
34
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
35
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
36
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
37
|
+
showMessage?: boolean;
|
|
38
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
39
|
+
id?: string;
|
|
40
|
+
after?: React.ReactNode;
|
|
41
|
+
afterItem?: React.ReactNode;
|
|
42
|
+
before?: React.ReactNode;
|
|
43
|
+
beforeItem?: React.ReactNode;
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
className?: string;
|
|
46
|
+
dataTestId?: string;
|
|
47
|
+
dataTour?: string;
|
|
48
|
+
desc?: string;
|
|
49
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
50
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
51
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
52
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
53
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
54
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
55
|
+
errorKey?: "error" | "required";
|
|
56
|
+
errorMessage?: string;
|
|
57
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
58
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
59
|
+
fieldClassName?: string;
|
|
60
|
+
helpText: string;
|
|
61
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
62
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
63
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
64
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
65
|
+
inputName?: string;
|
|
66
|
+
inputValue?: boolean | object | string;
|
|
67
|
+
isDisabled?: boolean;
|
|
68
|
+
isErrorState?: boolean;
|
|
69
|
+
isHidden?: boolean;
|
|
70
|
+
isRequired?: boolean;
|
|
71
|
+
isValidState?: boolean;
|
|
72
|
+
label: string;
|
|
73
|
+
labelHidden?: string;
|
|
74
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
75
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
76
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
77
|
+
metaActive?: boolean;
|
|
78
|
+
metaError?: boolean;
|
|
79
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
80
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
81
|
+
showDivider?: boolean;
|
|
82
|
+
tag?: "div" | "label";
|
|
83
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
84
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
85
|
+
};
|
|
30
86
|
let inputProps: {
|
|
31
87
|
placeholder: string;
|
|
32
88
|
appearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
@@ -24,9 +24,65 @@ declare namespace meta {
|
|
|
24
24
|
export namespace args {
|
|
25
25
|
namespace config {
|
|
26
26
|
namespace field {
|
|
27
|
-
let type:
|
|
27
|
+
let type: "textarea";
|
|
28
28
|
let name: string;
|
|
29
|
-
let fieldProps:
|
|
29
|
+
let fieldProps: {
|
|
30
|
+
type: string;
|
|
31
|
+
label: string;
|
|
32
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
33
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
34
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
35
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
36
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
37
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
38
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
39
|
+
showMessage?: boolean;
|
|
40
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
41
|
+
id?: string;
|
|
42
|
+
after?: React.ReactNode;
|
|
43
|
+
afterItem?: React.ReactNode;
|
|
44
|
+
before?: React.ReactNode;
|
|
45
|
+
beforeItem?: React.ReactNode;
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
className?: string;
|
|
48
|
+
dataTestId?: string;
|
|
49
|
+
dataTour?: string;
|
|
50
|
+
desc?: string;
|
|
51
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
52
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
53
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
54
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
55
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
56
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
57
|
+
errorKey?: "error" | "required";
|
|
58
|
+
errorMessage?: string;
|
|
59
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
60
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
61
|
+
fieldClassName?: string;
|
|
62
|
+
helpText?: string;
|
|
63
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
64
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
65
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
66
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
67
|
+
inputName?: string;
|
|
68
|
+
inputValue?: boolean | object | string;
|
|
69
|
+
isDisabled?: boolean;
|
|
70
|
+
isErrorState?: boolean;
|
|
71
|
+
isHidden?: boolean;
|
|
72
|
+
isRequired?: boolean;
|
|
73
|
+
isValidState?: boolean;
|
|
74
|
+
labelHidden?: string;
|
|
75
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
76
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
77
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
78
|
+
metaActive?: boolean;
|
|
79
|
+
metaError?: boolean;
|
|
80
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
81
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
82
|
+
showDivider?: boolean;
|
|
83
|
+
tag?: "div" | "label";
|
|
84
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
85
|
+
};
|
|
30
86
|
let inputProps: {
|
|
31
87
|
placeholder: string;
|
|
32
88
|
appearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
@@ -24,9 +24,65 @@ declare namespace meta {
|
|
|
24
24
|
export namespace args {
|
|
25
25
|
namespace config {
|
|
26
26
|
namespace field {
|
|
27
|
-
let type:
|
|
27
|
+
let type: "textarea";
|
|
28
28
|
let name: string;
|
|
29
|
-
let fieldProps:
|
|
29
|
+
let fieldProps: {
|
|
30
|
+
type: string;
|
|
31
|
+
label: string;
|
|
32
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
33
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
34
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
35
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
36
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
37
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
38
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
39
|
+
showMessage?: boolean;
|
|
40
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
41
|
+
id?: string;
|
|
42
|
+
after?: React.ReactNode;
|
|
43
|
+
afterItem?: React.ReactNode;
|
|
44
|
+
before?: React.ReactNode;
|
|
45
|
+
beforeItem?: React.ReactNode;
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
className?: string;
|
|
48
|
+
dataTestId?: string;
|
|
49
|
+
dataTour?: string;
|
|
50
|
+
desc?: string;
|
|
51
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
52
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
53
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
54
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
55
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
56
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
57
|
+
errorKey?: "error" | "required";
|
|
58
|
+
errorMessage?: string;
|
|
59
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
60
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
61
|
+
fieldClassName?: string;
|
|
62
|
+
helpText?: string;
|
|
63
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
64
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
65
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
66
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
67
|
+
inputName?: string;
|
|
68
|
+
inputValue?: boolean | object | string;
|
|
69
|
+
isDisabled?: boolean;
|
|
70
|
+
isErrorState?: boolean;
|
|
71
|
+
isHidden?: boolean;
|
|
72
|
+
isRequired?: boolean;
|
|
73
|
+
isValidState?: boolean;
|
|
74
|
+
labelHidden?: string;
|
|
75
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
76
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
77
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
78
|
+
metaActive?: boolean;
|
|
79
|
+
metaError?: boolean;
|
|
80
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
81
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
82
|
+
showDivider?: boolean;
|
|
83
|
+
tag?: "div" | "label";
|
|
84
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
85
|
+
};
|
|
30
86
|
let inputProps: {
|
|
31
87
|
placeholder: string;
|
|
32
88
|
appearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
package/dist/form/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
2
|
import { FocusableInput } from 'final-form-focus';
|
|
3
3
|
import { useForm, useFormState } from 'react-final-form';
|
|
4
|
-
declare const focusOnError: (formElementsList: FocusableInput[], errors: object) =>
|
|
4
|
+
declare const focusOnError: (formElementsList: FocusableInput[], errors: object) => any;
|
|
5
5
|
declare const focusOnErrorDecorator: import("final-form").Decorator<object, object>;
|
|
6
6
|
declare const setErrorsMutator: (args: [string, {
|
|
7
7
|
error: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FinalFormProps } from 'src/form/Form/FinalForm.interface';
|
|
2
|
-
declare function useYupValidationSchema(schema: FinalFormProps['validationSchema'], language?: string): (
|
|
2
|
+
declare function useYupValidationSchema(schema: FinalFormProps['validationSchema'], language?: string): (values: object) => Promise<any>;
|
|
3
3
|
export { useYupValidationSchema };
|