@ultraviolet/form 2.14.2 → 2.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.
@@ -36,7 +36,8 @@ const TextInputField = ({
36
36
  maxLength,
37
37
  "aria-labelledby": ariaLabelledBy,
38
38
  "aria-label": ariaLabel,
39
- autoComplete
39
+ autoComplete,
40
+ shouldUnregister
40
41
  }) => {
41
42
  const {
42
43
  getError
@@ -48,6 +49,7 @@ const TextInputField = ({
48
49
  }
49
50
  } = reactHookForm.useController({
50
51
  name,
52
+ shouldUnregister,
51
53
  rules: {
52
54
  required,
53
55
  validate: {
@@ -8,5 +8,5 @@ type TextInputFieldProps<TFieldValues extends FieldValues, TName extends FieldPa
8
8
  /**
9
9
  * This component offers a form field based on Ultraviolet UI TextInputV2 component
10
10
  */
11
- export declare const TextInputField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ validate, regex: regexes, id, className, tabIndex, onChange, placeholder, disabled, readOnly, success, helper, tooltip, label, autoFocus, required, "data-testid": dataTestId, name, onFocus, onBlur, clearable, labelDescription, type, prefix, suffix, size, loading, onRandomize, minLength, maxLength, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, autoComplete, }: TextInputFieldProps<TFieldValues, TName>) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const TextInputField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ validate, regex: regexes, id, className, tabIndex, onChange, placeholder, disabled, readOnly, success, helper, tooltip, label, autoFocus, required, "data-testid": dataTestId, name, onFocus, onBlur, clearable, labelDescription, type, prefix, suffix, size, loading, onRandomize, minLength, maxLength, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, autoComplete, shouldUnregister, }: TextInputFieldProps<TFieldValues, TName>) => import("@emotion/react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -34,7 +34,8 @@ const TextInputField = ({
34
34
  maxLength,
35
35
  "aria-labelledby": ariaLabelledBy,
36
36
  "aria-label": ariaLabel,
37
- autoComplete
37
+ autoComplete,
38
+ shouldUnregister
38
39
  }) => {
39
40
  const {
40
41
  getError
@@ -46,6 +47,7 @@ const TextInputField = ({
46
47
  }
47
48
  } = useController({
48
49
  name,
50
+ shouldUnregister,
49
51
  rules: {
50
52
  required,
51
53
  validate: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/form",
3
- "version": "2.14.2",
3
+ "version": "2.14.4",
4
4
  "description": "Ultraviolet Form",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -58,7 +58,7 @@
58
58
  "react-hook-form": "7.51.5"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/core": "7.24.6",
61
+ "@babel/core": "7.24.7",
62
62
  "@types/final-form-focus": "1.1.7",
63
63
  "@types/react": "18.3.1",
64
64
  "@types/react-dom": "18.3.0",
@@ -67,12 +67,12 @@
67
67
  "@utils/test": "0.0.1"
68
68
  },
69
69
  "dependencies": {
70
- "@babel/runtime": "7.24.6",
70
+ "@babel/runtime": "7.24.7",
71
71
  "@emotion/react": "11.11.4",
72
72
  "@emotion/styled": "11.11.5",
73
73
  "react-select": "5.8.0",
74
74
  "react-hook-form": "7.51.5",
75
- "@ultraviolet/ui": "1.55.1",
75
+ "@ultraviolet/ui": "1.55.3",
76
76
  "@ultraviolet/themes": "1.12.0"
77
77
  },
78
78
  "scripts": {