This commit is contained in:
mgabdev
2020-04-01 23:17:21 -04:00
parent 1a33759e19
commit 80d41b8d94
50 changed files with 1771 additions and 610 deletions

View File

@@ -43,6 +43,7 @@ export default class Text extends PureComponent {
weight: PropTypes.oneOf(Object.keys(WEIGHTS)),
align: PropTypes.oneOf(Object.keys(ALIGNMENTS)),
underline: PropTypes.bool,
badge: PropTypes.bool,
htmlFor: PropTypes.string,
}
@@ -63,13 +64,18 @@ export default class Text extends PureComponent {
weight,
underline,
align,
htmlFor
htmlFor,
badge
} = this.props
const classes = cx(className, {
default: 1,
text: 1,
radiusSmall: badge,
lineHeight15: badge,
px5: badge,
colorPrimary: color === COLORS.primary,
colorSecondary: color === COLORS.secondary,
colorBrand: color === COLORS.brand,