@appquality/unguess-design-system 2.10.42 → 2.10.43
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/CHANGELOG.md +12 -0
- package/build/index.js +1 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v2.10.43 (Wed Jun 01 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix(avatar): set text uppercase + cleanings [#65](https://github.com/AppQuality/unguess-design-system/pull/65) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v2.10.42 (Mon May 30 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -282,8 +282,7 @@ Alert.Title = UgAlertTitle;
|
|
|
282
282
|
Alert.Close = reactNotifications.Close;
|
|
283
283
|
var templateObject_1$_, templateObject_2$q;
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$Z || (templateObject_1$Z = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
285
|
+
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$Z || (templateObject_1$Z = __makeTemplateObject(["\n text-transform: uppercase;\n\n ", "\n"], ["\n text-transform: uppercase;\n\n ", "\n"])), function (props) {
|
|
287
286
|
return props.avatarType &&
|
|
288
287
|
props.avatarType !== "image" &&
|
|
289
288
|
"background: ".concat(props.backgroundColor || theme.gradients.dark, ";");
|
|
@@ -304,7 +303,6 @@ var Avatar = function (props) {
|
|
|
304
303
|
if (type === "text")
|
|
305
304
|
return jsxRuntime.jsx(Avatar.Text, { children: props.children });
|
|
306
305
|
};
|
|
307
|
-
// const { width } = useWindowSize();
|
|
308
306
|
return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
|
|
309
307
|
};
|
|
310
308
|
Avatar.Text = UgAvatar.Text;
|