@ultraviolet/form 3.0.1 → 3.0.3

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.
@@ -39,7 +39,10 @@ const TextInputField = ({
39
39
  autoComplete,
40
40
  shouldUnregister,
41
41
  validate,
42
- control
42
+ control,
43
+ role,
44
+ "aria-live": ariaLive,
45
+ "aria-atomic": ariaAtomic
43
46
  }) => {
44
47
  const {
45
48
  getError
@@ -79,6 +82,6 @@ const TextInputField = ({
79
82
  onChange?.(event);
80
83
  }, onFocus: (event) => {
81
84
  onFocus?.(event);
82
- }, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete });
85
+ }, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic });
83
86
  };
84
87
  exports.TextInputField = TextInputField;
@@ -8,5 +8,5 @@ type TextInputFieldProps<TFieldValues extends FieldValues, TFieldName extends Fi
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, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ 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, validate, control, }: TextInputFieldProps<TFieldValues, TFieldName>) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const TextInputField: <TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ 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, validate, control, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic, }: TextInputFieldProps<TFieldValues, TFieldName>) => import("@emotion/react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -37,7 +37,10 @@ const TextInputField = ({
37
37
  autoComplete,
38
38
  shouldUnregister,
39
39
  validate,
40
- control
40
+ control,
41
+ role,
42
+ "aria-live": ariaLive,
43
+ "aria-atomic": ariaAtomic
41
44
  }) => {
42
45
  const {
43
46
  getError
@@ -77,7 +80,7 @@ const TextInputField = ({
77
80
  onChange?.(event);
78
81
  }, onFocus: (event) => {
79
82
  onFocus?.(event);
80
- }, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete });
83
+ }, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic });
81
84
  };
82
85
  export {
83
86
  TextInputField
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/form",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Ultraviolet Form",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -72,8 +72,8 @@
72
72
  "@emotion/styled": "11.11.5",
73
73
  "react-select": "5.8.0",
74
74
  "react-hook-form": "7.52.1",
75
- "@ultraviolet/ui": "1.58.0",
76
- "@ultraviolet/themes": "1.12.1"
75
+ "@ultraviolet/themes": "1.12.1",
76
+ "@ultraviolet/ui": "1.59.1"
77
77
  },
78
78
  "scripts": {
79
79
  "build:profile": "npx vite-bundle-visualizer -c vite.config.ts",