@atlaskit/profilecard 18.2.0 → 18.2.1

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.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`20f162117fb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/20f162117fb) - Remove usaged of themed for light and dark theme
8
+
3
9
  ## 18.2.0
4
10
 
5
11
  ### Minor Changes
@@ -17,6 +17,8 @@ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _styled = _interopRequireDefault(require("@emotion/styled"));
19
19
 
20
+ var _colors = require("@atlaskit/theme/colors");
21
+
20
22
  var _constants = require("@atlaskit/theme/constants");
21
23
 
22
24
  var _constants2 = require("./constants");
@@ -106,12 +108,14 @@ var SpinnerContainer = _styled.default.div(_templateObject18 || (_templateObject
106
108
 
107
109
  exports.SpinnerContainer = SpinnerContainer;
108
110
 
109
- var CardContainer = _styled.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", "px;\n ", "\n overflow: hidden;\n"])), function (props) {
111
+ var CardContainer = _styled.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", "px;\n box-shadow: ", ";\n border-radius: ", ";\n\n overflow: hidden;\n"])), function (props) {
110
112
  return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
111
113
  }, function (props) {
112
114
  return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
113
115
  }, (0, _constants.gridSize)() * 12, (0, _constants.gridSize)() * 3, function (props) {
114
- return props.withoutElevation ? '' : "\n box-shadow: ".concat(_constants2.boxShadow, ";\n border-radius: ").concat(_constants.borderRadius, "px;\n ");
116
+ return props.withoutElevation ? '' : "".concat("var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"));
117
+ }, function (props) {
118
+ return props.withoutElevation ? '' : "".concat((0, _constants.borderRadius)(), "px");
115
119
  });
116
120
 
117
121
  exports.CardContainer = CardContainer;
@@ -1,87 +1,35 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime/helpers/typeof");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports.teamHeaderBgColor = exports.labelTextColor = exports.labelIconColor = exports.headerTextColorInactive = exports.headerTextColor = exports.headerBgColorDisabledUser = exports.headerBgColor = exports.errorTitleColor = exports.errorTextColor = exports.errorIconColor = exports.boxShadow = exports.bgColor = exports.appLabelTextColor = exports.appLabelBgColor = void 0;
9
-
10
- var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
11
-
12
- var _components = require("@atlaskit/theme/components");
6
+ exports.teamHeaderBgColor = exports.labelTextColor = exports.labelIconColor = exports.headerTextColorInactive = exports.headerTextColor = exports.headerBgColorDisabledUser = exports.headerBgColor = exports.errorTitleColor = exports.errorTextColor = exports.errorIconColor = exports.bgColor = exports.appLabelTextColor = exports.appLabelBgColor = void 0;
13
7
 
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); }
8
+ var _colors = require("@atlaskit/theme/colors");
15
9
 
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; }
17
-
18
- var bgColor = (0, _components.themed)({
19
- light: "var(--ds-surface-overlay, ".concat(colors.N0, ")"),
20
- dark: "var(--ds-surface-overlay, ".concat(colors.DN50, ")")
21
- });
10
+ var bgColor = "var(--ds-surface-overlay, ".concat(_colors.N0, ")");
22
11
  exports.bgColor = bgColor;
23
- var headerBgColor = (0, _components.themed)({
24
- light: "var(--ds-background-brand-bold, ".concat(colors.B500, ")"),
25
- dark: "var(--ds-background-brand-bold, ".concat(colors.B100, ")")
26
- });
12
+ var headerBgColor = "var(--ds-background-brand-bold, ".concat(_colors.B500, ")");
27
13
  exports.headerBgColor = headerBgColor;
28
- var teamHeaderBgColor = (0, _components.themed)({
29
- light: "var(--ds-background-neutral, ".concat(colors.N50, ")"),
30
- dark: "var(--ds-background-neutral, ".concat(colors.N50, ")")
31
- });
14
+ var teamHeaderBgColor = "var(--ds-background-neutral, ".concat(_colors.N50, ")");
32
15
  exports.teamHeaderBgColor = teamHeaderBgColor;
33
- var headerBgColorDisabledUser = (0, _components.themed)({
34
- light: "var(--ds-background-disabled, ".concat(colors.N30, ")"),
35
- dark: "var(--ds-background-disabled, ".concat(colors.B100, ")")
36
- });
16
+ var headerBgColorDisabledUser = "var(--ds-background-disabled, ".concat(_colors.N30, ")");
37
17
  exports.headerBgColorDisabledUser = headerBgColorDisabledUser;
38
- var headerTextColor = (0, _components.themed)({
39
- light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
40
- dark: "var(--ds-text-inverse, ".concat(colors.N0, ")")
41
- });
18
+ var headerTextColor = "var(--ds-text-inverse, ".concat(_colors.N0, ")");
42
19
  exports.headerTextColor = headerTextColor;
43
- var headerTextColorInactive = (0, _components.themed)({
44
- light: "var(--ds-text, ".concat(colors.N800, ")"),
45
- dark: "var(--ds-text, ".concat(colors.N0, ")")
46
- });
20
+ var headerTextColorInactive = "var(--ds-text, ".concat(_colors.N800, ")");
47
21
  exports.headerTextColorInactive = headerTextColorInactive;
48
- var appLabelBgColor = (0, _components.themed)({
49
- light: "var(--ds-background-neutral, ".concat(colors.N20, ")"),
50
- dark: "var(--ds-background-neutral, ".concat(colors.N20, ")")
51
- });
22
+ var appLabelBgColor = "var(--ds-background-neutral, ".concat(_colors.N20, ")");
52
23
  exports.appLabelBgColor = appLabelBgColor;
53
- var appLabelTextColor = (0, _components.themed)({
54
- light: "var(--ds-text, ".concat(colors.N500, ")"),
55
- dark: "var(--ds-text, ".concat(colors.N500, ")")
56
- });
24
+ var appLabelTextColor = "var(--ds-text, ".concat(_colors.N500, ")");
57
25
  exports.appLabelTextColor = appLabelTextColor;
58
- var labelTextColor = (0, _components.themed)({
59
- light: "var(--ds-text, ".concat(colors.N800, ")"),
60
- dark: "var(--ds-text, ".concat(colors.DN900, ")")
61
- });
26
+ var labelTextColor = "var(--ds-text, ".concat(_colors.N800, ")");
62
27
  exports.labelTextColor = labelTextColor;
63
- var labelIconColor = (0, _components.themed)({
64
- light: "var(--ds-text-subtlest, ".concat(colors.N60, ")"),
65
- dark: "var(--ds-text-subtlest, ".concat(colors.DN100, ")")
66
- });
28
+ var labelIconColor = "var(--ds-text-subtlest, ".concat(_colors.N60, ")");
67
29
  exports.labelIconColor = labelIconColor;
68
- var errorIconColor = (0, _components.themed)({
69
- light: "var(--ds-text-disabled, ".concat(colors.N90, ")"),
70
- dark: "var(--ds-text-disabled, ".concat(colors.DN90, ")")
71
- });
30
+ var errorIconColor = "var(--ds-text-disabled, ".concat(_colors.N90, ")");
72
31
  exports.errorIconColor = errorIconColor;
73
- var errorTitleColor = (0, _components.themed)({
74
- light: "var(--ds-text, ".concat(colors.N800, ")"),
75
- dark: "var(--ds-text, ".concat(colors.DN800, ")")
76
- });
32
+ var errorTitleColor = "var(--ds-text, ".concat(_colors.N800, ")");
77
33
  exports.errorTitleColor = errorTitleColor;
78
- var errorTextColor = (0, _components.themed)({
79
- light: "var(--ds-text-subtlest, ".concat(colors.N90, ")"),
80
- dark: "var(--ds-text-subtlest, ".concat(colors.DN90, ")")
81
- });
82
- exports.errorTextColor = errorTextColor;
83
- var boxShadow = (0, _components.themed)({
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), ")")
86
- });
87
- exports.boxShadow = boxShadow;
34
+ var errorTextColor = "var(--ds-text-subtlest, ".concat(_colors.N90, ")");
35
+ exports.errorTextColor = errorTextColor;
@@ -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.2.0"
62
+ packageVersion: "18.2.1"
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.2.0"
3
+ "version": "18.2.1"
4
4
  }
@@ -2,8 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { keyframes } from '@emotion/react';
4
4
  import styled from '@emotion/styled';
5
+ import { N50A, N60A } from '@atlaskit/theme/colors';
5
6
  import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
6
- import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
7
+ import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
7
8
 
8
9
  const getFullNameMargin = props => props.noMeta ? `${gridSize() * 4.5}px 0 ${gridSize() * 1.5}px 0` : `${gridSize() * 1.5}px 0 0 0`;
9
10
 
@@ -173,12 +174,9 @@ export const CardContainer = styled.div`
173
174
  background-size: 100% ${gridSize() * 12}px;
