Releases: neolution-ch/react-hook-form-components
Releases · neolution-ch/react-hook-form-components
Release 3.15.1
Fix
*visibility on a required field label, whether the label is empty.DatePickerInputselector whenonClickOutsidefunction is triggered.
Release 3.15.0
Added
- support to specify
innerRefintoStaticTypeaheadInputandAsyncTypeaheadInput.
Release 3.14.0
Added
- support into
requiredFieldsproperty ofFormcomponent, for nested objects and arrays. formhelper functions.countryMenuWidthproperty toTelephoneNumberInputin order to customize the country menu width.
Fixed
-
TelephoneNumberInputcountries order, in order to be alphabetically sorted. -
Required field label on
FormGroupLayoutLabel,ColorPicker,TelephoneNumberInput,TypeaheadTextField(henceStaticTypeaheadInputandAsyncTypeaheadInput) in order to display * also on nested and array fields.requiredFieldscan still accept aFieldPath<T>[]- In order to be complaint with
FieldPathreact-hook-form type (object.${number}.property) array properties provide a wildcard:
requiredFields = [ `object`, `object.nestedObjects`, `objects.*.property`, `object.nestedObject.property`, `object.nestedObjects.*.property`, ];
is going to consider as required:
name="object" name="object.nestedObjects.0", "object.nestedObjects.1", etc. name="objects.0.property", name="objects.1.property", etc. name="object.nestedObject.property" name="object.nestedObjects.0.property", name="object.nestedObjects.1.property", etc.
Release 3.13.1
Fixed
- Open menu on search country input clear for
TelephoneNumberInput
Release 3.13.0
Fixed
- country labels in search country input for
TelephoneNumberInputincludes also national prefix. - Clicking on clear icon in search country input for
TelephoneNumberInputwill automatically open the select menu.
Added
pinnedCountriesproperty inTelephoneNumberInputwhich allows to pin some countries in the top of the list.
Release 3.12.0
Added
i18n-iso-countriesrequired peer dependencies.TelephoneNumberInputwhich helps in order to select nationality and national number.
-
It's needed to include icons style.
import "node_modules/flag-icons/css/flag-icons.min.css";
-
Labels are by default the country code. In order to use localized names, you need to register locale on your own
Locale is automatically recognized if only one is registered on your project. Otherwise you need to provide thelocaleproperty with the desidered locale.import { registerLocale } from "i18n-iso-countries"; import countriesEn from "i18n-iso-countries/langs/en.json"; registerLocale(countriesEn);
-
for
yupvalidation, it's possible to use utilities fromgoogle-libphonenumber.
Release 3.11.2
Fixed
RatingInputcontrolled/uncontrolled state warning by ensuring value prop is always defined.
Release 3.11.1
Fixed
StaticTypeaheadInputandAsyncTypeaheadInputhighlighted suggestions, in order to match the entire word of the input value.
Release 3.11.0
Added
RatingInputcomponent
Release 3.10.2
Fixed
- fix ref assignment for
StaticTypeaheadInputand ndAsyncTypeaheadInputin order to redirectinput fieldin case of error