@ttoss/forms 0.14.2 → 0.14.4

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/esm/index.js CHANGED
@@ -181,7 +181,7 @@ var FormFieldRadio = ({
181
181
  onChange,
182
182
  onBlur,
183
183
  value: option.value,
184
- defaultChecked: value === option.value,
184
+ checked: value === option.value,
185
185
  name,
186
186
  id,
187
187
  ...radioProps
package/dist/index.js CHANGED
@@ -221,7 +221,7 @@ var FormFieldRadio = ({
221
221
  onChange,
222
222
  onBlur,
223
223
  value: option.value,
224
- defaultChecked: value === option.value,
224
+ checked: value === option.value,
225
225
  name,
226
226
  id,
227
227
  ...radioProps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/forms",
3
- "version": "0.14.2",
3
+ "version": "0.14.4",
4
4
  "license": "UNLICENSED",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -20,26 +20,26 @@
20
20
  "typings": "dist/index.d.ts",
21
21
  "dependencies": {
22
22
  "@hookform/error-message": "^2.0.1",
23
- "@hookform/resolvers": "^2.9.10",
24
- "react-hook-form": "^7.41.2",
25
- "yup": "^0.32.11"
23
+ "@hookform/resolvers": "^2.9.11",
24
+ "react-hook-form": "^7.43.2",
25
+ "yup": "^1.0.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "@ttoss/ui": "^1.27.3",
28
+ "@ttoss/ui": "^1.30.2",
29
29
  "react": "^18.2.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@ttoss/config": "^1.28.1",
33
- "@ttoss/test-utils": "^1.20.3",
34
- "@ttoss/ui": "^1.30.2",
32
+ "@ttoss/config": "^1.28.2",
33
+ "@ttoss/test-utils": "^1.20.4",
34
+ "@ttoss/ui": "^1.30.4",
35
35
  "@types/jest": "^29.4.0",
36
- "jest": "^29.4.2",
36
+ "jest": "^29.4.3",
37
37
  "react": "^18.2.0",
38
- "react-hook-form": "^7.41.2",
39
- "yup": "^0.32.11"
38
+ "react-hook-form": "^7.43.2",
39
+ "yup": "^1.0.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "d4df96176c1d3fce4ebf7842de5847a618a33d9e"
44
+ "gitHead": "d07df43f2a4a997636e950f5362a7a8090705c99"
45
45
  }
@@ -38,7 +38,7 @@ export const FormFieldRadio = <TFieldValues extends FieldValues = FieldValues>({
38
38
  onChange={onChange}
39
39
  onBlur={onBlur}
40
40
  value={option.value}
41
- defaultChecked={value === option.value}
41
+ checked={value === option.value}
42
42
  name={name}
43
43
  id={id}
44
44
  {...radioProps}