@atlaskit/profilecard 16.2.1 → 16.2.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 +7 -0
- package/dist/cjs/components/Error/ErrorIllustration.js +1 -1
- package/dist/cjs/components/User/ProfileCard.js +1 -1
- package/dist/cjs/styled/Error.js +1 -1
- package/dist/cjs/styled/TeamCard.js +3 -3
- package/dist/cjs/styled/constants.js +24 -24
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Error/ErrorIllustration.js +1 -1
- package/dist/es2019/components/User/ProfileCard.js +1 -1
- package/dist/es2019/styled/Error.js +1 -1
- package/dist/es2019/styled/TeamCard.js +3 -3
- package/dist/es2019/styled/constants.js +24 -24
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Error/ErrorIllustration.js +1 -1
- package/dist/esm/components/User/ProfileCard.js +1 -1
- package/dist/esm/styled/Error.js +1 -1
- package/dist/esm/styled/TeamCard.js +3 -3
- package/dist/esm/styled/constants.js +24 -24
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/styled/constants.d.ts +12 -12
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 16.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 16.2.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -23,7 +23,7 @@ var ErrorIllustration = function ErrorIllustration() {
|
|
|
23
23
|
clipPath: "url(#clip0)"
|
|
24
24
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
25
25
|
d: "M0.649902 0H163.93V212H0.649902V0Z",
|
|
26
|
-
fill: (0, _tokens.token)('
|
|
26
|
+
fill: (0, _tokens.token)('elevation.surface.overlay', 'white'),
|
|
27
27
|
fillOpacity: "0.01"
|
|
28
28
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
29
29
|
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",
|
|
@@ -325,7 +325,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
325
325
|
}, /*#__PURE__*/_react.default.createElement(_Card.ProfileImage, null, /*#__PURE__*/_react.default.createElement(_avatar.default, {
|
|
326
326
|
size: "xlarge",
|
|
327
327
|
src: this.props.status !== 'closed' ? this.props.avatarUrl : undefined,
|
|
328
|
-
borderColor: (0, _tokens.token)('
|
|
328
|
+
borderColor: (0, _tokens.token)('elevation.surface.overlay', _colors.N0)
|
|
329
329
|
})), /*#__PURE__*/_react.default.createElement(_Card.CardContent, null, this.renderCardDetails(), actions ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Card.ActionsFlexSpacer, null), actions) : null));
|
|
330
330
|
}
|
|
331
331
|
|
package/dist/cjs/styled/Error.js
CHANGED
|
@@ -39,6 +39,6 @@ var TeamErrorTitle = _styledComponents.default.p(_templateObject4 || (_templateO
|
|
|
39
39
|
|
|
40
40
|
exports.TeamErrorTitle = TeamErrorTitle;
|
|
41
41
|
|
|
42
|
-
var TeamErrorText = _styledComponents.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), (0, _tokens.token)('color.text.
|
|
42
|
+
var TeamErrorText = _styledComponents.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);
|
|
43
43
|
|
|
44
44
|
exports.TeamErrorText = TeamErrorText;
|
|
@@ -36,7 +36,7 @@ exports.CardTriggerWrapper = CardTriggerWrapper;
|
|
|
36
36
|
var CardWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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"])), _constants2.bgColor, _constants.borderRadius, (0, _constants.gridSize)() * 40);
|
|
37
37
|
|
|
38
38
|
exports.CardWrapper = CardWrapper;
|
|
39
|
-
var loadingImage = (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), (0, _tokens.token)('color.background.
|
|
39
|
+
var loadingImage = (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), (0, _tokens.token)('color.background.neutral', _colors.N20));
|
|
40
40
|
var defaultImage = (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), _constants2.teamHeaderBgColor);
|
|
41
41
|
|
|
42
42
|
var CardHeader = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n background-repeat: no-repeat;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
|
|
@@ -61,7 +61,7 @@ var TeamName = _styledComponents.default.h6(_templateObject8 || (_templateObject
|
|
|
61
61
|
|
|
62
62
|
exports.TeamName = TeamName;
|
|
63
63
|
|
|
64
|
-
var MemberCount = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), (0, _tokens.token)('color.text.
|
|
64
|
+
var MemberCount = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), (0, _tokens.token)('color.text.subtlest', _colors.N200), (0, _constants.gridSize)() * 0.5);
|
|
65
65
|
|
|
66
66
|
exports.MemberCount = MemberCount;
|
|
67
67
|
|
|
@@ -77,7 +77,7 @@ var Description = _styledComponents.default.span(_templateObject12 || (_template
|
|
|
77
77
|
|
|
78
78
|
exports.Description = Description;
|
|
79
79
|
|
|
80
|
-
var ActionButtons = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (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)('
|
|
80
|
+
var ActionButtons = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (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)'));
|
|
81
81
|
|
|
82
82
|
exports.ActionButtons = ActionButtons;
|
|
83
83
|
|
|
@@ -18,18 +18,18 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
18
18
|
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
19
|
|
|
20
20
|
var bgColor = (0, _components.themed)({
|
|
21
|
-
light: (0, _tokens.token)('
|
|
22
|
-
dark: (0, _tokens.token)('
|
|
21
|
+
light: (0, _tokens.token)('elevation.surface.overlay', colors.N0),
|
|
22
|
+
dark: (0, _tokens.token)('elevation.surface.overlay', colors.DN50)
|
|
23
23
|
});
|
|
24
24
|
exports.bgColor = bgColor;
|
|
25
25
|
var headerBgColor = (0, _components.themed)({
|
|
26
|
-
light: (0, _tokens.token)('color.background.
|
|
27
|
-
dark: (0, _tokens.token)('color.background.
|
|
26
|
+
light: (0, _tokens.token)('color.background.brand.bold', colors.B500),
|
|
27
|
+
dark: (0, _tokens.token)('color.background.brand.bold', colors.B100)
|
|
28
28
|
});
|
|
29
29
|
exports.headerBgColor = headerBgColor;
|
|
30
30
|
var teamHeaderBgColor = (0, _components.themed)({
|
|
31
|
-
light: (0, _tokens.token)('color.background.
|
|
32
|
-
dark: (0, _tokens.token)('color.background.
|
|
31
|
+
light: (0, _tokens.token)('color.background.neutral', colors.N50),
|
|
32
|
+
dark: (0, _tokens.token)('color.background.neutral', colors.N50)
|
|
33
33
|
});
|
|
34
34
|
exports.teamHeaderBgColor = teamHeaderBgColor;
|
|
35
35
|
var headerBgColorDisabledUser = (0, _components.themed)({
|
|
@@ -38,33 +38,33 @@ var headerBgColorDisabledUser = (0, _components.themed)({
|
|
|
38
38
|
});
|
|
39
39
|
exports.headerBgColorDisabledUser = headerBgColorDisabledUser;
|
|
40
40
|
var headerTextColor = (0, _components.themed)({
|
|
41
|
-
light: (0, _tokens.token)('color.text.
|
|
42
|
-
dark: (0, _tokens.token)('color.text.
|
|
41
|
+
light: (0, _tokens.token)('color.text.inverse', colors.N0),
|
|
42
|
+
dark: (0, _tokens.token)('color.text.inverse', colors.N0)
|
|
43
43
|
});
|
|
44
44
|
exports.headerTextColor = headerTextColor;
|
|
45
45
|
var headerTextColorInactive = (0, _components.themed)({
|
|
46
|
-
light: (0, _tokens.token)('color.text
|
|
47
|
-
dark: (0, _tokens.token)('color.text
|
|
46
|
+
light: (0, _tokens.token)('color.text', colors.N800),
|
|
47
|
+
dark: (0, _tokens.token)('color.text', colors.N0)
|
|
48
48
|
});
|
|
49
49
|
exports.headerTextColorInactive = headerTextColorInactive;
|
|
50
50
|
var appLabelBgColor = (0, _components.themed)({
|
|
51
|
-
light: (0, _tokens.token)('color.background.
|
|
52
|
-
dark: (0, _tokens.token)('color.background.
|
|
51
|
+
light: (0, _tokens.token)('color.background.neutral', colors.N20),
|
|
52
|
+
dark: (0, _tokens.token)('color.background.neutral', colors.N20)
|
|
53
53
|
});
|
|
54
54
|
exports.appLabelBgColor = appLabelBgColor;
|
|
55
55
|
var appLabelTextColor = (0, _components.themed)({
|
|
56
|
-
light: (0, _tokens.token)('color.text
|
|
57
|
-
dark: (0, _tokens.token)('color.text
|
|
56
|
+
light: (0, _tokens.token)('color.text', colors.N500),
|
|
57
|
+
dark: (0, _tokens.token)('color.text', colors.N500)
|
|
58
58
|
});
|
|
59
59
|
exports.appLabelTextColor = appLabelTextColor;
|
|
60
60
|
var labelTextColor = (0, _components.themed)({
|
|
61
|
-
light: (0, _tokens.token)('color.text
|
|
62
|
-
dark: (0, _tokens.token)('color.text
|
|
61
|
+
light: (0, _tokens.token)('color.text', colors.N800),
|
|
62
|
+
dark: (0, _tokens.token)('color.text', colors.DN900)
|
|
63
63
|
});
|
|
64
64
|
exports.labelTextColor = labelTextColor;
|
|
65
65
|
var labelIconColor = (0, _components.themed)({
|
|
66
|
-
light: (0, _tokens.token)('color.text.
|
|
67
|
-
dark: (0, _tokens.token)('color.text.
|
|
66
|
+
light: (0, _tokens.token)('color.text.subtlest', colors.N60),
|
|
67
|
+
dark: (0, _tokens.token)('color.text.subtlest', colors.DN100)
|
|
68
68
|
});
|
|
69
69
|
exports.labelIconColor = labelIconColor;
|
|
70
70
|
var errorIconColor = (0, _components.themed)({
|
|
@@ -73,17 +73,17 @@ var errorIconColor = (0, _components.themed)({
|
|
|
73
73
|
});
|
|
74
74
|
exports.errorIconColor = errorIconColor;
|
|
75
75
|
var errorTitleColor = (0, _components.themed)({
|
|
76
|
-
light: (0, _tokens.token)('color.text
|
|
77
|
-
dark: (0, _tokens.token)('color.text
|
|
76
|
+
light: (0, _tokens.token)('color.text', colors.N800),
|
|
77
|
+
dark: (0, _tokens.token)('color.text', colors.DN800)
|
|
78
78
|
});
|
|
79
79
|
exports.errorTitleColor = errorTitleColor;
|
|
80
80
|
var errorTextColor = (0, _components.themed)({
|
|
81
|
-
light: (0, _tokens.token)('color.text.
|
|
82
|
-
dark: (0, _tokens.token)('color.text.
|
|
81
|
+
light: (0, _tokens.token)('color.text.subtlest', colors.N90),
|
|
82
|
+
dark: (0, _tokens.token)('color.text.subtlest', colors.DN90)
|
|
83
83
|
});
|
|
84
84
|
exports.errorTextColor = errorTextColor;
|
|
85
85
|
var boxShadow = (0, _components.themed)({
|
|
86
|
-
light: (0, _tokens.token)('shadow.overlay', "0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A)),
|
|
87
|
-
dark: (0, _tokens.token)('shadow.overlay', "0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A))
|
|
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))
|
|
88
88
|
});
|
|
89
89
|
exports.boxShadow = boxShadow;
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "16.2.
|
|
34
|
+
packageVersion: "16.2.2"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: (0, _performance.getPageTime)()
|
|
37
37
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -12,7 +12,7 @@ export const ErrorIllustration = () => {
|
|
|
12
12
|
clipPath: "url(#clip0)"
|
|
13
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
14
|
d: "M0.649902 0H163.93V212H0.649902V0Z",
|
|
15
|
-
fill: token('
|
|
15
|
+
fill: token('elevation.surface.overlay', 'white'),
|
|
16
16
|
fillOpacity: "0.01"
|
|
17
17
|
}), /*#__PURE__*/React.createElement("path", {
|
|
18
18
|
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",
|
|
@@ -247,7 +247,7 @@ export default class Profilecard extends React.PureComponent {
|
|
|
247
247
|
}, /*#__PURE__*/React.createElement(ProfileImage, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
248
248
|
size: "xlarge",
|
|
249
249
|
src: this.props.status !== 'closed' ? this.props.avatarUrl : undefined,
|
|
250
|
-
borderColor: token('
|
|
250
|
+
borderColor: token('elevation.surface.overlay', N0)
|
|
251
251
|
})), /*#__PURE__*/React.createElement(CardContent, null, this.renderCardDetails(), actions ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), actions) : null));
|
|
252
252
|
}
|
|
253
253
|
|
|
@@ -16,7 +16,7 @@ export const CardWrapper = styled.div`
|
|
|
16
16
|
-moz-osx-font-smoothing: grayscale;
|
|
17
17
|
`;
|
|
18
18
|
const loadingImage = css`
|
|
19
|
-
background-color: ${token('color.background.
|
|
19
|
+
background-color: ${token('color.background.neutral', N20)};
|
|
20
20
|
`;
|
|
21
21
|
const defaultImage = css`
|
|
22
22
|
background-color: ${teamHeaderBgColor};
|
|
@@ -58,7 +58,7 @@ export const TeamName = styled.h6`
|
|
|
58
58
|
-webkit-box-orient: vertical;
|
|
59
59
|
`;
|
|
60
60
|
export const MemberCount = styled.div`
|
|
61
|
-
color: ${token('color.text.
|
|
61
|
+
color: ${token('color.text.subtlest', N200)};
|
|
62
62
|
margin-top: ${gridSize() * 0.5}px;
|
|
63
63
|
`;
|
|
64
64
|
export const AvatarSection = styled.div`
|
|
@@ -82,7 +82,7 @@ export const ActionButtons = styled.div`
|
|
|
82
82
|
display: flex;
|
|
83
83
|
justify-content: space-between;
|
|
84
84
|
margin: ${gridSize() * 3}px -${gridSize() * 3}px 0 -${gridSize()}px;
|
|
85
|
-
background-color: ${token('
|
|
85
|
+
background-color: ${token('elevation.surface.overlay', 'hsla(0, 100%, 100%, 0.2)')};
|
|
86
86
|
`;
|
|
87
87
|
export const WrappedButton = styled.div`
|
|
88
88
|
flex-basis: 0;
|
|
@@ -2,58 +2,58 @@ import * as colors from '@atlaskit/theme/colors';
|
|
|
2
2
|
import { themed } from '@atlaskit/theme/components';
|
|
3
3
|
import { token } from '@atlaskit/tokens';
|
|
4
4
|
export const bgColor = themed({
|
|
5
|
-
light: token('
|
|
6
|
-
dark: token('
|
|
5
|
+
light: token('elevation.surface.overlay', colors.N0),
|
|
6
|
+
dark: token('elevation.surface.overlay', colors.DN50)
|
|
7
7
|
});
|
|
8
8
|
export const headerBgColor = themed({
|
|
9
|
-
light: token('color.background.
|
|
10
|
-
dark: token('color.background.
|
|
9
|
+
light: token('color.background.brand.bold', colors.B500),
|
|
10
|
+
dark: token('color.background.brand.bold', colors.B100)
|
|
11
11
|
});
|
|
12
12
|
export const teamHeaderBgColor = themed({
|
|
13
|
-
light: token('color.background.
|
|
14
|
-
dark: token('color.background.
|
|
13
|
+
light: token('color.background.neutral', colors.N50),
|
|
14
|
+
dark: token('color.background.neutral', colors.N50)
|
|
15
15
|
});
|
|
16
16
|
export const headerBgColorDisabledUser = themed({
|
|
17
17
|
light: token('color.background.disabled', colors.N30),
|
|
18
18
|
dark: token('color.background.disabled', colors.B100)
|
|
19
19
|
});
|
|
20
20
|
export const headerTextColor = themed({
|
|
21
|
-
light: token('color.text.
|
|
22
|
-
dark: token('color.text.
|
|
21
|
+
light: token('color.text.inverse', colors.N0),
|
|
22
|
+
dark: token('color.text.inverse', colors.N0)
|
|
23
23
|
});
|
|
24
24
|
export const headerTextColorInactive = themed({
|
|
25
|
-
light: token('color.text
|
|
26
|
-
dark: token('color.text
|
|
25
|
+
light: token('color.text', colors.N800),
|
|
26
|
+
dark: token('color.text', colors.N0)
|
|
27
27
|
});
|
|
28
28
|
export const appLabelBgColor = themed({
|
|
29
|
-
light: token('color.background.
|
|
30
|
-
dark: token('color.background.
|
|
29
|
+
light: token('color.background.neutral', colors.N20),
|
|
30
|
+
dark: token('color.background.neutral', colors.N20)
|
|
31
31
|
});
|
|
32
32
|
export const appLabelTextColor = themed({
|
|
33
|
-
light: token('color.text
|
|
34
|
-
dark: token('color.text
|
|
33
|
+
light: token('color.text', colors.N500),
|
|
34
|
+
dark: token('color.text', colors.N500)
|
|
35
35
|
});
|
|
36
36
|
export const labelTextColor = themed({
|
|
37
|
-
light: token('color.text
|
|
38
|
-
dark: token('color.text
|
|
37
|
+
light: token('color.text', colors.N800),
|
|
38
|
+
dark: token('color.text', colors.DN900)
|
|
39
39
|
});
|
|
40
40
|
export const labelIconColor = themed({
|
|
41
|
-
light: token('color.text.
|
|
42
|
-
dark: token('color.text.
|
|
41
|
+
light: token('color.text.subtlest', colors.N60),
|
|
42
|
+
dark: token('color.text.subtlest', colors.DN100)
|
|
43
43
|
});
|
|
44
44
|
export const errorIconColor = themed({
|
|
45
45
|
light: token('color.text.disabled', colors.N90),
|
|
46
46
|
dark: token('color.text.disabled', colors.DN90)
|
|
47
47
|
});
|
|
48
48
|
export const errorTitleColor = themed({
|
|
49
|
-
light: token('color.text
|
|
50
|
-
dark: token('color.text
|
|
49
|
+
light: token('color.text', colors.N800),
|
|
50
|
+
dark: token('color.text', colors.DN800)
|
|
51
51
|
});
|
|
52
52
|
export const errorTextColor = themed({
|
|
53
|
-
light: token('color.text.
|
|
54
|
-
dark: token('color.text.
|
|
53
|
+
light: token('color.text.subtlest', colors.N90),
|
|
54
|
+
dark: token('color.text.subtlest', colors.DN90)
|
|
55
55
|
});
|
|
56
56
|
export const boxShadow = themed({
|
|
57
|
-
light: token('shadow.overlay', `0 4px 8px -2px ${colors.N50A}, 0 0 1px ${colors.N60A}`),
|
|
58
|
-
dark: token('shadow.overlay', `0 4px 8px -2px ${colors.DN50A}, 0 0 1px ${colors.DN60A}`)
|
|
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}`)
|
|
59
59
|
});
|
|
@@ -11,7 +11,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "16.2.
|
|
14
|
+
packageVersion: "16.2.2",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: getPageTime()
|
|
17
17
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -12,7 +12,7 @@ export var ErrorIllustration = function ErrorIllustration() {
|
|
|
12
12
|
clipPath: "url(#clip0)"
|
|
13
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
14
|
d: "M0.649902 0H163.93V212H0.649902V0Z",
|
|
15
|
-
fill: token('
|
|
15
|
+
fill: token('elevation.surface.overlay', 'white'),
|
|
16
16
|
fillOpacity: "0.01"
|
|
17
17
|
}), /*#__PURE__*/React.createElement("path", {
|
|
18
18
|
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",
|
|
@@ -298,7 +298,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
298
298
|
}, /*#__PURE__*/React.createElement(ProfileImage, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
299
299
|
size: "xlarge",
|
|
300
300
|
src: this.props.status !== 'closed' ? this.props.avatarUrl : undefined,
|
|
301
|
-
borderColor: token('
|
|
301
|
+
borderColor: token('elevation.surface.overlay', N0)
|
|
302
302
|
})), /*#__PURE__*/React.createElement(CardContent, null, this.renderCardDetails(), actions ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), actions) : null));
|
|
303
303
|
}
|
|
304
304
|
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -12,4 +12,4 @@ export var ErrorWrapper = styled.div(_templateObject || (_templateObject = _tagg
|
|
|
12
12
|
export var ErrorTitle = styled.p(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: ", "px;\n margin: ", "px 0;\n"])), errorTitleColor, gridSize() * 3, gridSize);
|
|
13
13
|
export var ErrorText = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), errorTextColor);
|
|
14
14
|
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.
|
|
15
|
+
export var TeamErrorText = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), token('color.text.subtlest', N200), gridSize() * 1);
|
|
@@ -10,7 +10,7 @@ import { token } from '@atlaskit/tokens';
|
|
|
10
10
|
import { bgColor, teamHeaderBgColor } from '../styled/constants';
|
|
11
11
|
export var CardTriggerWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inherit;\n"])));
|
|
12
12
|
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
|
-
var loadingImage = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), token('color.background.
|
|
13
|
+
var loadingImage = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), token('color.background.neutral', N20));
|
|
14
14
|
var defaultImage = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), teamHeaderBgColor);
|
|
15
15
|
export var CardHeader = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", ";\n background-repeat: no-repeat;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
|
|
16
16
|
if (props.isLoading) {
|
|
@@ -25,11 +25,11 @@ export var CardHeader = styled.div(_templateObject5 || (_templateObject5 = _tagg
|
|
|
25
25
|
}, gridSize() * 16);
|
|
26
26
|
export var CardContent = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n min-height: ", "px;\n"])), gridSize() * 3, gridSize() * 13);
|
|
27
27
|
export var TeamName = styled.h6(_templateObject8 || (_templateObject8 = _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);
|
|
28
|
-
export var MemberCount = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), token('color.text.
|
|
28
|
+
export var MemberCount = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), token('color.text.subtlest', N200), gridSize() * 0.5);
|
|
29
29
|
export var AvatarSection = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n margin-left: -2px;\n"])), gridSize() * 2);
|
|
30
30
|
export var DescriptionWrapper = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n align-items: center;\n display: flex;\n"])), gridSize() * 2);
|
|
31
31
|
export var Description = styled.span(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n overflow: hidden;\n max-height: 60px;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"])));
|
|
32
|
-
export var ActionButtons = styled.div(_templateObject13 || (_templateObject13 = _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('
|
|
32
|
+
export var ActionButtons = styled.div(_templateObject13 || (_templateObject13 = _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)'));
|
|
33
33
|
export var WrappedButton = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n flex-basis: 0;\n flex-grow: 1;\n margin-left: 8px;\n"])));
|
|
34
34
|
export var MoreButton = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-left: 8px;\n"])));
|
|
35
35
|
export var LoadingWrapper = styled.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n text-align: center;\n margin-top: ", "px;\n"])), gridSize() * 5); // export const LoadingTeamName = styled.div`
|
|
@@ -2,58 +2,58 @@ import * as colors from '@atlaskit/theme/colors';
|
|
|
2
2
|
import { themed } from '@atlaskit/theme/components';
|
|
3
3
|
import { token } from '@atlaskit/tokens';
|
|
4
4
|
export var bgColor = themed({
|
|
5
|
-
light: token('
|
|
6
|
-
dark: token('
|
|
5
|
+
light: token('elevation.surface.overlay', colors.N0),
|
|
6
|
+
dark: token('elevation.surface.overlay', colors.DN50)
|
|
7
7
|
});
|
|
8
8
|
export var headerBgColor = themed({
|
|
9
|
-
light: token('color.background.
|
|
10
|
-
dark: token('color.background.
|
|
9
|
+
light: token('color.background.brand.bold', colors.B500),
|
|
10
|
+
dark: token('color.background.brand.bold', colors.B100)
|
|
11
11
|
});
|
|
12
12
|
export var teamHeaderBgColor = themed({
|
|
13
|
-
light: token('color.background.
|
|
14
|
-
dark: token('color.background.
|
|
13
|
+
light: token('color.background.neutral', colors.N50),
|
|
14
|
+
dark: token('color.background.neutral', colors.N50)
|
|
15
15
|
});
|
|
16
16
|
export var headerBgColorDisabledUser = themed({
|
|
17
17
|
light: token('color.background.disabled', colors.N30),
|
|
18
18
|
dark: token('color.background.disabled', colors.B100)
|
|
19
19
|
});
|
|
20
20
|
export var headerTextColor = themed({
|
|
21
|
-
light: token('color.text.
|
|
22
|
-
dark: token('color.text.
|
|
21
|
+
light: token('color.text.inverse', colors.N0),
|
|
22
|
+
dark: token('color.text.inverse', colors.N0)
|
|
23
23
|
});
|
|
24
24
|
export var headerTextColorInactive = themed({
|
|
25
|
-
light: token('color.text
|
|
26
|
-
dark: token('color.text
|
|
25
|
+
light: token('color.text', colors.N800),
|
|
26
|
+
dark: token('color.text', colors.N0)
|
|
27
27
|
});
|
|
28
28
|
export var appLabelBgColor = themed({
|
|
29
|
-
light: token('color.background.
|
|
30
|
-
dark: token('color.background.
|
|
29
|
+
light: token('color.background.neutral', colors.N20),
|
|
30
|
+
dark: token('color.background.neutral', colors.N20)
|
|
31
31
|
});
|
|
32
32
|
export var appLabelTextColor = themed({
|
|
33
|
-
light: token('color.text
|
|
34
|
-
dark: token('color.text
|
|
33
|
+
light: token('color.text', colors.N500),
|
|
34
|
+
dark: token('color.text', colors.N500)
|
|
35
35
|
});
|
|
36
36
|
export var labelTextColor = themed({
|
|
37
|
-
light: token('color.text
|
|
38
|
-
dark: token('color.text
|
|
37
|
+
light: token('color.text', colors.N800),
|
|
38
|
+
dark: token('color.text', colors.DN900)
|
|
39
39
|
});
|
|
40
40
|
export var labelIconColor = themed({
|
|
41
|
-
light: token('color.text.
|
|
42
|
-
dark: token('color.text.
|
|
41
|
+
light: token('color.text.subtlest', colors.N60),
|
|
42
|
+
dark: token('color.text.subtlest', colors.DN100)
|
|
43
43
|
});
|
|
44
44
|
export var errorIconColor = themed({
|
|
45
45
|
light: token('color.text.disabled', colors.N90),
|
|
46
46
|
dark: token('color.text.disabled', colors.DN90)
|
|
47
47
|
});
|
|
48
48
|
export var errorTitleColor = themed({
|
|
49
|
-
light: token('color.text
|
|
50
|
-
dark: token('color.text
|
|
49
|
+
light: token('color.text', colors.N800),
|
|
50
|
+
dark: token('color.text', colors.DN800)
|
|
51
51
|
});
|
|
52
52
|
export var errorTextColor = themed({
|
|
53
|
-
light: token('color.text.
|
|
54
|
-
dark: token('color.text.
|
|
53
|
+
light: token('color.text.subtlest', colors.N90),
|
|
54
|
+
dark: token('color.text.subtlest', colors.DN90)
|
|
55
55
|
});
|
|
56
56
|
export var boxShadow = themed({
|
|
57
|
-
light: token('shadow.overlay', "0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A)),
|
|
58
|
-
dark: token('shadow.overlay', "0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A))
|
|
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))
|
|
59
59
|
});
|
|
@@ -19,7 +19,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
19
19
|
actionSubjectId: actionSubjectId,
|
|
20
20
|
attributes: _objectSpread(_objectSpread({
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "16.2.
|
|
22
|
+
packageVersion: "16.2.2"
|
|
23
23
|
}, attributes), {}, {
|
|
24
24
|
firedAt: getPageTime()
|
|
25
25
|
})
|
package/dist/esm/version.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const bgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-
|
|
2
|
-
export declare const headerBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-
|
|
3
|
-
export declare const teamHeaderBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-
|
|
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
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-
|
|
6
|
-
export declare const headerTextColorInactive: import("@atlaskit/theme").ThemedValue<"var(--ds-text
|
|
7
|
-
export declare const appLabelBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-
|
|
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-
|
|
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
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-
|
|
14
|
-
export declare const boxShadow: import("@atlaskit/theme").ThemedValue<"var(--ds-overlay)">;
|
|
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)">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.2",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/popup": "^1.3.0",
|
|
49
49
|
"@atlaskit/spinner": "^15.0.0",
|
|
50
50
|
"@atlaskit/theme": "^12.1.0",
|
|
51
|
-
"@atlaskit/tokens": "^0.
|
|
51
|
+
"@atlaskit/tokens": "^0.6.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"date-fns": "^2.17.0",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@atlaskit/docs": "*",
|
|
65
|
-
"@atlaskit/dynamic-table": "^14.
|
|
65
|
+
"@atlaskit/dynamic-table": "^14.5.0",
|
|
66
66
|
"@atlaskit/inline-edit": "^12.0.0",
|
|
67
67
|
"@atlaskit/select": "^15.0.0",
|
|
68
|
-
"@atlaskit/util-data-test": "^17.
|
|
68
|
+
"@atlaskit/util-data-test": "^17.2.0",
|
|
69
69
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
70
70
|
"@testing-library/react": "^8.0.1",
|
|
71
71
|
"enzyme": "^3.10.0",
|