@bufferapp/components
Advanced tools
Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "@bufferapp/components", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "A shared set of UI Components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ import React, { PropTypes } from 'react'; | ||
const Text = ({ children, size, weight }) => { | ||
const Text = ({ children, size, weight, color }) => { | ||
const classes = classNames(styles, 'text', { | ||
@@ -13,2 +13,3 @@ extraSmall: size === 'extra-small', | ||
bold: weight === 'bold', | ||
white: color === 'white', | ||
}); | ||
@@ -22,6 +23,7 @@ return ( | ||
children: PropTypes.node, | ||
size: PropTypes.oneOf(['large', 'small']), | ||
size: PropTypes.oneOf(['large', 'small', 'extra-small']), | ||
weight: PropTypes.oneOf(['bold', 'thin']), | ||
color: PropTypes.oneOf(['white']), | ||
}; | ||
export default Text; |
@@ -25,2 +25,6 @@ import React from 'react'; | ||
<Text weight={'thin'}>{text}</Text> | ||
)) | ||
.add('White', () => ( | ||
<Text color={'white'}>{text}</Text> | ||
)); | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
341084
1699