Skip to content

Releases: thepensionsregulator/react-components

New InHouseAdmin Card

29 Jul 13:23
Compare
Choose a tag to compare

Release includes new InHouseAdmin card and all @tpr dependencies on layout are peer-dependencies instead of direct dependencies.

library includes Insurer Admin card

24 Jul 12:07
Compare
Choose a tag to compare

Icons accept colors from the theme configuration

22 Jun 15:06
Compare
Choose a tag to compare

TS helpers provided as well.

<ArrowLeft cfg={{ fill: 'neutral.7' }} ... />

Form library updates include

22 Jun 15:02
Compare
Choose a tag to compare
  • Default spacing on checkboxes
  • Default spacing on radio buttons

Core exports a full range of colors to the cfg

22 Jun 15:08
Compare
Choose a tag to compare
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

22 Jun 15:00
Compare
Choose a tag to compare
  • ArrowButton
  • ArrowLink