@itcase/forms 1.0.62 → 1.0.63

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.
@@ -539,7 +539,7 @@ const ChoiceField = /*#__PURE__*/React__default.default.memo(function ChoiceFiel
539
539
  initialValue,
540
540
  inputProps,
541
541
  isDisabled,
542
- isMultiple,
542
+ isCheckbox,
543
543
  isRequired,
544
544
  label,
545
545
  messageType,
@@ -616,8 +616,8 @@ const ChoiceField = /*#__PURE__*/React__default.default.memo(function ChoiceFiel
616
616
  active: activeOption,
617
617
  className: clsx__default.default(meta.active && 'form-choice_state_focus', meta.error && meta.touched && `form-choice_state_${errorKey}`),
618
618
  inputValue: input.value || [],
619
+ isCheckbox: isCheckbox,
619
620
  isDisabled: isDisabled,
620
- isMultiple: isMultiple,
621
621
  isRequired: isRequired,
622
622
  name: input.name,
623
623
  options: options,
@@ -631,12 +631,16 @@ ChoiceField.propTypes = {
631
631
  fieldProps: PropTypes__default.default.object,
632
632
  initialValue: PropTypes__default.default.oneOfType([PropTypes__default.default.string, PropTypes__default.default.number, PropTypes__default.default.bool]),
633
633
  inputProps: PropTypes__default.default.object,
634
+ isCheckbox: PropTypes__default.default.bool,
634
635
  isDisabled: PropTypes__default.default.bool,
635
- isMultiple: PropTypes__default.default.bool,
636
636
  isRequired: PropTypes__default.default.bool,
637
637
  label: PropTypes__default.default.oneOfType([PropTypes__default.default.string, PropTypes__default.default.element]),
638
638
  messageType: PropTypes__default.default.string,
639
639
  name: PropTypes__default.default.string,
640
+ options: PropTypes__default.default.arrayOf(PropTypes__default.default.shape({
641
+ label: PropTypes__default.default.string,
642
+ value: PropTypes__default.default.oneOfType([PropTypes__default.default.string, PropTypes__default.default.number])
643
+ })),
640
644
  placeholder: PropTypes__default.default.string,
641
645
  showMessage: PropTypes__default.default.bool,
642
646
  onChange: PropTypes__default.default.func
@@ -525,7 +525,7 @@ const ChoiceField = /*#__PURE__*/React.memo(function ChoiceField(props) {
525
525
  initialValue,
526
526
  inputProps,
527
527
  isDisabled,
528
- isMultiple,
528
+ isCheckbox,
529
529
  isRequired,
530
530
  label,
531
531
  messageType,
@@ -602,8 +602,8 @@ const ChoiceField = /*#__PURE__*/React.memo(function ChoiceField(props) {
602
602
  active: activeOption,
603
603
  className: clsx(meta.active && 'form-choice_state_focus', meta.error && meta.touched && `form-choice_state_${errorKey}`),
604
604
  inputValue: input.value || [],
605
+ isCheckbox: isCheckbox,
605
606
  isDisabled: isDisabled,
606
- isMultiple: isMultiple,
607
607
  isRequired: isRequired,
608
608
  name: input.name,
609
609
  options: options,
@@ -617,12 +617,16 @@ ChoiceField.propTypes = {
617
617
  fieldProps: PropTypes.object,
618
618
  initialValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),
619
619
  inputProps: PropTypes.object,
620
+ isCheckbox: PropTypes.bool,
620
621
  isDisabled: PropTypes.bool,
621
- isMultiple: PropTypes.bool,
622
622
  isRequired: PropTypes.bool,
623
623
  label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
624
624
  messageType: PropTypes.string,
625
625
  name: PropTypes.string,
626
+ options: PropTypes.arrayOf(PropTypes.shape({
627
+ label: PropTypes.string,
628
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
629
+ })),
626
630
  placeholder: PropTypes.string,
627
631
  showMessage: PropTypes.bool,
628
632
  onChange: PropTypes.func
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/forms",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "Forms fields, inputs, etc.",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -30,20 +30,20 @@
30
30
  "registry": "https://registry.npmjs.org/"
31
31
  },
32
32
  "dependencies": {
33
- "@itcase/common": "^1.2.1",
34
- "@itcase/ui": "^1.1.10",
33
+ "@itcase/common": "^1.2.2",
34
+ "@itcase/ui": "^1.1.15",
35
35
  "axios": "^1.7.2",
36
36
  "clsx": "^2.1.1",
37
37
  "final-form": "^4.20.10",
38
38
  "final-form-focus": "^1.1.2",
39
- "libphonenumber-js": "^1.11.2",
39
+ "libphonenumber-js": "^1.11.4",
40
40
  "lodash": "^4.17.21",
41
41
  "luxon": "^3.4.4",
42
- "postcss": "^8.4.38",
42
+ "postcss": "^8.4.39",
43
43
  "prop-types": "^15.8.1",
44
44
  "react": "^18.3.1",
45
45
  "react-date-range": "^2.0.1",
46
- "react-datepicker": "^6.9.0",
46
+ "react-datepicker": "^7.3.0",
47
47
  "react-dom": "^18.3.1",
48
48
  "react-dropzone": "^14.2.3",
49
49
  "react-final-form": "^6.5.9",
@@ -51,38 +51,39 @@
51
51
  "react-select": "^5.8.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@babel/core": "^7.24.6",
55
- "@babel/eslint-parser": "^7.24.6",
56
- "@babel/preset-env": "^7.24.6",
57
- "@babel/preset-react": "^7.24.6",
54
+ "@babel/core": "^7.24.9",
55
+ "@babel/eslint-parser": "^7.24.8",
56
+ "@babel/preset-env": "^7.24.8",
57
+ "@babel/preset-react": "^7.24.7",
58
58
  "@commitlint/cli": "^19.3.0",
59
59
  "@commitlint/config-conventional": "^19.2.2",
60
- "@eslint/compat": "^1.0.1",
60
+ "@eslint/compat": "^1.1.1",
61
61
  "@eslint/eslintrc": "^3.1.0",
62
- "@ianvs/prettier-plugin-sort-imports": "^4.2.1",
62
+ "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
63
63
  "@rollup/plugin-babel": "^6.0.4",
64
- "@rollup/plugin-commonjs": "^25.0.8",
64
+ "@rollup/plugin-commonjs": "^26.0.1",
65
65
  "@rollup/plugin-json": "^6.1.0",
66
66
  "@rollup/plugin-node-resolve": "^15.2.3",
67
67
  "@rollup/plugin-terser": "^0.4.4",
68
68
  "@semantic-release/git": "^10.0.1",
69
69
  "babel-plugin-inline-react-svg": "^2.0.2",
70
70
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
71
- "eslint": "9.3.0",
71
+ "conventional-changelog-conventionalcommits": "^8.0.0",
72
+ "eslint": "9.7.0",
72
73
  "eslint-config-prettier": "9.1.0",
73
74
  "eslint-config-standard": "17.1.0",
74
75
  "eslint-plugin-babel": "5.3.1",
75
76
  "eslint-plugin-import": "2.29.1",
76
- "eslint-plugin-n": "17.7.0",
77
+ "eslint-plugin-n": "17.9.0",
77
78
  "eslint-plugin-node": "11.1.0",
78
79
  "eslint-plugin-prettier": "5.1.3",
79
- "eslint-plugin-promise": "6.2.0",
80
- "eslint-plugin-react": "7.34.2",
80
+ "eslint-plugin-promise": "6.4.0",
81
+ "eslint-plugin-react": "7.34.4",
81
82
  "eslint-plugin-react-hooks": "4.6.2",
82
83
  "eslint-plugin-standard": "5.0.0",
83
84
  "husky": "^9.0.11",
84
- "lint-staged": "^15.2.5",
85
- "npm": "^10.8.0",
85
+ "lint-staged": "^15.2.7",
86
+ "npm": "^10.8.2",
86
87
  "postcss-aspect-ratio-polyfill": "^2.0.0",
87
88
  "postcss-cli": "^11.0.0",
88
89
  "postcss-combine-duplicated-selectors": "^10.0.3",
@@ -100,16 +101,16 @@
100
101
  "postcss-nested-ancestors": "^3.0.0",
101
102
  "postcss-normalize": "^10.0.1",
102
103
  "postcss-prepend-imports": "^1.0.1",
103
- "postcss-preset-env": "^9.5.14",
104
+ "postcss-preset-env": "^9.6.0",
104
105
  "postcss-pxtorem": "^6.1.0",
105
106
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
106
107
  "postcss-sort-media-queries": "^5.2.0",
107
- "prettier": "3.2.5",
108
- "rollup": "^4.18.0",
108
+ "prettier": "3.3.3",
109
+ "rollup": "^4.18.1",
109
110
  "rollup-plugin-peer-deps-external": "^2.2.4",
110
- "semantic-release": "^23.1.1",
111
- "stylelint": "^16.6.1",
112
- "stylelint-config-standard": "^36.0.0",
111
+ "semantic-release": "^24.0.0",
112
+ "stylelint": "^16.7.0",
113
+ "stylelint-config-standard": "^36.0.1",
113
114
  "stylelint-no-unsupported-browser-features": "^8.0.1",
114
115
  "stylelint-order": "^6.0.4"
115
116
  }