@itcase/forms 1.1.30 → 1.1.31
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/FormField/FormField.css +2 -2
- package/dist/itcase-forms.cjs.js +87 -55
- package/dist/itcase-forms.esm.js +87 -55
- package/package.json +11 -11
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
& .form {
|
|
37
37
|
&-field {
|
|
38
38
|
&__label {
|
|
39
|
+
background: #fff;
|
|
39
40
|
transform: scale(0.85) translate(10px, 2px);
|
|
40
41
|
}
|
|
41
42
|
}
|
|
@@ -49,12 +50,11 @@
|
|
|
49
50
|
&::placeholder {
|
|
50
51
|
opacity: 100%;
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
+
}
|
|
53
54
|
}
|
|
54
55
|
& .form {
|
|
55
56
|
&-field {
|
|
56
57
|
&__label {
|
|
57
|
-
background: #fff;
|
|
58
58
|
padding: 0 4px;
|
|
59
59
|
position: absolute;
|
|
60
60
|
display: flex;
|
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -1035,15 +1035,13 @@ const FormBlockGroup = /*#__PURE__*/React__default.default.memo(function Group(p
|
|
|
1035
1035
|
});
|
|
1036
1036
|
|
|
1037
1037
|
const defaultCheckboxProps = {
|
|
1038
|
-
appearance: 'defaultPrimary',
|
|
1038
|
+
appearance: 'defaultPrimary sizeM solid',
|
|
1039
1039
|
width: 'fill',
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
errorBorderColor: 'errorBorderSecondary',
|
|
1046
|
-
requiredBorderColor: 'warningBorderSecondary'
|
|
1040
|
+
// useValidationAppearanceInputProps
|
|
1041
|
+
// Error
|
|
1042
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1043
|
+
// Required
|
|
1044
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1047
1045
|
};
|
|
1048
1046
|
|
|
1049
1047
|
const FormFieldCheckbox = /*#__PURE__*/React__default.default.memo(function FormFieldCheckbox(props) {
|
|
@@ -1124,8 +1122,11 @@ const FormFieldCheckbox = /*#__PURE__*/React__default.default.memo(function Form
|
|
|
1124
1122
|
const defaultChipsProps = {
|
|
1125
1123
|
appearance: 'surfacePrimary sizeM rounded',
|
|
1126
1124
|
width: 'fill',
|
|
1127
|
-
|
|
1128
|
-
|
|
1125
|
+
// useValidationAppearanceInputProps
|
|
1126
|
+
// Error
|
|
1127
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1128
|
+
// Required
|
|
1129
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1129
1130
|
};
|
|
1130
1131
|
|
|
1131
1132
|
function FormFieldChips(props) {
|
|
@@ -1227,8 +1228,11 @@ function FormFieldChips(props) {
|
|
|
1227
1228
|
const defaultChoiceProps = {
|
|
1228
1229
|
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1229
1230
|
width: 'fill',
|
|
1230
|
-
|
|
1231
|
-
|
|
1231
|
+
// useValidationAppearanceInputProps
|
|
1232
|
+
// Error
|
|
1233
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1234
|
+
// Required
|
|
1235
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1232
1236
|
};
|
|
1233
1237
|
|
|
1234
1238
|
const FormFieldChoice = /*#__PURE__*/React__default.default.memo(function FormFieldChoice(props) {
|
|
@@ -1327,7 +1331,12 @@ const FormFieldChoice = /*#__PURE__*/React__default.default.memo(function FormFi
|
|
|
1327
1331
|
});
|
|
1328
1332
|
|
|
1329
1333
|
const defaultCodeProps = {
|
|
1330
|
-
appearance: 'defaultPrimary sizeL solid rounded'
|
|
1334
|
+
appearance: 'defaultPrimary sizeL solid rounded',
|
|
1335
|
+
// useValidationAppearanceInputProps
|
|
1336
|
+
// Error
|
|
1337
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1338
|
+
// Required
|
|
1339
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1331
1340
|
};
|
|
1332
1341
|
|
|
1333
1342
|
const FormFieldCode = /*#__PURE__*/React__default.default.memo(function FormFieldCode(props) {
|
|
@@ -1562,10 +1571,13 @@ function FormFieldDatePicker(props) {
|
|
|
1562
1571
|
}
|
|
1563
1572
|
|
|
1564
1573
|
const defaultInputProps = {
|
|
1565
|
-
appearance: 'sizeM
|
|
1574
|
+
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1566
1575
|
width: 'fill',
|
|
1567
|
-
|
|
1568
|
-
|
|
1576
|
+
// useValidationAppearanceInputProps
|
|
1577
|
+
// Error
|
|
1578
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1579
|
+
// Required
|
|
1580
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1569
1581
|
};
|
|
1570
1582
|
|
|
1571
1583
|
const FormFieldInput = /*#__PURE__*/React__default.default.memo(function FormFieldInput(props) {
|
|
@@ -1665,9 +1677,13 @@ const FormFieldInput = /*#__PURE__*/React__default.default.memo(function FormFie
|
|
|
1665
1677
|
|
|
1666
1678
|
const defaultPasswordProps = {
|
|
1667
1679
|
appearance: 'sizeM defaultSecondary solid rounded',
|
|
1680
|
+
// useValidationAppearanceInputProps
|
|
1681
|
+
// Error
|
|
1682
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1683
|
+
// Required
|
|
1668
1684
|
iconRevealableHide: _default.icons24.View.HideValue,
|
|
1669
1685
|
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
1670
|
-
|
|
1686
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1671
1687
|
};
|
|
1672
1688
|
|
|
1673
1689
|
const FormFieldPassword = /*#__PURE__*/React__default.default.memo(function FormFieldPassword(props) {
|
|
@@ -1764,8 +1780,11 @@ const FormFieldPassword = /*#__PURE__*/React__default.default.memo(function Form
|
|
|
1764
1780
|
const defaultSegmentedProps = {
|
|
1765
1781
|
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1766
1782
|
width: 'fill',
|
|
1767
|
-
|
|
1768
|
-
|
|
1783
|
+
// useValidationAppearanceInputProps
|
|
1784
|
+
// Error
|
|
1785
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1786
|
+
// Required
|
|
1787
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1769
1788
|
};
|
|
1770
1789
|
|
|
1771
1790
|
function FormFieldSegmented(props) {
|
|
@@ -1846,7 +1865,12 @@ function FormFieldSegmented(props) {
|
|
|
1846
1865
|
}
|
|
1847
1866
|
|
|
1848
1867
|
const defaultSelectProps = {
|
|
1849
|
-
appearance: 'defaultPrimary sizeM'
|
|
1868
|
+
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1869
|
+
// useValidationAppearanceInputProps
|
|
1870
|
+
// Error
|
|
1871
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1872
|
+
// Required
|
|
1873
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1850
1874
|
};
|
|
1851
1875
|
|
|
1852
1876
|
function getDefaultValue(options, selectValue) {
|
|
@@ -1962,7 +1986,12 @@ const FormFieldSelect = /*#__PURE__*/React__default.default.memo(function FormFi
|
|
|
1962
1986
|
});
|
|
1963
1987
|
|
|
1964
1988
|
const defaultSwitchProps = {
|
|
1965
|
-
appearance: 'defaultPrimary sizeL solid rounded'
|
|
1989
|
+
appearance: 'defaultPrimary sizeL solid rounded',
|
|
1990
|
+
// useValidationAppearanceInputProps
|
|
1991
|
+
// Error
|
|
1992
|
+
errorAppearance: 'errorPrimary sizeL solid rounded',
|
|
1993
|
+
// Required
|
|
1994
|
+
requiredAppearance: 'requirePrimary sizeL solid rounded'
|
|
1966
1995
|
};
|
|
1967
1996
|
|
|
1968
1997
|
const FormFieldSwitch = /*#__PURE__*/React__default.default.memo(function FormFieldSwitch(props) {
|
|
@@ -2040,8 +2069,11 @@ const FormFieldSwitch = /*#__PURE__*/React__default.default.memo(function FormFi
|
|
|
2040
2069
|
|
|
2041
2070
|
const defaultTextareaProps = {
|
|
2042
2071
|
appearance: 'defaultPrimary sizeM solid rounded',
|
|
2043
|
-
|
|
2044
|
-
|
|
2072
|
+
// useValidationAppearanceInputProps
|
|
2073
|
+
// Error
|
|
2074
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
2075
|
+
// Required
|
|
2076
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
2045
2077
|
};
|
|
2046
2078
|
|
|
2047
2079
|
const FormFieldTextarea = /*#__PURE__*/React__default.default.memo(function FormFieldTextarea(props) {
|
|
@@ -2915,32 +2947,6 @@ const DEFAULT_MESSAGES_FIELDS = {
|
|
|
2915
2947
|
// required - KEY for yellow color
|
|
2916
2948
|
// error - KEY for red color
|
|
2917
2949
|
|
|
2918
|
-
// key: 'required'
|
|
2919
|
-
required: {
|
|
2920
|
-
key: 'required',
|
|
2921
|
-
message: 'Обязательное поле'
|
|
2922
|
-
},
|
|
2923
|
-
phone_required: {
|
|
2924
|
-
key: 'required',
|
|
2925
|
-
message: 'Укажите номер телефона'
|
|
2926
|
-
},
|
|
2927
|
-
email_required: {
|
|
2928
|
-
key: 'required',
|
|
2929
|
-
message: 'Укажите адрес электронной почты'
|
|
2930
|
-
},
|
|
2931
|
-
password_required: {
|
|
2932
|
-
key: 'required',
|
|
2933
|
-
message: 'Введите пароль'
|
|
2934
|
-
},
|
|
2935
|
-
phone_or_email_required: {
|
|
2936
|
-
key: 'required',
|
|
2937
|
-
message: 'Введите телефон или адрес эл. почты'
|
|
2938
|
-
},
|
|
2939
|
-
// key: 'error'
|
|
2940
|
-
matches: {
|
|
2941
|
-
key: 'error',
|
|
2942
|
-
message: 'Допускается ввод только цифр от 0 до 9'
|
|
2943
|
-
},
|
|
2944
2950
|
min: {
|
|
2945
2951
|
key: 'error',
|
|
2946
2952
|
message: ({
|
|
@@ -2957,21 +2963,47 @@ const DEFAULT_MESSAGES_FIELDS = {
|
|
|
2957
2963
|
key: 'error',
|
|
2958
2964
|
message: 'Введите корректный URL-адрес'
|
|
2959
2965
|
},
|
|
2966
|
+
email_error: {
|
|
2967
|
+
key: 'error',
|
|
2968
|
+
message: 'Введите корректный адрес электронной почты'
|
|
2969
|
+
},
|
|
2970
|
+
phone_error: {
|
|
2971
|
+
key: 'error',
|
|
2972
|
+
message: 'Введите корректный номер телефона'
|
|
2973
|
+
},
|
|
2974
|
+
email_required: {
|
|
2975
|
+
key: 'required',
|
|
2976
|
+
message: 'Укажите адрес электронной почты'
|
|
2977
|
+
},
|
|
2960
2978
|
invalid_value: {
|
|
2961
2979
|
key: 'error',
|
|
2962
2980
|
message: 'Некорректное значение'
|
|
2963
2981
|
},
|
|
2982
|
+
// key: 'error'
|
|
2983
|
+
matches: {
|
|
2984
|
+
key: 'error',
|
|
2985
|
+
message: 'Допускается ввод только цифр от 0 до 9'
|
|
2986
|
+
},
|
|
2964
2987
|
numeric_value: {
|
|
2965
2988
|
key: 'error',
|
|
2966
2989
|
message: 'Только числовое значение'
|
|
2967
2990
|
},
|
|
2968
|
-
|
|
2969
|
-
key: '
|
|
2970
|
-
message: 'Введите
|
|
2991
|
+
password_required: {
|
|
2992
|
+
key: 'required',
|
|
2993
|
+
message: 'Введите пароль'
|
|
2971
2994
|
},
|
|
2972
|
-
|
|
2973
|
-
key: '
|
|
2974
|
-
message: 'Введите
|
|
2995
|
+
phone_or_email_required: {
|
|
2996
|
+
key: 'required',
|
|
2997
|
+
message: 'Введите телефон или адрес эл. почты'
|
|
2998
|
+
},
|
|
2999
|
+
phone_required: {
|
|
3000
|
+
key: 'required',
|
|
3001
|
+
message: 'Укажите номер телефона'
|
|
3002
|
+
},
|
|
3003
|
+
// key: 'required'
|
|
3004
|
+
required: {
|
|
3005
|
+
key: 'required',
|
|
3006
|
+
message: 'Обязательное поле'
|
|
2975
3007
|
}
|
|
2976
3008
|
};
|
|
2977
3009
|
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -1024,15 +1024,13 @@ const FormBlockGroup = /*#__PURE__*/React.memo(function Group(props) {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
|
|
1026
1026
|
const defaultCheckboxProps = {
|
|
1027
|
-
appearance: 'defaultPrimary',
|
|
1027
|
+
appearance: 'defaultPrimary sizeM solid',
|
|
1028
1028
|
width: 'fill',
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
errorBorderColor: 'errorBorderSecondary',
|
|
1035
|
-
requiredBorderColor: 'warningBorderSecondary'
|
|
1029
|
+
// useValidationAppearanceInputProps
|
|
1030
|
+
// Error
|
|
1031
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1032
|
+
// Required
|
|
1033
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1036
1034
|
};
|
|
1037
1035
|
|
|
1038
1036
|
const FormFieldCheckbox = /*#__PURE__*/React.memo(function FormFieldCheckbox(props) {
|
|
@@ -1113,8 +1111,11 @@ const FormFieldCheckbox = /*#__PURE__*/React.memo(function FormFieldCheckbox(pro
|
|
|
1113
1111
|
const defaultChipsProps = {
|
|
1114
1112
|
appearance: 'surfacePrimary sizeM rounded',
|
|
1115
1113
|
width: 'fill',
|
|
1116
|
-
|
|
1117
|
-
|
|
1114
|
+
// useValidationAppearanceInputProps
|
|
1115
|
+
// Error
|
|
1116
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1117
|
+
// Required
|
|
1118
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1118
1119
|
};
|
|
1119
1120
|
|
|
1120
1121
|
function FormFieldChips(props) {
|
|
@@ -1216,8 +1217,11 @@ function FormFieldChips(props) {
|
|
|
1216
1217
|
const defaultChoiceProps = {
|
|
1217
1218
|
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1218
1219
|
width: 'fill',
|
|
1219
|
-
|
|
1220
|
-
|
|
1220
|
+
// useValidationAppearanceInputProps
|
|
1221
|
+
// Error
|
|
1222
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1223
|
+
// Required
|
|
1224
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1221
1225
|
};
|
|
1222
1226
|
|
|
1223
1227
|
const FormFieldChoice = /*#__PURE__*/React.memo(function FormFieldChoice(props) {
|
|
@@ -1316,7 +1320,12 @@ const FormFieldChoice = /*#__PURE__*/React.memo(function FormFieldChoice(props)
|
|
|
1316
1320
|
});
|
|
1317
1321
|
|
|
1318
1322
|
const defaultCodeProps = {
|
|
1319
|
-
appearance: 'defaultPrimary sizeL solid rounded'
|
|
1323
|
+
appearance: 'defaultPrimary sizeL solid rounded',
|
|
1324
|
+
// useValidationAppearanceInputProps
|
|
1325
|
+
// Error
|
|
1326
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1327
|
+
// Required
|
|
1328
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1320
1329
|
};
|
|
1321
1330
|
|
|
1322
1331
|
const FormFieldCode = /*#__PURE__*/React.memo(function FormFieldCode(props) {
|
|
@@ -1551,10 +1560,13 @@ function FormFieldDatePicker(props) {
|
|
|
1551
1560
|
}
|
|
1552
1561
|
|
|
1553
1562
|
const defaultInputProps = {
|
|
1554
|
-
appearance: 'sizeM
|
|
1563
|
+
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1555
1564
|
width: 'fill',
|
|
1556
|
-
|
|
1557
|
-
|
|
1565
|
+
// useValidationAppearanceInputProps
|
|
1566
|
+
// Error
|
|
1567
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1568
|
+
// Required
|
|
1569
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1558
1570
|
};
|
|
1559
1571
|
|
|
1560
1572
|
const FormFieldInput = /*#__PURE__*/React.memo(function FormFieldInput(props) {
|
|
@@ -1654,9 +1666,13 @@ const FormFieldInput = /*#__PURE__*/React.memo(function FormFieldInput(props) {
|
|
|
1654
1666
|
|
|
1655
1667
|
const defaultPasswordProps = {
|
|
1656
1668
|
appearance: 'sizeM defaultSecondary solid rounded',
|
|
1669
|
+
// useValidationAppearanceInputProps
|
|
1670
|
+
// Error
|
|
1671
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1672
|
+
// Required
|
|
1657
1673
|
iconRevealableHide: icons24.View.HideValue,
|
|
1658
1674
|
iconRevealableShow: icons24.View.ShowValue,
|
|
1659
|
-
|
|
1675
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1660
1676
|
};
|
|
1661
1677
|
|
|
1662
1678
|
const FormFieldPassword = /*#__PURE__*/React.memo(function FormFieldPassword(props) {
|
|
@@ -1753,8 +1769,11 @@ const FormFieldPassword = /*#__PURE__*/React.memo(function FormFieldPassword(pro
|
|
|
1753
1769
|
const defaultSegmentedProps = {
|
|
1754
1770
|
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1755
1771
|
width: 'fill',
|
|
1756
|
-
|
|
1757
|
-
|
|
1772
|
+
// useValidationAppearanceInputProps
|
|
1773
|
+
// Error
|
|
1774
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1775
|
+
// Required
|
|
1776
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1758
1777
|
};
|
|
1759
1778
|
|
|
1760
1779
|
function FormFieldSegmented(props) {
|
|
@@ -1835,7 +1854,12 @@ function FormFieldSegmented(props) {
|
|
|
1835
1854
|
}
|
|
1836
1855
|
|
|
1837
1856
|
const defaultSelectProps = {
|
|
1838
|
-
appearance: 'defaultPrimary sizeM'
|
|
1857
|
+
appearance: 'defaultPrimary sizeM solid rounded',
|
|
1858
|
+
// useValidationAppearanceInputProps
|
|
1859
|
+
// Error
|
|
1860
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
1861
|
+
// Required
|
|
1862
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
1839
1863
|
};
|
|
1840
1864
|
|
|
1841
1865
|
function getDefaultValue(options, selectValue) {
|
|
@@ -1951,7 +1975,12 @@ const FormFieldSelect = /*#__PURE__*/React.memo(function FormFieldSelect(props)
|
|
|
1951
1975
|
});
|
|
1952
1976
|
|
|
1953
1977
|
const defaultSwitchProps = {
|
|
1954
|
-
appearance: 'defaultPrimary sizeL solid rounded'
|
|
1978
|
+
appearance: 'defaultPrimary sizeL solid rounded',
|
|
1979
|
+
// useValidationAppearanceInputProps
|
|
1980
|
+
// Error
|
|
1981
|
+
errorAppearance: 'errorPrimary sizeL solid rounded',
|
|
1982
|
+
// Required
|
|
1983
|
+
requiredAppearance: 'requirePrimary sizeL solid rounded'
|
|
1955
1984
|
};
|
|
1956
1985
|
|
|
1957
1986
|
const FormFieldSwitch = /*#__PURE__*/React.memo(function FormFieldSwitch(props) {
|
|
@@ -2029,8 +2058,11 @@ const FormFieldSwitch = /*#__PURE__*/React.memo(function FormFieldSwitch(props)
|
|
|
2029
2058
|
|
|
2030
2059
|
const defaultTextareaProps = {
|
|
2031
2060
|
appearance: 'defaultPrimary sizeM solid rounded',
|
|
2032
|
-
|
|
2033
|
-
|
|
2061
|
+
// useValidationAppearanceInputProps
|
|
2062
|
+
// Error
|
|
2063
|
+
errorAppearance: 'errorPrimary sizeM solid rounded',
|
|
2064
|
+
// Required
|
|
2065
|
+
requiredAppearance: 'requirePrimary sizeM solid rounded'
|
|
2034
2066
|
};
|
|
2035
2067
|
|
|
2036
2068
|
const FormFieldTextarea = /*#__PURE__*/React.memo(function FormFieldTextarea(props) {
|
|
@@ -2904,32 +2936,6 @@ const DEFAULT_MESSAGES_FIELDS = {
|
|
|
2904
2936
|
// required - KEY for yellow color
|
|
2905
2937
|
// error - KEY for red color
|
|
2906
2938
|
|
|
2907
|
-
// key: 'required'
|
|
2908
|
-
required: {
|
|
2909
|
-
key: 'required',
|
|
2910
|
-
message: 'Обязательное поле'
|
|
2911
|
-
},
|
|
2912
|
-
phone_required: {
|
|
2913
|
-
key: 'required',
|
|
2914
|
-
message: 'Укажите номер телефона'
|
|
2915
|
-
},
|
|
2916
|
-
email_required: {
|
|
2917
|
-
key: 'required',
|
|
2918
|
-
message: 'Укажите адрес электронной почты'
|
|
2919
|
-
},
|
|
2920
|
-
password_required: {
|
|
2921
|
-
key: 'required',
|
|
2922
|
-
message: 'Введите пароль'
|
|
2923
|
-
},
|
|
2924
|
-
phone_or_email_required: {
|
|
2925
|
-
key: 'required',
|
|
2926
|
-
message: 'Введите телефон или адрес эл. почты'
|
|
2927
|
-
},
|
|
2928
|
-
// key: 'error'
|
|
2929
|
-
matches: {
|
|
2930
|
-
key: 'error',
|
|
2931
|
-
message: 'Допускается ввод только цифр от 0 до 9'
|
|
2932
|
-
},
|
|
2933
2939
|
min: {
|
|
2934
2940
|
key: 'error',
|
|
2935
2941
|
message: ({
|
|
@@ -2946,21 +2952,47 @@ const DEFAULT_MESSAGES_FIELDS = {
|
|
|
2946
2952
|
key: 'error',
|
|
2947
2953
|
message: 'Введите корректный URL-адрес'
|
|
2948
2954
|
},
|
|
2955
|
+
email_error: {
|
|
2956
|
+
key: 'error',
|
|
2957
|
+
message: 'Введите корректный адрес электронной почты'
|
|
2958
|
+
},
|
|
2959
|
+
phone_error: {
|
|
2960
|
+
key: 'error',
|
|
2961
|
+
message: 'Введите корректный номер телефона'
|
|
2962
|
+
},
|
|
2963
|
+
email_required: {
|
|
2964
|
+
key: 'required',
|
|
2965
|
+
message: 'Укажите адрес электронной почты'
|
|
2966
|
+
},
|
|
2949
2967
|
invalid_value: {
|
|
2950
2968
|
key: 'error',
|
|
2951
2969
|
message: 'Некорректное значение'
|
|
2952
2970
|
},
|
|
2971
|
+
// key: 'error'
|
|
2972
|
+
matches: {
|
|
2973
|
+
key: 'error',
|
|
2974
|
+
message: 'Допускается ввод только цифр от 0 до 9'
|
|
2975
|
+
},
|
|
2953
2976
|
numeric_value: {
|
|
2954
2977
|
key: 'error',
|
|
2955
2978
|
message: 'Только числовое значение'
|
|
2956
2979
|
},
|
|
2957
|
-
|
|
2958
|
-
key: '
|
|
2959
|
-
message: 'Введите
|
|
2980
|
+
password_required: {
|
|
2981
|
+
key: 'required',
|
|
2982
|
+
message: 'Введите пароль'
|
|
2960
2983
|
},
|
|
2961
|
-
|
|
2962
|
-
key: '
|
|
2963
|
-
message: 'Введите
|
|
2984
|
+
phone_or_email_required: {
|
|
2985
|
+
key: 'required',
|
|
2986
|
+
message: 'Введите телефон или адрес эл. почты'
|
|
2987
|
+
},
|
|
2988
|
+
phone_required: {
|
|
2989
|
+
key: 'required',
|
|
2990
|
+
message: 'Укажите номер телефона'
|
|
2991
|
+
},
|
|
2992
|
+
// key: 'required'
|
|
2993
|
+
required: {
|
|
2994
|
+
key: 'required',
|
|
2995
|
+
message: 'Обязательное поле'
|
|
2964
2996
|
}
|
|
2965
2997
|
};
|
|
2966
2998
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/forms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.31",
|
|
4
4
|
"description": "Forms fields, inputs, etc.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@itcase/common": "^1.2.28",
|
|
36
|
-
"@itcase/config": "^1.0.
|
|
36
|
+
"@itcase/config": "^1.0.55",
|
|
37
37
|
"@itcase/icons": "^1.2.16",
|
|
38
|
-
"@itcase/storybook-config": "^1.1.
|
|
38
|
+
"@itcase/storybook-config": "^1.1.77",
|
|
39
39
|
"@itcase/tokens-am": "^1.1.19",
|
|
40
40
|
"@itcase/tokens-baikal": "^1.1.17",
|
|
41
|
-
"@itcase/ui": "^1.8.
|
|
41
|
+
"@itcase/ui": "^1.8.85",
|
|
42
42
|
"axios": "^1.11.0",
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
44
|
"final-form": "4.20.10",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@babel/preset-react": "^7.27.1",
|
|
62
62
|
"@commitlint/cli": "^19.8.1",
|
|
63
63
|
"@commitlint/config-conventional": "^19.8.1",
|
|
64
|
-
"@itcase/lint": "^1.1.
|
|
64
|
+
"@itcase/lint": "^1.1.30",
|
|
65
65
|
"@rollup/plugin-babel": "^6.0.4",
|
|
66
66
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
67
67
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
77
77
|
"eslint": "9.32.0",
|
|
78
78
|
"husky": "^9.1.7",
|
|
79
|
-
"lint-staged": "^16.1.
|
|
79
|
+
"lint-staged": "^16.1.4",
|
|
80
80
|
"postcss": "^8.5.6",
|
|
81
81
|
"prettier": "3.6.2",
|
|
82
|
-
"rollup": "^4.46.
|
|
82
|
+
"rollup": "^4.46.2",
|
|
83
83
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
84
84
|
"semantic-release": "^24.2.7",
|
|
85
|
-
"storybook": "^9.
|
|
86
|
-
"stylelint": "^16.
|
|
87
|
-
"typescript": "^5.
|
|
88
|
-
"yup": "^1.
|
|
85
|
+
"storybook": "^9.1.1",
|
|
86
|
+
"stylelint": "^16.23.0",
|
|
87
|
+
"typescript": "^5.9.2",
|
|
88
|
+
"yup": "^1.7.0"
|
|
89
89
|
}
|
|
90
90
|
}
|