@atlaskit/profilecard 17.2.3 → 17.2.4
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 +6 -0
- package/dist/cjs/components/Team/TeamProfileCard.js +2 -4
- package/dist/cjs/styled/Card.js +1 -1
- package/dist/cjs/styled/Error.js +1 -1
- package/dist/cjs/styled/ReportingLines.js +1 -1
- package/dist/cjs/styled/TeamCard.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +2 -3
- package/dist/es2019/styled/Card.js +1 -1
- package/dist/es2019/styled/Error.js +1 -1
- package/dist/es2019/styled/ReportingLines.js +1 -1
- package/dist/es2019/styled/TeamCard.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +2 -3
- package/dist/esm/styled/Card.js +1 -1
- package/dist/esm/styled/Error.js +1 -1
- package/dist/esm/styled/ReportingLines.js +1 -1
- package/dist/esm/styled/TeamCard.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +3 -2
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 17.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`250ad85dd78`](https://bitbucket.org/atlassian/atlassian-frontend/commits/250ad85dd78) - [ux] Removed ButtonGroup from team profile card to fix the layout of action buttons
|
|
8
|
+
|
|
3
9
|
## 17.2.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -23,8 +23,6 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
23
23
|
|
|
24
24
|
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
|
|
25
25
|
|
|
26
|
-
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
27
|
-
|
|
28
26
|
var _loadingButton = _interopRequireDefault(require("@atlaskit/button/loading-button"));
|
|
29
27
|
|
|
30
28
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
@@ -245,7 +243,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
245
243
|
|
|
246
244
|
var extraActions = actions.slice(2);
|
|
247
245
|
var initialActions = actions.slice(0, 2);
|
|
248
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
246
|
+
return /*#__PURE__*/_react.default.createElement(_TeamCard.ActionButtons, null, initialActions.map(function (action, index) {
|
|
249
247
|
return /*#__PURE__*/_react.default.createElement(ActionButton, {
|
|
250
248
|
action: action,
|
|
251
249
|
analytics: analytics,
|
|
@@ -255,7 +253,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
255
253
|
}), extraActions && /*#__PURE__*/_react.default.createElement(ExtraActions, {
|
|
256
254
|
actions: extraActions,
|
|
257
255
|
analytics: analytics
|
|
258
|
-
}))
|
|
256
|
+
}));
|
|
259
257
|
};
|
|
260
258
|
|
|
261
259
|
var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -17,7 +17,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
17
17
|
|
|
18
18
|
var _tokens = require("@atlaskit/tokens");
|
|
19
19
|
|
|
20
|
-
var _constants2 = require("
|
|
20
|
+
var _constants2 = require("./constants");
|
|
21
21
|
|
|
22
22
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
|
|
23
23
|
|
package/dist/cjs/styled/Error.js
CHANGED
|
@@ -19,7 +19,7 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
19
19
|
|
|
20
20
|
var _tokens = require("@atlaskit/tokens");
|
|
21
21
|
|
|
22
|
-
var _constants2 = require("
|
|
22
|
+
var _constants2 = require("./constants");
|
|
23
23
|
|
|
24
24
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
25
25
|
|
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
15
|
|
|
16
|
-
var _constants2 = require("
|
|
16
|
+
var _constants2 = require("./constants");
|
|
17
17
|
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
21
21
|
|
|
22
22
|
var _tokens = require("@atlaskit/tokens");
|
|
23
23
|
|
|
24
|
-
var _constants2 = require("
|
|
24
|
+
var _constants2 = require("./constants");
|
|
25
25
|
|
|
26
26
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
27
27
|
|
|
@@ -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: "17.2.
|
|
62
|
+
packageVersion: "17.2.4"
|
|
63
63
|
}, attributes), {}, {
|
|
64
64
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
65
65
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
5
|
-
import ButtonGroup from '@atlaskit/button/button-group';
|
|
6
5
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
7
6
|
import Button from '@atlaskit/button/standard-button';
|
|
8
7
|
import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
@@ -177,7 +176,7 @@ const ButtonSection = ({
|
|
|
177
176
|
|
|
178
177
|
const extraActions = actions.slice(2);
|
|
179
178
|
const initialActions = actions.slice(0, 2);
|
|
180
|
-
return /*#__PURE__*/React.createElement(
|
|
179
|
+
return /*#__PURE__*/React.createElement(ActionButtons, null, initialActions.map((action, index) => /*#__PURE__*/React.createElement(ActionButton, {
|
|
181
180
|
action: action,
|
|
182
181
|
analytics: analytics,
|
|
183
182
|
index: index,
|
|
@@ -185,7 +184,7 @@ const ButtonSection = ({
|
|
|
185
184
|
})), extraActions && /*#__PURE__*/React.createElement(ExtraActions, {
|
|
186
185
|
actions: extraActions,
|
|
187
186
|
analytics: analytics
|
|
188
|
-
}))
|
|
187
|
+
}));
|
|
189
188
|
};
|
|
190
189
|
|
|
191
190
|
const TeamProfilecardContent = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
2
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
import { token } from '@atlaskit/tokens';
|
|
4
|
-
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '
|
|
4
|
+
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
|
|
5
5
|
|
|
6
6
|
const getFullNameMargin = props => props.noMeta ? `${gridSize() * 4.5}px 0 ${gridSize() * 1.5}px 0` : `${gridSize() * 1.5}px 0 0 0`;
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import { N200 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { h400 } from '@atlaskit/theme/typography';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
|
-
import { errorIconColor, errorTextColor, errorTitleColor } from '
|
|
6
|
+
import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
7
7
|
export const ErrorWrapper = styled.div`
|
|
8
8
|
text-align: center;
|
|
9
9
|
padding: ${gridSize() * 3}px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
|
-
import { appLabelTextColor } from '
|
|
3
|
+
import { appLabelTextColor } from './constants';
|
|
4
4
|
export const ReportingLinesSection = styled.div`
|
|
5
5
|
// Minor left margin to align better with existing icon fields
|
|
6
6
|
margin-left: ${gridSize() / 2}px;
|
|
@@ -3,7 +3,7 @@ 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
5
|
import { token } from '@atlaskit/tokens';
|
|
6
|
-
import { bgColor, teamHeaderBgColor } from '
|
|
6
|
+
import { bgColor, teamHeaderBgColor } from './constants';
|
|
7
7
|
export const CardTriggerWrapper = styled.div`
|
|
8
8
|
display: inherit;
|
|
9
9
|
`;
|
|
@@ -38,7 +38,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
38
38
|
actionSubjectId,
|
|
39
39
|
attributes: {
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "17.2.
|
|
41
|
+
packageVersion: "17.2.4",
|
|
42
42
|
...attributes,
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -10,7 +10,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
12
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
13
|
-
import ButtonGroup from '@atlaskit/button/button-group';
|
|
14
13
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
15
14
|
import Button from '@atlaskit/button/standard-button';
|
|
16
15
|
import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
@@ -208,7 +207,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
208
207
|
|
|
209
208
|
var extraActions = actions.slice(2);
|
|
210
209
|
var initialActions = actions.slice(0, 2);
|
|
211
|
-
return /*#__PURE__*/React.createElement(
|
|
210
|
+
return /*#__PURE__*/React.createElement(ActionButtons, null, initialActions.map(function (action, index) {
|
|
212
211
|
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
213
212
|
action: action,
|
|
214
213
|
analytics: analytics,
|
|
@@ -218,7 +217,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
218
217
|
}), extraActions && /*#__PURE__*/React.createElement(ExtraActions, {
|
|
219
218
|
actions: extraActions,
|
|
220
219
|
analytics: analytics
|
|
221
|
-
}))
|
|
220
|
+
}));
|
|
222
221
|
};
|
|
223
222
|
|
|
224
223
|
var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
5
5
|
import styled, { css, keyframes } from 'styled-components';
|
|
6
6
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
7
7
|
import { token } from '@atlaskit/tokens';
|
|
8
|
-
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '
|
|
8
|
+
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
|
|
9
9
|
|
|
10
10
|
var getFullNameMargin = function getFullNameMargin(props) {
|
|
11
11
|
return props.noMeta ? "".concat(gridSize() * 4.5, "px 0 ").concat(gridSize() * 1.5, "px 0") : "".concat(gridSize() * 1.5, "px 0 0 0");
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -7,7 +7,7 @@ import { N200 } from '@atlaskit/theme/colors';
|
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { h400 } from '@atlaskit/theme/typography';
|
|
9
9
|
import { token } from '@atlaskit/tokens';
|
|
10
|
-
import { errorIconColor, errorTextColor, errorTitleColor } from '
|
|
10
|
+
import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
11
11
|
export var ErrorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n padding: ", "px;\n color: ", ";\n"])), gridSize() * 3, errorIconColor);
|
|
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);
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
7
|
-
import { appLabelTextColor } from '
|
|
7
|
+
import { appLabelTextColor } from './constants';
|
|
8
8
|
export var ReportingLinesSection = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Minor left margin to align better with existing icon fields\n margin-left: ", "px;\n margin-top: ", "px;\n"])), gridSize() / 2, gridSize());
|
|
9
9
|
export var ReportingLinesHeading = styled.h5(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n margin-bottom: ", "px;\n"])), appLabelTextColor, gridSize() * 1.5, gridSize());
|
|
10
10
|
export var ManagerSection = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: ", "px ", "px;\n"])), gridSize() / 2, gridSize() / 2);
|
|
@@ -7,7 +7,7 @@ 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
9
|
import { token } from '@atlaskit/tokens';
|
|
10
|
-
import { bgColor, teamHeaderBgColor } from '
|
|
10
|
+
import { bgColor, teamHeaderBgColor } from './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
13
|
var loadingImage = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), token('color.background.neutral', N20));
|
|
@@ -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: "17.2.
|
|
51
|
+
packageVersion: "17.2.4"
|
|
52
52
|
}, attributes), {}, {
|
|
53
53
|
firedAt: Math.round(getPageTime())
|
|
54
54
|
})
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.4",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
package/report.api.md
CHANGED