@atlaskit/profilecard 18.1.0 → 18.1.2

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,17 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 18.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
8
+
9
+ ## 18.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`60b1c9b0f05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/60b1c9b0f05) - Upgrade profilecard to the latest major version of emotion
14
+
3
15
  ## 18.1.0
4
16
 
5
17
  ### Minor Changes
@@ -9,8 +9,6 @@ exports.ErrorIllustration = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _tokens = require("@atlaskit/tokens");
13
-
14
12
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
15
13
  var ErrorIllustration = function ErrorIllustration() {
16
14
  return /*#__PURE__*/_react.default.createElement("svg", {
@@ -23,7 +21,7 @@ var ErrorIllustration = function ErrorIllustration() {
23
21
  clipPath: "url(#clip0)"
24
22
  }, /*#__PURE__*/_react.default.createElement("path", {
25
23
  d: "M0.649902 0H163.93V212H0.649902V0Z",
26
- fill: (0, _tokens.token)('elevation.surface.overlay', 'white'),
24
+ fill: "var(--ds-surface-overlay, white)",
27
25
  fillOpacity: "0.01"
28
26
  }), /*#__PURE__*/_react.default.createElement("path", {
29
27
  d: "M95.4299 74.1603L161.87 189.24C167.71 199.36 160.41 212 148.73 212H15.8499C4.16994 212 -3.13006 199.35 2.70994 189.24L69.1499 74.1603C74.9899 64.0403 89.5899 64.0403 95.4299 74.1603ZM87.8699 157.71L90.7499 113.36C91.0899 108.07 86.8899 103.58 81.5899 103.58C76.2799 103.58 72.0799 108.06 72.4299 113.36L75.3099 157.71C75.5299 161.02 78.2699 163.6 81.5899 163.6C84.8999 163.6 87.6499 161.02 87.8699 157.71ZM72.0299 181.25C72.0299 186.91 76.7899 191.35 82.4199 190.83C87.2699 190.38 91.1499 186.33 91.2499 181.46C91.3599 176.01 86.9399 171.52 81.5199 171.52C76.2899 171.51 72.0299 175.89 72.0299 181.25Z",
@@ -29,8 +29,6 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
29
29
 
30
30
  var _colors = require("@atlaskit/theme/colors");
31
31
 
32
- var _tokens = require("@atlaskit/tokens");
33
-
34
32
  var _messages = _interopRequireDefault(require("../../messages"));
35
33
 
36
34
  var _Card = require("../../styled/Card");
@@ -160,7 +158,7 @@ var ProfilecardInternal = function ProfilecardInternal(props) {
160
158
  }, /*#__PURE__*/_react.default.createElement(_Card.ProfileImage, null, /*#__PURE__*/_react.default.createElement(_avatar.default, {
161
159
  size: "xlarge",
162
160
  src: status !== 'closed' ? props.avatarUrl : undefined,
163
- borderColor: (0, _tokens.token)('elevation.shadow.overlay', _colors.N0)
161
+ borderColor: "var(--ds-shadow-overlay, ".concat(_colors.N0, ")")
164
162
  })), /*#__PURE__*/_react.default.createElement(_Card.CardContent, null, /*#__PURE__*/_react.default.createElement(_ProfileCardDetails.ProfileCardDetails, (0, _extends2.default)({}, props, {
165
163
  status: status,
166
164
  fireAnalyticsWithDuration: fireAnalyticsWithDuration
@@ -13,14 +13,12 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _styled = _interopRequireDefault(require("@emotion/styled"));
19
19
 
20
20
  var _constants = require("@atlaskit/theme/constants");
21
21
 
22
- var _tokens = require("@atlaskit/tokens");
23
-
24
22
  var _constants2 = require("./constants");
25
23
 
26
24
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
@@ -44,9 +42,9 @@ exports.ProfileImage = ProfileImage;
44
42
  var ActionsFlexSpacer = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1 0 auto;\n"])));
45
43
 
46
44
  exports.ActionsFlexSpacer = ActionsFlexSpacer;
47
- var kudosButtonAnimationTransformation = (0, _core.keyframes)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["{\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n}"])));
45
+ var kudosButtonAnimationTransformation = (0, _react2.keyframes)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["{\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n}"])));
48
46
 
49
- var KudosBlobAnimationStyle = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n animation-name: ", ";\n animation-iteration-count: 1;\n animation-duration: 3s;\n background-image: radial-gradient(\n circle,\n ", " 0%,\n ", " 25%,\n transparent 50%\n );\n overflow: hidden;\n"])), kudosButtonAnimationTransformation, (0, _tokens.token)('color.background.information.pressed', '#85B8FF'), (0, _tokens.token)('color.background.discovery.pressed', '#B8ACF6'));
47
+ var KudosBlobAnimationStyle = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n animation-name: ", ";\n animation-iteration-count: 1;\n animation-duration: 3s;\n background-image: radial-gradient(\n circle,\n ", " 0%,\n ", " 25%,\n transparent 50%\n );\n overflow: hidden;\n"])), kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
50
48
 
51
49
  exports.KudosBlobAnimationStyle = KudosBlobAnimationStyle;
52
50
 
@@ -17,8 +17,6 @@ var _constants = require("@atlaskit/theme/constants");
17
17
 
18
18
  var _typography = require("@atlaskit/theme/typography");
19
19
 
20
- var _tokens = require("@atlaskit/tokens");
21
-
22
20
  var _constants2 = require("./constants");
23
21
 
24
22
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
@@ -39,6 +37,6 @@ var TeamErrorTitle = _styled.default.p(_templateObject4 || (_templateObject4 = (
39
37
 
40
38
  exports.TeamErrorTitle = TeamErrorTitle;
41
39
 
42
- var TeamErrorText = _styled.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), (0, _tokens.token)('color.text.subtlest', _colors.N200), (0, _constants.gridSize)() * 1);
40
+ var TeamErrorText = _styled.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), (0, _constants.gridSize)() * 1);
43
41
 
44
42
  exports.TeamErrorText = TeamErrorText;
@@ -17,8 +17,6 @@ var _constants = require("@atlaskit/theme/constants");
17
17
 
18
18
  var _typography = require("@atlaskit/theme/typography");
19
19
 
20
- var _tokens = require("@atlaskit/tokens");
21
-
22
20
  var _constants2 = require("./constants");
23
21
 
24
22
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
@@ -32,7 +30,7 @@ var CardWrapper = _styled.default.div(_templateObject2 || (_templateObject2 = (0
32
30
  exports.CardWrapper = CardWrapper;
33
31
 
34
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) {
35
- return props.isLoading ? (0, _tokens.token)('color.background.neutral', _colors.N20) : props.image ? "url('".concat(props.image, "')") : _constants2.teamHeaderBgColor;
33
+ return props.isLoading ? "var(--ds-background-neutral, ".concat(_colors.N20, ")") : props.image ? "url('".concat(props.image, "')") : _constants2.teamHeaderBgColor;
36
34
  }, (0, _constants.gridSize)() * 16);
37
35
 
38
36
  exports.CardHeader = CardHeader;
@@ -45,7 +43,7 @@ var TeamName = _styled.default.h6(_templateObject5 || (_templateObject5 = (0, _t
45
43
 
46
44
  exports.TeamName = TeamName;
47
45
 
48
- var MemberCount = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), (0, _tokens.token)('color.text.subtlest', _colors.N200), (0, _constants.gridSize)() * 0.5);
46
+ var MemberCount = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), (0, _constants.gridSize)() * 0.5);
49
47
 
50
48
  exports.MemberCount = MemberCount;
51
49
 
@@ -61,7 +59,7 @@ var Description = _styled.default.span(_templateObject9 || (_templateObject9 = (
61
59
 
62
60
  exports.Description = Description;
63
61
 
64
- var ActionButtons = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color: ", ";\n"])), (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)(), (0, _tokens.token)('elevation.surface.overlay', 'hsla(0, 100%, 100%, 0.2)'));
62
+ var ActionButtons = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color: ", ";\n"])), (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)(), "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))");
65
63
 
66
64
  exports.ActionButtons = ActionButtons;
67
65
 
@@ -11,79 +11,77 @@ var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
11
11
 
12
12
  var _components = require("@atlaskit/theme/components");
13
13
 
14
- var _tokens = require("@atlaskit/tokens");
15
-
16
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
15
 
18
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
17
 
20
18
  var bgColor = (0, _components.themed)({
21
- light: (0, _tokens.token)('elevation.surface.overlay', colors.N0),
22
- dark: (0, _tokens.token)('elevation.surface.overlay', colors.DN50)
19
+ light: "var(--ds-surface-overlay, ".concat(colors.N0, ")"),
20
+ dark: "var(--ds-surface-overlay, ".concat(colors.DN50, ")")
23
21
  });
24
22
  exports.bgColor = bgColor;
25
23
  var headerBgColor = (0, _components.themed)({
26
- light: (0, _tokens.token)('color.background.brand.bold', colors.B500),
27
- dark: (0, _tokens.token)('color.background.brand.bold', colors.B100)
24
+ light: "var(--ds-background-brand-bold, ".concat(colors.B500, ")"),
25
+ dark: "var(--ds-background-brand-bold, ".concat(colors.B100, ")")
28
26
  });
29
27
  exports.headerBgColor = headerBgColor;
30
28
  var teamHeaderBgColor = (0, _components.themed)({
31
- light: (0, _tokens.token)('color.background.neutral', colors.N50),
32
- dark: (0, _tokens.token)('color.background.neutral', colors.N50)
29
+ light: "var(--ds-background-neutral, ".concat(colors.N50, ")"),
30
+ dark: "var(--ds-background-neutral, ".concat(colors.N50, ")")
33
31
  });
34
32
  exports.teamHeaderBgColor = teamHeaderBgColor;
35
33
  var headerBgColorDisabledUser = (0, _components.themed)({
36
- light: (0, _tokens.token)('color.background.disabled', colors.N30),
37
- dark: (0, _tokens.token)('color.background.disabled', colors.B100)
34
+ light: "var(--ds-background-disabled, ".concat(colors.N30, ")"),
35
+ dark: "var(--ds-background-disabled, ".concat(colors.B100, ")")
38
36
  });
39
37
  exports.headerBgColorDisabledUser = headerBgColorDisabledUser;
40
38
  var headerTextColor = (0, _components.themed)({
41
- light: (0, _tokens.token)('color.text.inverse', colors.N0),
42
- dark: (0, _tokens.token)('color.text.inverse', colors.N0)
39
+ light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
40
+ dark: "var(--ds-text-inverse, ".concat(colors.N0, ")")
43
41
  });
44
42
  exports.headerTextColor = headerTextColor;
45
43
  var headerTextColorInactive = (0, _components.themed)({
46
- light: (0, _tokens.token)('color.text', colors.N800),
47
- dark: (0, _tokens.token)('color.text', colors.N0)
44
+ light: "var(--ds-text, ".concat(colors.N800, ")"),
45
+ dark: "var(--ds-text, ".concat(colors.N0, ")")
48
46
  });
49
47
  exports.headerTextColorInactive = headerTextColorInactive;
50
48
  var appLabelBgColor = (0, _components.themed)({
51
- light: (0, _tokens.token)('color.background.neutral', colors.N20),
52
- dark: (0, _tokens.token)('color.background.neutral', colors.N20)
49
+ light: "var(--ds-background-neutral, ".concat(colors.N20, ")"),
50
+ dark: "var(--ds-background-neutral, ".concat(colors.N20, ")")
53
51
  });
54
52
  exports.appLabelBgColor = appLabelBgColor;
55
53
  var appLabelTextColor = (0, _components.themed)({
56
- light: (0, _tokens.token)('color.text', colors.N500),
57
- dark: (0, _tokens.token)('color.text', colors.N500)
54
+ light: "var(--ds-text, ".concat(colors.N500, ")"),
55
+ dark: "var(--ds-text, ".concat(colors.N500, ")")
58
56
  });
59
57
  exports.appLabelTextColor = appLabelTextColor;
60
58
  var labelTextColor = (0, _components.themed)({
61
- light: (0, _tokens.token)('color.text', colors.N800),
62
- dark: (0, _tokens.token)('color.text', colors.DN900)
59
+ light: "var(--ds-text, ".concat(colors.N800, ")"),
60
+ dark: "var(--ds-text, ".concat(colors.DN900, ")")
63
61
  });
64
62
  exports.labelTextColor = labelTextColor;
65
63
  var labelIconColor = (0, _components.themed)({
66
- light: (0, _tokens.token)('color.text.subtlest', colors.N60),
67
- dark: (0, _tokens.token)('color.text.subtlest', colors.DN100)
64
+ light: "var(--ds-text-subtlest, ".concat(colors.N60, ")"),
65
+ dark: "var(--ds-text-subtlest, ".concat(colors.DN100, ")")
68
66
  });
69
67
  exports.labelIconColor = labelIconColor;
70
68
  var errorIconColor = (0, _components.themed)({
71
- light: (0, _tokens.token)('color.text.disabled', colors.N90),
72
- dark: (0, _tokens.token)('color.text.disabled', colors.DN90)
69
+ light: "var(--ds-text-disabled, ".concat(colors.N90, ")"),
70
+ dark: "var(--ds-text-disabled, ".concat(colors.DN90, ")")
73
71
  });
74
72
  exports.errorIconColor = errorIconColor;
75
73
  var errorTitleColor = (0, _components.themed)({
76
- light: (0, _tokens.token)('color.text', colors.N800),
77
- dark: (0, _tokens.token)('color.text', colors.DN800)
74
+ light: "var(--ds-text, ".concat(colors.N800, ")"),
75
+ dark: "var(--ds-text, ".concat(colors.DN800, ")")
78
76
  });
79
77
  exports.errorTitleColor = errorTitleColor;
80
78
  var errorTextColor = (0, _components.themed)({
81
- light: (0, _tokens.token)('color.text.subtlest', colors.N90),
82
- dark: (0, _tokens.token)('color.text.subtlest', colors.DN90)
79
+ light: "var(--ds-text-subtlest, ".concat(colors.N90, ")"),
80
+ dark: "var(--ds-text-subtlest, ".concat(colors.DN90, ")")
83
81
  });
84
82
  exports.errorTextColor = errorTextColor;
85
83
  var boxShadow = (0, _components.themed)({
86
- light: (0, _tokens.token)('elevation.shadow.overlay', "0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A)),
87
- dark: (0, _tokens.token)('elevation.shadow.overlay', "0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A))
84
+ light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A), ")"),
85
+ dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A), ")")
88
86
  });
89
87
  exports.boxShadow = boxShadow;
@@ -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.0"
62
+ packageVersion: "18.1.2"
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.0"
3
+ "version": "18.1.2"
4
4
  }
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
2
  import React from 'react';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const ErrorIllustration = () => {
5
4
  return /*#__PURE__*/React.createElement("svg", {
6
5
  width: "42",
@@ -12,7 +11,7 @@ export const ErrorIllustration = () => {
12
11
  clipPath: "url(#clip0)"
13
12
  }, /*#__PURE__*/React.createElement("path", {
14
13
  d: "M0.649902 0H163.93V212H0.649902V0Z",
15
- fill: token('elevation.surface.overlay', 'white'),
14
+ fill: "var(--ds-surface-overlay, white)",
16
15
  fillOpacity: "0.01"
17
16
  }), /*#__PURE__*/React.createElement("path", {
18
17
  d: "M95.4299 74.1603L161.87 189.24C167.71 199.36 160.41 212 148.73 212H15.8499C4.16994 212 -3.13006 199.35 2.70994 189.24L69.1499 74.1603C74.9899 64.0403 89.5899 64.0403 95.4299 74.1603ZM87.8699 157.71L90.7499 113.36C91.0899 108.07 86.8899 103.58 81.5899 103.58C76.2799 103.58 72.0799 108.06 72.4299 113.36L75.3099 157.71C75.5299 161.02 78.2699 163.6 81.5899 163.6C84.8999 163.6 87.6499 161.02 87.8699 157.71ZM72.0299 181.25C72.0299 186.91 76.7899 191.35 82.4199 190.83C87.2699 190.38 91.1499 186.33 91.2499 181.46C91.3599 176.01 86.9399 171.52 81.5199 171.52C76.2899 171.51 72.0299 175.89 72.0299 181.25Z",
@@ -6,7 +6,6 @@ import Avatar from '@atlaskit/avatar';
6
6
  import Button from '@atlaskit/button/custom-theme-button';
7
7
  import Spinner from '@atlaskit/spinner';
8
8
  import { N0 } from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  import messages from '../../messages';
11
10
  import { ActionButtonGroup, ActionsFlexSpacer, AnimatedKudosButton, CardContainer, CardContent, CardWrapper, KudosBlobAnimation, ProfileImage, SpinnerContainer } from '../../styled/Card';
12
11
  import { actionClicked, fireEvent, profileCardRendered } from '../../util/analytics';
@@ -120,7 +119,7 @@ export const ProfilecardInternal = props => {
120
119
  }, /*#__PURE__*/React.createElement(ProfileImage, null, /*#__PURE__*/React.createElement(Avatar, {
121
120
  size: "xlarge",
122
121
  src: status !== 'closed' ? props.avatarUrl : undefined,
123
- borderColor: token('elevation.shadow.overlay', N0)
122
+ borderColor: `var(--ds-shadow-overlay, ${N0})`
124
123
  })), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(ProfileCardDetails, _extends({}, props, {
125
124
  status: status,
126
125
  fireAnalyticsWithDuration: fireAnalyticsWithDuration
@@ -1,9 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { keyframes } from '@emotion/core';
3
+ import { keyframes } from '@emotion/react';
4
4
  import styled from '@emotion/styled';
5
5
  import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
6
- import { token } from '@atlaskit/tokens';
7
6
  import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
8
7
 
9
8
  const getFullNameMargin = props => props.noMeta ? `${gridSize() * 4.5}px 0 ${gridSize() * 1.5}px 0` : `${gridSize() * 1.5}px 0 0 0`;
@@ -37,8 +36,8 @@ export const KudosBlobAnimationStyle = styled.div`
37
36
  animation-duration: 3s;
38
37
  background-image: radial-gradient(
39
38
  circle,
40
- ${token('color.background.information.pressed', '#85B8FF')} 0%,
41
- ${token('color.background.discovery.pressed', '#B8ACF6')} 25%,
39
+ ${"var(--ds-background-information-pressed, #85B8FF)"} 0%,
40
+ ${"var(--ds-background-discovery-pressed, #B8ACF6)"} 25%,
42
41
  transparent 50%
43
42
  );
44
43
  overflow: hidden;
@@ -2,7 +2,6 @@ import styled from '@emotion/styled';
2
2
  import { N200 } from '@atlaskit/theme/colors';
3
3
  import { gridSize } from '@atlaskit/theme/constants';
4
4
  import { h400 } from '@atlaskit/theme/typography';
5
- import { token } from '@atlaskit/tokens';
6
5
  import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
7
6
  export const ErrorWrapper = styled.div`
8
7
  text-align: center;
@@ -21,6 +20,6 @@ export const TeamErrorTitle = styled.p`
21
20
  ${h400};
22
21
  `;
23
22
  export const TeamErrorText = styled.p`
24
- color: ${token('color.text.subtlest', N200)};
23
+ color: ${`var(--ds-text-subtlest, ${N200})`};
25
24
  margin-top: ${gridSize() * 1}px;
26
25
  `;
@@ -2,7 +2,6 @@ import styled from '@emotion/styled';
2
2
  import { N20, N200 } from '@atlaskit/theme/colors';
3
3
  import { borderRadius, gridSize } from '@atlaskit/theme/constants';
4
4
  import { h600 } from '@atlaskit/theme/typography';
5
- import { token } from '@atlaskit/tokens';
6
5
  import { bgColor, teamHeaderBgColor } from './constants';
7
6
  export const CardTriggerWrapper = styled.div`
8
7
  display: inherit;
@@ -16,7 +15,7 @@ export const CardWrapper = styled.div`
16
15
  -moz-osx-font-smoothing: grayscale;
17
16
  `;
18
17
  export const CardHeader = styled.div`
19
- background-color: ${props => props.isLoading ? token('color.background.neutral', N20) : props.image ? `url('${props.image}')` : teamHeaderBgColor};
18
+ background-color: ${props => props.isLoading ? `var(--ds-background-neutral, ${N20})` : props.image ? `url('${props.image}')` : teamHeaderBgColor};
20
19
  background-repeat: no-repeat;
21
20
  background-position: center;
22
21
  background-size: cover;
@@ -39,7 +38,7 @@ export const TeamName = styled.h6`
39
38
  -webkit-box-orient: vertical;
40
39
  `;
41
40
  export const MemberCount = styled.div`
42
- color: ${token('color.text.subtlest', N200)};
41
+ color: ${`var(--ds-text-subtlest, ${N200})`};
43
42
  margin-top: ${gridSize() * 0.5}px;
44
43
  `;
45
44
  export const AvatarSection = styled.div`
@@ -63,7 +62,7 @@ export const ActionButtons = styled.div`
63
62
  display: flex;
64
63
  justify-content: space-between;
65
64
  margin: ${gridSize() * 3}px -${gridSize() * 3}px 0 -${gridSize()}px;
66
- background-color: ${token('elevation.surface.overlay', 'hsla(0, 100%, 100%, 0.2)')};
65
+ background-color: ${"var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"};
67
66
  `;
68
67
  export const WrappedButton = styled.div`
69
68
  flex-basis: 0;
@@ -1,59 +1,58 @@
1
1
  import * as colors from '@atlaskit/theme/colors';
2
2
  import { themed } from '@atlaskit/theme/components';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const bgColor = themed({
5
- light: token('elevation.surface.overlay', colors.N0),
6
- dark: token('elevation.surface.overlay', colors.DN50)
4
+ light: `var(--ds-surface-overlay, ${colors.N0})`,
5
+ dark: `var(--ds-surface-overlay, ${colors.DN50})`
7
6
  });
8
7
  export const headerBgColor = themed({
9
- light: token('color.background.brand.bold', colors.B500),
10
- dark: token('color.background.brand.bold', colors.B100)
8
+ light: `var(--ds-background-brand-bold, ${colors.B500})`,
9
+ dark: `var(--ds-background-brand-bold, ${colors.B100})`
11
10
  });
12
11
  export const teamHeaderBgColor = themed({
13
- light: token('color.background.neutral', colors.N50),
14
- dark: token('color.background.neutral', colors.N50)
12
+ light: `var(--ds-background-neutral, ${colors.N50})`,
13
+ dark: `var(--ds-background-neutral, ${colors.N50})`
15
14
  });
16
15
  export const headerBgColorDisabledUser = themed({
17
- light: token('color.background.disabled', colors.N30),
18
- dark: token('color.background.disabled', colors.B100)
16
+ light: `var(--ds-background-disabled, ${colors.N30})`,
17
+ dark: `var(--ds-background-disabled, ${colors.B100})`
19
18
  });
20
19
  export const headerTextColor = themed({
21
- light: token('color.text.inverse', colors.N0),
22
- dark: token('color.text.inverse', colors.N0)
20
+ light: `var(--ds-text-inverse, ${colors.N0})`,
21
+ dark: `var(--ds-text-inverse, ${colors.N0})`
23
22
  });
24
23
  export const headerTextColorInactive = themed({
25
- light: token('color.text', colors.N800),
26
- dark: token('color.text', colors.N0)
24
+ light: `var(--ds-text, ${colors.N800})`,
25
+ dark: `var(--ds-text, ${colors.N0})`
27
26
  });
28
27
  export const appLabelBgColor = themed({
29
- light: token('color.background.neutral', colors.N20),
30
- dark: token('color.background.neutral', colors.N20)
28
+ light: `var(--ds-background-neutral, ${colors.N20})`,
29
+ dark: `var(--ds-background-neutral, ${colors.N20})`
31
30
  });
32
31
  export const appLabelTextColor = themed({
33
- light: token('color.text', colors.N500),
34
- dark: token('color.text', colors.N500)
32
+ light: `var(--ds-text, ${colors.N500})`,
33
+ dark: `var(--ds-text, ${colors.N500})`
35
34
  });
36
35
  export const labelTextColor = themed({
37
- light: token('color.text', colors.N800),
38
- dark: token('color.text', colors.DN900)
36
+ light: `var(--ds-text, ${colors.N800})`,
37
+ dark: `var(--ds-text, ${colors.DN900})`
39
38
  });
40
39
  export const labelIconColor = themed({
41
- light: token('color.text.subtlest', colors.N60),
42
- dark: token('color.text.subtlest', colors.DN100)
40
+ light: `var(--ds-text-subtlest, ${colors.N60})`,
41
+ dark: `var(--ds-text-subtlest, ${colors.DN100})`
43
42
  });
44
43
  export const errorIconColor = themed({
45
- light: token('color.text.disabled', colors.N90),
46
- dark: token('color.text.disabled', colors.DN90)
44
+ light: `var(--ds-text-disabled, ${colors.N90})`,
45
+ dark: `var(--ds-text-disabled, ${colors.DN90})`
47
46
  });
48
47
  export const errorTitleColor = themed({
49
- light: token('color.text', colors.N800),
50
- dark: token('color.text', colors.DN800)
48
+ light: `var(--ds-text, ${colors.N800})`,
49
+ dark: `var(--ds-text, ${colors.DN800})`
51
50
  });
52
51
  export const errorTextColor = themed({
53
- light: token('color.text.subtlest', colors.N90),
54
- dark: token('color.text.subtlest', colors.DN90)
52
+ light: `var(--ds-text-subtlest, ${colors.N90})`,
53
+ dark: `var(--ds-text-subtlest, ${colors.DN90})`
55
54
  });
56
55
  export const boxShadow = themed({
57
- light: token('elevation.shadow.overlay', `0 4px 8px -2px ${colors.N50A}, 0 0 1px ${colors.N60A}`),
58
- dark: token('elevation.shadow.overlay', `0 4px 8px -2px ${colors.DN50A}, 0 0 1px ${colors.DN60A}`)
56
+ light: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${colors.N50A}, 0 0 1px ${colors.N60A}`})`,
57
+ dark: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${colors.DN50A}, 0 0 1px ${colors.DN60A}`})`
59
58
  });
@@ -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.0",
41
+ packageVersion: "18.1.2",
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.0"
3
+ "version": "18.1.2"
4
4
  }
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
2
  import React from 'react';
3
- import { token } from '@atlaskit/tokens';
4
3
  export var ErrorIllustration = function ErrorIllustration() {
5
4
  return /*#__PURE__*/React.createElement("svg", {
6
5
  width: "42",
@@ -12,7 +11,7 @@ export var ErrorIllustration = function ErrorIllustration() {
12
11
  clipPath: "url(#clip0)"
13
12
  }, /*#__PURE__*/React.createElement("path", {
14
13
  d: "M0.649902 0H163.93V212H0.649902V0Z",
15
- fill: token('elevation.surface.overlay', 'white'),
14
+ fill: "var(--ds-surface-overlay, white)",
16
15
  fillOpacity: "0.01"
17
16
  }), /*#__PURE__*/React.createElement("path", {
18
17
  d: "M95.4299 74.1603L161.87 189.24C167.71 199.36 160.41 212 148.73 212H15.8499C4.16994 212 -3.13006 199.35 2.70994 189.24L69.1499 74.1603C74.9899 64.0403 89.5899 64.0403 95.4299 74.1603ZM87.8699 157.71L90.7499 113.36C91.0899 108.07 86.8899 103.58 81.5899 103.58C76.2799 103.58 72.0799 108.06 72.4299 113.36L75.3099 157.71C75.5299 161.02 78.2699 163.6 81.5899 163.6C84.8999 163.6 87.6499 161.02 87.8699 157.71ZM72.0299 181.25C72.0299 186.91 76.7899 191.35 82.4199 190.83C87.2699 190.38 91.1499 186.33 91.2499 181.46C91.3599 176.01 86.9399 171.52 81.5199 171.52C76.2899 171.51 72.0299 175.89 72.0299 181.25Z",
@@ -8,7 +8,6 @@ import Avatar from '@atlaskit/avatar';
8
8
  import Button from '@atlaskit/button/custom-theme-button';
9
9
  import Spinner from '@atlaskit/spinner';
10
10
  import { N0 } from '@atlaskit/theme/colors';
11
- import { token } from '@atlaskit/tokens';
12
11
  import messages from '../../messages';
13
12
  import { ActionButtonGroup, ActionsFlexSpacer, AnimatedKudosButton, CardContainer, CardContent, CardWrapper, KudosBlobAnimation, ProfileImage, SpinnerContainer } from '../../styled/Card';
14
13
  import { actionClicked, fireEvent, profileCardRendered } from '../../util/analytics';
@@ -126,7 +125,7 @@ export var ProfilecardInternal = function ProfilecardInternal(props) {
126
125
  }, /*#__PURE__*/React.createElement(ProfileImage, null, /*#__PURE__*/React.createElement(Avatar, {
127
126
  size: "xlarge",
128
127
  src: status !== 'closed' ? props.avatarUrl : undefined,
129
- borderColor: token('elevation.shadow.overlay', N0)
128
+ borderColor: "var(--ds-shadow-overlay, ".concat(N0, ")")
130
129
  })), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(ProfileCardDetails, _extends({}, props, {
131
130
  status: status,
132
131
  fireAnalyticsWithDuration: fireAnalyticsWithDuration
@@ -4,10 +4,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
4
4
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
5
5
 
6
6
  import React from 'react';
7
- import { keyframes } from '@emotion/core';
7
+ import { keyframes } from '@emotion/react';
8
8
  import styled from '@emotion/styled';
9
9
  import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
10
- import { token } from '@atlaskit/tokens';
11
10
  import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
12
11
 
13
12
  var getFullNameMargin = function getFullNameMargin(props) {
@@ -19,7 +18,7 @@ export var CardWrapper = styled.div(_templateObject2 || (_templateObject2 = _tag
19
18
  export var ProfileImage = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: ", "px;\n left: ", "px;\n"])), gridSize() * 3, gridSize() * 3);
20
19
  export var ActionsFlexSpacer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1 0 auto;\n"])));
21
20
  var kudosButtonAnimationTransformation = keyframes(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["{\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n}"])));
22
- export var KudosBlobAnimationStyle = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n animation-name: ", ";\n animation-iteration-count: 1;\n animation-duration: 3s;\n background-image: radial-gradient(\n circle,\n ", " 0%,\n ", " 25%,\n transparent 50%\n );\n overflow: hidden;\n"])), kudosButtonAnimationTransformation, token('color.background.information.pressed', '#85B8FF'), token('color.background.discovery.pressed', '#B8ACF6'));
21
+ export var KudosBlobAnimationStyle = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n animation-name: ", ";\n animation-iteration-count: 1;\n animation-duration: 3s;\n background-image: radial-gradient(\n circle,\n ", " 0%,\n ", " 25%,\n transparent 50%\n );\n overflow: hidden;\n"])), kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
23
22
  export var KudosBlobAnimation = function KudosBlobAnimation(props) {
24
23
  return /*#__PURE__*/React.createElement(KudosBlobAnimationStyle, _extends({
25
24
  className: "kudos-blob-animation"
@@ -6,10 +6,9 @@ import styled from '@emotion/styled';
6
6
  import { N200 } from '@atlaskit/theme/colors';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
8
  import { h400 } from '@atlaskit/theme/typography';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
11
10
  export var ErrorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n padding: ", "px;\n color: ", ";\n"])), gridSize() * 3, errorIconColor);
12
11
  export var ErrorTitle = styled.p(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: ", "px;\n margin: ", "px 0;\n"])), errorTitleColor, gridSize() * 3, gridSize);
13
12
  export var ErrorText = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), errorTextColor);
14
13
  export var TeamErrorTitle = styled.p(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n"])), h400);
15
- export var TeamErrorText = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), token('color.text.subtlest', N200), gridSize() * 1);
14
+ export var TeamErrorText = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"), gridSize() * 1);
@@ -6,20 +6,19 @@ import styled from '@emotion/styled';
6
6
  import { N20, N200 } from '@atlaskit/theme/colors';
7
7
  import { borderRadius, gridSize } from '@atlaskit/theme/constants';
8
8
  import { h600 } from '@atlaskit/theme/typography';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { bgColor, teamHeaderBgColor } from './constants';
11
10
  export var CardTriggerWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inherit;\n"])));
12
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);
13
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) {
14
- return props.isLoading ? token('color.background.neutral', N20) : props.image ? "url('".concat(props.image, "')") : teamHeaderBgColor;
13
+ return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? "url('".concat(props.image, "')") : teamHeaderBgColor;
15
14
  }, gridSize() * 16);
16
15
  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);
17
16
  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);
18
- export var MemberCount = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), token('color.text.subtlest', N200), gridSize() * 0.5);
17
+ export var MemberCount = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"), gridSize() * 0.5);
19
18
  export var AvatarSection = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n margin-left: -2px;\n"])), gridSize() * 2);
20
19
  export var DescriptionWrapper = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n align-items: center;\n display: flex;\n"])), gridSize() * 2);
21
20
  export var Description = styled.span(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n overflow: hidden;\n max-height: 60px;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"])));
22
- export var ActionButtons = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color: ", ";\n"])), gridSize() * 3, gridSize() * 3, gridSize(), token('elevation.surface.overlay', 'hsla(0, 100%, 100%, 0.2)'));
21
+ export var ActionButtons = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color: ", ";\n"])), gridSize() * 3, gridSize() * 3, gridSize(), "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))");
23
22
  export var WrappedButton = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n flex-basis: 0;\n flex-grow: 1;\n margin-left: 8px;\n"])));
24
23
  export var MoreButton = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-left: 8px;\n"])));
25
24
  export var LoadingWrapper = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n text-align: center;\n margin-top: ", "px;\n"])), gridSize() * 5); // export const LoadingTeamName = styled.div`
@@ -1,59 +1,58 @@
1
1
  import * as colors from '@atlaskit/theme/colors';
2
2
  import { themed } from '@atlaskit/theme/components';
3
- import { token } from '@atlaskit/tokens';
4
3
  export var bgColor = themed({
5
- light: token('elevation.surface.overlay', colors.N0),
6
- dark: token('elevation.surface.overlay', colors.DN50)
4
+ light: "var(--ds-surface-overlay, ".concat(colors.N0, ")"),
5
+ dark: "var(--ds-surface-overlay, ".concat(colors.DN50, ")")
7
6
  });
8
7
  export var headerBgColor = themed({
9
- light: token('color.background.brand.bold', colors.B500),
10
- dark: token('color.background.brand.bold', colors.B100)
8
+ light: "var(--ds-background-brand-bold, ".concat(colors.B500, ")"),
9
+ dark: "var(--ds-background-brand-bold, ".concat(colors.B100, ")")
11
10
  });
12
11
  export var teamHeaderBgColor = themed({
13
- light: token('color.background.neutral', colors.N50),
14
- dark: token('color.background.neutral', colors.N50)
12
+ light: "var(--ds-background-neutral, ".concat(colors.N50, ")"),
13
+ dark: "var(--ds-background-neutral, ".concat(colors.N50, ")")
15
14
  });
16
15
  export var headerBgColorDisabledUser = themed({
17
- light: token('color.background.disabled', colors.N30),
18
- dark: token('color.background.disabled', colors.B100)
16
+ light: "var(--ds-background-disabled, ".concat(colors.N30, ")"),
17
+ dark: "var(--ds-background-disabled, ".concat(colors.B100, ")")
19
18
  });
20
19
  export var headerTextColor = themed({
21
- light: token('color.text.inverse', colors.N0),
22
- dark: token('color.text.inverse', colors.N0)
20
+ light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
21
+ dark: "var(--ds-text-inverse, ".concat(colors.N0, ")")
23
22
  });
24
23
  export var headerTextColorInactive = themed({
25
- light: token('color.text', colors.N800),
26
- dark: token('color.text', colors.N0)
24
+ light: "var(--ds-text, ".concat(colors.N800, ")"),
25
+ dark: "var(--ds-text, ".concat(colors.N0, ")")
27
26
  });
28
27
  export var appLabelBgColor = themed({
29
- light: token('color.background.neutral', colors.N20),
30
- dark: token('color.background.neutral', colors.N20)
28
+ light: "var(--ds-background-neutral, ".concat(colors.N20, ")"),
29
+ dark: "var(--ds-background-neutral, ".concat(colors.N20, ")")
31
30
  });
32
31
  export var appLabelTextColor = themed({
33
- light: token('color.text', colors.N500),
34
- dark: token('color.text', colors.N500)
32
+ light: "var(--ds-text, ".concat(colors.N500, ")"),
33
+ dark: "var(--ds-text, ".concat(colors.N500, ")")
35
34
  });
36
35
  export var labelTextColor = themed({
37
- light: token('color.text', colors.N800),
38
- dark: token('color.text', colors.DN900)
36
+ light: "var(--ds-text, ".concat(colors.N800, ")"),
37
+ dark: "var(--ds-text, ".concat(colors.DN900, ")")
39
38
  });
40
39
  export var labelIconColor = themed({
41
- light: token('color.text.subtlest', colors.N60),
42
- dark: token('color.text.subtlest', colors.DN100)
40
+ light: "var(--ds-text-subtlest, ".concat(colors.N60, ")"),
41
+ dark: "var(--ds-text-subtlest, ".concat(colors.DN100, ")")
43
42
  });
44
43
  export var errorIconColor = themed({
45
- light: token('color.text.disabled', colors.N90),
46
- dark: token('color.text.disabled', colors.DN90)
44
+ light: "var(--ds-text-disabled, ".concat(colors.N90, ")"),
45
+ dark: "var(--ds-text-disabled, ".concat(colors.DN90, ")")
47
46
  });
48
47
  export var errorTitleColor = themed({
49
- light: token('color.text', colors.N800),
50
- dark: token('color.text', colors.DN800)
48
+ light: "var(--ds-text, ".concat(colors.N800, ")"),
49
+ dark: "var(--ds-text, ".concat(colors.DN800, ")")
51
50
  });
52
51
  export var errorTextColor = themed({
53
- light: token('color.text.subtlest', colors.N90),
54
- dark: token('color.text.subtlest', colors.DN90)
52
+ light: "var(--ds-text-subtlest, ".concat(colors.N90, ")"),
53
+ dark: "var(--ds-text-subtlest, ".concat(colors.DN90, ")")
55
54
  });
56
55
  export var boxShadow = themed({
57
- light: token('elevation.shadow.overlay', "0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A)),
58
- dark: token('elevation.shadow.overlay', "0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A))
56
+ light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A), ")"),
57
+ dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A), ")")
59
58
  });
@@ -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.0"
51
+ packageVersion: "18.1.2"
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.0"
3
+ "version": "18.1.2"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.1.0",
3
+ "version": "18.1.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/theme": "^12.2.0",
53
53
  "@atlaskit/tokens": "^0.13.0",
54
54
  "@babel/runtime": "^7.0.0",
55
- "@emotion/core": "^10.0.9",
55
+ "@emotion/react": "^11.7.1",
56
56
  "@emotion/styled": "^11.0.0",
57
57
  "date-fns": "^2.17.0",
58
58
  "lodash": "^4.17.21",