This repository was archived by the owner on Sep 14, 2021. It is now read-only.
v3.0.0
Buttons
BlueButton and PinkButton deprecated in favour of Button with a colour property that accepts the string values "pink" or "blue", eg.
- <BlueButton />
+ <Button colour="blue" />TextField
TextField(and consuming components, eg.EmailField) has updated api to support configuring internal elements. Configurable elements include:- Label:
labelis the label for the field, andlabelPropsare added to the label element (when specifying alabelyou must provide anidin theinputPropsso the label can reference the field), - Input:
inputPropsare added to the input element, - Help:
helpis the help text for the field, andhelpPropsare added to the help text element, - Message:
messageis the error/success/info messages for the field, andmessagePropsare added to the element.
- Label:
- Error messages now display in place of help text when both are specified together.
ESLint
Upgraded eslint and eslint-plugin-react to enforce more consistent code patterns