@eymail/components
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@eymail/components", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "EyeMail Components", | ||
"license": "MIT", | ||
"main": "src/index.js", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
@@ -13,3 +13,3 @@ "build": "babel src --out-dir lib", | ||
"lint:quiet": "npm run lint -- --quiet", | ||
"prepublish-disabled": "npm run clean && npm run build", | ||
"prepublish": "npm run clean && npm run build", | ||
"prettier": "prettier \"**/*.@(js|json)\"", | ||
@@ -31,5 +31,5 @@ "prettier:write": "npm run prettier -- --write", | ||
"@babel/core": "^7.4.3", | ||
"@babel/plugin-proposal-class-properties": "^7.4.0", | ||
"@babel/preset-env": "^7.4.3", | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-eslint": "^10.0.1", | ||
"eslint": "^5.16.0", | ||
@@ -43,3 +43,4 @@ "eslint-config-opencollective": "^1.5.0", | ||
"rimraf": "^2.6.3" | ||
} | ||
}, | ||
"gitHead": "562c8cf8c907a65fb1cb4cb0636b20896a7a176b" | ||
} |
@@ -67,2 +67,2 @@ const _ = require('lodash'); | ||
export default BaseBlock; | ||
module.exports = BaseBlock; |
@@ -47,2 +47,2 @@ const React = require('react'); | ||
export default Bubble; | ||
module.exports = Bubble; |
@@ -51,2 +51,2 @@ const React = require('react'); | ||
export default Content; | ||
module.exports = Content; |
@@ -22,2 +22,2 @@ const React = require('react'); | ||
export default Image; | ||
module.exports = Image; |
@@ -9,2 +9,2 @@ const React = require('react'); | ||
export default Block; | ||
module.exports = Block; |
@@ -64,2 +64,2 @@ const React = require('react'); | ||
export default Button; | ||
module.exports = Button; |
@@ -42,2 +42,2 @@ const _ = require('lodash'); | ||
export default CenteredBlock; | ||
module.exports = CenteredBlock; |
@@ -30,2 +30,2 @@ const React = require('react'); | ||
export default Container; | ||
module.exports = Container; |
@@ -26,2 +26,2 @@ const React = require('react'); | ||
export default Cta; | ||
module.exports = Cta; |
@@ -6,2 +6,2 @@ const Divider = require('./simple'); | ||
export default Divider; | ||
module.exports = Divider; |
@@ -41,2 +41,2 @@ const React = require('react'); | ||
export default LineDivider; | ||
module.exports = LineDivider; |
@@ -33,2 +33,2 @@ const React = require('react'); | ||
export default SimpleDivider; | ||
module.exports = SimpleDivider; |
@@ -8,4 +8,2 @@ const React = require('react'); | ||
class FullSizeImage extends SingleImage { | ||
static defaultProps = SingleImage.defaultProps; | ||
imgProps() { | ||
@@ -25,2 +23,4 @@ const styles = Stylesheet.get(); | ||
export default FullSizeImage; | ||
FullSizeImage.defaultProps = SingleImage.defaultProps; | ||
module.exports = FullSizeImage; |
@@ -6,2 +6,2 @@ const Image = require('./single'); | ||
export default Image; | ||
module.exports = Image; |
@@ -9,17 +9,2 @@ const _ = require('lodash'); | ||
class SingleImage extends React.Component { | ||
static propTypes = { | ||
src: PropTypes.string.isRequired, | ||
alt: PropTypes.string, | ||
width: PropTypes.string, | ||
height: PropTypes.string, | ||
className: PropTypes.string, | ||
imgStyle: PropTypes.object, | ||
}; | ||
static defaultProps = { | ||
alt: '', | ||
className: 'singleImage', | ||
imgStyle: {}, | ||
}; | ||
imgStyle() { | ||
@@ -51,2 +36,17 @@ const baseStyle = { display: 'block' }; | ||
export default SingleImage; | ||
SingleImage.propTypes = { | ||
src: PropTypes.string.isRequired, | ||
alt: PropTypes.string, | ||
width: PropTypes.string, | ||
height: PropTypes.string, | ||
className: PropTypes.string, | ||
imgStyle: PropTypes.object, | ||
}; | ||
SingleImage.defaultProps = { | ||
alt: '', | ||
className: 'singleImage', | ||
imgStyle: {}, | ||
}; | ||
module.exports = SingleImage; |
@@ -33,2 +33,2 @@ const React = require('react'); | ||
export default Section; | ||
module.exports = Section; |
@@ -21,2 +21,2 @@ const React = require('react'); | ||
export default Headline1; | ||
module.exports = Headline1; |
@@ -21,2 +21,2 @@ const React = require('react'); | ||
export default Headline2; | ||
module.exports = Headline2; |
@@ -21,2 +21,2 @@ const React = require('react'); | ||
export default Headline3; | ||
module.exports = Headline3; |
@@ -11,2 +11,2 @@ const React = require('react'); | ||
export default Text; | ||
module.exports = Text; |
@@ -33,2 +33,2 @@ const _ = require('lodash'); | ||
export default Link; | ||
module.exports = Link; |
@@ -28,2 +28,2 @@ const _ = require('lodash'); | ||
export default Paragraph; | ||
module.exports = Paragraph; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
96433
55
1652
2