react-stickerpipe
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -19,6 +19,2 @@ 'use strict'; | ||
var _defaultColors = require('../default-colors'); | ||
var _defaultColors2 = _interopRequireDefault(_defaultColors); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -39,4 +35,2 @@ | ||
var color = Object.assign(_defaultColors2.default, colors); | ||
return _react2.default.createElement( | ||
@@ -72,3 +66,3 @@ 'section', | ||
{ onClick: toggleShop, className: 'button-shop' }, | ||
_react2.default.createElement(_iconAdd2.default, { color: shop ? color.primary : null }) | ||
_react2.default.createElement(_iconAdd2.default, { color: shop ? colors.primary : null }) | ||
) | ||
@@ -75,0 +69,0 @@ ) |
@@ -25,6 +25,2 @@ 'use strict'; | ||
var _defaultColors = require('../default-colors'); | ||
var _defaultColors2 = _interopRequireDefault(_defaultColors); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -93,4 +89,2 @@ | ||
var color = Object.assign(_defaultColors2.default, colors); | ||
return _react2.default.createElement( | ||
@@ -101,6 +95,6 @@ 'section', | ||
'div', | ||
{ className: 'preview-header', style: { backgroundColor: color.primary } }, | ||
{ className: 'preview-header', style: { backgroundColor: colors.primary } }, | ||
_react2.default.createElement( | ||
'h1', | ||
{ style: { color: color.secondary } }, | ||
{ style: { color: colors.secondary } }, | ||
preview.title | ||
@@ -111,3 +105,3 @@ ), | ||
{ onClick: closePreview, className: 'button-close' }, | ||
_react2.default.createElement(_iconClose2.default, { color: color.secondary }) | ||
_react2.default.createElement(_iconClose2.default, { color: colors.secondary }) | ||
) | ||
@@ -126,3 +120,3 @@ ), | ||
{ onClick: this.purchasePack, className: 'button-purchase' }, | ||
_react2.default.createElement(_iconPurchase2.default, { color: color.primary }) | ||
_react2.default.createElement(_iconPurchase2.default, { color: colors.primary }) | ||
) | ||
@@ -129,0 +123,0 @@ ) |
@@ -130,2 +130,3 @@ 'use strict'; | ||
stickerPacks = _state.stickerPacks; | ||
var colors = this.props.colors; | ||
@@ -157,3 +158,4 @@ | ||
onPurchase: this.onPurchase, | ||
closePreview: this.closePreview | ||
closePreview: this.closePreview, | ||
colors: colors | ||
}) : null | ||
@@ -168,3 +170,7 @@ ); | ||
StickerShop.propTypes = { | ||
getMyPacks: _react.PropTypes.func.isRequired | ||
getMyPacks: _react.PropTypes.func.isRequired, | ||
colors: _react.PropTypes.shape({ | ||
primary: _react.PropTypes.string.isRequired, | ||
secondary: _react.PropTypes.string.isRequired | ||
}) | ||
}; | ||
@@ -171,0 +177,0 @@ StickerShop.contextTypes = { |
@@ -37,2 +37,6 @@ 'use strict'; | ||
var _defaultColors = require('./default-colors'); | ||
var _defaultColors2 = _interopRequireDefault(_defaultColors); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -188,3 +192,4 @@ | ||
sendSticker = _props.sendSticker, | ||
toggleButton = _props.toggleButton; | ||
toggleButton = _props.toggleButton, | ||
colors = _props.colors; | ||
var _state = this.state, | ||
@@ -196,2 +201,4 @@ stickerPacks = _state.stickerPacks, | ||
var mergedColors = Object.assign(_defaultColors2.default, colors); | ||
return _react2.default.createElement( | ||
@@ -206,3 +213,3 @@ 'section', | ||
pack && pack.stickers && !shop ? _react2.default.createElement(_stickerPack2.default, { pack: pack, sendSticker: sendSticker }) : null, | ||
shop ? _react2.default.createElement(_stickerShop2.default, { getMyPacks: this.getMyPacks }) : null, | ||
shop ? _react2.default.createElement(_stickerShop2.default, { getMyPacks: this.getMyPacks, colors: mergedColors }) : null, | ||
_react2.default.createElement(_myStickerPacks2.default, { | ||
@@ -212,3 +219,4 @@ stickerPacks: stickerPacks, | ||
toggleShop: this.toggleShop, | ||
shop: shop | ||
shop: shop, | ||
colors: mergedColors | ||
}) | ||
@@ -238,3 +246,7 @@ ); | ||
}), | ||
toggleButton: _react2.default.PropTypes.element | ||
toggleButton: _react2.default.PropTypes.element, | ||
colors: _react.PropTypes.shape({ | ||
primary: _react.PropTypes.string.isRequired, | ||
secondary: _react.PropTypes.string.isRequired | ||
}) | ||
}; | ||
@@ -241,0 +253,0 @@ StickerMenu.childContextTypes = { |
{ | ||
"name": "react-stickerpipe", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "React Component for StickerPipe API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
42000
22
882