@itcase/forms 1.1.58 → 1.1.60

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.
@@ -318,7 +318,7 @@ function useYupValidationSchema(schema, language) {
318
318
  }
319
319
 
320
320
  var defaultCheckboxProps = {
321
- appearance: 'defaultPrimary sizeL solid',
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 FormBlockGroup = /*#__PURE__*/React__default.default.memo(function Group(props) {
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,
@@ -2526,7 +2526,13 @@ var FormFieldPassword = /*#__PURE__*/React__default.default.memo(function FormFi
2526
2526
  });
2527
2527
 
2528
2528
  var defaultRadioProps = {
2529
- appearance: 'defaultPrimary sizeM solid circular'
2529
+ appearance: 'defaultPrimary sizeM solid circular',
2530
+ // Error
2531
+ errorAppearance: 'errorPrimary sizeM solid circular',
2532
+ // Required
2533
+ requiredAppearance: 'requirePrimary sizeM solid circular',
2534
+ // Success
2535
+ successAppearance: 'successPrimary sizeM solid circular'
2530
2536
  };
2531
2537
 
2532
2538
  function FormFieldRadioGroupList(props) {
@@ -3173,7 +3179,7 @@ function generateField(field, config, dataTestId) {
3173
3179
  }
3174
3180
  case formTypes.group:
3175
3181
  {
3176
- return /*#__PURE__*/React__default.default.createElement(FormBlockGroup, Object.assign({
3182
+ return /*#__PURE__*/React__default.default.createElement(FormGroup, Object.assign({
3177
3183
  key: config.key
3178
3184
  }, field, {
3179
3185
  dataTestId: dataTestId
@@ -3706,7 +3712,6 @@ exports.DEFAULT_MESSAGES_FIELDS = DEFAULT_MESSAGES_FIELDS;
3706
3712
  exports.FieldWrapper = FieldWrapper;
3707
3713
  exports.FieldWrapperBase = FieldWrapperBase;
3708
3714
  exports.FinalForm = FinalForm;
3709
- exports.FormBlockGroup = FormBlockGroup;
3710
3715
  exports.FormFieldCheckbox = FormFieldCheckbox;
3711
3716
  exports.FormFieldChips = FormFieldChips;
3712
3717
  exports.FormFieldChoice = FormFieldChoice;
@@ -3724,6 +3729,7 @@ exports.FormFieldSegmented = FormFieldSegmented;
3724
3729
  exports.FormFieldSelect = FormFieldSelect;
3725
3730
  exports.FormFieldSwitch = FormFieldSwitch;
3726
3731
  exports.FormFieldTextarea = FormFieldTextarea;
3732
+ exports.FormGroup = FormGroup;
3727
3733
  exports.addRequiredFieldsParamToSchema = addRequiredFieldsParamToSchema;
3728
3734
  exports.createDataTestIdField = createDataTestIdField;
3729
3735
  exports.dateValidation = dateValidation;
@@ -307,7 +307,7 @@ function useYupValidationSchema(schema, language) {
307
307
  }
308
308
 
309
309
  var defaultCheckboxProps = {
310
- appearance: 'defaultPrimary sizeL solid',
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 FormBlockGroup = /*#__PURE__*/React.memo(function Group(props) {
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,
@@ -2515,7 +2515,13 @@ var FormFieldPassword = /*#__PURE__*/React.memo(function FormFieldPassword(props
2515
2515
  });
2516
2516
 
2517
2517
  var defaultRadioProps = {
2518
- appearance: 'defaultPrimary sizeM solid circular'
2518
+ appearance: 'defaultPrimary sizeM solid circular',
2519
+ // Error
2520
+ errorAppearance: 'errorPrimary sizeM solid circular',
2521
+ // Required
2522
+ requiredAppearance: 'requirePrimary sizeM solid circular',
2523
+ // Success
2524
+ successAppearance: 'successPrimary sizeM solid circular'
2519
2525
  };
2520
2526
 
2521
2527
  function FormFieldRadioGroupList(props) {
@@ -3162,7 +3168,7 @@ function generateField(field, config, dataTestId) {
3162
3168
  }
3163
3169
  case formTypes.group:
3164
3170
  {
3165
- return /*#__PURE__*/React.createElement(FormBlockGroup, Object.assign({
3171
+ return /*#__PURE__*/React.createElement(FormGroup, Object.assign({
3166
3172
  key: config.key
3167
3173
  }, field, {
3168
3174
  dataTestId: dataTestId
@@ -3679,4 +3685,4 @@ var getErrorsForFinalForm = function getErrorsForFinalForm(error) {
3679
3685
  return formErrors;
3680
3686
  };
3681
3687
 
3682
- export { DEFAULT_MESSAGES_FIELDS, FieldWrapper, FieldWrapperBase, FinalForm, FormBlockGroup, FormFieldCheckbox, FormFieldChips, FormFieldChoice, FormFieldCode, FormFieldCustom, FormFieldDadataInput, FormFieldDatePicker, FormFieldFileInput, FormFieldInput, FormFieldInputNumber, FormFieldMaskedInput, FormFieldPassword, FormFieldRadioGroup, FormFieldSegmented, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, 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 };
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.58",
3
+ "version": "1.1.60",
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.52",
36
+ "@itcase/config": "^1.6.56",
37
37
  "@itcase/icons": "^1.2.29",
38
- "@itcase/storybook-config": "^1.2.47",
39
- "@itcase/tokens-am": "^1.1.45",
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.77",
42
- "@itcase/ui-web": "^1.9.77",
43
- "axios": "^1.13.6",
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.40",
48
- "lodash": "^4.17.23",
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.102",
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.0",
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.8",
82
- "prettier": "3.8.1",
83
- "rollup": "^4.59.0",
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.0",
87
- "stylelint": "^17.4.0",
86
+ "storybook": "^10.3.5",
87
+ "stylelint": "^17.9.0",
88
88
  "typescript": "^5.9.3",
89
89
  "yup": "^1.7.1"
90
90
  }