Releases: NHSDigital/nhsuk-react-components
Releases · NHSDigital/nhsuk-react-components
Release 1.1.2
🎉 New Release - 1.1.2 🎉
Changelog
- Fix to the DoDontList component, allowing custom headings to be passed.
Release 1.1.1
🎉 New Release - 1.1.1 🎉
Changelog
- Fix to the DateInput component where values were not being passed back as an object in the onChange handler.
- Allow passing of
value
anddefaultValue
to the DateInput to prepopulate the fields without using individual elements. - Fix a typing issue with the Input width prop where the
20
and30
values were not specified.
Release v1.1.0
🎉 New Release - 1.1.0 🎉
Changelog
- Added Row and Column examples to the Storybook
- Added an example of the disableErrorFromComponents prop for the Form component to the Storybook
- Added an example of a pre-populated DateInput to the Storybook
- Consistent behaviour of
label
,hint
anderror
props in Form components, each with their own respectivelabelProps
props to further customise behaviour if needed. - Fixed an issue where the
className
prop was not being passed to theWarningCallout
component. - Fixed an issue where props were not being directly passed to the
Fieldset.Legend
component. - Added optional
size
props to theFieldset.Legend
andLabel
components to allow for variable sizing (i.e."s", "m", "l", "xl"
).
Release 1.0.1
🎉 New Release - 1.0.0 🎉
Seeing as we haven't seen many issues, I thought to take the release out of the @next tag and finally publish version 1.0.0!
(We're actually now on 1.0.1 as there was a dependency still in the dependencies which should have been in devDependencies ).
Changes:
- Fix: the classNames function was being passed into itself, instead of the className variable (thanks @aiwatko !)
- Fix: the disableDefaultBehaviour prop was being passed to the SkipLink component inside of the ...rest variable, causing a React "React does not recognise the prop on a DOM element" error (thanks @lukepearson !)
- Feature: A useFormContext hook has been created to allow other packages (i.e nhsuk-react-components-extensions to be able to easily integrate into the existing Form error logic.
- Fix: The dependency @storybook/storybook-deployer has been removed from the dependencies, and now lives in the devDependencies.