Skip to content

Releases: NHSDigital/nhsuk-react-components

Release 1.1.2

07 May 12:43
Compare
Choose a tag to compare

🎉 New Release - 1.1.2 🎉

Changelog

  • Fix to the DoDontList component, allowing custom headings to be passed.

Release 1.1.1

05 May 13:01
Compare
Choose a tag to compare

🎉 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 and defaultValue to the DateInput to prepopulate the fields without using individual elements.
  • Fix a typing issue with the Input width prop where the 20 and 30 values were not specified.

Release v1.1.0

28 Apr 15:55
12d063b
Compare
Choose a tag to compare

🎉 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 and error props in Form components, each with their own respective labelProps props to further customise behaviour if needed.
  • Fixed an issue where the className prop was not being passed to the WarningCallout component.
  • Fixed an issue where props were not being directly passed to the Fieldset.Legend component.
  • Added optional size props to the Fieldset.Legend and Label components to allow for variable sizing (i.e. "s", "m", "l", "xl").

Release 1.0.1

01 Apr 15:29
Compare
Choose a tag to compare

🎉 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.