@itcase/forms 1.0.73 → 1.0.74

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.
@@ -834,10 +834,11 @@ function DatePickerField(props) {
834
834
  * custom React Hook function.
835
835
  */
836
836
 
837
- const onChangeField = React.useCallback(value => {
838
- input.onChange(value);
837
+ const onChangeField = React.useCallback((firstDate, secondDate) => {
838
+ input.onChange(firstDate);
839
839
  if (onChange) {
840
- onChange(value, input.name);
840
+ // TODO: check all DatePickerField's pn all project to change variable places
841
+ onChange(firstDate, input.name, secondDate);
841
842
  }
842
843
  }, [onChange, input.onChange]);
843
844
  const {
@@ -820,10 +820,11 @@ function DatePickerField(props) {
820
820
  * custom React Hook function.
821
821
  */
822
822
 
823
- const onChangeField = useCallback(value => {
824
- input.onChange(value);
823
+ const onChangeField = useCallback((firstDate, secondDate) => {
824
+ input.onChange(firstDate);
825
825
  if (onChange) {
826
- onChange(value, input.name);
826
+ // TODO: check all DatePickerField's pn all project to change variable places
827
+ onChange(firstDate, input.name, secondDate);
827
828
  }
828
829
  }, [onChange, input.onChange]);
829
830
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/forms",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "Forms fields, inputs, etc.",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -31,12 +31,12 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@itcase/common": "^1.2.17",
34
- "@itcase/ui": "^1.2.34",
34
+ "@itcase/ui": "^1.3.12",
35
35
  "axios": "^1.7.9",
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.16",
39
+ "libphonenumber-js": "^1.11.17",
40
40
  "lodash": "^4.17.21",
41
41
  "luxon": "^3.5.0",
42
42
  "postcss": "^8.4.49",
@@ -48,47 +48,47 @@
48
48
  "react-dropzone": "^14.3.5",
49
49
  "react-final-form": "^6.5.9",
50
50
  "react-imask": "^7.6.1",
51
- "react-select": "^5.8.3"
51
+ "react-select": "^5.9.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@itcase/lint": "^1.0.33",
54
+ "@itcase/lint": "^1.0.35",
55
55
  "@babel/core": "^7.26.0",
56
56
  "@babel/eslint-parser": "^7.25.9",
57
57
  "@babel/preset-env": "^7.26.0",
58
- "@babel/preset-react": "^7.25.9",
59
- "@commitlint/cli": "^19.6.0",
58
+ "@babel/preset-react": "^7.26.3",
59
+ "@commitlint/cli": "^19.6.1",
60
60
  "@commitlint/config-conventional": "^19.6.0",
61
- "@eslint/compat": "^1.2.3",
61
+ "@eslint/compat": "^1.2.4",
62
62
  "@eslint/eslintrc": "^3.2.0",
63
63
  "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
64
64
  "@rollup/plugin-babel": "^6.0.4",
65
- "@rollup/plugin-commonjs": "^28.0.1",
65
+ "@rollup/plugin-commonjs": "^28.0.2",
66
66
  "@rollup/plugin-json": "^6.1.0",
67
- "@rollup/plugin-node-resolve": "^15.3.0",
67
+ "@rollup/plugin-node-resolve": "^16.0.0",
68
68
  "@rollup/plugin-terser": "^0.4.4",
69
69
  "@semantic-release/changelog": "^6.0.3",
70
70
  "@semantic-release/git": "^10.0.1",
71
- "@semantic-release/release-notes-generator": "14.0.1",
71
+ "@semantic-release/release-notes-generator": "14.0.2",
72
72
  "@types/react": "^18",
73
73
  "@types/react-dom": "^18.3.1",
74
74
  "babel-plugin-inline-react-svg": "^2.0.2",
75
75
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
76
76
  "conventional-changelog-conventionalcommits": "^8.0.0",
77
- "eslint": "9.16.0",
77
+ "eslint": "9.17.0",
78
78
  "eslint-config-prettier": "9.1.0",
79
79
  "eslint-config-standard": "17.1.0",
80
80
  "eslint-plugin-babel": "5.3.1",
81
81
  "eslint-plugin-import": "2.31.0",
82
- "eslint-plugin-n": "17.14.0",
82
+ "eslint-plugin-n": "17.15.1",
83
83
  "eslint-plugin-node": "11.1.0",
84
84
  "eslint-plugin-prettier": "5.2.1",
85
85
  "eslint-plugin-promise": "7.2.1",
86
- "eslint-plugin-react": "7.37.2",
87
- "eslint-plugin-react-hooks": "5.0.0",
86
+ "eslint-plugin-react": "7.37.3",
87
+ "eslint-plugin-react-hooks": "5.1.0",
88
88
  "eslint-plugin-standard": "5.0.0",
89
89
  "husky": "^9.1.7",
90
- "lint-staged": "^15.2.10",
91
- "npm": "^10.9.1",
90
+ "lint-staged": "^15.3.0",
91
+ "npm": "^11.0.0",
92
92
  "postcss-aspect-ratio-polyfill": "^2.0.0",
93
93
  "postcss-cli": "^11.0.0",
94
94
  "postcss-combine-duplicated-selectors": "^10.0.3",
@@ -106,15 +106,15 @@
106
106
  "postcss-nested-ancestors": "^3.0.0",
107
107
  "postcss-normalize": "^13.0.1",
108
108
  "postcss-prepend-imports": "^1.0.1",
109
- "postcss-preset-env": "^10.1.1",
109
+ "postcss-preset-env": "^10.1.3",
110
110
  "postcss-pxtorem": "^6.1.0",
111
111
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
112
112
  "postcss-sort-media-queries": "^5.2.0",
113
113
  "prettier": "3.4.2",
114
- "rollup": "^4.28.0",
114
+ "rollup": "^4.29.1",
115
115
  "rollup-plugin-peer-deps-external": "^2.2.4",
116
116
  "semantic-release": "^24.2.0",
117
- "stylelint": "^16.11.0",
117
+ "stylelint": "^16.12.0",
118
118
  "stylelint-config-standard": "^36.0.1",
119
119
  "stylelint-no-unsupported-browser-features": "^8.0.2",
120
120
  "stylelint-order": "^6.0.4",