Title
,SectionTitle
, andSubsectionTitle
should be replaced withHeading1
,Heading2
, andHeading3
- The
showTraining
prop has been removed fromBrandedNavBar
. Useenvironment="training"
instead.
This shouldn't cause an issue if you're interacting with zIndex via properties, but if you were directly importing the theme then any reference to theme.zIndex should be replaced with theme.zIndices.
The upgrade in v5 didn't take due to a rollup setting, so if you still haven't added @nulogy/icons with yarn add @nulogy/icons
then now is the time.
@nulogy/icons is now a peerDependency so you will need to add it your projects dependencies:
yarn add @nulogy/icons
or
npm i @nulogy/icons
This was done to support using new icons without having to upgrade @nulogy/components.
If you are using the AsyncSelect component in your project, please update the onChange handler if you are using it. onChange
now returns the complete option object that is selected rather than just the string value.
```
onChange = (value) => {}
//becomes
onChange = ({value, label}). => {}
````
If you needed to use the AsyncSelect as a controlled component, this was broken in previous verisons but now you can do so by using the onChange
and value
prop.
MonthPicker and MonthRange components were removed from this version. If you need these components or are planning to use them soon, please reach out to DesignOps.
Breaking changes are limited to the TimePicker component which was redesigned. The behaviour of that component was redesigned and may break some e2e tests, but otherwise there are no code changes to make.
Styled-components (v5) is now a peerDependency so you will need to add it your projects dependencies:
yarn add styled-components
npm i styled-components
All components must be wrapped in an component. This was already an installation step in the README, but it is now required and you will see undefined theme or color errors if this step is not already done.
All tests using NDS components must be wrapped in the NDSProvider as well. You can make a custom helper that can be reused throughout your app to wrap components in the Providers you need.
You can use the render we use as a guide to write your own