@micromag/element-author 0.3.412 → 0.3.417
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/assets/css/styles.css +1 -1
- package/es/index.js +3 -7
- package/lib/index.js +3 -7
- package/package.json +6 -6
package/assets/css/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
.micromag-element-author-avatar-container{display:inline-block;position:relative;width:100%;z-index:1}.micromag-element-author-avatar-container.micromag-element-author-avatar-shapeCircle .micromag-element-author-avatar-shape{background-color:#fff;background-position:top;border-radius:50%;overflow:hidden}.micromag-element-author-avatar-container .micromag-element-author-avatar-shape{background-color:#fff;background-position:50%;background-repeat:no-repeat;background-size:cover;-webkit-box-shadow:0 0 4px rgba(0,0,0,.2);box-shadow:0 0 4px rgba(0,0,0,.2);display:block;height:0;padding-bottom:100%;width:100%}
|
|
2
|
-
.micromag-element-author-container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;vertical-align:center}.micromag-element-author-container .micromag-element-author-image{margin-right:10px;max-width:35px}.micromag-element-author-container .micromag-element-author-link{text-decoration:none}.micromag-element-author-container .micromag-element-author-right{display:block}.micromag-element-author-container .micromag-element-author-name p{display:inline;margin:0}.micromag-element-author-container .micromag-element-author-collaborator{background-color:transparent}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText{font-size:inherit}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText p{display:inline}
|
|
2
|
+
.micromag-element-author-container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;vertical-align:center}.micromag-element-author-container .micromag-element-author-image{margin-right:10px;max-width:35px}.micromag-element-author-container .micromag-element-author-link{text-decoration:none}.micromag-element-author-container .micromag-element-author-right{display:block}.micromag-element-author-container .micromag-element-author-name p{display:inline;margin:0}.micromag-element-author-container .micromag-element-author-collaborator{background-color:transparent}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText{font-size:inherit}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText p{display:inline}
|
package/es/index.js
CHANGED
|
@@ -56,9 +56,9 @@ var Avatar = function Avatar(_ref) {
|
|
|
56
56
|
Avatar.propTypes = propTypes$1;
|
|
57
57
|
Avatar.defaultProps = defaultProps$1;
|
|
58
58
|
|
|
59
|
-
var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText"
|
|
59
|
+
var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText"};
|
|
60
60
|
|
|
61
|
-
var _excluded = ["author", "withImage", "withoutLink", "
|
|
61
|
+
var _excluded = ["author", "withImage", "withoutLink", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
|
|
62
62
|
var propTypes = {
|
|
63
63
|
author: PropTypes$1.shape({
|
|
64
64
|
slug: PropTypes$1.string,
|
|
@@ -69,7 +69,6 @@ var propTypes = {
|
|
|
69
69
|
}),
|
|
70
70
|
withImage: PropTypes$1.bool,
|
|
71
71
|
withoutLink: PropTypes$1.bool,
|
|
72
|
-
isSmall: PropTypes$1.bool,
|
|
73
72
|
linkUnderlineColor: PropTypes$1.string,
|
|
74
73
|
className: PropTypes$1.string,
|
|
75
74
|
backgroundClassName: PropTypes$1.string,
|
|
@@ -80,7 +79,6 @@ var defaultProps = {
|
|
|
80
79
|
author: null,
|
|
81
80
|
withImage: true,
|
|
82
81
|
withoutLink: false,
|
|
83
|
-
isSmall: false,
|
|
84
82
|
linkUnderlineColor: null,
|
|
85
83
|
className: null,
|
|
86
84
|
backgroundClassName: null,
|
|
@@ -88,11 +86,9 @@ var defaultProps = {
|
|
|
88
86
|
shouldLoad: true
|
|
89
87
|
};
|
|
90
88
|
var Author = function Author(_ref) {
|
|
91
|
-
var _ref4;
|
|
92
89
|
var author = _ref.author,
|
|
93
90
|
withImage = _ref.withImage,
|
|
94
91
|
withoutLink = _ref.withoutLink,
|
|
95
|
-
isSmall = _ref.isSmall,
|
|
96
92
|
linkUnderlineColor = _ref.linkUnderlineColor,
|
|
97
93
|
className = _ref.className,
|
|
98
94
|
backgroundClassName = _ref.backgroundClassName,
|
|
@@ -118,7 +114,7 @@ var Author = function Author(_ref) {
|
|
|
118
114
|
inline: true
|
|
119
115
|
})) : null;
|
|
120
116
|
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
121
|
-
className: classNames([styles.container, (
|
|
117
|
+
className: classNames([styles.container, _defineProperty({}, className, className !== null)])
|
|
122
118
|
}, otherProps), withAvatar ? /*#__PURE__*/React.createElement(Avatar, {
|
|
123
119
|
className: styles.image,
|
|
124
120
|
image: image,
|
package/lib/index.js
CHANGED
|
@@ -68,9 +68,9 @@ var Avatar = function Avatar(_ref) {
|
|
|
68
68
|
Avatar.propTypes = propTypes$1;
|
|
69
69
|
Avatar.defaultProps = defaultProps$1;
|
|
70
70
|
|
|
71
|
-
var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText"
|
|
71
|
+
var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText"};
|
|
72
72
|
|
|
73
|
-
var _excluded = ["author", "withImage", "withoutLink", "
|
|
73
|
+
var _excluded = ["author", "withImage", "withoutLink", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
|
|
74
74
|
var propTypes = {
|
|
75
75
|
author: PropTypes__default["default"].shape({
|
|
76
76
|
slug: PropTypes__default["default"].string,
|
|
@@ -81,7 +81,6 @@ var propTypes = {
|
|
|
81
81
|
}),
|
|
82
82
|
withImage: PropTypes__default["default"].bool,
|
|
83
83
|
withoutLink: PropTypes__default["default"].bool,
|
|
84
|
-
isSmall: PropTypes__default["default"].bool,
|
|
85
84
|
linkUnderlineColor: PropTypes__default["default"].string,
|
|
86
85
|
className: PropTypes__default["default"].string,
|
|
87
86
|
backgroundClassName: PropTypes__default["default"].string,
|
|
@@ -92,7 +91,6 @@ var defaultProps = {
|
|
|
92
91
|
author: null,
|
|
93
92
|
withImage: true,
|
|
94
93
|
withoutLink: false,
|
|
95
|
-
isSmall: false,
|
|
96
94
|
linkUnderlineColor: null,
|
|
97
95
|
className: null,
|
|
98
96
|
backgroundClassName: null,
|
|
@@ -100,11 +98,9 @@ var defaultProps = {
|
|
|
100
98
|
shouldLoad: true
|
|
101
99
|
};
|
|
102
100
|
var Author = function Author(_ref) {
|
|
103
|
-
var _ref4;
|
|
104
101
|
var author = _ref.author,
|
|
105
102
|
withImage = _ref.withImage,
|
|
106
103
|
withoutLink = _ref.withoutLink,
|
|
107
|
-
isSmall = _ref.isSmall,
|
|
108
104
|
linkUnderlineColor = _ref.linkUnderlineColor,
|
|
109
105
|
className = _ref.className,
|
|
110
106
|
backgroundClassName = _ref.backgroundClassName,
|
|
@@ -130,7 +126,7 @@ var Author = function Author(_ref) {
|
|
|
130
126
|
inline: true
|
|
131
127
|
})) : null;
|
|
132
128
|
return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
|
|
133
|
-
className: classNames__default["default"]([styles.container,
|
|
129
|
+
className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)])
|
|
134
130
|
}, otherProps), withAvatar ? /*#__PURE__*/React__default["default"].createElement(Avatar, {
|
|
135
131
|
className: styles.image,
|
|
136
132
|
image: image,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-author",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.417",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@babel/runtime": "^7.13.10",
|
|
53
|
-
"@micromag/core": "^0.3.
|
|
54
|
-
"@micromag/element-button": "^0.3.
|
|
55
|
-
"@micromag/element-link": "^0.3.
|
|
56
|
-
"@micromag/element-text": "^0.3.
|
|
53
|
+
"@micromag/core": "^0.3.417",
|
|
54
|
+
"@micromag/element-button": "^0.3.417",
|
|
55
|
+
"@micromag/element-link": "^0.3.417",
|
|
56
|
+
"@micromag/element-text": "^0.3.417",
|
|
57
57
|
"classnames": "^2.2.6",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
59
|
"prop-types": "^15.7.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"access": "public",
|
|
65
65
|
"registry": "https://registry.npmjs.org/"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "5a0113a6eaafea5c33a6beece8ad581519f490bb"
|
|
68
68
|
}
|