@synerise/ds-avatar 0.15.29 → 0.15.31

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 CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.15.31](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.15.30...@synerise/ds-avatar@0.15.31) (2024-04-22)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-avatar
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.15.30](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.15.29...@synerise/ds-avatar@0.15.30) (2024-04-15)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-avatar
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.15.29](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.15.28...@synerise/ds-avatar@0.15.29) (2024-04-05)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-avatar
package/dist/Avatar.js CHANGED
@@ -50,9 +50,9 @@ var Avatar = function Avatar(_ref) {
50
50
  var iconElement = iconComponent; // Enforce icon to be scaled
51
51
 
52
52
  if (isIconComponent((_iconElement = iconElement) == null ? void 0 : _iconElement.type) && iconScale) {
53
- var _iconElement$props$co, _iconElement$props$co2, _iconElement$props$co3;
53
+ var _iconElement$props$co;
54
54
 
55
- if ((_iconElement$props$co = iconElement.props.component) != null && (_iconElement$props$co2 = _iconElement$props$co.type) != null && (_iconElement$props$co3 = _iconElement$props$co2.name) != null && _iconElement$props$co3.match(/S$/)) {
55
+ if ((_iconElement$props$co = iconElement.props.component) != null && (_iconElement$props$co = _iconElement$props$co.type) != null && (_iconElement$props$co = _iconElement$props$co.name) != null && _iconElement$props$co.match(/S$/)) {
56
56
  sizes.small = 24;
57
57
  }
58
58
 
package/dist/utils.js CHANGED
@@ -52,11 +52,11 @@ export function getObjectName(name, text) {
52
52
  return null;
53
53
  }
54
54
  export function addIconColor(iconComponent, color) {
55
- var _iconElement, _iconElement$props;
55
+ var _iconElement;
56
56
 
57
57
  var iconElement = iconComponent;
58
58
 
59
- if (iconElement && !((_iconElement = iconElement) != null && (_iconElement$props = _iconElement.props) != null && _iconElement$props.color)) {
59
+ if (iconElement && !((_iconElement = iconElement) != null && (_iconElement = _iconElement.props) != null && _iconElement.color)) {
60
60
  iconElement = React.cloneElement(iconElement, {
61
61
  color: color
62
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-avatar",
3
- "version": "0.15.29",
3
+ "version": "0.15.31",
4
4
  "description": "Avatar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -33,10 +33,10 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-badge": "^0.6.55",
37
- "@synerise/ds-icon": "^0.60.6",
38
- "@synerise/ds-status": "^0.5.108",
39
- "@synerise/ds-tooltip": "^0.14.24",
36
+ "@synerise/ds-badge": "^0.6.56",
37
+ "@synerise/ds-icon": "^0.60.7",
38
+ "@synerise/ds-status": "^0.6.0",
39
+ "@synerise/ds-tooltip": "^0.14.25",
40
40
  "@synerise/ds-typography": "^0.14.3"
41
41
  },
42
42
  "peerDependencies": {
@@ -46,8 +46,8 @@
46
46
  "styled-components": "5.0.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@synerise/ds-utils": "^0.26.2",
49
+ "@synerise/ds-utils": "^0.26.3",
50
50
  "@testing-library/jest-dom": "5.1.1"
51
51
  },
52
- "gitHead": "84c9ff34c60369cc819ab1d4307373fafaf06462"
52
+ "gitHead": "52db796f56522058d6b6a8f4a1226ffbf2011269"
53
53
  }