@ultraviolet/form 3.7.1 → 3.7.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.
@@ -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' | 'onChange' | 'id' | 'onBlur' | 'aria-label' | 'className' | 'onFocus' | 'optionalInfoPlacement' | 'disabled' | 'tooltip'>;
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
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;
7
7
  export {};
@@ -70,8 +70,8 @@ const TextInputField = ({
70
70
  });
71
71
  return /* @__PURE__ */ jsxRuntime.jsx(ui.TextInputV2, { autoFocus, className, clearable, "data-testid": dataTestId, disabled, error: getError({
72
72
  regex: regexes,
73
- // minLength,
74
- // maxLength,
73
+ minLength,
74
+ maxLength,
75
75
  label: label ?? "",
76
76
  value: field.value
77
77
  }, error), helper, label, loading, labelDescription, minLength, maxLength, name, onBlur: (event) => {
@@ -68,8 +68,8 @@ const TextInputField = ({
68
68
  });
69
69
  return /* @__PURE__ */ jsx(TextInputV2, { autoFocus, className, clearable, "data-testid": dataTestId, disabled, error: getError({
70
70
  regex: regexes,
71
- // minLength,
72
- // maxLength,
71
+ minLength,
72
+ maxLength,
73
73
  label: label ?? "",
74
74
  value: field.value
75
75
  }, error), helper, label, loading, labelDescription, minLength, maxLength, name, onBlur: (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/form",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "description": "Ultraviolet Form",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -55,10 +55,10 @@
55
55
  "@emotion/styled": "11.13.0",
56
56
  "react": "18.x",
57
57
  "react-dom": "18.x",
58
- "react-hook-form": "7.52.1"
58
+ "react-hook-form": "7.52.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/core": "7.24.9",
61
+ "@babel/core": "7.25.2",
62
62
  "@types/final-form-focus": "1.1.7",
63
63
  "@types/react": "18.3.3",
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.8",
70
+ "@babel/runtime": "7.25.0",
71
71
  "@emotion/react": "11.13.0",
72
72
  "@emotion/styled": "11.13.0",
73
73
  "react-select": "5.8.0",
74
- "react-hook-form": "7.52.1",
75
- "@ultraviolet/ui": "1.67.1",
74
+ "react-hook-form": "7.52.2",
75
+ "@ultraviolet/ui": "1.67.2",
76
76
  "@ultraviolet/themes": "1.12.4"
77
77
  },
78
78
  "scripts": {