@atlaskit/profilecard 18.1.2 → 18.1.3

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
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 18.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5e697be0410`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5e697be0410) - [ux] Fix team header image bug
8
+
3
9
  ## 18.1.2
4
10
 
5
11
  ### Patch Changes
@@ -29,8 +29,10 @@ var CardWrapper = _styled.default.div(_templateObject2 || (_templateObject2 = (0
29
29
 
30
30
  exports.CardWrapper = CardWrapper;
31
31
 
32
- var CardHeader = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
33
- return props.isLoading ? "var(--ds-background-neutral, ".concat(_colors.N20, ")") : props.image ? "url('".concat(props.image, "')") : _constants2.teamHeaderBgColor;
32
+ var CardHeader = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n background-image: ", ";\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
33
+ return props.isLoading ? "var(--ds-background-neutral, ".concat(_colors.N20, ")") : props.image ? '' : _constants2.teamHeaderBgColor;
34
+ }, function (props) {
35
+ return props.image ? "url(".concat(props.image, ")") : '';
34
36
  }, (0, _constants.gridSize)() * 16);
35
37
 
36
38
  exports.CardHeader = CardHeader;
@@ -59,7 +59,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
59
59
  actionSubjectId: actionSubjectId,
60
60
  attributes: _objectSpread(_objectSpread({
61
61
  packageName: "@atlaskit/profilecard",
62
- packageVersion: "18.1.2"
62
+ packageVersion: "18.1.3"
63
63
  }, attributes), {}, {
64
64
  firedAt: Math.round((0, _performance.getPageTime)())
65
65
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.1.2"
3
+ "version": "18.1.3"
4
4
  }
@@ -15,7 +15,8 @@ export const CardWrapper = styled.div`
15
15
  -moz-osx-font-smoothing: grayscale;
16
16
  `;
17
17
  export const CardHeader = styled.div`
18
- background-color: ${props => props.isLoading ? `var(--ds-background-neutral, ${N20})` : props.image ? `url('${props.image}')` : teamHeaderBgColor};
18
+ background-color: ${props => props.isLoading ? `var(--ds-background-neutral, ${N20})` : props.image ? '' : teamHeaderBgColor};
19
+ background-image: ${props => props.image ? `url(${props.image})` : ''};
19
20
  background-repeat: no-repeat;
20
21
  background-position: center;
21
22
  background-size: cover;
@@ -38,7 +38,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
38
38
  actionSubjectId,
39
39
  attributes: {
40
40
  packageName: "@atlaskit/profilecard",
41
- packageVersion: "18.1.2",
41
+ packageVersion: "18.1.3",
42
42
  ...attributes,
43
43
  firedAt: Math.round(getPageTime())
44
44
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.1.2"
3
+ "version": "18.1.3"
4
4
  }
@@ -9,8 +9,10 @@ import { h600 } from '@atlaskit/theme/typography';
9
9
  import { bgColor, teamHeaderBgColor } from './constants';
10
10
  export var CardTriggerWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inherit;\n"])));
11
11
  export var CardWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])), bgColor, borderRadius, gridSize() * 40);
12
- export var CardHeader = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
13
- return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? "url('".concat(props.image, "')") : teamHeaderBgColor;
12
+ export var CardHeader = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n background-image: ", ";\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
13
+ return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? '' : teamHeaderBgColor;
14
+ }, function (props) {
15
+ return props.image ? "url(".concat(props.image, ")") : '';
14
16
  }, gridSize() * 16);
15
17
  export var CardContent = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n min-height: ", "px;\n"])), gridSize() * 3, gridSize() * 13);
16
18
  export var TeamName = styled.h6(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", ";\n text-transform: none;\n overflow: hidden;\n max-height: 48px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])), h600);
@@ -48,7 +48,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
48
48
  actionSubjectId: actionSubjectId,
49
49
  attributes: _objectSpread(_objectSpread({
50
50
  packageName: "@atlaskit/profilecard",
51
- packageVersion: "18.1.2"
51
+ packageVersion: "18.1.3"
52
52
  }, attributes), {}, {
53
53
  firedAt: Math.round(getPageTime())
54
54
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.1.2"
3
+ "version": "18.1.3"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.1.2",
3
+ "version": "18.1.3",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"