beem-component 1.6.5 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc
CHANGED
|
@@ -149,7 +149,7 @@ BmModal.Footer = _styledComponents.default.div(_templateObject7 || (_templateObj
|
|
|
149
149
|
BmModal.propTypes = {
|
|
150
150
|
size: _propTypes.default.string,
|
|
151
151
|
centered: _propTypes.default.bool,
|
|
152
|
-
show: _propTypes.default.bool
|
|
152
|
+
show: _propTypes.default.bool,
|
|
153
153
|
onHide: _propTypes.default.func.isRequired,
|
|
154
154
|
closeButton: _propTypes.default.bool
|
|
155
155
|
};
|
|
@@ -81,16 +81,20 @@ var BmProfileIcon = function BmProfileIcon(_ref) {
|
|
|
81
81
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Profile, _extends({
|
|
82
82
|
size: size
|
|
83
83
|
}, rest), content && !img && /*#__PURE__*/_react.default.createElement(Content, null, content), img && !content && /*#__PURE__*/_react.default.createElement(ProfileImg, {
|
|
84
|
-
src: img
|
|
84
|
+
src: img,
|
|
85
|
+
alt: "profileicon"
|
|
85
86
|
}), channel && channel === 'whatsapp' && /*#__PURE__*/_react.default.createElement(Dot, {
|
|
86
87
|
size: size,
|
|
87
|
-
src: _wa.default
|
|
88
|
+
src: _wa.default,
|
|
89
|
+
alt: "icon"
|
|
88
90
|
}), channel && channel === 'facebook' && /*#__PURE__*/_react.default.createElement(Dot, {
|
|
89
91
|
size: size,
|
|
90
|
-
src: _fb.default
|
|
92
|
+
src: _fb.default,
|
|
93
|
+
alt: "icon"
|
|
91
94
|
}), channel && channel === 'instagram' && /*#__PURE__*/_react.default.createElement(Dot, {
|
|
92
95
|
size: size,
|
|
93
|
-
src: _insta.default
|
|
96
|
+
src: _insta.default,
|
|
97
|
+
alt: "icon"
|
|
94
98
|
})));
|
|
95
99
|
};
|
|
96
100
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beem-component",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/components/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -52,9 +52,10 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/cli": "^7.16.0",
|
|
55
|
-
"@babel/core": "^7.
|
|
55
|
+
"@babel/core": "^7.17.8",
|
|
56
|
+
"@babel/eslint-parser": "^7.18.2",
|
|
56
57
|
"@babel/preset-env": "^7.14.8",
|
|
57
|
-
"@babel/preset-react": "^7.
|
|
58
|
+
"@babel/preset-react": "^7.18.6",
|
|
58
59
|
"@commitlint/cli": "^14.1.0",
|
|
59
60
|
"@commitlint/config-conventional": "^14.1.0",
|
|
60
61
|
"@commitlint/travis-cli": "^14.1.0",
|
|
@@ -164,7 +164,7 @@ BmModal.Footer = styled.div`
|
|
|
164
164
|
BmModal.propTypes = {
|
|
165
165
|
size: PropTypes.string,
|
|
166
166
|
centered: PropTypes.bool,
|
|
167
|
-
show: PropTypes.bool
|
|
167
|
+
show: PropTypes.bool,
|
|
168
168
|
onHide: PropTypes.func.isRequired,
|
|
169
169
|
closeButton: PropTypes.bool,
|
|
170
170
|
};
|
|
@@ -66,10 +66,16 @@ export const BmProfileIcon = ({ img, content, channel, size, ...rest }) => {
|
|
|
66
66
|
<>
|
|
67
67
|
<Profile size={size} {...rest}>
|
|
68
68
|
{content && !img && <Content>{content}</Content>}
|
|
69
|
-
{img && !content && <ProfileImg src={img} />}
|
|
70
|
-
{channel && channel === 'whatsapp' &&
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
{img && !content && <ProfileImg src={img} alt="profileicon" />}
|
|
70
|
+
{channel && channel === 'whatsapp' && (
|
|
71
|
+
<Dot size={size} src={wa} alt="icon" />
|
|
72
|
+
)}
|
|
73
|
+
{channel && channel === 'facebook' && (
|
|
74
|
+
<Dot size={size} src={fb} alt="icon" />
|
|
75
|
+
)}
|
|
76
|
+
{channel && channel === 'instagram' && (
|
|
77
|
+
<Dot size={size} src={insta} alt="icon" />
|
|
78
|
+
)}
|
|
73
79
|
</Profile>
|
|
74
80
|
</>
|
|
75
81
|
);
|