@bufferapp/components
Advanced tools
Comparing version 2.3.1 to 2.3.2
# Changelog | ||
## 2.3.2 (July 20, 2018) | ||
- Add font `small` to `InputWeekday` and `InputTime` components | ||
- Remove font `mini` from `Select`component | ||
## 2.3.1 (July 18, 2018) | ||
@@ -4,0 +8,0 @@ - Add font `mini` and `small` to `Select`component |
@@ -128,2 +128,3 @@ import React from 'react'; | ||
value, | ||
fontSize, | ||
}) => | ||
@@ -144,2 +145,3 @@ <SelectWrapper minimal={minimal}> | ||
rangeSelector={!minimal} | ||
size={fontSize} | ||
/> | ||
@@ -190,2 +192,3 @@ </SelectWrapper>; | ||
displayTimeColon, | ||
fontSize, | ||
}) => { | ||
@@ -212,2 +215,3 @@ const style = { | ||
rangeSelector={!minimal} | ||
size={fontSize} | ||
/> | ||
@@ -236,2 +240,3 @@ </SelectWrapper> | ||
rangeSelector={!minimal} | ||
size={fontSize} | ||
/> | ||
@@ -243,3 +248,3 @@ </SelectWrapper> | ||
: | ||
AmPm({ disabled, minimal, onChange, submitting, value }) | ||
AmPm({ disabled, minimal, onChange, submitting, value, fontSize }) | ||
} | ||
@@ -268,2 +273,3 @@ </div> | ||
displayTimeColon: PropTypes.bool, | ||
fontSize: PropTypes.oneOf(['small']), | ||
}; | ||
@@ -270,0 +276,0 @@ |
@@ -121,2 +121,11 @@ import React from 'react'; | ||
/> | ||
)) | ||
.add('small', () => ( | ||
<InputTime | ||
input={{ | ||
onChange: action('on-change'), | ||
value: '', | ||
}} | ||
fontSize={'small'} | ||
/> | ||
)); |
@@ -37,2 +37,3 @@ import React from 'react'; | ||
}, | ||
fontSize, | ||
}) => ( | ||
@@ -46,2 +47,3 @@ <div style={style}> | ||
label={'choose days'} | ||
size={fontSize} | ||
/> | ||
@@ -64,2 +66,3 @@ </div> | ||
}), | ||
fontSize: PropTypes.oneOf(['small']), | ||
}; | ||
@@ -66,0 +69,0 @@ |
@@ -40,2 +40,11 @@ import React from 'react'; | ||
/> | ||
)) | ||
.add('small', () => ( | ||
<InputWeekday | ||
input={{ | ||
onChange: action('on-change'), | ||
value: '' | ||
}} | ||
fontSize={'small'} | ||
/> | ||
)); |
{ | ||
"name": "@bufferapp/components", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "A shared set of UI Components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,2 @@ import React from 'react'; | ||
fontFamily, | ||
fontSizeMini, | ||
fontSizeSmall, | ||
@@ -141,5 +140,2 @@ } from '../style/font'; | ||
// Sizes | ||
mini: { | ||
fontSize: fontSizeMini, | ||
}, | ||
small: { | ||
@@ -154,3 +150,2 @@ fontSize: fontSizeSmall, | ||
// Sizes | ||
mini: size === 'mini', | ||
small: size === 'small', | ||
@@ -207,3 +202,3 @@ }); | ||
hovered: PropTypes.bool, | ||
size: PropTypes.oneOf(['mini', 'small']), | ||
size: PropTypes.oneOf(['small']), | ||
}; | ||
@@ -210,0 +205,0 @@ |
@@ -103,9 +103,2 @@ import React from 'react'; | ||
)) | ||
.add('mini', () => ( | ||
<Select | ||
options={options} | ||
onChange={action('on-change')} | ||
size={'mini'} | ||
/> | ||
)) | ||
.add('small', () => ( | ||
@@ -112,0 +105,0 @@ <Select |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
946247
7129
0