anchor-ui
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -55,3 +55,3 @@ 'use strict'; | ||
style: _propTypes2.default.instanceOf(Object), | ||
/** A user's status. One of the following: ["online", "away", "offline"] */ | ||
/** An user's status. One of the following: ["online", "away", "offline"] */ | ||
status: _propTypes2.default.oneOf(['online', 'away', 'offline', '']), | ||
@@ -58,0 +58,0 @@ /** Override the styles of the status indicator */ |
{ | ||
"name": "anchor-ui", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "React Component UI Kit", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -78,3 +78,4 @@ 'use strict'; | ||
avatarStyle = _props.avatarStyle, | ||
custom = _objectWithoutProperties(_props, ['header', 'secondaryText', 'avatar', 'coverImage', 'children', 'button', 'style', 'headerStyle', 'secondaryTextStyle', 'avatarStyle']); | ||
status = _props.status, | ||
custom = _objectWithoutProperties(_props, ['header', 'secondaryText', 'avatar', 'coverImage', 'children', 'button', 'style', 'headerStyle', 'secondaryTextStyle', 'avatarStyle', 'status']); | ||
@@ -93,3 +94,8 @@ var coverBackground = { | ||
_react2.default.createElement('section', { style: _styles2.default.coverOverlay }), | ||
avatar ? _react2.default.createElement(_avatar2.default, { image: avatar, style: _getStyles2.default.avatar(avatarStyle) }) : null | ||
avatar ? _react2.default.createElement(_avatar2.default, { | ||
image: avatar, | ||
style: _getStyles2.default.avatar(avatarStyle), | ||
statusStyle: _styles2.default.status, | ||
status: status | ||
}) : null | ||
), | ||
@@ -136,3 +142,5 @@ _react2.default.createElement( | ||
/** Override the styles of the avatar element */ | ||
avatarStyle: _propTypes2.default.instanceOf(Object) | ||
avatarStyle: _propTypes2.default.instanceOf(Object), | ||
/** An user's status. One of the following: ["online", "away", "offline"] */ | ||
status: _propTypes2.default.oneOf(['online', 'away', 'offline', '']) | ||
}; | ||
@@ -148,5 +156,6 @@ Profile.defaultProps = { | ||
secondaryTextStyle: {}, | ||
avatarStyle: {} | ||
avatarStyle: {}, | ||
status: '' | ||
}; | ||
exports.default = (0, _radium2.default)(Profile); | ||
module.exports = exports['default']; |
@@ -82,4 +82,11 @@ 'use strict'; | ||
textAlign: 'center' | ||
}, | ||
status: { | ||
width: '15px', | ||
height: '15px', | ||
border: '2px solid ' + _colors2.default.white, | ||
top: '10px', | ||
right: '10px' | ||
} | ||
}; | ||
module.exports = exports['default']; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
817589
17767