@itcase/forms 1.1.62 → 1.1.64
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/constants/index.d.ts +7 -0
- package/dist/constants/messages.constant.d.ts +10 -0
- package/dist/constants/messages.interface.d.ts +5 -0
- 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/Form/Form.css +2 -2
- 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/FormFieldCheckbox.d.ts +4 -0
- package/dist/form/Field/Checkbox/FormFieldCheckbox.interface.d.ts +18 -0
- package/dist/form/Field/Checkbox/appearance/default.d.ts +3 -0
- package/dist/form/Field/Checkbox/index.d.ts +3 -0
- package/dist/form/Field/Checkbox/stories/FormFieldCheckbox.stories.d.ts +99 -0
- package/dist/form/Field/Chips/FormFieldChips.d.ts +3 -0
- package/dist/form/Field/Chips/FormFieldChips.interface.d.ts +27 -0
- package/dist/form/Field/Chips/appearance/default.d.ts +3 -0
- package/dist/form/Field/Chips/index.d.ts +3 -0
- package/dist/form/Field/Chips/stories/FormFieldChips.stories.d.ts +30 -0
- package/dist/form/Field/Chips/stories/__mock__/index.d.ts +76 -0
- package/dist/form/Field/Choice/FormFieldChoice.d.ts +4 -0
- package/dist/form/Field/Choice/FormFieldChoice.interface.d.ts +23 -0
- package/dist/form/Field/Choice/appearance/default.d.ts +3 -0
- package/dist/form/Field/Choice/index.d.ts +3 -0
- package/dist/form/Field/Choice/stories/FormFieldChoice.stories.d.ts +104 -0
- package/dist/form/Field/Code/FormFieldCode.d.ts +4 -0
- package/dist/form/Field/Code/FormFieldCode.interface.d.ts +16 -0
- package/dist/form/Field/Code/appearance/default.d.ts +3 -0
- package/dist/form/Field/Code/index.d.ts +3 -0
- package/dist/form/Field/Code/stories/FormFieldCode.stories.d.ts +101 -0
- package/dist/form/Field/Custom/FormFieldCustom.d.ts +4 -0
- package/dist/form/Field/Custom/FormFieldCustom.interface.d.ts +18 -0
- package/dist/form/Field/Custom/index.d.ts +2 -0
- package/dist/form/Field/Dadata/FormFieldDadataInput.d.ts +4 -0
- package/dist/form/Field/Dadata/FormFieldDadataInput.interface.d.ts +19 -0
- package/dist/form/Field/Dadata/appearance/default.d.ts +3 -0
- package/dist/form/Field/Dadata/index.d.ts +3 -0
- package/dist/form/Field/Dadata/stories/FormFieldDadataInput.stories.d.ts +90 -0
- package/dist/form/Field/DatePicker/FormFieldDatePicker.d.ts +3 -0
- package/dist/form/Field/DatePicker/FormFieldDatePicker.interface.d.ts +10 -0
- package/dist/form/Field/DatePicker/appearance/default.d.ts +12 -0
- package/dist/form/Field/DatePicker/index.d.ts +3 -0
- package/dist/form/Field/DatePicker/stories/FormFieldDatePicker.stories.d.ts +114 -0
- package/dist/form/Field/FileInput/FormFieldFileInputDropzone.d.ts +2 -0
- package/dist/form/Field/FileInput/appearance/default.d.ts +19 -0
- package/dist/form/Field/FileInput/index.d.ts +4 -0
- package/dist/form/Field/FileInput/stories/FormFieldFileInput.stories.d.ts +51 -0
- package/dist/form/Field/Group/FormGroup.d.ts +4 -0
- package/dist/form/Field/Group/FormGroup.interface.d.ts +47 -0
- package/dist/form/Field/Group/appearance/default.d.ts +3 -0
- package/dist/form/Field/Group/index.d.ts +3 -0
- package/dist/form/Field/Input/FormFieldInput.d.ts +4 -0
- package/dist/form/Field/Input/FormFieldInput.interface.d.ts +25 -0
- package/dist/form/Field/Input/appearance/default.d.ts +3 -0
- package/dist/form/Field/Input/index.d.ts +3 -0
- package/dist/form/Field/Input/stories/FormFieldInputClassic.stories.d.ts +296 -0
- package/dist/form/Field/Input/stories/FormFieldInputFloat.stories.d.ts +296 -0
- package/dist/form/Field/Input/stories/FormFieldInputIFTA.stories.d.ts +296 -0
- package/dist/form/Field/InputNumber/FormFieldInputNumber.d.ts +4 -0
- package/dist/form/Field/InputNumber/FormFieldInputNumber.interface.d.ts +20 -0
- package/dist/form/Field/InputNumber/appearance/default.d.ts +3 -0
- package/dist/form/Field/InputNumber/index.d.ts +3 -0
- package/dist/form/Field/MaskedInput/FormFieldMaskedInput.d.ts +4 -0
- package/dist/form/Field/MaskedInput/FormFieldMaskedInput.interface.d.ts +27 -0
- package/dist/form/Field/MaskedInput/appearance/default.d.ts +3 -0
- package/dist/form/Field/MaskedInput/index.d.ts +3 -0
- package/dist/form/Field/MaskedInput/stories/FormFieldMaskedInputClassic.stories.d.ts +127 -0
- package/dist/form/Field/MaskedInput/stories/FormFieldMaskedInputFTA.stories.d.ts +119 -0
- package/dist/form/Field/MaskedInput/stories/FormFieldMaskedInputFloating.stories.d.ts +119 -0
- package/dist/form/Field/Password/FormFieldPassword.d.ts +4 -0
- package/dist/form/Field/Password/FormFieldPassword.interface.d.ts +17 -0
- package/dist/form/Field/Password/appearance/default.d.ts +3 -0
- package/dist/form/Field/Password/index.d.ts +3 -0
- package/dist/form/Field/Password/stories/FormFieldPasswordClassic.stories.d.ts +104 -0
- package/dist/form/Field/Password/stories/FormFieldPasswordFTA.stories.d.ts +104 -0
- package/dist/form/Field/Password/stories/FormFieldPasswordFloating.stories.d.ts +104 -0
- package/dist/form/Field/RadioGroup/FormFieldRadioGroup.d.ts +4 -0
- package/dist/form/Field/RadioGroup/FormFieldRadioGroup.interface.d.ts +23 -0
- package/dist/form/Field/RadioGroup/FormFieldRadioGroupList.d.ts +3 -0
- package/dist/form/Field/RadioGroup/appearance/default.d.ts +3 -0
- package/dist/form/Field/RadioGroup/index.d.ts +3 -0
- package/dist/form/Field/RadioGroup/stories/FormFieldRadioGroup.stories.d.ts +101 -0
- package/dist/form/Field/Segmented/FormFieldSegmented.d.ts +3 -0
- package/dist/form/Field/Segmented/FormFieldSegmented.interface.d.ts +15 -0
- package/dist/form/Field/Segmented/appearance/default.d.ts +3 -0
- package/dist/form/Field/Segmented/index.d.ts +3 -0
- package/dist/form/Field/Segmented/stories/FormFieldSegmented.stories.d.ts +101 -0
- package/dist/form/Field/Select/FormFieldSelect.d.ts +4 -0
- package/dist/form/Field/Select/FormFieldSelect.interface.d.ts +33 -0
- package/dist/form/Field/Select/appearance/default.d.ts +3 -0
- package/dist/form/Field/Select/index.d.ts +3 -0
- package/dist/form/Field/Select/stories/FormFieldSelect.stories.d.ts +101 -0
- package/dist/form/Field/Switch/FormFieldSwitch.d.ts +5 -0
- package/dist/form/Field/Switch/FormFieldSwitch.interface.d.ts +16 -0
- package/dist/form/Field/Switch/appearance/default.d.ts +3 -0
- package/dist/form/Field/Switch/index.d.ts +3 -0
- package/dist/form/Field/Switch/stories/FormFieldSwitch.stories.d.ts +86 -0
- package/dist/form/Field/Switch/stories/FormFieldSwitchLeft.stories.d.ts +98 -0
- package/dist/form/Field/Switch/stories/FormFieldSwitchRight.stories.d.ts +98 -0
- package/dist/form/Field/Textarea/FormFieldTextarea.d.ts +4 -0
- package/dist/form/Field/Textarea/FormFieldTextarea.interface.d.ts +13 -0
- package/dist/form/Field/Textarea/appearance/default.d.ts +3 -0
- package/dist/form/Field/Textarea/index.d.ts +3 -0
- package/dist/form/Field/Textarea/stories/FormFieldTextareaClassic.stories.d.ts +104 -0
- package/dist/form/Field/Textarea/stories/FormFieldTextareaFloating.stories.d.ts +104 -0
- package/dist/form/Field/Textarea/stories/FormFieldTextareaIFTA.stories.d.ts +104 -0
- package/dist/form/Field/index.d.ts +20 -0
- package/dist/form/FieldWrapper/FieldWrapper.d.ts +4 -0
- package/dist/form/FieldWrapper/FieldWrapper.interface.d.ts +77 -0
- package/dist/form/FieldWrapper/appearance/default.d.ts +7 -0
- package/dist/form/FieldWrapper/index.d.ts +3 -0
- package/dist/form/Form/FinalForm.d.ts +4 -0
- package/dist/form/Form/FinalForm.interface.d.ts +119 -0
- package/dist/form/generator/generator.constants.d.ts +25 -0
- package/dist/form/generator/generator.d.ts +3 -0
- package/dist/form/generator/generator.interface.d.ts +62 -0
- package/dist/form/generator/index.d.ts +4 -0
- package/dist/form/index.d.ts +5 -0
- package/dist/form/utils.d.ts +22 -0
- package/dist/hooks/form/form.d.ts +3 -0
- package/dist/hooks/form/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useFieldValidationState/index.d.ts +2 -0
- package/dist/hooks/useFieldValidationState/useFieldValidationState.d.ts +9 -0
- package/dist/hooks/useFieldValidationState/useFieldValidationState.interface.d.ts +8 -0
- package/dist/hooks/useValidationAppearanceInputProps/index.d.ts +2 -0
- package/dist/hooks/useValidationAppearanceInputProps/useValidationAppearanceInputProps.d.ts +3 -0
- package/dist/hooks/useValidationAppearanceInputProps/useValidationAppearanceInputProps.interface.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/itcase-forms.cjs.js +3 -3767
- package/dist/itcase-forms.esm.js +3 -3688
- package/dist/services/index.d.ts +2 -0
- package/dist/services/utils.d.ts +4 -0
- package/dist/validators/index.d.ts +2 -0
- package/dist/validators/validation.d.ts +6 -0
- package/dist/validators/validation.interface.d.ts +6 -0
- package/package.json +35 -20
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { FormFieldCode as component };
|
|
4
|
+
export namespace args {
|
|
5
|
+
namespace config {
|
|
6
|
+
export namespace FormFieldCode_1 {
|
|
7
|
+
let type: "code";
|
|
8
|
+
let name: string;
|
|
9
|
+
let fieldProps: {
|
|
10
|
+
label: string;
|
|
11
|
+
helpText: string;
|
|
12
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
13
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
14
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
15
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
16
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
17
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
18
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
19
|
+
showMessage?: boolean;
|
|
20
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
21
|
+
id?: string;
|
|
22
|
+
after?: React.ReactNode;
|
|
23
|
+
afterItem?: React.ReactNode;
|
|
24
|
+
before?: React.ReactNode;
|
|
25
|
+
beforeItem?: React.ReactNode;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
dataTestId?: string;
|
|
29
|
+
dataTour?: string;
|
|
30
|
+
desc?: string;
|
|
31
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
32
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
33
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
34
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
35
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
36
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
37
|
+
errorKey?: "error" | "required";
|
|
38
|
+
errorMessage?: string;
|
|
39
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
40
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
41
|
+
fieldClassName?: string;
|
|
42
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
43
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
44
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
45
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
46
|
+
inputName?: string;
|
|
47
|
+
inputValue?: boolean | object | string;
|
|
48
|
+
isDisabled?: boolean;
|
|
49
|
+
isErrorState?: boolean;
|
|
50
|
+
isHidden?: boolean;
|
|
51
|
+
isRequired?: boolean;
|
|
52
|
+
isValidState?: boolean;
|
|
53
|
+
labelHidden?: string;
|
|
54
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
55
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
56
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
57
|
+
metaActive?: boolean;
|
|
58
|
+
metaError?: boolean;
|
|
59
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
60
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
61
|
+
showDivider?: boolean;
|
|
62
|
+
tag?: "div" | "label";
|
|
63
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
64
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
65
|
+
};
|
|
66
|
+
let inputProps: {
|
|
67
|
+
appearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
68
|
+
errorAppearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
69
|
+
requiredAppearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
70
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export { FormFieldCode_1 as FormFieldCode };
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export namespace parameters {
|
|
77
|
+
let maxWidth: string;
|
|
78
|
+
let layout: string;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export default _default;
|
|
82
|
+
export namespace Default {
|
|
83
|
+
function render(args: any): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
}
|
|
85
|
+
export namespace Error {
|
|
86
|
+
export function render_1(args: any): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
export { render_1 as render };
|
|
88
|
+
}
|
|
89
|
+
export namespace Success {
|
|
90
|
+
export function render_2(args: any): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
export { render_2 as render };
|
|
92
|
+
}
|
|
93
|
+
export namespace Require {
|
|
94
|
+
export function render_3(args: any): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
export { render_3 as render };
|
|
96
|
+
}
|
|
97
|
+
export namespace Disabled {
|
|
98
|
+
export function render_4(args: any): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
export { render_4 as render };
|
|
100
|
+
}
|
|
101
|
+
import { FormFieldCode } from '../index';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IconProps } from '@itcase/ui-web/components/Icon';
|
|
2
|
+
import { BaseField, FormTypes } from 'src/form/generator/generator.interface';
|
|
3
|
+
type CustomField = BaseField & {
|
|
4
|
+
Component: React.ComponentType<Partial<Record<string, boolean | object | string>>>;
|
|
5
|
+
type: Extract<FormTypes, 'custom'>;
|
|
6
|
+
};
|
|
7
|
+
type FormFieldCustomProps = CustomField & {
|
|
8
|
+
classNameGroupItem?: string;
|
|
9
|
+
clearIcon?: IconProps['SvgImage'];
|
|
10
|
+
clearIconFill?: IconProps['iconFill'];
|
|
11
|
+
clearIconFillHover?: IconProps['iconFillHover'];
|
|
12
|
+
clearIconShape?: IconProps['shape'];
|
|
13
|
+
clearIconSize?: IconProps['size'];
|
|
14
|
+
dataTestId?: string;
|
|
15
|
+
initialValue?: object;
|
|
16
|
+
onClickClearIcon?: IconProps['onClick'];
|
|
17
|
+
};
|
|
18
|
+
export type { CustomField, FormFieldCustomProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CompositeAppearanceStateDefault } from '@itcase/types-ui';
|
|
2
|
+
import { DadataProps } from '@itcase/ui-web/components/Dadata';
|
|
3
|
+
import { BaseField, FormTypes } from 'src/form/generator/generator.interface';
|
|
4
|
+
type DadataField = BaseField & {
|
|
5
|
+
token: DadataProps['token'];
|
|
6
|
+
type: Extract<FormTypes, 'dadataInput'>;
|
|
7
|
+
};
|
|
8
|
+
type FormFieldDadataInputProps = DadataField & {
|
|
9
|
+
initialValue?: string;
|
|
10
|
+
onDadataAutocomplete?: DadataProps['setValue'];
|
|
11
|
+
parse?: (value: number, name: string) => string;
|
|
12
|
+
};
|
|
13
|
+
type DefaultDadataProps = {
|
|
14
|
+
appearance: CompositeAppearanceStateDefault;
|
|
15
|
+
errorAppearance: CompositeAppearanceStateDefault;
|
|
16
|
+
requiredAppearance: CompositeAppearanceStateDefault;
|
|
17
|
+
successAppearance: CompositeAppearanceStateDefault;
|
|
18
|
+
};
|
|
19
|
+
export type { DadataField, DefaultDadataProps, FormFieldDadataInputProps };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
export { Component as render };
|
|
4
|
+
}
|
|
5
|
+
declare namespace meta {
|
|
6
|
+
export let title: string;
|
|
7
|
+
export { FormFieldDadataInput as component };
|
|
8
|
+
export namespace args {
|
|
9
|
+
namespace config {
|
|
10
|
+
namespace company {
|
|
11
|
+
let type: "dadataInput";
|
|
12
|
+
let name: string;
|
|
13
|
+
let fieldProps: {
|
|
14
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
15
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
16
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
17
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
18
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
19
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
20
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
21
|
+
showMessage?: boolean;
|
|
22
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
23
|
+
id?: string;
|
|
24
|
+
after?: React.ReactNode;
|
|
25
|
+
afterItem?: React.ReactNode;
|
|
26
|
+
before?: React.ReactNode;
|
|
27
|
+
beforeItem?: React.ReactNode;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
dataTestId?: string;
|
|
31
|
+
dataTour?: string;
|
|
32
|
+
desc?: string;
|
|
33
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
34
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
35
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
36
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
37
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
38
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
39
|
+
errorKey?: "error" | "required";
|
|
40
|
+
errorMessage?: string;
|
|
41
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
42
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
43
|
+
fieldClassName?: string;
|
|
44
|
+
helpText: string;
|
|
45
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
46
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
47
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
48
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
49
|
+
inputName?: string;
|
|
50
|
+
inputValue?: boolean | object | string;
|
|
51
|
+
isDisabled?: boolean;
|
|
52
|
+
isErrorState?: boolean;
|
|
53
|
+
isHidden?: boolean;
|
|
54
|
+
isRequired?: boolean;
|
|
55
|
+
isValidState?: boolean;
|
|
56
|
+
label: string;
|
|
57
|
+
labelHidden?: string;
|
|
58
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
59
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
60
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
61
|
+
metaActive?: boolean;
|
|
62
|
+
metaError?: boolean;
|
|
63
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
64
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
65
|
+
showDivider?: boolean;
|
|
66
|
+
tag?: "div" | "label";
|
|
67
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
68
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
69
|
+
};
|
|
70
|
+
let inputProps: {
|
|
71
|
+
placeholder: string;
|
|
72
|
+
appearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
73
|
+
errorAppearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
74
|
+
requiredAppearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
75
|
+
successAppearance: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
76
|
+
};
|
|
77
|
+
let token: string;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
let validationSchema: yup.ObjectSchema<{
|
|
81
|
+
company: string;
|
|
82
|
+
}, yup.AnyObject, {
|
|
83
|
+
company: undefined;
|
|
84
|
+
}, "">;
|
|
85
|
+
function onSubmit(): void;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
declare function Component(args: any): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
import { FormFieldDadataInput } from '../index';
|
|
90
|
+
import * as yup from 'yup';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DatePickerInputProps } from '@itcase/ui-web/components/DatePicker';
|
|
2
|
+
import { BaseField, FormTypes } from 'src/form/generator/generator.interface';
|
|
3
|
+
type DatePickerField = BaseField & {
|
|
4
|
+
type: Extract<FormTypes, 'datePicker'>;
|
|
5
|
+
};
|
|
6
|
+
type FormFieldDatePickerProps = DatePickerField & {
|
|
7
|
+
datePickerProps?: DatePickerInputProps['datePickerProps'];
|
|
8
|
+
onChange?: DatePickerInputProps['onChange'];
|
|
9
|
+
};
|
|
10
|
+
export type { DatePickerField, FormFieldDatePickerProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export namespace defaultDatepickerProps {
|
|
2
|
+
let appearance: string;
|
|
3
|
+
let dateFormat: string;
|
|
4
|
+
let readOnly: boolean;
|
|
5
|
+
let selectsRange: boolean;
|
|
6
|
+
let showTimeSelect: boolean;
|
|
7
|
+
let timeCaption: string;
|
|
8
|
+
let timeFormat: string;
|
|
9
|
+
let timeIntervals: number;
|
|
10
|
+
let isClearable: boolean;
|
|
11
|
+
let isStartDefaultNull: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
function render(args: any): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
}
|
|
5
|
+
export namespace Error {
|
|
6
|
+
export function render_1(args: any): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { render_1 as render };
|
|
8
|
+
}
|
|
9
|
+
export namespace Success {
|
|
10
|
+
export function render_2(args: any): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { render_2 as render };
|
|
12
|
+
}
|
|
13
|
+
export namespace Require {
|
|
14
|
+
export function render_3(args: any): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { render_3 as render };
|
|
16
|
+
}
|
|
17
|
+
export namespace Disabled {
|
|
18
|
+
export function render_4(args: any): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { render_4 as render };
|
|
20
|
+
}
|
|
21
|
+
declare namespace meta {
|
|
22
|
+
export let title: string;
|
|
23
|
+
export { FormFieldDatePicker as component };
|
|
24
|
+
export namespace args {
|
|
25
|
+
namespace config {
|
|
26
|
+
namespace datePickerField {
|
|
27
|
+
let type: "datePicker";
|
|
28
|
+
let name: string;
|
|
29
|
+
let datePickerProps: {
|
|
30
|
+
appearance: string;
|
|
31
|
+
dateFormat: string;
|
|
32
|
+
readOnly: boolean;
|
|
33
|
+
selectsRange: boolean;
|
|
34
|
+
showTimeSelect: boolean;
|
|
35
|
+
timeCaption: string;
|
|
36
|
+
timeFormat: string;
|
|
37
|
+
timeIntervals: number;
|
|
38
|
+
isClearable: boolean;
|
|
39
|
+
isStartDefaultNull: boolean;
|
|
40
|
+
};
|
|
41
|
+
let fieldProps: {
|
|
42
|
+
label: string;
|
|
43
|
+
direction?: import("@itcase/types-ui").DirectionProps;
|
|
44
|
+
dividerFill?: import("@itcase/ui-web/components/Divider").DividerProps["fill"];
|
|
45
|
+
errorMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
46
|
+
helpTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
47
|
+
labelTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
48
|
+
messageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
49
|
+
requiredMessageTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
50
|
+
showMessage?: boolean;
|
|
51
|
+
width?: import("@itcase/types-ui").WidthProps;
|
|
52
|
+
id?: string;
|
|
53
|
+
after?: React.ReactNode;
|
|
54
|
+
afterItem?: React.ReactNode;
|
|
55
|
+
before?: React.ReactNode;
|
|
56
|
+
beforeItem?: React.ReactNode;
|
|
57
|
+
children?: React.ReactNode;
|
|
58
|
+
className?: string;
|
|
59
|
+
dataTestId?: string;
|
|
60
|
+
dataTour?: string;
|
|
61
|
+
desc?: string;
|
|
62
|
+
descTextColor?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
63
|
+
descTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
64
|
+
descTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
65
|
+
dividerDirection?: import("@itcase/ui-web/components/Divider").DividerProps["direction"];
|
|
66
|
+
dividerSize?: import("@itcase/ui-web/components/Divider").DividerProps["size"];
|
|
67
|
+
dividerWidth?: import("@itcase/ui-web/components/Divider").DividerProps["width"];
|
|
68
|
+
errorKey?: "error" | "required";
|
|
69
|
+
errorMessage?: string;
|
|
70
|
+
errorMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
71
|
+
errorMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
72
|
+
fieldClassName?: string;
|
|
73
|
+
helpText?: string;
|
|
74
|
+
helpTextColorSuccess?: import("@itcase/ui-web/components/Text").TextProps["textColor"];
|
|
75
|
+
helpTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
76
|
+
helpTextSizeMobile?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
77
|
+
helpTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
78
|
+
inputName?: string;
|
|
79
|
+
inputValue?: boolean | object | string;
|
|
80
|
+
isDisabled?: boolean;
|
|
81
|
+
isErrorState?: boolean;
|
|
82
|
+
isHidden?: boolean;
|
|
83
|
+
isRequired?: boolean;
|
|
84
|
+
isValidState?: boolean;
|
|
85
|
+
labelHidden?: string;
|
|
86
|
+
labelTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
87
|
+
labelTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
88
|
+
messageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
89
|
+
metaActive?: boolean;
|
|
90
|
+
metaError?: boolean;
|
|
91
|
+
requiredMessageTextSize?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
92
|
+
requiredMessageTextWeight?: import("@itcase/ui-web/components/Text").TextProps["textWeight"];
|
|
93
|
+
showDivider?: boolean;
|
|
94
|
+
tag?: "div" | "label";
|
|
95
|
+
type?: import("../../../generator/generator.interface").FormTypes;
|
|
96
|
+
size?: import("@itcase/ui-web/components/Text").TextProps["size"];
|
|
97
|
+
};
|
|
98
|
+
let inputProps: {
|
|
99
|
+
appearance: string;
|
|
100
|
+
dateFormat: string;
|
|
101
|
+
readOnly: boolean;
|
|
102
|
+
selectsRange: boolean;
|
|
103
|
+
showTimeSelect: boolean;
|
|
104
|
+
timeCaption: string;
|
|
105
|
+
timeFormat: string;
|
|
106
|
+
timeIntervals: number;
|
|
107
|
+
isClearable: boolean;
|
|
108
|
+
isStartDefaultNull: boolean;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
import { FormFieldDatePicker } from '../index';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export namespace defaultDropzoneProps {
|
|
2
|
+
let fill: string;
|
|
3
|
+
let fillHover: string;
|
|
4
|
+
let hintTitle: string;
|
|
5
|
+
let hintTitleTextColor: string;
|
|
6
|
+
let hintTitleTextSize: string;
|
|
7
|
+
let removeThumbText: string;
|
|
8
|
+
let removeThumbTextColor: string;
|
|
9
|
+
let removeThumbTextHoverColor: string;
|
|
10
|
+
let removeThumbTextSize: string;
|
|
11
|
+
let shape: string;
|
|
12
|
+
let showFilename: boolean;
|
|
13
|
+
let thumbBorderColor: string;
|
|
14
|
+
let thumbBorderColorHover: string;
|
|
15
|
+
let thumbBorderWidth: number;
|
|
16
|
+
let thumbNameTextColor: string;
|
|
17
|
+
let thumbNameTextSize: string;
|
|
18
|
+
let isPreviews: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
function render(args: any): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
}
|
|
5
|
+
export namespace Error {
|
|
6
|
+
export function render_1(args: any): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { render_1 as render };
|
|
8
|
+
}
|
|
9
|
+
export namespace Success {
|
|
10
|
+
export function render_2(args: any): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { render_2 as render };
|
|
12
|
+
}
|
|
13
|
+
export namespace Require {
|
|
14
|
+
export function render_3(args: any): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { render_3 as render };
|
|
16
|
+
}
|
|
17
|
+
export namespace Disabled {
|
|
18
|
+
export function render_4(args: any): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { render_4 as render };
|
|
20
|
+
}
|
|
21
|
+
declare namespace meta {
|
|
22
|
+
export let title: string;
|
|
23
|
+
export { FormFieldFileInput as component };
|
|
24
|
+
export namespace args {
|
|
25
|
+
namespace config {
|
|
26
|
+
let fileField: {
|
|
27
|
+
fill: string;
|
|
28
|
+
fillHover: string;
|
|
29
|
+
hintTitle: string;
|
|
30
|
+
hintTitleTextColor: string;
|
|
31
|
+
hintTitleTextSize: string;
|
|
32
|
+
removeThumbText: string;
|
|
33
|
+
removeThumbTextColor: string;
|
|
34
|
+
removeThumbTextHoverColor: string;
|
|
35
|
+
removeThumbTextSize: string;
|
|
36
|
+
shape: string;
|
|
37
|
+
showFilename: boolean;
|
|
38
|
+
thumbBorderColor: string;
|
|
39
|
+
thumbBorderColorHover: string;
|
|
40
|
+
thumbBorderWidth: number;
|
|
41
|
+
thumbNameTextColor: string;
|
|
42
|
+
thumbNameTextSize: string;
|
|
43
|
+
isPreviews: boolean;
|
|
44
|
+
type: "fileInput";
|
|
45
|
+
name: string;
|
|
46
|
+
fieldProps: any;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
import { FormFieldFileInput } from '../index';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CompositeAppearanceKeys, CompositeAppearanceStateDefault, WidthProps } from '@itcase/types-ui';
|
|
2
|
+
import { TextProps } from '@itcase/ui-web/components/Text';
|
|
3
|
+
import { TitleProps } from '@itcase/ui-web/components/Title';
|
|
4
|
+
import { BaseField, ButtonFields, FormTypes, GeneratorField } from 'src/form/generator/generator.interface';
|
|
5
|
+
type GroupField = BaseField & {
|
|
6
|
+
group: Record<string, Exclude<GeneratorField, ButtonFields>>;
|
|
7
|
+
type: Extract<FormTypes, 'group'>;
|
|
8
|
+
};
|
|
9
|
+
type FormGroupProps = GroupField & {
|
|
10
|
+
after?: React.ReactNode;
|
|
11
|
+
before?: React.ReactNode;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
column?: number;
|
|
15
|
+
dataTour?: string;
|
|
16
|
+
isHidden?: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
labelTextColor?: TextProps['textColor'];
|
|
19
|
+
labelTextSize?: TextProps['size'];
|
|
20
|
+
labelTextWeight?: TextProps['textWeight'];
|
|
21
|
+
message?: string;
|
|
22
|
+
messageTextColor?: TextProps['textColor'];
|
|
23
|
+
messageTextSize?: TextProps['size'];
|
|
24
|
+
messageTextWeight?: TextProps['textWeight'];
|
|
25
|
+
name: string;
|
|
26
|
+
showGroupMessage?: string;
|
|
27
|
+
title?: TitleProps['text'];
|
|
28
|
+
titleTextColor?: TitleProps['textColor'];
|
|
29
|
+
titleTextSize?: TitleProps['size'];
|
|
30
|
+
titleTextWeight?: TitleProps['textWeight'];
|
|
31
|
+
};
|
|
32
|
+
type DefaultAppearanceProps = {
|
|
33
|
+
appearance?: CompositeAppearanceKeys | CompositeAppearanceStateDefault;
|
|
34
|
+
errorAppearance?: CompositeAppearanceKeys | CompositeAppearanceStateDefault;
|
|
35
|
+
errorMessageTextColor?: TextProps['textColor'];
|
|
36
|
+
errorMessageTextSize?: TextProps['size'];
|
|
37
|
+
helpTextSize?: TextProps['size'];
|
|
38
|
+
labelTextSize?: TextProps['size'];
|
|
39
|
+
messageTextColor?: TextProps['textColor'];
|
|
40
|
+
messageTextSize?: TextProps['size'];
|
|
41
|
+
requiredAppearance?: CompositeAppearanceKeys | CompositeAppearanceStateDefault;
|
|
42
|
+
requiredMessageTextColor?: TextProps['textColor'];
|
|
43
|
+
requiredMessageTextSize?: TextProps['size'];
|
|
44
|
+
successAppearance?: CompositeAppearanceKeys | CompositeAppearanceStateDefault;
|
|
45
|
+
width?: WidthProps;
|
|
46
|
+
};
|
|
47
|
+
export type { DefaultAppearanceProps, FormGroupProps, GroupField };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CompositeAppearanceStateDefault, WidthProps } from '@itcase/types-ui';
|
|
2
|
+
import { IconProps } from '@itcase/ui-web/components/Icon';
|
|
3
|
+
import { BaseField, FormTypes } from 'src/form/generator/generator.interface';
|
|
4
|
+
type InputField = BaseField & {
|
|
5
|
+
type: Extract<FormTypes, 'text'>;
|
|
6
|
+
};
|
|
7
|
+
type FormFieldInputProps = InputField & {
|
|
8
|
+
clearIcon?: IconProps['SvgImage'];
|
|
9
|
+
clearIconFill?: IconProps['iconFill'];
|
|
10
|
+
clearIconFillHover?: IconProps['iconFillHover'];
|
|
11
|
+
clearIconShape?: IconProps['shape'];
|
|
12
|
+
clearIconSize?: IconProps['size'];
|
|
13
|
+
initialValue?: object;
|
|
14
|
+
onChange?: (value: string, name?: string) => void;
|
|
15
|
+
onClickClearIcon?: IconProps['onClick'];
|
|
16
|
+
parse?: (value: string, name: string) => object;
|
|
17
|
+
};
|
|
18
|
+
type DefaultInputProps = {
|
|
19
|
+
appearance: CompositeAppearanceStateDefault;
|
|
20
|
+
errorAppearance: CompositeAppearanceStateDefault;
|
|
21
|
+
requiredAppearance: CompositeAppearanceStateDefault;
|
|
22
|
+
successAppearance: CompositeAppearanceStateDefault;
|
|
23
|
+
width: WidthProps;
|
|
24
|
+
};
|
|
25
|
+
export type { DefaultInputProps, FormFieldInputProps, InputField };
|