@bufferapp/components
Advanced tools
Comparing version 0.4.6 to 0.4.7
# Changelog | ||
## 0.4.7 (April 6, 2017) | ||
- Remove `font-size` set on `Link` | ||
- Add `size` config to `LinkifiedText` | ||
## 0.4.6 (March 28, 2017) | ||
@@ -4,0 +9,0 @@ |
@@ -39,4 +39,4 @@ import React, { PropTypes } from 'react'; | ||
const LinkifiedText = ({ children, links }) => | ||
<Text>{calulateLinkifiedText(links, children)}</Text>; | ||
const LinkifiedText = ({ children, links, size }) => | ||
<Text size={size}>{calulateLinkifiedText(links, children)}</Text>; | ||
@@ -53,2 +53,3 @@ LinkifiedText.propTypes = { | ||
), | ||
size: PropTypes.string, | ||
}; | ||
@@ -55,0 +56,0 @@ |
@@ -20,2 +20,21 @@ import React from 'react'; | ||
)) | ||
.add('empty string', () => ( | ||
<LinkifiedText>{''}</LinkifiedText> | ||
)) | ||
.add('no links', () => ( | ||
<LinkifiedText>{'a b'}</LinkifiedText> | ||
)) | ||
.add('size: small', () => ( | ||
<LinkifiedText | ||
links={[{ | ||
rawString: 'http://t.co/0JG5Mcq', | ||
displayString: 'blog.twitter.com/2011/05/twitte…', | ||
url: 'http://blog.twitter.com/2011/05/twitter-for-mac-update.html', | ||
indices: [2, 21], | ||
}]} | ||
size={'small'} | ||
> | ||
{'a http://t.co/0JG5Mcq b'} | ||
</LinkifiedText> | ||
)) | ||
.add('two links', () => ( | ||
@@ -40,8 +59,2 @@ <LinkifiedText | ||
</LinkifiedText> | ||
)) | ||
.add('no links', () => ( | ||
<LinkifiedText>{'a b'}</LinkifiedText> | ||
)) | ||
.add('empty string', () => ( | ||
<LinkifiedText>{''}</LinkifiedText> | ||
)); |
{ | ||
"name": "@bufferapp/components", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "A shared set of UI Components", | ||
@@ -49,4 +49,4 @@ "main": "index.js", | ||
"babel-preset-stage-1": "6.22.0", | ||
"css-loader": "0.27.3", | ||
"eslint": "3.18.0", | ||
"css-loader": "0.28.0", | ||
"eslint": "3.19.0", | ||
"eslint-config-airbnb": "14.1.0", | ||
@@ -68,3 +68,3 @@ "eslint-plugin-import": "2.2.0", | ||
"storyshots": "3.2.2", | ||
"style-loader": "0.16.0" | ||
"style-loader": "0.16.1" | ||
}, | ||
@@ -71,0 +71,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
1155663
4029