@micromag/element-urbania-author 0.4.37 → 0.4.40
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/es/index.js +7 -5
- package/package.json +6 -6
package/es/index.js
CHANGED
|
@@ -35,7 +35,9 @@ function Avatar(_ref) {
|
|
|
35
35
|
});
|
|
36
36
|
var finalShape = shape !== null ? pascalCase(shape) : null;
|
|
37
37
|
return /*#__PURE__*/React.createElement("span", {
|
|
38
|
-
className: classNames([styles$1.container, _defineProperty(_defineProperty(
|
|
38
|
+
className: classNames([styles$1.container, _defineProperty(_defineProperty({
|
|
39
|
+
className: className
|
|
40
|
+
}, styles$1["shape".concat(finalShape)], finalShape !== null), styles$1.isTag, isTag)])
|
|
39
41
|
}, /*#__PURE__*/React.createElement("span", {
|
|
40
42
|
className: styles$1.shape,
|
|
41
43
|
style: {
|
|
@@ -90,7 +92,7 @@ function UrbaniaAuthor(_ref) {
|
|
|
90
92
|
}]
|
|
91
93
|
});
|
|
92
94
|
var authorText = isTextFilled(name) ? /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
93
|
-
className: classNames([styles.name,
|
|
95
|
+
className: classNames([styles.name, backgroundClassName])
|
|
94
96
|
}, name)) : null;
|
|
95
97
|
var collaboratorText = isTextFilled(collaborator) ? /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
96
98
|
className: styles.collaboratorText
|
|
@@ -98,9 +100,9 @@ function UrbaniaAuthor(_ref) {
|
|
|
98
100
|
inline: true
|
|
99
101
|
})) : null;
|
|
100
102
|
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
101
|
-
className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
103
|
+
className: classNames([styles.container, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.isSmall, isSmall), styles.withoutAvatar, withAvatar), styles.withoutImage, !withImage || image === null), styles.withoutBackground, withoutBackground)])
|
|
102
104
|
}, otherProps), !withoutPrefix ? /*#__PURE__*/React.createElement(Text, Object.assign({}, name, {
|
|
103
|
-
className: classNames([styles.prefix,
|
|
105
|
+
className: classNames([styles.prefix, backgroundClassName]),
|
|
104
106
|
body: "<span>".concat(prefix, "<span>")
|
|
105
107
|
})) : null, withAvatar ? /*#__PURE__*/React.createElement(Avatar, {
|
|
106
108
|
className: styles.image,
|
|
@@ -116,7 +118,7 @@ function UrbaniaAuthor(_ref) {
|
|
|
116
118
|
backgroundImage: linkUnderlineColor !== null ? "linear-gradient(0deg, ".concat(linkUnderlineColor, " 0, ").concat(linkUnderlineColor, ")") : null
|
|
117
119
|
}
|
|
118
120
|
}, authorText) : /*#__PURE__*/React.createElement("div", null, authorText), collaboratorText !== null ? /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: classNames([styles.collaborator,
|
|
121
|
+
className: classNames([styles.collaborator, collaboratorClassName])
|
|
120
122
|
}, collaboratorText !== null ? collaboratorText : null) : null));
|
|
121
123
|
}
|
|
122
124
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-urbania-author",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.40",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.28.6",
|
|
63
|
-
"@micromag/core": "^0.4.
|
|
64
|
-
"@micromag/element-button": "^0.4.
|
|
65
|
-
"@micromag/element-link": "^0.4.
|
|
66
|
-
"@micromag/element-text": "^0.4.
|
|
63
|
+
"@micromag/core": "^0.4.40",
|
|
64
|
+
"@micromag/element-button": "^0.4.40",
|
|
65
|
+
"@micromag/element-link": "^0.4.40",
|
|
66
|
+
"@micromag/element-text": "^0.4.40",
|
|
67
67
|
"classnames": "^2.2.6",
|
|
68
68
|
"lodash": "^4.17.23",
|
|
69
69
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"access": "public",
|
|
74
74
|
"registry": "https://registry.npmjs.org/"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "6a9ff6e196a972abfd617f49353862cf445b0e83",
|
|
77
77
|
"types": "es/index.d.ts"
|
|
78
78
|
}
|