beem-component 1.6.4 → 1.6.7
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
|
@@ -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.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/components/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react": "^17.0.2",
|
|
46
46
|
"react-dom": "^17.0.2",
|
|
47
47
|
"react-router-dom": "^5.3.0",
|
|
48
|
-
"react-scripts": "
|
|
48
|
+
"react-scripts": "^5.0.1",
|
|
49
49
|
"save": "^2.4.0",
|
|
50
50
|
"styled-components": "^5.3.0",
|
|
51
51
|
"web-vitals": "^1.1.2"
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@storybook/react": "^6.3.2",
|
|
71
71
|
"@storybook/theming": "^6.4.9",
|
|
72
72
|
"babel-eslint": "^10.1.0",
|
|
73
|
+
"babel-loader": "^8.2.3",
|
|
73
74
|
"babel-plugin-react-intl": "^5.1.18",
|
|
74
75
|
"babel-plugin-styled-components": "^1.13.3",
|
|
75
76
|
"babel-preset-react-app": "^10.0.0",
|
|
@@ -79,22 +80,15 @@
|
|
|
79
80
|
"eslint-config-airbnb": "^18.2.1",
|
|
80
81
|
"eslint-config-prettier": "^8.3.0",
|
|
81
82
|
"eslint-plugin-import": "^2.25.2",
|
|
82
|
-
"eslint-plugin-jest": "^25.2.
|
|
83
|
+
"eslint-plugin-jest": "^25.2.4",
|
|
83
84
|
"eslint-plugin-jsdoc": "^32.2.0",
|
|
84
85
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
85
|
-
"eslint-plugin-prettier": "^4.
|
|
86
|
-
"eslint-plugin-react": "^7.
|
|
86
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
87
|
+
"eslint-plugin-react": "^7.29.4",
|
|
87
88
|
"generate-changelog": "^1.8.0",
|
|
88
89
|
"husky": "^7.0.4",
|
|
89
90
|
"lint-staged": "^11.2.6",
|
|
90
|
-
"prettier": "^2.
|
|
91
|
+
"prettier": "^2.7.1",
|
|
91
92
|
"storybook-addon-jsx": "^7.3.14"
|
|
92
|
-
},
|
|
93
|
-
"peerDependencies": {
|
|
94
|
-
"babel-loader": "8.1.0",
|
|
95
|
-
"react": "^17.0.2",
|
|
96
|
-
"react-dom": "^17.0.2",
|
|
97
|
-
"react-scripts": "4.0.3",
|
|
98
|
-
"web-vitals": "^1.1.2"
|
|
99
93
|
}
|
|
100
94
|
}
|
|
@@ -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
|
);
|