@ultraviolet/form 3.15.6 → 3.15.7
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/components/SelectInputFieldV2/index.cjs +3 -2
- package/dist/components/SelectInputFieldV2/index.d.ts +2 -2
- package/dist/components/SelectInputFieldV2/index.js +3 -2
- package/dist/components/UnitInputField/index.cjs +3 -2
- package/dist/components/UnitInputField/index.d.ts +2 -2
- package/dist/components/UnitInputField/index.js +3 -2
- package/package.json +2 -2
|
@@ -40,7 +40,8 @@ const SelectInputFieldV2 = ({
|
|
|
40
40
|
shouldUnregister = false,
|
|
41
41
|
control,
|
|
42
42
|
validate,
|
|
43
|
-
tooltip
|
|
43
|
+
tooltip,
|
|
44
|
+
dropdownAlign
|
|
44
45
|
}) => {
|
|
45
46
|
const {
|
|
46
47
|
field,
|
|
@@ -68,6 +69,6 @@ const SelectInputFieldV2 = ({
|
|
|
68
69
|
onBlur?.(event);
|
|
69
70
|
}, placeholder, readOnly, multiselect, value: field.value, placeholderSearch, helper, emptyState, searchable, clearable, descriptionDirection, footer, labelDescription, error: getError({
|
|
70
71
|
label: label ?? ariaLabel ?? name
|
|
71
|
-
}, error), success, loadMore, isLoading, selectAll, selectAllGroup, autofocus, optionalInfoPlacement, "aria-label": ariaLabel, onChange: handleChange, tooltip });
|
|
72
|
+
}, error), success, loadMore, isLoading, selectAll, selectAllGroup, autofocus, optionalInfoPlacement, "aria-label": ariaLabel, onChange: handleChange, tooltip, dropdownAlign });
|
|
72
73
|
};
|
|
73
74
|
exports.SelectInputFieldV2 = SelectInputFieldV2;
|
|
@@ -2,6 +2,6 @@ import { SelectInputV2 } from '@ultraviolet/ui';
|
|
|
2
2
|
import { type ComponentProps } from 'react';
|
|
3
3
|
import type { FieldPath, FieldValues } from 'react-hook-form';
|
|
4
4
|
import type { BaseFieldProps } from '../../types';
|
|
5
|
-
type SelectInputFieldV2Props<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues>> = BaseFieldProps<TFieldValues, TFieldName> & Pick<ComponentProps<typeof SelectInputV2>, 'placeholder' | 'placeholderSearch' | 'label' | 'helper' | 'options' | 'emptyState' | 'searchable' | 'readOnly' | 'clearable' | 'size' | 'multiselect' | 'required' | 'descriptionDirection' | 'footer' | 'labelDescription' | 'success' | 'loadMore' | 'isLoading' | 'selectAll' | 'selectAllGroup' | 'autofocus' | 'data-testid' | 'id' | 'onBlur' | 'aria-label' | 'className' | 'onFocus' | 'optionalInfoPlacement' | 'disabled' | 'tooltip'>;
|
|
6
|
-
export declare const SelectInputFieldV2: <TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ autofocus, className, id, label, onFocus, onBlur, placeholder, readOnly, required, size, "data-testid": dataTestId, disabled, placeholderSearch, helper, options, emptyState, onChange, searchable, clearable, multiselect, descriptionDirection, footer, labelDescription, success, loadMore, isLoading, selectAll, selectAllGroup, name, "aria-label": ariaLabel, optionalInfoPlacement, shouldUnregister, control, validate, tooltip, }: SelectInputFieldV2Props<TFieldValues, TFieldName>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
type SelectInputFieldV2Props<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues>> = BaseFieldProps<TFieldValues, TFieldName> & Pick<ComponentProps<typeof SelectInputV2>, 'placeholder' | 'placeholderSearch' | 'label' | 'helper' | 'options' | 'emptyState' | 'searchable' | 'readOnly' | 'clearable' | 'size' | 'multiselect' | 'required' | 'descriptionDirection' | 'footer' | 'labelDescription' | 'success' | 'loadMore' | 'isLoading' | 'selectAll' | 'selectAllGroup' | 'autofocus' | 'data-testid' | 'id' | 'onBlur' | 'aria-label' | 'className' | 'onFocus' | 'optionalInfoPlacement' | 'disabled' | 'tooltip' | 'dropdownAlign'>;
|
|
6
|
+
export declare const SelectInputFieldV2: <TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ autofocus, className, id, label, onFocus, onBlur, placeholder, readOnly, required, size, "data-testid": dataTestId, disabled, placeholderSearch, helper, options, emptyState, onChange, searchable, clearable, multiselect, descriptionDirection, footer, labelDescription, success, loadMore, isLoading, selectAll, selectAllGroup, name, "aria-label": ariaLabel, optionalInfoPlacement, shouldUnregister, control, validate, tooltip, dropdownAlign, }: SelectInputFieldV2Props<TFieldValues, TFieldName>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -38,7 +38,8 @@ const SelectInputFieldV2 = ({
|
|
|
38
38
|
shouldUnregister = false,
|
|
39
39
|
control,
|
|
40
40
|
validate,
|
|
41
|
-
tooltip
|
|
41
|
+
tooltip,
|
|
42
|
+
dropdownAlign
|
|
42
43
|
}) => {
|
|
43
44
|
const {
|
|
44
45
|
field,
|
|
@@ -66,7 +67,7 @@ const SelectInputFieldV2 = ({
|
|
|
66
67
|
onBlur?.(event);
|
|
67
68
|
}, placeholder, readOnly, multiselect, value: field.value, placeholderSearch, helper, emptyState, searchable, clearable, descriptionDirection, footer, labelDescription, error: getError({
|
|
68
69
|
label: label ?? ariaLabel ?? name
|
|
69
|
-
}, error), success, loadMore, isLoading, selectAll, selectAllGroup, autofocus, optionalInfoPlacement, "aria-label": ariaLabel, onChange: handleChange, tooltip });
|
|
70
|
+
}, error), success, loadMore, isLoading, selectAll, selectAllGroup, autofocus, optionalInfoPlacement, "aria-label": ariaLabel, onChange: handleChange, tooltip, dropdownAlign });
|
|
70
71
|
};
|
|
71
72
|
export {
|
|
72
73
|
SelectInputFieldV2
|
|
@@ -25,7 +25,8 @@ const UnitInputField = ({
|
|
|
25
25
|
shouldUnregister = false,
|
|
26
26
|
validate,
|
|
27
27
|
control,
|
|
28
|
-
optionName
|
|
28
|
+
optionName,
|
|
29
|
+
dropdownAlign
|
|
29
30
|
}) => {
|
|
30
31
|
const {
|
|
31
32
|
getError
|
|
@@ -61,6 +62,6 @@ const UnitInputField = ({
|
|
|
61
62
|
}, onChangeUnitValue: (event) => {
|
|
62
63
|
unitField.onChange(event);
|
|
63
64
|
onChangeUnitValue?.(event);
|
|
64
|
-
}, value: valueField.value, unitValue: unitField.value, selectInputWidth, disabled, options, label, className, width, placeholderUnit });
|
|
65
|
+
}, value: valueField.value, unitValue: unitField.value, selectInputWidth, disabled, options, label, className, width, placeholderUnit, dropdownAlign });
|
|
65
66
|
};
|
|
66
67
|
exports.UnitInputField = UnitInputField;
|
|
@@ -2,10 +2,10 @@ import { UnitInput } from '@ultraviolet/ui';
|
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import type { FieldPath, FieldValues } from 'react-hook-form';
|
|
4
4
|
import type { BaseFieldProps } from '../../types';
|
|
5
|
-
type UnitInputFieldProps<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues>> = BaseFieldProps<TFieldValues, TFieldName> & Pick<ComponentProps<typeof UnitInput>, 'id' | 'name' | 'className' | 'data-testid' | 'disabled' | 'value' | 'max' | 'min' | 'options' | 'placeholder' | 'placeholderUnit' | 'size' | 'unitValue' | 'required' | 'width' | 'helper' | 'selectInputWidth'> & {
|
|
5
|
+
type UnitInputFieldProps<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues>> = BaseFieldProps<TFieldValues, TFieldName> & Pick<ComponentProps<typeof UnitInput>, 'id' | 'name' | 'className' | 'data-testid' | 'disabled' | 'value' | 'max' | 'min' | 'options' | 'placeholder' | 'placeholderUnit' | 'size' | 'unitValue' | 'required' | 'width' | 'helper' | 'selectInputWidth' | 'dropdownAlign'> & {
|
|
6
6
|
onChangeUnitValue?: ComponentProps<typeof UnitInput>['onChangeUnitValue'];
|
|
7
7
|
label: string;
|
|
8
8
|
optionName?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const UnitInputField: <TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ id, name, max, min, size, placeholder, placeholderUnit, onChange, onChangeUnitValue, disabled, options, className, label, required, width, selectInputWidth, helper, shouldUnregister, validate, control, optionName, }: UnitInputFieldProps<TFieldValues, TFieldName>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const UnitInputField: <TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ id, name, max, min, size, placeholder, placeholderUnit, onChange, onChangeUnitValue, disabled, options, className, label, required, width, selectInputWidth, helper, shouldUnregister, validate, control, optionName, dropdownAlign, }: UnitInputFieldProps<TFieldValues, TFieldName>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -23,7 +23,8 @@ const UnitInputField = ({
|
|
|
23
23
|
shouldUnregister = false,
|
|
24
24
|
validate,
|
|
25
25
|
control,
|
|
26
|
-
optionName
|
|
26
|
+
optionName,
|
|
27
|
+
dropdownAlign
|
|
27
28
|
}) => {
|
|
28
29
|
const {
|
|
29
30
|
getError
|
|
@@ -59,7 +60,7 @@ const UnitInputField = ({
|
|
|
59
60
|
}, onChangeUnitValue: (event) => {
|
|
60
61
|
unitField.onChange(event);
|
|
61
62
|
onChangeUnitValue?.(event);
|
|
62
|
-
}, value: valueField.value, unitValue: unitField.value, selectInputWidth, disabled, options, label, className, width, placeholderUnit });
|
|
63
|
+
}, value: valueField.value, unitValue: unitField.value, selectInputWidth, disabled, options, label, className, width, placeholderUnit, dropdownAlign });
|
|
63
64
|
};
|
|
64
65
|
export {
|
|
65
66
|
UnitInputField
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/form",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.7",
|
|
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.55.0",
|
|
73
73
|
"react-select": "5.10.0",
|
|
74
74
|
"@ultraviolet/themes": "1.17.0",
|
|
75
|
-
"@ultraviolet/ui": "1.92.
|
|
75
|
+
"@ultraviolet/ui": "1.92.5"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts",
|