@occmundial/occ-atomic 3.0.0-beta.38 → 3.0.0-beta.39
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [3.0.0-beta.39](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.38...v3.0.0-beta.39) (2024-07-31)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Render initials only if there's no photo prop ([b643eab](https://github.com/occmundial/occ-atomic/commit/b643eab76f676c126962b9935eaeba7f563d2ac9))
|
7
|
+
|
1
8
|
# [3.0.0-beta.38](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.37...v3.0.0-beta.38) (2024-07-25)
|
2
9
|
|
3
10
|
|
@@ -56,7 +56,12 @@ var AvatarContent = function AvatarContent(_ref) {
|
|
56
56
|
style: photo ? {
|
57
57
|
background: "url('".concat(photo, "') no-repeat center center / cover")
|
58
58
|
} : null
|
59
|
-
}, !photo
|
59
|
+
}, !photo ? initials ? /*#__PURE__*/_react["default"].createElement("span", {
|
60
|
+
className: "".concat(classes.initials, " ").concat(disabled ? classes.disabledInitials : ''),
|
61
|
+
style: size ? {
|
62
|
+
transform: "scale(".concat(size / 40, ")")
|
63
|
+
} : {}
|
64
|
+
}, initials) : /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
60
65
|
iconName: "person",
|
61
66
|
className: classes.person,
|
62
67
|
colors: [disabled ? _colors["default"].icon["default"].disabled : _colors["default"].icon.brand["default"]],
|
@@ -64,12 +69,7 @@ var AvatarContent = function AvatarContent(_ref) {
|
|
64
69
|
style: size ? {
|
65
70
|
transform: "scale(".concat(size / 40, ")")
|
66
71
|
} : {}
|
67
|
-
})
|
68
|
-
className: "".concat(classes.initials, " ").concat(disabled ? classes.disabledInitials : ''),
|
69
|
-
style: size ? {
|
70
|
-
transform: "scale(".concat(size / 40, ")")
|
71
|
-
} : {}
|
72
|
-
}, initials), /*#__PURE__*/_react["default"].createElement("div", {
|
72
|
+
}) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
73
73
|
className: classes.overlay
|
74
74
|
}, onEdit && !disabled && /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
75
75
|
iconName: "camera",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@occmundial/occ-atomic",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.39",
|
4
4
|
"description": "Collection of shareable styled React components for OCC applications.",
|
5
5
|
"homepage": "http://occmundial.github.io/occ-atomic",
|
6
6
|
"main": "build/index.js",
|