@ultraviolet/form 3.10.1 → 3.10.2
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.
|
@@ -42,7 +42,9 @@ const TextInputField = ({
|
|
|
42
42
|
control,
|
|
43
43
|
role,
|
|
44
44
|
"aria-live": ariaLive,
|
|
45
|
-
"aria-atomic": ariaAtomic
|
|
45
|
+
"aria-atomic": ariaAtomic,
|
|
46
|
+
onKeyDown,
|
|
47
|
+
onKeyUp
|
|
46
48
|
}) => {
|
|
47
49
|
const {
|
|
48
50
|
getError
|
|
@@ -82,6 +84,6 @@ const TextInputField = ({
|
|
|
82
84
|
onChange?.(event.target.value);
|
|
83
85
|
}, onFocus: (event) => {
|
|
84
86
|
onFocus?.(event);
|
|
85
|
-
}, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value === void 0 ? "" : field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic });
|
|
87
|
+
}, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value === void 0 ? "" : field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic, onKeyDown, onKeyUp });
|
|
86
88
|
};
|
|
87
89
|
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, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic, }: 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, onKeyDown, onKeyUp, }: TextInputFieldProps<TFieldValues, TFieldName>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -40,7 +40,9 @@ const TextInputField = ({
|
|
|
40
40
|
control,
|
|
41
41
|
role,
|
|
42
42
|
"aria-live": ariaLive,
|
|
43
|
-
"aria-atomic": ariaAtomic
|
|
43
|
+
"aria-atomic": ariaAtomic,
|
|
44
|
+
onKeyDown,
|
|
45
|
+
onKeyUp
|
|
44
46
|
}) => {
|
|
45
47
|
const {
|
|
46
48
|
getError
|
|
@@ -80,7 +82,7 @@ const TextInputField = ({
|
|
|
80
82
|
onChange?.(event.target.value);
|
|
81
83
|
}, onFocus: (event) => {
|
|
82
84
|
onFocus?.(event);
|
|
83
|
-
}, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value === void 0 ? "" : field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic });
|
|
85
|
+
}, placeholder, readOnly, required, success, tabIndex, tooltip, type, value: field.value === void 0 ? "" : field.value, id, prefix, suffix, size, onRandomize, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, autoComplete, role, "aria-live": ariaLive, "aria-atomic": ariaAtomic, onKeyDown, onKeyUp });
|
|
84
86
|
};
|
|
85
87
|
export {
|
|
86
88
|
TextInputField
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/form",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Ultraviolet Form",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-hook-form": "7.53.1",
|
|
73
73
|
"react-select": "5.8.1",
|
|
74
74
|
"@ultraviolet/themes": "1.14.2",
|
|
75
|
-
"@ultraviolet/ui": "1.75.
|
|
75
|
+
"@ultraviolet/ui": "1.75.1"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts",
|