@itcase/forms 1.1.20 → 1.1.22
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/itcase-forms.cjs.js +21 -5
- package/dist/itcase-forms.esm.js +21 -5
- package/package.json +16 -16
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -871,8 +871,10 @@ const defaultDropzoneProps = {
|
|
|
871
871
|
hintTitle: 'Перетащите изображение или выберите файл с компьютера',
|
|
872
872
|
hintTitleTextColor: 'surfaceTextPrimary',
|
|
873
873
|
hintTitleTextSize: 'm',
|
|
874
|
-
|
|
875
|
-
|
|
874
|
+
removeThumbText: 'удалить',
|
|
875
|
+
removeThumbTextColor: 'errorTextPrimary',
|
|
876
|
+
removeThumbTextHoverColor: 'errorTextPrimaryHover',
|
|
877
|
+
removeThumbTextSize: 's',
|
|
876
878
|
shape: 'rounded',
|
|
877
879
|
showFilename: true,
|
|
878
880
|
thumbBorderColor: 'surfaceBorderTertiary',
|
|
@@ -1071,7 +1073,7 @@ const FileInputDropzone = /*#__PURE__*/React__default.default.memo(function File
|
|
|
1071
1073
|
}), /*#__PURE__*/React__default.default.createElement("input", Object.assign({}, getInputProps(), {
|
|
1072
1074
|
name: inputName
|
|
1073
1075
|
})), /*#__PURE__*/React__default.default.createElement("div", {
|
|
1074
|
-
className: clsx__default.default('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass
|
|
1076
|
+
className: clsx__default.default('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass, fillHoverClass, borderWidthClass, borderColorClass, borderColorHoverClass, borderTypeClass)
|
|
1075
1077
|
}, filesList.map((file, index) => /*#__PURE__*/React__default.default.createElement("aside", {
|
|
1076
1078
|
className: clsx__default.default('form-dropzone__thumb', fillClass, thumbDirectionClass, thumbBorderWidthClass, thumbBorderColorClass, thumbBorderColorHoverClass, thumbBorderTypeClass),
|
|
1077
1079
|
key: file.id || `${file.name}_${index}`
|
|
@@ -2655,8 +2657,11 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2655
2657
|
dataTestIdPrimaryButton,
|
|
2656
2658
|
dataTourPrimaryButton,
|
|
2657
2659
|
primaryButton,
|
|
2660
|
+
primaryButtonAppearance,
|
|
2658
2661
|
primaryButtonFill,
|
|
2659
2662
|
primaryButtonFillHover,
|
|
2663
|
+
primaryButtonIsDisabled,
|
|
2664
|
+
primaryButtonIsLoading,
|
|
2660
2665
|
primaryButtonLabel,
|
|
2661
2666
|
primaryButtonLabelSize,
|
|
2662
2667
|
primaryButtonLabelTextColor,
|
|
@@ -2666,8 +2671,11 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2666
2671
|
dataTourSecondaryButton,
|
|
2667
2672
|
onClickSecondaryButton,
|
|
2668
2673
|
secondaryButton,
|
|
2674
|
+
secondaryButtonAppearance,
|
|
2669
2675
|
secondaryButtonFill,
|
|
2670
2676
|
secondaryButtonFillHover,
|
|
2677
|
+
secondaryButtonIsDisabled,
|
|
2678
|
+
secondaryButtonIsLoading,
|
|
2671
2679
|
secondaryButtonLabel,
|
|
2672
2680
|
secondaryButtonLabelSize,
|
|
2673
2681
|
secondaryButtonLabelTextColor,
|
|
@@ -2701,12 +2709,13 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2701
2709
|
groupGap,
|
|
2702
2710
|
language,
|
|
2703
2711
|
loader,
|
|
2712
|
+
loaderAppearance = 'surfacePrimary sizeM ghost',
|
|
2704
2713
|
loaderFill,
|
|
2705
2714
|
loaderItemFill,
|
|
2706
2715
|
loaderShape,
|
|
2707
2716
|
loaderSize,
|
|
2708
2717
|
loaderText,
|
|
2709
|
-
loaderType,
|
|
2718
|
+
loaderType = 'simple',
|
|
2710
2719
|
mutators,
|
|
2711
2720
|
notificationCloseButton,
|
|
2712
2721
|
notificationType,
|
|
@@ -2793,6 +2802,7 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2793
2802
|
}, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React__default.default.createElement(Loader.Loader, {
|
|
2794
2803
|
className: "form__loader",
|
|
2795
2804
|
type: loaderType,
|
|
2805
|
+
appearance: loaderAppearance,
|
|
2796
2806
|
size: loaderSize,
|
|
2797
2807
|
fill: loaderFill,
|
|
2798
2808
|
text: loaderText,
|
|
@@ -2809,6 +2819,7 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2809
2819
|
dataTour: dataTourButtons
|
|
2810
2820
|
}, primaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
|
|
2811
2821
|
className: "form__button-item",
|
|
2822
|
+
appearance: primaryButtonAppearance,
|
|
2812
2823
|
width: "fill",
|
|
2813
2824
|
size: primaryButtonSize,
|
|
2814
2825
|
fill: primaryButtonFill,
|
|
@@ -2817,10 +2828,13 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2817
2828
|
labelTextColor: primaryButtonLabelTextColor,
|
|
2818
2829
|
labelTextSize: primaryButtonLabelSize,
|
|
2819
2830
|
labelTextWeight: primaryButtonLabelTextWeight,
|
|
2831
|
+
isDisabled: primaryButtonIsDisabled,
|
|
2820
2832
|
dataTestId: dataTestIdPrimaryButton,
|
|
2821
|
-
dataTour: dataTourPrimaryButton
|
|
2833
|
+
dataTour: dataTourPrimaryButton,
|
|
2834
|
+
loading: primaryButtonIsLoading
|
|
2822
2835
|
}) : primaryButton, secondaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
|
|
2823
2836
|
className: "form__button-item",
|
|
2837
|
+
appearance: secondaryButtonAppearance,
|
|
2824
2838
|
width: "fill",
|
|
2825
2839
|
size: secondaryButtonSize,
|
|
2826
2840
|
fill: secondaryButtonFill,
|
|
@@ -2829,8 +2843,10 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2829
2843
|
labelTextColor: secondaryButtonLabelTextColor,
|
|
2830
2844
|
labelTextSize: secondaryButtonLabelSize,
|
|
2831
2845
|
labelTextWeight: secondaryButtonLabelTextWeight,
|
|
2846
|
+
isDisabled: secondaryButtonIsDisabled,
|
|
2832
2847
|
dataTestId: dataTestIdSecondaryButton,
|
|
2833
2848
|
dataTour: dataTourSecondaryButton,
|
|
2849
|
+
loading: secondaryButtonIsLoading,
|
|
2834
2850
|
onClick: onClickSecondaryButton
|
|
2835
2851
|
}) : secondaryButton, tertiaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
|
|
2836
2852
|
className: "form__button-item",
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -860,8 +860,10 @@ const defaultDropzoneProps = {
|
|
|
860
860
|
hintTitle: 'Перетащите изображение или выберите файл с компьютера',
|
|
861
861
|
hintTitleTextColor: 'surfaceTextPrimary',
|
|
862
862
|
hintTitleTextSize: 'm',
|
|
863
|
-
|
|
864
|
-
|
|
863
|
+
removeThumbText: 'удалить',
|
|
864
|
+
removeThumbTextColor: 'errorTextPrimary',
|
|
865
|
+
removeThumbTextHoverColor: 'errorTextPrimaryHover',
|
|
866
|
+
removeThumbTextSize: 's',
|
|
865
867
|
shape: 'rounded',
|
|
866
868
|
showFilename: true,
|
|
867
869
|
thumbBorderColor: 'surfaceBorderTertiary',
|
|
@@ -1060,7 +1062,7 @@ const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(p
|
|
|
1060
1062
|
}), /*#__PURE__*/React$1.createElement("input", Object.assign({}, getInputProps(), {
|
|
1061
1063
|
name: inputName
|
|
1062
1064
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
1063
|
-
className: clsx('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass
|
|
1065
|
+
className: clsx('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass, fillHoverClass, borderWidthClass, borderColorClass, borderColorHoverClass, borderTypeClass)
|
|
1064
1066
|
}, filesList.map((file, index) => /*#__PURE__*/React$1.createElement("aside", {
|
|
1065
1067
|
className: clsx('form-dropzone__thumb', fillClass, thumbDirectionClass, thumbBorderWidthClass, thumbBorderColorClass, thumbBorderColorHoverClass, thumbBorderTypeClass),
|
|
1066
1068
|
key: file.id || `${file.name}_${index}`
|
|
@@ -2644,8 +2646,11 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
|
|
|
2644
2646
|
dataTestIdPrimaryButton,
|
|
2645
2647
|
dataTourPrimaryButton,
|
|
2646
2648
|
primaryButton,
|
|
2649
|
+
primaryButtonAppearance,
|
|
2647
2650
|
primaryButtonFill,
|
|
2648
2651
|
primaryButtonFillHover,
|
|
2652
|
+
primaryButtonIsDisabled,
|
|
2653
|
+
primaryButtonIsLoading,
|
|
2649
2654
|
primaryButtonLabel,
|
|
2650
2655
|
primaryButtonLabelSize,
|
|
2651
2656
|
primaryButtonLabelTextColor,
|
|
@@ -2655,8 +2660,11 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
|
|
|
2655
2660
|
dataTourSecondaryButton,
|
|
2656
2661
|
onClickSecondaryButton,
|
|
2657
2662
|
secondaryButton,
|
|
2663
|
+
secondaryButtonAppearance,
|
|
2658
2664
|
secondaryButtonFill,
|
|
2659
2665
|
secondaryButtonFillHover,
|
|
2666
|
+
secondaryButtonIsDisabled,
|
|
2667
|
+
secondaryButtonIsLoading,
|
|
2660
2668
|
secondaryButtonLabel,
|
|
2661
2669
|
secondaryButtonLabelSize,
|
|
2662
2670
|
secondaryButtonLabelTextColor,
|
|
@@ -2690,12 +2698,13 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
|
|
|
2690
2698
|
groupGap,
|
|
2691
2699
|
language,
|
|
2692
2700
|
loader,
|
|
2701
|
+
loaderAppearance = 'surfacePrimary sizeM ghost',
|
|
2693
2702
|
loaderFill,
|
|
2694
2703
|
loaderItemFill,
|
|
2695
2704
|
loaderShape,
|
|
2696
2705
|
loaderSize,
|
|
2697
2706
|
loaderText,
|
|
2698
|
-
loaderType,
|
|
2707
|
+
loaderType = 'simple',
|
|
2699
2708
|
mutators,
|
|
2700
2709
|
notificationCloseButton,
|
|
2701
2710
|
notificationType,
|
|
@@ -2782,6 +2791,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
|
|
|
2782
2791
|
}, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React$1.createElement(Loader, {
|
|
2783
2792
|
className: "form__loader",
|
|
2784
2793
|
type: loaderType,
|
|
2794
|
+
appearance: loaderAppearance,
|
|
2785
2795
|
size: loaderSize,
|
|
2786
2796
|
fill: loaderFill,
|
|
2787
2797
|
text: loaderText,
|
|
@@ -2798,6 +2808,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
|
|
|
2798
2808
|
dataTour: dataTourButtons
|
|
2799
2809
|
}, primaryButtonLabel ? /*#__PURE__*/React$1.createElement(Button, {
|
|
2800
2810
|
className: "form__button-item",
|
|
2811
|
+
appearance: primaryButtonAppearance,
|
|
2801
2812
|
width: "fill",
|
|
2802
2813
|
size: primaryButtonSize,
|
|
2803
2814
|
fill: primaryButtonFill,
|
|
@@ -2806,10 +2817,13 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
|
|
|
2806
2817
|
labelTextColor: primaryButtonLabelTextColor,
|
|
2807
2818
|
labelTextSize: primaryButtonLabelSize,
|
|
2808
2819
|
labelTextWeight: primaryButtonLabelTextWeight,
|
|
2820
|
+
isDisabled: primaryButtonIsDisabled,
|
|
2809
2821
|
dataTestId: dataTestIdPrimaryButton,
|
|
2810
|
-
dataTour: dataTourPrimaryButton
|
|
2822
|
+
dataTour: dataTourPrimaryButton,
|
|
2823
|
+
loading: primaryButtonIsLoading
|
|
2811
2824
|
}) : primaryButton, secondaryButtonLabel ? /*#__PURE__*/React$1.createElement(Button, {
|
|
2812
2825
|
className: "form__button-item",
|
|
2826
|
+
appearance: secondaryButtonAppearance,
|
|
2813
2827
|
width: "fill",
|
|
2814
2828
|
size: secondaryButtonSize,
|
|
2815
2829
|
fill: secondaryButtonFill,
|
|
@@ -2818,8 +2832,10 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
|
|
|
2818
2832
|
labelTextColor: secondaryButtonLabelTextColor,
|
|
2819
2833
|
labelTextSize: secondaryButtonLabelSize,
|
|
2820
2834
|
labelTextWeight: secondaryButtonLabelTextWeight,
|
|
2835
|
+
isDisabled: secondaryButtonIsDisabled,
|
|
2821
2836
|
dataTestId: dataTestIdSecondaryButton,
|
|
2822
2837
|
dataTour: dataTourSecondaryButton,
|
|
2838
|
+
loading: secondaryButtonIsLoading,
|
|
2823
2839
|
onClick: onClickSecondaryButton
|
|
2824
2840
|
}) : secondaryButton, tertiaryButtonLabel ? /*#__PURE__*/React$1.createElement(Button, {
|
|
2825
2841
|
className: "form__button-item",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/forms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "Forms fields, inputs, etc.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@itcase/common": "^1.2.28",
|
|
36
|
-
"@itcase/config": "^1.0.
|
|
37
|
-
"@itcase/icons": "^1.2.
|
|
38
|
-
"@itcase/storybook-config": "^1.1.
|
|
39
|
-
"@itcase/tokens-am": "^1.1.
|
|
40
|
-
"@itcase/tokens-baikal": "^1.1.
|
|
41
|
-
"@itcase/ui": "^1.8.
|
|
36
|
+
"@itcase/config": "^1.0.54",
|
|
37
|
+
"@itcase/icons": "^1.2.16",
|
|
38
|
+
"@itcase/storybook-config": "^1.1.53",
|
|
39
|
+
"@itcase/tokens-am": "^1.1.19",
|
|
40
|
+
"@itcase/tokens-baikal": "^1.1.17",
|
|
41
|
+
"@itcase/ui": "^1.8.62",
|
|
42
42
|
"axios": "^1.10.0",
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
44
|
"final-form": "4.20.10",
|
|
45
45
|
"final-form-focus": "1.1.2",
|
|
46
|
-
"libphonenumber-js": "^1.12.
|
|
46
|
+
"libphonenumber-js": "^1.12.10",
|
|
47
47
|
"lodash": "^4.17.21",
|
|
48
|
-
"luxon": "^3.
|
|
48
|
+
"luxon": "^3.7.1",
|
|
49
49
|
"react": "^18.3.1",
|
|
50
50
|
"react-date-range": "^2.0.1",
|
|
51
51
|
"react-datepicker": "^8.4.0",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"react-dropzone": "^14.3.8",
|
|
54
54
|
"react-final-form": "6.5.9",
|
|
55
55
|
"react-imask": "^7.6.1",
|
|
56
|
-
"react-select": "^5.10.
|
|
56
|
+
"react-select": "^5.10.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@itcase/lint": "^1.1.
|
|
59
|
+
"@itcase/lint": "^1.1.26",
|
|
60
60
|
"@babel/core": "^7.28.0",
|
|
61
61
|
"@babel/eslint-parser": "^7.28.0",
|
|
62
62
|
"@babel/preset-env": "^7.28.0",
|
|
@@ -75,16 +75,16 @@
|
|
|
75
75
|
"@types/react-dom": "^18.3.1",
|
|
76
76
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
77
77
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
78
|
-
"conventional-changelog-conventionalcommits": "^9.
|
|
79
|
-
"eslint": "9.
|
|
78
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
79
|
+
"eslint": "9.31.0",
|
|
80
80
|
"husky": "^9.1.7",
|
|
81
81
|
"lint-staged": "^16.1.2",
|
|
82
82
|
"postcss": "^8.5.6",
|
|
83
83
|
"prettier": "3.6.2",
|
|
84
|
-
"rollup": "^4.
|
|
84
|
+
"rollup": "^4.45.1",
|
|
85
85
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
86
|
-
"semantic-release": "^24.2.
|
|
87
|
-
"stylelint": "^16.
|
|
86
|
+
"semantic-release": "^24.2.7",
|
|
87
|
+
"stylelint": "^16.22.0",
|
|
88
88
|
"typescript": "^5.8.3",
|
|
89
89
|
"yup": "^1.6.1"
|
|
90
90
|
}
|