@micromag/element-urbania-author 0.3.310 → 0.3.318
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 +2 -2
- package/es/index.js +25 -34
- package/lib/index.js +25 -34
- package/package.json +7 -7
package/assets/css/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.micromag-element-urbania-author-avatar-container{display:inline-block;position:relative;z-index:1
|
|
2
|
-
.micromag-element-urbania-author-container{
|
|
1
|
+
.micromag-element-urbania-author-avatar-container{display:inline-block;position:relative;width:100%;z-index:1}.micromag-element-urbania-author-avatar-container .micromag-element-urbania-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%}.micromag-element-urbania-author-avatar-container.micromag-element-urbania-author-avatar-shape-circle .micromag-element-urbania-author-avatar-shape{background-color:#fff;background-position:top;border-radius:50%;overflow:hidden}
|
|
2
|
+
.micromag-element-urbania-author-container{-ms-flex-align:center;align-items:center;color:#222;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-family:Agrandir;vertical-align:center}.micromag-element-urbania-author-container .micromag-element-urbania-author-image{max-width:4em;min-width:2.2em}.micromag-element-urbania-author-container .micromag-element-urbania-author-link{color:#222;display:inline-block;text-decoration:none}.micromag-element-urbania-author-container .micromag-element-urbania-author-right{display:block}.micromag-element-urbania-author-container .micromag-element-urbania-author-name,.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{min-height:20px}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator,.micromag-element-urbania-author-container .micromag-element-urbania-author-name,.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{background-color:#efefef;font-family:Agrandir;font-size:10px;letter-spacing:.04em;line-height:1;white-space:nowrap}.micromag-element-urbania-author-container .micromag-element-urbania-author-name{border-bottom-right-radius:40px;border-top-right-radius:40px;margin-left:-7px;padding:6px 8px 3px 13px}.micromag-element-urbania-author-container .micromag-element-urbania-author-name p{display:inline;font-size:inherit;font-weight:700;line-height:1;margin:0;text-transform:uppercase}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator{background-color:transparent;color:#fff;padding-top:2px;position:absolute}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator .micromag-element-urbania-author-collaboratorText{font-size:inherit;padding-left:7.3px}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator .micromag-element-urbania-author-collaboratorText p{display:inline;font-size:.9em;line-height:1}.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{border-bottom-left-radius:40px;border-top-left-radius:40px;margin-right:-5px;padding:6px 12px 3px 8px}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall{font-size:9px}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-name,.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-prefix{font-size:9px;white-space:normal}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-image{max-width:30px}.micromag-element-urbania-author-container.micromag-element-urbania-author-withoutImage .micromag-element-urbania-author-name{margin-left:0;padding-left:0}.micromag-element-urbania-author-container.micromag-element-urbania-author-withoutImage .micromag-element-urbania-author-prefix{margin-right:0;padding-right:.4em}
|
package/es/index.js
CHANGED
|
@@ -31,18 +31,16 @@ var defaultProps$1 = {
|
|
|
31
31
|
className: null,
|
|
32
32
|
shouldLoad: true
|
|
33
33
|
};
|
|
34
|
-
|
|
35
34
|
var Avatar = function Avatar(_ref) {
|
|
36
35
|
var _ref2;
|
|
37
|
-
|
|
38
36
|
var image = _ref.image,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
width = _ref.width,
|
|
38
|
+
height = _ref.height,
|
|
39
|
+
resolution = _ref.resolution,
|
|
40
|
+
shape = _ref.shape,
|
|
41
|
+
isTag = _ref.isTag,
|
|
42
|
+
className = _ref.className,
|
|
43
|
+
shouldLoad = _ref.shouldLoad;
|
|
46
44
|
var imageAtSize = getOptimalImageUrl(image, width, height, {
|
|
47
45
|
resolution: resolution
|
|
48
46
|
});
|
|
@@ -55,7 +53,6 @@ var Avatar = function Avatar(_ref) {
|
|
|
55
53
|
}
|
|
56
54
|
}));
|
|
57
55
|
};
|
|
58
|
-
|
|
59
56
|
Avatar.propTypes = propTypes$1;
|
|
60
57
|
Avatar.defaultProps = defaultProps$1;
|
|
61
58
|
|
|
@@ -92,34 +89,29 @@ var defaultProps = {
|
|
|
92
89
|
collaboratorClassName: null,
|
|
93
90
|
shouldLoad: true
|
|
94
91
|
};
|
|
95
|
-
|
|
96
92
|
var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
|
|
97
93
|
var _ref4;
|
|
98
|
-
|
|
99
94
|
var author = _ref.author,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
95
|
+
withImage = _ref.withImage,
|
|
96
|
+
withoutLink = _ref.withoutLink,
|
|
97
|
+
withoutPrefix = _ref.withoutPrefix,
|
|
98
|
+
isSmall = _ref.isSmall,
|
|
99
|
+
linkUnderlineColor = _ref.linkUnderlineColor,
|
|
100
|
+
className = _ref.className,
|
|
101
|
+
backgroundClassName = _ref.backgroundClassName,
|
|
102
|
+
collaboratorClassName = _ref.collaboratorClassName,
|
|
103
|
+
shouldLoad = _ref.shouldLoad,
|
|
104
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
111
105
|
var intl = useIntl();
|
|
112
|
-
|
|
113
106
|
var _ref2 = author || {},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
107
|
+
_ref2$name = _ref2.name,
|
|
108
|
+
name = _ref2$name === void 0 ? null : _ref2$name,
|
|
109
|
+
_ref2$image = _ref2.image,
|
|
110
|
+
image = _ref2$image === void 0 ? null : _ref2$image,
|
|
111
|
+
_ref2$url = _ref2.url,
|
|
112
|
+
url = _ref2$url === void 0 ? null : _ref2$url,
|
|
113
|
+
_ref2$collaborator = _ref2.collaborator,
|
|
114
|
+
collaborator = _ref2$collaborator === void 0 ? null : _ref2$collaborator;
|
|
123
115
|
var withAvatar = withImage && image !== null;
|
|
124
116
|
var prefix = intl.formatMessage({
|
|
125
117
|
id: "jEK6B8",
|
|
@@ -158,7 +150,6 @@ var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
|
|
|
158
150
|
className: classNames([styles.collaborator, _defineProperty({}, collaboratorClassName, collaboratorClassName)])
|
|
159
151
|
}, collaboratorText !== null ? collaboratorText : null) : null));
|
|
160
152
|
};
|
|
161
|
-
|
|
162
153
|
UrbaniaAuthor.propTypes = propTypes;
|
|
163
154
|
UrbaniaAuthor.defaultProps = defaultProps;
|
|
164
155
|
|
package/lib/index.js
CHANGED
|
@@ -43,18 +43,16 @@ var defaultProps$1 = {
|
|
|
43
43
|
className: null,
|
|
44
44
|
shouldLoad: true
|
|
45
45
|
};
|
|
46
|
-
|
|
47
46
|
var Avatar = function Avatar(_ref) {
|
|
48
47
|
var _ref2;
|
|
49
|
-
|
|
50
48
|
var image = _ref.image,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
width = _ref.width,
|
|
50
|
+
height = _ref.height,
|
|
51
|
+
resolution = _ref.resolution,
|
|
52
|
+
shape = _ref.shape,
|
|
53
|
+
isTag = _ref.isTag,
|
|
54
|
+
className = _ref.className,
|
|
55
|
+
shouldLoad = _ref.shouldLoad;
|
|
58
56
|
var imageAtSize = utils.getOptimalImageUrl(image, width, height, {
|
|
59
57
|
resolution: resolution
|
|
60
58
|
});
|
|
@@ -67,7 +65,6 @@ var Avatar = function Avatar(_ref) {
|
|
|
67
65
|
}
|
|
68
66
|
}));
|
|
69
67
|
};
|
|
70
|
-
|
|
71
68
|
Avatar.propTypes = propTypes$1;
|
|
72
69
|
Avatar.defaultProps = defaultProps$1;
|
|
73
70
|
|
|
@@ -104,34 +101,29 @@ var defaultProps = {
|
|
|
104
101
|
collaboratorClassName: null,
|
|
105
102
|
shouldLoad: true
|
|
106
103
|
};
|
|
107
|
-
|
|
108
104
|
var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
|
|
109
105
|
var _ref4;
|
|
110
|
-
|
|
111
106
|
var author = _ref.author,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
107
|
+
withImage = _ref.withImage,
|
|
108
|
+
withoutLink = _ref.withoutLink,
|
|
109
|
+
withoutPrefix = _ref.withoutPrefix,
|
|
110
|
+
isSmall = _ref.isSmall,
|
|
111
|
+
linkUnderlineColor = _ref.linkUnderlineColor,
|
|
112
|
+
className = _ref.className,
|
|
113
|
+
backgroundClassName = _ref.backgroundClassName,
|
|
114
|
+
collaboratorClassName = _ref.collaboratorClassName,
|
|
115
|
+
shouldLoad = _ref.shouldLoad,
|
|
116
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
123
117
|
var intl = reactIntl.useIntl();
|
|
124
|
-
|
|
125
118
|
var _ref2 = author || {},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
119
|
+
_ref2$name = _ref2.name,
|
|
120
|
+
name = _ref2$name === void 0 ? null : _ref2$name,
|
|
121
|
+
_ref2$image = _ref2.image,
|
|
122
|
+
image = _ref2$image === void 0 ? null : _ref2$image,
|
|
123
|
+
_ref2$url = _ref2.url,
|
|
124
|
+
url = _ref2$url === void 0 ? null : _ref2$url,
|
|
125
|
+
_ref2$collaborator = _ref2.collaborator,
|
|
126
|
+
collaborator = _ref2$collaborator === void 0 ? null : _ref2$collaborator;
|
|
135
127
|
var withAvatar = withImage && image !== null;
|
|
136
128
|
var prefix = intl.formatMessage({
|
|
137
129
|
id: "jEK6B8",
|
|
@@ -170,7 +162,6 @@ var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
|
|
|
170
162
|
className: classNames__default["default"]([styles.collaborator, _defineProperty__default["default"]({}, collaboratorClassName, collaboratorClassName)])
|
|
171
163
|
}, collaboratorText !== null ? collaboratorText : null) : null));
|
|
172
164
|
};
|
|
173
|
-
|
|
174
165
|
UrbaniaAuthor.propTypes = propTypes;
|
|
175
166
|
UrbaniaAuthor.defaultProps = defaultProps;
|
|
176
167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-urbania-author",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.318",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-button": "^0.3.
|
|
54
|
-
"@micromag/element-link": "^0.3.
|
|
55
|
-
"@micromag/element-text": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.318",
|
|
53
|
+
"@micromag/element-button": "^0.3.318",
|
|
54
|
+
"@micromag/element-link": "^0.3.318",
|
|
55
|
+
"@micromag/element-text": "^0.3.318",
|
|
56
56
|
"classnames": "^2.2.6",
|
|
57
57
|
"lodash": "^4.17.21",
|
|
58
58
|
"prop-types": "^15.7.2",
|
|
59
59
|
"react-intl": "^5.12.1",
|
|
60
|
-
"uuid": "^
|
|
60
|
+
"uuid": "^9.0.0"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "7d1a296e0c0d410e1225279e1f19e3a7715bfa96"
|
|
66
66
|
}
|