Releases: thepensionsregulator/react-components
Releases · thepensionsregulator/react-components
New InHouseAdmin Card
Release includes new InHouseAdmin
card and all @tpr dependencies on layout
are peer-dependencies instead of direct dependencies.
library includes Insurer Admin card
Icons accept colors from the theme configuration
TS helpers provided as well.
<ArrowLeft cfg={{ fill: 'neutral.7' }} ... />
Form library updates include
- Default spacing on checkboxes
- Default spacing on radio buttons
Core exports a full range of colors to the cfg
type ColorsPrimary =
| 'primary.1'
| 'primary.2'
| 'primary.3'
| 'primary.4'
| 'primary.a1'
| 'primary.a2';
type ColorsNeutral =
| 'neutral.1'
| 'neutral.2'
| 'neutral.3'
| 'neutral.4'
| 'neutral.5'
| 'neutral.6'
| 'neutral.7'
| 'neutral.8'
| 'neutral.a1'
| 'neutral.a2';
type ColorsAccents = 'accents.1' | 'accents.2';
type ColorsSuccess = 'success.1';
type ColorsWarning = 'warning.1' | 'warning.a1';
type ColorsDanger = 'danger.1' | 'danger.2';
type ColorsFullRange =
| 'white'
| 'black'
| ColorsPrimary
| ColorsNeutral
| ColorsAccents
| ColorsSuccess
| ColorsWarning
| ColorsDanger;
New layout components included
- ArrowButton
- ArrowLink