@atlaskit/profilecard 19.13.0 → 19.14.0
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 +8 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +9 -3
- package/dist/cjs/components/User/ProfileCardTrigger.js +6 -2
- package/dist/cjs/styled/Card.js +50 -5
- package/dist/cjs/styled/Error.js +9 -0
- package/dist/cjs/styled/ReportingLines.js +9 -0
- package/dist/cjs/styled/TeamCard.js +28 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +9 -3
- package/dist/es2019/components/User/ProfileCardTrigger.js +6 -2
- package/dist/es2019/styled/Card.js +47 -3
- package/dist/es2019/styled/Error.js +10 -0
- package/dist/es2019/styled/ReportingLines.js +10 -0
- package/dist/es2019/styled/TeamCard.js +29 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +9 -3
- package/dist/esm/components/User/ProfileCardTrigger.js +6 -2
- package/dist/esm/styled/Card.js +50 -5
- package/dist/esm/styled/Error.js +10 -0
- package/dist/esm/styled/ReportingLines.js +10 -0
- package/dist/esm/styled/TeamCard.js +29 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/client/ProfileCardClient.d.ts +2 -2
- package/dist/types/client/TeamCentralCardClient.d.ts +1 -1
- package/dist/types/client/TeamProfileCardClient.d.ts +1 -1
- package/dist/types/client/UserProfileCardClient.d.ts +2 -2
- package/dist/types/client/errorUtils.d.ts +1 -1
- package/dist/types/components/Error/ErrorMessage.d.ts +2 -2
- package/dist/types/components/Team/TeamForbiddenErrorState.d.ts +1 -1
- package/dist/types/components/Team/TeamLoadingState.d.ts +1 -1
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +2 -2
- package/dist/types/components/User/OverflowProfileCardButtons.d.ts +1 -1
- package/dist/types/components/User/ProfileCard.d.ts +1 -1
- package/dist/types/components/User/ProfileCardDetails.d.ts +1 -1
- package/dist/types/components/User/ProfileCardResourced.d.ts +2 -2
- package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/dist/types/components/User/ReportingLinesDetails.d.ts +1 -1
- package/dist/types/components/User/UserLoadingState.d.ts +1 -1
- package/dist/types/internal/filterActions.d.ts +1 -1
- package/dist/types/internal/getLabelMessage.d.ts +1 -1
- package/dist/types/internal/relative-date.d.ts +1 -1
- package/dist/types/mocks/mock-team-client.d.ts +1 -1
- package/dist/types/mocks/reporting-lines-data.d.ts +1 -1
- package/dist/types/mocks/simple-mock-clients.d.ts +1 -1
- package/dist/types/mocks/team-data.d.ts +1 -1
- package/dist/types/types.d.ts +12 -6
- package/dist/types/util/analytics.d.ts +2 -2
- package/dist/types/util/click.d.ts +1 -1
- package/dist/types/util/withOuterListeners.d.ts +1 -1
- package/dist/types-ts4.5/client/ProfileCardClient.d.ts +2 -2
- package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +1 -1
- package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +1 -1
- package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +2 -2
- package/dist/types-ts4.5/client/errorUtils.d.ts +1 -1
- package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +2 -2
- package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +1 -1
- package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +1 -1
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +2 -2
- package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCard.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +2 -2
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +1 -1
- package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +1 -1
- package/dist/types-ts4.5/internal/filterActions.d.ts +1 -1
- package/dist/types-ts4.5/internal/getLabelMessage.d.ts +1 -1
- package/dist/types-ts4.5/internal/relative-date.d.ts +1 -1
- package/dist/types-ts4.5/mocks/mock-team-client.d.ts +1 -1
- package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +1 -1
- package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +1 -1
- package/dist/types-ts4.5/mocks/team-data.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +12 -6
- package/dist/types-ts4.5/util/analytics.d.ts +2 -2
- package/dist/types-ts4.5/util/click.d.ts +1 -1
- package/dist/types-ts4.5/util/withOuterListeners.d.ts +1 -1
- package/package.json +7 -7
|
@@ -3,20 +3,30 @@ 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 { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
6
8
|
export const ErrorWrapper = styled.div({
|
|
7
9
|
textAlign: 'center',
|
|
8
10
|
padding: "var(--ds-space-300, 24px)",
|
|
9
11
|
color: errorIconColor
|
|
10
12
|
});
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
11
15
|
export const ErrorTitle = styled.p({
|
|
12
16
|
color: errorTitleColor,
|
|
13
17
|
lineHeight: `${gridSize() * 3}px`,
|
|
14
18
|
margin: `${"var(--ds-space-100, 8px)"} 0`
|
|
15
19
|
});
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
22
|
export const ErrorText = styled.span({
|
|
17
23
|
color: errorTextColor
|
|
18
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
19
27
|
export const TeamErrorTitle = styled.p(h400);
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
30
|
export const TeamErrorText = styled.p({
|
|
21
31
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
22
32
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
import { appLabelTextColor } from './constants';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
6
|
export const ReportingLinesSection = styled.div({
|
|
5
7
|
// Minor left margin to align better with existing icon fields
|
|
6
8
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
7
9
|
marginTop: "var(--ds-space-100, 8px)"
|
|
8
10
|
});
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
9
13
|
export const ReportingLinesHeading = styled.h3({
|
|
10
14
|
color: appLabelTextColor,
|
|
11
15
|
fontSize: `${gridSize() * 1.5}px`,
|
|
12
16
|
fontWeight: 600,
|
|
13
17
|
marginBottom: "var(--ds-space-100, 8px)"
|
|
14
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
15
21
|
export const ManagerSection = styled.div({
|
|
16
22
|
display: 'flex',
|
|
17
23
|
alignItems: 'center',
|
|
18
24
|
margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"}`
|
|
19
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
28
|
export const ManagerName = styled.span({
|
|
21
29
|
fontSize: `${gridSize() * 1.5}px`,
|
|
22
30
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
23
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
24
34
|
export const OffsetWrapper = styled.div({
|
|
25
35
|
marginTop: "var(--ds-space-050, 4px)",
|
|
26
36
|
// Offset left margin so the avatar aligns with the heading
|
|
@@ -3,9 +3,13 @@ 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 { bgColor, teamHeaderBgColor } from './constants';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
6
8
|
export const CardTriggerWrapper = styled.div({
|
|
7
9
|
display: 'inherit'
|
|
8
10
|
});
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
9
13
|
export const CardWrapper = styled.div({
|
|
10
14
|
backgroundColor: bgColor,
|
|
11
15
|
borderRadius: `${borderRadius()}px`,
|
|
@@ -14,12 +18,14 @@ export const CardWrapper = styled.div({
|
|
|
14
18
|
WebkitFontSmoothing: 'antialiased',
|
|
15
19
|
MozOsxFontSmoothing: 'grayscale'
|
|
16
20
|
});
|
|
21
|
+
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
17
23
|
export const TeamForbiddenErrorStateWrapper = styled.div({
|
|
18
24
|
width: `${gridSize() * 40}px`,
|
|
19
25
|
position: 'relative'
|
|
20
26
|
});
|
|
21
27
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression --
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
23
29
|
export const CardHeader = styled.div`
|
|
24
30
|
background-color: ${props => props.isLoading ? `var(--ds-background-neutral, ${N20})` : props.image ? '' : teamHeaderBgColor};
|
|
25
31
|
background-image: ${props => props.image ? `url(${props.image})` : ''};
|
|
@@ -29,12 +35,16 @@ export const CardHeader = styled.div`
|
|
|
29
35
|
box-sizing: content-box;
|
|
30
36
|
height: ${gridSize() * 16}px;
|
|
31
37
|
`;
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
32
40
|
export const CardContent = styled.div({
|
|
33
41
|
display: 'flex',
|
|
34
42
|
flexDirection: 'column',
|
|
35
43
|
padding: "var(--ds-space-300, 24px)",
|
|
36
44
|
minHeight: `${gridSize() * 13}px`
|
|
37
45
|
});
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
38
48
|
export const TeamName = styled.h6(h600, {
|
|
39
49
|
textTransform: 'none',
|
|
40
50
|
overflow: 'hidden',
|
|
@@ -43,19 +53,27 @@ export const TeamName = styled.h6(h600, {
|
|
|
43
53
|
WebkitLineClamp: 2,
|
|
44
54
|
WebkitBoxOrient: 'vertical'
|
|
45
55
|
});
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
46
58
|
export const MemberCount = styled.div({
|
|
47
59
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
48
60
|
marginTop: "var(--ds-space-050, 4px)"
|
|
49
61
|
});
|
|
62
|
+
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
50
64
|
export const AvatarSection = styled.div({
|
|
51
65
|
marginTop: "var(--ds-space-200, 16px)",
|
|
52
66
|
marginLeft: "var(--ds-space-negative-025, -2px)"
|
|
53
67
|
});
|
|
68
|
+
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
54
70
|
export const DescriptionWrapper = styled.div({
|
|
55
71
|
marginTop: "var(--ds-space-200, 16px)",
|
|
56
72
|
alignItems: 'center',
|
|
57
73
|
display: 'flex'
|
|
58
74
|
});
|
|
75
|
+
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
59
77
|
export const Description = styled.span({
|
|
60
78
|
overflow: 'hidden',
|
|
61
79
|
maxHeight: '60px',
|
|
@@ -63,6 +81,8 @@ export const Description = styled.span({
|
|
|
63
81
|
WebkitLineClamp: 3,
|
|
64
82
|
WebkitBoxOrient: 'vertical'
|
|
65
83
|
});
|
|
84
|
+
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
66
86
|
export const ActionButtons = styled.div({
|
|
67
87
|
width: 'calc(100% + 8px)',
|
|
68
88
|
display: 'flex',
|
|
@@ -70,18 +90,26 @@ export const ActionButtons = styled.div({
|
|
|
70
90
|
margin: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-negative-300, -24px)"} 0 ${"var(--ds-space-negative-100, -8px)"}`,
|
|
71
91
|
backgroundColor: "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"
|
|
72
92
|
});
|
|
93
|
+
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
73
95
|
export const WrappedButton = styled.div({
|
|
74
96
|
flexBasis: 0,
|
|
75
97
|
flexGrow: 1,
|
|
76
98
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
77
99
|
});
|
|
100
|
+
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
78
102
|
export const MoreButton = styled.div({
|
|
79
103
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
80
104
|
});
|
|
105
|
+
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
81
107
|
export const LoadingWrapper = styled.div({
|
|
82
108
|
textAlign: 'center',
|
|
83
109
|
marginTop: "var(--ds-space-500, 40px)"
|
|
84
110
|
});
|
|
111
|
+
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
85
113
|
export const AccessLockSVGWrapper = styled.div({
|
|
86
114
|
marginBottom: "var(--ds-space-300, 24px)"
|
|
87
115
|
});
|
|
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
31
31
|
actionSubjectId,
|
|
32
32
|
attributes: {
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "19.
|
|
34
|
+
packageVersion: "19.14.0",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
|
@@ -48,7 +48,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
48
48
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
49
49
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
50
50
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
51
|
-
headers.append('atl-client-version', "19.
|
|
51
|
+
headers.append('atl-client-version', "19.14.0");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -172,10 +172,11 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
172
172
|
isLoading: true,
|
|
173
173
|
data: null
|
|
174
174
|
}, function () {
|
|
175
|
+
var _this$props$displayCo;
|
|
175
176
|
var fireEvent = function fireEvent(event) {
|
|
176
177
|
_this.fireAnalytics(event);
|
|
177
178
|
};
|
|
178
|
-
var requests = Promise.all([_this.props.resourceClient.getTeamProfile(teamId, orgId, fireEvent), _this.props.resourceClient.shouldShowGiveKudos()]);
|
|
179
|
+
var requests = Promise.all([_this.props.resourceClient.getTeamProfile(teamId, orgId, fireEvent), (_this$props$displayCo = _this.props.displayConfig) !== null && _this$props$displayCo !== void 0 && _this$props$displayCo.showKudos ? _this.props.resourceClient.shouldShowGiveKudos() : Promise.resolve(false)]);
|
|
179
180
|
requests.then(function (res) {
|
|
180
181
|
var _this2;
|
|
181
182
|
return (_this2 = _this).handleClientSuccess.apply(_this2, _toConsumableArray(res));
|
|
@@ -254,7 +255,9 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
254
255
|
}, triggerProps, _this.triggerListeners), children));
|
|
255
256
|
}
|
|
256
257
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.renderKudosLauncher(), /*#__PURE__*/React.createElement("a", _extends({
|
|
257
|
-
"data-testid": "team-profilecard-trigger-wrapper"
|
|
258
|
+
"data-testid": "team-profilecard-trigger-wrapper"
|
|
259
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
260
|
+
,
|
|
258
261
|
style: {
|
|
259
262
|
color: 'initial',
|
|
260
263
|
textDecoration: 'none'
|
|
@@ -376,6 +379,9 @@ _defineProperty(TeamProfileCardTriggerInternal, "defaultProps", {
|
|
|
376
379
|
actions: [],
|
|
377
380
|
trigger: 'hover',
|
|
378
381
|
position: 'bottom-start',
|
|
379
|
-
triggerLinkType: 'link'
|
|
382
|
+
triggerLinkType: 'link',
|
|
383
|
+
displayConfig: {
|
|
384
|
+
showKudos: true
|
|
385
|
+
}
|
|
380
386
|
});
|
|
381
387
|
export default withAnalyticsEvents()(TeamProfileCardTriggerInternal);
|
|
@@ -140,7 +140,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
140
140
|
hasError: false,
|
|
141
141
|
data: null
|
|
142
142
|
}, function () {
|
|
143
|
-
var
|
|
143
|
+
var _this$props$displayCo;
|
|
144
|
+
var requests = Promise.all([_this.props.resourceClient.getProfile(cloudId || '', userId, _this.fireAnalytics), _this.props.resourceClient.getReportingLines(userId), (_this$props$displayCo = _this.props.displayConfig) !== null && _this$props$displayCo !== void 0 && _this$props$displayCo.showKudos ? _this.props.resourceClient.shouldShowGiveKudos() : Promise.resolve(false)]);
|
|
144
145
|
requests.then(function (res) {
|
|
145
146
|
var _this2;
|
|
146
147
|
return (_this2 = _this).handleClientSuccess.apply(_this2, _toConsumableArray(res));
|
|
@@ -315,7 +316,10 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
315
316
|
_defineProperty(ProfilecardTrigger, "defaultProps", {
|
|
316
317
|
actions: [],
|
|
317
318
|
trigger: 'hover',
|
|
318
|
-
position: 'bottom-start'
|
|
319
|
+
position: 'bottom-start',
|
|
320
|
+
displayConfig: {
|
|
321
|
+
showKudos: true
|
|
322
|
+
}
|
|
319
323
|
});
|
|
320
324
|
var ProfilecardTriggerLegacy = withAnalyticsEvents()(ProfilecardTrigger);
|
|
321
325
|
export default function ProfilecardTriggerSwitch(props) {
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -11,25 +11,53 @@ import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgCol
|
|
|
11
11
|
var getFullNameMargin = function getFullNameMargin(props) {
|
|
12
12
|
return props.noMeta ? "var(--ds-space-400, 32px)".concat(" 0 ", "var(--ds-space-150, 12px)", " 0") : "var(--ds-space-150, 12px)".concat(" 0 0 0");
|
|
13
13
|
};
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
14
16
|
export var CardWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", ";\n width: ", "px;\n"])), bgColor, "var(--ds-border-radius, 3px)", gridSize() * 45);
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
15
19
|
export var ProfileImage = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: ", ";\n left: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
22
|
export var ActionsFlexSpacer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex: 1 0 auto;\n"])));
|
|
17
23
|
|
|
18
24
|
// eslint-disable-next-line @atlaskit/design-system/no-keyframes-tagged-template-expression -- needs manual remediation
|
|
19
25
|
var kudosButtonAnimationTransformation = keyframes(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n"])));
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
28
|
export var KudosBlobAnimationStyle = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n top: ", "em;\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"])), gridSize() * 4 / fontSize(), kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
|
|
21
29
|
export var KudosBlobAnimation = function KudosBlobAnimation(props) {
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
return (
|
|
31
|
+
/*#__PURE__*/
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
+
React.createElement(KudosBlobAnimationStyle, _extends({
|
|
34
|
+
className: "kudos-blob-animation"
|
|
35
|
+
}, props))
|
|
36
|
+
);
|
|
25
37
|
};
|
|
26
|
-
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
40
|
+
export var AnimationWrapper = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n clip-path: inset(0px 0px 0px 0px round ", "px);\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n"])), borderRadius());
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
27
43
|
export var AnimatedKudosButton = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: ", ";\n\n /* Need babel-plugin-emotion to use component selector */\n /* Previously with styled-components: &:hover {KudosBlobAnimation} { */\n &:focus-within .kudos-blob-animation,\n &:focus .kudos-blob-animation,\n &:hover .kudos-blob-animation {\n display: block;\n }\n"])), "var(--ds-space-100, 8px)");
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
28
46
|
export var ActionButtonGroup = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n user-select: none;\n margin: ", " 0 0 0;\n text-align: right;\n display: flex;\n justify-content: flex-end;\n\n button,\n a {\n position: relative;\n }\n\n button,\n a,\n span {\n margin-left: ", ";\n\n &:first-child {\n margin-left: ", ";\n }\n }\n\n a,\n button {\n &:focus {\n outline-color: ", ";\n outline-offset: ", ";\n outline-style: solid;\n outline-width: ", ";\n }\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-0, 0px)", "var(--ds-border-focused, ".concat(B200, ")"), "var(--ds-border-width, 2px)", "var(--ds-border-width, 2px)");
|
|
47
|
+
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
29
49
|
export var OverflowActionButtonsWrapper = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: inline-block;\n width: ", ";\n height: ", ";\n margin-left: ", ";\n\n button {\n &:focus {\n outline-color: ", ";\n outline-offset: ", ";\n outline-style: solid;\n outline-width: ", ";\n }\n }\n"])), "var(--ds-space-400, 32px)", "var(--ds-space-400, 32px)", "var(--ds-space-100, 8px)", "var(--ds-border-focused, ".concat(B200, ")"), "var(--ds-border-width, 2px)", "var(--ds-border-width, 2px)");
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
30
52
|
export var CardContent = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n min-height: ", "px;\n"])), gridSize() * 17);
|
|
53
|
+
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
31
55
|
export var DetailsGroup = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n width: ", "px;\n"])), gridSize() * 14.5, gridSize() * 24.5);
|
|
32
|
-
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
58
|
+
export var DisabledInfo = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: ", "px;\n color: ", ";\n margin: ", " 0 0 0;\n line-height: 16px;\n"])), fontSizeSmall(), labelTextColor, "var(--ds-space-150, 12px)");
|
|
59
|
+
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
33
61
|
export var FullNameLabel = styled.h2(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 18px;\n font-weight: 400;\n letter-spacing: normal;\n color: ", ";\n margin: ", ";\n line-height: ", "em;\n :first-child {\n margin: ", ";\n }\n"])), function (props) {
|
|
34
62
|
return props.isDisabledAccount ? headerTextColorInactive : headerTextColor;
|
|
35
63
|
}, function (props) {
|
|
@@ -37,11 +65,22 @@ export var FullNameLabel = styled.h2(_templateObject13 || (_templateObject13 = _
|
|
|
37
65
|
}, 24 / 18, function (props) {
|
|
38
66
|
return getFullNameMargin(props);
|
|
39
67
|
});
|
|
68
|
+
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
40
70
|
export var LozengeWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-top: ", ";\n text-transform: uppercase;\n display: block;\n"])), "var(--ds-space-200, 16px)");
|
|
71
|
+
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
41
73
|
export var CustomLozengeContainer = styled(LozengeWrapper)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: ", ";\n > * {\n margin-top: ", ";\n &:not(:last-child) {\n margin-right: ", ";\n }\n }\n"])), "var(--ds-space-150, 12px)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
74
|
+
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
42
76
|
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 ", " 0;\n line-height: ", "em;\n"])), headerTextColor, "var(--ds-space-150, 12px)", 24 / 14);
|
|
77
|
+
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
43
79
|
export var AppTitleLabel = styled.span(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n border-radius: ", ";\n padding: 0 ", ";\n width: fit-content;\n font-weight: bold;\n text-transform: uppercase;\n\n font-size: 12px;\n margin: ", " 0 ", " 0;\n line-height: ", "em;\n"])), appLabelBgColor, appLabelTextColor, borderRadius(), "var(--ds-space-075, 6px)", "var(--ds-space-050, 4px)", "var(--ds-space-150, 12px)", 24 / 14);
|
|
80
|
+
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
44
82
|
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);
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
45
84
|
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: ", ";\n box-shadow: ", ";\n border-radius: ", ";\n\n overflow: hidden;\n"])), function (props) {
|
|
46
85
|
return props.isDisabledUser ? headerBgColorDisabledUser : headerBgColor;
|
|
47
86
|
}, function (props) {
|
|
@@ -51,6 +90,12 @@ export var CardContainer = styled.div(_templateObject19 || (_templateObject19 =
|
|
|
51
90
|
}, function (props) {
|
|
52
91
|
return props.withoutElevation ? '' : "".concat(borderRadius(), "px");
|
|
53
92
|
});
|
|
93
|
+
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
54
95
|
export var DetailsLabel = styled.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n line-height: 24px;\n font-size: ", "px;\n margin: ", " 0 0 0;\n white-space: nowrap;\n\n & + & {\n margin-top: ", ";\n }\n"])), gridSize() * 1.5, "var(--ds-space-200, 16px)", "var(--ds-space-025, 2px)");
|
|
96
|
+
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
55
98
|
export var DetailsLabelIcon = styled.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", ";\n height: ", ";\n padding: ", ";\n vertical-align: top;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])), labelIconColor, "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", "var(--ds-space-050, 4px)");
|
|
99
|
+
|
|
100
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
56
101
|
export var DetailsLabelText = styled.span(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n padding-left: ", ";\n"])), labelTextColor, "var(--ds-space-050, 4px)");
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -3,20 +3,30 @@ 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 { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
6
8
|
export var ErrorWrapper = styled.div({
|
|
7
9
|
textAlign: 'center',
|
|
8
10
|
padding: "var(--ds-space-300, 24px)",
|
|
9
11
|
color: errorIconColor
|
|
10
12
|
});
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
11
15
|
export var ErrorTitle = styled.p({
|
|
12
16
|
color: errorTitleColor,
|
|
13
17
|
lineHeight: "".concat(gridSize() * 3, "px"),
|
|
14
18
|
margin: "var(--ds-space-100, 8px)".concat(" 0")
|
|
15
19
|
});
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
22
|
export var ErrorText = styled.span({
|
|
17
23
|
color: errorTextColor
|
|
18
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
19
27
|
export var TeamErrorTitle = styled.p(h400);
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
30
|
export var TeamErrorText = styled.p({
|
|
21
31
|
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
22
32
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
import { appLabelTextColor } from './constants';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
6
|
export var ReportingLinesSection = styled.div({
|
|
5
7
|
// Minor left margin to align better with existing icon fields
|
|
6
8
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
7
9
|
marginTop: "var(--ds-space-100, 8px)"
|
|
8
10
|
});
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
9
13
|
export var ReportingLinesHeading = styled.h3({
|
|
10
14
|
color: appLabelTextColor,
|
|
11
15
|
fontSize: "".concat(gridSize() * 1.5, "px"),
|
|
12
16
|
fontWeight: 600,
|
|
13
17
|
marginBottom: "var(--ds-space-100, 8px)"
|
|
14
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
15
21
|
export var ManagerSection = styled.div({
|
|
16
22
|
display: 'flex',
|
|
17
23
|
alignItems: 'center',
|
|
18
24
|
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
19
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
28
|
export var ManagerName = styled.span({
|
|
21
29
|
fontSize: "".concat(gridSize() * 1.5, "px"),
|
|
22
30
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
23
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
24
34
|
export var OffsetWrapper = styled.div({
|
|
25
35
|
marginTop: "var(--ds-space-050, 4px)",
|
|
26
36
|
// Offset left margin so the avatar aligns with the heading
|
|
@@ -5,9 +5,13 @@ import { N20, N200 } from '@atlaskit/theme/colors';
|
|
|
5
5
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { h600 } from '@atlaskit/theme/typography';
|
|
7
7
|
import { bgColor, teamHeaderBgColor } from './constants';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
8
10
|
export var CardTriggerWrapper = styled.div({
|
|
9
11
|
display: 'inherit'
|
|
10
12
|
});
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
11
15
|
export var CardWrapper = styled.div({
|
|
12
16
|
backgroundColor: bgColor,
|
|
13
17
|
borderRadius: "".concat(borderRadius(), "px"),
|
|
@@ -16,23 +20,29 @@ export var CardWrapper = styled.div({
|
|
|
16
20
|
WebkitFontSmoothing: 'antialiased',
|
|
17
21
|
MozOsxFontSmoothing: 'grayscale'
|
|
18
22
|
});
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
19
25
|
export var TeamForbiddenErrorStateWrapper = styled.div({
|
|
20
26
|
width: "".concat(gridSize() * 40, "px"),
|
|
21
27
|
position: 'relative'
|
|
22
28
|
});
|
|
23
29
|
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression --
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
31
|
export var CardHeader = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n background-image: ", ";\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
|
|
26
32
|
return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? '' : teamHeaderBgColor;
|
|
27
33
|
}, function (props) {
|
|
28
34
|
return props.image ? "url(".concat(props.image, ")") : '';
|
|
29
35
|
}, gridSize() * 16);
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
30
38
|
export var CardContent = styled.div({
|
|
31
39
|
display: 'flex',
|
|
32
40
|
flexDirection: 'column',
|
|
33
41
|
padding: "var(--ds-space-300, 24px)",
|
|
34
42
|
minHeight: "".concat(gridSize() * 13, "px")
|
|
35
43
|
});
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
36
46
|
export var TeamName = styled.h6(h600, {
|
|
37
47
|
textTransform: 'none',
|
|
38
48
|
overflow: 'hidden',
|
|
@@ -41,19 +51,27 @@ export var TeamName = styled.h6(h600, {
|
|
|
41
51
|
WebkitLineClamp: 2,
|
|
42
52
|
WebkitBoxOrient: 'vertical'
|
|
43
53
|
});
|
|
54
|
+
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
44
56
|
export var MemberCount = styled.div({
|
|
45
57
|
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
46
58
|
marginTop: "var(--ds-space-050, 4px)"
|
|
47
59
|
});
|
|
60
|
+
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
48
62
|
export var AvatarSection = styled.div({
|
|
49
63
|
marginTop: "var(--ds-space-200, 16px)",
|
|
50
64
|
marginLeft: "var(--ds-space-negative-025, -2px)"
|
|
51
65
|
});
|
|
66
|
+
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
52
68
|
export var DescriptionWrapper = styled.div({
|
|
53
69
|
marginTop: "var(--ds-space-200, 16px)",
|
|
54
70
|
alignItems: 'center',
|
|
55
71
|
display: 'flex'
|
|
56
72
|
});
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
57
75
|
export var Description = styled.span({
|
|
58
76
|
overflow: 'hidden',
|
|
59
77
|
maxHeight: '60px',
|
|
@@ -61,6 +79,8 @@ export var Description = styled.span({
|
|
|
61
79
|
WebkitLineClamp: 3,
|
|
62
80
|
WebkitBoxOrient: 'vertical'
|
|
63
81
|
});
|
|
82
|
+
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
64
84
|
export var ActionButtons = styled.div({
|
|
65
85
|
width: 'calc(100% + 8px)',
|
|
66
86
|
display: 'flex',
|
|
@@ -68,18 +88,26 @@ export var ActionButtons = styled.div({
|
|
|
68
88
|
margin: "var(--ds-space-300, 24px)".concat(" ", "var(--ds-space-negative-300, -24px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
|
|
69
89
|
backgroundColor: "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"
|
|
70
90
|
});
|
|
91
|
+
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
71
93
|
export var WrappedButton = styled.div({
|
|
72
94
|
flexBasis: 0,
|
|
73
95
|
flexGrow: 1,
|
|
74
96
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
75
97
|
});
|
|
98
|
+
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
76
100
|
export var MoreButton = styled.div({
|
|
77
101
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
78
102
|
});
|
|
103
|
+
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
79
105
|
export var LoadingWrapper = styled.div({
|
|
80
106
|
textAlign: 'center',
|
|
81
107
|
marginTop: "var(--ds-space-500, 40px)"
|
|
82
108
|
});
|
|
109
|
+
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
83
111
|
export var AccessLockSVGWrapper = styled.div({
|
|
84
112
|
marginBottom: "var(--ds-space-300, 24px)"
|
|
85
113
|
});
|
|
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
38
38
|
actionSubjectId: actionSubjectId,
|
|
39
39
|
attributes: _objectSpread(_objectSpread({
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "19.
|
|
41
|
+
packageVersion: "19.14.0"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
2
|
-
import { ClientOverrides, ProfileClientOptions, TeamCentralReportingLinesData } from '../types';
|
|
1
|
+
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type ClientOverrides, type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
|
|
3
3
|
import TeamCentralCardClient from './TeamCentralCardClient';
|
|
4
4
|
import TeamProfileCardClient from './TeamProfileCardClient';
|
|
5
5
|
import UserProfileCardClient from './UserProfileCardClient';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProfileClientOptions, TeamCentralReportingLinesData } from '../types';
|
|
1
|
+
import { type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
|
|
2
2
|
import CachingClient from './CachingClient';
|
|
3
3
|
export declare const buildReportingLinesQuery: (aaid: string) => {
|
|
4
4
|
query: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
1
|
+
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
2
2
|
import type { ProfileClientOptions, Team } from '../types';
|
|
3
3
|
import CachingClient from './CachingClient';
|
|
4
4
|
export default class TeamProfileCardClient extends CachingClient<Team> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
2
|
-
import { ApiClientResponse, ProfileCardClientData, ProfileClientOptions } from '../types';
|
|
1
|
+
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type ApiClientResponse, type ProfileCardClientData, type ProfileClientOptions } from '../types';
|
|
3
3
|
import CachingClient from './CachingClient';
|
|
4
4
|
/**
|
|
5
5
|
* Transform response from GraphQL
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AGGError, AGGErrors, DirectoryGraphQLError, DirectoryGraphQLErrors } from '../util/errors';
|
|
2
|
-
import { ErrorAttributes } from './types';
|
|
2
|
+
import { type ErrorAttributes } from './types';
|
|
3
3
|
export declare const getErrorAttributes: (error?: DirectoryGraphQLErrors | Error | unknown | DirectoryGraphQLError | AGGError | AGGErrors) => ErrorAttributes;
|
|
4
4
|
export declare const handleDirectoryGraphQLErrors: (errors: unknown, traceId: string | null) => void;
|
|
5
5
|
export declare const handleAGGErrors: (errors: unknown, traceId: string | null) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
-
import { ProfileCardErrorType } from '../../types';
|
|
2
|
+
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type ProfileCardErrorType } from '../../types';
|
|
4
4
|
interface Props {
|
|
5
5
|
reload?: () => void | undefined;
|
|
6
6
|
errorType?: ProfileCardErrorType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
-
import { TriggerProps } from '@atlaskit/popup/types';
|
|
2
|
+
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type TriggerProps } from '@atlaskit/popup/types';
|
|
4
4
|
import type { AnalyticsFromDuration, AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
|
|
5
5
|
export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps, TeamProfileCardTriggerState> {
|
|
6
6
|
static defaultProps: Partial<TeamProfileCardTriggerProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnalyticsWithDurationProps, ProfileCardAction } from '../../types';
|
|
2
|
+
import { type AnalyticsWithDurationProps, type ProfileCardAction } from '../../types';
|
|
3
3
|
type OverflowButtonsProps = {
|
|
4
4
|
actions: ProfileCardAction[];
|
|
5
5
|
onItemClick: (action: ProfileCardAction, args: any, event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
|