174
175
  box-sizing: content-box;
175
176
  padding: ${gridSize() * 3}px;
176
- ${props => {
177
- return props.withoutElevation ? '' : `
178
- box-shadow: ${boxShadow};
179
- border-radius: ${borderRadius}px;
180
- `;
181
- }}
177
+ box-shadow: ${props => props.withoutElevation ? '' : `${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`}`};
178
+ border-radius: ${props => props.withoutElevation ? '' : `${borderRadius()}px`};
179
+
182
180
  overflow: hidden;
183
181
  `;
184
182
  export const DetailsLabel = styled.div`
@@ -1,58 +1,14 @@
1
- import * as colors from '@atlaskit/theme/colors';
2
- import { themed } from '@atlaskit/theme/components';
3
- export const bgColor = themed({
4
- light: `var(--ds-surface-overlay, ${colors.N0})`,
5
- dark: `var(--ds-surface-overlay, ${colors.DN50})`
6
- });
7
- export const headerBgColor = themed({
8
- light: `var(--ds-background-brand-bold, ${colors.B500})`,
9
- dark: `var(--ds-background-brand-bold, ${colors.B100})`
10
- });
11
- export const teamHeaderBgColor = themed({
12
- light: `var(--ds-background-neutral, ${colors.N50})`,
13
- dark: `var(--ds-background-neutral, ${colors.N50})`
14
- });
15
- export const headerBgColorDisabledUser = themed({
16
- light: `var(--ds-background-disabled, ${colors.N30})`,
17
- dark: `var(--ds-background-disabled, ${colors.B100})`
18
- });
19
- export const headerTextColor = themed({
20
- light: `var(--ds-text-inverse, ${colors.N0})`,
21
- dark: `var(--ds-text-inverse, ${colors.N0})`
22
- });
23
- export const headerTextColorInactive = themed({
24
- light: `var(--ds-text, ${colors.N800})`,
25
- dark: `var(--ds-text, ${colors.N0})`
26
- });
27
- export const appLabelBgColor = themed({
28
- light: `var(--ds-background-neutral, ${colors.N20})`,
29
- dark: `var(--ds-background-neutral, ${colors.N20})`
30
- });
31
- export const appLabelTextColor = themed({
32
- light: `var(--ds-text, ${colors.N500})`,
33
- dark: `var(--ds-text, ${colors.N500})`
34
- });
35
- export const labelTextColor = themed({
36
- light: `var(--ds-text, ${colors.N800})`,
37
- dark: `var(--ds-text, ${colors.DN900})`
38
- });
39
- export const labelIconColor = themed({
40
- light: `var(--ds-text-subtlest, ${colors.N60})`,
41
- dark: `var(--ds-text-subtlest, ${colors.DN100})`
42
- });
43
- export const errorIconColor = themed({
44
- light: `var(--ds-text-disabled, ${colors.N90})`,
45
- dark: `var(--ds-text-disabled, ${colors.DN90})`
46
- });
47
- export const errorTitleColor = themed({
48
- light: `var(--ds-text, ${colors.N800})`,
49
- dark: `var(--ds-text, ${colors.DN800})`
50
- });
51
- export const errorTextColor = themed({
52
- light: `var(--ds-text-subtlest, ${colors.N90})`,
53
- dark: `var(--ds-text-subtlest, ${colors.DN90})`
54
- });
55
- export const boxShadow = themed({
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}`})`
58
- });
1
+ import { B500, N0, N20, N30, N50, N500, N60, N800, N90 } from '@atlaskit/theme/colors';
2
+ export const bgColor = `var(--ds-surface-overlay, ${N0})`;
3
+ export const headerBgColor = `var(--ds-background-brand-bold, ${B500})`;
4
+ export const teamHeaderBgColor = `var(--ds-background-neutral, ${N50})`;
5
+ export const headerBgColorDisabledUser = `var(--ds-background-disabled, ${N30})`;
6
+ export const headerTextColor = `var(--ds-text-inverse, ${N0})`;
7
+ export const headerTextColorInactive = `var(--ds-text, ${N800})`;
8
+ export const appLabelBgColor = `var(--ds-background-neutral, ${N20})`;
9
+ export const appLabelTextColor = `var(--ds-text, ${N500})`;
10
+ export const labelTextColor = `var(--ds-text, ${N800})`;
11
+ export const labelIconColor = `var(--ds-text-subtlest, ${N60})`;
12
+ export const errorIconColor = `var(--ds-text-disabled, ${N90})`;
13
+ export const errorTitleColor = `var(--ds-text, ${N800})`;
14
+ export const errorTextColor = `var(--ds-text-subtlest, ${N90})`;
@@ -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.2.0",
41
+ packageVersion: "18.2.1",
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.2.0"
3
+ "version": "18.2.1"
4
4
  }
@@ -6,8 +6,9 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
6
6
  import React from 'react';
7
7
  import { keyframes } from '@emotion/react';
8
8
  import styled from '@emotion/styled';
9
+ import { N50A, N60A } from '@atlaskit/theme/colors';
9
10
  import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
10
- import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
11
+ import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
11
12
 
12
13
  var getFullNameMargin = function getFullNameMargin(props) {
13
14
  return props.noMeta ? "".concat(gridSize() * 4.5, "px 0 ").concat(gridSize() * 1.5, "px 0") : "".concat(gridSize() * 1.5, "px 0 0 0");
@@ -40,12 +41,14 @@ export var CustomLozengeContainer = styled(LozengeWrapper)(_templateObject15 ||
40
41
  export var JobTitleLabel = styled.span(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 14px;\n color: ", ";\n margin: 0 0 ", "px 0;\n line-height: ", "em;\n"])), headerTextColor, gridSize() * 1.5, 24 / 14);
41
42
  export var AppTitleLabel = styled.span(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n border-radius: ", ";\n padding: 0 6px;\n width: fit-content;\n font-weight: bold;\n text-transform: uppercase;\n\n font-size: 12px;\n margin: 4px 0 ", "px 0;\n line-height: ", "em;\n"])), appLabelBgColor, appLabelTextColor, borderRadius(), gridSize() * 1.5, 24 / 14);
42
43
  export var SpinnerContainer = styled.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n height: ", "px;\n justify-content: center;\n position: relative;\n"])), gridSize() * 12);
43
- export var CardContainer = styled.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", "px;\n ", "\n overflow: hidden;\n"])), function (props) {
44
+ export var CardContainer = styled.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", "px;\n box-shadow: ", ";\n border-radius: ", ";\n\n overflow: hidden;\n"])), function (props) {
44
45
  return props.isDisabledUser ? headerBgColorDisabledUser : headerBgColor;
45
46
  }, function (props) {
46
47
  return props.isDisabledUser ? headerBgColorDisabledUser : headerBgColor;
47
48
  }, gridSize() * 12, gridSize() * 3, function (props) {
48
- return props.withoutElevation ? '' : "\n box-shadow: ".concat(boxShadow, ";\n border-radius: ").concat(borderRadius, "px;\n ");
49
+ return props.withoutElevation ? '' : "".concat("var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"));
50
+ }, function (props) {
51
+ return props.withoutElevation ? '' : "".concat(borderRadius(), "px");
49
52
  });
50
53
  export var DetailsLabel = styled.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n line-height: ", "px;\n font-size: ", "px;\n margin: ", "px 0 0 0;\n white-space: nowrap;\n\n & + & {\n margin-top: ", "px;\n }\n"])), gridSize() * 3, gridSize() * 1.5, gridSize() * 2, gridSize() / 4);
51
54
  export var DetailsLabelIcon = styled.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", "px;\n height: ", "px;\n padding: ", "px;\n vertical-align: top;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])), labelIconColor, gridSize() * 2, gridSize() * 2, gridSize() / 2);
@@ -1,58 +1,14 @@
1
- import * as colors from '@atlaskit/theme/colors';
2
- import { themed } from '@atlaskit/theme/components';
3
- export var bgColor = themed({
4
- light: "var(--ds-surface-overlay, ".concat(colors.N0, ")"),
5
- dark: "var(--ds-surface-overlay, ".concat(colors.DN50, ")")
6
- });
7
- export var headerBgColor = themed({
8
- light: "var(--ds-background-brand-bold, ".concat(colors.B500, ")"),
9
- dark: "var(--ds-background-brand-bold, ".concat(colors.B100, ")")
10
- });
11
- export var teamHeaderBgColor = themed({
12
- light: "var(--ds-background-neutral, ".concat(colors.N50, ")"),
13
- dark: "var(--ds-background-neutral, ".concat(colors.N50, ")")
14
- });
15
- export var headerBgColorDisabledUser = themed({
16
- light: "var(--ds-background-disabled, ".concat(colors.N30, ")"),
17
- dark: "var(--ds-background-disabled, ".concat(colors.B100, ")")
18
- });
19
- export var headerTextColor = themed({
20
- light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
21
- dark: "var(--ds-text-inverse, ".concat(colors.N0, ")")
22
- });
23
- export var headerTextColorInactive = themed({
24
- light: "var(--ds-text, ".concat(colors.N800, ")"),
25
- dark: "var(--ds-text, ".concat(colors.N0, ")")
26
- });
27
- export var appLabelBgColor = themed({
28
- light: "var(--ds-background-neutral, ".concat(colors.N20, ")"),
29
- dark: "var(--ds-background-neutral, ".concat(colors.N20, ")")
30
- });
31
- export var appLabelTextColor = themed({
32
- light: "var(--ds-text, ".concat(colors.N500, ")"),
33
- dark: "var(--ds-text, ".concat(colors.N500, ")")
34
- });
35
- export var labelTextColor = themed({
36
- light: "var(--ds-text, ".concat(colors.N800, ")"),
37
- dark: "var(--ds-text, ".concat(colors.DN900, ")")
38
- });
39
- export var labelIconColor = themed({
40
- light: "var(--ds-text-subtlest, ".concat(colors.N60, ")"),
41
- dark: "var(--ds-text-subtlest, ".concat(colors.DN100, ")")
42
- });
43
- export var errorIconColor = themed({
44
- light: "var(--ds-text-disabled, ".concat(colors.N90, ")"),
45
- dark: "var(--ds-text-disabled, ".concat(colors.DN90, ")")
46
- });
47
- export var errorTitleColor = themed({
48
- light: "var(--ds-text, ".concat(colors.N800, ")"),
49
- dark: "var(--ds-text, ".concat(colors.DN800, ")")
50
- });
51
- export var errorTextColor = themed({
52
- light: "var(--ds-text-subtlest, ".concat(colors.N90, ")"),
53
- dark: "var(--ds-text-subtlest, ".concat(colors.DN90, ")")
54
- });
55
- export var boxShadow = themed({
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), ")")
58
- });
1
+ import { B500, N0, N20, N30, N50, N500, N60, N800, N90 } from '@atlaskit/theme/colors';
2
+ export var bgColor = "var(--ds-surface-overlay, ".concat(N0, ")");
3
+ export var headerBgColor = "var(--ds-background-brand-bold, ".concat(B500, ")");
4
+ export var teamHeaderBgColor = "var(--ds-background-neutral, ".concat(N50, ")");
5
+ export var headerBgColorDisabledUser = "var(--ds-background-disabled, ".concat(N30, ")");
6
+ export var headerTextColor = "var(--ds-text-inverse, ".concat(N0, ")");
7
+ export var headerTextColorInactive = "var(--ds-text, ".concat(N800, ")");
8
+ export var appLabelBgColor = "var(--ds-background-neutral, ".concat(N20, ")");
9
+ export var appLabelTextColor = "var(--ds-text, ".concat(N500, ")");
10
+ export var labelTextColor = "var(--ds-text, ".concat(N800, ")");
11
+ export var labelIconColor = "var(--ds-text-subtlest, ".concat(N60, ")");
12
+ export var errorIconColor = "var(--ds-text-disabled, ".concat(N90, ")");
13
+ export var errorTitleColor = "var(--ds-text, ".concat(N800, ")");
14
+ export var errorTextColor = "var(--ds-text-subtlest, ".concat(N90, ")");
@@ -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.2.0"
51
+ packageVersion: "18.2.1"
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.2.0"
3
+ "version": "18.2.1"
4
4
  }
@@ -1,14 +1,13 @@
1
- export declare const bgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-surface-overlay)">;
2
- export declare const headerBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-brand-bold)">;
3
- export declare const teamHeaderBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral)">;
4
- export declare const headerBgColorDisabledUser: import("@atlaskit/theme").ThemedValue<"var(--ds-background-disabled)">;
5
- export declare const headerTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-inverse)">;
6
- export declare const headerTextColorInactive: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
7
- export declare const appLabelBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral)">;
8
- export declare const appLabelTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
9
- export declare const labelTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
10
- export declare const labelIconColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-subtlest)">;
11
- export declare const errorIconColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-disabled)">;
12
- export declare const errorTitleColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
13
- export declare const errorTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-subtlest)">;
14
- export declare const boxShadow: import("@atlaskit/theme").ThemedValue<"var(--ds-shadow-overlay)">;
1
+ export declare const bgColor: "var(--ds-surface-overlay)";
2
+ export declare const headerBgColor: "var(--ds-background-brand-bold)";
3
+ export declare const teamHeaderBgColor: "var(--ds-background-neutral)";
4
+ export declare const headerBgColorDisabledUser: "var(--ds-background-disabled)";
5
+ export declare const headerTextColor: "var(--ds-text-inverse)";
6
+ export declare const headerTextColorInactive: "var(--ds-text)";
7
+ export declare const appLabelBgColor: "var(--ds-background-neutral)";
8
+ export declare const appLabelTextColor: "var(--ds-text)";
9
+ export declare const labelTextColor: "var(--ds-text)";
10
+ export declare const labelIconColor: "var(--ds-text-subtlest)";
11
+ export declare const errorIconColor: "var(--ds-text-disabled)";
12
+ export declare const errorTitleColor: "var(--ds-text)";
13
+ export declare const errorTextColor: "var(--ds-text-subtlest)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.2.0",
3
+ "version": "18.2.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"