@itcase/forms 1.1.59 → 1.1.61
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/Choice/FormFieldChoice.css +10 -0
- package/dist/css/form/Field/Input/FormFieldInput.css +126 -0
- package/dist/css/form/Field/Textarea/FormFieldTextarea.css +125 -0
- package/dist/css/styles/main.css +3 -68
- package/dist/itcase-forms.cjs.js +4 -4
- package/dist/itcase-forms.esm.js +4 -4
- package/package.json +16 -16
- /package/dist/css/form/Field/Group/{FormBlockGroup.css → FormGroup.css} +0 -0
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -318,7 +318,7 @@ function useYupValidationSchema(schema, language) {
|
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
var defaultCheckboxProps = {
|
|
321
|
-
appearance: 'defaultPrimary sizeL
|
|
321
|
+
appearance: 'defaultPrimary sizeL outlined rounded',
|
|
322
322
|
width: 'fill',
|
|
323
323
|
// useValidationAppearanceInputProps
|
|
324
324
|
// Error
|
|
@@ -2056,7 +2056,7 @@ var defaultGroupProps = {
|
|
|
2056
2056
|
requiredMessageTextSize: 's'
|
|
2057
2057
|
};
|
|
2058
2058
|
|
|
2059
|
-
var
|
|
2059
|
+
var FormGroup = /*#__PURE__*/React__default.default.memo(function Group(props) {
|
|
2060
2060
|
var className = props.className,
|
|
2061
2061
|
dataTestId = props.dataTestId,
|
|
2062
2062
|
dataTour = props.dataTour,
|
|
@@ -3179,7 +3179,7 @@ function generateField(field, config, dataTestId) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
case formTypes.group:
|
|
3181
3181
|
{
|
|
3182
|
-
return /*#__PURE__*/React__default.default.createElement(
|
|
3182
|
+
return /*#__PURE__*/React__default.default.createElement(FormGroup, Object.assign({
|
|
3183
3183
|
key: config.key
|
|
3184
3184
|
}, field, {
|
|
3185
3185
|
dataTestId: dataTestId
|
|
@@ -3712,7 +3712,6 @@ exports.DEFAULT_MESSAGES_FIELDS = DEFAULT_MESSAGES_FIELDS;
|
|
|
3712
3712
|
exports.FieldWrapper = FieldWrapper;
|
|
3713
3713
|
exports.FieldWrapperBase = FieldWrapperBase;
|
|
3714
3714
|
exports.FinalForm = FinalForm;
|
|
3715
|
-
exports.FormBlockGroup = FormBlockGroup;
|
|
3716
3715
|
exports.FormFieldCheckbox = FormFieldCheckbox;
|
|
3717
3716
|
exports.FormFieldChips = FormFieldChips;
|
|
3718
3717
|
exports.FormFieldChoice = FormFieldChoice;
|
|
@@ -3730,6 +3729,7 @@ exports.FormFieldSegmented = FormFieldSegmented;
|
|
|
3730
3729
|
exports.FormFieldSelect = FormFieldSelect;
|
|
3731
3730
|
exports.FormFieldSwitch = FormFieldSwitch;
|
|
3732
3731
|
exports.FormFieldTextarea = FormFieldTextarea;
|
|
3732
|
+
exports.FormGroup = FormGroup;
|
|
3733
3733
|
exports.addRequiredFieldsParamToSchema = addRequiredFieldsParamToSchema;
|
|
3734
3734
|
exports.createDataTestIdField = createDataTestIdField;
|
|
3735
3735
|
exports.dateValidation = dateValidation;
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -307,7 +307,7 @@ function useYupValidationSchema(schema, language) {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
var defaultCheckboxProps = {
|
|
310
|
-
appearance: 'defaultPrimary sizeL
|
|
310
|
+
appearance: 'defaultPrimary sizeL outlined rounded',
|
|
311
311
|
width: 'fill',
|
|
312
312
|
// useValidationAppearanceInputProps
|
|
313
313
|
// Error
|
|
@@ -2045,7 +2045,7 @@ var defaultGroupProps = {
|
|
|
2045
2045
|
requiredMessageTextSize: 's'
|
|
2046
2046
|
};
|
|
2047
2047
|
|
|
2048
|
-
var
|
|
2048
|
+
var FormGroup = /*#__PURE__*/React.memo(function Group(props) {
|
|
2049
2049
|
var className = props.className,
|
|
2050
2050
|
dataTestId = props.dataTestId,
|
|
2051
2051
|
dataTour = props.dataTour,
|
|
@@ -3168,7 +3168,7 @@ function generateField(field, config, dataTestId) {
|
|
|
3168
3168
|
}
|
|
3169
3169
|
case formTypes.group:
|
|
3170
3170
|
{
|
|
3171
|
-
return /*#__PURE__*/React.createElement(
|
|
3171
|
+
return /*#__PURE__*/React.createElement(FormGroup, Object.assign({
|
|
3172
3172
|
key: config.key
|
|
3173
3173
|
}, field, {
|
|
3174
3174
|
dataTestId: dataTestId
|
|
@@ -3685,4 +3685,4 @@ var getErrorsForFinalForm = function getErrorsForFinalForm(error) {
|
|
|
3685
3685
|
return formErrors;
|
|
3686
3686
|
};
|
|
3687
3687
|
|
|
3688
|
-
export { DEFAULT_MESSAGES_FIELDS, FieldWrapper, FieldWrapperBase, FinalForm,
|
|
3688
|
+
export { DEFAULT_MESSAGES_FIELDS, FieldWrapper, FieldWrapperBase, FinalForm, FormFieldCheckbox, FormFieldChips, FormFieldChoice, FormFieldCode, FormFieldCustom, FormFieldDadataInput, FormFieldDatePicker, FormFieldFileInput, FormFieldInput, FormFieldInputNumber, FormFieldMaskedInput, FormFieldPassword, FormFieldRadioGroup, FormFieldSegmented, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, FormGroup, addRequiredFieldsParamToSchema, createDataTestIdField, dateValidation, defaultCheckboxProps, defaultChipsProps, defaultChoiceProps, defaultCodeProps, defaultDadataInputProps, defaultDatepickerProps, defaultDropzoneProps, defaultFieldProps, defaultFieldSizeL, defaultFieldSizeM, defaultFieldSizeS, defaultFieldSizeXL, defaultGroupProps, defaultInputNumberProps, defaultInputProps, defaultPasswordProps, defaultRadioProps, defaultSegmentedProps, defaultSelectProps, defaultSwitchProps, defaultTextareaProps, emailValidation, focusOnError, focusOnErrorDecorator, formTypes, generateField, getErrorsForFinalForm, parseNumericField, phoneValidation, sendFormDataToServer, setErrorsMutator, useYupValidationSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/forms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.61",
|
|
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.41",
|
|
36
|
-
"@itcase/config": "^1.6.
|
|
36
|
+
"@itcase/config": "^1.6.56",
|
|
37
37
|
"@itcase/icons": "^1.2.29",
|
|
38
|
-
"@itcase/storybook-config": "^1.2.
|
|
39
|
-
"@itcase/tokens-am": "^1.1.
|
|
38
|
+
"@itcase/storybook-config": "^1.2.51",
|
|
39
|
+
"@itcase/tokens-am": "^1.1.51",
|
|
40
40
|
"@itcase/tokens-baikal": "^1.1.41",
|
|
41
|
-
"@itcase/ui-core": "^1.9.
|
|
42
|
-
"@itcase/ui-web": "^1.9.
|
|
43
|
-
"axios": "^1.
|
|
41
|
+
"@itcase/ui-core": "^1.9.90",
|
|
42
|
+
"@itcase/ui-web": "^1.9.90",
|
|
43
|
+
"axios": "^1.15.2",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"final-form": "4.20.10",
|
|
46
46
|
"final-form-focus": "1.1.2",
|
|
47
|
-
"libphonenumber-js": "^1.12.
|
|
48
|
-
"lodash": "^4.
|
|
47
|
+
"libphonenumber-js": "^1.12.42",
|
|
48
|
+
"lodash": "^4.18.1",
|
|
49
49
|
"luxon": "^3.7.2",
|
|
50
50
|
"react": "^18.3.1",
|
|
51
51
|
"react-date-range": "^2.0.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@babel/preset-react": "^7.28.5",
|
|
63
63
|
"@commitlint/cli": "^20.5.0",
|
|
64
64
|
"@commitlint/config-conventional": "^20.5.0",
|
|
65
|
-
"@itcase/lint": "^1.1.
|
|
65
|
+
"@itcase/lint": "^1.1.110",
|
|
66
66
|
"@rollup/plugin-babel": "^7.0.0",
|
|
67
67
|
"@rollup/plugin-commonjs": "^29.0.2",
|
|
68
68
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -74,17 +74,17 @@
|
|
|
74
74
|
"@types/react-dom": "^18.3.1",
|
|
75
75
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
76
76
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
77
|
-
"conventional-changelog-conventionalcommits": "^9.3.
|
|
77
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
78
78
|
"eslint": "9.39.2",
|
|
79
79
|
"husky": "^9.1.7",
|
|
80
80
|
"lint-staged": "^16.4.0",
|
|
81
|
-
"postcss": "^8.5.
|
|
82
|
-
"prettier": "3.8.
|
|
83
|
-
"rollup": "^4.
|
|
81
|
+
"postcss": "^8.5.10",
|
|
82
|
+
"prettier": "3.8.3",
|
|
83
|
+
"rollup": "^4.60.2",
|
|
84
84
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
85
85
|
"semantic-release": "^25.0.3",
|
|
86
|
-
"storybook": "^10.3.
|
|
87
|
-
"stylelint": "^17.
|
|
86
|
+
"storybook": "^10.3.5",
|
|
87
|
+
"stylelint": "^17.9.0",
|
|
88
88
|
"typescript": "^5.9.3",
|
|
89
89
|
"yup": "^1.7.1"
|
|
90
90
|
}
|
|
File without changes
|