Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

v3.0.0

Choose a tag to compare

@michaeltaranto michaeltaranto released this 18 Jul 06:24
· 538 commits to master since this release

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: label is the label for the field, and labelProps are added to the label element (when specifying a label you must provide an id in the inputProps so the label can reference the field),
    • Input: inputProps are added to the input element,
    • Help: help is the help text for the field, and helpProps are added to the help text element,
    • Message: message is the error/success/info messages for the field, and messageProps are added to the element.
  • 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